diff --git a/src/promptflow-devkit/promptflow/_sdk/_service/static/assets/index-IZERNmqw.js b/src/promptflow-devkit/promptflow/_sdk/_service/static/assets/index-IZERNmqw.js new file mode 100644 index 00000000000..0acf8cffc10 --- /dev/null +++ b/src/promptflow-devkit/promptflow/_sdk/_service/static/assets/index-IZERNmqw.js @@ -0,0 +1,1882 @@ +(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.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}}.json-view{display:block;color:#4d4d4d;text-align:left;--json-property: #009033;--json-index: #676dff;--json-number: #676dff;--json-string: #b2762e;--json-boolean: #dc155e;--json-null: #dc155e}.json-view .json-view--property{color:var(--json-property)}.json-view .json-view--index{color:var(--json-index)}.json-view .json-view--number{color:var(--json-number)}.json-view .json-view--string{color:var(--json-string)}.json-view .json-view--boolean{color:var(--json-boolean)}.json-view .json-view--null{color:var(--json-null)}.json-view .jv-indent{padding-left:1em}.json-view .jv-chevron{display:inline-block;vertical-align:-20%;cursor:pointer;opacity:.4;width:1em;height:1em}:is(.json-view .jv-chevron:hover,.json-view .jv-size:hover+.jv-chevron){opacity:.8}.json-view .jv-size{cursor:pointer;opacity:.4;font-size:.875em;font-style:italic;margin-left:.5em;vertical-align:-5%;line-height:1}.json-view :is(.json-view--copy,.json-view--edit),.json-view .json-view--link svg{display:none;width:1em;height:1em;margin-left:.25em;cursor:pointer}.json-view .json-view--input{width:120px;margin-left:.25em;border-radius:4px;border:1px solid currentColor;padding:0 4px;font-size:87.5%;line-height:1.25;background:transparent}.json-view .json-view--deleting{outline:1px solid #da0000;background-color:#da000011;text-decoration-line:line-through}:is(.json-view:hover,.json-view--pair:hover)>:is(.json-view--copy,.json-view--edit),:is(.json-view:hover,.json-view--pair:hover)>.json-view--link svg{display:inline-block}.json-view .jv-button{background:transparent;outline:none;border:none;cursor:pointer;color:inherit}.json-view .cursor-pointer{cursor:pointer}.json-view svg{vertical-align:-10%}.jv-size-chevron~svg{vertical-align:-16%}.json-view_a11y{color:#545454;--json-property: #aa5d00;--json-index: #007299;--json-number: #007299;--json-string: #008000;--json-boolean: #d91e18;--json-null: #d91e18}.json-view_github{color:#005cc5;--json-property: #005cc5;--json-index: #005cc5;--json-number: #005cc5;--json-string: #032f62;--json-boolean: #005cc5;--json-null: #005cc5}.json-view_vscode{color:#005cc5;--json-property: #0451a5;--json-index: #0000ff;--json-number: #0000ff;--json-string: #a31515;--json-boolean: #0000ff;--json-null: #0000ff}.json-view_atom{color:#383a42;--json-property: #e45649;--json-index: #986801;--json-number: #986801;--json-string: #50a14f;--json-boolean: #0184bc;--json-null: #0184bc}.json-view_winter-is-coming{color:#0431fa;--json-property: #3a9685;--json-index: #ae408b;--json-number: #ae408b;--json-string: #8123a9;--json-boolean: #0184bc;--json-null: #0184bc}:is(.dark .json-view,.dark.json-view){color:#d1d1d1;--json-property: #009033;--json-index: #5d75f2;--json-number: #5d75f2;--json-string: #c57e29;--json-boolean: #e4407b;--json-null: #e4407b}:is(.dark .json-view_a11y,.dark.json-view_a11y){color:#d1d1d1;--json-property: #ffd700;--json-index: #00e0e0;--json-number: #00e0e0;--json-string: #abe338;--json-boolean: #ffa07a;--json-null: #ffa07a}:is(.dark .json-view_github,.dark.json-view_github){color:#79b8ff;--json-property: #79b8ff;--json-index: #79b8ff;--json-number: #79b8ff;--json-string: #9ecbff;--json-boolean: #79b8ff;--json-null: #79b8ff}:is(.dark .json-view_vscode,.dark.json-view_vscode){color:orchid;--json-property: #9cdcfe;--json-index: #b5cea8;--json-number: #b5cea8;--json-string: #ce9178;--json-boolean: #569cd6;--json-null: #569cd6}:is(.dark .json-view_atom,.dark.json-view_atom){color:#abb2bf;--json-property: #e06c75;--json-index: #d19a66;--json-number: #d19a66;--json-string: #98c379;--json-boolean: #56b6c2;--json-null: #56b6c2}:is(.dark .json-view_winter-is-coming,.dark.json-view_winter-is-coming){color:#a7dbf7;--json-property: #91dacd;--json-index: #8dec95;--json-number: #8dec95;--json-string: #e0aff5;--json-boolean: #f29fd8;--json-null: #f29fd8}.json-view .json-view--string{word-break:break-all}.llm-variable-highlight{color:var(--colorPaletteGreenForeground1)!important}')),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})(); +var Kw=Object.defineProperty;var Uw=(eo,to,ro)=>to in eo?Kw(eo,to,{enumerable:!0,configurable:!0,writable:!0,value:ro}):eo[to]=ro;var Qw=(eo,to)=>()=>(to||eo((to={exports:{}}).exports,to),to.exports);var Ws=(eo,to,ro)=>(Uw(eo,typeof to!="symbol"?to+"":to,ro),ro);var Yw=Qw((exports,module)=>{function _mergeNamespaces(eo,to){for(var ro=0;rono[oo]})}}}return Object.freeze(Object.defineProperty(eo,Symbol.toStringTag,{value:"Module"}))}(function(){const to=document.createElement("link").relList;if(to&&to.supports&&to.supports("modulepreload"))return;for(const oo of document.querySelectorAll('link[rel="modulepreload"]'))no(oo);new MutationObserver(oo=>{for(const io of oo)if(io.type==="childList")for(const so of io.addedNodes)so.tagName==="LINK"&&so.rel==="modulepreload"&&no(so)}).observe(document,{childList:!0,subtree:!0});function ro(oo){const io={};return oo.integrity&&(io.integrity=oo.integrity),oo.referrerPolicy&&(io.referrerPolicy=oo.referrerPolicy),oo.crossOrigin==="use-credentials"?io.credentials="include":oo.crossOrigin==="anonymous"?io.credentials="omit":io.credentials="same-origin",io}function no(oo){if(oo.ep)return;oo.ep=!0;const io=ro(oo);fetch(oo.href,io)}})();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(eo){return eo&&eo.__esModule&&Object.prototype.hasOwnProperty.call(eo,"default")?eo.default:eo}var jsxRuntime$1={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var l$9=Symbol.for("react.element"),n$8=Symbol.for("react.portal"),p$b=Symbol.for("react.fragment"),q$5=Symbol.for("react.strict_mode"),r$6=Symbol.for("react.profiler"),t$9=Symbol.for("react.provider"),u$7=Symbol.for("react.context"),v$8=Symbol.for("react.forward_ref"),w$6=Symbol.for("react.suspense"),x$8=Symbol.for("react.memo"),y$7=Symbol.for("react.lazy"),z$5=Symbol.iterator;function A$7(eo){return eo===null||typeof eo!="object"?null:(eo=z$5&&eo[z$5]||eo["@@iterator"],typeof eo=="function"?eo:null)}var B$4={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C$7=Object.assign,D$5={};function E$6(eo,to,ro){this.props=eo,this.context=to,this.refs=D$5,this.updater=ro||B$4}E$6.prototype.isReactComponent={};E$6.prototype.setState=function(eo,to){if(typeof eo!="object"&&typeof eo!="function"&&eo!=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,eo,to,"setState")};E$6.prototype.forceUpdate=function(eo){this.updater.enqueueForceUpdate(this,eo,"forceUpdate")};function F$2(){}F$2.prototype=E$6.prototype;function G$2(eo,to,ro){this.props=eo,this.context=to,this.refs=D$5,this.updater=ro||B$4}var H$4=G$2.prototype=new F$2;H$4.constructor=G$2;C$7(H$4,E$6.prototype);H$4.isPureReactComponent=!0;var I$3=Array.isArray,J$1=Object.prototype.hasOwnProperty,K$4={current:null},L$4={key:!0,ref:!0,__self:!0,__source:!0};function M$5(eo,to,ro){var no,oo={},io=null,so=null;if(to!=null)for(no in to.ref!==void 0&&(so=to.ref),to.key!==void 0&&(io=""+to.key),to)J$1.call(to,no)&&!L$4.hasOwnProperty(no)&&(oo[no]=to[no]);var ao=arguments.length-2;if(ao===1)oo.children=ro;else if(1>>1,Zo=Ho[Yo];if(0>>1;Yo<_s;){var Ss=2*(Yo+1)-1,As=Ho[Ss],Ns=Ss+1,ws=Ho[Ns];if(0>oo(As,Uo))Nsoo(ws,As)?(Ho[Yo]=ws,Ho[Ns]=Uo,Yo=Ns):(Ho[Yo]=As,Ho[Ss]=Uo,Yo=Ss);else if(Nsoo(ws,Uo))Ho[Yo]=ws,Ho[Ns]=Uo,Yo=Ns;else break e}}return qo}function oo(Ho,qo){var Uo=Ho.sortIndex-qo.sortIndex;return Uo!==0?Uo:Ho.id-qo.id}if(typeof performance=="object"&&typeof performance.now=="function"){var io=performance;eo.unstable_now=function(){return io.now()}}else{var so=Date,ao=so.now();eo.unstable_now=function(){return so.now()-ao}}var lo=[],uo=[],co=1,fo=null,ho=3,po=!1,go=!1,vo=!1,bo=typeof setTimeout=="function"?setTimeout:null,xo=typeof clearTimeout=="function"?clearTimeout:null,_o=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Eo(Ho){for(var qo=ro(uo);qo!==null;){if(qo.callback===null)no(uo);else if(qo.startTime<=Ho)no(uo),qo.sortIndex=qo.expirationTime,to(lo,qo);else break;qo=ro(uo)}}function So(Ho){if(vo=!1,Eo(Ho),!go)if(ro(lo)!==null)go=!0,$o(To);else{var qo=ro(uo);qo!==null&&Lo(So,qo.startTime-Ho)}}function To(Ho,qo){go=!1,vo&&(vo=!1,xo(Oo),Oo=-1),po=!0;var Uo=ho;try{for(Eo(qo),fo=ro(lo);fo!==null&&(!(fo.expirationTime>qo)||Ho&&!No());){var Yo=fo.callback;if(typeof Yo=="function"){fo.callback=null,ho=fo.priorityLevel;var Zo=Yo(fo.expirationTime<=qo);qo=eo.unstable_now(),typeof Zo=="function"?fo.callback=Zo:fo===ro(lo)&&no(lo),Eo(qo)}else no(lo);fo=ro(lo)}if(fo!==null)var _s=!0;else{var Ss=ro(uo);Ss!==null&&Lo(So,Ss.startTime-qo),_s=!1}return _s}finally{fo=null,ho=Uo,po=!1}}var wo=!1,Co=null,Oo=-1,Ao=5,Ro=-1;function No(){return!(eo.unstable_now()-RoHo||125Yo?(Ho.sortIndex=Uo,to(uo,Ho),ro(lo)===null&&Ho===ro(uo)&&(vo?(xo(Oo),Oo=-1):vo=!0,Lo(So,Uo-Yo))):(Ho.sortIndex=Zo,to(lo,Ho),go||po||(go=!0,$o(To))),Ho},eo.unstable_shouldYield=No,eo.unstable_wrapCallback=function(Ho){var qo=ho;return function(){var Uo=ho;ho=qo;try{return Ho.apply(this,arguments)}finally{ho=Uo}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var aa=reactExports,ca=schedulerExports;function p$9(eo){for(var to="https://reactjs.org/docs/error-decoder.html?invariant="+eo,ro=1;ro"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ja=Object.prototype.hasOwnProperty,ka=/^[: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]*$/,la={},ma={};function oa(eo){return ja.call(ma,eo)?!0:ja.call(la,eo)?!1:ka.test(eo)?ma[eo]=!0:(la[eo]=!0,!1)}function pa(eo,to,ro,no){if(ro!==null&&ro.type===0)return!1;switch(typeof to){case"function":case"symbol":return!0;case"boolean":return no?!1:ro!==null?!ro.acceptsBooleans:(eo=eo.toLowerCase().slice(0,5),eo!=="data-"&&eo!=="aria-");default:return!1}}function qa(eo,to,ro,no){if(to===null||typeof to>"u"||pa(eo,to,ro,no))return!0;if(no)return!1;if(ro!==null)switch(ro.type){case 3:return!to;case 4:return to===!1;case 5:return isNaN(to);case 6:return isNaN(to)||1>to}return!1}function v$7(eo,to,ro,no,oo,io,so){this.acceptsBooleans=to===2||to===3||to===4,this.attributeName=no,this.attributeNamespace=oo,this.mustUseProperty=ro,this.propertyName=eo,this.type=to,this.sanitizeURL=io,this.removeEmptyString=so}var z$4={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(eo){z$4[eo]=new v$7(eo,0,!1,eo,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(eo){var to=eo[0];z$4[to]=new v$7(to,1,!1,eo[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(eo){z$4[eo]=new v$7(eo,2,!1,eo.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(eo){z$4[eo]=new v$7(eo,2,!1,eo,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(eo){z$4[eo]=new v$7(eo,3,!1,eo.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(eo){z$4[eo]=new v$7(eo,3,!0,eo,null,!1,!1)});["capture","download"].forEach(function(eo){z$4[eo]=new v$7(eo,4,!1,eo,null,!1,!1)});["cols","rows","size","span"].forEach(function(eo){z$4[eo]=new v$7(eo,6,!1,eo,null,!1,!1)});["rowSpan","start"].forEach(function(eo){z$4[eo]=new v$7(eo,5,!1,eo.toLowerCase(),null,!1,!1)});var ra=/[\-:]([a-z])/g;function sa(eo){return eo[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(eo){var to=eo.replace(ra,sa);z$4[to]=new v$7(to,1,!1,eo,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(eo){var to=eo.replace(ra,sa);z$4[to]=new v$7(to,1,!1,eo,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(eo){var to=eo.replace(ra,sa);z$4[to]=new v$7(to,1,!1,eo,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(eo){z$4[eo]=new v$7(eo,1,!1,eo.toLowerCase(),null,!1,!1)});z$4.xlinkHref=new v$7("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(eo){z$4[eo]=new v$7(eo,1,!1,eo.toLowerCase(),null,!0,!0)});function ta(eo,to,ro,no){var oo=z$4.hasOwnProperty(to)?z$4[to]:null;(oo!==null?oo.type!==0:no||!(2ao||oo[so]!==io[ao]){var lo=` +`+oo[so].replace(" at new "," at ");return eo.displayName&&lo.includes("")&&(lo=lo.replace("",eo.displayName)),lo}while(1<=so&&0<=ao);break}}}finally{Na=!1,Error.prepareStackTrace=ro}return(eo=eo?eo.displayName||eo.name:"")?Ma(eo):""}function Pa(eo){switch(eo.tag){case 5:return Ma(eo.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return eo=Oa(eo.type,!1),eo;case 11:return eo=Oa(eo.type.render,!1),eo;case 1:return eo=Oa(eo.type,!0),eo;default:return""}}function Qa(eo){if(eo==null)return null;if(typeof eo=="function")return eo.displayName||eo.name||null;if(typeof eo=="string")return eo;switch(eo){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof eo=="object")switch(eo.$$typeof){case Ca:return(eo.displayName||"Context")+".Consumer";case Ba:return(eo._context.displayName||"Context")+".Provider";case Da:var to=eo.render;return eo=eo.displayName,eo||(eo=to.displayName||to.name||"",eo=eo!==""?"ForwardRef("+eo+")":"ForwardRef"),eo;case Ga:return to=eo.displayName||null,to!==null?to:Qa(eo.type)||"Memo";case Ha:to=eo._payload,eo=eo._init;try{return Qa(eo(to))}catch{}}return null}function Ra(eo){var to=eo.type;switch(eo.tag){case 24:return"Cache";case 9:return(to.displayName||"Context")+".Consumer";case 10:return(to._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return eo=to.render,eo=eo.displayName||eo.name||"",to.displayName||(eo!==""?"ForwardRef("+eo+")":"ForwardRef");case 7:return"Fragment";case 5:return to;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(to);case 8:return to===za?"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 to=="function")return to.displayName||to.name||null;if(typeof to=="string")return to}return null}function Sa(eo){switch(typeof eo){case"boolean":case"number":case"string":case"undefined":return eo;case"object":return eo;default:return""}}function Ta(eo){var to=eo.type;return(eo=eo.nodeName)&&eo.toLowerCase()==="input"&&(to==="checkbox"||to==="radio")}function Ua(eo){var to=Ta(eo)?"checked":"value",ro=Object.getOwnPropertyDescriptor(eo.constructor.prototype,to),no=""+eo[to];if(!eo.hasOwnProperty(to)&&typeof ro<"u"&&typeof ro.get=="function"&&typeof ro.set=="function"){var oo=ro.get,io=ro.set;return Object.defineProperty(eo,to,{configurable:!0,get:function(){return oo.call(this)},set:function(so){no=""+so,io.call(this,so)}}),Object.defineProperty(eo,to,{enumerable:ro.enumerable}),{getValue:function(){return no},setValue:function(so){no=""+so},stopTracking:function(){eo._valueTracker=null,delete eo[to]}}}}function Va(eo){eo._valueTracker||(eo._valueTracker=Ua(eo))}function Wa(eo){if(!eo)return!1;var to=eo._valueTracker;if(!to)return!0;var ro=to.getValue(),no="";return eo&&(no=Ta(eo)?eo.checked?"true":"false":eo.value),eo=no,eo!==ro?(to.setValue(eo),!0):!1}function Xa(eo){if(eo=eo||(typeof document<"u"?document:void 0),typeof eo>"u")return null;try{return eo.activeElement||eo.body}catch{return eo.body}}function Ya(eo,to){var ro=to.checked;return A$6({},to,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:ro??eo._wrapperState.initialChecked})}function Za(eo,to){var ro=to.defaultValue==null?"":to.defaultValue,no=to.checked!=null?to.checked:to.defaultChecked;ro=Sa(to.value!=null?to.value:ro),eo._wrapperState={initialChecked:no,initialValue:ro,controlled:to.type==="checkbox"||to.type==="radio"?to.checked!=null:to.value!=null}}function ab(eo,to){to=to.checked,to!=null&&ta(eo,"checked",to,!1)}function bb(eo,to){ab(eo,to);var ro=Sa(to.value),no=to.type;if(ro!=null)no==="number"?(ro===0&&eo.value===""||eo.value!=ro)&&(eo.value=""+ro):eo.value!==""+ro&&(eo.value=""+ro);else if(no==="submit"||no==="reset"){eo.removeAttribute("value");return}to.hasOwnProperty("value")?cb(eo,to.type,ro):to.hasOwnProperty("defaultValue")&&cb(eo,to.type,Sa(to.defaultValue)),to.checked==null&&to.defaultChecked!=null&&(eo.defaultChecked=!!to.defaultChecked)}function db(eo,to,ro){if(to.hasOwnProperty("value")||to.hasOwnProperty("defaultValue")){var no=to.type;if(!(no!=="submit"&&no!=="reset"||to.value!==void 0&&to.value!==null))return;to=""+eo._wrapperState.initialValue,ro||to===eo.value||(eo.value=to),eo.defaultValue=to}ro=eo.name,ro!==""&&(eo.name=""),eo.defaultChecked=!!eo._wrapperState.initialChecked,ro!==""&&(eo.name=ro)}function cb(eo,to,ro){(to!=="number"||Xa(eo.ownerDocument)!==eo)&&(ro==null?eo.defaultValue=""+eo._wrapperState.initialValue:eo.defaultValue!==""+ro&&(eo.defaultValue=""+ro))}var eb=Array.isArray;function fb(eo,to,ro,no){if(eo=eo.options,to){to={};for(var oo=0;oo"+to.valueOf().toString()+"",to=mb.firstChild;eo.firstChild;)eo.removeChild(eo.firstChild);for(;to.firstChild;)eo.appendChild(to.firstChild)}});function ob(eo,to){if(to){var ro=eo.firstChild;if(ro&&ro===eo.lastChild&&ro.nodeType===3){ro.nodeValue=to;return}}eo.textContent=to}var pb={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},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(eo){qb.forEach(function(to){to=to+eo.charAt(0).toUpperCase()+eo.substring(1),pb[to]=pb[eo]})});function rb(eo,to,ro){return to==null||typeof to=="boolean"||to===""?"":ro||typeof to!="number"||to===0||pb.hasOwnProperty(eo)&&pb[eo]?(""+to).trim():to+"px"}function sb(eo,to){eo=eo.style;for(var ro in to)if(to.hasOwnProperty(ro)){var no=ro.indexOf("--")===0,oo=rb(ro,to[ro],no);ro==="float"&&(ro="cssFloat"),no?eo.setProperty(ro,oo):eo[ro]=oo}}var tb=A$6({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 ub(eo,to){if(to){if(tb[eo]&&(to.children!=null||to.dangerouslySetInnerHTML!=null))throw Error(p$9(137,eo));if(to.dangerouslySetInnerHTML!=null){if(to.children!=null)throw Error(p$9(60));if(typeof to.dangerouslySetInnerHTML!="object"||!("__html"in to.dangerouslySetInnerHTML))throw Error(p$9(61))}if(to.style!=null&&typeof to.style!="object")throw Error(p$9(62))}}function vb(eo,to){if(eo.indexOf("-")===-1)return typeof to.is=="string";switch(eo){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 wb=null;function xb(eo){return eo=eo.target||eo.srcElement||window,eo.correspondingUseElement&&(eo=eo.correspondingUseElement),eo.nodeType===3?eo.parentNode:eo}var yb=null,zb=null,Ab=null;function Bb(eo){if(eo=Cb(eo)){if(typeof yb!="function")throw Error(p$9(280));var to=eo.stateNode;to&&(to=Db(to),yb(eo.stateNode,eo.type,to))}}function Eb(eo){zb?Ab?Ab.push(eo):Ab=[eo]:zb=eo}function Fb(){if(zb){var eo=zb,to=Ab;if(Ab=zb=null,Bb(eo),to)for(eo=0;eo>>=0,eo===0?32:31-(pc(eo)/qc|0)|0}var rc=64,sc=4194304;function tc(eo){switch(eo&-eo){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 eo&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return eo&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return eo}}function uc(eo,to){var ro=eo.pendingLanes;if(ro===0)return 0;var no=0,oo=eo.suspendedLanes,io=eo.pingedLanes,so=ro&268435455;if(so!==0){var ao=so&~oo;ao!==0?no=tc(ao):(io&=so,io!==0&&(no=tc(io)))}else so=ro&~oo,so!==0?no=tc(so):io!==0&&(no=tc(io));if(no===0)return 0;if(to!==0&&to!==no&&!(to&oo)&&(oo=no&-no,io=to&-to,oo>=io||oo===16&&(io&4194240)!==0))return to;if(no&4&&(no|=ro&16),to=eo.entangledLanes,to!==0)for(eo=eo.entanglements,to&=no;0ro;ro++)to.push(eo);return to}function Ac(eo,to,ro){eo.pendingLanes|=to,to!==536870912&&(eo.suspendedLanes=0,eo.pingedLanes=0),eo=eo.eventTimes,to=31-oc(to),eo[to]=ro}function Bc(eo,to){var ro=eo.pendingLanes&~to;eo.pendingLanes=to,eo.suspendedLanes=0,eo.pingedLanes=0,eo.expiredLanes&=to,eo.mutableReadLanes&=to,eo.entangledLanes&=to,to=eo.entanglements;var no=eo.eventTimes;for(eo=eo.expirationTimes;0=be$2),ee$2=" ",fe$2=!1;function ge$1(eo,to){switch(eo){case"keyup":return $d.indexOf(to.keyCode)!==-1;case"keydown":return to.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he$2(eo){return eo=eo.detail,typeof eo=="object"&&"data"in eo?eo.data:null}var ie$4=!1;function je$1(eo,to){switch(eo){case"compositionend":return he$2(to);case"keypress":return to.which!==32?null:(fe$2=!0,ee$2);case"textInput":return eo=to.data,eo===ee$2&&fe$2?null:eo;default:return null}}function ke$1(eo,to){if(ie$4)return eo==="compositionend"||!ae$2&&ge$1(eo,to)?(eo=nd(),md=ld=kd=null,ie$4=!1,eo):null;switch(eo){case"paste":return null;case"keypress":if(!(to.ctrlKey||to.altKey||to.metaKey)||to.ctrlKey&&to.altKey){if(to.char&&1=to)return{node:ro,offset:to-eo};eo=no}e:{for(;ro;){if(ro.nextSibling){ro=ro.nextSibling;break e}ro=ro.parentNode}ro=void 0}ro=Je$1(ro)}}function Le$1(eo,to){return eo&&to?eo===to?!0:eo&&eo.nodeType===3?!1:to&&to.nodeType===3?Le$1(eo,to.parentNode):"contains"in eo?eo.contains(to):eo.compareDocumentPosition?!!(eo.compareDocumentPosition(to)&16):!1:!1}function Me$2(){for(var eo=window,to=Xa();to instanceof eo.HTMLIFrameElement;){try{var ro=typeof to.contentWindow.location.href=="string"}catch{ro=!1}if(ro)eo=to.contentWindow;else break;to=Xa(eo.document)}return to}function Ne$1(eo){var to=eo&&eo.nodeName&&eo.nodeName.toLowerCase();return to&&(to==="input"&&(eo.type==="text"||eo.type==="search"||eo.type==="tel"||eo.type==="url"||eo.type==="password")||to==="textarea"||eo.contentEditable==="true")}function Oe$2(eo){var to=Me$2(),ro=eo.focusedElem,no=eo.selectionRange;if(to!==ro&&ro&&ro.ownerDocument&&Le$1(ro.ownerDocument.documentElement,ro)){if(no!==null&&Ne$1(ro)){if(to=no.start,eo=no.end,eo===void 0&&(eo=to),"selectionStart"in ro)ro.selectionStart=to,ro.selectionEnd=Math.min(eo,ro.value.length);else if(eo=(to=ro.ownerDocument||document)&&to.defaultView||window,eo.getSelection){eo=eo.getSelection();var oo=ro.textContent.length,io=Math.min(no.start,oo);no=no.end===void 0?io:Math.min(no.end,oo),!eo.extend&&io>no&&(oo=no,no=io,io=oo),oo=Ke$1(ro,io);var so=Ke$1(ro,no);oo&&so&&(eo.rangeCount!==1||eo.anchorNode!==oo.node||eo.anchorOffset!==oo.offset||eo.focusNode!==so.node||eo.focusOffset!==so.offset)&&(to=to.createRange(),to.setStart(oo.node,oo.offset),eo.removeAllRanges(),io>no?(eo.addRange(to),eo.extend(so.node,so.offset)):(to.setEnd(so.node,so.offset),eo.addRange(to)))}}for(to=[],eo=ro;eo=eo.parentNode;)eo.nodeType===1&&to.push({element:eo,left:eo.scrollLeft,top:eo.scrollTop});for(typeof ro.focus=="function"&&ro.focus(),ro=0;ro=document.documentMode,Qe$1=null,Re$1=null,Se$1=null,Te$1=!1;function Ue$1(eo,to,ro){var no=ro.window===ro?ro.document:ro.nodeType===9?ro:ro.ownerDocument;Te$1||Qe$1==null||Qe$1!==Xa(no)||(no=Qe$1,"selectionStart"in no&&Ne$1(no)?no={start:no.selectionStart,end:no.selectionEnd}:(no=(no.ownerDocument&&no.ownerDocument.defaultView||window).getSelection(),no={anchorNode:no.anchorNode,anchorOffset:no.anchorOffset,focusNode:no.focusNode,focusOffset:no.focusOffset}),Se$1&&Ie$1(Se$1,no)||(Se$1=no,no=oe$1(Re$1,"onSelect"),0Tf||(eo.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G$1(eo,to){Tf++,Sf[Tf]=eo.current,eo.current=to}var Vf={},H$3=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(eo,to){var ro=eo.type.contextTypes;if(!ro)return Vf;var no=eo.stateNode;if(no&&no.__reactInternalMemoizedUnmaskedChildContext===to)return no.__reactInternalMemoizedMaskedChildContext;var oo={},io;for(io in ro)oo[io]=to[io];return no&&(eo=eo.stateNode,eo.__reactInternalMemoizedUnmaskedChildContext=to,eo.__reactInternalMemoizedMaskedChildContext=oo),oo}function Zf(eo){return eo=eo.childContextTypes,eo!=null}function $f(){E$5(Wf),E$5(H$3)}function ag(eo,to,ro){if(H$3.current!==Vf)throw Error(p$9(168));G$1(H$3,to),G$1(Wf,ro)}function bg(eo,to,ro){var no=eo.stateNode;if(to=to.childContextTypes,typeof no.getChildContext!="function")return ro;no=no.getChildContext();for(var oo in no)if(!(oo in to))throw Error(p$9(108,Ra(eo)||"Unknown",oo));return A$6({},ro,no)}function cg(eo){return eo=(eo=eo.stateNode)&&eo.__reactInternalMemoizedMergedChildContext||Vf,Xf=H$3.current,G$1(H$3,eo),G$1(Wf,Wf.current),!0}function dg(eo,to,ro){var no=eo.stateNode;if(!no)throw Error(p$9(169));ro?(eo=bg(eo,to,Xf),no.__reactInternalMemoizedMergedChildContext=eo,E$5(Wf),E$5(H$3),G$1(H$3,eo)):E$5(Wf),G$1(Wf,ro)}var eg=null,fg=!1,gg=!1;function hg(eo){eg===null?eg=[eo]:eg.push(eo)}function ig(eo){fg=!0,hg(eo)}function jg(){if(!gg&&eg!==null){gg=!0;var eo=0,to=C$6;try{var ro=eg;for(C$6=1;eo>=so,oo-=so,rg=1<<32-oc(to)+oo|ro<Oo?(Ao=Co,Co=null):Ao=Co.sibling;var Ro=ho(xo,Co,Eo[Oo],So);if(Ro===null){Co===null&&(Co=Ao);break}eo&&Co&&Ro.alternate===null&&to(xo,Co),_o=io(Ro,_o,Oo),wo===null?To=Ro:wo.sibling=Ro,wo=Ro,Co=Ao}if(Oo===Eo.length)return ro(xo,Co),I$2&&tg(xo,Oo),To;if(Co===null){for(;OoOo?(Ao=Co,Co=null):Ao=Co.sibling;var No=ho(xo,Co,Ro.value,So);if(No===null){Co===null&&(Co=Ao);break}eo&&Co&&No.alternate===null&&to(xo,Co),_o=io(No,_o,Oo),wo===null?To=No:wo.sibling=No,wo=No,Co=Ao}if(Ro.done)return ro(xo,Co),I$2&&tg(xo,Oo),To;if(Co===null){for(;!Ro.done;Oo++,Ro=Eo.next())Ro=fo(xo,Ro.value,So),Ro!==null&&(_o=io(Ro,_o,Oo),wo===null?To=Ro:wo.sibling=Ro,wo=Ro);return I$2&&tg(xo,Oo),To}for(Co=no(xo,Co);!Ro.done;Oo++,Ro=Eo.next())Ro=po(Co,xo,Oo,Ro.value,So),Ro!==null&&(eo&&Ro.alternate!==null&&Co.delete(Ro.key===null?Oo:Ro.key),_o=io(Ro,_o,Oo),wo===null?To=Ro:wo.sibling=Ro,wo=Ro);return eo&&Co.forEach(function(Mo){return to(xo,Mo)}),I$2&&tg(xo,Oo),To}function bo(xo,_o,Eo,So){if(typeof Eo=="object"&&Eo!==null&&Eo.type===ya&&Eo.key===null&&(Eo=Eo.props.children),typeof Eo=="object"&&Eo!==null){switch(Eo.$$typeof){case va:e:{for(var To=Eo.key,wo=_o;wo!==null;){if(wo.key===To){if(To=Eo.type,To===ya){if(wo.tag===7){ro(xo,wo.sibling),_o=oo(wo,Eo.props.children),_o.return=xo,xo=_o;break e}}else if(wo.elementType===To||typeof To=="object"&&To!==null&&To.$$typeof===Ha&&uh(To)===wo.type){ro(xo,wo.sibling),_o=oo(wo,Eo.props),_o.ref=sh(xo,wo,Eo),_o.return=xo,xo=_o;break e}ro(xo,wo);break}else to(xo,wo);wo=wo.sibling}Eo.type===ya?(_o=Ah(Eo.props.children,xo.mode,So,Eo.key),_o.return=xo,xo=_o):(So=yh(Eo.type,Eo.key,Eo.props,null,xo.mode,So),So.ref=sh(xo,_o,Eo),So.return=xo,xo=So)}return so(xo);case wa:e:{for(wo=Eo.key;_o!==null;){if(_o.key===wo)if(_o.tag===4&&_o.stateNode.containerInfo===Eo.containerInfo&&_o.stateNode.implementation===Eo.implementation){ro(xo,_o.sibling),_o=oo(_o,Eo.children||[]),_o.return=xo,xo=_o;break e}else{ro(xo,_o);break}else to(xo,_o);_o=_o.sibling}_o=zh(Eo,xo.mode,So),_o.return=xo,xo=_o}return so(xo);case Ha:return wo=Eo._init,bo(xo,_o,wo(Eo._payload),So)}if(eb(Eo))return go(xo,_o,Eo,So);if(Ka(Eo))return vo(xo,_o,Eo,So);th(xo,Eo)}return typeof Eo=="string"&&Eo!==""||typeof Eo=="number"?(Eo=""+Eo,_o!==null&&_o.tag===6?(ro(xo,_o.sibling),_o=oo(_o,Eo),_o.return=xo,xo=_o):(ro(xo,_o),_o=xh(Eo,xo.mode,So),_o.return=xo,xo=_o),so(xo)):ro(xo,_o)}return bo}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(eo){if(eo===Dh)throw Error(p$9(174));return eo}function Ih(eo,to){switch(G$1(Gh,to),G$1(Fh,eo),G$1(Eh,Dh),eo=to.nodeType,eo){case 9:case 11:to=(to=to.documentElement)?to.namespaceURI:lb(null,"");break;default:eo=eo===8?to.parentNode:to,to=eo.namespaceURI||null,eo=eo.tagName,to=lb(to,eo)}E$5(Eh),G$1(Eh,to)}function Jh(){E$5(Eh),E$5(Fh),E$5(Gh)}function Kh(eo){Hh(Gh.current);var to=Hh(Eh.current),ro=lb(to,eo.type);to!==ro&&(G$1(Fh,eo),G$1(Eh,ro))}function Lh(eo){Fh.current===eo&&(E$5(Eh),E$5(Fh))}var M$4=Uf(0);function Mh(eo){for(var to=eo;to!==null;){if(to.tag===13){var ro=to.memoizedState;if(ro!==null&&(ro=ro.dehydrated,ro===null||ro.data==="$?"||ro.data==="$!"))return to}else if(to.tag===19&&to.memoizedProps.revealOrder!==void 0){if(to.flags&128)return to}else if(to.child!==null){to.child.return=to,to=to.child;continue}if(to===eo)break;for(;to.sibling===null;){if(to.return===null||to.return===eo)return null;to=to.return}to.sibling.return=to.return,to=to.sibling}return null}var Nh=[];function Oh(){for(var eo=0;eoro?ro:4,eo(!0);var no=Qh.transition;Qh.transition={};try{eo(!1),to()}finally{C$6=ro,Qh.transition=no}}function Fi$1(){return di$1().memoizedState}function Gi$1(eo,to,ro){var no=lh(eo);if(ro={lane:no,action:ro,hasEagerState:!1,eagerState:null,next:null},Hi$1(eo))Ii$1(to,ro);else if(ro=Yg(eo,to,ro,no),ro!==null){var oo=L$3();mh(ro,eo,no,oo),Ji$1(ro,to,no)}}function ri$1(eo,to,ro){var no=lh(eo),oo={lane:no,action:ro,hasEagerState:!1,eagerState:null,next:null};if(Hi$1(eo))Ii$1(to,oo);else{var io=eo.alternate;if(eo.lanes===0&&(io===null||io.lanes===0)&&(io=to.lastRenderedReducer,io!==null))try{var so=to.lastRenderedState,ao=io(so,ro);if(oo.hasEagerState=!0,oo.eagerState=ao,He$2(ao,so)){var lo=to.interleaved;lo===null?(oo.next=oo,Xg(to)):(oo.next=lo.next,lo.next=oo),to.interleaved=oo;return}}catch{}finally{}ro=Yg(eo,to,oo,no),ro!==null&&(oo=L$3(),mh(ro,eo,no,oo),Ji$1(ro,to,no))}}function Hi$1(eo){var to=eo.alternate;return eo===N$4||to!==null&&to===N$4}function Ii$1(eo,to){Th$1=Sh=!0;var ro=eo.pending;ro===null?to.next=to:(to.next=ro.next,ro.next=to),eo.pending=to}function Ji$1(eo,to,ro){if(ro&4194240){var no=to.lanes;no&=eo.pendingLanes,ro|=no,to.lanes=ro,Cc(eo,ro)}}var ai$1={readContext:Vg,useCallback:Q$1,useContext:Q$1,useEffect:Q$1,useImperativeHandle:Q$1,useInsertionEffect:Q$1,useLayoutEffect:Q$1,useMemo:Q$1,useReducer:Q$1,useRef:Q$1,useState:Q$1,useDebugValue:Q$1,useDeferredValue:Q$1,useTransition:Q$1,useMutableSource:Q$1,useSyncExternalStore:Q$1,useId:Q$1,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(eo,to){return ci$1().memoizedState=[eo,to===void 0?null:to],eo},useContext:Vg,useEffect:vi$1,useImperativeHandle:function(eo,to,ro){return ro=ro!=null?ro.concat([eo]):null,ti$1(4194308,4,yi$1.bind(null,to,eo),ro)},useLayoutEffect:function(eo,to){return ti$1(4194308,4,eo,to)},useInsertionEffect:function(eo,to){return ti$1(4,2,eo,to)},useMemo:function(eo,to){var ro=ci$1();return to=to===void 0?null:to,eo=eo(),ro.memoizedState=[eo,to],eo},useReducer:function(eo,to,ro){var no=ci$1();return to=ro!==void 0?ro(to):to,no.memoizedState=no.baseState=to,eo={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:eo,lastRenderedState:to},no.queue=eo,eo=eo.dispatch=Gi$1.bind(null,N$4,eo),[no.memoizedState,eo]},useRef:function(eo){var to=ci$1();return eo={current:eo},to.memoizedState=eo},useState:qi$1,useDebugValue:Ai$1,useDeferredValue:function(eo){return ci$1().memoizedState=eo},useTransition:function(){var eo=qi$1(!1),to=eo[0];return eo=Ei$1.bind(null,eo[1]),ci$1().memoizedState=eo,[to,eo]},useMutableSource:function(){},useSyncExternalStore:function(eo,to,ro){var no=N$4,oo=ci$1();if(I$2){if(ro===void 0)throw Error(p$9(407));ro=ro()}else{if(ro=to(),R$3===null)throw Error(p$9(349));Rh&30||ni$1(no,to,ro)}oo.memoizedState=ro;var io={value:ro,getSnapshot:to};return oo.queue=io,vi$1(ki$1.bind(null,no,io,eo),[eo]),no.flags|=2048,li$1(9,mi$1.bind(null,no,io,ro,to),void 0,null),ro},useId:function(){var eo=ci$1(),to=R$3.identifierPrefix;if(I$2){var ro=sg,no=rg;ro=(no&~(1<<32-oc(no)-1)).toString(32)+ro,to=":"+to+"R"+ro,ro=Uh++,0<\/script>",eo=eo.removeChild(eo.firstChild)):typeof no.is=="string"?eo=so.createElement(ro,{is:no.is}):(eo=so.createElement(ro),ro==="select"&&(so=eo,no.multiple?so.multiple=!0:no.size&&(so.size=no.size))):eo=so.createElementNS(eo,ro),eo[Of]=to,eo[Pf]=no,Aj(eo,to,!1,!1),to.stateNode=eo;e:{switch(so=vb(ro,no),ro){case"dialog":D$4("cancel",eo),D$4("close",eo),oo=no;break;case"iframe":case"object":case"embed":D$4("load",eo),oo=no;break;case"video":case"audio":for(oo=0;ooHj&&(to.flags|=128,no=!0,Ej(io,!1),to.lanes=4194304)}else{if(!no)if(eo=Mh(so),eo!==null){if(to.flags|=128,no=!0,ro=eo.updateQueue,ro!==null&&(to.updateQueue=ro,to.flags|=4),Ej(io,!0),io.tail===null&&io.tailMode==="hidden"&&!so.alternate&&!I$2)return S$5(to),null}else 2*B$3()-io.renderingStartTime>Hj&&ro!==1073741824&&(to.flags|=128,no=!0,Ej(io,!1),to.lanes=4194304);io.isBackwards?(so.sibling=to.child,to.child=so):(ro=io.last,ro!==null?ro.sibling=so:to.child=so,io.last=so)}return io.tail!==null?(to=io.tail,io.rendering=to,io.tail=to.sibling,io.renderingStartTime=B$3(),to.sibling=null,ro=M$4.current,G$1(M$4,no?ro&1|2:ro&1),to):(S$5(to),null);case 22:case 23:return Ij(),no=to.memoizedState!==null,eo!==null&&eo.memoizedState!==null!==no&&(to.flags|=8192),no&&to.mode&1?gj&1073741824&&(S$5(to),to.subtreeFlags&6&&(to.flags|=8192)):S$5(to),null;case 24:return null;case 25:return null}throw Error(p$9(156,to.tag))}function Jj(eo,to){switch(wg(to),to.tag){case 1:return Zf(to.type)&&$f(),eo=to.flags,eo&65536?(to.flags=eo&-65537|128,to):null;case 3:return Jh(),E$5(Wf),E$5(H$3),Oh(),eo=to.flags,eo&65536&&!(eo&128)?(to.flags=eo&-65537|128,to):null;case 5:return Lh(to),null;case 13:if(E$5(M$4),eo=to.memoizedState,eo!==null&&eo.dehydrated!==null){if(to.alternate===null)throw Error(p$9(340));Ig()}return eo=to.flags,eo&65536?(to.flags=eo&-65537|128,to):null;case 19:return E$5(M$4),null;case 4:return Jh(),null;case 10:return Rg(to.type._context),null;case 22:case 23:return Ij(),null;case 24:return null;default:return null}}var Kj=!1,U$1=!1,Lj=typeof WeakSet=="function"?WeakSet:Set,V$1=null;function Mj(eo,to){var ro=eo.ref;if(ro!==null)if(typeof ro=="function")try{ro(null)}catch(no){W$1(eo,to,no)}else ro.current=null}function Nj(eo,to,ro){try{ro()}catch(no){W$1(eo,to,no)}}var Oj=!1;function Pj(eo,to){if(Cf=dd,eo=Me$2(),Ne$1(eo)){if("selectionStart"in eo)var ro={start:eo.selectionStart,end:eo.selectionEnd};else e:{ro=(ro=eo.ownerDocument)&&ro.defaultView||window;var no=ro.getSelection&&ro.getSelection();if(no&&no.rangeCount!==0){ro=no.anchorNode;var oo=no.anchorOffset,io=no.focusNode;no=no.focusOffset;try{ro.nodeType,io.nodeType}catch{ro=null;break e}var so=0,ao=-1,lo=-1,uo=0,co=0,fo=eo,ho=null;t:for(;;){for(var po;fo!==ro||oo!==0&&fo.nodeType!==3||(ao=so+oo),fo!==io||no!==0&&fo.nodeType!==3||(lo=so+no),fo.nodeType===3&&(so+=fo.nodeValue.length),(po=fo.firstChild)!==null;)ho=fo,fo=po;for(;;){if(fo===eo)break t;if(ho===ro&&++uo===oo&&(ao=so),ho===io&&++co===no&&(lo=so),(po=fo.nextSibling)!==null)break;fo=ho,ho=fo.parentNode}fo=po}ro=ao===-1||lo===-1?null:{start:ao,end:lo}}else ro=null}ro=ro||{start:0,end:0}}else ro=null;for(Df={focusedElem:eo,selectionRange:ro},dd=!1,V$1=to;V$1!==null;)if(to=V$1,eo=to.child,(to.subtreeFlags&1028)!==0&&eo!==null)eo.return=to,V$1=eo;else for(;V$1!==null;){to=V$1;try{var go=to.alternate;if(to.flags&1024)switch(to.tag){case 0:case 11:case 15:break;case 1:if(go!==null){var vo=go.memoizedProps,bo=go.memoizedState,xo=to.stateNode,_o=xo.getSnapshotBeforeUpdate(to.elementType===to.type?vo:Lg(to.type,vo),bo);xo.__reactInternalSnapshotBeforeUpdate=_o}break;case 3:var Eo=to.stateNode.containerInfo;Eo.nodeType===1?Eo.textContent="":Eo.nodeType===9&&Eo.documentElement&&Eo.removeChild(Eo.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$9(163))}}catch(So){W$1(to,to.return,So)}if(eo=to.sibling,eo!==null){eo.return=to.return,V$1=eo;break}V$1=to.return}return go=Oj,Oj=!1,go}function Qj(eo,to,ro){var no=to.updateQueue;if(no=no!==null?no.lastEffect:null,no!==null){var oo=no=no.next;do{if((oo.tag&eo)===eo){var io=oo.destroy;oo.destroy=void 0,io!==void 0&&Nj(to,ro,io)}oo=oo.next}while(oo!==no)}}function Rj(eo,to){if(to=to.updateQueue,to=to!==null?to.lastEffect:null,to!==null){var ro=to=to.next;do{if((ro.tag&eo)===eo){var no=ro.create;ro.destroy=no()}ro=ro.next}while(ro!==to)}}function Sj(eo){var to=eo.ref;if(to!==null){var ro=eo.stateNode;switch(eo.tag){case 5:eo=ro;break;default:eo=ro}typeof to=="function"?to(eo):to.current=eo}}function Tj(eo){var to=eo.alternate;to!==null&&(eo.alternate=null,Tj(to)),eo.child=null,eo.deletions=null,eo.sibling=null,eo.tag===5&&(to=eo.stateNode,to!==null&&(delete to[Of],delete to[Pf],delete to[of$1],delete to[Qf],delete to[Rf])),eo.stateNode=null,eo.return=null,eo.dependencies=null,eo.memoizedProps=null,eo.memoizedState=null,eo.pendingProps=null,eo.stateNode=null,eo.updateQueue=null}function Uj(eo){return eo.tag===5||eo.tag===3||eo.tag===4}function Vj(eo){e:for(;;){for(;eo.sibling===null;){if(eo.return===null||Uj(eo.return))return null;eo=eo.return}for(eo.sibling.return=eo.return,eo=eo.sibling;eo.tag!==5&&eo.tag!==6&&eo.tag!==18;){if(eo.flags&2||eo.child===null||eo.tag===4)continue e;eo.child.return=eo,eo=eo.child}if(!(eo.flags&2))return eo.stateNode}}function Wj(eo,to,ro){var no=eo.tag;if(no===5||no===6)eo=eo.stateNode,to?ro.nodeType===8?ro.parentNode.insertBefore(eo,to):ro.insertBefore(eo,to):(ro.nodeType===8?(to=ro.parentNode,to.insertBefore(eo,ro)):(to=ro,to.appendChild(eo)),ro=ro._reactRootContainer,ro!=null||to.onclick!==null||(to.onclick=Bf));else if(no!==4&&(eo=eo.child,eo!==null))for(Wj(eo,to,ro),eo=eo.sibling;eo!==null;)Wj(eo,to,ro),eo=eo.sibling}function Xj(eo,to,ro){var no=eo.tag;if(no===5||no===6)eo=eo.stateNode,to?ro.insertBefore(eo,to):ro.appendChild(eo);else if(no!==4&&(eo=eo.child,eo!==null))for(Xj(eo,to,ro),eo=eo.sibling;eo!==null;)Xj(eo,to,ro),eo=eo.sibling}var X$1=null,Yj=!1;function Zj(eo,to,ro){for(ro=ro.child;ro!==null;)ak(eo,to,ro),ro=ro.sibling}function ak(eo,to,ro){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,ro)}catch{}switch(ro.tag){case 5:U$1||Mj(ro,to);case 6:var no=X$1,oo=Yj;X$1=null,Zj(eo,to,ro),X$1=no,Yj=oo,X$1!==null&&(Yj?(eo=X$1,ro=ro.stateNode,eo.nodeType===8?eo.parentNode.removeChild(ro):eo.removeChild(ro)):X$1.removeChild(ro.stateNode));break;case 18:X$1!==null&&(Yj?(eo=X$1,ro=ro.stateNode,eo.nodeType===8?Kf(eo.parentNode,ro):eo.nodeType===1&&Kf(eo,ro),bd(eo)):Kf(X$1,ro.stateNode));break;case 4:no=X$1,oo=Yj,X$1=ro.stateNode.containerInfo,Yj=!0,Zj(eo,to,ro),X$1=no,Yj=oo;break;case 0:case 11:case 14:case 15:if(!U$1&&(no=ro.updateQueue,no!==null&&(no=no.lastEffect,no!==null))){oo=no=no.next;do{var io=oo,so=io.destroy;io=io.tag,so!==void 0&&(io&2||io&4)&&Nj(ro,to,so),oo=oo.next}while(oo!==no)}Zj(eo,to,ro);break;case 1:if(!U$1&&(Mj(ro,to),no=ro.stateNode,typeof no.componentWillUnmount=="function"))try{no.props=ro.memoizedProps,no.state=ro.memoizedState,no.componentWillUnmount()}catch(ao){W$1(ro,to,ao)}Zj(eo,to,ro);break;case 21:Zj(eo,to,ro);break;case 22:ro.mode&1?(U$1=(no=U$1)||ro.memoizedState!==null,Zj(eo,to,ro),U$1=no):Zj(eo,to,ro);break;default:Zj(eo,to,ro)}}function bk$1(eo){var to=eo.updateQueue;if(to!==null){eo.updateQueue=null;var ro=eo.stateNode;ro===null&&(ro=eo.stateNode=new Lj),to.forEach(function(no){var oo=ck.bind(null,eo,no);ro.has(no)||(ro.add(no),no.then(oo,oo))})}}function dk(eo,to){var ro=to.deletions;if(ro!==null)for(var no=0;nooo&&(oo=so),no&=~io}if(no=oo,no=B$3()-no,no=(120>no?120:480>no?480:1080>no?1080:1920>no?1920:3e3>no?3e3:4320>no?4320:1960*mk(no/1960))-no,10eo?16:eo,xk===null)var no=!1;else{if(eo=xk,xk=null,yk=0,K$3&6)throw Error(p$9(331));var oo=K$3;for(K$3|=4,V$1=eo.current;V$1!==null;){var io=V$1,so=io.child;if(V$1.flags&16){var ao=io.deletions;if(ao!==null){for(var lo=0;loB$3()-gk?Lk(eo,0):sk|=ro),Ek(eo,to)}function Zk(eo,to){to===0&&(eo.mode&1?(to=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):to=1);var ro=L$3();eo=Zg(eo,to),eo!==null&&(Ac(eo,to,ro),Ek(eo,ro))}function vj(eo){var to=eo.memoizedState,ro=0;to!==null&&(ro=to.retryLane),Zk(eo,ro)}function ck(eo,to){var ro=0;switch(eo.tag){case 13:var no=eo.stateNode,oo=eo.memoizedState;oo!==null&&(ro=oo.retryLane);break;case 19:no=eo.stateNode;break;default:throw Error(p$9(314))}no!==null&&no.delete(to),Zk(eo,ro)}var Wk;Wk=function(eo,to,ro){if(eo!==null)if(eo.memoizedProps!==to.pendingProps||Wf.current)Ug=!0;else{if(!(eo.lanes&ro)&&!(to.flags&128))return Ug=!1,zj(eo,to,ro);Ug=!!(eo.flags&131072)}else Ug=!1,I$2&&to.flags&1048576&&ug(to,ng,to.index);switch(to.lanes=0,to.tag){case 2:var no=to.type;jj(eo,to),eo=to.pendingProps;var oo=Yf(to,H$3.current);Tg(to,ro),oo=Xh(null,to,no,eo,oo,ro);var io=bi$1();return to.flags|=1,typeof oo=="object"&&oo!==null&&typeof oo.render=="function"&&oo.$$typeof===void 0?(to.tag=1,to.memoizedState=null,to.updateQueue=null,Zf(no)?(io=!0,cg(to)):io=!1,to.memoizedState=oo.state!==null&&oo.state!==void 0?oo.state:null,ah(to),oo.updater=nh,to.stateNode=oo,oo._reactInternals=to,rh(to,no,eo,ro),to=kj(null,to,no,!0,io,ro)):(to.tag=0,I$2&&io&&vg(to),Yi$1(null,to,oo,ro),to=to.child),to;case 16:no=to.elementType;e:{switch(jj(eo,to),eo=to.pendingProps,oo=no._init,no=oo(no._payload),to.type=no,oo=to.tag=$k(no),eo=Lg(no,eo),oo){case 0:to=dj(null,to,no,eo,ro);break e;case 1:to=ij(null,to,no,eo,ro);break e;case 11:to=Zi$1(null,to,no,eo,ro);break e;case 14:to=aj(null,to,no,Lg(no.type,eo),ro);break e}throw Error(p$9(306,no,""))}return to;case 0:return no=to.type,oo=to.pendingProps,oo=to.elementType===no?oo:Lg(no,oo),dj(eo,to,no,oo,ro);case 1:return no=to.type,oo=to.pendingProps,oo=to.elementType===no?oo:Lg(no,oo),ij(eo,to,no,oo,ro);case 3:e:{if(lj(to),eo===null)throw Error(p$9(387));no=to.pendingProps,io=to.memoizedState,oo=io.element,bh(eo,to),gh(to,no,null,ro);var so=to.memoizedState;if(no=so.element,io.isDehydrated)if(io={element:no,isDehydrated:!1,cache:so.cache,pendingSuspenseBoundaries:so.pendingSuspenseBoundaries,transitions:so.transitions},to.updateQueue.baseState=io,to.memoizedState=io,to.flags&256){oo=Ki$1(Error(p$9(423)),to),to=mj(eo,to,no,ro,oo);break e}else if(no!==oo){oo=Ki$1(Error(p$9(424)),to),to=mj(eo,to,no,ro,oo);break e}else for(yg=Lf(to.stateNode.containerInfo.firstChild),xg=to,I$2=!0,zg=null,ro=Ch(to,null,no,ro),to.child=ro;ro;)ro.flags=ro.flags&-3|4096,ro=ro.sibling;else{if(Ig(),no===oo){to=$i$1(eo,to,ro);break e}Yi$1(eo,to,no,ro)}to=to.child}return to;case 5:return Kh(to),eo===null&&Eg(to),no=to.type,oo=to.pendingProps,io=eo!==null?eo.memoizedProps:null,so=oo.children,Ef(no,oo)?so=null:io!==null&&Ef(no,io)&&(to.flags|=32),hj(eo,to),Yi$1(eo,to,so,ro),to.child;case 6:return eo===null&&Eg(to),null;case 13:return pj(eo,to,ro);case 4:return Ih(to,to.stateNode.containerInfo),no=to.pendingProps,eo===null?to.child=Bh(to,null,no,ro):Yi$1(eo,to,no,ro),to.child;case 11:return no=to.type,oo=to.pendingProps,oo=to.elementType===no?oo:Lg(no,oo),Zi$1(eo,to,no,oo,ro);case 7:return Yi$1(eo,to,to.pendingProps,ro),to.child;case 8:return Yi$1(eo,to,to.pendingProps.children,ro),to.child;case 12:return Yi$1(eo,to,to.pendingProps.children,ro),to.child;case 10:e:{if(no=to.type._context,oo=to.pendingProps,io=to.memoizedProps,so=oo.value,G$1(Mg,no._currentValue),no._currentValue=so,io!==null)if(He$2(io.value,so)){if(io.children===oo.children&&!Wf.current){to=$i$1(eo,to,ro);break e}}else for(io=to.child,io!==null&&(io.return=to);io!==null;){var ao=io.dependencies;if(ao!==null){so=io.child;for(var lo=ao.firstContext;lo!==null;){if(lo.context===no){if(io.tag===1){lo=ch(-1,ro&-ro),lo.tag=2;var uo=io.updateQueue;if(uo!==null){uo=uo.shared;var co=uo.pending;co===null?lo.next=lo:(lo.next=co.next,co.next=lo),uo.pending=lo}}io.lanes|=ro,lo=io.alternate,lo!==null&&(lo.lanes|=ro),Sg(io.return,ro,to),ao.lanes|=ro;break}lo=lo.next}}else if(io.tag===10)so=io.type===to.type?null:io.child;else if(io.tag===18){if(so=io.return,so===null)throw Error(p$9(341));so.lanes|=ro,ao=so.alternate,ao!==null&&(ao.lanes|=ro),Sg(so,ro,to),so=io.sibling}else so=io.child;if(so!==null)so.return=io;else for(so=io;so!==null;){if(so===to){so=null;break}if(io=so.sibling,io!==null){io.return=so.return,so=io;break}so=so.return}io=so}Yi$1(eo,to,oo.children,ro),to=to.child}return to;case 9:return oo=to.type,no=to.pendingProps.children,Tg(to,ro),oo=Vg(oo),no=no(oo),to.flags|=1,Yi$1(eo,to,no,ro),to.child;case 14:return no=to.type,oo=Lg(no,to.pendingProps),oo=Lg(no.type,oo),aj(eo,to,no,oo,ro);case 15:return cj(eo,to,to.type,to.pendingProps,ro);case 17:return no=to.type,oo=to.pendingProps,oo=to.elementType===no?oo:Lg(no,oo),jj(eo,to),to.tag=1,Zf(no)?(eo=!0,cg(to)):eo=!1,Tg(to,ro),ph(to,no,oo),rh(to,no,oo,ro),kj(null,to,no,!0,eo,ro);case 19:return yj(eo,to,ro);case 22:return ej(eo,to,ro)}throw Error(p$9(156,to.tag))};function Gk(eo,to){return ac(eo,to)}function al(eo,to,ro,no){this.tag=eo,this.key=ro,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=to,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=no,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(eo,to,ro,no){return new al(eo,to,ro,no)}function bj(eo){return eo=eo.prototype,!(!eo||!eo.isReactComponent)}function $k(eo){if(typeof eo=="function")return bj(eo)?1:0;if(eo!=null){if(eo=eo.$$typeof,eo===Da)return 11;if(eo===Ga)return 14}return 2}function wh(eo,to){var ro=eo.alternate;return ro===null?(ro=Bg(eo.tag,to,eo.key,eo.mode),ro.elementType=eo.elementType,ro.type=eo.type,ro.stateNode=eo.stateNode,ro.alternate=eo,eo.alternate=ro):(ro.pendingProps=to,ro.type=eo.type,ro.flags=0,ro.subtreeFlags=0,ro.deletions=null),ro.flags=eo.flags&14680064,ro.childLanes=eo.childLanes,ro.lanes=eo.lanes,ro.child=eo.child,ro.memoizedProps=eo.memoizedProps,ro.memoizedState=eo.memoizedState,ro.updateQueue=eo.updateQueue,to=eo.dependencies,ro.dependencies=to===null?null:{lanes:to.lanes,firstContext:to.firstContext},ro.sibling=eo.sibling,ro.index=eo.index,ro.ref=eo.ref,ro}function yh(eo,to,ro,no,oo,io){var so=2;if(no=eo,typeof eo=="function")bj(eo)&&(so=1);else if(typeof eo=="string")so=5;else e:switch(eo){case ya:return Ah(ro.children,oo,io,to);case za:so=8,oo|=8;break;case Aa:return eo=Bg(12,ro,to,oo|2),eo.elementType=Aa,eo.lanes=io,eo;case Ea:return eo=Bg(13,ro,to,oo),eo.elementType=Ea,eo.lanes=io,eo;case Fa:return eo=Bg(19,ro,to,oo),eo.elementType=Fa,eo.lanes=io,eo;case Ia:return qj(ro,oo,io,to);default:if(typeof eo=="object"&&eo!==null)switch(eo.$$typeof){case Ba:so=10;break e;case Ca:so=9;break e;case Da:so=11;break e;case Ga:so=14;break e;case Ha:so=16,no=null;break e}throw Error(p$9(130,eo==null?eo:typeof eo,""))}return to=Bg(so,ro,to,oo),to.elementType=eo,to.type=no,to.lanes=io,to}function Ah(eo,to,ro,no){return eo=Bg(7,eo,no,to),eo.lanes=ro,eo}function qj(eo,to,ro,no){return eo=Bg(22,eo,no,to),eo.elementType=Ia,eo.lanes=ro,eo.stateNode={isHidden:!1},eo}function xh(eo,to,ro){return eo=Bg(6,eo,null,to),eo.lanes=ro,eo}function zh(eo,to,ro){return to=Bg(4,eo.children!==null?eo.children:[],eo.key,to),to.lanes=ro,to.stateNode={containerInfo:eo.containerInfo,pendingChildren:null,implementation:eo.implementation},to}function bl(eo,to,ro,no,oo){this.tag=to,this.containerInfo=eo,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=no,this.onRecoverableError=oo,this.mutableSourceEagerHydrationData=null}function cl(eo,to,ro,no,oo,io,so,ao,lo){return eo=new bl(eo,to,ro,ao,lo),to===1?(to=1,io===!0&&(to|=8)):to=0,io=Bg(3,null,null,to),eo.current=io,io.stateNode=eo,io.memoizedState={element:no,isDehydrated:ro,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(io),eo}function dl(eo,to,ro){var no=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(eo){console.error(eo)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const ReactDOM=getDefaultExportFromCjs(reactDomExports);var m$9=reactDomExports;client.createRoot=m$9.createRoot,client.hydrateRoot=m$9.hydrateRoot;const positionMap=["Top","Right","Bottom","Left"];function generateStyles(eo,to,...ro){const[no,oo=no,io=no,so=oo]=ro,ao=[no,oo,io,so],lo={};for(let uo=0;uotypeof eo=="string"&&/(\d+(\w+|%))/.test(eo),isUnitless=eo=>typeof eo=="number"&&!Number.isNaN(eo),isInitial=eo=>eo==="initial",isAuto=eo=>eo==="auto",isNone=eo=>eo==="none",widthReservedKeys=["content","fit-content","max-content","min-content"],isWidth=eo=>widthReservedKeys.some(to=>eo===to)||isUnit(eo);function flex(...eo){const to=eo.length===1,ro=eo.length===2,no=eo.length===3;if(to){const[oo]=eo;if(isInitial(oo))return{flexGrow:0,flexShrink:1,flexBasis:"auto"};if(isAuto(oo))return{flexGrow:1,flexShrink:1,flexBasis:"auto"};if(isNone(oo))return{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(isUnitless(oo))return{flexGrow:oo,flexShrink:1,flexBasis:0};if(isWidth(oo))return{flexGrow:1,flexShrink:1,flexBasis:oo}}if(ro){const[oo,io]=eo;if(isUnitless(io))return{flexGrow:oo,flexShrink:io,flexBasis:0};if(isWidth(io))return{flexGrow:oo,flexShrink:1,flexBasis:io}}if(no){const[oo,io,so]=eo;if(isUnitless(oo)&&isUnitless(io)&&(isAuto(so)||isWidth(so)))return{flexGrow:oo,flexShrink:io,flexBasis:so}}return{}}function gap(eo,to=eo){return{columnGap:eo,rowGap:to}}const cssVarRegEx=/var\(.*\)/gi;function isValidGridAreaInput(eo){return eo===void 0||typeof eo=="number"||typeof eo=="string"&&!cssVarRegEx.test(eo)}const customIdentRegEx=/^[a-zA-Z0-9\-_\\#;]+$/,nonCustomIdentRegEx=/^-moz-initial$|^auto$|^initial$|^inherit$|^revert$|^unset$|^span \d+$|^\d.*/;function isCustomIdent(eo){return eo!==void 0&&typeof eo=="string"&&customIdentRegEx.test(eo)&&!nonCustomIdentRegEx.test(eo)}function gridArea(...eo){if(eo.some(io=>!isValidGridAreaInput(io)))return{};const to=eo[0]!==void 0?eo[0]:"auto",ro=eo[1]!==void 0?eo[1]:isCustomIdent(to)?to:"auto",no=eo[2]!==void 0?eo[2]:isCustomIdent(to)?to:"auto",oo=eo[3]!==void 0?eo[3]:isCustomIdent(ro)?ro:"auto";return{gridRowStart:to,gridColumnStart:ro,gridRowEnd:no,gridColumnEnd:oo}}function margin(...eo){return generateStyles("margin","",...eo)}function marginBlock(eo,to=eo){return{marginBlockStart:eo,marginBlockEnd:to}}function marginInline(eo,to=eo){return{marginInlineStart:eo,marginInlineEnd:to}}function padding(...eo){return generateStyles("padding","",...eo)}function paddingBlock(eo,to=eo){return{paddingBlockStart:eo,paddingBlockEnd:to}}function paddingInline(eo,to=eo){return{paddingInlineStart:eo,paddingInlineEnd:to}}function overflow(eo,to=eo){return{overflowX:eo,overflowY:to}}function inset(...eo){const[to,ro=to,no=to,oo=ro]=eo;return{top:to,right:ro,bottom:no,left:oo}}function outline(eo,to,ro){return{outlineWidth:eo,...to&&{outlineStyle:to},...ro&&{outlineColor:ro}}}function transition$1(...eo){return isTransitionGlobalInputs(eo)?{transitionDelay:eo[0],transitionDuration:eo[0],transitionProperty:eo[0],transitionTimingFunction:eo[0]}:normalizeTransitionInputs(eo).reduce((ro,[no,oo="0s",io="0s",so="ease"],ao)=>(ao===0?(ro.transitionProperty=no,ro.transitionDuration=oo,ro.transitionDelay=io,ro.transitionTimingFunction=so):(ro.transitionProperty+=`, ${no}`,ro.transitionDuration+=`, ${oo}`,ro.transitionDelay+=`, ${io}`,ro.transitionTimingFunction+=`, ${so}`),ro),{})}const transitionGlobalInputs=["-moz-initial","inherit","initial","revert","unset"];function isTransitionGlobalInputs(eo){return eo.length===1&&transitionGlobalInputs.includes(eo[0])}function normalizeTransitionInputs(eo){return eo.length===1&&Array.isArray(eo[0])?eo[0]:[eo]}function textDecoration(eo,...to){if(to.length===0)return isTextDecorationStyleInput(eo)?{textDecorationStyle:eo}:{textDecorationLine:eo};const[ro,no,oo]=to;return{textDecorationLine:eo,...ro&&{textDecorationStyle:ro},...no&&{textDecorationColor:no},...oo&&{textDecorationThickness:oo}}}const textDecorationStyleInputs=["dashed","dotted","double","solid","wavy"];function isTextDecorationStyleInput(eo){return textDecorationStyleInputs.includes(eo)}const __GLOBAL__=typeof window>"u"?global:window,__NAMESPACE_PREFIX__="@griffel/";function getGlobalVar(eo,to){return __GLOBAL__[Symbol.for(__NAMESPACE_PREFIX__+eo)]||(__GLOBAL__[Symbol.for(__NAMESPACE_PREFIX__+eo)]=to),__GLOBAL__[Symbol.for(__NAMESPACE_PREFIX__+eo)]}const DEFINITION_LOOKUP_TABLE=getGlobalVar("DEFINITION_LOOKUP_TABLE",{}),DATA_BUCKET_ATTR="data-make-styles-bucket",HASH_PREFIX="f",SEQUENCE_HASH_LENGTH=7,SEQUENCE_PREFIX="___",SEQUENCE_SIZE=SEQUENCE_PREFIX.length+SEQUENCE_HASH_LENGTH,LOOKUP_DEFINITIONS_INDEX=0,LOOKUP_DIR_INDEX=1,UNSUPPORTED_CSS_PROPERTIES={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 murmur2(eo){for(var to=0,ro,no=0,oo=eo.length;oo>=4;++no,oo-=4)ro=eo.charCodeAt(no)&255|(eo.charCodeAt(++no)&255)<<8|(eo.charCodeAt(++no)&255)<<16|(eo.charCodeAt(++no)&255)<<24,ro=(ro&65535)*1540483477+((ro>>>16)*59797<<16),ro^=ro>>>24,to=(ro&65535)*1540483477+((ro>>>16)*59797<<16)^(to&65535)*1540483477+((to>>>16)*59797<<16);switch(oo){case 3:to^=(eo.charCodeAt(no+2)&255)<<16;case 2:to^=(eo.charCodeAt(no+1)&255)<<8;case 1:to^=eo.charCodeAt(no)&255,to=(to&65535)*1540483477+((to>>>16)*59797<<16)}return to^=to>>>13,to=(to&65535)*1540483477+((to>>>16)*59797<<16),((to^to>>>15)>>>0).toString(36)}function padEndHash(eo){const to=eo.length;if(to===SEQUENCE_HASH_LENGTH)return eo;for(let ro=to;ro0&&(to+=co.slice(0,fo)),ro+=ho,no[uo]=ho}}}if(ro==="")return to.slice(0,-1);const oo=mergeClassesCachedResults[ro];if(oo!==void 0)return to+oo;const io=[];for(let uo=0;uo{const to=Object.keys(mergeClassesCachedResults).find(ro=>mergeClassesCachedResults[ro].startsWith(eo));return to?to.split(SEQUENCE_PREFIX).filter(ro=>ro.length).map(ro=>SEQUENCE_PREFIX+ro):[]},addCSSRule:eo=>{cssRules.add(eo)},addSequenceDetails:(eo,to)=>{Object.entries(eo).forEach(([ro,no])=>{sequenceDetails[no.substring(0,SEQUENCE_SIZE)]={slotName:ro,sourceURL:to}})},getCSSRules:()=>Array.from(cssRules),getSequenceDetails:eo=>sequenceDetails[eo]};function getDirectionalClassName(eo,to){return Array.isArray(eo)?to==="rtl"?eo[1]:eo[0]:eo}function getDebugClassNames(eo,to,ro,no){const oo=eo[0],io=eo[1];return Object.entries(oo).map(([so,ao])=>{const lo=getDirectionalClassName(ao,io);let uo;if(ro&&to){const co=ro.find(({className:fo})=>fo===lo);!co&&to[0][so]?uo=getDirectionalClassName(to[0][so],to[1]):co&&to[0][so]?uo=(no?no.filter(({debugClassNames:ho})=>ho.filter(({className:po})=>po===lo).length>0).length>0:!1)?co.className:co.overriddenBy:(!co&&!to[0][so]||co&&!to[0][so])&&(uo=void 0)}return{className:lo,overriddenBy:uo}})}function getDebugTree(eo,to){const ro=DEFINITION_LOOKUP_TABLE[eo];if(ro===void 0)return;const no=to?DEFINITION_LOOKUP_TABLE[to.sequenceHash]:void 0,oo=getDebugClassNames(ro,no,to==null?void 0:to.debugClassNames,to==null?void 0:to.children),io={sequenceHash:eo,direction:ro[1],children:[],debugClassNames:oo};return debugData.getChildrenSequences(io.sequenceHash).reverse().forEach(ao=>{const lo=getDebugTree(ao,io);lo&&io.children.push(lo)}),io.children.length||(io.rules={},io.debugClassNames.forEach(({className:ao})=>{const lo=debugData.getSequenceDetails(eo);lo&&(io.slot=lo.slotName,io.sourceURL=lo.sourceURL);const uo=debugData.getCSSRules().find(co=>co.includes(ao));io.rules[ao]=uo})),io}function injectDevTools(eo){const to=eo.defaultView;if(!to||to.__GRIFFEL_DEVTOOLS__)return;const ro={getInfo:no=>{const oo=Array.from(no.classList).find(io=>io.startsWith(SEQUENCE_PREFIX));if(oo!==void 0)return getDebugTree(oo)}};Object.defineProperty(to,"__GRIFFEL_DEVTOOLS__",{configurable:!1,enumerable:!1,get(){return ro}})}function normalizeCSSBucketEntry(eo){return Array.isArray(eo)?eo:[eo]}function createIsomorphicStyleSheet(eo,to,ro){const no=[];if(ro[DATA_BUCKET_ATTR]=to,eo)for(const io in ro)eo.setAttribute(io,ro[io]);function oo(io){return eo!=null&&eo.sheet?eo.sheet.insertRule(io,eo.sheet.cssRules.length):no.push(io)}return{elementAttributes:ro,insertRule:oo,element:eo,bucketName:to,cssRules(){return eo!=null&&eo.sheet?Array.from(eo.sheet.cssRules).map(io=>io.cssText):no}}}const styleBucketOrdering=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"],styleBucketOrderingMap=styleBucketOrdering.reduce((eo,to,ro)=>(eo[to]=ro,eo),{});function getStyleSheetForBucket(eo,to,ro,no,oo={}){const io=eo==="m",so=io?eo+oo.m:eo;if(!no.stylesheets[so]){const ao=to&&to.createElement("style"),lo=createIsomorphicStyleSheet(ao,eo,{...no.styleElementAttributes,...io&&{media:oo.m}});no.stylesheets[so]=lo,to&&ao&&to.head.insertBefore(ao,findInsertionPoint(to,ro,eo,no,oo))}return no.stylesheets[so]}function findInsertionPoint(eo,to,ro,no,oo){const io=styleBucketOrderingMap[ro];let so=co=>io-styleBucketOrderingMap[co.getAttribute(DATA_BUCKET_ATTR)],ao=eo.head.querySelectorAll(`[${DATA_BUCKET_ATTR}]`);if(ro==="m"&&oo){const co=eo.head.querySelectorAll(`[${DATA_BUCKET_ATTR}="${ro}"]`);co.length&&(ao=co,so=fo=>no.compareMediaQueries(oo.m,fo.media))}const lo=ao.length;let uo=lo-1;for(;uo>=0;){const co=ao.item(uo);if(so(co)>0)return co.nextSibling;uo--}return lo>0?ao.item(0):to?to.nextSibling:null}function safeInsertRule(eo,to){try{eo.insertRule(to)}catch{}}let lastIndex=0;const defaultCompareMediaQueries=(eo,to)=>eoto?1:0;function createDOMRenderer(eo=typeof document>"u"?void 0:document,to={}){const{unstable_filterCSSRule:ro,insertionPoint:no,styleElementAttributes:oo,compareMediaQueries:io=defaultCompareMediaQueries}=to,so={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(oo),compareMediaQueries:io,id:`d${lastIndex++}`,insertCSSRules(ao){for(const lo in ao){const uo=ao[lo];for(let co=0,fo=uo.length;co{const eo={};return function(ro,no){eo[ro.id]===void 0&&(ro.insertCSSRules(no),eo[ro.id]=!0)}};function arrayToObject(eo){return eo.reduce(function(to,ro){var no=ro[0],oo=ro[1];return to[no]=oo,to[oo]=no,to},{})}function isBoolean(eo){return typeof eo=="boolean"}function isFunction$7(eo){return typeof eo=="function"}function isNumber$2(eo){return typeof eo=="number"}function isNullOrUndefined$1(eo){return eo===null||typeof eo>"u"}function isObject$i(eo){return eo&&typeof eo=="object"}function isString$2(eo){return typeof eo=="string"}function includes(eo,to){return eo.indexOf(to)!==-1}function flipSign(eo){return parseFloat(eo)===0?eo:eo[0]==="-"?eo.slice(1):"-"+eo}function flipTransformSign(eo,to,ro,no){return to+flipSign(ro)+no}function calculateNewBackgroundPosition(eo){var to=eo.indexOf(".");if(to===-1)eo=100-parseFloat(eo)+"%";else{var ro=eo.length-to-2;eo=100-parseFloat(eo),eo=eo.toFixed(ro)+"%"}return eo}function getValuesAsList(eo){return eo.replace(/ +/g," ").split(" ").map(function(to){return to.trim()}).filter(Boolean).reduce(function(to,ro){var no=to.list,oo=to.state,io=(ro.match(/\(/g)||[]).length,so=(ro.match(/\)/g)||[]).length;return oo.parensDepth>0?no[no.length-1]=no[no.length-1]+" "+ro:no.push(ro),oo.parensDepth+=io-so,{list:no,state:oo}},{list:[],state:{parensDepth:0}}).list}function handleQuartetValues(eo){var to=getValuesAsList(eo);if(to.length<=3||to.length>4)return eo;var ro=to[0],no=to[1],oo=to[2],io=to[3];return[ro,io,oo,no].join(" ")}function canConvertValue(eo){return!isBoolean(eo)&&!isNullOrUndefined$1(eo)}function splitShadow(eo){for(var to=[],ro=0,no=0,oo=!1;no0?charat$1(characters$1,--position$3):0,column$1--,character$1===10&&(column$1=1,line$2--),character$1}function next$1(){return character$1=position$32||token$2(character$1)>3?"":" "}function tokenizer(eo){for(;next$1();)switch(token$2(character$1)){case 0:append$1(identifier$1(position$3-1),eo);break;case 2:append$1(delimit$1(character$1),eo);break;default:append$1(from$2(character$1),eo)}return eo}function escaping$1(eo,to){for(;--to&&next$1()&&!(character$1<48||character$1>102||character$1>57&&character$1<65||character$1>70&&character$1<97););return slice$1(eo,caret$1()+(to<6&&peek$1()==32&&next$1()==32))}function delimiter$1(eo){for(;next$1();)switch(character$1){case eo:return position$3;case 34:case 39:eo!==34&&eo!==39&&delimiter$1(character$1);break;case 40:eo===41&&delimiter$1(eo);break;case 92:next$1();break}return position$3}function commenter$1(eo,to){for(;next$1()&&eo+character$1!==57;)if(eo+character$1===84&&peek$1()===47)break;return"/*"+slice$1(to,position$3-1)+"*"+from$2(eo===47?eo:next$1())}function identifier$1(eo){for(;!token$2(peek$1());)next$1();return slice$1(eo,position$3)}function compile$1(eo){return dealloc$1(parse$n("",null,null,null,[""],eo=alloc$1(eo),0,[0],eo))}function parse$n(eo,to,ro,no,oo,io,so,ao,lo){for(var uo=0,co=0,fo=so,ho=0,po=0,go=0,vo=1,bo=1,xo=1,_o=0,Eo="",So=oo,To=io,wo=no,Co=Eo;bo;)switch(go=_o,_o=next$1()){case 40:if(go!=108&&charat$1(Co,fo-1)==58){indexof$1(Co+=replace$2(delimit$1(_o),"&","&\f"),"&\f")!=-1&&(xo=-1);break}case 34:case 39:case 91:Co+=delimit$1(_o);break;case 9:case 10:case 13:case 32:Co+=whitespace$1(go);break;case 92:Co+=escaping$1(caret$1()-1,7);continue;case 47:switch(peek$1()){case 42:case 47:append$1(comment$2(commenter$1(next$1(),caret$1()),to,ro,lo),lo);break;default:Co+="/"}break;case 123*vo:ao[uo++]=strlen$1(Co)*xo;case 125*vo:case 59:case 0:switch(_o){case 0:case 125:bo=0;case 59+co:xo==-1&&(Co=replace$2(Co,/\f/g,"")),po>0&&strlen$1(Co)-fo&&append$1(po>32?declaration$1(Co+";",no,ro,fo-1,lo):declaration$1(replace$2(Co," ","")+";",no,ro,fo-2,lo),lo);break;case 59:Co+=";";default:if(append$1(wo=ruleset$1(Co,to,ro,uo,co,oo,ao,Eo,So=[],To=[],fo,io),io),_o===123)if(co===0)parse$n(Co,to,wo,wo,So,io,fo,ao,To);else switch(ho===99&&charat$1(Co,3)===110?100:ho){case 100:case 108:case 109:case 115:parse$n(eo,wo,wo,no&&append$1(ruleset$1(eo,wo,wo,0,0,oo,ao,Eo,oo,So=[],fo,To),To),oo,To,fo,ao,no?So:To);break;default:parse$n(Co,wo,wo,wo,[""],To,0,ao,To)}}uo=co=po=0,vo=xo=1,Eo=Co="",fo=so;break;case 58:fo=1+strlen$1(Co),po=go;default:if(vo<1){if(_o==123)--vo;else if(_o==125&&vo++==0&&prev$1()==125)continue}switch(Co+=from$2(_o),_o*vo){case 38:xo=co>0?1:(Co+="\f",-1);break;case 44:ao[uo++]=(strlen$1(Co)-1)*xo,xo=1;break;case 64:peek$1()===45&&(Co+=delimit$1(next$1())),ho=peek$1(),co=fo=strlen$1(Eo=Co+=identifier$1(caret$1())),_o++;break;case 45:go===45&&strlen$1(Co)==2&&(vo=0)}}return io}function ruleset$1(eo,to,ro,no,oo,io,so,ao,lo,uo,co,fo){for(var ho=oo-1,po=oo===0?io:[""],go=sizeof$1(po),vo=0,bo=0,xo=0;vo0?po[_o]+" "+Eo:replace$2(Eo,/&\f/g,po[_o])))&&(lo[xo++]=So);return node$1(eo,to,ro,oo===0?RULESET$1:ao,lo,uo,co,fo)}function comment$2(eo,to,ro,no){return node$1(eo,to,ro,COMMENT$1,from$2(char$1()),substr$1(eo,2,-2),0,no)}function declaration$1(eo,to,ro,no,oo){return node$1(eo,to,ro,DECLARATION$1,substr$1(eo,0,no),substr$1(eo,no+1,-1),no,oo)}function serialize$1(eo,to){for(var ro="",no=0;no{switch(eo.type){case RULESET$1:if(typeof eo.props=="string")return;eo.props=eo.props.map(to=>to.indexOf(":global(")===-1?to:tokenize(to).reduce((ro,no,oo,io)=>{if(no==="")return ro;if(no===":"&&io[oo+1]==="global"){const so=io[oo+2].slice(1,-1)+" ";return ro.unshift(so),io[oo+1]="",io[oo+2]="",ro}return ro.push(no),ro},[]).join(""))}};function prefix$3(eo,to,ro){switch(hash$3(eo,to)){case 5103:return WEBKIT$1+"print-"+eo+eo;case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:return WEBKIT$1+eo+eo;case 4215:if(charat$1(eo,9)===102||charat$1(eo,to+1)===116)return WEBKIT$1+eo+eo;break;case 4789:return MOZ$1+eo+eo;case 5349:case 4246:case 6968:return WEBKIT$1+eo+MOZ$1+eo+eo;case 6187:if(!match$m(eo,/grab/))return replace$2(replace$2(replace$2(eo,/(zoom-|grab)/,WEBKIT$1+"$1"),/(image-set)/,WEBKIT$1+"$1"),eo,"")+eo;case 5495:case 3959:return replace$2(eo,/(image-set\([^]*)/,WEBKIT$1+"$1$`$1");case 4095:case 3583:case 4068:case 2532:return replace$2(eo,/(.+)-inline(.+)/,WEBKIT$1+"$1$2")+eo;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(strlen$1(eo)-1-to>6)switch(charat$1(eo,to+1)){case 102:if(charat$1(eo,to+3)===108)return replace$2(eo,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT$1+"$2-$3$1"+MOZ$1+(charat$1(eo,to+3)==108?"$3":"$2-$3"))+eo;case 115:return~indexof$1(eo,"stretch")?prefix$3(replace$2(eo,"stretch","fill-available"),to)+eo:eo}break}return eo}function prefixerPlugin(eo,to,ro,no){if(eo.length>-1&&!eo.return)switch(eo.type){case DECLARATION$1:eo.return=prefix$3(eo.value,eo.length);return;case RULESET$1:if(eo.length)return combine$1(eo.props,function(oo){switch(match$m(oo,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize$1([copy$3(eo,{props:[replace$2(oo,/:(read-\w+)/,":"+MOZ$1+"$1")]})],no);case"::placeholder":return serialize$1([copy$3(eo,{props:[replace$2(oo,/:(plac\w+)/,":"+WEBKIT$1+"input-$1")]}),copy$3(eo,{props:[replace$2(oo,/:(plac\w+)/,":"+MOZ$1+"$1")]})],no)}return""})}}function isAtRuleElement(eo){switch(eo.type){case"@container":case MEDIA:case SUPPORTS:case LAYER$1:return!0}return!1}const sortClassesInAtRulesPlugin=eo=>{isAtRuleElement(eo)&&Array.isArray(eo.children)&&eo.children.sort((to,ro)=>to.props[0]>ro.props[0]?1:-1)};function noop$7(){}function compileCSSRules(eo,to){const ro=[];return serialize$1(compile$1(eo),middleware$1([globalPlugin,to?sortClassesInAtRulesPlugin:noop$7,prefixerPlugin,stringify$2,rulesheet$1(no=>ro.push(no))])),ro}const PSEUDO_SELECTOR_REGEX=/,( *[^ &])/g;function normalizePseudoSelector(eo){return"&"+normalizeNestedProperty(eo.replace(PSEUDO_SELECTOR_REGEX,",&$1"))}function createCSSRule(eo,to,ro){let no=to;return ro.length>0&&(no=ro.reduceRight((oo,io)=>`${normalizePseudoSelector(io)} { ${oo} }`,to)),`${eo}{${no}}`}function compileAtomicCSSRule(eo){const{className:to,media:ro,layer:no,selectors:oo,support:io,property:so,rtlClassName:ao,rtlProperty:lo,rtlValue:uo,value:co,container:fo}=eo,ho=`.${to}`,po=Array.isArray(co)?`${co.map(vo=>`${hyphenateProperty(so)}: ${vo}`).join(";")};`:`${hyphenateProperty(so)}: ${co};`;let go=createCSSRule(ho,po,oo);if(lo&&ao){const vo=`.${ao}`,bo=Array.isArray(uo)?`${uo.map(xo=>`${hyphenateProperty(lo)}: ${xo}`).join(";")};`:`${hyphenateProperty(lo)}: ${uo};`;go+=createCSSRule(vo,bo,oo)}return ro&&(go=`@media ${ro} { ${go} }`),no&&(go=`@layer ${no} { ${go} }`),io&&(go=`@supports ${io} { ${go} }`),fo&&(go=`@container ${fo} { ${go} }`),compileCSSRules(go,!0)}function cssifyObject(eo){let to="";for(const ro in eo){const no=eo[ro];typeof no!="string"&&typeof no!="number"||(to+=hyphenateProperty(ro)+":"+no+";")}return to}function compileKeyframeRule(eo){let to="";for(const ro in eo)to+=`${ro}{${cssifyObject(eo[ro])}}`;return to}function compileKeyframesCSS(eo,to){const ro=`@keyframes ${eo} {${to}}`,no=[];return serialize$1(compile$1(ro),middleware$1([stringify$2,prefixerPlugin,rulesheet$1(oo=>no.push(oo))])),no}function generateCombinedQuery(eo,to){return eo.length===0?to:`${eo} and ${to}`}function isMediaQuerySelector(eo){return eo.substr(0,6)==="@media"}function isLayerSelector(eo){return eo.substr(0,6)==="@layer"}const regex=/^(:|\[|>|&)/;function isNestedSelector(eo){return regex.test(eo)}function isSupportQuerySelector(eo){return eo.substr(0,9)==="@supports"}function isContainerQuerySelector(eo){return eo.substring(0,10)==="@container"}function isObject$h(eo){return eo!=null&&typeof eo=="object"&&Array.isArray(eo)===!1}const pseudosMap={"us-w":"w","us-v":"i",nk:"l",si:"v",cu:"f",ve:"h",ti:"a"};function getStyleBucketName(eo,to,ro,no,oo){if(ro)return"m";if(to||no)return"t";if(oo)return"c";if(eo.length>0){const io=eo[0].trim();if(io.charCodeAt(0)===58)return pseudosMap[io.slice(4,8)]||pseudosMap[io.slice(3,5)]||"d"}return"d"}function hashClassName({container:eo,media:to,layer:ro,property:no,selector:oo,support:io,value:so}){const ao=murmur2(oo+eo+to+ro+io+no+so.trim());return HASH_PREFIX+ao}function hashPropertyKey(eo,to,ro,no,oo){const io=eo+to+ro+no+oo,so=murmur2(io),ao=so.charCodeAt(0);return ao>=48&&ao<=57?String.fromCharCode(ao+17)+so.slice(1):so}function trimSelector(eo){return eo.replace(/>\s+/g,">")}function warnAboutUnresolvedRule(eo,to){const ro=JSON.stringify(to,null,2);" ".repeat(2)+""," ".repeat(4)+""," ".repeat(6)+`"${eo}": ${ro.split(` +`).map((no,oo)=>" ".repeat(oo===0?0:6)+no).join(` +`)}`," ".repeat(4)+""," ".repeat(2)+"",eo.indexOf("&")}function warnAboutUnsupportedProperties(eo,to){}function pushToClassesMap(eo,to,ro,no){eo[to]=no?[ro,no]:ro}function createBucketEntry(eo,to){return to?[eo,to]:eo}function pushToCSSRules(eo,to,ro,no,oo){var io;let so;to==="m"&&oo&&(so={m:oo}),(io=eo[to])!==null&&io!==void 0||(eo[to]=[]),ro&&eo[to].push(createBucketEntry(ro,so)),no&&eo[to].push(createBucketEntry(no,so))}function resolveStyleRules(eo,to=[],ro="",no="",oo="",io="",so={},ao={},lo){for(const uo in eo){if(UNSUPPORTED_CSS_PROPERTIES.hasOwnProperty(uo)){eo[uo];continue}const co=eo[uo];if(co!=null){if(typeof co=="string"||typeof co=="number"){const fo=trimSelector(to.join("")),ho=hashPropertyKey(fo,io,ro,oo,uo),po=hashClassName({container:io,media:ro,layer:no,value:co.toString(),support:oo,selector:fo,property:uo}),go=lo&&{key:uo,value:lo}||convertProperty(uo,co),vo=go.key!==uo||go.value!==co,bo=vo?hashClassName({container:io,value:go.value.toString(),property:go.key,selector:fo,media:ro,layer:no,support:oo}):void 0,xo=vo?{rtlClassName:bo,rtlProperty:go.key,rtlValue:go.value}:void 0,_o=getStyleBucketName(to,no,ro,oo,io),[Eo,So]=compileAtomicCSSRule({className:po,media:ro,layer:no,selectors:to,property:uo,support:oo,container:io,value:co,...xo});pushToClassesMap(so,ho,po,bo),pushToCSSRules(ao,_o,Eo,So,ro)}else if(uo==="animationName"){const fo=Array.isArray(co)?co:[co],ho=[],po=[];for(const go of fo){const vo=compileKeyframeRule(go),bo=compileKeyframeRule(convert(go)),xo=HASH_PREFIX+murmur2(vo);let _o;const Eo=compileKeyframesCSS(xo,vo);let So=[];vo===bo?_o=xo:(_o=HASH_PREFIX+murmur2(bo),So=compileKeyframesCSS(_o,bo));for(let To=0;To(wo??"").toString()).join(";"),support:oo,selector:fo,property:uo}),go=co.map(wo=>convertProperty(uo,wo));if(!!go.some(wo=>wo.key!==go[0].key))continue;const bo=go[0].key!==uo||go.some((wo,Co)=>wo.value!==co[Co]),xo=bo?hashClassName({container:io,value:go.map(wo=>{var Co;return((Co=wo==null?void 0:wo.value)!==null&&Co!==void 0?Co:"").toString()}).join(";"),property:go[0].key,selector:fo,layer:no,media:ro,support:oo}):void 0,_o=bo?{rtlClassName:xo,rtlProperty:go[0].key,rtlValue:go.map(wo=>wo.value)}:void 0,Eo=getStyleBucketName(to,no,ro,oo,io),[So,To]=compileAtomicCSSRule({className:po,media:ro,layer:no,selectors:to,property:uo,support:oo,container:io,value:co,..._o});pushToClassesMap(so,ho,po,xo),pushToCSSRules(ao,Eo,So,To,ro)}else if(isObject$h(co))if(isNestedSelector(uo))resolveStyleRules(co,to.concat(normalizeNestedProperty(uo)),ro,no,oo,io,so,ao);else if(isMediaQuerySelector(uo)){const fo=generateCombinedQuery(ro,uo.slice(6).trim());resolveStyleRules(co,to,fo,no,oo,io,so,ao)}else if(isLayerSelector(uo)){const fo=(no?`${no}.`:"")+uo.slice(6).trim();resolveStyleRules(co,to,ro,fo,oo,io,so,ao)}else if(isSupportQuerySelector(uo)){const fo=generateCombinedQuery(oo,uo.slice(9).trim());resolveStyleRules(co,to,ro,no,fo,io,so,ao)}else if(isContainerQuerySelector(uo)){const fo=uo.slice(10).trim();resolveStyleRules(co,to,ro,no,oo,fo,so,ao)}else warnAboutUnresolvedRule(uo,co)}}return[so,ao]}function resolveStyleRulesForSlots(eo){const to={},ro={};for(const no in eo){const oo=eo[no],[io,so]=resolveStyleRules(oo);to[no]=io,Object.keys(so).forEach(ao=>{ro[ao]=(ro[ao]||[]).concat(so[ao])})}return[to,ro]}function makeStyles$1(eo,to=insertionFactory$1){const ro=to();let no=null,oo=null,io=null,so=null;function ao(lo){const{dir:uo,renderer:co}=lo;no===null&&([no,oo]=resolveStyleRulesForSlots(eo));const fo=uo==="ltr";return fo?io===null&&(io=reduceToClassNameForSlots(no,uo)):so===null&&(so=reduceToClassNameForSlots(no,uo)),ro(co,oo),fo?io:so}return ao}function __styles$1(eo,to,ro=insertionFactory$1){const no=ro();let oo=null,io=null;function so(ao){const{dir:lo,renderer:uo}=ao,co=lo==="ltr";return co?oo===null&&(oo=reduceToClassNameForSlots(eo,lo)):io===null&&(io=reduceToClassNameForSlots(eo,lo)),no(uo,to),co?oo:io}return so}function __resetStyles$1(eo,to,ro,no=insertionFactory$1){const oo=no();function io(so){const{dir:ao,renderer:lo}=so,uo=ao==="ltr"?eo:to||eo;return oo(lo,Array.isArray(ro)?{r:ro}:ro),uo}return io}const shorthands={border,borderLeft,borderBottom,borderRight,borderTop,borderColor,borderStyle,borderRadius:borderRadius$1,borderWidth:borderWidth$1,flex,gap,gridArea,margin,marginBlock,marginInline,padding,paddingBlock,paddingInline,overflow,inset,outline,transition:transition$1,textDecoration};function canUseDOM$4(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const useInsertionEffect$2=React$1.useInsertionEffect?React$1.useInsertionEffect:void 0,insertionFactory=()=>{const eo={};return function(ro,no){if(useInsertionEffect$2&&canUseDOM$4()){useInsertionEffect$2(()=>{ro.insertCSSRules(no)},[ro,no]);return}eo[ro.id]===void 0&&(ro.insertCSSRules(no),eo[ro.id]=!0)}},RendererContext=reactExports.createContext(createDOMRenderer());function useRenderer(){return reactExports.useContext(RendererContext)}const TextDirectionContext=reactExports.createContext("ltr"),TextDirectionProvider=({children:eo,dir:to})=>reactExports.createElement(TextDirectionContext.Provider,{value:to},eo);function useTextDirection(){return reactExports.useContext(TextDirectionContext)}function makeStyles(eo){const to=makeStyles$1(eo,insertionFactory);return function(){const no=useTextDirection(),oo=useRenderer();return to({dir:no,renderer:oo})}}function __styles(eo,to){const ro=__styles$1(eo,to,insertionFactory);return function(){const oo=useTextDirection(),io=useRenderer();return ro({dir:oo,renderer:io})}}function __resetStyles(eo,to,ro){const no=__resetStyles$1(eo,to,ro,insertionFactory);return function(){const io=useTextDirection(),so=useRenderer();return no({dir:io,renderer:so})}}function createCSSRuleFromTheme(eo,to){if(to){const ro=Object.keys(to).reduce((no,oo)=>`${no}--${oo}: ${to[oo]}; `,"");return`${eo} { ${ro} }`}return`${eo} {}`}const SLOT_RENDER_FUNCTION_SYMBOL=Symbol("fui.slotRenderFunction"),SLOT_ELEMENT_TYPE_SYMBOL=Symbol("fui.slotElementType");function always(eo,to){const{defaultProps:ro,elementType:no}=to,oo=resolveShorthand(eo),io={...ro,...oo,[SLOT_ELEMENT_TYPE_SYMBOL]:no};return oo&&typeof oo.children=="function"&&(io[SLOT_RENDER_FUNCTION_SYMBOL]=oo.children,io.children=ro==null?void 0:ro.children),io}function optional(eo,to){if(!(eo===null||eo===void 0&&!to.renderByDefault))return always(eo,to)}function resolveShorthand(eo){return typeof eo=="string"||typeof eo=="number"||Array.isArray(eo)||reactExports.isValidElement(eo)?{children:eo}:eo}function isSlot(eo){return!!(eo!=null&&eo.hasOwnProperty(SLOT_ELEMENT_TYPE_SYMBOL))}function isResolvedShorthand(eo){return eo!==null&&typeof eo=="object"&&!Array.isArray(eo)&&!reactExports.isValidElement(eo)}const toObjectMap$1=(...eo)=>{const to={};for(const ro of eo){const no=Array.isArray(ro)?ro:Object.keys(ro);for(const oo of no)to[oo]=1}return to},baseElementEvents$1=toObjectMap$1(["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"]),baseElementProperties$1=toObjectMap$1(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),microdataProperties=toObjectMap$1(["itemID","itemProp","itemRef","itemScope","itemType"]),htmlElementProperties$1=toObjectMap$1(baseElementProperties$1,baseElementEvents$1,microdataProperties),labelProperties=toObjectMap$1(htmlElementProperties$1,["form"]),audioProperties$1=toObjectMap$1(htmlElementProperties$1,["height","loop","muted","preload","src","width"]),videoProperties=toObjectMap$1(audioProperties$1,["poster"]),olProperties=toObjectMap$1(htmlElementProperties$1,["start"]),liProperties=toObjectMap$1(htmlElementProperties$1,["value"]),anchorProperties$1=toObjectMap$1(htmlElementProperties$1,["download","href","hrefLang","media","rel","target","type"]),timeProperties=toObjectMap$1(htmlElementProperties$1,["dateTime"]),buttonProperties$1=toObjectMap$1(htmlElementProperties$1,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),inputProperties=toObjectMap$1(buttonProperties$1,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),textAreaProperties=toObjectMap$1(buttonProperties$1,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),selectProperties=toObjectMap$1(buttonProperties$1,["form","multiple","required"]),optionProperties=toObjectMap$1(htmlElementProperties$1,["selected","value"]),tableProperties=toObjectMap$1(htmlElementProperties$1,["cellPadding","cellSpacing"]),trProperties=htmlElementProperties$1,thProperties=toObjectMap$1(htmlElementProperties$1,["colSpan","rowSpan","scope"]),tdProperties=toObjectMap$1(htmlElementProperties$1,["colSpan","headers","rowSpan","scope"]),colGroupProperties=toObjectMap$1(htmlElementProperties$1,["span"]),colProperties=toObjectMap$1(htmlElementProperties$1,["span"]),fieldsetProperties=toObjectMap$1(htmlElementProperties$1,["disabled","form"]),formProperties=toObjectMap$1(htmlElementProperties$1,["acceptCharset","action","encType","encType","method","noValidate","target"]),iframeProperties=toObjectMap$1(htmlElementProperties$1,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),imgProperties$1=toObjectMap$1(htmlElementProperties$1,["alt","crossOrigin","height","src","srcSet","useMap","width"]),dialogProperties=toObjectMap$1(htmlElementProperties$1,["open","onCancel","onClose"]);function getNativeProps$1(eo,to,ro){const no=Array.isArray(to),oo={},io=Object.keys(eo);for(const so of io)(!no&&to[so]||no&&to.indexOf(so)>=0||so.indexOf("data-")===0||so.indexOf("aria-")===0)&&(!ro||(ro==null?void 0:ro.indexOf(so))===-1)&&(oo[so]=eo[so]);return oo}const nativeElementMap={label:labelProperties,audio:audioProperties$1,video:videoProperties,ol:olProperties,li:liProperties,a:anchorProperties$1,button:buttonProperties$1,input:inputProperties,textarea:textAreaProperties,select:selectProperties,option:optionProperties,table:tableProperties,tr:trProperties,th:thProperties,td:tdProperties,colGroup:colGroupProperties,col:colProperties,fieldset:fieldsetProperties,form:formProperties,iframe:iframeProperties,img:imgProperties$1,time:timeProperties,dialog:dialogProperties};function getNativeElementProps(eo,to,ro){const no=eo&&nativeElementMap[eo]||htmlElementProperties$1;return no.as=1,getNativeProps$1(to,no,ro)}const getPartitionedNativeProps=({primarySlotTagName:eo,props:to,excludedPropNames:ro})=>({root:{style:to.style,className:to.className},primary:getNativeElementProps(eo,to,[...ro||[],"style","className"])}),getIntrinsicElementProps=(eo,to,ro)=>{var no;return getNativeElementProps((no=to.as)!==null&&no!==void 0?no:eo,to,ro)};function canUseDOM$3(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}function useBrowserTimer(eo,to){const ro=reactExports.useRef(void 0),no=reactExports.useCallback((io,so)=>(ro.current!==void 0&&to(ro.current),ro.current=eo(io,so),ro.current),[to,eo]),oo=reactExports.useCallback(()=>{ro.current!==void 0&&(to(ro.current),ro.current=void 0)},[to]);return reactExports.useEffect(()=>oo,[oo]),[no,oo]}const setAnimationFrameNoop=eo=>(eo(0),0),cancelAnimationFrameNoop=eo=>eo;function useAnimationFrame(){const eo=canUseDOM$3();return useBrowserTimer(eo?requestAnimationFrame:setAnimationFrameNoop,eo?cancelAnimationFrame:cancelAnimationFrameNoop)}function isFactoryDispatch(eo){return typeof eo=="function"}const useControllableState=eo=>{const[to,ro]=reactExports.useState(()=>eo.defaultState===void 0?eo.initialState:isInitializer(eo.defaultState)?eo.defaultState():eo.defaultState),no=reactExports.useRef(eo.state);reactExports.useEffect(()=>{no.current=eo.state},[eo.state]);const oo=reactExports.useCallback(io=>{isFactoryDispatch(io)&&io(no.current)},[]);return useIsControlled(eo.state)?[eo.state,oo]:[to,ro]};function isInitializer(eo){return typeof eo=="function"}const useIsControlled=eo=>{const[to]=reactExports.useState(()=>eo!==void 0);return to},defaultSSRContextValue={current:0},SSRContext=reactExports.createContext(void 0);function useSSRContext(){var eo;return(eo=reactExports.useContext(SSRContext))!==null&&eo!==void 0?eo:defaultSSRContextValue}function useIsSSR(){const eo=useSSRContext()!==defaultSSRContextValue,[to,ro]=reactExports.useState(eo);return canUseDOM$3()&&eo&&reactExports.useLayoutEffect(()=>{ro(!1)},[]),to}const useIsomorphicLayoutEffect$1=canUseDOM$3()?reactExports.useLayoutEffect:reactExports.useEffect,useEventCallback$3=eo=>{const to=reactExports.useRef(()=>{throw new Error("Cannot call an event handler while rendering")});return useIsomorphicLayoutEffect$1(()=>{to.current=eo},[eo]),reactExports.useCallback((...ro)=>{const no=to.current;return no(...ro)},[to])};function useFirstMount(){const eo=reactExports.useRef(!0);return eo.current?(eo.current=!1,!0):eo.current}const IdPrefixContext=reactExports.createContext(void 0);IdPrefixContext.Provider;function useIdPrefix(){return reactExports.useContext(IdPrefixContext)||""}function useId$1(eo="fui-",to){const ro=useSSRContext(),no=useIdPrefix(),oo=React$1.useId;if(oo){const io=oo(),so=reactExports.useMemo(()=>io.replace(/:/g,""),[io]);return to||`${no}${eo}${so}`}return reactExports.useMemo(()=>to||`${no}${eo}${++ro.current}`,[no,eo,to,ro])}function useMergedRefs$1(...eo){const to=reactExports.useCallback(ro=>{to.current=ro;for(const no of eo)typeof no=="function"?no(ro):no&&(no.current=ro)},[...eo]);return to}const ThemeContext$2=reactExports.createContext(void 0),ThemeProvider=ThemeContext$2.Provider,ThemeClassNameContext=reactExports.createContext(void 0),themeClassNameContextDefaultVaue="",ThemeClassNameProvider=ThemeClassNameContext.Provider;function useThemeClassName(){var eo;return(eo=reactExports.useContext(ThemeClassNameContext))!==null&&eo!==void 0?eo:themeClassNameContextDefaultVaue}const TooltipVisibilityContext=reactExports.createContext(void 0),tooltipVisibilityContextDefaultValue={},TooltipVisibilityProvider=TooltipVisibilityContext.Provider;function useTooltipVisibility(){var eo;return(eo=reactExports.useContext(TooltipVisibilityContext))!==null&&eo!==void 0?eo:tooltipVisibilityContextDefaultValue}const ProviderContext=reactExports.createContext(void 0),providerContextDefaultValue={targetDocument:typeof document=="object"?document:void 0,dir:"ltr"},Provider$1=ProviderContext.Provider;function useFluent(){var eo;return(eo=reactExports.useContext(ProviderContext))!==null&&eo!==void 0?eo:providerContextDefaultValue}const OverridesContext=reactExports.createContext(void 0),OverridesProvider=OverridesContext.Provider;function useOverrides(){var eo;return(eo=reactExports.useContext(OverridesContext))!==null&&eo!==void 0?eo:{}}const CustomStyleHooksContext=reactExports.createContext(void 0),noop$6=()=>{},CustomStyleHooksProvider=CustomStyleHooksContext.Provider,useCustomStyleHook=eo=>{var to,ro;return(ro=(to=reactExports.useContext(CustomStyleHooksContext))===null||to===void 0?void 0:to[eo])!==null&&ro!==void 0?ro:noop$6},BackgroundAppearanceContext=reactExports.createContext(void 0);BackgroundAppearanceContext.Provider;function useBackgroundAppearance(){return reactExports.useContext(BackgroundAppearanceContext)}const PortalMountNodeContext=reactExports.createContext(void 0);PortalMountNodeContext.Provider;function usePortalMountNode$1(){return reactExports.useContext(PortalMountNodeContext)}const AnnounceContext=reactExports.createContext(void 0);AnnounceContext.Provider;function useAnnounce(){var eo;return(eo=reactExports.useContext(AnnounceContext))!==null&&eo!==void 0?eo:{announce:()=>{}}}const DEFAULT_CONTAINS=(eo,to)=>!!(eo!=null&&eo.contains(to)),useOnClickOutside=eo=>{const{targetDocument:to}=useFluent(),ro=to==null?void 0:to.defaultView,{refs:no,callback:oo,element:io,disabled:so,disabledFocusOnIframe:ao,contains:lo=DEFAULT_CONTAINS}=eo,uo=reactExports.useRef(void 0);useIFrameFocus({element:io,disabled:ao||so,callback:oo,refs:no,contains:lo});const co=reactExports.useRef(!1),fo=useEventCallback$3(po=>{if(co.current){co.current=!1;return}const go=po.composedPath()[0];no.every(bo=>!lo(bo.current||null,go))&&!so&&oo(po)}),ho=useEventCallback$3(po=>{co.current=no.some(go=>lo(go.current||null,po.target))});reactExports.useEffect(()=>{if(so)return;let po=getWindowEvent(ro);const go=vo=>{if(vo===po){po=void 0;return}fo(vo)};return io==null||io.addEventListener("click",go,!0),io==null||io.addEventListener("touchstart",go,!0),io==null||io.addEventListener("contextmenu",go,!0),io==null||io.addEventListener("mousedown",ho,!0),uo.current=ro==null?void 0:ro.setTimeout(()=>{po=void 0},1),()=>{io==null||io.removeEventListener("click",go,!0),io==null||io.removeEventListener("touchstart",go,!0),io==null||io.removeEventListener("contextmenu",go,!0),io==null||io.removeEventListener("mousedown",ho,!0),ro==null||ro.clearTimeout(uo.current),po=void 0}},[fo,io,so,ho,ro])},getWindowEvent=eo=>{if(eo){var to,ro;if(typeof eo.window=="object"&&eo.window===eo)return eo.event;var no;return(no=(ro=eo.ownerDocument)===null||ro===void 0||(to=ro.defaultView)===null||to===void 0?void 0:to.event)!==null&&no!==void 0?no:void 0}},FUI_FRAME_EVENT="fuiframefocus",useIFrameFocus=eo=>{const{disabled:to,element:ro,callback:no,contains:oo=DEFAULT_CONTAINS,pollDuration:io=1e3,refs:so}=eo,ao=reactExports.useRef(),lo=useEventCallback$3(uo=>{so.every(fo=>!oo(fo.current||null,uo.target))&&!to&&no(uo)});reactExports.useEffect(()=>{if(!to)return ro==null||ro.addEventListener(FUI_FRAME_EVENT,lo,!0),()=>{ro==null||ro.removeEventListener(FUI_FRAME_EVENT,lo,!0)}},[ro,to,lo]),reactExports.useEffect(()=>{var uo;if(!to)return ao.current=ro==null||(uo=ro.defaultView)===null||uo===void 0?void 0:uo.setInterval(()=>{const co=ro==null?void 0:ro.activeElement;if((co==null?void 0:co.tagName)==="IFRAME"||(co==null?void 0:co.tagName)==="WEBVIEW"){const fo=new CustomEvent(FUI_FRAME_EVENT,{bubbles:!0});co.dispatchEvent(fo)}},io),()=>{var co;ro==null||(co=ro.defaultView)===null||co===void 0||co.clearTimeout(ao.current)}},[ro,to,io])},useOnScrollOutside=eo=>{const{refs:to,callback:ro,element:no,disabled:oo,contains:io}=eo,so=useEventCallback$3(ao=>{const lo=io||((fo,ho)=>!!(fo!=null&&fo.contains(ho))),uo=ao.composedPath()[0];to.every(fo=>!lo(fo.current||null,uo))&&!oo&&ro(ao)});reactExports.useEffect(()=>{if(!oo)return no==null||no.addEventListener("wheel",so),no==null||no.addEventListener("touchmove",so),()=>{no==null||no.removeEventListener("wheel",so),no==null||no.removeEventListener("touchmove",so)}},[so,no,oo])};function useTimeout(){return useBrowserTimer(setTimeout,clearTimeout)}function mergeCallbacks(eo,to){return(...ro)=>{eo==null||eo(...ro),to==null||to(...ro)}}function isHTMLElement$6(eo,to){var ro;const no=eo;var oo;return!!(!(no==null||(ro=no.ownerDocument)===null||ro===void 0)&&ro.defaultView&&no instanceof no.ownerDocument.defaultView[(oo=to==null?void 0:to.constructorName)!==null&&oo!==void 0?oo:"HTMLElement"])}function isFluentTrigger(eo){return!!eo.type.isFluentTriggerComponent}function applyTriggerPropsToChildren(eo,to){return typeof eo=="function"?eo(to):eo?cloneTriggerTree(eo,to):eo||null}function cloneTriggerTree(eo,to){if(!reactExports.isValidElement(eo)||eo.type===reactExports.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(isFluentTrigger(eo)){const ro=cloneTriggerTree(eo.props.children,to);return reactExports.cloneElement(eo,void 0,ro)}else return reactExports.cloneElement(eo,to)}function getTriggerChild(eo){return reactExports.isValidElement(eo)?isFluentTrigger(eo)?getTriggerChild(eo.props.children):eo:null}function isVirtualElement$1(eo){return eo&&!!eo._virtual}function getVirtualParent$1(eo){return isVirtualElement$1(eo)&&eo._virtual.parent||null}function getParent$1(eo,to={}){if(!eo)return null;if(!to.skipVirtual){const ro=getVirtualParent$1(eo);if(ro)return ro}return(eo==null?void 0:eo.parentNode)||null}function elementContains$1(eo,to){if(!eo||!to)return!1;if(eo===to)return!0;{const ro=new WeakSet;for(;to;){const no=getParent$1(to,{skipVirtual:ro.has(to)});if(ro.add(to),no===eo)return!0;to=no}}return!1}function setVirtualParent$1(eo,to){if(!eo)return;const ro=eo;ro._virtual||(ro._virtual={}),ro._virtual.parent=to}function createCompatSlotComponent(eo,to){return{...to,[SLOT_ELEMENT_TYPE_SYMBOL]:eo}}function createJSX(eo,to){return function(no,oo,io,so,ao){return isSlot(oo)?to(createCompatSlotComponent(no,oo),null,io,so,ao):isSlot(no)?to(no,oo,io,so,ao):eo(no,oo,io,so,ao)}}function getMetadataFromSlotComponent(eo){const{as:to,[SLOT_ELEMENT_TYPE_SYMBOL]:ro,[SLOT_RENDER_FUNCTION_SYMBOL]:no,...oo}=eo,io=oo,so=typeof ro=="string"?to??ro:ro;return typeof so!="string"&&to&&(io.as=to),{elementType:so,props:io,renderFunction:no}}const Runtime=ReactRuntime,jsxSlot=(eo,to,ro)=>{const{elementType:no,renderFunction:oo,props:io}=getMetadataFromSlotComponent(eo),so={...io,...to};return oo?Runtime.jsx(reactExports.Fragment,{children:oo(no,so)},ro):Runtime.jsx(no,so,ro)},jsxsSlot=(eo,to,ro)=>{const{elementType:no,renderFunction:oo,props:io}=getMetadataFromSlotComponent(eo),so={...io,...to};return oo?Runtime.jsx(reactExports.Fragment,{children:oo(no,{...so,children:Runtime.jsxs(reactExports.Fragment,{children:so.children},void 0)})},ro):Runtime.jsxs(no,so,ro)},jsx$1=createJSX(Runtime.jsx,jsxSlot),jsxs=createJSX(Runtime.jsxs,jsxsSlot),IconDirectionContext=reactExports.createContext(void 0),IconDirectionContextDefaultValue={},IconDirectionContextProvider=IconDirectionContext.Provider,useIconContext=()=>reactExports.useContext(IconDirectionContext)?reactExports.useContext(IconDirectionContext):IconDirectionContextDefaultValue,useRootStyles$7=__styles({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;}}"]}),useIconState=(eo,to)=>{const{title:ro,primaryFill:no="currentColor",...oo}=eo,io={...oo,title:void 0,fill:no},so=useRootStyles$7(),ao=useIconContext();return io.className=mergeClasses(so.root,(to==null?void 0:to.flipInRtl)&&(ao==null?void 0:ao.textDirection)==="rtl"&&so.rtl,io.className),ro&&(io["aria-label"]=ro),!io["aria-label"]&&!io["aria-labelledby"]?io["aria-hidden"]=!0:io.role="img",io},createFluentIcon=(eo,to,ro,no)=>{const oo=to==="1em"?"20":to,io=reactExports.forwardRef((so,ao)=>{const lo={...useIconState(so,{flipInRtl:no==null?void 0:no.flipInRtl}),ref:ao,width:to,height:to,viewBox:`0 0 ${oo} ${oo}`,xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement("svg",lo,...ro.map(uo=>reactExports.createElement("path",{d:uo,fill:lo.fill})))});return io.displayName=eo,io},CheckmarkFilled=createFluentIcon("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"]),CheckmarkCircleFilled=createFluentIcon("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"]),ChevronDownRegular=createFluentIcon("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"]),ChevronRightRegular=createFluentIcon("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"]),CircleFilled=createFluentIcon("CircleFilled","1em",["M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z"]),ErrorCircleFilled=createFluentIcon("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"]),FlowchartRegular=createFluentIcon("FlowchartRegular","1em",["M4.5 3C3.67 3 3 3.67 3 4.5v2C3 7.33 3.67 8 4.5 8H5v3.84a1 1 0 0 0-.2.16L3 13.8a1 1 0 0 0 0 1.4L4.8 17a1 1 0 0 0 1.4 0L8 15.2a1 1 0 0 0 .16-.2H12v.5c0 .83.67 1.5 1.5 1.5h2c.83 0 1.5-.67 1.5-1.5v-2c0-.83-.67-1.5-1.5-1.5h-2c-.83 0-1.5.67-1.5 1.5v.5H8.16a1 1 0 0 0-.16-.2L6.2 12a1 1 0 0 0-.2-.16V8h.5C7.33 8 8 7.33 8 6.5v-2C8 3.67 7.33 3 6.5 3h-2ZM4 4.5c0-.28.22-.5.5-.5h2c.28 0 .5.22.5.5v2a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5v-2Zm-.3 10 1.8-1.8 1.8 1.8-1.8 1.8-1.8-1.8Zm9.8-1.5h2c.28 0 .5.22.5.5v2a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5v-2c0-.28.22-.5.5-.5Z"]),InfoFilled=createFluentIcon("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"]),WarningFilled=createFluentIcon("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"]),AddCircle20Regular=createFluentIcon("AddCircle20Regular","20",["M6 10c0-.28.22-.5.5-.5h3v-3a.5.5 0 0 1 1 0v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3A.5.5 0 0 1 6 10Zm4 8a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm0-1a7 7 0 1 1 0-14 7 7 0 0 1 0 14Z"]),Alert24Regular=createFluentIcon("Alert24Regular","24",["M12 2a7.5 7.5 0 0 1 7.5 7.25v4.35l1.38 3.15a1.25 1.25 0 0 1-1.15 1.75H15a3 3 0 0 1-6 .18v-.18H4.27a1.25 1.25 0 0 1-1.14-1.75L4.5 13.6V9.5C4.5 5.35 7.85 2 12 2Zm1.5 16.5h-3a1.5 1.5 0 0 0 3 .15v-.15ZM12 3.5c-3.32 0-6 2.67-6 6v4.4L4.66 17h14.7L18 13.9V9.29a5.99 5.99 0 0 0-6-5.78Z"]),ArrowClockwise16Regular=createFluentIcon("ArrowClockwise16Regular","16",["M3 8a5 5 0 0 1 9-3H9.5a.5.5 0 0 0 0 1h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-1 0v1.03A6 6 0 1 0 14 8a.5.5 0 0 0-1 0A5 5 0 0 1 3 8Z"]),ArrowClockwiseDashes20Filled=createFluentIcon("ArrowClockwiseDashes20Filled","20",["M8.44 2.15a8.03 8.03 0 0 1 3.12 0 .75.75 0 0 1-.3 1.47 6.54 6.54 0 0 0-2.53 0 .75.75 0 0 1-.29-1.47Zm4.96 1.4a.75.75 0 0 1 1.05-.2c.57.38 1.1.84 1.55 1.36V2.75a.75.75 0 0 1 1.5 0v4c0 .41-.34.75-.75.75h-4a.75.75 0 0 1 0-1.5h2.37a6.54 6.54 0 0 0-1.5-1.4.75.75 0 0 1-.21-1.05ZM6.4 4.6a.75.75 0 0 0-.84-1.24 8.04 8.04 0 0 0-2.2 2.2.75.75 0 0 0 1.24.84 6.54 6.54 0 0 1 1.8-1.8ZM3.03 7.85c.41.08.67.47.6.88a6.54 6.54 0 0 0 0 2.54.75.75 0 0 1-1.48.29 8.04 8.04 0 0 1 0-3.12c.08-.4.48-.67.88-.6ZM18 10v-.25a.75.75 0 0 0-1.5 0V10c0 .44-.04.86-.12 1.27a.75.75 0 1 0 1.47.29c.1-.5.15-1.03.15-1.56ZM3.55 13.4a.75.75 0 0 1 1.04.21c.48.71 1.09 1.32 1.8 1.8a.75.75 0 0 1-.84 1.24 8.04 8.04 0 0 1-2.2-2.2.75.75 0 0 1 .2-1.04Zm13.1 1.05a.75.75 0 0 0-1.24-.84 6.54 6.54 0 0 1-1.8 1.8.75.75 0 0 0 .84 1.24 8.04 8.04 0 0 0 2.2-2.2Zm-8.8 2.52c.08-.41.47-.67.88-.6a6.54 6.54 0 0 0 2.54 0 .75.75 0 1 1 .29 1.48 8.03 8.03 0 0 1-3.12 0 .75.75 0 0 1-.6-.88Z"]),ArrowDown20Regular=createFluentIcon("ArrowDown20Regular","20",["M16.87 10.84a.5.5 0 1 0-.74-.68l-5.63 6.17V2.5a.5.5 0 0 0-1 0v13.83l-5.63-6.17a.5.5 0 0 0-.74.68l6.31 6.91a.75.75 0 0 0 1.11 0l6.32-6.91Z"]),ArrowUp20Regular=createFluentIcon("ArrowUp20Regular","20",["M3.13 9.16a.5.5 0 1 0 .74.68L9.5 3.67V17.5a.5.5 0 1 0 1 0V3.67l5.63 6.17a.5.5 0 0 0 .74-.68l-6.32-6.92a.75.75 0 0 0-1.1 0L3.13 9.16Z"]),ArrowUpload24Regular=createFluentIcon("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"]),Attach16Regular=createFluentIcon("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"]),BranchRequest16Regular=createFluentIcon("BranchRequest16Regular","16",["M13 10.05V5.5A2.5 2.5 0 0 0 10.5 3H8.71l1.14-1.15c.2-.19.2-.51 0-.7a.48.48 0 0 0-.7 0l-2 2c-.2.19-.2.51 0 .7l2 2c.19.2.51.2.7 0 .2-.19.2-.51 0-.7L8.71 4h1.79c.83 0 1.5.67 1.5 1.5v4.55a2.5 2.5 0 1 0 1 0ZM12.5 14a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3ZM6 3.5a2.5 2.5 0 1 0-3 2.45v4.1a2.5 2.5 0 1 0 1 0v-4.1A2.5 2.5 0 0 0 6 3.5Zm-4 0a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Zm3 9a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z"]),Checkmark12Filled=createFluentIcon("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"]),CheckmarkCircle20Filled=createFluentIcon("CheckmarkCircle20Filled","20",["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"]),ChevronDown16Filled=createFluentIcon("ChevronDown16Filled","16",["M3.2 5.74a.75.75 0 0 1 1.06-.04L8 9.23l3.74-3.53a.75.75 0 1 1 1.02 1.1l-4.25 4a.75.75 0 0 1-1.02 0l-4.25-4a.75.75 0 0 1-.04-1.06Z"]),ChevronDown16Regular=createFluentIcon("ChevronDown16Regular","16",["M3.15 5.65c.2-.2.5-.2.7 0L8 9.79l4.15-4.14a.5.5 0 0 1 .7.7l-4.5 4.5a.5.5 0 0 1-.7 0l-4.5-4.5a.5.5 0 0 1 0-.7Z"]),ChevronDown20Regular=createFluentIcon("ChevronDown20Regular","20",["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"]),ChevronLeft12Regular=createFluentIcon("ChevronLeft12Regular","12",["M7.35 2.15c.2.2.2.5 0 .7L4.21 6l3.14 3.15a.5.5 0 1 1-.7.7l-3.5-3.5a.5.5 0 0 1 0-.7l3.5-3.5c.2-.2.5-.2.7 0Z"]),ChevronLeft16Regular=createFluentIcon("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"]),ChevronLeft20Regular=createFluentIcon("ChevronLeft20Regular","20",["M12.35 15.85a.5.5 0 0 1-.7 0L6.16 10.4a.55.55 0 0 1 0-.78l5.49-5.46a.5.5 0 1 1 .7.7L7.2 10l5.16 5.15c.2.2.2.5 0 .7Z"]),ChevronRight12Regular=createFluentIcon("ChevronRight12Regular","12",["M4.65 2.15a.5.5 0 0 0 0 .7L7.79 6 4.65 9.15a.5.5 0 1 0 .7.7l3.5-3.5a.5.5 0 0 0 0-.7l-3.5-3.5a.5.5 0 0 0-.7 0Z"]),ChevronRight16Filled=createFluentIcon("ChevronRight16Filled","16",["M5.74 3.2a.75.75 0 0 0-.04 1.06L9.23 8 5.7 11.74a.75.75 0 1 0 1.1 1.02l4-4.25a.75.75 0 0 0 0-1.02l-4-4.25a.75.75 0 0 0-1.06-.04Z"]),ChevronRight16Regular=createFluentIcon("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"]),ChevronRight20Regular=createFluentIcon("ChevronRight20Regular","20",["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"]),Clock20Regular=createFluentIcon("Clock20Regular","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm-.5 2a.5.5 0 0 1 .5.41V10h2.5a.5.5 0 0 1 .09 1H9.5a.5.5 0 0 1-.5-.41V5.5c0-.28.22-.5.5-.5Z"]),Copy20Regular=createFluentIcon("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"]),CopyArrowRight20Regular=createFluentIcon("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"]),Dismiss20Regular=createFluentIcon("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"]),Dismiss24Regular=createFluentIcon("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"]),DismissCircle20Filled=createFluentIcon("DismissCircle20Filled","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16ZM7.8 7.11a.5.5 0 0 0-.63.06l-.06.07a.5.5 0 0 0 .06.64L9.3 10l-2.12 2.12-.06.07a.5.5 0 0 0 .06.64l.07.06c.2.13.47.11.64-.06L10 10.7l2.12 2.12.07.06c.2.13.46.11.64-.06l.06-.07a.5.5 0 0 0-.06-.64L10.7 10l2.12-2.12.06-.07a.5.5 0 0 0-.06-.64l-.07-.06a.5.5 0 0 0-.64.06L10 9.3 7.88 7.17l-.07-.06Z"]),DismissCircle20Regular=createFluentIcon("DismissCircle20Regular","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14ZM7.8 7.11l.08.06L10 9.3l2.12-2.12a.5.5 0 0 1 .64-.06l.07.06c.17.18.2.44.06.64l-.06.07L10.7 10l2.12 2.12c.17.17.2.44.06.64l-.06.07a.5.5 0 0 1-.64.06l-.07-.06L10 10.7l-2.12 2.12a.5.5 0 0 1-.64.06l-.07-.06a.5.5 0 0 1-.06-.64l.06-.07L9.3 10 7.17 7.88a.5.5 0 0 1-.06-.64l.06-.07a.5.5 0 0 1 .64-.06Z"]),Document16Regular=createFluentIcon("Document16Regular","16",["M5 1a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h6a2 2 0 0 0 2-2V5.41c0-.4-.16-.78-.44-1.06L9.65 1.44A1.5 1.5 0 0 0 8.59 1H5ZM4 3a1 1 0 0 1 1-1h3v2.5C8 5.33 8.67 6 9.5 6H12v7a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V3Zm7.8 2H9.5a.5.5 0 0 1-.5-.5V2.2L11.8 5Z"]),ErrorCircle16Filled=createFluentIcon("ErrorCircle16Filled","16",["M8 2a6 6 0 1 1 0 12A6 6 0 0 1 8 2Zm0 8a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0-5.5a.5.5 0 0 0-.5.41V8.59a.5.5 0 0 0 1 0V4.91A.5.5 0 0 0 8 4.5Z"]),ErrorCircle20Filled=createFluentIcon("ErrorCircle20Filled","20",["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"]),Flow16Regular=createFluentIcon("Flow16Regular","16",["M12.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Zm-2.45 2a2.5 2.5 0 1 0 0-1H9.5a2 2 0 0 0-2 2v2a1 1 0 0 1-1 1h-.55a2.5 2.5 0 1 0 0 1h.55a2 2 0 0 0 2-2V7a1 1 0 0 1 1-1h.55ZM5 10.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z"]),GanttChart20Regular=createFluentIcon("GanttChart20Regular","20",["M4.5 7a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1h-4ZM9 9.5c0-.28.22-.5.5-.5h4a.5.5 0 0 1 0 1h-4a.5.5 0 0 1-.5-.5Zm3.5 1.5a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1h-3Zm-8-7A2.5 2.5 0 0 0 2 6.5v7A2.5 2.5 0 0 0 4.5 16h11a2.5 2.5 0 0 0 2.5-2.5v-7A2.5 2.5 0 0 0 15.5 4h-11ZM3 6.5C3 5.67 3.67 5 4.5 5H7v1h1V5h4v3h1V5h2.5c.83 0 1.5.67 1.5 1.5v7c0 .83-.67 1.5-1.5 1.5H13v-2h-1v2H8V9H7v6H4.5A1.5 1.5 0 0 1 3 13.5v-7Z"]),HexagonThree16Regular=createFluentIcon("HexagonThree16Regular","16",["M3.47 2a1 1 0 0 1 .87-.5h2.32a1 1 0 0 1 .87.5l1.16 2a1 1 0 0 1 0 1L7.53 7a1 1 0 0 1-.87.5H4.34a1 1 0 0 1-.87-.5L2.31 5a1 1 0 0 1 0-1l1.16-2Zm3.2.5H4.33l-1.16 2 1.16 2h2.32l1.16-2-1.16-2ZM3.46 9a1 1 0 0 1 .87-.5h2.32a1 1 0 0 1 .87.5l1.16 2a1 1 0 0 1 0 1l-1.16 2a1 1 0 0 1-.87.5H4.34a1 1 0 0 1-.87-.5l-1.16-2a1 1 0 0 1 0-1l1.16-2Zm3.2.5H4.33l-1.16 2 1.16 2h2.32l1.16-2-1.16-2ZM10.33 5a1 1 0 0 0-.87.5l-1.16 2a1 1 0 0 0 0 1l1.16 2c.18.31.51.5.87.5h2.32a1 1 0 0 0 .87-.5l1.16-2a1 1 0 0 0 0-1l-1.16-2a1 1 0 0 0-.87-.5h-2.32Zm0 1h2.32l1.16 2-1.16 2h-2.32L9.18 8l1.16-2Z"]),Link16Regular=createFluentIcon("Link16Regular","16",["M9.5 4h1a3.5 3.5 0 0 1 .2 7H9.5a.5.5 0 0 1-.1-.99h.1l1-.01a2.5 2.5 0 0 0 .16-5H9.5a.5.5 0 0 1-.09-1h1.09-1Zm-4 0h1a.5.5 0 0 1 .09 1H5.5a2.5 2.5 0 0 0-.16 5H6.5a.5.5 0 0 1 .09 1H5.5a3.5 3.5 0 0 1-.2-7h1.2-1Zm0 3h5a.5.5 0 0 1 .09 1H5.5a.5.5 0 0 1-.09-1h.09Z"]),NumberCircle020Regular=createFluentIcon("NumberCircle020Regular","20",["M17 10a7 7 0 1 1-14 0 7 7 0 0 1 14 0Zm-7 8a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm-2-8c0-1.07.15-1.97.49-2.6.16-.3.36-.51.6-.66.23-.15.52-.24.91-.24s.68.1.92.24c.23.15.43.37.6.67.33.62.48 1.52.48 2.59 0 1.07-.15 1.97-.49 2.6-.16.3-.36.51-.6.66-.23.15-.52.24-.91.24s-.68-.1-.92-.24a1.74 1.74 0 0 1-.6-.67A5.65 5.65 0 0 1 8 10Zm2-4.5c-.55 0-1.04.13-1.45.4-.4.25-.72.61-.94 1.03A6.6 6.6 0 0 0 7 10c0 1.14.16 2.23.6 3.07.23.42.54.78.95 1.04.41.26.9.39 1.45.39.55 0 1.04-.13 1.45-.4.4-.25.72-.61.94-1.03.45-.84.61-1.93.61-3.07a6.6 6.6 0 0 0-.6-3.07 2.74 2.74 0 0 0-.95-1.04c-.41-.26-.9-.39-1.45-.39Z"]),Person24Regular=createFluentIcon("Person24Regular","24",["M17.75 14C19 14 20 15 20 16.25v.57c0 .9-.32 1.76-.9 2.44C17.53 21.1 15.15 22 12 22c-3.15 0-5.53-.9-7.1-2.74a3.75 3.75 0 0 1-.9-2.43v-.58C4 15 5.01 14 6.25 14h11.5Zm0 1.5H6.25a.75.75 0 0 0-.75.75v.58c0 .53.2 1.05.54 1.46C7.3 19.76 9.26 20.5 12 20.5c2.74 0 4.7-.74 5.96-2.21.35-.41.54-.93.54-1.47v-.57a.75.75 0 0 0-.75-.75ZM12 2a5 5 0 1 1 0 10 5 5 0 0 1 0-10Zm0 1.5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7Z"]),QuestionCircle16Regular=createFluentIcon("QuestionCircle16Regular","16",["M8 2a6 6 0 1 1 0 12A6 6 0 0 1 8 2Zm0 1a5 5 0 1 0 0 10A5 5 0 0 0 8 3Zm0 7.5A.75.75 0 1 1 8 12a.75.75 0 0 1 0-1.5Zm0-6a2 2 0 0 1 2 2c0 .73-.21 1.14-.75 1.7l-.27.28c-.38.4-.48.6-.48 1.02a.5.5 0 0 1-1 0c0-.73.21-1.14.75-1.7l.27-.28c.38-.4.48-.6.48-1.02a1 1 0 0 0-2 0 .5.5 0 0 1-1 0c0-1.1.9-2 2-2Z"]),QuestionCircle20Filled=createFluentIcon("QuestionCircle20Filled","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 11.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0-8A2.5 2.5 0 0 0 7.5 8a.5.5 0 0 0 1 0 1.5 1.5 0 1 1 2.63.98l-.1.11-.12.1-.25.19A3.2 3.2 0 0 0 9.5 12a.5.5 0 0 0 1 0c0-.76.2-1.25.53-1.61l.08-.08.08-.07.09-.07.22-.17.15-.12A2.5 2.5 0 0 0 10 5.5Z"]),Search20Regular=createFluentIcon("Search20Regular","20",["M8.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"]),SendCopy20Regular=createFluentIcon("SendCopy20Regular","20",["M8.65 2.15c.2-.2.5-.2.7 0l3 3a.5.5 0 0 1-.7.7L9.5 3.71v7.79a.5.5 0 0 1-1 0V3.7L6.35 5.86a.5.5 0 1 1-.7-.7l3-3ZM5.27 17c.34.6.99 1 1.73 1h6a4 4 0 0 0 4-4v-3.5a.5.5 0 1 0-1 0V14a3 3 0 0 1-3 3H5.27ZM4 8.5a.5.5 0 0 0-1 0V14c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V8.5a.5.5 0 0 0-1 0V14a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V8.5Z"]),ShieldCheckmark24Regular=createFluentIcon("ShieldCheckmark24Regular","24",["M3 5.75c0-.41.34-.75.75-.75 2.66 0 5.26-.94 7.8-2.85.27-.2.63-.2.9 0C14.99 4.05 17.59 5 20.25 5c.41 0 .75.34.75.75V11c0 .34-.01.67-.04 1a6.47 6.47 0 0 0-1.46-.69V6.48a14.36 14.36 0 0 1-7.5-2.8 14.36 14.36 0 0 1-7.5 2.8V11c0 4.15 2.33 7.22 7.13 9.28.26.56.6 1.07 1 1.52l-.36.15a.75.75 0 0 1-.54 0C5.96 19.68 3 16 3 11V5.75ZM23 17.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Zm-2.15-2.35a.5.5 0 0 0-.7 0l-3.65 3.64-1.65-1.64a.5.5 0 0 0-.7.7l2 2c.2.2.5.2.7 0l4-4a.5.5 0 0 0 0-.7Z"]),TextBulletListSquareWarning24Regular=createFluentIcon("TextBulletListSquareWarning24Regular","24",["M7.75 9.25a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm3.5-1.75a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5h-5.5Zm0 3.75a.75.75 0 1 0 0 1.5h3.83l.19-.37c.26-.53.67-.9 1.13-1.13h-5.15Zm0 3.75h2.7l-.74 1.5h-1.96a.75.75 0 1 1 0-1.5Zm-5 4.5h5.46l-.44.88c-.1.2-.17.41-.22.62h-4.8A3.25 3.25 0 0 1 3 17.75V6.25C3 4.45 4.46 3 6.25 3h11.5C19.55 3 21 4.46 21 6.25v8.65l-1.26-2.52a2.6 2.6 0 0 0-.24-.39V6.25c0-.97-.78-1.75-1.75-1.75H6.25c-.97 0-1.75.78-1.75 1.75v11.5c0 .97.78 1.75 1.75 1.75Zm2.5-7.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-1 4.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm8.41-3.92a1.5 1.5 0 0 1 2.69 0l4 8c.5 1-.23 2.17-1.35 2.17h-8a1.5 1.5 0 0 1-1.34-2.17l4-8ZM18 15.5a.5.5 0 0 0-1 0v3a.5.5 0 0 0 1 0v-3Zm-.5 5.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z"]),TextWrap16Regular=createFluentIcon("TextWrap16Regular","16",["M2 3.5c0-.28.22-.5.5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5Zm0 4c0-.28.22-.5.5-.5h10a2.5 2.5 0 0 1 0 5H9.7l.65.65a.5.5 0 0 1-.7.7l-1.5-1.5a.5.5 0 0 1 0-.7l1.5-1.5a.5.5 0 0 1 .7.7l-.64.65h2.79a1.5 1.5 0 0 0 0-3h-10a.5.5 0 0 1-.5-.5ZM6 11a.5.5 0 0 1 0 1H2.5a.5.5 0 0 1 0-1H6Z"]),TextWrapOff16Regular=createFluentIcon("TextWrapOff16Regular","16",["M14.15 14.85 11.29 12H9.71l.64.65a.5.5 0 0 1-.7.7l-1.5-1.5a.5.5 0 0 1 0-.7L9.29 10l-2-2H2.5a.5.5 0 0 1 0-1h3.8l-3-3h-.8a.5.5 0 0 1-.18-.97L1.15 1.85a.5.5 0 1 1 .7-.7l13 13a.5.5 0 0 1-.7.7ZM10.12 8l-1-1h3.38a2.5 2.5 0 0 1 1.27 4.65l-.74-.74A1.5 1.5 0 0 0 12.5 8h-2.38Zm-4-4-1-1h8.38a.5.5 0 0 1 0 1H6.12ZM6 11a.5.5 0 0 1 0 1H2.5a.5.5 0 0 1 0-1H6Z"]),ZoomIn20Regular=createFluentIcon("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"]),renderFluentProvider_unstable=(eo,to)=>jsx$1(Provider$1,{value:to.provider,children:jsx$1(ThemeProvider,{value:to.theme,children:jsx$1(ThemeClassNameProvider,{value:to.themeClassName,children:jsx$1(CustomStyleHooksProvider,{value:to.customStyleHooks_unstable,children:jsx$1(TooltipVisibilityProvider,{value:to.tooltip,children:jsx$1(TextDirectionProvider,{dir:to.textDirection,children:jsx$1(IconDirectionContextProvider,{value:to.iconDirection,children:jsx$1(OverridesProvider,{value:to.overrides_unstable,children:jsxs(eo.root,{children:[canUseDOM$3()?null:jsx$1("style",{dangerouslySetInnerHTML:{__html:eo.serverStyleProps.cssRule},...eo.serverStyleProps.attributes}),eo.root.children]})})})})})})})})});/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */const _canUseWeakRef=typeof WeakRef<"u";class WeakRefInstance{constructor(to){_canUseWeakRef&&typeof to=="object"?this._weakRef=new WeakRef(to):this._instance=to}deref(){var to,ro,no;let oo;return this._weakRef?(oo=(to=this._weakRef)===null||to===void 0?void 0:to.deref(),oo||delete this._weakRef):(oo=this._instance,!((no=(ro=oo)===null||ro===void 0?void 0:ro.isDisposed)===null||no===void 0)&&no.call(ro)&&delete this._instance),oo}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */const KEYBORG_FOCUSIN="keyborg:focusin";function canOverrideNativeFocus(eo){const to=eo.HTMLElement,ro=to.prototype.focus;let no=!1;return to.prototype.focus=function(){no=!0},eo.document.createElement("button").focus(),to.prototype.focus=ro,no}let _canOverrideNativeFocus=!1;function nativeFocus(eo){const to=eo.focus;to.__keyborgNativeFocus?to.__keyborgNativeFocus.call(eo):eo.focus()}function setupFocusEvent(eo){const to=eo;_canOverrideNativeFocus||(_canOverrideNativeFocus=canOverrideNativeFocus(to));const ro=to.HTMLElement.prototype.focus;if(ro.__keyborgNativeFocus)return;to.HTMLElement.prototype.focus=so;const no=ao=>{const lo=ao.relatedTarget,uo=ao.currentTarget;uo.contains(lo)||(uo.removeEventListener("focusin",oo),uo.removeEventListener("focusout",no))},oo=ao=>{var lo;let uo=ao.target;if(!uo)return;uo.shadowRoot&&(uo.shadowRoot.addEventListener("focusin",oo),uo.shadowRoot.addEventListener("focusout",no),uo=ao.composedPath()[0]);const co={relatedTarget:ao.relatedTarget||void 0},fo=new CustomEvent(KEYBORG_FOCUSIN,{cancelable:!0,bubbles:!0,composed:!0,detail:co});fo.details=co,(_canOverrideNativeFocus||io.lastFocusedProgrammatically)&&(co.isFocusedProgrammatically=uo===((lo=io.lastFocusedProgrammatically)===null||lo===void 0?void 0:lo.deref()),io.lastFocusedProgrammatically=void 0),uo.dispatchEvent(fo)},io=to.__keyborgData={focusInHandler:oo};to.document.addEventListener("focusin",to.__keyborgData.focusInHandler,!0);function so(){const ao=to.__keyborgData;return ao&&(ao.lastFocusedProgrammatically=new WeakRefInstance(this)),ro.apply(this,arguments)}so.__keyborgNativeFocus=ro}function disposeFocusEvent(eo){const to=eo,ro=to.HTMLElement.prototype,no=ro.focus.__keyborgNativeFocus,oo=to.__keyborgData;oo&&(to.document.removeEventListener("focusin",oo.focusInHandler,!0),delete to.__keyborgData),no&&(ro.focus=no)}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */const _dismissTimeout=500;let _lastId=0;class KeyborgState{constructor(){this.__keyborgCoreRefs={},this._isNavigatingWithKeyboard=!1}add(to){const ro=to.id;ro in this.__keyborgCoreRefs||(this.__keyborgCoreRefs[ro]=new WeakRefInstance(to))}remove(to){delete this.__keyborgCoreRefs[to],Object.keys(this.__keyborgCoreRefs).length===0&&(this._isNavigatingWithKeyboard=!1)}setVal(to){if(this._isNavigatingWithKeyboard!==to){this._isNavigatingWithKeyboard=to;for(const ro of Object.keys(this.__keyborgCoreRefs)){const oo=this.__keyborgCoreRefs[ro].deref();oo?oo.update(to):this.remove(ro)}}}getVal(){return this._isNavigatingWithKeyboard}}const _state=new KeyborgState;class KeyborgCore{constructor(to,ro){this._onFocusIn=oo=>{if(this._isMouseUsedTimer||_state.getVal())return;const io=oo.detail;io.relatedTarget&&(io.isFocusedProgrammatically||io.isFocusedProgrammatically===void 0||_state.setVal(!0))},this._onMouseDown=oo=>{if(oo.buttons===0||oo.clientX===0&&oo.clientY===0&&oo.screenX===0&&oo.screenY===0)return;const io=this._win;io&&(this._isMouseUsedTimer&&io.clearTimeout(this._isMouseUsedTimer),this._isMouseUsedTimer=io.setTimeout(()=>{delete this._isMouseUsedTimer},1e3)),_state.setVal(!1)},this._onKeyDown=oo=>{var io,so;const ao=_state.getVal(),lo=oo.keyCode,uo=this._triggerKeys;if(!ao&&(!uo||uo.has(lo))){const co=(io=this._win)===null||io===void 0?void 0:io.document.activeElement;if(co&&(co.tagName==="INPUT"||co.tagName==="TEXTAREA"||co.contentEditable==="true"))return;_state.setVal(!0)}else ao&&(!((so=this._dismissKeys)===null||so===void 0)&&so.has(lo))&&this._scheduleDismiss()},this.id="c"+ ++_lastId,this._win=to;const no=to.document;if(ro){const oo=ro.triggerKeys,io=ro.dismissKeys;oo!=null&&oo.length&&(this._triggerKeys=new Set(oo)),io!=null&&io.length&&(this._dismissKeys=new Set(io))}no.addEventListener(KEYBORG_FOCUSIN,this._onFocusIn,!0),no.addEventListener("mousedown",this._onMouseDown,!0),to.addEventListener("keydown",this._onKeyDown,!0),setupFocusEvent(to),_state.add(this)}dispose(){const to=this._win;if(to){this._isMouseUsedTimer&&(to.clearTimeout(this._isMouseUsedTimer),this._isMouseUsedTimer=void 0),this._dismissTimer&&(to.clearTimeout(this._dismissTimer),this._dismissTimer=void 0),disposeFocusEvent(to);const ro=to.document;ro.removeEventListener(KEYBORG_FOCUSIN,this._onFocusIn,!0),ro.removeEventListener("mousedown",this._onMouseDown,!0),to.removeEventListener("keydown",this._onKeyDown,!0),delete this._win,_state.remove(this.id)}}isDisposed(){return!!this._win}update(to){var ro,no;const oo=(no=(ro=this._win)===null||ro===void 0?void 0:ro.__keyborg)===null||no===void 0?void 0:no.refs;if(oo)for(const io of Object.keys(oo))Keyborg.update(oo[io],to)}_scheduleDismiss(){const to=this._win;if(to){this._dismissTimer&&(to.clearTimeout(this._dismissTimer),this._dismissTimer=void 0);const ro=to.document.activeElement;this._dismissTimer=to.setTimeout(()=>{this._dismissTimer=void 0;const no=to.document.activeElement;ro&&no&&ro===no&&_state.setVal(!1)},_dismissTimeout)}}}class Keyborg{constructor(to,ro){this._cb=[],this._id="k"+ ++_lastId,this._win=to;const no=to.__keyborg;no?(this._core=no.core,no.refs[this._id]=this):(this._core=new KeyborgCore(to,ro),to.__keyborg={core:this._core,refs:{[this._id]:this}})}static create(to,ro){return new Keyborg(to,ro)}static dispose(to){to.dispose()}static update(to,ro){to._cb.forEach(no=>no(ro))}dispose(){var to;const ro=(to=this._win)===null||to===void 0?void 0:to.__keyborg;ro!=null&&ro.refs[this._id]&&(delete ro.refs[this._id],Object.keys(ro.refs).length===0&&(ro.core.dispose(),delete this._win.__keyborg)),this._cb=[],delete this._core,delete this._win}isNavigatingWithKeyboard(){return _state.getVal()}subscribe(to){this._cb.push(to)}unsubscribe(to){const ro=this._cb.indexOf(to);ro>=0&&this._cb.splice(ro,1)}setVal(to){_state.setVal(to)}}function createKeyborg(eo,to){return Keyborg.create(eo,to)}function disposeKeyborg(eo){Keyborg.dispose(eo)}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */const TabsterAttributeName="data-tabster",TabsterDummyInputAttributeName="data-tabster-dummy",DeloserEventName="tabster:deloser",ModalizerActiveEventName="tabster:modalizer:active",ModalizerInactiveEventName="tabster:modalizer:inactive",ModalizerFocusInEventName="tabster:modalizer:focusin",ModalizerFocusOutEventName="tabster:modalizer:focusout",ModalizerBeforeFocusOutEventName="tabster:modalizer:beforefocusout",MoverEventName="tabster:mover",FocusInEventName="tabster:focusin",FocusOutEventName="tabster:focusout",MoveFocusEventName="tabster:movefocus",FocusableSelector=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","*[tabindex]","*[contenteditable]"].join(", "),ObservedElementAccesibilities={Any:0,Accessible:1,Focusable:2},RestoreFocusOrders={History:0,DeloserDefault:1,RootDefault:2,DeloserFirst:3,RootFirst:4},Visibilities={Invisible:0,PartiallyVisible:1,Visible:2},RestorerTypes={Source:0,Target:1},MoverDirections={Both:0,Vertical:1,Horizontal:2,Grid:3,GridLinear:4},GroupperTabbabilities={Unlimited:0,Limited:1,LimitedTrapFocus:2},SysDummyInputsPositions={Auto:0,Inside:1,Outside:2};var Types=Object.freeze({__proto__:null,TabsterAttributeName,TabsterDummyInputAttributeName,DeloserEventName,ModalizerActiveEventName,ModalizerInactiveEventName,ModalizerFocusInEventName,ModalizerFocusOutEventName,ModalizerBeforeFocusOutEventName,MoverEventName,FocusInEventName,FocusOutEventName,MoveFocusEventName,FocusableSelector,ObservedElementAccesibilities,RestoreFocusOrders,Visibilities,RestorerTypes,MoverDirections,GroupperTabbabilities,SysDummyInputsPositions});/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */function getTabsterOnElement(eo,to){var ro;return(ro=eo.storageEntry(to))===null||ro===void 0?void 0:ro.tabster}function updateTabsterByAttribute(eo,to,ro){var no,oo;const io=ro||eo._noop?void 0:to.getAttribute(TabsterAttributeName);let so=eo.storageEntry(to),ao;if(io)if(io!==((no=so==null?void 0:so.attr)===null||no===void 0?void 0:no.string))try{const fo=JSON.parse(io);if(typeof fo!="object")throw new Error(`Value is not a JSON object, got '${io}'.`);ao={string:io,object:fo}}catch{}else return;else if(!so)return;so||(so=eo.storageEntry(to,!0)),so.tabster||(so.tabster={});const lo=so.tabster||{},uo=((oo=so.attr)===null||oo===void 0?void 0:oo.object)||{},co=(ao==null?void 0:ao.object)||{};for(const fo of Object.keys(uo))if(!co[fo]){if(fo==="root"){const ho=lo[fo];ho&&eo.root.onRoot(ho,!0)}switch(fo){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":const ho=lo[fo];ho&&(ho.dispose(),delete lo[fo]);break;case"observed":delete lo[fo],eo.observedElement&&eo.observedElement.onObservedElementUpdate(to);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete lo[fo];break}}for(const fo of Object.keys(co)){const ho=co.sys;switch(fo){case"deloser":lo.deloser?lo.deloser.setProps(co.deloser):eo.deloser&&(lo.deloser=eo.deloser.createDeloser(to,co.deloser));break;case"root":lo.root?lo.root.setProps(co.root):lo.root=eo.root.createRoot(to,co.root,ho),eo.root.onRoot(lo.root);break;case"modalizer":lo.modalizer?lo.modalizer.setProps(co.modalizer):eo.modalizer&&(lo.modalizer=eo.modalizer.createModalizer(to,co.modalizer,ho));break;case"restorer":lo.restorer?lo.restorer.setProps(co.restorer):eo.restorer&&co.restorer&&(lo.restorer=eo.restorer.createRestorer(to,co.restorer));break;case"focusable":lo.focusable=co.focusable;break;case"groupper":lo.groupper?lo.groupper.setProps(co.groupper):eo.groupper&&(lo.groupper=eo.groupper.createGroupper(to,co.groupper,ho));break;case"mover":lo.mover?lo.mover.setProps(co.mover):eo.mover&&(lo.mover=eo.mover.createMover(to,co.mover,ho));break;case"observed":eo.observedElement&&(lo.observed=co.observed,eo.observedElement.onObservedElementUpdate(to));break;case"uncontrolled":lo.uncontrolled=co.uncontrolled;break;case"outline":eo.outline&&(lo.outline=co.outline);break;case"sys":lo.sys=co.sys;break;default:console.error(`Unknown key '${fo}' in data-tabster attribute value.`)}}ao?so.attr=ao:(Object.keys(lo).length===0&&(delete so.tabster,delete so.attr),eo.storageEntry(to,!1))}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */function createEventTarget(eo){const to=eo();try{if(to.EventTarget)return new to.EventTarget}catch(ro){if(!(ro instanceof TypeError))throw ro}return to.document.createElement("div")}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */let _isBrokenIE11;const _DOMRect=typeof DOMRect<"u"?DOMRect:class{constructor(eo,to,ro,no){this.left=eo||0,this.top=to||0,this.right=(eo||0)+(ro||0),this.bottom=(to||0)+(no||0)}};let _uidCounter=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),_isBrokenIE11=!1}catch{_isBrokenIE11=!0}const _updateDummyInputsTimeout=100;function getInstanceContext(eo){const to=eo();let ro=to.__tabsterInstanceContext;return ro||(ro={elementByUId:{},basics:{Promise:to.Promise||void 0,WeakRef:to.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},to.__tabsterInstanceContext=ro),ro}function disposeInstanceContext(eo){const to=eo.__tabsterInstanceContext;to&&(to.elementByUId={},delete to.WeakRef,to.containerBoundingRectCache={},to.containerBoundingRectCacheTimer&&eo.clearTimeout(to.containerBoundingRectCacheTimer),to.fakeWeakRefsTimer&&eo.clearTimeout(to.fakeWeakRefsTimer),to.fakeWeakRefs=[],delete eo.__tabsterInstanceContext)}function createWeakMap(eo){const to=eo.__tabsterInstanceContext;return new((to==null?void 0:to.basics.WeakMap)||WeakMap)}function hasSubFocusable(eo){return!!eo.querySelector(FocusableSelector)}class FakeWeakRef{constructor(to){this._target=to}deref(){return this._target}static cleanup(to,ro){return to._target?ro||!documentContains(to._target.ownerDocument,to._target)?(delete to._target,!0):!1:!0}}class WeakHTMLElement{constructor(to,ro,no){const oo=getInstanceContext(to);let io;oo.WeakRef?io=new oo.WeakRef(ro):(io=new FakeWeakRef(ro),oo.fakeWeakRefs.push(io)),this._ref=io,this._data=no}get(){const to=this._ref;let ro;return to&&(ro=to.deref(),ro||delete this._ref),ro}getData(){return this._data}}function cleanupFakeWeakRefs(eo,to){const ro=getInstanceContext(eo);ro.fakeWeakRefs=ro.fakeWeakRefs.filter(no=>!FakeWeakRef.cleanup(no,to))}function startFakeWeakRefsCleanup(eo){const to=getInstanceContext(eo);to.fakeWeakRefsStarted||(to.fakeWeakRefsStarted=!0,to.WeakRef=getWeakRef(to)),to.fakeWeakRefsTimer||(to.fakeWeakRefsTimer=eo().setTimeout(()=>{to.fakeWeakRefsTimer=void 0,cleanupFakeWeakRefs(eo),startFakeWeakRefsCleanup(eo)},2*60*1e3))}function stopFakeWeakRefsCleanupAndClearStorage(eo){const to=getInstanceContext(eo);to.fakeWeakRefsStarted=!1,to.fakeWeakRefsTimer&&(eo().clearTimeout(to.fakeWeakRefsTimer),to.fakeWeakRefsTimer=void 0,to.fakeWeakRefs=[])}function createElementTreeWalker(eo,to,ro){if(to.nodeType!==Node.ELEMENT_NODE)return;const no=_isBrokenIE11?ro:{acceptNode:ro};return eo.createTreeWalker(to,NodeFilter.SHOW_ELEMENT,no,!1)}function getBoundingRect(eo,to){let ro=to.__tabsterCacheId;const no=getInstanceContext(eo),oo=ro?no.containerBoundingRectCache[ro]:void 0;if(oo)return oo.rect;const io=to.ownerDocument&&to.ownerDocument.documentElement;if(!io)return new _DOMRect;let so=0,ao=0,lo=io.clientWidth,uo=io.clientHeight;if(to!==io){const fo=to.getBoundingClientRect();so=Math.max(so,fo.left),ao=Math.max(ao,fo.top),lo=Math.min(lo,fo.right),uo=Math.min(uo,fo.bottom)}const co=new _DOMRect(so{no.containerBoundingRectCacheTimer=void 0;for(const fo of Object.keys(no.containerBoundingRectCache))delete no.containerBoundingRectCache[fo].element.__tabsterCacheId;no.containerBoundingRectCache={}},50)),co}function isElementVerticallyVisibleInContainer(eo,to,ro){const no=getScrollableContainer(to);if(!no)return!1;const oo=getBoundingRect(eo,no),io=to.getBoundingClientRect(),so=io.height*(1-ro),ao=Math.max(0,oo.top-io.top),lo=Math.max(0,io.bottom-oo.bottom),uo=ao+lo;return uo===0||uo<=so}function scrollIntoView$4(eo,to,ro){const no=getScrollableContainer(to);if(no){const oo=getBoundingRect(eo,no),io=to.getBoundingClientRect();ro?no.scrollTop+=io.top-oo.top:no.scrollTop+=io.bottom-oo.bottom}}function getScrollableContainer(eo){const to=eo.ownerDocument;if(to){for(let ro=eo.parentElement;ro;ro=ro.parentElement)if(ro.scrollWidth>ro.clientWidth||ro.scrollHeight>ro.clientHeight)return ro;return to.documentElement}return null}function makeFocusIgnored(eo){eo.__shouldIgnoreFocus=!0}function shouldIgnoreFocus(eo){return!!eo.__shouldIgnoreFocus}function getUId(eo){const to=new Uint32Array(4);if(eo.crypto&&eo.crypto.getRandomValues)eo.crypto.getRandomValues(to);else if(eo.msCrypto&&eo.msCrypto.getRandomValues)eo.msCrypto.getRandomValues(to);else for(let no=0;no{if(this._fixedTarget){const ho=this._fixedTarget.get();ho&&nativeFocus(ho);return}const fo=this.input;if(this.onFocusIn&&fo){const ho=co.relatedTarget;this.onFocusIn(this,this._isBackward(!0,fo,ho),ho)}},this._focusOut=co=>{if(this._fixedTarget)return;this.useDefaultAction=!1;const fo=this.input;if(this.onFocusOut&&fo){const ho=co.relatedTarget;this.onFocusOut(this,this._isBackward(!1,fo,ho),ho)}};const ao=to(),lo=ao.document.createElement("i");lo.tabIndex=0,lo.setAttribute("role","none"),lo.setAttribute(TabsterDummyInputAttributeName,""),lo.setAttribute("aria-hidden","true");const uo=lo.style;uo.position="fixed",uo.width=uo.height="1px",uo.opacity="0.001",uo.zIndex="-1",uo.setProperty("content-visibility","hidden"),makeFocusIgnored(lo),this.input=lo,this.isFirst=no.isFirst,this.isOutside=ro,this._isPhantom=(so=no.isPhantom)!==null&&so!==void 0?so:!1,this._fixedTarget=io,lo.addEventListener("focusin",this._focusIn),lo.addEventListener("focusout",this._focusOut),lo.__tabsterDummyContainer=oo,this._isPhantom&&(this._disposeTimer=ao.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(ao.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){var to;this._clearDisposeTimeout&&this._clearDisposeTimeout();const ro=this.input;ro&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,ro.removeEventListener("focusin",this._focusIn),ro.removeEventListener("focusout",this._focusOut),delete ro.__tabsterDummyContainer,(to=ro.parentElement)===null||to===void 0||to.removeChild(ro))}setTopLeft(to,ro){var no;const oo=(no=this.input)===null||no===void 0?void 0:no.style;oo&&(oo.top=`${to}px`,oo.left=`${ro}px`)}_isBackward(to,ro,no){return to&&!no?!this.isFirst:!!(no&&ro.compareDocumentPosition(no)&Node.DOCUMENT_POSITION_FOLLOWING)}}const DummyInputManagerPriorities={Root:1,Modalizer:2,Mover:3,Groupper:4};class DummyInputManager{constructor(to,ro,no,oo,io,so){this._element=ro,this._instance=new DummyInputManagerCore(to,ro,this,no,oo,io,so)}_setHandlers(to,ro){this._onFocusIn=to,this._onFocusOut=ro}moveOut(to){var ro;(ro=this._instance)===null||ro===void 0||ro.moveOut(to)}moveOutWithDefaultAction(to,ro){var no;(no=this._instance)===null||no===void 0||no.moveOutWithDefaultAction(to,ro)}getHandler(to){return to?this._onFocusIn:this._onFocusOut}setTabbable(to){var ro;(ro=this._instance)===null||ro===void 0||ro.setTabbable(this,to)}dispose(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}static moveWithPhantomDummy(to,ro,no,oo,io){var so;const lo=new DummyInput(to.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(lo){let uo,co;if(ro.tagName==="BODY")uo=ro,co=no&&oo||!no&&!oo?ro.firstElementChild:null;else{no&&(!oo||oo&&!to.focusable.isFocusable(ro,!1,!0,!0))?(uo=ro,co=oo?ro.firstElementChild:null):(uo=ro.parentElement,co=no&&oo||!no&&!oo?ro:ro.nextElementSibling);let fo,ho;do fo=no&&oo||!no&&!oo?co==null?void 0:co.previousElementSibling:co,ho=(so=fo==null?void 0:fo.__tabsterDummyContainer)===null||so===void 0?void 0:so.get(),ho===ro?co=no&&oo||!no&&!oo?fo:fo==null?void 0:fo.nextElementSibling:ho=void 0;while(ho)}uo&&triggerMoveFocusEvent({by:"root",owner:uo,next:null,relatedEvent:io})&&(uo.insertBefore(lo,co),nativeFocus(lo))}}static addPhantomDummyWithTarget(to,ro,no,oo){const so=new DummyInput(to.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new WeakHTMLElement(to.getWindow,oo)).input;if(so){let ao,lo;hasSubFocusable(ro)&&!no?(ao=ro,lo=ro.firstElementChild):(ao=ro.parentElement,lo=no?ro:ro.nextElementSibling),ao==null||ao.insertBefore(so,lo)}}}class DummyInputObserver{constructor(to){this._updateQueue=new Set,this._lastUpdateQueueTime=0,this._changedParents=new WeakSet,this._dummyElements=[],this._dummyCallbacks=new WeakMap,this._domChanged=ro=>{var no;this._changedParents.has(ro)||(this._changedParents.add(ro),!this._updateDummyInputsTimer&&(this._updateDummyInputsTimer=(no=this._win)===null||no===void 0?void 0:no.call(this).setTimeout(()=>{delete this._updateDummyInputsTimer;for(const oo of this._dummyElements){const io=oo.get();if(io){const so=this._dummyCallbacks.get(io);if(so){const ao=io.parentElement;(!ao||this._changedParents.has(ao))&&so()}}}this._changedParents=new WeakSet},_updateDummyInputsTimeout)))},this._win=to}add(to,ro){!this._dummyCallbacks.has(to)&&this._win&&(this._dummyElements.push(new WeakHTMLElement(this._win,to)),this._dummyCallbacks.set(to,ro),this.domChanged=this._domChanged)}remove(to){this._dummyElements=this._dummyElements.filter(ro=>{const no=ro.get();return no&&no!==to}),this._dummyCallbacks.delete(to),this._dummyElements.length===0&&delete this.domChanged}dispose(){var to;const ro=(to=this._win)===null||to===void 0?void 0:to.call(this);this._updateTimer&&(ro==null||ro.clearTimeout(this._updateTimer),delete this._updateTimer),this._updateDummyInputsTimer&&(ro==null||ro.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(to){this._win&&(this._updateQueue.add(to),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}_scheduledUpdatePositions(){var to;this._updateTimer||(this._updateTimer=(to=this._win)===null||to===void 0?void 0:to.call(this).setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+_updateDummyInputsTimeout<=Date.now()){const ro=new Map,no=[];for(const oo of this._updateQueue)no.push(oo(ro));this._updateQueue.clear();for(const oo of no)oo();ro.clear()}else this._scheduledUpdatePositions()},_updateDummyInputsTimeout))}}class DummyInputManagerCore{constructor(to,ro,no,oo,io,so,ao){this._wrappers=[],this._isOutside=!1,this._transformElements=new Set,this._onFocusIn=(po,go,vo)=>{this._onFocus(!0,po,go,vo)},this._onFocusOut=(po,go,vo)=>{this._onFocus(!1,po,go,vo)},this.moveOut=po=>{var go;const vo=this._firstDummy,bo=this._lastDummy;if(vo&&bo){this._ensurePosition();const xo=vo.input,_o=bo.input,Eo=(go=this._element)===null||go===void 0?void 0:go.get();if(xo&&_o&&Eo){let So;po?(xo.tabIndex=0,So=xo):(_o.tabIndex=0,So=_o),So&&nativeFocus(So)}}},this.moveOutWithDefaultAction=(po,go)=>{var vo;const bo=this._firstDummy,xo=this._lastDummy;if(bo&&xo){this._ensurePosition();const _o=bo.input,Eo=xo.input,So=(vo=this._element)===null||vo===void 0?void 0:vo.get();if(_o&&Eo&&So){let To;po?!bo.isOutside&&this._tabster.focusable.isFocusable(So,!0,!0,!0)?To=So:(bo.useDefaultAction=!0,_o.tabIndex=0,To=_o):(xo.useDefaultAction=!0,Eo.tabIndex=0,To=Eo),To&&triggerMoveFocusEvent({by:"root",owner:So,next:null,relatedEvent:go})&&nativeFocus(To)}}},this.setTabbable=(po,go)=>{var vo,bo;for(const _o of this._wrappers)if(_o.manager===po){_o.tabbable=go;break}const xo=this._getCurrent();if(xo){const _o=xo.tabbable?0:-1;let Eo=(vo=this._firstDummy)===null||vo===void 0?void 0:vo.input;Eo&&(Eo.tabIndex=_o),Eo=(bo=this._lastDummy)===null||bo===void 0?void 0:bo.input,Eo&&(Eo.tabIndex=_o)}},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=po=>{var go,vo;const bo=((go=this._firstDummy)===null||go===void 0?void 0:go.input)||((vo=this._lastDummy)===null||vo===void 0?void 0:vo.input),xo=this._transformElements,_o=new Set;let Eo=0,So=0;const To=this._getWindow();for(let wo=bo;wo&&wo.nodeType===Node.ELEMENT_NODE;wo=wo.parentElement){let Co=po.get(wo);if(Co===void 0){const Oo=To.getComputedStyle(wo).transform;Oo&&Oo!=="none"&&(Co={scrollTop:wo.scrollTop,scrollLeft:wo.scrollLeft}),po.set(wo,Co||null)}Co&&(_o.add(wo),xo.has(wo)||wo.addEventListener("scroll",this._addTransformOffsets),Eo+=Co.scrollTop,So+=Co.scrollLeft)}for(const wo of xo)_o.has(wo)||wo.removeEventListener("scroll",this._addTransformOffsets);return this._transformElements=_o,()=>{var wo,Co;(wo=this._firstDummy)===null||wo===void 0||wo.setTopLeft(Eo,So),(Co=this._lastDummy)===null||Co===void 0||Co.setTopLeft(Eo,So)}};const lo=ro.get();if(!lo)throw new Error("No element");this._tabster=to,this._getWindow=to.getWindow,this._callForDefaultAction=ao;const uo=lo.__tabsterDummy;if((uo||this)._wrappers.push({manager:no,priority:oo,tabbable:!0}),uo)return uo;lo.__tabsterDummy=this;const co=io==null?void 0:io.dummyInputsPosition,fo=lo.tagName;this._isOutside=co?co===SysDummyInputsPositions.Outside:(so||fo==="UL"||fo==="OL"||fo==="TABLE")&&!(fo==="LI"||fo==="TD"||fo==="TH"),this._firstDummy=new DummyInput(this._getWindow,this._isOutside,{isFirst:!0},ro),this._lastDummy=new DummyInput(this._getWindow,this._isOutside,{isFirst:!1},ro);const ho=this._firstDummy.input;ho&&to._dummyObserver.add(ho,this._addDummyInputs),this._firstDummy.onFocusIn=this._onFocusIn,this._firstDummy.onFocusOut=this._onFocusOut,this._lastDummy.onFocusIn=this._onFocusIn,this._lastDummy.onFocusOut=this._onFocusOut,this._element=ro,this._addDummyInputs()}dispose(to,ro){var no,oo,io,so;if((this._wrappers=this._wrappers.filter(lo=>lo.manager!==to&&!ro)).length===0){delete((no=this._element)===null||no===void 0?void 0:no.get()).__tabsterDummy;for(const co of this._transformElements)co.removeEventListener("scroll",this._addTransformOffsets);this._transformElements.clear();const lo=this._getWindow();this._addTimer&&(lo.clearTimeout(this._addTimer),delete this._addTimer);const uo=(oo=this._firstDummy)===null||oo===void 0?void 0:oo.input;uo&&this._tabster._dummyObserver.remove(uo),(io=this._firstDummy)===null||io===void 0||io.dispose(),(so=this._lastDummy)===null||so===void 0||so.dispose()}}_onFocus(to,ro,no,oo){var io;const so=this._getCurrent();so&&(!ro.useDefaultAction||this._callForDefaultAction)&&((io=so.manager.getHandler(to))===null||io===void 0||io(ro,no,oo))}_getCurrent(){return this._wrappers.sort((to,ro)=>to.tabbable!==ro.tabbable?to.tabbable?-1:1:to.priority-ro.priority),this._wrappers[0]}_ensurePosition(){var to,ro,no;const oo=(to=this._element)===null||to===void 0?void 0:to.get(),io=(ro=this._firstDummy)===null||ro===void 0?void 0:ro.input,so=(no=this._lastDummy)===null||no===void 0?void 0:no.input;if(!(!oo||!io||!so))if(this._isOutside){const ao=oo.parentElement;if(ao){const lo=oo.nextElementSibling;lo!==so&&ao.insertBefore(so,lo),oo.previousElementSibling!==io&&ao.insertBefore(io,oo)}}else{oo.lastElementChild!==so&&oo.appendChild(so);const ao=oo.firstElementChild;ao&&ao!==io&&oo.insertBefore(io,ao)}}}function getLastChild(eo){let to=null;for(let ro=eo.lastElementChild;ro;ro=ro.lastElementChild)to=ro;return to||void 0}function getAdjacentElement(eo,to){let ro=eo,no=null;for(;ro&&!no;)no=to?ro.previousElementSibling:ro.nextElementSibling,ro=ro.parentElement;return no||void 0}function triggerEvent(eo,to,ro){const no=document.createEvent("HTMLEvents");return no.initEvent(to,!0,!0),no.details=ro,eo.dispatchEvent(no),!no.defaultPrevented}function triggerMoveFocusEvent(eo){return triggerEvent(eo.owner,MoveFocusEventName,eo)}function augmentAttribute(eo,to,ro,no){const oo=eo.storageEntry(to,!0);let io=!1;if(!oo.aug){if(no===void 0)return io;oo.aug={}}if(no===void 0){if(ro in oo.aug){const so=oo.aug[ro];delete oo.aug[ro],so===null?to.removeAttribute(ro):to.setAttribute(ro,so),io=!0}}else{let so;ro in oo.aug||(so=to.getAttribute(ro)),so!==void 0&&so!==no&&(oo.aug[ro]=so,no===null?to.removeAttribute(ro):to.setAttribute(ro,no),io=!0)}return no===void 0&&Object.keys(oo.aug).length===0&&(delete oo.aug,eo.storageEntry(to,!1)),io}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */function getTabsterAttribute(eo,to){const ro=JSON.stringify(eo);return to===!0?ro:{[TabsterAttributeName]:ro}}function mergeTabsterProps(eo,to){for(const ro of Object.keys(to)){const no=to[ro];no?eo[ro]=no:delete eo[ro]}}function setTabsterAttribute(eo,to,ro){let no;if(ro){const oo=eo.getAttribute(TabsterAttributeName);if(oo)try{no=JSON.parse(oo)}catch{}}no||(no={}),mergeTabsterProps(no,to),Object.keys(no).length>0?eo.setAttribute(TabsterAttributeName,getTabsterAttribute(no,!0)):eo.removeAttribute(TabsterAttributeName)}class RootDummyManager extends DummyInputManager{constructor(to,ro,no,oo){super(to,ro,DummyInputManagerPriorities.Root,oo,void 0,!0),this._onDummyInputFocus=io=>{var so;if(io.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);const ao=this._element.get();if(ao){this._setFocused(!0);const lo=this._tabster.focusedElement.getFirstOrLastTabbable(io.isFirst,{container:ao,ignoreAccessibility:!0});if(lo){nativeFocus(lo);return}}(so=io.input)===null||so===void 0||so.blur()}},this._setHandlers(this._onDummyInputFocus),this._tabster=to,this._setFocused=no}}class Root extends TabsterPart{constructor(to,ro,no,oo,io){super(to,ro,oo),this._isFocused=!1,this._setFocused=lo=>{var uo;if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===lo)return;const co=this._element.get();co&&(lo?(this._isFocused=!0,(uo=this._dummyManager)===null||uo===void 0||uo.setTabbable(!1),triggerEvent(this._tabster.root.eventTarget,"focus",{element:co})):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{var fo;delete this._setFocusedTimer,this._isFocused=!1,(fo=this._dummyManager)===null||fo===void 0||fo.setTabbable(!0),triggerEvent(this._tabster.root.eventTarget,"blur",{element:co})},0))},this._onFocusIn=lo=>{const uo=this._tabster.getParent,co=this._element.get();let fo=lo.target;do{if(fo===co){this._setFocused(!0);return}fo=fo&&uo(fo)}while(fo)},this._onFocusOut=()=>{this._setFocused(!1)},this._onDispose=no;const so=to.getWindow;this.uid=getElementUId(so,ro),this._sys=io,(to.controlTab||to.rootDummyInputs)&&this.addDummyInputs();const ao=so();ao.document.addEventListener("focusin",this._onFocusIn),ao.document.addEventListener("focusout",this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new RootDummyManager(this._tabster,this._element,this._setFocused,this._sys))}dispose(){var to;this._onDispose(this);const ro=this._tabster.getWindow();ro.document.removeEventListener("focusin",this._onFocusIn),ro.document.removeEventListener("focusout",this._onFocusOut),this._setFocusedTimer&&(ro.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),(to=this._dummyManager)===null||to===void 0||to.dispose(),this._remove()}moveOutWithDefaultAction(to,ro){const no=this._dummyManager;if(no)no.moveOutWithDefaultAction(to,ro);else{const oo=this.getElement();oo&&RootDummyManager.moveWithPhantomDummy(this._tabster,oo,!0,to,ro)}}_add(){}_remove(){}}class RootAPI{constructor(to,ro){this._autoRootWaiting=!1,this._roots={},this._forceDummy=!1,this.rootById={},this._autoRootCreate=()=>{var no;const oo=this._win().document,io=oo.body;if(io){this._autoRootUnwait(oo);const so=this._autoRoot;if(so)return setTabsterAttribute(io,{root:so},!0),updateTabsterByAttribute(this._tabster,io),(no=getTabsterOnElement(this._tabster,io))===null||no===void 0?void 0:no.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,oo.addEventListener("readystatechange",this._autoRootCreate))},this._onRootDispose=no=>{delete this._roots[no.id]},this._tabster=to,this._win=to.getWindow,this._autoRoot=ro,this.eventTarget=createEventTarget(this._win),to.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootUnwait(to){to.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){const to=this._win();this._autoRootUnwait(to.document),delete this._autoRoot,Object.keys(this._roots).forEach(ro=>{this._roots[ro]&&(this._roots[ro].dispose(),delete this._roots[ro])}),this.rootById={}}createRoot(to,ro,no){const oo=new Root(this._tabster,to,this._onRootDispose,ro,no);return this._roots[oo.id]=oo,this._forceDummy&&oo.addDummyInputs(),oo}addDummyInputs(){this._forceDummy=!0;const to=this._roots;for(const ro of Object.keys(to))to[ro].addDummyInputs()}static getRootByUId(to,ro){const no=to().__tabsterInstance;return no&&no.root.rootById[ro]}static getTabsterContext(to,ro,no){no===void 0&&(no={});var oo,io,so,ao;if(!ro.ownerDocument)return;const{checkRtl:lo,referenceElement:uo}=no,co=to.getParent;to.drainInitQueue();let fo,ho,po,go,vo=!1,bo,xo,_o,Eo,So=uo||ro;const To={};for(;So&&(!fo||lo);){const Co=getTabsterOnElement(to,So);if(lo&&_o===void 0){const Mo=So.dir;Mo&&(_o=Mo.toLowerCase()==="rtl")}if(!Co){So=co(So);continue}const Oo=So.tagName;(Co.uncontrolled||Oo==="IFRAME"||Oo==="WEBVIEW")&&(Eo=So),!go&&(!((oo=Co.focusable)===null||oo===void 0)&&oo.excludeFromMover)&&!po&&(vo=!0);const Ao=Co.modalizer,Ro=Co.groupper,No=Co.mover;!ho&&Ao&&(ho=Ao),!po&&Ro&&(!ho||Ao)&&(ho?(!Ro.isActive()&&Ro.getProps().tabbability&&ho.userId!==((io=to.modalizer)===null||io===void 0?void 0:io.activeId)&&(ho=void 0,po=Ro),xo=Ro):po=Ro),!go&&No&&(!ho||Ao)&&(!Ro||So!==ro)&&(go=No,bo=!!po&&po!==Ro),Co.root&&(fo=Co.root),!((so=Co.focusable)===null||so===void 0)&&so.ignoreKeydown&&Object.assign(To,Co.focusable.ignoreKeydown),So=co(So)}if(!fo){const Co=to.root;Co._autoRoot&&!((ao=ro.ownerDocument)===null||ao===void 0)&&ao.body&&(fo=Co._autoRootCreate())}return po&&!go&&(bo=!0),fo?{root:fo,modalizer:ho,groupper:po,mover:go,groupperBeforeMover:bo,modalizerInGroupper:xo,rtl:lo?!!_o:void 0,uncontrolled:Eo,excludedFromMover:vo,ignoreKeydown:Co=>!!To[Co.key]}:void 0}static getRoot(to,ro){var no;const oo=to.getParent;for(let io=ro;io;io=oo(io)){const so=(no=getTabsterOnElement(to,io))===null||no===void 0?void 0:no.root;if(so)return so}}onRoot(to,ro){ro?delete this.rootById[to.uid]:this.rootById[to.uid]=to}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class Subscribable{constructor(){this._callbacks=[]}dispose(){this._callbacks=[],delete this._val}subscribe(to){const ro=this._callbacks;ro.indexOf(to)<0&&ro.push(to)}subscribeFirst(to){const ro=this._callbacks,no=ro.indexOf(to);no>=0&&ro.splice(no,1),ro.unshift(to)}unsubscribe(to){const ro=this._callbacks.indexOf(to);ro>=0&&this._callbacks.splice(ro,1)}setVal(to,ro){this._val!==to&&(this._val=to,this._callCallbacks(to,ro))}getVal(){return this._val}trigger(to,ro){this._callCallbacks(to,ro)}_callCallbacks(to,ro){this._callbacks.forEach(no=>no(to,ro))}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class FocusableAPI{constructor(to){this._tabster=to}dispose(){}getProps(to){const ro=getTabsterOnElement(this._tabster,to);return ro&&ro.focusable||{}}isFocusable(to,ro,no,oo){return matchesSelector(to,FocusableSelector)&&(ro||to.tabIndex!==-1)?(no||this.isVisible(to))&&(oo||this.isAccessible(to)):!1}isVisible(to){if(!to.ownerDocument||to.nodeType!==Node.ELEMENT_NODE||to.offsetParent===null&&to.ownerDocument.body!==to)return!1;const ro=to.ownerDocument.defaultView;if(!ro)return!1;const no=to.ownerDocument.body.getBoundingClientRect();return!(no.width===0&&no.height===0||ro.getComputedStyle(to).visibility==="hidden")}isAccessible(to){var ro;for(let no=to;no;no=no.parentElement){const oo=getTabsterOnElement(this._tabster,no);if(this._isHidden(no)||!((ro=oo==null?void 0:oo.focusable)===null||ro===void 0?void 0:ro.ignoreAriaDisabled)&&this._isDisabled(no))return!1}return!0}_isDisabled(to){return to.hasAttribute("disabled")}_isHidden(to){var ro;const no=to.getAttribute("aria-hidden");return!!(no&&no.toLowerCase()==="true"&&!(!((ro=this._tabster.modalizer)===null||ro===void 0)&&ro.isAugmented(to)))}findFirst(to,ro){return this.findElement({...to},ro)}findLast(to,ro){return this.findElement({isBackward:!0,...to},ro)}findNext(to,ro){return this.findElement({...to},ro)}findPrev(to,ro){return this.findElement({...to,isBackward:!0},ro)}findDefault(to,ro){return this.findElement({...to,acceptCondition:no=>this.isFocusable(no,to.includeProgrammaticallyFocusable)&&!!this.getProps(no).isDefault},ro)||null}findAll(to){return this._findElements(!0,to)||[]}findElement(to,ro){const no=this._findElements(!1,to,ro);return no&&no[0]}_findElements(to,ro,no){var oo,io,so;const{container:ao,currentElement:lo=null,includeProgrammaticallyFocusable:uo,useActiveModalizer:co,ignoreAccessibility:fo,modalizerId:ho,isBackward:po,onElement:go}=ro;no||(no={});const vo=[];let{acceptCondition:bo}=ro;const xo=!!bo;if(!ao)return null;bo||(bo=To=>this.isFocusable(To,uo,!1,fo));const _o={container:ao,modalizerUserId:ho===void 0&&co?(oo=this._tabster.modalizer)===null||oo===void 0?void 0:oo.activeId:ho||((so=(io=RootAPI.getTabsterContext(this._tabster,ao))===null||io===void 0?void 0:io.modalizer)===null||so===void 0?void 0:so.userId),from:lo||ao,isBackward:po,acceptCondition:bo,hasCustomCondition:xo,includeProgrammaticallyFocusable:uo,ignoreAccessibility:fo,cachedGrouppers:{}},Eo=createElementTreeWalker(ao.ownerDocument,ao,To=>this._acceptElement(To,_o));if(!Eo)return null;const So=To=>{var wo,Co;const Oo=(wo=_o.foundElement)!==null&&wo!==void 0?wo:_o.foundBackward;return Oo&&vo.push(Oo),to?Oo&&(_o.found=!1,delete _o.foundElement,delete _o.foundBackward,delete _o.fromCtx,_o.from=Oo,go&&!go(Oo))?!1:!!(Oo||To):(Oo&&no&&(no.uncontrolled=(Co=RootAPI.getTabsterContext(this._tabster,Oo))===null||Co===void 0?void 0:Co.uncontrolled),!!(To&&!Oo))};if(lo||(no.outOfDOMOrder=!0),lo)Eo.currentNode=lo;else if(po){const To=getLastChild(ao);if(!To)return null;if(this._acceptElement(To,_o)===NodeFilter.FILTER_ACCEPT&&!So(!0))return _o.skippedFocusable&&(no.outOfDOMOrder=!0),vo;Eo.currentNode=To}do po?Eo.previousNode():Eo.nextNode();while(So());return _o.skippedFocusable&&(no.outOfDOMOrder=!0),vo.length?vo:null}_acceptElement(to,ro){var no,oo,io,so;if(ro.found)return NodeFilter.FILTER_ACCEPT;const ao=ro.foundBackward;if(ao&&(to===ao||!ao.contains(to)))return ro.found=!0,ro.foundElement=ao,NodeFilter.FILTER_ACCEPT;const lo=ro.container;if(to===lo)return NodeFilter.FILTER_SKIP;if(!lo.contains(to)||to.__tabsterDummyContainer||!((no=ro.rejectElementsFrom)===null||no===void 0)&&no.contains(to))return NodeFilter.FILTER_REJECT;const uo=ro.currentCtx=RootAPI.getTabsterContext(this._tabster,to);if(!uo)return NodeFilter.FILTER_SKIP;if(shouldIgnoreFocus(to))return this.isFocusable(to,void 0,!0,!0)&&(ro.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!ro.hasCustomCondition&&(to.tagName==="IFRAME"||to.tagName==="WEBVIEW"))return((oo=uo.modalizer)===null||oo===void 0?void 0:oo.userId)===((io=this._tabster.modalizer)===null||io===void 0?void 0:io.activeId)?(ro.found=!0,ro.rejectElementsFrom=ro.foundElement=to,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!ro.ignoreAccessibility&&!this.isAccessible(to))return this.isFocusable(to,!1,!0,!0)&&(ro.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let co,fo=ro.fromCtx;fo||(fo=ro.fromCtx=RootAPI.getTabsterContext(this._tabster,ro.from));const ho=fo==null?void 0:fo.mover;let po=uo.groupper,go=uo.mover;if(co=(so=this._tabster.modalizer)===null||so===void 0?void 0:so.acceptElement(to,ro),co!==void 0&&(ro.skippedFocusable=!0),co===void 0&&(po||go||ho)){const vo=po==null?void 0:po.getElement(),bo=ho==null?void 0:ho.getElement();let xo=go==null?void 0:go.getElement();xo&&(bo!=null&&bo.contains(xo))&&lo.contains(bo)&&(!vo||!go||bo.contains(vo))&&(go=ho,xo=bo),vo&&(vo===lo||!lo.contains(vo))&&(po=void 0),xo&&!lo.contains(xo)&&(go=void 0),po&&go&&(xo&&vo&&!vo.contains(xo)?go=void 0:po=void 0),po&&(co=po.acceptElement(to,ro)),go&&(co=go.acceptElement(to,ro))}return co===void 0&&(co=ro.acceptCondition(to)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,co===NodeFilter.FILTER_SKIP&&this.isFocusable(to,!1,!0,!0)&&(ro.skippedFocusable=!0)),co===NodeFilter.FILTER_ACCEPT&&!ro.found&&(ro.isBackward?(ro.foundBackward=to,co=NodeFilter.FILTER_SKIP):(ro.found=!0,ro.foundElement=to)),co}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */const Keys={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 getUncontrolledCompletelyContainer(eo,to){var ro;const no=eo.getParent;let oo=to;do{const io=(ro=getTabsterOnElement(eo,oo))===null||ro===void 0?void 0:ro.uncontrolled;if(io&&eo.uncontrolled.isUncontrolledCompletely(oo,!!io.completely))return oo;oo=no(oo)}while(oo)}class FocusedElementState extends Subscribable{constructor(to,ro){super(),this._init=()=>{const no=this._win(),oo=no.document;oo.addEventListener(KEYBORG_FOCUSIN,this._onFocusIn,!0),oo.addEventListener("focusout",this._onFocusOut,!0),no.addEventListener("keydown",this._onKeyDown,!0);const io=oo.activeElement;io&&io!==oo.body&&this._setFocusedElement(io),this.subscribe(this._onChanged)},this._onFocusIn=no=>{this._setFocusedElement(no.target,no.details.relatedTarget,no.details.isFocusedProgrammatically)},this._onFocusOut=no=>{this._setFocusedElement(void 0,no.relatedTarget)},this._validateFocusedElement=no=>{},this._onKeyDown=no=>{if(no.keyCode!==Keys.Tab||no.ctrlKey)return;const oo=this.getVal();if(!oo||!oo.ownerDocument||oo.contentEditable==="true")return;const io=this._tabster,so=io.controlTab,ao=RootAPI.getTabsterContext(io,oo);if(!ao||ao.ignoreKeydown(no))return;const lo=no.shiftKey,uo=FocusedElementState.findNextTabbable(io,ao,void 0,oo,void 0,lo,!0),co=ao.root.getElement();if(!co)return;const fo=uo==null?void 0:uo.element,ho=getUncontrolledCompletelyContainer(io,oo);if(fo){const po=uo.uncontrolled;if(ao.uncontrolled||po!=null&&po.contains(oo)){if(!uo.outOfDOMOrder&&po===ao.uncontrolled||ho&&!ho.contains(fo))return;DummyInputManager.addPhantomDummyWithTarget(io,oo,lo,fo);return}if(po||fo.tagName==="IFRAME"){triggerMoveFocusEvent({by:"root",owner:co,next:fo,relatedEvent:no})&&DummyInputManager.moveWithPhantomDummy(this._tabster,po??fo,!1,lo,no);return}(so||uo!=null&&uo.outOfDOMOrder)&&triggerMoveFocusEvent({by:"root",owner:co,next:fo,relatedEvent:no})&&(no.preventDefault(),no.stopImmediatePropagation(),nativeFocus(fo))}else!ho&&triggerMoveFocusEvent({by:"root",owner:co,next:null,relatedEvent:no})&&ao.root.moveOutWithDefaultAction(lo,no)},this._onChanged=(no,oo)=>{var io,so;if(no)triggerEvent(no,FocusInEventName,oo);else{const ao=(io=this._lastVal)===null||io===void 0?void 0:io.get();if(ao){const lo={...oo},uo=RootAPI.getTabsterContext(this._tabster,ao),co=(so=uo==null?void 0:uo.modalizer)===null||so===void 0?void 0:so.userId;co&&(lo.modalizerId=co),triggerEvent(ao,FocusOutEventName,lo)}}},this._tabster=to,this._win=ro,to.queueInit(this._init)}dispose(){super.dispose();const to=this._win();to.document.removeEventListener(KEYBORG_FOCUSIN,this._onFocusIn,!0),to.document.removeEventListener("focusout",this._onFocusOut,!0),to.removeEventListener("keydown",this._onKeyDown,!0),this.unsubscribe(this._onChanged),delete FocusedElementState._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(to,ro){var no,oo;let io=FocusedElementState._lastResetElement,so=io&&io.get();so&&ro.contains(so)&&delete FocusedElementState._lastResetElement,so=(oo=(no=to._nextVal)===null||no===void 0?void 0:no.element)===null||oo===void 0?void 0:oo.get(),so&&ro.contains(so)&&delete to._nextVal,io=to._lastVal,so=io&&io.get(),so&&ro.contains(so)&&delete to._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){var to;let ro=(to=this._lastVal)===null||to===void 0?void 0:to.get();return(!ro||ro&&!documentContains(ro.ownerDocument,ro))&&(this._lastVal=ro=void 0),ro}focus(to,ro,no){return this._tabster.focusable.isFocusable(to,ro,!1,no)?(to.focus(),!0):!1}focusDefault(to){const ro=this._tabster.focusable.findDefault({container:to});return ro?(this._tabster.focusedElement.focus(ro),!0):!1}getFirstOrLastTabbable(to,ro){var no;const{container:oo,ignoreAccessibility:io}=ro;let so;if(oo){const ao=RootAPI.getTabsterContext(this._tabster,oo);ao&&(so=(no=FocusedElementState.findNextTabbable(this._tabster,ao,oo,void 0,void 0,!to,io))===null||no===void 0?void 0:no.element)}return so&&!(oo!=null&&oo.contains(so))&&(so=void 0),so||void 0}_focusFirstOrLast(to,ro){const no=this.getFirstOrLastTabbable(to,ro);return no?(this.focus(no,!1,!0),!0):!1}focusFirst(to){return this._focusFirstOrLast(!0,to)}focusLast(to){return this._focusFirstOrLast(!1,to)}resetFocus(to){if(!this._tabster.focusable.isVisible(to))return!1;if(this._tabster.focusable.isFocusable(to,!0,!0,!0))this.focus(to);else{const ro=to.getAttribute("tabindex"),no=to.getAttribute("aria-hidden");to.tabIndex=-1,to.setAttribute("aria-hidden","true"),FocusedElementState._lastResetElement=new WeakHTMLElement(this._win,to),this.focus(to,!0,!0),this._setOrRemoveAttribute(to,"tabindex",ro),this._setOrRemoveAttribute(to,"aria-hidden",no)}return!0}_setOrRemoveAttribute(to,ro,no){no===null?to.removeAttribute(ro):to.setAttribute(ro,no)}_setFocusedElement(to,ro,no){var oo,io;if(this._tabster._noop)return;const so={relatedTarget:ro};if(to){const lo=(oo=FocusedElementState._lastResetElement)===null||oo===void 0?void 0:oo.get();if(FocusedElementState._lastResetElement=void 0,lo===to||shouldIgnoreFocus(to))return;so.isFocusedProgrammatically=no;const uo=RootAPI.getTabsterContext(this._tabster,to),co=(io=uo==null?void 0:uo.modalizer)===null||io===void 0?void 0:io.userId;co&&(so.modalizerId=co)}const ao=this._nextVal={element:to?new WeakHTMLElement(this._win,to):void 0,details:so};to&&to!==this._val&&this._validateFocusedElement(to),this._nextVal===ao&&this.setVal(to,so),this._nextVal=void 0}setVal(to,ro){super.setVal(to,ro),to&&(this._lastVal=new WeakHTMLElement(this._win,to))}static findNextTabbable(to,ro,no,oo,io,so,ao){const lo=no||ro.root.getElement();if(!lo)return null;let uo=null;const co=FocusedElementState._isTabbingTimer,fo=to.getWindow();co&&fo.clearTimeout(co),FocusedElementState.isTabbing=!0,FocusedElementState._isTabbingTimer=fo.setTimeout(()=>{delete FocusedElementState._isTabbingTimer,FocusedElementState.isTabbing=!1},0);const ho=ro.modalizer,po=ro.groupper,go=ro.mover,vo=bo=>{var xo;if(uo=bo.findNextTabbable(oo,io,so,ao),oo&&!(uo!=null&&uo.element)){const _o=bo!==ho&&((xo=bo.getElement())===null||xo===void 0?void 0:xo.parentElement);if(_o){const Eo=RootAPI.getTabsterContext(to,oo,{referenceElement:_o});if(Eo){const So=bo.getElement(),To=so?So:So&&getLastChild(So)||So;To&&(uo=FocusedElementState.findNextTabbable(to,Eo,no,To,_o,so,ao),uo&&(uo.outOfDOMOrder=!0))}}}};if(po&&go)vo(ro.groupperBeforeMover?po:go);else if(po)vo(po);else if(go)vo(go);else if(ho)vo(ho);else{const bo={container:lo,currentElement:oo,referenceElement:io,ignoreAccessibility:ao,useActiveModalizer:!0},xo={};uo={element:to.focusable[so?"findPrev":"findNext"](bo,xo),outOfDOMOrder:xo.outOfDOMOrder,uncontrolled:xo.uncontrolled}}return uo}}FocusedElementState.isTabbing=!1;/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class GroupperDummyManager extends DummyInputManager{constructor(to,ro,no,oo){super(no,to,DummyInputManagerPriorities.Groupper,oo,!0),this._setHandlers((io,so,ao)=>{var lo,uo;const co=to.get(),fo=io.input;if(co&&fo){const ho=RootAPI.getTabsterContext(no,fo);if(ho){let po;po=(lo=ro.findNextTabbable(ao||void 0,void 0,so,!0))===null||lo===void 0?void 0:lo.element,po||(po=(uo=FocusedElementState.findNextTabbable(no,ho,void 0,io.isOutside?fo:getAdjacentElement(co,!so),void 0,so,!0))===null||uo===void 0?void 0:uo.element),po&&nativeFocus(po)}}})}}class Groupper extends TabsterPart{constructor(to,ro,no,oo,io){super(to,ro,oo),this._shouldTabInside=!1,this.makeTabbable(!1),this._onDispose=no,to.controlTab||(this.dummyManager=new GroupperDummyManager(this._element,this,to,io))}dispose(){var to;this._onDispose(this),this._element.get(),(to=this.dummyManager)===null||to===void 0||to.dispose(),delete this.dummyManager,delete this._first}findNextTabbable(to,ro,no,oo){var io;const so=this.getElement();if(!so)return null;const ao=((io=to==null?void 0:to.__tabsterDummyContainer)===null||io===void 0?void 0:io.get())===so;if(!this._shouldTabInside&&to&&so.contains(to)&&!ao)return{element:void 0,outOfDOMOrder:!0};const lo=this.getFirst(!0);if(!to||!so.contains(to)||ao)return{element:lo,outOfDOMOrder:!0};const uo=this._tabster;let co=null,fo=!1,ho;if(this._shouldTabInside&&lo){const po={container:so,currentElement:to,referenceElement:ro,ignoreAccessibility:oo,useActiveModalizer:!0},go={};co=uo.focusable[no?"findPrev":"findNext"](po,go),fo=!!go.outOfDOMOrder,!co&&this._props.tabbability===GroupperTabbabilities.LimitedTrapFocus&&(co=uo.focusable[no?"findLast":"findFirst"]({container:so,ignoreAccessibility:oo,useActiveModalizer:!0},go),fo=!0),ho=go.uncontrolled}return{element:co,uncontrolled:ho,outOfDOMOrder:fo}}makeTabbable(to){this._shouldTabInside=to||!this._props.tabbability}isActive(to){var ro;const no=this.getElement()||null;let oo=!0;for(let so=no==null?void 0:no.parentElement;so;so=so.parentElement){const ao=(ro=getTabsterOnElement(this._tabster,so))===null||ro===void 0?void 0:ro.groupper;ao&&(ao._shouldTabInside||(oo=!1))}let io=oo?this._props.tabbability?this._shouldTabInside:!1:void 0;if(io&&to){const so=this._tabster.focusedElement.getFocusedElement();so&&(io=so!==this.getFirst(!0))}return io}getFirst(to){var ro;const no=this.getElement();let oo;if(no){if(to&&this._tabster.focusable.isFocusable(no))return no;oo=(ro=this._first)===null||ro===void 0?void 0:ro.get(),oo||(oo=this._tabster.focusable.findFirst({container:no,useActiveModalizer:!0})||void 0,oo&&this.setFirst(oo))}return oo}setFirst(to){to?this._first=new WeakHTMLElement(this._tabster.getWindow,to):delete this._first}acceptElement(to,ro){var no;const oo=ro.cachedGrouppers,io=(no=this.getElement())===null||no===void 0?void 0:no.parentElement,so=io&&RootAPI.getTabsterContext(this._tabster,io),ao=so==null?void 0:so.groupper,lo=so!=null&&so.groupperBeforeMover?ao:void 0;let uo;const co=po=>{let go=oo[po.id],vo;return go?vo=go.isActive:(vo=this.isActive(!0),go=oo[po.id]={isActive:vo}),vo};if(lo&&(uo=lo.getElement(),!co(lo)&&uo&&ro.container!==uo&&ro.container.contains(uo)))return ro.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const fo=co(this),ho=this.getElement();if(ho&&fo!==!0){if(ho===to&&ao&&(uo||(uo=ao.getElement()),uo&&!co(ao)&&ro.container.contains(uo)&&uo!==ro.container)||ho!==to&&ho.contains(to))return ro.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const po=oo[this.id];let go;if("first"in po?go=po.first:go=po.first=this.getFirst(!0),go&&ro.acceptCondition(go))return ro.rejectElementsFrom=ho,ro.skippedFocusable=!0,go!==ro.from?(ro.found=!0,ro.foundElement=go,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT}}}class GroupperAPI{constructor(to,ro){this._current={},this._grouppers={},this._init=()=>{const no=this._win();this._tabster.focusedElement.subscribeFirst(this._onFocus),no.document.addEventListener("mousedown",this._onMouseDown,!0),no.addEventListener("keydown",this._onKeyDown,!0)},this._onGroupperDispose=no=>{delete this._grouppers[no.id]},this._onFocus=no=>{no&&this._updateCurrent(no,!0,!0)},this._onMouseDown=no=>{no.target&&this._updateCurrent(no.target,!0)},this._onKeyDown=no=>{if(no.keyCode!==Keys.Enter&&no.keyCode!==Keys.Esc||no.ctrlKey||no.altKey||no.shiftKey||no.metaKey)return;const oo=this._tabster.focusedElement.getFocusedElement();oo&&this.handleKeyPress(oo,no)},this._tabster=to,this._win=ro,to.queueInit(this._init)}dispose(){const to=this._win();this._handleKeyPressTimer&&(to.clearTimeout(this._handleKeyPressTimer),delete this._handleKeyPressTimer),this._current={},this._updateTimer&&(to.clearTimeout(this._updateTimer),delete this._updateTimer),this._tabster.focusedElement.unsubscribe(this._onFocus),to.document.removeEventListener("mousedown",this._onMouseDown,!0),to.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._grouppers).forEach(ro=>{this._grouppers[ro]&&(this._grouppers[ro].dispose(),delete this._grouppers[ro])})}createGroupper(to,ro,no){const oo=new Groupper(this._tabster,to,this._onGroupperDispose,ro,no);this._grouppers[oo.id]=oo;const io=this._tabster.focusedElement.getFocusedElement();return io&&to.contains(io)&&!this._updateTimer&&(this._updateTimer=this._win().setTimeout(()=>{delete this._updateTimer,io===this._tabster.focusedElement.getFocusedElement()&&this._updateCurrent(io,!0,!0)},0)),oo}forgetCurrentGrouppers(){this._current={}}_updateCurrent(to,ro,no){var oo;this._updateTimer&&(this._win().clearTimeout(this._updateTimer),delete this._updateTimer);const io={};let so=!0;for(let ao=to;ao;ao=ao.parentElement){const lo=(oo=getTabsterOnElement(this._tabster,ao))===null||oo===void 0?void 0:oo.groupper;if(lo){if(io[lo.id]=!0,so&&no&&ao!==to&&(so=!1),ro||!so){this._current[lo.id]=lo;const uo=lo.isActive()||to!==ao&&(!lo.getProps().delegated||lo.getFirst(!1)!==to);lo.makeTabbable(uo)}so=!1}}for(const ao of Object.keys(this._current)){const lo=this._current[ao];lo.id in io||(lo.makeTabbable(!1),lo.setFirst(void 0),delete this._current[ao])}}handleKeyPress(to,ro,no){const oo=this._tabster,io=RootAPI.getTabsterContext(oo,to),so=io==null?void 0:io.modalizerInGroupper;let ao=(io==null?void 0:io.groupper)||so;if(io&&ao){const lo=this._win();if(this._handleKeyPressTimer&&(lo.clearTimeout(this._handleKeyPressTimer),delete this._handleKeyPressTimer),io.ignoreKeydown(ro))return;let uo;const co=ao.getElement();if(ro.keyCode===Keys.Enter)co&&(to===co||ao.getProps().delegated&&to===ao.getFirst(!1))&&(uo=oo.focusable.findNext({container:co,currentElement:to,useActiveModalizer:!0})),uo&&co&&triggerMoveFocusEvent({by:"groupper",owner:co,next:uo,relatedEvent:ro})&&(ro.preventDefault(),ro.stopImmediatePropagation(),uo.focus());else if(ro.keyCode===Keys.Esc){const fo=oo.focusedElement.getFocusedElement();this._handleKeyPressTimer=lo.setTimeout(()=>{var ho;if(delete this._handleKeyPressTimer,fo===oo.focusedElement.getFocusedElement()&&ao&&co&&co.contains(to)){if(to!==co||no)uo=ao.getFirst(!0);else{const po=co.parentElement,go=po?RootAPI.getTabsterContext(oo,po):void 0;ao=go==null?void 0:go.groupper,uo=ao==null?void 0:ao.getFirst(!0)}uo&&triggerMoveFocusEvent({by:"groupper",owner:co,next:uo,relatedEvent:ro})&&(ao&&(ao.makeTabbable(!1),so&&((ho=oo.modalizer)===null||ho===void 0||ho.setActive(void 0))),uo.focus())}},0)}}}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class KeyboardNavigationState extends Subscribable{constructor(to){super(),this._onChange=ro=>{this.setVal(ro,void 0)},this._keyborg=createKeyborg(to()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),disposeKeyborg(this._keyborg),delete this._keyborg)}setNavigatingWithKeyboard(to){var ro;(ro=this._keyborg)===null||ro===void 0||ro.setVal(to)}isNavigatingWithKeyboard(){var to;return!!(!((to=this._keyborg)===null||to===void 0)&&to.isNavigatingWithKeyboard())}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */let _wasFocusedCounter=0;const _ariaHidden="aria-hidden";class ModalizerDummyManager extends DummyInputManager{constructor(to,ro,no){super(ro,to,DummyInputManagerPriorities.Modalizer,no),this._setHandlers((oo,io)=>{var so,ao,lo;const uo=to.get(),co=uo&&((so=RootAPI.getRoot(ro,uo))===null||so===void 0?void 0:so.getElement()),fo=oo.input;let ho;if(co&&fo){const po=(ao=fo.__tabsterDummyContainer)===null||ao===void 0?void 0:ao.get(),go=RootAPI.getTabsterContext(ro,po||fo);go&&(ho=(lo=FocusedElementState.findNextTabbable(ro,go,co,fo,void 0,io,!0))===null||lo===void 0?void 0:lo.element),ho&&nativeFocus(ho)}})}}class Modalizer extends TabsterPart{constructor(to,ro,no,oo,io,so){super(to,ro,oo),this._wasFocused=0,this.userId=oo.id,this._onDispose=no,this._activeElements=so,to.controlTab||(this.dummyManager=new ModalizerDummyManager(this._element,to,io))}makeActive(to){if(this._isActive!==to){this._isActive=to;const ro=this.getElement();if(ro){const no=this._activeElements,oo=no.map(io=>io.get()).indexOf(ro);to?oo<0&&no.push(new WeakHTMLElement(this._tabster.getWindow,ro)):oo>=0&&no.splice(oo,1)}this.triggerFocusEvent(to?ModalizerActiveEventName:ModalizerInactiveEventName)}}focused(to){return to||(this._wasFocused=++_wasFocusedCounter),this._wasFocused}setProps(to){to.id&&(this.userId=to.id),this._props={...to}}dispose(){var to;this.makeActive(!1),this._onDispose(this),(to=this.dummyManager)===null||to===void 0||to.dispose(),delete this.dummyManager,this._activeElements=[],this._remove()}isActive(){return!!this._isActive}contains(to){var ro;return!!(!((ro=this.getElement())===null||ro===void 0)&&ro.contains(to))}findNextTabbable(to,ro,no,oo){var io,so;if(!this.getElement())return null;const lo=this._tabster;let uo=null,co=!1,fo;const ho=to&&((io=RootAPI.getRoot(lo,to))===null||io===void 0?void 0:io.getElement());if(ho){const po={container:ho,currentElement:to,referenceElement:ro,ignoreAccessibility:oo,useActiveModalizer:!0},go={};uo=lo.focusable[no?"findPrev":"findNext"](po,go),!uo&&this._props.isTrapped&&(!((so=lo.modalizer)===null||so===void 0)&&so.activeId)?(uo=lo.focusable[no?"findLast":"findFirst"]({container:ho,ignoreAccessibility:oo,useActiveModalizer:!0},go),co=!0):co=!!go.outOfDOMOrder,fo=go.uncontrolled}return{element:uo,uncontrolled:fo,outOfDOMOrder:co}}triggerFocusEvent(to,ro){const no=this.getElement();let oo=!1;if(no){const io=ro?this._activeElements.map(so=>so.get()):[no];for(const so of io)so&&!triggerEvent(so,to,{id:this.userId,element:no,eventName:to})&&(oo=!0)}return oo}_remove(){}}class ModalizerAPI{constructor(to,ro,no){this._onModalizerDispose=io=>{const so=io.id,ao=io.userId,lo=this._parts[ao];delete this._modalizers[so],lo&&(delete lo[so],Object.keys(lo).length===0&&(delete this._parts[ao],this.activeId===ao&&this.setActive(void 0)))},this._onKeyDown=io=>{var so;if(io.keyCode!==Keys.Esc)return;const ao=this._tabster,lo=ao.focusedElement.getFocusedElement();if(lo){const uo=RootAPI.getTabsterContext(ao,lo),co=uo==null?void 0:uo.modalizer;if(uo&&!uo.groupper&&(co!=null&&co.isActive())&&!uo.ignoreKeydown(io)){const fo=co.userId;if(fo){const ho=this._parts[fo];if(ho){const po=Object.keys(ho).map(go=>{var vo;const bo=ho[go],xo=bo.getElement();let _o;return xo&&(_o=(vo=getTabsterOnElement(this._tabster,xo))===null||vo===void 0?void 0:vo.groupper),bo&&xo&&_o?{el:xo,focusedSince:bo.focused(!0)}:{focusedSince:0}}).filter(go=>go.focusedSince>0).sort((go,vo)=>go.focusedSince>vo.focusedSince?-1:go.focusedSince{var ao,lo;const uo=io&&RootAPI.getTabsterContext(this._tabster,io);if(!uo||!io)return;const co=this._augMap;for(let ho=io;ho;ho=ho.parentElement)co.has(ho)&&(co.delete(ho),augmentAttribute(this._tabster,ho,_ariaHidden));const fo=uo.modalizer;if((lo=fo||((ao=getTabsterOnElement(this._tabster,io))===null||ao===void 0?void 0:ao.modalizer))===null||lo===void 0||lo.focused(),(fo==null?void 0:fo.userId)===this.activeId){this.currentIsOthersAccessible=fo==null?void 0:fo.getProps().isOthersAccessible;return}if(so.isFocusedProgrammatically||this.currentIsOthersAccessible||fo!=null&&fo.getProps().isAlwaysAccessible)this.setActive(fo);else{const ho=this._win();ho.clearTimeout(this._restoreModalizerFocusTimer),this._restoreModalizerFocusTimer=ho.setTimeout(()=>this._restoreModalizerFocus(io),100)}},this._tabster=to,this._win=to.getWindow,this._modalizers={},this._parts={},this._augMap=new WeakMap,this._aug=[],this._alwaysAccessibleSelector=ro,this._accessibleCheck=no,this.activeElements=[],to.controlTab||to.root.addDummyInputs(),this._win().addEventListener("keydown",this._onKeyDown,!0),to.queueInit(()=>{this._tabster.focusedElement.subscribe(this._onFocus)})}dispose(){const to=this._win();to.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._modalizers).forEach(ro=>{this._modalizers[ro]&&(this._modalizers[ro].dispose(),delete this._modalizers[ro])}),to.clearTimeout(this._restoreModalizerFocusTimer),to.clearTimeout(this._hiddenUpdateTimer),this._parts={},delete this.activeId,this.activeElements=[],this._augMap=new WeakMap,this._aug=[],this._tabster.focusedElement.unsubscribe(this._onFocus)}createModalizer(to,ro,no){var oo;const io=new Modalizer(this._tabster,to,this._onModalizerDispose,ro,no,this.activeElements),so=io.id,ao=ro.id;this._modalizers[so]=io;let lo=this._parts[ao];return lo||(lo=this._parts[ao]={}),lo[so]=io,to.contains((oo=this._tabster.focusedElement.getFocusedElement())!==null&&oo!==void 0?oo:null)&&(ao!==this.activeId?this.setActive(io):io.makeActive(!0)),io}isAugmented(to){return this._augMap.has(to)}hiddenUpdate(){this._hiddenUpdateTimer||(this._hiddenUpdateTimer=this._win().setTimeout(()=>{delete this._hiddenUpdateTimer,this._hiddenUpdate()},250))}setActive(to){const ro=to==null?void 0:to.userId,no=this.activeId;if(no!==ro){if(this.activeId=ro,no){const oo=this._parts[no];if(oo)for(const io of Object.keys(oo))oo[io].makeActive(!1)}if(ro){const oo=this._parts[ro];if(oo)for(const io of Object.keys(oo))oo[io].makeActive(!0)}this.currentIsOthersAccessible=to==null?void 0:to.getProps().isOthersAccessible,this.hiddenUpdate()}}focus(to,ro,no){const oo=RootAPI.getTabsterContext(this._tabster,to),io=oo==null?void 0:oo.modalizer;if(io){this.setActive(io);const so=io.getProps(),ao=io.getElement();if(ao){if(ro===void 0&&(ro=so.isNoFocusFirst),!ro&&this._tabster.keyboardNavigation.isNavigatingWithKeyboard()&&this._tabster.focusedElement.focusFirst({container:ao})||(no===void 0&&(no=so.isNoFocusDefault),!no&&this._tabster.focusedElement.focusDefault(ao)))return!0;this._tabster.focusedElement.resetFocus(ao)}}return!1}acceptElement(to,ro){var no;const oo=ro.modalizerUserId,io=(no=ro.currentCtx)===null||no===void 0?void 0:no.modalizer;if(oo)for(const ao of this.activeElements){const lo=ao.get();if(lo&&(to.contains(lo)||lo===to))return NodeFilter.FILTER_SKIP}const so=oo===(io==null?void 0:io.userId)||!oo&&(io!=null&&io.getProps().isAlwaysAccessible)?void 0:NodeFilter.FILTER_SKIP;return so!==void 0&&(ro.skippedFocusable=!0),so}_hiddenUpdate(){var to;const ro=this._tabster,no=ro.getWindow().document.body,oo=this.activeId,io=this._parts,so=[],ao=[],lo=this._alwaysAccessibleSelector,uo=lo?Array.from(no.querySelectorAll(lo)):[],co=[];for(const xo of Object.keys(io)){const _o=io[xo];for(const Eo of Object.keys(_o)){const So=_o[Eo],To=So.getElement(),Co=So.getProps().isAlwaysAccessible;To&&(xo===oo?(co.push(To),this.currentIsOthersAccessible||so.push(To)):Co?uo.push(To):ao.push(To))}}const fo=this._augMap,ho=so.length>0?[...so,...uo]:void 0,po=[],go=new WeakMap,vo=(xo,_o)=>{var Eo;const So=xo.tagName;if(So==="SCRIPT"||So==="STYLE")return;let To=!1;fo.has(xo)?_o?To=!0:(fo.delete(xo),augmentAttribute(ro,xo,_ariaHidden)):_o&&!(!((Eo=this._accessibleCheck)===null||Eo===void 0)&&Eo.call(this,xo,co))&&augmentAttribute(ro,xo,_ariaHidden,"true")&&(fo.set(xo,!0),To=!0),To&&(po.push(new WeakHTMLElement(ro.getWindow,xo)),go.set(xo,!0))},bo=xo=>{for(let _o=xo.firstElementChild;_o;_o=_o.nextElementSibling){let Eo=!1,So=!1;if(ho){for(const To of ho){if(_o===To){Eo=!0;break}if(_o.contains(To)){So=!0;break}}So?bo(_o):Eo||vo(_o,!0)}else vo(_o,!1)}};ho||uo.forEach(xo=>vo(xo,!1)),ao.forEach(xo=>vo(xo,!0)),no&&bo(no),(to=this._aug)===null||to===void 0||to.map(xo=>xo.get()).forEach(xo=>{xo&&!go.get(xo)&&vo(xo,!1)}),this._aug=po,this._augMap=go}_restoreModalizerFocus(to){const ro=to==null?void 0:to.ownerDocument;if(!to||!ro)return;const no=RootAPI.getTabsterContext(this._tabster,to),oo=no==null?void 0:no.modalizer,io=this.activeId;if(!oo&&!io||oo&&io===oo.userId)return;const so=no==null?void 0:no.root.getElement();if(so){let ao=this._tabster.focusable.findFirst({container:so,useActiveModalizer:!0});if(ao){if(to.compareDocumentPosition(ao)&document.DOCUMENT_POSITION_PRECEDING&&(ao=this._tabster.focusable.findLast({container:so,useActiveModalizer:!0}),!ao))throw new Error("Something went wrong.");this._tabster.focusedElement.focus(ao);return}}to.blur()}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */const _inputSelector=["input","textarea","*[contenteditable]"].join(", ");class MoverDummyManager extends DummyInputManager{constructor(to,ro,no,oo){super(ro,to,DummyInputManagerPriorities.Mover,oo),this._onFocusDummyInput=io=>{var so,ao;const lo=this._element.get(),uo=io.input;if(lo&&uo){const co=RootAPI.getTabsterContext(this._tabster,lo);let fo;co&&(fo=(so=FocusedElementState.findNextTabbable(this._tabster,co,void 0,uo,void 0,!io.isFirst,!0))===null||so===void 0?void 0:so.element);const ho=(ao=this._getMemorized())===null||ao===void 0?void 0:ao.get();ho&&(fo=ho),fo&&nativeFocus(fo)}},this._tabster=ro,this._getMemorized=no,this._setHandlers(this._onFocusDummyInput)}}const _moverUpdateAdd=1,_moverUpdateAttr=2,_moverUpdateRemove=3;class Mover extends TabsterPart{constructor(to,ro,no,oo,io){var so;super(to,ro,oo),this._visible={},this._onIntersection=lo=>{for(const uo of lo){const co=uo.target,fo=getElementUId(this._win,co);let ho,po=this._fullyVisible;if(uo.intersectionRatio>=.25?(ho=uo.intersectionRatio>=.75?Visibilities.Visible:Visibilities.PartiallyVisible,ho===Visibilities.Visible&&(po=fo)):ho=Visibilities.Invisible,this._visible[fo]!==ho){ho===void 0?(delete this._visible[fo],po===fo&&delete this._fullyVisible):(this._visible[fo]=ho,this._fullyVisible=po);const go=this.getState(co);go&&triggerEvent(co,MoverEventName,go)}}},this._win=to.getWindow,this.visibilityTolerance=(so=oo.visibilityTolerance)!==null&&so!==void 0?so:.8,(this._props.trackState||this._props.visibilityAware)&&(this._intersectionObserver=new IntersectionObserver(this._onIntersection,{threshold:[0,.25,.5,.75,1]}),this._observeState()),this._onDispose=no;const ao=()=>oo.memorizeCurrent?this._current:void 0;to.controlTab||(this.dummyManager=new MoverDummyManager(this._element,to,ao,io))}dispose(){var to;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 ro=this._win();this._setCurrentTimer&&(ro.clearTimeout(this._setCurrentTimer),delete this._setCurrentTimer),this._updateTimer&&(ro.clearTimeout(this._updateTimer),delete this._updateTimer),(to=this.dummyManager)===null||to===void 0||to.dispose(),delete this.dummyManager}setCurrent(to){to?this._current=new WeakHTMLElement(this._win,to):this._current=void 0,(this._props.trackState||this._props.visibilityAware)&&!this._setCurrentTimer&&(this._setCurrentTimer=this._win().setTimeout(()=>{var ro;delete this._setCurrentTimer;const no=[];this._current!==this._prevCurrent&&(no.push(this._current),no.push(this._prevCurrent),this._prevCurrent=this._current);for(const oo of no){const io=oo==null?void 0:oo.get();if(io&&((ro=this._allElements)===null||ro===void 0?void 0:ro.get(io))===this){const so=this._props;if(io&&(so.visibilityAware!==void 0||so.trackState)){const ao=this.getState(io);ao&&triggerEvent(io,MoverEventName,ao)}}}}))}getCurrent(){var to;return((to=this._current)===null||to===void 0?void 0:to.get())||null}findNextTabbable(to,ro,no,oo){var io;const so=this.getElement(),ao=so&&((io=to==null?void 0:to.__tabsterDummyContainer)===null||io===void 0?void 0:io.get())===so;if(!so)return null;let lo=null,uo=!1,co;if(this._props.tabbable||ao||to&&!so.contains(to)){const fo={currentElement:to,referenceElement:ro,container:so,ignoreAccessibility:oo,useActiveModalizer:!0},ho={};lo=this._tabster.focusable[no?"findPrev":"findNext"](fo,ho),uo=!!ho.outOfDOMOrder,co=ho.uncontrolled}return{element:lo,uncontrolled:co,outOfDOMOrder:uo}}acceptElement(to,ro){var no,oo,io;if(!FocusedElementState.isTabbing)return!((no=ro.currentCtx)===null||no===void 0)&&no.excludedFromMover?NodeFilter.FILTER_REJECT:void 0;const{memorizeCurrent:so,visibilityAware:ao,hasDefault:lo=!0}=this._props,uo=this.getElement();if(uo&&(so||ao||lo)&&(!uo.contains(ro.from)||((oo=ro.from.__tabsterDummyContainer)===null||oo===void 0?void 0:oo.get())===uo)){let co;if(so){const fo=(io=this._current)===null||io===void 0?void 0:io.get();fo&&ro.acceptCondition(fo)&&(co=fo)}if(!co&&lo&&(co=this._tabster.focusable.findDefault({container:uo,useActiveModalizer:!0})),!co&&ao&&(co=this._tabster.focusable.findElement({container:uo,useActiveModalizer:!0,isBackward:ro.isBackward,acceptCondition:fo=>{var ho;const po=getElementUId(this._win,fo),go=this._visible[po];return uo!==fo&&!!(!((ho=this._allElements)===null||ho===void 0)&&ho.get(fo))&&ro.acceptCondition(fo)&&(go===Visibilities.Visible||go===Visibilities.PartiallyVisible&&(ao===Visibilities.PartiallyVisible||!this._fullyVisible))}})),co)return ro.found=!0,ro.foundElement=co,ro.rejectElementsFrom=uo,ro.skippedFocusable=!0,NodeFilter.FILTER_ACCEPT}}_observeState(){const to=this.getElement();if(this._unobserve||!to||typeof MutationObserver>"u")return;const ro=this._win(),no=this._allElements=new WeakMap,oo=this._tabster.focusable;let io=this._updateQueue=[];const so=new MutationObserver(po=>{for(const go of po){const vo=go.target,bo=go.removedNodes,xo=go.addedNodes;if(go.type==="attributes")go.attributeName==="tabindex"&&io.push({element:vo,type:_moverUpdateAttr});else{for(let _o=0;_o{var vo,bo;const xo=no.get(po);xo&&go&&((vo=this._intersectionObserver)===null||vo===void 0||vo.unobserve(po),no.delete(po)),!xo&&!go&&(no.set(po,this),(bo=this._intersectionObserver)===null||bo===void 0||bo.observe(po))},lo=po=>{const go=oo.isFocusable(po);no.get(po)?go||ao(po,!0):go&&ao(po)},uo=po=>{const{mover:go}=ho(po);if(go&&go!==this)if(go.getElement()===po&&oo.isFocusable(po))ao(po);else return;const vo=createElementTreeWalker(ro.document,po,bo=>{const{mover:xo,groupper:_o}=ho(bo);if(xo&&xo!==this)return NodeFilter.FILTER_REJECT;const Eo=_o==null?void 0:_o.getFirst(!0);return _o&&_o.getElement()!==bo&&Eo&&Eo!==bo?NodeFilter.FILTER_REJECT:(oo.isFocusable(bo)&&ao(bo),NodeFilter.FILTER_SKIP)});if(vo)for(vo.currentNode=po;vo.nextNode(););},co=po=>{no.get(po)&&ao(po,!0);for(let vo=po.firstElementChild;vo;vo=vo.nextElementSibling)co(vo)},fo=()=>{!this._updateTimer&&io.length&&(this._updateTimer=ro.setTimeout(()=>{delete this._updateTimer;for(const{element:po,type:go}of io)switch(go){case _moverUpdateAttr:lo(po);break;case _moverUpdateAdd:uo(po);break;case _moverUpdateRemove:co(po);break}io=this._updateQueue=[]},0))},ho=po=>{const go={};for(let vo=po;vo;vo=vo.parentElement){const bo=getTabsterOnElement(this._tabster,vo);if(bo&&(bo.groupper&&!go.groupper&&(go.groupper=bo.groupper),bo.mover)){go.mover=bo.mover;break}}return go};io.push({element:to,type:_moverUpdateAdd}),fo(),so.observe(to,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),this._unobserve=()=>{so.disconnect()}}getState(to){const ro=getElementUId(this._win,to);if(ro in this._visible){const no=this._visible[ro]||Visibilities.Invisible;return{isCurrent:this._current?this._current.get()===to:void 0,visibility:no}}}}function getDistance(eo,to,ro,no,oo,io,so,ao){const lo=ro{this._win().addEventListener("keydown",this._onKeyDown,!0),this._tabster.focusedElement.subscribe(this._onFocus)},this._onMoverDispose=no=>{delete this._movers[no.id]},this._onFocus=no=>{var oo;let io=no,so=no;for(let ao=no==null?void 0:no.parentElement;ao;ao=ao.parentElement){const lo=(oo=getTabsterOnElement(this._tabster,ao))===null||oo===void 0?void 0:oo.mover;lo&&(lo.setCurrent(so),io=void 0),!io&&this._tabster.focusable.isFocusable(ao)&&(io=so=ao)}},this._onKeyDown=async no=>{var oo,io,so,ao;this._ignoredInputTimer&&(this._win().clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),(oo=this._ignoredInputResolve)===null||oo===void 0||oo.call(this,!1);let lo=no.keyCode;if(no.ctrlKey||no.altKey||no.shiftKey||no.metaKey)return;switch(lo){case Keys.Down:case Keys.Right:case Keys.Up:case Keys.Left:case Keys.PageDown:case Keys.PageUp:case Keys.Home:case Keys.End:break;default:return}const uo=this._tabster,co=uo.focusedElement.getFocusedElement();if(!co||await this._isIgnoredInput(co,lo))return;const fo=RootAPI.getTabsterContext(uo,co,{checkRtl:!0});if(!fo||!fo.mover||fo.excludedFromMover||fo.ignoreKeydown(no))return;const ho=fo.mover,po=ho.getElement();if(fo.groupperBeforeMover){const Mo=fo.groupper;if(Mo&&!Mo.isActive(!0)){for(let Do=(io=Mo.getElement())===null||io===void 0?void 0:io.parentElement;Do&&Do!==po;Do=Do.parentElement)if(!((ao=(so=getTabsterOnElement(uo,Do))===null||so===void 0?void 0:so.groupper)===null||ao===void 0)&&ao.isActive(!0))return}else return}if(!po)return;const go=uo.focusable,vo=ho.getProps(),bo=vo.direction||MoverDirections.Both,xo=bo===MoverDirections.Both,_o=xo||bo===MoverDirections.Vertical,Eo=xo||bo===MoverDirections.Horizontal,So=bo===MoverDirections.GridLinear,To=So||bo===MoverDirections.Grid,wo=vo.cyclic;let Co,Oo,Ao,Ro=0,No=0;if(To&&(Ao=co.getBoundingClientRect(),Ro=Math.ceil(Ao.left),No=Math.floor(Ao.right)),fo.rtl&&(lo===Keys.Right?lo=Keys.Left:lo===Keys.Left&&(lo=Keys.Right)),lo===Keys.Down&&_o||lo===Keys.Right&&(Eo||To))if(Co=go.findNext({currentElement:co,container:po,useActiveModalizer:!0}),Co&&To){const Mo=Math.ceil(Co.getBoundingClientRect().left);!So&&No>Mo&&(Co=void 0)}else!Co&&wo&&(Co=go.findFirst({container:po,useActiveModalizer:!0}));else if(lo===Keys.Up&&_o||lo===Keys.Left&&(Eo||To))if(Co=go.findPrev({currentElement:co,container:po,useActiveModalizer:!0}),Co&&To){const Mo=Math.floor(Co.getBoundingClientRect().right);!So&&Mo>Ro&&(Co=void 0)}else!Co&&wo&&(Co=go.findLast({container:po,useActiveModalizer:!0}));else if(lo===Keys.Home)To?go.findElement({container:po,currentElement:co,useActiveModalizer:!0,isBackward:!0,acceptCondition:Mo=>{var Do;if(!go.isFocusable(Mo))return!1;const jo=Math.ceil((Do=Mo.getBoundingClientRect().left)!==null&&Do!==void 0?Do:0);return Mo!==co&&Ro<=jo?!0:(Co=Mo,!1)}}):Co=go.findFirst({container:po,useActiveModalizer:!0});else if(lo===Keys.End)To?go.findElement({container:po,currentElement:co,useActiveModalizer:!0,acceptCondition:Mo=>{var Do;if(!go.isFocusable(Mo))return!1;const jo=Math.ceil((Do=Mo.getBoundingClientRect().left)!==null&&Do!==void 0?Do:0);return Mo!==co&&Ro>=jo?!0:(Co=Mo,!1)}}):Co=go.findLast({container:po,useActiveModalizer:!0});else if(lo===Keys.PageUp){if(go.findElement({currentElement:co,container:po,useActiveModalizer:!0,isBackward:!0,acceptCondition:Mo=>go.isFocusable(Mo)?isElementVerticallyVisibleInContainer(this._win,Mo,ho.visibilityTolerance)?(Co=Mo,!1):!0:!1}),To&&Co){const Mo=Math.ceil(Co.getBoundingClientRect().left);go.findElement({currentElement:Co,container:po,useActiveModalizer:!0,acceptCondition:Do=>{if(!go.isFocusable(Do))return!1;const jo=Math.ceil(Do.getBoundingClientRect().left);return Ro=jo?!0:(Co=Do,!1)}})}Oo=!1}else if(lo===Keys.PageDown){if(go.findElement({currentElement:co,container:po,useActiveModalizer:!0,acceptCondition:Mo=>go.isFocusable(Mo)?isElementVerticallyVisibleInContainer(this._win,Mo,ho.visibilityTolerance)?(Co=Mo,!1):!0:!1}),To&&Co){const Mo=Math.ceil(Co.getBoundingClientRect().left);go.findElement({currentElement:Co,container:po,useActiveModalizer:!0,isBackward:!0,acceptCondition:Do=>{if(!go.isFocusable(Do))return!1;const jo=Math.ceil(Do.getBoundingClientRect().left);return Ro>jo||Mo<=jo?!0:(Co=Do,!1)}})}Oo=!0}else if(To){const Mo=lo===Keys.Up,Do=Ro,jo=Math.ceil(Ao.top),Fo=No,$o=Math.floor(Ao.bottom);let Lo,Ho,qo=0;go.findAll({container:po,currentElement:co,isBackward:Mo,onElement:Uo=>{const Yo=Uo.getBoundingClientRect(),Zo=Math.ceil(Yo.left),_s=Math.ceil(Yo.top),Ss=Math.floor(Yo.right),As=Math.floor(Yo.bottom);if(Mo&&jo_s)return!0;const Ns=Math.ceil(Math.min(Fo,Ss))-Math.floor(Math.max(Do,Zo)),ws=Math.ceil(Math.min(Fo-Do,Ss-Zo));if(Ns>0&&ws>=Ns){const Ds=Ns/ws;Ds>qo&&(Lo=Uo,qo=Ds)}else if(qo===0){const Ds=getDistance(Do,jo,Fo,$o,Zo,_s,Ss,As);(Ho===void 0||Ds0)return!1;return!0}}),Co=Lo}Co&&triggerMoveFocusEvent({by:"mover",owner:po,next:Co,relatedEvent:no})&&(Oo!==void 0&&scrollIntoView$4(this._win,Co,Oo),no.preventDefault(),no.stopImmediatePropagation(),nativeFocus(Co))},this._tabster=to,this._win=ro,this._movers={},to.queueInit(this._init)}dispose(){var to;const ro=this._win();this._tabster.focusedElement.unsubscribe(this._onFocus),(to=this._ignoredInputResolve)===null||to===void 0||to.call(this,!1),this._ignoredInputTimer&&(ro.clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),ro.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._movers).forEach(no=>{this._movers[no]&&(this._movers[no].dispose(),delete this._movers[no])})}createMover(to,ro,no){const oo=new Mover(this._tabster,to,this._onMoverDispose,ro,no);return this._movers[oo.id]=oo,oo}async _isIgnoredInput(to,ro){var no;if(to.getAttribute("aria-expanded")==="true"&&to.hasAttribute("aria-activedescendant"))return!0;if(matchesSelector(to,_inputSelector)){let oo=0,io=0,so=0,ao;if(to.tagName==="INPUT"||to.tagName==="TEXTAREA"){const lo=to.type;if(so=(to.value||"").length,lo==="email"||lo==="number"){if(so){const co=(no=to.ownerDocument.defaultView)===null||no===void 0?void 0:no.getSelection();if(co){const fo=co.toString().length,ho=ro===Keys.Left||ro===Keys.Up;if(co.modify("extend",ho?"backward":"forward","character"),fo!==co.toString().length)return co.modify("extend",ho?"forward":"backward","character"),!0;so=0}}}else{const co=to.selectionStart;if(co===null)return lo==="hidden";oo=co||0,io=to.selectionEnd||0}}else to.contentEditable==="true"&&(ao=new(getPromise(this._win))(lo=>{this._ignoredInputResolve=go=>{delete this._ignoredInputResolve,lo(go)};const uo=this._win();this._ignoredInputTimer&&uo.clearTimeout(this._ignoredInputTimer);const{anchorNode:co,focusNode:fo,anchorOffset:ho,focusOffset:po}=uo.getSelection()||{};this._ignoredInputTimer=uo.setTimeout(()=>{var go,vo,bo;delete this._ignoredInputTimer;const{anchorNode:xo,focusNode:_o,anchorOffset:Eo,focusOffset:So}=uo.getSelection()||{};if(xo!==co||_o!==fo||Eo!==ho||So!==po){(go=this._ignoredInputResolve)===null||go===void 0||go.call(this,!1);return}if(oo=Eo||0,io=So||0,so=((vo=to.textContent)===null||vo===void 0?void 0:vo.length)||0,xo&&_o&&to.contains(xo)&&to.contains(_o)&&xo!==to){let To=!1;const wo=Co=>{if(Co===xo)To=!0;else if(Co===_o)return!0;const Oo=Co.textContent;if(Oo&&!Co.firstChild){const Ro=Oo.length;To?_o!==xo&&(io+=Ro):(oo+=Ro,io+=Ro)}let Ao=!1;for(let Ro=Co.firstChild;Ro&&!Ao;Ro=Ro.nextSibling)Ao=wo(Ro);return Ao};wo(to)}(bo=this._ignoredInputResolve)===null||bo===void 0||bo.call(this,!0)},0)}));if(ao&&!await ao||oo!==io||oo>0&&(ro===Keys.Left||ro===Keys.Up||ro===Keys.Home)||oo"u")return()=>{};const oo=to.getWindow;let io;const so=co=>{var fo,ho,po,go,vo;for(const bo of co){const xo=bo.target,_o=bo.removedNodes,Eo=bo.addedNodes;if(bo.type==="attributes")bo.attributeName===TabsterAttributeName&&ro(to,xo);else{for(let So=0;So<_o.length;So++)ao(_o[So],!0),(ho=(fo=to._dummyObserver).domChanged)===null||ho===void 0||ho.call(fo,xo);for(let So=0;Solo(po,fo));if(ho)for(;ho.nextNode(););}function lo(co,fo){var ho;if(!co.getAttribute)return NodeFilter.FILTER_SKIP;const po=co.__tabsterElementUID;return po&&io&&(fo?delete io[po]:(ho=io[po])!==null&&ho!==void 0||(io[po]=new WeakHTMLElement(oo,co))),(getTabsterOnElement(to,co)||co.hasAttribute(TabsterAttributeName))&&ro(to,co,fo),NodeFilter.FILTER_SKIP}const uo=new MutationObserver(so);return no&&ao(oo().document.body),uo.observe(eo,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[TabsterAttributeName]}),()=>{uo.disconnect()}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class UncontrolledAPI{constructor(to){this._isUncontrolledCompletely=to}isUncontrolledCompletely(to,ro){var no;const oo=(no=this._isUncontrolledCompletely)===null||no===void 0?void 0:no.call(this,to,ro);return oo===void 0?ro:oo}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */const EVENT_NAME="restorer:restorefocus",HISOTRY_DEPTH=10;class Restorer extends TabsterPart{constructor(to,ro,no){var oo;if(super(to,ro,no),this._hasFocus=!1,this._onFocusOut=io=>{var so;const ao=(so=this._element)===null||so===void 0?void 0:so.get();ao&&io.relatedTarget===null&&ao.dispatchEvent(new Event(EVENT_NAME,{bubbles:!0})),ao&&!ao.contains(io.relatedTarget)&&(this._hasFocus=!1)},this._onFocusIn=()=>{this._hasFocus=!0},this._props.type===RestorerTypes.Source){const io=(oo=this._element)===null||oo===void 0?void 0:oo.get();io==null||io.addEventListener("focusout",this._onFocusOut),io==null||io.addEventListener("focusin",this._onFocusIn)}}dispose(){var to,ro;if(this._props.type===RestorerTypes.Source){const no=(to=this._element)===null||to===void 0?void 0:to.get();no==null||no.removeEventListener("focusout",this._onFocusOut),no==null||no.removeEventListener("focusin",this._onFocusIn),this._hasFocus&&((ro=this._tabster.getWindow().document.body)===null||ro===void 0||ro.dispatchEvent(new Event(EVENT_NAME,{bubbles:!0})))}}}class RestorerAPI{constructor(to){this._history=[],this._restoreFocusTimeout=0,this._onRestoreFocus=ro=>{const no=this._getWindow();this._restoreFocusTimeout&&no.clearTimeout(this._restoreFocusTimeout),this._restoreFocusTimeout=no.setTimeout(()=>this._restoreFocus(ro.target))},this._onFocusIn=ro=>{var no;if(!ro)return;const oo=getTabsterOnElement(this._tabster,ro);((no=oo==null?void 0:oo.restorer)===null||no===void 0?void 0:no.getProps().type)===RestorerTypes.Target&&this._addToHistory(ro)},this._restoreFocus=ro=>{var no,oo,io;const so=this._getWindow().document;if(so.activeElement!==so.body||!this._keyboardNavState.isNavigatingWithKeyboard()&&so.body.contains(ro))return;let ao=this._history.pop();for(;ao&&!so.body.contains((oo=(no=ao.get())===null||no===void 0?void 0:no.parentElement)!==null&&oo!==void 0?oo:null);)ao=this._history.pop();(io=ao==null?void 0:ao.get())===null||io===void 0||io.focus()},this._tabster=to,this._getWindow=to.getWindow,this._getWindow().addEventListener(EVENT_NAME,this._onRestoreFocus),this._keyboardNavState=to.keyboardNavigation,this._focusedElementState=to.focusedElement,this._focusedElementState.subscribe(this._onFocusIn)}dispose(){const to=this._getWindow();this._focusedElementState.unsubscribe(this._onFocusIn),to.removeEventListener(EVENT_NAME,this._onRestoreFocus),this._restoreFocusTimeout&&to.clearTimeout(this._restoreFocusTimeout)}_addToHistory(to){var ro;((ro=this._history[this._history.length-1])===null||ro===void 0?void 0:ro.get())!==to&&(this._history.length>HISOTRY_DEPTH&&this._history.shift(),this._history.push(new WeakHTMLElement(this._getWindow,to)))}createRestorer(to,ro){const no=new Restorer(this._tabster,to,ro);return ro.type===RestorerTypes.Target&&to.ownerDocument.activeElement===to&&this._addToHistory(to),no}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class Tabster{constructor(to){this.keyboardNavigation=to.keyboardNavigation,this.focusedElement=to.focusedElement,this.focusable=to.focusable,this.root=to.root,this.uncontrolled=to.uncontrolled,this.core=to}}class TabsterCore{constructor(to,ro){var no,oo;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=createWeakMap(to),this._win=to;const io=this.getWindow;this.keyboardNavigation=new KeyboardNavigationState(io),this.focusedElement=new FocusedElementState(this,io),this.focusable=new FocusableAPI(this),this.root=new RootAPI(this,ro==null?void 0:ro.autoRoot),this.uncontrolled=new UncontrolledAPI((ro==null?void 0:ro.checkUncontrolledCompletely)||(ro==null?void 0:ro.checkUncontrolledTrappingFocus)),this.controlTab=(no=ro==null?void 0:ro.controlTab)!==null&&no!==void 0?no:!0,this.rootDummyInputs=!!(ro!=null&&ro.rootDummyInputs),this._dummyObserver=new DummyInputObserver(io),this.getParent=(oo=ro==null?void 0:ro.getParent)!==null&&oo!==void 0?oo:so=>so.parentElement,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:so=>{if(!this._unobserve){const ao=io().document;this._unobserve=observeMutations(ao,this,updateTabsterByAttribute,so)}}},startFakeWeakRefsCleanup(io),this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(to){var ro;to&&(this.getParent=(ro=to.getParent)!==null&&ro!==void 0?ro:this.getParent)}createTabster(to,ro){const no=new Tabster(this);return to||this._wrappers.add(no),this._mergeProps(ro),no}disposeTabster(to,ro){ro?this._wrappers.clear():this._wrappers.delete(to),this._wrappers.size===0&&this.dispose()}dispose(){var to,ro,no,oo,io,so,ao,lo;this.internal.stopObserver();const uo=this._win;uo==null||uo.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],uo&&this._forgetMemorizedTimer&&(uo.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),(to=this.outline)===null||to===void 0||to.dispose(),(ro=this.crossOrigin)===null||ro===void 0||ro.dispose(),(no=this.deloser)===null||no===void 0||no.dispose(),(oo=this.groupper)===null||oo===void 0||oo.dispose(),(io=this.mover)===null||io===void 0||io.dispose(),(so=this.modalizer)===null||so===void 0||so.dispose(),(ao=this.observedElement)===null||ao===void 0||ao.dispose(),(lo=this.restorer)===null||lo===void 0||lo.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),stopFakeWeakRefsCleanupAndClearStorage(this.getWindow),clearElementCache(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),uo&&(disposeInstanceContext(uo),delete uo.__tabsterInstance,delete this._win)}storageEntry(to,ro){const no=this._storage;let oo=no.get(to);return oo?ro===!1&&Object.keys(oo).length===0&&no.delete(to):ro===!0&&(oo={},no.set(to,oo)),oo}forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),!this._forgetMemorizedTimer&&(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let to=this._forgetMemorizedElements.shift();to;to=this._forgetMemorizedElements.shift())clearElementCache(this.getWindow,to),FocusedElementState.forgetMemorized(this.focusedElement,to)},0),cleanupFakeWeakRefs(this.getWindow,!0)))}queueInit(to){var ro;this._win&&(this._initQueue.push(to),this._initTimer||(this._initTimer=(ro=this._win)===null||ro===void 0?void 0:ro.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;const to=this._initQueue;this._initQueue=[],to.forEach(ro=>ro())}}function createTabster(eo,to){let ro=getCurrentTabster(eo);return ro?ro.createTabster(!1,to):(ro=new TabsterCore(eo,to),eo.__tabsterInstance=ro,ro.createTabster())}function getGroupper(eo){const to=eo.core;return to.groupper||(to.groupper=new GroupperAPI(to,to.getWindow)),to.groupper}function getMover(eo){const to=eo.core;return to.mover||(to.mover=new MoverAPI(to,to.getWindow)),to.mover}function getModalizer(eo,to,ro){const no=eo.core;return no.modalizer||(no.modalizer=new ModalizerAPI(no,to,ro)),no.modalizer}function getRestorer(eo){const to=eo.core;return to.restorer||(to.restorer=new RestorerAPI(to)),to.restorer}function disposeTabster(eo,to){eo.core.disposeTabster(eo,to)}function getCurrentTabster(eo){return eo.__tabsterInstance}const useTabster=()=>{const{targetDocument:eo}=useFluent(),to=(eo==null?void 0:eo.defaultView)||void 0,ro=reactExports.useMemo(()=>to?createTabster(to,{autoRoot:{},controlTab:!1,getParent:getParent$1,checkUncontrolledTrappingFocus:no=>{var oo;return!!(!((oo=no.firstElementChild)===null||oo===void 0)&&oo.hasAttribute("data-is-focus-trap-zone-bumper"))}}):null,[to]);return useIsomorphicLayoutEffect$1(()=>()=>{ro&&disposeTabster(ro)},[ro]),ro},useTabsterAttributes=eo=>(useTabster(),getTabsterAttribute(eo)),useArrowNavigationGroup=(eo={})=>{const{circular:to,axis:ro,memorizeCurrent:no,tabbable:oo,ignoreDefaultKeydown:io,unstable_hasDefault:so}=eo,ao=useTabster();return ao&&getMover(ao),useTabsterAttributes({mover:{cyclic:!!to,direction:axisToMoverDirection(ro??"vertical"),memorizeCurrent:no,tabbable:oo,hasDefault:so},...io&&{focusable:{ignoreKeydown:io}}})};function axisToMoverDirection(eo){switch(eo){case"horizontal":return Types.MoverDirections.Horizontal;case"grid":return Types.MoverDirections.Grid;case"grid-linear":return Types.MoverDirections.GridLinear;case"both":return Types.MoverDirections.Both;case"vertical":default:return Types.MoverDirections.Vertical}}const useFocusableGroup=eo=>{const to=useTabster();return to&&getGroupper(to),useTabsterAttributes({groupper:{tabbability:getTabbability(eo==null?void 0:eo.tabBehavior)},focusable:{ignoreKeydown:eo==null?void 0:eo.ignoreDefaultKeydown}})},getTabbability=eo=>{switch(eo){case"unlimited":return Types.GroupperTabbabilities.Unlimited;case"limited":return Types.GroupperTabbabilities.Limited;case"limited-trap-focus":return Types.GroupperTabbabilities.LimitedTrapFocus;default:return}},useFocusFinders=()=>{const eo=useTabster(),{targetDocument:to}=useFluent(),ro=reactExports.useCallback((ao,lo)=>(eo==null?void 0:eo.focusable.findAll({container:ao,acceptCondition:lo}))||[],[eo]),no=reactExports.useCallback(ao=>eo==null?void 0:eo.focusable.findFirst({container:ao}),[eo]),oo=reactExports.useCallback(ao=>eo==null?void 0:eo.focusable.findLast({container:ao}),[eo]),io=reactExports.useCallback((ao,lo={})=>{if(!eo||!to)return null;const{container:uo=to.body}=lo;return eo.focusable.findNext({currentElement:ao,container:uo})},[eo,to]),so=reactExports.useCallback((ao,lo={})=>{if(!eo||!to)return null;const{container:uo=to.body}=lo;return eo.focusable.findPrev({currentElement:ao,container:uo})},[eo,to]);return{findAllFocusable:ro,findFirstFocusable:no,findLastFocusable:oo,findNextFocusable:io,findPrevFocusable:so}},FOCUS_VISIBLE_ATTR="data-fui-focus-visible",FOCUS_WITHIN_ATTR="data-fui-focus-within";function applyFocusVisiblePolyfill(eo,to){if(alreadyInScope(eo))return()=>{};const ro={current:void 0},no=createKeyborg(to);function oo(lo){no.isNavigatingWithKeyboard()&&isHTMLElement$6(lo)&&(ro.current=lo,lo.setAttribute(FOCUS_VISIBLE_ATTR,""))}function io(){ro.current&&(ro.current.removeAttribute(FOCUS_VISIBLE_ATTR),ro.current=void 0)}no.subscribe(lo=>{lo||io()});const so=lo=>{io();const uo=lo.composedPath()[0];oo(uo)},ao=lo=>{(!lo.relatedTarget||isHTMLElement$6(lo.relatedTarget)&&!eo.contains(lo.relatedTarget))&&io()};return eo.addEventListener(KEYBORG_FOCUSIN,so),eo.addEventListener("focusout",ao),eo.focusVisible=!0,oo(to.document.activeElement),()=>{io(),eo.removeEventListener(KEYBORG_FOCUSIN,so),eo.removeEventListener("focusout",ao),delete eo.focusVisible,disposeKeyborg(no)}}function alreadyInScope(eo){return eo?eo.focusVisible?!0:alreadyInScope(eo==null?void 0:eo.parentElement):!1}function useFocusVisible(eo={}){const to=useFluent(),ro=reactExports.useRef(null);var no;const oo=(no=eo.targetDocument)!==null&&no!==void 0?no:to.targetDocument;return reactExports.useEffect(()=>{if(oo!=null&&oo.defaultView&&ro.current)return applyFocusVisiblePolyfill(ro.current,oo.defaultView)},[ro,oo]),ro}function applyFocusWithinPolyfill(eo,to){const ro=createKeyborg(to);ro.subscribe(io=>{io||removeFocusWithinClass(eo)});const no=io=>{ro.isNavigatingWithKeyboard()&&isHTMLElement$5(io.target)&&applyFocusWithinClass(eo)},oo=io=>{(!io.relatedTarget||isHTMLElement$5(io.relatedTarget)&&!eo.contains(io.relatedTarget))&&removeFocusWithinClass(eo)};return eo.addEventListener(KEYBORG_FOCUSIN,no),eo.addEventListener("focusout",oo),()=>{eo.removeEventListener(KEYBORG_FOCUSIN,no),eo.removeEventListener("focusout",oo),disposeKeyborg(ro)}}function applyFocusWithinClass(eo){eo.setAttribute(FOCUS_WITHIN_ATTR,"")}function removeFocusWithinClass(eo){eo.removeAttribute(FOCUS_WITHIN_ATTR)}function isHTMLElement$5(eo){return eo?!!(eo&&typeof eo=="object"&&"classList"in eo&&"contains"in eo):!1}function useFocusWithin(){const{targetDocument:eo}=useFluent(),to=reactExports.useRef(null);return reactExports.useEffect(()=>{if(eo!=null&&eo.defaultView&&to.current)return applyFocusWithinPolyfill(to.current,eo.defaultView)},[to,eo]),to}const useModalAttributes=(eo={})=>{const{trapFocus:to,alwaysFocusable:ro,legacyTrapFocus:no}=eo,oo=useTabster();oo&&(getModalizer(oo),getRestorer(oo));const io=useId$1("modal-",eo.id),so=useTabsterAttributes({restorer:{type:Types.RestorerTypes.Source},...to&&{modalizer:{id:io,isOthersAccessible:!to,isAlwaysAccessible:ro,isTrapped:no&&to}}}),ao=useTabsterAttributes({restorer:{type:Types.RestorerTypes.Target}});return{modalAttributes:so,triggerAttributes:ao}},grey={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"},whiteAlpha={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)"},blackAlpha={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)"},grey10Alpha={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)"},grey12Alpha={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)"},grey14Alpha={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)"},white="#ffffff",black="#000000",darkRed={shade50:"#130204",shade40:"#230308",shade30:"#420610",shade20:"#590815",shade10:"#690a19",primary:"#750b1c",tint10:"#861b2c",tint20:"#962f3f",tint30:"#ac4f5e",tint40:"#d69ca5",tint50:"#e9c7cd",tint60:"#f9f0f2"},cranberry={shade50:"#200205",shade40:"#3b0509",shade30:"#6e0811",shade20:"#960b18",shade10:"#b10e1c",primary:"#c50f1f",tint10:"#cc2635",tint20:"#d33f4c",tint30:"#dc626d",tint40:"#eeacb2",tint50:"#f6d1d5",tint60:"#fdf3f4"},red={shade50:"#210809",shade40:"#3f1011",shade30:"#751d1f",shade20:"#9f282b",shade10:"#bc2f32",primary:"#d13438",tint10:"#d7494c",tint20:"#dc5e62",tint30:"#e37d80",tint40:"#f1bbbc",tint50:"#f8dadb",tint60:"#fdf6f6"},darkOrange={shade50:"#230900",shade40:"#411200",shade30:"#7a2101",shade20:"#a62d01",shade10:"#c43501",primary:"#da3b01",tint10:"#de501c",tint20:"#e36537",tint30:"#e9835e",tint40:"#f4bfab",tint50:"#f9dcd1",tint60:"#fdf6f3"},pumpkin={shade50:"#200d03",shade40:"#3d1805",shade30:"#712d09",shade20:"#9a3d0c",shade10:"#b6480e",primary:"#ca5010",tint10:"#d06228",tint20:"#d77440",tint30:"#df8e64",tint40:"#efc4ad",tint50:"#f7dfd2",tint60:"#fdf7f4"},orange={shade50:"#271002",shade40:"#4a1e04",shade30:"#8a3707",shade20:"#bc4b09",shade10:"#de590b",primary:"#f7630c",tint10:"#f87528",tint20:"#f98845",tint30:"#faa06b",tint40:"#fdcfb4",tint50:"#fee5d7",tint60:"#fff9f5"},peach={shade50:"#291600",shade40:"#4d2a00",shade30:"#8f4e00",shade20:"#c26a00",shade10:"#e67e00",primary:"#ff8c00",tint10:"#ff9a1f",tint20:"#ffa83d",tint30:"#ffba66",tint40:"#ffddb3",tint50:"#ffedd6",tint60:"#fffaf5"},marigold={shade50:"#251a00",shade40:"#463100",shade30:"#835b00",shade20:"#b27c00",shade10:"#d39300",primary:"#eaa300",tint10:"#edad1c",tint20:"#efb839",tint30:"#f2c661",tint40:"#f9e2ae",tint50:"#fcefd3",tint60:"#fefbf4"},yellow={primary:"#fde300",shade10:"#e4cc00",shade20:"#c0ad00",shade30:"#817400",shade40:"#4c4400",shade50:"#282400",tint10:"#fde61e",tint20:"#fdea3d",tint30:"#feee66",tint40:"#fef7b2",tint50:"#fffad6",tint60:"#fffef5"},gold={shade50:"#1f1900",shade40:"#3a2f00",shade30:"#6c5700",shade20:"#937700",shade10:"#ae8c00",primary:"#c19c00",tint10:"#c8a718",tint20:"#d0b232",tint30:"#dac157",tint40:"#ecdfa5",tint50:"#f5eece",tint60:"#fdfbf2"},brass={shade50:"#181202",shade40:"#2e2103",shade30:"#553e06",shade20:"#745408",shade10:"#89640a",primary:"#986f0b",tint10:"#a47d1e",tint20:"#b18c34",tint30:"#c1a256",tint40:"#e0cea2",tint50:"#efe4cb",tint60:"#fbf8f2"},brown={shade50:"#170e07",shade40:"#2b1a0e",shade30:"#50301a",shade20:"#6c4123",shade10:"#804d29",primary:"#8e562e",tint10:"#9c663f",tint20:"#a97652",tint30:"#bb8f6f",tint40:"#ddc3b0",tint50:"#edded3",tint60:"#faf7f4"},forest={shade50:"#0c1501",shade40:"#162702",shade30:"#294903",shade20:"#376304",shade10:"#427505",primary:"#498205",tint10:"#599116",tint20:"#6ba02b",tint30:"#85b44c",tint40:"#bdd99b",tint50:"#dbebc7",tint60:"#f6faf0"},seafoam={shade50:"#002111",shade40:"#003d20",shade30:"#00723b",shade20:"#009b51",shade10:"#00b85f",primary:"#00cc6a",tint10:"#19d279",tint20:"#34d889",tint30:"#5ae0a0",tint40:"#a8f0cd",tint50:"#cff7e4",tint60:"#f3fdf8"},lightGreen={shade50:"#031a02",shade40:"#063004",shade30:"#0b5a08",shade20:"#0e7a0b",shade10:"#11910d",primary:"#13a10e",tint10:"#27ac22",tint20:"#3db838",tint30:"#5ec75a",tint40:"#a7e3a5",tint50:"#cef0cd",tint60:"#f2fbf2"},green={shade50:"#031403",shade40:"#052505",shade30:"#094509",shade20:"#0c5e0c",shade10:"#0e700e",primary:"#107c10",tint10:"#218c21",tint20:"#359b35",tint30:"#54b054",tint40:"#9fd89f",tint50:"#c9eac9",tint60:"#f1faf1"},darkGreen={shade50:"#021102",shade40:"#032003",shade30:"#063b06",shade20:"#085108",shade10:"#0a5f0a",primary:"#0b6a0b",tint10:"#1a7c1a",tint20:"#2d8e2d",tint30:"#4da64d",tint40:"#9ad29a",tint50:"#c6e7c6",tint60:"#f0f9f0"},lightTeal={shade50:"#001d1f",shade40:"#00373a",shade30:"#00666d",shade20:"#008b94",shade10:"#00a5af",primary:"#00b7c3",tint10:"#18bfca",tint20:"#32c8d1",tint30:"#58d3db",tint40:"#a6e9ed",tint50:"#cef3f5",tint60:"#f2fcfd"},teal={shade50:"#001516",shade40:"#012728",shade30:"#02494c",shade20:"#026467",shade10:"#037679",primary:"#038387",tint10:"#159195",tint20:"#2aa0a4",tint30:"#4cb4b7",tint40:"#9bd9db",tint50:"#c7ebec",tint60:"#f0fafa"},steel={shade50:"#000f12",shade40:"#001b22",shade30:"#00333f",shade20:"#004555",shade10:"#005265",primary:"#005b70",tint10:"#0f6c81",tint20:"#237d92",tint30:"#4496a9",tint40:"#94c8d4",tint50:"#c3e1e8",tint60:"#eff7f9"},blue={shade50:"#001322",shade40:"#002440",shade30:"#004377",shade20:"#005ba1",shade10:"#006cbf",primary:"#0078d4",tint10:"#1a86d9",tint20:"#3595de",tint30:"#5caae5",tint40:"#a9d3f2",tint50:"#d0e7f8",tint60:"#f3f9fd"},royalBlue={shade50:"#000c16",shade40:"#00172a",shade30:"#002c4e",shade20:"#003b6a",shade10:"#00467e",primary:"#004e8c",tint10:"#125e9a",tint20:"#286fa8",tint30:"#4a89ba",tint40:"#9abfdc",tint50:"#c7dced",tint60:"#f0f6fa"},cornflower={shade50:"#0d1126",shade40:"#182047",shade30:"#2c3c85",shade20:"#3c51b4",shade10:"#4760d5",primary:"#4f6bed",tint10:"#637cef",tint20:"#778df1",tint30:"#93a4f4",tint40:"#c8d1fa",tint50:"#e1e6fc",tint60:"#f7f9fe"},navy={shade50:"#00061d",shade40:"#000c36",shade30:"#001665",shade20:"#001e89",shade10:"#0023a2",primary:"#0027b4",tint10:"#173bbd",tint20:"#3050c6",tint30:"#546fd2",tint40:"#a3b2e8",tint50:"#ccd5f3",tint60:"#f2f4fc"},lavender={shade50:"#120f25",shade40:"#221d46",shade30:"#3f3682",shade20:"#5649b0",shade10:"#6656d1",primary:"#7160e8",tint10:"#8172eb",tint20:"#9184ee",tint30:"#a79cf1",tint40:"#d2ccf8",tint50:"#e7e4fb",tint60:"#f9f8fe"},purple={shade50:"#0f0717",shade40:"#1c0e2b",shade30:"#341a51",shade20:"#46236e",shade10:"#532982",primary:"#5c2e91",tint10:"#6b3f9e",tint20:"#7c52ab",tint30:"#9470bd",tint40:"#c6b1de",tint50:"#e0d3ed",tint60:"#f7f4fb"},grape={shade50:"#160418",shade40:"#29072e",shade30:"#4c0d55",shade20:"#671174",shade10:"#7a1589",primary:"#881798",tint10:"#952aa4",tint20:"#a33fb1",tint30:"#b55fc1",tint40:"#d9a7e0",tint50:"#eaceef",tint60:"#faf2fb"},berry={shade50:"#1f091d",shade40:"#3a1136",shade30:"#6d2064",shade20:"#932b88",shade10:"#af33a1",primary:"#c239b3",tint10:"#c94cbc",tint20:"#d161c4",tint30:"#da7ed0",tint40:"#edbbe7",tint50:"#f5daf2",tint60:"#fdf5fc"},lilac={shade50:"#1c0b1f",shade40:"#35153a",shade30:"#63276d",shade20:"#863593",shade10:"#9f3faf",primary:"#b146c2",tint10:"#ba58c9",tint20:"#c36bd1",tint30:"#cf87da",tint40:"#e6bfed",tint50:"#f2dcf5",tint60:"#fcf6fd"},pink={shade50:"#24091b",shade40:"#441232",shade30:"#80215d",shade20:"#ad2d7e",shade10:"#cd3595",primary:"#e43ba6",tint10:"#e750b0",tint20:"#ea66ba",tint30:"#ef85c8",tint40:"#f7c0e3",tint50:"#fbddf0",tint60:"#fef6fb"},magenta={shade50:"#1f0013",shade40:"#390024",shade30:"#6b0043",shade20:"#91005a",shade10:"#ac006b",primary:"#bf0077",tint10:"#c71885",tint20:"#ce3293",tint30:"#d957a8",tint40:"#eca5d1",tint50:"#f5cee6",tint60:"#fcf2f9"},plum={shade50:"#13000c",shade40:"#240017",shade30:"#43002b",shade20:"#5a003b",shade10:"#6b0045",primary:"#77004d",tint10:"#87105d",tint20:"#98246f",tint30:"#ad4589",tint40:"#d696c0",tint50:"#e9c4dc",tint60:"#faf0f6"},beige={shade50:"#141313",shade40:"#252323",shade30:"#444241",shade20:"#5d5958",shade10:"#6e6968",primary:"#7a7574",tint10:"#8a8584",tint20:"#9a9594",tint30:"#afabaa",tint40:"#d7d4d4",tint50:"#eae8e8",tint60:"#faf9f9"},mink={shade50:"#0f0e0e",shade40:"#1c1b1a",shade30:"#343231",shade20:"#474443",shade10:"#54514f",primary:"#5d5a58",tint10:"#706d6b",tint20:"#84817e",tint30:"#9e9b99",tint40:"#cecccb",tint50:"#e5e4e3",tint60:"#f8f8f8"},platinum={shade50:"#111314",shade40:"#1f2426",shade30:"#3b4447",shade20:"#505c60",shade10:"#5f6d71",primary:"#69797e",tint10:"#79898d",tint20:"#89989d",tint30:"#a0adb2",tint40:"#cdd6d8",tint50:"#e4e9ea",tint60:"#f8f9fa"},anchor={shade50:"#090a0b",shade40:"#111315",shade30:"#202427",shade20:"#2b3135",shade10:"#333a3f",primary:"#394146",tint10:"#4d565c",tint20:"#626c72",tint30:"#808a90",tint40:"#bcc3c7",tint50:"#dbdfe1",tint60:"#f6f7f8"},statusSharedColors={red,green,darkOrange,yellow,berry,lightGreen,marigold},personaSharedColors={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},mappedStatusColors={cranberry,green,orange},statusSharedColorNames=["red","green","darkOrange","yellow","berry","lightGreen","marigold"],personaSharedColorNames=["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"],statusColorMapping={success:"green",warning:"orange",danger:"cranberry"},statusColorPaletteTokens$1=statusSharedColorNames.reduce((eo,to)=>{const ro=to.slice(0,1).toUpperCase()+to.slice(1),no={[`colorPalette${ro}Background1`]:statusSharedColors[to].tint60,[`colorPalette${ro}Background2`]:statusSharedColors[to].tint40,[`colorPalette${ro}Background3`]:statusSharedColors[to].primary,[`colorPalette${ro}Foreground1`]:statusSharedColors[to].shade10,[`colorPalette${ro}Foreground2`]:statusSharedColors[to].shade30,[`colorPalette${ro}Foreground3`]:statusSharedColors[to].primary,[`colorPalette${ro}BorderActive`]:statusSharedColors[to].primary,[`colorPalette${ro}Border1`]:statusSharedColors[to].tint40,[`colorPalette${ro}Border2`]:statusSharedColors[to].primary};return Object.assign(eo,no)},{});statusColorPaletteTokens$1.colorPaletteYellowForeground1=statusSharedColors.yellow.shade30;statusColorPaletteTokens$1.colorPaletteRedForegroundInverted=statusSharedColors.red.tint20;statusColorPaletteTokens$1.colorPaletteGreenForegroundInverted=statusSharedColors.green.tint20;statusColorPaletteTokens$1.colorPaletteYellowForegroundInverted=statusSharedColors.yellow.tint40;const personaColorPaletteTokens$1=personaSharedColorNames.reduce((eo,to)=>{const ro=to.slice(0,1).toUpperCase()+to.slice(1),no={[`colorPalette${ro}Background2`]:personaSharedColors[to].tint40,[`colorPalette${ro}Foreground2`]:personaSharedColors[to].shade30,[`colorPalette${ro}BorderActive`]:personaSharedColors[to].primary};return Object.assign(eo,no)},{}),colorPaletteTokens$1={...statusColorPaletteTokens$1,...personaColorPaletteTokens$1},colorStatusTokens$1=Object.entries(statusColorMapping).reduce((eo,[to,ro])=>{const no=to.slice(0,1).toUpperCase()+to.slice(1),oo={[`colorStatus${no}Background1`]:mappedStatusColors[ro].tint60,[`colorStatus${no}Background2`]:mappedStatusColors[ro].tint40,[`colorStatus${no}Background3`]:mappedStatusColors[ro].primary,[`colorStatus${no}Foreground1`]:mappedStatusColors[ro].shade10,[`colorStatus${no}Foreground2`]:mappedStatusColors[ro].shade30,[`colorStatus${no}Foreground3`]:mappedStatusColors[ro].primary,[`colorStatus${no}ForegroundInverted`]:mappedStatusColors[ro].tint30,[`colorStatus${no}BorderActive`]:mappedStatusColors[ro].primary,[`colorStatus${no}Border1`]:mappedStatusColors[ro].tint40,[`colorStatus${no}Border2`]:mappedStatusColors[ro].primary};return Object.assign(eo,oo)},{});colorStatusTokens$1.colorStatusWarningForeground1=mappedStatusColors[statusColorMapping.warning].shade20;colorStatusTokens$1.colorStatusWarningForeground3=mappedStatusColors[statusColorMapping.warning].shade20;colorStatusTokens$1.colorStatusWarningBorder2=mappedStatusColors[statusColorMapping.warning].shade20;const generateColorTokens$1=eo=>({colorNeutralForeground1:grey[14],colorNeutralForeground1Hover:grey[14],colorNeutralForeground1Pressed:grey[14],colorNeutralForeground1Selected:grey[14],colorNeutralForeground2:grey[26],colorNeutralForeground2Hover:grey[14],colorNeutralForeground2Pressed:grey[14],colorNeutralForeground2Selected:grey[14],colorNeutralForeground2BrandHover:eo[80],colorNeutralForeground2BrandPressed:eo[70],colorNeutralForeground2BrandSelected:eo[80],colorNeutralForeground3:grey[38],colorNeutralForeground3Hover:grey[26],colorNeutralForeground3Pressed:grey[26],colorNeutralForeground3Selected:grey[26],colorNeutralForeground3BrandHover:eo[80],colorNeutralForeground3BrandPressed:eo[70],colorNeutralForeground3BrandSelected:eo[80],colorNeutralForeground4:grey[44],colorNeutralForegroundDisabled:grey[74],colorNeutralForegroundInvertedDisabled:whiteAlpha[40],colorBrandForegroundLink:eo[70],colorBrandForegroundLinkHover:eo[60],colorBrandForegroundLinkPressed:eo[40],colorBrandForegroundLinkSelected:eo[70],colorNeutralForeground2Link:grey[26],colorNeutralForeground2LinkHover:grey[14],colorNeutralForeground2LinkPressed:grey[14],colorNeutralForeground2LinkSelected:grey[14],colorCompoundBrandForeground1:eo[80],colorCompoundBrandForeground1Hover:eo[70],colorCompoundBrandForeground1Pressed:eo[60],colorBrandForeground1:eo[80],colorBrandForeground2:eo[70],colorBrandForeground2Hover:eo[60],colorBrandForeground2Pressed:eo[30],colorNeutralForeground1Static:grey[14],colorNeutralForegroundStaticInverted:white,colorNeutralForegroundInverted:white,colorNeutralForegroundInvertedHover:white,colorNeutralForegroundInvertedPressed:white,colorNeutralForegroundInvertedSelected:white,colorNeutralForegroundInverted2:white,colorNeutralForegroundOnBrand:white,colorNeutralForegroundInvertedLink:white,colorNeutralForegroundInvertedLinkHover:white,colorNeutralForegroundInvertedLinkPressed:white,colorNeutralForegroundInvertedLinkSelected:white,colorBrandForegroundInverted:eo[100],colorBrandForegroundInvertedHover:eo[110],colorBrandForegroundInvertedPressed:eo[100],colorBrandForegroundOnLight:eo[80],colorBrandForegroundOnLightHover:eo[70],colorBrandForegroundOnLightPressed:eo[50],colorBrandForegroundOnLightSelected:eo[60],colorNeutralBackground1:white,colorNeutralBackground1Hover:grey[96],colorNeutralBackground1Pressed:grey[88],colorNeutralBackground1Selected:grey[92],colorNeutralBackground2:grey[98],colorNeutralBackground2Hover:grey[94],colorNeutralBackground2Pressed:grey[86],colorNeutralBackground2Selected:grey[90],colorNeutralBackground3:grey[96],colorNeutralBackground3Hover:grey[92],colorNeutralBackground3Pressed:grey[84],colorNeutralBackground3Selected:grey[88],colorNeutralBackground4:grey[94],colorNeutralBackground4Hover:grey[98],colorNeutralBackground4Pressed:grey[96],colorNeutralBackground4Selected:white,colorNeutralBackground5:grey[92],colorNeutralBackground5Hover:grey[96],colorNeutralBackground5Pressed:grey[94],colorNeutralBackground5Selected:grey[98],colorNeutralBackground6:grey[90],colorNeutralBackgroundInverted:grey[16],colorNeutralBackgroundStatic:grey[20],colorNeutralBackgroundAlpha:whiteAlpha[50],colorNeutralBackgroundAlpha2:whiteAlpha[80],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:grey[96],colorSubtleBackgroundPressed:grey[88],colorSubtleBackgroundSelected:grey[92],colorSubtleBackgroundLightAlphaHover:whiteAlpha[70],colorSubtleBackgroundLightAlphaPressed:whiteAlpha[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:blackAlpha[10],colorSubtleBackgroundInvertedPressed:blackAlpha[30],colorSubtleBackgroundInvertedSelected:blackAlpha[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:grey[94],colorNeutralBackgroundInvertedDisabled:whiteAlpha[10],colorNeutralStencil1:grey[90],colorNeutralStencil2:grey[98],colorNeutralStencil1Alpha:blackAlpha[10],colorNeutralStencil2Alpha:blackAlpha[5],colorBackgroundOverlay:blackAlpha[40],colorScrollbarOverlay:blackAlpha[50],colorBrandBackground:eo[80],colorBrandBackgroundHover:eo[70],colorBrandBackgroundPressed:eo[40],colorBrandBackgroundSelected:eo[60],colorCompoundBrandBackground:eo[80],colorCompoundBrandBackgroundHover:eo[70],colorCompoundBrandBackgroundPressed:eo[60],colorBrandBackgroundStatic:eo[80],colorBrandBackground2:eo[160],colorBrandBackground2Hover:eo[150],colorBrandBackground2Pressed:eo[130],colorBrandBackgroundInverted:white,colorBrandBackgroundInvertedHover:eo[160],colorBrandBackgroundInvertedPressed:eo[140],colorBrandBackgroundInvertedSelected:eo[150],colorNeutralStrokeAccessible:grey[38],colorNeutralStrokeAccessibleHover:grey[34],colorNeutralStrokeAccessiblePressed:grey[30],colorNeutralStrokeAccessibleSelected:eo[80],colorNeutralStroke1:grey[82],colorNeutralStroke1Hover:grey[78],colorNeutralStroke1Pressed:grey[70],colorNeutralStroke1Selected:grey[74],colorNeutralStroke2:grey[88],colorNeutralStroke3:grey[94],colorNeutralStrokeSubtle:grey[88],colorNeutralStrokeOnBrand:white,colorNeutralStrokeOnBrand2:white,colorNeutralStrokeOnBrand2Hover:white,colorNeutralStrokeOnBrand2Pressed:white,colorNeutralStrokeOnBrand2Selected:white,colorBrandStroke1:eo[80],colorBrandStroke2:eo[140],colorBrandStroke2Hover:eo[120],colorBrandStroke2Pressed:eo[80],colorBrandStroke2Contrast:eo[140],colorCompoundBrandStroke:eo[80],colorCompoundBrandStrokeHover:eo[70],colorCompoundBrandStrokePressed:eo[60],colorNeutralStrokeDisabled:grey[88],colorNeutralStrokeInvertedDisabled:whiteAlpha[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:blackAlpha[5],colorNeutralStrokeAlpha2:whiteAlpha[20],colorStrokeFocus1:white,colorStrokeFocus2:black,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)"}),borderRadius={borderRadiusNone:"0",borderRadiusSmall:"2px",borderRadiusMedium:"4px",borderRadiusLarge:"6px",borderRadiusXLarge:"8px",borderRadiusCircular:"10000px"},curves={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)"},durations={durationUltraFast:"50ms",durationFaster:"100ms",durationFast:"150ms",durationNormal:"200ms",durationGentle:"250ms",durationSlow:"300ms",durationSlower:"400ms",durationUltraSlow:"500ms"},fontSizes={fontSizeBase100:"10px",fontSizeBase200:"12px",fontSizeBase300:"14px",fontSizeBase400:"16px",fontSizeBase500:"20px",fontSizeBase600:"24px",fontSizeHero700:"28px",fontSizeHero800:"32px",fontSizeHero900:"40px",fontSizeHero1000:"68px"},lineHeights={lineHeightBase100:"14px",lineHeightBase200:"16px",lineHeightBase300:"20px",lineHeightBase400:"22px",lineHeightBase500:"28px",lineHeightBase600:"32px",lineHeightHero700:"36px",lineHeightHero800:"40px",lineHeightHero900:"52px",lineHeightHero1000:"92px"},fontWeights={fontWeightRegular:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700},fontFamilies={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"},spacings={none:"0",xxs:"2px",xs:"4px",sNudge:"6px",s:"8px",mNudge:"10px",m:"12px",l:"16px",xl:"20px",xxl:"24px",xxxl:"32px"},horizontalSpacings={spacingHorizontalNone:spacings.none,spacingHorizontalXXS:spacings.xxs,spacingHorizontalXS:spacings.xs,spacingHorizontalSNudge:spacings.sNudge,spacingHorizontalS:spacings.s,spacingHorizontalMNudge:spacings.mNudge,spacingHorizontalM:spacings.m,spacingHorizontalL:spacings.l,spacingHorizontalXL:spacings.xl,spacingHorizontalXXL:spacings.xxl,spacingHorizontalXXXL:spacings.xxxl},verticalSpacings={spacingVerticalNone:spacings.none,spacingVerticalXXS:spacings.xxs,spacingVerticalXS:spacings.xs,spacingVerticalSNudge:spacings.sNudge,spacingVerticalS:spacings.s,spacingVerticalMNudge:spacings.mNudge,spacingVerticalM:spacings.m,spacingVerticalL:spacings.l,spacingVerticalXL:spacings.xl,spacingVerticalXXL:spacings.xxl,spacingVerticalXXXL:spacings.xxxl},strokeWidths={strokeWidthThin:"1px",strokeWidthThick:"2px",strokeWidthThicker:"3px",strokeWidthThickest:"4px"},tokens={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 createShadowTokens(eo,to,ro=""){return{[`shadow2${ro}`]:`0 0 2px ${eo}, 0 1px 2px ${to}`,[`shadow4${ro}`]:`0 0 2px ${eo}, 0 2px 4px ${to}`,[`shadow8${ro}`]:`0 0 2px ${eo}, 0 4px 8px ${to}`,[`shadow16${ro}`]:`0 0 2px ${eo}, 0 8px 16px ${to}`,[`shadow28${ro}`]:`0 0 8px ${eo}, 0 14px 28px ${to}`,[`shadow64${ro}`]:`0 0 8px ${eo}, 0 32px 64px ${to}`}}const createLightTheme=eo=>{const to=generateColorTokens$1(eo);return{...borderRadius,...fontSizes,...lineHeights,...fontFamilies,...fontWeights,...strokeWidths,...horizontalSpacings,...verticalSpacings,...durations,...curves,...to,...colorPaletteTokens$1,...colorStatusTokens$1,...createShadowTokens(to.colorNeutralShadowAmbient,to.colorNeutralShadowKey),...createShadowTokens(to.colorBrandShadowAmbient,to.colorBrandShadowKey,"Brand")}},brandWeb={10:"#061724",20:"#082338",30:"#0a2e4a",40:"#0c3b5e",50:"#0e4775",60:"#0f548c",70:"#115ea3",80:"#0f6cbd",90:"#2886de",100:"#479ef5",110:"#62abf5",120:"#77b7f7",130:"#96c6fa",140:"#b4d6fa",150:"#cfe4fa",160:"#ebf3fc"},statusColorPaletteTokens=statusSharedColorNames.reduce((eo,to)=>{const ro=to.slice(0,1).toUpperCase()+to.slice(1),no={[`colorPalette${ro}Background1`]:statusSharedColors[to].shade40,[`colorPalette${ro}Background2`]:statusSharedColors[to].shade30,[`colorPalette${ro}Background3`]:statusSharedColors[to].primary,[`colorPalette${ro}Foreground1`]:statusSharedColors[to].tint30,[`colorPalette${ro}Foreground2`]:statusSharedColors[to].tint40,[`colorPalette${ro}Foreground3`]:statusSharedColors[to].tint20,[`colorPalette${ro}BorderActive`]:statusSharedColors[to].tint30,[`colorPalette${ro}Border1`]:statusSharedColors[to].primary,[`colorPalette${ro}Border2`]:statusSharedColors[to].tint20};return Object.assign(eo,no)},{});statusColorPaletteTokens.colorPaletteRedForeground3=statusSharedColors.red.tint30;statusColorPaletteTokens.colorPaletteRedBorder2=statusSharedColors.red.tint30;statusColorPaletteTokens.colorPaletteGreenForeground3=statusSharedColors.green.tint40;statusColorPaletteTokens.colorPaletteGreenBorder2=statusSharedColors.green.tint40;statusColorPaletteTokens.colorPaletteDarkOrangeForeground3=statusSharedColors.darkOrange.tint30;statusColorPaletteTokens.colorPaletteDarkOrangeBorder2=statusSharedColors.darkOrange.tint30;statusColorPaletteTokens.colorPaletteRedForegroundInverted=statusSharedColors.red.primary;statusColorPaletteTokens.colorPaletteGreenForegroundInverted=statusSharedColors.green.primary;statusColorPaletteTokens.colorPaletteYellowForegroundInverted=statusSharedColors.yellow.shade30;const personaColorPaletteTokens=personaSharedColorNames.reduce((eo,to)=>{const ro=to.slice(0,1).toUpperCase()+to.slice(1),no={[`colorPalette${ro}Background2`]:personaSharedColors[to].shade30,[`colorPalette${ro}Foreground2`]:personaSharedColors[to].tint40,[`colorPalette${ro}BorderActive`]:personaSharedColors[to].tint30};return Object.assign(eo,no)},{});personaColorPaletteTokens.colorPaletteDarkRedBackground2=personaSharedColors.darkRed.shade20;personaColorPaletteTokens.colorPalettePlumBackground2=personaSharedColors.plum.shade20;const colorPaletteTokens={...statusColorPaletteTokens,...personaColorPaletteTokens},colorStatusTokens=Object.entries(statusColorMapping).reduce((eo,[to,ro])=>{const no=to.slice(0,1).toUpperCase()+to.slice(1),oo={[`colorStatus${no}Background1`]:mappedStatusColors[ro].shade40,[`colorStatus${no}Background2`]:mappedStatusColors[ro].shade30,[`colorStatus${no}Background3`]:mappedStatusColors[ro].primary,[`colorStatus${no}Foreground1`]:mappedStatusColors[ro].tint30,[`colorStatus${no}Foreground2`]:mappedStatusColors[ro].tint40,[`colorStatus${no}Foreground3`]:mappedStatusColors[ro].tint20,[`colorStatus${no}BorderActive`]:mappedStatusColors[ro].tint30,[`colorStatus${no}ForegroundInverted`]:mappedStatusColors[ro].shade10,[`colorStatus${no}Border1`]:mappedStatusColors[ro].primary,[`colorStatus${no}Border2`]:mappedStatusColors[ro].tint20};return Object.assign(eo,oo)},{});colorStatusTokens.colorStatusDangerForeground3=mappedStatusColors[statusColorMapping.danger].tint30;colorStatusTokens.colorStatusDangerBorder2=mappedStatusColors[statusColorMapping.danger].tint30;colorStatusTokens.colorStatusSuccessForeground3=mappedStatusColors[statusColorMapping.success].tint40;colorStatusTokens.colorStatusSuccessBorder2=mappedStatusColors[statusColorMapping.success].tint40;colorStatusTokens.colorStatusWarningForegroundInverted=mappedStatusColors[statusColorMapping.warning].shade20;const webLightTheme=createLightTheme(brandWeb),generateColorTokens=eo=>({colorNeutralForeground1:white,colorNeutralForeground1Hover:white,colorNeutralForeground1Pressed:white,colorNeutralForeground1Selected:white,colorNeutralForeground2:grey[84],colorNeutralForeground2Hover:white,colorNeutralForeground2Pressed:white,colorNeutralForeground2Selected:white,colorNeutralForeground2BrandHover:eo[100],colorNeutralForeground2BrandPressed:eo[90],colorNeutralForeground2BrandSelected:eo[100],colorNeutralForeground3:grey[68],colorNeutralForeground3Hover:grey[84],colorNeutralForeground3Pressed:grey[84],colorNeutralForeground3Selected:grey[84],colorNeutralForeground3BrandHover:eo[100],colorNeutralForeground3BrandPressed:eo[90],colorNeutralForeground3BrandSelected:eo[100],colorNeutralForeground4:grey[60],colorNeutralForegroundDisabled:grey[36],colorNeutralForegroundInvertedDisabled:whiteAlpha[40],colorBrandForegroundLink:eo[100],colorBrandForegroundLinkHover:eo[110],colorBrandForegroundLinkPressed:eo[90],colorBrandForegroundLinkSelected:eo[100],colorNeutralForeground2Link:grey[84],colorNeutralForeground2LinkHover:white,colorNeutralForeground2LinkPressed:white,colorNeutralForeground2LinkSelected:white,colorCompoundBrandForeground1:eo[100],colorCompoundBrandForeground1Hover:eo[110],colorCompoundBrandForeground1Pressed:eo[90],colorBrandForeground1:eo[100],colorBrandForeground2:eo[110],colorBrandForeground2Hover:eo[130],colorBrandForeground2Pressed:eo[160],colorNeutralForeground1Static:grey[14],colorNeutralForegroundStaticInverted:white,colorNeutralForegroundInverted:grey[14],colorNeutralForegroundInvertedHover:grey[14],colorNeutralForegroundInvertedPressed:grey[14],colorNeutralForegroundInvertedSelected:grey[14],colorNeutralForegroundInverted2:grey[14],colorNeutralForegroundOnBrand:white,colorNeutralForegroundInvertedLink:white,colorNeutralForegroundInvertedLinkHover:white,colorNeutralForegroundInvertedLinkPressed:white,colorNeutralForegroundInvertedLinkSelected:white,colorBrandForegroundInverted:eo[80],colorBrandForegroundInvertedHover:eo[70],colorBrandForegroundInvertedPressed:eo[60],colorBrandForegroundOnLight:eo[80],colorBrandForegroundOnLightHover:eo[70],colorBrandForegroundOnLightPressed:eo[50],colorBrandForegroundOnLightSelected:eo[60],colorNeutralBackground1:grey[16],colorNeutralBackground1Hover:grey[24],colorNeutralBackground1Pressed:grey[12],colorNeutralBackground1Selected:grey[22],colorNeutralBackground2:grey[12],colorNeutralBackground2Hover:grey[20],colorNeutralBackground2Pressed:grey[8],colorNeutralBackground2Selected:grey[18],colorNeutralBackground3:grey[8],colorNeutralBackground3Hover:grey[16],colorNeutralBackground3Pressed:grey[4],colorNeutralBackground3Selected:grey[14],colorNeutralBackground4:grey[4],colorNeutralBackground4Hover:grey[12],colorNeutralBackground4Pressed:black,colorNeutralBackground4Selected:grey[10],colorNeutralBackground5:black,colorNeutralBackground5Hover:grey[8],colorNeutralBackground5Pressed:grey[2],colorNeutralBackground5Selected:grey[6],colorNeutralBackground6:grey[20],colorNeutralBackgroundInverted:white,colorNeutralBackgroundStatic:grey[24],colorNeutralBackgroundAlpha:grey10Alpha[50],colorNeutralBackgroundAlpha2:grey12Alpha[70],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:grey[22],colorSubtleBackgroundPressed:grey[18],colorSubtleBackgroundSelected:grey[20],colorSubtleBackgroundLightAlphaHover:grey14Alpha[80],colorSubtleBackgroundLightAlphaPressed:grey14Alpha[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:blackAlpha[10],colorSubtleBackgroundInvertedPressed:blackAlpha[30],colorSubtleBackgroundInvertedSelected:blackAlpha[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:grey[8],colorNeutralBackgroundInvertedDisabled:whiteAlpha[10],colorNeutralStencil1:grey[34],colorNeutralStencil2:grey[20],colorNeutralStencil1Alpha:whiteAlpha[10],colorNeutralStencil2Alpha:whiteAlpha[5],colorBackgroundOverlay:blackAlpha[50],colorScrollbarOverlay:whiteAlpha[60],colorBrandBackground:eo[70],colorBrandBackgroundHover:eo[80],colorBrandBackgroundPressed:eo[40],colorBrandBackgroundSelected:eo[60],colorCompoundBrandBackground:eo[100],colorCompoundBrandBackgroundHover:eo[110],colorCompoundBrandBackgroundPressed:eo[90],colorBrandBackgroundStatic:eo[80],colorBrandBackground2:eo[20],colorBrandBackground2Hover:eo[40],colorBrandBackground2Pressed:eo[10],colorBrandBackgroundInverted:white,colorBrandBackgroundInvertedHover:eo[160],colorBrandBackgroundInvertedPressed:eo[140],colorBrandBackgroundInvertedSelected:eo[150],colorNeutralStrokeAccessible:grey[68],colorNeutralStrokeAccessibleHover:grey[74],colorNeutralStrokeAccessiblePressed:grey[70],colorNeutralStrokeAccessibleSelected:eo[100],colorNeutralStroke1:grey[40],colorNeutralStroke1Hover:grey[46],colorNeutralStroke1Pressed:grey[42],colorNeutralStroke1Selected:grey[44],colorNeutralStroke2:grey[32],colorNeutralStroke3:grey[24],colorNeutralStrokeSubtle:grey[4],colorNeutralStrokeOnBrand:grey[16],colorNeutralStrokeOnBrand2:white,colorNeutralStrokeOnBrand2Hover:white,colorNeutralStrokeOnBrand2Pressed:white,colorNeutralStrokeOnBrand2Selected:white,colorBrandStroke1:eo[100],colorBrandStroke2:eo[50],colorBrandStroke2Hover:eo[50],colorBrandStroke2Pressed:eo[30],colorBrandStroke2Contrast:eo[50],colorCompoundBrandStroke:eo[100],colorCompoundBrandStrokeHover:eo[110],colorCompoundBrandStrokePressed:eo[90],colorNeutralStrokeDisabled:grey[26],colorNeutralStrokeInvertedDisabled:whiteAlpha[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:whiteAlpha[10],colorNeutralStrokeAlpha2:whiteAlpha[20],colorStrokeFocus1:black,colorStrokeFocus2:white,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)"}),createDarkTheme=eo=>{const to=generateColorTokens(eo);return{...borderRadius,...fontSizes,...lineHeights,...fontFamilies,...fontWeights,...strokeWidths,...horizontalSpacings,...verticalSpacings,...durations,...curves,...to,...colorPaletteTokens,...colorStatusTokens,...createShadowTokens(to.colorNeutralShadowAmbient,to.colorNeutralShadowKey),...createShadowTokens(to.colorBrandShadowAmbient,to.colorBrandShadowKey,"Brand")}},webDarkTheme=createDarkTheme(brandWeb),fluentProviderClassNames={root:"fui-FluentProvider"},useStyles$C=__styles$1({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);}"]}),useFluentProviderStyles_unstable=eo=>{const to=useRenderer(),ro=useStyles$C({dir:eo.dir,renderer:to});return eo.root.className=mergeClasses(fluentProviderClassNames.root,eo.themeClassName,ro.root,eo.root.className),eo},useInsertionEffect$1=reactExports.useInsertionEffect?reactExports.useInsertionEffect:useIsomorphicLayoutEffect$1,createStyleTag=(eo,to)=>{if(!eo)return;const ro=eo.createElement("style");return Object.keys(to).forEach(no=>{ro.setAttribute(no,to[no])}),eo.head.appendChild(ro),ro},insertSheet=(eo,to)=>{const ro=eo.sheet;ro&&(ro.cssRules.length>0&&ro.deleteRule(0),ro.insertRule(to,0))},useFluentProviderThemeStyleTag=eo=>{const{targetDocument:to,theme:ro,rendererAttributes:no}=eo,oo=reactExports.useRef(),io=useId$1(fluentProviderClassNames.root),so=no,ao=reactExports.useMemo(()=>createCSSRuleFromTheme(`.${io}`,ro),[ro,io]);return useHandleSSRStyleElements(to,io),useInsertionEffect$1(()=>{const lo=to==null?void 0:to.getElementById(io);return lo?oo.current=lo:(oo.current=createStyleTag(to,{...so,id:io}),oo.current&&insertSheet(oo.current,ao)),()=>{var uo;(uo=oo.current)===null||uo===void 0||uo.remove()}},[io,to,ao,so]),{styleTagId:io,rule:ao}};function useHandleSSRStyleElements(eo,to){reactExports.useState(()=>{if(!eo)return;const ro=eo.getElementById(to);ro&&eo.head.append(ro)})}const EMPTY_OBJECT={},useFluentProvider_unstable=(eo,to)=>{const ro=useFluent(),no=useTheme(),oo=useOverrides(),io=reactExports.useContext(CustomStyleHooksContext)||EMPTY_OBJECT,{applyStylesToPortals:so=!0,customStyleHooks_unstable:ao,dir:lo=ro.dir,targetDocument:uo=ro.targetDocument,theme:co,overrides_unstable:fo={}}=eo,ho=shallowMerge(no,co),po=shallowMerge(oo,fo),go=shallowMerge(io,ao),vo=useRenderer();var bo;const{styleTagId:xo,rule:_o}=useFluentProviderThemeStyleTag({theme:ho,targetDocument:uo,rendererAttributes:(bo=vo.styleElementAttributes)!==null&&bo!==void 0?bo:{}});return{applyStylesToPortals:so,customStyleHooks_unstable:go,dir:lo,targetDocument:uo,theme:ho,overrides_unstable:po,themeClassName:xo,components:{root:"div"},root:always(getIntrinsicElementProps("div",{...eo,dir:lo,ref:useMergedRefs$1(to,useFocusVisible({targetDocument:uo}))}),{elementType:"div"}),serverStyleProps:{cssRule:_o,attributes:{...vo.styleElementAttributes,id:xo}}}};function shallowMerge(eo,to){return eo&&to?{...eo,...to}:eo||to}function useTheme(){return reactExports.useContext(ThemeContext$2)}function useFluentProviderContextValues_unstable(eo){const{applyStylesToPortals:to,customStyleHooks_unstable:ro,dir:no,root:oo,targetDocument:io,theme:so,themeClassName:ao,overrides_unstable:lo}=eo,uo=reactExports.useMemo(()=>({dir:no,targetDocument:io}),[no,io]),[co]=reactExports.useState(()=>({})),fo=reactExports.useMemo(()=>({textDirection:no}),[no]);return{customStyleHooks_unstable:ro,overrides_unstable:lo,provider:uo,textDirection:no,iconDirection:fo,tooltip:co,theme:so,themeClassName:to?oo.className:ao}}const FluentProvider=reactExports.forwardRef((eo,to)=>{const ro=useFluentProvider_unstable(eo,to);useFluentProviderStyles_unstable(ro);const no=useFluentProviderContextValues_unstable(ro);return renderFluentProvider_unstable(ro,no)});FluentProvider.displayName="FluentProvider";const createProvider=eo=>ro=>{const no=reactExports.useRef(ro.value),oo=reactExports.useRef(0),io=reactExports.useRef();return io.current||(io.current={value:no,version:oo,listeners:[]}),useIsomorphicLayoutEffect$1(()=>{no.current=ro.value,oo.current+=1,schedulerExports.unstable_runWithPriority(schedulerExports.unstable_NormalPriority,()=>{io.current.listeners.forEach(so=>{so([oo.current,ro.value])})})},[ro.value]),reactExports.createElement(eo,{value:io.current},ro.children)},createContext=eo=>{const to=reactExports.createContext({value:{current:eo},version:{current:-1},listeners:[]});return to.Provider=createProvider(to.Provider),delete to.Consumer,to},useContextSelector=(eo,to)=>{const ro=reactExports.useContext(eo),{value:{current:no},version:{current:oo},listeners:io}=ro,so=to(no),[ao,lo]=reactExports.useReducer((uo,co)=>{if(!co)return[no,so];if(co[0]<=oo)return objectIs(uo[1],so)?uo:[no,so];try{if(objectIs(uo[0],co[1]))return uo;const fo=to(co[1]);return objectIs(uo[1],fo)?uo:[co[1],fo]}catch{}return[uo[0],uo[1]]},[no,so]);return objectIs(ao[1],so)||lo(void 0),useIsomorphicLayoutEffect$1(()=>(io.push(lo),()=>{const uo=io.indexOf(lo);io.splice(uo,1)}),[io]),ao[1]};function is$3(eo,to){return eo===to&&(eo!==0||1/eo===1/to)||eo!==eo&&to!==to}const objectIs=typeof Object.is=="function"?Object.is:is$3;function useHasParentContext(eo){const to=reactExports.useContext(eo);return to.version?to.version.current!==-1:!1}const AccordionContext=createContext(void 0),accordionContextDefaultValue={openItems:[],collapsible:!1,multiple:!1,navigation:void 0,requestToggle(){}},{Provider:AccordionProvider}=AccordionContext,useAccordionContext_unstable=eo=>useContextSelector(AccordionContext,(to=accordionContextDefaultValue)=>eo(to)),renderAccordion_unstable=(eo,to)=>jsx$1(eo.root,{children:jsx$1(AccordionProvider,{value:to.accordion,children:eo.root.children})}),useAccordion_unstable=(eo,to)=>{const{openItems:ro,defaultOpenItems:no,multiple:oo=!1,collapsible:io=!1,onToggle:so,navigation:ao}=eo,[lo,uo]=useControllableState({state:reactExports.useMemo(()=>normalizeValues(ro),[ro]),defaultState:()=>initializeUncontrolledOpenItems({defaultOpenItems:no,multiple:oo}),initialState:[]}),co=useArrowNavigationGroup({circular:ao==="circular",tabbable:!0}),fo=useEventCallback$3(ho=>{const po=updateOpenItems(ho.value,lo,oo,io);so==null||so(ho.event,{value:ho.value,openItems:po}),uo(po)});return{collapsible:io,multiple:oo,navigation:ao,openItems:lo,requestToggle:fo,components:{root:"div"},root:always(getIntrinsicElementProps("div",{...eo,...ao?co:void 0,ref:to}),{elementType:"div"})}};function initializeUncontrolledOpenItems({defaultOpenItems:eo,multiple:to}){return eo!==void 0?Array.isArray(eo)?to?eo:[eo[0]]:[eo]:[]}function updateOpenItems(eo,to,ro,no){if(ro)if(to.includes(eo)){if(to.length>1||no)return to.filter(oo=>oo!==eo)}else return[...to,eo].sort();else return to[0]===eo&&no?[]:[eo];return to}function normalizeValues(eo){if(eo!==void 0)return Array.isArray(eo)?eo:[eo]}function useAccordionContextValues_unstable(eo){const{navigation:to,openItems:ro,requestToggle:no,multiple:oo,collapsible:io}=eo;return{accordion:{navigation:to,openItems:ro,requestToggle:no,collapsible:io,multiple:oo}}}const accordionClassNames={root:"fui-Accordion"},useAccordionStyles_unstable=eo=>(eo.root.className=mergeClasses(accordionClassNames.root,eo.root.className),eo),Accordion=reactExports.forwardRef((eo,to)=>{const ro=useAccordion_unstable(eo,to),no=useAccordionContextValues_unstable(ro);return useAccordionStyles_unstable(ro),useCustomStyleHook("useAccordionStyles_unstable")(ro),renderAccordion_unstable(ro,no)});Accordion.displayName="Accordion";const useAccordionItem_unstable=(eo,to)=>{const{value:ro,disabled:no=!1}=eo,oo=useAccordionContext_unstable(ao=>ao.requestToggle),io=useAccordionContext_unstable(ao=>ao.openItems.includes(ro)),so=useEventCallback$3(ao=>oo({event:ao,value:ro}));return{open:io,value:ro,disabled:no,onHeaderClick:so,components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:to,...eo}),{elementType:"div"})}};function useAccordionItemContextValues_unstable(eo){const{disabled:to,open:ro,value:no,onHeaderClick:oo}=eo;return{accordionItem:reactExports.useMemo(()=>({disabled:to,open:ro,value:no,onHeaderClick:oo}),[to,ro,no,oo])}}const AccordionItemContext=reactExports.createContext(void 0),accordionItemContextDefaultValue={open:!1,disabled:!1,value:void 0,onHeaderClick(){}},{Provider:AccordionItemProvider}=AccordionItemContext,useAccordionItemContext_unstable=()=>{var eo;return(eo=reactExports.useContext(AccordionItemContext))!==null&&eo!==void 0?eo:accordionItemContextDefaultValue},renderAccordionItem_unstable=(eo,to)=>jsx$1(eo.root,{children:jsx$1(AccordionItemProvider,{value:to.accordionItem,children:eo.root.children})}),accordionItemClassNames={root:"fui-AccordionItem"},useAccordionItemStyles_unstable=eo=>(eo.root.className=mergeClasses(accordionItemClassNames.root,eo.root.className),eo),AccordionItem=reactExports.forwardRef((eo,to)=>{const ro=useAccordionItem_unstable(eo,to),no=useAccordionItemContextValues_unstable(ro);return useAccordionItemStyles_unstable(ro),useCustomStyleHook("useAccordionItemStyles_unstable")(ro),renderAccordionItem_unstable(ro,no)});AccordionItem.displayName="AccordionItem";const Enter="Enter",Space=" ",Tab$2="Tab",ArrowDown="ArrowDown",ArrowLeft="ArrowLeft",ArrowRight="ArrowRight",ArrowUp="ArrowUp",End="End",Home="Home",PageDown="PageDown",PageUp="PageUp",Escape$1="Escape";function useARIAButtonProps(eo,to){const{disabled:ro,disabledFocusable:no=!1,["aria-disabled"]:oo,onClick:io,onKeyDown:so,onKeyUp:ao,...lo}=to??{},uo=typeof oo=="string"?oo==="true":oo,co=ro||no||uo,fo=useEventCallback$3(go=>{co?(go.preventDefault(),go.stopPropagation()):io==null||io(go)}),ho=useEventCallback$3(go=>{if(so==null||so(go),go.isDefaultPrevented())return;const vo=go.key;if(co&&(vo===Enter||vo===Space)){go.preventDefault(),go.stopPropagation();return}if(vo===Space){go.preventDefault();return}else vo===Enter&&(go.preventDefault(),go.currentTarget.click())}),po=useEventCallback$3(go=>{if(ao==null||ao(go),go.isDefaultPrevented())return;const vo=go.key;if(co&&(vo===Enter||vo===Space)){go.preventDefault(),go.stopPropagation();return}vo===Space&&(go.preventDefault(),go.currentTarget.click())});if(eo==="button"||eo===void 0)return{...lo,disabled:ro&&!no,"aria-disabled":no?!0:uo,onClick:no?void 0:fo,onKeyUp:no?void 0:ao,onKeyDown:no?void 0:so};{const go={role:"button",tabIndex:ro&&!no?void 0:0,...lo,onClick:fo,onKeyUp:po,onKeyDown:ho,"aria-disabled":ro||no||uo};return eo==="a"&&co&&(go.href=void 0),go}}const useAccordionHeader_unstable=(eo,to)=>{const{icon:ro,button:no,expandIcon:oo,inline:io=!1,size:so="medium",expandIconPosition:ao="start"}=eo,{value:lo,disabled:uo,open:co}=useAccordionItemContext_unstable(),fo=useAccordionContext_unstable(bo=>bo.requestToggle),ho=useAccordionContext_unstable(bo=>!bo.collapsible&&bo.openItems.length===1&&co),{dir:po}=useFluent();let go;ao==="end"?go=co?-90:90:go=co?90:po!=="rtl"?0:180;const vo=always(no,{elementType:"button",defaultProps:{disabled:uo,disabledFocusable:ho,"aria-expanded":co,type:"button"}});return vo.onClick=useEventCallback$3(bo=>{if(isResolvedShorthand(no)){var xo;(xo=no.onClick)===null||xo===void 0||xo.call(no,bo)}bo.defaultPrevented||fo({value:lo,event:bo})}),{disabled:uo,open:co,size:so,inline:io,expandIconPosition:ao,components:{root:"div",button:"button",expandIcon:"span",icon:"div"},root:always(getIntrinsicElementProps("div",{ref:to,...eo}),{elementType:"div"}),icon:optional(ro,{elementType:"div"}),expandIcon:optional(oo,{renderByDefault:!0,defaultProps:{children:reactExports.createElement(ChevronRightRegular,{style:{transform:`rotate(${go}deg)`}}),"aria-hidden":!0},elementType:"span"}),button:useARIAButtonProps(vo.as,vo)}},AccordionHeaderContext=reactExports.createContext(void 0),{Provider:AccordionHeaderProvider}=AccordionHeaderContext,renderAccordionHeader_unstable=(eo,to)=>jsx$1(AccordionHeaderProvider,{value:to.accordionHeader,children:jsx$1(eo.root,{children:jsxs(eo.button,{children:[eo.expandIconPosition==="start"&&eo.expandIcon&&jsx$1(eo.expandIcon,{}),eo.icon&&jsx$1(eo.icon,{}),eo.root.children,eo.expandIconPosition==="end"&&eo.expandIcon&&jsx$1(eo.expandIcon,{})]})})}),accordionHeaderClassNames={root:"fui-AccordionHeader",button:"fui-AccordionHeader__button",expandIcon:"fui-AccordionHeader__expandIcon",icon:"fui-AccordionHeader__icon"},useStyles$B=__styles({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)"}]]}),useAccordionHeaderStyles_unstable=eo=>{const to=useStyles$B();return eo.root.className=mergeClasses(accordionHeaderClassNames.root,to.root,eo.inline&&to.rootInline,eo.disabled&&to.rootDisabled,eo.root.className),eo.button.className=mergeClasses(accordionHeaderClassNames.button,to.resetButton,to.button,to.focusIndicator,eo.expandIconPosition==="end"&&!eo.icon&&to.buttonExpandIconEndNoIcon,eo.expandIconPosition==="end"&&to.buttonExpandIconEnd,eo.inline&&to.buttonInline,eo.size==="small"&&to.buttonSmall,eo.size==="large"&&to.buttonLarge,eo.size==="extra-large"&&to.buttonExtraLarge,eo.disabled&&to.buttonDisabled,eo.button.className),eo.expandIcon&&(eo.expandIcon.className=mergeClasses(accordionHeaderClassNames.expandIcon,to.expandIcon,eo.expandIconPosition==="start"&&to.expandIconStart,eo.expandIconPosition==="end"&&to.expandIconEnd,eo.expandIcon.className)),eo.icon&&(eo.icon.className=mergeClasses(accordionHeaderClassNames.icon,to.icon,eo.icon.className)),eo};function useAccordionHeaderContextValues_unstable(eo){const{disabled:to,expandIconPosition:ro,open:no,size:oo}=eo;return{accordionHeader:reactExports.useMemo(()=>({disabled:to,expandIconPosition:ro,open:no,size:oo}),[to,ro,no,oo])}}const AccordionHeader=reactExports.forwardRef((eo,to)=>{const ro=useAccordionHeader_unstable(eo,to),no=useAccordionHeaderContextValues_unstable(ro);return useAccordionHeaderStyles_unstable(ro),useCustomStyleHook("useAccordionHeaderStyles_unstable")(ro),renderAccordionHeader_unstable(ro,no)});AccordionHeader.displayName="AccordionHeader";const useAccordionPanel_unstable=(eo,to)=>{const{open:ro}=useAccordionItemContext_unstable(),no=useTabsterAttributes({focusable:{excludeFromMover:!0}}),oo=useAccordionContext_unstable(io=>io.navigation);return{open:ro,components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:to,...eo,...oo&&no}),{elementType:"div"})}},renderAccordionPanel_unstable=eo=>eo.open?jsx$1(eo.root,{children:eo.root.children}):null,accordionPanelClassNames={root:"fui-AccordionPanel"},useStyles$A=__styles({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;}"]}),useAccordionPanelStyles_unstable=eo=>{const to=useStyles$A();return eo.root.className=mergeClasses(accordionPanelClassNames.root,to.root,eo.root.className),eo},AccordionPanel=reactExports.forwardRef((eo,to)=>{const ro=useAccordionPanel_unstable(eo,to);return useAccordionPanelStyles_unstable(ro),useCustomStyleHook("useAccordionPanelStyles_unstable")(ro),renderAccordionPanel_unstable(ro)});AccordionPanel.displayName="AccordionPanel";const useBadge_unstable=(eo,to)=>{const{shape:ro="circular",size:no="medium",iconPosition:oo="before",appearance:io="filled",color:so="brand"}=eo;return{shape:ro,size:no,iconPosition:oo,appearance:io,color:so,components:{root:"div",icon:"span"},root:always(getIntrinsicElementProps("div",{ref:to,...eo}),{elementType:"div"}),icon:optional(eo.icon,{elementType:"span"})}},badgeClassNames={root:"fui-Badge",icon:"fui-Badge__icon"},useRootClassName$1=__resetStyles("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;}']),useRootStyles$6=__styles({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);}"]}),useIconRootClassName=__resetStyles("rttl5z0",null,[".rttl5z0{display:flex;line-height:1;margin:0 calc(-1 * var(--spacingHorizontalXXS));font-size:12px;}"]),useIconStyles$4=__styles({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;}"]}),useBadgeStyles_unstable=eo=>{const to=useRootClassName$1(),ro=useRootStyles$6(),no=eo.size==="small"||eo.size==="extra-small"||eo.size==="tiny";eo.root.className=mergeClasses(badgeClassNames.root,to,no&&ro.fontSmallToTiny,ro[eo.size],ro[eo.shape],eo.shape==="rounded"&&no&&ro.roundedSmallToTiny,eo.appearance==="ghost"&&ro.borderGhost,ro[eo.appearance],ro[`${eo.appearance}-${eo.color}`],eo.root.className);const oo=useIconRootClassName(),io=useIconStyles$4();if(eo.icon){let so;eo.root.children&&(eo.size==="extra-large"?so=eo.iconPosition==="after"?io.afterTextXL:io.beforeTextXL:so=eo.iconPosition==="after"?io.afterText:io.beforeText),eo.icon.className=mergeClasses(badgeClassNames.icon,oo,so,io[eo.size],eo.icon.className)}return eo},renderBadge_unstable=eo=>jsxs(eo.root,{children:[eo.iconPosition==="before"&&eo.icon&&jsx$1(eo.icon,{}),eo.root.children,eo.iconPosition==="after"&&eo.icon&&jsx$1(eo.icon,{})]}),Badge$2=reactExports.forwardRef((eo,to)=>{const ro=useBadge_unstable(eo,to);return useBadgeStyles_unstable(ro),useCustomStyleHook("useBadgeStyles_unstable")(ro),renderBadge_unstable(ro)});Badge$2.displayName="Badge";const useCounterBadge_unstable=(eo,to)=>{const{shape:ro="circular",appearance:no="filled",showZero:oo=!1,overflowCount:io=99,count:so=0,dot:ao=!1}=eo,lo={...useBadge_unstable(eo,to),shape:ro,appearance:no,showZero:oo,count:so,dot:ao};return(so!==0||oo)&&!ao&&!lo.root.children&&(lo.root.children=so>io?`${io}+`:`${so}`),lo},counterBadgeClassNames={root:"fui-CounterBadge",icon:"fui-CounterBadge__icon"},useStyles$z=__styles({dot:{Bf4jedk:"fgfkb25",a9b677:"f16dn6v3",Bqenvij:"f3mu39s",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"]},hide:{mc9l5x:"fjseox"}},{d:[".fgfkb25{min-width:auto;}",".f16dn6v3{width:6px;}",".f3mu39s{height:6px;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".fjseox{display:none;}"]}),useCounterBadgeStyles_unstable=eo=>{const to=useStyles$z();return eo.root.className=mergeClasses(counterBadgeClassNames.root,eo.dot&&to.dot,!eo.root.children&&!eo.dot&&to.hide,eo.root.className),eo.icon&&(eo.icon.className=mergeClasses(counterBadgeClassNames.icon,eo.icon.className)),useBadgeStyles_unstable(eo)},CounterBadge=reactExports.forwardRef((eo,to)=>{const ro=useCounterBadge_unstable(eo,to);return useCounterBadgeStyles_unstable(ro),useCustomStyleHook("useCounterBadgeStyles_unstable")(ro),renderBadge_unstable(ro)});CounterBadge.displayName="CounterBadge";function createVirtualElementFromClick(eo){const to=eo.clientX,ro=eo.clientY,no=to+1,oo=ro+1;function io(){return{left:to,top:ro,right:no,bottom:oo,x:to,y:ro,height:1,width:1}}return{getBoundingClientRect:io}}const DATA_POSITIONING_INTERSECTING="data-popper-is-intersecting",DATA_POSITIONING_ESCAPED="data-popper-escaped",DATA_POSITIONING_HIDDEN="data-popper-reference-hidden",DATA_POSITIONING_PLACEMENT="data-popper-placement",sides=["top","right","bottom","left"],min$2=Math.min,max$2=Math.max,round$1=Math.round,createCoords=eo=>({x:eo,y:eo}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"},oppositeAlignmentMap={start:"end",end:"start"};function clamp$2(eo,to,ro){return max$2(eo,min$2(to,ro))}function evaluate(eo,to){return typeof eo=="function"?eo(to):eo}function getSide(eo){return eo.split("-")[0]}function getAlignment(eo){return eo.split("-")[1]}function getOppositeAxis(eo){return eo==="x"?"y":"x"}function getAxisLength(eo){return eo==="y"?"height":"width"}function getSideAxis(eo){return["top","bottom"].includes(getSide(eo))?"y":"x"}function getAlignmentAxis(eo){return getOppositeAxis(getSideAxis(eo))}function getAlignmentSides(eo,to,ro){ro===void 0&&(ro=!1);const no=getAlignment(eo),oo=getAlignmentAxis(eo),io=getAxisLength(oo);let so=oo==="x"?no===(ro?"end":"start")?"right":"left":no==="start"?"bottom":"top";return to.reference[io]>to.floating[io]&&(so=getOppositePlacement(so)),[so,getOppositePlacement(so)]}function getExpandedPlacements(eo){const to=getOppositePlacement(eo);return[getOppositeAlignmentPlacement(eo),to,getOppositeAlignmentPlacement(to)]}function getOppositeAlignmentPlacement(eo){return eo.replace(/start|end/g,to=>oppositeAlignmentMap[to])}function getSideList(eo,to,ro){const no=["left","right"],oo=["right","left"],io=["top","bottom"],so=["bottom","top"];switch(eo){case"top":case"bottom":return ro?to?oo:no:to?no:oo;case"left":case"right":return to?io:so;default:return[]}}function getOppositeAxisPlacements(eo,to,ro,no){const oo=getAlignment(eo);let io=getSideList(getSide(eo),ro==="start",no);return oo&&(io=io.map(so=>so+"-"+oo),to&&(io=io.concat(io.map(getOppositeAlignmentPlacement)))),io}function getOppositePlacement(eo){return eo.replace(/left|right|bottom|top/g,to=>oppositeSideMap[to])}function expandPaddingObject(eo){return{top:0,right:0,bottom:0,left:0,...eo}}function getPaddingObject(eo){return typeof eo!="number"?expandPaddingObject(eo):{top:eo,right:eo,bottom:eo,left:eo}}function rectToClientRect(eo){return{...eo,top:eo.y,left:eo.x,right:eo.x+eo.width,bottom:eo.y+eo.height}}function computeCoordsFromPlacement(eo,to,ro){let{reference:no,floating:oo}=eo;const io=getSideAxis(to),so=getAlignmentAxis(to),ao=getAxisLength(so),lo=getSide(to),uo=io==="y",co=no.x+no.width/2-oo.width/2,fo=no.y+no.height/2-oo.height/2,ho=no[ao]/2-oo[ao]/2;let po;switch(lo){case"top":po={x:co,y:no.y-oo.height};break;case"bottom":po={x:co,y:no.y+no.height};break;case"right":po={x:no.x+no.width,y:fo};break;case"left":po={x:no.x-oo.width,y:fo};break;default:po={x:no.x,y:no.y}}switch(getAlignment(to)){case"start":po[so]-=ho*(ro&&uo?-1:1);break;case"end":po[so]+=ho*(ro&&uo?-1:1);break}return po}const computePosition$1=async(eo,to,ro)=>{const{placement:no="bottom",strategy:oo="absolute",middleware:io=[],platform:so}=ro,ao=io.filter(Boolean),lo=await(so.isRTL==null?void 0:so.isRTL(to));let uo=await so.getElementRects({reference:eo,floating:to,strategy:oo}),{x:co,y:fo}=computeCoordsFromPlacement(uo,no,lo),ho=no,po={},go=0;for(let vo=0;vo({name:"arrow",options:eo,async fn(to){const{x:ro,y:no,placement:oo,rects:io,platform:so,elements:ao,middlewareData:lo}=to,{element:uo,padding:co=0}=evaluate(eo,to)||{};if(uo==null)return{};const fo=getPaddingObject(co),ho={x:ro,y:no},po=getAlignmentAxis(oo),go=getAxisLength(po),vo=await so.getDimensions(uo),bo=po==="y",xo=bo?"top":"left",_o=bo?"bottom":"right",Eo=bo?"clientHeight":"clientWidth",So=io.reference[go]+io.reference[po]-ho[po]-io.floating[go],To=ho[po]-io.reference[po],wo=await(so.getOffsetParent==null?void 0:so.getOffsetParent(uo));let Co=wo?wo[Eo]:0;(!Co||!await(so.isElement==null?void 0:so.isElement(wo)))&&(Co=ao.floating[Eo]||io.floating[go]);const Oo=So/2-To/2,Ao=Co/2-vo[go]/2-1,Ro=min$2(fo[xo],Ao),No=min$2(fo[_o],Ao),Mo=Ro,Do=Co-vo[go]-No,jo=Co/2-vo[go]/2+Oo,Fo=clamp$2(Mo,jo,Do),$o=!lo.arrow&&getAlignment(oo)!=null&&jo!=Fo&&io.reference[go]/2-(joMo<=0)){var Ao,Ro;const Mo=(((Ao=io.flip)==null?void 0:Ao.index)||0)+1,Do=To[Mo];if(Do)return{data:{index:Mo,overflows:Oo},reset:{placement:Do}};let jo=(Ro=Oo.filter(Fo=>Fo.overflows[0]<=0).sort((Fo,$o)=>Fo.overflows[1]-$o.overflows[1])[0])==null?void 0:Ro.placement;if(!jo)switch(po){case"bestFit":{var No;const Fo=(No=Oo.map($o=>[$o.placement,$o.overflows.filter(Lo=>Lo>0).reduce((Lo,Ho)=>Lo+Ho,0)]).sort(($o,Lo)=>$o[1]-Lo[1])[0])==null?void 0:No[0];Fo&&(jo=Fo);break}case"initialPlacement":jo=ao;break}if(oo!==jo)return{reset:{placement:jo}}}return{}}}};function getSideOffsets(eo,to){return{top:eo.top-to.height,right:eo.right-to.width,bottom:eo.bottom-to.height,left:eo.left-to.width}}function isAnySideFullyClipped(eo){return sides.some(to=>eo[to]>=0)}const hide=function(eo){return eo===void 0&&(eo={}),{name:"hide",options:eo,async fn(to){const{rects:ro}=to,{strategy:no="referenceHidden",...oo}=evaluate(eo,to);switch(no){case"referenceHidden":{const io=await detectOverflow(to,{...oo,elementContext:"reference"}),so=getSideOffsets(io,ro.reference);return{data:{referenceHiddenOffsets:so,referenceHidden:isAnySideFullyClipped(so)}}}case"escaped":{const io=await detectOverflow(to,{...oo,altBoundary:!0}),so=getSideOffsets(io,ro.floating);return{data:{escapedOffsets:so,escaped:isAnySideFullyClipped(so)}}}default:return{}}}}};async function convertValueToCoords(eo,to){const{placement:ro,platform:no,elements:oo}=eo,io=await(no.isRTL==null?void 0:no.isRTL(oo.floating)),so=getSide(ro),ao=getAlignment(ro),lo=getSideAxis(ro)==="y",uo=["left","top"].includes(so)?-1:1,co=io&&lo?-1:1,fo=evaluate(to,eo);let{mainAxis:ho,crossAxis:po,alignmentAxis:go}=typeof fo=="number"?{mainAxis:fo,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...fo};return ao&&typeof go=="number"&&(po=ao==="end"?go*-1:go),lo?{x:po*co,y:ho*uo}:{x:ho*uo,y:po*co}}const offset$1=function(eo){return eo===void 0&&(eo=0),{name:"offset",options:eo,async fn(to){var ro,no;const{x:oo,y:io,placement:so,middlewareData:ao}=to,lo=await convertValueToCoords(to,eo);return so===((ro=ao.offset)==null?void 0:ro.placement)&&(no=ao.arrow)!=null&&no.alignmentOffset?{}:{x:oo+lo.x,y:io+lo.y,data:{...lo,placement:so}}}}},shift$2=function(eo){return eo===void 0&&(eo={}),{name:"shift",options:eo,async fn(to){const{x:ro,y:no,placement:oo}=to,{mainAxis:io=!0,crossAxis:so=!1,limiter:ao={fn:bo=>{let{x:xo,y:_o}=bo;return{x:xo,y:_o}}},...lo}=evaluate(eo,to),uo={x:ro,y:no},co=await detectOverflow(to,lo),fo=getSideAxis(getSide(oo)),ho=getOppositeAxis(fo);let po=uo[ho],go=uo[fo];if(io){const bo=ho==="y"?"top":"left",xo=ho==="y"?"bottom":"right",_o=po+co[bo],Eo=po-co[xo];po=clamp$2(_o,po,Eo)}if(so){const bo=fo==="y"?"top":"left",xo=fo==="y"?"bottom":"right",_o=go+co[bo],Eo=go-co[xo];go=clamp$2(_o,go,Eo)}const vo=ao.fn({...to,[ho]:po,[fo]:go});return{...vo,data:{x:vo.x-ro,y:vo.y-no}}}}},limitShift=function(eo){return eo===void 0&&(eo={}),{options:eo,fn(to){const{x:ro,y:no,placement:oo,rects:io,middlewareData:so}=to,{offset:ao=0,mainAxis:lo=!0,crossAxis:uo=!0}=evaluate(eo,to),co={x:ro,y:no},fo=getSideAxis(oo),ho=getOppositeAxis(fo);let po=co[ho],go=co[fo];const vo=evaluate(ao,to),bo=typeof vo=="number"?{mainAxis:vo,crossAxis:0}:{mainAxis:0,crossAxis:0,...vo};if(lo){const Eo=ho==="y"?"height":"width",So=io.reference[ho]-io.floating[Eo]+bo.mainAxis,To=io.reference[ho]+io.reference[Eo]-bo.mainAxis;poTo&&(po=To)}if(uo){var xo,_o;const Eo=ho==="y"?"width":"height",So=["top","left"].includes(getSide(oo)),To=io.reference[fo]-io.floating[Eo]+(So&&((xo=so.offset)==null?void 0:xo[fo])||0)+(So?0:bo.crossAxis),wo=io.reference[fo]+io.reference[Eo]+(So?0:((_o=so.offset)==null?void 0:_o[fo])||0)-(So?bo.crossAxis:0);gowo&&(go=wo)}return{[ho]:po,[fo]:go}}}},size=function(eo){return eo===void 0&&(eo={}),{name:"size",options:eo,async fn(to){const{placement:ro,rects:no,platform:oo,elements:io}=to,{apply:so=()=>{},...ao}=evaluate(eo,to),lo=await detectOverflow(to,ao),uo=getSide(ro),co=getAlignment(ro),fo=getSideAxis(ro)==="y",{width:ho,height:po}=no.floating;let go,vo;uo==="top"||uo==="bottom"?(go=uo,vo=co===(await(oo.isRTL==null?void 0:oo.isRTL(io.floating))?"start":"end")?"left":"right"):(vo=uo,go=co==="end"?"top":"bottom");const bo=po-lo[go],xo=ho-lo[vo],_o=!to.middlewareData.shift;let Eo=bo,So=xo;if(fo){const wo=ho-lo.left-lo.right;So=co||_o?min$2(xo,wo):wo}else{const wo=po-lo.top-lo.bottom;Eo=co||_o?min$2(bo,wo):wo}if(_o&&!co){const wo=max$2(lo.left,0),Co=max$2(lo.right,0),Oo=max$2(lo.top,0),Ao=max$2(lo.bottom,0);fo?So=ho-2*(wo!==0||Co!==0?wo+Co:max$2(lo.left,lo.right)):Eo=po-2*(Oo!==0||Ao!==0?Oo+Ao:max$2(lo.top,lo.bottom))}await so({...to,availableWidth:So,availableHeight:Eo});const To=await oo.getDimensions(io.floating);return ho!==To.width||po!==To.height?{reset:{rects:!0}}:{}}}};function getNodeName(eo){return isNode(eo)?(eo.nodeName||"").toLowerCase():"#document"}function getWindow$1(eo){var to;return(eo==null||(to=eo.ownerDocument)==null?void 0:to.defaultView)||window}function getDocumentElement(eo){var to;return(to=(isNode(eo)?eo.ownerDocument:eo.document)||window.document)==null?void 0:to.documentElement}function isNode(eo){return eo instanceof Node||eo instanceof getWindow$1(eo).Node}function isElement$1(eo){return eo instanceof Element||eo instanceof getWindow$1(eo).Element}function isHTMLElement$4(eo){return eo instanceof HTMLElement||eo instanceof getWindow$1(eo).HTMLElement}function isShadowRoot(eo){return typeof ShadowRoot>"u"?!1:eo instanceof ShadowRoot||eo instanceof getWindow$1(eo).ShadowRoot}function isOverflowElement(eo){const{overflow:to,overflowX:ro,overflowY:no,display:oo}=getComputedStyle$1(eo);return/auto|scroll|overlay|hidden|clip/.test(to+no+ro)&&!["inline","contents"].includes(oo)}function isTableElement(eo){return["table","td","th"].includes(getNodeName(eo))}function isContainingBlock(eo){const to=isWebKit(),ro=getComputedStyle$1(eo);return ro.transform!=="none"||ro.perspective!=="none"||(ro.containerType?ro.containerType!=="normal":!1)||!to&&(ro.backdropFilter?ro.backdropFilter!=="none":!1)||!to&&(ro.filter?ro.filter!=="none":!1)||["transform","perspective","filter"].some(no=>(ro.willChange||"").includes(no))||["paint","layout","strict","content"].some(no=>(ro.contain||"").includes(no))}function getContainingBlock(eo){let to=getParentNode$1(eo);for(;isHTMLElement$4(to)&&!isLastTraversableNode(to);){if(isContainingBlock(to))return to;to=getParentNode$1(to)}return null}function isWebKit(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(eo){return["html","body","#document"].includes(getNodeName(eo))}function getComputedStyle$1(eo){return getWindow$1(eo).getComputedStyle(eo)}function getNodeScroll(eo){return isElement$1(eo)?{scrollLeft:eo.scrollLeft,scrollTop:eo.scrollTop}:{scrollLeft:eo.pageXOffset,scrollTop:eo.pageYOffset}}function getParentNode$1(eo){if(getNodeName(eo)==="html")return eo;const to=eo.assignedSlot||eo.parentNode||isShadowRoot(eo)&&eo.host||getDocumentElement(eo);return isShadowRoot(to)?to.host:to}function getNearestOverflowAncestor(eo){const to=getParentNode$1(eo);return isLastTraversableNode(to)?eo.ownerDocument?eo.ownerDocument.body:eo.body:isHTMLElement$4(to)&&isOverflowElement(to)?to:getNearestOverflowAncestor(to)}function getOverflowAncestors(eo,to,ro){var no;to===void 0&&(to=[]),ro===void 0&&(ro=!0);const oo=getNearestOverflowAncestor(eo),io=oo===((no=eo.ownerDocument)==null?void 0:no.body),so=getWindow$1(oo);return io?to.concat(so,so.visualViewport||[],isOverflowElement(oo)?oo:[],so.frameElement&&ro?getOverflowAncestors(so.frameElement):[]):to.concat(oo,getOverflowAncestors(oo,[],ro))}function getCssDimensions(eo){const to=getComputedStyle$1(eo);let ro=parseFloat(to.width)||0,no=parseFloat(to.height)||0;const oo=isHTMLElement$4(eo),io=oo?eo.offsetWidth:ro,so=oo?eo.offsetHeight:no,ao=round$1(ro)!==io||round$1(no)!==so;return ao&&(ro=io,no=so),{width:ro,height:no,$:ao}}function unwrapElement(eo){return isElement$1(eo)?eo:eo.contextElement}function getScale$1(eo){const to=unwrapElement(eo);if(!isHTMLElement$4(to))return createCoords(1);const ro=to.getBoundingClientRect(),{width:no,height:oo,$:io}=getCssDimensions(to);let so=(io?round$1(ro.width):ro.width)/no,ao=(io?round$1(ro.height):ro.height)/oo;return(!so||!Number.isFinite(so))&&(so=1),(!ao||!Number.isFinite(ao))&&(ao=1),{x:so,y:ao}}const noOffsets=createCoords(0);function getVisualOffsets(eo){const to=getWindow$1(eo);return!isWebKit()||!to.visualViewport?noOffsets:{x:to.visualViewport.offsetLeft,y:to.visualViewport.offsetTop}}function shouldAddVisualOffsets(eo,to,ro){return to===void 0&&(to=!1),!ro||to&&ro!==getWindow$1(eo)?!1:to}function getBoundingClientRect(eo,to,ro,no){to===void 0&&(to=!1),ro===void 0&&(ro=!1);const oo=eo.getBoundingClientRect(),io=unwrapElement(eo);let so=createCoords(1);to&&(no?isElement$1(no)&&(so=getScale$1(no)):so=getScale$1(eo));const ao=shouldAddVisualOffsets(io,ro,no)?getVisualOffsets(io):createCoords(0);let lo=(oo.left+ao.x)/so.x,uo=(oo.top+ao.y)/so.y,co=oo.width/so.x,fo=oo.height/so.y;if(io){const ho=getWindow$1(io),po=no&&isElement$1(no)?getWindow$1(no):no;let go=ho.frameElement;for(;go&&no&&po!==ho;){const vo=getScale$1(go),bo=go.getBoundingClientRect(),xo=getComputedStyle$1(go),_o=bo.left+(go.clientLeft+parseFloat(xo.paddingLeft))*vo.x,Eo=bo.top+(go.clientTop+parseFloat(xo.paddingTop))*vo.y;lo*=vo.x,uo*=vo.y,co*=vo.x,fo*=vo.y,lo+=_o,uo+=Eo,go=getWindow$1(go).frameElement}}return rectToClientRect({width:co,height:fo,x:lo,y:uo})}function convertOffsetParentRelativeRectToViewportRelativeRect(eo){let{rect:to,offsetParent:ro,strategy:no}=eo;const oo=isHTMLElement$4(ro),io=getDocumentElement(ro);if(ro===io)return to;let so={scrollLeft:0,scrollTop:0},ao=createCoords(1);const lo=createCoords(0);if((oo||!oo&&no!=="fixed")&&((getNodeName(ro)!=="body"||isOverflowElement(io))&&(so=getNodeScroll(ro)),isHTMLElement$4(ro))){const uo=getBoundingClientRect(ro);ao=getScale$1(ro),lo.x=uo.x+ro.clientLeft,lo.y=uo.y+ro.clientTop}return{width:to.width*ao.x,height:to.height*ao.y,x:to.x*ao.x-so.scrollLeft*ao.x+lo.x,y:to.y*ao.y-so.scrollTop*ao.y+lo.y}}function getClientRects(eo){return Array.from(eo.getClientRects())}function getWindowScrollBarX(eo){return getBoundingClientRect(getDocumentElement(eo)).left+getNodeScroll(eo).scrollLeft}function getDocumentRect(eo){const to=getDocumentElement(eo),ro=getNodeScroll(eo),no=eo.ownerDocument.body,oo=max$2(to.scrollWidth,to.clientWidth,no.scrollWidth,no.clientWidth),io=max$2(to.scrollHeight,to.clientHeight,no.scrollHeight,no.clientHeight);let so=-ro.scrollLeft+getWindowScrollBarX(eo);const ao=-ro.scrollTop;return getComputedStyle$1(no).direction==="rtl"&&(so+=max$2(to.clientWidth,no.clientWidth)-oo),{width:oo,height:io,x:so,y:ao}}function getViewportRect(eo,to){const ro=getWindow$1(eo),no=getDocumentElement(eo),oo=ro.visualViewport;let io=no.clientWidth,so=no.clientHeight,ao=0,lo=0;if(oo){io=oo.width,so=oo.height;const uo=isWebKit();(!uo||uo&&to==="fixed")&&(ao=oo.offsetLeft,lo=oo.offsetTop)}return{width:io,height:so,x:ao,y:lo}}function getInnerBoundingClientRect(eo,to){const ro=getBoundingClientRect(eo,!0,to==="fixed"),no=ro.top+eo.clientTop,oo=ro.left+eo.clientLeft,io=isHTMLElement$4(eo)?getScale$1(eo):createCoords(1),so=eo.clientWidth*io.x,ao=eo.clientHeight*io.y,lo=oo*io.x,uo=no*io.y;return{width:so,height:ao,x:lo,y:uo}}function getClientRectFromClippingAncestor(eo,to,ro){let no;if(to==="viewport")no=getViewportRect(eo,ro);else if(to==="document")no=getDocumentRect(getDocumentElement(eo));else if(isElement$1(to))no=getInnerBoundingClientRect(to,ro);else{const oo=getVisualOffsets(eo);no={...to,x:to.x-oo.x,y:to.y-oo.y}}return rectToClientRect(no)}function hasFixedPositionAncestor(eo,to){const ro=getParentNode$1(eo);return ro===to||!isElement$1(ro)||isLastTraversableNode(ro)?!1:getComputedStyle$1(ro).position==="fixed"||hasFixedPositionAncestor(ro,to)}function getClippingElementAncestors(eo,to){const ro=to.get(eo);if(ro)return ro;let no=getOverflowAncestors(eo,[],!1).filter(ao=>isElement$1(ao)&&getNodeName(ao)!=="body"),oo=null;const io=getComputedStyle$1(eo).position==="fixed";let so=io?getParentNode$1(eo):eo;for(;isElement$1(so)&&!isLastTraversableNode(so);){const ao=getComputedStyle$1(so),lo=isContainingBlock(so);!lo&&ao.position==="fixed"&&(oo=null),(io?!lo&&!oo:!lo&&ao.position==="static"&&!!oo&&["absolute","fixed"].includes(oo.position)||isOverflowElement(so)&&!lo&&hasFixedPositionAncestor(eo,so))?no=no.filter(co=>co!==so):oo=ao,so=getParentNode$1(so)}return to.set(eo,no),no}function getClippingRect(eo){let{element:to,boundary:ro,rootBoundary:no,strategy:oo}=eo;const so=[...ro==="clippingAncestors"?getClippingElementAncestors(to,this._c):[].concat(ro),no],ao=so[0],lo=so.reduce((uo,co)=>{const fo=getClientRectFromClippingAncestor(to,co,oo);return uo.top=max$2(fo.top,uo.top),uo.right=min$2(fo.right,uo.right),uo.bottom=min$2(fo.bottom,uo.bottom),uo.left=max$2(fo.left,uo.left),uo},getClientRectFromClippingAncestor(to,ao,oo));return{width:lo.right-lo.left,height:lo.bottom-lo.top,x:lo.left,y:lo.top}}function getDimensions(eo){return getCssDimensions(eo)}function getRectRelativeToOffsetParent(eo,to,ro){const no=isHTMLElement$4(to),oo=getDocumentElement(to),io=ro==="fixed",so=getBoundingClientRect(eo,!0,io,to);let ao={scrollLeft:0,scrollTop:0};const lo=createCoords(0);if(no||!no&&!io)if((getNodeName(to)!=="body"||isOverflowElement(oo))&&(ao=getNodeScroll(to)),no){const uo=getBoundingClientRect(to,!0,io,to);lo.x=uo.x+to.clientLeft,lo.y=uo.y+to.clientTop}else oo&&(lo.x=getWindowScrollBarX(oo));return{x:so.left+ao.scrollLeft-lo.x,y:so.top+ao.scrollTop-lo.y,width:so.width,height:so.height}}function getTrueOffsetParent(eo,to){return!isHTMLElement$4(eo)||getComputedStyle$1(eo).position==="fixed"?null:to?to(eo):eo.offsetParent}function getOffsetParent(eo,to){const ro=getWindow$1(eo);if(!isHTMLElement$4(eo))return ro;let no=getTrueOffsetParent(eo,to);for(;no&&isTableElement(no)&&getComputedStyle$1(no).position==="static";)no=getTrueOffsetParent(no,to);return no&&(getNodeName(no)==="html"||getNodeName(no)==="body"&&getComputedStyle$1(no).position==="static"&&!isContainingBlock(no))?ro:no||getContainingBlock(eo)||ro}const getElementRects=async function(eo){let{reference:to,floating:ro,strategy:no}=eo;const oo=this.getOffsetParent||getOffsetParent,io=this.getDimensions;return{reference:getRectRelativeToOffsetParent(to,await oo(ro),no),floating:{x:0,y:0,...await io(ro)}}};function isRTL(eo){return getComputedStyle$1(eo).direction==="rtl"}const platform={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale:getScale$1,isElement:isElement$1,isRTL},computePosition=(eo,to,ro)=>{const no=new Map,oo={platform,...ro},io={...oo.platform,_c:no};return computePosition$1(eo,to,{...oo,platform:io})};function parseFloatingUIPlacement(eo){const to=eo.split("-");return{side:to[0],alignment:to[1]}}const getParentNode=eo=>eo.nodeName==="HTML"?eo:eo.parentNode||eo.host,getStyleComputedProperty=eo=>{var to;return eo.nodeType!==1?{}:((to=eo.ownerDocument)===null||to===void 0?void 0:to.defaultView).getComputedStyle(eo,null)},getScrollParent=eo=>{const to=eo&&getParentNode(eo);if(!to)return document.body;switch(to.nodeName){case"HTML":case"BODY":return to.ownerDocument.body;case"#document":return to.body}const{overflow:ro,overflowX:no,overflowY:oo}=getStyleComputedProperty(to);return/(auto|scroll|overlay)/.test(ro+oo+no)?to:getScrollParent(to)},hasScrollParent=eo=>{var to;const ro=getScrollParent(eo);return ro?ro!==((to=ro.ownerDocument)===null||to===void 0?void 0:to.body):!1};function getBoundary(eo,to){if(to==="window")return eo==null?void 0:eo.ownerDocument.documentElement;if(to==="clippingParents")return"clippingAncestors";if(to==="scrollParent"){let ro=getScrollParent(eo);return ro.nodeName==="BODY"&&(ro=eo==null?void 0:eo.ownerDocument.documentElement),ro}return to}function mergeArrowOffset(eo,to){return typeof eo=="number"||typeof eo=="object"&&eo!==null?addArrowOffset(eo,to):typeof eo=="function"?ro=>{const no=eo(ro);return addArrowOffset(no,to)}:{mainAxis:to}}const addArrowOffset=(eo,to)=>{if(typeof eo=="number")return{mainAxis:eo+to};var ro;return{...eo,mainAxis:((ro=eo.mainAxis)!==null&&ro!==void 0?ro:0)+to}};function toFloatingUIPadding(eo,to){if(typeof eo=="number")return eo;const{start:ro,end:no,...oo}=eo,io=oo,so=to?"end":"start",ao=to?"start":"end";return eo[so]&&(io.left=eo[so]),eo[ao]&&(io.right=eo[ao]),io}const getPositionMap$1=eo=>({above:"top",below:"bottom",before:eo?"right":"left",after:eo?"left":"right"}),getAlignmentMap$1=()=>({start:"start",end:"end",top:"start",bottom:"end",center:void 0}),shouldAlignToCenter=(eo,to)=>{const ro=eo==="above"||eo==="below",no=to==="top"||to==="bottom";return ro&&no||!ro&&!no},toFloatingUIPlacement=(eo,to,ro)=>{const no=shouldAlignToCenter(to,eo)?"center":eo,oo=to&&getPositionMap$1(ro)[to],io=no&&getAlignmentMap$1()[no];return oo&&io?`${oo}-${io}`:oo},getPositionMap=()=>({top:"above",bottom:"below",right:"after",left:"before"}),getAlignmentMap=eo=>eo==="above"||eo==="below"?{start:"start",end:"end"}:{start:"top",end:"bottom"},fromFloatingUIPlacement=eo=>{const{side:to,alignment:ro}=parseFloatingUIPlacement(eo),no=getPositionMap()[to],oo=ro&&getAlignmentMap(no)[ro];return{position:no,alignment:oo}},shorthandLookup={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 resolvePositioningShorthand(eo){return eo==null?{}:typeof eo=="string"?shorthandLookup[eo]:eo}function useCallbackRef(eo,to,ro){const no=reactExports.useRef(!0),[oo]=reactExports.useState(()=>({value:eo,callback:to,facade:{get current(){return oo.value},set current(io){const so=oo.value;if(so!==io){if(oo.value=io,ro&&no.current)return;oo.callback(io,so)}}}}));return useIsomorphicLayoutEffect$1(()=>{no.current=!1},[]),oo.callback=to,oo.facade}function debounce$1(eo){let to;return()=>(to||(to=new Promise(ro=>{Promise.resolve().then(()=>{to=void 0,ro(eo())})})),to)}function writeArrowUpdates(eo){const{arrow:to,middlewareData:ro}=eo;if(!ro.arrow||!to)return;const{x:no,y:oo}=ro.arrow;Object.assign(to.style,{left:`${no}px`,top:`${oo}px`})}function writeContainerUpdates(eo){var to,ro,no;const{container:oo,placement:io,middlewareData:so,strategy:ao,lowPPI:lo,coordinates:uo,useTransform:co=!0}=eo;if(!oo)return;oo.setAttribute(DATA_POSITIONING_PLACEMENT,io),oo.removeAttribute(DATA_POSITIONING_INTERSECTING),so.intersectionObserver.intersecting&&oo.setAttribute(DATA_POSITIONING_INTERSECTING,""),oo.removeAttribute(DATA_POSITIONING_ESCAPED),!((to=so.hide)===null||to===void 0)&&to.escaped&&oo.setAttribute(DATA_POSITIONING_ESCAPED,""),oo.removeAttribute(DATA_POSITIONING_HIDDEN),!((ro=so.hide)===null||ro===void 0)&&ro.referenceHidden&&oo.setAttribute(DATA_POSITIONING_HIDDEN,"");const fo=((no=oo.ownerDocument.defaultView)===null||no===void 0?void 0:no.devicePixelRatio)||1,ho=Math.round(uo.x*fo)/fo,po=Math.round(uo.y*fo)/fo;if(Object.assign(oo.style,{position:ao}),co){Object.assign(oo.style,{transform:lo?`translate(${ho}px, ${po}px)`:`translate3d(${ho}px, ${po}px, 0)`});return}Object.assign(oo.style,{left:`${ho}px`,top:`${po}px`})}const normalizeAutoSize=eo=>{switch(eo){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 coverTarget(){return{name:"coverTarget",fn:eo=>{const{placement:to,rects:ro,x:no,y:oo}=eo,io=parseFloatingUIPlacement(to).side,so={x:no,y:oo};switch(io){case"bottom":so.y-=ro.reference.height;break;case"top":so.y+=ro.reference.height;break;case"left":so.x+=ro.reference.width;break;case"right":so.x-=ro.reference.width;break}return so}}}function flip(eo){const{hasScrollableElement:to,flipBoundary:ro,container:no,fallbackPositions:oo=[],isRtl:io}=eo,so=oo.reduce((ao,lo)=>{const{position:uo,align:co}=resolvePositioningShorthand(lo),fo=toFloatingUIPlacement(co,uo,io);return fo&&ao.push(fo),ao},[]);return flip$1({...to&&{boundary:"clippingAncestors"},...ro&&{altBoundary:!0,boundary:getBoundary(no,ro)},fallbackStrategy:"bestFit",...so.length&&{fallbackPlacements:so}})}function intersecting(){return{name:"intersectionObserver",fn:async eo=>{const to=eo.rects.floating,ro=await detectOverflow(eo,{altBoundary:!0}),no=ro.top0,oo=ro.bottom0;return{data:{intersecting:no||oo}}}}}const resetMaxSize=eo=>({name:"resetMaxSize",fn({middlewareData:to,elements:ro}){var no;if(!((no=to.resetMaxSize)===null||no===void 0)&&no.maxSizeAlreadyReset)return{};const{applyMaxWidth:oo,applyMaxHeight:io}=eo;return oo&&(ro.floating.style.removeProperty("box-sizing"),ro.floating.style.removeProperty("max-width"),ro.floating.style.removeProperty("width")),io&&(ro.floating.style.removeProperty("box-sizing"),ro.floating.style.removeProperty("max-height"),ro.floating.style.removeProperty("height")),{data:{maxSizeAlreadyReset:!0},reset:{rects:!0}}}});function maxSize(eo,to){const{container:ro,overflowBoundary:no}=to;return size({...no&&{altBoundary:!0,boundary:getBoundary(ro,no)},apply({availableHeight:oo,availableWidth:io,elements:so,rects:ao}){const lo=(fo,ho,po)=>{if(fo&&(so.floating.style.setProperty("box-sizing","border-box"),so.floating.style.setProperty(`max-${ho}`,`${po}px`),ao.floating[ho]>po)){so.floating.style.setProperty(ho,`${po}px`);const go=ho==="width"?"x":"y";so.floating.style.getPropertyValue(`overflow-${go}`)||so.floating.style.setProperty(`overflow-${go}`,"auto")}},{applyMaxWidth:uo,applyMaxHeight:co}=eo;lo(uo,"width",io),lo(co,"height",oo)}})}function getFloatingUIOffset(eo){return!eo||typeof eo=="number"||typeof eo=="object"?eo:({rects:{floating:to,reference:ro},placement:no})=>{const{position:oo,alignment:io}=fromFloatingUIPlacement(no);return eo({positionedRect:to,targetRect:ro,position:oo,alignment:io})}}function offset(eo){const to=getFloatingUIOffset(eo);return offset$1(to)}function shift$1(eo){const{hasScrollableElement:to,disableTether:ro,overflowBoundary:no,container:oo,overflowBoundaryPadding:io,isRtl:so}=eo;return shift$2({...to&&{boundary:"clippingAncestors"},...ro&&{crossAxis:ro==="all",limiter:limitShift({crossAxis:ro!=="all",mainAxis:!1})},...io&&{padding:toFloatingUIPadding(io,so)},...no&&{altBoundary:!0,boundary:getBoundary(oo,no)}})}const matchTargetSizeCssVar="--fui-match-target-size";function matchTargetSize(){return{name:"matchTargetSize",fn:async eo=>{const{rects:{reference:to,floating:ro},elements:{floating:no},middlewareData:{matchTargetSize:{matchTargetSizeAttempt:oo=!1}={}}}=eo;if(to.width===ro.width||oo)return{};const{width:io}=to;return no.style.setProperty(matchTargetSizeCssVar,`${io}px`),no.style.width||(no.style.width=`var(${matchTargetSizeCssVar})`),{data:{matchTargetSizeAttempt:!0},reset:{rects:!0}}}}}function listScrollParents(eo){const to=[];let ro=eo;for(;ro;){const no=getScrollParent(ro);if(eo.ownerDocument.body===no){to.push(no);break}to.push(no),ro=no}return to}function createPositionManager(eo){const{container:to,target:ro,arrow:no,strategy:oo,middleware:io,placement:so,useTransform:ao=!0}=eo;let lo=!1;if(!ro||!to)return{updatePosition:()=>{},dispose:()=>{}};let uo=!0;const co=new Set,fo=to.ownerDocument.defaultView;Object.assign(to.style,{position:"fixed",left:0,top:0,margin:0});const ho=()=>{lo||(uo&&(listScrollParents(to).forEach(vo=>co.add(vo)),isHTMLElement$6(ro)&&listScrollParents(ro).forEach(vo=>co.add(vo)),co.forEach(vo=>{vo.addEventListener("scroll",po,{passive:!0})}),uo=!1),Object.assign(to.style,{position:oo}),computePosition(ro,to,{placement:so,middleware:io,strategy:oo}).then(({x:vo,y:bo,middlewareData:xo,placement:_o})=>{lo||(writeArrowUpdates({arrow:no,middlewareData:xo}),writeContainerUpdates({container:to,middlewareData:xo,placement:_o,coordinates:{x:vo,y:bo},lowPPI:((fo==null?void 0:fo.devicePixelRatio)||1)<=1,strategy:oo,useTransform:ao}))}).catch(vo=>{}))},po=debounce$1(()=>ho()),go=()=>{lo=!0,fo&&(fo.removeEventListener("scroll",po),fo.removeEventListener("resize",po)),co.forEach(vo=>{vo.removeEventListener("scroll",po)}),co.clear()};return fo&&(fo.addEventListener("scroll",po,{passive:!0}),fo.addEventListener("resize",po)),po(),{updatePosition:po,dispose:go}}function usePositioning(eo){const to=reactExports.useRef(null),ro=reactExports.useRef(null),no=reactExports.useRef(null),oo=reactExports.useRef(null),io=reactExports.useRef(null),{enabled:so=!0}=eo,ao=usePositioningOptions(eo),lo=reactExports.useCallback(()=>{to.current&&to.current.dispose(),to.current=null;var po;const go=(po=no.current)!==null&&po!==void 0?po:ro.current;so&&canUseDOM$3()&&go&&oo.current&&(to.current=createPositionManager({container:oo.current,target:go,arrow:io.current,...ao(oo.current,io.current)}))},[so,ao]),uo=useEventCallback$3(po=>{no.current=po,lo()});reactExports.useImperativeHandle(eo.positioningRef,()=>({updatePosition:()=>{var po;return(po=to.current)===null||po===void 0?void 0:po.updatePosition()},setTarget:po=>{eo.target,uo(po)}}),[eo.target,uo]),useIsomorphicLayoutEffect$1(()=>{var po;uo((po=eo.target)!==null&&po!==void 0?po:null)},[eo.target,uo]),useIsomorphicLayoutEffect$1(()=>{lo()},[lo]);const co=useCallbackRef(null,po=>{ro.current!==po&&(ro.current=po,lo())}),fo=useCallbackRef(null,po=>{oo.current!==po&&(oo.current=po,lo())}),ho=useCallbackRef(null,po=>{io.current!==po&&(io.current=po,lo())});return{targetRef:co,containerRef:fo,arrowRef:ho}}function usePositioningOptions(eo){const{align:to,arrowPadding:ro,autoSize:no,coverTarget:oo,flipBoundary:io,offset:so,overflowBoundary:ao,pinned:lo,position:uo,unstable_disableTether:co,positionFixed:fo,strategy:ho,overflowBoundaryPadding:po,fallbackPositions:go,useTransform:vo,matchTargetSize:bo}=eo,{dir:xo,targetDocument:_o}=useFluent(),Eo=xo==="rtl",So=ho??fo?"fixed":"absolute",To=normalizeAutoSize(no);return reactExports.useCallback((wo,Co)=>{const Oo=hasScrollParent(wo),Ao=[To&&resetMaxSize(To),bo&&matchTargetSize(),so&&offset(so),oo&&coverTarget(),!lo&&flip({container:wo,flipBoundary:io,hasScrollableElement:Oo,isRtl:Eo,fallbackPositions:go}),shift$1({container:wo,hasScrollableElement:Oo,overflowBoundary:ao,disableTether:co,overflowBoundaryPadding:po,isRtl:Eo}),To&&maxSize(To,{container:wo,overflowBoundary:ao}),intersecting(),Co&&arrow$1({element:Co,padding:ro}),hide({strategy:"referenceHidden"}),hide({strategy:"escaped"}),!1].filter(Boolean);return{placement:toFloatingUIPlacement(to,uo,Eo),middleware:Ao,strategy:So,useTransform:vo}},[to,ro,To,oo,co,io,Eo,so,ao,lo,uo,So,po,go,vo,bo,_o])}const usePositioningMouseTarget=eo=>{const[to,ro]=reactExports.useState(eo);return[to,oo=>{if(oo==null){ro(void 0);return}let io;oo instanceof MouseEvent?io=oo:io=oo.nativeEvent,io instanceof MouseEvent;const so=createVirtualElementFromClick(io);ro(so)}]},PopoverContext=createContext(void 0),popoverContextDefaultValue={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};PopoverContext.Provider;const usePopoverContext_unstable=eo=>useContextSelector(PopoverContext,(to=popoverContextDefaultValue)=>eo(to)),usePopoverSurface_unstable=(eo,to)=>{const ro=usePopoverContext_unstable(_o=>_o.contentRef),no=usePopoverContext_unstable(_o=>_o.openOnHover),oo=usePopoverContext_unstable(_o=>_o.setOpen),io=usePopoverContext_unstable(_o=>_o.mountNode),so=usePopoverContext_unstable(_o=>_o.arrowRef),ao=usePopoverContext_unstable(_o=>_o.size),lo=usePopoverContext_unstable(_o=>_o.withArrow),uo=usePopoverContext_unstable(_o=>_o.appearance),co=usePopoverContext_unstable(_o=>_o.trapFocus),fo=usePopoverContext_unstable(_o=>_o.inertTrapFocus),ho=usePopoverContext_unstable(_o=>_o.inline),{modalAttributes:po}=useModalAttributes({trapFocus:co,legacyTrapFocus:!fo,alwaysFocusable:!co}),go={inline:ho,appearance:uo,withArrow:lo,size:ao,arrowRef:so,mountNode:io,components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(to,ro),role:co?"dialog":"group","aria-modal":co?!0:void 0,...po,...eo}),{elementType:"div"})},{onMouseEnter:vo,onMouseLeave:bo,onKeyDown:xo}=go.root;return go.root.onMouseEnter=_o=>{no&&oo(_o,!0),vo==null||vo(_o)},go.root.onMouseLeave=_o=>{no&&oo(_o,!1),bo==null||bo(_o)},go.root.onKeyDown=_o=>{var Eo;_o.key==="Escape"&&(!((Eo=ro.current)===null||Eo===void 0)&&Eo.contains(_o.target))&&(_o.preventDefault(),oo(_o,!1)),xo==null||xo(_o)},go};function toMountNodeProps(eo){return isHTMLElement$6(eo)?{element:eo}:typeof eo=="object"?eo===null?{element:null}:eo:{}}var getCurrentOwner=()=>reactExports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current,useIsStrictMode=()=>!1,effectSet=new WeakSet;function useStrictEffect(eo,to){const ro=getCurrentOwner();reactExports.useEffect(()=>{if(!effectSet.has(ro)){effectSet.add(ro),eo();return}return eo()},to)}var memoSet=new WeakSet;function useStrictMemo(eo,to){return reactExports.useMemo(()=>{const ro=getCurrentOwner();return memoSet.has(ro)?eo():(memoSet.add(ro),null)},to)}function useDisposable(eo,to){var ro;const no=useIsStrictMode()&&!1,oo=no?useStrictMemo:reactExports.useMemo,io=no?useStrictEffect:reactExports.useEffect,[so,ao]=(ro=oo(()=>eo(),to))!=null?ro:[null,()=>null];return io(()=>ao,to),so}const usePortalMountNodeStylesStyles=__styles({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;}"]}),useInsertionEffect=React$1.useInsertionEffect,usePortalMountNode=eo=>{const{targetDocument:to,dir:ro}=useFluent(),no=usePortalMountNode$1(),oo=useFocusVisible(),io=usePortalMountNodeStylesStyles(),so=useThemeClassName(),ao=mergeClasses(so,io.root,eo.className),lo=no??(to==null?void 0:to.body),uo=useDisposable(()=>{if(lo===void 0||eo.disabled)return[null,()=>null];const co=lo.ownerDocument.createElement("div");return lo.appendChild(co),[co,()=>co.remove()]},[lo]);return useInsertionEffect?useInsertionEffect(()=>{if(!uo)return;const co=ao.split(" ").filter(Boolean);return uo.classList.add(...co),uo.setAttribute("dir",ro),oo.current=uo,()=>{uo.classList.remove(...co),uo.removeAttribute("dir")}},[ao,ro,uo,oo]):reactExports.useMemo(()=>{uo&&(uo.className=ao,uo.setAttribute("dir",ro),oo.current=uo)},[ao,ro,uo,oo]),uo},usePortal_unstable=eo=>{const{element:to,className:ro}=toMountNodeProps(eo.mountNode),no=reactExports.useRef(null),oo=usePortalMountNode({disabled:!!to,className:ro}),io=to??oo,so={children:eo.children,mountNode:io,virtualParentRootRef:no};return reactExports.useEffect(()=>{if(!io)return;const ao=no.current,lo=io.contains(ao);if(ao&&!lo)return setVirtualParent$1(io,ao),()=>{setVirtualParent$1(io,void 0)}},[no,io]),so},renderPortal_unstable=eo=>reactExports.createElement("span",{hidden:!0,ref:eo.virtualParentRootRef},eo.mountNode&&reactDomExports.createPortal(eo.children,eo.mountNode)),Portal$1=eo=>{const to=usePortal_unstable(eo);return renderPortal_unstable(to)};Portal$1.displayName="Portal";const renderPopoverSurface_unstable=eo=>{const to=jsxs(eo.root,{children:[eo.withArrow&&jsx$1("div",{ref:eo.arrowRef,className:eo.arrowClassName}),eo.root.children]});return eo.inline?to:jsx$1(Portal$1,{mountNode:eo.mountNode,children:to})},popoverSurfaceClassNames={root:"fui-PopoverSurface"},arrowHeights={small:6,medium:8,large:8},useStyles$y=__styles({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;}}"]}),usePopoverSurfaceStyles_unstable=eo=>{const to=useStyles$y();return eo.root.className=mergeClasses(popoverSurfaceClassNames.root,to.root,eo.inline&&to.inline,eo.size==="small"&&to.smallPadding,eo.size==="medium"&&to.mediumPadding,eo.size==="large"&&to.largePadding,eo.appearance==="inverted"&&to.inverted,eo.appearance==="brand"&&to.brand,eo.root.className),eo.arrowClassName=mergeClasses(to.arrow,eo.size==="small"?to.smallArrow:to.mediumLargeArrow),eo},PopoverSurface=reactExports.forwardRef((eo,to)=>{const ro=usePopoverSurface_unstable(eo,to);return usePopoverSurfaceStyles_unstable(ro),useCustomStyleHook("usePopoverSurfaceStyles_unstable")(ro),renderPopoverSurface_unstable(ro)});PopoverSurface.displayName="PopoverSurface";const popoverSurfaceBorderRadius=4,usePopover_unstable=eo=>{const[to,ro]=usePositioningMouseTarget(),no={size:"medium",contextTarget:to,setContextTarget:ro,...eo},oo=reactExports.Children.toArray(eo.children);let io,so;oo.length===2?(io=oo[0],so=oo[1]):oo.length===1&&(so=oo[0]);const[ao,lo]=useOpenState(no),uo=reactExports.useRef(0),co=useEventCallback$3((Eo,So)=>{if(clearTimeout(uo.current),!(Eo instanceof Event)&&Eo.persist&&Eo.persist(),Eo.type==="mouseleave"){var To;uo.current=setTimeout(()=>{lo(Eo,So)},(To=eo.mouseLeaveDelay)!==null&&To!==void 0?To:500)}else lo(Eo,So)});reactExports.useEffect(()=>()=>{clearTimeout(uo.current)},[]);const fo=reactExports.useCallback(Eo=>{co(Eo,!ao)},[co,ao]),ho=usePopoverRefs(no),{targetDocument:po}=useFluent();var go;useOnClickOutside({contains:elementContains$1,element:po,callback:Eo=>co(Eo,!1),refs:[ho.triggerRef,ho.contentRef],disabled:!ao,disabledFocusOnIframe:!(!((go=eo.closeOnIframeFocus)!==null&&go!==void 0)||go)});const vo=no.openOnContext||no.closeOnScroll;useOnScrollOutside({contains:elementContains$1,element:po,callback:Eo=>co(Eo,!1),refs:[ho.triggerRef,ho.contentRef],disabled:!ao||!vo});const{findFirstFocusable:bo}=useFocusFinders();reactExports.useEffect(()=>{if(!eo.unstable_disableAutoFocus&&ao&&ho.contentRef.current){var Eo;const So=(Eo=ho.contentRef.current.getAttribute("tabIndex"))!==null&&Eo!==void 0?Eo:void 0,To=isNaN(So)?bo(ho.contentRef.current):ho.contentRef.current;To==null||To.focus()}},[bo,ao,ho.contentRef,eo.unstable_disableAutoFocus]);var xo,_o;return{...no,...ho,inertTrapFocus:(xo=eo.inertTrapFocus)!==null&&xo!==void 0?xo:eo.legacyTrapFocus===void 0?!1:!eo.legacyTrapFocus,popoverTrigger:io,popoverSurface:so,open:ao,setOpen:co,toggleOpen:fo,setContextTarget:ro,contextTarget:to,inline:(_o=eo.inline)!==null&&_o!==void 0?_o:!1}};function useOpenState(eo){const to=useEventCallback$3((so,ao)=>{var lo;return(lo=eo.onOpenChange)===null||lo===void 0?void 0:lo.call(eo,so,ao)}),[ro,no]=useControllableState({state:eo.open,defaultState:eo.defaultOpen,initialState:!1});eo.open=ro!==void 0?ro:eo.open;const oo=eo.setContextTarget,io=reactExports.useCallback((so,ao)=>{ao&&so.type==="contextmenu"&&oo(so),ao||oo(void 0),no(ao),to==null||to(so,{open:ao})},[no,to,oo]);return[ro,io]}function usePopoverRefs(eo){const to={position:"above",align:"center",arrowPadding:2*popoverSurfaceBorderRadius,target:eo.openOnContext?eo.contextTarget:void 0,...resolvePositioningShorthand(eo.positioning)};to.coverTarget&&(eo.withArrow=!1),eo.withArrow&&(to.offset=mergeArrowOffset(to.offset,arrowHeights[eo.size]));const{targetRef:ro,containerRef:no,arrowRef:oo}=usePositioning(to);return{triggerRef:ro,contentRef:no,arrowRef:oo}}const renderPopover_unstable=eo=>{const{appearance:to,arrowRef:ro,contentRef:no,inline:oo,mountNode:io,open:so,openOnContext:ao,openOnHover:lo,setOpen:uo,size:co,toggleOpen:fo,trapFocus:ho,triggerRef:po,withArrow:go,inertTrapFocus:vo}=eo;return reactExports.createElement(PopoverContext.Provider,{value:{appearance:to,arrowRef:ro,contentRef:no,inline:oo,mountNode:io,open:so,openOnContext:ao,openOnHover:lo,setOpen:uo,toggleOpen:fo,triggerRef:po,size:co,trapFocus:ho,inertTrapFocus:vo,withArrow:go}},eo.popoverTrigger,eo.open&&eo.popoverSurface)},Popover=eo=>{const to=usePopover_unstable(eo);return renderPopover_unstable(to)};Popover.displayName="Popover";const usePopoverTrigger_unstable=eo=>{const{children:to,disableButtonEnhancement:ro=!1}=eo,no=getTriggerChild(to),oo=usePopoverContext_unstable(Eo=>Eo.open),io=usePopoverContext_unstable(Eo=>Eo.setOpen),so=usePopoverContext_unstable(Eo=>Eo.toggleOpen),ao=usePopoverContext_unstable(Eo=>Eo.triggerRef),lo=usePopoverContext_unstable(Eo=>Eo.openOnHover),uo=usePopoverContext_unstable(Eo=>Eo.openOnContext),{triggerAttributes:co}=useModalAttributes(),fo=Eo=>{uo&&(Eo.preventDefault(),io(Eo,!0))},ho=Eo=>{uo||so(Eo)},po=Eo=>{Eo.key===Escape$1&&oo&&!Eo.isDefaultPrevented()&&(io(Eo,!1),Eo.preventDefault())},go=Eo=>{lo&&io(Eo,!0)},vo=Eo=>{lo&&io(Eo,!1)},bo={...co,"aria-expanded":`${oo}`,...no==null?void 0:no.props,onMouseEnter:useEventCallback$3(mergeCallbacks(no==null?void 0:no.props.onMouseEnter,go)),onMouseLeave:useEventCallback$3(mergeCallbacks(no==null?void 0:no.props.onMouseLeave,vo)),onContextMenu:useEventCallback$3(mergeCallbacks(no==null?void 0:no.props.onContextMenu,fo)),ref:useMergedRefs$1(ao,no==null?void 0:no.ref)},xo={...bo,onClick:useEventCallback$3(mergeCallbacks(no==null?void 0:no.props.onClick,ho)),onKeyDown:useEventCallback$3(mergeCallbacks(no==null?void 0:no.props.onKeyDown,po))},_o=useARIAButtonProps((no==null?void 0:no.type)==="button"||(no==null?void 0:no.type)==="a"?no.type:"div",xo);return{children:applyTriggerPropsToChildren(eo.children,useARIAButtonProps((no==null?void 0:no.type)==="button"||(no==null?void 0:no.type)==="a"?no.type:"div",uo?bo:ro?xo:_o))}},renderPopoverTrigger_unstable=eo=>eo.children,PopoverTrigger=eo=>{const to=usePopoverTrigger_unstable(eo);return renderPopoverTrigger_unstable(to)};PopoverTrigger.displayName="PopoverTrigger";PopoverTrigger.isFluentTriggerComponent=!0;const arrowHeight=6,tooltipBorderRadius=4,useTooltip_unstable=eo=>{var to,ro,no,oo;const io=useTooltipVisibility(),so=useIsSSR(),{targetDocument:ao}=useFluent(),[lo,uo]=useTimeout(),{appearance:co="normal",children:fo,content:ho,withArrow:po=!1,positioning:go="above",onVisibleChange:vo,relationship:bo,showDelay:xo=250,hideDelay:_o=250,mountNode:Eo}=eo,[So,To]=useControllableState({state:eo.visible,initialState:!1}),wo=reactExports.useCallback((Ho,qo)=>{uo(),To(Uo=>(qo.visible!==Uo&&(vo==null||vo(Ho,qo)),qo.visible))},[uo,To,vo]),Co={withArrow:po,positioning:go,showDelay:xo,hideDelay:_o,relationship:bo,visible:So,shouldRenderTooltip:So,appearance:co,mountNode:Eo,components:{content:"div"},content:always(ho,{defaultProps:{role:"tooltip"},elementType:"div"})};Co.content.id=useId$1("tooltip-",Co.content.id);const Oo={enabled:Co.visible,arrowPadding:2*tooltipBorderRadius,position:"above",align:"center",offset:4,...resolvePositioningShorthand(Co.positioning)};Co.withArrow&&(Oo.offset=mergeArrowOffset(Oo.offset,arrowHeight));const{targetRef:Ao,containerRef:Ro,arrowRef:No}=usePositioning(Oo);Co.content.ref=useMergedRefs$1(Co.content.ref,Ro),Co.arrowRef=No,useIsomorphicLayoutEffect$1(()=>{if(So){var Ho;const qo={hide:Yo=>wo(void 0,{visible:!1,documentKeyboardEvent:Yo})};(Ho=io.visibleTooltip)===null||Ho===void 0||Ho.hide(),io.visibleTooltip=qo;const Uo=Yo=>{Yo.key===Escape$1&&!Yo.defaultPrevented&&(qo.hide(Yo),Yo.preventDefault())};return ao==null||ao.addEventListener("keydown",Uo,{capture:!0}),()=>{io.visibleTooltip===qo&&(io.visibleTooltip=void 0),ao==null||ao.removeEventListener("keydown",Uo,{capture:!0})}}},[io,ao,So,wo]);const Mo=reactExports.useRef(!1),Do=reactExports.useCallback(Ho=>{if(Ho.type==="focus"&&Mo.current){Mo.current=!1;return}const qo=io.visibleTooltip?0:Co.showDelay;lo(()=>{wo(Ho,{visible:!0})},qo),Ho.persist()},[lo,wo,Co.showDelay,io]),[jo]=reactExports.useState(()=>{const Ho=Uo=>{var Yo;!((Yo=Uo.detail)===null||Yo===void 0)&&Yo.isFocusedProgrammatically&&(Mo.current=!0)};let qo=null;return Uo=>{qo==null||qo.removeEventListener(KEYBORG_FOCUSIN,Ho),Uo==null||Uo.addEventListener(KEYBORG_FOCUSIN,Ho),qo=Uo}}),Fo=reactExports.useCallback(Ho=>{let qo=Co.hideDelay;Ho.type==="blur"&&(qo=0,Mo.current=(ao==null?void 0:ao.activeElement)===Ho.target),lo(()=>{wo(Ho,{visible:!1})},qo),Ho.persist()},[lo,wo,Co.hideDelay,ao]);Co.content.onPointerEnter=mergeCallbacks(Co.content.onPointerEnter,uo),Co.content.onPointerLeave=mergeCallbacks(Co.content.onPointerLeave,Fo),Co.content.onFocus=mergeCallbacks(Co.content.onFocus,uo),Co.content.onBlur=mergeCallbacks(Co.content.onBlur,Fo);const $o=getTriggerChild(fo),Lo={};return bo==="label"?typeof Co.content.children=="string"?Lo["aria-label"]=Co.content.children:(Lo["aria-labelledby"]=Co.content.id,Co.shouldRenderTooltip=!0):bo==="description"&&(Lo["aria-describedby"]=Co.content.id,Co.shouldRenderTooltip=!0),so&&(Co.shouldRenderTooltip=!1),Co.children=applyTriggerPropsToChildren(fo,{...Lo,...$o==null?void 0:$o.props,ref:useMergedRefs$1($o==null?void 0:$o.ref,jo,Oo.target===void 0?Ao:void 0),onPointerEnter:useEventCallback$3(mergeCallbacks($o==null||(to=$o.props)===null||to===void 0?void 0:to.onPointerEnter,Do)),onPointerLeave:useEventCallback$3(mergeCallbacks($o==null||(ro=$o.props)===null||ro===void 0?void 0:ro.onPointerLeave,Fo)),onFocus:useEventCallback$3(mergeCallbacks($o==null||(no=$o.props)===null||no===void 0?void 0:no.onFocus,Do)),onBlur:useEventCallback$3(mergeCallbacks($o==null||(oo=$o.props)===null||oo===void 0?void 0:oo.onBlur,Fo))}),Co},renderTooltip_unstable=eo=>jsxs(reactExports.Fragment,{children:[eo.children,eo.shouldRenderTooltip&&jsx$1(Portal$1,{mountNode:eo.mountNode,children:jsxs(eo.content,{children:[eo.withArrow&&jsx$1("div",{ref:eo.arrowRef,className:eo.arrowClassName}),eo.content.children]})})]}),tooltipClassNames={content:"fui-Tooltip__content"},useStyles$x=__styles({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;}']}),useTooltipStyles_unstable=eo=>{const to=useStyles$x();return eo.content.className=mergeClasses(tooltipClassNames.content,to.root,eo.appearance==="inverted"&&to.inverted,eo.visible&&to.visible,eo.content.className),eo.arrowClassName=to.arrow,eo},Tooltip=eo=>{const to=useTooltip_unstable(eo);return useTooltipStyles_unstable(to),useCustomStyleHook("useTooltipStyles_unstable")(to),renderTooltip_unstable(to)};Tooltip.displayName="Tooltip";Tooltip.isFluentTriggerComponent=!0;const renderButton_unstable=eo=>{const{iconOnly:to,iconPosition:ro}=eo;return jsxs(eo.root,{children:[ro!=="after"&&eo.icon&&jsx$1(eo.icon,{}),!to&&eo.root.children,ro==="after"&&eo.icon&&jsx$1(eo.icon,{})]})},buttonContext=reactExports.createContext(void 0),buttonContextDefaultValue={};buttonContext.Provider;const useButtonContext=()=>{var eo;return(eo=reactExports.useContext(buttonContext))!==null&&eo!==void 0?eo:buttonContextDefaultValue},useButton_unstable=(eo,to)=>{const{size:ro}=useButtonContext(),{appearance:no="secondary",as:oo="button",disabled:io=!1,disabledFocusable:so=!1,icon:ao,iconPosition:lo="before",shape:uo="rounded",size:co=ro??"medium"}=eo,fo=optional(ao,{elementType:"span"});return{appearance:no,disabled:io,disabledFocusable:so,iconPosition:lo,shape:uo,size:co,iconOnly:!!(fo!=null&&fo.children&&!eo.children),components:{root:"button",icon:"span"},root:always(getIntrinsicElementProps(oo,useARIAButtonProps(eo.as,eo)),{elementType:"button",defaultProps:{ref:to,type:"button"}}),icon:fo}},buttonClassNames={root:"fui-Button",icon:"fui-Button__icon"},useRootBaseClassName$1=__resetStyles("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;}}"]}),useIconBaseClassName=__resetStyles("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);}"]),useRootStyles$5=__styles({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)"}]]}),useRootDisabledStyles=__styles({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)"}]]}),useRootFocusStyles=__styles({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;}}"]}),useRootIconOnlyStyles=__styles({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;}"]}),useIconStyles$3=__styles({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);}"]}),useButtonStyles_unstable=eo=>{const to=useRootBaseClassName$1(),ro=useIconBaseClassName(),no=useRootStyles$5(),oo=useRootDisabledStyles(),io=useRootFocusStyles(),so=useRootIconOnlyStyles(),ao=useIconStyles$3(),{appearance:lo,disabled:uo,disabledFocusable:co,icon:fo,iconOnly:ho,iconPosition:po,shape:go,size:vo}=eo;return eo.root.className=mergeClasses(buttonClassNames.root,to,lo&&no[lo],no[vo],fo&&vo==="small"&&no.smallWithIcon,fo&&vo==="large"&&no.largeWithIcon,no[go],(uo||co)&&oo.base,(uo||co)&&oo.highContrast,lo&&(uo||co)&&oo[lo],lo==="primary"&&io.primary,io[vo],io[go],ho&&so[vo],eo.root.className),eo.icon&&(eo.icon.className=mergeClasses(buttonClassNames.icon,ro,!!eo.root.children&&ao[po],ao[vo],eo.icon.className)),eo},Button$2=reactExports.forwardRef((eo,to)=>{const ro=useButton_unstable(eo,to);return useButtonStyles_unstable(ro),useCustomStyleHook("useButtonStyles_unstable")(ro),renderButton_unstable(ro)});Button$2.displayName="Button";const FieldContext=reactExports.createContext(void 0);FieldContext.Provider;const useFieldContext_unstable=()=>reactExports.useContext(FieldContext);function useFieldControlProps_unstable(eo,to){return getFieldControlProps(useFieldContext_unstable(),eo,to)}function getFieldControlProps(eo,to,ro){if(!eo)return to;to={...to};const{generatedControlId:no,hintId:oo,labelFor:io,labelId:so,required:ao,validationMessageId:lo,validationState:uo}=eo;if(no){var co,fo;(fo=(co=to).id)!==null&&fo!==void 0||(co.id=no)}if(so&&(!(ro!=null&&ro.supportsLabelFor)||io!==to.id)){var ho,po,go;(go=(ho=to)[po="aria-labelledby"])!==null&&go!==void 0||(ho[po]=so)}if((lo||oo)&&(to["aria-describedby"]=[lo,oo,to==null?void 0:to["aria-describedby"]].filter(Boolean).join(" ")),uo==="error"){var vo,bo,xo;(xo=(vo=to)[bo="aria-invalid"])!==null&&xo!==void 0||(vo[bo]=!0)}if(ao)if(ro!=null&&ro.supportsRequired){var _o,Eo;(Eo=(_o=to).required)!==null&&Eo!==void 0||(_o.required=!0)}else{var So,To,wo;(wo=(So=to)[To="aria-required"])!==null&&wo!==void 0||(So[To]=!0)}if(ro!=null&&ro.supportsSize){var Co,Oo;(Oo=(Co=to).size)!==null&&Oo!==void 0||(Co.size=eo.size)}return to}const useLabel_unstable=(eo,to)=>{const{disabled:ro=!1,required:no=!1,weight:oo="regular",size:io="medium"}=eo;return{disabled:ro,required:optional(no===!0?"*":no||void 0,{defaultProps:{"aria-hidden":"true"},elementType:"span"}),weight:oo,size:io,components:{root:"label",required:"span"},root:always(getIntrinsicElementProps("label",{ref:to,...eo}),{elementType:"label"})}},renderLabel_unstable=eo=>jsxs(eo.root,{children:[eo.root.children,eo.required&&jsx$1(eo.required,{})]}),labelClassNames={root:"fui-Label",required:"fui-Label__required"},useStyles$w=__styles({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);}"]}),useLabelStyles_unstable=eo=>{const to=useStyles$w();return eo.root.className=mergeClasses(labelClassNames.root,to.root,eo.disabled&&to.disabled,to[eo.size],eo.weight==="semibold"&&to.semibold,eo.root.className),eo.required&&(eo.required.className=mergeClasses(labelClassNames.required,to.required,eo.disabled&&to.requiredDisabled,eo.required.className)),eo},Label=reactExports.forwardRef((eo,to)=>{const ro=useLabel_unstable(eo,to);return useLabelStyles_unstable(ro),useCustomStyleHook("useLabelStyles_unstable")(ro),renderLabel_unstable(ro)});Label.displayName="Label";const ComboboxContext=createContext({activeOption:void 0,appearance:"outline",focusVisible:!1,open:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){},setOpen(){},size:"medium"});ComboboxContext.Provider;const ListboxContext=createContext({activeOption:void 0,focusVisible:!1,multiselect:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){}});ListboxContext.Provider;function useComboboxContextValues(eo){const{activeOption:to,appearance:ro,focusVisible:no,open:oo,registerOption:io,selectedOptions:so,selectOption:ao,setActiveOption:lo,setOpen:uo,size:co}=eo;return{combobox:{activeOption:to,appearance:ro,focusVisible:no,open:oo,registerOption:io,selectedOptions:so,selectOption:ao,setActiveOption:lo,setOpen:uo,size:co}}}function useListboxContextValues(eo){const to=useHasParentContext(ComboboxContext),{activeOption:ro,focusVisible:no,multiselect:oo,registerOption:io,selectedOptions:so,selectOption:ao,setActiveOption:lo}=eo,uo=useContextSelector(ComboboxContext,ho=>ho.registerOption);return{listbox:{activeOption:ro,focusVisible:no,multiselect:oo,registerOption:to?uo:io,selectedOptions:so,selectOption:ao,setActiveOption:lo}}}function getDropdownActionFromKey(eo,to={}){const{open:ro=!0,multiselect:no=!1}=to,oo=eo.key,{altKey:io,ctrlKey:so,key:ao,metaKey:lo}=eo;return ao.length===1&&oo!==Space&&!io&&!so&&!lo?"Type":ro?oo===ArrowUp&&io||oo===Enter||!no&&oo===Space?"CloseSelect":no&&oo===Space?"Select":oo===Escape$1?"Close":oo===ArrowDown?"Next":oo===ArrowUp?"Previous":oo===Home?"First":oo===End?"Last":oo===PageUp?"PageUp":oo===PageDown?"PageDown":oo===Tab$2?"Tab":"None":oo===ArrowDown||oo===ArrowUp||oo===Enter||oo===Space?"Open":"None"}function getIndexFromAction(eo,to,ro){switch(eo){case"Next":return Math.min(ro,to+1);case"Previous":return Math.max(0,to-1);case"First":return 0;case"Last":return ro;case"PageDown":return Math.min(ro,to+10);case"PageUp":return Math.max(0,to-10);default:return to}}const useOptionCollection=()=>{const eo=reactExports.useRef([]),to=reactExports.useMemo(()=>({getCount:()=>eo.current.length,getOptionAtIndex:uo=>{var co;return(co=eo.current[uo])===null||co===void 0?void 0:co.option},getIndexOfId:uo=>eo.current.findIndex(co=>co.option.id===uo),getOptionById:uo=>{const co=eo.current.find(fo=>fo.option.id===uo);return co==null?void 0:co.option},getOptionsMatchingText:uo=>eo.current.filter(co=>uo(co.option.text)).map(co=>co.option),getOptionsMatchingValue:uo=>eo.current.filter(co=>uo(co.option.value)).map(co=>co.option)}),[]),ro=reactExports.useCallback((no,oo)=>{var io;const so=eo.current.findIndex(ao=>!ao.element||!oo?!1:ao.option.id===no.id?!0:ao.element.compareDocumentPosition(oo)&Node.DOCUMENT_POSITION_PRECEDING);if(((io=eo.current[so])===null||io===void 0?void 0:io.option.id)!==no.id){const ao={element:oo,option:no};so===-1?eo.current=[...eo.current,ao]:eo.current.splice(so,0,ao)}return()=>{eo.current=eo.current.filter(ao=>ao.option.id!==no.id)}},[]);return{...to,options:eo.current.map(no=>no.option),registerOption:ro}};function useScrollOptionsIntoView(eo){const{activeOption:to}=eo,ro=reactExports.useRef(null);return reactExports.useEffect(()=>{if(ro.current&&to&&canUseDOM$3()){const no=ro.current.querySelector(`#${to.id}`);if(!no)return;const{offsetHeight:oo,offsetTop:io}=no,{offsetHeight:so,scrollTop:ao}=ro.current,lo=ioao+so,co=2;lo?ro.current.scrollTo(0,io-co):uo&&ro.current.scrollTo(0,io-so+oo+co)}},[to]),ro}const useSelection=eo=>{const{defaultSelectedOptions:to,multiselect:ro,onOptionSelect:no}=eo,[oo,io]=useControllableState({state:eo.selectedOptions,defaultState:to,initialState:[]}),so=reactExports.useCallback((lo,uo)=>{if(uo.disabled)return;let co=[uo.value];if(ro){const fo=oo.findIndex(ho=>ho===uo.value);fo>-1?co=[...oo.slice(0,fo),...oo.slice(fo+1)]:co=[...oo,uo.value]}io(co),no==null||no(lo,{optionValue:uo.value,optionText:uo.text,selectedOptions:co})},[no,ro,oo,io]);return{clearSelection:lo=>{io([]),no==null||no(lo,{optionValue:void 0,optionText:void 0,selectedOptions:[]})},selectOption:so,selectedOptions:oo}},useListbox_unstable=(eo,to)=>{const{multiselect:ro}=eo,no=useOptionCollection(),{getCount:oo,getOptionAtIndex:io,getIndexOfId:so}=no,{clearSelection:ao,selectedOptions:lo,selectOption:uo}=useSelection(eo),[co,fo]=reactExports.useState(),[ho,po]=reactExports.useState(!1),go=Ao=>{const Ro=getDropdownActionFromKey(Ao,{open:!0}),No=oo()-1,Mo=co?so(co.id):-1;let Do=Mo;switch(Ro){case"Select":case"CloseSelect":co&&uo(Ao,co);break;default:Do=getIndexFromAction(Ro,Mo,No)}Do!==Mo&&(Ao.preventDefault(),fo(io(Do)),po(!0))},vo=Ao=>{po(!1)},bo=useHasParentContext(ComboboxContext),xo=useContextSelector(ComboboxContext,Ao=>Ao.activeOption),_o=useContextSelector(ComboboxContext,Ao=>Ao.focusVisible),Eo=useContextSelector(ComboboxContext,Ao=>Ao.selectedOptions),So=useContextSelector(ComboboxContext,Ao=>Ao.selectOption),To=useContextSelector(ComboboxContext,Ao=>Ao.setActiveOption),wo=bo?{activeOption:xo,focusVisible:_o,selectedOptions:Eo,selectOption:So,setActiveOption:To}:{activeOption:co,focusVisible:ho,selectedOptions:lo,selectOption:uo,setActiveOption:fo},Co={components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:to,role:ro?"menu":"listbox","aria-activedescendant":bo||co==null?void 0:co.id,"aria-multiselectable":ro,tabIndex:0,...eo}),{elementType:"div"}),multiselect:ro,clearSelection:ao,...no,...wo},Oo=useScrollOptionsIntoView(Co);return Co.root.ref=useMergedRefs$1(Co.root.ref,Oo),Co.root.onKeyDown=useEventCallback$3(mergeCallbacks(Co.root.onKeyDown,go)),Co.root.onMouseOver=useEventCallback$3(mergeCallbacks(Co.root.onMouseOver,vo)),Co},renderListbox_unstable=(eo,to)=>jsx$1(ListboxContext.Provider,{value:to.listbox,children:jsx$1(eo.root,{})}),listboxClassNames={root:"fui-Listbox"},useStyles$v=__styles({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);}"]}),useListboxStyles_unstable=eo=>{const to=useStyles$v();return eo.root.className=mergeClasses(listboxClassNames.root,to.root,eo.root.className),eo},Listbox$1=reactExports.forwardRef((eo,to)=>{const ro=useListbox_unstable(eo,to),no=useListboxContextValues(ro);return useListboxStyles_unstable(ro),useCustomStyleHook("useListboxStyles_unstable")(ro),renderListbox_unstable(ro,no)});Listbox$1.displayName="Listbox";function getTextString(eo,to){if(eo!==void 0)return eo;let ro="",no=!1;return reactExports.Children.forEach(to,oo=>{typeof oo=="string"?ro+=oo:no=!0}),no&&console.warn("Provide a `text` prop to Option components when they contain non-string children."),ro}const useOption_unstable=(eo,to)=>{const{children:ro,disabled:no,text:oo,value:io}=eo,so=reactExports.useRef(null),ao=getTextString(oo,ro),lo=io??ao,uo=useId$1("fluent-option",eo.id),co=reactExports.useMemo(()=>({id:uo,disabled:no,text:ao,value:lo}),[uo,no,ao,lo]),fo=useContextSelector(ListboxContext,wo=>wo.focusVisible),ho=useContextSelector(ListboxContext,wo=>wo.multiselect),po=useContextSelector(ListboxContext,wo=>wo.registerOption),go=useContextSelector(ListboxContext,wo=>{const Co=wo.selectedOptions;return!!lo&&!!Co.find(Oo=>Oo===lo)}),vo=useContextSelector(ListboxContext,wo=>wo.selectOption),bo=useContextSelector(ListboxContext,wo=>wo.setActiveOption),xo=useContextSelector(ComboboxContext,wo=>wo.setOpen),_o=useContextSelector(ListboxContext,wo=>{var Co,Oo;return((Co=wo.activeOption)===null||Co===void 0?void 0:Co.id)!==void 0&&((Oo=wo.activeOption)===null||Oo===void 0?void 0:Oo.id)===uo});let Eo=reactExports.createElement(CheckmarkFilled,null);ho&&(Eo=go?reactExports.createElement(Checkmark12Filled,null):"");const So=wo=>{var Co;if(no){wo.preventDefault();return}bo(co),ho||xo==null||xo(wo,!1),vo(wo,co),(Co=eo.onClick)===null||Co===void 0||Co.call(eo,wo)};reactExports.useEffect(()=>{if(uo&&so.current)return po(co,so.current)},[uo,co,po]);const To=ho?{role:"menuitemcheckbox","aria-checked":go}:{role:"option","aria-selected":go};return{components:{root:"div",checkIcon:"span"},root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(to,so),"aria-disabled":no?"true":void 0,id:uo,...To,...eo,onClick:So}),{elementType:"div"}),checkIcon:optional(eo.checkIcon,{renderByDefault:!0,defaultProps:{"aria-hidden":"true",children:Eo},elementType:"span"}),active:_o,disabled:no,focusVisible:fo,multiselect:ho,selected:go}},renderOption_unstable=eo=>jsxs(eo.root,{children:[eo.checkIcon&&jsx$1(eo.checkIcon,{}),eo.root.children]}),optionClassNames={root:"fui-Option",checkIcon:"fui-Option__checkIcon"},useStyles$u=__styles({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)"}]]}),useOptionStyles_unstable=eo=>{const{active:to,disabled:ro,focusVisible:no,multiselect:oo,selected:io}=eo,so=useStyles$u();return eo.root.className=mergeClasses(optionClassNames.root,so.root,to&&no&&so.active,ro&&so.disabled,io&&so.selected,eo.root.className),eo.checkIcon&&(eo.checkIcon.className=mergeClasses(optionClassNames.checkIcon,so.checkIcon,oo&&so.multiselectCheck,io&&so.selectedCheck,io&&oo&&so.selectedMultiselectCheck,ro&&so.checkDisabled,eo.checkIcon.className)),eo},Option$3=reactExports.forwardRef((eo,to)=>{const ro=useOption_unstable(eo,to);return useOptionStyles_unstable(ro),useCustomStyleHook("useOptionStyles_unstable")(ro),renderOption_unstable(ro)});Option$3.displayName="Option";const useComboboxBaseState=eo=>{const{appearance:to="outline",children:ro,editable:no=!1,inlinePopup:oo=!1,mountNode:io=void 0,multiselect:so,onOpenChange:ao,size:lo="medium"}=eo,uo=useOptionCollection(),{getOptionAtIndex:co,getOptionsMatchingValue:fo}=uo,[ho,po]=reactExports.useState(),[go,vo]=reactExports.useState(!1),[bo,xo]=reactExports.useState(!1),_o=reactExports.useRef(!1),Eo=useSelection(eo),{selectedOptions:So}=Eo,To=useFirstMount(),[wo,Co]=useControllableState({state:eo.value,initialState:void 0}),Oo=reactExports.useMemo(()=>{if(wo!==void 0)return wo;if(To&&eo.defaultValue!==void 0)return eo.defaultValue;const Mo=fo(Do=>So.includes(Do)).map(Do=>Do.text);return so?no?"":Mo.join(", "):Mo[0]},[wo,no,fo,so,eo.defaultValue,So]),[Ao,Ro]=useControllableState({state:eo.open,defaultState:eo.defaultOpen,initialState:!1}),No=reactExports.useCallback((Mo,Do)=>{ao==null||ao(Mo,{open:Do}),Ro(Do)},[ao,Ro]);return reactExports.useEffect(()=>{if(Ao&&!ho)if(!so&&So.length>0){const Mo=fo(Do=>Do===So[0]).pop();Mo&&po(Mo)}else po(co(0));else Ao||po(void 0)},[Ao,ro]),{...uo,...Eo,activeOption:ho,appearance:to,focusVisible:go,hasFocus:bo,ignoreNextBlur:_o,inlinePopup:oo,mountNode:io,open:Ao,setActiveOption:po,setFocusVisible:vo,setHasFocus:xo,setOpen:No,setValue:Co,size:lo,value:Oo,multiselect:so}};function useComboboxPositioning(eo){const{positioning:to}=eo,no={position:"below",align:"start",offset:{crossAxis:0,mainAxis:2},fallbackPositions:["above","after","after-top","before","before-top"],matchTargetSize:"width",...resolvePositioningShorthand(to)},{targetRef:oo,containerRef:io}=usePositioning(no);return[io,oo]}function useListboxSlot(eo,to,ro){const{state:{multiselect:no},triggerRef:oo,defaultProps:io}=ro,so=useId$1("fluent-listbox",isResolvedShorthand(eo)?eo.id:void 0),ao=optional(eo,{renderByDefault:!0,elementType:Listbox$1,defaultProps:{id:so,multiselect:no,tabIndex:void 0,...io}}),lo=useEventCallback$3(mergeCallbacks(fo=>{fo.preventDefault()},ao==null?void 0:ao.onMouseDown)),uo=useEventCallback$3(mergeCallbacks(fo=>{var ho;fo.preventDefault(),(ho=oo.current)===null||ho===void 0||ho.focus()},ao==null?void 0:ao.onClick)),co=useMergedRefs$1(ao==null?void 0:ao.ref,to);return ao&&(ao.ref=co,ao.onMouseDown=lo,ao.onClick=uo),ao}function useTriggerSlot(eo,to,ro){const{state:{activeOption:no,getCount:oo,getIndexOfId:io,getOptionAtIndex:so,open:ao,selectOption:lo,setActiveOption:uo,setFocusVisible:co,setOpen:fo,multiselect:ho},defaultProps:po,elementType:go}=ro,vo=always(eo,{defaultProps:{type:"text","aria-expanded":ao,"aria-activedescendant":ao?no==null?void 0:no.id:void 0,role:"combobox",...typeof po=="object"&&po},elementType:go}),bo=reactExports.useRef(null);return vo.ref=useMergedRefs$1(bo,vo.ref,to),vo.onBlur=mergeCallbacks(xo=>{fo(xo,!1)},vo.onBlur),vo.onClick=mergeCallbacks(xo=>{fo(xo,!ao)},vo.onClick),vo.onKeyDown=mergeCallbacks(xo=>{const _o=getDropdownActionFromKey(xo,{open:ao,multiselect:ho}),Eo=oo()-1,So=no?io(no.id):-1;let To=So;switch(_o){case"Open":xo.preventDefault(),co(!0),fo(xo,!0);break;case"Close":xo.stopPropagation(),xo.preventDefault(),fo(xo,!1);break;case"CloseSelect":!ho&&!(no!=null&&no.disabled)&&fo(xo,!1);case"Select":no&&lo(xo,no),xo.preventDefault();break;case"Tab":!ho&&no&&lo(xo,no);break;default:To=getIndexFromAction(_o,So,Eo)}To!==So&&(xo.preventDefault(),uo(so(To)),co(!0))},vo.onKeyDown),vo.onMouseOver=mergeCallbacks(xo=>{co(!1)},vo.onMouseOver),vo}function useInputTriggerSlot(eo,to,ro){const{state:{open:no,value:oo,activeOption:io,selectOption:so,setValue:ao,setActiveOption:lo,setFocusVisible:uo,multiselect:co,selectedOptions:fo,clearSelection:ho,getOptionsMatchingText:po,getIndexOfId:go,setOpen:vo},freeform:bo,defaultProps:xo}=ro,_o=No=>{!no&&!bo&&(oo&&io&&oo.trim().toLowerCase()===(io==null?void 0:io.text.toLowerCase())&&so(No,io),ao(void 0))},Eo=No=>{const Mo=No==null?void 0:No.trim().toLowerCase();if(!Mo||Mo.length===0)return;const jo=po($o=>$o.toLowerCase().indexOf(Mo)===0);if(jo.length>1&&io){const $o=go(io.id),Lo=jo.find(Ho=>go(Ho.id)>=$o);return Lo??jo[0]}var Fo;return(Fo=jo[0])!==null&&Fo!==void 0?Fo:void 0},So=No=>{const Mo=No.target.value;ao(Mo);const Do=Eo(Mo);lo(Do),uo(!0),!co&&fo.length===1&&(Mo.length<1||!Do)&&ho(No)},To=useTriggerSlot(eo,to,{state:ro.state,defaultProps:xo,elementType:"input"});To.onChange=mergeCallbacks(To.onChange,So),To.onBlur=mergeCallbacks(To.onBlur,_o);const[wo,Co]=reactExports.useState(!1),Oo=reactExports.useRef(!1),Ao=To.onKeyDown,Ro=useEventCallback$3(No=>{!no&&getDropdownActionFromKey(No)==="Type"&&vo(No,!0),No.key===ArrowLeft||No.key===ArrowRight?Co(!0):Co(!1);const Mo=getDropdownActionFromKey(No,{open:no,multiselect:co});if(Mo==="Type"?Oo.current=!0:(Mo==="Open"&&No.key!==" "||Mo==="Next"||Mo==="Previous"||Mo==="First"||Mo==="Last"||Mo==="PageUp"||Mo==="PageDown")&&(Oo.current=!1),bo&&(Oo.current||!no)&&No.key===" "){var Do;eo==null||(Do=eo.onKeyDown)===null||Do===void 0||Do.call(eo,No);return}Ao==null||Ao(No)});return To.onKeyDown=Ro,wo&&(To["aria-activedescendant"]=void 0),To}const useCombobox_unstable=(eo,to)=>{eo=useFieldControlProps_unstable(eo,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const ro=useComboboxBaseState({...eo,editable:!0}),{open:no,selectOption:oo,setOpen:io,setValue:so,value:ao}=ro,[lo,uo]=useComboboxPositioning(eo),{disabled:co,freeform:fo,inlinePopup:ho}=eo,po=useId$1("combobox-"),{primary:go,root:vo}=getPartitionedNativeProps({props:eo,primarySlotTagName:"input",excludedPropNames:["children","size"]});ro.selectOption=(Ao,Ro)=>{so(void 0),oo(Ao,Ro)},ro.setOpen=(Ao,Ro)=>{co||(!Ro&&!fo&&so(void 0),io(Ao,Ro))};const bo=reactExports.useRef(null),xo=useListboxSlot(eo.listbox,lo,{state:ro,triggerRef:bo,defaultProps:{children:eo.children}});var _o;const Eo=useInputTriggerSlot((_o=eo.input)!==null&&_o!==void 0?_o:{},useMergedRefs$1(bo,to),{state:ro,freeform:fo,defaultProps:{type:"text",value:ao??"",...go}}),So=always(eo.root,{defaultProps:{"aria-owns":!ho&&no?xo==null?void 0:xo.id:void 0,...vo},elementType:"div"});So.ref=useMergedRefs$1(So.ref,uo);const To={components:{root:"div",input:"input",expandIcon:"span",listbox:Listbox$1},root:So,input:Eo,listbox:no?xo:void 0,expandIcon:optional(eo.expandIcon,{renderByDefault:!0,defaultProps:{"aria-expanded":no,children:reactExports.createElement(ChevronDownRegular,null),role:"button"},elementType:"span"}),...ro},{onMouseDown:wo}=To.expandIcon||{},Co=useEventCallback$3(mergeCallbacks(wo,Ao=>{var Ro;Ao.preventDefault(),To.setOpen(Ao,!To.open),(Ro=bo.current)===null||Ro===void 0||Ro.focus()}));if(To.expandIcon){To.expandIcon.onMouseDown=Co;const Ao=To.expandIcon["aria-label"]||To.expandIcon["aria-labelledby"],Ro="Open";if(!Ao)if(eo["aria-labelledby"]){var Oo;const No=(Oo=To.expandIcon.id)!==null&&Oo!==void 0?Oo:`${po}-chevron`,Mo=`${No} ${To.input["aria-labelledby"]}`;To.expandIcon["aria-label"]=Ro,To.expandIcon.id=No,To.expandIcon["aria-labelledby"]=Mo}else eo["aria-label"]?To.expandIcon["aria-label"]=`${Ro} ${eo["aria-label"]}`:To.expandIcon["aria-label"]=Ro}return To},renderCombobox_unstable=(eo,to)=>jsx$1(eo.root,{children:jsxs(ComboboxContext.Provider,{value:to.combobox,children:[jsx$1(eo.input,{}),eo.expandIcon&&jsx$1(eo.expandIcon,{}),eo.listbox&&(eo.inlinePopup?jsx$1(eo.listbox,{}):jsx$1(Portal$1,{mountNode:eo.mountNode,children:jsx$1(eo.listbox,{})}))]})}),comboboxClassNames={root:"fui-Combobox",input:"fui-Combobox__input",expandIcon:"fui-Combobox__expandIcon",listbox:"fui-Combobox__listbox"},useStyles$t=__styles({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);}"]}),useInputStyles$1=__styles({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;}"]}),useIconStyles$2=__styles({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;}"]}),useComboboxStyles_unstable=eo=>{const{appearance:to,open:ro,size:no}=eo,oo=`${eo.input["aria-invalid"]}`=="true",io=eo.input.disabled,so=useStyles$t(),ao=useIconStyles$2(),lo=useInputStyles$1();return eo.root.className=mergeClasses(comboboxClassNames.root,so.root,so[to],so[no],!io&&to==="outline"&&so.outlineInteractive,oo&&to!=="underline"&&so.invalid,oo&&to==="underline"&&so.invalidUnderline,io&&so.disabled,eo.root.className),eo.input.className=mergeClasses(comboboxClassNames.input,lo.input,lo[no],io&&lo.disabled,eo.input.className),eo.listbox&&(eo.listbox.className=mergeClasses(comboboxClassNames.listbox,so.listbox,!ro&&so.listboxCollapsed,eo.listbox.className)),eo.expandIcon&&(eo.expandIcon.className=mergeClasses(comboboxClassNames.expandIcon,ao.icon,ao[no],io&&ao.disabled,eo.expandIcon.className)),eo},Combobox=reactExports.forwardRef((eo,to)=>{const ro=useCombobox_unstable(eo,to),no=useComboboxContextValues(ro);return useComboboxStyles_unstable(ro),useCustomStyleHook("useComboboxStyles_unstable")(ro),renderCombobox_unstable(ro,no)});Combobox.displayName="Combobox";const useOptionGroup_unstable=(eo,to)=>{const ro=useId$1("group-label"),{label:no}=eo;return{components:{root:"div",label:"span"},root:always(getIntrinsicElementProps("div",{ref:to,role:"group","aria-labelledby":no?ro:void 0,...eo}),{elementType:"div"}),label:optional(no,{defaultProps:{id:ro,role:"presentation"},elementType:"span"})}},renderOptionGroup_unstable=eo=>jsxs(eo.root,{children:[eo.label&&jsx$1(eo.label,{children:eo.label.children}),eo.root.children]}),optionGroupClassNames={root:"fui-OptionGroup",label:"fui-OptionGroup__label"},useStyles$s=__styles({root:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",Belr9w4:"fiut8dr",B8lkq7l:"f1xxzjds",Gwp8xu:"fu19d3i",H93o2g:"flylvvz",eii1in:"f1ug5m11",om0q45:"f5642y",Hl9o3s:"ffdf81h",Bi9x0x4:"flgyru6",B0i58d9:["f1fjgumo","f1sgo0dv"],sl1c2c:"fwsdxdw",z4hxbw:["f1sgo0dv","f1fjgumo"]},label:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],sj55zd:"f11d4kpn",mc9l5x:"ftgm304",Be2twd7:"fy9rknc",Bhrd7zp:"fl43uef",Bg96gwp:"fwrc4pm",z8tnut:"f17mpqex",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"fdvome7",uwmqm3:["fk8j09s","fdw0yi8"]}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".fiut8dr{row-gap:var(--spacingHorizontalXXS);}",'.f1xxzjds:not(:last-child)::after{content:"";}',".fu19d3i:not(:last-child)::after{border-bottom-width:var(--strokeWidthThin);}",".flylvvz:not(:last-child)::after{border-bottom-style:solid;}",".f1ug5m11:not(:last-child)::after{border-bottom-color:var(--colorNeutralStroke2);}",".f5642y:not(:last-child)::after{display:block;}",".ffdf81h:not(:last-child)::after{padding-bottom:var(--spacingHorizontalXS);}",".flgyru6:not(:last-child)::after{margin-top:0;}",".f1fjgumo:not(:last-child)::after{margin-right:calc(var(--spacingHorizontalXS) * -1);}",".f1sgo0dv:not(:last-child)::after{margin-left:calc(var(--spacingHorizontalXS) * -1);}",".fwsdxdw:not(:last-child)::after{margin-bottom:var(--spacingVerticalXS);}",".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);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".ftgm304{display:block;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f17mpqex{padding-top:var(--spacingHorizontalS);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdvome7{padding-bottom:var(--spacingHorizontalS);}"]}),useOptionGroupStyles_unstable=eo=>{const to=useStyles$s();return eo.root.className=mergeClasses(optionGroupClassNames.root,to.root,eo.root.className),eo.label&&(eo.label.className=mergeClasses(optionGroupClassNames.label,to.label,eo.label.className)),eo},OptionGroup=reactExports.forwardRef((eo,to)=>{const ro=useOptionGroup_unstable(eo,to);return useOptionGroupStyles_unstable(ro),useCustomStyleHook("useOptionGroupStyles_unstable")(ro),renderOptionGroup_unstable(ro)});OptionGroup.displayName="OptionGroup";const renderDivider_unstable=eo=>jsx$1(eo.root,{children:eo.root.children!==void 0&&jsx$1(eo.wrapper,{children:eo.root.children})}),useDivider_unstable=(eo,to)=>{const{alignContent:ro="center",appearance:no="default",inset:oo=!1,vertical:io=!1,wrapper:so}=eo,ao=useId$1("divider-");return{alignContent:ro,appearance:no,inset:oo,vertical:io,components:{root:"div",wrapper:"div"},root:always(getIntrinsicElementProps("div",{role:"separator","aria-orientation":io?"vertical":"horizontal","aria-labelledby":eo.children?ao:void 0,...eo,ref:to}),{elementType:"div"}),wrapper:always(so,{defaultProps:{id:ao,children:eo.children},elementType:"div"})}},dividerClassNames={root:"fui-Divider",wrapper:"fui-Divider__wrapper"},useBaseStyles=__styles({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);}"]}),useHorizontalStyles=__styles({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;}"]}),useVerticalStyles=__styles({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;}"]}),useDividerStyles_unstable=eo=>{const to=useBaseStyles(),ro=useHorizontalStyles(),no=useVerticalStyles(),{alignContent:oo,appearance:io,inset:so,vertical:ao}=eo;return eo.root.className=mergeClasses(dividerClassNames.root,to.base,to[oo],io&&to[io],!ao&&ro.base,!ao&&so&&ro.inset,!ao&&ro[oo],ao&&no.base,ao&&so&&no.inset,ao&&no[oo],ao&&eo.root.children!==void 0&&no.withChildren,eo.root.children===void 0&&to.childless,eo.root.className),eo.wrapper&&(eo.wrapper.className=mergeClasses(dividerClassNames.wrapper,eo.wrapper.className)),eo},Divider$2=reactExports.forwardRef((eo,to)=>{const ro=useDivider_unstable(eo,to);return useDividerStyles_unstable(ro),useCustomStyleHook("useDividerStyles_unstable")(ro),renderDivider_unstable(ro)});Divider$2.displayName="Divider";const useInput_unstable=(eo,to)=>{eo=useFieldControlProps_unstable(eo,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const ro=useOverrides();var no;const{size:oo="medium",appearance:io=(no=ro.inputDefaultAppearance)!==null&&no!==void 0?no:"outline",onChange:so}=eo,[ao,lo]=useControllableState({state:eo.value,defaultState:eo.defaultValue,initialState:""}),uo=getPartitionedNativeProps({props:eo,primarySlotTagName:"input",excludedPropNames:["size","onChange","value","defaultValue"]}),co={size:oo,appearance:io,components:{root:"span",input:"input",contentBefore:"span",contentAfter:"span"},input:always(eo.input,{defaultProps:{type:"text",ref:to,...uo.primary},elementType:"input"}),contentAfter:optional(eo.contentAfter,{elementType:"span"}),contentBefore:optional(eo.contentBefore,{elementType:"span"}),root:always(eo.root,{defaultProps:uo.root,elementType:"span"})};return co.input.value=ao,co.input.onChange=useEventCallback$3(fo=>{const ho=fo.target.value;so==null||so(fo,{value:ho}),lo(ho)}),co},renderInput_unstable=eo=>jsxs(eo.root,{children:[eo.contentBefore&&jsx$1(eo.contentBefore,{}),jsx$1(eo.input,{}),eo.contentAfter&&jsx$1(eo.contentAfter,{})]}),inputClassNames={root:"fui-Input",input:"fui-Input__input",contentBefore:"fui-Input__contentBefore",contentAfter:"fui-Input__contentAfter"},useRootClassName=__resetStyles("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;}}"]}),useRootStyles$4=__styles({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;}"]}),useInputClassName=__resetStyles("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;}"]),useInputElementStyles=__styles({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);}"]}),useContentClassName=__resetStyles("r1572tok",null,[".r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;}",".r1572tok>svg{font-size:20px;}"]),useContentStyles$1=__styles({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;}"]}),useInputStyles_unstable=eo=>{const{size:to,appearance:ro}=eo,no=eo.input.disabled,oo=`${eo.input["aria-invalid"]}`=="true",io=ro.startsWith("filled"),so=useRootStyles$4(),ao=useInputElementStyles(),lo=useContentStyles$1();eo.root.className=mergeClasses(inputClassNames.root,useRootClassName(),so[to],so[ro],!no&&ro==="outline"&&so.outlineInteractive,!no&&ro==="underline"&&so.underlineInteractive,!no&&io&&so.filledInteractive,io&&so.filled,!no&&oo&&so.invalid,no&&so.disabled,eo.root.className),eo.input.className=mergeClasses(inputClassNames.input,useInputClassName(),to==="large"&&ao.large,no&&ao.disabled,eo.input.className);const uo=[useContentClassName(),no&&lo.disabled,lo[to]];return eo.contentBefore&&(eo.contentBefore.className=mergeClasses(inputClassNames.contentBefore,...uo,eo.contentBefore.className)),eo.contentAfter&&(eo.contentAfter.className=mergeClasses(inputClassNames.contentAfter,...uo,eo.contentAfter.className)),eo},Input=reactExports.forwardRef((eo,to)=>{const ro=useInput_unstable(eo,to);return useInputStyles_unstable(ro),useCustomStyleHook("useInputStyles_unstable")(ro),renderInput_unstable(ro)});Input.displayName="Input";const useLinkState_unstable=eo=>{const{disabled:to,disabledFocusable:ro}=eo,{onClick:no,onKeyDown:oo,role:io,tabIndex:so}=eo.root;return eo.root.as==="a"&&(eo.root.href=to?void 0:eo.root.href,(to||ro)&&(eo.root.role=io||"link")),(eo.root.as==="a"||eo.root.as==="span")&&(eo.root.tabIndex=so??(to&&!ro?void 0:0)),eo.root.onClick=ao=>{to||ro?ao.preventDefault():no==null||no(ao)},eo.root.onKeyDown=ao=>{(to||ro)&&(ao.key===Enter||ao.key===Space)?(ao.preventDefault(),ao.stopPropagation()):oo==null||oo(ao)},eo.disabled=to||ro,eo.root["aria-disabled"]=to||ro||void 0,eo.root.as==="button"&&(eo.root.disabled=to&&!ro),eo},useLink_unstable=(eo,to)=>{const ro=useBackgroundAppearance(),{appearance:no="default",disabled:oo=!1,disabledFocusable:io=!1,inline:so=!1}=eo,ao=eo.as||(eo.href?"a":"button"),lo={role:ao==="span"?"button":void 0,type:ao==="button"?"button":void 0,...eo,as:ao},uo={appearance:no,disabled:oo,disabledFocusable:io,inline:so,components:{root:ao},root:always(getIntrinsicElementProps(ao,{ref:to,...lo}),{elementType:ao}),backgroundAppearance:ro};return useLinkState_unstable(uo),uo},linkClassNames={root:"fui-Link"},useStyles$r=__styles({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);}"]}),useLinkStyles_unstable=eo=>{const to=useStyles$r(),{appearance:ro,disabled:no,inline:oo,root:io,backgroundAppearance:so}=eo;return eo.root.className=mergeClasses(linkClassNames.root,to.root,to.focusIndicator,io.as==="a"&&io.href&&to.href,io.as==="button"&&to.button,ro==="subtle"&&to.subtle,so==="inverted"&&to.inverted,oo&&to.inline,no&&to.disabled,eo.root.className),eo},renderLink_unstable=eo=>jsx$1(eo.root,{}),Link$1=reactExports.forwardRef((eo,to)=>{const ro=useLink_unstable(eo,to);return useLinkStyles_unstable(ro),renderLink_unstable(ro)});Link$1.displayName="Link";const SkeletonContext=reactExports.createContext(void 0),skeletonContextDefaultValue={},SkeletonContextProvider=SkeletonContext.Provider,useSkeletonContext=()=>{var eo;return(eo=reactExports.useContext(SkeletonContext))!==null&&eo!==void 0?eo:skeletonContextDefaultValue},useSkeleton_unstable=(eo,to)=>{const{animation:ro,appearance:no}=useSkeletonContext(),{animation:oo=ro??"wave",appearance:io=no??"opaque"}=eo,so=always(getIntrinsicElementProps("div",{ref:to,role:"progressbar","aria-busy":!0,"aria-label":"Loading Content",...eo}),{elementType:"div"});return{animation:oo,appearance:io,components:{root:"div"},root:so}},renderSkeleton_unstable=(eo,to)=>jsx$1(SkeletonContextProvider,{value:to.skeletonGroup,children:jsx$1(eo.root,{})}),skeletonClassNames={root:"fui-Skeleton"},useSkeletonStyles_unstable=eo=>(eo.root.className=mergeClasses(skeletonClassNames.root,eo.root.className),eo),useSkeletonContextValues=eo=>{const{animation:to,appearance:ro}=eo;return{skeletonGroup:reactExports.useMemo(()=>({animation:to,appearance:ro}),[to,ro])}},Skeleton=reactExports.forwardRef((eo,to)=>{const ro=useSkeleton_unstable(eo,to),no=useSkeletonContextValues(ro);return useSkeletonStyles_unstable(ro),renderSkeleton_unstable(ro,no)});Skeleton.displayName="Skeleton";const useSkeletonItem_unstable=(eo,to)=>{const{animation:ro,appearance:no}=useSkeletonContext(),{animation:oo=ro??"wave",appearance:io=no??"opaque",size:so=16,shape:ao="rectangle"}=eo,lo=always(getIntrinsicElementProps("div",{ref:to,...eo}),{elementType:"div"});return{appearance:io,animation:oo,size:so,shape:ao,components:{root:"div"},root:lo}},renderSkeletonItem_unstable=eo=>jsx$1(eo.root,{}),skeletonItemClassNames={root:"fui-SkeletonItem"},useStyles$q=__styles({root:{qhf8xq:"f10pi13n",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",Bkjc3bi:"f1qx3921",B8a6bjv:"fj9j8l8",Bpptf2m:"f1b6djjb",Bgh53k4:"f1dsdmen",w3vfg9:"f1cpbl36",vin17d:"f1a27w2r",Ezkn3b:"f452v7t",Gqtpxc:"f4akx1t",B3vm3ge:"f18p5put"},wave:{Bv12yb3:"fj20wtk",Bcmaq0h:["f101ziu5","f152emvt"],Bpep1pd:"f9jxvrw"},waveRtl:{Bv12yb3:"f105t0nc",Bcmaq0h:["f101ziu5","f152emvt"],Bpep1pd:"f9jxvrw"},pulse:{Bv12yb3:"fnm2mpv",vin17d:"f1iuewzk",De3pzq:"f1gjxg63"},translucent:{Bcmaq0h:["fss7axp","f4160cw"]},translucentPulse:{De3pzq:"f162mh4z"}},{d:[".f10pi13n{position:relative;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1qx3921{background-size:300% 100%;}",".fj9j8l8{background-position-x:center;}",".f1b6djjb{background-position-y:center;}",".f1dsdmen{background-attachment:fixed;}",".f1cpbl36{animation-iteration-count:infinite;}",".f1a27w2r{animation-duration:3s;}",".f452v7t{animation-timing-function:linear;}",".fj20wtk{animation-name:fma800j;}",`.f101ziu5{background-image:linear-gradient( + to right, + var(--colorNeutralStencil1) 0%, + var(--colorNeutralStencil2) 50%, + var(--colorNeutralStencil1) 100%);}`,`.f152emvt{background-image:linear-gradient( + to left, + var(--colorNeutralStencil1) 0%, + var(--colorNeutralStencil2) 50%, + var(--colorNeutralStencil1) 100%);}`,".f105t0nc{animation-name:fj9wi3p;}",".fnm2mpv{animation-name:f12o7gg6;}",".f1iuewzk{animation-duration:1s;}",".f1gjxg63{background-color:var(--colorNeutralStencil1);}",`.fss7axp{background-image:linear-gradient( + to right, + var(--colorNeutralStencil1Alpha) 0%, + var(--colorNeutralStencil2Alpha) 50%, + var(--colorNeutralStencil1Alpha) 100%);}`,`.f4160cw{background-image:linear-gradient( + to left, + var(--colorNeutralStencil1Alpha) 0%, + var(--colorNeutralStencil2Alpha) 50%, + var(--colorNeutralStencil1Alpha) 100%);}`,".f162mh4z{background-color:var(--colorNeutralStencil1Alpha);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f4akx1t{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f18p5put{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (forced-colors: active){.f9jxvrw{background-color:WindowText;}}",{m:"screen and (forced-colors: active)"}]],k:["@keyframes fma800j{from{background-position-x:300%;}to{background-position-x:0%;}}","@keyframes fj9wi3p{from{background-position-x:0%;}to{background-position-x:300%;}}","@keyframes f12o7gg6{0%{opacity:1;}50%{opacity:0.4;}100%{opacity:1;}}"]}),useRectangleStyles=__styles({8:{Bqenvij:"f1x82gua"},12:{Bqenvij:"fvblgha"},16:{Bqenvij:"fd461yt"},20:{Bqenvij:"fjamq6b"},24:{Bqenvij:"frvgh55"},28:{Bqenvij:"fxldao9"},32:{Bqenvij:"f1d2rq10"},36:{Bqenvij:"f8ljn23"},40:{Bqenvij:"fbhnoac"},48:{Bqenvij:"ff2sm71"},56:{Bqenvij:"fzki0ko"},64:{Bqenvij:"f16k9i2m"},72:{Bqenvij:"f1shusfg"},96:{Bqenvij:"fypu0ge"},120:{Bqenvij:"fjr5b71"},128:{Bqenvij:"fele2au"},root:{a9b677:"fly5x3f",Bbmb7ep:["fff7au0","f1bjk9e1"],Beyfa6y:["f1bjk9e1","fff7au0"],B7oj6ja:["fwsfkhu","f8wkphi"],Btl43ni:["f8wkphi","fwsfkhu"]}},{d:[".f1x82gua{height:8px;}",".fvblgha{height:12px;}",".fd461yt{height:16px;}",".fjamq6b{height:20px;}",".frvgh55{height:24px;}",".fxldao9{height:28px;}",".f1d2rq10{height:32px;}",".f8ljn23{height:36px;}",".fbhnoac{height:40px;}",".ff2sm71{height:48px;}",".fzki0ko{height:56px;}",".f16k9i2m{height:64px;}",".f1shusfg{height:72px;}",".fypu0ge{height:96px;}",".fjr5b71{height:120px;}",".fele2au{height:128px;}",".fly5x3f{width:100%;}",".fff7au0{border-bottom-right-radius:4px;}",".f1bjk9e1{border-bottom-left-radius:4px;}",".fwsfkhu{border-top-right-radius:4px;}",".f8wkphi{border-top-left-radius:4px;}"]}),useSizeStyles=__styles({8:{a9b677:"f1o3cbw4",Bqenvij:"f1x82gua"},12:{a9b677:"frx94fk",Bqenvij:"fvblgha"},16:{a9b677:"fjw5fx7",Bqenvij:"fd461yt"},20:{a9b677:"f64fuq3",Bqenvij:"fjamq6b"},24:{a9b677:"fq4mcun",Bqenvij:"frvgh55"},28:{a9b677:"f1w9dchk",Bqenvij:"fxldao9"},32:{a9b677:"f1szoe96",Bqenvij:"f1d2rq10"},36:{a9b677:"fpdz1er",Bqenvij:"f8ljn23"},40:{a9b677:"feqmc2u",Bqenvij:"fbhnoac"},48:{a9b677:"f124akge",Bqenvij:"ff2sm71"},56:{a9b677:"f1u66zr1",Bqenvij:"fzki0ko"},64:{a9b677:"fa9ln6p",Bqenvij:"f16k9i2m"},72:{a9b677:"fhcae8x",Bqenvij:"f1shusfg"},96:{a9b677:"f1kyr2gn",Bqenvij:"fypu0ge"},120:{a9b677:"fwfqyga",Bqenvij:"fjr5b71"},128:{a9b677:"f1iksgmy",Bqenvij:"fele2au"}},{d:[".f1o3cbw4{width:8px;}",".f1x82gua{height:8px;}",".frx94fk{width:12px;}",".fvblgha{height:12px;}",".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".f64fuq3{width:20px;}",".fjamq6b{height:20px;}",".fq4mcun{width:24px;}",".frvgh55{height:24px;}",".f1w9dchk{width:28px;}",".fxldao9{height:28px;}",".f1szoe96{width:32px;}",".f1d2rq10{height:32px;}",".fpdz1er{width:36px;}",".f8ljn23{height:36px;}",".feqmc2u{width:40px;}",".fbhnoac{height:40px;}",".f124akge{width:48px;}",".ff2sm71{height:48px;}",".f1u66zr1{width:56px;}",".fzki0ko{height:56px;}",".fa9ln6p{width:64px;}",".f16k9i2m{height:64px;}",".fhcae8x{width:72px;}",".f1shusfg{height:72px;}",".f1kyr2gn{width:96px;}",".fypu0ge{height:96px;}",".fwfqyga{width:120px;}",".fjr5b71{height:120px;}",".f1iksgmy{width:128px;}",".fele2au{height:128px;}"]}),useCircleSizeStyles=__styles({root:{Bbmb7ep:["fqgqgel","fchfifz"],Beyfa6y:["fchfifz","fqgqgel"],B7oj6ja:["fc7b1hi","f1dpx5h9"],Btl43ni:["f1dpx5h9","fc7b1hi"]}},{d:[".fqgqgel{border-bottom-right-radius:50%;}",".fchfifz{border-bottom-left-radius:50%;}",".fc7b1hi{border-top-right-radius:50%;}",".f1dpx5h9{border-top-left-radius:50%;}"]}),useSkeletonItemStyles_unstable=eo=>{const{animation:to,appearance:ro,size:no,shape:oo}=eo,{dir:io}=useFluent(),so=useStyles$q(),ao=useRectangleStyles(),lo=useSizeStyles(),uo=useCircleSizeStyles();return eo.root.className=mergeClasses(skeletonItemClassNames.root,so.root,to==="wave"&&so.wave,to==="wave"&&io==="rtl"&&so.waveRtl,to==="pulse"&&so.pulse,ro==="translucent"&&so.translucent,to==="pulse"&&ro==="translucent"&&so.translucentPulse,oo==="rectangle"&&ao.root,oo==="rectangle"&&ao[no],oo==="square"&&lo[no],oo==="circle"&&uo.root,oo==="circle"&&lo[no],eo.root.className),eo},SkeletonItem=reactExports.forwardRef((eo,to)=>{const ro=useSkeletonItem_unstable(eo,to);return useSkeletonItemStyles_unstable(ro),renderSkeletonItem_unstable(ro)});SkeletonItem.displayName="SkeletonItem";const DefaultSvg=()=>reactExports.createElement("svg",{className:"fui-Spinner__Progressbar"},reactExports.createElement("circle",{className:"fui-Spinner__Track"}),reactExports.createElement("circle",{className:"fui-Spinner__Tail"})),SpinnerContext=reactExports.createContext(void 0),SpinnerContextDefaultValue={};SpinnerContext.Provider;const useSpinnerContext=()=>{var eo;return(eo=reactExports.useContext(SpinnerContext))!==null&&eo!==void 0?eo:SpinnerContextDefaultValue},useSpinner_unstable=(eo,to)=>{const{size:ro}=useSpinnerContext(),{appearance:no="primary",labelPosition:oo="after",size:io=ro??"medium",delay:so=0}=eo,ao=useId$1("spinner"),{role:lo="progressbar",tabIndex:uo,...co}=eo,fo=always(getIntrinsicElementProps("div",{ref:to,role:lo,...co},["size"]),{elementType:"div"}),[ho,po]=reactExports.useState(!0),[go,vo]=useTimeout();reactExports.useEffect(()=>{if(!(so<=0))return po(!1),go(()=>{po(!0)},so),()=>{vo()}},[go,vo,so]);const bo=optional(eo.label,{defaultProps:{id:ao},renderByDefault:!1,elementType:Label}),xo=optional(eo.spinner,{renderByDefault:!0,defaultProps:{children:reactExports.createElement(DefaultSvg,null),tabIndex:uo},elementType:"span"});return bo&&fo&&!fo["aria-labelledby"]&&(fo["aria-labelledby"]=bo.id),{appearance:no,delay:so,labelPosition:oo,size:io,shouldRenderSpinner:ho,components:{root:"div",spinner:"span",label:Label},root:fo,spinner:xo,label:bo}},renderSpinner_unstable=eo=>{const{labelPosition:to,shouldRenderSpinner:ro}=eo;return jsxs(eo.root,{children:[eo.label&&ro&&(to==="above"||to==="before")&&jsx$1(eo.label,{}),eo.spinner&&ro&&jsx$1(eo.spinner,{}),eo.label&&ro&&(to==="below"||to==="after")&&jsx$1(eo.label,{})]})},spinnerClassNames={root:"fui-Spinner",spinner:"fui-Spinner__spinner",label:"fui-Spinner__label"},useRootStyles$3=__styles({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;}"]}),useLoaderStyles=__styles({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)"}]]}),useTrackStyles=__styles({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)"}]]}),useLabelStyles$1=__styles({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);}"]}),useSpinnerStyles_unstable=eo=>{const{labelPosition:to,size:ro,appearance:no="primary"}=eo,oo=useRootStyles$3(),io=useLoaderStyles(),so=useLabelStyles$1(),ao=useTrackStyles();return eo.root.className=mergeClasses(spinnerClassNames.root,oo.root,(to==="above"||to==="below")&&oo.vertical,(to==="before"||to==="after")&&oo.horizontal,eo.root.className),eo.spinner&&(eo.spinner.className=mergeClasses(spinnerClassNames.spinner,io.spinnerSVG,io[ro],ao[no],eo.spinner.className)),eo.label&&(eo.label.className=mergeClasses(spinnerClassNames.label,so[ro],so[no],eo.label.className)),eo},Spinner=reactExports.forwardRef((eo,to)=>{const ro=useSpinner_unstable(eo,to);return useSpinnerStyles_unstable(ro),useCustomStyleHook("useSpinnerStyles_unstable")(ro),renderSpinner_unstable(ro)});Spinner.displayName="Spinner";const useSwitch_unstable=(eo,to)=>{eo=useFieldControlProps_unstable(eo,{supportsLabelFor:!0,supportsRequired:!0});const{checked:ro,defaultChecked:no,disabled:oo,labelPosition:io="after",onChange:so,required:ao}=eo,lo=getPartitionedNativeProps({props:eo,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange"]}),uo=useId$1("switch-",lo.primary.id),co=always(eo.root,{defaultProps:{ref:useFocusWithin(),...lo.root},elementType:"div"}),fo=always(eo.indicator,{defaultProps:{"aria-hidden":!0,children:reactExports.createElement(CircleFilled,null)},elementType:"div"}),ho=always(eo.input,{defaultProps:{checked:ro,defaultChecked:no,id:uo,ref:to,role:"switch",type:"checkbox",...lo.primary},elementType:"input"});ho.onChange=mergeCallbacks(ho.onChange,go=>so==null?void 0:so(go,{checked:go.currentTarget.checked}));const po=optional(eo.label,{defaultProps:{disabled:oo,htmlFor:uo,required:ao,size:"medium"},elementType:Label});return{labelPosition:io,components:{root:"div",indicator:"div",input:"input",label:Label},root:co,indicator:fo,input:ho,label:po}},renderSwitch_unstable=eo=>{const{labelPosition:to}=eo;return jsxs(eo.root,{children:[jsx$1(eo.input,{}),to!=="after"&&eo.label&&jsx$1(eo.label,{}),jsx$1(eo.indicator,{}),to==="after"&&eo.label&&jsx$1(eo.label,{})]})},switchClassNames={root:"fui-Switch",indicator:"fui-Switch__indicator",input:"fui-Switch__input",label:"fui-Switch__label"},useRootBaseClassName=__resetStyles("r1i56xw0","rk4yt03",{r:[".r1i56xw0{align-items:flex-start;box-sizing:border-box;display:inline-flex;position:relative;}",".r1i56xw0:focus{outline-style:none;}",".r1i56xw0:focus-visible{outline-style:none;}",".r1i56xw0[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1i56xw0[data-fui-focus-within]:focus-within::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);}',".rk4yt03{align-items:flex-start;box-sizing:border-box;display:inline-flex;position:relative;}",".rk4yt03:focus{outline-style:none;}",".rk4yt03:focus-visible{outline-style:none;}",".rk4yt03[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rk4yt03[data-fui-focus-within]:focus-within::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){.r1i56xw0[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rk4yt03[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),useRootStyles$2=__styles({vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f1vx9l62{flex-direction:column;}"]}),useIndicatorBaseClassName=__resetStyles("r13wlxb8",null,{r:[".r13wlxb8{border-radius:var(--borderRadiusCircular);border:1px solid;line-height:0;box-sizing:border-box;fill:currentColor;flex-shrink:0;font-size:18px;height:20px;margin:var(--spacingVerticalS) var(--spacingHorizontalS);pointer-events:none;transition-duration:var(--durationNormal);transition-timing-function:var(--curveEasyEase);transition-property:background,border,color;width:40px;}",".r13wlxb8>*{transition-duration:var(--durationNormal);transition-timing-function:var(--curveEasyEase);transition-property:transform;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r13wlxb8{transition-duration:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r13wlxb8>*{transition-duration:0.01ms;}}"]}),useIndicatorStyles=__styles({labelAbove:{B6of3ja:"f1hu3pq6"}},{d:[".f1hu3pq6{margin-top:0;}"]}),useInputBaseClassName=__resetStyles("rw4brat","r1f4bxyr",{r:[".rw4brat{box-sizing:border-box;cursor:pointer;height:100%;margin:0;opacity:0;position:absolute;width:calc(40px + 2 * var(--spacingHorizontalS));}",".rw4brat:checked~.fui-Switch__indicator>*{transform:translateX(20px);}",".rw4brat:disabled{cursor:default;}",".rw4brat:disabled~.fui-Switch__indicator{color:var(--colorNeutralForegroundDisabled);}",".rw4brat:disabled~.fui-Switch__label{cursor:default;color:var(--colorNeutralForegroundDisabled);}",".rw4brat:enabled:not(:checked)~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessible);border-color:var(--colorNeutralStrokeAccessible);}",".rw4brat:enabled:not(:checked)~.fui-Switch__label{color:var(--colorNeutralForeground1);}",".rw4brat:enabled:not(:checked):hover~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessibleHover);border-color:var(--colorNeutralStrokeAccessibleHover);}",".rw4brat:enabled:not(:checked):hover:active~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessiblePressed);border-color:var(--colorNeutralStrokeAccessiblePressed);}",".rw4brat:enabled:checked~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackground);color:var(--colorNeutralForegroundInverted);border-color:var(--colorTransparentStroke);}",".rw4brat:enabled:checked:hover~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundHover);border-color:var(--colorTransparentStrokeInteractive);}",".rw4brat:enabled:checked:hover:active~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundPressed);border-color:var(--colorTransparentStrokeInteractive);}",".rw4brat:disabled:not(:checked)~.fui-Switch__indicator{border-color:var(--colorNeutralStrokeDisabled);}",".rw4brat:disabled:checked~.fui-Switch__indicator{background-color:var(--colorNeutralBackgroundDisabled);border-color:var(--colorTransparentStrokeDisabled);}",".r1f4bxyr{box-sizing:border-box;cursor:pointer;height:100%;margin:0;opacity:0;position:absolute;width:calc(40px + 2 * var(--spacingHorizontalS));}",".r1f4bxyr:checked~.fui-Switch__indicator>*{transform:translateX(-20px);}",".r1f4bxyr:disabled{cursor:default;}",".r1f4bxyr:disabled~.fui-Switch__indicator{color:var(--colorNeutralForegroundDisabled);}",".r1f4bxyr:disabled~.fui-Switch__label{cursor:default;color:var(--colorNeutralForegroundDisabled);}",".r1f4bxyr:enabled:not(:checked)~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessible);border-color:var(--colorNeutralStrokeAccessible);}",".r1f4bxyr:enabled:not(:checked)~.fui-Switch__label{color:var(--colorNeutralForeground1);}",".r1f4bxyr:enabled:not(:checked):hover~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessibleHover);border-color:var(--colorNeutralStrokeAccessibleHover);}",".r1f4bxyr:enabled:not(:checked):hover:active~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessiblePressed);border-color:var(--colorNeutralStrokeAccessiblePressed);}",".r1f4bxyr:enabled:checked~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackground);color:var(--colorNeutralForegroundInverted);border-color:var(--colorTransparentStroke);}",".r1f4bxyr:enabled:checked:hover~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundHover);border-color:var(--colorTransparentStrokeInteractive);}",".r1f4bxyr:enabled:checked:hover:active~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundPressed);border-color:var(--colorTransparentStrokeInteractive);}",".r1f4bxyr:disabled:not(:checked)~.fui-Switch__indicator{border-color:var(--colorNeutralStrokeDisabled);}",".r1f4bxyr:disabled:checked~.fui-Switch__indicator{background-color:var(--colorNeutralBackgroundDisabled);border-color:var(--colorTransparentStrokeDisabled);}"],s:["@media (forced-colors: active){.rw4brat:disabled~.fui-Switch__indicator{color:GrayText;border-color:GrayText;}.rw4brat:disabled~.fui-Switch__label{color:GrayText;}.rw4brat:enabled:checked:hover~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.rw4brat:enabled:checked~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}}","@media (forced-colors: active){.r1f4bxyr:disabled~.fui-Switch__indicator{color:GrayText;border-color:GrayText;}.r1f4bxyr:disabled~.fui-Switch__label{color:GrayText;}.r1f4bxyr:enabled:checked:hover~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.r1f4bxyr:enabled:checked~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}}"]}),useInputStyles=__styles({before:{j35jbq:["f1e31b4d","f1vgc2s3"],Bhzewxz:"f15twtuk"},after:{oyh7mz:["f1vgc2s3","f1e31b4d"],Bhzewxz:"f15twtuk"},above:{B5kzvoi:"f1yab3r1",Bqenvij:"f1aar7gd",a9b677:"fly5x3f"}},{d:[".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f15twtuk{top:0;}",".f1yab3r1{bottom:0;}",".f1aar7gd{height:calc(20px + var(--spacingVerticalS));}",".fly5x3f{width:100%;}"]}),useLabelStyles=__styles({base:{Bceei9c:"f1k6fduh",jrapky:"f49ad5g",B6of3ja:"f1xlvstr",z8tnut:"f1kwiid1",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f5b47ha",uwmqm3:["f1f5gg8d","f1vdfbxk"]},above:{z8tnut:"f1ywm7hm",Byoj8tv:"f14wxoun",a9b677:"fly5x3f"},after:{uwmqm3:["fruq291","f7x41pl"]},before:{z189sj:["f7x41pl","fruq291"]}},{d:[".f1k6fduh{cursor:pointer;}",".f49ad5g{margin-bottom:calc((20px - var(--lineHeightBase300)) / 2);}",".f1xlvstr{margin-top:calc((20px - var(--lineHeightBase300)) / 2);}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f14wxoun{padding-bottom:var(--spacingVerticalXS);}",".fly5x3f{width:100%;}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}"]}),useSwitchStyles_unstable=eo=>{const to=useRootBaseClassName(),ro=useRootStyles$2(),no=useIndicatorBaseClassName(),oo=useIndicatorStyles(),io=useInputBaseClassName(),so=useInputStyles(),ao=useLabelStyles(),{label:lo,labelPosition:uo}=eo;return eo.root.className=mergeClasses(switchClassNames.root,to,uo==="above"&&ro.vertical,eo.root.className),eo.indicator.className=mergeClasses(switchClassNames.indicator,no,lo&&uo==="above"&&oo.labelAbove,eo.indicator.className),eo.input.className=mergeClasses(switchClassNames.input,io,lo&&so[uo],eo.input.className),eo.label&&(eo.label.className=mergeClasses(switchClassNames.label,ao.base,ao[uo],eo.label.className)),eo},Switch=reactExports.forwardRef((eo,to)=>{const ro=useSwitch_unstable(eo,to);return useSwitchStyles_unstable(ro),useCustomStyleHook("useSwitchStyles_unstable")(ro),renderSwitch_unstable(ro)});Switch.displayName="Switch";const tabListContextDefaultValue={appearance:"transparent",reserveSelectedTabSpace:!0,selectTabOnFocus:!1,disabled:!1,selectedValue:void 0,onRegister:()=>{},onUnregister:()=>{},onSelect:()=>{},getRegisteredTabs:()=>({registeredTabs:{}}),size:"medium",vertical:!1},TabListContext=createContext(void 0),TabListProvider=TabListContext.Provider,useTabListContext_unstable=eo=>useContextSelector(TabListContext,(to=tabListContextDefaultValue)=>eo(to)),useTab_unstable=(eo,to)=>{const{content:ro,disabled:no=!1,icon:oo,onClick:io,onFocus:so,value:ao}=eo,lo=useTabListContext_unstable(Ro=>Ro.appearance),uo=useTabListContext_unstable(Ro=>Ro.reserveSelectedTabSpace),co=useTabListContext_unstable(Ro=>Ro.selectTabOnFocus),fo=useTabListContext_unstable(Ro=>Ro.disabled),ho=useTabListContext_unstable(Ro=>Ro.selectedValue===ao),po=useTabListContext_unstable(Ro=>Ro.onRegister),go=useTabListContext_unstable(Ro=>Ro.onUnregister),vo=useTabListContext_unstable(Ro=>Ro.onSelect),bo=useTabListContext_unstable(Ro=>Ro.size),xo=useTabListContext_unstable(Ro=>!!Ro.vertical),_o=fo||no,Eo=reactExports.useRef(null),So=Ro=>vo(Ro,{value:ao}),To=useEventCallback$3(mergeCallbacks(io,So)),wo=useEventCallback$3(mergeCallbacks(so,So));reactExports.useEffect(()=>(po({value:ao,ref:Eo}),()=>{go({value:ao,ref:Eo})}),[po,go,Eo,ao]);const Co=optional(oo,{elementType:"span"}),Oo=always(ro,{defaultProps:{children:eo.children},elementType:"span"}),Ao=!!(Co!=null&&Co.children&&!Oo.children);return{components:{root:"button",icon:"span",content:"span",contentReservedSpace:"span"},root:always(getIntrinsicElementProps("button",{ref:useMergedRefs$1(to,Eo),role:"tab",type:"button","aria-selected":_o?void 0:`${ho}`,...eo,disabled:_o,onClick:To,onFocus:co?wo:so}),{elementType:"button"}),icon:Co,iconOnly:Ao,content:Oo,contentReservedSpace:optional(ro,{renderByDefault:!ho&&!Ao&&uo,defaultProps:{children:eo.children},elementType:"span"}),appearance:lo,disabled:_o,selected:ho,size:bo,value:ao,vertical:xo}},renderTab_unstable=eo=>jsxs(eo.root,{children:[eo.icon&&jsx$1(eo.icon,{}),!eo.iconOnly&&jsx$1(eo.content,{}),eo.contentReservedSpace&&jsx$1(eo.contentReservedSpace,{})]}),tabIndicatorCssVars_unstable={offsetVar:"--fui-Tab__indicator--offset",scaleVar:"--fui-Tab__indicator--scale"},useActiveIndicatorStyles$1=__styles({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)"}]]}),calculateTabRect=eo=>{if(eo){var to;const ro=((to=eo.parentElement)===null||to===void 0?void 0:to.getBoundingClientRect())||{x:0,y:0,width:0,height:0},no=eo.getBoundingClientRect();return{x:no.x-ro.x,y:no.y-ro.y,width:no.width,height:no.height}}},getRegisteredTabRect=(eo,to)=>{var ro;const no=to!=null?(ro=eo[JSON.stringify(to)])===null||ro===void 0?void 0:ro.ref.current:void 0;return no?calculateTabRect(no):void 0},useTabAnimatedIndicatorStyles_unstable=eo=>{const{disabled:to,selected:ro,vertical:no}=eo,oo=useActiveIndicatorStyles$1(),[io,so]=reactExports.useState(),[ao,lo]=reactExports.useState({offset:0,scale:1}),uo=useTabListContext_unstable(ho=>ho.getRegisteredTabs);if(reactExports.useEffect(()=>{io&&lo({offset:0,scale:1})},[io]),ro){const{previousSelectedValue:ho,selectedValue:po,registeredTabs:go}=uo();if(ho&&io!==ho){const vo=getRegisteredTabRect(go,ho),bo=getRegisteredTabRect(go,po);if(bo&&vo){const xo=no?vo.y-bo.y:vo.x-bo.x,_o=no?vo.height/bo.height:vo.width/bo.width;lo({offset:xo,scale:_o}),so(ho)}}}else io&&so(void 0);if(to)return eo;const co=ao.offset===0&&ao.scale===1;eo.root.className=mergeClasses(eo.root.className,ro&&oo.base,ro&&co&&oo.animated,ro&&(no?oo.vertical:oo.horizontal));const fo={[tabIndicatorCssVars_unstable.offsetVar]:`${ao.offset}px`,[tabIndicatorCssVars_unstable.scaleVar]:`${ao.scale}`};return eo.root.style={...fo,...eo.root.style},eo},tabClassNames={root:"fui-Tab",icon:"fui-Tab__icon",content:"fui-Tab__content"},reservedSpaceClassNames={content:"fui-Tab__content--reserved-space"},useRootStyles$1=__styles({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);}"]}),useFocusStyles=__styles({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;}"]}),usePendingIndicatorStyles=__styles({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);}"]}),useActiveIndicatorStyles=__styles({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)"}]]}),useIconStyles$1=__styles({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;}"]}),useContentStyles=__styles({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;}"]}),useTabStyles_unstable=eo=>{const to=useRootStyles$1(),ro=useFocusStyles(),no=usePendingIndicatorStyles(),oo=useActiveIndicatorStyles(),io=useIconStyles$1(),so=useContentStyles(),{appearance:ao,disabled:lo,selected:uo,size:co,vertical:fo}=eo;return eo.root.className=mergeClasses(tabClassNames.root,to.base,fo?to.vertical:to.horizontal,co==="small"&&(fo?to.smallVertical:to.smallHorizontal),co==="medium"&&(fo?to.mediumVertical:to.mediumHorizontal),co==="large"&&(fo?to.largeVertical:to.largeHorizontal),ro.base,!lo&&ao==="subtle"&&to.subtle,!lo&&ao==="transparent"&&to.transparent,!lo&&uo&&to.selected,lo&&to.disabled,no.base,co==="small"&&(fo?no.smallVertical:no.smallHorizontal),co==="medium"&&(fo?no.mediumVertical:no.mediumHorizontal),co==="large"&&(fo?no.largeVertical:no.largeHorizontal),lo&&no.disabled,uo&&oo.base,uo&&!lo&&oo.selected,uo&&co==="small"&&(fo?oo.smallVertical:oo.smallHorizontal),uo&&co==="medium"&&(fo?oo.mediumVertical:oo.mediumHorizontal),uo&&co==="large"&&(fo?oo.largeVertical:oo.largeHorizontal),uo&&lo&&oo.disabled,eo.root.className),eo.icon&&(eo.icon.className=mergeClasses(tabClassNames.icon,io.base,io[co],uo&&io.selected,eo.icon.className)),eo.contentReservedSpace&&(eo.contentReservedSpace.className=mergeClasses(reservedSpaceClassNames.content,so.base,co==="large"?so.largeSelected:so.selected,eo.icon?so.iconBefore:so.noIconBefore,so.placeholder,eo.content.className),eo.contentReservedSpaceClassName=eo.contentReservedSpace.className),eo.content.className=mergeClasses(tabClassNames.content,so.base,co==="large"&&so.large,uo&&(co==="large"?so.largeSelected:so.selected),eo.icon?so.iconBefore:so.noIconBefore,eo.content.className),useTabAnimatedIndicatorStyles_unstable(eo),eo},Tab$1=reactExports.forwardRef((eo,to)=>{const ro=useTab_unstable(eo,to);return useTabStyles_unstable(ro),useCustomStyleHook("useTabStyles_unstable")(ro),renderTab_unstable(ro)});Tab$1.displayName="Tab";const useTabList_unstable=(eo,to)=>{const{appearance:ro="transparent",reserveSelectedTabSpace:no=!0,disabled:oo=!1,onTabSelect:io,selectTabOnFocus:so=!1,size:ao="medium",vertical:lo=!1}=eo,uo=reactExports.useRef(null),co=useArrowNavigationGroup({circular:!0,axis:lo?"vertical":"horizontal",memorizeCurrent:!0}),[fo,ho]=useControllableState({state:eo.selectedValue,defaultState:eo.defaultSelectedValue,initialState:void 0}),po=reactExports.useRef(void 0),go=reactExports.useRef(void 0);reactExports.useEffect(()=>{go.current=po.current,po.current=fo},[fo]);const vo=useEventCallback$3((So,To)=>{ho(To.value),io==null||io(So,To)}),bo=reactExports.useRef({}),xo=useEventCallback$3(So=>{bo.current[JSON.stringify(So.value)]=So}),_o=useEventCallback$3(So=>{delete bo.current[JSON.stringify(So.value)]}),Eo=reactExports.useCallback(()=>({selectedValue:po.current,previousSelectedValue:go.current,registeredTabs:bo.current}),[]);return{components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(to,uo),role:"tablist","aria-orientation":lo?"vertical":"horizontal",...co,...eo}),{elementType:"div"}),appearance:ro,reserveSelectedTabSpace:no,disabled:oo,selectTabOnFocus:so,selectedValue:fo,size:ao,vertical:lo,onRegister:xo,onUnregister:_o,onSelect:vo,getRegisteredTabs:Eo}},renderTabList_unstable=(eo,to)=>jsx$1(eo.root,{children:jsx$1(TabListProvider,{value:to.tabList,children:eo.root.children})}),tabListClassNames={root:"fui-TabList"},useStyles$p=__styles({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;}"]}),useTabListStyles_unstable=eo=>{const{vertical:to}=eo,ro=useStyles$p();return eo.root.className=mergeClasses(tabListClassNames.root,ro.root,to?ro.vertical:ro.horizontal,eo.root.className),eo};function useTabListContextValues_unstable(eo){const{appearance:to,reserveSelectedTabSpace:ro,disabled:no,selectTabOnFocus:oo,selectedValue:io,onRegister:so,onUnregister:ao,onSelect:lo,getRegisteredTabs:uo,size:co,vertical:fo}=eo;return{tabList:{appearance:to,reserveSelectedTabSpace:ro,disabled:no,selectTabOnFocus:oo,selectedValue:io,onSelect:lo,onRegister:so,onUnregister:ao,getRegisteredTabs:uo,size:co,vertical:fo}}}const TabList=reactExports.forwardRef((eo,to)=>{const ro=useTabList_unstable(eo,to),no=useTabListContextValues_unstable(ro);return useTabListStyles_unstable(ro),useCustomStyleHook("useTabListStyles_unstable")(ro),renderTabList_unstable(ro,no)});TabList.displayName="TabList";const useText_unstable=(eo,to)=>{const{wrap:ro,truncate:no,block:oo,italic:io,underline:so,strikethrough:ao,size:lo,font:uo,weight:co,align:fo}=eo;return{align:fo??"start",block:oo??!1,font:uo??"base",italic:io??!1,size:lo??300,strikethrough:ao??!1,truncate:no??!1,underline:so??!1,weight:co??"regular",wrap:ro??!0,components:{root:"span"},root:always(getIntrinsicElementProps("span",{ref:to,...eo}),{elementType:"span"})}},renderText_unstable=eo=>jsx$1(eo.root,{}),textClassNames={root:"fui-Text"},useStyles$o=__styles({root:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",Bhrd7zp:"figsok6",fsow6f:"fpgzoln",mc9l5x:"f1w7gpdv",Huce71:"f6juhto",B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9",ygn44y:"f2jf649"},nowrap:{Huce71:"fz5stix",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw"},truncate:{ygn44y:"f1cmbuwj"},block:{mc9l5x:"ftgm304"},italic:{B80ckks:"f1j4dglz"},underline:{w71qe1:"f13mvf36"},strikethrough:{w71qe1:"fv5q2k7"},strikethroughUnderline:{w71qe1:"f1drk4o6"},base100:{Be2twd7:"f13mqy1h",Bg96gwp:"fcpl73t"},base200:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},base400:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k"},base500:{Be2twd7:"f1pp30po",Bg96gwp:"f106mvju"},base600:{Be2twd7:"f1x0m3f5",Bg96gwp:"fb86gi6"},hero700:{Be2twd7:"fojgt09",Bg96gwp:"fcen8rp"},hero800:{Be2twd7:"fccw675",Bg96gwp:"f1ebx5kk"},hero900:{Be2twd7:"f15afnhw",Bg96gwp:"fr3w3wp"},hero1000:{Be2twd7:"fpyltcb",Bg96gwp:"f1ivgwrt"},monospace:{Bahqtrf:"f1fedwem"},numeric:{Bahqtrf:"f1uq0ln5"},weightMedium:{Bhrd7zp:"fdj6btp"},weightSemibold:{Bhrd7zp:"fl43uef"},weightBold:{Bhrd7zp:"flh3ekv"},alignCenter:{fsow6f:"f17mccla"},alignEnd:{fsow6f:"f12ymhq5"},alignJustify:{fsow6f:"f1j59e10"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fpgzoln{text-align:start;}",".f1w7gpdv{display:inline;}",".f6juhto{white-space:normal;}",".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".f2jf649{text-overflow:clip;}",".fz5stix{white-space:nowrap;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1cmbuwj{text-overflow:ellipsis;}",".ftgm304{display:block;}",".f1j4dglz{font-style:italic;}",".f13mvf36{text-decoration-line:underline;}",".fv5q2k7{text-decoration-line:line-through;}",".f1drk4o6{text-decoration-line:line-through underline;}",".f13mqy1h{font-size:var(--fontSizeBase100);}",".fcpl73t{line-height:var(--lineHeightBase100);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}",".f1x0m3f5{font-size:var(--fontSizeBase600);}",".fb86gi6{line-height:var(--lineHeightBase600);}",".fojgt09{font-size:var(--fontSizeHero700);}",".fcen8rp{line-height:var(--lineHeightHero700);}",".fccw675{font-size:var(--fontSizeHero800);}",".f1ebx5kk{line-height:var(--lineHeightHero800);}",".f15afnhw{font-size:var(--fontSizeHero900);}",".fr3w3wp{line-height:var(--lineHeightHero900);}",".fpyltcb{font-size:var(--fontSizeHero1000);}",".f1ivgwrt{line-height:var(--lineHeightHero1000);}",".f1fedwem{font-family:var(--fontFamilyMonospace);}",".f1uq0ln5{font-family:var(--fontFamilyNumeric);}",".fdj6btp{font-weight:var(--fontWeightMedium);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".flh3ekv{font-weight:var(--fontWeightBold);}",".f17mccla{text-align:center;}",".f12ymhq5{text-align:end;}",".f1j59e10{text-align:justify;}"]}),useTextStyles_unstable=eo=>{const to=useStyles$o();return eo.root.className=mergeClasses(textClassNames.root,to.root,eo.wrap===!1&&to.nowrap,eo.truncate&&to.truncate,eo.block&&to.block,eo.italic&&to.italic,eo.underline&&to.underline,eo.strikethrough&&to.strikethrough,eo.underline&&eo.strikethrough&&to.strikethroughUnderline,eo.size===100&&to.base100,eo.size===200&&to.base200,eo.size===400&&to.base400,eo.size===500&&to.base500,eo.size===600&&to.base600,eo.size===700&&to.hero700,eo.size===800&&to.hero800,eo.size===900&&to.hero900,eo.size===1e3&&to.hero1000,eo.font==="monospace"&&to.monospace,eo.font==="numeric"&&to.numeric,eo.weight==="medium"&&to.weightMedium,eo.weight==="semibold"&&to.weightSemibold,eo.weight==="bold"&&to.weightBold,eo.align==="center"&&to.alignCenter,eo.align==="end"&&to.alignEnd,eo.align==="justify"&&to.alignJustify,eo.root.className),eo},Text$2=reactExports.forwardRef((eo,to)=>{const ro=useText_unstable(eo,to);return useTextStyles_unstable(ro),useCustomStyleHook("useTextStyles_unstable")(ro),renderText_unstable(ro)});Text$2.displayName="Text";const disableScrollElementProp="__fluentDisableScrollElement";function useDisableBodyScroll(){const{targetDocument:eo}=useFluent();return reactExports.useCallback(()=>{if(eo)return disableScroll(eo.body)},[eo])}function disableScroll(eo){var to;const{clientWidth:ro}=eo.ownerDocument.documentElement;var no;const oo=(no=(to=eo.ownerDocument.defaultView)===null||to===void 0?void 0:to.innerWidth)!==null&&no!==void 0?no:0;return assertIsDisableScrollElement(eo),eo[disableScrollElementProp].count===0&&(eo.style.overflow="hidden",eo.style.paddingRight=`${oo-ro}px`),eo[disableScrollElementProp].count++,()=>{eo[disableScrollElementProp].count--,eo[disableScrollElementProp].count===0&&(eo.style.overflow=eo[disableScrollElementProp].previousOverflowStyle,eo.style.paddingRight=eo[disableScrollElementProp].previousPaddingRightStyle)}}function assertIsDisableScrollElement(eo){var to,ro,no;(no=(to=eo)[ro=disableScrollElementProp])!==null&&no!==void 0||(to[ro]={count:0,previousOverflowStyle:eo.style.overflow,previousPaddingRightStyle:eo.style.paddingRight})}function useFocusFirstElement(eo,to){const{findFirstFocusable:ro}=useFocusFinders(),{targetDocument:no}=useFluent(),oo=reactExports.useRef(null);return reactExports.useEffect(()=>{if(!eo)return;const io=oo.current&&ro(oo.current);if(io)io.focus();else{var so;(so=oo.current)===null||so===void 0||so.focus()}},[ro,eo,to,no]),oo}const defaultContextValue$2={open:!1,inertTrapFocus:!1,modalType:"modal",isNestedDialog:!1,dialogRef:{current:null},requestOpenChange(){}},DialogContext=createContext(void 0),DialogProvider=DialogContext.Provider,useDialogContext_unstable=eo=>useContextSelector(DialogContext,(to=defaultContextValue$2)=>eo(to)),defaultContextValue$1=!1,DialogSurfaceContext=reactExports.createContext(void 0),DialogSurfaceProvider=DialogSurfaceContext.Provider,useDialogSurfaceContext_unstable=()=>{var eo;return(eo=reactExports.useContext(DialogSurfaceContext))!==null&&eo!==void 0?eo:defaultContextValue$1},useDialog_unstable=eo=>{const{children:to,modalType:ro="modal",onOpenChange:no,inertTrapFocus:oo=!1}=eo,[io,so]=childrenToTriggerAndContent(to),[ao,lo]=useControllableState({state:eo.open,defaultState:eo.defaultOpen,initialState:!1}),uo=useEventCallback$3(vo=>{no==null||no(vo.event,vo),vo.event.isDefaultPrevented()||lo(vo.open)}),co=useFocusFirstElement(ao,ro),fo=useDisableBodyScroll(),ho=!!(ao&&ro!=="non-modal");useIsomorphicLayoutEffect$1(()=>{if(ho)return fo()},[fo,ho]);const{modalAttributes:po,triggerAttributes:go}=useModalAttributes({trapFocus:ro!=="non-modal",legacyTrapFocus:!oo});return{components:{backdrop:"div"},inertTrapFocus:oo,open:ao,modalType:ro,content:so,trigger:io,requestOpenChange:uo,dialogTitleId:useId$1("dialog-title-"),isNestedDialog:useHasParentContext(DialogContext),dialogRef:co,modalAttributes:ro!=="non-modal"?po:void 0,triggerAttributes:go}};function childrenToTriggerAndContent(eo){const to=reactExports.Children.toArray(eo);switch(to.length){case 2:return to;case 1:return[void 0,to[0]];default:return[void 0,void 0]}}function _extends$c(){return _extends$c=Object.assign?Object.assign.bind():function(eo){for(var to=1;to=0)&&(ro[oo]=eo[oo]);return ro}function _setPrototypeOf$2(eo,to){return _setPrototypeOf$2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(no,oo){return no.__proto__=oo,no},_setPrototypeOf$2(eo,to)}function _inheritsLoose$1(eo,to){eo.prototype=Object.create(to.prototype),eo.prototype.constructor=eo,_setPrototypeOf$2(eo,to)}var propTypes={exports:{}},ReactPropTypesSecret$1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ReactPropTypesSecret_1=ReactPropTypesSecret$1,ReactPropTypesSecret=ReactPropTypesSecret_1;function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction;var factoryWithThrowingShims=function(){function eo(no,oo,io,so,ao,lo){if(lo!==ReactPropTypesSecret){var uo=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 uo.name="Invariant Violation",uo}}eo.isRequired=eo;function to(){return eo}var ro={array:eo,bigint:eo,bool:eo,func:eo,number:eo,object:eo,string:eo,symbol:eo,any:eo,arrayOf:to,element:eo,elementType:eo,instanceOf:to,node:eo,objectOf:to,oneOf:to,oneOfType:to,shape:to,exact:to,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return ro.PropTypes=ro,ro};propTypes.exports=factoryWithThrowingShims();var propTypesExports=propTypes.exports;const PropTypes=getDefaultExportFromCjs(propTypesExports),config$4={disabled:!1},TransitionGroupContext=React.createContext(null);var forceReflow=function(to){return to.scrollTop},UNMOUNTED="unmounted",EXITED="exited",ENTERING="entering",ENTERED="entered",EXITING="exiting",Transition=function(eo){_inheritsLoose$1(to,eo);function to(no,oo){var io;io=eo.call(this,no,oo)||this;var so=oo,ao=so&&!so.isMounting?no.enter:no.appear,lo;return io.appearStatus=null,no.in?ao?(lo=EXITED,io.appearStatus=ENTERING):lo=ENTERED:no.unmountOnExit||no.mountOnEnter?lo=UNMOUNTED:lo=EXITED,io.state={status:lo},io.nextCallback=null,io}to.getDerivedStateFromProps=function(oo,io){var so=oo.in;return so&&io.status===UNMOUNTED?{status:EXITED}:null};var ro=to.prototype;return ro.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},ro.componentDidUpdate=function(oo){var io=null;if(oo!==this.props){var so=this.state.status;this.props.in?so!==ENTERING&&so!==ENTERED&&(io=ENTERING):(so===ENTERING||so===ENTERED)&&(io=EXITING)}this.updateStatus(!1,io)},ro.componentWillUnmount=function(){this.cancelNextCallback()},ro.getTimeouts=function(){var oo=this.props.timeout,io,so,ao;return io=so=ao=oo,oo!=null&&typeof oo!="number"&&(io=oo.exit,so=oo.enter,ao=oo.appear!==void 0?oo.appear:so),{exit:io,enter:so,appear:ao}},ro.updateStatus=function(oo,io){if(oo===void 0&&(oo=!1),io!==null)if(this.cancelNextCallback(),io===ENTERING){if(this.props.unmountOnExit||this.props.mountOnEnter){var so=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this);so&&forceReflow(so)}this.performEnter(oo)}else this.performExit();else this.props.unmountOnExit&&this.state.status===EXITED&&this.setState({status:UNMOUNTED})},ro.performEnter=function(oo){var io=this,so=this.props.enter,ao=this.context?this.context.isMounting:oo,lo=this.props.nodeRef?[ao]:[ReactDOM.findDOMNode(this),ao],uo=lo[0],co=lo[1],fo=this.getTimeouts(),ho=ao?fo.appear:fo.enter;if(!oo&&!so||config$4.disabled){this.safeSetState({status:ENTERED},function(){io.props.onEntered(uo)});return}this.props.onEnter(uo,co),this.safeSetState({status:ENTERING},function(){io.props.onEntering(uo,co),io.onTransitionEnd(ho,function(){io.safeSetState({status:ENTERED},function(){io.props.onEntered(uo,co)})})})},ro.performExit=function(){var oo=this,io=this.props.exit,so=this.getTimeouts(),ao=this.props.nodeRef?void 0:ReactDOM.findDOMNode(this);if(!io||config$4.disabled){this.safeSetState({status:EXITED},function(){oo.props.onExited(ao)});return}this.props.onExit(ao),this.safeSetState({status:EXITING},function(){oo.props.onExiting(ao),oo.onTransitionEnd(so.exit,function(){oo.safeSetState({status:EXITED},function(){oo.props.onExited(ao)})})})},ro.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},ro.safeSetState=function(oo,io){io=this.setNextCallback(io),this.setState(oo,io)},ro.setNextCallback=function(oo){var io=this,so=!0;return this.nextCallback=function(ao){so&&(so=!1,io.nextCallback=null,oo(ao))},this.nextCallback.cancel=function(){so=!1},this.nextCallback},ro.onTransitionEnd=function(oo,io){this.setNextCallback(io);var so=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this),ao=oo==null&&!this.props.addEndListener;if(!so||ao){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var lo=this.props.nodeRef?[this.nextCallback]:[so,this.nextCallback],uo=lo[0],co=lo[1];this.props.addEndListener(uo,co)}oo!=null&&setTimeout(this.nextCallback,oo)},ro.render=function(){var oo=this.state.status;if(oo===UNMOUNTED)return null;var io=this.props,so=io.children;io.in,io.mountOnEnter,io.unmountOnExit,io.appear,io.enter,io.exit,io.timeout,io.addEndListener,io.onEnter,io.onEntering,io.onEntered,io.onExit,io.onExiting,io.onExited,io.nodeRef;var ao=_objectWithoutPropertiesLoose$3(io,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return React.createElement(TransitionGroupContext.Provider,{value:null},typeof so=="function"?so(oo,ao):React.cloneElement(React.Children.only(so),ao))},to}(React.Component);Transition.contextType=TransitionGroupContext;Transition.propTypes={};function noop$5(){}Transition.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop$5,onEntering:noop$5,onEntered:noop$5,onExit:noop$5,onExiting:noop$5,onExited:noop$5};Transition.UNMOUNTED=UNMOUNTED;Transition.EXITED=EXITED;Transition.ENTERING=ENTERING;Transition.ENTERED=ENTERED;Transition.EXITING=EXITING;const Transition$1=Transition;function _assertThisInitialized$3(eo){if(eo===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return eo}const defaultContextValue=void 0,DialogTransitionContext=reactExports.createContext(void 0),DialogTransitionProvider=DialogTransitionContext.Provider,useDialogTransitionContext_unstable=()=>{var eo;return(eo=reactExports.useContext(DialogTransitionContext))!==null&&eo!==void 0?eo:defaultContextValue},renderDialog_unstable=(eo,to)=>{const{content:ro,trigger:no}=eo;return jsx$1(DialogProvider,{value:to.dialog,children:jsxs(DialogSurfaceProvider,{value:to.dialogSurface,children:[no,jsx$1(Transition$1,{mountOnEnter:!0,unmountOnExit:!0,in:eo.open,nodeRef:eo.dialogRef,appear:!0,timeout:250,children:oo=>jsx$1(DialogTransitionProvider,{value:oo,children:ro})})]})})};function useDialogContextValues_unstable(eo){const{modalType:to,open:ro,dialogRef:no,dialogTitleId:oo,isNestedDialog:io,inertTrapFocus:so,requestOpenChange:ao,modalAttributes:lo,triggerAttributes:uo}=eo;return{dialog:{open:ro,modalType:to,dialogRef:no,dialogTitleId:oo,isNestedDialog:io,inertTrapFocus:so,modalAttributes:lo,triggerAttributes:uo,requestOpenChange:ao},dialogSurface:!1}}const Dialog=reactExports.memo(eo=>{const to=useDialog_unstable(eo),ro=useDialogContextValues_unstable(to);return renderDialog_unstable(to,ro)});Dialog.displayName="Dialog";const useDialogTrigger_unstable=eo=>{const to=useDialogSurfaceContext_unstable(),{children:ro,disableButtonEnhancement:no=!1,action:oo=to?"close":"open"}=eo,io=getTriggerChild(ro),so=useDialogContext_unstable(fo=>fo.requestOpenChange),{triggerAttributes:ao}=useModalAttributes(),lo=useEventCallback$3(fo=>{var ho,po;io==null||(ho=(po=io.props).onClick)===null||ho===void 0||ho.call(po,fo),fo.isDefaultPrevented()||so({event:fo,type:"triggerClick",open:oo==="open"})}),uo={...io==null?void 0:io.props,ref:io==null?void 0:io.ref,onClick:lo,...ao},co=useARIAButtonProps((io==null?void 0:io.type)==="button"||(io==null?void 0:io.type)==="a"?io.type:"div",{...uo,type:"button"});return{children:applyTriggerPropsToChildren(ro,no?uo:co)}},renderDialogTrigger_unstable=eo=>eo.children,DialogTrigger=eo=>{const to=useDialogTrigger_unstable(eo);return renderDialogTrigger_unstable(to)};DialogTrigger.displayName="DialogTrigger";DialogTrigger.isFluentTriggerComponent=!0;const useDialogSurface_unstable=(eo,to)=>{const ro=useDialogContext_unstable(ho=>ho.modalType),no=useDialogContext_unstable(ho=>ho.isNestedDialog),oo=useDialogTransitionContext_unstable(),io=useDialogContext_unstable(ho=>ho.modalAttributes),so=useDialogContext_unstable(ho=>ho.dialogRef),ao=useDialogContext_unstable(ho=>ho.requestOpenChange),lo=useDialogContext_unstable(ho=>ho.dialogTitleId),uo=useEventCallback$3(ho=>{if(isResolvedShorthand(eo.backdrop)){var po,go;(po=(go=eo.backdrop).onClick)===null||po===void 0||po.call(go,ho)}ro==="modal"&&!ho.isDefaultPrevented()&&ao({event:ho,open:!1,type:"backdropClick"})}),co=useEventCallback$3(ho=>{var po;(po=eo.onKeyDown)===null||po===void 0||po.call(eo,ho),ho.key===Escape$1&&!ho.isDefaultPrevented()&&(ao({event:ho,open:!1,type:"escapeKeyDown"}),ho.preventDefault())}),fo=optional(eo.backdrop,{renderByDefault:ro!=="non-modal",defaultProps:{"aria-hidden":"true"},elementType:"div"});return fo&&(fo.onClick=uo),{components:{backdrop:"div",root:"div"},backdrop:fo,isNestedDialog:no,transitionStatus:oo,mountNode:eo.mountNode,root:always(getIntrinsicElementProps("div",{tabIndex:-1,"aria-modal":ro!=="non-modal",role:ro==="alert"?"alertdialog":"dialog","aria-labelledby":eo["aria-label"]?void 0:lo,...eo,...io,onKeyDown:co,ref:useMergedRefs$1(to,so)}),{elementType:"div"})}},renderDialogSurface_unstable=(eo,to)=>jsxs(Portal$1,{mountNode:eo.mountNode,children:[eo.backdrop&&jsx$1(eo.backdrop,{}),jsx$1(DialogSurfaceProvider,{value:to.dialogSurface,children:jsx$1(eo.root,{})})]}),dialogSurfaceClassNames={root:"fui-DialogSurface",backdrop:"fui-DialogSurface__backdrop"},useRootBaseStyle=__resetStyles("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;}}"]}),useRootStyles=__styles({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);}"]}),useBackdropBaseStyle=__resetStyles("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;}"]),useBackdropStyles$1=__styles({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);}"]}),useDialogSurfaceStyles_unstable=eo=>{const{isNestedDialog:to,root:ro,backdrop:no,transitionStatus:oo}=eo,io=useRootBaseStyle(),so=useRootStyles(),ao=useBackdropBaseStyle(),lo=useBackdropStyles$1();return ro.className=mergeClasses(dialogSurfaceClassNames.root,io,oo&&so.animated,oo&&so[oo],ro.className),no&&(no.className=mergeClasses(dialogSurfaceClassNames.backdrop,ao,to&&lo.nestedDialogBackdrop,oo&&lo[oo],no.className)),eo};function useDialogSurfaceContextValues_unstable(eo){return{dialogSurface:!0}}const DialogSurface=reactExports.forwardRef((eo,to)=>{const ro=useDialogSurface_unstable(eo,to),no=useDialogSurfaceContextValues_unstable();return useDialogSurfaceStyles_unstable(ro),useCustomStyleHook("useDialogSurfaceStyles_unstable")(ro),renderDialogSurface_unstable(ro,no)});DialogSurface.displayName="DialogSurface";const useCardSelectable=(eo,{referenceLabel:to,referenceId:ro},no)=>{const{checkbox:oo={},onSelectionChange:io,floatingAction:so,onClick:ao,onKeyDown:lo}=eo,{findAllFocusable:uo}=useFocusFinders(),co=reactExports.useRef(null),[fo,ho]=useControllableState({state:eo.selected,defaultState:eo.defaultSelected,initialState:!1}),po=[eo.selected,eo.defaultSelected,io].some(wo=>typeof wo<"u"),[go,vo]=reactExports.useState(!1),bo=reactExports.useCallback(wo=>{if(!no.current)return!1;const Co=uo(no.current),Oo=wo.target,Ao=Co.some(No=>No.contains(Oo)),Ro=(co==null?void 0:co.current)===Oo;return Ao&&!Ro},[no,uo]),xo=reactExports.useCallback(wo=>{if(bo(wo))return;const Co=!fo;ho(Co),io&&io(wo,{selected:Co})},[io,fo,ho,bo]),_o=reactExports.useCallback(wo=>{[Enter].includes(wo.key)&&(wo.preventDefault(),xo(wo))},[xo]),Eo=reactExports.useMemo(()=>{if(!po||so)return;const wo={};return ro?wo["aria-labelledby"]=ro:to&&(wo["aria-label"]=to),optional(oo,{defaultProps:{ref:co,type:"checkbox",checked:fo,onChange:Co=>xo(Co),onFocus:()=>vo(!0),onBlur:()=>vo(!1),...wo},elementType:"input"})},[oo,so,fo,po,xo,ro,to]),So=reactExports.useMemo(()=>{if(so)return optional(so,{defaultProps:{ref:co},elementType:"div"})},[so]),To=reactExports.useMemo(()=>po?{onClick:mergeCallbacks(ao,xo),onKeyDown:mergeCallbacks(lo,_o)}:null,[po,xo,ao,lo,_o]);return{selected:fo,selectable:po,selectFocused:go,selectableCardProps:To,checkboxSlot:Eo,floatingActionSlot:So}},cardContext=reactExports.createContext(void 0),cardContextDefaultValue={selectableA11yProps:{referenceId:void 0,setReferenceId(){},referenceLabel:void 0,setReferenceLabel(){}}},CardProvider=cardContext.Provider,useCardContext_unstable=()=>{var eo;return(eo=reactExports.useContext(cardContext))!==null&&eo!==void 0?eo:cardContextDefaultValue},focusMap={off:void 0,"no-tab":"limited-trap-focus","tab-exit":"limited","tab-only":"unlimited"},useCardInteractive=({focusMode:eo="off",...to})=>{const ro=["onClick","onDoubleClick","onMouseUp","onMouseDown","onPointerUp","onPointerDown","onTouchStart","onTouchEnd","onDragStart","onDragEnd"].some(io=>to[io]),oo={...useFocusableGroup({tabBehavior:focusMap[ro?"no-tab":eo]}),tabIndex:0};return{interactive:ro,focusAttributes:!ro&&eo==="off"?null:oo}},useCard_unstable=(eo,to)=>{const{appearance:ro="filled",orientation:no="vertical",size:oo="medium"}=eo,[io,so]=reactExports.useState(cardContextDefaultValue.selectableA11yProps.referenceId),[ao,lo]=reactExports.useState(cardContextDefaultValue.selectableA11yProps.referenceId),uo=useFocusWithin(),{selectable:co,selected:fo,selectableCardProps:ho,selectFocused:po,checkboxSlot:go,floatingActionSlot:vo}=useCardSelectable(eo,{referenceId:io,referenceLabel:ao},uo),bo=useMergedRefs$1(uo,to),{interactive:xo,focusAttributes:_o}=useCardInteractive(eo);return{appearance:ro,orientation:no,size:oo,interactive:xo,selectable:co,selectFocused:po,selected:fo,selectableA11yProps:{setReferenceId:so,referenceId:io,referenceLabel:ao,setReferenceLabel:lo},components:{root:"div",floatingAction:"div",checkbox:"input"},root:always(getIntrinsicElementProps("div",{ref:bo,role:"group",..._o,...eo,...ho}),{elementType:"div"}),floatingAction:vo,checkbox:go}},renderCard_unstable=(eo,to)=>jsx$1(eo.root,{children:jsxs(CardProvider,{value:to,children:[eo.checkbox?jsx$1(eo.checkbox,{}):null,eo.floatingAction?jsx$1(eo.floatingAction,{}):null,eo.root.children]})}),cardHeaderClassNames={root:"fui-CardHeader",image:"fui-CardHeader__image",header:"fui-CardHeader__header",description:"fui-CardHeader__description",action:"fui-CardHeader__action"},useStyles$n=__styles({root:{Bkc6ea2:"fkufhic",mc9l5x:"f13qh94s",t4k1zu:"f8a668j",Bt984gj:"f122n59"},image:{mc9l5x:"ftuwxu6",t21cq0:["fql5097","f6yss9k"],Br312pm:"fwpfdsa",Ijaq50:"fldnz9j"},header:{Br312pm:"fd46tj4",Ijaq50:"f16hsg94",mc9l5x:"f22iagw"},description:{Br312pm:"fd46tj4",Ijaq50:"faunodf",mc9l5x:"f22iagw"},action:{Frg6f3:["f6yss9k","fql5097"],Br312pm:"fis13di",Ijaq50:"fldnz9j"}},{d:[".fkufhic{--fui-CardHeader--gap:12px;}",".f13qh94s{display:grid;}",".f8a668j{grid-auto-columns:min-content 1fr min-content;}",".f122n59{align-items:center;}",".ftuwxu6{display:inline-flex;}",".fql5097{margin-right:var(--fui-CardHeader--gap);}",".f6yss9k{margin-left:var(--fui-CardHeader--gap);}",".fwpfdsa{grid-column-start:1;}",".fldnz9j{grid-row-start:span 2;}",".fd46tj4{grid-column-start:2;}",".f16hsg94{grid-row-start:1;}",".f22iagw{display:flex;}",".faunodf{grid-row-start:2;}",".fis13di{grid-column-start:3;}"]}),useCardHeaderStyles_unstable=eo=>{const to=useStyles$n();return eo.root.className=mergeClasses(cardHeaderClassNames.root,to.root,eo.root.className),eo.image&&(eo.image.className=mergeClasses(cardHeaderClassNames.image,to.image,eo.image.className)),eo.header&&(eo.header.className=mergeClasses(cardHeaderClassNames.header,to.header,eo.header.className)),eo.description&&(eo.description.className=mergeClasses(cardHeaderClassNames.description,to.description,eo.description.className)),eo.action&&(eo.action.className=mergeClasses(cardHeaderClassNames.action,to.action,eo.action.className)),eo},cardClassNames={root:"fui-Card",floatingAction:"fui-Card__floatingAction",checkbox:"fui-Card__checkbox"},useStyles$m=__styles({root:{B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",Bbmb7ep:["fifeqxg","f899z7z"],Beyfa6y:["f899z7z","fifeqxg"],B7oj6ja:["f4h3tyx","f18ur2pz"],Btl43ni:["f18ur2pz","f4h3tyx"],z8tnut:"f1lplnzb",z189sj:["f10m5gbb","f1k04kkk"],Byoj8tv:"fhftqfp",uwmqm3:["f1k04kkk","f10m5gbb"],i8kkvl:"fxsr4vj",Belr9w4:"fcvsdzp",mc9l5x:"f22iagw",qhf8xq:"f10pi13n",B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",E3zdtr:"f1mdlcz9",bn5sak:"frwkxtg",Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"],By385i5:"fo72kxq",Bsft5z2:"f13zj6fq",B80jsxd:"f1nwj1ja",Bm2nyyq:"f8rth92",Barhvk9:["flthirb","ftkbnf5"],Bw17bha:"f1lh990p",vfts7:["ftkbnf5","flthirb"],xrcqlc:"f6czdpx",Ihftqj:["f13hvwk3","f1en4csx"],Bcgy8vk:"f1i1u9k0",Bhxzhr1:["f1en4csx","f13hvwk3"],B3778ie:["f1qnomq5","f2fl922"],d9w3h3:["f2fl922","f1qnomq5"],Bl18szs:["f1anhtl","f1n2zcl3"],B4j8arr:["f1n2zcl3","f1anhtl"],B2jhnfs:"f16v3d5c",wiictr:"f1su8t2g"},focused:{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:"f99gebs",clg4pj:["f13b0oaq","f8t2bz6"],hgwjuy:"f1jvq617",Bonggc9:["f8t2bz6","f13b0oaq"],B1tsrr9:["f11unbnk","fbd201q"],Dah5zi:["fbd201q","f11unbnk"],Bkh64rk:["f12nqxso","f1uguk4w"],qqdqy8:["f1uguk4w","f12nqxso"],B6dhp37:"f1dvezut",i03rao:["fd0oaoj","f1cwg4i8"],Boxcth7:"fjvm52t",Bsom6fd:["f1cwg4i8","fd0oaoj"],J0r882:"f15fr7a0",Bule8hv:["fwsq40z","fy0y4wt"],Bjwuhne:"f34ld9f",Ghsupd:["fy0y4wt","fwsq40z"]},selectableFocused:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",Bssx7fj:"f1b1k54r",uh7if5:["f4ne723","fqqcjud"],clntm0:"fh7aioi",Dlk2r6:["fqqcjud","f4ne723"],Bm3wd5j:"f1k55ka9",Bbrhkcr:["fgclinu","f16pcs8n"],f1oku:"fycbxed",aywvf2:["f16pcs8n","fgclinu"],B2j2mmj:"ffht0p2",wigs8:"f1p0ul1q",pbfy6t:"f1c901ms",B0v4ure:"f1alokd7",ghq09:"f78i1la",B24cy0v:["f1kvsw7t","f1bw8brt"],Bwckmig:"f8k7e5g",Bvwlmkc:["f1bw8brt","f1kvsw7t"],Bbgo44z:"f125hn41",Bil7v7r:["fgxkx34","f1v56tyl"],skfxo0:"fdxas6f",jo1ztg:["f1v56tyl","fgxkx34"],Ba3ybja:["fxwickw","f1ia5cve"],az1dzo:["f1ia5cve","fxwickw"],vppk2z:["f194aguw","fqicc6c"],B6352mv:["fqicc6c","f194aguw"],nr063g:"fq4eyks",Blmvk6g:["f1ya6x16","ftuszwa"],Bsiemmq:"f1e2iu44",B98u21t:["ftuszwa","f1ya6x16"],B2pnrqr:"f1amxum7",B29w5g4:["f1cec8w7","f554mv0"],Bhhzhcn:"f1sj6kbr",Bec0n69:["f554mv0","f1cec8w7"]},orientationHorizontal:{Beiy3e4:"f1063pyq",Bt984gj:"f122n59",Bnoktp0:"fpfyeui",Idhjb2:"fwi74qw",ihgzqh:["ffcmwrh","f6ppoih"],Bgp6ld0:["f1dc9p14","fd933vt"],Bbucpmy:"f18esqgw"},orientationVertical:{Beiy3e4:"f1vx9l62",Bt4kzjz:["fobhde4","fx5r7kn"],B1ou843:["fx5r7kn","fobhde4"],y1433z:"f19chtn8",B7egwnw:"fuvs6re",B49b4xf:"fy4glsf"},sizeSmall:{B7balbw:"f1pi9uxy",B1h88n7:"f1h1zgly"},sizeMedium:{B7balbw:"frsmuga",B1h88n7:"fuldkky"},sizeLarge:{B7balbw:"f1qua4xo",B1h88n7:"fimkt6v"},filled:{De3pzq:"fxugw4r",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},filledInteractive:{Bceei9c:"f1k6fduh",De3pzq:"fxugw4r",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Jwef8y:"f1knas48",Bvxd0ez:"f1m145df",ecr2s2:"fb40n2d"},filledInteractiveSelected:{De3pzq:"f1nfm20t",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"f1kz6goq"},filledAlternative:{De3pzq:"f1dmdbja",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},filledAlternativeInteractive:{Bceei9c:"f1k6fduh",De3pzq:"f1dmdbja",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Jwef8y:"f1uvynv3",Bvxd0ez:"f1m145df",ecr2s2:"f1yhgkbh"},filledAlternativeInteractiveSelected:{De3pzq:"fjxa0vh",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"fehi0vp"},outline:{De3pzq:"f1c21dwh",E5pizo:"f1couhl3",B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"]},outlineInteractive:{Bceei9c:"f1k6fduh",De3pzq:"f1c21dwh",E5pizo:"f1couhl3",B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"],Jwef8y:"fjxutwb",Be0v6ae:"f1llr77y",B5kxglz:["fzk0khw","fjj8tog"],B3pwyw6:"fb1u8ub",Bymgtzf:["fjj8tog","fzk0khw"],ecr2s2:"fophhak",dmfk:"f1uohb70",B4ofi8:["f1jm7v1n","f1bus3rq"],jgq6uv:"f1fbu7rr",Baxewws:["f1bus3rq","f1jm7v1n"]},outlineInteractiveSelected:{De3pzq:"f1q9pm1r",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"fg59vm4"},subtle:{De3pzq:"fhovq9v",E5pizo:"f1couhl3",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},subtleInteractive:{Bceei9c:"f1k6fduh",De3pzq:"fhovq9v",E5pizo:"f1couhl3",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd"},subtleInteractiveSelected:{De3pzq:"fq5gl1p",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"f1uqaxdt"},highContrastSelected:{ycbfsm:"fkc42ay",Bsw6fvg:"f1rirnrt",Bbusuzp:"f1lkg8j3",xgfqdd:"f1nkj0oa",Bmmdzwq:"fey3rwa",zkpvhj:["f5jhx11","fff9uym"],B20bydw:"fm7n0jy",Bwwwggl:["fff9uym","f5jhx11"]},highContrastInteractive:{h1vhog:"fpfvv3l",kslmdy:"f1oamsm6",Baaf6ca:"f1il21bs",x9zz3d:"fnn5dk0",Bmmdzwq:"fey3rwa",zkpvhj:["f5jhx11","fff9uym"],B20bydw:"fm7n0jy",Bwwwggl:["fff9uym","f5jhx11"]},select:{qhf8xq:"f1euv43f",Bhzewxz:"fqclxi7",j35jbq:["fiv86kb","f36uhnt"],Bj3rh1h:"f19g0ac"},hiddenCheckbox:{B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",a9b677:"frkrog8",Bqenvij:"f1mpe4l3",qhf8xq:"f1euv43f",Bh84pgu:"fmf1zke",Bgl5zvf:"f1wch0ki",Huce71:"fz5stix"}},{d:[".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".fifeqxg{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f899z7z{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f4h3tyx{border-top-right-radius:var(--fui-Card--border-radius);}",".f18ur2pz{border-top-left-radius:var(--fui-Card--border-radius);}",".f1lplnzb{padding-top:var(--fui-Card--size);}",".f10m5gbb{padding-right:var(--fui-Card--size);}",".f1k04kkk{padding-left:var(--fui-Card--size);}",".fhftqfp{padding-bottom:var(--fui-Card--size);}",".fxsr4vj{column-gap:var(--fui-Card--size);}",".fcvsdzp{row-gap:var(--fui-Card--size);}",".f22iagw{display:flex;}",".f10pi13n{position:relative;}",".f1ewtqcl{box-sizing:border-box;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1mdlcz9::after{position:absolute;}",".frwkxtg::after{top:0;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".fo72kxq::after{bottom:0;}",'.f13zj6fq::after{content:"";}',".f1nwj1ja::after{pointer-events:none;}",".f8rth92::after{border-top-style:solid;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f1lh990p::after{border-bottom-style:solid;}",".f6czdpx::after{border-top-width:var(--strokeWidthThin);}",".f13hvwk3::after{border-right-width:var(--strokeWidthThin);}",".f1en4csx::after{border-left-width:var(--strokeWidthThin);}",".f1i1u9k0::after{border-bottom-width:var(--strokeWidthThin);}",".f1qnomq5::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f2fl922::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f1anhtl::after{border-top-right-radius:var(--fui-Card--border-radius);}",".f1n2zcl3::after{border-top-left-radius:var(--fui-Card--border-radius);}",".f16v3d5c>.fui-CardHeader,.f16v3d5c>.fui-CardFooter{flex-shrink:0;}",".f1su8t2g>:not(.fui-CardPreview):not(.fui-CardHeader):not(.fui-CardFooter){flex-grow:1;}",".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;}",".f99gebs[data-fui-focus-visible]::after{border-top-width:var(--strokeWidthThick);}",".f13b0oaq[data-fui-focus-visible]::after{border-right-width:var(--strokeWidthThick);}",".f8t2bz6[data-fui-focus-visible]::after{border-left-width:var(--strokeWidthThick);}",".f1jvq617[data-fui-focus-visible]::after{border-bottom-width:var(--strokeWidthThick);}",".f11unbnk[data-fui-focus-visible]::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".fbd201q[data-fui-focus-visible]::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f12nqxso[data-fui-focus-visible]::after{border-top-right-radius:var(--fui-Card--border-radius);}",".f1uguk4w[data-fui-focus-visible]::after{border-top-left-radius:var(--fui-Card--border-radius);}",".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);}",".f15fr7a0[data-fui-focus-visible]::after{top:calc(0px - var(--strokeWidthThick) - -2px);}",".fwsq40z[data-fui-focus-visible]::after{right:calc(0px - var(--strokeWidthThick) - -2px);}",".fy0y4wt[data-fui-focus-visible]::after{left:calc(0px - var(--strokeWidthThick) - -2px);}",".f34ld9f[data-fui-focus-visible]::after{bottom:calc(0px - var(--strokeWidthThick) - -2px);}",".f1b1k54r[data-fui-focus-within]:focus-within{border-top-color:transparent;}",".f4ne723[data-fui-focus-within]:focus-within{border-right-color:transparent;}",".fqqcjud[data-fui-focus-within]:focus-within{border-left-color:transparent;}",".fh7aioi[data-fui-focus-within]:focus-within{border-bottom-color:transparent;}",'.ffht0p2[data-fui-focus-within]:focus-within::after{content:"";}',".f1p0ul1q[data-fui-focus-within]:focus-within::after{position:absolute;}",".f1c901ms[data-fui-focus-within]:focus-within::after{pointer-events:none;}",".f1alokd7[data-fui-focus-within]:focus-within::after{z-index:1;}",".f78i1la[data-fui-focus-within]:focus-within::after{border-top-style:solid;}",".f1kvsw7t[data-fui-focus-within]:focus-within::after{border-right-style:solid;}",".f1bw8brt[data-fui-focus-within]:focus-within::after{border-left-style:solid;}",".f8k7e5g[data-fui-focus-within]:focus-within::after{border-bottom-style:solid;}",".f125hn41[data-fui-focus-within]:focus-within::after{border-top-width:var(--strokeWidthThick);}",".fgxkx34[data-fui-focus-within]:focus-within::after{border-right-width:var(--strokeWidthThick);}",".f1v56tyl[data-fui-focus-within]:focus-within::after{border-left-width:var(--strokeWidthThick);}",".fdxas6f[data-fui-focus-within]:focus-within::after{border-bottom-width:var(--strokeWidthThick);}",".fxwickw[data-fui-focus-within]:focus-within::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f1ia5cve[data-fui-focus-within]:focus-within::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f194aguw[data-fui-focus-within]:focus-within::after{border-top-right-radius:var(--fui-Card--border-radius);}",".fqicc6c[data-fui-focus-within]:focus-within::after{border-top-left-radius:var(--fui-Card--border-radius);}",".fq4eyks[data-fui-focus-within]:focus-within::after{border-top-color:var(--colorStrokeFocus2);}",".f1ya6x16[data-fui-focus-within]:focus-within::after{border-right-color:var(--colorStrokeFocus2);}",".ftuszwa[data-fui-focus-within]:focus-within::after{border-left-color:var(--colorStrokeFocus2);}",".f1e2iu44[data-fui-focus-within]:focus-within::after{border-bottom-color:var(--colorStrokeFocus2);}",".f1amxum7[data-fui-focus-within]:focus-within::after{top:calc(0px - var(--strokeWidthThick) - -2px);}",".f1cec8w7[data-fui-focus-within]:focus-within::after{right:calc(0px - var(--strokeWidthThick) - -2px);}",".f554mv0[data-fui-focus-within]:focus-within::after{left:calc(0px - var(--strokeWidthThick) - -2px);}",".f1sj6kbr[data-fui-focus-within]:focus-within::after{bottom:calc(0px - var(--strokeWidthThick) - -2px);}",".f1063pyq{flex-direction:row;}",".f122n59{align-items:center;}",".fpfyeui>.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}",".fwi74qw>.fui-CardPreview{margin-bottom:calc(var(--fui-Card--size) * -1);}",'.ffcmwrh>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-left:calc(var(--fui-Card--size) * -1);}','.f6ppoih>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-right:calc(var(--fui-Card--size) * -1);}','.f1dc9p14>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-right:calc(var(--fui-Card--size) * -1);}','.fd933vt>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-left:calc(var(--fui-Card--size) * -1);}',".f18esqgw>.fui-CardHeader:last-of-type,.f18esqgw>.fui-CardFooter:last-of-type{flex-grow:1;}",".f1vx9l62{flex-direction:column;}",".fobhde4>.fui-CardPreview{margin-left:calc(var(--fui-Card--size) * -1);}",".fx5r7kn>.fui-CardPreview{margin-right:calc(var(--fui-Card--size) * -1);}",'.f19chtn8>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-top:calc(var(--fui-Card--size) * -1);}',".fuvs6re>.fui-Card__floatingAction+.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}",'.fy4glsf>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-bottom:calc(var(--fui-Card--size) * -1);}',".f1pi9uxy{--fui-Card--size:8px;}",".f1h1zgly{--fui-Card--border-radius:var(--borderRadiusSmall);}",".frsmuga{--fui-Card--size:12px;}",".fuldkky{--fui-Card--border-radius:var(--borderRadiusMedium);}",".f1qua4xo{--fui-Card--size:16px;}",".fimkt6v{--fui-Card--border-radius:var(--borderRadiusLarge);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1whvlc6{box-shadow:var(--shadow4);}",".f16gxe2i::after{border-top-color:var(--colorTransparentStroke);}",".fpgykix::after{border-right-color:var(--colorTransparentStroke);}",".fzybk4o::after{border-left-color:var(--colorTransparentStroke);}",".f1osi826::after{border-bottom-color:var(--colorTransparentStroke);}",".f1k6fduh{cursor:pointer;}",".f1nfm20t{background-color:var(--colorNeutralBackground1Selected);}",".f16eln5f::after{border-top-color:var(--colorNeutralStroke1Selected);}",".fa2okxs::after{border-right-color:var(--colorNeutralStroke1Selected);}",".fg4zq3l::after{border-left-color:var(--colorNeutralStroke1Selected);}",".ff6932p::after{border-bottom-color:var(--colorNeutralStroke1Selected);}",".f1dmdbja{background-color:var(--colorNeutralBackground2);}",".fjxa0vh{background-color:var(--colorNeutralBackground2Selected);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1couhl3{box-shadow:none;}",".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);}",".f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1euv43f{position:absolute;}",".fqclxi7{top:4px;}",".fiv86kb{right:4px;}",".f36uhnt{left:4px;}",".f19g0ac{z-index:1;}",".frkrog8{width:1px;}",".f1mpe4l3{height:1px;}",".fmf1zke{clip:rect(0 0 0 0);}",".f1wch0ki{clip-path:inset(50%);}",".fz5stix{white-space:nowrap;}"],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)"}],["@media (forced-colors: active){.f1k55ka9[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16pcs8n[data-fui-focus-within]:focus-within::after{border-left-color:Highlight;}.fgclinu[data-fui-focus-within]:focus-within::after{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fycbxed[data-fui-focus-within]:focus-within::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1nkj0oa .fui-CardPreview,.f1nkj0oa .fui-CardFooter{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fey3rwa::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f5jhx11::after{border-right-color:Highlight;}.fff9uym::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fm7n0jy::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fpfvv3l:hover,.fpfvv3l :active{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1oamsm6:hover,.f1oamsm6 :active{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1il21bs:hover,.f1il21bs :active{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnn5dk0:hover .fui-CardPreview,.fnn5dk0 :active .fui-CardPreview,.fnn5dk0:hover .fui-CardFooter,.fnn5dk0 :active .fui-CardFooter{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}]],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".f1m145df:hover{box-shadow:var(--shadow8);}",".f1kz6goq:hover{background-color:var(--colorNeutralBackground1Selected);}",".f1uvynv3:hover{background-color:var(--colorNeutralBackground2Hover);}",".fehi0vp:hover{background-color:var(--colorNeutralBackground2Selected);}",".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1llr77y:hover::after{border-top-color:var(--colorNeutralStroke1Hover);}",".fzk0khw:hover::after{border-right-color:var(--colorNeutralStroke1Hover);}",".fjj8tog:hover::after{border-left-color:var(--colorNeutralStroke1Hover);}",".fb1u8ub:hover::after{border-bottom-color:var(--colorNeutralStroke1Hover);}",".fg59vm4:hover{background-color:var(--colorTransparentBackgroundSelected);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".f1uqaxdt:hover{background-color:var(--colorSubtleBackgroundSelected);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".f1yhgkbh:active{background-color:var(--colorNeutralBackground2Pressed);}",".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}",".f1uohb70:active::after{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1jm7v1n:active::after{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1bus3rq:active::after{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1fbu7rr:active::after{border-bottom-color:var(--colorNeutralStroke1Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}"]}),useCardStyles_unstable=eo=>{const to=useStyles$m(),ro={horizontal:to.orientationHorizontal,vertical:to.orientationVertical},no={small:to.sizeSmall,medium:to.sizeMedium,large:to.sizeLarge},oo={filled:to.filled,"filled-alternative":to.filledAlternative,outline:to.outline,subtle:to.subtle},io={filled:to.filledInteractiveSelected,"filled-alternative":to.filledAlternativeInteractiveSelected,outline:to.outlineInteractiveSelected,subtle:to.subtleInteractiveSelected},so={filled:to.filledInteractive,"filled-alternative":to.filledAlternativeInteractive,outline:to.outlineInteractive,subtle:to.subtleInteractive},ao=eo.interactive||eo.selectable,lo=reactExports.useMemo(()=>eo.selectable?eo.selectFocused?to.selectableFocused:"":to.focused,[eo.selectFocused,eo.selectable,to.focused,to.selectableFocused]);return eo.root.className=mergeClasses(cardClassNames.root,to.root,ro[eo.orientation],no[eo.size],oo[eo.appearance],ao&&so[eo.appearance],eo.selected&&io[eo.appearance],lo,ao&&to.highContrastInteractive,eo.selected&&to.highContrastSelected,eo.root.className),eo.floatingAction&&(eo.floatingAction.className=mergeClasses(cardClassNames.floatingAction,to.select,eo.floatingAction.className)),eo.checkbox&&(eo.checkbox.className=mergeClasses(cardClassNames.checkbox,to.hiddenCheckbox,eo.checkbox.className)),eo};function useCardContextValue({selectableA11yProps:eo}){return{selectableA11yProps:eo}}const Card=reactExports.forwardRef((eo,to)=>{const ro=useCard_unstable(eo,to),no=useCardContextValue(ro);return useCardStyles_unstable(ro),renderCard_unstable(ro,no)});Card.displayName="Card";function getChildWithId(eo){function to(ro){return reactExports.isValidElement(ro)&&!!ro.props.id}return reactExports.Children.toArray(eo).find(to)}function getReferenceId(eo,to,ro){return eo||(to!=null&&to.props.id?to.props.id:ro)}const useCardHeader_unstable=(eo,to)=>{const{image:ro,header:no,description:oo,action:io}=eo,{selectableA11yProps:{referenceId:so,setReferenceId:ao}}=useCardContext_unstable(),lo=reactExports.useRef(null),uo=reactExports.useRef(!1),co=useId$1(cardHeaderClassNames.header,so),fo=optional(no,{renderByDefault:!0,defaultProps:{ref:lo,id:uo.current?void 0:so},elementType:"div"});return reactExports.useEffect(()=>{var ho;const po=uo.current||(ho=lo.current)===null||ho===void 0?void 0:ho.id,go=getChildWithId(fo==null?void 0:fo.children);uo.current=!!go,ao(getReferenceId(po,go,co))},[co,no,fo,ao]),{components:{root:"div",image:"div",header:"div",description:"div",action:"div"},root:always(getIntrinsicElementProps("div",{ref:to,...eo}),{elementType:"div"}),image:optional(ro,{elementType:"div"}),header:fo,description:optional(oo,{elementType:"div"}),action:optional(io,{elementType:"div"})}},renderCardHeader_unstable=eo=>jsxs(eo.root,{children:[eo.image&&jsx$1(eo.image,{}),jsx$1(eo.header,{}),eo.description&&jsx$1(eo.description,{}),eo.action&&jsx$1(eo.action,{})]}),CardHeader=reactExports.forwardRef((eo,to)=>{const ro=useCardHeader_unstable(eo,to);return useCardHeaderStyles_unstable(ro),renderCardHeader_unstable(ro)});CardHeader.displayName="CardHeader";function getIntentIcon(eo){switch(eo){case"info":return reactExports.createElement(InfoFilled,null);case"warning":return reactExports.createElement(WarningFilled,null);case"error":return reactExports.createElement(ErrorCircleFilled,null);case"success":return reactExports.createElement(CheckmarkCircleFilled,null);default:return null}}function useMessageBarReflow(eo=!1){const{targetDocument:to}=useFluent(),ro=reactExports.useReducer(()=>({}),{})[1],no=reactExports.useRef(!1),oo=reactExports.useRef(null),io=reactExports.useRef(-1),so=reactExports.useCallback(lo=>{const uo=lo[0],co=uo==null?void 0:uo.borderBoxSize[0];if(!co||!uo)return;const{inlineSize:fo}=co,{target:ho}=uo;if(!isHTMLElement$6(ho))return;let po;if(no.current)io.current{var uo;if(!eo||!lo||!(to!=null&&to.defaultView))return;(uo=oo.current)===null||uo===void 0||uo.disconnect();const co=to.defaultView,fo=new co.ResizeObserver(so);oo.current=fo,fo.observe(lo,{box:"border-box"})},[to,so,eo]);return reactExports.useEffect(()=>()=>{var lo;(lo=oo.current)===null||lo===void 0||lo.disconnect()},[]),{ref:ao,reflowing:no.current}}const messageBarTransitionContext=reactExports.createContext(void 0),messageBarTransitionContextDefaultValue={className:"",nodeRef:reactExports.createRef()};messageBarTransitionContext.Provider;const useMessageBarTransitionContext=()=>{var eo;return(eo=reactExports.useContext(messageBarTransitionContext))!==null&&eo!==void 0?eo:messageBarTransitionContextDefaultValue},useMessageBar_unstable=(eo,to)=>{const{layout:ro="auto",intent:no="info",politeness:oo,shape:io="rounded"}=eo,so=oo??no==="info"?"polite":"assertive",ao=ro==="auto",{ref:lo,reflowing:uo}=useMessageBarReflow(ao),co=ao?uo?"multiline":"singleline":ro,{className:fo,nodeRef:ho}=useMessageBarTransitionContext(),po=reactExports.useRef(null),go=reactExports.useRef(null),{announce:vo}=useAnnounce(),bo=useId$1();return reactExports.useEffect(()=>{var xo,_o;const Eo=(xo=go.current)===null||xo===void 0?void 0:xo.textContent,So=(_o=po.current)===null||_o===void 0?void 0:_o.textContent,To=[Eo,So].filter(Boolean).join(",");vo(To,{polite:so==="polite",alert:so==="assertive"})},[go,po,vo,so]),{components:{root:"div",icon:"div"},root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(to,lo,ho),role:"group","aria-labelledby":bo,...eo}),{elementType:"div"}),icon:optional(eo.icon,{renderByDefault:!0,elementType:"div",defaultProps:{children:getIntentIcon(no)}}),layout:co,intent:no,transitionClassName:fo,actionsRef:po,bodyRef:go,titleId:bo,shape:io}},messageBarContext=reactExports.createContext(void 0),messageBarContextDefaultValue={titleId:"",layout:"singleline",actionsRef:reactExports.createRef(),bodyRef:reactExports.createRef()},MessageBarContextProvider=messageBarContext.Provider,useMessageBarContext=()=>{var eo;return(eo=reactExports.useContext(messageBarContext))!==null&&eo!==void 0?eo:messageBarContextDefaultValue},renderMessageBar_unstable=(eo,to)=>jsx$1(MessageBarContextProvider,{value:to.messageBar,children:jsxs(eo.root,{children:[eo.icon&&jsx$1(eo.icon,{}),eo.root.children]})}),messageBarClassNames={root:"fui-MessageBar",icon:"fui-MessageBar__icon"},useRootBaseStyles$2=__resetStyles("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);}']),useIconBaseStyles=__resetStyles("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;}"]),useStyles$l=__styles({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;}"]}),useIconIntentStyles=__styles({info:{},error:{sj55zd:"f1ca9wz"},warning:{sj55zd:"f14a4cve"},success:{sj55zd:"f36rra6"}},{d:[".f1ca9wz{color:var(--colorStatusDangerForeground1);}",".f14a4cve{color:var(--colorStatusWarningForeground3);}",".f36rra6{color:var(--colorStatusSuccessForeground1);}"]}),useRootIntentStyles=__styles({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);}"]}),useMessageBarStyles_unstable=eo=>{const to=useRootBaseStyles$2(),ro=useIconBaseStyles(),no=useIconIntentStyles(),oo=useRootIntentStyles(),io=useStyles$l();return eo.root.className=mergeClasses(messageBarClassNames.root,to,eo.layout==="multiline"&&io.rootMultiline,eo.shape==="square"&&io.square,oo[eo.intent],eo.transitionClassName,eo.root.className),eo.icon&&(eo.icon.className=mergeClasses(messageBarClassNames.icon,ro,no[eo.intent],eo.icon.className)),eo};function useMessageBarContextValue_unstable(eo){const{layout:to,actionsRef:ro,bodyRef:no,titleId:oo}=eo;return{messageBar:reactExports.useMemo(()=>({layout:to,actionsRef:ro,bodyRef:no,titleId:oo}),[to,ro,no,oo])}}const MessageBar=reactExports.forwardRef((eo,to)=>{const ro=useMessageBar_unstable(eo,to);return useMessageBarStyles_unstable(ro),useCustomStyleHook("useMessageBarStyles_unstable")(ro),renderMessageBar_unstable(ro,useMessageBarContextValue_unstable(ro))});MessageBar.displayName="MessageBar";const useMessageBarTitle_unstable=(eo,to)=>{const{titleId:ro}=useMessageBarContext();return{components:{root:"span"},root:always(getIntrinsicElementProps("span",{ref:to,id:ro,...eo}),{elementType:"span"})}},renderMessageBarTitle_unstable=eo=>jsx$1(eo.root,{}),messageBarTitleClassNames={root:"fui-MessageBarTitle"},useRootBaseStyles$1=__resetStyles("r168xkm9",null,[".r168xkm9{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);}",'.r168xkm9::after{content:" ";}']),useMessageBarTitleStyles_unstable=eo=>{const to=useRootBaseStyles$1();return eo.root.className=mergeClasses(messageBarTitleClassNames.root,to,eo.root.className),eo},MessageBarTitle=reactExports.forwardRef((eo,to)=>{const ro=useMessageBarTitle_unstable(eo,to);return useMessageBarTitleStyles_unstable(ro),useCustomStyleHook("useMessageBarTitleStyles_unstable")(ro),renderMessageBarTitle_unstable(ro)});MessageBarTitle.displayName="MessageBarTitle";const useMessageBarBody_unstable=(eo,to)=>{const{bodyRef:ro}=useMessageBarContext();return{components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(to,ro),...eo}),{elementType:"div"})}},renderMessageBarBody_unstable=eo=>jsx$1(eo.root,{}),messageBarBodyClassNames={root:"fui-MessageBarBody"},useRootBaseStyles=__resetStyles("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);}"]),useMessageBarBodyStyles_unstable=eo=>{const to=useRootBaseStyles();return eo.root.className=mergeClasses(messageBarBodyClassNames.root,to,eo.root.className),eo},MessageBarBody=reactExports.forwardRef((eo,to)=>{const ro=useMessageBarBody_unstable(eo,to);return useMessageBarBodyStyles_unstable(ro),useCustomStyleHook("useMessageBarBodyStyles_unstable")(ro),renderMessageBarBody_unstable(ro)});MessageBarBody.displayName="MessageBarBody";const useReducedMotion=()=>{var eo;const to=useFluent(),ro=reactExports.useRef(!1),no=canUseDOM$3()&&((eo=to.targetDocument)===null||eo===void 0?void 0:eo.defaultView),oo=reactExports.useCallback(io=>{ro.current=io.matches},[]);return useIsomorphicLayoutEffect$1(()=>{if(!no||!no.matchMedia)return;const io=no.matchMedia("screen and (prefers-reduced-motion: reduce)");return io.matches&&(ro.current=!0),io.addEventListener("change",oo),()=>io.removeEventListener("change",oo)},[oo,no]),ro.current},getCSSStyle=eo=>hasCSSOMSupport(eo)?eo.computedStyleMap():getElementComputedStyle(eo),hasCSSOMSupport=eo=>!!(typeof CSS<"u"&&CSS.number&&eo.computedStyleMap),getElementComputedStyle=eo=>{var to,ro;const no=canUseDOM$3()&&((ro=(to=eo.ownerDocument)===null||to===void 0?void 0:to.defaultView)!==null&&ro!==void 0?ro:window);return no?no.getComputedStyle(eo,null):{getPropertyValue:oo=>""}};function toMs(eo){const to=eo.trim();if(to.includes("auto"))return 0;if(to.endsWith("ms")){const ro=Number(to.replace("ms",""));return isNaN(ro)?0:ro}return Number(to.slice(0,-1).replace(",","."))*1e3}const getComputedMapProp=(eo,to)=>{const ro=eo.getAll(to);return ro.length>0?ro.map(({value:no,unit:oo})=>`${no}${oo}`):["0"]},getComputedStyleProp=(eo,to)=>{const ro=eo.getPropertyValue(to);return ro?ro.split(","):["0"]},getMaxCSSDuration=(eo,to)=>{const ro=Math.max(eo.length,to.length),no=[];if(ro===0)return 0;for(let oo=0;oo{const to=hasCSSOMSupport(eo),ro=getCSSStyle(eo),no=so=>to?getComputedMapProp(ro,so):getComputedStyleProp(ro,so),oo=getMaxCSSDuration(no("transition-duration"),no("transition-delay")),io=getMaxCSSDuration(no("animation-duration"),no("animation-delay"));return Math.max(oo,io)},useFirstMountCondition=eo=>{const to=reactExports.useRef(!0);return to.current&&eo?(to.current=!1,!0):to.current};function useMotionPresence(eo,to={}){const{animateOnFirstMount:ro,duration:no}={animateOnFirstMount:!1,...to},[oo,io]=reactExports.useState(eo&&ro?"entering":eo?"idle":"unmounted"),[so,ao]=reactExports.useState(!ro&&eo),[lo,uo]=useTimeout(),[co,fo]=useTimeout(),[ho,po]=useAnimationFrame(),[go,vo]=reactExports.useState(null),bo=useReducedMotion(),xo=useFirstMount(),_o=useFirstMountCondition(!!go),Eo=reactExports.useRef(eo).current,So=bo||_o&&Eo&&!ro,To=reactExports.useCallback(Oo=>{Oo&&vo(Oo)},[]),wo=reactExports.useCallback(Oo=>(co(()=>ho(Oo),0),()=>{fo(),po()}),[po,fo,ho,co]),Co=reactExports.useCallback(()=>{io(eo?"entered":"exited"),wo(()=>io(eo?"idle":"unmounted"))},[wo,eo]);return reactExports.useEffect(()=>{if(!xo){if(So){io(eo?"idle":"unmounted"),ao(eo);return}if(io(eo?"entering":"exiting"),!!go)return wo(()=>{ao(eo),wo(()=>{const Oo=no||getMotionDuration(go);if(Oo===0){Co();return}lo(()=>Co(),Oo)})}),()=>uo()}},[go,So,Co,eo]),reactExports.useMemo(()=>({ref:To,type:oo,active:so,canRender:eo||oo!=="unmounted"}),[so,oo,eo])}function useMotion(eo,to){const ro=typeof eo=="object",no=useMotionPresence(ro?!1:eo,to);return ro?eo:no}const useReducedMotionStyles=__styles({reduced:{Hwfdqs:"f1bggi9a"}},{m:[["@media screen and (prefers-reduced-motion: reduce){.f1bggi9a{transition-duration:0.01ms!important;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]});function assertMotionStyles(eo){}const useMotionClassNames=(eo,to)=>{const{reduced:ro}=useReducedMotionStyles(),no=reactExports.useMemo(()=>!to.enter&&!to.exit?"":eo.active||eo.type==="idle"?to.enter:eo.active?"":to.exit,[eo.active,eo.type,to.enter,to.exit]);return reactExports.useEffect(()=>void 0,[to]),mergeClasses(to.default,no,to[eo.type],ro)};function useDrawerDefaultProps(eo){const{open:to=!1,size:ro="small",position:no="start"}=eo;return{size:ro,position:no,open:to}}const useBackdropResetStyles=__resetStyles("rivxbo","r1trjn1z",[".rivxbo{top:0px;right:0px;bottom:0px;left:0px;position:fixed;background-color:rgba(0, 0, 0, 0.4);}",".r1trjn1z{top:0px;left:0px;bottom:0px;right:0px;position:fixed;background-color:rgba(0, 0, 0, 0.4);}"]),useBackdropStyles=__styles({nested:{De3pzq:"f1c21dwh"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}"]}),useOverlayDrawerSurfaceStyles_unstable=eo=>{const to=useBackdropResetStyles(),ro=useBackdropStyles();return eo.backdrop&&(eo.backdrop.className=mergeClasses(to,eo.isNestedDialog&&ro.nested,eo.backdrop.className)),eo},OverlayDrawerSurface=reactExports.forwardRef((eo,to)=>{const ro=useDialogSurface_unstable(eo,to),no=useDialogSurfaceContextValues_unstable();return useOverlayDrawerSurfaceStyles_unstable(ro),renderDialogSurface_unstable(ro,no)});OverlayDrawerSurface.displayName="OverlayDrawerSurface";const useOverlayDrawer_unstable=(eo,to)=>{const{open:ro,size:no,position:oo}=useDrawerDefaultProps(eo),{modalType:io="modal",inertTrapFocus:so,defaultOpen:ao=!1,onOpenChange:lo}=eo,uo=useMotion(ro),co=resolveShorthand(eo.backdrop),ho=always({...eo,backdrop:io!=="non-modal"&&co!==null?{...co}:null},{elementType:OverlayDrawerSurface,defaultProps:{ref:useMergedRefs$1(to,uo.ref)}}),po=always({open:!0,defaultOpen:ao,onOpenChange:lo,inertTrapFocus:so,modalType:io,children:null},{elementType:Dialog});return{components:{root:OverlayDrawerSurface,dialog:Dialog},root:ho,dialog:po,size:no,position:oo,motion:uo}},renderOverlayDrawer_unstable=eo=>eo.motion.canRender?jsx$1(eo.dialog,{children:jsx$1(eo.root,{})}):null,useDrawerStyles=__styles({entering:{Bkqvd7p:"f18ad807"},exiting:{Bkqvd7p:"f1mfizis"},reducedMotion:{Hwfdqs:"f5e8c63"},start:{Bekrc4i:["f5tn483","f1ojsxk5"],vrafjx:["fcdblym","fjik90z"],h3c5rm:["f1gn591s","fjscplz"],oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["fvfyk4","frppm18"]},end:{ibv6hh:["f1ojsxk5","f5tn483"],wvpqe5:["fjik90z","fcdblym"],zhjwy3:["fjscplz","f1gn591s"],j35jbq:["f1e31b4d","f1vgc2s3"],oyh7mz:["frppm18","fvfyk4"]},small:{Bjr0ffy:"f1exhnwo"},medium:{Bjr0ffy:"fqofjzu"},large:{Bjr0ffy:"fce6y3m"},full:{Bjr0ffy:"fsdmzs6"}},{d:[".f18ad807{transition-timing-function:var(--curveDecelerateMid);}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".fvfyk4{right:auto;}",".frppm18{left:auto;}",".f1exhnwo{--fui-Drawer--size:320px;}",".fqofjzu{--fui-Drawer--size:592px;}",".fce6y3m{--fui-Drawer--size:940px;}",".fsdmzs6{--fui-Drawer--size:100vw;}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f5e8c63{transition-duration:0.001ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),useDrawerDurationStyles=__styles({small:{B3o57yi:"fc397y7"},medium:{B3o57yi:"f78771"},large:{B3o57yi:"f9ymmep"},full:{B3o57yi:"f1loko9l"}},{d:[".fc397y7{transition-duration:var(--durationGentle);}",".f78771{transition-duration:var(--durationSlow);}",".f9ymmep{transition-duration:var(--durationSlower);}",".f1loko9l{transition-duration:var(--durationUltraSlow);}"]}),useDrawerBaseClassNames=({position:eo,size:to,motion:ro})=>{const no=useDrawerStyles(),oo=useDrawerDurationStyles();return mergeClasses(no[eo],oo[to],no[to],no.reducedMotion,ro.type==="entering"&&no.entering,ro.type==="exiting"&&no.exiting)},overlayDrawerClassNames={root:"fui-OverlayDrawer",backdrop:"fui-OverlayDrawer__backdrop"},useDrawerResetStyles=__resetStyles("r1vxc6jp","r1uky7bi",{r:[".r1vxc6jp{overflow-x:hidden;overflow-y:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:fixed;top:0;bottom:0;}",".r1vxc6jp:focus{outline-style:none;}",".r1vxc6jp:focus-visible{outline-style:none;}",".r1vxc6jp[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1vxc6jp[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);}',".r1uky7bi{overflow-x:hidden;overflow-y:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:fixed;top:0;bottom:0;}",".r1uky7bi:focus{outline-style:none;}",".r1uky7bi:focus-visible{outline-style:none;}",".r1uky7bi[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r1uky7bi[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){.r1vxc6jp[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){.r1uky7bi[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),useDrawerRootStyles=__styles({start:{Bz10aip:"f1d8gkik"},end:{Bz10aip:"f1g0pcr8"}},{d:[".f1d8gkik{transform:translate3D(calc(var(--fui-Drawer--size) * -1), 0, 0);}",".f1g0pcr8{transform:translate3D(calc(var(--fui-Drawer--size) * 1), 0, 0);}"]}),useDrawerMotionStyles=__styles({default:{abs64n:"fk73vx1",E5pizo:"ff88big",Bmy1vo4:"f1neo61",Es3by:"f1ytgekk"},enter:{abs64n:"f5p0z4x",Bz10aip:"f87uvqx",E5pizo:"f10nrhrw"}},{d:[".fk73vx1{opacity:0;}",".ff88big{box-shadow:0px var(--colorTransparentBackground);}",".f1neo61{transition-property:transform,box-shadow,opacity;}",".f1ytgekk{will-change:transform,box-shadow,opacity;}",".f5p0z4x{opacity:1;}",".f87uvqx{transform:translate3D(0, 0, 0);}",".f10nrhrw{box-shadow:var(--shadow64);}"]}),useBackdropMotionStyles=__styles({default:{abs64n:"fk73vx1",Bmy1vo4:"f13u1uyl",Bkqvd7p:"f17wnm97",Es3by:"f1gqqdtu"},enter:{abs64n:"f5p0z4x"}},{d:[".fk73vx1{opacity:0;}",".f13u1uyl{transition-property:opacity;}",".f17wnm97{transition-timing-function:var(--curveEasyEase);}",".f1gqqdtu{will-change:opacity;}",".f5p0z4x{opacity:1;}"]}),useOverlayDrawerStyles_unstable=eo=>{const to=useDrawerBaseClassNames(eo),ro=useDrawerResetStyles(),no=useDrawerRootStyles(),oo=useDrawerDurationStyles(),io=useMotionClassNames(eo.motion,useDrawerMotionStyles()),so=useMotionClassNames(eo.motion,useBackdropMotionStyles()),ao=eo.root.backdrop;return eo.root.className=mergeClasses(overlayDrawerClassNames.root,to,ro,no[eo.position],io,eo.root.className),ao&&(ao.className=mergeClasses(overlayDrawerClassNames.backdrop,so,oo[eo.size],ao.className)),eo},OverlayDrawer=reactExports.forwardRef((eo,to)=>{const ro=useOverlayDrawer_unstable(eo,to);return useOverlayDrawerStyles_unstable(ro),useCustomStyleHook("useDrawerOverlayStyles_unstable")(ro),useCustomStyleHook("useOverlayDrawerStyles_unstable")(ro),renderOverlayDrawer_unstable(ro)});OverlayDrawer.displayName="OverlayDrawer";const useBreadcrumb_unstable=(eo,to)=>{const{focusMode:ro="tab",size:no="medium",list:oo,...io}=eo,so=useArrowNavigationGroup({circular:!0,axis:"horizontal",memorizeCurrent:!0});var ao;return{components:{root:"nav",list:"ol"},root:always(getIntrinsicElementProps("nav",{ref:to,"aria-label":(ao=eo["aria-label"])!==null&&ao!==void 0?ao:"breadcrumb",...ro==="arrow"?so:{},...io}),{elementType:"nav"}),list:optional(oo,{renderByDefault:!0,defaultProps:{role:"list"},elementType:"ol"}),size:no}},BreadcrumbContext=reactExports.createContext(void 0),breadcrumbDefaultValue={size:"medium"},BreadcrumbProvider=BreadcrumbContext.Provider,useBreadcrumbContext_unstable=()=>{var eo;return(eo=reactExports.useContext(BreadcrumbContext))!==null&&eo!==void 0?eo:breadcrumbDefaultValue},renderBreadcrumb_unstable=(eo,to)=>jsx$1(eo.root,{children:jsx$1(BreadcrumbProvider,{value:to,children:eo.list&&jsx$1(eo.list,{children:eo.root.children})})}),breadcrumbClassNames={root:"fui-Breadcrumb",list:"fui-Breadcrumb__list"},useListClassName=__resetStyles("rc5rb6b",null,[".rc5rb6b{list-style-type:none;display:flex;align-items:center;margin:0;padding:0;}"]),useBreadcrumbStyles_unstable=eo=>{const to=useListClassName();return eo.root.className=mergeClasses(breadcrumbClassNames.root,eo.root.className),eo.list&&(eo.list.className=mergeClasses(to,breadcrumbClassNames.list,eo.list.className)),eo};function useBreadcrumbContextValues_unstable(eo){const{size:to}=eo;return reactExports.useMemo(()=>({size:to}),[to])}const Breadcrumb=reactExports.forwardRef((eo,to)=>{const ro=useBreadcrumb_unstable(eo,to),no=useBreadcrumbContextValues_unstable(ro);return useBreadcrumbStyles_unstable(ro),useCustomStyleHook("useBreadcrumbStyles_unstable")(ro),renderBreadcrumb_unstable(ro,no)});Breadcrumb.displayName="Breadcrumb";const useBreadcrumbDivider_unstable=(eo,to)=>{const{size:ro}=useBreadcrumbContext_unstable(),{dir:no}=useFluent(),oo=getDividerIcon(ro,no);return{components:{root:"li"},root:always(getIntrinsicElementProps("li",{ref:to,"aria-hidden":!0,children:oo,...eo}),{elementType:"li"})}},dividerIcons={rtl:{small:reactExports.createElement(ChevronLeft12Regular,null),medium:reactExports.createElement(ChevronLeft16Regular,null),large:reactExports.createElement(ChevronLeft20Regular,null)},ltr:{small:reactExports.createElement(ChevronRight12Regular,null),medium:reactExports.createElement(ChevronRight16Regular,null),large:reactExports.createElement(ChevronRight20Regular,null)}};function getDividerIcon(eo="medium",to){const ro=to==="rtl"?dividerIcons.rtl:dividerIcons.ltr;return eo==="small"?ro.small:eo==="large"?ro.large:ro.medium}const renderBreadcrumbDivider_unstable=eo=>jsx$1(eo.root,{}),breadcrumbDividerClassNames={root:"fui-BreadcrumbDivider"},useStyles$k=__styles({root:{mc9l5x:"f22iagw"}},{d:[".f22iagw{display:flex;}"]}),useBreadcrumbDividerStyles_unstable=eo=>{const to=useStyles$k();return eo.root.className=mergeClasses(breadcrumbDividerClassNames.root,to.root,eo.root.className),eo},BreadcrumbDivider=reactExports.forwardRef((eo,to)=>{const ro=useBreadcrumbDivider_unstable(eo,to);return useBreadcrumbDividerStyles_unstable(ro),useCustomStyleHook("useBreadcrumbDividerStyles_unstable")(ro),renderBreadcrumbDivider_unstable(ro)});BreadcrumbDivider.displayName="BreadcrumbDivider";const useBreadcrumbItem_unstable=(eo,to)=>{const{size:ro}=useBreadcrumbContext_unstable();return{components:{root:"li"},root:always(getIntrinsicElementProps("li",{ref:to,...eo}),{elementType:"li"}),size:ro}},renderBreadcrumbItem_unstable=eo=>jsx$1(eo.root,{children:eo.root.children}),breadcrumbItemClassNames={root:"fui-BreadcrumbItem"},useBreadcrumbItemResetStyles=__resetStyles("r1tl60rs",null,[".r1tl60rs{display:flex;align-items:center;color:var(--colorNeutralForeground2);box-sizing:border-box;text-wrap:nowrap;}"]),useBreadcrumbItemStyles_unstable=eo=>{const to=useBreadcrumbItemResetStyles();return eo.root.className=mergeClasses(breadcrumbItemClassNames.root,to,eo.root.className),eo},BreadcrumbItem=reactExports.forwardRef((eo,to)=>{const ro=useBreadcrumbItem_unstable(eo,to);return useBreadcrumbItemStyles_unstable(ro),useCustomStyleHook("useBreadcrumbItemStyles_unstable")(ro),renderBreadcrumbItem_unstable(ro)});BreadcrumbItem.displayName="BreadcrumbItem";const useBreadcrumbButton_unstable=(eo,to)=>{const{size:ro}=useBreadcrumbContext_unstable(),{current:no=!1,as:oo,...io}=eo,so=oo??eo.href?"a":"button";var ao,lo;return{...useButton_unstable({appearance:"subtle",role:void 0,type:void 0,as:so,iconPosition:"before","aria-current":no?(ao=eo["aria-current"])!==null&&ao!==void 0?ao:"page":void 0,"aria-disabled":no?(lo=eo["aria-disabled"])!==null&&lo!==void 0?lo:!0:void 0,...io},to),current:no,size:ro}},renderBreadcrumbButton_unstable=eo=>renderButton_unstable(eo),breadcrumbButtonClassNames={root:"fui-BreadcrumbButton",icon:"fui-BreadcrumbButton__icon"},useIconStyles=__styles({base:{Be2twd7:"fsj74e5",Bqenvij:"f1qfv4wv",Bg96gwp:"f15xapk4",a9b677:"f17j33op",t21cq0:["fm0x6gh","fbyavb5"]},small:{u3h8gg:"f1qfi7kw",Biu6dll:"f1876atl"},medium:{u3h8gg:"f1h9446d",Biu6dll:"f10xfswh"},large:{u3h8gg:"f5hcofs",Biu6dll:"f1a6v6zl"}},{d:[".fsj74e5{font-size:var(--fui-Breadcrumb--icon-size);}",".f1qfv4wv{height:var(--fui-Breadcrumb--icon-size);}",".f15xapk4{line-height:var(--fui-Breadcrumb--icon-line-height);}",".f17j33op{width:var(--fui-Breadcrumb--icon-size);}",".fm0x6gh{margin-right:var(--spacingHorizontalXS);}",".fbyavb5{margin-left:var(--spacingHorizontalXS);}",".f1qfi7kw{--fui-Breadcrumb--icon-size:12px;}",".f1876atl{--fui-Breadcrumb--icon-line-height:var(--lineHeightBase200);}",".f1h9446d{--fui-Breadcrumb--icon-size:16px;}",".f10xfswh{--fui-Breadcrumb--icon-line-height:var(--lineHeightBase400);}",".f5hcofs{--fui-Breadcrumb--icon-size:20px;}",".f1a6v6zl{--fui-Breadcrumb--icon-line-height:var(--lineHeightBase600);}"]}),useStyles$j=__styles({root:{Bf4jedk:"f18p0k4z",j4b8c3:"fv6wr3j",icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"]},small:{Bqenvij:"frvgh55",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",z8tnut:"f16k8034",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"f1angvds",uwmqm3:["fk8j09s","fdw0yi8"]},medium:{Bqenvij:"f1d2rq10",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",z8tnut:"f16k8034",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"f1angvds",uwmqm3:["fk8j09s","fdw0yi8"]},large:{Bqenvij:"fbhnoac",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",z8tnut:"f17mpqex",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"fdvome7",uwmqm3:["f1f5gg8d","f1vdfbxk"]},current:{Jwef8y:"f9ql6rf",Bi91k9c:"f3p8bqa",eoavqd:"f14w7a5u",Bbdnnc7:"f1irjp3o",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",iro3zm:"f3h1zc4",B2d53fq:"f1xkgyln",c3iz72:"f17wbbfx",x3br3k:"fofxw0a",em6i61:"f1ol4fw6",vm6p8p:"f1q1lw4e",Bszkowt:"ff24m",Dyrjrp:"ft5r8e9",ezr58z:"f1cbpfqp",nhk3du:"f1motppv",Bfrek18:"fi9vkhg",G209fr:"f1fg3nnv"},currentSmall:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"fl43uef",Bg96gwp:"fwrc4pm"},currentMedium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"fl43uef",Bg96gwp:"f1i3iumi"},currentLarge:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"}},{d:[".f18p0k4z{min-width:unset;}",".fv6wr3j{text-wrap:nowrap;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",".frvgh55{height:24px;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f16k8034{padding-top:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1angvds{padding-bottom:var(--spacingHorizontalSNudge);}",".f1d2rq10{height:32px;}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fbhnoac{height:40px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f17mpqex{padding-top:var(--spacingHorizontalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".fdvome7{padding-bottom:var(--spacingHorizontalS);}",".ff24m:disabled{background-color:var(--colorTransparentBackground);}",".ft5r8e9:disabled{color:var(--colorNeutralForeground2);}",".f1cbpfqp:disabled{cursor:auto;}",".f1motppv:disabled .fui-Button__icon{color:unset;}",".fi9vkhg:disabled .fui-Icon-filled{display:none;}",".f1fg3nnv:disabled .fui-Icon-regular{display:inline;}",".fl43uef{font-weight:var(--fontWeightSemibold);}"],h:[".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f3p8bqa:hover{color:var(--colorNeutralForeground2);}",".f14w7a5u:hover{cursor:auto;}",".f1irjp3o:hover .fui-Button__icon{color:unset;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f3h1zc4:hover:active{background-color:var(--colorTransparentBackground);}",".f1xkgyln:hover:active{color:var(--colorNeutralForeground2);}",".f17wbbfx:hover:active{cursor:auto;}",".fofxw0a:hover:active .fui-Button__icon{color:unset;}",".f1ol4fw6:hover:active .fui-Icon-filled{display:none;}",".f1q1lw4e:hover:active .fui-Icon-regular{display:inline;}"]}),useBreadcrumbButtonStyles_unstable=eo=>{const to=useStyles$j(),ro=useIconStyles(),no={small:to.currentSmall,medium:to.currentMedium,large:to.currentLarge};return eo.root.className=mergeClasses(breadcrumbButtonClassNames.root,to[eo.size],to.root,eo.current&&no[eo.size],eo.current&&to.current,eo.root.className),eo.icon&&(eo.icon.className=mergeClasses(ro.base,ro[eo.size],eo.icon.className)),useButtonStyles_unstable(eo),eo},BreadcrumbButton=reactExports.forwardRef((eo,to)=>{const ro=useBreadcrumbButton_unstable(eo,to);return useBreadcrumbButtonStyles_unstable(ro),useCustomStyleHook("useBreadcrumbButtonStyles_unstable")(ro),renderBreadcrumbButton_unstable(ro)});BreadcrumbButton.displayName="BreadcrumbButton";var axios$1={exports:{}},bind$2=function(to,ro){return function(){for(var oo=new Array(arguments.length),io=0;io"u"}function isBuffer$4(eo){return eo!==null&&!isUndefined(eo)&&eo.constructor!==null&&!isUndefined(eo.constructor)&&typeof eo.constructor.isBuffer=="function"&&eo.constructor.isBuffer(eo)}function isArrayBuffer(eo){return toString$3.call(eo)==="[object ArrayBuffer]"}function isFormData(eo){return typeof FormData<"u"&&eo instanceof FormData}function isArrayBufferView(eo){var to;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?to=ArrayBuffer.isView(eo):to=eo&&eo.buffer&&eo.buffer instanceof ArrayBuffer,to}function isString$1(eo){return typeof eo=="string"}function isNumber$1(eo){return typeof eo=="number"}function isObject$g(eo){return eo!==null&&typeof eo=="object"}function isPlainObject$2(eo){if(toString$3.call(eo)!=="[object Object]")return!1;var to=Object.getPrototypeOf(eo);return to===null||to===Object.prototype}function isDate(eo){return toString$3.call(eo)==="[object Date]"}function isFile(eo){return toString$3.call(eo)==="[object File]"}function isBlob(eo){return toString$3.call(eo)==="[object Blob]"}function isFunction$6(eo){return toString$3.call(eo)==="[object Function]"}function isStream(eo){return isObject$g(eo)&&isFunction$6(eo.pipe)}function isURLSearchParams(eo){return typeof URLSearchParams<"u"&&eo instanceof URLSearchParams}function trim$1(eo){return eo.trim?eo.trim():eo.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function forEach(eo,to){if(!(eo===null||typeof eo>"u"))if(typeof eo!="object"&&(eo=[eo]),isArray$f(eo))for(var ro=0,no=eo.length;ro"u"||(utils$8.isArray(lo)?uo=uo+"[]":lo=[lo],utils$8.forEach(lo,function(fo){utils$8.isDate(fo)?fo=fo.toISOString():utils$8.isObject(fo)&&(fo=JSON.stringify(fo)),io.push(encode$1(uo)+"="+encode$1(fo))}))}),oo=io.join("&")}if(oo){var so=to.indexOf("#");so!==-1&&(to=to.slice(0,so)),to+=(to.indexOf("?")===-1?"?":"&")+oo}return to},utils$7=utils$9;function InterceptorManager$1(){this.handlers=[]}InterceptorManager$1.prototype.use=function(to,ro,no){return this.handlers.push({fulfilled:to,rejected:ro,synchronous:no?no.synchronous:!1,runWhen:no?no.runWhen:null}),this.handlers.length-1};InterceptorManager$1.prototype.eject=function(to){this.handlers[to]&&(this.handlers[to]=null)};InterceptorManager$1.prototype.forEach=function(to){utils$7.forEach(this.handlers,function(no){no!==null&&to(no)})};var InterceptorManager_1=InterceptorManager$1,utils$6=utils$9,normalizeHeaderName$1=function(to,ro){utils$6.forEach(to,function(oo,io){io!==ro&&io.toUpperCase()===ro.toUpperCase()&&(to[ro]=oo,delete to[io])})},enhanceError$1=function(to,ro,no,oo,io){return to.config=ro,no&&(to.code=no),to.request=oo,to.response=io,to.isAxiosError=!0,to.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}},to},createError,hasRequiredCreateError;function requireCreateError(){if(hasRequiredCreateError)return createError;hasRequiredCreateError=1;var eo=enhanceError$1;return createError=function(ro,no,oo,io,so){var ao=new Error(ro);return eo(ao,no,oo,io,so)},createError}var settle,hasRequiredSettle;function requireSettle(){if(hasRequiredSettle)return settle;hasRequiredSettle=1;var eo=requireCreateError();return settle=function(ro,no,oo){var io=oo.config.validateStatus;!oo.status||!io||io(oo.status)?ro(oo):no(eo("Request failed with status code "+oo.status,oo.config,null,oo.request,oo))},settle}var cookies,hasRequiredCookies;function requireCookies(){if(hasRequiredCookies)return cookies;hasRequiredCookies=1;var eo=utils$9;return cookies=eo.isStandardBrowserEnv()?function(){return{write:function(no,oo,io,so,ao,lo){var uo=[];uo.push(no+"="+encodeURIComponent(oo)),eo.isNumber(io)&&uo.push("expires="+new Date(io).toGMTString()),eo.isString(so)&&uo.push("path="+so),eo.isString(ao)&&uo.push("domain="+ao),lo===!0&&uo.push("secure"),document.cookie=uo.join("; ")},read:function(no){var oo=document.cookie.match(new RegExp("(^|;\\s*)("+no+")=([^;]*)"));return oo?decodeURIComponent(oo[3]):null},remove:function(no){this.write(no,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),cookies}var isAbsoluteURL,hasRequiredIsAbsoluteURL;function requireIsAbsoluteURL(){return hasRequiredIsAbsoluteURL||(hasRequiredIsAbsoluteURL=1,isAbsoluteURL=function(to){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(to)}),isAbsoluteURL}var combineURLs,hasRequiredCombineURLs;function requireCombineURLs(){return hasRequiredCombineURLs||(hasRequiredCombineURLs=1,combineURLs=function(to,ro){return ro?to.replace(/\/+$/,"")+"/"+ro.replace(/^\/+/,""):to}),combineURLs}var buildFullPath,hasRequiredBuildFullPath;function requireBuildFullPath(){if(hasRequiredBuildFullPath)return buildFullPath;hasRequiredBuildFullPath=1;var eo=requireIsAbsoluteURL(),to=requireCombineURLs();return buildFullPath=function(no,oo){return no&&!eo(oo)?to(no,oo):oo},buildFullPath}var parseHeaders,hasRequiredParseHeaders;function requireParseHeaders(){if(hasRequiredParseHeaders)return parseHeaders;hasRequiredParseHeaders=1;var eo=utils$9,to=["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 parseHeaders=function(no){var oo={},io,so,ao;return no&&eo.forEach(no.split(` +`),function(uo){if(ao=uo.indexOf(":"),io=eo.trim(uo.substr(0,ao)).toLowerCase(),so=eo.trim(uo.substr(ao+1)),io){if(oo[io]&&to.indexOf(io)>=0)return;io==="set-cookie"?oo[io]=(oo[io]?oo[io]:[]).concat([so]):oo[io]=oo[io]?oo[io]+", "+so:so}}),oo},parseHeaders}var isURLSameOrigin,hasRequiredIsURLSameOrigin;function requireIsURLSameOrigin(){if(hasRequiredIsURLSameOrigin)return isURLSameOrigin;hasRequiredIsURLSameOrigin=1;var eo=utils$9;return isURLSameOrigin=eo.isStandardBrowserEnv()?function(){var ro=/(msie|trident)/i.test(navigator.userAgent),no=document.createElement("a"),oo;function io(so){var ao=so;return ro&&(no.setAttribute("href",ao),ao=no.href),no.setAttribute("href",ao),{href:no.href,protocol:no.protocol?no.protocol.replace(/:$/,""):"",host:no.host,search:no.search?no.search.replace(/^\?/,""):"",hash:no.hash?no.hash.replace(/^#/,""):"",hostname:no.hostname,port:no.port,pathname:no.pathname.charAt(0)==="/"?no.pathname:"/"+no.pathname}}return oo=io(window.location.href),function(ao){var lo=eo.isString(ao)?io(ao):ao;return lo.protocol===oo.protocol&&lo.host===oo.host}}():function(){return function(){return!0}}(),isURLSameOrigin}var xhr,hasRequiredXhr;function requireXhr(){if(hasRequiredXhr)return xhr;hasRequiredXhr=1;var eo=utils$9,to=requireSettle(),ro=requireCookies(),no=buildURL$1,oo=requireBuildFullPath(),io=requireParseHeaders(),so=requireIsURLSameOrigin(),ao=requireCreateError();return xhr=function(uo){return new Promise(function(fo,ho){var po=uo.data,go=uo.headers,vo=uo.responseType;eo.isFormData(po)&&delete go["Content-Type"];var bo=new XMLHttpRequest;if(uo.auth){var xo=uo.auth.username||"",_o=uo.auth.password?unescape(encodeURIComponent(uo.auth.password)):"";go.Authorization="Basic "+btoa(xo+":"+_o)}var Eo=oo(uo.baseURL,uo.url);bo.open(uo.method.toUpperCase(),no(Eo,uo.params,uo.paramsSerializer),!0),bo.timeout=uo.timeout;function So(){if(bo){var wo="getAllResponseHeaders"in bo?io(bo.getAllResponseHeaders()):null,Co=!vo||vo==="text"||vo==="json"?bo.responseText:bo.response,Oo={data:Co,status:bo.status,statusText:bo.statusText,headers:wo,config:uo,request:bo};to(fo,ho,Oo),bo=null}}if("onloadend"in bo?bo.onloadend=So:bo.onreadystatechange=function(){!bo||bo.readyState!==4||bo.status===0&&!(bo.responseURL&&bo.responseURL.indexOf("file:")===0)||setTimeout(So)},bo.onabort=function(){bo&&(ho(ao("Request aborted",uo,"ECONNABORTED",bo)),bo=null)},bo.onerror=function(){ho(ao("Network Error",uo,null,bo)),bo=null},bo.ontimeout=function(){var Co="timeout of "+uo.timeout+"ms exceeded";uo.timeoutErrorMessage&&(Co=uo.timeoutErrorMessage),ho(ao(Co,uo,uo.transitional&&uo.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",bo)),bo=null},eo.isStandardBrowserEnv()){var To=(uo.withCredentials||so(Eo))&&uo.xsrfCookieName?ro.read(uo.xsrfCookieName):void 0;To&&(go[uo.xsrfHeaderName]=To)}"setRequestHeader"in bo&&eo.forEach(go,function(Co,Oo){typeof po>"u"&&Oo.toLowerCase()==="content-type"?delete go[Oo]:bo.setRequestHeader(Oo,Co)}),eo.isUndefined(uo.withCredentials)||(bo.withCredentials=!!uo.withCredentials),vo&&vo!=="json"&&(bo.responseType=uo.responseType),typeof uo.onDownloadProgress=="function"&&bo.addEventListener("progress",uo.onDownloadProgress),typeof uo.onUploadProgress=="function"&&bo.upload&&bo.upload.addEventListener("progress",uo.onUploadProgress),uo.cancelToken&&uo.cancelToken.promise.then(function(Co){bo&&(bo.abort(),ho(Co),bo=null)}),po||(po=null),bo.send(po)})},xhr}var utils$5=utils$9,normalizeHeaderName=normalizeHeaderName$1,enhanceError=enhanceError$1,DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(eo,to){!utils$5.isUndefined(eo)&&utils$5.isUndefined(eo["Content-Type"])&&(eo["Content-Type"]=to)}function getDefaultAdapter(){var eo;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(eo=requireXhr()),eo}function stringifySafely(eo,to,ro){if(utils$5.isString(eo))try{return(to||JSON.parse)(eo),utils$5.trim(eo)}catch(no){if(no.name!=="SyntaxError")throw no}return(ro||JSON.stringify)(eo)}var defaults$5={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:getDefaultAdapter(),transformRequest:[function(to,ro){return normalizeHeaderName(ro,"Accept"),normalizeHeaderName(ro,"Content-Type"),utils$5.isFormData(to)||utils$5.isArrayBuffer(to)||utils$5.isBuffer(to)||utils$5.isStream(to)||utils$5.isFile(to)||utils$5.isBlob(to)?to:utils$5.isArrayBufferView(to)?to.buffer:utils$5.isURLSearchParams(to)?(setContentTypeIfUnset(ro,"application/x-www-form-urlencoded;charset=utf-8"),to.toString()):utils$5.isObject(to)||ro&&ro["Content-Type"]==="application/json"?(setContentTypeIfUnset(ro,"application/json"),stringifySafely(to)):to}],transformResponse:[function(to){var ro=this.transitional,no=ro&&ro.silentJSONParsing,oo=ro&&ro.forcedJSONParsing,io=!no&&this.responseType==="json";if(io||oo&&utils$5.isString(to)&&to.length)try{return JSON.parse(to)}catch(so){if(io)throw so.name==="SyntaxError"?enhanceError(so,this,"E_JSON_PARSE"):so}return to}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(to){return to>=200&&to<300}};defaults$5.headers={common:{Accept:"application/json, text/plain, */*"}};utils$5.forEach(["delete","get","head"],function(to){defaults$5.headers[to]={}});utils$5.forEach(["post","put","patch"],function(to){defaults$5.headers[to]=utils$5.merge(DEFAULT_CONTENT_TYPE)});var defaults_1$1=defaults$5,utils$4=utils$9,defaults$4=defaults_1$1,transformData$1=function(to,ro,no){var oo=this||defaults$4;return utils$4.forEach(no,function(so){to=so.call(oo,to,ro)}),to},isCancel$1,hasRequiredIsCancel;function requireIsCancel(){return hasRequiredIsCancel||(hasRequiredIsCancel=1,isCancel$1=function(to){return!!(to&&to.__CANCEL__)}),isCancel$1}var utils$3=utils$9,transformData=transformData$1,isCancel=requireIsCancel(),defaults$3=defaults_1$1;function throwIfCancellationRequested(eo){eo.cancelToken&&eo.cancelToken.throwIfRequested()}var dispatchRequest$1=function(to){throwIfCancellationRequested(to),to.headers=to.headers||{},to.data=transformData.call(to,to.data,to.headers,to.transformRequest),to.headers=utils$3.merge(to.headers.common||{},to.headers[to.method]||{},to.headers),utils$3.forEach(["delete","get","head","post","put","patch","common"],function(oo){delete to.headers[oo]});var ro=to.adapter||defaults$3.adapter;return ro(to).then(function(oo){return throwIfCancellationRequested(to),oo.data=transformData.call(to,oo.data,oo.headers,to.transformResponse),oo},function(oo){return isCancel(oo)||(throwIfCancellationRequested(to),oo&&oo.response&&(oo.response.data=transformData.call(to,oo.response.data,oo.response.headers,to.transformResponse))),Promise.reject(oo)})},utils$2=utils$9,mergeConfig$2=function(to,ro){ro=ro||{};var no={},oo=["url","method","data"],io=["headers","auth","proxy","params"],so=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],ao=["validateStatus"];function lo(ho,po){return utils$2.isPlainObject(ho)&&utils$2.isPlainObject(po)?utils$2.merge(ho,po):utils$2.isPlainObject(po)?utils$2.merge({},po):utils$2.isArray(po)?po.slice():po}function uo(ho){utils$2.isUndefined(ro[ho])?utils$2.isUndefined(to[ho])||(no[ho]=lo(void 0,to[ho])):no[ho]=lo(to[ho],ro[ho])}utils$2.forEach(oo,function(po){utils$2.isUndefined(ro[po])||(no[po]=lo(void 0,ro[po]))}),utils$2.forEach(io,uo),utils$2.forEach(so,function(po){utils$2.isUndefined(ro[po])?utils$2.isUndefined(to[po])||(no[po]=lo(void 0,to[po])):no[po]=lo(void 0,ro[po])}),utils$2.forEach(ao,function(po){po in ro?no[po]=lo(to[po],ro[po]):po in to&&(no[po]=lo(void 0,to[po]))});var co=oo.concat(io).concat(so).concat(ao),fo=Object.keys(to).concat(Object.keys(ro)).filter(function(po){return co.indexOf(po)===-1});return utils$2.forEach(fo,uo),no};const name$1="axios",version$2="0.21.4",description="Promise based HTTP client for the browser and node.js",main$1="index.js",scripts={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"},repository={type:"git",url:"https://github.com/axios/axios.git"},keywords$1=["xhr","http","ajax","promise","node"],author="Matt Zabriskie",license="MIT",bugs={url:"https://github.com/axios/axios/issues"},homepage="https://axios-http.com",devDependencies={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"},browser$2={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr="dist/axios.min.js",unpkg="dist/axios.min.js",typings="./index.d.ts",dependencies={"follow-redirects":"^1.14.0"},bundlesize=[{path:"./dist/axios.min.js",threshold:"5kB"}],require$$0={name:name$1,version:version$2,description,main:main$1,scripts,repository,keywords:keywords$1,author,license,bugs,homepage,devDependencies,browser:browser$2,jsdelivr,unpkg,typings,dependencies,bundlesize};var pkg=require$$0,validators$3={};["object","boolean","number","function","string","symbol"].forEach(function(eo,to){validators$3[eo]=function(no){return typeof no===eo||"a"+(to<1?"n ":" ")+eo}});var deprecatedWarnings={},currentVerArr=pkg.version.split(".");function isOlderVersion(eo,to){for(var ro=to?to.split("."):currentVerArr,no=eo.split("."),oo=0;oo<3;oo++){if(ro[oo]>no[oo])return!0;if(ro[oo]0;){var io=no[oo],so=to[io];if(so){var ao=eo[io],lo=ao===void 0||so(ao,io,eo);if(lo!==!0)throw new TypeError("option "+io+" must be "+lo);continue}if(ro!==!0)throw Error("Unknown option "+io)}}var validator$1={isOlderVersion,assertOptions,validators:validators$3},utils$1=utils$9,buildURL=buildURL$1,InterceptorManager=InterceptorManager_1,dispatchRequest=dispatchRequest$1,mergeConfig$1=mergeConfig$2,validator=validator$1,validators$2=validator.validators;function Axios$1(eo){this.defaults=eo,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}Axios$1.prototype.request=function(to){typeof to=="string"?(to=arguments[1]||{},to.url=arguments[0]):to=to||{},to=mergeConfig$1(this.defaults,to),to.method?to.method=to.method.toLowerCase():this.defaults.method?to.method=this.defaults.method.toLowerCase():to.method="get";var ro=to.transitional;ro!==void 0&&validator.assertOptions(ro,{silentJSONParsing:validators$2.transitional(validators$2.boolean,"1.0.0"),forcedJSONParsing:validators$2.transitional(validators$2.boolean,"1.0.0"),clarifyTimeoutError:validators$2.transitional(validators$2.boolean,"1.0.0")},!1);var no=[],oo=!0;this.interceptors.request.forEach(function(ho){typeof ho.runWhen=="function"&&ho.runWhen(to)===!1||(oo=oo&&ho.synchronous,no.unshift(ho.fulfilled,ho.rejected))});var io=[];this.interceptors.response.forEach(function(ho){io.push(ho.fulfilled,ho.rejected)});var so;if(!oo){var ao=[dispatchRequest,void 0];for(Array.prototype.unshift.apply(ao,no),ao=ao.concat(io),so=Promise.resolve(to);ao.length;)so=so.then(ao.shift(),ao.shift());return so}for(var lo=to;no.length;){var uo=no.shift(),co=no.shift();try{lo=uo(lo)}catch(fo){co(fo);break}}try{so=dispatchRequest(lo)}catch(fo){return Promise.reject(fo)}for(;io.length;)so=so.then(io.shift(),io.shift());return so};Axios$1.prototype.getUri=function(to){return to=mergeConfig$1(this.defaults,to),buildURL(to.url,to.params,to.paramsSerializer).replace(/^\?/,"")};utils$1.forEach(["delete","get","head","options"],function(to){Axios$1.prototype[to]=function(ro,no){return this.request(mergeConfig$1(no||{},{method:to,url:ro,data:(no||{}).data}))}});utils$1.forEach(["post","put","patch"],function(to){Axios$1.prototype[to]=function(ro,no,oo){return this.request(mergeConfig$1(oo||{},{method:to,url:ro,data:no}))}});var Axios_1=Axios$1,Cancel_1,hasRequiredCancel;function requireCancel(){if(hasRequiredCancel)return Cancel_1;hasRequiredCancel=1;function eo(to){this.message=to}return eo.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},eo.prototype.__CANCEL__=!0,Cancel_1=eo,Cancel_1}var CancelToken_1,hasRequiredCancelToken;function requireCancelToken(){if(hasRequiredCancelToken)return CancelToken_1;hasRequiredCancelToken=1;var eo=requireCancel();function to(ro){if(typeof ro!="function")throw new TypeError("executor must be a function.");var no;this.promise=new Promise(function(so){no=so});var oo=this;ro(function(so){oo.reason||(oo.reason=new eo(so),no(oo.reason))})}return to.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},to.source=function(){var no,oo=new to(function(so){no=so});return{token:oo,cancel:no}},CancelToken_1=to,CancelToken_1}var spread$1,hasRequiredSpread;function requireSpread(){return hasRequiredSpread||(hasRequiredSpread=1,spread$1=function(to){return function(no){return to.apply(null,no)}}),spread$1}var isAxiosError,hasRequiredIsAxiosError;function requireIsAxiosError(){return hasRequiredIsAxiosError||(hasRequiredIsAxiosError=1,isAxiosError=function(to){return typeof to=="object"&&to.isAxiosError===!0}),isAxiosError}var utils=utils$9,bind=bind$2,Axios=Axios_1,mergeConfig=mergeConfig$2,defaults$2=defaults_1$1;function createInstance(eo){var to=new Axios(eo),ro=bind(Axios.prototype.request,to);return utils.extend(ro,Axios.prototype,to),utils.extend(ro,to),ro}var axios=createInstance(defaults$2);axios.Axios=Axios;axios.create=function(to){return createInstance(mergeConfig(axios.defaults,to))};axios.Cancel=requireCancel();axios.CancelToken=requireCancelToken();axios.isCancel=requireIsCancel();axios.all=function(to){return Promise.all(to)};axios.spread=requireSpread();axios.isAxiosError=requireIsAxiosError();axios$1.exports=axios;axios$1.exports.default=axios;var rngBrowser={exports:{}},getRandomValues$1=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(getRandomValues$1){var rnds8$1=new Uint8Array(16);rngBrowser.exports=function(){return getRandomValues$1(rnds8$1),rnds8$1}}else{var rnds=new Array(16);rngBrowser.exports=function(){for(var to=0,ro;to<16;to++)to&3||(ro=Math.random()*4294967296),rnds[to]=ro>>>((to&3)<<3)&255;return rnds}}var rngBrowserExports=rngBrowser.exports,byteToHex$1=[];for(var i$5=0;i$5<256;++i$5)byteToHex$1[i$5]=(i$5+256).toString(16).substr(1);function bytesToUuid$3(eo,to){var ro=to||0,no=byteToHex$1;return[no[eo[ro++]],no[eo[ro++]],no[eo[ro++]],no[eo[ro++]],"-",no[eo[ro++]],no[eo[ro++]],"-",no[eo[ro++]],no[eo[ro++]],"-",no[eo[ro++]],no[eo[ro++]],"-",no[eo[ro++]],no[eo[ro++]],no[eo[ro++]],no[eo[ro++]],no[eo[ro++]],no[eo[ro++]]].join("")}var bytesToUuid_1=bytesToUuid$3,rng$2=rngBrowserExports,bytesToUuid$2=bytesToUuid_1,_nodeId,_clockseq,_lastMSecs=0,_lastNSecs=0;function v1$1(eo,to,ro){var no=to&&ro||0,oo=to||[];eo=eo||{};var io=eo.node||_nodeId,so=eo.clockseq!==void 0?eo.clockseq:_clockseq;if(io==null||so==null){var ao=rng$2();io==null&&(io=_nodeId=[ao[0]|1,ao[1],ao[2],ao[3],ao[4],ao[5]]),so==null&&(so=_clockseq=(ao[6]<<8|ao[7])&16383)}var lo=eo.msecs!==void 0?eo.msecs:new Date().getTime(),uo=eo.nsecs!==void 0?eo.nsecs:_lastNSecs+1,co=lo-_lastMSecs+(uo-_lastNSecs)/1e4;if(co<0&&eo.clockseq===void 0&&(so=so+1&16383),(co<0||lo>_lastMSecs)&&eo.nsecs===void 0&&(uo=0),uo>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_lastMSecs=lo,_lastNSecs=uo,_clockseq=so,lo+=122192928e5;var fo=((lo&268435455)*1e4+uo)%4294967296;oo[no++]=fo>>>24&255,oo[no++]=fo>>>16&255,oo[no++]=fo>>>8&255,oo[no++]=fo&255;var ho=lo/4294967296*1e4&268435455;oo[no++]=ho>>>8&255,oo[no++]=ho&255,oo[no++]=ho>>>24&15|16,oo[no++]=ho>>>16&255,oo[no++]=so>>>8|128,oo[no++]=so&255;for(var po=0;po<6;++po)oo[no+po]=io[po];return to||bytesToUuid$2(oo)}var v1_1=v1$1,rng$1=rngBrowserExports,bytesToUuid$1=bytesToUuid_1;function v4$2(eo,to,ro){var no=to&&ro||0;typeof eo=="string"&&(to=eo==="binary"?new Array(16):null,eo=null),eo=eo||{};var oo=eo.random||(eo.rng||rng$1)();if(oo[6]=oo[6]&15|64,oo[8]=oo[8]&63|128,to)for(var io=0;io<16;++io)to[no+io]=oo[io];return to||bytesToUuid$1(oo)}var v4_1=v4$2,v1=v1_1,v4$1=v4_1,uuid=v4$1;uuid.v1=v1;uuid.v4=v4$1;var uuid_1=uuid;const BASELINE_VARIANT_ID="variant_0",DEFAULT_CHAT_INPUT_NAME="chat_input",DEFAULT_CHAT_HISTORY_NAME="chat_history",DEFAULT_CHAT_OUTPUT_NAME="chat_output";var FlowFeatures=(eo=>(eo.OpenCodeFileInNode="OpenCodeFileInNode",eo.ShowWarningIconOnNode="ShowWarningIconOnNode",eo))(FlowFeatures||{}),ConnectionType=(eo=>(eo.OpenAI="OpenAI",eo.AzureOpenAI="AzureOpenAI",eo.Serp="Serp",eo.Bing="Bing",eo.AzureContentModerator="AzureContentModerator",eo.Custom="Custom",eo.AzureContentSafety="AzureContentSafety",eo.CognitiveSearch="CognitiveSearch",eo.SubstrateLLM="SubstrateLLM",eo.Pinecone="Pinecone",eo.Qdrant="Qdrant",eo.Weaviate="Weaviate",eo.FormRecognizer="FormRecognizer",eo.Serverless="Serverless",eo))(ConnectionType||{}),FlowType=(eo=>(eo.Default="Default",eo.Evaluation="Evaluation",eo.Chat="Chat",eo.Rag="Rag",eo))(FlowType||{}),InputType=(eo=>(eo.default="default",eo.uionly_hidden="uionly_hidden",eo))(InputType||{}),Orientation$1=(eo=>(eo.Horizontal="Horizontal",eo.Vertical="Vertical",eo))(Orientation$1||{}),ToolType=(eo=>(eo.llm="llm",eo.python="python",eo.action="action",eo.prompt="prompt",eo.custom_llm="custom_llm",eo.csharp="csharp",eo.typescript="typescript",eo))(ToolType||{}),ValueType=(eo=>(eo.int="int",eo.double="double",eo.bool="bool",eo.string="string",eo.secret="secret",eo.prompt_template="prompt_template",eo.object="object",eo.list="list",eo.BingConnection="BingConnection",eo.OpenAIConnection="OpenAIConnection",eo.AzureOpenAIConnection="AzureOpenAIConnection",eo.AzureContentModeratorConnection="AzureContentModeratorConnection",eo.CustomConnection="CustomConnection",eo.AzureContentSafetyConnection="AzureContentSafetyConnection",eo.SerpConnection="SerpConnection",eo.CognitiveSearchConnection="CognitiveSearchConnection",eo.SubstrateLLMConnection="SubstrateLLMConnection",eo.PineconeConnection="PineconeConnection",eo.QdrantConnection="QdrantConnection",eo.WeaviateConnection="WeaviateConnection",eo.function_list="function_list",eo.function_str="function_str",eo.FormRecognizerConnection="FormRecognizerConnection",eo.file_path="file_path",eo.image="image",eo.assistant_definition="assistant_definition",eo.ServerlessConnection="ServerlessConnection",eo))(ValueType||{});const FLOW_INPUT_REF_NAME_FLOW="flow",FLOW_INPUT_REF_NAME_INPUT="inputs",FLOW_INPUT_NODE_NAME="inputs",FLOW_OUTPUT_NODE_NAME="outputs",isFlowInput=eo=>[FLOW_INPUT_REF_NAME_FLOW,FLOW_INPUT_REF_NAME_INPUT].includes(eo),SystemColors=["#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 ValidationErrorType=(eo=>(eo.CircularDependency="CircularDependency",eo.InputDependencyNotFound="InputDependencyNotFound",eo.InputGenerateError="InputGenerateError",eo.InputSelfReference="InputSelfReference",eo.InputEmpty="InputEmpty",eo.InputInvalidType="InputInvalidType",eo.NodeConfigInvalid="NodeConfigInvalid",eo.UnparsedCode="UnparsedCode",eo.EmptyCode="EmptyCode",eo.MissingTool="MissingTool",eo.AutoParseInputError="AutoParseInputError",eo.RuntimeNameEmpty="RuntimeNameEmpty",eo.RuntimeStatusInvalid="RuntimeStatusInvalid",eo))(ValidationErrorType||{}),ChatMessageFrom=(eo=>(eo.System="system",eo.ErrorHandler="error",eo.Chatbot="chatbot",eo.User="user",eo))(ChatMessageFrom||{}),ChatMessageType$1=(eo=>(eo.Text="text",eo.Typing="typing",eo.SessionSplit="session-split",eo))(ChatMessageType$1||{});const convertToBool=eo=>eo==="true"||eo==="True"||eo===!0,basicValueTypeDetector=eo=>Array.isArray(eo)?ValueType.list:typeof eo=="boolean"?ValueType.bool:typeof eo=="string"?ValueType.string:typeof eo=="number"?Number.isInteger(eo)?ValueType.int:ValueType.double:ValueType.object;function valueStringify(eo){if(eo==null)return;switch(basicValueTypeDetector(eo)){case ValueType.string:return eo;case ValueType.int:case ValueType.double:return eo.toString();case ValueType.bool:return eo?"True":"False";case ValueType.object:case ValueType.list:return JSON.stringify(eo);default:return String(eo)}}var lodash$1={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 + */lodash$1.exports;(function(eo,to){(function(){var ro,no="4.17.21",oo=200,io="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",so="Expected a function",ao="Invalid `variable` option passed into `_.template`",lo="__lodash_hash_undefined__",uo=500,co="__lodash_placeholder__",fo=1,ho=2,po=4,go=1,vo=2,bo=1,xo=2,_o=4,Eo=8,So=16,To=32,wo=64,Co=128,Oo=256,Ao=512,Ro=30,No="...",Mo=800,Do=16,jo=1,Fo=2,$o=3,Lo=1/0,Ho=9007199254740991,qo=17976931348623157e292,Uo=NaN,Yo=4294967295,Zo=Yo-1,_s=Yo>>>1,Ss=[["ary",Co],["bind",bo],["bindKey",xo],["curry",Eo],["curryRight",So],["flip",Ao],["partial",To],["partialRight",wo],["rearg",Oo]],As="[object Arguments]",Ns="[object Array]",ws="[object AsyncFunction]",Ds="[object Boolean]",Jo="[object Date]",Cs="[object DOMException]",Bs="[object Error]",zs="[object Function]",Ls="[object GeneratorFunction]",ga="[object Map]",Js="[object Number]",Xs="[object Null]",$a="[object Object]",Ll="[object Promise]",Kl="[object Proxy]",Xl="[object RegExp]",Nl="[object Set]",xa="[object String]",El="[object Symbol]",cu="[object Undefined]",ks="[object WeakMap]",Es="[object WeakSet]",bs="[object ArrayBuffer]",Os="[object DataView]",Vs="[object Float32Array]",Ks="[object Float64Array]",Ms="[object Int8Array]",Hs="[object Int16Array]",Zs="[object Int32Array]",xl="[object Uint8Array]",Sl="[object Uint8ClampedArray]",$l="[object Uint16Array]",ru="[object Uint32Array]",au=/\b__p \+= '';/g,zl=/\b(__p \+=) '' \+/g,pu=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Su=/&(?:amp|lt|gt|quot|#39);/g,Zl=/[&<>"']/g,Dl=RegExp(Su.source),gu=RegExp(Zl.source),lu=/<%-([\s\S]+?)%>/g,mu=/<%([\s\S]+?)%>/g,ou=/<%=([\s\S]+?)%>/g,Fl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yl=/^\w*$/,Ys=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vu=/[\\^$.*+?()[\]{}|]/g,Nu=RegExp(vu.source),du=/^\s+/,cp=/\s/,qu=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ru=/\{\n\/\* \[wrapped with (.+)\] \*/,_h=/,? & /,qs=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ko=/[()=,{}\[\]\/\s]/,Qo=/\\(\\)?/g,zo=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Vo=/\w*$/,Bo=/^[-+]0x[0-9a-f]+$/i,Xo=/^0b[01]+$/i,vs=/^\[object .+?Constructor\]$/,ys=/^0o[0-7]+$/i,ps=/^(?:0|[1-9]\d*)$/,Rs=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Us=/($^)/,Rl=/['\n\r\u2028\u2029\\]/g,Ml="\\ud800-\\udfff",Ol="\\u0300-\\u036f",Cl="\\ufe20-\\ufe2f",Ul="\\u20d0-\\u20ff",fu=Ol+Cl+Ul,Bl="\\u2700-\\u27bf",Eu="a-z\\xdf-\\xf6\\xf8-\\xff",Iu="\\xac\\xb1\\xd7\\xf7",zu="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",dp="\\u2000-\\u206f",Yu=" \\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",kp="A-Z\\xc0-\\xd6\\xd8-\\xde",fp="\\ufe0e\\ufe0f",wu=Iu+zu+dp+Yu,ep="['’]",Cp="["+Ml+"]",hp="["+wu+"]",wp="["+fu+"]",pp="\\d+",jp="["+Bl+"]",bp="["+Eu+"]",Ap="[^"+Ml+wu+pp+Bl+Eu+kp+"]",Op="\\ud83c[\\udffb-\\udfff]",_p="(?:"+wp+"|"+Op+")",xp="[^"+Ml+"]",d1="(?:\\ud83c[\\udde6-\\uddff]){2}",O1="[\\ud800-\\udbff][\\udc00-\\udfff]",zp="["+kp+"]",Y1="\\u200d",R1="(?:"+bp+"|"+Ap+")",Jp="(?:"+zp+"|"+Ap+")",f1="(?:"+ep+"(?:d|ll|m|re|s|t|ve))?",h1="(?:"+ep+"(?:D|LL|M|RE|S|T|VE))?",e1=_p+"?",Hp="["+fp+"]?",Pm="(?:"+Y1+"(?:"+[xp,d1,O1].join("|")+")"+Hp+e1+")*",X1="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",jm="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",I1=Hp+e1+Pm,zm="(?:"+[jp,d1,O1].join("|")+")"+I1,Hm="(?:"+[xp+wp+"?",wp,d1,O1,Cp].join("|")+")",t1=RegExp(ep,"g"),Vm=RegExp(wp,"g"),Vp=RegExp(Op+"(?="+Op+")|"+Hm+I1,"g"),Z1=RegExp([zp+"?"+bp+"+"+f1+"(?="+[hp,zp,"$"].join("|")+")",Jp+"+"+h1+"(?="+[hp,zp+R1,"$"].join("|")+")",zp+"?"+R1+"+"+f1,zp+"+"+h1,jm,X1,pp,zm].join("|"),"g"),Qs=RegExp("["+Y1+Ml+fu+fp+"]"),na=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Wl=["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"],Hl=-1,Al={};Al[Vs]=Al[Ks]=Al[Ms]=Al[Hs]=Al[Zs]=Al[xl]=Al[Sl]=Al[$l]=Al[ru]=!0,Al[As]=Al[Ns]=Al[bs]=Al[Ds]=Al[Os]=Al[Jo]=Al[Bs]=Al[zs]=Al[ga]=Al[Js]=Al[$a]=Al[Xl]=Al[Nl]=Al[xa]=Al[ks]=!1;var Il={};Il[As]=Il[Ns]=Il[bs]=Il[Os]=Il[Ds]=Il[Jo]=Il[Vs]=Il[Ks]=Il[Ms]=Il[Hs]=Il[Zs]=Il[ga]=Il[Js]=Il[$a]=Il[Xl]=Il[Nl]=Il[xa]=Il[El]=Il[xl]=Il[Sl]=Il[$l]=Il[ru]=!0,Il[Bs]=Il[zs]=Il[ks]=!1;var bu={À:"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"},_u={"&":"&","<":"<",">":">",'"':""","'":"'"},$u={"&":"&","<":"<",">":">",""":'"',"'":"'"},tp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Rp=parseFloat,Gm=parseInt,p1=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,N1=typeof self=="object"&&self&&self.Object===Object&&self,Du=p1||N1||Function("return this")(),qm=to&&!to.nodeType&&to,r1=qm&&!0&&eo&&!eo.nodeType&&eo,ov=r1&&r1.exports===qm,Wm=ov&&p1.process,rp=function(){try{var xs=r1&&r1.require&&r1.require("util").types;return xs||Wm&&Wm.binding&&Wm.binding("util")}catch{}}(),iv=rp&&rp.isArrayBuffer,sv=rp&&rp.isDate,av=rp&&rp.isMap,lv=rp&&rp.isRegExp,uv=rp&&rp.isSet,cv=rp&&rp.isTypedArray;function Xu(xs,$s,Is){switch(Is.length){case 0:return xs.call($s);case 1:return xs.call($s,Is[0]);case 2:return xs.call($s,Is[0],Is[1]);case 3:return xs.call($s,Is[0],Is[1],Is[2])}return xs.apply($s,Is)}function p_(xs,$s,Is,_l){for(var Ql=-1,uu=xs==null?0:xs.length;++Ql-1}function Km(xs,$s,Is){for(var _l=-1,Ql=xs==null?0:xs.length;++_l-1;);return Is}function yv(xs,$s){for(var Is=xs.length;Is--&&g1($s,xs[Is],0)>-1;);return Is}function E_(xs,$s){for(var Is=xs.length,_l=0;Is--;)xs[Is]===$s&&++_l;return _l}var T_=Xm(bu),k_=Xm(_u);function C_(xs){return"\\"+tp[xs]}function w_(xs,$s){return xs==null?ro:xs[$s]}function m1(xs){return Qs.test(xs)}function A_(xs){return na.test(xs)}function O_(xs){for(var $s,Is=[];!($s=xs.next()).done;)Is.push($s.value);return Is}function t0(xs){var $s=-1,Is=Array(xs.size);return xs.forEach(function(_l,Ql){Is[++$s]=[Ql,_l]}),Is}function bv(xs,$s){return function(Is){return xs($s(Is))}}function Wp(xs,$s){for(var Is=-1,_l=xs.length,Ql=0,uu=[];++Is<_l;){var Mu=xs[Is];(Mu===$s||Mu===co)&&(xs[Is]=co,uu[Ql++]=Is)}return uu}function em(xs){var $s=-1,Is=Array(xs.size);return xs.forEach(function(_l){Is[++$s]=_l}),Is}function R_(xs){var $s=-1,Is=Array(xs.size);return xs.forEach(function(_l){Is[++$s]=[_l,_l]}),Is}function I_(xs,$s,Is){for(var _l=Is-1,Ql=xs.length;++_l-1}function yx(mo,yo){var ko=this.__data__,Io=mm(ko,mo);return Io<0?(++this.size,ko.push([mo,yo])):ko[Io][1]=yo,this}Ip.prototype.clear=hx,Ip.prototype.delete=gx,Ip.prototype.get=mx,Ip.prototype.has=vx,Ip.prototype.set=yx;function Np(mo){var yo=-1,ko=mo==null?0:mo.length;for(this.clear();++yo=yo?mo:yo)),mo}function sp(mo,yo,ko,Io,Po,Wo){var hs,gs=yo&fo,Ts=yo&ho,Fs=yo&po;if(ko&&(hs=Po?ko(mo,Io,Po,Wo):ko(mo)),hs!==ro)return hs;if(!ku(mo))return mo;var Ps=Yl(mo);if(Ps){if(hs=SS(mo),!gs)return Wu(mo,hs)}else{var Gs=ju(mo),ba=Gs==zs||Gs==Ls;if(Zp(mo))return ty(mo,gs);if(Gs==$a||Gs==As||ba&&!Po){if(hs=Ts||ba?{}:_y(mo),!gs)return Ts?dS(mo,Dx(hs,mo)):cS(mo,Iv(hs,mo))}else{if(!Il[Gs])return Po?mo:{};hs=ES(mo,Gs,gs)}}Wo||(Wo=new mp);var Tl=Wo.get(mo);if(Tl)return Tl;Wo.set(mo,hs),Qy(mo)?mo.forEach(function(Gl){hs.add(sp(Gl,yo,ko,Gl,mo,Wo))}):Ky(mo)&&mo.forEach(function(Gl,nu){hs.set(nu,sp(Gl,yo,ko,nu,mo,Wo))});var Vl=Fs?Ts?w0:C0:Ts?Uu:Lu,eu=Ps?ro:Vl(mo);return np(eu||mo,function(Gl,nu){eu&&(nu=Gl,Gl=mo[nu]),P1(hs,nu,sp(Gl,yo,ko,nu,mo,Wo))}),hs}function Mx(mo){var yo=Lu(mo);return function(ko){return Nv(ko,mo,yo)}}function Nv(mo,yo,ko){var Io=ko.length;if(mo==null)return!Io;for(mo=xu(mo);Io--;){var Po=ko[Io],Wo=yo[Po],hs=mo[Po];if(hs===ro&&!(Po in mo)||!Wo(hs))return!1}return!0}function $v(mo,yo,ko){if(typeof mo!="function")throw new op(so);return W1(function(){mo.apply(ro,ko)},yo)}function j1(mo,yo,ko,Io){var Po=-1,Wo=J1,hs=!0,gs=mo.length,Ts=[],Fs=yo.length;if(!gs)return Ts;ko&&(yo=Tu(yo,Zu(ko))),Io?(Wo=Km,hs=!1):yo.length>=oo&&(Wo=$1,hs=!1,yo=new i1(yo));e:for(;++PoPo?0:Po+ko),Io=Io===ro||Io>Po?Po:Jl(Io),Io<0&&(Io+=Po),Io=ko>Io?0:Xy(Io);ko0&&ko(gs)?yo>1?Fu(gs,yo-1,ko,Io,Po):qp(Po,gs):Io||(Po[Po.length]=gs)}return Po}var l0=ay(),Bv=ay(!0);function Sp(mo,yo){return mo&&l0(mo,yo,Lu)}function u0(mo,yo){return mo&&Bv(mo,yo,Lu)}function ym(mo,yo){return Gp(yo,function(ko){return Lp(mo[ko])})}function a1(mo,yo){yo=Yp(yo,mo);for(var ko=0,Io=yo.length;mo!=null&&koyo}function Fx(mo,yo){return mo!=null&&yu.call(mo,yo)}function Px(mo,yo){return mo!=null&&yo in xu(mo)}function jx(mo,yo,ko){return mo>=Pu(yo,ko)&&mo=120&&Ps.length>=120)?new i1(hs&&Ps):ro}Ps=mo[0];var Gs=-1,ba=gs[0];e:for(;++Gs-1;)gs!==mo&&um.call(gs,Ts,1),um.call(mo,Ts,1);return mo}function Kv(mo,yo){for(var ko=mo?yo.length:0,Io=ko-1;ko--;){var Po=yo[ko];if(ko==Io||Po!==Wo){var Wo=Po;Bp(Po)?um.call(mo,Po,1):b0(mo,Po)}}return mo}function m0(mo,yo){return mo+fm(wv()*(yo-mo+1))}function Jx(mo,yo,ko,Io){for(var Po=-1,Wo=Bu(dm((yo-mo)/(ko||1)),0),hs=Is(Wo);Wo--;)hs[Io?Wo:++Po]=mo,mo+=ko;return hs}function v0(mo,yo){var ko="";if(!mo||yo<1||yo>Ho)return ko;do yo%2&&(ko+=mo),yo=fm(yo/2),yo&&(mo+=mo);while(yo);return ko}function tu(mo,yo){return D0(Ey(mo,yo,Qu),mo+"")}function eS(mo){return Rv(A1(mo))}function tS(mo,yo){var ko=A1(mo);return Om(ko,s1(yo,0,ko.length))}function V1(mo,yo,ko,Io){if(!ku(mo))return mo;yo=Yp(yo,mo);for(var Po=-1,Wo=yo.length,hs=Wo-1,gs=mo;gs!=null&&++PoPo?0:Po+yo),ko=ko>Po?Po:ko,ko<0&&(ko+=Po),Po=yo>ko?0:ko-yo>>>0,yo>>>=0;for(var Wo=Is(Po);++Io>>1,hs=mo[Wo];hs!==null&&!_c(hs)&&(ko?hs<=yo:hs=oo){var Fs=yo?null:gS(mo);if(Fs)return em(Fs);hs=!1,Po=$1,Ts=new i1}else Ts=yo?[]:gs;e:for(;++Io=Io?mo:ap(mo,yo,ko)}var ey=G_||function(mo){return Du.clearTimeout(mo)};function ty(mo,yo){if(yo)return mo.slice();var ko=mo.length,Io=Sv?Sv(ko):new mo.constructor(ko);return mo.copy(Io),Io}function E0(mo){var yo=new mo.constructor(mo.byteLength);return new am(yo).set(new am(mo)),yo}function sS(mo,yo){var ko=yo?E0(mo.buffer):mo.buffer;return new mo.constructor(ko,mo.byteOffset,mo.byteLength)}function aS(mo){var yo=new mo.constructor(mo.source,Vo.exec(mo));return yo.lastIndex=mo.lastIndex,yo}function lS(mo){return F1?xu(F1.call(mo)):{}}function ry(mo,yo){var ko=yo?E0(mo.buffer):mo.buffer;return new mo.constructor(ko,mo.byteOffset,mo.length)}function ny(mo,yo){if(mo!==yo){var ko=mo!==ro,Io=mo===null,Po=mo===mo,Wo=_c(mo),hs=yo!==ro,gs=yo===null,Ts=yo===yo,Fs=_c(yo);if(!gs&&!Fs&&!Wo&&mo>yo||Wo&&hs&&Ts&&!gs&&!Fs||Io&&hs&&Ts||!ko&&Ts||!Po)return 1;if(!Io&&!Wo&&!Fs&&mo=gs)return Ts;var Fs=ko[Io];return Ts*(Fs=="desc"?-1:1)}}return mo.index-yo.index}function oy(mo,yo,ko,Io){for(var Po=-1,Wo=mo.length,hs=ko.length,gs=-1,Ts=yo.length,Fs=Bu(Wo-hs,0),Ps=Is(Ts+Fs),Gs=!Io;++gs1?ko[Po-1]:ro,hs=Po>2?ko[2]:ro;for(Wo=mo.length>3&&typeof Wo=="function"?(Po--,Wo):ro,hs&&Vu(ko[0],ko[1],hs)&&(Wo=Po<3?ro:Wo,Po=1),yo=xu(yo);++Io-1?Po[Wo?yo[hs]:hs]:ro}}function cy(mo){return Mp(function(yo){var ko=yo.length,Io=ko,Po=ip.prototype.thru;for(mo&&yo.reverse();Io--;){var Wo=yo[Io];if(typeof Wo!="function")throw new op(so);if(Po&&!hs&&wm(Wo)=="wrapper")var hs=new ip([],!0)}for(Io=hs?Io:ko;++Io1&&su.reverse(),Ps&&Tsgs))return!1;var Fs=Wo.get(mo),Ps=Wo.get(yo);if(Fs&&Ps)return Fs==yo&&Ps==mo;var Gs=-1,ba=!0,Tl=ko&vo?new i1:ro;for(Wo.set(mo,yo),Wo.set(yo,mo);++Gs1?"& ":"")+yo[Io],yo=yo.join(ko>2?", ":" "),mo.replace(qu,`{ +/* [wrapped with `+yo+`] */ +`)}function kS(mo){return Yl(mo)||c1(mo)||!!(kv&&mo&&mo[kv])}function Bp(mo,yo){var ko=typeof mo;return yo=yo??Ho,!!yo&&(ko=="number"||ko!="symbol"&&ps.test(mo))&&mo>-1&&mo%1==0&&mo0){if(++yo>=Mo)return arguments[0]}else yo=0;return mo.apply(ro,arguments)}}function Om(mo,yo){var ko=-1,Io=mo.length,Po=Io-1;for(yo=yo===ro?Io:yo;++ko1?mo[yo-1]:ro;return ko=typeof ko=="function"?(mo.pop(),ko):ro,My(mo,ko)});function By(mo){var yo=Go(mo);return yo.__chain__=!0,yo}function LE(mo,yo){return yo(mo),mo}function Rm(mo,yo){return yo(mo)}var FE=Mp(function(mo){var yo=mo.length,ko=yo?mo[0]:0,Io=this.__wrapped__,Po=function(Wo){return a0(Wo,mo)};return yo>1||this.__actions__.length||!(Io instanceof iu)||!Bp(ko)?this.thru(Po):(Io=Io.slice(ko,+ko+(yo?1:0)),Io.__actions__.push({func:Rm,args:[Po],thisArg:ro}),new ip(Io,this.__chain__).thru(function(Wo){return yo&&!Wo.length&&Wo.push(ro),Wo}))});function PE(){return By(this)}function jE(){return new ip(this.value(),this.__chain__)}function zE(){this.__values__===ro&&(this.__values__=Yy(this.value()));var mo=this.__index__>=this.__values__.length,yo=mo?ro:this.__values__[this.__index__++];return{done:mo,value:yo}}function HE(){return this}function VE(mo){for(var yo,ko=this;ko instanceof gm;){var Io=Oy(ko);Io.__index__=0,Io.__values__=ro,yo?Po.__wrapped__=Io:yo=Io;var Po=Io;ko=ko.__wrapped__}return Po.__wrapped__=mo,yo}function GE(){var mo=this.__wrapped__;if(mo instanceof iu){var yo=mo;return this.__actions__.length&&(yo=new iu(this)),yo=yo.reverse(),yo.__actions__.push({func:Rm,args:[M0],thisArg:ro}),new ip(yo,this.__chain__)}return this.thru(M0)}function qE(){return Zv(this.__wrapped__,this.__actions__)}var WE=Sm(function(mo,yo,ko){yu.call(mo,ko)?++mo[ko]:$p(mo,ko,1)});function KE(mo,yo,ko){var Io=Yl(mo)?dv:Bx;return ko&&Vu(mo,yo,ko)&&(yo=ro),Io(mo,Pl(yo,3))}function UE(mo,yo){var ko=Yl(mo)?Gp:Mv;return ko(mo,Pl(yo,3))}var QE=uy(Ry),YE=uy(Iy);function XE(mo,yo){return Fu(Im(mo,yo),1)}function ZE(mo,yo){return Fu(Im(mo,yo),Lo)}function JE(mo,yo,ko){return ko=ko===ro?1:Jl(ko),Fu(Im(mo,yo),ko)}function Ly(mo,yo){var ko=Yl(mo)?np:Up;return ko(mo,Pl(yo,3))}function Fy(mo,yo){var ko=Yl(mo)?g_:Dv;return ko(mo,Pl(yo,3))}var eT=Sm(function(mo,yo,ko){yu.call(mo,ko)?mo[ko].push(yo):$p(mo,ko,[yo])});function tT(mo,yo,ko,Io){mo=Ku(mo)?mo:A1(mo),ko=ko&&!Io?Jl(ko):0;var Po=mo.length;return ko<0&&(ko=Bu(Po+ko,0)),Bm(mo)?ko<=Po&&mo.indexOf(yo,ko)>-1:!!Po&&g1(mo,yo,ko)>-1}var rT=tu(function(mo,yo,ko){var Io=-1,Po=typeof yo=="function",Wo=Ku(mo)?Is(mo.length):[];return Up(mo,function(hs){Wo[++Io]=Po?Xu(yo,hs,ko):z1(hs,yo,ko)}),Wo}),nT=Sm(function(mo,yo,ko){$p(mo,ko,yo)});function Im(mo,yo){var ko=Yl(mo)?Tu:zv;return ko(mo,Pl(yo,3))}function oT(mo,yo,ko,Io){return mo==null?[]:(Yl(yo)||(yo=yo==null?[]:[yo]),ko=Io?ro:ko,Yl(ko)||(ko=ko==null?[]:[ko]),qv(mo,yo,ko))}var iT=Sm(function(mo,yo,ko){mo[ko?0:1].push(yo)},function(){return[[],[]]});function sT(mo,yo,ko){var Io=Yl(mo)?Um:gv,Po=arguments.length<3;return Io(mo,Pl(yo,4),ko,Po,Up)}function aT(mo,yo,ko){var Io=Yl(mo)?m_:gv,Po=arguments.length<3;return Io(mo,Pl(yo,4),ko,Po,Dv)}function lT(mo,yo){var ko=Yl(mo)?Gp:Mv;return ko(mo,Dm(Pl(yo,3)))}function uT(mo){var yo=Yl(mo)?Rv:eS;return yo(mo)}function cT(mo,yo,ko){(ko?Vu(mo,yo,ko):yo===ro)?yo=1:yo=Jl(yo);var Io=Yl(mo)?Ix:tS;return Io(mo,yo)}function dT(mo){var yo=Yl(mo)?Nx:nS;return yo(mo)}function fT(mo){if(mo==null)return 0;if(Ku(mo))return Bm(mo)?y1(mo):mo.length;var yo=ju(mo);return yo==ga||yo==Nl?mo.size:h0(mo).length}function hT(mo,yo,ko){var Io=Yl(mo)?Qm:oS;return ko&&Vu(mo,yo,ko)&&(yo=ro),Io(mo,Pl(yo,3))}var pT=tu(function(mo,yo){if(mo==null)return[];var ko=yo.length;return ko>1&&Vu(mo,yo[0],yo[1])?yo=[]:ko>2&&Vu(yo[0],yo[1],yo[2])&&(yo=[yo[0]]),qv(mo,Fu(yo,1),[])}),Nm=q_||function(){return Du.Date.now()};function gT(mo,yo){if(typeof yo!="function")throw new op(so);return mo=Jl(mo),function(){if(--mo<1)return yo.apply(this,arguments)}}function Py(mo,yo,ko){return yo=ko?ro:yo,yo=mo&&yo==null?mo.length:yo,Dp(mo,Co,ro,ro,ro,ro,yo)}function jy(mo,yo){var ko;if(typeof yo!="function")throw new op(so);return mo=Jl(mo),function(){return--mo>0&&(ko=yo.apply(this,arguments)),mo<=1&&(yo=ro),ko}}var L0=tu(function(mo,yo,ko){var Io=bo;if(ko.length){var Po=Wp(ko,C1(L0));Io|=To}return Dp(mo,Io,yo,ko,Po)}),zy=tu(function(mo,yo,ko){var Io=bo|xo;if(ko.length){var Po=Wp(ko,C1(zy));Io|=To}return Dp(yo,Io,mo,ko,Po)});function Hy(mo,yo,ko){yo=ko?ro:yo;var Io=Dp(mo,Eo,ro,ro,ro,ro,ro,yo);return Io.placeholder=Hy.placeholder,Io}function Vy(mo,yo,ko){yo=ko?ro:yo;var Io=Dp(mo,So,ro,ro,ro,ro,ro,yo);return Io.placeholder=Vy.placeholder,Io}function Gy(mo,yo,ko){var Io,Po,Wo,hs,gs,Ts,Fs=0,Ps=!1,Gs=!1,ba=!0;if(typeof mo!="function")throw new op(so);yo=up(yo)||0,ku(ko)&&(Ps=!!ko.leading,Gs="maxWait"in ko,Wo=Gs?Bu(up(ko.maxWait)||0,yo):Wo,ba="trailing"in ko?!!ko.trailing:ba);function Tl(Ou){var yp=Io,Pp=Po;return Io=Po=ro,Fs=Ou,hs=mo.apply(Pp,yp),hs}function Vl(Ou){return Fs=Ou,gs=W1(nu,yo),Ps?Tl(Ou):hs}function eu(Ou){var yp=Ou-Ts,Pp=Ou-Fs,l_=yo-yp;return Gs?Pu(l_,Wo-Pp):l_}function Gl(Ou){var yp=Ou-Ts,Pp=Ou-Fs;return Ts===ro||yp>=yo||yp<0||Gs&&Pp>=Wo}function nu(){var Ou=Nm();if(Gl(Ou))return su(Ou);gs=W1(nu,eu(Ou))}function su(Ou){return gs=ro,ba&&Io?Tl(Ou):(Io=Po=ro,hs)}function _d(){gs!==ro&&ey(gs),Fs=0,Io=Ts=Po=gs=ro}function Gu(){return gs===ro?hs:su(Nm())}function _f(){var Ou=Nm(),yp=Gl(Ou);if(Io=arguments,Po=this,Ts=Ou,yp){if(gs===ro)return Vl(Ts);if(Gs)return ey(gs),gs=W1(nu,yo),Tl(Ts)}return gs===ro&&(gs=W1(nu,yo)),hs}return _f.cancel=_d,_f.flush=Gu,_f}var mT=tu(function(mo,yo){return $v(mo,1,yo)}),vT=tu(function(mo,yo,ko){return $v(mo,up(yo)||0,ko)});function yT(mo){return Dp(mo,Ao)}function $m(mo,yo){if(typeof mo!="function"||yo!=null&&typeof yo!="function")throw new op(so);var ko=function(){var Io=arguments,Po=yo?yo.apply(this,Io):Io[0],Wo=ko.cache;if(Wo.has(Po))return Wo.get(Po);var hs=mo.apply(this,Io);return ko.cache=Wo.set(Po,hs)||Wo,hs};return ko.cache=new($m.Cache||Np),ko}$m.Cache=Np;function Dm(mo){if(typeof mo!="function")throw new op(so);return function(){var yo=arguments;switch(yo.length){case 0:return!mo.call(this);case 1:return!mo.call(this,yo[0]);case 2:return!mo.call(this,yo[0],yo[1]);case 3:return!mo.call(this,yo[0],yo[1],yo[2])}return!mo.apply(this,yo)}}function bT(mo){return jy(2,mo)}var _T=iS(function(mo,yo){yo=yo.length==1&&Yl(yo[0])?Tu(yo[0],Zu(Pl())):Tu(Fu(yo,1),Zu(Pl()));var ko=yo.length;return tu(function(Io){for(var Po=-1,Wo=Pu(Io.length,ko);++Po=yo}),c1=Fv(function(){return arguments}())?Fv:function(mo){return Cu(mo)&&yu.call(mo,"callee")&&!Tv.call(mo,"callee")},Yl=Is.isArray,MT=iv?Zu(iv):Hx;function Ku(mo){return mo!=null&&Mm(mo.length)&&!Lp(mo)}function Au(mo){return Cu(mo)&&Ku(mo)}function BT(mo){return mo===!0||mo===!1||Cu(mo)&&Hu(mo)==Ds}var Zp=K_||Q0,LT=sv?Zu(sv):Vx;function FT(mo){return Cu(mo)&&mo.nodeType===1&&!K1(mo)}function PT(mo){if(mo==null)return!0;if(Ku(mo)&&(Yl(mo)||typeof mo=="string"||typeof mo.splice=="function"||Zp(mo)||w1(mo)||c1(mo)))return!mo.length;var yo=ju(mo);if(yo==ga||yo==Nl)return!mo.size;if(q1(mo))return!h0(mo).length;for(var ko in mo)if(yu.call(mo,ko))return!1;return!0}function jT(mo,yo){return H1(mo,yo)}function zT(mo,yo,ko){ko=typeof ko=="function"?ko:ro;var Io=ko?ko(mo,yo):ro;return Io===ro?H1(mo,yo,ro,ko):!!Io}function P0(mo){if(!Cu(mo))return!1;var yo=Hu(mo);return yo==Bs||yo==Cs||typeof mo.message=="string"&&typeof mo.name=="string"&&!K1(mo)}function HT(mo){return typeof mo=="number"&&Cv(mo)}function Lp(mo){if(!ku(mo))return!1;var yo=Hu(mo);return yo==zs||yo==Ls||yo==ws||yo==Kl}function Wy(mo){return typeof mo=="number"&&mo==Jl(mo)}function Mm(mo){return typeof mo=="number"&&mo>-1&&mo%1==0&&mo<=Ho}function ku(mo){var yo=typeof mo;return mo!=null&&(yo=="object"||yo=="function")}function Cu(mo){return mo!=null&&typeof mo=="object"}var Ky=av?Zu(av):qx;function VT(mo,yo){return mo===yo||f0(mo,yo,O0(yo))}function GT(mo,yo,ko){return ko=typeof ko=="function"?ko:ro,f0(mo,yo,O0(yo),ko)}function qT(mo){return Uy(mo)&&mo!=+mo}function WT(mo){if(AS(mo))throw new Ql(io);return Pv(mo)}function KT(mo){return mo===null}function UT(mo){return mo==null}function Uy(mo){return typeof mo=="number"||Cu(mo)&&Hu(mo)==Js}function K1(mo){if(!Cu(mo)||Hu(mo)!=$a)return!1;var yo=lm(mo);if(yo===null)return!0;var ko=yu.call(yo,"constructor")&&yo.constructor;return typeof ko=="function"&&ko instanceof ko&&om.call(ko)==z_}var j0=lv?Zu(lv):Wx;function QT(mo){return Wy(mo)&&mo>=-Ho&&mo<=Ho}var Qy=uv?Zu(uv):Kx;function Bm(mo){return typeof mo=="string"||!Yl(mo)&&Cu(mo)&&Hu(mo)==xa}function _c(mo){return typeof mo=="symbol"||Cu(mo)&&Hu(mo)==El}var w1=cv?Zu(cv):Ux;function YT(mo){return mo===ro}function XT(mo){return Cu(mo)&&ju(mo)==ks}function ZT(mo){return Cu(mo)&&Hu(mo)==Es}var JT=Cm(p0),_k=Cm(function(mo,yo){return mo<=yo});function Yy(mo){if(!mo)return[];if(Ku(mo))return Bm(mo)?gp(mo):Wu(mo);if(D1&&mo[D1])return O_(mo[D1]());var yo=ju(mo),ko=yo==ga?t0:yo==Nl?em:A1;return ko(mo)}function Fp(mo){if(!mo)return mo===0?mo:0;if(mo=up(mo),mo===Lo||mo===-Lo){var yo=mo<0?-1:1;return yo*qo}return mo===mo?mo:0}function Jl(mo){var yo=Fp(mo),ko=yo%1;return yo===yo?ko?yo-ko:yo:0}function Xy(mo){return mo?s1(Jl(mo),0,Yo):0}function up(mo){if(typeof mo=="number")return mo;if(_c(mo))return Uo;if(ku(mo)){var yo=typeof mo.valueOf=="function"?mo.valueOf():mo;mo=ku(yo)?yo+"":yo}if(typeof mo!="string")return mo===0?mo:+mo;mo=mv(mo);var ko=Xo.test(mo);return ko||ys.test(mo)?Gm(mo.slice(2),ko?2:8):Bo.test(mo)?Uo:+mo}function Zy(mo){return Ep(mo,Uu(mo))}function eC(mo){return mo?s1(Jl(mo),-Ho,Ho):mo===0?mo:0}function hu(mo){return mo==null?"":Ju(mo)}var tC=T1(function(mo,yo){if(q1(yo)||Ku(yo)){Ep(yo,Lu(yo),mo);return}for(var ko in yo)yu.call(yo,ko)&&P1(mo,ko,yo[ko])}),Jy=T1(function(mo,yo){Ep(yo,Uu(yo),mo)}),Lm=T1(function(mo,yo,ko,Io){Ep(yo,Uu(yo),mo,Io)}),rC=T1(function(mo,yo,ko,Io){Ep(yo,Lu(yo),mo,Io)}),nC=Mp(a0);function oC(mo,yo){var ko=E1(mo);return yo==null?ko:Iv(ko,yo)}var iC=tu(function(mo,yo){mo=xu(mo);var ko=-1,Io=yo.length,Po=Io>2?yo[2]:ro;for(Po&&Vu(yo[0],yo[1],Po)&&(Io=1);++ko1),Wo}),Ep(mo,w0(mo),ko),Io&&(ko=sp(ko,fo|ho|po,mS));for(var Po=yo.length;Po--;)b0(ko,yo[Po]);return ko});function EC(mo,yo){return e_(mo,Dm(Pl(yo)))}var TC=Mp(function(mo,yo){return mo==null?{}:Xx(mo,yo)});function e_(mo,yo){if(mo==null)return{};var ko=Tu(w0(mo),function(Io){return[Io]});return yo=Pl(yo),Wv(mo,ko,function(Io,Po){return yo(Io,Po[0])})}function kC(mo,yo,ko){yo=Yp(yo,mo);var Io=-1,Po=yo.length;for(Po||(Po=1,mo=ro);++Ioyo){var Io=mo;mo=yo,yo=Io}if(ko||mo%1||yo%1){var Po=wv();return Pu(mo+Po*(yo-mo+Rp("1e-"+((Po+"").length-1))),yo)}return m0(mo,yo)}var BC=k1(function(mo,yo,ko){return yo=yo.toLowerCase(),mo+(ko?n_(yo):yo)});function n_(mo){return V0(hu(mo).toLowerCase())}function o_(mo){return mo=hu(mo),mo&&mo.replace(Rs,T_).replace(Vm,"")}function LC(mo,yo,ko){mo=hu(mo),yo=Ju(yo);var Io=mo.length;ko=ko===ro?Io:s1(Jl(ko),0,Io);var Po=ko;return ko-=yo.length,ko>=0&&mo.slice(ko,Po)==yo}function FC(mo){return mo=hu(mo),mo&&gu.test(mo)?mo.replace(Zl,k_):mo}function PC(mo){return mo=hu(mo),mo&&Nu.test(mo)?mo.replace(vu,"\\$&"):mo}var jC=k1(function(mo,yo,ko){return mo+(ko?"-":"")+yo.toLowerCase()}),zC=k1(function(mo,yo,ko){return mo+(ko?" ":"")+yo.toLowerCase()}),HC=ly("toLowerCase");function VC(mo,yo,ko){mo=hu(mo),yo=Jl(yo);var Io=yo?y1(mo):0;if(!yo||Io>=yo)return mo;var Po=(yo-Io)/2;return km(fm(Po),ko)+mo+km(dm(Po),ko)}function GC(mo,yo,ko){mo=hu(mo),yo=Jl(yo);var Io=yo?y1(mo):0;return yo&&Io>>0,ko?(mo=hu(mo),mo&&(typeof yo=="string"||yo!=null&&!j0(yo))&&(yo=Ju(yo),!yo&&m1(mo))?Xp(gp(mo),0,ko):mo.split(yo,ko)):[]}var XC=k1(function(mo,yo,ko){return mo+(ko?" ":"")+V0(yo)});function ZC(mo,yo,ko){return mo=hu(mo),ko=ko==null?0:s1(Jl(ko),0,mo.length),yo=Ju(yo),mo.slice(ko,ko+yo.length)==yo}function JC(mo,yo,ko){var Io=Go.templateSettings;ko&&Vu(mo,yo,ko)&&(yo=ro),mo=hu(mo),yo=Lm({},yo,Io,gy);var Po=Lm({},yo.imports,Io.imports,gy),Wo=Lu(Po),hs=e0(Po,Wo),gs,Ts,Fs=0,Ps=yo.interpolate||Us,Gs="__p += '",ba=r0((yo.escape||Us).source+"|"+Ps.source+"|"+(Ps===ou?zo:Us).source+"|"+(yo.evaluate||Us).source+"|$","g"),Tl="//# sourceURL="+(yu.call(yo,"sourceURL")?(yo.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Hl+"]")+` +`;mo.replace(ba,function(Gl,nu,su,_d,Gu,_f){return su||(su=_d),Gs+=mo.slice(Fs,_f).replace(Rl,C_),nu&&(gs=!0,Gs+=`' + +__e(`+nu+`) + +'`),Gu&&(Ts=!0,Gs+=`'; +`+Gu+`; +__p += '`),su&&(Gs+=`' + +((__t = (`+su+`)) == null ? '' : __t) + +'`),Fs=_f+Gl.length,Gl}),Gs+=`'; +`;var Vl=yu.call(yo,"variable")&&yo.variable;if(!Vl)Gs=`with (obj) { +`+Gs+` +} +`;else if(Ko.test(Vl))throw new Ql(ao);Gs=(Ts?Gs.replace(au,""):Gs).replace(zl,"$1").replace(pu,"$1;"),Gs="function("+(Vl||"obj")+`) { +`+(Vl?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(gs?", __e = _.escape":"")+(Ts?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+Gs+`return __p +}`;var eu=s_(function(){return uu(Wo,Tl+"return "+Gs).apply(ro,hs)});if(eu.source=Gs,P0(eu))throw eu;return eu}function ew(mo){return hu(mo).toLowerCase()}function tw(mo){return hu(mo).toUpperCase()}function rw(mo,yo,ko){if(mo=hu(mo),mo&&(ko||yo===ro))return mv(mo);if(!mo||!(yo=Ju(yo)))return mo;var Io=gp(mo),Po=gp(yo),Wo=vv(Io,Po),hs=yv(Io,Po)+1;return Xp(Io,Wo,hs).join("")}function nw(mo,yo,ko){if(mo=hu(mo),mo&&(ko||yo===ro))return mo.slice(0,_v(mo)+1);if(!mo||!(yo=Ju(yo)))return mo;var Io=gp(mo),Po=yv(Io,gp(yo))+1;return Xp(Io,0,Po).join("")}function ow(mo,yo,ko){if(mo=hu(mo),mo&&(ko||yo===ro))return mo.replace(du,"");if(!mo||!(yo=Ju(yo)))return mo;var Io=gp(mo),Po=vv(Io,gp(yo));return Xp(Io,Po).join("")}function iw(mo,yo){var ko=Ro,Io=No;if(ku(yo)){var Po="separator"in yo?yo.separator:Po;ko="length"in yo?Jl(yo.length):ko,Io="omission"in yo?Ju(yo.omission):Io}mo=hu(mo);var Wo=mo.length;if(m1(mo)){var hs=gp(mo);Wo=hs.length}if(ko>=Wo)return mo;var gs=ko-y1(Io);if(gs<1)return Io;var Ts=hs?Xp(hs,0,gs).join(""):mo.slice(0,gs);if(Po===ro)return Ts+Io;if(hs&&(gs+=Ts.length-gs),j0(Po)){if(mo.slice(gs).search(Po)){var Fs,Ps=Ts;for(Po.global||(Po=r0(Po.source,hu(Vo.exec(Po))+"g")),Po.lastIndex=0;Fs=Po.exec(Ps);)var Gs=Fs.index;Ts=Ts.slice(0,Gs===ro?gs:Gs)}}else if(mo.indexOf(Ju(Po),gs)!=gs){var ba=Ts.lastIndexOf(Po);ba>-1&&(Ts=Ts.slice(0,ba))}return Ts+Io}function sw(mo){return mo=hu(mo),mo&&Dl.test(mo)?mo.replace(Su,$_):mo}var aw=k1(function(mo,yo,ko){return mo+(ko?" ":"")+yo.toUpperCase()}),V0=ly("toUpperCase");function i_(mo,yo,ko){return mo=hu(mo),yo=ko?ro:yo,yo===ro?A_(mo)?B_(mo):b_(mo):mo.match(yo)||[]}var s_=tu(function(mo,yo){try{return Xu(mo,ro,yo)}catch(ko){return P0(ko)?ko:new Ql(ko)}}),lw=Mp(function(mo,yo){return np(yo,function(ko){ko=Tp(ko),$p(mo,ko,L0(mo[ko],mo))}),mo});function uw(mo){var yo=mo==null?0:mo.length,ko=Pl();return mo=yo?Tu(mo,function(Io){if(typeof Io[1]!="function")throw new op(so);return[ko(Io[0]),Io[1]]}):[],tu(function(Io){for(var Po=-1;++PoHo)return[];var ko=Yo,Io=Pu(mo,Yo);yo=Pl(yo),mo-=Yo;for(var Po=Jm(Io,yo);++ko0||yo<0)?new iu(ko):(mo<0?ko=ko.takeRight(-mo):mo&&(ko=ko.drop(mo)),yo!==ro&&(yo=Jl(yo),ko=yo<0?ko.dropRight(-yo):ko.take(yo-mo)),ko)},iu.prototype.takeRightWhile=function(mo){return this.reverse().takeWhile(mo).reverse()},iu.prototype.toArray=function(){return this.take(Yo)},Sp(iu.prototype,function(mo,yo){var ko=/^(?:filter|find|map|reject)|While$/.test(yo),Io=/^(?:head|last)$/.test(yo),Po=Go[Io?"take"+(yo=="last"?"Right":""):yo],Wo=Io||/^find/.test(yo);Po&&(Go.prototype[yo]=function(){var hs=this.__wrapped__,gs=Io?[1]:arguments,Ts=hs instanceof iu,Fs=gs[0],Ps=Ts||Yl(hs),Gs=function(nu){var su=Po.apply(Go,qp([nu],gs));return Io&&ba?su[0]:su};Ps&&ko&&typeof Fs=="function"&&Fs.length!=1&&(Ts=Ps=!1);var ba=this.__chain__,Tl=!!this.__actions__.length,Vl=Wo&&!ba,eu=Ts&&!Tl;if(!Wo&&Ps){hs=eu?hs:new iu(this);var Gl=mo.apply(hs,gs);return Gl.__actions__.push({func:Rm,args:[Gs],thisArg:ro}),new ip(Gl,ba)}return Vl&&eu?mo.apply(this,gs):(Gl=this.thru(Gs),Vl?Io?Gl.value()[0]:Gl.value():Gl)})}),np(["pop","push","shift","sort","splice","unshift"],function(mo){var yo=tm[mo],ko=/^(?:push|sort|unshift)$/.test(mo)?"tap":"thru",Io=/^(?:pop|shift)$/.test(mo);Go.prototype[mo]=function(){var Po=arguments;if(Io&&!this.__chain__){var Wo=this.value();return yo.apply(Yl(Wo)?Wo:[],Po)}return this[ko](function(hs){return yo.apply(Yl(hs)?hs:[],Po)})}}),Sp(iu.prototype,function(mo,yo){var ko=Go[yo];if(ko){var Io=ko.name+"";yu.call(S1,Io)||(S1[Io]=[]),S1[Io].push({name:yo,func:ko})}}),S1[Em(ro,xo).name]=[{name:"wrapper",func:ro}],iu.prototype.clone=ox,iu.prototype.reverse=ix,iu.prototype.value=sx,Go.prototype.at=FE,Go.prototype.chain=PE,Go.prototype.commit=jE,Go.prototype.next=zE,Go.prototype.plant=VE,Go.prototype.reverse=GE,Go.prototype.toJSON=Go.prototype.valueOf=Go.prototype.value=qE,Go.prototype.first=Go.prototype.head,D1&&(Go.prototype[D1]=HE),Go},b1=L_();r1?((r1.exports=b1)._=b1,qm._=b1):Du._=b1}).call(commonjsGlobal)})(lodash$1,lodash$1.exports);var lodashExports=lodash$1.exports;const isImageDataObject=eo=>{if(!lodashExports.isPlainObject(eo))return!1;const to=Object.keys(eo);return to.length!==1?!1:to[0].startsWith("data:image/")},encodeImageDataObjectToMarkup=eo=>{const to=Object.keys(eo).find(ro=>ro.startsWith("data:image/"));return to?`![image](${eo[to]??""})`:""},listToMarkup=eo=>eo.map(to=>typeof to=="string"?to:isImageDataObject(to)?encodeImageDataObjectToMarkup(to):valueStringify(to)).join(` + +`),isChatInput=eo=>!!eo.is_chat_input,isChatHistory=(eo,to,ro=!1)=>eo!==FlowType.Chat||to.type!==ValueType.list?!1:Reflect.has(to,"is_chat_history")?!!to.is_chat_history:ro?!1:to.name===DEFAULT_CHAT_HISTORY_NAME,isChatOutput=eo=>!!eo.is_chat_output,makeChatMessageFromUser=(eo,to)=>{const ro=typeof eo=="string"?eo:Array.isArray(eo)?listToMarkup(eo):JSON.stringify(eo)??"",no=Array.isArray(eo)?JSON.stringify(eo):void 0;return{id:uuid_1.v4(),from:ChatMessageFrom.User,type:ChatMessageType$1.Text,content:ro,contentForCopy:no,timestamp:new Date().toISOString(),extraData:to}},makeChatMessageFromChatBot=(eo,to,ro,no)=>{const oo=typeof eo=="string"?eo:Array.isArray(eo)?listToMarkup(eo):JSON.stringify(eo)??"",io=Array.isArray(eo)?JSON.stringify(eo):void 0;return{id:uuid_1.v4(),from:ChatMessageFrom.Chatbot,type:ChatMessageType$1.Text,content:oo,contentForCopy:io,timestamp:new Date().toISOString(),duration:no==null?void 0:no.duration,tokens:no==null?void 0:no.total_tokens,error:ro,extraData:to}},parseChatMessages=(eo,to,ro)=>{const no=[];for(const oo of ro){const io=oo.inputs[eo],so=oo.outputs[to];if(typeof io=="string"&&typeof so=="string"){const ao={flowInputs:oo.inputs,flowOutputs:oo.outputs};no.push(makeChatMessageFromUser(io,ao)),no.push(makeChatMessageFromChatBot(so,ao))}else if(Array.isArray(io)&&Array.isArray(so)){const ao={flowInputs:oo.inputs,flowOutputs:oo.outputs};no.push(makeChatMessageFromUser(io,ao)),no.push(makeChatMessageFromChatBot(so,ao))}}return no};ValueType.AzureContentSafetyConnection,ValueType.AzureContentModeratorConnection,ValueType.OpenAIConnection,ValueType.AzureOpenAIConnection,ValueType.BingConnection,ValueType.CustomConnection,ValueType.SerpConnection,ValueType.CognitiveSearchConnection,ValueType.SubstrateLLMConnection,ValueType.QdrantConnection,ValueType.WeaviateConnection,ValueType.FormRecognizerConnection;const convertConnectionTypeToValueType=eo=>{switch(eo){case ConnectionType.AzureContentSafety:return ValueType.AzureContentSafetyConnection;case ConnectionType.AzureContentModerator:return ValueType.AzureContentModeratorConnection;case ConnectionType.Serp:return ValueType.SerpConnection;case ConnectionType.OpenAI:return ValueType.OpenAIConnection;case ConnectionType.Bing:return ValueType.BingConnection;case ConnectionType.AzureOpenAI:return ValueType.AzureOpenAIConnection;case ConnectionType.CognitiveSearch:return ValueType.CognitiveSearchConnection;case ConnectionType.SubstrateLLM:return ValueType.SubstrateLLMConnection;case ConnectionType.Custom:return ValueType.CustomConnection;default:return ValueType.CustomConnection}},getValueTypeByConnectionType=(eo,to)=>{var ro;return!to||to.length===0?convertConnectionTypeToValueType(eo):(ro=to.find(no=>no.connectionType===eo))==null?void 0:ro.flowValueType},getConnectionTypeByName=(eo,to,ro)=>{var oo;const no=(oo=eo==null?void 0:eo.find(io=>io.connectionName===ro))==null?void 0:oo.connectionType;if(no)return getValueTypeByConnectionType(no,to)};ValueType.AzureContentSafetyConnection+"",ValueType.BingConnection+"",ValueType.OpenAIConnection+"",ValueType.CustomConnection+"",ValueType.AzureOpenAIConnection+"",ValueType.AzureContentModeratorConnection+"",ValueType.SerpConnection+"",ValueType.CognitiveSearchConnection+"",ValueType.SubstrateLLMConnection+"",ValueType.PineconeConnection+"",ValueType.QdrantConnection+"",ValueType.WeaviateConnection+"",ValueType.FormRecognizerConnection+"",ValueType.ServerlessConnection+"";const safelyParseJson=(eo,to)=>{if(!eo)return to??"";try{return JSON.parse(eo)}catch{return to??""}},intNumberRegExp$1=/^[+-]?\d+$/,doubleNumberRegExp$1=/^[+-]?\d+(\.\d+)?$/,safelyParseInt=eo=>{try{const to=parseInt(eo,10);return isNaN(to)?eo:to}catch{return eo}},safelyParseFloat=eo=>{try{const to=parseFloat(eo);return isNaN(to)?eo:to}catch{return eo}},boolValues=["true","false","True","False",!0,!1],safelyParseBool=eo=>{try{return boolValues.includes(eo)?convertToBool(eo):eo}catch{return eo}},convertValByType=(eo,to)=>{var no;let ro=eo;if(!(((no=eo==null?void 0:eo.trim)==null?void 0:no.call(eo))===""&&to!==ValueType.string)){switch(to){case ValueType.int:ro=typeof ro=="string"&&intNumberRegExp$1.test(ro.trim())?safelyParseInt(ro):ro;break;case ValueType.double:ro=typeof ro=="string"&&doubleNumberRegExp$1.test(ro.trim())?safelyParseFloat(ro):ro;break;case ValueType.bool:ro=safelyParseBool(ro);break;case ValueType.string:ro=typeof ro=="object"?JSON.stringify(ro):String(ro??"");break;case ValueType.list:case ValueType.object:ro=typeof ro=="string"?safelyParseJson(ro,ro):ro;break}return ro}},inferTypeByVal=eo=>{if(typeof eo=="boolean")return ValueType.bool;if(typeof eo=="number")return Number.isInteger(eo)?ValueType.int:ValueType.double;if(Array.isArray(eo))return ValueType.list;if(typeof eo=="object"&&eo!==null)return ValueType.object;if(typeof eo=="string")return ValueType.string},filterNodeInputsKeys=(eo,to,ro,no,oo=!1)=>{const io=sortToolInputs(eo),so={...to};return Object.keys(io??{}).filter(uo=>{var fo;const co=io==null?void 0:io[uo];if(!oo&&(co==null?void 0:co.input_type)===InputType.uionly_hidden)return!1;if(co!=null&&co.enabled_by&&(co!=null&&co.enabled_by_value)){const ho=io==null?void 0:io[co.enabled_by],po=(so==null?void 0:so[co.enabled_by])??(ho==null?void 0:ho.default),go=convertValByType(po,(fo=ho==null?void 0:ho.type)==null?void 0:fo[0]),vo=co==null?void 0:co.enabled_by_value.includes(go);return vo||(so[uo]=void 0),vo}if(co!=null&&co.enabled_by&&(co!=null&&co.enabled_by_type)){const ho=so==null?void 0:so[co.enabled_by],po=getConnectionTypeByName(ro??[],no??[],ho??""),go=po?co==null?void 0:co.enabled_by_type.includes(po):!1;return go||(so[uo]=void 0),go}return!0})},sortToolInputs=eo=>{let to=[];if(Object.values(eo??{}).some(oo=>{var io;return((io=oo.ui_hints)==null?void 0:io.index)!==void 0}))to=Object.keys(eo??{}).sort((oo,io)=>{var lo,uo,co,fo;const so=((uo=(lo=eo==null?void 0:eo[oo])==null?void 0:lo.ui_hints)==null?void 0:uo.index)??0,ao=((fo=(co=eo==null?void 0:eo[io])==null?void 0:co.ui_hints)==null?void 0:fo.index)??0;return so-ao});else{const oo=[],io={};Object.keys(eo??{}).forEach(ao=>{const lo=eo==null?void 0:eo[ao];lo!=null&&lo.enabled_by?(io[lo.enabled_by]||(io[lo.enabled_by]=[]),io[lo.enabled_by].push(ao)):oo.push(ao)});const so=ao=>{for(const lo of ao)to.push(lo),io[lo]&&so(io[lo])};so(oo)}const no={};for(const oo of to)no[oo]=eo==null?void 0:eo[oo];return no};var papaparse_min={exports:{}};/* @license +Papa Parse +v5.4.1 +https://github.com/mholt/PapaParse +License: MIT +*/(function(eo,to){(function(ro,no){eo.exports=no()})(commonjsGlobal,function ro(){var no=typeof self<"u"?self:typeof window<"u"?window:no!==void 0?no:{},oo=!no.document&&!!no.postMessage,io=no.IS_PAPA_WORKER||!1,so={},ao=0,lo={parse:function(Oo,Ao){var Ro=(Ao=Ao||{}).dynamicTyping||!1;if(Co(Ro)&&(Ao.dynamicTypingFunction=Ro,Ro={}),Ao.dynamicTyping=Ro,Ao.transform=!!Co(Ao.transform)&&Ao.transform,Ao.worker&&lo.WORKERS_SUPPORTED){var No=function(){if(!lo.WORKERS_SUPPORTED)return!1;var Do=(Fo=no.URL||no.webkitURL||null,$o=ro.toString(),lo.BLOB_URL||(lo.BLOB_URL=Fo.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",$o,")();"],{type:"text/javascript"})))),jo=new no.Worker(Do),Fo,$o;return jo.onmessage=_o,jo.id=ao++,so[jo.id]=jo}();return No.userStep=Ao.step,No.userChunk=Ao.chunk,No.userComplete=Ao.complete,No.userError=Ao.error,Ao.step=Co(Ao.step),Ao.chunk=Co(Ao.chunk),Ao.complete=Co(Ao.complete),Ao.error=Co(Ao.error),delete Ao.worker,void No.postMessage({input:Oo,config:Ao,workerId:No.id})}var Mo=null;return lo.NODE_STREAM_INPUT,typeof Oo=="string"?(Oo=function(Do){return Do.charCodeAt(0)===65279?Do.slice(1):Do}(Oo),Mo=Ao.download?new fo(Ao):new po(Ao)):Oo.readable===!0&&Co(Oo.read)&&Co(Oo.on)?Mo=new go(Ao):(no.File&&Oo instanceof File||Oo instanceof Object)&&(Mo=new ho(Ao)),Mo.stream(Oo)},unparse:function(Oo,Ao){var Ro=!1,No=!0,Mo=",",Do=`\r +`,jo='"',Fo=jo+jo,$o=!1,Lo=null,Ho=!1;(function(){if(typeof Ao=="object"){if(typeof Ao.delimiter!="string"||lo.BAD_DELIMITERS.filter(function(Zo){return Ao.delimiter.indexOf(Zo)!==-1}).length||(Mo=Ao.delimiter),(typeof Ao.quotes=="boolean"||typeof Ao.quotes=="function"||Array.isArray(Ao.quotes))&&(Ro=Ao.quotes),typeof Ao.skipEmptyLines!="boolean"&&typeof Ao.skipEmptyLines!="string"||($o=Ao.skipEmptyLines),typeof Ao.newline=="string"&&(Do=Ao.newline),typeof Ao.quoteChar=="string"&&(jo=Ao.quoteChar),typeof Ao.header=="boolean"&&(No=Ao.header),Array.isArray(Ao.columns)){if(Ao.columns.length===0)throw new Error("Option columns is empty");Lo=Ao.columns}Ao.escapeChar!==void 0&&(Fo=Ao.escapeChar+jo),(typeof Ao.escapeFormulae=="boolean"||Ao.escapeFormulae instanceof RegExp)&&(Ho=Ao.escapeFormulae instanceof RegExp?Ao.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var qo=new RegExp(bo(jo),"g");if(typeof Oo=="string"&&(Oo=JSON.parse(Oo)),Array.isArray(Oo)){if(!Oo.length||Array.isArray(Oo[0]))return Uo(null,Oo,$o);if(typeof Oo[0]=="object")return Uo(Lo||Object.keys(Oo[0]),Oo,$o)}else if(typeof Oo=="object")return typeof Oo.data=="string"&&(Oo.data=JSON.parse(Oo.data)),Array.isArray(Oo.data)&&(Oo.fields||(Oo.fields=Oo.meta&&Oo.meta.fields||Lo),Oo.fields||(Oo.fields=Array.isArray(Oo.data[0])?Oo.fields:typeof Oo.data[0]=="object"?Object.keys(Oo.data[0]):[]),Array.isArray(Oo.data[0])||typeof Oo.data[0]=="object"||(Oo.data=[Oo.data])),Uo(Oo.fields||[],Oo.data||[],$o);throw new Error("Unable to serialize unrecognized input");function Uo(Zo,_s,Ss){var As="";typeof Zo=="string"&&(Zo=JSON.parse(Zo)),typeof _s=="string"&&(_s=JSON.parse(_s));var Ns=Array.isArray(Zo)&&0=this._config.preview;if(io)no.postMessage({results:Do,workerId:lo.WORKER_ID,finished:Fo});else if(Co(this._config.chunk)&&!Ro){if(this._config.chunk(Do,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);Do=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(Do.data),this._completeResults.errors=this._completeResults.errors.concat(Do.errors),this._completeResults.meta=Do.meta),this._completed||!Fo||!Co(this._config.complete)||Do&&Do.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),Fo||Do&&Do.meta.paused||this._nextChunk(),Do}this._halted=!0},this._sendError=function(Ao){Co(this._config.error)?this._config.error(Ao):io&&this._config.error&&no.postMessage({workerId:lo.WORKER_ID,error:Ao,finished:!1})}}function fo(Oo){var Ao;(Oo=Oo||{}).chunkSize||(Oo.chunkSize=lo.RemoteChunkSize),co.call(this,Oo),this._nextChunk=oo?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(Ro){this._input=Ro,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(Ao=new XMLHttpRequest,this._config.withCredentials&&(Ao.withCredentials=this._config.withCredentials),oo||(Ao.onload=wo(this._chunkLoaded,this),Ao.onerror=wo(this._chunkError,this)),Ao.open(this._config.downloadRequestBody?"POST":"GET",this._input,!oo),this._config.downloadRequestHeaders){var Ro=this._config.downloadRequestHeaders;for(var No in Ro)Ao.setRequestHeader(No,Ro[No])}if(this._config.chunkSize){var Mo=this._start+this._config.chunkSize-1;Ao.setRequestHeader("Range","bytes="+this._start+"-"+Mo)}try{Ao.send(this._config.downloadRequestBody)}catch(Do){this._chunkError(Do.message)}oo&&Ao.status===0&&this._chunkError()}},this._chunkLoaded=function(){Ao.readyState===4&&(Ao.status<200||400<=Ao.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:Ao.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(Ro){var No=Ro.getResponseHeader("Content-Range");return No===null?-1:parseInt(No.substring(No.lastIndexOf("/")+1))}(Ao),this.parseChunk(Ao.responseText)))},this._chunkError=function(Ro){var No=Ao.statusText||Ro;this._sendError(new Error(No))}}function ho(Oo){var Ao,Ro;(Oo=Oo||{}).chunkSize||(Oo.chunkSize=lo.LocalChunkSize),co.call(this,Oo);var No=typeof FileReader<"u";this.stream=function(Mo){this._input=Mo,Ro=Mo.slice||Mo.webkitSlice||Mo.mozSlice,No?((Ao=new FileReader).onload=wo(this._chunkLoaded,this),Ao.onerror=wo(this._chunkError,this)):Ao=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(Mo.target.result)},this._chunkError=function(){this._sendError(Ao.error)}}function po(Oo){var Ao;co.call(this,Oo=Oo||{}),this.stream=function(Ro){return Ao=Ro,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var Ro,No=this._config.chunkSize;return No?(Ro=Ao.substring(0,No),Ao=Ao.substring(No)):(Ro=Ao,Ao=""),this._finished=!Ao,this.parseChunk(Ro)}}}function go(Oo){co.call(this,Oo=Oo||{});var Ao=[],Ro=!0,No=!1;this.pause=function(){co.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){co.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(Mo){this._input=Mo,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){No&&Ao.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),Ao.length?this.parseChunk(Ao.shift()):Ro=!0},this._streamData=wo(function(Mo){try{Ao.push(typeof Mo=="string"?Mo:Mo.toString(this._config.encoding)),Ro&&(Ro=!1,this._checkIsFinished(),this.parseChunk(Ao.shift()))}catch(Do){this._streamError(Do)}},this),this._streamError=wo(function(Mo){this._streamCleanUp(),this._sendError(Mo)},this),this._streamEnd=wo(function(){this._streamCleanUp(),No=!0,this._streamData("")},this),this._streamCleanUp=wo(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function vo(Oo){var Ao,Ro,No,Mo=Math.pow(2,53),Do=-Mo,jo=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,Fo=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,$o=this,Lo=0,Ho=0,qo=!1,Uo=!1,Yo=[],Zo={data:[],errors:[],meta:{}};if(Co(Oo.step)){var _s=Oo.step;Oo.step=function(Jo){if(Zo=Jo,Ns())As();else{if(As(),Zo.data.length===0)return;Lo+=Jo.data.length,Oo.preview&&Lo>Oo.preview?Ro.abort():(Zo.data=Zo.data[0],_s(Zo,$o))}}}function Ss(Jo){return Oo.skipEmptyLines==="greedy"?Jo.join("").trim()==="":Jo.length===1&&Jo[0].length===0}function As(){return Zo&&No&&(Ds("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+lo.DefaultDelimiter+"'"),No=!1),Oo.skipEmptyLines&&(Zo.data=Zo.data.filter(function(Jo){return!Ss(Jo)})),Ns()&&function(){if(!Zo)return;function Jo(Bs,zs){Co(Oo.transformHeader)&&(Bs=Oo.transformHeader(Bs,zs)),Yo.push(Bs)}if(Array.isArray(Zo.data[0])){for(var Cs=0;Ns()&&Cs=Yo.length?"__parsed_extra":Yo[Ls]),Oo.transform&&(Xs=Oo.transform(Xs,Js)),Xs=ws(Js,Xs),Js==="__parsed_extra"?(ga[Js]=ga[Js]||[],ga[Js].push(Xs)):ga[Js]=Xs}return Oo.header&&(Ls>Yo.length?Ds("FieldMismatch","TooManyFields","Too many fields: expected "+Yo.length+" fields but parsed "+Ls,Ho+zs):Ls=Ll.length/2?`\r +`:"\r"}(Jo,zs)),No=!1,Oo.delimiter)Co(Oo.delimiter)&&(Oo.delimiter=Oo.delimiter(Jo),Zo.meta.delimiter=Oo.delimiter);else{var Ls=function(Js,Xs,$a,Ll,Kl){var Xl,Nl,xa,El;Kl=Kl||[","," ","|",";",lo.RECORD_SEP,lo.UNIT_SEP];for(var cu=0;cu=jo)return Hs(!0)}else for(ks=Lo,Lo++;;){if((ks=qo.indexOf(Ao,ks+1))===-1)return Yo||Ds.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:ws.length,index:Lo}),Ks();if(ks===Zo-1)return Ks(qo.substring(Lo,ks).replace(cu,Ao));if(Ao!==$o||qo[ks+1]!==$o){if(Ao===$o||ks===0||qo[ks-1]!==$o){xa!==-1&&xa=jo)return Hs(!0);break}Ds.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:ws.length,index:Lo}),ks++}}else ks++}return Ks();function Os(xl){ws.push(xl),Cs=Lo}function Vs(xl){var Sl=0;if(xl!==-1){var $l=qo.substring(ks+1,xl);$l&&$l.trim()===""&&(Sl=$l.length)}return Sl}function Ks(xl){return Yo||(xl===void 0&&(xl=qo.substring(Lo)),Jo.push(xl),Lo=Zo,Os(Jo),Ns&&Zs()),Hs()}function Ms(xl){Lo=xl,Os(Jo),Jo=[],El=qo.indexOf(No,Lo)}function Hs(xl){return{data:ws,errors:Ds,meta:{delimiter:Ro,linebreak:No,aborted:Ho,truncated:!!xl,cursor:Cs+(Uo||0)}}}function Zs(){Do(Hs()),ws=[],Ds=[]}},this.abort=function(){Ho=!0},this.getCharIndex=function(){return Lo}}function _o(Oo){var Ao=Oo.data,Ro=so[Ao.workerId],No=!1;if(Ao.error)Ro.userError(Ao.error,Ao.file);else if(Ao.results&&Ao.results.data){var Mo={abort:function(){No=!0,Eo(Ao.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:So,resume:So};if(Co(Ro.userStep)){for(var Do=0;Do{const no={};return Object.keys(eo).forEach(oo=>{const io=eo[oo];oo===to?no[ro]=io:no[oo]=io}),no},getDefaultNodeVariant=eo=>{const{defaultVariantId:to=BASELINE_VARIANT_ID,variants:ro={}}=eo,no=ro[to];return no==null?void 0:no.node},getDefaultNodeList=(eo,to)=>{const ro=[];return eo.forEach(no=>{const oo=to.get(no);if(!oo)return;const io=getDefaultNodeVariant(oo);io&&ro.push(io)}),ro},getFlowSnapshotNodeList=(eo,to,ro)=>{const no=[];return eo.forEach(oo=>{if(ro.includes(oo)){no.push({name:oo,use_variants:!0});return}const io=to[oo];if(!io)return;const so={inputs:{},...getDefaultNodeVariant(io)};so&&no.push(so)}),no};ToolType.llm;ToolType.prompt;ValueType.string,ToolType.python;ValueType.string,ToolType.typescript;const getTokensUsageByRow=eo=>{var to,ro,no,oo,io,so;return eo.children&&eo.children.length>0?eo.children.reduce((ao,lo)=>{const uo=getTokensUsageByRow(lo);return{totalTokens:ao.totalTokens+uo.totalTokens,promptTokens:ao.promptTokens+uo.promptTokens,completionTokens:ao.completionTokens+uo.completionTokens}},{totalTokens:0,promptTokens:0,completionTokens:0}):{totalTokens:((ro=(to=eo.output)==null?void 0:to.usage)==null?void 0:ro.total_tokens)??0,promptTokens:((oo=(no=eo.output)==null?void 0:no.usage)==null?void 0:oo.prompt_tokens)??0,completionTokens:((so=(io=eo.output)==null?void 0:io.usage)==null?void 0:so.completion_tokens)??0}},numberToDigitsString=eo=>eo.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),timePDTFormatter=eo=>{const to=new Date(eo),ro=getUTCTimezoneOffset();return`${to.getFullYear()}-${to.getMonth()+1}-${to.getDate()} ${to.getHours()}:${to.getMinutes()}:${to.getSeconds()}:${to.getMilliseconds()} (${ro})`},getUTCTimezoneOffset=()=>{const eo=new Date().getTimezoneOffset(),to=Math.abs(eo);return`UTC${(eo<0?"+":"-")+`00${Math.floor(to/60)}`.slice(-2)}:${`00${to%60}`.slice(-2)}`},hasOwn=(eo,to)=>Object.prototype.hasOwnProperty.call(eo,to),resolveTool=(eo,to,ro,no)=>{var oo,io,so;if(((oo=eo==null?void 0:eo.source)==null?void 0:oo.type)==="code")return to;if(((io=eo==null?void 0:eo.source)==null?void 0:io.type)==="package_with_prompt"){const ao=(so=eo==null?void 0:eo.source)==null?void 0:so.path,lo=no(ao??"");return ro?{...ro,inputs:{...lo==null?void 0:lo.inputs,...addPositionField(ro==null?void 0:ro.inputs,"parameter")},code:lo==null?void 0:lo.code}:void 0}return ro},addPositionField=(eo,to)=>{if(!eo)return eo;const ro={...eo};return Object.keys(ro).forEach(no=>{ro[no]={...ro[no],position:to}}),ro},keyWords=["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"],keyFunction=["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"],flowWords=["input","inputs","output","outputs","flow","flows"],checkNodeNameValid=eo=>keyWords.some(to=>to===eo)||keyFunction.some(to=>to===eo)||flowWords.some(to=>to===eo)?!1:/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(eo),getNodesThatMoreThanOneVariant=(eo={})=>{const to=[];return Object.keys(eo).forEach(ro=>{const no=eo[ro],{variants:oo={},defaultVariantId:io,default_variant_id:so}=no,ao=Object.keys(oo).length;ao>1&&to.push({nodeName:ro,variantsCount:ao,defaultVariantId:io??so??BASELINE_VARIANT_ID,variants:oo})}),to},getVariantNodes=(eo={})=>{const to={};return Object.keys(eo).forEach(ro=>{const no=eo[ro],{variants:oo={}}=no;if(Object.keys(oo).length>1){const so=lodashExports.cloneDeep(no);Object.entries((so==null?void 0:so.variants)??{}).forEach(([lo,uo])=>{uo.node&&delete uo.node.name});const ao=so.defaultVariantId;delete so.defaultVariantId,to[ro]={default_variant_id:ao,...so}}}),Object.keys(to).length>0?to:void 0},revValueRegex=/^\$\{(\S+)\}$/,getRefValueFromRaw=eo=>{var to,ro;return(ro=(to=`${eo??""}`)==null?void 0:to.match(revValueRegex))==null?void 0:ro[1]},generateRandomStrings=eo=>{const to="abcdefghijklmnopqrstuvwxyz0123456789";let ro="";for(let no=0;nogenerateRandomStrings(8),getRandomOutputDefinitionId=getRandomInputDefinitionId,intNumberRegExp=/^[+-]?\d+$/,doubleNumberRegExp=/^[+-]?\d+(\.\d+)?$/,isBool=eo=>eo.toLowerCase()==="true"||eo.toLowerCase()==="false",isNumber=eo=>doubleNumberRegExp.test(eo.trim())?eo===eo.trim()&&eo.length>0&&!Number.isNaN(Number(eo)):!1,isInt=eo=>intNumberRegExp.test(eo.trim())?isNumber(eo)&&Number.isInteger(Number(eo)):!1,isList$1=eo=>{try{const to=JSON.parse(eo);return Array.isArray(to)}catch{return!1}},isObject$f=eo=>{try{const to=JSON.parse(eo);return Object.prototype.toString.call(to)==="[object Object]"}catch{return!1}},isTypeValid=(eo,to)=>{const ro=typeof eo,no=ro==="string";switch(to){case ValueType.int:return no?isInt(eo):Number.isInteger(eo);case ValueType.double:return no?isNumber(eo):ro==="number";case ValueType.list:return no?isList$1(eo):Array.isArray(eo);case ValueType.object:return no?isObject$f(eo):ro==="object";case ValueType.bool:return no?isBool(eo):ro==="boolean";case ValueType.function_str:return!0;default:return!0}},getCycle=(eo,to,ro,no)=>{var so,ao;const oo=[],io=new Set(eo.keys());for(eo.forEach((lo,uo)=>{lo===0&&oo.push(uo)});oo.length>0;){const lo=oo.shift();lo&&(io.delete(lo),(so=to.get(lo))==null||so.forEach(uo=>{const co=(eo.get(uo)??0)-1;eo.set(uo,co),co===0&&oo.push(uo)}))}for(ro.forEach((lo,uo)=>{lo===0&&oo.push(uo)});oo.length>0;){const lo=oo.shift();lo&&(io.delete(lo),(ao=no.get(lo))==null||ao.forEach(uo=>{const co=(ro.get(uo)??0)-1;ro.set(uo,co),co===0&&oo.push(uo)}))}return io};function commonjsRequire$1(eo){throw new Error('Could not dynamically require "'+eo+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$4(eo,to){return eo===to||eo!==eo&&to!==to}var eq_1=eq$4,eq$3=eq_1;function assocIndexOf$4(eo,to){for(var ro=eo.length;ro--;)if(eq$3(eo[ro][0],to))return ro;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(eo){var to=this.__data__,ro=assocIndexOf$3(to,eo);if(ro<0)return!1;var no=to.length-1;return ro==no?to.pop():splice.call(to,ro,1),--this.size,!0}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(eo){var to=this.__data__,ro=assocIndexOf$2(to,eo);return ro<0?void 0:to[ro][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(eo){return assocIndexOf$1(this.__data__,eo)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(eo,to){var ro=this.__data__,no=assocIndexOf(ro,eo);return no<0?(++this.size,ro.push([eo,to])):ro[no][1]=to,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(eo){var to=-1,ro=eo==null?0:eo.length;for(this.clear();++to-1&&eo%1==0&&eo-1&&eo%1==0&&eo<=MAX_SAFE_INTEGER}var isLength_1=isLength$3,baseGetTag$4=_baseGetTag,isLength$2=isLength_1,isObjectLike$6=isObjectLike_1,argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$3="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",funcTag$1="[object Function]",mapTag$5="[object Map]",numberTag$3="[object Number]",objectTag$4="[object Object]",regexpTag$3="[object RegExp]",setTag$5="[object Set]",stringTag$4="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$3]=typedArrayTags[boolTag$3]=typedArrayTags[dataViewTag$4]=typedArrayTags[dateTag$3]=typedArrayTags[errorTag$2]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$5]=typedArrayTags[numberTag$3]=typedArrayTags[objectTag$4]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$5]=typedArrayTags[stringTag$4]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray$1(eo){return isObjectLike$6(eo)&&isLength$2(eo.length)&&!!typedArrayTags[baseGetTag$4(eo)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$4(eo){return function(to){return eo(to)}}var _baseUnary=baseUnary$4,_nodeUtil={exports:{}};_nodeUtil.exports;(function(eo,to){var ro=_freeGlobal,no=to&&!to.nodeType&&to,oo=no&&!0&&eo&&!eo.nodeType&&eo,io=oo&&oo.exports===no,so=io&&ro.process,ao=function(){try{var lo=oo&&oo.require&&oo.require("util").types;return lo||so&&so.binding&&so.binding("util")}catch{}}();eo.exports=ao})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary$3=_baseUnary,nodeUtil$2=_nodeUtilExports,nodeIsTypedArray=nodeUtil$2&&nodeUtil$2.isTypedArray,isTypedArray$2=nodeIsTypedArray?baseUnary$3(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$2,baseTimes=_baseTimes,isArguments$2=isArguments_1,isArray$d=isArray_1,isBuffer$2=isBufferExports,isIndex$2=_isIndex,isTypedArray$1=isTypedArray_1,objectProto$8=Object.prototype,hasOwnProperty$8=objectProto$8.hasOwnProperty;function arrayLikeKeys$2(eo,to){var ro=isArray$d(eo),no=!ro&&isArguments$2(eo),oo=!ro&&!no&&isBuffer$2(eo),io=!ro&&!no&&!oo&&isTypedArray$1(eo),so=ro||no||oo||io,ao=so?baseTimes(eo.length,String):[],lo=ao.length;for(var uo in eo)(to||hasOwnProperty$8.call(eo,uo))&&!(so&&(uo=="length"||oo&&(uo=="offset"||uo=="parent")||io&&(uo=="buffer"||uo=="byteLength"||uo=="byteOffset")||isIndex$2(uo,lo)))&&ao.push(uo);return ao}var _arrayLikeKeys=arrayLikeKeys$2,objectProto$7=Object.prototype;function isPrototype$3(eo){var to=eo&&eo.constructor,ro=typeof to=="function"&&to.prototype||objectProto$7;return eo===ro}var _isPrototype=isPrototype$3;function overArg$2(eo,to){return function(ro){return eo(to(ro))}}var _overArg=overArg$2,overArg$1=_overArg,nativeKeys$1=overArg$1(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$2=_isPrototype,nativeKeys=_nativeKeys,objectProto$6=Object.prototype,hasOwnProperty$7=objectProto$6.hasOwnProperty;function baseKeys$1(eo){if(!isPrototype$2(eo))return nativeKeys(eo);var to=[];for(var ro in Object(eo))hasOwnProperty$7.call(eo,ro)&&ro!="constructor"&&to.push(ro);return to}var _baseKeys=baseKeys$1,isFunction$3=isFunction_1,isLength$1=isLength_1;function isArrayLike$8(eo){return eo!=null&&isLength$1(eo.length)&&!isFunction$3(eo)}var isArrayLike_1=isArrayLike$8,arrayLikeKeys$1=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike$7=isArrayLike_1;function keys$7(eo){return isArrayLike$7(eo)?arrayLikeKeys$1(eo):baseKeys(eo)}var keys_1=keys$7,copyObject$3=_copyObject,keys$6=keys_1;function baseAssign$1(eo,to){return eo&©Object$3(to,keys$6(to),eo)}var _baseAssign=baseAssign$1;function nativeKeysIn$1(eo){var to=[];if(eo!=null)for(var ro in Object(eo))to.push(ro);return to}var _nativeKeysIn=nativeKeysIn$1,isObject$b=isObject_1,isPrototype$1=_isPrototype,nativeKeysIn=_nativeKeysIn,objectProto$5=Object.prototype,hasOwnProperty$6=objectProto$5.hasOwnProperty;function baseKeysIn$1(eo){if(!isObject$b(eo))return nativeKeysIn(eo);var to=isPrototype$1(eo),ro=[];for(var no in eo)no=="constructor"&&(to||!hasOwnProperty$6.call(eo,no))||ro.push(no);return ro}var _baseKeysIn=baseKeysIn$1,arrayLikeKeys=_arrayLikeKeys,baseKeysIn=_baseKeysIn,isArrayLike$6=isArrayLike_1;function keysIn$3(eo){return isArrayLike$6(eo)?arrayLikeKeys(eo,!0):baseKeysIn(eo)}var keysIn_1=keysIn$3,copyObject$2=_copyObject,keysIn$2=keysIn_1;function baseAssignIn$1(eo,to){return eo&©Object$2(to,keysIn$2(to),eo)}var _baseAssignIn=baseAssignIn$1,_cloneBuffer={exports:{}};_cloneBuffer.exports;(function(eo,to){var ro=_root$1,no=to&&!to.nodeType&&to,oo=no&&!0&&eo&&!eo.nodeType&&eo,io=oo&&oo.exports===no,so=io?ro.Buffer:void 0,ao=so?so.allocUnsafe:void 0;function lo(uo,co){if(co)return uo.slice();var fo=uo.length,ho=ao?ao(fo):new uo.constructor(fo);return uo.copy(ho),ho}eo.exports=lo})(_cloneBuffer,_cloneBuffer.exports);var _cloneBufferExports=_cloneBuffer.exports;function copyArray$1(eo,to){var ro=-1,no=eo.length;for(to||(to=Array(no));++roao))return!1;var uo=io.get(eo),co=io.get(to);if(uo&&co)return uo==to&&co==eo;var fo=-1,ho=!0,po=ro&COMPARE_UNORDERED_FLAG$3?new SetCache$1:void 0;for(io.set(eo,to),io.set(to,eo);++fo0&&ro(ao)?to>1?baseFlatten$2(ao,to-1,ro,no,oo):arrayPush$1(oo,ao):no||(oo[oo.length]=ao)}return oo}var _baseFlatten=baseFlatten$2;function apply$2(eo,to,ro){switch(ro.length){case 0:return eo.call(to);case 1:return eo.call(to,ro[0]);case 2:return eo.call(to,ro[0],ro[1]);case 3:return eo.call(to,ro[0],ro[1],ro[2])}return eo.apply(to,ro)}var _apply=apply$2,apply$1=_apply,nativeMax$2=Math.max;function overRest$2(eo,to,ro){return to=nativeMax$2(to===void 0?eo.length-1:to,0),function(){for(var no=arguments,oo=-1,io=nativeMax$2(no.length-to,0),so=Array(io);++oo0){if(++to>=HOT_COUNT)return arguments[0]}else to=0;return eo.apply(void 0,arguments)}}var _shortOut=shortOut$1,baseSetToString=_baseSetToString,shortOut=_shortOut,setToString$2=shortOut(baseSetToString),_setToString=setToString$2,identity$5=identity_1,overRest$1=_overRest,setToString$1=_setToString;function baseRest$1(eo,to){return setToString$1(overRest$1(eo,to,identity$5),eo+"")}var _baseRest=baseRest$1;function baseFindIndex$2(eo,to,ro,no){for(var oo=eo.length,io=ro+(no?1:-1);no?io--:++io-1}var _arrayIncludes=arrayIncludes$1;function arrayIncludesWith$1(eo,to,ro){for(var no=-1,oo=eo==null?0:eo.length;++no=LARGE_ARRAY_SIZE){var uo=to?null:createSet(eo);if(uo)return setToArray(uo);so=!1,oo=cacheHas,lo=new SetCache}else lo=to?[]:ao;e:for(;++no1?po.setNode(go,fo):po.setNode(go)}),this},oo.prototype.setNode=function(co,fo){return eo.has(this._nodes,co)?(arguments.length>1&&(this._nodes[co]=fo),this):(this._nodes[co]=arguments.length>1?fo:this._defaultNodeLabelFn(co),this._isCompound&&(this._parent[co]=ro,this._children[co]={},this._children[ro][co]=!0),this._in[co]={},this._preds[co]={},this._out[co]={},this._sucs[co]={},++this._nodeCount,this)},oo.prototype.node=function(co){return this._nodes[co]},oo.prototype.hasNode=function(co){return eo.has(this._nodes,co)},oo.prototype.removeNode=function(co){var fo=this;if(eo.has(this._nodes,co)){var ho=function(po){fo.removeEdge(fo._edgeObjs[po])};delete this._nodes[co],this._isCompound&&(this._removeFromParentsChildList(co),delete this._parent[co],eo.each(this.children(co),function(po){fo.setParent(po)}),delete this._children[co]),eo.each(eo.keys(this._in[co]),ho),delete this._in[co],delete this._preds[co],eo.each(eo.keys(this._out[co]),ho),delete this._out[co],delete this._sucs[co],--this._nodeCount}return this},oo.prototype.setParent=function(co,fo){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(eo.isUndefined(fo))fo=ro;else{fo+="";for(var ho=fo;!eo.isUndefined(ho);ho=this.parent(ho))if(ho===co)throw new Error("Setting "+fo+" as parent of "+co+" would create a cycle");this.setNode(fo)}return this.setNode(co),this._removeFromParentsChildList(co),this._parent[co]=fo,this._children[fo][co]=!0,this},oo.prototype._removeFromParentsChildList=function(co){delete this._children[this._parent[co]][co]},oo.prototype.parent=function(co){if(this._isCompound){var fo=this._parent[co];if(fo!==ro)return fo}},oo.prototype.children=function(co){if(eo.isUndefined(co)&&(co=ro),this._isCompound){var fo=this._children[co];if(fo)return eo.keys(fo)}else{if(co===ro)return this.nodes();if(this.hasNode(co))return[]}},oo.prototype.predecessors=function(co){var fo=this._preds[co];if(fo)return eo.keys(fo)},oo.prototype.successors=function(co){var fo=this._sucs[co];if(fo)return eo.keys(fo)},oo.prototype.neighbors=function(co){var fo=this.predecessors(co);if(fo)return eo.union(fo,this.successors(co))},oo.prototype.isLeaf=function(co){var fo;return this.isDirected()?fo=this.successors(co):fo=this.neighbors(co),fo.length===0},oo.prototype.filterNodes=function(co){var fo=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});fo.setGraph(this.graph());var ho=this;eo.each(this._nodes,function(vo,bo){co(bo)&&fo.setNode(bo,vo)}),eo.each(this._edgeObjs,function(vo){fo.hasNode(vo.v)&&fo.hasNode(vo.w)&&fo.setEdge(vo,ho.edge(vo))});var po={};function go(vo){var bo=ho.parent(vo);return bo===void 0||fo.hasNode(bo)?(po[vo]=bo,bo):bo in po?po[bo]:go(bo)}return this._isCompound&&eo.each(fo.nodes(),function(vo){fo.setParent(vo,go(vo))}),fo},oo.prototype.setDefaultEdgeLabel=function(co){return eo.isFunction(co)||(co=eo.constant(co)),this._defaultEdgeLabelFn=co,this},oo.prototype.edgeCount=function(){return this._edgeCount},oo.prototype.edges=function(){return eo.values(this._edgeObjs)},oo.prototype.setPath=function(co,fo){var ho=this,po=arguments;return eo.reduce(co,function(go,vo){return po.length>1?ho.setEdge(go,vo,fo):ho.setEdge(go,vo),vo}),this},oo.prototype.setEdge=function(){var co,fo,ho,po,go=!1,vo=arguments[0];typeof vo=="object"&&vo!==null&&"v"in vo?(co=vo.v,fo=vo.w,ho=vo.name,arguments.length===2&&(po=arguments[1],go=!0)):(co=vo,fo=arguments[1],ho=arguments[3],arguments.length>2&&(po=arguments[2],go=!0)),co=""+co,fo=""+fo,eo.isUndefined(ho)||(ho=""+ho);var bo=ao(this._isDirected,co,fo,ho);if(eo.has(this._edgeLabels,bo))return go&&(this._edgeLabels[bo]=po),this;if(!eo.isUndefined(ho)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(co),this.setNode(fo),this._edgeLabels[bo]=go?po:this._defaultEdgeLabelFn(co,fo,ho);var xo=lo(this._isDirected,co,fo,ho);return co=xo.v,fo=xo.w,Object.freeze(xo),this._edgeObjs[bo]=xo,io(this._preds[fo],co),io(this._sucs[co],fo),this._in[fo][bo]=xo,this._out[co][bo]=xo,this._edgeCount++,this},oo.prototype.edge=function(co,fo,ho){var po=arguments.length===1?uo(this._isDirected,arguments[0]):ao(this._isDirected,co,fo,ho);return this._edgeLabels[po]},oo.prototype.hasEdge=function(co,fo,ho){var po=arguments.length===1?uo(this._isDirected,arguments[0]):ao(this._isDirected,co,fo,ho);return eo.has(this._edgeLabels,po)},oo.prototype.removeEdge=function(co,fo,ho){var po=arguments.length===1?uo(this._isDirected,arguments[0]):ao(this._isDirected,co,fo,ho),go=this._edgeObjs[po];return go&&(co=go.v,fo=go.w,delete this._edgeLabels[po],delete this._edgeObjs[po],so(this._preds[fo],co),so(this._sucs[co],fo),delete this._in[fo][po],delete this._out[co][po],this._edgeCount--),this},oo.prototype.inEdges=function(co,fo){var ho=this._in[co];if(ho){var po=eo.values(ho);return fo?eo.filter(po,function(go){return go.v===fo}):po}},oo.prototype.outEdges=function(co,fo){var ho=this._out[co];if(ho){var po=eo.values(ho);return fo?eo.filter(po,function(go){return go.w===fo}):po}},oo.prototype.nodeEdges=function(co,fo){var ho=this.inEdges(co,fo);if(ho)return ho.concat(this.outEdges(co,fo))};function io(co,fo){co[fo]?co[fo]++:co[fo]=1}function so(co,fo){--co[fo]||delete co[fo]}function ao(co,fo,ho,po){var go=""+fo,vo=""+ho;if(!co&&go>vo){var bo=go;go=vo,vo=bo}return go+no+vo+no+(eo.isUndefined(po)?to:po)}function lo(co,fo,ho,po){var go=""+fo,vo=""+ho;if(!co&&go>vo){var bo=go;go=vo,vo=bo}var xo={v:go,w:vo};return po&&(xo.name=po),xo}function uo(co,fo){return ao(co,fo.v,fo.w,fo.name)}return graph}var version$1,hasRequiredVersion;function requireVersion(){return hasRequiredVersion||(hasRequiredVersion=1,version$1="2.1.8"),version$1}var lib,hasRequiredLib;function requireLib(){return hasRequiredLib||(hasRequiredLib=1,lib={Graph:requireGraph(),version:requireVersion()}),lib}var json,hasRequiredJson;function requireJson(){if(hasRequiredJson)return json;hasRequiredJson=1;var eo=requireLodash(),to=requireGraph();json={write:ro,read:io};function ro(so){var ao={options:{directed:so.isDirected(),multigraph:so.isMultigraph(),compound:so.isCompound()},nodes:no(so),edges:oo(so)};return eo.isUndefined(so.graph())||(ao.value=eo.clone(so.graph())),ao}function no(so){return eo.map(so.nodes(),function(ao){var lo=so.node(ao),uo=so.parent(ao),co={v:ao};return eo.isUndefined(lo)||(co.value=lo),eo.isUndefined(uo)||(co.parent=uo),co})}function oo(so){return eo.map(so.edges(),function(ao){var lo=so.edge(ao),uo={v:ao.v,w:ao.w};return eo.isUndefined(ao.name)||(uo.name=ao.name),eo.isUndefined(lo)||(uo.value=lo),uo})}function io(so){var ao=new to(so.options).setGraph(so.value);return eo.each(so.nodes,function(lo){ao.setNode(lo.v,lo.value),lo.parent&&ao.setParent(lo.v,lo.parent)}),eo.each(so.edges,function(lo){ao.setEdge({v:lo.v,w:lo.w,name:lo.name},lo.value)}),ao}return json}var components_1,hasRequiredComponents;function requireComponents(){if(hasRequiredComponents)return components_1;hasRequiredComponents=1;var eo=requireLodash();components_1=to;function to(ro){var no={},oo=[],io;function so(ao){eo.has(no,ao)||(no[ao]=!0,io.push(ao),eo.each(ro.successors(ao),so),eo.each(ro.predecessors(ao),so))}return eo.each(ro.nodes(),function(ao){io=[],so(ao),io.length&&oo.push(io)}),oo}return components_1}var priorityQueue,hasRequiredPriorityQueue;function requirePriorityQueue(){if(hasRequiredPriorityQueue)return priorityQueue;hasRequiredPriorityQueue=1;var eo=requireLodash();priorityQueue=to;function to(){this._arr=[],this._keyIndices={}}return to.prototype.size=function(){return this._arr.length},to.prototype.keys=function(){return this._arr.map(function(ro){return ro.key})},to.prototype.has=function(ro){return eo.has(this._keyIndices,ro)},to.prototype.priority=function(ro){var no=this._keyIndices[ro];if(no!==void 0)return this._arr[no].priority},to.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},to.prototype.add=function(ro,no){var oo=this._keyIndices;if(ro=String(ro),!eo.has(oo,ro)){var io=this._arr,so=io.length;return oo[ro]=so,io.push({key:ro,priority:no}),this._decrease(so),!0}return!1},to.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var ro=this._arr.pop();return delete this._keyIndices[ro.key],this._heapify(0),ro.key},to.prototype.decrease=function(ro,no){var oo=this._keyIndices[ro];if(no>this._arr[oo].priority)throw new Error("New priority is greater than current priority. Key: "+ro+" Old: "+this._arr[oo].priority+" New: "+no);this._arr[oo].priority=no,this._decrease(oo)},to.prototype._heapify=function(ro){var no=this._arr,oo=2*ro,io=oo+1,so=ro;oo>1,!(no[io].priority0&&(fo=co.removeMin(),ho=uo[fo],ho.distance!==Number.POSITIVE_INFINITY);)lo(fo).forEach(po);return uo}return dijkstra_1}var dijkstraAll_1,hasRequiredDijkstraAll;function requireDijkstraAll(){if(hasRequiredDijkstraAll)return dijkstraAll_1;hasRequiredDijkstraAll=1;var eo=requireDijkstra(),to=requireLodash();dijkstraAll_1=ro;function ro(no,oo,io){return to.transform(no.nodes(),function(so,ao){so[ao]=eo(no,ao,oo,io)},{})}return dijkstraAll_1}var tarjan_1,hasRequiredTarjan;function requireTarjan(){if(hasRequiredTarjan)return tarjan_1;hasRequiredTarjan=1;var eo=requireLodash();tarjan_1=to;function to(ro){var no=0,oo=[],io={},so=[];function ao(lo){var uo=io[lo]={onStack:!0,lowlink:no,index:no++};if(oo.push(lo),ro.successors(lo).forEach(function(ho){eo.has(io,ho)?io[ho].onStack&&(uo.lowlink=Math.min(uo.lowlink,io[ho].index)):(ao(ho),uo.lowlink=Math.min(uo.lowlink,io[ho].lowlink))}),uo.lowlink===uo.index){var co=[],fo;do fo=oo.pop(),io[fo].onStack=!1,co.push(fo);while(lo!==fo);so.push(co)}}return ro.nodes().forEach(function(lo){eo.has(io,lo)||ao(lo)}),so}return tarjan_1}var findCycles_1,hasRequiredFindCycles;function requireFindCycles(){if(hasRequiredFindCycles)return findCycles_1;hasRequiredFindCycles=1;var eo=requireLodash(),to=requireTarjan();findCycles_1=ro;function ro(no){return eo.filter(to(no),function(oo){return oo.length>1||oo.length===1&&no.hasEdge(oo[0],oo[0])})}return findCycles_1}var floydWarshall_1,hasRequiredFloydWarshall;function requireFloydWarshall(){if(hasRequiredFloydWarshall)return floydWarshall_1;hasRequiredFloydWarshall=1;var eo=requireLodash();floydWarshall_1=ro;var to=eo.constant(1);function ro(oo,io,so){return no(oo,io||to,so||function(ao){return oo.outEdges(ao)})}function no(oo,io,so){var ao={},lo=oo.nodes();return lo.forEach(function(uo){ao[uo]={},ao[uo][uo]={distance:0},lo.forEach(function(co){uo!==co&&(ao[uo][co]={distance:Number.POSITIVE_INFINITY})}),so(uo).forEach(function(co){var fo=co.v===uo?co.w:co.v,ho=io(co);ao[uo][fo]={distance:ho,predecessor:uo}})}),lo.forEach(function(uo){var co=ao[uo];lo.forEach(function(fo){var ho=ao[fo];lo.forEach(function(po){var go=ho[uo],vo=co[po],bo=ho[po],xo=go.distance+vo.distance;xo0;){if(uo=lo.removeMin(),eo.has(ao,uo))so.setEdge(uo,ao[uo]);else{if(fo)throw new Error("Input graph is not connected: "+oo);fo=!0}oo.nodeEdges(uo).forEach(co)}return so}return prim_1}var alg,hasRequiredAlg;function requireAlg(){return hasRequiredAlg||(hasRequiredAlg=1,alg={components:requireComponents(),dijkstra:requireDijkstra(),dijkstraAll:requireDijkstraAll(),findCycles:requireFindCycles(),floydWarshall:requireFloydWarshall(),isAcyclic:requireIsAcyclic(),postorder:requirePostorder(),preorder:requirePreorder(),prim:requirePrim(),tarjan:requireTarjan(),topsort:requireTopsort()}),alg}var graphlib$1,hasRequiredGraphlib;function requireGraphlib(){if(hasRequiredGraphlib)return graphlib$1;hasRequiredGraphlib=1;var eo=requireLib();return graphlib$1={Graph:eo.Graph,json:requireJson(),alg:requireAlg(),version:eo.version},graphlib$1}var graphlib;if(typeof commonjsRequire$1=="function")try{graphlib=requireGraphlib()}catch{}graphlib||(graphlib=window.graphlib);var graphlib_1=graphlib,cloneDeep_1,hasRequiredCloneDeep;function requireCloneDeep(){if(hasRequiredCloneDeep)return cloneDeep_1;hasRequiredCloneDeep=1;var eo=_baseClone,to=1,ro=4;function no(oo){return eo(oo,to|ro)}return cloneDeep_1=no,cloneDeep_1}var eq=eq_1,isArrayLike$3=isArrayLike_1,isIndex=_isIndex,isObject$7=isObject_1;function isIterateeCall$2(eo,to,ro){if(!isObject$7(ro))return!1;var no=typeof to;return(no=="number"?isArrayLike$3(ro)&&isIndex(to,ro.length):no=="string"&&to in ro)?eq(ro[to],eo):!1}var _isIterateeCall=isIterateeCall$2,defaults_1,hasRequiredDefaults;function requireDefaults(){if(hasRequiredDefaults)return defaults_1;hasRequiredDefaults=1;var eo=_baseRest,to=eq_1,ro=_isIterateeCall,no=keysIn_1,oo=Object.prototype,io=oo.hasOwnProperty,so=eo(function(ao,lo){ao=Object(ao);var uo=-1,co=lo.length,fo=co>2?lo[2]:void 0;for(fo&&ro(lo[0],lo[1],fo)&&(co=1);++uo-1?oo[io?to[so]:so]:void 0}}var _createFind=createFind$1,reWhitespace=/\s/;function trimmedEndIndex$1(eo){for(var to=eo.length;to--&&reWhitespace.test(eo.charAt(to)););return to}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(eo){return eo&&eo.slice(0,trimmedEndIndex(eo)+1).replace(reTrimStart,"")}var _baseTrim=baseTrim$1,baseTrim=_baseTrim,isObject$6=isObject_1,isSymbol$2=isSymbol_1,NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$1(eo){if(typeof eo=="number")return eo;if(isSymbol$2(eo))return NAN;if(isObject$6(eo)){var to=typeof eo.valueOf=="function"?eo.valueOf():eo;eo=isObject$6(to)?to+"":to}if(typeof eo!="string")return eo===0?eo:+eo;eo=baseTrim(eo);var ro=reIsBinary.test(eo);return ro||reIsOctal.test(eo)?freeParseInt(eo.slice(2),ro?2:8):reIsBadHex.test(eo)?NAN:+eo}var toNumber_1=toNumber$1,toNumber=toNumber_1,INFINITY=1/0,MAX_INTEGER=17976931348623157e292;function toFinite$2(eo){if(!eo)return eo===0?eo:0;if(eo=toNumber(eo),eo===INFINITY||eo===-INFINITY){var to=eo<0?-1:1;return to*MAX_INTEGER}return eo===eo?eo:0}var toFinite_1=toFinite$2,toFinite$1=toFinite_1;function toInteger$1(eo){var to=toFinite$1(eo),ro=to%1;return to===to?ro?to-ro:to:0}var toInteger_1=toInteger$1,baseFindIndex=_baseFindIndex,baseIteratee$3=_baseIteratee,toInteger=toInteger_1,nativeMax$1=Math.max;function findIndex$1(eo,to,ro){var no=eo==null?0:eo.length;if(!no)return-1;var oo=ro==null?0:toInteger(ro);return oo<0&&(oo=nativeMax$1(no+oo,0)),baseFindIndex(eo,baseIteratee$3(to),oo)}var findIndex_1=findIndex$1,createFind=_createFind,findIndex=findIndex_1,find$1=createFind(findIndex),find_1=find$1,baseFlatten$1=_baseFlatten;function flatten$2(eo){var to=eo==null?0:eo.length;return to?baseFlatten$1(eo,1):[]}var flatten_1=flatten$2,forIn_1,hasRequiredForIn;function requireForIn(){if(hasRequiredForIn)return forIn_1;hasRequiredForIn=1;var eo=_baseFor,to=require_castFunction(),ro=keysIn_1;function no(oo,io){return oo==null?oo:eo(oo,to(io),ro)}return forIn_1=no,forIn_1}function last(eo){var to=eo==null?0:eo.length;return to?eo[to-1]:void 0}var last_1=last,baseAssignValue=_baseAssignValue,baseForOwn=_baseForOwn,baseIteratee$2=_baseIteratee;function mapValues(eo,to){var ro={};return to=baseIteratee$2(to),baseForOwn(eo,function(no,oo,io){baseAssignValue(ro,oo,to(no,oo,io))}),ro}var mapValues_1=mapValues,isSymbol$1=isSymbol_1;function baseExtremum$3(eo,to,ro){for(var no=-1,oo=eo.length;++noto}var _baseGt=baseGt$1,baseExtremum$2=_baseExtremum,baseGt=_baseGt,identity$4=identity_1;function max$1(eo){return eo&&eo.length?baseExtremum$2(eo,identity$4,baseGt):void 0}var max_1=max$1,_assignMergeValue,hasRequired_assignMergeValue;function require_assignMergeValue(){if(hasRequired_assignMergeValue)return _assignMergeValue;hasRequired_assignMergeValue=1;var eo=_baseAssignValue,to=eq_1;function ro(no,oo,io){(io!==void 0&&!to(no[oo],io)||io===void 0&&!(oo in no))&&eo(no,oo,io)}return _assignMergeValue=ro,_assignMergeValue}var baseGetTag=_baseGetTag,getPrototype=_getPrototype,isObjectLike=isObjectLike_1,objectTag="[object Object]",funcProto=Function.prototype,objectProto=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$2=objectProto.hasOwnProperty,objectCtorString=funcToString.call(Object);function isPlainObject$1(eo){if(!isObjectLike(eo)||baseGetTag(eo)!=objectTag)return!1;var to=getPrototype(eo);if(to===null)return!0;var ro=hasOwnProperty$2.call(to,"constructor")&&to.constructor;return typeof ro=="function"&&ro instanceof ro&&funcToString.call(ro)==objectCtorString}var isPlainObject_1=isPlainObject$1,_safeGet,hasRequired_safeGet;function require_safeGet(){if(hasRequired_safeGet)return _safeGet;hasRequired_safeGet=1;function eo(to,ro){if(!(ro==="constructor"&&typeof to[ro]=="function")&&ro!="__proto__")return to[ro]}return _safeGet=eo,_safeGet}var toPlainObject_1,hasRequiredToPlainObject;function requireToPlainObject(){if(hasRequiredToPlainObject)return toPlainObject_1;hasRequiredToPlainObject=1;var eo=_copyObject,to=keysIn_1;function ro(no){return eo(no,to(no))}return toPlainObject_1=ro,toPlainObject_1}var _baseMergeDeep,hasRequired_baseMergeDeep;function require_baseMergeDeep(){if(hasRequired_baseMergeDeep)return _baseMergeDeep;hasRequired_baseMergeDeep=1;var eo=require_assignMergeValue(),to=_cloneBufferExports,ro=_cloneTypedArray,no=_copyArray,oo=_initCloneObject,io=isArguments_1,so=isArray_1,ao=requireIsArrayLikeObject(),lo=isBufferExports,uo=isFunction_1,co=isObject_1,fo=isPlainObject_1,ho=isTypedArray_1,po=require_safeGet(),go=requireToPlainObject();function vo(bo,xo,_o,Eo,So,To,wo){var Co=po(bo,_o),Oo=po(xo,_o),Ao=wo.get(Oo);if(Ao){eo(bo,_o,Ao);return}var Ro=To?To(Co,Oo,_o+"",bo,xo,wo):void 0,No=Ro===void 0;if(No){var Mo=so(Oo),Do=!Mo&&lo(Oo),jo=!Mo&&!Do&&ho(Oo);Ro=Oo,Mo||Do||jo?so(Co)?Ro=Co:ao(Co)?Ro=no(Co):Do?(No=!1,Ro=to(Oo,!0)):jo?(No=!1,Ro=ro(Oo,!0)):Ro=[]:fo(Oo)||io(Oo)?(Ro=Co,io(Co)?Ro=go(Co):(!co(Co)||uo(Co))&&(Ro=oo(Oo))):No=!1}No&&(wo.set(Oo,Ro),So(Ro,Oo,Eo,To,wo),wo.delete(Oo)),eo(bo,_o,Ro)}return _baseMergeDeep=vo,_baseMergeDeep}var _baseMerge,hasRequired_baseMerge;function require_baseMerge(){if(hasRequired_baseMerge)return _baseMerge;hasRequired_baseMerge=1;var eo=_Stack,to=require_assignMergeValue(),ro=_baseFor,no=require_baseMergeDeep(),oo=isObject_1,io=keysIn_1,so=require_safeGet();function ao(lo,uo,co,fo,ho){lo!==uo&&ro(uo,function(po,go){if(ho||(ho=new eo),oo(po))no(lo,uo,go,co,ao,fo,ho);else{var vo=fo?fo(so(lo,go),po,go+"",lo,uo,ho):void 0;vo===void 0&&(vo=po),to(lo,go,vo)}},io)}return _baseMerge=ao,_baseMerge}var _createAssigner,hasRequired_createAssigner;function require_createAssigner(){if(hasRequired_createAssigner)return _createAssigner;hasRequired_createAssigner=1;var eo=_baseRest,to=_isIterateeCall;function ro(no){return eo(function(oo,io){var so=-1,ao=io.length,lo=ao>1?io[ao-1]:void 0,uo=ao>2?io[2]:void 0;for(lo=no.length>3&&typeof lo=="function"?(ao--,lo):void 0,uo&&to(io[0],io[1],uo)&&(lo=ao<3?void 0:lo,ao=1),oo=Object(oo);++soto||io&&so&&lo&&!ao&&!uo||no&&so&&lo||!ro&&lo||!oo)return 1;if(!no&&!io&&!uo&&eo=ao)return lo;var uo=ro[no];return lo*(uo=="desc"?-1:1)}}return eo.index-to.index}var _compareMultiple=compareMultiple$1,arrayMap=_arrayMap,baseGet=_baseGet,baseIteratee=_baseIteratee,baseMap=_baseMap,baseSortBy=_baseSortBy,baseUnary=_baseUnary,compareMultiple=_compareMultiple,identity$2=identity_1,isArray$1=isArray_1;function baseOrderBy$1(eo,to,ro){to.length?to=arrayMap(to,function(io){return isArray$1(io)?function(so){return baseGet(so,io.length===1?io[0]:io)}:io}):to=[identity$2];var no=-1;to=arrayMap(to,baseUnary(baseIteratee));var oo=baseMap(eo,function(io,so,ao){var lo=arrayMap(to,function(uo){return uo(io)});return{criteria:lo,index:++no,value:io}});return baseSortBy(oo,function(io,so){return compareMultiple(io,so,ro)})}var _baseOrderBy=baseOrderBy$1,baseFlatten=_baseFlatten,baseOrderBy=_baseOrderBy,baseRest=_baseRest,isIterateeCall=_isIterateeCall,sortBy=baseRest(function(eo,to){if(eo==null)return[];var ro=to.length;return ro>1&&isIterateeCall(eo,to[0],to[1])?to=[]:ro>2&&isIterateeCall(to[0],to[1],to[2])&&(to=[to[0]]),baseOrderBy(eo,baseFlatten(to,1),[])}),sortBy_1=sortBy,uniqueId_1,hasRequiredUniqueId;function requireUniqueId(){if(hasRequiredUniqueId)return uniqueId_1;hasRequiredUniqueId=1;var eo=toString_1,to=0;function ro(no){var oo=++to;return eo(no)+oo}return uniqueId_1=ro,uniqueId_1}var _baseZipObject,hasRequired_baseZipObject;function require_baseZipObject(){if(hasRequired_baseZipObject)return _baseZipObject;hasRequired_baseZipObject=1;function eo(to,ro,no){for(var oo=-1,io=to.length,so=ro.length,ao={};++oo0;--ao)if(so=to[ao].dequeue(),so){no=no.concat(removeNode(eo,to,ro,so,!0));break}}}return no}function removeNode(eo,to,ro,no,oo){var io=oo?[]:void 0;return _$u.forEach(eo.inEdges(no.v),function(so){var ao=eo.edge(so),lo=eo.node(so.v);oo&&io.push({v:so.v,w:so.w}),lo.out-=ao,assignBucket(to,ro,lo)}),_$u.forEach(eo.outEdges(no.v),function(so){var ao=eo.edge(so),lo=so.w,uo=eo.node(lo);uo.in-=ao,assignBucket(to,ro,uo)}),eo.removeNode(no.v),io}function buildState(eo,to){var ro=new Graph$8,no=0,oo=0;_$u.forEach(eo.nodes(),function(ao){ro.setNode(ao,{v:ao,in:0,out:0})}),_$u.forEach(eo.edges(),function(ao){var lo=ro.edge(ao.v,ao.w)||0,uo=to(ao),co=lo+uo;ro.setEdge(ao.v,ao.w,co),oo=Math.max(oo,ro.node(ao.v).out+=uo),no=Math.max(no,ro.node(ao.w).in+=uo)});var io=_$u.range(oo+no+3).map(function(){return new List$2}),so=no+1;return _$u.forEach(ro.nodes(),function(ao){assignBucket(io,so,ro.node(ao))}),{graph:ro,buckets:io,zeroIdx:so}}function assignBucket(eo,to,ro){ro.out?ro.in?eo[ro.out-ro.in+to].enqueue(ro):eo[eo.length-1].enqueue(ro):eo[0].enqueue(ro)}var _$t=lodash_1,greedyFAS=greedyFas,acyclic$1={run:run$2,undo:undo$4};function run$2(eo){var to=eo.graph().acyclicer==="greedy"?greedyFAS(eo,ro(eo)):dfsFAS(eo);_$t.forEach(to,function(no){var oo=eo.edge(no);eo.removeEdge(no),oo.forwardName=no.name,oo.reversed=!0,eo.setEdge(no.w,no.v,oo,_$t.uniqueId("rev"))});function ro(no){return function(oo){return no.edge(oo).weight}}}function dfsFAS(eo){var to=[],ro={},no={};function oo(io){_$t.has(no,io)||(no[io]=!0,ro[io]=!0,_$t.forEach(eo.outEdges(io),function(so){_$t.has(ro,so.w)?to.push(so):oo(so.w)}),delete ro[io])}return _$t.forEach(eo.nodes(),oo),to}function undo$4(eo){_$t.forEach(eo.edges(),function(to){var ro=eo.edge(to);if(ro.reversed){eo.removeEdge(to);var no=ro.forwardName;delete ro.reversed,delete ro.forwardName,eo.setEdge(to.w,to.v,ro,no)}})}var _$s=lodash_1,Graph$7=graphlib_1.Graph,util$a={addDummyNode,simplify:simplify$1,asNonCompoundGraph,successorWeights,predecessorWeights,intersectRect,buildLayerMatrix,normalizeRanks:normalizeRanks$1,removeEmptyRanks:removeEmptyRanks$1,addBorderNode:addBorderNode$1,maxRank,partition,time,notime};function addDummyNode(eo,to,ro,no){var oo;do oo=_$s.uniqueId(no);while(eo.hasNode(oo));return ro.dummy=to,eo.setNode(oo,ro),oo}function simplify$1(eo){var to=new Graph$7().setGraph(eo.graph());return _$s.forEach(eo.nodes(),function(ro){to.setNode(ro,eo.node(ro))}),_$s.forEach(eo.edges(),function(ro){var no=to.edge(ro.v,ro.w)||{weight:0,minlen:1},oo=eo.edge(ro);to.setEdge(ro.v,ro.w,{weight:no.weight+oo.weight,minlen:Math.max(no.minlen,oo.minlen)})}),to}function asNonCompoundGraph(eo){var to=new Graph$7({multigraph:eo.isMultigraph()}).setGraph(eo.graph());return _$s.forEach(eo.nodes(),function(ro){eo.children(ro).length||to.setNode(ro,eo.node(ro))}),_$s.forEach(eo.edges(),function(ro){to.setEdge(ro,eo.edge(ro))}),to}function successorWeights(eo){var to=_$s.map(eo.nodes(),function(ro){var no={};return _$s.forEach(eo.outEdges(ro),function(oo){no[oo.w]=(no[oo.w]||0)+eo.edge(oo).weight}),no});return _$s.zipObject(eo.nodes(),to)}function predecessorWeights(eo){var to=_$s.map(eo.nodes(),function(ro){var no={};return _$s.forEach(eo.inEdges(ro),function(oo){no[oo.v]=(no[oo.v]||0)+eo.edge(oo).weight}),no});return _$s.zipObject(eo.nodes(),to)}function intersectRect(eo,to){var ro=eo.x,no=eo.y,oo=to.x-ro,io=to.y-no,so=eo.width/2,ao=eo.height/2;if(!oo&&!io)throw new Error("Not possible to find intersection inside of the rectangle");var lo,uo;return Math.abs(io)*so>Math.abs(oo)*ao?(io<0&&(ao=-ao),lo=ao*oo/io,uo=ao):(oo<0&&(so=-so),lo=so,uo=so*io/oo),{x:ro+lo,y:no+uo}}function buildLayerMatrix(eo){var to=_$s.map(_$s.range(maxRank(eo)+1),function(){return[]});return _$s.forEach(eo.nodes(),function(ro){var no=eo.node(ro),oo=no.rank;_$s.isUndefined(oo)||(to[oo][no.order]=ro)}),to}function normalizeRanks$1(eo){var to=_$s.min(_$s.map(eo.nodes(),function(ro){return eo.node(ro).rank}));_$s.forEach(eo.nodes(),function(ro){var no=eo.node(ro);_$s.has(no,"rank")&&(no.rank-=to)})}function removeEmptyRanks$1(eo){var to=_$s.min(_$s.map(eo.nodes(),function(io){return eo.node(io).rank})),ro=[];_$s.forEach(eo.nodes(),function(io){var so=eo.node(io).rank-to;ro[so]||(ro[so]=[]),ro[so].push(io)});var no=0,oo=eo.graph().nodeRankFactor;_$s.forEach(ro,function(io,so){_$s.isUndefined(io)&&so%oo!==0?--no:no&&_$s.forEach(io,function(ao){eo.node(ao).rank+=no})})}function addBorderNode$1(eo,to,ro,no){var oo={width:0,height:0};return arguments.length>=4&&(oo.rank=ro,oo.order=no),addDummyNode(eo,"border",oo,to)}function maxRank(eo){return _$s.max(_$s.map(eo.nodes(),function(to){var ro=eo.node(to).rank;if(!_$s.isUndefined(ro))return ro}))}function partition(eo,to){var ro={lhs:[],rhs:[]};return _$s.forEach(eo,function(no){to(no)?ro.lhs.push(no):ro.rhs.push(no)}),ro}function time(eo,to){var ro=_$s.now();try{return to()}finally{console.log(eo+" time: "+(_$s.now()-ro)+"ms")}}function notime(eo,to){return to()}var _$r=lodash_1,util$9=util$a,normalize$1={run:run$1,undo:undo$3};function run$1(eo){eo.graph().dummyChains=[],_$r.forEach(eo.edges(),function(to){normalizeEdge(eo,to)})}function normalizeEdge(eo,to){var ro=to.v,no=eo.node(ro).rank,oo=to.w,io=eo.node(oo).rank,so=to.name,ao=eo.edge(to),lo=ao.labelRank;if(io!==no+1){eo.removeEdge(to);var uo,co,fo;for(fo=0,++no;noso.lim&&(ao=so,lo=!0);var uo=_$o.filter(to.edges(),function(co){return lo===isDescendant(eo,eo.node(co.v),ao)&&lo!==isDescendant(eo,eo.node(co.w),ao)});return _$o.minBy(uo,function(co){return slack(to,co)})}function exchangeEdges(eo,to,ro,no){var oo=ro.v,io=ro.w;eo.removeEdge(oo,io),eo.setEdge(no.v,no.w,{}),initLowLimValues(eo),initCutValues(eo,to),updateRanks(eo,to)}function updateRanks(eo,to){var ro=_$o.find(eo.nodes(),function(oo){return!to.node(oo).parent}),no=preorder(eo,ro);no=no.slice(1),_$o.forEach(no,function(oo){var io=eo.node(oo).parent,so=to.edge(oo,io),ao=!1;so||(so=to.edge(io,oo),ao=!0),to.node(oo).rank=to.node(io).rank+(ao?so.minlen:-so.minlen)})}function isTreeEdge(eo,to,ro){return eo.hasEdge(to,ro)}function isDescendant(eo,to,ro){return ro.low<=to.lim&&to.lim<=ro.lim}var rankUtil=util$8,longestPath=rankUtil.longestPath,feasibleTree=feasibleTree_1,networkSimplex=networkSimplex_1,rank_1=rank$1;function rank$1(eo){switch(eo.graph().ranker){case"network-simplex":networkSimplexRanker(eo);break;case"tight-tree":tightTreeRanker(eo);break;case"longest-path":longestPathRanker(eo);break;default:networkSimplexRanker(eo)}}var longestPathRanker=longestPath;function tightTreeRanker(eo){longestPath(eo),feasibleTree(eo)}function networkSimplexRanker(eo){networkSimplex(eo)}var _$n=lodash_1,parentDummyChains_1=parentDummyChains$1;function parentDummyChains$1(eo){var to=postorder(eo);_$n.forEach(eo.graph().dummyChains,function(ro){for(var no=eo.node(ro),oo=no.edgeObj,io=findPath(eo,to,oo.v,oo.w),so=io.path,ao=io.lca,lo=0,uo=so[lo],co=!0;ro!==oo.w;){if(no=eo.node(ro),co){for(;(uo=so[lo])!==ao&&eo.node(uo).maxRankso||ao>to[lo].lim));for(uo=lo,lo=no;(lo=eo.parent(lo))!==uo;)io.push(lo);return{path:oo.concat(io.reverse()),lca:uo}}function postorder(eo){var to={},ro=0;function no(oo){var io=ro;_$n.forEach(eo.children(oo),no),to[oo]={low:io,lim:ro++}}return _$n.forEach(eo.children(),no),to}var _$m=lodash_1,util$7=util$a,nestingGraph$1={run,cleanup:cleanup$1};function run(eo){var to=util$7.addDummyNode(eo,"root",{},"_root"),ro=treeDepths(eo),no=_$m.max(_$m.values(ro))-1,oo=2*no+1;eo.graph().nestingRoot=to,_$m.forEach(eo.edges(),function(so){eo.edge(so).minlen*=oo});var io=sumWeights(eo)+1;_$m.forEach(eo.children(),function(so){dfs(eo,to,oo,io,no,ro,so)}),eo.graph().nodeRankFactor=oo}function dfs(eo,to,ro,no,oo,io,so){var ao=eo.children(so);if(!ao.length){so!==to&&eo.setEdge(to,so,{weight:0,minlen:ro});return}var lo=util$7.addBorderNode(eo,"_bt"),uo=util$7.addBorderNode(eo,"_bb"),co=eo.node(so);eo.setParent(lo,so),co.borderTop=lo,eo.setParent(uo,so),co.borderBottom=uo,_$m.forEach(ao,function(fo){dfs(eo,to,ro,no,oo,io,fo);var ho=eo.node(fo),po=ho.borderTop?ho.borderTop:fo,go=ho.borderBottom?ho.borderBottom:fo,vo=ho.borderTop?no:2*no,bo=po!==go?1:oo-io[so]+1;eo.setEdge(lo,po,{weight:vo,minlen:bo,nestingEdge:!0}),eo.setEdge(go,uo,{weight:vo,minlen:bo,nestingEdge:!0})}),eo.parent(so)||eo.setEdge(to,lo,{weight:0,minlen:oo+io[so]})}function treeDepths(eo){var to={};function ro(no,oo){var io=eo.children(no);io&&io.length&&_$m.forEach(io,function(so){ro(so,oo+1)}),to[no]=oo}return _$m.forEach(eo.children(),function(no){ro(no,1)}),to}function sumWeights(eo){return _$m.reduce(eo.edges(),function(to,ro){return to+eo.edge(ro).weight},0)}function cleanup$1(eo){var to=eo.graph();eo.removeNode(to.nestingRoot),delete to.nestingRoot,_$m.forEach(eo.edges(),function(ro){var no=eo.edge(ro);no.nestingEdge&&eo.removeEdge(ro)})}var _$l=lodash_1,util$6=util$a,addBorderSegments_1=addBorderSegments$1;function addBorderSegments$1(eo){function to(ro){var no=eo.children(ro),oo=eo.node(ro);if(no.length&&_$l.forEach(no,to),_$l.has(oo,"minRank")){oo.borderLeft=[],oo.borderRight=[];for(var io=oo.minRank,so=oo.maxRank+1;io0;)co%2&&(fo+=ao[co+1]),co=co-1>>1,ao[co]+=uo.weight;lo+=uo.weight*fo})),lo}var _$h=lodash_1,barycenter_1=barycenter$1;function barycenter$1(eo,to){return _$h.map(to,function(ro){var no=eo.inEdges(ro);if(no.length){var oo=_$h.reduce(no,function(io,so){var ao=eo.edge(so),lo=eo.node(so.v);return{sum:io.sum+ao.weight*lo.order,weight:io.weight+ao.weight}},{sum:0,weight:0});return{v:ro,barycenter:oo.sum/oo.weight,weight:oo.weight}}else return{v:ro}})}var _$g=lodash_1,resolveConflicts_1=resolveConflicts$1;function resolveConflicts$1(eo,to){var ro={};_$g.forEach(eo,function(oo,io){var so=ro[oo.v]={indegree:0,in:[],out:[],vs:[oo.v],i:io};_$g.isUndefined(oo.barycenter)||(so.barycenter=oo.barycenter,so.weight=oo.weight)}),_$g.forEach(to.edges(),function(oo){var io=ro[oo.v],so=ro[oo.w];!_$g.isUndefined(io)&&!_$g.isUndefined(so)&&(so.indegree++,io.out.push(ro[oo.w]))});var no=_$g.filter(ro,function(oo){return!oo.indegree});return doResolveConflicts(no)}function doResolveConflicts(eo){var to=[];function ro(io){return function(so){so.merged||(_$g.isUndefined(so.barycenter)||_$g.isUndefined(io.barycenter)||so.barycenter>=io.barycenter)&&mergeEntries(io,so)}}function no(io){return function(so){so.in.push(io),--so.indegree===0&&eo.push(so)}}for(;eo.length;){var oo=eo.pop();to.push(oo),_$g.forEach(oo.in.reverse(),ro(oo)),_$g.forEach(oo.out,no(oo))}return _$g.map(_$g.filter(to,function(io){return!io.merged}),function(io){return _$g.pick(io,["vs","i","barycenter","weight"])})}function mergeEntries(eo,to){var ro=0,no=0;eo.weight&&(ro+=eo.barycenter*eo.weight,no+=eo.weight),to.weight&&(ro+=to.barycenter*to.weight,no+=to.weight),eo.vs=to.vs.concat(eo.vs),eo.barycenter=ro/no,eo.weight=no,eo.i=Math.min(to.i,eo.i),to.merged=!0}var _$f=lodash_1,util$5=util$a,sort_1=sort$1;function sort$1(eo,to){var ro=util$5.partition(eo,function(co){return _$f.has(co,"barycenter")}),no=ro.lhs,oo=_$f.sortBy(ro.rhs,function(co){return-co.i}),io=[],so=0,ao=0,lo=0;no.sort(compareWithBias(!!to)),lo=consumeUnsortable(io,oo,lo),_$f.forEach(no,function(co){lo+=co.vs.length,io.push(co.vs),so+=co.barycenter*co.weight,ao+=co.weight,lo=consumeUnsortable(io,oo,lo)});var uo={vs:_$f.flatten(io,!0)};return ao&&(uo.barycenter=so/ao,uo.weight=ao),uo}function consumeUnsortable(eo,to,ro){for(var no;to.length&&(no=_$f.last(to)).i<=ro;)to.pop(),eo.push(no.vs),ro++;return ro}function compareWithBias(eo){return function(to,ro){return to.barycenterro.barycenter?1:eo?ro.i-to.i:to.i-ro.i}}var _$e=lodash_1,barycenter=barycenter_1,resolveConflicts=resolveConflicts_1,sort=sort_1,sortSubgraph_1=sortSubgraph$1;function sortSubgraph$1(eo,to,ro,no){var oo=eo.children(to),io=eo.node(to),so=io?io.borderLeft:void 0,ao=io?io.borderRight:void 0,lo={};so&&(oo=_$e.filter(oo,function(go){return go!==so&&go!==ao}));var uo=barycenter(eo,oo);_$e.forEach(uo,function(go){if(eo.children(go.v).length){var vo=sortSubgraph$1(eo,go.v,ro,no);lo[go.v]=vo,_$e.has(vo,"barycenter")&&mergeBarycenters(go,vo)}});var co=resolveConflicts(uo,ro);expandSubgraphs(co,lo);var fo=sort(co,no);if(so&&(fo.vs=_$e.flatten([so,fo.vs,ao],!0),eo.predecessors(so).length)){var ho=eo.node(eo.predecessors(so)[0]),po=eo.node(eo.predecessors(ao)[0]);_$e.has(fo,"barycenter")||(fo.barycenter=0,fo.weight=0),fo.barycenter=(fo.barycenter*fo.weight+ho.order+po.order)/(fo.weight+2),fo.weight+=2}return fo}function expandSubgraphs(eo,to){_$e.forEach(eo,function(ro){ro.vs=_$e.flatten(ro.vs.map(function(no){return to[no]?to[no].vs:no}),!0)})}function mergeBarycenters(eo,to){_$e.isUndefined(eo.barycenter)?(eo.barycenter=to.barycenter,eo.weight=to.weight):(eo.barycenter=(eo.barycenter*eo.weight+to.barycenter*to.weight)/(eo.weight+to.weight),eo.weight+=to.weight)}var _$d=lodash_1,Graph$5=graphlib_1.Graph,buildLayerGraph_1=buildLayerGraph$1;function buildLayerGraph$1(eo,to,ro){var no=createRootNode(eo),oo=new Graph$5({compound:!0}).setGraph({root:no}).setDefaultNodeLabel(function(io){return eo.node(io)});return _$d.forEach(eo.nodes(),function(io){var so=eo.node(io),ao=eo.parent(io);(so.rank===to||so.minRank<=to&&to<=so.maxRank)&&(oo.setNode(io),oo.setParent(io,ao||no),_$d.forEach(eo[ro](io),function(lo){var uo=lo.v===io?lo.w:lo.v,co=oo.edge(uo,io),fo=_$d.isUndefined(co)?0:co.weight;oo.setEdge(uo,io,{weight:eo.edge(lo).weight+fo})}),_$d.has(so,"minRank")&&oo.setNode(io,{borderLeft:so.borderLeft[to],borderRight:so.borderRight[to]}))}),oo}function createRootNode(eo){for(var to;eo.hasNode(to=_$d.uniqueId("_root")););return to}var _$c=lodash_1,addSubgraphConstraints_1=addSubgraphConstraints$1;function addSubgraphConstraints$1(eo,to,ro){var no={},oo;_$c.forEach(ro,function(io){for(var so=eo.parent(io),ao,lo;so;){if(ao=eo.parent(so),ao?(lo=no[ao],no[ao]=so):(lo=oo,oo=so),lo&&lo!==so){to.setEdge(lo,so);return}so=ao}})}var _$b=lodash_1,initOrder=initOrder_1,crossCount=crossCount_1,sortSubgraph=sortSubgraph_1,buildLayerGraph=buildLayerGraph_1,addSubgraphConstraints=addSubgraphConstraints_1,Graph$4=graphlib_1.Graph,util$4=util$a,order_1=order$1;function order$1(eo){var to=util$4.maxRank(eo),ro=buildLayerGraphs(eo,_$b.range(1,to+1),"inEdges"),no=buildLayerGraphs(eo,_$b.range(to-1,-1,-1),"outEdges"),oo=initOrder(eo);assignOrder(eo,oo);for(var io=Number.POSITIVE_INFINITY,so,ao=0,lo=0;lo<4;++ao,++lo){sweepLayerGraphs(ao%2?ro:no,ao%4>=2),oo=util$4.buildLayerMatrix(eo);var uo=crossCount(eo,oo);uouo)&&addConflict(ro,ho,co)})})}function oo(io,so){var ao=-1,lo,uo=0;return _$a.forEach(so,function(co,fo){if(eo.node(co).dummy==="border"){var ho=eo.predecessors(co);ho.length&&(lo=eo.node(ho[0]).order,no(so,uo,fo,ao,lo),uo=fo,ao=lo)}no(so,uo,so.length,lo,io.length)}),so}return _$a.reduce(to,oo),ro}function findOtherInnerSegmentNode(eo,to){if(eo.node(to).dummy)return _$a.find(eo.predecessors(to),function(ro){return eo.node(ro).dummy})}function addConflict(eo,to,ro){if(to>ro){var no=to;to=ro,ro=no}var oo=eo[to];oo||(eo[to]=oo={}),oo[ro]=!0}function hasConflict(eo,to,ro){if(to>ro){var no=to;to=ro,ro=no}return _$a.has(eo[to],ro)}function verticalAlignment(eo,to,ro,no){var oo={},io={},so={};return _$a.forEach(to,function(ao){_$a.forEach(ao,function(lo,uo){oo[lo]=lo,io[lo]=lo,so[lo]=uo})}),_$a.forEach(to,function(ao){var lo=-1;_$a.forEach(ao,function(uo){var co=no(uo);if(co.length){co=_$a.sortBy(co,function(vo){return so[vo]});for(var fo=(co.length-1)/2,ho=Math.floor(fo),po=Math.ceil(fo);ho<=po;++ho){var go=co[ho];io[uo]===uo&&lo=0;ao--)(so=eo[ao])&&(io=(oo<3?so(io):oo>3?so(to,ro,io):so(to,ro))||io);return oo>3&&io&&Object.defineProperty(to,ro,io),io}function __spreadArray$1(eo,to,ro){if(ro||arguments.length===2)for(var no=0,oo=to.length,io;no"u"?InjectionMode$1.none:InjectionMode$1.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},to),this._classNameToArgs=(no=ro==null?void 0:ro.classNameToArgs)!==null&&no!==void 0?no:this._classNameToArgs,this._counter=(oo=ro==null?void 0:ro.counter)!==null&&oo!==void 0?oo:this._counter,this._keyToClassName=(so=(io=this._config.classNameCache)!==null&&io!==void 0?io:ro==null?void 0:ro.keyToClassName)!==null&&so!==void 0?so:this._keyToClassName,this._preservedRules=(ao=ro==null?void 0:ro.preservedRules)!==null&&ao!==void 0?ao:this._preservedRules,this._rules=(lo=ro==null?void 0:ro.rules)!==null&&lo!==void 0?lo:this._rules}return eo.getInstance=function(){if(_stylesheet$1=_global$2[STYLESHEET_SETTING$1],!_stylesheet$1||_stylesheet$1._lastStyleElement&&_stylesheet$1._lastStyleElement.ownerDocument!==document){var to=(_global$2==null?void 0:_global$2.FabricConfig)||{},ro=new eo(to.mergeStyles,to.serializedStylesheet);_stylesheet$1=ro,_global$2[STYLESHEET_SETTING$1]=ro}return _stylesheet$1},eo.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},eo.prototype.setConfig=function(to){this._config=__assign$4(__assign$4({},this._config),to)},eo.prototype.onReset=function(to){var ro=this;return this._onResetCallbacks.push(to),function(){ro._onResetCallbacks=ro._onResetCallbacks.filter(function(no){return no!==to})}},eo.prototype.onInsertRule=function(to){var ro=this;return this._onInsertRuleCallbacks.push(to),function(){ro._onInsertRuleCallbacks=ro._onInsertRuleCallbacks.filter(function(no){return no!==to})}},eo.prototype.getClassName=function(to){var ro=this._config.namespace,no=to||this._config.defaultPrefix;return"".concat(ro?ro+"-":"").concat(no,"-").concat(this._counter++)},eo.prototype.cacheClassName=function(to,ro,no,oo){this._keyToClassName[ro]=to,this._classNameToArgs[to]={args:no,rules:oo}},eo.prototype.classNameFromKey=function(to){return this._keyToClassName[to]},eo.prototype.getClassNameCache=function(){return this._keyToClassName},eo.prototype.argsFromClassName=function(to){var ro=this._classNameToArgs[to];return ro&&ro.args},eo.prototype.insertedRulesFromClassName=function(to){var ro=this._classNameToArgs[to];return ro&&ro.rules},eo.prototype.insertRule=function(to,ro){var no=this._config.injectionMode,oo=no!==InjectionMode$1.none?this._getStyleElement():void 0;if(ro&&this._preservedRules.push(to),oo)switch(no){case InjectionMode$1.insertNode:var io=oo.sheet;try{io.insertRule(to,io.cssRules.length)}catch{}break;case InjectionMode$1.appendChild:oo.appendChild(document.createTextNode(to));break}else this._rules.push(to);this._config.onInsertRule&&this._config.onInsertRule(to),this._onInsertRuleCallbacks.forEach(function(so){return so()})},eo.prototype.getRules=function(to){return(to?this._preservedRules.join(""):"")+this._rules.join("")},eo.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(to){return to()})},eo.prototype.resetKeys=function(){this._keyToClassName={}},eo.prototype._getStyleElement=function(){var to=this;return!this._styleElement&&typeof document<"u"&&(this._styleElement=this._createStyleElement(),REUSE_STYLE_NODE$1||window.requestAnimationFrame(function(){to._styleElement=void 0})),this._styleElement},eo.prototype._createStyleElement=function(){var to=document.head,ro=document.createElement("style"),no=null;ro.setAttribute("data-merge-styles","true");var oo=this._config.cspSettings;if(oo&&oo.nonce&&ro.setAttribute("nonce",oo.nonce),this._lastStyleElement)no=this._lastStyleElement.nextElementSibling;else{var io=this._findPlaceholderStyleTag();io?no=io.nextElementSibling:no=to.childNodes[0]}return to.insertBefore(ro,to.contains(no)?no:null),this._lastStyleElement=ro,ro},eo.prototype._findPlaceholderStyleTag=function(){var to=document.head;return to?to.querySelector("style[data-merge-styles]"):null},eo}();function extractStyleParts$1(){for(var eo=[],to=0;to=0)io(uo.split(" "));else{var co=oo.argsFromClassName(uo);co?io(co):ro.indexOf(uo)===-1&&ro.push(uo)}else Array.isArray(uo)?io(uo):typeof uo=="object"&&no.push(uo)}}return io(eo),{classes:ro,objects:no}}function setRTL$1(eo){_rtl$1!==eo&&(_rtl$1=eo)}function getRTL$2(){return _rtl$1===void 0&&(_rtl$1=typeof document<"u"&&!!document.documentElement&&document.documentElement.getAttribute("dir")==="rtl"),_rtl$1}var _rtl$1;_rtl$1=getRTL$2();function getStyleOptions$1(){return{rtl:getRTL$2()}}var rules$1={};function kebabRules$1(eo,to){var ro=eo[to];ro.charAt(0)!=="-"&&(eo[to]=rules$1[ro]=rules$1[ro]||ro.replace(/([A-Z])/g,"-$1").toLowerCase())}var _vendorSettings$1;function getVendorSettings$1(){var eo;if(!_vendorSettings$1){var to=typeof document<"u"?document:void 0,ro=typeof navigator<"u"?navigator:void 0,no=(eo=ro==null?void 0:ro.userAgent)===null||eo===void 0?void 0:eo.toLowerCase();to?_vendorSettings$1={isWebkit:!!(to&&"WebkitAppearance"in to.documentElement.style),isMoz:!!(no&&no.indexOf("firefox")>-1),isOpera:!!(no&&no.indexOf("opera")>-1),isMs:!!(ro&&(/rv:11.0/i.test(ro.userAgent)||/Edge\/\d./i.test(navigator.userAgent)))}:_vendorSettings$1={isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return _vendorSettings$1}var autoPrefixNames$1={"user-select":1};function prefixRules$1(eo,to){var ro=getVendorSettings$1(),no=eo[to];if(autoPrefixNames$1[no]){var oo=eo[to+1];autoPrefixNames$1[no]&&(ro.isWebkit&&eo.push("-webkit-"+no,oo),ro.isMoz&&eo.push("-moz-"+no,oo),ro.isMs&&eo.push("-ms-"+no,oo),ro.isOpera&&eo.push("-o-"+no,oo))}}var NON_PIXEL_NUMBER_PROPS$1=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function provideUnits$1(eo,to){var ro=eo[to],no=eo[to+1];if(typeof no=="number"){var oo=NON_PIXEL_NUMBER_PROPS$1.indexOf(ro)>-1,io=ro.indexOf("--")>-1,so=oo||io?"":"px";eo[to+1]="".concat(no).concat(so)}}var _a$a,LEFT$1="left",RIGHT$1="right",NO_FLIP$1="@noflip",NAME_REPLACEMENTS$1=(_a$a={},_a$a[LEFT$1]=RIGHT$1,_a$a[RIGHT$1]=LEFT$1,_a$a),VALUE_REPLACEMENTS$1={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function rtlifyRules$1(eo,to,ro){if(eo.rtl){var no=to[ro];if(!no)return;var oo=to[ro+1];if(typeof oo=="string"&&oo.indexOf(NO_FLIP$1)>=0)to[ro+1]=oo.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(no.indexOf(LEFT$1)>=0)to[ro]=no.replace(LEFT$1,RIGHT$1);else if(no.indexOf(RIGHT$1)>=0)to[ro]=no.replace(RIGHT$1,LEFT$1);else if(String(oo).indexOf(LEFT$1)>=0)to[ro+1]=oo.replace(LEFT$1,RIGHT$1);else if(String(oo).indexOf(RIGHT$1)>=0)to[ro+1]=oo.replace(RIGHT$1,LEFT$1);else if(NAME_REPLACEMENTS$1[no])to[ro]=NAME_REPLACEMENTS$1[no];else if(VALUE_REPLACEMENTS$1[oo])to[ro+1]=VALUE_REPLACEMENTS$1[oo];else switch(no){case"margin":case"padding":to[ro+1]=flipQuad$1(oo);break;case"box-shadow":to[ro+1]=negateNum$1(oo,0);break}}}function negateNum$1(eo,to){var ro=eo.split(" "),no=parseInt(ro[to],10);return ro[0]=ro[0].replace(String(no),String(no*-1)),ro.join(" ")}function flipQuad$1(eo){if(typeof eo=="string"){var to=eo.split(" ");if(to.length===4)return"".concat(to[0]," ").concat(to[3]," ").concat(to[2]," ").concat(to[1])}return eo}function tokenizeWithParentheses$1(eo){for(var to=[],ro=0,no=0,oo=0;ooro&&to.push(eo.substring(ro,oo)),ro=oo+1);break}return ro-1&&to.push([no.index,no.index+no[0].length,no[1].split(",").map(function(oo){return":global(".concat(oo.trim(),")")}).join(", ")]);return to.reverse().reduce(function(oo,io){var so=io[0],ao=io[1],lo=io[2],uo=oo.slice(0,so),co=oo.slice(ao);return uo+lo+co},eo)}function expandSelector$1(eo,to){return eo.indexOf(":global(")>=0?eo.replace(globalSelectorRegExp$1,"$1"):eo.indexOf(":")===0?to+eo:eo.indexOf("&")<0?to+" "+eo:eo}function extractSelector$1(eo,to,ro,no){to===void 0&&(to={__order:[]}),ro.indexOf("@")===0?(ro=ro+"{"+eo,extractRules$1([no],to,ro)):ro.indexOf(",")>-1?expandCommaSeparatedGlobals$1(ro).split(",").map(function(oo){return oo.trim()}).forEach(function(oo){return extractRules$1([no],to,expandSelector$1(oo,eo))}):extractRules$1([no],to,expandSelector$1(ro,eo))}function extractRules$1(eo,to,ro){to===void 0&&(to={__order:[]}),ro===void 0&&(ro="&");var no=Stylesheet$1.getInstance(),oo=to[ro];oo||(oo={},to[ro]=oo,to.__order.push(ro));for(var io=0,so=eo;io0){ro.subComponentStyles={};var ho=ro.subComponentStyles,po=function(go){if(no.hasOwnProperty(go)){var vo=no[go];ho[go]=function(bo){return concatStyleSets.apply(void 0,vo.map(function(xo){return typeof xo=="function"?xo(bo):xo}))}}};for(var uo in no)po(uo)}return ro}function mergeStyleSets(){for(var eo=[],to=0;to"u")){var to=eo;return to&&to.ownerDocument&&to.ownerDocument.defaultView?to.ownerDocument.defaultView:_window}}var Async=function(){function eo(to,ro){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=to||null,this._onErrorHandler=ro,this._noop=function(){}}return eo.prototype.dispose=function(){var to;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(to in this._timeoutIds)this._timeoutIds.hasOwnProperty(to)&&this.clearTimeout(parseInt(to,10));this._timeoutIds=null}if(this._immediateIds){for(to in this._immediateIds)this._immediateIds.hasOwnProperty(to)&&this.clearImmediate(parseInt(to,10));this._immediateIds=null}if(this._intervalIds){for(to in this._intervalIds)this._intervalIds.hasOwnProperty(to)&&this.clearInterval(parseInt(to,10));this._intervalIds=null}if(this._animationFrameIds){for(to in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(to)&&this.cancelAnimationFrame(parseInt(to,10));this._animationFrameIds=null}},eo.prototype.setTimeout=function(to,ro){var no=this,oo=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),oo=setTimeout(function(){try{no._timeoutIds&&delete no._timeoutIds[oo],to.apply(no._parent)}catch(io){no._logError(io)}},ro),this._timeoutIds[oo]=!0),oo},eo.prototype.clearTimeout=function(to){this._timeoutIds&&this._timeoutIds[to]&&(clearTimeout(to),delete this._timeoutIds[to])},eo.prototype.setImmediate=function(to,ro){var no=this,oo=0,io=getWindow(ro);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});var so=function(){try{no._immediateIds&&delete no._immediateIds[oo],to.apply(no._parent)}catch(ao){no._logError(ao)}};oo=io.setTimeout(so,0),this._immediateIds[oo]=!0}return oo},eo.prototype.clearImmediate=function(to,ro){var no=getWindow(ro);this._immediateIds&&this._immediateIds[to]&&(no.clearTimeout(to),delete this._immediateIds[to])},eo.prototype.setInterval=function(to,ro){var no=this,oo=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),oo=setInterval(function(){try{to.apply(no._parent)}catch(io){no._logError(io)}},ro),this._intervalIds[oo]=!0),oo},eo.prototype.clearInterval=function(to){this._intervalIds&&this._intervalIds[to]&&(clearInterval(to),delete this._intervalIds[to])},eo.prototype.throttle=function(to,ro,no){var oo=this;if(this._isDisposed)return this._noop;var io=ro||0,so=!0,ao=!0,lo=0,uo,co,fo=null;no&&typeof no.leading=="boolean"&&(so=no.leading),no&&typeof no.trailing=="boolean"&&(ao=no.trailing);var ho=function(go){var vo=Date.now(),bo=vo-lo,xo=so?io-bo:io;return bo>=io&&(!go||so)?(lo=vo,fo&&(oo.clearTimeout(fo),fo=null),uo=to.apply(oo._parent,co)):fo===null&&ao&&(fo=oo.setTimeout(ho,xo)),uo},po=function(){for(var go=[],vo=0;vo=so&&(Oo=!0),co=Co);var Ao=Co-co,Ro=so-Ao,No=Co-fo,Mo=!1;return uo!==null&&(No>=uo&&go?Mo=!0:Ro=Math.min(Ro,uo-No)),Ao>=so||Mo||Oo?bo(Co):(go===null||!wo)&&lo&&(go=oo.setTimeout(xo,Ro)),ho},_o=function(){return!!go},Eo=function(){_o()&&vo(Date.now())},So=function(){return _o()&&bo(Date.now()),ho},To=function(){for(var wo=[],Co=0;Co-1)for(var so=ro.split(/[ ,]+/),ao=0;ao"u")){var to=eo;return to&&to.ownerDocument?to.ownerDocument:document}}var _scrollbarWidth,_bodyScrollDisabledCount=0,DisabledScrollClassName=mergeStyles$1({overflow:"hidden !important"}),DATA_IS_SCROLLABLE_ATTRIBUTE="data-is-scrollable",allowScrollOnElement=function(eo,to){if(eo){var ro=0,no=null,oo=function(so){so.targetTouches.length===1&&(ro=so.targetTouches[0].clientY)},io=function(so){if(so.targetTouches.length===1&&(so.stopPropagation(),!!no)){var ao=so.targetTouches[0].clientY-ro,lo=findScrollableParent(so.target);lo&&(no=lo),no.scrollTop===0&&ao>0&&so.preventDefault(),no.scrollHeight-Math.ceil(no.scrollTop)<=no.clientHeight&&ao<0&&so.preventDefault()}};to.on(eo,"touchstart",oo,{passive:!1}),to.on(eo,"touchmove",io,{passive:!1}),no=eo}},allowOverscrollOnElement=function(eo,to){if(eo){var ro=function(no){no.stopPropagation()};to.on(eo,"touchmove",ro,{passive:!1})}},_disableIosBodyScroll=function(eo){eo.preventDefault()};function disableBodyScroll(){var eo=getDocument();eo&&eo.body&&!_bodyScrollDisabledCount&&(eo.body.classList.add(DisabledScrollClassName),eo.body.addEventListener("touchmove",_disableIosBodyScroll,{passive:!1,capture:!1})),_bodyScrollDisabledCount++}function enableBodyScroll(){if(_bodyScrollDisabledCount>0){var eo=getDocument();eo&&eo.body&&_bodyScrollDisabledCount===1&&(eo.body.classList.remove(DisabledScrollClassName),eo.body.removeEventListener("touchmove",_disableIosBodyScroll)),_bodyScrollDisabledCount--}}function getScrollbarWidth(){if(_scrollbarWidth===void 0){var eo=document.createElement("div");eo.style.setProperty("width","100px"),eo.style.setProperty("height","100px"),eo.style.setProperty("overflow","scroll"),eo.style.setProperty("position","absolute"),eo.style.setProperty("top","-9999px"),document.body.appendChild(eo),_scrollbarWidth=eo.offsetWidth-eo.clientWidth,document.body.removeChild(eo)}return _scrollbarWidth}function findScrollableParent(eo){for(var to=eo,ro=getDocument(eo);to&&to!==ro.body;){if(to.getAttribute(DATA_IS_SCROLLABLE_ATTRIBUTE)==="true")return to;to=to.parentElement}for(to=eo;to&&to!==ro.body;){if(to.getAttribute(DATA_IS_SCROLLABLE_ATTRIBUTE)!=="false"){var no=getComputedStyle(to),oo=no?no.getPropertyValue("overflow-y"):"";if(oo&&(oo==="scroll"||oo==="auto"))return to}to=to.parentElement}return(!to||to===ro.body)&&(to=getWindow(eo)),to}var _warningCallback=void 0;function warn(eo){console&&console.warn&&console.warn(eo)}var GLOBAL_SETTINGS_PROP_NAME="__globalSettings__",CALLBACK_STATE_PROP_NAME="__callbacks__",_counter=0,GlobalSettings=function(){function eo(){}return eo.getValue=function(to,ro){var no=_getGlobalSettings();return no[to]===void 0&&(no[to]=typeof ro=="function"?ro():ro),no[to]},eo.setValue=function(to,ro){var no=_getGlobalSettings(),oo=no[CALLBACK_STATE_PROP_NAME],io=no[to];if(ro!==io){no[to]=ro;var so={oldValue:io,value:ro,key:to};for(var ao in oo)oo.hasOwnProperty(ao)&&oo[ao](so)}return ro},eo.addChangeListener=function(to){var ro=to.__id__,no=_getCallbacks();ro||(ro=to.__id__=String(_counter++)),no[ro]=to},eo.removeChangeListener=function(to){var ro=_getCallbacks();delete ro[to.__id__]},eo}();function _getGlobalSettings(){var eo,to=getWindow(),ro=to||{};return ro[GLOBAL_SETTINGS_PROP_NAME]||(ro[GLOBAL_SETTINGS_PROP_NAME]=(eo={},eo[CALLBACK_STATE_PROP_NAME]={},eo)),ro[GLOBAL_SETTINGS_PROP_NAME]}function _getCallbacks(){var eo=_getGlobalSettings();return eo[CALLBACK_STATE_PROP_NAME]}var KeyCodes$1={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},Rectangle=function(){function eo(to,ro,no,oo){to===void 0&&(to=0),ro===void 0&&(ro=0),no===void 0&&(no=0),oo===void 0&&(oo=0),this.top=no,this.bottom=oo,this.left=to,this.right=ro}return Object.defineProperty(eo.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),eo.prototype.equals=function(to){return parseFloat(this.top.toFixed(4))===parseFloat(to.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(to.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(to.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(to.right.toFixed(4))},eo}();function appendFunction(eo){for(var to=[],ro=1;ro-1&&oo._virtual.children.splice(io,1)}ro._virtual.parent=no||void 0,no&&(no._virtual||(no._virtual={children:[]}),no._virtual.children.push(ro))}var IS_FOCUSABLE_ATTRIBUTE$1="data-is-focusable",IS_VISIBLE_ATTRIBUTE="data-is-visible",FOCUSZONE_ID_ATTRIBUTE$1="data-focuszone-id",FOCUSZONE_SUB_ATTRIBUTE="data-is-sub-focuszone";function getFirstFocusable(eo,to,ro){return getNextElement(eo,to,!0,!1,!1,ro)}function getLastFocusable(eo,to,ro){return getPreviousElement(eo,to,!0,!1,!0,ro)}function getFirstTabbable(eo,to,ro,no){return no===void 0&&(no=!0),getNextElement(eo,to,no,!1,!1,ro,!1,!0)}function getLastTabbable(eo,to,ro,no){return no===void 0&&(no=!0),getPreviousElement(eo,to,no,!1,!0,ro,!1,!0)}function focusFirstChild(eo,to){var ro=getNextElement(eo,eo,!0,!1,!1,!0,void 0,void 0,to);return ro?(focusAsync(ro),!0):!1}function getPreviousElement(eo,to,ro,no,oo,io,so,ao){if(!to||!so&&to===eo)return null;var lo=isElementVisible(to);if(oo&&lo&&(io||!(isElementFocusZone(to)||isElementFocusSubZone(to)))){var uo=getPreviousElement(eo,to.lastElementChild,!0,!0,!0,io,so,ao);if(uo){if(ao&&isElementTabbable(uo,!0)||!ao)return uo;var co=getPreviousElement(eo,uo.previousElementSibling,!0,!0,!0,io,so,ao);if(co)return co;for(var fo=uo.parentElement;fo&&fo!==to;){var ho=getPreviousElement(eo,fo.previousElementSibling,!0,!0,!0,io,so,ao);if(ho)return ho;fo=fo.parentElement}}}if(ro&&lo&&isElementTabbable(to,ao))return to;var po=getPreviousElement(eo,to.previousElementSibling,!0,!0,!0,io,so,ao);return po||(no?null:getPreviousElement(eo,to.parentElement,!0,!1,!1,io,so,ao))}function getNextElement(eo,to,ro,no,oo,io,so,ao,lo){if(!to||to===eo&&oo&&!so)return null;var uo=lo?isElementVisibleAndNotHidden:isElementVisible,co=uo(to);if(ro&&co&&isElementTabbable(to,ao))return to;if(!oo&&co&&(io||!(isElementFocusZone(to)||isElementFocusSubZone(to)))){var fo=getNextElement(eo,to.firstElementChild,!0,!0,!1,io,so,ao,lo);if(fo)return fo}if(to===eo)return null;var ho=getNextElement(eo,to.nextElementSibling,!0,!0,!1,io,so,ao,lo);return ho||(no?null:getNextElement(eo,to.parentElement,!1,!1,!0,io,so,ao,lo))}function isElementVisible(eo){if(!eo||!eo.getAttribute)return!1;var to=eo.getAttribute(IS_VISIBLE_ATTRIBUTE);return to!=null?to==="true":eo.offsetHeight!==0||eo.offsetParent!==null||eo.isVisible===!0}function isElementVisibleAndNotHidden(eo){return!!eo&&isElementVisible(eo)&&!eo.hidden&&window.getComputedStyle(eo).visibility!=="hidden"}function isElementTabbable(eo,to){if(!eo||eo.disabled)return!1;var ro=0,no=null;eo&&eo.getAttribute&&(no=eo.getAttribute("tabIndex"),no&&(ro=parseInt(no,10)));var oo=eo.getAttribute?eo.getAttribute(IS_FOCUSABLE_ATTRIBUTE$1):null,io=no!==null&&ro>=0,so=!!eo&&oo!=="false"&&(eo.tagName==="A"||eo.tagName==="BUTTON"||eo.tagName==="INPUT"||eo.tagName==="TEXTAREA"||eo.tagName==="SELECT"||oo==="true"||io);return to?ro!==-1&&so:so}function isElementFocusZone(eo){return!!(eo&&eo.getAttribute&&eo.getAttribute(FOCUSZONE_ID_ATTRIBUTE$1))}function isElementFocusSubZone(eo){return!!(eo&&eo.getAttribute&&eo.getAttribute(FOCUSZONE_SUB_ATTRIBUTE)==="true")}function doesElementContainFocus(eo){var to=getDocument(eo),ro=to&&to.activeElement;return!!(ro&&elementContains(eo,ro))}function shouldWrapFocus(eo,to){return elementContainsAttribute(eo,to)!=="true"}var animationId=void 0;function focusAsync(eo){if(eo){var to=getWindow(eo);to&&(animationId!==void 0&&to.cancelAnimationFrame(animationId),animationId=to.requestAnimationFrame(function(){eo&&eo.focus(),animationId=void 0}))}}function getFocusableByIndexPath(eo,to){for(var ro=eo,no=0,oo=to;no(eo.cacheSize||MAX_CACHE_COUNT)){var po=getWindow();!((lo=po==null?void 0:po.FabricConfig)===null||lo===void 0)&&lo.enableClassNameCacheFullWarning&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(ro,"/").concat(no,".")),console.trace()),to.clear(),ro=0,eo.disableCaching=!0}return uo[retVal]};return io}function _traverseEdge(eo,to){return to=_normalizeValue(to),eo.has(to)||eo.set(to,new Map),eo.get(to)}function _traverseMap(eo,to){if(typeof to=="function"){var ro=to.__cachedInputs__;if(ro)for(var no=0,oo=to.__cachedInputs__;no"u"?null:WeakMap;function resetMemoizations(){_resetCounter++}function memoizeFunction(eo,to,ro){if(to===void 0&&(to=100),ro===void 0&&(ro=!1),!_weakMap)return eo;if(!_initializedStylesheetResets$1){var no=Stylesheet$1.getInstance();no&&no.onReset&&Stylesheet$1.getInstance().onReset(resetMemoizations),_initializedStylesheetResets$1=!0}var oo,io=0,so=_resetCounter;return function(){for(var lo=[],uo=0;uo0&&io>to)&&(oo=_createNode(),io=0,so=_resetCounter),co=oo;for(var fo=0;fo=0||lo.indexOf("data-")===0||lo.indexOf("aria-")===0;uo&&(!ro||(ro==null?void 0:ro.indexOf(lo))===-1)&&(oo[lo]=eo[lo])}return oo}function initializeComponentRef(eo){extendComponent(eo,{componentDidMount:_onMount,componentDidUpdate:_onUpdate,componentWillUnmount:_onUnmount})}function _onMount(){_setComponentRef(this.props.componentRef,this)}function _onUpdate(eo){eo.componentRef!==this.props.componentRef&&(_setComponentRef(eo.componentRef,null),_setComponentRef(this.props.componentRef,this))}function _onUnmount(){_setComponentRef(this.props.componentRef,null)}function _setComponentRef(eo,to){eo&&(typeof eo=="object"?eo.current=to:typeof eo=="function"&&eo(to))}var _a$9,DirectionalKeyCodes=(_a$9={},_a$9[KeyCodes$1.up]=1,_a$9[KeyCodes$1.down]=1,_a$9[KeyCodes$1.left]=1,_a$9[KeyCodes$1.right]=1,_a$9[KeyCodes$1.home]=1,_a$9[KeyCodes$1.end]=1,_a$9[KeyCodes$1.tab]=1,_a$9[KeyCodes$1.pageUp]=1,_a$9[KeyCodes$1.pageDown]=1,_a$9);function isDirectionalKeyCode(eo){return!!DirectionalKeyCodes[eo]}var IsFocusVisibleClassName="ms-Fabric--isFocusVisible",IsFocusHiddenClassName="ms-Fabric--isFocusHidden";function updateClassList(eo,to){eo&&(eo.classList.add(to?IsFocusVisibleClassName:IsFocusHiddenClassName),eo.classList.remove(to?IsFocusHiddenClassName:IsFocusVisibleClassName))}function setFocusVisibility(eo,to,ro){var no;ro?ro.forEach(function(oo){return updateClassList(oo.current,eo)}):updateClassList((no=getWindow(to))===null||no===void 0?void 0:no.document.body,eo)}var mountCounters=new WeakMap,callbackMap=new WeakMap;function setMountCounters(eo,to){var ro,no=mountCounters.get(eo);return no?ro=no+to:ro=1,mountCounters.set(eo,ro),ro}function setCallbackMap(eo){var to=callbackMap.get(eo);if(to)return to;var ro=function(so){return _onMouseDown(so,eo.registeredProviders)},no=function(so){return _onPointerDown(so,eo.registeredProviders)},oo=function(so){return _onKeyDown(so,eo.registeredProviders)},io=function(so){return _onKeyUp(so,eo.registeredProviders)};return to={onMouseDown:ro,onPointerDown:no,onKeyDown:oo,onKeyUp:io},callbackMap.set(eo,to),to}var FocusRectsContext=reactExports.createContext(void 0);function useFocusRects(eo){var to=reactExports.useContext(FocusRectsContext);reactExports.useEffect(function(){var ro,no,oo,io,so=getWindow(eo==null?void 0:eo.current);if(!(!so||((ro=so.FabricConfig)===null||ro===void 0?void 0:ro.disableFocusRects)===!0)){var ao=so,lo,uo,co,fo;if(!((no=to==null?void 0:to.providerRef)===null||no===void 0)&&no.current&&(!((io=(oo=to==null?void 0:to.providerRef)===null||oo===void 0?void 0:oo.current)===null||io===void 0)&&io.addEventListener)){ao=to.providerRef.current;var ho=setCallbackMap(to);lo=ho.onMouseDown,uo=ho.onPointerDown,co=ho.onKeyDown,fo=ho.onKeyUp}else lo=_onMouseDown,uo=_onPointerDown,co=_onKeyDown,fo=_onKeyUp;var po=setMountCounters(ao,1);return po<=1&&(ao.addEventListener("mousedown",lo,!0),ao.addEventListener("pointerdown",uo,!0),ao.addEventListener("keydown",co,!0),ao.addEventListener("keyup",fo,!0)),function(){var go;!so||((go=so.FabricConfig)===null||go===void 0?void 0:go.disableFocusRects)===!0||(po=setMountCounters(ao,-1),po===0&&(ao.removeEventListener("mousedown",lo,!0),ao.removeEventListener("pointerdown",uo,!0),ao.removeEventListener("keydown",co,!0),ao.removeEventListener("keyup",fo,!0)))}}},[to,eo])}var FocusRects=function(eo){return useFocusRects(eo.rootRef),null};function _onMouseDown(eo,to){setFocusVisibility(!1,eo.target,to)}function _onPointerDown(eo,to){eo.pointerType!=="mouse"&&setFocusVisibility(!1,eo.target,to)}function _onKeyDown(eo,to){isDirectionalKeyCode(eo.which)&&setFocusVisibility(!0,eo.target,to)}function _onKeyUp(eo,to){isDirectionalKeyCode(eo.which)&&setFocusVisibility(!0,eo.target,to)}var FocusRectsProvider=function(eo){var to=eo.providerRef,ro=eo.layerRoot,no=reactExports.useState([])[0],oo=reactExports.useContext(FocusRectsContext),io=oo!==void 0&&!ro,so=reactExports.useMemo(function(){return io?void 0:{providerRef:to,registeredProviders:no,registerProvider:function(ao){no.push(ao),oo==null||oo.registerProvider(ao)},unregisterProvider:function(ao){oo==null||oo.unregisterProvider(ao);var lo=no.indexOf(ao);lo>=0&&no.splice(lo,1)}}},[to,no,oo,io]);return reactExports.useEffect(function(){if(so)return so.registerProvider(so.providerRef),function(){return so.unregisterProvider(so.providerRef)}},[so]),so?reactExports.createElement(FocusRectsContext.Provider,{value:so},eo.children):reactExports.createElement(reactExports.Fragment,null,eo.children)};function getItem(eo){var to=null;try{var ro=getWindow();to=ro?ro.localStorage.getItem(eo):null}catch{}return to}var _language,STORAGE_KEY="language";function getLanguage(eo){if(eo===void 0&&(eo="sessionStorage"),_language===void 0){var to=getDocument(),ro=eo==="localStorage"?getItem(STORAGE_KEY):eo==="sessionStorage"?getItem$1(STORAGE_KEY):void 0;ro&&(_language=ro),_language===void 0&&to&&(_language=to.documentElement.getAttribute("lang")),_language===void 0&&(_language="en")}return _language}function merge$3(eo){for(var to=[],ro=1;ro-1;eo[no]=io?oo:_merge(eo[no]||{},oo,ro)}else eo[no]=oo}return ro.pop(),eo}var isIOS=function(){return!window||!window.navigator||!window.navigator.userAgent?!1:/iPad|iPhone|iPod/i.test(window.navigator.userAgent)},tagsToIgnore=["TEMPLATE","STYLE","SCRIPT"];function modalize(eo){var to=getDocument(eo);if(!to)return function(){};for(var ro=[];eo!==to.body&&eo.parentElement;){for(var no=0,oo=eo.parentElement.children;no"u"||eo){var ro=getWindow(),no=(to=ro==null?void 0:ro.navigator)===null||to===void 0?void 0:to.userAgent;isMacResult=!!no&&no.indexOf("Macintosh")!==-1}return!!isMacResult}function createComposedRenderFunction(eo){var to=createMemoizer(function(ro){var no=createMemoizer(function(oo){return function(io){return ro(io,oo)}});return function(oo,io){return eo(oo,io?no(io):ro)}});return to}var memoizer=createMemoizer(createComposedRenderFunction);function composeRenderFunction(eo,to){return memoizer(eo)(to)}var DefaultFields=["theme","styles"];function styled(eo,to,ro,no,oo){no=no||{scope:"",fields:void 0};var io=no.scope,so=no.fields,ao=so===void 0?DefaultFields:so,lo=reactExports.forwardRef(function(co,fo){var ho=reactExports.useRef(),po=useCustomizationSettings(ao,io),go=po.styles;po.dir;var vo=__rest$1(po,["styles","dir"]),bo=ro?ro(co):void 0,xo=ho.current&&ho.current.__cachedInputs__||[],_o=co.styles;if(!ho.current||go!==xo[1]||_o!==xo[2]){var Eo=function(So){return concatStyleSetsWithProps(So,to,go,_o)};Eo.__cachedInputs__=[to,go,_o],Eo.__noStyleOverride__=!go&&!_o,ho.current=Eo}return reactExports.createElement(eo,__assign$4({ref:fo},vo,bo,co,{styles:ho.current}))});lo.displayName="Styled".concat(eo.displayName||eo.name);var uo=oo?reactExports.memo(lo):lo;return lo.displayName&&(uo.displayName=lo.displayName),uo}function getPropsWithDefaults(eo,to){for(var ro=__assign$4({},to),no=0,oo=Object.keys(eo);nono?" (+ ".concat(_missingIcons.length-no," more)"):"")),_missingIconsTimer=void 0,_missingIcons=[]},ro)))}function makeSemanticColors(eo,to,ro,no,oo){oo===void 0&&(oo=!1);var io=__assign$4({primaryButtonBorder:"transparent",errorText:no?"#F1707B":"#a4262c",messageText:no?"#F3F2F1":"#323130",messageLink:no?"#6CB8F6":"#005A9E",messageLinkHovered:no?"#82C7FF":"#004578",infoIcon:no?"#C8C6C4":"#605e5c",errorIcon:no?"#F1707B":"#A80000",blockingIcon:no?"#442726":"#FDE7E9",warningIcon:no?"#C8C6C4":"#797775",severeWarningIcon:no?"#FCE100":"#D83B01",successIcon:no?"#92C353":"#107C10",infoBackground:no?"#323130":"#f3f2f1",errorBackground:no?"#442726":"#FDE7E9",blockingBackground:no?"#442726":"#FDE7E9",warningBackground:no?"#433519":"#FFF4CE",severeWarningBackground:no?"#4F2A0F":"#FED9CC",successBackground:no?"#393D1B":"#DFF6DD",warningHighlight:no?"#fff100":"#ffb900",successText:no?"#92c353":"#107C10"},ro),so=getSemanticColors(eo,to,io,no);return _fixDeprecatedSlots(so,oo)}function getSemanticColors(eo,to,ro,no,oo){var io={},so=eo||{},ao=so.white,lo=so.black,uo=so.themePrimary,co=so.themeDark,fo=so.themeDarker,ho=so.themeDarkAlt,po=so.themeLighter,go=so.neutralLight,vo=so.neutralLighter,bo=so.neutralDark,xo=so.neutralQuaternary,_o=so.neutralQuaternaryAlt,Eo=so.neutralPrimary,So=so.neutralSecondary,To=so.neutralSecondaryAlt,wo=so.neutralTertiary,Co=so.neutralTertiaryAlt,Oo=so.neutralLighterAlt,Ao=so.accent;return ao&&(io.bodyBackground=ao,io.bodyFrameBackground=ao,io.accentButtonText=ao,io.buttonBackground=ao,io.primaryButtonText=ao,io.primaryButtonTextHovered=ao,io.primaryButtonTextPressed=ao,io.inputBackground=ao,io.inputForegroundChecked=ao,io.listBackground=ao,io.menuBackground=ao,io.cardStandoutBackground=ao),lo&&(io.bodyTextChecked=lo,io.buttonTextCheckedHovered=lo),uo&&(io.link=uo,io.primaryButtonBackground=uo,io.inputBackgroundChecked=uo,io.inputIcon=uo,io.inputFocusBorderAlt=uo,io.menuIcon=uo,io.menuHeader=uo,io.accentButtonBackground=uo),co&&(io.primaryButtonBackgroundPressed=co,io.inputBackgroundCheckedHovered=co,io.inputIconHovered=co),fo&&(io.linkHovered=fo),ho&&(io.primaryButtonBackgroundHovered=ho),po&&(io.inputPlaceholderBackgroundChecked=po),go&&(io.bodyBackgroundChecked=go,io.bodyFrameDivider=go,io.bodyDivider=go,io.variantBorder=go,io.buttonBackgroundCheckedHovered=go,io.buttonBackgroundPressed=go,io.listItemBackgroundChecked=go,io.listHeaderBackgroundPressed=go,io.menuItemBackgroundPressed=go,io.menuItemBackgroundChecked=go),vo&&(io.bodyBackgroundHovered=vo,io.buttonBackgroundHovered=vo,io.buttonBackgroundDisabled=vo,io.buttonBorderDisabled=vo,io.primaryButtonBackgroundDisabled=vo,io.disabledBackground=vo,io.listItemBackgroundHovered=vo,io.listHeaderBackgroundHovered=vo,io.menuItemBackgroundHovered=vo),xo&&(io.primaryButtonTextDisabled=xo,io.disabledSubtext=xo),_o&&(io.listItemBackgroundCheckedHovered=_o),wo&&(io.disabledBodyText=wo,io.variantBorderHovered=(ro==null?void 0:ro.variantBorderHovered)||wo,io.buttonTextDisabled=wo,io.inputIconDisabled=wo,io.disabledText=wo),Eo&&(io.bodyText=Eo,io.actionLink=Eo,io.buttonText=Eo,io.inputBorderHovered=Eo,io.inputText=Eo,io.listText=Eo,io.menuItemText=Eo),Oo&&(io.bodyStandoutBackground=Oo,io.defaultStateBackground=Oo),bo&&(io.actionLinkHovered=bo,io.buttonTextHovered=bo,io.buttonTextChecked=bo,io.buttonTextPressed=bo,io.inputTextHovered=bo,io.menuItemTextHovered=bo),So&&(io.bodySubtext=So,io.focusBorder=So,io.inputBorder=So,io.smallInputBorder=So,io.inputPlaceholderText=So),To&&(io.buttonBorder=To),Co&&(io.disabledBodySubtext=Co,io.disabledBorder=Co,io.buttonBackgroundChecked=Co,io.menuDivider=Co),Ao&&(io.accentButtonBackground=Ao),to!=null&&to.elevation4&&(io.cardShadow=to.elevation4),!no&&(to!=null&&to.elevation8)?io.cardShadowHovered=to.elevation8:io.variantBorderHovered&&(io.cardShadowHovered="0 0 1px "+io.variantBorderHovered),io=__assign$4(__assign$4({},io),ro),io}function _fixDeprecatedSlots(eo,to){var ro="";return to===!0&&(ro=" /* @deprecated */"),eo.listTextColor=eo.listText+ro,eo.menuItemBackgroundChecked+=ro,eo.warningHighlight+=ro,eo.warningText=eo.messageText+ro,eo.successText+=ro,eo}function mergeThemes(eo,to){var ro,no,oo;to===void 0&&(to={});var io=merge$3({},eo,to,{semanticColors:getSemanticColors(to.palette,to.effects,to.semanticColors,to.isInverted===void 0?eo.isInverted:to.isInverted)});if(!((ro=to.palette)===null||ro===void 0)&&ro.themePrimary&&!(!((no=to.palette)===null||no===void 0)&&no.accent)&&(io.palette.accent=to.palette.themePrimary),to.defaultFontStyle)for(var so=0,ao=Object.keys(io.fonts);so"u"?global:window,_styleNonce=_root&&_root.CSPSettings&&_root.CSPSettings.nonce,_themeState=initializeThemeState();function initializeThemeState(){var eo=_root.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};return eo.runState||(eo=__assign$3(__assign$3({},eo),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),eo.registeredThemableStyles||(eo=__assign$3(__assign$3({},eo),{registeredThemableStyles:[]})),_root.__themeState__=eo,eo}function applyThemableStyles(eo,to){_themeState.loadStyles?_themeState.loadStyles(resolveThemableArray(eo).styleString,eo):registerStyles$1(eo)}function loadTheme$1(eo){_themeState.theme=eo,reloadStyles()}function clearStyles(eo){eo===void 0&&(eo=3),(eo===3||eo===2)&&(clearStylesInternal(_themeState.registeredStyles),_themeState.registeredStyles=[]),(eo===3||eo===1)&&(clearStylesInternal(_themeState.registeredThemableStyles),_themeState.registeredThemableStyles=[])}function clearStylesInternal(eo){eo.forEach(function(to){var ro=to&&to.styleElement;ro&&ro.parentElement&&ro.parentElement.removeChild(ro)})}function reloadStyles(){if(_themeState.theme){for(var eo=[],to=0,ro=_themeState.registeredThemableStyles;to0&&(clearStyles(1),applyThemableStyles([].concat.apply([],eo)))}}function resolveThemableArray(eo){var to=_themeState.theme,ro=!1,no=(eo||[]).map(function(oo){var io=oo.theme;if(io){ro=!0;var so=to?to[io]:void 0,ao=oo.defaultValue||"inherit";return to&&!so&&console&&!(io in to)&&typeof DEBUG<"u"&&DEBUG&&console.warn('Theming value not provided for "'.concat(io,'". Falling back to "').concat(ao,'".')),so||ao}else return oo.rawString});return{styleString:no.join(""),themable:ro}}function registerStyles$1(eo){if(!(typeof document>"u")){var to=document.getElementsByTagName("head")[0],ro=document.createElement("style"),no=resolveThemableArray(eo),oo=no.styleString,io=no.themable;ro.setAttribute("data-load-themed-styles","true"),_styleNonce&&ro.setAttribute("nonce",_styleNonce),ro.appendChild(document.createTextNode(oo)),_themeState.perf.count++,to.appendChild(ro);var so=document.createEvent("HTMLEvents");so.initEvent("styleinsert",!0,!1),so.args={newStyle:ro},document.dispatchEvent(so);var ao={styleElement:ro,themableStyle:eo};io?_themeState.registeredThemableStyles.push(ao):_themeState.registeredStyles.push(ao)}}var _theme=createTheme$1({}),_onThemeChangeCallbacks=[],ThemeSettingName="theme";function initializeThemeInCustomizations(){var eo,to,ro,no=getWindow();!((to=no==null?void 0:no.FabricConfig)===null||to===void 0)&&to.legacyTheme?loadTheme(no.FabricConfig.legacyTheme):Customizations.getSettings([ThemeSettingName]).theme||(!((ro=no==null?void 0:no.FabricConfig)===null||ro===void 0)&&ro.theme&&(_theme=createTheme$1(no.FabricConfig.theme)),Customizations.applySettings((eo={},eo[ThemeSettingName]=_theme,eo)))}initializeThemeInCustomizations();function getTheme(eo){return eo===void 0&&(eo=!1),eo===!0&&(_theme=createTheme$1({},eo)),_theme}function loadTheme(eo,to){var ro;return to===void 0&&(to=!1),_theme=createTheme$1(eo,to),loadTheme$1(__assign$4(__assign$4(__assign$4(__assign$4({},_theme.palette),_theme.semanticColors),_theme.effects),_loadFonts(_theme))),Customizations.applySettings((ro={},ro[ThemeSettingName]=_theme,ro)),_onThemeChangeCallbacks.forEach(function(no){try{no(_theme)}catch{}}),_theme}function _loadFonts(eo){for(var to={},ro=0,no=Object.keys(eo.fonts);roto.bottom||eo.leftto.right)}function _getOutOfBoundsEdges(eo,to){var ro=[];return eo.topto.bottom&&ro.push(RectangleEdge.bottom),eo.leftto.right&&ro.push(RectangleEdge.right),ro}function _getEdgeValue(eo,to){return eo[RectangleEdge[to]]}function _setEdgeValue(eo,to,ro){return eo[RectangleEdge[to]]=ro,eo}function _getCenterValue(eo,to){var ro=_getFlankingEdges(to);return(_getEdgeValue(eo,ro.positiveEdge)+_getEdgeValue(eo,ro.negativeEdge))/2}function _getRelativeEdgeValue(eo,to){return eo>0?to:to*-1}function _getRelativeRectEdgeValue(eo,to){return _getRelativeEdgeValue(eo,_getEdgeValue(to,eo))}function _getRelativeEdgeDifference(eo,to,ro){var no=_getEdgeValue(eo,ro)-_getEdgeValue(to,ro);return _getRelativeEdgeValue(ro,no)}function _moveEdge(eo,to,ro,no){no===void 0&&(no=!0);var oo=_getEdgeValue(eo,to)-ro,io=_setEdgeValue(eo,to,ro);return no&&(io=_setEdgeValue(eo,to*-1,_getEdgeValue(eo,to*-1)-oo)),io}function _alignEdges(eo,to,ro,no){return no===void 0&&(no=0),_moveEdge(eo,ro,_getEdgeValue(to,ro)+_getRelativeEdgeValue(ro,no))}function _alignOppositeEdges(eo,to,ro,no){no===void 0&&(no=0);var oo=ro*-1,io=_getRelativeEdgeValue(oo,no);return _moveEdge(eo,ro*-1,_getEdgeValue(to,ro)+io)}function _isEdgeInBounds(eo,to,ro){var no=_getRelativeRectEdgeValue(ro,eo);return no>_getRelativeRectEdgeValue(ro,to)}function _getOutOfBoundsDegree(eo,to){for(var ro=_getOutOfBoundsEdges(eo,to),no=0,oo=0,io=ro;oo=no}function _flipToFit(eo,to,ro,no,oo,io,so){oo===void 0&&(oo=!1),so===void 0&&(so=0);var ao=[RectangleEdge.left,RectangleEdge.right,RectangleEdge.bottom,RectangleEdge.top];getRTL$1()&&(ao[0]*=-1,ao[1]*=-1);for(var lo=eo,uo=no.targetEdge,co=no.alignmentEdge,fo,ho=uo,po=co,go=0;go<4;go++){if(_isEdgeInBounds(lo,ro,uo))return{elementRectangle:lo,targetEdge:uo,alignmentEdge:co};if(oo&&_canScrollResizeToFitEdge(to,ro,uo,io)){switch(uo){case RectangleEdge.bottom:lo.bottom=ro.bottom;break;case RectangleEdge.top:lo.top=ro.top;break}return{elementRectangle:lo,targetEdge:uo,alignmentEdge:co,forcedInBounds:!0}}else{var vo=_getOutOfBoundsDegree(lo,ro);(!fo||vo0&&(ao.indexOf(uo*-1)>-1?uo=uo*-1:(co=uo,uo=ao.slice(-1)[0]),lo=_estimatePosition(eo,to,{targetEdge:uo,alignmentEdge:co},so))}}return lo=_estimatePosition(eo,to,{targetEdge:ho,alignmentEdge:po},so),{elementRectangle:lo,targetEdge:ho,alignmentEdge:po}}function _flipAlignmentEdge(eo,to,ro,no){var oo=eo.alignmentEdge,io=eo.targetEdge,so=eo.elementRectangle,ao=oo*-1,lo=_estimatePosition(so,to,{targetEdge:io,alignmentEdge:ao},ro,no);return{elementRectangle:lo,targetEdge:io,alignmentEdge:ao}}function _adjustFitWithinBounds(eo,to,ro,no,oo,io,so,ao,lo){oo===void 0&&(oo=!1),so===void 0&&(so=0);var uo=no.alignmentEdge,co=no.alignTargetEdge,fo={elementRectangle:eo,targetEdge:no.targetEdge,alignmentEdge:uo};!ao&&!lo&&(fo=_flipToFit(eo,to,ro,no,oo,io,so));var ho=_getOutOfBoundsEdges(fo.elementRectangle,ro),po=ao?-fo.targetEdge:void 0;if(ho.length>0)if(co)if(fo.alignmentEdge&&ho.indexOf(fo.alignmentEdge*-1)>-1){var go=_flipAlignmentEdge(fo,to,so,lo);if(_isRectangleWithinBounds(go.elementRectangle,ro))return go;fo=_alignOutOfBoundsEdges(_getOutOfBoundsEdges(go.elementRectangle,ro),fo,ro,po)}else fo=_alignOutOfBoundsEdges(ho,fo,ro,po);else fo=_alignOutOfBoundsEdges(ho,fo,ro,po);return fo}function _alignOutOfBoundsEdges(eo,to,ro,no){for(var oo=0,io=eo;ooMath.abs(_getRelativeEdgeDifference(eo,ro,to*-1))?to*-1:to}function _isEdgeOnBounds(eo,to,ro){return ro!==void 0&&_getEdgeValue(eo,to)===_getEdgeValue(ro,to)}function _finalizeElementPosition(eo,to,ro,no,oo,io,so,ao){var lo={},uo=_getRectangleFromElement(to),co=io?ro:ro*-1,fo=oo||_getFlankingEdges(ro).positiveEdge;return(!so||_isEdgeOnBounds(eo,getOppositeEdge(fo),no))&&(fo=_finalizeReturnEdge(eo,fo,no)),lo[RectangleEdge[co]]=_getRelativeEdgeDifference(eo,uo,co),lo[RectangleEdge[fo]]=_getRelativeEdgeDifference(eo,uo,fo),ao&&(lo[RectangleEdge[co*-1]]=_getRelativeEdgeDifference(eo,uo,co*-1),lo[RectangleEdge[fo*-1]]=_getRelativeEdgeDifference(eo,uo,fo*-1)),lo}function _calculateActualBeakWidthInPixels(eo){return Math.sqrt(eo*eo*2)}function _getPositionData(eo,to,ro){if(eo===void 0&&(eo=DirectionalHint.bottomAutoEdge),ro)return{alignmentEdge:ro.alignmentEdge,isAuto:ro.isAuto,targetEdge:ro.targetEdge};var no=__assign$4({},DirectionalDictionary[eo]);return getRTL$1()?(no.alignmentEdge&&no.alignmentEdge%2===0&&(no.alignmentEdge=no.alignmentEdge*-1),to!==void 0?DirectionalDictionary[to]:no):no}function _getAlignmentData(eo,to,ro,no,oo){return eo.isAuto&&(eo.alignmentEdge=getClosestEdge(eo.targetEdge,to,ro)),eo.alignTargetEdge=oo,eo}function getClosestEdge(eo,to,ro){var no=_getCenterValue(to,eo),oo=_getCenterValue(ro,eo),io=_getFlankingEdges(eo),so=io.positiveEdge,ao=io.negativeEdge;return no<=oo?so:ao}function _positionElementWithinBounds(eo,to,ro,no,oo,io,so,ao,lo){io===void 0&&(io=!1);var uo=_estimatePosition(eo,to,no,oo,lo);return _isRectangleWithinBounds(uo,ro)?{elementRectangle:uo,targetEdge:no.targetEdge,alignmentEdge:no.alignmentEdge}:_adjustFitWithinBounds(uo,to,ro,no,io,so,oo,ao,lo)}function _finalizeBeakPosition(eo,to,ro){var no=eo.targetEdge*-1,oo=new Rectangle(0,eo.elementRectangle.width,0,eo.elementRectangle.height),io={},so=_finalizeReturnEdge(eo.elementRectangle,eo.alignmentEdge?eo.alignmentEdge:_getFlankingEdges(no).positiveEdge,ro),ao=_getRelativeEdgeDifference(eo.elementRectangle,eo.targetRectangle,no),lo=ao>Math.abs(_getEdgeValue(to,no));return io[RectangleEdge[no]]=_getEdgeValue(to,no),io[RectangleEdge[so]]=_getRelativeEdgeDifference(to,oo,so),{elementPosition:__assign$4({},io),closestEdge:getClosestEdge(eo.targetEdge,to,oo),targetEdge:no,hideBeak:!lo}}function _positionBeak(eo,to){var ro=to.targetRectangle,no=_getFlankingEdges(to.targetEdge),oo=no.positiveEdge,io=no.negativeEdge,so=_getCenterValue(ro,to.targetEdge),ao=new Rectangle(eo/2,to.elementRectangle.width-eo/2,eo/2,to.elementRectangle.height-eo/2),lo=new Rectangle(0,eo,0,eo);return lo=_moveEdge(lo,to.targetEdge*-1,-eo/2),lo=_centerEdgeToPoint(lo,to.targetEdge*-1,so-_getRelativeRectEdgeValue(oo,to.elementRectangle)),_isEdgeInBounds(lo,ao,oo)?_isEdgeInBounds(lo,ao,io)||(lo=_alignEdges(lo,ao,io)):lo=_alignEdges(lo,ao,oo),lo}function _getRectangleFromElement(eo){var to=eo.getBoundingClientRect();return new Rectangle(to.left,to.right,to.top,to.bottom)}function _getRectangleFromIRect(eo){return new Rectangle(eo.left,eo.right,eo.top,eo.bottom)}function _getTargetRect(eo,to){var ro;if(to){if(to.preventDefault){var no=to;ro=new Rectangle(no.clientX,no.clientX,no.clientY,no.clientY)}else if(to.getBoundingClientRect)ro=_getRectangleFromElement(to);else{var oo=to,io=oo.left||oo.x,so=oo.top||oo.y,ao=oo.right||io,lo=oo.bottom||so;ro=new Rectangle(io,ao,so,lo)}if(!_isRectangleWithinBounds(ro,eo))for(var uo=_getOutOfBoundsEdges(ro,eo),co=0,fo=uo;co=no&&oo&&uo.top<=oo&&uo.bottom>=oo&&(so={top:uo.top,left:uo.left,right:uo.right,bottom:uo.bottom,width:uo.width,height:uo.height})}return so}function getBoundsFromTargetWindow(eo,to){return _getBoundsFromTargetWindow(eo,to)}function calculateGapSpace(eo,to,ro){return _calculateGapSpace(eo,to,ro)}function getRectangleFromTarget(eo){return _getRectangleFromTarget(eo)}function useAsync(){var eo=reactExports.useRef();return eo.current||(eo.current=new Async),reactExports.useEffect(function(){return function(){var to;(to=eo.current)===null||to===void 0||to.dispose(),eo.current=void 0}},[]),eo.current}function useConst$1(eo){var to=reactExports.useRef();return to.current===void 0&&(to.current={value:typeof eo=="function"?eo():eo}),to.current.value}function useBoolean(eo){var to=reactExports.useState(eo),ro=to[0],no=to[1],oo=useConst$1(function(){return function(){no(!0)}}),io=useConst$1(function(){return function(){no(!1)}}),so=useConst$1(function(){return function(){no(function(ao){return!ao})}});return[ro,{setTrue:oo,setFalse:io,toggle:so}]}function useEventCallback$2(eo){var to=reactExports.useRef(function(){throw new Error("Cannot call an event handler while rendering")});return useIsomorphicLayoutEffect(function(){to.current=eo},[eo]),useConst$1(function(){return function(){for(var ro=[],no=0;no0&&uo>lo&&(ao=uo-lo>1)}oo!==ao&&io(ao)}}),function(){return ro.dispose()}}),oo}function defaultFocusRestorer(eo){var to=eo.originalElement,ro=eo.containsFocus;to&&ro&&to!==getWindow()&&setTimeout(function(){var no;(no=to.focus)===null||no===void 0||no.call(to)},0)}function useRestoreFocus(eo,to){var ro=eo.onRestoreFocus,no=ro===void 0?defaultFocusRestorer:ro,oo=reactExports.useRef(),io=reactExports.useRef(!1);reactExports.useEffect(function(){return oo.current=getDocument().activeElement,doesElementContainFocus(to.current)&&(io.current=!0),function(){var so;no==null||no({originalElement:oo.current,containsFocus:io.current,documentContainsFocus:((so=getDocument())===null||so===void 0?void 0:so.hasFocus())||!1}),oo.current=void 0}},[]),useOnEvent(to,"focus",reactExports.useCallback(function(){io.current=!0},[]),!0),useOnEvent(to,"blur",reactExports.useCallback(function(so){to.current&&so.relatedTarget&&!to.current.contains(so.relatedTarget)&&(io.current=!1)},[]),!0)}function useHideSiblingNodes(eo,to){var ro=String(eo["aria-modal"]).toLowerCase()==="true"&&eo.enableAriaHiddenSiblings;reactExports.useEffect(function(){if(ro&&to.current){var no=modalize(to.current);return no}},[to,ro])}var Popup=reactExports.forwardRef(function(eo,to){var ro=getPropsWithDefaults({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},eo),no=reactExports.useRef(),oo=useMergedRefs(no,to);useHideSiblingNodes(ro,no),useRestoreFocus(ro,no);var io=ro.role,so=ro.className,ao=ro.ariaLabel,lo=ro.ariaLabelledBy,uo=ro.ariaDescribedBy,co=ro.style,fo=ro.children,ho=ro.onDismiss,po=useScrollbarAsync(ro,no),go=reactExports.useCallback(function(bo){switch(bo.which){case KeyCodes$1.escape:ho&&(ho(bo),bo.preventDefault(),bo.stopPropagation());break}},[ho]),vo=useWindow();return useOnEvent(vo,"keydown",go),reactExports.createElement("div",__assign$4({ref:oo},getNativeProps(ro,divProperties),{className:so,role:io,"aria-label":ao,"aria-labelledby":lo,"aria-describedby":uo,onKeyDown:go,style:__assign$4({overflowY:po?"scroll":void 0,outline:"none"},co)}),fo)});Popup.displayName="Popup";var _a$7,COMPONENT_NAME$2="CalloutContentBase",ANIMATIONS=(_a$7={},_a$7[RectangleEdge.top]=AnimationClassNames.slideUpIn10,_a$7[RectangleEdge.bottom]=AnimationClassNames.slideDownIn10,_a$7[RectangleEdge.left]=AnimationClassNames.slideLeftIn10,_a$7[RectangleEdge.right]=AnimationClassNames.slideRightIn10,_a$7),BEAK_ORIGIN_POSITION={top:0,left:0},OFF_SCREEN_STYLE={opacity:0,filter:"opacity(0)",pointerEvents:"none"},ARIA_ROLE_ATTRIBUTES=["role","aria-roledescription"],DEFAULT_PROPS$3={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:DirectionalHint.bottomAutoEdge},getClassNames$9=classNamesFunction({disableCaching:!0});function useBounds(eo,to,ro){var no=eo.bounds,oo=eo.minPagePadding,io=oo===void 0?DEFAULT_PROPS$3.minPagePadding:oo,so=eo.target,ao=reactExports.useState(!1),lo=ao[0],uo=ao[1],co=reactExports.useRef(),fo=reactExports.useCallback(function(){if(!co.current||lo){var po=typeof no=="function"?ro?no(so,ro):void 0:no;!po&&ro&&(po=getBoundsFromTargetWindow(to.current,ro),po={top:po.top+io,left:po.left+io,right:po.right-io,bottom:po.bottom-io,width:po.width-io*2,height:po.height-io*2}),co.current=po,lo&&uo(!1)}return co.current},[no,io,so,to,ro,lo]),ho=useAsync();return useOnEvent(ro,"resize",ho.debounce(function(){uo(!0)},500,{leading:!0})),fo}function useMaxHeight(eo,to,ro,no){var oo,io=eo.calloutMaxHeight,so=eo.finalHeight,ao=eo.directionalHint,lo=eo.directionalHintFixed,uo=eo.hidden,co=eo.gapSpace,fo=eo.beakWidth,ho=eo.isBeakVisible,po=reactExports.useState(),go=po[0],vo=po[1],bo=(oo=no==null?void 0:no.elementPosition)!==null&&oo!==void 0?oo:{},xo=bo.top,_o=bo.bottom,Eo=ro!=null&&ro.current?getRectangleFromTarget(ro.current):void 0;return reactExports.useEffect(function(){var So,To=(So=to())!==null&&So!==void 0?So:{},wo=To.top,Co=To.bottom,Oo;(no==null?void 0:no.targetEdge)===RectangleEdge.top&&(Eo!=null&&Eo.top)&&(Co=Eo.top-calculateGapSpace(ho,fo,co)),typeof xo=="number"&&Co?Oo=Co-xo:typeof _o=="number"&&typeof wo=="number"&&Co&&(Oo=Co-wo-_o),!io&&!uo||io&&Oo&&io>Oo?vo(Oo):vo(io||void 0)},[_o,io,so,ao,lo,to,uo,no,xo,co,fo,ho,Eo]),go}function usePositions(eo,to,ro,no,oo,io){var so=reactExports.useState(),ao=so[0],lo=so[1],uo=reactExports.useRef(0),co=reactExports.useRef(),fo=useAsync(),ho=eo.hidden,po=eo.target,go=eo.finalHeight,vo=eo.calloutMaxHeight,bo=eo.onPositioned,xo=eo.directionalHint,_o=eo.hideOverflow,Eo=eo.preferScrollResizePositioning,So=useWindow(),To=reactExports.useRef(),wo;To.current!==io.current&&(To.current=io.current,wo=io.current?So==null?void 0:So.getComputedStyle(io.current):void 0);var Co=wo==null?void 0:wo.overflowY;return reactExports.useEffect(function(){if(ho)lo(void 0),uo.current=0;else{var Oo=fo.requestAnimationFrame(function(){var Ao,Ro;if(to.current&&ro){var No=__assign$4(__assign$4({},eo),{target:no.current,bounds:oo()}),Mo=ro.cloneNode(!0);Mo.style.maxHeight=vo?"".concat(vo):"",Mo.style.visibility="hidden",(Ao=ro.parentElement)===null||Ao===void 0||Ao.appendChild(Mo);var Do=co.current===po?ao:void 0,jo=_o||Co==="clip"||Co==="hidden",Fo=Eo&&!jo,$o=go?positionCard(No,to.current,Mo,Do):positionCallout(No,to.current,Mo,Do,Fo);(Ro=ro.parentElement)===null||Ro===void 0||Ro.removeChild(Mo),!ao&&$o||ao&&$o&&!arePositionsEqual(ao,$o)&&uo.current<5?(uo.current++,lo($o)):uo.current>0&&(uo.current=0,bo==null||bo(ao))}},ro);return co.current=po,function(){fo.cancelAnimationFrame(Oo),co.current=void 0}}},[ho,xo,fo,ro,vo,to,no,go,oo,bo,ao,eo,po,_o,Eo,Co]),ao}function useAutoFocus(eo,to,ro){var no=eo.hidden,oo=eo.setInitialFocus,io=useAsync(),so=!!to;reactExports.useEffect(function(){if(!no&&oo&&so&&ro){var ao=io.requestAnimationFrame(function(){return focusFirstChild(ro)},ro);return function(){return io.cancelAnimationFrame(ao)}}},[no,so,io,ro,oo])}function useDismissHandlers(eo,to,ro,no,oo){var io=eo.hidden,so=eo.onDismiss,ao=eo.preventDismissOnScroll,lo=eo.preventDismissOnResize,uo=eo.preventDismissOnLostFocus,co=eo.dismissOnTargetClick,fo=eo.shouldDismissOnWindowFocus,ho=eo.preventDismissOnEvent,po=reactExports.useRef(!1),go=useAsync(),vo=useConst$1([function(){po.current=!0},function(){po.current=!1}]),bo=!!to;return reactExports.useEffect(function(){var xo=function(Co){bo&&!ao&&So(Co)},_o=function(Co){!lo&&!(ho&&ho(Co))&&(so==null||so(Co))},Eo=function(Co){uo||So(Co)},So=function(Co){var Oo=Co.composedPath?Co.composedPath():[],Ao=Oo.length>0?Oo[0]:Co.target,Ro=ro.current&&!elementContains(ro.current,Ao);if(Ro&&po.current){po.current=!1;return}if(!no.current&&Ro||Co.target!==oo&&Ro&&(!no.current||"stopPropagation"in no.current||co||Ao!==no.current&&!elementContains(no.current,Ao))){if(ho&&ho(Co))return;so==null||so(Co)}},To=function(Co){fo&&(ho&&!ho(Co)||!ho&&!uo)&&!(oo!=null&&oo.document.hasFocus())&&Co.relatedTarget===null&&(so==null||so(Co))},wo=new Promise(function(Co){go.setTimeout(function(){if(!io&&oo){var Oo=[on$1(oo,"scroll",xo,!0),on$1(oo,"resize",_o,!0),on$1(oo.document.documentElement,"focus",Eo,!0),on$1(oo.document.documentElement,"click",Eo,!0),on$1(oo,"blur",To,!0)];Co(function(){Oo.forEach(function(Ao){return Ao()})})}},0)});return function(){wo.then(function(Co){return Co()})}},[io,go,ro,no,oo,so,fo,co,uo,lo,ao,bo,ho]),vo}var CalloutContentBase=reactExports.memo(reactExports.forwardRef(function(eo,to){var ro=getPropsWithDefaults(DEFAULT_PROPS$3,eo),no=ro.styles,oo=ro.style,io=ro.ariaLabel,so=ro.ariaDescribedBy,ao=ro.ariaLabelledBy,lo=ro.className,uo=ro.isBeakVisible,co=ro.children,fo=ro.beakWidth,ho=ro.calloutWidth,po=ro.calloutMaxWidth,go=ro.calloutMinWidth,vo=ro.doNotLayer,bo=ro.finalHeight,xo=ro.hideOverflow,_o=xo===void 0?!!bo:xo,Eo=ro.backgroundColor,So=ro.calloutMaxHeight,To=ro.onScroll,wo=ro.shouldRestoreFocus,Co=wo===void 0?!0:wo,Oo=ro.target,Ao=ro.hidden,Ro=ro.onLayerMounted,No=ro.popupProps,Mo=reactExports.useRef(null),Do=reactExports.useRef(null),jo=useMergedRefs(Do,No==null?void 0:No.ref),Fo=reactExports.useState(null),$o=Fo[0],Lo=Fo[1],Ho=reactExports.useCallback(function(Xs){Lo(Xs)},[]),qo=useMergedRefs(Mo,to),Uo=useTarget(ro.target,{current:$o}),Yo=Uo[0],Zo=Uo[1],_s=useBounds(ro,Yo,Zo),Ss=usePositions(ro,Mo,$o,Yo,_s,jo),As=useMaxHeight(ro,_s,Yo,Ss),Ns=useDismissHandlers(ro,Ss,Mo,Yo,Zo),ws=Ns[0],Ds=Ns[1],Jo=(Ss==null?void 0:Ss.elementPosition.top)&&(Ss==null?void 0:Ss.elementPosition.bottom),Cs=__assign$4(__assign$4({},Ss==null?void 0:Ss.elementPosition),{maxHeight:As});if(Jo&&(Cs.bottom=void 0),useAutoFocus(ro,Ss,$o),reactExports.useEffect(function(){Ao||Ro==null||Ro()},[Ao]),!Zo)return null;var Bs=_o,zs=uo&&!!Oo,Ls=getClassNames$9(no,{theme:ro.theme,className:lo,overflowYHidden:Bs,calloutWidth:ho,positions:Ss,beakWidth:fo,backgroundColor:Eo,calloutMaxWidth:po,calloutMinWidth:go,doNotLayer:vo}),ga=__assign$4(__assign$4({maxHeight:So||"100%"},oo),Bs&&{overflowY:"hidden"}),Js=ro.hidden?{visibility:"hidden"}:void 0;return reactExports.createElement("div",{ref:qo,className:Ls.container,style:Js},reactExports.createElement("div",__assign$4({},getNativeProps(ro,divProperties,ARIA_ROLE_ATTRIBUTES),{className:css$3(Ls.root,Ss&&Ss.targetEdge&&ANIMATIONS[Ss.targetEdge]),style:Ss?__assign$4({},Cs):OFF_SCREEN_STYLE,tabIndex:-1,ref:Ho}),zs&&reactExports.createElement("div",{className:Ls.beak,style:getBeakPosition(Ss)}),zs&&reactExports.createElement("div",{className:Ls.beakCurtain}),reactExports.createElement(Popup,__assign$4({role:ro.role,"aria-roledescription":ro["aria-roledescription"],ariaDescribedBy:so,ariaLabel:io,ariaLabelledBy:ao,className:Ls.calloutMain,onDismiss:ro.onDismiss,onMouseDown:ws,onMouseUp:Ds,onRestoreFocus:ro.onRestoreFocus,onScroll:To,shouldRestoreFocus:Co,style:ga},No,{ref:jo}),co)))}),function(eo,to){return!to.shouldUpdateWhenHidden&&eo.hidden&&to.hidden?!0:shallowCompare(eo,to)});function getBeakPosition(eo){var to,ro,no=__assign$4(__assign$4({},(to=eo==null?void 0:eo.beakPosition)===null||to===void 0?void 0:to.elementPosition),{display:!((ro=eo==null?void 0:eo.beakPosition)===null||ro===void 0)&&ro.hideBeak?"none":void 0});return!no.top&&!no.bottom&&!no.left&&!no.right&&(no.left=BEAK_ORIGIN_POSITION.left,no.top=BEAK_ORIGIN_POSITION.top),no}function arePositionsEqual(eo,to){return comparePositions(eo.elementPosition,to.elementPosition)&&comparePositions(eo.beakPosition.elementPosition,to.beakPosition.elementPosition)}function comparePositions(eo,to){for(var ro in to)if(to.hasOwnProperty(ro)){var no=eo[ro],oo=to[ro];if(no!==void 0&&oo!==void 0){if(no.toFixed(2)!==oo.toFixed(2))return!1}else return!1}return!0}CalloutContentBase.displayName=COMPONENT_NAME$2;function getBeakStyle(eo){return{height:eo,width:eo}}var GlobalClassNames$8={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},getStyles$9=function(eo){var to,ro=eo.theme,no=eo.className,oo=eo.overflowYHidden,io=eo.calloutWidth,so=eo.beakWidth,ao=eo.backgroundColor,lo=eo.calloutMaxWidth,uo=eo.calloutMinWidth,co=eo.doNotLayer,fo=getGlobalClassNames(GlobalClassNames$8,ro),ho=ro.semanticColors,po=ro.effects;return{container:[fo.container,{position:"relative"}],root:[fo.root,ro.fonts.medium,{position:"absolute",display:"flex",zIndex:co?ZIndexes.Layer:void 0,boxSizing:"border-box",borderRadius:po.roundedCorner2,boxShadow:po.elevation16,selectors:(to={},to[HighContrastSelector]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},to)},focusClear(),no,!!io&&{width:io},!!lo&&{maxWidth:lo},!!uo&&{minWidth:uo}],beak:[fo.beak,{position:"absolute",backgroundColor:ho.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},getBeakStyle(so),ao&&{backgroundColor:ao}],beakCurtain:[fo.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:ho.menuBackground,borderRadius:po.roundedCorner2}],calloutMain:[fo.calloutMain,{backgroundColor:ho.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:po.roundedCorner2},oo&&{overflowY:"hidden"},ao&&{backgroundColor:ao}]}},CalloutContent=styled(CalloutContentBase,getStyles$9,void 0,{scope:"CalloutContent"});const PortalCompatContext=reactExports.createContext(void 0),portalCompatContextDefaultValue=()=>()=>{};PortalCompatContext.Provider;function usePortalCompat(){var eo;return(eo=reactExports.useContext(PortalCompatContext))!==null&&eo!==void 0?eo:portalCompatContextDefaultValue}var getClassNames$8=classNamesFunction(),getFabricTheme=memoizeFunction(function(eo,to){return createTheme$1(__assign$4(__assign$4({},eo),{rtl:to}))}),getDir=function(eo){var to=eo.theme,ro=eo.dir,no=getRTL$1(to)?"rtl":"ltr",oo=getRTL$1()?"rtl":"ltr",io=ro||no;return{rootDir:io!==no||io!==oo?io:ro,needsTheme:io!==no}},FabricBase=reactExports.forwardRef(function(eo,to){var ro=eo.className,no=eo.theme,oo=eo.applyTheme,io=eo.applyThemeToBody,so=eo.styles,ao=getClassNames$8(so,{theme:no,applyTheme:oo,className:ro}),lo=reactExports.useRef(null);return useApplyThemeToBody(io,ao,lo),reactExports.createElement(reactExports.Fragment,null,useRenderedContent(eo,ao,lo,to))});FabricBase.displayName="FabricBase";function useRenderedContent(eo,to,ro,no){var oo=to.root,io=eo.as,so=io===void 0?"div":io,ao=eo.dir,lo=eo.theme,uo=getNativeProps(eo,divProperties,["dir"]),co=getDir(eo),fo=co.rootDir,ho=co.needsTheme,po=reactExports.createElement(FocusRectsProvider,{providerRef:ro},reactExports.createElement(so,__assign$4({dir:fo},uo,{className:oo,ref:useMergedRefs(ro,no)})));return ho&&(po=reactExports.createElement(Customizer,{settings:{theme:getFabricTheme(lo,ao==="rtl")}},po)),po}function useApplyThemeToBody(eo,to,ro){var no=to.bodyThemed;return reactExports.useEffect(function(){if(eo){var oo=getDocument(ro.current);if(oo)return oo.body.classList.add(no),function(){oo.body.classList.remove(no)}}},[no,eo,ro]),ro}var inheritFont={fontFamily:"inherit"},GlobalClassNames$7={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},getStyles$8=function(eo){var to=eo.applyTheme,ro=eo.className,no=eo.preventBlanketFontInheritance,oo=eo.theme,io=getGlobalClassNames(GlobalClassNames$7,oo);return{root:[io.root,oo.fonts.medium,{color:oo.palette.neutralPrimary},!no&&{"& button":inheritFont,"& input":inheritFont,"& textarea":inheritFont},to&&{color:oo.semanticColors.bodyText,backgroundColor:oo.semanticColors.bodyBackground},ro],bodyThemed:[{backgroundColor:oo.semanticColors.bodyBackground}]}},Fabric=styled(FabricBase,getStyles$8,void 0,{scope:"Fabric"}),_layersByHostId={},_layerHostsById={},defaultHostId="fluent-default-layer-host",_defaultHostSelector="#".concat(defaultHostId);function registerLayer(eo,to){_layersByHostId[eo]||(_layersByHostId[eo]=[]),_layersByHostId[eo].push(to);var ro=_layerHostsById[eo];if(ro)for(var no=0,oo=ro;no=0&&(ro.splice(no,1),ro.length===0&&delete _layersByHostId[eo])}var oo=_layerHostsById[eo];if(oo)for(var io=0,so=oo;io0&&to.current.naturalHeight>0||to.current.complete&&SVG_REGEX.test(io):!1;fo&&lo(ImageLoadState.loaded)}}),reactExports.useEffect(function(){ro==null||ro(ao)},[ao]);var uo=reactExports.useCallback(function(fo){no==null||no(fo),io&&lo(ImageLoadState.loaded)},[io,no]),co=reactExports.useCallback(function(fo){oo==null||oo(fo),lo(ImageLoadState.error)},[oo]);return[ao,uo,co]}var ImageBase=reactExports.forwardRef(function(eo,to){var ro=reactExports.useRef(),no=reactExports.useRef(),oo=useLoadState(eo,no),io=oo[0],so=oo[1],ao=oo[2],lo=getNativeProps(eo,imgProperties,["width","height"]),uo=eo.src,co=eo.alt,fo=eo.width,ho=eo.height,po=eo.shouldFadeIn,go=po===void 0?!0:po,vo=eo.shouldStartVisible,bo=eo.className,xo=eo.imageFit,_o=eo.role,Eo=eo.maximizeFrame,So=eo.styles,To=eo.theme,wo=eo.loading,Co=useCoverStyle(eo,io,no,ro),Oo=getClassNames$6(So,{theme:To,className:bo,width:fo,height:ho,maximizeFrame:Eo,shouldFadeIn:go,shouldStartVisible:vo,isLoaded:io===ImageLoadState.loaded||io===ImageLoadState.notLoaded&&eo.shouldStartVisible,isLandscape:Co===ImageCoverStyle.landscape,isCenter:xo===ImageFit.center,isCenterContain:xo===ImageFit.centerContain,isCenterCover:xo===ImageFit.centerCover,isContain:xo===ImageFit.contain,isCover:xo===ImageFit.cover,isNone:xo===ImageFit.none,isError:io===ImageLoadState.error,isNotImageFit:xo===void 0});return reactExports.createElement("div",{className:Oo.root,style:{width:fo,height:ho},ref:ro},reactExports.createElement("img",__assign$4({},lo,{onLoad:so,onError:ao,key:KEY_PREFIX+eo.src||"",className:Oo.image,ref:useMergedRefs(no,to),src:uo,alt:co,role:_o,loading:wo})))});ImageBase.displayName="ImageBase";function useCoverStyle(eo,to,ro,no){var oo=reactExports.useRef(to),io=reactExports.useRef();return(io===void 0||oo.current===ImageLoadState.notLoaded&&to===ImageLoadState.loaded)&&(io.current=computeCoverStyle(eo,to,ro,no)),oo.current=to,io.current}function computeCoverStyle(eo,to,ro,no){var oo=eo.imageFit,io=eo.width,so=eo.height;if(eo.coverStyle!==void 0)return eo.coverStyle;if(to===ImageLoadState.loaded&&(oo===ImageFit.cover||oo===ImageFit.contain||oo===ImageFit.centerContain||oo===ImageFit.centerCover)&&ro.current&&no.current){var ao=void 0;typeof io=="number"&&typeof so=="number"&&oo!==ImageFit.centerContain&&oo!==ImageFit.centerCover?ao=io/so:ao=no.current.clientWidth/no.current.clientHeight;var lo=ro.current.naturalWidth/ro.current.naturalHeight;if(lo>ao)return ImageCoverStyle.landscape}return ImageCoverStyle.portrait}var GlobalClassNames$5={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"},getStyles$6=function(eo){var to=eo.className,ro=eo.width,no=eo.height,oo=eo.maximizeFrame,io=eo.isLoaded,so=eo.shouldFadeIn,ao=eo.shouldStartVisible,lo=eo.isLandscape,uo=eo.isCenter,co=eo.isContain,fo=eo.isCover,ho=eo.isCenterContain,po=eo.isCenterCover,go=eo.isNone,vo=eo.isError,bo=eo.isNotImageFit,xo=eo.theme,_o=getGlobalClassNames(GlobalClassNames$5,xo),Eo={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},So=getWindow(),To=So!==void 0&&So.navigator.msMaxTouchPoints===void 0,wo=co&&lo||fo&&!lo?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[_o.root,xo.fonts.medium,{overflow:"hidden"},oo&&[_o.rootMaximizeFrame,{height:"100%",width:"100%"}],io&&so&&!ao&&AnimationClassNames.fadeIn400,(uo||co||fo||ho||po)&&{position:"relative"},to],image:[_o.image,{display:"block",opacity:0},io&&["is-loaded",{opacity:1}],uo&&[_o.imageCenter,Eo],co&&[_o.imageContain,To&&{width:"100%",height:"100%",objectFit:"contain"},!To&&wo,!To&&Eo],fo&&[_o.imageCover,To&&{width:"100%",height:"100%",objectFit:"cover"},!To&&wo,!To&&Eo],ho&&[_o.imageCenterContain,lo&&{maxWidth:"100%"},!lo&&{maxHeight:"100%"},Eo],po&&[_o.imageCenterCover,lo&&{maxHeight:"100%"},!lo&&{maxWidth:"100%"},Eo],go&&[_o.imageNone,{width:"auto",height:"auto"}],bo&&[!!ro&&!no&&{height:"auto",width:"100%"},!ro&&!!no&&{height:"100%",width:"auto"},!!ro&&!!no&&{height:"100%",width:"100%"}],lo&&_o.imageLandscape,!lo&&_o.imagePortrait,!io&&"is-notLoaded",so&&"is-fadeIn",vo&&"is-error"]}},Image$1=styled(ImageBase,getStyles$6,void 0,{scope:"Image"},!0);Image$1.displayName="Image";var classNames=mergeStyleSets({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),MS_ICON="ms-Icon",getStyles$5=function(eo){var to=eo.className,ro=eo.iconClassName,no=eo.isPlaceholder,oo=eo.isImage,io=eo.styles;return{root:[no&&classNames.placeholder,classNames.root,oo&&classNames.image,ro,to,io&&io.root,io&&io.imageContainer]}},getIconContent=memoizeFunction(function(eo){var to=getIcon(eo)||{subset:{},code:void 0},ro=to.code,no=to.subset;return ro?{children:ro,iconClassName:no.className,fontFamily:no.fontFace&&no.fontFace.fontFamily,mergeImageProps:no.mergeImageProps}:null},void 0,!0),FontIcon=function(eo){var to=eo.iconName,ro=eo.className,no=eo.style,oo=no===void 0?{}:no,io=getIconContent(to)||{},so=io.iconClassName,ao=io.children,lo=io.fontFamily,uo=io.mergeImageProps,co=getNativeProps(eo,htmlElementProperties),fo=eo["aria-label"]||eo.title,ho=eo["aria-label"]||eo["aria-labelledby"]||eo.title?{role:uo?void 0:"img"}:{"aria-hidden":!0},po=ao;return uo&&typeof ao=="object"&&typeof ao.props=="object"&&fo&&(po=reactExports.cloneElement(ao,{alt:fo})),reactExports.createElement("i",__assign$4({"data-icon-name":to},ho,co,uo?{title:void 0,"aria-label":void 0}:{},{className:css$3(MS_ICON,classNames.root,so,!to&&classNames.placeholder,ro),style:__assign$4({fontFamily:lo},oo)}),po)};memoizeFunction(function(eo,to,ro){return FontIcon({iconName:eo,className:to,"aria-label":ro})});var getClassNames$5=classNamesFunction({cacheSize:100}),IconBase=function(eo){__extends$3(to,eo);function to(ro){var no=eo.call(this,ro)||this;return no._onImageLoadingStateChange=function(oo){no.props.imageProps&&no.props.imageProps.onLoadingStateChange&&no.props.imageProps.onLoadingStateChange(oo),oo===ImageLoadState.error&&no.setState({imageLoadError:!0})},no.state={imageLoadError:!1},no}return to.prototype.render=function(){var ro=this.props,no=ro.children,oo=ro.className,io=ro.styles,so=ro.iconName,ao=ro.imageErrorAs,lo=ro.theme,uo=typeof so=="string"&&so.length===0,co=!!this.props.imageProps||this.props.iconType===IconType.image||this.props.iconType===IconType.Image,fo=getIconContent(so)||{},ho=fo.iconClassName,po=fo.children,go=fo.mergeImageProps,vo=getClassNames$5(io,{theme:lo,className:oo,iconClassName:ho,isImage:co,isPlaceholder:uo}),bo=co?"span":"i",xo=getNativeProps(this.props,htmlElementProperties,["aria-label"]),_o=this.state.imageLoadError,Eo=__assign$4(__assign$4({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),So=_o&&ao||Image$1,To=this.props["aria-label"]||this.props.ariaLabel,wo=Eo.alt||To||this.props.title,Co=!!(wo||this.props["aria-labelledby"]||Eo["aria-label"]||Eo["aria-labelledby"]),Oo=Co?{role:co||go?void 0:"img","aria-label":co||go?void 0:wo}:{"aria-hidden":!0},Ao=po;return go&&po&&typeof po=="object"&&wo&&(Ao=reactExports.cloneElement(po,{alt:wo})),reactExports.createElement(bo,__assign$4({"data-icon-name":so},Oo,xo,go?{title:void 0,"aria-label":void 0}:{},{className:vo.root}),co?reactExports.createElement(So,__assign$4({},Eo)):no||Ao)},to}(reactExports.Component),Icon=styled(IconBase,getStyles$5,void 0,{scope:"Icon"},!0);Icon.displayName="Icon";var FocusZoneTabbableElements={none:0,all:1,inputOnly:2},FocusZoneDirection;(function(eo){eo[eo.vertical=0]="vertical",eo[eo.horizontal=1]="horizontal",eo[eo.bidirectional=2]="bidirectional",eo[eo.domOrder=3]="domOrder"})(FocusZoneDirection||(FocusZoneDirection={}));var IS_FOCUSABLE_ATTRIBUTE="data-is-focusable",IS_ENTER_DISABLED_ATTRIBUTE="data-disable-click-on-enter",FOCUSZONE_ID_ATTRIBUTE="data-focuszone-id",TABINDEX="tabindex",NO_VERTICAL_WRAP="data-no-vertical-wrap",NO_HORIZONTAL_WRAP="data-no-horizontal-wrap",LARGE_DISTANCE_FROM_CENTER=999999999,LARGE_NEGATIVE_DISTANCE_FROM_CENTER=-999999999,focusZoneStyles,focusZoneClass="ms-FocusZone";function raiseClickFromKeyboardEvent(eo,to){var ro;typeof MouseEvent=="function"?ro=new MouseEvent("click",{ctrlKey:to==null?void 0:to.ctrlKey,metaKey:to==null?void 0:to.metaKey,shiftKey:to==null?void 0:to.shiftKey,altKey:to==null?void 0:to.altKey,bubbles:to==null?void 0:to.bubbles,cancelable:to==null?void 0:to.cancelable}):(ro=document.createEvent("MouseEvents"),ro.initMouseEvent("click",to?to.bubbles:!1,to?to.cancelable:!1,window,0,0,0,0,0,to?to.ctrlKey:!1,to?to.altKey:!1,to?to.shiftKey:!1,to?to.metaKey:!1,0,null)),eo.dispatchEvent(ro)}function getRootClass(){return focusZoneStyles||(focusZoneStyles=mergeStyles$1({selectors:{":focus":{outline:"none"}}},focusZoneClass)),focusZoneStyles}var _allInstances={},_outerZones=new Set,ALLOWED_INPUT_TYPES=["text","number","password","email","tel","url","search","textarea"],ALLOW_VIRTUAL_ELEMENTS=!1,FocusZone=function(eo){__extends$3(to,eo);function to(ro){var no=this,oo,io,so,ao;no=eo.call(this,ro)||this,no._root=reactExports.createRef(),no._mergedRef=createMergedRef(),no._onFocus=function(uo){if(!no._portalContainsElement(uo.target)){var co=no.props,fo=co.onActiveElementChanged,ho=co.doNotAllowFocusEventToPropagate,po=co.stopFocusPropagation,go=co.onFocusNotification,vo=co.onFocus,bo=co.shouldFocusInnerElementWhenReceivedFocus,xo=co.defaultTabbableElement,_o=no._isImmediateDescendantOfZone(uo.target),Eo;if(_o)Eo=uo.target;else for(var So=uo.target;So&&So!==no._root.current;){if(isElementTabbable(So)&&no._isImmediateDescendantOfZone(So)){Eo=So;break}So=getParent(So,ALLOW_VIRTUAL_ELEMENTS)}if(bo&&uo.target===no._root.current){var To=xo&&typeof xo=="function"&&no._root.current&&xo(no._root.current);To&&isElementTabbable(To)?(Eo=To,To.focus()):(no.focus(!0),no._activeElement&&(Eo=null))}var wo=!no._activeElement;Eo&&Eo!==no._activeElement&&((_o||wo)&&no._setFocusAlignment(Eo,!0,!0),no._activeElement=Eo,wo&&no._updateTabIndexes()),fo&&fo(no._activeElement,uo),(po||ho)&&uo.stopPropagation(),vo?vo(uo):go&&go()}},no._onBlur=function(){no._setParkedFocus(!1)},no._onMouseDown=function(uo){if(!no._portalContainsElement(uo.target)){var co=no.props.disabled;if(!co){for(var fo=uo.target,ho=[];fo&&fo!==no._root.current;)ho.push(fo),fo=getParent(fo,ALLOW_VIRTUAL_ELEMENTS);for(;ho.length&&(fo=ho.pop(),fo&&isElementTabbable(fo)&&no._setActiveElement(fo,!0),!isElementFocusZone(fo)););}}},no._onKeyDown=function(uo,co){if(!no._portalContainsElement(uo.target)){var fo=no.props,ho=fo.direction,po=fo.disabled,go=fo.isInnerZoneKeystroke,vo=fo.pagingSupportDisabled,bo=fo.shouldEnterInnerZone;if(!po&&(no.props.onKeyDown&&no.props.onKeyDown(uo),!uo.isDefaultPrevented()&&!(no._getDocument().activeElement===no._root.current&&no._isInnerZone))){if((bo&&bo(uo)||go&&go(uo))&&no._isImmediateDescendantOfZone(uo.target)){var xo=no._getFirstInnerZone();if(xo){if(!xo.focus(!0))return}else if(isElementFocusSubZone(uo.target)){if(!no.focusElement(getNextElement(uo.target,uo.target.firstChild,!0)))return}else return}else{if(uo.altKey)return;switch(uo.which){case KeyCodes$1.space:if(no._shouldRaiseClicksOnSpace&&no._tryInvokeClickForFocusable(uo.target,uo))break;return;case KeyCodes$1.left:if(ho!==FocusZoneDirection.vertical&&(no._preventDefaultWhenHandled(uo),no._moveFocusLeft(co)))break;return;case KeyCodes$1.right:if(ho!==FocusZoneDirection.vertical&&(no._preventDefaultWhenHandled(uo),no._moveFocusRight(co)))break;return;case KeyCodes$1.up:if(ho!==FocusZoneDirection.horizontal&&(no._preventDefaultWhenHandled(uo),no._moveFocusUp()))break;return;case KeyCodes$1.down:if(ho!==FocusZoneDirection.horizontal&&(no._preventDefaultWhenHandled(uo),no._moveFocusDown()))break;return;case KeyCodes$1.pageDown:if(!vo&&no._moveFocusPaging(!0))break;return;case KeyCodes$1.pageUp:if(!vo&&no._moveFocusPaging(!1))break;return;case KeyCodes$1.tab:if(no.props.allowTabKey||no.props.handleTabKey===FocusZoneTabbableElements.all||no.props.handleTabKey===FocusZoneTabbableElements.inputOnly&&no._isElementInput(uo.target)){var _o=!1;if(no._processingTabKey=!0,ho===FocusZoneDirection.vertical||!no._shouldWrapFocus(no._activeElement,NO_HORIZONTAL_WRAP))_o=uo.shiftKey?no._moveFocusUp():no._moveFocusDown();else{var Eo=getRTL$1(co)?!uo.shiftKey:uo.shiftKey;_o=Eo?no._moveFocusLeft(co):no._moveFocusRight(co)}if(no._processingTabKey=!1,_o)break;no.props.shouldResetActiveElementWhenTabFromZone&&(no._activeElement=null)}return;case KeyCodes$1.home:if(no._isContentEditableElement(uo.target)||no._isElementInput(uo.target)&&!no._shouldInputLoseFocus(uo.target,!1))return!1;var So=no._root.current&&no._root.current.firstChild;if(no._root.current&&So&&no.focusElement(getNextElement(no._root.current,So,!0)))break;return;case KeyCodes$1.end:if(no._isContentEditableElement(uo.target)||no._isElementInput(uo.target)&&!no._shouldInputLoseFocus(uo.target,!0))return!1;var To=no._root.current&&no._root.current.lastChild;if(no._root.current&&no.focusElement(getPreviousElement(no._root.current,To,!0,!0,!0)))break;return;case KeyCodes$1.enter:if(no._shouldRaiseClicksOnEnter&&no._tryInvokeClickForFocusable(uo.target,uo))break;return;default:return}}uo.preventDefault(),uo.stopPropagation()}}},no._getHorizontalDistanceFromCenter=function(uo,co,fo){var ho=no._focusAlignment.left||no._focusAlignment.x||0,po=Math.floor(fo.top),go=Math.floor(co.bottom),vo=Math.floor(fo.bottom),bo=Math.floor(co.top),xo=uo&&po>go,_o=!uo&&vo=fo.left&&ho<=fo.left+fo.width?0:Math.abs(fo.left+fo.width/2-ho):no._shouldWrapFocus(no._activeElement,NO_VERTICAL_WRAP)?LARGE_DISTANCE_FROM_CENTER:LARGE_NEGATIVE_DISTANCE_FROM_CENTER},initializeComponentRef(no),no._id=getId("FocusZone"),no._focusAlignment={left:0,top:0},no._processingTabKey=!1;var lo=(io=(oo=ro.shouldRaiseClicks)!==null&&oo!==void 0?oo:to.defaultProps.shouldRaiseClicks)!==null&&io!==void 0?io:!0;return no._shouldRaiseClicksOnEnter=(so=ro.shouldRaiseClicksOnEnter)!==null&&so!==void 0?so:lo,no._shouldRaiseClicksOnSpace=(ao=ro.shouldRaiseClicksOnSpace)!==null&&ao!==void 0?ao:lo,no}return to.getOuterZones=function(){return _outerZones.size},to._onKeyDownCapture=function(ro){ro.which===KeyCodes$1.tab&&_outerZones.forEach(function(no){return no._updateTabIndexes()})},to.prototype.componentDidMount=function(){var ro=this._root.current;if(_allInstances[this._id]=this,ro){for(var no=getParent(ro,ALLOW_VIRTUAL_ELEMENTS);no&&no!==this._getDocument().body&&no.nodeType===1;){if(isElementFocusZone(no)){this._isInnerZone=!0;break}no=getParent(no,ALLOW_VIRTUAL_ELEMENTS)}this._isInnerZone||(_outerZones.add(this),this._root.current&&this._root.current.addEventListener("keydown",to._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()}},to.prototype.componentDidUpdate=function(){var ro=this._root.current,no=this._getDocument();if((this._activeElement&&!elementContains(this._root.current,this._activeElement,ALLOW_VIRTUAL_ELEMENTS)||this._defaultFocusElement&&!elementContains(this._root.current,this._defaultFocusElement,ALLOW_VIRTUAL_ELEMENTS))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&no&&this._lastIndexPath&&(no.activeElement===no.body||no.activeElement===null||no.activeElement===ro)){var oo=getFocusableByIndexPath(ro,this._lastIndexPath);oo?(this._setActiveElement(oo,!0),oo.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},to.prototype.componentWillUnmount=function(){delete _allInstances[this._id],this._isInnerZone||(_outerZones.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",to._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},to.prototype.render=function(){var ro=this,no=this.props,oo=no.as,io=no.elementType,so=no.rootProps,ao=no.ariaDescribedBy,lo=no.ariaLabelledBy,uo=no.className,co=getNativeProps(this.props,htmlElementProperties),fo=oo||io||"div";this._evaluateFocusBeforeRender();var ho=getTheme();return reactExports.createElement(fo,__assign$4({"aria-labelledby":lo,"aria-describedby":ao},co,so,{className:css$3(getRootClass(),uo),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(po){return ro._onKeyDown(po,ho)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},to.prototype.focus=function(ro,no){if(ro===void 0&&(ro=!1),no===void 0&&(no=!1),this._root.current)if(!ro&&this._root.current.getAttribute(IS_FOCUSABLE_ATTRIBUTE)==="true"&&this._isInnerZone){var oo=this._getOwnerZone(this._root.current);if(oo!==this._root.current){var io=_allInstances[oo.getAttribute(FOCUSZONE_ID_ATTRIBUTE)];return!!io&&io.focusElement(this._root.current)}return!1}else{if(!ro&&this._activeElement&&elementContains(this._root.current,this._activeElement)&&isElementTabbable(this._activeElement)&&(!no||isElementVisibleAndNotHidden(this._activeElement)))return this._activeElement.focus(),!0;var so=this._root.current.firstChild;return this.focusElement(getNextElement(this._root.current,so,!0,void 0,void 0,void 0,void 0,void 0,no))}return!1},to.prototype.focusLast=function(){if(this._root.current){var ro=this._root.current&&this._root.current.lastChild;return this.focusElement(getPreviousElement(this._root.current,ro,!0,!0,!0))}return!1},to.prototype.focusElement=function(ro,no){var oo=this.props,io=oo.onBeforeFocus,so=oo.shouldReceiveFocus;return so&&!so(ro)||io&&!io(ro)?!1:ro?(this._setActiveElement(ro,no),this._activeElement&&this._activeElement.focus(),!0):!1},to.prototype.setFocusAlignment=function(ro){this._focusAlignment=ro},Object.defineProperty(to.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(to.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),to.prototype._evaluateFocusBeforeRender=function(){var ro=this._root.current,no=this._getDocument();if(no){var oo=no.activeElement;if(oo!==ro){var io=elementContains(ro,oo,!1);this._lastIndexPath=io?getElementIndexPath(ro,oo):void 0}}},to.prototype._setParkedFocus=function(ro){var no=this._root.current;no&&this._isParked!==ro&&(this._isParked=ro,ro?(this.props.allowFocusRoot||(this._parkedTabIndex=no.getAttribute("tabindex"),no.setAttribute("tabindex","-1")),no.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(no.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):no.removeAttribute("tabindex")))},to.prototype._setActiveElement=function(ro,no){var oo=this._activeElement;this._activeElement=ro,oo&&(isElementFocusZone(oo)&&this._updateTabIndexes(oo),oo.tabIndex=-1),this._activeElement&&((!this._focusAlignment||no)&&this._setFocusAlignment(ro,!0,!0),this._activeElement.tabIndex=0)},to.prototype._preventDefaultWhenHandled=function(ro){this.props.preventDefaultWhenHandled&&ro.preventDefault()},to.prototype._tryInvokeClickForFocusable=function(ro,no){var oo=ro;if(oo===this._root.current)return!1;do{if(oo.tagName==="BUTTON"||oo.tagName==="A"||oo.tagName==="INPUT"||oo.tagName==="TEXTAREA"||oo.tagName==="SUMMARY")return!1;if(this._isImmediateDescendantOfZone(oo)&&oo.getAttribute(IS_FOCUSABLE_ATTRIBUTE)==="true"&&oo.getAttribute(IS_ENTER_DISABLED_ATTRIBUTE)!=="true")return raiseClickFromKeyboardEvent(oo,no),!0;oo=getParent(oo,ALLOW_VIRTUAL_ELEMENTS)}while(oo!==this._root.current);return!1},to.prototype._getFirstInnerZone=function(ro){if(ro=ro||this._activeElement||this._root.current,!ro)return null;if(isElementFocusZone(ro))return _allInstances[ro.getAttribute(FOCUSZONE_ID_ATTRIBUTE)];for(var no=ro.firstElementChild;no;){if(isElementFocusZone(no))return _allInstances[no.getAttribute(FOCUSZONE_ID_ATTRIBUTE)];var oo=this._getFirstInnerZone(no);if(oo)return oo;no=no.nextElementSibling}return null},to.prototype._moveFocus=function(ro,no,oo,io){io===void 0&&(io=!0);var so=this._activeElement,ao=-1,lo=void 0,uo=!1,co=this.props.direction===FocusZoneDirection.bidirectional;if(!so||!this._root.current||this._isElementInput(so)&&!this._shouldInputLoseFocus(so,ro))return!1;var fo=co?so.getBoundingClientRect():null;do if(so=ro?getNextElement(this._root.current,so):getPreviousElement(this._root.current,so),co){if(so){var ho=so.getBoundingClientRect(),po=no(fo,ho);if(po===-1&&ao===-1){lo=so;break}if(po>-1&&(ao===-1||po=0&&po<0)break}}else{lo=so;break}while(so);if(lo&&lo!==this._activeElement)uo=!0,this.focusElement(lo);else if(this.props.isCircularNavigation&&io)return ro?this.focusElement(getNextElement(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(getPreviousElement(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return uo},to.prototype._moveFocusDown=function(){var ro=this,no=-1,oo=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!0,function(io,so){var ao=-1,lo=Math.floor(so.top),uo=Math.floor(io.bottom);return lo=uo||lo===no)&&(no=lo,oo>=so.left&&oo<=so.left+so.width?ao=0:ao=Math.abs(so.left+so.width/2-oo)),ao)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},to.prototype._moveFocusUp=function(){var ro=this,no=-1,oo=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!1,function(io,so){var ao=-1,lo=Math.floor(so.bottom),uo=Math.floor(so.top),co=Math.floor(io.top);return lo>co?ro._shouldWrapFocus(ro._activeElement,NO_VERTICAL_WRAP)?LARGE_DISTANCE_FROM_CENTER:LARGE_NEGATIVE_DISTANCE_FROM_CENTER:((no===-1&&lo<=co||uo===no)&&(no=uo,oo>=so.left&&oo<=so.left+so.width?ao=0:ao=Math.abs(so.left+so.width/2-oo)),ao)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},to.prototype._moveFocusLeft=function(ro){var no=this,oo=this._shouldWrapFocus(this._activeElement,NO_HORIZONTAL_WRAP);return this._moveFocus(getRTL$1(ro),function(io,so){var ao=-1,lo;return getRTL$1(ro)?lo=parseFloat(so.top.toFixed(3))parseFloat(io.top.toFixed(3)),lo&&so.right<=io.right&&no.props.direction!==FocusZoneDirection.vertical?ao=io.right-so.right:oo||(ao=LARGE_NEGATIVE_DISTANCE_FROM_CENTER),ao},void 0,oo)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},to.prototype._moveFocusRight=function(ro){var no=this,oo=this._shouldWrapFocus(this._activeElement,NO_HORIZONTAL_WRAP);return this._moveFocus(!getRTL$1(ro),function(io,so){var ao=-1,lo;return getRTL$1(ro)?lo=parseFloat(so.bottom.toFixed(3))>parseFloat(io.top.toFixed(3)):lo=parseFloat(so.top.toFixed(3))=io.left&&no.props.direction!==FocusZoneDirection.vertical?ao=so.left-io.left:oo||(ao=LARGE_NEGATIVE_DISTANCE_FROM_CENTER),ao},void 0,oo)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},to.prototype._moveFocusPaging=function(ro,no){no===void 0&&(no=!0);var oo=this._activeElement;if(!oo||!this._root.current||this._isElementInput(oo)&&!this._shouldInputLoseFocus(oo,ro))return!1;var io=findScrollableParent(oo);if(!io)return!1;var so=-1,ao=void 0,lo=-1,uo=-1,co=io.clientHeight,fo=oo.getBoundingClientRect();do if(oo=ro?getNextElement(this._root.current,oo):getPreviousElement(this._root.current,oo),oo){var ho=oo.getBoundingClientRect(),po=Math.floor(ho.top),go=Math.floor(fo.bottom),vo=Math.floor(ho.bottom),bo=Math.floor(fo.top),xo=this._getHorizontalDistanceFromCenter(ro,fo,ho),_o=ro&&po>go+co,Eo=!ro&&vo-1&&(ro&&po>lo?(lo=po,so=xo,ao=oo):!ro&&vo-1){var oo=ro.selectionStart,io=ro.selectionEnd,so=oo!==io,ao=ro.value,lo=ro.readOnly;if(so||oo>0&&!no&&!lo||oo!==ao.length&&no&&!lo||this.props.handleTabKey&&!(this.props.shouldInputLoseFocusOnArrowKey&&this.props.shouldInputLoseFocusOnArrowKey(ro)))return!1}return!0},to.prototype._shouldWrapFocus=function(ro,no){return this.props.checkForNoWrap?shouldWrapFocus(ro,no):!0},to.prototype._portalContainsElement=function(ro){return ro&&!!this._root.current&&portalContainsElement(ro,this._root.current)},to.prototype._getDocument=function(){return getDocument(this._root.current)},to.defaultProps={isCircularNavigation:!1,direction:FocusZoneDirection.bidirectional,shouldRaiseClicks:!0},to}(reactExports.Component),ContextualMenuItemType;(function(eo){eo[eo.Normal=0]="Normal",eo[eo.Divider=1]="Divider",eo[eo.Header=2]="Header",eo[eo.Section=3]="Section"})(ContextualMenuItemType||(ContextualMenuItemType={}));function getIsChecked(eo){return eo.canCheck?!!(eo.isChecked||eo.checked):typeof eo.isChecked=="boolean"?eo.isChecked:typeof eo.checked=="boolean"?eo.checked:null}function hasSubmenu(eo){return!!(eo.subMenuProps||eo.items)}function isItemDisabled(eo){return!!(eo.isDisabled||eo.disabled)}function getMenuItemAriaRole(eo){var to=getIsChecked(eo),ro=to!==null;return ro?"menuitemcheckbox":"menuitem"}var defaultIconRenderer=function(eo){var to=eo.item,ro=eo.classNames,no=to.iconProps;return reactExports.createElement(Icon,__assign$4({},no,{className:ro.icon}))},renderItemIcon=function(eo){var to=eo.item,ro=eo.hasIcons;return ro?to.onRenderIcon?to.onRenderIcon(eo,defaultIconRenderer):defaultIconRenderer(eo):null},renderCheckMarkIcon=function(eo){var to=eo.onCheckmarkClick,ro=eo.item,no=eo.classNames,oo=getIsChecked(ro);if(to){var io=function(so){return to(ro,so)};return reactExports.createElement(Icon,{iconName:ro.canCheck!==!1&&oo?"CheckMark":"",className:no.checkmarkIcon,onClick:io})}return null},renderItemName=function(eo){var to=eo.item,ro=eo.classNames;return to.text||to.name?reactExports.createElement("span",{className:ro.label},to.text||to.name):null},renderSecondaryText=function(eo){var to=eo.item,ro=eo.classNames;return to.secondaryText?reactExports.createElement("span",{className:ro.secondaryText},to.secondaryText):null},renderSubMenuIcon=function(eo){var to=eo.item,ro=eo.classNames,no=eo.theme;return hasSubmenu(to)?reactExports.createElement(Icon,__assign$4({iconName:getRTL$1(no)?"ChevronLeft":"ChevronRight"},to.submenuIconProps,{className:ro.subMenuIcon})):null},ContextualMenuItemBase=function(eo){__extends$3(to,eo);function to(ro){var no=eo.call(this,ro)||this;return no.openSubMenu=function(){var oo=no.props,io=oo.item,so=oo.openSubMenu,ao=oo.getSubmenuTarget;if(ao){var lo=ao();hasSubmenu(io)&&so&&lo&&so(io,lo)}},no.dismissSubMenu=function(){var oo=no.props,io=oo.item,so=oo.dismissSubMenu;hasSubmenu(io)&&so&&so()},no.dismissMenu=function(oo){var io=no.props.dismissMenu;io&&io(void 0,oo)},initializeComponentRef(no),no}return to.prototype.render=function(){var ro=this.props,no=ro.item,oo=ro.classNames,io=no.onRenderContent||this._renderLayout;return reactExports.createElement("div",{className:no.split?oo.linkContentMenu:oo.linkContent},io(this.props,{renderCheckMarkIcon,renderItemIcon,renderItemName,renderSecondaryText,renderSubMenuIcon}))},to.prototype._renderLayout=function(ro,no){return reactExports.createElement(reactExports.Fragment,null,no.renderCheckMarkIcon(ro),no.renderItemIcon(ro),no.renderItemName(ro),no.renderSecondaryText(ro),no.renderSubMenuIcon(ro))},to}(reactExports.Component),getDividerClassNames=memoizeFunction(function(eo){return mergeStyleSets({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:eo.palette.neutralTertiaryAlt}})}),CONTEXTUAL_MENU_ITEM_HEIGHT=36,MediumScreenSelector$1=getScreenSelector(0,ScreenWidthMaxMedium),getMenuItemStyles=memoizeFunction(function(eo){var to,ro,no,oo,io,so=eo.semanticColors,ao=eo.fonts,lo=eo.palette,uo=so.menuItemBackgroundHovered,co=so.menuItemTextHovered,fo=so.menuItemBackgroundPressed,ho=so.bodyDivider,po={item:[ao.medium,{color:so.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:ho,position:"relative"},root:[getFocusStyle(eo),ao.medium,{color:so.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:CONTEXTUAL_MENU_ITEM_HEIGHT,lineHeight:CONTEXTUAL_MENU_ITEM_HEIGHT,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:so.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(to={},to[HighContrastSelector]={color:"GrayText",opacity:1},to)},rootHovered:{backgroundColor:uo,color:co,selectors:{".ms-ContextualMenu-icon":{color:lo.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:lo.neutralPrimary}}},rootFocused:{backgroundColor:lo.white},rootChecked:{selectors:{".ms-ContextualMenu-checkmarkIcon":{color:lo.neutralPrimary}}},rootPressed:{backgroundColor:fo,selectors:{".ms-ContextualMenu-icon":{color:lo.themeDark},".ms-ContextualMenu-submenuIcon":{color:lo.neutralPrimary}}},rootExpanded:{backgroundColor:fo,color:so.bodyTextChecked,selectors:(ro={".ms-ContextualMenu-submenuIcon":(no={},no[HighContrastSelector]={color:"inherit"},no)},ro[HighContrastSelector]=__assign$4({},getHighContrastNoAdjustStyle()),ro)},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:eo.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:CONTEXTUAL_MENU_ITEM_HEIGHT,fontSize:IconFontSizes.medium,width:IconFontSizes.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(oo={},oo[MediumScreenSelector$1]={fontSize:IconFontSizes.large,width:IconFontSizes.large},oo)},iconColor:{color:so.menuIcon},iconDisabled:{color:so.disabledBodyText},checkmarkIcon:{color:so.bodySubtext},subMenuIcon:{height:CONTEXTUAL_MENU_ITEM_HEIGHT,lineHeight:CONTEXTUAL_MENU_ITEM_HEIGHT,color:lo.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:IconFontSizes.small,selectors:(io={":hover":{color:lo.neutralPrimary},":active":{color:lo.neutralPrimary}},io[MediumScreenSelector$1]={fontSize:IconFontSizes.medium},io)},splitButtonFlexContainer:[getFocusStyle(eo),{display:"flex",height:CONTEXTUAL_MENU_ITEM_HEIGHT,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]};return concatStyleSets(po)}),CONTEXTUAL_SPLIT_MENU_MINWIDTH="28px",MediumScreenSelector=getScreenSelector(0,ScreenWidthMaxMedium),getSplitButtonVerticalDividerClassNames=memoizeFunction(function(eo){var to;return mergeStyleSets(getDividerClassNames(eo),{wrapper:{position:"absolute",right:28,selectors:(to={},to[MediumScreenSelector]={right:32},to)},divider:{height:16,width:1}})}),GlobalClassNames$4={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"},getItemClassNames=memoizeFunction(function(eo,to,ro,no,oo,io,so,ao,lo,uo,co,fo){var ho,po,go,vo,bo=getMenuItemStyles(eo),xo=getGlobalClassNames(GlobalClassNames$4,eo);return mergeStyleSets({item:[xo.item,bo.item,so],divider:[xo.divider,bo.divider,ao],root:[xo.root,bo.root,no&&[xo.isChecked,bo.rootChecked],oo&&bo.anchorLink,ro&&[xo.isExpanded,bo.rootExpanded],to&&[xo.isDisabled,bo.rootDisabled],!to&&!ro&&[{selectors:(ho={":hover":bo.rootHovered,":active":bo.rootPressed},ho[".".concat(IsFocusVisibleClassName," &:focus, .").concat(IsFocusVisibleClassName," &:focus:hover")]=bo.rootFocused,ho[".".concat(IsFocusVisibleClassName," &:hover")]={background:"inherit;"},ho)}],fo],splitPrimary:[bo.root,{width:"calc(100% - ".concat(CONTEXTUAL_SPLIT_MENU_MINWIDTH,")")},no&&["is-checked",bo.rootChecked],(to||co)&&["is-disabled",bo.rootDisabled],!(to||co)&&!no&&[{selectors:(po={":hover":bo.rootHovered},po[":hover ~ .".concat(xo.splitMenu)]=bo.rootHovered,po[":active"]=bo.rootPressed,po[".".concat(IsFocusVisibleClassName," &:focus, .").concat(IsFocusVisibleClassName," &:focus:hover")]=bo.rootFocused,po[".".concat(IsFocusVisibleClassName," &:hover")]={background:"inherit;"},po)}]],splitMenu:[xo.splitMenu,bo.root,{flexBasis:"0",padding:"0 8px",minWidth:CONTEXTUAL_SPLIT_MENU_MINWIDTH},ro&&["is-expanded",bo.rootExpanded],to&&["is-disabled",bo.rootDisabled],!to&&!ro&&[{selectors:(go={":hover":bo.rootHovered,":active":bo.rootPressed},go[".".concat(IsFocusVisibleClassName," &:focus, .").concat(IsFocusVisibleClassName," &:focus:hover")]=bo.rootFocused,go[".".concat(IsFocusVisibleClassName," &:hover")]={background:"inherit;"},go)}]],anchorLink:bo.anchorLink,linkContent:[xo.linkContent,bo.linkContent],linkContentMenu:[xo.linkContentMenu,bo.linkContent,{justifyContent:"center"}],icon:[xo.icon,io&&bo.iconColor,bo.icon,lo,to&&[xo.isDisabled,bo.iconDisabled]],iconColor:bo.iconColor,checkmarkIcon:[xo.checkmarkIcon,io&&bo.checkmarkIcon,bo.icon,lo],subMenuIcon:[xo.subMenuIcon,bo.subMenuIcon,uo,ro&&{color:eo.palette.neutralPrimary},to&&[bo.iconDisabled]],label:[xo.label,bo.label],secondaryText:[xo.secondaryText,bo.secondaryText],splitContainer:[bo.splitButtonFlexContainer,!to&&!no&&[{selectors:(vo={},vo[".".concat(IsFocusVisibleClassName," &:focus, .").concat(IsFocusVisibleClassName," &:focus:hover")]=bo.rootFocused,vo)}]],screenReaderText:[xo.screenReaderText,bo.screenReaderText,hiddenContentStyle,{visibility:"hidden"}]})}),getItemStyles=function(eo){var to=eo.theme,ro=eo.disabled,no=eo.expanded,oo=eo.checked,io=eo.isAnchorLink,so=eo.knownIcon,ao=eo.itemClassName,lo=eo.dividerClassName,uo=eo.iconClassName,co=eo.subMenuClassName,fo=eo.primaryDisabled,ho=eo.className;return getItemClassNames(to,ro,no,oo,io,so,ao,lo,uo,co,fo,ho)},ContextualMenuItem=styled(ContextualMenuItemBase,getItemStyles,void 0,{scope:"ContextualMenuItem"}),ContextualMenuItemWrapper=function(eo){__extends$3(to,eo);function to(ro){var no=eo.call(this,ro)||this;return no._onItemMouseEnter=function(oo){var io=no.props,so=io.item,ao=io.onItemMouseEnter;ao&&ao(so,oo,oo.currentTarget)},no._onItemClick=function(oo){var io=no.props,so=io.item,ao=io.onItemClickBase;ao&&ao(so,oo,oo.currentTarget)},no._onItemMouseLeave=function(oo){var io=no.props,so=io.item,ao=io.onItemMouseLeave;ao&&ao(so,oo)},no._onItemKeyDown=function(oo){var io=no.props,so=io.item,ao=io.onItemKeyDown;ao&&ao(so,oo)},no._onItemMouseMove=function(oo){var io=no.props,so=io.item,ao=io.onItemMouseMove;ao&&ao(so,oo,oo.currentTarget)},no._getSubmenuTarget=function(){},initializeComponentRef(no),no}return to.prototype.shouldComponentUpdate=function(ro){return!shallowCompare(ro,this.props)},to}(reactExports.Component),KTP_PREFIX="ktp",KTP_SEPARATOR="-",DATAKTP_TARGET="data-ktp-target",DATAKTP_EXECUTE_TARGET="data-ktp-execute-target",KTP_LAYER_ID="ktp-layer-id",KeytipEvents;(function(eo){eo.KEYTIP_ADDED="keytipAdded",eo.KEYTIP_REMOVED="keytipRemoved",eo.KEYTIP_UPDATED="keytipUpdated",eo.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",eo.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",eo.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",eo.ENTER_KEYTIP_MODE="enterKeytipMode",eo.EXIT_KEYTIP_MODE="exitKeytipMode"})(KeytipEvents||(KeytipEvents={}));var KeytipManager=function(){function eo(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return eo.getInstance=function(){return this._instance},eo.prototype.init=function(to){this.delayUpdatingKeytipChange=to},eo.prototype.register=function(to,ro){ro===void 0&&(ro=!1);var no=to;ro||(no=this.addParentOverflow(to),this.sequenceMapping[no.keySequences.toString()]=no);var oo=this._getUniqueKtp(no);if(ro?this.persistedKeytips[oo.uniqueID]=oo:this.keytips[oo.uniqueID]=oo,this.inKeytipMode||!this.delayUpdatingKeytipChange){var io=ro?KeytipEvents.PERSISTED_KEYTIP_ADDED:KeytipEvents.KEYTIP_ADDED;EventGroup.raise(this,io,{keytip:no,uniqueID:oo.uniqueID})}return oo.uniqueID},eo.prototype.update=function(to,ro){var no=this.addParentOverflow(to),oo=this._getUniqueKtp(no,ro),io=this.keytips[ro];io&&(oo.keytip.visible=io.keytip.visible,this.keytips[ro]=oo,delete this.sequenceMapping[io.keytip.keySequences.toString()],this.sequenceMapping[oo.keytip.keySequences.toString()]=oo.keytip,(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&EventGroup.raise(this,KeytipEvents.KEYTIP_UPDATED,{keytip:oo.keytip,uniqueID:oo.uniqueID}))},eo.prototype.unregister=function(to,ro,no){no===void 0&&(no=!1),no?delete this.persistedKeytips[ro]:delete this.keytips[ro],!no&&delete this.sequenceMapping[to.keySequences.toString()];var oo=no?KeytipEvents.PERSISTED_KEYTIP_REMOVED:KeytipEvents.KEYTIP_REMOVED;(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&EventGroup.raise(this,oo,{keytip:to,uniqueID:ro})},eo.prototype.enterKeytipMode=function(){EventGroup.raise(this,KeytipEvents.ENTER_KEYTIP_MODE)},eo.prototype.exitKeytipMode=function(){EventGroup.raise(this,KeytipEvents.EXIT_KEYTIP_MODE)},eo.prototype.getKeytips=function(){var to=this;return Object.keys(this.keytips).map(function(ro){return to.keytips[ro].keytip})},eo.prototype.addParentOverflow=function(to){var ro=__spreadArray$1([],to.keySequences,!0);if(ro.pop(),ro.length!==0){var no=this.sequenceMapping[ro.toString()];if(no&&no.overflowSetSequence)return __assign$4(__assign$4({},to),{overflowSetSequence:no.overflowSetSequence})}return to},eo.prototype.menuExecute=function(to,ro){EventGroup.raise(this,KeytipEvents.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:to,keytipSequences:ro})},eo.prototype._getUniqueKtp=function(to,ro){return ro===void 0&&(ro=getId()),{keytip:__assign$4({},to),uniqueID:ro}},eo._instance=new eo,eo}();function sequencesToID(eo){return eo.reduce(function(to,ro){return to+KTP_SEPARATOR+ro.split("").join(KTP_SEPARATOR)},KTP_PREFIX)}function mergeOverflows(eo,to){var ro=to.length,no=__spreadArray$1([],to,!0).pop(),oo=__spreadArray$1([],eo,!0);return addElementAtIndex(oo,ro-1,no)}function getAriaDescribedBy(eo){var to=" "+KTP_LAYER_ID;return eo.length?to+" "+sequencesToID(eo):to}function useKeytipData(eo){var to=reactExports.useRef(),ro=eo.keytipProps?__assign$4({disabled:eo.disabled},eo.keytipProps):void 0,no=useConst$1(KeytipManager.getInstance()),oo=usePrevious(eo);useIsomorphicLayoutEffect(function(){to.current&&ro&&((oo==null?void 0:oo.keytipProps)!==eo.keytipProps||(oo==null?void 0:oo.disabled)!==eo.disabled)&&no.update(ro,to.current)}),useIsomorphicLayoutEffect(function(){return ro&&(to.current=no.register(ro)),function(){ro&&no.unregister(ro,to.current)}},[]);var io={ariaDescribedBy:void 0,keytipId:void 0};return ro&&(io=getKeytipData(no,ro,eo.ariaDescribedBy)),io}function getKeytipData(eo,to,ro){var no=eo.addParentOverflow(to),oo=mergeAriaAttributeValues(ro,getAriaDescribedBy(no.keySequences)),io=__spreadArray$1([],no.keySequences,!0);no.overflowSetSequence&&(io=mergeOverflows(io,no.overflowSetSequence));var so=sequencesToID(io);return{ariaDescribedBy:oo,keytipId:so}}var KeytipData=function(eo){var to,ro=eo.children,no=__rest$1(eo,["children"]),oo=useKeytipData(no),io=oo.keytipId,so=oo.ariaDescribedBy;return ro((to={},to[DATAKTP_TARGET]=io,to[DATAKTP_EXECUTE_TARGET]=io,to["aria-describedby"]=so,to))},ContextualMenuAnchor=function(eo){__extends$3(to,eo);function to(){var ro=eo!==null&&eo.apply(this,arguments)||this;return ro._anchor=reactExports.createRef(),ro._getMemoizedMenuButtonKeytipProps=memoizeFunction(function(no){return __assign$4(__assign$4({},no),{hasMenu:!0})}),ro._getSubmenuTarget=function(){return ro._anchor.current?ro._anchor.current:void 0},ro._onItemClick=function(no){var oo=ro.props,io=oo.item,so=oo.onItemClick;so&&so(io,no)},ro._renderAriaDescription=function(no,oo){return no?reactExports.createElement("span",{id:ro._ariaDescriptionId,className:oo},no):null},ro}return to.prototype.render=function(){var ro=this,no=this.props,oo=no.item,io=no.classNames,so=no.index,ao=no.focusableElementIndex,lo=no.totalItemCount,uo=no.hasCheckmarks,co=no.hasIcons,fo=no.expandedMenuItemKey,ho=no.onItemClick,po=no.openSubMenu,go=no.dismissSubMenu,vo=no.dismissMenu,bo=ContextualMenuItem;this.props.item.contextualMenuItemAs&&(bo=composeComponentAs(this.props.item.contextualMenuItemAs,bo)),this.props.contextualMenuItemAs&&(bo=composeComponentAs(this.props.contextualMenuItemAs,bo));var xo=oo.rel;oo.target&&oo.target.toLowerCase()==="_blank"&&(xo=xo||"nofollow noopener noreferrer");var _o=hasSubmenu(oo),Eo=getNativeProps(oo,anchorProperties),So=isItemDisabled(oo),To=oo.itemProps,wo=oo.ariaDescription,Co=oo.keytipProps;Co&&_o&&(Co=this._getMemoizedMenuButtonKeytipProps(Co)),wo&&(this._ariaDescriptionId=getId());var Oo=mergeAriaAttributeValues(oo.ariaDescribedBy,wo?this._ariaDescriptionId:void 0,Eo["aria-describedby"]),Ao={"aria-describedby":Oo};return reactExports.createElement("div",null,reactExports.createElement(KeytipData,{keytipProps:oo.keytipProps,ariaDescribedBy:Oo,disabled:So},function(Ro){return reactExports.createElement("a",__assign$4({},Ao,Eo,Ro,{ref:ro._anchor,href:oo.href,target:oo.target,rel:xo,className:io.root,role:"menuitem","aria-haspopup":_o||void 0,"aria-expanded":_o?oo.key===fo:void 0,"aria-posinset":ao+1,"aria-setsize":lo,"aria-disabled":isItemDisabled(oo),style:oo.style,onClick:ro._onItemClick,onMouseEnter:ro._onItemMouseEnter,onMouseLeave:ro._onItemMouseLeave,onMouseMove:ro._onItemMouseMove,onKeyDown:_o?ro._onItemKeyDown:void 0}),reactExports.createElement(bo,__assign$4({componentRef:oo.componentRef,item:oo,classNames:io,index:so,onCheckmarkClick:uo&&ho?ho:void 0,hasIcons:co,openSubMenu:po,dismissSubMenu:go,dismissMenu:vo,getSubmenuTarget:ro._getSubmenuTarget},To)),ro._renderAriaDescription(wo,io.screenReaderText))}))},to}(ContextualMenuItemWrapper),ContextualMenuButton=function(eo){__extends$3(to,eo);function to(){var ro=eo!==null&&eo.apply(this,arguments)||this;return ro._btn=reactExports.createRef(),ro._getMemoizedMenuButtonKeytipProps=memoizeFunction(function(no){return __assign$4(__assign$4({},no),{hasMenu:!0})}),ro._renderAriaDescription=function(no,oo){return no?reactExports.createElement("span",{id:ro._ariaDescriptionId,className:oo},no):null},ro._getSubmenuTarget=function(){return ro._btn.current?ro._btn.current:void 0},ro}return to.prototype.render=function(){var ro=this,no=this.props,oo=no.item,io=no.classNames,so=no.index,ao=no.focusableElementIndex,lo=no.totalItemCount,uo=no.hasCheckmarks,co=no.hasIcons,fo=no.contextualMenuItemAs,ho=no.expandedMenuItemKey,po=no.onItemMouseDown,go=no.onItemClick,vo=no.openSubMenu,bo=no.dismissSubMenu,xo=no.dismissMenu,_o=ContextualMenuItem;oo.contextualMenuItemAs&&(_o=composeComponentAs(oo.contextualMenuItemAs,_o)),fo&&(_o=composeComponentAs(fo,_o));var Eo=getIsChecked(oo),So=Eo!==null,To=getMenuItemAriaRole(oo),wo=hasSubmenu(oo),Co=oo.itemProps,Oo=oo.ariaLabel,Ao=oo.ariaDescription,Ro=getNativeProps(oo,buttonProperties);delete Ro.disabled;var No=oo.role||To;Ao&&(this._ariaDescriptionId=getId());var Mo=mergeAriaAttributeValues(oo.ariaDescribedBy,Ao?this._ariaDescriptionId:void 0,Ro["aria-describedby"]),Do={className:io.root,onClick:this._onItemClick,onKeyDown:wo?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(Fo){return po?po(oo,Fo):void 0},onMouseMove:this._onItemMouseMove,href:oo.href,title:oo.title,"aria-label":Oo,"aria-describedby":Mo,"aria-haspopup":wo||void 0,"aria-expanded":wo?oo.key===ho:void 0,"aria-posinset":ao+1,"aria-setsize":lo,"aria-disabled":isItemDisabled(oo),"aria-checked":(No==="menuitemcheckbox"||No==="menuitemradio")&&So?!!Eo:void 0,"aria-selected":No==="menuitem"&&So?!!Eo:void 0,role:No,style:oo.style},jo=oo.keytipProps;return jo&&wo&&(jo=this._getMemoizedMenuButtonKeytipProps(jo)),reactExports.createElement(KeytipData,{keytipProps:jo,ariaDescribedBy:Mo,disabled:isItemDisabled(oo)},function(Fo){return reactExports.createElement("button",__assign$4({ref:ro._btn},Ro,Do,Fo),reactExports.createElement(_o,__assign$4({componentRef:oo.componentRef,item:oo,classNames:io,index:so,onCheckmarkClick:uo&&go?go:void 0,hasIcons:co,openSubMenu:vo,dismissSubMenu:bo,dismissMenu:xo,getSubmenuTarget:ro._getSubmenuTarget},Co)),ro._renderAriaDescription(Ao,io.screenReaderText))})},to}(ContextualMenuItemWrapper),getStyles$4=function(eo){var to=eo.theme,ro=eo.getClassNames,no=eo.className;if(!to)throw new Error("Theme is undefined or null.");if(ro){var oo=ro(to);return{wrapper:[oo.wrapper],divider:[oo.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},no],divider:[{width:1,height:"100%",backgroundColor:to.palette.neutralTertiaryAlt}]}},getClassNames$4=classNamesFunction(),VerticalDividerBase=reactExports.forwardRef(function(eo,to){var ro=eo.styles,no=eo.theme,oo=eo.getClassNames,io=eo.className,so=getClassNames$4(ro,{theme:no,getClassNames:oo,className:io});return reactExports.createElement("span",{className:so.wrapper,ref:to},reactExports.createElement("span",{className:so.divider}))});VerticalDividerBase.displayName="VerticalDividerBase";var VerticalDivider=styled(VerticalDividerBase,getStyles$4,void 0,{scope:"VerticalDivider"}),TouchIdleDelay=500,ContextualMenuSplitButton=function(eo){__extends$3(to,eo);function to(ro){var no=eo.call(this,ro)||this;return no._getMemoizedMenuButtonKeytipProps=memoizeFunction(function(oo){return __assign$4(__assign$4({},oo),{hasMenu:!0})}),no._onItemKeyDown=function(oo){var io=no.props,so=io.item,ao=io.onItemKeyDown;oo.which===KeyCodes$1.enter?(no._executeItemClick(oo),oo.preventDefault(),oo.stopPropagation()):ao&&ao(so,oo)},no._getSubmenuTarget=function(){return no._splitButton},no._renderAriaDescription=function(oo,io){return oo?reactExports.createElement("span",{id:no._ariaDescriptionId,className:io},oo):null},no._onItemMouseEnterPrimary=function(oo){var io=no.props,so=io.item,ao=io.onItemMouseEnter;ao&&ao(__assign$4(__assign$4({},so),{subMenuProps:void 0,items:void 0}),oo,no._splitButton)},no._onItemMouseEnterIcon=function(oo){var io=no.props,so=io.item,ao=io.onItemMouseEnter;ao&&ao(so,oo,no._splitButton)},no._onItemMouseMovePrimary=function(oo){var io=no.props,so=io.item,ao=io.onItemMouseMove;ao&&ao(__assign$4(__assign$4({},so),{subMenuProps:void 0,items:void 0}),oo,no._splitButton)},no._onItemMouseMoveIcon=function(oo){var io=no.props,so=io.item,ao=io.onItemMouseMove;ao&&ao(so,oo,no._splitButton)},no._onIconItemClick=function(oo){var io=no.props,so=io.item,ao=io.onItemClickBase;ao&&ao(so,oo,no._splitButton?no._splitButton:oo.currentTarget)},no._executeItemClick=function(oo){var io=no.props,so=io.item,ao=io.executeItemClick,lo=io.onItemClick;if(!(so.disabled||so.isDisabled)){if(no._processingTouch&&!so.canCheck&&lo)return lo(so,oo);ao&&ao(so,oo)}},no._onTouchStart=function(oo){no._splitButton&&!("onpointerdown"in no._splitButton)&&no._handleTouchAndPointerEvent(oo)},no._onPointerDown=function(oo){oo.pointerType==="touch"&&(no._handleTouchAndPointerEvent(oo),oo.preventDefault(),oo.stopImmediatePropagation())},no._async=new Async(no),no._events=new EventGroup(no),no._dismissLabelId=getId(),no}return to.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},to.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},to.prototype.render=function(){var ro=this,no,oo=this.props,io=oo.item,so=oo.classNames,ao=oo.index,lo=oo.focusableElementIndex,uo=oo.totalItemCount,co=oo.hasCheckmarks,fo=oo.hasIcons,ho=oo.onItemMouseLeave,po=oo.expandedMenuItemKey,go=hasSubmenu(io),vo=io.keytipProps;vo&&(vo=this._getMemoizedMenuButtonKeytipProps(vo));var bo=io.ariaDescription;bo&&(this._ariaDescriptionId=getId());var xo=(no=getIsChecked(io))!==null&&no!==void 0?no:void 0;return reactExports.createElement(KeytipData,{keytipProps:vo,disabled:isItemDisabled(io)},function(_o){return reactExports.createElement("div",{"data-ktp-target":_o["data-ktp-target"],ref:function(Eo){return ro._splitButton=Eo},role:getMenuItemAriaRole(io),"aria-label":io.ariaLabel,className:so.splitContainer,"aria-disabled":isItemDisabled(io),"aria-expanded":go?io.key===po:void 0,"aria-haspopup":!0,"aria-describedby":mergeAriaAttributeValues(io.ariaDescribedBy,bo?ro._ariaDescriptionId:void 0,_o["aria-describedby"]),"aria-checked":xo,"aria-posinset":lo+1,"aria-setsize":uo,onMouseEnter:ro._onItemMouseEnterPrimary,onMouseLeave:ho?ho.bind(ro,__assign$4(__assign$4({},io),{subMenuProps:null,items:null})):void 0,onMouseMove:ro._onItemMouseMovePrimary,onKeyDown:ro._onItemKeyDown,onClick:ro._executeItemClick,onTouchStart:ro._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":io["aria-roledescription"]},ro._renderSplitPrimaryButton(io,so,ao,co,fo),ro._renderSplitDivider(io),ro._renderSplitIconButton(io,so,ao,_o),ro._renderAriaDescription(bo,so.screenReaderText))})},to.prototype._renderSplitPrimaryButton=function(ro,no,oo,io,so){var ao=this.props,lo=ao.contextualMenuItemAs,uo=lo===void 0?ContextualMenuItem:lo,co=ao.onItemClick,fo={key:ro.key,disabled:isItemDisabled(ro)||ro.primaryDisabled,name:ro.name,text:ro.text||ro.name,secondaryText:ro.secondaryText,className:no.splitPrimary,canCheck:ro.canCheck,isChecked:ro.isChecked,checked:ro.checked,iconProps:ro.iconProps,id:this._dismissLabelId,onRenderIcon:ro.onRenderIcon,data:ro.data,"data-is-focusable":!1},ho=ro.itemProps;return reactExports.createElement("button",__assign$4({},getNativeProps(fo,buttonProperties)),reactExports.createElement(uo,__assign$4({"data-is-focusable":!1,item:fo,classNames:no,index:oo,onCheckmarkClick:io&&co?co:void 0,hasIcons:so},ho)))},to.prototype._renderSplitDivider=function(ro){var no=ro.getSplitButtonVerticalDividerClassNames||getSplitButtonVerticalDividerClassNames;return reactExports.createElement(VerticalDivider,{getClassNames:no})},to.prototype._renderSplitIconButton=function(ro,no,oo,io){var so=this.props,ao=so.onItemMouseLeave,lo=so.onItemMouseDown,uo=so.openSubMenu,co=so.dismissSubMenu,fo=so.dismissMenu,ho=ContextualMenuItem;this.props.item.contextualMenuItemAs&&(ho=composeComponentAs(this.props.item.contextualMenuItemAs,ho)),this.props.contextualMenuItemAs&&(ho=composeComponentAs(this.props.contextualMenuItemAs,ho));var po={onClick:this._onIconItemClick,disabled:isItemDisabled(ro),className:no.splitMenu,subMenuProps:ro.subMenuProps,submenuIconProps:ro.submenuIconProps,split:!0,key:ro.key,"aria-labelledby":this._dismissLabelId},go=__assign$4(__assign$4({},getNativeProps(po,buttonProperties)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:ao?ao.bind(this,ro):void 0,onMouseDown:function(bo){return lo?lo(ro,bo):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":io["data-ktp-execute-target"],"aria-haspopup":!0}),vo=ro.itemProps;return reactExports.createElement("button",__assign$4({},go),reactExports.createElement(ho,__assign$4({componentRef:ro.componentRef,item:po,classNames:no,index:oo,hasIcons:!1,openSubMenu:uo,dismissSubMenu:co,dismissMenu:fo,getSubmenuTarget:this._getSubmenuTarget},vo)))},to.prototype._handleTouchAndPointerEvent=function(ro){var no=this,oo=this.props.onTap;oo&&oo(ro),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){no._processingTouch=!1,no._lastTouchTimeoutId=void 0},TouchIdleDelay)},to}(ContextualMenuItemWrapper),ResponsiveMode;(function(eo){eo[eo.small=0]="small",eo[eo.medium=1]="medium",eo[eo.large=2]="large",eo[eo.xLarge=3]="xLarge",eo[eo.xxLarge=4]="xxLarge",eo[eo.xxxLarge=5]="xxxLarge",eo[eo.unknown=999]="unknown"})(ResponsiveMode||(ResponsiveMode={}));var RESPONSIVE_MAX_CONSTRAINT=[479,639,1023,1365,1919,99999999],_defaultMode,_lastMode;function getInitialResponsiveMode(){var eo;return(eo=_defaultMode??_lastMode)!==null&&eo!==void 0?eo:ResponsiveMode.large}function getWidthOfCurrentWindow(eo){try{return eo.document.documentElement.clientWidth}catch{return eo.innerWidth}}function getResponsiveMode(eo){var to=ResponsiveMode.small;if(eo){try{for(;getWidthOfCurrentWindow(eo)>RESPONSIVE_MAX_CONSTRAINT[to];)to++}catch{to=getInitialResponsiveMode()}_lastMode=to}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 to}var useResponsiveMode=function(eo,to){var ro=reactExports.useState(getInitialResponsiveMode()),no=ro[0],oo=ro[1],io=reactExports.useCallback(function(){var ao=getResponsiveMode(getWindow(eo.current));no!==ao&&oo(ao)},[eo,no]),so=useWindow();return useOnEvent(so,"resize",io),reactExports.useEffect(function(){to===void 0&&io()},[to]),to??no},MenuContext=reactExports.createContext({}),getClassNames$3=classNamesFunction(),getContextualMenuItemClassNames=classNamesFunction(),DEFAULT_PROPS$1={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:DirectionalHint.bottomAutoEdge,beakWidth:16};function getItemCount(eo){for(var to=0,ro=0,no=eo;ro0){var Ml=0;return reactExports.createElement("li",{role:"presentation",key:Xo.key||qs.key||"section-".concat(zo)},reactExports.createElement("div",__assign$4({},ys),reactExports.createElement("ul",{className:Qo.list,role:"presentation"},Xo.topDivider&&Ls(zo,Ko,!0,!0),vs&&zs(vs,qs.key||zo,Ko,qs.title),Xo.items.map(function(Ol,Cl){var Ul=Jo(Ol,Cl,Ml,getItemCount(Xo.items),Vo,Bo,Qo);if(Ol.itemType!==ContextualMenuItemType.Divider&&Ol.itemType!==ContextualMenuItemType.Header){var fu=Ol.customOnRenderListLength?Ol.customOnRenderListLength:1;Ml+=fu}return Ul}),Xo.bottomDivider&&Ls(zo,Ko,!1,!0))))}}},zs=function(qs,Ko,Qo,zo){return reactExports.createElement("li",{role:"presentation",title:zo,key:Ko,className:Qo.item},qs)},Ls=function(qs,Ko,Qo,zo){return zo||qs>0?reactExports.createElement("li",{role:"separator",key:"separator-"+qs+(Qo===void 0?"":Qo?"-top":"-bottom"),className:Ko.divider,"aria-hidden":"true"}):null},ga=function(qs,Ko,Qo,zo,Vo,Bo,Xo){if(qs.onRender)return qs.onRender(__assign$4({"aria-posinset":zo+1,"aria-setsize":Vo},qs),lo);var vs=oo.contextualMenuItemAs,ys={item:qs,classNames:Ko,index:Qo,focusableElementIndex:zo,totalItemCount:Vo,hasCheckmarks:Bo,hasIcons:Xo,contextualMenuItemAs:vs,onItemMouseEnter:Uo,onItemMouseLeave:Zo,onItemMouseMove:Yo,onItemMouseDown,executeItemClick:As,onItemKeyDown:Ho,expandedMenuItemKey:go,openSubMenu:vo,dismissSubMenu:xo,dismissMenu:lo};if(qs.href){var ps=ContextualMenuAnchor;return qs.contextualMenuItemWrapperAs&&(ps=composeComponentAs(qs.contextualMenuItemWrapperAs,ps)),reactExports.createElement(ps,__assign$4({},ys,{onItemClick:Ss}))}if(qs.split&&hasSubmenu(qs)){var Rs=ContextualMenuSplitButton;return qs.contextualMenuItemWrapperAs&&(Rs=composeComponentAs(qs.contextualMenuItemWrapperAs,Rs)),reactExports.createElement(Rs,__assign$4({},ys,{onItemClick:_s,onItemClickBase:Ns,onTap:Ro}))}var Us=ContextualMenuButton;return qs.contextualMenuItemWrapperAs&&(Us=composeComponentAs(qs.contextualMenuItemWrapperAs,Us)),reactExports.createElement(Us,__assign$4({},ys,{onItemClick:_s,onItemClickBase:Ns}))},Js=function(qs,Ko,Qo,zo,Vo,Bo){var Xo=ContextualMenuItem;qs.contextualMenuItemAs&&(Xo=composeComponentAs(qs.contextualMenuItemAs,Xo)),oo.contextualMenuItemAs&&(Xo=composeComponentAs(oo.contextualMenuItemAs,Xo));var vs=qs.itemProps,ys=qs.id,ps=vs&&getNativeProps(vs,divProperties);return reactExports.createElement("div",__assign$4({id:ys,className:Qo.header},ps,{style:qs.style}),reactExports.createElement(Xo,__assign$4({item:qs,classNames:Ko,index:zo,onCheckmarkClick:Vo?_s:void 0,hasIcons:Bo},vs)))},Xs=oo.isBeakVisible,$a=oo.items,Ll=oo.labelElementId,Kl=oo.id,Xl=oo.className,Nl=oo.beakWidth,xa=oo.directionalHint,El=oo.directionalHintForRTL,cu=oo.alignTargetEdge,ks=oo.gapSpace,Es=oo.coverTarget,bs=oo.ariaLabel,Os=oo.doNotLayer,Vs=oo.target,Ks=oo.bounds,Ms=oo.useTargetWidth,Hs=oo.useTargetAsMinWidth,Zs=oo.directionalHintFixed,xl=oo.shouldFocusOnMount,Sl=oo.shouldFocusOnContainer,$l=oo.title,ru=oo.styles,au=oo.theme,zl=oo.calloutProps,pu=oo.onRenderSubMenu,Su=pu===void 0?onDefaultRenderSubMenu:pu,Zl=oo.onRenderMenuList,Dl=Zl===void 0?function(qs,Ko){return ws(qs,mu)}:Zl,gu=oo.focusZoneProps,lu=oo.getMenuClassNames,mu=lu?lu(au,Xl):getClassNames$3(ru,{theme:au,className:Xl}),ou=Fl($a);function Fl(qs){for(var Ko=0,Qo=qs;Ko0){var Ru=getItemCount($a),_h=mu.subComponentStyles?mu.subComponentStyles.callout:void 0;return reactExports.createElement(MenuContext.Consumer,null,function(qs){return reactExports.createElement(Callout,__assign$4({styles:_h,onRestoreFocus:ho},zl,{target:Vs||qs.target,isBeakVisible:Xs,beakWidth:Nl,directionalHint:xa,directionalHintForRTL:El,gapSpace:ks,coverTarget:Es,doNotLayer:Os,className:css$3("ms-ContextualMenu-Callout",zl&&zl.className),setInitialFocus:xl,onDismiss:oo.onDismiss||qs.onDismiss,onScroll:Co,bounds:Ks,directionalHintFixed:Zs,alignTargetEdge:cu,hidden:oo.hidden||qs.hidden,ref:to}),reactExports.createElement("div",{style:Nu,ref:io,id:Kl,className:mu.container,tabIndex:Sl?0:-1,onKeyDown:Lo,onKeyUp:$o,onFocusCapture:To,"aria-label":bs,"aria-labelledby":Ll,role:"menu"},$l&&reactExports.createElement("div",{className:mu.title}," ",$l," "),$a&&$a.length?Ds(Dl({ariaLabel:bs,items:$a,totalItemCount:Ru,hasCheckmarks:Ys,hasIcons:ou,defaultMenuItemRenderer:function(Ko){return Cs(Ko,mu)},labelElementId:Ll},function(Ko,Qo){return ws(Ko,mu)}),yl):null,vu&&Su(vu,onDefaultRenderSubMenu)),reactExports.createElement(FocusRects,null))})}else return null}),function(eo,to){return!to.shouldUpdateWhenHidden&&eo.hidden&&to.hidden?!0:shallowCompare(eo,to)});ContextualMenuBase.displayName="ContextualMenuBase";function isAltOrMeta(eo){return eo.which===KeyCodes$1.alt||eo.key==="Meta"}function onItemMouseDown(eo,to){var ro;(ro=eo.onMouseDown)===null||ro===void 0||ro.call(eo,eo,to)}function onDefaultRenderSubMenu(eo,to){throw Error("ContextualMenuBase: onRenderSubMenu callback is null or undefined. Please ensure to set `onRenderSubMenu` property either manually or with `styled` helper.")}function findItemByKeyFromItems(eo,to){for(var ro=0,no=to;ro=($o||ResponsiveMode.small)&&reactExports.createElement(Layer,__assign$4({ref:ws},$l),reactExports.createElement(Popup,__assign$4({role:Zs?"alertdialog":"dialog",ariaLabelledBy:No,ariaDescribedBy:Do,onDismiss:Co,shouldRestoreFocus:!_o,enableAriaHiddenSiblings:Yo,"aria-modal":!Ho},Zo),reactExports.createElement("div",{className:Sl.root,role:Ho?void 0:"document"},!Ho&&reactExports.createElement(Overlay,__assign$4({"aria-hidden":!0,isDarkThemed:wo,onClick:Eo?void 0:Co,allowTouchBodyScroll:lo},Ao)),qo?reactExports.createElement(DraggableZone,{handleSelector:qo.dragHandleSelector||"#".concat(Jo),preventDragSelector:"button",onStart:Su,onDragChange:Zl,onStop:Dl,position:Nl},ou):ou)))||null});ModalBase.displayName="Modal";var Modal=styled(ModalBase,getStyles$2,void 0,{scope:"Modal",fields:["theme","styles","enableAriaHiddenSiblings"]});Modal.displayName="Modal";var assign$1=__assign$4;function withSlots(eo,to){for(var ro=[],no=2;no0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return _renderSlot(to[so],lo,no[so],no.slots&&no.slots[so],no._defaultStyles&&no._defaultStyles[so],no.theme)};ao.isSlot=!0,ro[so]=ao}};for(var io in to)oo(io);return ro}function _translateShorthand(eo,to){var ro,no;return typeof to=="string"||typeof to=="number"||typeof to=="boolean"?no=(ro={},ro[eo]=to,ro):no=to,no}function _constructFinalProps(eo,to){for(var ro=[],no=2;no2)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(ro.length===2)return{rowGap:_getValueUnitGap(_getThemedSpacing(ro[0],to)),columnGap:_getValueUnitGap(_getThemedSpacing(ro[1],to))};var no=_getValueUnitGap(_getThemedSpacing(eo,to));return{rowGap:no,columnGap:no}},parsePadding=function(eo,to){if(eo===void 0||typeof eo=="number"||eo==="")return eo;var ro=eo.split(" ");return ro.length<2?_getThemedSpacing(eo,to):ro.reduce(function(no,oo){return _getThemedSpacing(no,to)+" "+_getThemedSpacing(oo,to)})},nameMap={start:"flex-start",end:"flex-end"},GlobalClassNames={root:"ms-Stack",inner:"ms-Stack-inner",child:"ms-Stack-child"},styles$2=function(eo,to,ro){var no,oo,io,so,ao,lo,uo,co,fo,ho,po,go,vo,bo=eo.className,xo=eo.disableShrink,_o=eo.enableScopedSelectors,Eo=eo.grow,So=eo.horizontal,To=eo.horizontalAlign,wo=eo.reversed,Co=eo.verticalAlign,Oo=eo.verticalFill,Ao=eo.wrap,Ro=getGlobalClassNames(GlobalClassNames,to),No=ro&&ro.childrenGap?ro.childrenGap:eo.gap,Mo=ro&&ro.maxHeight?ro.maxHeight:eo.maxHeight,Do=ro&&ro.maxWidth?ro.maxWidth:eo.maxWidth,jo=ro&&ro.padding?ro.padding:eo.padding,Fo=parseGap(No,to),$o=Fo.rowGap,Lo=Fo.columnGap,Ho="".concat(-.5*Lo.value).concat(Lo.unit),qo="".concat(-.5*$o.value).concat($o.unit),Uo={textOverflow:"ellipsis"},Yo="> "+(_o?"."+GlobalClassNames.child:"*"),Zo=(no={},no["".concat(Yo,":not(.").concat(GlobalClassNames$1.root,")")]={flexShrink:0},no);return Ao?{root:[Ro.root,{flexWrap:"wrap",maxWidth:Do,maxHeight:Mo,width:"auto",overflow:"visible",height:"100%"},To&&(oo={},oo[So?"justifyContent":"alignItems"]=nameMap[To]||To,oo),Co&&(io={},io[So?"alignItems":"justifyContent"]=nameMap[Co]||Co,io),bo,{display:"flex"},So&&{height:Oo?"100%":"auto"}],inner:[Ro.inner,(so={display:"flex",flexWrap:"wrap",marginLeft:Ho,marginRight:Ho,marginTop:qo,marginBottom:qo,overflow:"visible",boxSizing:"border-box",padding:parsePadding(jo,to),width:Lo.value===0?"100%":"calc(100% + ".concat(Lo.value).concat(Lo.unit,")"),maxWidth:"100vw"},so[Yo]=__assign$4({margin:"".concat(.5*$o.value).concat($o.unit," ").concat(.5*Lo.value).concat(Lo.unit)},Uo),so),xo&&Zo,To&&(ao={},ao[So?"justifyContent":"alignItems"]=nameMap[To]||To,ao),Co&&(lo={},lo[So?"alignItems":"justifyContent"]=nameMap[Co]||Co,lo),So&&(uo={flexDirection:wo?"row-reverse":"row",height:$o.value===0?"100%":"calc(100% + ".concat($o.value).concat($o.unit,")")},uo[Yo]={maxWidth:Lo.value===0?"100%":"calc(100% - ".concat(Lo.value).concat(Lo.unit,")")},uo),!So&&(co={flexDirection:wo?"column-reverse":"column",height:"calc(100% + ".concat($o.value).concat($o.unit,")")},co[Yo]={maxHeight:$o.value===0?"100%":"calc(100% - ".concat($o.value).concat($o.unit,")")},co)]}:{root:[Ro.root,(fo={display:"flex",flexDirection:So?wo?"row-reverse":"row":wo?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:Oo?"100%":"auto",maxWidth:Do,maxHeight:Mo,padding:parsePadding(jo,to),boxSizing:"border-box"},fo[Yo]=Uo,fo),xo&&Zo,Eo&&{flexGrow:Eo===!0?1:Eo},To&&(ho={},ho[So?"justifyContent":"alignItems"]=nameMap[To]||To,ho),Co&&(po={},po[So?"alignItems":"justifyContent"]=nameMap[Co]||Co,po),So&&Lo.value>0&&(go={},go[wo?"".concat(Yo,":not(:last-child)"):"".concat(Yo,":not(:first-child)")]={marginLeft:"".concat(Lo.value).concat(Lo.unit)},go),!So&&$o.value>0&&(vo={},vo[wo?"".concat(Yo,":not(:last-child)"):"".concat(Yo,":not(:first-child)")]={marginTop:"".concat($o.value).concat($o.unit)},vo),bo]}},StackView=function(eo){var to=eo.as,ro=to===void 0?"div":to,no=eo.disableShrink,oo=no===void 0?!1:no,io=eo.doNotRenderFalsyValues,so=io===void 0?!1:io,ao=eo.enableScopedSelectors,lo=ao===void 0?!1:ao,uo=eo.wrap,co=__rest$1(eo,["as","disableShrink","doNotRenderFalsyValues","enableScopedSelectors","wrap"]),fo=_processStackChildren(eo.children,{disableShrink:oo,enableScopedSelectors:lo,doNotRenderFalsyValues:so}),ho=getNativeProps(co,htmlElementProperties),po=getSlots(eo,{root:ro,inner:"div"});return uo?withSlots(po.root,__assign$4({},ho),withSlots(po.inner,null,fo)):withSlots(po.root,__assign$4({},ho),fo)};function _processStackChildren(eo,to){var ro=to.disableShrink,no=to.enableScopedSelectors,oo=to.doNotRenderFalsyValues,io=reactExports.Children.toArray(eo);return io=reactExports.Children.map(io,function(so){if(!so)return oo?null:so;if(!reactExports.isValidElement(so))return so;if(so.type===reactExports.Fragment)return so.props.children?_processStackChildren(so.props.children,{disableShrink:ro,enableScopedSelectors:no,doNotRenderFalsyValues:oo}):null;var ao=so,lo={};_isStackItem(so)&&(lo={shrink:!ro});var uo=ao.props.className;return reactExports.cloneElement(ao,__assign$4(__assign$4(__assign$4(__assign$4({},lo),ao.props),uo&&{className:uo}),no&&{className:css$3(GlobalClassNames.child,uo)}))}),io}function _isStackItem(eo){return!!eo&&typeof eo=="object"&&!!eo.type&&eo.type.displayName===StackItem.displayName}var StackStatics={Item:StackItem},Stack$2=createComponent(StackView,{displayName:"Stack",styles:styles$2,statics:StackStatics});const AzureContentSafetyIcon="data:image/svg+xml,%3csvg%20id='uuid-40011f3f-22d0-4882-8376-afe2ef514a7e'%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%3e%3cdefs%3e%3clinearGradient%20id='uuid-5c4dfc33-1236-40a5-b487-5c8d33e4013b'%20x1='12.062'%20y1='5.427'%20x2='12.062'%20y2='3.991'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2376bc2d'/%3e%3cstop%20offset='1'%20stop-color='%2386d633'/%3e%3c/linearGradient%3e%3clinearGradient%20id='uuid-5dc2ae3c-3a23-47ff-9dc1-e087ff0e2742'%20x1='2.902'%20y1='6.762'%20x2='9.455'%20y2='6.762'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23e6e6e6'/%3e%3cstop%20offset='1'%20stop-color='%23999'/%3e%3c/linearGradient%3e%3clinearGradient%20id='uuid-d781b8b0-afbe-4f6e-a478-ee1974441cbf'%20x1='-1288.505'%20y1='-521.774'%20x2='-1284.777'%20y2='-521.774'%20gradientTransform='translate(-512.319%201291.819)%20rotate(90)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2386d633'/%3e%3cstop%20offset='1'%20stop-color='%2376bc2d'/%3e%3c/linearGradient%3e%3clinearGradient%20id='uuid-efb884ed-afc6-4667-82f2-34983e82b107'%20x1='2.902'%20y1='11.544'%20x2='9.455'%20y2='11.544'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23e6e6e6'/%3e%3cstop%20offset='1'%20stop-color='%23999'/%3e%3c/linearGradient%3e%3clinearGradient%20id='uuid-e8c8c19d-aa6c-48ed-823e-cfec5a014d78'%20x1='-274.183'%20y1='-521.774'%20x2='-279.397'%20y2='-521.774'%20gradientTransform='translate(-512.319%20-263.224)%20rotate(-90)%20scale(1%20-1)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23faa21d'/%3e%3cstop%20offset='.999'%20stop-color='%23f78d1e'/%3e%3c/linearGradient%3e%3clinearGradient%20id='uuid-7a6a88dd-1778-43da-9238-45bfc5a17b3e'%20x1='-140.646'%20y1='13.626'%20x2='-143.764'%20y2='4.784'%20gradientTransform='translate(149.182)%20skewX(-19.425)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2350e6ff'/%3e%3cstop%20offset='1'%20stop-color='%239cebff'/%3e%3c/linearGradient%3e%3c/defs%3e%3cpath%20d='m16.62,4.541l-2.765-1.597c-.129-.075-.291.019-.291.168v.822h-6.158v1.55h6.158v.822c0,.149.161.242.291.168l2.765-1.597c.129-.075.129-.261,0-.336Z'%20fill='url(%23uuid-5c4dfc33-1236-40a5-b487-5c8d33e4013b)'/%3e%3cpath%20d='m4.495,9.616h-1.592v-4.634c-.002-.591.476-1.071,1.067-1.073,0,0,.001,0,.002,0h5.484v1.592h-4.96v4.115Z'%20fill='url(%23uuid-5dc2ae3c-3a23-47ff-9dc1-e087ff0e2742)'/%3e%3ccircle%20cx='9.455'%20cy='4.603'%20r='2.607'%20fill='url(%23uuid-d781b8b0-afbe-4f6e-a478-ee1974441cbf)'/%3e%3cpath%20d='m9.455,14.4H3.971c-.591,0-1.07-.48-1.069-1.071,0,0,0-.001,0-.002v-4.638h1.592v4.115h4.96v1.596Z'%20fill='url(%23uuid-efb884ed-afc6-4667-82f2-34983e82b107)'/%3e%3ccircle%20cx='9.455'%20cy='13.397'%20r='2.607'%20fill='url(%23uuid-e8c8c19d-aa6c-48ed-823e-cfec5a014d78)'/%3e%3cpath%20d='m5.008,12.097H1.696c-.272,0-.453-.301-.405-.673l.584-4.534c.048-.372.307-.673.578-.673h3.312c.272,0,.453.301.405.673l-.584,4.534c-.048.372-.307.673-.578.673Z'%20fill='url(%23uuid-7a6a88dd-1778-43da-9238-45bfc5a17b3e)'/%3e%3cpath%20d='m.362,3.138C.162,3.138,0,2.976,0,2.777h0V.361C0,.162.162,0,.362,0h2.266c.2,0,.362.162.362.361,0,.199-.162.361-.362.361H.724v2.053c0,.199-.161.362-.361.362,0,0,0,0-.001,0Zm17.638-.361V.361C18,.162,17.838,0,17.638,0h-2.266c-.2,0-.362.162-.362.361s.162.361.362.361h1.904v2.053c0,.199.162.361.362.361.2,0,.361-.162.362-.361h0ZM2.99,17.639c0-.199-.162-.361-.362-.361H.724v-2.053c0-.199-.162-.361-.362-.361-.2,0-.362.162-.362.361v2.415c0,.199.163.36.362.36h2.266c.2,0,.362-.162.362-.361Zm15.01.001v-2.415c0-.199-.162-.361-.362-.361-.2,0-.361.162-.362.361v2.053h-1.904c-.2,0-.362.162-.362.362,0,.199.162.361.362.361h2.266c.199,0,.361-.161.362-.36Z'%20fill='%2376bc2d'/%3e%3c/svg%3e",BingLogoIcon="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20234%20343.41'%3e%3cdefs%3e%3clinearGradient%20id='a'%20x1='-29.25'%20y1='662.02'%20x2='-23.09'%20y2='658.46'%20gradientTransform='matrix(24.45,%200,%200,%20-24.45,%20967.18,%2016420.97)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2337bdff'/%3e%3cstop%20offset='0.18'%20stop-color='%2333bffd'/%3e%3cstop%20offset='0.36'%20stop-color='%2328c5f5'/%3e%3cstop%20offset='0.53'%20stop-color='%2315d0e9'/%3e%3cstop%20offset='0.55'%20stop-color='%2312d1e7'/%3e%3cstop%20offset='0.59'%20stop-color='%231cd2e5'/%3e%3cstop%20offset='0.77'%20stop-color='%2342d8dc'/%3e%3cstop%20offset='0.91'%20stop-color='%2359dbd6'/%3e%3cstop%20offset='1'%20stop-color='%2362dcd4'/%3e%3c/linearGradient%3e%3clinearGradient%20id='b'%20x1='-32.86'%20y1='656.68'%20x2='-23.89'%20y2='656.68'%20gradientTransform='matrix(24.45,%200,%200,%20-24.45,%20967.18,%2016420.97)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2339d2ff'/%3e%3cstop%20offset='0.15'%20stop-color='%2338cefe'/%3e%3cstop%20offset='0.29'%20stop-color='%2335c3fa'/%3e%3cstop%20offset='0.43'%20stop-color='%232fb0f3'/%3e%3cstop%20offset='0.55'%20stop-color='%23299aeb'/%3e%3cstop%20offset='0.58'%20stop-color='%232692ec'/%3e%3cstop%20offset='0.76'%20stop-color='%231a6cf1'/%3e%3cstop%20offset='0.91'%20stop-color='%231355f4'/%3e%3cstop%20offset='1'%20stop-color='%23104cf5'/%3e%3c/linearGradient%3e%3clinearGradient%20id='c'%20x1='-31.2'%20y1='655.9'%20x2='-31.2'%20y2='667.89'%20gradientTransform='matrix(24.45,%200,%200,%20-24.45,%20967.18,%2016420.97)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%231b48ef'/%3e%3cstop%20offset='0.12'%20stop-color='%231c51f0'/%3e%3cstop%20offset='0.32'%20stop-color='%231e69f5'/%3e%3cstop%20offset='0.57'%20stop-color='%232190fb'/%3e%3cstop%20offset='1'%20stop-color='%2326b8f4'/%3e%3c/linearGradient%3e%3cclipPath%20id='d'%20transform='translate(-163%20-82.94)'%3e%3crect%20x='163.02'%20y='288.38'%20width='227.17'%20height='140.76'%20style='fill:none'/%3e%3c/clipPath%3e%3clinearGradient%20id='e'%20x1='-31.08'%20y1='654.47'%20x2='-25.54'%20y2='660'%20gradientTransform='matrix(24.45,%200,%200,%20-24.45,%20967.18,%2016420.97)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23fff'/%3e%3cstop%20offset='0.37'%20stop-color='%23fdfdfd'/%3e%3cstop%20offset='0.51'%20stop-color='%23f6f6f6'/%3e%3cstop%20offset='0.6'%20stop-color='%23ebebeb'/%3e%3cstop%20offset='0.68'%20stop-color='%23dadada'/%3e%3cstop%20offset='0.75'%20stop-color='%23c4c4c4'/%3e%3cstop%20offset='0.81'%20stop-color='%23a8a8a8'/%3e%3cstop%20offset='0.86'%20stop-color='%23888'/%3e%3cstop%20offset='0.91'%20stop-color='%23626262'/%3e%3cstop%20offset='0.95'%20stop-color='%23373737'/%3e%3cstop%20offset='0.99'%20stop-color='%23090909'/%3e%3cstop%20offset='1'/%3e%3c/linearGradient%3e%3cclipPath%20id='f'%20transform='translate(-163%20-82.94)'%3e%3crect%20x='163.02'%20y='82.87'%20width='86.51'%20height='302.96'%20style='fill:none'/%3e%3c/clipPath%3e%3clinearGradient%20id='g'%20x1='-31.2'%20y1='668.1'%20x2='-31.2'%20y2='656.02'%20xlink:href='%23e'/%3e%3c/defs%3e%3ctitle%3ebing-logo%3c/title%3e%3cpath%20d='M397,303.4a92.73,92.73,0,0,1-24.84,63.16,41.81,41.81,0,0,0,4.5-6,38.11,38.11,0,0,0,2.69-5.08,17.7,17.7,0,0,0,.74-1.78,17.25,17.25,0,0,0,.65-1.78c.21-.56.39-1.14.55-1.72s.33-1.2.46-1.81l.07-.21c.14-.6.25-1.2.37-1.81s.23-1.25.33-1.88v0c.09-.58.16-1.16.21-1.76a40,40,0,0,0,.21-4.13A41.41,41.41,0,0,0,377,317.11a36.51,36.51,0,0,0-2.85-4.17,39.93,39.93,0,0,0-4-4.43,41.45,41.45,0,0,0-12.36-8.28,38.78,38.78,0,0,0-6.22-2.14l-.09,0-.74-.25-10.81-3.71v0l-28.27-9.72c-.09,0-.21,0-.28,0l-1.77-.65A26.23,26.23,0,0,1,296.29,272L286,245.62l-11.83-30.16-2.27-5.82-.58-1.18a13.35,13.35,0,0,1-1-5.08,12,12,0,0,1,0-1.35,13.19,13.19,0,0,1,18.26-10.79l52.69,27,10.39,5.31A91.11,91.11,0,0,1,367,235a92.45,92.45,0,0,1,29.79,61.87C396.91,299.06,397,301.22,397,303.4Z'%20transform='translate(-163%20-82.94)'%20style='fill:url(%23a)'/%3e%3cpath%20d='M382.91,338.56a42.8,42.8,0,0,1-.72,7.82c-.14.67-.28,1.35-.44,2-.3,1.2-.62,2.36-1,3.53-.21.6-.42,1.2-.65,1.78s-.49,1.18-.74,1.78a38.1,38.1,0,0,1-2.69,5.08,42.22,42.22,0,0,1-4.5,6c-7.68,8.49-33.75,23.63-43.36,29.79l-21.33,13c-15.63,9.63-30.41,16.45-49,16.91-.88,0-1.74,0-2.6,0-1.2,0-2.39,0-3.57-.07a92.86,92.86,0,0,1-74.92-43.17,91.58,91.58,0,0,1-13.68-38.67,41.13,41.13,0,0,0,60,28.95l.14-.07,2.09-1.25,8.49-5,10.81-6.4v-.3l1.39-.83,96.71-57.29,7.44-4.41.74.25.09,0a38.31,38.31,0,0,1,6.22,2.14,41.45,41.45,0,0,1,12.36,8.28,40,40,0,0,1,4,4.43,37,37,0,0,1,2.85,4.17A41.64,41.64,0,0,1,382.91,338.56Z'%20transform='translate(-163%20-82.94)'%20style='fill:url(%23b)'/%3e%3cpath%20d='M245.24,147.35l0,213.29L234.39,367l-8.5,5-2.09,1.27a.24.24,0,0,0-.13.06,41.13,41.13,0,0,1-60-28.94c-.16-.89-.28-1.81-.38-2.7-.13-1.68-.22-3.33-.25-5v-240a13.77,13.77,0,0,1,21.46-11.41l42.07,27.48a5.55,5.55,0,0,0,.73.51A41.14,41.14,0,0,1,245.24,147.35Z'%20transform='translate(-163%20-82.94)'%20style='fill:url(%23c)'/%3e%3cg%20style='opacity:0.14900000393390656;isolation:isolate'%3e%3cg%20style='clip-path:url(%23d)'%3e%3cpath%20d='M382.91,338.56a42.8,42.8,0,0,1-.72,7.82c-.14.67-.28,1.35-.44,2-.3,1.2-.62,2.36-1,3.53-.21.6-.42,1.2-.65,1.78s-.49,1.18-.74,1.78a38.1,38.1,0,0,1-2.69,5.08,41.81,41.81,0,0,1-4.5,6c-7.68,8.49-33.75,23.63-43.36,29.79l-21.33,13c-15.63,9.63-30.41,16.45-49,16.91-.88,0-1.74,0-2.6,0-1.2,0-2.39,0-3.57-.07a92.86,92.86,0,0,1-74.92-43.17,91.58,91.58,0,0,1-13.68-38.67,41.13,41.13,0,0,0,60,28.95l.14-.07,2.09-1.25,8.49-5,10.81-6.4v-.3l1.39-.83,96.71-57.29,7.44-4.41.74.25.09,0a38.31,38.31,0,0,1,6.22,2.14,41.45,41.45,0,0,1,12.36,8.28,40,40,0,0,1,4,4.43,37,37,0,0,1,2.85,4.17A41.64,41.64,0,0,1,382.91,338.56Z'%20transform='translate(-163%20-82.94)'%20style='fill:url(%23e)'/%3e%3c/g%3e%3c/g%3e%3cg%20style='opacity:0.09799999743700027;isolation:isolate'%3e%3cg%20style='clip-path:url(%23f)'%3e%3cpath%20d='M245.24,147.35l0,213.29L234.39,367l-8.5,5-2.09,1.27a.24.24,0,0,0-.13.06,41.13,41.13,0,0,1-60-28.94c-.16-.89-.28-1.81-.38-2.7-.13-1.68-.22-3.33-.25-5v-240a13.77,13.77,0,0,1,21.46-11.41l42.07,27.48a5.55,5.55,0,0,0,.73.51A41.14,41.14,0,0,1,245.24,147.35Z'%20transform='translate(-163%20-82.94)'%20style='fill:url(%23g)'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",DefaultIcon=()=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px",viewBox:"0 0 18 18",children:[jsxRuntimeExports.jsxs("defs",{children:[jsxRuntimeExports.jsxs("linearGradient",{id:"a5efbc52-c9a4-425f-9d94-50e000195659",x1:"9",y1:"18.967",x2:"9",y2:"3.398",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{offset:"0",stopColor:"#0078d4"}),jsxRuntimeExports.jsx("stop",{offset:"0.156",stopColor:"#1380da"}),jsxRuntimeExports.jsx("stop",{offset:"0.528",stopColor:"#3c91e5"}),jsxRuntimeExports.jsx("stop",{offset:"0.822",stopColor:"#559cec"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#5ea0ef"})]}),jsxRuntimeExports.jsxs("linearGradient",{id:"a110d41d-e4ca-48ee-9efe-328e60a20dcc",x1:"9",y1:"5.019",x2:"9",y2:"13.676",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{offset:"0.22",stopColor:"#fff"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#e6e6e6"})]}),jsxRuntimeExports.jsxs("linearGradient",{id:"bcf81335-a15c-4e8a-85c4-cb14c4ef74b0",x1:"8.991",y1:"2.883",x2:"8.991",y2:"11.32",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{offset:"0.22",stopColor:"#fff"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#e6e6e6"})]})]}),jsxRuntimeExports.jsx("g",{id:"b5d797c5-507f-4358-b61e-ca040c36ef52",children:jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.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)"}),jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.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)"}),jsxRuntimeExports.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)"})]})]})})]}),OpenAIIcon$1=()=>jsxRuntimeExports.jsxs("svg",{fill:"currentColor",width:"16px",height:"16px",viewBox:"0 0 2048 2048",role:"img",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("title",{children:"OpenAI icon"}),jsxRuntimeExports.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"})]}),PromptIcon=()=>jsxRuntimeExports.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.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"})}),PythonIcon=()=>jsxRuntimeExports.jsxs("svg",{width:"16px",height:"16px",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.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"}),jsxRuntimeExports.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"})]}),TypeScriptIcon="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",VectorSearchIcon=()=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px",viewBox:"0 0 18 18",role:"img",children:[jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.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:[jsxRuntimeExports.jsx("stop",{offset:"0",stopColor:"#5ea0ef"}),jsxRuntimeExports.jsx("stop",{offset:"0.178",stopColor:"#589eed"}),jsxRuntimeExports.jsx("stop",{offset:"0.406",stopColor:"#4897e9"}),jsxRuntimeExports.jsx("stop",{offset:"0.662",stopColor:"#2e8ce1"}),jsxRuntimeExports.jsx("stop",{offset:"0.936",stopColor:"#0a7cd7"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#0078d4"})]})}),jsxRuntimeExports.jsx("g",{id:"a05a9809-540f-4ec8-9a73-07896b5e7f5c",children:jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.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)"}),jsxRuntimeExports.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"}),jsxRuntimeExports.jsx("circle",{cx:"5.959",cy:"11.709",r:"3.744",fill:"#50e6ff"}),jsxRuntimeExports.jsx("circle",{cx:"5.952",cy:"11.642",r:"2.94",fill:"#fff"})]})})]}),DEFAULT_SIZE$1=16,toolsIcons={PromptFlowToolAzureContentSafety:jsxRuntimeExports.jsx(AzureContentSafetyIcon,{width:DEFAULT_SIZE$1,height:DEFAULT_SIZE$1}),PromptFlowToolSerpAPI:jsxRuntimeExports.jsx(DefaultIcon,{}),PromptFlowToolBing:jsxRuntimeExports.jsx(BingLogoIcon,{width:DEFAULT_SIZE$1,height:DEFAULT_SIZE$1}),PromptFlowToolAzureContentModerator:jsxRuntimeExports.jsx(AzureContentSafetyIcon,{width:DEFAULT_SIZE$1,height:DEFAULT_SIZE$1}),PromptFlowToolVectorIndexLookupByText:jsxRuntimeExports.jsx(VectorSearchIcon,{}),PromptFlowToolFaissIndexLookup:jsxRuntimeExports.jsx(VectorSearchIcon,{}),PromptFlowToolVectorDBLookup:jsxRuntimeExports.jsx(VectorSearchIcon,{}),PromptFlowToolVectorSearch:jsxRuntimeExports.jsx(VectorSearchIcon,{}),PromptFlowToolLlm:jsxRuntimeExports.jsx(OpenAIIcon$1,{}),PromptFlowToolPython:jsxRuntimeExports.jsx(PythonIcon,{}),PromptFlowToolTypeScript:jsxRuntimeExports.jsx(TypeScriptIcon,{width:DEFAULT_SIZE$1,height:DEFAULT_SIZE$1}),PromptFlowToolPrompt:jsxRuntimeExports.jsx(PromptIcon,{}),PromptFlowToolDefault:jsxRuntimeExports.jsx(DefaultIcon,{})};registerIcons({icons:{...toolsIcons}});var getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),rnds8=new Uint8Array(16);function rng(){if(!getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}var byteToHex=[];for(var i$4=0;i$4<256;++i$4)byteToHex[i$4]=(i$4+256).toString(16).substr(1);function bytesToUuid(eo,to){var ro=to||0,no=byteToHex;return[no[eo[ro++]],no[eo[ro++]],no[eo[ro++]],no[eo[ro++]],"-",no[eo[ro++]],no[eo[ro++]],"-",no[eo[ro++]],no[eo[ro++]],"-",no[eo[ro++]],no[eo[ro++]],"-",no[eo[ro++]],no[eo[ro++]],no[eo[ro++]],no[eo[ro++]],no[eo[ro++]],no[eo[ro++]]].join("")}function v4(eo,to,ro){var no=to&&ro||0;typeof eo=="string"&&(to=eo==="binary"?new Array(16):null,eo=null),eo=eo||{};var oo=eo.random||(eo.rng||rng)();if(oo[6]=oo[6]&15|64,oo[8]=oo[8]&63|128,to)for(var io=0;io<16;++io)to[no+io]=oo[io];return to||bytesToUuid(oo)}var toposort$1={exports:{}};toposort$1.exports=function(eo){return toposort(uniqueNodes(eo),eo)};toposort$1.exports.array=toposort;function toposort(eo,to){for(var ro=eo.length,no=new Array(ro),oo={},io=ro;io--;)oo[io]||so(eo[io],io,[]);return no;function so(ao,lo,uo){if(uo.indexOf(ao)>=0){var co;try{co=", node was:"+JSON.stringify(ao)}catch{co=""}throw new Error("Cyclic dependency"+co)}if(!~eo.indexOf(ao))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(ao));if(!oo[lo]){oo[lo]=!0;var fo=to.filter(function(go){return go[0]===ao});if(lo=fo.length){var ho=uo.concat(ao);do{var po=fo[--lo][1];so(po,eo.indexOf(po),ho)}while(lo)}no[--ro]=ao}}}function uniqueNodes(eo){for(var to=[],ro=0,no=eo.length;ro1?ro-1:0),oo=1;oo2&&arguments[2]!==void 0?arguments[2]:stringToLowerCase;setPrototypeOf&&setPrototypeOf(eo,null);let no=to.length;for(;no--;){let oo=to[no];if(typeof oo=="string"){const io=ro(oo);io!==oo&&(isFrozen(to)||(to[no]=io),oo=io)}eo[oo]=!0}return eo}function cleanArray(eo){for(let to=0;to/gm),TMPLIT_EXPR=seal(/\${[\w\W]*}/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DOCTYPE_NAME=seal(/^html$/i);var EXPRESSIONS=Object.freeze({__proto__:null,MUSTACHE_EXPR,ERB_EXPR,TMPLIT_EXPR,DATA_ATTR,ARIA_ATTR,IS_ALLOWED_URI,IS_SCRIPT_OR_DATA,ATTR_WHITESPACE,DOCTYPE_NAME});const getGlobal=function(){return typeof window>"u"?null:window},_createTrustedTypesPolicy=function(to,ro){if(typeof to!="object"||typeof to.createPolicy!="function")return null;let no=null;const oo="data-tt-policy-suffix";ro&&ro.hasAttribute(oo)&&(no=ro.getAttribute(oo));const io="dompurify"+(no?"#"+no:"");try{return to.createPolicy(io,{createHTML(so){return so},createScriptURL(so){return so}})}catch{return console.warn("TrustedTypes policy "+io+" could not be created."),null}};function createDOMPurify(){let eo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:getGlobal();const to=Vo=>createDOMPurify(Vo);if(to.version="3.0.9",to.removed=[],!eo||!eo.document||eo.document.nodeType!==9)return to.isSupported=!1,to;let{document:ro}=eo;const no=ro,oo=no.currentScript,{DocumentFragment:io,HTMLTemplateElement:so,Node:ao,Element:lo,NodeFilter:uo,NamedNodeMap:co=eo.NamedNodeMap||eo.MozNamedAttrMap,HTMLFormElement:fo,DOMParser:ho,trustedTypes:po}=eo,go=lo.prototype,vo=lookupGetter(go,"cloneNode"),bo=lookupGetter(go,"nextSibling"),xo=lookupGetter(go,"childNodes"),_o=lookupGetter(go,"parentNode");if(typeof so=="function"){const Vo=ro.createElement("template");Vo.content&&Vo.content.ownerDocument&&(ro=Vo.content.ownerDocument)}let Eo,So="";const{implementation:To,createNodeIterator:wo,createDocumentFragment:Co,getElementsByTagName:Oo}=ro,{importNode:Ao}=no;let Ro={};to.isSupported=typeof entries=="function"&&typeof _o=="function"&&To&&To.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:No,ERB_EXPR:Mo,TMPLIT_EXPR:Do,DATA_ATTR:jo,ARIA_ATTR:Fo,IS_SCRIPT_OR_DATA:$o,ATTR_WHITESPACE:Lo}=EXPRESSIONS;let{IS_ALLOWED_URI:Ho}=EXPRESSIONS,qo=null;const Uo=addToSet({},[...html$1,...svg$1,...svgFilters,...mathMl$1,...text]);let Yo=null;const Zo=addToSet({},[...html$2,...svg$2,...mathMl,...xml]);let _s=Object.seal(create$4(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}})),Ss=null,As=null,Ns=!0,ws=!0,Ds=!1,Jo=!0,Cs=!1,Bs=!1,zs=!1,Ls=!1,ga=!1,Js=!1,Xs=!1,$a=!0,Ll=!1;const Kl="user-content-";let Xl=!0,Nl=!1,xa={},El=null;const cu=addToSet({},["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 ks=null;const Es=addToSet({},["audio","video","img","source","image","track"]);let bs=null;const Os=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Vs="http://www.w3.org/1998/Math/MathML",Ks="http://www.w3.org/2000/svg",Ms="http://www.w3.org/1999/xhtml";let Hs=Ms,Zs=!1,xl=null;const Sl=addToSet({},[Vs,Ks,Ms],stringToString);let $l=null;const ru=["application/xhtml+xml","text/html"],au="text/html";let zl=null,pu=null;const Su=ro.createElement("form"),Zl=function(Bo){return Bo instanceof RegExp||Bo instanceof Function},Dl=function(){let Bo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(pu&&pu===Bo)){if((!Bo||typeof Bo!="object")&&(Bo={}),Bo=clone(Bo),$l=ru.indexOf(Bo.PARSER_MEDIA_TYPE)===-1?au:Bo.PARSER_MEDIA_TYPE,zl=$l==="application/xhtml+xml"?stringToString:stringToLowerCase,qo=objectHasOwnProperty(Bo,"ALLOWED_TAGS")?addToSet({},Bo.ALLOWED_TAGS,zl):Uo,Yo=objectHasOwnProperty(Bo,"ALLOWED_ATTR")?addToSet({},Bo.ALLOWED_ATTR,zl):Zo,xl=objectHasOwnProperty(Bo,"ALLOWED_NAMESPACES")?addToSet({},Bo.ALLOWED_NAMESPACES,stringToString):Sl,bs=objectHasOwnProperty(Bo,"ADD_URI_SAFE_ATTR")?addToSet(clone(Os),Bo.ADD_URI_SAFE_ATTR,zl):Os,ks=objectHasOwnProperty(Bo,"ADD_DATA_URI_TAGS")?addToSet(clone(Es),Bo.ADD_DATA_URI_TAGS,zl):Es,El=objectHasOwnProperty(Bo,"FORBID_CONTENTS")?addToSet({},Bo.FORBID_CONTENTS,zl):cu,Ss=objectHasOwnProperty(Bo,"FORBID_TAGS")?addToSet({},Bo.FORBID_TAGS,zl):{},As=objectHasOwnProperty(Bo,"FORBID_ATTR")?addToSet({},Bo.FORBID_ATTR,zl):{},xa=objectHasOwnProperty(Bo,"USE_PROFILES")?Bo.USE_PROFILES:!1,Ns=Bo.ALLOW_ARIA_ATTR!==!1,ws=Bo.ALLOW_DATA_ATTR!==!1,Ds=Bo.ALLOW_UNKNOWN_PROTOCOLS||!1,Jo=Bo.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Cs=Bo.SAFE_FOR_TEMPLATES||!1,Bs=Bo.WHOLE_DOCUMENT||!1,ga=Bo.RETURN_DOM||!1,Js=Bo.RETURN_DOM_FRAGMENT||!1,Xs=Bo.RETURN_TRUSTED_TYPE||!1,Ls=Bo.FORCE_BODY||!1,$a=Bo.SANITIZE_DOM!==!1,Ll=Bo.SANITIZE_NAMED_PROPS||!1,Xl=Bo.KEEP_CONTENT!==!1,Nl=Bo.IN_PLACE||!1,Ho=Bo.ALLOWED_URI_REGEXP||IS_ALLOWED_URI,Hs=Bo.NAMESPACE||Ms,_s=Bo.CUSTOM_ELEMENT_HANDLING||{},Bo.CUSTOM_ELEMENT_HANDLING&&Zl(Bo.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(_s.tagNameCheck=Bo.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Bo.CUSTOM_ELEMENT_HANDLING&&Zl(Bo.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(_s.attributeNameCheck=Bo.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Bo.CUSTOM_ELEMENT_HANDLING&&typeof Bo.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(_s.allowCustomizedBuiltInElements=Bo.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Cs&&(ws=!1),Js&&(ga=!0),xa&&(qo=addToSet({},text),Yo=[],xa.html===!0&&(addToSet(qo,html$1),addToSet(Yo,html$2)),xa.svg===!0&&(addToSet(qo,svg$1),addToSet(Yo,svg$2),addToSet(Yo,xml)),xa.svgFilters===!0&&(addToSet(qo,svgFilters),addToSet(Yo,svg$2),addToSet(Yo,xml)),xa.mathMl===!0&&(addToSet(qo,mathMl$1),addToSet(Yo,mathMl),addToSet(Yo,xml))),Bo.ADD_TAGS&&(qo===Uo&&(qo=clone(qo)),addToSet(qo,Bo.ADD_TAGS,zl)),Bo.ADD_ATTR&&(Yo===Zo&&(Yo=clone(Yo)),addToSet(Yo,Bo.ADD_ATTR,zl)),Bo.ADD_URI_SAFE_ATTR&&addToSet(bs,Bo.ADD_URI_SAFE_ATTR,zl),Bo.FORBID_CONTENTS&&(El===cu&&(El=clone(El)),addToSet(El,Bo.FORBID_CONTENTS,zl)),Xl&&(qo["#text"]=!0),Bs&&addToSet(qo,["html","head","body"]),qo.table&&(addToSet(qo,["tbody"]),delete Ss.tbody),Bo.TRUSTED_TYPES_POLICY){if(typeof Bo.TRUSTED_TYPES_POLICY.createHTML!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Bo.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Eo=Bo.TRUSTED_TYPES_POLICY,So=Eo.createHTML("")}else Eo===void 0&&(Eo=_createTrustedTypesPolicy(po,oo)),Eo!==null&&typeof So=="string"&&(So=Eo.createHTML(""));freeze&&freeze(Bo),pu=Bo}},gu=addToSet({},["mi","mo","mn","ms","mtext"]),lu=addToSet({},["foreignobject","desc","title","annotation-xml"]),mu=addToSet({},["title","style","font","a","script"]),ou=addToSet({},[...svg$1,...svgFilters,...svgDisallowed]),Fl=addToSet({},[...mathMl$1,...mathMlDisallowed]),yl=function(Bo){let Xo=_o(Bo);(!Xo||!Xo.tagName)&&(Xo={namespaceURI:Hs,tagName:"template"});const vs=stringToLowerCase(Bo.tagName),ys=stringToLowerCase(Xo.tagName);return xl[Bo.namespaceURI]?Bo.namespaceURI===Ks?Xo.namespaceURI===Ms?vs==="svg":Xo.namespaceURI===Vs?vs==="svg"&&(ys==="annotation-xml"||gu[ys]):!!ou[vs]:Bo.namespaceURI===Vs?Xo.namespaceURI===Ms?vs==="math":Xo.namespaceURI===Ks?vs==="math"&&lu[ys]:!!Fl[vs]:Bo.namespaceURI===Ms?Xo.namespaceURI===Ks&&!lu[ys]||Xo.namespaceURI===Vs&&!gu[ys]?!1:!Fl[vs]&&(mu[vs]||!ou[vs]):!!($l==="application/xhtml+xml"&&xl[Bo.namespaceURI]):!1},Ys=function(Bo){arrayPush(to.removed,{element:Bo});try{Bo.parentNode.removeChild(Bo)}catch{Bo.remove()}},vu=function(Bo,Xo){try{arrayPush(to.removed,{attribute:Xo.getAttributeNode(Bo),from:Xo})}catch{arrayPush(to.removed,{attribute:null,from:Xo})}if(Xo.removeAttribute(Bo),Bo==="is"&&!Yo[Bo])if(ga||Js)try{Ys(Xo)}catch{}else try{Xo.setAttribute(Bo,"")}catch{}},Nu=function(Bo){let Xo=null,vs=null;if(Ls)Bo=""+Bo;else{const Rs=stringMatch(Bo,/^[\r\n\t ]+/);vs=Rs&&Rs[0]}$l==="application/xhtml+xml"&&Hs===Ms&&(Bo=''+Bo+"");const ys=Eo?Eo.createHTML(Bo):Bo;if(Hs===Ms)try{Xo=new ho().parseFromString(ys,$l)}catch{}if(!Xo||!Xo.documentElement){Xo=To.createDocument(Hs,"template",null);try{Xo.documentElement.innerHTML=Zs?So:ys}catch{}}const ps=Xo.body||Xo.documentElement;return Bo&&vs&&ps.insertBefore(ro.createTextNode(vs),ps.childNodes[0]||null),Hs===Ms?Oo.call(Xo,Bs?"html":"body")[0]:Bs?Xo.documentElement:ps},du=function(Bo){return wo.call(Bo.ownerDocument||Bo,Bo,uo.SHOW_ELEMENT|uo.SHOW_COMMENT|uo.SHOW_TEXT,null)},cp=function(Bo){return Bo instanceof fo&&(typeof Bo.nodeName!="string"||typeof Bo.textContent!="string"||typeof Bo.removeChild!="function"||!(Bo.attributes instanceof co)||typeof Bo.removeAttribute!="function"||typeof Bo.setAttribute!="function"||typeof Bo.namespaceURI!="string"||typeof Bo.insertBefore!="function"||typeof Bo.hasChildNodes!="function")},qu=function(Bo){return typeof ao=="function"&&Bo instanceof ao},Ru=function(Bo,Xo,vs){Ro[Bo]&&arrayForEach(Ro[Bo],ys=>{ys.call(to,Xo,vs,pu)})},_h=function(Bo){let Xo=null;if(Ru("beforeSanitizeElements",Bo,null),cp(Bo))return Ys(Bo),!0;const vs=zl(Bo.nodeName);if(Ru("uponSanitizeElement",Bo,{tagName:vs,allowedTags:qo}),Bo.hasChildNodes()&&!qu(Bo.firstElementChild)&®ExpTest(/<[/\w]/g,Bo.innerHTML)&®ExpTest(/<[/\w]/g,Bo.textContent))return Ys(Bo),!0;if(!qo[vs]||Ss[vs]){if(!Ss[vs]&&Ko(vs)&&(_s.tagNameCheck instanceof RegExp&®ExpTest(_s.tagNameCheck,vs)||_s.tagNameCheck instanceof Function&&_s.tagNameCheck(vs)))return!1;if(Xl&&!El[vs]){const ys=_o(Bo)||Bo.parentNode,ps=xo(Bo)||Bo.childNodes;if(ps&&ys){const Rs=ps.length;for(let Us=Rs-1;Us>=0;--Us)ys.insertBefore(vo(ps[Us],!0),bo(Bo))}}return Ys(Bo),!0}return Bo instanceof lo&&!yl(Bo)||(vs==="noscript"||vs==="noembed"||vs==="noframes")&®ExpTest(/<\/no(script|embed|frames)/i,Bo.innerHTML)?(Ys(Bo),!0):(Cs&&Bo.nodeType===3&&(Xo=Bo.textContent,arrayForEach([No,Mo,Do],ys=>{Xo=stringReplace(Xo,ys," ")}),Bo.textContent!==Xo&&(arrayPush(to.removed,{element:Bo.cloneNode()}),Bo.textContent=Xo)),Ru("afterSanitizeElements",Bo,null),!1)},qs=function(Bo,Xo,vs){if($a&&(Xo==="id"||Xo==="name")&&(vs in ro||vs in Su))return!1;if(!(ws&&!As[Xo]&®ExpTest(jo,Xo))){if(!(Ns&®ExpTest(Fo,Xo))){if(!Yo[Xo]||As[Xo]){if(!(Ko(Bo)&&(_s.tagNameCheck instanceof RegExp&®ExpTest(_s.tagNameCheck,Bo)||_s.tagNameCheck instanceof Function&&_s.tagNameCheck(Bo))&&(_s.attributeNameCheck instanceof RegExp&®ExpTest(_s.attributeNameCheck,Xo)||_s.attributeNameCheck instanceof Function&&_s.attributeNameCheck(Xo))||Xo==="is"&&_s.allowCustomizedBuiltInElements&&(_s.tagNameCheck instanceof RegExp&®ExpTest(_s.tagNameCheck,vs)||_s.tagNameCheck instanceof Function&&_s.tagNameCheck(vs))))return!1}else if(!bs[Xo]){if(!regExpTest(Ho,stringReplace(vs,Lo,""))){if(!((Xo==="src"||Xo==="xlink:href"||Xo==="href")&&Bo!=="script"&&stringIndexOf(vs,"data:")===0&&ks[Bo])){if(!(Ds&&!regExpTest($o,stringReplace(vs,Lo,"")))){if(vs)return!1}}}}}}return!0},Ko=function(Bo){return Bo!=="annotation-xml"&&Bo.indexOf("-")>0},Qo=function(Bo){Ru("beforeSanitizeAttributes",Bo,null);const{attributes:Xo}=Bo;if(!Xo)return;const vs={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Yo};let ys=Xo.length;for(;ys--;){const ps=Xo[ys],{name:Rs,namespaceURI:Us,value:Rl}=ps,Ml=zl(Rs);let Ol=Rs==="value"?Rl:stringTrim(Rl);if(vs.attrName=Ml,vs.attrValue=Ol,vs.keepAttr=!0,vs.forceKeepAttr=void 0,Ru("uponSanitizeAttribute",Bo,vs),Ol=vs.attrValue,vs.forceKeepAttr||(vu(Rs,Bo),!vs.keepAttr))continue;if(!Jo&®ExpTest(/\/>/i,Ol)){vu(Rs,Bo);continue}Cs&&arrayForEach([No,Mo,Do],Ul=>{Ol=stringReplace(Ol,Ul," ")});const Cl=zl(Bo.nodeName);if(qs(Cl,Ml,Ol)){if(Ll&&(Ml==="id"||Ml==="name")&&(vu(Rs,Bo),Ol=Kl+Ol),Eo&&typeof po=="object"&&typeof po.getAttributeType=="function"&&!Us)switch(po.getAttributeType(Cl,Ml)){case"TrustedHTML":{Ol=Eo.createHTML(Ol);break}case"TrustedScriptURL":{Ol=Eo.createScriptURL(Ol);break}}try{Us?Bo.setAttributeNS(Us,Rs,Ol):Bo.setAttribute(Rs,Ol),arrayPop(to.removed)}catch{}}}Ru("afterSanitizeAttributes",Bo,null)},zo=function Vo(Bo){let Xo=null;const vs=du(Bo);for(Ru("beforeSanitizeShadowDOM",Bo,null);Xo=vs.nextNode();)Ru("uponSanitizeShadowNode",Xo,null),!_h(Xo)&&(Xo.content instanceof io&&Vo(Xo.content),Qo(Xo));Ru("afterSanitizeShadowDOM",Bo,null)};return to.sanitize=function(Vo){let Bo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Xo=null,vs=null,ys=null,ps=null;if(Zs=!Vo,Zs&&(Vo=""),typeof Vo!="string"&&!qu(Vo))if(typeof Vo.toString=="function"){if(Vo=Vo.toString(),typeof Vo!="string")throw typeErrorCreate("dirty is not a string, aborting")}else throw typeErrorCreate("toString is not a function");if(!to.isSupported)return Vo;if(zs||Dl(Bo),to.removed=[],typeof Vo=="string"&&(Nl=!1),Nl){if(Vo.nodeName){const Rl=zl(Vo.nodeName);if(!qo[Rl]||Ss[Rl])throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place")}}else if(Vo instanceof ao)Xo=Nu(""),vs=Xo.ownerDocument.importNode(Vo,!0),vs.nodeType===1&&vs.nodeName==="BODY"||vs.nodeName==="HTML"?Xo=vs:Xo.appendChild(vs);else{if(!ga&&!Cs&&!Bs&&Vo.indexOf("<")===-1)return Eo&&Xs?Eo.createHTML(Vo):Vo;if(Xo=Nu(Vo),!Xo)return ga?null:Xs?So:""}Xo&&Ls&&Ys(Xo.firstChild);const Rs=du(Nl?Vo:Xo);for(;ys=Rs.nextNode();)_h(ys)||(ys.content instanceof io&&zo(ys.content),Qo(ys));if(Nl)return Vo;if(ga){if(Js)for(ps=Co.call(Xo.ownerDocument);Xo.firstChild;)ps.appendChild(Xo.firstChild);else ps=Xo;return(Yo.shadowroot||Yo.shadowrootmode)&&(ps=Ao.call(no,ps,!0)),ps}let Us=Bs?Xo.outerHTML:Xo.innerHTML;return Bs&&qo["!doctype"]&&Xo.ownerDocument&&Xo.ownerDocument.doctype&&Xo.ownerDocument.doctype.name&®ExpTest(DOCTYPE_NAME,Xo.ownerDocument.doctype.name)&&(Us=" +`+Us),Cs&&arrayForEach([No,Mo,Do],Rl=>{Us=stringReplace(Us,Rl," ")}),Eo&&Xs?Eo.createHTML(Us):Us},to.setConfig=function(){let Vo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Dl(Vo),zs=!0},to.clearConfig=function(){pu=null,zs=!1},to.isValidAttribute=function(Vo,Bo,Xo){pu||Dl({});const vs=zl(Vo),ys=zl(Bo);return qs(vs,ys,Xo)},to.addHook=function(Vo,Bo){typeof Bo=="function"&&(Ro[Vo]=Ro[Vo]||[],arrayPush(Ro[Vo],Bo))},to.removeHook=function(Vo){if(Ro[Vo])return arrayPop(Ro[Vo])},to.removeHooks=function(Vo){Ro[Vo]&&(Ro[Vo]=[])},to.removeAllHooks=function(){Ro={}},to}var purify=createDOMPurify(),eventemitter3={exports:{}};(function(eo){var to=Object.prototype.hasOwnProperty,ro="~";function no(){}Object.create&&(no.prototype=Object.create(null),new no().__proto__||(ro=!1));function oo(lo,uo,co){this.fn=lo,this.context=uo,this.once=co||!1}function io(lo,uo,co,fo,ho){if(typeof co!="function")throw new TypeError("The listener must be a function");var po=new oo(co,fo||lo,ho),go=ro?ro+uo:uo;return lo._events[go]?lo._events[go].fn?lo._events[go]=[lo._events[go],po]:lo._events[go].push(po):(lo._events[go]=po,lo._eventsCount++),lo}function so(lo,uo){--lo._eventsCount===0?lo._events=new no:delete lo._events[uo]}function ao(){this._events=new no,this._eventsCount=0}ao.prototype.eventNames=function(){var uo=[],co,fo;if(this._eventsCount===0)return uo;for(fo in co=this._events)to.call(co,fo)&&uo.push(ro?fo.slice(1):fo);return Object.getOwnPropertySymbols?uo.concat(Object.getOwnPropertySymbols(co)):uo},ao.prototype.listeners=function(uo){var co=ro?ro+uo:uo,fo=this._events[co];if(!fo)return[];if(fo.fn)return[fo.fn];for(var ho=0,po=fo.length,go=new Array(po);ho0?eo:"Unknown")}function _defineProperty$5(eo,to,ro){return to in eo?Object.defineProperty(eo,to,{value:ro,enumerable:!0,configurable:!0,writable:!0}):eo[to]=ro,eo}function _extends$b(){return _extends$b=Object.assign||function(eo){for(var to=1;to"u"?"undefined":_typeof$6(window))==="object"&&(typeof document>"u"?"undefined":_typeof$6(document))==="object"&&document.nodeType===9;function _typeof$5(eo){"@babel/helpers - typeof";return _typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(to){return typeof to}:function(to){return to&&typeof Symbol=="function"&&to.constructor===Symbol&&to!==Symbol.prototype?"symbol":typeof to},_typeof$5(eo)}function toPrimitive(eo,to){if(_typeof$5(eo)!="object"||!eo)return eo;var ro=eo[Symbol.toPrimitive];if(ro!==void 0){var no=ro.call(eo,to||"default");if(_typeof$5(no)!="object")return no;throw new TypeError("@@toPrimitive must return a primitive value.")}return(to==="string"?String:Number)(eo)}function toPropertyKey(eo){var to=toPrimitive(eo,"string");return _typeof$5(to)=="symbol"?to:String(to)}function _defineProperties$3(eo,to){for(var ro=0;ro<+~=|^:(),"'`\s])/g,nativeEscape=typeof CSS<"u"&&CSS.escape,escape=function(eo){return nativeEscape?nativeEscape(eo):eo.replace(escapeRegex,"\\$1")},BaseStyleRule=function(){function eo(ro,no,oo){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 io=oo.sheet,so=oo.Renderer;this.key=ro,this.options=oo,this.style=no,io?this.renderer=io.renderer:so&&(this.renderer=new so)}var to=eo.prototype;return to.prop=function(no,oo,io){if(oo===void 0)return this.style[no];var so=io?io.force:!1;if(!so&&this.style[no]===oo)return this;var ao=oo;(!io||io.process!==!1)&&(ao=this.options.jss.plugins.onChangeValue(oo,no,this));var lo=ao==null||ao===!1,uo=no in this.style;if(lo&&!uo&&!so)return this;var co=lo&&uo;if(co?delete this.style[no]:this.style[no]=ao,this.renderable&&this.renderer)return co?this.renderer.removeProperty(this.renderable,no):this.renderer.setProperty(this.renderable,no,ao),this;var fo=this.options.sheet;return fo&&fo.attached,this},eo}(),StyleRule=function(eo){_inheritsLoose$1(to,eo);function to(no,oo,io){var so;so=eo.call(this,no,oo,io)||this,so.selectorText=void 0,so.id=void 0,so.renderable=void 0;var ao=io.selector,lo=io.scoped,uo=io.sheet,co=io.generateId;return ao?so.selectorText=ao:lo!==!1&&(so.id=co(_assertThisInitialized$3(_assertThisInitialized$3(so)),uo),so.selectorText="."+escape(so.id)),so}var ro=to.prototype;return ro.applyTo=function(oo){var io=this.renderer;if(io){var so=this.toJSON();for(var ao in so)io.setProperty(oo,ao,so[ao])}return this},ro.toJSON=function(){var oo={};for(var io in this.style){var so=this.style[io];typeof so!="object"?oo[io]=so:Array.isArray(so)&&(oo[io]=toCssValue(so))}return oo},ro.toString=function(oo){var io=this.options.sheet,so=io?io.options.link:!1,ao=so?_extends$c({},oo,{allowEmpty:!0}):oo;return toCss(this.selectorText,this.style,ao)},_createClass$3(to,[{key:"selector",set:function(oo){if(oo!==this.selectorText){this.selectorText=oo;var io=this.renderer,so=this.renderable;if(!(!so||!io)){var ao=io.setSelector(so,oo);ao||io.replaceRule(so,this)}}},get:function(){return this.selectorText}}]),to}(BaseStyleRule),pluginStyleRule={onCreateRule:function(to,ro,no){return to[0]==="@"||no.parent&&no.parent.type==="keyframes"?null:new StyleRule(to,ro,no)}},defaultToStringOptions={indent:1,children:!0},atRegExp=/@([\w-]+)/,ConditionalRule=function(){function eo(ro,no,oo){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=ro,this.query=oo.name;var io=ro.match(atRegExp);this.at=io?io[1]:"unknown",this.options=oo,this.rules=new RuleList(_extends$c({},oo,{parent:this}));for(var so in no)this.rules.add(so,no[so]);this.rules.process()}var to=eo.prototype;return to.getRule=function(no){return this.rules.get(no)},to.indexOf=function(no){return this.rules.indexOf(no)},to.addRule=function(no,oo,io){var so=this.rules.add(no,oo,io);return so?(this.options.jss.plugins.onProcessRule(so),so):null},to.toString=function(no){if(no===void 0&&(no=defaultToStringOptions),no.indent==null&&(no.indent=defaultToStringOptions.indent),no.children==null&&(no.children=defaultToStringOptions.children),no.children===!1)return this.query+" {}";var oo=this.rules.toString(no);return oo?this.query+` { +`+oo+` +}`:""},eo}(),keyRegExp=/@media|@supports\s+/,pluginConditionalRule={onCreateRule:function(to,ro,no){return keyRegExp.test(to)?new ConditionalRule(to,ro,no):null}},defaultToStringOptions$1={indent:1,children:!0},nameRegExp=/@keyframes\s+([\w-]+)/,KeyframesRule=function(){function eo(ro,no,oo){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 io=ro.match(nameRegExp);io&&io[1]?this.name=io[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=oo;var so=oo.scoped,ao=oo.sheet,lo=oo.generateId;this.id=so===!1?this.name:escape(lo(this,ao)),this.rules=new RuleList(_extends$c({},oo,{parent:this}));for(var uo in no)this.rules.add(uo,no[uo],_extends$c({},oo,{parent:this}));this.rules.process()}var to=eo.prototype;return to.toString=function(no){if(no===void 0&&(no=defaultToStringOptions$1),no.indent==null&&(no.indent=defaultToStringOptions$1.indent),no.children==null&&(no.children=defaultToStringOptions$1.children),no.children===!1)return this.at+" "+this.id+" {}";var oo=this.rules.toString(no);return oo&&(oo=` +`+oo+` +`),this.at+" "+this.id+" {"+oo+"}"},eo}(),keyRegExp$1=/@keyframes\s+/,refRegExp$1=/\$([\w-]+)/g,findReferencedKeyframe=function(to,ro){return typeof to=="string"?to.replace(refRegExp$1,function(no,oo){return oo in ro?ro[oo]:no}):to},replaceRef=function(to,ro,no){var oo=to[ro],io=findReferencedKeyframe(oo,no);io!==oo&&(to[ro]=io)},plugin={onCreateRule:function(to,ro,no){return typeof to=="string"&&keyRegExp$1.test(to)?new KeyframesRule(to,ro,no):null},onProcessStyle:function(to,ro,no){return ro.type!=="style"||!no||("animation-name"in to&&replaceRef(to,"animation-name",no.keyframes),"animation"in to&&replaceRef(to,"animation",no.keyframes)),to},onChangeValue:function(to,ro,no){var oo=no.options.sheet;if(!oo)return to;switch(ro){case"animation":return findReferencedKeyframe(to,oo.keyframes);case"animation-name":return findReferencedKeyframe(to,oo.keyframes);default:return to}}},KeyframeRule=function(eo){_inheritsLoose$1(to,eo);function to(){for(var no,oo=arguments.length,io=new Array(oo),so=0;so=this.index){oo.push(no);return}for(var so=0;soio){oo.splice(so,0,no);return}}},to.reset=function(){this.registry=[]},to.remove=function(no){var oo=this.registry.indexOf(no);this.registry.splice(oo,1)},to.toString=function(no){for(var oo=no===void 0?{}:no,io=oo.attached,so=_objectWithoutPropertiesLoose$3(oo,["attached"]),ao="",lo=0;loto.index&&no.options.insertionPoint===to.insertionPoint)return no}return null}function findHighestSheet(eo,to){for(var ro=eo.length-1;ro>=0;ro--){var no=eo[ro];if(no.attached&&no.options.insertionPoint===to.insertionPoint)return no}return null}function findCommentNode(eo){for(var to=getHead(),ro=0;ro0){var ro=findHigherSheet(to,eo);if(ro&&ro.renderer)return{parent:ro.renderer.element.parentNode,node:ro.renderer.element};if(ro=findHighestSheet(to,eo),ro&&ro.renderer)return{parent:ro.renderer.element.parentNode,node:ro.renderer.element.nextSibling}}var no=eo.insertionPoint;if(no&&typeof no=="string"){var oo=findCommentNode(no);if(oo)return{parent:oo.parentNode,node:oo.nextSibling}}return!1}function insertStyle(eo,to){var ro=to.insertionPoint,no=findPrevNode(to);if(no!==!1&&no.parent){no.parent.insertBefore(eo,no.node);return}if(ro&&typeof ro.nodeType=="number"){var oo=ro,io=oo.parentNode;io&&io.insertBefore(eo,oo.nextSibling);return}getHead().appendChild(eo)}var getNonce$1=memoize$2(function(){var eo=document.querySelector('meta[property="csp-nonce"]');return eo?eo.getAttribute("content"):null}),_insertRule=function(to,ro,no){var oo=to.cssRules.length;(no===void 0||no>oo)&&(no=oo);try{if("insertRule"in to){var io=to;io.insertRule(ro,no)}else if("appendRule"in to){var so=to;so.appendRule(ro)}}catch{return!1}return to.cssRules[no]},createStyle=function(){var to=document.createElement("style");return to.textContent=` +`,to},DomRenderer=function(){function eo(ro){this.getPropertyValue=getPropertyValue,this.setProperty=setProperty,this.removeProperty=removeProperty,this.setSelector=setSelector,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,ro&&sheets.add(ro),this.sheet=ro;var no=this.sheet?this.sheet.options:{},oo=no.media,io=no.meta,so=no.element;this.element=so||createStyle(),this.element.setAttribute("data-jss",""),oo&&this.element.setAttribute("media",oo),io&&this.element.setAttribute("data-meta",io);var ao=getNonce$1();ao&&this.element.setAttribute("nonce",ao)}var to=eo.prototype;return to.attach=function(){if(!(this.element.parentNode||!this.sheet)){insertStyle(this.element,this.sheet.options);var no=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&no&&(this.hasInsertedRules=!1,this.deploy())}},to.detach=function(){var no=this.element.parentNode;no&&no.removeChild(this.element)},to.deploy=function(){var no=this.sheet;if(no){if(no.options.link){this.insertRules(no.rules);return}this.element.textContent=` +`+no.toString()+` +`}},to.insertRules=function(no,oo){for(var io=0;io0&&(oo.refs--,oo.refs===0&&oo.sheet.detach()):warning(!1,"SheetsManager: can't find sheet to unmanage")},_createClass$3(eo,[{key:"size",get:function(){return this.length}}]),eo}();/** + * A better abstraction over CSS. + * + * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present + * @website https://github.com/cssinjs/jss + * @license MIT + */var hasCSSTOMSupport=typeof CSS<"u"&&CSS&&"number"in CSS,create$3=function(to){return new Jss(to)},index$4=create$3(),now=Date.now(),fnValuesNs="fnValues"+now,fnRuleNs="fnStyle"+ ++now;function functionPlugin(){return{onCreateRule:function(to,ro,no){if(typeof ro!="function")return null;var oo=createRule(to,{},no);return oo[fnRuleNs]=ro,oo},onProcessStyle:function(to,ro){if(fnValuesNs in ro||fnRuleNs in ro)return to;var no={};for(var oo in to){var io=to[oo];typeof io=="function"&&(delete to[oo],no[oo]=io)}return ro[fnValuesNs]=no,to},onUpdate:function(to,ro,no,oo){var io=ro,so=io[fnRuleNs];so&&(io.style=so(to)||{});var ao=io[fnValuesNs];if(ao)for(var lo in ao)io.prop(lo,ao[lo](to),oo)}}}function symbolObservablePonyfill(eo){var to,ro=eo.Symbol;return typeof ro=="function"?ro.observable?to=ro.observable:(to=ro("observable"),ro.observable=to):to="@@observable",to}var root$1;typeof self<"u"?root$1=self:typeof window<"u"?root$1=window:typeof global<"u"?root$1=global:typeof module<"u"?root$1=module:root$1=Function("return this")();var result=symbolObservablePonyfill(root$1),isObservable$1=function(to){return to&&to[result]&&to===to[result]()};function observablePlugin(eo){return{onCreateRule:function(ro,no,oo){if(!isObservable$1(no))return null;var io=no,so=createRule(ro,{},oo);return io.subscribe(function(ao){for(var lo in ao)so.prop(lo,ao[lo],eo)}),so},onProcessRule:function(ro){if(!(ro&&ro.type!=="style")){var no=ro,oo=no.style,io=function(uo){var co=oo[uo];if(!isObservable$1(co))return"continue";delete oo[uo],co.subscribe({next:function(ho){no.prop(uo,ho,eo)}})};for(var so in oo)var ao=io(so)}}}}var semiWithNl=/;\n/,parse$m=function(eo){for(var to={},ro=eo.split(semiWithNl),no=0;no-1)return registerClass(eo,to.split(" "));var oo=eo.options,io=oo.parent;if(to[0]==="$"){var so=io.getRule(to.substr(1));return!so||so===eo?!1:(io.classes[eo.key]+=" "+io.classes[so.key],!0)}return io.classes[eo.key]+=" "+to,!0}function jssCompose(){function eo(to,ro){return"composes"in to&&(registerClass(ro,to.composes),delete to.composes),to}return{onProcessStyle:eo}}var uppercasePattern=/[A-Z]/g,msPattern=/^ms-/,cache$3={};function toHyphenLower(eo){return"-"+eo.toLowerCase()}function hyphenateStyleName(eo){if(cache$3.hasOwnProperty(eo))return cache$3[eo];var to=eo.replace(uppercasePattern,toHyphenLower);return cache$3[eo]=msPattern.test(to)?"-"+to:to}function convertCase(eo){var to={};for(var ro in eo){var no=ro.indexOf("--")===0?ro:hyphenateStyleName(ro);to[no]=eo[ro]}return eo.fallbacks&&(Array.isArray(eo.fallbacks)?to.fallbacks=eo.fallbacks.map(convertCase):to.fallbacks=convertCase(eo.fallbacks)),to}function camelCase(){function eo(ro){if(Array.isArray(ro)){for(var no=0;noeo.length)&&(to=eo.length);for(var ro=0,no=new Array(to);ro-1){var io=propMap$1[to];if(!Array.isArray(io))return prefix$2.js+pascalize(io)in ro?prefix$2.css+io:!1;if(!oo)return!1;for(var so=0;sono?1:-1:ro.length-no.length};return{onProcessStyle:function(ro,no){if(no.type!=="style")return ro;for(var oo={},io=Object.keys(ro).sort(eo),so=0;soMAX_RULES_PER_SHEET)&&(oo=to.createStyleSheet().attach()),oo};function so(){var ao=arguments,lo=JSON.stringify(ao),uo=ro.get(lo);if(uo)return uo.className;var co=[];for(var fo in ao){var ho=ao[fo];if(!Array.isArray(ho)){co.push(ho);continue}for(var po=0;poto=>!!pick$1(eo)(to),add$1=eo=>to=>{const ro=to||0;return Array.isArray(eo)?eo.reduce((no,oo)=>no|oo,ro):ro|eo},toggle=eo=>to=>(to||0)^eo,pick$1=eo=>to=>(to||0)&eo,remove$2=eo=>to=>{const ro=to||0;return Array.isArray(eo)?eo.reduce((no,oo)=>no&~oo,ro):ro&~eo},replace$1=eo=>()=>eo;var bitset=Object.freeze({__proto__:null,has:has$1,add:add$1,toggle,pick:pick$1,remove:remove$2,replace:replace$1});const EMPTY_STATUS=0,SELECTED_STATUS=1,ACTIVATED_STATUS=2;var GraphEdgeStatus;(function(eo){eo[eo.Default=EMPTY_STATUS]="Default",eo[eo.Selected=SELECTED_STATUS]="Selected",eo[eo.Activated=ACTIVATED_STATUS]="Activated",eo[eo.ConnectedToSelected=4]="ConnectedToSelected",eo[eo.UnconnectedToSelected=8]="UnconnectedToSelected",eo[eo.Editing=16]="Editing"})(GraphEdgeStatus||(GraphEdgeStatus={}));var GraphNodeStatus;(function(eo){eo[eo.Default=EMPTY_STATUS]="Default",eo[eo.Selected=SELECTED_STATUS]="Selected",eo[eo.Activated=ACTIVATED_STATUS]="Activated",eo[eo.Editing=4]="Editing",eo[eo.ConnectedToSelected=8]="ConnectedToSelected",eo[eo.UnconnectedToSelected=16]="UnconnectedToSelected"})(GraphNodeStatus||(GraphNodeStatus={}));var GraphPortStatus;(function(eo){eo[eo.Default=EMPTY_STATUS]="Default",eo[eo.Selected=SELECTED_STATUS]="Selected",eo[eo.Activated=ACTIVATED_STATUS]="Activated",eo[eo.Connecting=4]="Connecting",eo[eo.ConnectingAsTarget=8]="ConnectingAsTarget"})(GraphPortStatus||(GraphPortStatus={}));const updateStatus=eo=>to=>{var ro;const no=eo((ro=to.status)!==null&&ro!==void 0?ro:0);return no===to.status?to:Object.assign(Object.assign({},to),{status:no})};function isNodeEditing(eo){return has$1(GraphNodeStatus.Editing)(eo.status)}function isSelected(eo){return has$1(SELECTED_STATUS)(eo.status)}function notSelected(eo){return!isSelected(eo)}const resetConnectStatus=eo=>to=>(to||0)&GraphNodeStatus.Activated|eo;class Debug{static log(to){}static warn(to){}static error(...to){console.error(...to)}static never(to,ro){throw new Error(ro??`${to} is unexpected`)}}const getNodeConfig=(eo,to)=>{const ro=to.getNodeConfig(eo);if(!ro){Debug.warn(`invalid node ${JSON.stringify(eo)}`);return}return ro};function getRectWidth(eo,to){var ro;const no=(ro=eo==null?void 0:eo.getMinWidth(to))!==null&&ro!==void 0?ro:0;return to.width&&to.width>=no?to.width:no}function getRectHeight(eo,to){var ro;const no=(ro=eo==null?void 0:eo.getMinHeight(to))!==null&&ro!==void 0?ro:0;return to.height&&to.height>=no?to.height:no}function getNodeSize(eo,to){const ro=getNodeConfig(eo,to),no=getRectWidth(ro,eo);return{height:getRectHeight(ro,eo),width:no}}function getGroupRect(eo,to,ro){var no,oo,io,so,ao,lo,uo,co;const fo=new Set(eo.nodeIds),ho=Array.from(to.values()).filter(To=>fo.has(To.id)),po=Math.min(...ho.map(To=>To.x)),go=Math.max(...ho.map(To=>To.x+getNodeSize(To,ro).width)),vo=Math.min(...ho.map(To=>To.y)),bo=Math.max(...ho.map(To=>To.y+getNodeSize(To,ro).height)),xo=po-((oo=(no=eo.padding)===null||no===void 0?void 0:no.left)!==null&&oo!==void 0?oo:0),_o=vo-((so=(io=eo.padding)===null||io===void 0?void 0:io.top)!==null&&so!==void 0?so:0),Eo=bo-_o+((lo=(ao=eo.padding)===null||ao===void 0?void 0:ao.bottom)!==null&&lo!==void 0?lo:0),So=go-xo+((co=(uo=eo.padding)===null||uo===void 0?void 0:uo.left)!==null&&co!==void 0?co:0);return{x:xo,y:_o,width:So,height:Eo}}var MouseEventButton;(function(eo){eo[eo.Primary=0]="Primary",eo[eo.Auxiliary=1]="Auxiliary",eo[eo.Secondary=2]="Secondary",eo[eo.Fourth=4]="Fourth",eo[eo.Fifth=5]="Fifth"})(MouseEventButton||(MouseEventButton={}));var MouseEventButtons;(function(eo){eo[eo.None=0]="None",eo[eo.Left=1]="Left",eo[eo.Right=2]="Right",eo[eo.Middle=4]="Middle"})(MouseEventButtons||(MouseEventButtons={}));const DEFAULT_AUTO_ALIGN_THRESHOLD=50,COPIED_NODE_SPACING=50,NODE_MIN_VISIBLE_LENGTH=5,NODE_MAX_VISIBLE_LENGTH=500,defaultColors={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"},RectComponent=eo=>{const{style:to,node:ro,width:no,height:oo,textY:io}=eo,so=ro.data&&ro.data.comment?ro.data.comment:"",ao=isNodeEditing(ro);return jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.jsx("rect",{width:no,height:oo,x:ro.x,y:ro.y,style:to,rx:to.borderRadius}),jsxRuntimeExports.jsx("text",Object.assign({x:ro.x,y:io,fontSize:12},{children:ro.name})),ro.data&&ro.data.comment&&!ao&&jsxRuntimeExports.jsx("text",Object.assign({x:ro.x,y:io+20,fontSize:12,className:`comment-${ro.id}`},{children:ro.data.comment})),ao&&jsxRuntimeExports.jsx("foreignObject",Object.assign({x:ro.x,y:io,height:oo/2.5,width:no-5},{children:jsxRuntimeExports.jsx("input",{value:so,placeholder:"Input your comment here"})}))]},ro.id)},rect={getMinHeight(){return 150},getMinWidth(){return 150},render(eo){const to=eo.model,ro=getRectWidth(rect,to),no=getRectHeight(rect,to),oo=has$1(GraphNodeStatus.Selected|GraphNodeStatus.Activated)(to.status)?{fill:defaultColors.nodeActivateFill,stroke:defaultColors.nodeActivateStroke}:{fill:defaultColors.nodeFill,fillOpacity:.1,stroke:defaultColors.nodeStroke,borderRadius:"5"},io=to.y+no/3;return jsxRuntimeExports.jsx(RectComponent,{style:oo,node:to,width:ro,height:no,textY:io})}},getCurvePathD=(eo,to,ro,no)=>`M${eo},${ro}C${eo},${ro-getControlPointDistance(ro,no)},${to},${no+5+getControlPointDistance(ro,no)},${to},${no+5}`,getControlPointDistance=(eo,to)=>Math.min(5*15,Math.max(5*3,Math.abs((eo-(to+5))/2))),line$1={render(eo){const to=eo.model,ro={cursor:"crosshair",stroke:has$1(GraphEdgeStatus.Selected)(to.status)?defaultColors.edgeColorSelected:defaultColors.edgeColor,strokeWidth:"2"};return jsxRuntimeExports.jsx("path",{d:getCurvePathD(eo.x2,eo.x1,eo.y2,eo.y1),fill:"none",style:ro,id:`edge${to.id}`},to.id)}};class DefaultPort{getStyle(to,ro,no,oo,io){const so=defaultColors.portStroke;let ao=defaultColors.portFill;return(oo||io)&&(ao=defaultColors.connectedPortColor),has$1(GraphPortStatus.Activated)(to.status)&&(ao=defaultColors.primaryColor),{stroke:so,fill:ao}}getIsConnectable(){return!0}render(to){const{model:ro,data:no,parentNode:oo}=to,io=no.isPortConnectedAsSource(oo.id,ro.id),so=no.isPortConnectedAsTarget(oo.id,ro.id),ao=this.getStyle(ro,oo,no,io,so),{x:lo,y:uo}=to,co=`${lo-5} ${uo}, ${lo+7} ${uo}, ${lo+1} ${uo+8}`;return so?jsxRuntimeExports.jsx("polygon",{points:co,style:ao}):jsxRuntimeExports.jsx("circle",{r:5,cx:lo,cy:uo,style:ao},`${to.parentNode.id}-${to.model.id}`)}}const defaultPort=new DefaultPort;class DefaultClipboard{constructor(to){this.storage=to}write(to){this.storage.setItem("graph-clipboard",JSON.stringify({nodes:to.nodes.map(ro=>Object.assign(Object.assign({},ro),{data:{}})),edges:to.edges.map(ro=>Object.assign(Object.assign({},ro),{data:{}}))}))}read(){const to=this.storage.getItem("graph-clipboard");if(!to)return null;try{const ro=JSON.parse(to),no=new Map;return{nodes:ro.nodes.map(oo=>{const io=v4();return no.set(oo.id,io),Object.assign(Object.assign({},oo),{x:oo.x+COPIED_NODE_SPACING,y:oo.y+COPIED_NODE_SPACING,id:io})}),edges:ro.edges.map(oo=>Object.assign(Object.assign({},oo),{id:v4(),source:no.get(oo.source)||"",target:no.get(oo.target)||""}))}}catch{return null}}}class DefaultStorage{get length(){return this.items.size}constructor(){this.key=()=>"DefaultLocalStorage",this.items=new Map}clear(){this.items=new Map}setItem(to,ro){this.items.set(to,ro)}getItem(to){return this.items.has(to)?this.items.get(to):null}removeItem(to){this.items.delete(to)}}class GraphConfigBuilder{constructor(){const to=new DefaultStorage,ro=new DefaultClipboard(to);this.draft={getNodeConfig:()=>rect,getEdgeConfig:()=>line$1,getPortConfig:()=>defaultPort,getGroupConfig:()=>{},getClipboard:()=>ro}}static default(){return new GraphConfigBuilder}static from(to){return new GraphConfigBuilder().registerNode(to.getNodeConfig.bind(to)).registerEdge(to.getEdgeConfig.bind(to)).registerPort(to.getPortConfig.bind(to)).registerGroup(to.getGroupConfig.bind(to)).registerClipboard(to.getClipboard.bind(to))}registerNode(to){return this.draft.getNodeConfig=to,this}registerEdge(to){return this.draft.getEdgeConfig=to,this}registerPort(to){return this.draft.getPortConfig=to,this}registerGroup(to){return this.draft.getGroupConfig=to,this}registerClipboard(to){return this.draft.getClipboard=to,this}build(){return this.draft}}const GraphConfigContext=reactExports.createContext(GraphConfigBuilder.default().build());var MenuType;(function(eo){eo.Node="node",eo.Edge="edge",eo.Port="port",eo.Canvas="canvas",eo.Multi="multi"})(MenuType||(MenuType={}));class ContextMenuConfig{constructor(){this.contextMenu=new Map}registerContextMenu(to){this.contextMenuProps=Object.assign({},to)}registerMenu(to,ro){this.contextMenu.set(ro,to)}getMenu(to){if(this.contextMenuProps&&this.contextMenu.has(to)){const{className:ro,styles:no}=this.contextMenuProps;return reactExports.createElement("div",{className:ro,style:no},this.contextMenu.get(to))}return null}}const ContextMenuConfigContext=reactExports.createContext(new ContextMenuConfig),emptySelectBoxPosition=()=>({startX:0,startY:0,height:0,width:0}),SelectBox=eo=>{const{selectBoxPosition:to,style:ro}=eo,no=`m${to.startX} ${to.startY} v ${to.height} h ${to.width} v${-to.height} h ${-to.width}`,oo=ro??{fill:"none",stroke:defaultColors.defaultColor};return jsxRuntimeExports.jsx("path",{style:oo,d:no})};var GraphFeatures;(function(eo){eo.NodeDraggable="nodeDraggable",eo.NodeResizable="nodeResizable",eo.ClickNodeToSelect="clickNodeToSelect",eo.PanCanvas="panCanvas",eo.MultipleSelect="multipleSelect",eo.LassoSelect="lassoSelect",eo.Delete="delete",eo.AddNewNodes="addNewNodes",eo.AddNewEdges="addNewEdges",eo.AddNewPorts="addNewPorts",eo.AutoFit="autoFit",eo.CanvasHorizontalScrollable="canvasHorizontalScrollable",eo.CanvasVerticalScrollable="canvasVerticalScrollable",eo.NodeHoverView="nodeHoverView",eo.PortHoverView="portHoverView",eo.AddEdgesByKeyboard="addEdgesByKeyboard",eo.A11yFeatures="a11YFeatures",eo.EditNode="editNode",eo.AutoAlign="autoAlign",eo.UndoStack="undoStack",eo.CtrlKeyZoom="ctrlKeyZoom",eo.LimitBoundary="limitBoundary",eo.EditEdge="editEdge",eo.InvisibleScrollbar="InvisibleScrollbar"})(GraphFeatures||(GraphFeatures={}));GraphFeatures.NodeDraggable,GraphFeatures.NodeResizable,GraphFeatures.ClickNodeToSelect,GraphFeatures.PanCanvas,GraphFeatures.MultipleSelect,GraphFeatures.LassoSelect,GraphFeatures.Delete,GraphFeatures.AddNewNodes,GraphFeatures.AddNewEdges,GraphFeatures.AddNewPorts,GraphFeatures.CanvasHorizontalScrollable,GraphFeatures.CanvasVerticalScrollable,GraphFeatures.NodeHoverView,GraphFeatures.PortHoverView,GraphFeatures.AddEdgesByKeyboard,GraphFeatures.A11yFeatures,GraphFeatures.AutoFit,GraphFeatures.EditNode,GraphFeatures.AutoAlign,GraphFeatures.UndoStack,GraphFeatures.CtrlKeyZoom,GraphFeatures.LimitBoundary,GraphFeatures.EditEdge;const defaultFeatures=new Set([GraphFeatures.NodeDraggable,GraphFeatures.NodeResizable,GraphFeatures.ClickNodeToSelect,GraphFeatures.PanCanvas,GraphFeatures.MultipleSelect,GraphFeatures.Delete,GraphFeatures.AddNewNodes,GraphFeatures.AddNewEdges,GraphFeatures.AddNewPorts,GraphFeatures.CanvasHorizontalScrollable,GraphFeatures.CanvasVerticalScrollable,GraphFeatures.NodeHoverView,GraphFeatures.PortHoverView,GraphFeatures.AddEdgesByKeyboard,GraphFeatures.A11yFeatures,GraphFeatures.EditNode,GraphFeatures.AutoAlign,GraphFeatures.UndoStack,GraphFeatures.CtrlKeyZoom,GraphFeatures.LimitBoundary]),dataReadonlyMode=new Set([GraphFeatures.NodeDraggable,GraphFeatures.NodeResizable,GraphFeatures.ClickNodeToSelect,GraphFeatures.PanCanvas,GraphFeatures.MultipleSelect,GraphFeatures.CanvasHorizontalScrollable,GraphFeatures.CanvasVerticalScrollable,GraphFeatures.NodeHoverView,GraphFeatures.PortHoverView,GraphFeatures.A11yFeatures,GraphFeatures.CtrlKeyZoom,GraphFeatures.LimitBoundary]);GraphFeatures.ClickNodeToSelect,GraphFeatures.CanvasHorizontalScrollable,GraphFeatures.CanvasVerticalScrollable,GraphFeatures.NodeHoverView,GraphFeatures.PortHoverView,GraphFeatures.A11yFeatures,GraphFeatures.LassoSelect,GraphFeatures.LimitBoundary;const previewMode=new Set([GraphFeatures.NodeHoverView,GraphFeatures.PortHoverView,GraphFeatures.AutoFit]),emptyDummyNodes=()=>({dx:0,dy:0,dWidth:0,dHeight:0,alignedDX:void 0,alignedDY:void 0,nodes:[],isVisible:!1}),is$1$1=Object.is;let MapIterator$1=class{constructor(to,ro){this.upstream=to,this.f=ro}[Symbol.iterator](){return this}next(){const to=this.upstream.next();return to.done?to:{done:!1,value:this.f(to.value)}}};var NodeType$1;(function(eo){eo[eo.Bitmap=0]="Bitmap",eo[eo.Collision=1]="Collision"})(NodeType$1||(NodeType$1={}));const HASH_CODE_LENGTH=30,BIT_PARTITION_SIZE=5,FULL_MASK=1073741823;function bitPosFrom(eo){return 1<>>to&31}function bitCount(eo){return eo|=0,eo-=eo>>>1&1431655765,eo=(eo&858993459)+(eo>>>2&858993459),eo=eo+(eo>>>4)&252645135,eo+=eo>>>8,eo+=eo>>>16,eo&127}let BitmapIndexedNode$1=class U1{get valueCount(){return this.values.length}get nodeCount(){return this.children.length}constructor(to,ro,no,oo,io,so,ao,lo){this.type=NodeType$1.Bitmap,this.owner=to,this.dataMap=ro,this.nodeMap=no,this.keys=oo,this.values=io,this.children=so,this.hashes=ao,this.size=lo}static empty(to){return new U1(to,0,0,[],[],[],[],0)}getKey(to){return this.keys[to]}getValue(to){return this.values[to]}getHash(to){return this.hashes[to]}getNode(to){return this.children[to]}contains(to,ro,no){const oo=maskFrom(ro,no),io=bitPosFrom(oo),{dataMap:so,nodeMap:ao}=this;if(so&io){const lo=indexFrom(so,oo,io),uo=this.getKey(lo);return is$1$1(uo,to)}else if(ao&io){const lo=indexFrom(ao,oo,io);return this.getNode(lo).contains(to,ro,no+BIT_PARTITION_SIZE)}return!1}get(to,ro,no){const oo=maskFrom(ro,no),io=bitPosFrom(oo),{dataMap:so,nodeMap:ao}=this;if(so&io){const lo=indexFrom(so,oo,io),uo=this.getKey(lo);return is$1$1(uo,to)?this.getValue(lo):void 0}else if(ao&io){const lo=indexFrom(ao,oo,io);return this.getNode(lo).get(to,ro,no+BIT_PARTITION_SIZE)}}insert(to,ro,no,oo,io){const so=maskFrom(oo,io),ao=bitPosFrom(so),{dataMap:lo,nodeMap:uo}=this;if(lo&ao){const co=indexFrom(lo,so,ao),fo=this.getKey(co),ho=this.getValue(co),po=this.getHash(co);if(po===oo&&is$1$1(fo,ro))return is$1$1(ho,no)?this:this.setValue(to,no,co);{const go=mergeTwoKeyValPairs(to,fo,ho,po,ro,no,oo,io+BIT_PARTITION_SIZE);return this.migrateInlineToNode(to,ao,go)}}else if(uo&ao){const co=indexFrom(uo,so,ao),ho=this.getNode(co).insert(to,ro,no,oo,io+BIT_PARTITION_SIZE);return this.setNode(to,1,ho,ao)}return this.insertValue(to,ao,ro,oo,no)}update(to,ro,no,oo,io){const so=maskFrom(oo,io),ao=bitPosFrom(so),{dataMap:lo,nodeMap:uo}=this;if(lo&ao){const co=indexFrom(lo,so,ao),fo=this.getKey(co);if(this.getHash(co)===oo&&is$1$1(fo,ro)){const po=this.getValue(co),go=no(po);return is$1$1(po,go)?this:this.setValue(to,go,co)}}else if(uo&ao){const co=indexFrom(uo,so,ao),fo=this.getNode(co),ho=fo.update(to,ro,no,oo,io+BIT_PARTITION_SIZE);return ho===fo?this:this.setNode(to,0,ho,ao)}return this}remove(to,ro,no,oo){const io=maskFrom(no,oo),so=bitPosFrom(io);if(this.dataMap&so){const ao=indexFrom(this.dataMap,io,so),lo=this.getKey(ao);return is$1$1(lo,ro)?this.removeValue(to,so):void 0}else if(this.nodeMap&so){const ao=indexFrom(this.nodeMap,io,so),lo=this.getNode(ao),uo=lo.remove(to,ro,no,oo+BIT_PARTITION_SIZE);if(uo===void 0)return;const[co,fo]=uo;return co.size===1?this.size===lo.size?[new U1(to,so,0,[co.getKey(0)],[co.getValue(0)],[],[co.getHash(0)],1),fo]:[this.migrateNodeToInline(to,so,co),fo]:[this.setNode(to,-1,co,so),fo]}}toOwned(to){return this.owner===to?this:new U1(to,this.dataMap,this.nodeMap,this.keys.slice(),this.values.slice(),this.children.slice(),this.hashes.slice(),this.size)}iter(){return new BitmapIndexedNodeIterator(this)}map(to,ro){const no=this.valueCount,oo=[],io=[],so=[];let ao=!0;for(let lo=0;lo=HASH_CODE_LENGTH)return new HashCollisionNode$1(eo,no,[to,oo],[ro,io]);{const lo=maskFrom(no,ao),uo=maskFrom(so,ao);if(lo!==uo){const co=bitPosFrom(lo)|bitPosFrom(uo);return lois$1$1(no,to));return ro>=0?this.values[ro]:void 0}insert(to,ro,no){const oo=this.keys.findIndex(io=>is$1$1(io,ro));if(oo>=0){const io=this.values[oo];if(is$1$1(io,no))return this;const so=this.toOwned(to);return so.values[oo]=no,so}else{const io=this.toOwned(to);return io.keys.push(ro),io.values.push(no),io}}update(to,ro,no){const oo=this.keys.findIndex(io=>is$1$1(io,ro));if(oo>=0){const io=this.values[oo],so=no(io);if(is$1$1(io,so))return this;const ao=this.toOwned(to);return ao.values[oo]=so,ao}return this}remove(to,ro){const no=this.keys.findIndex(io=>is$1$1(io,ro));if(no===-1)return;const oo=this.getValue(no);return[new Fm(to,this.hash,this.keys.filter((io,so)=>so!==no),this.values.filter((io,so)=>so!==no)),oo]}getKey(to){return this.keys[to]}getValue(to){return this.values[to]}getHash(){return this.hash}iter(){return new HashCollisionNodeIterator(this)}map(to,ro){const no=this.size,oo=[];let io=!1;for(let so=0;so=this.node.size)return{done:!0,value:void 0};const to=this.node.getKey(this.index),ro=this.node.getValue(this.index);return this.index+=1,{done:!1,value:[to,ro]}}clone(){const to=new HashCollisionNodeIterator(this.node);return to.index=this.index,to}}function hashing(eo){if(eo===null)return 1108378658;switch(typeof eo){case"boolean":return eo?839943201:839943200;case"number":return hashNumber$1(eo);case"string":return hashString$1(eo);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 hashString$1(String(eo))}}function hashString$1(eo){let to=0;for(let ro=0;ro4294967295;)eo/=4294967295,to^=eo;return smi$1(to)}function smi$1(eo){return eo&1073741823}class Uid{constructor(){this.id=0}take(){return this.id+=1,this.id}peek(){return this.id+1}}const uid$1=new Uid;class HashMap{get size(){return this.root.size}constructor(to){this.id=uid$1.take(),this.root=to}static empty(){return HashMapBuilder.empty().finish()}static from(to){return HashMapBuilder.from(to).finish()}get(to){const ro=hashing(to);return this.root.get(to,ro,0)}has(to){const ro=hashing(to);return this.root.contains(to,ro,0)}set(to,ro){return this.withRoot(this.root.insert(uid$1.peek(),to,ro,hashing(to),0))}update(to,ro){return this.withRoot(this.root.update(uid$1.peek(),to,ro,hashing(to),0))}delete(to){const ro=hashing(to),no=uid$1.peek(),oo=this.root.remove(no,to,ro,0);return oo===void 0?this:new HashMap(oo[0])}clone(){return new HashMap(this.root)}[Symbol.iterator](){return this.entries()}entries(){return this.root.iter()}values(){return new MapIterator$1(this.entries(),([,to])=>to)}mutate(){return new HashMapBuilder(this.root)}map(to){return new HashMap(this.root.map(uid$1.peek(),to))}filter(to){const ro=this.mutate();return this.forEach((no,oo)=>{to(no,oo)||ro.delete(oo)}),ro.finish()}forEach(to){this.root.forEach(to)}find(to){return this.root.find(to)}withRoot(to){return to===this.root?this:new HashMap(to)}}class HashMapBuilder{constructor(to){this.id=uid$1.take(),this.root=to}static empty(){const to=uid$1.peek(),ro=BitmapIndexedNode$1.empty(to);return new HashMapBuilder(ro)}static from(to){if(Array.isArray(to))return HashMapBuilder.fromArray(to);const ro=to[Symbol.iterator](),no=HashMapBuilder.empty();let oo=ro.next();for(;!oo.done;){const[io,so]=oo.value;no.set(io,so),oo=ro.next()}return no}static fromArray(to){const ro=HashMapBuilder.empty();for(let no=0;no=to?ro:no;const oo=ro+no>>>1;if(eo[oo]===to)return oo;to=MIN_SIZE$1)return uo;if(no===oo)return uo.balanceTail(lo),uo;const co=this.getValue(no);return uo.balanceChild(to,lo,ao,co,no)}}removeMostRight(to){const ro=this.selfSize,[no,oo,io]=this.getChild(ro).removeMostRight(to),so=this.toOwned(to);return so.size-=1,so.children[ro]=io,io.selfSizeMIN_SIZE$1)this.rotateRight(ro,ao,io,so);else if(lo.selfSize>MIN_SIZE$1)this.rotateLeft(ro,lo,io,so);else{const uo=ao.toOwned(to),co=lo.toOwned(to),fo=ro.getKey(HALF_NODE_SPLIT),ho=ro.getValue(HALF_NODE_SPLIT);uo.keys.push(this.getKey(io-1)),uo.values.push(this.getValue(io-1)),uo.keys.push(...ro.keys.slice(0,HALF_NODE_SPLIT)),uo.values.push(...ro.values.slice(0,HALF_NODE_SPLIT)),co.keys.unshift(no),co.values.unshift(oo),co.keys.unshift(...ro.keys.slice(HALF_NODE_SPLIT+1,MIN_SIZE$1)),co.values.unshift(...ro.values.slice(HALF_NODE_SPLIT+1,MIN_SIZE$1)),this.keys.splice(io-1,2,fo),this.values.splice(io-1,2,ho),this.children.splice(io-1,3,uo,co),so&&(uo.children.push(...ro.children.slice(0,HALF_NODE_SPLIT+1)),co.children.unshift(...ro.children.slice(HALF_NODE_SPLIT+1,MIN_SIZE$1+1)),uo.updateSize(),co.updateSize())}return this}rotateLeft(to,ro,no,oo){const io=ro.toOwned(this.owner),so=io.keys.shift(),ao=io.values.shift(),lo=this.getKey(no),uo=this.getValue(no);if(to.keys.push(lo),to.values.push(uo),this.keys[no]=so,this.values[no]=ao,this.children[no+1]=io,oo){const co=io.children.shift();to.children.push(co);const fo=co.size+1;to.size+=fo,io.size-=fo}}rotateRight(to,ro,no,oo){const io=ro.toOwned(this.owner),so=io.keys.pop(),ao=io.values.pop(),lo=this.getKey(no-1),uo=this.getValue(no-1);if(to.keys.unshift(lo),to.values.unshift(uo),this.keys[no-1]=so,this.values[no-1]=ao,this.children[no-1]=io,oo){const co=io.children.pop();to.children.unshift(co);const fo=co.size+1;to.size+=fo,io.size-=fo}}balanceTail(to){const ro=this.selfSize,no=this.getChild(ro-1),oo=to.type===NodeType$2.Internal;no.selfSize===MIN_SIZE$1?(to.keys.unshift(this.getKey(ro-1)),to.values.unshift(this.getValue(ro-1)),to.keys.unshift(...no.keys),to.values.unshift(...no.values),this.keys.splice(ro-1,1),this.values.splice(ro-1,1),this.children.splice(ro-1,1),oo&&(to.children.unshift(...no.children),to.size+=no.size+1)):this.rotateRight(to,no,ro,oo)}balanceHead(to){const ro=this.getChild(1),no=to.type===NodeType$2.Internal;ro.selfSize===MIN_SIZE$1?(to.keys.push(this.getKey(0)),to.values.push(this.getValue(0)),to.keys.push(...ro.keys),to.values.push(...ro.values),this.keys.splice(0,1),this.values.splice(0,1),this.children.splice(1,1),no&&(to.children.push(...ro.children),to.size+=ro.size+1)):this.rotateLeft(to,ro,0,no)}updateWithSplit(to,ro,no,oo,io,so){const ao=this.toOwned(to);ao.keys.splice(so,0,oo),ao.values.splice(so,0,io),ao.children.splice(so,1,ro,no);const lo=new InternalNode(to,ao.keys.splice(16,16),ao.values.splice(16,16),ao.children.splice(16,17),0),uo=ao.keys.pop(),co=ao.values.pop();return ao.updateSize(),lo.updateSize(),[ao,lo,uo,co]}updateSize(){let to=this.selfSize;const ro=this.children.length;for(let no=0;no{const[so,ao]=io,lo=ro(ao);return is$1$1(lo,ao)?io:[so,lo]});return this.withRoot(this.itemId,this.hashRoot,oo)}[Symbol.iterator](){return this.entries()}clone(){return new Q1(this.itemId,this.hashRoot,this.sortedRoot)}entries(){return new OrderedMapIterator(new BTreeIterator(this.sortedRoot))}values(){return new MapIterator$1(this.entries(),([,to])=>to)}mutate(){return new OrderedMapBuilder(this.itemId,this.hashRoot,this.sortedRoot)}map(to){const ro=uid.peek(),no=io=>{const[so,ao]=io,lo=to(ao,so);return is$1$1(ao,lo)?io:[so,lo]},oo=this.sortedRoot.map(ro,no);return new Q1(this.itemId,this.hashRoot,oo)}forEach(to){this.sortedRoot.forEach(([ro,no])=>{to(no,ro)})}find(to){const ro=this.sortedRoot.find(([,no])=>to(no));return ro?ro[1]:void 0}first(){const to=this.entries().next();if(!to.done)return to.value[1]}filter(to){const ro=this.mutate();return this.forEach((no,oo)=>{to(no,oo)||ro.delete(oo)}),ro.finish()}withRoot(to,ro,no){return ro===this.hashRoot&&no===this.sortedRoot?this:new Q1(to,ro,no)}};class OrderedMapIterator{constructor(to){this.delegate=to}[Symbol.iterator](){return this.clone()}next(){const to=this.delegate.next();return to.done?{done:!0,value:void 0}:{done:!1,value:to.value[1]}}clone(){return new OrderedMapIterator(this.delegate.clone())}}class OrderedMapBuilder{constructor(to,ro,no){this.id=uid.take(),this.itemId=to,this.hashRoot=ro,this.sortedRoot=no}static empty(){const to=uid.peek(),ro=BitmapIndexedNode$1.empty(to),no=emptyRoot(to);return new OrderedMapBuilder(0,ro,no)}static from(to){if(Array.isArray(to))return OrderedMapBuilder.fromArray(to);const ro=OrderedMapBuilder.empty(),no=to[Symbol.iterator]();let oo=no.next();for(;!oo.done;){const[io,so]=oo.value;ro.set(io,so),oo=no.next()}return ro}static fromArray(to){const ro=OrderedMapBuilder.empty();for(let no=0;no{const[io,so]=oo,ao=ro(so);return is$1$1(ao,so)?oo:[io,ao]}),this):this}finish(){return new OrderedMap$1(this.itemId,this.hashRoot,this.sortedRoot)}}const getPortPosition=(eo,to,ro)=>{const no=getRectWidth(ro,eo),oo=getRectHeight(ro,eo),io=to.position?to.position[0]*no:no*.5,so=eo.x+io,ao=to.position?to.position[1]*oo:oo,lo=eo.y+ao;return{x:so,y:lo}},getPortPositionByPortId=(eo,to,ro)=>{const no=getNodeConfig(eo,ro);if(!no)return;const io=(eo.ports||[]).find(so=>so.id===to);if(!io){Debug.warn(`invalid port id ${JSON.stringify(io)}`);return}return getPortPosition(eo,io,no)},identical=eo=>eo,isMobile=()=>[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some(to=>navigator.userAgent.match(to));var BrowserType;(function(eo){eo.Unknown="Unknown",eo.Edge="Edge",eo.EdgeChromium="EdgeChromium",eo.Opera="Opera",eo.Chrome="Chrome",eo.IE="IE",eo.Firefox="Firefox",eo.Safari="Safari",eo.Electron="Electron"})(BrowserType||(BrowserType={}));const getBrowser=()=>{const eo=navigator.userAgent.toLowerCase();if(eo.indexOf("electron")>-1)return BrowserType.Electron;switch(!0){case eo.indexOf("edge")>-1:return BrowserType.Edge;case eo.indexOf("edg")>-1:return BrowserType.EdgeChromium;case(eo.indexOf("opr")>-1&&!!window.opr):return BrowserType.Opera;case(eo.indexOf("chrome")>-1&&!!window.chrome):return BrowserType.Chrome;case eo.indexOf("trident")>-1:return BrowserType.IE;case eo.indexOf("firefox")>-1:return BrowserType.Firefox;case eo.indexOf("safari")>-1:return BrowserType.Safari;default:return BrowserType.Unknown}},isSupported=()=>{if(isMobile())return!1;const eo=getBrowser();return[BrowserType.Chrome,BrowserType.EdgeChromium,BrowserType.Firefox,BrowserType.Safari,BrowserType.Electron].indexOf(eo)>-1},isMacOs=navigator.userAgent.includes("Macintosh"),metaControl=eo=>isMacOs?eo.metaKey:eo.ctrlKey,checkIsMultiSelect=eo=>eo.shiftKey||metaControl(eo),transformPoint=(eo,to,ro)=>({x:ro[0]*eo+ro[2]*to+ro[4],y:ro[1]*eo+ro[3]*to+ro[5]}),reverseTransformPoint=(eo,to,ro)=>{const[no,oo,io,so,ao,lo]=ro;return{x:((eo-ao)*so-(to-lo)*io)/(no*so-oo*io),y:((eo-ao)*oo-(to-lo)*no)/(oo*io-no*so)}},getPointDeltaByClientDelta=(eo,to,ro)=>{const[no,oo,io,so]=ro,ao=so*eo/(no*so-oo*io)+io*to/(oo*io-no*so),lo=oo*eo/(oo*io-no*so)+no*to/(no*so-oo*io);return{x:ao,y:lo}},getClientDeltaByPointDelta=(eo,to,ro)=>{if(!ro)return{x:eo,y:to};const[no,oo,io,so]=ro;return transformPoint(eo,to,[no,oo,io,so,0,0])},getRealPointFromClientPoint=(eo,to,ro)=>{const{rect:no}=ro,oo=eo-no.left,io=to-no.top;return reverseTransformPoint(oo,io,ro.transformMatrix)},getClientPointFromRealPoint=(eo,to,ro)=>{const{x:no,y:oo}=transformPoint(eo,to,ro.transformMatrix),{rect:io}=ro;return{x:no+io.left,y:oo+io.top}},getContainerClientPoint=(eo,to,ro)=>{const no=getClientPointFromRealPoint(eo,to,ro),{rect:oo}=ro;return{x:no.x-oo.left,y:no.y-oo.top}};function markEdgeDirty(eo,to){eo.update(to,ro=>ro.shallow())}const getNearestConnectablePort=eo=>{const{parentNode:to,clientX:ro,clientY:no,graphConfig:oo,viewport:io}=eo;let so=1/0,ao;if(!to.ports)return;const lo=getRealPointFromClientPoint(ro,no,io);return to.ports.forEach(uo=>{if(isConnectable(oo,Object.assign(Object.assign({},eo),{model:uo}))){const co=getPortPositionByPortId(to,uo.id,oo);if(!co)return;const fo=lo.x-co.x,ho=lo.y-co.y,po=fo*fo+ho*ho;po{const ro=eo.getPortConfig(to.model);return ro?ro.getIsConnectable(to):!1},filterSelectedItems=eo=>{const to=new Map,ro=[];return eo.nodes.forEach(({inner:no})=>{isSelected(no)&&to.set(no.id,no)}),eo.edges.forEach(({inner:no})=>{(isSelected(no)||to.has(no.source)&&to.has(no.target))&&ro.push(no)}),{nodes:Array.from(to.values()),edges:ro}},getNeighborPorts=(eo,to,ro)=>{const no=[],oo=eo.getEdgesBySource(to,ro),io=eo.getEdgesByTarget(to,ro);return oo==null||oo.forEach(so=>{const ao=eo.edges.get(so);ao&&no.push({nodeId:ao.target,portId:ao.targetPortId})}),io==null||io.forEach(so=>{const ao=eo.edges.get(so);ao&&no.push({nodeId:ao.source,portId:ao.sourcePortId})}),no},unSelectAllEntity=()=>eo=>eo.mapNodes(to=>to.update(ro=>{var no;const oo=Object.assign(Object.assign({},ro),{ports:(no=ro.ports)===null||no===void 0?void 0:no.map(updateStatus(replace$1(GraphPortStatus.Default)))});return updateStatus(replace$1(GraphNodeStatus.Default))(oo)})).mapEdges(to=>to.update(updateStatus(replace$1(GraphEdgeStatus.Default)))),nodeSelection=(eo,to)=>{if(isNodeEditing(to))return identical;const ro=checkIsMultiSelect(eo);return isSelected(to)&&!ro?identical:no=>{const oo=ro?io=>io.id!==to.id?isSelected(io):eo.button===MouseEventButton.Secondary?!0:!isSelected(to):io=>io.id===to.id;return no.selectNodes(oo,to.id)}},getNodeAutomationId=eo=>{var to;return`node-container-${(to=eo.name)!==null&&to!==void 0?to:"unnamed"}-${eo.id}`},getPortAutomationId=(eo,to)=>`port-${to.name}-${to.id}-${eo.name}-${eo.id}`,getNodeUid=(eo,to)=>`node:${eo}:${to.id}`,getPortUid=(eo,to,ro)=>`port:${eo}:${to.id}:${ro.id}`,getEdgeUid=(eo,to)=>`edge:${eo}:${to.id}`;function preventSpread(eo){Object.defineProperty(eo,"__preventSpread",{enumerable:!0,configurable:!1,get(){document.currentScript&&Debug.error(`${eo.constructor.name} is a class, which should not be used in the spread syntax or argument of Object.assign`)}})}class EdgeModel{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(to){this.inner=to,preventSpread(this)}static fromJSON(to){return new EdgeModel(to)}updateStatus(to){return this.update(updateStatus(to))}update(to){const ro=to(this.inner);return ro===this.inner?this:new EdgeModel(ro)}shallow(){return new EdgeModel(this.inner)}toJSON(){return this.inner}}const is$2=Object.is;function mapCow(eo,to){const ro=[];let no=!0;for(let oo=0;oono.id===to)}link({prev:to,next:ro}){return to===this.prev&&ro===this.next?this:new NodeModel(this.inner,this.portPositionCache,to??this.prev,ro??this.next)}updateStatus(to){return this.update(updateStatus(to))}update(to){const ro=to(this.inner);return ro===this.inner?this:new NodeModel(ro,new Map,this.prev,this.next)}updateData(to){return this.data?this.update(ro=>{const no=to(ro.data);return no===ro.data?ro:Object.assign(Object.assign({},ro),{data:no})}):this}getPortPosition(to,ro){let no=this.portPositionCache.get(to);return no||(no=getPortPositionByPortId(this.inner,to,ro),this.portPositionCache.set(to,no)),no}hasPort(to){var ro;return!!(!((ro=this.inner.ports)===null||ro===void 0)&&ro.find(no=>no.id===to))}updatePositionAndSize(to){const{x:ro,y:no,width:oo,height:io}=to,so=Object.assign(Object.assign({},this.inner),{x:ro,y:no,width:oo??this.inner.width,height:io??this.inner.height});return new NodeModel(so,new Map,this.prev,this.next)}updatePorts(to){if(!this.inner.ports)return this;const ro=mapCow(this.inner.ports,to),no=this.inner.ports===ro?this.inner:Object.assign(Object.assign({},this.inner),{ports:ro});return no===this.inner?this:new NodeModel(no,new Map,this.prev,this.next)}invalidCache(){return new NodeModel(this.inner,new Map,this.prev,this.next)}toJSON(){return this.inner}}class GraphModel{constructor(to){this.nodes=to.nodes,this.edges=to.edges,this.groups=to.groups,this.head=to.head,this.tail=to.tail,this.edgesBySource=to.edgesBySource,this.edgesByTarget=to.edgesByTarget,this.selectedNodes=to.selectedNodes,preventSpread(this)}static empty(){return new GraphModel({nodes:OrderedMap$1.empty(),edges:HashMap.empty(),groups:[],head:void 0,tail:void 0,edgesBySource:HashMap.empty(),edgesByTarget:HashMap.empty(),selectedNodes:new Set})}static fromJSON(to){var ro;const no=OrderedMap$1.empty().mutate(),oo=HashMap.empty().mutate();let io,so;if(to.nodes.length===0)io=void 0,so=void 0;else if(to.nodes.length===1){const uo=to.nodes[0];no.set(uo.id,NodeModel.fromJSON(uo,void 0,void 0)),io=uo.id,so=uo.id}else{const uo=to.nodes[0],co=to.nodes[1],fo=to.nodes[to.nodes.length-1];io=uo.id,so=fo.id,no.set(uo.id,NodeModel.fromJSON(uo,void 0,co.id));let ho=to.nodes[0];if(to.nodes.length>2)for(let po=1;poao.update(ro));if(io===this.nodes)return this;const so=this.edges.mutate();return(no=this.edgesBySource.get(to))===null||no===void 0||no.forEach(ao=>{ao.forEach(lo=>{markEdgeDirty(so,lo)})}),(oo=this.edgesByTarget.get(to))===null||oo===void 0||oo.forEach(ao=>{ao.forEach(lo=>{markEdgeDirty(so,lo)})}),this.merge({nodes:io,edges:so.finish()})}updateNodeData(to,ro){return this.merge({nodes:this.nodes.update(to,no=>no.updateData(ro))})}updatePort(to,ro,no){const oo=this.nodes.update(to,io=>io.updatePorts(so=>so.id===ro?no(so):so));return this.merge({nodes:oo})}insertNode(to){const ro=this.nodes.mutate().set(to.id,NodeModel.fromJSON(to,this.tail,void 0));return this.tail&&!this.nodes.has(to.id)&&ro.update(this.tail,no=>no.link({next:to.id})),this.merge({nodes:ro.finish(),head:this.nodes.size===0?to.id:this.head,tail:to.id})}deleteItems(to){var ro;const no=new Set,oo=this.nodes.mutate();let io=this.head===void 0?void 0:this.nodes.get(this.head),so=io,ao;const lo=this.edgesBySource.mutate(),uo=this.edgesByTarget.mutate();for(;so!==void 0;){const fo=so.next?this.nodes.get(so.next):void 0;!((ro=to.node)===null||ro===void 0)&&ro.call(to,so.inner)?(oo.update(so.id,ho=>ho.link({prev:ao==null?void 0:ao.id}).update(po=>has$1(GraphNodeStatus.Editing)(po.status)?po:Object.assign(Object.assign({},po),{status:GraphNodeStatus.Default}))),ao=so):(oo.delete(so.id),lo.delete(so.id),uo.delete(so.id),no.add(so.id),ao&&oo.update(ao.id,ho=>ho.link({next:so==null?void 0:so.next})),fo&&oo.update(fo.id,ho=>ho.link({prev:ao==null?void 0:ao.id})),so===io&&(io=fo)),so=fo}const co=this.edges.mutate();return this.edges.forEach(fo=>{var ho,po;!no.has(fo.source)&&!no.has(fo.target)&&(!((po=(ho=to.edge)===null||ho===void 0?void 0:ho.call(to,fo))!==null&&po!==void 0)||po)?co.update(fo.id,go=>go.update(updateStatus(replace$1(GraphEdgeStatus.Default)))):(co.delete(fo.id),deleteEdgeByPort(lo,fo.id,fo.source,fo.sourcePortId),deleteEdgeByPort(uo,fo.id,fo.target,fo.targetPortId))}),this.merge({nodes:oo.finish(),edges:co.finish(),head:io==null?void 0:io.id,tail:ao==null?void 0:ao.id,edgesBySource:lo.finish(),edgesByTarget:uo.finish()})}insertEdge(to){if(this.isEdgeExist(to.source,to.sourcePortId,to.target,to.targetPortId)||!this.nodes.has(to.source)||!this.nodes.has(to.target))return this;const ro=setEdgeByPort(this.edgesBySource,to.id,to.source,to.sourcePortId),no=setEdgeByPort(this.edgesByTarget,to.id,to.target,to.targetPortId);return this.merge({nodes:this.nodes.update(to.source,oo=>oo.invalidCache()).update(to.target,oo=>oo.invalidCache()),edges:this.edges.set(to.id,EdgeModel.fromJSON(to)).map(oo=>oo.updateStatus(replace$1(GraphEdgeStatus.Default))),edgesBySource:ro,edgesByTarget:no})}updateEdge(to,ro){return this.merge({edges:this.edges.update(to,no=>no.update(ro))})}deleteEdge(to){const ro=this.edges.get(to);return ro?this.merge({edges:this.edges.delete(to),edgesBySource:deleteEdgeByPort(this.edgesBySource,ro.id,ro.source,ro.sourcePortId),edgesByTarget:deleteEdgeByPort(this.edgesByTarget,ro.id,ro.target,ro.targetPortId)}):this}updateNodesPositionAndSize(to){const ro=new Set,no=this.nodes.mutate(),oo=this.edges.mutate();return to.forEach(io=>{var so,ao;ro.add(io.id),no.update(io.id,lo=>lo.updatePositionAndSize(io)),(so=this.edgesBySource.get(io.id))===null||so===void 0||so.forEach(lo=>{lo.forEach(uo=>{markEdgeDirty(oo,uo)})}),(ao=this.edgesByTarget.get(io.id))===null||ao===void 0||ao.forEach(lo=>{lo.forEach(uo=>{markEdgeDirty(oo,uo)})})}),this.merge({nodes:no.finish(),edges:oo.finish()})}mapNodes(to){return this.merge({nodes:this.nodes.map(to)})}mapEdges(to){return this.merge({edges:this.edges.map(to)})}selectNodes(to,ro){const no=new Set,oo=this.nodes.map(ao=>{const lo=to(ao.inner);return lo&&no.add(ao.id),ao.updatePorts(updateStatus(replace$1(GraphPortStatus.Default))).updateStatus(resetConnectStatus(lo?GraphNodeStatus.Selected:GraphNodeStatus.UnconnectedToSelected))}).mutate();if(no.size===0)this.nodes.forEach(ao=>oo.update(ao.id,lo=>lo.updateStatus(replace$1(GraphNodeStatus.Default))));else if(ro){const ao=oo.get(ro);ao&&(oo.delete(ro),oo.set(ao.id,ao))}const io=ao=>{oo.update(ao,lo=>lo.updateStatus(replace$1(isSelected(lo)?GraphNodeStatus.Selected:GraphNodeStatus.ConnectedToSelected)))},so=no.size?this.edges.map(ao=>{let lo=GraphEdgeStatus.UnconnectedToSelected;return no.has(ao.source)&&(io(ao.target),lo=GraphEdgeStatus.ConnectedToSelected),no.has(ao.target)&&(io(ao.source),lo=GraphEdgeStatus.ConnectedToSelected),ao.updateStatus(replace$1(lo))}):this.edges.map(ao=>ao.updateStatus(replace$1(GraphEdgeStatus.Default)));return this.merge({nodes:oo.finish(),edges:so,selectedNodes:no})}getEdgesBySource(to,ro){var no;return(no=this.edgesBySource.get(to))===null||no===void 0?void 0:no.get(ro)}getEdgesByTarget(to,ro){var no;return(no=this.edgesByTarget.get(to))===null||no===void 0?void 0:no.get(ro)}isPortConnectedAsSource(to,ro){var no,oo;return((oo=(no=this.getEdgesBySource(to,ro))===null||no===void 0?void 0:no.size)!==null&&oo!==void 0?oo:0)>0}isPortConnectedAsTarget(to,ro){var no,oo;return((oo=(no=this.getEdgesByTarget(to,ro))===null||no===void 0?void 0:no.size)!==null&&oo!==void 0?oo:0)>0}shallow(){return this.merge({})}toJSON(){const to=[];let ro=this.head&&this.nodes.get(this.head);for(;ro;)to.push(ro.inner),ro=ro.next&&this.nodes.get(ro.next);const no=Array.from(this.edges.values()).map(oo=>oo.inner);return{nodes:to,edges:no}}isEdgeExist(to,ro,no,oo){const io=this.getEdgesBySource(to,ro),so=this.getEdgesByTarget(no,oo);if(!io||!so)return!1;let ao=!1;return io.forEach(lo=>{so.has(lo)&&(ao=!0)}),ao}merge(to){var ro,no,oo,io,so,ao,lo,uo;return new GraphModel({nodes:(ro=to.nodes)!==null&&ro!==void 0?ro:this.nodes,edges:(no=to.edges)!==null&&no!==void 0?no:this.edges,groups:(oo=to.groups)!==null&&oo!==void 0?oo:this.groups,head:(io=to.head)!==null&&io!==void 0?io:this.head,tail:(so=to.tail)!==null&&so!==void 0?so:this.tail,edgesBySource:(ao=to.edgesBySource)!==null&&ao!==void 0?ao:this.edgesBySource,edgesByTarget:(lo=to.edgesByTarget)!==null&&lo!==void 0?lo:this.edgesByTarget,selectedNodes:(uo=to.selectedNodes)!==null&&uo!==void 0?uo:this.selectedNodes})}}function setEdgeByPort(eo,to,ro,no){return eo.has(ro)?eo.update(ro,oo=>{const io=oo.get(no);return new Map(oo).set(no,(io?new Set(io):new Set).add(to))}):eo.set(ro,new Map([[no,new Set([to])]]))}function setEdgeByPortMutable(eo,to,ro,no){eo.has(ro)?eo.update(ro,oo=>{let io=oo.get(no);return io||(io=new Set,oo.set(no,io)),io.add(to),oo}):eo.set(ro,new Map([[no,new Set([to])]]))}function deleteEdgeByPort(eo,to,ro,no){return eo.has(ro)?eo.update(ro,oo=>{const io=oo.get(no);if(!io)return oo;const so=new Set(io);return so.delete(to),new Map(oo).set(no,so)}):eo}var CanvasMouseMode;(function(eo){eo.Pan="Pan",eo.Select="Select"})(CanvasMouseMode||(CanvasMouseMode={}));var GraphBehavior;(function(eo){eo.Default="default",eo.Dragging="dragging",eo.Panning="panning",eo.MultiSelect="multiSelect",eo.Connecting="connecting",eo.AddingNode="addingNode"})(GraphBehavior||(GraphBehavior={}));function clamp$1(eo,to,ro){return eo>ro?eo:to{const{instance:no,maxWait:oo}=ro||{};let io=0,so;return(...lo)=>{if(window.clearTimeout(io),isDef(oo)){const uo=Date.now();if(!isDef(so))so=uo;else if(uo-so>=oo){so=void 0,ao(lo);return}}io=window.setTimeout(()=>{ao(lo)},to)};function ao(lo){eo.apply(no,lo)}},emptyArrayInstance=[];function constantEmptyArray(){return emptyArrayInstance}const checkRectIntersect=(eo,to)=>{const ro=eo.maxXto.maxX,oo=eo.minY>to.maxY,io=eo.maxY{const{minX:ro,minY:no,maxX:oo,maxY:io}=eo,{x:so,y:ao}=to;return so>ro&&sono&&aoMath.pow(eo,2),distance=(eo,to,ro,no)=>Math.sqrt(square(ro-eo)+square(no-to)),getLinearFunction=(eo,to,ro,no)=>eo===ro?()=>Number.MAX_SAFE_INTEGER:oo=>(no-to)/(ro-eo)*oo+(to*ro-no*eo)/(ro-eo),shallowEqual=(eo,to)=>{if(!eo||eo.length!==to.length)return!1;for(let ro=0;ro{const io=to?Array.isArray(to)?to:to.apply(void 0,oo):oo;return shallowEqual(ro,io)||(ro=io,no=eo.apply(void 0,oo)),no}}var Direction$2;(function(eo){eo[eo.X=0]="X",eo[eo.Y=1]="Y",eo[eo.XY=2]="XY"})(Direction$2||(Direction$2={}));const isViewportComplete=eo=>!!eo.rect,getNodeRect=(eo,to)=>{const{x:ro,y:no}=eo,{width:oo,height:io}=getNodeSize(eo,to);return{x:ro,y:no,width:oo,height:io}},isNodeVisible=(eo,to,ro)=>isRectVisible(getNodeRect(eo,ro),to),isRectVisible=(eo,to)=>{const{x:ro,y:no,width:oo,height:io}=eo;return isPointVisible({x:ro,y:no},to)||isPointVisible({x:ro+oo,y:no},to)||isPointVisible({x:ro+oo,y:no+io},to)||isPointVisible({x:ro,y:no+io},to)},isPointVisible=(eo,to)=>{const{x:ro,y:no}=getContainerClientPoint(eo.x,eo.y,to),{height:oo,width:io}=to.rect;return ro>0&&ro0&&no{const no=[];return eo.forEach(oo=>{isNodeVisible(oo,to,ro)&&no.push(oo.inner)}),no},getRenderedNodes=(eo,to)=>{const ro=[],no=getRenderedArea(to);return eo.forEach(oo=>{isNodeInRenderedArea(oo,no)&&ro.push(oo.inner)}),ro},isNodeInRenderedArea=(eo,to)=>isPointInRect(to,eo),getVisibleArea=eo=>{if(!isViewportComplete(eo))return{minX:0,minY:0,maxX:0,maxY:0};const{rect:to,transformMatrix:ro}=eo,no=0,oo=0,io=to.width,so=to.height,ao=reverseTransformPoint(no,oo,ro),lo=reverseTransformPoint(io,so,ro);return{minX:ao.x,minY:ao.y,maxX:lo.x,maxY:lo.y}},getRenderedArea=eo=>{if(!isViewportComplete(eo))return{minX:0,minY:0,maxX:0,maxY:0};const{rect:to,transformMatrix:ro}=eo,no=0,oo=0,io=to.width,so=to.height,ao=reverseTransformPoint(no-to.width,oo-to.height,ro),lo=reverseTransformPoint(io+to.width,so+to.height,ro);return{minX:ao.x,minY:ao.y,maxX:lo.x,maxY:lo.y}},normalizeSpacing=eo=>eo?typeof eo=="number"?{top:eo,right:eo,bottom:eo,left:eo}:Object.assign({top:0,right:0,bottom:0,left:0},eo):{top:0,right:0,bottom:0,left:0},zoomTo=({scale:eo,anchor:to,direction:ro,limitScale:no})=>oo=>{const io=no(eo)/oo.transformMatrix[0],so=no(eo)/oo.transformMatrix[3],{x:ao,y:lo}=to,uo=ao*(1-io),co=lo*(1-so);let fo;switch(ro){case Direction$2.X:fo=[eo,0,0,oo.transformMatrix[3],oo.transformMatrix[4]*io+uo,oo.transformMatrix[5]];break;case Direction$2.Y:fo=[oo.transformMatrix[0],0,0,eo,oo.transformMatrix[4],oo.transformMatrix[5]*so+co];break;case Direction$2.XY:default:fo=[eo,0,0,eo,oo.transformMatrix[4]*io+uo,oo.transformMatrix[5]*so+co]}return Object.assign(Object.assign({},oo),{transformMatrix:fo})},zoom=({scale:eo,anchor:to,direction:ro,limitScale:no})=>eo===1?identical:oo=>{let io;switch(ro){case Direction$2.X:return zoomTo({anchor:to,direction:ro,limitScale:no,scale:oo.transformMatrix[0]*eo})(oo);case Direction$2.Y:return zoomTo({anchor:to,direction:ro,limitScale:no,scale:oo.transformMatrix[3]*eo})(oo);case Direction$2.XY:default:{const so=no(oo.transformMatrix[0]*eo),ao=no(oo.transformMatrix[3]*eo),lo=so/oo.transformMatrix[0],uo=ao/oo.transformMatrix[3],{x:co,y:fo}=to,ho=co*(1-lo),po=fo*(1-uo);io=[so,0,0,ao,oo.transformMatrix[4]*lo+ho,oo.transformMatrix[5]*uo+po]}}return Object.assign(Object.assign({},oo),{transformMatrix:io})},pan=(eo,to)=>eo===0&&to===0?identical:ro=>Object.assign(Object.assign({},ro),{transformMatrix:[ro.transformMatrix[0],ro.transformMatrix[1],ro.transformMatrix[2],ro.transformMatrix[3],ro.transformMatrix[4]+eo,ro.transformMatrix[5]+to]}),minimapPan=(eo,to)=>eo===0&&to===0?identical:ro=>{const[no,oo,io,so]=ro.transformMatrix;return Object.assign(Object.assign({},ro),{transformMatrix:[no,oo,io,so,ro.transformMatrix[4]+no*eo+oo*to,ro.transformMatrix[5]+io*eo+so*to]})},getContentArea$1=(eo,to,ro)=>{let no=1/0,oo=1/0,io=1/0,so=1/0,ao=-1/0,lo=-1/0;return(ro===void 0?ho=>eo.nodes.forEach(ho):ho=>ro==null?void 0:ro.forEach(po=>{const go=eo.nodes.get(po);go&&ho(go)}))(ho=>{const{width:po,height:go}=getNodeSize(ho,to);ho.xao&&(ao=ho.x+po),ho.y+go>lo&&(lo=ho.y+go),po{let{width:ro,height:no}=eo,{width:oo,height:io}=to;if(ro>oo){const so=ro;ro=oo,oo=so}if(no>io){const so=no;no=io,io=so}return{nodeMinVisibleWidth:ro,nodeMinVisibleHeight:no,nodeMaxVisibleWidth:oo,nodeMaxVisibleHeight:io}},getScaleRange=(eo,{width:to,height:ro})=>{const{nodeMinVisibleWidth:no,nodeMinVisibleHeight:oo,nodeMaxVisibleWidth:io,nodeMaxVisibleHeight:so}=normalizeNodeVisibleMinMax(eo);let ao=0,lo=0,uo=1/0,co=1/0;return to&&(ao=no/to,uo=io/to),ro&&(lo=oo/ro,co=so/ro),{minScaleX:ao,minScaleY:lo,maxScaleX:uo,maxScaleY:co}},getZoomFitMatrix=eo=>{const{data:to,graphConfig:ro,disablePan:no,direction:oo,rect:io}=eo,{nodes:so}=to;if(so.size===0)return[1,0,0,1,0,0];const{minNodeWidth:ao,minNodeHeight:lo,minNodeX:uo,minNodeY:co,maxNodeX:fo,maxNodeY:ho}=getContentArea$1(to,ro),{minScaleX:po,minScaleY:go,maxScaleX:vo,maxScaleY:bo}=getScaleRange(eo,{width:ao,height:lo}),xo=normalizeSpacing(eo.spacing),{width:_o,height:Eo}=io,So=_o/(fo-uo+xo.left+xo.right),To=Eo/(ho-co+xo.top+xo.bottom),wo=oo===Direction$2.Y?Math.min(Math.max(po,go,To),vo,bo):Math.min(Math.max(po,go,Math.min(So,To)),bo,bo),Co=oo===Direction$2.XY?Math.min(Math.max(po,So),vo):wo,Oo=oo===Direction$2.XY?Math.min(Math.max(go,To),bo):wo;if(no)return[Co,0,0,Oo,0,0];const Ao=-Co*(uo-xo.left),Ro=-Oo*(co-xo.top);if(getVisibleNodes(to.nodes,{rect:io,transformMatrix:[Co,0,0,Oo,Ao,Ro]},ro).length>0)return[Co,0,0,Oo,Ao,Ro];let Mo=to.nodes.first();return Mo&&to.nodes.forEach(Do=>{Mo.y>Do.y&&(Mo=Do)}),[Co,0,0,Oo,-Co*(Mo.x-xo.left),-Oo*(Mo.y-xo.top)]},focusArea=(eo,to,ro,no,oo)=>{const io=ro-eo,so=no-to,ao=Math.min(oo.rect.width/io,oo.rect.height/so),lo=-ao*(eo+io/2)+oo.rect.width/2,uo=-ao*(to+so/2)+oo.rect.height/2;return Object.assign(Object.assign({},oo),{transformMatrix:[ao,0,0,ao,lo,uo]})};function getContainerCenter(eo){const to=eo.current;if(!to)return;const ro=to.width/2,no=to.height/2;return{x:ro,y:no}}function getRelativePoint(eo,to){const ro=to.clientX-eo.left,no=to.clientY-eo.top;return{x:ro,y:no}}const scrollIntoView$3=(eo,to,ro,no,oo)=>{if(!ro)return identical;const{width:io,height:so}=ro;return!(eo<0||eo>io||to<0||to>so)&&!no?identical:lo=>{const uo=oo?oo.x-eo:io/2-eo,co=oo?oo.y-to:so/2-to;return Object.assign(Object.assign({},lo),{transformMatrix:[lo.transformMatrix[0],lo.transformMatrix[1],lo.transformMatrix[2],lo.transformMatrix[3],lo.transformMatrix[4]+uo,lo.transformMatrix[5]+co]})}},getScaleLimit=(eo,to)=>{const{minNodeWidth:ro,minNodeHeight:no}=getContentArea$1(eo,to.graphConfig),{minScaleX:oo,minScaleY:io}=getScaleRange(to,{width:ro,height:no});return Math.max(oo,io)},getContentArea=memoize$1(getContentArea$1),getOffsetLimit=({data:eo,graphConfig:to,rect:ro,transformMatrix:no,canvasBoundaryPadding:oo,groupPadding:io})=>{var so,ao,lo,uo;const co=getContentArea(eo,to),fo=getClientDeltaByPointDelta(co.minNodeX-((io==null?void 0:io.left)||0),co.minNodeY-((io==null?void 0:io.top)||0),no);fo.x-=(so=oo==null?void 0:oo.left)!==null&&so!==void 0?so:0,fo.y-=(ao=oo==null?void 0:oo.top)!==null&&ao!==void 0?ao:0;const ho=getClientDeltaByPointDelta(co.maxNodeX+((io==null?void 0:io.right)||0),co.maxNodeY+((io==null?void 0:io.bottom)||0),no);ho.x+=(lo=oo==null?void 0:oo.right)!==null&&lo!==void 0?lo:0,ho.y+=(uo=oo==null?void 0:oo.bottom)!==null&&uo!==void 0?uo:0;let po=-fo.x||0,go=-fo.y||0,vo=ro.width-ho.x||0,bo=ro.height-ho.y||0;if(vo({present:to,past:{next:eo.past,value:ro(eo.present)},future:null}),undo$1=eo=>eo.past?{present:eo.past.value,past:eo.past.next,future:{next:eo.future,value:eo.present}}:eo,redo$1=eo=>eo.future?{present:eo.future.value,past:{next:eo.past,value:eo.present},future:eo.future.next}:eo,resetUndoStack=eo=>({present:eo,future:null,past:null}),isWithinThreshold=(eo,to,ro)=>Math.abs(eo){warnGraphStateContext()}},EMPTY_CONNECT_STATE={sourceNode:void 0,sourcePort:void 0,targetNode:void 0,targetPort:void 0,movingPoint:{x:0,y:0}},GraphValueContext=reactExports.createContext(new Proxy(GraphModel.empty(),{get:(eo,to)=>(console.warn("Default graph data value is being used. Please check if you forget rendering Graph component"),Reflect.get(eo,to))})),GraphStateContext=reactExports.createContext(defaultGraphStateContext),SlotsContext=reactExports.createContext({});class EventChannel{constructor(){this.listenersRef=reactExports.createRef(),this.externalHandlerRef=reactExports.createRef(),this.queue=[],this.working=!1}trigger(to){this.working?this.queue.push(to):(this.working=!0,reactDomExports.unstable_batchedUpdates(()=>{this.callHandlers(to);for(let ro=0;ro{this.dispatchDelegate(no,oo)},this.state=to,this.UNSAFE_latestState=to,this.dispatchDelegate=ro}setMouseClientPosition(to){this.mouseClientPoint=to}unsetMouseClientPosition(){this.mouseClientPoint=void 0}getMouseClientPosition(){return this.mouseClientPoint}getEnabledFeatures(){return this.state.settings.features}getBehavior(){return this.behavior}setBehavior(to){this.behavior=to}getData(){return this.state.data.present}getGlobalEventTarget(){var to,ro;return(ro=(to=this.getGlobalEventTargetDelegate)===null||to===void 0?void 0:to.call(this))!==null&&ro!==void 0?ro:window}}function useConst(eo){const to=reactExports.useRef();return to.current===void 0&&(to.current=eo()),to.current}const noop$2=()=>{};class ErrorBoundary extends reactExports.Component{constructor(to){super(to),this.state={hasError:!1}}static getDerivedStateFromError(to){return{hasError:!0,error:to}}componentDidCatch(to,ro){console.error(to),this.setState({error:to,errorInfo:ro})}render(){var to,ro;if(!this.state.hasError)return this.props.children;if(this.props.renderOnError)return(to=this.props.renderOnError(this.state.error,this.state.errorInfo,this.props.children))!==null&&to!==void 0?to:null;const no=this.state.errorInfo?(ro=this.state.errorInfo.componentStack)===null||ro===void 0?void 0:ro.split(` +`):[];return jsxRuntimeExports.jsxs("div",Object.assign({style:{color:"red"}},{children:[jsxRuntimeExports.jsx("h1",{children:"Something went wrong."}),jsxRuntimeExports.jsx("p",{children:`Error: ${this.state.error}`}),jsxRuntimeExports.jsx("p",{children:`ErrorInfo: ${JSON.stringify(this.state.errorInfo)}`}),jsxRuntimeExports.jsx("h2",{children:"Component Stack"}),(no??[]).map((oo,io)=>jsxRuntimeExports.jsx("p",{children:oo},io))]}))}}const EMPTY_CONNECT_CONTEXT={sourceNode:void 0,sourcePort:void 0,targetNode:void 0,targetPort:void 0},ConnectingStateContext=reactExports.createContext(EMPTY_CONNECT_CONTEXT);ConnectingStateContext.displayName="ConnectingStateContext";const ConnectingState=({children:eo,data:to,connectState:ro})=>{let no,oo,io,so;ro&&(no=to.nodes.get(ro.sourceNode),oo=no==null?void 0:no.getPort(ro.sourcePort),io=ro.targetNode?to.nodes.get(ro.targetNode):void 0,so=ro.targetPort?io==null?void 0:io.getPort(ro.targetPort):void 0);const ao=reactExports.useMemo(()=>({sourceNode:no,sourcePort:oo,targetNode:io,targetPort:so}),[no,oo,io,so]);return jsxRuntimeExports.jsx(ConnectingStateContext.Provider,Object.assign({value:ao},{children:eo}))};ConnectingState.displayName="ConnectingState";const AlignmentLinesContext=reactExports.createContext([]),GraphControllerContext=reactExports.createContext(new GraphController(EMPTY_GRAPH_STATE,noop$2));function GraphStateStore(eo){const{graphController:to,state:ro,dispatch:no,children:oo}=eo,io=reactExports.useMemo(()=>({state:ro,dispatch:no}),[ro,no]);return jsxRuntimeExports.jsx(GraphConfigContext.Provider,Object.assign({value:ro.settings.graphConfig},{children:jsxRuntimeExports.jsx(GraphControllerContext.Provider,Object.assign({value:to},{children:jsxRuntimeExports.jsx(ConnectingState,Object.assign({data:ro.data.present,connectState:ro.connectState},{children:jsxRuntimeExports.jsx(GraphStateContext.Provider,Object.assign({value:io},{children:jsxRuntimeExports.jsx(ViewportContext.Provider,Object.assign({value:ro.viewport},{children:jsxRuntimeExports.jsx(GraphValueContext.Provider,Object.assign({value:ro.data.present},{children:jsxRuntimeExports.jsx(AlignmentLinesContext.Provider,Object.assign({value:ro.alignmentLines},{children:oo}))}))}))}))}))}))}))}const ReactDagEditor=eo=>{var to;reactExports.useEffect(()=>{eo.handleWarning&&(Debug.warn=eo.handleWarning)},[]);const ro=(to=eo.handleError)===null||to===void 0?void 0:to.bind(null),{state:no,dispatch:oo,getGlobalEventTarget:io}=eo,so=useConst(()=>new GraphController(no,oo));return so.UNSAFE_latestState=no,reactExports.useLayoutEffect(()=>{so.state=no,so.dispatchDelegate=oo,so.getGlobalEventTargetDelegate=io},[oo,io,so,no]),reactExports.useEffect(()=>()=>{so.dispatchDelegate=noop$2},[so]),jsxRuntimeExports.jsx(ErrorBoundary,Object.assign({renderOnError:ro},{children:jsxRuntimeExports.jsx(SlotsContext.Provider,Object.assign({value:eo},{children:jsxRuntimeExports.jsx(GraphStateStore,Object.assign({state:no,dispatch:oo,graphController:so},{children:jsxRuntimeExports.jsx(ContextMenuConfigContext.Provider,Object.assign({value:useConst(()=>new ContextMenuConfig)},{children:jsxRuntimeExports.jsx("div",Object.assign({style:eo.style,className:eo.className},{children:eo.children}))}))}))}))}))},useContextMenuConfigContext=()=>reactExports.useContext(ContextMenuConfigContext);var GraphNodeEvent;(function(eo){eo.Click="[Node]Click",eo.DoubleClick="[Node]DoubleClick",eo.MouseDown="[Node]MouseDown",eo.MouseUp="[Node]MouseUp",eo.MouseEnter="[Node]MouseEnter",eo.MouseLeave="[Node]MouseLeave",eo.MouseOver="[Node]MouseOver",eo.MouseOut="[Node]MouseOut",eo.MouseMove="[Node]MouseMove",eo.ContextMenu="[Node]ContextMenu",eo.Drag="[Node]Drag",eo.DragStart="[Node]DragStart",eo.DragEnd="[Node]DragEnd",eo.PointerDown="[Node]PointerDown",eo.PointerEnter="[Node]PointerEnter",eo.PointerMove="[Node]PointerMove",eo.PointerLeave="[Node]PointerLeave",eo.PointerUp="[Node]PointerUp",eo.Resizing="[Node]Resizing",eo.ResizingStart="[Node]ResizingStart",eo.ResizingEnd="[Node]ResizingEnd",eo.KeyDown="[Node]KeyDown",eo.Select="[Node]Select",eo.SelectAll="[Node]SelectAll",eo.Centralize="[Node]Centralize",eo.Locate="[Node]Locate",eo.Add="[Node]Add"})(GraphNodeEvent||(GraphNodeEvent={}));var GraphEdgeEvent;(function(eo){eo.Click="[Edge]Click",eo.DoubleClick="[Edge]DoubleClick",eo.MouseEnter="[Edge]MouseEnter",eo.MouseLeave="[Edge]MouseLeave",eo.MouseOver="[Edge]MouseOver",eo.MouseOut="[Edge]MouseOut",eo.MouseMove="[Edge]MouseMove",eo.MouseDown="[Edge]MouseDown",eo.MouseUp="[Edge]MouseUp",eo.ContextMenu="[Edge]ContextMenu",eo.ConnectStart="[Edge]ConnectStart",eo.ConnectMove="[Edge]ConnectMove",eo.ConnectEnd="[Edge]ConnectEnd",eo.ConnectNavigate="[Edge]ConnectNavigate",eo.Add="[Edge]Add"})(GraphEdgeEvent||(GraphEdgeEvent={}));var GraphPortEvent;(function(eo){eo.Click="[Port]Click",eo.DoubleClick="[Port]DoubleClick",eo.MouseDown="[Port]MouseDown",eo.PointerDown="[Port]PointerDown",eo.PointerUp="[Port]PointerUp",eo.PointerEnter="[Port]PointerEnter",eo.PointerLeave="[Port]PointerLeave",eo.MouseUp="[Port]MouseUp",eo.MouseEnter="[Port]MouseEnter",eo.MouseLeave="[Port]MouseLeave",eo.MouseOver="[Port]MouseOver",eo.MouseOut="[Port]MouseOut",eo.MouseMove="[Port]MouseMove",eo.ContextMenu="[Port]ContextMenu",eo.KeyDown="[Port]KeyDown",eo.Focus="[Port]Focus",eo.Blur="[Port]Blur"})(GraphPortEvent||(GraphPortEvent={}));var GraphCanvasEvent;(function(eo){eo.Click="[Canvas]Click",eo.DoubleClick="[Canvas]DoubleClick",eo.MouseDown="[Canvas]MouseDown",eo.MouseUp="[Canvas]MouseUp",eo.MouseEnter="[Canvas]MouseEnter",eo.MouseLeave="[Canvas]MouseLeave",eo.MouseOver="[Canvas]MouseOver",eo.MouseOut="[Canvas]MouseOut",eo.MouseMove="[Canvas]MouseMove",eo.ContextMenu="[Canvas]ContextMenu",eo.DragStart="[Canvas]DragStart",eo.Drag="[Canvas]Drag",eo.DragEnd="[Canvas]DragEnd",eo.Pan="[Canvas]Pan",eo.Focus="[Canvas]Focus",eo.Blur="[Canvas]Blur",eo.Zoom="[Canvas]Zoom",eo.Pinch="[Canvas]Pinch",eo.KeyDown="[Canvas]KeyDown",eo.KeyUp="[Canvas]KeyUp",eo.SelectStart="[Canvas]SelectStart",eo.SelectMove="[Canvas]SelectMove",eo.SelectEnd="[Canvas]SelectEnd",eo.UpdateNodeSelectionBySelectBox="[Canvas]UpdateNodeSelectionBySelectBox",eo.MouseWheelScroll="[Canvas]MouseWheelScroll",eo.DraggingNodeFromItemPanel="[Canvas]DraggingNodeFromItemPanel",eo.DraggingNodeFromItemPanelStart="[Canvas]DraggingNodeFromItemPanelStart",eo.DraggingNodeFromItemPanelEnd="[Canvas]DraggingNodeFromItemPanelEnd",eo.ViewportResize="[Canvas]ViewportResize",eo.Navigate="[Canvas]Navigate",eo.VirtualizationRecalculated="[Canvas]VirtualizationRecalculated",eo.ResetSelection="[Canvas]ResetSelection",eo.Copy="[Canvas]Copy",eo.Paste="[Canvas]Paste",eo.Delete="[Canvas]Delete",eo.Undo="[Canvas]Undo",eo.Redo="[Canvas]Redo",eo.ScrollIntoView="[Canvas]ScrollIntoView",eo.ResetUndoStack="[Canvas]ResetUndoStack",eo.ResetViewport="[Canvas]ResetViewport",eo.ZoomTo="[Canvas]ZoomTo",eo.ZoomToFit="[Canvas]ZoomToFit",eo.SetData="[Canvas]SetData",eo.UpdateData="[Canvas]UpdateData",eo.ScrollTo="[Canvas]ScrollTo",eo.UpdateSettings="[Canvas]UpdateSettings"})(GraphCanvasEvent||(GraphCanvasEvent={}));var GraphScrollBarEvent;(function(eo){eo.ScrollStart="[ScrollBar]ScrollStart",eo.Scroll="[ScrollBar]Scroll",eo.ScrollEnd="[ScrollBar]ScrollEnd"})(GraphScrollBarEvent||(GraphScrollBarEvent={}));var GraphMinimapEvent;(function(eo){eo.PanStart="[Minimap]PanStart",eo.Pan="[Minimap]Pan",eo.PanEnd="[Minimap]PanEnd",eo.Click="[Minimap]Click"})(GraphMinimapEvent||(GraphMinimapEvent={}));var GraphContextMenuEvent;(function(eo){eo.Open="[ContextMenu]Open",eo.Close="[ContextMenu]Close"})(GraphContextMenuEvent||(GraphContextMenuEvent={}));function getScrollLineHeight(){try{const eo=document.createElement("iframe");eo.src="#",document.body.appendChild(eo);const{contentDocument:to}=eo;if(!to)throw new Error("Fail to create iframe");to.documentElement.innerHTML=purify.sanitize("a",{RETURN_TRUSTED_TYPE:!0});const no=to.body.firstElementChild.offsetHeight;return document.body.removeChild(eo),no}catch(eo){return Debug.error("failed to calculate scroll line height",eo),16}}const scrollLineHeight=getScrollLineHeight(),normalizeWheelDelta=typeof WheelEvent=="function"?(eo,to)=>{switch(eo){case WheelEvent.DOM_DELTA_PIXEL:return to;case WheelEvent.DOM_DELTA_LINE:return to*scrollLineHeight;case WheelEvent.DOM_DELTA_PAGE:return to*window.innerHeight;default:return to}}:(eo,to)=>to,EMPTY_RECT={height:0,width:0,x:0,y:0,bottom:0,left:0,right:0,top:0,toJSON(){return this}},VirtualizationContext=reactExports.createContext({viewport:{rect:EMPTY_RECT,transformMatrix:EMPTY_TRANSFORM_MATRIX},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 useGraphConfig(){return reactExports.useContext(GraphConfigContext)}function useGraphController(){return reactExports.useContext(GraphControllerContext)}function useAlignmentLines(){return reactExports.useContext(AlignmentLinesContext)}function useConnectingState(){return reactExports.useContext(ConnectingStateContext)}function useVirtualization(){return reactExports.useContext(VirtualizationContext)}let shouldRespondWheel=!1;const useWheelHandler=eo=>{const{containerRef:to,svgRef:ro,rectRef:no,zoomSensitivity:oo,scrollSensitivity:io,isHorizontalScrollDisabled:so,isVerticalScrollDisabled:ao,isCtrlKeyZoomEnable:lo,eventChannel:uo,graphConfig:co,dispatch:fo}=eo,po=useGraphController().getGlobalEventTarget();reactExports.useLayoutEffect(()=>{const go=ro.current,vo=to.current;if(!go||!vo)return noop$2;const bo=Eo=>{const So=no.current;if(!So||!shouldRespondWheel)return;if(Eo.preventDefault(),Eo.ctrlKey&&lo){const Oo=(normalizeWheelDelta(Eo.deltaMode,Eo.deltaY)>0?-oo:oo)+1;uo.trigger({type:GraphCanvasEvent.Zoom,rawEvent:Eo,scale:Oo,anchor:getRelativePoint(So,Eo)});return}const To=so?0:-normalizeWheelDelta(Eo.deltaMode,Eo.shiftKey?Eo.deltaY:Eo.deltaX)*io,wo=ao||Eo.shiftKey?0:-normalizeWheelDelta(Eo.deltaMode,Eo.deltaY)*io;uo.trigger({type:GraphCanvasEvent.MouseWheelScroll,dx:To,dy:wo,rawEvent:Eo})},xo=()=>{shouldRespondWheel=!0};vo.addEventListener("mouseenter",xo);const _o=()=>{shouldRespondWheel=!1};return vo.addEventListener("mouseleave",_o),po.addEventListener("wheel",bo,{passive:!1}),()=>{po.removeEventListener("wheel",bo),vo.removeEventListener("mouseenter",xo),vo.removeEventListener("mouseleave",_o)}},[ro,no,oo,io,fo,so,ao,co,uo,lo])};function nextFrame(eo){requestAnimationFrame(()=>{requestAnimationFrame(eo)})}const LIMIT=20,isRectChanged=(eo,to)=>eo===to?!1:!eo||!to?!0:eo.top!==to.top||eo.left!==to.left||eo.width!==to.width||eo.height!==to.height,useUpdateViewportCallback=(eo,to,ro)=>reactExports.useCallback((no=!1)=>{var oo;const io=(oo=to.current)===null||oo===void 0?void 0:oo.getBoundingClientRect();(no||isRectChanged(eo.current,io))&&(eo.current=io,ro.trigger({type:GraphCanvasEvent.ViewportResize,viewportRect:io}))},[ro,eo,to]),useContainerRect=(eo,to,ro,no)=>{reactExports.useLayoutEffect(()=>{eo.viewport.rect||no(!0)}),reactExports.useEffect(()=>{const oo=ro.current;if(!oo)return noop$2;const io=debounce(()=>nextFrame(()=>{no()}),LIMIT);if(typeof ResizeObserver<"u"){const so=new ResizeObserver(io);return so.observe(oo),()=>{so.unobserve(oo),so.disconnect()}}return window.addEventListener("resize",io),()=>{window.removeEventListener("resize",io)}},[ro,no]),reactExports.useEffect(()=>{const oo=debounce(so=>{const ao=to.current;!ao||!(so.target instanceof Element)||!so.target.contains(ao)||no()},LIMIT),io={capture:!0,passive:!0};return document.body.addEventListener("scroll",oo,io),()=>{document.body.removeEventListener("scroll",oo,io)}},[to,no])};function makeScheduledCallback(eo,to,ro){let no=!1,oo,io;const so=(...ao)=>{oo=ao,no||(no=!0,io=to(()=>{no=!1,reactDomExports.unstable_batchedUpdates(()=>{eo.apply(null,oo)})}))};return so.cancel=()=>{ro(io)},so}const animationFramed=eo=>makeScheduledCallback(eo,requestAnimationFrame,cancelAnimationFrame),useRenderedArea=(eo,to)=>reactExports.useMemo(()=>to?getRenderedArea(eo):{minX:-Number.MAX_SAFE_INTEGER,minY:-Number.MAX_SAFE_INTEGER,maxX:Number.MAX_SAFE_INTEGER,maxY:Number.MAX_SAFE_INTEGER},[eo,to]);class DragController{constructor(to,ro){this.onMove=noop$2,this.onEnd=noop$2,this.lastEvent=null,this.startX=0,this.startY=0,this.prevClientX=0,this.prevClientY=0,this.onMouseUp=no=>{this.lastEvent=no,this.doOnMouseUp(no),this.lastEvent=null},this.onMouseMove=no=>{this.lastEvent=no,no.preventDefault(),this.mouseMove(no)},this.eventProvider=to,this.getPositionFromEvent=ro,this.mouseMove=animationFramed(no=>{this.doOnMouseMove(no)})}start(to){this.lastEvent=to;const{x:ro,y:no}=this.getPositionFromEvent(to);this.startX=ro,this.startY=no,this.prevClientX=ro,this.prevClientY=no,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(to,ro){const no=to-this.prevClientX,oo=ro-this.prevClientY;return this.prevClientX=to,this.prevClientY=ro,{x:no,y:oo}}getTotalDelta(to){const ro=to.clientX-this.startX,no=to.clientY-this.startY;return{x:ro,y:no}}doOnMouseMove(to){const{x:ro,y:no}=this.getPositionFromEvent(to),{x:oo,y:io}=this.getDelta(ro,no),{x:so,y:ao}=this.getTotalDelta(to);this.onMove({clientX:ro,clientY:no,dx:oo,dy:io,totalDX:so,totalDY:ao,e:to})}doOnMouseUp(to){to.preventDefault();const{x:ro,y:no}=this.getTotalDelta(to);this.onEnd({totalDX:ro,totalDY:no,e:to}),this.stop()}}function defaultGetPositionFromEvent(eo){return{x:eo.clientX,y:eo.clientY}}class DragNodeController extends DragController{constructor(to,ro,no){super(to,ro),this.rectRef=no}doOnMouseMove(to){super.doOnMouseMove(to);const ro=this.rectRef.current;!ro||!this.lastEvent||(to.clientXro.right||to.clientYro.bottom)&&this.mouseMove(this.lastEvent)}}class TouchController{constructor(to){this.eventHandlers={onPointerDown:(ro,...no)=>{ro.pointerType==="touch"&&(ro.preventDefault(),this.pointers=new Map(this.pointers),this.pointers.set(ro.pointerId,ro.nativeEvent),this.updateHandler(ro.nativeEvent,...no))},onPointerMove:(ro,...no)=>{ro.pointerType==="touch"&&(ro.preventDefault(),this.pointers.set(ro.pointerId,ro.nativeEvent),this.onMove(ro.nativeEvent,...no))},onPointerUp:(ro,...no)=>{ro.pointerType==="touch"&&(ro.preventDefault(),this.pointers=new Map(this.pointers),this.pointers.delete(ro.pointerId),this.updateHandler(ro.nativeEvent,...no))}},this.pointers=new Map,this.onMove=animationFramed((ro,...no)=>{var oo;(oo=this.currentHandler)===null||oo===void 0||oo.onMove(this.pointers,ro,...no)}),this.handlers=to}updateHandler(to,...ro){var no,oo;const io=this.handlers.get(this.pointers.size);io!==this.currentHandler&&((no=this.currentHandler)===null||no===void 0||no.onEnd(to,...ro),this.currentHandler=io,(oo=this.currentHandler)===null||oo===void 0||oo.onStart(this.pointers,to,...ro))}}class TwoFingerHandler{constructor(to,ro){this.prevDistance=0,this.rectRef=to,this.eventChannel=ro}onEnd(){}onMove(to,ro){const no=Array.from(to.values()),oo=distance(no[0].clientX,no[0].clientY,no[1].clientX,no[1].clientY),{prevEvents:io,prevDistance:so}=this;if(this.prevDistance=oo,this.prevEvents=no,!io)return;const ao=no[0].clientX-io[0].clientX,lo=no[1].clientX-io[1].clientX,uo=no[0].clientY-io[0].clientY,co=no[1].clientY-io[1].clientY,fo=(ao+lo)/2,ho=(uo+co)/2,po=(oo-so)/so+1,go=getContainerCenter(this.rectRef);go&&this.eventChannel.trigger({type:GraphCanvasEvent.Pinch,rawEvent:ro,dx:fo,dy:ho,scale:po,anchor:go})}onStart(to){if(to.size!==2)throw new Error(`Unexpected touch event with ${to.size} touches`);this.prevEvents=Array.from(to.values()),this.prevDistance=distance(this.prevEvents[0].clientX,this.prevEvents[0].clientY,this.prevEvents[1].clientX,this.prevEvents[1].clientY)}}const useGraphTouchHandler=(eo,to)=>reactExports.useMemo(()=>new TouchController(new Map().set(2,new TwoFingerHandler(eo,to))).eventHandlers,[eo,to]),isSafari=getBrowser()===BrowserType.Safari;let prevScale=0;function useSafariScale({rectRef:eo,svgRef:to,eventChannel:ro}){reactExports.useEffect(()=>{const no=to.current;if(!isSafari||!no||isMobile())return()=>{};const oo=animationFramed(lo=>{const{scale:uo}=lo,co=uo/prevScale;prevScale=uo,ro.trigger({type:GraphCanvasEvent.Zoom,rawEvent:lo,scale:co,anchor:getContainerCenter(eo)})}),io=lo=>{lo.stopPropagation(),lo.preventDefault(),prevScale=lo.scale,ro.trigger({type:GraphCanvasEvent.Zoom,rawEvent:lo,scale:lo.scale,anchor:getContainerCenter(eo)})},so=lo=>{lo.stopPropagation(),lo.preventDefault(),oo(lo)},ao=lo=>{lo.stopPropagation(),lo.preventDefault(),oo(lo)};return no.addEventListener("gesturestart",io),no.addEventListener("gesturechange",so),no.addEventListener("gestureend",ao),()=>{no.removeEventListener("gesturestart",io),no.removeEventListener("gesturechange",so),no.removeEventListener("gestureend",ao)}},[])}function useDeferredValue(eo,{timeout:to}){const[ro,no]=reactExports.useState(eo);return reactExports.useEffect(()=>{const oo=setTimeout(()=>{no(eo)},to);return()=>{clearTimeout(oo)}},[eo,to]),ro}const useSelectBox=(eo,to)=>{const ro=useDeferredValue(to,{timeout:100});reactExports.useEffect(()=>{eo({type:GraphCanvasEvent.UpdateNodeSelectionBySelectBox})},[ro])},useGraphState=()=>reactExports.useContext(GraphStateContext),handleBehaviorChange=(eo,to)=>{switch(to.type){case GraphNodeEvent.DragStart:return GraphBehavior.Dragging;case GraphEdgeEvent.ConnectStart:return GraphBehavior.Connecting;case GraphCanvasEvent.SelectStart:return GraphBehavior.MultiSelect;case GraphCanvasEvent.DragStart:return GraphBehavior.Panning;case GraphCanvasEvent.DraggingNodeFromItemPanelStart:return GraphBehavior.AddingNode;case GraphNodeEvent.DragEnd:case GraphEdgeEvent.ConnectEnd:case GraphCanvasEvent.SelectEnd:case GraphCanvasEvent.DragEnd:case GraphCanvasEvent.DraggingNodeFromItemPanelEnd:return GraphBehavior.Default;default:return eo}},behaviorReducer=(eo,to)=>{const ro=handleBehaviorChange(eo.behavior,to);return ro===eo.behavior?eo:Object.assign(Object.assign({},eo),{behavior:ro})};function __rest(eo,to){var ro={};for(var no in eo)Object.prototype.hasOwnProperty.call(eo,no)&&to.indexOf(no)<0&&(ro[no]=eo[no]);if(eo!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oo=0,no=Object.getOwnPropertySymbols(eo);oo{switch(to.type){case GraphCanvasEvent.Paste:{const{position:ro}=to;if(!isViewportComplete(eo.viewport))return eo;const{rect:no}=eo.viewport;let oo=to.data.nodes;if(ro&&no){const so=getRealPointFromClientPoint(ro.x,ro.y,eo.viewport);let ao,lo;oo=oo.map((uo,co)=>(co===0&&(ao=so.x-uo.x,lo=so.y-uo.y),Object.assign(Object.assign({},uo),{x:ao?uo.x-COPIED_NODE_SPACING+ao:uo.x,y:lo?uo.y-COPIED_NODE_SPACING+lo:uo.y,state:GraphNodeStatus.Selected})))}let io=unSelectAllEntity()(eo.data.present);return oo.forEach(so=>{io=io.insertNode(so)}),to.data.edges.forEach(so=>{io=io.insertEdge(so)}),Object.assign(Object.assign({},eo),{data:pushHistory(eo.data,io)})}case GraphCanvasEvent.Delete:return eo.settings.features.has(GraphFeatures.Delete)?Object.assign(Object.assign({},eo),{data:pushHistory(eo.data,eo.data.present.deleteItems({node:notSelected,edge:notSelected}),unSelectAllEntity())}):eo;case GraphCanvasEvent.Undo:return Object.assign(Object.assign({},eo),{data:undo$1(eo.data)});case GraphCanvasEvent.Redo:return Object.assign(Object.assign({},eo),{data:redo$1(eo.data)});case GraphCanvasEvent.KeyDown:{const ro=to.rawEvent.key.toLowerCase();if(eo.activeKeys.has(ro))return eo;const no=new Set(eo.activeKeys);return no.add(ro),Object.assign(Object.assign({},eo),{activeKeys:no})}case GraphCanvasEvent.KeyUp:{const ro=to.rawEvent.key.toLowerCase();if(!eo.activeKeys.has(ro))return eo;const no=new Set(eo.activeKeys);return no.delete(ro),Object.assign(Object.assign({},eo),{activeKeys:no})}case GraphCanvasEvent.SetData:return Object.assign(Object.assign({},eo),{data:resetUndoStack(to.data)});case GraphCanvasEvent.UpdateData:return Object.assign(Object.assign({},eo),{data:to.shouldRecord?pushHistory(eo.data,to.updater(eo.data.present)):Object.assign(Object.assign({},eo.data),{present:to.updater(eo.data.present)})});case GraphCanvasEvent.ResetUndoStack:return Object.assign(Object.assign({},eo),{data:resetUndoStack(eo.data.present)});case GraphCanvasEvent.UpdateSettings:{const ro=__rest(to,["type"]);return Object.assign(Object.assign({},eo),{settings:Object.assign(Object.assign({},eo.settings),ro)})}default:return eo}};function composeReducers(eo){return to=>eo.reduceRight((ro,no)=>no(ro),to)}const VisitPortHelper=eo=>{const{neighborPorts:to,data:ro}=eo,no=reactExports.useRef(null),[oo,io]=reactExports.useState(),so=reactExports.useCallback(uo=>{uo.key==="Escape"&&(uo.stopPropagation(),uo.preventDefault(),oo&&eo.onComplete(oo))},[oo,eo]),ao=reactExports.useCallback(()=>{},[]),lo=reactExports.useCallback(uo=>{const co=JSON.parse(uo.target.value);co.nodeId&&co.portId&&io({nodeId:co.nodeId,portId:co.portId})},[io]);return reactExports.useEffect(()=>{no.current&&no.current.focus({preventScroll:!0})},[]),jsxRuntimeExports.jsx("select",Object.assign({onKeyDown:so,onBlur:ao,ref:no,onChange:lo},{children:to.map(uo=>{const co=oo&&oo.portId===uo.portId&&oo.nodeId===uo.nodeId,fo=JSON.stringify(uo),ho=ro.nodes.get(uo.nodeId);if(!ho)return null;const po=ho.ports?ho.ports.filter(vo=>vo.id===uo.portId)[0]:null;if(!po)return null;const go=`${ho.ariaLabel||ho.name||ho.id}: ${po.ariaLabel||po.name||po.id}`;return jsxRuntimeExports.jsx("option",Object.assign({value:fo,"aria-selected":co,"aria-label":go},{children:go}),`${uo.nodeId}-${uo.portId}`)})}))},item=(eo=void 0,to=void 0)=>({node:eo,port:to}),findDOMElement=(eo,{node:to,port:ro})=>{var no,oo;let io;if(to&&ro)io=getPortUid((no=eo.dataset.graphId)!==null&&no!==void 0?no:"",to,ro);else if(to)io=getNodeUid((oo=eo.dataset.graphId)!==null&&oo!==void 0?oo:"",to);else return null;return eo.getElementById(io)},focusItem=(eo,to,ro,no)=>{if(!eo.current)return;const oo=findDOMElement(eo.current,to);oo?(ro.preventDefault(),ro.stopPropagation(),oo.focus({preventScroll:!0}),no.trigger({type:GraphCanvasEvent.Navigate,node:to.node,port:to.port,rawEvent:ro})):!to.node&&!to.port&&no.trigger({type:GraphCanvasEvent.Navigate,node:to.node,port:to.port,rawEvent:ro})},getNextItem=(eo,to,ro)=>{if(to.ports){const io=(ro?to.ports.findIndex(so=>so.id===ro.id):-1)+1;if(io{if(ro&&to.ports){const oo=to.ports.findIndex(io=>io.id===ro.id)-1;return oo>=0?item(to,to.ports[oo]):item(to)}const no=to.prev&&eo.nodes.get(to.prev);return no?item(no,no.ports&&no.ports.length?no.ports[no.ports.length-1]:void 0):item()},nextConnectablePort=(eo,to)=>(ro,no,oo)=>{var io,so,ao;let lo=getNextItem(ro,no,oo);for(;!(((io=lo.node)===null||io===void 0?void 0:io.id)===no.id&&((so=lo.port)===null||so===void 0?void 0:so.id)===(oo==null?void 0:oo.id));){if(!lo.node)lo=item(ro.getNavigationFirstNode());else if(lo.port&&!((ao=eo.getPortConfig(lo.port))===null||ao===void 0)&&ao.getIsConnectable(Object.assign(Object.assign({},to),{data:ro,parentNode:lo.node,model:lo.port})))return lo;lo=getNextItem(ro,lo.node,lo.port)}return item()},focusNextPort=(eo,to,ro,no,oo,io)=>{const ao=(eo.findIndex(uo=>uo.id===ro)+1)%eo.length,lo=eo[ao];lo&&no.current&&focusItem(no,{node:to,port:lo},oo,io)},focusPrevPort=(eo,to,ro,no,oo,io)=>{const ao=(eo.findIndex(uo=>uo.id===ro)-1+eo.length)%eo.length,lo=eo[ao];lo&&no.current&&focusItem(no,{node:to,port:lo},oo,io)},getFocusNodeHandler=eo=>(to,ro,no,oo,io,so)=>{const ao=Array.from(to.nodes.values()).sort(eo),lo=ao.findIndex(co=>co.id===ro),uo=ao[(lo+1)%ao.length];uo&&no.current&&(oo.dispatch({type:GraphNodeEvent.Select,nodes:[uo.id]}),oo.dispatch({type:GraphNodeEvent.Centralize,nodes:[uo.id]}),focusItem(no,{node:uo,port:void 0},io,so))},focusLeftNode=getFocusNodeHandler((eo,to)=>eo.x*10+eo.y-to.x*10-to.y),focusRightNode=getFocusNodeHandler((eo,to)=>to.x*10+to.y-eo.x*10-eo.y),focusDownNode=getFocusNodeHandler((eo,to)=>eo.x+eo.y*10-to.x-to.y*10),focusUpNode=getFocusNodeHandler((eo,to)=>to.x+to.y*10-eo.x-eo.y*10),goToConnectedPort=(eo,to,ro,no,oo,io)=>{var so;const ao=getNeighborPorts(eo,to.id,ro.id);if(ao.length===1&&no.current){const lo=eo.nodes.get(ao[0].nodeId);if(!lo)return;const uo=(so=lo.ports)===null||so===void 0?void 0:so.find(co=>co.id===ao[0].portId);if(!uo)return;focusItem(no,{node:lo,port:uo},oo,io)}else if(ao.length>1&&no.current){const lo=fo=>{var ho;if(reactDomExports.unmountComponentAtNode(uo),no.current){const vo=no.current.closest(".react-dag-editor-container");vo&&vo.removeChild(uo)}const po=eo.nodes.get(fo.nodeId);if(!po)return;const go=(ho=po.ports)===null||ho===void 0?void 0:ho.find(vo=>vo.id===fo.portId);go&&focusItem(no,{node:po,port:go},oo,io)},uo=document.createElement("div"),co=no.current.closest(".react-dag-editor-container");co&&co.appendChild(uo),uo.style.position="fixed",uo.style.top="0",reactDomExports.render(jsxRuntimeExports.jsx(VisitPortHelper,{neighborPorts:ao,onComplete:lo,data:eo}),uo)}};function defaultGetPortAriaLabel(eo,to,ro){return ro.ariaLabel}function defaultGetNodeAriaLabel(eo){return eo.ariaLabel}function attachPort(eo,to,ro){if(!eo.connectState)return eo;let no=eo.data.present;return no=no.updatePort(to,ro,updateStatus(add$1(GraphPortStatus.ConnectingAsTarget))),eo.connectState.targetNode&&eo.connectState.targetPort&&(no=no.updatePort(eo.connectState.targetNode,eo.connectState.targetPort,updateStatus(remove$2(GraphPortStatus.ConnectingAsTarget)))),Object.assign(Object.assign({},eo),{connectState:Object.assign(Object.assign({},eo.connectState),{targetNode:to,targetPort:ro}),data:Object.assign(Object.assign({},eo.data),{present:no})})}function clearAttach(eo){if(!eo.connectState)return eo;let to=eo.data.present;const{targetPort:ro,targetNode:no}=eo.connectState;return no&&ro&&(to=to.updatePort(no,ro,updateStatus(remove$2(GraphPortStatus.ConnectingAsTarget)))),Object.assign(Object.assign({},eo),{connectState:Object.assign(Object.assign({},eo.connectState),{targetNode:void 0,targetPort:void 0}),data:Object.assign(Object.assign({},eo.data),{present:to})})}const connectingReducer=(eo,to)=>{var ro,no,oo;if(!isViewportComplete(eo.viewport))return eo;const{rect:io}=eo.viewport;switch(to.type){case GraphEdgeEvent.ConnectStart:return Object.assign(Object.assign({},eo),{connectState:Object.assign(Object.assign({},EMPTY_CONNECT_STATE),{sourceNode:to.nodeId,sourcePort:to.portId,movingPoint:to.clientPoint?{x:to.clientPoint.x-io.left,y:to.clientPoint.y-io.top}:void 0}),data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updatePort(to.nodeId,to.portId,updateStatus(add$1(GraphPortStatus.Connecting)))})});case GraphEdgeEvent.ConnectMove:return eo.connectState?Object.assign(Object.assign({},eo),{connectState:Object.assign(Object.assign({},eo.connectState),{movingPoint:{x:to.clientX-io.left,y:to.clientY-io.top}})}):eo;case GraphEdgeEvent.ConnectEnd:if(eo.connectState){const{edgeWillAdd:so,isCancel:ao}=to,{sourceNode:lo,sourcePort:uo,targetNode:co,targetPort:fo}=eo.connectState;let ho=eo.data.present;if(ho=ho.updatePort(lo,uo,updateStatus(replace$1(GraphPortStatus.Default))),!ao&&co&&fo){let po={source:lo,sourcePortId:uo,target:co,targetPortId:fo,id:v4(),status:GraphEdgeStatus.Default};return so&&(po=so(po,ho)),ho=ho.insertEdge(po).updatePort(co,fo,updateStatus(replace$1(GraphPortStatus.Default))),Object.assign(Object.assign({},eo),{connectState:void 0,data:pushHistory(eo.data,ho,unSelectAllEntity())})}return Object.assign(Object.assign({},eo),{connectState:void 0,data:Object.assign(Object.assign({},eo.data),{present:ho})})}return eo;case GraphEdgeEvent.ConnectNavigate:if(eo.connectState){const so=eo.data.present,ao=so.nodes.get(eo.connectState.sourceNode),lo=ao==null?void 0:ao.getPort(eo.connectState.sourcePort),uo=eo.connectState.targetNode?so.nodes.get(eo.connectState.targetNode):void 0,co=eo.connectState.targetPort?uo==null?void 0:uo.getPort(eo.connectState.targetPort):void 0;if(!ao||!lo)return eo;const fo=nextConnectablePort(eo.settings.graphConfig,{anotherNode:ao,anotherPort:lo})(so,uo||ao,co);return!fo.node||!fo.port||fo.node.id===ao.id&&fo.port.id===lo.id?eo:attachPort(eo,fo.node.id,fo.port.id)}return eo;case GraphPortEvent.PointerEnter:if(eo.connectState){const{sourceNode:so,sourcePort:ao}=eo.connectState,lo=eo.data.present,uo=lo.nodes.get(to.node.id),co=uo==null?void 0:uo.getPort(to.port.id),fo=lo.nodes.get(so),ho=fo==null?void 0:fo.getPort(ao);if(uo&&co&&fo&&ho&&isConnectable(eo.settings.graphConfig,{parentNode:uo,model:co,data:lo,anotherPort:ho,anotherNode:fo}))return attachPort(eo,uo.id,co.id)}return eo;case GraphNodeEvent.PointerEnter:case GraphNodeEvent.PointerMove:if(eo.connectState){const{clientX:so,clientY:ao}=to.rawEvent,{sourceNode:lo,sourcePort:uo}=eo.connectState,co=eo.data.present,fo=co.nodes.get(to.node.id),ho=co.nodes.get(lo),po=ho==null?void 0:ho.getPort(uo);if(fo&&ho&&po){const go=getNearestConnectablePort({parentNode:fo,clientX:so,clientY:ao,graphConfig:eo.settings.graphConfig,data:eo.data.present,viewport:eo.viewport,anotherPort:po,anotherNode:ho});return go?attachPort(eo,fo.id,go.id):eo}}return eo;case GraphNodeEvent.PointerLeave:return((ro=eo.connectState)===null||ro===void 0?void 0:ro.targetNode)===to.node.id?clearAttach(eo):eo;case GraphPortEvent.PointerLeave:return((no=eo.connectState)===null||no===void 0?void 0:no.targetNode)===to.node.id&&((oo=eo.connectState)===null||oo===void 0?void 0:oo.targetPort)===to.port.id?clearAttach(eo):eo;default:return eo}},contextMenuReducer=(eo,to)=>{let ro=eo.contextMenuPosition;switch(to.type){case GraphCanvasEvent.ContextMenu:case GraphNodeEvent.ContextMenu:case GraphEdgeEvent.ContextMenu:case GraphPortEvent.ContextMenu:{const no=to.rawEvent;no.button===MouseEventButton.Secondary&&(ro={x:no.clientX,y:no.clientY})}break;case GraphCanvasEvent.Click:case GraphNodeEvent.Click:case GraphEdgeEvent.Click:case GraphPortEvent.Click:ro=void 0;break;case GraphContextMenuEvent.Open:ro={x:to.x,y:to.y};break;case GraphContextMenuEvent.Close:ro=void 0;break}return eo.contextMenuPosition===ro?eo:Object.assign(Object.assign({},eo),{contextMenuPosition:ro})},edgeReducer=(eo,to)=>{switch(to.type){case GraphEdgeEvent.DoubleClick:return eo.settings.features.has(GraphFeatures.EditEdge)?Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updateEdge(to.edge.id,updateStatus(replace$1(GraphEdgeStatus.Editing)))})}):eo;case GraphEdgeEvent.MouseEnter:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updateEdge(to.edge.id,updateStatus(add$1(GraphEdgeStatus.Activated)))})});case GraphEdgeEvent.MouseLeave:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updateEdge(to.edge.id,updateStatus(remove$2(GraphEdgeStatus.Activated)))})});case GraphEdgeEvent.Click:case GraphEdgeEvent.ContextMenu:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:unSelectAllEntity()(eo.data.present).updateEdge(to.edge.id,updateStatus(add$1(GraphEdgeStatus.Selected)))})});case GraphEdgeEvent.Add:return Object.assign(Object.assign({},eo),{data:pushHistory(eo.data,eo.data.present.insertEdge(to.edge))});default:return eo}},getAlignmentLines=(eo,to,ro,no=2)=>{const oo=getDummyDraggingNode(eo),io=getClosestNodes(oo,eo,to,ro,no);return getLines(oo,io,eo.length)},getAutoAlignDisplacement=(eo,to,ro,no)=>{let oo=1/0,io=0;const so=getDummyDraggingNode(to),ao=no==="x"?so.width||0:so.height||0;return eo.forEach(lo=>{let uo;if(no==="x"&&lo.x1===lo.x2)uo=lo.x1;else if(no==="y"&&lo.y1===lo.y2)uo=lo.y1;else return;const co=so[no]-uo,fo=so[no]+(ao||0)/2-uo,ho=so[no]+(ao||0)-uo;Math.abs(co)0?-oo:oo),Math.abs(fo)0?-oo:oo),Math.abs(ho)0?-oo:oo)}),io},getMinCoordinate=(eo,to)=>{if(eo.length)return Math.min(...eo.map(ro=>ro[to]))},getMaxCoordinate=(eo,to)=>{if(eo.length)return Math.max(...eo.map(ro=>ro[to]+(to==="y"?ro.height||0:ro.width||0)))},setSizeForNode=(eo,to)=>Object.assign(Object.assign({},eo),getNodeSize(eo,to)),getBoundingBoxOfNodes=eo=>{let to=1/0,ro=1/0,no=-1/0,oo=-1/0;return eo.forEach(io=>{const so=io.x,ao=io.y,lo=io.x+(io.width||0),uo=io.y+(io.height||0);sono&&(no=lo),uo>oo&&(oo=uo)}),{x:to,y:ro,width:no-to,height:oo-ro}},getDummyDraggingNode=eo=>{const{x:to,y:ro,width:no,height:oo}=getBoundingBoxOfNodes(eo);return{id:v4(),x:to,y:ro,width:no,height:oo}},getClosestNodes=(eo,to,ro,no,oo=2)=>{const io=[],so=[],{x:ao,y:lo,width:uo=0,height:co=0}=eo;let fo=oo,ho=oo;return ro.forEach(po=>{if(to.find(xo=>xo.id===po.id))return;const go=setSizeForNode(po,no),{width:vo=0,height:bo=0}=go;[ao,ao+uo/2,ao+uo].forEach((xo,_o)=>{io[_o]||(io[_o]={}),io[_o].closestNodes||(io[_o].closestNodes=[]),[go.x,go.x+vo/2,go.x+vo].forEach(Eo=>{var So;const To=Math.abs(xo-Eo);To<=fo&&((So=io[_o].closestNodes)===null||So===void 0||So.push(go),io[_o].alignCoordinateValue=Eo,fo=To)})}),[lo,lo+co/2,lo+co].forEach((xo,_o)=>{so[_o]||(so[_o]={}),so[_o].closestNodes||(so[_o].closestNodes=[]),[go.y,go.y+bo/2,go.y+bo].forEach(Eo=>{var So;const To=Math.abs(xo-Eo);To<=ho&&((So=so[_o].closestNodes)===null||So===void 0||So.push(go),so[_o].alignCoordinateValue=Eo,ho=To)})})}),{closestX:io,closestY:so}},getLines=(eo,to,ro=1)=>{const no=[],oo=[],io=to.closestX,so=to.closestY;return io.forEach((ao,lo)=>{var uo;if(ao.alignCoordinateValue===void 0||lo===1&&(no.length||ro>1))return;const co=[],fo=ao.alignCoordinateValue;(uo=ao.closestNodes)===null||uo===void 0||uo.forEach(go=>{(go.x===fo||go.x+(go.width||0)/2===fo||go.x+(go.width||0)===fo)&&co.push(go)});const ho=getMinCoordinate([eo,...co],"y"),po=getMaxCoordinate([eo,...co],"y");ho!==void 0&&po!==void 0&&no.push({x1:fo,y1:ho,x2:fo,y2:po,visible:!0})}),so.forEach((ao,lo)=>{var uo;if(ao.alignCoordinateValue===void 0||lo===1&&(oo.length||ro>1))return;const co=[],fo=ao.alignCoordinateValue;(uo=ao.closestNodes)===null||uo===void 0||uo.forEach(go=>{(go.y===fo||go.y+(go.height||0)/2===fo||go.y+(go.height||0)===fo)&&co.push(go)});const ho=getMinCoordinate([eo,...co],"x"),po=getMaxCoordinate([eo,...co],"x");ho!==void 0&&po!==void 0&&oo.push({x1:ho,y1:fo,x2:po,y2:fo,visible:!0})}),[...no,...oo]};function pipe(...eo){return eo.reduceRight((to,ro)=>no=>to(ro(no)),identical)}const getDelta=(eo,to,ro)=>roto?10:0;function getSelectedNodes(eo,to){const ro=[];return eo.nodes.forEach(no=>{isSelected(no)&&ro.push(Object.assign({id:no.id,x:no.x,y:no.y},getNodeSize(no,to)))}),ro}function dragNodeHandler(eo,to){if(!isViewportComplete(eo.viewport))return eo;const ro=po=>Math.max(po,getScaleLimit(so,eo.settings)),no=to.rawEvent,{rect:oo}=eo.viewport,io=Object.assign({},eo),so=eo.data.present,ao=getDelta(oo.left,oo.right,no.clientX),lo=getDelta(oo.top,oo.bottom,no.clientY),uo=ao!==0||lo!==0?.999:1,co=ao!==0||ao!==0?pipe(pan(-ao,-lo),zoom({scale:uo,anchor:getRelativePoint(oo,no),direction:Direction$2.XY,limitScale:ro}))(eo.viewport):eo.viewport,fo=getPointDeltaByClientDelta(to.dx+ao*uo,to.dy+lo*uo,co.transformMatrix),ho=Object.assign(Object.assign({},eo.dummyNodes),{dx:eo.dummyNodes.dx+fo.x,dy:eo.dummyNodes.dy+fo.y,isVisible:to.isVisible});if(to.isAutoAlignEnable){const po=getRenderedNodes(so.nodes,eo.viewport);if(po.lengthObject.assign(Object.assign({},bo),{x:bo.x+ho.dx,y:bo.y+ho.dy})),vo=getAlignmentLines(go,po,eo.settings.graphConfig,eo.viewport.transformMatrix[0]>.3?2:5);if(vo.length){const bo=getAutoAlignDisplacement(vo,go,eo.settings.graphConfig,"x"),xo=getAutoAlignDisplacement(vo,go,eo.settings.graphConfig,"y");ho.alignedDX=ho.dx+bo,ho.alignedDY=ho.dy+xo}else ho.alignedDX=void 0,ho.alignedDY=void 0;io.alignmentLines=vo}else ho.alignedDX=void 0,ho.alignedDY=void 0}return io.dummyNodes=ho,io.viewport=co,io}function handleDraggingNewNode(eo,to){if(!eo.settings.features.has(GraphFeatures.AutoAlign))return eo;const ro=eo.data.present,no=getRenderedNodes(ro.nodes,eo.viewport),oo=getAlignmentLines([to.node],no,eo.settings.graphConfig,eo.viewport.transformMatrix[0]>.3?2:5);return Object.assign(Object.assign({},eo),{alignmentLines:oo})}function dragStart(eo,to){let ro=eo.data.present;const no=ro.nodes.get(to.node.id);if(!no)return eo;let oo;return to.isMultiSelect?(ro=ro.selectNodes(io=>io.id===to.node.id||isSelected(io)),oo=getSelectedNodes(ro,eo.settings.graphConfig)):isSelected(no)?oo=getSelectedNodes(ro,eo.settings.graphConfig):oo=[Object.assign({id:to.node.id,x:to.node.x,y:to.node.y},getNodeSize(to.node,eo.settings.graphConfig))],Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:ro}),dummyNodes:Object.assign(Object.assign({},emptyDummyNodes()),{isVisible:!1,nodes:oo})})}function dragEnd(eo,to){let ro=eo.data.present;if(to.isDragCanceled)return Object.assign(Object.assign({},eo),{alignmentLines:[],dummyNodes:emptyDummyNodes()});const{dx:no,dy:oo}=eo.dummyNodes;return ro=ro.updateNodesPositionAndSize(eo.dummyNodes.nodes.map(io=>Object.assign(Object.assign({},io),{x:io.x+no,y:io.y+oo,width:void 0,height:void 0}))),Object.assign(Object.assign({},eo),{alignmentLines:[],dummyNodes:emptyDummyNodes(),data:pushHistory(eo.data,ro,unSelectAllEntity())})}function locateNode(eo,to){const ro=to.data.present;if(!isViewportComplete(to.viewport)||!eo.nodes.length)return to;if(eo.nodes.length===1){const ao=eo.nodes[0],lo=ro.nodes.get(ao);if(!lo)return to;const{width:uo,height:co}=getNodeSize(lo,to.settings.graphConfig),fo=eo.type===GraphNodeEvent.Centralize?lo.x+uo/2:lo.x,ho=eo.type===GraphNodeEvent.Centralize?lo.y+co/2:lo.y,{x:po,y:go}=transformPoint(fo,ho,to.viewport.transformMatrix),vo=eo.type===GraphNodeEvent.Locate?eo.position:void 0;return Object.assign(Object.assign({},to),{viewport:scrollIntoView$3(po,go,to.viewport.rect,!0,vo)(to.viewport)})}const{minNodeX:no,minNodeY:oo,maxNodeX:io,maxNodeY:so}=getContentArea$1(ro,to.settings.graphConfig,new Set(eo.nodes));return Object.assign(Object.assign({},to),{viewport:focusArea(no,oo,io,so,to.viewport)})}const nodeReducer=(eo,to)=>{const ro=eo.data.present;switch(to.type){case GraphNodeEvent.ResizingStart:return Object.assign(Object.assign({},eo),{dummyNodes:Object.assign(Object.assign({},emptyDummyNodes()),{isVisible:!0,nodes:getSelectedNodes(ro,eo.settings.graphConfig)})});case GraphNodeEvent.Resizing:return Object.assign(Object.assign({},eo),{dummyNodes:Object.assign(Object.assign({},eo.dummyNodes),{dx:to.dx,dy:to.dy,dWidth:to.dWidth,dHeight:to.dHeight})});case GraphNodeEvent.ResizingEnd:{const{dx:no,dy:oo,dWidth:io,dHeight:so}=eo.dummyNodes;return Object.assign(Object.assign({},eo),{dummyNodes:emptyDummyNodes(),data:pushHistory(eo.data,ro.updateNodesPositionAndSize(eo.dummyNodes.nodes.map(ao=>Object.assign(Object.assign({},ao),{x:ao.x+no,y:ao.y+oo,width:ao.width+io,height:ao.height+so}))),unSelectAllEntity())})}case GraphNodeEvent.DragStart:return dragStart(eo,to);case GraphNodeEvent.Drag:return dragNodeHandler(eo,to);case GraphNodeEvent.DragEnd:return dragEnd(eo,to);case GraphNodeEvent.PointerEnter:switch(eo.behavior){case GraphBehavior.Default:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:ro.updateNode(to.node.id,updateStatus(add$1(GraphNodeStatus.Activated)))})});default:return eo}case GraphNodeEvent.PointerLeave:switch(eo.behavior){case GraphBehavior.Default:case GraphBehavior.Connecting:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:ro.updateNode(to.node.id,updateStatus(remove$2(GraphNodeStatus.Activated)))})});default:return eo}case GraphCanvasEvent.DraggingNodeFromItemPanel:return handleDraggingNewNode(eo,to);case GraphCanvasEvent.DraggingNodeFromItemPanelEnd:return to.node?Object.assign(Object.assign({},eo),{alignmentLines:[],data:pushHistory(eo.data,eo.data.present.insertNode(Object.assign(Object.assign({},to.node),{status:GraphNodeStatus.Selected})),unSelectAllEntity())}):Object.assign(Object.assign({},eo),{alignmentLines:[]});case GraphNodeEvent.Centralize:case GraphNodeEvent.Locate:return locateNode(to,eo);case GraphNodeEvent.Add:return Object.assign(Object.assign({},eo),{data:pushHistory(eo.data,ro.insertNode(to.node))});case GraphNodeEvent.DoubleClick:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updateNode(to.node.id,updateStatus(add$1(GraphNodeStatus.Editing)))})});default:return eo}},portReducer=(eo,to)=>{switch(to.type){case GraphPortEvent.Focus:case GraphPortEvent.PointerEnter:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updatePort(to.node.id,to.port.id,updateStatus(add$1(GraphPortStatus.Activated)))})});case GraphPortEvent.Blur:case GraphPortEvent.PointerLeave:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updatePort(to.node.id,to.port.id,updateStatus(remove$2(GraphPortStatus.Activated)))})});case GraphPortEvent.Click:case GraphPortEvent.ContextMenu:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:unSelectAllEntity()(eo.data.present).updatePort(to.node.id,to.port.id,updateStatus(add$1(GraphPortStatus.Selected)))})});default:return eo}},selectNodeBySelectBox=(eo,to,ro,no)=>{if(!ro.width||!ro.height)return no;const oo=Math.min(ro.startX,ro.startX+ro.width),io=Math.max(ro.startX,ro.startX+ro.width),so=Math.min(ro.startY,ro.startY+ro.height),ao=Math.max(ro.startY,ro.startY+ro.height),lo=reverseTransformPoint(oo,so,to),uo=reverseTransformPoint(io,ao,to),co={minX:lo.x,minY:lo.y,maxX:uo.x,maxY:uo.y};return no.selectNodes(fo=>{const{width:ho,height:po}=getNodeSize(fo,eo),go={minX:fo.x,minY:fo.y,maxX:fo.x+ho,maxY:fo.y+po};return checkRectIntersect(co,go)})};function handleNavigate(eo,to){let ro=unSelectAllEntity()(eo.data.present);if(to.node&&to.port)ro=ro.updatePort(to.node.id,to.port.id,updateStatus(add$1(GraphPortStatus.Selected)));else if(to.node){const no=to.node.id;ro=ro.selectNodes(oo=>oo.id===no)}return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:ro})})}const selectionReducer=(eo,to)=>{var ro,no;const oo=eo.data.present,io=eo.settings.features.has(GraphFeatures.LassoSelect);switch(to.type){case GraphCanvasEvent.Click:case GraphCanvasEvent.ResetSelection:case GraphCanvasEvent.ContextMenu:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:unSelectAllEntity()(oo)})});case GraphNodeEvent.Click:case GraphNodeEvent.ContextMenu:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:nodeSelection(to.rawEvent,to.node)(oo)})});case GraphCanvasEvent.SelectStart:{if(!isViewportComplete(eo.viewport))return eo;const so=getRelativePoint(eo.viewport.rect,to.rawEvent);return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:unSelectAllEntity()(oo)}),selectBoxPosition:{startX:so.x,startY:io?0:so.y,width:0,height:0}})}case GraphCanvasEvent.SelectMove:return eo.behavior!==GraphBehavior.MultiSelect?eo:Object.assign(Object.assign({},eo),{selectBoxPosition:Object.assign(Object.assign({},eo.selectBoxPosition),{width:eo.selectBoxPosition.width+to.dx,height:io?(no=(ro=eo.viewport.rect)===null||ro===void 0?void 0:ro.height)!==null&&no!==void 0?no:eo.selectBoxPosition.height:eo.selectBoxPosition.height+to.dy})});case GraphCanvasEvent.SelectEnd:return Object.assign(Object.assign({},eo),{selectBoxPosition:emptySelectBoxPosition(),data:Object.assign(Object.assign({},eo.data),{present:selectNodeBySelectBox(eo.settings.graphConfig,eo.viewport.transformMatrix,eo.selectBoxPosition,oo)})});case GraphCanvasEvent.UpdateNodeSelectionBySelectBox:return eo.behavior!==GraphBehavior.MultiSelect?eo:Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:selectNodeBySelectBox(eo.settings.graphConfig,eo.viewport.transformMatrix,eo.selectBoxPosition,oo)})});case GraphCanvasEvent.Navigate:return handleNavigate(eo,to);case GraphNodeEvent.SelectAll:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:oo.selectNodes(()=>!0)})});case GraphNodeEvent.Select:{const so=new Set(to.nodes);return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:oo.selectNodes(ao=>so.has(ao.id))})})}default:return eo}};function getRectCenter(eo){return{x:eo.width/2,y:eo.height/2}}function resetViewport(eo,to,ro,no){if(!isViewportComplete(eo))return eo;if(!no.ensureNodeVisible)return Object.assign(Object.assign({},eo),{transformMatrix:EMPTY_TRANSFORM_MATRIX});const{nodes:oo,groups:io}=to;if(oo.size===0)return Object.assign(Object.assign({},eo),{transformMatrix:EMPTY_TRANSFORM_MATRIX});const so=po=>isRectVisible(po,eo),ao=oo.map(po=>getNodeRect(po,ro));if(ao.find(so))return Object.assign(Object.assign({},eo),{transformMatrix:EMPTY_TRANSFORM_MATRIX});const uo=io.map(po=>getGroupRect(po,oo,ro));if(uo.find(so))return Object.assign(Object.assign({},eo),{transformMatrix:EMPTY_TRANSFORM_MATRIX});let fo=ao.first();const ho=po=>{fo.y>po.y&&(fo=po)};return ao.forEach(ho),uo.forEach(ho),Object.assign(Object.assign({},eo),{transformMatrix:[1,0,0,1,-fo.x,-fo.y]})}function zoomToFit(eo,to,ro,no){if(!isViewportComplete(eo))return eo;const{graphConfig:oo,nodeMaxVisibleSize:io,nodeMinVisibleSize:so}=ro,ao=getZoomFitMatrix(Object.assign(Object.assign({},no),{data:to,graphConfig:oo,rect:eo.rect,nodeMaxVisibleSize:io,nodeMinVisibleSize:so}));return Object.assign(Object.assign({},eo),{transformMatrix:ao})}const reducer=(eo,to,ro,no)=>{var oo,io,so,ao;const{graphConfig:lo,canvasBoundaryPadding:uo,features:co}=no,fo=ho=>Math.max(ho,getScaleLimit(ro,no));switch(to.type){case GraphCanvasEvent.ViewportResize:return Object.assign(Object.assign({},eo),{rect:to.viewportRect});case GraphCanvasEvent.Zoom:return isViewportComplete(eo)?zoom({scale:to.scale,anchor:(oo=to.anchor)!==null&&oo!==void 0?oo:getRectCenter(eo.rect),direction:to.direction,limitScale:fo})(eo):eo;case GraphScrollBarEvent.Scroll:case GraphCanvasEvent.MouseWheelScroll:case GraphCanvasEvent.Pan:case GraphCanvasEvent.Drag:{if(!isViewportComplete(eo))return eo;const{transformMatrix:ho,rect:po}=eo;let{dx:go,dy:vo}=to;const bo=co.has(GraphFeatures.LimitBoundary),xo=(so=(io=ro.groups)===null||io===void 0?void 0:io[0])===null||so===void 0?void 0:so.padding;if(bo){const{minX:_o,maxX:Eo,minY:So,maxY:To}=getOffsetLimit({data:ro,graphConfig:lo,rect:po,transformMatrix:ho,canvasBoundaryPadding:uo,groupPadding:xo});go=clamp$1(_o-ho[4],Eo-ho[4],go),vo=clamp$1(So-ho[5],To-ho[5],vo)}return pan(go,vo)(eo)}case GraphCanvasEvent.Pinch:{const{dx:ho,dy:po,scale:go,anchor:vo}=to;return pipe(pan(ho,po),zoom({scale:go,anchor:vo,limitScale:fo}))(eo)}case GraphMinimapEvent.Pan:return minimapPan(to.dx,to.dy)(eo);case GraphCanvasEvent.ResetViewport:return resetViewport(eo,ro,lo,to);case GraphCanvasEvent.ZoomTo:return isViewportComplete(eo)?zoomTo({scale:to.scale,anchor:(ao=to.anchor)!==null&&ao!==void 0?ao:getRectCenter(eo.rect),direction:to.direction,limitScale:fo})(eo):eo;case GraphCanvasEvent.ZoomToFit:return zoomToFit(eo,ro,no,to);case GraphCanvasEvent.ScrollIntoView:if(eo.rect){const{x:ho,y:po}=transformPoint(to.x,to.y,eo.transformMatrix);return scrollIntoView$3(ho,po,eo.rect,!0)(eo)}return eo;default:return eo}},viewportReducer=(eo,to)=>{const ro=reducer(eo.viewport,to,eo.data.present,eo.settings);return ro===eo.viewport?eo:Object.assign(Object.assign({},eo),{viewport:ro})},builtinReducer=composeReducers([behaviorReducer,viewportReducer,nodeReducer,portReducer,edgeReducer,canvasReducer,connectingReducer,selectionReducer,contextMenuReducer].map(eo=>to=>(ro,no)=>to(eo(ro,no),no)));function getGraphReducer(eo=void 0,to=identical){return(eo?composeReducers([eo,builtinReducer]):builtinReducer)(to)}function useGraphReducer(eo,to){const ro=reactExports.useMemo(()=>getGraphReducer(to),[to]),[no,oo]=reactExports.useReducer(ro,eo,createGraphState),io=useConst(()=>[]),so=reactExports.useRef(no),ao=reactExports.useCallback((lo,uo)=>{uo&&io.push(uo),oo(lo)},[io]);return reactExports.useEffect(()=>{const lo=so.current;lo!==no&&(so.current=no,reactDomExports.unstable_batchedUpdates(()=>{io.forEach(uo=>{try{uo(no,lo)}catch(co){console.error(co)}}),io.length=0}))},[no]),[no,ao]}class MouseMoveEventProvider{constructor(to){this.target=to}off(to,ro){switch(to){case"move":this.target.removeEventListener("mousemove",ro);break;case"end":this.target.removeEventListener("mouseup",ro);break}return this}on(to,ro){switch(to){case"move":this.target.addEventListener("mousemove",ro);break;case"end":this.target.addEventListener("mouseup",ro);break}return this}}const useGetMouseDownOnAnchor=(eo,to)=>{const ro=useGraphController();return reactExports.useCallback(no=>oo=>{oo.preventDefault(),oo.stopPropagation(),to.trigger({type:GraphNodeEvent.ResizingStart,rawEvent:oo,node:eo});const io=new DragController(new MouseMoveEventProvider(ro.getGlobalEventTarget()),defaultGetPositionFromEvent);io.onMove=({totalDX:so,totalDY:ao,e:lo})=>{to.trigger(Object.assign({type:GraphNodeEvent.Resizing,rawEvent:lo,node:eo,dx:0,dy:0,dWidth:0,dHeight:0},no(so,ao)))},io.onEnd=({e:so})=>{to.trigger({type:GraphNodeEvent.ResizingEnd,rawEvent:so,node:eo})},to.trigger({type:GraphNodeEvent.ResizingStart,rawEvent:oo,node:eo}),io.start(oo.nativeEvent)},[to,ro,eo])};class PointerEventProvider{constructor(to,ro=null){this.eventEmitter=new eventemitter3Exports.EventEmitter,this.onMove=no=>{(this.pointerId===null||this.pointerId===no.pointerId)&&this.eventEmitter.emit("move",no)},this.onUp=no=>{(this.pointerId===null||this.pointerId===no.pointerId)&&this.eventEmitter.emit("end",no)},this.target=to,this.pointerId=ro}off(to,ro){return this.eventEmitter.off(to,ro),this.ensureRemoveListener(to),this}on(to,ro){return this.ensureAddListener(to),this.eventEmitter.on(to,ro),this}ensureAddListener(to){if(!this.eventEmitter.listeners(to).length)switch(to){case"move":this.target.addEventListener("pointermove",this.onMove);break;case"end":this.target.addEventListener("pointerup",this.onUp);break}}ensureRemoveListener(to){if(!this.eventEmitter.listeners(to).length)switch(to){case"move":this.target.removeEventListener("pointermove",this.onMove);break;case"end":this.target.removeEventListener("pointerup",this.onUp);break}}}const withSimulatedClick=(eo,to)=>({totalDX:ro,totalDY:no,e:oo})=>{var io;const{eventChannel:so,dragThreshold:ao,containerRef:lo}=eo,uo=[];uo.push({type:to,rawEvent:oo}),oo.target instanceof Node&&(!((io=lo.current)===null||io===void 0)&&io.contains(oo.target))&&isWithinThreshold(ro,no,ao)&&uo.push({type:GraphCanvasEvent.Click,rawEvent:oo}),so.batch(uo)},dragMultiSelect=(eo,to)=>{const{getPositionFromEvent:ro,graphController:no,eventChannel:oo}=to,io=new DragController(new MouseMoveEventProvider(no.getGlobalEventTarget()),ro);io.onMove=({dx:so,dy:ao,e:lo})=>{oo.trigger({type:GraphCanvasEvent.SelectMove,rawEvent:lo,dx:so,dy:ao})},io.onEnd=withSimulatedClick(to,GraphCanvasEvent.SelectEnd),oo.trigger({type:GraphCanvasEvent.SelectStart,rawEvent:eo}),io.start(eo)},dragPan=(eo,to)=>{const{getPositionFromEvent:ro,graphController:no,eventChannel:oo}=to,io=new DragController(new MouseMoveEventProvider(no.getGlobalEventTarget()),ro);io.onMove=({dx:so,dy:ao,e:lo})=>{oo.trigger({type:GraphCanvasEvent.Drag,rawEvent:lo,dx:so,dy:ao})},io.onEnd=withSimulatedClick(to,GraphCanvasEvent.DragEnd),io.start(eo),oo.trigger({type:GraphCanvasEvent.DragStart,rawEvent:eo})},onContainerMouseDown=(eo,to)=>{var ro;if(eo.preventDefault(),eo.stopPropagation(),eo.button!==MouseEventButton.Primary)return;const{canvasMouseMode:no,isPanDisabled:oo,isMultiSelectDisabled:io,state:so,isLassoSelectEnable:ao,graphController:lo}=to,uo=no===CanvasMouseMode.Pan&&!eo.ctrlKey&&!eo.shiftKey&&!eo.metaKey||((ro=so.activeKeys)===null||ro===void 0?void 0:ro.has(" "));!oo&&uo?dragPan(eo.nativeEvent,to):!io||ao&&!eo.ctrlKey&&!eo.metaKey?dragMultiSelect(eo.nativeEvent,to):lo.canvasClickOnce=!0};function isMouseButNotLeft(eo){return eo.pointerType==="mouse"&&eo.button!==MouseEventButton.Primary}const onNodePointerDown=(eo,to,ro)=>{eo.preventDefault();const{svgRef:no,isNodesDraggable:oo,getPositionFromEvent:io,isClickNodeToSelectDisabled:so,eventChannel:ao,dragThreshold:lo,rectRef:uo,isAutoAlignEnable:co,autoAlignThreshold:fo,graphController:ho}=ro;oo&&eo.stopPropagation();const po=isMouseButNotLeft(eo);if(so||po)return;no.current&&no.current.focus({preventScroll:!0});const go=checkIsMultiSelect(eo),vo=new DragNodeController(new PointerEventProvider(ho.getGlobalEventTarget(),eo.pointerId),io,uo);vo.onMove=({dx:bo,dy:xo,totalDX:_o,totalDY:Eo,e:So})=>{oo&&ao.trigger({type:GraphNodeEvent.Drag,node:to,dx:bo,dy:xo,rawEvent:So,isVisible:!isWithinThreshold(_o,Eo,lo),isAutoAlignEnable:co,autoAlignThreshold:fo})},vo.onEnd=({totalDX:bo,totalDY:xo,e:_o})=>{var Eo,So;ho.pointerId=null;const To=isWithinThreshold(bo,xo,lo);if((To||!oo)&&(ho.nodeClickOnce=to),ao.trigger({type:GraphNodeEvent.DragEnd,node:to,rawEvent:_o,isDragCanceled:To}),To){const wo=new MouseEvent("click",_o);(So=(Eo=eo.currentTarget)!==null&&Eo!==void 0?Eo:eo.target)===null||So===void 0||So.dispatchEvent(wo)}},ho.pointerId=eo.pointerId,eo.target instanceof Element&&eo.pointerType!=="mouse"&&eo.target.releasePointerCapture(eo.pointerId),ao.trigger({type:GraphNodeEvent.DragStart,node:to,rawEvent:eo,isMultiSelect:go}),vo.start(eo.nativeEvent)},useCanvasKeyboardEventHandlers=eo=>{const{featureControl:to,graphConfig:ro,setCurHoverNode:no,setCurHoverPort:oo,eventChannel:io}=eo,{isDeleteDisabled:so,isPasteDisabled:ao,isUndoEnabled:lo}=to;return reactExports.useMemo(()=>{const uo=new Map,co=()=>So=>{So.preventDefault(),So.stopPropagation(),!so&&(io.trigger({type:GraphCanvasEvent.Delete}),no(void 0),oo(void 0))};uo.set("delete",co()),uo.set("backspace",co());const fo=So=>{metaControl(So)&&(So.preventDefault(),So.stopPropagation(),io.trigger({type:GraphCanvasEvent.Copy}))};uo.set("c",fo);const ho=So=>{if(metaControl(So)){if(So.preventDefault(),So.stopPropagation(),ao)return;const To=ro.getClipboard().read();To&&io.trigger({type:GraphCanvasEvent.Paste,data:To})}};uo.set("v",ho);const po=So=>{lo&&metaControl(So)&&(So.preventDefault(),So.stopPropagation(),io.trigger({type:GraphCanvasEvent.Undo}))};lo&&uo.set("z",po);const go=So=>{lo&&metaControl(So)&&(So.preventDefault(),So.stopPropagation(),io.trigger({type:GraphCanvasEvent.Redo}))};lo&&uo.set("y",go);const vo=So=>{metaControl(So)&&(So.preventDefault(),So.stopPropagation(),io.trigger({type:GraphNodeEvent.SelectAll}))};uo.set("a",vo);const bo=So=>{So.preventDefault(),So.stopPropagation()},xo=So=>{So.preventDefault(),So.stopPropagation()},_o=So=>{So.preventDefault(),So.stopPropagation()},Eo=So=>{So.preventDefault(),So.stopPropagation()};return uo.set(" ",bo),uo.set("control",xo),uo.set("meta",_o),uo.set("shift",Eo),So=>{if(So.repeat)return;const To=So.key.toLowerCase(),wo=uo.get(To);wo&&wo.call(null,So)}},[io,ro,so,ao,lo,no,oo])};let prevMouseDownPortId,prevMouseDownPortTime;function useEventChannel({props:eo,dispatch:to,rectRef:ro,svgRef:no,containerRef:oo,featureControl:io,graphConfig:so,setFocusedWithoutMouse:ao,setCurHoverNode:lo,setCurHoverPort:uo,eventChannel:co,updateViewport:fo,graphController:ho}){const{dragThreshold:po=10,autoAlignThreshold:go=DEFAULT_AUTO_ALIGN_THRESHOLD,getPositionFromEvent:vo=defaultGetPositionFromEvent,canvasMouseMode:bo,edgeWillAdd:xo}=eo,{isNodesDraggable:_o,isAutoAlignEnable:Eo,isClickNodeToSelectDisabled:So,isPanDisabled:To,isMultiSelectDisabled:wo,isLassoSelectEnable:Co,isConnectDisabled:Oo,isPortHoverViewEnable:Ao,isNodeEditDisabled:Ro,isA11yEnable:No}=io,Mo=reactExports.useMemo(()=>animationFramed(to),[to]),Do=useCanvasKeyboardEventHandlers({featureControl:io,eventChannel:co,graphConfig:so,setCurHoverNode:lo,setCurHoverPort:uo}),jo=Jo=>{const Cs=ho.getData();if(Cs.nodes.size>0&&no.current){const Bs=Cs.head&&Cs.nodes.get(Cs.head);Bs&&focusItem(no,{node:Bs,port:void 0},Jo,co)}},Fo=Jo=>{switch(Jo.type){case GraphEdgeEvent.ConnectStart:case GraphEdgeEvent.ConnectMove:case GraphEdgeEvent.ConnectEnd:case GraphEdgeEvent.ConnectNavigate:case GraphEdgeEvent.Click:case GraphEdgeEvent.MouseEnter:case GraphEdgeEvent.MouseLeave:case GraphEdgeEvent.DoubleClick:to(Jo);break;case GraphEdgeEvent.ContextMenu:Jo.rawEvent.stopPropagation(),Jo.rawEvent.preventDefault(),to(Jo);break}},$o=Jo=>{var Cs,Bs;switch(Jo.type){case GraphCanvasEvent.ViewportResize:case GraphCanvasEvent.Drag:case GraphCanvasEvent.MouseWheelScroll:case GraphCanvasEvent.Zoom:case GraphCanvasEvent.Pinch:case GraphCanvasEvent.Click:case GraphCanvasEvent.SelectStart:case GraphCanvasEvent.SelectMove:case GraphCanvasEvent.SelectEnd:case GraphCanvasEvent.ResetSelection:case GraphCanvasEvent.Navigate:case GraphCanvasEvent.Paste:case GraphCanvasEvent.Undo:case GraphCanvasEvent.Redo:case GraphCanvasEvent.Delete:case GraphCanvasEvent.KeyUp:case GraphCanvasEvent.DraggingNodeFromItemPanelStart:case GraphCanvasEvent.DraggingNodeFromItemPanel:case GraphCanvasEvent.DraggingNodeFromItemPanelEnd:to(Jo);break;case GraphCanvasEvent.Copy:{const zs=filterSelectedItems(ho.getData());so.getClipboard().write(zs)}break;case GraphCanvasEvent.KeyDown:!Jo.rawEvent.repeat&&Jo.rawEvent.target===Jo.rawEvent.currentTarget&&!Jo.rawEvent.shiftKey&&Jo.rawEvent.key==="Tab"?(Jo.rawEvent.preventDefault(),Jo.rawEvent.stopPropagation(),ao(!0),jo(Jo.rawEvent)):Do(Jo.rawEvent),to(Jo);break;case GraphCanvasEvent.MouseDown:{ho.nodeClickOnce=null,(Cs=no.current)===null||Cs===void 0||Cs.focus({preventScroll:!0}),ao(!1);const zs=Jo.rawEvent;fo(),onContainerMouseDown(zs,{state:ho.state,canvasMouseMode:bo,isPanDisabled:To,isMultiSelectDisabled:wo,isLassoSelectEnable:Co,dragThreshold:po,containerRef:oo,getPositionFromEvent:defaultGetPositionFromEvent,eventChannel:co,graphController:ho})}break;case GraphCanvasEvent.MouseUp:if(ho.canvasClickOnce){ho.canvasClickOnce=!1;const zs=Jo.rawEvent;zs.target instanceof Node&&(!((Bs=no.current)===null||Bs===void 0)&&Bs.contains(zs.target))&&zs.target.nodeName==="svg"&&co.trigger({type:GraphCanvasEvent.Click,rawEvent:Jo.rawEvent})}break;case GraphCanvasEvent.ContextMenu:Jo.rawEvent.preventDefault(),Jo.rawEvent.stopPropagation(),to(Jo);break;case GraphCanvasEvent.MouseMove:{const zs=Jo.rawEvent;ho.setMouseClientPosition({x:zs.clientX,y:zs.clientY})}break;case GraphCanvasEvent.MouseLeave:ho.unsetMouseClientPosition(),ho.canvasClickOnce=!1;break;case GraphCanvasEvent.Blur:ao(!1);break}},Lo=Jo=>{const{node:Cs}=Jo,{isNodeHoverViewEnabled:Bs}=io;switch(ho.getBehavior()){case GraphBehavior.Connecting:case GraphBehavior.Default:Bs&&(lo(Cs.id),uo(void 0));break}to(Jo)},Ho=Jo=>{to(Jo),lo(void 0)},qo=Jo=>{Ro||(Jo.rawEvent.stopPropagation(),to(Jo))},Uo=Jo=>{if(!no||!No)return;const Cs=ho.getData(),{node:Bs}=Jo,zs=Jo.rawEvent;switch(zs.key){case"Tab":{zs.preventDefault(),zs.stopPropagation();const Ls=zs.shiftKey?getPrevItem(Cs,Bs):getNextItem(Cs,Bs);focusItem(no,Ls,zs,co)}break;case"ArrowUp":zs.preventDefault(),zs.stopPropagation(),focusUpNode(Cs,Bs.id,no,ho,zs,co);break;case"ArrowDown":zs.preventDefault(),zs.stopPropagation(),focusDownNode(Cs,Bs.id,no,ho,zs,co);break;case"ArrowLeft":zs.preventDefault(),zs.stopPropagation(),focusLeftNode(Cs,Bs.id,no,ho,zs,co);break;case"ArrowRight":zs.preventDefault(),zs.stopPropagation(),focusRightNode(Cs,Bs.id,no,ho,zs,co);break}},Yo=Jo=>{var Cs;switch(Jo.type){case GraphNodeEvent.ResizingStart:case GraphNodeEvent.Resizing:case GraphNodeEvent.ResizingEnd:case GraphNodeEvent.DragStart:case GraphNodeEvent.Drag:case GraphNodeEvent.DragEnd:case GraphNodeEvent.SelectAll:to(Jo);break;case GraphNodeEvent.PointerMove:Jo.rawEvent.pointerId===ho.pointerId&&Mo(Jo);break;case GraphNodeEvent.PointerDown:{if(ho.nodeClickOnce=null,ho.getBehavior()!==GraphBehavior.Default)return;const Bs=Jo.rawEvent;fo(),onNodePointerDown(Bs,Jo.node,{svgRef:no,rectRef:ro,isNodesDraggable:_o,isAutoAlignEnable:Eo,dragThreshold:po,getPositionFromEvent:vo,isClickNodeToSelectDisabled:So,autoAlignThreshold:go,eventChannel:co,graphController:ho})}break;case GraphNodeEvent.PointerEnter:Lo(Jo);break;case GraphNodeEvent.PointerLeave:Ho(Jo);break;case GraphNodeEvent.MouseDown:ho.nodeClickOnce=null,Jo.rawEvent.preventDefault(),_o&&Jo.rawEvent.stopPropagation(),ao(!1);break;case GraphNodeEvent.Click:if(((Cs=ho.nodeClickOnce)===null||Cs===void 0?void 0:Cs.id)===Jo.node.id){const{currentTarget:Bs}=Jo.rawEvent;Bs instanceof SVGElement&&Bs.focus({preventScroll:!0}),Jo.node=ho.nodeClickOnce,to(Jo),ho.nodeClickOnce=null}else Jo.intercepted=!0;break;case GraphNodeEvent.ContextMenu:Jo.rawEvent.preventDefault(),Jo.rawEvent.stopPropagation(),to(Jo);break;case GraphNodeEvent.DoubleClick:qo(Jo);break;case GraphNodeEvent.KeyDown:Uo(Jo);break}},Zo=reactExports.useCallback(Jo=>{const Cs=Jo.rawEvent,{node:Bs,port:zs}=Jo;if(ao(!1),Cs.stopPropagation(),Cs.preventDefault(),prevMouseDownPortId=`${Bs.id}:${zs.id}`,prevMouseDownPortTime=performance.now(),Oo||isMouseButNotLeft(Cs))return;fo();const Ls=ho.getGlobalEventTarget(),ga=new DragController(new PointerEventProvider(Ls,Cs.pointerId),vo);ga.onMove=({clientX:Js,clientY:Xs,e:$a})=>{co.trigger({type:GraphEdgeEvent.ConnectMove,rawEvent:$a,clientX:Js,clientY:Xs})},ga.onEnd=({e:Js,totalDY:Xs,totalDX:$a})=>{var Ll,Kl;const Xl=isWithinThreshold($a,Xs,po);if(co.trigger({type:GraphEdgeEvent.ConnectEnd,rawEvent:Js,edgeWillAdd:xo,isCancel:Xl}),ho.pointerId=null,Xl){const Nl=new MouseEvent("click",Js);(Kl=(Ll=Cs.currentTarget)!==null&&Ll!==void 0?Ll:Cs.target)===null||Kl===void 0||Kl.dispatchEvent(Nl)}},co.trigger({type:GraphEdgeEvent.ConnectStart,nodeId:Bs.id,portId:zs.id,rawEvent:Cs,clientPoint:{x:Cs.clientX,y:Cs.clientY}}),Cs.target instanceof Element&&Cs.pointerType!=="mouse"&&Cs.target.releasePointerCapture(Cs.pointerId),ho.pointerId=Cs.pointerId,ga.start(Cs.nativeEvent)},[xo,co,vo,ho,Oo,ao,fo]),_s=reactExports.useCallback(Jo=>{const Cs=Jo.rawEvent,{node:Bs,port:zs}=Jo;prevMouseDownPortId===`${Bs.id}:${zs.id}`&&performance.now()-(prevMouseDownPortTime||0)<500&&(prevMouseDownPortId=void 0,prevMouseDownPortTime=void 0,co.trigger({type:GraphPortEvent.Click,node:Bs,port:zs,rawEvent:Cs}))},[co]),Ss=Jo=>{switch(ho.getBehavior()){case GraphBehavior.Default:uo([Jo.node.id,Jo.port.id]);break}Ao&&uo([Jo.node.id,Jo.port.id]),Jo.rawEvent.pointerId===ho.pointerId&&to(Jo)},As=Jo=>{uo(void 0),to(Jo)},Ns=Jo=>{var Cs,Bs,zs;if(!No)return;const Ls=Jo.rawEvent;if(Ls.altKey&&(Ls.nativeEvent.code==="KeyC"||Ls.key==="c")){Ls.preventDefault(),Ls.stopPropagation(),co.trigger({type:GraphEdgeEvent.ConnectStart,nodeId:Jo.node.id,portId:Jo.port.id,rawEvent:Ls});return}const ga=ho.getData(),{node:Js,port:Xs}=Jo;switch(Ls.key){case"Tab":if(No&&ho.getBehavior()===GraphBehavior.Connecting)Ls.preventDefault(),Ls.stopPropagation(),co.trigger({type:GraphEdgeEvent.ConnectNavigate,rawEvent:Ls});else{const $a=Ls.shiftKey?getPrevItem(ga,Js,Xs):getNextItem(ga,Js,Xs);focusItem(no,$a,Ls,co)}break;case"ArrowUp":case"ArrowLeft":Ls.preventDefault(),Ls.stopPropagation(),focusPrevPort((Cs=Js.ports)!==null&&Cs!==void 0?Cs:[],Js,Xs.id,no,Ls,co);break;case"ArrowDown":case"ArrowRight":Ls.preventDefault(),Ls.stopPropagation(),focusNextPort((Bs=Js.ports)!==null&&Bs!==void 0?Bs:[],Js,Xs.id,no,Ls,co);break;case"g":Ls.preventDefault(),Ls.stopPropagation(),goToConnectedPort(ga,Js,Xs,no,Ls,co);break;case"Escape":ho.getBehavior()===GraphBehavior.Connecting&&(Ls.preventDefault(),Ls.stopPropagation(),no.current&&((zs=findDOMElement(no.current,{node:Js,port:Xs}))===null||zs===void 0||zs.blur()));break;case"Enter":Ls.preventDefault(),Ls.stopPropagation(),co.trigger({type:GraphEdgeEvent.ConnectEnd,rawEvent:Ls.nativeEvent,edgeWillAdd:xo,isCancel:!1});break}},ws=Jo=>{switch(Jo.type){case GraphPortEvent.Click:to(Jo);break;case GraphPortEvent.PointerDown:Zo(Jo);break;case GraphPortEvent.PointerUp:_s(Jo);break;case GraphPortEvent.PointerEnter:Ss(Jo);break;case GraphPortEvent.PointerLeave:As(Jo);break;case GraphPortEvent.ContextMenu:Jo.rawEvent.preventDefault(),Jo.rawEvent.stopPropagation(),to(Jo);break;case GraphPortEvent.Focus:Jo.rawEvent.stopPropagation(),to(Jo);break;case GraphPortEvent.Blur:ho.getBehavior()===GraphBehavior.Connecting&&co.trigger({type:GraphEdgeEvent.ConnectEnd,rawEvent:Jo.rawEvent.nativeEvent,edgeWillAdd:xo,isCancel:!0});break;case GraphPortEvent.KeyDown:Ns(Jo);break}},Ds=Jo=>{const Cs=handleBehaviorChange(ho.getBehavior(),Jo);switch(ho.setBehavior(Cs),Fo(Jo),$o(Jo),Yo(Jo),ws(Jo),Jo.type){case GraphMinimapEvent.Pan:case GraphScrollBarEvent.Scroll:case GraphContextMenuEvent.Open:case GraphContextMenuEvent.Close:to(Jo);break}};reactExports.useImperativeHandle(co.listenersRef,()=>Ds),reactExports.useImperativeHandle(co.externalHandlerRef,()=>eo.onEvent)}const useFeatureControl=eo=>reactExports.useMemo(()=>{const to=eo.has(GraphFeatures.NodeDraggable),ro=eo.has(GraphFeatures.NodeResizable),no=!eo.has(GraphFeatures.AutoFit),oo=!eo.has(GraphFeatures.PanCanvas),io=!eo.has(GraphFeatures.MultipleSelect),so=eo.has(GraphFeatures.LassoSelect),ao=eo.has(GraphFeatures.NodeHoverView),lo=!eo.has(GraphFeatures.ClickNodeToSelect),uo=!eo.has(GraphFeatures.AddNewEdges),co=eo.has(GraphFeatures.PortHoverView),fo=!eo.has(GraphFeatures.EditNode),ho=!eo.has(GraphFeatures.CanvasVerticalScrollable),po=!eo.has(GraphFeatures.CanvasHorizontalScrollable),go=eo.has(GraphFeatures.A11yFeatures),vo=eo.has(GraphFeatures.AutoAlign),bo=eo.has(GraphFeatures.CtrlKeyZoom),xo=eo.has(GraphFeatures.LimitBoundary),_o=!eo.has(GraphFeatures.AutoFit),Eo=eo.has(GraphFeatures.EditEdge),So=!eo.has(GraphFeatures.Delete),To=!eo.has(GraphFeatures.AddNewNodes)||!eo.has(GraphFeatures.AddNewEdges),wo=eo.has(GraphFeatures.UndoStack),Co=(!ho||!po||!oo)&&xo&&!eo.has(GraphFeatures.InvisibleScrollbar);return{isNodesDraggable:to,isNodeResizable:ro,isAutoFitDisabled:no,isPanDisabled:oo,isMultiSelectDisabled:io,isLassoSelectEnable:so,isNodeHoverViewEnabled:ao,isClickNodeToSelectDisabled:lo,isConnectDisabled:uo,isPortHoverViewEnable:co,isNodeEditDisabled:fo,isVerticalScrollDisabled:ho,isHorizontalScrollDisabled:po,isA11yEnable:go,isAutoAlignEnable:vo,isCtrlKeyZoomEnable:bo,isLimitBoundary:xo,isVirtualizationEnabled:_o,isEdgeEditable:Eo,isDeleteDisabled:So,isPasteDisabled:To,isUndoEnabled:wo,isScrollbarVisible:Co}},[eo]),emptyLine=()=>({x1:0,y1:0,x2:0,y2:0,visible:!1}),Line$1=eo=>{var to;const{line:ro,style:no}=eo,oo=Object.assign(Object.assign({strokeWidth:1},no),{stroke:ro.visible?(to=no==null?void 0:no.stroke)!==null&&to!==void 0?to:"#ea4300":"none"});return jsxRuntimeExports.jsx("line",{className:"auto-align-hint",x1:ro.x1,y1:ro.y1,x2:ro.x2,y2:ro.y2,style:oo})},AlignmentLines=reactExports.memo(({style:eo})=>{const to=useAlignmentLines();return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:to.map((ro,no)=>ro.visible?jsxRuntimeExports.jsx(Line$1,{line:ro,style:eo},no):null)})});AlignmentLines.displayName="AlignmentLines";const NodeFrame=eo=>{var to,ro;const no=reactExports.useContext(SlotsContext);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:(ro=(to=no.renderNodeFrame)===null||to===void 0?void 0:to.call(no,eo))!==null&&ro!==void 0?ro:eo.children})},NodeResizeHandler=eo=>{var to,ro;const no=reactExports.useContext(SlotsContext);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:(ro=(to=no.renderNodeResizeHandler)===null||to===void 0?void 0:to.call(no,eo))!==null&&ro!==void 0?ro:eo.children})},Slots={NodeFrame,NodeResizeHandler},AnimatingNodeGroup=eo=>{var to,ro;const{dummyNodes:no,graphData:oo}=eo,io=useGraphConfig(),{dWidth:so,dHeight:ao}=no,lo=(to=no.alignedDX)!==null&&to!==void 0?to:no.dx,uo=(ro=no.alignedDY)!==null&&ro!==void 0?ro:no.dy;return jsxRuntimeExports.jsx("g",{children:no.nodes.map(co=>{const fo=oo.nodes.get(co.id);if(!fo)return null;const ho=co.x+lo,po=co.y+uo,go=co.width+so,vo=co.height+ao,bo=getNodeConfig(fo,io);return bo!=null&&bo.renderDummy?bo.renderDummy(Object.assign(Object.assign({},fo.inner),{x:ho,y:po,width:go,height:vo})):jsxRuntimeExports.jsx(Slots.NodeFrame,Object.assign({height:vo,width:go,x:ho,y:po},{children:jsxRuntimeExports.jsx("rect",{transform:`translate(${ho},${po})`,height:vo,width:go,stroke:defaultColors.dummyNodeStroke,strokeDasharray:"4",fill:"none"},fo.id)}),`node-frame-${co.id}`)})})},ConnectingLine=eo=>{const{autoAttachLine:to,connectingLine:ro,styles:no}=eo,oo=(no==null?void 0:no.stroke)||defaultColors.primaryColor,io=(no==null?void 0:no.fill)||"none",so=(no==null?void 0:no.strokeDasharray)||"4,4",ao=ro.visible?oo:"none";return jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("marker",Object.assign({id:"markerArrow",markerWidth:"10",markerHeight:"10",refX:"6",refY:"5",orient:"auto",markerUnits:"strokeWidth"},{children:jsxRuntimeExports.jsx("path",{d:"M0,0 L6,5 L0,10",style:{stroke:ao,fill:"none"}})}))}),jsxRuntimeExports.jsx("line",{x1:ro.x1,y1:ro.y1,x2:ro.x2,y2:ro.y2,style:{stroke:ao,fill:io,strokeDasharray:so},markerEnd:"url(#markerArrow)"}),jsxRuntimeExports.jsx("path",{d:getCurvePathD(to.x2,to.x1,to.y2,to.y1),style:{stroke:to.visible?oo:"none",fill:"none"}})]})},Connecting=reactExports.memo(eo=>{const{styles:to,graphConfig:ro,viewport:no,movingPoint:oo}=eo,{sourcePort:io,sourceNode:so,targetPort:ao,targetNode:lo}=useConnectingState();if(!so||!io)return null;const uo=so.getPortPosition(io.id,ro);let co,fo=!1;if(lo&&ao?(fo=!0,co=lo==null?void 0:lo.getPortPosition(ao.id,ro)):co=uo,!uo||!co)return null;const ho=transformPoint(uo.x,uo.y,no.transformMatrix),po=transformPoint(co.x,co.y,no.transformMatrix),go=oo?{x1:ho.x,y1:ho.y,x2:oo.x,y2:oo.y,visible:!fo}:emptyLine(),vo={x1:ho.x,y1:ho.y,x2:po.x,y2:po.y,visible:fo};return jsxRuntimeExports.jsx(ConnectingLine,{connectingLine:go,autoAttachLine:vo,styles:to})});Connecting.displayName="Connecting";const defaultStyle={position:"fixed",userSelect:"none"},GraphContextMenu=({state:eo,onClick:to})=>{var ro,no;const oo=reactExports.useRef(null),[io,so]=reactExports.useState(Object.assign({},defaultStyle));reactExports.useLayoutEffect(()=>{const fo=oo.current;if(!fo||!eo.contextMenuPosition)return;const{x:ho,y:po}=eo.contextMenuPosition,{clientWidth:go,clientHeight:vo}=document.documentElement,{width:bo,height:xo}=fo.getBoundingClientRect(),_o=Object.assign({},defaultStyle);ho+bo>=go?_o.right=0:_o.left=ho,po+xo>vo?_o.bottom=0:_o.top=po,so(_o)},[(ro=eo.contextMenuPosition)===null||ro===void 0?void 0:ro.x,(no=eo.contextMenuPosition)===null||no===void 0?void 0:no.y]);const ao=useContextMenuConfigContext(),[lo,uo]=reactExports.useState(jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}));reactExports.useEffect(()=>{const fo=eo.data.present;let ho=0,po=0,go=0;fo.nodes.forEach(bo=>{var xo;isSelected(bo)&&(ho+=1),(xo=bo.ports)===null||xo===void 0||xo.forEach(_o=>{isSelected(_o)&&(po+=1)})}),fo.edges.forEach(bo=>{isSelected(bo)&&(go+=1)});let vo;po+ho+go>1?vo=ao.getMenu(MenuType.Multi):po+ho+go===0?vo=ao.getMenu(MenuType.Canvas):ho===1?vo=ao.getMenu(MenuType.Node):po===1?vo=ao.getMenu(MenuType.Port):vo=ao.getMenu(MenuType.Edge),uo(vo)},[eo.data.present,ao]);const co=reactExports.useCallback(fo=>{fo.stopPropagation(),fo.preventDefault()},[]);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:eo.contextMenuPosition&&jsxRuntimeExports.jsx("div",Object.assign({ref:oo,onClick:to,onContextMenu:co,role:"button",style:io},{children:lo}))})},Renderer=eo=>jsxRuntimeExports.jsx("rect",{height:eo.height,width:eo.width,fill:eo.group.fill}),defaultGroup={render:Renderer},Group=eo=>{var to;const{data:ro,group:no}=eo,oo=useGraphConfig(),{x:io,y:so,width:ao,height:lo}=reactExports.useMemo(()=>getGroupRect(no,ro.nodes,oo),[no,ro.nodes,oo]),uo=(to=oo.getGroupConfig(no))!==null&&to!==void 0?to:defaultGroup,co=`group-container-${no.id}`;return jsxRuntimeExports.jsx("g",Object.assign({"data-automation-id":co,transform:`translate(${io}, ${so})`},{children:uo.render({group:no,height:lo,width:ao})}),no.id)},GraphGroupsRenderer=eo=>jsxRuntimeExports.jsx("g",{children:reactExports.useMemo(()=>eo.groups.map(to=>jsxRuntimeExports.jsx(Group,{group:to,data:eo.data},to.id)),[eo.groups,eo.data])}),NodeTooltips=eo=>{const{node:to,viewport:ro}=eo,no=useGraphConfig();if(!to||!has$1(GraphNodeStatus.Activated)(to.status))return null;const oo=getNodeConfig(to,no);return oo!=null&&oo.renderTooltips?jsxRuntimeExports.jsx("div",Object.assign({className:"node-tooltips"},{children:oo.renderTooltips({model:to,viewport:ro})})):null},PortTooltips=eo=>{const to=useGraphConfig(),{parentNode:ro,port:no,viewport:oo}=eo;if(!has$1(GraphPortStatus.Activated)(no.status))return null;const so=to.getPortConfig(no);if(!so||!so.renderTooltips)return null;const ao=ro.getPortPosition(no.id,to);return ao?jsxRuntimeExports.jsx("div",Object.assign({className:"port-tooltips"},{children:jsxRuntimeExports.jsx(ConnectingStateContext.Consumer,{children:({sourceNode:lo,sourcePort:uo})=>so.renderTooltips&&so.renderTooltips(Object.assign({model:no,parentNode:ro,data:eo.data,anotherNode:lo,anotherPort:uo,viewport:oo},ao))})})):null};function useRefValue(eo){const to=reactExports.useRef(eo);return reactExports.useLayoutEffect(()=>{to.current=eo},[eo]),to}const SCROLL_BAR_WIDTH=10,wrapperCommonStyle={position:"absolute",cursor:"initial"},useStyles$i=createUseStyles({verticalScrollWrapper:Object.assign(Object.assign({},wrapperCommonStyle),{height:"100%",width:SCROLL_BAR_WIDTH,top:0,right:0}),horizontalScrollWrapper:Object.assign(Object.assign({},wrapperCommonStyle),{height:SCROLL_BAR_WIDTH,width:"100%",bottom:0,left:0}),verticalScrollStyle:eo=>({height:eo.scrollbarLayout.verticalScrollHeight,width:"100%",backgroundColor:defaultColors.scrollbarColor,position:"absolute",top:0,right:0,transform:`translateY(${eo.scrollbarLayout.verticalScrollTop}px)`}),horizontalScrollStyle:eo=>({width:eo.scrollbarLayout.horizontalScrollWidth-SCROLL_BAR_WIDTH,height:"100%",backgroundColor:defaultColors.scrollbarColor,position:"absolute",left:0,bottom:0,transform:`translateX(${eo.scrollbarLayout.horizontalScrollLeft}px)`})}),Scrollbar=eo=>{const{vertical:to=!0,horizontal:ro=!0,offsetLimit:no,eventChannel:oo,viewport:io}=eo,so=useGraphController(),ao=getScrollbarLayout(io,no),lo=useStyles$i({scrollbarLayout:ao}),uo=useRefValue(ao);function co(ho){ho.preventDefault(),ho.stopPropagation();const{height:po}=io.rect,go=new DragController(new MouseMoveEventProvider(so.getGlobalEventTarget()),defaultGetPositionFromEvent);go.onMove=({dy:vo,e:bo})=>{const{totalContentHeight:xo}=uo.current,_o=-(vo*xo)/po;oo.trigger({type:GraphScrollBarEvent.Scroll,rawEvent:bo,dx:0,dy:_o})},go.onEnd=()=>{oo.trigger({type:GraphScrollBarEvent.ScrollEnd})},go.start(ho.nativeEvent),oo.trigger({type:GraphScrollBarEvent.ScrollStart})}function fo(ho){ho.preventDefault(),ho.stopPropagation();const{width:po}=io.rect,go=new DragController(new MouseMoveEventProvider(so.getGlobalEventTarget()),defaultGetPositionFromEvent);go.onMove=({dx:vo,e:bo})=>{const{totalContentWidth:xo}=uo.current,_o=-(vo*xo)/po;oo.trigger({type:GraphScrollBarEvent.Scroll,rawEvent:bo,dx:_o,dy:0})},go.onEnd=()=>{oo.trigger({type:GraphScrollBarEvent.ScrollEnd})},go.start(ho.nativeEvent),oo.trigger({type:GraphScrollBarEvent.ScrollStart})}return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[to&&jsxRuntimeExports.jsx("div",Object.assign({className:lo.verticalScrollWrapper},{children:jsxRuntimeExports.jsx("div",{className:lo.verticalScrollStyle,onMouseDown:co,role:"button","aria-label":"vertical scrollbar","aria-roledescription":"vertical scrollbar",id:"canvas-vertical-scrollbar"})})),ro&&jsxRuntimeExports.jsx("div",Object.assign({className:lo.horizontalScrollWrapper},{children:jsxRuntimeExports.jsx("div",{className:lo.horizontalScrollStyle,onMouseDown:fo,role:"button","aria-label":"horizontal scrollbar","aria-roledescription":"horizontal scrollbar",id:"canvas-horizontal-scrollbar"})}))]})};function getTotalContentHeight(eo,to){const{minY:ro,maxY:no}=to;return eo+no-ro}function getTotalContentWidth(eo,to){const{minX:ro,maxX:no}=to;return eo+no-ro}function getScrollbarLayout(eo,to){const{rect:ro,transformMatrix:no}=eo,oo=getTotalContentHeight(ro.height,to),io=getTotalContentWidth(ro.width,to);return{totalContentHeight:oo,totalContentWidth:io,verticalScrollHeight:ro.height*ro.height/oo,horizontalScrollWidth:ro.width*ro.width/io,verticalScrollTop:(to.maxY-no[5])*ro.height/oo,horizontalScrollLeft:(to.maxX-no[4])*ro.width/io}}const Transform=({matrix:eo,children:to})=>{const ro=reactExports.useMemo(()=>`matrix(${eo.join(" ")})`,eo);return jsxRuntimeExports.jsx("g",Object.assign({transform:ro},{children:to}))};function getHintPoints(eo,to,{minX:ro,minY:no,maxX:oo,maxY:io},so,ao,lo,uo){return eo.x===to.x?{x:eo.x,y:eo.y=no?{x:oo,y:so}:{x:lo,y:no}:eo.yro?{x:ao,y:io}:{x:ro,y:uo}:uo>no?{x:ro,y:uo}:{x:lo,y:no}}const GraphEdge=reactExports.memo(eo=>{var to;const{edge:ro,data:no,eventChannel:oo,source:io,target:so,graphId:ao}=eo,lo=useGraphConfig(),uo=useVirtualization(),{viewport:co,renderedArea:fo,visibleArea:ho}=uo,po=Oo=>Ao=>{Ao.persist(),oo.trigger({type:Oo,edge:ro,rawEvent:Ao})},go=isPointInRect(fo,io),vo=isPointInRect(fo,so),bo=go&&vo;if(reactExports.useLayoutEffect(()=>{bo&&uo.renderedEdges.add(ro.id)},[uo]),!bo)return null;const xo=lo.getEdgeConfig(ro);if(!xo)return Debug.warn(`invalid edge ${JSON.stringify(ro)}`),null;if(!xo.render)return Debug.warn(`Missing "render" method in edge config ${JSON.stringify(ro)}`),null;const _o=isPointInRect(ho,io),Eo=isPointInRect(ho,so);let So=xo.render({model:ro,data:no,x1:io.x,y1:io.y,x2:so.x,y2:so.y,viewport:co});if(has$1(GraphEdgeStatus.ConnectedToSelected)(ro.status)&&(!_o||!Eo)){const Oo=getLinearFunction(io.x,io.y,so.x,so.y),Ao=getLinearFunction(io.y,io.x,so.y,so.x),Ro=_o?io:so,No=_o?so:io,Mo=Oo(ho.maxX),Do=Ao(ho.maxY),jo=Ao(ho.minY),Fo=Oo(ho.minX),$o=getHintPoints(Ro,No,ho,Mo,Do,jo,Fo);_o&&xo.renderWithTargetHint?So=xo.renderWithTargetHint({model:ro,data:no,x1:io.x,y1:io.y,x2:$o.x,y2:$o.y,viewport:co}):Eo&&xo.renderWithSourceHint&&(So=xo.renderWithSourceHint({model:ro,data:no,x1:$o.x,y1:$o.y,x2:so.x,y2:so.y,viewport:co}))}const To=getEdgeUid(ao,ro),wo=`edge-container-${ro.id}`,Co=(to=ro.automationId)!==null&&to!==void 0?to:wo;return jsxRuntimeExports.jsx("g",Object.assign({id:To,onClick:po(GraphEdgeEvent.Click),onDoubleClick:po(GraphEdgeEvent.DoubleClick),onMouseDown:po(GraphEdgeEvent.MouseDown),onMouseUp:po(GraphEdgeEvent.MouseUp),onMouseEnter:po(GraphEdgeEvent.MouseEnter),onMouseLeave:po(GraphEdgeEvent.MouseLeave),onContextMenu:po(GraphEdgeEvent.ContextMenu),onMouseMove:po(GraphEdgeEvent.MouseMove),onMouseOver:po(GraphEdgeEvent.MouseOver),onMouseOut:po(GraphEdgeEvent.MouseOut),onFocus:void 0,onBlur:void 0,className:wo,"data-automation-id":Co},{children:So}))});function compareEqual(eo,to){return eo.node===to.node}const EdgeChampNodeRender=reactExports.memo(eo=>{var to,ro;const{node:no,data:oo}=eo,io=__rest(eo,["node","data"]),so=useGraphConfig(),ao=[],lo=no.valueCount;for(let fo=0;fo{const{data:to,node:ro}=eo,no=__rest(eo,["data","node"]),oo=useGraphConfig();return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ro.values.map(io=>{var so,ao;const lo=(so=to.nodes.get(io.source))===null||so===void 0?void 0:so.getPortPosition(io.sourcePortId,oo),uo=(ao=to.nodes.get(io.target))===null||ao===void 0?void 0:ao.getPortPosition(io.targetPortId,oo);return lo&&uo?reactExports.createElement(GraphEdge,Object.assign({},no,{key:io.id,data:to,edge:io,source:lo,target:uo})):null})})},compareEqual);EdgeHashCollisionNodeRender.displayName="EdgeHashCollisionNodeRender";const EdgeTree=eo=>{const{tree:to}=eo,ro=__rest(eo,["tree"]);return jsxRuntimeExports.jsx(EdgeChampNodeRender,Object.assign({},ro,{node:to.root}))},styles$1=mergeStyleSets({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%"}}),GraphNode=eo=>{var to;const{node:ro,eventChannel:no,getNodeAriaLabel:oo,viewport:io,graphId:so}=eo,ao=useGraphConfig(),lo=getNodeConfig(ro,ao),uo=po=>go=>{go.persist();const vo={type:po,node:ro,rawEvent:go};no.trigger(vo)},co=po=>{po.persist();const go=checkIsMultiSelect(po);no.trigger({type:GraphNodeEvent.Click,rawEvent:po,isMultiSelect:go,node:ro})},fo=getNodeUid(so,ro),ho=(to=ro.automationId)!==null&&to!==void 0?to:getNodeAutomationId(ro);return lo!=null&&lo.render?jsxRuntimeExports.jsx("g",Object.assign({id:fo,focusable:"true",tabIndex:0,className:styles$1.node,onPointerDown:uo(GraphNodeEvent.PointerDown),onPointerEnter:uo(GraphNodeEvent.PointerEnter),onPointerMove:uo(GraphNodeEvent.PointerMove),onPointerLeave:uo(GraphNodeEvent.PointerLeave),onPointerUp:uo(GraphNodeEvent.PointerUp),onDoubleClick:uo(GraphNodeEvent.DoubleClick),onMouseDown:uo(GraphNodeEvent.MouseDown),onMouseUp:uo(GraphNodeEvent.MouseUp),onMouseEnter:uo(GraphNodeEvent.MouseEnter),onMouseLeave:uo(GraphNodeEvent.MouseLeave),onContextMenu:uo(GraphNodeEvent.ContextMenu),onMouseMove:uo(GraphNodeEvent.MouseMove),onMouseOver:uo(GraphNodeEvent.MouseOver),onMouseOut:uo(GraphNodeEvent.MouseOut),onClick:co,onKeyDown:uo(GraphNodeEvent.KeyDown),"aria-label":oo(ro),role:"group","aria-roledescription":"node","data-automation-id":ho},{children:jsxRuntimeExports.jsx("g",Object.assign({className:"node-box-container"},{children:lo.render({model:ro,viewport:io})}))})):(Debug.warn('Missing "render" method in node config'),null)},RESIZE_POINT_WIDTH=8,RESIZE_POINT_HEIGHT=8,NodeAnchor=({x:eo,y:to,cursor:ro,onMouseDown:no})=>jsxRuntimeExports.jsx(Slots.NodeResizeHandler,Object.assign({x:eo,y:to,cursor:ro,onMouseDown:no},{children:jsxRuntimeExports.jsx("rect",{x:eo,y:to,height:RESIZE_POINT_HEIGHT,width:RESIZE_POINT_WIDTH,stroke:defaultColors.controlPointColor,fill:"transparent",cursor:ro,onMouseDown:no})})),BBOX_PADDING=15,GraphNodeAnchors=eo=>{var to,ro;const{node:no,getMouseDown:oo}=eo,io=useGraphConfig(),so=getNodeConfig(no,io),ao=(to=so==null?void 0:so.getMinWidth(no))!==null&&to!==void 0?to:0,lo=(ro=so==null?void 0:so.getMinHeight(no))!==null&&ro!==void 0?ro:0,uo=getRectHeight(so,no),co=getRectWidth(so,no),fo=oo((Eo,So)=>{const To=Math.min(Eo,co-ao),wo=Math.min(So,uo-lo);return{dx:+To,dy:+wo,dWidth:-To,dHeight:-wo}}),ho=oo((Eo,So)=>{const To=Math.min(So,uo-lo);return{dy:+To,dHeight:-To}}),po=oo((Eo,So)=>{const To=Math.max(Eo,ao-co),wo=Math.min(So,uo-lo);return{dy:+wo,dWidth:+To,dHeight:-wo}}),go=oo(Eo=>({dWidth:+Math.max(Eo,ao-co)})),vo=oo((Eo,So)=>{const To=Math.max(Eo,ao-co),wo=Math.max(So,lo-uo);return{dWidth:+To,dHeight:+wo}}),bo=oo((Eo,So)=>({dHeight:+Math.max(So,lo-uo)})),xo=oo((Eo,So)=>{const To=Math.min(Eo,co-ao),wo=Math.max(So,lo-uo);return{dx:+To,dWidth:-To,dHeight:+wo}}),_o=oo(Eo=>{const So=Math.min(Eo,co-ao);return{dx:So,dWidth:-So}});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(NodeAnchor,{cursor:"nw-resize",x:no.x-BBOX_PADDING,y:no.y-BBOX_PADDING-RESIZE_POINT_HEIGHT,onMouseDown:fo},"nw-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:no.x+co/2-RESIZE_POINT_WIDTH/2,y:no.y-BBOX_PADDING-RESIZE_POINT_HEIGHT,cursor:"n-resize",onMouseDown:ho},"n-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:no.x+co+BBOX_PADDING-RESIZE_POINT_WIDTH,y:no.y-BBOX_PADDING-RESIZE_POINT_HEIGHT,cursor:"ne-resize",onMouseDown:po},"ne-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:no.x+co+BBOX_PADDING-RESIZE_POINT_WIDTH,y:no.y+uo/2-RESIZE_POINT_HEIGHT/2,cursor:"e-resize",onMouseDown:go},"e-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:no.x+co+BBOX_PADDING-RESIZE_POINT_WIDTH,y:no.y+uo+BBOX_PADDING,cursor:"se-resize",onMouseDown:vo},"se-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:no.x+co/2-RESIZE_POINT_WIDTH/2,y:no.y+uo+BBOX_PADDING,cursor:"s-resize",onMouseDown:bo},"s-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:no.x-BBOX_PADDING,y:no.y+uo+BBOX_PADDING,cursor:"sw-resize",onMouseDown:xo},"sw-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:no.x-BBOX_PADDING,y:no.y+uo/2-RESIZE_POINT_HEIGHT/2,cursor:"w-resize",onMouseDown:_o},"w-resize")]})},GraphOneNodePorts=eo=>{const{data:to,node:ro,getPortAriaLabel:no,eventChannel:oo,viewport:io,graphId:so}=eo,ao=useGraphConfig(),lo=ro.ports;if(!lo)return null;const uo=(co,fo)=>ho=>{ho.persist(),oo.trigger({type:co,node:ro,port:fo,rawEvent:ho})};return jsxRuntimeExports.jsx("g",{children:lo.map(co=>{var fo;const ho=ao.getPortConfig(co);if(!ho||!ho.render)return Debug.warn(`invalid port config ${ro.id}:${ro.name} - ${co.id}:${co.name}`),null;const po=ro.getPortPosition(co.id,ao);if(!po)return null;const go=getPortUid(so,ro,co),vo=(fo=co.automationId)!==null&&fo!==void 0?fo:getPortAutomationId(co,ro);return jsxRuntimeExports.jsx("g",Object.assign({id:go,tabIndex:0,focusable:"true",onPointerDown:uo(GraphPortEvent.PointerDown,co),onPointerUp:uo(GraphPortEvent.PointerUp,co),onDoubleClick:uo(GraphPortEvent.DoubleClick,co),onMouseDown:uo(GraphPortEvent.MouseDown,co),onMouseUp:uo(GraphPortEvent.MouseUp,co),onContextMenu:uo(GraphPortEvent.ContextMenu,co),onPointerEnter:uo(GraphPortEvent.PointerEnter,co),onPointerLeave:uo(GraphPortEvent.PointerLeave,co),onMouseMove:uo(GraphPortEvent.MouseMove,co),onMouseOver:uo(GraphPortEvent.MouseOver,co),onMouseOut:uo(GraphPortEvent.MouseOut,co),onFocus:uo(GraphPortEvent.Focus,co),onBlur:uo(GraphPortEvent.Blur,co),onKeyDown:uo(GraphPortEvent.KeyDown,co),onClick:uo(GraphPortEvent.Click,co),"aria-label":no(to,ro,co),role:"group","aria-roledescription":"port","data-automation-id":vo},{children:jsxRuntimeExports.jsx(ConnectingStateContext.Consumer,{children:({sourceNode:bo,sourcePort:xo})=>ho==null?void 0:ho.render(Object.assign({model:co,data:to,parentNode:ro,anotherNode:bo,anotherPort:xo,viewport:io},po))})}),go)})})},GraphNodeParts=eo=>{var{node:to,isNodeResizable:ro,renderNodeAnchors:no}=eo,oo=__rest(eo,["node","isNodeResizable","renderNodeAnchors"]);const io=useVirtualization(),{renderedArea:so,viewport:ao}=io,lo=useGetMouseDownOnAnchor(to,oo.eventChannel),uo=isPointInRect(so,to);if(reactExports.useLayoutEffect(()=>{uo&&io.renderedEdges.add(to.id)},[io]),!uo)return null;let co;if(ro&&isNodeEditing(to)){const fo=jsxRuntimeExports.jsx(GraphNodeAnchors,{node:to,getMouseDown:lo});co=no?no(to,lo,fo):fo}return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(GraphNode,Object.assign({},oo,{node:to,viewport:ao})),jsxRuntimeExports.jsx(GraphOneNodePorts,Object.assign({},oo,{node:to,viewport:ao})),co]})},GraphNodePartsMemo=reactExports.memo(GraphNodeParts),NodeTreeNode=reactExports.memo(eo=>{var{node:to}=eo,ro=__rest(eo,["node"]);const no=to.values.map(io=>{const so=io[1];return jsxRuntimeExports.jsx(GraphNodePartsMemo,Object.assign({node:so},ro),so.id)}),oo=to.type===NodeType$2.Internal?to.children.map((io,so)=>{const ao=soeo.node===to.node);NodeTreeNode.displayName="NodeTreeNode";const NodeTree=eo=>{var{tree:to}=eo,ro=__rest(eo,["tree"]);return jsxRuntimeExports.jsx(NodeTreeNode,Object.assign({node:to.sortedRoot},ro))},NodeLayers=({data:eo,renderTree:to})=>{const ro=new Set;return eo.nodes.forEach(no=>ro.add(no.layer)),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:Array.from(ro.values()).sort().map(no=>to(eo.nodes.filter(oo=>oo.layer===no),no))})},VirtualizationProvider=({viewport:eo,isVirtualizationEnabled:to,virtualizationDelay:ro,eventChannel:no,children:oo})=>{const io=useRenderedArea(eo,to),so=reactExports.useMemo(()=>getVisibleArea(eo),[eo]),ao=reactExports.useMemo(()=>({viewport:eo,renderedArea:io,visibleArea:so,renderedEdges:new Set,renderedNodes:new Set,timestamp:performance.now()}),[eo,io,so]),lo=useDeferredValue(ao,{timeout:ro}),uo=reactExports.useRef(lo);return reactExports.useEffect(()=>{const co=uo.current;uo.current=lo,no.trigger({type:GraphCanvasEvent.VirtualizationRecalculated,performanceStartTime:lo.timestamp,renderedNodes:co.renderedNodes,renderedEdges:co.renderedEdges,previousRenderedNodes:co.renderedNodes,previousRenderedEdges:co.renderedEdges})},[lo,no]),jsxRuntimeExports.jsx(VirtualizationContext.Provider,Object.assign({value:lo},{children:oo}))},getCursorStyle=({canvasMouseMode:eo,state:to,isPanDisabled:ro,isMultiSelecting:no})=>to.behavior===GraphBehavior.Connecting||["meta","control"].some(so=>to.activeKeys.has(so))?"initial":to.activeKeys.has("shift")?"crosshair":eo!==CanvasMouseMode.Pan?to.activeKeys.has(" ")&&!ro?"grab":no?"crosshair":"inherit":ro?"inherit":"grab";function getNodeCursor(eo){return eo?"move":"initial"}const getGraphStyles=(eo,to,ro,no,oo,io)=>{var so,ao;return mergeStyleSets({svg:["react-dag-editor-svg-container",styles$1.svg,(so=eo.styles)===null||so===void 0?void 0:so.svg,{"& *:focus":{outline:defaultColors.outlineStyle},[`& .${styles$1.node}`]:{cursor:getNodeCursor(no)}}],container:["react-dag-editor-container",styles$1.container,{cursor:getCursorStyle({canvasMouseMode:eo.canvasMouseMode,state:to,isPanDisabled:ro,isMultiSelecting:io}),[`&.${styles$1.container}`]:Object.assign(Object.assign({background:defaultColors.canvasBackground},eo.style),(ao=eo.styles)===null||ao===void 0?void 0:ao.root)},oo&&{outline:`${defaultColors.focusOutlineColor} solid 1px`}],buttonA11y:["react-dag-editor-a11y-help-button",styles$1.buttonA11Y],node:[styles$1.node]})};function Graph(eo){var to,ro,no,oo,io;const[so,ao]=reactExports.useState(!1),lo=useGraphController(),{state:uo,dispatch:co}=useGraphState(),fo=uo.data.present,{viewport:ho}=uo,{eventChannel:po}=lo,go=useConst(()=>`graph-${v4()}`),vo=reactExports.useRef(null),{focusCanvasAccessKey:bo="f",zoomSensitivity:xo=.1,scrollSensitivity:_o=.5,svgRef:Eo=vo,virtualizationDelay:So=500,background:To=null}=eo,wo=useGraphConfig(),Co=useFeatureControl(uo.settings.features),[Oo,Ao]=reactExports.useState(),[Ro,No]=reactExports.useState(void 0),Mo=reactExports.useRef(null),Do=reactExports.useRef(void 0),jo=useUpdateViewportCallback(Do,Eo,po);useEventChannel({props:eo,dispatch:co,rectRef:Do,svgRef:Eo,setFocusedWithoutMouse:ao,containerRef:Mo,featureControl:Co,graphConfig:wo,setCurHoverNode:Ao,setCurHoverPort:No,updateViewport:jo,eventChannel:po,graphController:lo}),useContainerRect(uo,Eo,Mo,jo);const{isNodesDraggable:Fo,isNodeResizable:$o,isPanDisabled:Lo,isMultiSelectDisabled:Ho,isLassoSelectEnable:qo,isNodeEditDisabled:Uo,isVerticalScrollDisabled:Yo,isHorizontalScrollDisabled:Zo,isA11yEnable:_s,isCtrlKeyZoomEnable:Ss,isVirtualizationEnabled:As,isScrollbarVisible:Ns}=Co;useSelectBox(co,uo.selectBoxPosition);const ws=Xs=>$a=>{$a.persist(),po.trigger({type:Xs,rawEvent:$a})},Ds=getGraphStyles(eo,uo,Lo,Fo,so,uo.behavior===GraphBehavior.MultiSelect);useWheelHandler({containerRef:Mo,svgRef:Eo,rectRef:Do,zoomSensitivity:xo,scrollSensitivity:_o,dispatch:co,isHorizontalScrollDisabled:Zo,isVerticalScrollDisabled:Yo,isCtrlKeyZoomEnable:Ss,eventChannel:po,graphConfig:wo});const Jo=reactExports.useCallback(Xs=>{Xs.preventDefault(),Xs.stopPropagation(),po.trigger({type:GraphContextMenuEvent.Close}),Eo.current&&Eo.current.focus({preventScroll:!0})},[po,Eo]),Cs=reactExports.useCallback(()=>{ao(!0),Eo.current&&Eo.current.focus({preventScroll:!0})},[Eo]);useSafariScale({rectRef:Do,svgRef:Eo,eventChannel:po});const Bs=_s?bo:void 0,zs=useGraphTouchHandler(Do,po),Ls=reactExports.useCallback((Xs,$a)=>{var Ll,Kl;return jsxRuntimeExports.jsx(NodeTree,{graphId:go,isNodeResizable:$o,tree:Xs,data:fo,isNodeEditDisabled:Uo,eventChannel:po,getNodeAriaLabel:(Ll=eo.getNodeAriaLabel)!==null&&Ll!==void 0?Ll:defaultGetNodeAriaLabel,getPortAriaLabel:(Kl=eo.getPortAriaLabel)!==null&&Kl!==void 0?Kl:defaultGetPortAriaLabel,renderNodeAnchors:eo.renderNodeAnchors},$a)},[fo,po,go,Uo,$o,eo.getNodeAriaLabel,eo.getPortAriaLabel,eo.renderNodeAnchors]);if(!isSupported()){const{onBrowserNotSupported:Xs=()=>jsxRuntimeExports.jsx("p",{children:"Your browser is not supported"})}=eo;return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:Xs()})}const ga=()=>{if(!Ro||!isViewportComplete(uo.viewport))return null;const[Xs,$a]=Ro,Ll=fo.nodes.get(Xs);if(!Ll)return null;const Kl=Ll.getPort($a);return Kl?jsxRuntimeExports.jsx(PortTooltips,{port:Kl,parentNode:Ll,data:fo,viewport:uo.viewport}):null},Js=()=>{var Xs;return!Oo||!isViewportComplete(uo.viewport)||uo.contextMenuPosition&&Oo===((Xs=uo.data.present.nodes.find(isSelected))===null||Xs===void 0?void 0:Xs.id)?null:jsxRuntimeExports.jsx(NodeTooltips,{node:fo.nodes.get(Oo),viewport:uo.viewport})};return jsxRuntimeExports.jsxs("div",Object.assign({ref:Mo,role:"application",id:go,className:Ds.container},zs,{onDoubleClick:ws(GraphCanvasEvent.DoubleClick),onMouseDown:ws(GraphCanvasEvent.MouseDown),onMouseUp:ws(GraphCanvasEvent.MouseUp),onContextMenu:ws(GraphCanvasEvent.ContextMenu),onMouseMove:ws(GraphCanvasEvent.MouseMove),onMouseOver:ws(GraphCanvasEvent.MouseOver),onMouseOut:ws(GraphCanvasEvent.MouseOut),onFocus:ws(GraphCanvasEvent.Focus),onBlur:ws(GraphCanvasEvent.Blur),onKeyDown:ws(GraphCanvasEvent.KeyDown),onKeyUp:ws(GraphCanvasEvent.KeyUp)},{children:[jsxRuntimeExports.jsx("button",{className:Ds.buttonA11y,onClick:Cs,accessKey:Bs,hidden:!0}),jsxRuntimeExports.jsxs("svg",Object.assign({tabIndex:0,focusable:"true",preserveAspectRatio:"xMidYMid meet",ref:Eo,className:Ds.svg,"data-graph-id":go},{children:[jsxRuntimeExports.jsx("title",{children:eo.title}),jsxRuntimeExports.jsx("desc",{children:eo.desc}),jsxRuntimeExports.jsxs(Transform,Object.assign({matrix:ho.transformMatrix},{children:[uo.viewport.rect&&jsxRuntimeExports.jsxs(VirtualizationProvider,Object.assign({viewport:uo.viewport,isVirtualizationEnabled:As,virtualizationDelay:So,eventChannel:po},{children:[To,jsxRuntimeExports.jsx(GraphGroupsRenderer,{data:fo,groups:(to=fo.groups)!==null&&to!==void 0?to:constantEmptyArray()}),jsxRuntimeExports.jsx(EdgeTree,{graphId:go,tree:fo.edges,data:fo,eventChannel:po}),jsxRuntimeExports.jsx(NodeLayers,{data:fo,renderTree:Ls})]})),uo.dummyNodes.isVisible&&jsxRuntimeExports.jsx(AnimatingNodeGroup,{dummyNodes:uo.dummyNodes,graphData:uo.data.present}),jsxRuntimeExports.jsx(AlignmentLines,{style:(ro=eo.styles)===null||ro===void 0?void 0:ro.alignmentLine})]})),(!Ho||qo)&&jsxRuntimeExports.jsx(SelectBox,{selectBoxPosition:uo.selectBoxPosition,style:(no=eo.styles)===null||no===void 0?void 0:no.selectBox}),uo.connectState&&jsxRuntimeExports.jsx(Connecting,{graphConfig:wo,eventChannel:po,viewport:uo.viewport,styles:(oo=eo.styles)===null||oo===void 0?void 0:oo.connectingLine,movingPoint:uo.connectState.movingPoint})]})),Ns&&isViewportComplete(uo.viewport)&&jsxRuntimeExports.jsx(Scrollbar,{viewport:uo.viewport,offsetLimit:getOffsetLimit({data:fo,graphConfig:wo,rect:uo.viewport.rect,transformMatrix:ho.transformMatrix,canvasBoundaryPadding:uo.settings.canvasBoundaryPadding,groupPadding:(io=fo.groups[0])===null||io===void 0?void 0:io.padding}),dispatch:co,horizontal:!Zo,vertical:!Yo,eventChannel:po}),jsxRuntimeExports.jsx(GraphContextMenu,{state:uo,onClick:Jo,"data-automation-id":"context-menu-container"}),Js(),ga()]}))}const el=document.createElement("div");document.body.appendChild(el);const StaticNode=eo=>{const{node:to}=eo,ro=useGraphConfig(),no=getNodeConfig(to,ro);if(no!=null&&no.renderStatic)return jsxRuntimeExports.jsx("g",{children:no.renderStatic({model:to})});const oo=getRectHeight(no,to),io=getRectWidth(no,to);return jsxRuntimeExports.jsx("rect",{transform:`translate(${to.x}, ${to.y})`,height:oo,width:io,fill:defaultColors.dummyNodeStroke})},StaticNodeWithMemo=reactExports.memo(StaticNode,(eo,to)=>{const ro=eo.node,no=to.node;return ro.x===no.x&&ro.y===no.y&&ro.height===no.height&&ro.width===no.width&&ro.isInSearchResults===no.isInSearchResults&&ro.isCurrentSearchResult===no.isCurrentSearchResult}),ReadonlyNodeTreeNode=reactExports.memo(({node:eo})=>{const to=eo.values.map(no=>jsxRuntimeExports.jsx(StaticNodeWithMemo,{node:no[1]},no[1].id)),ro=eo.type===NodeType$2.Internal?eo.children.map((no,oo)=>{const io=oo>>0;if(""+ro!==to||ro===4294967295)return NaN;to=ro}return to<0?ensureSize(eo)+to:to}function returnTrue(){return!0}function wholeSlice(eo,to,ro){return(eo===0&&!isNeg(eo)||ro!==void 0&&eo<=-ro)&&(to===void 0||ro!==void 0&&to>=ro)}function resolveBegin(eo,to){return resolveIndex(eo,to,0)}function resolveEnd(eo,to){return resolveIndex(eo,to,to)}function resolveIndex(eo,to,ro){return eo===void 0?ro:isNeg(eo)?to===1/0?to:Math.max(0,to+eo)|0:to===void 0||to===eo?eo:Math.min(to,eo)|0}function isNeg(eo){return eo<0||eo===0&&1/eo===-1/0}var IS_COLLECTION_SYMBOL="@@__IMMUTABLE_ITERABLE__@@";function isCollection(eo){return!!(eo&&eo[IS_COLLECTION_SYMBOL])}var IS_KEYED_SYMBOL="@@__IMMUTABLE_KEYED__@@";function isKeyed(eo){return!!(eo&&eo[IS_KEYED_SYMBOL])}var IS_INDEXED_SYMBOL="@@__IMMUTABLE_INDEXED__@@";function isIndexed(eo){return!!(eo&&eo[IS_INDEXED_SYMBOL])}function isAssociative(eo){return isKeyed(eo)||isIndexed(eo)}var Collection$1=function(to){return isCollection(to)?to:Seq(to)},KeyedCollection=function(eo){function to(ro){return isKeyed(ro)?ro:KeyedSeq(ro)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to}(Collection$1),IndexedCollection=function(eo){function to(ro){return isIndexed(ro)?ro:IndexedSeq(ro)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to}(Collection$1),SetCollection=function(eo){function to(ro){return isCollection(ro)&&!isAssociative(ro)?ro:SetSeq(ro)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to}(Collection$1);Collection$1.Keyed=KeyedCollection;Collection$1.Indexed=IndexedCollection;Collection$1.Set=SetCollection;var IS_SEQ_SYMBOL="@@__IMMUTABLE_SEQ__@@";function isSeq(eo){return!!(eo&&eo[IS_SEQ_SYMBOL])}var IS_RECORD_SYMBOL="@@__IMMUTABLE_RECORD__@@";function isRecord(eo){return!!(eo&&eo[IS_RECORD_SYMBOL])}function isImmutable(eo){return isCollection(eo)||isRecord(eo)}var IS_ORDERED_SYMBOL="@@__IMMUTABLE_ORDERED__@@";function isOrdered(eo){return!!(eo&&eo[IS_ORDERED_SYMBOL])}var ITERATE_KEYS=0,ITERATE_VALUES=1,ITERATE_ENTRIES=2,REAL_ITERATOR_SYMBOL=typeof Symbol=="function"&&Symbol.iterator,FAUX_ITERATOR_SYMBOL="@@iterator",ITERATOR_SYMBOL=REAL_ITERATOR_SYMBOL||FAUX_ITERATOR_SYMBOL,Iterator=function(to){this.next=to};Iterator.prototype.toString=function(){return"[Iterator]"};Iterator.KEYS=ITERATE_KEYS;Iterator.VALUES=ITERATE_VALUES;Iterator.ENTRIES=ITERATE_ENTRIES;Iterator.prototype.inspect=Iterator.prototype.toSource=function(){return this.toString()};Iterator.prototype[ITERATOR_SYMBOL]=function(){return this};function iteratorValue(eo,to,ro,no){var oo=eo===0?to:eo===1?ro:[to,ro];return no?no.value=oo:no={value:oo,done:!1},no}function iteratorDone(){return{value:void 0,done:!0}}function hasIterator(eo){return Array.isArray(eo)?!0:!!getIteratorFn(eo)}function isIterator(eo){return eo&&typeof eo.next=="function"}function getIterator(eo){var to=getIteratorFn(eo);return to&&to.call(eo)}function getIteratorFn(eo){var to=eo&&(REAL_ITERATOR_SYMBOL&&eo[REAL_ITERATOR_SYMBOL]||eo[FAUX_ITERATOR_SYMBOL]);if(typeof to=="function")return to}function isEntriesIterable(eo){var to=getIteratorFn(eo);return to&&to===eo.entries}function isKeysIterable(eo){var to=getIteratorFn(eo);return to&&to===eo.keys}var hasOwnProperty$1=Object.prototype.hasOwnProperty;function isArrayLike$1(eo){return Array.isArray(eo)||typeof eo=="string"?!0:eo&&typeof eo=="object"&&Number.isInteger(eo.length)&&eo.length>=0&&(eo.length===0?Object.keys(eo).length===1:eo.hasOwnProperty(eo.length-1))}var Seq=function(eo){function to(ro){return ro==null?emptySequence():isImmutable(ro)?ro.toSeq():seqFromValue(ro)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.toSeq=function(){return this},to.prototype.toString=function(){return this.__toString("Seq {","}")},to.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},to.prototype.__iterate=function(no,oo){var io=this._cache;if(io){for(var so=io.length,ao=0;ao!==so;){var lo=io[oo?so-++ao:ao++];if(no(lo[1],lo[0],this)===!1)break}return ao}return this.__iterateUncached(no,oo)},to.prototype.__iterator=function(no,oo){var io=this._cache;if(io){var so=io.length,ao=0;return new Iterator(function(){if(ao===so)return iteratorDone();var lo=io[oo?so-++ao:ao++];return iteratorValue(no,lo[0],lo[1])})}return this.__iteratorUncached(no,oo)},to}(Collection$1),KeyedSeq=function(eo){function to(ro){return ro==null?emptySequence().toKeyedSeq():isCollection(ro)?isKeyed(ro)?ro.toSeq():ro.fromEntrySeq():isRecord(ro)?ro.toSeq():keyedSeqFromValue(ro)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.toKeyedSeq=function(){return this},to}(Seq),IndexedSeq=function(eo){function to(ro){return ro==null?emptySequence():isCollection(ro)?isKeyed(ro)?ro.entrySeq():ro.toIndexedSeq():isRecord(ro)?ro.toSeq().entrySeq():indexedSeqFromValue(ro)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.of=function(){return to(arguments)},to.prototype.toIndexedSeq=function(){return this},to.prototype.toString=function(){return this.__toString("Seq [","]")},to}(Seq),SetSeq=function(eo){function to(ro){return(isCollection(ro)&&!isAssociative(ro)?ro:IndexedSeq(ro)).toSetSeq()}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.of=function(){return to(arguments)},to.prototype.toSetSeq=function(){return this},to}(Seq);Seq.isSeq=isSeq;Seq.Keyed=KeyedSeq;Seq.Set=SetSeq;Seq.Indexed=IndexedSeq;Seq.prototype[IS_SEQ_SYMBOL]=!0;var ArraySeq=function(eo){function to(ro){this._array=ro,this.size=ro.length}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.get=function(no,oo){return this.has(no)?this._array[wrapIndex(this,no)]:oo},to.prototype.__iterate=function(no,oo){for(var io=this._array,so=io.length,ao=0;ao!==so;){var lo=oo?so-++ao:ao++;if(no(io[lo],lo,this)===!1)break}return ao},to.prototype.__iterator=function(no,oo){var io=this._array,so=io.length,ao=0;return new Iterator(function(){if(ao===so)return iteratorDone();var lo=oo?so-++ao:ao++;return iteratorValue(no,lo,io[lo])})},to}(IndexedSeq),ObjectSeq=function(eo){function to(ro){var no=Object.keys(ro).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(ro):[]);this._object=ro,this._keys=no,this.size=no.length}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.get=function(no,oo){return oo!==void 0&&!this.has(no)?oo:this._object[no]},to.prototype.has=function(no){return hasOwnProperty$1.call(this._object,no)},to.prototype.__iterate=function(no,oo){for(var io=this._object,so=this._keys,ao=so.length,lo=0;lo!==ao;){var uo=so[oo?ao-++lo:lo++];if(no(io[uo],uo,this)===!1)break}return lo},to.prototype.__iterator=function(no,oo){var io=this._object,so=this._keys,ao=so.length,lo=0;return new Iterator(function(){if(lo===ao)return iteratorDone();var uo=so[oo?ao-++lo:lo++];return iteratorValue(no,uo,io[uo])})},to}(KeyedSeq);ObjectSeq.prototype[IS_ORDERED_SYMBOL]=!0;var CollectionSeq=function(eo){function to(ro){this._collection=ro,this.size=ro.length||ro.size}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.__iterateUncached=function(no,oo){if(oo)return this.cacheResult().__iterate(no,oo);var io=this._collection,so=getIterator(io),ao=0;if(isIterator(so))for(var lo;!(lo=so.next()).done&&no(lo.value,ao++,this)!==!1;);return ao},to.prototype.__iteratorUncached=function(no,oo){if(oo)return this.cacheResult().__iterator(no,oo);var io=this._collection,so=getIterator(io);if(!isIterator(so))return new Iterator(iteratorDone);var ao=0;return new Iterator(function(){var lo=so.next();return lo.done?lo:iteratorValue(no,ao++,lo.value)})},to}(IndexedSeq),EMPTY_SEQ;function emptySequence(){return EMPTY_SEQ||(EMPTY_SEQ=new ArraySeq([]))}function keyedSeqFromValue(eo){var to=maybeIndexedSeqFromValue(eo);if(to)return to.fromEntrySeq();if(typeof eo=="object")return new ObjectSeq(eo);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+eo)}function indexedSeqFromValue(eo){var to=maybeIndexedSeqFromValue(eo);if(to)return to;throw new TypeError("Expected Array or collection object of values: "+eo)}function seqFromValue(eo){var to=maybeIndexedSeqFromValue(eo);if(to)return isEntriesIterable(eo)?to.fromEntrySeq():isKeysIterable(eo)?to.toSetSeq():to;if(typeof eo=="object")return new ObjectSeq(eo);throw new TypeError("Expected Array or collection object of values, or keyed object: "+eo)}function maybeIndexedSeqFromValue(eo){return isArrayLike$1(eo)?new ArraySeq(eo):hasIterator(eo)?new CollectionSeq(eo):void 0}var IS_MAP_SYMBOL="@@__IMMUTABLE_MAP__@@";function isMap(eo){return!!(eo&&eo[IS_MAP_SYMBOL])}function isOrderedMap(eo){return isMap(eo)&&isOrdered(eo)}function isValueObject(eo){return!!(eo&&typeof eo.equals=="function"&&typeof eo.hashCode=="function")}function is$1(eo,to){if(eo===to||eo!==eo&&to!==to)return!0;if(!eo||!to)return!1;if(typeof eo.valueOf=="function"&&typeof to.valueOf=="function"){if(eo=eo.valueOf(),to=to.valueOf(),eo===to||eo!==eo&&to!==to)return!0;if(!eo||!to)return!1}return!!(isValueObject(eo)&&isValueObject(to)&&eo.equals(to))}var imul=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(to,ro){to|=0,ro|=0;var no=to&65535,oo=ro&65535;return no*oo+((to>>>16)*oo+no*(ro>>>16)<<16>>>0)|0};function smi(eo){return eo>>>1&1073741824|eo&3221225471}var defaultValueOf=Object.prototype.valueOf;function hash$2(eo){if(eo==null)return hashNullish(eo);if(typeof eo.hashCode=="function")return smi(eo.hashCode(eo));var to=valueOf(eo);if(to==null)return hashNullish(to);switch(typeof to){case"boolean":return to?1108378657:1108378656;case"number":return hashNumber(to);case"string":return to.length>STRING_HASH_CACHE_MIN_STRLEN?cachedHashString(to):hashString(to);case"object":case"function":return hashJSObj(to);case"symbol":return hashSymbol(to);default:if(typeof to.toString=="function")return hashString(to.toString());throw new Error("Value type "+typeof to+" cannot be hashed.")}}function hashNullish(eo){return eo===null?1108378658:1108378659}function hashNumber(eo){if(eo!==eo||eo===1/0)return 0;var to=eo|0;for(to!==eo&&(to^=eo*4294967295);eo>4294967295;)eo/=4294967295,to^=eo;return smi(to)}function cachedHashString(eo){var to=stringHashCache[eo];return to===void 0&&(to=hashString(eo),STRING_HASH_CACHE_SIZE===STRING_HASH_CACHE_MAX_SIZE&&(STRING_HASH_CACHE_SIZE=0,stringHashCache={}),STRING_HASH_CACHE_SIZE++,stringHashCache[eo]=to),to}function hashString(eo){for(var to=0,ro=0;ro0)switch(eo.nodeType){case 1:return eo.uniqueID;case 9:return eo.documentElement&&eo.documentElement.uniqueID}}function valueOf(eo){return eo.valueOf!==defaultValueOf&&typeof eo.valueOf=="function"?eo.valueOf(eo):eo}function nextHash(){var eo=++_objHashUID;return _objHashUID&1073741824&&(_objHashUID=0),eo}var usingWeakMap=typeof WeakMap=="function",weakMap;usingWeakMap&&(weakMap=new WeakMap);var symbolMap=Object.create(null),_objHashUID=0,UID_HASH_KEY="__immutablehash__";typeof Symbol=="function"&&(UID_HASH_KEY=Symbol(UID_HASH_KEY));var STRING_HASH_CACHE_MIN_STRLEN=16,STRING_HASH_CACHE_MAX_SIZE=255,STRING_HASH_CACHE_SIZE=0,stringHashCache={},ToKeyedSequence=function(eo){function to(ro,no){this._iter=ro,this._useKeys=no,this.size=ro.size}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.get=function(no,oo){return this._iter.get(no,oo)},to.prototype.has=function(no){return this._iter.has(no)},to.prototype.valueSeq=function(){return this._iter.valueSeq()},to.prototype.reverse=function(){var no=this,oo=reverseFactory(this,!0);return this._useKeys||(oo.valueSeq=function(){return no._iter.toSeq().reverse()}),oo},to.prototype.map=function(no,oo){var io=this,so=mapFactory(this,no,oo);return this._useKeys||(so.valueSeq=function(){return io._iter.toSeq().map(no,oo)}),so},to.prototype.__iterate=function(no,oo){var io=this;return this._iter.__iterate(function(so,ao){return no(so,ao,io)},oo)},to.prototype.__iterator=function(no,oo){return this._iter.__iterator(no,oo)},to}(KeyedSeq);ToKeyedSequence.prototype[IS_ORDERED_SYMBOL]=!0;var ToIndexedSequence=function(eo){function to(ro){this._iter=ro,this.size=ro.size}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.includes=function(no){return this._iter.includes(no)},to.prototype.__iterate=function(no,oo){var io=this,so=0;return oo&&ensureSize(this),this._iter.__iterate(function(ao){return no(ao,oo?io.size-++so:so++,io)},oo)},to.prototype.__iterator=function(no,oo){var io=this,so=this._iter.__iterator(ITERATE_VALUES,oo),ao=0;return oo&&ensureSize(this),new Iterator(function(){var lo=so.next();return lo.done?lo:iteratorValue(no,oo?io.size-++ao:ao++,lo.value,lo)})},to}(IndexedSeq),ToSetSequence=function(eo){function to(ro){this._iter=ro,this.size=ro.size}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.has=function(no){return this._iter.includes(no)},to.prototype.__iterate=function(no,oo){var io=this;return this._iter.__iterate(function(so){return no(so,so,io)},oo)},to.prototype.__iterator=function(no,oo){var io=this._iter.__iterator(ITERATE_VALUES,oo);return new Iterator(function(){var so=io.next();return so.done?so:iteratorValue(no,so.value,so.value,so)})},to}(SetSeq),FromEntriesSequence=function(eo){function to(ro){this._iter=ro,this.size=ro.size}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.entrySeq=function(){return this._iter.toSeq()},to.prototype.__iterate=function(no,oo){var io=this;return this._iter.__iterate(function(so){if(so){validateEntry(so);var ao=isCollection(so);return no(ao?so.get(1):so[1],ao?so.get(0):so[0],io)}},oo)},to.prototype.__iterator=function(no,oo){var io=this._iter.__iterator(ITERATE_VALUES,oo);return new Iterator(function(){for(;;){var so=io.next();if(so.done)return so;var ao=so.value;if(ao){validateEntry(ao);var lo=isCollection(ao);return iteratorValue(no,lo?ao.get(0):ao[0],lo?ao.get(1):ao[1],so)}}})},to}(KeyedSeq);ToIndexedSequence.prototype.cacheResult=ToKeyedSequence.prototype.cacheResult=ToSetSequence.prototype.cacheResult=FromEntriesSequence.prototype.cacheResult=cacheResultThrough;function flipFactory(eo){var to=makeSequence(eo);return to._iter=eo,to.size=eo.size,to.flip=function(){return eo},to.reverse=function(){var ro=eo.reverse.apply(this);return ro.flip=function(){return eo.reverse()},ro},to.has=function(ro){return eo.includes(ro)},to.includes=function(ro){return eo.has(ro)},to.cacheResult=cacheResultThrough,to.__iterateUncached=function(ro,no){var oo=this;return eo.__iterate(function(io,so){return ro(so,io,oo)!==!1},no)},to.__iteratorUncached=function(ro,no){if(ro===ITERATE_ENTRIES){var oo=eo.__iterator(ro,no);return new Iterator(function(){var io=oo.next();if(!io.done){var so=io.value[0];io.value[0]=io.value[1],io.value[1]=so}return io})}return eo.__iterator(ro===ITERATE_VALUES?ITERATE_KEYS:ITERATE_VALUES,no)},to}function mapFactory(eo,to,ro){var no=makeSequence(eo);return no.size=eo.size,no.has=function(oo){return eo.has(oo)},no.get=function(oo,io){var so=eo.get(oo,NOT_SET);return so===NOT_SET?io:to.call(ro,so,oo,eo)},no.__iterateUncached=function(oo,io){var so=this;return eo.__iterate(function(ao,lo,uo){return oo(to.call(ro,ao,lo,uo),lo,so)!==!1},io)},no.__iteratorUncached=function(oo,io){var so=eo.__iterator(ITERATE_ENTRIES,io);return new Iterator(function(){var ao=so.next();if(ao.done)return ao;var lo=ao.value,uo=lo[0];return iteratorValue(oo,uo,to.call(ro,lo[1],uo,eo),ao)})},no}function reverseFactory(eo,to){var ro=this,no=makeSequence(eo);return no._iter=eo,no.size=eo.size,no.reverse=function(){return eo},eo.flip&&(no.flip=function(){var oo=flipFactory(eo);return oo.reverse=function(){return eo.flip()},oo}),no.get=function(oo,io){return eo.get(to?oo:-1-oo,io)},no.has=function(oo){return eo.has(to?oo:-1-oo)},no.includes=function(oo){return eo.includes(oo)},no.cacheResult=cacheResultThrough,no.__iterate=function(oo,io){var so=this,ao=0;return io&&ensureSize(eo),eo.__iterate(function(lo,uo){return oo(lo,to?uo:io?so.size-++ao:ao++,so)},!io)},no.__iterator=function(oo,io){var so=0;io&&ensureSize(eo);var ao=eo.__iterator(ITERATE_ENTRIES,!io);return new Iterator(function(){var lo=ao.next();if(lo.done)return lo;var uo=lo.value;return iteratorValue(oo,to?uo[0]:io?ro.size-++so:so++,uo[1],lo)})},no}function filterFactory(eo,to,ro,no){var oo=makeSequence(eo);return no&&(oo.has=function(io){var so=eo.get(io,NOT_SET);return so!==NOT_SET&&!!to.call(ro,so,io,eo)},oo.get=function(io,so){var ao=eo.get(io,NOT_SET);return ao!==NOT_SET&&to.call(ro,ao,io,eo)?ao:so}),oo.__iterateUncached=function(io,so){var ao=this,lo=0;return eo.__iterate(function(uo,co,fo){if(to.call(ro,uo,co,fo))return lo++,io(uo,no?co:lo-1,ao)},so),lo},oo.__iteratorUncached=function(io,so){var ao=eo.__iterator(ITERATE_ENTRIES,so),lo=0;return new Iterator(function(){for(;;){var uo=ao.next();if(uo.done)return uo;var co=uo.value,fo=co[0],ho=co[1];if(to.call(ro,ho,fo,eo))return iteratorValue(io,no?fo:lo++,ho,uo)}})},oo}function countByFactory(eo,to,ro){var no=Map$1().asMutable();return eo.__iterate(function(oo,io){no.update(to.call(ro,oo,io,eo),0,function(so){return so+1})}),no.asImmutable()}function groupByFactory(eo,to,ro){var no=isKeyed(eo),oo=(isOrdered(eo)?OrderedMap():Map$1()).asMutable();eo.__iterate(function(so,ao){oo.update(to.call(ro,so,ao,eo),function(lo){return lo=lo||[],lo.push(no?[ao,so]:so),lo})});var io=collectionClass(eo);return oo.map(function(so){return reify(eo,io(so))}).asImmutable()}function partitionFactory(eo,to,ro){var no=isKeyed(eo),oo=[[],[]];eo.__iterate(function(so,ao){oo[to.call(ro,so,ao,eo)?1:0].push(no?[ao,so]:so)});var io=collectionClass(eo);return oo.map(function(so){return reify(eo,io(so))})}function sliceFactory(eo,to,ro,no){var oo=eo.size;if(wholeSlice(to,ro,oo))return eo;var io=resolveBegin(to,oo),so=resolveEnd(ro,oo);if(io!==io||so!==so)return sliceFactory(eo.toSeq().cacheResult(),to,ro,no);var ao=so-io,lo;ao===ao&&(lo=ao<0?0:ao);var uo=makeSequence(eo);return uo.size=lo===0?lo:eo.size&&lo||void 0,!no&&isSeq(eo)&&lo>=0&&(uo.get=function(co,fo){return co=wrapIndex(this,co),co>=0&&colo)return iteratorDone();var vo=ho.next();return no||co===ITERATE_VALUES||vo.done?vo:co===ITERATE_KEYS?iteratorValue(co,go-1,void 0,vo):iteratorValue(co,go-1,vo.value[1],vo)})},uo}function takeWhileFactory(eo,to,ro){var no=makeSequence(eo);return no.__iterateUncached=function(oo,io){var so=this;if(io)return this.cacheResult().__iterate(oo,io);var ao=0;return eo.__iterate(function(lo,uo,co){return to.call(ro,lo,uo,co)&&++ao&&oo(lo,uo,so)}),ao},no.__iteratorUncached=function(oo,io){var so=this;if(io)return this.cacheResult().__iterator(oo,io);var ao=eo.__iterator(ITERATE_ENTRIES,io),lo=!0;return new Iterator(function(){if(!lo)return iteratorDone();var uo=ao.next();if(uo.done)return uo;var co=uo.value,fo=co[0],ho=co[1];return to.call(ro,ho,fo,so)?oo===ITERATE_ENTRIES?uo:iteratorValue(oo,fo,ho,uo):(lo=!1,iteratorDone())})},no}function skipWhileFactory(eo,to,ro,no){var oo=makeSequence(eo);return oo.__iterateUncached=function(io,so){var ao=this;if(so)return this.cacheResult().__iterate(io,so);var lo=!0,uo=0;return eo.__iterate(function(co,fo,ho){if(!(lo&&(lo=to.call(ro,co,fo,ho))))return uo++,io(co,no?fo:uo-1,ao)}),uo},oo.__iteratorUncached=function(io,so){var ao=this;if(so)return this.cacheResult().__iterator(io,so);var lo=eo.__iterator(ITERATE_ENTRIES,so),uo=!0,co=0;return new Iterator(function(){var fo,ho,po;do{if(fo=lo.next(),fo.done)return no||io===ITERATE_VALUES?fo:io===ITERATE_KEYS?iteratorValue(io,co++,void 0,fo):iteratorValue(io,co++,fo.value[1],fo);var go=fo.value;ho=go[0],po=go[1],uo&&(uo=to.call(ro,po,ho,ao))}while(uo);return io===ITERATE_ENTRIES?fo:iteratorValue(io,ho,po,fo)})},oo}function concatFactory(eo,to){var ro=isKeyed(eo),no=[eo].concat(to).map(function(so){return isCollection(so)?ro&&(so=KeyedCollection(so)):so=ro?keyedSeqFromValue(so):indexedSeqFromValue(Array.isArray(so)?so:[so]),so}).filter(function(so){return so.size!==0});if(no.length===0)return eo;if(no.length===1){var oo=no[0];if(oo===eo||ro&&isKeyed(oo)||isIndexed(eo)&&isIndexed(oo))return oo}var io=new ArraySeq(no);return ro?io=io.toKeyedSeq():isIndexed(eo)||(io=io.toSetSeq()),io=io.flatten(!0),io.size=no.reduce(function(so,ao){if(so!==void 0){var lo=ao.size;if(lo!==void 0)return so+lo}},0),io}function flattenFactory(eo,to,ro){var no=makeSequence(eo);return no.__iterateUncached=function(oo,io){if(io)return this.cacheResult().__iterate(oo,io);var so=0,ao=!1;function lo(uo,co){uo.__iterate(function(fo,ho){return(!to||co0}function zipWithFactory(eo,to,ro,no){var oo=makeSequence(eo),io=new ArraySeq(ro).map(function(so){return so.size});return oo.size=no?io.max():io.min(),oo.__iterate=function(so,ao){for(var lo=this.__iterator(ITERATE_VALUES,ao),uo,co=0;!(uo=lo.next()).done&&so(uo.value,co++,this)!==!1;);return co},oo.__iteratorUncached=function(so,ao){var lo=ro.map(function(fo){return fo=Collection$1(fo),getIterator(ao?fo.reverse():fo)}),uo=0,co=!1;return new Iterator(function(){var fo;return co||(fo=lo.map(function(ho){return ho.next()}),co=no?fo.every(function(ho){return ho.done}):fo.some(function(ho){return ho.done})),co?iteratorDone():iteratorValue(so,uo++,to.apply(null,fo.map(function(ho){return ho.value})))})},oo}function reify(eo,to){return eo===to?eo:isSeq(eo)?to:eo.constructor(to)}function validateEntry(eo){if(eo!==Object(eo))throw new TypeError("Expected [K, V] tuple: "+eo)}function collectionClass(eo){return isKeyed(eo)?KeyedCollection:isIndexed(eo)?IndexedCollection:SetCollection}function makeSequence(eo){return Object.create((isKeyed(eo)?KeyedSeq:isIndexed(eo)?IndexedSeq:SetSeq).prototype)}function cacheResultThrough(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Seq.prototype.cacheResult.call(this)}function defaultComparator(eo,to){return eo===void 0&&to===void 0?0:eo===void 0?1:to===void 0?-1:eo>to?1:eo0;)to[ro]=arguments[ro+1];if(typeof eo!="function")throw new TypeError("Invalid merger function: "+eo);return mergeIntoKeyedWith(this,to,eo)}function mergeIntoKeyedWith(eo,to,ro){for(var no=[],oo=0;oo0;)to[ro]=arguments[ro+1];return mergeDeepWithSources(this,to,eo)}function mergeIn(eo){for(var to=[],ro=arguments.length-1;ro-- >0;)to[ro]=arguments[ro+1];return updateIn$1(this,eo,emptyMap(),function(no){return mergeWithSources(no,to)})}function mergeDeepIn(eo){for(var to=[],ro=arguments.length-1;ro-- >0;)to[ro]=arguments[ro+1];return updateIn$1(this,eo,emptyMap(),function(no){return mergeDeepWithSources(no,to)})}function withMutations(eo){var to=this.asMutable();return eo(to),to.wasAltered()?to.__ensureOwner(this.__ownerID):this}function asMutable(){return this.__ownerID?this:this.__ensureOwner(new OwnerID)}function asImmutable(){return this.__ensureOwner()}function wasAltered(){return this.__altered}var Map$1=function(eo){function to(ro){return ro==null?emptyMap():isMap(ro)&&!isOrdered(ro)?ro:emptyMap().withMutations(function(no){var oo=eo(ro);assertNotInfinite(oo.size),oo.forEach(function(io,so){return no.set(so,io)})})}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.of=function(){for(var no=[],oo=arguments.length;oo--;)no[oo]=arguments[oo];return emptyMap().withMutations(function(io){for(var so=0;so=no.length)throw new Error("Missing value for key: "+no[so]);io.set(no[so],no[so+1])}})},to.prototype.toString=function(){return this.__toString("Map {","}")},to.prototype.get=function(no,oo){return this._root?this._root.get(0,void 0,no,oo):oo},to.prototype.set=function(no,oo){return updateMap(this,no,oo)},to.prototype.remove=function(no){return updateMap(this,no,NOT_SET)},to.prototype.deleteAll=function(no){var oo=Collection$1(no);return oo.size===0?this:this.withMutations(function(io){oo.forEach(function(so){return io.remove(so)})})},to.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):emptyMap()},to.prototype.sort=function(no){return OrderedMap(sortFactory(this,no))},to.prototype.sortBy=function(no,oo){return OrderedMap(sortFactory(this,oo,no))},to.prototype.map=function(no,oo){var io=this;return this.withMutations(function(so){so.forEach(function(ao,lo){so.set(lo,no.call(oo,ao,lo,io))})})},to.prototype.__iterator=function(no,oo){return new MapIterator(this,no,oo)},to.prototype.__iterate=function(no,oo){var io=this,so=0;return this._root&&this._root.iterate(function(ao){return so++,no(ao[1],ao[0],io)},oo),so},to.prototype.__ensureOwner=function(no){return no===this.__ownerID?this:no?makeMap(this.size,this._root,no,this.__hash):this.size===0?emptyMap():(this.__ownerID=no,this.__altered=!1,this)},to}(KeyedCollection);Map$1.isMap=isMap;var MapPrototype=Map$1.prototype;MapPrototype[IS_MAP_SYMBOL]=!0;MapPrototype[DELETE]=MapPrototype.remove;MapPrototype.removeAll=MapPrototype.deleteAll;MapPrototype.setIn=setIn;MapPrototype.removeIn=MapPrototype.deleteIn=deleteIn;MapPrototype.update=update;MapPrototype.updateIn=updateIn;MapPrototype.merge=MapPrototype.concat=merge$1$1;MapPrototype.mergeWith=mergeWith$1;MapPrototype.mergeDeep=mergeDeep;MapPrototype.mergeDeepWith=mergeDeepWith;MapPrototype.mergeIn=mergeIn;MapPrototype.mergeDeepIn=mergeDeepIn;MapPrototype.withMutations=withMutations;MapPrototype.wasAltered=wasAltered;MapPrototype.asImmutable=asImmutable;MapPrototype["@@transducer/init"]=MapPrototype.asMutable=asMutable;MapPrototype["@@transducer/step"]=function(eo,to){return eo.set(to[0],to[1])};MapPrototype["@@transducer/result"]=function(eo){return eo.asImmutable()};var ArrayMapNode=function(to,ro){this.ownerID=to,this.entries=ro};ArrayMapNode.prototype.get=function(to,ro,no,oo){for(var io=this.entries,so=0,ao=io.length;so=MAX_ARRAY_MAP_SIZE)return createNodes(to,uo,oo,io);var po=to&&to===this.ownerID,go=po?uo:arrCopy(uo);return ho?lo?co===fo-1?go.pop():go[co]=go.pop():go[co]=[oo,io]:go.push([oo,io]),po?(this.entries=go,this):new ArrayMapNode(to,go)}};var BitmapIndexedNode=function(to,ro,no){this.ownerID=to,this.bitmap=ro,this.nodes=no};BitmapIndexedNode.prototype.get=function(to,ro,no,oo){ro===void 0&&(ro=hash$2(no));var io=1<<((to===0?ro:ro>>>to)&MASK),so=this.bitmap;return so&io?this.nodes[popCount(so&io-1)].get(to+SHIFT,ro,no,oo):oo};BitmapIndexedNode.prototype.update=function(to,ro,no,oo,io,so,ao){no===void 0&&(no=hash$2(oo));var lo=(ro===0?no:no>>>ro)&MASK,uo=1<=MAX_BITMAP_INDEXED_SIZE)return expandNodes(to,po,co,lo,vo);if(fo&&!vo&&po.length===2&&isLeafNode(po[ho^1]))return po[ho^1];if(fo&&vo&&po.length===1&&isLeafNode(vo))return vo;var bo=to&&to===this.ownerID,xo=fo?vo?co:co^uo:co|uo,_o=fo?vo?setAt(po,ho,vo,bo):spliceOut(po,ho,bo):spliceIn(po,ho,vo,bo);return bo?(this.bitmap=xo,this.nodes=_o,this):new BitmapIndexedNode(to,xo,_o)};var HashArrayMapNode=function(to,ro,no){this.ownerID=to,this.count=ro,this.nodes=no};HashArrayMapNode.prototype.get=function(to,ro,no,oo){ro===void 0&&(ro=hash$2(no));var io=(to===0?ro:ro>>>to)&MASK,so=this.nodes[io];return so?so.get(to+SHIFT,ro,no,oo):oo};HashArrayMapNode.prototype.update=function(to,ro,no,oo,io,so,ao){no===void 0&&(no=hash$2(oo));var lo=(ro===0?no:no>>>ro)&MASK,uo=io===NOT_SET,co=this.nodes,fo=co[lo];if(uo&&!fo)return this;var ho=updateNode(fo,to,ro+SHIFT,no,oo,io,so,ao);if(ho===fo)return this;var po=this.count;if(!fo)po++;else if(!ho&&(po--,po>>ro)&MASK,so=(ro===0?no:no>>>ro)&MASK,ao,lo=io===so?[mergeIntoNode(eo,to,ro+SHIFT,no,oo)]:(ao=new ValueNode(to,no,oo),io>>=1)so[ao]=ro&1?to[io++]:void 0;return so[no]=oo,new HashArrayMapNode(eo,io+1,so)}function popCount(eo){return eo-=eo>>1&1431655765,eo=(eo&858993459)+(eo>>2&858993459),eo=eo+(eo>>4)&252645135,eo+=eo>>8,eo+=eo>>16,eo&127}function setAt(eo,to,ro,no){var oo=no?eo:arrCopy(eo);return oo[to]=ro,oo}function spliceIn(eo,to,ro,no){var oo=eo.length+1;if(no&&to+1===oo)return eo[to]=ro,eo;for(var io=new Array(oo),so=0,ao=0;ao0&&io=0&&no>>ro&MASK;if(oo>=this.array.length)return new VNode([],to);var io=oo===0,so;if(ro>0){var ao=this.array[oo];if(so=ao&&ao.removeBefore(to,ro-SHIFT,no),so===ao&&io)return this}if(io&&!so)return this;var lo=editableVNode(this,to);if(!io)for(var uo=0;uo>>ro&MASK;if(oo>=this.array.length)return this;var io;if(ro>0){var so=this.array[oo];if(io=so&&so.removeAfter(to,ro-SHIFT,no),io===so&&oo===this.array.length-1)return this}var ao=editableVNode(this,to);return ao.array.splice(oo+1),io&&(ao.array[oo]=io),ao};var DONE={};function iterateList(eo,to){var ro=eo._origin,no=eo._capacity,oo=getTailOffset(no),io=eo._tail;return so(eo._root,eo._level,0);function so(uo,co,fo){return co===0?ao(uo,fo):lo(uo,co,fo)}function ao(uo,co){var fo=co===oo?io&&io.array:uo&&uo.array,ho=co>ro?0:ro-co,po=no-co;return po>SIZE&&(po=SIZE),function(){if(ho===po)return DONE;var go=to?--po:ho++;return fo&&fo[go]}}function lo(uo,co,fo){var ho,po=uo&&uo.array,go=fo>ro?0:ro-fo>>co,vo=(no-fo>>co)+1;return vo>SIZE&&(vo=SIZE),function(){for(;;){if(ho){var bo=ho();if(bo!==DONE)return bo;ho=null}if(go===vo)return DONE;var xo=to?--vo:go++;ho=so(po&&po[xo],co-SHIFT,fo+(xo<=eo.size||to<0)return eo.withMutations(function(so){to<0?setListBounds(so,to).set(0,ro):setListBounds(so,0,to+1).set(to,ro)});to+=eo._origin;var no=eo._tail,oo=eo._root,io=MakeRef();return to>=getTailOffset(eo._capacity)?no=updateVNode(no,eo.__ownerID,0,to,ro,io):oo=updateVNode(oo,eo.__ownerID,eo._level,to,ro,io),io.value?eo.__ownerID?(eo._root=oo,eo._tail=no,eo.__hash=void 0,eo.__altered=!0,eo):makeList(eo._origin,eo._capacity,eo._level,oo,no):eo}function updateVNode(eo,to,ro,no,oo,io){var so=no>>>ro&MASK,ao=eo&&so0){var uo=eo&&eo.array[so],co=updateVNode(uo,to,ro-SHIFT,no,oo,io);return co===uo?eo:(lo=editableVNode(eo,to),lo.array[so]=co,lo)}return ao&&eo.array[so]===oo?eo:(io&&SetRef(io),lo=editableVNode(eo,to),oo===void 0&&so===lo.array.length-1?lo.array.pop():lo.array[so]=oo,lo)}function editableVNode(eo,to){return to&&eo&&to===eo.ownerID?eo:new VNode(eo?eo.array.slice():[],to)}function listNodeFor(eo,to){if(to>=getTailOffset(eo._capacity))return eo._tail;if(to<1<0;)ro=ro.array[to>>>no&MASK],no-=SHIFT;return ro}}function setListBounds(eo,to,ro){to!==void 0&&(to|=0),ro!==void 0&&(ro|=0);var no=eo.__ownerID||new OwnerID,oo=eo._origin,io=eo._capacity,so=oo+to,ao=ro===void 0?io:ro<0?io+ro:oo+ro;if(so===oo&&ao===io)return eo;if(so>=ao)return eo.clear();for(var lo=eo._level,uo=eo._root,co=0;so+co<0;)uo=new VNode(uo&&uo.array.length?[void 0,uo]:[],no),lo+=SHIFT,co+=1<=1<fo?new VNode([],no):po;if(po&&ho>fo&&soSHIFT;bo-=SHIFT){var xo=fo>>>bo&MASK;vo=vo.array[xo]=editableVNode(vo.array[xo],no)}vo.array[fo>>>SHIFT&MASK]=po}if(ao=ho)so-=ho,ao-=ho,lo=SHIFT,uo=null,go=go&&go.removeBefore(no,0,so);else if(so>oo||ho>>lo&MASK;if(_o!==ho>>>lo&MASK)break;_o&&(co+=(1<oo&&(uo=uo.removeBefore(no,lo,so-co)),uo&&ho>>SHIFT<=SIZE&&oo.size>=no.size*2?(lo=oo.filter(function(uo,co){return uo!==void 0&&io!==co}),ao=lo.toKeyedSeq().map(function(uo){return uo[0]}).flip().toMap(),eo.__ownerID&&(ao.__ownerID=lo.__ownerID=eo.__ownerID)):(ao=no.remove(to),lo=io===oo.size-1?oo.pop():oo.set(io,void 0))}else if(so){if(ro===oo.get(io)[1])return eo;ao=no,lo=oo.set(io,[to,ro])}else ao=no.set(to,oo.size),lo=oo.set(oo.size,[to,ro]);return eo.__ownerID?(eo.size=ao.size,eo._map=ao,eo._list=lo,eo.__hash=void 0,eo.__altered=!0,eo):makeOrderedMap(ao,lo)}var IS_STACK_SYMBOL="@@__IMMUTABLE_STACK__@@";function isStack(eo){return!!(eo&&eo[IS_STACK_SYMBOL])}var Stack$1=function(eo){function to(ro){return ro==null?emptyStack():isStack(ro)?ro:emptyStack().pushAll(ro)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.of=function(){return this(arguments)},to.prototype.toString=function(){return this.__toString("Stack [","]")},to.prototype.get=function(no,oo){var io=this._head;for(no=wrapIndex(this,no);io&&no--;)io=io.next;return io?io.value:oo},to.prototype.peek=function(){return this._head&&this._head.value},to.prototype.push=function(){var no=arguments;if(arguments.length===0)return this;for(var oo=this.size+arguments.length,io=this._head,so=arguments.length-1;so>=0;so--)io={value:no[so],next:io};return this.__ownerID?(this.size=oo,this._head=io,this.__hash=void 0,this.__altered=!0,this):makeStack(oo,io)},to.prototype.pushAll=function(no){if(no=eo(no),no.size===0)return this;if(this.size===0&&isStack(no))return no;assertNotInfinite(no.size);var oo=this.size,io=this._head;return no.__iterate(function(so){oo++,io={value:so,next:io}},!0),this.__ownerID?(this.size=oo,this._head=io,this.__hash=void 0,this.__altered=!0,this):makeStack(oo,io)},to.prototype.pop=function(){return this.slice(1)},to.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):emptyStack()},to.prototype.slice=function(no,oo){if(wholeSlice(no,oo,this.size))return this;var io=resolveBegin(no,this.size),so=resolveEnd(oo,this.size);if(so!==this.size)return eo.prototype.slice.call(this,no,oo);for(var ao=this.size-io,lo=this._head;io--;)lo=lo.next;return this.__ownerID?(this.size=ao,this._head=lo,this.__hash=void 0,this.__altered=!0,this):makeStack(ao,lo)},to.prototype.__ensureOwner=function(no){return no===this.__ownerID?this:no?makeStack(this.size,this._head,no,this.__hash):this.size===0?emptyStack():(this.__ownerID=no,this.__altered=!1,this)},to.prototype.__iterate=function(no,oo){var io=this;if(oo)return new ArraySeq(this.toArray()).__iterate(function(lo,uo){return no(lo,uo,io)},oo);for(var so=0,ao=this._head;ao&&no(ao.value,so++,this)!==!1;)ao=ao.next;return so},to.prototype.__iterator=function(no,oo){if(oo)return new ArraySeq(this.toArray()).__iterator(no,oo);var io=0,so=this._head;return new Iterator(function(){if(so){var ao=so.value;return so=so.next,iteratorValue(no,io++,ao)}return iteratorDone()})},to}(IndexedCollection);Stack$1.isStack=isStack;var StackPrototype=Stack$1.prototype;StackPrototype[IS_STACK_SYMBOL]=!0;StackPrototype.shift=StackPrototype.pop;StackPrototype.unshift=StackPrototype.push;StackPrototype.unshiftAll=StackPrototype.pushAll;StackPrototype.withMutations=withMutations;StackPrototype.wasAltered=wasAltered;StackPrototype.asImmutable=asImmutable;StackPrototype["@@transducer/init"]=StackPrototype.asMutable=asMutable;StackPrototype["@@transducer/step"]=function(eo,to){return eo.unshift(to)};StackPrototype["@@transducer/result"]=function(eo){return eo.asImmutable()};function makeStack(eo,to,ro,no){var oo=Object.create(StackPrototype);return oo.size=eo,oo._head=to,oo.__ownerID=ro,oo.__hash=no,oo.__altered=!1,oo}var EMPTY_STACK;function emptyStack(){return EMPTY_STACK||(EMPTY_STACK=makeStack(0))}var IS_SET_SYMBOL="@@__IMMUTABLE_SET__@@";function isSet(eo){return!!(eo&&eo[IS_SET_SYMBOL])}function isOrderedSet(eo){return isSet(eo)&&isOrdered(eo)}function deepEqual(eo,to){if(eo===to)return!0;if(!isCollection(to)||eo.size!==void 0&&to.size!==void 0&&eo.size!==to.size||eo.__hash!==void 0&&to.__hash!==void 0&&eo.__hash!==to.__hash||isKeyed(eo)!==isKeyed(to)||isIndexed(eo)!==isIndexed(to)||isOrdered(eo)!==isOrdered(to))return!1;if(eo.size===0&&to.size===0)return!0;var ro=!isAssociative(eo);if(isOrdered(eo)){var no=eo.entries();return to.every(function(lo,uo){var co=no.next().value;return co&&is$1(co[1],lo)&&(ro||is$1(co[0],uo))})&&no.next().done}var oo=!1;if(eo.size===void 0)if(to.size===void 0)typeof eo.cacheResult=="function"&&eo.cacheResult();else{oo=!0;var io=eo;eo=to,to=io}var so=!0,ao=to.__iterate(function(lo,uo){if(ro?!eo.has(lo):oo?!is$1(lo,eo.get(uo,NOT_SET)):!is$1(eo.get(uo,NOT_SET),lo))return so=!1,!1});return so&&eo.size===ao}function mixin(eo,to){var ro=function(no){eo.prototype[no]=to[no]};return Object.keys(to).forEach(ro),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(to).forEach(ro),eo}function toJS(eo){if(!eo||typeof eo!="object")return eo;if(!isCollection(eo)){if(!isDataStructure(eo))return eo;eo=Seq(eo)}if(isKeyed(eo)){var to={};return eo.__iterate(function(no,oo){to[oo]=toJS(no)}),to}var ro=[];return eo.__iterate(function(no){ro.push(toJS(no))}),ro}var Set$1=function(eo){function to(ro){return ro==null?emptySet():isSet(ro)&&!isOrdered(ro)?ro:emptySet().withMutations(function(no){var oo=eo(ro);assertNotInfinite(oo.size),oo.forEach(function(io){return no.add(io)})})}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.of=function(){return this(arguments)},to.fromKeys=function(no){return this(KeyedCollection(no).keySeq())},to.intersect=function(no){return no=Collection$1(no).toArray(),no.length?SetPrototype.intersect.apply(to(no.pop()),no):emptySet()},to.union=function(no){return no=Collection$1(no).toArray(),no.length?SetPrototype.union.apply(to(no.pop()),no):emptySet()},to.prototype.toString=function(){return this.__toString("Set {","}")},to.prototype.has=function(no){return this._map.has(no)},to.prototype.add=function(no){return updateSet(this,this._map.set(no,no))},to.prototype.remove=function(no){return updateSet(this,this._map.remove(no))},to.prototype.clear=function(){return updateSet(this,this._map.clear())},to.prototype.map=function(no,oo){var io=this,so=!1,ao=updateSet(this,this._map.mapEntries(function(lo){var uo=lo[1],co=no.call(oo,uo,uo,io);return co!==uo&&(so=!0),[co,co]},oo));return so?ao:this},to.prototype.union=function(){for(var no=[],oo=arguments.length;oo--;)no[oo]=arguments[oo];return no=no.filter(function(io){return io.size!==0}),no.length===0?this:this.size===0&&!this.__ownerID&&no.length===1?this.constructor(no[0]):this.withMutations(function(io){for(var so=0;so=0&&oo=0&&iothis.size?ro:this.find(function(no,oo){return oo===to},void 0,ro)},has:function(to){return to=wrapIndex(this,to),to>=0&&(this.size!==void 0?this.size===1/0||toto?-1:0}function hashCollection(eo){if(eo.size===1/0)return 0;var to=isOrdered(eo),ro=isKeyed(eo),no=to?1:0,oo=eo.__iterate(ro?to?function(io,so){no=31*no+hashMerge(hash$2(io),hash$2(so))|0}:function(io,so){no=no+hashMerge(hash$2(io),hash$2(so))|0}:to?function(io){no=31*no+hash$2(io)|0}:function(io){no=no+hash$2(io)|0});return murmurHashOfSize(oo,no)}function murmurHashOfSize(eo,to){return to=imul(to,3432918353),to=imul(to<<15|to>>>-15,461845907),to=imul(to<<13|to>>>-13,5),to=(to+3864292196|0)^eo,to=imul(to^to>>>16,2246822507),to=imul(to^to>>>13,3266489909),to=smi(to^to>>>16),to}function hashMerge(eo,to){return eo^to+2654435769+(eo<<6)+(eo>>2)|0}var OrderedSet=function(eo){function to(ro){return ro==null?emptyOrderedSet():isOrderedSet(ro)?ro:emptyOrderedSet().withMutations(function(no){var oo=SetCollection(ro);assertNotInfinite(oo.size),oo.forEach(function(io){return no.add(io)})})}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.of=function(){return this(arguments)},to.fromKeys=function(no){return this(KeyedCollection(no).keySeq())},to.prototype.toString=function(){return this.__toString("OrderedSet {","}")},to}(Set$1);OrderedSet.isOrderedSet=isOrderedSet;var OrderedSetPrototype=OrderedSet.prototype;OrderedSetPrototype[IS_ORDERED_SYMBOL]=!0;OrderedSetPrototype.zip=IndexedCollectionPrototype.zip;OrderedSetPrototype.zipWith=IndexedCollectionPrototype.zipWith;OrderedSetPrototype.zipAll=IndexedCollectionPrototype.zipAll;OrderedSetPrototype.__empty=emptyOrderedSet;OrderedSetPrototype.__make=makeOrderedSet;function makeOrderedSet(eo,to){var ro=Object.create(OrderedSetPrototype);return ro.size=eo?eo.size:0,ro._map=eo,ro.__ownerID=to,ro}var EMPTY_ORDERED_SET;function emptyOrderedSet(){return EMPTY_ORDERED_SET||(EMPTY_ORDERED_SET=makeOrderedSet(emptyOrderedMap()))}function throwOnInvalidDefaultValues(eo){if(isRecord(eo))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(isImmutable(eo))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(eo===null||typeof eo!="object")throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}var Record=function(to,ro){var no;throwOnInvalidDefaultValues(to);var oo=function(ao){var lo=this;if(ao instanceof oo)return ao;if(!(this instanceof oo))return new oo(ao);if(!no){no=!0;var uo=Object.keys(to),co=io._indices={};io._name=ro,io._keys=uo,io._defaultValues=to;for(var fo=0;fo0?this._next(ro.shift()):this.active===0&&this.hasCompleted&&this.destination.complete()},to}(SimpleOuterSubscriber);function mergeAll(eo){return eo===void 0&&(eo=Number.POSITIVE_INFINITY),mergeMap(identity$1,eo)}function merge$2(){for(var eo=[],to=0;to1&&typeof eo[eo.length-1]=="number"&&(ro=eo.pop())):typeof oo=="number"&&(ro=eo.pop()),no===null&&eo.length===1&&eo[0]instanceof Observable$2?eo[0]:mergeAll(ro)(fromArray(eo,no))}function filter(eo,to){return function(no){return no.lift(new FilterOperator(eo,to))}}var FilterOperator=function(){function eo(to,ro){this.predicate=to,this.thisArg=ro}return eo.prototype.call=function(to,ro){return ro.subscribe(new FilterSubscriber(to,this.predicate,this.thisArg))},eo}(),FilterSubscriber=function(eo){__extends$2(to,eo);function to(ro,no,oo){var io=eo.call(this,ro)||this;return io.predicate=no,io.thisArg=oo,io.count=0,io}return to.prototype._next=function(ro){var no;try{no=this.predicate.call(this.thisArg,ro,this.count++)}catch(oo){this.destination.error(oo);return}no&&this.destination.next(ro)},to}(Subscriber$1);function debounceTime(eo,to){return to===void 0&&(to=async),function(ro){return ro.lift(new DebounceTimeOperator(eo,to))}}var DebounceTimeOperator=function(){function eo(to,ro){this.dueTime=to,this.scheduler=ro}return eo.prototype.call=function(to,ro){return ro.subscribe(new DebounceTimeSubscriber(to,this.dueTime,this.scheduler))},eo}(),DebounceTimeSubscriber=function(eo){__extends$2(to,eo);function to(ro,no,oo){var io=eo.call(this,ro)||this;return io.dueTime=no,io.scheduler=oo,io.debouncedSubscription=null,io.lastValue=null,io.hasValue=!1,io}return to.prototype._next=function(ro){this.clearDebounce(),this.lastValue=ro,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(dispatchNext,this.dueTime,this))},to.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},to.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var ro=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(ro)}},to.prototype.clearDebounce=function(){var ro=this.debouncedSubscription;ro!==null&&(this.remove(ro),ro.unsubscribe(),this.debouncedSubscription=null)},to}(Subscriber$1);function dispatchNext(eo){eo.debouncedNext()}function e$4(){return e$4=Object.assign?Object.assign.bind():function(eo){for(var to=1;to{const ao=no.singletonCache.get(so)||no.requestCache.get(so)||no.transientCache.get(so);ao&&(io.proxyTarget.current=ao)}),no.postConstruct.forEach(io=>{io.postConstruct()}),this.currentCtx=null,oo}child(){const to=new this.constructor;return to.parent=this,to}getParent(){return this.parent}getInjectable(to){var ro;const no=this.pool.get(to);if(no)return{value:no,fromParent:!1};const oo=(ro=this.parent)==null?void 0:ro.getInjectable(to);return oo?{value:oo.value,fromParent:!0}:void 0}_resolve(to,ro,no){const oo=this.getInjectable(to);if((ro==null?void 0:ro.optional)===!0&&!oo)return;if(!oo)throw new Error(`Key: ${a$5(to)} not found`);const{value:{value:io,scope:so,type:ao},fromParent:lo}=oo;let uo,co=!1;if(ao===h$7.VALUE)return io;{const fo=no.requestedKeys.get(to);if(fo){if(!fo.constructed){if(!ro.lazy&&!lo){const ho=Array.from(no.requestedKeys.entries()).pop(),po=ho?`[ ${String(ho[0])}: ${ho[1].value.name} ]`:"";throw new Error(`Circular reference detected: ${po} -> [ ${a$5(to)}: ${io.name} ]`)}co=!0}}else no.requestedKeys.set(to,{constructed:!1,value:io})}return uo=co?()=>this.createLazy(to,ao,no):()=>this.create(to,oo.value,no),this.run(so,to,uo,no)}resolveDeps(to,ro){const no=[];for(const oo of to){const{key:io,options:so}=c$7(oo);if(Array.isArray(io)){const ao=[];for(const lo of io){let uo=ro.singletonCache.get(lo.key);uo===void 0&&(uo=this._resolve(lo.key,e$4({},lo.options),ro)),uo===void 0&&so.removeUndefined||ao.push(uo)}no.push(ao.length?ao:so.setToUndefinedIfEmpty?void 0:ao)}else{let ao=ro.singletonCache.get(io);ao===void 0&&(ao=this._resolve(io,e$4({},so),ro)),no.push(ao)}}return no}createLazy(to,ro,no){const oo=no.delayed.get(to);if(oo)return oo.proxy;const io=ro===h$7.CLASS?{}:function(){},so=function(ao,lo,uo){function co(){if(!ao.current)throw new Error(`Lazy target for key:${String(uo)} not yet set`);return ao.current}return new Proxy(ao,{apply:function(fo,ho){const po=co();return Reflect.apply(po,lo?po:void 0,ho)},construct:function(fo,ho){return Reflect.construct(co(),ho)},get:function(fo,ho,po){return ho===t$7?fo.current:ho===n$5||Reflect.get(co(),ho,po)},set:function(fo,ho,po){return Reflect.set(ho==="current"?fo:co(),ho,po)},defineProperty:function(fo,ho,po){return Reflect.defineProperty(co(),ho,po)},deleteProperty:function(fo,ho){return Reflect.deleteProperty(co(),ho)},getPrototypeOf:function(fo){return Reflect.getPrototypeOf(co())},setPrototypeOf:function(fo,ho){return Reflect.setPrototypeOf(co(),ho)},getOwnPropertyDescriptor:function(fo,ho){return Reflect.getOwnPropertyDescriptor(co(),ho)},has:function(fo,ho){return Reflect.has(co(),ho)},isExtensible:function(fo){return Reflect.isExtensible(co())},ownKeys:function(fo){return Reflect.ownKeys(co())},preventExtensions:function(fo){return Reflect.preventExtensions(co())}})}(io,ro===h$7.CLASS,to);return no.delayed.set(to,{proxy:so,proxyTarget:io}),so}create(to,ro,no){const{beforeResolve:oo,afterResolve:io,value:so,type:ao}=ro,lo=so.inject;let uo=[];lo&&(uo=Array.isArray(lo)?this.resolveDeps(lo,no):lo.fn({container:this,ctx:no.ctx},...this.resolveDeps(lo.deps,no)));const co=oo?oo({container:this,value:so.original,ctx:no.ctx},...uo):so(...uo);return io&&io({container:this,value:co,ctx:no.ctx}),no.requestedKeys.get(to).constructed=!0,ao==="CLASS"&&"postConstruct"in co&&no.postConstruct.push(co),co}run(to,ro,no,oo){if(to===f$6.SINGLETON||to===f$6.CONTAINER_SINGLETON){var io;if(!this.pool.has(ro)&&to===f$6.SINGLETON)return(io=this.parent)==null?void 0:io.resolve(ro);const ao=oo.singletonCache.get(ro);if(ao!==void 0)return ao===p$7?void 0:ao;{let lo=no();return lo===void 0&&(lo=p$7),this.singletonCache.set(ro,lo),lo}}if(f$6.REQUEST===to){const ao=oo.requestCache.get(ro);if(ao!==void 0)return ao===p$7?void 0:ao;{let lo=no();return lo===void 0&&(lo=p$7),oo.requestCache.set(ro,lo),lo}}const so=no();return oo.transientCache.set(ro,so),so}};function isClassProvider(eo){return hasOwn(eo,"useClass")}function isFactoryProvider(eo){return hasOwn(eo,"useFactory")}function isValueProvider(eo){return hasOwn(eo,"useValue")}function isTokenProvider(eo){return hasOwn(eo,"useToken")}const SINGLETON=Symbol("singleton");function isConstructor(eo){return typeof eo=="function"&&!!eo.inject}function getClassScope(eo){return eo[SINGLETON]?"SINGLETON":eo.scope?eo.scope:"TRANSIENT"}class DependencyContainer extends d$6{constructor(){super(...arguments),this.name="DependencyContainer"}bindValue(to,ro){return this.has(to,!1)&&this.unbind(to),super.bindValue(to,ro)}bindClass(to,ro,no){const oo=(no==null?void 0:no.scope)??getClassScope(to);return super.bindClass(to,ro,{...no,scope:oo})}register(to,ro){if(isValueProvider(ro))this.bindValue(to,ro.useValue);else if(isFactoryProvider(ro)){const{useFactory:no}=ro;this.bindFactory(to,{value:no,inject:[ContainerToken]},{scope:ro.scope})}else if(isTokenProvider(ro))this.bindFactory(to,{value:no=>no,inject:[ro.useToken]});else if(isClassProvider(ro)){const no=ro.scope??getClassScope(ro.useClass);this.bindClass(to,ro.useClass,{scope:no})}}_resolve(to,ro,no){if(!this.getInjectable(to)&&isConstructor(to)){const oo=getClassScope(to);this.bindClass(to,to,{scope:oo})}return super._resolve(to,ro,no)}}const getGlobalContainer=()=>{const eo=new DependencyContainer;return eo.name="global",eo},container=getGlobalContainer();function createInjectionToken(eo,to){return container.bindValue(eo,to),eo}const ContainerToken=createInjectionToken("DependencyContainer",container),ServicesContext=reactExports.createContext(container),createRegistry=({provide:eo,name:to})=>({containerRef:no,onInitialize:oo,onDispose:io,children:so})=>{const ao=reactExports.useContext(ServicesContext),lo=reactExports.useMemo(()=>{const uo=ao.child();return to&&(uo.name=to),eo==null||eo.forEach(co=>{uo.register(co.token,co)}),uo.bindValue(ContainerToken,uo),oo==null||oo(uo),uo},[oo,ao]);return reactExports.useImperativeHandle(no,()=>lo,[lo]),reactExports.useEffect(()=>()=>{io==null||io(lo),lo.unbindAll(!0)},[lo]),jsxRuntimeExports.jsx(ServicesContext.Provider,{value:lo,children:so})};createInjectionToken("isControlFlowEnabledToken",!1);createInjectionToken("isDoWhileLoopEnabledToken",!1);createInjectionToken("isAnnotationEnabledToken",!1);createInjectionToken("isDesignerUnifiedSubmissionFlowEnabledToken",!1);createInjectionToken("isPipelineComputeDatastoreEnabledToken",!1);createInjectionToken("TransactionalAuthoringEnabled",!1);createInjectionToken("ComponentSettingsEnabled",!1);createInjectionToken("isPipelineOwnerToken",!1);createInjectionToken("isExecutionPhaseEnabledToken",!1);createInjectionToken("isPipelineStreamingEnabledToken",!1);createInjectionToken("useFocusedNodeId",()=>{});createInjectionToken("useIsInSearchResult",()=>!1);createInjectionToken("dismissCompareCheckListPanel",()=>null);const promptFlowGraphReducer=eo=>(to,ro)=>eo(to,ro),graphReducer=()=>getGraphReducer(promptFlowGraphReducer);let Computed$1=class u_ extends Observable$2{constructor(to,ro){super(no=>this.state$.subscribe(no)),this.getSnapshot=()=>this.state$.getValue(),this.state$=new BehaviorSubject(to),this.subscription=ro.subscribe(this.state$)}static fromStates(to,ro){const no=ro(to.map(io=>io.getSnapshot())),oo=combineLatest(to).pipe(map$1(ro));return new u_(no,oo)}destroy(){this.subscription.unsubscribe()}},State$1=class extends BehaviorSubject{constructor(){super(...arguments),this.getState=()=>this.getValue(),this.setState=to=>{this.next(to)},this.updateState=to=>{this.next(to(this.getValue()))},this.getSnapshot=()=>this.getValue()}next(to,ro){!ro&&this.value===to||super.next(to)}copyFrom(to){this.next(to.getSnapshot())}};const X0=class X0{constructor(){this.nodesIndex$=new State$1(List$1()),this.allNodeNames$=Computed$1.fromStates([],()=>List$1()),this.orientation$=new State$1(Orientation$1.Vertical),this.language$=new State$1(void 0)}tweakFlattenNodeOrder(to,ro){const no=this.nodesIndex$.getSnapshot(),oo=no.findIndex(so=>so===to),io=oo+ro;if(oo>=0&&io>=0&&io(this.addListener(to,ro),ro.next(this.get(to)),()=>{this.removeListener(to,ro)}))}notify(to){var ro;(ro=this.listeners.get(to))==null||ro.forEach(no=>{no.next(this.get(to))})}next(to){const ro=this.getSnapshot();super.next(to);const no=new Set;ro.forEach((oo,io)=>{to.has(io)||no.add(io)}),to.forEach((oo,io)=>{ro.has(io)&&Object.is(ro.get(io),oo)||no.add(io)}),no.forEach(oo=>{this.notify(oo)})}addListener(to,ro){let no=this.listeners.get(to);no||(no=new Set,this.listeners.set(to,no)),no.add(ro)}removeListener(to,ro){const no=this.listeners.get(to);no&&(no.delete(ro),no.size===0&&this.listeners.delete(to))}}class ObservableMap extends ObservableCollection{constructor(){super(Map$1())}set(to,ro){return this.updateState(no=>no.set(to,ro)),this}update(to,ro){return this.updateState(no=>no.update(to,ro)),this}delete(to){return this.updateState(ro=>ro.delete(to)),this}deleteAll(to){return this.updateState(ro=>ro.deleteAll(to)),this}clear(){return this.next(Map$1()),this}merge(to){return this.updateState(ro=>ro.merge(to)),this}}class ObservableOrderedMap extends ObservableCollection{constructor(){super(OrderedMap())}set(to,ro){return this.updateState(no=>no.set(to,ro)),this}update(to,ro){return this.updateState(no=>no.update(to,ro)),this}delete(to){return this.updateState(ro=>ro.delete(to)),this}deleteAll(to){return this.updateState(ro=>ro.deleteAll(to)),this}clear(){return this.next(OrderedMap()),this}merge(to){return this.updateState(ro=>ro.merge(to)),this}insertBefore(to,ro,no){return this.updateState(oo=>OrderedMap().withMutations(io=>{for(const[so,ao]of oo.entries())to===so&&io.set(ro,no),io.set(so,ao)})),this.notify(ro),this}insertAfter(to,ro,no){return this.updateState(oo=>OrderedMap().withMutations(io=>{for(const[so,ao]of oo.entries())io.set(so,ao),to===so&&io.set(ro,no)})),this.notify(ro),this}sortByValue(to){return this.updateState(ro=>ro.sort(to)),this}}var _a$6;const Z0=class Z0 extends FlowViewModelShared{constructor(){super(),this.isWorkspaceReady$=new State$1(!1),this.currentNodeId$=new State$1(void 0),this.graphConfig=GraphConfigBuilder.default().build(),this.graphReducer=graphReducer(),this.isReadonly$=new State$1(!1),this.name$=new State$1(""),this.flowType$=new State$1(FlowType.Default),this.owner$=new State$1(void 0),this.isArchived$=new State$1(!1),this.selectedStepId$=new State$1(void 0),this.tools$=new ObservableOrderedMap,this.toolsStatus$=new ObservableOrderedMap,this.batchInputs$=new State$1([]),this.bulkRunDataReference$=new State$1(void 0),this.chatMessages$=new State$1([]),this.nodeVariants$=new ObservableOrderedMap,this.tuningNodeNames$=new State$1([]),this.inputSpec$=new ObservableOrderedMap,this.selectedBulkIndex$=new State$1(void 0),this.nodeRuns$=new ObservableOrderedMap,this.flowRuns$=new State$1([]),this.rootFlowRunMap$=new ObservableMap,this.flowOutputs$=new ObservableOrderedMap,this.connections$=new ObservableOrderedMap,this.promptToolSetting$=new State$1(void 0),this.userInfo$=new State$1(void 0),this.bulkRunDescription$=new State$1(""),this.bulkRunTags$=new State$1([]),this.nodeParameterTypes$=new ObservableMap,this.theme$=new State$1(void 0),this.selectedRuntimeName$=new State$1(void 0),this.connectionList$=new State$1([]),this.connectionSpecList$=new State$1([]),this.connectionDeployments$=new ObservableOrderedMap,this.connectionDeploymentsLoading$=new ObservableOrderedMap,this.runStatus$=new State$1(void 0),this.flowRunType$=new State$1(void 0),this.packageToolsDictionary$=new ObservableMap,this.codeToolsDictionary$=new ObservableMap,this.isToolsJsonReady$=new State$1(!1),this.flowGraphLayout$=new State$1(void 0),this.flowUIHint$=new State$1(void 0),this.isInitialized$=new State$1(!1),this.flowFeatures$=new State$1(new Set),this.loaded=!1,this._allLlmParameterKeys=[],new Set(dataReadonlyMode).add(GraphFeatures.AutoFit);const ro=new Set;ro.add(FlowFeatures.OpenCodeFileInNode),this.flowFeatures$.next(ro),this.canvasState$=new State$1(createGraphState({settings:{graphConfig:this.graphConfig,canvasBoundaryPadding:{top:800,bottom:800}},data:GraphModel.empty()})),this.allNodeNames$=Computed$1.fromStates([this.nodeVariants$],([no])=>List$1(Array.from(no.keys()).filter(oo=>!!oo&&oo!==FLOW_INPUT_NODE_NAME&&oo!==FLOW_OUTPUT_NODE_NAME))),merge$2(this.flowOutputs$,this.batchInputs$,this.inputSpec$,this.selectedRuntimeName$,this.bulkRunTags$,this.nodeVariants$,this.codeToolsDictionary$,this.packageToolsDictionary$).pipe(filter(()=>this.loaded),filter(()=>this.isInitialized$.getSnapshot()),debounceTime(100)).subscribe(()=>{this.notifyFlowChange()}),merge$2(this.flowGraphLayout$,this.orientation$).pipe(debounceTime(100)).subscribe(()=>{this.notifyLayoutChange()}),merge$2(this.flowUIHint$).pipe(debounceTime(100)).subscribe(()=>{this.notifyUIHintChange()}),this.invalidStepInputs$=Computed$1.fromStates([this.nodeVariants$,this.codeToolsDictionary$,this.packageToolsDictionary$,this.connectionList$,this.inputSpec$,this.nodeParameterTypes$],([no,oo,io,so,ao,lo])=>this.validateNodeInputs(no))}attemptToRenameStep(to,ro){if(!checkNodeNameValid(ro))return`step name ${ro} is not valid`;if(this.nodeVariants$.get(ro))return`step with name ${ro} already exists`;if(!this.nodeVariants$.get(to))return`step ${to} not found`;const oo=(so,ao,lo)=>{const uo={...so};return Object.keys(uo).forEach(co=>{const fo=uo[co],ho=getRefValueFromRaw(fo),[po]=(ho==null?void 0:ho.split("."))??[];po===ao&&(uo[co]=fo.replace(`${ao}`,`${lo}`))}),uo},io=(so,ao,lo)=>{if(!so)return;const uo={};return Object.entries(so).forEach(([co,fo])=>{var ho,po,go;uo[co]={...fo,node:{...fo.node,name:((ho=fo.node)==null?void 0:ho.name)===ao?lo:(po=fo.node)==null?void 0:po.name,inputs:oo(((go=fo.node)==null?void 0:go.inputs)??{},ao,lo)}}}),uo};reactDomExports.unstable_batchedUpdates(()=>{this.nodeVariants$.updateState(so=>so.mapEntries(([ao,lo])=>{const uo={...lo,variants:io(lo.variants,to,ro)};return[ao===to?ro:ao,uo]})),this.flowGraphLayout$.updateState(so=>({...so,nodeLayouts:renameKeyInObject((so==null?void 0:so.nodeLayouts)??{},to,ro)})),this.flowUIHint$.updateState(so=>({...so,nodes:renameKeyInObject((so==null?void 0:so.nodes)??{},to,ro)})),this.currentNodeId$.getSnapshot()===to&&this.currentNodeId$.next(ro),this.selectedStepId$.getSnapshot()===to&&this.selectedStepId$.next(ro),this.nodeRuns$.getSnapshot().forEach((so,ao)=>{if(so.node===to){const[,lo,uo,co]=ao.split("#"),fo=parseInt(lo,10);this.nodeRuns$.set(this.getNodeRunKey(ro,isNaN(fo)?0:fo,uo,co),{...so,node:ro}),this.nodeRuns$.delete(ao)}})})}acceptFlowEdit(to,ro){to!==this.viewType&&this.loadFlow(ro)}loadFlow(to){this.loaded=!1;try{reactDomExports.unstable_batchedUpdates(()=>{this.baseEntity=to,this.owner$.next(to.owner),this.isArchived$.next(to.isArchived??!1),this.loadFlowDto(to),to.flowRunResult&&this.loadStatus(to.flowRunResult)}),this.loaded=!0}catch(ro){throw this.loaded=!0,ro}}loadCodeTool(to,ro){this.codeToolsDictionary$.set(to,ro)}loadPackageTool(to,ro){this.packageToolsDictionary$.set(to,ro)}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(to){var io;this.clearStatus();let ro=0;const no=[],oo=new Map;if((io=to.flow_runs)!=null&&io.length){for(const so of to.flow_runs)so.index===null?oo.set(so.run_id,so):(ro=so.index,no.push(so));no.sort((so,ao)=>{var lo;return so.root_run_id===ao.root_run_id?(so.index??0)-(ao.index??0):so.variant_id&&ao.variant_id?so.variant_id.localeCompare(ao.variant_id):((lo=so.root_run_id)==null?void 0:lo.localeCompare((ao==null?void 0:ao.root_run_id)??""))??0}),this.flowRuns$.next(no),this.rootFlowRunMap$.next(Map$1(oo))}to.flowRunType&&this.flowRunType$.next(to.flowRunType),to.runStatus&&this.runStatus$.next(to.runStatus),this.loadNodesStatus(to.node_runs||[]),this.selectedBulkIndex$.next(ro)}loadNodesStatus(to){const ro=this.tuningNodeNames$.getSnapshot()[0];to.forEach(no=>{const oo=no.node===ro,io=this.getDefaultVariantId(no.node),so=no.variant_id||io,ao=oo?so:io,lo=this.getNodeRunKey(no.node,no.index??0,ao,so);this.nodeRuns$.set(lo,no)})}loadSingleNodeRunStatus(to,ro,no){this.resetNodesStatus(to,ro),no.forEach(oo=>{const io=this.getDefaultVariantId(oo.node),so=oo.variant_id||io,ao=oo.variant_id||io,lo=this.getNodeRunKey(oo.node,oo.index??0,ao,so);this.nodeRuns$.set(lo,oo)})}resetNodesStatus(to,ro){this.nodeRuns$.updateState(no=>no.filter(oo=>{if(oo.node!==to)return!0;const io=this.getDefaultVariantId(oo.node);return(oo.variant_id||io)!==ro}))}clearStatus(){this.selectedBulkIndex$.next(void 0),this.nodeRuns$.clear(),this.flowRuns$.next([]),this.rootFlowRunMap$.clear()}getDefaultVariantId(to){var ro;return((ro=this.nodeVariants$.get(to))==null?void 0:ro.defaultVariantId)||BASELINE_VARIANT_ID}setStepInput(to,ro,no,oo){const io=this.getNode(to,oo);if(!(io!=null&&io.name))return;const so={...io,inputs:{...io.inputs,[ro]:no}};this.setNode(to,oo,so)}removeStepInputs(to,ro,no){const oo=this.getNode(to,no);if(!(oo!=null&&oo.name))return;const io={...oo.inputs};ro.forEach(ao=>{delete io[ao]});const so={...oo,inputs:io};this.setNode(to,no,so)}renameStepInput(to,ro,no){const oo=this.getNode(to,BASELINE_VARIANT_ID);if(!(oo!=null&&oo.name))return;const io={...oo,inputs:renameKeyInObject(oo.inputs??{},ro,no)};this.setNode(to,BASELINE_VARIANT_ID,io)}setStepActivate(to,ro,no){const oo=this.getNode(to,ro);if(!(oo!=null&&oo.name))return;const io={...oo,activate:no};this.setNode(to,ro,io)}setStepKeyValue(to,ro,no,oo){const io=this.getNode(to,oo);if(!(io!=null&&io.name))return;const so={...io,[ro]:no};this.setNode(to,oo,so)}setStepSourcePath(to,ro,no){const oo=this.getNode(to,no);if(!(oo!=null&&oo.name))return;const io={...oo,source:{...oo.source,path:ro}};this.setNode(to,no,io)}setBatchInput(to,ro,no){const oo=this.batchInputs$.getSnapshot();if(!oo[to])return;const io=[...oo];io[to]={...io[to],[ro]:no},this.batchInputs$.setState(io)}setBulkRunTag(to,ro,no){const oo=[...this.bulkRunTags$.getSnapshot()];if(!oo[to])return;const io={};io[ro]=no,oo[to]=io,this.bulkRunTags$.next(oo)}deleteBulkRunTag(to){const ro=[...this.bulkRunTags$.getSnapshot()];ro.splice(to,1),this.bulkRunTags$.next(ro)}addBulkRunTagRow(){const to=this.bulkRunTags$.getSnapshot(),ro={"":""};this.bulkRunTags$.next([...to,ro])}getNodeRunKey(to,ro,no=BASELINE_VARIANT_ID,oo=BASELINE_VARIANT_ID){return`${to}#${ro}#${no}#${oo}`}dispatch(to){var io;let ro="";switch(to.type){case GraphCanvasEvent.Click:this.currentNodeId$.next(void 0);break;case GraphNodeEvent.Click:this.currentNodeId$.next(to.node.id,!0);break;case GraphNodeEvent.DragEnd:{ro=to.node.name??"";break}}const no=this.canvasState$.getSnapshot(),oo=this.graphReducer(no,to);if(this.canvasState$.next(oo),ro){const so=oo.data.present.nodes.find(uo=>uo.name===ro),ao=this.flowGraphLayout$.getSnapshot(),lo={...ao,nodeLayouts:{...ao==null?void 0:ao.nodeLayouts,[ro]:{...(io=ao==null?void 0:ao.nodeLayouts)==null?void 0:io[ro],x:so==null?void 0:so.x,y:so==null?void 0:so.y}}};this.flowGraphLayout$.next(lo)}}setGraphConfig(to){this.graphConfig=to;const ro=this.canvasState$.getSnapshot();this.canvasState$.next({...ro,settings:{...ro.settings,graphConfig:to}})}toFlowGraph(){const to=this.nodeVariants$.getSnapshot(),ro=getDefaultNodeList(List$1.of(...to.keys()),to);return{inputs:this.inputSpec$.getSnapshot().toJSON(),outputs:this.flowOutputs$.getSnapshot().toJSON(),nodes:ro,tools:void 0}}toFlowGraphSnapshot(to){const ro=lodashExports.mapValues(this.inputSpec$.getSnapshot().toJSON(),lo=>{lo.default!==void 0&&(lo.default=convertValByType(lo.default,lo.type));const{name:uo,id:co,...fo}=lo;return fo}),no=lodashExports.mapValues(this.flowOutputs$.getSnapshot().toJSON(),lo=>{const{name:uo,id:co,...fo}=lo;return fo}),io=getNodesThatMoreThanOneVariant(to).map(lo=>lo.nodeName),so=getFlowSnapshotNodeList(List$1.of(...Object.keys(to)),to,io),ao=getVariantNodes(to);return{inputs:ro,outputs:no,nodes:so,node_variants:ao}}toNodeVariants(){const to=this.nodeVariants$.getSnapshot().toJSON(),ro={};return Object.keys(to).forEach(no=>{const oo=to[no],io={};Object.keys(oo.variants??{}).forEach(so=>{const ao=(oo.variants??{})[so];io[so]={...ao,node:ao.node?this.pruneNodeInputs(ao.node):void 0}}),ro[no]={...oo,variants:io}}),ro}toFlowRunSettings(){var to,ro;return{tuningNodeNames:this.tuningNodeNames$.getSnapshot(),variants:void 0,runtimeName:(to=this.selectedRuntimeName$)==null?void 0:to.getSnapshot(),description:this.bulkRunDescription$.getSnapshot(),tags:Object.assign({},...this.bulkRunTags$.getSnapshot()),...this.bulkRunDataReference$.getSnapshot()!==void 0?{batchDataInput:{dataUri:(ro=this.bulkRunDataReference$.getSnapshot())==null?void 0:ro.id}}:{batch_inputs:this.batchInputs$.getSnapshot()}}}toJSON(){const to=this.toNodeVariants();return{...this.baseEntity,flow:{flowGraph:this.toFlowGraphSnapshot(to)},flowName:this.name$.getSnapshot(),flowRunSettings:this.toFlowRunSettings()}}toFlowGraphLayout(){const to=this.flowGraphLayout$.getSnapshot()??{},ro=Array.from(this.nodeVariants$.getSnapshot().keys()),no={...to.nodeLayouts};return Object.keys(no).forEach(oo=>{no[oo]={...no[oo],index:ro.indexOf(oo)}}),{...to,nodeLayouts:no,orientation:this.orientation$.getSnapshot()}}toFlowUIHint(){return this.flowUIHint$.getSnapshot()??{nodes:{}}}updateToolCode(to,ro){const no=this.codeToolsDictionary$.get(to);no&&this.codeToolsDictionary$.set(to,{...no,code:ro})}updateToolStatus(to,ro){const no=this.toolsStatus$.get(to);this.toolsStatus$.set(to,{...no,...ro})}updateFlowInput(to,ro){const no=this.batchInputs$.getSnapshot(),oo=no==null?void 0:no[0];let io=ro;try{const so=JSON.parse(ro);io=JSON.stringify(so)}catch{io=ro}this.batchInputs$.next([{...oo,[to]:io},...no.slice(1)])}addNewNode(to,ro){if(!to.name)return;const no=to,oo={defaultVariantId:BASELINE_VARIANT_ID,variants:{[BASELINE_VARIANT_ID]:{node:no}}};ro?this.nodeVariants$.insertBefore(ro,to.name,oo):this.nodeVariants$.set(to.name,oo)}patchEditData(to){var ro,no,oo,io;switch(to.type){case"chatInput":{if(this.flowType$.getSnapshot()!==FlowType.Chat)return;const so=this.batchInputs$.getSnapshot(),ao=((ro=this.getChatInputDefinition())==null?void 0:ro.name)??DEFAULT_CHAT_INPUT_NAME;this.batchInputs$.next([{...so[0],[ao]:to.value}]);break}case"chatHistory":{if(this.flowType$.getSnapshot()!==FlowType.Chat)return;const so=this.batchInputs$.getSnapshot(),ao=((no=this.getChatHistoryDefinition())==null?void 0:no.name)??DEFAULT_CHAT_HISTORY_NAME,lo=((oo=this.getChatInputDefinition())==null?void 0:oo.name)??DEFAULT_CHAT_INPUT_NAME,uo=((io=this.getChatOutputDefinition())==null?void 0:io.name)??DEFAULT_CHAT_OUTPUT_NAME;this.batchInputs$.next([{...so[0],[ao]:[...so[0][ao],{inputs:{[lo]:to.value.chatInput},outputs:{[uo]:to.value.chatOutput}}].slice(-10)}]);break}case"flowGraph":{try{this.loaded=!1,reactDomExports.unstable_batchedUpdates(()=>{this.loadFlorGraph(to.value)})}finally{this.loaded=!0}break}default:{const so=to;throw new Error(`Didn't expect to get here: ${so}`)}}}getChatInputDefinition(){return this.inputSpec$.getSnapshot().find(isChatInput)}getChatHistoryDefinition(){const to=this.flowType$.getSnapshot();return this.inputSpec$.getSnapshot().find(ro=>isChatHistory(to,ro))}getChatOutputDefinition(){return this.flowOutputs$.getSnapshot().find(isChatOutput)}clearChatMessages(){this.chatMessages$.next([]),this.syncChatMessagesToInputsValues([])}getProviderByConnection(to){var so;if(!to)return;const ro=this.connectionList$.getSnapshot(),no=this.promptToolSetting$.getSnapshot(),oo=ro.find(ao=>ao.connectionName===to);if(!oo)return;const io=(so=no==null?void 0:no.providers)==null?void 0:so.find(ao=>{var lo;return oo.connectionType&&((lo=ao.connection_type)==null?void 0:lo.includes(oo.connectionType))});if(io)return io.provider}addFlowInput(to,ro){this.inputSpec$.set(to,{...ro,name:to,id:(ro==null?void 0:ro.id)??getRandomInputDefinitionId()})}addFlowOutput(to,ro){this.flowOutputs$.set(to,{...ro,name:to,id:(ro==null?void 0:ro.id)??getRandomOutputDefinitionId()})}loadFlorGraph(to){var io;const ro=(to==null?void 0:to.nodes)||[],no=(to==null?void 0:to.outputs)||{},oo=(to==null?void 0:to.inputs)||{};this.nodeVariants$.clear(),ro.forEach(so=>{so.name&&(this.nodeVariants$.get(so.name)||this.nodeVariants$.set(so.name,{defaultVariantId:BASELINE_VARIANT_ID,variants:{[BASELINE_VARIANT_ID]:{node:so}}}))}),(io=Object.entries((to==null?void 0:to.node_variants)??{}))==null||io.forEach(([so,ao])=>{const lo={...ao.variants};Object.entries(lo).forEach(([uo,co])=>{co.node&&(co.node.name=so)}),this.nodeVariants$.set(so,{defaultVariantId:ao.default_variant_id??BASELINE_VARIANT_ID,variants:lo})}),this.flowOutputs$.clear(),Object.keys(no).forEach(so=>{const ao=no[so];ao&&this.addFlowOutput(so,ao)}),this.inputSpec$.clear(),Object.keys(oo).forEach(so=>{const ao=oo[so];ao&&this.addFlowInput(so,ao)})}loadFlowDto(to){var ro,no,oo,io,so,ao,lo,uo,co,fo,ho,po,go,vo;if(this.name$.next(to.flowName??""),this.flowType$.next(to.flowType??FlowType.Default),this.loadFlorGraph((ro=to.flow)==null?void 0:ro.flowGraph),(no=to.flow)!=null&&no.nodeVariants&&((io=Object.entries(((oo=to.flow)==null?void 0:oo.nodeVariants)??{}))==null||io.forEach(([bo,xo])=>{this.nodeVariants$.set(bo,{...xo,defaultVariantId:xo.defaultVariantId??BASELINE_VARIANT_ID})})),(ao=(so=to.flow)==null?void 0:so.flowGraphLayout)!=null&&ao.nodeLayouts){const bo=(lo=to.flow)==null?void 0:lo.flowGraphLayout;this.flowGraphLayout$.next(bo),bo.orientation&&this.orientation$.next(bo.orientation)}if(this.selectedRuntimeName$.setState(((uo=to.flowRunSettings)==null?void 0:uo.runtimeName)??""),this.batchInputs$.setState(((co=to.flowRunSettings)==null?void 0:co.batch_inputs)??[{}]),this.tuningNodeNames$.setState(((fo=to.flowRunSettings)==null?void 0:fo.tuningNodeNames)??[]),this.bulkRunDescription$.next(to.description??""),this.bulkRunTags$.next([]),to.tags){const bo=[];Object.keys(to.tags).forEach(xo=>{var _o;bo.push({[xo]:((_o=to==null?void 0:to.tags)==null?void 0:_o[xo])??""})}),this.bulkRunTags$.next(bo)}this.initNodeParameterTypes((ho=to.flow)==null?void 0:ho.flowGraph),to.flowType===FlowType.Chat&&(this.initChatFlow(to),this.initChatMessages(((po=to.flowRunSettings)==null?void 0:po.batch_inputs)??[{}])),this.language$.next((vo=(go=to.flow)==null?void 0:go.flowGraph)==null?void 0:vo.language)}initNodeParameterTypes(to){if(!to)return;const ro=this.nodeVariants$.getSnapshot().toJSON();let no=Map$1(new Map);Object.keys(ro).forEach(oo=>{const io=ro[oo];Object.keys(io.variants??{}).forEach(so=>{var lo;const ao=(io.variants??{})[so];if(ao.node){const uo={inputs:{},activate:{is:void 0}},co=this.getToolOfNode(ao.node);if((ao.node.type??(co==null?void 0:co.type))===ToolType.python){const fo=Object.keys((co==null?void 0:co.inputs)??{});Object.keys(ao.node.inputs??{}).filter(go=>!fo.includes(go)).forEach(go=>{var vo,bo;uo.inputs[go]=inferTypeByVal((bo=(vo=ao.node)==null?void 0:vo.inputs)==null?void 0:bo[go])??ValueType.string})}uo.activate.is=inferTypeByVal((lo=ao.node.activate)==null?void 0:lo.is)??ValueType.string,no=no.set(`${oo}#${so}`,uo)}})}),this.nodeParameterTypes$.next(no)}initChatFlow(to){if(to.flowType!==FlowType.Chat)return;this.inputSpec$.getSnapshot().some(io=>isChatHistory(to.flowType,io))||(this.addFlowInput(DEFAULT_CHAT_HISTORY_NAME,{name:DEFAULT_CHAT_HISTORY_NAME,type:ValueType.list}),this.batchInputs$.updateState(io=>[{...io[0],[DEFAULT_CHAT_HISTORY_NAME]:[]},...io.slice(1)])),this.inputSpec$.getSnapshot().some(io=>isChatInput(io))||this.addFlowInput(DEFAULT_CHAT_INPUT_NAME,{name:DEFAULT_CHAT_INPUT_NAME,type:ValueType.string,is_chat_input:!0}),this.flowOutputs$.getSnapshot().some(io=>isChatOutput(io))||this.addFlowOutput(DEFAULT_CHAT_OUTPUT_NAME,{name:DEFAULT_CHAT_OUTPUT_NAME,type:ValueType.string,is_chat_output:!0})}initChatMessages(to){var ao,lo,uo;const ro=((ao=this.getChatHistoryDefinition())==null?void 0:ao.name)??DEFAULT_CHAT_HISTORY_NAME,no=to[0][ro];if(!Array.isArray(no))return;const oo=((lo=this.getChatInputDefinition())==null?void 0:lo.name)??DEFAULT_CHAT_INPUT_NAME,io=((uo=this.getChatOutputDefinition())==null?void 0:uo.name)??DEFAULT_CHAT_OUTPUT_NAME,so=parseChatMessages(oo,io,no);this.chatMessages$.next(so),this.syncChatMessagesToInputsValues(so)}syncChatMessagesToInputsValues(to){var no,oo,io;if(this.batchInputs$.getSnapshot().length<=1){const so=((no=this.getChatInputDefinition())==null?void 0:no.name)??DEFAULT_CHAT_INPUT_NAME,ao=((oo=this.getChatOutputDefinition())==null?void 0:oo.name)??DEFAULT_CHAT_OUTPUT_NAME,lo=((io=this.getChatHistoryDefinition())==null?void 0:io.name)??DEFAULT_CHAT_HISTORY_NAME,uo=[];for(let co=0;co[{...co[0],[lo]:uo}])}}getNode(to,ro){var no,oo,io;return(io=(oo=(no=this.nodeVariants$.get(to))==null?void 0:no.variants)==null?void 0:oo[ro])==null?void 0:io.node}setNode(to,ro,no){var io;const oo=this.nodeVariants$.get(to);this.nodeVariants$.set(to,{defaultVariantId:(oo==null?void 0:oo.defaultVariantId)??BASELINE_VARIANT_ID,variants:{...oo==null?void 0:oo.variants,[ro]:{...(io=oo==null?void 0:oo.variants)==null?void 0:io[ro],node:no}}})}getAllLlmParameterKeys(){var to;if(this._allLlmParameterKeys.length===0){const ro=this.promptToolSetting$.getSnapshot();if(!ro)return[];const no=(to=ro.providers)==null?void 0:to.flatMap(io=>{var so;return(so=io.apis)==null?void 0:so.map(ao=>ao.parameters)}),oo=new Set(no==null?void 0:no.flatMap(io=>Object.keys(io??{})));this._allLlmParameterKeys=[...oo.values()]}return this._allLlmParameterKeys}pruneNodeInputs(to){var fo,ho,po,go;const ro=to?this.getToolOfNode(to):void 0,no=this.promptToolSetting$.getSnapshot(),oo=this.connectionList$.getSnapshot(),io=this.connectionSpecList$.getSnapshot();if(!ro||!no)return to;if((to.type??ro.type)===ToolType.python&&ro.enable_kwargs){const vo={};return Object.keys(to.inputs??{}).forEach(bo=>{var xo,_o,Eo,So;if(((xo=to.inputs)==null?void 0:xo[bo])!==void 0){const To=(_o=ro.inputs)==null?void 0:_o[bo];vo[bo]=convertValByType((Eo=to.inputs)==null?void 0:Eo[bo],(So=To==null?void 0:To.type)==null?void 0:So[0])}}),{...to,inputs:vo}}const so=this.getProviderByConnection(to.connection??"");if((to.type??ro.type)===ToolType.llm&&(!so||!to.api))return to;const ao=(to.type??ro.type)===ToolType.llm,lo=ao?(go=(po=(ho=(fo=no==null?void 0:no.providers)==null?void 0:fo.find(vo=>vo.provider===so))==null?void 0:ho.apis)==null?void 0:po.find(vo=>vo.api===to.api))==null?void 0:go.parameters:void 0,uo=new Set(filterNodeInputsKeys(ro.inputs,to.inputs,oo,io).concat(ao?this.getAllLlmParameterKeys():[])),co={};return Object.keys(to.inputs??{}).forEach(vo=>{var bo,xo,_o,Eo;if(uo.has(vo)&&((bo=to.inputs)==null?void 0:bo[vo])!==void 0){const So=((xo=ro.inputs)==null?void 0:xo[vo])??(lo==null?void 0:lo[vo]);co[vo]=convertValByType((_o=to.inputs)==null?void 0:_o[vo],(Eo=So==null?void 0:So.type)==null?void 0:Eo[0])}}),{...to,inputs:co}}getToolOfNode(to){var oo,io;const ro=this.codeToolsDictionary$.get(((oo=to.source)==null?void 0:oo.path)??""),no=this.packageToolsDictionary$.get(((io=to.source)==null?void 0:io.tool)??"");return resolveTool(to,ro,no,so=>this.codeToolsDictionary$.get(so))}validateNodeInputs(to){const ro=new Map,no=this.getNodesInCycle(to),oo=this.connectionList$.getSnapshot(),io=this.connectionSpecList$.getSnapshot(),so=[];return this.inputSpec$.getSnapshot().forEach((lo,uo)=>{const co=lo.default,fo=lo.type;if(co!==void 0&&co!==""&&!isTypeValid(co,fo)){const ho={section:"inputs",parameterName:uo,type:ValidationErrorType.InputInvalidType,message:"Input type is not valid"};so.push(ho)}}),so.length>0&&ro.set(`${FLOW_INPUT_NODE_NAME}#`,so),Array.from(to.values()).forEach(lo=>{const{variants:uo={}}=lo;Object.keys(uo).forEach(co=>{var xo,_o,Eo;const fo=uo[co],{node:ho}=fo,po=ho?this.getToolOfNode(ho):void 0,go=filterNodeInputsKeys(po==null?void 0:po.inputs,ho==null?void 0:ho.inputs,oo,io);if(!ho||!ho.name)return;if(!po){const So=ho;ro.set(`${ho.name}#${co}`,[{type:ValidationErrorType.MissingTool,message:`Can't find tool ${((xo=So==null?void 0:So.source)==null?void 0:xo.tool)??((_o=So==null?void 0:So.source)==null?void 0:_o.path)}`}]);return}const vo=[],bo=this.validateNodeConfig(ho,po);if(bo&&vo.push(bo),go.forEach(So=>{const To=this.validateNodeInputRequired(po,ho,So);To&&vo.push(To)}),ho.inputs&&vo.push(...Object.keys(ho.inputs).map(So=>{if(!go.includes(So)&&!po.enable_kwargs)return;const{isReference:To,error:wo}=this.validateNodeInputReference(ho,"inputs",So,to,no);if(wo)return wo;if(!To)return this.validateNodeInputType(po,ho,co,So)}).filter(Boolean)),ho.activate){const{error:So}=this.validateNodeInputReference(ho,"activate","when",to,no);So&&vo.push(So);const To=ho.activate.is,wo=(Eo=this.nodeParameterTypes$.get(`${ho.name}#${co}`))==null?void 0:Eo.activate.is;if(!isTypeValid(To,wo)){const Co={section:"activate",parameterName:"is",type:ValidationErrorType.InputInvalidType,message:"Input type is not valid"};vo.push(Co)}}ro.set(`${ho.name}#${co}`,vo)})}),ro}getNodesInCycle(to){const ro=getDefaultNodeList(List$1.of(...to.keys()),to),no=new Map;ro.forEach(uo=>{var fo;const co=(ho,po,go)=>{const vo=getRefValueFromRaw(go),[bo]=(vo==null?void 0:vo.split("."))??[];!bo||isFlowInput(bo)||no.set(`${uo.name}.${ho}.${po}`,bo)};Object.keys((uo==null?void 0:uo.inputs)??{}).forEach(ho=>{var go;const po=(go=uo.inputs)==null?void 0:go[ho];co("inputs",ho,po)}),co("activate","when",(fo=uo.activate)==null?void 0:fo.when)});const oo=new Map,io=new Map,so=new Map,ao=new Map;return ro.forEach(uo=>{const co=uo.name;co&&(oo.set(co,0),io.set(co,0),so.set(co,[]),ao.set(co,[]))}),ro.forEach(uo=>{const co=uo.name;if(!co)return;const fo=(ho,po)=>{const go=no.get(`${co}.${ho}.${po}`);go&&(oo.set(co,(oo.get(co)??0)+1),io.set(go,(io.get(go)??0)+1),so.set(go,[...so.get(go)??[],co]),ao.set(co,[...ao.get(co)??[],go]))};Object.keys((uo==null?void 0:uo.inputs)??{}).forEach(ho=>{fo("inputs",ho)}),fo("activate","when")}),getCycle(oo,so,io,ao)}validateNodeConfig(to,ro){var oo,io,so,ao,lo,uo,co;const no=this.promptToolSetting$.getSnapshot();if((to.type??(ro==null?void 0:ro.type))===ToolType.llm){if(!to.connection)return{parameterName:"connection",type:ValidationErrorType.NodeConfigInvalid,message:"connection is required"};if(!this.connectionList$.getSnapshot().some(vo=>vo.connectionName===to.connection))return{parameterName:"connection",type:ValidationErrorType.NodeConfigInvalid,message:"connection is not valid"};if(!to.api)return{parameterName:"api",type:ValidationErrorType.NodeConfigInvalid,message:"api is required"};const fo=this.getProviderByConnection(to.connection),ho=(ao=(so=(io=(oo=no==null?void 0:no.providers)==null?void 0:oo.find(vo=>vo.provider===fo))==null?void 0:io.apis)==null?void 0:so.find(vo=>vo.api===to.api))==null?void 0:ao.parameters;if((ho==null?void 0:ho.model)&&!((lo=to.inputs)!=null&&lo.model))return{parameterName:"model",type:ValidationErrorType.NodeConfigInvalid,message:"model is required"};if((ho==null?void 0:ho.deployment_name)&&!((uo=to.inputs)!=null&&uo.deployment_name))return{parameterName:"deployment_name",type:ValidationErrorType.NodeConfigInvalid,message:"deployment_name is required"}}if(ro&&((co=ro==null?void 0:ro.connection_type)!=null&&co.length)&&!to.connection)return{parameterName:"connection",type:ValidationErrorType.NodeConfigInvalid,message:"connection is required"}}validateNodeInputRequired(to,ro,no){var io,so,ao;if(((so=(io=to.inputs)==null?void 0:io[no])==null?void 0:so.default)!==void 0)return;const oo=(ao=ro.inputs)==null?void 0:ao[no];if(oo===void 0||oo==="")return{section:"inputs",parameterName:no,type:ValidationErrorType.InputEmpty,message:"Input cannot be empty"}}validateNodeInputReference(to,ro,no,oo,io){var fo;const so=(fo=to==null?void 0:to[ro])==null?void 0:fo[no],ao=getRefValueFromRaw(so),[lo,uo]=(ao==null?void 0:ao.split("."))??[];return lo?isFlowInput(lo)?this.inputSpec$.get(uo)?{isReference:!0,error:void 0}:{isReference:!0,error:{section:ro,parameterName:no,type:ValidationErrorType.InputDependencyNotFound,message:`${ao} is not a valid flow input`}}:lo===to.name?{isReference:!0,error:{section:ro,parameterName:no,type:ValidationErrorType.InputSelfReference,message:"Input cannot reference itself"}}:oo.get(lo)?to.name&&io.has(to.name)&&io.has(lo)?{isReference:!0,error:{section:ro,parameterName:no,type:ValidationErrorType.CircularDependency,message:"Input cannot reference a node in a cycle"}}:{isReference:!0,error:void 0}:{isReference:!0,error:{section:ro,parameterName:no,type:ValidationErrorType.InputDependencyNotFound,message:`${lo} is not a valid node name`}}:{isReference:!1,error:void 0}}validateNodeInputType(to,ro,no,oo){var lo,uo,co,fo,ho;const io=(lo=ro.inputs)==null?void 0:lo[oo];if(!io)return;const so=(uo=to==null?void 0:to.inputs)==null?void 0:uo[oo],ao=((co=so==null?void 0:so.type)==null?void 0:co[0])??((ho=(fo=this.nodeParameterTypes$.get(`${ro.name}#${no}`))==null?void 0:fo.inputs)==null?void 0:ho[oo]);if(!(!io||!to||!ao)&&!isTypeValid(io,ao))return{section:"inputs",parameterName:oo,type:ValidationErrorType.InputInvalidType,message:"Input type is not valid"}}};_a$6=SINGLETON,Z0[_a$6]=!0;let BaseFlowViewModel=Z0;class DefaultFlowViewModel extends BaseFlowViewModel{constructor(){super(...arguments),this.viewType="default"}fetchConnectionList(){}fetchPromptToolSetting(){}openRunListView(){}deployFlow(){}setSelectedStepId(){}notifyFlowChange(){}notifyLayoutChange(){}notifyUIHintChange(){}}createInjectionToken("FlowViewModel",new DefaultFlowViewModel);function useInjected(...eo){const to=reactExports.useContext(ServicesContext);return reactExports.useMemo(()=>eo.map(ro=>{try{return to.resolve(ro)}catch(no){throw[ro,no]}}),[to].concat(eo))}var shim$1={exports:{}},useSyncExternalStoreShim_production_min={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var e$3=reactExports;function h$6(eo,to){return eo===to&&(eo!==0||1/eo===1/to)||eo!==eo&&to!==to}var k$5=typeof Object.is=="function"?Object.is:h$6,l$6=e$3.useState,m$7=e$3.useEffect,n$4=e$3.useLayoutEffect,p$6=e$3.useDebugValue;function q$2(eo,to){var ro=to(),no=l$6({inst:{value:ro,getSnapshot:to}}),oo=no[0].inst,io=no[1];return n$4(function(){oo.value=ro,oo.getSnapshot=to,r$4(oo)&&io({inst:oo})},[eo,ro,to]),m$7(function(){return r$4(oo)&&io({inst:oo}),eo(function(){r$4(oo)&&io({inst:oo})})},[eo]),p$6(ro),ro}function r$4(eo){var to=eo.getSnapshot;eo=eo.value;try{var ro=to();return!k$5(eo,ro)}catch{return!0}}function t$6(eo,to){return to()}var u$6=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?t$6:q$2;useSyncExternalStoreShim_production_min.useSyncExternalStore=e$3.useSyncExternalStore!==void 0?e$3.useSyncExternalStore:u$6;shim$1.exports=useSyncExternalStoreShim_production_min;var shimExports=shim$1.exports;const useSubscribe=eo=>reactExports.useCallback(to=>{const ro=eo.subscribe(to);return()=>{ro.unsubscribe()}},[eo]);function useState(eo){const to=useSubscribe(eo),{getSnapshot:ro}=eo;return shimExports.useSyncExternalStore(to,ro)}function useSetState(eo){return reactExports.useCallback(to=>{typeof to!="function"?eo.setState(to):eo.setState(to(eo.getSnapshot()))},[eo])}of(void 0);var _a$5;const J0=class J0{constructor(to,ro){this.isChatBoxBottomTipVisible$=new State$1(to.isChatBoxBottomTipVisible),this.simpleMode$=new State$1(to.simpleMode),this.freezeLayout$=new State$1(to.freezeLayout),this.viewMyOnlyFlow$=new State$1(to.viewMyOnlyFlow),this.viewOnlyMyRuns$=new State$1(to.viewOnlyMyRuns),this.viewArchived$=new State$1(to.viewArchived),this.wrapTextOn$=new State$1(to.wrapTextOn),this.diffModeOn$=new State$1(to.diffModeOn),this.isRightTopPaneCollapsed$=new State$1(to.isRightTopPaneCollapsed),this.isRightBottomPaneCollapsed$=new State$1(to.isRightBottomPaneCollapsed),this.leftPaneWidth$=new State$1(to.leftPaneWidth),this.rightTopPaneHeight$=new State$1(to.rightTopPaneHeight);const no=(oo,io)=>{io.subscribe(so=>{ro({...this.getSettingsSnapshot(),[oo]:so})})};no("isChatBoxBottomTipVisible",this.isChatBoxBottomTipVisible$),no("simpleMode",this.simpleMode$),no("freezeLayout",this.freezeLayout$),no("viewMyOnlyFlow",this.viewMyOnlyFlow$),no("viewOnlyMyRuns",this.viewOnlyMyRuns$),no("viewArchived",this.viewArchived$),no("wrapTextOn",this.wrapTextOn$),no("diffModeOn",this.diffModeOn$),no("isRightTopPaneCollapsed",this.isRightTopPaneCollapsed$),no("isRightBottomPaneCollapsed",this.isRightBottomPaneCollapsed$),no("leftPaneWidth",this.leftPaneWidth$),no("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()}}};_a$5=SINGLETON,J0[_a$5]=!0;let BaseFlowSettingViewModel=J0;class DefaultFlowSettingViewModel extends BaseFlowSettingViewModel{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},()=>{})}}createInjectionToken("FlowSettingViewModel",new DefaultFlowSettingViewModel);makeStyles({root:{display:"flex",flexWrap:"nowrap"},item:{display:"inline-flex",alignItems:"center",marginRight:"8px",lineHeight:"14px"}});mergeStyleSets({line:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}});const isInVscodeWebview=typeof acquireVsCodeApi<"u";isInVscodeWebview&&acquireVsCodeApi();var _a$4;const ev=class ev{constructor(){this.extensionConfigurations$=new State$1(void 0),this.isPackageInstalled$=new State$1(void 0),this.sdkVersion$=new State$1(void 0),this.sdkFeatureList$=new State$1([]),this.uxFeatureList$=new State$1([])}};_a$4=SINGLETON,ev[_a$4]=!0;let VSCodeExtensionViewModel=ev;createInjectionToken("VSCodeFlowViewModel",new VSCodeExtensionViewModel);React.createContext({variantName:BASELINE_VARIANT_ID,haveMultipleVariants:!1,showAllVariantsOutputs:!1,isDisableEditing:!1});function createCommonjsModule(eo,to,ro){return ro={path:to,exports:{},require:function(no,oo){return commonjsRequire(no,oo??ro.path)}},eo(ro,ro.exports),ro.exports}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var classnames$1=createCommonjsModule(function(eo){/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(){var to={}.hasOwnProperty;function ro(){for(var no=[],oo=0;oo1&&arguments[1]!==void 0?arguments[1]:{},ro=[];return React.Children.forEach(eo,function(no){no==null&&!to.keepEmpty||(Array.isArray(no)?ro=ro.concat(toArray(no)):reactIs.isFragment(no)&&no.props?ro=ro.concat(toArray(no.props.children,to)):ro.push(no))}),ro}function _defineProperty$3(eo,to,ro){return to in eo?Object.defineProperty(eo,to,{value:ro,enumerable:!0,configurable:!0,writable:!0}):eo[to]=ro,eo}function ownKeys$2(eo,to){var ro=Object.keys(eo);if(Object.getOwnPropertySymbols){var no=Object.getOwnPropertySymbols(eo);to&&(no=no.filter(function(oo){return Object.getOwnPropertyDescriptor(eo,oo).enumerable})),ro.push.apply(ro,no)}return ro}function _objectSpread2$2(eo){for(var to=1;to0},eo.prototype.connect_=function(){!isBrowser$1||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mutationObserverSupported?(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)},eo.prototype.disconnect_=function(){!isBrowser$1||!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)},eo.prototype.onTransitionEnd_=function(to){var ro=to.propertyName,no=ro===void 0?"":ro,oo=transitionKeys.some(function(io){return!!~no.indexOf(io)});oo&&this.refresh()},eo.getInstance=function(){return this.instance_||(this.instance_=new eo),this.instance_},eo.instance_=null,eo}(),defineConfigurable=function(eo,to){for(var ro=0,no=Object.keys(to);ro"u"||!(Element instanceof Object))){if(!(to instanceof getWindowOf(to).Element))throw new TypeError('parameter 1 is not of type "Element".');var ro=this.observations_;ro.has(to)||(ro.set(to,new ResizeObservation(to)),this.controller_.addObserver(this),this.controller_.refresh())}},eo.prototype.unobserve=function(to){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(to instanceof getWindowOf(to).Element))throw new TypeError('parameter 1 is not of type "Element".');var ro=this.observations_;ro.has(to)&&(ro.delete(to),ro.size||this.controller_.removeObserver(this))}},eo.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},eo.prototype.gatherActive=function(){var to=this;this.clearActive(),this.observations_.forEach(function(ro){ro.isActive()&&to.activeObservations_.push(ro)})},eo.prototype.broadcastActive=function(){if(this.hasActive()){var to=this.callbackCtx_,ro=this.activeObservations_.map(function(no){return new ResizeObserverEntry(no.target,no.broadcastRect())});this.callback_.call(to,ro,to),this.clearActive()}},eo.prototype.clearActive=function(){this.activeObservations_.splice(0)},eo.prototype.hasActive=function(){return this.activeObservations_.length>0},eo}(),observers$1=typeof WeakMap<"u"?new WeakMap:new MapShim,ResizeObserver$1=function(){function eo(to){if(!(this instanceof eo))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var ro=ResizeObserverController.getInstance(),no=new ResizeObserverSPI(to,ro,this);observers$1.set(this,no)}return eo}();["observe","unobserve","disconnect"].forEach(function(eo){ResizeObserver$1.prototype[eo]=function(){var to;return(to=observers$1.get(this))[eo].apply(to,arguments)}});var index$1=function(){return typeof global$1.ResizeObserver<"u"?global$1.ResizeObserver:ResizeObserver$1}(),elementListeners=new Map;function onResize(eo){eo.forEach(function(to){var ro,no=to.target;(ro=elementListeners.get(no))===null||ro===void 0||ro.forEach(function(oo){return oo(no)})})}var resizeObserver=new index$1(onResize);function observe(eo,to){elementListeners.has(eo)||(elementListeners.set(eo,new Set),resizeObserver.observe(eo)),elementListeners.get(eo).add(to)}function unobserve(eo,to){elementListeners.has(eo)&&(elementListeners.get(eo).delete(to),elementListeners.get(eo).size||(resizeObserver.unobserve(eo),elementListeners.delete(eo)))}function _classCallCheck$2(eo,to){if(!(eo instanceof to))throw new TypeError("Cannot call a class as a function")}function _defineProperties$2(eo,to){for(var ro=0;ro"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 _typeof$3(eo){"@babel/helpers - typeof";return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(to){return typeof to}:function(to){return to&&typeof Symbol=="function"&&to.constructor===Symbol&&to!==Symbol.prototype?"symbol":typeof to},_typeof$3(eo)}function _assertThisInitialized$1(eo){if(eo===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return eo}function _possibleConstructorReturn$1(eo,to){if(to&&(_typeof$3(to)==="object"||typeof to=="function"))return to;if(to!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1(eo)}function _createSuper$1(eo){var to=_isNativeReflectConstruct$1();return function(){var no=_getPrototypeOf$1(eo),oo;if(to){var io=_getPrototypeOf$1(this).constructor;oo=Reflect.construct(no,arguments,io)}else oo=no.apply(this,arguments);return _possibleConstructorReturn$1(this,oo)}}var DomWrapper=function(eo){_inherits$1(ro,eo);var to=_createSuper$1(ro);function ro(){return _classCallCheck$2(this,ro),to.apply(this,arguments)}return _createClass$2(ro,[{key:"render",value:function(){return this.props.children}}]),ro}(reactExports.Component),CollectionContext=reactExports.createContext(null);function Collection(eo){var to=eo.children,ro=eo.onBatchResize,no=reactExports.useRef(0),oo=reactExports.useRef([]),io=reactExports.useContext(CollectionContext),so=reactExports.useCallback(function(ao,lo,uo){no.current+=1;var co=no.current;oo.current.push({size:ao,element:lo,data:uo}),Promise.resolve().then(function(){co===no.current&&(ro==null||ro(oo.current),oo.current=[])}),io==null||io(ao,lo,uo)},[ro,io]);return reactExports.createElement(CollectionContext.Provider,{value:so},to)}function SingleObserver(eo){var to=eo.children,ro=eo.disabled,no=reactExports.useRef(null),oo=reactExports.useRef(null),io=reactExports.useContext(CollectionContext),so=typeof to=="function",ao=so?to(no):to,lo=reactExports.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),uo=!so&&reactExports.isValidElement(ao)&&supportRef(ao),co=uo?ao.ref:null,fo=reactExports.useMemo(function(){return composeRef(co,no)},[co,no]),ho=reactExports.useRef(eo);ho.current=eo;var po=reactExports.useCallback(function(go){var vo=ho.current,bo=vo.onResize,xo=vo.data,_o=go.getBoundingClientRect(),Eo=_o.width,So=_o.height,To=go.offsetWidth,wo=go.offsetHeight,Co=Math.floor(Eo),Oo=Math.floor(So);if(lo.current.width!==Co||lo.current.height!==Oo||lo.current.offsetWidth!==To||lo.current.offsetHeight!==wo){var Ao={width:Co,height:Oo,offsetWidth:To,offsetHeight:wo};lo.current=Ao;var Ro=To===Math.round(Eo)?Eo:To,No=wo===Math.round(So)?So:wo,Mo=_objectSpread2$2(_objectSpread2$2({},Ao),{},{offsetWidth:Ro,offsetHeight:No});io==null||io(Mo,go,xo),bo&&Promise.resolve().then(function(){bo(Mo,go)})}},[]);return reactExports.useEffect(function(){var go=findDOMNode(no.current)||findDOMNode(oo.current);return go&&!ro&&observe(go,po),function(){return unobserve(go,po)}},[no.current,ro]),reactExports.createElement(DomWrapper,{ref:oo},uo?reactExports.cloneElement(ao,{ref:fo}):ao)}var INTERNAL_PREFIX_KEY="rc-observer-key";function ResizeObserver$2(eo){var to=eo.children,ro=typeof to=="function"?[to]:toArray(to);return ro.map(function(no,oo){var io=(no==null?void 0:no.key)||"".concat(INTERNAL_PREFIX_KEY,"-").concat(oo);return reactExports.createElement(SingleObserver,_extends$1$1({},eo,{key:io}),no)})}ResizeObserver$2.Collection=Collection;function ownKeys$1$1(eo,to){var ro=Object.keys(eo);if(Object.getOwnPropertySymbols){var no=Object.getOwnPropertySymbols(eo);to&&(no=no.filter(function(oo){return Object.getOwnPropertyDescriptor(eo,oo).enumerable})),ro.push.apply(ro,no)}return ro}function _objectSpread$1(eo){for(var to=1;to1&&arguments[1]!==void 0?arguments[1]:1;rafUUID+=1;var ro=rafUUID;function no(oo){if(oo===0)cleanup(ro),eo();else{var io=raf(function(){no(oo-1)});rafIds.set(ro,io)}}return no(to),ro}wrapperRaf.cancel=function(eo){var to=rafIds.get(eo);return cleanup(to),caf(to)};function _typeof$2(eo){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(to){return typeof to}:function(to){return to&&typeof Symbol=="function"&&to.constructor===Symbol&&to!==Symbol.prototype?"symbol":typeof to},_typeof$2(eo)}function _defineProperty$1$1(eo,to,ro){return to in eo?Object.defineProperty(eo,to,{value:ro,enumerable:!0,configurable:!0,writable:!0}):eo[to]=ro,eo}function _classCallCheck$1(eo,to){if(!(eo instanceof to))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(eo,to){for(var ro=0;ro"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 _getPrototypeOf(eo){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(ro){return ro.__proto__||Object.getPrototypeOf(ro)},_getPrototypeOf(eo)}var MIN_SIZE=20;function getPageY(eo){return"touches"in eo?eo.touches[0].pageY:eo.pageY}var ScrollBar=function(eo){_inherits(ro,eo);var to=_createSuper(ro);function ro(){var no;_classCallCheck$1(this,ro);for(var oo=arguments.length,io=new Array(oo),so=0;solo},no}return _createClass$1(ro,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(oo){oo.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var oo=this.state,io=oo.dragging,so=oo.visible,ao=this.props.prefixCls,lo=this.getSpinHeight(),uo=this.getTop(),co=this.showScroll(),fo=co&&so;return reactExports.createElement("div",{ref:this.scrollbarRef,className:classnames$1("".concat(ao,"-scrollbar"),_defineProperty$1$1({},"".concat(ao,"-scrollbar-show"),co)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:fo?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},reactExports.createElement("div",{ref:this.thumbRef,className:classnames$1("".concat(ao,"-scrollbar-thumb"),_defineProperty$1$1({},"".concat(ao,"-scrollbar-thumb-moving"),io)),style:{width:"100%",height:lo,top:uo,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),ro}(reactExports.Component);function Item(eo){var to=eo.children,ro=eo.setRef,no=reactExports.useCallback(function(oo){ro(oo)},[]);return reactExports.cloneElement(to,{ref:no})}function useChildren(eo,to,ro,no,oo,io){var so=io.getKey;return eo.slice(to,ro+1).map(function(ao,lo){var uo=to+lo,co=oo(ao,uo,{}),fo=so(ao);return reactExports.createElement(Item,{key:fo,setRef:function(po){return no(ao,po)}},co)})}function _classCallCheck(eo,to){if(!(eo instanceof to))throw new TypeError("Cannot call a class as a function")}function _defineProperties(eo,to){for(var ro=0;roeo.length)&&(to=eo.length);for(var ro=0,no=new Array(to);roFo&&(So="bottom")}}Do!==null&&Do!==eo.current.scrollTop&&so(Do)}lo.current=wrapperRaf(function(){Eo&&io(),vo(bo-1,So)})}};go(3)}}}function findListDiffIndex(eo,to,ro){var no=eo.length,oo=to.length,io,so;if(no===0&&oo===0)return null;noeo.length)&&(to=eo.length);for(var ro=0,no=new Array(to);ro"u"?"undefined":_typeof(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),useOriginScroll=function(eo,to){var ro=reactExports.useRef(!1),no=reactExports.useRef(null);function oo(){clearTimeout(no.current),ro.current=!0,no.current=setTimeout(function(){ro.current=!1},50)}var io=reactExports.useRef({top:eo,bottom:to});return io.current.top=eo,io.current.bottom=to,function(so){var ao=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,lo=so<0&&io.current.top||so>0&&io.current.bottom;return ao&&lo?(clearTimeout(no.current),ro.current=!1):(!lo||ro.current)&&oo(),!ro.current&&lo}};function useFrameWheel(eo,to,ro,no){var oo=reactExports.useRef(0),io=reactExports.useRef(null),so=reactExports.useRef(null),ao=reactExports.useRef(!1),lo=useOriginScroll(to,ro);function uo(fo){if(eo){wrapperRaf.cancel(io.current);var ho=fo.deltaY;oo.current+=ho,so.current=ho,!lo(ho)&&(isFF||fo.preventDefault(),io.current=wrapperRaf(function(){var po=ao.current?10:1;no(oo.current*po),oo.current=0}))}}function co(fo){eo&&(ao.current=fo.detail===so.current)}return[uo,co]}function canUseDom(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var useLayoutEffect$1=canUseDom()?reactExports.useLayoutEffect:reactExports.useEffect,SMOOTH_PTG=14/15;function useMobileTouchMove(eo,to,ro){var no=reactExports.useRef(!1),oo=reactExports.useRef(0),io=reactExports.useRef(null),so=reactExports.useRef(null),ao,lo=function(ho){if(no.current){var po=Math.ceil(ho.touches[0].pageY),go=oo.current-po;oo.current=po,ro(go)&&ho.preventDefault(),clearInterval(so.current),so.current=setInterval(function(){go*=SMOOTH_PTG,(!ro(go,!0)||Math.abs(go)<=.1)&&clearInterval(so.current)},16)}},uo=function(){no.current=!1,ao()},co=function(ho){ao(),ho.touches.length===1&&!no.current&&(no.current=!0,oo.current=Math.ceil(ho.touches[0].pageY),io.current=ho.target,io.current.addEventListener("touchmove",lo),io.current.addEventListener("touchend",uo))};ao=function(){io.current&&(io.current.removeEventListener("touchmove",lo),io.current.removeEventListener("touchend",uo))},useLayoutEffect$1(function(){return eo&&to.current.addEventListener("touchstart",co),function(){var fo;(fo=to.current)===null||fo===void 0||fo.removeEventListener("touchstart",co),ao(),clearInterval(so.current)}},[eo])}var _excluded$1=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function _extends$a(){return _extends$a=Object.assign||function(eo){for(var to=1;toeo.length)&&(to=eo.length);for(var ro=0,no=new Array(to);ro=0)&&Object.prototype.propertyIsEnumerable.call(eo,no)&&(ro[no]=eo[no])}return ro}function _objectWithoutPropertiesLoose$2(eo,to){if(eo==null)return{};var ro={},no=Object.keys(eo),oo,io;for(io=0;io=0)&&(ro[oo]=eo[oo]);return ro}var EMPTY_DATA=[],ScrollStyle={overflowY:"auto",overflowAnchor:"none"};function RawList(eo,to){var ro=eo.prefixCls,no=ro===void 0?"rc-virtual-list":ro,oo=eo.className,io=eo.height,so=eo.itemHeight,ao=eo.fullHeight,lo=ao===void 0?!0:ao,uo=eo.style,co=eo.data,fo=eo.children,ho=eo.itemKey,po=eo.virtual,go=eo.component,vo=go===void 0?"div":go,bo=eo.onScroll,xo=eo.onVisibleChange,_o=_objectWithoutProperties$1(eo,_excluded$1),Eo=!!(po!==!1&&io&&so),So=Eo&&co&&so*co.length>io,To=reactExports.useState(0),wo=_slicedToArray$3(To,2),Co=wo[0],Oo=wo[1],Ao=reactExports.useState(!1),Ro=_slicedToArray$3(Ao,2),No=Ro[0],Mo=Ro[1],Do=classnames$1(no,oo),jo=co||EMPTY_DATA,Fo=reactExports.useRef(),$o=reactExports.useRef(),Lo=reactExports.useRef(),Ho=reactExports.useCallback(function(Hs){return typeof ho=="function"?ho(Hs):Hs==null?void 0:Hs[ho]},[ho]),qo={getKey:Ho};function Uo(Hs){Oo(function(Zs){var xl;typeof Hs=="function"?xl=Hs(Zs):xl=Hs;var Sl=Kl(xl);return Fo.current.scrollTop=Sl,Sl})}var Yo=reactExports.useRef({start:0,end:jo.length}),Zo=reactExports.useRef(),_s=useDiffItem(jo,Ho),Ss=_slicedToArray$3(_s,1),As=Ss[0];Zo.current=As;var Ns=useHeights(Ho,null,null),ws=_slicedToArray$3(Ns,4),Ds=ws[0],Jo=ws[1],Cs=ws[2],Bs=ws[3],zs=reactExports.useMemo(function(){if(!Eo)return{scrollHeight:void 0,start:0,end:jo.length-1,offset:void 0};if(!So){var Hs;return{scrollHeight:((Hs=$o.current)===null||Hs===void 0?void 0:Hs.offsetHeight)||0,start:0,end:jo.length-1,offset:void 0}}for(var Zs=0,xl,Sl,$l,ru=jo.length,au=0;au=Co&&xl===void 0&&(xl=au,Sl=Zs),Zl>Co+io&&$l===void 0&&($l=au),Zs=Zl}return xl===void 0&&(xl=0,Sl=0),$l===void 0&&($l=jo.length-1),$l=Math.min($l+1,jo.length),{scrollHeight:Zs,start:xl,end:$l,offset:Sl}},[So,Eo,Co,jo,Bs,io]),Ls=zs.scrollHeight,ga=zs.start,Js=zs.end,Xs=zs.offset;Yo.current.start=ga,Yo.current.end=Js;var $a=Ls-io,Ll=reactExports.useRef($a);Ll.current=$a;function Kl(Hs){var Zs=Hs;return Number.isNaN(Ll.current)||(Zs=Math.min(Zs,Ll.current)),Zs=Math.max(Zs,0),Zs}var Xl=Co<=0,Nl=Co>=$a,xa=useOriginScroll(Xl,Nl);function El(Hs){var Zs=Hs;Uo(Zs)}function cu(Hs){var Zs=Hs.currentTarget.scrollTop;Zs!==Co&&Uo(Zs),bo==null||bo(Hs)}var ks=useFrameWheel(Eo,Xl,Nl,function(Hs){Uo(function(Zs){var xl=Zs+Hs;return xl})}),Es=_slicedToArray$3(ks,2),bs=Es[0],Os=Es[1];useMobileTouchMove(Eo,Fo,function(Hs,Zs){return xa(Hs,Zs)?!1:(bs({preventDefault:function(){},deltaY:Hs}),!0)}),useLayoutEffect$1(function(){function Hs(Zs){Eo&&Zs.preventDefault()}return Fo.current.addEventListener("wheel",bs),Fo.current.addEventListener("DOMMouseScroll",Os),Fo.current.addEventListener("MozMousePixelScroll",Hs),function(){Fo.current&&(Fo.current.removeEventListener("wheel",bs),Fo.current.removeEventListener("DOMMouseScroll",Os),Fo.current.removeEventListener("MozMousePixelScroll",Hs))}},[Eo]);var Vs=useScrollTo(Fo,jo,Cs,so,Ho,Jo,Uo,function(){var Hs;(Hs=Lo.current)===null||Hs===void 0||Hs.delayHidden()});reactExports.useImperativeHandle(to,function(){return{scrollTo:Vs}}),useLayoutEffect$1(function(){if(xo){var Hs=jo.slice(ga,Js+1);xo(Hs,jo)}},[ga,Js,jo]);var Ks=useChildren(jo,ga,Js,Ds,fo,qo),Ms=null;return io&&(Ms=_objectSpread(_defineProperty$4({},lo?"height":"maxHeight",io),ScrollStyle),Eo&&(Ms.overflowY="hidden",No&&(Ms.pointerEvents="none"))),reactExports.createElement("div",_extends$a({style:_objectSpread(_objectSpread({},uo),{},{position:"relative"}),className:Do},_o),reactExports.createElement(vo,{className:"".concat(no,"-holder"),style:Ms,ref:Fo,onScroll:cu},reactExports.createElement(Filler,{prefixCls:no,height:Ls,offset:Xs,onInnerResize:Jo,ref:$o},Ks)),Eo&&reactExports.createElement(ScrollBar,{ref:Lo,prefixCls:no,scrollTop:Co,height:io,scrollHeight:Ls,count:jo.length,onScroll:El,onStartMove:function(){Mo(!0)},onStopMove:function(){Mo(!1)}}))}var List=reactExports.forwardRef(RawList);List.displayName="List";var arrDel=function(eo,to){var ro=eo.slice(),no=ro.indexOf(to);return no>=0&&ro.splice(no,1),ro},arrAdd=function(eo,to){var ro=eo.slice();return ro.indexOf(to)===-1&&ro.push(to),ro},ROOT_NODE_ID="$root",Node$1=function(){function eo(to){var ro=this,no,oo,io,so=to.node,ao=to.flattenNodes,lo=to.parent,uo=to.selectedKeySet,co=uo===void 0?new Set:uo,fo=to.expandedKeySet,ho=fo===void 0?new Set:fo,po=to.loadInfo,go=po===void 0?{loadingKeys:[],loadedKeys:[]}:po;this.internal=so,this.parent=lo,this.level=((oo=(no=this.parent)===null||no===void 0?void 0:no.level)!==null&&oo!==void 0?oo:-1)+1,this.selected=co.has(so.id),this.expanded=ho.has(so.id)||so.id===ROOT_NODE_ID,this.ancestorExpanded=!!(lo!=null&&lo.expanded&&(lo!=null&&lo.ancestorExpanded))||so.id===ROOT_NODE_ID,this.loading=go.loadingKeys.includes(so.id),this.loaded=go.loadedKeys.includes(so.id),this.isLeaf=(io=so.isLeaf)!==null&&io!==void 0?io:!(so.children.length>0),eo.nodesMap.set(so.id,this),this.level>0&&this.ancestorExpanded&&ao.push(this),this.childNodes=so.children.map(function(vo){return new eo({node:vo,parent:ro,selectedKeySet:co,expandedKeySet:ho,loadInfo:go,flattenNodes:ao})})}return Object.defineProperty(eo.prototype,"id",{get:function(){return this.internal.id},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"title",{get:function(){return this.internal.title},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"children",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"searchKeys",{get:function(){return this.internal.searchKeys},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"isTag",{get:function(){return this.internal.isTag},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"ariaLabel",{get:function(){return this.internal.ariaLabel},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"extra",{get:function(){return this.internal.extra},enumerable:!1,configurable:!0}),eo.init=function(to,ro,no,oo){ro===void 0&&(ro=[]),no===void 0&&(no=[]),eo.nodesMap=new Map;var io=[];return eo.root=new eo({node:{title:"",children:to,searchKeys:[],id:ROOT_NODE_ID},selectedKeySet:new Set(ro),expandedKeySet:new Set(no),loadInfo:oo,flattenNodes:io}),io},eo.nodesMap=new Map,eo}();/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +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 __assign$2=function(){return __assign$2=Object.assign||function(to){for(var ro,no=1,oo=arguments.length;no"u"?InjectionMode.none:InjectionMode.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},to),this._classNameToArgs=(no=ro==null?void 0:ro.classNameToArgs)!==null&&no!==void 0?no:this._classNameToArgs,this._counter=(oo=ro==null?void 0:ro.counter)!==null&&oo!==void 0?oo:this._counter,this._keyToClassName=(so=(io=this._config.classNameCache)!==null&&io!==void 0?io:ro==null?void 0:ro.keyToClassName)!==null&&so!==void 0?so:this._keyToClassName,this._preservedRules=(ao=ro==null?void 0:ro.preservedRules)!==null&&ao!==void 0?ao:this._preservedRules,this._rules=(lo=ro==null?void 0:ro.rules)!==null&&lo!==void 0?lo:this._rules}return eo.getInstance=function(){if(_stylesheet=_global[STYLESHEET_SETTING],!_stylesheet||_stylesheet._lastStyleElement&&_stylesheet._lastStyleElement.ownerDocument!==document){var to=(_global==null?void 0:_global.FabricConfig)||{},ro=new eo(to.mergeStyles,to.serializedStylesheet);_stylesheet=ro,_global[STYLESHEET_SETTING]=ro}return _stylesheet},eo.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},eo.prototype.setConfig=function(to){this._config=__assign$2(__assign$2({},this._config),to)},eo.prototype.onReset=function(to){var ro=this;return this._onResetCallbacks.push(to),function(){ro._onResetCallbacks=ro._onResetCallbacks.filter(function(no){return no!==to})}},eo.prototype.onInsertRule=function(to){var ro=this;return this._onInsertRuleCallbacks.push(to),function(){ro._onInsertRuleCallbacks=ro._onInsertRuleCallbacks.filter(function(no){return no!==to})}},eo.prototype.getClassName=function(to){var ro=this._config.namespace,no=to||this._config.defaultPrefix;return(ro?ro+"-":"")+no+"-"+this._counter++},eo.prototype.cacheClassName=function(to,ro,no,oo){this._keyToClassName[ro]=to,this._classNameToArgs[to]={args:no,rules:oo}},eo.prototype.classNameFromKey=function(to){return this._keyToClassName[to]},eo.prototype.getClassNameCache=function(){return this._keyToClassName},eo.prototype.argsFromClassName=function(to){var ro=this._classNameToArgs[to];return ro&&ro.args},eo.prototype.insertedRulesFromClassName=function(to){var ro=this._classNameToArgs[to];return ro&&ro.rules},eo.prototype.insertRule=function(to,ro){var no=this._config.injectionMode,oo=no!==InjectionMode.none?this._getStyleElement():void 0;if(ro&&this._preservedRules.push(to),oo)switch(no){case InjectionMode.insertNode:var io=oo.sheet;try{io.insertRule(to,io.cssRules.length)}catch{}break;case InjectionMode.appendChild:oo.appendChild(document.createTextNode(to));break}else this._rules.push(to);this._config.onInsertRule&&this._config.onInsertRule(to),this._onInsertRuleCallbacks.forEach(function(so){return so()})},eo.prototype.getRules=function(to){return(to?this._preservedRules.join(""):"")+this._rules.join("")},eo.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(to){return to()})},eo.prototype.resetKeys=function(){this._keyToClassName={}},eo.prototype._getStyleElement=function(){var to=this;return!this._styleElement&&typeof document<"u"&&(this._styleElement=this._createStyleElement(),REUSE_STYLE_NODE||window.requestAnimationFrame(function(){to._styleElement=void 0})),this._styleElement},eo.prototype._createStyleElement=function(){var to=document.head,ro=document.createElement("style"),no=null;ro.setAttribute("data-merge-styles","true");var oo=this._config.cspSettings;if(oo&&oo.nonce&&ro.setAttribute("nonce",oo.nonce),this._lastStyleElement)no=this._lastStyleElement.nextElementSibling;else{var io=this._findPlaceholderStyleTag();io?no=io.nextElementSibling:no=to.childNodes[0]}return to.insertBefore(ro,to.contains(no)?no:null),this._lastStyleElement=ro,ro},eo.prototype._findPlaceholderStyleTag=function(){var to=document.head;return to?to.querySelector("style[data-merge-styles]"):null},eo}();function extractStyleParts(){for(var eo=[],to=0;to=0)io(uo.split(" "));else{var co=oo.argsFromClassName(uo);co?io(co):ro.indexOf(uo)===-1&&ro.push(uo)}else Array.isArray(uo)?io(uo):typeof uo=="object"&&no.push(uo)}}return io(eo),{classes:ro,objects:no}}function getRTL(){return _rtl===void 0&&(_rtl=typeof document<"u"&&!!document.documentElement&&document.documentElement.getAttribute("dir")==="rtl"),_rtl}var _rtl;_rtl=getRTL();function getStyleOptions(){return{rtl:getRTL()}}var rules={};function kebabRules(eo,to){var ro=eo[to];ro.charAt(0)!=="-"&&(eo[to]=rules[ro]=rules[ro]||ro.replace(/([A-Z])/g,"-$1").toLowerCase())}var _vendorSettings;function getVendorSettings(){var eo;if(!_vendorSettings){var to=typeof document<"u"?document:void 0,ro=typeof navigator<"u"?navigator:void 0,no=(eo=ro==null?void 0:ro.userAgent)===null||eo===void 0?void 0:eo.toLowerCase();to?_vendorSettings={isWebkit:!!(to&&"WebkitAppearance"in to.documentElement.style),isMoz:!!(no&&no.indexOf("firefox")>-1),isOpera:!!(no&&no.indexOf("opera")>-1),isMs:!!(ro&&(/rv:11.0/i.test(ro.userAgent)||/Edge\/\d./i.test(navigator.userAgent)))}:_vendorSettings={isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return _vendorSettings}var autoPrefixNames={"user-select":1};function prefixRules(eo,to){var ro=getVendorSettings(),no=eo[to];if(autoPrefixNames[no]){var oo=eo[to+1];autoPrefixNames[no]&&(ro.isWebkit&&eo.push("-webkit-"+no,oo),ro.isMoz&&eo.push("-moz-"+no,oo),ro.isMs&&eo.push("-ms-"+no,oo),ro.isOpera&&eo.push("-o-"+no,oo))}}var NON_PIXEL_NUMBER_PROPS=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function provideUnits(eo,to){var ro=eo[to],no=eo[to+1];if(typeof no=="number"){var oo=NON_PIXEL_NUMBER_PROPS.indexOf(ro)>-1,io=ro.indexOf("--")>-1,so=oo||io?"":"px";eo[to+1]=""+no+so}}var _a$3,LEFT="left",RIGHT="right",NO_FLIP="@noflip",NAME_REPLACEMENTS=(_a$3={},_a$3[LEFT]=RIGHT,_a$3[RIGHT]=LEFT,_a$3),VALUE_REPLACEMENTS={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function rtlifyRules(eo,to,ro){if(eo.rtl){var no=to[ro];if(!no)return;var oo=to[ro+1];if(typeof oo=="string"&&oo.indexOf(NO_FLIP)>=0)to[ro+1]=oo.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(no.indexOf(LEFT)>=0)to[ro]=no.replace(LEFT,RIGHT);else if(no.indexOf(RIGHT)>=0)to[ro]=no.replace(RIGHT,LEFT);else if(String(oo).indexOf(LEFT)>=0)to[ro+1]=oo.replace(LEFT,RIGHT);else if(String(oo).indexOf(RIGHT)>=0)to[ro+1]=oo.replace(RIGHT,LEFT);else if(NAME_REPLACEMENTS[no])to[ro]=NAME_REPLACEMENTS[no];else if(VALUE_REPLACEMENTS[oo])to[ro+1]=VALUE_REPLACEMENTS[oo];else switch(no){case"margin":case"padding":to[ro+1]=flipQuad(oo);break;case"box-shadow":to[ro+1]=negateNum(oo,0);break}}}function negateNum(eo,to){var ro=eo.split(" "),no=parseInt(ro[to],10);return ro[0]=ro[0].replace(String(no),String(no*-1)),ro.join(" ")}function flipQuad(eo){if(typeof eo=="string"){var to=eo.split(" ");if(to.length===4)return to[0]+" "+to[3]+" "+to[2]+" "+to[1]}return eo}function tokenizeWithParentheses(eo){for(var to=[],ro=0,no=0,oo=0;ooro&&to.push(eo.substring(ro,oo)),ro=oo+1);break}return ro-1&&to.push([no.index,no.index+no[0].length,no[1].split(",").map(function(oo){return":global("+oo.trim()+")"}).join(", ")]);return to.reverse().reduce(function(oo,io){var so=io[0],ao=io[1],lo=io[2],uo=oo.slice(0,so),co=oo.slice(ao);return uo+lo+co},eo)}function expandSelector(eo,to){return eo.indexOf(":global(")>=0?eo.replace(globalSelectorRegExp,"$1"):eo.indexOf(":")===0?to+eo:eo.indexOf("&")<0?to+" "+eo:eo}function extractSelector(eo,to,ro,no){to===void 0&&(to={__order:[]}),ro.indexOf("@")===0?(ro=ro+"{"+eo,extractRules([no],to,ro)):ro.indexOf(",")>-1?expandCommaSeparatedGlobals(ro).split(",").map(function(oo){return oo.trim()}).forEach(function(oo){return extractRules([no],to,expandSelector(oo,eo))}):extractRules([no],to,expandSelector(ro,eo))}function extractRules(eo,to,ro){to===void 0&&(to={__order:[]}),ro===void 0&&(ro="&");var no=Stylesheet.getInstance(),oo=to[ro];oo||(oo={},to[ro]=oo,to.__order.push(ro));for(var io=0,so=eo;io"u")){var no=document.head||document.getElementsByTagName("head")[0],oo=document.createElement("style");oo.type="text/css",ro==="top"&&no.firstChild?no.insertBefore(oo,no.firstChild):no.appendChild(oo),oo.styleSheet?oo.styleSheet.cssText=eo:oo.appendChild(document.createTextNode(eo))}}var css_248z=".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}",classes$3={root:"root_ce9fd48c",item:"item_34141342",content:"content_6abc12be",icon:"icon_aaa0d589",expanded:"expanded_6233c4e1",leaf:"leaf_f2922997",group:"group_7e2ac704",inner:"inner_683a43d6"};styleInject(css_248z);var mergeTreeClasses=function(eo){return{root:mergeStyles(classes$3.root,eo==null?void 0:eo.root)}},mergeTreeNodeClasses=function(eo,to){var ro,no,oo;return{item:mergeStyles(classes$3.item,to==null?void 0:to.item),icon:mergeStyles(classes$3.icon,eo.expanded&&classes$3.expanded,eo.isLeaf&&classes$3.leaf),group:mergeStyles(classes$3.group,to==null?void 0:to.group),inner:mergeStyles(classes$3.inner,to==null?void 0:to.inner),content:mergeStyles(classes$3.content,(ro=to==null?void 0:to.content)===null||ro===void 0?void 0:ro.base,eo.expanded&&((no=to==null?void 0:to.content)===null||no===void 0?void 0:no.expand),eo.isLeaf&&((oo=to==null?void 0:to.content)===null||oo===void 0?void 0:oo.leaf))}},TreeNode$2=reactExports.forwardRef(function(eo,to){var ro,no,oo,io,so,ao,lo,uo,co=eo.node,fo=eo.classes,ho=eo.indent,po=eo.calcIndent,go=eo.onNodeClick,vo=eo.renderIcon,bo=eo.renderContent,xo=eo.renderInnerContent,_o=!co.isLeaf&&co.expanded,Eo=mergeTreeNodeClasses(co,fo),So=po?po(co):{item:(co.level-1)*((ro=ho==null?void 0:ho.item)!==null&&ro!==void 0?ro:20)+((no=ho==null?void 0:ho.root)!==null&&no!==void 0?no:0),innerItem:co.level*((oo=ho==null?void 0:ho.item)!==null&&oo!==void 0?oo:20)+((io=ho==null?void 0:ho.root)!==null&&io!==void 0?io:0)},To=reactExports.useCallback(function(wo){wo.preventDefault(),wo.stopPropagation()},[]);return reactExports.createElement("div",{key:co.id,role:"treeitem","aria-selected":co.selected,"aria-expanded":co.expanded,tabIndex:-1,className:Eo.item,onClick:go.bind(null,co),"data-item-id":co.id,ref:to},reactExports.createElement("div",{className:Eo.content,style:{paddingLeft:(so=So.item)!==null&&so!==void 0?so:20}},(ao=vo==null?void 0:vo(co))!==null&&ao!==void 0?ao:reactExports.createElement("span",{className:Eo.icon}),(lo=bo==null?void 0:bo(co))!==null&&lo!==void 0?lo:reactExports.createElement("span",{role:"button"},co.title)),_o&&reactExports.createElement(reactExports.Fragment,null,xo&&reactExports.createElement("div",{role:"group",key:"innerContent",className:Eo.inner,style:{paddingLeft:(uo=So.innerItem)!==null&&uo!==void 0?uo:40},onClick:To},xo(co))))});TreeNode$2.displayName="TreeNode";var ReactAccessibleTree=reactExports.forwardRef(function(eo,to){var ro=eo.selectedKeys,no=ro===void 0?[]:ro,oo=eo.expandedKeys,io=oo===void 0?[]:oo,so=eo.treeData,ao=eo.classes,lo=eo.indent,uo=eo.height,co=eo.itemHeight,fo=eo.virtual,ho=eo.calcIndent,po=eo.onKeyDown,go=eo.renderIcon,vo=eo.renderContent,bo=eo.renderInnerContent,xo=eo.onSelect,_o=eo.multiple,Eo=eo.onExpand,So=eo.loadData,To=reactExports.useState({loadedKeys:[],loadingKeys:[]}),wo=To[0],Co=To[1],Oo=reactExports.useRef(null),Ao=reactExports.useRef(null),Ro=reactExports.useMemo(function(){return Node$1.init(so,no,io,wo)},[so,no,io,wo]);reactExports.useImperativeHandle(to,function(){return{scrollTo:function(Uo){var Yo;(Yo=Ao.current)===null||Yo===void 0||Yo.scrollTo(Uo)}}}),reactExports.useEffect(function(){jo(0)},[]);var No=function(Uo,Yo){var Zo=no,_s=Yo.id,Ss=!Yo.selected;Ss?_o?Zo=arrAdd(Zo,_s):Zo=[_s]:Zo=arrDel(Zo,_s),xo==null||xo(Zo,{node:Yo,selected:Ss,nativeEvent:Uo})},Mo=function(Uo,Yo){var Zo=io,_s=Yo.id,Ss=!Yo.expanded;Ss?Zo=arrAdd(Zo,_s):Zo=arrDel(Zo,_s),Eo==null||Eo(Zo,{node:Yo,expanded:Ss,nativeEvent:Uo}),Ss&&So&&Do(Yo)},Do=function(Uo){Co(function(Yo){var Zo=Yo.loadedKeys,_s=Yo.loadingKeys,Ss=Uo.id;if(!So||Zo.includes(Ss)||_s.includes(Ss))return wo;var As=So(Uo);return As.then(function(){var Ns=wo.loadedKeys,ws=wo.loadingKeys,Ds=arrAdd(Ns,Ss),Jo=arrDel(ws,Ss);Co({loadedKeys:Ds,loadingKeys:Jo})}),{loadedKeys:Zo,loadingKeys:arrAdd(_s,Ss)}})},jo=function(Uo){var Yo,Zo,_s=Array.from((Zo=(Yo=Oo.current)===null||Yo===void 0?void 0:Yo.querySelectorAll("div[role='treeitem']"))!==null&&Zo!==void 0?Zo:[]);_s.forEach(function(Ss,As){As===Uo?Ss.setAttribute("tabindex","0"):Ss.setAttribute("tabindex","-1")})},Fo=function(Uo){var Yo,Zo,_s;Uo.stopPropagation();var Ss=Uo.target;if(Ss.getAttribute("role")!=="treeitem"||Uo.ctrlKey||Uo.metaKey)return-1;var As=Array.from((Zo=(Yo=Oo.current)===null||Yo===void 0?void 0:Yo.querySelectorAll("div[role='treeitem']"))!==null&&Zo!==void 0?Zo:[]),Ns=As.indexOf(Ss),ws=Uo.keyCode>=65&&Uo.keyCode<=90;if(ws){var Ds=-1,Jo=As.findIndex(function(zs,Ls){var ga=zs.getAttribute("data-item-id"),Js=Node$1.nodesMap.get(ga??""),Xs=Js==null?void 0:Js.searchKeys.some(function($a){return $a.match(new RegExp("^"+Uo.key,"i"))});return Xs&&Ls>Ns?!0:(Xs&&Ls<=Ns&&(Ds=Ds===-1?Ls:Ds),!1)}),Cs=Jo===-1?Ds:Jo;return(_s=As[Cs])===null||_s===void 0||_s.focus(),Cs}switch(Uo.key){case"ArrowDown":{var Bs=(Ns+1)%As.length;return As[Bs].focus(),Bs}case"ArrowUp":{var Bs=(Ns-1+As.length)%As.length;return As[Bs].focus(),Bs}case"ArrowLeft":case"ArrowRight":return Ss.click(),Ns;case"Home":return As[0].focus(),0;case"End":return As[As.length-1].focus(),As.length-1;default:return po==null||po(Uo),Ns}},$o=function(Uo){var Yo=Fo(Uo);Yo>-1&&jo(Yo)},Lo=function(Uo,Yo){Yo.stopPropagation(),No(Yo,Uo),!(Uo.loading||Uo.loaded&&Uo.isLeaf)&&Mo(Yo,Uo)},Ho=mergeTreeClasses(ao),qo=function(Uo){return Uo.id};return reactExports.createElement("div",{role:"tree",className:Ho.root,onKeyDown:$o,ref:Oo},reactExports.createElement(List,{data:Ro,itemKey:qo,height:uo,fullHeight:!1,virtual:fo,itemHeight:co,ref:Ao},function(Uo){return reactExports.createElement(TreeNode$2,{key:Uo.id,node:Uo,classes:ao,indent:lo,calcIndent:ho,renderIcon:go,renderContent:vo,renderInnerContent:bo,onNodeClick:Lo})}))});ReactAccessibleTree.displayName="ReactAccessibleTree";var __extends$1=function(){var eo=function(to,ro){return eo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(no,oo){no.__proto__=oo}||function(no,oo){for(var io in oo)Object.prototype.hasOwnProperty.call(oo,io)&&(no[io]=oo[io])},eo(to,ro)};return function(to,ro){eo(to,ro);function no(){this.constructor=to}to.prototype=ro===null?Object.create(ro):(no.prototype=ro.prototype,new no)}}(),__assign$1=function(){return __assign$1=Object.assign||function(eo){for(var to,ro=1,no=arguments.length;ro"u"?void 0:Number(no),maxHeight:typeof oo>"u"?void 0:Number(oo),minWidth:typeof io>"u"?void 0:Number(io),minHeight:typeof so>"u"?void 0:Number(so)}},definedProps=["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"],baseClassName="__resizable_base__",Resizable=function(eo){__extends(to,eo);function to(ro){var no=eo.call(this,ro)||this;return no.ratio=1,no.resizable=null,no.parentLeft=0,no.parentTop=0,no.resizableLeft=0,no.resizableRight=0,no.resizableTop=0,no.resizableBottom=0,no.targetLeft=0,no.targetTop=0,no.appendBase=function(){if(!no.resizable||!no.window)return null;var oo=no.parentNode;if(!oo)return null;var io=no.window.document.createElement("div");return io.style.width="100%",io.style.height="100%",io.style.position="absolute",io.style.transform="scale(0, 0)",io.style.left="0",io.style.flex="0 0 100%",io.classList?io.classList.add(baseClassName):io.className+=baseClassName,oo.appendChild(io),io},no.removeBase=function(oo){var io=no.parentNode;io&&io.removeChild(oo)},no.ref=function(oo){oo&&(no.resizable=oo)},no.state={isResizing:!1,width:typeof(no.propsSize&&no.propsSize.width)>"u"?"auto":no.propsSize&&no.propsSize.width,height:typeof(no.propsSize&&no.propsSize.height)>"u"?"auto":no.propsSize&&no.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},no.onResizeStart=no.onResizeStart.bind(no),no.onMouseMove=no.onMouseMove.bind(no),no.onMouseUp=no.onMouseUp.bind(no),no}return Object.defineProperty(to.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(to.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(to.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||DEFAULT_SIZE},enumerable:!1,configurable:!0}),Object.defineProperty(to.prototype,"size",{get:function(){var ro=0,no=0;if(this.resizable&&this.window){var oo=this.resizable.offsetWidth,io=this.resizable.offsetHeight,so=this.resizable.style.position;so!=="relative"&&(this.resizable.style.position="relative"),ro=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:oo,no=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:io,this.resizable.style.position=so}return{width:ro,height:no}},enumerable:!1,configurable:!0}),Object.defineProperty(to.prototype,"sizeStyle",{get:function(){var ro=this,no=this.props.size,oo=function(ao){if(typeof ro.state[ao]>"u"||ro.state[ao]==="auto")return"auto";if(ro.propsSize&&ro.propsSize[ao]&&ro.propsSize[ao].toString().endsWith("%")){if(ro.state[ao].toString().endsWith("%"))return ro.state[ao].toString();var lo=ro.getParentSize(),uo=Number(ro.state[ao].toString().replace("px","")),co=uo/lo[ao]*100;return co+"%"}return getStringSize(ro.state[ao])},io=no&&typeof no.width<"u"&&!this.state.isResizing?getStringSize(no.width):oo("width"),so=no&&typeof no.height<"u"&&!this.state.isResizing?getStringSize(no.height):oo("height");return{width:io,height:so}},enumerable:!1,configurable:!0}),to.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var ro=this.appendBase();if(!ro)return{width:0,height:0};var no=!1,oo=this.parentNode.style.flexWrap;oo!=="wrap"&&(no=!0,this.parentNode.style.flexWrap="wrap"),ro.style.position="relative",ro.style.minWidth="100%",ro.style.minHeight="100%";var io={width:ro.offsetWidth,height:ro.offsetHeight};return no&&(this.parentNode.style.flexWrap=oo),this.removeBase(ro),io},to.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))},to.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))},to.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var ro=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:ro.flexBasis!=="auto"?ro.flexBasis:void 0})}},to.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},to.prototype.createSizeForCssProperty=function(ro,no){var oo=this.propsSize&&this.propsSize[no];return this.state[no]==="auto"&&this.state.original[no]===ro&&(typeof oo>"u"||oo==="auto")?"auto":ro},to.prototype.calculateNewMaxFromBoundary=function(ro,no){var oo=this.props.boundsByDirection,io=this.state.direction,so=oo&&hasDirection("left",io),ao=oo&&hasDirection("top",io),lo,uo;if(this.props.bounds==="parent"){var co=this.parentNode;co&&(lo=so?this.resizableRight-this.parentLeft:co.offsetWidth+(this.parentLeft-this.resizableLeft),uo=ao?this.resizableBottom-this.parentTop:co.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(lo=so?this.resizableRight:this.window.innerWidth-this.resizableLeft,uo=ao?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(lo=so?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),uo=ao?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return lo&&Number.isFinite(lo)&&(ro=ro&&ro"u"?10:io.width,fo=typeof oo.width>"u"||oo.width<0?ro:oo.width,ho=typeof io.height>"u"?10:io.height,po=typeof oo.height>"u"||oo.height<0?no:oo.height,go=lo||0,vo=uo||0;if(ao){var bo=(ho-go)*this.ratio+vo,xo=(po-go)*this.ratio+vo,_o=(co-vo)/this.ratio+go,Eo=(fo-vo)/this.ratio+go,So=Math.max(co,bo),To=Math.min(fo,xo),wo=Math.max(ho,_o),Co=Math.min(po,Eo);ro=clamp(ro,So,To),no=clamp(no,wo,Co)}else ro=clamp(ro,co,fo),no=clamp(no,ho,po);return{newWidth:ro,newHeight:no}},to.prototype.setBoundingClientRect=function(){if(this.props.bounds==="parent"){var ro=this.parentNode;if(ro){var no=ro.getBoundingClientRect();this.parentLeft=no.left,this.parentTop=no.top}}if(this.props.bounds&&typeof this.props.bounds!="string"){var oo=this.props.bounds.getBoundingClientRect();this.targetLeft=oo.left,this.targetTop=oo.top}if(this.resizable){var io=this.resizable.getBoundingClientRect(),so=io.left,ao=io.top,lo=io.right,uo=io.bottom;this.resizableLeft=so,this.resizableRight=lo,this.resizableTop=ao,this.resizableBottom=uo}},to.prototype.onResizeStart=function(ro,no){if(!(!this.resizable||!this.window)){var oo=0,io=0;if(ro.nativeEvent&&isMouseEvent(ro.nativeEvent)?(oo=ro.nativeEvent.clientX,io=ro.nativeEvent.clientY):ro.nativeEvent&&isTouchEvent(ro.nativeEvent)&&(oo=ro.nativeEvent.touches[0].clientX,io=ro.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var so=this.props.onResizeStart(ro,no,this.resizable);if(so===!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 ao,lo=this.window.getComputedStyle(this.resizable);if(lo.flexBasis!=="auto"){var uo=this.parentNode;if(uo){var co=this.window.getComputedStyle(uo).flexDirection;this.flexDir=co.startsWith("row")?"row":"column",ao=lo.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var fo={original:{x:oo,y:io,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:__assign(__assign({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(ro.target).cursor||"auto"}),direction:no,flexBasis:ao};this.setState(fo)}},to.prototype.onMouseMove=function(ro){var no=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&isTouchEvent(ro))try{ro.preventDefault(),ro.stopPropagation()}catch{}var oo=this.props,io=oo.maxWidth,so=oo.maxHeight,ao=oo.minWidth,lo=oo.minHeight,uo=isTouchEvent(ro)?ro.touches[0].clientX:ro.clientX,co=isTouchEvent(ro)?ro.touches[0].clientY:ro.clientY,fo=this.state,ho=fo.direction,po=fo.original,go=fo.width,vo=fo.height,bo=this.getParentSize(),xo=calculateNewMax(bo,this.window.innerWidth,this.window.innerHeight,io,so,ao,lo);io=xo.maxWidth,so=xo.maxHeight,ao=xo.minWidth,lo=xo.minHeight;var _o=this.calculateNewSizeFromDirection(uo,co),Eo=_o.newHeight,So=_o.newWidth,To=this.calculateNewMaxFromBoundary(io,so);this.props.snap&&this.props.snap.x&&(So=findClosestSnap(So,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(Eo=findClosestSnap(Eo,this.props.snap.y,this.props.snapGap));var wo=this.calculateNewSizeFromAspectRatio(So,Eo,{width:To.maxWidth,height:To.maxHeight},{width:ao,height:lo});if(So=wo.newWidth,Eo=wo.newHeight,this.props.grid){var Co=snap(So,this.props.grid[0]),Oo=snap(Eo,this.props.grid[1]),Ao=this.props.snapGap||0;So=Ao===0||Math.abs(Co-So)<=Ao?Co:So,Eo=Ao===0||Math.abs(Oo-Eo)<=Ao?Oo:Eo}var Ro={width:So-po.width,height:Eo-po.height};if(go&&typeof go=="string"){if(go.endsWith("%")){var No=So/bo.width*100;So=No+"%"}else if(go.endsWith("vw")){var Mo=So/this.window.innerWidth*100;So=Mo+"vw"}else if(go.endsWith("vh")){var Do=So/this.window.innerHeight*100;So=Do+"vh"}}if(vo&&typeof vo=="string"){if(vo.endsWith("%")){var No=Eo/bo.height*100;Eo=No+"%"}else if(vo.endsWith("vw")){var Mo=Eo/this.window.innerWidth*100;Eo=Mo+"vw"}else if(vo.endsWith("vh")){var Do=Eo/this.window.innerHeight*100;Eo=Do+"vh"}}var jo={width:this.createSizeForCssProperty(So,"width"),height:this.createSizeForCssProperty(Eo,"height")};this.flexDir==="row"?jo.flexBasis=jo.width:this.flexDir==="column"&&(jo.flexBasis=jo.height),reactDomExports.flushSync(function(){no.setState(jo)}),this.props.onResize&&this.props.onResize(ro,ho,this.resizable,Ro)}},to.prototype.onMouseUp=function(ro){var no=this.state,oo=no.isResizing,io=no.direction,so=no.original;if(!(!oo||!this.resizable)){var ao={width:this.size.width-so.width,height:this.size.height-so.height};this.props.onResizeStop&&this.props.onResizeStop(ro,io,this.resizable,ao),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:__assign(__assign({},this.state.backgroundStyle),{cursor:"auto"})})}},to.prototype.updateSize=function(ro){this.setState({width:ro.width,height:ro.height})},to.prototype.renderResizer=function(){var ro=this,no=this.props,oo=no.enable,io=no.handleStyles,so=no.handleClasses,ao=no.handleWrapperStyle,lo=no.handleWrapperClass,uo=no.handleComponent;if(!oo)return null;var co=Object.keys(oo).map(function(fo){return oo[fo]!==!1?reactExports.createElement(Resizer,{key:fo,direction:fo,onResizeStart:ro.onResizeStart,replaceStyles:io&&io[fo],className:so&&so[fo]},uo&&uo[fo]?uo[fo]:null):null});return reactExports.createElement("div",{className:lo,style:ao},co)},to.prototype.render=function(){var ro=this,no=Object.keys(this.props).reduce(function(so,ao){return definedProps.indexOf(ao)!==-1||(so[ao]=ro.props[ao]),so},{}),oo=__assign(__assign(__assign({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&&(oo.flexBasis=this.state.flexBasis);var io=this.props.as||"div";return reactExports.createElement(io,__assign({ref:this.ref,style:oo,className:this.props.className},no),this.state.isResizing&&reactExports.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},to.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},to}(reactExports.PureComponent),_a$2;const tasksToTaskRows=(eo,to)=>eo.map(ro=>({...ro,level:to,children:ro.children?tasksToTaskRows(ro.children,to+1):void 0})),tv=class tv{constructor(){this.rows$=new State$1(List$1([])),this.selectedRowId$=new State$1(void 0),this.startTime=Number.MAX_SAFE_INTEGER,this.endTime=0}toggleRow(to){const ro=this.rows$.getSnapshot(),no=ro.findIndex(ao=>ao.id===to),oo=ro.get(no);if(!oo)return;const{children:io}=oo;if(!io)return;const so=[...ro];so[no]={...oo,isExpanded:!oo.isExpanded},oo.isExpanded?so.splice(no+1,io.length):so.splice(no+1,0,...io),this.rows$.next(List$1(so))}setRows(to){this.rows$.next(List$1(to))}setTasks(to){this.startTime=Number.MAX_SAFE_INTEGER,this.endTime=0,this.rows$.next(List$1(tasksToTaskRows(to,0)));const ro=no=>{no.forEach(oo=>{oo.startTimethis.endTime&&(this.endTime=oo.endTime),oo.children&&ro(oo.children)})};ro(to)}};_a$2=SINGLETON,tv[_a$2]=!0;let GanttViewModel=tv;const GanttViewModelToken=createInjectionToken("GanttViewModel",new GanttViewModel);function r$2(eo){var to,ro,no="";if(typeof eo=="string"||typeof eo=="number")no+=eo;else if(typeof eo=="object")if(Array.isArray(eo))for(to=0;to1&&(!eo.frozen||eo.idx+no-1<=to))return no}function stopPropagation(eo){eo.stopPropagation()}function scrollIntoView$2(eo){eo==null||eo.scrollIntoView({inline:"nearest",block:"nearest"})}function createCellEvent(eo){let to=!1;const ro={...eo,preventGridDefault(){to=!0},isGridDefaultPrevented(){return to}};return Object.setPrototypeOf(ro,Object.getPrototypeOf(eo)),ro}const nonInputKeys=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 isCtrlKeyHeldDown(eo){return(eo.ctrlKey||eo.metaKey)&&eo.key!=="Control"}function isDefaultCellInput(eo){return!nonInputKeys.has(eo.key)}function onEditorNavigation({key:eo,target:to}){var ro;return eo==="Tab"&&(to instanceof HTMLInputElement||to instanceof HTMLTextAreaElement||to instanceof HTMLSelectElement)?((ro=to.closest(".rdg-editor-container"))==null?void 0:ro.querySelectorAll("input, textarea, select").length)===1:!1}const measuringCellClassname="m1l09lto7-0-0-beta-39";function renderMeasuringCells(eo){return eo.map(({key:to,idx:ro,minWidth:no,maxWidth:oo})=>jsxRuntimeExports.jsx("div",{className:measuringCellClassname,style:{gridColumnStart:ro+1,minWidth:no,maxWidth:oo},"data-measuring-cell-key":to},to))}function isSelectedCellEditable({selectedPosition:eo,columns:to,rows:ro}){const no=to[eo.idx],oo=ro[eo.rowIdx];return isCellEditable(no,oo)}function isCellEditable(eo,to){return eo.renderEditCell!=null&&(typeof eo.editable=="function"?eo.editable(to):eo.editable)!==!1}function getSelectedCellColSpan({rows:eo,topSummaryRows:to,bottomSummaryRows:ro,rowIdx:no,mainHeaderRowIdx:oo,lastFrozenColumnIndex:io,column:so}){const ao=(to==null?void 0:to.length)??0;if(no===oo)return getColSpan(so,io,{type:"HEADER"});if(to&&no>oo&&no<=ao+oo)return getColSpan(so,io,{type:"SUMMARY",row:to[no+ao]});if(no>=0&&no{for(const Co of oo){const Oo=Co.idx;if(Oo>bo)break;const Ao=getSelectedCellColSpan({rows:io,topSummaryRows:so,bottomSummaryRows:ao,rowIdx:xo,mainHeaderRowIdx:uo,lastFrozenColumnIndex:go,column:Co});if(Ao&&bo>Oo&&bowo.level+uo,To=()=>{if(to){let Co=no[bo].parent;for(;Co!==void 0;){const Oo=So(Co);if(xo===Oo){bo=Co.idx+Co.colSpan;break}Co=Co.parent}}else if(eo){let Co=no[bo].parent,Oo=!1;for(;Co!==void 0;){const Ao=So(Co);if(xo>=Ao){bo=Co.idx,xo=Ao,Oo=!0;break}Co=Co.parent}Oo||(bo=fo,xo=ho)}};if(vo(po)&&(Eo(to),xo=Oo&&(xo=Ao,bo=Co.idx),Co=Co.parent}}return{idx:bo,rowIdx:xo}}function canExitGrid({maxColIdx:eo,minRowIdx:to,maxRowIdx:ro,selectedPosition:{rowIdx:no,idx:oo},shiftKey:io}){return io?oo===0&&no===to:oo===eo&&no===ro}const cell="c1wupbe7-0-0-beta-39",cellClassname=`rdg-cell ${cell}`,cellFrozen="cd0kgiy7-0-0-beta-39",cellFrozenClassname=`rdg-cell-frozen ${cellFrozen}`,cellFrozenLast="c1730fa47-0-0-beta-39",cellFrozenLastClassname=`rdg-cell-frozen-last ${cellFrozenLast}`;function getRowStyle(eo,to){return to!==void 0?{"--rdg-grid-row-start":eo,"--rdg-row-height":`${to}px`}:{"--rdg-grid-row-start":eo}}function getHeaderCellStyle(eo,to,ro){const no=to+1,oo=`calc(${ro-1} * var(--rdg-header-row-height))`;return eo.parent===void 0?{insetBlockStart:0,gridRowStart:1,gridRowEnd:no,paddingBlockStart:oo}:{insetBlockStart:`calc(${to-ro} * var(--rdg-header-row-height))`,gridRowStart:no-ro,gridRowEnd:no,paddingBlockStart:oo}}function getCellStyle(eo,to=1){const ro=eo.idx+1;return{gridColumnStart:ro,gridColumnEnd:ro+to,insetInlineStart:eo.frozen?`var(--rdg-frozen-left-${eo.idx})`:void 0}}function getCellClassname(eo,...to){return clsx(cellClassname,...to,eo.frozen&&cellFrozenClassname,eo.isLastFrozenColumn&&cellFrozenLastClassname)}const{min,max,round,floor,sign,abs:abs$1}=Math;function assertIsValidKeyGetter(eo){if(typeof eo!="function")throw new Error("Please specify the rowKeyGetter prop to use selection")}function clampColumnWidth(eo,{minWidth:to,maxWidth:ro}){return eo=max(eo,to),typeof ro=="number"&&ro>=to?min(eo,ro):eo}function getHeaderCellRowSpan(eo,to){return eo.parent===void 0?to:eo.level-eo.parent.level}const checkboxLabel="c1hs68w07-0-0-beta-39",checkboxLabelClassname=`rdg-checkbox-label ${checkboxLabel}`,checkboxInput="cojpd0n7-0-0-beta-39",checkboxInputClassname=`rdg-checkbox-input ${checkboxInput}`,checkbox="cwsfieb7-0-0-beta-39",checkboxClassname=`rdg-checkbox ${checkbox}`,checkboxLabelDisabled="c1fgadbl7-0-0-beta-39",checkboxLabelDisabledClassname=`rdg-checkbox-label-disabled ${checkboxLabelDisabled}`;function renderCheckbox({onChange:eo,...to}){function ro(no){eo(no.target.checked,no.nativeEvent.shiftKey)}return jsxRuntimeExports.jsxs("label",{className:clsx(checkboxLabelClassname,to.disabled&&checkboxLabelDisabledClassname),children:[jsxRuntimeExports.jsx("input",{type:"checkbox",...to,className:checkboxInputClassname,onChange:ro}),jsxRuntimeExports.jsx("div",{className:checkboxClassname})]})}function renderValue(eo){try{return eo.row[eo.column.key]}catch{return null}}const DataGridDefaultRenderersContext=reactExports.createContext(void 0),DataGridDefaultRenderersProvider=DataGridDefaultRenderersContext.Provider;function useDefaultRenderers(){return reactExports.useContext(DataGridDefaultRenderersContext)}const RowSelectionContext=reactExports.createContext(void 0),RowSelectionProvider=RowSelectionContext.Provider,RowSelectionChangeContext=reactExports.createContext(void 0),RowSelectionChangeProvider=RowSelectionChangeContext.Provider,SELECT_COLUMN_KEY="select-row",DEFAULT_COLUMN_WIDTH="auto",DEFAULT_COLUMN_MIN_WIDTH=50;function useCalculatedColumns({rawColumns:eo,defaultColumnOptions:to,measuredColumnWidths:ro,resizedColumnWidths:no,viewportWidth:oo,scrollLeft:io,enableVirtualization:so}){const ao=(to==null?void 0:to.width)??DEFAULT_COLUMN_WIDTH,lo=(to==null?void 0:to.minWidth)??DEFAULT_COLUMN_MIN_WIDTH,uo=(to==null?void 0:to.maxWidth)??void 0,co=(to==null?void 0:to.renderCell)??renderValue,fo=(to==null?void 0:to.sortable)??!1,ho=(to==null?void 0:to.resizable)??!1,po=(to==null?void 0:to.draggable)??!1,{columns:go,colSpanColumns:vo,lastFrozenColumnIndex:bo,headerRowsCount:xo}=reactExports.useMemo(()=>{let Oo=-1,Ao=1;const Ro=[];No(eo,1);function No(Do,jo,Fo){for(const $o of Do){if("children"in $o){const qo={name:$o.name,parent:Fo,idx:-1,colSpan:0,level:0,headerCellClass:$o.headerCellClass};No($o.children,jo+1,qo);continue}const Lo=$o.frozen??!1,Ho={...$o,parent:Fo,idx:0,level:0,frozen:Lo,isLastFrozenColumn:!1,width:$o.width??ao,minWidth:$o.minWidth??lo,maxWidth:$o.maxWidth??uo,sortable:$o.sortable??fo,resizable:$o.resizable??ho,draggable:$o.draggable??po,renderCell:$o.renderCell??co};Ro.push(Ho),Lo&&Oo++,jo>Ao&&(Ao=jo)}}Ro.sort(({key:Do,frozen:jo},{key:Fo,frozen:$o})=>Do===SELECT_COLUMN_KEY?-1:Fo===SELECT_COLUMN_KEY?1:jo?$o?0:-1:$o?1:0);const Mo=[];return Ro.forEach((Do,jo)=>{Do.idx=jo,updateColumnParent(Do,jo,0),Do.colSpan!=null&&Mo.push(Do)}),Oo!==-1&&(Ro[Oo].isLastFrozenColumn=!0),{columns:Ro,colSpanColumns:Mo,lastFrozenColumnIndex:Oo,headerRowsCount:Ao}},[eo,ao,lo,uo,co,ho,fo,po]),{templateColumns:_o,layoutCssVars:Eo,totalFrozenColumnWidth:So,columnMetrics:To}=reactExports.useMemo(()=>{const Oo=new Map;let Ao=0,Ro=0;const No=[];for(const Do of go){let jo=no.get(Do.key)??ro.get(Do.key)??Do.width;typeof jo=="number"?jo=clampColumnWidth(jo,Do):jo=Do.minWidth,No.push(`${jo}px`),Oo.set(Do,{width:jo,left:Ao}),Ao+=jo}if(bo!==-1){const Do=Oo.get(go[bo]);Ro=Do.left+Do.width}const Mo={};for(let Do=0;Do<=bo;Do++){const jo=go[Do];Mo[`--rdg-frozen-left-${jo.idx}`]=`${Oo.get(jo).left}px`}return{templateColumns:No,layoutCssVars:Mo,totalFrozenColumnWidth:Ro,columnMetrics:Oo}},[ro,no,go,bo]),[wo,Co]=reactExports.useMemo(()=>{if(!so)return[0,go.length-1];const Oo=io+So,Ao=io+oo,Ro=go.length-1,No=min(bo+1,Ro);if(Oo>=Ao)return[No,No];let Mo=No;for(;MoOo)break;Mo++}let Do=Mo;for(;Do=Ao)break;Do++}const jo=max(No,Mo-1),Fo=min(Ro,Do+1);return[jo,Fo]},[To,go,bo,io,So,oo,so]);return{columns:go,colSpanColumns:vo,colOverscanStartIdx:wo,colOverscanEndIdx:Co,templateColumns:_o,layoutCssVars:Eo,headerRowsCount:xo,lastFrozenColumnIndex:bo,totalFrozenColumnWidth:So}}function updateColumnParent(eo,to,ro){if(ro"u"?reactExports.useEffect:reactExports.useLayoutEffect;function useColumnWidths(eo,to,ro,no,oo,io,so,ao,lo,uo){const co=reactExports.useRef(oo),fo=eo.length===to.length,ho=fo&&oo!==co.current,po=[...ro],go=[];for(const{key:_o,idx:Eo,width:So}of to)typeof So=="string"&&(ho||!so.has(_o))&&!io.has(_o)&&(po[Eo]=So,go.push(_o));const vo=po.join(" ");useLayoutEffect(()=>{co.current=oo,bo(go)});function bo(_o){_o.length!==0&&lo(Eo=>{const So=new Map(Eo);let To=!1;for(const wo of _o){const Co=measureColumnWidth(no,wo);To||(To=Co!==Eo.get(wo)),Co===void 0?So.delete(wo):So.set(wo,Co)}return To?So:Eo})}function xo(_o,Eo){const{key:So}=_o,To=[...ro],wo=[];for(const{key:Oo,idx:Ao,width:Ro}of to)if(So===Oo){const No=typeof Eo=="number"?`${Eo}px`:Eo;To[Ao]=No}else fo&&typeof Ro=="string"&&!io.has(Oo)&&(To[Ao]=Ro,wo.push(Oo));no.current.style.gridTemplateColumns=To.join(" ");const Co=typeof Eo=="number"?Eo:measureColumnWidth(no,So);reactDomExports.flushSync(()=>{ao(Oo=>{const Ao=new Map(Oo);return Ao.set(So,Co),Ao}),bo(wo)}),uo==null||uo(_o.idx,Co)}return{gridTemplateColumns:vo,handleColumnResize:xo}}function measureColumnWidth(eo,to){const ro=`[data-measuring-cell-key="${CSS.escape(to)}"]`,no=eo.current.querySelector(ro);return no==null?void 0:no.getBoundingClientRect().width}function useGridDimensions(){const eo=reactExports.useRef(null),[to,ro]=reactExports.useState(1),[no,oo]=reactExports.useState(1);return useLayoutEffect(()=>{const{ResizeObserver:io}=window;if(io==null)return;const{clientWidth:so,clientHeight:ao,offsetWidth:lo,offsetHeight:uo}=eo.current,{width:co,height:fo}=eo.current.getBoundingClientRect(),ho=co-lo+so,po=fo-uo+ao;ro(ho),oo(po);const go=new io(vo=>{const bo=vo[0].contentBoxSize[0];reactDomExports.flushSync(()=>{ro(bo.inlineSize),oo(bo.blockSize)})});return go.observe(eo.current),()=>{go.disconnect()}},[]),[eo,to,no]}function useLatestFunc(eo){const to=reactExports.useRef(eo);reactExports.useEffect(()=>{to.current=eo});const ro=reactExports.useCallback((...no)=>{to.current(...no)},[]);return eo&&ro}function useRovingTabIndex(eo){const[to,ro]=reactExports.useState(!1);to&&!eo&&ro(!1);function no(io){io.target!==io.currentTarget&&ro(!0)}return{tabIndex:eo&&!to?0:-1,childTabIndex:eo?0:-1,onFocus:eo?no:void 0}}function useViewportColumns({columns:eo,colSpanColumns:to,rows:ro,topSummaryRows:no,bottomSummaryRows:oo,colOverscanStartIdx:io,colOverscanEndIdx:so,lastFrozenColumnIndex:ao,rowOverscanStartIdx:lo,rowOverscanEndIdx:uo}){const co=reactExports.useMemo(()=>{if(io===0)return 0;let fo=io;const ho=(po,go)=>go!==void 0&&po+go>io?(fo=po,!0):!1;for(const po of to){const go=po.idx;if(go>=fo||ho(go,getColSpan(po,ao,{type:"HEADER"})))break;for(let vo=lo;vo<=uo;vo++){const bo=ro[vo];if(ho(go,getColSpan(po,ao,{type:"ROW",row:bo})))break}if(no!=null){for(const vo of no)if(ho(go,getColSpan(po,ao,{type:"SUMMARY",row:vo})))break}if(oo!=null){for(const vo of oo)if(ho(go,getColSpan(po,ao,{type:"SUMMARY",row:vo})))break}}return fo},[lo,uo,ro,no,oo,io,ao,to]);return reactExports.useMemo(()=>{const fo=[];for(let ho=0;ho<=so;ho++){const po=eo[ho];ho{if(typeof to=="number")return{totalRowHeight:to*eo.length,gridTemplateRows:` repeat(${eo.length}, ${to}px)`,getRowTop:bo=>bo*to,getRowHeight:()=>to,findRowIdx:bo=>floor(bo/to)};let ho=0,po=" ";const go=eo.map(bo=>{const xo=to(bo),_o={top:ho,height:xo};return po+=`${xo}px `,ho+=xo,_o}),vo=bo=>max(0,min(eo.length-1,bo));return{totalRowHeight:ho,gridTemplateRows:po,getRowTop:bo=>go[vo(bo)].top,getRowHeight:bo=>go[vo(bo)].height,findRowIdx(bo){let xo=0,_o=go.length-1;for(;xo<=_o;){const Eo=xo+floor((_o-xo)/2),So=go[Eo].top;if(So===bo)return Eo;if(Sobo&&(_o=Eo-1),xo>_o)return _o}return 0}}},[to,eo]);let co=0,fo=eo.length-1;if(oo){const po=uo(no),go=uo(no+ro);co=max(0,po-4),fo=min(eo.length-1,go+4)}return{rowOverscanStartIdx:co,rowOverscanEndIdx:fo,totalRowHeight:io,gridTemplateRows:so,getRowTop:ao,getRowHeight:lo,findRowIdx:uo}}const cellDragHandle="cadd3bp7-0-0-beta-39",cellDragHandleFrozenClassname="ccmuez27-0-0-beta-39",cellDragHandleClassname=`rdg-cell-drag-handle ${cellDragHandle}`;function DragHandle({gridRowStart:eo,rows:to,columns:ro,selectedPosition:no,latestDraggedOverRowIdx:oo,isCellEditable:io,onRowsChange:so,onFill:ao,onClick:lo,setDragging:uo,setDraggedOverRowIdx:co}){var So;const{idx:fo,rowIdx:ho}=no,po=ro[fo];function go(To){if(To.preventDefault(),To.buttons!==1)return;uo(!0),window.addEventListener("mouseover",wo),window.addEventListener("mouseup",Co);function wo(Oo){Oo.buttons!==1&&Co()}function Co(){window.removeEventListener("mouseover",wo),window.removeEventListener("mouseup",Co),uo(!1),vo()}}function vo(){const To=oo.current;if(To===void 0)return;const wo=ho0&&(so==null||so(Ao,{indexes:Ro,column:Co}))}const _o=((So=po.colSpan)==null?void 0:So.call(po,{type:"ROW",row:to[ho]}))??1,Eo=getCellStyle(po,_o);return jsxRuntimeExports.jsx("div",{style:{...Eo,gridRowStart:eo,insetInlineStart:Eo.insetInlineStart&&typeof po.width=="number"?`calc(${Eo.insetInlineStart} + ${po.width}px - var(--rdg-drag-handle-size))`:void 0},className:clsx(cellDragHandleClassname,po.frozen&&cellDragHandleFrozenClassname),onClick:lo,onMouseDown:go,onDoubleClick:bo})}const cellEditing="c1tngyp17-0-0-beta-39";function EditCell({column:eo,colSpan:to,row:ro,rowIdx:no,onRowChange:oo,closeEditor:io,onKeyDown:so,navigate:ao}){var xo,_o,Eo;const lo=reactExports.useRef(),uo=((xo=eo.editorOptions)==null?void 0:xo.commitOnOutsideClick)!==!1,co=useLatestFunc(()=>{po(!0,!1)});reactExports.useEffect(()=>{if(!uo)return;function So(){lo.current=requestAnimationFrame(co)}return addEventListener("mousedown",So,{capture:!0}),()=>{removeEventListener("mousedown",So,{capture:!0}),fo()}},[uo,co]);function fo(){cancelAnimationFrame(lo.current)}function ho(So){if(so){const To=createCellEvent(So);if(so({mode:"EDIT",row:ro,column:eo,rowIdx:no,navigate(){ao(So)},onClose:po},To),To.isGridDefaultPrevented())return}So.key==="Escape"?po():So.key==="Enter"?po(!0):onEditorNavigation(So)&&ao(So)}function po(So=!1,To=!0){So?oo(ro,!0,To):io(To)}function go(So,To=!1){oo(So,To,To)}const{cellClass:vo}=eo,bo=getCellClassname(eo,"rdg-editor-container",typeof vo=="function"?vo(ro):vo,!((_o=eo.editorOptions)!=null&&_o.displayCellContent)&&cellEditing);return jsxRuntimeExports.jsx("div",{role:"gridcell","aria-colindex":eo.idx+1,"aria-colspan":to,"aria-selected":!0,className:bo,style:getCellStyle(eo,to),onKeyDown:ho,onMouseDownCapture:fo,children:eo.renderEditCell!=null&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[eo.renderEditCell({column:eo,row:ro,onRowChange:go,onClose:po}),((Eo=eo.editorOptions)==null?void 0:Eo.displayCellContent)&&eo.renderCell({column:eo,row:ro,isCellEditable:!0,tabIndex:-1,onRowChange:go})]})})}function GroupedColumnHeaderCell({column:eo,rowIdx:to,isCellSelected:ro,selectCell:no}){const{tabIndex:oo,onFocus:io}=useRovingTabIndex(ro),{colSpan:so}=eo,ao=getHeaderCellRowSpan(eo,to),lo=eo.idx+1;function uo(){no({idx:eo.idx,rowIdx:to})}return jsxRuntimeExports.jsx("div",{role:"columnheader","aria-colindex":lo,"aria-colspan":so,"aria-rowspan":ao,"aria-selected":ro,tabIndex:oo,className:clsx(cellClassname,eo.headerCellClass),style:{...getHeaderCellStyle(eo,to,ao),gridColumnStart:lo,gridColumnEnd:lo+so},onFocus:io,onClick:uo,children:eo.name})}const headerSortCellClassname="hizp7y17-0-0-beta-39",headerSortName="h14cojrm7-0-0-beta-39",headerSortNameClassname=`rdg-header-sort-name ${headerSortName}`;function renderHeaderCell({column:eo,sortDirection:to,priority:ro}){return eo.sortable?jsxRuntimeExports.jsx(SortableHeaderCell,{sortDirection:to,priority:ro,children:eo.name}):eo.name}function SortableHeaderCell({sortDirection:eo,priority:to,children:ro}){const no=useDefaultRenderers().renderSortStatus;return jsxRuntimeExports.jsxs("span",{className:headerSortCellClassname,children:[jsxRuntimeExports.jsx("span",{className:headerSortNameClassname,children:ro}),jsxRuntimeExports.jsx("span",{children:no({sortDirection:eo,priority:to})})]})}const cellSortableClassname="celq7o97-0-0-beta-39",cellResizable="ceqw94e7-0-0-beta-39",cellResizableClassname=`rdg-cell-resizable ${cellResizable}`,resizeHandleClassname="r12jy2ca7-0-0-beta-39",cellDragging="c1j3os1p7-0-0-beta-39",cellDraggingClassname=`rdg-cell-dragging ${cellDragging}`,cellOver="c1ui3nad7-0-0-beta-39",cellOverClassname=`rdg-cell-drag-over ${cellOver}`;function HeaderCell({column:eo,colSpan:to,rowIdx:ro,isCellSelected:no,onColumnResize:oo,onColumnsReorder:io,sortColumns:so,onSortColumnsChange:ao,selectCell:lo,shouldFocusGrid:uo,direction:co}){const[fo,ho]=reactExports.useState(!1),[po,go]=reactExports.useState(!1),vo=co==="rtl",bo=getHeaderCellRowSpan(eo,ro),{tabIndex:xo,childTabIndex:_o,onFocus:Eo}=useRovingTabIndex(no),So=so==null?void 0:so.findIndex(ws=>ws.columnKey===eo.key),To=So!==void 0&&So>-1?so[So]:void 0,wo=To==null?void 0:To.direction,Co=To!==void 0&&so.length>1?So+1:void 0,Oo=wo&&!Co?wo==="ASC"?"ascending":"descending":void 0,{sortable:Ao,resizable:Ro,draggable:No}=eo,Mo=getCellClassname(eo,eo.headerCellClass,Ao&&cellSortableClassname,Ro&&cellResizableClassname,fo&&cellDraggingClassname,po&&cellOverClassname),Do=eo.renderHeaderCell??renderHeaderCell;function jo(ws){if(ws.pointerType==="mouse"&&ws.buttons!==1)return;const{currentTarget:Ds,pointerId:Jo}=ws,Cs=Ds.parentElement,{right:Bs,left:zs}=Cs.getBoundingClientRect(),Ls=vo?ws.clientX-zs:Bs-ws.clientX;function ga(Xs){Xs.preventDefault();const{right:$a,left:Ll}=Cs.getBoundingClientRect(),Kl=vo?$a+Ls-Xs.clientX:Xs.clientX+Ls-Ll;Kl>0&&oo(eo,clampColumnWidth(Kl,eo))}function Js(){Ds.removeEventListener("pointermove",ga),Ds.removeEventListener("lostpointercapture",Js)}Ds.setPointerCapture(Jo),Ds.addEventListener("pointermove",ga),Ds.addEventListener("lostpointercapture",Js)}function Fo(ws){if(ao==null)return;const{sortDescendingFirst:Ds}=eo;if(To===void 0){const Jo={columnKey:eo.key,direction:Ds?"DESC":"ASC"};ao(so&&ws?[...so,Jo]:[Jo])}else{let Jo;if((Ds===!0&&wo==="DESC"||Ds!==!0&&wo==="ASC")&&(Jo={columnKey:eo.key,direction:wo==="ASC"?"DESC":"ASC"}),ws){const Cs=[...so];Jo?Cs[So]=Jo:Cs.splice(So,1),ao(Cs)}else ao(Jo?[Jo]:[])}}function $o(ws){lo({idx:eo.idx,rowIdx:ro}),Ao&&Fo(ws.ctrlKey||ws.metaKey)}function Lo(){oo(eo,"max-content")}function Ho(ws){Eo==null||Eo(ws),uo&&lo({idx:0,rowIdx:ro})}function qo(ws){(ws.key===" "||ws.key==="Enter")&&(ws.preventDefault(),Fo(ws.ctrlKey||ws.metaKey))}function Uo(ws){ws.dataTransfer.setData("text/plain",eo.key),ws.dataTransfer.dropEffect="move",ho(!0)}function Yo(){ho(!1)}function Zo(ws){ws.preventDefault(),ws.dataTransfer.dropEffect="move"}function _s(ws){go(!1);const Ds=ws.dataTransfer.getData("text/plain");Ds!==eo.key&&(ws.preventDefault(),io==null||io(Ds,eo.key))}function Ss(ws){isEventPertinent(ws)&&go(!0)}function As(ws){isEventPertinent(ws)&&go(!1)}let Ns;return No&&(Ns={draggable:!0,onDragStart:Uo,onDragEnd:Yo,onDragOver:Zo,onDragEnter:Ss,onDragLeave:As,onDrop:_s}),jsxRuntimeExports.jsxs("div",{role:"columnheader","aria-colindex":eo.idx+1,"aria-colspan":to,"aria-rowspan":bo,"aria-selected":no,"aria-sort":Oo,tabIndex:uo?0:xo,className:Mo,style:{...getHeaderCellStyle(eo,ro,bo),...getCellStyle(eo,to)},onFocus:Ho,onClick:$o,onKeyDown:Ao?qo:void 0,...Ns,children:[Do({column:eo,sortDirection:wo,priority:Co,tabIndex:_o}),Ro&&jsxRuntimeExports.jsx("div",{className:resizeHandleClassname,onClick:stopPropagation,onDoubleClick:Lo,onPointerDown:jo})]})}function isEventPertinent(eo){const to=eo.relatedTarget;return!eo.currentTarget.contains(to)}const row="r1otpg647-0-0-beta-39",rowClassname=`rdg-row ${row}`,rowSelected="rel5gk27-0-0-beta-39",rowSelectedClassname="rdg-row-selected",rowSelectedWithFrozenCell="r1qymf1z7-0-0-beta-39",headerRow="h197vzie7-0-0-beta-39",headerRowClassname=`rdg-header-row ${headerRow}`;function HeaderRow({rowIdx:eo,columns:to,onColumnResize:ro,onColumnsReorder:no,sortColumns:oo,onSortColumnsChange:io,lastFrozenColumnIndex:so,selectedCellIdx:ao,selectCell:lo,shouldFocusGrid:uo,direction:co}){const fo=[];for(let ho=0;hoto&&lo.parent!==void 0;)lo=lo.parent;if(lo.level===to&&!so.has(lo)){so.add(lo);const{idx:uo}=lo;io.push(jsxRuntimeExports.jsx(GroupedColumnHeaderCell,{column:lo,rowIdx:eo,isCellSelected:no===uo,selectCell:oo},uo))}}}return jsxRuntimeExports.jsx("div",{role:"row","aria-rowindex":eo,className:headerRowClassname,children:io})}const GroupedColumnHeaderRow$1=reactExports.memo(GroupedColumnHeaderRow),cellCopied="ccpfvsn7-0-0-beta-39",cellCopiedClassname=`rdg-cell-copied ${cellCopied}`,cellDraggedOver="c1bmg16t7-0-0-beta-39",cellDraggedOverClassname=`rdg-cell-dragged-over ${cellDraggedOver}`;function Cell({column:eo,colSpan:to,isCellSelected:ro,isCopied:no,isDraggedOver:oo,row:io,rowIdx:so,onClick:ao,onDoubleClick:lo,onContextMenu:uo,onRowChange:co,selectCell:fo,...ho}){const{tabIndex:po,childTabIndex:go,onFocus:vo}=useRovingTabIndex(ro),{cellClass:bo}=eo,xo=getCellClassname(eo,typeof bo=="function"?bo(io):bo,no&&cellCopiedClassname,oo&&cellDraggedOverClassname),_o=isCellEditable(eo,io);function Eo(Oo){fo({rowIdx:so,idx:eo.idx},Oo)}function So(Oo){if(ao){const Ao=createCellEvent(Oo);if(ao({row:io,column:eo,selectCell:Eo},Ao),Ao.isGridDefaultPrevented())return}Eo()}function To(Oo){if(uo){const Ao=createCellEvent(Oo);if(uo({row:io,column:eo,selectCell:Eo},Ao),Ao.isGridDefaultPrevented())return}Eo()}function wo(Oo){if(lo){const Ao=createCellEvent(Oo);if(lo({row:io,column:eo,selectCell:Eo},Ao),Ao.isGridDefaultPrevented())return}Eo(!0)}function Co(Oo){co(eo,Oo)}return jsxRuntimeExports.jsx("div",{role:"gridcell","aria-colindex":eo.idx+1,"aria-colspan":to,"aria-selected":ro,"aria-readonly":!_o||void 0,tabIndex:po,className:xo,style:getCellStyle(eo,to),onClick:So,onDoubleClick:wo,onContextMenu:To,onFocus:vo,...ho,children:eo.renderCell({column:eo,row:io,isCellEditable:_o,tabIndex:go,onRowChange:Co})})}const Cell$1=reactExports.memo(Cell);function Row({className:eo,rowIdx:to,gridRowStart:ro,height:no,selectedCellIdx:oo,isRowSelected:io,copiedCellIdx:so,draggedOverCellIdx:ao,lastFrozenColumnIndex:lo,row:uo,viewportColumns:co,selectedCellEditor:fo,onCellClick:ho,onCellDoubleClick:po,onCellContextMenu:go,rowClass:vo,setDraggedOverRowIdx:bo,onMouseEnter:xo,onRowChange:_o,selectCell:Eo,...So},To){const wo=useLatestFunc((Ao,Ro)=>{_o(Ao,to,Ro)});function Co(Ao){bo==null||bo(to),xo==null||xo(Ao)}eo=clsx(rowClassname,`rdg-row-${to%2===0?"even":"odd"}`,vo==null?void 0:vo(uo,to),eo,oo===-1&&rowSelectedClassname);const Oo=[];for(let Ao=0;Ao{scrollIntoView$2(oo.current)}),useLayoutEffect(()=>{function io(){no(null)}const so=new IntersectionObserver(io,{root:ro,threshold:1});return so.observe(oo.current),()=>{so.disconnect()}},[ro,no]),jsxRuntimeExports.jsx("div",{ref:oo,style:{gridColumn:eo===void 0?"1/-1":eo+1,gridRow:to===void 0?"1/-1":to+2}})}const arrow="a1mygwml7-0-0-beta-39",arrowClassname=`rdg-sort-arrow ${arrow}`;function renderSortStatus({sortDirection:eo,priority:to}){return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderSortIcon({sortDirection:eo}),renderSortPriority({priority:to})]})}function renderSortIcon({sortDirection:eo}){return eo===void 0?null:jsxRuntimeExports.jsx("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:arrowClassname,"aria-hidden":!0,children:jsxRuntimeExports.jsx("path",{d:eo==="ASC"?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}function renderSortPriority({priority:eo}){return eo}const root="r104f42s7-0-0-beta-39",rootClassname=`rdg ${root}`,viewportDragging="v7ly7s7-0-0-beta-39",viewportDraggingClassname=`rdg-viewport-dragging ${viewportDragging}`,focusSinkClassname="fc4f4zb7-0-0-beta-39",focusSinkHeaderAndSummaryClassname="fq51q037-0-0-beta-39",summaryCellClassname="s1n3hxke7-0-0-beta-39";function SummaryCell({column:eo,colSpan:to,row:ro,rowIdx:no,isCellSelected:oo,selectCell:io}){var ho;const{tabIndex:so,childTabIndex:ao,onFocus:lo}=useRovingTabIndex(oo),{summaryCellClass:uo}=eo,co=getCellClassname(eo,summaryCellClassname,typeof uo=="function"?uo(ro):uo);function fo(){io({rowIdx:no,idx:eo.idx})}return jsxRuntimeExports.jsx("div",{role:"gridcell","aria-colindex":eo.idx+1,"aria-colspan":to,"aria-selected":oo,tabIndex:so,className:co,style:getCellStyle(eo,to),onClick:fo,onFocus:lo,children:(ho=eo.renderSummaryCell)==null?void 0:ho.call(eo,{column:eo,row:ro,tabIndex:ao})})}const SummaryCell$1=reactExports.memo(SummaryCell),summaryRow="snfqesz7-0-0-beta-39",topSummaryRow="t1jijrjz7-0-0-beta-39",topSummaryRowBorderClassname="t14bmecc7-0-0-beta-39",bottomSummaryRowBorderClassname="b1odhhml7-0-0-beta-39",summaryRowClassname=`rdg-summary-row ${summaryRow}`,topSummaryRowClassname=`rdg-top-summary-row ${topSummaryRow}`;function SummaryRow({rowIdx:eo,gridRowStart:to,row:ro,viewportColumns:no,top:oo,bottom:io,lastFrozenColumnIndex:so,selectedCellIdx:ao,isTop:lo,showBorder:uo,selectCell:co,"aria-rowindex":fo}){const ho=[];for(let po=0;ponew Map),[Xl,Nl]=reactExports.useState(()=>new Map),[xa,El]=reactExports.useState(null),[cu,ks]=reactExports.useState(!1),[Es,bs]=reactExports.useState(void 0),[Os,Vs]=reactExports.useState(null),[Ks,Ms,Hs]=useGridDimensions(),{columns:Zs,colSpanColumns:xl,lastFrozenColumnIndex:Sl,headerRowsCount:$l,colOverscanStartIdx:ru,colOverscanEndIdx:au,templateColumns:zl,layoutCssVars:pu,totalFrozenColumnWidth:Su}=useCalculatedColumns({rawColumns:ro,defaultColumnOptions:vo,measuredColumnWidths:Xl,resizedColumnWidths:Ll,scrollLeft:Xs,viewportWidth:Ms,enableVirtualization:zs}),Zl=(oo==null?void 0:oo.length)??0,Dl=(io==null?void 0:io.length)??0,gu=Zl+Dl,lu=$l+Zl,mu=$l-1,ou=-lu,Fl=ou+mu,yl=no.length+Dl-1,[Ys,vu]=reactExports.useState(()=>({idx:-1,rowIdx:ou-1,mode:"SELECT"})),Nu=reactExports.useRef(Ys),du=reactExports.useRef(Es),cp=reactExports.useRef(-1),qu=reactExports.useRef(null),Ru=reactExports.useRef(!1),_h=Ss==="treegrid",qs=$l*Ns,Ko=Hs-qs-gu*ws,Qo=fo!=null&&ho!=null,zo=Ls==="rtl",Vo=zo?"ArrowRight":"ArrowLeft",Bo=zo?"ArrowLeft":"ArrowRight",Xo=Yo??$l+no.length+gu,vs=reactExports.useMemo(()=>({renderCheckbox:Cs,renderSortStatus:Jo}),[Cs,Jo]),ys=reactExports.useMemo(()=>{const{length:Qs}=no;return Qs!==0&&fo!=null&&so!=null&&fo.size>=Qs&&no.every(na=>fo.has(so(na)))},[no,fo,so]),{rowOverscanStartIdx:ps,rowOverscanEndIdx:Rs,totalRowHeight:Us,gridTemplateRows:Rl,getRowTop:Ml,getRowHeight:Ol,findRowIdx:Cl}=useViewportRows({rows:no,rowHeight:As,clientHeight:Ko,scrollTop:ga,enableVirtualization:zs}),Ul=useViewportColumns({columns:Zs,colSpanColumns:xl,colOverscanStartIdx:ru,colOverscanEndIdx:au,lastFrozenColumnIndex:Sl,rowOverscanStartIdx:ps,rowOverscanEndIdx:Rs,rows:no,topSummaryRows:oo,bottomSummaryRows:io}),{gridTemplateColumns:fu,handleColumnResize:Bl}=useColumnWidths(Zs,Ul,zl,Ks,Ms,Ll,Xl,Kl,Nl,wo),Eu=_h?-1:0,Iu=Zs.length-1,zu=f1(Ys),dp=h1(Ys),Yu=useLatestFunc(Bl),kp=useLatestFunc(Co),fp=useLatestFunc(go),wu=useLatestFunc(bo),ep=useLatestFunc(xo),Cp=useLatestFunc(_o),hp=useLatestFunc(Ap),wp=useLatestFunc(xp),pp=useLatestFunc(Hp),jp=useLatestFunc(({idx:Qs,rowIdx:na})=>{Hp({rowIdx:ou+na-1,idx:Qs})});useLayoutEffect(()=>{if(!zu||isSamePosition(Ys,Nu.current)){Nu.current=Ys;return}Nu.current=Ys,Ys.idx===-1&&(qu.current.focus({preventScroll:!0}),scrollIntoView$2(qu.current))}),useLayoutEffect(()=>{Ru.current&&(Ru.current=!1,I1())}),reactExports.useImperativeHandle(to,()=>({element:Ks.current,scrollToCell({idx:Qs,rowIdx:na}){const Wl=Qs!==void 0&&Qs>Sl&&Qs{bs(Qs),du.current=Qs},[]);function Ap(Qs){if(!ho)return;if(assertIsValidKeyGetter(so),Qs.type==="HEADER"){const bu=new Set(fo);for(const _u of no){const $u=so(_u);Qs.checked?bu.add($u):bu.delete($u)}ho(bu);return}const{row:na,checked:Wl,isShiftClick:Hl}=Qs,Al=new Set(fo),Il=so(na);if(Wl){Al.add(Il);const bu=cp.current,_u=no.indexOf(na);if(cp.current=_u,Hl&&bu!==-1&&bu!==_u){const $u=sign(_u-bu);for(let tp=bu+$u;tp!==_u;tp+=$u){const Rp=no[tp];Al.add(so(Rp))}}}else Al.delete(Il),cp.current=-1;ho(Al)}function Op(Qs){const{idx:na,rowIdx:Wl,mode:Hl}=Ys;if(Hl==="EDIT")return;if(Eo&&Jp(Wl)){const _u=no[Wl],$u=createCellEvent(Qs);if(Eo({mode:"SELECT",row:_u,column:Zs[na],rowIdx:Wl,selectCell:Hp},$u),$u.isGridDefaultPrevented())return}if(!(Qs.target instanceof Element))return;const Al=Qs.target.closest(".rdg-cell")!==null,Il=_h&&Qs.target===qu.current;if(!Al&&!Il)return;const{keyCode:bu}=Qs;if(dp&&(Ro!=null||Ao!=null)&&isCtrlKeyHeldDown(Qs)){if(bu===67){O1();return}if(bu===86){zp();return}}switch(Qs.key){case"Escape":El(null);return;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":X1(Qs);break;default:Y1(Qs);break}}function _p(Qs){const{scrollTop:na,scrollLeft:Wl}=Qs.currentTarget;reactDomExports.flushSync(()=>{Js(na),$a(abs$1(Wl))}),To==null||To(Qs)}function xp(Qs,na,Wl){if(typeof ao!="function"||Wl===no[na])return;const Hl=[...no];Hl[na]=Wl,ao(Hl,{indexes:[na],column:Qs})}function d1(){Ys.mode==="EDIT"&&xp(Zs[Ys.idx],Ys.rowIdx,Ys.row)}function O1(){const{idx:Qs,rowIdx:na}=Ys,Wl=no[na],Hl=Zs[Qs].key;El({row:Wl,columnKey:Hl}),Ao==null||Ao({sourceRow:Wl,sourceColumnKey:Hl})}function zp(){if(!Ro||!ao||xa===null||!e1(Ys))return;const{idx:Qs,rowIdx:na}=Ys,Wl=Zs[Qs],Hl=no[na],Al=Ro({sourceRow:xa.row,sourceColumnKey:xa.columnKey,targetRow:Hl,targetColumnKey:Wl.key});xp(Wl,na,Al)}function Y1(Qs){if(!dp)return;const na=no[Ys.rowIdx],{key:Wl,shiftKey:Hl}=Qs;if(Qo&&Hl&&Wl===" "){assertIsValidKeyGetter(so);const Al=so(na);Ap({type:"ROW",row:na,checked:!fo.has(Al),isShiftClick:!1}),Qs.preventDefault();return}e1(Ys)&&isDefaultCellInput(Qs)&&vu(({idx:Al,rowIdx:Il})=>({idx:Al,rowIdx:Il,mode:"EDIT",row:na,originalRow:na}))}function R1(Qs){return Qs>=Eu&&Qs<=Iu}function Jp(Qs){return Qs>=0&&Qs=ou&&na<=yl&&R1(Qs)}function h1({idx:Qs,rowIdx:na}){return Jp(na)&&R1(Qs)}function e1(Qs){return h1(Qs)&&isSelectedCellEditable({columns:Zs,rows:no,selectedPosition:Qs})}function Hp(Qs,na){if(!f1(Qs))return;d1();const Wl=no[Qs.rowIdx],Hl=isSamePosition(Ys,Qs);na&&e1(Qs)?vu({...Qs,mode:"EDIT",row:Wl,originalRow:Wl}):Hl?scrollIntoView$2(getCellToScroll(Ks.current)):(Ru.current=!0,vu({...Qs,mode:"SELECT"})),So&&!Hl&&So({rowIdx:Qs.rowIdx,row:Wl,column:Zs[Qs.idx]})}function Pm(Qs,na,Wl){const{idx:Hl,rowIdx:Al}=Ys,Il=zu&&Hl===-1;switch(Qs){case"ArrowUp":return{idx:Hl,rowIdx:Al-1};case"ArrowDown":return{idx:Hl,rowIdx:Al+1};case Vo:return{idx:Hl-1,rowIdx:Al};case Bo:return{idx:Hl+1,rowIdx:Al};case"Tab":return{idx:Hl+(Wl?-1:1),rowIdx:Al};case"Home":return Il?{idx:Hl,rowIdx:ou}:{idx:0,rowIdx:na?ou:Al};case"End":return Il?{idx:Hl,rowIdx:yl}:{idx:Iu,rowIdx:na?yl:Al};case"PageUp":{if(Ys.rowIdx===ou)return Ys;const bu=Ml(Al)+Ol(Al)-Ko;return{idx:Hl,rowIdx:bu>0?Cl(bu):0}}case"PageDown":{if(Ys.rowIdx>=no.length)return Ys;const bu=Ml(Al)+Ko;return{idx:Hl,rowIdx:buQs&&Qs>=Es)?Ys.idx:void 0}function I1(){const Qs=getCellToScroll(Ks.current);if(Qs===null)return;scrollIntoView$2(Qs),(Qs.querySelector('[tabindex="0"]')??Qs).focus({preventScroll:!0})}function zm(){if(!(Oo==null||Ys.mode==="EDIT"||!h1(Ys)))return jsxRuntimeExports.jsx(DragHandle,{gridRowStart:lu+Ys.rowIdx+1,rows:no,columns:Zs,selectedPosition:Ys,isCellEditable:e1,latestDraggedOverRowIdx:du,onRowsChange:ao,onClick:I1,onFill:Oo,setDragging:ks,setDraggedOverRowIdx:bp})}function Hm(Qs){if(Ys.rowIdx!==Qs||Ys.mode==="SELECT")return;const{idx:na,row:Wl}=Ys,Hl=Zs[na],Al=getColSpan(Hl,Sl,{type:"ROW",row:Wl}),Il=_u=>{Ru.current=_u,vu(({idx:$u,rowIdx:tp})=>({idx:$u,rowIdx:tp,mode:"SELECT"}))},bu=(_u,$u,tp)=>{$u?reactDomExports.flushSync(()=>{xp(Hl,Ys.rowIdx,_u),Il(tp)}):vu(Rp=>({...Rp,row:_u}))};return no[Ys.rowIdx]!==Ys.originalRow&&Il(!1),jsxRuntimeExports.jsx(EditCell,{column:Hl,colSpan:Al,row:Wl,rowIdx:Qs,onRowChange:bu,closeEditor:Il,onKeyDown:Eo,navigate:X1},Hl.key)}function t1(Qs){const na=Ys.idx===-1?void 0:Zs[Ys.idx];return na!==void 0&&Ys.rowIdx===Qs&&!Ul.includes(na)?Ys.idx>au?[...Ul,na]:[...Ul.slice(0,Sl+1),na,...Ul.slice(Sl+1)]:Ul}function Vm(){const Qs=[],{idx:na,rowIdx:Wl}=Ys,Hl=dp&&WlRs?Rs+1:Rs;for(let Il=Hl;Il<=Al;Il++){const bu=Il===ps-1||Il===Rs+1,_u=bu?Wl:Il;let $u=Ul;const tp=na===-1?void 0:Zs[na];tp!==void 0&&(bu?$u=[tp]:$u=t1(_u));const Rp=no[_u],Gm=lu+_u+1;let p1=_u,N1=!1;typeof so=="function"&&(p1=so(Rp),N1=(fo==null?void 0:fo.has(p1))??!1),Qs.push(Ds(p1,{"aria-rowindex":lu+_u+1,"aria-selected":Qo?N1:void 0,rowIdx:_u,row:Rp,viewportColumns:$u,isRowSelected:N1,onCellClick:wu,onCellDoubleClick:ep,onCellContextMenu:Cp,rowClass:Fo,gridRowStart:Gm,height:Ol(_u),copiedCellIdx:xa!==null&&xa.row===Rp?Zs.findIndex(Du=>Du.key===xa.columnKey):void 0,selectedCellIdx:Wl===_u?na:void 0,draggedOverCellIdx:jm(_u),setDraggedOverRowIdx:cu?bp:void 0,lastFrozenColumnIndex:Sl,onRowChange:wp,selectCell:pp,selectedCellEditor:Hm(_u)}))}return Qs}(Ys.idx>Iu||Ys.rowIdx>yl)&&(vu({idx:-1,rowIdx:ou-1,mode:"SELECT"}),bp(void 0));let Vp=`repeat(${$l}, ${Ns}px)`;Zl>0&&(Vp+=` repeat(${Zl}, ${ws}px)`),no.length>0&&(Vp+=Rl),Dl>0&&(Vp+=` repeat(${Dl}, ${ws}px)`);const Z1=Ys.idx===-1&&Ys.rowIdx!==ou-1;return jsxRuntimeExports.jsxs("div",{role:Ss,"aria-label":Ho,"aria-labelledby":qo,"aria-describedby":Uo,"aria-multiselectable":Qo?!0:void 0,"aria-colcount":Zs.length,"aria-rowcount":Xo,className:clsx(rootClassname,Do,cu&&viewportDraggingClassname),style:{...jo,scrollPaddingInlineStart:Ys.idx>Sl||(Os==null?void 0:Os.idx)!==void 0?`${Su}px`:void 0,scrollPaddingBlock:Jp(Ys.rowIdx)||(Os==null?void 0:Os.rowIdx)!==void 0?`${qs+Zl*ws}px ${Dl*ws}px`:void 0,gridTemplateColumns:fu,gridTemplateRows:Vp,"--rdg-header-row-height":`${Ns}px`,"--rdg-summary-row-height":`${ws}px`,"--rdg-sign":zo?-1:1,...pu},dir:Ls,ref:Ks,onScroll:_p,onKeyDown:Op,"data-testid":Zo,children:[jsxRuntimeExports.jsx(DataGridDefaultRenderersProvider,{value:vs,children:jsxRuntimeExports.jsxs(RowSelectionChangeProvider,{value:hp,children:[jsxRuntimeExports.jsxs(RowSelectionProvider,{value:ys,children:[Array.from({length:mu},(Qs,na)=>jsxRuntimeExports.jsx(GroupedColumnHeaderRow$1,{rowIdx:na+1,level:-mu+na,columns:t1(ou+na),selectedCellIdx:Ys.rowIdx===ou+na?Ys.idx:void 0,selectCell:jp},na)),jsxRuntimeExports.jsx(HeaderRow$1,{rowIdx:$l,columns:t1(Fl),onColumnResize:Yu,onColumnsReorder:kp,sortColumns:po,onSortColumnsChange:fp,lastFrozenColumnIndex:Sl,selectedCellIdx:Ys.rowIdx===Fl?Ys.idx:void 0,selectCell:jp,shouldFocusGrid:!zu,direction:Ls})]}),no.length===0&&Bs?Bs:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[oo==null?void 0:oo.map((Qs,na)=>{const Wl=$l+1+na,Hl=Fl+1+na,Al=Ys.rowIdx===Hl,Il=qs+ws*na;return jsxRuntimeExports.jsx(SummaryRow$1,{"aria-rowindex":Wl,rowIdx:Hl,gridRowStart:Wl,row:Qs,top:Il,bottom:void 0,viewportColumns:t1(Hl),lastFrozenColumnIndex:Sl,selectedCellIdx:Al?Ys.idx:void 0,isTop:!0,showBorder:na===Zl-1,selectCell:pp},na)}),Vm(),io==null?void 0:io.map((Qs,na)=>{const Wl=lu+no.length+na+1,Hl=no.length+na,Al=Ys.rowIdx===Hl,Il=Ko>Us?Hs-ws*(io.length-na):void 0,bu=Il===void 0?ws*(io.length-1-na):void 0;return jsxRuntimeExports.jsx(SummaryRow$1,{"aria-rowindex":Xo-Dl+na+1,rowIdx:Hl,gridRowStart:Wl,row:Qs,top:Il,bottom:bu,viewportColumns:t1(Hl),lastFrozenColumnIndex:Sl,selectedCellIdx:Al?Ys.idx:void 0,isTop:!1,showBorder:na===0,selectCell:pp},na)})]})]})}),zm(),renderMeasuringCells(Ul),_h&&jsxRuntimeExports.jsx("div",{ref:qu,tabIndex:Z1?0:-1,className:clsx(focusSinkClassname,Z1&&[rowSelected,Sl!==-1&&rowSelectedWithFrozenCell],!Jp(Ys.rowIdx)&&focusSinkHeaderAndSummaryClassname),style:{gridRowStart:Ys.rowIdx+lu+1}}),Os!==null&&jsxRuntimeExports.jsx(ScrollToCell,{scrollToPosition:Os,setScrollToCellPosition:Vs,gridElement:Ks.current})]})}function getCellToScroll(eo){return eo.querySelector(':scope > [role="row"] > [tabindex="0"]')}function isSamePosition(eo,to){return eo.idx===to.idx&&eo.rowIdx===to.rowIdx}const DataGrid$1$1=reactExports.forwardRef(DataGrid$2),useGanttViewModel=()=>{const[eo]=useInjected(GanttViewModelToken);return eo},useGanttViewRows=()=>{const eo=useGanttViewModel();return useState(eo.rows$).toArray()},useToggleSubRows=()=>{const eo=useGanttViewModel();return reactExports.useCallback(to=>{eo.toggleRow(to)},[eo])},useTasksTimeBoundaries=()=>{const eo=useGanttViewModel();return[eo.startTime,eo.endTime]},useSelectedRow=()=>{const eo=useGanttViewModel();return useState(eo.selectedRowId$)},useSetSelectedRow=()=>{const eo=useGanttViewModel();return useSetState(eo.selectedRowId$)},GanttChartCell=({row:eo})=>{const[to,ro]=useTasksTimeBoundaries(),no=`${(eo.startTime-to)*100/(ro-to)}%`,oo=`${(ro-eo.endTime)*100/(ro-to)}%`,io=eo.children&&eo.children.length>0,so=eo.isExpanded;return jsxRuntimeExports.jsx("div",{style:{marginLeft:no,marginRight:oo,height:"100%",marginTop:4,marginBottom:4,display:"flex"},children:io&&!so?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:(eo.children??[]).map((ao,lo)=>{const uo=`${(ao.endTime-ao.startTime)*100/(eo.endTime-eo.startTime)}%`;return jsxRuntimeExports.jsx("div",{style:{backgroundColor:ao.color??`rgba(0, 120, 212, ${1-.2*lo})`,width:uo}},ao.id)})}):jsxRuntimeExports.jsx("div",{style:{backgroundColor:eo.color??"rgba(0, 120, 212, 1)",width:"100%"}})})},NameCell=({row:eo})=>{const to=eo.children!==void 0&&eo.children.length>0,ro=eo.isExpanded,no=useToggleSubRows(),oo=reactExports.useCallback(io=>{io.preventDefault(),io.stopPropagation(),no(eo.id)},[eo.id,no]);return jsxRuntimeExports.jsxs("div",{style:{display:"flex",gap:4,paddingLeft:eo.level*24},children:[to?jsxRuntimeExports.jsx("div",{onClick:oo,role:"button",children:ro?"▼":"▶"}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}),jsxRuntimeExports.jsx("div",{children:eo.node_name||eo.name})]})},defaultColumns=[{key:"name",name:"node name",resizable:!0,width:320,renderCell({row:eo}){return jsxRuntimeExports.jsx(NameCell,{row:eo})}},{key:"duration",name:"duration",resizable:!0,width:60,renderHeaderCell(){return jsxRuntimeExports.jsx("div",{style:{textAlign:"right"},children:"duration"})},renderCell({row:eo}){return jsxRuntimeExports.jsxs("div",{style:{textAlign:"right"},children:[Math.round((eo.endTime-eo.startTime)*1e3).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")," ","ms"]})}},{key:"ganttChart",name:"gantt-chart",renderCell({row:eo}){return jsxRuntimeExports.jsx(GanttChartCell,{row:eo})},renderHeaderCell:()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}],GanttGridView=({styles:eo,getColumns:to=ro=>ro})=>{const ro=useGanttViewRows(),no=useSetSelectedRow(),oo=useSelectedRow(),io=reactExports.useCallback(lo=>{const{row:uo}=lo;no(uo.id)},[no]),so=mergeStyles$1(eo==null?void 0:eo.grid,{borderBottom:"none",borderRight:"none"}),ao=reactExports.useCallback(lo=>mergeStyles$1(oo===lo.id?eo==null?void 0:eo.selectedRow:""),[oo,eo==null?void 0:eo.selectedRow]);return jsxRuntimeExports.jsx(DataGrid$1$1,{rows:ro,columns:to(defaultColumns),onCellClick:io,className:so,rowClass:ao})},Wrapper=({viewModel:eo,children:to})=>{const ro=createRegistry({name:"gantt-wrapper"}),no=reactExports.useCallback(oo=>{oo.register(GanttViewModelToken,{useValue:eo})},[eo]);return jsxRuntimeExports.jsx(ro,{onInitialize:no,children:to})};var GanttGridTheme=(eo=>(eo.Light="rdg-light",eo.Dark="rdg-dark",eo))(GanttGridTheme||{});const Gantt=({viewModel:eo,styles:to,getColumns:ro})=>jsxRuntimeExports.jsx(Wrapper,{viewModel:eo,children:jsxRuntimeExports.jsx(GanttGridView,{styles:to,getColumns:ro})}),TraceDetailTemplate=({trace:eo,JSONView:to})=>{const ro=mergeStyleSets({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"}]}),no=eo.node_name??eo.name??"",oo=getTokensUsageByRow(eo),io=eo.inputs??{},so=eo.output??{};return jsxRuntimeExports.jsxs("div",{className:ro.root,children:[jsxRuntimeExports.jsx("div",{className:ro.header,children:no}),jsxRuntimeExports.jsxs("div",{className:ro.section,children:[jsxRuntimeExports.jsx("div",{className:ro.sectionTitle,children:"Overview"}),jsxRuntimeExports.jsx("div",{className:ro.sectionContent,children:jsxRuntimeExports.jsxs("div",{className:ro.overviewContainer,children:[jsxRuntimeExports.jsxs("div",{className:ro.overviewColumn,children:[jsxRuntimeExports.jsx("div",{className:ro.fieldTitle,children:"total tokens"}),jsxRuntimeExports.jsx("div",{children:numberToDigitsString(oo.totalTokens)}),jsxRuntimeExports.jsx("div",{className:ro.fieldTitle,children:"prompt tokens"}),jsxRuntimeExports.jsx("div",{children:numberToDigitsString(oo.promptTokens)}),jsxRuntimeExports.jsx("div",{className:ro.fieldTitle,children:"completion tokens"}),jsxRuntimeExports.jsx("div",{children:numberToDigitsString(oo.completionTokens)})]}),jsxRuntimeExports.jsxs("div",{className:ro.overviewColumn,children:[jsxRuntimeExports.jsx("div",{className:ro.fieldTitle,children:"duration"}),jsxRuntimeExports.jsx("div",{children:eo.end_time&&eo.start_time?`${Math.round((eo.end_time-eo.start_time)*1e3).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")} ms`:"N/A"}),jsxRuntimeExports.jsx("div",{className:ro.fieldTitle,children:"started at"}),jsxRuntimeExports.jsx("div",{children:eo.start_time?timePDTFormatter(eo.start_time*1e3):"N/A"}),jsxRuntimeExports.jsx("div",{className:ro.fieldTitle,children:"finished at"}),jsxRuntimeExports.jsx("div",{children:eo.end_time?timePDTFormatter(eo.end_time*1e3):"N/A"})]})]})})]}),jsxRuntimeExports.jsxs("div",{className:ro.section,children:[jsxRuntimeExports.jsx("div",{className:ro.sectionTitle,children:"Inputs"}),jsxRuntimeExports.jsx("div",{className:ro.sectionContent,children:jsxRuntimeExports.jsx(to,{src:io})})]}),jsxRuntimeExports.jsxs("div",{className:ro.section,children:[jsxRuntimeExports.jsx("div",{className:ro.sectionTitle,children:"Outputs"}),jsxRuntimeExports.jsx("div",{className:ro.sectionContent,children:jsxRuntimeExports.jsx(to,{src:so})})]})]})},traceMap=new Map,hashTraceName=eo=>{let to=0,ro=0;if(eo.length===0)return to;for(let no=0;noeo.map(to=>{const ro=uuid_1.v4();return traceMap.set(ro,to),{startTime:to.start_time??performance.now(),endTime:to.end_time??performance.now(),color:SystemColors[hashTraceName(to.name??"")%systemColorsLength],id:ro,name:to.name??"",node_name:to.node_name??"",output:to.output??[],children:to.children?parseTrace(to.children):void 0}}),DefaultGridContainer=({children:eo,className:to})=>jsxRuntimeExports.jsx(Resizable,{enable:{right:!0},className:to,defaultSize:{width:"50%",height:"100%"},children:eo}),DefaultContainer=({children:eo,className:to})=>jsxRuntimeExports.jsx("div",{className:to,children:eo}),ApiLogs=reactExports.forwardRef(({traces:eo,styles:to,isDarkMode:ro=!1,classNames:no,RootContainer:oo=DefaultContainer,GridContainer:io=DefaultGridContainer,DetailContainer:so=DefaultContainer,renderDetail:ao=fo=>jsxRuntimeExports.jsx(TraceDetailTemplate,{JSONView:ho=>jsxRuntimeExports.jsx("pre",{children:JSON.stringify(ho)}),trace:fo}),onChangeSelectedTrace:lo,renderUnselectedHint:uo=()=>jsxRuntimeExports.jsx("div",{children:"Click on a row to see details"})},co)=>{const fo=reactExports.useMemo(()=>eo.reduce((wo,Co)=>[...wo,...parseTrace(Co)],[]),[eo]),ho=reactExports.useMemo(()=>new GanttViewModel,[]);reactExports.useEffect(()=>{ho.setTasks(fo)},[fo,ho]);const po=useState(ho.selectedRowId$),go=useSetState(ho.selectedRowId$),vo=reactExports.useMemo(()=>po?traceMap.get(po):void 0,[po]),bo=reactExports.useMemo(()=>({...to,grid:mergeStyles$1(to==null?void 0:to.grid,ro?GanttGridTheme.Dark:GanttGridTheme.Light)}),[to,ro]),xo=mergeStyles$1({display:"flex",height:"100%",borderTop:"1px solid #ccc"},no==null?void 0:no.root),_o=mergeStyles$1({height:"100%",width:"100%",padding:16,borderRight:"1px solid #ccc"},no==null?void 0:no.gridContainer),Eo=mergeStyles$1({height:"100%",width:"100%",padding:8},no==null?void 0:no.detailContainer),So=reactExports.useCallback(wo=>{var Oo;const Co=(Oo=fo.find(Ao=>Ao.node_name===wo))==null?void 0:Oo.id;Co&&go(Co)},[fo,go]);reactExports.useImperativeHandle(co,()=>({setSelectedTraceRow:So})),reactExports.useEffect(()=>{lo&&lo(vo)},[lo,vo]),reactExports.useEffect(()=>{go(void 0)},[eo]);const To=reactExports.useCallback(wo=>{const Co={key:"token",name:"token",resizable:!0,width:60,renderHeaderCell(){return jsxRuntimeExports.jsx("div",{style:{textAlign:"right"},children:"Tokens"})},renderCell({row:Ro}){const No=getTokensUsageByRow(Ro),Mo=`prompt tokens: ${numberToDigitsString(No.promptTokens)}, + completion tokens: ${No.completionTokens}`;return jsxRuntimeExports.jsx("div",{style:{textAlign:"right"},title:Mo,children:numberToDigitsString(No.totalTokens)})}},[Oo,...Ao]=wo;return[Oo,Co,...Ao]},[]);return jsxRuntimeExports.jsxs(oo,{className:xo,children:[jsxRuntimeExports.jsx(io,{className:_o,children:jsxRuntimeExports.jsx(Gantt,{viewModel:ho,styles:bo,getColumns:To})}),jsxRuntimeExports.jsx(so,{className:Eo,children:vo?ao(vo):uo()})]})});ApiLogs.displayName="ApiLogs";const $global=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{}}}();$global.trustedTypes===void 0&&($global.trustedTypes={createPolicy:(eo,to)=>to});const propConfig={configurable:!1,enumerable:!1,writable:!1};$global.FAST===void 0&&Reflect.defineProperty($global,"FAST",Object.assign({value:Object.create(null)},propConfig));const FAST=$global.FAST;if(FAST.getById===void 0){const eo=Object.create(null);Reflect.defineProperty(FAST,"getById",Object.assign({value(to,ro){let no=eo[to];return no===void 0&&(no=ro?eo[to]=ro():null),no}},propConfig))}const emptyArray=Object.freeze([]);function createMetadataLocator(){const eo=new WeakMap;return function(to){let ro=eo.get(to);if(ro===void 0){let no=Reflect.getPrototypeOf(to);for(;ro===void 0&&no!==null;)ro=eo.get(no),no=Reflect.getPrototypeOf(no);ro=ro===void 0?[]:ro.slice(0),eo.set(to,ro)}return ro}}const updateQueue=$global.FAST.getById(1,()=>{const eo=[],to=[];function ro(){if(to.length)throw to.shift()}function no(so){try{so.call()}catch(ao){to.push(ao),setTimeout(ro,0)}}function oo(){let ao=0;for(;ao1024){for(let lo=0,uo=eo.length-ao;loeo});let htmlPolicy=fastHTMLPolicy;const marker=`fast-${Math.random().toString(36).substring(2,8)}`,_interpolationStart=`${marker}{`,_interpolationEnd=`}${marker}`,DOM=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(eo){if(htmlPolicy!==fastHTMLPolicy)throw new Error("The HTML policy can only be set once.");htmlPolicy=eo},createHTML(eo){return htmlPolicy.createHTML(eo)},isMarker(eo){return eo&&eo.nodeType===8&&eo.data.startsWith(marker)},extractDirectiveIndexFromMarker(eo){return parseInt(eo.data.replace(`${marker}:`,""))},createInterpolationPlaceholder(eo){return`${_interpolationStart}${eo}${_interpolationEnd}`},createCustomAttributePlaceholder(eo,to){return`${eo}="${this.createInterpolationPlaceholder(to)}"`},createBlockPlaceholder(eo){return``},queueUpdate:updateQueue.enqueue,processUpdates:updateQueue.process,nextUpdate(){return new Promise(updateQueue.enqueue)},setAttribute(eo,to,ro){ro==null?eo.removeAttribute(to):eo.setAttribute(to,ro)},setBooleanAttribute(eo,to,ro){ro?eo.setAttribute(to,""):eo.removeAttribute(to)},removeChildNodes(eo){for(let to=eo.firstChild;to!==null;to=eo.firstChild)eo.removeChild(to)},createTemplateWalker(eo){return document.createTreeWalker(eo,133,null,!1)}});class SubscriberSet{constructor(to,ro){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=to,this.sub1=ro}has(to){return this.spillover===void 0?this.sub1===to||this.sub2===to:this.spillover.indexOf(to)!==-1}subscribe(to){const ro=this.spillover;if(ro===void 0){if(this.has(to))return;if(this.sub1===void 0){this.sub1=to;return}if(this.sub2===void 0){this.sub2=to;return}this.spillover=[this.sub1,this.sub2,to],this.sub1=void 0,this.sub2=void 0}else ro.indexOf(to)===-1&&ro.push(to)}unsubscribe(to){const ro=this.spillover;if(ro===void 0)this.sub1===to?this.sub1=void 0:this.sub2===to&&(this.sub2=void 0);else{const no=ro.indexOf(to);no!==-1&&ro.splice(no,1)}}notify(to){const ro=this.spillover,no=this.source;if(ro===void 0){const oo=this.sub1,io=this.sub2;oo!==void 0&&oo.handleChange(no,to),io!==void 0&&io.handleChange(no,to)}else for(let oo=0,io=ro.length;oo{const eo=/(:|&&|\|\||if)/,to=new WeakMap,ro=DOM.queueUpdate;let no,oo=uo=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function io(uo){let co=uo.$fastController||to.get(uo);return co===void 0&&(Array.isArray(uo)?co=oo(uo):to.set(uo,co=new PropertyChangeNotifier(uo))),co}const so=createMetadataLocator();class ao{constructor(co){this.name=co,this.field=`_${co}`,this.callback=`${co}Changed`}getValue(co){return no!==void 0&&no.watch(co,this.name),co[this.field]}setValue(co,fo){const ho=this.field,po=co[ho];if(po!==fo){co[ho]=fo;const go=co[this.callback];typeof go=="function"&&go.call(co,po,fo),io(co).notify(this.name)}}}class lo extends SubscriberSet{constructor(co,fo,ho=!1){super(co,fo),this.binding=co,this.isVolatileBinding=ho,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(co,fo){this.needsRefresh&&this.last!==null&&this.disconnect();const ho=no;no=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const po=this.binding(co,fo);return no=ho,po}disconnect(){if(this.last!==null){let co=this.first;for(;co!==void 0;)co.notifier.unsubscribe(this,co.propertyName),co=co.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(co,fo){const ho=this.last,po=io(co),go=ho===null?this.first:{};if(go.propertySource=co,go.propertyName=fo,go.notifier=po,po.subscribe(this,fo),ho!==null){if(!this.needsRefresh){let vo;no=void 0,vo=ho.propertySource[ho.propertyName],no=this,co===vo&&(this.needsRefresh=!0)}ho.next=go}this.last=go}handleChange(){this.needsQueue&&(this.needsQueue=!1,ro(this))}call(){this.last!==null&&(this.needsQueue=!0,this.notify(this))}records(){let co=this.first;return{next:()=>{const fo=co;return fo===void 0?{value:void 0,done:!0}:(co=co.next,{value:fo,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(uo){oo=uo},getNotifier:io,track(uo,co){no!==void 0&&no.watch(uo,co)},trackVolatile(){no!==void 0&&(no.needsRefresh=!0)},notify(uo,co){io(uo).notify(co)},defineProperty(uo,co){typeof co=="string"&&(co=new ao(co)),so(uo).push(co),Reflect.defineProperty(uo,co.name,{enumerable:!0,get:function(){return co.getValue(this)},set:function(fo){co.setValue(this,fo)}})},getAccessors:so,binding(uo,co,fo=this.isVolatileBinding(uo)){return new lo(uo,co,fo)},isVolatileBinding(uo){return eo.test(uo.toString())}})});function observable(eo,to){Observable$1.defineProperty(eo,to)}function volatile(eo,to,ro){return Object.assign({},ro,{get:function(){return Observable$1.trackVolatile(),ro.get.apply(this)}})}const contextEvent=FAST.getById(3,()=>{let eo=null;return{get(){return eo},set(to){eo=to}}});class ExecutionContext{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return contextEvent.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(to){contextEvent.set(to)}}Observable$1.defineProperty(ExecutionContext.prototype,"index");Observable$1.defineProperty(ExecutionContext.prototype,"length");const defaultExecutionContext=Object.seal(new ExecutionContext);class HTMLDirective{constructor(){this.targetIndex=0}}class TargetedHTMLDirective extends HTMLDirective{constructor(){super(...arguments),this.createPlaceholder=DOM.createInterpolationPlaceholder}}class AttachedBehaviorHTMLDirective extends HTMLDirective{constructor(to,ro,no){super(),this.name=to,this.behavior=ro,this.options=no}createPlaceholder(to){return DOM.createCustomAttributePlaceholder(this.name,to)}createBehavior(to){return new this.behavior(to,this.options)}}function normalBind(eo,to){this.source=eo,this.context=to,this.bindingObserver===null&&(this.bindingObserver=Observable$1.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(eo,to))}function triggerBind(eo,to){this.source=eo,this.context=to,this.target.addEventListener(this.targetName,this)}function normalUnbind(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function contentUnbind(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const eo=this.target.$fastView;eo!==void 0&&eo.isComposed&&(eo.unbind(),eo.needsBindOnly=!0)}function triggerUnbind(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function updateAttributeTarget(eo){DOM.setAttribute(this.target,this.targetName,eo)}function updateBooleanAttributeTarget(eo){DOM.setBooleanAttribute(this.target,this.targetName,eo)}function updateContentTarget(eo){if(eo==null&&(eo=""),eo.create){this.target.textContent="";let to=this.target.$fastView;to===void 0?to=eo.create():this.target.$fastTemplate!==eo&&(to.isComposed&&(to.remove(),to.unbind()),to=eo.create()),to.isComposed?to.needsBindOnly&&(to.needsBindOnly=!1,to.bind(this.source,this.context)):(to.isComposed=!0,to.bind(this.source,this.context),to.insertBefore(this.target),this.target.$fastView=to,this.target.$fastTemplate=eo)}else{const to=this.target.$fastView;to!==void 0&&to.isComposed&&(to.isComposed=!1,to.remove(),to.needsBindOnly?to.needsBindOnly=!1:to.unbind()),this.target.textContent=eo}}function updatePropertyTarget(eo){this.target[this.targetName]=eo}function updateClassTarget(eo){const to=this.classVersions||Object.create(null),ro=this.target;let no=this.version||0;if(eo!=null&&eo.length){const oo=eo.split(/\s+/);for(let io=0,so=oo.length;ioDOM.createHTML(ro(no,oo))}break;case"?":this.cleanedTargetName=to.substr(1),this.updateTarget=updateBooleanAttributeTarget;break;case"@":this.cleanedTargetName=to.substr(1),this.bind=triggerBind,this.unbind=triggerUnbind;break;default:this.cleanedTargetName=to,to==="class"&&(this.updateTarget=updateClassTarget);break}}targetAtContent(){this.updateTarget=updateContentTarget,this.unbind=contentUnbind}createBehavior(to){return new BindingBehavior(to,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class BindingBehavior{constructor(to,ro,no,oo,io,so,ao){this.source=null,this.context=null,this.bindingObserver=null,this.target=to,this.binding=ro,this.isBindingVolatile=no,this.bind=oo,this.unbind=io,this.updateTarget=so,this.targetName=ao}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(to){ExecutionContext.setEvent(to);const ro=this.binding(this.source,this.context);ExecutionContext.setEvent(null),ro!==!0&&to.preventDefault()}}let sharedContext=null;class CompilationContext{addFactory(to){to.targetIndex=this.targetIndex,this.behaviorFactories.push(to)}captureContentBinding(to){to.targetAtContent(),this.addFactory(to)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){sharedContext=this}static borrow(to){const ro=sharedContext||new CompilationContext;return ro.directives=to,ro.reset(),sharedContext=null,ro}}function createAggregateBinding(eo){if(eo.length===1)return eo[0];let to;const ro=eo.length,no=eo.map(so=>typeof so=="string"?()=>so:(to=so.targetName||to,so.binding)),oo=(so,ao)=>{let lo="";for(let uo=0;uoao),uo.targetName=so.name):uo=createAggregateBinding(lo),uo!==null&&(to.removeAttributeNode(so),oo--,io--,eo.addFactory(uo))}}function compileContent(eo,to,ro){const no=parseContent(eo,to.textContent);if(no!==null){let oo=to;for(let io=0,so=no.length;io0}const ro=this.fragment.cloneNode(!0),no=this.viewBehaviorFactories,oo=new Array(this.behaviorCount),io=DOM.createTemplateWalker(ro);let so=0,ao=this.targetOffset,lo=io.nextNode();for(let uo=no.length;so=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function html(eo,...to){const ro=[];let no="";for(let oo=0,io=eo.length-1;oolo}if(typeof ao=="function"&&(ao=new HTMLBindingDirective(ao)),ao instanceof TargetedHTMLDirective){const lo=lastAttributeNameRegex.exec(so);lo!==null&&(ao.targetName=lo[2])}ao instanceof HTMLDirective?(no+=ao.createPlaceholder(ro.length),ro.push(ao)):no+=ao}return no+=eo[eo.length-1],new ViewTemplate(no,ro)}class ElementStyles{constructor(){this.targets=new WeakSet}addStylesTo(to){this.targets.add(to)}removeStylesFrom(to){this.targets.delete(to)}isAttachedTo(to){return this.targets.has(to)}withBehaviors(...to){return this.behaviors=this.behaviors===null?to:this.behaviors.concat(to),this}}ElementStyles.create=(()=>{if(DOM.supportsAdoptedStyleSheets){const eo=new Map;return to=>new AdoptedStyleSheetsStyles(to,eo)}return eo=>new StyleElementStyles(eo)})();function reduceStyles(eo){return eo.map(to=>to instanceof ElementStyles?reduceStyles(to.styles):[to]).reduce((to,ro)=>to.concat(ro),[])}function reduceBehaviors(eo){return eo.map(to=>to instanceof ElementStyles?to.behaviors:null).reduce((to,ro)=>ro===null?to:(to===null&&(to=[]),to.concat(ro)),null)}let addAdoptedStyleSheets=(eo,to)=>{eo.adoptedStyleSheets=[...eo.adoptedStyleSheets,...to]},removeAdoptedStyleSheets=(eo,to)=>{eo.adoptedStyleSheets=eo.adoptedStyleSheets.filter(ro=>to.indexOf(ro)===-1)};if(DOM.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),addAdoptedStyleSheets=(eo,to)=>{eo.adoptedStyleSheets.push(...to)},removeAdoptedStyleSheets=(eo,to)=>{for(const ro of to){const no=eo.adoptedStyleSheets.indexOf(ro);no!==-1&&eo.adoptedStyleSheets.splice(no,1)}}}catch{}class AdoptedStyleSheetsStyles extends ElementStyles{constructor(to,ro){super(),this.styles=to,this.styleSheetCache=ro,this._styleSheets=void 0,this.behaviors=reduceBehaviors(to)}get styleSheets(){if(this._styleSheets===void 0){const to=this.styles,ro=this.styleSheetCache;this._styleSheets=reduceStyles(to).map(no=>{if(no instanceof CSSStyleSheet)return no;let oo=ro.get(no);return oo===void 0&&(oo=new CSSStyleSheet,oo.replaceSync(no),ro.set(no,oo)),oo})}return this._styleSheets}addStylesTo(to){addAdoptedStyleSheets(to,this.styleSheets),super.addStylesTo(to)}removeStylesFrom(to){removeAdoptedStyleSheets(to,this.styleSheets),super.removeStylesFrom(to)}}let styleClassId=0;function getNextStyleClass(){return`fast-style-class-${++styleClassId}`}class StyleElementStyles extends ElementStyles{constructor(to){super(),this.styles=to,this.behaviors=null,this.behaviors=reduceBehaviors(to),this.styleSheets=reduceStyles(to),this.styleClass=getNextStyleClass()}addStylesTo(to){const ro=this.styleSheets,no=this.styleClass;to=this.normalizeTarget(to);for(let oo=0;oo{no.add(to);const oo=to[this.fieldName];switch(ro){case"reflect":const io=this.converter;DOM.setAttribute(to,this.attribute,io!==void 0?io.toView(oo):oo);break;case"boolean":DOM.setBooleanAttribute(to,this.attribute,oo);break}no.delete(to)})}static collect(to,...ro){const no=[];ro.push(AttributeConfiguration.locate(to));for(let oo=0,io=ro.length;oo1&&(ro.property=io),AttributeConfiguration.locate(oo.constructor).push(ro)}if(arguments.length>1){ro={},no(eo,to);return}return ro=eo===void 0?{}:eo,no}const defaultShadowOptions={mode:"open"},defaultElementOptions={},fastRegistry=FAST.getById(4,()=>{const eo=new Map;return Object.freeze({register(to){return eo.has(to.type)?!1:(eo.set(to.type,to),!0)},getByType(to){return eo.get(to)}})});class FASTElementDefinition{constructor(to,ro=to.definition){typeof ro=="string"&&(ro={name:ro}),this.type=to,this.name=ro.name,this.template=ro.template;const no=AttributeDefinition.collect(to,ro.attributes),oo=new Array(no.length),io={},so={};for(let ao=0,lo=no.length;ao0){const io=this.boundObservables=Object.create(null);for(let so=0,ao=oo.length;so0||ro>0;){if(to===0){oo.push(EDIT_ADD),ro--;continue}if(ro===0){oo.push(EDIT_DELETE),to--;continue}const io=eo[to-1][ro-1],so=eo[to-1][ro],ao=eo[to][ro-1];let lo;so=0){eo.splice(ao,1),ao--,so-=lo.addedCount-lo.removed.length,oo.addedCount+=lo.addedCount-uo;const co=oo.removed.length+lo.removed.length-uo;if(!oo.addedCount&&!co)io=!0;else{let fo=lo.removed;if(oo.indexlo.index+lo.addedCount){const ho=oo.removed.slice(lo.index+lo.addedCount-oo.index);$push.apply(fo,ho)}oo.removed=fo,lo.indexno?ro=no-eo.addedCount:ro<0&&(ro=no+eo.removed.length+ro-eo.addedCount),ro<0&&(ro=0),eo.index=ro,eo}class ArrayObserver extends SubscriberSet{constructor(to){super(to),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(to,"$fastController",{value:this,enumerable:!1})}subscribe(to){this.flush(),super.subscribe(to)}addSplice(to){this.splices===void 0?this.splices=[to]:this.splices.push(to),this.needsQueue&&(this.needsQueue=!1,DOM.queueUpdate(this))}reset(to){this.oldCollection=to,this.needsQueue&&(this.needsQueue=!1,DOM.queueUpdate(this))}flush(){const to=this.splices,ro=this.oldCollection;if(to===void 0&&ro===void 0)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const no=ro===void 0?projectArraySplices(this.source,to):calcSplices(this.source,0,this.source.length,ro,0,ro.length);this.notify(no)}}function enableArrayObservation(){if(arrayObservationEnabled)return;arrayObservationEnabled=!0,Observable$1.setArrayObserverFactory(lo=>new ArrayObserver(lo));const eo=Array.prototype;if(eo.$fastPatch)return;Reflect.defineProperty(eo,"$fastPatch",{value:1,enumerable:!1});const to=eo.pop,ro=eo.push,no=eo.reverse,oo=eo.shift,io=eo.sort,so=eo.splice,ao=eo.unshift;eo.pop=function(){const lo=this.length>0,uo=to.apply(this,arguments),co=this.$fastController;return co!==void 0&&lo&&co.addSplice(newSplice(this.length,[uo],0)),uo},eo.push=function(){const lo=ro.apply(this,arguments),uo=this.$fastController;return uo!==void 0&&uo.addSplice(adjustIndex(newSplice(this.length-arguments.length,[],arguments.length),this)),lo},eo.reverse=function(){let lo;const uo=this.$fastController;uo!==void 0&&(uo.flush(),lo=this.slice());const co=no.apply(this,arguments);return uo!==void 0&&uo.reset(lo),co},eo.shift=function(){const lo=this.length>0,uo=oo.apply(this,arguments),co=this.$fastController;return co!==void 0&&lo&&co.addSplice(newSplice(0,[uo],0)),uo},eo.sort=function(){let lo;const uo=this.$fastController;uo!==void 0&&(uo.flush(),lo=this.slice());const co=io.apply(this,arguments);return uo!==void 0&&uo.reset(lo),co},eo.splice=function(){const lo=so.apply(this,arguments),uo=this.$fastController;return uo!==void 0&&uo.addSplice(adjustIndex(newSplice(+arguments[0],lo,arguments.length>2?arguments.length-2:0),this)),lo},eo.unshift=function(){const lo=ao.apply(this,arguments),uo=this.$fastController;return uo!==void 0&&uo.addSplice(adjustIndex(newSplice(0,[],arguments.length),this)),lo}}class RefBehavior{constructor(to,ro){this.target=to,this.propertyName=ro}bind(to){to[this.propertyName]=this.target}unbind(){}}function ref(eo){return new AttachedBehaviorHTMLDirective("fast-ref",RefBehavior,eo)}const isFunction$1=eo=>typeof eo=="function",noTemplate=()=>null;function normalizeBinding(eo){return eo===void 0?noTemplate:isFunction$1(eo)?eo:()=>eo}function when(eo,to,ro){const no=isFunction$1(eo)?eo:()=>eo,oo=normalizeBinding(to),io=normalizeBinding(ro);return(so,ao)=>no(so,ao)?oo(so,ao):io(so,ao)}function bindWithoutPositioning(eo,to,ro,no){eo.bind(to[ro],no)}function bindWithPositioning(eo,to,ro,no){const oo=Object.create(no);oo.index=ro,oo.length=to.length,eo.bind(to[ro],oo)}class RepeatBehavior{constructor(to,ro,no,oo,io,so){this.location=to,this.itemsBinding=ro,this.templateBinding=oo,this.options=so,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=bindWithoutPositioning,this.itemsBindingObserver=Observable$1.binding(ro,this,no),this.templateBindingObserver=Observable$1.binding(oo,this,io),so.positioning&&(this.bindView=bindWithPositioning)}bind(to,ro){this.source=to,this.originalContext=ro,this.childContext=Object.create(ro),this.childContext.parent=to,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(to,this.originalContext),this.template=this.templateBindingObserver.observe(to,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,this.itemsObserver!==null&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(to,ro){to===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):to===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(ro)}observeItems(to=!1){if(!this.items){this.items=emptyArray;return}const ro=this.itemsObserver,no=this.itemsObserver=Observable$1.getNotifier(this.items),oo=ro!==no;oo&&ro!==null&&ro.unsubscribe(this),(oo||to)&&no.subscribe(this)}updateViews(to){const ro=this.childContext,no=this.views,oo=this.bindView,io=this.items,so=this.template,ao=this.options.recycle,lo=[];let uo=0,co=0;for(let fo=0,ho=to.length;fo0?(vo<=Eo&&_o.length>0?(wo=_o[vo],vo++):(wo=lo[uo],uo++),co--):wo=so.create(),no.splice(bo,0,wo),oo(wo,io,bo,ro),wo.insertBefore(To)}_o[vo]&&lo.push(..._o.slice(vo))}for(let fo=uo,ho=lo.length;fono.name===ro),this.source=to,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(emptyArray),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let to=this.getNodes();return this.options.filter!==void 0&&(to=to.filter(this.options.filter)),to}updateTarget(to){this.source[this.options.property]=to}}class SlottedBehavior extends NodeObservationBehavior{constructor(to,ro){super(to,ro)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function slotted(eo){return typeof eo=="string"&&(eo={property:eo}),new AttachedBehaviorHTMLDirective("fast-slotted",SlottedBehavior,eo)}class ChildrenBehavior extends NodeObservationBehavior{constructor(to,ro){super(to,ro),this.observer=null,ro.childList=!0}observe(){this.observer===null&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}function children(eo){return typeof eo=="string"&&(eo={property:eo}),new AttachedBehaviorHTMLDirective("fast-children",ChildrenBehavior,eo)}class StartEnd{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const endSlotTemplate=(eo,to)=>html` + to.end?"end":void 0} + > + + ${to.end||""} + + +`,startSlotTemplate=(eo,to)=>html` + + + ${to.start||""} + + +`;html` + + + +`;html` + + + +`;/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +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. +***************************************************************************** */function __decorate(eo,to,ro,no){var oo=arguments.length,io=oo<3?to:no===null?no=Object.getOwnPropertyDescriptor(to,ro):no,so;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")io=Reflect.decorate(eo,to,ro,no);else for(var ao=eo.length-1;ao>=0;ao--)(so=eo[ao])&&(io=(oo<3?so(io):oo>3?so(to,ro,io):so(to,ro))||io);return oo>3&&io&&Object.defineProperty(to,ro,io),io}const metadataByTarget=new Map;"metadata"in Reflect||(Reflect.metadata=function(eo,to){return function(ro){Reflect.defineMetadata(eo,to,ro)}},Reflect.defineMetadata=function(eo,to,ro){let no=metadataByTarget.get(ro);no===void 0&&metadataByTarget.set(ro,no=new Map),no.set(eo,to)},Reflect.getOwnMetadata=function(eo,to){const ro=metadataByTarget.get(to);if(ro!==void 0)return ro.get(eo)});class ResolverBuilder{constructor(to,ro){this.container=to,this.key=ro}instance(to){return this.registerResolver(0,to)}singleton(to){return this.registerResolver(1,to)}transient(to){return this.registerResolver(2,to)}callback(to){return this.registerResolver(3,to)}cachedCallback(to){return this.registerResolver(3,cacheCallbackResult(to))}aliasTo(to){return this.registerResolver(5,to)}registerResolver(to,ro){const{container:no,key:oo}=this;return this.container=this.key=void 0,no.registerResolver(oo,new ResolverImpl(oo,to,ro))}}function cloneArrayWithPossibleProps(eo){const to=eo.slice(),ro=Object.keys(eo),no=ro.length;let oo;for(let io=0;ionull,responsibleForOwnerRequests:!1,defaultResolver:DefaultResolver.singleton})}),dependencyLookup=new Map;function getParamTypes(eo){return to=>Reflect.getOwnMetadata(eo,to)}let rootDOMContainer=null;const DI=Object.freeze({createContainer(eo){return new ContainerImpl(null,Object.assign({},ContainerConfiguration.default,eo))},findResponsibleContainer(eo){const to=eo.$$container$$;return to&&to.responsibleForOwnerRequests?to:DI.findParentContainer(eo)},findParentContainer(eo){const to=new CustomEvent(DILocateParentEventType,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return eo.dispatchEvent(to),to.detail.container||DI.getOrCreateDOMContainer()},getOrCreateDOMContainer(eo,to){return eo?eo.$$container$$||new ContainerImpl(eo,Object.assign({},ContainerConfiguration.default,to,{parentLocator:DI.findParentContainer})):rootDOMContainer||(rootDOMContainer=new ContainerImpl(null,Object.assign({},ContainerConfiguration.default,to,{parentLocator:()=>null})))},getDesignParamtypes:getParamTypes("design:paramtypes"),getAnnotationParamtypes:getParamTypes("di:paramtypes"),getOrCreateAnnotationParamTypes(eo){let to=this.getAnnotationParamtypes(eo);return to===void 0&&Reflect.defineMetadata("di:paramtypes",to=[],eo),to},getDependencies(eo){let to=dependencyLookup.get(eo);if(to===void 0){const ro=eo.inject;if(ro===void 0){const no=DI.getDesignParamtypes(eo),oo=DI.getAnnotationParamtypes(eo);if(no===void 0)if(oo===void 0){const io=Object.getPrototypeOf(eo);typeof io=="function"&&io!==Function.prototype?to=cloneArrayWithPossibleProps(DI.getDependencies(io)):to=[]}else to=cloneArrayWithPossibleProps(oo);else if(oo===void 0)to=cloneArrayWithPossibleProps(no);else{to=cloneArrayWithPossibleProps(no);let io=oo.length,so;for(let uo=0;uo{const co=DI.findResponsibleContainer(this).get(ro),fo=this[oo];co!==fo&&(this[oo]=io,ao.notify(to))};ao.subscribe({handleChange:lo},"isConnected")}return io}})},createInterface(eo,to){const ro=typeof eo=="function"?eo:to,no=typeof eo=="string"?eo:eo&&"friendlyName"in eo&&eo.friendlyName||defaultFriendlyName,oo=typeof eo=="string"?!1:eo&&"respectConnection"in eo&&eo.respectConnection||!1,io=function(so,ao,lo){if(so==null||new.target!==void 0)throw new Error(`No registration for interface: '${io.friendlyName}'`);if(ao)DI.defineProperty(so,ao,io,oo);else{const uo=DI.getOrCreateAnnotationParamTypes(so);uo[lo]=io}};return io.$isInterface=!0,io.friendlyName=no??"(anonymous)",ro!=null&&(io.register=function(so,ao){return ro(new ResolverBuilder(so,ao??io))}),io.toString=function(){return`InterfaceSymbol<${io.friendlyName}>`},io},inject(...eo){return function(to,ro,no){if(typeof no=="number"){const oo=DI.getOrCreateAnnotationParamTypes(to),io=eo[0];io!==void 0&&(oo[no]=io)}else if(ro)DI.defineProperty(to,ro,eo[0]);else{const oo=no?DI.getOrCreateAnnotationParamTypes(no.value):DI.getOrCreateAnnotationParamTypes(to);let io;for(let so=0;so{no.composedPath()[0]!==this.owner&&(no.detail.container=this,no.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(to,...ro){return this.context=to,this.register(...ro),this.context=null,this}register(...to){if(++this.registerDepth===100)throw new Error("Unable to autoregister dependency");let ro,no,oo,io,so;const ao=this.context;for(let lo=0,uo=to.length;lothis}))}jitRegister(to,ro){if(typeof to!="function")throw new Error(`Attempted to jitRegister something that is not a constructor: '${to}'. Did you forget to register this dependency?`);if(InstrinsicTypeNames.has(to.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${to.name}. Did you forget to add @inject(Key)`);if(isRegistry(to)){const no=to.register(ro);if(!(no instanceof Object)||no.resolve==null){const oo=ro.resolvers.get(to);if(oo!=null)return oo;throw new Error("A valid resolver was not returned from the static register method")}return no}else{if(to.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${to.friendlyName}`);{const no=this.config.defaultResolver(to,ro);return ro.resolvers.set(to,no),no}}}}const cache$1=new WeakMap;function cacheCallbackResult(eo){return function(to,ro,no){if(cache$1.has(no))return cache$1.get(no);const oo=eo(to,ro,no);return cache$1.set(no,oo),oo}}const Registration=Object.freeze({instance(eo,to){return new ResolverImpl(eo,0,to)},singleton(eo,to){return new ResolverImpl(eo,1,to)},transient(eo,to){return new ResolverImpl(eo,2,to)},callback(eo,to){return new ResolverImpl(eo,3,to)},cachedCallback(eo,to){return new ResolverImpl(eo,3,cacheCallbackResult(to))},aliasTo(eo,to){return new ResolverImpl(to,5,eo)}});function validateKey(eo){if(eo==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 buildAllResponse(eo,to,ro){if(eo instanceof ResolverImpl&&eo.strategy===4){const no=eo.state;let oo=no.length;const io=new Array(oo);for(;oo--;)io[oo]=no[oo].resolve(to,ro);return io}return[eo.resolve(to,ro)]}const defaultFriendlyName="(anonymous)";function isObject$3(eo){return typeof eo=="object"&&eo!==null||typeof eo=="function"}const isNativeFunction=function(){const eo=new WeakMap;let to=!1,ro="",no=0;return function(oo){return to=eo.get(oo),to===void 0&&(ro=oo.toString(),no=ro.length,to=no>=29&&no<=100&&ro.charCodeAt(no-1)===125&&ro.charCodeAt(no-2)<=32&&ro.charCodeAt(no-3)===93&&ro.charCodeAt(no-4)===101&&ro.charCodeAt(no-5)===100&&ro.charCodeAt(no-6)===111&&ro.charCodeAt(no-7)===99&&ro.charCodeAt(no-8)===32&&ro.charCodeAt(no-9)===101&&ro.charCodeAt(no-10)===118&&ro.charCodeAt(no-11)===105&&ro.charCodeAt(no-12)===116&&ro.charCodeAt(no-13)===97&&ro.charCodeAt(no-14)===110&&ro.charCodeAt(no-15)===88,eo.set(oo,to)),to}}(),isNumericLookup={};function isArrayIndex(eo){switch(typeof eo){case"number":return eo>=0&&(eo|0)===eo;case"string":{const to=isNumericLookup[eo];if(to!==void 0)return to;const ro=eo.length;if(ro===0)return isNumericLookup[eo]=!1;let no=0;for(let oo=0;oo1||no<48||no>57)return isNumericLookup[eo]=!1;return isNumericLookup[eo]=!0}default:return!1}}function presentationKeyFromTag(eo){return`${eo.toLowerCase()}:presentation`}const presentationRegistry=new Map,ComponentPresentation=Object.freeze({define(eo,to,ro){const no=presentationKeyFromTag(eo);presentationRegistry.get(no)===void 0?presentationRegistry.set(no,to):presentationRegistry.set(no,!1),ro.register(Registration.instance(no,to))},forTag(eo,to){const ro=presentationKeyFromTag(eo),no=presentationRegistry.get(ro);return no===!1?DI.findResponsibleContainer(to).get(ro):no||null}});class DefaultComponentPresentation{constructor(to,ro){this.template=to||null,this.styles=ro===void 0?null:Array.isArray(ro)?ElementStyles.create(ro):ro instanceof ElementStyles?ro:ElementStyles.create([ro])}applyTo(to){const ro=to.$fastController;ro.template===null&&(ro.template=this.template),ro.styles===null&&(ro.styles=this.styles)}}class FoundationElement extends FASTElement{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return this._presentation===void 0&&(this._presentation=ComponentPresentation.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(to){return(ro={})=>new FoundationElementRegistry(this===FoundationElement?class extends FoundationElement{}:this,to,ro)}}__decorate([observable],FoundationElement.prototype,"template",void 0);__decorate([observable],FoundationElement.prototype,"styles",void 0);function resolveOption(eo,to,ro){return typeof eo=="function"?eo(to,ro):eo}class FoundationElementRegistry{constructor(to,ro,no){this.type=to,this.elementDefinition=ro,this.overrideDefinition=no,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(to,ro){const no=this.definition,oo=this.overrideDefinition,so=`${no.prefix||ro.elementPrefix}-${no.baseName}`;ro.tryDefineElement({name:so,type:this.type,baseClass:this.elementDefinition.baseClass,callback:ao=>{const lo=new DefaultComponentPresentation(resolveOption(no.template,ao,no),resolveOption(no.styles,ao,no));ao.definePresentation(lo);let uo=resolveOption(no.shadowOptions,ao,no);ao.shadowRootMode&&(uo?oo.shadowOptions||(uo.mode=ao.shadowRootMode):uo!==null&&(uo={mode:ao.shadowRootMode})),ao.defineElement({elementOptions:resolveOption(no.elementOptions,ao,no),shadowOptions:uo,attributes:resolveOption(no.attributes,ao,no)})}})}}function applyMixins(eo,...to){const ro=AttributeConfiguration.locate(eo);to.forEach(no=>{Object.getOwnPropertyNames(no.prototype).forEach(io=>{io!=="constructor"&&Object.defineProperty(eo.prototype,io,Object.getOwnPropertyDescriptor(no.prototype,io))}),AttributeConfiguration.locate(no).forEach(io=>ro.push(io))})}const Orientation={horizontal:"horizontal",vertical:"vertical"};function findLastIndex(eo,to){let ro=eo.length;for(;ro--;)if(to(eo[ro],ro,eo))return ro;return-1}function canUseDOM$1(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function isHTMLElement$3(...eo){return eo.every(to=>to instanceof HTMLElement)}function getNonce(){const eo=document.querySelector('meta[property="csp-nonce"]');return eo?eo.getAttribute("content"):null}let _canUseFocusVisible;function canUseFocusVisible(){if(typeof _canUseFocusVisible=="boolean")return _canUseFocusVisible;if(!canUseDOM$1())return _canUseFocusVisible=!1,_canUseFocusVisible;const eo=document.createElement("style"),to=getNonce();to!==null&&eo.setAttribute("nonce",to),document.head.appendChild(eo);try{eo.sheet.insertRule("foo:focus-visible {color:inherit}",0),_canUseFocusVisible=!0}catch{_canUseFocusVisible=!1}finally{document.head.removeChild(eo)}return _canUseFocusVisible}const eventFocus="focus",eventFocusIn="focusin",eventFocusOut="focusout",eventKeyDown="keydown";var KeyCodes;(function(eo){eo[eo.alt=18]="alt",eo[eo.arrowDown=40]="arrowDown",eo[eo.arrowLeft=37]="arrowLeft",eo[eo.arrowRight=39]="arrowRight",eo[eo.arrowUp=38]="arrowUp",eo[eo.back=8]="back",eo[eo.backSlash=220]="backSlash",eo[eo.break=19]="break",eo[eo.capsLock=20]="capsLock",eo[eo.closeBracket=221]="closeBracket",eo[eo.colon=186]="colon",eo[eo.colon2=59]="colon2",eo[eo.comma=188]="comma",eo[eo.ctrl=17]="ctrl",eo[eo.delete=46]="delete",eo[eo.end=35]="end",eo[eo.enter=13]="enter",eo[eo.equals=187]="equals",eo[eo.equals2=61]="equals2",eo[eo.equals3=107]="equals3",eo[eo.escape=27]="escape",eo[eo.forwardSlash=191]="forwardSlash",eo[eo.function1=112]="function1",eo[eo.function10=121]="function10",eo[eo.function11=122]="function11",eo[eo.function12=123]="function12",eo[eo.function2=113]="function2",eo[eo.function3=114]="function3",eo[eo.function4=115]="function4",eo[eo.function5=116]="function5",eo[eo.function6=117]="function6",eo[eo.function7=118]="function7",eo[eo.function8=119]="function8",eo[eo.function9=120]="function9",eo[eo.home=36]="home",eo[eo.insert=45]="insert",eo[eo.menu=93]="menu",eo[eo.minus=189]="minus",eo[eo.minus2=109]="minus2",eo[eo.numLock=144]="numLock",eo[eo.numPad0=96]="numPad0",eo[eo.numPad1=97]="numPad1",eo[eo.numPad2=98]="numPad2",eo[eo.numPad3=99]="numPad3",eo[eo.numPad4=100]="numPad4",eo[eo.numPad5=101]="numPad5",eo[eo.numPad6=102]="numPad6",eo[eo.numPad7=103]="numPad7",eo[eo.numPad8=104]="numPad8",eo[eo.numPad9=105]="numPad9",eo[eo.numPadDivide=111]="numPadDivide",eo[eo.numPadDot=110]="numPadDot",eo[eo.numPadMinus=109]="numPadMinus",eo[eo.numPadMultiply=106]="numPadMultiply",eo[eo.numPadPlus=107]="numPadPlus",eo[eo.openBracket=219]="openBracket",eo[eo.pageDown=34]="pageDown",eo[eo.pageUp=33]="pageUp",eo[eo.period=190]="period",eo[eo.print=44]="print",eo[eo.quote=222]="quote",eo[eo.scrollLock=145]="scrollLock",eo[eo.shift=16]="shift",eo[eo.space=32]="space",eo[eo.tab=9]="tab",eo[eo.tilde=192]="tilde",eo[eo.windowsLeft=91]="windowsLeft",eo[eo.windowsOpera=219]="windowsOpera",eo[eo.windowsRight=92]="windowsRight"})(KeyCodes||(KeyCodes={}));const keyArrowDown="ArrowDown",keyArrowLeft="ArrowLeft",keyArrowRight="ArrowRight",keyArrowUp="ArrowUp",keyEnter="Enter",keyEscape="Escape",keyHome="Home",keyEnd="End",keyFunction2="F2",keyPageDown="PageDown",keyPageUp="PageUp",keySpace=" ",keyTab="Tab",ArrowKeys={ArrowDown:keyArrowDown,ArrowLeft:keyArrowLeft,ArrowRight:keyArrowRight,ArrowUp:keyArrowUp};var Direction$1;(function(eo){eo.ltr="ltr",eo.rtl="rtl"})(Direction$1||(Direction$1={}));function limit(eo,to,ro){return Math.min(Math.max(ro,eo),to)}function inRange(eo,to,ro=0){return[to,ro]=[to,ro].sort((no,oo)=>no-oo),to<=eo&&eohtml` + + ${startSlotTemplate(eo,to)} + + + + ${endSlotTemplate(eo,to)} + +`;class ARIAGlobalStatesAndProperties{}__decorate([attr({attribute:"aria-atomic"})],ARIAGlobalStatesAndProperties.prototype,"ariaAtomic",void 0);__decorate([attr({attribute:"aria-busy"})],ARIAGlobalStatesAndProperties.prototype,"ariaBusy",void 0);__decorate([attr({attribute:"aria-controls"})],ARIAGlobalStatesAndProperties.prototype,"ariaControls",void 0);__decorate([attr({attribute:"aria-current"})],ARIAGlobalStatesAndProperties.prototype,"ariaCurrent",void 0);__decorate([attr({attribute:"aria-describedby"})],ARIAGlobalStatesAndProperties.prototype,"ariaDescribedby",void 0);__decorate([attr({attribute:"aria-details"})],ARIAGlobalStatesAndProperties.prototype,"ariaDetails",void 0);__decorate([attr({attribute:"aria-disabled"})],ARIAGlobalStatesAndProperties.prototype,"ariaDisabled",void 0);__decorate([attr({attribute:"aria-errormessage"})],ARIAGlobalStatesAndProperties.prototype,"ariaErrormessage",void 0);__decorate([attr({attribute:"aria-flowto"})],ARIAGlobalStatesAndProperties.prototype,"ariaFlowto",void 0);__decorate([attr({attribute:"aria-haspopup"})],ARIAGlobalStatesAndProperties.prototype,"ariaHaspopup",void 0);__decorate([attr({attribute:"aria-hidden"})],ARIAGlobalStatesAndProperties.prototype,"ariaHidden",void 0);__decorate([attr({attribute:"aria-invalid"})],ARIAGlobalStatesAndProperties.prototype,"ariaInvalid",void 0);__decorate([attr({attribute:"aria-keyshortcuts"})],ARIAGlobalStatesAndProperties.prototype,"ariaKeyshortcuts",void 0);__decorate([attr({attribute:"aria-label"})],ARIAGlobalStatesAndProperties.prototype,"ariaLabel",void 0);__decorate([attr({attribute:"aria-labelledby"})],ARIAGlobalStatesAndProperties.prototype,"ariaLabelledby",void 0);__decorate([attr({attribute:"aria-live"})],ARIAGlobalStatesAndProperties.prototype,"ariaLive",void 0);__decorate([attr({attribute:"aria-owns"})],ARIAGlobalStatesAndProperties.prototype,"ariaOwns",void 0);__decorate([attr({attribute:"aria-relevant"})],ARIAGlobalStatesAndProperties.prototype,"ariaRelevant",void 0);__decorate([attr({attribute:"aria-roledescription"})],ARIAGlobalStatesAndProperties.prototype,"ariaRoledescription",void 0);class Anchor extends FoundationElement{constructor(){super(...arguments),this.handleUnsupportedDelegatesFocus=()=>{var to;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((to=this.$fastController.definition.shadowOptions)===null||to===void 0)&&to.delegatesFocus)&&(this.focus=()=>{var ro;(ro=this.control)===null||ro===void 0||ro.focus()})}}connectedCallback(){super.connectedCallback(),this.handleUnsupportedDelegatesFocus()}}__decorate([attr],Anchor.prototype,"download",void 0);__decorate([attr],Anchor.prototype,"href",void 0);__decorate([attr],Anchor.prototype,"hreflang",void 0);__decorate([attr],Anchor.prototype,"ping",void 0);__decorate([attr],Anchor.prototype,"referrerpolicy",void 0);__decorate([attr],Anchor.prototype,"rel",void 0);__decorate([attr],Anchor.prototype,"target",void 0);__decorate([attr],Anchor.prototype,"type",void 0);__decorate([observable],Anchor.prototype,"defaultSlottedContent",void 0);class DelegatesARIALink{}__decorate([attr({attribute:"aria-expanded"})],DelegatesARIALink.prototype,"ariaExpanded",void 0);applyMixins(DelegatesARIALink,ARIAGlobalStatesAndProperties);applyMixins(Anchor,StartEnd,DelegatesARIALink);const getDirection=eo=>{const to=eo.closest("[dir]");return to!==null&&to.dir==="rtl"?Direction$1.rtl:Direction$1.ltr},badgeTemplate=(eo,to)=>html` + +`;let Badge$1=class extends FoundationElement{constructor(){super(...arguments),this.generateBadgeStyle=()=>{if(!this.fill&&!this.color)return;const to=`background-color: var(--badge-fill-${this.fill});`,ro=`color: var(--badge-color-${this.color});`;return this.fill&&!this.color?to:this.color&&!this.fill?ro:`${ro} ${to}`}}};__decorate([attr({attribute:"fill"})],Badge$1.prototype,"fill",void 0);__decorate([attr({attribute:"color"})],Badge$1.prototype,"color",void 0);__decorate([attr({mode:"boolean"})],Badge$1.prototype,"circular",void 0);const buttonTemplate=(eo,to)=>html` + +`,proxySlotName="form-associated-proxy",ElementInternalsKey="ElementInternals",supportsElementInternals=ElementInternalsKey in window&&"setFormValue"in window[ElementInternalsKey].prototype,InternalsMap=new WeakMap;function FormAssociated(eo){const to=class extends eo{constructor(...ro){super(...ro),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 supportsElementInternals}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 ro=this.proxy.labels,no=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),oo=ro?no.concat(Array.from(ro)):no;return Object.freeze(oo)}else return emptyArray}valueChanged(ro,no){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(ro,no){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(ro,no){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),DOM.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(ro,no){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(ro,no){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),DOM.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!supportsElementInternals)return null;let ro=InternalsMap.get(this);return ro||(ro=this.attachInternals(),InternalsMap.set(this,ro)),ro}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(ro=>this.proxy.removeEventListener(ro,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(ro,no,oo){this.elementInternals?this.elementInternals.setValidity(ro,no,oo):typeof no=="string"&&this.proxy.setCustomValidity(no)}formDisabledCallback(ro){this.disabled=ro}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var ro;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(no=>this.proxy.addEventListener(no,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",proxySlotName),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",proxySlotName)),(ro=this.shadowRoot)===null||ro===void 0||ro.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var ro;this.removeChild(this.proxy),(ro=this.shadowRoot)===null||ro===void 0||ro.removeChild(this.proxySlot)}validate(ro){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,ro)}setFormValue(ro,no){this.elementInternals&&this.elementInternals.setFormValue(ro,no||ro)}_keypressHandler(ro){switch(ro.key){case keyEnter:if(this.form instanceof HTMLFormElement){const no=this.form.querySelector("[type=submit]");no==null||no.click()}break}}stopPropagation(ro){ro.stopPropagation()}};return attr({mode:"boolean"})(to.prototype,"disabled"),attr({mode:"fromView",attribute:"value"})(to.prototype,"initialValue"),attr({attribute:"current-value"})(to.prototype,"currentValue"),attr(to.prototype,"name"),attr({mode:"boolean"})(to.prototype,"required"),observable(to.prototype,"value"),to}function CheckableFormAssociated(eo){class to extends FormAssociated(eo){}class ro extends to{constructor(...oo){super(oo),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(oo,io){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),oo!==void 0&&this.$emit("change"),this.validate()}currentCheckedChanged(oo,io){this.checked=this.currentChecked}updateForm(){const oo=this.checked?this.value:null;this.setFormValue(oo,oo)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return attr({attribute:"checked",mode:"boolean"})(ro.prototype,"checkedAttribute"),attr({attribute:"current-checked",converter:booleanConverter})(ro.prototype,"currentChecked"),observable(ro.prototype,"defaultChecked"),observable(ro.prototype,"checked"),ro}class _Button extends FoundationElement{}class FormAssociatedButton extends FormAssociated(_Button){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let Button$1=class extends FormAssociatedButton{constructor(){super(...arguments),this.handleClick=to=>{var ro;this.disabled&&((ro=this.defaultSlottedContent)===null||ro===void 0?void 0:ro.length)<=1&&to.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;const to=this.proxy.isConnected;to||this.attachProxy(),typeof this.form.requestSubmit=="function"?this.form.requestSubmit(this.proxy):this.proxy.click(),to||this.detachProxy()},this.handleFormReset=()=>{var to;(to=this.form)===null||to===void 0||to.reset()},this.handleUnsupportedDelegatesFocus=()=>{var to;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((to=this.$fastController.definition.shadowOptions)===null||to===void 0)&&to.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(to,ro){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),ro==="submit"&&this.addEventListener("click",this.handleSubmission),to==="submit"&&this.removeEventListener("click",this.handleSubmission),ro==="reset"&&this.addEventListener("click",this.handleFormReset),to==="reset"&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){var to;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();const ro=Array.from((to=this.control)===null||to===void 0?void 0:to.children);ro&&ro.forEach(no=>{no.addEventListener("click",this.handleClick)})}disconnectedCallback(){var to;super.disconnectedCallback();const ro=Array.from((to=this.control)===null||to===void 0?void 0:to.children);ro&&ro.forEach(no=>{no.removeEventListener("click",this.handleClick)})}};__decorate([attr({mode:"boolean"})],Button$1.prototype,"autofocus",void 0);__decorate([attr({attribute:"form"})],Button$1.prototype,"formId",void 0);__decorate([attr],Button$1.prototype,"formaction",void 0);__decorate([attr],Button$1.prototype,"formenctype",void 0);__decorate([attr],Button$1.prototype,"formmethod",void 0);__decorate([attr({mode:"boolean"})],Button$1.prototype,"formnovalidate",void 0);__decorate([attr],Button$1.prototype,"formtarget",void 0);__decorate([attr],Button$1.prototype,"type",void 0);__decorate([observable],Button$1.prototype,"defaultSlottedContent",void 0);class DelegatesARIAButton{}__decorate([attr({attribute:"aria-expanded"})],DelegatesARIAButton.prototype,"ariaExpanded",void 0);__decorate([attr({attribute:"aria-pressed"})],DelegatesARIAButton.prototype,"ariaPressed",void 0);applyMixins(DelegatesARIAButton,ARIAGlobalStatesAndProperties);applyMixins(Button$1,StartEnd,DelegatesARIAButton);const GenerateHeaderOptions={none:"none",default:"default",sticky:"sticky"},DataGridCellTypes={default:"default",columnHeader:"columnheader",rowHeader:"rowheader"},DataGridRowTypes={default:"default",header:"header",stickyHeader:"sticky-header"};let DataGridRow$1=class extends FoundationElement{constructor(){super(...arguments),this.rowType=DataGridRowTypes.default,this.rowData=null,this.columnDefinitions=null,this.isActiveRow=!1,this.cellsRepeatBehavior=null,this.cellsPlaceholder=null,this.focusColumnIndex=0,this.refocusOnLoad=!1,this.updateRowStyle=()=>{this.style.gridTemplateColumns=this.gridTemplateColumns}}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowStyle()}rowTypeChanged(){this.$fastController.isConnected&&this.updateItemTemplate()}rowDataChanged(){if(this.rowData!==null&&this.isActiveRow){this.refocusOnLoad=!0;return}}cellItemTemplateChanged(){this.updateItemTemplate()}headerCellItemTemplateChanged(){this.updateItemTemplate()}connectedCallback(){super.connectedCallback(),this.cellsRepeatBehavior===null&&(this.cellsPlaceholder=document.createComment(""),this.appendChild(this.cellsPlaceholder),this.updateItemTemplate(),this.cellsRepeatBehavior=new RepeatDirective(to=>to.columnDefinitions,to=>to.activeCellItemTemplate,{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener(eventFocusOut,this.handleFocusout),this.addEventListener(eventKeyDown,this.handleKeydown),this.updateRowStyle(),this.refocusOnLoad&&(this.refocusOnLoad=!1,this.cellElements.length>this.focusColumnIndex&&this.cellElements[this.focusColumnIndex].focus())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("cell-focused",this.handleCellFocus),this.removeEventListener(eventFocusOut,this.handleFocusout),this.removeEventListener(eventKeyDown,this.handleKeydown)}handleFocusout(to){this.contains(to.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}handleCellFocus(to){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(to.target),this.$emit("row-focused",this)}handleKeydown(to){if(to.defaultPrevented)return;let ro=0;switch(to.key){case keyArrowLeft:ro=Math.max(0,this.focusColumnIndex-1),this.cellElements[ro].focus(),to.preventDefault();break;case keyArrowRight:ro=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[ro].focus(),to.preventDefault();break;case keyHome:to.ctrlKey||(this.cellElements[0].focus(),to.preventDefault());break;case keyEnd:to.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),to.preventDefault());break}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===DataGridRowTypes.default&&this.cellItemTemplate!==void 0?this.cellItemTemplate:this.rowType===DataGridRowTypes.default&&this.cellItemTemplate===void 0?this.defaultCellItemTemplate:this.headerCellItemTemplate!==void 0?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}};__decorate([attr({attribute:"grid-template-columns"})],DataGridRow$1.prototype,"gridTemplateColumns",void 0);__decorate([attr({attribute:"row-type"})],DataGridRow$1.prototype,"rowType",void 0);__decorate([observable],DataGridRow$1.prototype,"rowData",void 0);__decorate([observable],DataGridRow$1.prototype,"columnDefinitions",void 0);__decorate([observable],DataGridRow$1.prototype,"cellItemTemplate",void 0);__decorate([observable],DataGridRow$1.prototype,"headerCellItemTemplate",void 0);__decorate([observable],DataGridRow$1.prototype,"rowIndex",void 0);__decorate([observable],DataGridRow$1.prototype,"isActiveRow",void 0);__decorate([observable],DataGridRow$1.prototype,"activeCellItemTemplate",void 0);__decorate([observable],DataGridRow$1.prototype,"defaultCellItemTemplate",void 0);__decorate([observable],DataGridRow$1.prototype,"defaultHeaderCellItemTemplate",void 0);__decorate([observable],DataGridRow$1.prototype,"cellElements",void 0);function createRowItemTemplate(eo){const to=eo.tagFor(DataGridRow$1);return html` + <${to} + :rowData="${ro=>ro}" + :cellItemTemplate="${(ro,no)=>no.parent.cellItemTemplate}" + :headerCellItemTemplate="${(ro,no)=>no.parent.headerCellItemTemplate}" + > +`}const dataGridTemplate=(eo,to)=>{const ro=createRowItemTemplate(eo),no=eo.tagFor(DataGridRow$1);return html` + + `};let DataGrid$1=class Y0 extends FoundationElement{constructor(){super(),this.noTabbing=!1,this.generateHeader=GenerateHeaderOptions.default,this.rowsData=[],this.columnDefinitions=null,this.focusRowIndex=0,this.focusColumnIndex=0,this.rowsPlaceholder=null,this.generatedHeader=null,this.isUpdatingFocus=!1,this.pendingFocusUpdate=!1,this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!0,this.generatedGridTemplateColumns="",this.focusOnCell=(to,ro,no)=>{if(this.rowElements.length===0){this.focusRowIndex=0,this.focusColumnIndex=0;return}const oo=Math.max(0,Math.min(this.rowElements.length-1,to)),so=this.rowElements[oo].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),ao=Math.max(0,Math.min(so.length-1,ro)),lo=so[ao];no&&this.scrollHeight!==this.clientHeight&&(oo0||oo>this.focusRowIndex&&this.scrollTop{to&&to.length&&(to.forEach(no=>{no.addedNodes.forEach(oo=>{oo.nodeType===1&&oo.getAttribute("role")==="row"&&(oo.columnDefinitions=this.columnDefinitions)})}),this.queueRowIndexUpdate())},this.queueRowIndexUpdate=()=>{this.rowindexUpdateQueued||(this.rowindexUpdateQueued=!0,DOM.queueUpdate(this.updateRowIndexes))},this.updateRowIndexes=()=>{let to=this.gridTemplateColumns;if(to===void 0){if(this.generatedGridTemplateColumns===""&&this.rowElements.length>0){const ro=this.rowElements[0];this.generatedGridTemplateColumns=new Array(ro.cellElements.length).fill("1fr").join(" ")}to=this.generatedGridTemplateColumns}this.rowElements.forEach((ro,no)=>{const oo=ro;oo.rowIndex=no,oo.gridTemplateColumns=to,this.columnDefinitionsStale&&(oo.columnDefinitions=this.columnDefinitions)}),this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!1}}static generateTemplateColumns(to){let ro="";return to.forEach(no=>{ro=`${ro}${ro===""?"":" "}1fr`}),ro}noTabbingChanged(){this.$fastController.isConnected&&(this.noTabbing?this.setAttribute("tabIndex","-1"):this.setAttribute("tabIndex",this.contains(document.activeElement)||this===document.activeElement?"-1":"0"))}generateHeaderChanged(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowIndexes()}rowsDataChanged(){this.columnDefinitions===null&&this.rowsData.length>0&&(this.columnDefinitions=Y0.generateColumns(this.rowsData[0])),this.$fastController.isConnected&&this.toggleGeneratedHeader()}columnDefinitionsChanged(){if(this.columnDefinitions===null){this.generatedGridTemplateColumns="";return}this.generatedGridTemplateColumns=Y0.generateTemplateColumns(this.columnDefinitions),this.$fastController.isConnected&&(this.columnDefinitionsStale=!0,this.queueRowIndexUpdate())}headerCellItemTemplateChanged(){this.$fastController.isConnected&&this.generatedHeader!==null&&(this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate)}focusRowIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}focusColumnIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}connectedCallback(){super.connectedCallback(),this.rowItemTemplate===void 0&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.rowsPlaceholder=document.createComment(""),this.appendChild(this.rowsPlaceholder),this.toggleGeneratedHeader(),this.rowsRepeatBehavior=new RepeatDirective(to=>to.rowsData,to=>to.rowItemTemplate,{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener(eventFocus,this.handleFocus),this.addEventListener(eventKeyDown,this.handleKeydown),this.addEventListener(eventFocusOut,this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),this.noTabbing&&this.setAttribute("tabindex","-1"),DOM.queueUpdate(this.queueRowIndexUpdate)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("row-focused",this.handleRowFocus),this.removeEventListener(eventFocus,this.handleFocus),this.removeEventListener(eventKeyDown,this.handleKeydown),this.removeEventListener(eventFocusOut,this.handleFocusOut),this.observer.disconnect(),this.rowsPlaceholder=null,this.generatedHeader=null}handleRowFocus(to){this.isUpdatingFocus=!0;const ro=to.target;this.focusRowIndex=this.rowElements.indexOf(ro),this.focusColumnIndex=ro.focusColumnIndex,this.setAttribute("tabIndex","-1"),this.isUpdatingFocus=!1}handleFocus(to){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}handleFocusOut(to){(to.relatedTarget===null||!this.contains(to.relatedTarget))&&this.setAttribute("tabIndex",this.noTabbing?"-1":"0")}handleKeydown(to){if(to.defaultPrevented)return;let ro;const no=this.rowElements.length-1,oo=this.offsetHeight+this.scrollTop,io=this.rowElements[no];switch(to.key){case keyArrowUp:to.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case keyArrowDown:to.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case keyPageUp:if(to.preventDefault(),this.rowElements.length===0){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex===0){this.focusOnCell(0,this.focusColumnIndex,!1);return}for(ro=this.focusRowIndex-1,ro;ro>=0;ro--){const so=this.rowElements[ro];if(so.offsetTop=no||io.offsetTop+io.offsetHeight<=oo){this.focusOnCell(no,this.focusColumnIndex,!1);return}for(ro=this.focusRowIndex+1,ro;ro<=no;ro++){const so=this.rowElements[ro];if(so.offsetTop+so.offsetHeight>oo){let ao=0;this.generateHeader===GenerateHeaderOptions.sticky&&this.generatedHeader!==null&&(ao=this.generatedHeader.clientHeight),this.scrollTop=so.offsetTop-ao;break}}this.focusOnCell(ro,this.focusColumnIndex,!1);break;case keyHome:to.ctrlKey&&(to.preventDefault(),this.focusOnCell(0,0,!0));break;case keyEnd:to.ctrlKey&&this.columnDefinitions!==null&&(to.preventDefault(),this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,!0));break}}queueFocusUpdate(){this.isUpdatingFocus&&(this.contains(document.activeElement)||this===document.activeElement)||this.pendingFocusUpdate===!1&&(this.pendingFocusUpdate=!0,DOM.queueUpdate(()=>this.updateFocus()))}updateFocus(){this.pendingFocusUpdate=!1,this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}toggleGeneratedHeader(){if(this.generatedHeader!==null&&(this.removeChild(this.generatedHeader),this.generatedHeader=null),this.generateHeader!==GenerateHeaderOptions.none&&this.rowsData.length>0){const to=document.createElement(this.rowElementTag);this.generatedHeader=to,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===GenerateHeaderOptions.sticky?DataGridRowTypes.stickyHeader:DataGridRowTypes.header,(this.firstChild!==null||this.rowsPlaceholder!==null)&&this.insertBefore(to,this.firstChild!==null?this.firstChild:this.rowsPlaceholder);return}}};DataGrid$1.generateColumns=eo=>Object.getOwnPropertyNames(eo).map((to,ro)=>({columnDataKey:to,gridColumn:`${ro}`}));__decorate([attr({attribute:"no-tabbing",mode:"boolean"})],DataGrid$1.prototype,"noTabbing",void 0);__decorate([attr({attribute:"generate-header"})],DataGrid$1.prototype,"generateHeader",void 0);__decorate([attr({attribute:"grid-template-columns"})],DataGrid$1.prototype,"gridTemplateColumns",void 0);__decorate([observable],DataGrid$1.prototype,"rowsData",void 0);__decorate([observable],DataGrid$1.prototype,"columnDefinitions",void 0);__decorate([observable],DataGrid$1.prototype,"rowItemTemplate",void 0);__decorate([observable],DataGrid$1.prototype,"cellItemTemplate",void 0);__decorate([observable],DataGrid$1.prototype,"headerCellItemTemplate",void 0);__decorate([observable],DataGrid$1.prototype,"focusRowIndex",void 0);__decorate([observable],DataGrid$1.prototype,"focusColumnIndex",void 0);__decorate([observable],DataGrid$1.prototype,"defaultRowItemTemplate",void 0);__decorate([observable],DataGrid$1.prototype,"rowElementTag",void 0);__decorate([observable],DataGrid$1.prototype,"rowElements",void 0);const defaultCellContentsTemplate=html` + +`,defaultHeaderCellContentsTemplate=html` + +`;let DataGridCell$1=class extends FoundationElement{constructor(){super(...arguments),this.cellType=DataGridCellTypes.default,this.rowData=null,this.columnDefinition=null,this.isActiveCell=!1,this.customCellView=null,this.updateCellStyle=()=>{this.style.gridColumn=this.gridColumn}}cellTypeChanged(){this.$fastController.isConnected&&this.updateCellView()}gridColumnChanged(){this.$fastController.isConnected&&this.updateCellStyle()}columnDefinitionChanged(to,ro){this.$fastController.isConnected&&this.updateCellView()}connectedCallback(){var to;super.connectedCallback(),this.addEventListener(eventFocusIn,this.handleFocusin),this.addEventListener(eventFocusOut,this.handleFocusout),this.addEventListener(eventKeyDown,this.handleKeydown),this.style.gridColumn=`${((to=this.columnDefinition)===null||to===void 0?void 0:to.gridColumn)===void 0?0:this.columnDefinition.gridColumn}`,this.updateCellView(),this.updateCellStyle()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(eventFocusIn,this.handleFocusin),this.removeEventListener(eventFocusOut,this.handleFocusout),this.removeEventListener(eventKeyDown,this.handleKeydown),this.disconnectCellView()}handleFocusin(to){if(!this.isActiveCell){switch(this.isActiveCell=!0,this.cellType){case DataGridCellTypes.columnHeader:if(this.columnDefinition!==null&&this.columnDefinition.headerCellInternalFocusQueue!==!0&&typeof this.columnDefinition.headerCellFocusTargetCallback=="function"){const ro=this.columnDefinition.headerCellFocusTargetCallback(this);ro!==null&&ro.focus()}break;default:if(this.columnDefinition!==null&&this.columnDefinition.cellInternalFocusQueue!==!0&&typeof this.columnDefinition.cellFocusTargetCallback=="function"){const ro=this.columnDefinition.cellFocusTargetCallback(this);ro!==null&&ro.focus()}break}this.$emit("cell-focused",this)}}handleFocusout(to){this!==document.activeElement&&!this.contains(document.activeElement)&&(this.isActiveCell=!1)}handleKeydown(to){if(!(to.defaultPrevented||this.columnDefinition===null||this.cellType===DataGridCellTypes.default&&this.columnDefinition.cellInternalFocusQueue!==!0||this.cellType===DataGridCellTypes.columnHeader&&this.columnDefinition.headerCellInternalFocusQueue!==!0))switch(to.key){case keyEnter:case keyFunction2:if(this.contains(document.activeElement)&&document.activeElement!==this)return;switch(this.cellType){case DataGridCellTypes.columnHeader:if(this.columnDefinition.headerCellFocusTargetCallback!==void 0){const ro=this.columnDefinition.headerCellFocusTargetCallback(this);ro!==null&&ro.focus(),to.preventDefault()}break;default:if(this.columnDefinition.cellFocusTargetCallback!==void 0){const ro=this.columnDefinition.cellFocusTargetCallback(this);ro!==null&&ro.focus(),to.preventDefault()}break}break;case keyEscape:this.contains(document.activeElement)&&document.activeElement!==this&&(this.focus(),to.preventDefault());break}}updateCellView(){if(this.disconnectCellView(),this.columnDefinition!==null)switch(this.cellType){case DataGridCellTypes.columnHeader:this.columnDefinition.headerCellTemplate!==void 0?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=defaultHeaderCellContentsTemplate.render(this,this);break;case void 0:case DataGridCellTypes.rowHeader:case DataGridCellTypes.default:this.columnDefinition.cellTemplate!==void 0?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=defaultCellContentsTemplate.render(this,this);break}}disconnectCellView(){this.customCellView!==null&&(this.customCellView.dispose(),this.customCellView=null)}};__decorate([attr({attribute:"cell-type"})],DataGridCell$1.prototype,"cellType",void 0);__decorate([attr({attribute:"grid-column"})],DataGridCell$1.prototype,"gridColumn",void 0);__decorate([observable],DataGridCell$1.prototype,"rowData",void 0);__decorate([observable],DataGridCell$1.prototype,"columnDefinition",void 0);function createCellItemTemplate(eo){const to=eo.tagFor(DataGridCell$1);return html` + <${to} + cell-type="${ro=>ro.isRowHeader?"rowheader":void 0}" + grid-column="${(ro,no)=>no.index+1}" + :rowData="${(ro,no)=>no.parent.rowData}" + :columnDefinition="${ro=>ro}" + > +`}function createHeaderCellItemTemplate(eo){const to=eo.tagFor(DataGridCell$1);return html` + <${to} + cell-type="columnheader" + grid-column="${(ro,no)=>no.index+1}" + :columnDefinition="${ro=>ro}" + > +`}const dataGridRowTemplate=(eo,to)=>{const ro=createCellItemTemplate(eo),no=createHeaderCellItemTemplate(eo);return html` + + `},dataGridCellTemplate=(eo,to)=>html` + + `,checkboxTemplate=(eo,to)=>html` + +`;class _Checkbox extends FoundationElement{}class FormAssociatedCheckbox extends CheckableFormAssociated(_Checkbox){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let Checkbox$1=class extends FormAssociatedCheckbox{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=to=>{if(!this.readOnly)switch(to.key){case keySpace:this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked;break}},this.clickHandler=to=>{!this.disabled&&!this.readOnly&&(this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}};__decorate([attr({attribute:"readonly",mode:"boolean"})],Checkbox$1.prototype,"readOnly",void 0);__decorate([observable],Checkbox$1.prototype,"defaultSlottedNodes",void 0);__decorate([observable],Checkbox$1.prototype,"indeterminate",void 0);function isListboxOption(eo){return isHTMLElement$3(eo)&&(eo.getAttribute("role")==="option"||eo instanceof HTMLOptionElement)}class ListboxOption extends FoundationElement{constructor(to,ro,no,oo){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,to&&(this.textContent=to),ro&&(this.initialValue=ro),no&&(this.defaultSelected=no),oo&&(this.selected=oo),this.proxy=new Option(`${this.textContent}`,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}checkedChanged(to,ro){if(typeof ro=="boolean"){this.ariaChecked=ro?"true":"false";return}this.ariaChecked=null}contentChanged(to,ro){this.proxy instanceof HTMLOptionElement&&(this.proxy.textContent=this.textContent),this.$emit("contentchange",null,{bubbles:!0})}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(to,ro){this.ariaDisabled=this.disabled?"true":"false",this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}selectedChanged(){this.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}initialValueChanged(to,ro){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}get label(){var to;return(to=this.value)!==null&&to!==void 0?to:this.text}get text(){var to,ro;return(ro=(to=this.textContent)===null||to===void 0?void 0:to.replace(/\s+/g," ").trim())!==null&&ro!==void 0?ro:""}set value(to){const ro=`${to??""}`;this._value=ro,this.dirtyValue=!0,this.proxy instanceof HTMLOptionElement&&(this.proxy.value=ro),Observable$1.notify(this,"value")}get value(){var to;return Observable$1.track(this,"value"),(to=this._value)!==null&&to!==void 0?to:this.text}get form(){return this.proxy?this.proxy.form:null}}__decorate([observable],ListboxOption.prototype,"checked",void 0);__decorate([observable],ListboxOption.prototype,"content",void 0);__decorate([observable],ListboxOption.prototype,"defaultSelected",void 0);__decorate([attr({mode:"boolean"})],ListboxOption.prototype,"disabled",void 0);__decorate([attr({attribute:"selected",mode:"boolean"})],ListboxOption.prototype,"selectedAttribute",void 0);__decorate([observable],ListboxOption.prototype,"selected",void 0);__decorate([attr({attribute:"value",mode:"fromView"})],ListboxOption.prototype,"initialValue",void 0);class DelegatesARIAListboxOption{}__decorate([observable],DelegatesARIAListboxOption.prototype,"ariaChecked",void 0);__decorate([observable],DelegatesARIAListboxOption.prototype,"ariaPosInSet",void 0);__decorate([observable],DelegatesARIAListboxOption.prototype,"ariaSelected",void 0);__decorate([observable],DelegatesARIAListboxOption.prototype,"ariaSetSize",void 0);applyMixins(DelegatesARIAListboxOption,ARIAGlobalStatesAndProperties);applyMixins(ListboxOption,StartEnd,DelegatesARIAListboxOption);class Listbox extends FoundationElement{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1}get firstSelectedOption(){var to;return(to=this.selectedOptions[0])!==null&&to!==void 0?to:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every(to=>to.disabled)}get length(){var to,ro;return(ro=(to=this.options)===null||to===void 0?void 0:to.length)!==null&&ro!==void 0?ro:0}get options(){return Observable$1.track(this,"options"),this._options}set options(to){this._options=to,Observable$1.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(to){this.typeaheadExpired=to}clickHandler(to){const ro=to.target.closest("option,[role=option]");if(ro&&!ro.disabled)return this.selectedIndex=this.options.indexOf(ro),!0}focusAndScrollOptionIntoView(to=this.firstSelectedOption){this.contains(document.activeElement)&&to!==null&&(to.focus(),requestAnimationFrame(()=>{to.scrollIntoView({block:"nearest"})}))}focusinHandler(to){!this.shouldSkipFocus&&to.target===to.currentTarget&&(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){const to=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),ro=new RegExp(`^${to}`,"gi");return this.options.filter(no=>no.text.trim().match(ro))}getSelectableIndex(to=this.selectedIndex,ro){const no=to>ro?-1:to!so&&!ao.disabled&&lo!so&&!ao.disabled&&lo>oo?ao:so,io);break}}return this.options.indexOf(io)}handleChange(to,ro){switch(ro){case"selected":{Listbox.slottedOptionFilter(to)&&(this.selectedIndex=this.options.indexOf(to)),this.setSelectedOptions();break}}}handleTypeAhead(to){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout(()=>this.typeaheadExpired=!0,Listbox.TYPE_AHEAD_TIMEOUT_MS),!(to.length>1)&&(this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${to}`)}keydownHandler(to){if(this.disabled)return!0;this.shouldSkipFocus=!1;const ro=to.key;switch(ro){case keyHome:{to.shiftKey||(to.preventDefault(),this.selectFirstOption());break}case keyArrowDown:{to.shiftKey||(to.preventDefault(),this.selectNextOption());break}case keyArrowUp:{to.shiftKey||(to.preventDefault(),this.selectPreviousOption());break}case keyEnd:{to.preventDefault(),this.selectLastOption();break}case keyTab:return this.focusAndScrollOptionIntoView(),!0;case keyEnter:case keyEscape:return!0;case keySpace:if(this.typeaheadExpired)return!0;default:return ro.length===1&&this.handleTypeAhead(`${ro}`),!0}}mousedownHandler(to){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}multipleChanged(to,ro){this.ariaMultiSelectable=ro?"true":null}selectedIndexChanged(to,ro){var no;if(!this.hasSelectableOptions){this.selectedIndex=-1;return}if(!((no=this.options[this.selectedIndex])===null||no===void 0)&&no.disabled&&typeof to=="number"){const oo=this.getSelectableIndex(to,ro),io=oo>-1?oo:to;this.selectedIndex=io,ro===io&&this.selectedIndexChanged(ro,io);return}this.setSelectedOptions()}selectedOptionsChanged(to,ro){var no;const oo=ro.filter(Listbox.slottedOptionFilter);(no=this.options)===null||no===void 0||no.forEach(io=>{const so=Observable$1.getNotifier(io);so.unsubscribe(this,"selected"),io.selected=oo.includes(io),so.subscribe(this,"selected")})}selectFirstOption(){var to,ro;this.disabled||(this.selectedIndex=(ro=(to=this.options)===null||to===void 0?void 0:to.findIndex(no=>!no.disabled))!==null&&ro!==void 0?ro:-1)}selectLastOption(){this.disabled||(this.selectedIndex=findLastIndex(this.options,to=>!to.disabled))}selectNextOption(){!this.disabled&&this.selectedIndex0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){var to,ro;this.selectedIndex=(ro=(to=this.options)===null||to===void 0?void 0:to.findIndex(no=>no.defaultSelected))!==null&&ro!==void 0?ro:-1}setSelectedOptions(){var to,ro,no;!((to=this.options)===null||to===void 0)&&to.length&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=(no=(ro=this.firstSelectedOption)===null||ro===void 0?void 0:ro.id)!==null&&no!==void 0?no:"",this.focusAndScrollOptionIntoView())}slottedOptionsChanged(to,ro){this.options=ro.reduce((oo,io)=>(isListboxOption(io)&&oo.push(io),oo),[]);const no=`${this.options.length}`;this.options.forEach((oo,io)=>{oo.id||(oo.id=uniqueId("option-")),oo.ariaPosInSet=`${io+1}`,oo.ariaSetSize=no}),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(to,ro){if(this.$fastController.isConnected){const no=this.getTypeaheadMatches();if(no.length){const oo=this.options.indexOf(no[0]);oo>-1&&(this.selectedIndex=oo)}this.typeaheadExpired=!1}}}Listbox.slottedOptionFilter=eo=>isListboxOption(eo)&&!eo.hidden;Listbox.TYPE_AHEAD_TIMEOUT_MS=1e3;__decorate([attr({mode:"boolean"})],Listbox.prototype,"disabled",void 0);__decorate([observable],Listbox.prototype,"selectedIndex",void 0);__decorate([observable],Listbox.prototype,"selectedOptions",void 0);__decorate([observable],Listbox.prototype,"slottedOptions",void 0);__decorate([observable],Listbox.prototype,"typeaheadBuffer",void 0);class DelegatesARIAListbox{}__decorate([observable],DelegatesARIAListbox.prototype,"ariaActiveDescendant",void 0);__decorate([observable],DelegatesARIAListbox.prototype,"ariaDisabled",void 0);__decorate([observable],DelegatesARIAListbox.prototype,"ariaExpanded",void 0);__decorate([observable],DelegatesARIAListbox.prototype,"ariaMultiSelectable",void 0);applyMixins(DelegatesARIAListbox,ARIAGlobalStatesAndProperties);applyMixins(Listbox,DelegatesARIAListbox);const SelectPosition={above:"above",below:"below"};function composedParent(eo){const to=eo.parentElement;if(to)return to;{const ro=eo.getRootNode();if(ro.host instanceof HTMLElement)return ro.host}return null}function composedContains(eo,to){let ro=to;for(;ro!==null;){if(ro===eo)return!0;ro=composedParent(ro)}return!1}const defaultElement=document.createElement("div");function isFastElement(eo){return eo instanceof FASTElement}class QueuedStyleSheetTarget{setProperty(to,ro){DOM.queueUpdate(()=>this.target.setProperty(to,ro))}removeProperty(to){DOM.queueUpdate(()=>this.target.removeProperty(to))}}class ConstructableStyleSheetTarget extends QueuedStyleSheetTarget{constructor(to){super();const ro=new CSSStyleSheet;this.target=ro.cssRules[ro.insertRule(":host{}")].style,to.$fastController.addStyles(ElementStyles.create([ro]))}}class DocumentStyleSheetTarget extends QueuedStyleSheetTarget{constructor(){super();const to=new CSSStyleSheet;this.target=to.cssRules[to.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,to]}}class HeadStyleElementStyleSheetTarget extends QueuedStyleSheetTarget{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:to}=this.style;if(to){const ro=to.insertRule(":root{}",to.cssRules.length);this.target=to.cssRules[ro].style}}}class StyleElementStyleSheetTarget{constructor(to){this.store=new Map,this.target=null;const ro=to.$fastController;this.style=document.createElement("style"),ro.addStyles(this.style),Observable$1.getNotifier(ro).subscribe(this,"isConnected"),this.handleChange(ro,"isConnected")}targetChanged(){if(this.target!==null)for(const[to,ro]of this.store.entries())this.target.setProperty(to,ro)}setProperty(to,ro){this.store.set(to,ro),DOM.queueUpdate(()=>{this.target!==null&&this.target.setProperty(to,ro)})}removeProperty(to){this.store.delete(to),DOM.queueUpdate(()=>{this.target!==null&&this.target.removeProperty(to)})}handleChange(to,ro){const{sheet:no}=this.style;if(no){const oo=no.insertRule(":host{}",no.cssRules.length);this.target=no.cssRules[oo].style}else this.target=null}}__decorate([observable],StyleElementStyleSheetTarget.prototype,"target",void 0);class ElementStyleSheetTarget{constructor(to){this.target=to.style}setProperty(to,ro){DOM.queueUpdate(()=>this.target.setProperty(to,ro))}removeProperty(to){DOM.queueUpdate(()=>this.target.removeProperty(to))}}class RootStyleSheetTarget{setProperty(to,ro){RootStyleSheetTarget.properties[to]=ro;for(const no of RootStyleSheetTarget.roots.values())PropertyTargetManager.getOrCreate(RootStyleSheetTarget.normalizeRoot(no)).setProperty(to,ro)}removeProperty(to){delete RootStyleSheetTarget.properties[to];for(const ro of RootStyleSheetTarget.roots.values())PropertyTargetManager.getOrCreate(RootStyleSheetTarget.normalizeRoot(ro)).removeProperty(to)}static registerRoot(to){const{roots:ro}=RootStyleSheetTarget;if(!ro.has(to)){ro.add(to);const no=PropertyTargetManager.getOrCreate(this.normalizeRoot(to));for(const oo in RootStyleSheetTarget.properties)no.setProperty(oo,RootStyleSheetTarget.properties[oo])}}static unregisterRoot(to){const{roots:ro}=RootStyleSheetTarget;if(ro.has(to)){ro.delete(to);const no=PropertyTargetManager.getOrCreate(RootStyleSheetTarget.normalizeRoot(to));for(const oo in RootStyleSheetTarget.properties)no.removeProperty(oo)}}static normalizeRoot(to){return to===defaultElement?document:to}}RootStyleSheetTarget.roots=new Set;RootStyleSheetTarget.properties={};const propertyTargetCache=new WeakMap,propertyTargetCtor=DOM.supportsAdoptedStyleSheets?ConstructableStyleSheetTarget:StyleElementStyleSheetTarget,PropertyTargetManager=Object.freeze({getOrCreate(eo){if(propertyTargetCache.has(eo))return propertyTargetCache.get(eo);let to;return eo===defaultElement?to=new RootStyleSheetTarget:eo instanceof Document?to=DOM.supportsAdoptedStyleSheets?new DocumentStyleSheetTarget:new HeadStyleElementStyleSheetTarget:isFastElement(eo)?to=new propertyTargetCtor(eo):to=new ElementStyleSheetTarget(eo),propertyTargetCache.set(eo,to),to}});class DesignTokenImpl extends CSSDirective{constructor(to){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=to.name,to.cssCustomPropertyName!==null&&(this.cssCustomProperty=`--${to.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=DesignTokenImpl.uniqueId(),DesignTokenImpl.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(to){return new DesignTokenImpl({name:typeof to=="string"?to:to.name,cssCustomPropertyName:typeof to=="string"?to:to.cssCustomPropertyName===void 0?to.name:to.cssCustomPropertyName})}static isCSSDesignToken(to){return typeof to.cssCustomProperty=="string"}static isDerivedDesignTokenValue(to){return typeof to=="function"}static getTokenById(to){return DesignTokenImpl.tokensById.get(to)}getOrCreateSubscriberSet(to=this){return this.subscribers.get(to)||this.subscribers.set(to,new Set)&&this.subscribers.get(to)}createCSS(){return this.cssVar||""}getValueFor(to){const ro=DesignTokenNode.getOrCreate(to).get(this);if(ro!==void 0)return ro;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${to} or an ancestor of ${to}.`)}setValueFor(to,ro){return this._appliedTo.add(to),ro instanceof DesignTokenImpl&&(ro=this.alias(ro)),DesignTokenNode.getOrCreate(to).set(this,ro),this}deleteValueFor(to){return this._appliedTo.delete(to),DesignTokenNode.existsFor(to)&&DesignTokenNode.getOrCreate(to).delete(this),this}withDefault(to){return this.setValueFor(defaultElement,to),this}subscribe(to,ro){const no=this.getOrCreateSubscriberSet(ro);ro&&!DesignTokenNode.existsFor(ro)&&DesignTokenNode.getOrCreate(ro),no.has(to)||no.add(to)}unsubscribe(to,ro){const no=this.subscribers.get(ro||this);no&&no.has(to)&&no.delete(to)}notify(to){const ro=Object.freeze({token:this,target:to});this.subscribers.has(this)&&this.subscribers.get(this).forEach(no=>no.handleChange(ro)),this.subscribers.has(to)&&this.subscribers.get(to).forEach(no=>no.handleChange(ro))}alias(to){return ro=>to.getValueFor(ro)}}DesignTokenImpl.uniqueId=(()=>{let eo=0;return()=>(eo++,eo.toString(16))})();DesignTokenImpl.tokensById=new Map;class CustomPropertyReflector{startReflection(to,ro){to.subscribe(this,ro),this.handleChange({token:to,target:ro})}stopReflection(to,ro){to.unsubscribe(this,ro),this.remove(to,ro)}handleChange(to){const{token:ro,target:no}=to;this.add(ro,no)}add(to,ro){PropertyTargetManager.getOrCreate(ro).setProperty(to.cssCustomProperty,this.resolveCSSValue(DesignTokenNode.getOrCreate(ro).get(to)))}remove(to,ro){PropertyTargetManager.getOrCreate(ro).removeProperty(to.cssCustomProperty)}resolveCSSValue(to){return to&&typeof to.createCSS=="function"?to.createCSS():to}}class DesignTokenBindingObserver{constructor(to,ro,no){this.source=to,this.token=ro,this.node=no,this.dependencies=new Set,this.observer=Observable$1.binding(to,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,defaultExecutionContext))}}class Store{constructor(){this.values=new Map}set(to,ro){this.values.get(to)!==ro&&(this.values.set(to,ro),Observable$1.getNotifier(this).notify(to.id))}get(to){return Observable$1.track(this,to.id),this.values.get(to)}delete(to){this.values.delete(to)}all(){return this.values.entries()}}const nodeCache=new WeakMap,childToParent=new WeakMap;class DesignTokenNode{constructor(to){this.target=to,this.store=new Store,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(ro,no)=>{const oo=DesignTokenImpl.getTokenById(no);if(oo&&(oo.notify(this.target),DesignTokenImpl.isCSSDesignToken(oo))){const io=this.parent,so=this.isReflecting(oo);if(io){const ao=io.get(oo),lo=ro.get(oo);ao!==lo&&!so?this.reflectToCSS(oo):ao===lo&&so&&this.stopReflectToCSS(oo)}else so||this.reflectToCSS(oo)}}},nodeCache.set(to,this),Observable$1.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),to instanceof FASTElement?to.$fastController.addBehaviors([this]):to.isConnected&&this.bind()}static getOrCreate(to){return nodeCache.get(to)||new DesignTokenNode(to)}static existsFor(to){return nodeCache.has(to)}static findParent(to){if(defaultElement!==to.target){let ro=composedParent(to.target);for(;ro!==null;){if(nodeCache.has(ro))return nodeCache.get(ro);ro=composedParent(ro)}return DesignTokenNode.getOrCreate(defaultElement)}return null}static findClosestAssignedNode(to,ro){let no=ro;do{if(no.has(to))return no;no=no.parent?no.parent:no.target!==defaultElement?DesignTokenNode.getOrCreate(defaultElement):null}while(no!==null);return null}get parent(){return childToParent.get(this)||null}has(to){return this.assignedValues.has(to)}get(to){const ro=this.store.get(to);if(ro!==void 0)return ro;const no=this.getRaw(to);if(no!==void 0)return this.hydrate(to,no),this.get(to)}getRaw(to){var ro;return this.assignedValues.has(to)?this.assignedValues.get(to):(ro=DesignTokenNode.findClosestAssignedNode(to,this))===null||ro===void 0?void 0:ro.getRaw(to)}set(to,ro){DesignTokenImpl.isDerivedDesignTokenValue(this.assignedValues.get(to))&&this.tearDownBindingObserver(to),this.assignedValues.set(to,ro),DesignTokenImpl.isDerivedDesignTokenValue(ro)?this.setupBindingObserver(to,ro):this.store.set(to,ro)}delete(to){this.assignedValues.delete(to),this.tearDownBindingObserver(to);const ro=this.getRaw(to);ro?this.hydrate(to,ro):this.store.delete(to)}bind(){const to=DesignTokenNode.findParent(this);to&&to.appendChild(this);for(const ro of this.assignedValues.keys())ro.notify(this.target)}unbind(){this.parent&&childToParent.get(this).removeChild(this)}appendChild(to){to.parent&&childToParent.get(to).removeChild(to);const ro=this.children.filter(no=>to.contains(no));childToParent.set(to,this),this.children.push(to),ro.forEach(no=>to.appendChild(no)),Observable$1.getNotifier(this.store).subscribe(to);for(const[no,oo]of this.store.all())to.hydrate(no,this.bindingObservers.has(no)?this.getRaw(no):oo)}removeChild(to){const ro=this.children.indexOf(to);return ro!==-1&&this.children.splice(ro,1),Observable$1.getNotifier(this.store).unsubscribe(to),to.parent===this?childToParent.delete(to):!1}contains(to){return composedContains(this.target,to.target)}reflectToCSS(to){this.isReflecting(to)||(this.reflecting.add(to),DesignTokenNode.cssCustomPropertyReflector.startReflection(to,this.target))}stopReflectToCSS(to){this.isReflecting(to)&&(this.reflecting.delete(to),DesignTokenNode.cssCustomPropertyReflector.stopReflection(to,this.target))}isReflecting(to){return this.reflecting.has(to)}handleChange(to,ro){const no=DesignTokenImpl.getTokenById(ro);no&&this.hydrate(no,this.getRaw(no))}hydrate(to,ro){if(!this.has(to)){const no=this.bindingObservers.get(to);DesignTokenImpl.isDerivedDesignTokenValue(ro)?no?no.source!==ro&&(this.tearDownBindingObserver(to),this.setupBindingObserver(to,ro)):this.setupBindingObserver(to,ro):(no&&this.tearDownBindingObserver(to),this.store.set(to,ro))}}setupBindingObserver(to,ro){const no=new DesignTokenBindingObserver(ro,to,this);return this.bindingObservers.set(to,no),no}tearDownBindingObserver(to){return this.bindingObservers.has(to)?(this.bindingObservers.get(to).disconnect(),this.bindingObservers.delete(to),!0):!1}}DesignTokenNode.cssCustomPropertyReflector=new CustomPropertyReflector;__decorate([observable],DesignTokenNode.prototype,"children",void 0);function create$2(eo){return DesignTokenImpl.from(eo)}const DesignToken=Object.freeze({create:create$2,notifyConnection(eo){return!eo.isConnected||!DesignTokenNode.existsFor(eo)?!1:(DesignTokenNode.getOrCreate(eo).bind(),!0)},notifyDisconnection(eo){return eo.isConnected||!DesignTokenNode.existsFor(eo)?!1:(DesignTokenNode.getOrCreate(eo).unbind(),!0)},registerRoot(eo=defaultElement){RootStyleSheetTarget.registerRoot(eo)},unregisterRoot(eo=defaultElement){RootStyleSheetTarget.unregisterRoot(eo)}}),ElementDisambiguation=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),elementTypesByTag=new Map,elementTagsByType=new Map;let rootDesignSystem=null;const designSystemKey=DI.createInterface(eo=>eo.cachedCallback(to=>(rootDesignSystem===null&&(rootDesignSystem=new DefaultDesignSystem(null,to)),rootDesignSystem))),DesignSystem=Object.freeze({tagFor(eo){return elementTagsByType.get(eo)},responsibleFor(eo){const to=eo.$$designSystem$$;return to||DI.findResponsibleContainer(eo).get(designSystemKey)},getOrCreate(eo){if(!eo)return rootDesignSystem===null&&(rootDesignSystem=DI.getOrCreateDOMContainer().get(designSystemKey)),rootDesignSystem;const to=eo.$$designSystem$$;if(to)return to;const ro=DI.getOrCreateDOMContainer(eo);if(ro.has(designSystemKey,!1))return ro.get(designSystemKey);{const no=new DefaultDesignSystem(eo,ro);return ro.register(Registration.instance(designSystemKey,no)),no}}});function extractTryDefineElementParams(eo,to,ro){return typeof eo=="string"?{name:eo,type:to,callback:ro}:eo}class DefaultDesignSystem{constructor(to,ro){this.owner=to,this.container=ro,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>ElementDisambiguation.definitionCallbackOnly,to!==null&&(to.$$designSystem$$=this)}withPrefix(to){return this.prefix=to,this}withShadowRootMode(to){return this.shadowRootMode=to,this}withElementDisambiguation(to){return this.disambiguate=to,this}withDesignTokenRoot(to){return this.designTokenRoot=to,this}register(...to){const ro=this.container,no=[],oo=this.disambiguate,io=this.shadowRootMode,so={elementPrefix:this.prefix,tryDefineElement(ao,lo,uo){const co=extractTryDefineElementParams(ao,lo,uo),{name:fo,callback:ho,baseClass:po}=co;let{type:go}=co,vo=fo,bo=elementTypesByTag.get(vo),xo=!0;for(;bo;){const _o=oo(vo,go,bo);switch(_o){case ElementDisambiguation.ignoreDuplicate:return;case ElementDisambiguation.definitionCallbackOnly:xo=!1,bo=void 0;break;default:vo=_o,bo=elementTypesByTag.get(vo);break}}xo&&((elementTagsByType.has(go)||go===FoundationElement)&&(go=class extends go{}),elementTypesByTag.set(vo,go),elementTagsByType.set(go,vo),po&&elementTagsByType.set(po,vo)),no.push(new ElementDefinitionEntry(ro,vo,go,io,ho,xo))}};this.designTokensInitialized||(this.designTokensInitialized=!0,this.designTokenRoot!==null&&DesignToken.registerRoot(this.designTokenRoot)),ro.registerWithContext(so,...to);for(const ao of no)ao.callback(ao),ao.willDefine&&ao.definition!==null&&ao.definition.define();return this}}class ElementDefinitionEntry{constructor(to,ro,no,oo,io,so){this.container=to,this.name=ro,this.type=no,this.shadowRootMode=oo,this.callback=io,this.willDefine=so,this.definition=null}definePresentation(to){ComponentPresentation.define(this.name,to,this.container)}defineElement(to){this.definition=new FASTElementDefinition(this.type,Object.assign(Object.assign({},to),{name:this.name}))}tagFor(to){return DesignSystem.tagFor(to)}}const dividerTemplate=(eo,to)=>html` + +`,DividerRole={separator:"separator",presentation:"presentation"};let Divider$1=class extends FoundationElement{constructor(){super(...arguments),this.role=DividerRole.separator,this.orientation=Orientation.horizontal}};__decorate([attr],Divider$1.prototype,"role",void 0);__decorate([attr],Divider$1.prototype,"orientation",void 0);const listboxOptionTemplate=(eo,to)=>html` + +`;class ListboxElement extends Listbox{constructor(){super(...arguments),this.activeIndex=-1,this.rangeStartIndex=-1}get activeOption(){return this.options[this.activeIndex]}get checkedOptions(){var to;return(to=this.options)===null||to===void 0?void 0:to.filter(ro=>ro.checked)}get firstSelectedOptionIndex(){return this.options.indexOf(this.firstSelectedOption)}activeIndexChanged(to,ro){var no,oo;this.ariaActiveDescendant=(oo=(no=this.options[ro])===null||no===void 0?void 0:no.id)!==null&&oo!==void 0?oo:"",this.focusAndScrollOptionIntoView()}checkActiveIndex(){if(!this.multiple)return;const to=this.activeOption;to&&(to.checked=!0)}checkFirstOption(to=!1){to?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach((ro,no)=>{ro.checked=inRange(no,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}checkLastOption(to=!1){to?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((ro,no)=>{ro.checked=inRange(no,this.rangeStartIndex,this.options.length)})):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.focusoutHandler)}disconnectedCallback(){this.removeEventListener("focusout",this.focusoutHandler),super.disconnectedCallback()}checkNextOption(to=!1){to?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((ro,no)=>{ro.checked=inRange(no,this.rangeStartIndex,this.activeIndex+1)})):this.uncheckAllOptions(),this.activeIndex+=this.activeIndex{ro.checked=inRange(no,this.activeIndex,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex-=this.activeIndex>0?1:0,this.checkActiveIndex()}clickHandler(to){var ro;if(!this.multiple)return super.clickHandler(to);const no=(ro=to.target)===null||ro===void 0?void 0:ro.closest("[role=option]");if(!(!no||no.disabled))return this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(no),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0}focusAndScrollOptionIntoView(){super.focusAndScrollOptionIntoView(this.activeOption)}focusinHandler(to){if(!this.multiple)return super.focusinHandler(to);!this.shouldSkipFocus&&to.target===to.currentTarget&&(this.uncheckAllOptions(),this.activeIndex===-1&&(this.activeIndex=this.firstSelectedOptionIndex!==-1?this.firstSelectedOptionIndex:0),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}focusoutHandler(to){this.multiple&&this.uncheckAllOptions()}keydownHandler(to){if(!this.multiple)return super.keydownHandler(to);if(this.disabled)return!0;const{key:ro,shiftKey:no}=to;switch(this.shouldSkipFocus=!1,ro){case keyHome:{this.checkFirstOption(no);return}case keyArrowDown:{this.checkNextOption(no);return}case keyArrowUp:{this.checkPreviousOption(no);return}case keyEnd:{this.checkLastOption(no);return}case keyTab:return this.focusAndScrollOptionIntoView(),!0;case keyEscape:return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case keySpace:if(to.preventDefault(),this.typeAheadExpired){this.toggleSelectedForAllCheckedOptions();return}default:return ro.length===1&&this.handleTypeAhead(`${ro}`),!0}}mousedownHandler(to){if(to.offsetX>=0&&to.offsetX<=this.scrollWidth)return super.mousedownHandler(to)}multipleChanged(to,ro){var no;this.ariaMultiSelectable=ro?"true":null,(no=this.options)===null||no===void 0||no.forEach(oo=>{oo.checked=ro?!1:void 0}),this.setSelectedOptions()}setSelectedOptions(){if(!this.multiple){super.setSelectedOptions();return}this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter(to=>to.selected),this.focusAndScrollOptionIntoView())}sizeChanged(to,ro){var no;const oo=Math.max(0,parseInt((no=ro==null?void 0:ro.toFixed())!==null&&no!==void 0?no:"",10));oo!==ro&&DOM.queueUpdate(()=>{this.size=oo})}toggleSelectedForAllCheckedOptions(){const to=this.checkedOptions.filter(no=>!no.disabled),ro=!to.every(no=>no.selected);to.forEach(no=>no.selected=ro),this.selectedIndex=this.options.indexOf(to[to.length-1]),this.setSelectedOptions()}typeaheadBufferChanged(to,ro){if(!this.multiple){super.typeaheadBufferChanged(to,ro);return}if(this.$fastController.isConnected){const no=this.getTypeaheadMatches(),oo=this.options.indexOf(no[0]);oo>-1&&(this.activeIndex=oo,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}uncheckAllOptions(to=!1){this.options.forEach(ro=>ro.checked=this.multiple?!1:void 0),to||(this.rangeStartIndex=-1)}}__decorate([observable],ListboxElement.prototype,"activeIndex",void 0);__decorate([attr({mode:"boolean"})],ListboxElement.prototype,"multiple",void 0);__decorate([attr({converter:nullableNumberConverter})],ListboxElement.prototype,"size",void 0);class _TextField extends FoundationElement{}class FormAssociatedTextField extends FormAssociated(_TextField){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const TextFieldType={email:"email",password:"password",tel:"tel",text:"text",url:"url"};let TextField$1=class extends FormAssociatedTextField{constructor(){super(...arguments),this.type=TextFieldType.text}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&DOM.queueUpdate(()=>{this.focus()})}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}};__decorate([attr({attribute:"readonly",mode:"boolean"})],TextField$1.prototype,"readOnly",void 0);__decorate([attr({mode:"boolean"})],TextField$1.prototype,"autofocus",void 0);__decorate([attr],TextField$1.prototype,"placeholder",void 0);__decorate([attr],TextField$1.prototype,"type",void 0);__decorate([attr],TextField$1.prototype,"list",void 0);__decorate([attr({converter:nullableNumberConverter})],TextField$1.prototype,"maxlength",void 0);__decorate([attr({converter:nullableNumberConverter})],TextField$1.prototype,"minlength",void 0);__decorate([attr],TextField$1.prototype,"pattern",void 0);__decorate([attr({converter:nullableNumberConverter})],TextField$1.prototype,"size",void 0);__decorate([attr({mode:"boolean"})],TextField$1.prototype,"spellcheck",void 0);__decorate([observable],TextField$1.prototype,"defaultSlottedNodes",void 0);class DelegatesARIATextbox{}applyMixins(DelegatesARIATextbox,ARIAGlobalStatesAndProperties);applyMixins(TextField$1,StartEnd,DelegatesARIATextbox);const progressSegments=44,progressRingTemplate=(eo,to)=>html` + +`;class BaseProgress extends FoundationElement{constructor(){super(...arguments),this.percentComplete=0}valueChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){const to=typeof this.min=="number"?this.min:0,ro=typeof this.max=="number"?this.max:100,no=typeof this.value=="number"?this.value:0,oo=ro-to;this.percentComplete=oo===0?0:Math.fround((no-to)/oo*100)}}__decorate([attr({converter:nullableNumberConverter})],BaseProgress.prototype,"value",void 0);__decorate([attr({converter:nullableNumberConverter})],BaseProgress.prototype,"min",void 0);__decorate([attr({converter:nullableNumberConverter})],BaseProgress.prototype,"max",void 0);__decorate([attr({mode:"boolean"})],BaseProgress.prototype,"paused",void 0);__decorate([observable],BaseProgress.prototype,"percentComplete",void 0);const radioGroupTemplate=(eo,to)=>html` + +`;let RadioGroup$1=class extends FoundationElement{constructor(){super(...arguments),this.orientation=Orientation.horizontal,this.radioChangeHandler=to=>{const ro=to.target;ro.checked&&(this.slottedRadioButtons.forEach(no=>{no!==ro&&(no.checked=!1,this.isInsideFoundationToolbar||no.setAttribute("tabindex","-1"))}),this.selectedRadio=ro,this.value=ro.value,ro.setAttribute("tabindex","0"),this.focusedRadio=ro),to.stopPropagation()},this.moveToRadioByIndex=(to,ro)=>{const no=to[ro];this.isInsideToolbar||(no.setAttribute("tabindex","0"),no.readOnly?this.slottedRadioButtons.forEach(oo=>{oo!==no&&oo.setAttribute("tabindex","-1")}):(no.checked=!0,this.selectedRadio=no)),this.focusedRadio=no,no.focus()},this.moveRightOffGroup=()=>{var to;(to=this.nextElementSibling)===null||to===void 0||to.focus()},this.moveLeftOffGroup=()=>{var to;(to=this.previousElementSibling)===null||to===void 0||to.focus()},this.focusOutHandler=to=>{const ro=this.slottedRadioButtons,no=to.target,oo=no!==null?ro.indexOf(no):0,io=this.focusedRadio?ro.indexOf(this.focusedRadio):-1;return(io===0&&oo===io||io===ro.length-1&&io===oo)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),ro.forEach(so=>{so!==this.selectedRadio&&so.setAttribute("tabindex","-1")}))):(this.focusedRadio=ro[0],this.focusedRadio.setAttribute("tabindex","0"),ro.forEach(so=>{so!==this.focusedRadio&&so.setAttribute("tabindex","-1")}))),!0},this.clickHandler=to=>{const ro=to.target;if(ro){const no=this.slottedRadioButtons;ro.checked||no.indexOf(ro)===0?(ro.setAttribute("tabindex","0"),this.selectedRadio=ro):(ro.setAttribute("tabindex","-1"),this.selectedRadio=null),this.focusedRadio=ro}to.preventDefault()},this.shouldMoveOffGroupToTheRight=(to,ro,no)=>to===ro.length&&this.isInsideToolbar&&no===keyArrowRight,this.shouldMoveOffGroupToTheLeft=(to,ro)=>(this.focusedRadio?to.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&ro===keyArrowLeft,this.checkFocusedRadio=()=>{this.focusedRadio!==null&&!this.focusedRadio.readOnly&&!this.focusedRadio.checked&&(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=to=>{const ro=this.slottedRadioButtons;let no=0;if(no=this.focusedRadio?ro.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(no,ro,to.key)){this.moveRightOffGroup();return}else no===ro.length&&(no=0);for(;no1;)if(ro[no].disabled){if(this.focusedRadio&&no===ro.indexOf(this.focusedRadio))break;if(no+1>=ro.length){if(this.isInsideToolbar)break;no=0}else no+=1}else{this.moveToRadioByIndex(ro,no);break}},this.moveLeft=to=>{const ro=this.slottedRadioButtons;let no=0;if(no=this.focusedRadio?ro.indexOf(this.focusedRadio)-1:0,no=no<0?ro.length-1:no,this.shouldMoveOffGroupToTheLeft(ro,to.key)){this.moveLeftOffGroup();return}for(;no>=0&&ro.length>1;)if(ro[no].disabled){if(this.focusedRadio&&no===ro.indexOf(this.focusedRadio))break;no-1<0?no=ro.length-1:no-=1}else{this.moveToRadioByIndex(ro,no);break}},this.keydownHandler=to=>{const ro=to.key;if(ro in ArrowKeys&&this.isInsideFoundationToolbar)return!0;switch(ro){case keyEnter:{this.checkFocusedRadio();break}case keyArrowRight:case keyArrowDown:{this.direction===Direction$1.ltr?this.moveRight(to):this.moveLeft(to);break}case keyArrowLeft:case keyArrowUp:{this.direction===Direction$1.ltr?this.moveLeft(to):this.moveRight(to);break}default:return!0}}}readOnlyChanged(){this.slottedRadioButtons!==void 0&&this.slottedRadioButtons.forEach(to=>{this.readOnly?to.readOnly=!0:to.readOnly=!1})}disabledChanged(){this.slottedRadioButtons!==void 0&&this.slottedRadioButtons.forEach(to=>{this.disabled?to.disabled=!0:to.disabled=!1})}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(to=>{to.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(to=>{to.value===this.value&&(to.checked=!0,this.selectedRadio=to)}),this.$emit("change")}slottedRadioButtonsChanged(to,ro){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){var to;return(to=this.parentToolbar)!==null&&to!==void 0?to:!1}get isInsideFoundationToolbar(){var to;return!!(!((to=this.parentToolbar)===null||to===void 0)&&to.$fastController)}connectedCallback(){super.connectedCallback(),this.direction=getDirection(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(to=>{to.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){const to=this.slottedRadioButtons.filter(oo=>oo.hasAttribute("checked")),ro=to?to.length:0;if(ro>1){const oo=to[ro-1];oo.checked=!0}let no=!1;if(this.slottedRadioButtons.forEach(oo=>{this.name!==void 0&&oo.setAttribute("name",this.name),this.disabled&&(oo.disabled=!0),this.readOnly&&(oo.readOnly=!0),this.value&&this.value===oo.value?(this.selectedRadio=oo,this.focusedRadio=oo,oo.checked=!0,oo.setAttribute("tabindex","0"),no=!0):(this.isInsideFoundationToolbar||oo.setAttribute("tabindex","-1"),oo.checked=!1),oo.addEventListener("change",this.radioChangeHandler)}),this.value===void 0&&this.slottedRadioButtons.length>0){const oo=this.slottedRadioButtons.filter(so=>so.hasAttribute("checked")),io=oo!==null?oo.length:0;if(io>0&&!no){const so=oo[io-1];so.checked=!0,this.focusedRadio=so,so.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}};__decorate([attr({attribute:"readonly",mode:"boolean"})],RadioGroup$1.prototype,"readOnly",void 0);__decorate([attr({attribute:"disabled",mode:"boolean"})],RadioGroup$1.prototype,"disabled",void 0);__decorate([attr],RadioGroup$1.prototype,"name",void 0);__decorate([attr],RadioGroup$1.prototype,"value",void 0);__decorate([attr],RadioGroup$1.prototype,"orientation",void 0);__decorate([observable],RadioGroup$1.prototype,"childItems",void 0);__decorate([observable],RadioGroup$1.prototype,"slottedRadioButtons",void 0);const radioTemplate=(eo,to)=>html` + +`;class _Radio extends FoundationElement{}class FormAssociatedRadio extends CheckableFormAssociated(_Radio){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let Radio$1=class extends FormAssociatedRadio{constructor(){super(),this.initialValue="on",this.keypressHandler=to=>{switch(to.key){case keySpace:!this.checked&&!this.readOnly&&(this.checked=!0);return}return!0},this.proxy.setAttribute("type","radio")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}defaultCheckedChanged(){var to;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=(to=this.defaultChecked)!==null&&to!==void 0?to:!1,this.dirtyChecked=!1))}connectedCallback(){var to,ro;super.connectedCallback(),this.validate(),((to=this.parentElement)===null||to===void 0?void 0:to.getAttribute("role"))!=="radiogroup"&&this.getAttribute("tabindex")===null&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=(ro=this.defaultChecked)!==null&&ro!==void 0?ro:!1,this.dirtyChecked=!1))}isInsideRadioGroup(){return this.closest("[role=radiogroup]")!==null}clickHandler(to){!this.disabled&&!this.readOnly&&!this.checked&&(this.checked=!0)}};__decorate([attr({attribute:"readonly",mode:"boolean"})],Radio$1.prototype,"readOnly",void 0);__decorate([observable],Radio$1.prototype,"name",void 0);__decorate([observable],Radio$1.prototype,"defaultSlottedNodes",void 0);function whitespaceFilter(eo,to,ro){return eo.nodeType!==Node.TEXT_NODE?!0:typeof eo.nodeValue=="string"&&!!eo.nodeValue.trim().length}class _Select extends ListboxElement{}class FormAssociatedSelect extends FormAssociated(_Select){constructor(){super(...arguments),this.proxy=document.createElement("select")}}class Select extends FormAssociatedSelect{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.listboxId=uniqueId("listbox-"),this.maxHeight=0}openChanged(to,ro){if(this.collapsible){if(this.open){this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,DOM.queueUpdate(()=>this.focus());return}this.ariaControls="",this.ariaExpanded="false"}}get collapsible(){return!(this.multiple||typeof this.size=="number")}get value(){return Observable$1.track(this,"value"),this._value}set value(to){var ro,no,oo,io,so,ao,lo;const uo=`${this._value}`;if(!((ro=this._options)===null||ro===void 0)&&ro.length){const co=this._options.findIndex(po=>po.value===to),fo=(oo=(no=this._options[this.selectedIndex])===null||no===void 0?void 0:no.value)!==null&&oo!==void 0?oo:null,ho=(so=(io=this._options[co])===null||io===void 0?void 0:io.value)!==null&&so!==void 0?so:null;(co===-1||fo!==ho)&&(to="",this.selectedIndex=co),to=(lo=(ao=this.firstSelectedOption)===null||ao===void 0?void 0:ao.value)!==null&&lo!==void 0?lo:to}uo!==to&&(this._value=to,super.valueChanged(uo,to),Observable$1.notify(this,"value"),this.updateDisplayValue())}updateValue(to){var ro,no;this.$fastController.isConnected&&(this.value=(no=(ro=this.firstSelectedOption)===null||ro===void 0?void 0:ro.value)!==null&&no!==void 0?no:""),to&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(to,ro){super.selectedIndexChanged(to,ro),this.updateValue()}positionChanged(to,ro){this.positionAttribute=ro,this.setPositioning()}setPositioning(){const to=this.getBoundingClientRect(),no=window.innerHeight-to.bottom;this.position=this.forcedPosition?this.positionAttribute:to.top>no?SelectPosition.above:SelectPosition.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===SelectPosition.above?~~to.top:~~no}get displayValue(){var to,ro;return Observable$1.track(this,"displayValue"),(ro=(to=this.firstSelectedOption)===null||to===void 0?void 0:to.text)!==null&&ro!==void 0?ro:""}disabledChanged(to,ro){super.disabledChanged&&super.disabledChanged(to,ro),this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions(),super.setDefaultSelectedOption(),this.selectedIndex===-1&&(this.selectedIndex=0)}clickHandler(to){if(!this.disabled){if(this.open){const ro=to.target.closest("option,[role=option]");if(ro&&ro.disabled)return}return super.clickHandler(to),this.open=this.collapsible&&!this.open,!this.open&&this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0),!0}}focusoutHandler(to){var ro;if(super.focusoutHandler(to),!this.open)return!0;const no=to.relatedTarget;if(this.isSameNode(no)){this.focus();return}!((ro=this.options)===null||ro===void 0)&&ro.includes(no)||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}handleChange(to,ro){super.handleChange(to,ro),ro==="value"&&this.updateValue()}slottedOptionsChanged(to,ro){this.options.forEach(no=>{Observable$1.getNotifier(no).unsubscribe(this,"value")}),super.slottedOptionsChanged(to,ro),this.options.forEach(no=>{Observable$1.getNotifier(no).subscribe(this,"value")}),this.setProxyOptions(),this.updateValue()}mousedownHandler(to){var ro;return to.offsetX>=0&&to.offsetX<=((ro=this.listbox)===null||ro===void 0?void 0:ro.scrollWidth)?super.mousedownHandler(to):this.collapsible}multipleChanged(to,ro){super.multipleChanged(to,ro),this.proxy&&(this.proxy.multiple=ro)}selectedOptionsChanged(to,ro){var no;super.selectedOptionsChanged(to,ro),(no=this.options)===null||no===void 0||no.forEach((oo,io)=>{var so;const ao=(so=this.proxy)===null||so===void 0?void 0:so.options.item(io);ao&&(ao.selected=oo.selected)})}setDefaultSelectedOption(){var to;const ro=(to=this.options)!==null&&to!==void 0?to:Array.from(this.children).filter(Listbox.slottedOptionFilter),no=ro==null?void 0:ro.findIndex(oo=>oo.hasAttribute("selected")||oo.selected||oo.value===this.value);if(no!==-1){this.selectedIndex=no;return}this.selectedIndex=0}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach(to=>{const ro=to.proxy||(to instanceof HTMLOptionElement?to.cloneNode():null);ro&&this.proxy.options.add(ro)}))}keydownHandler(to){super.keydownHandler(to);const ro=to.key||to.key.charCodeAt(0);switch(ro){case keySpace:{to.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break}case keyHome:case keyEnd:{to.preventDefault();break}case keyEnter:{to.preventDefault(),this.open=!this.open;break}case keyEscape:{this.collapsible&&this.open&&(to.preventDefault(),this.open=!1);break}case keyTab:return this.collapsible&&this.open&&(to.preventDefault(),this.open=!1),!0}return!this.open&&this.indexWhenOpened!==this.selectedIndex&&(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!(ro===keyArrowDown||ro===keyArrowUp)}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.addEventListener("contentchange",this.updateDisplayValue)}disconnectedCallback(){this.removeEventListener("contentchange",this.updateDisplayValue),super.disconnectedCallback()}sizeChanged(to,ro){super.sizeChanged(to,ro),this.proxy&&(this.proxy.size=ro)}updateDisplayValue(){this.collapsible&&Observable$1.notify(this,"displayValue")}}__decorate([attr({attribute:"open",mode:"boolean"})],Select.prototype,"open",void 0);__decorate([volatile],Select.prototype,"collapsible",null);__decorate([observable],Select.prototype,"control",void 0);__decorate([attr({attribute:"position"})],Select.prototype,"positionAttribute",void 0);__decorate([observable],Select.prototype,"position",void 0);__decorate([observable],Select.prototype,"maxHeight",void 0);class DelegatesARIASelect{}__decorate([observable],DelegatesARIASelect.prototype,"ariaControls",void 0);applyMixins(DelegatesARIASelect,DelegatesARIAListbox);applyMixins(Select,StartEnd,DelegatesARIASelect);const selectTemplate=(eo,to)=>html` + +`,tabPanelTemplate=(eo,to)=>html` + +`;class TabPanel extends FoundationElement{}const tabTemplate=(eo,to)=>html` + +`;class Tab extends FoundationElement{}__decorate([attr({mode:"boolean"})],Tab.prototype,"disabled",void 0);const tabsTemplate=(eo,to)=>html` + +`,TabsOrientation={vertical:"vertical",horizontal:"horizontal"};class Tabs extends FoundationElement{constructor(){super(...arguments),this.orientation=TabsOrientation.horizontal,this.activeindicator=!0,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=to=>to.getAttribute("aria-disabled")==="true",this.isHiddenElement=to=>to.hasAttribute("hidden"),this.isFocusableElement=to=>!this.isDisabledElement(to)&&!this.isHiddenElement(to),this.setTabs=()=>{const to="gridColumn",ro="gridRow",no=this.isHorizontal()?to:ro;this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach((oo,io)=>{if(oo.slot==="tab"){const so=this.activeTabIndex===io&&this.isFocusableElement(oo);this.activeindicator&&this.isFocusableElement(oo)&&(this.showActiveIndicator=!0);const ao=this.tabIds[io],lo=this.tabpanelIds[io];oo.setAttribute("id",ao),oo.setAttribute("aria-selected",so?"true":"false"),oo.setAttribute("aria-controls",lo),oo.addEventListener("click",this.handleTabClick),oo.addEventListener("keydown",this.handleTabKeyDown),oo.setAttribute("tabindex",so?"0":"-1"),so&&(this.activetab=oo,this.activeid=ao)}oo.style[to]="",oo.style[ro]="",oo.style[no]=`${io+1}`,this.isHorizontal()?oo.classList.remove("vertical"):oo.classList.add("vertical")})},this.setTabPanels=()=>{this.tabpanels.forEach((to,ro)=>{const no=this.tabIds[ro],oo=this.tabpanelIds[ro];to.setAttribute("id",oo),to.setAttribute("aria-labelledby",no),this.activeTabIndex!==ro?to.setAttribute("hidden",""):to.removeAttribute("hidden")})},this.handleTabClick=to=>{const ro=to.currentTarget;ro.nodeType===1&&this.isFocusableElement(ro)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(ro),this.setComponent())},this.handleTabKeyDown=to=>{if(this.isHorizontal())switch(to.key){case keyArrowLeft:to.preventDefault(),this.adjustBackward(to);break;case keyArrowRight:to.preventDefault(),this.adjustForward(to);break}else switch(to.key){case keyArrowUp:to.preventDefault(),this.adjustBackward(to);break;case keyArrowDown:to.preventDefault(),this.adjustForward(to);break}switch(to.key){case keyHome:to.preventDefault(),this.adjust(-this.activeTabIndex);break;case keyEnd:to.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}},this.adjustForward=to=>{const ro=this.tabs;let no=0;for(no=this.activetab?ro.indexOf(this.activetab)+1:1,no===ro.length&&(no=0);no1;)if(this.isFocusableElement(ro[no])){this.moveToTabByIndex(ro,no);break}else{if(this.activetab&&no===ro.indexOf(this.activetab))break;no+1>=ro.length?no=0:no+=1}},this.adjustBackward=to=>{const ro=this.tabs;let no=0;for(no=this.activetab?ro.indexOf(this.activetab)-1:0,no=no<0?ro.length-1:no;no>=0&&ro.length>1;)if(this.isFocusableElement(ro[no])){this.moveToTabByIndex(ro,no);break}else no-1<0?no=ro.length-1:no-=1},this.moveToTabByIndex=(to,ro)=>{const no=to[ro];this.activetab=no,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=ro,no.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(to,ro){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(no=>no.id===to),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return this.tabs.map(to=>{var ro;return(ro=to.getAttribute("id"))!==null&&ro!==void 0?ro:`tab-${uniqueId()}`})}getTabPanelIds(){return this.tabpanels.map(to=>{var ro;return(ro=to.getAttribute("id"))!==null&&ro!==void 0?ro:`panel-${uniqueId()}`})}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===TabsOrientation.horizontal}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;const to=this.isHorizontal()?"gridColumn":"gridRow",ro=this.isHorizontal()?"translateX":"translateY",no=this.isHorizontal()?"offsetLeft":"offsetTop",oo=this.activeIndicatorRef[no];this.activeIndicatorRef.style[to]=`${this.activeTabIndex+1}`;const io=this.activeIndicatorRef[no];this.activeIndicatorRef.style[to]=`${this.prevActiveTabIndex+1}`;const so=io-oo;this.activeIndicatorRef.style.transform=`${ro}(${so}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",()=>{this.ticking=!1,this.activeIndicatorRef.style[to]=`${this.activeTabIndex+1}`,this.activeIndicatorRef.style.transform=`${ro}(0px)`,this.activeIndicatorRef.classList.remove("activeIndicatorTransition")})}adjust(to){const ro=this.tabs.filter(so=>this.isFocusableElement(so)),no=ro.indexOf(this.activetab),oo=limit(0,ro.length-1,no+to),io=this.tabs.indexOf(ro[oo]);io>-1&&this.moveToTabByIndex(this.tabs,io)}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}__decorate([attr],Tabs.prototype,"orientation",void 0);__decorate([attr],Tabs.prototype,"activeid",void 0);__decorate([observable],Tabs.prototype,"tabs",void 0);__decorate([observable],Tabs.prototype,"tabpanels",void 0);__decorate([attr({mode:"boolean"})],Tabs.prototype,"activeindicator",void 0);__decorate([observable],Tabs.prototype,"activeIndicatorRef",void 0);__decorate([observable],Tabs.prototype,"showActiveIndicator",void 0);applyMixins(Tabs,StartEnd);class _TextArea extends FoundationElement{}class FormAssociatedTextArea extends FormAssociated(_TextArea){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}const TextAreaResize={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};let TextArea$1=class extends FormAssociatedTextArea{constructor(){super(...arguments),this.resize=TextAreaResize.none,this.cols=20,this.handleTextInput=()=>{this.value=this.control.value}}readOnlyChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.readOnly=this.readOnly)}autofocusChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.autofocus=this.autofocus)}listChanged(){this.proxy instanceof HTMLTextAreaElement&&this.proxy.setAttribute("list",this.list)}maxlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.maxLength=this.maxlength)}minlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.minLength=this.minlength)}spellcheckChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.spellcheck=this.spellcheck)}select(){this.control.select(),this.$emit("select")}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}};__decorate([attr({mode:"boolean"})],TextArea$1.prototype,"readOnly",void 0);__decorate([attr],TextArea$1.prototype,"resize",void 0);__decorate([attr({mode:"boolean"})],TextArea$1.prototype,"autofocus",void 0);__decorate([attr({attribute:"form"})],TextArea$1.prototype,"formId",void 0);__decorate([attr],TextArea$1.prototype,"list",void 0);__decorate([attr({converter:nullableNumberConverter})],TextArea$1.prototype,"maxlength",void 0);__decorate([attr({converter:nullableNumberConverter})],TextArea$1.prototype,"minlength",void 0);__decorate([attr],TextArea$1.prototype,"name",void 0);__decorate([attr],TextArea$1.prototype,"placeholder",void 0);__decorate([attr({converter:nullableNumberConverter,mode:"fromView"})],TextArea$1.prototype,"cols",void 0);__decorate([attr({converter:nullableNumberConverter,mode:"fromView"})],TextArea$1.prototype,"rows",void 0);__decorate([attr({mode:"boolean"})],TextArea$1.prototype,"spellcheck",void 0);__decorate([observable],TextArea$1.prototype,"defaultSlottedNodes",void 0);applyMixins(TextArea$1,DelegatesARIATextbox);const textAreaTemplate=(eo,to)=>html` + +`,textFieldTemplate=(eo,to)=>html` + +`,disabledCursor="not-allowed",hidden=":host([hidden]){display:none}";function display(eo){return`${hidden}:host{display:${eo}}`}const focusVisible=canUseFocusVisible()?"focus-visible":"focus",reservedReactProperties=new Set(["children","localName","ref","style","className"]),emptyProps=Object.freeze(Object.create(null)),DEFAULT_CACHE_NAME="_default",wrappersCache=new Map;function setRef(eo,to){typeof eo=="function"?eo(to):eo.current=to}function getTagName(eo,to){if(!to.name){const ro=FASTElementDefinition.forType(eo);if(ro)to.name=ro.name;else throw new Error("React wrappers must wrap a FASTElement or be configured with a name.")}return to.name}function getElementEvents(eo){return eo.events||(eo.events={})}function keyIsValid(eo,to,ro){return reservedReactProperties.has(ro)?(console.warn(`${getTagName(eo,to)} contains property ${ro} which is a React reserved property. It will be used by React and not set on the element.`),!1):!0}function getElementKeys(eo,to){if(!to.keys)if(to.properties)to.keys=new Set(to.properties.concat(Object.keys(getElementEvents(to))));else{const ro=new Set(Object.keys(getElementEvents(to))),no=Observable$1.getAccessors(eo.prototype);if(no.length>0)for(const oo of no)keyIsValid(eo,to,oo.name)&&ro.add(oo.name);else for(const oo in eo.prototype)!(oo in HTMLElement.prototype)&&keyIsValid(eo,to,oo)&&ro.add(oo);to.keys=ro}return to.keys}function provideReactWrapper(eo,to){let ro=[];const no={register(io,...so){ro.forEach(ao=>ao.register(io,...so)),ro=[]}};function oo(io,so={}){var ao,lo;io instanceof FoundationElementRegistry&&(to?to.register(io):ro.push(io),io=io.type);const uo=wrappersCache.get(io);if(uo){const ho=uo.get((ao=so.name)!==null&&ao!==void 0?ao:DEFAULT_CACHE_NAME);if(ho)return ho}class co extends eo.Component{constructor(){super(...arguments),this._element=null}_updateElement(po){const go=this._element;if(go===null)return;const vo=this.props,bo=po||emptyProps,xo=getElementEvents(so);for(const _o in this._elementProps){const Eo=vo[_o],So=xo[_o];if(So===void 0)go[_o]=Eo;else{const To=bo[_o];if(Eo===To)continue;To!==void 0&&go.removeEventListener(So,To),Eo!==void 0&&go.addEventListener(So,Eo)}}}componentDidMount(){this._updateElement()}componentDidUpdate(po){this._updateElement(po)}render(){const po=this.props.__forwardedRef;(this._ref===void 0||this._userRef!==po)&&(this._ref=_o=>{this._element===null&&(this._element=_o),po!==null&&setRef(po,_o),this._userRef=po});const go={ref:this._ref},vo=this._elementProps={},bo=getElementKeys(io,so),xo=this.props;for(const _o in xo){const Eo=xo[_o];bo.has(_o)?vo[_o]=Eo:go[_o==="className"?"class":_o]=Eo}return eo.createElement(getTagName(io,so),go)}}const fo=eo.forwardRef((ho,po)=>eo.createElement(co,Object.assign(Object.assign({},ho),{__forwardedRef:po}),ho==null?void 0:ho.children));return wrappersCache.has(io)||wrappersCache.set(io,new Map),wrappersCache.get(io).set((lo=so.name)!==null&&lo!==void 0?lo:DEFAULT_CACHE_NAME,fo),fo}return{wrap:oo,registry:no}}function provideVSCodeDesignSystem(eo){return DesignSystem.getOrCreate(eo).withPrefix("vscode")}function initThemeChangeListener(eo){window.addEventListener("load",()=>{new MutationObserver(()=>{applyCurrentTheme(eo)}).observe(document.body,{attributes:!0,attributeFilter:["class"]}),applyCurrentTheme(eo)})}function applyCurrentTheme(eo){const to=getComputedStyle(document.body),ro=document.querySelector("body");if(ro){const no=ro.getAttribute("data-vscode-theme-kind");for(const[oo,io]of eo){let so=to.getPropertyValue(oo).toString();if(no==="vscode-high-contrast")so.length===0&&io.name.includes("background")&&(so="transparent"),io.name==="button-icon-hover-background"&&(so="transparent");else if(no==="vscode-high-contrast-light"){if(so.length===0&&io.name.includes("background"))switch(io.name){case"button-primary-hover-background":so="#0F4A85";break;case"button-secondary-hover-background":so="transparent";break;case"button-icon-hover-background":so="transparent";break}}else io.name==="contrast-active-border"&&(so="transparent");io.setValueFor(ro,so)}}}const tokenMappings=new Map;let isThemeListenerInitialized=!1;function create$1(eo,to){const ro=DesignToken.create(eo);if(to){if(to.includes("--fake-vscode-token")){const no="id"+Math.random().toString(16).slice(2);to=`${to}-${no}`}tokenMappings.set(to,ro)}return isThemeListenerInitialized||(initThemeChangeListener(tokenMappings),isThemeListenerInitialized=!0),ro}const background$1=create$1("background","--vscode-editor-background").withDefault("#1e1e1e"),borderWidth=create$1("border-width").withDefault(1),contrastActiveBorder=create$1("contrast-active-border","--vscode-contrastActiveBorder").withDefault("#f38518");create$1("contrast-border","--vscode-contrastBorder").withDefault("#6fc3df");const cornerRadius=create$1("corner-radius").withDefault(0),cornerRadiusRound=create$1("corner-radius-round").withDefault(2),designUnit=create$1("design-unit").withDefault(4),disabledOpacity=create$1("disabled-opacity").withDefault(.4),focusBorder=create$1("focus-border","--vscode-focusBorder").withDefault("#007fd4"),fontFamily=create$1("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");create$1("font-weight","--vscode-font-weight").withDefault("400");const foreground=create$1("foreground","--vscode-foreground").withDefault("#cccccc"),inputHeight=create$1("input-height").withDefault("26"),inputMinWidth=create$1("input-min-width").withDefault("100px"),typeRampBaseFontSize=create$1("type-ramp-base-font-size","--vscode-font-size").withDefault("13px"),typeRampBaseLineHeight=create$1("type-ramp-base-line-height").withDefault("normal"),typeRampMinus1FontSize=create$1("type-ramp-minus1-font-size").withDefault("11px"),typeRampMinus1LineHeight=create$1("type-ramp-minus1-line-height").withDefault("16px");create$1("type-ramp-minus2-font-size").withDefault("9px");create$1("type-ramp-minus2-line-height").withDefault("16px");create$1("type-ramp-plus1-font-size").withDefault("16px");create$1("type-ramp-plus1-line-height").withDefault("24px");const scrollbarWidth=create$1("scrollbarWidth").withDefault("10px"),scrollbarHeight=create$1("scrollbarHeight").withDefault("10px"),scrollbarSliderBackground=create$1("scrollbar-slider-background","--vscode-scrollbarSlider-background").withDefault("#79797966"),scrollbarSliderHoverBackground=create$1("scrollbar-slider-hover-background","--vscode-scrollbarSlider-hoverBackground").withDefault("#646464b3"),scrollbarSliderActiveBackground=create$1("scrollbar-slider-active-background","--vscode-scrollbarSlider-activeBackground").withDefault("#bfbfbf66"),badgeBackground=create$1("badge-background","--vscode-badge-background").withDefault("#4d4d4d"),badgeForeground=create$1("badge-foreground","--vscode-badge-foreground").withDefault("#ffffff"),buttonBorder=create$1("button-border","--vscode-button-border").withDefault("transparent"),buttonIconBackground=create$1("button-icon-background").withDefault("transparent"),buttonIconCornerRadius=create$1("button-icon-corner-radius").withDefault("5px"),buttonIconFocusBorderOffset=create$1("button-icon-outline-offset").withDefault(0),buttonIconHoverBackground=create$1("button-icon-hover-background","--fake-vscode-token").withDefault("rgba(90, 93, 94, 0.31)"),buttonIconPadding=create$1("button-icon-padding").withDefault("3px"),buttonPrimaryBackground=create$1("button-primary-background","--vscode-button-background").withDefault("#0e639c"),buttonPrimaryForeground=create$1("button-primary-foreground","--vscode-button-foreground").withDefault("#ffffff"),buttonPrimaryHoverBackground=create$1("button-primary-hover-background","--vscode-button-hoverBackground").withDefault("#1177bb"),buttonSecondaryBackground=create$1("button-secondary-background","--vscode-button-secondaryBackground").withDefault("#3a3d41"),buttonSecondaryForeground=create$1("button-secondary-foreground","--vscode-button-secondaryForeground").withDefault("#ffffff"),buttonSecondaryHoverBackground=create$1("button-secondary-hover-background","--vscode-button-secondaryHoverBackground").withDefault("#45494e"),buttonPaddingHorizontal=create$1("button-padding-horizontal").withDefault("11px"),buttonPaddingVertical=create$1("button-padding-vertical").withDefault("4px"),checkboxBackground=create$1("checkbox-background","--vscode-checkbox-background").withDefault("#3c3c3c"),checkboxBorder=create$1("checkbox-border","--vscode-checkbox-border").withDefault("#3c3c3c"),checkboxCornerRadius=create$1("checkbox-corner-radius").withDefault(3);create$1("checkbox-foreground","--vscode-checkbox-foreground").withDefault("#f0f0f0");const listActiveSelectionBackground=create$1("list-active-selection-background","--vscode-list-activeSelectionBackground").withDefault("#094771"),listActiveSelectionForeground=create$1("list-active-selection-foreground","--vscode-list-activeSelectionForeground").withDefault("#ffffff"),listHoverBackground=create$1("list-hover-background","--vscode-list-hoverBackground").withDefault("#2a2d2e"),dividerBackground=create$1("divider-background","--vscode-settings-dropdownListBorder").withDefault("#454545"),dropdownBackground=create$1("dropdown-background","--vscode-dropdown-background").withDefault("#3c3c3c"),dropdownBorder=create$1("dropdown-border","--vscode-dropdown-border").withDefault("#3c3c3c");create$1("dropdown-foreground","--vscode-dropdown-foreground").withDefault("#f0f0f0");const dropdownListMaxHeight=create$1("dropdown-list-max-height").withDefault("200px"),inputBackground=create$1("input-background","--vscode-input-background").withDefault("#3c3c3c"),inputForeground=create$1("input-foreground","--vscode-input-foreground").withDefault("#cccccc");create$1("input-placeholder-foreground","--vscode-input-placeholderForeground").withDefault("#cccccc");const linkActiveForeground=create$1("link-active-foreground","--vscode-textLink-activeForeground").withDefault("#3794ff"),linkForeground=create$1("link-foreground","--vscode-textLink-foreground").withDefault("#3794ff"),progressBackground=create$1("progress-background","--vscode-progressBar-background").withDefault("#0e70c0"),panelTabActiveBorder=create$1("panel-tab-active-border","--vscode-panelTitle-activeBorder").withDefault("#e7e7e7"),panelTabActiveForeground=create$1("panel-tab-active-foreground","--vscode-panelTitle-activeForeground").withDefault("#e7e7e7"),panelTabForeground=create$1("panel-tab-foreground","--vscode-panelTitle-inactiveForeground").withDefault("#e7e7e799");create$1("panel-view-background","--vscode-panel-background").withDefault("#1e1e1e");create$1("panel-view-border","--vscode-panel-border").withDefault("#80808059");const tagCornerRadius=create$1("tag-corner-radius").withDefault("2px"),badgeStyles=(eo,to)=>css$1` + ${display("inline-block")} :host { + box-sizing: border-box; + font-family: ${fontFamily}; + font-size: ${typeRampMinus1FontSize}; + line-height: ${typeRampMinus1LineHeight}; + text-align: center; + } + .control { + align-items: center; + background-color: ${badgeBackground}; + border: calc(${borderWidth} * 1px) solid ${buttonBorder}; + border-radius: 11px; + box-sizing: border-box; + color: ${badgeForeground}; + display: flex; + height: calc(${designUnit} * 4px); + justify-content: center; + min-width: calc(${designUnit} * 4px + 2px); + min-height: calc(${designUnit} * 4px + 2px); + padding: 3px 6px; + } +`;class Badge extends Badge$1{connectedCallback(){super.connectedCallback(),this.circular||(this.circular=!0)}}const vsCodeBadge=Badge.compose({baseName:"badge",template:badgeTemplate,styles:badgeStyles}),BaseButtonStyles=css$1` + ${display("inline-flex")} :host { + outline: none; + font-family: ${fontFamily}; + font-size: ${typeRampBaseFontSize}; + line-height: ${typeRampBaseLineHeight}; + color: ${buttonPrimaryForeground}; + background: ${buttonPrimaryBackground}; + border-radius: calc(${cornerRadiusRound} * 1px); + fill: currentColor; + cursor: pointer; + } + .control { + background: transparent; + height: inherit; + flex-grow: 1; + box-sizing: border-box; + display: inline-flex; + justify-content: center; + align-items: center; + padding: ${buttonPaddingVertical} ${buttonPaddingHorizontal}; + white-space: wrap; + outline: none; + text-decoration: none; + border: calc(${borderWidth} * 1px) solid ${buttonBorder}; + color: inherit; + border-radius: inherit; + fill: inherit; + cursor: inherit; + font-family: inherit; + } + :host(:hover) { + background: ${buttonPrimaryHoverBackground}; + } + :host(:active) { + background: ${buttonPrimaryBackground}; + } + .control:${focusVisible} { + outline: calc(${borderWidth} * 1px) solid ${focusBorder}; + outline-offset: calc(${borderWidth} * 2px); + } + .control::-moz-focus-inner { + border: 0; + } + :host([disabled]) { + opacity: ${disabledOpacity}; + background: ${buttonPrimaryBackground}; + cursor: ${disabledCursor}; + } + .content { + display: flex; + } + .start { + display: flex; + } + ::slotted(svg), + ::slotted(span) { + width: calc(${designUnit} * 4px); + height: calc(${designUnit} * 4px); + } + .start { + margin-inline-end: 8px; + } +`,PrimaryButtonStyles=css$1` + :host([appearance='primary']) { + background: ${buttonPrimaryBackground}; + color: ${buttonPrimaryForeground}; + } + :host([appearance='primary']:hover) { + background: ${buttonPrimaryHoverBackground}; + } + :host([appearance='primary']:active) .control:active { + background: ${buttonPrimaryBackground}; + } + :host([appearance='primary']) .control:${focusVisible} { + outline: calc(${borderWidth} * 1px) solid ${focusBorder}; + outline-offset: calc(${borderWidth} * 2px); + } + :host([appearance='primary'][disabled]) { + background: ${buttonPrimaryBackground}; + } +`,SecondaryButtonStyles=css$1` + :host([appearance='secondary']) { + background: ${buttonSecondaryBackground}; + color: ${buttonSecondaryForeground}; + } + :host([appearance='secondary']:hover) { + background: ${buttonSecondaryHoverBackground}; + } + :host([appearance='secondary']:active) .control:active { + background: ${buttonSecondaryBackground}; + } + :host([appearance='secondary']) .control:${focusVisible} { + outline: calc(${borderWidth} * 1px) solid ${focusBorder}; + outline-offset: calc(${borderWidth} * 2px); + } + :host([appearance='secondary'][disabled]) { + background: ${buttonSecondaryBackground}; + } +`,IconButtonStyles=css$1` + :host([appearance='icon']) { + background: ${buttonIconBackground}; + border-radius: ${buttonIconCornerRadius}; + color: ${foreground}; + } + :host([appearance='icon']:hover) { + background: ${buttonIconHoverBackground}; + outline: 1px dotted ${contrastActiveBorder}; + outline-offset: -1px; + } + :host([appearance='icon']) .control { + padding: ${buttonIconPadding}; + border: none; + } + :host([appearance='icon']:active) .control:active { + background: ${buttonIconHoverBackground}; + } + :host([appearance='icon']) .control:${focusVisible} { + outline: calc(${borderWidth} * 1px) solid ${focusBorder}; + outline-offset: ${buttonIconFocusBorderOffset}; + } + :host([appearance='icon'][disabled]) { + background: ${buttonIconBackground}; + } +`,buttonStyles=(eo,to)=>css$1` + ${BaseButtonStyles} + ${PrimaryButtonStyles} + ${SecondaryButtonStyles} + ${IconButtonStyles} +`;class Button extends Button$1{connectedCallback(){if(super.connectedCallback(),!this.appearance){const to=this.getAttribute("appearance");this.appearance=to}}attributeChangedCallback(to,ro,no){to==="appearance"&&no==="icon"&&(this.getAttribute("aria-label")||(this.ariaLabel="Icon Button")),to==="aria-label"&&(this.ariaLabel=no),to==="disabled"&&(this.disabled=no!==null)}}__decorate$1([attr],Button.prototype,"appearance",void 0);const vsCodeButton=Button.compose({baseName:"button",template:buttonTemplate,styles:buttonStyles,shadowOptions:{delegatesFocus:!0}}),checkboxStyles=(eo,to)=>css$1` + ${display("inline-flex")} :host { + align-items: center; + outline: none; + margin: calc(${designUnit} * 1px) 0; + user-select: none; + font-size: ${typeRampBaseFontSize}; + line-height: ${typeRampBaseLineHeight}; + } + .control { + position: relative; + width: calc(${designUnit} * 4px + 2px); + height: calc(${designUnit} * 4px + 2px); + box-sizing: border-box; + border-radius: calc(${checkboxCornerRadius} * 1px); + border: calc(${borderWidth} * 1px) solid ${checkboxBorder}; + background: ${checkboxBackground}; + outline: none; + cursor: pointer; + } + .label { + font-family: ${fontFamily}; + color: ${foreground}; + padding-inline-start: calc(${designUnit} * 2px + 2px); + margin-inline-end: calc(${designUnit} * 2px + 2px); + cursor: pointer; + } + .label__hidden { + display: none; + visibility: hidden; + } + .checked-indicator { + width: 100%; + height: 100%; + display: block; + fill: ${foreground}; + opacity: 0; + pointer-events: none; + } + .indeterminate-indicator { + border-radius: 2px; + background: ${foreground}; + position: absolute; + top: 50%; + left: 50%; + width: 50%; + height: 50%; + transform: translate(-50%, -50%); + opacity: 0; + } + :host(:enabled) .control:hover { + background: ${checkboxBackground}; + border-color: ${checkboxBorder}; + } + :host(:enabled) .control:active { + background: ${checkboxBackground}; + border-color: ${focusBorder}; + } + :host(:${focusVisible}) .control { + border: calc(${borderWidth} * 1px) solid ${focusBorder}; + } + :host(.disabled) .label, + :host(.readonly) .label, + :host(.readonly) .control, + :host(.disabled) .control { + cursor: ${disabledCursor}; + } + :host(.checked:not(.indeterminate)) .checked-indicator, + :host(.indeterminate) .indeterminate-indicator { + opacity: 1; + } + :host(.disabled) { + opacity: ${disabledOpacity}; + } +`;class Checkbox extends Checkbox$1{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Checkbox")}}const vsCodeCheckbox=Checkbox.compose({baseName:"checkbox",template:checkboxTemplate,styles:checkboxStyles,checkedIndicator:` + + + + `,indeterminateIndicator:` +
+ `}),dataGridStyles=(eo,to)=>css$1` + :host { + display: flex; + position: relative; + flex-direction: column; + width: 100%; + } +`,dataGridRowStyles=(eo,to)=>css$1` + :host { + display: grid; + padding: calc((${designUnit} / 4) * 1px) 0; + box-sizing: border-box; + width: 100%; + background: transparent; + } + :host(.header) { + } + :host(.sticky-header) { + background: ${background$1}; + position: sticky; + top: 0; + } + :host(:hover) { + background: ${listHoverBackground}; + outline: 1px dotted ${contrastActiveBorder}; + outline-offset: -1px; + } +`,dataGridCellStyles=(eo,to)=>css$1` + :host { + padding: calc(${designUnit} * 1px) calc(${designUnit} * 3px); + color: ${foreground}; + opacity: 1; + box-sizing: border-box; + font-family: ${fontFamily}; + font-size: ${typeRampBaseFontSize}; + line-height: ${typeRampBaseLineHeight}; + font-weight: 400; + border: solid calc(${borderWidth} * 1px) transparent; + border-radius: calc(${cornerRadius} * 1px); + white-space: wrap; + overflow-wrap: anywhere; + } + :host(.column-header) { + font-weight: 600; + } + :host(:${focusVisible}), + :host(:focus), + :host(:active) { + background: ${listActiveSelectionBackground}; + border: solid calc(${borderWidth} * 1px) ${focusBorder}; + color: ${listActiveSelectionForeground}; + outline: none; + } + :host(:${focusVisible}) ::slotted(*), + :host(:focus) ::slotted(*), + :host(:active) ::slotted(*) { + color: ${listActiveSelectionForeground} !important; + } +`;class DataGrid extends DataGrid$1{connectedCallback(){super.connectedCallback(),this.getAttribute("aria-label")||this.setAttribute("aria-label","Data Grid")}}const vsCodeDataGrid=DataGrid.compose({baseName:"data-grid",baseClass:DataGrid$1,template:dataGridTemplate,styles:dataGridStyles});class DataGridRow extends DataGridRow$1{}const vsCodeDataGridRow=DataGridRow.compose({baseName:"data-grid-row",baseClass:DataGridRow$1,template:dataGridRowTemplate,styles:dataGridRowStyles});class DataGridCell extends DataGridCell$1{}const vsCodeDataGridCell=DataGridCell.compose({baseName:"data-grid-cell",baseClass:DataGridCell$1,template:dataGridCellTemplate,styles:dataGridCellStyles}),dividerStyles=(eo,to)=>css$1` + ${display("block")} :host { + border: none; + border-top: calc(${borderWidth} * 1px) solid ${dividerBackground}; + box-sizing: content-box; + height: 0; + margin: calc(${designUnit} * 1px) 0; + width: 100%; + } +`;class Divider extends Divider$1{}const vsCodeDivider=Divider.compose({baseName:"divider",template:dividerTemplate,styles:dividerStyles}),dropdownStyles=(eo,to)=>css$1` + ${display("inline-flex")} :host { + background: ${dropdownBackground}; + border-radius: calc(${cornerRadiusRound} * 1px); + box-sizing: border-box; + color: ${foreground}; + contain: contents; + font-family: ${fontFamily}; + height: calc(${inputHeight} * 1px); + position: relative; + user-select: none; + min-width: ${inputMinWidth}; + outline: none; + vertical-align: top; + } + .control { + align-items: center; + box-sizing: border-box; + border: calc(${borderWidth} * 1px) solid ${dropdownBorder}; + border-radius: calc(${cornerRadiusRound} * 1px); + cursor: pointer; + display: flex; + font-family: inherit; + font-size: ${typeRampBaseFontSize}; + line-height: ${typeRampBaseLineHeight}; + min-height: 100%; + padding: 2px 6px 2px 8px; + width: 100%; + } + .listbox { + background: ${dropdownBackground}; + border: calc(${borderWidth} * 1px) solid ${focusBorder}; + border-radius: calc(${cornerRadiusRound} * 1px); + box-sizing: border-box; + display: inline-flex; + flex-direction: column; + left: 0; + max-height: ${dropdownListMaxHeight}; + padding: 0; + overflow-y: auto; + position: absolute; + width: 100%; + z-index: 1; + } + .listbox[hidden] { + display: none; + } + :host(:${focusVisible}) .control { + border-color: ${focusBorder}; + } + :host(:not([disabled]):hover) { + background: ${dropdownBackground}; + border-color: ${dropdownBorder}; + } + :host(:${focusVisible}) ::slotted([aria-selected="true"][role="option"]:not([disabled])) { + background: ${listActiveSelectionBackground}; + border: calc(${borderWidth} * 1px) solid transparent; + color: ${listActiveSelectionForeground}; + } + :host([disabled]) { + cursor: ${disabledCursor}; + opacity: ${disabledOpacity}; + } + :host([disabled]) .control { + cursor: ${disabledCursor}; + user-select: none; + } + :host([disabled]:hover) { + background: ${dropdownBackground}; + color: ${foreground}; + fill: currentcolor; + } + :host(:not([disabled])) .control:active { + border-color: ${focusBorder}; + } + :host(:empty) .listbox { + display: none; + } + :host([open]) .control { + border-color: ${focusBorder}; + } + :host([open][position='above']) .listbox { + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; + } + :host([open][position='below']) .listbox { + border-top-left-radius: 0; + border-top-right-radius: 0; + } + :host([open][position='above']) .listbox { + bottom: calc(${inputHeight} * 1px); + } + :host([open][position='below']) .listbox { + top: calc(${inputHeight} * 1px); + } + .selected-value { + flex: 1 1 auto; + font-family: inherit; + overflow: hidden; + text-align: start; + text-overflow: ellipsis; + white-space: nowrap; + } + .indicator { + flex: 0 0 auto; + margin-inline-start: 1em; + } + slot[name='listbox'] { + display: none; + width: 100%; + } + :host([open]) slot[name='listbox'] { + display: flex; + position: absolute; + } + .end { + margin-inline-start: auto; + } + .start, + .end, + .indicator, + .select-indicator, + ::slotted(svg), + ::slotted(span) { + fill: currentcolor; + height: 1em; + min-height: calc(${designUnit} * 4px); + min-width: calc(${designUnit} * 4px); + width: 1em; + } + ::slotted([role='option']), + ::slotted(option) { + flex: 0 0 auto; + } +`;class Dropdown extends Select{}const vsCodeDropdown=Dropdown.compose({baseName:"dropdown",template:selectTemplate,styles:dropdownStyles,indicator:` + + + + `}),linkStyles=(eo,to)=>css$1` + ${display("inline-flex")} :host { + background: transparent; + box-sizing: border-box; + color: ${linkForeground}; + cursor: pointer; + fill: currentcolor; + font-family: ${fontFamily}; + font-size: ${typeRampBaseFontSize}; + line-height: ${typeRampBaseLineHeight}; + outline: none; + } + .control { + background: transparent; + border: calc(${borderWidth} * 1px) solid transparent; + border-radius: calc(${cornerRadius} * 1px); + box-sizing: border-box; + color: inherit; + cursor: inherit; + fill: inherit; + font-family: inherit; + height: inherit; + padding: 0; + outline: none; + text-decoration: none; + word-break: break-word; + } + .control::-moz-focus-inner { + border: 0; + } + :host(:hover) { + color: ${linkActiveForeground}; + } + :host(:hover) .content { + text-decoration: underline; + } + :host(:active) { + background: transparent; + color: ${linkActiveForeground}; + } + :host(:${focusVisible}) .control, + :host(:focus) .control { + border: calc(${borderWidth} * 1px) solid ${focusBorder}; + } +`;class Link extends Anchor{}const vsCodeLink=Link.compose({baseName:"link",template:anchorTemplate,styles:linkStyles,shadowOptions:{delegatesFocus:!0}}),optionStyles=(eo,to)=>css$1` + ${display("inline-flex")} :host { + font-family: var(--body-font); + border-radius: ${cornerRadius}; + border: calc(${borderWidth} * 1px) solid transparent; + box-sizing: border-box; + color: ${foreground}; + cursor: pointer; + fill: currentcolor; + font-size: ${typeRampBaseFontSize}; + line-height: ${typeRampBaseLineHeight}; + margin: 0; + outline: none; + overflow: hidden; + padding: 0 calc((${designUnit} / 2) * 1px) + calc((${designUnit} / 4) * 1px); + user-select: none; + white-space: nowrap; + } + :host(:${focusVisible}) { + border-color: ${focusBorder}; + background: ${listActiveSelectionBackground}; + color: ${foreground}; + } + :host([aria-selected='true']) { + background: ${listActiveSelectionBackground}; + border: calc(${borderWidth} * 1px) solid transparent; + color: ${listActiveSelectionForeground}; + } + :host(:active) { + background: ${listActiveSelectionBackground}; + color: ${listActiveSelectionForeground}; + } + :host(:not([aria-selected='true']):hover) { + background: ${listActiveSelectionBackground}; + border: calc(${borderWidth} * 1px) solid transparent; + color: ${listActiveSelectionForeground}; + } + :host(:not([aria-selected='true']):active) { + background: ${listActiveSelectionBackground}; + color: ${foreground}; + } + :host([disabled]) { + cursor: ${disabledCursor}; + opacity: ${disabledOpacity}; + } + :host([disabled]:hover) { + background-color: inherit; + } + .content { + grid-column-start: 2; + justify-self: start; + overflow: hidden; + text-overflow: ellipsis; + } +`;let Option$2=class extends ListboxOption{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Option")}};const vsCodeOption=Option$2.compose({baseName:"option",template:listboxOptionTemplate,styles:optionStyles}),panelsStyles=(eo,to)=>css$1` + ${display("grid")} :host { + box-sizing: border-box; + font-family: ${fontFamily}; + font-size: ${typeRampBaseFontSize}; + line-height: ${typeRampBaseLineHeight}; + color: ${foreground}; + grid-template-columns: auto 1fr auto; + grid-template-rows: auto 1fr; + overflow-x: auto; + } + .tablist { + display: grid; + grid-template-rows: auto auto; + grid-template-columns: auto; + column-gap: calc(${designUnit} * 8px); + position: relative; + width: max-content; + align-self: end; + padding: calc(${designUnit} * 1px) calc(${designUnit} * 1px) 0; + box-sizing: border-box; + } + .start, + .end { + align-self: center; + } + .activeIndicator { + grid-row: 2; + grid-column: 1; + width: 100%; + height: calc((${designUnit} / 4) * 1px); + justify-self: center; + background: ${panelTabActiveForeground}; + margin: 0; + border-radius: calc(${cornerRadius} * 1px); + } + .activeIndicatorTransition { + transition: transform 0.01s linear; + } + .tabpanel { + grid-row: 2; + grid-column-start: 1; + grid-column-end: 4; + position: relative; + } +`,panelTabStyles=(eo,to)=>css$1` + ${display("inline-flex")} :host { + box-sizing: border-box; + font-family: ${fontFamily}; + font-size: ${typeRampBaseFontSize}; + line-height: ${typeRampBaseLineHeight}; + height: calc(${designUnit} * 7px); + padding: calc(${designUnit} * 1px) 0; + color: ${panelTabForeground}; + fill: currentcolor; + border-radius: calc(${cornerRadius} * 1px); + border: solid calc(${borderWidth} * 1px) transparent; + align-items: center; + justify-content: center; + grid-row: 1; + cursor: pointer; + } + :host(:hover) { + color: ${panelTabActiveForeground}; + fill: currentcolor; + } + :host(:active) { + color: ${panelTabActiveForeground}; + fill: currentcolor; + } + :host([aria-selected='true']) { + background: transparent; + color: ${panelTabActiveForeground}; + fill: currentcolor; + } + :host([aria-selected='true']:hover) { + background: transparent; + color: ${panelTabActiveForeground}; + fill: currentcolor; + } + :host([aria-selected='true']:active) { + background: transparent; + color: ${panelTabActiveForeground}; + fill: currentcolor; + } + :host(:${focusVisible}) { + outline: none; + border: solid calc(${borderWidth} * 1px) ${panelTabActiveBorder}; + } + :host(:focus) { + outline: none; + } + ::slotted(vscode-badge) { + margin-inline-start: calc(${designUnit} * 2px); + } +`,panelViewStyles=(eo,to)=>css$1` + ${display("flex")} :host { + color: inherit; + background-color: transparent; + border: solid calc(${borderWidth} * 1px) transparent; + box-sizing: border-box; + font-size: ${typeRampBaseFontSize}; + line-height: ${typeRampBaseLineHeight}; + padding: 10px calc((${designUnit} + 2) * 1px); + } +`;class Panels extends Tabs{connectedCallback(){super.connectedCallback(),this.orientation&&(this.orientation=TabsOrientation.horizontal),this.getAttribute("aria-label")||this.setAttribute("aria-label","Panels")}}const vsCodePanels=Panels.compose({baseName:"panels",template:tabsTemplate,styles:panelsStyles});class PanelTab extends Tab{connectedCallback(){super.connectedCallback(),this.disabled&&(this.disabled=!1),this.textContent&&this.setAttribute("aria-label",this.textContent)}}const vsCodePanelTab=PanelTab.compose({baseName:"panel-tab",template:tabTemplate,styles:panelTabStyles});class PanelView extends TabPanel{}const vsCodePanelView=PanelView.compose({baseName:"panel-view",template:tabPanelTemplate,styles:panelViewStyles}),progressRingStyles=(eo,to)=>css$1` + ${display("flex")} :host { + align-items: center; + outline: none; + height: calc(${designUnit} * 7px); + width: calc(${designUnit} * 7px); + margin: 0; + } + .progress { + height: 100%; + width: 100%; + } + .background { + fill: none; + stroke: transparent; + stroke-width: calc(${designUnit} / 2 * 1px); + } + .indeterminate-indicator-1 { + fill: none; + stroke: ${progressBackground}; + stroke-width: calc(${designUnit} / 2 * 1px); + stroke-linecap: square; + transform-origin: 50% 50%; + transform: rotate(-90deg); + transition: all 0.2s ease-in-out; + animation: spin-infinite 2s linear infinite; + } + @keyframes spin-infinite { + 0% { + stroke-dasharray: 0.01px 43.97px; + transform: rotate(0deg); + } + 50% { + stroke-dasharray: 21.99px 21.99px; + transform: rotate(450deg); + } + 100% { + stroke-dasharray: 0.01px 43.97px; + transform: rotate(1080deg); + } + } +`;class ProgressRing extends BaseProgress{connectedCallback(){super.connectedCallback(),this.paused&&(this.paused=!1),this.setAttribute("aria-label","Loading"),this.setAttribute("aria-live","assertive"),this.setAttribute("role","alert")}attributeChangedCallback(to,ro,no){to==="value"&&this.removeAttribute("value")}}const vsCodeProgressRing=ProgressRing.compose({baseName:"progress-ring",template:progressRingTemplate,styles:progressRingStyles,indeterminateIndicator:` + + + + + `}),radioGroupStyles=(eo,to)=>css$1` + ${display("flex")} :host { + align-items: flex-start; + margin: calc(${designUnit} * 1px) 0; + flex-direction: column; + } + .positioning-region { + display: flex; + flex-wrap: wrap; + } + :host([orientation='vertical']) .positioning-region { + flex-direction: column; + } + :host([orientation='horizontal']) .positioning-region { + flex-direction: row; + } + ::slotted([slot='label']) { + color: ${foreground}; + font-size: ${typeRampBaseFontSize}; + margin: calc(${designUnit} * 1px) 0; + } +`;class RadioGroup extends RadioGroup$1{connectedCallback(){super.connectedCallback();const to=this.querySelector("label");if(to){const ro="radio-group-"+Math.random().toString(16).slice(2);to.setAttribute("id",ro),this.setAttribute("aria-labelledby",ro)}}}const vsCodeRadioGroup=RadioGroup.compose({baseName:"radio-group",template:radioGroupTemplate,styles:radioGroupStyles}),radioStyles=(eo,to)=>css$1` + ${display("inline-flex")} :host { + align-items: center; + flex-direction: row; + font-size: ${typeRampBaseFontSize}; + line-height: ${typeRampBaseLineHeight}; + margin: calc(${designUnit} * 1px) 0; + outline: none; + position: relative; + transition: all 0.2s ease-in-out; + user-select: none; + } + .control { + background: ${checkboxBackground}; + border-radius: 999px; + border: calc(${borderWidth} * 1px) solid ${checkboxBorder}; + box-sizing: border-box; + cursor: pointer; + height: calc(${designUnit} * 4px); + position: relative; + outline: none; + width: calc(${designUnit} * 4px); + } + .label { + color: ${foreground}; + cursor: pointer; + font-family: ${fontFamily}; + margin-inline-end: calc(${designUnit} * 2px + 2px); + padding-inline-start: calc(${designUnit} * 2px + 2px); + } + .label__hidden { + display: none; + visibility: hidden; + } + .control, + .checked-indicator { + flex-shrink: 0; + } + .checked-indicator { + background: ${foreground}; + border-radius: 999px; + display: inline-block; + inset: calc(${designUnit} * 1px); + opacity: 0; + pointer-events: none; + position: absolute; + } + :host(:not([disabled])) .control:hover { + background: ${checkboxBackground}; + border-color: ${checkboxBorder}; + } + :host(:not([disabled])) .control:active { + background: ${checkboxBackground}; + border-color: ${focusBorder}; + } + :host(:${focusVisible}) .control { + border: calc(${borderWidth} * 1px) solid ${focusBorder}; + } + :host([aria-checked='true']) .control { + background: ${checkboxBackground}; + border: calc(${borderWidth} * 1px) solid ${checkboxBorder}; + } + :host([aria-checked='true']:not([disabled])) .control:hover { + background: ${checkboxBackground}; + border: calc(${borderWidth} * 1px) solid ${checkboxBorder}; + } + :host([aria-checked='true']:not([disabled])) .control:active { + background: ${checkboxBackground}; + border: calc(${borderWidth} * 1px) solid ${focusBorder}; + } + :host([aria-checked="true"]:${focusVisible}:not([disabled])) .control { + border: calc(${borderWidth} * 1px) solid ${focusBorder}; + } + :host([disabled]) .label, + :host([readonly]) .label, + :host([readonly]) .control, + :host([disabled]) .control { + cursor: ${disabledCursor}; + } + :host([aria-checked='true']) .checked-indicator { + opacity: 1; + } + :host([disabled]) { + opacity: ${disabledOpacity}; + } +`;class Radio extends Radio$1{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Radio")}}const vsCodeRadio=Radio.compose({baseName:"radio",template:radioTemplate,styles:radioStyles,checkedIndicator:` +
+ `}),tagStyles=(eo,to)=>css$1` + ${display("inline-block")} :host { + box-sizing: border-box; + font-family: ${fontFamily}; + font-size: ${typeRampMinus1FontSize}; + line-height: ${typeRampMinus1LineHeight}; + } + .control { + background-color: ${badgeBackground}; + border: calc(${borderWidth} * 1px) solid ${buttonBorder}; + border-radius: ${tagCornerRadius}; + color: ${badgeForeground}; + padding: calc(${designUnit} * 0.5px) calc(${designUnit} * 1px); + text-transform: uppercase; + } +`;let Tag$1=class extends Badge$1{connectedCallback(){super.connectedCallback(),this.circular&&(this.circular=!1)}};const vsCodeTag=Tag$1.compose({baseName:"tag",template:badgeTemplate,styles:tagStyles}),textAreaStyles=(eo,to)=>css$1` + ${display("inline-block")} :host { + font-family: ${fontFamily}; + outline: none; + user-select: none; + } + .control { + box-sizing: border-box; + position: relative; + color: ${inputForeground}; + background: ${inputBackground}; + border-radius: calc(${cornerRadiusRound} * 1px); + border: calc(${borderWidth} * 1px) solid ${dropdownBorder}; + font: inherit; + font-size: ${typeRampBaseFontSize}; + line-height: ${typeRampBaseLineHeight}; + padding: calc(${designUnit} * 2px + 1px); + width: 100%; + min-width: ${inputMinWidth}; + resize: none; + } + .control:hover:enabled { + background: ${inputBackground}; + border-color: ${dropdownBorder}; + } + .control:active:enabled { + background: ${inputBackground}; + border-color: ${focusBorder}; + } + .control:hover, + .control:${focusVisible}, + .control:disabled, + .control:active { + outline: none; + } + .control::-webkit-scrollbar { + width: ${scrollbarWidth}; + height: ${scrollbarHeight}; + } + .control::-webkit-scrollbar-corner { + background: ${inputBackground}; + } + .control::-webkit-scrollbar-thumb { + background: ${scrollbarSliderBackground}; + } + .control::-webkit-scrollbar-thumb:hover { + background: ${scrollbarSliderHoverBackground}; + } + .control::-webkit-scrollbar-thumb:active { + background: ${scrollbarSliderActiveBackground}; + } + :host(:focus-within:not([disabled])) .control { + border-color: ${focusBorder}; + } + :host([resize='both']) .control { + resize: both; + } + :host([resize='horizontal']) .control { + resize: horizontal; + } + :host([resize='vertical']) .control { + resize: vertical; + } + .label { + display: block; + color: ${foreground}; + cursor: pointer; + font-size: ${typeRampBaseFontSize}; + line-height: ${typeRampBaseLineHeight}; + margin-bottom: 2px; + } + .label__hidden { + display: none; + visibility: hidden; + } + :host([disabled]) .label, + :host([readonly]) .label, + :host([readonly]) .control, + :host([disabled]) .control { + cursor: ${disabledCursor}; + } + :host([disabled]) { + opacity: ${disabledOpacity}; + } + :host([disabled]) .control { + border-color: ${dropdownBorder}; + } +`;class TextArea extends TextArea$1{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text area")}}const vsCodeTextArea=TextArea.compose({baseName:"text-area",template:textAreaTemplate,styles:textAreaStyles,shadowOptions:{delegatesFocus:!0}}),textFieldStyles=(eo,to)=>css$1` + ${display("inline-block")} :host { + font-family: ${fontFamily}; + outline: none; + user-select: none; + } + .root { + box-sizing: border-box; + position: relative; + display: flex; + flex-direction: row; + color: ${inputForeground}; + background: ${inputBackground}; + border-radius: calc(${cornerRadiusRound} * 1px); + border: calc(${borderWidth} * 1px) solid ${dropdownBorder}; + height: calc(${inputHeight} * 1px); + min-width: ${inputMinWidth}; + } + .control { + -webkit-appearance: none; + font: inherit; + background: transparent; + border: 0; + color: inherit; + height: calc(100% - (${designUnit} * 1px)); + width: 100%; + margin-top: auto; + margin-bottom: auto; + border: none; + padding: 0 calc(${designUnit} * 2px + 1px); + font-size: ${typeRampBaseFontSize}; + line-height: ${typeRampBaseLineHeight}; + } + .control:hover, + .control:${focusVisible}, + .control:disabled, + .control:active { + outline: none; + } + .label { + display: block; + color: ${foreground}; + cursor: pointer; + font-size: ${typeRampBaseFontSize}; + line-height: ${typeRampBaseLineHeight}; + margin-bottom: 2px; + } + .label__hidden { + display: none; + visibility: hidden; + } + .start, + .end { + display: flex; + margin: auto; + fill: currentcolor; + } + ::slotted(svg), + ::slotted(span) { + width: calc(${designUnit} * 4px); + height: calc(${designUnit} * 4px); + } + .start { + margin-inline-start: calc(${designUnit} * 2px); + } + .end { + margin-inline-end: calc(${designUnit} * 2px); + } + :host(:hover:not([disabled])) .root { + background: ${inputBackground}; + border-color: ${dropdownBorder}; + } + :host(:active:not([disabled])) .root { + background: ${inputBackground}; + border-color: ${focusBorder}; + } + :host(:focus-within:not([disabled])) .root { + border-color: ${focusBorder}; + } + :host([disabled]) .label, + :host([readonly]) .label, + :host([readonly]) .control, + :host([disabled]) .control { + cursor: ${disabledCursor}; + } + :host([disabled]) { + opacity: ${disabledOpacity}; + } + :host([disabled]) .control { + border-color: ${dropdownBorder}; + } +`;class TextField extends TextField$1{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text field")}}const vsCodeTextField=TextField.compose({baseName:"text-field",template:textFieldTemplate,styles:textFieldStyles,shadowOptions:{delegatesFocus:!0}}),{wrap}=provideReactWrapper(React,provideVSCodeDesignSystem());wrap(vsCodeBadge(),{name:"vscode-badge"});wrap(vsCodeButton(),{name:"vscode-button"});wrap(vsCodeCheckbox(),{name:"vscode-checkbox",events:{onChange:"change"}});wrap(vsCodeDataGrid(),{name:"vscode-data-grid"});wrap(vsCodeDataGridCell(),{name:"vscode-data-grid-cell"});wrap(vsCodeDataGridRow(),{name:"vscode-data-grid-row"});wrap(vsCodeDivider(),{name:"vscode-divider"});wrap(vsCodeDropdown(),{name:"vscode-dropdown",events:{onChange:"change"}});wrap(vsCodeLink(),{name:"vscode-link"});wrap(vsCodeOption(),{name:"vscode-option"});wrap(vsCodePanels(),{name:"vscode-panels",events:{onChange:"change"}});wrap(vsCodePanelTab(),{name:"vscode-panel-tab"});wrap(vsCodePanelView(),{name:"vscode-panel-view"});const VSCodeProgressRing=wrap(vsCodeProgressRing(),{name:"vscode-progress-ring"});wrap(vsCodeRadio(),{name:"vscode-radio",events:{onChange:"change"}});wrap(vsCodeRadioGroup(),{name:"vscode-radio-group",events:{onChange:"change"}});wrap(vsCodeTag(),{name:"vscode-tag"});wrap(vsCodeTextArea(),{name:"vscode-text-area",events:{onChange:"change",onInput:"input"}});wrap(vsCodeTextField(),{name:"vscode-text-field",events:{onChange:"change",onInput:"input"}});const Loading=({isFullPage:eo=!1,style:to={}})=>{const ro=eo?{...to,height:"100vh",width:"100%"}:{...to};return jsxRuntimeExports.jsx(Stack$2,{horizontalAlign:"center",verticalAlign:"center",verticalFill:!0,style:ro,children:jsxRuntimeExports.jsx(VSCodeProgressRing,{})})};memoizeFunction((eo,to)=>mergeStyleSets({root:mergeStyles$1({display:"flex",flexDirection:"row",alignItems:"center",height:"30px",background:"var(--background)",width:"100%",...to&&{position:"fixed",top:0,zIndex:100}},eo),buttonGroup:{display:"flex",flexDirection:"row",height:"30px"},searchField:{marginRight:"100px",selectors:{"div.root":{height:"30px"}}}}));var toggleSelection=function(){var eo=document.getSelection();if(!eo.rangeCount)return function(){};for(var to=document.activeElement,ro=[],no=0;no"u"){ro&&console.warn("unable to use e.clipboardData"),ro&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var fo=clipboardToIE11Formatting[to.format]||clipboardToIE11Formatting.default;window.clipboardData.setData(fo,eo)}else co.clipboardData.clearData(),co.clipboardData.setData(to.format,eo);to.onCopy&&(co.preventDefault(),to.onCopy(co.clipboardData))}),document.body.appendChild(ao),io.selectNodeContents(ao),so.addRange(io);var uo=document.execCommand("copy");if(!uo)throw new Error("copy command was unsuccessful");lo=!0}catch(co){ro&&console.error("unable to copy using execCommand: ",co),ro&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(to.format||"text",eo),to.onCopy&&to.onCopy(window.clipboardData),lo=!0}catch(fo){ro&&console.error("unable to copy using clipboardData: ",fo),ro&&console.error("falling back to prompt"),no=format$1("message"in to?to.message:defaultMessage),window.prompt(no,eo)}}finally{so&&(typeof so.removeRange=="function"?so.removeRange(io):so.removeAllRanges()),ao&&document.body.removeChild(ao),oo()}return lo}var copyToClipboard$1=copy$1;const copy$2=getDefaultExportFromCjs(copyToClipboard$1);var main={exports:{}};(function(eo,to){(function(ro,no){eo.exports=no(reactExports)})(commonjsGlobal,function(ro){return function(no){var oo={};function io(so){if(oo[so])return oo[so].exports;var ao=oo[so]={i:so,l:!1,exports:{}};return no[so].call(ao.exports,ao,ao.exports,io),ao.l=!0,ao.exports}return io.m=no,io.c=oo,io.d=function(so,ao,lo){io.o(so,ao)||Object.defineProperty(so,ao,{enumerable:!0,get:lo})},io.r=function(so){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(so,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(so,"__esModule",{value:!0})},io.t=function(so,ao){if(1&ao&&(so=io(so)),8&ao||4&ao&&typeof so=="object"&&so&&so.__esModule)return so;var lo=Object.create(null);if(io.r(lo),Object.defineProperty(lo,"default",{enumerable:!0,value:so}),2&ao&&typeof so!="string")for(var uo in so)io.d(lo,uo,(function(co){return so[co]}).bind(null,uo));return lo},io.n=function(so){var ao=so&&so.__esModule?function(){return so.default}:function(){return so};return io.d(ao,"a",ao),ao},io.o=function(so,ao){return Object.prototype.hasOwnProperty.call(so,ao)},io.p="",io(io.s=48)}([function(no,oo){no.exports=ro},function(no,oo){var io=no.exports={version:"2.6.12"};typeof __e=="number"&&(__e=io)},function(no,oo,io){var so=io(26)("wks"),ao=io(17),lo=io(3).Symbol,uo=typeof lo=="function";(no.exports=function(co){return so[co]||(so[co]=uo&&lo[co]||(uo?lo:ao)("Symbol."+co))}).store=so},function(no,oo){var io=no.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=io)},function(no,oo,io){no.exports=!io(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(no,oo){var io={}.hasOwnProperty;no.exports=function(so,ao){return io.call(so,ao)}},function(no,oo,io){var so=io(7),ao=io(16);no.exports=io(4)?function(lo,uo,co){return so.f(lo,uo,ao(1,co))}:function(lo,uo,co){return lo[uo]=co,lo}},function(no,oo,io){var so=io(10),ao=io(35),lo=io(23),uo=Object.defineProperty;oo.f=io(4)?Object.defineProperty:function(co,fo,ho){if(so(co),fo=lo(fo,!0),so(ho),ao)try{return uo(co,fo,ho)}catch{}if("get"in ho||"set"in ho)throw TypeError("Accessors not supported!");return"value"in ho&&(co[fo]=ho.value),co}},function(no,oo){no.exports=function(io){try{return!!io()}catch{return!0}}},function(no,oo,io){var so=io(40),ao=io(22);no.exports=function(lo){return so(ao(lo))}},function(no,oo,io){var so=io(11);no.exports=function(ao){if(!so(ao))throw TypeError(ao+" is not an object!");return ao}},function(no,oo){no.exports=function(io){return typeof io=="object"?io!==null:typeof io=="function"}},function(no,oo){no.exports={}},function(no,oo,io){var so=io(39),ao=io(27);no.exports=Object.keys||function(lo){return so(lo,ao)}},function(no,oo){no.exports=!0},function(no,oo,io){var so=io(3),ao=io(1),lo=io(53),uo=io(6),co=io(5),fo=function(ho,po,go){var vo,bo,xo,_o=ho&fo.F,Eo=ho&fo.G,So=ho&fo.S,To=ho&fo.P,wo=ho&fo.B,Co=ho&fo.W,Oo=Eo?ao:ao[po]||(ao[po]={}),Ao=Oo.prototype,Ro=Eo?so:So?so[po]:(so[po]||{}).prototype;for(vo in Eo&&(go=po),go)(bo=!_o&&Ro&&Ro[vo]!==void 0)&&co(Oo,vo)||(xo=bo?Ro[vo]:go[vo],Oo[vo]=Eo&&typeof Ro[vo]!="function"?go[vo]:wo&&bo?lo(xo,so):Co&&Ro[vo]==xo?function(No){var Mo=function(Do,jo,Fo){if(this instanceof No){switch(arguments.length){case 0:return new No;case 1:return new No(Do);case 2:return new No(Do,jo)}return new No(Do,jo,Fo)}return No.apply(this,arguments)};return Mo.prototype=No.prototype,Mo}(xo):To&&typeof xo=="function"?lo(Function.call,xo):xo,To&&((Oo.virtual||(Oo.virtual={}))[vo]=xo,ho&fo.R&&Ao&&!Ao[vo]&&uo(Ao,vo,xo)))};fo.F=1,fo.G=2,fo.S=4,fo.P=8,fo.B=16,fo.W=32,fo.U=64,fo.R=128,no.exports=fo},function(no,oo){no.exports=function(io,so){return{enumerable:!(1&io),configurable:!(2&io),writable:!(4&io),value:so}}},function(no,oo){var io=0,so=Math.random();no.exports=function(ao){return"Symbol(".concat(ao===void 0?"":ao,")_",(++io+so).toString(36))}},function(no,oo,io){var so=io(22);no.exports=function(ao){return Object(so(ao))}},function(no,oo){oo.f={}.propertyIsEnumerable},function(no,oo,io){var so=io(52)(!0);io(34)(String,"String",function(ao){this._t=String(ao),this._i=0},function(){var ao,lo=this._t,uo=this._i;return uo>=lo.length?{value:void 0,done:!0}:(ao=so(lo,uo),this._i+=ao.length,{value:ao,done:!1})})},function(no,oo){var io=Math.ceil,so=Math.floor;no.exports=function(ao){return isNaN(ao=+ao)?0:(ao>0?so:io)(ao)}},function(no,oo){no.exports=function(io){if(io==null)throw TypeError("Can't call method on "+io);return io}},function(no,oo,io){var so=io(11);no.exports=function(ao,lo){if(!so(ao))return ao;var uo,co;if(lo&&typeof(uo=ao.toString)=="function"&&!so(co=uo.call(ao))||typeof(uo=ao.valueOf)=="function"&&!so(co=uo.call(ao))||!lo&&typeof(uo=ao.toString)=="function"&&!so(co=uo.call(ao)))return co;throw TypeError("Can't convert object to primitive value")}},function(no,oo){var io={}.toString;no.exports=function(so){return io.call(so).slice(8,-1)}},function(no,oo,io){var so=io(26)("keys"),ao=io(17);no.exports=function(lo){return so[lo]||(so[lo]=ao(lo))}},function(no,oo,io){var so=io(1),ao=io(3),lo=ao["__core-js_shared__"]||(ao["__core-js_shared__"]={});(no.exports=function(uo,co){return lo[uo]||(lo[uo]=co!==void 0?co:{})})("versions",[]).push({version:so.version,mode:io(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(no,oo){no.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(no,oo,io){var so=io(7).f,ao=io(5),lo=io(2)("toStringTag");no.exports=function(uo,co,fo){uo&&!ao(uo=fo?uo:uo.prototype,lo)&&so(uo,lo,{configurable:!0,value:co})}},function(no,oo,io){io(62);for(var so=io(3),ao=io(6),lo=io(12),uo=io(2)("toStringTag"),co="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(","),fo=0;fodocument.F=Object<\/script>"),ho.close(),fo=ho.F;go--;)delete fo.prototype[lo[go]];return fo()};no.exports=Object.create||function(ho,po){var go;return ho!==null?(co.prototype=so(ho),go=new co,co.prototype=null,go[uo]=ho):go=fo(),po===void 0?go:ao(go,po)}},function(no,oo,io){var so=io(5),ao=io(9),lo=io(57)(!1),uo=io(25)("IE_PROTO");no.exports=function(co,fo){var ho,po=ao(co),go=0,vo=[];for(ho in po)ho!=uo&&so(po,ho)&&vo.push(ho);for(;fo.length>go;)so(po,ho=fo[go++])&&(~lo(vo,ho)||vo.push(ho));return vo}},function(no,oo,io){var so=io(24);no.exports=Object("z").propertyIsEnumerable(0)?Object:function(ao){return so(ao)=="String"?ao.split(""):Object(ao)}},function(no,oo,io){var so=io(39),ao=io(27).concat("length","prototype");oo.f=Object.getOwnPropertyNames||function(lo){return so(lo,ao)}},function(no,oo,io){var so=io(24),ao=io(2)("toStringTag"),lo=so(function(){return arguments}())=="Arguments";no.exports=function(uo){var co,fo,ho;return uo===void 0?"Undefined":uo===null?"Null":typeof(fo=function(po,go){try{return po[go]}catch{}}(co=Object(uo),ao))=="string"?fo:lo?so(co):(ho=so(co))=="Object"&&typeof co.callee=="function"?"Arguments":ho}},function(no,oo){var io;io=function(){return this}();try{io=io||new Function("return this")()}catch{typeof window=="object"&&(io=window)}no.exports=io},function(no,oo){var io=/-?\d+(\.\d+)?%?/g;no.exports=function(so){return so.match(io)}},function(no,oo,io){Object.defineProperty(oo,"__esModule",{value:!0}),oo.getBase16Theme=oo.createStyling=oo.invertTheme=void 0;var so=bo(io(49)),ao=bo(io(76)),lo=bo(io(81)),uo=bo(io(89)),co=bo(io(93)),fo=function(Ao){if(Ao&&Ao.__esModule)return Ao;var Ro={};if(Ao!=null)for(var No in Ao)Object.prototype.hasOwnProperty.call(Ao,No)&&(Ro[No]=Ao[No]);return Ro.default=Ao,Ro}(io(94)),ho=bo(io(132)),po=bo(io(133)),go=bo(io(138)),vo=io(139);function bo(Ao){return Ao&&Ao.__esModule?Ao:{default:Ao}}var xo=fo.default,_o=(0,uo.default)(xo),Eo=(0,go.default)(po.default,vo.rgb2yuv,function(Ao){var Ro,No=(0,lo.default)(Ao,3),Mo=No[0],Do=No[1],jo=No[2];return[(Ro=Mo,Ro<.25?1:Ro<.5?.9-Ro:1.1-Ro),Do,jo]},vo.yuv2rgb,ho.default),So=function(Ao){return function(Ro){return{className:[Ro.className,Ao.className].filter(Boolean).join(" "),style:(0,ao.default)({},Ro.style||{},Ao.style||{})}}},To=function(Ao,Ro){var No=(0,uo.default)(Ro);for(var Mo in Ao)No.indexOf(Mo)===-1&&No.push(Mo);return No.reduce(function(Do,jo){return Do[jo]=function(Fo,$o){if(Fo===void 0)return $o;if($o===void 0)return Fo;var Lo=Fo===void 0?"undefined":(0,so.default)(Fo),Ho=$o===void 0?"undefined":(0,so.default)($o);switch(Lo){case"string":switch(Ho){case"string":return[$o,Fo].filter(Boolean).join(" ");case"object":return So({className:Fo,style:$o});case"function":return function(qo){for(var Uo=arguments.length,Yo=Array(Uo>1?Uo-1:0),Zo=1;Zo1?Uo-1:0),Zo=1;Zo1?Uo-1:0),Zo=1;Zo1?Uo-1:0),Zo=1;Zo1?Uo-1:0),Zo=1;Zo2?No-2:0),Do=2;Do3?Ro-3:0),Mo=3;Mo1&&arguments[1]!==void 0?arguments[1]:{},jo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Fo=Do.defaultBase16,$o=Fo===void 0?xo:Fo,Lo=Do.base16Themes,Ho=Lo===void 0?null:Lo,qo=Oo(jo,Ho);qo&&(jo=(0,ao.default)({},qo,jo));var Uo=_o.reduce(function(Ss,As){return Ss[As]=jo[As]||$o[As],Ss},{}),Yo=(0,uo.default)(jo).reduce(function(Ss,As){return _o.indexOf(As)===-1&&(Ss[As]=jo[As]),Ss},{}),Zo=Ao(Uo),_s=To(Yo,Zo);return(0,co.default)(wo,2).apply(void 0,[_s].concat(No))},3),oo.getBase16Theme=function(Ao,Ro){if(Ao&&Ao.extend&&(Ao=Ao.extend),typeof Ao=="string"){var No=Ao.split(":"),Mo=(0,lo.default)(No,2),Do=Mo[0],jo=Mo[1];Ao=(Ro||{})[Do]||fo[Do],jo==="inverted"&&(Ao=Co(Ao))}return Ao&&Ao.hasOwnProperty("base00")?Ao:void 0})},function(no,oo,io){var so,ao=typeof Reflect=="object"?Reflect:null,lo=ao&&typeof ao.apply=="function"?ao.apply:function(So,To,wo){return Function.prototype.apply.call(So,To,wo)};so=ao&&typeof ao.ownKeys=="function"?ao.ownKeys:Object.getOwnPropertySymbols?function(So){return Object.getOwnPropertyNames(So).concat(Object.getOwnPropertySymbols(So))}:function(So){return Object.getOwnPropertyNames(So)};var uo=Number.isNaN||function(So){return So!=So};function co(){co.init.call(this)}no.exports=co,no.exports.once=function(So,To){return new Promise(function(wo,Co){function Oo(){Ao!==void 0&&So.removeListener("error",Ao),wo([].slice.call(arguments))}var Ao;To!=="error"&&(Ao=function(Ro){So.removeListener(To,Oo),Co(Ro)},So.once("error",Ao)),So.once(To,Oo)})},co.EventEmitter=co,co.prototype._events=void 0,co.prototype._eventsCount=0,co.prototype._maxListeners=void 0;var fo=10;function ho(So){if(typeof So!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof So)}function po(So){return So._maxListeners===void 0?co.defaultMaxListeners:So._maxListeners}function go(So,To,wo,Co){var Oo,Ao,Ro,No;if(ho(wo),(Ao=So._events)===void 0?(Ao=So._events=Object.create(null),So._eventsCount=0):(Ao.newListener!==void 0&&(So.emit("newListener",To,wo.listener?wo.listener:wo),Ao=So._events),Ro=Ao[To]),Ro===void 0)Ro=Ao[To]=wo,++So._eventsCount;else if(typeof Ro=="function"?Ro=Ao[To]=Co?[wo,Ro]:[Ro,wo]:Co?Ro.unshift(wo):Ro.push(wo),(Oo=po(So))>0&&Ro.length>Oo&&!Ro.warned){Ro.warned=!0;var Mo=new Error("Possible EventEmitter memory leak detected. "+Ro.length+" "+String(To)+" listeners added. Use emitter.setMaxListeners() to increase limit");Mo.name="MaxListenersExceededWarning",Mo.emitter=So,Mo.type=To,Mo.count=Ro.length,No=Mo,console&&console.warn&&console.warn(No)}return So}function vo(){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 bo(So,To,wo){var Co={fired:!1,wrapFn:void 0,target:So,type:To,listener:wo},Oo=vo.bind(Co);return Oo.listener=wo,Co.wrapFn=Oo,Oo}function xo(So,To,wo){var Co=So._events;if(Co===void 0)return[];var Oo=Co[To];return Oo===void 0?[]:typeof Oo=="function"?wo?[Oo.listener||Oo]:[Oo]:wo?function(Ao){for(var Ro=new Array(Ao.length),No=0;No0&&(Ao=To[0]),Ao instanceof Error)throw Ao;var Ro=new Error("Unhandled error."+(Ao?" ("+Ao.message+")":""));throw Ro.context=Ao,Ro}var No=Oo[So];if(No===void 0)return!1;if(typeof No=="function")lo(No,this,To);else{var Mo=No.length,Do=Eo(No,Mo);for(wo=0;wo=0;Ao--)if(wo[Ao]===To||wo[Ao].listener===To){Ro=wo[Ao].listener,Oo=Ao;break}if(Oo<0)return this;Oo===0?wo.shift():function(No,Mo){for(;Mo+1=0;Co--)this.removeListener(So,To[Co]);return this},co.prototype.listeners=function(So){return xo(this,So,!0)},co.prototype.rawListeners=function(So){return xo(this,So,!1)},co.listenerCount=function(So,To){return typeof So.listenerCount=="function"?So.listenerCount(To):_o.call(So,To)},co.prototype.listenerCount=_o,co.prototype.eventNames=function(){return this._eventsCount>0?so(this._events):[]}},function(no,oo,io){no.exports.Dispatcher=io(140)},function(no,oo,io){no.exports=io(142)},function(no,oo,io){oo.__esModule=!0;var so=uo(io(50)),ao=uo(io(65)),lo=typeof ao.default=="function"&&typeof so.default=="symbol"?function(co){return typeof co}:function(co){return co&&typeof ao.default=="function"&&co.constructor===ao.default&&co!==ao.default.prototype?"symbol":typeof co};function uo(co){return co&&co.__esModule?co:{default:co}}oo.default=typeof ao.default=="function"&&lo(so.default)==="symbol"?function(co){return co===void 0?"undefined":lo(co)}:function(co){return co&&typeof ao.default=="function"&&co.constructor===ao.default&&co!==ao.default.prototype?"symbol":co===void 0?"undefined":lo(co)}},function(no,oo,io){no.exports={default:io(51),__esModule:!0}},function(no,oo,io){io(20),io(29),no.exports=io(30).f("iterator")},function(no,oo,io){var so=io(21),ao=io(22);no.exports=function(lo){return function(uo,co){var fo,ho,po=String(ao(uo)),go=so(co),vo=po.length;return go<0||go>=vo?lo?"":void 0:(fo=po.charCodeAt(go))<55296||fo>56319||go+1===vo||(ho=po.charCodeAt(go+1))<56320||ho>57343?lo?po.charAt(go):fo:lo?po.slice(go,go+2):ho-56320+(fo-55296<<10)+65536}}},function(no,oo,io){var so=io(54);no.exports=function(ao,lo,uo){if(so(ao),lo===void 0)return ao;switch(uo){case 1:return function(co){return ao.call(lo,co)};case 2:return function(co,fo){return ao.call(lo,co,fo)};case 3:return function(co,fo,ho){return ao.call(lo,co,fo,ho)}}return function(){return ao.apply(lo,arguments)}}},function(no,oo){no.exports=function(io){if(typeof io!="function")throw TypeError(io+" is not a function!");return io}},function(no,oo,io){var so=io(38),ao=io(16),lo=io(28),uo={};io(6)(uo,io(2)("iterator"),function(){return this}),no.exports=function(co,fo,ho){co.prototype=so(uo,{next:ao(1,ho)}),lo(co,fo+" Iterator")}},function(no,oo,io){var so=io(7),ao=io(10),lo=io(13);no.exports=io(4)?Object.defineProperties:function(uo,co){ao(uo);for(var fo,ho=lo(co),po=ho.length,go=0;po>go;)so.f(uo,fo=ho[go++],co[fo]);return uo}},function(no,oo,io){var so=io(9),ao=io(58),lo=io(59);no.exports=function(uo){return function(co,fo,ho){var po,go=so(co),vo=ao(go.length),bo=lo(ho,vo);if(uo&&fo!=fo){for(;vo>bo;)if((po=go[bo++])!=po)return!0}else for(;vo>bo;bo++)if((uo||bo in go)&&go[bo]===fo)return uo||bo||0;return!uo&&-1}}},function(no,oo,io){var so=io(21),ao=Math.min;no.exports=function(lo){return lo>0?ao(so(lo),9007199254740991):0}},function(no,oo,io){var so=io(21),ao=Math.max,lo=Math.min;no.exports=function(uo,co){return(uo=so(uo))<0?ao(uo+co,0):lo(uo,co)}},function(no,oo,io){var so=io(3).document;no.exports=so&&so.documentElement},function(no,oo,io){var so=io(5),ao=io(18),lo=io(25)("IE_PROTO"),uo=Object.prototype;no.exports=Object.getPrototypeOf||function(co){return co=ao(co),so(co,lo)?co[lo]:typeof co.constructor=="function"&&co instanceof co.constructor?co.constructor.prototype:co instanceof Object?uo:null}},function(no,oo,io){var so=io(63),ao=io(64),lo=io(12),uo=io(9);no.exports=io(34)(Array,"Array",function(co,fo){this._t=uo(co),this._i=0,this._k=fo},function(){var co=this._t,fo=this._k,ho=this._i++;return!co||ho>=co.length?(this._t=void 0,ao(1)):ao(0,fo=="keys"?ho:fo=="values"?co[ho]:[ho,co[ho]])},"values"),lo.Arguments=lo.Array,so("keys"),so("values"),so("entries")},function(no,oo){no.exports=function(){}},function(no,oo){no.exports=function(io,so){return{value:so,done:!!io}}},function(no,oo,io){no.exports={default:io(66),__esModule:!0}},function(no,oo,io){io(67),io(73),io(74),io(75),no.exports=io(1).Symbol},function(no,oo,io){var so=io(3),ao=io(5),lo=io(4),uo=io(15),co=io(37),fo=io(68).KEY,ho=io(8),po=io(26),go=io(28),vo=io(17),bo=io(2),xo=io(30),_o=io(31),Eo=io(69),So=io(70),To=io(10),wo=io(11),Co=io(18),Oo=io(9),Ao=io(23),Ro=io(16),No=io(38),Mo=io(71),Do=io(72),jo=io(32),Fo=io(7),$o=io(13),Lo=Do.f,Ho=Fo.f,qo=Mo.f,Uo=so.Symbol,Yo=so.JSON,Zo=Yo&&Yo.stringify,_s=bo("_hidden"),Ss=bo("toPrimitive"),As={}.propertyIsEnumerable,Ns=po("symbol-registry"),ws=po("symbols"),Ds=po("op-symbols"),Jo=Object.prototype,Cs=typeof Uo=="function"&&!!jo.f,Bs=so.QObject,zs=!Bs||!Bs.prototype||!Bs.prototype.findChild,Ls=lo&&ho(function(){return No(Ho({},"a",{get:function(){return Ho(this,"a",{value:7}).a}})).a!=7})?function(bs,Os,Vs){var Ks=Lo(Jo,Os);Ks&&delete Jo[Os],Ho(bs,Os,Vs),Ks&&bs!==Jo&&Ho(Jo,Os,Ks)}:Ho,ga=function(bs){var Os=ws[bs]=No(Uo.prototype);return Os._k=bs,Os},Js=Cs&&typeof Uo.iterator=="symbol"?function(bs){return typeof bs=="symbol"}:function(bs){return bs instanceof Uo},Xs=function(bs,Os,Vs){return bs===Jo&&Xs(Ds,Os,Vs),To(bs),Os=Ao(Os,!0),To(Vs),ao(ws,Os)?(Vs.enumerable?(ao(bs,_s)&&bs[_s][Os]&&(bs[_s][Os]=!1),Vs=No(Vs,{enumerable:Ro(0,!1)})):(ao(bs,_s)||Ho(bs,_s,Ro(1,{})),bs[_s][Os]=!0),Ls(bs,Os,Vs)):Ho(bs,Os,Vs)},$a=function(bs,Os){To(bs);for(var Vs,Ks=Eo(Os=Oo(Os)),Ms=0,Hs=Ks.length;Hs>Ms;)Xs(bs,Vs=Ks[Ms++],Os[Vs]);return bs},Ll=function(bs){var Os=As.call(this,bs=Ao(bs,!0));return!(this===Jo&&ao(ws,bs)&&!ao(Ds,bs))&&(!(Os||!ao(this,bs)||!ao(ws,bs)||ao(this,_s)&&this[_s][bs])||Os)},Kl=function(bs,Os){if(bs=Oo(bs),Os=Ao(Os,!0),bs!==Jo||!ao(ws,Os)||ao(Ds,Os)){var Vs=Lo(bs,Os);return!Vs||!ao(ws,Os)||ao(bs,_s)&&bs[_s][Os]||(Vs.enumerable=!0),Vs}},Xl=function(bs){for(var Os,Vs=qo(Oo(bs)),Ks=[],Ms=0;Vs.length>Ms;)ao(ws,Os=Vs[Ms++])||Os==_s||Os==fo||Ks.push(Os);return Ks},Nl=function(bs){for(var Os,Vs=bs===Jo,Ks=qo(Vs?Ds:Oo(bs)),Ms=[],Hs=0;Ks.length>Hs;)!ao(ws,Os=Ks[Hs++])||Vs&&!ao(Jo,Os)||Ms.push(ws[Os]);return Ms};Cs||(co((Uo=function(){if(this instanceof Uo)throw TypeError("Symbol is not a constructor!");var bs=vo(arguments.length>0?arguments[0]:void 0),Os=function(Vs){this===Jo&&Os.call(Ds,Vs),ao(this,_s)&&ao(this[_s],bs)&&(this[_s][bs]=!1),Ls(this,bs,Ro(1,Vs))};return lo&&zs&&Ls(Jo,bs,{configurable:!0,set:Os}),ga(bs)}).prototype,"toString",function(){return this._k}),Do.f=Kl,Fo.f=Xs,io(41).f=Mo.f=Xl,io(19).f=Ll,jo.f=Nl,lo&&!io(14)&&co(Jo,"propertyIsEnumerable",Ll,!0),xo.f=function(bs){return ga(bo(bs))}),uo(uo.G+uo.W+uo.F*!Cs,{Symbol:Uo});for(var xa="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),El=0;xa.length>El;)bo(xa[El++]);for(var cu=$o(bo.store),ks=0;cu.length>ks;)_o(cu[ks++]);uo(uo.S+uo.F*!Cs,"Symbol",{for:function(bs){return ao(Ns,bs+="")?Ns[bs]:Ns[bs]=Uo(bs)},keyFor:function(bs){if(!Js(bs))throw TypeError(bs+" is not a symbol!");for(var Os in Ns)if(Ns[Os]===bs)return Os},useSetter:function(){zs=!0},useSimple:function(){zs=!1}}),uo(uo.S+uo.F*!Cs,"Object",{create:function(bs,Os){return Os===void 0?No(bs):$a(No(bs),Os)},defineProperty:Xs,defineProperties:$a,getOwnPropertyDescriptor:Kl,getOwnPropertyNames:Xl,getOwnPropertySymbols:Nl});var Es=ho(function(){jo.f(1)});uo(uo.S+uo.F*Es,"Object",{getOwnPropertySymbols:function(bs){return jo.f(Co(bs))}}),Yo&&uo(uo.S+uo.F*(!Cs||ho(function(){var bs=Uo();return Zo([bs])!="[null]"||Zo({a:bs})!="{}"||Zo(Object(bs))!="{}"})),"JSON",{stringify:function(bs){for(var Os,Vs,Ks=[bs],Ms=1;arguments.length>Ms;)Ks.push(arguments[Ms++]);if(Vs=Os=Ks[1],(wo(Os)||bs!==void 0)&&!Js(bs))return So(Os)||(Os=function(Hs,Zs){if(typeof Vs=="function"&&(Zs=Vs.call(this,Hs,Zs)),!Js(Zs))return Zs}),Ks[1]=Os,Zo.apply(Yo,Ks)}}),Uo.prototype[Ss]||io(6)(Uo.prototype,Ss,Uo.prototype.valueOf),go(Uo,"Symbol"),go(Math,"Math",!0),go(so.JSON,"JSON",!0)},function(no,oo,io){var so=io(17)("meta"),ao=io(11),lo=io(5),uo=io(7).f,co=0,fo=Object.isExtensible||function(){return!0},ho=!io(8)(function(){return fo(Object.preventExtensions({}))}),po=function(vo){uo(vo,so,{value:{i:"O"+ ++co,w:{}}})},go=no.exports={KEY:so,NEED:!1,fastKey:function(vo,bo){if(!ao(vo))return typeof vo=="symbol"?vo:(typeof vo=="string"?"S":"P")+vo;if(!lo(vo,so)){if(!fo(vo))return"F";if(!bo)return"E";po(vo)}return vo[so].i},getWeak:function(vo,bo){if(!lo(vo,so)){if(!fo(vo))return!0;if(!bo)return!1;po(vo)}return vo[so].w},onFreeze:function(vo){return ho&&go.NEED&&fo(vo)&&!lo(vo,so)&&po(vo),vo}}},function(no,oo,io){var so=io(13),ao=io(32),lo=io(19);no.exports=function(uo){var co=so(uo),fo=ao.f;if(fo)for(var ho,po=fo(uo),go=lo.f,vo=0;po.length>vo;)go.call(uo,ho=po[vo++])&&co.push(ho);return co}},function(no,oo,io){var so=io(24);no.exports=Array.isArray||function(ao){return so(ao)=="Array"}},function(no,oo,io){var so=io(9),ao=io(41).f,lo={}.toString,uo=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];no.exports.f=function(co){return uo&&lo.call(co)=="[object Window]"?function(fo){try{return ao(fo)}catch{return uo.slice()}}(co):ao(so(co))}},function(no,oo,io){var so=io(19),ao=io(16),lo=io(9),uo=io(23),co=io(5),fo=io(35),ho=Object.getOwnPropertyDescriptor;oo.f=io(4)?ho:function(po,go){if(po=lo(po),go=uo(go,!0),fo)try{return ho(po,go)}catch{}if(co(po,go))return ao(!so.f.call(po,go),po[go])}},function(no,oo){},function(no,oo,io){io(31)("asyncIterator")},function(no,oo,io){io(31)("observable")},function(no,oo,io){oo.__esModule=!0;var so,ao=io(77),lo=(so=ao)&&so.__esModule?so:{default:so};oo.default=lo.default||function(uo){for(var co=1;coxo;)for(var So,To=fo(arguments[xo++]),wo=_o?ao(To).concat(_o(To)):ao(To),Co=wo.length,Oo=0;Co>Oo;)So=wo[Oo++],so&&!Eo.call(To,So)||(vo[So]=To[So]);return vo}:ho},function(no,oo,io){oo.__esModule=!0;var so=lo(io(82)),ao=lo(io(85));function lo(uo){return uo&&uo.__esModule?uo:{default:uo}}oo.default=function(uo,co){if(Array.isArray(uo))return uo;if((0,so.default)(Object(uo)))return function(fo,ho){var po=[],go=!0,vo=!1,bo=void 0;try{for(var xo,_o=(0,ao.default)(fo);!(go=(xo=_o.next()).done)&&(po.push(xo.value),!ho||po.length!==ho);go=!0);}catch(Eo){vo=!0,bo=Eo}finally{try{!go&&_o.return&&_o.return()}finally{if(vo)throw bo}}return po}(uo,co);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(no,oo,io){no.exports={default:io(83),__esModule:!0}},function(no,oo,io){io(29),io(20),no.exports=io(84)},function(no,oo,io){var so=io(42),ao=io(2)("iterator"),lo=io(12);no.exports=io(1).isIterable=function(uo){var co=Object(uo);return co[ao]!==void 0||"@@iterator"in co||lo.hasOwnProperty(so(co))}},function(no,oo,io){no.exports={default:io(86),__esModule:!0}},function(no,oo,io){io(29),io(20),no.exports=io(87)},function(no,oo,io){var so=io(10),ao=io(88);no.exports=io(1).getIterator=function(lo){var uo=ao(lo);if(typeof uo!="function")throw TypeError(lo+" is not iterable!");return so(uo.call(lo))}},function(no,oo,io){var so=io(42),ao=io(2)("iterator"),lo=io(12);no.exports=io(1).getIteratorMethod=function(uo){if(uo!=null)return uo[ao]||uo["@@iterator"]||lo[so(uo)]}},function(no,oo,io){no.exports={default:io(90),__esModule:!0}},function(no,oo,io){io(91),no.exports=io(1).Object.keys},function(no,oo,io){var so=io(18),ao=io(13);io(92)("keys",function(){return function(lo){return ao(so(lo))}})},function(no,oo,io){var so=io(15),ao=io(1),lo=io(8);no.exports=function(uo,co){var fo=(ao.Object||{})[uo]||Object[uo],ho={};ho[uo]=co(fo),so(so.S+so.F*lo(function(){fo(1)}),"Object",ho)}},function(no,oo,io){(function(so){var ao=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],lo=/^\s+|\s+$/g,uo=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,co=/\{\n\/\* \[wrapped with (.+)\] \*/,fo=/,? & /,ho=/^[-+]0x[0-9a-f]+$/i,po=/^0b[01]+$/i,go=/^\[object .+?Constructor\]$/,vo=/^0o[0-7]+$/i,bo=/^(?:0|[1-9]\d*)$/,xo=parseInt,_o=typeof so=="object"&&so&&so.Object===Object&&so,Eo=typeof self=="object"&&self&&self.Object===Object&&self,So=_o||Eo||Function("return this")();function To(ks,Es,bs){switch(bs.length){case 0:return ks.call(Es);case 1:return ks.call(Es,bs[0]);case 2:return ks.call(Es,bs[0],bs[1]);case 3:return ks.call(Es,bs[0],bs[1],bs[2])}return ks.apply(Es,bs)}function wo(ks,Es){return!!(ks&&ks.length)&&function(bs,Os,Vs){if(Os!=Os)return function(Hs,Zs,xl,Sl){for(var $l=Hs.length,ru=xl+(Sl?1:-1);Sl?ru--:++ru<$l;)if(Zs(Hs[ru],ru,Hs))return ru;return-1}(bs,Co,Vs);for(var Ks=Vs-1,Ms=bs.length;++Ks-1}function Co(ks){return ks!=ks}function Oo(ks,Es){for(var bs=ks.length,Os=0;bs--;)ks[bs]===Es&&Os++;return Os}function Ao(ks,Es){for(var bs=-1,Os=ks.length,Vs=0,Ks=[];++bs2?No:void 0);function As(ks){return xa(ks)?Yo(ks):{}}function Ns(ks){return!(!xa(ks)||function(Es){return!!$o&&$o in Es}(ks))&&(function(Es){var bs=xa(Es)?qo.call(Es):"";return bs=="[object Function]"||bs=="[object GeneratorFunction]"}(ks)||function(Es){var bs=!1;if(Es!=null&&typeof Es.toString!="function")try{bs=!!(Es+"")}catch{}return bs}(ks)?Uo:go).test(function(Es){if(Es!=null){try{return Lo.call(Es)}catch{}try{return Es+""}catch{}}return""}(ks))}function ws(ks,Es,bs,Os){for(var Vs=-1,Ks=ks.length,Ms=bs.length,Hs=-1,Zs=Es.length,xl=Zo(Ks-Ms,0),Sl=Array(Zs+xl),$l=!Os;++Hs1&&Dl.reverse(),Sl&&Zs1?"& ":"")+Es[Os],Es=Es.join(bs>2?", ":" "),ks.replace(uo,`{ +/* [wrapped with `+Es+`] */ +`)}function $a(ks,Es){return!!(Es=Es??9007199254740991)&&(typeof ks=="number"||bo.test(ks))&&ks>-1&&ks%1==0&&ks1&&lo--,co=6*lo<1?so+6*(ao-so)*lo:2*lo<1?ao:3*lo<2?so+(ao-so)*(2/3-lo)*6:so,uo[go]=255*co;return uo}},function(no,oo,io){(function(so){var ao=typeof so=="object"&&so&&so.Object===Object&&so,lo=typeof self=="object"&&self&&self.Object===Object&&self,uo=ao||lo||Function("return this")();function co(Ao,Ro,No){switch(No.length){case 0:return Ao.call(Ro);case 1:return Ao.call(Ro,No[0]);case 2:return Ao.call(Ro,No[0],No[1]);case 3:return Ao.call(Ro,No[0],No[1],No[2])}return Ao.apply(Ro,No)}function fo(Ao,Ro){for(var No=-1,Mo=Ro.length,Do=Ao.length;++No-1&&Do%1==0&&Do<=9007199254740991}(Mo.length)&&!function(Do){var jo=function(Fo){var $o=typeof Fo;return!!Fo&&($o=="object"||$o=="function")}(Do)?go.call(Do):"";return jo=="[object Function]"||jo=="[object GeneratorFunction]"}(Mo)}(No)}(Ro)&&po.call(Ro,"callee")&&(!bo.call(Ro,"callee")||go.call(Ro)=="[object Arguments]")}(Ao)||!!(xo&&Ao&&Ao[xo])}var So=Array.isArray,To,wo,Co,Oo=(wo=function(Ao){var Ro=(Ao=function Mo(Do,jo,Fo,$o,Lo){var Ho=-1,qo=Do.length;for(Fo||(Fo=Eo),Lo||(Lo=[]);++Ho0&&Fo(Uo)?jo>1?Mo(Uo,jo-1,Fo,$o,Lo):fo(Lo,Uo):$o||(Lo[Lo.length]=Uo)}return Lo}(Ao,1)).length,No=Ro;for(To;No--;)if(typeof Ao[No]!="function")throw new TypeError("Expected a function");return function(){for(var Mo=0,Do=Ro?Ao[Mo].apply(this,arguments):arguments[0];++Mo2?lo-2:0),co=2;co"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 zo,Vo=go(Ko);if(Qo){var Bo=go(this).constructor;zo=Reflect.construct(Vo,arguments,Bo)}else zo=Vo.apply(this,arguments);return xo(this,zo)}}io.r(oo);var Eo=io(0),So=io.n(Eo);function To(){var Ko=this.constructor.getDerivedStateFromProps(this.props,this.state);Ko!=null&&this.setState(Ko)}function wo(Ko){this.setState((function(Qo){var zo=this.constructor.getDerivedStateFromProps(Ko,Qo);return zo??null}).bind(this))}function Co(Ko,Qo){try{var zo=this.props,Vo=this.state;this.props=Ko,this.state=Qo,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(zo,Vo)}finally{this.props=zo,this.state=Vo}}function Oo(Ko){var Qo=Ko.prototype;if(!Qo||!Qo.isReactComponent)throw new Error("Can only polyfill class components");if(typeof Ko.getDerivedStateFromProps!="function"&&typeof Qo.getSnapshotBeforeUpdate!="function")return Ko;var zo=null,Vo=null,Bo=null;if(typeof Qo.componentWillMount=="function"?zo="componentWillMount":typeof Qo.UNSAFE_componentWillMount=="function"&&(zo="UNSAFE_componentWillMount"),typeof Qo.componentWillReceiveProps=="function"?Vo="componentWillReceiveProps":typeof Qo.UNSAFE_componentWillReceiveProps=="function"&&(Vo="UNSAFE_componentWillReceiveProps"),typeof Qo.componentWillUpdate=="function"?Bo="componentWillUpdate":typeof Qo.UNSAFE_componentWillUpdate=="function"&&(Bo="UNSAFE_componentWillUpdate"),zo!==null||Vo!==null||Bo!==null){var Xo=Ko.displayName||Ko.name,vs=typeof Ko.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. + +`+Xo+" uses "+vs+" but also contains the following legacy lifecycles:"+(zo!==null?` + `+zo:"")+(Vo!==null?` + `+Vo:"")+(Bo!==null?` + `+Bo:"")+` + +The above lifecycles should be removed. Learn more about this warning here: +https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof Ko.getDerivedStateFromProps=="function"&&(Qo.componentWillMount=To,Qo.componentWillReceiveProps=wo),typeof Qo.getSnapshotBeforeUpdate=="function"){if(typeof Qo.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");Qo.componentWillUpdate=Co;var ys=Qo.componentDidUpdate;Qo.componentDidUpdate=function(ps,Rs,Us){var Rl=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:Us;ys.call(this,ps,Rs,Rl)}}return Ko}function Ao(Ko,Qo){if(Ko==null)return{};var zo,Vo,Bo=function(vs,ys){if(vs==null)return{};var ps,Rs,Us={},Rl=Object.keys(vs);for(Rs=0;Rs=0||(Us[ps]=vs[ps]);return Us}(Ko,Qo);if(Object.getOwnPropertySymbols){var Xo=Object.getOwnPropertySymbols(Ko);for(Vo=0;Vo=0||Object.prototype.propertyIsEnumerable.call(Ko,zo)&&(Bo[zo]=Ko[zo])}return Bo}function Ro(Ko){var Qo=function(zo){return{}.toString.call(zo).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(Ko);return Qo==="number"&&(Qo=isNaN(Ko)?"nan":(0|Ko)!=Ko?"float":"integer"),Qo}To.__suppressDeprecationWarning=!0,wo.__suppressDeprecationWarning=!0,Co.__suppressDeprecationWarning=!0;var No={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"},Mo={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)"},Do={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"},jo=io(45),Fo=function(Ko){var Qo=function(zo){return{backgroundColor:zo.base00,ellipsisColor:zo.base09,braceColor:zo.base07,expandedIcon:zo.base0D,collapsedIcon:zo.base0E,keyColor:zo.base07,arrayKeyColor:zo.base0C,objectSize:zo.base04,copyToClipboard:zo.base0F,copyToClipboardCheck:zo.base0D,objectBorder:zo.base02,dataTypes:{boolean:zo.base0E,date:zo.base0D,float:zo.base0B,function:zo.base0D,integer:zo.base0F,string:zo.base09,nan:zo.base08,null:zo.base0A,undefined:zo.base05,regexp:zo.base0A,background:zo.base02},editVariable:{editIcon:zo.base0E,cancelIcon:zo.base09,removeIcon:zo.base09,addIcon:zo.base0E,checkIcon:zo.base0E,background:zo.base01,color:zo.base0A,border:zo.base07},addKeyModal:{background:zo.base05,border:zo.base04,color:zo.base0A,labelColor:zo.base01},validationFailure:{background:zo.base09,iconColor:zo.base01,fontColor:zo.base01}}}(Ko);return{"app-container":{fontFamily:Do.globalFontFamily,cursor:Do.globalCursor,backgroundColor:Qo.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:Qo.ellipsisColor,fontSize:Do.ellipsisFontSize,lineHeight:Do.ellipsisLineHeight,cursor:Do.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:Do.braceCursor,fontWeight:Do.braceFontWeight,color:Qo.braceColor},"expanded-icon":{color:Qo.expandedIcon},"collapsed-icon":{color:Qo.collapsedIcon},colon:{display:"inline-block",margin:Do.keyMargin,color:Qo.keyColor,verticalAlign:"top"},objectKeyVal:function(zo,Vo){return{style:lo({paddingTop:Do.keyValPaddingTop,paddingRight:Do.keyValPaddingRight,paddingBottom:Do.keyValPaddingBottom,borderLeft:Do.keyValBorderLeft+" "+Qo.objectBorder,":hover":{paddingLeft:Vo.paddingLeft-1+"px",borderLeft:Do.keyValBorderHover+" "+Qo.objectBorder}},Vo)}},"object-key-val-no-border":{padding:Do.keyValPadding},"pushed-content":{marginLeft:Do.pushedContentMarginLeft},variableValue:function(zo,Vo){return{style:lo({display:"inline-block",paddingRight:Do.variableValuePaddingRight,position:"relative"},Vo)}},"object-name":{display:"inline-block",color:Qo.keyColor,letterSpacing:Do.keyLetterSpacing,fontStyle:Do.keyFontStyle,verticalAlign:Do.keyVerticalAlign,opacity:Do.keyOpacity,":hover":{opacity:Do.keyOpacityHover}},"array-key":{display:"inline-block",color:Qo.arrayKeyColor,letterSpacing:Do.keyLetterSpacing,fontStyle:Do.keyFontStyle,verticalAlign:Do.keyVerticalAlign,opacity:Do.keyOpacity,":hover":{opacity:Do.keyOpacityHover}},"object-size":{color:Qo.objectSize,borderRadius:Do.objectSizeBorderRadius,fontStyle:Do.objectSizeFontStyle,margin:Do.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:Do.dataTypeFontSize,marginRight:Do.dataTypeMarginRight,opacity:Do.datatypeOpacity},boolean:{display:"inline-block",color:Qo.dataTypes.boolean},date:{display:"inline-block",color:Qo.dataTypes.date},"date-value":{marginLeft:Do.dateValueMarginLeft},float:{display:"inline-block",color:Qo.dataTypes.float},function:{display:"inline-block",color:Qo.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:Qo.dataTypes.integer},string:{display:"inline-block",color:Qo.dataTypes.string},nan:{display:"inline-block",color:Qo.dataTypes.nan,fontSize:Do.nanFontSize,fontWeight:Do.nanFontWeight,backgroundColor:Qo.dataTypes.background,padding:Do.nanPadding,borderRadius:Do.nanBorderRadius},null:{display:"inline-block",color:Qo.dataTypes.null,fontSize:Do.nullFontSize,fontWeight:Do.nullFontWeight,backgroundColor:Qo.dataTypes.background,padding:Do.nullPadding,borderRadius:Do.nullBorderRadius},undefined:{display:"inline-block",color:Qo.dataTypes.undefined,fontSize:Do.undefinedFontSize,padding:Do.undefinedPadding,borderRadius:Do.undefinedBorderRadius,backgroundColor:Qo.dataTypes.background},regexp:{display:"inline-block",color:Qo.dataTypes.regexp},"copy-to-clipboard":{cursor:Do.clipboardCursor},"copy-icon":{color:Qo.copyToClipboard,fontSize:Do.iconFontSize,marginRight:Do.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:Qo.copyToClipboardCheck,marginLeft:Do.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:Do.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:Do.metaDataPadding},"icon-container":{display:"inline-block",width:Do.iconContainerWidth},tooltip:{padding:Do.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:Qo.editVariable.removeIcon,cursor:Do.iconCursor,fontSize:Do.iconFontSize,marginRight:Do.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:Qo.editVariable.addIcon,cursor:Do.iconCursor,fontSize:Do.iconFontSize,marginRight:Do.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:Qo.editVariable.editIcon,cursor:Do.iconCursor,fontSize:Do.iconFontSize,marginRight:Do.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:Do.iconCursor,color:Qo.editVariable.checkIcon,fontSize:Do.iconFontSize,paddingRight:Do.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:Do.iconCursor,color:Qo.editVariable.cancelIcon,fontSize:Do.iconFontSize,paddingRight:Do.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:Do.editInputMinWidth,borderRadius:Do.editInputBorderRadius,backgroundColor:Qo.editVariable.background,color:Qo.editVariable.color,padding:Do.editInputPadding,marginRight:Do.editInputMarginRight,fontFamily:Do.editInputFontFamily},"detected-row":{paddingTop:Do.detectedRowPaddingTop},"key-modal-request":{position:Do.addKeyCoverPosition,top:Do.addKeyCoverPositionPx,left:Do.addKeyCoverPositionPx,right:Do.addKeyCoverPositionPx,bottom:Do.addKeyCoverPositionPx,backgroundColor:Do.addKeyCoverBackground},"key-modal":{width:Do.addKeyModalWidth,backgroundColor:Qo.addKeyModal.background,marginLeft:Do.addKeyModalMargin,marginRight:Do.addKeyModalMargin,padding:Do.addKeyModalPadding,borderRadius:Do.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:Qo.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:Qo.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:Qo.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:Qo.addKeyModal.labelColor,fontSize:Do.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:Qo.editVariable.addIcon,fontSize:Do.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:Qo.ellipsisColor,fontSize:Do.ellipsisFontSize,lineHeight:Do.ellipsisLineHeight,cursor:Do.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:Qo.validationFailure.fontColor,backgroundColor:Qo.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:Qo.validationFailure.iconColor,fontSize:Do.iconFontSize,transform:"rotate(45deg)"}}};function $o(Ko,Qo,zo){return Ko||console.error("theme has not been set"),function(Vo){var Bo=No;return Vo!==!1&&Vo!=="none"||(Bo=Mo),Object(jo.createStyling)(Fo,{defaultBase16:Bo})(Vo)}(Ko)(Qo,zo)}var Lo=function(Ko){po(zo,Ko);var Qo=_o(zo);function zo(){return uo(this,zo),Qo.apply(this,arguments)}return fo(zo,[{key:"render",value:function(){var Vo=this.props,Bo=(Vo.rjvId,Vo.type_name),Xo=Vo.displayDataTypes,vs=Vo.theme;return Xo?So.a.createElement("span",Object.assign({className:"data-type-label"},$o(vs,"data-type-label")),Bo):null}}]),zo}(So.a.PureComponent),Ho=function(Ko){po(zo,Ko);var Qo=_o(zo);function zo(){return uo(this,zo),Qo.apply(this,arguments)}return fo(zo,[{key:"render",value:function(){var Vo=this.props;return So.a.createElement("div",$o(Vo.theme,"boolean"),So.a.createElement(Lo,Object.assign({type_name:"bool"},Vo)),Vo.value?"true":"false")}}]),zo}(So.a.PureComponent),qo=function(Ko){po(zo,Ko);var Qo=_o(zo);function zo(){return uo(this,zo),Qo.apply(this,arguments)}return fo(zo,[{key:"render",value:function(){var Vo=this.props;return So.a.createElement("div",$o(Vo.theme,"date"),So.a.createElement(Lo,Object.assign({type_name:"date"},Vo)),So.a.createElement("span",Object.assign({className:"date-value"},$o(Vo.theme,"date-value")),Vo.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),zo}(So.a.PureComponent),Uo=function(Ko){po(zo,Ko);var Qo=_o(zo);function zo(){return uo(this,zo),Qo.apply(this,arguments)}return fo(zo,[{key:"render",value:function(){var Vo=this.props;return So.a.createElement("div",$o(Vo.theme,"float"),So.a.createElement(Lo,Object.assign({type_name:"float"},Vo)),this.props.value)}}]),zo}(So.a.PureComponent);function Yo(Ko,Qo){(Qo==null||Qo>Ko.length)&&(Qo=Ko.length);for(var zo=0,Vo=new Array(Qo);zo"u"||Ko[Symbol.iterator]==null){if(Array.isArray(Ko)||(zo=Zo(Ko))||Qo&&Ko&&typeof Ko.length=="number"){zo&&(Ko=zo);var Vo=0,Bo=function(){};return{s:Bo,n:function(){return Vo>=Ko.length?{done:!0}:{done:!1,value:Ko[Vo++]}},e:function(ps){throw ps},f:Bo}}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 Xo,vs=!0,ys=!1;return{s:function(){zo=Ko[Symbol.iterator]()},n:function(){var ps=zo.next();return vs=ps.done,ps},e:function(ps){ys=!0,Xo=ps},f:function(){try{vs||zo.return==null||zo.return()}finally{if(ys)throw Xo}}}}function Ss(Ko){return function(Qo){if(Array.isArray(Qo))return Yo(Qo)}(Ko)||function(Qo){if(typeof Symbol<"u"&&Symbol.iterator in Object(Qo))return Array.from(Qo)}(Ko)||Zo(Ko)||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 As=io(46),Ns=new(io(47)).Dispatcher,ws=new(function(Ko){po(zo,Ko);var Qo=_o(zo);function zo(){var Vo;uo(this,zo);for(var Bo=arguments.length,Xo=new Array(Bo),vs=0;vsBo&&(ys.style.cursor="pointer",this.state.collapsed&&(vs=So.a.createElement("span",null,vs.substring(0,Bo),So.a.createElement("span",$o(Xo,"ellipsis")," ...")))),So.a.createElement("div",$o(Xo,"string"),So.a.createElement(Lo,Object.assign({type_name:"string"},Vo)),So.a.createElement("span",Object.assign({className:"string-value"},ys,{onClick:this.toggleCollapsed}),'"',vs,'"'))}}]),zo}(So.a.PureComponent),Js=function(Ko){po(zo,Ko);var Qo=_o(zo);function zo(){return uo(this,zo),Qo.apply(this,arguments)}return fo(zo,[{key:"render",value:function(){return So.a.createElement("div",$o(this.props.theme,"undefined"),"undefined")}}]),zo}(So.a.PureComponent);function Xs(){return(Xs=Object.assign||function(Ko){for(var Qo=1;Qo=0||(dp[Iu]=Bl[Iu]);return dp}(Ko,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),Us,Rl=Rs.value!==void 0,Ml=Object(Eo.useRef)(null),Ol=Xl(Ml,Qo),Cl=Object(Eo.useRef)(0),Ul=Object(Eo.useRef)(),fu=function(){var Bl=Ml.current,Eu=zo&&Ul.current?Ul.current:function(Yu){var kp=window.getComputedStyle(Yu);if(kp===null)return null;var fp,wu=(fp=kp,ks.reduce(function(Cp,hp){return Cp[hp]=fp[hp],Cp},{})),ep=wu.boxSizing;return ep===""?null:(Es&&ep==="border-box"&&(wu.width=parseFloat(wu.width)+parseFloat(wu.borderRightWidth)+parseFloat(wu.borderLeftWidth)+parseFloat(wu.paddingRight)+parseFloat(wu.paddingLeft)+"px"),{sizingStyle:wu,paddingSize:parseFloat(wu.paddingBottom)+parseFloat(wu.paddingTop),borderSize:parseFloat(wu.borderBottomWidth)+parseFloat(wu.borderTopWidth)})}(Bl);if(Eu){Ul.current=Eu;var Iu=function(Yu,kp,fp,wu){fp===void 0&&(fp=1),wu===void 0&&(wu=1/0),El||((El=document.createElement("textarea")).setAttribute("tab-index","-1"),El.setAttribute("aria-hidden","true"),xa(El)),El.parentNode===null&&document.body.appendChild(El);var ep=Yu.paddingSize,Cp=Yu.borderSize,hp=Yu.sizingStyle,wp=hp.boxSizing;Object.keys(hp).forEach(function(Op){var _p=Op;El.style[_p]=hp[_p]}),xa(El),El.value=kp;var pp=function(Op,_p){var xp=Op.scrollHeight;return _p.sizingStyle.boxSizing==="border-box"?xp+_p.borderSize:xp-_p.paddingSize}(El,Yu);El.value="x";var jp=El.scrollHeight-ep,bp=jp*fp;wp==="border-box"&&(bp=bp+ep+Cp),pp=Math.max(bp,pp);var Ap=jp*wu;return wp==="border-box"&&(Ap=Ap+ep+Cp),[pp=Math.min(Ap,pp),jp]}(Eu,Bl.value||Bl.placeholder||"x",Bo,Vo),zu=Iu[0],dp=Iu[1];Cl.current!==zu&&(Cl.current=zu,Bl.style.setProperty("height",zu+"px","important"),ps(zu,{rowHeight:dp}))}};return Object(Eo.useLayoutEffect)(fu),Us=Ll(fu),Object(Eo.useLayoutEffect)(function(){var Bl=function(Eu){Us.current(Eu)};return window.addEventListener("resize",Bl),function(){window.removeEventListener("resize",Bl)}},[]),Object(Eo.createElement)("textarea",Xs({},Rs,{onChange:function(Bl){Rl||fu(),vs(Bl)},ref:Ol}))},Os=Object(Eo.forwardRef)(bs);function Vs(Ko){Ko=Ko.trim();try{if((Ko=JSON.stringify(JSON.parse(Ko)))[0]==="[")return Ks("array",JSON.parse(Ko));if(Ko[0]==="{")return Ks("object",JSON.parse(Ko));if(Ko.match(/\-?\d+\.\d+/)&&Ko.match(/\-?\d+\.\d+/)[0]===Ko)return Ks("float",parseFloat(Ko));if(Ko.match(/\-?\d+e-\d+/)&&Ko.match(/\-?\d+e-\d+/)[0]===Ko)return Ks("float",Number(Ko));if(Ko.match(/\-?\d+/)&&Ko.match(/\-?\d+/)[0]===Ko)return Ks("integer",parseInt(Ko));if(Ko.match(/\-?\d+e\+\d+/)&&Ko.match(/\-?\d+e\+\d+/)[0]===Ko)return Ks("integer",Number(Ko))}catch{}switch(Ko=Ko.toLowerCase()){case"undefined":return Ks("undefined",void 0);case"nan":return Ks("nan",NaN);case"null":return Ks("null",null);case"true":return Ks("boolean",!0);case"false":return Ks("boolean",!1);default:if(Ko=Date.parse(Ko))return Ks("date",new Date(Ko))}return Ks(!1,null)}function Ks(Ko,Qo){return{type:Ko,value:Qo}}var Ms=function(Ko){po(zo,Ko);var Qo=_o(zo);function zo(){return uo(this,zo),Qo.apply(this,arguments)}return fo(zo,[{key:"render",value:function(){var Vo=this.props,Bo=Vo.style,Xo=Ao(Vo,["style"]);return So.a.createElement("span",Xo,So.a.createElement("svg",Object.assign({},Dl(Bo),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),So.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"})))}}]),zo}(So.a.PureComponent),Hs=function(Ko){po(zo,Ko);var Qo=_o(zo);function zo(){return uo(this,zo),Qo.apply(this,arguments)}return fo(zo,[{key:"render",value:function(){var Vo=this.props,Bo=Vo.style,Xo=Ao(Vo,["style"]);return So.a.createElement("span",Xo,So.a.createElement("svg",Object.assign({},Dl(Bo),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),So.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"})))}}]),zo}(So.a.PureComponent),Zs=function(Ko){po(zo,Ko);var Qo=_o(zo);function zo(){return uo(this,zo),Qo.apply(this,arguments)}return fo(zo,[{key:"render",value:function(){var Vo=this.props,Bo=Vo.style,Xo=Ao(Vo,["style"]),vs=Dl(Bo).style;return So.a.createElement("span",Xo,So.a.createElement("svg",{fill:vs.color,width:vs.height,height:vs.width,style:vs,viewBox:"0 0 1792 1792"},So.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"})))}}]),zo}(So.a.PureComponent),xl=function(Ko){po(zo,Ko);var Qo=_o(zo);function zo(){return uo(this,zo),Qo.apply(this,arguments)}return fo(zo,[{key:"render",value:function(){var Vo=this.props,Bo=Vo.style,Xo=Ao(Vo,["style"]),vs=Dl(Bo).style;return So.a.createElement("span",Xo,So.a.createElement("svg",{fill:vs.color,width:vs.height,height:vs.width,style:vs,viewBox:"0 0 1792 1792"},So.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"})))}}]),zo}(So.a.PureComponent),Sl=function(Ko){po(zo,Ko);var Qo=_o(zo);function zo(){return uo(this,zo),Qo.apply(this,arguments)}return fo(zo,[{key:"render",value:function(){var Vo=this.props,Bo=Vo.style,Xo=Ao(Vo,["style"]);return So.a.createElement("span",Xo,So.a.createElement("svg",{style:lo(lo({},Dl(Bo).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},So.a.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),zo}(So.a.PureComponent),$l=function(Ko){po(zo,Ko);var Qo=_o(zo);function zo(){return uo(this,zo),Qo.apply(this,arguments)}return fo(zo,[{key:"render",value:function(){var Vo=this.props,Bo=Vo.style,Xo=Ao(Vo,["style"]);return So.a.createElement("span",Xo,So.a.createElement("svg",{style:lo(lo({},Dl(Bo).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},So.a.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),zo}(So.a.PureComponent),ru=function(Ko){po(zo,Ko);var Qo=_o(zo);function zo(){return uo(this,zo),Qo.apply(this,arguments)}return fo(zo,[{key:"render",value:function(){var Vo=this.props,Bo=Vo.style,Xo=Ao(Vo,["style"]);return So.a.createElement("span",Xo,So.a.createElement("svg",Object.assign({},Dl(Bo),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),So.a.createElement("g",null,So.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"}))))}}]),zo}(So.a.PureComponent),au=function(Ko){po(zo,Ko);var Qo=_o(zo);function zo(){return uo(this,zo),Qo.apply(this,arguments)}return fo(zo,[{key:"render",value:function(){var Vo=this.props,Bo=Vo.style,Xo=Ao(Vo,["style"]);return So.a.createElement("span",Xo,So.a.createElement("svg",Object.assign({},Dl(Bo),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),So.a.createElement("g",null,So.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"}))))}}]),zo}(So.a.PureComponent),zl=function(Ko){po(zo,Ko);var Qo=_o(zo);function zo(){return uo(this,zo),Qo.apply(this,arguments)}return fo(zo,[{key:"render",value:function(){var Vo=this.props,Bo=Vo.style,Xo=Ao(Vo,["style"]);return So.a.createElement("span",Xo,So.a.createElement("svg",Object.assign({},Dl(Bo),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),So.a.createElement("g",null,So.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"}))))}}]),zo}(So.a.PureComponent),pu=function(Ko){po(zo,Ko);var Qo=_o(zo);function zo(){return uo(this,zo),Qo.apply(this,arguments)}return fo(zo,[{key:"render",value:function(){var Vo=this.props,Bo=Vo.style,Xo=Ao(Vo,["style"]);return So.a.createElement("span",Xo,So.a.createElement("svg",Object.assign({},Dl(Bo),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),So.a.createElement("g",null,So.a.createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}]),zo}(So.a.PureComponent),Su=function(Ko){po(zo,Ko);var Qo=_o(zo);function zo(){return uo(this,zo),Qo.apply(this,arguments)}return fo(zo,[{key:"render",value:function(){var Vo=this.props,Bo=Vo.style,Xo=Ao(Vo,["style"]);return So.a.createElement("span",Xo,So.a.createElement("svg",Object.assign({},Dl(Bo),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),So.a.createElement("g",null,So.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"}))))}}]),zo}(So.a.PureComponent),Zl=function(Ko){po(zo,Ko);var Qo=_o(zo);function zo(){return uo(this,zo),Qo.apply(this,arguments)}return fo(zo,[{key:"render",value:function(){var Vo=this.props,Bo=Vo.style,Xo=Ao(Vo,["style"]);return So.a.createElement("span",Xo,So.a.createElement("svg",Object.assign({},Dl(Bo),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),So.a.createElement("g",null,So.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"}))))}}]),zo}(So.a.PureComponent);function Dl(Ko){return Ko||(Ko={}),{style:lo(lo({verticalAlign:"middle"},Ko),{},{color:Ko.color?Ko.color:"#000000",height:"1em",width:"1em"})}}var gu=function(Ko){po(zo,Ko);var Qo=_o(zo);function zo(Vo){var Bo;return uo(this,zo),(Bo=Qo.call(this,Vo)).copiedTimer=null,Bo.handleCopy=function(){var Xo=document.createElement("textarea"),vs=Bo.props,ys=vs.clickCallback,ps=vs.src,Rs=vs.namespace;Xo.innerHTML=JSON.stringify(Bo.clipboardValue(ps),null," "),document.body.appendChild(Xo),Xo.select(),document.execCommand("copy"),document.body.removeChild(Xo),Bo.copiedTimer=setTimeout(function(){Bo.setState({copied:!1})},5500),Bo.setState({copied:!0},function(){typeof ys=="function"&&ys({src:ps,namespace:Rs,name:Rs[Rs.length-1]})})},Bo.getClippyIcon=function(){var Xo=Bo.props.theme;return Bo.state.copied?So.a.createElement("span",null,So.a.createElement(ru,Object.assign({className:"copy-icon"},$o(Xo,"copy-icon"))),So.a.createElement("span",$o(Xo,"copy-icon-copied"),"✔")):So.a.createElement(ru,Object.assign({className:"copy-icon"},$o(Xo,"copy-icon")))},Bo.clipboardValue=function(Xo){switch(Ro(Xo)){case"function":case"regexp":return Xo.toString();default:return Xo}},Bo.state={copied:!1},Bo}return fo(zo,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var Vo=this.props,Bo=(Vo.src,Vo.theme),Xo=Vo.hidden,vs=Vo.rowHovered,ys=$o(Bo,"copy-to-clipboard").style,ps="inline";return Xo&&(ps="none"),So.a.createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:vs?"inline-block":"none"}},So.a.createElement("span",{style:lo(lo({},ys),{},{display:ps}),onClick:this.handleCopy},this.getClippyIcon()))}}]),zo}(So.a.PureComponent),lu=function(Ko){po(zo,Ko);var Qo=_o(zo);function zo(Vo){var Bo;return uo(this,zo),(Bo=Qo.call(this,Vo)).getEditIcon=function(){var Xo=Bo.props,vs=Xo.variable,ys=Xo.theme;return So.a.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:Bo.state.hovered?"inline-block":"none"}},So.a.createElement(Su,Object.assign({className:"click-to-edit-icon"},$o(ys,"editVarIcon"),{onClick:function(){Bo.prepopInput(vs)}})))},Bo.prepopInput=function(Xo){if(Bo.props.onEdit!==!1){var vs=function(ps){var Rs;switch(Ro(ps)){case"undefined":Rs="undefined";break;case"nan":Rs="NaN";break;case"string":Rs=ps;break;case"date":case"function":case"regexp":Rs=ps.toString();break;default:try{Rs=JSON.stringify(ps,null," ")}catch{Rs=""}}return Rs}(Xo.value),ys=Vs(vs);Bo.setState({editMode:!0,editValue:vs,parsedInput:{type:ys.type,value:ys.value}})}},Bo.getRemoveIcon=function(){var Xo=Bo.props,vs=Xo.variable,ys=Xo.namespace,ps=Xo.theme,Rs=Xo.rjvId;return So.a.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:Bo.state.hovered?"inline-block":"none"}},So.a.createElement(au,Object.assign({className:"click-to-remove-icon"},$o(ps,"removeVarIcon"),{onClick:function(){Ns.dispatch({name:"VARIABLE_REMOVED",rjvId:Rs,data:{name:vs.name,namespace:ys,existing_value:vs.value,variable_removed:!0}})}})))},Bo.getValue=function(Xo,vs){var ys=!vs&&Xo.type,ps=bo(Bo).props;switch(ys){case!1:return Bo.getEditInput();case"string":return So.a.createElement(ga,Object.assign({value:Xo.value},ps));case"integer":return So.a.createElement(zs,Object.assign({value:Xo.value},ps));case"float":return So.a.createElement(Uo,Object.assign({value:Xo.value},ps));case"boolean":return So.a.createElement(Ho,Object.assign({value:Xo.value},ps));case"function":return So.a.createElement(Jo,Object.assign({value:Xo.value},ps));case"null":return So.a.createElement(Bs,ps);case"nan":return So.a.createElement(Cs,ps);case"undefined":return So.a.createElement(Js,ps);case"date":return So.a.createElement(qo,Object.assign({value:Xo.value},ps));case"regexp":return So.a.createElement(Ls,Object.assign({value:Xo.value},ps));default:return So.a.createElement("div",{className:"object-value"},JSON.stringify(Xo.value))}},Bo.getEditInput=function(){var Xo=Bo.props.theme,vs=Bo.state.editValue;return So.a.createElement("div",null,So.a.createElement(Os,Object.assign({type:"text",inputRef:function(ys){return ys&&ys.focus()},value:vs,className:"variable-editor",onChange:function(ys){var ps=ys.target.value,Rs=Vs(ps);Bo.setState({editValue:ps,parsedInput:{type:Rs.type,value:Rs.value}})},onKeyDown:function(ys){switch(ys.key){case"Escape":Bo.setState({editMode:!1,editValue:""});break;case"Enter":(ys.ctrlKey||ys.metaKey)&&Bo.submitEdit(!0)}ys.stopPropagation()},placeholder:"update this value",minRows:2},$o(Xo,"edit-input"))),So.a.createElement("div",$o(Xo,"edit-icon-container"),So.a.createElement(au,Object.assign({className:"edit-cancel"},$o(Xo,"cancel-icon"),{onClick:function(){Bo.setState({editMode:!1,editValue:""})}})),So.a.createElement(Zl,Object.assign({className:"edit-check string-value"},$o(Xo,"check-icon"),{onClick:function(){Bo.submitEdit()}})),So.a.createElement("div",null,Bo.showDetected())))},Bo.submitEdit=function(Xo){var vs=Bo.props,ys=vs.variable,ps=vs.namespace,Rs=vs.rjvId,Us=Bo.state,Rl=Us.editValue,Ml=Us.parsedInput,Ol=Rl;Xo&&Ml.type&&(Ol=Ml.value),Bo.setState({editMode:!1}),Ns.dispatch({name:"VARIABLE_UPDATED",rjvId:Rs,data:{name:ys.name,namespace:ps,existing_value:ys.value,new_value:Ol,variable_removed:!1}})},Bo.showDetected=function(){var Xo=Bo.props,vs=Xo.theme,ys=(Xo.variable,Xo.namespace,Xo.rjvId,Bo.state.parsedInput),ps=(ys.type,ys.value,Bo.getDetectedInput());if(ps)return So.a.createElement("div",null,So.a.createElement("div",$o(vs,"detected-row"),ps,So.a.createElement(Zl,{className:"edit-check detected",style:lo({verticalAlign:"top",paddingLeft:"3px"},$o(vs,"check-icon").style),onClick:function(){Bo.submitEdit(!0)}})))},Bo.getDetectedInput=function(){var Xo=Bo.state.parsedInput,vs=Xo.type,ys=Xo.value,ps=bo(Bo).props,Rs=ps.theme;if(vs!==!1)switch(vs.toLowerCase()){case"object":return So.a.createElement("span",null,So.a.createElement("span",{style:lo(lo({},$o(Rs,"brace").style),{},{cursor:"default"})},"{"),So.a.createElement("span",{style:lo(lo({},$o(Rs,"ellipsis").style),{},{cursor:"default"})},"..."),So.a.createElement("span",{style:lo(lo({},$o(Rs,"brace").style),{},{cursor:"default"})},"}"));case"array":return So.a.createElement("span",null,So.a.createElement("span",{style:lo(lo({},$o(Rs,"brace").style),{},{cursor:"default"})},"["),So.a.createElement("span",{style:lo(lo({},$o(Rs,"ellipsis").style),{},{cursor:"default"})},"..."),So.a.createElement("span",{style:lo(lo({},$o(Rs,"brace").style),{},{cursor:"default"})},"]"));case"string":return So.a.createElement(ga,Object.assign({value:ys},ps));case"integer":return So.a.createElement(zs,Object.assign({value:ys},ps));case"float":return So.a.createElement(Uo,Object.assign({value:ys},ps));case"boolean":return So.a.createElement(Ho,Object.assign({value:ys},ps));case"function":return So.a.createElement(Jo,Object.assign({value:ys},ps));case"null":return So.a.createElement(Bs,ps);case"nan":return So.a.createElement(Cs,ps);case"undefined":return So.a.createElement(Js,ps);case"date":return So.a.createElement(qo,Object.assign({value:new Date(ys)},ps))}},Bo.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},Bo}return fo(zo,[{key:"render",value:function(){var Vo=this,Bo=this.props,Xo=Bo.variable,vs=Bo.singleIndent,ys=Bo.type,ps=Bo.theme,Rs=Bo.namespace,Us=Bo.indentWidth,Rl=Bo.enableClipboard,Ml=Bo.onEdit,Ol=Bo.onDelete,Cl=Bo.onSelect,Ul=Bo.displayArrayKey,fu=Bo.quotesOnKeys,Bl=this.state.editMode;return So.a.createElement("div",Object.assign({},$o(ps,"objectKeyVal",{paddingLeft:Us*vs}),{onMouseEnter:function(){return Vo.setState(lo(lo({},Vo.state),{},{hovered:!0}))},onMouseLeave:function(){return Vo.setState(lo(lo({},Vo.state),{},{hovered:!1}))},className:"variable-row",key:Xo.name}),ys=="array"?Ul?So.a.createElement("span",Object.assign({},$o(ps,"array-key"),{key:Xo.name+"_"+Rs}),Xo.name,So.a.createElement("div",$o(ps,"colon"),":")):null:So.a.createElement("span",null,So.a.createElement("span",Object.assign({},$o(ps,"object-name"),{className:"object-key",key:Xo.name+"_"+Rs}),!!fu&&So.a.createElement("span",{style:{verticalAlign:"top"}},'"'),So.a.createElement("span",{style:{display:"inline-block"}},Xo.name),!!fu&&So.a.createElement("span",{style:{verticalAlign:"top"}},'"')),So.a.createElement("span",$o(ps,"colon"),":")),So.a.createElement("div",Object.assign({className:"variable-value",onClick:Cl===!1&&Ml===!1?null:function(Eu){var Iu=Ss(Rs);(Eu.ctrlKey||Eu.metaKey)&&Ml!==!1?Vo.prepopInput(Xo):Cl!==!1&&(Iu.shift(),Cl(lo(lo({},Xo),{},{namespace:Iu})))}},$o(ps,"variableValue",{cursor:Cl===!1?"default":"pointer"})),this.getValue(Xo,Bl)),Rl?So.a.createElement(gu,{rowHovered:this.state.hovered,hidden:Bl,src:Xo.value,clickCallback:Rl,theme:ps,namespace:[].concat(Ss(Rs),[Xo.name])}):null,Ml!==!1&&Bl==0?this.getEditIcon():null,Ol!==!1&&Bl==0?this.getRemoveIcon():null)}}]),zo}(So.a.PureComponent),mu=function(Ko){po(zo,Ko);var Qo=_o(zo);function zo(){var Vo;uo(this,zo);for(var Bo=arguments.length,Xo=new Array(Bo),vs=0;vs0?Rl:null,namespace:Us.splice(0,Us.length-1),existing_value:Ml,variable_removed:!1,key_name:null};Ro(Ml)==="object"?Ns.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:Ol,data:Ul}):Ns.dispatch({name:"VARIABLE_ADDED",rjvId:Ol,data:lo(lo({},Ul),{},{new_value:[].concat(Ss(Ml),[null])})})}})))},Vo.getRemoveObject=function(ys){var ps=Vo.props,Rs=ps.theme,Us=(ps.hover,ps.namespace),Rl=ps.name,Ml=ps.src,Ol=ps.rjvId;if(Us.length!==1)return So.a.createElement("span",{className:"click-to-remove",style:{display:ys?"inline-block":"none"}},So.a.createElement(au,Object.assign({className:"click-to-remove-icon"},$o(Rs,"removeVarIcon"),{onClick:function(){Ns.dispatch({name:"VARIABLE_REMOVED",rjvId:Ol,data:{name:Rl,namespace:Us.splice(0,Us.length-1),existing_value:Ml,variable_removed:!0}})}})))},Vo.render=function(){var ys=Vo.props,ps=ys.theme,Rs=ys.onDelete,Us=ys.onAdd,Rl=ys.enableClipboard,Ml=ys.src,Ol=ys.namespace,Cl=ys.rowHovered;return So.a.createElement("div",Object.assign({},$o(ps,"object-meta-data"),{className:"object-meta-data",onClick:function(Ul){Ul.stopPropagation()}}),Vo.getObjectSize(),Rl?So.a.createElement(gu,{rowHovered:Cl,clickCallback:Rl,src:Ml,theme:ps,namespace:Ol}):null,Us!==!1?Vo.getAddAttribute(Cl):null,Rs!==!1?Vo.getRemoveObject(Cl):null)},Vo}return zo}(So.a.PureComponent);function ou(Ko){var Qo=Ko.parent_type,zo=Ko.namespace,Vo=Ko.quotesOnKeys,Bo=Ko.theme,Xo=Ko.jsvRoot,vs=Ko.name,ys=Ko.displayArrayKey,ps=Ko.name?Ko.name:"";return!Xo||vs!==!1&&vs!==null?Qo=="array"?ys?So.a.createElement("span",Object.assign({},$o(Bo,"array-key"),{key:zo}),So.a.createElement("span",{className:"array-key"},ps),So.a.createElement("span",$o(Bo,"colon"),":")):So.a.createElement("span",null):So.a.createElement("span",Object.assign({},$o(Bo,"object-name"),{key:zo}),So.a.createElement("span",{className:"object-key"},Vo&&So.a.createElement("span",{style:{verticalAlign:"top"}},'"'),So.a.createElement("span",null,ps),Vo&&So.a.createElement("span",{style:{verticalAlign:"top"}},'"')),So.a.createElement("span",$o(Bo,"colon"),":")):So.a.createElement("span",null)}function Fl(Ko){var Qo=Ko.theme;switch(Ko.iconStyle){case"triangle":return So.a.createElement($l,Object.assign({},$o(Qo,"expanded-icon"),{className:"expanded-icon"}));case"square":return So.a.createElement(Zs,Object.assign({},$o(Qo,"expanded-icon"),{className:"expanded-icon"}));default:return So.a.createElement(Ms,Object.assign({},$o(Qo,"expanded-icon"),{className:"expanded-icon"}))}}function yl(Ko){var Qo=Ko.theme;switch(Ko.iconStyle){case"triangle":return So.a.createElement(Sl,Object.assign({},$o(Qo,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return So.a.createElement(xl,Object.assign({},$o(Qo,"collapsed-icon"),{className:"collapsed-icon"}));default:return So.a.createElement(Hs,Object.assign({},$o(Qo,"collapsed-icon"),{className:"collapsed-icon"}))}}var Ys=function(Ko){po(zo,Ko);var Qo=_o(zo);function zo(Vo){var Bo;return uo(this,zo),(Bo=Qo.call(this,Vo)).toggleCollapsed=function(Xo){var vs=[];for(var ys in Bo.state.expanded)vs.push(Bo.state.expanded[ys]);vs[Xo]=!vs[Xo],Bo.setState({expanded:vs})},Bo.state={expanded:[]},Bo}return fo(zo,[{key:"getExpandedIcon",value:function(Vo){var Bo=this.props,Xo=Bo.theme,vs=Bo.iconStyle;return this.state.expanded[Vo]?So.a.createElement(Fl,{theme:Xo,iconStyle:vs}):So.a.createElement(yl,{theme:Xo,iconStyle:vs})}},{key:"render",value:function(){var Vo=this,Bo=this.props,Xo=Bo.src,vs=Bo.groupArraysAfterLength,ys=(Bo.depth,Bo.name),ps=Bo.theme,Rs=Bo.jsvRoot,Us=Bo.namespace,Rl=(Bo.parent_type,Ao(Bo,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),Ml=0,Ol=5*this.props.indentWidth;Rs||(Ml=5*this.props.indentWidth);var Cl=vs,Ul=Math.ceil(Xo.length/Cl);return So.a.createElement("div",Object.assign({className:"object-key-val"},$o(ps,Rs?"jsv-root":"objectKeyVal",{paddingLeft:Ml})),So.a.createElement(ou,this.props),So.a.createElement("span",null,So.a.createElement(mu,Object.assign({size:Xo.length},this.props))),Ss(Array(Ul)).map(function(fu,Bl){return So.a.createElement("div",Object.assign({key:Bl,className:"object-key-val array-group"},$o(ps,"objectKeyVal",{marginLeft:6,paddingLeft:Ol})),So.a.createElement("span",$o(ps,"brace-row"),So.a.createElement("div",Object.assign({className:"icon-container"},$o(ps,"icon-container"),{onClick:function(Eu){Vo.toggleCollapsed(Bl)}}),Vo.getExpandedIcon(Bl)),Vo.state.expanded[Bl]?So.a.createElement(du,Object.assign({key:ys+Bl,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:Cl,index_offset:Bl*Cl,src:Xo.slice(Bl*Cl,Bl*Cl+Cl),namespace:Us,type:"array",parent_type:"array_group",theme:ps},Rl)):So.a.createElement("span",Object.assign({},$o(ps,"brace"),{onClick:function(Eu){Vo.toggleCollapsed(Bl)},className:"array-group-brace"}),"[",So.a.createElement("div",Object.assign({},$o(ps,"array-group-meta-data"),{className:"array-group-meta-data"}),So.a.createElement("span",Object.assign({className:"object-size"},$o(ps,"object-size")),Bl*Cl," - ",Bl*Cl+Cl>Xo.length?Xo.length:Bl*Cl+Cl)),"]")))}))}}]),zo}(So.a.PureComponent),vu=function(Ko){po(zo,Ko);var Qo=_o(zo);function zo(Vo){var Bo;uo(this,zo),(Bo=Qo.call(this,Vo)).toggleCollapsed=function(){Bo.setState({expanded:!Bo.state.expanded},function(){Ds.set(Bo.props.rjvId,Bo.props.namespace,"expanded",Bo.state.expanded)})},Bo.getObjectContent=function(vs,ys,ps){return So.a.createElement("div",{className:"pushed-content object-container"},So.a.createElement("div",Object.assign({className:"object-content"},$o(Bo.props.theme,"pushed-content")),Bo.renderObjectContents(ys,ps)))},Bo.getEllipsis=function(){return Bo.state.size===0?null:So.a.createElement("div",Object.assign({},$o(Bo.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:Bo.toggleCollapsed}),"...")},Bo.getObjectMetaData=function(vs){var ys=Bo.props,ps=(ys.rjvId,ys.theme,Bo.state),Rs=ps.size,Us=ps.hovered;return So.a.createElement(mu,Object.assign({rowHovered:Us,size:Rs},Bo.props))},Bo.renderObjectContents=function(vs,ys){var ps,Rs=Bo.props,Us=Rs.depth,Rl=Rs.parent_type,Ml=Rs.index_offset,Ol=Rs.groupArraysAfterLength,Cl=Rs.namespace,Ul=Bo.state.object_type,fu=[],Bl=Object.keys(vs||{});return Bo.props.sortKeys&&Ul!=="array"&&(Bl=Bl.sort()),Bl.forEach(function(Eu){if(ps=new Nu(Eu,vs[Eu]),Rl==="array_group"&&Ml&&(ps.name=parseInt(ps.name)+Ml),vs.hasOwnProperty(Eu))if(ps.type==="object")fu.push(So.a.createElement(du,Object.assign({key:ps.name,depth:Us+1,name:ps.name,src:ps.value,namespace:Cl.concat(ps.name),parent_type:Ul},ys)));else if(ps.type==="array"){var Iu=du;Ol&&ps.value.length>Ol&&(Iu=Ys),fu.push(So.a.createElement(Iu,Object.assign({key:ps.name,depth:Us+1,name:ps.name,src:ps.value,namespace:Cl.concat(ps.name),type:"array",parent_type:Ul},ys)))}else fu.push(So.a.createElement(lu,Object.assign({key:ps.name+"_"+Cl,variable:ps,singleIndent:5,namespace:Cl,type:Bo.props.type},ys)))}),fu};var Xo=zo.getState(Vo);return Bo.state=lo(lo({},Xo),{},{prevProps:{}}),Bo}return fo(zo,[{key:"getBraceStart",value:function(Vo,Bo){var Xo=this,vs=this.props,ys=vs.src,ps=vs.theme,Rs=vs.iconStyle;if(vs.parent_type==="array_group")return So.a.createElement("span",null,So.a.createElement("span",$o(ps,"brace"),Vo==="array"?"[":"{"),Bo?this.getObjectMetaData(ys):null);var Us=Bo?Fl:yl;return So.a.createElement("span",null,So.a.createElement("span",Object.assign({onClick:function(Rl){Xo.toggleCollapsed()}},$o(ps,"brace-row")),So.a.createElement("div",Object.assign({className:"icon-container"},$o(ps,"icon-container")),So.a.createElement(Us,{theme:ps,iconStyle:Rs})),So.a.createElement(ou,this.props),So.a.createElement("span",$o(ps,"brace"),Vo==="array"?"[":"{")),Bo?this.getObjectMetaData(ys):null)}},{key:"render",value:function(){var Vo=this,Bo=this.props,Xo=Bo.depth,vs=Bo.src,ys=(Bo.namespace,Bo.name,Bo.type,Bo.parent_type),ps=Bo.theme,Rs=Bo.jsvRoot,Us=Bo.iconStyle,Rl=Ao(Bo,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),Ml=this.state,Ol=Ml.object_type,Cl=Ml.expanded,Ul={};return Rs||ys==="array_group"?ys==="array_group"&&(Ul.borderLeft=0,Ul.display="inline"):Ul.paddingLeft=5*this.props.indentWidth,So.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return Vo.setState(lo(lo({},Vo.state),{},{hovered:!0}))},onMouseLeave:function(){return Vo.setState(lo(lo({},Vo.state),{},{hovered:!1}))}},$o(ps,Rs?"jsv-root":"objectKeyVal",Ul)),this.getBraceStart(Ol,Cl),Cl?this.getObjectContent(Xo,vs,lo({theme:ps,iconStyle:Us},Rl)):this.getEllipsis(),So.a.createElement("span",{className:"brace-row"},So.a.createElement("span",{style:lo(lo({},$o(ps,"brace").style),{},{paddingLeft:Cl?"3px":"0px"})},Ol==="array"?"]":"}"),Cl?null:this.getObjectMetaData(vs)))}}],[{key:"getDerivedStateFromProps",value:function(Vo,Bo){var Xo=Bo.prevProps;return Vo.src!==Xo.src||Vo.collapsed!==Xo.collapsed||Vo.name!==Xo.name||Vo.namespace!==Xo.namespace||Vo.rjvId!==Xo.rjvId?lo(lo({},zo.getState(Vo)),{},{prevProps:Vo}):null}}]),zo}(So.a.PureComponent);vu.getState=function(Ko){var Qo=Object.keys(Ko.src).length,zo=(Ko.collapsed===!1||Ko.collapsed!==!0&&Ko.collapsed>Ko.depth)&&(!Ko.shouldCollapse||Ko.shouldCollapse({name:Ko.name,src:Ko.src,type:Ro(Ko.src),namespace:Ko.namespace})===!1)&&Qo!==0;return{expanded:Ds.get(Ko.rjvId,Ko.namespace,"expanded",zo),object_type:Ko.type==="array"?"array":"object",parent_type:Ko.type==="array"?"array":"object",size:Qo,hovered:!1}};var Nu=function Ko(Qo,zo){uo(this,Ko),this.name=Qo,this.value=zo,this.type=Ro(zo)};Oo(vu);var du=vu,cp=function(Ko){po(zo,Ko);var Qo=_o(zo);function zo(){var Vo;uo(this,zo);for(var Bo=arguments.length,Xo=new Array(Bo),vs=0;vsys.groupArraysAfterLength&&(Rs=Ys),So.a.createElement("div",{className:"pretty-json-container object-container"},So.a.createElement("div",{className:"object-content"},So.a.createElement(Rs,Object.assign({namespace:ps,depth:0,jsvRoot:!0},ys))))},Vo}return zo}(So.a.PureComponent),qu=function(Ko){po(zo,Ko);var Qo=_o(zo);function zo(Vo){var Bo;return uo(this,zo),(Bo=Qo.call(this,Vo)).closeModal=function(){Ns.dispatch({rjvId:Bo.props.rjvId,name:"RESET"})},Bo.submit=function(){Bo.props.submit(Bo.state.input)},Bo.state={input:Vo.input?Vo.input:""},Bo}return fo(zo,[{key:"render",value:function(){var Vo=this,Bo=this.props,Xo=Bo.theme,vs=Bo.rjvId,ys=Bo.isValid,ps=this.state.input,Rs=ys(ps);return So.a.createElement("div",Object.assign({className:"key-modal-request"},$o(Xo,"key-modal-request"),{onClick:this.closeModal}),So.a.createElement("div",Object.assign({},$o(Xo,"key-modal"),{onClick:function(Us){Us.stopPropagation()}}),So.a.createElement("div",$o(Xo,"key-modal-label"),"Key Name:"),So.a.createElement("div",{style:{position:"relative"}},So.a.createElement("input",Object.assign({},$o(Xo,"key-modal-input"),{className:"key-modal-input",ref:function(Us){return Us&&Us.focus()},spellCheck:!1,value:ps,placeholder:"...",onChange:function(Us){Vo.setState({input:Us.target.value})},onKeyPress:function(Us){Rs&&Us.key==="Enter"?Vo.submit():Us.key==="Escape"&&Vo.closeModal()}})),Rs?So.a.createElement(Zl,Object.assign({},$o(Xo,"key-modal-submit"),{className:"key-modal-submit",onClick:function(Us){return Vo.submit()}})):null),So.a.createElement("span",$o(Xo,"key-modal-cancel"),So.a.createElement(pu,Object.assign({},$o(Xo,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){Ns.dispatch({rjvId:vs,name:"RESET"})}})))))}}]),zo}(So.a.PureComponent),Ru=function(Ko){po(zo,Ko);var Qo=_o(zo);function zo(){var Vo;uo(this,zo);for(var Bo=arguments.length,Xo=new Array(Bo),vs=0;vs=0)&&(ro[oo]=eo[oo]);return ro}function _objectWithoutProperties(eo,to){if(eo==null)return{};var ro=_objectWithoutPropertiesLoose$1(eo,to),no,oo;if(Object.getOwnPropertySymbols){var io=Object.getOwnPropertySymbols(eo);for(oo=0;oo=0)&&Object.prototype.propertyIsEnumerable.call(eo,no)&&(ro[no]=eo[no])}return ro}function _slicedToArray(eo,to){return _arrayWithHoles(eo)||_iterableToArrayLimit(eo,to)||_unsupportedIterableToArray(eo,to)||_nonIterableRest()}function _arrayWithHoles(eo){if(Array.isArray(eo))return eo}function _iterableToArrayLimit(eo,to){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(eo)))){var ro=[],no=!0,oo=!1,io=void 0;try{for(var so=eo[Symbol.iterator](),ao;!(no=(ao=so.next()).done)&&(ro.push(ao.value),!(to&&ro.length===to));no=!0);}catch(lo){oo=!0,io=lo}finally{try{!no&&so.return!=null&&so.return()}finally{if(oo)throw io}}return ro}}function _unsupportedIterableToArray(eo,to){if(eo){if(typeof eo=="string")return _arrayLikeToArray(eo,to);var ro=Object.prototype.toString.call(eo).slice(8,-1);if(ro==="Object"&&eo.constructor&&(ro=eo.constructor.name),ro==="Map"||ro==="Set")return Array.from(eo);if(ro==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ro))return _arrayLikeToArray(eo,to)}}function _arrayLikeToArray(eo,to){(to==null||to>eo.length)&&(to=eo.length);for(var ro=0,no=new Array(to);ro=eo.length?eo.apply(this,oo):function(){for(var so=arguments.length,ao=new Array(so),lo=0;lo1&&arguments[1]!==void 0?arguments[1]:{};validators$1.initial(eo),validators$1.handler(to);var ro={current:eo},no=curry$1(didStateUpdate)(ro,to),oo=curry$1(updateState)(ro),io=curry$1(validators$1.changes)(eo),so=curry$1(extractChanges)(ro);function ao(){var uo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(co){return co};return validators$1.selector(uo),uo(ro.current)}function lo(uo){compose$1(no,oo,io,so)(uo)}return[ao,lo]}function extractChanges(eo,to){return isFunction(to)?to(eo.current):to}function updateState(eo,to){return eo.current=_objectSpread2(_objectSpread2({},eo.current),to),to}function didStateUpdate(eo,to,ro){return isFunction(to)?to(eo.current):Object.keys(ro).forEach(function(no){var oo;return(oo=to[no])===null||oo===void 0?void 0:oo.call(to,eo.current[no])}),ro}var index={create},config$2={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function curry(eo){return function to(){for(var ro=this,no=arguments.length,oo=new Array(no),io=0;io=eo.length?eo.apply(this,oo):function(){for(var so=arguments.length,ao=new Array(so),lo=0;lo{no.current=!1}:eo,to)}var l$4=he$1;function D$3(){}function h$4(eo,to,ro,no){return De$1(eo,no)||be$1(eo,to,ro,no)}function De$1(eo,to){return eo.editor.getModel(te$1(eo,to))}function be$1(eo,to,ro,no){return eo.editor.createModel(to,ro,no?te$1(eo,no):void 0)}function te$1(eo,to){return eo.Uri.parse(to)}function Oe$1({original:eo,modified:to,language:ro,originalLanguage:no,modifiedLanguage:oo,originalModelPath:io,modifiedModelPath:so,keepCurrentOriginalModel:ao=!1,keepCurrentModifiedModel:lo=!1,theme:uo="light",loading:co="Loading...",options:fo={},height:ho="100%",width:po="100%",className:go,wrapperProps:vo={},beforeMount:bo=D$3,onMount:xo=D$3}){let[_o,Eo]=reactExports.useState(!1),[So,To]=reactExports.useState(!0),wo=reactExports.useRef(null),Co=reactExports.useRef(null),Oo=reactExports.useRef(null),Ao=reactExports.useRef(xo),Ro=reactExports.useRef(bo),No=reactExports.useRef(!1);k$3(()=>{let Fo=loader.init();return Fo.then($o=>(Co.current=$o)&&To(!1)).catch($o=>($o==null?void 0:$o.type)!=="cancelation"&&console.error("Monaco initialization: error:",$o)),()=>wo.current?jo():Fo.cancel()}),l$4(()=>{if(wo.current&&Co.current){let Fo=wo.current.getOriginalEditor(),$o=h$4(Co.current,eo||"",no||ro||"text",io||"");$o!==Fo.getModel()&&Fo.setModel($o)}},[io],_o),l$4(()=>{if(wo.current&&Co.current){let Fo=wo.current.getModifiedEditor(),$o=h$4(Co.current,to||"",oo||ro||"text",so||"");$o!==Fo.getModel()&&Fo.setModel($o)}},[so],_o),l$4(()=>{let Fo=wo.current.getModifiedEditor();Fo.getOption(Co.current.editor.EditorOption.readOnly)?Fo.setValue(to||""):to!==Fo.getValue()&&(Fo.executeEdits("",[{range:Fo.getModel().getFullModelRange(),text:to||"",forceMoveMarkers:!0}]),Fo.pushUndoStop())},[to],_o),l$4(()=>{var Fo,$o;($o=(Fo=wo.current)==null?void 0:Fo.getModel())==null||$o.original.setValue(eo||"")},[eo],_o),l$4(()=>{let{original:Fo,modified:$o}=wo.current.getModel();Co.current.editor.setModelLanguage(Fo,no||ro||"text"),Co.current.editor.setModelLanguage($o,oo||ro||"text")},[ro,no,oo],_o),l$4(()=>{var Fo;(Fo=Co.current)==null||Fo.editor.setTheme(uo)},[uo],_o),l$4(()=>{var Fo;(Fo=wo.current)==null||Fo.updateOptions(fo)},[fo],_o);let Mo=reactExports.useCallback(()=>{var Lo;if(!Co.current)return;Ro.current(Co.current);let Fo=h$4(Co.current,eo||"",no||ro||"text",io||""),$o=h$4(Co.current,to||"",oo||ro||"text",so||"");(Lo=wo.current)==null||Lo.setModel({original:Fo,modified:$o})},[ro,to,oo,eo,no,io,so]),Do=reactExports.useCallback(()=>{var Fo;!No.current&&Oo.current&&(wo.current=Co.current.editor.createDiffEditor(Oo.current,{automaticLayout:!0,...fo}),Mo(),(Fo=Co.current)==null||Fo.editor.setTheme(uo),Eo(!0),No.current=!0)},[fo,uo,Mo]);reactExports.useEffect(()=>{_o&&Ao.current(wo.current,Co.current)},[_o]),reactExports.useEffect(()=>{!So&&!_o&&Do()},[So,_o,Do]);function jo(){var $o,Lo,Ho,qo;let Fo=($o=wo.current)==null?void 0:$o.getModel();ao||((Lo=Fo==null?void 0:Fo.original)==null||Lo.dispose()),lo||((Ho=Fo==null?void 0:Fo.modified)==null||Ho.dispose()),(qo=wo.current)==null||qo.dispose()}return React.createElement(H$2,{width:po,height:ho,isEditorReady:_o,loading:co,_ref:Oo,className:go,wrapperProps:vo})}var ie$3=Oe$1;reactExports.memo(ie$3);function He$1(eo){let to=reactExports.useRef();return reactExports.useEffect(()=>{to.current=eo},[eo]),to.current}var se$1=He$1,_$6=new Map;function Ve$1({defaultValue:eo,defaultLanguage:to,defaultPath:ro,value:no,language:oo,path:io,theme:so="light",line:ao,loading:lo="Loading...",options:uo={},overrideServices:co={},saveViewState:fo=!0,keepCurrentModel:ho=!1,width:po="100%",height:go="100%",className:vo,wrapperProps:bo={},beforeMount:xo=D$3,onMount:_o=D$3,onChange:Eo,onValidate:So=D$3}){let[To,wo]=reactExports.useState(!1),[Co,Oo]=reactExports.useState(!0),Ao=reactExports.useRef(null),Ro=reactExports.useRef(null),No=reactExports.useRef(null),Mo=reactExports.useRef(_o),Do=reactExports.useRef(xo),jo=reactExports.useRef(),Fo=reactExports.useRef(no),$o=se$1(io),Lo=reactExports.useRef(!1),Ho=reactExports.useRef(!1);k$3(()=>{let Yo=loader.init();return Yo.then(Zo=>(Ao.current=Zo)&&Oo(!1)).catch(Zo=>(Zo==null?void 0:Zo.type)!=="cancelation"&&console.error("Monaco initialization: error:",Zo)),()=>Ro.current?Uo():Yo.cancel()}),l$4(()=>{var Zo,_s,Ss,As;let Yo=h$4(Ao.current,eo||no||"",to||oo||"",io||ro||"");Yo!==((Zo=Ro.current)==null?void 0:Zo.getModel())&&(fo&&_$6.set($o,(_s=Ro.current)==null?void 0:_s.saveViewState()),(Ss=Ro.current)==null||Ss.setModel(Yo),fo&&((As=Ro.current)==null||As.restoreViewState(_$6.get(io))))},[io],To),l$4(()=>{var Yo;(Yo=Ro.current)==null||Yo.updateOptions(uo)},[uo],To),l$4(()=>{!Ro.current||no===void 0||(Ro.current.getOption(Ao.current.editor.EditorOption.readOnly)?Ro.current.setValue(no):no!==Ro.current.getValue()&&(Ho.current=!0,Ro.current.executeEdits("",[{range:Ro.current.getModel().getFullModelRange(),text:no,forceMoveMarkers:!0}]),Ro.current.pushUndoStop(),Ho.current=!1))},[no],To),l$4(()=>{var Zo,_s;let Yo=(Zo=Ro.current)==null?void 0:Zo.getModel();Yo&&oo&&((_s=Ao.current)==null||_s.editor.setModelLanguage(Yo,oo))},[oo],To),l$4(()=>{var Yo;ao!==void 0&&((Yo=Ro.current)==null||Yo.revealLine(ao))},[ao],To),l$4(()=>{var Yo;(Yo=Ao.current)==null||Yo.editor.setTheme(so)},[so],To);let qo=reactExports.useCallback(()=>{var Yo;if(!(!No.current||!Ao.current)&&!Lo.current){Do.current(Ao.current);let Zo=io||ro,_s=h$4(Ao.current,no||eo||"",to||oo||"",Zo||"");Ro.current=(Yo=Ao.current)==null?void 0:Yo.editor.create(No.current,{model:_s,automaticLayout:!0,...uo},co),fo&&Ro.current.restoreViewState(_$6.get(Zo)),Ao.current.editor.setTheme(so),ao!==void 0&&Ro.current.revealLine(ao),wo(!0),Lo.current=!0}},[eo,to,ro,no,oo,io,uo,co,fo,so,ao]);reactExports.useEffect(()=>{To&&Mo.current(Ro.current,Ao.current)},[To]),reactExports.useEffect(()=>{!Co&&!To&&qo()},[Co,To,qo]),Fo.current=no,reactExports.useEffect(()=>{var Yo,Zo;To&&Eo&&((Yo=jo.current)==null||Yo.dispose(),jo.current=(Zo=Ro.current)==null?void 0:Zo.onDidChangeModelContent(_s=>{Ho.current||Eo(Ro.current.getValue(),_s)}))},[To,Eo]),reactExports.useEffect(()=>{if(To){let Yo=Ao.current.editor.onDidChangeMarkers(Zo=>{var Ss;let _s=(Ss=Ro.current.getModel())==null?void 0:Ss.uri;if(_s&&Zo.find(As=>As.path===_s.path)){let As=Ao.current.editor.getModelMarkers({resource:_s});So==null||So(As)}});return()=>{Yo==null||Yo.dispose()}}return()=>{}},[To,So]);function Uo(){var Yo,Zo;(Yo=jo.current)==null||Yo.dispose(),ho?fo&&_$6.set(io,Ro.current.saveViewState()):(Zo=Ro.current.getModel())==null||Zo.dispose(),Ro.current.dispose()}return React.createElement(H$2,{width:po,height:go,isEditorReady:To,loading:lo,_ref:No,className:vo,wrapperProps:bo})}var fe$1=Ve$1,de$1=reactExports.memo(fe$1),Ft$1=de$1;const JinjaSyntaxHighlighter=({value:eo,theme:to,onMount:ro})=>jsxRuntimeExports.jsx(Ft$1,{value:eo,theme:to,options:{readOnly:!0,minimap:{enabled:!1}},defaultLanguage:"jinja2",onMount:(no,oo)=>{oo.languages.register({id:"jinja2"}),oo.languages.setLanguageConfiguration("jinja2",{comments:{blockComment:["{#","#}"]},brackets:[["{#","#}"],["{%","%}"],["{{","}}"],["{","}"]],folding:{markers:{start:/\{%\s*(block|for|if)/,end:/\{%\s*end(block|for|if)/}}}),oo.languages.setMonarchTokensProvider("jinja2",{tokenizer:{root:[[/\{\{/,"delimiter"],[/\}\}/,"delimiter"],[/\{#/,"comment"],[/#\}/,"comment"],[/\{%/,"control"],[/%\}/,"control"],[/\b(if|else|elif|endif|for|endfor|set|extends|include|block|endblock|macro|endmacro)\b/,"keyword"],[/\b(length|list|lower|upper|trim|truncate|replace|round|urlencode|urlize)\b/,"filter"],[/\b(\+|-|\*|\/|%|\*\*|\/\/)\b/,"operator"],[/\b(\d+|\d*\.\d+)\b/,"number"],[/(^user:|^# user:|^system:|^# system:|^assistant:|^# assistant:)/,"keyword"]]}}),ro==null||ro(no)}}),locStringsInjectionToken=createInjectionToken("locStrings",{}),useLocStrings=()=>{const[eo]=useInjected(locStringsInjectionToken);return eo};var BuildInEventName=(eo=>(eo.exception="exception",eo["function.inputs"]="promptflow.function.inputs",eo["function.output"]="promptflow.function.output",eo["embedding.embeddings"]="promptflow.embedding.embeddings",eo["retrieval.query"]="promptflow.retrieval.query",eo["retrieval.documents"]="promptflow.retrieval.documents",eo["llm.generated_message"]="promptflow.llm.generated_message",eo["prompt.template"]="promptflow.prompt.template",eo))(BuildInEventName||{});const EventNameToAttribute={"promptflow.function.inputs":"inputs","promptflow.function.output":"output"},safeJSONParse=eo=>{try{return JSON.parse(eo)}catch{return eo}};function formatDecimal(eo){return Math.abs(eo=Math.round(eo))>=1e21?eo.toLocaleString("en").replace(/,/g,""):eo.toString(10)}function formatDecimalParts(eo,to){if((ro=(eo=to?eo.toExponential(to-1):eo.toExponential()).indexOf("e"))<0)return null;var ro,no=eo.slice(0,ro);return[no.length>1?no[0]+no.slice(2):no,+eo.slice(ro+1)]}function exponent(eo){return eo=formatDecimalParts(Math.abs(eo)),eo?eo[1]:NaN}function formatGroup(eo,to){return function(ro,no){for(var oo=ro.length,io=[],so=0,ao=eo[0],lo=0;oo>0&&ao>0&&(lo+ao+1>no&&(ao=Math.max(1,no-lo)),io.push(ro.substring(oo-=ao,oo+ao)),!((lo+=ao+1)>no));)ao=eo[so=(so+1)%eo.length];return io.reverse().join(to)}}function formatNumerals(eo){return function(to){return to.replace(/[0-9]/g,function(ro){return eo[+ro]})}}var re$2=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function formatSpecifier(eo){if(!(to=re$2.exec(eo)))throw new Error("invalid format: "+eo);var to;return new FormatSpecifier({fill:to[1],align:to[2],sign:to[3],symbol:to[4],zero:to[5],width:to[6],comma:to[7],precision:to[8]&&to[8].slice(1),trim:to[9],type:to[10]})}formatSpecifier.prototype=FormatSpecifier.prototype;function FormatSpecifier(eo){this.fill=eo.fill===void 0?" ":eo.fill+"",this.align=eo.align===void 0?">":eo.align+"",this.sign=eo.sign===void 0?"-":eo.sign+"",this.symbol=eo.symbol===void 0?"":eo.symbol+"",this.zero=!!eo.zero,this.width=eo.width===void 0?void 0:+eo.width,this.comma=!!eo.comma,this.precision=eo.precision===void 0?void 0:+eo.precision,this.trim=!!eo.trim,this.type=eo.type===void 0?"":eo.type+""}FormatSpecifier.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function formatTrim(eo){e:for(var to=eo.length,ro=1,no=-1,oo;ro0&&(no=0);break}return no>0?eo.slice(0,no)+eo.slice(oo+1):eo}var prefixExponent;function formatPrefixAuto(eo,to){var ro=formatDecimalParts(eo,to);if(!ro)return eo+"";var no=ro[0],oo=ro[1],io=oo-(prefixExponent=Math.max(-8,Math.min(8,Math.floor(oo/3)))*3)+1,so=no.length;return io===so?no:io>so?no+new Array(io-so+1).join("0"):io>0?no.slice(0,io)+"."+no.slice(io):"0."+new Array(1-io).join("0")+formatDecimalParts(eo,Math.max(0,to+io-1))[0]}function formatRounded(eo,to){var ro=formatDecimalParts(eo,to);if(!ro)return eo+"";var no=ro[0],oo=ro[1];return oo<0?"0."+new Array(-oo).join("0")+no:no.length>oo+1?no.slice(0,oo+1)+"."+no.slice(oo+1):no+new Array(oo-no.length+2).join("0")}const formatTypes={"%":(eo,to)=>(eo*100).toFixed(to),b:eo=>Math.round(eo).toString(2),c:eo=>eo+"",d:formatDecimal,e:(eo,to)=>eo.toExponential(to),f:(eo,to)=>eo.toFixed(to),g:(eo,to)=>eo.toPrecision(to),o:eo=>Math.round(eo).toString(8),p:(eo,to)=>formatRounded(eo*100,to),r:formatRounded,s:formatPrefixAuto,X:eo=>Math.round(eo).toString(16).toUpperCase(),x:eo=>Math.round(eo).toString(16)};function identity(eo){return eo}var map=Array.prototype.map,prefixes=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function formatLocale(eo){var to=eo.grouping===void 0||eo.thousands===void 0?identity:formatGroup(map.call(eo.grouping,Number),eo.thousands+""),ro=eo.currency===void 0?"":eo.currency[0]+"",no=eo.currency===void 0?"":eo.currency[1]+"",oo=eo.decimal===void 0?".":eo.decimal+"",io=eo.numerals===void 0?identity:formatNumerals(map.call(eo.numerals,String)),so=eo.percent===void 0?"%":eo.percent+"",ao=eo.minus===void 0?"−":eo.minus+"",lo=eo.nan===void 0?"NaN":eo.nan+"";function uo(fo){fo=formatSpecifier(fo);var ho=fo.fill,po=fo.align,go=fo.sign,vo=fo.symbol,bo=fo.zero,xo=fo.width,_o=fo.comma,Eo=fo.precision,So=fo.trim,To=fo.type;To==="n"?(_o=!0,To="g"):formatTypes[To]||(Eo===void 0&&(Eo=12),So=!0,To="g"),(bo||ho==="0"&&po==="=")&&(bo=!0,ho="0",po="=");var wo=vo==="$"?ro:vo==="#"&&/[boxX]/.test(To)?"0"+To.toLowerCase():"",Co=vo==="$"?no:/[%p]/.test(To)?so:"",Oo=formatTypes[To],Ao=/[defgprs%]/.test(To);Eo=Eo===void 0?6:/[gprs]/.test(To)?Math.max(1,Math.min(21,Eo)):Math.max(0,Math.min(20,Eo));function Ro(No){var Mo=wo,Do=Co,jo,Fo,$o;if(To==="c")Do=Oo(No)+Do,No="";else{No=+No;var Lo=No<0||1/No<0;if(No=isNaN(No)?lo:Oo(Math.abs(No),Eo),So&&(No=formatTrim(No)),Lo&&+No==0&&go!=="+"&&(Lo=!1),Mo=(Lo?go==="("?go:ao:go==="-"||go==="("?"":go)+Mo,Do=(To==="s"?prefixes[8+prefixExponent/3]:"")+Do+(Lo&&go==="("?")":""),Ao){for(jo=-1,Fo=No.length;++jo$o||$o>57){Do=($o===46?oo+No.slice(jo+1):No.slice(jo))+Do,No=No.slice(0,jo);break}}}_o&&!bo&&(No=to(No,1/0));var Ho=Mo.length+No.length+Do.length,qo=Ho>1)+Mo+No+Do+qo.slice(Ho);break;default:No=qo+Mo+No+Do;break}return io(No)}return Ro.toString=function(){return fo+""},Ro}function co(fo,ho){var po=uo((fo=formatSpecifier(fo),fo.type="f",fo)),go=Math.max(-8,Math.min(8,Math.floor(exponent(ho)/3)))*3,vo=Math.pow(10,-go),bo=prefixes[8+go/3];return function(xo){return po(vo*xo)+bo}}return{format:uo,formatPrefix:co}}var locale,format;defaultLocale({thousands:",",grouping:[3],currency:["$",""]});function defaultLocale(eo){return locale=formatLocale(eo),format=locale.format,locale.formatPrefix,locale}function formatInt(eo){return Math.abs(eo)<1e6?format(",")(eo):format("0.2s")(eo)}function formatFloat(eo){const to=Math.abs(eo);return to===0?"0.00":to<.01?format(".2e")(eo):to<1e3?format("0.2f")(eo):format("0.2s")(eo)}function formatNumber$1(eo){return Number.isInteger(eo)?formatInt(eo):formatFloat(eo)}function createNumberFormatter(eo){return to=>typeof to!="number"?"--":eo(to)}const intFormatter=createNumberFormatter(formatInt),floatFormatter=createNumberFormatter(formatFloat),timeFormat=eo=>(eo&&!eo.endsWith("Z")&&(eo+="Z"),eo?new Date(eo).toLocaleString([],{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):"--"),latencyFormat=eo=>eo===void 0?"N/A":eo===0?"0 ms":eo<10?formatFloat(eo)+"ms":formatFloat(eo/1e3)+"s",parseSpanOutput=eo=>{var no,oo,io;const to=(no=eo==null?void 0:eo.events)==null?void 0:no.find(so=>so.name===BuildInEventName["function.output"]),ro=((oo=to==null?void 0:to.attributes)==null?void 0:oo.payload)??((io=eo==null?void 0:eo.attributes)==null?void 0:io.output);if(typeof ro=="string")try{const so=JSON.parse(ro);if(typeof so.usage=="string")try{so.usage=JSON.parse(so.usage)}catch{so.usage={}}return so}catch{return ro}return ro},parseHttpSpanAttributes=eo=>{var no;const to=eo==null?void 0:eo.attributes;if(!to||((no=to.span_type)==null?void 0:no.toLowerCase())!=="http")return;const ro={response:{headers:{}},request:{headers:{}}};return Object.entries(to).forEach(([oo,io])=>{const so=oo.toLowerCase();if(so==="url.full"){ro.urlFull=io;return}const[ao,lo,uo,...co]=so.split(".");if(ao==="http")switch(lo){case"request":uo==="header"?ro.request.headers[co.join(".")]=io:ro.request[[uo,...co].join(".")]=io;break;case"response":uo==="header"?ro.response.headers[co.join(".")]=io:ro.response[[uo,...co].join(".")]=io;break;case"status_code":ro.status_code=io;break;case"method":ro.method=io;break;default:ro[oo.substring(5)]=io}}),ro},convertToTraceListRow=eo=>{var ro,no,oo;const to=eo.end_time&&eo.start_time?Date.parse(eo.end_time)-Date.parse(eo.start_time):0;return{...eo,latency:to,total_tokens:((ro=eo==null?void 0:eo.cumulative_token_count)==null?void 0:ro.total)??0,prompt_tokens:(no=eo==null?void 0:eo.cumulative_token_count)==null?void 0:no.prompt,completion_tokens:(oo=eo==null?void 0:eo.cumulative_token_count)==null?void 0:oo.completion}};var _a$1;const initialTableColumnNames={normalColumns:[],evaluationColumns:[]};var ViewStatus=(eo=>(eo.loading="loading",eo.loaded="loaded",eo.error="error",eo.hidden="hidden",eo))(ViewStatus||{});const rv=class rv{constructor(to){this.selectedSpanId$=new State$1(void 0),this.selectedTraceId$=new State$1(void 0),this.selectedEvaluationTraceId$=new State$1(void 0),this.spans$=new ObservableMap,this.traces$=new ObservableOrderedMap,this.tableColumnNames$=new State$1(initialTableColumnNames),this.tableHiddenColumnKeys$=new State$1([]),this.isTraceDetailOpen$=new State$1(!1),this.isGanttChartOpen$=new State$1(!1),this.traceListStatus$=new State$1("loading"),this.traceDetailStatus$=new State$1("loading"),this.traceListShowMetrics$=new State$1(!0),this.messagesBySpanId$=new ObservableOrderedMap,this.sortColumn$=new State$1(void 0),this.sortableColumns=[],this.isLazyLoadSpan=!0,this.spanEventsLoadStatus$=new ObservableMap;const{traceListConfig:ro,spanConfig:no}=to||{};ro&&(this.traceListColumnModifier=ro.columnModifier,ro.showMetrics!==void 0&&this.traceListShowMetrics$.setState(ro.showMetrics),ro.defaultHiddenColumnKeys!==void 0&&this.tableHiddenColumnKeys$.setState(ro.defaultHiddenColumnKeys),ro.sortableColumns&&(this.sortableColumns=ro.sortableColumns)),no&&(this._fetchSpanEvent=no.fetchSpanEvent,this.isLazyLoadSpan=no.isLazyLoadSpan??!0),this.selectedTrace$=Computed$1.fromStates([this.selectedTraceId$,this.traces$,this.selectedEvaluationTraceId$],([oo,io,so])=>{const ao=oo&&io.get(oo)||void 0;return ao&&ao.evaluations&&Object.values(ao.evaluations).find(uo=>uo.trace_id===so)||ao}),this.selectedTraceId$.subscribe(oo=>{var so;if(!oo)return;const io=this.traces$.get(oo);(so=this._traceDetailDidOpenCallback)==null||so.call(this,oo,io)}),this.isTraceDetailOpen$.subscribe(oo=>{var ao;const io=this.selectedTraceId$.getSnapshot(),so=this.selectedTrace$.getSnapshot();!oo&&io&&((ao=this._traceDetailDidCloseCallback)==null||ao.call(this,io,so),this.traceDetailStatus$.setState("hidden"),this.isGanttChartOpen$.setState(!1),this.selectedTraceId$.setState(void 0),this.selectedEvaluationTraceId$.next(void 0),this.spanEventsLoadStatus$.clear())}),this.sortColumn$.subscribe(oo=>{var io;(io=this._traceListSortColumnDidChangeCallback)==null||io.call(this,oo)}),this.traceDetailTitleParts$=Computed$1.fromStates([this.selectedTraceId$,this.selectedEvaluationTraceId$,this.traces$],([oo,io,so])=>{if(!oo)return[];const ao=so.get(oo),lo=ao==null?void 0:ao.evaluations,uo=[];ao!=null&&ao.name&&uo.push(ao.name);const co=Object.values(lo??{}).find(fo=>fo.trace_id===io);return co!=null&&co.name&&uo.push(co.name),uo})}traceDetailDidOpen(to){this._traceDetailDidOpenCallback=to}traceDetailDidClose(to){this._traceDetailDidCloseCallback=to}onTraceDetailCopyUrl(to){this._traceDetailCopyUrlCallback=to}traceListSortColumnDidChange(to){this._traceListSortColumnDidChangeCallback=to}onRefreshSpans(to){this._refreshSpansCallback=to}setOnRefreshTraces(to){this._refreshTracesCallback=to}traceDetailCopyUrl(){const to=this.selectedTraceId$.getSnapshot(),ro=this.selectedTrace$.getSnapshot();return to&&this._traceDetailCopyUrlCallback?(this._traceDetailCopyUrlCallback(to,ro),!0):!1}refreshSpans(){var no;const to=this.selectedTraceId$.getSnapshot(),ro=this.selectedTrace$.getSnapshot();to&&((no=this._refreshSpansCallback)==null||no.call(this,to,ro))}refreshTraces(){var to;(to=this._refreshTracesCallback)==null||to.call(this)}clear(){this.traces$.clear(),this.spans$.clear()}appendTraces(to,ro){to.forEach(no=>{no.trace_id!==void 0&&(ro?this.traces$.set(no.trace_id,no).sortByValue(ro):this.traces$.set(no.trace_id,no))})}appendSpans(to){to.forEach(ro=>{var so,ao;const no=(so=ro==null?void 0:ro.context)==null?void 0:so.trace_id,oo=(ao=ro==null?void 0:ro.context)==null?void 0:ao.span_id;if(!no||!oo)return;const io=this.spans$.get(no)||new ObservableOrderedMap;this.spans$.set(no,io.set(oo,ro))})}toggleIsGanttChartOpen(){this.isGanttChartOpen$.setState(!this.isGanttChartOpen$.getSnapshot())}getTraceById(to){return to?this.traces$.get(to):void 0}setTraceListStatus(to){this.traceListStatus$.setState(to)}setTraceDetailStatus(to){this.traceDetailStatus$.setState(to)}setTraceDetailOpen(to,ro){this.isTraceDetailOpen$.setState(to),this.selectedTraceId$.setState(to?ro:void 0)}sortTraces(to){this.traces$.sortByValue(to)}fetchSpanEvent(to){var ro;return((ro=this._fetchSpanEvent)==null?void 0:ro.call(this,to))??Promise.resolve({status:"success"})}};_a$1=SINGLETON,rv[_a$1]=!0;let TraceViewModel=rv;const TraceViewModelToken=createInjectionToken("TraceViewModel",new TraceViewModel),useLoadSpanEvents=(eo,to,ro)=>{const no=useTraceViewModel(),oo=useSpanEventsLoadStatus();return reactExports.useCallback(({onCompleted:io,forceRefresh:so})=>{var lo,uo,co,fo;if(!((lo=eo==null?void 0:eo.events)!=null&&lo.length)||!no.isLazyLoadSpan){io();return}if(ro!==void 0){const ho=(uo=eo.external_event_data_uris)==null?void 0:uo[ro];if(!ho){io();return}const po=`${(co=eo.context)==null?void 0:co.span_id}__${ho}`;if(oo.get(po)==="success"){io();return}if(!so&&oo.has(po)){io(oo.get(po)==="error"?new Error("load error"):void 0);return}no.fetchSpanEvent(ho).then(go=>{var vo;if(go.status==="error")oo.set(po,"error"),io(new Error("load error"));else{const{data:bo}=go;(vo=eo.events)!=null&&vo[ro]&&(eo.events[ro]=typeof bo=="string"?safeJSONParse(bo):bo),oo.set(po,"success"),io()}});return}const ao=`${(fo=eo.context)==null?void 0:fo.span_id}__${to}`;if(!so&&oo.has(ao)){io(oo.get(ao)==="error"?new Error("load error"):void 0);return}Promise.all(eo.events.map((ho,po)=>{var go,vo;if(ho.name===to){const bo=(go=eo.external_event_data_uris)==null?void 0:go[po];if(!bo)return Promise.resolve({status:"success"});const xo=`${(vo=eo.context)==null?void 0:vo.span_id}__${bo}`;return oo.get(xo)==="success"?Promise.resolve({status:"success"}):!so&&oo.has(xo)?Promise.resolve({status:oo.get(xo)==="error"?"error":"success"}):no.fetchSpanEvent(bo).then(_o=>{var Eo;if(_o.status==="error")oo.set(xo,"error");else{const{data:So}=_o;(Eo=eo.events)!=null&&Eo[po]&&(eo.events[po]=typeof So=="string"?safeJSONParse(So):So),oo.set(xo,"success")}return _o})}}).filter(ho=>ho!==void 0)).then(ho=>{if(ho.some(po=>(po==null?void 0:po.status)==="error")){oo.set(ao,"error"),io(new Error("load error"));return}oo.set(ao,"success"),io()})},[no,eo,to,ro,oo])},useSpanEventsWithPayload=(eo,to)=>{var ro;return((ro=eo==null?void 0:eo.events)==null?void 0:ro.filter(no=>no.name===to).map(no=>{var oo;return{...no,attributes:safeJSONParse(((oo=no.attributes)==null?void 0:oo.payload)??"")}}))??[]},useTraceViewModel=()=>{const[eo]=useInjected(TraceViewModelToken);return eo},useSelectedSpanId=()=>{const eo=useTraceViewModel();return useState(eo.selectedSpanId$)},useSelectedSpan=()=>{var io;const eo=useTraceViewModel(),to=useSelectedSpanId(),ro=useSelectedTraceId(),oo=useSelectedEvaluationTraceId()??ro;if(!(!to||!oo))return(io=eo.spans$.get(oo))==null?void 0:io.get(to)},useParentSpanOfSelectedSpan=()=>{var no;const eo=useTraceViewModel(),to=useSelectedTraceId(),ro=useSelectedSpan();if(!(!ro||!to||!ro.parent_id))return(no=eo.spans$.get(to))==null?void 0:no.get(ro.parent_id)},useSetSelectedSpanId=()=>useSetState(useTraceViewModel().selectedSpanId$),useSelectedTraceId=()=>useState(useTraceViewModel().selectedTraceId$),useSetSelectedTraceId=()=>useSetState(useTraceViewModel().selectedTraceId$),useSelectedTrace=()=>{const eo=useTraceViewModel();return useState(eo.selectedTrace$)},useSpansOfSelectedTrace=()=>{const eo=useTraceViewModel(),to=useSelectedTraceId(),ro=useSelectedEvaluationTraceId(),no=useState(eo.spans$.get(ro??to??"")??new ObservableOrderedMap);return Array.from(no.values())},useTraces=()=>{const eo=useState(useTraceViewModel().traces$);return reactExports.useMemo(()=>Array.from(eo.values()),[eo])},useTraceNavigation=()=>{const eo=useTraceViewModel(),to=useTraces(),ro=useSelectedTraceId(),no=to.findIndex(lo=>lo.trace_id===ro),oo=no>0,io=no{oo&&eo.selectedTraceId$.setState(to[no-1].trace_id)},[oo,no,to,eo]),ao=reactExports.useCallback(()=>{io&&eo.selectedTraceId$.setState(to[no+1].trace_id)},[io,no,to,eo]);return{hasPreviousTrace:oo,hasNextTrace:io,goToPreviousTrace:so,goToNextTrace:ao}},useParseTraceOutput=eo=>reactExports.useMemo(()=>parseSpanOutput(eo),[eo]),useEvaluationSpansOfSelectedSpan=()=>{const eo=useTraceViewModel(),to=[],ro=useSelectedTrace();return ro?(Object.keys(ro.evaluations??[]).forEach(no=>{var io,so;const oo=(io=ro==null?void 0:ro.evaluations)==null?void 0:io[no];if(oo){const ao=Array.from(((so=eo.spans$.get(oo.trace_id??""))==null?void 0:so.getState().values())??[]);to.push({evaluationName:oo.name??no,evaluationTraces:ao})}}),to):[]},useRootSpanIdOfSelectedSpans=()=>{const eo=useSelectedTrace();return eo==null?void 0:eo.root_span_id},useTableColumnNames=()=>useState(useTraceViewModel().tableColumnNames$),useSetTableColumnNames=()=>useSetState(useTraceViewModel().tableColumnNames$),useTableHiddenColumnKeys=()=>useState(useTraceViewModel().tableHiddenColumnKeys$),useSetTableHiddenColumnKeys=()=>useSetState(useTraceViewModel().tableHiddenColumnKeys$),useIsTraceDetailOpen=()=>useState(useTraceViewModel().isTraceDetailOpen$),useSetIsTraceDetailOpen=()=>useSetState(useTraceViewModel().isTraceDetailOpen$),useTraceDetailRefreshKey=()=>{const eo=useTraceViewModel(),to=useSelectedTraceId(),ro=useSelectedEvaluationTraceId(),no=useState(eo.spans$),oo=Array.from(useState(no.get(to??"")??new ObservableOrderedMap).keys());return`${to}-${ro}-${oo.join("-")}`},useIsGanttChartOpen=()=>useState(useTraceViewModel().isGanttChartOpen$),useTraceListColumnModifier=()=>useTraceViewModel().traceListColumnModifier,useTraceListShowMetrics=()=>useState(useTraceViewModel().traceListShowMetrics$),useMessagesBySpanId=eo=>{var go,vo,bo,xo,_o;const to=useTraceViewModel(),ro=useState(to.selectedTraceId$),no=ro?(go=to.spans$.get(ro))==null?void 0:go.get(eo):void 0,oo=useSpanEventsWithPayload(no,BuildInEventName["function.inputs"])[0],io=useSpanEventsWithPayload(no,BuildInEventName["function.output"])[0],so=useSpanEventsWithPayload(no,BuildInEventName["llm.generated_message"])[0];if(!ro)return{inputMessages:[],outputMessages:[],tools:[]};const ao=oo?oo.attributes:safeJSONParse(((vo=no==null?void 0:no.attributes)==null?void 0:vo.inputs)??"{}"),lo=io?io.attributes:safeJSONParse(((bo=no==null?void 0:no.attributes)==null?void 0:bo.output)??"{}"),uo=(xo=no==null?void 0:no.attributes)==null?void 0:xo["llm.generated_message"],co=(so==null?void 0:so.attributes)??(uo?safeJSONParse(uo):void 0),fo=(ao==null?void 0:ao.tools)??[],ho=(ao==null?void 0:ao.messages)??[];let po=[];return co?po=[co]:po=((_o=lo==null?void 0:lo.choices)==null?void 0:_o.reduce((Eo,So)=>So.message?[...Eo,{...So.message,tools:fo}]:So.text?[...Eo,{content:So.text,role:"assistant",tools:fo}]:Eo,[]))??[],{inputMessages:ho,outputMessages:po,tools:fo}},useMessagesOfSelectedSpan=()=>{const eo=useSelectedSpanId();return useMessagesBySpanId(eo??"")},useGetAllTraces=()=>{const eo=useTraceViewModel();return reactExports.useCallback(()=>Array.from(eo.traces$.getState().values()),[eo.traces$])},useGetAllSpans=()=>{const eo=useTraceViewModel();return reactExports.useCallback(()=>{const to=[];return eo.spans$.getState().forEach(no=>{no.getState().forEach(io=>{to.push(io)})}),to},[eo.spans$])},useSortColumn=()=>{const eo=useTraceViewModel();return useState(eo.sortColumn$)},useSetSortColumn=()=>useSetState(useTraceViewModel().sortColumn$),useSortableColumns=()=>useTraceViewModel().sortableColumns,useSelectedEvaluationTraceId=()=>useState(useTraceViewModel().selectedEvaluationTraceId$),useSetSelectedEvaluationTraceId=()=>useSetState(useTraceViewModel().selectedEvaluationTraceId$),useSelectedTraceTitleParts=()=>useState(useTraceViewModel().traceDetailTitleParts$),useSpanEventsLoadStatus=()=>useTraceViewModel().spanEventsLoadStatus$,StreamSwitcher=({isStreaming:eo,style:to,onIsStreamingChange:ro,labelName:no})=>{const oo=useLocStrings();return jsxRuntimeExports.jsx(Switch,{label:no||oo.Streaming,labelPosition:"before",checked:eo,onChange:(io,so)=>ro(so.checked),style:to})};var UISize=(eo=>(eo.extraSmall="extra-small",eo.small="small",eo.normal="normal",eo.large="large",eo))(UISize||{});const useUISize=eo=>{const{textSize:to,iconSize:ro,gap:no}=reactExports.useMemo(()=>{switch(eo){case UISize.extraSmall:return{textSize:200,iconSize:"12px",gap:"2px"};case UISize.small:return{textSize:300,iconSize:"16px",gap:"2px"};case UISize.large:return{textSize:500,iconSize:"26px",gap:"5px"};case UISize.normal:default:return{textSize:400,iconSize:"20px",gap:"5px"}}},[eo]);return{textSize:to,iconSize:ro,gap:no}},LatencyText=({startTimeISOString:eo,endTimeISOString:to,size:ro,tipTextSize:no})=>{const oo=useClasses$s(),io=eo?new Date(eo):void 0,so=to?new Date(to):void 0,ao=io&&so?so.getTime()-io.getTime():void 0,lo=latencyFormat(ao),{textSize:uo,iconSize:co,gap:fo}=useUISize(ro);return jsxRuntimeExports.jsx(Tooltip,{content:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Text$2,{size:no,weight:"bold",block:!0,children:"Start Time"}),jsxRuntimeExports.jsx(Text$2,{size:no,block:!0,children:timeFormat(eo)}),jsxRuntimeExports.jsx(Text$2,{size:no,weight:"bold",block:!0,children:"End Time"}),jsxRuntimeExports.jsx(Text$2,{size:no,block:!0,children:timeFormat(to)})]}),relationship:"label",children:jsxRuntimeExports.jsxs("div",{className:oo.wrapper,style:{gap:fo},children:[jsxRuntimeExports.jsx(Clock20Regular,{style:{height:co,width:co}}),jsxRuntimeExports.jsx(Text$2,{size:uo,className:oo.text,children:lo})]})})},useClasses$s=makeStyles({wrapper:{display:"inline-flex",flexDirection:"row",alignItems:"center"},text:{color:tokens.colorNeutralForeground3,fontWeight:600}}),MetricTag=({tag:eo})=>{const to=useClasses$r(),[ro,no]=React.useState(!0),oo=reactExports.useMemo(()=>{if(typeof eo.value=="number")return formatNumber$1(eo.value);{const io=eo.value.toString();return ro&&io.length>20?io.substring(0,20)+"...":io}},[eo.value,ro]);return jsxRuntimeExports.jsxs(Badge$2,{className:to.wrapper,size:"medium",shape:"rounded",appearance:"outline",onClick:()=>no(!ro),children:[jsxRuntimeExports.jsxs("span",{className:to.name,children:[eo.name," "]}),jsxRuntimeExports.jsx("span",{className:to.data,children:oo})]})},useClasses$r=makeStyles({wrapper:{display:"inline-flex",fontSize:"12px",cursor:"pointer",...shorthands.padding("0px","8px","1px"),...shorthands.borderColor(tokens.colorPaletteGreenBorder2),...shorthands.gap("0.5rem")},name:{color:tokens.colorPaletteGreenBorder2,fontWeight:tokens.fontWeightRegular},data:{color:tokens.colorNeutralForeground1,fontWeight:tokens.fontWeightRegular}});function TokenText({token:eo,info:to,size:ro=UISize.normal}){const no=useClasses$q(),oo=typeof eo=="number"?intFormatter(eo):eo,{textSize:io,iconSize:so,gap:ao}=useUISize(ro);return jsxRuntimeExports.jsxs("div",{className:no.wrapper,style:{gap:ao},children:[jsxRuntimeExports.jsx(NumberCircle020Regular,{style:{height:so,width:so}}),to?jsxRuntimeExports.jsx(Tooltip,{content:to,relationship:"description",children:jsxRuntimeExports.jsx(Text$2,{size:io,className:no.text,children:oo})}):jsxRuntimeExports.jsx(Text$2,{size:io,className:no.text,children:oo})]})}const useClasses$q=makeStyles({wrapper:{display:"inline-flex",flexDirection:"row",alignItems:"center",justifyContent:"center"},text:{color:tokens.colorNeutralForeground3,fontWeight:600}}),NodeToken=({span:eo,showDetail:to=!0,size:ro})=>{const no=useParseTraceOutput(eo);if(!no||typeof no=="string")return null;const oo=no.usage;return!oo||typeof oo=="string"||!oo.total_tokens?null:jsxRuntimeExports.jsx(TokenText,{token:oo.total_tokens,size:ro,info:to?jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",rowGap:6},children:[jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Total tokens",value:oo.total_tokens??0}}),jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Prompt tokens",value:oo.prompt_tokens??0}}),jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Completion tokens",value:oo.completion_tokens??0}})]}):void 0})},SummaryToken=({trace:eo,showDetail:to=!0,size:ro})=>{const{total_tokens:no,prompt_tokens:oo,completion_tokens:io}=eo;return jsxRuntimeExports.jsx(TokenText,{token:no,size:ro,info:to?jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",rowGap:6},children:[jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Total tokens",value:no}}),oo!==void 0&&jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Prompt tokens",value:oo}}),io!==void 0&&jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Completion tokens",value:io}})]}):void 0})};function StatusText({statusCode:eo,showText:to=!1,size:ro,tooltipContent:no}){const oo=useClasses$p(),io=useLocStrings();eo=eo||io.unknown;const{textSize:so,iconSize:ao,gap:lo}=useUISize(ro),uo=reactExports.useMemo(()=>({width:ao,height:ao}),[ao]),[co,fo]=reactExports.useMemo(()=>{switch(eo==null?void 0:eo.toLowerCase()){case"ok":case"completed":return[jsxRuntimeExports.jsx(CheckmarkCircle20Filled,{style:uo},"ok"),tokens.colorPaletteGreenForeground1];case"error":return[jsxRuntimeExports.jsx(DismissCircle20Filled,{style:uo},"error"),tokens.colorPaletteRedForeground1];case"unset":return[jsxRuntimeExports.jsx(ErrorCircle20Filled,{style:uo},"unset"),tokens.colorPaletteYellowForeground1];case"running":return[jsxRuntimeExports.jsx(ArrowClockwiseDashes20Filled,{className:oo.rotate,style:uo},"running"),tokens.colorPaletteYellowForeground1];default:return[jsxRuntimeExports.jsx(QuestionCircle20Filled,{},"unknown"),tokens.colorPaletteYellowForeground1]}},[oo.rotate,uo,eo]);return jsxRuntimeExports.jsx(Tooltip,{content:no??eo??"",relationship:"label",children:jsxRuntimeExports.jsxs("div",{className:oo.wrapper,style:{color:fo,gap:to?lo:0},children:[co,to&&jsxRuntimeExports.jsx(Text$2,{size:so,children:eo})]})})}const useClasses$p=makeStyles({wrapper:{display:"inline-flex",flexDirection:"row",alignItems:"center",justifyContent:"center"},rotate:{animationDuration:"2s",animationTimingFunction:"linear",animationIterationCount:"infinite",animationName:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}}}}),useClasses$o=makeStyles({root:{display:"flex",fontSize:tokens.fontSizeBase200,marginLeft:"8px",...shorthands.gap("8px","column")}}),TraceSystemMetrics=()=>{const eo=useSelectedTrace(),to=useClasses$o();return eo?jsxRuntimeExports.jsxs("div",{className:to.root,children:[jsxRuntimeExports.jsx(StatusText,{statusCode:eo.status,size:UISize.normal,showText:!0}),jsxRuntimeExports.jsx(LatencyText,{startTimeISOString:eo.start_time,endTimeISOString:eo.end_time,size:UISize.normal}),jsxRuntimeExports.jsx(SummaryToken,{trace:convertToTraceListRow(eo),size:UISize.normal})]}):null},useClasses$n=makeStyles({title:{...shorthands.flex(1),...shorthands.padding("0"),lineHeight:"28px",fontSize:"20px",fontWeight:600},button:{fontSize:"20px",...shorthands.padding("0")}}),TraceDetailTitle=()=>{const eo=useSelectedTraceTitleParts(),to=useSetSelectedEvaluationTraceId(),ro=eo[0],no=eo[1],oo=useClasses$n();return jsxRuntimeExports.jsxs(Breadcrumb,{className:oo.title,size:"large",children:[jsxRuntimeExports.jsx(BreadcrumbItem,{children:jsxRuntimeExports.jsxs(BreadcrumbButton,{className:oo.button,onClick:()=>{to(void 0)},children:[ro,!no&&jsxRuntimeExports.jsx(TraceSystemMetrics,{})]})}),no&&jsxRuntimeExports.jsx(BreadcrumbDivider,{}),no&&jsxRuntimeExports.jsx(BreadcrumbItem,{children:jsxRuntimeExports.jsxs(BreadcrumbButton,{className:oo.button,children:[no,jsxRuntimeExports.jsx(TraceSystemMetrics,{})]})})]})},TraceDetailHeader=({setIsTraceDetailOpen:eo,showRefresh:to=!0,showGantt:ro=!1,showCopyUrl:no=!1,showStreamSwitch:oo=!1,isStreaming:io,onIsStreamingChange:so})=>{const ao=useClasses$m(),lo=useLocStrings(),uo=useTraceViewModel(),co=useIsGanttChartOpen(),[fo,ho]=React.useState("Copy URL"),po=useSelectedTrace(),go=po!=null&&po.start_time?timeFormat(po.start_time):void 0;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:ao.header,children:[jsxRuntimeExports.jsx(TraceDetailTitle,{}),go&&jsxRuntimeExports.jsxs("time",{className:ao.time,children:["Created on: ",go]}),jsxRuntimeExports.jsx(Divider$2,{vertical:!0,className:ao.divider}),jsxRuntimeExports.jsx(TraceNavigation,{}),oo&&io!==void 0&&so!==void 0&&jsxRuntimeExports.jsx(StreamSwitcher,{style:{marginRight:"16px",marginTop:"4px"},isStreaming:io,onIsStreamingChange:so}),no?jsxRuntimeExports.jsx(Tooltip,{content:lo[`${fo}`],relationship:"description",children:jsxRuntimeExports.jsx(Button$2,{appearance:"subtle","aria-label":"Copy URL",icon:jsxRuntimeExports.jsx(SendCopy20Regular,{}),onMouseEnter:()=>{ho("Copy URL")},onClick:()=>{if(uo.traceDetailCopyUrl()){ho("Copied!");return}const vo=window.location.href;if(navigator.clipboard)navigator.clipboard.writeText(vo),ho("Copied!");else{const bo=document.createElement("textarea");bo.value=vo,document.body.appendChild(bo),bo.select();try{document.execCommand("copy"),ho("Copied!")}catch(xo){console.error("Fallback: Oops, unable to copy",xo),ho("Oops, unable to copy!")}document.body.removeChild(bo)}}})}):null,to?jsxRuntimeExports.jsx(Tooltip,{content:lo["Refresh Data"],relationship:"description",children:jsxRuntimeExports.jsx(Button$2,{appearance:"subtle","aria-label":"Refresh",icon:jsxRuntimeExports.jsx(ArrowClockwise16Regular,{}),onClick:()=>uo.refreshSpans()})}):null,ro?jsxRuntimeExports.jsx(Tooltip,{content:lo[co?"Hide Gantt":"Show Gantt"],relationship:"description",children:jsxRuntimeExports.jsx(Button$2,{style:{color:co?tokens.colorBrandForeground1:""},appearance:"subtle","aria-label":"Close",icon:jsxRuntimeExports.jsx(GanttChart20Regular,{}),onClick:()=>uo.toggleIsGanttChartOpen()})}):null,jsxRuntimeExports.jsx(Button$2,{appearance:"subtle","aria-label":"Close",icon:jsxRuntimeExports.jsx(Dismiss20Regular,{}),onClick:()=>eo(!1)})]}),jsxRuntimeExports.jsx(Divider$2,{})]})},TraceNavigation=()=>{const eo=useLocStrings(),to=useClasses$m(),{hasPreviousTrace:ro,hasNextTrace:no,goToPreviousTrace:oo,goToNextTrace:io}=useTraceNavigation();return ro||no?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:to.navigation,children:[ro&&jsxRuntimeExports.jsxs(Button$2,{icon:jsxRuntimeExports.jsx(ArrowUp20Regular,{}),onClick:oo,appearance:"subtle",children:[eo["Previous trace"]," "]}),no&&jsxRuntimeExports.jsxs(Button$2,{icon:jsxRuntimeExports.jsx(ArrowDown20Regular,{}),onClick:io,appearance:"subtle",children:[eo["Next trace"]," "]})]}),jsxRuntimeExports.jsx(Divider$2,{vertical:!0,className:to.divider})]}):null},useClasses$m=makeStyles({header:{display:"flex",width:"100%",boxSizing:"border-box",...shorthands.padding("12px","20px")},divider:{height:"100%",...shorthands.flex("none"),...shorthands.padding(0,tokens.spacingHorizontalM)},navigation:{display:"flex",alignItems:"center",...shorthands.gap(tokens.spacingHorizontalS)},time:{display:"flex",alignItems:"center",paddingRight:tokens.spacingHorizontalL,...shorthands.flex("0 1 auto")}}),traceDetailErrorInjectionToken=createInjectionToken("traceDetailErrorInjectionToken",()=>{const eo=useLocStrings();return jsxRuntimeExports.jsx(MessageBar,{intent:"error",children:eo.Failed_to_load_trace})}),traceDetailLoadingInjectionToken=createInjectionToken("traceDetailLoadingInjectionToken",Loading),traceListErrorInjectionToken=createInjectionToken("traceListErrorInjectionToken",()=>{const eo=useLocStrings();return jsxRuntimeExports.jsx(MessageBar,{intent:"error",children:eo.Failed_to_load_traces})}),traceListLoadingInjectionToken=createInjectionToken("traceListLoadingInjectionToken",Loading),useTraceListViewStatus=()=>{const eo=useTraceViewModel();return useState(eo.traceListStatus$)},useTraceDetailViewStatus=()=>{const eo=useTraceViewModel();return useState(eo.traceDetailStatus$)},useTraceListLoadingComponent=()=>{const[eo]=useInjected(traceListLoadingInjectionToken);return eo},useTraceListErrorComponent=()=>{const[eo]=useInjected(traceListErrorInjectionToken);return eo},useTraceDetailLoadingComponent=()=>{const[eo]=useInjected(traceDetailLoadingInjectionToken);return eo},useTraceDetailErrorComponent=()=>{const[eo]=useInjected(traceDetailErrorInjectionToken);return eo},TREE_NODE_HEIGHT=40,TREE_NODE_WIDTH=400,TREE_NODE_PADDING=10,TREE_NODE_INDENT=48,sortTraceByStartTimeDesc=(eo,to)=>eo.start_time&&to.start_time?Date.parse(to.start_time)-Date.parse(eo.start_time):1,sortTraceByStartTimeAsc=(eo,to)=>eo.start_time&&to.start_time?Date.parse(eo.start_time)-Date.parse(to.start_time):1,defaultGetNodeX=({level:eo})=>eo*TREE_NODE_INDENT,defaultGetNodeWidth=()=>TREE_NODE_WIDTH,defaultGetNodeHeight=()=>TREE_NODE_HEIGHT,spansToGraphModel=(eo,{isEdgesHidden:to=!1,getNodeX:ro=defaultGetNodeX,getNodeWidth:no=defaultGetNodeWidth,getNodeHeight:oo=defaultGetNodeHeight,collapsedSpanIds:io})=>{const so=[],ao=[],lo=new Map,uo=new Set,co=new Set(eo.map(po=>{var go;return(go=po.context)==null?void 0:go.span_id}).filter(po=>!!po));eo.forEach(po=>{var go,vo;(go=po.context)!=null&&go.span_id&&(po.parent_id&&co.has(po.parent_id)?lo.has(po.parent_id)?lo.get(po.parent_id).push(po):lo.set(po.parent_id,[po]):uo.add((vo=po.context)==null?void 0:vo.span_id))});const fo=eo.filter(po=>{var go,vo;return((go=po.context)==null?void 0:go.span_id)&&uo.has((vo=po.context)==null?void 0:vo.span_id)}).sort((po,go)=>Date.parse(po.start_time??"")??0-Date.parse(go.start_time??"")??0);let ho=0;return fo.sort(sortTraceByStartTimeAsc).forEach(po=>{var vo,bo;const go=[{span:po,level:0}];for(;go.length>0;){const{span:xo,level:_o}=go.pop(),Eo=oo({span:xo,level:_o,index:ho});so.push({id:((vo=xo==null?void 0:xo.context)==null?void 0:vo.span_id)??"",width:no({span:xo,level:_o,index:ho}),height:Eo,x:ro({span:xo,level:_o,index:ho}),y:ho*(Eo+TREE_NODE_PADDING),ports:[{id:"port",name:"port",position:[0,.5]}]}),ho++,(bo=xo==null?void 0:xo.context)!=null&&bo.span_id&&lo.has(xo.context.span_id)&&!(io!=null&&io.has(xo.context.span_id))&&lo.get(xo.context.span_id).sort(sortTraceByStartTimeDesc).forEach(So=>{var To,wo;!to&&((To=xo==null?void 0:xo.context)!=null&&To.span_id)&&((wo=So==null?void 0:So.context)!=null&&wo.span_id)&&ao.push({id:`${xo.context.span_id}-${So.context.span_id}`,source:xo.context.span_id,sourcePortId:"port",target:So.context.span_id,targetPortId:"port"}),go.push({span:So,level:_o+1})})}}),{graph:GraphModel.fromJSON({nodes:so,edges:ao}),rootIds:Array.from(uo.values()),parentIdLookUp:lo}},TreeViewEdge=({x1:eo,x2:to,y1:ro,y2:no,model:oo,data:io})=>{if(!io.nodes.get(oo.source)||!io.nodes.get(oo.target))return null;const lo=eo+30,uo=to+20,co=ro+10,fo=`M ${lo} ${co} L ${lo} ${no} L ${uo} ${no}`;return jsxRuntimeExports.jsx("g",{children:jsxRuntimeExports.jsx("path",{d:fo,stroke:tokens.colorNeutralStrokeAccessible,strokeWidth:1,fill:"none"})})};class EdgeConfig{render(to){return jsxRuntimeExports.jsx(TreeViewEdge,{...to})}}const GanttTreeNode=({node:eo})=>{const to=bitset.has(GraphNodeStatus.Selected)(eo.status),ro=bitset.has(GraphNodeStatus.Activated)(eo.status);let no=tokens.colorNeutralStroke1,oo=tokens.colorBrandBackground2,io=1;return to&&(no=tokens.colorBrandStroke2,io=2,oo=tokens.colorBrandBackground2Pressed),ro&&(oo=tokens.colorBrandBackground2Hover),jsxRuntimeExports.jsx("foreignObject",{x:eo.x,y:eo.y,width:eo.width,height:eo.height,style:{border:`${io}px solid ${no}`,backgroundColor:oo,borderRadius:10,paddingLeft:10},children:jsxRuntimeExports.jsx("div",{style:{height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"nowrap",cursor:"pointer"}})})};class GanttNodeConfig{constructor(to){this.options=to}render(to){const ro=this.options.spans.find(no=>{var oo;return((oo=no==null?void 0:no.context)==null?void 0:oo.span_id)===to.model.id});return ro?jsxRuntimeExports.jsx(GanttTreeNode,{node:to.model,span:ro}):null}getMinHeight(){return 0}getMinWidth(){return 0}}const GanttTimeline=({startMs:eo,endMs:to})=>{const ro=to-eo,no=Math.pow(10,Math.floor(Math.log10(ro))-1),oo=Math.ceil(ro/no),io=[],so=[];for(let ao=0;aojsxRuntimeExports.jsx("div",{style:{width:"100%",height:"100%"},children:jsxRuntimeExports.jsx(ReactDagEditor,{state:eo,dispatch:to,style:{height:"100%",flexGrow:1,display:"flex"},children:jsxRuntimeExports.jsx(Graph,{canvasMouseMode:CanvasMouseMode.Pan})})}),GanttView=()=>{var po;const eo=useSpansOfSelectedTrace(),to=useSetSelectedSpanId(),ro=useSelectedSpanId(),no=go=>(vo,bo)=>(bo&&bo.type===GraphNodeEvent.Click&&to(bo.node.id),go(vo,bo)),oo=GraphConfigBuilder.default().registerNode(()=>new GanttNodeConfig({spans:eo})).registerPort(()=>new PortConfig).registerEdge(()=>new EdgeConfig).build();previewMode.add(GraphFeatures.ClickNodeToSelect);const[so,ao]=useGraphReducer({data:GraphModel.empty(),settings:{features:previewMode,graphConfig:oo}},no),lo=((po=so.viewport.rect)==null?void 0:po.width)||1200;let uo=Number.MAX_SAFE_INTEGER,co=0;eo.forEach(go=>{const vo=Date.parse(go.start_time??"");voco&&(co=bo)});const fo=reactExports.useCallback(({span:go})=>lo/(co-uo)*(Date.parse(go.start_time??"")-uo),[co,lo,uo]),ho=reactExports.useCallback(({span:go})=>lo/(co-uo)*(Date.parse(go.end_time??"")-Date.parse(go.start_time??"")),[co,lo,uo]);return reactExports.useEffect(()=>{ao({type:GraphCanvasEvent.SetData,data:spansToGraphModel(eo,{isEdgesHidden:!0,getNodeX:fo,getNodeWidth:ho,getNodeHeight:()=>24}).graph.selectNodes(go=>go.id===ro)})},[]),reactExports.useEffect(()=>{ro&&ao({type:GraphNodeEvent.Select,nodes:[ro]})},[ro]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(GanttTimeline,{startMs:uo,endMs:co}),jsxRuntimeExports.jsx(TreeGraph,{state:so,dispatch:ao})]})},useNodeDetailClasses=makeStyles({wrapper:{display:"flex",flexDirection:"column",height:"100%"},detailHeaderWrapper:{display:"flex",boxSizing:"border-box",width:"100%",...shorthands.padding("12px","12px",0,"12px"),flexDirection:"row",alignItems:"center",...shorthands.gap("12px")},detailHeaderTitle:{flexGrow:1,flexShrink:1,...shorthands.overflow("hidden"),whiteSpace:"nowrap",textOverflow:"ellipsis"},header:{display:"flex",height:"50px",boxSizing:"border-box",alignItems:"center",justifyContent:"flex-start",...shorthands.padding("6px","12px")},headerModalName:{color:tokens.colorNeutralForeground3,fontSize:"12px",fontWeight:600,lineHeight:"16px"},headerSpan:{marginRight:"10px"},headerTitle:{...shorthands.overflow("hidden"),textOverflow:"ellipsis",whiteSpace:"nowrap",marginRight:"4px",...shorthands.flex(0,1,"auto")},headerDivider:{...shorthands.flex("none"),...shorthands.padding(0)},headerRight:{marginLeft:"auto",display:"flex",alignItems:"center",...shorthands.gap("12px")},tabDivider:{...shorthands.flex("none"),...shorthands.padding(0,"12px")},content:{...shorthands.flex(1),...shorthands.padding("12px"),...shorthands.overflow("auto")},panels:{...shorthands.padding(0,"10px"),"& th":{textAlign:"left",...shorthands.padding(0,"30px",0,0)}},cardWrapper:{backgroundColor:tokens.colorNeutralBackground3},cardTitle:{fontSize:"16px",fontWeight:600},innerCardWrapper:{...shorthands.padding("16px"),...shorthands.border("1px","solid",tokens.colorNeutralForeground1),...shorthands.borderRadius("8px")}}),useRetrievalNodeDetailClasses=makeStyles({accordionHeader:{"& button":{...shorthands.padding(0),fontWeight:600}}}),getSpanType=eo=>{var ro;const to=(ro=eo==null?void 0:eo.attributes)==null?void 0:ro.span_type;return to==null?void 0:to.split(".").pop()},getSpanEventPayload=(eo,to)=>{var io,so,ao,lo;const ro=(io=eo==null?void 0:eo.events)==null?void 0:io.find(uo=>uo.name===to);if(ro)return(so=ro==null?void 0:ro.attributes)!=null&&so.payload?safeJSONParse(ro.attributes.payload):void 0;const no=(ao=eo==null?void 0:eo.attributes)==null?void 0:ao[EventNameToAttribute[to]],oo=no?(lo=eo==null?void 0:eo.attributes)==null?void 0:lo[no]:void 0;return oo?safeJSONParse(oo):void 0},TraceViewThemeContext=reactExports.createContext(!1),useIsDark=()=>reactExports.useContext(TraceViewThemeContext);function isObject(eo){return Object.prototype.toString.call(eo)==="[object Object]"}function objectSize(eo){return Array.isArray(eo)?eo.length:isObject(eo)?Object.keys(eo).length:0}function stringifyForCopying(eo,to){if(typeof eo=="string")return eo;try{return JSON.stringify(eo,(ro,no)=>{switch(typeof no){case"bigint":return String(no)+"n";case"number":case"boolean":case"object":case"string":return no;default:return String(no)}},to)}catch(ro){return`${ro.name}: ${ro.message}`||"JSON.stringify failed"}}function isCollapsed(eo,to,ro,no,oo,io){if(io&&io.collapsed!==void 0)return!!io.collapsed;if(typeof no=="boolean")return no;if(typeof no=="number"&&to>no)return!0;const so=objectSize(eo);if(typeof no=="function"){const ao=safeCall(no,[{node:eo,depth:to,indexOrName:ro,size:so}]);if(typeof ao=="boolean")return ao}return!!(Array.isArray(eo)&&so>oo||isObject(eo)&&so>oo)}function isCollapsed_largeArray(eo,to,ro,no,oo,io){if(io&&io.collapsed!==void 0)return!!io.collapsed;if(typeof no=="boolean")return no;if(typeof no=="number"&&to>no)return!0;const so=Math.ceil(eo.length/100);if(typeof no=="function"){const ao=safeCall(no,[{node:eo,depth:to,indexOrName:ro,size:so}]);if(typeof ao=="boolean")return ao}return!!(Array.isArray(eo)&&so>oo||isObject(eo)&&so>oo)}function ifDisplay(eo,to,ro){return typeof eo=="boolean"?eo:!!(typeof eo=="number"&&to>eo||eo==="collapsed"&&ro||eo==="expanded"&&!ro)}function safeCall(eo,to){try{return eo(...to)}catch(ro){reportError(ro)}}function editableAdd(eo){if(eo===!0||isObject(eo)&&eo.add===!0)return!0}function editableEdit(eo){if(eo===!0||isObject(eo)&&eo.edit===!0)return!0}function editableDelete(eo){if(eo===!0||isObject(eo)&&eo.delete===!0)return!0}function isReactComponent(eo){return typeof eo=="function"}function customAdd(eo){return!eo||eo.add===void 0||!!eo.add}function customEdit(eo){return!eo||eo.edit===void 0||!!eo.edit}function customDelete(eo){return!eo||eo.delete===void 0||!!eo.delete}function customCopy(eo){return!eo||eo.enableClipboard===void 0||!!eo.enableClipboard}function customMatchesURL(eo){return!eo||eo.matchesURL===void 0||!!eo.matchesURL}function resolveEvalFailedNewValue(eo,to){return eo==="string"?to.trim().replace(/^\"([\s\S]+?)\"$/,"$1"):to}var _path$8;function _extends$8(){return _extends$8=Object.assign?Object.assign.bind():function(eo){for(var to=1;to{oo.stopPropagation();const io=to(eo);typeof io=="string"&&io&&navigator.clipboard.writeText(io),no(!0),setTimeout(()=>no(!1),3e3)},className:"json-view--copy"})}function NameValue({indexOrName:eo,value:to,depth:ro,parent:no,deleteHandle:oo,editHandle:io}){return jsxRuntimeExports.jsxs("div",Object.assign({className:"json-view--pair"},{children:[jsxRuntimeExports.jsx("span",Object.assign({className:typeof eo=="number"?"json-view--index":"json-view--property"},{children:eo})),":"," ",jsxRuntimeExports.jsx(JsonNode,{node:to,depth:ro+1,deleteHandle:oo,editHandle:io,parent:no,indexOrName:eo})]}))}var _path$5,_path2$4;function _extends$5(){return _extends$5=Object.assign?Object.assign.bind():function(eo){for(var to=1;to{eo[_o]=Eo,uo&&uo({newValue:Eo,oldValue:So,depth:ro,src:lo,indexOrName:_o,parentType:"array"}),co&&co({type:"edit",depth:ro,src:lo,indexOrName:_o,parentType:"array"}),fo()},[to,uo,co,fo]),bo=_o=>{eo.splice(_o,1),fo()},xo=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!po&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>go(!0),className:"jv-size-chevron"},{children:[ifDisplay(ho,ro,po)&&jsxRuntimeExports.jsxs("span",Object.assign({className:"jv-size"},{children:[objectSize(to)," Items"]})),jsxRuntimeExports.jsx(SvgAngleDown,{className:"jv-chevron"})]})),!po&&ao&&customCopy(io)&&jsxRuntimeExports.jsx(CopyButton$1,{node:to})]});return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("span",{children:"["}),xo,po?jsxRuntimeExports.jsxs("button",Object.assign({onClick:()=>go(!1),className:"jv-button"},{children:[so," ... ",so+to.length-1]})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:to.map((_o,Eo)=>jsxRuntimeExports.jsx(NameValue,{indexOrName:Eo+so,value:_o,depth:ro,parent:to,deleteHandle:bo,editHandle:vo},String(no)+String(Eo)))})),jsxRuntimeExports.jsx("span",{children:"]"})]})}function LargeArray({node:eo,depth:to,deleteHandle:ro,indexOrName:no,customOptions:oo}){const io=[];for(let Mo=0;Mo{_o(isCollapsed_largeArray(eo,to,no,so,lo,oo))},[so,lo]);const[Eo,So]=reactExports.useState(!1),To=()=>{So(!1),ro&&ro(no),co&&co({value:eo,depth:to,src:fo,indexOrName:no,parentType:"array"}),go&&go({type:"delete",depth:to,src:fo,indexOrName:no,parentType:"array"})},[wo,Co]=reactExports.useState(!1),Oo=()=>{const Mo=eo;Mo.push(null),ho&&ho({indexOrName:Mo.length-1,depth:to,src:fo,parentType:"array"}),go&&go({type:"add",indexOrName:Mo.length-1,depth:to,src:fo,parentType:"array"}),vo()},Ao=Eo||wo,Ro=()=>{So(!1),Co(!1)},No=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!xo&&!Ao&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>_o(!0),className:"jv-size-chevron"},{children:[ifDisplay(bo,to,xo)&&jsxRuntimeExports.jsxs("span",Object.assign({className:"jv-size"},{children:[eo.length," Items"]})),jsxRuntimeExports.jsx(SvgAngleDown,{className:"jv-chevron"})]})),Ao&&jsxRuntimeExports.jsx(SvgDone,{className:"json-view--edit",style:{display:"inline-block"},onClick:wo?Oo:To}),Ao&&jsxRuntimeExports.jsx(SvgCancel,{className:"json-view--edit",style:{display:"inline-block"},onClick:Ro}),!xo&&!Ao&&ao&&customCopy(oo)&&jsxRuntimeExports.jsx(CopyButton$1,{node:eo}),!xo&&!Ao&&editableAdd(uo)&&customAdd(oo)&&jsxRuntimeExports.jsx(SvgAddSquare,{className:"json-view--edit",onClick:()=>{Oo()}}),!xo&&!Ao&&editableDelete(uo)&&customDelete(oo)&&ro&&jsxRuntimeExports.jsx(SvgTrash,{className:"json-view--edit",onClick:()=>So(!0)})]});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"["}),No,xo?jsxRuntimeExports.jsx("button",Object.assign({onClick:()=>_o(!1),className:"jv-button"},{children:"..."})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:io.map((Mo,Do)=>jsxRuntimeExports.jsx(LargeArrayNode,{originNode:eo,node:Mo,depth:to,index:Do,startIndex:Do*100},String(no)+String(Do)))})),jsxRuntimeExports.jsx("span",{children:"]"}),xo&&ifDisplay(bo,to,xo)&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>_o(!1),className:"jv-size"},{children:[eo.length," Items"]}))]})}function ObjectNode({node:eo,depth:to,indexOrName:ro,deleteHandle:no,customOptions:oo}){const{collapsed:io,enableClipboard:so,ignoreLargeArray:ao,collapseObjectsAfterLength:lo,editable:uo,onDelete:co,src:fo,onAdd:ho,onEdit:po,onChange:go,forceUpdate:vo,displaySize:bo}=reactExports.useContext(JsonViewContext);if(!ao&&Array.isArray(eo)&&eo.length>100)return jsxRuntimeExports.jsx(LargeArray,{node:eo,depth:to,indexOrName:ro,deleteHandle:no,customOptions:oo});const xo=isObject(eo),[_o,Eo]=reactExports.useState(isCollapsed(eo,to,ro,io,lo,oo));reactExports.useEffect(()=>{Eo(isCollapsed(eo,to,ro,io,lo,oo))},[io,lo]);const So=reactExports.useCallback((Lo,Ho,qo)=>{Array.isArray(eo)?eo[+Lo]=Ho:eo&&(eo[Lo]=Ho),po&&po({newValue:Ho,oldValue:qo,depth:to,src:fo,indexOrName:Lo,parentType:xo?"object":"array"}),go&&go({type:"edit",depth:to,src:fo,indexOrName:Lo,parentType:xo?"object":"array"}),vo()},[eo,po,go,vo]),To=Lo=>{Array.isArray(eo)?eo.splice(+Lo,1):eo&&delete eo[Lo],vo()},[wo,Co]=reactExports.useState(!1),Oo=()=>{Co(!1),no&&no(ro),co&&co({value:eo,depth:to,src:fo,indexOrName:ro,parentType:xo?"object":"array"}),go&&go({type:"delete",depth:to,src:fo,indexOrName:ro,parentType:xo?"object":"array"})},[Ao,Ro]=reactExports.useState(!1),No=reactExports.useRef(null),Mo=()=>{var Lo;if(xo){const Ho=(Lo=No.current)===null||Lo===void 0?void 0:Lo.value;Ho&&(eo[Ho]=null,No.current&&(No.current.value=""),Ro(!1),ho&&ho({indexOrName:Ho,depth:to,src:fo,parentType:"object"}),go&&go({type:"add",indexOrName:Ho,depth:to,src:fo,parentType:"object"}))}else if(Array.isArray(eo)){const Ho=eo;Ho.push(null),ho&&ho({indexOrName:Ho.length-1,depth:to,src:fo,parentType:"array"}),go&&go({type:"add",indexOrName:Ho.length-1,depth:to,src:fo,parentType:"array"})}vo()},Do=Lo=>{Lo.key==="Enter"?(Lo.preventDefault(),Mo()):Lo.key==="Escape"&&Fo()},jo=wo||Ao,Fo=()=>{Co(!1),Ro(!1)},$o=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!_o&&!jo&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>Eo(!0),className:"jv-size-chevron"},{children:[ifDisplay(bo,to,_o)&&jsxRuntimeExports.jsxs("span",Object.assign({className:"jv-size"},{children:[objectSize(eo)," Items"]})),jsxRuntimeExports.jsx(SvgAngleDown,{className:"jv-chevron"})]})),Ao&&xo&&jsxRuntimeExports.jsx("input",{className:"json-view--input",placeholder:"property",ref:No,onKeyDown:Do}),jo&&jsxRuntimeExports.jsx(SvgDone,{className:"json-view--edit",style:{display:"inline-block"},onClick:Ao?Mo:Oo}),jo&&jsxRuntimeExports.jsx(SvgCancel,{className:"json-view--edit",style:{display:"inline-block"},onClick:Fo}),!_o&&!jo&&so&&customCopy(oo)&&jsxRuntimeExports.jsx(CopyButton$1,{node:eo}),!_o&&!jo&&editableAdd(uo)&&customAdd(oo)&&jsxRuntimeExports.jsx(SvgAddSquare,{className:"json-view--edit",onClick:()=>{xo?(Ro(!0),setTimeout(()=>{var Lo;return(Lo=No.current)===null||Lo===void 0?void 0:Lo.focus()})):Mo()}}),!_o&&!jo&&editableDelete(uo)&&customDelete(oo)&&no&&jsxRuntimeExports.jsx(SvgTrash,{className:"json-view--edit",onClick:()=>Co(!0)})]});return Array.isArray(eo)?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"["}),$o,_o?jsxRuntimeExports.jsx("button",Object.assign({onClick:()=>Eo(!1),className:"jv-button"},{children:"..."})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:eo.map((Lo,Ho)=>jsxRuntimeExports.jsx(NameValue,{indexOrName:Ho,value:Lo,depth:to,parent:eo,deleteHandle:To,editHandle:So},String(ro)+String(Ho)))})),jsxRuntimeExports.jsx("span",{children:"]"}),_o&&ifDisplay(bo,to,_o)&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>Eo(!1),className:"jv-size"},{children:[objectSize(eo)," Items"]}))]}):xo?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"{"}),$o,_o?jsxRuntimeExports.jsx("button",Object.assign({onClick:()=>Eo(!1),className:"jv-button"},{children:"..."})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:Object.entries(eo).map(([Lo,Ho])=>jsxRuntimeExports.jsx(NameValue,{indexOrName:Lo,value:Ho,depth:to,parent:eo,deleteHandle:To,editHandle:So},String(ro)+String(Lo)))})),jsxRuntimeExports.jsx("span",{children:"}"}),_o&&ifDisplay(bo,to,_o)&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>Eo(!1),className:"jv-size"},{children:[objectSize(eo)," Items"]}))]}):null}const LongString=React.forwardRef(({str:eo,className:to,ctrlClick:ro},no)=>{let{collapseStringMode:oo,collapseStringsAfterLength:io,customizeCollapseStringUI:so}=reactExports.useContext(JsonViewContext);const[ao,lo]=reactExports.useState(!0),uo=reactExports.useRef(null);io=io>0?io:0;const co=eo.replace(/\s+/g," "),fo=typeof so=="function"?so(co,ao):typeof so=="string"?so:"...",ho=po=>{var go;if((po.ctrlKey||po.metaKey)&&ro)ro(po);else{const vo=window.getSelection();if(vo&&vo.anchorOffset!==vo.focusOffset&&((go=vo.anchorNode)===null||go===void 0?void 0:go.parentElement)===uo.current)return;lo(!ao)}};if(eo.length<=io)return jsxRuntimeExports.jsxs("span",Object.assign({ref:uo,className:to,onClick:ro},{children:['"',eo,'"']}));if(oo==="address")return eo.length<=10?jsxRuntimeExports.jsxs("span",Object.assign({ref:uo,className:to,onClick:ro},{children:['"',eo,'"']})):jsxRuntimeExports.jsxs("span",Object.assign({ref:uo,onClick:ho,className:to+" cursor-pointer"},{children:['"',ao?[co.slice(0,6),fo,co.slice(-4)]:eo,'"']}));if(oo==="directly")return jsxRuntimeExports.jsxs("span",Object.assign({ref:uo,onClick:ho,className:to+" cursor-pointer"},{children:['"',ao?[co.slice(0,io),fo]:eo,'"']}));if(oo==="word"){let po=io,go=io+1,vo=co,bo=1;for(;;){if(/\W/.test(eo[po])){vo=eo.slice(0,po);break}if(/\W/.test(eo[go])){vo=eo.slice(0,go);break}if(bo===6){vo=eo.slice(0,io);break}bo++,po--,go++}return jsxRuntimeExports.jsxs("span",Object.assign({ref:uo,onClick:ho,className:to+" cursor-pointer"},{children:['"',ao?[vo,fo]:eo,'"']}))}return jsxRuntimeExports.jsxs("span",Object.assign({ref:uo,className:to},{children:['"',eo,'"']}))});var _path$1;function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(eo){for(var to=1;to{setEditing(!0),setTimeout(()=>{var eo,to;(eo=window.getSelection())===null||eo===void 0||eo.selectAllChildren(valueRef.current),(to=valueRef.current)===null||to===void 0||to.focus()})},done=reactExports.useCallback(()=>{let newValue=valueRef.current.innerText;try{(newValue==="{}"||newValue==="[]")&&(newValue=`(${newValue})`);const evalValue=eval(newValue);editHandle&&editHandle(indexOrName,evalValue,node)}catch(eo){const to=resolveEvalFailedNewValue(type,newValue);editHandle&&editHandle(indexOrName,to,node)}setEditing(!1)},[editHandle]),cancel=()=>{setEditing(!1),setDeleting(!1)},deleteHandle=()=>{setDeleting(!1),_deleteHandle&&_deleteHandle(indexOrName),onDelete&&onDelete({value:node,depth,src,indexOrName,parentType:Array.isArray(parent)?"array":"object"}),onChange&&onChange({depth,src,indexOrName,parentType:Array.isArray(parent)?"array":"object",type:"delete"})},handleKeyDown=reactExports.useCallback(eo=>{eo.key==="Enter"?(eo.preventDefault(),done()):eo.key==="Escape"&&cancel()},[done]),isEditing=editing||deleting,ctrlClick=!isEditing&&editableEdit(editable)&&customEdit(customReturn)&&editHandle?eo=>{(eo.ctrlKey||eo.metaKey)&&edit()}:void 0,Icons=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[isEditing&&jsxRuntimeExports.jsx(SvgDone,{className:"json-view--edit",style:{display:"inline-block"},onClick:deleting?deleteHandle:done}),isEditing&&jsxRuntimeExports.jsx(SvgCancel,{className:"json-view--edit",style:{display:"inline-block"},onClick:cancel}),!isEditing&&enableClipboard&&customCopy(customReturn)&&jsxRuntimeExports.jsx(CopyButton$1,{node}),!isEditing&&matchesURL&&type==="string"&&urlRegExp.test(node)&&customMatchesURL(customReturn)&&jsxRuntimeExports.jsx("a",Object.assign({href:node,target:"_blank",className:"json-view--link"},{children:jsxRuntimeExports.jsx(SvgLink,{})})),!isEditing&&editableEdit(editable)&&customEdit(customReturn)&&editHandle&&jsxRuntimeExports.jsx(SvgEdit,{className:"json-view--edit",onClick:edit}),!isEditing&&editableDelete(editable)&&customDelete(customReturn)&&_deleteHandle&&jsxRuntimeExports.jsx(SvgTrash,{className:"json-view--edit",onClick:()=>setDeleting(!0)})]});let className="json-view--string";switch(typeof(customReturn==null?void 0:customReturn.className)=="string"&&(className+=" "+customReturn.className),type){case"number":case"bigint":className="json-view--number";break;case"boolean":className="json-view--boolean";break;case"object":className="json-view--null";break}deleting&&(className+=" json-view--deleting");let displayValue=String(node);type==="bigint"&&(displayValue+="n");const EditingElement=reactExports.useMemo(()=>jsxRuntimeExports.jsx("span",{contentEditable:!0,className,dangerouslySetInnerHTML:{__html:type==="string"?`"${displayValue}"`:displayValue},ref:valueRef,onKeyDown:handleKeyDown}),[displayValue,type,handleKeyDown]);return type==="string"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[editing?EditingElement:node.length>collapseStringsAfterLength?jsxRuntimeExports.jsx(LongString,{str:node,ref:valueRef,className,ctrlClick}):jsxRuntimeExports.jsxs("span",Object.assign({className,onClick:ctrlClick},{children:['"',displayValue,'"']})),Icons]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[editing?EditingElement:jsxRuntimeExports.jsx("span",Object.assign({className,onClick:ctrlClick},{children:displayValue})),Icons]})}}const defaultURLRegExp=/^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^&*?.\s])?\.)+[a-z]{2,6}\/?/,JsonViewContext=reactExports.createContext({src:void 0,collapseStringsAfterLength:99,collapseStringMode:"directly",customizeCollapseStringUI:void 0,collapseObjectsAfterLength:20,collapsed:!1,enableClipboard:!0,editable:!1,onEdit:void 0,onDelete:void 0,onAdd:void 0,onChange:void 0,forceUpdate:()=>{},customizeNode:void 0,customizeCopy:()=>{},displaySize:void 0,matchesURL:!1,urlRegExp:defaultURLRegExp,ignoreLargeArray:!1});function JsonView({src:eo,collapseStringsAfterLength:to=99,collapseStringMode:ro="directly",customizeCollapseStringUI:no,collapseObjectsAfterLength:oo=99,collapsed:io,enableClipboard:so=!0,editable:ao=!1,onEdit:lo,onDelete:uo,onAdd:co,onChange:fo,dark:ho=!1,theme:po="default",customizeNode:go,customizeCopy:vo=stringifyForCopying,displaySize:bo,style:xo,className:_o,matchesURL:Eo=!1,urlRegExp:So=defaultURLRegExp,ignoreLargeArray:To=!1}){const[wo,Co]=reactExports.useState(0),Oo=reactExports.useCallback(()=>Co(No=>++No),[]),[Ao,Ro]=reactExports.useState(eo);return reactExports.useEffect(()=>Ro(eo),[eo]),jsxRuntimeExports.jsx(JsonViewContext.Provider,Object.assign({value:{src:Ao,collapseStringsAfterLength:to,collapseStringMode:ro,customizeCollapseStringUI:no,collapseObjectsAfterLength:oo,collapsed:io,enableClipboard:so,editable:ao,onEdit:lo,onDelete:uo,onAdd:co,onChange:fo,forceUpdate:Oo,customizeNode:go,customizeCopy:vo,displaySize:bo,matchesURL:Eo,urlRegExp:So,ignoreLargeArray:To}},{children:jsxRuntimeExports.jsx("code",Object.assign({className:"json-view"+(ho?" dark":"")+(po&&po!=="default"?" json-view_"+po:"")+(_o?" "+_o:""),style:xo},{children:jsxRuntimeExports.jsx(JsonNode,{node:Ao,depth:1,editHandle:(No,Mo,Do)=>{Ro(Mo),lo&&lo({newValue:Mo,oldValue:Do,depth:1,src:Ao,indexOrName:No,parentType:null}),fo&&fo({type:"edit",depth:1,src:Ao,indexOrName:No,parentType:null})},deleteHandle:()=>{Ro(void 0),uo&&uo({value:Ao,depth:1,src:Ao,indexOrName:"",parentType:null}),fo&&fo({depth:1,src:Ao,indexOrName:"",parentType:null,type:"delete"})}})}))}))}const JsonViewer=eo=>{const{useCustomCollapse:to=!0,...ro}=eo;return jsxRuntimeExports.jsx(JsonView,{customizeCollapseStringUI:to?()=>jsxRuntimeExports.jsx(ExpandButton,{}):void 0,...ro})},ExpandButton=()=>{const eo=useClasses$l();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["...",jsxRuntimeExports.jsxs("div",{className:eo.btn,children:[jsxRuntimeExports.jsx(ChevronDown16Regular,{className:eo.icon}),jsxRuntimeExports.jsx("span",{className:eo.text,children:"view all"})]})]})},useClasses$l=makeStyles({btn:{display:"inline-flex",pointer:"cursor",alignItems:"center",...shorthands.padding(0),paddingLeft:"4px",...shorthands.margin(0),fontWeight:400,color:"#A3BEE9"},icon:{height:"12px",width:"12px",...shorthands.padding(0),...shorthands.margin(0)},text:{fontSize:"12px",...shorthands.padding(0),...shorthands.margin(0)}}),JsonNodeCard=({title:eo,src:to,wrapperStyle:ro={},status:no=ViewStatus.loaded,errorTip:oo=null,jsonViewerProps:io={}})=>{let so="";if(typeof to=="string")try{so=JSON.parse(to)}catch{so=to}else typeof to=="object"&&(so=to);const ao=useIsDark();return jsxRuntimeExports.jsxs(Card,{style:{marginBottom:12,...ro},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:eo})})}),no===ViewStatus.loading&&jsxRuntimeExports.jsx(Spinner,{size:"tiny"}),no===ViewStatus.loaded&&jsxRuntimeExports.jsx(JsonViewer,{src:so,theme:"vscode",dark:ao,...io}),no===ViewStatus.error&&oo]})},DefaultNodeInfo=()=>{var go,vo,bo,xo;const eo=useSelectedSpan(),to=(go=getSpanType(eo))==null?void 0:go.toLocaleLowerCase(),ro=useLocStrings(),[no,oo]=reactExports.useState(ViewStatus.loading),[io,so]=reactExports.useState(ViewStatus.loading),ao=useSpanEventsWithPayload(eo,BuildInEventName["function.inputs"]),lo=useSpanEventsWithPayload(eo,BuildInEventName["llm.generated_message"]),uo=useLoadSpanEvents(eo,BuildInEventName["function.inputs"]),co=useLoadSpanEvents(eo,BuildInEventName["llm.generated_message"]);let fo=useSpanEventsWithPayload(eo,BuildInEventName["function.output"]),ho=useLoadSpanEvents(eo,BuildInEventName["function.output"]);to==="llm"&&fo.length===0&&(fo=lo,ho=co);let po=(vo=eo==null?void 0:eo.attributes)==null?void 0:vo.output;return to==="llm"&&(po=po??((bo=eo==null?void 0:eo.attributes)==null?void 0:bo["llm.generated_message"])),reactExports.useEffect(()=>{uo({onCompleted:_o=>{oo(_o?ViewStatus.error:ViewStatus.loaded)}}),ho({onCompleted:_o=>{so(_o?ViewStatus.error:ViewStatus.loaded)}})},[]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[ao.length>0?jsxRuntimeExports.jsx(JsonNodeCard,{title:ro.Input,status:no,src:ao.length===1?ao[0].attributes:ao,errorTip:jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{oo(ViewStatus.loading),uo({onCompleted:_o=>{oo(_o?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})}):jsxRuntimeExports.jsx(JsonNodeCard,{title:ro.Input,src:(xo=eo==null?void 0:eo.attributes)==null?void 0:xo.inputs}),fo.length>0?jsxRuntimeExports.jsx(JsonNodeCard,{title:ro.Output,status:io,src:fo.length===1?fo[0].attributes:fo,errorTip:jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{so(ViewStatus.loading),ho({onCompleted:_o=>{so(_o?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})}):jsxRuntimeExports.jsx(JsonNodeCard,{title:ro.Output,src:po})]})},DefaultNodeLoadError=({onRetry:eo})=>{const to=useLocStrings();return jsxRuntimeExports.jsx(Button$2,{appearance:"transparent",icon:jsxRuntimeExports.jsx(ErrorCircle16Filled,{style:{color:tokens.colorStatusDangerForeground1}}),style:{fontWeight:400},onClick:eo,children:to["Failed to load, click to try again"]})},BlockquoteType="blockquote",BreakType="break",CodeType="code",DefinitionType="definition",DeleteType="delete",EmphasisType="emphasis",HeadingType="heading",HtmlType="html";var HtmlContentType;(function(eo){eo.CDATA="cdata",eo.Closing="closing",eo.Comment="comment",eo.Declaration="declaration",eo.Instruction="instruction",eo.Open="open"})(HtmlContentType||(HtmlContentType={}));const ImageReferenceType="imageReference",ImageType$1="image",InlineCodeType="inlineCode",LinkReferenceType="linkReference",LinkType="link",ListItemType="listItem";var TaskStatus;(function(eo){eo.TODO="todo",eo.DOING="doing",eo.DONE="done"})(TaskStatus||(TaskStatus={}));const ListType="list",ParagraphType$1="paragraph",StrongType="strong",TableType="table",TextType$1="text",ThematicBreakType="thematicBreak";var AsciiCodePoint;(function(eo){eo[eo.NUL=0]="NUL",eo[eo.SOH=1]="SOH",eo[eo.STX=2]="STX",eo[eo.ETX=3]="ETX",eo[eo.EOT=4]="EOT",eo[eo.ENQ=5]="ENQ",eo[eo.ACK=6]="ACK",eo[eo.BEL=7]="BEL",eo[eo.BS=8]="BS",eo[eo.HT=9]="HT",eo[eo.LF=10]="LF",eo[eo.VT=11]="VT",eo[eo.FF=12]="FF",eo[eo.CR=13]="CR",eo[eo.SO=14]="SO",eo[eo.SI=15]="SI",eo[eo.DLE=16]="DLE",eo[eo.DC1=17]="DC1",eo[eo.DC2=18]="DC2",eo[eo.DC3=19]="DC3",eo[eo.DC4=20]="DC4",eo[eo.NAK=21]="NAK",eo[eo.SYN=22]="SYN",eo[eo.ETB=23]="ETB",eo[eo.CAN=24]="CAN",eo[eo.EM=25]="EM",eo[eo.SUB=26]="SUB",eo[eo.ESC=27]="ESC",eo[eo.FS=28]="FS",eo[eo.GS=29]="GS",eo[eo.RS=30]="RS",eo[eo.US=31]="US",eo[eo.SPACE=32]="SPACE",eo[eo.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",eo[eo.DOUBLE_QUOTE=34]="DOUBLE_QUOTE",eo[eo.NUMBER_SIGN=35]="NUMBER_SIGN",eo[eo.DOLLAR_SIGN=36]="DOLLAR_SIGN",eo[eo.PERCENT_SIGN=37]="PERCENT_SIGN",eo[eo.AMPERSAND=38]="AMPERSAND",eo[eo.SINGLE_QUOTE=39]="SINGLE_QUOTE",eo[eo.OPEN_PARENTHESIS=40]="OPEN_PARENTHESIS",eo[eo.CLOSE_PARENTHESIS=41]="CLOSE_PARENTHESIS",eo[eo.ASTERISK=42]="ASTERISK",eo[eo.PLUS_SIGN=43]="PLUS_SIGN",eo[eo.COMMA=44]="COMMA",eo[eo.MINUS_SIGN=45]="MINUS_SIGN",eo[eo.DOT=46]="DOT",eo[eo.SLASH=47]="SLASH",eo[eo.DIGIT0=48]="DIGIT0",eo[eo.DIGIT1=49]="DIGIT1",eo[eo.DIGIT2=50]="DIGIT2",eo[eo.DIGIT3=51]="DIGIT3",eo[eo.DIGIT4=52]="DIGIT4",eo[eo.DIGIT5=53]="DIGIT5",eo[eo.DIGIT6=54]="DIGIT6",eo[eo.DIGIT7=55]="DIGIT7",eo[eo.DIGIT8=56]="DIGIT8",eo[eo.DIGIT9=57]="DIGIT9",eo[eo.COLON=58]="COLON",eo[eo.SEMICOLON=59]="SEMICOLON",eo[eo.OPEN_ANGLE=60]="OPEN_ANGLE",eo[eo.EQUALS_SIGN=61]="EQUALS_SIGN",eo[eo.CLOSE_ANGLE=62]="CLOSE_ANGLE",eo[eo.QUESTION_MARK=63]="QUESTION_MARK",eo[eo.AT_SIGN=64]="AT_SIGN",eo[eo.UPPERCASE_A=65]="UPPERCASE_A",eo[eo.UPPERCASE_B=66]="UPPERCASE_B",eo[eo.UPPERCASE_C=67]="UPPERCASE_C",eo[eo.UPPERCASE_D=68]="UPPERCASE_D",eo[eo.UPPERCASE_E=69]="UPPERCASE_E",eo[eo.UPPERCASE_F=70]="UPPERCASE_F",eo[eo.UPPERCASE_G=71]="UPPERCASE_G",eo[eo.UPPERCASE_H=72]="UPPERCASE_H",eo[eo.UPPERCASE_I=73]="UPPERCASE_I",eo[eo.UPPERCASE_J=74]="UPPERCASE_J",eo[eo.UPPERCASE_K=75]="UPPERCASE_K",eo[eo.UPPERCASE_L=76]="UPPERCASE_L",eo[eo.UPPERCASE_M=77]="UPPERCASE_M",eo[eo.UPPERCASE_N=78]="UPPERCASE_N",eo[eo.UPPERCASE_O=79]="UPPERCASE_O",eo[eo.UPPERCASE_P=80]="UPPERCASE_P",eo[eo.UPPERCASE_Q=81]="UPPERCASE_Q",eo[eo.UPPERCASE_R=82]="UPPERCASE_R",eo[eo.UPPERCASE_S=83]="UPPERCASE_S",eo[eo.UPPERCASE_T=84]="UPPERCASE_T",eo[eo.UPPERCASE_U=85]="UPPERCASE_U",eo[eo.UPPERCASE_V=86]="UPPERCASE_V",eo[eo.UPPERCASE_W=87]="UPPERCASE_W",eo[eo.UPPERCASE_X=88]="UPPERCASE_X",eo[eo.UPPERCASE_Y=89]="UPPERCASE_Y",eo[eo.UPPERCASE_Z=90]="UPPERCASE_Z",eo[eo.OPEN_BRACKET=91]="OPEN_BRACKET",eo[eo.BACKSLASH=92]="BACKSLASH",eo[eo.CLOSE_BRACKET=93]="CLOSE_BRACKET",eo[eo.CARET=94]="CARET",eo[eo.UNDERSCORE=95]="UNDERSCORE",eo[eo.BACKTICK=96]="BACKTICK",eo[eo.LOWERCASE_A=97]="LOWERCASE_A",eo[eo.LOWERCASE_B=98]="LOWERCASE_B",eo[eo.LOWERCASE_C=99]="LOWERCASE_C",eo[eo.LOWERCASE_D=100]="LOWERCASE_D",eo[eo.LOWERCASE_E=101]="LOWERCASE_E",eo[eo.LOWERCASE_F=102]="LOWERCASE_F",eo[eo.LOWERCASE_G=103]="LOWERCASE_G",eo[eo.LOWERCASE_H=104]="LOWERCASE_H",eo[eo.LOWERCASE_I=105]="LOWERCASE_I",eo[eo.LOWERCASE_J=106]="LOWERCASE_J",eo[eo.LOWERCASE_K=107]="LOWERCASE_K",eo[eo.LOWERCASE_L=108]="LOWERCASE_L",eo[eo.LOWERCASE_M=109]="LOWERCASE_M",eo[eo.LOWERCASE_N=110]="LOWERCASE_N",eo[eo.LOWERCASE_O=111]="LOWERCASE_O",eo[eo.LOWERCASE_P=112]="LOWERCASE_P",eo[eo.LOWERCASE_Q=113]="LOWERCASE_Q",eo[eo.LOWERCASE_R=114]="LOWERCASE_R",eo[eo.LOWERCASE_S=115]="LOWERCASE_S",eo[eo.LOWERCASE_T=116]="LOWERCASE_T",eo[eo.LOWERCASE_U=117]="LOWERCASE_U",eo[eo.LOWERCASE_V=118]="LOWERCASE_V",eo[eo.LOWERCASE_W=119]="LOWERCASE_W",eo[eo.LOWERCASE_X=120]="LOWERCASE_X",eo[eo.LOWERCASE_Y=121]="LOWERCASE_Y",eo[eo.LOWERCASE_Z=122]="LOWERCASE_Z",eo[eo.OPEN_BRACE=123]="OPEN_BRACE",eo[eo.VERTICAL_SLASH=124]="VERTICAL_SLASH",eo[eo.CLOSE_BRACE=125]="CLOSE_BRACE",eo[eo.TILDE=126]="TILDE",eo[eo.DELETE=127]="DELETE"})(AsciiCodePoint||(AsciiCodePoint={}));const foldingCaseCodeMap={µ:"μ",À:"à",Á:"á",Â:"â",Ã:"ã",Ä:"ä",Å:"å",Æ:"æ",Ç:"ç",È:"è",É:"é",Ê:"ê",Ë:"ë",Ì:"ì",Í:"í",Î:"î",Ï:"ï",Ð:"ð",Ñ:"ñ",Ò:"ò",Ó:"ó",Ô:"ô",Õ:"õ",Ö:"ö",Ø:"ø",Ù:"ù",Ú:"ú",Û:"û",Ü:"ü",Ý:"ý",Þ:"þ",Ā:"ā",Ă:"ă",Ą:"ą",Ć:"ć",Ĉ:"ĉ",Ċ:"ċ",Č:"č",Ď:"ď",Đ:"đ",Ē:"ē",Ĕ:"ĕ",Ė:"ė",Ę:"ę",Ě:"ě",Ĝ:"ĝ",Ğ:"ğ",Ġ:"ġ",Ģ:"ģ",Ĥ:"ĥ",Ħ:"ħ",Ĩ:"ĩ",Ī:"ī",Ĭ:"ĭ",Į:"į",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",ﬓ:"մն",ﬔ:"մե",ﬕ:"մի",ﬖ:"վն",ﬗ:"մխ"},entityReferences=[{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 UnicodePcCodePoint;(function(eo){eo[eo.LOW_LINE=95]="LOW_LINE",eo[eo.UNDERTIE=8255]="UNDERTIE",eo[eo.CHARACTER_TIE=8256]="CHARACTER_TIE",eo[eo.INVERTED_UNDERTIE=8276]="INVERTED_UNDERTIE",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LOW_LINE=65075]="PRESENTATION_FORM_FOR_VERTICAL_LOW_LINE",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_WAVY_LOW_LINE=65076]="PRESENTATION_FORM_FOR_VERTICAL_WAVY_LOW_LINE",eo[eo.DASHED_LOW_LINE=65101]="DASHED_LOW_LINE",eo[eo.CENTRELINE_LOW_LINE=65102]="CENTRELINE_LOW_LINE",eo[eo.WAVY_LOW_LINE=65103]="WAVY_LOW_LINE",eo[eo.FULLWIDTH_LOW_LINE=65343]="FULLWIDTH_LOW_LINE"})(UnicodePcCodePoint||(UnicodePcCodePoint={}));var UnicodePdCodePoint;(function(eo){eo[eo.HYPHEN_MINUS=45]="HYPHEN_MINUS",eo[eo.ARMENIAN_HYPHEN=1418]="ARMENIAN_HYPHEN",eo[eo.HEBREW_PUNCTUATION_MAQAF=1470]="HEBREW_PUNCTUATION_MAQAF",eo[eo.CANADIAN_SYLLABICS_HYPHEN=5120]="CANADIAN_SYLLABICS_HYPHEN",eo[eo.MONGOLIAN_TODO_SOFT_HYPHEN=6150]="MONGOLIAN_TODO_SOFT_HYPHEN",eo[eo.HYPHEN=8208]="HYPHEN",eo[eo.NON_BREAKING_HYPHEN=8209]="NON_BREAKING_HYPHEN",eo[eo.FIGURE_DASH=8210]="FIGURE_DASH",eo[eo.EN_DASH=8211]="EN_DASH",eo[eo.EM_DASH=8212]="EM_DASH",eo[eo.HORIZONTAL_BAR=8213]="HORIZONTAL_BAR",eo[eo.DOUBLE_OBLIQUE_HYPHEN=11799]="DOUBLE_OBLIQUE_HYPHEN",eo[eo.HYPHEN_WITH_DIAERESIS=11802]="HYPHEN_WITH_DIAERESIS",eo[eo.TWO_EM_DASH=11834]="TWO_EM_DASH",eo[eo.THREE_EM_DASH=11835]="THREE_EM_DASH",eo[eo.DOUBLE_HYPHEN=11840]="DOUBLE_HYPHEN",eo[eo.WAVE_DASH=12316]="WAVE_DASH",eo[eo.WAVY_DASH=12336]="WAVY_DASH",eo[eo.KATAKANA_HIRAGANA_DOUBLE_HYPHEN=12448]="KATAKANA_HIRAGANA_DOUBLE_HYPHEN",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_EM_DASH=65073]="PRESENTATION_FORM_FOR_VERTICAL_EM_DASH",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_EN_DASH=65074]="PRESENTATION_FORM_FOR_VERTICAL_EN_DASH",eo[eo.SMALL_EM_DASH=65112]="SMALL_EM_DASH",eo[eo.SMALL_HYPHEN_MINUS=65123]="SMALL_HYPHEN_MINUS",eo[eo.FULLWIDTH_HYPHEN_MINUS=65293]="FULLWIDTH_HYPHEN_MINUS",eo[eo.YEZIDI_HYPHENATION_MARK=69293]="YEZIDI_HYPHENATION_MARK"})(UnicodePdCodePoint||(UnicodePdCodePoint={}));var UnicodePeCodePoint;(function(eo){eo[eo.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",eo[eo.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",eo[eo.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",eo[eo.TIBETAN_MARK_GUG_RTAGS_GYAS=3899]="TIBETAN_MARK_GUG_RTAGS_GYAS",eo[eo.TIBETAN_MARK_ANG_KHANG_GYAS=3901]="TIBETAN_MARK_ANG_KHANG_GYAS",eo[eo.OGHAM_REVERSED_FEATHER_MARK=5788]="OGHAM_REVERSED_FEATHER_MARK",eo[eo.RIGHT_SQUARE_BRACKET_WITH_QUILL=8262]="RIGHT_SQUARE_BRACKET_WITH_QUILL",eo[eo.SUPERSCRIPT_RIGHT_PARENTHESIS=8318]="SUPERSCRIPT_RIGHT_PARENTHESIS",eo[eo.SUBSCRIPT_RIGHT_PARENTHESIS=8334]="SUBSCRIPT_RIGHT_PARENTHESIS",eo[eo.RIGHT_CEILING=8969]="RIGHT_CEILING",eo[eo.RIGHT_FLOOR=8971]="RIGHT_FLOOR",eo[eo.RIGHT_POINTING_ANGLE_BRACKET=9002]="RIGHT_POINTING_ANGLE_BRACKET",eo[eo.MEDIUM_RIGHT_PARENTHESIS_ORNAMENT=10089]="MEDIUM_RIGHT_PARENTHESIS_ORNAMENT",eo[eo.MEDIUM_FLATTENED_RIGHT_PARENTHESIS_ORNAMENT=10091]="MEDIUM_FLATTENED_RIGHT_PARENTHESIS_ORNAMENT",eo[eo.MEDIUM_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT=10093]="MEDIUM_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT",eo[eo.HEAVY_RIGHT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT=10095]="HEAVY_RIGHT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT",eo[eo.HEAVY_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT=10097]="HEAVY_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT",eo[eo.LIGHT_RIGHT_TORTOISE_SHELL_BRACKET_ORNAMENT=10099]="LIGHT_RIGHT_TORTOISE_SHELL_BRACKET_ORNAMENT",eo[eo.MEDIUM_RIGHT_CURLY_BRACKET_ORNAMENT=10101]="MEDIUM_RIGHT_CURLY_BRACKET_ORNAMENT",eo[eo.RIGHT_S_SHAPED_BAG_DELIMITER=10182]="RIGHT_S_SHAPED_BAG_DELIMITER",eo[eo.MATHEMATICAL_RIGHT_WHITE_SQUARE_BRACKET=10215]="MATHEMATICAL_RIGHT_WHITE_SQUARE_BRACKET",eo[eo.MATHEMATICAL_RIGHT_ANGLE_BRACKET=10217]="MATHEMATICAL_RIGHT_ANGLE_BRACKET",eo[eo.MATHEMATICAL_RIGHT_DOUBLE_ANGLE_BRACKET=10219]="MATHEMATICAL_RIGHT_DOUBLE_ANGLE_BRACKET",eo[eo.MATHEMATICAL_RIGHT_WHITE_TORTOISE_SHELL_BRACKET=10221]="MATHEMATICAL_RIGHT_WHITE_TORTOISE_SHELL_BRACKET",eo[eo.MATHEMATICAL_RIGHT_FLATTENED_PARENTHESIS=10223]="MATHEMATICAL_RIGHT_FLATTENED_PARENTHESIS",eo[eo.RIGHT_WHITE_CURLY_BRACKET=10628]="RIGHT_WHITE_CURLY_BRACKET",eo[eo.RIGHT_WHITE_PARENTHESIS=10630]="RIGHT_WHITE_PARENTHESIS",eo[eo.Z_NOTATION_RIGHT_IMAGE_BRACKET=10632]="Z_NOTATION_RIGHT_IMAGE_BRACKET",eo[eo.Z_NOTATION_RIGHT_BINDING_BRACKET=10634]="Z_NOTATION_RIGHT_BINDING_BRACKET",eo[eo.RIGHT_SQUARE_BRACKET_WITH_UNDERBAR=10636]="RIGHT_SQUARE_BRACKET_WITH_UNDERBAR",eo[eo.RIGHT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER=10638]="RIGHT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER",eo[eo.RIGHT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER=10640]="RIGHT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER",eo[eo.RIGHT_ANGLE_BRACKET_WITH_DOT=10642]="RIGHT_ANGLE_BRACKET_WITH_DOT",eo[eo.RIGHT_ARC_GREATER_THAN_BRACKET=10644]="RIGHT_ARC_GREATER_THAN_BRACKET",eo[eo.DOUBLE_RIGHT_ARC_LESS_THAN_BRACKET=10646]="DOUBLE_RIGHT_ARC_LESS_THAN_BRACKET",eo[eo.RIGHT_BLACK_TORTOISE_SHELL_BRACKET=10648]="RIGHT_BLACK_TORTOISE_SHELL_BRACKET",eo[eo.RIGHT_WIGGLY_FENCE=10713]="RIGHT_WIGGLY_FENCE",eo[eo.RIGHT_DOUBLE_WIGGLY_FENCE=10715]="RIGHT_DOUBLE_WIGGLY_FENCE",eo[eo.RIGHT_POINTING_CURVED_ANGLE_BRACKET=10749]="RIGHT_POINTING_CURVED_ANGLE_BRACKET",eo[eo.TOP_RIGHT_HALF_BRACKET=11811]="TOP_RIGHT_HALF_BRACKET",eo[eo.BOTTOM_RIGHT_HALF_BRACKET=11813]="BOTTOM_RIGHT_HALF_BRACKET",eo[eo.RIGHT_SIDEWAYS_U_BRACKET=11815]="RIGHT_SIDEWAYS_U_BRACKET",eo[eo.RIGHT_DOUBLE_PARENTHESIS=11817]="RIGHT_DOUBLE_PARENTHESIS",eo[eo.RIGHT_ANGLE_BRACKET=12297]="RIGHT_ANGLE_BRACKET",eo[eo.RIGHT_DOUBLE_ANGLE_BRACKET=12299]="RIGHT_DOUBLE_ANGLE_BRACKET",eo[eo.RIGHT_CORNER_BRACKET=12301]="RIGHT_CORNER_BRACKET",eo[eo.RIGHT_WHITE_CORNER_BRACKET=12303]="RIGHT_WHITE_CORNER_BRACKET",eo[eo.RIGHT_BLACK_LENTICULAR_BRACKET=12305]="RIGHT_BLACK_LENTICULAR_BRACKET",eo[eo.RIGHT_TORTOISE_SHELL_BRACKET=12309]="RIGHT_TORTOISE_SHELL_BRACKET",eo[eo.RIGHT_WHITE_LENTICULAR_BRACKET=12311]="RIGHT_WHITE_LENTICULAR_BRACKET",eo[eo.RIGHT_WHITE_TORTOISE_SHELL_BRACKET=12313]="RIGHT_WHITE_TORTOISE_SHELL_BRACKET",eo[eo.RIGHT_WHITE_SQUARE_BRACKET=12315]="RIGHT_WHITE_SQUARE_BRACKET",eo[eo.DOUBLE_PRIME_QUOTATION_MARK=12318]="DOUBLE_PRIME_QUOTATION_MARK",eo[eo.LOW_DOUBLE_PRIME_QUOTATION_MARK=12319]="LOW_DOUBLE_PRIME_QUOTATION_MARK",eo[eo.ORNATE_LEFT_PARENTHESIS=64830]="ORNATE_LEFT_PARENTHESIS",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_LENTICULAR_BRAKCET=65048]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_LENTICULAR_BRAKCET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_PARENTHESIS=65078]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_PARENTHESIS",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CURLY_BRACKET=65080]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CURLY_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_TORTOISE_SHELL_BRACKET=65082]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_TORTOISE_SHELL_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_BLACK_LENTICULAR_BRACKET=65084]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_BLACK_LENTICULAR_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_DOUBLE_ANGLE_BRACKET=65086]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_DOUBLE_ANGLE_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_ANGLE_BRACKET=65088]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_ANGLE_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CORNER_BRACKET=65090]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CORNER_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_CORNER_BRACKET=65092]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_CORNER_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_SQUARE_BRACKET=65096]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_SQUARE_BRACKET",eo[eo.SMALL_RIGHT_PARENTHESIS=65114]="SMALL_RIGHT_PARENTHESIS",eo[eo.SMALL_RIGHT_CURLY_BRACKET=65116]="SMALL_RIGHT_CURLY_BRACKET",eo[eo.SMALL_RIGHT_TORTOISE_SHELL_BRACKET=65118]="SMALL_RIGHT_TORTOISE_SHELL_BRACKET",eo[eo.FULLWIDTH_RIGHT_PARENTHESIS=65289]="FULLWIDTH_RIGHT_PARENTHESIS",eo[eo.FULLWIDTH_RIGHT_SQUARE_BRACKET=65341]="FULLWIDTH_RIGHT_SQUARE_BRACKET",eo[eo.FULLWIDTH_RIGHT_CURLY_BRACKET=65373]="FULLWIDTH_RIGHT_CURLY_BRACKET",eo[eo.FULLWIDTH_RIGHT_WHITE_PARENTHESIS=65376]="FULLWIDTH_RIGHT_WHITE_PARENTHESIS",eo[eo.HALFWIDTH_RIGHT_CORNER_BRACKET=65379]="HALFWIDTH_RIGHT_CORNER_BRACKET"})(UnicodePeCodePoint||(UnicodePeCodePoint={}));var UnicodePfCodePoint;(function(eo){eo[eo.RIGHT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK=187]="RIGHT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK",eo[eo.RIGHT_SINGLE_QUOTATION_MARK=8217]="RIGHT_SINGLE_QUOTATION_MARK",eo[eo.RIGHT_DOUBLE_QUOTATION_MARK=8221]="RIGHT_DOUBLE_QUOTATION_MARK",eo[eo.SINGLE_RIGHT_POINTING_ANGLE_QUOTATION_MARK=8250]="SINGLE_RIGHT_POINTING_ANGLE_QUOTATION_MARK",eo[eo.RIGHT_SUBSTITUTION_BRACKET=11779]="RIGHT_SUBSTITUTION_BRACKET",eo[eo.RIGHT_DOTTED_SUBSTITUTION_BRACKET=11781]="RIGHT_DOTTED_SUBSTITUTION_BRACKET",eo[eo.RIGHT_TRANSPOSITION_BRACKET=11786]="RIGHT_TRANSPOSITION_BRACKET",eo[eo.RIGHT_RAISED_OMISSION_BRACKET=11789]="RIGHT_RAISED_OMISSION_BRACKET",eo[eo.RIGHT_LOW_PARAPHRASE_BRACKET=11805]="RIGHT_LOW_PARAPHRASE_BRACKET",eo[eo.RIGHT_VERTICAL_BAR_WITH_QUILL=11809]="RIGHT_VERTICAL_BAR_WITH_QUILL"})(UnicodePfCodePoint||(UnicodePfCodePoint={}));var UnicodePiCodePoint;(function(eo){eo[eo.LEFT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK=171]="LEFT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK",eo[eo.LEFT_SINGLE_QUOTATION_MARK=8216]="LEFT_SINGLE_QUOTATION_MARK",eo[eo.SINGLE_HIGH_REVERSED_9_QUOTATION_MARK=8219]="SINGLE_HIGH_REVERSED_9_QUOTATION_MARK",eo[eo.LEFT_DOUBLE_QUOTATION_MARK=8220]="LEFT_DOUBLE_QUOTATION_MARK",eo[eo.DOUBLE_HIGH_REVERSED_9_QUOTATION_MARK=8223]="DOUBLE_HIGH_REVERSED_9_QUOTATION_MARK",eo[eo.SINGLE_LEFT_POINTING_ANGLE_QUOTATION_MARK=8249]="SINGLE_LEFT_POINTING_ANGLE_QUOTATION_MARK",eo[eo.LEFT_SUBSTITUTION_BRACKET=11778]="LEFT_SUBSTITUTION_BRACKET",eo[eo.LEFT_DOTTED_SUBSTITUTION_BRACKET=11780]="LEFT_DOTTED_SUBSTITUTION_BRACKET",eo[eo.LEFT_TRANSPOSITION_BRACKET=11785]="LEFT_TRANSPOSITION_BRACKET",eo[eo.LEFT_RAISED_OMISSION_BRACKET=11788]="LEFT_RAISED_OMISSION_BRACKET",eo[eo.LEFT_LOW_PARAPHRASE_BRACKET=11804]="LEFT_LOW_PARAPHRASE_BRACKET",eo[eo.LEFT_VERTICAL_BAR_WITH_QUILL=11808]="LEFT_VERTICAL_BAR_WITH_QUILL"})(UnicodePiCodePoint||(UnicodePiCodePoint={}));var UnicodePoCodePoint;(function(eo){eo[eo.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",eo[eo.QUOTATION_MARK=34]="QUOTATION_MARK",eo[eo.NUMBER_SIGN=35]="NUMBER_SIGN",eo[eo.PERCENT_SIGN=37]="PERCENT_SIGN",eo[eo.AMPERSAND=38]="AMPERSAND",eo[eo.APOSTROPHE=39]="APOSTROPHE",eo[eo.ASTERISK=42]="ASTERISK",eo[eo.COMMA=44]="COMMA",eo[eo.FULL_STOP=46]="FULL_STOP",eo[eo.SOLIDUS=47]="SOLIDUS",eo[eo.COLON=58]="COLON",eo[eo.SEMICOLON=59]="SEMICOLON",eo[eo.QUESTION_MARK=63]="QUESTION_MARK",eo[eo.COMMERCIAL_AT=64]="COMMERCIAL_AT",eo[eo.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",eo[eo.INVERTED_EXCLAMATION_MARK=161]="INVERTED_EXCLAMATION_MARK",eo[eo.SECTION_SIGN=167]="SECTION_SIGN",eo[eo.PILCROW_SIGN=182]="PILCROW_SIGN",eo[eo.MIDDLE_DOT=183]="MIDDLE_DOT",eo[eo.INVERTED_QUESTION_MARK=191]="INVERTED_QUESTION_MARK",eo[eo.GREEK_QUESTION_MARK=894]="GREEK_QUESTION_MARK",eo[eo.GREEK_ANO_TELEIA=903]="GREEK_ANO_TELEIA",eo[eo.ARMENIAN_APOSTROPHE=1370]="ARMENIAN_APOSTROPHE",eo[eo.ARMENIAN_EMPHASIS_MARK=1371]="ARMENIAN_EMPHASIS_MARK",eo[eo.ARMENIAN_EXCLAMATION_MARK=1372]="ARMENIAN_EXCLAMATION_MARK",eo[eo.ARMENIAN_COMMA=1373]="ARMENIAN_COMMA",eo[eo.ARMENIAN_QUESTION_MARK=1374]="ARMENIAN_QUESTION_MARK",eo[eo.ARMENIAN_ABBREVIATION_MARK=1375]="ARMENIAN_ABBREVIATION_MARK",eo[eo.ARMENIAN_FULL_STOP=1417]="ARMENIAN_FULL_STOP",eo[eo.HEBREW_PUNCTUATION_PASEQ=1472]="HEBREW_PUNCTUATION_PASEQ",eo[eo.HEBREW_PUNCTUATION_SOF_PASUQ=1475]="HEBREW_PUNCTUATION_SOF_PASUQ",eo[eo.HEBREW_PUNCTUATION_NUN_HAFUKHA=1478]="HEBREW_PUNCTUATION_NUN_HAFUKHA",eo[eo.HEBREW_PUNCTUATION_GERESH=1523]="HEBREW_PUNCTUATION_GERESH",eo[eo.HEBREW_PUNCTUATION_GERSHAYIM=1524]="HEBREW_PUNCTUATION_GERSHAYIM",eo[eo.ARABIC_INDIC_PER_MILLE_SIGN=1545]="ARABIC_INDIC_PER_MILLE_SIGN",eo[eo.ARABIC_INDIC_PER_TEN_THOUSAND_SIGN=1546]="ARABIC_INDIC_PER_TEN_THOUSAND_SIGN",eo[eo.ARABIC_COMMA=1548]="ARABIC_COMMA",eo[eo.ARABIC_DATE_SEPARATOR=1549]="ARABIC_DATE_SEPARATOR",eo[eo.ARABIC_SEMICOLON=1563]="ARABIC_SEMICOLON",eo[eo.ARABIC_TRIPLE_DOT_PUNCTUATION_MARK=1566]="ARABIC_TRIPLE_DOT_PUNCTUATION_MARK",eo[eo.ARABIC_QUESTION_MARK=1567]="ARABIC_QUESTION_MARK",eo[eo.ARABIC_PERCENT_SIGN=1642]="ARABIC_PERCENT_SIGN",eo[eo.ARABIC_DECIMAL_SEPARATOR=1643]="ARABIC_DECIMAL_SEPARATOR",eo[eo.ARABIC_THOUSANDS_SEPARATOR=1644]="ARABIC_THOUSANDS_SEPARATOR",eo[eo.ARABIC_FIVE_POINTED_STAR=1645]="ARABIC_FIVE_POINTED_STAR",eo[eo.ARABIC_FULL_STOP=1748]="ARABIC_FULL_STOP",eo[eo.SYRIAC_END_OF_PARAGRAPH=1792]="SYRIAC_END_OF_PARAGRAPH",eo[eo.SYRIAC_SUPRALINEAR_FULL_STOP=1793]="SYRIAC_SUPRALINEAR_FULL_STOP",eo[eo.SYRIAC_SUBLINEAR_FULL_STOP=1794]="SYRIAC_SUBLINEAR_FULL_STOP",eo[eo.SYRIAC_SUPRALINEAR_COLON=1795]="SYRIAC_SUPRALINEAR_COLON",eo[eo.SYRIAC_SUBLINEAR_COLON=1796]="SYRIAC_SUBLINEAR_COLON",eo[eo.SYRIAC_HORIZONTAL_COLON=1797]="SYRIAC_HORIZONTAL_COLON",eo[eo.SYRIAC_COLON_SKEWED_LEFT=1798]="SYRIAC_COLON_SKEWED_LEFT",eo[eo.SYRIAC_COLON_SKEWED_RIGHT=1799]="SYRIAC_COLON_SKEWED_RIGHT",eo[eo.SYRIAC_SUPRALINEAR_COLON_SKEWED_LEFT=1800]="SYRIAC_SUPRALINEAR_COLON_SKEWED_LEFT",eo[eo.SYRIAC_SUBLINEAR_COLON_SKEWED_RIGHT=1801]="SYRIAC_SUBLINEAR_COLON_SKEWED_RIGHT",eo[eo.SYRIAC_CONTRACTION=1802]="SYRIAC_CONTRACTION",eo[eo.SYRIAC_HARKLEAN_OBELUS=1803]="SYRIAC_HARKLEAN_OBELUS",eo[eo.SYRIAC_HARKLEAN_METOBELUS=1804]="SYRIAC_HARKLEAN_METOBELUS",eo[eo.SYRIAC_HARKLEAN_ASTERISCUS=1805]="SYRIAC_HARKLEAN_ASTERISCUS",eo[eo.NKO_SYMBOL_GBAKURUNEN=2039]="NKO_SYMBOL_GBAKURUNEN",eo[eo.NKO_COMMA=2040]="NKO_COMMA",eo[eo.NKO_EXCLAMATION_MARK=2041]="NKO_EXCLAMATION_MARK",eo[eo.SAMARITAN_PUNCTUATION_NEQUDAA=2096]="SAMARITAN_PUNCTUATION_NEQUDAA",eo[eo.SAMARITAN_PUNCTUATION_AFSAAQ=2097]="SAMARITAN_PUNCTUATION_AFSAAQ",eo[eo.SAMARITAN_PUNCTUATION_ANGED=2098]="SAMARITAN_PUNCTUATION_ANGED",eo[eo.SAMARITAN_PUNCTUATION_BAU=2099]="SAMARITAN_PUNCTUATION_BAU",eo[eo.SAMARITAN_PUNCTUATION_ATMAAU=2100]="SAMARITAN_PUNCTUATION_ATMAAU",eo[eo.SAMARITAN_PUNCTUATION_SHIYYAALAA=2101]="SAMARITAN_PUNCTUATION_SHIYYAALAA",eo[eo.SAMARITAN_ABBREVIATION_MARK=2102]="SAMARITAN_ABBREVIATION_MARK",eo[eo.SAMARITAN_PUNCTUATION_MELODIC_QITSA=2103]="SAMARITAN_PUNCTUATION_MELODIC_QITSA",eo[eo.SAMARITAN_PUNCTUATION_ZIQAA=2104]="SAMARITAN_PUNCTUATION_ZIQAA",eo[eo.SAMARITAN_PUNCTUATION_QITSA=2105]="SAMARITAN_PUNCTUATION_QITSA",eo[eo.SAMARITAN_PUNCTUATION_ZAEF=2106]="SAMARITAN_PUNCTUATION_ZAEF",eo[eo.SAMARITAN_PUNCTUATION_TURU=2107]="SAMARITAN_PUNCTUATION_TURU",eo[eo.SAMARITAN_PUNCTUATION_ARKAANU=2108]="SAMARITAN_PUNCTUATION_ARKAANU",eo[eo.SAMARITAN_PUNCTUATION_SOF_MASHFAAT=2109]="SAMARITAN_PUNCTUATION_SOF_MASHFAAT",eo[eo.SAMARITAN_PUNCTUATION_ANNAAU=2110]="SAMARITAN_PUNCTUATION_ANNAAU",eo[eo.MANDAIC_PUNCTUATION=2142]="MANDAIC_PUNCTUATION",eo[eo.DEVANAGARI_DANDA=2404]="DEVANAGARI_DANDA",eo[eo.DEVANAGARI_DOUBLE_DANDA=2405]="DEVANAGARI_DOUBLE_DANDA",eo[eo.DEVANAGARI_ABBREVIATION_SIGN=2416]="DEVANAGARI_ABBREVIATION_SIGN",eo[eo.BENGALI_ABBREVIATION_SIGN=2557]="BENGALI_ABBREVIATION_SIGN",eo[eo.GURMUKHI_ABBREVIATION_SIGN=2678]="GURMUKHI_ABBREVIATION_SIGN",eo[eo.GUJARATI_ABBREVIATION_SIGN=2800]="GUJARATI_ABBREVIATION_SIGN",eo[eo.TELUGU_SIGN_SIDDHAM=3191]="TELUGU_SIGN_SIDDHAM",eo[eo.KANNADA_SIGN_SIDDHAM=3204]="KANNADA_SIGN_SIDDHAM",eo[eo.SINHALA_PUNCTUATION_KUNDDALIYA=3572]="SINHALA_PUNCTUATION_KUNDDALIYA",eo[eo.THAI_CHARACTER_FONGMAN=3663]="THAI_CHARACTER_FONGMAN",eo[eo.THAI_CHARACTER_ANGKHANKHU=3674]="THAI_CHARACTER_ANGKHANKHU",eo[eo.THAI_CHARACTER_KHOMUT=3675]="THAI_CHARACTER_KHOMUT",eo[eo.TIBETAN_MARK_INITIAL_YIG_MGO_MDUN_MA=3844]="TIBETAN_MARK_INITIAL_YIG_MGO_MDUN_MA",eo[eo.TIBETAN_MARK_CLOSING_YIG_MGO_SGAB_MA=3845]="TIBETAN_MARK_CLOSING_YIG_MGO_SGAB_MA",eo[eo.TIBETAN_MARK_CARET_YIG_MGO_PHUR_SHAD_MA=3846]="TIBETAN_MARK_CARET_YIG_MGO_PHUR_SHAD_MA",eo[eo.TIBETAN_MARK_YIG_MGO_TSHEG_SHAD_MA=3847]="TIBETAN_MARK_YIG_MGO_TSHEG_SHAD_MA",eo[eo.TIBETAN_MARK_SBRUL_SHAD=3848]="TIBETAN_MARK_SBRUL_SHAD",eo[eo.TIBETAN_MARK_BSKUR_YIG_MGO=3849]="TIBETAN_MARK_BSKUR_YIG_MGO",eo[eo.TIBETAN_MARK_BKA__SHOG_YIG_MGO=3850]="TIBETAN_MARK_BKA__SHOG_YIG_MGO",eo[eo.TIBETAN_MARK_INTERSYLLABIC_TSHEG=3851]="TIBETAN_MARK_INTERSYLLABIC_TSHEG",eo[eo.TIBETAN_MARK_DELIMITER_TSHEG_BSTAR=3852]="TIBETAN_MARK_DELIMITER_TSHEG_BSTAR",eo[eo.TIBETAN_MARK_SHAD=3853]="TIBETAN_MARK_SHAD",eo[eo.TIBETAN_MARK_NYIS_SHAD=3854]="TIBETAN_MARK_NYIS_SHAD",eo[eo.TIBETAN_MARK_TSHEG_SHAD=3855]="TIBETAN_MARK_TSHEG_SHAD",eo[eo.TIBETAN_MARK_NYIS_TSHEG_SHAD=3856]="TIBETAN_MARK_NYIS_TSHEG_SHAD",eo[eo.TIBETAN_MARK_RIN_CHEN_SPUNGS_SHAD=3857]="TIBETAN_MARK_RIN_CHEN_SPUNGS_SHAD",eo[eo.TIBETAN_MARK_RGYA_GRAM_SHAD=3858]="TIBETAN_MARK_RGYA_GRAM_SHAD",eo[eo.TIBETAN_MARK_GTER_TSHEG=3860]="TIBETAN_MARK_GTER_TSHEG",eo[eo.TIBETAN_MARK_PALUTA=3973]="TIBETAN_MARK_PALUTA",eo[eo.TIBETAN_MARK_BSKA__SHOG_GI_MGO_RGYAN=4048]="TIBETAN_MARK_BSKA__SHOG_GI_MGO_RGYAN",eo[eo.TIBETAN_MARK_MNYAM_YIG_GI_MGO_RGYAN=4049]="TIBETAN_MARK_MNYAM_YIG_GI_MGO_RGYAN",eo[eo.TIBETAN_MARK_NYIS_TSHEG=4050]="TIBETAN_MARK_NYIS_TSHEG",eo[eo.TIBETAN_MARK_INITIAL_BRDA_RNYING_YIG_MGO_MDUN_MA=4051]="TIBETAN_MARK_INITIAL_BRDA_RNYING_YIG_MGO_MDUN_MA",eo[eo.TIBETAN_MARK_CLOSING_BRDA_RNYING_YIG_MGO_SGAB_MA=4052]="TIBETAN_MARK_CLOSING_BRDA_RNYING_YIG_MGO_SGAB_MA",eo[eo.TIBETAN_MARK_LEADING_MCHAN_RTAGS=4057]="TIBETAN_MARK_LEADING_MCHAN_RTAGS",eo[eo.TIBETAN_MARK_TRAILING_MCHAN_RTAGS=4058]="TIBETAN_MARK_TRAILING_MCHAN_RTAGS",eo[eo.MYANMAR_SIGN_LITTLE_SECTION=4170]="MYANMAR_SIGN_LITTLE_SECTION",eo[eo.MYANMAR_SIGN_SECTION=4171]="MYANMAR_SIGN_SECTION",eo[eo.MYANMAR_SYMBOL_LOCATIVE=4172]="MYANMAR_SYMBOL_LOCATIVE",eo[eo.MYANMAR_SYMBOL_COMPLETED=4173]="MYANMAR_SYMBOL_COMPLETED",eo[eo.MYANMAR_SYMBOL_AFOREMENTIONED=4174]="MYANMAR_SYMBOL_AFOREMENTIONED",eo[eo.MYANMAR_SYMBOL_GENITIVE=4175]="MYANMAR_SYMBOL_GENITIVE",eo[eo.GEORGIAN_PARAGRAPH_SEPARATOR=4347]="GEORGIAN_PARAGRAPH_SEPARATOR",eo[eo.ETHIOPIC_SECTION_MARK=4960]="ETHIOPIC_SECTION_MARK",eo[eo.ETHIOPIC_WORDSPACE=4961]="ETHIOPIC_WORDSPACE",eo[eo.ETHIOPIC_FULL_STOP=4962]="ETHIOPIC_FULL_STOP",eo[eo.ETHIOPIC_COMMA=4963]="ETHIOPIC_COMMA",eo[eo.ETHIOPIC_SEMICOLON=4964]="ETHIOPIC_SEMICOLON",eo[eo.ETHIOPIC_COLON=4965]="ETHIOPIC_COLON",eo[eo.ETHIOPIC_PREFACE_COLON=4966]="ETHIOPIC_PREFACE_COLON",eo[eo.ETHIOPIC_QUESTION_MARK=4967]="ETHIOPIC_QUESTION_MARK",eo[eo.ETHIOPIC_PARAGRAPH_SEPARATOR=4968]="ETHIOPIC_PARAGRAPH_SEPARATOR",eo[eo.CANADIAN_SYLLABICS_FULL_STOP=5742]="CANADIAN_SYLLABICS_FULL_STOP",eo[eo.RUNIC_SINGLE_PUNCTUATION=5867]="RUNIC_SINGLE_PUNCTUATION",eo[eo.RUNIC_MULTIPLE_PUNCTUATION=5868]="RUNIC_MULTIPLE_PUNCTUATION",eo[eo.RUNIC_CROSS_PUNCTUATION=5869]="RUNIC_CROSS_PUNCTUATION",eo[eo.PHILIPPINE_SINGLE_PUNCTUATION=5941]="PHILIPPINE_SINGLE_PUNCTUATION",eo[eo.PHILIPPINE_DOUBLE_PUNCTUATION=5942]="PHILIPPINE_DOUBLE_PUNCTUATION",eo[eo.KHMER_SIGN_KHAN=6100]="KHMER_SIGN_KHAN",eo[eo.KHMER_SIGN_BARIYOOSAN=6101]="KHMER_SIGN_BARIYOOSAN",eo[eo.KHMER_SIGN_CAMNUC_PII_KUUH=6102]="KHMER_SIGN_CAMNUC_PII_KUUH",eo[eo.KHMER_SIGN_BEYYAL=6104]="KHMER_SIGN_BEYYAL",eo[eo.KHMER_SIGN_PHNAEK_MUAN=6105]="KHMER_SIGN_PHNAEK_MUAN",eo[eo.KHMER_SIGN_KOOMUUT=6106]="KHMER_SIGN_KOOMUUT",eo[eo.MONGOLIAN_BIRGA=6144]="MONGOLIAN_BIRGA",eo[eo.MONGOLIAN_ELLIPSIS=6145]="MONGOLIAN_ELLIPSIS",eo[eo.MONGOLIAN_COMMA=6146]="MONGOLIAN_COMMA",eo[eo.MONGOLIAN_FULL_STOP=6147]="MONGOLIAN_FULL_STOP",eo[eo.MONGOLIAN_COLON=6148]="MONGOLIAN_COLON",eo[eo.MONGOLIAN_FOUR_DOTS=6149]="MONGOLIAN_FOUR_DOTS",eo[eo.MONGOLIAN_SIBE_SYLLABLE_BOUNDARY_MARKER=6151]="MONGOLIAN_SIBE_SYLLABLE_BOUNDARY_MARKER",eo[eo.MONGOLIAN_MANCHU_COMMA=6152]="MONGOLIAN_MANCHU_COMMA",eo[eo.MONGOLIAN_MANCHU_FULL_STOP=6153]="MONGOLIAN_MANCHU_FULL_STOP",eo[eo.MONGOLIAN_NIRUGU=6154]="MONGOLIAN_NIRUGU",eo[eo.LIMBU_EXCLAMATION_MARK=6468]="LIMBU_EXCLAMATION_MARK",eo[eo.LIMBU_QUESTION_MARK=6469]="LIMBU_QUESTION_MARK",eo[eo.BUGINESE_PALLAWA=6686]="BUGINESE_PALLAWA",eo[eo.BUGINESE_END_OF_SECTION=6687]="BUGINESE_END_OF_SECTION",eo[eo.TAI_THAM_SIGN_WIANG=6816]="TAI_THAM_SIGN_WIANG",eo[eo.TAI_THAM_SIGN_WIANGWAAK=6817]="TAI_THAM_SIGN_WIANGWAAK",eo[eo.TAI_THAM_SIGN_SAWAN=6818]="TAI_THAM_SIGN_SAWAN",eo[eo.TAI_THAM_SIGN_KEOW=6819]="TAI_THAM_SIGN_KEOW",eo[eo.TAI_THAM_SIGN_HOY=6820]="TAI_THAM_SIGN_HOY",eo[eo.TAI_THAM_SIGN_DOKMAI=6821]="TAI_THAM_SIGN_DOKMAI",eo[eo.TAI_THAM_SIGN_REVERSED_ROTATED_RANA=6822]="TAI_THAM_SIGN_REVERSED_ROTATED_RANA",eo[eo.TAI_THAM_SIGN_KAAN=6824]="TAI_THAM_SIGN_KAAN",eo[eo.TAI_THAM_SIGN_KAANKUU=6825]="TAI_THAM_SIGN_KAANKUU",eo[eo.TAI_THAM_SIGN_SATKAAN=6826]="TAI_THAM_SIGN_SATKAAN",eo[eo.TAI_THAM_SIGN_SATKAANKUU=6827]="TAI_THAM_SIGN_SATKAANKUU",eo[eo.TAI_THAM_SIGN_HANG=6828]="TAI_THAM_SIGN_HANG",eo[eo.TAI_THAM_SIGN_CAANG=6829]="TAI_THAM_SIGN_CAANG",eo[eo.BALINESE_PANTI=7002]="BALINESE_PANTI",eo[eo.BALINESE_PAMADA=7003]="BALINESE_PAMADA",eo[eo.BALINESE_WINDU=7004]="BALINESE_WINDU",eo[eo.BALINESE_CARIK_PAMUNGKAH=7005]="BALINESE_CARIK_PAMUNGKAH",eo[eo.BALINESE_CARIK_SIKI=7006]="BALINESE_CARIK_SIKI",eo[eo.BALINESE_CARIK_PAREREN=7007]="BALINESE_CARIK_PAREREN",eo[eo.BALINESE_PAMENENG=7008]="BALINESE_PAMENENG",eo[eo.BATAK_SYMBOL_BINDU_NA_METEK=7164]="BATAK_SYMBOL_BINDU_NA_METEK",eo[eo.BATAK_SYMBOL_BINDU_PINARBORAS=7165]="BATAK_SYMBOL_BINDU_PINARBORAS",eo[eo.BATAK_SYMBOL_BINDU_JUDUL=7166]="BATAK_SYMBOL_BINDU_JUDUL",eo[eo.BATAK_SYMBOL_BINDU_PANGOLAT=7167]="BATAK_SYMBOL_BINDU_PANGOLAT",eo[eo.LEPCHA_PUNCTUATION_TA_ROL=7227]="LEPCHA_PUNCTUATION_TA_ROL",eo[eo.LEPCHA_PUNCTUATION_NYET_THYOOM_TA_ROL=7228]="LEPCHA_PUNCTUATION_NYET_THYOOM_TA_ROL",eo[eo.LEPCHA_PUNCTUATION_CER_WA=7229]="LEPCHA_PUNCTUATION_CER_WA",eo[eo.LEPCHA_PUNCTUATION_TSHOOK_CER_WA=7230]="LEPCHA_PUNCTUATION_TSHOOK_CER_WA",eo[eo.LEPCHA_PUNCTUATION_TSHOOK=7231]="LEPCHA_PUNCTUATION_TSHOOK",eo[eo.OL_CHIKI_PUNCTUATION_MUCAAD=7294]="OL_CHIKI_PUNCTUATION_MUCAAD",eo[eo.OL_CHIKI_PUNCTUATION_DOUBLE_MUCAAD=7295]="OL_CHIKI_PUNCTUATION_DOUBLE_MUCAAD",eo[eo.SUNDANESE_PUNCTUATION_BINDU_SURYA=7360]="SUNDANESE_PUNCTUATION_BINDU_SURYA",eo[eo.SUNDANESE_PUNCTUATION_BINDU_PANGLONG=7361]="SUNDANESE_PUNCTUATION_BINDU_PANGLONG",eo[eo.SUNDANESE_PUNCTUATION_BINDU_PURNAMA=7362]="SUNDANESE_PUNCTUATION_BINDU_PURNAMA",eo[eo.SUNDANESE_PUNCTUATION_BINDU_CAKRA=7363]="SUNDANESE_PUNCTUATION_BINDU_CAKRA",eo[eo.SUNDANESE_PUNCTUATION_BINDU_LEU_SATANGA=7364]="SUNDANESE_PUNCTUATION_BINDU_LEU_SATANGA",eo[eo.SUNDANESE_PUNCTUATION_BINDU_KA_SATANGA=7365]="SUNDANESE_PUNCTUATION_BINDU_KA_SATANGA",eo[eo.SUNDANESE_PUNCTUATION_BINDU_DA_SATANGA=7366]="SUNDANESE_PUNCTUATION_BINDU_DA_SATANGA",eo[eo.SUNDANESE_PUNCTUATION_BINDU_BA_SATANGA=7367]="SUNDANESE_PUNCTUATION_BINDU_BA_SATANGA",eo[eo.VEDIC_SIGN_NIHSHVASA=7379]="VEDIC_SIGN_NIHSHVASA",eo[eo.DOUBLE_VERTICAL_LINE=8214]="DOUBLE_VERTICAL_LINE",eo[eo.DOUBLE_LOW_LINE=8215]="DOUBLE_LOW_LINE",eo[eo.DAGGER=8224]="DAGGER",eo[eo.DOUBLE_DAGGER=8225]="DOUBLE_DAGGER",eo[eo.BULLET=8226]="BULLET",eo[eo.TRIANGULAR_BULLET=8227]="TRIANGULAR_BULLET",eo[eo.ONE_DOT_LEADER=8228]="ONE_DOT_LEADER",eo[eo.TWO_DOT_LEADER=8229]="TWO_DOT_LEADER",eo[eo.HORIZONTAL_ELLIPSIS=8230]="HORIZONTAL_ELLIPSIS",eo[eo.HYPHENATION_POINT=8231]="HYPHENATION_POINT",eo[eo.PER_MILLE_SIGN=8240]="PER_MILLE_SIGN",eo[eo.PER_TEN_THOUSAND_SIGN=8241]="PER_TEN_THOUSAND_SIGN",eo[eo.PRIME=8242]="PRIME",eo[eo.DOUBLE_PRIME=8243]="DOUBLE_PRIME",eo[eo.TRIPLE_PRIME=8244]="TRIPLE_PRIME",eo[eo.REVERSED_PRIME=8245]="REVERSED_PRIME",eo[eo.REVERSED_DOUBLE_PRIME=8246]="REVERSED_DOUBLE_PRIME",eo[eo.REVERSED_TRIPLE_PRIME=8247]="REVERSED_TRIPLE_PRIME",eo[eo.CARET=8248]="CARET",eo[eo.REFERENCE_MARK=8251]="REFERENCE_MARK",eo[eo.DOUBLE_EXCLAMATION_MARK=8252]="DOUBLE_EXCLAMATION_MARK",eo[eo.INTERROBANG=8253]="INTERROBANG",eo[eo.OVERLINE=8254]="OVERLINE",eo[eo.CARET_INSERTION_POINT=8257]="CARET_INSERTION_POINT",eo[eo.ASTERISM=8258]="ASTERISM",eo[eo.HYPHEN_BULLET=8259]="HYPHEN_BULLET",eo[eo.DOUBLE_QUESTION_MARK=8263]="DOUBLE_QUESTION_MARK",eo[eo.QUESTION_EXCLAMATION_MARK=8264]="QUESTION_EXCLAMATION_MARK",eo[eo.EXCLAMATION_QUESTION_MARK=8265]="EXCLAMATION_QUESTION_MARK",eo[eo.TIRONIAN_SIGN_ET=8266]="TIRONIAN_SIGN_ET",eo[eo.REVERSED_PILCROW_SIGN=8267]="REVERSED_PILCROW_SIGN",eo[eo.BLACK_LEFTWARDS_BULLET=8268]="BLACK_LEFTWARDS_BULLET",eo[eo.BLACK_RIGHTWARDS_BULLET=8269]="BLACK_RIGHTWARDS_BULLET",eo[eo.LOW_ASTERISK=8270]="LOW_ASTERISK",eo[eo.REVERSED_SEMICOLON=8271]="REVERSED_SEMICOLON",eo[eo.CLOSE_UP=8272]="CLOSE_UP",eo[eo.TWO_ASTERISKS_ALIGNED_VERTICALLY=8273]="TWO_ASTERISKS_ALIGNED_VERTICALLY",eo[eo.SWUNG_DASH=8275]="SWUNG_DASH",eo[eo.FLOWER_PUNCTUATION_MARK=8277]="FLOWER_PUNCTUATION_MARK",eo[eo.THREE_DOT_PUNCTUATION=8278]="THREE_DOT_PUNCTUATION",eo[eo.QUADRUPLE_PRIME=8279]="QUADRUPLE_PRIME",eo[eo.FOUR_DOT_PUNCTUATION=8280]="FOUR_DOT_PUNCTUATION",eo[eo.FIVE_DOT_PUNCTUATION=8281]="FIVE_DOT_PUNCTUATION",eo[eo.TWO_DOT_PUNCTUATION=8282]="TWO_DOT_PUNCTUATION",eo[eo.FOUR_DOT_MARK=8283]="FOUR_DOT_MARK",eo[eo.DOTTED_CROSS=8284]="DOTTED_CROSS",eo[eo.TRICOLON=8285]="TRICOLON",eo[eo.VERTICAL_FOUR_DOTS=8286]="VERTICAL_FOUR_DOTS",eo[eo.COPTIC_OLD_NUBIAN_FULL_STOP=11513]="COPTIC_OLD_NUBIAN_FULL_STOP",eo[eo.COPTIC_OLD_NUBIAN_DIRECT_QUESTION_MARK=11514]="COPTIC_OLD_NUBIAN_DIRECT_QUESTION_MARK",eo[eo.COPTIC_OLD_NUBIAN_INDIRECT_QUESTION_MARK=11515]="COPTIC_OLD_NUBIAN_INDIRECT_QUESTION_MARK",eo[eo.COPTIC_OLD_NUBIAN_VERSE_DIVIDER=11516]="COPTIC_OLD_NUBIAN_VERSE_DIVIDER",eo[eo.COPTIC_FULL_STOP=11518]="COPTIC_FULL_STOP",eo[eo.COPTIC_MORPHOLOGICAL_DIVIDER=11519]="COPTIC_MORPHOLOGICAL_DIVIDER",eo[eo.TIFINAGH_SEPARATOR_MARK=11632]="TIFINAGH_SEPARATOR_MARK",eo[eo.RIGHT_ANGLE_SUBSTITUTION_MARKER=11776]="RIGHT_ANGLE_SUBSTITUTION_MARKER",eo[eo.RIGHT_ANGLE_DOTTED_SUBSTITUTION_MARKER=11777]="RIGHT_ANGLE_DOTTED_SUBSTITUTION_MARKER",eo[eo.RAISED_INTERPOLATION_MARKER=11782]="RAISED_INTERPOLATION_MARKER",eo[eo.RAISED_DOTTED_INTERPOLATION_MARKER=11783]="RAISED_DOTTED_INTERPOLATION_MARKER",eo[eo.DOTTED_TRANSPOSITION_MARKER=11784]="DOTTED_TRANSPOSITION_MARKER",eo[eo.RAISED_SQUARE=11787]="RAISED_SQUARE",eo[eo.EDITORIAL_CORONIS=11790]="EDITORIAL_CORONIS",eo[eo.PARAGRAPHOS=11791]="PARAGRAPHOS",eo[eo.FORKED_PARAGRAPHOS=11792]="FORKED_PARAGRAPHOS",eo[eo.REVERSED_FORKED_PARAGRAPHOS=11793]="REVERSED_FORKED_PARAGRAPHOS",eo[eo.HYPODIASTOLE=11794]="HYPODIASTOLE",eo[eo.DOTTED_OBELOS=11795]="DOTTED_OBELOS",eo[eo.DOWNWARDS_ANCORA=11796]="DOWNWARDS_ANCORA",eo[eo.UPWARDS_ANCORA=11797]="UPWARDS_ANCORA",eo[eo.DOTTED_RIGHT_POINTING_ANGLE=11798]="DOTTED_RIGHT_POINTING_ANGLE",eo[eo.INVERTED_INTERROBANG=11800]="INVERTED_INTERROBANG",eo[eo.PALM_BRANCH=11801]="PALM_BRANCH",eo[eo.TILDE_WITH_RING_ABOVE=11803]="TILDE_WITH_RING_ABOVE",eo[eo.TILDE_WITH_DOT_ABOVE=11806]="TILDE_WITH_DOT_ABOVE",eo[eo.TILDE_WITH_DOT_BELOW=11807]="TILDE_WITH_DOT_BELOW",eo[eo.TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=11818]="TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",eo[eo.ONE_DOT_OVER_TWO_DOTS_PUNCTUATION=11819]="ONE_DOT_OVER_TWO_DOTS_PUNCTUATION",eo[eo.SQUARED_FOUR_DOT_PUNCTUATION=11820]="SQUARED_FOUR_DOT_PUNCTUATION",eo[eo.FIVE_DOT_MARK=11821]="FIVE_DOT_MARK",eo[eo.REVERSED_QUESTION_MARK=11822]="REVERSED_QUESTION_MARK",eo[eo.RING_POINT=11824]="RING_POINT",eo[eo.WORD_SEPARATOR_MIDDLE_DOT=11825]="WORD_SEPARATOR_MIDDLE_DOT",eo[eo.TURNED_COMMA=11826]="TURNED_COMMA",eo[eo.RAISED_DOT=11827]="RAISED_DOT",eo[eo.RAISED_COMMA=11828]="RAISED_COMMA",eo[eo.TURNED_SEMICOLON=11829]="TURNED_SEMICOLON",eo[eo.DAGGER_WITH_LEFT_GUARD=11830]="DAGGER_WITH_LEFT_GUARD",eo[eo.DAGGER_WITH_RIGHT_GUARD=11831]="DAGGER_WITH_RIGHT_GUARD",eo[eo.TURNED_DAGGER=11832]="TURNED_DAGGER",eo[eo.TOP_HALF_SECTION_SIGN=11833]="TOP_HALF_SECTION_SIGN",eo[eo.STENOGRAPHIC_FULL_STOP=11836]="STENOGRAPHIC_FULL_STOP",eo[eo.VERTICAL_SIX_DOTS=11837]="VERTICAL_SIX_DOTS",eo[eo.WIGGLY_VERTICAL_LINE=11838]="WIGGLY_VERTICAL_LINE",eo[eo.CAPITULUM=11839]="CAPITULUM",eo[eo.REVERSED_COMMA=11841]="REVERSED_COMMA",eo[eo.DASH_WITH_LEFT_UPTURN=11843]="DASH_WITH_LEFT_UPTURN",eo[eo.DOUBLE_SUSPENSION_MARK=11844]="DOUBLE_SUSPENSION_MARK",eo[eo.INVERTED_LOW_KAVYKA=11845]="INVERTED_LOW_KAVYKA",eo[eo.INVERTED_LOW_KAVYKA_WITH_KAVYKA_ABOVE=11846]="INVERTED_LOW_KAVYKA_WITH_KAVYKA_ABOVE",eo[eo.LOW_KAVYKA=11847]="LOW_KAVYKA",eo[eo.LOW_KAVYKA_WITH_DOT=11848]="LOW_KAVYKA_WITH_DOT",eo[eo.DOUBLE_STACKED_COMMA=11849]="DOUBLE_STACKED_COMMA",eo[eo.DOTTED_SOLIDUS=11850]="DOTTED_SOLIDUS",eo[eo.TRIPLE_DAGGER=11851]="TRIPLE_DAGGER",eo[eo.MEDIEVAL_COMMA=11852]="MEDIEVAL_COMMA",eo[eo.PARAGRAPHUS_MARK=11853]="PARAGRAPHUS_MARK",eo[eo.PUNCTUS_ELEVATUS_MARK=11854]="PUNCTUS_ELEVATUS_MARK",eo[eo.CORNISH_VERSE_DIVIDER=11855]="CORNISH_VERSE_DIVIDER",eo[eo.TIRONIAN_SIGN_CAPITAL_ET=11858]="TIRONIAN_SIGN_CAPITAL_ET",eo[eo.IDEOGRAPHIC_COMMA=12289]="IDEOGRAPHIC_COMMA",eo[eo.IDEOGRAPHIC_FULL_STOP=12290]="IDEOGRAPHIC_FULL_STOP",eo[eo.DITTO_MARK=12291]="DITTO_MARK",eo[eo.PART_ALTERNATION_MARK=12349]="PART_ALTERNATION_MARK",eo[eo.KATAKANA_MIDDLE_DOT=12539]="KATAKANA_MIDDLE_DOT",eo[eo.LISU_PUNCTUATION_COMMA=42238]="LISU_PUNCTUATION_COMMA",eo[eo.LISU_PUNCTUATION_FULL_STOP=42239]="LISU_PUNCTUATION_FULL_STOP",eo[eo.VAI_COMMA=42509]="VAI_COMMA",eo[eo.VAI_FULL_STOP=42510]="VAI_FULL_STOP",eo[eo.VAI_QUESTION_MARK=42511]="VAI_QUESTION_MARK",eo[eo.SLAVONIC_ASTERISK=42611]="SLAVONIC_ASTERISK",eo[eo.CYRILLIC_KAVYKA=42622]="CYRILLIC_KAVYKA",eo[eo.BAMUM_NJAEMLI=42738]="BAMUM_NJAEMLI",eo[eo.BAMUM_FULL_STOP=42739]="BAMUM_FULL_STOP",eo[eo.BAMUM_COLON=42740]="BAMUM_COLON",eo[eo.BAMUM_COMMA=42741]="BAMUM_COMMA",eo[eo.BAMUM_SEMICOLON=42742]="BAMUM_SEMICOLON",eo[eo.BAMUM_QUESTION_MARK=42743]="BAMUM_QUESTION_MARK",eo[eo.PHAGS_PA_SINGLE_HEAD_MARK=43124]="PHAGS_PA_SINGLE_HEAD_MARK",eo[eo.PHAGS_PA_DOUBLE_HEAD_MARK=43125]="PHAGS_PA_DOUBLE_HEAD_MARK",eo[eo.PHAGS_PA_MARK_SHAD=43126]="PHAGS_PA_MARK_SHAD",eo[eo.PHAGS_PA_MARK_DOUBLE_SHAD=43127]="PHAGS_PA_MARK_DOUBLE_SHAD",eo[eo.SAURASHTRA_DANDA=43214]="SAURASHTRA_DANDA",eo[eo.SAURASHTRA_DOUBLE_DANDA=43215]="SAURASHTRA_DOUBLE_DANDA",eo[eo.DEVANAGARI_SIGN_PUSHPIKA=43256]="DEVANAGARI_SIGN_PUSHPIKA",eo[eo.DEVANAGARI_GAP_FILLER=43257]="DEVANAGARI_GAP_FILLER",eo[eo.DEVANAGARI_CARET=43258]="DEVANAGARI_CARET",eo[eo.DEVANAGARI_SIGN_SIDDHAM=43260]="DEVANAGARI_SIGN_SIDDHAM",eo[eo.KAYAH_LI_SIGN_CWI=43310]="KAYAH_LI_SIGN_CWI",eo[eo.KAYAH_LI_SIGN_SHYA=43311]="KAYAH_LI_SIGN_SHYA",eo[eo.REJANG_SECTION_MARK=43359]="REJANG_SECTION_MARK",eo[eo.JAVANESE_LEFT_RERENGGAN=43457]="JAVANESE_LEFT_RERENGGAN",eo[eo.JAVANESE_RIGHT_RERENGGAN=43458]="JAVANESE_RIGHT_RERENGGAN",eo[eo.JAVANESE_PADA_ANDAP=43459]="JAVANESE_PADA_ANDAP",eo[eo.JAVANESE_PADA_MADYA=43460]="JAVANESE_PADA_MADYA",eo[eo.JAVANESE_PADA_LUHUR=43461]="JAVANESE_PADA_LUHUR",eo[eo.JAVANESE_PADA_WINDU=43462]="JAVANESE_PADA_WINDU",eo[eo.JAVANESE_PADA_PANGKAT=43463]="JAVANESE_PADA_PANGKAT",eo[eo.JAVANESE_PADA_LINGSA=43464]="JAVANESE_PADA_LINGSA",eo[eo.JAVANESE_PADA_LUNGSI=43465]="JAVANESE_PADA_LUNGSI",eo[eo.JAVANESE_PADA_ADEG=43466]="JAVANESE_PADA_ADEG",eo[eo.JAVANESE_PADA_ADEG_ADEG=43467]="JAVANESE_PADA_ADEG_ADEG",eo[eo.JAVANESE_PADA_PISELEH=43468]="JAVANESE_PADA_PISELEH",eo[eo.JAVANESE_TURNED_PADA_PISELEH=43469]="JAVANESE_TURNED_PADA_PISELEH",eo[eo.JAVANESE_PADA_TIRTA_TUMETES=43486]="JAVANESE_PADA_TIRTA_TUMETES",eo[eo.JAVANESE_PADA_ISEN_ISEN=43487]="JAVANESE_PADA_ISEN_ISEN",eo[eo.CHAM_PUNCTUATION_SPIRAL=43612]="CHAM_PUNCTUATION_SPIRAL",eo[eo.CHAM_PUNCTUATION_DANDA=43613]="CHAM_PUNCTUATION_DANDA",eo[eo.CHAM_PUNCTUATION_DOUBLE_DANDA=43614]="CHAM_PUNCTUATION_DOUBLE_DANDA",eo[eo.CHAM_PUNCTUATION_TRIPLE_DANDA=43615]="CHAM_PUNCTUATION_TRIPLE_DANDA",eo[eo.TAI_VIET_SYMBOL_HO_HOI=43742]="TAI_VIET_SYMBOL_HO_HOI",eo[eo.TAI_VIET_SYMBOL_KOI_KOI=43743]="TAI_VIET_SYMBOL_KOI_KOI",eo[eo.MEETEI_MAYEK_CHEIKHAN=43760]="MEETEI_MAYEK_CHEIKHAN",eo[eo.MEETEI_MAYEK_AHANG_KHUDAM=43761]="MEETEI_MAYEK_AHANG_KHUDAM",eo[eo.MEETEI_MAYEK_CHEIKHEI=44011]="MEETEI_MAYEK_CHEIKHEI",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_COMMA=65040]="PRESENTATION_FORM_FOR_VERTICAL_COMMA",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_COMMA=65041]="PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_COMMA",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_FULL_STOP=65042]="PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_FULL_STOP",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_COLON=65043]="PRESENTATION_FORM_FOR_VERTICAL_COLON",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_SEMICOLON=65044]="PRESENTATION_FORM_FOR_VERTICAL_SEMICOLON",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_EXCLAMATION_MARK=65045]="PRESENTATION_FORM_FOR_VERTICAL_EXCLAMATION_MARK",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_QUESTION_MARK=65046]="PRESENTATION_FORM_FOR_VERTICAL_QUESTION_MARK",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_HORIZONTAL_ELLIPSIS=65049]="PRESENTATION_FORM_FOR_VERTICAL_HORIZONTAL_ELLIPSIS",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_TWO_DOT_LEADER=65072]="PRESENTATION_FORM_FOR_VERTICAL_TWO_DOT_LEADER",eo[eo.SESAME_DOT=65093]="SESAME_DOT",eo[eo.WHITE_SESAME_DOT=65094]="WHITE_SESAME_DOT",eo[eo.DASHED_OVERLINE=65097]="DASHED_OVERLINE",eo[eo.CENTRELINE_OVERLINE=65098]="CENTRELINE_OVERLINE",eo[eo.WAVY_OVERLINE=65099]="WAVY_OVERLINE",eo[eo.DOUBLE_WAVY_OVERLINE=65100]="DOUBLE_WAVY_OVERLINE",eo[eo.SMALL_COMMA=65104]="SMALL_COMMA",eo[eo.SMALL_IDEOGRAPHIC_COMMA=65105]="SMALL_IDEOGRAPHIC_COMMA",eo[eo.SMALL_FULL_STOP=65106]="SMALL_FULL_STOP",eo[eo.SMALL_SEMICOLON=65108]="SMALL_SEMICOLON",eo[eo.SMALL_COLON=65109]="SMALL_COLON",eo[eo.SMALL_QUESTION_MARK=65110]="SMALL_QUESTION_MARK",eo[eo.SMALL_EXCLAMATION_MARK=65111]="SMALL_EXCLAMATION_MARK",eo[eo.SMALL_NUMBER_SIGN=65119]="SMALL_NUMBER_SIGN",eo[eo.SMALL_AMPERSAND=65120]="SMALL_AMPERSAND",eo[eo.SMALL_ASTERISK=65121]="SMALL_ASTERISK",eo[eo.SMALL_REVERSE_SOLIDUS=65128]="SMALL_REVERSE_SOLIDUS",eo[eo.SMALL_PERCENT_SIGN=65130]="SMALL_PERCENT_SIGN",eo[eo.SMALL_COMMERCIAL_AT=65131]="SMALL_COMMERCIAL_AT",eo[eo.FULLWIDTH_EXCLAMATION_MARK=65281]="FULLWIDTH_EXCLAMATION_MARK",eo[eo.FULLWIDTH_QUOTATION_MARK=65282]="FULLWIDTH_QUOTATION_MARK",eo[eo.FULLWIDTH_NUMBER_SIGN=65283]="FULLWIDTH_NUMBER_SIGN",eo[eo.FULLWIDTH_PERCENT_SIGN=65285]="FULLWIDTH_PERCENT_SIGN",eo[eo.FULLWIDTH_AMPERSAND=65286]="FULLWIDTH_AMPERSAND",eo[eo.FULLWIDTH_APOSTROPHE=65287]="FULLWIDTH_APOSTROPHE",eo[eo.FULLWIDTH_ASTERISK=65290]="FULLWIDTH_ASTERISK",eo[eo.FULLWIDTH_COMMA=65292]="FULLWIDTH_COMMA",eo[eo.FULLWIDTH_FULL_STOP=65294]="FULLWIDTH_FULL_STOP",eo[eo.FULLWIDTH_SOLIDUS=65295]="FULLWIDTH_SOLIDUS",eo[eo.FULLWIDTH_COLON=65306]="FULLWIDTH_COLON",eo[eo.FULLWIDTH_SEMICOLON=65307]="FULLWIDTH_SEMICOLON",eo[eo.FULLWIDTH_QUESTION_MARK=65311]="FULLWIDTH_QUESTION_MARK",eo[eo.FULLWIDTH_COMMERCIAL_AT=65312]="FULLWIDTH_COMMERCIAL_AT",eo[eo.FULLWIDTH_REVERSE_SOLIDUS=65340]="FULLWIDTH_REVERSE_SOLIDUS",eo[eo.HALFWIDTH_IDEOGRAPHIC_FULL_STOP=65377]="HALFWIDTH_IDEOGRAPHIC_FULL_STOP",eo[eo.HALFWIDTH_IDEOGRAPHIC_COMMA=65380]="HALFWIDTH_IDEOGRAPHIC_COMMA",eo[eo.HALFWIDTH_KATAKANA_MIDDLE_DOT=65381]="HALFWIDTH_KATAKANA_MIDDLE_DOT",eo[eo.AEGEAN_WORD_SEPARATOR_LINE=65792]="AEGEAN_WORD_SEPARATOR_LINE",eo[eo.AEGEAN_WORD_SEPARATOR_DOT=65793]="AEGEAN_WORD_SEPARATOR_DOT",eo[eo.AEGEAN_CHECK_MARK=65794]="AEGEAN_CHECK_MARK",eo[eo.UGARITIC_WORD_DIVIDER=66463]="UGARITIC_WORD_DIVIDER",eo[eo.OLD_PERSIAN_WORD_DIVIDER=66512]="OLD_PERSIAN_WORD_DIVIDER",eo[eo.CAUCASIAN_ALBANIAN_CITATION_MARK=66927]="CAUCASIAN_ALBANIAN_CITATION_MARK",eo[eo.IMPERIAL_ARAMAIC_SECTION_SIGN=67671]="IMPERIAL_ARAMAIC_SECTION_SIGN",eo[eo.PHOENICIAN_WORD_SEPARATOR=67871]="PHOENICIAN_WORD_SEPARATOR",eo[eo.LYDIAN_TRIANGULAR_MARK=67903]="LYDIAN_TRIANGULAR_MARK",eo[eo.KHAROSHTHI_PUNCTUATION_DOT=68176]="KHAROSHTHI_PUNCTUATION_DOT",eo[eo.KHAROSHTHI_PUNCTUATION_SMALL_CIRCLE=68177]="KHAROSHTHI_PUNCTUATION_SMALL_CIRCLE",eo[eo.KHAROSHTHI_PUNCTUATION_CIRCLE=68178]="KHAROSHTHI_PUNCTUATION_CIRCLE",eo[eo.KHAROSHTHI_PUNCTUATION_CRESCENT_BAR=68179]="KHAROSHTHI_PUNCTUATION_CRESCENT_BAR",eo[eo.KHAROSHTHI_PUNCTUATION_MANGALAM=68180]="KHAROSHTHI_PUNCTUATION_MANGALAM",eo[eo.KHAROSHTHI_PUNCTUATION_LOTUS=68181]="KHAROSHTHI_PUNCTUATION_LOTUS",eo[eo.KHAROSHTHI_PUNCTUATION_DANDA=68182]="KHAROSHTHI_PUNCTUATION_DANDA",eo[eo.KHAROSHTHI_PUNCTUATION_DOUBLE_DANDA=68183]="KHAROSHTHI_PUNCTUATION_DOUBLE_DANDA",eo[eo.KHAROSHTHI_PUNCTUATION_LINES=68184]="KHAROSHTHI_PUNCTUATION_LINES",eo[eo.OLD_SOUTH_ARABIAN_NUMERIC_INDICATOR=68223]="OLD_SOUTH_ARABIAN_NUMERIC_INDICATOR",eo[eo.MANICHAEAN_PUNCTUATION_STAR=68336]="MANICHAEAN_PUNCTUATION_STAR",eo[eo.MANICHAEAN_PUNCTUATION_FLEURON=68337]="MANICHAEAN_PUNCTUATION_FLEURON",eo[eo.MANICHAEAN_PUNCTUATION_DOUBLE_DOT_WITHIN_DOT=68338]="MANICHAEAN_PUNCTUATION_DOUBLE_DOT_WITHIN_DOT",eo[eo.MANICHAEAN_PUNCTUATION_DOT_WITHIN_DOT=68339]="MANICHAEAN_PUNCTUATION_DOT_WITHIN_DOT",eo[eo.MANICHAEAN_PUNCTUATION_DOT=68340]="MANICHAEAN_PUNCTUATION_DOT",eo[eo.MANICHAEAN_PUNCTUATION_TWO_DOTS=68341]="MANICHAEAN_PUNCTUATION_TWO_DOTS",eo[eo.MANICHAEAN_PUNCTUATION_LINE_FILLER=68342]="MANICHAEAN_PUNCTUATION_LINE_FILLER",eo[eo.AVESTAN_ABBREVIATION_MARK=68409]="AVESTAN_ABBREVIATION_MARK",eo[eo.TINY_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=68410]="TINY_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",eo[eo.SMALL_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=68411]="SMALL_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",eo[eo.LARGE_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=68412]="LARGE_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",eo[eo.LARGE_ONE_DOT_OVER_TWO_DOTS_PUNCTUATION=68413]="LARGE_ONE_DOT_OVER_TWO_DOTS_PUNCTUATION",eo[eo.LARGE_TWO_RINGS_OVER_ONE_RING_PUNCTUATION=68414]="LARGE_TWO_RINGS_OVER_ONE_RING_PUNCTUATION",eo[eo.LARGE_ONE_RING_OVER_TWO_RINGS_PUNCTUATION=68415]="LARGE_ONE_RING_OVER_TWO_RINGS_PUNCTUATION",eo[eo.PSALTER_PAHLAVI_SECTION_MARK=68505]="PSALTER_PAHLAVI_SECTION_MARK",eo[eo.PSALTER_PAHLAVI_TURNED_SECTION_MARK=68506]="PSALTER_PAHLAVI_TURNED_SECTION_MARK",eo[eo.PSALTER_PAHLAVI_FOUR_DOTS_WITH_CROSS=68507]="PSALTER_PAHLAVI_FOUR_DOTS_WITH_CROSS",eo[eo.PSALTER_PAHLAVI_FOUR_DOTS_WITH_DOT=68508]="PSALTER_PAHLAVI_FOUR_DOTS_WITH_DOT",eo[eo.SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS=69461]="SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS",eo[eo.SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS_WITH_DOTS=69462]="SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS_WITH_DOTS",eo[eo.SOGDIAN_PUNCTUATION_CIRCLE_WITH_DOT=69463]="SOGDIAN_PUNCTUATION_CIRCLE_WITH_DOT",eo[eo.SOGDIAN_PUNCTUATION_TWO_CIRCLES_WITH_DOTS=69464]="SOGDIAN_PUNCTUATION_TWO_CIRCLES_WITH_DOTS",eo[eo.SOGDIAN_PUNCTUATION_HALF_CIRCLE_WITH_DOT=69465]="SOGDIAN_PUNCTUATION_HALF_CIRCLE_WITH_DOT",eo[eo.BRAHMI_DANDA=69703]="BRAHMI_DANDA",eo[eo.BRAHMI_DOUBLE_DANDA=69704]="BRAHMI_DOUBLE_DANDA",eo[eo.BRAHMI_PUNCTUATION_DOT=69705]="BRAHMI_PUNCTUATION_DOT",eo[eo.BRAHMI_PUNCTUATION_DOUBLE_DOT=69706]="BRAHMI_PUNCTUATION_DOUBLE_DOT",eo[eo.BRAHMI_PUNCTUATION_LINE=69707]="BRAHMI_PUNCTUATION_LINE",eo[eo.BRAHMI_PUNCTUATION_CRESCENT_BAR=69708]="BRAHMI_PUNCTUATION_CRESCENT_BAR",eo[eo.BRAHMI_PUNCTUATION_LOTUS=69709]="BRAHMI_PUNCTUATION_LOTUS",eo[eo.KAITHI_ABBREVIATION_SIGN=69819]="KAITHI_ABBREVIATION_SIGN",eo[eo.KAITHI_ENUMERATION_SIGN=69820]="KAITHI_ENUMERATION_SIGN",eo[eo.KAITHI_SECTION_MARK=69822]="KAITHI_SECTION_MARK",eo[eo.KAITHI_DOUBLE_SECTION_MARK=69823]="KAITHI_DOUBLE_SECTION_MARK",eo[eo.KAITHI_DANDA=69824]="KAITHI_DANDA",eo[eo.KAITHI_DOUBLE_DANDA=69825]="KAITHI_DOUBLE_DANDA",eo[eo.CHAKMA_SECTION_MARK=69952]="CHAKMA_SECTION_MARK",eo[eo.CHAKMA_DANDA=69953]="CHAKMA_DANDA",eo[eo.CHAKMA_DOUBLE_DANDA=69954]="CHAKMA_DOUBLE_DANDA",eo[eo.CHAKMA_QUESTION_MARK=69955]="CHAKMA_QUESTION_MARK",eo[eo.MAHAJANI_ABBREVIATION_SIGN=70004]="MAHAJANI_ABBREVIATION_SIGN",eo[eo.MAHAJANI_SECTION_MARK=70005]="MAHAJANI_SECTION_MARK",eo[eo.SHARADA_DANDA=70085]="SHARADA_DANDA",eo[eo.SHARADA_DOUBLE_DANDA=70086]="SHARADA_DOUBLE_DANDA",eo[eo.SHARADA_ABBREVIATION_SIGN=70087]="SHARADA_ABBREVIATION_SIGN",eo[eo.SHARADA_SEPARATOR=70088]="SHARADA_SEPARATOR",eo[eo.SHARADA_SUTRA_MARK=70093]="SHARADA_SUTRA_MARK",eo[eo.SHARADA_SIGN_SIDDHAM=70107]="SHARADA_SIGN_SIDDHAM",eo[eo.SHARADA_CONTINUATION_SIGN=70109]="SHARADA_CONTINUATION_SIGN",eo[eo.SHARADA_SECTION_MARK_1=70110]="SHARADA_SECTION_MARK_1",eo[eo.SHARADA_SECTION_MARK_2=70111]="SHARADA_SECTION_MARK_2",eo[eo.KHOJKI_DANDA=70200]="KHOJKI_DANDA",eo[eo.KHOJKI_DOUBLE_DANDA=70201]="KHOJKI_DOUBLE_DANDA",eo[eo.KHOJKI_WORD_SEPARATOR=70202]="KHOJKI_WORD_SEPARATOR",eo[eo.KHOJKI_SECTION_MARK=70203]="KHOJKI_SECTION_MARK",eo[eo.KHOJKI_DOUBLE_SECTION_MARK=70204]="KHOJKI_DOUBLE_SECTION_MARK",eo[eo.KHOJKI_ABBREVIATION_SIGN=70205]="KHOJKI_ABBREVIATION_SIGN",eo[eo.MULTANI_SECTION_MARK=70313]="MULTANI_SECTION_MARK",eo[eo.NEWA_DANDA=70731]="NEWA_DANDA",eo[eo.NEWA_DOUBLE_DANDA=70732]="NEWA_DOUBLE_DANDA",eo[eo.NEWA_COMMA=70733]="NEWA_COMMA",eo[eo.NEWA_GAP_FILLER=70734]="NEWA_GAP_FILLER",eo[eo.NEWA_ABBREVIATION_SIGN=70735]="NEWA_ABBREVIATION_SIGN",eo[eo.NEWA_DOUBLE_COMMA=70746]="NEWA_DOUBLE_COMMA",eo[eo.NEWA_PLACEHOLDER_MARK=70747]="NEWA_PLACEHOLDER_MARK",eo[eo.NEWA_INSERTION_SIGN=70749]="NEWA_INSERTION_SIGN",eo[eo.TIRHUTA_ABBREVIATION_SIGN=70854]="TIRHUTA_ABBREVIATION_SIGN",eo[eo.SIDDHAM_SIGN_SIDDHAM=71105]="SIDDHAM_SIGN_SIDDHAM",eo[eo.SIDDHAM_DANDA=71106]="SIDDHAM_DANDA",eo[eo.SIDDHAM_DOUBLE_DANDA=71107]="SIDDHAM_DOUBLE_DANDA",eo[eo.SIDDHAM_SEPARATOR_DOT=71108]="SIDDHAM_SEPARATOR_DOT",eo[eo.SIDDHAM_SEPARATOR_BAR=71109]="SIDDHAM_SEPARATOR_BAR",eo[eo.SIDDHAM_REPETITION_MARK_1=71110]="SIDDHAM_REPETITION_MARK_1",eo[eo.SIDDHAM_REPETITION_MARK_2=71111]="SIDDHAM_REPETITION_MARK_2",eo[eo.SIDDHAM_REPETITION_MARK_3=71112]="SIDDHAM_REPETITION_MARK_3",eo[eo.SIDDHAM_END_OF_TEXT_MARK=71113]="SIDDHAM_END_OF_TEXT_MARK",eo[eo.SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_U_SHAPED_ORNAMENTS=71114]="SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_U_SHAPED_ORNAMENTS",eo[eo.SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_DOTTED_CRESCENTS=71115]="SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_DOTTED_CRESCENTS",eo[eo.SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_CRESCENTS=71116]="SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_CRESCENTS",eo[eo.SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_DOUBLE_CRESCENTS=71117]="SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_DOUBLE_CRESCENTS",eo[eo.SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_TRIPLE_CRESCENTS=71118]="SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_TRIPLE_CRESCENTS",eo[eo.SIDDHAM_SECTION_MARK_DOUBLE_RING=71119]="SIDDHAM_SECTION_MARK_DOUBLE_RING",eo[eo.SIDDHAM_SECTION_MARK_DOUBLE_RING_WITH_RAYS=71120]="SIDDHAM_SECTION_MARK_DOUBLE_RING_WITH_RAYS",eo[eo.SIDDHAM_SECTION_MARK_WITH_DOUBLE_CRESCENTS=71121]="SIDDHAM_SECTION_MARK_WITH_DOUBLE_CRESCENTS",eo[eo.SIDDHAM_SECTION_MARK_WITH_TRIPLE_CRESCENTS=71122]="SIDDHAM_SECTION_MARK_WITH_TRIPLE_CRESCENTS",eo[eo.SIDDHAM_SECTION_MARK_WITH_QUADRUPLE_CRESCENTS=71123]="SIDDHAM_SECTION_MARK_WITH_QUADRUPLE_CRESCENTS",eo[eo.SIDDHAM_SECTION_MARK_WITH_SEPTUPLE_CRESCENTS=71124]="SIDDHAM_SECTION_MARK_WITH_SEPTUPLE_CRESCENTS",eo[eo.SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_RAYS=71125]="SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_RAYS",eo[eo.SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_TWO_ENCLOSURES=71126]="SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_TWO_ENCLOSURES",eo[eo.SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_FOUR_ENCLOSURES=71127]="SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_FOUR_ENCLOSURES",eo[eo.MODI_DANDA=71233]="MODI_DANDA",eo[eo.MODI_DOUBLE_DANDA=71234]="MODI_DOUBLE_DANDA",eo[eo.MODI_ABBREVIATION_SIGN=71235]="MODI_ABBREVIATION_SIGN",eo[eo.MONGOLIAN_BIRGA_WITH_ORNAMENT=71264]="MONGOLIAN_BIRGA_WITH_ORNAMENT",eo[eo.MONGOLIAN_ROTATED_BIRGA=71265]="MONGOLIAN_ROTATED_BIRGA",eo[eo.MONGOLIAN_DOUBLE_BIRGA_WITH_ORNAMENT=71266]="MONGOLIAN_DOUBLE_BIRGA_WITH_ORNAMENT",eo[eo.MONGOLIAN_TRIPLE_BIRGA_WITH_ORNAMENT=71267]="MONGOLIAN_TRIPLE_BIRGA_WITH_ORNAMENT",eo[eo.MONGOLIAN_BIRGA_WITH_DOUBLE_ORNAMENT=71268]="MONGOLIAN_BIRGA_WITH_DOUBLE_ORNAMENT",eo[eo.MONGOLIAN_ROTATED_BIRGA_WITH_ORNAMENT=71269]="MONGOLIAN_ROTATED_BIRGA_WITH_ORNAMENT",eo[eo.MONGOLIAN_ROTATED_BIRGA_WITH_DOUBLE_ORNAMENT=71270]="MONGOLIAN_ROTATED_BIRGA_WITH_DOUBLE_ORNAMENT",eo[eo.MONGOLIAN_INVERTED_BIRGA=71271]="MONGOLIAN_INVERTED_BIRGA",eo[eo.MONGOLIAN_INVERTED_BIRGA_WITH_DOUBLE_ORNAMENT=71272]="MONGOLIAN_INVERTED_BIRGA_WITH_DOUBLE_ORNAMENT",eo[eo.MONGOLIAN_SWIRL_BIRGA=71273]="MONGOLIAN_SWIRL_BIRGA",eo[eo.MONGOLIAN_SWIRL_BIRGA_WITH_ORNAMENT=71274]="MONGOLIAN_SWIRL_BIRGA_WITH_ORNAMENT",eo[eo.MONGOLIAN_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT=71275]="MONGOLIAN_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT",eo[eo.MONGOLIAN_TURNED_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT=71276]="MONGOLIAN_TURNED_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT",eo[eo.AHOM_SIGN_SMALL_SECTION=71484]="AHOM_SIGN_SMALL_SECTION",eo[eo.AHOM_SIGN_SECTION=71485]="AHOM_SIGN_SECTION",eo[eo.AHOM_SIGN_RULAI=71486]="AHOM_SIGN_RULAI",eo[eo.DOGRA_ABBREVIATION_SIGN=71739]="DOGRA_ABBREVIATION_SIGN",eo[eo.DIVES_AKURU_DOUBLE_DANDA=72004]="DIVES_AKURU_DOUBLE_DANDA",eo[eo.DIVES_AKURU_GAP_FILLER=72005]="DIVES_AKURU_GAP_FILLER",eo[eo.DIVES_AKURU_END_OF_TEXT_MARK=72006]="DIVES_AKURU_END_OF_TEXT_MARK",eo[eo.NANDINAGARI_SIGN_SIDDHAM=72162]="NANDINAGARI_SIGN_SIDDHAM",eo[eo.ZANABAZAR_SQUARE_INITIAL_HEAD_MARK=72255]="ZANABAZAR_SQUARE_INITIAL_HEAD_MARK",eo[eo.ZANABAZAR_SQUARE_CLOSING_HEAD_MARK=72256]="ZANABAZAR_SQUARE_CLOSING_HEAD_MARK",eo[eo.ZANABAZAR_SQUARE_MARK_TSHEG=72257]="ZANABAZAR_SQUARE_MARK_TSHEG",eo[eo.ZANABAZAR_SQUARE_MARK_SHAD=72258]="ZANABAZAR_SQUARE_MARK_SHAD",eo[eo.ZANABAZAR_SQUARE_MARK_DOUBLE_SHAD=72259]="ZANABAZAR_SQUARE_MARK_DOUBLE_SHAD",eo[eo.ZANABAZAR_SQUARE_MARK_LONG_TSHEG=72260]="ZANABAZAR_SQUARE_MARK_LONG_TSHEG",eo[eo.ZANABAZAR_SQUARE_INITIAL_DOUBLE_LINED_HEAD_MARK=72261]="ZANABAZAR_SQUARE_INITIAL_DOUBLE_LINED_HEAD_MARK",eo[eo.ZANABAZAR_SQUARE_CLOSING_DOUBLE_LINED_HEAD_MARK=72262]="ZANABAZAR_SQUARE_CLOSING_DOUBLE_LINED_HEAD_MARK",eo[eo.SOYOMBO_MARK_TSHEG=72346]="SOYOMBO_MARK_TSHEG",eo[eo.SOYOMBO_MARK_SHAD=72347]="SOYOMBO_MARK_SHAD",eo[eo.SOYOMBO_MARK_DOUBLE_SHAD=72348]="SOYOMBO_MARK_DOUBLE_SHAD",eo[eo.SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_TRIPLE_FLAME=72350]="SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_TRIPLE_FLAME",eo[eo.SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_FLAME=72351]="SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_FLAME",eo[eo.SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN=72352]="SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN",eo[eo.SOYOMBO_TERMINAL_MARK_1=72353]="SOYOMBO_TERMINAL_MARK_1",eo[eo.SOYOMBO_TERMINAL_MARK_2=72354]="SOYOMBO_TERMINAL_MARK_2",eo[eo.BHAIKSUKI_DANDA=72769]="BHAIKSUKI_DANDA",eo[eo.BHAIKSUKI_DOUBLE_DANDA=72770]="BHAIKSUKI_DOUBLE_DANDA",eo[eo.BHAIKSUKI_WORD_SEPARATOR=72771]="BHAIKSUKI_WORD_SEPARATOR",eo[eo.BHAIKSUKI_GAP_FILLER_1=72772]="BHAIKSUKI_GAP_FILLER_1",eo[eo.BHAIKSUKI_GAP_FILLER_2=72773]="BHAIKSUKI_GAP_FILLER_2",eo[eo.MARCHEN_HEAD_MARK=72816]="MARCHEN_HEAD_MARK",eo[eo.MARCHEN_MARK_SHAD=72817]="MARCHEN_MARK_SHAD",eo[eo.MAKASAR_PASSIMBANG=73463]="MAKASAR_PASSIMBANG",eo[eo.MAKASAR_END_OF_SECTION=73464]="MAKASAR_END_OF_SECTION",eo[eo.TAMIL_PUNCTUATION_END_OF_TEXT=73727]="TAMIL_PUNCTUATION_END_OF_TEXT",eo[eo.CUNEIFORM_PUNCTUATION_SIGN_OLD_ASSYRIAN_WORD_DIVIDER=74864]="CUNEIFORM_PUNCTUATION_SIGN_OLD_ASSYRIAN_WORD_DIVIDER",eo[eo.CUNEIFORM_PUNCTUATION_SIGN_VERTICAL_COLON=74865]="CUNEIFORM_PUNCTUATION_SIGN_VERTICAL_COLON",eo[eo.CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_COLON=74866]="CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_COLON",eo[eo.CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_TRICOLON=74867]="CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_TRICOLON",eo[eo.CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_QUADCOLON=74868]="CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_QUADCOLON",eo[eo.MRO_DANDA=92782]="MRO_DANDA",eo[eo.MRO_DOUBLE_DANDA=92783]="MRO_DOUBLE_DANDA",eo[eo.BASSA_VAH_FULL_STOP=92917]="BASSA_VAH_FULL_STOP",eo[eo.PAHAWH_HMONG_SIGN_VOS_THOM=92983]="PAHAWH_HMONG_SIGN_VOS_THOM",eo[eo.PAHAWH_HMONG_SIGN_VOS_TSHAB_CEEB=92984]="PAHAWH_HMONG_SIGN_VOS_TSHAB_CEEB",eo[eo.PAHAWH_HMONG_SIGN_CIM_CHEEM=92985]="PAHAWH_HMONG_SIGN_CIM_CHEEM",eo[eo.PAHAWH_HMONG_SIGN_VOS_THIAB=92986]="PAHAWH_HMONG_SIGN_VOS_THIAB",eo[eo.PAHAWH_HMONG_SIGN_VOS_FEEM=92987]="PAHAWH_HMONG_SIGN_VOS_FEEM",eo[eo.PAHAWH_HMONG_SIGN_XAUS=92996]="PAHAWH_HMONG_SIGN_XAUS",eo[eo.MEDEFAIDRIN_COMMA=93847]="MEDEFAIDRIN_COMMA",eo[eo.MEDEFAIDRIN_FULL_STOP=93848]="MEDEFAIDRIN_FULL_STOP",eo[eo.MEDEFAIDRIN_SYMBOL_AIVA=93849]="MEDEFAIDRIN_SYMBOL_AIVA",eo[eo.MEDEFAIDRIN_EXCLAMATION_OH=93850]="MEDEFAIDRIN_EXCLAMATION_OH",eo[eo.OLD_CHINESE_HOOK_MARK=94178]="OLD_CHINESE_HOOK_MARK",eo[eo.DUPLOYAN_PUNCTUATION_CHINOOK_FULL_STOP=113823]="DUPLOYAN_PUNCTUATION_CHINOOK_FULL_STOP",eo[eo.SIGNWRITING_COMMA=121479]="SIGNWRITING_COMMA",eo[eo.SIGNWRITING_FULL_STOP=121480]="SIGNWRITING_FULL_STOP",eo[eo.SIGNWRITING_SEMICOLON=121481]="SIGNWRITING_SEMICOLON",eo[eo.SIGNWRITING_COLON=121482]="SIGNWRITING_COLON",eo[eo.SIGNWRITING_PARENTHESIS=121483]="SIGNWRITING_PARENTHESIS",eo[eo.ADLAM_INITIAL_EXCLAMATION_MARK=125278]="ADLAM_INITIAL_EXCLAMATION_MARK",eo[eo.ADLAM_INITIAL_QUESTION_MARK=125279]="ADLAM_INITIAL_QUESTION_MARK"})(UnicodePoCodePoint||(UnicodePoCodePoint={}));var UnicodePsCodePoint;(function(eo){eo[eo.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",eo[eo.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",eo[eo.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",eo[eo.TIBETAN_MARK_GUG_RTAGS_GYON=3898]="TIBETAN_MARK_GUG_RTAGS_GYON",eo[eo.TIBETAN_MARK_ANG_KHANG_GYON=3900]="TIBETAN_MARK_ANG_KHANG_GYON",eo[eo.OGHAM_FEATHER_MARK=5787]="OGHAM_FEATHER_MARK",eo[eo.SINGLE_LOW_9_QUOTATION_MARK=8218]="SINGLE_LOW_9_QUOTATION_MARK",eo[eo.DOUBLE_LOW_9_QUOTATION_MARK=8222]="DOUBLE_LOW_9_QUOTATION_MARK",eo[eo.LEFT_SQUARE_BRACKET_WITH_QUILL=8261]="LEFT_SQUARE_BRACKET_WITH_QUILL",eo[eo.SUPERSCRIPT_LEFT_PARENTHESIS=8317]="SUPERSCRIPT_LEFT_PARENTHESIS",eo[eo.SUBSCRIPT_LEFT_PARENTHESIS=8333]="SUBSCRIPT_LEFT_PARENTHESIS",eo[eo.LEFT_CEILING=8968]="LEFT_CEILING",eo[eo.LEFT_FLOOR=8970]="LEFT_FLOOR",eo[eo.LEFT_POINTING_ANGLE_BRACKET=9001]="LEFT_POINTING_ANGLE_BRACKET",eo[eo.MEDIUM_LEFT_PARENTHESIS_ORNAMENT=10088]="MEDIUM_LEFT_PARENTHESIS_ORNAMENT",eo[eo.MEDIUM_FLATTENED_LEFT_PARENTHESIS_ORNAMENT=10090]="MEDIUM_FLATTENED_LEFT_PARENTHESIS_ORNAMENT",eo[eo.MEDIUM_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT=10092]="MEDIUM_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT",eo[eo.HEAVY_LEFT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT=10094]="HEAVY_LEFT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT",eo[eo.HEAVY_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT=10096]="HEAVY_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT",eo[eo.LIGHT_LEFT_TORTOISE_SHELL_BRACKET_ORNAMENT=10098]="LIGHT_LEFT_TORTOISE_SHELL_BRACKET_ORNAMENT",eo[eo.MEDIUM_LEFT_CURLY_BRACKET_ORNAMENT=10100]="MEDIUM_LEFT_CURLY_BRACKET_ORNAMENT",eo[eo.LEFT_S_SHAPED_BAG_DELIMITER=10181]="LEFT_S_SHAPED_BAG_DELIMITER",eo[eo.MATHEMATICAL_LEFT_WHITE_SQUARE_BRACKET=10214]="MATHEMATICAL_LEFT_WHITE_SQUARE_BRACKET",eo[eo.MATHEMATICAL_LEFT_ANGLE_BRACKET=10216]="MATHEMATICAL_LEFT_ANGLE_BRACKET",eo[eo.MATHEMATICAL_LEFT_DOUBLE_ANGLE_BRACKET=10218]="MATHEMATICAL_LEFT_DOUBLE_ANGLE_BRACKET",eo[eo.MATHEMATICAL_LEFT_WHITE_TORTOISE_SHELL_BRACKET=10220]="MATHEMATICAL_LEFT_WHITE_TORTOISE_SHELL_BRACKET",eo[eo.MATHEMATICAL_LEFT_FLATTENED_PARENTHESIS=10222]="MATHEMATICAL_LEFT_FLATTENED_PARENTHESIS",eo[eo.LEFT_WHITE_CURLY_BRACKET=10627]="LEFT_WHITE_CURLY_BRACKET",eo[eo.LEFT_WHITE_PARENTHESIS=10629]="LEFT_WHITE_PARENTHESIS",eo[eo.Z_NOTATION_LEFT_IMAGE_BRACKET=10631]="Z_NOTATION_LEFT_IMAGE_BRACKET",eo[eo.Z_NOTATION_LEFT_BINDING_BRACKET=10633]="Z_NOTATION_LEFT_BINDING_BRACKET",eo[eo.LEFT_SQUARE_BRACKET_WITH_UNDERBAR=10635]="LEFT_SQUARE_BRACKET_WITH_UNDERBAR",eo[eo.LEFT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER=10637]="LEFT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER",eo[eo.LEFT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER=10639]="LEFT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER",eo[eo.LEFT_ANGLE_BRACKET_WITH_DOT=10641]="LEFT_ANGLE_BRACKET_WITH_DOT",eo[eo.LEFT_ARC_LESS_THAN_BRACKET=10643]="LEFT_ARC_LESS_THAN_BRACKET",eo[eo.DOUBLE_LEFT_ARC_GREATER_THAN_BRACKET=10645]="DOUBLE_LEFT_ARC_GREATER_THAN_BRACKET",eo[eo.LEFT_BLACK_TORTOISE_SHELL_BRACKET=10647]="LEFT_BLACK_TORTOISE_SHELL_BRACKET",eo[eo.LEFT_WIGGLY_FENCE=10712]="LEFT_WIGGLY_FENCE",eo[eo.LEFT_DOUBLE_WIGGLY_FENCE=10714]="LEFT_DOUBLE_WIGGLY_FENCE",eo[eo.LEFT_POINTING_CURVED_ANGLE_BRACKET=10748]="LEFT_POINTING_CURVED_ANGLE_BRACKET",eo[eo.TOP_LEFT_HALF_BRACKET=11810]="TOP_LEFT_HALF_BRACKET",eo[eo.BOTTOM_LEFT_HALF_BRACKET=11812]="BOTTOM_LEFT_HALF_BRACKET",eo[eo.LEFT_SIDEWAYS_U_BRACKET=11814]="LEFT_SIDEWAYS_U_BRACKET",eo[eo.LEFT_DOUBLE_PARENTHESIS=11816]="LEFT_DOUBLE_PARENTHESIS",eo[eo.DOUBLE_LOW_REVERSED_9_QUOTATION_MARK=11842]="DOUBLE_LOW_REVERSED_9_QUOTATION_MARK",eo[eo.LEFT_ANGLE_BRACKET=12296]="LEFT_ANGLE_BRACKET",eo[eo.LEFT_DOUBLE_ANGLE_BRACKET=12298]="LEFT_DOUBLE_ANGLE_BRACKET",eo[eo.LEFT_CORNER_BRACKET=12300]="LEFT_CORNER_BRACKET",eo[eo.LEFT_WHITE_CORNER_BRACKET=12302]="LEFT_WHITE_CORNER_BRACKET",eo[eo.LEFT_BLACK_LENTICULAR_BRACKET=12304]="LEFT_BLACK_LENTICULAR_BRACKET",eo[eo.LEFT_TORTOISE_SHELL_BRACKET=12308]="LEFT_TORTOISE_SHELL_BRACKET",eo[eo.LEFT_WHITE_LENTICULAR_BRACKET=12310]="LEFT_WHITE_LENTICULAR_BRACKET",eo[eo.LEFT_WHITE_TORTOISE_SHELL_BRACKET=12312]="LEFT_WHITE_TORTOISE_SHELL_BRACKET",eo[eo.LEFT_WHITE_SQUARE_BRACKET=12314]="LEFT_WHITE_SQUARE_BRACKET",eo[eo.REVERSED_DOUBLE_PRIME_QUOTATION_MARK=12317]="REVERSED_DOUBLE_PRIME_QUOTATION_MARK",eo[eo.ORNATE_RIGHT_PARENTHESIS=64831]="ORNATE_RIGHT_PARENTHESIS",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_LENTICULAR_BRACKET=65047]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_LENTICULAR_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_PARENTHESIS=65077]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_PARENTHESIS",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_CURLY_BRACKET=65079]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_CURLY_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_TORTOISE_SHELL_BRACKET=65081]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_TORTOISE_SHELL_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_BLACK_LENTICULAR_BRACKET=65083]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_BLACK_LENTICULAR_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_DOUBLE_ANGLE_BRACKET=65085]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_DOUBLE_ANGLE_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_ANGLE_BRACKET=65087]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_ANGLE_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_CORNER_BRACKET=65089]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_CORNER_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_CORNER_BRACKET=65091]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_CORNER_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_SQUARE_BRACKET=65095]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_SQUARE_BRACKET",eo[eo.SMALL_LEFT_PARENTHESIS=65113]="SMALL_LEFT_PARENTHESIS",eo[eo.SMALL_LEFT_CURLY_BRACKET=65115]="SMALL_LEFT_CURLY_BRACKET",eo[eo.SMALL_LEFT_TORTOISE_SHELL_BRACKET=65117]="SMALL_LEFT_TORTOISE_SHELL_BRACKET",eo[eo.FULLWIDTH_LEFT_PARENTHESIS=65288]="FULLWIDTH_LEFT_PARENTHESIS",eo[eo.FULLWIDTH_LEFT_SQUARE_BRACKET=65339]="FULLWIDTH_LEFT_SQUARE_BRACKET",eo[eo.FULLWIDTH_LEFT_CURLY_BRACKET=65371]="FULLWIDTH_LEFT_CURLY_BRACKET",eo[eo.FULLWIDTH_LEFT_WHITE_PARENTHESIS=65375]="FULLWIDTH_LEFT_WHITE_PARENTHESIS",eo[eo.HALFWIDTH_LEFT_CORNER_BRACKET=65378]="HALFWIDTH_LEFT_CORNER_BRACKET"})(UnicodePsCodePoint||(UnicodePsCodePoint={}));var UnicodeZsCodePoint;(function(eo){eo[eo.SPACE=32]="SPACE",eo[eo.NO_BREAK_SPACE=160]="NO_BREAK_SPACE",eo[eo.OGHAM_SPACE_MARK=5760]="OGHAM_SPACE_MARK",eo[eo.EN_QUAD=8192]="EN_QUAD",eo[eo.EM_QUAD=8193]="EM_QUAD",eo[eo.EN_SPACE=8194]="EN_SPACE",eo[eo.EM_SPACE=8195]="EM_SPACE",eo[eo.THREE_PER_EM_SPACE=8196]="THREE_PER_EM_SPACE",eo[eo.FOUR_PER_EM_SPACE=8197]="FOUR_PER_EM_SPACE",eo[eo.SIX_PER_EM_SPACE=8198]="SIX_PER_EM_SPACE",eo[eo.FIGURE_SPACE=8199]="FIGURE_SPACE",eo[eo.PUNCTUATION_SPACE=8200]="PUNCTUATION_SPACE",eo[eo.THIN_SPACE=8201]="THIN_SPACE",eo[eo.HAIR_SPACE=8202]="HAIR_SPACE",eo[eo.NARROW_NO_BREAK_SPACE=8239]="NARROW_NO_BREAK_SPACE",eo[eo.MEDIUM_MATHEMATICAL_SPACE=8287]="MEDIUM_MATHEMATICAL_SPACE",eo[eo.IDEOGRAPHIC_SPACE=12288]="IDEOGRAPHIC_SPACE"})(UnicodeZsCodePoint||(UnicodeZsCodePoint={}));var VirtualCodePoint;(function(eo){eo[eo.LINE_END=-1]="LINE_END",eo[eo.SPACE=-2]="SPACE"})(VirtualCodePoint||(VirtualCodePoint={}));function createCodePointSearcher(eo){const to=[...new Set(eo)].sort((oo,io)=>oo-io),ro=to.length;if(ro<8)return[oo=>{for(let io=0;ioso+io);++io);no.push(so,so+io)}if(no.length*1.5{for(let so=0;so{let so=0,ao=oo;for(;so>>1;io{let io=0,so=ro;for(;io>>1;ootypeof to=="number")}createCodePointSearcher([AsciiCodePoint.HT,AsciiCodePoint.LF,AsciiCodePoint.VT,AsciiCodePoint.FF,AsciiCodePoint.CR,AsciiCodePoint.SPACE]);const[isAsciiPunctuationCharacter,asciiPunctuationCharacters]=createCodePointSearcher([AsciiCodePoint.EXCLAMATION_MARK,AsciiCodePoint.DOUBLE_QUOTE,AsciiCodePoint.NUMBER_SIGN,AsciiCodePoint.DOLLAR_SIGN,AsciiCodePoint.PERCENT_SIGN,AsciiCodePoint.AMPERSAND,AsciiCodePoint.SINGLE_QUOTE,AsciiCodePoint.OPEN_PARENTHESIS,AsciiCodePoint.CLOSE_PARENTHESIS,AsciiCodePoint.ASTERISK,AsciiCodePoint.PLUS_SIGN,AsciiCodePoint.COMMA,AsciiCodePoint.MINUS_SIGN,AsciiCodePoint.DOT,AsciiCodePoint.SLASH,AsciiCodePoint.COLON,AsciiCodePoint.SEMICOLON,AsciiCodePoint.OPEN_ANGLE,AsciiCodePoint.EQUALS_SIGN,AsciiCodePoint.CLOSE_ANGLE,AsciiCodePoint.QUESTION_MARK,AsciiCodePoint.AT_SIGN,AsciiCodePoint.OPEN_BRACKET,AsciiCodePoint.BACKSLASH,AsciiCodePoint.CLOSE_BRACKET,AsciiCodePoint.CARET,AsciiCodePoint.UNDERSCORE,AsciiCodePoint.BACKTICK,AsciiCodePoint.OPEN_BRACE,AsciiCodePoint.VERTICAL_SLASH,AsciiCodePoint.CLOSE_BRACE,AsciiCodePoint.TILDE]),isAsciiDigitCharacter=eo=>eo>=AsciiCodePoint.DIGIT0&&eo<=AsciiCodePoint.DIGIT9,isAsciiLowerLetter=eo=>eo>=AsciiCodePoint.LOWERCASE_A&&eo<=AsciiCodePoint.LOWERCASE_Z,isAsciiUpperLetter=eo=>eo>=AsciiCodePoint.UPPERCASE_A&&eo<=AsciiCodePoint.UPPERCASE_Z,isAsciiLetter=eo=>isAsciiLowerLetter(eo)||isAsciiUpperLetter(eo),isAlphanumeric=eo=>isAsciiLowerLetter(eo)||isAsciiUpperLetter(eo)||isAsciiDigitCharacter(eo),isAsciiCharacter=eo=>eo>=AsciiCodePoint.NUL&&eo<=AsciiCodePoint.DELETE,[isAsciiControlCharacter,asciiControlCharacters]=createCodePointSearcher([AsciiCodePoint.NUL,AsciiCodePoint.SOH,AsciiCodePoint.STX,AsciiCodePoint.ETX,AsciiCodePoint.EOT,AsciiCodePoint.ENQ,AsciiCodePoint.ACK,AsciiCodePoint.BEL,AsciiCodePoint.BS,AsciiCodePoint.HT,AsciiCodePoint.LF,AsciiCodePoint.VT,AsciiCodePoint.FF,AsciiCodePoint.CR,AsciiCodePoint.SO,AsciiCodePoint.SI,AsciiCodePoint.DLE,AsciiCodePoint.DC1,AsciiCodePoint.DC2,AsciiCodePoint.DC3,AsciiCodePoint.DC4,AsciiCodePoint.NAK,AsciiCodePoint.SYN,AsciiCodePoint.ETB,AsciiCodePoint.CAN,AsciiCodePoint.EM,AsciiCodePoint.SUB,AsciiCodePoint.ESC,AsciiCodePoint.FS,AsciiCodePoint.GS,AsciiCodePoint.RS,AsciiCodePoint.US,AsciiCodePoint.DELETE]),[isWhitespaceCharacter,whitespaceCharacters]=createCodePointSearcher([AsciiCodePoint.VT,AsciiCodePoint.FF,AsciiCodePoint.SPACE,VirtualCodePoint.SPACE,VirtualCodePoint.LINE_END]);AsciiCodePoint.SPACE,VirtualCodePoint.SPACE;const isSpaceCharacter=eo=>eo===AsciiCodePoint.SPACE||eo===VirtualCodePoint.SPACE,isLineEnding=eo=>eo===VirtualCodePoint.LINE_END,[isPunctuationCharacter,punctuationCharacters]=createCodePointSearcher([...asciiPunctuationCharacters,...collectCodePointsFromEnum(UnicodePcCodePoint),...collectCodePointsFromEnum(UnicodePdCodePoint),...collectCodePointsFromEnum(UnicodePeCodePoint),...collectCodePointsFromEnum(UnicodePfCodePoint),...collectCodePointsFromEnum(UnicodePiCodePoint),...collectCodePointsFromEnum(UnicodePoCodePoint),...collectCodePointsFromEnum(UnicodePsCodePoint)]),isSpaceLike=eo=>isSpaceCharacter(eo)||isLineEnding(eo),[isUnicodeWhitespaceCharacter,unicodeWhitespaceCharacters]=createCodePointSearcher([AsciiCodePoint.HT,AsciiCodePoint.LF,AsciiCodePoint.FF,AsciiCodePoint.CR,VirtualCodePoint.SPACE,VirtualCodePoint.LINE_END,...collectCodePointsFromEnum(UnicodeZsCodePoint)]);var UnicodeCodePoint;(function(eo){eo[eo.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"})(UnicodeCodePoint||(UnicodeCodePoint={}));function createEntityReferenceTrie(){const eo=(oo,io)=>{if(oo.length<=4){for(let lo=0;lo=io)return lo;return oo.length}let so=0,ao=oo.length;for(;so>>1;oo[lo].key{let so=to;for(const ao of oo){const lo=eo(so.children,ao);if(lo>=so.children.length){const co={key:ao,children:[]};so.children.push(co),so=co;continue}let uo=so.children[lo];if(uo.key===ao){so=uo;continue}uo={key:ao,children:[]},so.children.splice(lo,0,uo),so=uo}so.value=io},search:(oo,io,so)=>{let ao=to;for(let lo=io;lo=ao.children.length)return null;const fo=ao.children[co];if(fo.key!==uo)return null;if(fo.value!=null)return{nextIndex:lo+1,value:fo.value};ao=fo}return null}}}const entityReferenceTrie=createEntityReferenceTrie();entityReferences.forEach(eo=>entityReferenceTrie.insert(eo.key,eo.value));function eatEntityReference(eo,to,ro){if(to+1>=ro)return null;const no=entityReferenceTrie.search(eo,to,ro);if(no!=null)return no;if(eo[to].codePoint!==AsciiCodePoint.NUMBER_SIGN)return null;let oo=0,io=to+1;if(eo[io].codePoint===AsciiCodePoint.LOWERCASE_X||eo[io].codePoint===AsciiCodePoint.UPPERCASE_X){io+=1;for(let ao=1;ao<=6&&io=AsciiCodePoint.UPPERCASE_A&&lo<=AsciiCodePoint.UPPERCASE_F){oo=(oo<<4)+(lo-AsciiCodePoint.UPPERCASE_A+10);continue}if(lo>=AsciiCodePoint.LOWERCASE_A&&lo<=AsciiCodePoint.LOWERCASE_F){oo=(oo<<4)+(lo-AsciiCodePoint.LOWERCASE_A+10);continue}break}}else for(let ao=1;ao<=7&&io=ro||eo[io].codePoint!==AsciiCodePoint.SEMICOLON)return null;let so;try{oo===0&&(oo=UnicodeCodePoint.REPLACEMENT_CHARACTER),so=String.fromCodePoint(oo)}catch{so=String.fromCodePoint(UnicodeCodePoint.REPLACEMENT_CHARACTER)}return{nextIndex:io+1,value:so}}function foldCase(eo){return Array.from(eo).map(to=>foldingCaseCodeMap[to]??to).join("")}(()=>{try{const eo=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,to=new RegExp(`(${eo})\\n+(${eo})`,"gu");return ro=>ro.replace(to,"$1$2")}catch{const eo=/[\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,to=new RegExp(`(${eo})\\n+(${eo})`,"gu");return ro=>ro.replace(to,"$1$2")}})();(()=>{try{const eo=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,to=new RegExp(`(${eo})[\\s\\n]+(${eo})`,"gu");return ro=>ro.replace(to,"$1$2")}catch{const eo=/[\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,to=new RegExp(`(${eo})[\\s\\n]+(${eo})`,"gu");return ro=>ro.replace(to,"$1$2")}})();function*createNodePointGenerator(eo){let to=0,ro=1,no=1;const oo=typeof eo=="string"?[eo]:eo;for(const io of oo){const so=[];for(const uo of io){const co=uo.codePointAt(0);so.push(co)}const ao=[],lo=so.length;for(let uo=0;uo>2,uo=so-io&3;for(let co=0;co>2,uo=so-io&3;for(let co=0;co!0;if(eo instanceof Function)return eo;if(eo.length===0)return()=>!1;if(eo.length===1){const to=eo[0];return ro=>ro.type===to}if(eo.length===2){const[to,ro]=eo;return no=>no.type===to||no.type===ro}return to=>{for(const ro of eo)if(to.type===ro)return!0;return!1}}function traverseAst(eo,to,ro){const no=createNodeMatcher(to),oo=io=>{const{children:so}=io;for(let ao=0;ao{const no={};traverseAst(eo,to,so=>{const ao=so;no[ao.identifier]===void 0&&(no[ao.identifier]=ao)});const oo=[];for(const so of ro)no[so.identifier]===void 0&&(no[so.identifier]=so,oo.push(so));return{root:oo.length>0?{...eo,children:eo.children.concat(oo)}:eo,definitionMap:no}},astClasses=mergeStyleSets({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:{}}),NodeRendererContextType=React.createContext(null);NodeRendererContextType.displayName="NodeRendererContextType";const useNodeRendererContext=()=>React.useContext(NodeRendererContextType);class SafeBatchHandler{constructor(){Ws(this,"_errors");Ws(this,"_summary");this._errors=[],this._summary=void 0}cleanup(){this._errors.length=0,this._summary=void 0}run(to){try{to()}catch(ro){this._errors.push(ro),this._summary=void 0}}summary(to){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,to))}if(this._summary!==void 0)throw this._summary}}function disposeAll(eo){const to=new SafeBatchHandler;for(const ro of eo)to.run(()=>ro.dispose());to.summary("[disposeAll] Encountered errors while disposing"),to.cleanup()}class BatchDisposable{constructor(){Ws(this,"_disposed");Ws(this,"_disposables");this._disposed=!1,this._disposables=[]}get disposed(){return this._disposed}dispose(){if(!this._disposed){this._disposed=!0;try{disposeAll(this._disposables)}finally{this._disposables.length=0}}}registerDisposable(to){to.disposed||(this._disposed?to.dispose():this._disposables.push(to))}}class Disposable{constructor(to){Ws(this,"_onDispose");Ws(this,"_disposed");this._onDispose=to,this._disposed=!1}get disposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._onDispose())}}function isDisposable(eo){return eo===null||typeof eo!="object"?!1:typeof Reflect.get(eo,"dispose")=="function"&&typeof Reflect.get(eo,"disposed")=="boolean"}const noop$1=()=>{};class Subscriber{constructor(to){Ws(this,"_onDispose");Ws(this,"_onNext");Ws(this,"_disposed");this._onDispose=(to==null?void 0:to.onDispose)??noop$1,this._onNext=to.onNext,this._disposed=!1}get disposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._onDispose())}next(to,ro){this._disposed||this._onNext(to,ro)}}const noopUnsubscribable$1={unsubscribe:()=>{}};class Subscribers{constructor(to={}){Ws(this,"ARRANGE_THRESHOLD");Ws(this,"_disposed");Ws(this,"_items");Ws(this,"_subscribingCount");this.ARRANGE_THRESHOLD=to.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 to=new SafeBatchHandler,ro=this._items;for(let no=0;nooo.subscriber.dispose()))}ro.length=0,this._subscribingCount=0,to.summary("Encountered errors while disposing."),to.cleanup()}notify(to,ro){if(this._disposed)return;const no=new SafeBatchHandler,oo=this._items;for(let io=0,so=oo.length;ioao.subscriber.next(to,ro))}no.summary("Encountered errors while notifying subscribers."),no.cleanup()}subscribe(to){if(to.disposed)return noopUnsubscribable$1;if(this.disposed)return to.dispose(),noopUnsubscribable$1;const ro={subscriber:to,unsubscribed:!1};return this._items.push(ro),this._subscribingCount+=1,{unsubscribe:()=>{ro.unsubscribed||(ro.unsubscribed=!0,this._subscribingCount-=1,this._arrange())}}}_arrange(){const to=this._items;if(to.length>=this.ARRANGE_THRESHOLD&&this._subscribingCount*2<=to.length){const ro=[];for(let no=0;no{},noopUnsubscribable={unsubscribe:noop},noopUnobservable={unobserve:noop},isObservable=eo=>eo===null||typeof eo!="object"?!1:typeof Reflect.get(eo,"dispose")=="function"&&typeof Reflect.get(eo,"disposed")=="boolean"&&typeof Reflect.get(eo,"subscribe")=="function"&&typeof Reflect.get(eo,"equals")=="function"&&typeof Reflect.get(eo,"getSnapshot")=="function"&&typeof Reflect.get(eo,"next")=="function",defaultEquals=(eo,to)=>Object.is(eo,to);class Observable extends BatchDisposable{constructor(ro,no={}){super();Ws(this,"equals");Ws(this,"_delay");Ws(this,"_subscribers");Ws(this,"_value");Ws(this,"_updateTick");Ws(this,"_notifyTick");Ws(this,"_lastNotifiedValue");Ws(this,"_timer");const{equals:oo=defaultEquals}=no;this._delay=Math.max(0,Number(no.delay)||0),this._subscribers=new Subscribers,this._value=ro,this._updateTick=0,this._notifyTick=0,this._lastNotifiedValue=void 0,this._timer=void 0,this.equals=oo}dispose(){this.disposed||(super.dispose(),this._flush(),this._subscribers.dispose())}getSnapshot(){return this._value}next(ro,no){if(this.disposed){if((no==null?void 0:no.strict)??!0)throw new RangeError(`Don't update a disposed observable. value: ${String(ro)}.`);return}!((no==null?void 0:no.force)??!1)&&this.equals(ro,this._value)||(this._value=ro,this._updateTick+=1,this._notify())}subscribe(ro){if(ro.disposed)return noopUnsubscribable;const no=this._lastNotifiedValue,oo=this._value;return this.disposed?(ro.next(oo,no),ro.dispose(),noopUnsubscribable):(this._flush(),ro.next(oo,no),this._subscribers.subscribe(ro))}_flush(){this._notifyTick{try{this._notifyImmediate()}finally{this._timer=void 0}this._notify()},this._delay))}}_notifyImmediate(){const ro=this._lastNotifiedValue,no=this._value;this._lastNotifiedValue=no,this._notifyTick=this._updateTick,this._subscribers.notify(no,ro)}}const equals=(eo,to)=>eo===to;class Ticker extends Observable{constructor(to={}){const{start:ro=0,delay:no}=to;super(ro,{delay:no,equals})}tick(to){this.next(this._value+1,to)}observe(to,ro){if(this.disposed){if((ro==null?void 0:ro.strict)??!0)throw new RangeError("[Ticker.observe] the ticker has been disposed.");return noopUnobservable}if(to.disposed)return noopUnobservable;const no=new Subscriber({onNext:()=>this.tick()}),oo=to.subscribe(no),io=new Disposable(()=>{no.dispose(),oo.unsubscribe()});return this.registerDisposable(io),{unobserve:()=>io.dispose()}}}class Computed{constructor(to){Ws(this,"_observable");Ws(this,"getSnapshot",()=>this._observable.getSnapshot());Ws(this,"getServerSnapshot",()=>this._observable.getSnapshot());Ws(this,"subscribeStateChange",to=>{const ro=new Subscriber({onNext:()=>to()}),no=this._observable.subscribe(ro),oo=new Disposable(()=>{ro.dispose(),no.unsubscribe()});return this._observable.registerDisposable(oo),()=>oo.dispose()});this._observable=to}static fromObservables(to,ro,no){const oo=new Ticker;for(const lo of to)oo.observe(lo);const io=()=>{const lo=to.map(uo=>uo.getSnapshot());return ro(lo)},so=new Observable(io(),no);so.registerDisposable(oo);const ao=new Subscriber({onNext:()=>so.next(io())});return oo.subscribe(ao),new Computed(so)}get disposed(){return this._observable.disposed}dispose(){this._observable.disposed||this._observable.dispose()}registerDisposable(to){this._observable.registerDisposable(to)}subscribe(to){return this._observable.subscribe(to)}}class State extends Observable{constructor(){super(...arguments);Ws(this,"getSnapshot",()=>super.getSnapshot());Ws(this,"getServerSnapshot",()=>super.getSnapshot());Ws(this,"setState",ro=>{const no=this.getSnapshot(),oo=ro(no);super.next(oo)});Ws(this,"subscribeStateChange",ro=>{const no=new Subscriber({onNext:()=>ro()}),oo=super.subscribe(no),io=new Disposable(()=>{no.dispose(),oo.unsubscribe()});return this.registerDisposable(io),()=>io.dispose()})}}class ViewModel extends BatchDisposable{constructor(){super();Ws(this,"_tickerMap");this._tickerMap=new Map}dispose(){if(!this.disposed){super.dispose();for(const ro of Reflect.ownKeys(this))if(typeof ro=="string"&&ro.endsWith("$")){const no=this[ro];isDisposable(no)&&no.dispose()}for(const ro of this._tickerMap.values())ro.ticker.dispose();this._tickerMap.clear()}}ticker(ro){const no=Array.from(new Set(ro)).sort(),oo=no.join("|");let io=this._tickerMap.get(oo);if(io===void 0){const so=new Ticker;io={keys:no,ticker:so},this.registerDisposable(so),this._tickerMap.set(oo,io);for(const ao of no){const lo=this[ao];if(!isObservable(lo)){console.warn("[ViewModel.ticker] not an observable, key:",ao,"val:",lo);continue}so.observe(lo)}}return io}}class ReactMarkdownViewModel extends ViewModel{constructor(to){super(),this.preferCodeWrap$=new State(!1);const{definitionMap:ro,rendererMap:no,showCodeLineno:oo,themeScheme:io}=to;this.definitionMap$=new State(ro),this.rendererMap$=new State(no),this.showCodeLineno$=new State(oo),this.themeScheme$=new State(io)}}function useSyncExternalStore$2(eo,to,ro){const no=to(),[{inst:oo},io]=reactExports.useState({inst:{value:no,getSnapshot:to}});return reactExports.useLayoutEffect(()=>{oo.value=no,oo.getSnapshot=to,checkIfSnapshotChanged(oo)&&io({inst:oo})},[eo,no,to]),reactExports.useEffect(()=>(checkIfSnapshotChanged(oo)&&io({inst:oo}),eo(()=>{checkIfSnapshotChanged(oo)&&io({inst:oo})})),[eo]),reactExports.useDebugValue(no),no}function checkIfSnapshotChanged(eo){const to=eo.getSnapshot,ro=eo.value;try{const no=to();return!Object.is(ro,no)}catch{return!0}}function useSyncExternalStore$1(eo,to,ro){return to()}const canUseDOM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",shim=canUseDOM?useSyncExternalStore$2:useSyncExternalStore$1,builtin=reactExports.useSyncExternalStore,useSyncExternalStore=builtin||shim;function useStateValue(eo){const{getSnapshot:to,getServerSnapshot:ro,subscribeStateChange:no}=eo;return useSyncExternalStore(no,to,ro)}const NodesRenderer=eo=>{const{nodes:to}=eo,{viewmodel:ro}=useNodeRendererContext(),no=useStateValue(ro.rendererMap$);return!Array.isArray(to)||to.length<=0?jsxRuntimeExports.jsx(React.Fragment,{}):jsxRuntimeExports.jsx(NodesRendererInner,{nodes:to,rendererMap:no})};class NodesRendererInner extends React.Component{shouldComponentUpdate(to){const ro=this.props;return!lodashExports.isEqual(ro.nodes,to.nodes)||ro.rendererMap!==to.rendererMap}render(){const{nodes:to,rendererMap:ro}=this.props;return jsxRuntimeExports.jsx(React.Fragment,{children:to.map((no,oo)=>{const io=`${no.type}-${oo}`,so=ro[no.type]??ro._fallback;return jsxRuntimeExports.jsx(so,{...no},io)})})}}var TokenizerType;(function(eo){eo.BLOCK="block",eo.INLINE="inline"})(TokenizerType||(TokenizerType={}));var TokenizerPriority;(function(eo){eo[eo.ATOMIC=10]="ATOMIC",eo[eo.FENCED_BLOCK=10]="FENCED_BLOCK",eo[eo.CONTAINING_BLOCK=10]="CONTAINING_BLOCK",eo[eo.INTERRUPTABLE_BLOCK=2]="INTERRUPTABLE_BLOCK",eo[eo.IMAGES=4]="IMAGES",eo[eo.LINKS=3]="LINKS",eo[eo.CONTAINING_INLINE=2]="CONTAINING_INLINE",eo[eo.SOFT_INLINE=1]="SOFT_INLINE",eo[eo.FALLBACK=-1]="FALLBACK"})(TokenizerPriority||(TokenizerPriority={}));class BaseInlineTokenizer{constructor(to){Ws(this,"type",TokenizerType.INLINE);Ws(this,"name");Ws(this,"priority");this.name=to.name,this.priority=to.priority}toString(){return this.name}}function*genFindDelimiter(eo){let to=-1,ro=null;for(;;){const[no,oo]=yield ro;to===oo&&(ro==null||ro.startIndex>=no)||(to=oo,ro=eo(no,oo))}}class BaseBlockTokenizer{constructor(to){Ws(this,"type",TokenizerType.BLOCK);Ws(this,"name");Ws(this,"priority");this.name=to.name,this.priority=to.priority}extractPhrasingContentLines(to){return null}buildBlockToken(to,ro){return null}toString(){return this.name}}function calcStartPoint(eo,to){const{line:ro,column:no,offset:oo}=eo[to];return{line:ro,column:no,offset:oo}}function calcEndPoint(eo,to){const{line:ro,column:no,offset:oo}=eo[to];return{line:ro,column:no+1,offset:oo+1}}function calcPositionFromPhrasingContentLines(eo){const to=eo[0],ro=eo[eo.length-1];return{start:calcStartPoint(to.nodePoints,to.startIndex),end:calcEndPoint(ro.nodePoints,ro.endIndex-1)}}function mergeContentLinesFaithfully(eo,to=0,ro=eo.length){if(to>=ro||to<0||ro>eo.length)return[];const no=[];for(let oo=to;oo=ro||to<0||ro>eo.length)return[];for(let lo=to;lo+1=0;--ao){const lo=oo[ao];if(!isWhitespaceCharacter(lo.codePoint))break}for(let lo=so;lo<=ao;++lo)no.push(oo[lo]);return no}function encodeLinkDestination(eo){let to=eo;for(;;)try{const ro=decodeURIComponent(to);if(ro===to)break;to=ro}catch{break}return encodeURI(to)}function resolveLabelToIdentifier(eo){const to=eo.trim().replace(/\s+/gu," ").toLowerCase();return foldCase(to)}function resolveLinkLabelAndIdentifier(eo,to,ro){const no=calcStringFromNodePoints(eo,to,ro,!0);if(no.length<=0)return null;const oo=resolveLabelToIdentifier(no);return{label:no,identifier:oo}}function eatLinkLabel(eo,to,ro){let no=to+1;const oo=Math.min(no+1e3,ro);for(;noto;--ro){const no=eo[ro];if(no.firstNonWhitespaceIndexro?[]:eo.slice(to,ro+1)}const prefix$1="Invariant failed";function invariant(eo,to){if(!eo)throw new Error(prefix$1)}const createBlockContentProcessor=(eo,to)=>{const ro={_tokenizer:"root",nodeType:"root",position:{start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}},children:[]},no=[];no.push({hook:{isContainingBlock:!0},token:ro});let oo=0;const io=po=>{for(let go=oo;go>=0;--go){const vo=no[go];vo.token.position.end={...po}}},so=(po,go)=>{if(go.length<=0)return null;const vo=eo.filter(xo=>xo!==po),bo=createBlockContentProcessor(vo,to);for(const xo of go)bo.consume(xo);return bo},ao=()=>{const po=no.pop();if(po!=null){if(no.length>0){const go=no[no.length-1];if(po.hook.onClose!=null){const vo=po.hook.onClose(po.token);if(vo!=null)switch(vo.status){case"closingAndRollback":{const bo=so(po.hook,vo.lines);if(bo==null)break;const xo=bo.done();go.token.children.push(...xo.children);break}case"failedAndRollback":{go.token.children.pop();const bo=so(po.hook,vo.lines);if(bo==null)break;const xo=bo.done();go.token.children.push(...xo.children);break}}}}return oo>=no.length&&(oo=no.length-1),po}},lo=po=>{for(;no.length>po;)ao()},uo=(po,go,vo)=>{lo(oo+1),no[oo].token.children.push(go),io(go.position.end),oo+=1,no.push({hook:po,token:go}),vo&&ao()},co=(po,go,vo)=>{const bo=so(po,go);if(bo==null)return!1;const xo=bo.shallowSnapshot(),_o=xo[0];_o.token.children!=null&&vo.token.children.push(..._o.token.children),io(_o.token.position.end);for(let Eo=1;Eo{const{nodePoints:go,startIndex:vo,endIndex:bo}=po;let{firstNonWhitespaceIndex:xo,countOfPrecedeSpaces:_o,startIndex:Eo}=po;const So=()=>({nodePoints:go,startIndex:Eo,endIndex:bo,firstNonWhitespaceIndex:xo,countOfPrecedeSpaces:_o}),To=(No,Mo)=>{if(invariant(Eo<=No),Mo){const Do=calcEndPoint(go,No-1);io(Do)}if(Eo!==No)for(Eo=No,_o=0,xo=No;xo{const{token:Do}=no[oo],jo=No.eatOpener(Mo,Do);if(jo==null)return!1;invariant(jo.nextIndex>Eo,`[consumeNewOpener] The marker of the new data node cannot be empty. + tokenizer(${jo.token._tokenizer})`),To(jo.nextIndex,!1);const Fo=jo.token;return Fo._tokenizer=No.name,uo(No,Fo,!!jo.saturated),!0},Co=(No,Mo)=>{if(No.eatAndInterruptPreviousSibling==null)return!1;const{hook:Do,token:jo}=no[oo],{token:Fo}=no[oo-1];if(No.priority<=Do.priority)return!1;const $o=No.eatAndInterruptPreviousSibling(Mo,jo,Fo);if($o==null)return!1;lo(oo),Fo.children.pop(),$o.remainingSibling!=null&&(Array.isArray($o.remainingSibling)?Fo.children.push(...$o.remainingSibling):Fo.children.push($o.remainingSibling)),To($o.nextIndex,!1);const Lo=$o.token;return Lo._tokenizer=No.name,uo(No,Lo,!!$o.saturated),!0},Oo=()=>{if(oo=1,no.length<2)return;let{token:No}=no[oo-1];for(;EoHo!==Do&&Co(Ho,jo)))break;const Fo=Do.eatContinuationText==null?{status:"notMatched"}:Do.eatContinuationText(jo,Mo.token,No);let $o=!1,Lo=!1;switch(Fo.status){case"failedAndRollback":{if(No.children.pop(),no.length=oo,oo-=1,Fo.lines.length>0){const Ho=no[oo];if(co(Do,Fo.lines,Ho)){Lo=!0;break}}$o=!0;break}case"closingAndRollback":{if(lo(oo),Fo.lines.length>0){const Ho=no[oo];if(co(Do,Fo.lines,Ho)){Lo=!0;break}}$o=!0;break}case"notMatched":{oo-=1,$o=!0;break}case"closing":{To(Fo.nextIndex,!0),oo-=1,$o=!0;break}case"opening":{To(Fo.nextIndex,!0);break}default:throw new TypeError(`[eatContinuationText] unexpected status (${Fo.status}).`)}if($o)break;Lo||(oo+=1,No=Mo.token)}},Ao=()=>{if(!(Eo>=bo)){if(oo=4)return}else oo=no.length-1;for(;Eo{if(Eo>=bo||oo+1>=no.length)return!1;const{hook:No,token:Mo}=no[no.length-1];if(No.eatLazyContinuationText==null)return!1;const{token:Do}=no[no.length-2],jo=So(),Fo=No.eatLazyContinuationText(jo,Mo,Do);switch(Fo.status){case"notMatched":return!1;case"opening":return oo=no.length-1,To(Fo.nextIndex,!0),oo=no.length-1,!0;default:throw new TypeError(`[eatLazyContinuationText] unexpected status (${Fo.status}).`)}};if(Oo(),Ao(),Ro()||lo(oo+1),to!=null&&Eo=bo)},done:()=>{for(;no.length>1;)ao();return ro},shallowSnapshot:()=>[...no]}},createSinglePriorityDelimiterProcessor=()=>{let eo=0;const to=[],ro=[],no=[],oo=fo=>{let ho=fo-1;for(;ho>=0&&ro[ho].inactive;)ho-=1;ro.length=ho+1},io=(fo,ho)=>{ro.push({hook:fo,delimiter:ho,inactive:!1,tokenStackIndex:no.length})},so=(fo,ho)=>{if(ro.length<=0)return null;let po=null;for(let go=ro.length-1;go>=0;--go){if(po=ro[go],po.inactive||po.hook!==fo)continue;const vo=po.delimiter,bo=fo.isDelimiterPair(vo,ho,to);if(bo.paired)return vo;if(!bo.closer)return null}return null},ao=(fo,ho)=>{if(ro.length<=0)return ho;let po,go=ho,vo=[];for(let bo=ro.length-1;bo>=0;--bo){const xo=ro[bo];if(xo.hook!==fo||xo.inactive)continue;const _o=xo.tokenStackIndex;for(_o0){for(const wo of To)wo._tokenizer=fo.name;vo.unshift(...To)}po=void 0,xo.inactive=!0}if(!Eo.closer){const To=fo.processSingleDelimiter(go);if(To.length>0){for(const wo of To)wo._tokenizer=fo.name;vo.push(...To)}go=void 0}break}const So=fo.processDelimiterPair(po,go,vo);{for(const To of So.tokens)To._tokenizer==null&&(To._tokenizer=fo.name);vo=So.tokens}po=So.remainOpenerDelimiter,go=So.remainCloserDelimiter,oo(bo),bo=Math.min(bo,ro.length),po!=null&&io(fo,po)}if(go==null||go.type==="full")break}if(no.push(...vo),go==null)return null;if(go.type==="full"||go.type==="closer"){const bo=fo.processSingleDelimiter(go);for(const xo of bo)xo._tokenizer=fo.name,no.push(xo);return null}return go};return{process:(fo,ho)=>{for(;eo=ho.endIndex)break;po.startIndex>=ho.startIndex||no.push(po)}switch(ho.type){case"opener":{io(fo,ho);break}case"both":{const po=ao(fo,ho);po!=null&&io(fo,po);break}case"closer":{ao(fo,ho);break}case"full":{const po=fo.processSingleDelimiter(ho);for(const go of po)go._tokenizer=fo.name,no.push(go);break}default:throw new TypeError(`Unexpected delimiter type(${ho.type}) from ${fo.name}.`)}},done:()=>{const fo=[];for(const{delimiter:po,hook:go}of ro){const vo=go.processSingleDelimiter(po);for(const bo of vo)bo._tokenizer=go.name,fo.push(bo)}if(ro.length=0,fo.length>0){const po=mergeSortedTokenStack(no,fo);no.length=0,no.push(...po)}return no.concat(to.slice(eo))},reset:fo=>{to.length=fo.length;for(let ho=0;ho{if(eo.length<=0)return to;if(to.length<=0)return eo;const ro=[];let no=0,oo=0;for(;no{const ro=(io,so,ao)=>{let lo=[],uo=null;const co=[io,so];for(const ho of ao){const po=ho.findDelimiter(co);if(po!=null){if(uo!=null){if(po.startIndex>uo)continue;po.startIndex1){let ho=0;for(const po of lo){const go=po.delimiter.type;if(go==="full")return{items:[po],nextIndex:po.delimiter.endIndex};(go==="both"||go==="closer")&&(ho+=1)}if(ho>1){let po=-1,go=-1;for(let bo=0;bo-1?[lo[po]]:lo.filter(bo=>bo.delimiter.type!=="closer"),nextIndex:fo}}}return{items:lo,nextIndex:fo}},no=createSinglePriorityDelimiterProcessor();return{process:(io,so,ao)=>{let lo=io;for(let uo=to;uo{const no=[];for(let oo=0;oo{let ho=so.process(uo,co,fo);return ho=ro(ho,co,fo),ho}}),lo=eo[oo].priority;for(;oo{let ro;const no=eo.match(to);return{isDelimiterPair:()=>({paired:!0}),processDelimiterPair:(oo,io,so)=>({tokens:so}),processSingleDelimiter:()=>[],...no,name:eo.name,priority:eo.priority,findDelimiter:oo=>ro.next(oo).value,reset:()=>{ro=no.findDelimiter(),ro.next()}}};function createProcessor(eo){const{inlineTokenizers:to,inlineTokenizerMap:ro,blockTokenizers:no,blockTokenizerMap:oo,blockFallbackTokenizer:io,inlineFallbackTokenizer:so,shouldReservePosition:ao,presetDefinitions:lo,presetFootnoteDefinitions:uo,formatUrl:co}=eo;let fo=!1;const ho=new Set,po=new Set;let go=[],vo=-1,bo=-1;const xo=Object.freeze({matchBlockApi:{extractPhrasingLines:Ao,rollbackPhrasingLines:Ro,registerDefinitionIdentifier:Lo=>{fo&&ho.add(Lo)},registerFootnoteDefinitionIdentifier:Lo=>{fo&&po.add(Lo)}},parseBlockApi:{shouldReservePosition:ao,formatUrl:co,processInlines:jo,parseBlockTokens:Do},matchInlineApi:{hasDefinition:Lo=>ho.has(Lo),hasFootnoteDefinition:Lo=>po.has(Lo),getNodePoints:()=>go,getBlockStartIndex:()=>vo,getBlockEndIndex:()=>bo,resolveFallbackTokens:No},parseInlineApi:{shouldReservePosition:ao,calcPosition:Lo=>({start:calcStartPoint(go,Lo.startIndex),end:calcEndPoint(go,Lo.endIndex-1)}),formatUrl:co,getNodePoints:()=>go,hasDefinition:Lo=>ho.has(Lo),hasFootnoteDefinition:Lo=>po.has(Lo),parseInlineTokens:$o}}),_o=no.map(Lo=>({...Lo.match(xo.matchBlockApi),name:Lo.name,priority:Lo.priority})),Eo=new Map(Array.from(oo.entries()).map(Lo=>[Lo[0],Lo[1].parse(xo.parseBlockApi)])),So=io?{...io.match(xo.matchBlockApi),name:io.name,priority:io.priority}:null,To=createProcessorHookGroups(to,xo.matchInlineApi,No),wo=new Map(Array.from(ro.entries()).map(Lo=>[Lo[0],Lo[1].parse(xo.parseInlineApi)])),Co=createPhrasingContentProcessor(To,0);return{process:Oo};function Oo(Lo){ho.clear(),po.clear(),fo=!0;const Ho=Mo(Lo);fo=!1;for(const Yo of lo)ho.add(Yo.identifier);for(const Yo of uo)po.add(Yo.identifier);const qo=Do(Ho.children);return ao?{type:"root",position:Ho.position,children:qo}:{type:"root",children:qo}}function Ao(Lo){const Ho=oo.get(Lo._tokenizer);return(Ho==null?void 0:Ho.extractPhrasingContentLines(Lo))??null}function Ro(Lo,Ho){if(Ho!=null){const Uo=oo.get(Ho._tokenizer);if(Uo!==void 0&&Uo.buildBlockToken!=null){const Yo=Uo.buildBlockToken(Lo,Ho);if(Yo!==null)return Yo._tokenizer=Uo.name,[Yo]}}return Mo([Lo]).children}function No(Lo,Ho,qo){if(so==null)return Lo;let Uo=Ho;const Yo=[];for(const Zo of Lo){if(Uoso.priority)break}io<0||io>=to.length?to.push(no):to.splice(io,0,no)}_unregisterTokenizer(to,ro,no){var ao,lo;const oo=typeof no=="string"?no:no.name;if(!ro.delete(oo))return;((ao=this.blockFallbackTokenizer)==null?void 0:ao.name)===oo&&(this.blockFallbackTokenizer=null),((lo=this.inlineFallbackTokenizer)==null?void 0:lo.name)===oo&&(this.inlineFallbackTokenizer=null);const so=to.findIndex(uo=>uo.name===oo);so>=0&&to.splice(so,1)}}function eatEmailAddress(eo,to,ro){let no=to;for(;no=ro||eo[no].codePoint!==AsciiCodePoint.AT_SIGN||!isAlphanumeric(eo[no+1].codePoint))return{valid:!1,nextIndex:no+1};for(no=eatAddressPart0(eo,no+2,ro);no+1=to?oo+1:to}function eatAbsoluteUri(eo,to,ro){const no=eatAutolinkSchema(eo,to,ro);let{nextIndex:oo}=no;if(!no.valid||oo>=ro||eo[oo].codePoint!==AsciiCodePoint.COLON)return{valid:!1,nextIndex:oo};for(oo+=1;oo32?{valid:!1,nextIndex:no+1}:{valid:!0,nextIndex:no}}const helpers=[{contentType:"uri",eat:eatAbsoluteUri},{contentType:"email",eat:eatEmailAddress}],match$l=function(eo){return{findDelimiter:()=>genFindDelimiter(to),processSingleDelimiter:ro};function to(no,oo){const io=eo.getNodePoints();for(let so=no;soto.map(ro=>{const no=eo.getNodePoints();let oo=calcStringFromNodePoints(no,ro.startIndex+1,ro.endIndex-1);ro.contentType==="email"&&(oo="mailto:"+oo);const io=eo.formatUrl(oo),so=eo.parseInlineTokens(ro.children);return eo.shouldReservePosition?{type:LinkType,position:eo.calcPosition(ro),url:io,children:so}:{type:LinkType,url:io,children:so}})}},uniqueName$j="@yozora/tokenizer-autolink";class AutolinkTokenizer extends BaseInlineTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$j,priority:ro.priority??TokenizerPriority.ATOMIC});Ws(this,"match",match$l);Ws(this,"parse",parse$l)}}const match$k=function(){return{isContainingBlock:!0,eatOpener:eo,eatAndInterruptPreviousSibling:to,eatContinuationText:ro};function eo(no){if(no.countOfPrecedeSpaces>=4)return null;const{nodePoints:oo,startIndex:io,endIndex:so,firstNonWhitespaceIndex:ao}=no;if(ao>=so||oo[ao].codePoint!==AsciiCodePoint.CLOSE_ANGLE)return null;let lo=ao+1;return lo=4||uo>=lo||so[uo].codePoint!==AsciiCodePoint.CLOSE_ANGLE?io.nodeType===BlockquoteType?{status:"opening",nextIndex:ao}:{status:"notMatched"}:{status:"opening",nextIndex:uo+1to.map(ro=>{const no=eo.parseBlockTokens(ro.children);return eo.shouldReservePosition?{type:BlockquoteType,position:ro.position,children:no}:{type:BlockquoteType,children:no}})}},uniqueName$i="@yozora/tokenizer-blockquote";class BlockquoteTokenizer extends BaseBlockTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$i,priority:ro.priority??TokenizerPriority.CONTAINING_BLOCK});Ws(this,"match",match$k);Ws(this,"parse",parse$k)}}const uniqueName$h="@yozora/tokenizer-break";var BreakTokenMarkerType;(function(eo){eo.BACKSLASH="backslash",eo.MORE_THAN_TWO_SPACES="more-than-two-spaces"})(BreakTokenMarkerType||(BreakTokenMarkerType={}));const match$j=function(eo){return{findDelimiter:()=>genFindDelimiter(to),processSingleDelimiter:ro};function to(no,oo){const io=eo.getNodePoints();for(let so=no+1;so=no&&io[co].codePoint===AsciiCodePoint.BACKSLASH;co-=1);so-co&1||(lo=so-1,uo=BreakTokenMarkerType.BACKSLASH);break}case AsciiCodePoint.SPACE:{let co=so-2;for(;co>=no&&io[co].codePoint===AsciiCodePoint.SPACE;co-=1);so-co>2&&(lo=co+1,uo=BreakTokenMarkerType.MORE_THAN_TWO_SPACES);break}}if(!(lo==null||uo==null))return{type:"full",markerType:uo,startIndex:lo,endIndex:so}}return null}function ro(no){return[{nodeType:BreakType,startIndex:no.startIndex,endIndex:no.endIndex}]}},parse$j=function(eo){return{parse:to=>to.map(ro=>eo.shouldReservePosition?{type:BreakType,position:eo.calcPosition(ro)}:{type:BreakType})}};class BreakTokenizer extends BaseInlineTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$h,priority:ro.priority??TokenizerPriority.SOFT_INLINE});Ws(this,"match",match$j);Ws(this,"parse",parse$j)}}function eatAndCollectLinkDestination(eo,to,ro,no){let oo=to;no==null&&(no={saturated:!1,nodePoints:[],hasOpenAngleBracket:!1,openParensCount:0});const io=eatOptionalWhitespaces(eo,oo,ro);if(io>=ro)return{nextIndex:-1,state:no};if(no.nodePoints.length<=0){oo=io;const so=eo[oo];so.codePoint===AsciiCodePoint.OPEN_ANGLE&&(oo+=1,no.hasOpenAngleBracket=!0,no.nodePoints.push(so))}if(no.hasOpenAngleBracket){for(;oo=ro)return{nextIndex:-1,state:no};if(no.nodePoints.length<=0){oo=io;const so=eo[oo];if(so.codePoint!==AsciiCodePoint.OPEN_BRACKET)return{nextIndex:-1,state:no};oo+=1,no.nodePoints.push(so)}for(;oo=ro)return{nextIndex:-1,state:no};if(no.nodePoints.length<=0){oo=io;const so=eo[oo];switch(so.codePoint){case AsciiCodePoint.DOUBLE_QUOTE:case AsciiCodePoint.SINGLE_QUOTE:case AsciiCodePoint.OPEN_PARENTHESIS:no.wrapSymbol=so.codePoint,no.nodePoints.push(so),oo+=1;break;default:return{nextIndex:-1,state:no}}}if(no.wrapSymbol==null)return{nextIndex:-1,state:no};switch(no.wrapSymbol){case AsciiCodePoint.DOUBLE_QUOTE:case AsciiCodePoint.SINGLE_QUOTE:{for(;oo=ro||eo[oo+1].codePoint===VirtualCodePoint.LINE_END){no.nodePoints.push(so),no.saturated=!0;break}return{nextIndex:-1,state:no};default:no.nodePoints.push(so)}}break}}return{nextIndex:ro,state:no}}const match$i=function(eo){return{isContainingBlock:!1,eatOpener:to,eatContinuationText:ro,onClose:no};function to(oo){if(oo.countOfPrecedeSpaces>=4)return null;const{nodePoints:io,startIndex:so,endIndex:ao,firstNonWhitespaceIndex:lo}=oo;if(lo>=ao)return null;let uo=lo;const{nextIndex:co,state:fo}=eatAndCollectLinkLabel(io,uo,ao,null);if(co<0)return null;const ho=io[so].line,po=()=>({nodeType:DefinitionType,position:{start:calcStartPoint(io,so),end:calcEndPoint(io,ao-1)},label:fo,destination:null,title:null,lineNoOfLabel:ho,lineNoOfDestination:-1,lineNoOfTitle:-1,lines:[oo]});if(!fo.saturated)return{token:po(),nextIndex:ao};if(co<0||co+1>=ao||io[co].codePoint!==AsciiCodePoint.COLON)return null;if(uo=eatOptionalWhitespaces(io,co+1,ao),uo>=ao)return{token:po(),nextIndex:ao};const{nextIndex:go,state:vo}=eatAndCollectLinkDestination(io,uo,ao,null);if(go<0||!vo.saturated&&go!==ao)return null;if(uo=eatOptionalWhitespaces(io,go,ao),uo>=ao){const Eo=po();return Eo.destination=vo,Eo.lineNoOfDestination=ho,{token:Eo,nextIndex:ao}}if(uo===go)return null;const{nextIndex:bo,state:xo}=eatAndCollectLinkTitle(io,uo,ao,null);if(bo>=0&&(uo=bo),uo=uo||so[bo].codePoint!==AsciiCodePoint.COLON)return{status:"failedAndRollback",lines:io.lines};fo=bo+1}if(io.destination==null){if(fo=eatOptionalWhitespaces(so,fo,uo),fo>=uo)return{status:"failedAndRollback",lines:io.lines};const{nextIndex:bo,state:xo}=eatAndCollectLinkDestination(so,fo,uo,null);if(bo<0||!xo.saturated)return{status:"failedAndRollback",lines:io.lines};if(fo=eatOptionalWhitespaces(so,bo,uo),fo>=uo)return io.destination=xo,io.lines.push(oo),{status:"opening",nextIndex:uo};io.lineNoOfDestination=co,io.lineNoOfTitle=co}io.lineNoOfTitle<0&&(io.lineNoOfTitle=co);const{nextIndex:ho,state:po}=eatAndCollectLinkTitle(so,fo,uo,io.title);if(io.title=po,ho<0||po.nodePoints.length<=0||po.saturated&&eatOptionalWhitespaces(so,ho,uo)to.map(ro=>{const no=ro._label,oo=ro._identifier,io=ro.destination.nodePoints,so=io[0].codePoint===AsciiCodePoint.OPEN_ANGLE?calcEscapedStringFromNodePoints(io,1,io.length-1,!0):calcEscapedStringFromNodePoints(io,0,io.length,!0),ao=eo.formatUrl(so),lo=ro.title==null?void 0:calcEscapedStringFromNodePoints(ro.title.nodePoints,1,ro.title.nodePoints.length-1);return eo.shouldReservePosition?{type:DefinitionType,position:ro.position,identifier:oo,label:no,url:ao,title:lo}:{type:DefinitionType,identifier:oo,label:no,url:ao,title:lo}})}},uniqueName$g="@yozora/tokenizer-definition";class DefinitionTokenizer extends BaseBlockTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$g,priority:ro.priority??TokenizerPriority.ATOMIC});Ws(this,"match",match$i);Ws(this,"parse",parse$i)}}const match$h=function(eo){return{findDelimiter:()=>genFindDelimiter(to),isDelimiterPair:ro,processDelimiterPair:no};function to(oo,io){const so=eo.getNodePoints(),ao=eo.getBlockStartIndex(),lo=eo.getBlockEndIndex(),uo=(fo,ho)=>{if(ho===lo)return!1;if(ho===io)return!0;const po=so[ho];if(isUnicodeWhitespaceCharacter(po.codePoint))return!1;if(!isPunctuationCharacter(po.codePoint)||fo<=oo)return!0;const go=so[fo-1];return isUnicodeWhitespaceCharacter(go.codePoint)||isPunctuationCharacter(go.codePoint)},co=(fo,ho)=>{if(fo===ao)return!1;if(fo===oo)return!0;const po=so[fo-1];if(isUnicodeWhitespaceCharacter(po.codePoint))return!1;if(!isPunctuationCharacter(po.codePoint)||ho>=io)return!0;const go=so[ho];return isUnicodeWhitespaceCharacter(go.codePoint)||isPunctuationCharacter(go.codePoint)};for(let fo=oo;fooo&&!isPunctuationCharacter(so[po-1].codePoint)&&(xo=!1);const So=so[go];isPunctuationCharacter(So.codePoint)||(_o=!1)}if(!xo&&!_o)break;const Eo=go-po;return{type:xo?_o?"both":"opener":"closer",startIndex:po,endIndex:go,thickness:Eo,originalThickness:Eo}}}}return null}function ro(oo,io){const so=eo.getNodePoints();return so[oo.startIndex].codePoint!==so[io.startIndex].codePoint||(oo.type==="both"||io.type==="both")&&(oo.originalThickness+io.originalThickness)%3===0&&oo.originalThickness%3!==0?{paired:!1,opener:!0,closer:!0}:{paired:!0}}function no(oo,io,so){let ao=1;oo.thickness>1&&io.thickness>1&&(ao=2),so=eo.resolveInternalTokens(so,oo.endIndex,io.startIndex);const lo={nodeType:ao===1?EmphasisType:StrongType,startIndex:oo.endIndex-ao,endIndex:io.startIndex+ao,thickness:ao,children:so},uo=oo.thickness>ao?{type:oo.type,startIndex:oo.startIndex,endIndex:oo.endIndex-ao,thickness:oo.thickness-ao,originalThickness:oo.originalThickness}:void 0,co=io.thickness>ao?{type:io.type,startIndex:io.startIndex+ao,endIndex:io.endIndex,thickness:io.thickness-ao,originalThickness:io.originalThickness}:void 0;return{tokens:[lo],remainOpenerDelimiter:uo,remainCloserDelimiter:co}}},parse$h=function(eo){return{parse:to=>to.map(ro=>{const no=eo.parseInlineTokens(ro.children);return eo.shouldReservePosition?{type:ro.nodeType,position:eo.calcPosition(ro),children:no}:{type:ro.nodeType,children:no}})}},uniqueName$f="@yozora/tokenizer-emphasis";class EmphasisTokenizer extends BaseInlineTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$f,priority:ro.priority??TokenizerPriority.CONTAINING_INLINE});Ws(this,"match",match$h);Ws(this,"parse",parse$h)}}function match$g(eo){const{nodeType:to,markers:ro,markersRequired:no,checkInfoString:oo}=this;return{isContainingBlock:!1,eatOpener:io,eatAndInterruptPreviousSibling:so,eatContinuationText:ao};function io(lo){if(lo.countOfPrecedeSpaces>=4)return null;const{endIndex:uo,firstNonWhitespaceIndex:co}=lo;if(co+no-1>=uo)return null;const{nodePoints:fo,startIndex:ho}=lo,po=fo[co].codePoint;if(ro.indexOf(po)<0)return null;const go=eatOptionalCharacters(fo,co+1,uo,po),vo=go-co;if(vo=uo.markerCount){for(;bo=ho)return{status:"closing",nextIndex:ho}}}const vo=Math.min(fo+uo.indent,po,ho-1);return uo.lines.push({nodePoints:co,startIndex:vo,endIndex:ho,firstNonWhitespaceIndex:po,countOfPrecedeSpaces:go}),{status:"opening",nextIndex:ho}}}class FencedBlockTokenizer extends BaseBlockTokenizer{constructor(ro){super({name:ro.name,priority:ro.priority??TokenizerPriority.FENCED_BLOCK});Ws(this,"nodeType");Ws(this,"markers",[]);Ws(this,"markersRequired");Ws(this,"checkInfoString");Ws(this,"match",match$g);this.nodeType=ro.nodeType,this.markers=ro.markers,this.markersRequired=ro.markersRequired,this.checkInfoString=ro.checkInfoString}}const match$f=function(eo){return{...match$g.call(this,eo),isContainingBlock:!1}},parse$g=function(eo){return{parse:to=>to.map(ro=>{const no=ro.infoString;let oo=0;const io=[];for(;oo0?so:null,meta:ao.length>0?ao:null,value:uo}:{type:CodeType,lang:so.length>0?so:null,meta:ao.length>0?ao:null,value:uo}})}},uniqueName$e="@yozora/tokenizer-fenced-code";class FencedCodeTokenizer extends FencedBlockTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$e,priority:ro.priority??TokenizerPriority.FENCED_BLOCK,nodeType:CodeType,markers:[AsciiCodePoint.BACKTICK,AsciiCodePoint.TILDE],markersRequired:3,checkInfoString:(no,oo)=>{if(oo===AsciiCodePoint.BACKTICK){for(const io of no)if(io.codePoint===AsciiCodePoint.BACKTICK)return!1}return!0}});Ws(this,"match",match$f);Ws(this,"parse",parse$g)}}const match$e=function(){return{isContainingBlock:!1,eatOpener:eo,eatAndInterruptPreviousSibling:to};function eo(ro){if(ro.countOfPrecedeSpaces>=4)return null;const{nodePoints:no,startIndex:oo,endIndex:io,firstNonWhitespaceIndex:so}=ro;if(so>=io||no[so].codePoint!==AsciiCodePoint.NUMBER_SIGN)return null;const ao=eatOptionalCharacters(no,so+1,io,AsciiCodePoint.NUMBER_SIGN),lo=ao-so;if(lo>6||ao+1to.map(ro=>{const{nodePoints:no,firstNonWhitespaceIndex:oo,endIndex:io}=ro.line;let[so,ao]=calcTrimBoundaryOfCodePoints(no,oo+ro.depth,io),lo=0;for(let po=ao-1;po>=so&&no[po].codePoint===AsciiCodePoint.NUMBER_SIGN;--po)lo+=1;if(lo>0){let po=0,go=ao-1-lo;for(;go>=so;--go){const vo=no[go].codePoint;if(!isWhitespaceCharacter(vo))break;po+=1}(po>0||go=ro)return null;const oo=no;let io=eo[no].codePoint;if(!isAsciiLetter(io)&&io!==AsciiCodePoint.UNDERSCORE&&io!==AsciiCodePoint.COLON)return null;for(no=oo+1;nouo&&(ao.value={startIndex:uo,endIndex:co});break}}if(ao.value!=null)return{attribute:ao,nextIndex:no}}return{attribute:ao,nextIndex:so}}function eatHTMLTagName(eo,to,ro){if(to>=ro||!isAsciiLetter(eo[to].codePoint))return null;let no=to;for(;no=ro)return ro;const oo=eo[to].codePoint;return isWhitespaceCharacter(oo)||oo===AsciiCodePoint.CLOSE_ANGLE?to+1:null}function eatEndCondition1(eo,to,ro){for(let no=to;no=ro||eo[io].codePoint!==AsciiCodePoint.CLOSE_ANGLE){no+=1;continue}const ao=calcStringFromNodePoints(eo,oo,io,!0).toLowerCase();if(includedTags$1.includes(ao))return io}return null}function eatStartCondition2(eo,to,ro){const no=to;return no+2=ro)return ro;const oo=eo[to].codePoint;return isWhitespaceCharacter(oo)||oo===AsciiCodePoint.CLOSE_ANGLE?to+1:oo===AsciiCodePoint.SLASH&&to+1=ro)return null;let io=to;if(oo){for(;io=ro)return null;eo[io].codePoint===AsciiCodePoint.SLASH&&(io+=1)}else io=eatOptionalWhitespaces(eo,to,ro);if(io>=ro||eo[io].codePoint!==AsciiCodePoint.CLOSE_ANGLE)return null;for(io+=1;io=4)return null;const{nodePoints:so,startIndex:ao,endIndex:lo,firstNonWhitespaceIndex:uo}=io;if(uo>=lo||so[uo].codePoint!==AsciiCodePoint.OPEN_ANGLE)return null;const co=uo+1,fo=no(so,co,lo);if(fo==null)return null;const{condition:ho}=fo;let po=!1;ho!==6&&ho!==7&&oo(so,fo.nextIndex,lo,ho)!=null&&(po=!0);const go=lo;return{token:{nodeType:HtmlType,position:{start:calcStartPoint(so,ao),end:calcEndPoint(so,go-1)},condition:ho,lines:[io]},nextIndex:go,saturated:po}}function to(io,so){const ao=eo(io);if(ao==null||ao.token.condition===7)return null;const{token:lo,nextIndex:uo}=ao;return{token:lo,nextIndex:uo,remainingSibling:so}}function ro(io,so){const{nodePoints:ao,endIndex:lo,firstNonWhitespaceIndex:uo}=io,co=oo(ao,uo,lo,so.condition);return co===-1?{status:"notMatched"}:(so.lines.push(io),co!=null?{status:"closing",nextIndex:lo}:{status:"opening",nextIndex:lo})}function no(io,so,ao){let lo=null;if(so>=ao)return null;if(lo=eatStartCondition2(io,so,ao),lo!=null)return{nextIndex:lo,condition:2};if(lo=eatStartCondition3(io,so,ao),lo!=null)return{nextIndex:lo,condition:3};if(lo=eatStartCondition4(io,so,ao),lo!=null)return{nextIndex:lo,condition:4};if(lo=eatStartCondition5(io,so,ao),lo!=null)return{nextIndex:lo,condition:5};if(io[so].codePoint!==AsciiCodePoint.SLASH){const go=so,vo=eatHTMLTagName(io,go,ao);if(vo==null)return null;const bo={startIndex:go,endIndex:vo},_o=calcStringFromNodePoints(io,bo.startIndex,bo.endIndex).toLowerCase();return lo=eatStartCondition1(io,bo.endIndex,ao,_o),lo!=null?{nextIndex:lo,condition:1}:(lo=eatStartCondition6(io,bo.endIndex,ao,_o),lo!=null?{nextIndex:lo,condition:6}:(lo=eatStartCondition7(io,bo.endIndex,ao,_o,!0),lo!=null?{nextIndex:lo,condition:7}:null))}const uo=so+1,co=eatHTMLTagName(io,uo,ao);if(co==null)return null;const fo={startIndex:uo,endIndex:co},po=calcStringFromNodePoints(io,fo.startIndex,fo.endIndex).toLowerCase();return lo=eatStartCondition6(io,fo.endIndex,ao,po),lo!=null?{nextIndex:lo,condition:6}:(lo=eatStartCondition7(io,fo.endIndex,ao,po,!1),lo!=null?{nextIndex:lo,condition:7}:null)}function oo(io,so,ao,lo){switch(lo){case 1:return eatEndCondition1(io,so,ao)==null?null:ao;case 2:return eatEndCondition2(io,so,ao)==null?null:ao;case 3:return eatEndCondition3(io,so,ao)==null?null:ao;case 4:return eatEndCondition4(io,so,ao)==null?null:ao;case 5:return eatEndCondition5(io,so,ao)==null?null:ao;case 6:case 7:return eatOptionalWhitespaces(io,so,ao)>=ao?-1:null}}},parse$e=function(eo){return{parse:to=>to.map(ro=>{const no=mergeContentLinesFaithfully(ro.lines);return eo.shouldReservePosition?{type:"html",position:ro.position,value:calcStringFromNodePoints(no)}:{type:"html",value:calcStringFromNodePoints(no)}})}},uniqueName$c="@yozora/tokenizer-html-block";class HtmlBlockTokenizer extends BaseBlockTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$c,priority:ro.priority??TokenizerPriority.ATOMIC});Ws(this,"match",match$d);Ws(this,"parse",parse$e)}}function eatHtmlInlineCDataDelimiter(eo,to,ro){let no=to;if(no+11>=ro||eo[no+1].codePoint!==AsciiCodePoint.EXCLAMATION_MARK||eo[no+2].codePoint!==AsciiCodePoint.OPEN_BRACKET||eo[no+3].codePoint!==AsciiCodePoint.UPPERCASE_C||eo[no+4].codePoint!==AsciiCodePoint.UPPERCASE_D||eo[no+5].codePoint!==AsciiCodePoint.UPPERCASE_A||eo[no+6].codePoint!==AsciiCodePoint.UPPERCASE_T||eo[no+7].codePoint!==AsciiCodePoint.UPPERCASE_A||eo[no+8].codePoint!==AsciiCodePoint.OPEN_BRACKET)return null;const oo=no+9;for(no=oo;no=ro)return null;if(eo[no+1].codePoint===AsciiCodePoint.CLOSE_BRACKET&&eo[no+2].codePoint===AsciiCodePoint.CLOSE_ANGLE)return{type:"full",startIndex:to,endIndex:no+3,htmlType:"cdata"}}return null}function eatHtmlInlineClosingDelimiter(eo,to,ro){let no=to;if(no+3>=ro||eo[no+1].codePoint!==AsciiCodePoint.SLASH)return null;const oo=no+2,io=eatHTMLTagName(eo,oo,ro);return io==null||(no=eatOptionalWhitespaces(eo,io,ro),no>=ro||eo[no].codePoint!==AsciiCodePoint.CLOSE_ANGLE)?null:{type:"full",startIndex:to,endIndex:no+1,htmlType:"closing",tagName:{startIndex:oo,endIndex:io}}}function eatHtmlInlineCommentDelimiter(eo,to,ro){let no=to;if(no+6>=ro||eo[no+1].codePoint!==AsciiCodePoint.EXCLAMATION_MARK||eo[no+2].codePoint!==AsciiCodePoint.MINUS_SIGN||eo[no+3].codePoint!==AsciiCodePoint.MINUS_SIGN||eo[no+4].codePoint===AsciiCodePoint.CLOSE_ANGLE||eo[no+4].codePoint===AsciiCodePoint.MINUS_SIGN&&eo[no+5].codePoint===AsciiCodePoint.CLOSE_ANGLE)return null;const oo=no+4;for(no=oo;no2||no+2>=ro||eo[no+2].codePoint!==AsciiCodePoint.CLOSE_ANGLE?null:{type:"full",startIndex:to,endIndex:no+3,htmlType:"comment"}}return null}function eatHtmlInlineDeclarationDelimiter(eo,to,ro){let no=to;if(no+4>=ro||eo[no+1].codePoint!==AsciiCodePoint.EXCLAMATION_MARK)return null;const oo=no+2;for(no=oo;no=ro||!isWhitespaceCharacter(eo[no].codePoint))return null;const io=no,so=no+1;for(no=so;no=ro||eo[no+1].codePoint!==AsciiCodePoint.QUESTION_MARK)return null;const oo=no+2;for(no=oo;no=ro)return null;if(eo[no+1].codePoint===AsciiCodePoint.CLOSE_ANGLE)return{type:"full",startIndex:to,endIndex:no+2,htmlType:"instruction"}}return null}function eatHtmlInlineTokenOpenDelimiter(eo,to,ro){let no=to;if(no+2>=ro)return null;const oo=no+1,io=eatHTMLTagName(eo,oo,ro);if(io==null)return null;const so=[];for(no=io;no=ro)return null;let ao=!1;return eo[no].codePoint===AsciiCodePoint.SLASH&&(no+=1,ao=!0),no>=ro||eo[no].codePoint!==AsciiCodePoint.CLOSE_ANGLE?null:{type:"full",startIndex:to,endIndex:no+1,htmlType:"open",tagName:{startIndex:oo,endIndex:io},attributes:so,selfClosed:ao}}const match$c=function(eo){return{findDelimiter:()=>genFindDelimiter(to),processSingleDelimiter:ro};function to(no,oo){const io=eo.getNodePoints();for(let so=no;so=oo));++so)switch(io[so].codePoint){case AsciiCodePoint.BACKSLASH:so+=1;break;case AsciiCodePoint.OPEN_ANGLE:{const lo=tryToEatDelimiter(io,so,oo);if(lo!=null)return lo;break}}return null}function ro(no){return[{...no,nodeType:HtmlType}]}};function tryToEatDelimiter(eo,to,ro){let no=null;return no=eatHtmlInlineTokenOpenDelimiter(eo,to,ro),no!=null||(no=eatHtmlInlineClosingDelimiter(eo,to,ro),no!=null)||(no=eatHtmlInlineCommentDelimiter(eo,to,ro),no!=null)||(no=eatHtmlInlineInstructionDelimiter(eo,to,ro),no!=null)||(no=eatHtmlInlineDeclarationDelimiter(eo,to,ro),no!=null)||(no=eatHtmlInlineCDataDelimiter(eo,to,ro)),no}const parse$d=function(eo){return{parse:to=>to.map(ro=>{const{startIndex:no,endIndex:oo}=ro,io=eo.getNodePoints(),so=calcStringFromNodePoints(io,no,oo);return eo.shouldReservePosition?{type:HtmlType,position:eo.calcPosition(ro),value:so}:{type:HtmlType,value:so}})}},uniqueName$b="@yozora/tokenizer-html-inline";class HtmlInlineTokenizer extends BaseInlineTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$b,priority:ro.priority??TokenizerPriority.ATOMIC});Ws(this,"match",match$c);Ws(this,"parse",parse$d)}}const checkBalancedBracketsStatus=(eo,to,ro,no)=>{let oo=eo,io=0;const so=()=>{switch(no[oo].codePoint){case AsciiCodePoint.BACKSLASH:oo+=1;break;case AsciiCodePoint.OPEN_BRACKET:io+=1;break;case AsciiCodePoint.CLOSE_BRACKET:io-=1;break}};for(const ao of ro)if(!(ao.startIndexto)break;for(;oo0?1:0};function eatLinkDestination(eo,to,ro){if(to>=ro)return-1;let no=to;switch(eo[no].codePoint){case AsciiCodePoint.OPEN_ANGLE:{for(no+=1;no=ro)return-1;let no=to;const oo=eo[no].codePoint;switch(oo){case AsciiCodePoint.DOUBLE_QUOTE:case AsciiCodePoint.SINGLE_QUOTE:{for(no+=1;noio.line+1)return-1;break}}}break}case AsciiCodePoint.OPEN_PARENTHESIS:{let io=1;for(no+=1;noso.line+1)return-1;break}case AsciiCodePoint.OPEN_PARENTHESIS:io+=1;break;case AsciiCodePoint.CLOSE_PARENTHESIS:if(io-=1,io===0)return no+1;break}}break}case AsciiCodePoint.CLOSE_PARENTHESIS:return no;default:return-1}return-1}const match$b=function(eo){return{findDelimiter:()=>genFindDelimiter(to),isDelimiterPair:ro,processDelimiterPair:no};function to(oo,io){const so=eo.getNodePoints(),ao=eo.getBlockEndIndex();for(let lo=oo;lo=io||so[lo+1].codePoint!==AsciiCodePoint.OPEN_PARENTHESIS)break;const co=eatOptionalWhitespaces(so,lo+2,ao),fo=eatLinkDestination(so,co,ao);if(fo<0)break;const ho=eatOptionalWhitespaces(so,fo,ao),po=eatLinkTitle(so,ho,ao);if(po<0)break;const go=lo,vo=eatOptionalWhitespaces(so,po,ao)+1;if(vo>ao||so[vo-1].codePoint!==AsciiCodePoint.CLOSE_PARENTHESIS)break;return{type:"closer",startIndex:go,endIndex:vo,destinationContent:coto.map(ro=>{const no=eo.getNodePoints();let oo="";if(ro.destinationContent!=null){let{startIndex:lo,endIndex:uo}=ro.destinationContent;no[lo].codePoint===AsciiCodePoint.OPEN_ANGLE&&(lo+=1,uo-=1);const co=calcEscapedStringFromNodePoints(no,lo,uo,!0);oo=eo.formatUrl(co)}let io;if(ro.titleContent!=null){const{startIndex:lo,endIndex:uo}=ro.titleContent;io=calcEscapedStringFromNodePoints(no,lo+1,uo-1)}const so=eo.parseInlineTokens(ro.children);return eo.shouldReservePosition?{type:LinkType,position:eo.calcPosition(ro),url:oo,title:io,children:so}:{type:LinkType,url:oo,title:io,children:so}})}},uniqueName$a="@yozora/tokenizer-link";class LinkTokenizer extends BaseInlineTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$a,priority:ro.priority??TokenizerPriority.LINKS});Ws(this,"match",match$b);Ws(this,"parse",parse$c)}}function calcImageAlt(eo){return eo.map(to=>to.value!=null?to.value:to.alt!=null?to.alt:to.children!=null?calcImageAlt(to.children):"").join("")}const match$a=function(eo){return{findDelimiter:()=>genFindDelimiter(to),isDelimiterPair:ro,processDelimiterPair:no};function to(oo,io){const so=eo.getNodePoints(),ao=eo.getBlockEndIndex();for(let lo=oo;lo=io||so[lo+1].codePoint!==AsciiCodePoint.OPEN_PARENTHESIS)break;const co=eatOptionalWhitespaces(so,lo+2,ao),fo=eatLinkDestination(so,co,ao);if(fo<0)break;const ho=eatOptionalWhitespaces(so,fo,ao),po=eatLinkTitle(so,ho,ao);if(po<0)break;const go=lo,vo=eatOptionalWhitespaces(so,po,ao)+1;if(vo>ao||so[vo-1].codePoint!==AsciiCodePoint.CLOSE_PARENTHESIS)break;return{type:"closer",startIndex:go,endIndex:vo,destinationContent:coto.map(ro=>{const no=eo.getNodePoints();let oo="";if(ro.destinationContent!=null){let{startIndex:uo,endIndex:co}=ro.destinationContent;no[uo].codePoint===AsciiCodePoint.OPEN_ANGLE&&(uo+=1,co-=1);const fo=calcEscapedStringFromNodePoints(no,uo,co,!0);oo=eo.formatUrl(fo)}const io=eo.parseInlineTokens(ro.children),so=calcImageAlt(io);let ao;if(ro.titleContent!=null){const{startIndex:uo,endIndex:co}=ro.titleContent;ao=calcEscapedStringFromNodePoints(no,uo+1,co-1)}return eo.shouldReservePosition?{type:ImageType$1,position:eo.calcPosition(ro),url:oo,alt:so,title:ao}:{type:ImageType$1,url:oo,alt:so,title:ao}})}},uniqueName$9="@yozora/tokenizer-image";class ImageTokenizer extends BaseInlineTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$9,priority:ro.priority??TokenizerPriority.LINKS});Ws(this,"match",match$a);Ws(this,"parse",parse$b)}}const match$9=function(eo){return{findDelimiter:()=>genFindDelimiter(to),isDelimiterPair:ro,processDelimiterPair:no};function to(oo,io){const so=eo.getNodePoints();for(let ao=oo;ao=io||so[ao+1].codePoint!==AsciiCodePoint.OPEN_BRACKET)break;return{type:"opener",startIndex:ao,endIndex:ao+2,brackets:[]}}case AsciiCodePoint.CLOSE_BRACKET:{const uo={type:"closer",startIndex:ao,endIndex:ao+1,brackets:[]};if(ao+1>=io||so[ao+1].codePoint!==AsciiCodePoint.OPEN_BRACKET)return uo;const co=eatLinkLabel(so,ao+1,io);return co.nextIndex<0?uo:co.labelAndIdentifier==null?{type:"closer",startIndex:ao,endIndex:co.nextIndex,brackets:[{startIndex:ao+1,endIndex:co.nextIndex}]}:{type:"closer",startIndex:ao,endIndex:co.nextIndex,brackets:[{startIndex:ao+1,endIndex:co.nextIndex,label:co.labelAndIdentifier.label,identifier:co.labelAndIdentifier.identifier}]}}}return null}function ro(oo,io,so){const ao=eo.getNodePoints();switch(checkBalancedBracketsStatus(oo.endIndex,io.startIndex,so,ao)){case-1:return{paired:!1,opener:!1,closer:!0};case 0:return{paired:!0};case 1:return{paired:!1,opener:!0,closer:!1}}}function no(oo,io,so){const ao=eo.getNodePoints(),lo=io.brackets[0];if(lo!=null&&lo.identifier!=null)return eo.hasDefinition(lo.identifier)?{tokens:[{nodeType:ImageReferenceType,startIndex:oo.startIndex,endIndex:lo.endIndex,referenceType:"full",label:lo.label,identifier:lo.identifier,children:eo.resolveInternalTokens(so,oo.endIndex,io.startIndex)}]}:{tokens:so};const{nextIndex:uo,labelAndIdentifier:co}=eatLinkLabel(ao,oo.endIndex-1,io.startIndex+1);return uo===io.startIndex+1&&co!=null&&eo.hasDefinition(co.identifier)?{tokens:[{nodeType:ImageReferenceType,startIndex:oo.startIndex,endIndex:io.endIndex,referenceType:lo==null?"shortcut":"collapsed",label:co.label,identifier:co.identifier,children:eo.resolveInternalTokens(so,oo.endIndex,io.startIndex)}]}:{tokens:so}}},parse$a=function(eo){return{parse:to=>to.map(ro=>{const{identifier:no,label:oo,referenceType:io}=ro,so=eo.parseInlineTokens(ro.children),ao=calcImageAlt(so);return eo.shouldReservePosition?{type:ImageReferenceType,position:eo.calcPosition(ro),identifier:no,label:oo,referenceType:io,alt:ao}:{type:ImageReferenceType,identifier:no,label:oo,referenceType:io,alt:ao}})}},uniqueName$8="@yozora/tokenizer-image-reference";class ImageReferenceTokenizer extends BaseInlineTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$8,priority:ro.priority??TokenizerPriority.LINKS});Ws(this,"match",match$9);Ws(this,"parse",parse$a)}}const match$8=function(){return{isContainingBlock:!1,eatOpener:eo,eatContinuationText:to};function eo(ro){if(ro.countOfPrecedeSpaces<4)return null;const{nodePoints:no,startIndex:oo,firstNonWhitespaceIndex:io,endIndex:so}=ro;let ao=oo+4;if(no[oo].codePoint===AsciiCodePoint.SPACE&&no[oo+3].codePoint===VirtualCodePoint.SPACE){let co=oo+1;for(;coto.map(ro=>{const{lines:no}=ro;let oo=0,io=no.length;for(;ooco+1&&so.push({type:"opener",startIndex:co+1,endIndex:ho}),co=ho-1}break}case AsciiCodePoint.BACKTICK:{const ho=co,po=eatOptionalCharacters(no,co+1,io,fo);so.push({type:"both",startIndex:ho,endIndex:po}),co=po-1;break}}}let ao=0,lo=-1,uo=null;for(;ao=co))continue;lo=fo;let ho=null,po=null;for(;ao=co&&vo.type!=="closer")break}if(ao+1>=so.length)return;ho=so[ao];const go=ho.endIndex-ho.startIndex;for(let vo=ao+1;voto.map(ro=>{const no=eo.getNodePoints();let oo=ro.startIndex+ro.thickness,io=ro.endIndex-ro.thickness,so=!0;for(let uo=oo;uogenFindDelimiter(to),isDelimiterPair:ro,processDelimiterPair:no,processSingleDelimiter:oo};function to(io,so){const ao=eo.getNodePoints();for(let lo=io;lo=so||ao[lo+1].codePoint!==AsciiCodePoint.OPEN_BRACKET)break;const co=eatLinkLabel(ao,lo+1,so);if(co.nextIndex===-1)return{type:"opener",startIndex:lo+1,endIndex:lo+2,brackets:[]};if(co.labelAndIdentifier==null){lo=co.nextIndex-1;break}const fo=[{startIndex:lo+1,endIndex:co.nextIndex,label:co.labelAndIdentifier.label,identifier:co.labelAndIdentifier.identifier}],ho={type:"closer",startIndex:lo,endIndex:co.nextIndex,brackets:fo};for(lo=co.nextIndex;lo=ao.length)break;if(uo+1to.map(ro=>{const{identifier:no,label:oo,referenceType:io}=ro,so=eo.parseInlineTokens(ro.children);return eo.shouldReservePosition?{type:LinkReferenceType,position:eo.calcPosition(ro),identifier:no,label:oo,referenceType:io,children:so}:{type:LinkReferenceType,identifier:no,label:oo,referenceType:io,children:so}})}},uniqueName$5="@yozora/tokenizer-link-reference";class LinkReferenceTokenizer extends BaseInlineTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$5,priority:ro.priority??TokenizerPriority.LINKS});Ws(this,"match",match$6);Ws(this,"parse",parse$7)}}const match$5=function(){const{emptyItemCouldNotInterruptedTypes:eo,enableTaskListItem:to}=this;return{isContainingBlock:!0,eatOpener:ro,eatAndInterruptPreviousSibling:no,eatContinuationText:oo};function ro(io){if(io.countOfPrecedeSpaces>=4)return null;const{nodePoints:so,startIndex:ao,endIndex:lo,firstNonWhitespaceIndex:uo}=io;if(uo>=lo)return null;let co=!1,fo=null,ho,po,go=uo,vo=so[go].codePoint;if(go+1uo&&go-uo<=9&&(vo===AsciiCodePoint.DOT||vo===AsciiCodePoint.CLOSE_PARENTHESIS)&&(go+=1,co=!0,fo=vo)}if(co||(vo===AsciiCodePoint.PLUS_SIGN||vo===AsciiCodePoint.MINUS_SIGN||vo===AsciiCodePoint.ASTERISK)&&(go+=1,fo=vo),fo==null)return null;let bo=0,xo=go;for(xo4&&(xo-=bo-1,bo=1),bo===0&&xo=lo){if(so.countOfTopBlankLine>=0&&(so.countOfTopBlankLine+=1,so.countOfTopBlankLine>1))return{status:"notMatched"}}else so.countOfTopBlankLine=-1;return{status:"opening",nextIndex:Math.min(ao+so.indent,lo-1)}}};function eatTaskStatus(eo,to,ro){let no=to;for(;no=ro||eo[no].codePoint!==AsciiCodePoint.OPEN_BRACKET||eo[no+2].codePoint!==AsciiCodePoint.CLOSE_BRACKET||!isWhitespaceCharacter(eo[no+3].codePoint))return{status:null,nextIndex:to};let oo;switch(eo[no+1].codePoint){case AsciiCodePoint.SPACE:oo=TaskStatus.TODO;break;case AsciiCodePoint.MINUS_SIGN:oo=TaskStatus.DOING;break;case AsciiCodePoint.LOWERCASE_X:case AsciiCodePoint.UPPERCASE_X:oo=TaskStatus.DONE;break;default:return{status:null,nextIndex:to}}return{status:oo,nextIndex:no+4}}const parse$6=function(eo){return{parse:to=>{const ro=[];let no=[];for(let io=0;io{if(eo.length<=0)return null;let ro=eo.some(io=>{if(io.children==null||io.children.length<=1)return!1;let so=io.children[0].position;for(let ao=1;ao1){let io=eo[0];for(let so=1;so{const so=to.parseBlockTokens(io.children),ao=ro?so:so.map(uo=>uo.type===ParagraphType$1?uo.children:uo).flat();return to.shouldReservePosition?{type:ListItemType,position:io.position,status:io.status,children:ao}:{type:ListItemType,status:io.status,children:ao}});return to.shouldReservePosition?{type:ListType,position:{start:{...eo[0].position.start},end:{...eo[eo.length-1].position.end}},ordered:eo[0].ordered,orderType:eo[0].orderType,start:eo[0].order,marker:eo[0].marker,spread:ro,children:no}:{type:ListType,ordered:eo[0].ordered,orderType:eo[0].orderType,start:eo[0].order,marker:eo[0].marker,spread:ro,children:no}},uniqueName$4="@yozora/tokenizer-list";class ListTokenizer extends BaseBlockTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$4,priority:ro.priority??TokenizerPriority.CONTAINING_BLOCK});Ws(this,"enableTaskListItem");Ws(this,"emptyItemCouldNotInterruptedTypes");Ws(this,"match",match$5);Ws(this,"parse",parse$6);this.enableTaskListItem=ro.enableTaskListItem??!1,this.emptyItemCouldNotInterruptedTypes=ro.emptyItemCouldNotInterruptedTypes??[ParagraphType$1]}}const match$4=function(){return{isContainingBlock:!1,eatOpener:eo,eatContinuationText:to,eatLazyContinuationText:ro};function eo(no){const{endIndex:oo,firstNonWhitespaceIndex:io}=no;if(io>=oo)return null;const so=[no],ao=calcPositionFromPhrasingContentLines(so);return{token:{nodeType:ParagraphType$1,position:ao,lines:so},nextIndex:oo}}function to(no,oo){const{endIndex:io,firstNonWhitespaceIndex:so}=no;return so>=io?{status:"notMatched"}:(oo.lines.push(no),{status:"opening",nextIndex:io})}function ro(no,oo){return to(no,oo)}},parse$5=function(eo){return{parse:to=>{const ro=[];for(const no of to){const oo=mergeAndStripContentLines(no.lines),io=eo.processInlines(oo);if(io.length<=0)continue;const so=eo.shouldReservePosition?{type:ParagraphType$1,position:no.position,children:io}:{type:ParagraphType$1,children:io};ro.push(so)}return ro}}},uniqueName$3="@yozora/tokenizer-paragraph";class ParagraphTokenizer extends BaseBlockTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$3,priority:ro.priority??TokenizerPriority.FALLBACK});Ws(this,"match",match$4);Ws(this,"parse",parse$5)}extractPhrasingContentLines(ro){return ro.lines}buildBlockToken(ro){const no=trimBlankLines(ro);if(no.length<=0)return null;const oo=calcPositionFromPhrasingContentLines(no);return{nodeType:ParagraphType$1,lines:no,position:oo}}}const match$3=function(eo){return{isContainingBlock:!1,eatOpener:to,eatAndInterruptPreviousSibling:ro};function to(){return null}function ro(no,oo){const{nodePoints:io,endIndex:so,firstNonWhitespaceIndex:ao,countOfPrecedeSpaces:lo}=no;if(lo>=4||ao>=so)return null;let uo=null,co=!1;for(let go=ao;goto.map(ro=>{let no=1;switch(ro.marker){case AsciiCodePoint.EQUALS_SIGN:no=1;break;case AsciiCodePoint.MINUS_SIGN:no=2;break}const oo=mergeAndStripContentLines(ro.lines),io=eo.processInlines(oo);return eo.shouldReservePosition?{type:HeadingType,position:ro.position,depth:no,children:io}:{type:HeadingType,depth:no,children:io}})}},uniqueName$2="@yozora/tokenizer-setext-heading";class SetextHeadingTokenizer extends BaseBlockTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$2,priority:ro.priority??TokenizerPriority.ATOMIC});Ws(this,"match",match$3);Ws(this,"parse",parse$4)}}const match$2=function(){return{findDelimiter:()=>genFindDelimiter((eo,to)=>({type:"full",startIndex:eo,endIndex:to})),processSingleDelimiter:eo=>[{nodeType:TextType$1,startIndex:eo.startIndex,endIndex:eo.endIndex}]}},parse$3=function(eo){return{parse:to=>to.map(ro=>{const no=eo.getNodePoints();let oo=calcEscapedStringFromNodePoints(no,ro.startIndex,ro.endIndex);return oo=stripSpaces(oo),eo.shouldReservePosition?{type:TextType$1,position:eo.calcPosition(ro),value:oo}:{type:TextType$1,value:oo}})}},_stripRegex=/[^\S\n]*\n[^\S\n]*/g,stripSpaces=eo=>eo.replace(_stripRegex,` +`),uniqueName$1="@yozora/tokenizer-text";class TextTokenizer extends BaseInlineTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$1,priority:ro.priority??TokenizerPriority.FALLBACK});Ws(this,"match",match$2);Ws(this,"parse",parse$3)}findAndHandleDelimiter(ro,no){return{nodeType:TextType$1,startIndex:ro,endIndex:no}}}const match$1=function(){return{isContainingBlock:!1,eatOpener:eo,eatAndInterruptPreviousSibling:to};function eo(ro){if(ro.countOfPrecedeSpaces>=4)return null;const{nodePoints:no,startIndex:oo,endIndex:io,firstNonWhitespaceIndex:so}=ro;if(so+2>=io)return null;let ao,lo=0,uo=!0,co=!1;for(let ho=so;hoto.map(ro=>eo.shouldReservePosition?{type:ThematicBreakType,position:ro.position}:{type:ThematicBreakType})}},uniqueName="@yozora/tokenizer-thematic-break";class ThematicBreakTokenizer extends BaseBlockTokenizer{constructor(ro={}){super({name:ro.name??uniqueName,priority:ro.priority??TokenizerPriority.ATOMIC});Ws(this,"match",match$1);Ws(this,"parse",parse$2)}}class GfmParser extends DefaultParser{constructor(to={}){super({...to,blockFallbackTokenizer:to.blockFallbackTokenizer??new ParagraphTokenizer,inlineFallbackTokenizer:to.inlineFallbackTokenizer??new TextTokenizer}),this.useTokenizer(new IndentedCodeTokenizer).useTokenizer(new HtmlBlockTokenizer).useTokenizer(new SetextHeadingTokenizer).useTokenizer(new ThematicBreakTokenizer).useTokenizer(new BlockquoteTokenizer).useTokenizer(new ListTokenizer({enableTaskListItem:!1})).useTokenizer(new HeadingTokenizer).useTokenizer(new FencedCodeTokenizer).useTokenizer(new DefinitionTokenizer).useTokenizer(new HtmlInlineTokenizer).useTokenizer(new InlineCodeTokenizer).useTokenizer(new AutolinkTokenizer).useTokenizer(new BreakTokenizer).useTokenizer(new ImageTokenizer).useTokenizer(new ImageReferenceTokenizer).useTokenizer(new LinkTokenizer).useTokenizer(new LinkReferenceTokenizer).useTokenizer(new EmphasisTokenizer)}}const parser$1=new GfmParser({defaultParseOptions:{shouldReservePosition:!1}});class BlockquoteRenderer extends React.Component{shouldComponentUpdate(to){return this.props.children!==to.children}render(){const to=this.props.children;return jsxRuntimeExports.jsx("blockquote",{className:cls$b,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:to})})}}const cls$b=mergeStyles$1(astClasses.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 BreakRenderer extends React.Component{shouldComponentUpdate(){return!1}render(){return jsxRuntimeExports.jsx("br",{className:cls$a})}}const cls$a=mergeStyles$1(astClasses.break,{boxSizing:"border-box"});var prism={exports:{}};(function(eo){var to=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** + * Prism: Lightweight, robust, elegant syntax highlighting + * + * @license MIT + * @author Lea Verou + * @namespace + * @public + */var ro=function(no){var oo=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,io=0,so={},ao={manual:no.Prism&&no.Prism.manual,disableWorkerMessageHandler:no.Prism&&no.Prism.disableWorkerMessageHandler,util:{encode:function _o(Eo){return Eo instanceof lo?new lo(Eo.type,_o(Eo.content),Eo.alias):Array.isArray(Eo)?Eo.map(_o):Eo.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(To){var _o=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(To.stack)||[])[1];if(_o){var Eo=document.getElementsByTagName("script");for(var So in Eo)if(Eo[So].src==_o)return Eo[So]}return null}},isActive:function(_o,Eo,So){for(var To="no-"+Eo;_o;){var wo=_o.classList;if(wo.contains(Eo))return!0;if(wo.contains(To))return!1;_o=_o.parentElement}return!!So}},languages:{plain:so,plaintext:so,text:so,txt:so,extend:function(_o,Eo){var So=ao.util.clone(ao.languages[_o]);for(var To in Eo)So[To]=Eo[To];return So},insertBefore:function(_o,Eo,So,To){To=To||ao.languages;var wo=To[_o],Co={};for(var Oo in wo)if(wo.hasOwnProperty(Oo)){if(Oo==Eo)for(var Ao in So)So.hasOwnProperty(Ao)&&(Co[Ao]=So[Ao]);So.hasOwnProperty(Oo)||(Co[Oo]=wo[Oo])}var Ro=To[_o];return To[_o]=Co,ao.languages.DFS(ao.languages,function(No,Mo){Mo===Ro&&No!=_o&&(this[No]=Co)}),Co},DFS:function _o(Eo,So,To,wo){wo=wo||{};var Co=ao.util.objId;for(var Oo in Eo)if(Eo.hasOwnProperty(Oo)){So.call(Eo,Oo,Eo[Oo],To||Oo);var Ao=Eo[Oo],Ro=ao.util.type(Ao);Ro==="Object"&&!wo[Co(Ao)]?(wo[Co(Ao)]=!0,_o(Ao,So,null,wo)):Ro==="Array"&&!wo[Co(Ao)]&&(wo[Co(Ao)]=!0,_o(Ao,So,Oo,wo))}}},plugins:{},highlightAll:function(_o,Eo){ao.highlightAllUnder(document,_o,Eo)},highlightAllUnder:function(_o,Eo,So){var To={callback:So,container:_o,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};ao.hooks.run("before-highlightall",To),To.elements=Array.prototype.slice.apply(To.container.querySelectorAll(To.selector)),ao.hooks.run("before-all-elements-highlight",To);for(var wo=0,Co;Co=To.elements[wo++];)ao.highlightElement(Co,Eo===!0,To.callback)},highlightElement:function(_o,Eo,So){var To=ao.util.getLanguage(_o),wo=ao.languages[To];ao.util.setLanguage(_o,To);var Co=_o.parentElement;Co&&Co.nodeName.toLowerCase()==="pre"&&ao.util.setLanguage(Co,To);var Oo=_o.textContent,Ao={element:_o,language:To,grammar:wo,code:Oo};function Ro(Mo){Ao.highlightedCode=Mo,ao.hooks.run("before-insert",Ao),Ao.element.innerHTML=Ao.highlightedCode,ao.hooks.run("after-highlight",Ao),ao.hooks.run("complete",Ao),So&&So.call(Ao.element)}if(ao.hooks.run("before-sanity-check",Ao),Co=Ao.element.parentElement,Co&&Co.nodeName.toLowerCase()==="pre"&&!Co.hasAttribute("tabindex")&&Co.setAttribute("tabindex","0"),!Ao.code){ao.hooks.run("complete",Ao),So&&So.call(Ao.element);return}if(ao.hooks.run("before-highlight",Ao),!Ao.grammar){Ro(ao.util.encode(Ao.code));return}if(Eo&&no.Worker){var No=new Worker(ao.filename);No.onmessage=function(Mo){Ro(Mo.data)},No.postMessage(JSON.stringify({language:Ao.language,code:Ao.code,immediateClose:!0}))}else Ro(ao.highlight(Ao.code,Ao.grammar,Ao.language))},highlight:function(_o,Eo,So){var To={code:_o,grammar:Eo,language:So};if(ao.hooks.run("before-tokenize",To),!To.grammar)throw new Error('The language "'+To.language+'" has no grammar.');return To.tokens=ao.tokenize(To.code,To.grammar),ao.hooks.run("after-tokenize",To),lo.stringify(ao.util.encode(To.tokens),To.language)},tokenize:function(_o,Eo){var So=Eo.rest;if(So){for(var To in So)Eo[To]=So[To];delete Eo.rest}var wo=new fo;return ho(wo,wo.head,_o),co(_o,wo,Eo,wo.head,0),go(wo)},hooks:{all:{},add:function(_o,Eo){var So=ao.hooks.all;So[_o]=So[_o]||[],So[_o].push(Eo)},run:function(_o,Eo){var So=ao.hooks.all[_o];if(!(!So||!So.length))for(var To=0,wo;wo=So[To++];)wo(Eo)}},Token:lo};no.Prism=ao;function lo(_o,Eo,So,To){this.type=_o,this.content=Eo,this.alias=So,this.length=(To||"").length|0}lo.stringify=function _o(Eo,So){if(typeof Eo=="string")return Eo;if(Array.isArray(Eo)){var To="";return Eo.forEach(function(Ro){To+=_o(Ro,So)}),To}var wo={type:Eo.type,content:_o(Eo.content,So),tag:"span",classes:["token",Eo.type],attributes:{},language:So},Co=Eo.alias;Co&&(Array.isArray(Co)?Array.prototype.push.apply(wo.classes,Co):wo.classes.push(Co)),ao.hooks.run("wrap",wo);var Oo="";for(var Ao in wo.attributes)Oo+=" "+Ao+'="'+(wo.attributes[Ao]||"").replace(/"/g,""")+'"';return"<"+wo.tag+' class="'+wo.classes.join(" ")+'"'+Oo+">"+wo.content+""};function uo(_o,Eo,So,To){_o.lastIndex=Eo;var wo=_o.exec(So);if(wo&&To&&wo[1]){var Co=wo[1].length;wo.index+=Co,wo[0]=wo[0].slice(Co)}return wo}function co(_o,Eo,So,To,wo,Co){for(var Oo in So)if(!(!So.hasOwnProperty(Oo)||!So[Oo])){var Ao=So[Oo];Ao=Array.isArray(Ao)?Ao:[Ao];for(var Ro=0;Ro=Co.reach);qo+=Ho.value.length,Ho=Ho.next){var Uo=Ho.value;if(Eo.length>_o.length)return;if(!(Uo instanceof lo)){var Yo=1,Zo;if(jo){if(Zo=uo(Lo,qo,_o,Do),!Zo||Zo.index>=_o.length)break;var Ns=Zo.index,_s=Zo.index+Zo[0].length,Ss=qo;for(Ss+=Ho.value.length;Ns>=Ss;)Ho=Ho.next,Ss+=Ho.value.length;if(Ss-=Ho.value.length,qo=Ss,Ho.value instanceof lo)continue;for(var As=Ho;As!==Eo.tail&&(Ss<_s||typeof As.value=="string");As=As.next)Yo++,Ss+=As.value.length;Yo--,Uo=_o.slice(qo,Ss),Zo.index-=qo}else if(Zo=uo(Lo,0,Uo,Do),!Zo)continue;var Ns=Zo.index,ws=Zo[0],Ds=Uo.slice(0,Ns),Jo=Uo.slice(Ns+ws.length),Cs=qo+Uo.length;Co&&Cs>Co.reach&&(Co.reach=Cs);var Bs=Ho.prev;Ds&&(Bs=ho(Eo,Bs,Ds),qo+=Ds.length),po(Eo,Bs,Yo);var zs=new lo(Oo,Mo?ao.tokenize(ws,Mo):ws,Fo,ws);if(Ho=ho(Eo,Bs,zs),Jo&&ho(Eo,Ho,Jo),Yo>1){var Ls={cause:Oo+","+Ro,reach:Cs};co(_o,Eo,So,Ho.prev,qo,Ls),Co&&Ls.reach>Co.reach&&(Co.reach=Ls.reach)}}}}}}function fo(){var _o={value:null,prev:null,next:null},Eo={value:null,prev:_o,next:null};_o.next=Eo,this.head=_o,this.tail=Eo,this.length=0}function ho(_o,Eo,So){var To=Eo.next,wo={value:So,prev:Eo,next:To};return Eo.next=wo,To.prev=wo,_o.length++,wo}function po(_o,Eo,So){for(var To=Eo.next,wo=0;wo/,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]},ro.languages.markup.tag.inside["attr-value"].inside.entity=ro.languages.markup.entity,ro.languages.markup.doctype.inside["internal-subset"].inside=ro.languages.markup,ro.hooks.add("wrap",function(no){no.type==="entity"&&(no.attributes.title=no.content.replace(/&/,"&"))}),Object.defineProperty(ro.languages.markup.tag,"addInlined",{value:function(oo,io){var so={};so["language-"+io]={pattern:/(^$)/i,lookbehind:!0,inside:ro.languages[io]},so.cdata=/^$/i;var ao={"included-cdata":{pattern://i,inside:so}};ao["language-"+io]={pattern:/[\s\S]+/,inside:ro.languages[io]};var lo={};lo[oo]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return oo}),"i"),lookbehind:!0,greedy:!0,inside:ao},ro.languages.insertBefore("markup","cdata",lo)}}),Object.defineProperty(ro.languages.markup.tag,"addAttribute",{value:function(no,oo){ro.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+no+")"+/\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:[oo,"language-"+oo],inside:ro.languages[oo]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),ro.languages.html=ro.languages.markup,ro.languages.mathml=ro.languages.markup,ro.languages.svg=ro.languages.markup,ro.languages.xml=ro.languages.extend("markup",{}),ro.languages.ssml=ro.languages.xml,ro.languages.atom=ro.languages.xml,ro.languages.rss=ro.languages.xml,function(no){var oo=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;no.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+oo.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\\((?:"+oo.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+oo.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+oo.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:oo,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:/[(){};:,]/},no.languages.css.atrule.inside.rest=no.languages.css;var io=no.languages.markup;io&&(io.tag.addInlined("style","css"),io.tag.addAttribute("style","css"))}(ro),ro.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:/[{}[\];(),.:]/},ro.languages.javascript=ro.languages.extend("clike",{"class-name":[ro.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}|\?\?=?|\?\.?|[~:]/}),ro.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,ro.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:ro.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:ro.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:ro.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:ro.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:ro.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),ro.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:ro.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"}}),ro.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),ro.languages.markup&&(ro.languages.markup.tag.addInlined("script","javascript"),ro.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")),ro.languages.js=ro.languages.javascript,function(){if(typeof ro>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var no="Loading…",oo=function(vo,bo){return"✖ Error "+vo+" while fetching file: "+bo},io="✖ Error: File does not exist or is empty",so={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},ao="data-src-status",lo="loading",uo="loaded",co="failed",fo="pre[data-src]:not(["+ao+'="'+uo+'"]):not(['+ao+'="'+lo+'"])';function ho(vo,bo,xo){var _o=new XMLHttpRequest;_o.open("GET",vo,!0),_o.onreadystatechange=function(){_o.readyState==4&&(_o.status<400&&_o.responseText?bo(_o.responseText):_o.status>=400?xo(oo(_o.status,_o.statusText)):xo(io))},_o.send(null)}function po(vo){var bo=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(vo||"");if(bo){var xo=Number(bo[1]),_o=bo[2],Eo=bo[3];return _o?Eo?[xo,Number(Eo)]:[xo,void 0]:[xo,xo]}}ro.hooks.add("before-highlightall",function(vo){vo.selector+=", "+fo}),ro.hooks.add("before-sanity-check",function(vo){var bo=vo.element;if(bo.matches(fo)){vo.code="",bo.setAttribute(ao,lo);var xo=bo.appendChild(document.createElement("CODE"));xo.textContent=no;var _o=bo.getAttribute("data-src"),Eo=vo.language;if(Eo==="none"){var So=(/\.(\w+)$/.exec(_o)||[,"none"])[1];Eo=so[So]||So}ro.util.setLanguage(xo,Eo),ro.util.setLanguage(bo,Eo);var To=ro.plugins.autoloader;To&&To.loadLanguages(Eo),ho(_o,function(wo){bo.setAttribute(ao,uo);var Co=po(bo.getAttribute("data-range"));if(Co){var Oo=wo.split(/\r\n?|\n/g),Ao=Co[0],Ro=Co[1]==null?Oo.length:Co[1];Ao<0&&(Ao+=Oo.length),Ao=Math.max(0,Math.min(Ao-1,Oo.length)),Ro<0&&(Ro+=Oo.length),Ro=Math.max(0,Math.min(Ro,Oo.length)),wo=Oo.slice(Ao,Ro).join(` +`),bo.hasAttribute("data-start")||bo.setAttribute("data-start",String(Ao+1))}xo.textContent=wo,ro.highlightElement(xo)},function(wo){bo.setAttribute(ao,co),xo.textContent=wo})}}),ro.plugins.fileHighlight={highlight:function(bo){for(var xo=(bo||document).querySelectorAll(fo),_o=0,Eo;Eo=xo[_o++];)ro.highlightElement(Eo)}};var go=!1;ro.fileHighlight=function(){go||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),go=!0),ro.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(prism);var prismExports=prism.exports;const Prism=getDefaultExportFromCjs(prismExports);function sheetForTag(eo){if(eo.sheet)return eo.sheet;for(var to=0;to0?charat(characters,--position):0,column--,character===10&&(column=1,line--),character}function next(){return character=position2||token$1(character)>3?"":" "}function escaping(eo,to){for(;--to&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(eo,caret()+(to<6&&peek()==32&&next()==32))}function delimiter(eo){for(;next();)switch(character){case eo:return position;case 34:case 39:eo!==34&&eo!==39&&delimiter(character);break;case 40:eo===41&&delimiter(eo);break;case 92:next();break}return position}function commenter(eo,to){for(;next()&&eo+character!==57;)if(eo+character===84&&peek()===47)break;return"/*"+slice(to,position-1)+"*"+from(eo===47?eo:next())}function identifier(eo){for(;!token$1(peek());)next();return slice(eo,position)}function compile(eo){return dealloc(parse$1("",null,null,null,[""],eo=alloc(eo),0,[0],eo))}function parse$1(eo,to,ro,no,oo,io,so,ao,lo){for(var uo=0,co=0,fo=so,ho=0,po=0,go=0,vo=1,bo=1,xo=1,_o=0,Eo="",So=oo,To=io,wo=no,Co=Eo;bo;)switch(go=_o,_o=next()){case 40:if(go!=108&&charat(Co,fo-1)==58){indexof(Co+=replace(delimit(_o),"&","&\f"),"&\f")!=-1&&(xo=-1);break}case 34:case 39:case 91:Co+=delimit(_o);break;case 9:case 10:case 13:case 32:Co+=whitespace(go);break;case 92:Co+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment$1(commenter(next(),caret()),to,ro),lo);break;default:Co+="/"}break;case 123*vo:ao[uo++]=strlen(Co)*xo;case 125*vo:case 59:case 0:switch(_o){case 0:case 125:bo=0;case 59+co:xo==-1&&(Co=replace(Co,/\f/g,"")),po>0&&strlen(Co)-fo&&append(po>32?declaration(Co+";",no,ro,fo-1):declaration(replace(Co," ","")+";",no,ro,fo-2),lo);break;case 59:Co+=";";default:if(append(wo=ruleset(Co,to,ro,uo,co,oo,ao,Eo,So=[],To=[],fo),io),_o===123)if(co===0)parse$1(Co,to,wo,wo,So,io,fo,ao,To);else switch(ho===99&&charat(Co,3)===110?100:ho){case 100:case 108:case 109:case 115:parse$1(eo,wo,wo,no&&append(ruleset(eo,wo,wo,0,0,oo,ao,Eo,oo,So=[],fo),To),oo,To,fo,ao,no?So:To);break;default:parse$1(Co,wo,wo,wo,[""],To,0,ao,To)}}uo=co=po=0,vo=xo=1,Eo=Co="",fo=so;break;case 58:fo=1+strlen(Co),po=go;default:if(vo<1){if(_o==123)--vo;else if(_o==125&&vo++==0&&prev()==125)continue}switch(Co+=from(_o),_o*vo){case 38:xo=co>0?1:(Co+="\f",-1);break;case 44:ao[uo++]=(strlen(Co)-1)*xo,xo=1;break;case 64:peek()===45&&(Co+=delimit(next())),ho=peek(),co=fo=strlen(Eo=Co+=identifier(caret())),_o++;break;case 45:go===45&&strlen(Co)==2&&(vo=0)}}return io}function ruleset(eo,to,ro,no,oo,io,so,ao,lo,uo,co){for(var fo=oo-1,ho=oo===0?io:[""],po=sizeof(ho),go=0,vo=0,bo=0;go0?ho[xo]+" "+_o:replace(_o,/&\f/g,ho[xo])))&&(lo[bo++]=Eo);return node(eo,to,ro,oo===0?RULESET:ao,lo,uo,co)}function comment$1(eo,to,ro){return node(eo,to,ro,COMMENT,from(char()),substr(eo,2,-2),0)}function declaration(eo,to,ro,no){return node(eo,to,ro,DECLARATION,substr(eo,0,no),substr(eo,no+1,-1),no)}function serialize(eo,to){for(var ro="",no=sizeof(eo),oo=0;oo6)switch(charat(eo,to+1)){case 109:if(charat(eo,to+4)!==45)break;case 102:return replace(eo,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat(eo,to+3)==108?"$3":"$2-$3"))+eo;case 115:return~indexof(eo,"stretch")?prefix(replace(eo,"stretch","fill-available"),to)+eo:eo}break;case 4949:if(charat(eo,to+1)!==115)break;case 6444:switch(charat(eo,strlen(eo)-3-(~indexof(eo,"!important")&&10))){case 107:return replace(eo,":",":"+WEBKIT)+eo;case 101:return replace(eo,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat(eo,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+eo}break;case 5936:switch(charat(eo,to+11)){case 114:return WEBKIT+eo+MS+replace(eo,/[svh]\w+-[tblr]{2}/,"tb")+eo;case 108:return WEBKIT+eo+MS+replace(eo,/[svh]\w+-[tblr]{2}/,"tb-rl")+eo;case 45:return WEBKIT+eo+MS+replace(eo,/[svh]\w+-[tblr]{2}/,"lr")+eo}return WEBKIT+eo+MS+eo+eo}return eo}var prefixer=function eo(to,ro,no,oo){if(to.length>-1&&!to.return)switch(to.type){case DECLARATION:to.return=prefix(to.value,to.length);break;case KEYFRAMES:return serialize([copy(to,{value:replace(to.value,"@","@"+WEBKIT)})],oo);case RULESET:if(to.length)return combine(to.props,function(io){switch(match(io,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(to,{props:[replace(io,/:(read-\w+)/,":"+MOZ+"$1")]})],oo);case"::placeholder":return serialize([copy(to,{props:[replace(io,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(to,{props:[replace(io,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(to,{props:[replace(io,/:(plac\w+)/,MS+"input-$1")]})],oo)}return""})}},defaultStylisPlugins=[prefixer],createCache=function eo(to){var ro=to.key;if(ro==="css"){var no=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(no,function(vo){var bo=vo.getAttribute("data-emotion");bo.indexOf(" ")!==-1&&(document.head.appendChild(vo),vo.setAttribute("data-s",""))})}var oo=to.stylisPlugins||defaultStylisPlugins,io={},so,ao=[];so=to.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+ro+' "]'),function(vo){for(var bo=vo.getAttribute("data-emotion").split(" "),xo=1;xoNumber.isNaN(Number(eo))).map(([eo,to])=>[eo,`var(${to})`]));Prism.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:/[{}[\];(),.:]/};Prism.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]};Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity;Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup;Prism.hooks.add("wrap",function(eo){eo.type==="entity"&&eo.attributes&&(eo.attributes.title=eo.content.replace(/&/,"&"))});Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function eo(to,ro){const no={};no["language-"+ro]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[ro]},no.cdata=/^$/i;const oo={"included-cdata":{pattern://i,inside:no}};oo["language-"+ro]={pattern:/[\s\S]+/,inside:Prism.languages[ro]};const io={};io[to]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return to}),"i"),lookbehind:!0,greedy:!0,inside:oo},Prism.languages.insertBefore("markup","cdata",io)}});Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(eo,to){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+eo+")"+/\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:[to,"language-"+to],inside:Prism.languages[to]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});Prism.languages.html=Prism.languages.markup;Prism.languages.mathml=Prism.languages.markup;Prism.languages.svg=Prism.languages.markup;Prism.languages.xml=Prism.languages.extend("markup",{});Prism.languages.ssml=Prism.languages.xml;Prism.languages.atom=Prism.languages.xml;Prism.languages.rss=Prism.languages.xml;const envVars="\\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",commandAfterHeredoc={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:void 0},insideString={bash:commandAfterHeredoc,environment:{pattern:RegExp("\\$"+envVars),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("(\\{)"+envVars),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})/};Prism.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;|&]|[<>]\\()"+envVars),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:insideString},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:commandAfterHeredoc}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:insideString},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:insideString.entity}}],environment:{pattern:RegExp("\\$?"+envVars),alias:"constant"},variable:insideString.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}};commandAfterHeredoc.inside=Prism.languages.bash;const toBeCopied=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],inside$1=insideString.variable[1].inside;for(let eo=0;eo>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/});Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}});Prism.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},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.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:Prism.languages.c}}}});Prism.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 Prism.languages.c.boolean;const string$1=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;Prism.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+string$1.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\\((?:"+string$1.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+string$1.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+string$1.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:string$1,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:/[(){};:,]/};Prism.languages.css.atrule.inside.rest=Prism.languages.css;const markup=Prism.languages.markup;markup&&(markup.tag.addInlined("style","css"),markup.tag.addAttribute("style","css"));const keyword$1=/\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/,modName=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return keyword$1.source});Prism.languages.cpp=Prism.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return keyword$1.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:keyword$1,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/});Prism.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 modName})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}});Prism.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:Prism.languages.cpp}}}});Prism.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});Prism.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:Prism.languages.extend("cpp",{})}});Prism.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},Prism.languages.cpp["base-clause"]);const ID="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",IDInside={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:Prism.languages.markup}};function withID(eo,to){return RegExp(eo.replace(//g,function(){return ID}),to)}Prism.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:withID(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:IDInside},"attr-value":{pattern:withID(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:IDInside},"attr-name":{pattern:withID(/([[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:IDInside},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:withID(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:IDInside},operator:/[=:]|-[->]/,punctuation:/[[\]{};,]/};Prism.languages.gv=Prism.languages.dot;Prism.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};const PREFIXES={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(PREFIXES).forEach(function(eo){const to=PREFIXES[eo],ro=[];/^\w+$/.test(eo)||ro.push(/\w+/.exec(eo)[0]),eo==="diff"&&ro.push("bold"),Prism.languages.diff[eo]={pattern:RegExp("^(?:["+to+`].*(?:\r +?| +|(?![\\s\\S])))+`,"m"),alias:ro,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(eo)[0]}}}});Object.defineProperty(Prism.languages.diff,"PREFIXES",{value:PREFIXES});Prism.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};Prism.languages.go=Prism.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/});Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}});delete Prism.languages.go["class-name"];const keywords=/\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/,classNamePrefix=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,className={pattern:RegExp(/(^|[^\w.])/.source+classNamePrefix+/[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:/\./}};Prism.languages.java=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[className,{pattern:RegExp(/(^|[^\w.])/.source+classNamePrefix+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:className.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+classNamePrefix+/[A-Z]\w*\b/.source),lookbehind:!0,inside:className.inside}],keyword:keywords,function:[Prism.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/});Prism.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}});Prism.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":className,keyword:keywords,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+classNamePrefix+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:className.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+classNamePrefix+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:className.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 keywords.source})),lookbehind:!0,inside:{punctuation:/\./}}});Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.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}|\?\?=?|\?\.?|[~:]/});Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;Prism.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:Prism.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:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.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:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});Prism.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:Prism.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"}});Prism.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(Prism.languages.markup){const eo=Prism.languages.markup;eo.tag.addInlined("script","javascript"),eo.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")}Prism.languages.js=Prism.languages.javascript;Prism.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"}};Prism.languages.webmanifest=Prism.languages.json;const javascript=Prism.util.clone(Prism.languages.javascript),space$1=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,braces=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source;let spread=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function re$1(eo,to){const ro=eo.replace(//g,()=>space$1).replace(//g,()=>braces).replace(//g,()=>spread);return RegExp(ro,to)}spread=re$1(spread).source;Prism.languages.jsx=Prism.languages.extend("markup",javascript);const jsx=Prism.languages.jsx;jsx.tag.pattern=re$1(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source);jsx.tag.inside.tag.pattern=/^<\/?[^\s>/]*/;jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/;jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/;jsx.tag.inside.comment=javascript.comment;Prism.languages.insertBefore("inside","attr-name",{spread:{pattern:re$1(//.source),inside:Prism.languages.jsx}},jsx.tag);Prism.languages.insertBefore("inside","special-attr",{script:{pattern:re$1(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:Prism.languages.jsx}}},jsx.tag);const stringifyToken=function(eo){return eo?typeof eo=="string"?eo:typeof eo.content=="string"?eo.content:eo.content.map(stringifyToken).join(""):""},walkTokens=function(eo){const to=[];for(let ro=0;ro0&&to[to.length-1].tagName===stringifyToken(io[0].content[1])&&to.pop():io[io.length-1].content==="/>"||to.push({tagName:stringifyToken(io[0].content[1]),openedBraces:0}):to.length>0&&no.type==="punctuation"&&no.content==="{"?to[to.length-1].openedBraces+=1:to.length>0&&to[to.length-1].openedBraces>0&&no.type==="punctuation"&&no.content==="}"?to[to.length-1].openedBraces-=1:oo=!0}if((oo||typeof no=="string")&&to.length>0&&to[to.length-1].openedBraces===0){let io=stringifyToken(no);ro0&&(typeof eo[ro-1]=="string"||eo[ro-1].type==="plain-text")&&(io=stringifyToken(eo[ro-1])+io,eo.splice(ro-1,1),ro-=1),eo[ro]=new Prism.Token("plain-text",io,void 0,io)}typeof no!="string"&&no.content&&typeof no.content!="string"&&walkTokens(no.content)}};Prism.hooks.add("after-tokenize",function(eo){eo.language!=="jsx"&&eo.language!=="tsx"||walkTokens(eo.tokens)});Prism.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 inner=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function createInline(eo){const to=eo.replace(//g,function(){return inner});return RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+to+")")}const tableCell=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,tableRow=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return tableCell}),tableLine=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;Prism.languages.markdown=Prism.languages.extend("markup",{});Prism.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:Prism.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+tableRow+tableLine+"(?:"+tableRow+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+tableRow+tableLine+")(?:"+tableRow+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(tableCell),inside:Prism.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+tableRow+")"+tableLine+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+tableRow+"$"),inside:{"table-header":{pattern:RegExp(tableCell),alias:"important",inside:Prism.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:createInline(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:createInline(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:createInline(/(~~?)(?:(?!~))+\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:createInline(/!?\[(?:(?!\]))+\](?:\([^\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(eo){["url","bold","italic","strike","code-snippet"].forEach(function(to){if(eo!==to){const ro=Prism.languages.markdown;ro[eo].inside.content.inside[to]=ro[to]}})});Prism.hooks.add("after-tokenize",function(eo){if(eo.language!=="markdown"&&eo.language!=="md")return;function to(ro){if(!(!ro||typeof ro=="string"))for(let no=0,oo=ro.length;no",quot:'"'},fromCodePoint$1=String.fromCodePoint||String.fromCharCode;function textContent(eo){let to=eo.replace(tagPattern,"");return to=to.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(ro,no){if(no=no.toLowerCase(),no[0]==="#"){let oo;return no[1]==="x"?oo=parseInt(no.slice(2),16):oo=Number(no.slice(1)),fromCodePoint$1(oo)}else{const oo=KNOWN_ENTITY_NAMES[no];return oo||ro}}),to}Prism.languages.md=Prism.languages.markdown;Prism.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:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;Prism.languages.scss=Prism.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]+\}/}}});Prism.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}]});Prism.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/});Prism.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}});Prism.languages.scss.atrule.inside.rest=Prism.languages.scss;Prism.languages.sass=Prism.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}});Prism.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}});delete Prism.languages.sass.atrule;const variable=/\$[-\w]+|#\{\$[-\w]+\}/,operator$1=[/[+*/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];Prism.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable,operator:operator$1}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable,operator:operator$1,important:Prism.languages.sass.important}}});delete Prism.languages.sass.property;delete Prism.languages.sass.important;Prism.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}});Prism.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 unit={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},number$1={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},inside$2={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,number:number$1,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit,boolean:/\b(?:false|true)\b/,operator:[/~|[+!/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:number$1,punctuation:/[{}()[\];:,]/};inside$2.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:inside$2}};inside$2.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:inside$2}};Prism.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:inside$2}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:inside$2}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:inside$2}},"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:inside$2.interpolation}},rest:inside$2}},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:inside$2.interpolation,comment:inside$2.comment,punctuation:/[{},]/}},func:inside$2.func,string:inside$2.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:inside$2.interpolation,punctuation:/[{}()[\];:.]/};Prism.languages.typescript=Prism.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/});Prism.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 Prism.languages.typescript.parameter;delete Prism.languages.typescript["literal-property"];const typeInside=Prism.languages.extend("typescript",{});delete typeInside["class-name"];Prism.languages.typescript["class-name"].inside=typeInside;Prism.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:typeInside}}}});Prism.languages.ts=Prism.languages.typescript;const typescript=Prism.util.clone(Prism.languages.typescript);Prism.languages.tsx=Prism.languages.extend("jsx",typescript);delete Prism.languages.tsx.parameter;delete Prism.languages.tsx["literal-property"];const tag$1=Prism.languages.tsx.tag;tag$1.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+tag$1.pattern.source+")",tag$1.pattern.flags);tag$1.lookbehind=!0;Prism.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:/[{}().,:?]/};Prism.languages.vb=Prism.languages["visual-basic"];Prism.languages.vba=Prism.languages["visual-basic"];Prism.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 anchorOrAlias=/[*&][^\s[\]{},]+/,tag=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,properties="(?:"+tag.source+"(?:[ ]+"+anchorOrAlias.source+")?|"+anchorOrAlias.source+"(?:[ ]+"+tag.source+")?)",plainKey=/(?:[^\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),string$2=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function createValuePattern(eo,to){const ro=(to||"").replace(/m/g,"")+"m",no=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return properties}).replace(/<>/g,function(){return eo});return RegExp(no,ro)}Prism.languages.yaml={scalar:{pattern:RegExp(/([-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return properties})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return properties}).replace(/<>/g,function(){return"(?:"+plainKey+"|"+string$2+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:createValuePattern(/\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:createValuePattern(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:createValuePattern(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:createValuePattern(string$2),lookbehind:!0,greedy:!0},number:{pattern:createValuePattern(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag,important:anchorOrAlias,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./};Prism.languages.yml=Prism.languages.yaml;const vscDarkTheme={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"}}]},vscLightTheme={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)"}}]},vars={border:`1px solid var(${TokenNames.colorBorderCodeLineno}, hsla(0deg, 0%, 80%, 0.8))`,highlightBackground:`var(${TokenNames.colorBgCodeHighlight}, hsla(30deg, 90%, 50%, 0.3))`,fontSizeCode:`var(${CommonTokenNames.fontSizeCode}, 14px)`,lineHeightCode:`var(${CommonTokenNames.lineHeightCode}, 1.6)`},classes$2={container:css({MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",display:"flex",alignItems:"stretch",overflow:"hidden",width:"100%",fontSize:vars.fontSizeCode,lineHeight:vars.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:css({boxSizing:"border-box",display:"flex",minWidth:"fit-content",width:"100%",padding:"0 6px",letterSpacing:"inherit",fontSize:vars.fontSizeCode,lineHeight:vars.lineHeightCode,height:vars.lineHeightCode,overflowWrap:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"inherit",wordBreak:"inherit",wordSpacing:"inherit",wordWrap:"inherit"}),linenoLine:css({justifyContent:"flex-end",padding:"0 4px"}),highlightLine:css({background:vars.highlightBackground,borderColor:"transparent"}),lineno:css({flex:"0 0 auto",overflow:"hidden",boxSizing:"border-box",padding:"0.5rem 0",cursor:"default",fontSize:vars.fontSizeCode,lineHeight:vars.lineHeightCode,userSelect:"none",textAlign:"right",borderRight:vars.border}),codes:css({flex:"1 1 auto",overflow:"overlay",boxSizing:"border-box",padding:"0.5rem 0",fontSize:vars.fontSizeCode,lineHeight:vars.lineHeightCode}),codeWrapper:css({minWidth:"100%",width:"fit-content"}),codeLine:css({boxSizing:"border-box",padding:"0 12px"})},languageMap={js:"javascript",ts:"typescript"},themeToDict=(eo,to)=>{eo=languageMap[eo]??eo;const{plain:ro}=to,no=Object.create(null),oo=to.styles.reduce((io,so)=>{const{types:ao,style:lo,languages:uo}=so;if(uo&&!uo.includes(eo))return io;for(const co of ao){const fo={...io[co],...lo};io[co]=fo}return io},no);return oo.root=ro,oo.plain={...ro,backgroundColor:void 0},oo},newlineRegex=/\r\n|\r|\n/,normalizeEmptyLines=eo=>{eo.length===0?eo.push({types:["plain"],content:` +`,empty:!0}):eo.length===1&&eo[0].content===""&&(eo[0].content=` +`,eo[0].empty=!0)},appendTypes=(eo,to)=>{const ro=eo.length;return ro>0&&eo[ro-1]===to?eo:eo.concat(to)},normalizeTokens=eo=>{const to=[[]],ro=[eo],no=[0],oo=[eo.length];let io=[];const so=[io];for(let ao=0;ao>-1;--ao){for(let lo=0;(lo=no[ao]++)0?co:["plain"],uo=ho):(co=appendTypes(co,ho.type),ho.alias&&(co=appendTypes(co,ho.alias)),uo=ho.content),typeof uo!="string"){ao+=1,to.push(co),ro.push(uo),no.push(0),oo.push(uo.length);continue}const po=uo.split(newlineRegex),go=po.length;io.push({types:co,content:po[0]});for(let vo=1;vo{var io,so;const no=ro.target;if(no==null)return;const{scrollTop:oo}=no;(so=(io=this.linenoRef.current)==null?void 0:io.scrollTo)==null||so.call(io,0,oo)});const no=themeToDict(ro.language,ro.theme),oo=this.tokenize(ro.code,ro.language),io=ro.showLineno?`${Math.max(2,String(oo.length).length)*1.1}em`:void 0;this.state={linenoWidth:io,themeDict:no,tokens:oo},this.linenoRef={current:null}}shouldComponentUpdate(ro,no){const oo=this.props,io=this.state;return io.linenoWidth!==no.linenoWidth||io.themeDict!==no.themeDict||io.tokens!==no.tokens||oo.code!==ro.code||oo.codesRef!==ro.codesRef||oo.collapsed!==ro.collapsed||oo.language!==ro.language||oo.maxLines!==ro.maxLines||oo.showLineno!==ro.showLineno||!isEqual(oo.theme,ro.theme)||!isEqual(oo.highlightLinenos,ro.highlightLinenos)}render(){const{linenoRef:ro,onScroll:no}=this,{codesRef:oo,collapsed:io,highlightLinenos:so,language:ao,maxLines:lo,showLineno:uo=!0}=this.props,{linenoWidth:co,tokens:fo}=this.state,ho=fo.length,po=lo>0?Math.min(lo,ho):ho,go={...this.state.themeDict.root,backgroundColor:"none",...io?{maxHeight:0}:{maxHeight:`calc(calc(${vars.lineHeightCode} * ${po+.8}) + 6px)`,minHeight:"100%"}};return React.createElement("div",{className:cx(classes$2.container,ao?`prism-code language-${ao}`:"prism-code"),style:go},uo&&React.createElement("div",{key:"linenos",className:classes$2.lineno,style:{width:co},ref:ro},React.createElement(HighlightLinenos,{countOfLines:ho,highlightLinenos:so})),React.createElement("div",{key:"codes",ref:oo,className:classes$2.codes,onScroll:no},React.createElement("div",{className:classes$2.codeWrapper},fo.map((vo,bo)=>{const xo=so.includes(bo+1),_o=this.getLineProps({line:vo});return React.createElement("div",{..._o,key:bo,className:cx(classes$2.line,classes$2.codeLine,xo&&classes$2.highlightLine,_o.className)},vo.map((Eo,So)=>React.createElement("span",{...this.getTokenProps({token:Eo}),key:So})))}))))}componentDidMount(){var ro,no;(no=(ro=this.props).onLinenoWidthChange)==null||no.call(ro,this.state.linenoWidth)}componentDidUpdate(ro,no){var ao,lo;const oo=this.props,io=this.state,so=oo.language!==ro.language||!isEqual(oo.theme,ro.theme)?themeToDict(oo.language,oo.theme):io.themeDict;if(oo.code!==ro.code||oo.language!==ro.language||so!==no.themeDict){const uo=this.tokenize(oo.code,oo.language),co=oo.showLineno?`${Math.max(2,String(uo.length).length)*1.1}em`:void 0;this.setState({linenoWidth:co,themeDict:so,tokens:uo})}io.linenoWidth!==no.linenoWidth&&((lo=(ao=this.props).onLinenoWidthChange)==null||lo.call(ao,io.linenoWidth))}tokenize(ro,no){const oo=no?Prism.languages[no]:void 0;if(oo){const io={code:ro,grammar:oo,language:no,tokens:[]};return Prism.hooks.run("before-tokenize",io),io.tokens=Prism.tokenize(io.code,io.grammar),Prism.hooks.run("after-tokenize",io),normalizeTokens(io.tokens)}else return normalizeTokens([ro])}getLineProps(ro){const{themeDict:no}=this.state,{key:oo,className:io,style:so,line:ao,...lo}=ro,uo={...lo,className:"token-line",style:void 0,key:void 0};return no!==void 0&&(uo.style=no.plain),so!==void 0&&(uo.style=uo.style!==void 0?{...uo.style,...so}:so),oo!==void 0&&(uo.key=oo),io&&(uo.className+=` ${io}`),uo}getStyleForToken({types:ro,empty:no}){const{themeDict:oo}=this.state,io=ro.length;if(oo===void 0)return;if(io===1&&ro[0]==="plain")return no?{display:"inline-block"}:void 0;if(io===1&&!no)return oo[ro[0]];const so=no?{display:"inline-block"}:{};for(const ao of ro){const lo=oo[ao];Object.assign(so,lo)}return so}getTokenProps(ro){const{key:no,className:oo,style:io,token:so,...ao}=ro,lo={...ao,className:`token ${so.types.join(" ")}`,children:so.content,style:this.getStyleForToken(so),key:void 0};return io!==void 0&&(lo.style=lo.style!==void 0?{...lo.style,...io}:io),no!==void 0&&(lo.key=no),oo&&(lo.className+=` ${oo}`),lo}}Ws(HighlightContent,"displayName","HighlightContent"),Ws(HighlightContent,"propTypes",{code:PropTypes.string.isRequired,codesRef:PropTypes.any,collapsed:PropTypes.bool.isRequired,language:PropTypes.string.isRequired,maxLines:PropTypes.number.isRequired,showLineno:PropTypes.bool.isRequired,theme:PropTypes.object.isRequired,highlightLinenos:PropTypes.array.isRequired,onLinenoWidthChange:PropTypes.func});class CodeHighlighter extends React.PureComponent{render(){const{lang:to,value:ro,darken:no=!0,highlightLinenos:oo=[],maxLines:io=-1,collapsed:so=!1,showLineNo:ao=!0,codesRef:lo,onLinenoWidthChange:uo}=this.props,co=this.props.theme??(no?vscDarkTheme:vscLightTheme);return React.createElement(HighlightContent,{code:ro,codesRef:lo,collapsed:so,highlightLinenos:oo,language:to??"",maxLines:io,showLineno:ao,theme:co,onLinenoWidthChange:uo})}}Ws(CodeHighlighter,"displayName","YozoraCodeHighlighter"),Ws(CodeHighlighter,"propTypes",{codesRef:PropTypes.any,collapsed:PropTypes.bool,darken:PropTypes.bool,highlightLinenos:PropTypes.arrayOf(PropTypes.number),lang:PropTypes.string,maxLines:PropTypes.number,onLinenoWidthChange:PropTypes.func,showLineNo:PropTypes.bool,theme:PropTypes.any,value:PropTypes.string.isRequired});const CopyButton=eo=>{const{className:to,delay:ro=1500,calcContentForCopy:no}=eo,[oo,io]=React.useState(0),so=useStyles$h(),ao=oo!==0,lo=()=>{if(oo===0){io(1);try{const uo=no();copy$2(uo),io(2)}catch{io(3)}}};return React.useEffect(()=>{if(oo===2||oo===3){const uo=setTimeout(()=>io(0),ro);return()=>{uo&&clearTimeout(uo)}}},[oo,ro]),jsxRuntimeExports.jsx(Button$2,{appearance:"transparent",className:mergeClasses(so.copyButton,to),disabled:ao,as:"button",icon:oo===0?jsxRuntimeExports.jsx(Copy20Regular,{}):jsxRuntimeExports.jsx(CopyArrowRight20Regular,{}),onClick:lo})},useStyles$h=makeStyles({copyButton:{cursor:"pointer"}});class CodeRendererInner extends React.PureComponent{constructor(){super(...arguments),this.calcContentForCopy=()=>this.props.value}render(){const{calcContentForCopy:to}=this,{darken:ro,lang:no,value:oo,preferCodeWrap:io,showCodeLineno:so}=this.props;return jsxRuntimeExports.jsxs("code",{className:codeCls,"data-wrap":io,children:[jsxRuntimeExports.jsx(CodeHighlighter,{lang:no,value:oo,collapsed:!1,showLineNo:so&&!io,darken:ro}),jsxRuntimeExports.jsx("div",{className:copyBtnCls,children:jsxRuntimeExports.jsx(CopyButton,{calcContentForCopy:to})})]})}}const copyBtnCls=mergeStyles$1({position:"absolute",right:"4px",top:"4px",display:"none"}),codeCls=mergeStyles$1(astClasses.code,{position:"relative",display:"block",boxSizing:"border-box",borderRadius:"4px",margin:"0px 0px 1.25em 0px",backgroundColor:"var(--colorBgCode)",[`&:hover > .${copyBtnCls}`]:{display:"inline-block"},'&&[data-wrap="true"] > div':{whiteSpace:"pre-wrap",wordBreak:"keep-all"}}),CodeRenderer=eo=>{const{lang:to}=eo,ro=eo.value.replace(/[\r\n]+$/,""),{viewmodel:no}=useNodeRendererContext(),oo=useStateValue(no.preferCodeWrap$),io=useStateValue(no.showCodeLineno$),ao=useStateValue(no.themeScheme$)==="darken";return jsxRuntimeExports.jsx(CodeRendererInner,{darken:ao,lang:to??"text",value:ro,preferCodeWrap:oo,showCodeLineno:io})};class DeleteRenderer extends React.Component{shouldComponentUpdate(to){return this.props.children!==to.children}render(){const to=this.props.children;return jsxRuntimeExports.jsx("del",{className:cls$9,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:to})})}}const cls$9=mergeStyles$1(astClasses.delete,{marginRight:"4px",color:"var(--colorDelete)",fontStyle:"italic",textDecoration:"line-through"});class EmphasisRenderer extends React.Component{shouldComponentUpdate(to){return this.props.children!==to.children}render(){const to=this.props.children;return jsxRuntimeExports.jsx("em",{className:cls$8,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:to})})}}const cls$8=mergeStyles$1(astClasses.emphasis,{fontStyle:"italic",margin:"0 6px 0 2px"});class HeadingRenderer extends React.Component{shouldComponentUpdate(to){const ro=this.props;return ro.depth!==to.depth||ro.identifier!==to.identifier||ro.children!==to.children||ro.linkIcon!==to.linkIcon}render(){const{depth:to,identifier:ro,children:no,linkIcon:oo="¶"}=this.props,io=ro==null?void 0:encodeURIComponent(ro),so="h"+to,ao=so,lo=mergeStyles$1(astClasses.heading,classes$1.heading,classes$1[so]);return jsxRuntimeExports.jsxs(ao,{id:io,className:lo,children:[jsxRuntimeExports.jsx("p",{className:classes$1.content,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:no})}),ro&&jsxRuntimeExports.jsx("a",{className:classes$1.anchor,href:"#"+io,children:oo})]})}}const anchorCls=mergeStyles$1({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"}}),classes$1=mergeStyleSets({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 .${anchorCls}`]:{opacity:.8,color:"var(--colorLinkActive)"},[`&&:hover .${anchorCls}`]:{opacity:.8,color:"var(--colorLinkHover)"}},anchor:anchorCls,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 ImageRendererInner extends React.Component{shouldComponentUpdate(to){const ro=this.props;return ro.src!==to.src||ro.alt!==to.alt||ro.title!==to.title||ro.srcSet!==to.srcSet||ro.sizes!==to.sizes||ro.loading!==to.loading||ro.className!==to.className}render(){const{src:to,alt:ro,title:no,srcSet:oo,sizes:io,loading:so,className:ao}=this.props;return jsxRuntimeExports.jsxs("figure",{className:`${ao} ${cls$7}`,children:[jsxRuntimeExports.jsx("img",{alt:ro,src:to,title:no,srcSet:oo,sizes:io,loading:so}),no&&jsxRuntimeExports.jsx("figcaption",{children:no})]})}}const cls$7=mergeStyles$1({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)"}}),ImageRenderer=eo=>{const{url:to,alt:ro,title:no,srcSet:oo,sizes:io,loading:so}=eo;return jsxRuntimeExports.jsx(ImageRendererInner,{alt:ro,src:to,title:no,srcSet:oo,sizes:io,loading:so,className:astClasses.image})},ImageReferenceRenderer=eo=>{const{viewmodel:to}=useNodeRendererContext(),ro=useStateValue(to.definitionMap$),{alt:no,srcSet:oo,sizes:io,loading:so}=eo,ao=ro[eo.identifier],lo=(ao==null?void 0:ao.url)??"",uo=ao==null?void 0:ao.title;return jsxRuntimeExports.jsx(ImageRendererInner,{alt:no,src:lo,title:uo,srcSet:oo,sizes:io,loading:so,className:astClasses.imageReference})};class InlineCodeRenderer extends React.Component{shouldComponentUpdate(to){return this.props.value!==to.value}render(){return jsxRuntimeExports.jsx("code",{className:cls$6,children:this.props.value})}}const cls$6=mergeStyles$1(astClasses.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 LinkRendererInner extends React.Component{shouldComponentUpdate(to){const ro=this.props;return ro.url!==to.url||ro.title!==to.title||ro.childNodes!==to.childNodes||ro.className!==to.className}render(){const{url:to,title:ro,childNodes:no,className:oo}=this.props;return jsxRuntimeExports.jsx("a",{className:mergeStyles$1(cls$5,oo),href:to,title:ro,rel:"noopener, noreferrer",target:"_blank",children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:no})})}}const cls$5=mergeStyles$1({padding:"0.2rem 0",color:"var(--colorLink)",textDecoration:"none",background:"linear-gradient(90deg, hsla(358deg, 100%, 62%, 0.8), hsla(048deg, 100%, 50%, 0.8), hsla(196deg, 100%, 53%, 0.8))",backgroundSize:"0 3px",backgroundRepeat:"no-repeat",backgroundPosition:"50% 100%",transition:"all 0.3s ease-in-out","&:active":{color:"var(--colorLinkActive)"},"&&:hover":{color:"var(--colorLinkHover)",backgroundSize:"100% 3px",backgroundPositionX:0},"&:visited":{color:"var(--colorLinkVisited)"}}),LinkRenderer=eo=>{const{url:to,title:ro,children:no}=eo;return jsxRuntimeExports.jsx(LinkRendererInner,{url:to,title:ro,childNodes:no,className:astClasses.link})},LinkReferenceRenderer=eo=>{const{viewmodel:to}=useNodeRendererContext(),no=useStateValue(to.definitionMap$)[eo.identifier],oo=(no==null?void 0:no.url)??"",io=no==null?void 0:no.title;return jsxRuntimeExports.jsx(LinkRendererInner,{url:oo,title:io,childNodes:eo.children,className:astClasses.linkReference})};class ListRenderer extends React.Component{shouldComponentUpdate(to){const ro=this.props;return ro.ordered!==to.ordered||ro.orderType!==to.orderType||ro.start!==to.start||ro.children!==to.children}render(){const{ordered:to,orderType:ro,start:no,children:oo}=this.props;return to?jsxRuntimeExports.jsx("ol",{className:cls$4,type:ro,start:no,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:oo})}):jsxRuntimeExports.jsx("ul",{className:cls$4,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:oo})})}}const cls$4=mergeStyles$1(astClasses.list,{padding:"0px",margin:"0 0 1em 2em",lineHeight:"2","> :last-child":{marginBottom:"0px"}});class ListItemRenderer extends React.Component{shouldComponentUpdate(to){return this.props.children!==to.children}render(){const to=this.props.children;return jsxRuntimeExports.jsx("li",{className:cls$3,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:to})})}}const cls$3=mergeStyles$1(astClasses.listItem,{position:"relative",padding:0,margin:0,"> :last-child":{marginBottom:0}});class ParagraphRenderer extends React.Component{shouldComponentUpdate(to){return this.props.children!==to.children}render(){const to=this.props.children;return to.some(no=>no.type===ImageType$1||no.type===ImageReferenceType)?jsxRuntimeExports.jsx("div",{className:paragraphDisplayCls,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:to})}):jsxRuntimeExports.jsx("p",{className:paragraphCls,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:to})})}}const paragraphCls=mergeStyles$1(astClasses.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}}),paragraphDisplayCls=mergeStyles$1(paragraphCls,{display:"flex",alignItems:"center",justifyContent:"center",padding:"1rem 0",margin:0});class StrongRenderer extends React.Component{shouldComponentUpdate(to){return this.props.children!==to.children}render(){const to=this.props.children;return jsxRuntimeExports.jsx("strong",{className:cls$2,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:to})})}}const cls$2=mergeStyles$1(astClasses.strong,{fontWeight:600});class TableRenderer extends React.Component{shouldComponentUpdate(to){const ro=this.props;return!isEqual(ro.columns,to.columns)||!isEqual(ro.children,to.children)}render(){const{columns:to,children:ro}=this.props,no=to.map(so=>so.align??void 0),[oo,...io]=ro.map(so=>so.children.map((ao,lo)=>jsxRuntimeExports.jsx(NodesRenderer,{nodes:ao.children},lo)));return jsxRuntimeExports.jsxs("table",{className:cls$1,children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsx("tr",{children:oo.map((so,ao)=>jsxRuntimeExports.jsx(Th,{align:no[ao],children:so},ao))})}),jsxRuntimeExports.jsx("tbody",{children:io.map((so,ao)=>jsxRuntimeExports.jsx("tr",{children:so.map((lo,uo)=>jsxRuntimeExports.jsx("td",{align:no[uo],children:lo},uo))},ao))})]})}}class Th extends React.Component{constructor(to){super(to),this.ref={current:null}}shouldComponentUpdate(to){const ro=this.props;return ro.align!==to.align||ro.children!==to.children}render(){const{align:to,children:ro}=this.props;return jsxRuntimeExports.jsx("th",{ref:this.ref,align:to,children:ro})}componentDidMount(){const to=this.ref.current;to&&to.setAttribute("title",to.innerText)}componentDidUpdate(){const to=this.ref.current;to&&to.setAttribute("title",to.innerText)}}const cls$1=mergeStyles$1(astClasses.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 TextRenderer extends React.Component{shouldComponentUpdate(to){return this.props.value!==to.value}render(){return jsxRuntimeExports.jsx(React.Fragment,{children:this.props.value})}}class ThematicBreakRenderer extends React.Component{shouldComponentUpdate(){return!1}render(){return jsxRuntimeExports.jsx("hr",{className:cls})}}const cls=mergeStyles$1(astClasses.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 buildNodeRendererMap(eo){if(eo==null)return defaultNodeRendererMap;let to=!1;const ro={};for(const[no,oo]of Object.entries(eo))oo&&oo!==defaultNodeRendererMap[no]&&(to=!0,ro[no]=oo);return to?{...defaultNodeRendererMap,...ro}:defaultNodeRendererMap}const defaultNodeRendererMap={[BlockquoteType]:BlockquoteRenderer,[BreakType]:BreakRenderer,[CodeType]:CodeRenderer,[DefinitionType]:()=>null,[DeleteType]:DeleteRenderer,[EmphasisType]:EmphasisRenderer,[HeadingType]:HeadingRenderer,[HtmlType]:()=>null,[ImageType$1]:ImageRenderer,[ImageReferenceType]:ImageReferenceRenderer,[InlineCodeType]:InlineCodeRenderer,[LinkType]:LinkRenderer,[LinkReferenceType]:LinkReferenceRenderer,[ListType]:ListRenderer,[ListItemType]:ListItemRenderer,[ParagraphType$1]:ParagraphRenderer,[StrongType]:StrongRenderer,[TableType]:TableRenderer,[TextType$1]:TextRenderer,[ThematicBreakType]:ThematicBreakRenderer,_fallback:function eo(to,ro){return console.warn(`Cannot find render for \`${to.type}\` type node with key \`${ro}\`:`,to),null}},ReactMarkdown=eo=>{const{presetDefinitionMap:to,customizedRendererMap:ro,preferCodeWrap:no=!1,showCodeLineno:oo=!0,text:io,themeScheme:so="lighten",className:ao,style:lo}=eo,uo=React.useMemo(()=>parser$1.parse(io),[io]),co=React.useMemo(()=>calcDefinitionMap(uo).definitionMap,[uo]),[fo]=React.useState(()=>new ReactMarkdownViewModel({definitionMap:{...to,...co},rendererMap:buildNodeRendererMap(ro),preferCodeWrap:no,showCodeLineno:oo,themeScheme:so})),ho=React.useMemo(()=>({viewmodel:fo}),[fo]),po=mergeClasses(rootCls,so==="darken"&&astClasses.rootDarken,ao);return React.useEffect(()=>{fo.preferCodeWrap$.next(no)},[fo,no]),React.useEffect(()=>{fo.showCodeLineno$.next(oo)},[fo,oo]),React.useEffect(()=>{fo.themeScheme$.next(so)},[fo,so]),jsxRuntimeExports.jsx("div",{className:po,style:lo,children:jsxRuntimeExports.jsx(NodeRendererContextType.Provider,{value:ho,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:uo.children})})})},rootCls=mergeStyles$1(astClasses.root,{wordBreak:"break-all",userSelect:"unset",[astClasses.listItem]:{[`> ${astClasses.list}`]:{marginLeft:"1.2em"}},"> :last-child":{marginBottom:0}}),BasicViewer=({styles:eo,showEmpty:to,emptyRender:ro,previewRender:no,rawRender:oo,headerRender:io})=>{const so=useClasses$k(),[ao,lo]=reactExports.useState("preview"),uo=reactExports.useCallback(fo=>{lo(fo)},[]),co=useLocStrings();return to?ro?ro():jsxRuntimeExports.jsx(MessageBar,{intent:"info",children:co["No content"]}):jsxRuntimeExports.jsxs("div",{className:eo==null?void 0:eo.root,children:[oo&&jsxRuntimeExports.jsxs("div",{className:so.header,children:[jsxRuntimeExports.jsx("div",{style:{flex:1,overflow:"hidden"},children:io==null?void 0:io()}),jsxRuntimeExports.jsx("div",{className:so.groupWrapper,children:jsxRuntimeExports.jsxs("div",{className:so.buttonGroup,children:[jsxRuntimeExports.jsx(Button$2,{value:"preview",size:"small",appearance:ao==="preview"?void 0:"transparent",onClick:()=>uo("preview"),children:co.Preview}),jsxRuntimeExports.jsx(Button$2,{value:"raw",size:"small",appearance:ao==="raw"?void 0:"transparent",onClick:()=>uo("raw"),children:co.Raw})]})})]}),ao==="preview"||!oo?no():null,ao==="raw"&&oo?oo():null]})},useClasses$k=makeStyles({header:{display:"flex",alignItems:"center",marginBottom:"12px"},groupWrapper:{display:"flex",flexDirection:"row-reverse"},buttonGroup:{display:"inline-flex",...shorthands.borderRadius("5px"),backgroundColor:tokens.colorNeutralBackground5}}),MarkdownViewer=({content:eo})=>{const to=useStyles$g();return jsxRuntimeExports.jsx(BasicViewer,{styles:to,showEmpty:!eo,previewRender:()=>jsxRuntimeExports.jsx(ReactMarkdown,{text:`${eo}`}),rawRender:()=>jsxRuntimeExports.jsx("div",{style:{marginTop:6},children:`${eo}`})})},useStyles$g=makeStyles({root:{wordBreak:"break-all",whiteSpace:"break-spaces",...shorthands.overflow("auto")}}),EmbeddingNodeInfo=()=>{var lo,uo,co;const eo=useSelectedSpan(),to=((lo=eo==null?void 0:eo.attributes)==null?void 0:lo["llm.response.model"])??((uo=eo==null?void 0:eo.attributes)==null?void 0:uo["embedding.model"]),ro=useLocStrings(),[no,oo]=reactExports.useState(ViewStatus.loading),io=useLoadSpanEvents(eo,BuildInEventName["embedding.embeddings"]),so=useSpanEventsWithPayload(eo,BuildInEventName["embedding.embeddings"]);let ao=JSON.parse(((co=eo==null?void 0:eo.attributes)==null?void 0:co["embedding.embeddings"])??"[]")??[];return so.length>0&&(ao=so.map(fo=>(fo==null?void 0:fo.attributes)??[]).flat()),reactExports.useEffect(()=>{io({onCompleted:fo=>{oo(fo?ViewStatus.error:ViewStatus.loaded)}})},[]),no===ViewStatus.loading?jsxRuntimeExports.jsx("div",{style:{marginTop:"30vh"},children:jsxRuntimeExports.jsx(Spinner,{size:"tiny"})}):no===ViewStatus.error?jsxRuntimeExports.jsx("div",{style:{marginTop:"30vh",textAlign:"center"},children:jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{oo(ViewStatus.loading),io({onCompleted:fo=>{oo(fo?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})}):jsxRuntimeExports.jsxs(Card,{children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("span",{children:to})}),ao.map((fo,ho)=>jsxRuntimeExports.jsxs(Card,{children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("i",{children:ro.Embedded_text})}),fo["embedding.text"]?jsxRuntimeExports.jsx(MarkdownViewer,{content:fo["embedding.text"]}):null]},ho))]})},CollapsibleTextArea=({children:eo})=>{const[to,ro]=reactExports.useState(!0),no=useClasses$j();return jsxRuntimeExports.jsxs("div",{className:no.wrapper,children:[jsxRuntimeExports.jsx(Button$2,{icon:to?jsxRuntimeExports.jsx(TextWrapOff16Regular,{}):jsxRuntimeExports.jsx(TextWrap16Regular,{}),onClick:()=>ro(!to),size:"small"}),jsxRuntimeExports.jsx("pre",{className:`${to&&no.wrap} ${no.pre}`,children:eo})]})},useClasses$j=makeStyles({wrapper:{width:"95%",height:"100%",paddingLeft:tokens.spacingHorizontalM,color:tokens.colorNeutralForeground1,display:"flex",flexDirection:"column"},wrap:{wordBreak:"break-all",whiteSpace:"pre-wrap"},pre:{marginTop:0}}),ErrorsTab=()=>{var lo;const eo=useClasses$i(),to=useSelectedSpan(),ro=((lo=to==null?void 0:to.events)==null?void 0:lo.filter(uo=>uo.name===BuildInEventName.exception))??[],no=useIsDark(),oo=useLocStrings(),[io,so]=reactExports.useState(ViewStatus.loading),ao=useLoadSpanEvents(to,BuildInEventName.exception);return reactExports.useEffect(()=>{ao({onCompleted:uo=>{so(uo?ViewStatus.error:ViewStatus.loaded)}})},[]),ro.length===0?jsxRuntimeExports.jsxs("div",{className:eo.emptyWrapper,children:[jsxRuntimeExports.jsx(ShieldCheckmark24Regular,{}),jsxRuntimeExports.jsxs(Text$2,{className:eo.emptyText,children:[" ",oo.No_Exception_found]})]}):io===ViewStatus.loading?jsxRuntimeExports.jsx("div",{className:eo.emptyWrapper,children:jsxRuntimeExports.jsx(Spinner,{size:"tiny"})}):io===ViewStatus.error?jsxRuntimeExports.jsx("div",{className:eo.emptyWrapper,children:jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{so(ViewStatus.loading),ao({onCompleted:uo=>{so(uo?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ro.map((uo,co)=>jsxRuntimeExports.jsx(Card,{className:eo.wrapper,children:jsxRuntimeExports.jsx(JsonViewer,{src:uo,collapseStringsAfterLength:1e4,theme:"vscode",dark:no,customizeNode:({node:fo,indexOrName:ho})=>{if(ho==="exception.message"||ho==="exception.stacktrace")return jsxRuntimeExports.jsx(CollapsibleTextArea,{children:fo})}})},co))})},useClasses$i=makeStyles({wrapper:{marginBottom:tokens.spacingVerticalM},emptyWrapper:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%"},emptyText:{paddingTop:tokens.spacingVerticalM}}),useEvaluationTracesListRow=eo=>{const[to,ro]=reactExports.useState([]),no=reactExports.useMemo(()=>{const ao={};return eo.forEach(lo=>{var uo;(uo=lo==null?void 0:lo.context)!=null&&uo.span_id&&(ao[lo.context.span_id]={...lo,children:[],depth:0})}),eo.forEach(lo=>{var uo;if(lo.parent_id&&((uo=lo==null?void 0:lo.context)!=null&&uo.span_id)&&lo.parent_id!==""){const co=ao[lo.parent_id],fo=ao[lo.context.span_id];fo.depth=co.depth+1,co.children.push(fo)}}),Object.values(ao).filter(lo=>!lo.parent_id)},[eo]),oo=reactExports.useCallback(ao=>{if(to.includes(ao)){const uo=findRowById(ao,no);if(!uo)return;const fo=(uo.children?findAllDescendants(uo):[]).map(po=>{var go;return(go=po==null?void 0:po.context)==null?void 0:go.span_id}).filter(po=>po!==void 0),ho=to.filter(po=>po!==ao).filter(po=>!fo.includes(po));ro(ho)}else ro([...to,ao])},[to,no]),io=reactExports.useMemo(()=>{const ao=lo=>lo.reduce((uo,co)=>{var po,go;const ho=((po=co==null?void 0:co.context)!=null&&po.span_id?to.includes((go=co==null?void 0:co.context)==null?void 0:go.span_id):!1)?ao(co.children):[];return[...uo,co,...ho]},[]);return ao(no)},[to,no]),so=reactExports.useCallback(ao=>ao?to.includes(ao):!1,[to]);return{rows:io,toggleSubRows:oo,isRowExpanded:so}},findAllDescendants=eo=>{let to=[...eo.children];return eo.children.forEach(ro=>{to=[...to,...findAllDescendants(ro)]}),to},findRowById=(eo,to)=>{var ro;for(const no of to){if(((ro=no==null?void 0:no.context)==null?void 0:ro.span_id)===eo)return no;const oo=findRowById(eo,no.children);if(oo)return oo}return null},CellExpander=({isExpanded:eo=!1,onToggle:to})=>{const ro=useClasses$h();return jsxRuntimeExports.jsx("div",{className:ro.wrapper,onClick:()=>to&&to(!eo),children:eo?jsxRuntimeExports.jsx(ChevronDown16Filled,{}):jsxRuntimeExports.jsx(ChevronRight16Filled,{})})},useClasses$h=makeStyles({wrapper:{cursor:"pointer",display:"flex"}}),UNDEFINED_VALUE_PLACEHOLDER="N/A",TRACE_POLLING_GAP=6e4,RUNNING_TRACE_POLLING_GAP=3e4,SPAN_POLLING_GAP=3e4,LOCAL_URL_PREFIX="";function KindText({kind:eo}){return jsxRuntimeExports.jsx(Badge$2,{appearance:"outline",size:"medium",children:eo||UNDEFINED_VALUE_PLACEHOLDER})}function TimeText({time:eo}){const to=timeFormat(eo);return jsxRuntimeExports.jsx("time",{children:to})}const CellWrapper=({children:eo})=>{const to=useClasses$g();return jsxRuntimeExports.jsx("div",{className:to.cellWrapper,children:eo})},TextCellWrapper=({children:eo})=>{const to=useClasses$g();return jsxRuntimeExports.jsx("div",{className:to.textCellWrapper,children:jsxRuntimeExports.jsx("p",{className:to.textCellP,children:eo})})},CellSkeleton=({height:eo})=>{const to=useClasses$g();return jsxRuntimeExports.jsx(Skeleton,{className:to.textCellWrapper,children:jsxRuntimeExports.jsx(SkeletonItem,{style:{height:`${eo??20}px`}})})},useClasses$g=makeStyles({cellWrapper:{display:"flex",flexDirection:"row",alignItems:"center",height:"100%"},textCellWrapper:{display:"flex",flexDirection:"row",alignItems:"center",height:"100%",width:"100%"},textCellP:{wordWrap:"break-word",maxWidth:"100%",lineHeight:tokens.lineHeightBase200,fontSize:tokens.fontSizeBase300,maxHeight:"100%",whiteSpace:"normal",...shorthands.padding(tokens.spacingVerticalS,tokens.spacingHorizontalXS)}}),isValidJson=eo=>{if(typeof eo=="string")return!1;try{return JSON.stringify(eo),!0}catch{return!1}},TraceListJsonCell=({jsonObject:eo,isViewDetailEnabled:to=!1})=>{const ro=isValidJson(eo);return jsxRuntimeExports.jsx(CellWrapper,{children:ro?jsxRuntimeExports.jsx(TraceListObjectCell,{object:eo,isViewDetailEnabled:to}):jsxRuntimeExports.jsx(TextCellWrapper,{children:formatText(String(eo))})})},TraceListObjectCell=({object:eo,isViewDetailEnabled:to})=>{const ro=useIsDark();return to?jsxRuntimeExports.jsxs(Dialog,{children:[jsxRuntimeExports.jsx(DialogTrigger,{children:jsxRuntimeExports.jsx("div",{style:{overflow:"hidden",height:"100%",width:"100%",marginTop:"12px",lineHeight:"16px"},children:jsxRuntimeExports.jsx(JsonViewer,{src:eo,enableClipboard:!1,collapsed:1,dark:ro,theme:"vscode"})})}),jsxRuntimeExports.jsx(DialogSurface,{children:jsxRuntimeExports.jsx("div",{style:{height:"800px",width:"800ppx",marginTop:"12px",lineHeight:"16px",overflow:"auto"},children:jsxRuntimeExports.jsx(JsonViewer,{src:eo,enableClipboard:!0,collapseStringsAfterLength:200,dark:ro,theme:"vscode"})})})]}):jsxRuntimeExports.jsx("div",{style:{overflow:"hidden",height:"100%",width:"100%",marginTop:"12px",lineHeight:"16px"},children:jsxRuntimeExports.jsx(JsonViewer,{src:eo,enableClipboard:!1,collapseStringsAfterLength:50,collapsed:1,dark:ro,theme:"vscode"})})},MAX_LENGTH=80;function formatText(eo){return eo.length>MAX_LENGTH?`${eo.slice(0,MAX_LENGTH)}...`:eo}const useClasses$f=makeStyles({grid:{},row:{cursor:"pointer"},nameCell:{color:tokens.colorBrandForeground1,fontWeight:tokens.fontWeightSemibold,":hover":{...shorthands.textDecoration("underline")}},kindCell:{display:"flex",alignItems:"center",justifyContent:"flex-start",height:"100%",...shorthands.gap("4px")}}),EvaluationTracesList=({evaluationSpans:eo,className:to})=>{const ro=useClasses$f(),no=useIsDark(),{rows:oo,toggleSubRows:io,isRowExpanded:so}=useEvaluationTracesListRow(eo),ao=useLocStrings(),lo=useSetSelectedEvaluationTraceId();return jsxRuntimeExports.jsx(DataGrid$1$1,{className:`${mergeStyles$1(ro.grid,to)} ${no?"rdg-dark":"rdg-light"}`,rowClass:()=>ro.row,columns:[{key:"kind",name:ao.Kind,minWidth:150,maxWidth:300,renderCell:({row:uo})=>{var fo,ho,po;const co=((fo=uo==null?void 0:uo.children)==null?void 0:fo.length)>0;return jsxRuntimeExports.jsxs("div",{className:ro.kindCell,style:{paddingLeft:uo.depth*16+(co?0:20)},children:[co&&jsxRuntimeExports.jsx(CellExpander,{isExpanded:so((ho=uo==null?void 0:uo.context)==null?void 0:ho.span_id),onToggle:()=>{var go,vo;(go=uo==null?void 0:uo.context)!=null&&go.span_id&&io((vo=uo==null?void 0:uo.context)==null?void 0:vo.span_id)}}),jsxRuntimeExports.jsx(KindText,{kind:(po=uo.attributes)==null?void 0:po.span_type})]})}},{key:"name",name:ao.Name,minWidth:150,maxWidth:300,renderCell:({row:uo})=>jsxRuntimeExports.jsx(Tooltip,{content:uo.name??"",relationship:"label",children:jsxRuntimeExports.jsx(Link$1,{className:ro.nameCell,title:uo.name,onClick:()=>{var co;lo((co=uo.context)==null?void 0:co.trace_id)},children:uo.name})})},{key:"input",name:ao.Input,minWidth:200,renderCell:({row:uo})=>jsxRuntimeExports.jsx(TraceListJsonCell,{isViewDetailEnabled:!0,jsonObject:getSpanEventPayload(uo,BuildInEventName["function.inputs"])??{}})},{key:"output",name:ao.Output,minWidth:200,renderCell:({row:uo})=>jsxRuntimeExports.jsx(TraceListJsonCell,{isViewDetailEnabled:!0,jsonObject:getSpanEventPayload(uo,BuildInEventName["function.output"])??{}})},{key:"start_time",name:ao.Start_time,minWidth:150,renderCell:({row:uo})=>jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(TimeText,{time:uo.start_time})})},{key:"end_time",name:ao.End_time,minWidth:150,renderCell:({row:uo})=>jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(TimeText,{time:uo.end_time})})},{key:"latency",name:ao.Latency,minWidth:120,renderCell:({row:uo})=>jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(LatencyText,{startTimeISOString:uo.start_time,endTimeISOString:uo.end_time})})},{key:"total_tokens",name:ao.Total_tokens,minWidth:120,renderCell:({row:uo})=>{var co;return jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(TokenText,{token:Number.parseInt(((co=uo.attributes)==null?void 0:co["__computed__.cumulative_token_count.total"])??"0")})})}},{key:"status",name:ao.Status,minWidth:120,renderCell:({row:uo})=>{var co;return jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(StatusText,{statusCode:(co=uo.status)==null?void 0:co.status_code})})}}],rows:oo,headerRowHeight:26,rowHeight:80,defaultColumnOptions:{resizable:!0}})},EvaluationsTab=()=>{var lo,uo,co;const eo=useClasses$e(),to=useEvaluationSpansOfSelectedSpan(),[ro,no]=reactExports.useState((lo=to[0])==null?void 0:lo.evaluationName),oo=((uo=to.find(fo=>fo.evaluationName===ro))==null?void 0:uo.evaluationTraces)??[],io=useSelectedTrace(),so=(io==null?void 0:io.evaluations)??{},ao=((co=so[ro??""])==null?void 0:co.outputs)??{};return jsxRuntimeExports.jsxs(Card,{style:{height:"100%"},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx(TabList,{selectedValue:ro,onTabSelect:(fo,ho)=>{no(ho.value)},children:to.map(fo=>jsxRuntimeExports.jsx(Tab$1,{value:fo.evaluationName,children:fo.evaluationName},fo.evaluationName))})}),jsxRuntimeExports.jsxs("div",{className:eo.wrapper,children:[ro&&so[ro]&&Object.keys(ao).map(fo=>{const ho=ao[fo];return ho?jsxRuntimeExports.jsx(MetricTag,{tag:{name:fo,value:ho}},fo):null}),jsxRuntimeExports.jsx(EvaluationTracesList,{evaluationSpans:oo,className:eo.grid})]})]})},useClasses$e=makeStyles({wrapper:{display:"flex",flexDirection:"column",height:"100%",...shorthands.gap("8px")},grid:{flexGrow:1}}),LLMNodeInvocationParametersTab=()=>{var vo,bo;const eo=useSelectedSpan(),to=useParentSpanOfSelectedSpan(),ro=to==null?void 0:to.attributes,no=useSpanEventsWithPayload(to,BuildInEventName["prompt.template"])[0],oo=no?(vo=no.attributes)==null?void 0:vo["prompt.variables"]:JSON.parse((ro==null?void 0:ro["prompt.variables"])??"{}"),so=useSpanEventsWithPayload(eo,BuildInEventName["function.inputs"])[0]??JSON.parse(((bo=eo==null?void 0:eo.attributes)==null?void 0:bo.inputs)??"{}"),ao=Object.keys(oo??{}),lo={};Object.keys(so).forEach(xo=>{xo!=="messages"&&(ao.includes(xo)||(lo[xo]=so[xo]))});const[uo,co]=reactExports.useState(ViewStatus.loading),fo=useLoadSpanEvents(eo,BuildInEventName["prompt.template"]),[ho,po]=reactExports.useState(ViewStatus.loading),go=useLoadSpanEvents(eo,BuildInEventName["function.inputs"]);return reactExports.useEffect(()=>{fo({onCompleted:xo=>{co(xo?ViewStatus.error:ViewStatus.loaded)}}),go({onCompleted:xo=>{po(xo?ViewStatus.error:ViewStatus.loaded)}})},[]),uo===ViewStatus.loading||ho===ViewStatus.loading?jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Spinner,{})}):uo===ViewStatus.error||ho===ViewStatus.error?jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{co(ViewStatus.loading),fo({onCompleted:xo=>{co(xo?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0}),po(ViewStatus.loading),go({onCompleted:xo=>{po(xo?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})}):jsxRuntimeExports.jsx(LLMNodeInvocationParameters,{invocationParameters:lo})},LLMNodeInvocationParameters=({invocationParameters:eo})=>{const to=useIsDark();return jsxRuntimeExports.jsx(JsonViewer,{src:eo,theme:"vscode",dark:to})};var ChatMessageCategory=(eo=>(eo.System="system",eo.Error="error",eo.Chatbot="chatbot",eo.User="user",eo))(ChatMessageCategory||{}),ChatMessageType=(eo=>(eo.Message="message",eo.SessionSplit="session-split",eo))(ChatMessageType||{}),CopyStatus=(eo=>(eo[eo.PENDING=0]="PENDING",eo[eo.COPYING=1]="COPYING",eo[eo.COPIED=2]="COPIED",eo[eo.FAILED=3]="FAILED",eo))(CopyStatus||{}),ChatboxLocator=(eo=>(eo.MessageBubble="chatbox-message-bubble",eo.MessageContent="chatbox-message-content",eo.MessageList="chatbox-message-list",eo.MessageActionBar="chatbox-message-action-bar",eo))(ChatboxLocator||{}),ChatboxSelector=(eo=>(eo.MessageBubble='[data-chatbox-locator="chatbox-message-bubble"]',eo.MessageContent='[data-chatbox-locator="chatbox-message-content"]',eo.MessageList='[data-chatbox-locator="chatbox-message-list"]',eo.MessageActionBar='[data-chatbox-locator="chatbox-message-action-bar"]',eo))(ChatboxSelector||{});const defaultLocStrings$1={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 ChatboxViewModel{constructor(to){this.calcContentForCopy=fo=>this.calcContentForCopy$.getSnapshot()(fo),this.monitorInputContentChange=fo=>this.inputContentChangeTick$.subscribeStateChange(fo),this.notifyInputContentChange=()=>{this.inputContentChangeTick$.setState(fo=>fo+1)},this.sendMessage=fo=>{const ho=this.editorRef.current;if(!ho){console.log("!!!editorRef is not mounted.");return}const po=fo??ho.getContent(),go=this.sendMessage$.getSnapshot(),bo=this.makeUserMessage$.getSnapshot()(po);this.messages$.setState(xo=>[...xo,bo]),ho.clear(),this.isOthersTyping$.next(!0),go(po,this,bo).then(xo=>{xo!==void 0&&this.messages$.setState(_o=>[..._o,xo])}).finally(()=>{this.isOthersTyping$.next(!1)})},this.setCalcContentForCopy=fo=>{this.calcContentForCopy$.next(fo)},this.setMakeUserMessage=fo=>{this.makeUserMessage$.next(fo)},this.setSendMessage=fo=>{this.sendMessage$.next(fo)},this.sessionSplit=fo=>{const ho={id:uuid_1.v4(),type:ChatMessageType.SessionSplit,history:[{category:ChatMessageCategory.System,from:"system",content:fo??"",timestamp:new Date().toISOString()}]};return this.messages$.setState(po=>[...po,ho]),ho};const{alias:ro="",initialDisabled:no=!1,initialMessages:oo=[],locStrings:io=defaultLocStrings$1,calcContentForCopy:so=fo=>typeof fo.content=="string"?fo.content:JSON.stringify(fo.content),makeUserMessage:ao=fo=>({id:uuid_1.v4(),type:ChatMessageType.Message,history:[{category:ChatMessageCategory.User,from:this.alias$.getSnapshot(),timestamp:new Date().toISOString(),content:fo}]}),sendMessage:lo=async fo=>({id:uuid_1.v4(),type:ChatMessageType.Message,history:[{category:ChatMessageCategory.Chatbot,from:"chatbot",timestamp:new Date().toISOString(),content:fo}]})}=to;this.editorRef={current:null};const uo=new State(0),co=Computed.fromObservables([uo],()=>{var fo;return(fo=this.editorRef.current)==null?void 0:fo.isEmpty()});this.alias$=new State(ro),this.disabled$=new State(no),this.inputContentChangeTick$=uo,this.isEditorEmpty$=co,this.isOthersTyping$=new State(!1),this.locStrings$=new State(io),this.messages$=new State(oo),this.calcContentForCopy$=new State(so),this.makeUserMessage$=new State(ao),this.sendMessage$=new State(lo)}}const viewmodel=new ChatboxViewModel({sendMessage:()=>Promise.resolve({id:Date.now(),type:ChatMessageType.Message,history:[{category:ChatMessageCategory.System,from:"system",timestamp:new Date().toISOString(),content:"sendMessage not implemented!"}]})});React.createContext({viewmodel});function useEventCallback$1(eo){const to=reactExports.useRef(eo);return reactExports.useLayoutEffect(()=>{to.current=eo}),reactExports.useCallback((...ro)=>{const no=to.current;return no(...ro)},[])}function useCopyAction(eo,to){const[ro,no]=React.useState(CopyStatus.PENDING),oo=useEventCallback$3(so=>{if(ro===CopyStatus.PENDING){no(CopyStatus.COPYING);try{const ao=to(so);copy$2(ao),no(CopyStatus.COPIED)}catch{no(CopyStatus.FAILED)}}});return React.useEffect(()=>{if(ro===CopyStatus.COPIED||ro===CopyStatus.FAILED){let so=setTimeout(()=>{so=void 0,no(CopyStatus.PENDING)},1500);return()=>{so&&clearTimeout(so)}}},[ro]),React.useMemo(()=>({key:"copy",group:2,icon:ro===CopyStatus.PENDING?jsxRuntimeExports.jsx(Copy20Regular,{}):jsxRuntimeExports.jsx(CopyArrowRight20Regular,{}),tooltip:jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:eo.CopyToClipboard}),disabled:ro!==CopyStatus.PENDING,onClick:oo,condition:so=>so.category===ChatMessageCategory.Chatbot||so.category===ChatMessageCategory.User||so.category===ChatMessageCategory.Error}),[eo,ro,oo])}makeStyles({copyButton:{cursor:"pointer"}});const defaultUploadPopoverLocStrings={Add:"Add",AddAnImage:"Add an image",PasteImageOrLinkHere:"Paste image or link here",UploadFromThisDevice:"Upload from this device"},ImageView=eo=>{const{src:to,alt:ro,loading:no=!1,width:oo,height:io,styles:so}=eo;return to?no?jsxRuntimeExports.jsx("div",{children:"Loading..."}):jsxRuntimeExports.jsx("div",{className:so==null?void 0:so.root,children:jsxRuntimeExports.jsx("img",{className:so==null?void 0:so.image,src:to,alt:ro,width:oo,height:io})}):jsxRuntimeExports.jsx("div",{children:"This image can not be previewed."})},ImageViewModal=eo=>{const{src:to,alt:ro,visible:no,loading:oo=!1,width:io,height:so,onDismiss:ao}=eo,lo=useStyles$f(),uo=jsxRuntimeExports.jsxs("div",{className:lo.container,children:[jsxRuntimeExports.jsxs("div",{className:lo.header,children:[jsxRuntimeExports.jsx("h2",{className:lo.heading,children:"Preview"}),jsxRuntimeExports.jsx(Button$2,{as:"button",appearance:"transparent",icon:jsxRuntimeExports.jsx(Dismiss24Regular,{}),className:lo.dismissBtn,onClick:ao})]}),jsxRuntimeExports.jsx("div",{className:lo.main,children:jsxRuntimeExports.jsx(ImageView,{src:to,alt:ro,loading:oo,width:io,height:so,styles:{image:lo.image}})})]});return jsxRuntimeExports.jsx(Modal,{isOpen:no,isBlocking:!1,onDismiss:ao,children:uo})},useStyles$f=makeStyles({container:{display:"flex",flexDirection:"column",flexWrap:"nowrap",...shorthands.padding("16px")},header:{...shorthands.flex(0,0,"auto"),display:"flex",flexDirection:"row",flexWrap:"nowrap",justifyContent:"space-between",marginBottom:"20px"},heading:{...shorthands.margin(0),fontWeight:FontWeights.semibold,fontSize:"inherit"},dismissBtn:{"&&":{fontSize:"16px",lineHeight:"16px",height:"16px",width:"16px",color:tokens.colorNeutralStroke1}},main:{...shorthands.overflow("auto"),display:"flex",justifyContent:"center",alignItems:"center"},image:{width:"auto",height:"auto",maxWidth:"60vw",maxHeight:"60vh"}}),IMAGE_WIDTH="48px",MASK_SELECTOR_CLASS_NAME="__MASK_SELECTOR_CLASS_NAME__",UploadPopoverImagePreview=eo=>{const{image:to,alt:ro,isReadonly:no,onClickDelete:oo}=eo,[io,so]=React.useState(!1),ao=useStyles$e(),lo=React.useMemo(()=>{if(to)return typeof to=="string"?to:URL.createObjectURL(to)},[to]),uo=React.useCallback(()=>{so(fo=>!fo)},[]),co=lo||"";return jsxRuntimeExports.jsxs("div",{className:mergeClasses(ao.root,no?ao.readonlyRoot:void 0),children:[jsxRuntimeExports.jsxs("div",{className:ao.imageContainer,children:[jsxRuntimeExports.jsx("img",{decoding:"async",className:ao.image,src:co,alt:ro}),jsxRuntimeExports.jsx("div",{"aria-hidden":!0,className:mergeClasses(ao.mask,MASK_SELECTOR_CLASS_NAME),onClick:uo,role:"button",children:jsxRuntimeExports.jsx(ZoomIn20Regular,{})})]}),!no&&jsxRuntimeExports.jsx(Button$2,{as:"button",className:ao.closeButton,icon:jsxRuntimeExports.jsx(Dismiss20Regular,{}),onClick:oo}),jsxRuntimeExports.jsx(ImageViewModal,{src:co,alt:ro||"",visible:io,onDismiss:uo})]})},useStyles$e=makeStyles({root:{boxSizing:"border-box",display:"flex",height:"32px",width:"80px",...shorthands.border("1px","solid",tokens.colorNeutralStroke2),...shorthands.borderRadius("4px")},readonlyRoot:{width:"48px"},imageContainer:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",width:IMAGE_WIDTH,[`:hover .${MASK_SELECTOR_CLASS_NAME}`]:{visibility:"visible"}},image:{maxWidth:"100%",maxHeight:"100%",width:"auto",height:"auto"},mask:{visibility:"hidden",cursor:"pointer",position:"absolute",top:0,left:0,width:`calc(${IMAGE_WIDTH} - 2px)`,height:"100%",backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",color:tokens.colorNeutralForegroundStaticInverted,...shorthands.borderRadius("4px",0,0,"4px")},closeButton:{width:"32px",...shorthands.border(0)}}),UploadPopoverTrigger=React.forwardRef((eo,to)=>jsxRuntimeExports.jsx(Button$2,{...eo,ref:to,as:"button",appearance:"transparent",size:"medium",icon:jsxRuntimeExports.jsx(Attach16Regular,{})}));UploadPopoverTrigger.displayName="UploadPopoverTrigger";const mergeStyleSlots=(eo,...to)=>{const ro={...eo};for(const no of Object.keys(eo))ro[no]=mergeClasses(eo[no],...to.map(oo=>oo==null?void 0:oo[no]));return ro},UploadPopover=React.forwardRef(({isUploading:eo,disabled:to,trigger:ro=jsxRuntimeExports.jsx(UploadPopoverTrigger,{}),locStrings:no=defaultUploadPopoverLocStrings,styles:oo,events:io,onUpload:so,onRenderImagePreview:ao},lo)=>{const uo=mergeStyleSlots(useStyles$d(),oo),{onDelete:co,onInputBlur:fo,onPaste:ho,onLocalUpload:po}=io??{};React.useImperativeHandle(lo,()=>({open(){vo(!0)},close(){vo(!1)},reset:()=>{wo()},retrieve:()=>_o}));const[go,vo]=React.useState(!1),[bo,xo]=React.useState(""),[_o,Eo]=React.useState(void 0),So=React.useRef(null),To=React.useCallback((Mo,Do)=>{vo(Do.open||!1)},[]),wo=React.useCallback(()=>{xo(""),Eo(void 0),So.current&&(So.current.value="")},[]),Co=React.useCallback(Mo=>{const Do=Mo[0];Eo(Do),ho==null||ho(Do)},[ho]),Oo=React.useCallback(Mo=>{Mo.clipboardData.files&&Co&&Co(Mo.clipboardData.files)},[Co]),Ao=React.useCallback(()=>{fo==null||fo(bo),Eo(bo)},[bo,fo]),Ro=React.useCallback(()=>{_o&&so(_o)},[_o,so]),No=React.useMemo(()=>ao?ao({cachedImage:_o,customerInputContent:bo,isReadonly:to||eo||!1}):jsxRuntimeExports.jsx(UploadPopoverImagePreview,{image:_o||bo,alt:bo||"",isReadonly:eo,onClickDelete:()=>{wo(),co==null||co()}}),[bo,_o,wo,to,eo,co,ao]);return jsxRuntimeExports.jsxs(Popover,{positioning:"above-end",open:go,onOpenChange:To,children:[jsxRuntimeExports.jsx(PopoverTrigger,{disableButtonEnhancement:!0,children:ro}),jsxRuntimeExports.jsxs(PopoverSurface,{className:uo.attachUploadPopover,children:[jsxRuntimeExports.jsxs("div",{className:uo.attachUploadHeader,children:[jsxRuntimeExports.jsx("span",{children:no.AddAnImage}),jsxRuntimeExports.jsx(Button$2,{as:"button",disabled:to,appearance:"transparent",icon:jsxRuntimeExports.jsx(Dismiss24Regular,{}),onClick:()=>{vo(!1)}})]}),jsxRuntimeExports.jsxs("div",{className:uo.attachUploadInputWrapper,children:[_o?No:jsxRuntimeExports.jsx(Input,{className:uo.attachUploadInput,value:bo,disabled:to,placeholder:no.PasteImageOrLinkHere,onChange:(Mo,Do)=>{Eo(void 0),xo(Do.value)},onPaste:Oo,onBlur:Ao}),jsxRuntimeExports.jsx(Button$2,{as:"button",disabled:to||eo||!_o&&!bo,className:uo.addButton,onClick:Ro,children:eo?jsxRuntimeExports.jsx(Spinner,{size:"tiny"}):no.Add})]}),jsxRuntimeExports.jsx("input",{tabIndex:-1,"aria-hidden":!0,ref:So,disabled:to,className:uo.invisibleFileInput,onChange:Mo=>{var jo;const Do=(jo=Mo.target.files)==null?void 0:jo[0];Do&&(po==null||po(Do)),Eo(Do)},type:"file",accept:"image/*"}),jsxRuntimeExports.jsx("div",{className:uo.triggerUploadButton,children:jsxRuntimeExports.jsx(Button$2,{as:"button",disabled:to,appearance:"transparent",icon:jsxRuntimeExports.jsx(ArrowUpload24Regular,{}),onClick:()=>{var Mo;(Mo=So.current)==null||Mo.click()},children:no.UploadFromThisDevice})})]})]})});UploadPopover.displayName="UploadPopover";const useStyles$d=makeStyles({attachUploadPopover:{width:"400px",backgroundColor:tokens.colorNeutralBackground1,...shorthands.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"},invisibleFileInput:{display:"none"},triggerUploadButton:{marginTop:"8px",display:"flex",justifyContent:"space-between"}});function DefaultMessageContentRenderer(eo){const{content:to,className:ro}=eo,no=useStyles$c(),oo=mergeClasses(no.content,ro);if(typeof to=="string")return jsxRuntimeExports.jsx("p",{className:oo,children:to});const io=JSON.stringify(to,null,2);return jsxRuntimeExports.jsx("pre",{className:oo,children:io})}DefaultMessageContentRenderer.displayName="DefaultMessageContentRenderer";const useStyles$c=makeStyles({content:{...shorthands.overflow("auto"),wordBreak:"break-all",whiteSpace:"break-spaces"}});function DefaultMessageErrorRenderer(eo){const{error:to,locStrings:ro,className:no}=eo,[oo,io]=React.useState(!1),so=useStyles$b(),ao=mergeClasses(so.errorMessageDetail,!oo&&so.errorMessageDetailHidden,no);return jsxRuntimeExports.jsxs(React.Fragment,{children:[jsxRuntimeExports.jsx("p",{children:jsxRuntimeExports.jsx(Link$1,{onClick:()=>io(lo=>!lo),children:oo?ro.MessageError_HideDetail:ro.MessageError_ShowDetail})}),jsxRuntimeExports.jsx("p",{className:ao,children:to})]})}DefaultMessageErrorRenderer.displayName="DefaultMessageErrorRenderer";const useStyles$b=makeStyles({errorMessageDetail:{...shorthands.margin("0","0","0","0"),wordBreak:"break-word",whiteSpace:"break-spaces"},errorMessageDetailHidden:{display:"none"}}),useToolbarDefaultActions=()=>React.useMemo(()=>[],[]);function DefaultMessageActionBarRenderer(eo){const{useMessageActions:to=useToolbarDefaultActions,data:ro,className:no}=eo,oo=to(ro),io=useStyles$a(),so=React.useMemo(()=>{const uo=oo.filter(fo=>!fo.condition||fo.condition(ro)).sort((fo,ho)=>fo.group-ho.group),co=[];for(let fo=0,ho;fo0))return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const lo=[];for(let uo=0;uobo(ro)},ho)},ho))}uo+1{ro>0&&oo(ro-1)},ao=()=>{ro=Fo?jo:""+Array(Fo+1-Lo.length).join($o)+jo},So={s:Eo,z:function(jo){var Fo=-jo.utcOffset(),$o=Math.abs(Fo),Lo=Math.floor($o/60),Ho=$o%60;return(Fo<=0?"+":"-")+Eo(Lo,2,"0")+":"+Eo(Ho,2,"0")},m:function jo(Fo,$o){if(Fo.date()<$o.date())return-jo($o,Fo);var Lo=12*($o.year()-Fo.year())+($o.month()-Fo.month()),Ho=Fo.clone().add(Lo,fo),qo=$o-Ho<0,Uo=Fo.clone().add(Lo+(qo?-1:1),fo);return+(-(Lo+($o-Ho)/(qo?Ho-Uo:Uo-Ho))||0)},a:function(jo){return jo<0?Math.ceil(jo)||0:Math.floor(jo)},p:function(jo){return{M:fo,y:po,w:co,d:uo,D:go,h:lo,m:ao,s:so,ms:io,Q:ho}[jo]||String(jo||"").toLowerCase().replace(/s$/,"")},u:function(jo){return jo===void 0}},To="en",wo={};wo[To]=_o;var Co="$isDayjsObject",Oo=function(jo){return jo instanceof Mo||!(!jo||!jo[Co])},Ao=function jo(Fo,$o,Lo){var Ho;if(!Fo)return To;if(typeof Fo=="string"){var qo=Fo.toLowerCase();wo[qo]&&(Ho=qo),$o&&(wo[qo]=$o,Ho=qo);var Uo=Fo.split("-");if(!Ho&&Uo.length>1)return jo(Uo[0])}else{var Yo=Fo.name;wo[Yo]=Fo,Ho=Yo}return!Lo&&Ho&&(To=Ho),Ho||!Lo&&To},Ro=function(jo,Fo){if(Oo(jo))return jo.clone();var $o=typeof Fo=="object"?Fo:{};return $o.date=jo,$o.args=arguments,new Mo($o)},No=So;No.l=Ao,No.i=Oo,No.w=function(jo,Fo){return Ro(jo,{locale:Fo.$L,utc:Fo.$u,x:Fo.$x,$offset:Fo.$offset})};var Mo=function(){function jo($o){this.$L=Ao($o.locale,null,!0),this.parse($o),this.$x=this.$x||$o.x||{},this[Co]=!0}var Fo=jo.prototype;return Fo.parse=function($o){this.$d=function(Lo){var Ho=Lo.date,qo=Lo.utc;if(Ho===null)return new Date(NaN);if(No.u(Ho))return new Date;if(Ho instanceof Date)return new Date(Ho);if(typeof Ho=="string"&&!/Z$/i.test(Ho)){var Uo=Ho.match(bo);if(Uo){var Yo=Uo[2]-1||0,Zo=(Uo[7]||"0").substring(0,3);return qo?new Date(Date.UTC(Uo[1],Yo,Uo[3]||1,Uo[4]||0,Uo[5]||0,Uo[6]||0,Zo)):new Date(Uo[1],Yo,Uo[3]||1,Uo[4]||0,Uo[5]||0,Uo[6]||0,Zo)}}return new Date(Ho)}($o),this.init()},Fo.init=function(){var $o=this.$d;this.$y=$o.getFullYear(),this.$M=$o.getMonth(),this.$D=$o.getDate(),this.$W=$o.getDay(),this.$H=$o.getHours(),this.$m=$o.getMinutes(),this.$s=$o.getSeconds(),this.$ms=$o.getMilliseconds()},Fo.$utils=function(){return No},Fo.isValid=function(){return this.$d.toString()!==vo},Fo.isSame=function($o,Lo){var Ho=Ro($o);return this.startOf(Lo)<=Ho&&Ho<=this.endOf(Lo)},Fo.isAfter=function($o,Lo){return Ro($o){const{duration:to,tokens:ro,locStrings:no,className:oo}=eo,io=to.toFixed(2).replace(/\.?0*$/,"");return jsxRuntimeExports.jsxs("div",{className:oo,children:[ro>0&&jsxRuntimeExports.jsxs(React.Fragment,{children:[`${no.MessageStatus_TokensDesc}: `,jsxRuntimeExports.jsx("b",{children:ro}),` ${no.MessageStatus_TokensUint}, `]}),`${ro>0?no.MessageStatus_TimeSpentDesc:no.MessageStatus_TimeSpentDscCapitalized}: `,jsxRuntimeExports.jsx("b",{children:io}),` ${no.MessageStatus_TimeSpent_Unit}`]})};DefaultMessageStatusRenderer.displayName="DefaultMessageStatusRenderer";const EMPTY_CONTEXTUAL_MENU_ITEMS$1=[],defaultUseContextualMenuItems$1=eo=>EMPTY_CONTEXTUAL_MENU_ITEMS$1;function DefaultMessageBubbleRenderer(eo){const{MessageAvatarRenderer:to,MessageContentRenderer:ro=DefaultMessageContentRenderer,MessageErrorRenderer:no=DefaultMessageErrorRenderer,MessageSenderRenderer:oo=DefaultMessageSenderRenderer,MessagePaginationRenderer:io=DefaultMessagePaginationRenderer,MessageActionBarRenderer:so=DefaultMessageActionBarRenderer,MessageStatusRenderer:ao=DefaultMessageStatusRenderer,useMessageContextualMenuItems:lo=defaultUseContextualMenuItems$1,useMessageActions:uo,initialPage:co=-1,locStrings:fo,message:ho,className:po}=eo,go=useStyles$8(),[vo,bo]=React.useState((co%ho.history.length+ho.history.length)%ho.history.length),[xo,_o]=React.useState(!1),Eo=React.useRef(null),So=React.useRef(null),To=React.useCallback(()=>{_o(!1)},[]),wo=React.useCallback(No=>{const Mo=Eo.current,Do=So.current;if(Mo&&Do){const jo=No.clientX,Fo=No.clientY,$o=Mo.getBoundingClientRect(),Lo=$o.left+window.scrollX,Ho=$o.top+window.scrollY,qo=jo-Lo,Uo=Fo-Ho;Do.style.left=`${qo}px`,Do.style.top=`${Uo}px`}},[]),Co=React.useCallback(No=>{No.preventDefault(),wo(No),_o(!0)},[]),Oo=ho.history[vo],Ao=Oo.category===ChatMessageCategory.User?"right":"left",Ro=lo(Oo);return React.useEffect(()=>{const No=()=>{_o(!1)};return document.addEventListener("mousedown",No),()=>document.removeEventListener("mousedown",No)},[]),jsxRuntimeExports.jsx("div",{className:go.container,"data-chatbox-locator":ChatboxLocator.MessageBubble,"data-position":Ao,children:jsxRuntimeExports.jsxs("div",{className:mergeClasses(go.message,po),"data-position":Ao,children:[jsxRuntimeExports.jsx("div",{className:go.avatar,children:to&&jsxRuntimeExports.jsx(to,{data:Oo,position:Ao})}),jsxRuntimeExports.jsxs("div",{className:go.main,children:[jsxRuntimeExports.jsx("div",{className:go.sender,children:jsxRuntimeExports.jsx(oo,{data:Oo,position:Ao})}),jsxRuntimeExports.jsxs("div",{ref:Eo,className:go.content,"data-category":Oo.category,"data-chatbox-locator":ChatboxLocator.MessageContent,onContextMenu:Co,onClick:wo,children:[jsxRuntimeExports.jsx(ro,{content:Oo.content,className:go.contentMain}),Oo.error&&jsxRuntimeExports.jsx(no,{error:Oo.error,locStrings:fo,className:go.error}),typeof Oo.duration=="number"&&typeof Oo.tokens=="number"&&jsxRuntimeExports.jsx(ao,{duration:Oo.duration,tokens:Oo.tokens,locStrings:fo,className:go.status}),ho.history.length>1&&jsxRuntimeExports.jsx(io,{className:go.pagination,message:ho,current:vo,setCurrent:bo}),jsxRuntimeExports.jsx("div",{ref:So,className:go.contentMenuAnchor}),Ro.length>0&&jsxRuntimeExports.jsx(ContextualMenu,{items:Ro,hidden:!xo,target:So,onItemClick:To,onDismiss:To,className:go.contextualMenu}),jsxRuntimeExports.jsx("div",{className:go.actionBar,"data-chatbox-locator":ChatboxLocator.MessageActionBar,children:jsxRuntimeExports.jsx(so,{data:Oo,locStrings:fo,useMessageActions:uo})})]})]})]})})}DefaultMessageBubbleRenderer.displayName="DefaultMessageBubbleRenderer";const useStyles$8=makeStyles({container:{...shorthands.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:{...shorthands.flex(0,0,"auto")},main:{...shorthands.flex(1,1,"auto"),display:"flex",flexDirection:"column",width:"100%"},sender:{...shorthands.flex(0,0,"auto")},content:{...shorthands.flex(1,1,"auto"),...shorthands.borderRadius("4px"),position:"relative",boxSizing:"border-box",minWidth:"48px",wordBreak:"break-word",lineHeight:"22px","> p":{...shorthands.margin(0)},[`&:hover > ${ChatboxSelector.MessageActionBar}`]:{display:"flex",visibility:"visible"},[`&&[data-category="${ChatMessageCategory.System}"]`]:{color:tokens.colorNeutralForeground4},[`&&[data-category="${ChatMessageCategory.Error}"]`]:{backgroundColor:tokens.colorPaletteRedBackground2,color:tokens.colorNeutralForeground1},[`&&[data-category="${ChatMessageCategory.Chatbot}"]`]:{backgroundColor:tokens.colorNeutralBackground4,color:tokens.colorNeutralForeground1},[`&&[data-category="${ChatMessageCategory.User}"]`]:{backgroundColor:tokens.colorBrandBackground2,color:tokens.colorNeutralForeground1}},contentMain:{...shorthands.padding("12px","20px","12px","12px")},contextualMenu:{width:"auto",minWidth:"180px"},contentMenuAnchor:{position:"absolute",top:"0px",left:"0px"},error:{...shorthands.borderTop("1px","solid",tokens.colorPaletteDarkRedBorderActive),marginTop:"8px !important",paddingTop:"8px"},pagination:{},status:{...shorthands.borderTop("1px","solid",tokens.colorNeutralStroke1),...shorthands.padding("0px","20px","0px","12px"),fontSize:"12px",fontStyle:"italic"},actionBar:{position:"absolute",right:"0px",top:"-32px",display:"none",justifyContent:"space-between"}});function DefaultSessionSplitRenderer(eo){const{locStrings:to,className:ro}=eo,no=useStyles$7();return jsxRuntimeExports.jsx("div",{className:mergeClasses(no.sessionSplit,ro),children:jsxRuntimeExports.jsxs("span",{children:["--- ",to.SessionSplit_Desc," ---"]})})}DefaultSessionSplitRenderer.displayName="DefaultSessionSplitRenderer";const useStyles$7=makeStyles({sessionSplit:{display:"flex",justifyContent:"center",height:"24px",color:tokens.colorNeutralForeground4}});makeStyles({hintTyping:{...shorthands.overflow("hidden"),width:"1px",height:"1px"},typingDots:{...shorthands.transition("opacity","0.1s"),display:"flex",alignItems:"center",height:"22.5px"},typingDot:{...shorthands.borderRadius("50%"),...shorthands.margin("0","0","0","6px"),display:"inline-block",width:"6px",height:"6px",backgroundColor:tokens.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)":{...shorthands.margin("0px")},"&:nth-child(2)":{animationDelay:"0.18s"},"&:nth-child(3)":{animationDelay:"0.36s"}}});makeStyles({toolbar:{display:"flex",justifyContent:"flex-end"}});makeStyles({input:{...shorthands.border("1px","solid",tokens.colorNeutralBackground5),...shorthands.borderRadius("4px"),boxSizing:"border-box",display:"grid",gridTemplateRows:"1fr auto"},editor:{boxSizing:"border-box"},editorInner:{...shorthands.border("0px"),boxSizing:"border-box"},editorToolbar:{boxSizing:"border-box",display:"flex",alignItems:"flex-end",justifyContent:"flex-end",height:"100%"}});function MessageListRenderer(eo){const{MessageAvatarRenderer:to,MessageContentRenderer:ro,MessageErrorRenderer:no,MessageSenderRenderer:oo,MessageBubbleRenderer:io=DefaultMessageBubbleRenderer,SessionSplitRenderer:so=DefaultSessionSplitRenderer,className:ao,bubbleClassName:lo,sessionSplitClassName:uo,locStrings:co,messages:fo,useMessageContextualMenuItems:ho,useMessageActions:po}=eo,go=useStyles$6();return jsxRuntimeExports.jsx("div",{className:mergeClasses(go.container,ao),"data-chatbox-locator":ChatboxLocator.MessageList,children:fo.map(vo=>{switch(vo.type){case ChatMessageType.Message:return jsxRuntimeExports.jsx(io,{MessageAvatarRenderer:to,MessageContentRenderer:ro,MessageErrorRenderer:no,MessageSenderRenderer:oo,locStrings:co,message:vo,className:lo,useMessageContextualMenuItems:ho,useMessageActions:po},vo.id);case ChatMessageType.SessionSplit:return jsxRuntimeExports.jsx(so,{locStrings:co,className:uo},vo.id);default:return jsxRuntimeExports.jsx(React.Fragment,{},vo.id)}})})}MessageListRenderer.displayName="MessageListRenderer";const useStyles$6=makeStyles({container:{boxSizing:"border-box"}}),nv=class nv extends React.PureComponent{render(){const{elements:to,deltaH:ro,deltaW:no,scaleH:oo,scaleW:io,className:so,elementClassName:ao}=this.props;return jsxRuntimeExports.jsx("div",{className:so,children:to.map((lo,uo)=>{const co=(lo.top-ro)*oo,fo=(lo.left-no)*io,ho=lo.height*oo,po=lo.width*io,go={top:co,left:fo,height:ho,width:po};return lo.backgroundColor&&(go.backgroundColor=lo.backgroundColor),jsxRuntimeExports.jsx("div",{className:ao,style:go},uo)})})}};nv.displayName="MinimapOverview";let MinimapOverview=nv;const MinimapViewport=eo=>{const{scaleH:to,sourceRootRef:ro,sourceQuerySelector:no,className:oo}=eo,[io,so]=React.useState(0),[ao,lo]=React.useState(0),uo=useStyles$5();return React.useLayoutEffect(()=>{var po,go;const co=(go=(po=ro.current)==null?void 0:po.querySelector(no))==null?void 0:go.parentElement;if(!co)return()=>{};const{height:fo}=co.getBoundingClientRect();lo(fo);const ho=()=>{so(co.scrollTop||0)};return co.addEventListener("scroll",ho),()=>co.removeEventListener("scroll",ho)},[ro.current]),jsxRuntimeExports.jsx("div",{className:mergeClasses(uo.viewport,oo),style:{position:"absolute",top:io*to,height:`${ao*to}px`}})};MinimapViewport.displayName="MinimapViewport";const useStyles$5=makeStyles({viewport:{display:"block",width:"100%",left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.15)"}}),Minimap=eo=>{const{SCROLL_DELTA_THRESHOLD:to=5,syncScale:ro=!0,sourceRootRef:no,sourceQuerySelector:oo,sourceElementQuerySelector:io,className:so,overviewClassName:ao,overviewElementClassName:lo,viewportClassName:uo,style:co}=eo,[fo,ho]=React.useState([]),[po,go]=React.useState(0),[vo,bo]=React.useState(0),[xo,_o]=React.useState(0),[Eo,So]=React.useState(0),[To,wo]=React.useState(0),[Co,Oo]=React.useState(0),[Ao,Ro]=React.useState(0),[No,Mo]=React.useState(0),Do=Eo<=0?0:vo/Eo||.1,jo=xo<=0?0:ro?Math.max(1/xo,Math.min(Do,(po-10)/xo||.1)):Math.max(1/xo,(po-10)/xo||.1),Fo=React.useRef(null),$o=React.useRef(null),Lo=React.useRef(!1),Ho=useEventCallback$1(Ss=>{var Ns,ws;if(Ss.preventDefault(),Ss.stopPropagation(),Lo.current=!0,!$o.current)return;const As=(ws=(Ns=no.current)==null?void 0:Ns.querySelector(oo))==null?void 0:ws.parentElement;if(As){const Jo=(Ss.clientY-$o.current.getBoundingClientRect().top)/jo;Math.abs(As.scrollTop-Jo)>to&&(As.scrollTop=Jo)}}),qo=useEventCallback$1(Ss=>{var Ns,ws;if(Ss.preventDefault(),Ss.stopPropagation(),!Lo.current||!$o.current)return;const As=(ws=(Ns=no.current)==null?void 0:Ns.querySelector(oo))==null?void 0:ws.parentElement;if(As){const Jo=(Ss.clientY-$o.current.getBoundingClientRect().top)/jo;Math.abs(As.scrollTop-Jo)>to&&(As.scrollTop=Jo)}}),Uo=React.useCallback(Ss=>{const As=Ss.querySelector(oo);if(!As)return;const Ns=As.querySelectorAll(io),ws=[];for(let Jo=0;Jo{const Ss=()=>{Lo.current=!1};return document.addEventListener("mouseup",Ss),()=>document.removeEventListener("mouseup",Ss)},[]),React.useLayoutEffect(()=>{const Ss=Fo.current;if(!Ss)return;const{height:As,width:Ns}=Ss.getBoundingClientRect();go(As),bo(Ns)},[]),React.useLayoutEffect(()=>{const Ss=no.current;if(!Ss)return()=>{};Uo(Ss);const As=new MutationObserver(Ns=>{for(const ws of Ns)ws.type==="childList"&&Uo(Ss)});return As.observe(Ss,{childList:!0,subtree:!0}),()=>{As.disconnect()}},[no.current,Uo]);const Yo=useStyles$4(),Zo=xo+To-Ao,_s=Eo+Co-No;return jsxRuntimeExports.jsx("div",{ref:Fo,className:mergeClasses(Yo.container,so),style:co,children:jsxRuntimeExports.jsxs("div",{ref:$o,className:Yo.minimap,onMouseDown:Ho,onMouseMove:qo,children:[jsxRuntimeExports.jsx(MinimapOverview,{elements:fo,deltaH:Zo,deltaW:_s,scaleH:jo,scaleW:Do,className:mergeClasses(Yo.overview,ao),elementClassName:mergeClasses(Yo.minimapElement,lo)}),jsxRuntimeExports.jsx(MinimapViewport,{scaleH:jo,sourceRootRef:no,sourceQuerySelector:oo,className:uo})]})})};Minimap.displayName="Minimap";const useStyles$4=makeStyles({container:{height:"100%",width:"100%",...shorthands.overflow("hidden")},minimap:{position:"relative",width:"100%",height:"100%"},overview:{},minimapElement:{position:"absolute",backgroundColor:"#c292f9"}});makeStyles({editor:{...shorthands.padding("8px"),...shorthands.border("1px","solid",tokens.colorNeutralBackground5),...shorthands.borderRadius("4px"),boxSizing:"border-box",display:"block",width:"100%",userSelect:"none",position:"relative",'&[data-disabled="true"]':{backgroundColor:tokens.colorNeutralBackgroundDisabled}},textarea:{...shorthands.padding("0px"),...shorthands.overflow("hidden","auto"),...shorthands.borderWidth(0),...shorthands.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:tokens.colorNeutralForeground1,userSelect:"text"}});function e$1(eo){return{}}const t$4={},n$2={},r$1={},i$3={},s$2={},o$5={},l$3={},c$5={},u$5={},a$4={},f$4={},d$4={},h$3={},g$6={},_$5={},p$4={},y$4={},m$5={},x$5={},v$3={},T$3={},S$4={},k$2={},C$5={},b$2={},N$3={},w$3={},E$4={},P$3={},D$2={},I$1={},O$2={},A$3={},L$2={},F$1={},M$3={},W={},z$1={},B$2={},R$2={},K$2={},J={},U={},V={},$$1={};var H$1=function(eo){const to=new URLSearchParams;to.append("code",eo);for(let ro=1;roOe;try{Vi(eo,()=>{const oo=fi()||function(ho){return ho.getEditorState().read(()=>{const po=fi();return po!==null?po.clone():null})}(eo),io=new Map,so=eo.getRootElement(),ao=eo._editorState,lo=eo._blockCursorElement;let uo=!1,co="";for(let ho=0;ho0){let So=0;for(let To=0;To0)for(const[ho,po]of io)if(qi(po)){const go=po.getChildrenKeys();let vo=ho.firstChild;for(let bo=0;bo0){for(let ho=0;ho{Be(eo,to,ro)})}function Je(eo,to){const ro=eo.__mode,no=eo.__format,oo=eo.__style,io=to.__mode,so=to.__format,ao=to.__style;return!(ro!==null&&ro!==io||no!==null&&no!==so||oo!==null&&oo!==ao)}function Ue(eo,to){const ro=eo.mergeWithSibling(to),no=Oi()._normalizedNodes;return no.add(eo.__key),no.add(to.__key),ro}function Ve(eo){let to,ro,no=eo;if(no.__text!==""||!no.isSimpleText()||no.isUnmergeable()){for(;(to=no.getPreviousSibling())!==null&&Br(to)&&to.isSimpleText()&&!to.isUnmergeable();){if(to.__text!==""){if(Je(to,no)){no=Ue(to,no);break}break}to.remove()}for(;(ro=no.getNextSibling())!==null&&Br(ro)&&ro.isSimpleText()&&!ro.isUnmergeable();){if(ro.__text!==""){if(Je(no,ro)){no=Ue(no,ro);break}break}ro.remove()}}else no.remove()}function $e(eo){return He(eo.anchor),He(eo.focus),eo}function He(eo){for(;eo.type==="element";){const to=eo.getNode(),ro=eo.offset;let no,oo;if(ro===to.getChildrenSize()?(no=to.getChildAtIndex(ro-1),oo=!0):(no=to.getChildAtIndex(ro),oo=!1),Br(no)){eo.set(no.__key,oo?no.getTextContentSize():0,"text");break}if(!qi(no))break;eo.set(no.__key,oo?no.getChildrenSize():0,"element")}}let je=1;const qe=typeof queueMicrotask=="function"?queueMicrotask:eo=>{Promise.resolve().then(eo)};function Qe(eo){const to=document.activeElement;if(to===null)return!1;const ro=to.nodeName;return Hi(at$1(eo))&&(ro==="INPUT"||ro==="TEXTAREA"||to.contentEditable==="true"&&to.__lexicalEditor==null)}function Xe(eo,to,ro){const no=eo.getRootElement();try{return no!==null&&no.contains(to)&&no.contains(ro)&&to!==null&&!Qe(to)&&Ye(to)===eo}catch{return!1}}function Ye(eo){let to=eo;for(;to!=null;){const ro=to.__lexicalEditor;if(ro!=null)return ro;to=Jt(to)}return null}function Ze(eo){return eo.isToken()||eo.isSegmented()}function Ge(eo){return eo.nodeType===se}function et(eo){let to=eo;for(;to!=null;){if(Ge(to))return to;to=to.firstChild}return null}function tt(eo,to,ro){const no=be[to];if(ro!==null&&(eo&no)==(ro&no))return eo;let oo=eo^no;return to==="subscript"?oo&=~be.superscript:to==="superscript"&&(oo&=~be.subscript),oo}function nt(eo){return Br(eo)||vr(eo)||Hi(eo)}function rt(eo,to){if(to!=null)return void(eo.__key=to);Pi(),Di();const ro=Oi(),no=Ii(),oo=""+je++;no._nodeMap.set(oo,eo),qi(eo)?ro._dirtyElements.set(oo,!0):ro._dirtyLeaves.add(oo),ro._cloneNotNeeded.add(oo),ro._dirtyType=le,eo.__key=oo}function it(eo){const to=eo.getParent();if(to!==null){const ro=eo.getWritable(),no=to.getWritable(),oo=eo.getPreviousSibling(),io=eo.getNextSibling();if(oo===null)if(io!==null){const so=io.getWritable();no.__first=io.__key,so.__prev=null}else no.__first=null;else{const so=oo.getWritable();if(io!==null){const ao=io.getWritable();ao.__prev=so.__key,so.__next=ao.__key}else so.__next=null;ro.__prev=null}if(io===null)if(oo!==null){const so=oo.getWritable();no.__last=oo.__key,so.__next=null}else no.__last=null;else{const so=io.getWritable();if(oo!==null){const ao=oo.getWritable();ao.__next=so.__key,so.__prev=ao.__key}else so.__prev=null;ro.__next=null}no.__size--,ro.__parent=null}}function st$1(eo){Di();const to=eo.getLatest(),ro=to.__parent,no=Ii(),oo=Oi(),io=no._nodeMap,so=oo._dirtyElements;ro!==null&&function(lo,uo,co){let fo=lo;for(;fo!==null;){if(co.has(fo))return;const ho=uo.get(fo);if(ho===void 0)break;co.set(fo,!1),fo=ho.__parent}}(ro,io,so);const ao=to.__key;oo._dirtyType=le,qi(eo)?so.set(ao,!0):oo._dirtyLeaves.add(ao)}function ot(eo){Pi();const to=Oi(),ro=to._compositionKey;if(eo!==ro){if(to._compositionKey=eo,ro!==null){const no=ct$1(ro);no!==null&&no.getWritable()}if(eo!==null){const no=ct$1(eo);no!==null&&no.getWritable()}}}function lt$1(){return Ei()?null:Oi()._compositionKey}function ct$1(eo,to){const ro=(to||Ii())._nodeMap.get(eo);return ro===void 0?null:ro}function ut$1(eo,to){const ro=eo[`__lexicalKey_${Oi()._key}`];return ro!==void 0?ct$1(ro,to):null}function at$1(eo,to){let ro=eo;for(;ro!=null;){const no=ut$1(ro,to);if(no!==null)return no;ro=Jt(ro)}return null}function ft$1(eo){const to=eo._decorators,ro=Object.assign({},to);return eo._pendingDecorators=ro,ro}function dt$1(eo){return eo.read(()=>ht$1().getTextContent())}function ht$1(){return gt$1(Ii())}function gt$1(eo){return eo._nodeMap.get("root")}function _t(eo){Pi();const to=Ii();eo!==null&&(eo.dirty=!0,eo.setCachedNodes(null)),to._selection=eo}function pt$1(eo){const to=Oi(),ro=function(no,oo){let io=no;for(;io!=null;){const so=io[`__lexicalKey_${oo._key}`];if(so!==void 0)return so;io=Jt(io)}return null}(eo,to);return ro===null?eo===to.getRootElement()?ct$1("root"):null:ct$1(ro)}function yt$1(eo,to){return to?eo.getTextContentSize():0}function mt$1(eo){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(eo)}function xt$1(eo){const to=[];let ro=eo;for(;ro!==null;)to.push(ro),ro=ro._parentEditor;return to}function vt$1(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function Tt(eo){return eo.nodeType===se?eo.nodeValue:null}function St(eo,to,ro){const no=nn(to._window);if(no===null)return;const oo=no.anchorNode;let{anchorOffset:io,focusOffset:so}=no;if(oo!==null){let ao=Tt(oo);const lo=at$1(oo);if(ao!==null&&Br(lo)){if(ao===me&&ro){const uo=ro.length;ao=ro,io=uo,so=uo}ao!==null&&kt(lo,ao,io,so,eo)}}}function kt(eo,to,ro,no,oo){let io=eo;if(io.isAttached()&&(oo||!io.isDirty())){const so=io.isComposing();let ao=to;(so||oo)&&to[to.length-1]===me&&(ao=to.slice(0,-1));const lo=io.getTextContent();if(oo||ao!==lo){if(ao===""){if(ot(null),Z||G||re)io.remove();else{const vo=Oi();setTimeout(()=>{vo.update(()=>{io.isAttached()&&io.remove()})},20)}return}const uo=io.getParent(),co=di(),fo=io.getTextContentSize(),ho=lt$1(),po=io.getKey();if(io.isToken()||ho!==null&&po===ho&&!so||Xr(co)&&(uo!==null&&!uo.canInsertTextBefore()&&co.anchor.offset===0||co.anchor.key===eo.__key&&co.anchor.offset===0&&!io.canInsertTextBefore()&&!so||co.focus.key===eo.__key&&co.focus.offset===fo&&!io.canInsertTextAfter()&&!so))return void io.markDirty();const go=fi();if(!Xr(go)||ro===null||no===null)return void io.setTextContent(ao);if(go.setTextNodeRange(io,ro,io,no),io.isSegmented()){const vo=zr(io.getTextContent());io.replace(vo),io=vo}io.setTextContent(ao)}}}function Ct$1(eo,to){if(to.isSegmented())return!0;if(!eo.isCollapsed())return!1;const ro=eo.anchor.offset,no=to.getParentOrThrow(),oo=to.isToken();return ro===0?!to.canInsertTextBefore()||!no.canInsertTextBefore()||oo||function(io){const so=io.getPreviousSibling();return(Br(so)||qi(so)&&so.isInline())&&!so.canInsertTextAfter()}(to):ro===to.getTextContentSize()&&(!to.canInsertTextAfter()||!no.canInsertTextAfter()||oo)}function bt(eo){return eo===37}function Nt$1(eo){return eo===39}function wt$1(eo,to){return Q?eo:to}function Et$1(eo){return eo===13}function Pt$1(eo){return eo===8}function Dt$1(eo){return eo===46}function It(eo,to,ro){return eo===65&&wt$1(to,ro)}function Ot$1(){const eo=ht$1();_t($e(eo.select(0,eo.getChildrenSize())))}function At$1(eo,to){eo.__lexicalClassNameCache===void 0&&(eo.__lexicalClassNameCache={});const ro=eo.__lexicalClassNameCache,no=ro[to];if(no!==void 0)return no;const oo=eo[to];if(typeof oo=="string"){const io=Ie(oo);return ro[to]=io,io}return oo}function Lt(eo,to,ro,no,oo){if(ro.size===0)return;const io=no.__type,so=no.__key,ao=to.get(io);ao===void 0&&H$1(33,io);const lo=ao.klass;let uo=eo.get(lo);uo===void 0&&(uo=new Map,eo.set(lo,uo));const co=uo.get(so),fo=co==="destroyed"&&oo==="created";(co===void 0||fo)&&uo.set(so,fo?"updated":oo)}function Ft(eo){const to=Ii(),ro=to._readOnly,no=eo.getType(),oo=to._nodeMap,io=[];for(const[,so]of oo)so instanceof eo&&so.__type===no&&(ro||so.isAttached())&&io.push(so);return io}function Mt(eo,to,ro){const no=eo.getParent();let oo=ro,io=eo;return no!==null&&(to&&ro===0?(oo=io.getIndexWithinParent(),io=no):to||ro!==io.getChildrenSize()||(oo=io.getIndexWithinParent()+1,io=no)),io.getChildAtIndex(to?oo-1:oo)}function Wt(eo,to){const ro=eo.offset;if(eo.type==="element")return Mt(eo.getNode(),to,ro);{const no=eo.getNode();if(to&&ro===0||!to&&ro===no.getTextContentSize()){const oo=to?no.getPreviousSibling():no.getNextSibling();return oo===null?Mt(no.getParentOrThrow(),to,no.getIndexWithinParent()+(to?0:1)):oo}}return null}function zt(eo){const to=Ht(eo).event,ro=to&&to.inputType;return ro==="insertFromPaste"||ro==="insertFromPasteAsQuotation"}function Bt(eo,to,ro){return Ki(eo,to,ro)}function Rt(eo){return!Yi(eo)&&!eo.isLastChild()&&!eo.isInline()}function Kt(eo,to){const ro=eo._keyToDOMMap.get(to);return ro===void 0&&H$1(75,to),ro}function Jt(eo){const to=eo.assignedSlot||eo.parentElement;return to!==null&&to.nodeType===11?to.host:to}function Ut(eo){return Oi()._updateTags.has(eo)}function Vt(eo){Pi(),Oi()._updateTags.add(eo)}function $t(eo,to){let ro=eo.getParent();for(;ro!==null;){if(ro.is(to))return!0;ro=ro.getParent()}return!1}function Ht(eo){const to=eo._window;return to===null&&H$1(78),to}function jt(eo){return qi(eo)&&eo.isInline()||Hi(eo)&&eo.isInline()}function qt(eo){let to=eo.getParentOrThrow();for(;to!==null;){if(Qt(to))return to;to=to.getParentOrThrow()}return to}function Qt(eo){return Yi(eo)||qi(eo)&&eo.isShadowRoot()}function Xt(eo){const to=eo.constructor.clone(eo);return rt(to,null),to}function Yt(eo){const to=Oi(),ro=eo.constructor.getType(),no=to._nodes.get(ro);no===void 0&&H$1(97);const oo=no.replace;if(oo!==null){const io=oo(eo);return io instanceof eo.constructor||H$1(98),io}return eo}function Zt(eo,to){!Yi(eo.getParent())||qi(to)||Hi(to)||H$1(99)}function Gt(eo){return(Hi(eo)||qi(eo)&&!eo.canBeEmpty())&&!eo.isInline()}function en(eo,to,ro){ro.style.removeProperty("caret-color"),to._blockCursorElement=null;const no=eo.parentElement;no!==null&&no.removeChild(eo)}function tn(eo,to,ro){let no=eo._blockCursorElement;if(Xr(ro)&&ro.isCollapsed()&&ro.anchor.type==="element"&&to.contains(document.activeElement)){const oo=ro.anchor,io=oo.getNode(),so=oo.offset;let ao=!1,lo=null;if(so===io.getChildrenSize())Gt(io.getChildAtIndex(so-1))&&(ao=!0);else{const uo=io.getChildAtIndex(so);if(Gt(uo)){const co=uo.getPreviousSibling();(co===null||Gt(co))&&(ao=!0,lo=eo.getElementByKey(uo.__key))}}if(ao){const uo=eo.getElementByKey(io.__key);return no===null&&(eo._blockCursorElement=no=function(co){const fo=co.theme,ho=document.createElement("div");ho.contentEditable="false",ho.setAttribute("data-lexical-cursor","true");let po=fo.blockCursor;if(po!==void 0){if(typeof po=="string"){const go=Ie(po);po=fo.blockCursor=go}po!==void 0&&ho.classList.add(...po)}return ho}(eo._config)),to.style.caretColor="transparent",void(lo===null?uo.appendChild(no):uo.insertBefore(no,lo))}}no!==null&&en(no,eo,to)}function nn(eo){return j?(eo||window).getSelection():null}function rn(eo,to){let ro=eo.getChildAtIndex(to);ro==null&&(ro=eo),Qt(eo)&&H$1(102);const no=so=>{const ao=so.getParentOrThrow(),lo=Qt(ao),uo=so!==ro||lo?Xt(so):so;if(lo)return qi(so)&&qi(uo)||H$1(133),so.insertAfter(uo),[so,uo,uo];{const[co,fo,ho]=no(ao),po=so.getNextSiblings();return ho.append(uo,...po),[co,fo,uo]}},[oo,io]=no(ro);return[oo,io]}function sn(eo){return on(eo)&&eo.tagName==="A"}function on(eo){return eo.nodeType===1}function ln(eo){if(Hi(eo)&&!eo.isInline())return!0;if(!qi(eo)||Qt(eo))return!1;const to=eo.getFirstChild(),ro=to===null||vr(to)||Br(to)||to.isInline();return!eo.isInline()&&eo.canBeEmpty()!==!1&&ro}function cn(eo,to){let ro=eo;for(;ro!==null&&ro.getParent()!==null&&!to(ro);)ro=ro.getParentOrThrow();return to(ro)?ro:null}function un(){return Oi()}function an(eo,to,ro,no,oo,io){let so=eo.getFirstChild();for(;so!==null;){const ao=so.__key;so.__parent===to&&(qi(so)&&an(so,ao,ro,no,oo,io),ro.has(ao)||io.delete(ao),oo.push(ao)),so=so.getNextSibling()}}let fn,dn,hn,gn,_n,pn,yn,mn,xn,vn,Tn="",Sn="",kn="",Cn=!1,bn=!1,Nn=null;function wn(eo,to){const ro=yn.get(eo);if(to!==null){const no=Vn(eo);no.parentNode===to&&to.removeChild(no)}if(mn.has(eo)||dn._keyToDOMMap.delete(eo),qi(ro)){const no=Bn(ro,yn);En(no,0,no.length-1,null)}ro!==void 0&&Lt(vn,hn,gn,ro,"destroyed")}function En(eo,to,ro,no){let oo=to;for(;oo<=ro;++oo){const io=eo[oo];io!==void 0&&wn(io,no)}}function Pn(eo,to){eo.setProperty("text-align",to)}const Dn="40px";function In(eo,to){const ro=fn.theme.indent;if(typeof ro=="string"){const oo=eo.classList.contains(ro);to>0&&!oo?eo.classList.add(ro):to<1&&oo&&eo.classList.remove(ro)}const no=getComputedStyle(eo).getPropertyValue("--lexical-indent-base-value")||Dn;eo.style.setProperty("padding-inline-start",to===0?"":`calc(${to} * ${no})`)}function On(eo,to){const ro=eo.style;to===0?Pn(ro,""):to===de?Pn(ro,"left"):to===he?Pn(ro,"center"):to===ge?Pn(ro,"right"):to===_e?Pn(ro,"justify"):to===pe?Pn(ro,"start"):to===ye&&Pn(ro,"end")}function An(eo,to,ro){const no=mn.get(eo);no===void 0&&H$1(60);const oo=no.createDOM(fn,dn);if(function(io,so,ao){const lo=ao._keyToDOMMap;so["__lexicalKey_"+ao._key]=io,lo.set(io,so)}(eo,oo,dn),Br(no)?oo.setAttribute("data-lexical-text","true"):Hi(no)&&oo.setAttribute("data-lexical-decorator","true"),qi(no)){const io=no.__indent,so=no.__size;if(io!==0&&In(oo,io),so!==0){const lo=so-1;(function(uo,co,fo,ho){const po=Sn;Sn="",Ln(uo,fo,0,co,ho,null),Wn(fo,ho),Sn=po})(Bn(no,mn),lo,no,oo)}const ao=no.__format;ao!==0&&On(oo,ao),no.isInline()||Mn(null,no,oo),Rt(no)&&(Tn+=xe,kn+=xe)}else{const io=no.getTextContent();if(Hi(no)){const so=no.decorate(dn,fn);so!==null&&Kn(eo,so),oo.contentEditable="false"}else Br(no)&&(no.isDirectionless()||(Sn+=io));Tn+=io,kn+=io}if(to!==null)if(ro!=null)to.insertBefore(oo,ro);else{const io=to.__lexicalLineBreak;io!=null?to.insertBefore(oo,io):to.appendChild(oo)}return Lt(vn,hn,gn,no,"created"),oo}function Ln(eo,to,ro,no,oo,io){const so=Tn;Tn="";let ao=ro;for(;ao<=no;++ao)An(eo[ao],oo,io);Rt(to)&&(Tn+=xe),oo.__lexicalTextContent=Tn,Tn=so+Tn}function Fn(eo,to){const ro=to.get(eo);return vr(ro)||Hi(ro)&&ro.isInline()}function Mn(eo,to,ro){const no=eo!==null&&(eo.__size===0||Fn(eo.__last,yn)),oo=to.__size===0||Fn(to.__last,mn);if(no){if(!oo){const io=ro.__lexicalLineBreak;io!=null&&ro.removeChild(io),ro.__lexicalLineBreak=null}}else if(oo){const io=document.createElement("br");ro.__lexicalLineBreak=io,ro.appendChild(io)}}function Wn(eo,to){const ro=to.__lexicalDirTextContent,no=to.__lexicalDir;if(ro!==Sn||no!==Nn){const io=Sn==="",so=io?Nn:(oo=Sn,ke.test(oo)?"rtl":Ce.test(oo)?"ltr":null);if(so!==no){const ao=to.classList,lo=fn.theme;let uo=no!==null?lo[no]:void 0,co=so!==null?lo[so]:void 0;if(uo!==void 0){if(typeof uo=="string"){const fo=Ie(uo);uo=lo[no]=fo}ao.remove(...uo)}if(so===null||io&&so==="ltr")to.removeAttribute("dir");else{if(co!==void 0){if(typeof co=="string"){const fo=Ie(co);co=lo[so]=fo}co!==void 0&&ao.add(...co)}to.dir=so}bn||(eo.getWritable().__dir=so)}Nn=so,to.__lexicalDirTextContent=Sn,to.__lexicalDir=so}var oo}function zn(eo,to,ro){const no=Sn;Sn="",function(oo,io,so){const ao=Tn,lo=oo.__size,uo=io.__size;if(Tn="",lo===1&&uo===1){const co=oo.__first,fo=io.__first;if(co===fo)Rn(co,so);else{const ho=Vn(co),po=An(fo,null,null);so.replaceChild(po,ho),wn(co,null)}}else{const co=Bn(oo,yn),fo=Bn(io,mn);if(lo===0)uo!==0&&Ln(fo,io,0,uo-1,so,null);else if(uo===0){if(lo!==0){const ho=so.__lexicalLineBreak==null;En(co,0,lo-1,ho?null:so),ho&&(so.textContent="")}}else(function(ho,po,go,vo,bo,xo){const _o=vo-1,Eo=bo-1;let So,To,wo=(Ao=xo,Ao.firstChild),Co=0,Oo=0;for(var Ao;Co<=_o&&Oo<=Eo;){const Mo=po[Co],Do=go[Oo];if(Mo===Do)wo=Jn(Rn(Do,xo)),Co++,Oo++;else{So===void 0&&(So=new Set(po)),To===void 0&&(To=new Set(go));const jo=To.has(Mo),Fo=So.has(Do);if(jo)if(Fo){const $o=Kt(dn,Do);$o===wo?wo=Jn(Rn(Do,xo)):(wo!=null?xo.insertBefore($o,wo):xo.appendChild($o),Rn(Do,xo)),Co++,Oo++}else An(Do,xo,wo),Oo++;else wo=Jn(Vn(Mo)),wn(Mo,xo),Co++}}const Ro=Co>_o,No=Oo>Eo;if(Ro&&!No){const Mo=go[Eo+1];Ln(go,ho,Oo,Eo,xo,Mo===void 0?null:dn.getElementByKey(Mo))}else No&&!Ro&&En(po,Co,_o,xo)})(io,co,fo,lo,uo,so)}Rt(io)&&(Tn+=xe),so.__lexicalTextContent=Tn,Tn=ao+Tn}(eo,to,ro),Wn(to,ro),Sn=no}function Bn(eo,to){const ro=[];let no=eo.__first;for(;no!==null;){const oo=to.get(no);oo===void 0&&H$1(101),ro.push(no),no=oo.__next}return ro}function Rn(eo,to){const ro=yn.get(eo);let no=mn.get(eo);ro!==void 0&&no!==void 0||H$1(61);const oo=Cn||pn.has(eo)||_n.has(eo),io=Kt(dn,eo);if(ro===no&&!oo){if(qi(ro)){const so=io.__lexicalTextContent;so!==void 0&&(Tn+=so,kn+=so);const ao=io.__lexicalDirTextContent;ao!==void 0&&(Sn+=ao)}else{const so=ro.getTextContent();Br(ro)&&!ro.isDirectionless()&&(Sn+=so),kn+=so,Tn+=so}return io}if(ro!==no&&oo&&Lt(vn,hn,gn,no,"updated"),no.updateDOM(ro,io,fn)){const so=An(eo,null,null);return to===null&&H$1(62),to.replaceChild(so,io),wn(eo,null),so}if(qi(ro)&&qi(no)){const so=no.__indent;so!==ro.__indent&&In(io,so);const ao=no.__format;ao!==ro.__format&&On(io,ao),oo&&(zn(ro,no,io),Yi(no)||no.isInline()||Mn(ro,no,io)),Rt(no)&&(Tn+=xe,kn+=xe)}else{const so=no.getTextContent();if(Hi(no)){const ao=no.decorate(dn,fn);ao!==null&&Kn(eo,ao)}else Br(no)&&!no.isDirectionless()&&(Sn+=so);Tn+=so,kn+=so}if(!bn&&Yi(no)&&no.__cachedText!==kn){const so=no.getWritable();so.__cachedText=kn,no=so}return io}function Kn(eo,to){let ro=dn._pendingDecorators;const no=dn._decorators;if(ro===null){if(no[eo]===to)return;ro=ft$1(dn)}ro[eo]=to}function Jn(eo){let to=eo.nextSibling;return to!==null&&to===dn._blockCursorElement&&(to=to.nextSibling),to}function Un(eo,to,ro,no,oo,io){Tn="",kn="",Sn="",Cn=no===ce,Nn=null,dn=ro,fn=ro._config,hn=ro._nodes,gn=dn._listeners.mutation,_n=oo,pn=io,yn=eo._nodeMap,mn=to._nodeMap,bn=to._readOnly,xn=new Map(ro._keyToDOMMap);const so=new Map;return vn=so,Rn("root",null),dn=void 0,hn=void 0,_n=void 0,pn=void 0,yn=void 0,mn=void 0,fn=void 0,xn=void 0,vn=void 0,so}function Vn(eo){const to=xn.get(eo);return to===void 0&&H$1(75,eo),to}const $n=Object.freeze({}),Hn=30,jn=[["keydown",function(eo,to){if(qn=eo.timeStamp,Qn=eo.keyCode,to.isComposing())return;const{keyCode:ro,shiftKey:no,ctrlKey:oo,metaKey:io,altKey:so}=eo;Bt(to,_$5,eo)||(function(ao,lo,uo,co){return Nt$1(ao)&&!lo&&!co&&!uo}(ro,oo,so,io)?Bt(to,p$4,eo):function(ao,lo,uo,co,fo){return Nt$1(ao)&&!co&&!uo&&(lo||fo)}(ro,oo,no,so,io)?Bt(to,y$4,eo):function(ao,lo,uo,co){return bt(ao)&&!lo&&!co&&!uo}(ro,oo,so,io)?Bt(to,m$5,eo):function(ao,lo,uo,co,fo){return bt(ao)&&!co&&!uo&&(lo||fo)}(ro,oo,no,so,io)?Bt(to,x$5,eo):function(ao,lo,uo){return function(co){return co===38}(ao)&&!lo&&!uo}(ro,oo,io)?Bt(to,v$3,eo):function(ao,lo,uo){return function(co){return co===40}(ao)&&!lo&&!uo}(ro,oo,io)?Bt(to,T$3,eo):function(ao,lo){return Et$1(ao)&&lo}(ro,no)?(tr=!0,Bt(to,S$4,eo)):function(ao){return ao===32}(ro)?Bt(to,k$2,eo):function(ao,lo){return Q&&lo&&ao===79}(ro,oo)?(eo.preventDefault(),tr=!0,Bt(to,s$2,!0)):function(ao,lo){return Et$1(ao)&&!lo}(ro,no)?(tr=!1,Bt(to,S$4,eo)):function(ao,lo,uo,co){return Q?!lo&&!uo&&(Pt$1(ao)||ao===72&&co):!(co||lo||uo)&&Pt$1(ao)}(ro,so,io,oo)?Pt$1(ro)?Bt(to,C$5,eo):(eo.preventDefault(),Bt(to,i$3,!0)):function(ao){return ao===27}(ro)?Bt(to,b$2,eo):function(ao,lo,uo,co,fo){return Q?!(uo||co||fo)&&(Dt$1(ao)||ao===68&&lo):!(lo||co||fo)&&Dt$1(ao)}(ro,oo,no,so,io)?Dt$1(ro)?Bt(to,N$3,eo):(eo.preventDefault(),Bt(to,i$3,!1)):function(ao,lo,uo){return Pt$1(ao)&&(Q?lo:uo)}(ro,so,oo)?(eo.preventDefault(),Bt(to,a$4,!0)):function(ao,lo,uo){return Dt$1(ao)&&(Q?lo:uo)}(ro,so,oo)?(eo.preventDefault(),Bt(to,a$4,!1)):function(ao,lo){return Q&&lo&&Pt$1(ao)}(ro,io)?(eo.preventDefault(),Bt(to,f$4,!0)):function(ao,lo){return Q&&lo&&Dt$1(ao)}(ro,io)?(eo.preventDefault(),Bt(to,f$4,!1)):function(ao,lo,uo,co){return ao===66&&!lo&&wt$1(uo,co)}(ro,so,io,oo)?(eo.preventDefault(),Bt(to,d$4,"bold")):function(ao,lo,uo,co){return ao===85&&!lo&&wt$1(uo,co)}(ro,so,io,oo)?(eo.preventDefault(),Bt(to,d$4,"underline")):function(ao,lo,uo,co){return ao===73&&!lo&&wt$1(uo,co)}(ro,so,io,oo)?(eo.preventDefault(),Bt(to,d$4,"italic")):function(ao,lo,uo,co){return ao===9&&!lo&&!uo&&!co}(ro,so,oo,io)?Bt(to,w$3,eo):function(ao,lo,uo,co){return ao===90&&!lo&&wt$1(uo,co)}(ro,no,io,oo)?(eo.preventDefault(),Bt(to,h$3,void 0)):function(ao,lo,uo,co){return Q?ao===90&&uo&&lo:ao===89&&co||ao===90&&co&&lo}(ro,no,io,oo)?(eo.preventDefault(),Bt(to,g$6,void 0)):Zr(to._editorState._selection)?function(ao,lo,uo,co){return!lo&&ao===67&&(Q?uo:co)}(ro,no,io,oo)?(eo.preventDefault(),Bt(to,M$3,eo)):function(ao,lo,uo,co){return!lo&&ao===88&&(Q?uo:co)}(ro,no,io,oo)?(eo.preventDefault(),Bt(to,W,eo)):It(ro,io,oo)&&(eo.preventDefault(),Bt(to,z$1,eo)):!X&&It(ro,io,oo)&&(eo.preventDefault(),Bt(to,z$1,eo)),function(ao,lo,uo,co){return ao||lo||uo||co}(oo,no,so,io)&&Bt(to,$$1,eo))}],["pointerdown",function(eo,to){const ro=eo.target,no=eo.pointerType;ro instanceof Node&&no!=="touch"&&Vi(to,()=>{Hi(at$1(ro))||(er=!0)})}],["compositionstart",function(eo,to){Vi(to,()=>{const ro=fi();if(Xr(ro)&&!to.isComposing()){const no=ro.anchor,oo=ro.anchor.getNode();ot(no.key),(eo.timeStamp{cr(to,eo.data)})}],["input",function(eo,to){eo.stopPropagation(),Vi(to,()=>{const ro=fi(),no=eo.data,oo=lr(eo);if(no!=null&&Xr(ro)&&ir(ro,oo,no,eo.timeStamp,!1)){nr&&(cr(to,no),nr=!1);const io=ro.anchor,so=io.getNode(),ao=nn(to._window);if(ao===null)return;const lo=io.offset;Y&&!ro.isCollapsed()&&Br(so)&&ao.anchorNode!==null&&so.getTextContent().slice(0,lo)+no+so.getTextContent().slice(lo+ro.focus.offset)===Tt(ao.anchorNode)||Bt(to,l$3,no);const uo=no.length;X&&uo>1&&eo.inputType==="insertCompositionText"&&!to.isComposing()&&(ro.anchor.offset-=uo),Z||G||re||!to.isComposing()||(qn=0,ot(null))}else St(!1,to,no!==null?no:void 0),nr&&(cr(to,no||void 0),nr=!1);Pi(),Re(Oi())}),Yn=null}],["click",function(eo,to){Vi(to,()=>{const ro=fi(),no=nn(to._window),oo=di();if(no){if(Xr(ro)){const io=ro.anchor,so=io.getNode();io.type==="element"&&io.offset===0&&ro.isCollapsed()&&!Yi(so)&&ht$1().getChildrenSize()===1&&so.getTopLevelElementOrThrow().isEmpty()&&oo!==null&&ro.is(oo)?(no.removeAllRanges(),ro.dirty=!0):eo.detail===3&&!ro.isCollapsed()&&so!==ro.focus.getNode()&&(qi(so)?so.select(0):so.getParentOrThrow().select(0))}else if(eo.pointerType==="touch"){const io=no.anchorNode;if(io!==null){const so=io.nodeType;(so===ie$2||so===se)&&_t(ai(oo,no,to,eo))}}}Bt(to,r$1,eo)})}],["cut",$n],["copy",$n],["dragstart",$n],["dragover",$n],["dragend",$n],["paste",$n],["focus",$n],["blur",$n],["drop",$n]];Y&&jn.push(["beforeinput",(eo,to)=>function(ro,no){const oo=ro.inputType,io=lr(ro);oo==="deleteCompositionText"||X&&zt(no)||oo!=="insertCompositionText"&&Vi(no,()=>{const so=fi();if(oo==="deleteContentBackward"){if(so===null){const po=di();if(!Xr(po))return;_t(po.clone())}if(Xr(so)){const po=so.anchor.key===so.focus.key;if(ao=ro.timeStamp,Qn===229&&ao{Vi(no,()=>{ot(null)})},Hn),Xr(so)){const go=so.anchor.getNode();go.markDirty(),so.format=go.getFormat(),Br(go)||H$1(142),so.style=go.getStyle()}}else{ot(null),ro.preventDefault();const go=so.anchor.getNode().getTextContent(),vo=so.anchor.offset===0&&so.focus.offset===go.length;ne&&po&&!vo||Bt(no,i$3,!0)}return}}var ao;if(!Xr(so))return;const lo=ro.data;Yn!==null&&St(!1,no,Yn),so.dirty&&Yn===null||!so.isCollapsed()||Yi(so.anchor.getNode())||io===null||so.applyDOMRange(io),Yn=null;const uo=so.anchor,co=so.focus,fo=uo.getNode(),ho=co.getNode();if(oo!=="insertText"&&oo!=="insertTranspose")switch(ro.preventDefault(),oo){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":Bt(no,l$3,ro);break;case"insertFromComposition":ot(null),Bt(no,l$3,ro);break;case"insertLineBreak":ot(null),Bt(no,s$2,!1);break;case"insertParagraph":ot(null),tr&&!G?(tr=!1,Bt(no,s$2,!1)):Bt(no,o$5,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":Bt(no,c$5,ro);break;case"deleteByComposition":(function(po,go){return po!==go||qi(po)||qi(go)||!po.isToken()||!go.isToken()})(fo,ho)&&Bt(no,u$5,ro);break;case"deleteByDrag":case"deleteByCut":Bt(no,u$5,ro);break;case"deleteContent":Bt(no,i$3,!1);break;case"deleteWordBackward":Bt(no,a$4,!0);break;case"deleteWordForward":Bt(no,a$4,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":Bt(no,f$4,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":Bt(no,f$4,!1);break;case"formatStrikeThrough":Bt(no,d$4,"strikethrough");break;case"formatBold":Bt(no,d$4,"bold");break;case"formatItalic":Bt(no,d$4,"italic");break;case"formatUnderline":Bt(no,d$4,"underline");break;case"historyUndo":Bt(no,h$3,void 0);break;case"historyRedo":Bt(no,g$6,void 0)}else{if(lo===` +`)ro.preventDefault(),Bt(no,s$2,!1);else if(lo===xe)ro.preventDefault(),Bt(no,o$5,void 0);else if(lo==null&&ro.dataTransfer){const po=ro.dataTransfer.getData("text/plain");ro.preventDefault(),so.insertRawText(po)}else lo!=null&&ir(so,io,lo,ro.timeStamp,!0)?(ro.preventDefault(),Bt(no,l$3,lo)):Yn=lo;Xn=ro.timeStamp}})}(eo,to)]);let qn=0,Qn=0,Xn=0,Yn=null;const Zn=new WeakMap;let Gn=!1,er=!1,tr=!1,nr=!1,rr=[0,"",0,"root",0];function ir(eo,to,ro,no,oo){const io=eo.anchor,so=eo.focus,ao=io.getNode(),lo=Oi(),uo=nn(lo._window),co=uo!==null?uo.anchorNode:null,fo=io.key,ho=lo.getElementByKey(fo),po=ro.length;return fo!==so.key||!Br(ao)||(!oo&&(!Y||Xn1||(oo||!Y)&&ho!==null&&!ao.isComposing()&&co!==et(ho)||uo!==null&&to!==null&&(!to.collapsed||to.startContainer!==uo.anchorNode||to.startOffset!==uo.anchorOffset)||ao.getFormat()!==eo.format||ao.getStyle()!==eo.style||Ct$1(eo,ao)}function sr(eo,to){return eo!==null&&eo.nodeValue!==null&&eo.nodeType===se&&to!==0&&to!==eo.nodeValue.length}function or(eo,to,ro){const{anchorNode:no,anchorOffset:oo,focusNode:io,focusOffset:so}=eo;Gn&&(Gn=!1,sr(no,oo)&&sr(io,so))||Vi(to,()=>{if(!ro)return void _t(null);if(!Xe(to,no,io))return;const ao=fi();if(Xr(ao)){const lo=ao.anchor,uo=lo.getNode();if(ao.isCollapsed()){eo.type==="Range"&&eo.anchorNode===eo.focusNode&&(ao.dirty=!0);const co=Ht(to).event,fo=co?co.timeStamp:performance.now(),[ho,po,go,vo,bo]=rr,xo=ht$1(),_o=to.isComposing()===!1&&xo.getTextContent()==="";fo{const uo=di(),co=ro.anchorNode;if(co===null)return;const fo=co.nodeType;fo!==ie$2&&fo!==se||_t(ai(uo,ro,no,eo))}));const oo=xt$1(no),io=oo[oo.length-1],so=io._key,ao=ar.get(so),lo=ao||io;lo!==no&&or(ro,lo,!1),or(ro,no,!0),no!==io?ar.set(so,no):ao&&ar.delete(so)}function dr(eo){eo._lexicalHandled=!0}function hr(eo){return eo._lexicalHandled===!0}function gr(eo){const to=eo.ownerDocument,ro=Zn.get(to);if(ro===void 0)throw Error("Root element not registered");Zn.set(to,ro-1),ro===1&&to.removeEventListener("selectionchange",fr);const no=eo.__lexicalEditor;no!=null&&(function(io){if(io._parentEditor!==null){const so=xt$1(io),ao=so[so.length-1]._key;ar.get(ao)===io&&ar.delete(ao)}else ar.delete(io._key)}(no),eo.__lexicalEditor=null);const oo=ur(eo);for(let io=0;iooo.__key===this.__key);return(Br(this)||!Xr(ro)||ro.anchor.type!=="element"||ro.focus.type!=="element"||ro.anchor.key!==ro.focus.key||ro.anchor.offset!==ro.focus.offset)&&no}getKey(){return this.__key}getIndexWithinParent(){const to=this.getParent();if(to===null)return-1;let ro=to.getFirstChild(),no=0;for(;ro!==null;){if(this.is(ro))return no;no++,ro=ro.getNextSibling()}return-1}getParent(){const to=this.getLatest().__parent;return to===null?null:ct$1(to)}getParentOrThrow(){const to=this.getParent();return to===null&&H$1(66,this.__key),to}getTopLevelElement(){let to=this;for(;to!==null;){const ro=to.getParent();if(Qt(ro))return qi(to)||H$1(138),to;to=ro}return null}getTopLevelElementOrThrow(){const to=this.getTopLevelElement();return to===null&&H$1(67,this.__key),to}getParents(){const to=[];let ro=this.getParent();for(;ro!==null;)to.push(ro),ro=ro.getParent();return to}getParentKeys(){const to=[];let ro=this.getParent();for(;ro!==null;)to.push(ro.__key),ro=ro.getParent();return to}getPreviousSibling(){const to=this.getLatest().__prev;return to===null?null:ct$1(to)}getPreviousSiblings(){const to=[],ro=this.getParent();if(ro===null)return to;let no=ro.getFirstChild();for(;no!==null&&!no.is(this);)to.push(no),no=no.getNextSibling();return to}getNextSibling(){const to=this.getLatest().__next;return to===null?null:ct$1(to)}getNextSiblings(){const to=[];let ro=this.getNextSibling();for(;ro!==null;)to.push(ro),ro=ro.getNextSibling();return to}getCommonAncestor(to){const ro=this.getParents(),no=to.getParents();qi(this)&&ro.unshift(this),qi(to)&&no.unshift(to);const oo=ro.length,io=no.length;if(oo===0||io===0||ro[oo-1]!==no[io-1])return null;const so=new Set(no);for(let ao=0;ao{ao.append(vo)})),Xr(no)){_t(no);const vo=no.anchor,bo=no.focus;vo.key===io&&Hr(vo,ao),bo.key===io&&Hr(bo,ao)}return lt$1()===io&&ot(so),ao}insertAfter(to,ro=!0){Pi(),Zt(this,to);const no=this.getWritable(),oo=to.getWritable(),io=oo.getParent(),so=fi();let ao=!1,lo=!1;if(io!==null){const po=to.getIndexWithinParent();if(it(oo),Xr(so)){const go=io.__key,vo=so.anchor,bo=so.focus;ao=vo.type==="element"&&vo.key===go&&vo.offset===po+1,lo=bo.type==="element"&&bo.key===go&&bo.offset===po+1}}const uo=this.getNextSibling(),co=this.getParentOrThrow().getWritable(),fo=oo.__key,ho=no.__next;if(uo===null?co.__last=fo:uo.getWritable().__prev=fo,co.__size++,no.__next=fo,oo.__next=ho,oo.__prev=no.__key,oo.__parent=no.__parent,ro&&Xr(so)){const po=this.getIndexWithinParent();hi(so,co,po+1);const go=co.__key;ao&&so.anchor.set(go,po+2,"element"),lo&&so.focus.set(go,po+2,"element")}return to}insertBefore(to,ro=!0){Pi(),Zt(this,to);const no=this.getWritable(),oo=to.getWritable(),io=oo.__key;it(oo);const so=this.getPreviousSibling(),ao=this.getParentOrThrow().getWritable(),lo=no.__prev,uo=this.getIndexWithinParent();so===null?ao.__first=io:so.getWritable().__next=io,ao.__size++,no.__prev=io,oo.__prev=lo,oo.__next=no.__key,oo.__parent=no.__parent;const co=fi();return ro&&Xr(co)&&hi(co,this.getParentOrThrow(),uo),to}isParentRequired(){return!1}createParentElementNode(){return rs()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(to,ro){Pi();const no=this.getPreviousSibling(),oo=this.getParentOrThrow();if(no===null)return oo.select(0,0);if(qi(no))return no.select();if(!Br(no)){const io=no.getIndexWithinParent()+1;return oo.select(io,io)}return no.select(to,ro)}selectNext(to,ro){Pi();const no=this.getNextSibling(),oo=this.getParentOrThrow();if(no===null)return oo.select();if(qi(no))return no.select(0,0);if(!Br(no)){const io=no.getIndexWithinParent();return oo.select(io,io)}return no.select(to,ro)}markDirty(){this.getWritable()}}class yr extends pr{static getType(){return"linebreak"}static clone(to){return new yr(to.__key)}constructor(to){super(to)}getTextContent(){return` +`}createDOM(){return document.createElement("br")}updateDOM(){return!1}static importDOM(){return{br:to=>function(ro){const no=ro.parentElement;if(no!==null){const oo=no.firstChild;if(oo===ro||oo.nextSibling===ro&&Tr(oo)){const io=no.lastChild;if(io===ro||io.previousSibling===ro&&Tr(io))return!0}}return!1}(to)?null:{conversion:mr,priority:0}}}static importJSON(to){return xr()}exportJSON(){return{type:"linebreak",version:1}}}function mr(eo){return{node:xr()}}function xr(){return Yt(new yr)}function vr(eo){return eo instanceof yr}function Tr(eo){return eo.nodeType===se&&/^( |\t|\r?\n)+$/.test(eo.textContent||"")}function Sr(eo,to){return 16&to?"code":128&to?"mark":32&to?"sub":64&to?"sup":null}function kr(eo,to){return 1&to?"strong":2&to?"em":"span"}function Cr(eo,to,ro,no,oo){const io=no.classList;let so=At$1(oo,"base");so!==void 0&&io.add(...so),so=At$1(oo,"underlineStrikethrough");let ao=!1;const lo=to&ae&&to&ue;so!==void 0&&(ro&ae&&ro&ue?(ao=!0,lo||io.add(...so)):lo&&io.remove(...so));for(const uo in be){const co=be[uo];if(so=At$1(oo,uo),so!==void 0)if(ro&co){if(ao&&(uo==="underline"||uo==="strikethrough")){to&co&&io.remove(...so);continue}(!(to&co)||lo&&uo==="underline"||uo==="strikethrough")&&io.add(...so)}else to&co&&io.remove(...so)}}function br(eo,to,ro){const no=to.firstChild,oo=ro.isComposing(),io=eo+(oo?me:"");if(no==null)to.textContent=io;else{const so=no.nodeValue;if(so!==io)if(oo||X){const[ao,lo,uo]=function(co,fo){const ho=co.length,po=fo.length;let go=0,vo=0;for(;go({conversion:Ar,priority:0}),b:()=>({conversion:Dr,priority:0}),code:()=>({conversion:Wr,priority:0}),em:()=>({conversion:Wr,priority:0}),i:()=>({conversion:Wr,priority:0}),s:()=>({conversion:Wr,priority:0}),span:()=>({conversion:Pr,priority:0}),strong:()=>({conversion:Wr,priority:0}),sub:()=>({conversion:Wr,priority:0}),sup:()=>({conversion:Wr,priority:0}),u:()=>({conversion:Wr,priority:0})}}static importJSON(to){const ro=zr(to.text);return ro.setFormat(to.format),ro.setDetail(to.detail),ro.setMode(to.mode),ro.setStyle(to.style),ro}exportDOM(to){let{element:ro}=super.exportDOM(to);return ro!==null&&on(ro)||H$1(132),ro.style.whiteSpace="pre-wrap",this.hasFormat("bold")&&(ro=wr(ro,"b")),this.hasFormat("italic")&&(ro=wr(ro,"i")),this.hasFormat("strikethrough")&&(ro=wr(ro,"s")),this.hasFormat("underline")&&(ro=wr(ro,"u")),{element:ro}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),type:"text",version:1}}selectionTransform(to,ro){}setFormat(to){const ro=this.getWritable();return ro.__format=typeof to=="string"?be[to]:to,ro}setDetail(to){const ro=this.getWritable();return ro.__detail=typeof to=="string"?Ne[to]:to,ro}setStyle(to){const ro=this.getWritable();return ro.__style=to,ro}toggleFormat(to){const ro=tt(this.getFormat(),to,null);return this.setFormat(ro)}toggleDirectionless(){const to=this.getWritable();return to.__detail^=1,to}toggleUnmergeable(){const to=this.getWritable();return to.__detail^=2,to}setMode(to){const ro=Pe[to];if(this.__mode===ro)return this;const no=this.getWritable();return no.__mode=ro,no}setTextContent(to){if(this.__text===to)return this;const ro=this.getWritable();return ro.__text=to,ro}select(to,ro){Pi();let no=to,oo=ro;const io=fi(),so=this.getTextContent(),ao=this.__key;if(typeof so=="string"){const lo=so.length;no===void 0&&(no=lo),oo===void 0&&(oo=lo)}else no=0,oo=0;if(!Xr(io))return li(ao,no,ao,oo,"text","text");{const lo=lt$1();lo!==io.anchor.key&&lo!==io.focus.key||ot(ao),io.setTextNodeRange(this,no,this,oo)}return io}selectStart(){return this.select(0,0)}selectEnd(){const to=this.getTextContentSize();return this.select(to,to)}spliceText(to,ro,no,oo){const io=this.getWritable(),so=io.__text,ao=no.length;let lo=to;lo<0&&(lo=ao+lo,lo<0&&(lo=0));const uo=fi();if(oo&&Xr(uo)){const fo=to+ao;uo.setTextNodeRange(io,fo,io,fo)}const co=so.slice(0,lo)+no+so.slice(lo+ro);return io.__text=co,io}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...to){Pi();const ro=this.getLatest(),no=ro.getTextContent(),oo=ro.__key,io=lt$1(),so=new Set(to),ao=[],lo=no.length;let uo="";for(let Co=0;CoSo&&Do.offset<=Mo&&(Do.key=No,Do.offset-=So,_o.dirty=!0),jo.key===oo&&jo.type==="text"&&jo.offset>So&&jo.offset<=Mo&&(jo.key=No,jo.offset-=So,_o.dirty=!0)}io===oo&&ot(No),So=Mo,Eo.push(Ro)}(function(Co){const Oo=Co.getPreviousSibling(),Ao=Co.getNextSibling();Oo!==null&&st$1(Oo),Ao!==null&&st$1(Ao)})(this);const To=ho.getWritable(),wo=this.getIndexWithinParent();return xo?(To.splice(wo,0,Eo),this.remove()):To.splice(wo,1,Eo),Xr(_o)&&hi(_o,ho,wo,co-1),Eo}mergeWithSibling(to){const ro=to===this.getPreviousSibling();ro||to===this.getNextSibling()||H$1(50);const no=this.__key,oo=to.__key,io=this.__text,so=io.length;lt$1()===oo&&ot(no);const ao=fi();if(Xr(ao)){const fo=ao.anchor,ho=ao.focus;fo!==null&&fo.key===oo&&(pi(fo,ro,no,to,so),ao.dirty=!0),ho!==null&&ho.key===oo&&(pi(ho,ro,no,to,so),ao.dirty=!0)}const lo=to.__text,uo=ro?lo+io:io+lo;this.setTextContent(uo);const co=this.getWritable();return to.remove(),co}isTextEntity(){return!1}}function Pr(eo){const to=eo,ro=to.style.fontWeight==="700",no=to.style.textDecoration==="line-through",oo=to.style.fontStyle==="italic",io=to.style.textDecoration==="underline",so=to.style.verticalAlign;return{forChild:ao=>(Br(ao)&&(ro&&ao.toggleFormat("bold"),no&&ao.toggleFormat("strikethrough"),oo&&ao.toggleFormat("italic"),io&&ao.toggleFormat("underline"),so==="sub"&&ao.toggleFormat("subscript"),so==="super"&&ao.toggleFormat("superscript")),ao),node:null}}function Dr(eo){const to=eo.style.fontWeight==="normal";return{forChild:ro=>(Br(ro)&&!to&&ro.toggleFormat("bold"),ro),node:null}}const Ir=new WeakMap;function Or(eo){return eo.nodeName==="PRE"||eo.nodeType===ie$2&&eo.style!==void 0&&eo.style.whiteSpace!==void 0&&eo.style.whiteSpace.startsWith("pre")}function Ar(eo){const to=eo;eo.parentElement===null&&H$1(129);let ro=to.textContent||"";if(function(no){let oo,io=no.parentNode;const so=[no];for(;io!==null&&(oo=Ir.get(io))===void 0&&!Or(io);)so.push(io),io=io.parentNode;const ao=oo===void 0?io:oo;for(let lo=0;lo0){/[ \t\n]$/.test(io)&&(ro=ro.slice(1)),oo=!1;break}}oo&&(ro=ro.slice(1))}if(ro[ro.length-1]===" "){let no=to,oo=!0;for(;no!==null&&(no=Fr(no,!0))!==null;)if((no.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){oo=!1;break}oo&&(ro=ro.slice(0,ro.length-1))}return ro===""?{node:null}:{node:zr(ro)}}const Lr=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 Fr(eo,to){let ro=eo;for(;;){let no;for(;(no=to?ro.nextSibling:ro.previousSibling)===null;){const io=ro.parentElement;if(io===null)return null;ro=io}if(ro=no,ro.nodeType===ie$2){const io=ro.style.display;if(io===""&&ro.nodeName.match(Lr)===null||io!==""&&!io.startsWith("inline"))return null}let oo=ro;for(;(oo=to?ro.firstChild:ro.lastChild)!==null;)ro=oo;if(ro.nodeType===se)return ro;if(ro.nodeName==="BR")return null}}const Mr={code:"code",em:"italic",i:"italic",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Wr(eo){const to=Mr[eo.nodeName.toLowerCase()];return to===void 0?{node:null}:{forChild:ro=>(Br(ro)&&!ro.hasFormat(to)&&ro.toggleFormat(to),ro),node:null}}function zr(eo=""){return Yt(new Er(eo))}function Br(eo){return eo instanceof Er}class Rr extends Er{static getType(){return"tab"}static clone(to){const ro=new Rr(to.__key);return ro.__text=to.__text,ro.__format=to.__format,ro.__style=to.__style,ro}constructor(to){super(" ",to),this.__detail=2}static importDOM(){return null}static importJSON(to){const ro=Kr();return ro.setFormat(to.format),ro.setStyle(to.style),ro}exportJSON(){return{...super.exportJSON(),type:"tab",version:1}}setTextContent(to){H$1(126)}setDetail(to){H$1(127)}setMode(to){H$1(128)}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Kr(){return Yt(new Rr)}function Jr(eo){return eo instanceof Rr}class Ur{constructor(to,ro,no){this._selection=null,this.key=to,this.offset=ro,this.type=no}is(to){return this.key===to.key&&this.offset===to.offset&&this.type===to.type}isBefore(to){let ro=this.getNode(),no=to.getNode();const oo=this.offset,io=to.offset;if(qi(ro)){const so=ro.getDescendantByIndex(oo);ro=so??ro}if(qi(no)){const so=no.getDescendantByIndex(io);no=so??no}return ro===no?ooio&&(no=io)}else if(!qi(to)){const io=to.getNextSibling();if(Br(io))ro=io.__key,no=0,oo="text";else{const so=to.getParent();so&&(ro=so.__key,no=to.getIndexWithinParent()+1)}}eo.set(ro,no,oo)}function Hr(eo,to){if(qi(to)){const ro=to.getLastDescendant();qi(ro)||Br(ro)?$r(eo,ro):$r(eo,to)}else $r(eo,to)}function jr(eo,to,ro,no){const oo=eo.getNode(),io=oo.getChildAtIndex(eo.offset),so=zr(),ao=Yi(oo)?rs().append(so):so;so.setFormat(ro),so.setStyle(no),io===null?oo.append(ao):io.insertBefore(ao),eo.is(to)&&to.set(so.__key,0,"text"),eo.set(so.__key,0,"text")}function qr(eo,to,ro,no){eo.key=to,eo.offset=ro,eo.type=no}class Qr{constructor(to){this._cachedNodes=null,this._nodes=to,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(to){this._cachedNodes=to}is(to){if(!Zr(to))return!1;const ro=this._nodes,no=to._nodes;return ro.size===no.size&&Array.from(ro).every(oo=>no.has(oo))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(to){this.dirty=!0,this._nodes.add(to),this._cachedNodes=null}delete(to){this.dirty=!0,this._nodes.delete(to),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(to){return this._nodes.has(to)}clone(){return new Qr(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(to){}insertText(){}insertNodes(to){const ro=this.getNodes(),no=ro.length,oo=ro[no-1];let io;if(Br(oo))io=oo.select();else{const so=oo.getIndexWithinParent()+1;io=oo.getParentOrThrow().select(so,so)}io.insertNodes(to);for(let so=0;so0?[]:[ao]:ao.getNodesBetween(lo),Ei()||(this._cachedNodes=fo),fo}setTextNodeRange(to,ro,no,oo){qr(this.anchor,to.__key,ro,"text"),qr(this.focus,no.__key,oo,"text"),this._cachedNodes=null,this.dirty=!0}getTextContent(){const to=this.getNodes();if(to.length===0)return"";const ro=to[0],no=to[to.length-1],oo=this.anchor,io=this.focus,so=oo.isBefore(io),[ao,lo]=ei(this);let uo="",co=!0;for(let fo=0;fo=0;Oo--){const Ao=So[Oo];if(Ao.is(ho)||qi(Ao)&&Ao.isParentOf(ho))break;Ao.isAttached()&&(!To.has(Ao)||Ao.is(Eo)?wo||Co.insertAfter(Ao,!1):Ao.remove())}if(!wo){let Oo=_o,Ao=null;for(;Oo!==null;){const Ro=Oo.getChildren(),No=Ro.length;(No===0||Ro[No-1].is(Ao))&&(bo.delete(Oo.__key),Ao=Oo),Oo=Oo.getParent()}}if(ho.isToken())if(co===po)ho.select();else{const Oo=zr(to);Oo.select(),ho.replace(Oo)}else ho=ho.spliceText(co,po-co,to,!0),ho.getTextContent()===""?ho.remove():ho.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=to.length);for(let Oo=1;Oo0&&(bo!==vo.getTextContentSize()&&([vo]=vo.splitText(bo)),vo.setFormat(xo));for(let _o=co+1;_o(qi(go)||Hi(go))&&!go.isInline())){qi(ro)||H$1(135);const go=vi(this);return ro.splice(go,0,to),void no.selectEnd()}const oo=function(go){const vo=rs();let bo=null;for(let xo=0;xo"__value"in go&&"__checked"in go,lo=!qi(ro)||!ro.isEmpty()?this.insertParagraph():null,uo=so[so.length-1];let co=so[0];var fo;qi(fo=co)&&ln(fo)&&!fo.isEmpty()&&qi(ro)&&(!ro.isEmpty()||ao(ro))&&(qi(ro)||H$1(135),ro.append(...co.getChildren()),co=so[1]),co&&function(go,vo,bo){const xo=bo||vo.getParentOrThrow().getLastChild();let _o=vo;const Eo=[vo];for(;_o!==xo;)_o.getNextSibling()||H$1(140),_o=_o.getNextSibling(),Eo.push(_o);let So=go;for(const To of Eo)So=So.insertAfter(To)}(ro,co);const ho=cn(io,ln);lo&&qi(ho)&&(ao(lo)||ln(uo))&&(ho.append(...lo.getChildren()),lo.remove()),qi(ro)&&ro.isEmpty()&&ro.remove(),io.selectEnd();const po=qi(ro)?ro.getLastChild():null;vr(po)&&ho!==ro&&po.remove()}insertParagraph(){if(this.anchor.key==="root"){const so=rs();return ht$1().splice(this.anchor.offset,0,[so]),so.select(),so}const to=vi(this),ro=cn(this.anchor.getNode(),ln);qi(ro)||H$1(136);const no=ro.getChildAtIndex(to),oo=no?[no,...no.getNextSiblings()]:[],io=ro.insertNewAfter(this,!1);return io?(io.append(...oo),io.selectStart(),io):null}insertLineBreak(to){const ro=xr();if(this.insertNodes([ro]),to){const no=ro.getParentOrThrow(),oo=ro.getIndexWithinParent();no.select(oo,oo)}}extract(){const to=this.getNodes(),ro=to.length,no=ro-1,oo=this.anchor,io=this.focus;let so=to[0],ao=to[no];const[lo,uo]=ei(this);if(ro===0)return[];if(ro===1){if(Br(so)&&!this.isCollapsed()){const fo=lo>uo?uo:lo,ho=lo>uo?lo:uo,po=so.splitText(fo,ho),go=fo===0?po[0]:po[1];return go!=null?[go]:[]}return[so]}const co=oo.isBefore(io);if(Br(so)){const fo=co?lo:uo;fo===so.getTextContentSize()?to.shift():fo!==0&&([,so]=so.splitText(fo),to[0]=so)}if(Br(ao)){const fo=ao.getTextContent().length,ho=co?uo:lo;ho===0?to.pop():ho!==fo&&([ao]=ao.splitText(ho),to[no]=ao)}return to}modify(to,ro,no){const oo=this.focus,io=this.anchor,so=to==="move",ao=Wt(oo,ro);if(Hi(ao)&&!ao.isIsolated()){if(so&&ao.isKeyboardSelectable()){const po=ui();return po.add(ao.__key),void _t(po)}const ho=ro?ao.getPreviousSibling():ao.getNextSibling();if(Br(ho)){const po=ho.__key,go=ro?ho.getTextContent().length:0;return oo.set(po,go,"text"),void(so&&io.set(po,go,"text"))}{const po=ao.getParentOrThrow();let go,vo;return qi(ho)?(vo=ho.__key,go=ro?ho.getChildrenSize():0):(go=ao.getIndexWithinParent(),vo=po.__key,ro||go++),oo.set(vo,go,"element"),void(so&&io.set(vo,go,"element"))}}const lo=Oi(),uo=nn(lo._window);if(!uo)return;const co=lo._blockCursorElement,fo=lo._rootElement;if(fo===null||co===null||!qi(ao)||ao.isInline()||ao.canBeEmpty()||en(co,lo,fo),function(ho,po,go,vo){ho.modify(po,go,vo)}(uo,to,ro?"backward":"forward",no),uo.rangeCount>0){const ho=uo.getRangeAt(0),po=this.anchor.getNode(),go=Yi(po)?po:qt(po);if(this.applyDOMRange(ho),this.dirty=!0,!so){const vo=this.getNodes(),bo=[];let xo=!1;for(let _o=0;_o0)if(ro){const _o=bo[0];qi(_o)?_o.selectStart():_o.getParentOrThrow().selectStart()}else{const _o=bo[bo.length-1];qi(_o)?_o.selectEnd():_o.getParentOrThrow().selectEnd()}uo.anchorNode===ho.startContainer&&uo.anchorOffset===ho.startOffset||function(_o){const Eo=_o.focus,So=_o.anchor,To=So.key,wo=So.offset,Co=So.type;qr(So,Eo.key,Eo.offset,Eo.type),qr(Eo,To,wo,Co),_o._cachedNodes=null}(this)}}}forwardDeletion(to,ro,no){if(!no&&(to.type==="element"&&qi(ro)&&to.offset===ro.getChildrenSize()||to.type==="text"&&to.offset===ro.getTextContentSize())){const oo=ro.getParent(),io=ro.getNextSibling()||(oo===null?null:oo.getNextSibling());if(qi(io)&&io.isShadowRoot())return!0}return!1}deleteCharacter(to){const ro=this.isCollapsed();if(this.isCollapsed()){const no=this.anchor;let oo=no.getNode();if(this.forwardDeletion(no,oo,to))return;const io=this.focus,so=Wt(io,to);if(Hi(so)&&!so.isIsolated()){if(so.isKeyboardSelectable()&&qi(oo)&&oo.getChildrenSize()===0){oo.remove();const ao=ui();ao.add(so.__key),_t(ao)}else so.remove(),Oi().dispatchCommand(t$4,void 0);return}if(!to&&qi(so)&&qi(oo)&&oo.isEmpty())return oo.remove(),void so.selectStart();if(this.modify("extend",to,"character"),this.isCollapsed()){if(to&&no.offset===0&&(no.type==="element"?no.getNode():no.getNode().getParentOrThrow()).collapseAtStart(this))return}else{const ao=io.type==="text"?io.getNode():null;if(oo=no.type==="text"?no.getNode():null,ao!==null&&ao.isSegmented()){const lo=io.offset,uo=ao.getTextContentSize();if(ao.is(oo)||to&&lo!==uo||!to&&lo!==0)return void ti(ao,to,lo)}else if(oo!==null&&oo.isSegmented()){const lo=no.offset,uo=oo.getTextContentSize();if(oo.is(ao)||to&&lo!==0||!to&&lo!==uo)return void ti(oo,to,lo)}(function(lo,uo){const co=lo.anchor,fo=lo.focus,ho=co.getNode(),po=fo.getNode();if(ho===po&&co.type==="text"&&fo.type==="text"){const go=co.offset,vo=fo.offset,bo=goro||co){oo.splice(uo,1),co&&(ao=void 0);break}}const lo=oo.join("").trim();lo===""?no.remove():(no.setTextContent(lo),no.select(ao,ao))}function ni(eo,to,ro,no){let oo,io=to;if(eo.nodeType===ie$2){let so=!1;const ao=eo.childNodes,lo=ao.length;io===lo&&(so=!0,io=lo-1);let uo=ao[io],co=!1;if(uo===no._blockCursorElement?(uo=ao[io+1],co=!0):no._blockCursorElement!==null&&io--,oo=pt$1(uo),Br(oo))io=yt$1(oo,so);else{let fo=pt$1(eo);if(fo===null)return null;if(qi(fo)){let ho=fo.getChildAtIndex(io);if(qi(ho)&&function(po,go,vo){const bo=po.getParent();return vo===null||bo===null||!bo.canBeEmpty()||bo!==vo.getNode()}(ho,0,ro)){const po=so?ho.getLastDescendant():ho.getFirstDescendant();po===null?(fo=ho,io=0):(ho=po,fo=qi(ho)?ho:ho.getParentOrThrow())}Br(ho)?(oo=ho,fo=null,io=yt$1(ho,so)):ho!==fo&&so&&!co&&io++}else{const ho=fo.getIndexWithinParent();io=to===0&&Hi(fo)&&pt$1(eo)===fo?ho:ho+1,fo=fo.getParentOrThrow()}if(qi(fo))return Vr(fo.__key,io,"element")}}else oo=pt$1(eo);return Br(oo)?Vr(oo.__key,io,"text"):null}function ri(eo,to,ro){const no=eo.offset,oo=eo.getNode();if(no===0){const io=oo.getPreviousSibling(),so=oo.getParent();if(to){if((ro||!to)&&io===null&&qi(so)&&so.isInline()){const ao=so.getPreviousSibling();Br(ao)&&(eo.key=ao.__key,eo.offset=ao.getTextContent().length)}}else qi(io)&&!ro&&io.isInline()?(eo.key=io.__key,eo.offset=io.getChildrenSize(),eo.type="element"):Br(io)&&(eo.key=io.__key,eo.offset=io.getTextContent().length)}else if(no===oo.getTextContent().length){const io=oo.getNextSibling(),so=oo.getParent();if(to&&qi(io)&&io.isInline())eo.key=io.__key,eo.offset=0,eo.type="element";else if((ro||to)&&io===null&&qi(so)&&so.isInline()&&!so.canInsertTextAfter()){const ao=so.getNextSibling();Br(ao)&&(eo.key=ao.__key,eo.offset=0)}}}function ii(eo,to,ro){if(eo.type==="text"&&to.type==="text"){const no=eo.isBefore(to),oo=eo.is(to);ri(eo,no,oo),ri(to,!no,oo),oo&&(to.key=eo.key,to.offset=eo.offset,to.type=eo.type);const io=Oi();if(io.isComposing()&&io._compositionKey!==eo.key&&Xr(ro)){const so=ro.anchor,ao=ro.focus;qr(eo,so.key,so.offset,so.type),qr(to,ao.key,ao.offset,ao.type)}}}function si(eo,to,ro,no,oo,io){if(eo===null||ro===null||!Xe(oo,eo,ro))return null;const so=ni(eo,to,Xr(io)?io.anchor:null,oo);if(so===null)return null;const ao=ni(ro,no,Xr(io)?io.focus:null,oo);if(ao===null)return null;if(so.type==="element"&&ao.type==="element"){const lo=pt$1(eo),uo=pt$1(ro);if(Hi(lo)&&Hi(uo))return null}return ii(so,ao,io),[so,ao]}function oi(eo){return qi(eo)&&!eo.isInline()}function li(eo,to,ro,no,oo,io){const so=Ii(),ao=new Yr(Vr(eo,to,oo),Vr(ro,no,io),0,"");return ao.dirty=!0,so._selection=ao,ao}function ci(){const eo=Vr("root",0,"element"),to=Vr("root",0,"element");return new Yr(eo,to,0,"")}function ui(){return new Qr(new Set)}function ai(eo,to,ro,no){const oo=ro._window;if(oo===null)return null;const io=no||oo.event,so=io?io.type:void 0,ao=so==="selectionchange",lo=!Ae&&(ao||so==="beforeinput"||so==="compositionstart"||so==="compositionend"||so==="click"&&io&&io.detail===3||so==="drop"||so===void 0);let uo,co,fo,ho;if(Xr(eo)&&!lo)return eo.clone();if(to===null)return null;if(uo=to.anchorNode,co=to.focusNode,fo=to.anchorOffset,ho=to.focusOffset,ao&&Xr(eo)&&!Xe(ro,uo,co))return eo.clone();const po=si(uo,fo,co,ho,ro,eo);if(po===null)return null;const[go,vo]=po;return new Yr(go,vo,Xr(eo)?eo.format:0,Xr(eo)?eo.style:"")}function fi(){return Ii()._selection}function di(){return Oi()._editorState._selection}function hi(eo,to,ro,no=1){const oo=eo.anchor,io=eo.focus,so=oo.getNode(),ao=io.getNode();if(!to.is(so)&&!to.is(ao))return;const lo=to.__key;if(eo.isCollapsed()){const uo=oo.offset;if(ro<=uo&&no>0||ro0||ro0||ro=ao,uo=lo?io.getChildAtIndex(ao-1):io.getChildAtIndex(ro);if(Br(uo)){let co=0;lo&&(co=uo.getTextContentSize()),to.set(uo.__key,co,"text"),no.set(uo.__key,co,"text")}}else{if(qi(io)){const ao=io.getChildrenSize(),lo=ro>=ao,uo=lo?io.getChildAtIndex(ao-1):io.getChildAtIndex(ro);if(Br(uo)){let co=0;lo&&(co=uo.getTextContentSize()),to.set(uo.__key,co,"text")}}if(qi(so)){const ao=so.getChildrenSize(),lo=oo>=ao,uo=lo?so.getChildAtIndex(ao-1):so.getChildAtIndex(oo);if(Br(uo)){let co=0;lo&&(co=uo.getTextContentSize()),no.set(uo.__key,co,"text")}}}}function _i(eo,to,ro,no,oo){let io=null,so=0,ao=null;no!==null?(io=no.__key,Br(no)?(so=no.getTextContentSize(),ao="text"):qi(no)&&(so=no.getChildrenSize(),ao="element")):oo!==null&&(io=oo.__key,Br(oo)?ao="text":qi(oo)&&(ao="element")),io!==null&&ao!==null?eo.set(io,so,ao):(so=to.getIndexWithinParent(),so===-1&&(so=ro.getChildrenSize()),eo.set(ro.__key,so,"element"))}function pi(eo,to,ro,no,oo){eo.type==="text"?(eo.key=ro,to||(eo.offset+=oo)):eo.offset>no.getIndexWithinParent()&&(eo.offset-=1)}function yi(eo,to,ro,no,oo,io,so){const ao=no.anchorNode,lo=no.focusNode,uo=no.anchorOffset,co=no.focusOffset,fo=document.activeElement;if(oo.has("collaboration")&&fo!==io||fo!==null&&Qe(fo))return;if(!Xr(to))return void(eo!==null&&Xe(ro,ao,lo)&&no.removeAllRanges());const ho=to.anchor,po=to.focus,go=ho.key,vo=po.key,bo=Kt(ro,go),xo=Kt(ro,vo),_o=ho.offset,Eo=po.offset,So=to.format,To=to.style,wo=to.isCollapsed();let Co=bo,Oo=xo,Ao=!1;if(ho.type==="text"){Co=et(bo);const Fo=ho.getNode();Ao=Fo.getFormat()!==So||Fo.getStyle()!==To}else Xr(eo)&&eo.anchor.type==="text"&&(Ao=!0);var Ro,No,Mo,Do,jo;if(po.type==="text"&&(Oo=et(xo)),Co!==null&&Oo!==null&&(wo&&(eo===null||Ao||Xr(eo)&&(eo.format!==So||eo.style!==To))&&(Ro=So,No=To,Mo=_o,Do=go,jo=performance.now(),rr=[Ro,No,Mo,Do,jo]),uo!==_o||co!==Eo||ao!==Co||lo!==Oo||no.type==="Range"&&wo||(fo!==null&&io.contains(fo)||io.focus({preventScroll:!0}),ho.type==="element"))){try{no.setBaseAndExtent(Co,_o,Oo,Eo)}catch{}if(!oo.has("skip-scroll-into-view")&&to.isCollapsed()&&io!==null&&io===document.activeElement){const Fo=to instanceof Yr&&to.anchor.type==="element"?Co.childNodes[_o]||null:no.rangeCount>0?no.getRangeAt(0):null;if(Fo!==null){let $o;if(Fo instanceof Text){const Lo=document.createRange();Lo.selectNode(Fo),$o=Lo.getBoundingClientRect()}else $o=Fo.getBoundingClientRect();(function(Lo,Ho,qo){const Uo=qo.ownerDocument,Yo=Uo.defaultView;if(Yo===null)return;let{top:Zo,bottom:_s}=Ho,Ss=0,As=0,Ns=qo;for(;Ns!==null;){const ws=Ns===Uo.body;if(ws)Ss=0,As=Ht(Lo).innerHeight;else{const Jo=Ns.getBoundingClientRect();Ss=Jo.top,As=Jo.bottom}let Ds=0;if(ZoAs&&(Ds=_s-As),Ds!==0)if(ws)Yo.scrollBy(0,Ds);else{const Jo=Ns.scrollTop;Ns.scrollTop+=Ds;const Cs=Ns.scrollTop-Jo;Zo-=Cs,_s-=Cs}if(ws)break;Ns=Jt(Ns)}})(ro,$o,io)}}Gn=!0}}function mi(eo){let to=fi()||di();to===null&&(to=ht$1().selectEnd()),to.insertNodes(eo)}function xi(){const eo=fi();return eo===null?"":eo.getTextContent()}function vi(eo){eo.isCollapsed()||eo.removeText();const to=eo.anchor;let ro=to.getNode(),no=to.offset;for(;!ln(ro);)[ro,no]=Ti(ro,no);return no}function Ti(eo,to){const ro=eo.getParent();if(!ro){const oo=rs();return ht$1().append(oo),oo.select(),[ht$1(),0]}if(Br(eo)){const oo=eo.splitText(to);if(oo.length===0)return[ro,eo.getIndexWithinParent()];const io=to===0?0:1;return[ro,oo[0].getIndexWithinParent()+io]}if(!qi(eo)||to===0)return[ro,eo.getIndexWithinParent()];const no=eo.getChildAtIndex(to);if(no){const oo=new Yr(Vr(eo.__key,to,"element"),Vr(eo.__key,to,"element"),0,""),io=eo.insertNewAfter(oo);io&&io.append(no,...no.getNextSiblings())}return[ro,eo.getIndexWithinParent()+1]}let Si=null,ki=null,Ci=!1,bi=!1,Ni=0;const wi={characterData:!0,childList:!0,subtree:!0};function Ei(){return Ci||Si!==null&&Si._readOnly}function Pi(){Ci&&H$1(13)}function Di(){Ni>99&&H$1(14)}function Ii(){return Si===null&&H$1(15),Si}function Oi(){return ki===null&&H$1(16),ki}function Ai(){return ki}function Li(eo,to,ro){const no=to.__type,oo=function(ao,lo){const uo=ao._nodes.get(lo);return uo===void 0&&H$1(30,lo),uo}(eo,no);let io=ro.get(no);io===void 0&&(io=Array.from(oo.transforms),ro.set(no,io));const so=io.length;for(let ao=0;ao{oo=Ki(eo,to,ro)}),oo}const no=xt$1(eo);for(let oo=4;oo>=0;oo--)for(let io=0;io0||Mo>0;){if(Ro>0){Eo._dirtyLeaves=new Set;for(const Do of Ao){const jo=wo.get(Do);Br(jo)&&jo.isAttached()&&jo.isSimpleText()&&!jo.isUnmergeable()&&Ve(jo),jo!==void 0&&Fi(jo,Co)&&Li(Eo,jo,Oo),So.add(Do)}if(Ao=Eo._dirtyLeaves,Ro=Ao.size,Ro>0){Ni++;continue}}Eo._dirtyLeaves=new Set,Eo._dirtyElements=new Map;for(const Do of No){const jo=Do[0],Fo=Do[1];if(jo!=="root"&&!Fo)continue;const $o=wo.get(jo);$o!==void 0&&Fi($o,Co)&&Li(Eo,$o,Oo),To.set(jo,Fo)}Ao=Eo._dirtyLeaves,Ro=Ao.size,No=Eo._dirtyElements,Mo=No.size,Ni++}Eo._dirtyLeaves=So,Eo._dirtyElements=To}(uo,eo),Ji(eo),function(_o,Eo,So,To){const wo=_o._nodeMap,Co=Eo._nodeMap,Oo=[];for(const[Ao]of To){const Ro=Co.get(Ao);Ro!==void 0&&(Ro.isAttached()||(qi(Ro)&&an(Ro,Ao,wo,Co,Oo,To),wo.has(Ao)||To.delete(Ao),Oo.push(Ao)))}for(const Ao of Oo)Co.delete(Ao);for(const Ao of So){const Ro=Co.get(Ao);Ro===void 0||Ro.isAttached()||(wo.has(Ao)||So.delete(Ao),Co.delete(Ao))}}(lo,uo,eo._dirtyLeaves,eo._dirtyElements)),bo!==eo._compositionKey&&(uo._flushSync=!0);const xo=uo._selection;if(Xr(xo)){const _o=uo._nodeMap,Eo=xo.anchor.key,So=xo.focus.key;_o.get(Eo)!==void 0&&_o.get(So)!==void 0||H$1(19)}else Zr(xo)&&xo._nodes.size===0&&(uo._selection=null)}catch(bo){return bo instanceof Error&&eo._onError(bo),eo._pendingEditorState=lo,eo._dirtyType=ce,eo._cloneNotNeeded.clear(),eo._dirtyLeaves=new Set,eo._dirtyElements.clear(),void Bi(eo)}finally{Si=fo,Ci=ho,ki=po,eo._updating=go,Ni=0}eo._dirtyType!==oe||function(bo,xo){const _o=xo.getEditorState()._selection,Eo=bo._selection;if(Eo!==null){if(Eo.dirty||!Eo.is(_o))return!0}else if(_o!==null)return!0;return!1}(uo,eo)?uo._flushSync?(uo._flushSync=!1,Bi(eo)):co&&qe(()=>{Bi(eo)}):(uo._flushSync=!1,co&&(no.clear(),eo._deferred=[],eo._pendingEditorState=null))}function Vi(eo,to,ro){eo._updating?eo._updates.push([to,ro]):Ui(eo,to,ro)}class $i extends pr{constructor(to){super(to)}decorate(to,ro){H$1(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Hi(eo){return eo instanceof $i}class ji extends pr{constructor(to){super(to),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 to=this.getFormat();return Ee[to]||""}getIndent(){return this.getLatest().__indent}getChildren(){const to=[];let ro=this.getFirstChild();for(;ro!==null;)to.push(ro),ro=ro.getNextSibling();return to}getChildrenKeys(){const to=[];let ro=this.getFirstChild();for(;ro!==null;)to.push(ro.__key),ro=ro.getNextSibling();return to}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const to=Oi()._dirtyElements;return to!==null&&to.has(this.__key)}isLastChild(){const to=this.getLatest(),ro=this.getParentOrThrow().getLastChild();return ro!==null&&ro.is(to)}getAllTextNodes(){const to=[];let ro=this.getFirstChild();for(;ro!==null;){if(Br(ro)&&to.push(ro),qi(ro)){const no=ro.getAllTextNodes();to.push(...no)}ro=ro.getNextSibling()}return to}getFirstDescendant(){let to=this.getFirstChild();for(;qi(to);){const ro=to.getFirstChild();if(ro===null)break;to=ro}return to}getLastDescendant(){let to=this.getLastChild();for(;qi(to);){const ro=to.getLastChild();if(ro===null)break;to=ro}return to}getDescendantByIndex(to){const ro=this.getChildren(),no=ro.length;if(to>=no){const io=ro[no-1];return qi(io)&&io.getLastDescendant()||io||null}const oo=ro[to];return qi(oo)&&oo.getFirstDescendant()||oo||null}getFirstChild(){const to=this.getLatest().__first;return to===null?null:ct$1(to)}getFirstChildOrThrow(){const to=this.getFirstChild();return to===null&&H$1(45,this.__key),to}getLastChild(){const to=this.getLatest().__last;return to===null?null:ct$1(to)}getLastChildOrThrow(){const to=this.getLastChild();return to===null&&H$1(96,this.__key),to}getChildAtIndex(to){const ro=this.getChildrenSize();let no,oo;if(to=to;){if(oo===to)return no;no=no.getPreviousSibling(),oo--}return null}getTextContent(){let to="";const ro=this.getChildren(),no=ro.length;for(let oo=0;ooro.remove()),to}append(...to){return this.splice(this.getChildrenSize(),0,to)}setDirection(to){const ro=this.getWritable();return ro.__dir=to,ro}setFormat(to){return this.getWritable().__format=to!==""?we[to]:0,this}setIndent(to){return this.getWritable().__indent=to,this}splice(to,ro,no){const oo=no.length,io=this.getChildrenSize(),so=this.getWritable(),ao=so.__key,lo=[],uo=[],co=this.getChildAtIndex(to+ro);let fo=null,ho=io-ro+oo;if(to!==0)if(to===io)fo=this.getLastChild();else{const go=this.getChildAtIndex(to);go!==null&&(fo=go.getPreviousSibling())}if(ro>0){let go=fo===null?this.getFirstChild():fo.getNextSibling();for(let vo=0;vo({root:Gi(ht$1())}))}}class ts extends ji{static getType(){return"paragraph"}static clone(to){return new ts(to.__key)}createDOM(to){const ro=document.createElement("p"),no=At$1(to.theme,"paragraph");return no!==void 0&&ro.classList.add(...no),ro}updateDOM(to,ro,no){return!1}static importDOM(){return{p:to=>({conversion:ns,priority:0})}}exportDOM(to){const{element:ro}=super.exportDOM(to);if(ro&&on(ro)){this.isEmpty()&&ro.append(document.createElement("br"));const no=this.getFormatType();ro.style.textAlign=no;const oo=this.getDirection();oo&&(ro.dir=oo);const io=this.getIndent();io>0&&(ro.style.textIndent=20*io+"px")}return{element:ro}}static importJSON(to){const ro=rs();return ro.setFormat(to.format),ro.setIndent(to.indent),ro.setDirection(to.direction),ro}exportJSON(){return{...super.exportJSON(),type:"paragraph",version:1}}insertNewAfter(to,ro){const no=rs(),oo=this.getDirection();return no.setDirection(oo),this.insertAfter(no,ro),no}collapseAtStart(){const to=this.getChildren();if(to.length===0||Br(to[0])&&to[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 ns(eo){const to=rs();if(eo.style){to.setFormat(eo.style.textAlign);const ro=parseInt(eo.style.textIndent,10)/20;ro>0&&to.setIndent(ro)}return{node:to}}function rs(){return Yt(new ts)}function is(eo){return eo instanceof ts}const ss=0,os=1,ls=2,cs=3,us=4;function as(eo,to,ro,no){const oo=eo._keyToDOMMap;oo.clear(),eo._editorState=Zi(),eo._pendingEditorState=no,eo._compositionKey=null,eo._dirtyType=oe,eo._cloneNotNeeded.clear(),eo._dirtyLeaves=new Set,eo._dirtyElements.clear(),eo._normalizedNodes=new Set,eo._updateTags=new Set,eo._updates=[],eo._blockCursorElement=null;const io=eo._observer;io!==null&&(io.disconnect(),eo._observer=null),to!==null&&(to.textContent=""),ro!==null&&(ro.textContent="",oo.set("root",ro))}function fs(eo){const to=eo||{},ro=Ai(),no=to.theme||{},oo=eo===void 0?ro:to.parentEditor||null,io=to.disableEvents||!1,so=Zi(),ao=to.namespace||(oo!==null?oo._config.namespace:vt$1()),lo=to.editorState,uo=[Xi,Er,yr,Rr,ts,...to.nodes||[]],{onError:co,html:fo}=to,ho=to.editable===void 0||to.editable;let po;if(eo===void 0&&ro!==null)po=ro._nodes;else{po=new Map;for(let vo=0;vo{Object.keys(So).forEach(To=>{let wo=xo.get(To);wo===void 0&&(wo=[],xo.set(To,wo)),wo.push(So[To])})};return vo.forEach(So=>{const To=So.klass.importDOM;if(To==null||_o.has(To))return;_o.add(To);const wo=To.call(So.klass);wo!==null&&Eo(wo)}),bo&&Eo(bo),xo}(po,fo?fo.import:void 0),ho);return lo!==void 0&&(go._pendingEditorState=lo,go._dirtyType=ce),go}class ds{constructor(to,ro,no,oo,io,so,ao){this._parentEditor=ro,this._rootElement=null,this._editorState=to,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=oo,this._nodes=no,this._decorators={},this._pendingDecorators=null,this._dirtyType=oe,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=vt$1(),this._onError=io,this._htmlConversions=so,this._editable=ao,this._headless=ro!==null&&ro._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(to){const ro=this._listeners.update;return ro.add(to),()=>{ro.delete(to)}}registerEditableListener(to){const ro=this._listeners.editable;return ro.add(to),()=>{ro.delete(to)}}registerDecoratorListener(to){const ro=this._listeners.decorator;return ro.add(to),()=>{ro.delete(to)}}registerTextContentListener(to){const ro=this._listeners.textcontent;return ro.add(to),()=>{ro.delete(to)}}registerRootListener(to){const ro=this._listeners.root;return to(this._rootElement,null),ro.add(to),()=>{to(null,this._rootElement),ro.delete(to)}}registerCommand(to,ro,no){no===void 0&&H$1(35);const oo=this._commands;oo.has(to)||oo.set(to,[new Set,new Set,new Set,new Set,new Set]);const io=oo.get(to);io===void 0&&H$1(36,String(to));const so=io[no];return so.add(ro),()=>{so.delete(ro),io.every(ao=>ao.size===0)&&oo.delete(to)}}registerMutationListener(to,ro){this._nodes.get(to.getType())===void 0&&H$1(37,to.name);const no=this._listeners.mutation;return no.set(ro,to),()=>{no.delete(ro)}}registerNodeTransformToKlass(to,ro){const no=to.getType(),oo=this._nodes.get(no);return oo===void 0&&H$1(37,to.name),oo.transforms.add(ro),oo}registerNodeTransform(to,ro){const no=this.registerNodeTransformToKlass(to,ro),oo=[no],io=no.replaceWithKlass;if(io!=null){const lo=this.registerNodeTransformToKlass(io,ro);oo.push(lo)}var so,ao;return so=this,ao=to.getType(),Vi(so,()=>{const lo=Ii();if(lo.isEmpty())return;if(ao==="root")return void ht$1().markDirty();const uo=lo._nodeMap;for(const[,co]of uo)co.markDirty()},so._pendingEditorState===null?{tag:"history-merge"}:void 0),()=>{oo.forEach(lo=>lo.transforms.delete(ro))}}hasNode(to){return this._nodes.has(to.getType())}hasNodes(to){return to.every(this.hasNode.bind(this))}dispatchCommand(to,ro){return Bt(this,to,ro)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(to){const ro=this._rootElement;if(to!==ro){const no=At$1(this._config.theme,"root"),oo=this._pendingEditorState||this._editorState;if(this._rootElement=to,as(this,ro,to,oo),ro!==null&&(this._config.disableEvents||gr(ro),no!=null&&ro.classList.remove(...no)),to!==null){const io=function(ao){const lo=ao.ownerDocument;return lo&&lo.defaultView||null}(to),so=to.style;so.userSelect="text",so.whiteSpace="pre-wrap",so.wordBreak="break-word",to.setAttribute("data-lexical-editor","true"),this._window=io,this._dirtyType=ce,Ke(this),this._updateTags.add("history-merge"),Bi(this),this._config.disableEvents||function(ao,lo){const uo=ao.ownerDocument,co=Zn.get(uo);co===void 0&&uo.addEventListener("selectionchange",fr),Zn.set(uo,co||1),ao.__lexicalEditor=lo;const fo=ur(ao);for(let ho=0;ho{hr(bo)||(dr(bo),(lo.isEditable()||po==="click")&&go(bo,lo))}:bo=>{if(!hr(bo)&&(dr(bo),lo.isEditable()))switch(po){case"cut":return Bt(lo,W,bo);case"copy":return Bt(lo,M$3,bo);case"paste":return Bt(lo,c$5,bo);case"dragstart":return Bt(lo,A$3,bo);case"dragover":return Bt(lo,L$2,bo);case"dragend":return Bt(lo,F$1,bo);case"focus":return Bt(lo,U,bo);case"blur":return Bt(lo,V,bo);case"drop":return Bt(lo,I$1,bo)}};ao.addEventListener(po,vo),fo.push(()=>{ao.removeEventListener(po,vo)})}}(to,this),no!=null&&to.classList.add(...no)}else this._editorState=oo,this._pendingEditorState=null,this._window=null;Ri("root",this,!1,to,ro)}}getElementByKey(to){return this._keyToDOMMap.get(to)||null}getEditorState(){return this._editorState}setEditorState(to,ro){to.isEmpty()&&H$1(38),Re(this);const no=this._pendingEditorState,oo=this._updateTags,io=ro!==void 0?ro.tag:null;no===null||no.isEmpty()||(io!=null&&oo.add(io),Bi(this)),this._pendingEditorState=to,this._dirtyType=ce,this._dirtyElements.set("root",!1),this._compositionKey=null,io!=null&&oo.add(io),Bi(this)}parseEditorState(to,ro){return function(no,oo,io){const so=Zi(),ao=Si,lo=Ci,uo=ki,co=oo._dirtyElements,fo=oo._dirtyLeaves,ho=oo._cloneNotNeeded,po=oo._dirtyType;oo._dirtyElements=new Map,oo._dirtyLeaves=new Set,oo._cloneNotNeeded=new Set,oo._dirtyType=0,Si=so,Ci=!1,ki=oo;try{const go=oo._nodes;Wi(no.root,go),io&&io(),so._readOnly=!0}catch(go){go instanceof Error&&oo._onError(go)}finally{oo._dirtyElements=co,oo._dirtyLeaves=fo,oo._cloneNotNeeded=ho,oo._dirtyType=po,Si=ao,Ci=lo,ki=uo}return so}(typeof to=="string"?JSON.parse(to):to,this,ro)}update(to,ro){Vi(this,to,ro)}focus(to,ro={}){const no=this._rootElement;no!==null&&(no.setAttribute("autocapitalize","off"),Vi(this,()=>{const oo=fi(),io=ht$1();oo!==null?oo.dirty=!0:io.getChildrenSize()!==0&&(ro.defaultSelection==="rootStart"?io.selectStart():io.selectEnd())},{onUpdate:()=>{no.removeAttribute("autocapitalize"),to&&to()},tag:"focus"}),this._pendingEditorState===null&&no.removeAttribute("autocapitalize"))}blur(){const to=this._rootElement;to!==null&&to.blur();const ro=nn(this._window);ro!==null&&ro.removeAllRanges()}isEditable(){return this._editable}setEditable(to){this._editable!==to&&(this._editable=to,Ri("editable",this,!0,to))}toJSON(){return{editorState:this._editorState.toJSON()}}}const modProd$i=Object.freeze(Object.defineProperty({__proto__:null,$addUpdateTag:Vt,$applyNodeReplacement:Yt,$copyNode:Xt,$createLineBreakNode:xr,$createNodeSelection:ui,$createParagraphNode:rs,$createPoint:Vr,$createRangeSelection:ci,$createTabNode:Kr,$createTextNode:zr,$getAdjacentNode:Wt,$getCharacterOffsets:ei,$getEditor:un,$getNearestNodeFromDOMNode:at$1,$getNearestRootOrShadowRoot:qt,$getNodeByKey:ct$1,$getPreviousSelection:di,$getRoot:ht$1,$getSelection:fi,$getTextContent:xi,$hasAncestor:$t,$hasUpdateTag:Ut,$insertNodes:mi,$isBlockElementNode:oi,$isDecoratorNode:Hi,$isElementNode:qi,$isInlineElementOrDecoratorNode:jt,$isLeafNode:nt,$isLineBreakNode:vr,$isNodeSelection:Zr,$isParagraphNode:is,$isRangeSelection:Xr,$isRootNode:Yi,$isRootOrShadowRoot:Qt,$isTabNode:Jr,$isTextNode:Br,$nodesOfType:Ft,$normalizeSelection__EXPERIMENTAL:$e,$parseSerializedNode:Mi,$selectAll:Ot$1,$setCompositionKey:ot,$setSelection:_t,$splitNode:rn,BLUR_COMMAND:V,CAN_REDO_COMMAND:K$2,CAN_UNDO_COMMAND:J,CLEAR_EDITOR_COMMAND:B$2,CLEAR_HISTORY_COMMAND:R$2,CLICK_COMMAND:r$1,COMMAND_PRIORITY_CRITICAL:us,COMMAND_PRIORITY_EDITOR:ss,COMMAND_PRIORITY_HIGH:cs,COMMAND_PRIORITY_LOW:os,COMMAND_PRIORITY_NORMAL:ls,CONTROLLED_TEXT_INSERTION_COMMAND:l$3,COPY_COMMAND:M$3,CUT_COMMAND:W,DELETE_CHARACTER_COMMAND:i$3,DELETE_LINE_COMMAND:f$4,DELETE_WORD_COMMAND:a$4,DRAGEND_COMMAND:F$1,DRAGOVER_COMMAND:L$2,DRAGSTART_COMMAND:A$3,DROP_COMMAND:I$1,DecoratorNode:$i,ElementNode:ji,FOCUS_COMMAND:U,FORMAT_ELEMENT_COMMAND:O$2,FORMAT_TEXT_COMMAND:d$4,INDENT_CONTENT_COMMAND:P$3,INSERT_LINE_BREAK_COMMAND:s$2,INSERT_PARAGRAPH_COMMAND:o$5,INSERT_TAB_COMMAND:E$4,KEY_ARROW_DOWN_COMMAND:T$3,KEY_ARROW_LEFT_COMMAND:m$5,KEY_ARROW_RIGHT_COMMAND:p$4,KEY_ARROW_UP_COMMAND:v$3,KEY_BACKSPACE_COMMAND:C$5,KEY_DELETE_COMMAND:N$3,KEY_DOWN_COMMAND:_$5,KEY_ENTER_COMMAND:S$4,KEY_ESCAPE_COMMAND:b$2,KEY_MODIFIER_COMMAND:$$1,KEY_SPACE_COMMAND:k$2,KEY_TAB_COMMAND:w$3,LineBreakNode:yr,MOVE_TO_END:y$4,MOVE_TO_START:x$5,OUTDENT_CONTENT_COMMAND:D$2,PASTE_COMMAND:c$5,ParagraphNode:ts,REDO_COMMAND:g$6,REMOVE_TEXT_COMMAND:u$5,RootNode:Xi,SELECTION_CHANGE_COMMAND:t$4,SELECTION_INSERT_CLIPBOARD_NODES_COMMAND:n$2,SELECT_ALL_COMMAND:z$1,TabNode:Rr,TextNode:Er,UNDO_COMMAND:h$3,createCommand:e$1,createEditor:fs,getNearestEditorFromDOMNode:Ye,isCurrentlyReadOnlyMode:Ei,isHTMLAnchorElement:sn,isHTMLElement:on,isSelectionCapturedInDecoratorInput:Qe,isSelectionWithinEditor:Xe},Symbol.toStringTag,{value:"Module"})),mod$i=modProd$i,$applyNodeReplacement=mod$i.$applyNodeReplacement,$copyNode=mod$i.$copyNode,$createNodeSelection=mod$i.$createNodeSelection,$createParagraphNode=mod$i.$createParagraphNode,$createRangeSelection=mod$i.$createRangeSelection,$createTabNode=mod$i.$createTabNode,$createTextNode=mod$i.$createTextNode,$getAdjacentNode=mod$i.$getAdjacentNode,$getCharacterOffsets=mod$i.$getCharacterOffsets,$getNearestNodeFromDOMNode=mod$i.$getNearestNodeFromDOMNode,$getNodeByKey=mod$i.$getNodeByKey,$getPreviousSelection=mod$i.$getPreviousSelection,$getRoot=mod$i.$getRoot,$getSelection=mod$i.$getSelection,$hasAncestor=mod$i.$hasAncestor,$insertNodes=mod$i.$insertNodes,$isDecoratorNode=mod$i.$isDecoratorNode,$isElementNode=mod$i.$isElementNode,$isLeafNode=mod$i.$isLeafNode,$isLineBreakNode=mod$i.$isLineBreakNode,$isNodeSelection=mod$i.$isNodeSelection,$isParagraphNode=mod$i.$isParagraphNode,$isRangeSelection=mod$i.$isRangeSelection,$isRootNode=mod$i.$isRootNode,$isRootOrShadowRoot=mod$i.$isRootOrShadowRoot,$isTextNode=mod$i.$isTextNode,$normalizeSelection__EXPERIMENTAL=mod$i.$normalizeSelection__EXPERIMENTAL,$parseSerializedNode=mod$i.$parseSerializedNode,$selectAll=mod$i.$selectAll,$setSelection=mod$i.$setSelection,$splitNode=mod$i.$splitNode,CAN_REDO_COMMAND=mod$i.CAN_REDO_COMMAND,CAN_UNDO_COMMAND=mod$i.CAN_UNDO_COMMAND,CLEAR_EDITOR_COMMAND=mod$i.CLEAR_EDITOR_COMMAND,CLEAR_HISTORY_COMMAND=mod$i.CLEAR_HISTORY_COMMAND,CLICK_COMMAND=mod$i.CLICK_COMMAND,COMMAND_PRIORITY_CRITICAL=mod$i.COMMAND_PRIORITY_CRITICAL,COMMAND_PRIORITY_EDITOR=mod$i.COMMAND_PRIORITY_EDITOR,COMMAND_PRIORITY_HIGH=mod$i.COMMAND_PRIORITY_HIGH,COMMAND_PRIORITY_LOW=mod$i.COMMAND_PRIORITY_LOW,CONTROLLED_TEXT_INSERTION_COMMAND=mod$i.CONTROLLED_TEXT_INSERTION_COMMAND,COPY_COMMAND=mod$i.COPY_COMMAND,CUT_COMMAND=mod$i.CUT_COMMAND,DELETE_CHARACTER_COMMAND=mod$i.DELETE_CHARACTER_COMMAND,DELETE_LINE_COMMAND=mod$i.DELETE_LINE_COMMAND,DELETE_WORD_COMMAND=mod$i.DELETE_WORD_COMMAND,DRAGOVER_COMMAND=mod$i.DRAGOVER_COMMAND,DRAGSTART_COMMAND=mod$i.DRAGSTART_COMMAND,DROP_COMMAND=mod$i.DROP_COMMAND,DecoratorNode=mod$i.DecoratorNode,ElementNode=mod$i.ElementNode,FORMAT_ELEMENT_COMMAND=mod$i.FORMAT_ELEMENT_COMMAND,FORMAT_TEXT_COMMAND=mod$i.FORMAT_TEXT_COMMAND,INDENT_CONTENT_COMMAND=mod$i.INDENT_CONTENT_COMMAND,INSERT_LINE_BREAK_COMMAND=mod$i.INSERT_LINE_BREAK_COMMAND,INSERT_PARAGRAPH_COMMAND=mod$i.INSERT_PARAGRAPH_COMMAND,INSERT_TAB_COMMAND=mod$i.INSERT_TAB_COMMAND,KEY_ARROW_DOWN_COMMAND=mod$i.KEY_ARROW_DOWN_COMMAND,KEY_ARROW_LEFT_COMMAND=mod$i.KEY_ARROW_LEFT_COMMAND,KEY_ARROW_RIGHT_COMMAND=mod$i.KEY_ARROW_RIGHT_COMMAND,KEY_ARROW_UP_COMMAND=mod$i.KEY_ARROW_UP_COMMAND,KEY_BACKSPACE_COMMAND=mod$i.KEY_BACKSPACE_COMMAND,KEY_DELETE_COMMAND=mod$i.KEY_DELETE_COMMAND,KEY_ENTER_COMMAND=mod$i.KEY_ENTER_COMMAND,KEY_ESCAPE_COMMAND=mod$i.KEY_ESCAPE_COMMAND,LineBreakNode=mod$i.LineBreakNode,OUTDENT_CONTENT_COMMAND=mod$i.OUTDENT_CONTENT_COMMAND,PASTE_COMMAND=mod$i.PASTE_COMMAND,ParagraphNode=mod$i.ParagraphNode,REDO_COMMAND=mod$i.REDO_COMMAND,REMOVE_TEXT_COMMAND=mod$i.REMOVE_TEXT_COMMAND,RootNode=mod$i.RootNode,SELECTION_CHANGE_COMMAND=mod$i.SELECTION_CHANGE_COMMAND,SELECTION_INSERT_CLIPBOARD_NODES_COMMAND=mod$i.SELECTION_INSERT_CLIPBOARD_NODES_COMMAND,SELECT_ALL_COMMAND=mod$i.SELECT_ALL_COMMAND,TextNode$1=mod$i.TextNode,UNDO_COMMAND=mod$i.UNDO_COMMAND,createCommand=mod$i.createCommand,createEditor=mod$i.createEditor,isHTMLAnchorElement$1=mod$i.isHTMLAnchorElement,isHTMLElement$2=mod$i.isHTMLElement,isSelectionCapturedInDecoratorInput=mod$i.isSelectionCapturedInDecoratorInput,isSelectionWithinEditor=mod$i.isSelectionWithinEditor,m$4=new Map;function _$4(eo){let to=eo;for(;to!=null;){if(to.nodeType===Node.TEXT_NODE)return to;to=to.firstChild}return null}function y$3(eo){const to=eo.parentNode;if(to==null)throw new Error("Should never happen");return[to,Array.from(to.childNodes).indexOf(eo)]}function T$2(eo,to,ro,no,oo){const io=to.getKey(),so=no.getKey(),ao=document.createRange();let lo=eo.getElementByKey(io),uo=eo.getElementByKey(so),co=ro,fo=oo;if($isTextNode(to)&&(lo=_$4(lo)),$isTextNode(no)&&(uo=_$4(uo)),to===void 0||no===void 0||lo===null||uo===null)return null;lo.nodeName==="BR"&&([lo,co]=y$3(lo)),uo.nodeName==="BR"&&([uo,fo]=y$3(uo));const ho=lo.firstChild;lo===uo&&ho!=null&&ho.nodeName==="BR"&&co===0&&fo===0&&(fo=1);try{ao.setStart(lo,co),ao.setEnd(uo,fo)}catch{return null}return!ao.collapsed||co===fo&&io===so||(ao.setStart(uo,fo),ao.setEnd(lo,co)),ao}function x$4(eo,to){const ro=eo.getRootElement();if(ro===null)return[];const no=ro.getBoundingClientRect(),oo=getComputedStyle(ro),io=parseFloat(oo.paddingLeft)+parseFloat(oo.paddingRight),so=Array.from(to.getClientRects());let ao,lo=so.length;so.sort((uo,co)=>{const fo=uo.top-co.top;return Math.abs(fo)<=3?uo.left-co.left:fo});for(let uo=0;uoco.top&&ao.left+ao.width>co.left,ho=co.width+io===no.width;fo||ho?(so.splice(uo--,1),lo--):ao=co}return so}function S$3(eo){const to={},ro=eo.split(";");for(const no of ro)if(no!==""){const[oo,io]=no.split(/:([^]+)/);oo&&io&&(to[oo.trim()]=io.trim())}return to}function N$2(eo){let to=m$4.get(eo);return to===void 0&&(to=S$3(eo),m$4.set(eo,to)),to}function E$3(eo){const to=eo.constructor.clone(eo);return to.__parent=eo.__parent,to.__next=eo.__next,to.__prev=eo.__prev,$isElementNode(eo)&&$isElementNode(to)?(no=eo,(ro=to).__first=no.__first,ro.__last=no.__last,ro.__size=no.__size,ro.__format=no.__format,ro.__indent=no.__indent,ro.__dir=no.__dir,ro):$isTextNode(eo)&&$isTextNode(to)?function(oo,io){return oo.__format=io.__format,oo.__style=io.__style,oo.__mode=io.__mode,oo.__detail=io.__detail,oo}(to,eo):to;var ro,no}function v$2(eo,to){const ro=eo.getStartEndPoints();if(to.isSelected(eo)&&!to.isSegmented()&&!to.isToken()&&ro!==null){const[no,oo]=ro,io=eo.isBackward(),so=no.getNode(),ao=oo.getNode(),lo=to.is(so),uo=to.is(ao);if(lo||uo){const[co,fo]=$getCharacterOffsets(eo),ho=so.is(ao),po=to.is(io?ao:so),go=to.is(io?so:ao);let vo,bo=0;return ho?(bo=co>fo?fo:co,vo=co>fo?co:fo):po?(bo=io?fo:co,vo=void 0):go&&(bo=0,vo=io?co:fo),to.__text=to.__text.slice(bo,vo),to}}return to}function C$4(eo){if(eo.type==="text")return eo.offset===eo.getNode().getTextContentSize();const to=eo.getNode();if(!$isElementNode(to))throw Error("isAtNodeEnd: node must be a TextNode or ElementNode");return eo.offset===to.getChildrenSize()}function w$2(eo,to,ro){let no=to.getNode(),oo=ro;if($isElementNode(no)){const io=no.getDescendantByIndex(to.offset);io!==null&&(no=io)}for(;oo>0&&no!==null;){if($isElementNode(no)){const uo=no.getLastDescendant();uo!==null&&(no=uo)}let io=no.getPreviousSibling(),so=0;if(io===null){let uo=no.getParentOrThrow(),co=uo.getPreviousSibling();for(;co===null;){if(uo=uo.getParent(),uo===null){io=null;break}co=uo.getPreviousSibling()}uo!==null&&(so=uo.isInline()?0:2,io=co)}let ao=no.getTextContent();ao===""&&$isElementNode(no)&&!no.isInline()&&(ao=` + +`);const lo=ao.length;if(!$isTextNode(no)||oo>=lo){const uo=no.getParent();no.remove(),uo==null||uo.getChildrenSize()!==0||$isRootNode(uo)||uo.remove(),oo-=lo+so,no=io}else{const uo=no.getKey(),co=eo.getEditorState().read(()=>{const po=$getNodeByKey(uo);return $isTextNode(po)&&po.isSimpleText()?po.getTextContent():null}),fo=lo-oo,ho=ao.slice(0,fo);if(co!==null&&co!==ao){const po=$getPreviousSelection();let go=no;if(no.isSimpleText())no.setTextContent(co);else{const vo=$createTextNode(co);no.replace(vo),go=vo}if($isRangeSelection(po)&&po.isCollapsed()){const vo=po.anchor.offset;go.select(vo,vo)}}else if(no.isSimpleText()){const po=to.key===uo;let go=to.offset;go(ao instanceof Function?io[so]=ao(ro[so]):ao===null?delete io[so]:io[so]=ao,io),{...ro}),oo=function(io){let so="";for(const ao in io)ao&&(so+=`${ao}: ${io[ao]};`);return so}(no);eo.setStyle(oo),m$4.set(oo,no)}function I(eo,to){const ro=eo.getNodes(),no=ro.length,oo=eo.getStartEndPoints();if(oo===null)return;const[io,so]=oo,ao=no-1;let lo=ro[0],uo=ro[ao];if(eo.isCollapsed()&&$isRangeSelection(eo))return void F(eo,to);const co=lo.getTextContent().length,fo=so.offset;let ho=io.offset;const po=io.isBefore(so);let go=po?ho:fo,vo=po?fo:ho;const bo=po?io.type:so.type,xo=po?so.type:io.type,_o=po?so.key:io.key;if($isTextNode(lo)&&go===co){const Eo=lo.getNextSibling();$isTextNode(Eo)&&(ho=0,go=0,lo=Eo)}if(ro.length===1){if($isTextNode(lo)&&lo.canHaveFormat()){if(go=bo==="element"?0:ho>fo?fo:ho,vo=xo==="element"?co:ho>fo?ho:fo,go===vo)return;if(go===0&&vo===co)F(lo,to),lo.select(go,vo);else{const Eo=lo.splitText(go,vo),So=go===0?Eo[0]:Eo[1];F(So,to),So.select(0,vo-go)}}}else{if($isTextNode(lo)&&gofo.append(ho)),ro&&(fo=ro.append(fo)),void uo.replace(fo)}let ao=null,lo=[];for(let uo=0;uo{_o.append(Eo),fo.add(Eo.getKey()),$isElementNode(Eo)&&Eo.getChildrenKeys().forEach(So=>fo.add(So))}),O$1(bo)}}else if(co.has(vo.getKey())){if(!$isElementNode(vo))throw Error("Expected node in emptyElements to be an ElementNode");const xo=no();xo.setFormat(vo.getFormatType()),xo.setIndent(vo.getIndent()),ao.push(xo),vo.remove(!0)}}if(oo!==null)for(let go=0;go=0;go--){const vo=ao[go];lo.insertAfter(vo)}else{const go=lo.getFirstChild();if($isElementNode(go)&&(lo=go),go===null)if(oo)lo.append(oo);else for(let vo=0;vo=0;go--){const vo=ao[go];lo.insertAfter(vo),ho=vo}const po=$getPreviousSelection();$isRangeSelection(po)&&b$1(po.anchor)&&b$1(po.focus)?$setSelection(po.clone()):ho!==null?ho.selectEnd():eo.dirty=!0}function z(eo,to){const ro=$getAdjacentNode(eo.focus,to);return $isDecoratorNode(ro)&&!ro.isIsolated()||$isElementNode(ro)&&!ro.isInline()&&!ro.canBeEmpty()}function A$2(eo,to,ro,no){eo.modify(to?"extend":"move",ro,no)}function R$1(eo){const to=eo.anchor.getNode();return($isRootNode(to)?to:to.getParentOrThrow()).getDirection()==="rtl"}function D$1(eo,to,ro){const no=R$1(eo);A$2(eo,to,ro?!no:no,"character")}function L$1(eo){const to=eo.anchor,ro=eo.focus,no=to.getNode().getTopLevelElementOrThrow().getParentOrThrow();let oo=no.getFirstDescendant(),io=no.getLastDescendant(),so="element",ao="element",lo=0;$isTextNode(oo)?so="text":$isElementNode(oo)||oo===null||(oo=oo.getParentOrThrow()),$isTextNode(io)?(ao="text",lo=io.getTextContentSize()):$isElementNode(io)||io===null||(io=io.getParentOrThrow()),oo&&io&&(to.set(oo.getKey(),0,so),ro.set(io.getKey(),lo,ao))}function H(eo,to,ro){const no=N$2(eo.getStyle());return no!==null&&no[to]||ro}function M$2(eo,to,ro=""){let no=null;const oo=eo.getNodes(),io=eo.anchor,so=eo.focus,ao=eo.isBackward(),lo=ao?so.offset:io.offset,uo=ao?so.getNode():io.getNode();if(eo.isCollapsed()&&eo.style!==""){const co=N$2(eo.style);if(co!==null&&to in co)return co[to]}for(let co=0;co{eo.forEach(to=>to())}}function m$3(eo){return`${eo}px`}const E$2={attributes:!0,characterData:!0,childList:!0,subtree:!0};function x$3(eo,to,ro){let no=null,oo=null,io=null,so=[];const ao=document.createElement("div");function lo(){if(no===null)throw Error("Unexpected null rootDOMNode");if(oo===null)throw Error("Unexpected null parentDOMNode");const{left:fo,top:ho}=no.getBoundingClientRect(),po=oo,go=createRectsFromDOMRange(eo,to);ao.isConnected||po.append(ao);let vo=!1;for(let bo=0;bogo.length;)so.pop();vo&&ro(so)}function uo(){oo=null,no=null,io!==null&&io.disconnect(),io=null,ao.remove();for(const fo of so)fo.remove();so=[]}const co=eo.registerRootListener(function fo(){const ho=eo.getRootElement();if(ho===null)return uo();const po=ho.parentElement;if(!(po instanceof HTMLElement))return uo();uo(),no=ho,oo=po,io=new MutationObserver(go=>{const vo=eo.getRootElement(),bo=vo&&vo.parentElement;if(vo!==no||bo!==oo)return fo();for(const xo of go)if(!ao.contains(xo.target))return lo()}),io.observe(po,E$2),lo()});return()=>{co(),uo()}}function y$2(eo,to){let ro=null,no=null,oo=null,io=null,so=()=>{};function ao(lo){lo.read(()=>{const uo=$getSelection();if(!$isRangeSelection(uo))return ro=null,no=null,oo=null,io=null,so(),void(so=()=>{});const{anchor:co,focus:fo}=uo,ho=co.getNode(),po=ho.getKey(),go=co.offset,vo=fo.getNode(),bo=vo.getKey(),xo=fo.offset,_o=eo.getElementByKey(po),Eo=eo.getElementByKey(bo),So=ro===null||_o===null||go!==no||po!==ro.getKey()||ho!==ro&&(!(ro instanceof TextNode$1)||ho.updateDOM(ro,_o,eo._config)),To=oo===null||Eo===null||xo!==io||bo!==oo.getKey()||vo!==oo&&(!(oo instanceof TextNode$1)||vo.updateDOM(oo,Eo,eo._config));if(So||To){const wo=eo.getElementByKey(co.getNode().getKey()),Co=eo.getElementByKey(fo.getNode().getKey());if(wo!==null&&Co!==null&&wo.tagName==="SPAN"&&Co.tagName==="SPAN"){const Oo=document.createRange();let Ao,Ro,No,Mo;fo.isBefore(co)?(Ao=Co,Ro=fo.offset,No=wo,Mo=co.offset):(Ao=wo,Ro=co.offset,No=Co,Mo=fo.offset);const Do=Ao.firstChild;if(Do===null)throw Error("Expected text node to be first child of span");const jo=No.firstChild;if(jo===null)throw Error("Expected text node to be first child of span");Oo.setStart(Do,Ro),Oo.setEnd(jo,Mo),so(),so=x$3(eo,Oo,Fo=>{for(const $o of Fo){const Lo=$o.style;Lo.background!=="Highlight"&&(Lo.background="Highlight"),Lo.color!=="HighlightText"&&(Lo.color="HighlightText"),Lo.zIndex!=="-1"&&(Lo.zIndex="-1"),Lo.pointerEvents!=="none"&&(Lo.pointerEvents="none"),Lo.marginTop!==m$3(-1.5)&&(Lo.marginTop=m$3(-1.5)),Lo.paddingTop!==m$3(4)&&(Lo.paddingTop=m$3(4)),Lo.paddingBottom!==m$3(0)&&(Lo.paddingBottom=m$3(0))}to!==void 0&&to(Fo)})}}ro=ho,no=go,oo=vo,io=xo})}return ao(eo.getEditorState()),h$2(eo.registerUpdateListener(({editorState:lo})=>ao(lo)),so,()=>{so()})}function v$1(eo,...to){const ro=p$3(...to);ro.length>0&&eo.classList.add(...ro)}function N$1(eo,...to){const ro=p$3(...to);ro.length>0&&eo.classList.remove(...ro)}function w$1(eo,to){for(const ro of to)if(eo.type.startsWith(ro))return!0;return!1}function L(eo,to){const ro=eo[Symbol.iterator]();return new Promise((no,oo)=>{const io=[],so=()=>{const{done:ao,value:lo}=ro.next();if(ao)return no(io);const uo=new FileReader;uo.addEventListener("error",oo),uo.addEventListener("load",()=>{const co=uo.result;typeof co=="string"&&io.push({file:lo,result:co}),so()}),w$1(lo,to)?uo.readAsDataURL(lo):so()};so()})}function T$1(eo,to){const ro=[],no=(eo||$getRoot()).getLatest(),oo=to||($isElementNode(no)?no.getLastDescendant():no);let io=no,so=function(ao){let lo=ao,uo=0;for(;(lo=lo.getParent())!==null;)uo++;return uo}(io);for(;io!==null&&!io.is(oo);)if(ro.push({depth:so,node:io}),$isElementNode(io)&&io.getChildrenSize()>0)io=io.getFirstChild(),so++;else{let ao=null;for(;ao===null&&io!==null;)ao=io.getNextSibling(),ao===null?(io=io.getParent(),so--):io=ao}return io!==null&&io.is(oo)&&ro.push({depth:so,node:io}),ro}function b(eo,to){let ro=eo;for(;ro!=null;){if(ro instanceof to)return ro;ro=ro.getParent()}return null}function S$2(eo){const to=_$3(eo,ro=>$isElementNode(ro)&&!ro.isInline());return $isElementNode(to)||g$5(4,eo.__key),to}const _$3=(eo,to)=>{let ro=eo;for(;ro!==$getRoot()&&ro!=null;){if(to(ro))return ro;ro=ro.getParent()}return null};function B(eo,to,ro,no){const oo=io=>io instanceof to;return eo.registerNodeTransform(to,io=>{const so=(ao=>{const lo=ao.getChildren();for(let fo=0;fo0&&(so+=1,no.splitText(oo))):(io=no,so=oo);const[,ao]=$splitNode(io,so);ao.insertBefore(eo),ao.selectStart()}}else{if(to!=null){const no=to.getNodes();no[no.length-1].getTopLevelElementOrThrow().insertAfter(eo)}else $getRoot().append(eo);const ro=$createParagraphNode();eo.insertAfter(ro),ro.select()}return eo.getLatest()}function A$1(eo,to){const ro=to();return eo.replace(ro),ro.append(eo),ro}function C$3(eo,to){return eo!==null&&Object.getPrototypeOf(eo).constructor.name===to.name}function K(eo,to){const ro=[];for(let no=0;no({conversion:a$3,priority:1})}}static importJSON(to){const ro=g$4(to.url,{rel:to.rel,target:to.target,title:to.title});return ro.setFormat(to.format),ro.setIndent(to.indent),ro.setDirection(to.direction),ro}sanitizeUrl(to){try{const ro=new URL(to);if(!o$4.has(ro.protocol))return"about:blank"}catch{return to}return to}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(to){this.getWritable().__url=to}getTarget(){return this.getLatest().__target}setTarget(to){this.getWritable().__target=to}getRel(){return this.getLatest().__rel}setRel(to){this.getWritable().__rel=to}getTitle(){return this.getLatest().__title}setTitle(to){this.getWritable().__title=to}insertNewAfter(to,ro=!0){const no=g$4(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(no,ro),no}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(to,ro,no){if(!$isRangeSelection(ro))return!1;const oo=ro.anchor.getNode(),io=ro.focus.getNode();return this.isParentOf(oo)&&this.isParentOf(io)&&ro.getTextContent().length>0}};function a$3(eo){let to=null;if(isHTMLAnchorElement(eo)){const ro=eo.textContent;(ro!==null&&ro!==""||eo.children.length>0)&&(to=g$4(eo.getAttribute("href")||"",{rel:eo.getAttribute("rel"),target:eo.getAttribute("target"),title:eo.getAttribute("title")}))}return{node:to}}function g$4(eo,to){return $applyNodeReplacement(new _$2(eo,to))}function c$4(eo){return eo instanceof _$2}let h$1=class d_ extends _$2{static getType(){return"autolink"}static clone(to){return new d_(to.__url,{rel:to.__rel,target:to.__target,title:to.__title},to.__key)}static importJSON(to){const ro=f$3(to.url,{rel:to.rel,target:to.target,title:to.title});return ro.setFormat(to.format),ro.setIndent(to.indent),ro.setDirection(to.direction),ro}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),type:"autolink",version:1}}insertNewAfter(to,ro=!0){const no=this.getParentOrThrow().insertNewAfter(to,ro);if($isElementNode(no)){const oo=f$3(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return no.append(oo),oo}return null}};function f$3(eo,to){return $applyNodeReplacement(new h$1(eo,to))}function p$2(eo){return eo instanceof h$1}const d$3=createCommand("TOGGLE_LINK_COMMAND");function m$2(eo,to={}){const{target:ro,title:no}=to,oo=to.rel===void 0?"noreferrer":to.rel,io=$getSelection();if(!$isRangeSelection(io))return;const so=io.extract();if(eo===null)so.forEach(ao=>{const lo=ao.getParent();if(c$4(lo)){const uo=lo.getChildren();for(let co=0;co{const co=uo.getParent();if(co!==lo&&co!==null&&(!$isElementNode(uo)||uo.isInline())){if(c$4(co))return lo=co,co.setURL(eo),ro!==void 0&&co.setTarget(ro),oo!==null&&lo.setRel(oo),void(no!==void 0&&lo.setTitle(no));if(co.is(ao)||(ao=co,lo=g$4(eo,{rel:oo,target:ro,title:no}),c$4(co)?uo.getPreviousSibling()===null?co.insertBefore(lo):co.insertAfter(lo):uo.insertBefore(lo)),c$4(uo)){if(uo.is(lo))return;if(lo!==null){const fo=uo.getChildren();for(let ho=0;ho{const{theme:no,namespace:oo,editor__DEPRECATED:io,nodes:so,onError:ao,editorState:lo,html:uo}=eo,co=createLexicalComposerContext(null,no);let fo=io||null;if(fo===null){const ho=createEditor({editable:eo.editable,html:uo,namespace:oo,nodes:so,onError:po=>ao(po,ho),theme:no});(function(po,go){if(go!==null){if(go===void 0)po.update(()=>{const vo=$getRoot();if(vo.isEmpty()){const bo=$createParagraphNode();vo.append(bo);const xo=d$2?document.activeElement:null;($getSelection()!==null||xo!==null&&xo===po.getRootElement())&&bo.select()}},u$4);else if(go!==null)switch(typeof go){case"string":{const vo=po.parseEditorState(go);po.setEditorState(vo,u$4);break}case"object":po.setEditorState(go,u$4);break;case"function":po.update(()=>{$getRoot().isEmpty()&&go(po)},u$4)}}})(ho,lo),fo=ho}return[fo,co]},[]);return m$1(()=>{const no=eo.editable,[oo]=ro;oo.setEditable(no===void 0||no)},[]),reactExports.createElement(LexicalComposerContext.Provider,{value:ro},to)}const modProd$d=Object.freeze(Object.defineProperty({__proto__:null,LexicalComposer:f$2},Symbol.toStringTag,{value:"Module"})),mod$d=modProd$d,LexicalComposer=mod$d.LexicalComposer;function n$1(){return n$1=Object.assign?Object.assign.bind():function(eo){for(var to=1;to{Co&&Co.ownerDocument&&Co.ownerDocument.defaultView&&Eo.setRootElement(Co)},[Eo]);return d$1(()=>(To(Eo.isEditable()),Eo.registerEditableListener(Co=>{To(Co)})),[Eo]),reactExports.createElement("div",n$1({},_o,{"aria-activedescendant":So?eo:void 0,"aria-autocomplete":So?to:"none","aria-controls":So?ro:void 0,"aria-describedby":no,"aria-expanded":So&&po==="combobox"?!!oo:void 0,"aria-label":io,"aria-labelledby":so,"aria-multiline":ao,"aria-owns":So?lo:void 0,"aria-readonly":!So||void 0,"aria-required":uo,autoCapitalize:co,className:fo,contentEditable:So,"data-testid":xo,id:ho,ref:wo,role:po,spellCheck:go,style:vo,tabIndex:bo}))}const modProd$c=Object.freeze(Object.defineProperty({__proto__:null,ContentEditable:l$1},Symbol.toStringTag,{value:"Module"})),mod$c=modProd$c,ContentEditable=mod$c.ContentEditable;function e(eo,to){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ro,no){return ro.__proto__=no,ro},e(eo,to)}var t$2={error:null},o$2=function(eo){var to,ro;function no(){for(var io,so=arguments.length,ao=new Array(so),lo=0;lo1){const xo=to._nodeMap,_o=xo.get(io.anchor.key),Eo=xo.get(so.anchor.key);return _o&&Eo&&!eo._nodeMap.has(_o.__key)&&$isTextNode(_o)&&_o.__text.length===1&&io.anchor.offset===1?m:p$1}const lo=ao[0],uo=eo._nodeMap.get(lo.__key);if(!$isTextNode(uo)||!$isTextNode(lo)||uo.__mode!==lo.__mode)return p$1;const co=uo.__text,fo=lo.__text;if(co===fo)return p$1;const ho=io.anchor,po=so.anchor;if(ho.key!==po.key||ho.type!=="text")return p$1;const go=ho.offset,vo=po.offset,bo=fo.length-co.length;return bo===1&&vo===go-1?m:bo===-1&&vo===go+1?g$3:bo===-1&&vo===go?y$1:p$1}function k(eo,to){let ro=Date.now(),no=p$1;return(oo,io,so,ao,lo,uo)=>{const co=Date.now();if(uo.has("historic"))return no=p$1,ro=co,f$1;const fo=S$1(oo,io,ao,lo,eo.isComposing()),ho=(()=>{const po=so===null||so.editor===eo,go=uo.has("history-push");if(!go&&po&&uo.has("history-merge"))return l;if(oo===null)return _$1;const vo=io._selection;return ao.size>0||lo.size>0?go===!1&&fo!==p$1&&fo===no&&co{const ho=to.current,po=to.redoStack,go=to.undoStack,vo=ho===null?null:ho.editorState;if(ho!==null&&ao===vo)return;const bo=no(lo,ao,ho,uo,co,fo);if(bo===_$1)po.length!==0&&(to.redoStack=[],eo.dispatchCommand(CAN_REDO_COMMAND,!1)),ho!==null&&(go.push({...ho}),eo.dispatchCommand(CAN_UNDO_COMMAND,!0));else if(bo===f$1)return;to.current={editor:eo,editorState:ao}},io=mergeRegister(eo.registerCommand(UNDO_COMMAND,()=>(function(ao,lo){const uo=lo.redoStack,co=lo.undoStack;if(co.length!==0){const fo=lo.current,ho=co.pop();fo!==null&&(uo.push(fo),ao.dispatchCommand(CAN_REDO_COMMAND,!0)),co.length===0&&ao.dispatchCommand(CAN_UNDO_COMMAND,!1),lo.current=ho||null,ho&&ho.editor.setEditorState(ho.editorState,{tag:"historic"})}}(eo,to),!0),COMMAND_PRIORITY_EDITOR),eo.registerCommand(REDO_COMMAND,()=>(function(ao,lo){const uo=lo.redoStack,co=lo.undoStack;if(uo.length!==0){const fo=lo.current;fo!==null&&(co.push(fo),ao.dispatchCommand(CAN_UNDO_COMMAND,!0));const ho=uo.pop();uo.length===0&&ao.dispatchCommand(CAN_REDO_COMMAND,!1),lo.current=ho||null,ho&&ho.editor.setEditorState(ho.editorState,{tag:"historic"})}}(eo,to),!0),COMMAND_PRIORITY_EDITOR),eo.registerCommand(CLEAR_EDITOR_COMMAND,()=>(C$2(to),!1),COMMAND_PRIORITY_EDITOR),eo.registerCommand(CLEAR_HISTORY_COMMAND,()=>(C$2(to),eo.dispatchCommand(CAN_REDO_COMMAND,!1),eo.dispatchCommand(CAN_UNDO_COMMAND,!1),!0),COMMAND_PRIORITY_EDITOR),eo.registerUpdateListener(oo)),so=eo.registerUpdateListener(oo);return()=>{io(),so()}}function M(){return{current:null,redoStack:[],undoStack:[]}}const modProd$a=Object.freeze(Object.defineProperty({__proto__:null,createEmptyHistoryState:M,registerHistory:x$2},Symbol.toStringTag,{value:"Module"})),mod$a=modProd$a,createEmptyHistoryState=mod$a.createEmptyHistoryState,registerHistory=mod$a.registerHistory;function c$3({externalHistoryState:eo}){const[to]=useLexicalComposerContext();return function(ro,no,oo=1e3){const io=reactExports.useMemo(()=>no||createEmptyHistoryState(),[no]);reactExports.useEffect(()=>registerHistory(ro,io,oo),[oo,ro,io])}(to,eo),null}const modProd$9=Object.freeze(Object.defineProperty({__proto__:null,HistoryPlugin:c$3,createEmptyHistoryState},Symbol.toStringTag,{value:"Module"})),mod$9=modProd$9,HistoryPlugin=mod$9.HistoryPlugin;var o$1=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?reactExports.useLayoutEffect:reactExports.useEffect;function i$2({ignoreHistoryMergeTagChange:eo=!0,ignoreSelectionChange:to=!1,onChange:ro}){const[no]=useLexicalComposerContext();return o$1(()=>{if(ro)return no.registerUpdateListener(({editorState:oo,dirtyElements:io,dirtyLeaves:so,prevEditorState:ao,tags:lo})=>{to&&io.size===0&&so.size===0||eo&&lo.has("history-merge")||ao.isEmpty()||ro(oo,no,lo)})},[no,eo,to,ro]),null}const modProd$8=Object.freeze(Object.defineProperty({__proto__:null,OnChangePlugin:i$2},Symbol.toStringTag,{value:"Module"})),mod$8=modProd$8,OnChangePlugin=mod$8.OnChangePlugin;var u$3=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?reactExports.useLayoutEffect:reactExports.useEffect;function c$2(eo){return{initialValueFn:()=>eo.isEditable(),subscribe:to=>eo.registerEditableListener(to)}}function a$2(){return function(eo){const[to]=useLexicalComposerContext(),ro=reactExports.useMemo(()=>eo(to),[to,eo]),no=reactExports.useRef(ro.initialValueFn()),[oo,io]=reactExports.useState(no.current);return u$3(()=>{const{initialValueFn:so,subscribe:ao}=ro,lo=so();return no.current!==lo&&(no.current=lo,io(lo)),ao(uo=>{no.current=uo,io(uo)})},[ro,eo]),oo}(c$2)}const modProd$7=Object.freeze(Object.defineProperty({__proto__:null,default:a$2},Symbol.toStringTag,{value:"Module"})),mod$7=modProd$7,t$1=mod$7.default;function s$1(eo,to){let ro=eo.getFirstChild(),no=0;e:for(;ro!==null;){if($isElementNode(ro)){const so=ro.getFirstChild();if(so!==null){ro=so;continue}}else if($isTextNode(ro)){const so=ro.getTextContentSize();if(no+so>to)return{node:ro,offset:to-no};no+=so}const oo=ro.getNextSibling();if(oo!==null){ro=oo;continue}let io=ro.getParent();for(;io!==null;){const so=io.getNextSibling();if(so!==null){ro=so;continue e}io=io.getParent()}break}return null}function u$2(eo,to=!0){if(eo)return!1;let ro=c$1();return to&&(ro=ro.trim()),ro===""}function f(eo,to){return()=>u$2(eo,to)}function c$1(){return $getRoot().getTextContent()}function g$2(eo){if(!u$2(eo,!1))return!1;const to=$getRoot().getChildren(),ro=to.length;if(ro>1)return!1;for(let no=0;nog$2(eo)}function a$1(eo,to,ro,no){const oo=so=>so instanceof ro,io=so=>{const ao=$createTextNode(so.getTextContent());ao.setFormat(so.getFormat()),so.replace(ao)};return[eo.registerNodeTransform(TextNode$1,so=>{if(!so.isSimpleText())return;const ao=so.getPreviousSibling();let lo,uo=so.getTextContent(),co=so;if($isTextNode(ao)){const fo=ao.getTextContent(),ho=to(fo+uo);if(oo(ao)){if(ho===null||(po=>po.getLatest().__mode)(ao)!==0)return void io(ao);{const po=ho.end-fo.length;if(po>0){const go=fo+uo.slice(0,po);if(ao.select(),ao.setTextContent(go),po===uo.length)so.remove();else{const vo=uo.slice(po);so.setTextContent(vo)}return}}}else if(ho===null||ho.start{const ao=so.getTextContent(),lo=to(ao);if(lo===null||lo.start!==0)return void io(so);if(ao.length>lo.end)return void so.splitText(lo.end);const uo=so.getPreviousSibling();$isTextNode(uo)&&uo.isTextEntity()&&(io(uo),io(so));const co=so.getNextSibling();$isTextNode(co)&&co.isTextEntity()&&(io(co),oo(so)&&io(so))})]}const modProd$6=Object.freeze(Object.defineProperty({__proto__:null,$canShowPlaceholder:g$2,$canShowPlaceholderCurry:x$1,$findTextIntersectionFromCharacters:s$1,$isRootTextContentEmpty:u$2,$isRootTextContentEmptyCurry:f,$rootTextContent:c$1,registerLexicalTextEntity:a$1},Symbol.toStringTag,{value:"Module"})),mod$6=modProd$6,$canShowPlaceholderCurry=mod$6.$canShowPlaceholderCurry;function o(eo){const to=window.location.origin,ro=no=>{if(no.origin!==to)return;const oo=eo.getRootElement();if(document.activeElement!==oo)return;const io=no.data;if(typeof io=="string"){let so;try{so=JSON.parse(io)}catch{return}if(so&&so.protocol==="nuanria_messaging"&&so.type==="request"){const ao=so.payload;if(ao&&ao.functionId==="makeChanges"){const lo=ao.args;if(lo){const[uo,co,fo,ho,po,go]=lo;eo.update(()=>{const vo=$getSelection();if($isRangeSelection(vo)){const bo=vo.anchor;let xo=bo.getNode(),_o=0,Eo=0;if($isTextNode(xo)&&uo>=0&&co>=0&&(_o=uo,Eo=uo+co,vo.setTextNodeRange(xo,_o,xo,Eo)),_o===Eo&&fo===""||(vo.insertRawText(fo),xo=bo.getNode()),$isTextNode(xo)){_o=ho,Eo=ho+po;const So=xo.getTextContentSize();_o=_o>So?So:_o,Eo=Eo>So?So:Eo,vo.setTextNodeRange(xo,_o,xo,Eo)}no.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",ro,!0),()=>{window.removeEventListener("message",ro,!0)}}const modProd$5=Object.freeze(Object.defineProperty({__proto__:null,registerDragonSupport:o},Symbol.toStringTag,{value:"Module"})),mod$5=modProd$5,registerDragonSupport=mod$5.registerDragonSupport;function i$1(eo,to){const ro=to.body?to.body.childNodes:[];let no=[];for(let oo=0;oo"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 ro=document.createElement("div"),no=$getRoot().getChildren();for(let oo=0;oow?(eo||window).getSelection():null;function v(eo){const to=$getSelection();if(to==null)throw Error("Expected valid LexicalSelection");return $isRangeSelection(to)&&to.isCollapsed()||to.getNodes().length===0?"":$generateHtmlFromNodes(eo,to)}function D(eo){const to=$getSelection();if(to==null)throw Error("Expected valid LexicalSelection");return $isRangeSelection(to)&&to.isCollapsed()||to.getNodes().length===0?null:JSON.stringify(T(eo,to))}function C$1(eo,to){const ro=eo.getData("text/plain")||eo.getData("text/uri-list");ro!=null&&to.insertRawText(ro)}function E$1(eo,to,ro){const no=eo.getData("application/x-lexical-editor");if(no)try{const so=JSON.parse(no);if(so.namespace===ro._config.namespace&&Array.isArray(so.nodes))return N(ro,_(so.nodes),to)}catch{}const oo=eo.getData("text/html");if(oo)try{const so=new DOMParser().parseFromString(oo,"text/html");return N(ro,$generateNodesFromDOM(ro,so),to)}catch{}const io=eo.getData("text/plain")||eo.getData("text/uri-list");if(io!=null)if($isRangeSelection(to)){const so=io.split(/(\r?\n|\t)/);so[so.length-1]===""&&so.pop();for(let ao=0;ao0?lo.text=uo:oo=!1}for(let uo=0;uo{eo.update(()=>{ao(P(eo,to))})});const ro=eo.getRootElement(),no=eo._window==null?window.document:eo._window.document,oo=y(eo._window);if(ro===null||oo===null)return!1;const io=no.createElement("span");io.style.cssText="position: fixed; top: -1000px;",io.append(no.createTextNode("#")),ro.append(io);const so=new Range;return so.setStart(io,0),so.setEnd(io,1),oo.removeAllRanges(),oo.addRange(so),new Promise((ao,lo)=>{const uo=eo.registerCommand(COPY_COMMAND,co=>(objectKlassEquals(co,ClipboardEvent)&&(uo(),A!==null&&(window.clearTimeout(A),A=null),ao(P(eo,co))),!0),COMMAND_PRIORITY_CRITICAL);A=window.setTimeout(()=>{uo(),A=null,ao(!1)},50),no.execCommand("copy"),io.remove()})}function P(eo,to){const ro=y(eo._window);if(!ro)return!1;const no=ro.anchorNode,oo=ro.focusNode;if(no!==null&&oo!==null&&!isSelectionWithinEditor(eo,no,oo))return!1;to.preventDefault();const io=to.clipboardData,so=$getSelection();if(io===null||so===null)return!1;const ao=v(eo),lo=D(eo);let uo="";return so!==null&&(uo=so.getTextContent()),ao!==null&&io.setData("text/html",ao),lo!==null&&io.setData("application/x-lexical-editor",lo),io.setData("text/plain",uo),!0}const modProd$3=Object.freeze(Object.defineProperty({__proto__:null,$generateJSONFromSelectedNodes:T,$generateNodesFromSerializedNodes:_,$getHtmlContent:v,$getLexicalContent:D,$insertDataTransferForPlainText:C$1,$insertDataTransferForRichText:E$1,$insertGeneratedNodes:N,copyToClipboard:R},Symbol.toStringTag,{value:"Module"})),mod$3=modProd$3,$insertDataTransferForRichText=mod$3.$insertDataTransferForRichText,copyToClipboard=mod$3.copyToClipboard;function st(eo,to){if(document.caretRangeFromPoint!==void 0){const ro=document.caretRangeFromPoint(eo,to);return ro===null?null:{node:ro.startContainer,offset:ro.startOffset}}if(document.caretPositionFromPoint!=="undefined"){const ro=document.caretPositionFromPoint(eo,to);return ro===null?null:{node:ro.offsetNode,offset:ro.offset}}return null}const at=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,ct=at&&"documentMode"in document?document.documentMode:null,ut=!(!at||!("InputEvent"in window)||ct)&&"getTargetRanges"in new window.InputEvent("input"),lt=at&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),dt=at&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,mt=at&&/^(?=.*Chrome).*/i.test(navigator.userAgent),ft=at&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!mt,gt=createCommand("DRAG_DROP_PASTE_FILE");class pt extends ElementNode{static getType(){return"quote"}static clone(to){return new pt(to.__key)}constructor(to){super(to)}createDOM(to){const ro=document.createElement("blockquote");return addClassNamesToElement(ro,to.theme.quote),ro}updateDOM(to,ro){return!1}static importDOM(){return{blockquote:to=>({conversion:xt,priority:0})}}exportDOM(to){const{element:ro}=super.exportDOM(to);if(ro&&isHTMLElement$1(ro)){this.isEmpty()&&ro.append(document.createElement("br"));const no=this.getFormatType();ro.style.textAlign=no;const oo=this.getDirection();oo&&(ro.dir=oo)}return{element:ro}}static importJSON(to){const ro=ht();return ro.setFormat(to.format),ro.setIndent(to.indent),ro.setDirection(to.direction),ro}exportJSON(){return{...super.exportJSON(),type:"quote"}}insertNewAfter(to,ro){const no=$createParagraphNode(),oo=this.getDirection();return no.setDirection(oo),this.insertAfter(no,ro),no}collapseAtStart(){const to=$createParagraphNode();return this.getChildren().forEach(ro=>to.append(ro)),this.replace(to),!0}}function ht(){return $applyNodeReplacement(new pt)}function vt(eo){return eo instanceof pt}class Ct extends ElementNode{static getType(){return"heading"}static clone(to){return new Ct(to.__tag,to.__key)}constructor(to,ro){super(ro),this.__tag=to}getTag(){return this.__tag}createDOM(to){const ro=this.__tag,no=document.createElement(ro),oo=to.theme.heading;if(oo!==void 0){const io=oo[ro];addClassNamesToElement(no,io)}return no}updateDOM(to,ro){return!1}static importDOM(){return{h1:to=>({conversion:Dt,priority:0}),h2:to=>({conversion:Dt,priority:0}),h3:to=>({conversion:Dt,priority:0}),h4:to=>({conversion:Dt,priority:0}),h5:to=>({conversion:Dt,priority:0}),h6:to=>({conversion:Dt,priority:0}),p:to=>{const ro=to.firstChild;return ro!==null&&yt(ro)?{conversion:()=>({node:null}),priority:3}:null},span:to=>yt(to)?{conversion:ro=>({node:wt("h1")}),priority:3}:null}}exportDOM(to){const{element:ro}=super.exportDOM(to);if(ro&&isHTMLElement$1(ro)){this.isEmpty()&&ro.append(document.createElement("br"));const no=this.getFormatType();ro.style.textAlign=no;const oo=this.getDirection();oo&&(ro.dir=oo)}return{element:ro}}static importJSON(to){const ro=wt(to.tag);return ro.setFormat(to.format),ro.setIndent(to.indent),ro.setDirection(to.direction),ro}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),type:"heading",version:1}}insertNewAfter(to,ro=!0){const no=to?to.anchor.offset:0,oo=no!==this.getTextContentSize()&&to?wt(this.getTag()):$createParagraphNode(),io=this.getDirection();if(oo.setDirection(io),this.insertAfter(oo,ro),no===0&&!this.isEmpty()&&to){const so=$createParagraphNode();so.select(),this.replace(so,!0)}return oo}collapseAtStart(){const to=this.isEmpty()?$createParagraphNode():wt(this.getTag());return this.getChildren().forEach(ro=>to.append(ro)),this.replace(to),!0}extractWithChild(){return!0}}function yt(eo){return eo.nodeName.toLowerCase()==="span"&&eo.style.fontSize==="26pt"}function Dt(eo){const to=eo.nodeName.toLowerCase();let ro=null;return to!=="h1"&&to!=="h2"&&to!=="h3"&&to!=="h4"&&to!=="h5"&&to!=="h6"||(ro=wt(to),eo.style!==null&&ro.setFormat(eo.style.textAlign)),{node:ro}}function xt(eo){const to=ht();return eo.style!==null&&to.setFormat(eo.style.textAlign),{node:to}}function wt(eo){return $applyNodeReplacement(new Ct(eo))}function Et(eo){return eo instanceof Ct}function Nt(eo){let to=null;if(objectKlassEquals(eo,DragEvent)?to=eo.dataTransfer:objectKlassEquals(eo,ClipboardEvent)&&(to=eo.clipboardData),to===null)return[!1,[],!1];const ro=to.types,no=ro.includes("Files"),oo=ro.includes("text/html")||ro.includes("text/plain");return[no,Array.from(to.files),oo]}function At(eo){const to=$getSelection();if(!$isRangeSelection(to))return!1;const ro=new Set,no=to.getNodes();for(let oo=0;oo0}function Pt(eo){const to=$getNearestNodeFromDOMNode(eo);return $isDecoratorNode(to)}function Ot(eo){return mergeRegister(eo.registerCommand(CLICK_COMMAND,to=>{const ro=$getSelection();return!!$isNodeSelection(ro)&&(ro.clear(),!0)},0),eo.registerCommand(DELETE_CHARACTER_COMMAND,to=>{const ro=$getSelection();return!!$isRangeSelection(ro)&&(ro.deleteCharacter(to),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(DELETE_WORD_COMMAND,to=>{const ro=$getSelection();return!!$isRangeSelection(ro)&&(ro.deleteWord(to),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(DELETE_LINE_COMMAND,to=>{const ro=$getSelection();return!!$isRangeSelection(ro)&&(ro.deleteLine(to),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(CONTROLLED_TEXT_INSERTION_COMMAND,to=>{const ro=$getSelection();if(typeof to=="string")ro!==null&&ro.insertText(to);else{if(ro===null)return!1;const no=to.dataTransfer;if(no!=null)$insertDataTransferForRichText(no,ro,eo);else if($isRangeSelection(ro)){const oo=to.data;return oo&&ro.insertText(oo),!0}}return!0},COMMAND_PRIORITY_EDITOR),eo.registerCommand(REMOVE_TEXT_COMMAND,()=>{const to=$getSelection();return!!$isRangeSelection(to)&&(to.removeText(),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(FORMAT_TEXT_COMMAND,to=>{const ro=$getSelection();return!!$isRangeSelection(ro)&&(ro.formatText(to),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(FORMAT_ELEMENT_COMMAND,to=>{const ro=$getSelection();if(!$isRangeSelection(ro)&&!$isNodeSelection(ro))return!1;const no=ro.getNodes();for(const oo of no){const io=$findMatchingParent(oo,so=>$isElementNode(so)&&!so.isInline());io!==null&&io.setFormat(to)}return!0},COMMAND_PRIORITY_EDITOR),eo.registerCommand(INSERT_LINE_BREAK_COMMAND,to=>{const ro=$getSelection();return!!$isRangeSelection(ro)&&(ro.insertLineBreak(to),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(INSERT_PARAGRAPH_COMMAND,()=>{const to=$getSelection();return!!$isRangeSelection(to)&&(to.insertParagraph(),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(INSERT_TAB_COMMAND,()=>($insertNodes([$createTabNode()]),!0),COMMAND_PRIORITY_EDITOR),eo.registerCommand(INDENT_CONTENT_COMMAND,()=>At(to=>{const ro=to.getIndent();to.setIndent(ro+1)}),COMMAND_PRIORITY_EDITOR),eo.registerCommand(OUTDENT_CONTENT_COMMAND,()=>At(to=>{const ro=to.getIndent();ro>0&&to.setIndent(ro-1)}),COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_ARROW_UP_COMMAND,to=>{const ro=$getSelection();if($isNodeSelection(ro)&&!Pt(to.target)){const no=ro.getNodes();if(no.length>0)return no[0].selectPrevious(),!0}else if($isRangeSelection(ro)){const no=$getAdjacentNode(ro.focus,!0);if(!to.shiftKey&&$isDecoratorNode(no)&&!no.isIsolated()&&!no.isInline())return no.selectPrevious(),to.preventDefault(),!0}return!1},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_ARROW_DOWN_COMMAND,to=>{const ro=$getSelection();if($isNodeSelection(ro)){const no=ro.getNodes();if(no.length>0)return no[0].selectNext(0,0),!0}else if($isRangeSelection(ro)){if(function(oo){const io=oo.focus;return io.key==="root"&&io.offset===$getRoot().getChildrenSize()}(ro))return to.preventDefault(),!0;const no=$getAdjacentNode(ro.focus,!1);if(!to.shiftKey&&$isDecoratorNode(no)&&!no.isIsolated()&&!no.isInline())return no.selectNext(),to.preventDefault(),!0}return!1},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_ARROW_LEFT_COMMAND,to=>{const ro=$getSelection();if($isNodeSelection(ro)){const no=ro.getNodes();if(no.length>0)return to.preventDefault(),no[0].selectPrevious(),!0}if(!$isRangeSelection(ro))return!1;if($shouldOverrideDefaultCharacterSelection(ro,!0)){const no=to.shiftKey;return to.preventDefault(),$moveCharacter(ro,no,!0),!0}return!1},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_ARROW_RIGHT_COMMAND,to=>{const ro=$getSelection();if($isNodeSelection(ro)&&!Pt(to.target)){const oo=ro.getNodes();if(oo.length>0)return to.preventDefault(),oo[0].selectNext(0,0),!0}if(!$isRangeSelection(ro))return!1;const no=to.shiftKey;return!!$shouldOverrideDefaultCharacterSelection(ro,!1)&&(to.preventDefault(),$moveCharacter(ro,no,!1),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_BACKSPACE_COMMAND,to=>{if(Pt(to.target))return!1;const ro=$getSelection();if(!$isRangeSelection(ro))return!1;to.preventDefault();const{anchor:no}=ro,oo=no.getNode();return ro.isCollapsed()&&no.offset===0&&!$isRootNode(oo)&&$getNearestBlockElementAncestorOrThrow(oo).getIndent()>0?eo.dispatchCommand(OUTDENT_CONTENT_COMMAND,void 0):eo.dispatchCommand(DELETE_CHARACTER_COMMAND,!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_DELETE_COMMAND,to=>{if(Pt(to.target))return!1;const ro=$getSelection();return!!$isRangeSelection(ro)&&(to.preventDefault(),eo.dispatchCommand(DELETE_CHARACTER_COMMAND,!1))},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_ENTER_COMMAND,to=>{const ro=$getSelection();if(!$isRangeSelection(ro))return!1;if(to!==null){if((dt||lt||ft)&&ut)return!1;if(to.preventDefault(),to.shiftKey)return eo.dispatchCommand(INSERT_LINE_BREAK_COMMAND,!1)}return eo.dispatchCommand(INSERT_PARAGRAPH_COMMAND,void 0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_ESCAPE_COMMAND,()=>{const to=$getSelection();return!!$isRangeSelection(to)&&(eo.blur(),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(DROP_COMMAND,to=>{const[,ro]=Nt(to);if(ro.length>0){const oo=st(to.clientX,to.clientY);if(oo!==null){const{offset:io,node:so}=oo,ao=$getNearestNodeFromDOMNode(so);if(ao!==null){const lo=$createRangeSelection();if($isTextNode(ao))lo.anchor.set(ao.getKey(),io,"text"),lo.focus.set(ao.getKey(),io,"text");else{const co=ao.getParentOrThrow().getKey(),fo=ao.getIndexWithinParent()+1;lo.anchor.set(co,fo,"element"),lo.focus.set(co,fo,"element")}const uo=$normalizeSelection__EXPERIMENTAL(lo);$setSelection(uo)}eo.dispatchCommand(gt,ro)}return to.preventDefault(),!0}const no=$getSelection();return!!$isRangeSelection(no)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(DRAGSTART_COMMAND,to=>{const[ro]=Nt(to),no=$getSelection();return!(ro&&!$isRangeSelection(no))},COMMAND_PRIORITY_EDITOR),eo.registerCommand(DRAGOVER_COMMAND,to=>{const[ro]=Nt(to),no=$getSelection();if(ro&&!$isRangeSelection(no))return!1;const oo=st(to.clientX,to.clientY);if(oo!==null){const io=$getNearestNodeFromDOMNode(oo.node);$isDecoratorNode(io)&&to.preventDefault()}return!0},COMMAND_PRIORITY_EDITOR),eo.registerCommand(SELECT_ALL_COMMAND,()=>($selectAll(),!0),COMMAND_PRIORITY_EDITOR),eo.registerCommand(COPY_COMMAND,to=>(copyToClipboard(eo,objectKlassEquals(to,ClipboardEvent)?to:null),!0),COMMAND_PRIORITY_EDITOR),eo.registerCommand(CUT_COMMAND,to=>(async function(ro,no){await copyToClipboard(no,objectKlassEquals(ro,ClipboardEvent)?ro:null),no.update(()=>{const oo=$getSelection();$isRangeSelection(oo)?oo.removeText():$isNodeSelection(oo)&&oo.getNodes().forEach(io=>io.remove())})}(to,eo),!0),COMMAND_PRIORITY_EDITOR),eo.registerCommand(PASTE_COMMAND,to=>{const[,ro,no]=Nt(to);return ro.length>0&&!no?(eo.dispatchCommand(gt,ro),!0):isSelectionCapturedInDecoratorInput(to.target)?!1:$getSelection()!==null&&(function(oo,io){oo.preventDefault(),io.update(()=>{const so=$getSelection(),ao=objectKlassEquals(oo,InputEvent)||objectKlassEquals(oo,KeyboardEvent)?null:oo.clipboardData;ao!=null&&so!==null&&$insertDataTransferForRichText(ao,so,io)},{tag:"paste"})}(to,eo),!0)},COMMAND_PRIORITY_EDITOR))}const modProd$2=Object.freeze(Object.defineProperty({__proto__:null,$createHeadingNode:wt,$createQuoteNode:ht,$isHeadingNode:Et,$isQuoteNode:vt,DRAG_DROP_PASTE:gt,HeadingNode:Ct,QuoteNode:pt,eventFiles:Nt,registerRichText:Ot},Symbol.toStringTag,{value:"Module"})),mod$2=modProd$2,DRAG_DROP_PASTE=mod$2.DRAG_DROP_PASTE,eventFiles=mod$2.eventFiles,registerRichText=mod$2.registerRichText;var p=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?reactExports.useLayoutEffect:reactExports.useEffect;function E(eo){return eo.getEditorState().read($canShowPlaceholderCurry(eo.isComposing()))}function x({contentEditable:eo,placeholder:to,ErrorBoundary:ro}){const[no]=useLexicalComposerContext(),oo=function(io,so){const[ao,lo]=reactExports.useState(()=>io.getDecorators());return p(()=>io.registerDecoratorListener(uo=>{reactDomExports.flushSync(()=>{lo(uo)})}),[io]),reactExports.useEffect(()=>{lo(io.getDecorators())},[io]),reactExports.useMemo(()=>{const uo=[],co=Object.keys(ao);for(let fo=0;foio._onError(vo)},reactExports.createElement(reactExports.Suspense,{fallback:null},ao[ho])),go=io.getElementByKey(ho);go!==null&&uo.push(reactDomExports.createPortal(po,go,ho))}return uo},[so,ao,io])}(no,ro);return function(io){p(()=>mergeRegister(registerRichText(io),registerDragonSupport(io)),[io])}(no),reactExports.createElement(reactExports.Fragment,null,eo,reactExports.createElement(g,{content:to}),oo)}function g({content:eo}){const[to]=useLexicalComposerContext(),ro=function(oo){const[io,so]=reactExports.useState(()=>E(oo));return p(()=>{function ao(){const lo=E(oo);so(lo)}return ao(),mergeRegister(oo.registerUpdateListener(()=>{ao()}),oo.registerEditableListener(()=>{ao()}))},[oo]),io}(to),no=t$1();return ro?typeof eo=="function"?eo(no):eo:null}const modProd$1=Object.freeze(Object.defineProperty({__proto__:null,RichTextPlugin:x},Symbol.toStringTag,{value:"Module"})),mod$1=modProd$1,RichTextPlugin=mod$1.RichTextPlugin;var RichEditorContentType=(eo=>(eo.IMAGE="image",eo.TEXT="text",eo))(RichEditorContentType||{});const FAKE_PROTOCOL="fake:",CAN_USE_DOM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function d(eo,to){return eo.getEditorState().read(()=>{const ro=$getNodeByKey(to);return ro!==null&&ro.isSelected()})}function u(eo){const[to]=useLexicalComposerContext(),[ro,no]=reactExports.useState(()=>d(to,eo));return reactExports.useEffect(()=>{let oo=!0;const io=to.registerUpdateListener(()=>{oo&&no(d(to,eo))});return()=>{oo=!1,io()}},[to,eo]),[ro,reactExports.useCallback(oo=>{to.update(()=>{let io=$getSelection();$isNodeSelection(io)||(io=$createNodeSelection(),$setSelection(io)),$isNodeSelection(io)&&(oo?io.add(eo):io.delete(eo))})},[to,eo]),reactExports.useCallback(()=>{to.update(()=>{const oo=$getSelection();$isNodeSelection(oo)&&oo.clear()})},[to])]}const modProd=Object.freeze(Object.defineProperty({__proto__:null,useLexicalNodeSelection:u},Symbol.toStringTag,{value:"Module"})),mod=modProd,useLexicalNodeSelection=mod.useLexicalNodeSelection;function useEventCallback(eo){const to=reactExports.useRef(eo);return reactExports.useLayoutEffect(()=>{to.current=eo}),reactExports.useCallback((...ro)=>{const no=to.current;return no(...ro)},[])}const INSERT_IMAGE_COMMAND=createCommand("INSERT_IMAGE_COMMAND"),INSERT_MULTIPLE_NODES_COMMAND=createCommand("INSERT_MULTIPLE_NODES_COMMAND"),RIGHT_CLICK_IMAGE_COMMAND=createCommand("RIGHT_CLICK_IMAGE_COMMAND");class RichEditorViewModel extends ViewModel{constructor(to){super(),this.editor$=new State(void 0),this.maxHeight$=new State(void 0),this.resolveUrlByPath$=new State(void 0),this.resolveUrlByFile$=new State(void 0),this._resetEditorState=to.resetEditorState,this._replaceImageSrc=to.replaceImageSrc,this._extractEditorData=to.extractEditorData}get requiredEditor(){const to=this.editor$.getSnapshot();if(!to)throw new Error("[RichEditor] editor is not prepared.");return to}focus(){this.requiredEditor.focus()}getContent(){const ro=this.requiredEditor.getEditorState();return this._extractEditorData(ro)}insert(to){this.requiredEditor.dispatchCommand(INSERT_MULTIPLE_NODES_COMMAND,{nodes:to})}isEmpty(){return this.requiredEditor.getEditorState().read(()=>{const oo=$getRoot(),io=oo.getFirstChild();return io?oo.getChildrenSize()===1&&io instanceof ElementNode?io.isEmpty():!1:!0})}replaceImageSrc(to,ro){const no=this.editor$.getSnapshot();if(!no)throw new Error("[RichEditor] editor is not prepared.");this._replaceImageSrc(no,to,ro)}reset(to){const ro=this.requiredEditor;this._resetEditorState(to)(ro)}async resolveUrlByFile(to){const ro=this.resolveUrlByFile$.getSnapshot();return ro?ro(to):""}async resolveUrlByPath(to){if(to.startsWith(FAKE_PROTOCOL))return to;const ro=this.resolveUrlByPath$.getSnapshot();return(ro==null?void 0:ro(to))??to}}const RichEditorContextType=reactExports.createContext({viewmodel:new RichEditorViewModel({extractEditorData:()=>[],resetEditorState:()=>()=>{},replaceImageSrc:()=>{}})}),useRichEditorContext=()=>{const eo=reactExports.useContext(RichEditorContextType),to=reactExports.useContext(LexicalComposerContext),ro=(to==null?void 0:to[0])??void 0;return ro&&eo.viewmodel.editor$.next(ro),eo},useAutoResize=()=>{const[eo]=useLexicalComposerContext(),{viewmodel:to}=useRichEditorContext(),ro=useStateValue(to.maxHeight$);return useEventCallback(()=>{if(ro===void 0)return;const oo=eo==null?void 0:eo.getRootElement();if(oo){oo.style.height="24px";const io=Math.min(ro,oo.scrollHeight);oo.style.height=`${io}px`}})},imageCache=new Set;function useSuspenseImage(eo){imageCache.has(eo)||new Promise(to=>{const ro=new Image;ro.src=eo,ro.onload=()=>{imageCache.add(eo),to(null)}})}function LazyImage({alt:eo,className:to,imageRef:ro,src:no,width:oo,height:io,maxWidth:so,onLoad:ao}){return useSuspenseImage(no),jsxRuntimeExports.jsx("img",{className:to||void 0,src:no,alt:eo,ref:ro,style:{height:io,maxWidth:so,width:oo,border:"1px solid #E5E5E5"},draggable:!1,onLoad:ao})}const ImageComponent=eo=>{const{viewmodel:to}=useRichEditorContext(),ro=useAutoResize(),{src:no,alt:oo,nodeKey:io,width:so,height:ao,maxWidth:lo,isImageNode:uo}=eo,[co,fo]=reactExports.useState(no),ho=reactExports.useRef(null),po=reactExports.useRef(null),[go,vo,bo]=useLexicalNodeSelection(io),[xo]=useLexicalComposerContext(),[_o,Eo]=reactExports.useState(null),So=reactExports.useRef(null),To=reactExports.useCallback(Fo=>{if(go&&$isNodeSelection($getSelection())){Fo.preventDefault();const Lo=$getNodeByKey(io);uo(Lo)&&Lo.remove()}return!1},[go,io,uo]),wo=reactExports.useCallback(Fo=>{const $o=$getSelection(),Lo=po.current;return go&&$isNodeSelection($o)&&$o.getNodes().length===1&&Lo!==null&&Lo!==document.activeElement?(Fo.preventDefault(),Lo.focus(),!0):!1},[go]),Co=reactExports.useCallback(Fo=>Fo.target===ho.current?(Fo.preventDefault(),!0):!1,[]),Oo=reactExports.useCallback(Fo=>po.current===Fo.target?($setSelection(null),xo.update(()=>{vo(!0);const $o=xo.getRootElement();$o!==null&&$o.focus()}),!0):!1,[xo,vo]),Ao=reactExports.useCallback(Fo=>{const $o=Fo;return $o.target===ho.current?($o.shiftKey?vo(!go):(bo(),vo(!0)),!0):!1},[go,vo,bo]),Ro=reactExports.useCallback(Fo=>{xo.getEditorState().read(()=>{const $o=$getSelection();Fo.target.tagName==="IMG"&&$isRangeSelection($o)&&$o.getNodes().length===1&&xo.dispatchCommand(RIGHT_CLICK_IMAGE_COMMAND,Fo)})},[xo]);reactExports.useEffect(()=>{let Fo=!1;return to.resolveUrlByPath(no).then($o=>{Fo||fo($o)}),()=>{Fo=!0}},[to,no]),reactExports.useEffect(()=>{let Fo=!0;const $o=xo.getRootElement(),Lo=mergeRegister(xo.registerUpdateListener(({editorState:Ho})=>{Fo&&Eo(Ho.read($getSelection))}),xo.registerCommand(SELECTION_CHANGE_COMMAND,(Ho,qo)=>(So.current=qo,!1),COMMAND_PRIORITY_LOW),xo.registerCommand(CLICK_COMMAND,Ao,COMMAND_PRIORITY_LOW),xo.registerCommand(RIGHT_CLICK_IMAGE_COMMAND,Ao,COMMAND_PRIORITY_LOW),xo.registerCommand(DRAGSTART_COMMAND,Co,COMMAND_PRIORITY_LOW),xo.registerCommand(KEY_DELETE_COMMAND,To,COMMAND_PRIORITY_LOW),xo.registerCommand(KEY_BACKSPACE_COMMAND,To,COMMAND_PRIORITY_LOW),xo.registerCommand(KEY_ENTER_COMMAND,wo,COMMAND_PRIORITY_LOW),xo.registerCommand(KEY_ESCAPE_COMMAND,Oo,COMMAND_PRIORITY_LOW));return $o==null||$o.addEventListener("contextmenu",Ro),()=>{Fo=!1,Lo(),$o==null||$o.removeEventListener("contextmenu",Ro)}},[xo,go,io,bo,To,Co,wo,Oo,Ao,Ro,vo]);const No=go&&$isNodeSelection(_o),Do=go?`focused ${$isNodeSelection(_o)?"draggable":""}`:void 0,jo=(co.startsWith(FAKE_PROTOCOL)?co.slice(FAKE_PROTOCOL.length):co).replace(/#[\s\S]*$/,"");return jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:null,children:jsxRuntimeExports.jsx("div",{draggable:No,children:jsxRuntimeExports.jsx(LazyImage,{className:Do,src:jo,alt:oo,imageRef:ho,width:so,height:ao,maxWidth:lo,onLoad:ro})})})};class ImageNode extends DecoratorNode{constructor(to,ro,no,oo,io,so){super(so),this.src=to,this.alt=ro,this.maxWidth=no,this.width=oo||"inherit",this.height=io||"inherit"}static getType(){return RichEditorContentType.IMAGE}static clone(to){return new ImageNode(to.src,to.alt,to.maxWidth,to.width,to.height,to.__key)}static importDOM(){return{img:to=>({conversion:convertImageElement,priority:0})}}static importJSON(to){const{alt:ro,height:no,width:oo,maxWidth:io,src:so}=to;return $createImageNode({alt:ro,height:no,maxWidth:io,src:so,width:oo})}exportDOM(){const to=document.createElement("img");return to.setAttribute("src",this.src),to.setAttribute("alt",this.alt),to.setAttribute("width",this.width.toString()),to.setAttribute("height",this.height.toString()),{element:to}}exportJSON(){return{alt:this.getAltText(),height:this.height==="inherit"?0:this.height,maxWidth:this.maxWidth,src:this.getSrc(),type:RichEditorContentType.IMAGE,version:1,width:this.width==="inherit"?0:this.width}}setWidthAndHeight(to,ro){const no=this.getWritable();no.width=to,no.height=ro}createDOM(to){const ro=document.createElement("span"),oo=to.theme.image;return oo!==void 0&&(ro.className=oo),ro}updateDOM(){return!1}getSrc(){return this.src}getAltText(){return this.alt}decorate(){return jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:null,children:jsxRuntimeExports.jsx(ImageComponent,{src:this.src,alt:this.alt,width:this.width,height:this.height,maxWidth:this.maxWidth,nodeKey:this.getKey(),isImageNode:$isImageNode})})}}function $createImageNode({alt:eo,height:to,maxWidth:ro=240,src:no,width:oo,key:io}){return $applyNodeReplacement(new ImageNode(no,eo,ro,oo,to,io))}function $isImageNode(eo){return eo instanceof ImageNode}function convertImageElement(eo){if(eo instanceof HTMLImageElement){const{alt:to,src:ro,width:no,height:oo}=eo;return ro.startsWith("blob:")?null:{node:$createImageNode({alt:to,height:oo,src:ro,width:no})}}return null}const CommandPlugin=()=>{const[eo]=useLexicalComposerContext();return React.useLayoutEffect(()=>mergeRegister(eo.registerCommand(INSERT_MULTIPLE_NODES_COMMAND,to=>{const{nodes:ro}=to;if(ro.length===1&&ro[0].type===RichEditorContentType.TEXT){const io=ro[0];return eo.update(()=>{const so=$getSelection();so&&so.insertRawText(io.value)}),!0}let no;const oo=[];for(const io of ro)switch(io.type){case RichEditorContentType.TEXT:{const so=$createTextNode(io.value),ao=$createParagraphNode();no=so,ao.append(so),oo.push(ao);break}case RichEditorContentType.IMAGE:{const so=$createImageNode(io),ao=$createParagraphNode();no=so,ao.append(so),oo.push(ao);break}}return oo.length<=0||($insertNodes(oo),no&&$isRootOrShadowRoot(no.getParentOrThrow())&&no.selectEnd()),!0},COMMAND_PRIORITY_EDITOR)),[eo]),jsxRuntimeExports.jsx(React.Fragment,{})};CommandPlugin.displayName="CommandPlugin";const ACCEPTABLE_IMAGE_TYPES=["image/","image/heic","image/heif","image/gif","image/webp"],DragDropPastePlugin=()=>{const[eo]=useLexicalComposerContext(),{viewmodel:to}=useRichEditorContext();return reactExports.useLayoutEffect(()=>eo.registerCommand(DRAG_DROP_PASTE,ro=>{return no(),!0;async function no(){for(const oo of ro)if(isMimeType(oo,ACCEPTABLE_IMAGE_TYPES)){const io=oo.name,so=await to.resolveUrlByFile(oo);eo.dispatchCommand(INSERT_IMAGE_COMMAND,{alt:io,src:so})}}},COMMAND_PRIORITY_LOW),[eo,to]),jsxRuntimeExports.jsx(reactExports.Fragment,{})};DragDropPastePlugin.displayName="DragDropPastePlugin";class Point{constructor(to,ro){this._x=to,this._y=ro}get x(){return this._x}get y(){return this._y}equals(to){return this.x===to.x&&this.y===to.y}calcDeltaXTo(to){return this.x-to.x}calcDeltaYTo(to){return this.y-to.y}calcHorizontalDistanceTo(to){return Math.abs(this.calcDeltaXTo(to))}calcVerticalDistance(to){return Math.abs(this.calcDeltaYTo(to))}calcDistanceTo(to){const ro=this.calcDeltaXTo(to)**2,no=this.calcDeltaYTo(to)**2;return Math.sqrt(ro+no)}}function isPoint(eo){return eo instanceof Point}class Rect{constructor(to,ro,no,oo){const[io,so]=ro<=oo?[ro,oo]:[oo,ro],[ao,lo]=to<=no?[to,no]:[no,to];this._top=io,this._right=lo,this._left=ao,this._bottom=so}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(to,ro,no,oo){return new Rect(to,ro,no,oo)}static fromLWTH(to,ro,no,oo){return new Rect(to,no,to+ro,no+oo)}static fromPoints(to,ro){const{y:no,x:oo}=to,{y:io,x:so}=ro;return Rect.fromLTRB(oo,no,so,io)}static fromDOM(to){const{top:ro,width:no,left:oo,height:io}=to.getBoundingClientRect();return Rect.fromLWTH(oo,no,ro,io)}equals(to){return to.top===this._top&&to.bottom===this._bottom&&to.left===this._left&&to.right===this._right}contains(to){if(isPoint(to)){const{x:ro,y:no}=to,oo=nothis._bottom,so=rothis._right;return{reason:{isOnBottomSide:io,isOnLeftSide:so,isOnRightSide:ao,isOnTopSide:oo},result:!oo&&!io&&!so&&!ao}}else{const{top:ro,left:no,bottom:oo,right:io}=to;return ro>=this._top&&ro<=this._bottom&&oo>=this._top&&oo<=this._bottom&&no>=this._left&&no<=this._right&&io>=this._left&&io<=this._right}}intersectsWith(to){const{left:ro,top:no,width:oo,height:io}=to,{left:so,top:ao,width:lo,height:uo}=this,co=ro+oo>=so+lo?ro+oo:so+lo,fo=no+io>=ao+uo?no+io:ao+uo,ho=ro<=so?ro:so,po=no<=ao?no:ao;return co-ho<=oo+lo&&fo-po<=io+uo}generateNewRect({left:to=this.left,top:ro=this.top,right:no=this.right,bottom:oo=this.bottom}){return new Rect(to,ro,no,oo)}}const SPACE=4,TARGET_LINE_HALF_HEIGHT=2,DRAGGABLE_BLOCK_MENU_CLASSNAME="draggable-block-menu",DRAG_DATA_FORMAT="application/x-lexical-drag-block",TEXT_BOX_HORIZONTAL_PADDING=28,Downward=1,Upward=-1,Indeterminate=0,DraggableBlockPlugin=eo=>{const{anchorElem:to=document.body}=eo,[ro]=useLexicalComposerContext();return useDraggableBlockMenu(ro,to,ro._editable)};DraggableBlockPlugin.displayName="DraggableBlockPlugin";let prevIndex=1/0;function getCurrentIndex(eo){return eo===0?1/0:prevIndex>=0&&prevIndex$getRoot().getChildrenKeys())}function getCollapsedMargins(eo){const to=(lo,uo)=>lo?parseFloat(window.getComputedStyle(lo)[uo]):0,{marginTop:ro,marginBottom:no}=window.getComputedStyle(eo),oo=to(eo.previousElementSibling,"marginBottom"),io=to(eo.nextElementSibling,"marginTop"),so=Math.max(parseFloat(ro),oo);return{marginBottom:Math.max(parseFloat(no),io),marginTop:so}}function getBlockElement(eo,to,ro,no=!1){const oo=eo.getBoundingClientRect(),io=getTopLevelNodeKeys(to);let so=null;return to.getEditorState().read(()=>{if(no){const uo=to.getElementByKey(io[0]),co=to.getElementByKey(io[io.length-1]),fo=uo==null?void 0:uo.getBoundingClientRect(),ho=co==null?void 0:co.getBoundingClientRect();if(fo&&ho&&(ro.yho.bottom&&(so=co),so))return}let ao=getCurrentIndex(io.length),lo=Indeterminate;for(;ao>=0&&ao{no.transform=ro})}function setTargetLine(eo,to,ro,no){const{top:oo,height:io}=to.getBoundingClientRect(),{top:so,width:ao}=no.getBoundingClientRect(),{marginTop:lo,marginBottom:uo}=getCollapsedMargins(to);let co=oo;ro>=oo?co+=io+uo/2:co-=lo/2;const fo=co-so-TARGET_LINE_HALF_HEIGHT,ho=TEXT_BOX_HORIZONTAL_PADDING-SPACE,po=eo.style;po.transform=`translate(${ho}px, ${fo}px)`,po.width=`${ao-(TEXT_BOX_HORIZONTAL_PADDING-SPACE)*2}px`,po.opacity=".4"}function hideTargetLine(eo){const to=eo==null?void 0:eo.style;to&&(to.opacity="0",to.transform="translate(-10000px, -10000px)")}function useDraggableBlockMenu(eo,to,ro){const no=to.parentElement,oo=reactExports.useRef(null),io=reactExports.useRef(null),so=reactExports.useRef(!1),[ao,lo]=reactExports.useState(null);reactExports.useLayoutEffect(()=>{function fo(po){const go=po.target;if(!isHTMLElement(go)){lo(null);return}if(isOnMenu(go))return;const vo=getBlockElement(to,eo,po);lo(vo)}function ho(){lo(null)}return no==null||no.addEventListener("mousemove",fo),no==null||no.addEventListener("mouseleave",ho),()=>{no==null||no.removeEventListener("mousemove",fo),no==null||no.removeEventListener("mouseleave",ho)}},[no,to,eo]),reactExports.useEffect(()=>{oo.current&&setMenuPosition(ao,oo.current,to)},[to,ao]),reactExports.useEffect(()=>{function fo(po){if(!so.current)return!1;const[go]=eventFiles(po);if(go)return!1;const{pageY:vo,target:bo}=po;if(!isHTMLElement(bo))return!1;const xo=getBlockElement(to,eo,po,!0),_o=io.current;return xo===null||_o===null?!1:(setTargetLine(_o,xo,vo,to),po.preventDefault(),!0)}function ho(po){if(!so.current)return!1;const[go]=eventFiles(po);if(go)return!1;const{target:vo,dataTransfer:bo,pageY:xo}=po,_o=(bo==null?void 0:bo.getData(DRAG_DATA_FORMAT))||"",Eo=$getNodeByKey(_o);if(!Eo||!isHTMLElement(vo))return!1;const So=getBlockElement(to,eo,po,!0);if(!So)return!1;const To=$getNearestNodeFromDOMNode(So);if(!To)return!1;if(To===Eo)return!0;const wo=So.getBoundingClientRect().top;return xo>=wo?To.insertAfter(Eo):To.insertBefore(Eo),lo(null),!0}return mergeRegister(eo.registerCommand(DRAGOVER_COMMAND,po=>fo(po),COMMAND_PRIORITY_LOW),eo.registerCommand(DROP_COMMAND,po=>ho(po),COMMAND_PRIORITY_HIGH))},[to,eo]);const uo=fo=>{const ho=fo.dataTransfer;if(!ho||!ao)return;setDragImage(ho,ao);let po="";eo.update(()=>{const go=$getNearestNodeFromDOMNode(ao);go&&(po=go.getKey())}),so.current=!0,ho.setData(DRAG_DATA_FORMAT,po)},co=()=>{so.current=!1,hideTargetLine(io.current)};return reactDomExports.createPortal(jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"icon draggable-block-menu",role:"button",ref:oo,draggable:!0,onDragStart:uo,onDragEnd:co,children:jsxRuntimeExports.jsx("div",{className:ro?"icon":""})}),jsxRuntimeExports.jsx("div",{className:"draggable-block-target-line",ref:io})]}),to)}const EditablePlugin=eo=>{const{editable:to}=eo,[ro]=useLexicalComposerContext();return reactExports.useEffect(()=>{ro.setEditable(to)},[ro,to]),jsxRuntimeExports.jsx(reactExports.Fragment,{})};EditablePlugin.displayName="EditablePlugin";const ImagesPlugin=()=>{const[eo]=useLexicalComposerContext();return reactExports.useLayoutEffect(()=>{if(!eo.hasNodes([ImageNode]))throw new Error("[RichEditor] ImagesPlugin: ImageNode not registered on editor");return mergeRegister(eo.registerCommand(INSERT_IMAGE_COMMAND,onInsertImage,COMMAND_PRIORITY_EDITOR),eo.registerCommand(DRAGSTART_COMMAND,onDragStart,COMMAND_PRIORITY_HIGH),eo.registerCommand(DRAGOVER_COMMAND,onDragover,COMMAND_PRIORITY_LOW),eo.registerCommand(DROP_COMMAND,to=>onDrop(to,eo),COMMAND_PRIORITY_HIGH))},[eo]),jsxRuntimeExports.jsx(reactExports.Fragment,{})};ImagesPlugin.displayName="ImagesPlugin";let _transparentImage;const getTransparentImage=()=>{if(_transparentImage===void 0){const eo="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";_transparentImage=document.createElement("img"),_transparentImage.src=eo}return _transparentImage};function onInsertImage(eo){const to=$createImageNode(eo);return $insertNodes([to]),$isRootOrShadowRoot(to.getParentOrThrow())&&$wrapNodeInElement(to,$createParagraphNode).selectEnd(),!0}function onDragStart(eo){const to=getImageNodeInSelection();if(!to)return!1;const ro=eo.dataTransfer;if(!ro)return!1;const no=getTransparentImage();return ro.setData("text/plain","_"),ro.setDragImage(no,0,0),ro.setData("application/x-lexical-drag",JSON.stringify({type:RichEditorContentType.IMAGE,data:{alt:to.alt,height:to.height,key:to.getKey(),maxWidth:to.maxWidth,src:to.src,width:to.width}})),!0}function onDragover(eo){return getImageNodeInSelection()?(canDropImage(eo)||eo.preventDefault(),!0):!1}function onDrop(eo,to){const ro=getImageNodeInSelection();if(!ro)return!1;const no=getDragImageData(eo);if(!no)return!1;if(eo.preventDefault(),canDropImage(eo)){const oo=getDragSelection(eo);ro.remove();const io=$createRangeSelection();oo!=null&&io.applyDOMRange(oo),$setSelection(io),to.dispatchCommand(INSERT_IMAGE_COMMAND,no)}return!0}function getImageNodeInSelection(){const eo=$getSelection();if(!$isNodeSelection(eo))return null;const ro=eo.getNodes()[0];return $isImageNode(ro)?ro:null}function getDragImageData(eo){var ro;const to=(ro=eo.dataTransfer)==null?void 0:ro.getData("application/x-lexical-drag");if(!to)return null;try{const{type:no,data:oo}=JSON.parse(to);return no===RichEditorContentType.IMAGE?oo:null}catch{return null}}function canDropImage(eo){const to=eo.target;return!!(to&&to instanceof HTMLElement&&!to.closest("code, span.editor-image")&&to.parentElement&&to.parentElement.closest("div.ContentEditable__root"))}const getDOMSelection=eo=>CAN_USE_DOM?(eo||window).getSelection():null;function getDragSelection(eo){const to=eo,ro=to.target,no=ro==null?null:ro.nodeType===9?ro.defaultView:ro.ownerDocument.defaultView,oo=getDOMSelection(no);let io;if(document.caretRangeFromPoint)io=document.caretRangeFromPoint(to.clientX,to.clientY);else if(to.rangeParent&&oo!==null)oo.collapse(to.rangeParent,to.rangeOffset||0),io=oo.getRangeAt(0);else throw Error("[RichEditor] ImagesPlugin: Cannot get the selection when dragging");return io}const OnKeyDownPlugin=eo=>{const[to]=useLexicalComposerContext(),ro=reactExports.useRef(eo.onKeyDown);return reactExports.useLayoutEffect(()=>{const no=oo=>{var io;(io=ro.current)==null||io.call(ro,oo)};return to.registerRootListener((oo,io)=>{io!==null&&io.removeEventListener("keydown",no),oo!==null&&oo.addEventListener("keydown",no)})},[to]),jsxRuntimeExports.jsx(reactExports.Fragment,{})};OnKeyDownPlugin.displayName="OnKeyDownPlugin";const PlainContentPastePlugin=()=>{const[eo]=useLexicalComposerContext();return reactExports.useLayoutEffect(()=>mergeRegister(eo.registerUpdateListener(to=>{to.tags.has("paste")&&eo.update(()=>{to.dirtyLeaves.forEach(ro=>{const no=$getNodeByKey(ro);if($isTextNode(no)){const oo=$copyNode(no);oo.setFormat(0),oo.setStyle(""),no.replace(oo)}})})}),eo.registerNodeTransform(TextNode$1,to=>{const ro=to.getParentOrThrow();if($isLinkNode(ro)){const no=$createTextNode(ro.__url);ro.insertBefore(no),ro.remove()}})),[eo]),jsxRuntimeExports.jsx(reactExports.Fragment,{})};PlainContentPastePlugin.displayName="PlainContentPastePlugin";const resetEditorState=eo=>to=>{to.update(()=>{const ro=$getRoot();ro.clear();for(const no of eo)if(no!=null){if(typeof no=="string"){const oo=$createTextNode(no),io=$createParagraphNode();io.append(oo),ro.append(io);continue}if(typeof no=="object"){switch(no.type){case RichEditorContentType.IMAGE:{const oo=$createImageNode({alt:no.alt,src:no.src}),io=$createParagraphNode();io.append(oo),ro.append(io);break}case RichEditorContentType.TEXT:{const oo=$createTextNode(no.value),io=$createParagraphNode();io.append(oo),ro.append(io);break}default:throw console.log("item:",no),new TypeError(`[resetEditorState] unknown rich-editor content type: ${no.type}`)}continue}console.error("[resetEditorState] unknown rich-editor data:",no)}})},RootType=RootNode.getType(),ParagraphType=ParagraphNode.getType(),TextType=TextNode$1.getType(),ImageType=ImageNode.getType(),LineBreakType=LineBreakNode.getType(),extractEditorData=eo=>{const to=eo.toJSON(),ro=[];for(const oo of to.root.children)no(oo);return ro;function no(oo){switch(oo.type){case ImageType:{const{src:io,alt:so}=oo;if(io.startsWith(FAKE_PROTOCOL)){const ao=ro[ro.length-1];(ao==null?void 0:ao.type)===RichEditorContentType.TEXT&&(ao.value+=` +`);break}ro.push({type:RichEditorContentType.IMAGE,src:io,alt:so});break}case LineBreakType:{const io=ro[ro.length-1];(io==null?void 0:io.type)===RichEditorContentType.TEXT&&(io.value+=` +`);break}case ParagraphType:{const io=oo.children;for(const so of io)no(so);break}case TextType:{const io=oo.text,so=ro[ro.length-1];(so==null?void 0:so.type)===RichEditorContentType.TEXT?so.value+=io:ro.push({type:RichEditorContentType.TEXT,value:io});break}default:throw new TypeError(`[RichEditor] [extractEditorData] Unknown node.type: (${oo.type})`)}}},replaceImageSrc=(eo,to,ro)=>{eo.update(()=>{const no=$getRoot();oo(no);function oo(io){switch(io.getType()){case RootType:case ParagraphType:for(const so of io.getChildren())oo(so);break;case ImageType:{const so=io;if(so.getSrc()===to){const ao=$createImageNode({alt:so.getAltText(),src:ro});so.replace(ao)}break}}}})};class RichEditor extends reactExports.Component{constructor(to){super(to),this.state={floatingAnchorElem:null};const{editable:ro=!0,initialContent:no}=this.props;this.initialConfig={namespace:"react-simple-rich-editor",theme:{ltr:"ltr",rtl:"rtl",placeholder:classes.editorPlaceholder,paragraph:classes.editorParagraph},nodes:[ImageNode,LinkNode],editable:ro,editorState:no?resetEditorState(no):null,onError:oo=>{console.error(oo)}},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:to,onKeyDown:ro,onFocus:no,onBlur:oo,onChange:io,onEditorInputWrapperRef:so}=this,{editable:ao=!0,placeholder:lo="Enter some text...",pluginsBeforeRichEditors:uo=[],pluginsAfterRichEditors:co=[]}=this.props,{floatingAnchorElem:fo}=this.state,ho=mergeStyles$1(classes.editorContainer,this.props.editorContainerCls),po=mergeStyles$1(classes.editorInput,this.props.editorInputCls),go=mergeStyles$1(classes.editorInputBox,this.props.editorInputBoxCls),vo=mergeStyles$1(classes.editorPlaceholder,this.props.editorPlaceholderCls),bo=jsxRuntimeExports.jsx("div",{ref:so,className:go,children:jsxRuntimeExports.jsx(ContentEditable,{onFocus:no,onBlur:oo,className:po})});return jsxRuntimeExports.jsxs(LexicalComposer,{initialConfig:to,children:[jsxRuntimeExports.jsx(EditablePlugin,{editable:ao}),jsxRuntimeExports.jsx(CommandPlugin,{}),jsxRuntimeExports.jsxs("div",{className:ho,children:[uo,jsxRuntimeExports.jsx(RichTextPlugin,{contentEditable:bo,placeholder:jsxRuntimeExports.jsx("div",{className:vo,children:lo}),ErrorBoundary:LexicalErrorBoundary}),co,jsxRuntimeExports.jsx(OnKeyDownPlugin,{onKeyDown:ro}),jsxRuntimeExports.jsx(OnChangePlugin,{onChange:io}),jsxRuntimeExports.jsx(DragDropPastePlugin,{}),jsxRuntimeExports.jsx(PlainContentPastePlugin,{}),jsxRuntimeExports.jsx(ImagesPlugin,{}),jsxRuntimeExports.jsx(HistoryPlugin,{}),fo&&jsxRuntimeExports.jsx(DraggableBlockPlugin,{anchorElem:fo})]})]})}onKeyDown(to){var ro,no;(no=(ro=this.props).onKeyDown)==null||no.call(ro,to)}onFocus(to){var ro,no;(no=(ro=this.props).onFocus)==null||no.call(ro,to)}onBlur(to){var ro,no;(no=(ro=this.props).onBlur)==null||no.call(ro,to)}onChange(to){var ro,no;(no=(ro=this.props).onChange)==null||no.call(ro,to)}onEditorInputWrapperRef(to){to!==null&&this.setState({floatingAnchorElem:to})}}const classes=mergeStyleSets({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"}}),ReactRichEditor=reactExports.forwardRef((eo,to)=>{const[ro]=reactExports.useState(()=>new RichEditorViewModel({extractEditorData,replaceImageSrc,resetEditorState})),no=reactExports.useMemo(()=>({viewmodel:ro}),[ro]);return ro.resolveUrlByFile$.next(eo.resolveUrlByFile),ro.resolveUrlByPath$.next(eo.resolveUrlByPath),reactExports.useImperativeHandle(to,()=>({focus:()=>{no.viewmodel.focus()},getContent:()=>no.viewmodel.getContent(),insert:oo=>{no.viewmodel.insert(oo)},isEmpty:()=>no.viewmodel.isEmpty(),replaceImageSrc:(oo,io)=>{no.viewmodel.replaceImageSrc(oo,io)},reset:oo=>{no.viewmodel.reset(oo)}})),jsxRuntimeExports.jsx(RichEditorContextType.Provider,{value:no,children:jsxRuntimeExports.jsx(RichEditor,{...eo})})});ReactRichEditor.displayName="ReactRichEditor";makeStyles({editor:{...shorthands.padding("8px"),...shorthands.border("1px","solid",tokens.colorNeutralBackground5),...shorthands.borderRadius("4px"),boxSizing:"border-box",display:"block",width:"100%",userSelect:"none",position:"relative"}});makeStyles({chatbox:{...shorthands.borderRadius("8px"),display:"flex",flexDirection:"column",alignItems:"stretch",backgroundColor:tokens.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:tokens.colorNeutralBackground1Hover},"::-webkit-scrollbar-thumb":{backgroundColor:tokens.colorScrollbarOverlay,...shorthands.border("1px","solid",tokens.colorNeutralBackground1),...shorthands.borderRadius("9999px")},"::-webkit-scrollbar-thumb:hover":{backgroundColor:tokens.colorNeutralForeground1Static},"::-webkit-scrollbar-track":{...shorthands.borderRadius("9999px"),backgroundColor:"transparent"}},header:{...shorthands.flex(0,0,"auto")},main:{...shorthands.flex(1,1,"auto"),...shorthands.overflow("hidden","auto")},footer:{...shorthands.flex(0,0,"auto")}});makeStyles({header:{},topbar:{...shorthands.padding("0px","16px"),...shorthands.borderBottom("1px","solid",tokens.colorNeutralBackground5),boxSizing:"border-box",display:"flex",justifyContent:"space-between",alignItems:"center",height:"48px"},toolbarTitle:{display:"flex",alignItems:"center",columnGap:"2px"},toolbarActionButton:{color:tokens.colorNeutralForeground2}});makeStyles({main:{...shorthands.padding("0","16px"),...shorthands.overflow("hidden","auto"),height:"100%"}});makeStyles({footer:{...shorthands.padding("16px"),boxSizing:"border-box"},footerContainer:{display:"flex"},leftToolbar:{...shorthands.flex(0,0,"auto")},editor:{...shorthands.flex(1),boxSizing:"border-box"},validation:{boxSizing:"border-box"},validationInner:{...shorthands.border("1px","solid",tokens.colorNeutralBackground5),...shorthands.borderRadius("4px"),...shorthands.margin("8px","0px"),...shorthands.padding("2px","8px"),backgroundColor:tokens.colorStatusWarningBackground1,color:tokens.colorStatusWarningForeground1}});const capitalizeFirstLetter=eo=>eo.charAt(0).toUpperCase()+eo.slice(1),getSenderNameByLLMMessage=eo=>eo.role&&eo.name?`${eo.role}: ${eo.name}`:eo.role?eo.role:eo.name?eo.name:"user",defaultCalcContentForCopy=eo=>JSON.stringify(eo.content),messageRoleToCategory=eo=>{switch(eo){case"system":return ChatMessageCategory.System;case"user":return ChatMessageCategory.User;default:return ChatMessageCategory.Chatbot}},colorsPool=[{color:tokens.colorPaletteSeafoamForeground2,backgroundColor:tokens.colorPaletteSeafoamBackground2},{color:tokens.colorPaletteNavyForeground2,backgroundColor:tokens.colorPaletteNavyBackground2},{color:tokens.colorPaletteGrapeForeground2,backgroundColor:tokens.colorPaletteGrapeBackground2},{color:tokens.colorPalettePinkForeground2,backgroundColor:tokens.colorPalettePinkBackground2},{color:tokens.colorPaletteDarkOrangeForeground2,backgroundColor:tokens.colorPaletteDarkOrangeBackground2},{color:tokens.colorPaletteBrassForeground2,backgroundColor:tokens.colorPaletteBrassBackground2}],nameToColor=new Map,getColorForMessage=({name:eo="",role:to=""})=>{if(to.toLowerCase()==="system")return{color:tokens.colorNeutralForeground3,backgroundColor:tokens.colorNeutralBackground3};const ro=`${eo}_${to}`;return nameToColor.has(ro)||nameToColor.set(ro,colorsPool[nameToColor.size%colorsPool.length]),nameToColor.get(ro)},EMPTY_CONTEXTUAL_MENU_ITEMS=[],defaultUseContextualMenuItems=eo=>EMPTY_CONTEXTUAL_MENU_ITEMS;function LLMNodeMessageBubbleRenderer(eo){const{MessageAvatarRenderer:to,MessageContentRenderer:ro=DefaultMessageContentRenderer,MessageErrorRenderer:no=DefaultMessageErrorRenderer,MessageSenderRenderer:oo=DefaultMessageSenderRenderer,MessagePaginationRenderer:io=DefaultMessagePaginationRenderer,MessageActionBarRenderer:so=DefaultMessageActionBarRenderer,MessageStatusRenderer:ao=DefaultMessageStatusRenderer,useMessageContextualMenuItems:lo=defaultUseContextualMenuItems,useMessageActions:uo,initialPage:co=-1,locStrings:fo,message:ho,className:po}=eo,go=useStyles$3(),[vo,bo]=React.useState((co%ho.history.length+ho.history.length)%ho.history.length),[xo,_o]=React.useState(!1),Eo=React.useRef(null),So=React.useRef(null),To=React.useCallback(()=>{_o(!1)},[]),wo=React.useCallback(Mo=>{const Do=Eo.current,jo=So.current;if(Do&&jo){const Fo=Mo.clientX,$o=Mo.clientY,Lo=Do.getBoundingClientRect(),Ho=Lo.left+window.scrollX,qo=Lo.top+window.scrollY,Uo=Fo-Ho,Yo=$o-qo;jo.style.left=`${Uo}px`,jo.style.top=`${Yo}px`}},[]),Co=React.useCallback(Mo=>{Mo.preventDefault(),wo(Mo),_o(!0)},[wo]),Oo=ho.history[vo],Ao="left",Ro=lo(Oo);React.useEffect(()=>{const Mo=()=>{_o(!1)};return document.addEventListener("mousedown",Mo),()=>document.removeEventListener("mousedown",Mo)},[]);const No=getColorForMessage(Oo.content[0]??{});return jsxRuntimeExports.jsx("div",{className:go.container,"data-chatbox-locator":ChatboxLocator.MessageBubble,"data-position":Ao,children:jsxRuntimeExports.jsx("div",{className:mergeClasses(go.message,po),"data-position":Ao,children:jsxRuntimeExports.jsxs("div",{className:go.main,children:[jsxRuntimeExports.jsxs("div",{className:go.heading,children:[jsxRuntimeExports.jsx("div",{className:go.avatar,children:to&&jsxRuntimeExports.jsx(to,{data:Oo,position:Ao})}),jsxRuntimeExports.jsx("div",{className:go.sender,children:jsxRuntimeExports.jsx(oo,{data:Oo,position:Ao})})]}),jsxRuntimeExports.jsxs("div",{ref:Eo,className:go.content,style:No,"data-category":Oo.category,"data-chatbox-locator":ChatboxLocator.MessageContent,onContextMenu:Co,onClick:wo,children:[jsxRuntimeExports.jsx(ro,{content:Oo.content,className:go.contentMain}),Oo.error&&jsxRuntimeExports.jsx(no,{error:Oo.error,locStrings:fo,className:go.error}),typeof Oo.duration=="number"&&typeof Oo.tokens=="number"&&jsxRuntimeExports.jsx(ao,{duration:Oo.duration,tokens:Oo.tokens,locStrings:fo,className:go.status}),ho.history.length>1&&jsxRuntimeExports.jsx(io,{className:go.pagination,message:ho,current:vo,setCurrent:bo}),jsxRuntimeExports.jsx("div",{ref:So,className:go.contentMenuAnchor}),Ro.length>0&&jsxRuntimeExports.jsx(ContextualMenu,{items:Ro,hidden:!xo,target:So,onItemClick:To,onDismiss:To,className:go.contextualMenu}),jsxRuntimeExports.jsx("div",{className:go.actionBar,"data-chatbox-locator":ChatboxLocator.MessageActionBar,children:jsxRuntimeExports.jsx(so,{data:Oo,locStrings:fo,useMessageActions:uo})})]})]})})})}LLMNodeMessageBubbleRenderer.displayName="LLMNodeMessageBubbleRenderer";const useStyles$3=makeStyles({container:{...shorthands.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"},width:"calc(100% - 8px)",marginBottom:"18px"},heading:{display:"flex",alignContent:"center"},avatar:{...shorthands.flex(0,0,"auto")},main:{...shorthands.flex(1,1,"auto"),display:"flex",flexDirection:"column",width:"100%"},sender:{...shorthands.flex(0,0,"auto"),fontSize:"16px",fontWeight:600,lineHeight:"22px"},content:{...shorthands.flex(1,1,"auto"),...shorthands.borderRadius("4px"),position:"relative",boxSizing:"border-box",minWidth:"48px",wordBreak:"break-word",lineHeight:"22px","> p":{...shorthands.margin(0)},[`&:hover > ${ChatboxSelector.MessageActionBar}`]:{display:"flex",visibility:"visible"}},contentMain:{...shorthands.padding("12px","20px","12px","12px")},contextualMenu:{width:"auto",minWidth:"180px"},contentMenuAnchor:{position:"absolute",top:"0px",left:"0px"},error:{...shorthands.borderTop("1px","solid",tokens.colorPaletteDarkRedBorderActive),marginTop:"8px !important",paddingTop:"8px"},pagination:{},status:{...shorthands.borderTop("1px","solid",tokens.colorNeutralStroke1),...shorthands.padding("0px","20px","0px","12px"),fontSize:"12px",fontStyle:"italic"},actionBar:{position:"absolute",right:"0px",top:"-32px",display:"none",justifyContent:"space-between"}});function MessageSenderRenderer(eo){const{data:to,position:ro,className:no}=eo,oo=useStyles$2(),{name:io,role:so}=to.content[0],ao={user:"success",assistant:"brand",system:"informative"};return jsxRuntimeExports.jsxs("div",{className:mergeClasses(oo.container,no),"data-position":ro,children:[io&&jsxRuntimeExports.jsx("span",{className:oo.name,"data-position":ro,"data-category":to.category,children:io}),so&&jsxRuntimeExports.jsx(Badge$2,{className:oo.role,color:ao[so],children:so})]})}MessageSenderRenderer.displayName="MessageSenderRenderer";const useStyles$2=makeStyles({container:{display:"flex",flexWrap:"nowrap",alignItems:"center",justifyContent:"flex-start",color:tokens.colorNeutralForeground3},name:{...shorthands.margin("0px","0px","0px","6px"),fontSize:"16px",lineHeight:"22px"},role:{marginLeft:"6px"}}),OpenAIIcon=({styles:eo})=>jsxRuntimeExports.jsxs("svg",{fill:"currentColor",width:"20px",height:"20px",viewBox:"0 0 2048 2048",role:"img",xmlns:"http://www.w3.org/2000/svg",style:eo,children:[jsxRuntimeExports.jsx("title",{children:"OpenAI icon"}),jsxRuntimeExports.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"})]});var RichContentType=(eo=>(eo.TEXT="text",eo.IMAGE_URL="image_url",eo.IMAGE_FILE="image_file",eo))(RichContentType||{});const useClasses$d=makeStyles({header:{display:"flex",alignItems:"center"},paramKey:{fontSize:"14px",fontWeight:600,lineHeight:"20px",marginRight:"4px"},type:{fontSize:"13px",marginLeft:"10px",lineHeight:"20px",color:tokens.colorNeutralForeground3},description:{fontSize:"14px",lineHeight:"21px"},required:{color:tokens.colorPaletteRedForeground1,marginLeft:"10px"},optional:{color:tokens.colorPaletteGreenForeground1,marginLeft:"10px"},sectionTitle:{fontSize:"12px",color:tokens.colorNeutralForeground3}}),FunctionParameterRow=({paramKey:eo,paramSchema:to,isRequired:ro})=>{const{type:no,description:oo,properties:io,required:so,enum:ao}=to,lo=useClasses$d();return jsxRuntimeExports.jsxs(Card,{appearance:"outline",children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsxs("div",{className:lo.header,children:[jsxRuntimeExports.jsx("div",{className:lo.paramKey,children:eo}),jsxRuntimeExports.jsx("div",{className:lo.type,children:no}),ro?jsxRuntimeExports.jsx("div",{className:lo.required,children:"Required"}):jsxRuntimeExports.jsx("div",{className:lo.optional,children:"Optional"})]})}),oo&&jsxRuntimeExports.jsx("div",{className:lo.description,children:oo}),io&&jsxRuntimeExports.jsx(Accordion,{collapsible:!0,children:jsxRuntimeExports.jsxs(AccordionItem,{value:"properties",children:[jsxRuntimeExports.jsx(AccordionHeader,{children:jsxRuntimeExports.jsx("div",{className:lo.sectionTitle,children:"Properties"})}),jsxRuntimeExports.jsx(AccordionPanel,{children:Object.keys(io).map(uo=>jsxRuntimeExports.jsx(FunctionParameterRow,{paramKey:uo,paramSchema:io[uo],isRequired:so==null?void 0:so.includes(uo)},uo))})]})}),ao&&jsxRuntimeExports.jsx(Accordion,{collapsible:!0,children:jsxRuntimeExports.jsxs(AccordionItem,{value:"enum",children:[jsxRuntimeExports.jsx(AccordionHeader,{children:jsxRuntimeExports.jsx("div",{className:lo.sectionTitle,children:"Possible values"})}),jsxRuntimeExports.jsx(AccordionPanel,{children:ao.map(uo=>jsxRuntimeExports.jsx("div",{children:uo},uo))})]})})]})},useClasses$c=makeStyles({root:{...shorthands.padding("8px")},header:{fontSize:"24px",fontWeight:700,lineHeight:"30px"},parametersTitle:{fontSize:"20px",fontWeight:700,lineHeight:"28px"}}),LLMNodeToolCard=({tool:eo})=>{var ro;const to=useClasses$c();return jsxRuntimeExports.jsx("div",{className:to.root,children:jsxRuntimeExports.jsxs(Card,{children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{className:to.header,children:eo.function.name})}),eo.function.description&&jsxRuntimeExports.jsx("div",{children:eo.function.description}),eo.function.parameters&&jsxRuntimeExports.jsx("div",{className:to.parametersTitle,children:"Parameters"}),Object.keys(((ro=eo.function.parameters)==null?void 0:ro.properties)||{}).map(no=>{var io,so,ao,lo;const oo=(so=(io=eo.function.parameters)==null?void 0:io.properties)==null?void 0:so[no];return oo?jsxRuntimeExports.jsx(FunctionParameterRow,{paramKey:no,paramSchema:oo,isRequired:(lo=(ao=eo.function.parameters)==null?void 0:ao.required)==null?void 0:lo.includes(no)},no):null})]})})},RichTextChatboxMessageContent=eo=>{const{content:to,className:ro}=eo,no=to.map(co=>co.function_call).filter(Boolean),oo=to.reduce((co,fo)=>fo.tool_calls?[...co,...fo.tool_calls]:co,[]),io=to.reduce((co,fo)=>fo.tools?[...co,...fo.tools]:co,[]),so=reactExports.useMemo(()=>to.map(co=>weaveRichNodesIntoMarkup(co.content??"")).join(` + +`),[to]),ao=useStyles$1(),lo=mergeClasses(ao.content,ro,"rich-text-chatbox-message-content"),uo=useLocStrings();return jsxRuntimeExports.jsxs("div",{className:lo,children:[jsxRuntimeExports.jsx(ReactMarkdown,{text:so}),no.length>0&&jsxRuntimeExports.jsx("h3",{children:uo.Function_Calls}),no.map(co=>jsxRuntimeExports.jsx(JsonNodeCard,{title:(co==null?void 0:co.name)??"Function call",src:co==null?void 0:co.arguments},co==null?void 0:co.name)),oo.length>0&&jsxRuntimeExports.jsx("h3",{children:uo.Tool_Calls}),oo.map(co=>{const fo=io.find(ho=>ho.function.name===co.function.name);return jsxRuntimeExports.jsxs(Card,{style:{marginBottom:8},children:[jsxRuntimeExports.jsx(CardHeader,{header:fo?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("span",{children:["[",co.type,"]"]}),jsxRuntimeExports.jsxs(Popover,{children:[jsxRuntimeExports.jsx(PopoverTrigger,{children:jsxRuntimeExports.jsx("div",{className:ao.popoverTrigger,children:co.function.name})}),jsxRuntimeExports.jsx(PopoverSurface,{children:jsxRuntimeExports.jsx(LLMNodeToolCard,{tool:fo})})]})]}):`[${co.type}] ${co.function.name}`}),jsxRuntimeExports.jsx(JsonNodeCard,{title:uo.Arguments,src:co.function.arguments})]},co.id)})]})},useStyles$1=makeStyles({content:{...shorthands.overflow("auto"),wordBreak:"break-all",whiteSpace:"break-spaces"},popoverTrigger:{cursor:"pointer",marginLeft:"4px",color:tokens.colorBrandBackground,...shorthands.textDecoration("underline")}});function weaveRichNodesIntoMarkup(eo){if(typeof eo=="string")return eo;return Array.isArray(eo)?eo.map(to).filter(Boolean).join(` + +`):new Error("content type is not supported");function to(ro){var no,oo,io,so;switch(ro.type){case RichContentType.TEXT:return ro.text??"";case RichContentType.IMAGE_URL:return`![${(no=ro.image_url)==null?void 0:no.url}](${(oo=ro.image_url)==null?void 0:oo.url})`;case RichContentType.IMAGE_FILE:return`![${(io=ro.image_file)==null?void 0:io.path}](${(so=ro.image_file)==null?void 0:so.path})`;default:return""}}}const useAvatarStyles=makeStyles({avatar:{}}),useMessagesContainerStyles=makeStyles({messagesContainer:{display:"flex",height:"100%",width:"100%"},minimap:{boxSizing:"border-box",height:"100%",width:"8px"},minimapInner:{boxSizing:"border-box",width:"8px",...shorthands.border("1px","solid","rgba(0, 0, 128, 0.15)")}}),LLMNodeMessagesList=eo=>{const to=useSelectedSpan(),ro=useMessagesContainerStyles(),no=reactExports.useRef(null),oo=ChatboxSelector.MessageList,io=ChatboxSelector.MessageContent,so=eo.messages.map((ao,lo)=>({id:lo,type:ChatMessageType.Message,history:[{content:[{content:ao.content??"",name:ao.name,role:ao.role,timestamp:ao.timestamp,function_call:ao.function_call,tool_calls:ao.tool_calls,tools:eo.tools}],category:messageRoleToCategory(ao.role),from:capitalizeFirstLetter(getSenderNameByLLMMessage(ao)),timestamp:ao.role==="assistant"?to==null?void 0:to.start_time:to==null?void 0:to.end_time}]}));return reactExports.useEffect(()=>{const ao=document.querySelectorAll(".rich-text-chatbox-message-content"),lo=ao[ao.length-1];lo&&lo.scrollIntoView({block:"end"})},[]),jsxRuntimeExports.jsxs("div",{className:ro.messagesContainer,children:[jsxRuntimeExports.jsx(ChatboxMessageList,{locStrings:defaultLocStrings$1,messages:so,calcContentForCopy:defaultCalcContentForCopy,containerRef:no}),jsxRuntimeExports.jsx("div",{className:ro.minimap,children:jsxRuntimeExports.jsx(Minimap,{className:ro.minimapInner,syncScale:!1,sourceRootRef:no,sourceQuerySelector:oo,sourceElementQuerySelector:io})})]})},MessageAvatarRenderer=({data:eo,className:to})=>{const ro=useAvatarStyles();return eo.category===ChatMessageCategory.System?jsxRuntimeExports.jsx("div",{className:mergeClasses(ro.avatar,to),children:jsxRuntimeExports.jsx(Alert24Regular,{})}):eo.category===ChatMessageCategory.User?jsxRuntimeExports.jsx("div",{className:mergeClasses(ro.avatar,to),children:jsxRuntimeExports.jsx(Person24Regular,{})}):eo.category===ChatMessageCategory.Chatbot?jsxRuntimeExports.jsx("div",{className:mergeClasses(ro.avatar,to),children:jsxRuntimeExports.jsx(OpenAIIcon,{})}):null};function ChatboxMessageList(eo){const{locStrings:to,messages:ro,calcContentForCopy:no,containerRef:oo}=eo,io=useCopyAction(to,no),so=reactExports.useCallback(()=>[io],[io]),ao=useStyles();return jsxRuntimeExports.jsx("div",{ref:oo,className:ao.main,children:jsxRuntimeExports.jsx(MessageListRenderer,{locStrings:to,messages:ro,MessageAvatarRenderer,MessageContentRenderer:RichTextChatboxMessageContent,MessageSenderRenderer,MessageBubbleRenderer:LLMNodeMessageBubbleRenderer,useMessageActions:so})})}ChatboxMessageList.displayName="ChatboxMessageList";const useStyles=makeStyles({main:{...shorthands.padding("0","6px"),...shorthands.overflow("auto"),...shorthands.flex(1),height:"100%"}}),getVariableHoverMarkdown=eo=>{let to="";return typeof eo=="string"?to=eo:to=JSON.stringify(eo),to},useLLMJinjaEditorMount=eo=>reactExports.useCallback(ro=>{const no=Object.keys(eo),oo=ro.getModel();no.forEach(io=>{const so=oo==null?void 0:oo.findMatches(`[^.](${io})\\s*(%|\\})`,!1,!0,!1,null,!1);so==null||so.forEach(ao=>{ro.createDecorationsCollection([{range:{...ao.range,startColumn:ao.range.startColumn+1,endColumn:ao.range.endColumn-1},options:{isWholeLine:!1,inlineClassName:"llm-variable-highlight",hoverMessage:{value:getVariableHoverMarkdown(eo[io])}}}])})})},[eo]),useMessageCardClasses=makeStyles({card:{...shorthands.borderRadius("8px"),...shorthands.borderColor(tokens.colorNeutralStroke1),...shorthands.borderWidth("1px"),...shorthands.borderStyle("solid"),...shorthands.padding("16px"),...shorthands.margin("16px")}}),useClasses$b=makeStyles({root:{height:"100%",display:"flex",flexDirection:"column",...shorthands.overflow("auto")},title:{fontSize:"14px",lineHeight:"20px",fontStyle:"italic",fontWeight:400,color:tokens.colorNeutralForeground1},card:{flexGrow:1,...shorthands.padding("0px"),...shorthands.margin("0px")}}),LLMNodePromptTemplateTab=()=>{var lo,uo;const eo=useParentSpanOfSelectedSpan(),to=eo==null?void 0:eo.attributes,[ro,no]=reactExports.useState(ViewStatus.loading),oo=useLoadSpanEvents(eo,BuildInEventName["prompt.template"]),io=useSpanEventsWithPayload(eo,BuildInEventName["prompt.template"])[0],so=io?(lo=io.attributes)==null?void 0:lo["prompt.template"]:to==null?void 0:to["prompt.template"],ao=io?(uo=io.attributes)==null?void 0:uo["prompt.variables"]:JSON.parse((to==null?void 0:to["prompt.variables"])??"{}");return reactExports.useEffect(()=>{oo({onCompleted:co=>{no(co?ViewStatus.error:ViewStatus.loaded)}})},[]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[ro===ViewStatus.loading&&jsxRuntimeExports.jsx(Spinner,{size:"tiny",style:{marginTop:"30vh"}}),ro===ViewStatus.loaded&&so&&jsxRuntimeExports.jsx(LLMNodePromptTemplate,{promptTemplate:so,templateVariables:ao}),ro===ViewStatus.error&&jsxRuntimeExports.jsx("div",{style:{marginTop:"30vh",textAlign:"center"},children:jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{no(ViewStatus.loading),oo({onCompleted:co=>{no(co?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})})]})},LLMNodePromptTemplate=({promptTemplate:eo,templateVariables:to})=>{const ro=useClasses$b(),no=useMessageCardClasses(),io=useIsDark()?"vs-dark":"light",so=useLLMJinjaEditorMount(to);return jsxRuntimeExports.jsx("div",{className:ro.root,children:jsxRuntimeExports.jsx(Card,{className:mergeClasses(no.card,ro.card),children:jsxRuntimeExports.jsx(JinjaSyntaxHighlighter,{value:eo,theme:io,onMount:so})})})},LLMNodeTools=({tools:eo})=>jsxRuntimeExports.jsx("div",{children:eo.map((to,ro)=>jsxRuntimeExports.jsx(LLMNodeToolCard,{tool:to},ro))}),useLLMNodeClasses=makeStyles({root:{height:"100%",display:"flex"},header:{display:"flex",width:"100%",justifyContent:"space-between"},content:{...shorthands.overflow("auto")}}),LLMNodeInfo=({item:eo})=>{const{inputMessages:to,outputMessages:ro,tools:no}=useMessagesOfSelectedSpan(),oo=[...to,...ro],io=useLLMNodeClasses(),so=useSelectedSpan(),[ao,lo]=reactExports.useState(ViewStatus.loading),[uo,co]=reactExports.useState(ViewStatus.loading),fo=useLoadSpanEvents(so,BuildInEventName["function.inputs"]),ho=useLoadSpanEvents(so,BuildInEventName["function.output"]);return reactExports.useEffect(()=>{(eo==="messages"||eo==="tools")&&(fo({onCompleted:po=>{lo(po?ViewStatus.error:ViewStatus.loaded)}}),ho({onCompleted:po=>{co(po?ViewStatus.error:ViewStatus.loaded)}}))},[eo]),eo==="raw"?jsxRuntimeExports.jsx(DefaultNodeInfo,{}):eo==="promptTemplate"?jsxRuntimeExports.jsx(LLMNodePromptTemplateTab,{}):eo==="llmParameters"?jsxRuntimeExports.jsx(Card,{className:io.root,children:jsxRuntimeExports.jsx("div",{className:io.content,children:jsxRuntimeExports.jsx(LLMNodeInvocationParametersTab,{})})}):ao===ViewStatus.loading||uo===ViewStatus.loading?jsxRuntimeExports.jsx("div",{style:{marginTop:"30vh"},children:jsxRuntimeExports.jsx(Spinner,{})}):ao===ViewStatus.error||uo===ViewStatus.error?jsxRuntimeExports.jsx("div",{style:{marginTop:"30vh",textAlign:"center"},children:jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{lo(ViewStatus.loading),fo({onCompleted:po=>{lo(po?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0}),co(ViewStatus.loading),ho({onCompleted:po=>{co(po?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})}):jsxRuntimeExports.jsx(Card,{className:io.root,children:jsxRuntimeExports.jsxs("div",{className:io.content,children:[eo==="messages"&&jsxRuntimeExports.jsx(LLMNodeMessagesList,{messages:oo,tools:no}),eo==="tools"&&jsxRuntimeExports.jsx(LLMNodeTools,{tools:no})]})})},ModelName=()=>{const eo=useNodeDetailClasses(),to=useSelectedSpan(),[ro,no]=reactExports.useState(ViewStatus.loading),oo=useLoadSpanEvents(to,BuildInEventName["function.inputs"]),io=getSpanType(to),so=reactExports.useMemo(()=>(io==null?void 0:io.toLowerCase())==="llm",[io]);if(reactExports.useEffect(()=>{so&&oo({onCompleted:uo=>{no(uo?ViewStatus.error:ViewStatus.loaded)}})},[so]),!so||ro!==ViewStatus.loaded)return null;const ao=getSpanEventPayload(to,BuildInEventName["function.inputs"]),lo=ao==null?void 0:ao.model;return lo&&jsxRuntimeExports.jsx("div",{className:eo.headerModalName,children:lo})},getMimeTypeFromContentType=eo=>{var ro;return(ro=/^\s*([^;\s]*)(?:;|\s|$)/.exec(eo))==null?void 0:ro[1].toLowerCase()},NodeHttpCard=({type:eo})=>{const to=useLocStrings(),ro=useSelectedSpan(),no=React.useMemo(()=>parseHttpSpanAttributes(ro),[ro]);if(!no)return null;const{urlFull:oo}=no,io=parseInt(no.status_code);let so;io>=200&&io<300?so="success":io>=400?so="danger":so="warning";const ao=jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[no.status_code!==void 0?jsxRuntimeExports.jsxs(Badge$2,{appearance:"outline",color:so,children:[to.Status," ",jsxRuntimeExports.jsx("span",{style:{marginLeft:4},children:no.status_code})]}):null,jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:no.method}),jsxRuntimeExports.jsx("span",{style:{marginRight:8,wordBreak:"break-all"},children:oo})]}),lo=eo==="response"?no.response:no.request;return jsxRuntimeExports.jsx(Card,{style:{marginBottom:12},children:jsxRuntimeExports.jsx(NodeHttpItem,{type:eo,header:ao,data:lo})})},NodeHttpItem=({type:eo,header:to,data:ro})=>{const no=useLocStrings(),{headers:oo,body:io}=ro,so=JSON.stringify(ro),ao=eo==="response",lo=ao?"Response":"Request";let uo;if(io)if(ao){const co=getMimeTypeFromContentType(oo["content-type"]);uo=jsxRuntimeExports.jsx(HttpResponseContent,{mimeType:co,body:io})}else uo=jsxRuntimeExports.jsx(JsonNodeCard,{wrapperStyle:{background:tokens.colorNeutralBackground2},src:io,title:no[`${lo} Body`]});return jsxRuntimeExports.jsx(BasicViewer,{showEmpty:!1,previewRender:()=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(JsonNodeCard,{wrapperStyle:{background:tokens.colorNeutralBackground2},src:oo,title:no[`${lo} Headers`]}),uo]}),rawRender:()=>jsxRuntimeExports.jsx(Card,{style:{wordBreak:"break-all"},children:so}),headerRender:to?()=>to:void 0})},HttpResponseContent=({mimeType:eo,body:to=""})=>{const ro=useLocStrings();return eo!=null&&eo.includes("json")?jsxRuntimeExports.jsx(JsonNodeCard,{wrapperStyle:{background:tokens.colorNeutralBackground2},src:to,title:ro["Response Body"]}):eo==="text/event-stream"?jsxRuntimeExports.jsxs(Card,{style:{marginBottom:12,background:tokens.colorNeutralBackground2},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:ro["Response Body"]})})}),to.split("data:").filter(no=>!!no).map((no,oo)=>jsxRuntimeExports.jsxs("div",{children:["data: ",no]},`${no}-${oo}`))]}):jsxRuntimeExports.jsxs(Card,{style:{marginBottom:12,background:tokens.colorNeutralBackground2},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:ro["Response Body"]})})}),jsxRuntimeExports.jsx("div",{style:{wordBreak:"break-all"},children:to})]})},NodeRawCard=()=>{const eo=useSelectedSpan(),to=useSpanEventsLoadStatus(),ro=useLocStrings(),[,no]=reactExports.useReducer(oo=>oo+1,0);return jsxRuntimeExports.jsx(JsonNodeCard,{title:ro.Raw_JSON,src:eo,jsonViewerProps:{customizeNode:({depth:oo,indexOrName:io,node:so})=>{var lo,uo;if(oo===3&&typeof io=="number"&&typeof so.name=="string"&&typeof so.timestamp=="string"&&typeof so.attributes=="object"){const co=`${(lo=eo==null?void 0:eo.context)==null?void 0:lo.span_id}__${(uo=eo==null?void 0:eo.external_event_data_uris)==null?void 0:uo[io]}`;return to.get(co)==="success"?void 0:jsxRuntimeExports.jsx(NodeEventItem,{name:so.name,index:io,timestamp:so.timestamp,forceUpdate:no})}}}})},NodeEventItem=({index:eo,name:to,timestamp:ro,forceUpdate:no})=>{const oo=useSelectedSpan(),io=useLocStrings(),so=useLoadSpanEvents(oo,to,eo),[ao,lo]=reactExports.useState(ViewStatus.hidden);if(ao===ViewStatus.loaded){no();return}let uo=io.load_all;return ao===ViewStatus.loading?uo=io.loading:ao===ViewStatus.error&&(uo=io["Failed to load, click to try again"]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"{"}),jsxRuntimeExports.jsxs("div",{style:{paddingLeft:"1em"},children:[jsxRuntimeExports.jsx("span",{style:{color:"var(--json-property)"},children:"name:"}),jsxRuntimeExports.jsx("span",{style:{color:"var(--json-string)"},children:` "${to}",`})]}),jsxRuntimeExports.jsxs("div",{style:{paddingLeft:"1em"},children:[jsxRuntimeExports.jsx("span",{style:{color:"var(--json-property)"},children:"timestamp:"}),jsxRuntimeExports.jsx("span",{style:{color:"var(--json-string)"},children:` "${ro}",`})]}),jsxRuntimeExports.jsx("div",{style:{paddingLeft:"1em"},children:jsxRuntimeExports.jsxs(Button$2,{size:"small",appearance:"transparent",style:{padding:0,color:"rgb(163, 190, 233)",justifyContent:"flex-start"},onClick:()=>{lo(ViewStatus.loading),so({onCompleted:co=>{lo(co?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})},children:["... ",uo]})}),jsxRuntimeExports.jsx("span",{children:"}"})]})},RetrievalNodeInfo=()=>{const eo=useSelectedSpan(),to=useLocStrings(),[ro,no]=reactExports.useState(ViewStatus.loading),oo=useLoadSpanEvents(eo,BuildInEventName["retrieval.documents"]),io=useSpanEventsWithPayload(eo,BuildInEventName["retrieval.documents"]),so=(eo==null?void 0:eo.attributes)??{};let ao=[];if(io.length>0)ao=io.map(po=>po.attributes).flat();else if(typeof so["retrieval.documents"]=="string")try{ao=JSON.parse(so["retrieval.documents"])}catch{ao=[]}const[lo,uo]=reactExports.useState(ViewStatus.loading),co=useLoadSpanEvents(eo,BuildInEventName["retrieval.query"]),fo=useSpanEventsWithPayload(eo,BuildInEventName["retrieval.query"]);let ho=so["retrieval.query"];return fo.length>0&&(ho=fo.map(po=>po.attributes).join(` +`)),reactExports.useEffect(()=>{oo({onCompleted:po=>{no(po?ViewStatus.error:ViewStatus.loaded)}}),co({onCompleted:po=>{uo(po?ViewStatus.error:ViewStatus.loaded)}})},[]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Card,{style:{marginBottom:12},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:to.Query})})}),lo===ViewStatus.loading&&jsxRuntimeExports.jsx(Spinner,{size:"tiny"}),lo===ViewStatus.loaded&&(ho??""),lo===ViewStatus.error&&jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{uo(ViewStatus.loading),co({onCompleted:po=>{uo(po?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})]}),jsxRuntimeExports.jsxs(Card,{style:{marginBottom:12},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:to.Documents})})}),ro===ViewStatus.loading&&jsxRuntimeExports.jsx(Spinner,{size:"tiny"}),ro===ViewStatus.loaded&&jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ao.map(po=>jsxRuntimeExports.jsx(Document$1,{document:po},po["document.id"]))}),ro===ViewStatus.error&&jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{no(ViewStatus.loading),oo({onCompleted:po=>{no(po?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})]})]})},Document$1=({document:eo})=>{const to=useRetrievalNodeDetailClasses(),[ro,no]=reactExports.useState(["content"]),oo=reactExports.useCallback((so,ao)=>{no(ao.openItems)},[]),io=useLocStrings();return jsxRuntimeExports.jsxs(Card,{style:{background:tokens.colorNeutralBackground2},children:[jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",columnGap:6},children:[jsxRuntimeExports.jsx(Document16Regular,{}),jsxRuntimeExports.jsx("div",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:jsxRuntimeExports.jsx(Tooltip,{content:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:"id"})," ",eo["document.id"]]}),relationship:"description",children:jsxRuntimeExports.jsxs("span",{children:[io.document," ",eo["document.id"]]})})}),jsxRuntimeExports.jsx(Tooltip,{content:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:io.score})," ",eo["document.score"]]}),relationship:"description",children:jsxRuntimeExports.jsxs(Badge$2,{appearance:"outline",children:["score ",floatFormatter(eo["document.score"])]})})]}),jsxRuntimeExports.jsx(Divider$2,{}),jsxRuntimeExports.jsx(Card,{style:{background:tokens.colorNeutralBackground3},children:jsxRuntimeExports.jsx(Accordion,{openItems:ro,onToggle:oo,collapsible:!0,multiple:!0,children:jsxRuntimeExports.jsxs(AccordionItem,{value:"content",children:[jsxRuntimeExports.jsx(AccordionHeader,{className:to.accordionHeader,children:io.content}),jsxRuntimeExports.jsx(AccordionPanel,{children:jsxRuntimeExports.jsx(MarkdownViewer,{content:eo["document.content"]})})]})})}),jsxRuntimeExports.jsx(JsonNodeCard,{title:"metadata",src:eo["document.metadata"],wrapperStyle:{background:tokens.colorNeutralBackground3}})]})};function SpanType({span:eo,showText:to=!0,className:ro}){const no=useClasses$a(),{color:oo,backgroundColor:io,borderColor:so,icon:ao,text:lo}=reactExports.useMemo(()=>(eo==null?void 0:eo.toLocaleLowerCase())==="flow"?{color:tokens.colorBrandForeground2,backgroundColor:tokens.colorBrandBackground2,borderColor:tokens.colorBrandStroke2,icon:jsxRuntimeExports.jsx(Flow16Regular,{}),text:"Flow"}:(eo==null?void 0:eo.toLocaleLowerCase())==="function"||(eo==null?void 0:eo.toLocaleLowerCase())==="tool"?{color:tokens.colorPaletteBerryForeground2,backgroundColor:tokens.colorPaletteBerryBackground1,borderColor:tokens.colorPaletteBerryBorder1,icon:jsxRuntimeExports.jsx(HexagonThree16Regular,{}),text:"Function"}:(eo==null?void 0:eo.toLocaleLowerCase())==="retrieval"?{color:tokens.colorPaletteDarkOrangeForeground2,backgroundColor:tokens.colorPaletteDarkOrangeBackground1,borderColor:tokens.colorPaletteDarkOrangeBorder1,icon:jsxRuntimeExports.jsx(BranchRequest16Regular,{}),text:"Retrieval"}:(eo==null?void 0:eo.toLocaleLowerCase())==="embedding"?{color:tokens.colorPaletteLightGreenForeground2,backgroundColor:tokens.colorPaletteLightGreenBackground1,borderColor:tokens.colorPaletteLightGreenBorder1,icon:jsxRuntimeExports.jsx(FlowchartRegular,{}),text:"Embedding"}:(eo==null?void 0:eo.toLocaleLowerCase())==="llm"?{color:tokens.colorPaletteMarigoldForeground2,backgroundColor:tokens.colorPaletteMarigoldBackground1,borderColor:tokens.colorPaletteMarigoldBorder1,icon:jsxRuntimeExports.jsx(OpenAIIcon,{styles:{height:"16px",width:"16px"}}),text:"LLM"}:(eo==null?void 0:eo.toLocaleLowerCase())==="network"?{color:tokens.colorPaletteRedForeground2,backgroundColor:tokens.colorPaletteRedBackground1,borderColor:tokens.colorPaletteRedBorder1,icon:jsxRuntimeExports.jsx(Link16Regular,{}),text:"Network"}:{color:tokens.colorPaletteYellowForeground2,backgroundColor:tokens.colorPaletteYellowBackground1,borderColor:tokens.colorPaletteYellowBorder1,icon:jsxRuntimeExports.jsx(QuestionCircle16Regular,{}),text:"Unknown"},[eo]);return jsxRuntimeExports.jsx(Badge$2,{appearance:"filled",size:"large",className:mergeClasses(no.root,ro),icon:ao,style:{color:oo,backgroundColor:io,borderColor:so},children:to&&lo})}const useClasses$a=makeStyles({root:{height:"24px",...shorthands.padding("0","6px")}}),NodeDetail=({emptyTip:eo=jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"No Data"})})=>{var _o,Eo,So;const to=useNodeDetailClasses(),ro=useSelectedSpan(),no=useEvaluationSpansOfSelectedSpan(),oo=useRootSpanIdOfSelectedSpans(),io=useLocStrings(),so=getSpanType(ro),ao=reactExports.useMemo(()=>{var To;return oo===((To=ro==null?void 0:ro.context)==null?void 0:To.span_id)},[oo,ro]),lo=reactExports.useMemo(()=>(so==null?void 0:so.toLowerCase())==="http",[so]),uo=reactExports.useMemo(()=>(so==null?void 0:so.toLowerCase())==="llm",[so]),co=reactExports.useMemo(()=>{const To=so==null?void 0:so.toLowerCase();let wo="Input_&_Output";return To==="retrieval"?wo="Retrieval":To==="embedding"&&(wo="Embedding"),wo},[so]),fo=[...uo?[{key:"llm_conversations",name:io.Conversations}]:[],...lo?[{key:"response",name:io.Response},{key:"request",name:io.Request}]:[{key:"info",name:io[`${co}`]}],{key:"raw",name:io.Raw_JSON},...uo?[{key:"llm_template",name:io.Prompt_Template},{key:"llm_params",name:io.LLM_Parameters},{key:"llm_tools",name:io.Tools}]:[],...ao?[{key:"evaluations",name:io.Metrics}]:[],{key:"error",name:io.Exception}];let ho="info";uo?ho="llm_conversations":lo&&(ho="response");const[po,go]=reactExports.useState(ho),vo=(_o=ro==null?void 0:ro.events)==null?void 0:_o.filter(To=>To.name===BuildInEventName.exception),bo=(vo==null?void 0:vo.length)??0,xo=no.length??0;return ro?jsxRuntimeExports.jsxs("div",{className:to.wrapper,children:[jsxRuntimeExports.jsxs("div",{className:to.header,children:[so&&jsxRuntimeExports.jsx(SpanType,{span:so,showText:!1,className:to.headerSpan})," ",jsxRuntimeExports.jsx(Tooltip,{content:ro.name??"",relationship:"label",children:jsxRuntimeExports.jsx("div",{className:to.headerTitle,children:`${ro.name}`})}),jsxRuntimeExports.jsxs("div",{className:to.headerRight,children:[jsxRuntimeExports.jsx(ModelName,{}),jsxRuntimeExports.jsx(NodeToken,{span:ro,size:UISize.small}),jsxRuntimeExports.jsx(LatencyText,{startTimeISOString:ro.start_time,endTimeISOString:ro.end_time,size:UISize.small})]})]}),jsxRuntimeExports.jsx(Divider$2,{className:to.headerDivider}),((So=(Eo=ro==null?void 0:ro.status)==null?void 0:Eo.status_code)==null?void 0:So.toLowerCase())==="error"&&jsxRuntimeExports.jsx(MessageBar,{intent:"error",onClick:()=>{go("error")},style:{cursor:"pointer"},children:jsxRuntimeExports.jsxs(MessageBarBody,{children:[jsxRuntimeExports.jsxs(MessageBarTitle,{children:[" ",io.Error]}),ro.status.message]})}),jsxRuntimeExports.jsx(TabList,{selectedValue:po,onTabSelect:(To,wo)=>{go(wo.value)},children:fo.map(To=>jsxRuntimeExports.jsxs(Tab$1,{value:To.key,style:{flexShrink:1},children:[To.name,To.key==="evaluations"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[" ",jsxRuntimeExports.jsx(CounterBadge,{appearance:"filled",color:"informative",count:xo,size:"small",showZero:!0})]}),To.key==="error"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[" ",jsxRuntimeExports.jsx(CounterBadge,{appearance:"filled",color:bo>0?"danger":"informative",count:bo,size:"small",showZero:!0})]})]},To.key))}),jsxRuntimeExports.jsx(Divider$2,{className:to.tabDivider}),jsxRuntimeExports.jsxs("div",{className:to.content,children:[uo&&po==="llm_conversations"&&jsxRuntimeExports.jsx(LLMNodeInfo,{item:"messages"}),!lo&&po==="info"&&jsxRuntimeExports.jsx(NodeInfoCard,{}),lo&&po==="response"&&jsxRuntimeExports.jsx(NodeHttpCard,{type:"response"}),lo&&po==="request"&&jsxRuntimeExports.jsx(NodeHttpCard,{type:"request"}),po==="raw"&&jsxRuntimeExports.jsx(NodeRawCard,{}),uo&&po==="llm_template"&&jsxRuntimeExports.jsx(LLMNodeInfo,{item:"promptTemplate"}),uo&&po==="llm_params"&&jsxRuntimeExports.jsx(LLMNodeInfo,{item:"llmParameters"}),uo&&po==="llm_tools"&&jsxRuntimeExports.jsx(LLMNodeInfo,{item:"tools"}),ao&&po==="evaluations"&&jsxRuntimeExports.jsx(EvaluationsTab,{}),po==="error"&&jsxRuntimeExports.jsx(ErrorsTab,{})]})]}):eo},NodeInfoCard=()=>{const eo=useSelectedSpan(),to=getSpanType(eo);switch(to==null?void 0:to.toLowerCase()){case"llm":return jsxRuntimeExports.jsx(LLMNodeInfo,{item:"raw"});case"retrieval":return jsxRuntimeExports.jsx(RetrievalNodeInfo,{});case"embedding":return jsxRuntimeExports.jsx(EmbeddingNodeInfo,{});default:return jsxRuntimeExports.jsx(DefaultNodeInfo,{})}},SpansTreeContext=reactExports.createContext({parentIdLookUp:new Map,collapsedSpanIds:Set$1(),setCollapsedSpanIds:()=>{}}),useIsLeafSpan=eo=>{var no;const ro=reactExports.useContext(SpansTreeContext).parentIdLookUp;return!ro.get(eo)||((no=ro.get(eo))==null?void 0:no.length)===0},useToggleCollapse=()=>{const{setCollapsedSpanIds:eo}=reactExports.useContext(SpansTreeContext);return reactExports.useCallback(to=>{eo(ro=>ro.has(to)?ro.delete(to):ro.add(to))},[eo])},useIsCollapsed=eo=>reactExports.useContext(SpansTreeContext).collapsedSpanIds.has(eo),useClasses$9=makeStyles({root:{height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"flex-start",flexWrap:"nowrap",cursor:"pointer",boxSizing:"border-box",position:"relative",...shorthands.padding("6px","8px"),...shorthands.gap("6px")},toggleButton:{marginLeft:"-6px",marginRight:"-2px"},spanName:{...shorthands.flex(0,1,"auto"),fontSize:"14px",color:tokens.colorNeutralForeground1,...shorthands.overflow("hidden"),textOverflow:"ellipsis",whiteSpace:"nowrap",marginRight:"4px"},lastInputMessage:{...shorthands.margin("0px","0px","0px","4px"),fontSize:"12px",color:tokens.colorNeutralForeground2},lastInputMessageLabel:shorthands.margin("0px","4px","0px","0px"),right:{display:"flex",flexWrap:"nowrap",justifyContent:"flex-end",marginLeft:"auto",...shorthands.flex(0,1,"auto"),...shorthands.padding("0px","10px","0px","0px"),...shorthands.gap(tokens.spacingHorizontalXS)},selectedBar:{position:"absolute",backgroundColor:"#1372ED",width:"3px",height:"24px",left:"0px",...shorthands.borderRadius("3px")}}),TreeNode$1=({node:eo,span:to})=>{var ho,po,go,vo,bo,xo;const ro=getSpanType(to),no=bitset.has(GraphNodeStatus.Selected)(eo.status),oo=bitset.has(GraphNodeStatus.Activated)(eo.status),io=useClasses$9(),so=useIsLeafSpan(((ho=to.context)==null?void 0:ho.span_id)??""),ao=useIsCollapsed(((po=to.context)==null?void 0:po.span_id)??""),lo=useToggleCollapse(),uo=tokens.colorNeutralStroke2;let co=tokens.colorNeutralBackground1;no&&(co=tokens.colorNeutralBackground1Selected),oo&&(co=tokens.colorNeutralBackground1Hover);const fo=reactExports.useCallback(_o=>{var Eo;_o.preventDefault(),_o.stopPropagation(),lo(((Eo=to.context)==null?void 0:Eo.span_id)??"")},[(go=to.context)==null?void 0:go.span_id,lo]);return jsxRuntimeExports.jsx("foreignObject",{x:eo.x,y:eo.y,width:TREE_NODE_WIDTH,height:TREE_NODE_HEIGHT,style:{borderRadius:tokens.borderRadiusXLarge,border:`1px solid ${uo}`,backgroundColor:co,boxShadow:"0px 1px 2px 0px rgba(0, 0, 0, 0.05)"},children:jsxRuntimeExports.jsxs("div",{className:io.root,children:[no&&jsxRuntimeExports.jsx("div",{className:io.selectedBar}),!so&&jsxRuntimeExports.jsx(Button$2,{size:"small",className:io.toggleButton,onClick:fo,appearance:"transparent",icon:ao?jsxRuntimeExports.jsx(ChevronRight20Regular,{}):jsxRuntimeExports.jsx(ChevronDown20Regular,{})}),jsxRuntimeExports.jsx(SpanType,{span:ro}),jsxRuntimeExports.jsx(Tooltip,{content:to.name??"",relationship:"label",children:jsxRuntimeExports.jsx("div",{className:io.spanName,children:`${to.name}`})}),jsxRuntimeExports.jsxs("div",{className:io.right,children:[((bo=(vo=to==null?void 0:to.status)==null?void 0:vo.status_code)==null?void 0:bo.toLowerCase())==="error"&&jsxRuntimeExports.jsx(StatusText,{statusCode:(xo=to.status)==null?void 0:xo.status_code,tooltipContent:to.status.message,size:UISize.extraSmall}),jsxRuntimeExports.jsx(NodeToken,{span:to,size:UISize.extraSmall}),jsxRuntimeExports.jsx(LatencyText,{startTimeISOString:to.start_time,endTimeISOString:to.end_time,size:UISize.extraSmall})]})]})})};class NodeConfig{constructor(to){this.options=to}render(to){const ro=this.options.spans.find(no=>{var oo;return((oo=no==null?void 0:no.context)==null?void 0:oo.span_id)===to.model.id});return ro?jsxRuntimeExports.jsx(TreeNode$1,{node:to.model,span:ro}):null}getMinHeight(){return 0}getMinWidth(){return 0}}const TreeView=()=>{const[eo,to]=reactExports.useState(new Map),[ro,no]=reactExports.useState(Set$1()),oo=useSpansOfSelectedTrace(),io=useSetSelectedSpanId(),so=useSelectedSpanId(),ao=ho=>(po,go)=>(go&&go.type===GraphNodeEvent.Click&&io(go.node.id),ho(po,go)),lo=GraphConfigBuilder.default().registerNode(()=>new NodeConfig({spans:oo})).registerPort(()=>new PortConfig).registerEdge(()=>new EdgeConfig).build(),uo=new Set;uo.add(GraphFeatures.ClickNodeToSelect),uo.add(GraphFeatures.CanvasVerticalScrollable),uo.add(GraphFeatures.CanvasHorizontalScrollable),uo.add(GraphFeatures.LimitBoundary),uo.add(GraphFeatures.InvisibleScrollbar);const[co,fo]=useGraphReducer({data:GraphModel.empty(),settings:{features:uo,graphConfig:lo,canvasBoundaryPadding:{top:0,bottom:TREE_NODE_HEIGHT,left:0,right:TREE_NODE_HEIGHT}}},ao);return reactExports.useEffect(()=>{const{graph:ho,rootIds:po,parentIdLookUp:go}=spansToGraphModel(oo,{collapsedSpanIds:ro});to(go),fo({type:GraphCanvasEvent.SetData,data:ho.selectNodes(vo=>vo.id===po[0])}),io(po[0])},[]),reactExports.useEffect(()=>{const{graph:ho,rootIds:po,parentIdLookUp:go}=spansToGraphModel(oo,{collapsedSpanIds:ro});to(go),fo({type:GraphCanvasEvent.SetData,data:ho.selectNodes(vo=>vo.id===po[0])})},[ro]),reactExports.useEffect(()=>{so&&fo({type:GraphNodeEvent.Select,nodes:[so]})},[so]),jsxRuntimeExports.jsx(SpansTreeContext.Provider,{value:{parentIdLookUp:eo,collapsedSpanIds:ro,setCollapsedSpanIds:no},children:jsxRuntimeExports.jsx(TreeGraph,{state:co,dispatch:fo})})},TraceDetail=()=>{const eo=useClasses$8(),to=useSelectedSpanId(),ro=reactExports.useRef(null),no=useTraceDetailRefreshKey(),oo=useIsGanttChartOpen(),io=useTraceDetailViewStatus(),so=useTraceDetailLoadingComponent(),ao=useTraceDetailErrorComponent(),lo=useLocStrings();return reactExports.useEffect(()=>{var uo;oo&&((uo=ro.current)==null||uo.updateSize({height:400,width:"100%"}))},[oo]),io===ViewStatus.error?jsxRuntimeExports.jsx(ao,{}):io===ViewStatus.loading?jsxRuntimeExports.jsx(so,{}):io===ViewStatus.hidden?null:jsxRuntimeExports.jsxs("div",{className:eo.root,children:[jsxRuntimeExports.jsx("div",{className:eo.container,children:jsxRuntimeExports.jsxs("div",{className:eo.content,children:[jsxRuntimeExports.jsx(Resizable,{enable:{right:!0},minWidth:100,maxWidth:"60%",defaultSize:{width:TREE_NODE_WIDTH+2*TREE_NODE_INDENT+32,height:"100%"},handleComponent:{right:jsxRuntimeExports.jsx("div",{className:eo.resizeBar})},children:jsxRuntimeExports.jsx("div",{className:eo.leftPane,children:jsxRuntimeExports.jsx(TreeView,{},no)})}),jsxRuntimeExports.jsx("div",{className:eo.rightPane,children:jsxRuntimeExports.jsx(NodeDetail,{emptyTip:jsxRuntimeExports.jsx(MessageBar,{intent:"error",children:lo.No_span_data})},no)},`${to}`)]})}),oo&&jsxRuntimeExports.jsx("div",{className:eo.bottomPane,children:jsxRuntimeExports.jsx(Resizable,{ref:ro,className:eo.ganttContainer,defaultSize:{height:0,width:"100%"},enable:{top:!0},handleComponent:{top:jsxRuntimeExports.jsx("div",{className:eo.resizeBarBottom})},children:jsxRuntimeExports.jsx(GanttView,{},no)})})]})},useClasses$8=makeStyles({root:{width:"100%",height:"100%"},container:{display:"flex",flexDirection:"column",height:"100%",width:"100%"},summary:{display:"flex",alignItems:"stretch",height:"48px",width:"100%",...shorthands.margin("16px"),...shorthands.gap("1rem")},content:{...shorthands.flex(1),display:"flex"},leftPane:{height:"100%",...shorthands.margin("16px",0,0,"16px")},rightPane:{position:"relative",width:"100%",height:"100%",...shorthands.flex(1),...shorthands.overflow("hidden")},bottomPane:{position:"absolute",backgroundColor:tokens.colorNeutralBackground1,bottom:0,width:"100%"},ganttContainer:{...shorthands.padding("16px")},resizeBar:{position:"absolute",top:0,bottom:0,right:"5px",width:"6px",backgroundColor:tokens.colorNeutralBackground3,"::before":{content:"''",position:"absolute",top:"50%",right:"1px",marginTop:"-12px",height:"24px",width:"1px",backgroundColor:tokens.colorNeutralBackground3Pressed},"::after":{content:"''",position:"absolute",top:"50%",left:"1px",marginTop:"-12px",height:"24px",width:"1px",backgroundColor:tokens.colorNeutralBackground3Pressed}},resizeBarBottom:{position:"absolute",left:0,right:0,bottom:"5px",height:"6px",backgroundColor:tokens.colorNeutralBackground3,"::before":{content:"''",position:"absolute",left:"50%",bottom:"1px",marginLeft:"-12px",width:"24px",height:"1px",backgroundColor:tokens.colorNeutralBackground3Pressed},"::after":{content:"''",position:"absolute",left:"50%",top:"1px",marginLeft:"-12px",width:"24px",height:"1px",backgroundColor:tokens.colorNeutralBackground3Pressed}}});let Text$1=class f_{lineAt(to){if(to<0||to>this.length)throw new RangeError(`Invalid position ${to} in document of length ${this.length}`);return this.lineInner(to,!1,1,0)}line(to){if(to<1||to>this.lines)throw new RangeError(`Invalid line number ${to} in ${this.lines}-line document`);return this.lineInner(to,!0,1,0)}replace(to,ro,no){[to,ro]=clip(this,to,ro);let oo=[];return this.decompose(0,to,oo,2),no.length&&no.decompose(0,no.length,oo,3),this.decompose(ro,this.length,oo,1),TextNode.from(oo,this.length-(ro-to)+no.length)}append(to){return this.replace(this.length,this.length,to)}slice(to,ro=this.length){[to,ro]=clip(this,to,ro);let no=[];return this.decompose(to,ro,no,0),TextNode.from(no,ro-to)}eq(to){if(to==this)return!0;if(to.length!=this.length||to.lines!=this.lines)return!1;let ro=this.scanIdentical(to,1),no=this.length-this.scanIdentical(to,-1),oo=new RawTextCursor(this),io=new RawTextCursor(to);for(let so=ro,ao=ro;;){if(oo.next(so),io.next(so),so=0,oo.lineBreak!=io.lineBreak||oo.done!=io.done||oo.value!=io.value)return!1;if(ao+=oo.value.length,oo.done||ao>=no)return!0}}iter(to=1){return new RawTextCursor(this,to)}iterRange(to,ro=this.length){return new PartialTextCursor(this,to,ro)}iterLines(to,ro){let no;if(to==null)no=this.iter();else{ro==null&&(ro=this.lines+1);let oo=this.line(to).from;no=this.iterRange(oo,Math.max(oo,ro==this.lines+1?this.length:ro<=1?0:this.line(ro-1).to))}return new LineCursor(no)}toString(){return this.sliceString(0)}toJSON(){let to=[];return this.flatten(to),to}constructor(){}static of(to){if(to.length==0)throw new RangeError("A document must have at least one line");return to.length==1&&!to[0]?f_.empty:to.length<=32?new TextLeaf(to):TextNode.from(TextLeaf.split(to,[]))}};class TextLeaf extends Text$1{constructor(to,ro=textLength(to)){super(),this.text=to,this.length=ro}get lines(){return this.text.length}get children(){return null}lineInner(to,ro,no,oo){for(let io=0;;io++){let so=this.text[io],ao=oo+so.length;if((ro?no:ao)>=to)return new Line(oo,ao,no,so);oo=ao+1,no++}}decompose(to,ro,no,oo){let io=to<=0&&ro>=this.length?this:new TextLeaf(sliceText(this.text,to,ro),Math.min(ro,this.length)-Math.max(0,to));if(oo&1){let so=no.pop(),ao=appendText(io.text,so.text.slice(),0,io.length);if(ao.length<=32)no.push(new TextLeaf(ao,so.length+io.length));else{let lo=ao.length>>1;no.push(new TextLeaf(ao.slice(0,lo)),new TextLeaf(ao.slice(lo)))}}else no.push(io)}replace(to,ro,no){if(!(no instanceof TextLeaf))return super.replace(to,ro,no);[to,ro]=clip(this,to,ro);let oo=appendText(this.text,appendText(no.text,sliceText(this.text,0,to)),ro),io=this.length+no.length-(ro-to);return oo.length<=32?new TextLeaf(oo,io):TextNode.from(TextLeaf.split(oo,[]),io)}sliceString(to,ro=this.length,no=` +`){[to,ro]=clip(this,to,ro);let oo="";for(let io=0,so=0;io<=ro&&soto&&so&&(oo+=no),toio&&(oo+=ao.slice(Math.max(0,to-io),ro-io)),io=lo+1}return oo}flatten(to){for(let ro of this.text)to.push(ro)}scanIdentical(){return 0}static split(to,ro){let no=[],oo=-1;for(let io of to)no.push(io),oo+=io.length+1,no.length==32&&(ro.push(new TextLeaf(no,oo)),no=[],oo=-1);return oo>-1&&ro.push(new TextLeaf(no,oo)),ro}}class TextNode extends Text$1{constructor(to,ro){super(),this.children=to,this.length=ro,this.lines=0;for(let no of to)this.lines+=no.lines}lineInner(to,ro,no,oo){for(let io=0;;io++){let so=this.children[io],ao=oo+so.length,lo=no+so.lines-1;if((ro?lo:ao)>=to)return so.lineInner(to,ro,no,oo);oo=ao+1,no=lo+1}}decompose(to,ro,no,oo){for(let io=0,so=0;so<=ro&&io=so){let uo=oo&((so<=to?1:0)|(lo>=ro?2:0));so>=to&&lo<=ro&&!uo?no.push(ao):ao.decompose(to-so,ro-so,no,uo)}so=lo+1}}replace(to,ro,no){if([to,ro]=clip(this,to,ro),no.lines=io&&ro<=ao){let lo=so.replace(to-io,ro-io,no),uo=this.lines-so.lines+lo.lines;if(lo.lines>4&&lo.lines>uo>>6){let co=this.children.slice();return co[oo]=lo,new TextNode(co,this.length-(ro-to)+no.length)}return super.replace(io,ao,lo)}io=ao+1}return super.replace(to,ro,no)}sliceString(to,ro=this.length,no=` +`){[to,ro]=clip(this,to,ro);let oo="";for(let io=0,so=0;ioto&&io&&(oo+=no),toso&&(oo+=ao.sliceString(to-so,ro-so,no)),so=lo+1}return oo}flatten(to){for(let ro of this.children)ro.flatten(to)}scanIdentical(to,ro){if(!(to instanceof TextNode))return 0;let no=0,[oo,io,so,ao]=ro>0?[0,0,this.children.length,to.children.length]:[this.children.length-1,to.children.length-1,-1,-1];for(;;oo+=ro,io+=ro){if(oo==so||io==ao)return no;let lo=this.children[oo],uo=to.children[io];if(lo!=uo)return no+lo.scanIdentical(uo,ro);no+=lo.length+1}}static from(to,ro=to.reduce((no,oo)=>no+oo.length+1,-1)){let no=0;for(let po of to)no+=po.lines;if(no<32){let po=[];for(let go of to)go.flatten(po);return new TextLeaf(po,ro)}let oo=Math.max(32,no>>5),io=oo<<1,so=oo>>1,ao=[],lo=0,uo=-1,co=[];function fo(po){let go;if(po.lines>io&&po instanceof TextNode)for(let vo of po.children)fo(vo);else po.lines>so&&(lo>so||!lo)?(ho(),ao.push(po)):po instanceof TextLeaf&&lo&&(go=co[co.length-1])instanceof TextLeaf&&po.lines+go.lines<=32?(lo+=po.lines,uo+=po.length+1,co[co.length-1]=new TextLeaf(go.text.concat(po.text),go.length+1+po.length)):(lo+po.lines>oo&&ho(),lo+=po.lines,uo+=po.length+1,co.push(po))}function ho(){lo!=0&&(ao.push(co.length==1?co[0]:TextNode.from(co,uo)),uo=-1,lo=co.length=0)}for(let po of to)fo(po);return ho(),ao.length==1?ao[0]:new TextNode(ao,ro)}}Text$1.empty=new TextLeaf([""],0);function textLength(eo){let to=-1;for(let ro of eo)to+=ro.length+1;return to}function appendText(eo,to,ro=0,no=1e9){for(let oo=0,io=0,so=!0;io=ro&&(lo>no&&(ao=ao.slice(0,no-oo)),oo0?1:(to instanceof TextLeaf?to.text.length:to.children.length)<<1]}nextInner(to,ro){for(this.done=this.lineBreak=!1;;){let no=this.nodes.length-1,oo=this.nodes[no],io=this.offsets[no],so=io>>1,ao=oo instanceof TextLeaf?oo.text.length:oo.children.length;if(so==(ro>0?ao:0)){if(no==0)return this.done=!0,this.value="",this;ro>0&&this.offsets[no-1]++,this.nodes.pop(),this.offsets.pop()}else if((io&1)==(ro>0?0:1)){if(this.offsets[no]+=ro,to==0)return this.lineBreak=!0,this.value=` +`,this;to--}else if(oo instanceof TextLeaf){let lo=oo.text[so+(ro<0?-1:0)];if(this.offsets[no]+=ro,lo.length>Math.max(0,to))return this.value=to==0?lo:ro>0?lo.slice(to):lo.slice(0,lo.length-to),this;to-=lo.length}else{let lo=oo.children[so+(ro<0?-1:0)];to>lo.length?(to-=lo.length,this.offsets[no]+=ro):(ro<0&&this.offsets[no]--,this.nodes.push(lo),this.offsets.push(ro>0?1:(lo instanceof TextLeaf?lo.text.length:lo.children.length)<<1))}}}next(to=0){return to<0&&(this.nextInner(-to,-this.dir),to=this.value.length),this.nextInner(to,this.dir)}}class PartialTextCursor{constructor(to,ro,no){this.value="",this.done=!1,this.cursor=new RawTextCursor(to,ro>no?-1:1),this.pos=ro>no?to.length:0,this.from=Math.min(ro,no),this.to=Math.max(ro,no)}nextInner(to,ro){if(ro<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;to+=Math.max(0,ro<0?this.pos-this.to:this.from-this.pos);let no=ro<0?this.pos-this.from:this.to-this.pos;to>no&&(to=no),no-=to;let{value:oo}=this.cursor.next(to);return this.pos+=(oo.length+to)*ro,this.value=oo.length<=no?oo:ro<0?oo.slice(oo.length-no):oo.slice(0,no),this.done=!this.value,this}next(to=0){return to<0?to=Math.max(to,this.from-this.pos):to>0&&(to=Math.min(to,this.to-this.pos)),this.nextInner(to,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class LineCursor{constructor(to){this.inner=to,this.afterBreak=!0,this.value="",this.done=!1}next(to=0){let{done:ro,lineBreak:no,value:oo}=this.inner.next(to);return ro&&this.afterBreak?(this.value="",this.afterBreak=!1):ro?(this.done=!0,this.value=""):no?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=oo,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(Text$1.prototype[Symbol.iterator]=function(){return this.iter()},RawTextCursor.prototype[Symbol.iterator]=PartialTextCursor.prototype[Symbol.iterator]=LineCursor.prototype[Symbol.iterator]=function(){return this});class Line{constructor(to,ro,no,oo){this.from=to,this.to=ro,this.number=no,this.text=oo}get length(){return this.to-this.from}}function clip(eo,to,ro){return to=Math.max(0,Math.min(eo.length,to)),[to,Math.max(to,Math.min(eo.length,ro))]}let extend="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(eo=>eo?parseInt(eo,36):1);for(let eo=1;eoeo)return extend[to-1]<=eo;return!1}function isRegionalIndicator(eo){return eo>=127462&&eo<=127487}const ZWJ=8205;function findClusterBreak(eo,to,ro=!0,no=!0){return(ro?nextClusterBreak:prevClusterBreak)(eo,to,no)}function nextClusterBreak(eo,to,ro){if(to==eo.length)return to;to&&surrogateLow(eo.charCodeAt(to))&&surrogateHigh(eo.charCodeAt(to-1))&&to--;let no=codePointAt(eo,to);for(to+=codePointSize(no);to=0&&isRegionalIndicator(codePointAt(eo,so));)io++,so-=2;if(io%2==0)break;to+=2}else break}return to}function prevClusterBreak(eo,to,ro){for(;to>0;){let no=nextClusterBreak(eo,to-2,ro);if(no=56320&&eo<57344}function surrogateHigh(eo){return eo>=55296&&eo<56320}function codePointAt(eo,to){let ro=eo.charCodeAt(to);if(!surrogateHigh(ro)||to+1==eo.length)return ro;let no=eo.charCodeAt(to+1);return surrogateLow(no)?(ro-55296<<10)+(no-56320)+65536:ro}function fromCodePoint(eo){return eo<=65535?String.fromCharCode(eo):(eo-=65536,String.fromCharCode((eo>>10)+55296,(eo&1023)+56320))}function codePointSize(eo){return eo<65536?1:2}const DefaultSplit=/\r\n?|\n/;var MapMode=function(eo){return eo[eo.Simple=0]="Simple",eo[eo.TrackDel=1]="TrackDel",eo[eo.TrackBefore=2]="TrackBefore",eo[eo.TrackAfter=3]="TrackAfter",eo}(MapMode||(MapMode={}));class ChangeDesc{constructor(to){this.sections=to}get length(){let to=0;for(let ro=0;roto)return io+(to-oo);io+=ao}else{if(no!=MapMode.Simple&&uo>=to&&(no==MapMode.TrackDel&&ooto||no==MapMode.TrackBefore&&ooto))return null;if(uo>to||uo==to&&ro<0&&!ao)return to==oo||ro<0?io:io+lo;io+=lo}oo=uo}if(to>oo)throw new RangeError(`Position ${to} is out of range for changeset of length ${oo}`);return io}touchesRange(to,ro=to){for(let no=0,oo=0;no=0&&oo<=ro&&ao>=to)return ooro?"cover":!0;oo=ao}return!1}toString(){let to="";for(let ro=0;ro=0?":"+oo:"")}return to}toJSON(){return this.sections}static fromJSON(to){if(!Array.isArray(to)||to.length%2||to.some(ro=>typeof ro!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new ChangeDesc(to)}static create(to){return new ChangeDesc(to)}}class ChangeSet extends ChangeDesc{constructor(to,ro){super(to),this.inserted=ro}apply(to){if(this.length!=to.length)throw new RangeError("Applying change set to a document with the wrong length");return iterChanges(this,(ro,no,oo,io,so)=>to=to.replace(oo,oo+(no-ro),so),!1),to}mapDesc(to,ro=!1){return mapSet(this,to,ro,!0)}invert(to){let ro=this.sections.slice(),no=[];for(let oo=0,io=0;oo=0){ro[oo]=ao,ro[oo+1]=so;let lo=oo>>1;for(;no.length0&&addInsert(no,ro,io.text),io.forward(co),ao+=co}let uo=to[so++];for(;ao>1].toJSON()))}return to}static of(to,ro,no){let oo=[],io=[],so=0,ao=null;function lo(co=!1){if(!co&&!oo.length)return;soho||fo<0||ho>ro)throw new RangeError(`Invalid change range ${fo} to ${ho} (in doc of length ${ro})`);let go=po?typeof po=="string"?Text$1.of(po.split(no||DefaultSplit)):po:Text$1.empty,vo=go.length;if(fo==ho&&vo==0)return;foso&&addSection(oo,fo-so,-1),addSection(oo,ho-fo,vo),addInsert(io,oo,go),so=ho}}return uo(to),lo(!ao),ao}static empty(to){return new ChangeSet(to?[to,-1]:[],[])}static fromJSON(to){if(!Array.isArray(to))throw new RangeError("Invalid JSON representation of ChangeSet");let ro=[],no=[];for(let oo=0;ooao&&typeof so!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(io.length==1)ro.push(io[0],0);else{for(;no.length=0&&ro<=0&&ro==eo[oo+1]?eo[oo]+=to:to==0&&eo[oo]==0?eo[oo+1]+=ro:no?(eo[oo]+=to,eo[oo+1]+=ro):eo.push(to,ro)}function addInsert(eo,to,ro){if(ro.length==0)return;let no=to.length-2>>1;if(no>1])),!(ro||so==eo.sections.length||eo.sections[so+1]<0);)ao=eo.sections[so++],lo=eo.sections[so++];to(oo,uo,io,co,fo),oo=uo,io=co}}}function mapSet(eo,to,ro,no=!1){let oo=[],io=no?[]:null,so=new SectionIter(eo),ao=new SectionIter(to);for(let lo=-1;;)if(so.ins==-1&&ao.ins==-1){let uo=Math.min(so.len,ao.len);addSection(oo,uo,-1),so.forward(uo),ao.forward(uo)}else if(ao.ins>=0&&(so.ins<0||lo==so.i||so.off==0&&(ao.len=0&&lo=0){let uo=0,co=so.len;for(;co;)if(ao.ins==-1){let fo=Math.min(co,ao.len);uo+=fo,co-=fo,ao.forward(fo)}else if(ao.ins==0&&ao.lenlo||so.ins>=0&&so.len>lo)&&(ao||no.length>uo),io.forward2(lo),so.forward(lo)}}}}class SectionIter{constructor(to){this.set=to,this.i=0,this.next()}next(){let{sections:to}=this.set;this.i>1;return ro>=to.length?Text$1.empty:to[ro]}textBit(to){let{inserted:ro}=this.set,no=this.i-2>>1;return no>=ro.length&&!to?Text$1.empty:ro[no].slice(this.off,to==null?void 0:this.off+to)}forward(to){to==this.len?this.next():(this.len-=to,this.off+=to)}forward2(to){this.ins==-1?this.forward(to):to==this.ins?this.next():(this.ins-=to,this.off+=to)}}class SelectionRange{constructor(to,ro,no){this.from=to,this.to=ro,this.flags=no}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let to=this.flags&7;return to==7?null:to}get goalColumn(){let to=this.flags>>6;return to==16777215?void 0:to}map(to,ro=-1){let no,oo;return this.empty?no=oo=to.mapPos(this.from,ro):(no=to.mapPos(this.from,1),oo=to.mapPos(this.to,-1)),no==this.from&&oo==this.to?this:new SelectionRange(no,oo,this.flags)}extend(to,ro=to){if(to<=this.anchor&&ro>=this.anchor)return EditorSelection.range(to,ro);let no=Math.abs(to-this.anchor)>Math.abs(ro-this.anchor)?to:ro;return EditorSelection.range(this.anchor,no)}eq(to,ro=!1){return this.anchor==to.anchor&&this.head==to.head&&(!ro||!this.empty||this.assoc==to.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(to){if(!to||typeof to.anchor!="number"||typeof to.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return EditorSelection.range(to.anchor,to.head)}static create(to,ro,no){return new SelectionRange(to,ro,no)}}class EditorSelection{constructor(to,ro){this.ranges=to,this.mainIndex=ro}map(to,ro=-1){return to.empty?this:EditorSelection.create(this.ranges.map(no=>no.map(to,ro)),this.mainIndex)}eq(to,ro=!1){if(this.ranges.length!=to.ranges.length||this.mainIndex!=to.mainIndex)return!1;for(let no=0;noto.toJSON()),main:this.mainIndex}}static fromJSON(to){if(!to||!Array.isArray(to.ranges)||typeof to.main!="number"||to.main>=to.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new EditorSelection(to.ranges.map(ro=>SelectionRange.fromJSON(ro)),to.main)}static single(to,ro=to){return new EditorSelection([EditorSelection.range(to,ro)],0)}static create(to,ro=0){if(to.length==0)throw new RangeError("A selection needs at least one range");for(let no=0,oo=0;ooto?8:0)|io)}static normalized(to,ro=0){let no=to[ro];to.sort((oo,io)=>oo.from-io.from),ro=to.indexOf(no);for(let oo=1;ooio.head?EditorSelection.range(lo,ao):EditorSelection.range(ao,lo))}}return new EditorSelection(to,ro)}}function checkSelection(eo,to){for(let ro of eo.ranges)if(ro.to>to)throw new RangeError("Selection points outside of document")}let nextID=0;class Facet{constructor(to,ro,no,oo,io){this.combine=to,this.compareInput=ro,this.compare=no,this.isStatic=oo,this.id=nextID++,this.default=to([]),this.extensions=typeof io=="function"?io(this):io}get reader(){return this}static define(to={}){return new Facet(to.combine||(ro=>ro),to.compareInput||((ro,no)=>ro===no),to.compare||(to.combine?(ro,no)=>ro===no:sameArray$1),!!to.static,to.enables)}of(to){return new FacetProvider([],this,0,to)}compute(to,ro){if(this.isStatic)throw new Error("Can't compute a static facet");return new FacetProvider(to,this,1,ro)}computeN(to,ro){if(this.isStatic)throw new Error("Can't compute a static facet");return new FacetProvider(to,this,2,ro)}from(to,ro){return ro||(ro=no=>no),this.compute([to],no=>ro(no.field(to)))}}function sameArray$1(eo,to){return eo==to||eo.length==to.length&&eo.every((ro,no)=>ro===to[no])}class FacetProvider{constructor(to,ro,no,oo){this.dependencies=to,this.facet=ro,this.type=no,this.value=oo,this.id=nextID++}dynamicSlot(to){var ro;let no=this.value,oo=this.facet.compareInput,io=this.id,so=to[io]>>1,ao=this.type==2,lo=!1,uo=!1,co=[];for(let fo of this.dependencies)fo=="doc"?lo=!0:fo=="selection"?uo=!0:((ro=to[fo.id])!==null&&ro!==void 0?ro:1)&1||co.push(to[fo.id]);return{create(fo){return fo.values[so]=no(fo),1},update(fo,ho){if(lo&&ho.docChanged||uo&&(ho.docChanged||ho.selection)||ensureAll(fo,co)){let po=no(fo);if(ao?!compareArray(po,fo.values[so],oo):!oo(po,fo.values[so]))return fo.values[so]=po,1}return 0},reconfigure:(fo,ho)=>{let po,go=ho.config.address[io];if(go!=null){let vo=getAddr(ho,go);if(this.dependencies.every(bo=>bo instanceof Facet?ho.facet(bo)===fo.facet(bo):bo instanceof StateField?ho.field(bo,!1)==fo.field(bo,!1):!0)||(ao?compareArray(po=no(fo),vo,oo):oo(po=no(fo),vo)))return fo.values[so]=vo,0}else po=no(fo);return fo.values[so]=po,1}}}}function compareArray(eo,to,ro){if(eo.length!=to.length)return!1;for(let no=0;noeo[lo.id]),oo=ro.map(lo=>lo.type),io=no.filter(lo=>!(lo&1)),so=eo[to.id]>>1;function ao(lo){let uo=[];for(let co=0;cono===oo),to);return to.provide&&(ro.provides=to.provide(ro)),ro}create(to){let ro=to.facet(initField).find(no=>no.field==this);return((ro==null?void 0:ro.create)||this.createF)(to)}slot(to){let ro=to[this.id]>>1;return{create:no=>(no.values[ro]=this.create(no),1),update:(no,oo)=>{let io=no.values[ro],so=this.updateF(io,oo);return this.compareF(io,so)?0:(no.values[ro]=so,1)},reconfigure:(no,oo)=>oo.config.address[this.id]!=null?(no.values[ro]=oo.field(this),0):(no.values[ro]=this.create(no),1)}}init(to){return[this,initField.of({field:this,create:to})]}get extension(){return this}}const Prec_={lowest:4,low:3,default:2,high:1,highest:0};function prec(eo){return to=>new PrecExtension(to,eo)}const Prec={highest:prec(Prec_.highest),high:prec(Prec_.high),default:prec(Prec_.default),low:prec(Prec_.low),lowest:prec(Prec_.lowest)};class PrecExtension{constructor(to,ro){this.inner=to,this.prec=ro}}class Compartment{of(to){return new CompartmentInstance(this,to)}reconfigure(to){return Compartment.reconfigure.of({compartment:this,extension:to})}get(to){return to.config.compartments.get(this)}}class CompartmentInstance{constructor(to,ro){this.compartment=to,this.inner=ro}}class Configuration{constructor(to,ro,no,oo,io,so){for(this.base=to,this.compartments=ro,this.dynamicSlots=no,this.address=oo,this.staticValues=io,this.facets=so,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(to,ro,no){let oo=[],io=Object.create(null),so=new Map;for(let ho of flatten(to,ro,so))ho instanceof StateField?oo.push(ho):(io[ho.facet.id]||(io[ho.facet.id]=[])).push(ho);let ao=Object.create(null),lo=[],uo=[];for(let ho of oo)ao[ho.id]=uo.length<<1,uo.push(po=>ho.slot(po));let co=no==null?void 0:no.config.facets;for(let ho in io){let po=io[ho],go=po[0].facet,vo=co&&co[ho]||[];if(po.every(bo=>bo.type==0))if(ao[go.id]=lo.length<<1|1,sameArray$1(vo,po))lo.push(no.facet(go));else{let bo=go.combine(po.map(xo=>xo.value));lo.push(no&&go.compare(bo,no.facet(go))?no.facet(go):bo)}else{for(let bo of po)bo.type==0?(ao[bo.id]=lo.length<<1|1,lo.push(bo.value)):(ao[bo.id]=uo.length<<1,uo.push(xo=>bo.dynamicSlot(xo)));ao[go.id]=uo.length<<1,uo.push(bo=>dynamicFacetSlot(bo,go,po))}}let fo=uo.map(ho=>ho(ao));return new Configuration(to,so,fo,ao,lo,io)}}function flatten(eo,to,ro){let no=[[],[],[],[],[]],oo=new Map;function io(so,ao){let lo=oo.get(so);if(lo!=null){if(lo<=ao)return;let uo=no[lo].indexOf(so);uo>-1&&no[lo].splice(uo,1),so instanceof CompartmentInstance&&ro.delete(so.compartment)}if(oo.set(so,ao),Array.isArray(so))for(let uo of so)io(uo,ao);else if(so instanceof CompartmentInstance){if(ro.has(so.compartment))throw new RangeError("Duplicate use of compartment in extensions");let uo=to.get(so.compartment)||so.inner;ro.set(so.compartment,uo),io(uo,ao)}else if(so instanceof PrecExtension)io(so.inner,so.prec);else if(so instanceof StateField)no[ao].push(so),so.provides&&io(so.provides,ao);else if(so instanceof FacetProvider)no[ao].push(so),so.facet.extensions&&io(so.facet.extensions,Prec_.default);else{let uo=so.extension;if(!uo)throw new Error(`Unrecognized extension value in extension set (${so}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);io(uo,ao)}}return io(eo,Prec_.default),no.reduce((so,ao)=>so.concat(ao))}function ensureAddr(eo,to){if(to&1)return 2;let ro=to>>1,no=eo.status[ro];if(no==4)throw new Error("Cyclic dependency between fields and/or facets");if(no&2)return no;eo.status[ro]=4;let oo=eo.computeSlot(eo,eo.config.dynamicSlots[ro]);return eo.status[ro]=2|oo}function getAddr(eo,to){return to&1?eo.config.staticValues[to>>1]:eo.values[to>>1]}const languageData=Facet.define(),allowMultipleSelections=Facet.define({combine:eo=>eo.some(to=>to),static:!0}),lineSeparator=Facet.define({combine:eo=>eo.length?eo[0]:void 0,static:!0}),changeFilter=Facet.define(),transactionFilter=Facet.define(),transactionExtender=Facet.define(),readOnly=Facet.define({combine:eo=>eo.length?eo[0]:!1});class Annotation{constructor(to,ro){this.type=to,this.value=ro}static define(){return new AnnotationType}}class AnnotationType{of(to){return new Annotation(this,to)}}class StateEffectType{constructor(to){this.map=to}of(to){return new StateEffect(this,to)}}class StateEffect{constructor(to,ro){this.type=to,this.value=ro}map(to){let ro=this.type.map(this.value,to);return ro===void 0?void 0:ro==this.value?this:new StateEffect(this.type,ro)}is(to){return this.type==to}static define(to={}){return new StateEffectType(to.map||(ro=>ro))}static mapEffects(to,ro){if(!to.length)return to;let no=[];for(let oo of to){let io=oo.map(ro);io&&no.push(io)}return no}}StateEffect.reconfigure=StateEffect.define();StateEffect.appendConfig=StateEffect.define();class Transaction{constructor(to,ro,no,oo,io,so){this.startState=to,this.changes=ro,this.selection=no,this.effects=oo,this.annotations=io,this.scrollIntoView=so,this._doc=null,this._state=null,no&&checkSelection(no,ro.newLength),io.some(ao=>ao.type==Transaction.time)||(this.annotations=io.concat(Transaction.time.of(Date.now())))}static create(to,ro,no,oo,io,so){return new Transaction(to,ro,no,oo,io,so)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(to){for(let ro of this.annotations)if(ro.type==to)return ro.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(to){let ro=this.annotation(Transaction.userEvent);return!!(ro&&(ro==to||ro.length>to.length&&ro.slice(0,to.length)==to&&ro[to.length]=="."))}}Transaction.time=Annotation.define();Transaction.userEvent=Annotation.define();Transaction.addToHistory=Annotation.define();Transaction.remote=Annotation.define();function joinRanges(eo,to){let ro=[];for(let no=0,oo=0;;){let io,so;if(no=eo[no]))io=eo[no++],so=eo[no++];else if(oo=0;oo--){let io=no[oo](eo);io instanceof Transaction?eo=io:Array.isArray(io)&&io.length==1&&io[0]instanceof Transaction?eo=io[0]:eo=resolveTransaction(to,asArray$1(io),!1)}return eo}function extendTransaction(eo){let to=eo.startState,ro=to.facet(transactionExtender),no=eo;for(let oo=ro.length-1;oo>=0;oo--){let io=ro[oo](eo);io&&Object.keys(io).length&&(no=mergeTransaction(no,resolveTransactionInner(to,io,eo.changes.newLength),!0))}return no==eo?eo:Transaction.create(to,eo.changes,eo.selection,no.effects,no.annotations,no.scrollIntoView)}const none$2=[];function asArray$1(eo){return eo==null?none$2:Array.isArray(eo)?eo:[eo]}var CharCategory=function(eo){return eo[eo.Word=0]="Word",eo[eo.Space=1]="Space",eo[eo.Other=2]="Other",eo}(CharCategory||(CharCategory={}));const nonASCIISingleCaseWordChar=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let wordChar;try{wordChar=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(eo){}function hasWordChar(eo){if(wordChar)return wordChar.test(eo);for(let to=0;to"€"&&(ro.toUpperCase()!=ro.toLowerCase()||nonASCIISingleCaseWordChar.test(ro)))return!0}return!1}function makeCategorizer(eo){return to=>{if(!/\S/.test(to))return CharCategory.Space;if(hasWordChar(to))return CharCategory.Word;for(let ro=0;ro-1)return CharCategory.Word;return CharCategory.Other}}class EditorState{constructor(to,ro,no,oo,io,so){this.config=to,this.doc=ro,this.selection=no,this.values=oo,this.status=to.statusTemplate.slice(),this.computeSlot=io,so&&(so._state=this);for(let ao=0;aooo.set(uo,lo)),ro=null),oo.set(ao.value.compartment,ao.value.extension)):ao.is(StateEffect.reconfigure)?(ro=null,no=ao.value):ao.is(StateEffect.appendConfig)&&(ro=null,no=asArray$1(no).concat(ao.value));let io;ro?io=to.startState.values.slice():(ro=Configuration.resolve(no,oo,this),io=new EditorState(ro,this.doc,this.selection,ro.dynamicSlots.map(()=>null),(lo,uo)=>uo.reconfigure(lo,this),null).values);let so=to.startState.facet(allowMultipleSelections)?to.newSelection:to.newSelection.asSingle();new EditorState(ro,to.newDoc,so,io,(ao,lo)=>lo.update(ao,to),to)}replaceSelection(to){return typeof to=="string"&&(to=this.toText(to)),this.changeByRange(ro=>({changes:{from:ro.from,to:ro.to,insert:to},range:EditorSelection.cursor(ro.from+to.length)}))}changeByRange(to){let ro=this.selection,no=to(ro.ranges[0]),oo=this.changes(no.changes),io=[no.range],so=asArray$1(no.effects);for(let ao=1;aoso.spec.fromJSON(ao,lo)))}}return EditorState.create({doc:to.doc,selection:EditorSelection.fromJSON(to.selection),extensions:ro.extensions?oo.concat([ro.extensions]):oo})}static create(to={}){let ro=Configuration.resolve(to.extensions||[],new Map),no=to.doc instanceof Text$1?to.doc:Text$1.of((to.doc||"").split(ro.staticFacet(EditorState.lineSeparator)||DefaultSplit)),oo=to.selection?to.selection instanceof EditorSelection?to.selection:EditorSelection.single(to.selection.anchor,to.selection.head):EditorSelection.single(0);return checkSelection(oo,no.length),ro.staticFacet(allowMultipleSelections)||(oo=oo.asSingle()),new EditorState(ro,no,oo,ro.dynamicSlots.map(()=>null),(io,so)=>so.create(io),null)}get tabSize(){return this.facet(EditorState.tabSize)}get lineBreak(){return this.facet(EditorState.lineSeparator)||` +`}get readOnly(){return this.facet(readOnly)}phrase(to,...ro){for(let no of this.facet(EditorState.phrases))if(Object.prototype.hasOwnProperty.call(no,to)){to=no[to];break}return ro.length&&(to=to.replace(/\$(\$|\d*)/g,(no,oo)=>{if(oo=="$")return"$";let io=+(oo||1);return!io||io>ro.length?no:ro[io-1]})),to}languageDataAt(to,ro,no=-1){let oo=[];for(let io of this.facet(languageData))for(let so of io(this,ro,no))Object.prototype.hasOwnProperty.call(so,to)&&oo.push(so[to]);return oo}charCategorizer(to){return makeCategorizer(this.languageDataAt("wordChars",to).join(""))}wordAt(to){let{text:ro,from:no,length:oo}=this.doc.lineAt(to),io=this.charCategorizer(to),so=to-no,ao=to-no;for(;so>0;){let lo=findClusterBreak(ro,so,!1);if(io(ro.slice(lo,so))!=CharCategory.Word)break;so=lo}for(;aoeo.length?eo[0]:4});EditorState.lineSeparator=lineSeparator;EditorState.readOnly=readOnly;EditorState.phrases=Facet.define({compare(eo,to){let ro=Object.keys(eo),no=Object.keys(to);return ro.length==no.length&&ro.every(oo=>eo[oo]==to[oo])}});EditorState.languageData=languageData;EditorState.changeFilter=changeFilter;EditorState.transactionFilter=transactionFilter;EditorState.transactionExtender=transactionExtender;Compartment.reconfigure=StateEffect.define();function combineConfig(eo,to,ro={}){let no={};for(let oo of eo)for(let io of Object.keys(oo)){let so=oo[io],ao=no[io];if(ao===void 0)no[io]=so;else if(!(ao===so||so===void 0))if(Object.hasOwnProperty.call(ro,io))no[io]=ro[io](ao,so);else throw new Error("Config merge conflict for field "+io)}for(let oo in to)no[oo]===void 0&&(no[oo]=to[oo]);return no}class RangeValue{eq(to){return this==to}range(to,ro=to){return Range$2.create(to,ro,this)}}RangeValue.prototype.startSide=RangeValue.prototype.endSide=0;RangeValue.prototype.point=!1;RangeValue.prototype.mapMode=MapMode.TrackDel;let Range$2=class h_{constructor(to,ro,no){this.from=to,this.to=ro,this.value=no}static create(to,ro,no){return new h_(to,ro,no)}};function cmpRange(eo,to){return eo.from-to.from||eo.value.startSide-to.value.startSide}class Chunk{constructor(to,ro,no,oo){this.from=to,this.to=ro,this.value=no,this.maxPoint=oo}get length(){return this.to[this.to.length-1]}findIndex(to,ro,no,oo=0){let io=no?this.to:this.from;for(let so=oo,ao=io.length;;){if(so==ao)return so;let lo=so+ao>>1,uo=io[lo]-to||(no?this.value[lo].endSide:this.value[lo].startSide)-ro;if(lo==so)return uo>=0?so:ao;uo>=0?ao=lo:so=lo+1}}between(to,ro,no,oo){for(let io=this.findIndex(ro,-1e9,!0),so=this.findIndex(no,1e9,!1,io);iopo||ho==po&&uo.startSide>0&&uo.endSide<=0)continue;(po-ho||uo.endSide-uo.startSide)<0||(so<0&&(so=ho),uo.point&&(ao=Math.max(ao,po-ho)),no.push(uo),oo.push(ho-so),io.push(po-so))}return{mapped:no.length?new Chunk(oo,io,no,ao):null,pos:so}}}class RangeSet{constructor(to,ro,no,oo){this.chunkPos=to,this.chunk=ro,this.nextLayer=no,this.maxPoint=oo}static create(to,ro,no,oo){return new RangeSet(to,ro,no,oo)}get length(){let to=this.chunk.length-1;return to<0?0:Math.max(this.chunkEnd(to),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let to=this.nextLayer.size;for(let ro of this.chunk)to+=ro.value.length;return to}chunkEnd(to){return this.chunkPos[to]+this.chunk[to].length}update(to){let{add:ro=[],sort:no=!1,filterFrom:oo=0,filterTo:io=this.length}=to,so=to.filter;if(ro.length==0&&!so)return this;if(no&&(ro=ro.slice().sort(cmpRange)),this.isEmpty)return ro.length?RangeSet.of(ro):this;let ao=new LayerCursor(this,null,-1).goto(0),lo=0,uo=[],co=new RangeSetBuilder;for(;ao.value||lo=0){let fo=ro[lo++];co.addInner(fo.from,fo.to,fo.value)||uo.push(fo)}else ao.rangeIndex==1&&ao.chunkIndexthis.chunkEnd(ao.chunkIndex)||ioao.to||io=io&&to<=io+so.length&&so.between(io,to-io,ro-io,no)===!1)return}this.nextLayer.between(to,ro,no)}}iter(to=0){return HeapCursor.from([this]).goto(to)}get isEmpty(){return this.nextLayer==this}static iter(to,ro=0){return HeapCursor.from(to).goto(ro)}static compare(to,ro,no,oo,io=-1){let so=to.filter(fo=>fo.maxPoint>0||!fo.isEmpty&&fo.maxPoint>=io),ao=ro.filter(fo=>fo.maxPoint>0||!fo.isEmpty&&fo.maxPoint>=io),lo=findSharedChunks(so,ao,no),uo=new SpanCursor(so,lo,io),co=new SpanCursor(ao,lo,io);no.iterGaps((fo,ho,po)=>compare(uo,fo,co,ho,po,oo)),no.empty&&no.length==0&&compare(uo,0,co,0,0,oo)}static eq(to,ro,no=0,oo){oo==null&&(oo=999999999);let io=to.filter(co=>!co.isEmpty&&ro.indexOf(co)<0),so=ro.filter(co=>!co.isEmpty&&to.indexOf(co)<0);if(io.length!=so.length)return!1;if(!io.length)return!0;let ao=findSharedChunks(io,so),lo=new SpanCursor(io,ao,0).goto(no),uo=new SpanCursor(so,ao,0).goto(no);for(;;){if(lo.to!=uo.to||!sameValues(lo.active,uo.active)||lo.point&&(!uo.point||!lo.point.eq(uo.point)))return!1;if(lo.to>oo)return!0;lo.next(),uo.next()}}static spans(to,ro,no,oo,io=-1){let so=new SpanCursor(to,null,io).goto(ro),ao=ro,lo=so.openStart;for(;;){let uo=Math.min(so.to,no);if(so.point){let co=so.activeForPoint(so.to),fo=so.pointFromao&&(oo.span(ao,uo,so.active,lo),lo=so.openEnd(uo));if(so.to>no)return lo+(so.point&&so.to>no?1:0);ao=so.to,so.next()}}static of(to,ro=!1){let no=new RangeSetBuilder;for(let oo of to instanceof Range$2?[to]:ro?lazySort(to):to)no.add(oo.from,oo.to,oo.value);return no.finish()}static join(to){if(!to.length)return RangeSet.empty;let ro=to[to.length-1];for(let no=to.length-2;no>=0;no--)for(let oo=to[no];oo!=RangeSet.empty;oo=oo.nextLayer)ro=new RangeSet(oo.chunkPos,oo.chunk,ro,Math.max(oo.maxPoint,ro.maxPoint));return ro}}RangeSet.empty=new RangeSet([],[],null,-1);function lazySort(eo){if(eo.length>1)for(let to=eo[0],ro=1;ro0)return eo.slice().sort(cmpRange);to=no}return eo}RangeSet.empty.nextLayer=RangeSet.empty;class RangeSetBuilder{finishChunk(to){this.chunks.push(new Chunk(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,to&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(to,ro,no){this.addInner(to,ro,no)||(this.nextLayer||(this.nextLayer=new RangeSetBuilder)).add(to,ro,no)}addInner(to,ro,no){let oo=to-this.lastTo||no.startSide-this.last.endSide;if(oo<=0&&(to-this.lastFrom||no.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return oo<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=to),this.from.push(to-this.chunkStart),this.to.push(ro-this.chunkStart),this.last=no,this.lastFrom=to,this.lastTo=ro,this.value.push(no),no.point&&(this.maxPoint=Math.max(this.maxPoint,ro-to)),!0)}addChunk(to,ro){if((to-this.lastTo||ro.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,ro.maxPoint),this.chunks.push(ro),this.chunkPos.push(to);let no=ro.value.length-1;return this.last=ro.value[no],this.lastFrom=ro.from[no]+to,this.lastTo=ro.to[no]+to,!0}finish(){return this.finishInner(RangeSet.empty)}finishInner(to){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return to;let ro=RangeSet.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(to):to,this.setMaxPoint);return this.from=null,ro}}function findSharedChunks(eo,to,ro){let no=new Map;for(let io of eo)for(let so=0;so=this.minPoint)break}}setRangeIndex(to){if(to==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=no&&oo.push(new LayerCursor(so,ro,no,io));return oo.length==1?oo[0]:new HeapCursor(oo)}get startSide(){return this.value?this.value.startSide:0}goto(to,ro=-1e9){for(let no of this.heap)no.goto(to,ro);for(let no=this.heap.length>>1;no>=0;no--)heapBubble(this.heap,no);return this.next(),this}forward(to,ro){for(let no of this.heap)no.forward(to,ro);for(let no=this.heap.length>>1;no>=0;no--)heapBubble(this.heap,no);(this.to-to||this.value.endSide-ro)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let to=this.heap[0];this.from=to.from,this.to=to.to,this.value=to.value,this.rank=to.rank,to.value&&to.next(),heapBubble(this.heap,0)}}}function heapBubble(eo,to){for(let ro=eo[to];;){let no=(to<<1)+1;if(no>=eo.length)break;let oo=eo[no];if(no+1=0&&(oo=eo[no+1],no++),ro.compare(oo)<0)break;eo[no]=ro,eo[to]=oo,to=no}}class SpanCursor{constructor(to,ro,no){this.minPoint=no,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=HeapCursor.from(to,ro,no)}goto(to,ro=-1e9){return this.cursor.goto(to,ro),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=to,this.endSide=ro,this.openStart=-1,this.next(),this}forward(to,ro){for(;this.minActive>-1&&(this.activeTo[this.minActive]-to||this.active[this.minActive].endSide-ro)<0;)this.removeActive(this.minActive);this.cursor.forward(to,ro)}removeActive(to){remove(this.active,to),remove(this.activeTo,to),remove(this.activeRank,to),this.minActive=findMinIndex(this.active,this.activeTo)}addActive(to){let ro=0,{value:no,to:oo,rank:io}=this.cursor;for(;ro0;)ro++;insert(this.active,ro,no),insert(this.activeTo,ro,oo),insert(this.activeRank,ro,io),to&&insert(to,ro,this.cursor.from),this.minActive=findMinIndex(this.active,this.activeTo)}next(){let to=this.to,ro=this.point;this.point=null;let no=this.openStart<0?[]:null;for(;;){let oo=this.minActive;if(oo>-1&&(this.activeTo[oo]-this.cursor.from||this.active[oo].endSide-this.cursor.startSide)<0){if(this.activeTo[oo]>to){this.to=this.activeTo[oo],this.endSide=this.active[oo].endSide;break}this.removeActive(oo),no&&remove(no,oo)}else if(this.cursor.value)if(this.cursor.from>to){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let io=this.cursor.value;if(!io.point)this.addActive(no),this.cursor.next();else if(ro&&this.cursor.to==this.to&&this.cursor.from=0&&no[oo]=0&&!(this.activeRank[no]to||this.activeTo[no]==to&&this.active[no].endSide>=this.point.endSide)&&ro.push(this.active[no]);return ro.reverse()}openEnd(to){let ro=0;for(let no=this.activeTo.length-1;no>=0&&this.activeTo[no]>to;no--)ro++;return ro}}function compare(eo,to,ro,no,oo,io){eo.goto(to),ro.goto(no);let so=no+oo,ao=no,lo=no-to;for(;;){let uo=eo.to+lo-ro.to||eo.endSide-ro.endSide,co=uo<0?eo.to+lo:ro.to,fo=Math.min(co,so);if(eo.point||ro.point?eo.point&&ro.point&&(eo.point==ro.point||eo.point.eq(ro.point))&&sameValues(eo.activeForPoint(eo.to),ro.activeForPoint(ro.to))||io.comparePoint(ao,fo,eo.point,ro.point):fo>ao&&!sameValues(eo.active,ro.active)&&io.compareRange(ao,fo,eo.active,ro.active),co>so)break;ao=co,uo<=0&&eo.next(),uo>=0&&ro.next()}}function sameValues(eo,to){if(eo.length!=to.length)return!1;for(let ro=0;ro=to;no--)eo[no+1]=eo[no];eo[to]=ro}function findMinIndex(eo,to){let ro=-1,no=1e9;for(let oo=0;oo=to)return oo;if(oo==eo.length)break;io+=eo.charCodeAt(oo)==9?ro-io%ro:1,oo=findClusterBreak(eo,oo)}return no===!0?-1:eo.length}const C="ͼ",COUNT=typeof Symbol>"u"?"__"+C:Symbol.for(C),SET=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),top=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class StyleModule{constructor(to,ro){this.rules=[];let{finish:no}=ro||{};function oo(so){return/^@/.test(so)?[so]:so.split(/,\s*/)}function io(so,ao,lo,uo){let co=[],fo=/^@(\w+)\b/.exec(so[0]),ho=fo&&fo[1]=="keyframes";if(fo&&ao==null)return lo.push(so[0]+";");for(let po in ao){let go=ao[po];if(/&/.test(po))io(po.split(/,\s*/).map(vo=>so.map(bo=>vo.replace(/&/,bo))).reduce((vo,bo)=>vo.concat(bo)),go,lo);else if(go&&typeof go=="object"){if(!fo)throw new RangeError("The value of a property ("+po+") should be a primitive value.");io(oo(po),go,co,ho)}else go!=null&&co.push(po.replace(/_.*/,"").replace(/[A-Z]/g,vo=>"-"+vo.toLowerCase())+": "+go+";")}(co.length||ho)&&lo.push((no&&!fo&&!uo?so.map(no):so).join(", ")+" {"+co.join(" ")+"}")}for(let so in to)io(oo(so),to[so],this.rules)}getRules(){return this.rules.join(` +`)}static newName(){let to=top[COUNT]||1;return top[COUNT]=to+1,C+to.toString(36)}static mount(to,ro,no){let oo=to[SET],io=no&&no.nonce;oo?io&&oo.setNonce(io):oo=new StyleSet(to,io),oo.mount(Array.isArray(ro)?ro:[ro],to)}}let adoptedSet=new Map;class StyleSet{constructor(to,ro){let no=to.ownerDocument||to,oo=no.defaultView;if(!to.head&&to.adoptedStyleSheets&&oo.CSSStyleSheet){let io=adoptedSet.get(no);if(io)return to[SET]=io;this.sheet=new oo.CSSStyleSheet,adoptedSet.set(no,this)}else this.styleTag=no.createElement("style"),ro&&this.styleTag.setAttribute("nonce",ro);this.modules=[],to[SET]=this}mount(to,ro){let no=this.sheet,oo=0,io=0;for(let so=0;so-1&&(this.modules.splice(lo,1),io--,lo=-1),lo==-1){if(this.modules.splice(io++,0,ao),no)for(let uo=0;uo",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},mac=typeof navigator<"u"&&/Mac/.test(navigator.platform),ie$1=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var i=0;i<10;i++)base[48+i]=base[96+i]=String(i);for(var i=1;i<=24;i++)base[i+111]="F"+i;for(var i=65;i<=90;i++)base[i]=String.fromCharCode(i+32),shift[i]=String.fromCharCode(i);for(var code in base)shift.hasOwnProperty(code)||(shift[code]=base[code]);function keyName(eo){var to=mac&&eo.metaKey&&eo.shiftKey&&!eo.ctrlKey&&!eo.altKey||ie$1&&eo.shiftKey&&eo.key&&eo.key.length==1||eo.key=="Unidentified",ro=!to&&eo.key||(eo.shiftKey?shift:base)[eo.keyCode]||eo.key||"Unidentified";return ro=="Esc"&&(ro="Escape"),ro=="Del"&&(ro="Delete"),ro=="Left"&&(ro="ArrowLeft"),ro=="Up"&&(ro="ArrowUp"),ro=="Right"&&(ro="ArrowRight"),ro=="Down"&&(ro="ArrowDown"),ro}function getSelection(eo){let to;return eo.nodeType==11?to=eo.getSelection?eo:eo.ownerDocument:to=eo,to.getSelection()}function contains(eo,to){return to?eo==to||eo.contains(to.nodeType!=1?to.parentNode:to):!1}function deepActiveElement(eo){let to=eo.activeElement;for(;to&&to.shadowRoot;)to=to.shadowRoot.activeElement;return to}function hasSelection(eo,to){if(!to.anchorNode)return!1;try{return contains(eo,to.anchorNode)}catch{return!1}}function clientRectsFor(eo){return eo.nodeType==3?textRange(eo,0,eo.nodeValue.length).getClientRects():eo.nodeType==1?eo.getClientRects():[]}function isEquivalentPosition(eo,to,ro,no){return ro?scanFor(eo,to,ro,no,-1)||scanFor(eo,to,ro,no,1):!1}function domIndex(eo){for(var to=0;;to++)if(eo=eo.previousSibling,!eo)return to}function isBlockElement(eo){return eo.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(eo.nodeName)}function scanFor(eo,to,ro,no,oo){for(;;){if(eo==ro&&to==no)return!0;if(to==(oo<0?0:maxOffset(eo))){if(eo.nodeName=="DIV")return!1;let io=eo.parentNode;if(!io||io.nodeType!=1)return!1;to=domIndex(eo)+(oo<0?0:1),eo=io}else if(eo.nodeType==1){if(eo=eo.childNodes[to+(oo<0?-1:0)],eo.nodeType==1&&eo.contentEditable=="false")return!1;to=oo<0?maxOffset(eo):0}else return!1}}function maxOffset(eo){return eo.nodeType==3?eo.nodeValue.length:eo.childNodes.length}function flattenRect(eo,to){let ro=to?eo.left:eo.right;return{left:ro,right:ro,top:eo.top,bottom:eo.bottom}}function windowRect(eo){let to=eo.visualViewport;return to?{left:0,right:to.width,top:0,bottom:to.height}:{left:0,right:eo.innerWidth,top:0,bottom:eo.innerHeight}}function getScale(eo,to){let ro=to.width/eo.offsetWidth,no=to.height/eo.offsetHeight;return(ro>.995&&ro<1.005||!isFinite(ro)||Math.abs(to.width-eo.offsetWidth)<1)&&(ro=1),(no>.995&&no<1.005||!isFinite(no)||Math.abs(to.height-eo.offsetHeight)<1)&&(no=1),{scaleX:ro,scaleY:no}}function scrollRectIntoView(eo,to,ro,no,oo,io,so,ao){let lo=eo.ownerDocument,uo=lo.defaultView||window;for(let co=eo,fo=!1;co&&!fo;)if(co.nodeType==1){let ho,po=co==lo.body,go=1,vo=1;if(po)ho=windowRect(uo);else{if(/^(fixed|sticky)$/.test(getComputedStyle(co).position)&&(fo=!0),co.scrollHeight<=co.clientHeight&&co.scrollWidth<=co.clientWidth){co=co.assignedSlot||co.parentNode;continue}let _o=co.getBoundingClientRect();({scaleX:go,scaleY:vo}=getScale(co,_o)),ho={left:_o.left,right:_o.left+co.clientWidth*go,top:_o.top,bottom:_o.top+co.clientHeight*vo}}let bo=0,xo=0;if(oo=="nearest")to.top0&&to.bottom>ho.bottom+xo&&(xo=to.bottom-ho.bottom+xo+so)):to.bottom>ho.bottom&&(xo=to.bottom-ho.bottom+so,ro<0&&to.top-xo0&&to.right>ho.right+bo&&(bo=to.right-ho.right+bo+io)):to.right>ho.right&&(bo=to.right-ho.right+io,ro<0&&to.leftro.clientHeight||ro.scrollWidth>ro.clientWidth)return ro;ro=ro.assignedSlot||ro.parentNode}else if(ro.nodeType==11)ro=ro.host;else break;return null}class DOMSelectionState{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(to){return this.anchorNode==to.anchorNode&&this.anchorOffset==to.anchorOffset&&this.focusNode==to.focusNode&&this.focusOffset==to.focusOffset}setRange(to){let{anchorNode:ro,focusNode:no}=to;this.set(ro,Math.min(to.anchorOffset,ro?maxOffset(ro):0),no,Math.min(to.focusOffset,no?maxOffset(no):0))}set(to,ro,no,oo){this.anchorNode=to,this.anchorOffset=ro,this.focusNode=no,this.focusOffset=oo}}let preventScrollSupported=null;function focusPreventScroll(eo){if(eo.setActive)return eo.setActive();if(preventScrollSupported)return eo.focus(preventScrollSupported);let to=[];for(let ro=eo;ro&&(to.push(ro,ro.scrollTop,ro.scrollLeft),ro!=ro.ownerDocument);ro=ro.parentNode);if(eo.focus(preventScrollSupported==null?{get preventScroll(){return preventScrollSupported={preventScroll:!0},!0}}:void 0),!preventScrollSupported){preventScrollSupported=!1;for(let ro=0;roMath.max(1,eo.scrollHeight-eo.clientHeight-4)}function textNodeBefore(eo,to){for(let ro=eo,no=to;;){if(ro.nodeType==3&&no>0)return{node:ro,offset:no};if(ro.nodeType==1&&no>0){if(ro.contentEditable=="false")return null;ro=ro.childNodes[no-1],no=maxOffset(ro)}else if(ro.parentNode&&!isBlockElement(ro))no=domIndex(ro),ro=ro.parentNode;else return null}}function textNodeAfter(eo,to){for(let ro=eo,no=to;;){if(ro.nodeType==3&&noro)return fo.domBoundsAround(to,ro,uo);if(ho>=to&&oo==-1&&(oo=lo,io=uo),uo>ro&&fo.dom.parentNode==this.dom){so=lo,ao=co;break}co=ho,uo=ho+fo.breakAfter}return{from:io,to:ao<0?no+this.length:ao,startDOM:(oo?this.children[oo-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:so=0?this.children[so].dom:null}}markDirty(to=!1){this.flags|=2,this.markParentsDirty(to)}markParentsDirty(to){for(let ro=this.parent;ro;ro=ro.parent){if(to&&(ro.flags|=2),ro.flags&1)return;ro.flags|=1,to=!1}}setParent(to){this.parent!=to&&(this.parent=to,this.flags&7&&this.markParentsDirty(!0))}setDOM(to){this.dom!=to&&(this.dom&&(this.dom.cmView=null),this.dom=to,to.cmView=this)}get rootView(){for(let to=this;;){let ro=to.parent;if(!ro)return to;to=ro}}replaceChildren(to,ro,no=noChildren){this.markDirty();for(let oo=to;oothis.pos||to==this.pos&&(ro>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=to-this.pos,this;let no=this.children[--this.i];this.pos-=no.length+no.breakAfter}}}function replaceRange(eo,to,ro,no,oo,io,so,ao,lo){let{children:uo}=eo,co=uo.length?uo[to]:null,fo=io.length?io[io.length-1]:null,ho=fo?fo.breakAfter:so;if(!(to==no&&co&&!so&&!ho&&io.length<2&&co.merge(ro,oo,io.length?fo:null,ro==0,ao,lo))){if(no0&&(!so&&io.length&&co.merge(ro,co.length,io[0],!1,ao,0)?co.breakAfter=io.shift().breakAfter:(ro2);var browser={mac:ios||/Mac/.test(nav.platform),windows:/Win/.test(nav.platform),linux:/Linux|X11/.test(nav.platform),ie,ie_version:ie_upto10?doc.documentMode||6:ie_11up?+ie_11up[1]:ie_edge?+ie_edge[1]:0,gecko,gecko_version:gecko?+(/Firefox\/(\d+)/.exec(nav.userAgent)||[0,0])[1]:0,chrome:!!chrome,chrome_version:chrome?+chrome[1]:0,ios,android:/Android\b/.test(nav.userAgent),webkit,safari,webkit_version:webkit?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:doc.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const MaxJoinLen=256;class TextView extends ContentView{constructor(to){super(),this.text=to}get length(){return this.text.length}createDOM(to){this.setDOM(to||document.createTextNode(this.text))}sync(to,ro){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(ro&&ro.node==this.dom&&(ro.written=!0),this.dom.nodeValue=this.text)}reuseDOM(to){to.nodeType==3&&this.createDOM(to)}merge(to,ro,no){return this.flags&8||no&&(!(no instanceof TextView)||this.length-(ro-to)+no.length>MaxJoinLen||no.flags&8)?!1:(this.text=this.text.slice(0,to)+(no?no.text:"")+this.text.slice(ro),this.markDirty(),!0)}split(to){let ro=new TextView(this.text.slice(to));return this.text=this.text.slice(0,to),this.markDirty(),ro.flags|=this.flags&8,ro}localPosFromDOM(to,ro){return to==this.dom?ro:ro?this.text.length:0}domAtPos(to){return new DOMPos(this.dom,to)}domBoundsAround(to,ro,no){return{from:no,to:no+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(to,ro){return textCoords(this.dom,to,ro)}}class MarkView extends ContentView{constructor(to,ro=[],no=0){super(),this.mark=to,this.children=ro,this.length=no;for(let oo of ro)oo.setParent(this)}setAttrs(to){if(clearAttributes(to),this.mark.class&&(to.className=this.mark.class),this.mark.attrs)for(let ro in this.mark.attrs)to.setAttribute(ro,this.mark.attrs[ro]);return to}canReuseDOM(to){return super.canReuseDOM(to)&&!((this.flags|to.flags)&8)}reuseDOM(to){to.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(to),this.flags|=6)}sync(to,ro){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(to,ro)}merge(to,ro,no,oo,io,so){return no&&(!(no instanceof MarkView&&no.mark.eq(this.mark))||to&&io<=0||roto&&ro.push(no=to&&(oo=io),no=lo,io++}let so=this.length-to;return this.length=to,oo>-1&&(this.children.length=oo,this.markDirty()),new MarkView(this.mark,ro,so)}domAtPos(to){return inlineDOMAtPos(this,to)}coordsAt(to,ro){return coordsInChildren(this,to,ro)}}function textCoords(eo,to,ro){let no=eo.nodeValue.length;to>no&&(to=no);let oo=to,io=to,so=0;to==0&&ro<0||to==no&&ro>=0?browser.chrome||browser.gecko||(to?(oo--,so=1):io=0)?0:ao.length-1];return browser.safari&&!so&&lo.width==0&&(lo=Array.prototype.find.call(ao,uo=>uo.width)||lo),so?flattenRect(lo,so<0):lo||null}class WidgetView extends ContentView{static create(to,ro,no){return new WidgetView(to,ro,no)}constructor(to,ro,no){super(),this.widget=to,this.length=ro,this.side=no,this.prevWidget=null}split(to){let ro=WidgetView.create(this.widget,this.length-to,this.side);return this.length-=to,ro}sync(to){(!this.dom||!this.widget.updateDOM(this.dom,to))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(to)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(to,ro,no,oo,io,so){return no&&(!(no instanceof WidgetView)||!this.widget.compare(no.widget)||to>0&&io<=0||ro0)?DOMPos.before(this.dom):DOMPos.after(this.dom,to==this.length)}domBoundsAround(){return null}coordsAt(to,ro){let no=this.widget.coordsAt(this.dom,to,ro);if(no)return no;let oo=this.dom.getClientRects(),io=null;if(!oo.length)return null;let so=this.side?this.side<0:to>0;for(let ao=so?oo.length-1:0;io=oo[ao],!(to>0?ao==0:ao==oo.length-1||io.top0?DOMPos.before(this.dom):DOMPos.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(to){return this.dom.getBoundingClientRect()}get overrideDOMText(){return Text$1.empty}get isHidden(){return!0}}TextView.prototype.children=WidgetView.prototype.children=WidgetBufferView.prototype.children=noChildren;function inlineDOMAtPos(eo,to){let ro=eo.dom,{children:no}=eo,oo=0;for(let io=0;ooio&&to0;io--){let so=no[io-1];if(so.dom.parentNode==ro)return so.domAtPos(so.length)}for(let io=oo;io0&&to instanceof MarkView&&oo.length&&(no=oo[oo.length-1])instanceof MarkView&&no.mark.eq(to.mark)?joinInlineInto(no,to.children[0],ro-1):(oo.push(to),to.setParent(eo)),eo.length+=to.length}function coordsInChildren(eo,to,ro){let no=null,oo=-1,io=null,so=-1;function ao(uo,co){for(let fo=0,ho=0;fo=co&&(po.children.length?ao(po,co-ho):(!io||io.isHidden&&ro>0)&&(go>co||ho==go&&po.getSide()>0)?(io=po,so=co-ho):(ho-1?1:0)!=oo.length-(ro&&oo.indexOf(ro)>-1?1:0))return!1;for(let io of no)if(io!=ro&&(oo.indexOf(io)==-1||eo[io]!==to[io]))return!1;return!0}function updateAttrs(eo,to,ro){let no=!1;if(to)for(let oo in to)ro&&oo in ro||(no=!0,oo=="style"?eo.style.cssText="":eo.removeAttribute(oo));if(ro)for(let oo in ro)to&&to[oo]==ro[oo]||(no=!0,oo=="style"?eo.style.cssText=ro[oo]:eo.setAttribute(oo,ro[oo]));return no}function getAttrs(eo){let to=Object.create(null);for(let ro=0;ro0&&this.children[no-1].length==0;)this.children[--no].destroy();return this.children.length=no,this.markDirty(),this.length=to,ro}transferDOM(to){this.dom&&(this.markDirty(),to.setDOM(this.dom),to.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(to){attrsEq(this.attrs,to)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=to)}append(to,ro){joinInlineInto(this,to,ro)}addLineDeco(to){let ro=to.spec.attributes,no=to.spec.class;ro&&(this.attrs=combineAttrs(ro,this.attrs||{})),no&&(this.attrs=combineAttrs({class:no},this.attrs||{}))}domAtPos(to){return inlineDOMAtPos(this,to)}reuseDOM(to){to.nodeName=="DIV"&&(this.setDOM(to),this.flags|=6)}sync(to,ro){var no;this.dom?this.flags&4&&(clearAttributes(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(updateAttrs(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(to,ro);let oo=this.dom.lastChild;for(;oo&&ContentView.get(oo)instanceof MarkView;)oo=oo.lastChild;if(!oo||!this.length||oo.nodeName!="BR"&&((no=ContentView.get(oo))===null||no===void 0?void 0:no.isEditable)==!1&&(!browser.ios||!this.children.some(io=>io instanceof TextView))){let io=document.createElement("BR");io.cmIgnore=!0,this.dom.appendChild(io)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let to=0,ro;for(let no of this.children){if(!(no instanceof TextView)||/[^ -~]/.test(no.text))return null;let oo=clientRectsFor(no.dom);if(oo.length!=1)return null;to+=oo[0].width,ro=oo[0].height}return to?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:to/this.length,textHeight:ro}:null}coordsAt(to,ro){let no=coordsInChildren(this,to,ro);if(!this.children.length&&no&&this.parent){let{heightOracle:oo}=this.parent.view.viewState,io=no.bottom-no.top;if(Math.abs(io-oo.lineHeight)<2&&oo.textHeight=ro){if(io instanceof LineView)return io;if(so>ro)break}oo=so+io.breakAfter}return null}}class BlockWidgetView extends ContentView{constructor(to,ro,no){super(),this.widget=to,this.length=ro,this.deco=no,this.breakAfter=0,this.prevWidget=null}merge(to,ro,no,oo,io,so){return no&&(!(no instanceof BlockWidgetView)||!this.widget.compare(no.widget)||to>0&&io<=0||ro0}}class WidgetType{eq(to){return!1}updateDOM(to,ro){return!1}compare(to){return this==to||this.constructor==to.constructor&&this.eq(to)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(to){return!0}coordsAt(to,ro,no){return null}get isHidden(){return!1}get editable(){return!1}destroy(to){}}var BlockType=function(eo){return eo[eo.Text=0]="Text",eo[eo.WidgetBefore=1]="WidgetBefore",eo[eo.WidgetAfter=2]="WidgetAfter",eo[eo.WidgetRange=3]="WidgetRange",eo}(BlockType||(BlockType={}));class Decoration extends RangeValue{constructor(to,ro,no,oo){super(),this.startSide=to,this.endSide=ro,this.widget=no,this.spec=oo}get heightRelevant(){return!1}static mark(to){return new MarkDecoration(to)}static widget(to){let ro=Math.max(-1e4,Math.min(1e4,to.side||0)),no=!!to.block;return ro+=no&&!to.inlineOrder?ro>0?3e8:-4e8:ro>0?1e8:-1e8,new PointDecoration(to,ro,ro,no,to.widget||null,!1)}static replace(to){let ro=!!to.block,no,oo;if(to.isBlockGap)no=-5e8,oo=4e8;else{let{start:io,end:so}=getInclusive(to,ro);no=(io?ro?-3e8:-1:5e8)-1,oo=(so?ro?2e8:1:-6e8)+1}return new PointDecoration(to,no,oo,ro,to.widget||null,!0)}static line(to){return new LineDecoration(to)}static set(to,ro=!1){return RangeSet.of(to,ro)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}Decoration.none=RangeSet.empty;class MarkDecoration extends Decoration{constructor(to){let{start:ro,end:no}=getInclusive(to);super(ro?-1:5e8,no?1:-6e8,null,to),this.tagName=to.tagName||"span",this.class=to.class||"",this.attrs=to.attributes||null}eq(to){var ro,no;return this==to||to instanceof MarkDecoration&&this.tagName==to.tagName&&(this.class||((ro=this.attrs)===null||ro===void 0?void 0:ro.class))==(to.class||((no=to.attrs)===null||no===void 0?void 0:no.class))&&attrsEq(this.attrs,to.attrs,"class")}range(to,ro=to){if(to>=ro)throw new RangeError("Mark decorations may not be empty");return super.range(to,ro)}}MarkDecoration.prototype.point=!1;class LineDecoration extends Decoration{constructor(to){super(-2e8,-2e8,null,to)}eq(to){return to instanceof LineDecoration&&this.spec.class==to.spec.class&&attrsEq(this.spec.attributes,to.spec.attributes)}range(to,ro=to){if(ro!=to)throw new RangeError("Line decoration ranges must be zero-length");return super.range(to,ro)}}LineDecoration.prototype.mapMode=MapMode.TrackBefore;LineDecoration.prototype.point=!0;class PointDecoration extends Decoration{constructor(to,ro,no,oo,io,so){super(ro,no,io,to),this.block=oo,this.isReplace=so,this.mapMode=oo?ro<=0?MapMode.TrackBefore:MapMode.TrackAfter:MapMode.TrackDel}get type(){return this.startSide!=this.endSide?BlockType.WidgetRange:this.startSide<=0?BlockType.WidgetBefore:BlockType.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(to){return to instanceof PointDecoration&&widgetsEq(this.widget,to.widget)&&this.block==to.block&&this.startSide==to.startSide&&this.endSide==to.endSide}range(to,ro=to){if(this.isReplace&&(to>ro||to==ro&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&ro!=to)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(to,ro)}}PointDecoration.prototype.point=!0;function getInclusive(eo,to=!1){let{inclusiveStart:ro,inclusiveEnd:no}=eo;return ro==null&&(ro=eo.inclusive),no==null&&(no=eo.inclusive),{start:ro??to,end:no??to}}function widgetsEq(eo,to){return eo==to||!!(eo&&to&&eo.compare(to))}function addRange(eo,to,ro,no=0){let oo=ro.length-1;oo>=0&&ro[oo]+no>=eo?ro[oo]=Math.max(ro[oo],to):ro.push(eo,to)}class ContentBuilder{constructor(to,ro,no,oo){this.doc=to,this.pos=ro,this.end=no,this.disallowBlockEffectsFor=oo,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=to.iter(),this.skip=ro}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let to=this.content[this.content.length-1];return!(to.breakAfter||to instanceof BlockWidgetView&&to.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new LineView),this.atCursorPos=!0),this.curLine}flushBuffer(to=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(wrapMarks(new WidgetBufferView(-1),to),to.length),this.pendingBuffer=0)}addBlockWidget(to){this.flushBuffer(),this.curLine=null,this.content.push(to)}finish(to){this.pendingBuffer&&to<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(to&&this.content.length&&this.content[this.content.length-1]instanceof BlockWidgetView)&&this.getLine()}buildText(to,ro,no){for(;to>0;){if(this.textOff==this.text.length){let{value:io,lineBreak:so,done:ao}=this.cursor.next(this.skip);if(this.skip=0,ao)throw new Error("Ran out of text content when drawing inline views");if(so){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,to--;continue}else this.text=io,this.textOff=0}let oo=Math.min(this.text.length-this.textOff,to,512);this.flushBuffer(ro.slice(ro.length-no)),this.getLine().append(wrapMarks(new TextView(this.text.slice(this.textOff,this.textOff+oo)),ro),no),this.atCursorPos=!0,this.textOff+=oo,to-=oo,no=0}}span(to,ro,no,oo){this.buildText(ro-to,no,oo),this.pos=ro,this.openStart<0&&(this.openStart=oo)}point(to,ro,no,oo,io,so){if(this.disallowBlockEffectsFor[so]&&no instanceof PointDecoration){if(no.block)throw new RangeError("Block decorations may not be specified via plugins");if(ro>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let ao=ro-to;if(no instanceof PointDecoration)if(no.block)no.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new BlockWidgetView(no.widget||NullWidget.block,ao,no));else{let lo=WidgetView.create(no.widget||NullWidget.inline,ao,ao?0:no.startSide),uo=this.atCursorPos&&!lo.isEditable&&io<=oo.length&&(to0),co=!lo.isEditable&&(tooo.length||no.startSide<=0),fo=this.getLine();this.pendingBuffer==2&&!uo&&!lo.isEditable&&(this.pendingBuffer=0),this.flushBuffer(oo),uo&&(fo.append(wrapMarks(new WidgetBufferView(1),oo),io),io=oo.length+Math.max(0,io-oo.length)),fo.append(wrapMarks(lo,oo),io),this.atCursorPos=co,this.pendingBuffer=co?tooo.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=oo.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(no);ao&&(this.textOff+ao<=this.text.length?this.textOff+=ao:(this.skip+=ao-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=ro),this.openStart<0&&(this.openStart=io)}static build(to,ro,no,oo,io){let so=new ContentBuilder(to,ro,no,io);return so.openEnd=RangeSet.spans(oo,ro,no,so),so.openStart<0&&(so.openStart=so.openEnd),so.finish(so.openEnd),so}}function wrapMarks(eo,to){for(let ro of to)eo=new MarkView(ro,[eo],eo.length);return eo}class NullWidget extends WidgetType{constructor(to){super(),this.tag=to}eq(to){return to.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(to){return to.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}NullWidget.inline=new NullWidget("span");NullWidget.block=new NullWidget("div");var Direction=function(eo){return eo[eo.LTR=0]="LTR",eo[eo.RTL=1]="RTL",eo}(Direction||(Direction={}));const LTR=Direction.LTR,RTL=Direction.RTL;function dec(eo){let to=[];for(let ro=0;ro=ro){if(ao.level==no)return so;(io<0||(oo!=0?oo<0?ao.fromro:to[io].level>ao.level))&&(io=so)}}if(io<0)throw new RangeError("Index out of range");return io}}function isolatesEq(eo,to){if(eo.length!=to.length)return!1;for(let ro=0;ro=0;vo-=3)if(BracketStack[vo+1]==-po){let bo=BracketStack[vo+2],xo=bo&2?oo:bo&4?bo&1?io:oo:0;xo&&(types[fo]=types[BracketStack[vo]]=xo),ao=vo;break}}else{if(BracketStack.length==189)break;BracketStack[ao++]=fo,BracketStack[ao++]=ho,BracketStack[ao++]=lo}else if((go=types[fo])==2||go==1){let vo=go==oo;lo=vo?0:1;for(let bo=ao-3;bo>=0;bo-=3){let xo=BracketStack[bo+2];if(xo&2)break;if(vo)BracketStack[bo+2]|=2;else{if(xo&4)break;BracketStack[bo+2]|=4}}}}}function processNeutrals(eo,to,ro,no){for(let oo=0,io=no;oo<=ro.length;oo++){let so=oo?ro[oo-1].to:eo,ao=oolo;)go==bo&&(go=ro[--vo].from,bo=vo?ro[vo-1].to:eo),types[--go]=po;lo=co}else io=uo,lo++}}}function emitSpans(eo,to,ro,no,oo,io,so){let ao=no%2?2:1;if(no%2==oo%2)for(let lo=to,uo=0;lolo&&so.push(new BidiSpan(lo,vo.from,po));let bo=vo.direction==LTR!=!(po%2);computeSectionOrder(eo,bo?no+1:no,oo,vo.inner,vo.from,vo.to,so),lo=vo.to}go=vo.to}else{if(go==ro||(co?types[go]!=ao:types[go]==ao))break;go++}ho?emitSpans(eo,lo,go,no+1,oo,ho,so):loto;){let co=!0,fo=!1;if(!uo||lo>io[uo-1].to){let vo=types[lo-1];vo!=ao&&(co=!1,fo=vo==16)}let ho=!co&&ao==1?[]:null,po=co?no:no+1,go=lo;e:for(;;)if(uo&&go==io[uo-1].to){if(fo)break e;let vo=io[--uo];if(!co)for(let bo=vo.from,xo=uo;;){if(bo==to)break e;if(xo&&io[xo-1].to==bo)bo=io[--xo].from;else{if(types[bo-1]==ao)break e;break}}if(ho)ho.push(vo);else{vo.totypes.length;)types[types.length]=256;let no=[],oo=to==LTR?0:1;return computeSectionOrder(eo,oo,oo,ro,0,eo.length,no),no}function trivialOrder(eo){return[new BidiSpan(0,eo,0)]}let movedOver="";function moveVisually(eo,to,ro,no,oo){var io;let so=no.head-eo.from,ao=BidiSpan.find(to,so,(io=no.bidiLevel)!==null&&io!==void 0?io:-1,no.assoc),lo=to[ao],uo=lo.side(oo,ro);if(so==uo){let ho=ao+=oo?1:-1;if(ho<0||ho>=to.length)return null;lo=to[ao=ho],so=lo.side(!oo,ro),uo=lo.side(oo,ro)}let co=findClusterBreak(eo.text,so,lo.forward(oo,ro));(colo.to)&&(co=uo),movedOver=eo.text.slice(Math.min(so,co),Math.max(so,co));let fo=ao==(oo?to.length-1:0)?null:to[ao+(oo?1:-1)];return fo&&co==uo&&fo.level+(oo?0:1)eo.some(to=>to)}),nativeSelectionHidden=Facet.define({combine:eo=>eo.some(to=>to)}),scrollHandler=Facet.define();class ScrollTarget{constructor(to,ro="nearest",no="nearest",oo=5,io=5,so=!1){this.range=to,this.y=ro,this.x=no,this.yMargin=oo,this.xMargin=io,this.isSnapshot=so}map(to){return to.empty?this:new ScrollTarget(this.range.map(to),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(to){return this.range.to<=to.doc.length?this:new ScrollTarget(EditorSelection.cursor(to.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const scrollIntoView$1=StateEffect.define({map:(eo,to)=>eo.map(to)});function logException(eo,to,ro){let no=eo.facet(exceptionSink);no.length?no[0](to):window.onerror?window.onerror(String(to),ro,void 0,void 0,to):ro?console.error(ro+":",to):console.error(to)}const editable=Facet.define({combine:eo=>eo.length?eo[0]:!0});let nextPluginID=0;const viewPlugin=Facet.define();class ViewPlugin{constructor(to,ro,no,oo,io){this.id=to,this.create=ro,this.domEventHandlers=no,this.domEventObservers=oo,this.extension=io(this)}static define(to,ro){const{eventHandlers:no,eventObservers:oo,provide:io,decorations:so}=ro||{};return new ViewPlugin(nextPluginID++,to,no,oo,ao=>{let lo=[viewPlugin.of(ao)];return so&&lo.push(decorations.of(uo=>{let co=uo.plugin(ao);return co?so(co):Decoration.none})),io&&lo.push(io(ao)),lo})}static fromClass(to,ro){return ViewPlugin.define(no=>new to(no),ro)}}class PluginInstance{constructor(to){this.spec=to,this.mustUpdate=null,this.value=null}update(to){if(this.value){if(this.mustUpdate){let ro=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(ro)}catch(no){if(logException(ro.state,no,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(to)}catch(ro){logException(to.state,ro,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(to){var ro;if(!((ro=this.value)===null||ro===void 0)&&ro.destroy)try{this.value.destroy()}catch(no){logException(to.state,no,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const editorAttributes=Facet.define(),contentAttributes=Facet.define(),decorations=Facet.define(),outerDecorations=Facet.define(),atomicRanges=Facet.define(),bidiIsolatedRanges=Facet.define();function getIsolatedRanges(eo,to){let ro=eo.state.facet(bidiIsolatedRanges);if(!ro.length)return ro;let no=ro.map(io=>io instanceof Function?io(eo):io),oo=[];return RangeSet.spans(no,to.from,to.to,{point(){},span(io,so,ao,lo){let uo=io-to.from,co=so-to.from,fo=oo;for(let ho=ao.length-1;ho>=0;ho--,lo--){let po=ao[ho].spec.bidiIsolate,go;if(po==null&&(po=autoDirection(to.text,uo,co)),lo>0&&fo.length&&(go=fo[fo.length-1]).to==uo&&go.direction==po)go.to=co,fo=go.inner;else{let vo={from:uo,to:co,direction:po,inner:[]};fo.push(vo),fo=vo.inner}}}}),oo}const scrollMargins=Facet.define();function getScrollMargins(eo){let to=0,ro=0,no=0,oo=0;for(let io of eo.state.facet(scrollMargins)){let so=io(eo);so&&(so.left!=null&&(to=Math.max(to,so.left)),so.right!=null&&(ro=Math.max(ro,so.right)),so.top!=null&&(no=Math.max(no,so.top)),so.bottom!=null&&(oo=Math.max(oo,so.bottom)))}return{left:to,right:ro,top:no,bottom:oo}}const styleModule=Facet.define();class ChangedRange{constructor(to,ro,no,oo){this.fromA=to,this.toA=ro,this.fromB=no,this.toB=oo}join(to){return new ChangedRange(Math.min(this.fromA,to.fromA),Math.max(this.toA,to.toA),Math.min(this.fromB,to.fromB),Math.max(this.toB,to.toB))}addToSet(to){let ro=to.length,no=this;for(;ro>0;ro--){let oo=to[ro-1];if(!(oo.fromA>no.toA)){if(oo.toAco)break;io+=2}if(!lo)return no;new ChangedRange(lo.fromA,lo.toA,lo.fromB,lo.toB).addToSet(no),so=lo.toA,ao=lo.toB}}}class ViewUpdate{constructor(to,ro,no){this.view=to,this.state=ro,this.transactions=no,this.flags=0,this.startState=to.state,this.changes=ChangeSet.empty(this.startState.doc.length);for(let io of no)this.changes=this.changes.compose(io.changes);let oo=[];this.changes.iterChangedRanges((io,so,ao,lo)=>oo.push(new ChangedRange(io,so,ao,lo))),this.changedRanges=oo}static create(to,ro,no){return new ViewUpdate(to,ro,no)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(to=>to.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class DocView extends ContentView{get length(){return this.view.state.doc.length}constructor(to){super(),this.view=to,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.compositionBarrier=Decoration.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(to.contentDOM),this.children=[new LineView],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new ChangedRange(0,0,0,to.state.doc.length)],0,null)}update(to){var ro;let no=to.changedRanges;this.minWidth>0&&no.length&&(no.every(({fromA:uo,toA:co})=>cothis.minWidthTo)?(this.minWidthFrom=to.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=to.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let oo=-1;this.view.inputState.composing>=0&&(!((ro=this.domChanged)===null||ro===void 0)&&ro.newSel?oo=this.domChanged.newSel.head:!touchesComposition(to.changes,this.hasComposition)&&!to.selectionSet&&(oo=to.state.selection.main.head));let io=oo>-1?findCompositionRange(this.view,to.changes,oo):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:uo,to:co}=this.hasComposition;no=new ChangedRange(uo,co,to.changes.mapPos(uo,-1),to.changes.mapPos(co,1)).addToSet(no.slice())}this.hasComposition=io?{from:io.range.fromB,to:io.range.toB}:null,(browser.ie||browser.chrome)&&!io&&to&&to.state.doc.lines!=to.startState.doc.lines&&(this.forceSelection=!0);let so=this.decorations,ao=this.updateDeco(),lo=findChangedDeco(so,ao,to.changes);return no=ChangedRange.extendWithRanges(no,lo),!(this.flags&7)&&no.length==0?!1:(this.updateInner(no,to.startState.doc.length,io),to.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(to,ro,no){this.view.viewState.mustMeasureContent=!0,this.updateChildren(to,ro,no);let{observer:oo}=this.view;oo.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let so=browser.chrome||browser.ios?{node:oo.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,so),this.flags&=-8,so&&(so.written||oo.selectionRange.focusNode!=so.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(so=>so.flags&=-9);let io=[];if(this.view.viewport.from||this.view.viewport.to=0?oo[so]:null;if(!ao)break;let{fromA:lo,toA:uo,fromB:co,toB:fo}=ao,ho,po,go,vo;if(no&&no.range.fromBco){let So=ContentBuilder.build(this.view.state.doc,co,no.range.fromB,this.decorations,this.dynamicDecorationMap),To=ContentBuilder.build(this.view.state.doc,no.range.toB,fo,this.decorations,this.dynamicDecorationMap);po=So.breakAtStart,go=So.openStart,vo=To.openEnd;let wo=this.compositionView(no);To.breakAtStart?wo.breakAfter=1:To.content.length&&wo.merge(wo.length,wo.length,To.content[0],!1,To.openStart,0)&&(wo.breakAfter=To.content[0].breakAfter,To.content.shift()),So.content.length&&wo.merge(0,0,So.content[So.content.length-1],!0,0,So.openEnd)&&So.content.pop(),ho=So.content.concat(wo).concat(To.content)}else({content:ho,breakAtStart:po,openStart:go,openEnd:vo}=ContentBuilder.build(this.view.state.doc,co,fo,this.decorations,this.dynamicDecorationMap));let{i:bo,off:xo}=io.findPos(uo,1),{i:_o,off:Eo}=io.findPos(lo,-1);replaceRange(this,_o,Eo,bo,xo,ho,po,go,vo)}no&&this.fixCompositionDOM(no)}compositionView(to){let ro=new TextView(to.text.nodeValue);ro.flags|=8;for(let{deco:oo}of to.marks)ro=new MarkView(oo,[ro],ro.length);let no=new LineView;return no.append(ro,0),no}fixCompositionDOM(to){let ro=(io,so)=>{so.flags|=8|(so.children.some(lo=>lo.flags&7)?1:0),this.markedForComposition.add(so);let ao=ContentView.get(io);ao&&ao!=so&&(ao.dom=null),so.setDOM(io)},no=this.childPos(to.range.fromB,1),oo=this.children[no.i];ro(to.line,oo);for(let io=to.marks.length-1;io>=-1;io--)no=oo.childPos(no.off,1),oo=oo.children[no.i],ro(io>=0?to.marks[io].node:to.text,oo)}updateSelection(to=!1,ro=!1){(to||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let no=this.view.root.activeElement,oo=no==this.dom,io=!oo&&hasSelection(this.dom,this.view.observer.selectionRange)&&!(no&&this.dom.contains(no));if(!(oo||ro||io))return;let so=this.forceSelection;this.forceSelection=!1;let ao=this.view.state.selection.main,lo=this.moveToLine(this.domAtPos(ao.anchor)),uo=ao.empty?lo:this.moveToLine(this.domAtPos(ao.head));if(browser.gecko&&ao.empty&&!this.hasComposition&&betweenUneditable(lo)){let fo=document.createTextNode("");this.view.observer.ignore(()=>lo.node.insertBefore(fo,lo.node.childNodes[lo.offset]||null)),lo=uo=new DOMPos(fo,0),so=!0}let co=this.view.observer.selectionRange;(so||!co.focusNode||(!isEquivalentPosition(lo.node,lo.offset,co.anchorNode,co.anchorOffset)||!isEquivalentPosition(uo.node,uo.offset,co.focusNode,co.focusOffset))&&!this.suppressWidgetCursorChange(co,ao))&&(this.view.observer.ignore(()=>{browser.android&&browser.chrome&&this.dom.contains(co.focusNode)&&inUneditable(co.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let fo=getSelection(this.view.root);if(fo)if(ao.empty){if(browser.gecko){let ho=nextToUneditable(lo.node,lo.offset);if(ho&&ho!=3){let po=(ho==1?textNodeBefore:textNodeAfter)(lo.node,lo.offset);po&&(lo=new DOMPos(po.node,po.offset))}}fo.collapse(lo.node,lo.offset),ao.bidiLevel!=null&&fo.caretBidiLevel!==void 0&&(fo.caretBidiLevel=ao.bidiLevel)}else if(fo.extend){fo.collapse(lo.node,lo.offset);try{fo.extend(uo.node,uo.offset)}catch{}}else{let ho=document.createRange();ao.anchor>ao.head&&([lo,uo]=[uo,lo]),ho.setEnd(uo.node,uo.offset),ho.setStart(lo.node,lo.offset),fo.removeAllRanges(),fo.addRange(ho)}io&&this.view.root.activeElement==this.dom&&(this.dom.blur(),no&&no.focus())}),this.view.observer.setSelectionRange(lo,uo)),this.impreciseAnchor=lo.precise?null:new DOMPos(co.anchorNode,co.anchorOffset),this.impreciseHead=uo.precise?null:new DOMPos(co.focusNode,co.focusOffset)}suppressWidgetCursorChange(to,ro){return this.hasComposition&&ro.empty&&!this.compositionBarrier.size&&isEquivalentPosition(to.focusNode,to.focusOffset,to.anchorNode,to.anchorOffset)&&this.posFromDOM(to.focusNode,to.focusOffset)==ro.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:to}=this,ro=to.state.selection.main,no=getSelection(to.root),{anchorNode:oo,anchorOffset:io}=to.observer.selectionRange;if(!no||!ro.empty||!ro.assoc||!no.modify)return;let so=LineView.find(this,ro.head);if(!so)return;let ao=so.posAtStart;if(ro.head==ao||ro.head==ao+so.length)return;let lo=this.coordsAt(ro.head,-1),uo=this.coordsAt(ro.head,1);if(!lo||!uo||lo.bottom>uo.top)return;let co=this.domAtPos(ro.head+ro.assoc);no.collapse(co.node,co.offset),no.modify("move",ro.assoc<0?"forward":"backward","lineboundary"),to.observer.readSelectionRange();let fo=to.observer.selectionRange;to.docView.posFromDOM(fo.anchorNode,fo.anchorOffset)!=ro.from&&no.collapse(oo,io)}moveToLine(to){let ro=this.dom,no;if(to.node!=ro)return to;for(let oo=to.offset;!no&&oo=0;oo--){let io=ContentView.get(ro.childNodes[oo]);io instanceof LineView&&(no=io.domAtPos(io.length))}return no?new DOMPos(no.node,no.offset,!0):to}nearest(to){for(let ro=to;ro;){let no=ContentView.get(ro);if(no&&no.rootView==this)return no;ro=ro.parentNode}return null}posFromDOM(to,ro){let no=this.nearest(to);if(!no)throw new RangeError("Trying to find position for a DOM position outside of the document");return no.localPosFromDOM(to,ro)+no.posAtStart}domAtPos(to){let{i:ro,off:no}=this.childCursor().findPos(to,-1);for(;ro=0;so--){let ao=this.children[so],lo=io-ao.breakAfter,uo=lo-ao.length;if(loto||ao.covers(1))&&(!no||ao instanceof LineView&&!(no instanceof LineView&&ro>=0))&&(no=ao,oo=uo),io=uo}return no?no.coordsAt(to-oo,ro):null}coordsForChar(to){let{i:ro,off:no}=this.childPos(to,1),oo=this.children[ro];if(!(oo instanceof LineView))return null;for(;oo.children.length;){let{i:ao,off:lo}=oo.childPos(no,1);for(;;ao++){if(ao==oo.children.length)return null;if((oo=oo.children[ao]).length)break}no=lo}if(!(oo instanceof TextView))return null;let io=findClusterBreak(oo.text,no);if(io==no)return null;let so=textRange(oo.dom,no,io).getClientRects();for(let ao=0;aoMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,ao=-1,lo=this.view.textDirection==Direction.LTR;for(let uo=0,co=0;cooo)break;if(uo>=no){let po=fo.dom.getBoundingClientRect();if(ro.push(po.height),so){let go=fo.dom.lastChild,vo=go?clientRectsFor(go):[];if(vo.length){let bo=vo[vo.length-1],xo=lo?bo.right-po.left:po.right-bo.left;xo>ao&&(ao=xo,this.minWidth=io,this.minWidthFrom=uo,this.minWidthTo=ho)}}}uo=ho+fo.breakAfter}return ro}textDirectionAt(to){let{i:ro}=this.childPos(to,1);return getComputedStyle(this.children[ro].dom).direction=="rtl"?Direction.RTL:Direction.LTR}measureTextSize(){for(let io of this.children)if(io instanceof LineView){let so=io.measureTextSize();if(so)return so}let to=document.createElement("div"),ro,no,oo;return to.className="cm-line",to.style.width="99999px",to.style.position="absolute",to.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(to);let io=clientRectsFor(to.firstChild)[0];ro=to.getBoundingClientRect().height,no=io?io.width/27:7,oo=io?io.height:ro,to.remove()}),{lineHeight:ro,charWidth:no,textHeight:oo}}childCursor(to=this.length){let ro=this.children.length;return ro&&(to-=this.children[--ro].length),new ChildCursor(this.children,to,ro)}computeBlockGapDeco(){let to=[],ro=this.view.viewState;for(let no=0,oo=0;;oo++){let io=oo==ro.viewports.length?null:ro.viewports[oo],so=io?io.from-1:this.length;if(so>no){let ao=(ro.lineBlockAt(so).bottom-ro.lineBlockAt(no).top)/this.view.scaleY;to.push(Decoration.replace({widget:new BlockGapWidget(ao),block:!0,inclusive:!0,isBlockGap:!0}).range(no,so))}if(!io)break;no=io.to+1}return Decoration.set(to)}updateDeco(){let to=1,ro=this.view.state.facet(decorations).map(io=>(this.dynamicDecorationMap[to++]=typeof io=="function")?io(this.view):io),no=!1,oo=this.view.state.facet(outerDecorations).map((io,so)=>{let ao=typeof io=="function";return ao&&(no=!0),ao?io(this.view):io});for(oo.length&&(this.dynamicDecorationMap[to++]=no,ro.push(RangeSet.join(oo))),this.decorations=[this.compositionBarrier,...ro,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];to{ao.point?no=!1:ao.endSide<0&&ioro.anchor?-1:1),oo;if(!no)return;!ro.empty&&(oo=this.coordsAt(ro.anchor,ro.anchor>ro.head?-1:1))&&(no={left:Math.min(no.left,oo.left),top:Math.min(no.top,oo.top),right:Math.max(no.right,oo.right),bottom:Math.max(no.bottom,oo.bottom)});let io=getScrollMargins(this.view),so={left:no.left-io.left,top:no.top-io.top,right:no.right+io.right,bottom:no.bottom+io.bottom},{offsetWidth:ao,offsetHeight:lo}=this.view.scrollDOM;scrollRectIntoView(this.view.scrollDOM,so,ro.head{noto.from&&(ro=!0)}),ro}function groupAt(eo,to,ro=1){let no=eo.charCategorizer(to),oo=eo.doc.lineAt(to),io=to-oo.from;if(oo.length==0)return EditorSelection.cursor(to);io==0?ro=1:io==oo.length&&(ro=-1);let so=io,ao=io;ro<0?so=findClusterBreak(oo.text,io,!1):ao=findClusterBreak(oo.text,io);let lo=no(oo.text.slice(so,ao));for(;so>0;){let uo=findClusterBreak(oo.text,so,!1);if(no(oo.text.slice(uo,so))!=lo)break;so=uo}for(;aoeo?to.left-eo:Math.max(0,eo-to.right)}function getdy(eo,to){return to.top>eo?to.top-eo:Math.max(0,eo-to.bottom)}function yOverlap(eo,to){return eo.topto.top+1}function upTop(eo,to){return toeo.bottom?{top:eo.top,left:eo.left,right:eo.right,bottom:to}:eo}function domPosAtCoords(eo,to,ro){let no,oo,io,so,ao=!1,lo,uo,co,fo;for(let go=eo.firstChild;go;go=go.nextSibling){let vo=clientRectsFor(go);for(let bo=0;boEo||so==Eo&&io>_o){no=go,oo=xo,io=_o,so=Eo;let So=Eo?ro0?bo0)}_o==0?ro>xo.bottom&&(!co||co.bottomxo.top)&&(uo=go,fo=xo):co&&yOverlap(co,xo)?co=upBot(co,xo.bottom):fo&&yOverlap(fo,xo)&&(fo=upTop(fo,xo.top))}}if(co&&co.bottom>=ro?(no=lo,oo=co):fo&&fo.top<=ro&&(no=uo,oo=fo),!no)return{node:eo,offset:0};let ho=Math.max(oo.left,Math.min(oo.right,to));if(no.nodeType==3)return domPosInText(no,ho,ro);if(ao&&no.contentEditable!="false")return domPosAtCoords(no,ho,ro);let po=Array.prototype.indexOf.call(eo.childNodes,no)+(to>=(oo.left+oo.right)/2?1:0);return{node:eo,offset:po}}function domPosInText(eo,to,ro){let no=eo.nodeValue.length,oo=-1,io=1e9,so=0;for(let ao=0;aoro?co.top-ro:ro-co.bottom)-1;if(co.left-1<=to&&co.right+1>=to&&fo=(co.left+co.right)/2,po=ho;if((browser.chrome||browser.gecko)&&textRange(eo,ao).getBoundingClientRect().left==co.right&&(po=!ho),fo<=0)return{node:eo,offset:ao+(po?1:0)};oo=ao+(po?1:0),io=fo}}}return{node:eo,offset:oo>-1?oo:so>0?eo.nodeValue.length:0}}function posAtCoords(eo,to,ro,no=-1){var oo,io;let so=eo.contentDOM.getBoundingClientRect(),ao=so.top+eo.viewState.paddingTop,lo,{docHeight:uo}=eo.viewState,{x:co,y:fo}=to,ho=fo-ao;if(ho<0)return 0;if(ho>uo)return eo.state.doc.length;for(let So=eo.viewState.heightOracle.textHeight/2,To=!1;lo=eo.elementAtHeight(ho),lo.type!=BlockType.Text;)for(;ho=no>0?lo.bottom+So:lo.top-So,!(ho>=0&&ho<=uo);){if(To)return ro?null:0;To=!0,no=-no}fo=ao+ho;let po=lo.from;if(poeo.viewport.to)return eo.viewport.to==eo.state.doc.length?eo.state.doc.length:ro?null:posAtCoordsImprecise(eo,so,lo,co,fo);let go=eo.dom.ownerDocument,vo=eo.root.elementFromPoint?eo.root:go,bo=vo.elementFromPoint(co,fo);bo&&!eo.contentDOM.contains(bo)&&(bo=null),bo||(co=Math.max(so.left+1,Math.min(so.right-1,co)),bo=vo.elementFromPoint(co,fo),bo&&!eo.contentDOM.contains(bo)&&(bo=null));let xo,_o=-1;if(bo&&((oo=eo.docView.nearest(bo))===null||oo===void 0?void 0:oo.isEditable)!=!1){if(go.caretPositionFromPoint){let So=go.caretPositionFromPoint(co,fo);So&&({offsetNode:xo,offset:_o}=So)}else if(go.caretRangeFromPoint){let So=go.caretRangeFromPoint(co,fo);So&&({startContainer:xo,startOffset:_o}=So,(!eo.contentDOM.contains(xo)||browser.safari&&isSuspiciousSafariCaretResult(xo,_o,co)||browser.chrome&&isSuspiciousChromeCaretResult(xo,_o,co))&&(xo=void 0))}}if(!xo||!eo.docView.dom.contains(xo)){let So=LineView.find(eo.docView,po);if(!So)return ho>lo.top+lo.height/2?lo.to:lo.from;({node:xo,offset:_o}=domPosAtCoords(So.dom,co,fo))}let Eo=eo.docView.nearest(xo);if(!Eo)return null;if(Eo.isWidget&&((io=Eo.dom)===null||io===void 0?void 0:io.nodeType)==1){let So=Eo.dom.getBoundingClientRect();return to.yeo.defaultLineHeight*1.5){let ao=eo.viewState.heightOracle.textHeight,lo=Math.floor((oo-ro.top-(eo.defaultLineHeight-ao)*.5)/ao);io+=lo*eo.viewState.heightOracle.lineLength}let so=eo.state.sliceDoc(ro.from,ro.to);return ro.from+findColumn(so,io,eo.state.tabSize)}function isSuspiciousSafariCaretResult(eo,to,ro){let no;if(eo.nodeType!=3||to!=(no=eo.nodeValue.length))return!1;for(let oo=eo.nextSibling;oo;oo=oo.nextSibling)if(oo.nodeType!=1||oo.nodeName!="BR")return!1;return textRange(eo,no-1,no).getBoundingClientRect().left>ro}function isSuspiciousChromeCaretResult(eo,to,ro){if(to!=0)return!1;for(let oo=eo;;){let io=oo.parentNode;if(!io||io.nodeType!=1||io.firstChild!=oo)return!1;if(io.classList.contains("cm-line"))break;oo=io}let no=eo.nodeType==1?eo.getBoundingClientRect():textRange(eo,0,Math.max(eo.nodeValue.length,1)).getBoundingClientRect();return ro-no.left>5}function blockAt(eo,to){let ro=eo.lineBlockAt(to);if(Array.isArray(ro.type)){for(let no of ro.type)if(no.to>to||no.to==to&&(no.to==ro.to||no.type==BlockType.Text))return no}return ro}function moveToLineBoundary(eo,to,ro,no){let oo=blockAt(eo,to.head),io=!no||oo.type!=BlockType.Text||!(eo.lineWrapping||oo.widgetLineBreaks)?null:eo.coordsAtPos(to.assoc<0&&to.head>oo.from?to.head-1:to.head);if(io){let so=eo.dom.getBoundingClientRect(),ao=eo.textDirectionAt(oo.from),lo=eo.posAtCoords({x:ro==(ao==Direction.LTR)?so.right-1:so.left+1,y:(io.top+io.bottom)/2});if(lo!=null)return EditorSelection.cursor(lo,ro?-1:1)}return EditorSelection.cursor(ro?oo.to:oo.from,ro?-1:1)}function moveByChar(eo,to,ro,no){let oo=eo.state.doc.lineAt(to.head),io=eo.bidiSpans(oo),so=eo.textDirectionAt(oo.from);for(let ao=to,lo=null;;){let uo=moveVisually(oo,io,so,ao,ro),co=movedOver;if(!uo){if(oo.number==(ro?eo.state.doc.lines:1))return ao;co=` +`,oo=eo.state.doc.line(oo.number+(ro?1:-1)),io=eo.bidiSpans(oo),uo=eo.visualLineSide(oo,!ro)}if(lo){if(!lo(co))return ao}else{if(!no)return uo;lo=no(co)}ao=uo}}function byGroup(eo,to,ro){let no=eo.state.charCategorizer(to),oo=no(ro);return io=>{let so=no(io);return oo==CharCategory.Space&&(oo=so),oo==so}}function moveVertically(eo,to,ro,no){let oo=to.head,io=ro?1:-1;if(oo==(ro?eo.state.doc.length:0))return EditorSelection.cursor(oo,to.assoc);let so=to.goalColumn,ao,lo=eo.contentDOM.getBoundingClientRect(),uo=eo.coordsAtPos(oo,to.assoc||-1),co=eo.documentTop;if(uo)so==null&&(so=uo.left-lo.left),ao=io<0?uo.top:uo.bottom;else{let po=eo.viewState.lineBlockAt(oo);so==null&&(so=Math.min(lo.right-lo.left,eo.defaultCharacterWidth*(oo-po.from))),ao=(io<0?po.top:po.bottom)+co}let fo=lo.left+so,ho=no??eo.viewState.heightOracle.textHeight>>1;for(let po=0;;po+=10){let go=ao+(ho+po)*io,vo=posAtCoords(eo,{x:fo,y:go},!1,io);if(golo.bottom||(io<0?vooo)){let bo=eo.docView.coordsForChar(vo),xo=!bo||go{if(to>io&&tooo(eo)),ro.from,to.head>ro.from?-1:1);return no==ro.from?ro:EditorSelection.cursor(no,nonull),browser.gecko&&firefoxCopyCutHack(to.contentDOM.ownerDocument)}handleEvent(to){!eventBelongsToEditor(this.view,to)||this.ignoreDuringComposition(to)||to.type=="keydown"&&this.keydown(to)||this.runHandlers(to.type,to)}runHandlers(to,ro){let no=this.handlers[to];if(no){for(let oo of no.observers)oo(this.view,ro);for(let oo of no.handlers){if(ro.defaultPrevented)break;if(oo(this.view,ro)){ro.preventDefault();break}}}}ensureHandlers(to){let ro=computeHandlers(to),no=this.handlers,oo=this.view.contentDOM;for(let io in ro)if(io!="scroll"){let so=!ro[io].handlers.length,ao=no[io];ao&&so!=!ao.handlers.length&&(oo.removeEventListener(io,this.handleEvent),ao=null),ao||oo.addEventListener(io,this.handleEvent,{passive:so})}for(let io in no)io!="scroll"&&!ro[io]&&oo.removeEventListener(io,this.handleEvent);this.handlers=ro}keydown(to){if(this.lastKeyCode=to.keyCode,this.lastKeyTime=Date.now(),to.keyCode==9&&Date.now()no.keyCode==to.keyCode))&&!to.ctrlKey||EmacsyPendingKeys.indexOf(to.key)>-1&&to.ctrlKey&&!to.shiftKey)?(this.pendingIOSKey=ro||to,setTimeout(()=>this.flushIOSKey(),250),!0):(to.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(to){let ro=this.pendingIOSKey;return!ro||ro.key=="Enter"&&to&&to.from0?!0:browser.safari&&!browser.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(to){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=to}update(to){this.mouseSelection&&this.mouseSelection.update(to),this.draggedContent&&to.docChanged&&(this.draggedContent=this.draggedContent.map(to.changes)),to.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function bindHandler(eo,to){return(ro,no)=>{try{return to.call(eo,no,ro)}catch(oo){logException(ro.state,oo)}}}function computeHandlers(eo){let to=Object.create(null);function ro(no){return to[no]||(to[no]={observers:[],handlers:[]})}for(let no of eo){let oo=no.spec;if(oo&&oo.domEventHandlers)for(let io in oo.domEventHandlers){let so=oo.domEventHandlers[io];so&&ro(io).handlers.push(bindHandler(no.value,so))}if(oo&&oo.domEventObservers)for(let io in oo.domEventObservers){let so=oo.domEventObservers[io];so&&ro(io).observers.push(bindHandler(no.value,so))}}for(let no in handlers)ro(no).handlers.push(handlers[no]);for(let no in observers)ro(no).observers.push(observers[no]);return to}const PendingKeys=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],EmacsyPendingKeys="dthko",modifierCodes=[16,17,18,20,91,92,224,225],dragScrollMargin=6;function dragScrollSpeed(eo){return Math.max(0,eo)*.7+8}function dist(eo,to){return Math.max(Math.abs(eo.clientX-to.clientX),Math.abs(eo.clientY-to.clientY))}class MouseSelection{constructor(to,ro,no,oo){this.view=to,this.startEvent=ro,this.style=no,this.mustSelect=oo,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=ro,this.scrollParent=scrollableParent(to.contentDOM),this.atoms=to.state.facet(atomicRanges).map(so=>so(to));let io=to.contentDOM.ownerDocument;io.addEventListener("mousemove",this.move=this.move.bind(this)),io.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=ro.shiftKey,this.multiple=to.state.facet(EditorState.allowMultipleSelections)&&addsSelectionRange(to,ro),this.dragging=isInPrimarySelection(to,ro)&&getClickType(ro)==1?null:!1}start(to){this.dragging===!1&&this.select(to)}move(to){var ro;if(to.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&dist(this.startEvent,to)<10)return;this.select(this.lastEvent=to);let no=0,oo=0,io=((ro=this.scrollParent)===null||ro===void 0?void 0:ro.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},so=getScrollMargins(this.view);to.clientX-so.left<=io.left+dragScrollMargin?no=-dragScrollSpeed(io.left-to.clientX):to.clientX+so.right>=io.right-dragScrollMargin&&(no=dragScrollSpeed(to.clientX-io.right)),to.clientY-so.top<=io.top+dragScrollMargin?oo=-dragScrollSpeed(io.top-to.clientY):to.clientY+so.bottom>=io.bottom-dragScrollMargin&&(oo=dragScrollSpeed(to.clientY-io.bottom)),this.setScrollSpeed(no,oo)}up(to){this.dragging==null&&this.select(this.lastEvent),this.dragging||to.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let to=this.view.contentDOM.ownerDocument;to.removeEventListener("mousemove",this.move),to.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(to,ro){this.scrollSpeed={x:to,y:ro},to||ro?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(to){let ro=null;for(let no=0;nothis.select(this.lastEvent),20)}}function addsSelectionRange(eo,to){let ro=eo.state.facet(clickAddsSelectionRange);return ro.length?ro[0](to):browser.mac?to.metaKey:to.ctrlKey}function dragMovesSelection(eo,to){let ro=eo.state.facet(dragMovesSelection$1);return ro.length?ro[0](to):browser.mac?!to.altKey:!to.ctrlKey}function isInPrimarySelection(eo,to){let{main:ro}=eo.state.selection;if(ro.empty)return!1;let no=getSelection(eo.root);if(!no||no.rangeCount==0)return!0;let oo=no.getRangeAt(0).getClientRects();for(let io=0;io=to.clientX&&so.top<=to.clientY&&so.bottom>=to.clientY)return!0}return!1}function eventBelongsToEditor(eo,to){if(!to.bubbles)return!0;if(to.defaultPrevented)return!1;for(let ro=to.target,no;ro!=eo.contentDOM;ro=ro.parentNode)if(!ro||ro.nodeType==11||(no=ContentView.get(ro))&&no.ignoreEvent(to))return!1;return!0}const handlers=Object.create(null),observers=Object.create(null),brokenClipboardAPI=browser.ie&&browser.ie_version<15||browser.ios&&browser.webkit_version<604;function capturePaste(eo){let to=eo.dom.parentNode;if(!to)return;let ro=to.appendChild(document.createElement("textarea"));ro.style.cssText="position: fixed; left: -10000px; top: 10px",ro.focus(),setTimeout(()=>{eo.focus(),ro.remove(),doPaste(eo,ro.value)},50)}function doPaste(eo,to){let{state:ro}=eo,no,oo=1,io=ro.toText(to),so=io.lines==ro.selection.ranges.length;if(lastLinewiseCopy!=null&&ro.selection.ranges.every(lo=>lo.empty)&&lastLinewiseCopy==io.toString()){let lo=-1;no=ro.changeByRange(uo=>{let co=ro.doc.lineAt(uo.from);if(co.from==lo)return{range:uo};lo=co.from;let fo=ro.toText((so?io.line(oo++).text:to)+ro.lineBreak);return{changes:{from:co.from,insert:fo},range:EditorSelection.cursor(uo.from+fo.length)}})}else so?no=ro.changeByRange(lo=>{let uo=io.line(oo++);return{changes:{from:lo.from,to:lo.to,insert:uo.text},range:EditorSelection.cursor(lo.from+uo.length)}}):no=ro.replaceSelection(io);eo.dispatch(no,{userEvent:"input.paste",scrollIntoView:!0})}observers.scroll=eo=>{eo.inputState.lastScrollTop=eo.scrollDOM.scrollTop,eo.inputState.lastScrollLeft=eo.scrollDOM.scrollLeft};handlers.keydown=(eo,to)=>(eo.inputState.setSelectionOrigin("select"),to.keyCode==27&&(eo.inputState.lastEscPress=Date.now()),!1);observers.touchstart=(eo,to)=>{eo.inputState.lastTouchTime=Date.now(),eo.inputState.setSelectionOrigin("select.pointer")};observers.touchmove=eo=>{eo.inputState.setSelectionOrigin("select.pointer")};handlers.mousedown=(eo,to)=>{if(eo.observer.flush(),eo.inputState.lastTouchTime>Date.now()-2e3)return!1;let ro=null;for(let no of eo.state.facet(mouseSelectionStyle))if(ro=no(eo,to),ro)break;if(!ro&&to.button==0&&(ro=basicMouseSelection(eo,to)),ro){let no=!eo.hasFocus;eo.inputState.startMouseSelection(new MouseSelection(eo,to,ro,no)),no&&eo.observer.ignore(()=>focusPreventScroll(eo.contentDOM));let oo=eo.inputState.mouseSelection;if(oo)return oo.start(to),oo.dragging===!1}return!1};function rangeForClick(eo,to,ro,no){if(no==1)return EditorSelection.cursor(to,ro);if(no==2)return groupAt(eo.state,to,ro);{let oo=LineView.find(eo.docView,to),io=eo.state.doc.lineAt(oo?oo.posAtEnd:to),so=oo?oo.posAtStart:io.from,ao=oo?oo.posAtEnd:io.to;return aoeo>=to.top&&eo<=to.bottom,inside=(eo,to,ro)=>insideY(to,ro)&&eo>=ro.left&&eo<=ro.right;function findPositionSide(eo,to,ro,no){let oo=LineView.find(eo.docView,to);if(!oo)return 1;let io=to-oo.posAtStart;if(io==0)return 1;if(io==oo.length)return-1;let so=oo.coordsAt(io,-1);if(so&&inside(ro,no,so))return-1;let ao=oo.coordsAt(io,1);return ao&&inside(ro,no,ao)?1:so&&insideY(no,so)?-1:1}function queryPos(eo,to){let ro=eo.posAtCoords({x:to.clientX,y:to.clientY},!1);return{pos:ro,bias:findPositionSide(eo,ro,to.clientX,to.clientY)}}const BadMouseDetail=browser.ie&&browser.ie_version<=11;let lastMouseDown=null,lastMouseDownCount=0,lastMouseDownTime=0;function getClickType(eo){if(!BadMouseDetail)return eo.detail;let to=lastMouseDown,ro=lastMouseDownTime;return lastMouseDown=eo,lastMouseDownTime=Date.now(),lastMouseDownCount=!to||ro>Date.now()-400&&Math.abs(to.clientX-eo.clientX)<2&&Math.abs(to.clientY-eo.clientY)<2?(lastMouseDownCount+1)%3:1}function basicMouseSelection(eo,to){let ro=queryPos(eo,to),no=getClickType(to),oo=eo.state.selection;return{update(io){io.docChanged&&(ro.pos=io.changes.mapPos(ro.pos),oo=oo.map(io.changes))},get(io,so,ao){let lo=queryPos(eo,io),uo,co=rangeForClick(eo,lo.pos,lo.bias,no);if(ro.pos!=lo.pos&&!so){let fo=rangeForClick(eo,ro.pos,ro.bias,no),ho=Math.min(fo.from,co.from),po=Math.max(fo.to,co.to);co=ho1&&(uo=removeRangeAround(oo,lo.pos))?uo:ao?oo.addRange(co):EditorSelection.create([co])}}}function removeRangeAround(eo,to){for(let ro=0;ro=to)return EditorSelection.create(eo.ranges.slice(0,ro).concat(eo.ranges.slice(ro+1)),eo.mainIndex==ro?0:eo.mainIndex-(eo.mainIndex>ro?1:0))}return null}handlers.dragstart=(eo,to)=>{let{selection:{main:ro}}=eo.state;if(to.target.draggable){let oo=eo.docView.nearest(to.target);if(oo&&oo.isWidget){let io=oo.posAtStart,so=io+oo.length;(io>=ro.to||so<=ro.from)&&(ro=EditorSelection.range(io,so))}}let{inputState:no}=eo;return no.mouseSelection&&(no.mouseSelection.dragging=!0),no.draggedContent=ro,to.dataTransfer&&(to.dataTransfer.setData("Text",eo.state.sliceDoc(ro.from,ro.to)),to.dataTransfer.effectAllowed="copyMove"),!1};handlers.dragend=eo=>(eo.inputState.draggedContent=null,!1);function dropText(eo,to,ro,no){if(!ro)return;let oo=eo.posAtCoords({x:to.clientX,y:to.clientY},!1),{draggedContent:io}=eo.inputState,so=no&&io&&dragMovesSelection(eo,to)?{from:io.from,to:io.to}:null,ao={from:oo,insert:ro},lo=eo.state.changes(so?[so,ao]:ao);eo.focus(),eo.dispatch({changes:lo,selection:{anchor:lo.mapPos(oo,-1),head:lo.mapPos(oo,1)},userEvent:so?"move.drop":"input.drop"}),eo.inputState.draggedContent=null}handlers.drop=(eo,to)=>{if(!to.dataTransfer)return!1;if(eo.state.readOnly)return!0;let ro=to.dataTransfer.files;if(ro&&ro.length){let no=Array(ro.length),oo=0,io=()=>{++oo==ro.length&&dropText(eo,to,no.filter(so=>so!=null).join(eo.state.lineBreak),!1)};for(let so=0;so{/[\x00-\x08\x0e-\x1f]{2}/.test(ao.result)||(no[so]=ao.result),io()},ao.readAsText(ro[so])}return!0}else{let no=to.dataTransfer.getData("Text");if(no)return dropText(eo,to,no,!0),!0}return!1};handlers.paste=(eo,to)=>{if(eo.state.readOnly)return!0;eo.observer.flush();let ro=brokenClipboardAPI?null:to.clipboardData;return ro?(doPaste(eo,ro.getData("text/plain")||ro.getData("text/uri-list")),!0):(capturePaste(eo),!1)};function captureCopy(eo,to){let ro=eo.dom.parentNode;if(!ro)return;let no=ro.appendChild(document.createElement("textarea"));no.style.cssText="position: fixed; left: -10000px; top: 10px",no.value=to,no.focus(),no.selectionEnd=to.length,no.selectionStart=0,setTimeout(()=>{no.remove(),eo.focus()},50)}function copiedRange(eo){let to=[],ro=[],no=!1;for(let oo of eo.selection.ranges)oo.empty||(to.push(eo.sliceDoc(oo.from,oo.to)),ro.push(oo));if(!to.length){let oo=-1;for(let{from:io}of eo.selection.ranges){let so=eo.doc.lineAt(io);so.number>oo&&(to.push(so.text),ro.push({from:so.from,to:Math.min(eo.doc.length,so.to+1)})),oo=so.number}no=!0}return{text:to.join(eo.lineBreak),ranges:ro,linewise:no}}let lastLinewiseCopy=null;handlers.copy=handlers.cut=(eo,to)=>{let{text:ro,ranges:no,linewise:oo}=copiedRange(eo.state);if(!ro&&!oo)return!1;lastLinewiseCopy=oo?ro:null,to.type=="cut"&&!eo.state.readOnly&&eo.dispatch({changes:no,scrollIntoView:!0,userEvent:"delete.cut"});let io=brokenClipboardAPI?null:to.clipboardData;return io?(io.clearData(),io.setData("text/plain",ro),!0):(captureCopy(eo,ro),!1)};const isFocusChange=Annotation.define();function focusChangeTransaction(eo,to){let ro=[];for(let no of eo.facet(focusChangeEffect)){let oo=no(eo,to);oo&&ro.push(oo)}return ro?eo.update({effects:ro,annotations:isFocusChange.of(!0)}):null}function updateForFocusChange(eo){setTimeout(()=>{let to=eo.hasFocus;if(to!=eo.inputState.notifiedFocused){let ro=focusChangeTransaction(eo.state,to);ro?eo.dispatch(ro):eo.update([])}},10)}observers.focus=eo=>{eo.inputState.lastFocusTime=Date.now(),!eo.scrollDOM.scrollTop&&(eo.inputState.lastScrollTop||eo.inputState.lastScrollLeft)&&(eo.scrollDOM.scrollTop=eo.inputState.lastScrollTop,eo.scrollDOM.scrollLeft=eo.inputState.lastScrollLeft),updateForFocusChange(eo)};observers.blur=eo=>{eo.observer.clearSelectionRange(),updateForFocusChange(eo)};observers.compositionstart=observers.compositionupdate=eo=>{eo.inputState.compositionFirstChange==null&&(eo.inputState.compositionFirstChange=!0),eo.inputState.composing<0&&(eo.inputState.composing=0,eo.docView.maybeCreateCompositionBarrier()&&(eo.update([]),eo.docView.clearCompositionBarrier()))};observers.compositionend=eo=>{eo.inputState.composing=-1,eo.inputState.compositionEndedAt=Date.now(),eo.inputState.compositionPendingKey=!0,eo.inputState.compositionPendingChange=eo.observer.pendingRecords().length>0,eo.inputState.compositionFirstChange=null,browser.chrome&&browser.android?eo.observer.flushSoon():eo.inputState.compositionPendingChange?Promise.resolve().then(()=>eo.observer.flush()):setTimeout(()=>{eo.inputState.composing<0&&eo.docView.hasComposition&&eo.update([])},50)};observers.contextmenu=eo=>{eo.inputState.lastContextMenu=Date.now()};handlers.beforeinput=(eo,to)=>{var ro;let no;if(browser.chrome&&browser.android&&(no=PendingKeys.find(oo=>oo.inputType==to.inputType))&&(eo.observer.delayAndroidKey(no.key,no.keyCode),no.key=="Backspace"||no.key=="Delete")){let oo=((ro=window.visualViewport)===null||ro===void 0?void 0:ro.height)||0;setTimeout(()=>{var io;(((io=window.visualViewport)===null||io===void 0?void 0:io.height)||0)>oo+10&&eo.hasFocus&&(eo.contentDOM.blur(),eo.focus())},100)}return browser.ios&&to.inputType=="deleteContentForward"&&eo.observer.flushSoon(),browser.safari&&to.inputType=="insertText"&&eo.inputState.composing>=0&&setTimeout(()=>observers.compositionend(eo,to),20),!1};const appliedFirefoxHack=new Set;function firefoxCopyCutHack(eo){appliedFirefoxHack.has(eo)||(appliedFirefoxHack.add(eo),eo.addEventListener("copy",()=>{}),eo.addEventListener("cut",()=>{}))}const wrappingWhiteSpace=["pre-wrap","normal","pre-line","break-spaces"];class HeightOracle{constructor(to){this.lineWrapping=to,this.doc=Text$1.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(to,ro){let no=this.doc.lineAt(ro).number-this.doc.lineAt(to).number+1;return this.lineWrapping&&(no+=Math.max(0,Math.ceil((ro-to-no*this.lineLength*.5)/this.lineLength))),this.lineHeight*no}heightForLine(to){return this.lineWrapping?(1+Math.max(0,Math.ceil((to-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(to){return this.doc=to,this}mustRefreshForWrapping(to){return wrappingWhiteSpace.indexOf(to)>-1!=this.lineWrapping}mustRefreshForHeights(to){let ro=!1;for(let no=0;no-1,lo=Math.round(ro)!=Math.round(this.lineHeight)||this.lineWrapping!=ao;if(this.lineWrapping=ao,this.lineHeight=ro,this.charWidth=no,this.textHeight=oo,this.lineLength=io,lo){this.heightSamples={};for(let uo=0;uo0}set outdated(to){this.flags=(to?2:0)|this.flags&-3}setHeight(to,ro){this.height!=ro&&(Math.abs(this.height-ro)>Epsilon&&(to.heightChanged=!0),this.height=ro)}replace(to,ro,no){return HeightMap.of(no)}decomposeLeft(to,ro){ro.push(this)}decomposeRight(to,ro){ro.push(this)}applyChanges(to,ro,no,oo){let io=this,so=no.doc;for(let ao=oo.length-1;ao>=0;ao--){let{fromA:lo,toA:uo,fromB:co,toB:fo}=oo[ao],ho=io.lineAt(lo,QueryType$1.ByPosNoHeight,no.setDoc(ro),0,0),po=ho.to>=uo?ho:io.lineAt(uo,QueryType$1.ByPosNoHeight,no,0,0);for(fo+=po.to-uo,uo=po.to;ao>0&&ho.from<=oo[ao-1].toA;)lo=oo[ao-1].fromA,co=oo[ao-1].fromB,ao--,loio*2){let ao=to[ro-1];ao.break?to.splice(--ro,1,ao.left,null,ao.right):to.splice(--ro,1,ao.left,ao.right),no+=1+ao.break,oo-=ao.size}else if(io>oo*2){let ao=to[no];ao.break?to.splice(no,1,ao.left,null,ao.right):to.splice(no,1,ao.left,ao.right),no+=2+ao.break,io-=ao.size}else break;else if(oo=io&&so(this.blockAt(0,no,oo,io))}updateHeight(to,ro=0,no=!1,oo){return oo&&oo.from<=ro&&oo.more&&this.setHeight(to,oo.heights[oo.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class HeightMapText extends HeightMapBlock{constructor(to,ro){super(to,ro,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(to,ro,no,oo){return new BlockInfo(oo,this.length,no,this.height,this.breaks)}replace(to,ro,no){let oo=no[0];return no.length==1&&(oo instanceof HeightMapText||oo instanceof HeightMapGap&&oo.flags&4)&&Math.abs(this.length-oo.length)<10?(oo instanceof HeightMapGap?oo=new HeightMapText(oo.length,this.height):oo.height=this.height,this.outdated||(oo.outdated=!1),oo):HeightMap.of(no)}updateHeight(to,ro=0,no=!1,oo){return oo&&oo.from<=ro&&oo.more?this.setHeight(to,oo.heights[oo.index++]):(no||this.outdated)&&this.setHeight(to,Math.max(this.widgetHeight,to.heightForLine(this.length-this.collapsed))+this.breaks*to.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class HeightMapGap extends HeightMap{constructor(to){super(to,0)}heightMetrics(to,ro){let no=to.doc.lineAt(ro).number,oo=to.doc.lineAt(ro+this.length).number,io=oo-no+1,so,ao=0;if(to.lineWrapping){let lo=Math.min(this.height,to.lineHeight*io);so=lo/io,this.length>io+1&&(ao=(this.height-lo)/(this.length-io-1))}else so=this.height/io;return{firstLine:no,lastLine:oo,perLine:so,perChar:ao}}blockAt(to,ro,no,oo){let{firstLine:io,lastLine:so,perLine:ao,perChar:lo}=this.heightMetrics(ro,oo);if(ro.lineWrapping){let uo=oo+(to0){let io=no[no.length-1];io instanceof HeightMapGap?no[no.length-1]=new HeightMapGap(io.length+oo):no.push(null,new HeightMapGap(oo-1))}if(to>0){let io=no[0];io instanceof HeightMapGap?no[0]=new HeightMapGap(to+io.length):no.unshift(new HeightMapGap(to-1),null)}return HeightMap.of(no)}decomposeLeft(to,ro){ro.push(new HeightMapGap(to-1),null)}decomposeRight(to,ro){ro.push(null,new HeightMapGap(this.length-to-1))}updateHeight(to,ro=0,no=!1,oo){let io=ro+this.length;if(oo&&oo.from<=ro+this.length&&oo.more){let so=[],ao=Math.max(ro,oo.from),lo=-1;for(oo.from>ro&&so.push(new HeightMapGap(oo.from-ro-1).updateHeight(to,ro));ao<=io&&oo.more;){let co=to.doc.lineAt(ao).length;so.length&&so.push(null);let fo=oo.heights[oo.index++];lo==-1?lo=fo:Math.abs(fo-lo)>=Epsilon&&(lo=-2);let ho=new HeightMapText(co,fo);ho.outdated=!1,so.push(ho),ao+=co+1}ao<=io&&so.push(null,new HeightMapGap(io-ao).updateHeight(to,ao));let uo=HeightMap.of(so);return(lo<0||Math.abs(uo.height-this.height)>=Epsilon||Math.abs(lo-this.heightMetrics(to,ro).perLine)>=Epsilon)&&(to.heightChanged=!0),uo}else(no||this.outdated)&&(this.setHeight(to,to.heightForGap(ro,ro+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class HeightMapBranch extends HeightMap{constructor(to,ro,no){super(to.length+ro+no.length,to.height+no.height,ro|(to.outdated||no.outdated?2:0)),this.left=to,this.right=no,this.size=to.size+no.size}get break(){return this.flags&1}blockAt(to,ro,no,oo){let io=no+this.left.height;return toao))return uo;let co=ro==QueryType$1.ByPosNoHeight?QueryType$1.ByPosNoHeight:QueryType$1.ByPos;return lo?uo.join(this.right.lineAt(ao,co,no,so,ao)):this.left.lineAt(ao,co,no,oo,io).join(uo)}forEachLine(to,ro,no,oo,io,so){let ao=oo+this.left.height,lo=io+this.left.length+this.break;if(this.break)to=lo&&this.right.forEachLine(to,ro,no,ao,lo,so);else{let uo=this.lineAt(lo,QueryType$1.ByPos,no,oo,io);to=to&&uo.from<=ro&&so(uo),ro>uo.to&&this.right.forEachLine(uo.to+1,ro,no,ao,lo,so)}}replace(to,ro,no){let oo=this.left.length+this.break;if(rothis.left.length)return this.balanced(this.left,this.right.replace(to-oo,ro-oo,no));let io=[];to>0&&this.decomposeLeft(to,io);let so=io.length;for(let ao of no)io.push(ao);if(to>0&&mergeGaps(io,so-1),ro=no&&ro.push(null)),to>no&&this.right.decomposeLeft(to-no,ro)}decomposeRight(to,ro){let no=this.left.length,oo=no+this.break;if(to>=oo)return this.right.decomposeRight(to-oo,ro);to2*ro.size||ro.size>2*to.size?HeightMap.of(this.break?[to,null,ro]:[to,ro]):(this.left=to,this.right=ro,this.height=to.height+ro.height,this.outdated=to.outdated||ro.outdated,this.size=to.size+ro.size,this.length=to.length+this.break+ro.length,this)}updateHeight(to,ro=0,no=!1,oo){let{left:io,right:so}=this,ao=ro+io.length+this.break,lo=null;return oo&&oo.from<=ro+io.length&&oo.more?lo=io=io.updateHeight(to,ro,no,oo):io.updateHeight(to,ro,no),oo&&oo.from<=ao+so.length&&oo.more?lo=so=so.updateHeight(to,ao,no,oo):so.updateHeight(to,ao,no),lo?this.balanced(io,so):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function mergeGaps(eo,to){let ro,no;eo[to]==null&&(ro=eo[to-1])instanceof HeightMapGap&&(no=eo[to+1])instanceof HeightMapGap&&eo.splice(to-1,3,new HeightMapGap(ro.length+1+no.length))}const relevantWidgetHeight=5;class NodeBuilder{constructor(to,ro){this.pos=to,this.oracle=ro,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=to}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(to,ro){if(this.lineStart>-1){let no=Math.min(ro,this.lineEnd),oo=this.nodes[this.nodes.length-1];oo instanceof HeightMapText?oo.length+=no-this.pos:(no>this.pos||!this.isCovered)&&this.nodes.push(new HeightMapText(no-this.pos,-1)),this.writtenTo=no,ro>no&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=ro}point(to,ro,no){if(to=relevantWidgetHeight)&&this.addLineDeco(oo,io,so)}else ro>to&&this.span(to,ro);this.lineEnd>-1&&this.lineEnd-1)return;let{from:to,to:ro}=this.oracle.doc.lineAt(this.pos);this.lineStart=to,this.lineEnd=ro,this.writtenToto&&this.nodes.push(new HeightMapText(this.pos-to,-1)),this.writtenTo=this.pos}blankContent(to,ro){let no=new HeightMapGap(ro-to);return this.oracle.doc.lineAt(to).to==ro&&(no.flags|=4),no}ensureLine(){this.enterLine();let to=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(to instanceof HeightMapText)return to;let ro=new HeightMapText(0,-1);return this.nodes.push(ro),ro}addBlock(to){this.enterLine();let ro=to.deco;ro&&ro.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(to),this.writtenTo=this.pos=this.pos+to.length,ro&&ro.endSide>0&&(this.covering=to)}addLineDeco(to,ro,no){let oo=this.ensureLine();oo.length+=no,oo.collapsed+=no,oo.widgetHeight=Math.max(oo.widgetHeight,to),oo.breaks+=ro,this.writtenTo=this.pos=this.pos+no}finish(to){let ro=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(ro instanceof HeightMapText)&&!this.isCovered?this.nodes.push(new HeightMapText(0,-1)):(this.writtenToco.clientHeight||co.scrollWidth>co.clientWidth)&&fo.overflow!="visible"){let ho=co.getBoundingClientRect();io=Math.max(io,ho.left),so=Math.min(so,ho.right),ao=Math.max(ao,ho.top),lo=uo==eo.parentNode?ho.bottom:Math.min(lo,ho.bottom)}uo=fo.position=="absolute"||fo.position=="fixed"?co.offsetParent:co.parentNode}else if(uo.nodeType==11)uo=uo.host;else break;return{left:io-ro.left,right:Math.max(io,so)-ro.left,top:ao-(ro.top+to),bottom:Math.max(ao,lo)-(ro.top+to)}}function fullPixelRange(eo,to){let ro=eo.getBoundingClientRect();return{left:0,right:ro.right-ro.left,top:to,bottom:ro.bottom-(ro.top+to)}}class LineGap{constructor(to,ro,no){this.from=to,this.to=ro,this.size=no}static same(to,ro){if(to.length!=ro.length)return!1;for(let no=0;notypeof no!="function"&&no.class=="cm-lineWrapping");this.heightOracle=new HeightOracle(ro),this.stateDeco=to.facet(decorations).filter(no=>typeof no!="function"),this.heightMap=HeightMap.empty().applyChanges(this.stateDeco,Text$1.empty,this.heightOracle.setDoc(to.doc),[new ChangedRange(0,0,0,to.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Decoration.set(this.lineGaps.map(no=>no.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let to=[this.viewport],{main:ro}=this.state.selection;for(let no=0;no<=1;no++){let oo=no?ro.head:ro.anchor;if(!to.some(({from:io,to:so})=>oo>=io&&oo<=so)){let{from:io,to:so}=this.lineBlockAt(oo);to.push(new Viewport(io,so))}}this.viewports=to.sort((no,oo)=>no.from-oo.from),this.scaler=this.heightMap.height<=7e6?IdScaler:new BigScaler(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,to=>{this.viewportLines.push(this.scaler.scale==1?to:scaleBlock(to,this.scaler))})}update(to,ro=null){this.state=to.state;let no=this.stateDeco;this.stateDeco=this.state.facet(decorations).filter(co=>typeof co!="function");let oo=to.changedRanges,io=ChangedRange.extendWithRanges(oo,heightRelevantDecoChanges(no,this.stateDeco,to?to.changes:ChangeSet.empty(this.state.doc.length))),so=this.heightMap.height,ao=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,to.startState.doc,this.heightOracle.setDoc(this.state.doc),io),this.heightMap.height!=so&&(to.flags|=2),ao?(this.scrollAnchorPos=to.changes.mapPos(ao.from,-1),this.scrollAnchorHeight=ao.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let lo=io.length?this.mapViewport(this.viewport,to.changes):this.viewport;(ro&&(ro.range.headlo.to)||!this.viewportIsAppropriate(lo))&&(lo=this.getViewport(0,ro));let uo=!to.changes.empty||to.flags&2||lo.from!=this.viewport.from||lo.to!=this.viewport.to;this.viewport=lo,this.updateForViewport(),uo&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,to.changes))),to.flags|=this.computeVisibleRanges(),ro&&(this.scrollTarget=ro),!this.mustEnforceCursorAssoc&&to.selectionSet&&to.view.lineWrapping&&to.state.selection.main.empty&&to.state.selection.main.assoc&&!to.state.facet(nativeSelectionHidden)&&(this.mustEnforceCursorAssoc=!0)}measure(to){let ro=to.contentDOM,no=window.getComputedStyle(ro),oo=this.heightOracle,io=no.whiteSpace;this.defaultTextDirection=no.direction=="rtl"?Direction.RTL:Direction.LTR;let so=this.heightOracle.mustRefreshForWrapping(io),ao=ro.getBoundingClientRect(),lo=so||this.mustMeasureContent||this.contentDOMHeight!=ao.height;this.contentDOMHeight=ao.height,this.mustMeasureContent=!1;let uo=0,co=0;if(ao.width&&ao.height){let{scaleX:So,scaleY:To}=getScale(ro,ao);(So>.005&&Math.abs(this.scaleX-So)>.005||To>.005&&Math.abs(this.scaleY-To)>.005)&&(this.scaleX=So,this.scaleY=To,uo|=8,so=lo=!0)}let fo=(parseInt(no.paddingTop)||0)*this.scaleY,ho=(parseInt(no.paddingBottom)||0)*this.scaleY;(this.paddingTop!=fo||this.paddingBottom!=ho)&&(this.paddingTop=fo,this.paddingBottom=ho,uo|=10),this.editorWidth!=to.scrollDOM.clientWidth&&(oo.lineWrapping&&(lo=!0),this.editorWidth=to.scrollDOM.clientWidth,uo|=8);let po=to.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=po&&(this.scrollAnchorHeight=-1,this.scrollTop=po),this.scrolledToBottom=isScrolledToBottom(to.scrollDOM);let go=(this.printing?fullPixelRange:visiblePixelRange)(ro,this.paddingTop),vo=go.top-this.pixelViewport.top,bo=go.bottom-this.pixelViewport.bottom;this.pixelViewport=go;let xo=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(xo!=this.inView&&(this.inView=xo,xo&&(lo=!0)),!this.inView&&!this.scrollTarget)return 0;let _o=ao.width;if((this.contentDOMWidth!=_o||this.editorHeight!=to.scrollDOM.clientHeight)&&(this.contentDOMWidth=ao.width,this.editorHeight=to.scrollDOM.clientHeight,uo|=8),lo){let So=to.docView.measureVisibleLineHeights(this.viewport);if(oo.mustRefreshForHeights(So)&&(so=!0),so||oo.lineWrapping&&Math.abs(_o-this.contentDOMWidth)>oo.charWidth){let{lineHeight:To,charWidth:wo,textHeight:Co}=to.docView.measureTextSize();so=To>0&&oo.refresh(io,To,wo,Co,_o/wo,So),so&&(to.docView.minWidth=0,uo|=8)}vo>0&&bo>0?co=Math.max(vo,bo):vo<0&&bo<0&&(co=Math.min(vo,bo)),oo.heightChanged=!1;for(let To of this.viewports){let wo=To.from==this.viewport.from?So:to.docView.measureVisibleLineHeights(To);this.heightMap=(so?HeightMap.empty().applyChanges(this.stateDeco,Text$1.empty,this.heightOracle,[new ChangedRange(0,0,0,to.state.doc.length)]):this.heightMap).updateHeight(oo,0,so,new MeasuredHeights(To.from,wo))}oo.heightChanged&&(uo|=2)}let Eo=!this.viewportIsAppropriate(this.viewport,co)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return Eo&&(this.viewport=this.getViewport(co,this.scrollTarget)),this.updateForViewport(),(uo&2||Eo)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(so?[]:this.lineGaps,to)),uo|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,to.docView.enforceCursorAssoc()),uo}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(to,ro){let no=.5-Math.max(-.5,Math.min(.5,to/1e3/2)),oo=this.heightMap,io=this.heightOracle,{visibleTop:so,visibleBottom:ao}=this,lo=new Viewport(oo.lineAt(so-no*1e3,QueryType$1.ByHeight,io,0,0).from,oo.lineAt(ao+(1-no)*1e3,QueryType$1.ByHeight,io,0,0).to);if(ro){let{head:uo}=ro.range;if(uolo.to){let co=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),fo=oo.lineAt(uo,QueryType$1.ByPos,io,0,0),ho;ro.y=="center"?ho=(fo.top+fo.bottom)/2-co/2:ro.y=="start"||ro.y=="nearest"&&uo=ao+Math.max(10,Math.min(no,250)))&&oo>so-2*1e3&&io>1,so=oo<<1;if(this.defaultTextDirection!=Direction.LTR&&!no)return[];let ao=[],lo=(uo,co,fo,ho)=>{if(co-uouo&&bobo.from>=fo.from&&bo.to<=fo.to&&Math.abs(bo.from-uo)bo.fromxo));if(!vo){if(cobo.from<=co&&bo.to>=co)){let bo=ro.moveToLineBoundary(EditorSelection.cursor(co),!1,!0).head;bo>uo&&(co=bo)}vo=new LineGap(uo,co,this.gapSize(fo,uo,co,ho))}ao.push(vo)};for(let uo of this.viewportLines){if(uo.lengthuo.from&&lo(uo.from,ho,uo,co),poro.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let to=this.stateDeco;this.lineGaps.length&&(to=to.concat(this.lineGapDeco));let ro=[];RangeSet.spans(to,this.viewport.from,this.viewport.to,{span(oo,io){ro.push({from:oo,to:io})},point(){}},20);let no=ro.length!=this.visibleRanges.length||this.visibleRanges.some((oo,io)=>oo.from!=ro[io].from||oo.to!=ro[io].to);return this.visibleRanges=ro,no?4:0}lineBlockAt(to){return to>=this.viewport.from&&to<=this.viewport.to&&this.viewportLines.find(ro=>ro.from<=to&&ro.to>=to)||scaleBlock(this.heightMap.lineAt(to,QueryType$1.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(to){return scaleBlock(this.heightMap.lineAt(this.scaler.fromDOM(to),QueryType$1.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(to){let ro=this.lineBlockAtHeight(to+8);return ro.from>=this.viewport.from||this.viewportLines[0].top-to>200?ro:this.viewportLines[0]}elementAtHeight(to){return scaleBlock(this.heightMap.blockAt(this.scaler.fromDOM(to),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Viewport{constructor(to,ro){this.from=to,this.to=ro}}function lineStructure(eo,to,ro){let no=[],oo=eo,io=0;return RangeSet.spans(ro,eo,to,{span(){},point(so,ao){so>oo&&(no.push({from:oo,to:so}),io+=so-oo),oo=ao}},20),oo=1)return to[to.length-1].to;let no=Math.floor(eo*ro);for(let oo=0;;oo++){let{from:io,to:so}=to[oo],ao=so-io;if(no<=ao)return io+no;no-=ao}}function findFraction(eo,to){let ro=0;for(let{from:no,to:oo}of eo.ranges){if(to<=oo){ro+=to-no;break}ro+=oo-no}return ro/eo.total}function find(eo,to){for(let ro of eo)if(to(ro))return ro}const IdScaler={toDOM(eo){return eo},fromDOM(eo){return eo},scale:1};class BigScaler{constructor(to,ro,no){let oo=0,io=0,so=0;this.viewports=no.map(({from:ao,to:lo})=>{let uo=ro.lineAt(ao,QueryType$1.ByPos,to,0,0).top,co=ro.lineAt(lo,QueryType$1.ByPos,to,0,0).bottom;return oo+=co-uo,{from:ao,to:lo,top:uo,bottom:co,domTop:0,domBottom:0}}),this.scale=(7e6-oo)/(ro.height-oo);for(let ao of this.viewports)ao.domTop=so+(ao.top-io)*this.scale,so=ao.domBottom=ao.domTop+(ao.bottom-ao.top),io=ao.bottom}toDOM(to){for(let ro=0,no=0,oo=0;;ro++){let io=roscaleBlock(oo,to)):eo._content)}const theme=Facet.define({combine:eo=>eo.join(" ")}),darkTheme=Facet.define({combine:eo=>eo.indexOf(!0)>-1}),baseThemeID=StyleModule.newName(),baseLightID=StyleModule.newName(),baseDarkID=StyleModule.newName(),lightDarkIDs={"&light":"."+baseLightID,"&dark":"."+baseDarkID};function buildTheme(eo,to,ro){return new StyleModule(to,{finish(no){return/&/.test(no)?no.replace(/&\w*/,oo=>{if(oo=="&")return eo;if(!ro||!ro[oo])throw new RangeError(`Unsupported selector: ${oo}`);return ro[oo]}):eo+" "+no}})}const baseTheme$1$2=buildTheme("."+baseThemeID,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},lightDarkIDs),LineBreakPlaceholder="￿";class DOMReader{constructor(to,ro){this.points=to,this.text="",this.lineSeparator=ro.facet(EditorState.lineSeparator)}append(to){this.text+=to}lineBreak(){this.text+=LineBreakPlaceholder}readRange(to,ro){if(!to)return this;let no=to.parentNode;for(let oo=to;;){this.findPointBefore(no,oo);let io=this.text.length;this.readNode(oo);let so=oo.nextSibling;if(so==ro)break;let ao=ContentView.get(oo),lo=ContentView.get(so);(ao&&lo?ao.breakAfter:(ao?ao.breakAfter:isBlockElement(oo))||isBlockElement(so)&&(oo.nodeName!="BR"||oo.cmIgnore)&&this.text.length>io)&&this.lineBreak(),oo=so}return this.findPointBefore(no,ro),this}readTextNode(to){let ro=to.nodeValue;for(let no of this.points)no.node==to&&(no.pos=this.text.length+Math.min(no.offset,ro.length));for(let no=0,oo=this.lineSeparator?null:/\r\n?|\n/g;;){let io=-1,so=1,ao;if(this.lineSeparator?(io=ro.indexOf(this.lineSeparator,no),so=this.lineSeparator.length):(ao=oo.exec(ro))&&(io=ao.index,so=ao[0].length),this.append(ro.slice(no,io<0?ro.length:io)),io<0)break;if(this.lineBreak(),so>1)for(let lo of this.points)lo.node==to&&lo.pos>this.text.length&&(lo.pos-=so-1);no=io+so}}readNode(to){if(to.cmIgnore)return;let ro=ContentView.get(to),no=ro&&ro.overrideDOMText;if(no!=null){this.findPointInside(to,no.length);for(let oo=no.iter();!oo.next().done;)oo.lineBreak?this.lineBreak():this.append(oo.value)}else to.nodeType==3?this.readTextNode(to):to.nodeName=="BR"?to.nextSibling&&this.lineBreak():to.nodeType==1&&this.readRange(to.firstChild,null)}findPointBefore(to,ro){for(let no of this.points)no.node==to&&to.childNodes[no.offset]==ro&&(no.pos=this.text.length)}findPointInside(to,ro){for(let no of this.points)(to.nodeType==3?no.node==to:to.contains(no.node))&&(no.pos=this.text.length+(isAtEnd(to,no.node,no.offset)?ro:0))}}function isAtEnd(eo,to,ro){for(;;){if(!to||ro-1)this.newSel=null;else if(ro>-1&&(this.bounds=to.docView.domBoundsAround(ro,no,0))){let ao=io||so?[]:selectionPoints(to),lo=new DOMReader(ao,to.state);lo.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=lo.text,this.newSel=selectionFromPoints(ao,this.bounds.from)}else{let ao=to.observer.selectionRange,lo=io&&io.node==ao.focusNode&&io.offset==ao.focusOffset||!contains(to.contentDOM,ao.focusNode)?to.state.selection.main.head:to.docView.posFromDOM(ao.focusNode,ao.focusOffset),uo=so&&so.node==ao.anchorNode&&so.offset==ao.anchorOffset||!contains(to.contentDOM,ao.anchorNode)?to.state.selection.main.anchor:to.docView.posFromDOM(ao.anchorNode,ao.anchorOffset),co=to.viewport;if((browser.ios||browser.chrome)&&to.state.selection.main.empty&&lo!=uo&&(co.from>0||co.toDate.now()-100?eo.inputState.lastKeyCode:-1;if(to.bounds){let{from:so,to:ao}=to.bounds,lo=oo.from,uo=null;(io===8||browser.android&&to.text.length=oo.from&&ro.to<=oo.to&&(ro.from!=oo.from||ro.to!=oo.to)&&oo.to-oo.from-(ro.to-ro.from)<=4?ro={from:oo.from,to:oo.to,insert:eo.state.doc.slice(oo.from,ro.from).append(ro.insert).append(eo.state.doc.slice(ro.to,oo.to))}:(browser.mac||browser.android)&&ro&&ro.from==ro.to&&ro.from==oo.head-1&&/^\. ?$/.test(ro.insert.toString())&&eo.contentDOM.getAttribute("autocorrect")=="off"?(no&&ro.insert.length==2&&(no=EditorSelection.single(no.main.anchor-1,no.main.head-1)),ro={from:oo.from,to:oo.to,insert:Text$1.of([" "])}):browser.chrome&&ro&&ro.from==ro.to&&ro.from==oo.head&&ro.insert.toString()==` + `&&eo.lineWrapping&&(no&&(no=EditorSelection.single(no.main.anchor-1,no.main.head-1)),ro={from:oo.from,to:oo.to,insert:Text$1.of([" "])}),ro){if(browser.ios&&eo.inputState.flushIOSKey(ro)||browser.android&&(ro.to==oo.to&&(ro.from==oo.from||ro.from==oo.from-1&&eo.state.sliceDoc(ro.from,oo.from)==" ")&&ro.insert.length==1&&ro.insert.lines==2&&dispatchKey(eo.contentDOM,"Enter",13)||(ro.from==oo.from-1&&ro.to==oo.to&&ro.insert.length==0||io==8&&ro.insert.lengthoo.head)&&dispatchKey(eo.contentDOM,"Backspace",8)||ro.from==oo.from&&ro.to==oo.to+1&&ro.insert.length==0&&dispatchKey(eo.contentDOM,"Delete",46)))return!0;let so=ro.insert.toString();eo.inputState.composing>=0&&eo.inputState.composing++;let ao,lo=()=>ao||(ao=applyDefaultInsert(eo,ro,no));return eo.state.facet(inputHandler$1).some(uo=>uo(eo,ro.from,ro.to,so,lo))||eo.dispatch(lo()),!0}else if(no&&!no.main.eq(oo)){let so=!1,ao="select";return eo.inputState.lastSelectionTime>Date.now()-50&&(eo.inputState.lastSelectionOrigin=="select"&&(so=!0),ao=eo.inputState.lastSelectionOrigin),eo.dispatch({selection:no,scrollIntoView:so,userEvent:ao}),!0}else return!1}function applyDefaultInsert(eo,to,ro){let no,oo=eo.state,io=oo.selection.main;if(to.from>=io.from&&to.to<=io.to&&to.to-to.from>=(io.to-io.from)/3&&(!ro||ro.main.empty&&ro.main.from==to.from+to.insert.length)&&eo.inputState.composing<0){let ao=io.fromto.to?oo.sliceDoc(to.to,io.to):"";no=oo.replaceSelection(eo.state.toText(ao+to.insert.sliceString(0,void 0,eo.state.lineBreak)+lo))}else{let ao=oo.changes(to),lo=ro&&ro.main.to<=ao.newLength?ro.main:void 0;if(oo.selection.ranges.length>1&&eo.inputState.composing>=0&&to.to<=io.to&&to.to>=io.to-10){let uo=eo.state.sliceDoc(to.from,to.to),co,fo=ro&&findCompositionNode(eo,ro.main.head);if(fo){let go=to.insert.length-(to.to-to.from);co={from:fo.from,to:fo.to-go}}else co=eo.state.doc.lineAt(io.head);let ho=io.to-to.to,po=io.to-io.from;no=oo.changeByRange(go=>{if(go.from==io.from&&go.to==io.to)return{changes:ao,range:lo||go.map(ao)};let vo=go.to-ho,bo=vo-uo.length;if(go.to-go.from!=po||eo.state.sliceDoc(bo,vo)!=uo||go.to>=co.from&&go.from<=co.to)return{range:go};let xo=oo.changes({from:bo,to:vo,insert:to.insert}),_o=go.to-io.to;return{changes:xo,range:lo?EditorSelection.range(Math.max(0,lo.anchor+_o),Math.max(0,lo.head+_o)):go.map(xo)}})}else no={changes:ao,selection:lo&&oo.selection.replaceRange(lo)}}let so="input.type";return(eo.composing||eo.inputState.compositionPendingChange&&eo.inputState.compositionEndedAt>Date.now()-50)&&(eo.inputState.compositionPendingChange=!1,so+=".compose",eo.inputState.compositionFirstChange&&(so+=".start",eo.inputState.compositionFirstChange=!1)),oo.update(no,{userEvent:so,scrollIntoView:!0})}function findDiff(eo,to,ro,no){let oo=Math.min(eo.length,to.length),io=0;for(;io0&&ao>0&&eo.charCodeAt(so-1)==to.charCodeAt(ao-1);)so--,ao--;if(no=="end"){let lo=Math.max(0,io-Math.min(so,ao));ro-=so+lo-io}if(so=so?io-ro:0;io-=lo,ao=io+(ao-so),so=io}else if(ao=ao?io-ro:0;io-=lo,so=io+(so-ao),ao=io}return{from:io,toA:so,toB:ao}}function selectionPoints(eo){let to=[];if(eo.root.activeElement!=eo.contentDOM)return to;let{anchorNode:ro,anchorOffset:no,focusNode:oo,focusOffset:io}=eo.observer.selectionRange;return ro&&(to.push(new DOMPoint(ro,no)),(oo!=ro||io!=no)&&to.push(new DOMPoint(oo,io))),to}function selectionFromPoints(eo,to){if(eo.length==0)return null;let ro=eo[0].pos,no=eo.length==2?eo[1].pos:ro;return ro>-1&&no>-1?EditorSelection.single(ro+to,no+to):null}const observeOptions={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},useCharData=browser.ie&&browser.ie_version<=11;class DOMObserver{constructor(to){this.view=to,this.active=!1,this.selectionRange=new DOMSelectionState,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=to.contentDOM,this.observer=new MutationObserver(ro=>{for(let no of ro)this.queue.push(no);(browser.ie&&browser.ie_version<=11||browser.ios&&to.composing)&&ro.some(no=>no.type=="childList"&&no.removedNodes.length||no.type=="characterData"&&no.oldValue.length>no.target.nodeValue.length)?this.flushSoon():this.flush()}),useCharData&&(this.onCharData=ro=>{this.queue.push({target:ro.target,type:"characterData",oldValue:ro.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var ro;((ro=this.view.docView)===null||ro===void 0?void 0:ro.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),ro.length>0&&ro[ro.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(ro=>{ro.length>0&&ro[ro.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(to){this.view.inputState.runHandlers("scroll",to),this.intersecting&&this.view.measure()}onScroll(to){this.intersecting&&this.flush(!1),this.onScrollChanged(to)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(to){to.type=="change"&&!to.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(to){if(this.gapIntersection&&(to.length!=this.gaps.length||this.gaps.some((ro,no)=>ro!=to[no]))){this.gapIntersection.disconnect();for(let ro of to)this.gapIntersection.observe(ro);this.gaps=to}}onSelectionChange(to){let ro=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:no}=this,oo=this.selectionRange;if(no.state.facet(editable)?no.root.activeElement!=this.dom:!hasSelection(no.dom,oo))return;let io=oo.anchorNode&&no.docView.nearest(oo.anchorNode);if(io&&io.ignoreEvent(to)){ro||(this.selectionChanged=!1);return}(browser.ie&&browser.ie_version<=11||browser.android&&browser.chrome)&&!no.state.selection.main.empty&&oo.focusNode&&isEquivalentPosition(oo.focusNode,oo.focusOffset,oo.anchorNode,oo.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:to}=this,ro=browser.safari&&to.root.nodeType==11&&deepActiveElement(this.dom.ownerDocument)==this.dom&&safariSelectionRangeHack(this.view)||getSelection(to.root);if(!ro||this.selectionRange.eq(ro))return!1;let no=hasSelection(this.dom,ro);return no&&!this.selectionChanged&&to.inputState.lastFocusTime>Date.now()-200&&to.inputState.lastTouchTime{let io=this.delayedAndroidKey;io&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=io.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&io.force&&dispatchKey(this.dom,io.key,io.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(oo)}(!this.delayedAndroidKey||to=="Enter")&&(this.delayedAndroidKey={key:to,keyCode:ro,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let to of this.observer.takeRecords())this.queue.push(to);return this.queue}processRecords(){let to=this.pendingRecords();to.length&&(this.queue=[]);let ro=-1,no=-1,oo=!1;for(let io of to){let so=this.readMutation(io);so&&(so.typeOver&&(oo=!0),ro==-1?{from:ro,to:no}=so:(ro=Math.min(so.from,ro),no=Math.max(so.to,no)))}return{from:ro,to:no,typeOver:oo}}readChange(){let{from:to,to:ro,typeOver:no}=this.processRecords(),oo=this.selectionChanged&&hasSelection(this.dom,this.selectionRange);if(to<0&&!oo)return null;to>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let io=new DOMChange(this.view,to,ro,no);return this.view.docView.domChanged={newSel:io.newSel?io.newSel.main:null},io}flush(to=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;to&&this.readSelectionRange();let ro=this.readChange();if(!ro)return this.view.requestMeasure(),!1;let no=this.view.state,oo=applyDOMChange(this.view,ro);return this.view.state==no&&this.view.update([]),oo}readMutation(to){let ro=this.view.docView.nearest(to.target);if(!ro||ro.ignoreMutation(to))return null;if(ro.markDirty(to.type=="attributes"),to.type=="attributes"&&(ro.flags|=4),to.type=="childList"){let no=findChild(ro,to.previousSibling||to.target.previousSibling,-1),oo=findChild(ro,to.nextSibling||to.target.nextSibling,1);return{from:no?ro.posAfter(no):ro.posAtStart,to:oo?ro.posBefore(oo):ro.posAtEnd,typeOver:!1}}else return to.type=="characterData"?{from:ro.posAtStart,to:ro.posAtEnd,typeOver:to.target.nodeValue==to.oldValue}:null}setWindow(to){to!=this.win&&(this.removeWindowListeners(this.win),this.win=to,this.addWindowListeners(this.win))}addWindowListeners(to){to.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener("change",this.onPrint):to.addEventListener("beforeprint",this.onPrint),to.addEventListener("scroll",this.onScroll),to.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(to){to.removeEventListener("scroll",this.onScroll),to.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener("change",this.onPrint):to.removeEventListener("beforeprint",this.onPrint),to.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var to,ro,no;this.stop(),(to=this.intersection)===null||to===void 0||to.disconnect(),(ro=this.gapIntersection)===null||ro===void 0||ro.disconnect(),(no=this.resizeScroll)===null||no===void 0||no.disconnect();for(let oo of this.scrollTargets)oo.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function findChild(eo,to,ro){for(;to;){let no=ContentView.get(to);if(no&&no.parent==eo)return no;let oo=to.parentNode;to=oo!=eo.dom?oo:ro>0?to.nextSibling:to.previousSibling}return null}function safariSelectionRangeHack(eo){let to=null;function ro(lo){lo.preventDefault(),lo.stopImmediatePropagation(),to=lo.getTargetRanges()[0]}if(eo.contentDOM.addEventListener("beforeinput",ro,!0),eo.dom.ownerDocument.execCommand("indent"),eo.contentDOM.removeEventListener("beforeinput",ro,!0),!to)return null;let no=to.startContainer,oo=to.startOffset,io=to.endContainer,so=to.endOffset,ao=eo.docView.domAtPos(eo.state.selection.main.anchor);return isEquivalentPosition(ao.node,ao.offset,io,so)&&([no,oo,io,so]=[io,so,no,oo]),{anchorNode:no,anchorOffset:oo,focusNode:io,focusOffset:so}}class EditorView{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(to={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),to.parent&&to.parent.appendChild(this.dom);let{dispatch:ro}=to;this.dispatchTransactions=to.dispatchTransactions||ro&&(no=>no.forEach(oo=>ro(oo,this)))||(no=>this.update(no)),this.dispatch=this.dispatch.bind(this),this._root=to.root||getRoot(to.parent)||document,this.viewState=new ViewState(to.state||EditorState.create(to)),to.scrollTo&&to.scrollTo.is(scrollIntoView$1)&&(this.viewState.scrollTarget=to.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(viewPlugin).map(no=>new PluginInstance(no));for(let no of this.plugins)no.update(this);this.observer=new DOMObserver(this),this.inputState=new InputState(this),this.inputState.ensureHandlers(this.plugins),this.docView=new DocView(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...to){let ro=to.length==1&&to[0]instanceof Transaction?to:to.length==1&&Array.isArray(to[0])?to[0]:[this.state.update(...to)];this.dispatchTransactions(ro,this)}update(to){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let ro=!1,no=!1,oo,io=this.state;for(let ho of to){if(ho.startState!=io)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");io=ho.state}if(this.destroyed){this.viewState.state=io;return}let so=this.hasFocus,ao=0,lo=null;to.some(ho=>ho.annotation(isFocusChange))?(this.inputState.notifiedFocused=so,ao=1):so!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=so,lo=focusChangeTransaction(io,so),lo||(ao=1));let uo=this.observer.delayedAndroidKey,co=null;if(uo?(this.observer.clearDelayedAndroidKey(),co=this.observer.readChange(),(co&&!this.state.doc.eq(io.doc)||!this.state.selection.eq(io.selection))&&(co=null)):this.observer.clear(),io.facet(EditorState.phrases)!=this.state.facet(EditorState.phrases))return this.setState(io);oo=ViewUpdate.create(this,io,to),oo.flags|=ao;let fo=this.viewState.scrollTarget;try{this.updateState=2;for(let ho of to){if(fo&&(fo=fo.map(ho.changes)),ho.scrollIntoView){let{main:po}=ho.state.selection;fo=new ScrollTarget(po.empty?po:EditorSelection.cursor(po.head,po.head>po.anchor?-1:1))}for(let po of ho.effects)po.is(scrollIntoView$1)&&(fo=po.value.clip(this.state))}this.viewState.update(oo,fo),this.bidiCache=CachedOrder.update(this.bidiCache,oo.changes),oo.empty||(this.updatePlugins(oo),this.inputState.update(oo)),ro=this.docView.update(oo),this.state.facet(styleModule)!=this.styleModules&&this.mountStyles(),no=this.updateAttrs(),this.showAnnouncements(to),this.docView.updateSelection(ro,to.some(ho=>ho.isUserEvent("select.pointer")))}finally{this.updateState=0}if(oo.startState.facet(theme)!=oo.state.facet(theme)&&(this.viewState.mustMeasureContent=!0),(ro||no||fo||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),ro&&this.docViewUpdate(),!oo.empty)for(let ho of this.state.facet(updateListener))try{ho(oo)}catch(po){logException(this.state,po,"update listener")}(lo||co)&&Promise.resolve().then(()=>{lo&&this.state==lo.startState&&this.dispatch(lo),co&&!applyDOMChange(this,co)&&uo.force&&dispatchKey(this.contentDOM,uo.key,uo.keyCode)})}setState(to){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=to;return}this.updateState=2;let ro=this.hasFocus;try{for(let no of this.plugins)no.destroy(this);this.viewState=new ViewState(to),this.plugins=to.facet(viewPlugin).map(no=>new PluginInstance(no)),this.pluginMap.clear();for(let no of this.plugins)no.update(this);this.docView.destroy(),this.docView=new DocView(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}ro&&this.focus(),this.requestMeasure()}updatePlugins(to){let ro=to.startState.facet(viewPlugin),no=to.state.facet(viewPlugin);if(ro!=no){let oo=[];for(let io of no){let so=ro.indexOf(io);if(so<0)oo.push(new PluginInstance(io));else{let ao=this.plugins[so];ao.mustUpdate=to,oo.push(ao)}}for(let io of this.plugins)io.mustUpdate!=to&&io.destroy(this);this.plugins=oo,this.pluginMap.clear()}else for(let oo of this.plugins)oo.mustUpdate=to;for(let oo=0;oo-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,to&&this.observer.forceFlush();let ro=null,no=this.scrollDOM,oo=no.scrollTop*this.scaleY,{scrollAnchorPos:io,scrollAnchorHeight:so}=this.viewState;Math.abs(oo-this.viewState.scrollTop)>1&&(so=-1),this.viewState.scrollAnchorHeight=-1;try{for(let ao=0;;ao++){if(so<0)if(isScrolledToBottom(no))io=-1,so=this.viewState.heightMap.height;else{let po=this.viewState.scrollAnchorAt(oo);io=po.from,so=po.top}this.updateState=1;let lo=this.viewState.measure(this);if(!lo&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(ao>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let uo=[];lo&4||([this.measureRequests,uo]=[uo,this.measureRequests]);let co=uo.map(po=>{try{return po.read(this)}catch(go){return logException(this.state,go),BadMeasure}}),fo=ViewUpdate.create(this,this.state,[]),ho=!1;fo.flags|=lo,ro?ro.flags|=lo:ro=fo,this.updateState=2,fo.empty||(this.updatePlugins(fo),this.inputState.update(fo),this.updateAttrs(),ho=this.docView.update(fo),ho&&this.docViewUpdate());for(let po=0;po1||go<-1){oo=oo+go,no.scrollTop=oo/this.scaleY,so=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(ro&&!ro.empty)for(let ao of this.state.facet(updateListener))ao(ro)}get themeClasses(){return baseThemeID+" "+(this.state.facet(darkTheme)?baseDarkID:baseLightID)+" "+this.state.facet(theme)}updateAttrs(){let to=attrsFromFacet(this,editorAttributes,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),ro={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(editable)?"true":"false",class:"cm-content",style:`${browser.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(ro["aria-readonly"]="true"),attrsFromFacet(this,contentAttributes,ro);let no=this.observer.ignore(()=>{let oo=updateAttrs(this.contentDOM,this.contentAttrs,ro),io=updateAttrs(this.dom,this.editorAttrs,to);return oo||io});return this.editorAttrs=to,this.contentAttrs=ro,no}showAnnouncements(to){let ro=!0;for(let no of to)for(let oo of no.effects)if(oo.is(EditorView.announce)){ro&&(this.announceDOM.textContent=""),ro=!1;let io=this.announceDOM.appendChild(document.createElement("div"));io.textContent=oo.value}}mountStyles(){this.styleModules=this.state.facet(styleModule);let to=this.state.facet(EditorView.cspNonce);StyleModule.mount(this.root,this.styleModules.concat(baseTheme$1$2).reverse(),to?{nonce:to}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(to){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),to){if(this.measureRequests.indexOf(to)>-1)return;if(to.key!=null){for(let ro=0;rono.spec==to)||null),ro&&ro.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(to){return this.readMeasured(),this.viewState.elementAtHeight(to)}lineBlockAtHeight(to){return this.readMeasured(),this.viewState.lineBlockAtHeight(to)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(to){return this.viewState.lineBlockAt(to)}get contentHeight(){return this.viewState.contentHeight}moveByChar(to,ro,no){return skipAtoms(this,to,moveByChar(this,to,ro,no))}moveByGroup(to,ro){return skipAtoms(this,to,moveByChar(this,to,ro,no=>byGroup(this,to.head,no)))}visualLineSide(to,ro){let no=this.bidiSpans(to),oo=this.textDirectionAt(to.from),io=no[ro?no.length-1:0];return EditorSelection.cursor(io.side(ro,oo)+to.from,io.forward(!ro,oo)?1:-1)}moveToLineBoundary(to,ro,no=!0){return moveToLineBoundary(this,to,ro,no)}moveVertically(to,ro,no){return skipAtoms(this,to,moveVertically(this,to,ro,no))}domAtPos(to){return this.docView.domAtPos(to)}posAtDOM(to,ro=0){return this.docView.posFromDOM(to,ro)}posAtCoords(to,ro=!0){return this.readMeasured(),posAtCoords(this,to,ro)}coordsAtPos(to,ro=1){this.readMeasured();let no=this.docView.coordsAt(to,ro);if(!no||no.left==no.right)return no;let oo=this.state.doc.lineAt(to),io=this.bidiSpans(oo),so=io[BidiSpan.find(io,to-oo.from,-1,ro)];return flattenRect(no,so.dir==Direction.LTR==ro>0)}coordsForChar(to){return this.readMeasured(),this.docView.coordsForChar(to)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(to){return!this.state.facet(perLineTextDirection)||tothis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(to))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(to){if(to.length>MaxBidiLine)return trivialOrder(to.length);let ro=this.textDirectionAt(to.from),no;for(let io of this.bidiCache)if(io.from==to.from&&io.dir==ro&&(io.fresh||isolatesEq(io.isolates,no=getIsolatedRanges(this,to))))return io.order;no||(no=getIsolatedRanges(this,to));let oo=computeOrder(to.text,ro,no);return this.bidiCache.push(new CachedOrder(to.from,to.to,ro,no,!0,oo)),oo}get hasFocus(){var to;return(this.dom.ownerDocument.hasFocus()||browser.safari&&((to=this.inputState)===null||to===void 0?void 0:to.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{focusPreventScroll(this.contentDOM),this.docView.updateSelection()})}setRoot(to){this._root!=to&&(this._root=to,this.observer.setWindow((to.nodeType==9?to:to.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let to of this.plugins)to.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(to,ro={}){return scrollIntoView$1.of(new ScrollTarget(typeof to=="number"?EditorSelection.cursor(to):to,ro.y,ro.x,ro.yMargin,ro.xMargin))}scrollSnapshot(){let{scrollTop:to,scrollLeft:ro}=this.scrollDOM,no=this.viewState.scrollAnchorAt(to);return scrollIntoView$1.of(new ScrollTarget(EditorSelection.cursor(no.from),"start","start",no.top-to,ro,!0))}static domEventHandlers(to){return ViewPlugin.define(()=>({}),{eventHandlers:to})}static domEventObservers(to){return ViewPlugin.define(()=>({}),{eventObservers:to})}static theme(to,ro){let no=StyleModule.newName(),oo=[theme.of(no),styleModule.of(buildTheme(`.${no}`,to))];return ro&&ro.dark&&oo.push(darkTheme.of(!0)),oo}static baseTheme(to){return Prec.lowest(styleModule.of(buildTheme("."+baseThemeID,to,lightDarkIDs)))}static findFromDOM(to){var ro;let no=to.querySelector(".cm-content"),oo=no&&ContentView.get(no)||ContentView.get(to);return((ro=oo==null?void 0:oo.rootView)===null||ro===void 0?void 0:ro.view)||null}}EditorView.styleModule=styleModule;EditorView.inputHandler=inputHandler$1;EditorView.scrollHandler=scrollHandler;EditorView.focusChangeEffect=focusChangeEffect;EditorView.perLineTextDirection=perLineTextDirection;EditorView.exceptionSink=exceptionSink;EditorView.updateListener=updateListener;EditorView.editable=editable;EditorView.mouseSelectionStyle=mouseSelectionStyle;EditorView.dragMovesSelection=dragMovesSelection$1;EditorView.clickAddsSelectionRange=clickAddsSelectionRange;EditorView.decorations=decorations;EditorView.outerDecorations=outerDecorations;EditorView.atomicRanges=atomicRanges;EditorView.bidiIsolatedRanges=bidiIsolatedRanges;EditorView.scrollMargins=scrollMargins;EditorView.darkTheme=darkTheme;EditorView.cspNonce=Facet.define({combine:eo=>eo.length?eo[0]:""});EditorView.contentAttributes=contentAttributes;EditorView.editorAttributes=editorAttributes;EditorView.lineWrapping=EditorView.contentAttributes.of({class:"cm-lineWrapping"});EditorView.announce=StateEffect.define();const MaxBidiLine=4096,BadMeasure={};class CachedOrder{constructor(to,ro,no,oo,io,so){this.from=to,this.to=ro,this.dir=no,this.isolates=oo,this.fresh=io,this.order=so}static update(to,ro){if(ro.empty&&!to.some(io=>io.fresh))return to;let no=[],oo=to.length?to[to.length-1].dir:Direction.LTR;for(let io=Math.max(0,to.length-10);io=0;oo--){let io=no[oo],so=typeof io=="function"?io(eo):io;so&&combineAttrs(so,ro)}return ro}const currentPlatform=browser.mac?"mac":browser.windows?"win":browser.linux?"linux":"key";function normalizeKeyName(eo,to){const ro=eo.split(/-(?!$)/);let no=ro[ro.length-1];no=="Space"&&(no=" ");let oo,io,so,ao;for(let lo=0;lono.concat(oo),[]))),ro}function runScopeHandlers(eo,to,ro){return runHandlers(getKeymap(eo.state),to,eo,ro)}let storedPrefix=null;const PrefixTimeout=4e3;function buildKeymap(eo,to=currentPlatform){let ro=Object.create(null),no=Object.create(null),oo=(so,ao)=>{let lo=no[so];if(lo==null)no[so]=ao;else if(lo!=ao)throw new Error("Key binding "+so+" is used both as a regular binding and as a multi-stroke prefix")},io=(so,ao,lo,uo,co)=>{var fo,ho;let po=ro[so]||(ro[so]=Object.create(null)),go=ao.split(/ (?!$)/).map(xo=>normalizeKeyName(xo,to));for(let xo=1;xo{let So=storedPrefix={view:Eo,prefix:_o,scope:so};return setTimeout(()=>{storedPrefix==So&&(storedPrefix=null)},PrefixTimeout),!0}]})}let vo=go.join(" ");oo(vo,!1);let bo=po[vo]||(po[vo]={preventDefault:!1,stopPropagation:!1,run:((ho=(fo=po._any)===null||fo===void 0?void 0:fo.run)===null||ho===void 0?void 0:ho.slice())||[]});lo&&bo.run.push(lo),uo&&(bo.preventDefault=!0),co&&(bo.stopPropagation=!0)};for(let so of eo){let ao=so.scope?so.scope.split(" "):["editor"];if(so.any)for(let uo of ao){let co=ro[uo]||(ro[uo]=Object.create(null));co._any||(co._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let fo in co)co[fo].run.push(so.any)}let lo=so[to]||so.key;if(lo)for(let uo of ao)io(uo,lo,so.run,so.preventDefault,so.stopPropagation),so.shift&&io(uo,"Shift-"+lo,so.shift,so.preventDefault,so.stopPropagation)}return ro}function runHandlers(eo,to,ro,no){let oo=keyName(to),io=codePointAt(oo,0),so=codePointSize(io)==oo.length&&oo!=" ",ao="",lo=!1,uo=!1,co=!1;storedPrefix&&storedPrefix.view==ro&&storedPrefix.scope==no&&(ao=storedPrefix.prefix+" ",modifierCodes.indexOf(to.keyCode)<0&&(uo=!0,storedPrefix=null));let fo=new Set,ho=bo=>{if(bo){for(let xo of bo.run)if(!fo.has(xo)&&(fo.add(xo),xo(ro,to)))return bo.stopPropagation&&(co=!0),!0;bo.preventDefault&&(bo.stopPropagation&&(co=!0),uo=!0)}return!1},po=eo[no],go,vo;return po&&(ho(po[ao+modifiers(oo,to,!so)])?lo=!0:so&&(to.altKey||to.metaKey||to.ctrlKey)&&!(browser.windows&&to.ctrlKey&&to.altKey)&&(go=base[to.keyCode])&&go!=oo?(ho(po[ao+modifiers(go,to,!0)])||to.shiftKey&&(vo=shift[to.keyCode])!=oo&&vo!=go&&ho(po[ao+modifiers(vo,to,!1)]))&&(lo=!0):so&&to.shiftKey&&ho(po[ao+modifiers(oo,to,!0)])&&(lo=!0),!lo&&ho(po._any)&&(lo=!0)),uo&&(lo=!0),lo&&co&&to.stopPropagation(),lo}class RectangleMarker{constructor(to,ro,no,oo,io){this.className=to,this.left=ro,this.top=no,this.width=oo,this.height=io}draw(){let to=document.createElement("div");return to.className=this.className,this.adjust(to),to}update(to,ro){return ro.className!=this.className?!1:(this.adjust(to),!0)}adjust(to){to.style.left=this.left+"px",to.style.top=this.top+"px",this.width!=null&&(to.style.width=this.width+"px"),to.style.height=this.height+"px"}eq(to){return this.left==to.left&&this.top==to.top&&this.width==to.width&&this.height==to.height&&this.className==to.className}static forRange(to,ro,no){if(no.empty){let oo=to.coordsAtPos(no.head,no.assoc||1);if(!oo)return[];let io=getBase(to);return[new RectangleMarker(ro,oo.left-io.left,oo.top-io.top,null,oo.bottom-oo.top)]}else return rectanglesForRange(to,ro,no)}}function getBase(eo){let to=eo.scrollDOM.getBoundingClientRect();return{left:(eo.textDirection==Direction.LTR?to.left:to.right-eo.scrollDOM.clientWidth*eo.scaleX)-eo.scrollDOM.scrollLeft*eo.scaleX,top:to.top-eo.scrollDOM.scrollTop*eo.scaleY}}function wrappedLine(eo,to,ro){let no=EditorSelection.cursor(to);return{from:Math.max(ro.from,eo.moveToLineBoundary(no,!1,!0).from),to:Math.min(ro.to,eo.moveToLineBoundary(no,!0,!0).from),type:BlockType.Text}}function rectanglesForRange(eo,to,ro){if(ro.to<=eo.viewport.from||ro.from>=eo.viewport.to)return[];let no=Math.max(ro.from,eo.viewport.from),oo=Math.min(ro.to,eo.viewport.to),io=eo.textDirection==Direction.LTR,so=eo.contentDOM,ao=so.getBoundingClientRect(),lo=getBase(eo),uo=so.querySelector(".cm-line"),co=uo&&window.getComputedStyle(uo),fo=ao.left+(co?parseInt(co.paddingLeft)+Math.min(0,parseInt(co.textIndent)):0),ho=ao.right-(co?parseInt(co.paddingRight):0),po=blockAt(eo,no),go=blockAt(eo,oo),vo=po.type==BlockType.Text?po:null,bo=go.type==BlockType.Text?go:null;if(vo&&(eo.lineWrapping||po.widgetLineBreaks)&&(vo=wrappedLine(eo,no,vo)),bo&&(eo.lineWrapping||go.widgetLineBreaks)&&(bo=wrappedLine(eo,oo,bo)),vo&&bo&&vo.from==bo.from)return _o(Eo(ro.from,ro.to,vo));{let To=vo?Eo(ro.from,null,vo):So(po,!1),wo=bo?Eo(null,ro.to,bo):So(go,!0),Co=[];return(vo||po).to<(bo||go).from-(vo&&bo?1:0)||po.widgetLineBreaks>1&&To.bottom+eo.defaultLineHeight/2Mo&&jo.from=$o)break;Uo>Fo&&No(Math.max(qo,Fo),To==null&&qo<=Mo,Math.min(Uo,$o),wo==null&&Uo>=Do,Ho.dir)}if(Fo=Lo.to+1,Fo>=$o)break}return Ro.length==0&&No(Mo,To==null,Do,wo==null,eo.textDirection),{top:Oo,bottom:Ao,horizontal:Ro}}function So(To,wo){let Co=ao.top+(wo?To.top:To.bottom);return{top:Co,bottom:Co,horizontal:[]}}}function sameMarker(eo,to){return eo.constructor==to.constructor&&eo.eq(to)}class LayerView{constructor(to,ro){this.view=to,this.layer=ro,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=to.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),ro.above&&this.dom.classList.add("cm-layer-above"),ro.class&&this.dom.classList.add(ro.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(to.state),to.requestMeasure(this.measureReq),ro.mount&&ro.mount(this.dom,to)}update(to){to.startState.facet(layerOrder)!=to.state.facet(layerOrder)&&this.setOrder(to.state),(this.layer.update(to,this.dom)||to.geometryChanged)&&(this.scale(),to.view.requestMeasure(this.measureReq))}docViewUpdate(to){this.layer.updateOnDocViewUpdate!==!1&&to.requestMeasure(this.measureReq)}setOrder(to){let ro=0,no=to.facet(layerOrder);for(;ro!sameMarker(ro,this.drawn[no]))){let ro=this.dom.firstChild,no=0;for(let oo of to)oo.update&&ro&&oo.constructor&&this.drawn[no].constructor&&oo.update(ro,this.drawn[no])?(ro=ro.nextSibling,no++):this.dom.insertBefore(oo.draw(),ro);for(;ro;){let oo=ro.nextSibling;ro.remove(),ro=oo}this.drawn=to}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const layerOrder=Facet.define();function layer(eo){return[ViewPlugin.define(to=>new LayerView(to,eo)),layerOrder.of(eo)]}const CanHidePrimary=!browser.ios,selectionConfig=Facet.define({combine(eo){return combineConfig(eo,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(to,ro)=>Math.min(to,ro),drawRangeCursor:(to,ro)=>to||ro})}});function drawSelection(eo={}){return[selectionConfig.of(eo),cursorLayer,selectionLayer,hideNativeSelection,nativeSelectionHidden.of(!0)]}function configChanged(eo){return eo.startState.facet(selectionConfig)!=eo.state.facet(selectionConfig)}const cursorLayer=layer({above:!0,markers(eo){let{state:to}=eo,ro=to.facet(selectionConfig),no=[];for(let oo of to.selection.ranges){let io=oo==to.selection.main;if(oo.empty?!io||CanHidePrimary:ro.drawRangeCursor){let so=io?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",ao=oo.empty?oo:EditorSelection.cursor(oo.head,oo.head>oo.anchor?-1:1);for(let lo of RectangleMarker.forRange(eo,so,ao))no.push(lo)}}return no},update(eo,to){eo.transactions.some(no=>no.selection)&&(to.style.animationName=to.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let ro=configChanged(eo);return ro&&setBlinkRate(eo.state,to),eo.docChanged||eo.selectionSet||ro},mount(eo,to){setBlinkRate(to.state,eo)},class:"cm-cursorLayer"});function setBlinkRate(eo,to){to.style.animationDuration=eo.facet(selectionConfig).cursorBlinkRate+"ms"}const selectionLayer=layer({above:!1,markers(eo){return eo.state.selection.ranges.map(to=>to.empty?[]:RectangleMarker.forRange(eo,"cm-selectionBackground",to)).reduce((to,ro)=>to.concat(ro))},update(eo,to){return eo.docChanged||eo.selectionSet||eo.viewportChanged||configChanged(eo)},class:"cm-selectionLayer"}),themeSpec={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};CanHidePrimary&&(themeSpec[".cm-line"].caretColor="transparent !important",themeSpec[".cm-content"]={caretColor:"transparent !important"});const hideNativeSelection=Prec.highest(EditorView.theme(themeSpec)),setDropCursorPos=StateEffect.define({map(eo,to){return eo==null?null:to.mapPos(eo)}}),dropCursorPos=StateField.define({create(){return null},update(eo,to){return eo!=null&&(eo=to.changes.mapPos(eo)),to.effects.reduce((ro,no)=>no.is(setDropCursorPos)?no.value:ro,eo)}}),drawDropCursor=ViewPlugin.fromClass(class{constructor(eo){this.view=eo,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(eo){var to;let ro=eo.state.field(dropCursorPos);ro==null?this.cursor!=null&&((to=this.cursor)===null||to===void 0||to.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(eo.startState.field(dropCursorPos)!=ro||eo.docChanged||eo.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:eo}=this,to=eo.state.field(dropCursorPos),ro=to!=null&&eo.coordsAtPos(to);if(!ro)return null;let no=eo.scrollDOM.getBoundingClientRect();return{left:ro.left-no.left+eo.scrollDOM.scrollLeft*eo.scaleX,top:ro.top-no.top+eo.scrollDOM.scrollTop*eo.scaleY,height:ro.bottom-ro.top}}drawCursor(eo){if(this.cursor){let{scaleX:to,scaleY:ro}=this.view;eo?(this.cursor.style.left=eo.left/to+"px",this.cursor.style.top=eo.top/ro+"px",this.cursor.style.height=eo.height/ro+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(eo){this.view.state.field(dropCursorPos)!=eo&&this.view.dispatch({effects:setDropCursorPos.of(eo)})}},{eventObservers:{dragover(eo){this.setDropPos(this.view.posAtCoords({x:eo.clientX,y:eo.clientY}))},dragleave(eo){(eo.target==this.view.contentDOM||!this.view.contentDOM.contains(eo.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function dropCursor(){return[dropCursorPos,drawDropCursor]}function iterMatches(eo,to,ro,no,oo){to.lastIndex=0;for(let io=eo.iterRange(ro,no),so=ro,ao;!io.next().done;so+=io.value.length)if(!io.lineBreak)for(;ao=to.exec(io.value);)oo(so+ao.index,ao)}function matchRanges(eo,to){let ro=eo.visibleRanges;if(ro.length==1&&ro[0].from==eo.viewport.from&&ro[0].to==eo.viewport.to)return ro;let no=[];for(let{from:oo,to:io}of ro)oo=Math.max(eo.state.doc.lineAt(oo).from,oo-to),io=Math.min(eo.state.doc.lineAt(io).to,io+to),no.length&&no[no.length-1].to>=oo?no[no.length-1].to=io:no.push({from:oo,to:io});return no}class MatchDecorator{constructor(to){const{regexp:ro,decoration:no,decorate:oo,boundary:io,maxLength:so=1e3}=to;if(!ro.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=ro,oo)this.addMatch=(ao,lo,uo,co)=>oo(co,uo,uo+ao[0].length,ao,lo);else if(typeof no=="function")this.addMatch=(ao,lo,uo,co)=>{let fo=no(ao,lo,uo);fo&&co(uo,uo+ao[0].length,fo)};else if(no)this.addMatch=(ao,lo,uo,co)=>co(uo,uo+ao[0].length,no);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=io,this.maxLength=so}createDeco(to){let ro=new RangeSetBuilder,no=ro.add.bind(ro);for(let{from:oo,to:io}of matchRanges(to,this.maxLength))iterMatches(to.state.doc,this.regexp,oo,io,(so,ao)=>this.addMatch(ao,to,so,no));return ro.finish()}updateDeco(to,ro){let no=1e9,oo=-1;return to.docChanged&&to.changes.iterChanges((io,so,ao,lo)=>{lo>to.view.viewport.from&&ao1e3?this.createDeco(to.view):oo>-1?this.updateRange(to.view,ro.map(to.changes),no,oo):ro}updateRange(to,ro,no,oo){for(let io of to.visibleRanges){let so=Math.max(io.from,no),ao=Math.min(io.to,oo);if(ao>so){let lo=to.state.doc.lineAt(so),uo=lo.tolo.from;so--)if(this.boundary.test(lo.text[so-1-lo.from])){co=so;break}for(;aoho.push(xo.range(vo,bo));if(lo==uo)for(this.regexp.lastIndex=co-lo.from;(po=this.regexp.exec(lo.text))&&po.indexthis.addMatch(bo,to,vo,go));ro=ro.update({filterFrom:co,filterTo:fo,filter:(vo,bo)=>vofo,add:ho})}}return ro}}const UnicodeRegexpSupport=/x/.unicode!=null?"gu":"g",Specials=new RegExp(`[\0-\b +--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,UnicodeRegexpSupport),Names={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let _supportsTabSize=null;function supportsTabSize(){var eo;if(_supportsTabSize==null&&typeof document<"u"&&document.body){let to=document.body.style;_supportsTabSize=((eo=to.tabSize)!==null&&eo!==void 0?eo:to.MozTabSize)!=null}return _supportsTabSize||!1}const specialCharConfig=Facet.define({combine(eo){let to=combineConfig(eo,{render:null,specialChars:Specials,addSpecialChars:null});return(to.replaceTabs=!supportsTabSize())&&(to.specialChars=new RegExp(" |"+to.specialChars.source,UnicodeRegexpSupport)),to.addSpecialChars&&(to.specialChars=new RegExp(to.specialChars.source+"|"+to.addSpecialChars.source,UnicodeRegexpSupport)),to}});function highlightSpecialChars(eo={}){return[specialCharConfig.of(eo),specialCharPlugin()]}let _plugin=null;function specialCharPlugin(){return _plugin||(_plugin=ViewPlugin.fromClass(class{constructor(eo){this.view=eo,this.decorations=Decoration.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(eo.state.facet(specialCharConfig)),this.decorations=this.decorator.createDeco(eo)}makeDecorator(eo){return new MatchDecorator({regexp:eo.specialChars,decoration:(to,ro,no)=>{let{doc:oo}=ro.state,io=codePointAt(to[0],0);if(io==9){let so=oo.lineAt(no),ao=ro.state.tabSize,lo=countColumn(so.text,ao,no-so.from);return Decoration.replace({widget:new TabWidget((ao-lo%ao)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[io]||(this.decorationCache[io]=Decoration.replace({widget:new SpecialCharWidget(eo,io)}))},boundary:eo.replaceTabs?void 0:/[^]/})}update(eo){let to=eo.state.facet(specialCharConfig);eo.startState.facet(specialCharConfig)!=to?(this.decorator=this.makeDecorator(to),this.decorations=this.decorator.createDeco(eo.view)):this.decorations=this.decorator.updateDeco(eo,this.decorations)}},{decorations:eo=>eo.decorations}))}const DefaultPlaceholder="•";function placeholder$1(eo){return eo>=32?DefaultPlaceholder:eo==10?"␤":String.fromCharCode(9216+eo)}class SpecialCharWidget extends WidgetType{constructor(to,ro){super(),this.options=to,this.code=ro}eq(to){return to.code==this.code}toDOM(to){let ro=placeholder$1(this.code),no=to.state.phrase("Control character")+" "+(Names[this.code]||"0x"+this.code.toString(16)),oo=this.options.render&&this.options.render(this.code,no,ro);if(oo)return oo;let io=document.createElement("span");return io.textContent=ro,io.title=no,io.setAttribute("aria-label",no),io.className="cm-specialChar",io}ignoreEvent(){return!1}}class TabWidget extends WidgetType{constructor(to){super(),this.width=to}eq(to){return to.width==this.width}toDOM(){let to=document.createElement("span");return to.textContent=" ",to.className="cm-tab",to.style.width=this.width+"px",to}ignoreEvent(){return!1}}function highlightActiveLine(){return activeLineHighlighter}const lineDeco=Decoration.line({class:"cm-activeLine"}),activeLineHighlighter=ViewPlugin.fromClass(class{constructor(eo){this.decorations=this.getDeco(eo)}update(eo){(eo.docChanged||eo.selectionSet)&&(this.decorations=this.getDeco(eo.view))}getDeco(eo){let to=-1,ro=[];for(let no of eo.state.selection.ranges){let oo=eo.lineBlockAt(no.head);oo.from>to&&(ro.push(lineDeco.range(oo.from)),to=oo.from)}return Decoration.set(ro)}},{decorations:eo=>eo.decorations});class Placeholder extends WidgetType{constructor(to){super(),this.content=to}toDOM(){let to=document.createElement("span");return to.className="cm-placeholder",to.style.pointerEvents="none",to.appendChild(typeof this.content=="string"?document.createTextNode(this.content):this.content),typeof this.content=="string"?to.setAttribute("aria-label","placeholder "+this.content):to.setAttribute("aria-hidden","true"),to}coordsAt(to){let ro=to.firstChild?clientRectsFor(to.firstChild):[];if(!ro.length)return null;let no=window.getComputedStyle(to.parentNode),oo=flattenRect(ro[0],no.direction!="rtl"),io=parseInt(no.lineHeight);return oo.bottom-oo.top>io*1.5?{left:oo.left,right:oo.right,top:oo.top,bottom:oo.top+io}:oo}ignoreEvent(){return!1}}function placeholder(eo){return ViewPlugin.fromClass(class{constructor(to){this.view=to,this.placeholder=eo?Decoration.set([Decoration.widget({widget:new Placeholder(eo),side:1}).range(0)]):Decoration.none}get decorations(){return this.view.state.doc.length?Decoration.none:this.placeholder}},{decorations:to=>to.decorations})}const MaxOff=2e3;function rectangleFor(eo,to,ro){let no=Math.min(to.line,ro.line),oo=Math.max(to.line,ro.line),io=[];if(to.off>MaxOff||ro.off>MaxOff||to.col<0||ro.col<0){let so=Math.min(to.off,ro.off),ao=Math.max(to.off,ro.off);for(let lo=no;lo<=oo;lo++){let uo=eo.doc.line(lo);uo.length<=ao&&io.push(EditorSelection.range(uo.from+so,uo.to+ao))}}else{let so=Math.min(to.col,ro.col),ao=Math.max(to.col,ro.col);for(let lo=no;lo<=oo;lo++){let uo=eo.doc.line(lo),co=findColumn(uo.text,so,eo.tabSize,!0);if(co<0)io.push(EditorSelection.cursor(uo.to));else{let fo=findColumn(uo.text,ao,eo.tabSize);io.push(EditorSelection.range(uo.from+co,uo.from+fo))}}}return io}function absoluteColumn(eo,to){let ro=eo.coordsAtPos(eo.viewport.from);return ro?Math.round(Math.abs((ro.left-to)/eo.defaultCharacterWidth)):-1}function getPos(eo,to){let ro=eo.posAtCoords({x:to.clientX,y:to.clientY},!1),no=eo.state.doc.lineAt(ro),oo=ro-no.from,io=oo>MaxOff?-1:oo==no.length?absoluteColumn(eo,to.clientX):countColumn(no.text,eo.state.tabSize,ro-no.from);return{line:no.number,col:io,off:oo}}function rectangleSelectionStyle(eo,to){let ro=getPos(eo,to),no=eo.state.selection;return ro?{update(oo){if(oo.docChanged){let io=oo.changes.mapPos(oo.startState.doc.line(ro.line).from),so=oo.state.doc.lineAt(io);ro={line:so.number,col:ro.col,off:Math.min(ro.off,so.length)},no=no.map(oo.changes)}},get(oo,io,so){let ao=getPos(eo,oo);if(!ao)return no;let lo=rectangleFor(eo.state,ro,ao);return lo.length?so?EditorSelection.create(lo.concat(no.ranges)):EditorSelection.create(lo):no}}:null}function rectangularSelection(eo){let to=(eo==null?void 0:eo.eventFilter)||(ro=>ro.altKey&&ro.button==0);return EditorView.mouseSelectionStyle.of((ro,no)=>to(no)?rectangleSelectionStyle(ro,no):null)}const keys={Alt:[18,eo=>!!eo.altKey],Control:[17,eo=>!!eo.ctrlKey],Shift:[16,eo=>!!eo.shiftKey],Meta:[91,eo=>!!eo.metaKey]},showCrosshair={style:"cursor: crosshair"};function crosshairCursor(eo={}){let[to,ro]=keys[eo.key||"Alt"],no=ViewPlugin.fromClass(class{constructor(oo){this.view=oo,this.isDown=!1}set(oo){this.isDown!=oo&&(this.isDown=oo,this.view.update([]))}},{eventObservers:{keydown(oo){this.set(oo.keyCode==to||ro(oo))},keyup(oo){(oo.keyCode==to||!ro(oo))&&this.set(!1)},mousemove(oo){this.set(ro(oo))}}});return[no,EditorView.contentAttributes.of(oo=>{var io;return!((io=oo.plugin(no))===null||io===void 0)&&io.isDown?showCrosshair:null})]}const Outside="-10000px";class TooltipViewManager{constructor(to,ro,no,oo){this.facet=ro,this.createTooltipView=no,this.removeTooltipView=oo,this.input=to.state.facet(ro),this.tooltips=this.input.filter(so=>so);let io=null;this.tooltipViews=this.tooltips.map(so=>io=no(so,io))}update(to,ro){var no;let oo=to.state.facet(this.facet),io=oo.filter(lo=>lo);if(oo===this.input){for(let lo of this.tooltipViews)lo.update&&lo.update(to);return!1}let so=[],ao=ro?[]:null;for(let lo=0;loro[uo]=lo),ro.length=ao.length),this.input=oo,this.tooltips=io,this.tooltipViews=so,!0}}function windowSpace(eo){let{win:to}=eo;return{top:0,left:0,bottom:to.innerHeight,right:to.innerWidth}}const tooltipConfig=Facet.define({combine:eo=>{var to,ro,no;return{position:browser.ios?"absolute":((to=eo.find(oo=>oo.position))===null||to===void 0?void 0:to.position)||"fixed",parent:((ro=eo.find(oo=>oo.parent))===null||ro===void 0?void 0:ro.parent)||null,tooltipSpace:((no=eo.find(oo=>oo.tooltipSpace))===null||no===void 0?void 0:no.tooltipSpace)||windowSpace}}}),knownHeight=new WeakMap,tooltipPlugin=ViewPlugin.fromClass(class{constructor(eo){this.view=eo,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let to=eo.state.facet(tooltipConfig);this.position=to.position,this.parent=to.parent,this.classes=eo.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new TooltipViewManager(eo,showTooltip,(ro,no)=>this.createTooltip(ro,no),ro=>{this.resizeObserver&&this.resizeObserver.unobserve(ro.dom),ro.dom.remove()}),this.above=this.manager.tooltips.map(ro=>!!ro.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(ro=>{Date.now()>this.lastTransaction-50&&ro.length>0&&ro[ro.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),eo.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let eo of this.manager.tooltipViews)this.intersectionObserver.observe(eo.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(eo){eo.transactions.length&&(this.lastTransaction=Date.now());let to=this.manager.update(eo,this.above);to&&this.observeIntersection();let ro=to||eo.geometryChanged,no=eo.state.facet(tooltipConfig);if(no.position!=this.position&&!this.madeAbsolute){this.position=no.position;for(let oo of this.manager.tooltipViews)oo.dom.style.position=this.position;ro=!0}if(no.parent!=this.parent){this.parent&&this.container.remove(),this.parent=no.parent,this.createContainer();for(let oo of this.manager.tooltipViews)this.container.appendChild(oo.dom);ro=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);ro&&this.maybeMeasure()}createTooltip(eo,to){let ro=eo.create(this.view),no=to?to.dom:null;if(ro.dom.classList.add("cm-tooltip"),eo.arrow&&!ro.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let oo=document.createElement("div");oo.className="cm-tooltip-arrow",ro.dom.insertBefore(oo,no)}return ro.dom.style.position=this.position,ro.dom.style.top=Outside,ro.dom.style.left="0px",this.container.insertBefore(ro.dom,no),ro.mount&&ro.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(ro.dom),ro}destroy(){var eo,to,ro;this.view.win.removeEventListener("resize",this.measureSoon);for(let no of this.manager.tooltipViews)no.dom.remove(),(eo=no.destroy)===null||eo===void 0||eo.call(no);this.parent&&this.container.remove(),(to=this.resizeObserver)===null||to===void 0||to.disconnect(),(ro=this.intersectionObserver)===null||ro===void 0||ro.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let eo=this.view.dom.getBoundingClientRect(),to=1,ro=1,no=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:oo}=this.manager.tooltipViews[0];if(browser.gecko)no=oo.offsetParent!=this.container.ownerDocument.body;else if(oo.style.top==Outside&&oo.style.left=="0px"){let io=oo.getBoundingClientRect();no=Math.abs(io.top+1e4)>1||Math.abs(io.left)>1}}if(no||this.position=="absolute")if(this.parent){let oo=this.parent.getBoundingClientRect();oo.width&&oo.height&&(to=oo.width/this.parent.offsetWidth,ro=oo.height/this.parent.offsetHeight)}else({scaleX:to,scaleY:ro}=this.view.viewState);return{editor:eo,parent:this.parent?this.container.getBoundingClientRect():eo,pos:this.manager.tooltips.map((oo,io)=>{let so=this.manager.tooltipViews[io];return so.getCoords?so.getCoords(oo.pos):this.view.coordsAtPos(oo.pos)}),size:this.manager.tooltipViews.map(({dom:oo})=>oo.getBoundingClientRect()),space:this.view.state.facet(tooltipConfig).tooltipSpace(this.view),scaleX:to,scaleY:ro,makeAbsolute:no}}writeMeasure(eo){var to;if(eo.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let ao of this.manager.tooltipViews)ao.dom.style.position="absolute"}let{editor:ro,space:no,scaleX:oo,scaleY:io}=eo,so=[];for(let ao=0;ao=Math.min(ro.bottom,no.bottom)||fo.rightMath.min(ro.right,no.right)+.1){co.style.top=Outside;continue}let po=lo.arrow?uo.dom.querySelector(".cm-tooltip-arrow"):null,go=po?7:0,vo=ho.right-ho.left,bo=(to=knownHeight.get(uo))!==null&&to!==void 0?to:ho.bottom-ho.top,xo=uo.offset||noOffset,_o=this.view.textDirection==Direction.LTR,Eo=ho.width>no.right-no.left?_o?no.left:no.right-ho.width:_o?Math.min(fo.left-(po?14:0)+xo.x,no.right-vo):Math.max(no.left,fo.left-vo+(po?14:0)-xo.x),So=this.above[ao];!lo.strictSide&&(So?fo.top-(ho.bottom-ho.top)-xo.yno.bottom)&&So==no.bottom-fo.bottom>fo.top-no.top&&(So=this.above[ao]=!So);let To=(So?fo.top-no.top:no.bottom-fo.bottom)-go;if(ToEo&&Oo.topwo&&(wo=So?Oo.top-bo-2-go:Oo.bottom+go+2);if(this.position=="absolute"?(co.style.top=(wo-eo.parent.top)/io+"px",co.style.left=(Eo-eo.parent.left)/oo+"px"):(co.style.top=wo/io+"px",co.style.left=Eo/oo+"px"),po){let Oo=fo.left+(_o?xo.x:-xo.x)-(Eo+14-7);po.style.left=Oo/oo+"px"}uo.overlap!==!0&&so.push({left:Eo,top:wo,right:Co,bottom:wo+bo}),co.classList.toggle("cm-tooltip-above",So),co.classList.toggle("cm-tooltip-below",!So),uo.positioned&&uo.positioned(eo.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let eo of this.manager.tooltipViews)eo.dom.style.top=Outside}},{eventObservers:{scroll(){this.maybeMeasure()}}}),baseTheme$5=EditorView.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),noOffset={x:0,y:0},showTooltip=Facet.define({enables:[tooltipPlugin,baseTheme$5]}),showHoverTooltip=Facet.define({combine:eo=>eo.reduce((to,ro)=>to.concat(ro),[])});class HoverTooltipHost{static create(to){return new HoverTooltipHost(to)}constructor(to){this.view=to,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new TooltipViewManager(to,showHoverTooltip,(ro,no)=>this.createHostedView(ro,no),ro=>ro.dom.remove())}createHostedView(to,ro){let no=to.create(this.view);return no.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(no.dom,ro?ro.dom.nextSibling:this.dom.firstChild),this.mounted&&no.mount&&no.mount(this.view),no}mount(to){for(let ro of this.manager.tooltipViews)ro.mount&&ro.mount(to);this.mounted=!0}positioned(to){for(let ro of this.manager.tooltipViews)ro.positioned&&ro.positioned(to)}update(to){this.manager.update(to)}destroy(){var to;for(let ro of this.manager.tooltipViews)(to=ro.destroy)===null||to===void 0||to.call(ro)}passProp(to){let ro;for(let no of this.manager.tooltipViews){let oo=no[to];if(oo!==void 0){if(ro===void 0)ro=oo;else if(ro!==oo)return}}return ro}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const showHoverTooltipHost=showTooltip.compute([showHoverTooltip],eo=>{let to=eo.facet(showHoverTooltip);return to.length===0?null:{pos:Math.min(...to.map(ro=>ro.pos)),end:Math.max(...to.map(ro=>{var no;return(no=ro.end)!==null&&no!==void 0?no:ro.pos})),create:HoverTooltipHost.create,above:to[0].above,arrow:to.some(ro=>ro.arrow)}});class HoverPlugin{constructor(to,ro,no,oo,io){this.view=to,this.source=ro,this.field=no,this.setHover=oo,this.hoverTime=io,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:to.dom,time:0},this.checkHover=this.checkHover.bind(this),to.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),to.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let to=Date.now()-this.lastMove.time;toao.bottom||ro.xao.right+to.defaultCharacterWidth)return;let lo=to.bidiSpans(to.state.doc.lineAt(oo)).find(co=>co.from<=oo&&co.to>=oo),uo=lo&&lo.dir==Direction.RTL?-1:1;io=ro.x{this.pending==ao&&(this.pending=null,lo&&!(Array.isArray(lo)&&!lo.length)&&to.dispatch({effects:this.setHover.of(Array.isArray(lo)?lo:[lo])}))},lo=>logException(to.state,lo,"hover tooltip"))}else so&&!(Array.isArray(so)&&!so.length)&&to.dispatch({effects:this.setHover.of(Array.isArray(so)?so:[so])})}get tooltip(){let to=this.view.plugin(tooltipPlugin),ro=to?to.manager.tooltips.findIndex(no=>no.create==HoverTooltipHost.create):-1;return ro>-1?to.manager.tooltipViews[ro]:null}mousemove(to){var ro,no;this.lastMove={x:to.clientX,y:to.clientY,target:to.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:oo,tooltip:io}=this;if(oo.length&&io&&!isInTooltip(io.dom,to)||this.pending){let{pos:so}=oo[0]||this.pending,ao=(no=(ro=oo[0])===null||ro===void 0?void 0:ro.end)!==null&&no!==void 0?no:so;(so==ao?this.view.posAtCoords(this.lastMove)!=so:!isOverRange(this.view,so,ao,to.clientX,to.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(to){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:ro}=this;if(ro.length){let{tooltip:no}=this;no&&no.dom.contains(to.relatedTarget)?this.watchTooltipLeave(no.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(to){let ro=no=>{to.removeEventListener("mouseleave",ro),this.active.length&&!this.view.dom.contains(no.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};to.addEventListener("mouseleave",ro)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const tooltipMargin=4;function isInTooltip(eo,to){let ro=eo.getBoundingClientRect();return to.clientX>=ro.left-tooltipMargin&&to.clientX<=ro.right+tooltipMargin&&to.clientY>=ro.top-tooltipMargin&&to.clientY<=ro.bottom+tooltipMargin}function isOverRange(eo,to,ro,no,oo,io){let so=eo.scrollDOM.getBoundingClientRect(),ao=eo.documentTop+eo.documentPadding.top+eo.contentHeight;if(so.left>no||so.rightoo||Math.min(so.bottom,ao)=to&&lo<=ro}function hoverTooltip(eo,to={}){let ro=StateEffect.define(),no=StateField.define({create(){return[]},update(oo,io){if(oo.length&&(to.hideOnChange&&(io.docChanged||io.selection)?oo=[]:to.hideOn&&(oo=oo.filter(so=>!to.hideOn(io,so))),io.docChanged)){let so=[];for(let ao of oo){let lo=io.changes.mapPos(ao.pos,-1,MapMode.TrackDel);if(lo!=null){let uo=Object.assign(Object.create(null),ao);uo.pos=lo,uo.end!=null&&(uo.end=io.changes.mapPos(uo.end)),so.push(uo)}}oo=so}for(let so of io.effects)so.is(ro)&&(oo=so.value),so.is(closeHoverTooltipEffect)&&(oo=[]);return oo},provide:oo=>showHoverTooltip.from(oo)});return[no,ViewPlugin.define(oo=>new HoverPlugin(oo,eo,no,ro,to.hoverTime||300)),showHoverTooltipHost]}function getTooltip(eo,to){let ro=eo.plugin(tooltipPlugin);if(!ro)return null;let no=ro.manager.tooltips.indexOf(to);return no<0?null:ro.manager.tooltipViews[no]}const closeHoverTooltipEffect=StateEffect.define(),panelConfig=Facet.define({combine(eo){let to,ro;for(let no of eo)to=to||no.topContainer,ro=ro||no.bottomContainer;return{topContainer:to,bottomContainer:ro}}});function getPanel(eo,to){let ro=eo.plugin(panelPlugin),no=ro?ro.specs.indexOf(to):-1;return no>-1?ro.panels[no]:null}const panelPlugin=ViewPlugin.fromClass(class{constructor(eo){this.input=eo.state.facet(showPanel),this.specs=this.input.filter(ro=>ro),this.panels=this.specs.map(ro=>ro(eo));let to=eo.state.facet(panelConfig);this.top=new PanelGroup(eo,!0,to.topContainer),this.bottom=new PanelGroup(eo,!1,to.bottomContainer),this.top.sync(this.panels.filter(ro=>ro.top)),this.bottom.sync(this.panels.filter(ro=>!ro.top));for(let ro of this.panels)ro.dom.classList.add("cm-panel"),ro.mount&&ro.mount()}update(eo){let to=eo.state.facet(panelConfig);this.top.container!=to.topContainer&&(this.top.sync([]),this.top=new PanelGroup(eo.view,!0,to.topContainer)),this.bottom.container!=to.bottomContainer&&(this.bottom.sync([]),this.bottom=new PanelGroup(eo.view,!1,to.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let ro=eo.state.facet(showPanel);if(ro!=this.input){let no=ro.filter(lo=>lo),oo=[],io=[],so=[],ao=[];for(let lo of no){let uo=this.specs.indexOf(lo),co;uo<0?(co=lo(eo.view),ao.push(co)):(co=this.panels[uo],co.update&&co.update(eo)),oo.push(co),(co.top?io:so).push(co)}this.specs=no,this.panels=oo,this.top.sync(io),this.bottom.sync(so);for(let lo of ao)lo.dom.classList.add("cm-panel"),lo.mount&&lo.mount()}else for(let no of this.panels)no.update&&no.update(eo)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:eo=>EditorView.scrollMargins.of(to=>{let ro=to.plugin(eo);return ro&&{top:ro.top.scrollMargin(),bottom:ro.bottom.scrollMargin()}})});class PanelGroup{constructor(to,ro,no){this.view=to,this.top=ro,this.container=no,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(to){for(let ro of this.panels)ro.destroy&&to.indexOf(ro)<0&&ro.destroy();this.panels=to,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let ro=this.container||this.view.dom;ro.insertBefore(this.dom,this.top?ro.firstChild:null)}let to=this.dom.firstChild;for(let ro of this.panels)if(ro.dom.parentNode==this.dom){for(;to!=ro.dom;)to=rm(to);to=to.nextSibling}else this.dom.insertBefore(ro.dom,to);for(;to;)to=rm(to)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let to of this.classes.split(" "))to&&this.container.classList.remove(to);for(let to of(this.classes=this.view.themeClasses).split(" "))to&&this.container.classList.add(to)}}}function rm(eo){let to=eo.nextSibling;return eo.remove(),to}const showPanel=Facet.define({enables:panelPlugin});class GutterMarker extends RangeValue{compare(to){return this==to||this.constructor==to.constructor&&this.eq(to)}eq(to){return!1}destroy(to){}}GutterMarker.prototype.elementClass="";GutterMarker.prototype.toDOM=void 0;GutterMarker.prototype.mapMode=MapMode.TrackBefore;GutterMarker.prototype.startSide=GutterMarker.prototype.endSide=-1;GutterMarker.prototype.point=!0;const gutterLineClass=Facet.define(),defaults$1={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>RangeSet.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},activeGutters=Facet.define();function gutter(eo){return[gutters(),activeGutters.of(Object.assign(Object.assign({},defaults$1),eo))]}const unfixGutters=Facet.define({combine:eo=>eo.some(to=>to)});function gutters(eo){let to=[gutterView];return eo&&eo.fixed===!1&&to.push(unfixGutters.of(!0)),to}const gutterView=ViewPlugin.fromClass(class{constructor(eo){this.view=eo,this.prevViewport=eo.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=eo.state.facet(activeGutters).map(to=>new SingleGutterView(eo,to));for(let to of this.gutters)this.dom.appendChild(to.dom);this.fixed=!eo.state.facet(unfixGutters),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),eo.scrollDOM.insertBefore(this.dom,eo.contentDOM)}update(eo){if(this.updateGutters(eo)){let to=this.prevViewport,ro=eo.view.viewport,no=Math.min(to.to,ro.to)-Math.max(to.from,ro.from);this.syncGutters(no<(ro.to-ro.from)*.8)}eo.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(unfixGutters)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=eo.view.viewport}syncGutters(eo){let to=this.dom.nextSibling;eo&&this.dom.remove();let ro=RangeSet.iter(this.view.state.facet(gutterLineClass),this.view.viewport.from),no=[],oo=this.gutters.map(io=>new UpdateContext(io,this.view.viewport,-this.view.documentPadding.top));for(let io of this.view.viewportLineBlocks)if(no.length&&(no=[]),Array.isArray(io.type)){let so=!0;for(let ao of io.type)if(ao.type==BlockType.Text&&so){advanceCursor(ro,no,ao.from);for(let lo of oo)lo.line(this.view,ao,no);so=!1}else if(ao.widget)for(let lo of oo)lo.widget(this.view,ao)}else if(io.type==BlockType.Text){advanceCursor(ro,no,io.from);for(let so of oo)so.line(this.view,io,no)}else if(io.widget)for(let so of oo)so.widget(this.view,io);for(let io of oo)io.finish();eo&&this.view.scrollDOM.insertBefore(this.dom,to)}updateGutters(eo){let to=eo.startState.facet(activeGutters),ro=eo.state.facet(activeGutters),no=eo.docChanged||eo.heightChanged||eo.viewportChanged||!RangeSet.eq(eo.startState.facet(gutterLineClass),eo.state.facet(gutterLineClass),eo.view.viewport.from,eo.view.viewport.to);if(to==ro)for(let oo of this.gutters)oo.update(eo)&&(no=!0);else{no=!0;let oo=[];for(let io of ro){let so=to.indexOf(io);so<0?oo.push(new SingleGutterView(this.view,io)):(this.gutters[so].update(eo),oo.push(this.gutters[so]))}for(let io of this.gutters)io.dom.remove(),oo.indexOf(io)<0&&io.destroy();for(let io of oo)this.dom.appendChild(io.dom);this.gutters=oo}return no}destroy(){for(let eo of this.gutters)eo.destroy();this.dom.remove()}},{provide:eo=>EditorView.scrollMargins.of(to=>{let ro=to.plugin(eo);return!ro||ro.gutters.length==0||!ro.fixed?null:to.textDirection==Direction.LTR?{left:ro.dom.offsetWidth*to.scaleX}:{right:ro.dom.offsetWidth*to.scaleX}})});function asArray(eo){return Array.isArray(eo)?eo:[eo]}function advanceCursor(eo,to,ro){for(;eo.value&&eo.from<=ro;)eo.from==ro&&to.push(eo.value),eo.next()}class UpdateContext{constructor(to,ro,no){this.gutter=to,this.height=no,this.i=0,this.cursor=RangeSet.iter(to.markers,ro.from)}addElement(to,ro,no){let{gutter:oo}=this,io=(ro.top-this.height)/to.scaleY,so=ro.height/to.scaleY;if(this.i==oo.elements.length){let ao=new GutterElement(to,so,io,no);oo.elements.push(ao),oo.dom.appendChild(ao.dom)}else oo.elements[this.i].update(to,so,io,no);this.height=ro.bottom,this.i++}line(to,ro,no){let oo=[];advanceCursor(this.cursor,oo,ro.from),no.length&&(oo=oo.concat(no));let io=this.gutter.config.lineMarker(to,ro,oo);io&&oo.unshift(io);let so=this.gutter;oo.length==0&&!so.config.renderEmptyElements||this.addElement(to,ro,oo)}widget(to,ro){let no=this.gutter.config.widgetMarker(to,ro.widget,ro);no&&this.addElement(to,ro,[no])}finish(){let to=this.gutter;for(;to.elements.length>this.i;){let ro=to.elements.pop();to.dom.removeChild(ro.dom),ro.destroy()}}}class SingleGutterView{constructor(to,ro){this.view=to,this.config=ro,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let no in ro.domEventHandlers)this.dom.addEventListener(no,oo=>{let io=oo.target,so;if(io!=this.dom&&this.dom.contains(io)){for(;io.parentNode!=this.dom;)io=io.parentNode;let lo=io.getBoundingClientRect();so=(lo.top+lo.bottom)/2}else so=oo.clientY;let ao=to.lineBlockAtHeight(so-to.documentTop);ro.domEventHandlers[no](to,ao,oo)&&oo.preventDefault()});this.markers=asArray(ro.markers(to)),ro.initialSpacer&&(this.spacer=new GutterElement(to,0,0,[ro.initialSpacer(to)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(to){let ro=this.markers;if(this.markers=asArray(this.config.markers(to.view)),this.spacer&&this.config.updateSpacer){let oo=this.config.updateSpacer(this.spacer.markers[0],to);oo!=this.spacer.markers[0]&&this.spacer.update(to.view,0,0,[oo])}let no=to.view.viewport;return!RangeSet.eq(this.markers,ro,no.from,no.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(to):!1)}destroy(){for(let to of this.elements)to.destroy()}}class GutterElement{constructor(to,ro,no,oo){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(to,ro,no,oo)}update(to,ro,no,oo){this.height!=ro&&(this.height=ro,this.dom.style.height=ro+"px"),this.above!=no&&(this.dom.style.marginTop=(this.above=no)?no+"px":""),sameMarkers(this.markers,oo)||this.setMarkers(to,oo)}setMarkers(to,ro){let no="cm-gutterElement",oo=this.dom.firstChild;for(let io=0,so=0;;){let ao=so,lo=ioio(ao,lo,uo)||so(ao,lo,uo):so}return no}})}});class NumberMarker extends GutterMarker{constructor(to){super(),this.number=to}eq(to){return this.number==to.number}toDOM(){return document.createTextNode(this.number)}}function formatNumber(eo,to){return eo.state.facet(lineNumberConfig).formatNumber(to,eo.state)}const lineNumberGutter=activeGutters.compute([lineNumberConfig],eo=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(to){return to.state.facet(lineNumberMarkers)},lineMarker(to,ro,no){return no.some(oo=>oo.toDOM)?null:new NumberMarker(formatNumber(to,to.state.doc.lineAt(ro.from).number))},widgetMarker:()=>null,lineMarkerChange:to=>to.startState.facet(lineNumberConfig)!=to.state.facet(lineNumberConfig),initialSpacer(to){return new NumberMarker(formatNumber(to,maxLineNumber(to.state.doc.lines)))},updateSpacer(to,ro){let no=formatNumber(ro.view,maxLineNumber(ro.view.state.doc.lines));return no==to.number?to:new NumberMarker(no)},domEventHandlers:eo.facet(lineNumberConfig).domEventHandlers}));function lineNumbers(eo={}){return[lineNumberConfig.of(eo),gutters(),lineNumberGutter]}function maxLineNumber(eo){let to=9;for(;to{let to=[],ro=-1;for(let no of eo.selection.ranges){let oo=eo.doc.lineAt(no.head).from;oo>ro&&(ro=oo,to.push(activeLineGutterMarker.range(oo)))}return RangeSet.of(to)});function highlightActiveLineGutter(){return activeLineGutterHighlighter}const DefaultBufferLength=1024;let nextPropID=0,Range$1=class{constructor(to,ro){this.from=to,this.to=ro}};class NodeProp{constructor(to={}){this.id=nextPropID++,this.perNode=!!to.perNode,this.deserialize=to.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(to){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof to!="function"&&(to=NodeType.match(to)),ro=>{let no=to(ro);return no===void 0?null:[this,no]}}}NodeProp.closedBy=new NodeProp({deserialize:eo=>eo.split(" ")});NodeProp.openedBy=new NodeProp({deserialize:eo=>eo.split(" ")});NodeProp.group=new NodeProp({deserialize:eo=>eo.split(" ")});NodeProp.isolate=new NodeProp({deserialize:eo=>{if(eo&&eo!="rtl"&&eo!="ltr"&&eo!="auto")throw new RangeError("Invalid value for isolate: "+eo);return eo||"auto"}});NodeProp.contextHash=new NodeProp({perNode:!0});NodeProp.lookAhead=new NodeProp({perNode:!0});NodeProp.mounted=new NodeProp({perNode:!0});class MountedTree{constructor(to,ro,no){this.tree=to,this.overlay=ro,this.parser=no}static get(to){return to&&to.props&&to.props[NodeProp.mounted.id]}}const noProps=Object.create(null);class NodeType{constructor(to,ro,no,oo=0){this.name=to,this.props=ro,this.id=no,this.flags=oo}static define(to){let ro=to.props&&to.props.length?Object.create(null):noProps,no=(to.top?1:0)|(to.skipped?2:0)|(to.error?4:0)|(to.name==null?8:0),oo=new NodeType(to.name||"",ro,to.id,no);if(to.props){for(let io of to.props)if(Array.isArray(io)||(io=io(oo)),io){if(io[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");ro[io[0].id]=io[1]}}return oo}prop(to){return this.props[to.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(to){if(typeof to=="string"){if(this.name==to)return!0;let ro=this.prop(NodeProp.group);return ro?ro.indexOf(to)>-1:!1}return this.id==to}static match(to){let ro=Object.create(null);for(let no in to)for(let oo of no.split(" "))ro[oo]=to[no];return no=>{for(let oo=no.prop(NodeProp.group),io=-1;io<(oo?oo.length:0);io++){let so=ro[io<0?no.name:oo[io]];if(so)return so}}}}NodeType.none=new NodeType("",Object.create(null),0,8);class NodeSet{constructor(to){this.types=to;for(let ro=0;ro0;for(let lo=this.cursor(so|IterMode.IncludeAnonymous);;){let uo=!1;if(lo.from<=io&&lo.to>=oo&&(!ao&&lo.type.isAnonymous||ro(lo)!==!1)){if(lo.firstChild())continue;uo=!0}for(;uo&&no&&(ao||!lo.type.isAnonymous)&&no(lo),!lo.nextSibling();){if(!lo.parent())return;uo=!0}}}prop(to){return to.perNode?this.props?this.props[to.id]:void 0:this.type.prop(to)}get propValues(){let to=[];if(this.props)for(let ro in this.props)to.push([+ro,this.props[ro]]);return to}balance(to={}){return this.children.length<=8?this:balanceRange(NodeType.none,this.children,this.positions,0,this.children.length,0,this.length,(ro,no,oo)=>new Tree(this.type,ro,no,oo,this.propValues),to.makeTree||((ro,no,oo)=>new Tree(NodeType.none,ro,no,oo)))}static build(to){return buildTree(to)}}Tree.empty=new Tree(NodeType.none,[],[],0);class FlatBufferCursor{constructor(to,ro){this.buffer=to,this.index=ro}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new FlatBufferCursor(this.buffer,this.index)}}class TreeBuffer{constructor(to,ro,no){this.buffer=to,this.length=ro,this.set=no}get type(){return NodeType.none}toString(){let to=[];for(let ro=0;ro0));lo=so[lo+3]);return ao}slice(to,ro,no){let oo=this.buffer,io=new Uint16Array(ro-to),so=0;for(let ao=to,lo=0;ao=to&&roto;case 1:return ro<=to&&no>to;case 2:return no>to;case 4:return!0}}function resolveNode(eo,to,ro,no){for(var oo;eo.from==eo.to||(ro<1?eo.from>=to:eo.from>to)||(ro>-1?eo.to<=to:eo.to0?ao.length:-1;to!=uo;to+=ro){let co=ao[to],fo=lo[to]+so.from;if(checkSide(oo,no,fo,fo+co.length)){if(co instanceof TreeBuffer){if(io&IterMode.ExcludeBuffers)continue;let ho=co.findChild(0,co.buffer.length,ro,no-fo,oo);if(ho>-1)return new BufferNode(new BufferContext(so,co,to,fo),null,ho)}else if(io&IterMode.IncludeAnonymous||!co.type.isAnonymous||hasChild(co)){let ho;if(!(io&IterMode.IgnoreMounts)&&(ho=MountedTree.get(co))&&!ho.overlay)return new TreeNode(ho.tree,fo,to,so);let po=new TreeNode(co,fo,to,so);return io&IterMode.IncludeAnonymous||!po.type.isAnonymous?po:po.nextChild(ro<0?co.children.length-1:0,ro,no,oo)}}}if(io&IterMode.IncludeAnonymous||!so.type.isAnonymous||(so.index>=0?to=so.index+ro:to=ro<0?-1:so._parent._tree.children.length,so=so._parent,!so))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(to){return this.nextChild(0,1,to,2)}childBefore(to){return this.nextChild(this._tree.children.length-1,-1,to,-2)}enter(to,ro,no=0){let oo;if(!(no&IterMode.IgnoreOverlays)&&(oo=MountedTree.get(this._tree))&&oo.overlay){let io=to-this.from;for(let{from:so,to:ao}of oo.overlay)if((ro>0?so<=io:so=io:ao>io))return new TreeNode(oo.tree,oo.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,to,ro,no)}nextSignificantParent(){let to=this;for(;to.type.isAnonymous&&to._parent;)to=to._parent;return to}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function getChildren(eo,to,ro,no){let oo=eo.cursor(),io=[];if(!oo.firstChild())return io;if(ro!=null){for(let so=!1;!so;)if(so=oo.type.is(ro),!oo.nextSibling())return io}for(;;){if(no!=null&&oo.type.is(no))return io;if(oo.type.is(to)&&io.push(oo.node),!oo.nextSibling())return no==null?io:[]}}function matchNodeContext(eo,to,ro=to.length-1){for(let no=eo.parent;ro>=0;no=no.parent){if(!no)return!1;if(!no.type.isAnonymous){if(to[ro]&&to[ro]!=no.name)return!1;ro--}}return!0}class BufferContext{constructor(to,ro,no,oo){this.parent=to,this.buffer=ro,this.index=no,this.start=oo}}class BufferNode extends BaseNode{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(to,ro,no){super(),this.context=to,this._parent=ro,this.index=no,this.type=to.buffer.set.types[to.buffer.buffer[no]]}child(to,ro,no){let{buffer:oo}=this.context,io=oo.findChild(this.index+4,oo.buffer[this.index+3],to,ro-this.context.start,no);return io<0?null:new BufferNode(this.context,this,io)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(to){return this.child(1,to,2)}childBefore(to){return this.child(-1,to,-2)}enter(to,ro,no=0){if(no&IterMode.ExcludeBuffers)return null;let{buffer:oo}=this.context,io=oo.findChild(this.index+4,oo.buffer[this.index+3],ro>0?1:-1,to-this.context.start,ro);return io<0?null:new BufferNode(this.context,this,io)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(to){return this._parent?null:this.context.parent.nextChild(this.context.index+to,to,0,4)}get nextSibling(){let{buffer:to}=this.context,ro=to.buffer[this.index+3];return ro<(this._parent?to.buffer[this._parent.index+3]:to.buffer.length)?new BufferNode(this.context,this._parent,ro):this.externalSibling(1)}get prevSibling(){let{buffer:to}=this.context,ro=this._parent?this._parent.index+4:0;return this.index==ro?this.externalSibling(-1):new BufferNode(this.context,this._parent,to.findChild(ro,this.index,-1,0,4))}get tree(){return null}toTree(){let to=[],ro=[],{buffer:no}=this.context,oo=this.index+4,io=no.buffer[this.index+3];if(io>oo){let so=no.buffer[this.index+1];to.push(no.slice(oo,io,so)),ro.push(0)}return new Tree(this.type,to,ro,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function iterStack(eo){if(!eo.length)return null;let to=0,ro=eo[0];for(let io=1;ioro.from||so.to=to){let ao=new TreeNode(so.tree,so.overlay[0].from+io.from,-1,io);(oo||(oo=[no])).push(resolveNode(ao,to,ro,!1))}}return oo?iterStack(oo):no}class TreeCursor{get name(){return this.type.name}constructor(to,ro=0){if(this.mode=ro,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,to instanceof TreeNode)this.yieldNode(to);else{this._tree=to.context.parent,this.buffer=to.context;for(let no=to._parent;no;no=no._parent)this.stack.unshift(no.index);this.bufferNode=to,this.yieldBuf(to.index)}}yieldNode(to){return to?(this._tree=to,this.type=to.type,this.from=to.from,this.to=to.to,!0):!1}yieldBuf(to,ro){this.index=to;let{start:no,buffer:oo}=this.buffer;return this.type=ro||oo.set.types[oo.buffer[to]],this.from=no+oo.buffer[to+1],this.to=no+oo.buffer[to+2],!0}yield(to){return to?to instanceof TreeNode?(this.buffer=null,this.yieldNode(to)):(this.buffer=to.context,this.yieldBuf(to.index,to.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(to,ro,no){if(!this.buffer)return this.yield(this._tree.nextChild(to<0?this._tree._tree.children.length-1:0,to,ro,no,this.mode));let{buffer:oo}=this.buffer,io=oo.findChild(this.index+4,oo.buffer[this.index+3],to,ro-this.buffer.start,no);return io<0?!1:(this.stack.push(this.index),this.yieldBuf(io))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(to){return this.enterChild(1,to,2)}childBefore(to){return this.enterChild(-1,to,-2)}enter(to,ro,no=this.mode){return this.buffer?no&IterMode.ExcludeBuffers?!1:this.enterChild(1,to,ro):this.yield(this._tree.enter(to,ro,no))}parent(){if(!this.buffer)return this.yieldNode(this.mode&IterMode.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let to=this.mode&IterMode.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(to)}sibling(to){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+to,to,0,4,this.mode)):!1;let{buffer:ro}=this.buffer,no=this.stack.length-1;if(to<0){let oo=no<0?0:this.stack[no]+4;if(this.index!=oo)return this.yieldBuf(ro.findChild(oo,this.index,-1,0,4))}else{let oo=ro.buffer[this.index+3];if(oo<(no<0?ro.buffer.length:ro.buffer[this.stack[no]+3]))return this.yieldBuf(oo)}return no<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+to,to,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(to){let ro,no,{buffer:oo}=this;if(oo){if(to>0){if(this.index-1)for(let io=ro+to,so=to<0?-1:no._tree.children.length;io!=so;io+=to){let ao=no._tree.children[io];if(this.mode&IterMode.IncludeAnonymous||ao instanceof TreeBuffer||!ao.type.isAnonymous||hasChild(ao))return!1}return!0}move(to,ro){if(ro&&this.enterChild(to,0,4))return!0;for(;;){if(this.sibling(to))return!0;if(this.atLastNode(to)||!this.parent())return!1}}next(to=!0){return this.move(1,to)}prev(to=!0){return this.move(-1,to)}moveTo(to,ro=0){for(;(this.from==this.to||(ro<1?this.from>=to:this.from>to)||(ro>-1?this.to<=to:this.to=0;){for(let so=to;so;so=so._parent)if(so.index==oo){if(oo==this.index)return so;ro=so,no=io+1;break e}oo=this.stack[--io]}for(let oo=no;oo=0;io--){if(io<0)return matchNodeContext(this.node,to,oo);let so=no[ro.buffer[this.stack[io]]];if(!so.isAnonymous){if(to[oo]&&to[oo]!=so.name)return!1;oo--}}return!0}}function hasChild(eo){return eo.children.some(to=>to instanceof TreeBuffer||!to.type.isAnonymous||hasChild(to))}function buildTree(eo){var to;let{buffer:ro,nodeSet:no,maxBufferLength:oo=DefaultBufferLength,reused:io=[],minRepeatType:so=no.types.length}=eo,ao=Array.isArray(ro)?new FlatBufferCursor(ro,ro.length):ro,lo=no.types,uo=0,co=0;function fo(To,wo,Co,Oo,Ao,Ro){let{id:No,start:Mo,end:Do,size:jo}=ao,Fo=co;for(;jo<0;)if(ao.next(),jo==-1){let Uo=io[No];Co.push(Uo),Oo.push(Mo-To);return}else if(jo==-3){uo=No;return}else if(jo==-4){co=No;return}else throw new RangeError(`Unrecognized record size: ${jo}`);let $o=lo[No],Lo,Ho,qo=Mo-To;if(Do-Mo<=oo&&(Ho=bo(ao.pos-wo,Ao))){let Uo=new Uint16Array(Ho.size-Ho.skip),Yo=ao.pos-Ho.size,Zo=Uo.length;for(;ao.pos>Yo;)Zo=xo(Ho.start,Uo,Zo);Lo=new TreeBuffer(Uo,Do-Ho.start,no),qo=Ho.start-To}else{let Uo=ao.pos-jo;ao.next();let Yo=[],Zo=[],_s=No>=so?No:-1,Ss=0,As=Do;for(;ao.pos>Uo;)_s>=0&&ao.id==_s&&ao.size>=0?(ao.end<=As-oo&&(go(Yo,Zo,Mo,Ss,ao.end,As,_s,Fo),Ss=Yo.length,As=ao.end),ao.next()):Ro>2500?ho(Mo,Uo,Yo,Zo):fo(Mo,Uo,Yo,Zo,_s,Ro+1);if(_s>=0&&Ss>0&&Ss-1&&Ss>0){let Ns=po($o);Lo=balanceRange($o,Yo,Zo,0,Yo.length,0,Do-Mo,Ns,Ns)}else Lo=vo($o,Yo,Zo,Do-Mo,Fo-Do)}Co.push(Lo),Oo.push(qo)}function ho(To,wo,Co,Oo){let Ao=[],Ro=0,No=-1;for(;ao.pos>wo;){let{id:Mo,start:Do,end:jo,size:Fo}=ao;if(Fo>4)ao.next();else{if(No>-1&&Do=0;jo-=3)Mo[Fo++]=Ao[jo],Mo[Fo++]=Ao[jo+1]-Do,Mo[Fo++]=Ao[jo+2]-Do,Mo[Fo++]=Fo;Co.push(new TreeBuffer(Mo,Ao[2]-Do,no)),Oo.push(Do-To)}}function po(To){return(wo,Co,Oo)=>{let Ao=0,Ro=wo.length-1,No,Mo;if(Ro>=0&&(No=wo[Ro])instanceof Tree){if(!Ro&&No.type==To&&No.length==Oo)return No;(Mo=No.prop(NodeProp.lookAhead))&&(Ao=Co[Ro]+No.length+Mo)}return vo(To,wo,Co,Oo,Ao)}}function go(To,wo,Co,Oo,Ao,Ro,No,Mo){let Do=[],jo=[];for(;To.length>Oo;)Do.push(To.pop()),jo.push(wo.pop()+Co-Ao);To.push(vo(no.types[No],Do,jo,Ro-Ao,Mo-Ro)),wo.push(Ao-Co)}function vo(To,wo,Co,Oo,Ao=0,Ro){if(uo){let No=[NodeProp.contextHash,uo];Ro=Ro?[No].concat(Ro):[No]}if(Ao>25){let No=[NodeProp.lookAhead,Ao];Ro=Ro?[No].concat(Ro):[No]}return new Tree(To,wo,Co,Oo,Ro)}function bo(To,wo){let Co=ao.fork(),Oo=0,Ao=0,Ro=0,No=Co.end-oo,Mo={size:0,start:0,skip:0};e:for(let Do=Co.pos-To;Co.pos>Do;){let jo=Co.size;if(Co.id==wo&&jo>=0){Mo.size=Oo,Mo.start=Ao,Mo.skip=Ro,Ro+=4,Oo+=4,Co.next();continue}let Fo=Co.pos-jo;if(jo<0||Fo=so?4:0,Lo=Co.start;for(Co.next();Co.pos>Fo;){if(Co.size<0)if(Co.size==-3)$o+=4;else break e;else Co.id>=so&&($o+=4);Co.next()}Ao=Lo,Oo+=jo,Ro+=$o}return(wo<0||Oo==To)&&(Mo.size=Oo,Mo.start=Ao,Mo.skip=Ro),Mo.size>4?Mo:void 0}function xo(To,wo,Co){let{id:Oo,start:Ao,end:Ro,size:No}=ao;if(ao.next(),No>=0&&Oo4){let Do=ao.pos-(No-4);for(;ao.pos>Do;)Co=xo(To,wo,Co)}wo[--Co]=Mo,wo[--Co]=Ro-To,wo[--Co]=Ao-To,wo[--Co]=Oo}else No==-3?uo=Oo:No==-4&&(co=Oo);return Co}let _o=[],Eo=[];for(;ao.pos>0;)fo(eo.start||0,eo.bufferStart||0,_o,Eo,-1,0);let So=(to=eo.length)!==null&&to!==void 0?to:_o.length?Eo[0]+_o[0].length:0;return new Tree(lo[eo.topID],_o.reverse(),Eo.reverse(),So)}const nodeSizeCache=new WeakMap;function nodeSize(eo,to){if(!eo.isAnonymous||to instanceof TreeBuffer||to.type!=eo)return 1;let ro=nodeSizeCache.get(to);if(ro==null){ro=1;for(let no of to.children){if(no.type!=eo||!(no instanceof Tree)){ro=1;break}ro+=nodeSize(eo,no)}nodeSizeCache.set(to,ro)}return ro}function balanceRange(eo,to,ro,no,oo,io,so,ao,lo){let uo=0;for(let go=no;go=co)break;wo+=Co}if(Eo==So+1){if(wo>co){let Co=go[So];po(Co.children,Co.positions,0,Co.children.length,vo[So]+_o);continue}fo.push(go[So])}else{let Co=vo[Eo-1]+go[Eo-1].length-To;fo.push(balanceRange(eo,go,vo,So,Eo,To,Co,null,lo))}ho.push(To+_o-io)}}return po(to,ro,no,oo,0),(ao||lo)(fo,ho,so)}class NodeWeakMap{constructor(){this.map=new WeakMap}setBuffer(to,ro,no){let oo=this.map.get(to);oo||this.map.set(to,oo=new Map),oo.set(ro,no)}getBuffer(to,ro){let no=this.map.get(to);return no&&no.get(ro)}set(to,ro){to instanceof BufferNode?this.setBuffer(to.context.buffer,to.index,ro):to instanceof TreeNode&&this.map.set(to.tree,ro)}get(to){return to instanceof BufferNode?this.getBuffer(to.context.buffer,to.index):to instanceof TreeNode?this.map.get(to.tree):void 0}cursorSet(to,ro){to.buffer?this.setBuffer(to.buffer.buffer,to.index,ro):this.map.set(to.tree,ro)}cursorGet(to){return to.buffer?this.getBuffer(to.buffer.buffer,to.index):this.map.get(to.tree)}}class TreeFragment{constructor(to,ro,no,oo,io=!1,so=!1){this.from=to,this.to=ro,this.tree=no,this.offset=oo,this.open=(io?1:0)|(so?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(to,ro=[],no=!1){let oo=[new TreeFragment(0,to.length,to,0,!1,no)];for(let io of ro)io.to>to.length&&oo.push(io);return oo}static applyChanges(to,ro,no=128){if(!ro.length)return to;let oo=[],io=1,so=to.length?to[0]:null;for(let ao=0,lo=0,uo=0;;ao++){let co=ao=no)for(;so&&so.from=ho.from||fo<=ho.to||uo){let po=Math.max(ho.from,lo)-uo,go=Math.min(ho.to,fo)-uo;ho=po>=go?null:new TreeFragment(po,go,ho.tree,ho.offset+uo,ao>0,!!co)}if(ho&&oo.push(ho),so.to>fo)break;so=ionew Range$1(oo.from,oo.to)):[new Range$1(0,0)]:[new Range$1(0,to.length)],this.createParse(to,ro||[],no)}parse(to,ro,no){let oo=this.startParse(to,ro,no);for(;;){let io=oo.advance();if(io)return io}}}class StringInput{constructor(to){this.string=to}get length(){return this.string.length}chunk(to){return this.string.slice(to)}get lineChunks(){return!1}read(to,ro){return this.string.slice(to,ro)}}new NodeProp({perNode:!0});let nextTagID=0;class Tag{constructor(to,ro,no){this.set=to,this.base=ro,this.modified=no,this.id=nextTagID++}static define(to){if(to!=null&&to.base)throw new Error("Can not derive from a modified tag");let ro=new Tag([],null,[]);if(ro.set.push(ro),to)for(let no of to.set)ro.set.push(no);return ro}static defineModifier(){let to=new Modifier;return ro=>ro.modified.indexOf(to)>-1?ro:Modifier.get(ro.base||ro,ro.modified.concat(to).sort((no,oo)=>no.id-oo.id))}}let nextModifierID=0;class Modifier{constructor(){this.instances=[],this.id=nextModifierID++}static get(to,ro){if(!ro.length)return to;let no=ro[0].instances.find(ao=>ao.base==to&&sameArray(ro,ao.modified));if(no)return no;let oo=[],io=new Tag(oo,to,ro);for(let ao of ro)ao.instances.push(io);let so=powerSet(ro);for(let ao of to.set)if(!ao.modified.length)for(let lo of so)oo.push(Modifier.get(ao,lo));return io}}function sameArray(eo,to){return eo.length==to.length&&eo.every((ro,no)=>ro==to[no])}function powerSet(eo){let to=[[]];for(let ro=0;rono.length-ro.length)}function styleTags(eo){let to=Object.create(null);for(let ro in eo){let no=eo[ro];Array.isArray(no)||(no=[no]);for(let oo of ro.split(" "))if(oo){let io=[],so=2,ao=oo;for(let fo=0;;){if(ao=="..."&&fo>0&&fo+3==oo.length){so=1;break}let ho=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(ao);if(!ho)throw new RangeError("Invalid path: "+oo);if(io.push(ho[0]=="*"?"":ho[0][0]=='"'?JSON.parse(ho[0]):ho[0]),fo+=ho[0].length,fo==oo.length)break;let po=oo[fo++];if(fo==oo.length&&po=="!"){so=0;break}if(po!="/")throw new RangeError("Invalid path: "+oo);ao=oo.slice(fo)}let lo=io.length-1,uo=io[lo];if(!uo)throw new RangeError("Invalid path: "+oo);let co=new Rule(no,so,lo>0?io.slice(0,lo):null);to[uo]=co.sort(to[uo])}}return ruleNodeProp.add(to)}const ruleNodeProp=new NodeProp;class Rule{constructor(to,ro,no,oo){this.tags=to,this.mode=ro,this.context=no,this.next=oo}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(to){return!to||to.depth{let so=oo;for(let ao of io)for(let lo of ao.set){let uo=ro[lo.id];if(uo){so=so?so+" "+uo:uo;break}}return so},scope:no}}function highlightTags(eo,to){let ro=null;for(let no of eo){let oo=no.style(to);oo&&(ro=ro?ro+" "+oo:oo)}return ro}function highlightTree(eo,to,ro,no=0,oo=eo.length){let io=new HighlightBuilder(no,Array.isArray(to)?to:[to],ro);io.highlightRange(eo.cursor(),no,oo,"",io.highlighters),io.flush(oo)}class HighlightBuilder{constructor(to,ro,no){this.at=to,this.highlighters=ro,this.span=no,this.class=""}startSpan(to,ro){ro!=this.class&&(this.flush(to),to>this.at&&(this.at=to),this.class=ro)}flush(to){to>this.at&&this.class&&this.span(this.at,to,this.class)}highlightRange(to,ro,no,oo,io){let{type:so,from:ao,to:lo}=to;if(ao>=no||lo<=ro)return;so.isTop&&(io=this.highlighters.filter(po=>!po.scope||po.scope(so)));let uo=oo,co=getStyleTags(to)||Rule.empty,fo=highlightTags(io,co.tags);if(fo&&(uo&&(uo+=" "),uo+=fo,co.mode==1&&(oo+=(oo?" ":"")+fo)),this.startSpan(Math.max(ro,ao),uo),co.opaque)return;let ho=to.tree&&to.tree.prop(NodeProp.mounted);if(ho&&ho.overlay){let po=to.node.enter(ho.overlay[0].from+ao,1),go=this.highlighters.filter(bo=>!bo.scope||bo.scope(ho.tree.type)),vo=to.firstChild();for(let bo=0,xo=ao;;bo++){let _o=bo=Eo||!to.nextSibling())););if(!_o||Eo>no)break;xo=_o.to+ao,xo>ro&&(this.highlightRange(po.cursor(),Math.max(ro,_o.from+ao),Math.min(no,xo),"",go),this.startSpan(Math.min(no,xo),uo))}vo&&to.parent()}else if(to.firstChild()){ho&&(oo="");do if(!(to.to<=ro)){if(to.from>=no)break;this.highlightRange(to,ro,no,oo,io),this.startSpan(Math.min(no,to.to),uo)}while(to.nextSibling());to.parent()}}}function getStyleTags(eo){let to=eo.type.prop(ruleNodeProp);for(;to&&to.context&&!eo.matchContext(to.context);)to=to.next;return to||null}const t=Tag.define,comment=t(),name=t(),typeName=t(name),propertyName=t(name),literal=t(),string=t(literal),number=t(literal),content=t(),heading=t(content),keyword=t(),operator=t(),punctuation=t(),bracket=t(punctuation),meta=t(),tags={comment,lineComment:t(comment),blockComment:t(comment),docComment:t(comment),name,variableName:t(name),typeName,tagName:t(typeName),propertyName,attributeName:t(propertyName),className:t(name),labelName:t(name),namespace:t(name),macroName:t(name),literal,string,docString:t(string),character:t(string),attributeValue:t(string),number,integer:t(number),float:t(number),bool:t(literal),regexp:t(literal),escape:t(literal),color:t(literal),url:t(literal),keyword,self:t(keyword),null:t(keyword),atom:t(keyword),unit:t(keyword),modifier:t(keyword),operatorKeyword:t(keyword),controlKeyword:t(keyword),definitionKeyword:t(keyword),moduleKeyword:t(keyword),operator,derefOperator:t(operator),arithmeticOperator:t(operator),logicOperator:t(operator),bitwiseOperator:t(operator),compareOperator:t(operator),updateOperator:t(operator),definitionOperator:t(operator),typeOperator:t(operator),controlOperator:t(operator),punctuation,separator:t(punctuation),bracket,angleBracket:t(bracket),squareBracket:t(bracket),paren:t(bracket),brace:t(bracket),content,heading,heading1:t(heading),heading2:t(heading),heading3:t(heading),heading4:t(heading),heading5:t(heading),heading6:t(heading),contentSeparator:t(content),list:t(content),quote:t(content),emphasis:t(content),strong:t(content),link:t(content),monospace:t(content),strikethrough:t(content),inserted:t(),deleted:t(),changed:t(),invalid:t(),meta,documentMeta:t(meta),annotation:t(meta),processingInstruction:t(meta),definition:Tag.defineModifier(),constant:Tag.defineModifier(),function:Tag.defineModifier(),standard:Tag.defineModifier(),local:Tag.defineModifier(),special:Tag.defineModifier()};tagHighlighter([{tag:tags.link,class:"tok-link"},{tag:tags.heading,class:"tok-heading"},{tag:tags.emphasis,class:"tok-emphasis"},{tag:tags.strong,class:"tok-strong"},{tag:tags.keyword,class:"tok-keyword"},{tag:tags.atom,class:"tok-atom"},{tag:tags.bool,class:"tok-bool"},{tag:tags.url,class:"tok-url"},{tag:tags.labelName,class:"tok-labelName"},{tag:tags.inserted,class:"tok-inserted"},{tag:tags.deleted,class:"tok-deleted"},{tag:tags.literal,class:"tok-literal"},{tag:tags.string,class:"tok-string"},{tag:tags.number,class:"tok-number"},{tag:[tags.regexp,tags.escape,tags.special(tags.string)],class:"tok-string2"},{tag:tags.variableName,class:"tok-variableName"},{tag:tags.local(tags.variableName),class:"tok-variableName tok-local"},{tag:tags.definition(tags.variableName),class:"tok-variableName tok-definition"},{tag:tags.special(tags.variableName),class:"tok-variableName2"},{tag:tags.definition(tags.propertyName),class:"tok-propertyName tok-definition"},{tag:tags.typeName,class:"tok-typeName"},{tag:tags.namespace,class:"tok-namespace"},{tag:tags.className,class:"tok-className"},{tag:tags.macroName,class:"tok-macroName"},{tag:tags.propertyName,class:"tok-propertyName"},{tag:tags.operator,class:"tok-operator"},{tag:tags.comment,class:"tok-comment"},{tag:tags.meta,class:"tok-meta"},{tag:tags.invalid,class:"tok-invalid"},{tag:tags.punctuation,class:"tok-punctuation"}]);var _a;const languageDataProp=new NodeProp;function defineLanguageFacet(eo){return Facet.define({combine:eo?to=>to.concat(eo):void 0})}const sublanguageProp=new NodeProp;class Language{constructor(to,ro,no=[],oo=""){this.data=to,this.name=oo,EditorState.prototype.hasOwnProperty("tree")||Object.defineProperty(EditorState.prototype,"tree",{get(){return syntaxTree(this)}}),this.parser=ro,this.extension=[language.of(this),EditorState.languageData.of((io,so,ao)=>{let lo=topNodeAt(io,so,ao),uo=lo.type.prop(languageDataProp);if(!uo)return[];let co=io.facet(uo),fo=lo.type.prop(sublanguageProp);if(fo){let ho=lo.resolve(so-lo.from,ao);for(let po of fo)if(po.test(ho,io)){let go=io.facet(po.facet);return po.type=="replace"?go:go.concat(co)}}return co})].concat(no)}isActiveAt(to,ro,no=-1){return topNodeAt(to,ro,no).type.prop(languageDataProp)==this.data}findRegions(to){let ro=to.facet(language);if((ro==null?void 0:ro.data)==this.data)return[{from:0,to:to.doc.length}];if(!ro||!ro.allowsNesting)return[];let no=[],oo=(io,so)=>{if(io.prop(languageDataProp)==this.data){no.push({from:so,to:so+io.length});return}let ao=io.prop(NodeProp.mounted);if(ao){if(ao.tree.prop(languageDataProp)==this.data){if(ao.overlay)for(let lo of ao.overlay)no.push({from:lo.from+so,to:lo.to+so});else no.push({from:so,to:so+io.length});return}else if(ao.overlay){let lo=no.length;if(oo(ao.tree,ao.overlay[0].from+so),no.length>lo)return}}for(let lo=0;lono.isTop?ro:void 0)]}),to.name)}configure(to,ro){return new LRLanguage(this.data,this.parser.configure(to),ro||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function syntaxTree(eo){let to=eo.field(Language.state,!1);return to?to.tree:Tree.empty}class DocInput{constructor(to){this.doc=to,this.cursorPos=0,this.string="",this.cursor=to.iter()}get length(){return this.doc.length}syncTo(to){return this.string=this.cursor.next(to-this.cursorPos).value,this.cursorPos=to+this.string.length,this.cursorPos-this.string.length}chunk(to){return this.syncTo(to),this.string}get lineChunks(){return!0}read(to,ro){let no=this.cursorPos-this.string.length;return to=this.cursorPos?this.doc.sliceString(to,ro):this.string.slice(to-no,ro-no)}}let currentContext=null;class ParseContext{constructor(to,ro,no=[],oo,io,so,ao,lo){this.parser=to,this.state=ro,this.fragments=no,this.tree=oo,this.treeLen=io,this.viewport=so,this.skipped=ao,this.scheduleOn=lo,this.parse=null,this.tempSkipped=[]}static create(to,ro,no){return new ParseContext(to,ro,[],Tree.empty,0,no,[],null)}startParse(){return this.parser.startParse(new DocInput(this.state.doc),this.fragments)}work(to,ro){return ro!=null&&ro>=this.state.doc.length&&(ro=void 0),this.tree!=Tree.empty&&this.isDone(ro??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var no;if(typeof to=="number"){let oo=Date.now()+to;to=()=>Date.now()>oo}for(this.parse||(this.parse=this.startParse()),ro!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>ro)&&ro=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>to)&&this.parse.stopAt(to),this.withContext(()=>{for(;!(ro=this.parse.advance()););}),this.treeLen=to,this.tree=ro,this.fragments=this.withoutTempSkipped(TreeFragment.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(to){let ro=currentContext;currentContext=this;try{return to()}finally{currentContext=ro}}withoutTempSkipped(to){for(let ro;ro=this.tempSkipped.pop();)to=cutFragments(to,ro.from,ro.to);return to}changes(to,ro){let{fragments:no,tree:oo,treeLen:io,viewport:so,skipped:ao}=this;if(this.takeTree(),!to.empty){let lo=[];if(to.iterChangedRanges((uo,co,fo,ho)=>lo.push({fromA:uo,toA:co,fromB:fo,toB:ho})),no=TreeFragment.applyChanges(no,lo),oo=Tree.empty,io=0,so={from:to.mapPos(so.from,-1),to:to.mapPos(so.to,1)},this.skipped.length){ao=[];for(let uo of this.skipped){let co=to.mapPos(uo.from,1),fo=to.mapPos(uo.to,-1);coto.from&&(this.fragments=cutFragments(this.fragments,oo,io),this.skipped.splice(no--,1))}return this.skipped.length>=ro?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(to,ro){this.skipped.push({from:to,to:ro})}static getSkippingParser(to){return new class extends Parser{createParse(ro,no,oo){let io=oo[0].from,so=oo[oo.length-1].to;return{parsedPos:io,advance(){let lo=currentContext;if(lo){for(let uo of oo)lo.tempSkipped.push(uo);to&&(lo.scheduleOn=lo.scheduleOn?Promise.all([lo.scheduleOn,to]):to)}return this.parsedPos=so,new Tree(NodeType.none,[],[],so-io)},stoppedAt:null,stopAt(){}}}}}isDone(to){to=Math.min(to,this.state.doc.length);let ro=this.fragments;return this.treeLen>=to&&ro.length&&ro[0].from==0&&ro[0].to>=to}static get(){return currentContext}}function cutFragments(eo,to,ro){return TreeFragment.applyChanges(eo,[{fromA:to,toA:ro,fromB:to,toB:ro}])}class LanguageState{constructor(to){this.context=to,this.tree=to.tree}apply(to){if(!to.docChanged&&this.tree==this.context.tree)return this;let ro=this.context.changes(to.changes,to.state),no=this.context.treeLen==to.startState.doc.length?void 0:Math.max(to.changes.mapPos(this.context.treeLen),ro.viewport.to);return ro.work(20,no)||ro.takeTree(),new LanguageState(ro)}static init(to){let ro=Math.min(3e3,to.doc.length),no=ParseContext.create(to.facet(language).parser,to,{from:0,to:ro});return no.work(20,ro)||no.takeTree(),new LanguageState(no)}}Language.state=StateField.define({create:LanguageState.init,update(eo,to){for(let ro of to.effects)if(ro.is(Language.setState))return ro.value;return to.startState.facet(language)!=to.state.facet(language)?LanguageState.init(to.state):eo.apply(to)}});let requestIdle=eo=>{let to=setTimeout(()=>eo(),500);return()=>clearTimeout(to)};typeof requestIdleCallback<"u"&&(requestIdle=eo=>{let to=-1,ro=setTimeout(()=>{to=requestIdleCallback(eo,{timeout:400})},100);return()=>to<0?clearTimeout(ro):cancelIdleCallback(to)});const isInputPending=typeof navigator<"u"&&(!((_a=navigator.scheduling)===null||_a===void 0)&&_a.isInputPending)?()=>navigator.scheduling.isInputPending():null,parseWorker=ViewPlugin.fromClass(class{constructor(to){this.view=to,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(to){let ro=this.view.state.field(Language.state).context;(ro.updateViewport(to.view.viewport)||this.view.viewport.to>ro.treeLen)&&this.scheduleWork(),(to.docChanged||to.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(ro)}scheduleWork(){if(this.working)return;let{state:to}=this.view,ro=to.field(Language.state);(ro.tree!=ro.context.tree||!ro.context.isDone(to.doc.length))&&(this.working=requestIdle(this.work))}work(to){this.working=null;let ro=Date.now();if(this.chunkEndoo+1e3,lo=io.context.work(()=>isInputPending&&isInputPending()||Date.now()>so,oo+(ao?0:1e5));this.chunkBudget-=Date.now()-ro,(lo||this.chunkBudget<=0)&&(io.context.takeTree(),this.view.dispatch({effects:Language.setState.of(new LanguageState(io.context))})),this.chunkBudget>0&&!(lo&&!ao)&&this.scheduleWork(),this.checkAsyncSchedule(io.context)}checkAsyncSchedule(to){to.scheduleOn&&(this.workScheduled++,to.scheduleOn.then(()=>this.scheduleWork()).catch(ro=>logException(this.view.state,ro)).then(()=>this.workScheduled--),to.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),language=Facet.define({combine(eo){return eo.length?eo[0]:null},enables:eo=>[Language.state,parseWorker,EditorView.contentAttributes.compute([eo],to=>{let ro=to.facet(eo);return ro&&ro.name?{"data-language":ro.name}:{}})]});class LanguageSupport{constructor(to,ro=[]){this.language=to,this.support=ro,this.extension=[to,ro]}}const indentService=Facet.define(),indentUnit=Facet.define({combine:eo=>{if(!eo.length)return" ";let to=eo[0];if(!to||/\S/.test(to)||Array.from(to).some(ro=>ro!=to[0]))throw new Error("Invalid indent unit: "+JSON.stringify(eo[0]));return to}});function getIndentUnit(eo){let to=eo.facet(indentUnit);return to.charCodeAt(0)==9?eo.tabSize*to.length:to.length}function indentString(eo,to){let ro="",no=eo.tabSize,oo=eo.facet(indentUnit)[0];if(oo==" "){for(;to>=no;)ro+=" ",to-=no;oo=" "}for(let io=0;io=to?syntaxIndentation(eo,ro,to):null}class IndentContext{constructor(to,ro={}){this.state=to,this.options=ro,this.unit=getIndentUnit(to)}lineAt(to,ro=1){let no=this.state.doc.lineAt(to),{simulateBreak:oo,simulateDoubleBreak:io}=this.options;return oo!=null&&oo>=no.from&&oo<=no.to?io&&oo==to?{text:"",from:to}:(ro<0?oo-1&&(io+=so-this.countColumn(no,no.search(/\S|$/))),io}countColumn(to,ro=to.length){return countColumn(to,this.state.tabSize,ro)}lineIndent(to,ro=1){let{text:no,from:oo}=this.lineAt(to,ro),io=this.options.overrideIndentation;if(io){let so=io(oo);if(so>-1)return so}return this.countColumn(no,no.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const indentNodeProp=new NodeProp;function syntaxIndentation(eo,to,ro){let no=to.resolveStack(ro),oo=no.node.enterUnfinishedNodesBefore(ro);if(oo!=no.node){let io=[];for(let so=oo;so!=no.node;so=so.parent)io.push(so);for(let so=io.length-1;so>=0;so--)no={node:io[so],next:no}}return indentFor(no,eo,ro)}function indentFor(eo,to,ro){for(let no=eo;no;no=no.next){let oo=indentStrategy(no.node);if(oo)return oo(TreeIndentContext.create(to,ro,no))}return 0}function ignoreClosed(eo){return eo.pos==eo.options.simulateBreak&&eo.options.simulateDoubleBreak}function indentStrategy(eo){let to=eo.type.prop(indentNodeProp);if(to)return to;let ro=eo.firstChild,no;if(ro&&(no=ro.type.prop(NodeProp.closedBy))){let oo=eo.lastChild,io=oo&&no.indexOf(oo.name)>-1;return so=>delimitedStrategy(so,!0,1,void 0,io&&!ignoreClosed(so)?oo.from:void 0)}return eo.parent==null?topIndent$1:null}function topIndent$1(){return 0}class TreeIndentContext extends IndentContext{constructor(to,ro,no){super(to.state,to.options),this.base=to,this.pos=ro,this.context=no}get node(){return this.context.node}static create(to,ro,no){return new TreeIndentContext(to,ro,no)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(to){let ro=this.state.doc.lineAt(to.from);for(;;){let no=to.resolve(ro.from);for(;no.parent&&no.parent.from==no.from;)no=no.parent;if(isParent(no,to))break;ro=this.state.doc.lineAt(no.from)}return this.lineIndent(ro.from)}continue(){return indentFor(this.context.next,this.base,this.pos)}}function isParent(eo,to){for(let ro=to;ro;ro=ro.parent)if(eo==ro)return!0;return!1}function bracketedAligned(eo){let to=eo.node,ro=to.childAfter(to.from),no=to.lastChild;if(!ro)return null;let oo=eo.options.simulateBreak,io=eo.state.doc.lineAt(ro.from),so=oo==null||oo<=io.from?io.to:Math.min(io.to,oo);for(let ao=ro.to;;){let lo=to.childAfter(ao);if(!lo||lo==no)return null;if(!lo.type.isSkipped)return lo.fromdelimitedStrategy(no,to,ro,eo)}function delimitedStrategy(eo,to,ro,no,oo){let io=eo.textAfter,so=io.match(/^\s*/)[0].length,ao=no&&io.slice(so,so+no.length)==no||oo==eo.pos+so,lo=to?bracketedAligned(eo):null;return lo?ao?eo.column(lo.from):eo.column(lo.to):eo.baseIndent+(ao?0:eo.unit*ro)}const DontIndentBeyond=200;function indentOnInput(){return EditorState.transactionFilter.of(eo=>{if(!eo.docChanged||!eo.isUserEvent("input.type")&&!eo.isUserEvent("input.complete"))return eo;let to=eo.startState.languageDataAt("indentOnInput",eo.startState.selection.main.head);if(!to.length)return eo;let ro=eo.newDoc,{head:no}=eo.newSelection.main,oo=ro.lineAt(no);if(no>oo.from+DontIndentBeyond)return eo;let io=ro.sliceString(oo.from,no);if(!to.some(uo=>uo.test(io)))return eo;let{state:so}=eo,ao=-1,lo=[];for(let{head:uo}of so.selection.ranges){let co=so.doc.lineAt(uo);if(co.from==ao)continue;ao=co.from;let fo=getIndentation(so,co.from);if(fo==null)continue;let ho=/^\s*/.exec(co.text)[0],po=indentString(so,fo);ho!=po&&lo.push({from:co.from,to:co.from+ho.length,insert:po})}return lo.length?[eo,{changes:lo,sequential:!0}]:eo})}const foldService=Facet.define(),foldNodeProp=new NodeProp;function foldInside(eo){let to=eo.firstChild,ro=eo.lastChild;return to&&to.toro)continue;if(io&&ao.from=to&&uo.to>ro&&(io=uo)}}return io}function isUnfinished(eo){let to=eo.lastChild;return to&&to.to==eo.to&&to.type.isError}function foldable(eo,to,ro){for(let no of eo.facet(foldService)){let oo=no(eo,to,ro);if(oo)return oo}return syntaxFolding(eo,to,ro)}function mapRange(eo,to){let ro=to.mapPos(eo.from,1),no=to.mapPos(eo.to,-1);return ro>=no?void 0:{from:ro,to:no}}const foldEffect=StateEffect.define({map:mapRange}),unfoldEffect=StateEffect.define({map:mapRange});function selectedLines(eo){let to=[];for(let{head:ro}of eo.state.selection.ranges)to.some(no=>no.from<=ro&&no.to>=ro)||to.push(eo.lineBlockAt(ro));return to}const foldState=StateField.define({create(){return Decoration.none},update(eo,to){eo=eo.map(to.changes);for(let ro of to.effects)if(ro.is(foldEffect)&&!foldExists(eo,ro.value.from,ro.value.to)){let{preparePlaceholder:no}=to.state.facet(foldConfig),oo=no?Decoration.replace({widget:new PreparedFoldWidget(no(to.state,ro.value))}):foldWidget;eo=eo.update({add:[oo.range(ro.value.from,ro.value.to)]})}else ro.is(unfoldEffect)&&(eo=eo.update({filter:(no,oo)=>ro.value.from!=no||ro.value.to!=oo,filterFrom:ro.value.from,filterTo:ro.value.to}));if(to.selection){let ro=!1,{head:no}=to.selection.main;eo.between(no,no,(oo,io)=>{oono&&(ro=!0)}),ro&&(eo=eo.update({filterFrom:no,filterTo:no,filter:(oo,io)=>io<=no||oo>=no}))}return eo},provide:eo=>EditorView.decorations.from(eo),toJSON(eo,to){let ro=[];return eo.between(0,to.doc.length,(no,oo)=>{ro.push(no,oo)}),ro},fromJSON(eo){if(!Array.isArray(eo)||eo.length%2)throw new RangeError("Invalid JSON for fold state");let to=[];for(let ro=0;ro{(!oo||oo.from>io)&&(oo={from:io,to:so})}),oo}function foldExists(eo,to,ro){let no=!1;return eo.between(to,to,(oo,io)=>{oo==to&&io==ro&&(no=!0)}),no}function maybeEnable(eo,to){return eo.field(foldState,!1)?to:to.concat(StateEffect.appendConfig.of(codeFolding()))}const foldCode=eo=>{for(let to of selectedLines(eo)){let ro=foldable(eo.state,to.from,to.to);if(ro)return eo.dispatch({effects:maybeEnable(eo.state,[foldEffect.of(ro),announceFold(eo,ro)])}),!0}return!1},unfoldCode=eo=>{if(!eo.state.field(foldState,!1))return!1;let to=[];for(let ro of selectedLines(eo)){let no=findFold(eo.state,ro.from,ro.to);no&&to.push(unfoldEffect.of(no),announceFold(eo,no,!1))}return to.length&&eo.dispatch({effects:to}),to.length>0};function announceFold(eo,to,ro=!0){let no=eo.state.doc.lineAt(to.from).number,oo=eo.state.doc.lineAt(to.to).number;return EditorView.announce.of(`${eo.state.phrase(ro?"Folded lines":"Unfolded lines")} ${no} ${eo.state.phrase("to")} ${oo}.`)}const foldAll=eo=>{let{state:to}=eo,ro=[];for(let no=0;no{let to=eo.state.field(foldState,!1);if(!to||!to.size)return!1;let ro=[];return to.between(0,eo.state.doc.length,(no,oo)=>{ro.push(unfoldEffect.of({from:no,to:oo}))}),eo.dispatch({effects:ro}),!0},foldKeymap=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:foldCode},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:unfoldCode},{key:"Ctrl-Alt-[",run:foldAll},{key:"Ctrl-Alt-]",run:unfoldAll}],defaultConfig={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},foldConfig=Facet.define({combine(eo){return combineConfig(eo,defaultConfig)}});function codeFolding(eo){let to=[foldState,baseTheme$1$1];return eo&&to.push(foldConfig.of(eo)),to}function widgetToDOM(eo,to){let{state:ro}=eo,no=ro.facet(foldConfig),oo=so=>{let ao=eo.lineBlockAt(eo.posAtDOM(so.target)),lo=findFold(eo.state,ao.from,ao.to);lo&&eo.dispatch({effects:unfoldEffect.of(lo)}),so.preventDefault()};if(no.placeholderDOM)return no.placeholderDOM(eo,oo,to);let io=document.createElement("span");return io.textContent=no.placeholderText,io.setAttribute("aria-label",ro.phrase("folded code")),io.title=ro.phrase("unfold"),io.className="cm-foldPlaceholder",io.onclick=oo,io}const foldWidget=Decoration.replace({widget:new class extends WidgetType{toDOM(eo){return widgetToDOM(eo,null)}}});class PreparedFoldWidget extends WidgetType{constructor(to){super(),this.value=to}eq(to){return this.value==to.value}toDOM(to){return widgetToDOM(to,this.value)}}const foldGutterDefaults={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class FoldMarker extends GutterMarker{constructor(to,ro){super(),this.config=to,this.open=ro}eq(to){return this.config==to.config&&this.open==to.open}toDOM(to){if(this.config.markerDOM)return this.config.markerDOM(this.open);let ro=document.createElement("span");return ro.textContent=this.open?this.config.openText:this.config.closedText,ro.title=to.state.phrase(this.open?"Fold line":"Unfold line"),ro}}function foldGutter(eo={}){let to=Object.assign(Object.assign({},foldGutterDefaults),eo),ro=new FoldMarker(to,!0),no=new FoldMarker(to,!1),oo=ViewPlugin.fromClass(class{constructor(so){this.from=so.viewport.from,this.markers=this.buildMarkers(so)}update(so){(so.docChanged||so.viewportChanged||so.startState.facet(language)!=so.state.facet(language)||so.startState.field(foldState,!1)!=so.state.field(foldState,!1)||syntaxTree(so.startState)!=syntaxTree(so.state)||to.foldingChanged(so))&&(this.markers=this.buildMarkers(so.view))}buildMarkers(so){let ao=new RangeSetBuilder;for(let lo of so.viewportLineBlocks){let uo=findFold(so.state,lo.from,lo.to)?no:foldable(so.state,lo.from,lo.to)?ro:null;uo&&ao.add(lo.from,lo.from,uo)}return ao.finish()}}),{domEventHandlers:io}=to;return[oo,gutter({class:"cm-foldGutter",markers(so){var ao;return((ao=so.plugin(oo))===null||ao===void 0?void 0:ao.markers)||RangeSet.empty},initialSpacer(){return new FoldMarker(to,!1)},domEventHandlers:Object.assign(Object.assign({},io),{click:(so,ao,lo)=>{if(io.click&&io.click(so,ao,lo))return!0;let uo=findFold(so.state,ao.from,ao.to);if(uo)return so.dispatch({effects:unfoldEffect.of(uo)}),!0;let co=foldable(so.state,ao.from,ao.to);return co?(so.dispatch({effects:foldEffect.of(co)}),!0):!1}})}),codeFolding()]}const baseTheme$1$1=EditorView.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class HighlightStyle{constructor(to,ro){this.specs=to;let no;function oo(ao){let lo=StyleModule.newName();return(no||(no=Object.create(null)))["."+lo]=ao,lo}const io=typeof ro.all=="string"?ro.all:ro.all?oo(ro.all):void 0,so=ro.scope;this.scope=so instanceof Language?ao=>ao.prop(languageDataProp)==so.data:so?ao=>ao==so:void 0,this.style=tagHighlighter(to.map(ao=>({tag:ao.tag,class:ao.class||oo(Object.assign({},ao,{tag:null}))})),{all:io}).style,this.module=no?new StyleModule(no):null,this.themeType=ro.themeType}static define(to,ro){return new HighlightStyle(to,ro||{})}}const highlighterFacet=Facet.define(),fallbackHighlighter=Facet.define({combine(eo){return eo.length?[eo[0]]:null}});function getHighlighters(eo){let to=eo.facet(highlighterFacet);return to.length?to:eo.facet(fallbackHighlighter)}function syntaxHighlighting(eo,to){let ro=[treeHighlighter],no;return eo instanceof HighlightStyle&&(eo.module&&ro.push(EditorView.styleModule.of(eo.module)),no=eo.themeType),to!=null&&to.fallback?ro.push(fallbackHighlighter.of(eo)):no?ro.push(highlighterFacet.computeN([EditorView.darkTheme],oo=>oo.facet(EditorView.darkTheme)==(no=="dark")?[eo]:[])):ro.push(highlighterFacet.of(eo)),ro}class TreeHighlighter{constructor(to){this.markCache=Object.create(null),this.tree=syntaxTree(to.state),this.decorations=this.buildDeco(to,getHighlighters(to.state)),this.decoratedTo=to.viewport.to}update(to){let ro=syntaxTree(to.state),no=getHighlighters(to.state),oo=no!=getHighlighters(to.startState),{viewport:io}=to.view,so=to.changes.mapPos(this.decoratedTo,1);ro.length=io.to?(this.decorations=this.decorations.map(to.changes),this.decoratedTo=so):(ro!=this.tree||to.viewportChanged||oo)&&(this.tree=ro,this.decorations=this.buildDeco(to.view,no),this.decoratedTo=io.to)}buildDeco(to,ro){if(!ro||!this.tree.length)return Decoration.none;let no=new RangeSetBuilder;for(let{from:oo,to:io}of to.visibleRanges)highlightTree(this.tree,ro,(so,ao,lo)=>{no.add(so,ao,this.markCache[lo]||(this.markCache[lo]=Decoration.mark({class:lo})))},oo,io);return no.finish()}}const treeHighlighter=Prec.high(ViewPlugin.fromClass(TreeHighlighter,{decorations:eo=>eo.decorations})),defaultHighlightStyle=HighlightStyle.define([{tag:tags.meta,color:"#404740"},{tag:tags.link,textDecoration:"underline"},{tag:tags.heading,textDecoration:"underline",fontWeight:"bold"},{tag:tags.emphasis,fontStyle:"italic"},{tag:tags.strong,fontWeight:"bold"},{tag:tags.strikethrough,textDecoration:"line-through"},{tag:tags.keyword,color:"#708"},{tag:[tags.atom,tags.bool,tags.url,tags.contentSeparator,tags.labelName],color:"#219"},{tag:[tags.literal,tags.inserted],color:"#164"},{tag:[tags.string,tags.deleted],color:"#a11"},{tag:[tags.regexp,tags.escape,tags.special(tags.string)],color:"#e40"},{tag:tags.definition(tags.variableName),color:"#00f"},{tag:tags.local(tags.variableName),color:"#30a"},{tag:[tags.typeName,tags.namespace],color:"#085"},{tag:tags.className,color:"#167"},{tag:[tags.special(tags.variableName),tags.macroName],color:"#256"},{tag:tags.definition(tags.propertyName),color:"#00c"},{tag:tags.comment,color:"#940"},{tag:tags.invalid,color:"#f00"}]),baseTheme$4=EditorView.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),DefaultScanDist=1e4,DefaultBrackets="()[]{}",bracketMatchingConfig=Facet.define({combine(eo){return combineConfig(eo,{afterCursor:!0,brackets:DefaultBrackets,maxScanDistance:DefaultScanDist,renderMatch:defaultRenderMatch})}}),matchingMark=Decoration.mark({class:"cm-matchingBracket"}),nonmatchingMark=Decoration.mark({class:"cm-nonmatchingBracket"});function defaultRenderMatch(eo){let to=[],ro=eo.matched?matchingMark:nonmatchingMark;return to.push(ro.range(eo.start.from,eo.start.to)),eo.end&&to.push(ro.range(eo.end.from,eo.end.to)),to}const bracketMatchingState=StateField.define({create(){return Decoration.none},update(eo,to){if(!to.docChanged&&!to.selection)return eo;let ro=[],no=to.state.facet(bracketMatchingConfig);for(let oo of to.state.selection.ranges){if(!oo.empty)continue;let io=matchBrackets(to.state,oo.head,-1,no)||oo.head>0&&matchBrackets(to.state,oo.head-1,1,no)||no.afterCursor&&(matchBrackets(to.state,oo.head,1,no)||oo.headEditorView.decorations.from(eo)}),bracketMatchingUnique=[bracketMatchingState,baseTheme$4];function bracketMatching(eo={}){return[bracketMatchingConfig.of(eo),bracketMatchingUnique]}const bracketMatchingHandle=new NodeProp;function matchingNodes(eo,to,ro){let no=eo.prop(to<0?NodeProp.openedBy:NodeProp.closedBy);if(no)return no;if(eo.name.length==1){let oo=ro.indexOf(eo.name);if(oo>-1&&oo%2==(to<0?1:0))return[ro[oo+to]]}return null}function findHandle(eo){let to=eo.type.prop(bracketMatchingHandle);return to?to(eo.node):eo}function matchBrackets(eo,to,ro,no={}){let oo=no.maxScanDistance||DefaultScanDist,io=no.brackets||DefaultBrackets,so=syntaxTree(eo),ao=so.resolveInner(to,ro);for(let lo=ao;lo;lo=lo.parent){let uo=matchingNodes(lo.type,ro,io);if(uo&&lo.from0?to>=co.from&&toco.from&&to<=co.to))return matchMarkedBrackets(eo,to,ro,lo,co,uo,io)}}return matchPlainBrackets(eo,to,ro,so,ao.type,oo,io)}function matchMarkedBrackets(eo,to,ro,no,oo,io,so){let ao=no.parent,lo={from:oo.from,to:oo.to},uo=0,co=ao==null?void 0:ao.cursor();if(co&&(ro<0?co.childBefore(no.from):co.childAfter(no.to)))do if(ro<0?co.to<=no.from:co.from>=no.to){if(uo==0&&io.indexOf(co.type.name)>-1&&co.from0)return null;let uo={from:ro<0?to-1:to,to:ro>0?to+1:to},co=eo.doc.iterRange(to,ro>0?eo.doc.length:0),fo=0;for(let ho=0;!co.next().done&&ho<=io;){let po=co.value;ro<0&&(ho+=po.length);let go=to+ho*ro;for(let vo=ro>0?0:po.length-1,bo=ro>0?po.length:-1;vo!=bo;vo+=ro){let xo=so.indexOf(po[vo]);if(!(xo<0||no.resolveInner(go+vo,1).type!=oo))if(xo%2==0==ro>0)fo++;else{if(fo==1)return{start:uo,end:{from:go+vo,to:go+vo+1},matched:xo>>1==lo>>1};fo--}}ro>0&&(ho+=po.length)}return co.done?{start:uo,matched:!1}:null}const noTokens=Object.create(null),typeArray=[NodeType.none],warned=[],byTag=Object.create(null),defaultTable=Object.create(null);for(let[eo,to]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])defaultTable[eo]=createTokenType(noTokens,to);function warnForPart(eo,to){warned.indexOf(eo)>-1||(warned.push(eo),console.warn(to))}function createTokenType(eo,to){let ro=[];for(let ao of to.split(" ")){let lo=[];for(let uo of ao.split(".")){let co=eo[uo]||tags[uo];co?typeof co=="function"?lo.length?lo=lo.map(co):warnForPart(uo,`Modifier ${uo} used at start of tag`):lo.length?warnForPart(uo,`Tag ${uo} used as modifier`):lo=Array.isArray(co)?co:[co]:warnForPart(uo,`Unknown highlighting tag ${uo}`)}for(let uo of lo)ro.push(uo)}if(!ro.length)return 0;let no=to.replace(/ /g,"_"),oo=no+" "+ro.map(ao=>ao.id),io=byTag[oo];if(io)return io.id;let so=byTag[oo]=NodeType.define({id:typeArray.length,name:no,props:[styleTags({[no]:ro})]});return typeArray.push(so),so.id}Direction.RTL,Direction.LTR;class CompletionContext{constructor(to,ro,no){this.state=to,this.pos=ro,this.explicit=no,this.abortListeners=[]}tokenBefore(to){let ro=syntaxTree(this.state).resolveInner(this.pos,-1);for(;ro&&to.indexOf(ro.name)<0;)ro=ro.parent;return ro?{from:ro.from,to:this.pos,text:this.state.sliceDoc(ro.from,this.pos),type:ro.type}:null}matchBefore(to){let ro=this.state.doc.lineAt(this.pos),no=Math.max(ro.from,this.pos-250),oo=ro.text.slice(no-ro.from,this.pos-ro.from),io=oo.search(ensureAnchor(to,!1));return io<0?null:{from:no+io,to:this.pos,text:oo.slice(io)}}get aborted(){return this.abortListeners==null}addEventListener(to,ro){to=="abort"&&this.abortListeners&&this.abortListeners.push(ro)}}function toSet(eo){let to=Object.keys(eo).join(""),ro=/\w/.test(to);return ro&&(to=to.replace(/\w/g,"")),`[${ro?"\\w":""}${to.replace(/[^\w\s]/g,"\\$&")}]`}function prefixMatch(eo){let to=Object.create(null),ro=Object.create(null);for(let{label:oo}of eo){to[oo[0]]=!0;for(let io=1;iotypeof oo=="string"?{label:oo}:oo),[ro,no]=to.every(oo=>/^\w+$/.test(oo.label))?[/\w*$/,/\w+$/]:prefixMatch(to);return oo=>{let io=oo.matchBefore(no);return io||oo.explicit?{from:io?io.from:oo.pos,options:to,validFor:ro}:null}}function ifNotIn(eo,to){return ro=>{for(let no=syntaxTree(ro.state).resolveInner(ro.pos,-1);no;no=no.parent){if(eo.indexOf(no.name)>-1)return null;if(no.type.isTop)break}return to(ro)}}let Option$1=class{constructor(to,ro,no,oo){this.completion=to,this.source=ro,this.match=no,this.score=oo}};function cur(eo){return eo.selection.main.from}function ensureAnchor(eo,to){var ro;let{source:no}=eo,oo=to&&no[0]!="^",io=no[no.length-1]!="$";return!oo&&!io?eo:new RegExp(`${oo?"^":""}(?:${no})${io?"$":""}`,(ro=eo.flags)!==null&&ro!==void 0?ro:eo.ignoreCase?"i":"")}const pickedCompletion=Annotation.define();function insertCompletionText(eo,to,ro,no){let{main:oo}=eo.selection,io=ro-oo.from,so=no-oo.from;return Object.assign(Object.assign({},eo.changeByRange(ao=>ao!=oo&&ro!=no&&eo.sliceDoc(ao.from+io,ao.from+so)!=eo.sliceDoc(ro,no)?{range:ao}:{changes:{from:ao.from+io,to:no==oo.from?ao.to:ao.from+so,insert:to},range:EditorSelection.cursor(ao.from+io+to.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const SourceCache=new WeakMap;function asSource(eo){if(!Array.isArray(eo))return eo;let to=SourceCache.get(eo);return to||SourceCache.set(eo,to=completeFromList(eo)),to}const startCompletionEffect=StateEffect.define(),closeCompletionEffect=StateEffect.define();class FuzzyMatcher{constructor(to){this.pattern=to,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let ro=0;ro=48&&To<=57||To>=97&&To<=122?2:To>=65&&To<=90?1:0:(wo=fromCodePoint(To))!=wo.toLowerCase()?1:wo!=wo.toUpperCase()?2:0;(!_o||Co==1&&bo||So==0&&Co!=0)&&(ro[fo]==To||no[fo]==To&&(ho=!0)?so[fo++]=_o:so.length&&(xo=!1)),So=Co,_o+=codePointSize(To)}return fo==lo&&so[0]==0&&xo?this.result(-100+(ho?-200:0),so,to):po==lo&&go==0?this.ret(-200-to.length+(vo==to.length?0:-100),[0,vo]):ao>-1?this.ret(-700-to.length,[ao,ao+this.pattern.length]):po==lo?this.ret(-900-to.length,[go,vo]):fo==lo?this.result(-100+(ho?-200:0)+-700+(xo?0:-1100),so,to):ro.length==2?null:this.result((oo[0]?-700:0)+-200+-1100,oo,to)}result(to,ro,no){let oo=[],io=0;for(let so of ro){let ao=so+(this.astral?codePointSize(codePointAt(no,so)):1);io&&oo[io-1]==so?oo[io-1]=ao:(oo[io++]=so,oo[io++]=ao)}return this.ret(to-no.length,oo)}}class StrictMatcher{constructor(to){this.pattern=to,this.matched=[],this.score=0,this.folded=to.toLowerCase()}match(to){if(to.length"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:defaultPositionInfo,filterStrict:!1,compareCompletions:(to,ro)=>to.label.localeCompare(ro.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(to,ro)=>to&&ro,closeOnBlur:(to,ro)=>to&&ro,icons:(to,ro)=>to&&ro,tooltipClass:(to,ro)=>no=>joinClass(to(no),ro(no)),optionClass:(to,ro)=>no=>joinClass(to(no),ro(no)),addToOptions:(to,ro)=>to.concat(ro),filterStrict:(to,ro)=>to||ro})}});function joinClass(eo,to){return eo?to?eo+" "+to:eo:to}function defaultPositionInfo(eo,to,ro,no,oo,io){let so=eo.textDirection==Direction.RTL,ao=so,lo=!1,uo="top",co,fo,ho=to.left-oo.left,po=oo.right-to.right,go=no.right-no.left,vo=no.bottom-no.top;if(ao&&ho=vo||_o>to.top?co=ro.bottom-to.top:(uo="bottom",co=to.bottom-ro.top)}let bo=(to.bottom-to.top)/io.offsetHeight,xo=(to.right-to.left)/io.offsetWidth;return{style:`${uo}: ${co/bo}px; max-width: ${fo/xo}px`,class:"cm-completionInfo-"+(lo?so?"left-narrow":"right-narrow":ao?"left":"right")}}function optionContent(eo){let to=eo.addToOptions.slice();return eo.icons&&to.push({render(ro){let no=document.createElement("div");return no.classList.add("cm-completionIcon"),ro.type&&no.classList.add(...ro.type.split(/\s+/g).map(oo=>"cm-completionIcon-"+oo)),no.setAttribute("aria-hidden","true"),no},position:20}),to.push({render(ro,no,oo,io){let so=document.createElement("span");so.className="cm-completionLabel";let ao=ro.displayLabel||ro.label,lo=0;for(let uo=0;uolo&&so.appendChild(document.createTextNode(ao.slice(lo,co)));let ho=so.appendChild(document.createElement("span"));ho.appendChild(document.createTextNode(ao.slice(co,fo))),ho.className="cm-completionMatchedText",lo=fo}return loro.position-no.position).map(ro=>ro.render)}function rangeAroundSelected(eo,to,ro){if(eo<=ro)return{from:0,to:eo};if(to<0&&(to=0),to<=eo>>1){let oo=Math.floor(to/ro);return{from:oo*ro,to:(oo+1)*ro}}let no=Math.floor((eo-to)/ro);return{from:eo-(no+1)*ro,to:eo-no*ro}}class CompletionTooltip{constructor(to,ro,no){this.view=to,this.stateField=ro,this.applyCompletion=no,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:lo=>this.placeInfo(lo),key:this},this.space=null,this.currentClass="";let oo=to.state.field(ro),{options:io,selected:so}=oo.open,ao=to.state.facet(completionConfig);this.optionContent=optionContent(ao),this.optionClass=ao.optionClass,this.tooltipClass=ao.tooltipClass,this.range=rangeAroundSelected(io.length,so,ao.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(to.state),this.dom.addEventListener("mousedown",lo=>{let{options:uo}=to.state.field(ro).open;for(let co=lo.target,fo;co&&co!=this.dom;co=co.parentNode)if(co.nodeName=="LI"&&(fo=/-(\d+)$/.exec(co.id))&&+fo[1]{let uo=to.state.field(this.stateField,!1);uo&&uo.tooltip&&to.state.facet(completionConfig).closeOnBlur&&lo.relatedTarget!=to.contentDOM&&to.dispatch({effects:closeCompletionEffect.of(null)})}),this.showOptions(io,oo.id)}mount(){this.updateSel()}showOptions(to,ro){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(to,ro,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(to){var ro;let no=to.state.field(this.stateField),oo=to.startState.field(this.stateField);if(this.updateTooltipClass(to.state),no!=oo){let{options:io,selected:so,disabled:ao}=no.open;(!oo.open||oo.open.options!=io)&&(this.range=rangeAroundSelected(io.length,so,to.state.facet(completionConfig).maxRenderedOptions),this.showOptions(io,no.id)),this.updateSel(),ao!=((ro=oo.open)===null||ro===void 0?void 0:ro.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!ao)}}updateTooltipClass(to){let ro=this.tooltipClass(to);if(ro!=this.currentClass){for(let no of this.currentClass.split(" "))no&&this.dom.classList.remove(no);for(let no of ro.split(" "))no&&this.dom.classList.add(no);this.currentClass=ro}}positioned(to){this.space=to,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let to=this.view.state.field(this.stateField),ro=to.open;if((ro.selected>-1&&ro.selected=this.range.to)&&(this.range=rangeAroundSelected(ro.options.length,ro.selected,this.view.state.facet(completionConfig).maxRenderedOptions),this.showOptions(ro.options,to.id)),this.updateSelectedOption(ro.selected)){this.destroyInfo();let{completion:no}=ro.options[ro.selected],{info:oo}=no;if(!oo)return;let io=typeof oo=="string"?document.createTextNode(oo):oo(no);if(!io)return;"then"in io?io.then(so=>{so&&this.view.state.field(this.stateField,!1)==to&&this.addInfoPane(so,no)}).catch(so=>logException(this.view.state,so,"completion info")):this.addInfoPane(io,no)}}addInfoPane(to,ro){this.destroyInfo();let no=this.info=document.createElement("div");if(no.className="cm-tooltip cm-completionInfo",to.nodeType!=null)no.appendChild(to),this.infoDestroy=null;else{let{dom:oo,destroy:io}=to;no.appendChild(oo),this.infoDestroy=io||null}this.dom.appendChild(no),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(to){let ro=null;for(let no=this.list.firstChild,oo=this.range.from;no;no=no.nextSibling,oo++)no.nodeName!="LI"||!no.id?oo--:oo==to?no.hasAttribute("aria-selected")||(no.setAttribute("aria-selected","true"),ro=no):no.hasAttribute("aria-selected")&&no.removeAttribute("aria-selected");return ro&&scrollIntoView(this.list,ro),ro}measureInfo(){let to=this.dom.querySelector("[aria-selected]");if(!to||!this.info)return null;let ro=this.dom.getBoundingClientRect(),no=this.info.getBoundingClientRect(),oo=to.getBoundingClientRect(),io=this.space;if(!io){let so=this.dom.ownerDocument.defaultView||window;io={left:0,top:0,right:so.innerWidth,bottom:so.innerHeight}}return oo.top>Math.min(io.bottom,ro.bottom)-10||oo.bottomno.from||no.from==0))if(io=ho,typeof uo!="string"&&uo.header)oo.appendChild(uo.header(uo));else{let po=oo.appendChild(document.createElement("completion-section"));po.textContent=ho}}const co=oo.appendChild(document.createElement("li"));co.id=ro+"-"+so,co.setAttribute("role","option");let fo=this.optionClass(ao);fo&&(co.className=fo);for(let ho of this.optionContent){let po=ho(ao,this.view.state,this.view,lo);po&&co.appendChild(po)}}return no.from&&oo.classList.add("cm-completionListIncompleteTop"),no.tonew CompletionTooltip(ro,eo,to)}function scrollIntoView(eo,to){let ro=eo.getBoundingClientRect(),no=to.getBoundingClientRect(),oo=ro.height/eo.offsetHeight;no.topro.bottom&&(eo.scrollTop+=(no.bottom-ro.bottom)/oo)}function score(eo){return(eo.boost||0)*100+(eo.apply?10:0)+(eo.info?5:0)+(eo.type?1:0)}function sortOptions(eo,to){let ro=[],no=null,oo=uo=>{ro.push(uo);let{section:co}=uo.completion;if(co){no||(no=[]);let fo=typeof co=="string"?co:co.name;no.some(ho=>ho.name==fo)||no.push(typeof co=="string"?{name:fo}:co)}},io=to.facet(completionConfig);for(let uo of eo)if(uo.hasResult()){let co=uo.result.getMatch;if(uo.result.filter===!1)for(let fo of uo.result.options)oo(new Option$1(fo,uo.source,co?co(fo):[],1e9-ro.length));else{let fo=to.sliceDoc(uo.from,uo.to),ho,po=io.filterStrict?new StrictMatcher(fo):new FuzzyMatcher(fo);for(let go of uo.result.options)if(ho=po.match(go.label)){let vo=go.displayLabel?co?co(go,ho.matched):[]:ho.matched;oo(new Option$1(go,uo.source,vo,ho.score+(go.boost||0)))}}}if(no){let uo=Object.create(null),co=0,fo=(ho,po)=>{var go,vo;return((go=ho.rank)!==null&&go!==void 0?go:1e9)-((vo=po.rank)!==null&&vo!==void 0?vo:1e9)||(ho.namefo.score-co.score||lo(co.completion,fo.completion))){let co=uo.completion;!ao||ao.label!=co.label||ao.detail!=co.detail||ao.type!=null&&co.type!=null&&ao.type!=co.type||ao.apply!=co.apply||ao.boost!=co.boost?so.push(uo):score(uo.completion)>score(ao)&&(so[so.length-1]=uo),ao=uo.completion}return so}class CompletionDialog{constructor(to,ro,no,oo,io,so){this.options=to,this.attrs=ro,this.tooltip=no,this.timestamp=oo,this.selected=io,this.disabled=so}setSelected(to,ro){return to==this.selected||to>=this.options.length?this:new CompletionDialog(this.options,makeAttrs(ro,to),this.tooltip,this.timestamp,to,this.disabled)}static build(to,ro,no,oo,io){let so=sortOptions(to,ro);if(!so.length)return oo&&to.some(lo=>lo.state==1)?new CompletionDialog(oo.options,oo.attrs,oo.tooltip,oo.timestamp,oo.selected,!0):null;let ao=ro.facet(completionConfig).selectOnOpen?0:-1;if(oo&&oo.selected!=ao&&oo.selected!=-1){let lo=oo.options[oo.selected].completion;for(let uo=0;uouo.hasResult()?Math.min(lo,uo.from):lo,1e8),create:createTooltip,above:io.aboveCursor},oo?oo.timestamp:Date.now(),ao,!1)}map(to){return new CompletionDialog(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:to.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class CompletionState{constructor(to,ro,no){this.active=to,this.id=ro,this.open=no}static start(){return new CompletionState(none$1,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(to){let{state:ro}=to,no=ro.facet(completionConfig),io=(no.override||ro.languageDataAt("autocomplete",cur(ro)).map(asSource)).map(ao=>(this.active.find(uo=>uo.source==ao)||new ActiveSource(ao,this.active.some(uo=>uo.state!=0)?1:0)).update(to,no));io.length==this.active.length&&io.every((ao,lo)=>ao==this.active[lo])&&(io=this.active);let so=this.open;so&&to.docChanged&&(so=so.map(to.changes)),to.selection||io.some(ao=>ao.hasResult()&&to.changes.touchesRange(ao.from,ao.to))||!sameResults(io,this.active)?so=CompletionDialog.build(io,ro,this.id,so,no):so&&so.disabled&&!io.some(ao=>ao.state==1)&&(so=null),!so&&io.every(ao=>ao.state!=1)&&io.some(ao=>ao.hasResult())&&(io=io.map(ao=>ao.hasResult()?new ActiveSource(ao.source,0):ao));for(let ao of to.effects)ao.is(setSelectedEffect)&&(so=so&&so.setSelected(ao.value,this.id));return io==this.active&&so==this.open?this:new CompletionState(io,this.id,so)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:baseAttrs}}function sameResults(eo,to){if(eo==to)return!0;for(let ro=0,no=0;;){for(;ro-1&&(ro["aria-activedescendant"]=eo+"-"+to),ro}const none$1=[];function getUserEvent(eo){return eo.isUserEvent("input.type")?"input":eo.isUserEvent("delete.backward")?"delete":null}class ActiveSource{constructor(to,ro,no=-1){this.source=to,this.state=ro,this.explicitPos=no}hasResult(){return!1}update(to,ro){let no=getUserEvent(to),oo=this;no?oo=oo.handleUserEvent(to,no,ro):to.docChanged?oo=oo.handleChange(to):to.selection&&oo.state!=0&&(oo=new ActiveSource(oo.source,0));for(let io of to.effects)if(io.is(startCompletionEffect))oo=new ActiveSource(oo.source,1,io.value?cur(to.state):-1);else if(io.is(closeCompletionEffect))oo=new ActiveSource(oo.source,0);else if(io.is(setActiveEffect))for(let so of io.value)so.source==oo.source&&(oo=so);return oo}handleUserEvent(to,ro,no){return ro=="delete"||!no.activateOnTyping?this.map(to.changes):new ActiveSource(this.source,1)}handleChange(to){return to.changes.touchesRange(cur(to.startState))?new ActiveSource(this.source,0):this.map(to.changes)}map(to){return to.empty||this.explicitPos<0?this:new ActiveSource(this.source,this.state,to.mapPos(this.explicitPos))}}class ActiveResult extends ActiveSource{constructor(to,ro,no,oo,io){super(to,2,ro),this.result=no,this.from=oo,this.to=io}hasResult(){return!0}handleUserEvent(to,ro,no){var oo;let io=this.result;io.map&&!to.changes.empty&&(io=io.map(io,to.changes));let so=to.changes.mapPos(this.from),ao=to.changes.mapPos(this.to,1),lo=cur(to.state);if((this.explicitPos<0?lo<=so:loao||!io||ro=="delete"&&cur(to.startState)==this.from)return new ActiveSource(this.source,ro=="input"&&no.activateOnTyping?1:0);let uo=this.explicitPos<0?-1:to.changes.mapPos(this.explicitPos);return checkValid(io.validFor,to.state,so,ao)?new ActiveResult(this.source,uo,io,so,ao):io.update&&(io=io.update(io,so,ao,new CompletionContext(to.state,lo,uo>=0)))?new ActiveResult(this.source,uo,io,io.from,(oo=io.to)!==null&&oo!==void 0?oo:cur(to.state)):new ActiveSource(this.source,1,uo)}handleChange(to){return to.changes.touchesRange(this.from,this.to)?new ActiveSource(this.source,0):this.map(to.changes)}map(to){return to.empty?this:(this.result.map?this.result.map(this.result,to):this.result)?new ActiveResult(this.source,this.explicitPos<0?-1:to.mapPos(this.explicitPos),this.result,to.mapPos(this.from),to.mapPos(this.to,1)):new ActiveSource(this.source,0)}}function checkValid(eo,to,ro,no){if(!eo)return!1;let oo=to.sliceDoc(ro,no);return typeof eo=="function"?eo(oo,ro,no,to):ensureAnchor(eo,!0).test(oo)}const setActiveEffect=StateEffect.define({map(eo,to){return eo.map(ro=>ro.map(to))}}),setSelectedEffect=StateEffect.define(),completionState=StateField.define({create(){return CompletionState.start()},update(eo,to){return eo.update(to)},provide:eo=>[showTooltip.from(eo,to=>to.tooltip),EditorView.contentAttributes.from(eo,to=>to.attrs)]});function applyCompletion(eo,to){const ro=to.completion.apply||to.completion.label;let no=eo.state.field(completionState).active.find(oo=>oo.source==to.source);return no instanceof ActiveResult?(typeof ro=="string"?eo.dispatch(Object.assign(Object.assign({},insertCompletionText(eo.state,ro,no.from,no.to)),{annotations:pickedCompletion.of(to.completion)})):ro(eo,to.completion,no.from,no.to),!0):!1}const createTooltip=completionTooltip(completionState,applyCompletion);function moveCompletionSelection(eo,to="option"){return ro=>{let no=ro.state.field(completionState,!1);if(!no||!no.open||no.open.disabled||Date.now()-no.open.timestamp-1?no.open.selected+oo*(eo?1:-1):eo?0:so-1;return ao<0?ao=to=="page"?0:so-1:ao>=so&&(ao=to=="page"?so-1:0),ro.dispatch({effects:setSelectedEffect.of(ao)}),!0}}const acceptCompletion=eo=>{let to=eo.state.field(completionState,!1);return eo.state.readOnly||!to||!to.open||to.open.selected<0||to.open.disabled||Date.now()-to.open.timestampeo.state.field(completionState,!1)?(eo.dispatch({effects:startCompletionEffect.of(!0)}),!0):!1,closeCompletion=eo=>{let to=eo.state.field(completionState,!1);return!to||!to.active.some(ro=>ro.state!=0)?!1:(eo.dispatch({effects:closeCompletionEffect.of(null)}),!0)};class RunningQuery{constructor(to,ro){this.active=to,this.context=ro,this.time=Date.now(),this.updates=[],this.done=void 0}}const MaxUpdateCount=50,MinAbortTime=1e3,completionPlugin=ViewPlugin.fromClass(class{constructor(eo){this.view=eo,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let to of eo.state.field(completionState).active)to.state==1&&this.startQuery(to)}update(eo){let to=eo.state.field(completionState);if(!eo.selectionSet&&!eo.docChanged&&eo.startState.field(completionState)==to)return;let ro=eo.transactions.some(oo=>(oo.selection||oo.docChanged)&&!getUserEvent(oo));for(let oo=0;ooMaxUpdateCount&&Date.now()-io.time>MinAbortTime){for(let so of io.context.abortListeners)try{so()}catch(ao){logException(this.view.state,ao)}io.context.abortListeners=null,this.running.splice(oo--,1)}else io.updates.push(...eo.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),eo.transactions.some(oo=>oo.effects.some(io=>io.is(startCompletionEffect)))&&(this.pendingStart=!0);let no=this.pendingStart?50:eo.state.facet(completionConfig).activateOnTypingDelay;if(this.debounceUpdate=to.active.some(oo=>oo.state==1&&!this.running.some(io=>io.active.source==oo.source))?setTimeout(()=>this.startUpdate(),no):-1,this.composing!=0)for(let oo of eo.transactions)getUserEvent(oo)=="input"?this.composing=2:this.composing==2&&oo.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:eo}=this.view,to=eo.field(completionState);for(let ro of to.active)ro.state==1&&!this.running.some(no=>no.active.source==ro.source)&&this.startQuery(ro)}startQuery(eo){let{state:to}=this.view,ro=cur(to),no=new CompletionContext(to,ro,eo.explicitPos==ro),oo=new RunningQuery(eo,no);this.running.push(oo),Promise.resolve(eo.source(no)).then(io=>{oo.context.aborted||(oo.done=io||null,this.scheduleAccept())},io=>{this.view.dispatch({effects:closeCompletionEffect.of(null)}),logException(this.view.state,io)})}scheduleAccept(){this.running.every(eo=>eo.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(completionConfig).updateSyncTime))}accept(){var eo;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let to=[],ro=this.view.state.facet(completionConfig);for(let no=0;noso.source==oo.active.source);if(io&&io.state==1)if(oo.done==null){let so=new ActiveSource(oo.active.source,0);for(let ao of oo.updates)so=so.update(ao,ro);so.state!=1&&to.push(so)}else this.startQuery(io)}to.length&&this.view.dispatch({effects:setActiveEffect.of(to)})}},{eventHandlers:{blur(eo){let to=this.view.state.field(completionState,!1);if(to&&to.tooltip&&this.view.state.facet(completionConfig).closeOnBlur){let ro=to.open&&getTooltip(this.view,to.open.tooltip);(!ro||!ro.dom.contains(eo.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:closeCompletionEffect.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:startCompletionEffect.of(!1)}),20),this.composing=0}}}),windows=typeof navigator=="object"&&/Win/.test(navigator.platform),commitCharacters=Prec.highest(EditorView.domEventHandlers({keydown(eo,to){let ro=to.state.field(completionState,!1);if(!ro||!ro.open||ro.open.disabled||ro.open.selected<0||eo.key.length>1||eo.ctrlKey&&!(windows&&eo.altKey)||eo.metaKey)return!1;let no=ro.open.options[ro.open.selected],oo=ro.active.find(so=>so.source==no.source),io=no.completion.commitCharacters||oo.result.commitCharacters;return io&&io.indexOf(eo.key)>-1&&applyCompletion(to,no),!1}})),baseTheme$3=EditorView.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class FieldPos{constructor(to,ro,no,oo){this.field=to,this.line=ro,this.from=no,this.to=oo}}class FieldRange{constructor(to,ro,no){this.field=to,this.from=ro,this.to=no}map(to){let ro=to.mapPos(this.from,-1,MapMode.TrackDel),no=to.mapPos(this.to,1,MapMode.TrackDel);return ro==null||no==null?null:new FieldRange(this.field,ro,no)}}class Snippet{constructor(to,ro){this.lines=to,this.fieldPositions=ro}instantiate(to,ro){let no=[],oo=[ro],io=to.doc.lineAt(ro),so=/^\s*/.exec(io.text)[0];for(let lo of this.lines){if(no.length){let uo=so,co=/^\t*/.exec(lo)[0].length;for(let fo=0;fonew FieldRange(lo.field,oo[lo.line]+lo.from,oo[lo.line]+lo.to));return{text:no,ranges:ao}}static parse(to){let ro=[],no=[],oo=[],io;for(let so of to.split(/\r\n?|\n/)){for(;io=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(so);){let ao=io[1]?+io[1]:null,lo=io[2]||io[3]||"",uo=-1;for(let co=0;co=uo&&fo.field++}oo.push(new FieldPos(uo,no.length,io.index,io.index+lo.length)),so=so.slice(0,io.index)+lo+so.slice(io.index+io[0].length)}for(let ao;ao=/\\([{}])/.exec(so);){so=so.slice(0,ao.index)+ao[1]+so.slice(ao.index+ao[0].length);for(let lo of oo)lo.line==no.length&&lo.from>ao.index&&(lo.from--,lo.to--)}no.push(so)}return new Snippet(no,oo)}}let fieldMarker=Decoration.widget({widget:new class extends WidgetType{toDOM(){let eo=document.createElement("span");return eo.className="cm-snippetFieldPosition",eo}ignoreEvent(){return!1}}}),fieldRange=Decoration.mark({class:"cm-snippetField"});class ActiveSnippet{constructor(to,ro){this.ranges=to,this.active=ro,this.deco=Decoration.set(to.map(no=>(no.from==no.to?fieldMarker:fieldRange).range(no.from,no.to)))}map(to){let ro=[];for(let no of this.ranges){let oo=no.map(to);if(!oo)return null;ro.push(oo)}return new ActiveSnippet(ro,this.active)}selectionInsideField(to){return to.ranges.every(ro=>this.ranges.some(no=>no.field==this.active&&no.from<=ro.from&&no.to>=ro.to))}}const setActive=StateEffect.define({map(eo,to){return eo&&eo.map(to)}}),moveToField=StateEffect.define(),snippetState=StateField.define({create(){return null},update(eo,to){for(let ro of to.effects){if(ro.is(setActive))return ro.value;if(ro.is(moveToField)&&eo)return new ActiveSnippet(eo.ranges,ro.value)}return eo&&to.docChanged&&(eo=eo.map(to.changes)),eo&&to.selection&&!eo.selectionInsideField(to.selection)&&(eo=null),eo},provide:eo=>EditorView.decorations.from(eo,to=>to?to.deco:Decoration.none)});function fieldSelection(eo,to){return EditorSelection.create(eo.filter(ro=>ro.field==to).map(ro=>EditorSelection.range(ro.from,ro.to)))}function snippet(eo){let to=Snippet.parse(eo);return(ro,no,oo,io)=>{let{text:so,ranges:ao}=to.instantiate(ro.state,oo),lo={changes:{from:oo,to:io,insert:Text$1.of(so)},scrollIntoView:!0,annotations:no?[pickedCompletion.of(no),Transaction.userEvent.of("input.complete")]:void 0};if(ao.length&&(lo.selection=fieldSelection(ao,0)),ao.some(uo=>uo.field>0)){let uo=new ActiveSnippet(ao,0),co=lo.effects=[setActive.of(uo)];ro.state.field(snippetState,!1)===void 0&&co.push(StateEffect.appendConfig.of([snippetState,addSnippetKeymap,snippetPointerHandler,baseTheme$3]))}ro.dispatch(ro.state.update(lo))}}function moveField(eo){return({state:to,dispatch:ro})=>{let no=to.field(snippetState,!1);if(!no||eo<0&&no.active==0)return!1;let oo=no.active+eo,io=eo>0&&!no.ranges.some(so=>so.field==oo+eo);return ro(to.update({selection:fieldSelection(no.ranges,oo),effects:setActive.of(io?null:new ActiveSnippet(no.ranges,oo)),scrollIntoView:!0})),!0}}const clearSnippet=({state:eo,dispatch:to})=>eo.field(snippetState,!1)?(to(eo.update({effects:setActive.of(null)})),!0):!1,nextSnippetField=moveField(1),prevSnippetField=moveField(-1),defaultSnippetKeymap=[{key:"Tab",run:nextSnippetField,shift:prevSnippetField},{key:"Escape",run:clearSnippet}],snippetKeymap=Facet.define({combine(eo){return eo.length?eo[0]:defaultSnippetKeymap}}),addSnippetKeymap=Prec.highest(keymap.compute([snippetKeymap],eo=>eo.facet(snippetKeymap)));function snippetCompletion(eo,to){return Object.assign(Object.assign({},to),{apply:snippet(eo)})}const snippetPointerHandler=EditorView.domEventHandlers({mousedown(eo,to){let ro=to.state.field(snippetState,!1),no;if(!ro||(no=to.posAtCoords({x:eo.clientX,y:eo.clientY}))==null)return!1;let oo=ro.ranges.find(io=>io.from<=no&&io.to>=no);return!oo||oo.field==ro.active?!1:(to.dispatch({selection:fieldSelection(ro.ranges,oo.field),effects:setActive.of(ro.ranges.some(io=>io.field>oo.field)?new ActiveSnippet(ro.ranges,oo.field):null),scrollIntoView:!0}),!0)}}),defaults={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},closeBracketEffect=StateEffect.define({map(eo,to){let ro=to.mapPos(eo,-1,MapMode.TrackAfter);return ro??void 0}}),closedBracket=new class extends RangeValue{};closedBracket.startSide=1;closedBracket.endSide=-1;const bracketState=StateField.define({create(){return RangeSet.empty},update(eo,to){if(eo=eo.map(to.changes),to.selection){let ro=to.state.doc.lineAt(to.selection.main.head);eo=eo.update({filter:no=>no>=ro.from&&no<=ro.to})}for(let ro of to.effects)ro.is(closeBracketEffect)&&(eo=eo.update({add:[closedBracket.range(ro.value,ro.value+1)]}));return eo}});function closeBrackets(){return[inputHandler,bracketState]}const definedClosing="()[]{}<>";function closing(eo){for(let to=0;to{if((android?eo.composing:eo.compositionStarted)||eo.state.readOnly)return!1;let oo=eo.state.selection.main;if(no.length>2||no.length==2&&codePointSize(codePointAt(no,0))==1||to!=oo.from||ro!=oo.to)return!1;let io=insertBracket(eo.state,no);return io?(eo.dispatch(io),!0):!1}),deleteBracketPair=({state:eo,dispatch:to})=>{if(eo.readOnly)return!1;let no=config(eo,eo.selection.main.head).brackets||defaults.brackets,oo=null,io=eo.changeByRange(so=>{if(so.empty){let ao=prevChar(eo.doc,so.head);for(let lo of no)if(lo==ao&&nextChar(eo.doc,so.head)==closing(codePointAt(lo,0)))return{changes:{from:so.head-lo.length,to:so.head+lo.length},range:EditorSelection.cursor(so.head-lo.length)}}return{range:oo=so}});return oo||to(eo.update(io,{scrollIntoView:!0,userEvent:"delete.backward"})),!oo},closeBracketsKeymap=[{key:"Backspace",run:deleteBracketPair}];function insertBracket(eo,to){let ro=config(eo,eo.selection.main.head),no=ro.brackets||defaults.brackets;for(let oo of no){let io=closing(codePointAt(oo,0));if(to==oo)return io==oo?handleSame(eo,oo,no.indexOf(oo+oo+oo)>-1,ro):handleOpen(eo,oo,io,ro.before||defaults.before);if(to==io&&closedBracketAt(eo,eo.selection.main.from))return handleClose(eo,oo,io)}return null}function closedBracketAt(eo,to){let ro=!1;return eo.field(bracketState).between(0,eo.doc.length,no=>{no==to&&(ro=!0)}),ro}function nextChar(eo,to){let ro=eo.sliceString(to,to+2);return ro.slice(0,codePointSize(codePointAt(ro,0)))}function prevChar(eo,to){let ro=eo.sliceString(to-2,to);return codePointSize(codePointAt(ro,0))==ro.length?ro:ro.slice(1)}function handleOpen(eo,to,ro,no){let oo=null,io=eo.changeByRange(so=>{if(!so.empty)return{changes:[{insert:to,from:so.from},{insert:ro,from:so.to}],effects:closeBracketEffect.of(so.to+to.length),range:EditorSelection.range(so.anchor+to.length,so.head+to.length)};let ao=nextChar(eo.doc,so.head);return!ao||/\s/.test(ao)||no.indexOf(ao)>-1?{changes:{insert:to+ro,from:so.head},effects:closeBracketEffect.of(so.head+to.length),range:EditorSelection.cursor(so.head+to.length)}:{range:oo=so}});return oo?null:eo.update(io,{scrollIntoView:!0,userEvent:"input.type"})}function handleClose(eo,to,ro){let no=null,oo=eo.changeByRange(io=>io.empty&&nextChar(eo.doc,io.head)==ro?{changes:{from:io.head,to:io.head+ro.length,insert:ro},range:EditorSelection.cursor(io.head+ro.length)}:no={range:io});return no?null:eo.update(oo,{scrollIntoView:!0,userEvent:"input.type"})}function handleSame(eo,to,ro,no){let oo=no.stringPrefixes||defaults.stringPrefixes,io=null,so=eo.changeByRange(ao=>{if(!ao.empty)return{changes:[{insert:to,from:ao.from},{insert:to,from:ao.to}],effects:closeBracketEffect.of(ao.to+to.length),range:EditorSelection.range(ao.anchor+to.length,ao.head+to.length)};let lo=ao.head,uo=nextChar(eo.doc,lo),co;if(uo==to){if(nodeStart(eo,lo))return{changes:{insert:to+to,from:lo},effects:closeBracketEffect.of(lo+to.length),range:EditorSelection.cursor(lo+to.length)};if(closedBracketAt(eo,lo)){let ho=ro&&eo.sliceDoc(lo,lo+to.length*3)==to+to+to?to+to+to:to;return{changes:{from:lo,to:lo+ho.length,insert:ho},range:EditorSelection.cursor(lo+ho.length)}}}else{if(ro&&eo.sliceDoc(lo-2*to.length,lo)==to+to&&(co=canStartStringAt(eo,lo-2*to.length,oo))>-1&&nodeStart(eo,co))return{changes:{insert:to+to+to+to,from:lo},effects:closeBracketEffect.of(lo+to.length),range:EditorSelection.cursor(lo+to.length)};if(eo.charCategorizer(lo)(uo)!=CharCategory.Word&&canStartStringAt(eo,lo,oo)>-1&&!probablyInString(eo,lo,to,oo))return{changes:{insert:to+to,from:lo},effects:closeBracketEffect.of(lo+to.length),range:EditorSelection.cursor(lo+to.length)}}return{range:io=ao}});return io?null:eo.update(so,{scrollIntoView:!0,userEvent:"input.type"})}function nodeStart(eo,to){let ro=syntaxTree(eo).resolveInner(to+1);return ro.parent&&ro.from==to}function probablyInString(eo,to,ro,no){let oo=syntaxTree(eo).resolveInner(to,-1),io=no.reduce((so,ao)=>Math.max(so,ao.length),0);for(let so=0;so<5;so++){let ao=eo.sliceDoc(oo.from,Math.min(oo.to,oo.from+ro.length+io)),lo=ao.indexOf(ro);if(!lo||lo>-1&&no.indexOf(ao.slice(0,lo))>-1){let co=oo.firstChild;for(;co&&co.from==oo.from&&co.to-co.from>ro.length+lo;){if(eo.sliceDoc(co.to-ro.length,co.to)==ro)return!1;co=co.firstChild}return!0}let uo=oo.to==to&&oo.parent;if(!uo)break;oo=uo}return!1}function canStartStringAt(eo,to,ro){let no=eo.charCategorizer(to);if(no(eo.sliceDoc(to-1,to))!=CharCategory.Word)return to;for(let oo of ro){let io=to-oo.length;if(eo.sliceDoc(io,to)==oo&&no(eo.sliceDoc(io-1,io))!=CharCategory.Word)return io}return-1}function autocompletion(eo={}){return[commitCharacters,completionState,completionConfig.of(eo),completionPlugin,completionKeymapExt,baseTheme$3]}const completionKeymap=[{key:"Ctrl-Space",run:startCompletion},{key:"Escape",run:closeCompletion},{key:"ArrowDown",run:moveCompletionSelection(!0)},{key:"ArrowUp",run:moveCompletionSelection(!1)},{key:"PageDown",run:moveCompletionSelection(!0,"page")},{key:"PageUp",run:moveCompletionSelection(!1,"page")},{key:"Enter",run:acceptCompletion}],completionKeymapExt=Prec.highest(keymap.computeN([completionConfig],eo=>eo.facet(completionConfig).defaultKeymap?[completionKeymap]:[]));var define_process_env_default={};class Stack{constructor(to,ro,no,oo,io,so,ao,lo,uo,co=0,fo){this.p=to,this.stack=ro,this.state=no,this.reducePos=oo,this.pos=io,this.score=so,this.buffer=ao,this.bufferBase=lo,this.curContext=uo,this.lookAhead=co,this.parent=fo}toString(){return`[${this.stack.filter((to,ro)=>ro%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(to,ro,no=0){let oo=to.parser.context;return new Stack(to,[],ro,no,no,0,[],0,oo?new StackContext(oo,oo.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(to,ro){this.stack.push(this.state,ro,this.bufferBase+this.buffer.length),this.state=to}reduce(to){var ro;let no=to>>19,oo=to&65535,{parser:io}=this.p,so=io.dynamicPrecedence(oo);if(so&&(this.score+=so),no==0){this.pushState(io.getGoto(this.state,oo,!0),this.reducePos),oo=2e3&&!(!((ro=this.p.parser.nodeSet.types[oo])===null||ro===void 0)&&ro.isAnonymous)&&(lo==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=uo):this.p.lastBigReductionSizeao;)this.stack.pop();this.reduceContext(oo,lo)}storeNode(to,ro,no,oo=4,io=!1){if(to==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&so.buffer[ao-4]==0&&so.buffer[ao-1]>-1){if(ro==no)return;if(so.buffer[ao-2]>=ro){so.buffer[ao-2]=no;return}}}if(!io||this.pos==no)this.buffer.push(to,ro,no,oo);else{let so=this.buffer.length;if(so>0&&this.buffer[so-4]!=0)for(;so>0&&this.buffer[so-2]>no;)this.buffer[so]=this.buffer[so-4],this.buffer[so+1]=this.buffer[so-3],this.buffer[so+2]=this.buffer[so-2],this.buffer[so+3]=this.buffer[so-1],so-=4,oo>4&&(oo-=4);this.buffer[so]=to,this.buffer[so+1]=ro,this.buffer[so+2]=no,this.buffer[so+3]=oo}}shift(to,ro,no,oo){if(to&131072)this.pushState(to&65535,this.pos);else if(to&262144)this.pos=oo,this.shiftContext(ro,no),ro<=this.p.parser.maxNode&&this.buffer.push(ro,no,oo,4);else{let io=to,{parser:so}=this.p;(oo>this.pos||ro<=so.maxNode)&&(this.pos=oo,so.stateFlag(io,1)||(this.reducePos=oo)),this.pushState(io,no),this.shiftContext(ro,no),ro<=so.maxNode&&this.buffer.push(ro,no,oo,4)}}apply(to,ro,no,oo){to&65536?this.reduce(to):this.shift(to,ro,no,oo)}useNode(to,ro){let no=this.p.reused.length-1;(no<0||this.p.reused[no]!=to)&&(this.p.reused.push(to),no++);let oo=this.pos;this.reducePos=this.pos=oo+to.length,this.pushState(ro,oo),this.buffer.push(no,oo,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,to,this,this.p.stream.reset(this.pos-to.length)))}split(){let to=this,ro=to.buffer.length;for(;ro>0&&to.buffer[ro-2]>to.reducePos;)ro-=4;let no=to.buffer.slice(ro),oo=to.bufferBase+ro;for(;to&&oo==to.bufferBase;)to=to.parent;return new Stack(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,no,oo,this.curContext,this.lookAhead,to)}recoverByDelete(to,ro){let no=to<=this.p.parser.maxNode;no&&this.storeNode(to,this.pos,ro,4),this.storeNode(0,this.pos,ro,no?8:4),this.pos=this.reducePos=ro,this.score-=190}canShift(to){for(let ro=new SimulatedStack(this);;){let no=this.p.parser.stateSlot(ro.state,4)||this.p.parser.hasAction(ro.state,to);if(no==0)return!1;if(!(no&65536))return!0;ro.reduce(no)}}recoverByInsert(to){if(this.stack.length>=300)return[];let ro=this.p.parser.nextStates(this.state);if(ro.length>8||this.stack.length>=120){let oo=[];for(let io=0,so;iolo&1&&ao==so)||oo.push(ro[io],so)}ro=oo}let no=[];for(let oo=0;oo>19,oo=ro&65535,io=this.stack.length-no*3;if(io<0||to.getGoto(this.stack[io],oo,!1)<0){let so=this.findForcedReduction();if(so==null)return!1;ro=so}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(ro),!0}findForcedReduction(){let{parser:to}=this.p,ro=[],no=(oo,io)=>{if(!ro.includes(oo))return ro.push(oo),to.allActions(oo,so=>{if(!(so&393216))if(so&65536){let ao=(so>>19)-io;if(ao>1){let lo=so&65535,uo=this.stack.length-ao*3;if(uo>=0&&to.getGoto(this.stack[uo],lo,!1)>=0)return ao<<19|65536|lo}}else{let ao=no(so,io+1);if(ao!=null)return ao}})};return no(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:to}=this.p;return to.data[to.stateSlot(this.state,1)]==65535&&!to.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(to){if(this.state!=to.state||this.stack.length!=to.stack.length)return!1;for(let ro=0;rothis.lookAhead&&(this.emitLookAhead(),this.lookAhead=to)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class StackContext{constructor(to,ro){this.tracker=to,this.context=ro,this.hash=to.strict?to.hash(ro):0}}class SimulatedStack{constructor(to){this.start=to,this.state=to.state,this.stack=to.stack,this.base=this.stack.length}reduce(to){let ro=to&65535,no=to>>19;no==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(no-1)*3;let oo=this.start.p.parser.getGoto(this.stack[this.base-3],ro,!0);this.state=oo}}class StackBufferCursor{constructor(to,ro,no){this.stack=to,this.pos=ro,this.index=no,this.buffer=to.buffer,this.index==0&&this.maybeNext()}static create(to,ro=to.bufferBase+to.buffer.length){return new StackBufferCursor(to,ro,ro-to.bufferBase)}maybeNext(){let to=this.stack.parent;to!=null&&(this.index=this.stack.bufferBase-to.bufferBase,this.stack=to,this.buffer=to.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new StackBufferCursor(this.stack,this.pos,this.index)}}function decodeArray(eo,to=Uint16Array){if(typeof eo!="string")return eo;let ro=null;for(let no=0,oo=0;no=92&&so--,so>=34&&so--;let lo=so-32;if(lo>=46&&(lo-=46,ao=!0),io+=lo,ao)break;io*=46}ro?ro[oo++]=io:ro=new to(io)}return ro}class CachedToken{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const nullToken=new CachedToken;class InputStream{constructor(to,ro){this.input=to,this.ranges=ro,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=nullToken,this.rangeIndex=0,this.pos=this.chunkPos=ro[0].from,this.range=ro[0],this.end=ro[ro.length-1].to,this.readNext()}resolveOffset(to,ro){let no=this.range,oo=this.rangeIndex,io=this.pos+to;for(;iono.to:io>=no.to;){if(oo==this.ranges.length-1)return null;let so=this.ranges[++oo];io+=so.from-no.to,no=so}return io}clipPos(to){if(to>=this.range.from&&toto)return Math.max(to,ro.from);return this.end}peek(to){let ro=this.chunkOff+to,no,oo;if(ro>=0&&ro=this.chunk2Pos&&noao.to&&(this.chunk2=this.chunk2.slice(0,ao.to-no)),oo=this.chunk2.charCodeAt(0)}}return no>=this.token.lookAhead&&(this.token.lookAhead=no+1),oo}acceptToken(to,ro=0){let no=ro?this.resolveOffset(ro,-1):this.pos;if(no==null||no=this.chunk2Pos&&this.posthis.range.to?to.slice(0,this.range.to-this.pos):to,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(to=1){for(this.chunkOff+=to;this.pos+to>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();to-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=to,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(to,ro){if(ro?(this.token=ro,ro.start=to,ro.lookAhead=to+1,ro.value=ro.extended=-1):this.token=nullToken,this.pos!=to){if(this.pos=to,to==this.end)return this.setDone(),this;for(;to=this.range.to;)this.range=this.ranges[++this.rangeIndex];to>=this.chunkPos&&to=this.chunkPos&&ro<=this.chunkPos+this.chunk.length)return this.chunk.slice(to-this.chunkPos,ro-this.chunkPos);if(to>=this.chunk2Pos&&ro<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(to-this.chunk2Pos,ro-this.chunk2Pos);if(to>=this.range.from&&ro<=this.range.to)return this.input.read(to,ro);let no="";for(let oo of this.ranges){if(oo.from>=ro)break;oo.to>to&&(no+=this.input.read(Math.max(oo.from,to),Math.min(oo.to,ro)))}return no}}class TokenGroup{constructor(to,ro){this.data=to,this.id=ro}token(to,ro){let{parser:no}=ro.p;readToken(this.data,to,ro,this.id,no.data,no.tokenPrecTable)}}TokenGroup.prototype.contextual=TokenGroup.prototype.fallback=TokenGroup.prototype.extend=!1;TokenGroup.prototype.fallback=TokenGroup.prototype.extend=!1;class ExternalTokenizer{constructor(to,ro={}){this.token=to,this.contextual=!!ro.contextual,this.fallback=!!ro.fallback,this.extend=!!ro.extend}}function readToken(eo,to,ro,no,oo,io){let so=0,ao=1<0){let go=eo[po];if(lo.allows(go)&&(to.token.value==-1||to.token.value==go||overrides(go,to.token.value,oo,io))){to.acceptToken(go);break}}let co=to.next,fo=0,ho=eo[so+2];if(to.next<0&&ho>fo&&eo[uo+ho*3-3]==65535){so=eo[uo+ho*3-1];continue e}for(;fo>1,go=uo+po+(po<<1),vo=eo[go],bo=eo[go+1]||65536;if(co=bo)fo=po+1;else{so=eo[go+2],to.advance();continue e}}break}}function findOffset(eo,to,ro){for(let no=to,oo;(oo=eo[no])!=65535;no++)if(oo==ro)return no-to;return-1}function overrides(eo,to,ro,no){let oo=findOffset(ro,no,to);return oo<0||findOffset(ro,no,eo)to)&&!no.type.isError)return ro<0?Math.max(0,Math.min(no.to-1,to-25)):Math.min(eo.length,Math.max(no.from+1,to+25));if(ro<0?no.prevSibling():no.nextSibling())break;if(!no.parent())return ro<0?0:eo.length}}class FragmentCursor{constructor(to,ro){this.fragments=to,this.nodeSet=ro,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let to=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(to){for(this.safeFrom=to.openStart?cutAt(to.tree,to.from+to.offset,1)-to.offset:to.from,this.safeTo=to.openEnd?cutAt(to.tree,to.to+to.offset,-1)-to.offset:to.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(to.tree),this.start.push(-to.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(to){if(toto)return this.nextStart=so,null;if(io instanceof Tree){if(so==to){if(so=Math.max(this.safeFrom,to)&&(this.trees.push(io),this.start.push(so),this.index.push(0))}else this.index[ro]++,this.nextStart=so+io.length}}}class TokenCache{constructor(to,ro){this.stream=ro,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=to.tokenizers.map(no=>new CachedToken)}getActions(to){let ro=0,no=null,{parser:oo}=to.p,{tokenizers:io}=oo,so=oo.stateSlot(to.state,3),ao=to.curContext?to.curContext.hash:0,lo=0;for(let uo=0;uofo.end+25&&(lo=Math.max(fo.lookAhead,lo)),fo.value!=0)){let ho=ro;if(fo.extended>-1&&(ro=this.addActions(to,fo.extended,fo.end,ro)),ro=this.addActions(to,fo.value,fo.end,ro),!co.extend&&(no=fo,ro>ho))break}}for(;this.actions.length>ro;)this.actions.pop();return lo&&to.setLookAhead(lo),!no&&to.pos==this.stream.end&&(no=new CachedToken,no.value=to.p.parser.eofTerm,no.start=no.end=to.pos,ro=this.addActions(to,no.value,no.end,ro)),this.mainToken=no,this.actions}getMainToken(to){if(this.mainToken)return this.mainToken;let ro=new CachedToken,{pos:no,p:oo}=to;return ro.start=no,ro.end=Math.min(no+1,oo.stream.end),ro.value=no==oo.stream.end?oo.parser.eofTerm:0,ro}updateCachedToken(to,ro,no){let oo=this.stream.clipPos(no.pos);if(ro.token(this.stream.reset(oo,to),no),to.value>-1){let{parser:io}=no.p;for(let so=0;so=0&&no.p.parser.dialect.allows(ao>>1)){ao&1?to.extended=ao>>1:to.value=ao>>1;break}}}else to.value=0,to.end=this.stream.clipPos(oo+1)}putAction(to,ro,no,oo){for(let io=0;ioto.bufferLength*4?new FragmentCursor(no,to.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let to=this.stacks,ro=this.minStackPos,no=this.stacks=[],oo,io;if(this.bigReductionCount>300&&to.length==1){let[so]=to;for(;so.forceReduce()&&so.stack.length&&so.stack[so.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let so=0;soro)no.push(ao);else{if(this.advanceStack(ao,no,to))continue;{oo||(oo=[],io=[]),oo.push(ao);let lo=this.tokens.getMainToken(ao);io.push(lo.value,lo.end)}}break}}if(!no.length){let so=oo&&findFinished(oo);if(so)return verbose&&console.log("Finish with "+this.stackID(so)),this.stackToTree(so);if(this.parser.strict)throw verbose&&oo&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+ro);this.recovering||(this.recovering=5)}if(this.recovering&&oo){let so=this.stoppedAt!=null&&oo[0].pos>this.stoppedAt?oo[0]:this.runRecovery(oo,io,no);if(so)return verbose&&console.log("Force-finish "+this.stackID(so)),this.stackToTree(so.forceAll())}if(this.recovering){let so=this.recovering==1?1:this.recovering*3;if(no.length>so)for(no.sort((ao,lo)=>lo.score-ao.score);no.length>so;)no.pop();no.some(ao=>ao.reducePos>ro)&&this.recovering--}else if(no.length>1){e:for(let so=0;so500&&uo.buffer.length>500)if((ao.score-uo.score||ao.buffer.length-uo.buffer.length)>0)no.splice(lo--,1);else{no.splice(so--,1);continue e}}}no.length>12&&no.splice(12,no.length-12)}this.minStackPos=no[0].pos;for(let so=1;so ":"";if(this.stoppedAt!=null&&oo>this.stoppedAt)return to.forceReduce()?to:null;if(this.fragments){let uo=to.curContext&&to.curContext.tracker.strict,co=uo?to.curContext.hash:0;for(let fo=this.fragments.nodeAt(oo);fo;){let ho=this.parser.nodeSet.types[fo.type.id]==fo.type?io.getGoto(to.state,fo.type.id):-1;if(ho>-1&&fo.length&&(!uo||(fo.prop(NodeProp.contextHash)||0)==co))return to.useNode(fo,ho),verbose&&console.log(so+this.stackID(to)+` (via reuse of ${io.getName(fo.type.id)})`),!0;if(!(fo instanceof Tree)||fo.children.length==0||fo.positions[0]>0)break;let po=fo.children[0];if(po instanceof Tree&&fo.positions[0]==0)fo=po;else break}}let ao=io.stateSlot(to.state,4);if(ao>0)return to.reduce(ao),verbose&&console.log(so+this.stackID(to)+` (via always-reduce ${io.getName(ao&65535)})`),!0;if(to.stack.length>=8400)for(;to.stack.length>6e3&&to.forceReduce(););let lo=this.tokens.getActions(to);for(let uo=0;uooo?ro.push(go):no.push(go)}return!1}advanceFully(to,ro){let no=to.pos;for(;;){if(!this.advanceStack(to,null,null))return!1;if(to.pos>no)return pushStackDedup(to,ro),!0}}runRecovery(to,ro,no){let oo=null,io=!1;for(let so=0;so ":"";if(ao.deadEnd&&(io||(io=!0,ao.restart(),verbose&&console.log(co+this.stackID(ao)+" (restarted)"),this.advanceFully(ao,no))))continue;let fo=ao.split(),ho=co;for(let po=0;fo.forceReduce()&&po<10&&(verbose&&console.log(ho+this.stackID(fo)+" (via force-reduce)"),!this.advanceFully(fo,no));po++)verbose&&(ho=this.stackID(fo)+" -> ");for(let po of ao.recoverByInsert(lo))verbose&&console.log(co+this.stackID(po)+" (via recover-insert)"),this.advanceFully(po,no);this.stream.end>ao.pos?(uo==ao.pos&&(uo++,lo=0),ao.recoverByDelete(lo,uo),verbose&&console.log(co+this.stackID(ao)+` (via recover-delete ${this.parser.getName(lo)})`),pushStackDedup(ao,no)):(!oo||oo.scoreeo;class ContextTracker{constructor(to){this.start=to.start,this.shift=to.shift||id,this.reduce=to.reduce||id,this.reuse=to.reuse||id,this.hash=to.hash||(()=>0),this.strict=to.strict!==!1}}class LRParser extends Parser{constructor(to){if(super(),this.wrappers=[],to.version!=14)throw new RangeError(`Parser version (${to.version}) doesn't match runtime version (14)`);let ro=to.nodeNames.split(" ");this.minRepeatTerm=ro.length;for(let ao=0;aoto.topRules[ao][1]),oo=[];for(let ao=0;ao=0)io(co,lo,ao[uo++]);else{let fo=ao[uo+-co];for(let ho=-co;ho>0;ho--)io(ao[uo++],lo,fo);uo++}}}this.nodeSet=new NodeSet(ro.map((ao,lo)=>NodeType.define({name:lo>=this.minRepeatTerm?void 0:ao,id:lo,props:oo[lo],top:no.indexOf(lo)>-1,error:lo==0,skipped:to.skippedNodes&&to.skippedNodes.indexOf(lo)>-1}))),to.propSources&&(this.nodeSet=this.nodeSet.extend(...to.propSources)),this.strict=!1,this.bufferLength=DefaultBufferLength;let so=decodeArray(to.tokenData);this.context=to.context,this.specializerSpecs=to.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let ao=0;aotypeof ao=="number"?new TokenGroup(so,ao):ao),this.topRules=to.topRules,this.dialects=to.dialects||{},this.dynamicPrecedences=to.dynamicPrecedences||null,this.tokenPrecTable=to.tokenPrec,this.termNames=to.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(to,ro,no){let oo=new Parse(this,to,ro,no);for(let io of this.wrappers)oo=io(oo,to,ro,no);return oo}getGoto(to,ro,no=!1){let oo=this.goto;if(ro>=oo[0])return-1;for(let io=oo[ro+1];;){let so=oo[io++],ao=so&1,lo=oo[io++];if(ao&&no)return lo;for(let uo=io+(so>>1);io0}validAction(to,ro){return!!this.allActions(to,no=>no==ro?!0:null)}allActions(to,ro){let no=this.stateSlot(to,4),oo=no?ro(no):void 0;for(let io=this.stateSlot(to,1);oo==null;io+=3){if(this.data[io]==65535)if(this.data[io+1]==1)io=pair(this.data,io+2);else break;oo=ro(pair(this.data,io+1))}return oo}nextStates(to){let ro=[];for(let no=this.stateSlot(to,1);;no+=3){if(this.data[no]==65535)if(this.data[no+1]==1)no=pair(this.data,no+2);else break;if(!(this.data[no+2]&1)){let oo=this.data[no+1];ro.some((io,so)=>so&1&&io==oo)||ro.push(this.data[no],oo)}}return ro}configure(to){let ro=Object.assign(Object.create(LRParser.prototype),this);if(to.props&&(ro.nodeSet=this.nodeSet.extend(...to.props)),to.top){let no=this.topRules[to.top];if(!no)throw new RangeError(`Invalid top rule name ${to.top}`);ro.top=no}return to.tokenizers&&(ro.tokenizers=this.tokenizers.map(no=>{let oo=to.tokenizers.find(io=>io.from==no);return oo?oo.to:no})),to.specializers&&(ro.specializers=this.specializers.slice(),ro.specializerSpecs=this.specializerSpecs.map((no,oo)=>{let io=to.specializers.find(ao=>ao.from==no.external);if(!io)return no;let so=Object.assign(Object.assign({},no),{external:io.to});return ro.specializers[oo]=getSpecializer(so),so})),to.contextTracker&&(ro.context=to.contextTracker),to.dialect&&(ro.dialect=this.parseDialect(to.dialect)),to.strict!=null&&(ro.strict=to.strict),to.wrap&&(ro.wrappers=ro.wrappers.concat(to.wrap)),to.bufferLength!=null&&(ro.bufferLength=to.bufferLength),ro}hasWrappers(){return this.wrappers.length>0}getName(to){return this.termNames?this.termNames[to]:String(to<=this.maxNode&&this.nodeSet.types[to].name||to)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(to){let ro=this.dynamicPrecedences;return ro==null?0:ro[to]||0}parseDialect(to){let ro=Object.keys(this.dialects),no=ro.map(()=>!1);if(to)for(let io of to.split(" ")){let so=ro.indexOf(io);so>=0&&(no[so]=!0)}let oo=null;for(let io=0;iono)&&ro.p.parser.stateFlag(ro.state,2)&&(!to||to.scoreeo.external(ro,no)<<1|to}return eo.get}const printKeyword=1,indent=194,dedent=195,newline$1=196,blankLineStart=197,newlineBracketed=198,eof=199,stringContent=200,Escape=2,replacementStart=3,stringEnd=201,ParenL=24,ParenthesizedExpression=25,TupleExpression=49,ComprehensionExpression=50,BracketL=55,ArrayExpression=56,ArrayComprehensionExpression=57,BraceL=59,DictionaryExpression=60,DictionaryComprehensionExpression=61,SetExpression=62,SetComprehensionExpression=63,ArgList=65,subscript=238,String$1=71,stringStart=241,stringStartD=242,stringStartL=243,stringStartLD=244,stringStartR=245,stringStartRD=246,stringStartRL=247,stringStartRLD=248,FormatString=72,stringStartF=249,stringStartFD=250,stringStartFL=251,stringStartFLD=252,stringStartFR=253,stringStartFRD=254,stringStartFRL=255,stringStartFRLD=256,FormatReplacement=73,nestedFormatReplacement=77,importList=264,TypeParamList=112,ParamList=130,SequencePattern=151,MappingPattern=152,PatternArgList=155,newline=10,carriageReturn=13,space=32,tab=9,hash=35,parenOpen=40,dot=46,braceOpen=123,braceClose=125,singleQuote=39,doubleQuote=34,backslash=92,letter_o=111,letter_x=120,letter_N=78,letter_u=117,letter_U=85,bracketed=new Set([ParenthesizedExpression,TupleExpression,ComprehensionExpression,importList,ArgList,ParamList,ArrayExpression,ArrayComprehensionExpression,subscript,SetExpression,SetComprehensionExpression,FormatString,FormatReplacement,nestedFormatReplacement,DictionaryExpression,DictionaryComprehensionExpression,SequencePattern,MappingPattern,PatternArgList,TypeParamList]);function isLineBreak(eo){return eo==newline||eo==carriageReturn}function isHex(eo){return eo>=48&&eo<=57||eo>=65&&eo<=70||eo>=97&&eo<=102}const newlines=new ExternalTokenizer((eo,to)=>{let ro;if(eo.next<0)eo.acceptToken(eof);else if(to.context.flags&cx_Bracketed)isLineBreak(eo.next)&&eo.acceptToken(newlineBracketed,1);else if(((ro=eo.peek(-1))<0||isLineBreak(ro))&&to.canShift(blankLineStart)){let no=0;for(;eo.next==space||eo.next==tab;)eo.advance(),no++;(eo.next==newline||eo.next==carriageReturn||eo.next==hash)&&eo.acceptToken(blankLineStart,-no)}else isLineBreak(eo.next)&&eo.acceptToken(newline$1,1)},{contextual:!0}),indentation=new ExternalTokenizer((eo,to)=>{let ro=to.context;if(ro.flags)return;let no=eo.peek(-1);if(no==newline||no==carriageReturn){let oo=0,io=0;for(;;){if(eo.next==space)oo++;else if(eo.next==tab)oo+=8-oo%8;else break;eo.advance(),io++}oo!=ro.indent&&eo.next!=newline&&eo.next!=carriageReturn&&eo.next!=hash&&(oo[eo,to|cx_String])),trackIndent=new ContextTracker({start:topIndent,reduce(eo,to,ro,no){return eo.flags&cx_Bracketed&&bracketed.has(to)||(to==String$1||to==FormatString)&&eo.flags&cx_String?eo.parent:eo},shift(eo,to,ro,no){return to==indent?new Context(eo,countIndent(no.read(no.pos,ro.pos)),0):to==dedent?eo.parent:to==ParenL||to==BracketL||to==BraceL||to==replacementStart?new Context(eo,0,cx_Bracketed):stringFlags.has(to)?new Context(eo,0,stringFlags.get(to)|eo.flags&cx_Bracketed):eo},hash(eo){return eo.hash}}),legacyPrint=new ExternalTokenizer(eo=>{for(let to=0;to<5;to++){if(eo.next!="print".charCodeAt(to))return;eo.advance()}if(!/\w/.test(String.fromCharCode(eo.next)))for(let to=0;;to++){let ro=eo.peek(to);if(!(ro==space||ro==tab)){ro!=parenOpen&&ro!=dot&&ro!=newline&&ro!=carriageReturn&&ro!=hash&&eo.acceptToken(printKeyword);return}}}),strings=new ExternalTokenizer((eo,to)=>{let{flags:ro}=to.context,no=ro&cx_DoubleQuote?doubleQuote:singleQuote,oo=(ro&cx_Long)>0,io=!(ro&cx_Raw),so=(ro&cx_Format)>0,ao=eo.pos;for(;!(eo.next<0);)if(so&&eo.next==braceOpen)if(eo.peek(1)==braceOpen)eo.advance(2);else{if(eo.pos==ao){eo.acceptToken(replacementStart,1);return}break}else if(io&&eo.next==backslash){if(eo.pos==ao){eo.advance();let lo=eo.next;lo>=0&&(eo.advance(),skipEscape(eo,lo)),eo.acceptToken(Escape);return}break}else if(eo.next==no&&(!oo||eo.peek(1)==no&&eo.peek(2)==no)){if(eo.pos==ao){eo.acceptToken(stringEnd,oo?3:1);return}break}else if(eo.next==newline){if(oo)eo.advance();else if(eo.pos==ao){eo.acceptToken(stringEnd);return}break}else eo.advance();eo.pos>ao&&eo.acceptToken(stringContent)});function skipEscape(eo,to){if(to==letter_o)for(let ro=0;ro<2&&eo.next>=48&&eo.next<=55;ro++)eo.advance();else if(to==letter_x)for(let ro=0;ro<2&&isHex(eo.next);ro++)eo.advance();else if(to==letter_u)for(let ro=0;ro<4&&isHex(eo.next);ro++)eo.advance();else if(to==letter_U)for(let ro=0;ro<8&&isHex(eo.next);ro++)eo.advance();else if(to==letter_N&&eo.next==braceOpen){for(eo.advance();eo.next>=0&&eo.next!=braceClose&&eo.next!=singleQuote&&eo.next!=doubleQuote&&eo.next!=newline;)eo.advance();eo.next==braceClose&&eo.advance()}}const pythonHighlighting=styleTags({'async "*" "**" FormatConversion FormatSpec':tags.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":tags.controlKeyword,"in not and or is del":tags.operatorKeyword,"from def class global nonlocal lambda":tags.definitionKeyword,import:tags.moduleKeyword,"with as print":tags.keyword,Boolean:tags.bool,None:tags.null,VariableName:tags.variableName,"CallExpression/VariableName":tags.function(tags.variableName),"FunctionDefinition/VariableName":tags.function(tags.definition(tags.variableName)),"ClassDefinition/VariableName":tags.definition(tags.className),PropertyName:tags.propertyName,"CallExpression/MemberExpression/PropertyName":tags.function(tags.propertyName),Comment:tags.lineComment,Number:tags.number,String:tags.string,FormatString:tags.special(tags.string),Escape:tags.escape,UpdateOp:tags.updateOperator,"ArithOp!":tags.arithmeticOperator,BitOp:tags.bitwiseOperator,CompareOp:tags.compareOperator,AssignOp:tags.definitionOperator,Ellipsis:tags.punctuation,At:tags.meta,"( )":tags.paren,"[ ]":tags.squareBracket,"{ }":tags.brace,".":tags.derefOperator,", ;":tags.separator}),spec_identifier={__proto__:null,await:44,or:54,and:56,in:60,not:62,is:64,if:70,else:72,lambda:76,yield:94,from:96,async:102,for:104,None:162,True:164,False:164,del:178,pass:182,break:186,continue:190,return:194,raise:202,import:206,as:208,global:212,nonlocal:214,assert:218,type:223,elif:236,while:240,try:246,except:248,finally:250,with:254,def:258,class:268,match:279,case:285},parser=LRParser.deserialize({version:14,states:"##pO`QeOOP$}OSOOO&WQtO'#HUOOQS'#Co'#CoOOQS'#Cp'#CpO'vQdO'#CnO*UQtO'#HTOOQS'#HU'#HUOOQS'#DU'#DUOOQS'#HT'#HTO*rQdO'#D_O+VQdO'#DfO+gQdO'#DjO+zOWO'#DuO,VOWO'#DvO.[QtO'#GuOOQS'#Gu'#GuO'vQdO'#GtO0ZQtO'#GtOOQS'#Eb'#EbO0rQdO'#EcOOQS'#Gs'#GsO0|QdO'#GrOOQV'#Gr'#GrO1XQdO'#FYOOQS'#G^'#G^O1^QdO'#FXOOQV'#IS'#ISOOQV'#Gq'#GqOOQV'#Fq'#FqQ`QeOOO'vQdO'#CqO1lQdO'#C}O1sQdO'#DRO2RQdO'#HYO2cQtO'#EVO'vQdO'#EWOOQS'#EY'#EYOOQS'#E['#E[OOQS'#E^'#E^O2wQdO'#E`O3_QdO'#EdO1XQdO'#EfO3rQtO'#EfO1XQdO'#EiO0rQdO'#ElO1XQdO'#EnO0rQdO'#EtO0rQdO'#EwO3}QdO'#EyO4UQdO'#FOO4aQdO'#EzO0rQdO'#FOO1XQdO'#FQO1XQdO'#FVO4fQdO'#F[P4mOdO'#GpPOOO)CBd)CBdOOQS'#Ce'#CeOOQS'#Cf'#CfOOQS'#Cg'#CgOOQS'#Ch'#ChOOQS'#Ci'#CiOOQS'#Cj'#CjOOQS'#Cl'#ClO'vQdO,59OO'vQdO,59OO'vQdO,59OO'vQdO,59OO'vQdO,59OO'vQdO,59OO4xQdO'#DoOOQS,5:Y,5:YO5]QdO'#HdOOQS,5:],5:]O5jQ!fO,5:]O5oQtO,59YO1lQdO,59bO1lQdO,59bO1lQdO,59bO8_QdO,59bO8dQdO,59bO8kQdO,59jO8rQdO'#HTO9xQdO'#HSOOQS'#HS'#HSOOQS'#D['#D[O:aQdO,59aO'vQdO,59aO:oQdO,59aOOQS,59y,59yO:tQdO,5:RO'vQdO,5:ROOQS,5:Q,5:QO;SQdO,5:QO;XQdO,5:XO'vQdO,5:XO'vQdO,5:VOOQS,5:U,5:UO;jQdO,5:UO;oQdO,5:WOOOW'#Fy'#FyO;tOWO,5:aOOQS,5:a,5:aOOOOQS'#Ds'#DsOOQS1G/w1G/wOOQS1G.|1G.|O!.mQtO1G.|O!.tQtO1G.|O1lQdO1G.|O!/aQdO1G/UOOQS'#DZ'#DZO0rQdO,59tOOQS1G.{1G.{O!/hQdO1G/eO!/xQdO1G/eO!0QQdO1G/fO'vQdO'#H[O!0VQdO'#H[O!0[QtO1G.{O!0lQdO,59iO!1rQdO,5=zO!2SQdO,5=zO!2[QdO1G/mO!2aQtO1G/mOOQS1G/l1G/lO!2qQdO,5=uO!3hQdO,5=uO0rQdO1G/qO!4VQdO1G/sO!4[QtO1G/sO!4lQtO1G/qOOQS1G/p1G/pOOQS1G/r1G/rOOOW-E9w-E9wOOQS1G/{1G/{O!4|QdO'#HxO0rQdO'#HxO!5_QdO,5>cOOOW-E9x-E9xOOQS1G/|1G/|OOQS-E9{-E9{O!5mQ#xO1G2zO!6^QtO1G2zO'vQdO,5iOOQS1G1`1G1`O!7^QdO1G1`OOQS'#DV'#DVO0rQdO,5=qOOQS,5=q,5=qO!7cQdO'#FrO!7nQdO,59oO!7vQdO1G/XO!8QQtO,5=uOOQS1G3`1G3`OOQS,5:m,5:mO!8qQdO'#GtOOQS,5lO!:sQdO,5>lO!;RQdO,5>hO!;iQdO,5>hO!;zQdO'#EpO0rQdO1G0tO!oO!D_QdO,5>oO!DgQtO,5>oO0rQdO1G1PO!DqQdO1G1PO4aQdO1G1UO!!_QdO1G1WOOQV,5;a,5;aO!DvQfO,5;aO!D{QgO1G1QO!H|QdO'#GZO4aQdO1G1QO4aQdO1G1QO!I^QdO,5>pO!IkQdO,5>pO1XQdO,5>pOOQV1G1U1G1UO!IsQdO'#FSO!JUQ!fO1G1WO!J^QdO1G1WOOQV1G1]1G1]O4aQdO1G1]O!JcQdO1G1]O!JkQdO'#F^OOQV1G1b1G1bO!!rQtO1G1bPOOO1G2v1G2vP!JpOSO1G2vOOQS,5=},5=}OOQS'#Dp'#DpO0rQdO,5=}O!JuQdO,5=|O!KYQdO,5=|OOQS1G/u1G/uO!KbQdO,5>PO!KrQdO,5>PO!KzQdO,5>PO!L_QdO,5>PO!LoQdO,5>POOQS1G3j1G3jOOQS7+$h7+$hO!7vQdO7+$pO!NbQdO1G.|O!NiQdO1G.|OOQS1G/`1G/`OOQS,5<`,5<`O'vQdO,5<`OOQS7+%P7+%PO!NpQdO7+%POOQS-E9r-E9rOOQS7+%Q7+%QO# QQdO,5=vO'vQdO,5=vOOQS7+$g7+$gO# VQdO7+%PO# _QdO7+%QO# dQdO1G3fOOQS7+%X7+%XO# tQdO1G3fO# |QdO7+%XOOQS,5<_,5<_O'vQdO,5<_O#!RQdO1G3aOOQS-E9q-E9qO#!xQdO7+%]OOQS7+%_7+%_O##WQdO1G3aO##uQdO7+%_O##zQdO1G3gO#$[QdO1G3gO#$dQdO7+%]O#$iQdO,5>dO#%SQdO,5>dO#%SQdO,5>dOOQS'#Dx'#DxO#%eO&jO'#DzO#%pO`O'#HyOOOW1G3}1G3}O#%uQdO1G3}O#%}QdO1G3}O#&YQ#xO7+(fO#&yQtO1G2UP#'dQdO'#GOOOQS,5e,5>eOOOW7+)i7+)iO#=gQdO7+)iO#=oQdO1G2zO#>YQdO1G2zP'vQdO'#FuO0rQdO<kQdO,5>kO#>|QdO,5>kO1XQdO,5>kO#?_QdO,5>jOOQS<mO#?rQdO,5>mOOQS1G0v1G0vOOQS<rO#IXQdO,5>rOOQS,5>r,5>rO#IdQdO,5>qO#IuQdO,5>qOOQS1G1Y1G1YOOQS,5;p,5;pOOQV<VAN>VO#MUQdO<cAN>cO0rQdO1G1|O#MfQtO1G1|P#MpQdO'#FvOOQS1G2R1G2RP#M}QdO'#F{O#N[QdO7+)jO#NuQdO,5>gOOOO-E9z-E9zOOOW<tO$4^QdO,5>tO1XQdO,5vO$'zQdO,5>vOOQS1G1p1G1pO$8UQtO,5<[OOQU7+'P7+'PO$*WQdO1G/iO$'zQdO,5wO$8dQdO,5>wOOQS1G1s1G1sOOQS7+'S7+'SP$'zQdO'#GdO$8lQdO1G4bO$8vQdO1G4bO$9OQdO1G4bOOQS7+%T7+%TO$9^QdO1G1tO$9lQtO'#FaO$9sQdO,5<}OOQS,5<},5<}O$:RQdO1G4cOOQS-E:a-E:aO$'zQdO,5<|O$:YQdO,5<|O$:_QdO7+)|OOQS-E:`-E:`O$:iQdO7+)|O$'zQdO,5PPP>S>t>wPP'Z'ZPP?WPP'Z'ZPP'Z'Z'Z'Z'Z?[@U'ZP@XP@_DfHSHWPHZHeHi'ZPPPHlHu'RP'R'RP'RP'RP'RP'RP'R'R'RP'RPP'RPP'RP'RPH{IXIaPIhInPIhPIhIhPPPIhPK|PLVLaLgK|PIhLpPIhPLwL}PMRMgNUNoMRMRNu! SMRMRMRMR! h! n! q! v! y!!T!!Z!!g!!y!#P!#Z!#a!#}!$T!$Z!$e!$k!$q!%T!%_!%e!%k!%q!%{!&R!&X!&_!&e!&o!&u!'P!'V!'`!'f!'u!'}!(X!(`PPPPPPPPPPP!(f!(i!(o!(x!)S!)_PPPPPPPPPPPP!.R!/g!3g!6wPP!7P!7`!7i!8b!8X!8k!8q!8t!8w!8z!9S!9sPPPPPPPPPPPPPPPPP!9v!9z!:QP!:f!:j!:v!;S!;Y!;c!;f!;i!;o!;u!;{!_![!]Do!]!^Es!^!_FZ!_!`Gk!`!aHX!a!b%T!b!cIf!c!dJU!d!eK^!e!hJU!h!i!#f!i!tJU!t!u!,|!u!wJU!w!x!.t!x!}JU!}#O!0S#O#P&o#P#Q!0j#Q#R!1Q#R#SJU#S#T%T#T#UJU#U#VK^#V#YJU#Y#Z!#f#Z#fJU#f#g!,|#g#iJU#i#j!.t#j#oJU#o#p!1n#p#q!1s#q#r!2a#r#s!2f#s$g%T$g;'SJU;'S;=`KW<%lOJU`%YT&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T`%lP;=`<%l%To%v]&n`%c_OX%TXY%oY[%T[]%o]p%Tpq%oq#O%T#O#P&o#P#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To&tX&n`OY%TYZ%oZ]%T]^%o^#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc'f[&n`O!_%T!_!`([!`#T%T#T#U(r#U#f%T#f#g(r#g#h(r#h#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc(cTmR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc(yT!mR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk)aV&n`&[ZOr%Trs)vs#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk){V&n`Or%Trs*bs#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk*iT&n`&^ZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To+PZS_&n`OY*xYZ%TZ]*x]^%T^#o*x#o#p+r#p#q*x#q#r+r#r;'S*x;'S;=`,^<%lO*x_+wTS_OY+rZ]+r^;'S+r;'S;=`,W<%lO+r_,ZP;=`<%l+ro,aP;=`<%l*xj,kV%rQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj-XT!xY&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj-oV%lQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk.]V&n`&ZZOw%Twx.rx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk.wV&n`Ow%Twx/^x#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk/eT&n`&]ZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk/{ThZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc0cTgR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk0yXVZ&n`Oz%Tz{1f{!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk1mVaR&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk2ZV%oZ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc2wTzR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To3_W%pZ&n`O!_%T!_!`-Q!`!a3w!a#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Td4OT&{S&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk4fX!fQ&n`O!O%T!O!P5R!P!Q%T!Q![6T![#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk5WV&n`O!O%T!O!P5m!P#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk5tT!rZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti6[a!hX&n`O!Q%T!Q![6T![!g%T!g!h7a!h!l%T!l!m9s!m#R%T#R#S6T#S#X%T#X#Y7a#Y#^%T#^#_9s#_#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti7fZ&n`O{%T{|8X|}%T}!O8X!O!Q%T!Q![8s![#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti8^V&n`O!Q%T!Q![8s![#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti8z]!hX&n`O!Q%T!Q![8s![!l%T!l!m9s!m#R%T#R#S8s#S#^%T#^#_9s#_#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti9zT!hX&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk:bX%qR&n`O!P%T!P!Q:}!Q!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj;UV%sQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti;ro!hX&n`O!O%T!O!P=s!P!Q%T!Q![>_![!d%T!d!e?q!e!g%T!g!h7a!h!l%T!l!m9s!m!q%T!q!rA]!r!z%T!z!{Bq!{#R%T#R#S>_#S#U%T#U#V?q#V#X%T#X#Y7a#Y#^%T#^#_9s#_#c%T#c#dA]#d#l%T#l#mBq#m#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti=xV&n`O!Q%T!Q![6T![#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti>fc!hX&n`O!O%T!O!P=s!P!Q%T!Q![>_![!g%T!g!h7a!h!l%T!l!m9s!m#R%T#R#S>_#S#X%T#X#Y7a#Y#^%T#^#_9s#_#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti?vY&n`O!Q%T!Q!R@f!R!S@f!S#R%T#R#S@f#S#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti@mY!hX&n`O!Q%T!Q!R@f!R!S@f!S#R%T#R#S@f#S#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TiAbX&n`O!Q%T!Q!YA}!Y#R%T#R#SA}#S#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TiBUX!hX&n`O!Q%T!Q!YA}!Y#R%T#R#SA}#S#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TiBv]&n`O!Q%T!Q![Co![!c%T!c!iCo!i#R%T#R#SCo#S#T%T#T#ZCo#Z#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TiCv]!hX&n`O!Q%T!Q![Co![!c%T!c!iCo!i#R%T#R#SCo#S#T%T#T#ZCo#Z#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%ToDvV{_&n`O!_%T!_!`E]!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TcEdT%{R&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkEzT#gZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkFbXmR&n`O!^%T!^!_F}!_!`([!`!a([!a#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TjGUV%mQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkGrV%zZ&n`O!_%T!_!`([!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkH`WmR&n`O!_%T!_!`([!`!aHx!a#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TjIPV%nQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkIoV_Q#}P&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%ToJ_]&n`&YS%uZO!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUoKZP;=`<%lJUoKge&n`&YS%uZOr%Trs)Ysw%Twx.Ux!Q%T!Q![JU![!c%T!c!tJU!t!uLx!u!}JU!}#R%T#R#SJU#S#T%T#T#fJU#f#gLx#g#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUoMRa&n`&YS%uZOr%TrsNWsw%Twx! vx!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUkN_V&n`&`ZOr%TrsNts#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkNyV&n`Or%Trs! `s#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk! gT&n`&bZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk! }V&n`&_ZOw%Twx!!dx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!!iV&n`Ow%Twx!#Ox#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!#VT&n`&aZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To!#oe&n`&YS%uZOr%Trs!%Qsw%Twx!&px!Q%T!Q![JU![!c%T!c!tJU!t!u!(`!u!}JU!}#R%T#R#SJU#S#T%T#T#fJU#f#g!(`#g#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!%XV&n`&dZOr%Trs!%ns#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!%sV&n`Or%Trs!&Ys#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!&aT&n`&fZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!&wV&n`&cZOw%Twx!'^x#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!'cV&n`Ow%Twx!'xx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!(PT&n`&eZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To!(ia&n`&YS%uZOr%Trs!)nsw%Twx!+^x!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!)uV&n`&hZOr%Trs!*[s#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!*aV&n`Or%Trs!*vs#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!*}T&n`&jZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!+eV&n`&gZOw%Twx!+zx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!,PV&n`Ow%Twx!,fx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!,mT&n`&iZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To!-Vi&n`&YS%uZOr%TrsNWsw%Twx! vx!Q%T!Q![JU![!c%T!c!dJU!d!eLx!e!hJU!h!i!(`!i!}JU!}#R%T#R#SJU#S#T%T#T#UJU#U#VLx#V#YJU#Y#Z!(`#Z#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUo!.}a&n`&YS%uZOr%Trs)Ysw%Twx.Ux!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!0ZT!XZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc!0qT!WR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj!1XV%kQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!1sO!]~k!1zV%jR&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!2fO![~i!2mT%tX&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T",tokenizers:[legacyPrint,indentation,newlines,strings,0,1,2,3,4],topRules:{Script:[0,5]},specialized:[{term:221,get:eo=>spec_identifier[eo]||-1}],tokenPrec:7646}),cache=new NodeWeakMap,ScopeNodes=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function defID(eo){return(to,ro,no)=>{if(no)return!1;let oo=to.node.getChild("VariableName");return oo&&ro(oo,eo),!0}}const gatherCompletions={FunctionDefinition:defID("function"),ClassDefinition:defID("class"),ForStatement(eo,to,ro){if(ro){for(let no=eo.node.firstChild;no;no=no.nextSibling)if(no.name=="VariableName")to(no,"variable");else if(no.name=="in")break}},ImportStatement(eo,to){var ro,no;let{node:oo}=eo,io=((ro=oo.firstChild)===null||ro===void 0?void 0:ro.name)=="from";for(let so=oo.getChild("import");so;so=so.nextSibling)so.name=="VariableName"&&((no=so.nextSibling)===null||no===void 0?void 0:no.name)!="as"&&to(so,io?"variable":"namespace")},AssignStatement(eo,to){for(let ro=eo.node.firstChild;ro;ro=ro.nextSibling)if(ro.name=="VariableName")to(ro,"variable");else if(ro.name==":"||ro.name=="AssignOp")break},ParamList(eo,to){for(let ro=null,no=eo.node.firstChild;no;no=no.nextSibling)no.name=="VariableName"&&(!ro||!/\*|AssignOp/.test(ro.name))&&to(no,"variable"),ro=no},CapturePattern:defID("variable"),AsPattern:defID("variable"),__proto__:null};function getScope(eo,to){let ro=cache.get(to);if(ro)return ro;let no=[],oo=!0;function io(so,ao){let lo=eo.sliceString(so.from,so.to);no.push({label:lo,type:ao})}return to.cursor(IterMode.IncludeAnonymous).iterate(so=>{if(so.name){let ao=gatherCompletions[so.name];if(ao&&ao(so,io,oo)||!oo&&ScopeNodes.has(so.name))return!1;oo=!1}else if(so.to-so.from>8192){for(let ao of getScope(eo,so.node))no.push(ao);return!1}}),cache.set(to,no),no}const Identifier=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,dontComplete=["String","FormatString","Comment","PropertyName"];function localCompletionSource(eo){let to=syntaxTree(eo.state).resolveInner(eo.pos,-1);if(dontComplete.indexOf(to.name)>-1)return null;let ro=to.name=="VariableName"||to.to-to.from<20&&Identifier.test(eo.state.sliceDoc(to.from,to.to));if(!ro&&!eo.explicit)return null;let no=[];for(let oo=to;oo;oo=oo.parent)ScopeNodes.has(oo.name)&&(no=no.concat(getScope(eo.state.doc,oo)));return{options:no,from:ro?to.from:eo.pos,validFor:Identifier}}const globals=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map(eo=>({label:eo,type:"constant"})).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map(eo=>({label:eo,type:"type"}))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map(eo=>({label:eo,type:"class"}))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map(eo=>({label:eo,type:"function"}))),snippets=[snippetCompletion("def ${name}(${params}):\n ${}",{label:"def",detail:"function",type:"keyword"}),snippetCompletion("for ${name} in ${collection}:\n ${}",{label:"for",detail:"loop",type:"keyword"}),snippetCompletion("while ${}:\n ${}",{label:"while",detail:"loop",type:"keyword"}),snippetCompletion("try:\n ${}\nexcept ${error}:\n ${}",{label:"try",detail:"/ except block",type:"keyword"}),snippetCompletion(`if \${}: + +`,{label:"if",detail:"block",type:"keyword"}),snippetCompletion("if ${}:\n ${}\nelse:\n ${}",{label:"if",detail:"/ else block",type:"keyword"}),snippetCompletion("class ${name}:\n def __init__(self, ${params}):\n ${}",{label:"class",detail:"definition",type:"keyword"}),snippetCompletion("import ${module}",{label:"import",detail:"statement",type:"keyword"}),snippetCompletion("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],globalCompletion=ifNotIn(dontComplete,completeFromList(globals.concat(snippets)));function indentBody(eo,to){let ro=eo.baseIndentFor(to),no=eo.lineAt(eo.pos,-1),oo=no.from+no.text.length;return/^\s*($|#)/.test(no.text)&&eo.node.toro?null:ro+eo.unit}const pythonLanguage=LRLanguage.define({name:"python",parser:parser.configure({props:[indentNodeProp.add({Body:eo=>{var to;return(to=indentBody(eo,eo.node))!==null&&to!==void 0?to:eo.continue()},IfStatement:eo=>/^\s*(else:|elif )/.test(eo.textAfter)?eo.baseIndent:eo.continue(),"ForStatement WhileStatement":eo=>/^\s*else:/.test(eo.textAfter)?eo.baseIndent:eo.continue(),TryStatement:eo=>/^\s*(except |finally:|else:)/.test(eo.textAfter)?eo.baseIndent:eo.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":delimitedIndent({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":delimitedIndent({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":delimitedIndent({closing:"]"}),"String FormatString":()=>null,Script:eo=>{if(eo.pos+/\s*/.exec(eo.textAfter)[0].length>=eo.node.to){let to=null;for(let ro=eo.node,no=ro.to;ro=ro.lastChild,!(!ro||ro.to!=no);)ro.type.name=="Body"&&(to=ro);if(to){let ro=indentBody(eo,to);if(ro!=null)return ro}}return eo.continue()}}),foldNodeProp.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":foldInside,Body:(eo,to)=>({from:eo.from+1,to:eo.to-(eo.to==to.doc.length?0:1)})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/}});function python(){return new LanguageSupport(pythonLanguage,[pythonLanguage.data.of({autocomplete:localCompletionSource}),pythonLanguage.data.of({autocomplete:globalCompletion})])}var createTheme=eo=>{var{theme:to,settings:ro={},styles:no=[]}=eo,oo={".cm-gutters":{}},io={};ro.background&&(io.backgroundColor=ro.background),ro.backgroundImage&&(io.backgroundImage=ro.backgroundImage),ro.foreground&&(io.color=ro.foreground),(ro.background||ro.foreground)&&(oo["&"]=io),ro.fontFamily&&(oo["&.cm-editor .cm-scroller"]={fontFamily:ro.fontFamily}),ro.gutterBackground&&(oo[".cm-gutters"].backgroundColor=ro.gutterBackground),ro.gutterForeground&&(oo[".cm-gutters"].color=ro.gutterForeground),ro.gutterBorder&&(oo[".cm-gutters"].borderRightColor=ro.gutterBorder),ro.caret&&(oo[".cm-content"]={caretColor:ro.caret},oo[".cm-cursor, .cm-dropCursor"]={borderLeftColor:ro.caret});var so={};ro.gutterActiveForeground&&(so.color=ro.gutterActiveForeground),ro.lineHighlight&&(oo[".cm-activeLine"]={backgroundColor:ro.lineHighlight},so.backgroundColor=ro.lineHighlight),oo[".cm-activeLineGutter"]=so,ro.selection&&(oo["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:ro.selection+" !important"}),ro.selectionMatch&&(oo["& .cm-selectionMatch"]={backgroundColor:ro.selectionMatch});var ao=EditorView.theme(oo,{dark:to==="dark"}),lo=HighlightStyle.define(no),uo=[ao,syntaxHighlighting(lo)];return uo},defaultSettingsVscodeDark={background:"#1e1e1e",foreground:"#9cdcfe",caret:"#c6c6c6",selection:"#6199ff2f",selectionMatch:"#72a1ff59",lineHighlight:"#ffffff0f",gutterBackground:"#1e1e1e",gutterForeground:"#838383",gutterActiveForeground:"#fff",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace'};function vscodeDarkInit(eo){var{theme:to="dark",settings:ro={},styles:no=[]}=eo||{};return createTheme({theme:to,settings:_extends$c({},defaultSettingsVscodeDark,ro),styles:[{tag:[tags.keyword,tags.operatorKeyword,tags.modifier,tags.color,tags.constant(tags.name),tags.standard(tags.name),tags.standard(tags.tagName),tags.special(tags.brace),tags.atom,tags.bool,tags.special(tags.variableName)],color:"#569cd6"},{tag:[tags.controlKeyword,tags.moduleKeyword],color:"#c586c0"},{tag:[tags.name,tags.deleted,tags.character,tags.macroName,tags.propertyName,tags.variableName,tags.labelName,tags.definition(tags.name)],color:"#9cdcfe"},{tag:tags.heading,fontWeight:"bold",color:"#9cdcfe"},{tag:[tags.typeName,tags.className,tags.tagName,tags.number,tags.changed,tags.annotation,tags.self,tags.namespace],color:"#4ec9b0"},{tag:[tags.function(tags.variableName),tags.function(tags.propertyName)],color:"#dcdcaa"},{tag:[tags.number],color:"#b5cea8"},{tag:[tags.operator,tags.punctuation,tags.separator,tags.url,tags.escape,tags.regexp],color:"#d4d4d4"},{tag:[tags.regexp],color:"#d16969"},{tag:[tags.special(tags.string),tags.processingInstruction,tags.string,tags.inserted],color:"#ce9178"},{tag:[tags.angleBracket],color:"#808080"},{tag:tags.strong,fontWeight:"bold"},{tag:tags.emphasis,fontStyle:"italic"},{tag:tags.strikethrough,textDecoration:"line-through"},{tag:[tags.meta,tags.comment],color:"#6a9955"},{tag:tags.link,color:"#6a9955",textDecoration:"underline"},{tag:tags.invalid,color:"#ff0000"},...no]})}var vscodeDark=vscodeDarkInit();function _extends(){return _extends=Object.assign?Object.assign.bind():function(eo){for(var to=1;to=0)&&(ro[oo]=eo[oo]);return ro}const toggleComment=eo=>{let{state:to}=eo,ro=to.doc.lineAt(to.selection.main.from),no=getConfig(eo.state,ro.from);return no.line?toggleLineComment(eo):no.block?toggleBlockCommentByLine(eo):!1};function command(eo,to){return({state:ro,dispatch:no})=>{if(ro.readOnly)return!1;let oo=eo(to,ro);return oo?(no(ro.update(oo)),!0):!1}}const toggleLineComment=command(changeLineComment,0),toggleBlockComment=command(changeBlockComment,0),toggleBlockCommentByLine=command((eo,to)=>changeBlockComment(eo,to,selectedLineRanges(to)),0);function getConfig(eo,to){let ro=eo.languageDataAt("commentTokens",to);return ro.length?ro[0]:{}}const SearchMargin=50;function findBlockComment(eo,{open:to,close:ro},no,oo){let io=eo.sliceDoc(no-SearchMargin,no),so=eo.sliceDoc(oo,oo+SearchMargin),ao=/\s*$/.exec(io)[0].length,lo=/^\s*/.exec(so)[0].length,uo=io.length-ao;if(io.slice(uo-to.length,uo)==to&&so.slice(lo,lo+ro.length)==ro)return{open:{pos:no-ao,margin:ao&&1},close:{pos:oo+lo,margin:lo&&1}};let co,fo;oo-no<=2*SearchMargin?co=fo=eo.sliceDoc(no,oo):(co=eo.sliceDoc(no,no+SearchMargin),fo=eo.sliceDoc(oo-SearchMargin,oo));let ho=/^\s*/.exec(co)[0].length,po=/\s*$/.exec(fo)[0].length,go=fo.length-po-ro.length;return co.slice(ho,ho+to.length)==to&&fo.slice(go,go+ro.length)==ro?{open:{pos:no+ho+to.length,margin:/\s/.test(co.charAt(ho+to.length))?1:0},close:{pos:oo-po-ro.length,margin:/\s/.test(fo.charAt(go-1))?1:0}}:null}function selectedLineRanges(eo){let to=[];for(let ro of eo.selection.ranges){let no=eo.doc.lineAt(ro.from),oo=ro.to<=no.to?no:eo.doc.lineAt(ro.to),io=to.length-1;io>=0&&to[io].to>no.from?to[io].to=oo.to:to.push({from:no.from+/^\s*/.exec(no.text)[0].length,to:oo.to})}return to}function changeBlockComment(eo,to,ro=to.selection.ranges){let no=ro.map(io=>getConfig(to,io.from).block);if(!no.every(io=>io))return null;let oo=ro.map((io,so)=>findBlockComment(to,no[so],io.from,io.to));if(eo!=2&&!oo.every(io=>io))return{changes:to.changes(ro.map((io,so)=>oo[so]?[]:[{from:io.from,insert:no[so].open+" "},{from:io.to,insert:" "+no[so].close}]))};if(eo!=1&&oo.some(io=>io)){let io=[];for(let so=0,ao;sooo&&(io==so||so>fo.from)){oo=fo.from;let ho=/^\s*/.exec(fo.text)[0].length,po=ho==fo.length,go=fo.text.slice(ho,ho+uo.length)==uo?ho:-1;hoio.comment<0&&(!io.empty||io.single))){let io=[];for(let{line:ao,token:lo,indent:uo,empty:co,single:fo}of no)(fo||!co)&&io.push({from:ao.from+uo,insert:lo+" "});let so=to.changes(io);return{changes:so,selection:to.selection.map(so,1)}}else if(eo!=1&&no.some(io=>io.comment>=0)){let io=[];for(let{line:so,comment:ao,token:lo}of no)if(ao>=0){let uo=so.from+ao,co=uo+lo.length;so.text[co-so.from]==" "&&co++,io.push({from:uo,to:co})}return{changes:io}}return null}const fromHistory=Annotation.define(),isolateHistory=Annotation.define(),invertedEffects=Facet.define(),historyConfig=Facet.define({combine(eo){return combineConfig(eo,{minDepth:100,newGroupDelay:500,joinToEvent:(to,ro)=>ro},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(to,ro)=>(no,oo)=>to(no,oo)||ro(no,oo)})}}),historyField_=StateField.define({create(){return HistoryState.empty},update(eo,to){let ro=to.state.facet(historyConfig),no=to.annotation(fromHistory);if(no){let lo=HistEvent.fromTransaction(to,no.selection),uo=no.side,co=uo==0?eo.undone:eo.done;return lo?co=updateBranch(co,co.length,ro.minDepth,lo):co=addSelection(co,to.startState.selection),new HistoryState(uo==0?no.rest:co,uo==0?co:no.rest)}let oo=to.annotation(isolateHistory);if((oo=="full"||oo=="before")&&(eo=eo.isolate()),to.annotation(Transaction.addToHistory)===!1)return to.changes.empty?eo:eo.addMapping(to.changes.desc);let io=HistEvent.fromTransaction(to),so=to.annotation(Transaction.time),ao=to.annotation(Transaction.userEvent);return io?eo=eo.addChanges(io,so,ao,ro,to):to.selection&&(eo=eo.addSelection(to.startState.selection,so,ao,ro.newGroupDelay)),(oo=="full"||oo=="after")&&(eo=eo.isolate()),eo},toJSON(eo){return{done:eo.done.map(to=>to.toJSON()),undone:eo.undone.map(to=>to.toJSON())}},fromJSON(eo){return new HistoryState(eo.done.map(HistEvent.fromJSON),eo.undone.map(HistEvent.fromJSON))}});function history(eo={}){return[historyField_,historyConfig.of(eo),EditorView.domEventHandlers({beforeinput(to,ro){let no=to.inputType=="historyUndo"?undo:to.inputType=="historyRedo"?redo:null;return no?(to.preventDefault(),no(ro)):!1}})]}function cmd(eo,to){return function({state:ro,dispatch:no}){if(!to&&ro.readOnly)return!1;let oo=ro.field(historyField_,!1);if(!oo)return!1;let io=oo.pop(eo,ro,to);return io?(no(io),!0):!1}}const undo=cmd(0,!1),redo=cmd(1,!1),undoSelection=cmd(0,!0),redoSelection=cmd(1,!0);class HistEvent{constructor(to,ro,no,oo,io){this.changes=to,this.effects=ro,this.mapped=no,this.startSelection=oo,this.selectionsAfter=io}setSelAfter(to){return new HistEvent(this.changes,this.effects,this.mapped,this.startSelection,to)}toJSON(){var to,ro,no;return{changes:(to=this.changes)===null||to===void 0?void 0:to.toJSON(),mapped:(ro=this.mapped)===null||ro===void 0?void 0:ro.toJSON(),startSelection:(no=this.startSelection)===null||no===void 0?void 0:no.toJSON(),selectionsAfter:this.selectionsAfter.map(oo=>oo.toJSON())}}static fromJSON(to){return new HistEvent(to.changes&&ChangeSet.fromJSON(to.changes),[],to.mapped&&ChangeDesc.fromJSON(to.mapped),to.startSelection&&EditorSelection.fromJSON(to.startSelection),to.selectionsAfter.map(EditorSelection.fromJSON))}static fromTransaction(to,ro){let no=none;for(let oo of to.startState.facet(invertedEffects)){let io=oo(to);io.length&&(no=no.concat(io))}return!no.length&&to.changes.empty?null:new HistEvent(to.changes.invert(to.startState.doc),no,void 0,ro||to.startState.selection,none)}static selection(to){return new HistEvent(void 0,none,void 0,void 0,to)}}function updateBranch(eo,to,ro,no){let oo=to+1>ro+20?to-ro-1:0,io=eo.slice(oo,to);return io.push(no),io}function isAdjacent(eo,to){let ro=[],no=!1;return eo.iterChangedRanges((oo,io)=>ro.push(oo,io)),to.iterChangedRanges((oo,io,so,ao)=>{for(let lo=0;lo=uo&&so<=co&&(no=!0)}}),no}function eqSelectionShape(eo,to){return eo.ranges.length==to.ranges.length&&eo.ranges.filter((ro,no)=>ro.empty!=to.ranges[no].empty).length===0}function conc(eo,to){return eo.length?to.length?eo.concat(to):eo:to}const none=[],MaxSelectionsPerEvent=200;function addSelection(eo,to){if(eo.length){let ro=eo[eo.length-1],no=ro.selectionsAfter.slice(Math.max(0,ro.selectionsAfter.length-MaxSelectionsPerEvent));return no.length&&no[no.length-1].eq(to)?eo:(no.push(to),updateBranch(eo,eo.length-1,1e9,ro.setSelAfter(no)))}else return[HistEvent.selection([to])]}function popSelection(eo){let to=eo[eo.length-1],ro=eo.slice();return ro[eo.length-1]=to.setSelAfter(to.selectionsAfter.slice(0,to.selectionsAfter.length-1)),ro}function addMappingToBranch(eo,to){if(!eo.length)return eo;let ro=eo.length,no=none;for(;ro;){let oo=mapEvent(eo[ro-1],to,no);if(oo.changes&&!oo.changes.empty||oo.effects.length){let io=eo.slice(0,ro);return io[ro-1]=oo,io}else to=oo.mapped,ro--,no=oo.selectionsAfter}return no.length?[HistEvent.selection(no)]:none}function mapEvent(eo,to,ro){let no=conc(eo.selectionsAfter.length?eo.selectionsAfter.map(ao=>ao.map(to)):none,ro);if(!eo.changes)return HistEvent.selection(no);let oo=eo.changes.map(to),io=to.mapDesc(eo.changes,!0),so=eo.mapped?eo.mapped.composeDesc(io):io;return new HistEvent(oo,StateEffect.mapEffects(eo.effects,to),so,eo.startSelection.map(io),no)}const joinableUserEvent=/^(input\.type|delete)($|\.)/;class HistoryState{constructor(to,ro,no=0,oo=void 0){this.done=to,this.undone=ro,this.prevTime=no,this.prevUserEvent=oo}isolate(){return this.prevTime?new HistoryState(this.done,this.undone):this}addChanges(to,ro,no,oo,io){let so=this.done,ao=so[so.length-1];return ao&&ao.changes&&!ao.changes.empty&&to.changes&&(!no||joinableUserEvent.test(no))&&(!ao.selectionsAfter.length&&ro-this.prevTime0&&ro-this.prevTimero.empty?eo.moveByChar(ro,to):rangeEnd(ro,to))}function ltrAtCursor(eo){return eo.textDirectionAt(eo.state.selection.main.head)==Direction.LTR}const cursorCharLeft=eo=>cursorByChar(eo,!ltrAtCursor(eo)),cursorCharRight=eo=>cursorByChar(eo,ltrAtCursor(eo));function cursorByGroup(eo,to){return moveSel(eo,ro=>ro.empty?eo.moveByGroup(ro,to):rangeEnd(ro,to))}const cursorGroupLeft=eo=>cursorByGroup(eo,!ltrAtCursor(eo)),cursorGroupRight=eo=>cursorByGroup(eo,ltrAtCursor(eo));function interestingNode(eo,to,ro){if(to.type.prop(ro))return!0;let no=to.to-to.from;return no&&(no>2||/[^\s,.;:]/.test(eo.sliceDoc(to.from,to.to)))||to.firstChild}function moveBySyntax(eo,to,ro){let no=syntaxTree(eo).resolveInner(to.head),oo=ro?NodeProp.closedBy:NodeProp.openedBy;for(let lo=to.head;;){let uo=ro?no.childAfter(lo):no.childBefore(lo);if(!uo)break;interestingNode(eo,uo,oo)?no=uo:lo=ro?uo.to:uo.from}let io=no.type.prop(oo),so,ao;return io&&(so=ro?matchBrackets(eo,no.from,1):matchBrackets(eo,no.to,-1))&&so.matched?ao=ro?so.end.to:so.end.from:ao=ro?no.to:no.from,EditorSelection.cursor(ao,ro?-1:1)}const cursorSyntaxLeft=eo=>moveSel(eo,to=>moveBySyntax(eo.state,to,!ltrAtCursor(eo))),cursorSyntaxRight=eo=>moveSel(eo,to=>moveBySyntax(eo.state,to,ltrAtCursor(eo)));function cursorByLine(eo,to){return moveSel(eo,ro=>{if(!ro.empty)return rangeEnd(ro,to);let no=eo.moveVertically(ro,to);return no.head!=ro.head?no:eo.moveToLineBoundary(ro,to)})}const cursorLineUp=eo=>cursorByLine(eo,!1),cursorLineDown=eo=>cursorByLine(eo,!0);function pageInfo(eo){let to=eo.scrollDOM.clientHeightso.empty?eo.moveVertically(so,to,ro.height):rangeEnd(so,to));if(oo.eq(no.selection))return!1;let io;if(ro.selfScroll){let so=eo.coordsAtPos(no.selection.main.head),ao=eo.scrollDOM.getBoundingClientRect(),lo=ao.top+ro.marginTop,uo=ao.bottom-ro.marginBottom;so&&so.top>lo&&so.bottomcursorByPage(eo,!1),cursorPageDown=eo=>cursorByPage(eo,!0);function moveByLineBoundary(eo,to,ro){let no=eo.lineBlockAt(to.head),oo=eo.moveToLineBoundary(to,ro);if(oo.head==to.head&&oo.head!=(ro?no.to:no.from)&&(oo=eo.moveToLineBoundary(to,ro,!1)),!ro&&oo.head==no.from&&no.length){let io=/^\s*/.exec(eo.state.sliceDoc(no.from,Math.min(no.from+100,no.to)))[0].length;io&&to.head!=no.from+io&&(oo=EditorSelection.cursor(no.from+io))}return oo}const cursorLineBoundaryForward=eo=>moveSel(eo,to=>moveByLineBoundary(eo,to,!0)),cursorLineBoundaryBackward=eo=>moveSel(eo,to=>moveByLineBoundary(eo,to,!1)),cursorLineBoundaryLeft=eo=>moveSel(eo,to=>moveByLineBoundary(eo,to,!ltrAtCursor(eo))),cursorLineBoundaryRight=eo=>moveSel(eo,to=>moveByLineBoundary(eo,to,ltrAtCursor(eo))),cursorLineStart=eo=>moveSel(eo,to=>EditorSelection.cursor(eo.lineBlockAt(to.head).from,1)),cursorLineEnd=eo=>moveSel(eo,to=>EditorSelection.cursor(eo.lineBlockAt(to.head).to,-1));function toMatchingBracket(eo,to,ro){let no=!1,oo=updateSel(eo.selection,io=>{let so=matchBrackets(eo,io.head,-1)||matchBrackets(eo,io.head,1)||io.head>0&&matchBrackets(eo,io.head-1,1)||io.headtoMatchingBracket(eo,to,!1);function extendSel(eo,to){let ro=updateSel(eo.state.selection,no=>{let oo=to(no);return EditorSelection.range(no.anchor,oo.head,oo.goalColumn,oo.bidiLevel||void 0)});return ro.eq(eo.state.selection)?!1:(eo.dispatch(setSel(eo.state,ro)),!0)}function selectByChar(eo,to){return extendSel(eo,ro=>eo.moveByChar(ro,to))}const selectCharLeft=eo=>selectByChar(eo,!ltrAtCursor(eo)),selectCharRight=eo=>selectByChar(eo,ltrAtCursor(eo));function selectByGroup(eo,to){return extendSel(eo,ro=>eo.moveByGroup(ro,to))}const selectGroupLeft=eo=>selectByGroup(eo,!ltrAtCursor(eo)),selectGroupRight=eo=>selectByGroup(eo,ltrAtCursor(eo)),selectSyntaxLeft=eo=>extendSel(eo,to=>moveBySyntax(eo.state,to,!ltrAtCursor(eo))),selectSyntaxRight=eo=>extendSel(eo,to=>moveBySyntax(eo.state,to,ltrAtCursor(eo)));function selectByLine(eo,to){return extendSel(eo,ro=>eo.moveVertically(ro,to))}const selectLineUp=eo=>selectByLine(eo,!1),selectLineDown=eo=>selectByLine(eo,!0);function selectByPage(eo,to){return extendSel(eo,ro=>eo.moveVertically(ro,to,pageInfo(eo).height))}const selectPageUp=eo=>selectByPage(eo,!1),selectPageDown=eo=>selectByPage(eo,!0),selectLineBoundaryForward=eo=>extendSel(eo,to=>moveByLineBoundary(eo,to,!0)),selectLineBoundaryBackward=eo=>extendSel(eo,to=>moveByLineBoundary(eo,to,!1)),selectLineBoundaryLeft=eo=>extendSel(eo,to=>moveByLineBoundary(eo,to,!ltrAtCursor(eo))),selectLineBoundaryRight=eo=>extendSel(eo,to=>moveByLineBoundary(eo,to,ltrAtCursor(eo))),selectLineStart=eo=>extendSel(eo,to=>EditorSelection.cursor(eo.lineBlockAt(to.head).from)),selectLineEnd=eo=>extendSel(eo,to=>EditorSelection.cursor(eo.lineBlockAt(to.head).to)),cursorDocStart=({state:eo,dispatch:to})=>(to(setSel(eo,{anchor:0})),!0),cursorDocEnd=({state:eo,dispatch:to})=>(to(setSel(eo,{anchor:eo.doc.length})),!0),selectDocStart=({state:eo,dispatch:to})=>(to(setSel(eo,{anchor:eo.selection.main.anchor,head:0})),!0),selectDocEnd=({state:eo,dispatch:to})=>(to(setSel(eo,{anchor:eo.selection.main.anchor,head:eo.doc.length})),!0),selectAll=({state:eo,dispatch:to})=>(to(eo.update({selection:{anchor:0,head:eo.doc.length},userEvent:"select"})),!0),selectLine=({state:eo,dispatch:to})=>{let ro=selectedLineBlocks(eo).map(({from:no,to:oo})=>EditorSelection.range(no,Math.min(oo+1,eo.doc.length)));return to(eo.update({selection:EditorSelection.create(ro),userEvent:"select"})),!0},selectParentSyntax=({state:eo,dispatch:to})=>{let ro=updateSel(eo.selection,no=>{var oo;let io=syntaxTree(eo).resolveStack(no.from,1);for(let so=io;so;so=so.next){let{node:ao}=so;if((ao.from=no.to||ao.to>no.to&&ao.from<=no.from)&&(!((oo=ao.parent)===null||oo===void 0)&&oo.parent))return EditorSelection.range(ao.to,ao.from)}return no});return to(setSel(eo,ro)),!0},simplifySelection=({state:eo,dispatch:to})=>{let ro=eo.selection,no=null;return ro.ranges.length>1?no=EditorSelection.create([ro.main]):ro.main.empty||(no=EditorSelection.create([EditorSelection.cursor(ro.main.head)])),no?(to(setSel(eo,no)),!0):!1};function deleteBy(eo,to){if(eo.state.readOnly)return!1;let ro="delete.selection",{state:no}=eo,oo=no.changeByRange(io=>{let{from:so,to:ao}=io;if(so==ao){let lo=to(io);loso&&(ro="delete.forward",lo=skipAtomic(eo,lo,!0)),so=Math.min(so,lo),ao=Math.max(ao,lo)}else so=skipAtomic(eo,so,!1),ao=skipAtomic(eo,ao,!0);return so==ao?{range:io}:{changes:{from:so,to:ao},range:EditorSelection.cursor(so,sooo(eo)))no.between(to,to,(oo,io)=>{ooto&&(to=ro?io:oo)});return to}const deleteByChar=(eo,to)=>deleteBy(eo,ro=>{let no=ro.from,{state:oo}=eo,io=oo.doc.lineAt(no),so,ao;if(!to&&no>io.from&&nodeleteByChar(eo,!1),deleteCharForward=eo=>deleteByChar(eo,!0),deleteByGroup=(eo,to)=>deleteBy(eo,ro=>{let no=ro.head,{state:oo}=eo,io=oo.doc.lineAt(no),so=oo.charCategorizer(no);for(let ao=null;;){if(no==(to?io.to:io.from)){no==ro.head&&io.number!=(to?oo.doc.lines:1)&&(no+=to?1:-1);break}let lo=findClusterBreak(io.text,no-io.from,to)+io.from,uo=io.text.slice(Math.min(no,lo)-io.from,Math.max(no,lo)-io.from),co=so(uo);if(ao!=null&&co!=ao)break;(uo!=" "||no!=ro.head)&&(ao=co),no=lo}return no}),deleteGroupBackward=eo=>deleteByGroup(eo,!1),deleteGroupForward=eo=>deleteByGroup(eo,!0),deleteToLineEnd=eo=>deleteBy(eo,to=>{let ro=eo.lineBlockAt(to.head).to;return to.headdeleteBy(eo,to=>{let ro=eo.moveToLineBoundary(to,!1).head;return to.head>ro?ro:Math.max(0,to.head-1)}),deleteLineBoundaryForward=eo=>deleteBy(eo,to=>{let ro=eo.moveToLineBoundary(to,!0).head;return to.head{if(eo.readOnly)return!1;let ro=eo.changeByRange(no=>({changes:{from:no.from,to:no.to,insert:Text$1.of(["",""])},range:EditorSelection.cursor(no.from)}));return to(eo.update(ro,{scrollIntoView:!0,userEvent:"input"})),!0},transposeChars=({state:eo,dispatch:to})=>{if(eo.readOnly)return!1;let ro=eo.changeByRange(no=>{if(!no.empty||no.from==0||no.from==eo.doc.length)return{range:no};let oo=no.from,io=eo.doc.lineAt(oo),so=oo==io.from?oo-1:findClusterBreak(io.text,oo-io.from,!1)+io.from,ao=oo==io.to?oo+1:findClusterBreak(io.text,oo-io.from,!0)+io.from;return{changes:{from:so,to:ao,insert:eo.doc.slice(oo,ao).append(eo.doc.slice(so,oo))},range:EditorSelection.cursor(ao)}});return ro.changes.empty?!1:(to(eo.update(ro,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function selectedLineBlocks(eo){let to=[],ro=-1;for(let no of eo.selection.ranges){let oo=eo.doc.lineAt(no.from),io=eo.doc.lineAt(no.to);if(!no.empty&&no.to==io.from&&(io=eo.doc.lineAt(no.to-1)),ro>=oo.number){let so=to[to.length-1];so.to=io.to,so.ranges.push(no)}else to.push({from:oo.from,to:io.to,ranges:[no]});ro=io.number+1}return to}function moveLine(eo,to,ro){if(eo.readOnly)return!1;let no=[],oo=[];for(let io of selectedLineBlocks(eo)){if(ro?io.to==eo.doc.length:io.from==0)continue;let so=eo.doc.lineAt(ro?io.to+1:io.from-1),ao=so.length+1;if(ro){no.push({from:io.to,to:so.to},{from:io.from,insert:so.text+eo.lineBreak});for(let lo of io.ranges)oo.push(EditorSelection.range(Math.min(eo.doc.length,lo.anchor+ao),Math.min(eo.doc.length,lo.head+ao)))}else{no.push({from:so.from,to:io.from},{from:io.to,insert:eo.lineBreak+so.text});for(let lo of io.ranges)oo.push(EditorSelection.range(lo.anchor-ao,lo.head-ao))}}return no.length?(to(eo.update({changes:no,scrollIntoView:!0,selection:EditorSelection.create(oo,eo.selection.mainIndex),userEvent:"move.line"})),!0):!1}const moveLineUp=({state:eo,dispatch:to})=>moveLine(eo,to,!1),moveLineDown=({state:eo,dispatch:to})=>moveLine(eo,to,!0);function copyLine(eo,to,ro){if(eo.readOnly)return!1;let no=[];for(let oo of selectedLineBlocks(eo))ro?no.push({from:oo.from,insert:eo.doc.slice(oo.from,oo.to)+eo.lineBreak}):no.push({from:oo.to,insert:eo.lineBreak+eo.doc.slice(oo.from,oo.to)});return to(eo.update({changes:no,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const copyLineUp=({state:eo,dispatch:to})=>copyLine(eo,to,!1),copyLineDown=({state:eo,dispatch:to})=>copyLine(eo,to,!0),deleteLine=eo=>{if(eo.state.readOnly)return!1;let{state:to}=eo,ro=to.changes(selectedLineBlocks(to).map(({from:oo,to:io})=>(oo>0?oo--:ioeo.moveVertically(oo,!0)).map(ro);return eo.dispatch({changes:ro,selection:no,scrollIntoView:!0,userEvent:"delete.line"}),!0};function isBetweenBrackets(eo,to){if(/\(\)|\[\]|\{\}/.test(eo.sliceDoc(to-1,to+1)))return{from:to,to};let ro=syntaxTree(eo).resolveInner(to),no=ro.childBefore(to),oo=ro.childAfter(to),io;return no&&oo&&no.to<=to&&oo.from>=to&&(io=no.type.prop(NodeProp.closedBy))&&io.indexOf(oo.name)>-1&&eo.doc.lineAt(no.to).from==eo.doc.lineAt(oo.from).from&&!/\S/.test(eo.sliceDoc(no.to,oo.from))?{from:no.to,to:oo.from}:null}const insertNewlineAndIndent=newlineAndIndent(!1),insertBlankLine=newlineAndIndent(!0);function newlineAndIndent(eo){return({state:to,dispatch:ro})=>{if(to.readOnly)return!1;let no=to.changeByRange(oo=>{let{from:io,to:so}=oo,ao=to.doc.lineAt(io),lo=!eo&&io==so&&isBetweenBrackets(to,io);eo&&(io=so=(so<=ao.to?ao:to.doc.lineAt(so)).to);let uo=new IndentContext(to,{simulateBreak:io,simulateDoubleBreak:!!lo}),co=getIndentation(uo,io);for(co==null&&(co=countColumn(/^\s*/.exec(to.doc.lineAt(io).text)[0],to.tabSize));soao.from&&io{let oo=[];for(let so=no.from;so<=no.to;){let ao=eo.doc.lineAt(so);ao.number>ro&&(no.empty||no.to>ao.from)&&(to(ao,oo,no),ro=ao.number),so=ao.to+1}let io=eo.changes(oo);return{changes:oo,range:EditorSelection.range(io.mapPos(no.anchor,1),io.mapPos(no.head,1))}})}const indentSelection=({state:eo,dispatch:to})=>{if(eo.readOnly)return!1;let ro=Object.create(null),no=new IndentContext(eo,{overrideIndentation:io=>{let so=ro[io];return so??-1}}),oo=changeBySelectedLine(eo,(io,so,ao)=>{let lo=getIndentation(no,io.from);if(lo==null)return;/\S/.test(io.text)||(lo=0);let uo=/^\s*/.exec(io.text)[0],co=indentString(eo,lo);(uo!=co||ao.fromeo.readOnly?!1:(to(eo.update(changeBySelectedLine(eo,(ro,no)=>{no.push({from:ro.from,insert:eo.facet(indentUnit)})}),{userEvent:"input.indent"})),!0),indentLess=({state:eo,dispatch:to})=>eo.readOnly?!1:(to(eo.update(changeBySelectedLine(eo,(ro,no)=>{let oo=/^\s*/.exec(ro.text)[0];if(!oo)return;let io=countColumn(oo,eo.tabSize),so=0,ao=indentString(eo,Math.max(0,io-getIndentUnit(eo)));for(;so({mac:eo.key,run:eo.run,shift:eo.shift}))),defaultKeymap=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:cursorSyntaxLeft,shift:selectSyntaxLeft},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:cursorSyntaxRight,shift:selectSyntaxRight},{key:"Alt-ArrowUp",run:moveLineUp},{key:"Shift-Alt-ArrowUp",run:copyLineUp},{key:"Alt-ArrowDown",run:moveLineDown},{key:"Shift-Alt-ArrowDown",run:copyLineDown},{key:"Escape",run:simplifySelection},{key:"Mod-Enter",run:insertBlankLine},{key:"Alt-l",mac:"Ctrl-l",run:selectLine},{key:"Mod-i",run:selectParentSyntax,preventDefault:!0},{key:"Mod-[",run:indentLess},{key:"Mod-]",run:indentMore},{key:"Mod-Alt-\\",run:indentSelection},{key:"Shift-Mod-k",run:deleteLine},{key:"Shift-Mod-\\",run:cursorMatchingBracket},{key:"Mod-/",run:toggleComment},{key:"Alt-A",run:toggleBlockComment}].concat(standardKeymap),indentWithTab={key:"Tab",run:indentMore,shift:indentLess};function crelt(){var eo=arguments[0];typeof eo=="string"&&(eo=document.createElement(eo));var to=1,ro=arguments[1];if(ro&&typeof ro=="object"&&ro.nodeType==null&&!Array.isArray(ro)){for(var no in ro)if(Object.prototype.hasOwnProperty.call(ro,no)){var oo=ro[no];typeof oo=="string"?eo.setAttribute(no,oo):oo!=null&&(eo[no]=oo)}to++}for(;toeo.normalize("NFKD"):eo=>eo;class SearchCursor{constructor(to,ro,no=0,oo=to.length,io,so){this.test=so,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=to.iterRange(no,oo),this.bufferStart=no,this.normalize=io?ao=>io(basicNormalize(ao)):basicNormalize,this.query=this.normalize(ro)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return codePointAt(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let to=this.peek();if(to<0)return this.done=!0,this;let ro=fromCodePoint(to),no=this.bufferStart+this.bufferPos;this.bufferPos+=codePointSize(to);let oo=this.normalize(ro);for(let io=0,so=no;;io++){let ao=oo.charCodeAt(io),lo=this.match(ao,so,this.bufferPos+this.bufferStart);if(io==oo.length-1){if(lo)return this.value=lo,this;break}so==no&&iothis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let to=this.matchPos-this.curLineStart;;){this.re.lastIndex=to;let ro=this.matchPos<=this.to&&this.re.exec(this.curLine);if(ro){let no=this.curLineStart+ro.index,oo=no+ro[0].length;if(this.matchPos=toCharEnd(this.text,oo+(no==oo?1:0)),no==this.curLineStart+this.curLine.length&&this.nextLine(),(nothis.value.to)&&(!this.test||this.test(no,oo,ro)))return this.value={from:no,to:oo,match:ro},this;to=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=no||oo.to<=ro){let ao=new FlattenedDoc(ro,to.sliceString(ro,no));return flattened.set(to,ao),ao}if(oo.from==ro&&oo.to==no)return oo;let{text:io,from:so}=oo;return so>ro&&(io=to.sliceString(ro,so)+io,so=ro),oo.to=this.to?this.to:this.text.lineAt(to).to}next(){for(;;){let to=this.re.lastIndex=this.matchPos-this.flat.from,ro=this.re.exec(this.flat.text);if(ro&&!ro[0]&&ro.index==to&&(this.re.lastIndex=to+1,ro=this.re.exec(this.flat.text)),ro){let no=this.flat.from+ro.index,oo=no+ro[0].length;if((this.flat.to>=this.to||ro.index+ro[0].length<=this.flat.text.length-10)&&(!this.test||this.test(no,oo,ro)))return this.value={from:no,to:oo,match:ro},this.matchPos=toCharEnd(this.text,oo+(no==oo?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=FlattenedDoc.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(RegExpCursor.prototype[Symbol.iterator]=MultilineRegExpCursor.prototype[Symbol.iterator]=function(){return this});function validRegExp(eo){try{return new RegExp(eo,baseFlags),!0}catch{return!1}}function toCharEnd(eo,to){if(to>=eo.length)return to;let ro=eo.lineAt(to),no;for(;to=56320&&no<57344;)to++;return to}function createLineDialog(eo){let to=String(eo.state.doc.lineAt(eo.state.selection.main.head).number),ro=crelt("input",{class:"cm-textfield",name:"line",value:to}),no=crelt("form",{class:"cm-gotoLine",onkeydown:io=>{io.keyCode==27?(io.preventDefault(),eo.dispatch({effects:dialogEffect.of(!1)}),eo.focus()):io.keyCode==13&&(io.preventDefault(),oo())},onsubmit:io=>{io.preventDefault(),oo()}},crelt("label",eo.state.phrase("Go to line"),": ",ro)," ",crelt("button",{class:"cm-button",type:"submit"},eo.state.phrase("go")));function oo(){let io=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(ro.value);if(!io)return;let{state:so}=eo,ao=so.doc.lineAt(so.selection.main.head),[,lo,uo,co,fo]=io,ho=co?+co.slice(1):0,po=uo?+uo:ao.number;if(uo&&fo){let bo=po/100;lo&&(bo=bo*(lo=="-"?-1:1)+ao.number/so.doc.lines),po=Math.round(so.doc.lines*bo)}else uo&&lo&&(po=po*(lo=="-"?-1:1)+ao.number);let go=so.doc.line(Math.max(1,Math.min(so.doc.lines,po))),vo=EditorSelection.cursor(go.from+Math.max(0,Math.min(ho,go.length)));eo.dispatch({effects:[dialogEffect.of(!1),EditorView.scrollIntoView(vo.from,{y:"center"})],selection:vo}),eo.focus()}return{dom:no}}const dialogEffect=StateEffect.define(),dialogField=StateField.define({create(){return!0},update(eo,to){for(let ro of to.effects)ro.is(dialogEffect)&&(eo=ro.value);return eo},provide:eo=>showPanel.from(eo,to=>to?createLineDialog:null)}),gotoLine=eo=>{let to=getPanel(eo,createLineDialog);if(!to){let ro=[dialogEffect.of(!0)];eo.state.field(dialogField,!1)==null&&ro.push(StateEffect.appendConfig.of([dialogField,baseTheme$1])),eo.dispatch({effects:ro}),to=getPanel(eo,createLineDialog)}return to&&to.dom.querySelector("input").select(),!0},baseTheme$1=EditorView.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),defaultHighlightOptions={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},highlightConfig=Facet.define({combine(eo){return combineConfig(eo,defaultHighlightOptions,{highlightWordAroundCursor:(to,ro)=>to||ro,minSelectionLength:Math.min,maxMatches:Math.min})}});function highlightSelectionMatches(eo){let to=[defaultTheme,matchHighlighter];return eo&&to.push(highlightConfig.of(eo)),to}const matchDeco=Decoration.mark({class:"cm-selectionMatch"}),mainMatchDeco=Decoration.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function insideWordBoundaries(eo,to,ro,no){return(ro==0||eo(to.sliceDoc(ro-1,ro))!=CharCategory.Word)&&(no==to.doc.length||eo(to.sliceDoc(no,no+1))!=CharCategory.Word)}function insideWord(eo,to,ro,no){return eo(to.sliceDoc(ro,ro+1))==CharCategory.Word&&eo(to.sliceDoc(no-1,no))==CharCategory.Word}const matchHighlighter=ViewPlugin.fromClass(class{constructor(eo){this.decorations=this.getDeco(eo)}update(eo){(eo.selectionSet||eo.docChanged||eo.viewportChanged)&&(this.decorations=this.getDeco(eo.view))}getDeco(eo){let to=eo.state.facet(highlightConfig),{state:ro}=eo,no=ro.selection;if(no.ranges.length>1)return Decoration.none;let oo=no.main,io,so=null;if(oo.empty){if(!to.highlightWordAroundCursor)return Decoration.none;let lo=ro.wordAt(oo.head);if(!lo)return Decoration.none;so=ro.charCategorizer(oo.head),io=ro.sliceDoc(lo.from,lo.to)}else{let lo=oo.to-oo.from;if(lo200)return Decoration.none;if(to.wholeWords){if(io=ro.sliceDoc(oo.from,oo.to),so=ro.charCategorizer(oo.head),!(insideWordBoundaries(so,ro,oo.from,oo.to)&&insideWord(so,ro,oo.from,oo.to)))return Decoration.none}else if(io=ro.sliceDoc(oo.from,oo.to),!io)return Decoration.none}let ao=[];for(let lo of eo.visibleRanges){let uo=new SearchCursor(ro.doc,io,lo.from,lo.to);for(;!uo.next().done;){let{from:co,to:fo}=uo.value;if((!so||insideWordBoundaries(so,ro,co,fo))&&(oo.empty&&co<=oo.from&&fo>=oo.to?ao.push(mainMatchDeco.range(co,fo)):(co>=oo.to||fo<=oo.from)&&ao.push(matchDeco.range(co,fo)),ao.length>to.maxMatches))return Decoration.none}}return Decoration.set(ao)}},{decorations:eo=>eo.decorations}),defaultTheme=EditorView.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),selectWord=({state:eo,dispatch:to})=>{let{selection:ro}=eo,no=EditorSelection.create(ro.ranges.map(oo=>eo.wordAt(oo.head)||EditorSelection.cursor(oo.head)),ro.mainIndex);return no.eq(ro)?!1:(to(eo.update({selection:no})),!0)};function findNextOccurrence(eo,to){let{main:ro,ranges:no}=eo.selection,oo=eo.wordAt(ro.head),io=oo&&oo.from==ro.from&&oo.to==ro.to;for(let so=!1,ao=new SearchCursor(eo.doc,to,no[no.length-1].to);;)if(ao.next(),ao.done){if(so)return null;ao=new SearchCursor(eo.doc,to,0,Math.max(0,no[no.length-1].from-1)),so=!0}else{if(so&&no.some(lo=>lo.from==ao.value.from))continue;if(io){let lo=eo.wordAt(ao.value.from);if(!lo||lo.from!=ao.value.from||lo.to!=ao.value.to)continue}return ao.value}}const selectNextOccurrence=({state:eo,dispatch:to})=>{let{ranges:ro}=eo.selection;if(ro.some(io=>io.from===io.to))return selectWord({state:eo,dispatch:to});let no=eo.sliceDoc(ro[0].from,ro[0].to);if(eo.selection.ranges.some(io=>eo.sliceDoc(io.from,io.to)!=no))return!1;let oo=findNextOccurrence(eo,no);return oo?(to(eo.update({selection:eo.selection.addRange(EditorSelection.range(oo.from,oo.to),!1),effects:EditorView.scrollIntoView(oo.to)})),!0):!1},searchConfigFacet=Facet.define({combine(eo){return combineConfig(eo,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:to=>new SearchPanel(to),scrollToMatch:to=>EditorView.scrollIntoView(to)})}});class SearchQuery{constructor(to){this.search=to.search,this.caseSensitive=!!to.caseSensitive,this.literal=!!to.literal,this.regexp=!!to.regexp,this.replace=to.replace||"",this.valid=!!this.search&&(!this.regexp||validRegExp(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!to.wholeWord}unquote(to){return this.literal?to:to.replace(/\\([nrt\\])/g,(ro,no)=>no=="n"?` +`:no=="r"?"\r":no=="t"?" ":"\\")}eq(to){return this.search==to.search&&this.replace==to.replace&&this.caseSensitive==to.caseSensitive&&this.regexp==to.regexp&&this.wholeWord==to.wholeWord}create(){return this.regexp?new RegExpQuery(this):new StringQuery(this)}getCursor(to,ro=0,no){let oo=to.doc?to:EditorState.create({doc:to});return no==null&&(no=oo.doc.length),this.regexp?regexpCursor(this,oo,ro,no):stringCursor(this,oo,ro,no)}}class QueryType{constructor(to){this.spec=to}}function stringCursor(eo,to,ro,no){return new SearchCursor(to.doc,eo.unquoted,ro,no,eo.caseSensitive?void 0:oo=>oo.toLowerCase(),eo.wholeWord?stringWordTest(to.doc,to.charCategorizer(to.selection.main.head)):void 0)}function stringWordTest(eo,to){return(ro,no,oo,io)=>((io>ro||io+oo.length=ro)return null;oo.push(no.value)}return oo}highlight(to,ro,no,oo){let io=stringCursor(this.spec,to,Math.max(0,ro-this.spec.unquoted.length),Math.min(no+this.spec.unquoted.length,to.doc.length));for(;!io.next().done;)oo(io.value.from,io.value.to)}}function regexpCursor(eo,to,ro,no){return new RegExpCursor(to.doc,eo.search,{ignoreCase:!eo.caseSensitive,test:eo.wholeWord?regexpWordTest(to.charCategorizer(to.selection.main.head)):void 0},ro,no)}function charBefore(eo,to){return eo.slice(findClusterBreak(eo,to,!1),to)}function charAfter(eo,to){return eo.slice(to,findClusterBreak(eo,to))}function regexpWordTest(eo){return(to,ro,no)=>!no[0].length||(eo(charBefore(no.input,no.index))!=CharCategory.Word||eo(charAfter(no.input,no.index))!=CharCategory.Word)&&(eo(charAfter(no.input,no.index+no[0].length))!=CharCategory.Word||eo(charBefore(no.input,no.index+no[0].length))!=CharCategory.Word)}class RegExpQuery extends QueryType{nextMatch(to,ro,no){let oo=regexpCursor(this.spec,to,no,to.doc.length).next();return oo.done&&(oo=regexpCursor(this.spec,to,0,ro).next()),oo.done?null:oo.value}prevMatchInRange(to,ro,no){for(let oo=1;;oo++){let io=Math.max(ro,no-oo*1e4),so=regexpCursor(this.spec,to,io,no),ao=null;for(;!so.next().done;)ao=so.value;if(ao&&(io==ro||ao.from>io+10))return ao;if(io==ro)return null}}prevMatch(to,ro,no){return this.prevMatchInRange(to,0,ro)||this.prevMatchInRange(to,no,to.doc.length)}getReplacement(to){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(ro,no)=>no=="$"?"$":no=="&"?to.match[0]:no!="0"&&+no=ro)return null;oo.push(no.value)}return oo}highlight(to,ro,no,oo){let io=regexpCursor(this.spec,to,Math.max(0,ro-250),Math.min(no+250,to.doc.length));for(;!io.next().done;)oo(io.value.from,io.value.to)}}const setSearchQuery=StateEffect.define(),togglePanel$1=StateEffect.define(),searchState=StateField.define({create(eo){return new SearchState(defaultQuery(eo).create(),null)},update(eo,to){for(let ro of to.effects)ro.is(setSearchQuery)?eo=new SearchState(ro.value.create(),eo.panel):ro.is(togglePanel$1)&&(eo=new SearchState(eo.query,ro.value?createSearchPanel:null));return eo},provide:eo=>showPanel.from(eo,to=>to.panel)});class SearchState{constructor(to,ro){this.query=to,this.panel=ro}}const matchMark=Decoration.mark({class:"cm-searchMatch"}),selectedMatchMark=Decoration.mark({class:"cm-searchMatch cm-searchMatch-selected"}),searchHighlighter=ViewPlugin.fromClass(class{constructor(eo){this.view=eo,this.decorations=this.highlight(eo.state.field(searchState))}update(eo){let to=eo.state.field(searchState);(to!=eo.startState.field(searchState)||eo.docChanged||eo.selectionSet||eo.viewportChanged)&&(this.decorations=this.highlight(to))}highlight({query:eo,panel:to}){if(!to||!eo.spec.valid)return Decoration.none;let{view:ro}=this,no=new RangeSetBuilder;for(let oo=0,io=ro.visibleRanges,so=io.length;ooio[oo+1].from-2*250;)lo=io[++oo].to;eo.highlight(ro.state,ao,lo,(uo,co)=>{let fo=ro.state.selection.ranges.some(ho=>ho.from==uo&&ho.to==co);no.add(uo,co,fo?selectedMatchMark:matchMark)})}return no.finish()}},{decorations:eo=>eo.decorations});function searchCommand(eo){return to=>{let ro=to.state.field(searchState,!1);return ro&&ro.query.spec.valid?eo(to,ro):openSearchPanel(to)}}const findNext=searchCommand((eo,{query:to})=>{let{to:ro}=eo.state.selection.main,no=to.nextMatch(eo.state,ro,ro);if(!no)return!1;let oo=EditorSelection.single(no.from,no.to),io=eo.state.facet(searchConfigFacet);return eo.dispatch({selection:oo,effects:[announceMatch(eo,no),io.scrollToMatch(oo.main,eo)],userEvent:"select.search"}),selectSearchInput(eo),!0}),findPrevious=searchCommand((eo,{query:to})=>{let{state:ro}=eo,{from:no}=ro.selection.main,oo=to.prevMatch(ro,no,no);if(!oo)return!1;let io=EditorSelection.single(oo.from,oo.to),so=eo.state.facet(searchConfigFacet);return eo.dispatch({selection:io,effects:[announceMatch(eo,oo),so.scrollToMatch(io.main,eo)],userEvent:"select.search"}),selectSearchInput(eo),!0}),selectMatches=searchCommand((eo,{query:to})=>{let ro=to.matchAll(eo.state,1e3);return!ro||!ro.length?!1:(eo.dispatch({selection:EditorSelection.create(ro.map(no=>EditorSelection.range(no.from,no.to))),userEvent:"select.search.matches"}),!0)}),selectSelectionMatches=({state:eo,dispatch:to})=>{let ro=eo.selection;if(ro.ranges.length>1||ro.main.empty)return!1;let{from:no,to:oo}=ro.main,io=[],so=0;for(let ao=new SearchCursor(eo.doc,eo.sliceDoc(no,oo));!ao.next().done;){if(io.length>1e3)return!1;ao.value.from==no&&(so=io.length),io.push(EditorSelection.range(ao.value.from,ao.value.to))}return to(eo.update({selection:EditorSelection.create(io,so),userEvent:"select.search.matches"})),!0},replaceNext=searchCommand((eo,{query:to})=>{let{state:ro}=eo,{from:no,to:oo}=ro.selection.main;if(ro.readOnly)return!1;let io=to.nextMatch(ro,no,no);if(!io)return!1;let so=[],ao,lo,uo=[];if(io.from==no&&io.to==oo&&(lo=ro.toText(to.getReplacement(io)),so.push({from:io.from,to:io.to,insert:lo}),io=to.nextMatch(ro,io.from,io.to),uo.push(EditorView.announce.of(ro.phrase("replaced match on line $",ro.doc.lineAt(no).number)+"."))),io){let co=so.length==0||so[0].from>=io.to?0:io.to-io.from-lo.length;ao=EditorSelection.single(io.from-co,io.to-co),uo.push(announceMatch(eo,io)),uo.push(ro.facet(searchConfigFacet).scrollToMatch(ao.main,eo))}return eo.dispatch({changes:so,selection:ao,effects:uo,userEvent:"input.replace"}),!0}),replaceAll=searchCommand((eo,{query:to})=>{if(eo.state.readOnly)return!1;let ro=to.matchAll(eo.state,1e9).map(oo=>{let{from:io,to:so}=oo;return{from:io,to:so,insert:to.getReplacement(oo)}});if(!ro.length)return!1;let no=eo.state.phrase("replaced $ matches",ro.length)+".";return eo.dispatch({changes:ro,effects:EditorView.announce.of(no),userEvent:"input.replace.all"}),!0});function createSearchPanel(eo){return eo.state.facet(searchConfigFacet).createPanel(eo)}function defaultQuery(eo,to){var ro,no,oo,io,so;let ao=eo.selection.main,lo=ao.empty||ao.to>ao.from+100?"":eo.sliceDoc(ao.from,ao.to);if(to&&!lo)return to;let uo=eo.facet(searchConfigFacet);return new SearchQuery({search:((ro=to==null?void 0:to.literal)!==null&&ro!==void 0?ro:uo.literal)?lo:lo.replace(/\n/g,"\\n"),caseSensitive:(no=to==null?void 0:to.caseSensitive)!==null&&no!==void 0?no:uo.caseSensitive,literal:(oo=to==null?void 0:to.literal)!==null&&oo!==void 0?oo:uo.literal,regexp:(io=to==null?void 0:to.regexp)!==null&&io!==void 0?io:uo.regexp,wholeWord:(so=to==null?void 0:to.wholeWord)!==null&&so!==void 0?so:uo.wholeWord})}function getSearchInput(eo){let to=getPanel(eo,createSearchPanel);return to&&to.dom.querySelector("[main-field]")}function selectSearchInput(eo){let to=getSearchInput(eo);to&&to==eo.root.activeElement&&to.select()}const openSearchPanel=eo=>{let to=eo.state.field(searchState,!1);if(to&&to.panel){let ro=getSearchInput(eo);if(ro&&ro!=eo.root.activeElement){let no=defaultQuery(eo.state,to.query.spec);no.valid&&eo.dispatch({effects:setSearchQuery.of(no)}),ro.focus(),ro.select()}}else eo.dispatch({effects:[togglePanel$1.of(!0),to?setSearchQuery.of(defaultQuery(eo.state,to.query.spec)):StateEffect.appendConfig.of(searchExtensions)]});return!0},closeSearchPanel=eo=>{let to=eo.state.field(searchState,!1);if(!to||!to.panel)return!1;let ro=getPanel(eo,createSearchPanel);return ro&&ro.dom.contains(eo.root.activeElement)&&eo.focus(),eo.dispatch({effects:togglePanel$1.of(!1)}),!0},searchKeymap=[{key:"Mod-f",run:openSearchPanel,scope:"editor search-panel"},{key:"F3",run:findNext,shift:findPrevious,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:findNext,shift:findPrevious,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:closeSearchPanel,scope:"editor search-panel"},{key:"Mod-Shift-l",run:selectSelectionMatches},{key:"Mod-Alt-g",run:gotoLine},{key:"Mod-d",run:selectNextOccurrence,preventDefault:!0}];class SearchPanel{constructor(to){this.view=to;let ro=this.query=to.state.field(searchState).query.spec;this.commit=this.commit.bind(this),this.searchField=crelt("input",{value:ro.search,placeholder:phrase(to,"Find"),"aria-label":phrase(to,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=crelt("input",{value:ro.replace,placeholder:phrase(to,"Replace"),"aria-label":phrase(to,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=crelt("input",{type:"checkbox",name:"case",form:"",checked:ro.caseSensitive,onchange:this.commit}),this.reField=crelt("input",{type:"checkbox",name:"re",form:"",checked:ro.regexp,onchange:this.commit}),this.wordField=crelt("input",{type:"checkbox",name:"word",form:"",checked:ro.wholeWord,onchange:this.commit});function no(oo,io,so){return crelt("button",{class:"cm-button",name:oo,onclick:io,type:"button"},so)}this.dom=crelt("div",{onkeydown:oo=>this.keydown(oo),class:"cm-search"},[this.searchField,no("next",()=>findNext(to),[phrase(to,"next")]),no("prev",()=>findPrevious(to),[phrase(to,"previous")]),no("select",()=>selectMatches(to),[phrase(to,"all")]),crelt("label",null,[this.caseField,phrase(to,"match case")]),crelt("label",null,[this.reField,phrase(to,"regexp")]),crelt("label",null,[this.wordField,phrase(to,"by word")]),...to.state.readOnly?[]:[crelt("br"),this.replaceField,no("replace",()=>replaceNext(to),[phrase(to,"replace")]),no("replaceAll",()=>replaceAll(to),[phrase(to,"replace all")])],crelt("button",{name:"close",onclick:()=>closeSearchPanel(to),"aria-label":phrase(to,"close"),type:"button"},["×"])])}commit(){let to=new SearchQuery({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});to.eq(this.query)||(this.query=to,this.view.dispatch({effects:setSearchQuery.of(to)}))}keydown(to){runScopeHandlers(this.view,to,"search-panel")?to.preventDefault():to.keyCode==13&&to.target==this.searchField?(to.preventDefault(),(to.shiftKey?findPrevious:findNext)(this.view)):to.keyCode==13&&to.target==this.replaceField&&(to.preventDefault(),replaceNext(this.view))}update(to){for(let ro of to.transactions)for(let no of ro.effects)no.is(setSearchQuery)&&!no.value.eq(this.query)&&this.setQuery(no.value)}setQuery(to){this.query=to,this.searchField.value=to.search,this.replaceField.value=to.replace,this.caseField.checked=to.caseSensitive,this.reField.checked=to.regexp,this.wordField.checked=to.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(searchConfigFacet).top}}function phrase(eo,to){return eo.state.phrase(to)}const AnnounceMargin=30,Break=/[\s\.,:;?!]/;function announceMatch(eo,{from:to,to:ro}){let no=eo.state.doc.lineAt(to),oo=eo.state.doc.lineAt(ro).to,io=Math.max(no.from,to-AnnounceMargin),so=Math.min(oo,ro+AnnounceMargin),ao=eo.state.sliceDoc(io,so);if(io!=no.from){for(let lo=0;loao.length-AnnounceMargin;lo--)if(!Break.test(ao[lo-1])&&Break.test(ao[lo])){ao=ao.slice(0,lo);break}}return EditorView.announce.of(`${eo.state.phrase("current match")}. ${ao} ${eo.state.phrase("on line")} ${no.number}.`)}const baseTheme$2=EditorView.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),searchExtensions=[searchState,Prec.low(searchHighlighter),baseTheme$2];class SelectedDiagnostic{constructor(to,ro,no){this.from=to,this.to=ro,this.diagnostic=no}}class LintState{constructor(to,ro,no){this.diagnostics=to,this.panel=ro,this.selected=no}static init(to,ro,no){let oo=to,io=no.facet(lintConfig).markerFilter;io&&(oo=io(oo,no));let so=Decoration.set(oo.map(ao=>ao.from==ao.to||ao.from==ao.to-1&&no.doc.lineAt(ao.from).to==ao.from?Decoration.widget({widget:new DiagnosticWidget(ao),diagnostic:ao}).range(ao.from):Decoration.mark({attributes:{class:"cm-lintRange cm-lintRange-"+ao.severity+(ao.markClass?" "+ao.markClass:"")},diagnostic:ao,inclusive:!0}).range(ao.from,ao.to)),!0);return new LintState(so,ro,findDiagnostic(so))}}function findDiagnostic(eo,to=null,ro=0){let no=null;return eo.between(ro,1e9,(oo,io,{spec:so})=>{if(!(to&&so.diagnostic!=to))return no=new SelectedDiagnostic(oo,io,so.diagnostic),!1}),no}function hideTooltip(eo,to){let ro=eo.startState.doc.lineAt(to.pos);return!!(eo.effects.some(no=>no.is(setDiagnosticsEffect))||eo.changes.touchesRange(ro.from,ro.to))}function maybeEnableLint(eo,to){return eo.field(lintState,!1)?to:to.concat(StateEffect.appendConfig.of(lintExtensions))}const setDiagnosticsEffect=StateEffect.define(),togglePanel=StateEffect.define(),movePanelSelection=StateEffect.define(),lintState=StateField.define({create(){return new LintState(Decoration.none,null,null)},update(eo,to){if(to.docChanged){let ro=eo.diagnostics.map(to.changes),no=null;if(eo.selected){let oo=to.changes.mapPos(eo.selected.from,1);no=findDiagnostic(ro,eo.selected.diagnostic,oo)||findDiagnostic(ro,null,oo)}eo=new LintState(ro,eo.panel,no)}for(let ro of to.effects)ro.is(setDiagnosticsEffect)?eo=LintState.init(ro.value,eo.panel,to.state):ro.is(togglePanel)?eo=new LintState(eo.diagnostics,ro.value?LintPanel.open:null,eo.selected):ro.is(movePanelSelection)&&(eo=new LintState(eo.diagnostics,eo.panel,ro.value));return eo},provide:eo=>[showPanel.from(eo,to=>to.panel),EditorView.decorations.from(eo,to=>to.diagnostics)]}),activeMark=Decoration.mark({class:"cm-lintRange cm-lintRange-active",inclusive:!0});function lintTooltip(eo,to,ro){let{diagnostics:no}=eo.state.field(lintState),oo=[],io=2e8,so=0;no.between(to-(ro<0?1:0),to+(ro>0?1:0),(lo,uo,{spec:co})=>{to>=lo&&to<=uo&&(lo==uo||(to>lo||ro>0)&&(torenderDiagnostic(eo,ro,!1)))}const openLintPanel=eo=>{let to=eo.state.field(lintState,!1);(!to||!to.panel)&&eo.dispatch({effects:maybeEnableLint(eo.state,[togglePanel.of(!0)])});let ro=getPanel(eo,LintPanel.open);return ro&&ro.dom.querySelector(".cm-panel-lint ul").focus(),!0},closeLintPanel=eo=>{let to=eo.state.field(lintState,!1);return!to||!to.panel?!1:(eo.dispatch({effects:togglePanel.of(!1)}),!0)},nextDiagnostic=eo=>{let to=eo.state.field(lintState,!1);if(!to)return!1;let ro=eo.state.selection.main,no=to.diagnostics.iter(ro.to+1);return!no.value&&(no=to.diagnostics.iter(0),!no.value||no.from==ro.from&&no.to==ro.to)?!1:(eo.dispatch({selection:{anchor:no.from,head:no.to},scrollIntoView:!0}),!0)},lintKeymap=[{key:"Mod-Shift-m",run:openLintPanel,preventDefault:!0},{key:"F8",run:nextDiagnostic}],lintConfig=Facet.define({combine(eo){return Object.assign({sources:eo.map(to=>to.source).filter(to=>to!=null)},combineConfig(eo.map(to=>to.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(to,ro)=>to?ro?no=>to(no)||ro(no):to:ro}))}});function assignKeys(eo){let to=[];if(eo)e:for(let{name:ro}of eo){for(let no=0;noio.toLowerCase()==oo.toLowerCase())){to.push(oo);continue e}}to.push("")}return to}function renderDiagnostic(eo,to,ro){var no;let oo=ro?assignKeys(to.actions):[];return crelt("li",{class:"cm-diagnostic cm-diagnostic-"+to.severity},crelt("span",{class:"cm-diagnosticText"},to.renderMessage?to.renderMessage():to.message),(no=to.actions)===null||no===void 0?void 0:no.map((io,so)=>{let ao=!1,lo=ho=>{if(ho.preventDefault(),ao)return;ao=!0;let po=findDiagnostic(eo.state.field(lintState).diagnostics,to);po&&io.apply(eo,po.from,po.to)},{name:uo}=io,co=oo[so]?uo.indexOf(oo[so]):-1,fo=co<0?uo:[uo.slice(0,co),crelt("u",uo.slice(co,co+1)),uo.slice(co+1)];return crelt("button",{type:"button",class:"cm-diagnosticAction",onclick:lo,onmousedown:lo,"aria-label":` Action: ${uo}${co<0?"":` (access key "${oo[so]})"`}.`},fo)}),to.source&&crelt("div",{class:"cm-diagnosticSource"},to.source))}class DiagnosticWidget extends WidgetType{constructor(to){super(),this.diagnostic=to}eq(to){return to.diagnostic==this.diagnostic}toDOM(){return crelt("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class PanelItem{constructor(to,ro){this.diagnostic=ro,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=renderDiagnostic(to,ro,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class LintPanel{constructor(to){this.view=to,this.items=[];let ro=oo=>{if(oo.keyCode==27)closeLintPanel(this.view),this.view.focus();else if(oo.keyCode==38||oo.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(oo.keyCode==40||oo.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(oo.keyCode==36)this.moveSelection(0);else if(oo.keyCode==35)this.moveSelection(this.items.length-1);else if(oo.keyCode==13)this.view.focus();else if(oo.keyCode>=65&&oo.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:io}=this.items[this.selectedIndex],so=assignKeys(io.actions);for(let ao=0;ao{for(let io=0;iocloseLintPanel(this.view)},"×")),this.update()}get selectedIndex(){let to=this.view.state.field(lintState).selected;if(!to)return-1;for(let ro=0;ro{let uo=-1,co;for(let fo=no;fono&&(this.items.splice(no,uo-no),oo=!0)),ro&&co.diagnostic==ro.diagnostic?co.dom.hasAttribute("aria-selected")||(co.dom.setAttribute("aria-selected","true"),io=co):co.dom.hasAttribute("aria-selected")&&co.dom.removeAttribute("aria-selected"),no++});no({sel:io.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:so,panel:ao})=>{let lo=ao.height/this.list.offsetHeight;so.topao.bottom&&(this.list.scrollTop+=(so.bottom-ao.bottom)/lo)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),oo&&this.sync()}sync(){let to=this.list.firstChild;function ro(){let no=to;to=no.nextSibling,no.remove()}for(let no of this.items)if(no.dom.parentNode==this.list){for(;to!=no.dom;)ro();to=no.dom.nextSibling}else this.list.insertBefore(no.dom,to);for(;to;)ro()}moveSelection(to){if(this.selectedIndex<0)return;let ro=this.view.state.field(lintState),no=findDiagnostic(ro.diagnostics,this.items[to].diagnostic);no&&this.view.dispatch({selection:{anchor:no.from,head:no.to},scrollIntoView:!0,effects:movePanelSelection.of(no)})}static open(to){return new LintPanel(to)}}function svg(eo,to='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(eo)}')`}function underline(eo){return svg(``,'width="6" height="3"')}const baseTheme=EditorView.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:underline("#d11")},".cm-lintRange-warning":{backgroundImage:underline("orange")},".cm-lintRange-info":{backgroundImage:underline("#999")},".cm-lintRange-hint":{backgroundImage:underline("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),lintExtensions=[lintState,EditorView.decorations.compute([lintState],eo=>{let{selected:to,panel:ro}=eo.field(lintState);return!to||!ro||to.from==to.to?Decoration.none:Decoration.set([activeMark.range(to.from,to.to)])}),hoverTooltip(lintTooltip,{hideOn:hideTooltip}),baseTheme];var basicSetup=function eo(to){to===void 0&&(to={});var{crosshairCursor:ro=!1}=to,no=[];to.closeBracketsKeymap!==!1&&(no=no.concat(closeBracketsKeymap)),to.defaultKeymap!==!1&&(no=no.concat(defaultKeymap)),to.searchKeymap!==!1&&(no=no.concat(searchKeymap)),to.historyKeymap!==!1&&(no=no.concat(historyKeymap)),to.foldKeymap!==!1&&(no=no.concat(foldKeymap)),to.completionKeymap!==!1&&(no=no.concat(completionKeymap)),to.lintKeymap!==!1&&(no=no.concat(lintKeymap));var oo=[];return to.lineNumbers!==!1&&oo.push(lineNumbers()),to.highlightActiveLineGutter!==!1&&oo.push(highlightActiveLineGutter()),to.highlightSpecialChars!==!1&&oo.push(highlightSpecialChars()),to.history!==!1&&oo.push(history()),to.foldGutter!==!1&&oo.push(foldGutter()),to.drawSelection!==!1&&oo.push(drawSelection()),to.dropCursor!==!1&&oo.push(dropCursor()),to.allowMultipleSelections!==!1&&oo.push(EditorState.allowMultipleSelections.of(!0)),to.indentOnInput!==!1&&oo.push(indentOnInput()),to.syntaxHighlighting!==!1&&oo.push(syntaxHighlighting(defaultHighlightStyle,{fallback:!0})),to.bracketMatching!==!1&&oo.push(bracketMatching()),to.closeBrackets!==!1&&oo.push(closeBrackets()),to.autocompletion!==!1&&oo.push(autocompletion()),to.rectangularSelection!==!1&&oo.push(rectangularSelection()),ro!==!1&&oo.push(crosshairCursor()),to.highlightActiveLine!==!1&&oo.push(highlightActiveLine()),to.highlightSelectionMatches!==!1&&oo.push(highlightSelectionMatches()),to.tabSize&&typeof to.tabSize=="number"&&oo.push(indentUnit.of(" ".repeat(to.tabSize))),oo.concat([keymap.of(no.flat())]).filter(Boolean)};const chalky="#e5c07b",coral="#e06c75",cyan="#56b6c2",invalid="#ffffff",ivory="#abb2bf",stone="#7d8799",malibu="#61afef",sage="#98c379",whiskey="#d19a66",violet="#c678dd",darkBackground="#21252b",highlightBackground="#2c313a",background="#282c34",tooltipBackground="#353a42",selection="#3E4451",cursor="#528bff",oneDarkTheme=EditorView.theme({"&":{color:ivory,backgroundColor:background},".cm-content":{caretColor:cursor},".cm-cursor, .cm-dropCursor":{borderLeftColor:cursor},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:selection},".cm-panels":{backgroundColor:darkBackground,color:ivory},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:background,color:stone,border:"none"},".cm-activeLineGutter":{backgroundColor:highlightBackground},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:tooltipBackground},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:tooltipBackground,borderBottomColor:tooltipBackground},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:highlightBackground,color:ivory}}},{dark:!0}),oneDarkHighlightStyle=HighlightStyle.define([{tag:tags.keyword,color:violet},{tag:[tags.name,tags.deleted,tags.character,tags.propertyName,tags.macroName],color:coral},{tag:[tags.function(tags.variableName),tags.labelName],color:malibu},{tag:[tags.color,tags.constant(tags.name),tags.standard(tags.name)],color:whiskey},{tag:[tags.definition(tags.name),tags.separator],color:ivory},{tag:[tags.typeName,tags.className,tags.number,tags.changed,tags.annotation,tags.modifier,tags.self,tags.namespace],color:chalky},{tag:[tags.operator,tags.operatorKeyword,tags.url,tags.escape,tags.regexp,tags.link,tags.special(tags.string)],color:cyan},{tag:[tags.meta,tags.comment],color:stone},{tag:tags.strong,fontWeight:"bold"},{tag:tags.emphasis,fontStyle:"italic"},{tag:tags.strikethrough,textDecoration:"line-through"},{tag:tags.link,color:stone,textDecoration:"underline"},{tag:tags.heading,fontWeight:"bold",color:coral},{tag:[tags.atom,tags.bool,tags.special(tags.variableName)],color:whiskey},{tag:[tags.processingInstruction,tags.string,tags.inserted],color:sage},{tag:tags.invalid,color:invalid}]),oneDark=[oneDarkTheme,syntaxHighlighting(oneDarkHighlightStyle)];var defaultLightThemeOption=EditorView.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),getDefaultExtensions=function eo(to){to===void 0&&(to={});var{indentWithTab:ro=!0,editable:no=!0,readOnly:oo=!1,theme:io="light",placeholder:so="",basicSetup:ao=!0}=to,lo=[];switch(ro&&lo.unshift(keymap.of([indentWithTab])),ao&&(typeof ao=="boolean"?lo.unshift(basicSetup()):lo.unshift(basicSetup(ao))),so&&lo.unshift(placeholder(so)),io){case"light":lo.push(defaultLightThemeOption);break;case"dark":lo.push(oneDark);break;case"none":break;default:lo.push(io);break}return no===!1&&lo.push(EditorView.editable.of(!1)),oo&&lo.push(EditorState.readOnly.of(!0)),[...lo]},getStatistics=eo=>({line:eo.state.doc.lineAt(eo.state.selection.main.from),lineCount:eo.state.doc.lines,lineBreak:eo.state.lineBreak,length:eo.state.doc.length,readOnly:eo.state.readOnly,tabSize:eo.state.tabSize,selection:eo.state.selection,selectionAsSingle:eo.state.selection.asSingle().main,ranges:eo.state.selection.ranges,selectionCode:eo.state.sliceDoc(eo.state.selection.main.from,eo.state.selection.main.to),selections:eo.state.selection.ranges.map(to=>eo.state.sliceDoc(to.from,to.to)),selectedText:eo.state.selection.ranges.some(to=>!to.empty)}),External=Annotation.define(),emptyExtensions=[];function useCodeMirror(eo){var{value:to,selection:ro,onChange:no,onStatistics:oo,onCreateEditor:io,onUpdate:so,extensions:ao=emptyExtensions,autoFocus:lo,theme:uo="light",height:co=null,minHeight:fo=null,maxHeight:ho=null,width:po=null,minWidth:go=null,maxWidth:vo=null,placeholder:bo="",editable:xo=!0,readOnly:_o=!1,indentWithTab:Eo=!0,basicSetup:So=!0,root:To,initialState:wo}=eo,[Co,Oo]=reactExports.useState(),[Ao,Ro]=reactExports.useState(),[No,Mo]=reactExports.useState(),Do=EditorView.theme({"&":{height:co,minHeight:fo,maxHeight:ho,width:po,minWidth:go,maxWidth:vo},"& .cm-scroller":{height:"100% !important"}}),jo=EditorView.updateListener.of(Lo=>{if(Lo.docChanged&&typeof no=="function"&&!Lo.transactions.some(Uo=>Uo.annotation(External))){var Ho=Lo.state.doc,qo=Ho.toString();no(qo,Lo)}oo&&oo(getStatistics(Lo))}),Fo=getDefaultExtensions({theme:uo,editable:xo,readOnly:_o,placeholder:bo,indentWithTab:Eo,basicSetup:So}),$o=[jo,Do,...Fo];return so&&typeof so=="function"&&$o.push(EditorView.updateListener.of(so)),$o=$o.concat(ao),reactExports.useEffect(()=>{if(Co&&!No){var Lo={doc:to,selection:ro,extensions:$o},Ho=wo?EditorState.fromJSON(wo.json,Lo,wo.fields):EditorState.create(Lo);if(Mo(Ho),!Ao){var qo=new EditorView({state:Ho,parent:Co,root:To});Ro(qo),io&&io(qo,Ho)}}return()=>{Ao&&(Mo(void 0),Ro(void 0))}},[Co,No]),reactExports.useEffect(()=>Oo(eo.container),[eo.container]),reactExports.useEffect(()=>()=>{Ao&&(Ao.destroy(),Ro(void 0))},[Ao]),reactExports.useEffect(()=>{lo&&Ao&&Ao.focus()},[lo,Ao]),reactExports.useEffect(()=>{Ao&&Ao.dispatch({effects:StateEffect.reconfigure.of($o)})},[uo,ao,co,fo,ho,po,go,vo,bo,xo,_o,Eo,So,no,so]),reactExports.useEffect(()=>{if(to!==void 0){var Lo=Ao?Ao.state.doc.toString():"";Ao&&to!==Lo&&Ao.dispatch({changes:{from:0,to:Lo.length,insert:to||""},annotations:[External.of(!0)]})}},[to,Ao]),{state:No,setState:Mo,view:Ao,setView:Ro,container:Co,setContainer:Oo}}var _excluded=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],ReactCodeMirror=reactExports.forwardRef((eo,to)=>{var{className:ro,value:no="",selection:oo,extensions:io=[],onChange:so,onStatistics:ao,onCreateEditor:lo,onUpdate:uo,autoFocus:co,theme:fo="light",height:ho,minHeight:po,maxHeight:go,width:vo,minWidth:bo,maxWidth:xo,basicSetup:_o,placeholder:Eo,indentWithTab:So,editable:To,readOnly:wo,root:Co,initialState:Oo}=eo,Ao=_objectWithoutPropertiesLoose(eo,_excluded),Ro=reactExports.useRef(null),{state:No,view:Mo,container:Do}=useCodeMirror({container:Ro.current,root:Co,value:no,autoFocus:co,theme:fo,height:ho,minHeight:po,maxHeight:go,width:vo,minWidth:bo,maxWidth:xo,basicSetup:_o,placeholder:Eo,indentWithTab:So,editable:To,readOnly:wo,selection:oo,onChange:so,onStatistics:ao,onCreateEditor:lo,onUpdate:uo,extensions:io,initialState:Oo});if(reactExports.useImperativeHandle(to,()=>({editor:Ro.current,state:No,view:Mo}),[Ro,Do,No,Mo]),typeof no!="string")throw new Error("value must be typeof string but got "+typeof no);var jo=typeof fo=="string"?"cm-theme-"+fo:"cm-theme";return jsxRuntimeExports.jsx("div",_extends({ref:Ro,className:""+jo+(ro?" "+ro:"")},Ao))});ReactCodeMirror.displayName="CodeMirror";const TraceFilterInput=({hash:eo,setHash:to})=>{const ro=useClasses$7(),oo=useIsDark()?vscodeDark:void 0,io="filter condition (UI ONLY! NOT implement yet)",[so,ao]=reactExports.useState(eo.filter??""),lo=reactExports.useDeferredValue(so);reactExports.useEffect(()=>{to({filter:lo})},[lo]);const uo=fo=>{so.length>0?ao(`${so} and ${fo}`):ao(fo)},co=so!=="";return jsxRuntimeExports.jsx("div",{className:ro.wrapper,children:jsxRuntimeExports.jsxs("div",{className:ro.field,children:[jsxRuntimeExports.jsx(Search20Regular,{className:ro.searchIcon}),jsxRuntimeExports.jsx(ReactCodeMirror,{basicSetup:{lineNumbers:!1,foldGutter:!1,bracketMatching:!0,syntaxHighlighting:!0,highlightActiveLine:!1,highlightActiveLineGutter:!1,defaultKeymap:!1},className:ro.input,height:"36px",width:"100%",value:so,onChange:ao,editable:!0,placeholder:io,extensions,theme:oo}),jsxRuntimeExports.jsx(DismissCircle20Regular,{className:ro.dismissIcon,style:{visibility:co?"visible":"hidden"},onClick:()=>ao("")}),jsxRuntimeExports.jsx(Divider$2,{vertical:!0,className:ro.divider}),jsxRuntimeExports.jsxs(Popover,{positioning:"below-end",withArrow:!0,children:[jsxRuntimeExports.jsx(PopoverTrigger,{disableButtonEnhancement:!0,children:jsxRuntimeExports.jsx(AddCircle20Regular,{className:ro.addIcon})}),jsxRuntimeExports.jsx(PopoverSurface,{tabIndex:-1,children:jsxRuntimeExports.jsx(FilterConditions,{onAddCondition:uo})})]})]})})};function FilterConditions(eo){const{onAddCondition:to}=eo,ro=useClasses$7();return jsxRuntimeExports.jsxs("div",{className:ro.conditionsWrapper,children:[jsxRuntimeExports.jsx(FilterConditionRow,{label:"filter by span_type",initialSnippet:"span_type == 'LLM'",onAddFilterConditionSnippet:to},"span_type"),jsxRuntimeExports.jsx(FilterConditionRow,{label:"filter by total_token",initialSnippet:"total_token > 1000",onAddFilterConditionSnippet:to},"total_token"),jsxRuntimeExports.jsx(FilterConditionRow,{label:"filter by user_metrics",initialSnippet:"user_metrics['Hallucination'].label == 'hallucinated'",onAddFilterConditionSnippet:to},"user_metrics"),jsxRuntimeExports.jsx(FilterConditionRow,{label:"filter by evaluation score",initialSnippet:"user_metrics['Hallucination'].score < 1",onAddFilterConditionSnippet:to},"eval_score"),jsxRuntimeExports.jsx(FilterConditionRow,{label:"filter by start_time",initialSnippet:'start_time > "2024/03/12 22:38:35"',onAddFilterConditionSnippet:to},"start_time")]})}function FilterConditionRow(eo){const{initialSnippet:to,onAddFilterConditionSnippet:ro}=eo,[no,oo]=reactExports.useState(to),io=useClasses$7(),ao=useIsDark()?vscodeDark:void 0;return jsxRuntimeExports.jsxs("div",{className:io.conditionWrapper,children:[jsxRuntimeExports.jsx(Text$2,{size:300,weight:"semibold",children:eo.label}),jsxRuntimeExports.jsxs("div",{className:io.conditionRow,children:[jsxRuntimeExports.jsx("div",{className:io.conditionField,children:jsxRuntimeExports.jsx(ReactCodeMirror,{value:no,basicSetup:{lineNumbers:!1,foldGutter:!1,bracketMatching:!0,syntaxHighlighting:!0,highlightActiveLine:!1,highlightActiveLineGutter:!1},className:io.conditionInput,editable:!0,extensions:[python()],onChange:oo,theme:ao})}),jsxRuntimeExports.jsx(Button$2,{title:"Add to filter condition",onClick:()=>ro(no),icon:jsxRuntimeExports.jsx(AddCircle20Regular,{}),size:"large"})]})]})}const extensions=[keymap.of([{key:"Enter",run:eo=>!0}]),python(),autocompletion({override:[filterConditionCompletions]})];function filterConditionCompletions(eo){const to=eo.matchBefore(/\w*/);return!to||to.from===to.to&&!eo.explicit?null:{from:to.from,options:[{label:"span_type",type:"variable",info:"The span_type variant: CHAIN, LLM, RETRIEVER, TOOL, etc."},{label:"total_token",type:"variable",info:"The total_token: total number of tokens."},{label:"start_time",type:"variable",info:"The start_time: start time of the span."}]}}const useClasses$7=makeStyles({wrapper:{width:"calc(100% - 280px)"},field:{display:"flex",alignItems:"center",...shorthands.flex(1),...shorthands.padding("1px"),...shorthands.border("1px","solid",tokens.colorNeutralStroke1),...shorthands.borderRadius("4px")},searchIcon:{...shorthands.margin("0","8px")},dismissIcon:{cursor:"pointer"},addIcon:{marginRight:"8px",cursor:"pointer"},input:{width:"100%",overflowX:"auto",backgroundColor:"red","& .cm-focused":{outlineStyle:"none"},"& .cm-content":{...shorthands.padding("8px",0)}},divider:{...shorthands.flex("none"),...shorthands.padding(0,"8px")},conditionsWrapper:{display:"flex",flexDirection:"column",width:"500px",...shorthands.gap("20px"),...shorthands.padding("4px")},conditionWrapper:{display:"flex",flexDirection:"column"},conditionField:{display:"flex",alignItems:"center",...shorthands.flex(1),...shorthands.padding("1px"),...shorthands.border("1px","solid",tokens.colorNeutralStroke1),...shorthands.borderRadius("4px")},conditionRow:{display:"flex",alignItems:"center",marginTop:"4px",...shorthands.gap("8px")},conditionInput:{...shorthands.flex(1),"& .cm-focused":{outlineStyle:"none"},"& .cm-content":{...shorthands.padding("8px",0)}}}),TraceFilter=({hash:eo,setHash:to})=>{const ro=useClasses$6(),no=useTableColumnNames(),[oo,io]=[useTableHiddenColumnKeys(),useSetTableHiddenColumnKeys()],so=useTraceListShowMetrics(),ao=reactExports.useMemo(()=>[...no.normalColumns,...no.evaluationColumns].filter(co=>!oo.includes(co.key)).map(co=>co.key),[oo,no]),lo=(uo,co)=>{const{optionValue:fo}=co;fo&&io(oo.includes(fo)?oo.filter(ho=>ho!==fo):[...oo,fo])};return jsxRuntimeExports.jsxs("div",{className:ro.wrapper,children:[eo&&to?jsxRuntimeExports.jsx(TraceFilterInput,{hash:eo,setHash:to}):jsxRuntimeExports.jsx(Input,{className:ro.filter,disabled:!0,placeholder:"NOT implement yet"}),jsxRuntimeExports.jsx(Combobox,{multiselect:!0,placeholder:"Columns Filter",selectedOptions:ao,onOptionSelect:lo,children:jsxRuntimeExports.jsxs("div",{className:ro.popUp,children:[jsxRuntimeExports.jsx(OptionGroup,{label:"Trace Info",children:no.normalColumns.map(uo=>jsxRuntimeExports.jsx(Option$3,{value:uo.key,children:uo.name},uo.key))}),so&&jsxRuntimeExports.jsx(OptionGroup,{label:"Metrics",children:no.evaluationColumns.map(uo=>jsxRuntimeExports.jsx(Option$3,{value:uo.key,text:"123"+uo.name,children:jsxRuntimeExports.jsx(Tooltip,{relationship:"label",content:uo.name,children:jsxRuntimeExports.jsx("span",{className:ro.optionText,children:uo.name})})},uo.key))})]})})]})},useClasses$6=makeStyles({wrapper:{display:"flex",width:"100%",...shorthands.gap("1rem"),...shorthands.margin(tokens.spacingVerticalM)},filter:{flexGrow:1},popUp:{overflowX:"hidden"},optionText:{display:"block",width:"90%",...shorthands.overflow("hidden"),textOverflow:"ellipsis",whiteSpace:"nowrap"}}),useDebugFunctions=()=>{const eo=useGetAllTraces(),to=useGetAllSpans(),ro=useSelectedTrace(),no=useSpansOfSelectedTrace();reactExports.useEffect(()=>{window.printTracesAndSpans=()=>{const oo=eo();console.log("traces",oo);const io=to();console.log("spans",io)},window.printSelectedTrace=()=>{console.log("selectedTrace",ro)},window.printSpansOfSelectedTrace=()=>{console.log("spansOfSelectedTrace",no)}},[eo,to,ro,no])},useOnClickTraceRow=()=>{const eo=useSetSelectedTraceId();return reactExports.useCallback((to,ro)=>{eo(to==null?void 0:to.trace_id)},[eo])};function useResolvedElement(eo,to){var ro=reactExports.useRef(null),no=reactExports.useRef(null);no.current=to;var oo=reactExports.useRef(null);reactExports.useEffect(function(){io()});var io=reactExports.useCallback(function(){var so=oo.current,ao=no.current,lo=so||(ao?ao instanceof Element?ao:ao.current:null);ro.current&&ro.current.element===lo&&ro.current.subscriber===eo||(ro.current&&ro.current.cleanup&&ro.current.cleanup(),ro.current={element:lo,subscriber:eo,cleanup:lo?eo(lo):void 0})},[eo]);return reactExports.useEffect(function(){return function(){ro.current&&ro.current.cleanup&&(ro.current.cleanup(),ro.current=null)}},[]),reactExports.useCallback(function(so){oo.current=so,io()},[io])}function extractSize(eo,to,ro){return eo[to]?eo[to][0]?eo[to][0][ro]:eo[to][ro]:to==="contentBoxSize"?eo.contentRect[ro==="inlineSize"?"width":"height"]:void 0}function useResizeObserver(eo){eo===void 0&&(eo={});var to=eo.onResize,ro=reactExports.useRef(void 0);ro.current=to;var no=eo.round||Math.round,oo=reactExports.useRef(),io=reactExports.useState({width:void 0,height:void 0}),so=io[0],ao=io[1],lo=reactExports.useRef(!1);reactExports.useEffect(function(){return lo.current=!1,function(){lo.current=!0}},[]);var uo=reactExports.useRef({width:void 0,height:void 0}),co=useResolvedElement(reactExports.useCallback(function(fo){return(!oo.current||oo.current.box!==eo.box||oo.current.round!==no)&&(oo.current={box:eo.box,round:no,instance:new ResizeObserver(function(ho){var po=ho[0],go=eo.box==="border-box"?"borderBoxSize":eo.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",vo=extractSize(po,go,"inlineSize"),bo=extractSize(po,go,"blockSize"),xo=vo?no(vo):void 0,_o=bo?no(bo):void 0;if(uo.current.width!==xo||uo.current.height!==_o){var Eo={width:xo,height:_o};uo.current.width=xo,uo.current.height=_o,ro.current?ro.current(Eo):lo.current||ao(Eo)}})}),oo.current.instance.observe(fo,{box:eo.box}),function(){oo.current&&oo.current.instance.unobserve(fo)}},[eo.box,no]),eo.ref);return reactExports.useMemo(function(){return{ref:co,width:so.width,height:so.height}},[co,so.width,so.height])}const genStatusChecker=eo=>to=>to===void 0?!1:to.toLowerCase()===eo.toLowerCase(),checkStatus=(eo,to)=>eo===void 0?!1:eo.toLowerCase()===to.toLowerCase(),useTraceListRows=()=>{const eo=useTraces();return reactExports.useMemo(()=>eo.map(to=>convertToTraceListRow(to)),[eo])},BASIC_WIDTH=200,getColumnChildrenCount=eo=>eo.children?eo==null?void 0:eo.children.reduce((to,ro)=>to+getColumnChildrenCount(ro),0):eo.minWidth??BASIC_WIDTH,useTraceListColumns=()=>{const{ref:eo,width:to}=useResizeObserver(),ro=useClasses$5(),no=useTraceListRows(),oo=useOnClickTraceRow(),io=useSetTableColumnNames(),so=useTableHiddenColumnKeys(),ao=useLocStrings(),lo=useTraceListColumnModifier(),uo=useSortableColumns(),co=reactExports.useMemo(()=>genStatusChecker("running"),[]),[fo,ho]=React.useState([]);return reactExports.useEffect(()=>{const po=[{key:"kind",name:ao.Kind,minWidth:120,maxWidth:200,renderCell:({row:Ao})=>co(Ao.status)?jsxRuntimeExports.jsx(CellSkeleton,{}):jsxRuntimeExports.jsx(KindText,{kind:Ao.kind})},{key:"name",name:ao.Name,minWidth:150,maxWidth:300,renderCell:({row:Ao})=>co(Ao.status)?jsxRuntimeExports.jsx(CellSkeleton,{}):jsxRuntimeExports.jsx(Tooltip,{content:Ao.name??"",relationship:"label",children:jsxRuntimeExports.jsx("span",{className:ro.nameCell,title:Ao.name,onClick:()=>{oo(Ao,"name")},children:Ao.name})})},{key:"input",name:ao.Input,minWidth:300,renderCell:({row:Ao})=>co(Ao.status)?jsxRuntimeExports.jsx(CellSkeleton,{height:40}):jsxRuntimeExports.jsx(TraceListJsonCell,{jsonObject:Ao.inputs})},{key:"output",name:ao.Output,minWidth:300,renderCell:({row:Ao})=>co(Ao.status)?jsxRuntimeExports.jsx(CellSkeleton,{height:40}):jsxRuntimeExports.jsx(TraceListJsonCell,{jsonObject:Ao.outputs})},{key:"start_time",name:ao.Start_time,minWidth:150,maxWidth:300,renderCell:({row:Ao})=>jsxRuntimeExports.jsx(TextCellWrapper,{children:jsxRuntimeExports.jsx(TimeText,{time:Ao.start_time})})},{key:"end_time",name:ao.End_time,minWidth:150,maxWidth:300,renderCell:({row:Ao})=>co(Ao.status)?jsxRuntimeExports.jsx(CellSkeleton,{height:40}):jsxRuntimeExports.jsx(TextCellWrapper,{children:jsxRuntimeExports.jsx(TimeText,{time:Ao.end_time})})},{key:"latency",name:ao.Latency,minWidth:120,renderCell:({row:Ao})=>co(Ao.status)?jsxRuntimeExports.jsx(CellSkeleton,{}):jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(LatencyText,{startTimeISOString:Ao.start_time,endTimeISOString:Ao.end_time})})},{key:"total_tokens",name:ao.Total_tokens,minWidth:120,renderCell:({row:Ao})=>co(Ao.status)?jsxRuntimeExports.jsx(CellSkeleton,{}):jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(SummaryToken,{trace:Ao})})},{key:"status",name:ao.Status,minWidth:120,renderCell:({row:Ao})=>jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(StatusText,{statusCode:Ao.status})})}],go=[];no.forEach(Ao=>{Object.entries(Ao.evaluations??{}).forEach(([Ro])=>{!go.includes(Ro)&&Ro&&go.push(Ro)})});const vo=go.map(Ao=>{const Ro=[],No=[];return no.forEach(Mo=>{var Fo;const Do=(Fo=Mo.evaluations)==null?void 0:Fo[Ao];if(!Do||!Do.outputs)return;const jo=Do.outputs;Object.keys(jo).forEach($o=>{const Lo=jo[$o];!Ro.includes($o)&&Lo!==null&&(Ro.push($o),No.push({key:`evaluation-${Ao}-${$o}-value`,name:$o,renderCell:({row:Ho})=>{var Yo,Zo,_s;if(co(Ho.status))return jsxRuntimeExports.jsx(CellSkeleton,{});let qo;const Uo=(_s=(Zo=(Yo=Ho==null?void 0:Ho.evaluations)==null?void 0:Yo[Ao])==null?void 0:Zo.outputs)==null?void 0:_s[$o];return Uo===void 0?qo="N/A":typeof Uo=="number"?qo=formatNumber$1(Uo):qo=`${Uo}`,qo}}))})}),{name:Ao,key:`evaluation-${Ao}`,children:No}});let bo=[...po,{key:"evaluations",name:"Metrics",minWidth:450,children:vo}];bo=lo?lo(bo,no):bo;const xo=bo.filter(Ao=>Ao.key!=="evaluations"),_o=bo.find(Ao=>Ao.key==="evaluations");io({normalColumns:xo.map(Ao=>({name:Ao.name,key:Ao.key})).filter(Ao=>!UN_FILTERABLE_COLUMNS.includes(Ao.name)),evaluationColumns:_o.children.map(Ao=>({name:Ao.name,key:Ao.key}))});const Eo=xo.filter(Ao=>!so.includes(Ao.key)),So={..._o,children:_o.children.filter(Ao=>!so.includes(Ao.key))},To=[...Eo,So],wo=bo.reduce((Ao,Ro)=>Ao+getColumnChildrenCount(Ro),0),Co=Ao=>{if(Ao.children)return{...Ao,children:Ao.children.map(Co)};const Ro=Ao.minWidth??BASIC_WIDTH,No=to?(to-24)/wo*Ro:200;return{...Ao,width:No,minWidth:No}},Oo=To.map(Co).map(Ao=>{const Ro=Ao.key;return Ro?{...Ao,key:Ao.key,sortable:!!(Ro&&uo.includes(Ro))}:Ao});ho(Oo)},[no,oo,ro.nameCell,lo,so,ao,io,uo,to,co]),{columns:fo,ref:eo}},useClasses$5=makeStyles({typeBadge:{...shorthands.padding(tokens.spacingVerticalXXS,tokens.spacingHorizontalS)},latencyWrapper:{display:"flex",flexDirection:"row",alignItems:"center",justifyItems:"center","> svg":{marginRight:"5px"}},nameCell:{color:tokens.colorBrandForeground1,fontWeight:tokens.fontWeightSemibold,":hover":{...shorthands.textDecoration("underline")}}}),UN_FILTERABLE_COLUMNS=["Kind","Name"];function TraceList({onRowClick:eo,className:to}){const ro=useClasses$4(),no=useTraceListRows(),{columns:oo,ref:io}=useTraceListColumns(),so=useTraceListViewStatus(),ao=useTraceListLoadingComponent(),lo=useTraceListErrorComponent(),uo=useIsDark();useDebugFunctions();const co=useSortColumn(),fo=useSetSortColumn(),ho=co?[co]:[],po=useOnClickTraceRow(),go=reactExports.useCallback(vo=>{const{row:bo,column:xo}=vo;po(bo,xo.key),eo==null||eo(bo)},[po,eo]);return so===ViewStatus.error?jsxRuntimeExports.jsx(lo,{}):so===ViewStatus.loading?jsxRuntimeExports.jsx(ao,{}):jsxRuntimeExports.jsx("div",{ref:io,className:ro.root,children:jsxRuntimeExports.jsx(DataGrid$1$1,{className:`${ro.grid} ${to??""} ${uo?"rdg-dark":"rdg-light"}`,renderers:{noRowsFallback:jsxRuntimeExports.jsxs("div",{style:{textAlign:"center",gridColumn:"1/-1",display:"flex",alignItems:"center",justifyContent:"center"},children:[jsxRuntimeExports.jsx(TextBulletListSquareWarning24Regular,{}),jsxRuntimeExports.jsx(Text$2,{style:{paddingLeft:"1rem"},children:"No traces found."})]})},rowClass:()=>ro.row,columns:oo,rows:no,headerRowHeight:26,rowHeight:80,onCellClick:go,defaultColumnOptions:{resizable:!0},sortColumns:ho,onSortColumnsChange:vo=>{var bo;fo((bo=vo.slice(-1))==null?void 0:bo[0])}})})}const useClasses$4=makeStyles({root:{display:"flex",flexDirection:"column",flexGrow:1},grid:{},row:{cursor:"pointer"}}),DefaultDetailContainer=({isOpen:eo,setIsOpen:to,header:ro=null,content:no})=>jsxRuntimeExports.jsxs(OverlayDrawer,{position:"end",style:{width:"calc(100% - 48px)"},open:eo,onOpenChange:(oo,io)=>to(io.open),children:[ro,jsxRuntimeExports.jsx("div",{style:{width:"100%",height:"calc(100vh - 40px)"},children:no})]});makeStyles({wrapper:{display:"flex",flexDirection:"column",height:"100%"},divider:{flexGrow:0,...shorthands.margin("16px",0)},grid:{flexGrow:1}});makeStyles({wrapper:{display:"flex",flexDirection:"column",justifyContent:"space-between",...shorthands.flex(0,0,"auto")},horizontal:{flexDirection:"row",alignItems:"center",...shorthands.flex(0,0,"auto")},title:{color:tokens.colorNeutralForeground2,marginBottom:tokens.spacingVerticalXS},data:{color:tokens.colorNeutralForeground1},tagsWrapper:{display:"flex",flexDirection:"row",...shorthands.gap("0.5rem")},tagsWrapperHorizontal:{flexDirection:"column"},timeWrapper:{display:"flex",flexDirection:"row",alignItems:"center",justifyItems:"center","> svg":{marginRight:"5px"}},scoreWrapper:{display:"flex",flexDirection:"row",alignItems:"center","> :first-child":{marginRight:"8px"}}});const defaultLocStrings=new Proxy({},{get:(eo,to)=>to.replace(/_/g," ")}),RegistryWrapper=createRegistry({name:"TraceView"}),Provider=({isDark:eo=!1,viewModel:to,children:ro,locStrings:no=defaultLocStrings,TraceListLoading:oo,TraceListError:io,TraceDetailLoading:so,TraceDetailError:ao})=>{const lo=React.useCallback(uo=>{uo.register(TraceViewModelToken,{useValue:to}),oo&&uo.register(traceListLoadingInjectionToken,{useValue:oo}),io&&uo.register(traceListErrorInjectionToken,{useValue:io}),so&&uo.register(traceDetailLoadingInjectionToken,{useValue:so}),ao&&uo.register(traceDetailErrorInjectionToken,{useValue:ao}),no&&uo.register(locStringsInjectionToken,{useValue:no})},[]);return jsxRuntimeExports.jsx(TraceViewThemeContext.Provider,{value:eo,children:jsxRuntimeExports.jsx(RegistryWrapper,{onInitialize:lo,children:ro})})},ThemeContext=reactExports.createContext({});ThemeContext.displayName="ThemeContext";const ThemeContextProvider=({children:eo})=>{const[to,ro]=reactExports.useState("light");return reactExports.useEffect(()=>{const no=window.matchMedia("(prefers-color-scheme: dark)");ro(no.matches?"dark":"light");const oo=io=>{ro(io.matches?"dark":"light")};return no.addEventListener("change",oo),()=>{no.removeEventListener("change",oo)}},[]),jsxRuntimeExports.jsx(ThemeContext.Provider,{value:{theme:to,setTheme:ro},children:eo})},token="%[a-f0-9]{2}",singleMatcher=new RegExp("("+token+")|([^%]+?)","gi"),multiMatcher=new RegExp("("+token+")+","gi");function decodeComponents(eo,to){try{return[decodeURIComponent(eo.join(""))]}catch{}if(eo.length===1)return eo;to=to||1;const ro=eo.slice(0,to),no=eo.slice(to);return Array.prototype.concat.call([],decodeComponents(ro),decodeComponents(no))}function decode$1(eo){try{return decodeURIComponent(eo)}catch{let to=eo.match(singleMatcher)||[];for(let ro=1;roeo==null,strictUriEncode=eo=>encodeURIComponent(eo).replaceAll(/[!'()*]/g,to=>`%${to.charCodeAt(0).toString(16).toUpperCase()}`),encodeFragmentIdentifier=Symbol("encodeFragmentIdentifier");function encoderForArrayFormat(eo){switch(eo.arrayFormat){case"index":return to=>(ro,no)=>{const oo=ro.length;return no===void 0||eo.skipNull&&no===null||eo.skipEmptyString&&no===""?ro:no===null?[...ro,[encode(to,eo),"[",oo,"]"].join("")]:[...ro,[encode(to,eo),"[",encode(oo,eo),"]=",encode(no,eo)].join("")]};case"bracket":return to=>(ro,no)=>no===void 0||eo.skipNull&&no===null||eo.skipEmptyString&&no===""?ro:no===null?[...ro,[encode(to,eo),"[]"].join("")]:[...ro,[encode(to,eo),"[]=",encode(no,eo)].join("")];case"colon-list-separator":return to=>(ro,no)=>no===void 0||eo.skipNull&&no===null||eo.skipEmptyString&&no===""?ro:no===null?[...ro,[encode(to,eo),":list="].join("")]:[...ro,[encode(to,eo),":list=",encode(no,eo)].join("")];case"comma":case"separator":case"bracket-separator":{const to=eo.arrayFormat==="bracket-separator"?"[]=":"=";return ro=>(no,oo)=>oo===void 0||eo.skipNull&&oo===null||eo.skipEmptyString&&oo===""?no:(oo=oo===null?"":oo,no.length===0?[[encode(ro,eo),to,encode(oo,eo)].join("")]:[[no,encode(oo,eo)].join(eo.arrayFormatSeparator)])}default:return to=>(ro,no)=>no===void 0||eo.skipNull&&no===null||eo.skipEmptyString&&no===""?ro:no===null?[...ro,encode(to,eo)]:[...ro,[encode(to,eo),"=",encode(no,eo)].join("")]}}function parserForArrayFormat(eo){let to;switch(eo.arrayFormat){case"index":return(ro,no,oo)=>{if(to=/\[(\d*)]$/.exec(ro),ro=ro.replace(/\[\d*]$/,""),!to){oo[ro]=no;return}oo[ro]===void 0&&(oo[ro]={}),oo[ro][to[1]]=no};case"bracket":return(ro,no,oo)=>{if(to=/(\[])$/.exec(ro),ro=ro.replace(/\[]$/,""),!to){oo[ro]=no;return}if(oo[ro]===void 0){oo[ro]=[no];return}oo[ro]=[...oo[ro],no]};case"colon-list-separator":return(ro,no,oo)=>{if(to=/(:list)$/.exec(ro),ro=ro.replace(/:list$/,""),!to){oo[ro]=no;return}if(oo[ro]===void 0){oo[ro]=[no];return}oo[ro]=[...oo[ro],no]};case"comma":case"separator":return(ro,no,oo)=>{const io=typeof no=="string"&&no.includes(eo.arrayFormatSeparator),so=typeof no=="string"&&!io&&decode(no,eo).includes(eo.arrayFormatSeparator);no=so?decode(no,eo):no;const ao=io||so?no.split(eo.arrayFormatSeparator).map(lo=>decode(lo,eo)):no===null?no:decode(no,eo);oo[ro]=ao};case"bracket-separator":return(ro,no,oo)=>{const io=/(\[])$/.test(ro);if(ro=ro.replace(/\[]$/,""),!io){oo[ro]=no&&decode(no,eo);return}const so=no===null?[]:no.split(eo.arrayFormatSeparator).map(ao=>decode(ao,eo));if(oo[ro]===void 0){oo[ro]=so;return}oo[ro]=[...oo[ro],...so]};default:return(ro,no,oo)=>{if(oo[ro]===void 0){oo[ro]=no;return}oo[ro]=[...[oo[ro]].flat(),no]}}}function validateArrayFormatSeparator(eo){if(typeof eo!="string"||eo.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function encode(eo,to){return to.encode?to.strict?strictUriEncode(eo):encodeURIComponent(eo):eo}function decode(eo,to){return to.decode?decodeUriComponent(eo):eo}function keysSorter(eo){return Array.isArray(eo)?eo.sort():typeof eo=="object"?keysSorter(Object.keys(eo)).sort((to,ro)=>Number(to)-Number(ro)).map(to=>eo[to]):eo}function removeHash(eo){const to=eo.indexOf("#");return to!==-1&&(eo=eo.slice(0,to)),eo}function getHash(eo){let to="";const ro=eo.indexOf("#");return ro!==-1&&(to=eo.slice(ro)),to}function parseValue(eo,to){return to.parseNumbers&&!Number.isNaN(Number(eo))&&typeof eo=="string"&&eo.trim()!==""?eo=Number(eo):to.parseBooleans&&eo!==null&&(eo.toLowerCase()==="true"||eo.toLowerCase()==="false")&&(eo=eo.toLowerCase()==="true"),eo}function extract(eo){eo=removeHash(eo);const to=eo.indexOf("?");return to===-1?"":eo.slice(to+1)}function parse(eo,to){to={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...to},validateArrayFormatSeparator(to.arrayFormatSeparator);const ro=parserForArrayFormat(to),no=Object.create(null);if(typeof eo!="string"||(eo=eo.trim().replace(/^[?#&]/,""),!eo))return no;for(const oo of eo.split("&")){if(oo==="")continue;const io=to.decode?oo.replaceAll("+"," "):oo;let[so,ao]=splitOnFirst(io,"=");so===void 0&&(so=io),ao=ao===void 0?null:["comma","separator","bracket-separator"].includes(to.arrayFormat)?ao:decode(ao,to),ro(decode(so,to),ao,no)}for(const[oo,io]of Object.entries(no))if(typeof io=="object"&&io!==null)for(const[so,ao]of Object.entries(io))io[so]=parseValue(ao,to);else no[oo]=parseValue(io,to);return to.sort===!1?no:(to.sort===!0?Object.keys(no).sort():Object.keys(no).sort(to.sort)).reduce((oo,io)=>{const so=no[io];return oo[io]=so&&typeof so=="object"&&!Array.isArray(so)?keysSorter(so):so,oo},Object.create(null))}function stringify(eo,to){if(!eo)return"";to={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...to},validateArrayFormatSeparator(to.arrayFormatSeparator);const ro=so=>to.skipNull&&isNullOrUndefined(eo[so])||to.skipEmptyString&&eo[so]==="",no=encoderForArrayFormat(to),oo={};for(const[so,ao]of Object.entries(eo))ro(so)||(oo[so]=ao);const io=Object.keys(oo);return to.sort!==!1&&io.sort(to.sort),io.map(so=>{const ao=eo[so];return ao===void 0?"":ao===null?encode(so,to):Array.isArray(ao)?ao.length===0&&to.arrayFormat==="bracket-separator"?encode(so,to)+"[]":ao.reduce(no(so),[]).join("&"):encode(so,to)+"="+encode(ao,to)}).filter(so=>so.length>0).join("&")}function parseUrl(eo,to){var oo;to={decode:!0,...to};let[ro,no]=splitOnFirst(eo,"#");return ro===void 0&&(ro=eo),{url:((oo=ro==null?void 0:ro.split("?"))==null?void 0:oo[0])??"",query:parse(extract(eo),to),...to&&to.parseFragmentIdentifier&&no?{fragmentIdentifier:decode(no,to)}:{}}}function stringifyUrl(eo,to){to={encode:!0,strict:!0,[encodeFragmentIdentifier]:!0,...to};const ro=removeHash(eo.url).split("?")[0]||"",no=extract(eo.url),oo={...parse(no,{sort:!1}),...eo.query};let io=stringify(oo,to);io&&(io=`?${io}`);let so=getHash(eo.url);if(typeof eo.fragmentIdentifier=="string"){const ao=new URL(ro);ao.hash=eo.fragmentIdentifier,so=to[encodeFragmentIdentifier]?ao.hash:`#${eo.fragmentIdentifier}`}return`${ro}${io}${so}`}function pick(eo,to,ro){ro={parseFragmentIdentifier:!0,[encodeFragmentIdentifier]:!1,...ro};const{url:no,query:oo,fragmentIdentifier:io}=parseUrl(eo,ro);return stringifyUrl({url:no,query:includeKeys(oo,to),fragmentIdentifier:io},ro)}function exclude(eo,to,ro){const no=Array.isArray(to)?oo=>!to.includes(oo):(oo,io)=>!to(oo,io);return pick(eo,no,ro)}const queryString=Object.freeze(Object.defineProperty({__proto__:null,exclude,extract,parse,parseUrl,pick,stringify,stringifyUrl},Symbol.toStringTag,{value:"Module"}));function useHashObject(){const[eo,to]=reactExports.useState(()=>queryString.parse(window.location.hash.substring(1))),ro=reactExports.useCallback(no=>{to(oo=>{const io={...oo,...no},so=queryString.stringify(io);return window.location.hash=so,io})},[]);return reactExports.useEffect(()=>{const no=()=>{to(queryString.parse(window.location.hash.substring(1)))};return window.addEventListener("hashchange",no),()=>window.removeEventListener("hashchange",no)},[]),[eo,ro]}function genLocalUrlParamsWithHash(eo){return isNotNullOrUndefined(eo)?isNotNullOrUndefined(eo.session)?`session=${eo.session}`:isNotNullOrUndefined(eo.collection)?`session=${eo.collection}`:isNotNullOrUndefined(eo.experiment)?`experiment=${eo.experiment}`:isNotNullOrUndefined(eo.run)?`run=${eo.run}`:isNotNullOrUndefined(eo.trace)?`trace_ids=${eo.trace}`:"":""}function isNotNullOrUndefined(eo){return eo!=null}const getSummariesSignature=eo=>eo.flatMap(no=>[`${no.line_run_id}_${no.status}`,...Object.values(no.evaluations??[]).map(oo=>`${oo.trace_id}_${oo.status}`)]).sort().join(","),useLocalFetchSummaries=(eo,to)=>{const ro=useTraceViewModel(),[no,oo]=reactExports.useState(!0),io=useLocalFetchSummariesFunc(eo);reactExports.useEffect(()=>{no&&ro.setTraceListStatus(ViewStatus.loading),io().finally(()=>{no&&(oo(!1),ro.setTraceListStatus(ViewStatus.loaded))});let so;return to&&(so=setInterval(io,TRACE_POLLING_GAP)),()=>{so&&clearInterval(so)}},[io,to])},useLocalFetchSummary=()=>{const eo=useTraceViewModel();return reactExports.useCallback(async ro=>fetch(`${LOCAL_URL_PREFIX}/v1.0/LineRuns/list?trace_ids=${ro}`).then(no=>no.json()).then(no=>{no&&(eo.appendTraces(no),eo.setTraceListStatus(ViewStatus.loaded))}).catch(no=>{eo.setTraceListStatus(ViewStatus.error),eo.appendTraces([]),console.error("Error:",no)}),[eo])},useLocalFetchSummariesFunc=eo=>{const to=useTraceViewModel(),[ro,no]=reactExports.useState(void 0),oo=reactExports.useMemo(()=>{const so=genLocalUrlParamsWithHash(eo);return so!==""?`?${so}`:""},[eo]);return reactExports.useCallback(async()=>fetch(`${LOCAL_URL_PREFIX}/v1.0/LineRuns/list${oo}`).then(so=>so.json()).then(so=>{if(!so&&Array.isArray(so))throw new Error("No new traces");const ao=getSummariesSignature(so);(ro===void 0||ao!==ro)&&(no(ao),to.traces$.clear(),to.appendTraces(so))}).catch(so=>{to.setTraceListStatus(ViewStatus.error),to.appendTraces([]),console.error("Error:",so)}),[oo,to])},useLocalRefreshTraces=eo=>{const to=useTraceViewModel(),ro=useLocalFetchSummariesFunc(eo);return reactExports.useCallback(()=>{to.setTraceListStatus(ViewStatus.loading),ro().then(()=>{to.setTraceListStatus(ViewStatus.loaded)})},[ro,to])},useLocalFetchRunningTraces=()=>{const eo=useTraces(),to=useLocalFetchSummary(),ro=eo.filter(no=>checkStatus(no.status,"running")).map(no=>no.trace_id).filter(no=>no!==void 0);reactExports.useEffect(()=>{let no;return ro.length>0&&(no=setInterval(()=>{ro.forEach(oo=>to(oo))},RUNNING_TRACE_POLLING_GAP)),()=>{no&&clearInterval(no)}},[to,ro])},useLocalTraceDetailDidOpen=eo=>{const to=useTraceViewModel(),ro=useLocalFetchSummary(),no=useFetchLocalSpans();return reactExports.useCallback(async io=>{if(!io)return;let so=to.getTraceById(io);so||(await ro(io),so=to.getTraceById(io));const ao=[io,...Object.values((so==null?void 0:so.evaluations)??[]).map(lo=>lo.trace_id)].filter(lo=>lo!==void 0);eo({uiTraceId:io}),to.setTraceDetailStatus(ViewStatus.loading),no(ao)},[to])},useLocalOnTraceDetailClose=eo=>reactExports.useCallback(()=>{eo({uiTraceId:void 0})},[eo]),useFetchLocalSpans=()=>{const eo=useTraceViewModel();return reactExports.useCallback(ro=>{fetch(`${LOCAL_URL_PREFIX}/v1.0/Spans/list?trace_ids=${ro.join(",")}&lazy_load=${eo.isLazyLoadSpan}`).then(no=>no.json()).then(no=>{eo.appendSpans(no),eo.setTraceDetailStatus(ViewStatus.loaded)}).catch(no=>{console.error("Error:",no),eo.setTraceDetailStatus(ViewStatus.error)})},[eo])},useLocalOnRefreshSpans=()=>{const eo=useLocalFetchSummary(),to=useFetchLocalSpans();return reactExports.useCallback((no,oo)=>{const io=[no,...Object.values((oo==null?void 0:oo.evaluations)??[]).map(so=>so.trace_id)].filter(so=>so!==void 0);eo(no),to(io)},[to,eo])},fetchSpanEvent=eo=>fetch(`${LOCAL_URL_PREFIX}/v1.0/Spans/Event/${eo}`).then(to=>to.json()).then(to=>({status:"success",data:to})).catch(to=>({status:"error",error:to})),ThemeSwitcher=({style:eo,labelName:to})=>{const ro=useLocStrings(),{theme:no,setTheme:oo}=reactExports.useContext(ThemeContext);return jsxRuntimeExports.jsx(Switch,{label:to||ro["Dark Theme"],labelPosition:"before",checked:no==="dark",onChange:(io,so)=>oo(so.checked?"dark":"light"),style:eo})},LocalCommonHeader=({isStreaming:eo,onIsStreamingChange:to,streamLabelName:ro,slot:no,showRefresh:oo=!1})=>{const io=useClasses$3(),so=useLocStrings(),ao=useTraceViewModel();return jsxRuntimeExports.jsxs("div",{className:io.root,children:[jsxRuntimeExports.jsxs("div",{className:io.wrapper,children:[jsxRuntimeExports.jsx("div",{className:io.main}),oo&&jsxRuntimeExports.jsx(Tooltip,{content:so["Refresh Data"],relationship:"description",children:jsxRuntimeExports.jsx(Button$2,{appearance:"subtle","aria-label":"Refresh",icon:jsxRuntimeExports.jsx(ArrowClockwise16Regular,{}),onClick:()=>ao.refreshTraces()})}),jsxRuntimeExports.jsx(StreamSwitcher,{isStreaming:eo,onIsStreamingChange:to,labelName:ro}),jsxRuntimeExports.jsx(ThemeSwitcher,{})]}),no]})},useClasses$3=makeStyles({root:{display:"flex",flexDirection:"column",width:"100%"},wrapper:{display:"flex",...shorthands.padding(tokens.spacingVerticalXXS,tokens.spacingHorizontalL)},main:{...shorthands.flex(1)}}),LocalOverallMetric=({hash:eo})=>{var ao;const[[to,ro],no]=reactExports.useState([void 0,void 0]),oo=useClasses$2(),io=useTraces(),so=(()=>{if(isNotNullOrUndefined(eo.run)){const lo=eo.run.split(",");if(lo.length===1)return lo[0]}})();return reactExports.useEffect(()=>{so&&Promise.allSettled([fetch(`${LOCAL_URL_PREFIX}/v1.0/Runs/${so}`).then(lo=>lo.json()),fetch(`${LOCAL_URL_PREFIX}/v1.0/Runs/${so}/metrics`).then(lo=>lo.json())]).then(lo=>{lo.some(uo=>uo.status==="rejected")?no([void 0,void 0]):no(lo.map(uo=>uo.value))})},[so]),so&&to&&ro?jsxRuntimeExports.jsxs("div",{className:oo.wrapper,children:[jsxRuntimeExports.jsx("div",{className:oo.title,children:so}),jsxRuntimeExports.jsxs("div",{className:oo.blockListWrapper,children:[jsxRuntimeExports.jsx(InfoBlock,{title:"Total traces:",value:io.length}),isNotNullOrUndefined(to.status)&&jsxRuntimeExports.jsx(InfoBlock,{title:"Status:",value:to.status,slot:jsxRuntimeExports.jsx(StatusText,{statusCode:to.status,showText:!0,size:UISize.small})}),isNotNullOrUndefined(to==null?void 0:to.created_on)&&jsxRuntimeExports.jsx(InfoBlock,{title:"Create on:",value:timeFormat(to.created_on)}),((ao=to==null?void 0:to.properties)==null?void 0:ao.system_metrics)&&jsxRuntimeExports.jsx(SystemMetrics,{systemMetrics:to.properties.system_metrics}),isNotNullOrUndefined(ro)&&Object.keys(ro).length>0&&jsxRuntimeExports.jsx(Metrics,{metrics:ro})]})]}):null},InfoBlock=({title:eo,slot:to,value:ro})=>{const no=useClasses$2();return jsxRuntimeExports.jsxs("div",{className:no.blockWrapper,children:[jsxRuntimeExports.jsx("div",{className:no.blockTitle,children:eo}),to||jsxRuntimeExports.jsx("div",{className:no.blockValue,children:ro.toString()})]})},SYSTEM_METRICS_NAME_MAP={completion_tokens:"Completion tokens",duration:"Duration",prompt_tokens:"Prompt tokens",total_tokens:"Total tokens"},SystemMetrics=({systemMetrics:eo})=>{const to=useClasses$2();return jsxRuntimeExports.jsx(InfoBlock,{title:"System metrics:",slot:jsxRuntimeExports.jsxs("div",{className:to.metricsWrapper,children:[jsxRuntimeExports.jsx("div",{className:to.metricsItemRow,children:["prompt_tokens","total_tokens"].map(ro=>jsxRuntimeExports.jsx("span",{className:to.metricsItem,children:`${SYSTEM_METRICS_NAME_MAP[ro]}: ${eo[ro].toString()}`},ro))}),jsxRuntimeExports.jsx("div",{className:to.metricsItemRow,children:["completion_tokens","duration"].map(ro=>jsxRuntimeExports.jsx("span",{className:to.metricsItem,children:`${SYSTEM_METRICS_NAME_MAP[ro]}: ${eo[ro].toString()}`},ro))})]})})},Metrics=({metrics:eo})=>{const to=useClasses$2();return jsxRuntimeExports.jsx(InfoBlock,{title:"Metrics:",slot:jsxRuntimeExports.jsx("div",{className:to.metricsItemColumn,children:Object.entries(eo).map(([ro,no])=>jsxRuntimeExports.jsx("span",{className:to.metricsItem,children:`${ro}: ${no.toString()}`},ro))})})},useClasses$2=makeStyles({wrapper:{display:"flex",flexDirection:"column",boxSizing:"border-box",...shorthands.gap("6px"),...shorthands.borderRadius("4px"),...shorthands.margin("0","24px"),...shorthands.padding("16px"),...shorthands.border("1px","solid",tokens.colorNeutralStroke2)},title:{fontSize:"16px",fontWeight:600,lineHeight:"22px"},blockListWrapper:{display:"flex",...shorthands.gap("24px")},blockWrapper:{display:"flex",flexDirection:"column",...shorthands.gap("4px")},blockTitle:{fontSize:"12px",fontWeight:"600",lineHeight:"16px"},blockValue:{fontSize:"14px",lineHeight:"20px",fontWeight:"400"},metricsWrapper:{display:"flex",flexDirection:"column",...shorthands.gap("8px")},metricsItemRow:{display:"flex",...shorthands.gap("8px")},metricsItemColumn:{display:"flex",flexDirection:"column",...shorthands.gap("8px")},metricsItem:{fontSize:"12px",lineHeight:"16px",fontWeight:"400",...shorthands.padding("4px","8px"),...shorthands.borderRadius("4px"),...shorthands.border("1px","solid",tokens.colorNeutralStroke1)}}),LocalTraceView=eo=>{const{viewModel:to,isDark:ro}=eo;return jsxRuntimeExports.jsx(Provider,{viewModel:to,isDark:ro,children:jsxRuntimeExports.jsx(TraceViewContent,{...eo})})},TraceViewContent=({hash:eo,setHash:to})=>{const ro=useClasses$1(),no=useIsTraceDetailOpen(),oo=useSetIsTraceDetailOpen(),io=useTraceViewModel(),[so,ao]=reactExports.useState(!1),[lo,uo]=React.useState(!1),[co,fo]=React.useState(!1),ho=useSelectedTrace(),po=useLocalFetchSummary(),go=useFetchLocalSpans();useLocalFetchSummaries(eo,so),useLocalFetchRunningTraces();const vo=useLocalTraceDetailDidOpen(to),bo=useLocalOnTraceDetailClose(to),xo=useLocalRefreshTraces(eo),_o=useLocalOnRefreshSpans();return reactExports.useEffect(()=>{io.traceDetailDidOpen(vo),io.traceDetailDidClose(bo),io.setOnRefreshTraces(xo),io.onRefreshSpans(_o)},[_o,xo,bo,vo,io]),reactExports.useEffect(()=>{let Eo;return lo&&no&&ho&&co&&(Eo=setInterval(()=>{const So=[ho==null?void 0:ho.trace_id,...Object.values((ho==null?void 0:ho.evaluations)??[]).map(To=>To.trace_id)].filter(To=>To!==void 0);go(So),ho.trace_id&&po(ho.trace_id)},SPAN_POLLING_GAP)),()=>{Eo&&clearInterval(Eo)}},[co,ho,no,io,lo,po,go]),reactExports.useEffect(()=>{no&&ho&&(checkStatus(ho.status,"Running")?uo(!0):uo(!1))},[po,no,ho]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:ro.wrapper,children:[jsxRuntimeExports.jsx(LocalCommonHeader,{isStreaming:so,onIsStreamingChange:ao,showRefresh:!0,slot:jsxRuntimeExports.jsx(LocalOverallMetric,{hash:eo})}),jsxRuntimeExports.jsx(TraceFilter,{hash:eo,setHash:to}),jsxRuntimeExports.jsx(TraceList,{className:ro.grid,onRowClick:()=>{oo(!0)}})]}),jsxRuntimeExports.jsx(DefaultDetailContainer,{isOpen:no,setIsOpen:oo,header:jsxRuntimeExports.jsx(TraceDetailHeader,{setIsTraceDetailOpen:oo,showStreamSwitch:lo,isStreaming:co,onIsStreamingChange:fo}),content:jsxRuntimeExports.jsx(TraceDetail,{})})]})},useClasses$1=makeStyles({header:{display:"flex",width:"100%"},wrapper:{display:"flex",flexDirection:"column",height:"100%"},divider:{flexGrow:0,...shorthands.margin("16px",0)},grid:{flexGrow:1}});window.TraceView_Version="20240401.4-main";const TraceViewApp=()=>{const[eo,to]=useHashObject(),ro=useClasses(),no=React.useMemo(()=>new TraceViewModel({spanConfig:{fetchSpanEvent}}),[]);return reactExports.useEffect(()=>{isNotNullOrUndefined(eo.uiTraceId)&&no.setTraceDetailOpen(!0,eo.uiTraceId)},[no,eo.uiTraceId]),jsxRuntimeExports.jsx(ThemeContextProvider,{children:jsxRuntimeExports.jsx(ThemeContext.Consumer,{children:({theme:oo})=>{const io=oo==="dark";return jsxRuntimeExports.jsxs(FluentProvider,{theme:io?webDarkTheme:webLightTheme,style:{height:"100%",width:"100%"},children:[jsxRuntimeExports.jsx("style",{dangerouslySetInnerHTML:{__html:` + html, + body { + height: 100%; + width: 100%; + padding: 0; + margin: 0; + box-sizing: border-box; + overflow: hidden; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", + "Droid Sans", "Helvetica Neue", sans-serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + } + + #root { + height: 100%; + width: 100%; + display: flex; + } + `}}),jsxRuntimeExports.jsx("div",{className:ro.wrapper,children:jsxRuntimeExports.jsx(LocalTraceView,{viewModel:no,hash:eo,setHash:to,isDark:io})})]})}})})},useClasses=makeStyles({wrapper:{display:"flex",flexDirection:"column",height:"100%"}});client.createRoot(document.getElementById("root")).render(jsxRuntimeExports.jsx(TraceViewApp,{}))});export default Yw(); diff --git a/src/promptflow-devkit/promptflow/_sdk/_service/static/assets/index-ofpZV8_l.js b/src/promptflow-devkit/promptflow/_sdk/_service/static/assets/index-ofpZV8_l.js deleted file mode 100644 index 48e0d9e6c65..00000000000 --- a/src/promptflow-devkit/promptflow/_sdk/_service/static/assets/index-ofpZV8_l.js +++ /dev/null @@ -1,1870 +0,0 @@ -(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.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}}.json-view{display:block;color:#4d4d4d;text-align:left;--json-property: #009033;--json-index: #676dff;--json-number: #676dff;--json-string: #b2762e;--json-boolean: #dc155e;--json-null: #dc155e}.json-view .json-view--property{color:var(--json-property)}.json-view .json-view--index{color:var(--json-index)}.json-view .json-view--number{color:var(--json-number)}.json-view .json-view--string{color:var(--json-string)}.json-view .json-view--boolean{color:var(--json-boolean)}.json-view .json-view--null{color:var(--json-null)}.json-view .jv-indent{padding-left:1em}.json-view .jv-chevron{display:inline-block;vertical-align:-20%;cursor:pointer;opacity:.4;width:1em;height:1em}:is(.json-view .jv-chevron:hover,.json-view .jv-size:hover+.jv-chevron){opacity:.8}.json-view .jv-size{cursor:pointer;opacity:.4;font-size:.875em;font-style:italic;margin-left:.5em;vertical-align:-5%;line-height:1}.json-view :is(.json-view--copy,.json-view--edit),.json-view .json-view--link svg{display:none;width:1em;height:1em;margin-left:.25em;cursor:pointer}.json-view .json-view--input{width:120px;margin-left:.25em;border-radius:4px;border:1px solid currentColor;padding:0 4px;font-size:87.5%;line-height:1.25;background:transparent}.json-view .json-view--deleting{outline:1px solid #da0000;background-color:#da000011;text-decoration-line:line-through}:is(.json-view:hover,.json-view--pair:hover)>:is(.json-view--copy,.json-view--edit),:is(.json-view:hover,.json-view--pair:hover)>.json-view--link svg{display:inline-block}.json-view .jv-button{background:transparent;outline:none;border:none;cursor:pointer;color:inherit}.json-view .cursor-pointer{cursor:pointer}.json-view svg{vertical-align:-10%}.jv-size-chevron~svg{vertical-align:-16%}.json-view_a11y{color:#545454;--json-property: #aa5d00;--json-index: #007299;--json-number: #007299;--json-string: #008000;--json-boolean: #d91e18;--json-null: #d91e18}.json-view_github{color:#005cc5;--json-property: #005cc5;--json-index: #005cc5;--json-number: #005cc5;--json-string: #032f62;--json-boolean: #005cc5;--json-null: #005cc5}.json-view_vscode{color:#005cc5;--json-property: #0451a5;--json-index: #0000ff;--json-number: #0000ff;--json-string: #a31515;--json-boolean: #0000ff;--json-null: #0000ff}.json-view_atom{color:#383a42;--json-property: #e45649;--json-index: #986801;--json-number: #986801;--json-string: #50a14f;--json-boolean: #0184bc;--json-null: #0184bc}.json-view_winter-is-coming{color:#0431fa;--json-property: #3a9685;--json-index: #ae408b;--json-number: #ae408b;--json-string: #8123a9;--json-boolean: #0184bc;--json-null: #0184bc}:is(.dark .json-view,.dark.json-view){color:#d1d1d1;--json-property: #009033;--json-index: #5d75f2;--json-number: #5d75f2;--json-string: #c57e29;--json-boolean: #e4407b;--json-null: #e4407b}:is(.dark .json-view_a11y,.dark.json-view_a11y){color:#d1d1d1;--json-property: #ffd700;--json-index: #00e0e0;--json-number: #00e0e0;--json-string: #abe338;--json-boolean: #ffa07a;--json-null: #ffa07a}:is(.dark .json-view_github,.dark.json-view_github){color:#79b8ff;--json-property: #79b8ff;--json-index: #79b8ff;--json-number: #79b8ff;--json-string: #9ecbff;--json-boolean: #79b8ff;--json-null: #79b8ff}:is(.dark .json-view_vscode,.dark.json-view_vscode){color:orchid;--json-property: #9cdcfe;--json-index: #b5cea8;--json-number: #b5cea8;--json-string: #ce9178;--json-boolean: #569cd6;--json-null: #569cd6}:is(.dark .json-view_atom,.dark.json-view_atom){color:#abb2bf;--json-property: #e06c75;--json-index: #d19a66;--json-number: #d19a66;--json-string: #98c379;--json-boolean: #56b6c2;--json-null: #56b6c2}:is(.dark .json-view_winter-is-coming,.dark.json-view_winter-is-coming){color:#a7dbf7;--json-property: #91dacd;--json-index: #8dec95;--json-number: #8dec95;--json-string: #e0aff5;--json-boolean: #f29fd8;--json-null: #f29fd8}.json-view .json-view--string{word-break:break-all}.llm-variable-highlight{color:var(--colorPaletteGreenForeground1)!important}')),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})(); -var VA=Object.defineProperty;var qA=(eo,to,ro)=>to in eo?VA(eo,to,{enumerable:!0,configurable:!0,writable:!0,value:ro}):eo[to]=ro;var WA=(eo,to)=>()=>(to||eo((to={exports:{}}).exports,to),to.exports);var Ws=(eo,to,ro)=>(qA(eo,typeof to!="symbol"?to+"":to,ro),ro);var KA=WA((exports,module)=>{function _mergeNamespaces(eo,to){for(var ro=0;rono[oo]})}}}return Object.freeze(Object.defineProperty(eo,Symbol.toStringTag,{value:"Module"}))}(function(){const to=document.createElement("link").relList;if(to&&to.supports&&to.supports("modulepreload"))return;for(const oo of document.querySelectorAll('link[rel="modulepreload"]'))no(oo);new MutationObserver(oo=>{for(const io of oo)if(io.type==="childList")for(const so of io.addedNodes)so.tagName==="LINK"&&so.rel==="modulepreload"&&no(so)}).observe(document,{childList:!0,subtree:!0});function ro(oo){const io={};return oo.integrity&&(io.integrity=oo.integrity),oo.referrerPolicy&&(io.referrerPolicy=oo.referrerPolicy),oo.crossOrigin==="use-credentials"?io.credentials="include":oo.crossOrigin==="anonymous"?io.credentials="omit":io.credentials="same-origin",io}function no(oo){if(oo.ep)return;oo.ep=!0;const io=ro(oo);fetch(oo.href,io)}})();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(eo){return eo&&eo.__esModule&&Object.prototype.hasOwnProperty.call(eo,"default")?eo.default:eo}var jsxRuntime$1={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var l$9=Symbol.for("react.element"),n$8=Symbol.for("react.portal"),p$b=Symbol.for("react.fragment"),q$5=Symbol.for("react.strict_mode"),r$6=Symbol.for("react.profiler"),t$8=Symbol.for("react.provider"),u$7=Symbol.for("react.context"),v$8=Symbol.for("react.forward_ref"),w$6=Symbol.for("react.suspense"),x$8=Symbol.for("react.memo"),y$7=Symbol.for("react.lazy"),z$5=Symbol.iterator;function A$7(eo){return eo===null||typeof eo!="object"?null:(eo=z$5&&eo[z$5]||eo["@@iterator"],typeof eo=="function"?eo:null)}var B$4={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C$6=Object.assign,D$5={};function E$6(eo,to,ro){this.props=eo,this.context=to,this.refs=D$5,this.updater=ro||B$4}E$6.prototype.isReactComponent={};E$6.prototype.setState=function(eo,to){if(typeof eo!="object"&&typeof eo!="function"&&eo!=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,eo,to,"setState")};E$6.prototype.forceUpdate=function(eo){this.updater.enqueueForceUpdate(this,eo,"forceUpdate")};function F$2(){}F$2.prototype=E$6.prototype;function G$2(eo,to,ro){this.props=eo,this.context=to,this.refs=D$5,this.updater=ro||B$4}var H$4=G$2.prototype=new F$2;H$4.constructor=G$2;C$6(H$4,E$6.prototype);H$4.isPureReactComponent=!0;var I$3=Array.isArray,J$1=Object.prototype.hasOwnProperty,K$4={current:null},L$4={key:!0,ref:!0,__self:!0,__source:!0};function M$5(eo,to,ro){var no,oo={},io=null,so=null;if(to!=null)for(no in to.ref!==void 0&&(so=to.ref),to.key!==void 0&&(io=""+to.key),to)J$1.call(to,no)&&!L$4.hasOwnProperty(no)&&(oo[no]=to[no]);var ao=arguments.length-2;if(ao===1)oo.children=ro;else if(1>>1,Qo=Go[Zo];if(0>>1;Zooo(Rs,Xo))Osoo(As,Rs)?(Go[Zo]=As,Go[Os]=Xo,Zo=Os):(Go[Zo]=Rs,Go[Ts]=Xo,Zo=Ts);else if(Osoo(As,Xo))Go[Zo]=As,Go[Os]=Xo,Zo=Os;else break e}}return qo}function oo(Go,qo){var Xo=Go.sortIndex-qo.sortIndex;return Xo!==0?Xo:Go.id-qo.id}if(typeof performance=="object"&&typeof performance.now=="function"){var io=performance;eo.unstable_now=function(){return io.now()}}else{var so=Date,ao=so.now();eo.unstable_now=function(){return so.now()-ao}}var lo=[],uo=[],co=1,fo=null,po=3,ho=!1,mo=!1,vo=!1,bo=typeof setTimeout=="function"?setTimeout:null,xo=typeof clearTimeout=="function"?clearTimeout:null,_o=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function So(Go){for(var qo=ro(uo);qo!==null;){if(qo.callback===null)no(uo);else if(qo.startTime<=Go)no(uo),qo.sortIndex=qo.expirationTime,to(lo,qo);else break;qo=ro(uo)}}function Eo(Go){if(vo=!1,So(Go),!mo)if(ro(lo)!==null)mo=!0,Oo(ko);else{var qo=ro(uo);qo!==null&&Fo(Eo,qo.startTime-Go)}}function ko(Go,qo){mo=!1,vo&&(vo=!1,xo(Ro),Ro=-1),ho=!0;var Xo=po;try{for(So(qo),fo=ro(lo);fo!==null&&(!(fo.expirationTime>qo)||Go&&!$o());){var Zo=fo.callback;if(typeof Zo=="function"){fo.callback=null,po=fo.priorityLevel;var Qo=Zo(fo.expirationTime<=qo);qo=eo.unstable_now(),typeof Qo=="function"?fo.callback=Qo:fo===ro(lo)&&no(lo),So(qo)}else no(lo);fo=ro(lo)}if(fo!==null)var xs=!0;else{var Ts=ro(uo);Ts!==null&&Fo(Eo,Ts.startTime-qo),xs=!1}return xs}finally{fo=null,po=Xo,ho=!1}}var wo=!1,Co=null,Ro=-1,Ao=5,Io=-1;function $o(){return!(eo.unstable_now()-IoGo||125Zo?(Go.sortIndex=Xo,to(uo,Go),ro(lo)===null&&Go===ro(uo)&&(vo?(xo(Ro),Ro=-1):vo=!0,Fo(Eo,Xo-Zo))):(Go.sortIndex=Qo,to(lo,Go),mo||ho||(mo=!0,Oo(ko))),Go},eo.unstable_shouldYield=$o,eo.unstable_wrapCallback=function(Go){var qo=po;return function(){var Xo=po;po=qo;try{return Go.apply(this,arguments)}finally{po=Xo}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var aa=reactExports,ca=schedulerExports;function p$9(eo){for(var to="https://reactjs.org/docs/error-decoder.html?invariant="+eo,ro=1;ro"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ja=Object.prototype.hasOwnProperty,ka=/^[: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]*$/,la={},ma={};function oa(eo){return ja.call(ma,eo)?!0:ja.call(la,eo)?!1:ka.test(eo)?ma[eo]=!0:(la[eo]=!0,!1)}function pa(eo,to,ro,no){if(ro!==null&&ro.type===0)return!1;switch(typeof to){case"function":case"symbol":return!0;case"boolean":return no?!1:ro!==null?!ro.acceptsBooleans:(eo=eo.toLowerCase().slice(0,5),eo!=="data-"&&eo!=="aria-");default:return!1}}function qa(eo,to,ro,no){if(to===null||typeof to>"u"||pa(eo,to,ro,no))return!0;if(no)return!1;if(ro!==null)switch(ro.type){case 3:return!to;case 4:return to===!1;case 5:return isNaN(to);case 6:return isNaN(to)||1>to}return!1}function v$7(eo,to,ro,no,oo,io,so){this.acceptsBooleans=to===2||to===3||to===4,this.attributeName=no,this.attributeNamespace=oo,this.mustUseProperty=ro,this.propertyName=eo,this.type=to,this.sanitizeURL=io,this.removeEmptyString=so}var z$4={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(eo){z$4[eo]=new v$7(eo,0,!1,eo,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(eo){var to=eo[0];z$4[to]=new v$7(to,1,!1,eo[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(eo){z$4[eo]=new v$7(eo,2,!1,eo.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(eo){z$4[eo]=new v$7(eo,2,!1,eo,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(eo){z$4[eo]=new v$7(eo,3,!1,eo.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(eo){z$4[eo]=new v$7(eo,3,!0,eo,null,!1,!1)});["capture","download"].forEach(function(eo){z$4[eo]=new v$7(eo,4,!1,eo,null,!1,!1)});["cols","rows","size","span"].forEach(function(eo){z$4[eo]=new v$7(eo,6,!1,eo,null,!1,!1)});["rowSpan","start"].forEach(function(eo){z$4[eo]=new v$7(eo,5,!1,eo.toLowerCase(),null,!1,!1)});var ra=/[\-:]([a-z])/g;function sa(eo){return eo[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(eo){var to=eo.replace(ra,sa);z$4[to]=new v$7(to,1,!1,eo,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(eo){var to=eo.replace(ra,sa);z$4[to]=new v$7(to,1,!1,eo,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(eo){var to=eo.replace(ra,sa);z$4[to]=new v$7(to,1,!1,eo,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(eo){z$4[eo]=new v$7(eo,1,!1,eo.toLowerCase(),null,!1,!1)});z$4.xlinkHref=new v$7("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(eo){z$4[eo]=new v$7(eo,1,!1,eo.toLowerCase(),null,!0,!0)});function ta(eo,to,ro,no){var oo=z$4.hasOwnProperty(to)?z$4[to]:null;(oo!==null?oo.type!==0:no||!(2ao||oo[so]!==io[ao]){var lo=` -`+oo[so].replace(" at new "," at ");return eo.displayName&&lo.includes("")&&(lo=lo.replace("",eo.displayName)),lo}while(1<=so&&0<=ao);break}}}finally{Na=!1,Error.prepareStackTrace=ro}return(eo=eo?eo.displayName||eo.name:"")?Ma(eo):""}function Pa(eo){switch(eo.tag){case 5:return Ma(eo.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return eo=Oa(eo.type,!1),eo;case 11:return eo=Oa(eo.type.render,!1),eo;case 1:return eo=Oa(eo.type,!0),eo;default:return""}}function Qa(eo){if(eo==null)return null;if(typeof eo=="function")return eo.displayName||eo.name||null;if(typeof eo=="string")return eo;switch(eo){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof eo=="object")switch(eo.$$typeof){case Ca:return(eo.displayName||"Context")+".Consumer";case Ba:return(eo._context.displayName||"Context")+".Provider";case Da:var to=eo.render;return eo=eo.displayName,eo||(eo=to.displayName||to.name||"",eo=eo!==""?"ForwardRef("+eo+")":"ForwardRef"),eo;case Ga:return to=eo.displayName||null,to!==null?to:Qa(eo.type)||"Memo";case Ha:to=eo._payload,eo=eo._init;try{return Qa(eo(to))}catch{}}return null}function Ra(eo){var to=eo.type;switch(eo.tag){case 24:return"Cache";case 9:return(to.displayName||"Context")+".Consumer";case 10:return(to._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return eo=to.render,eo=eo.displayName||eo.name||"",to.displayName||(eo!==""?"ForwardRef("+eo+")":"ForwardRef");case 7:return"Fragment";case 5:return to;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(to);case 8:return to===za?"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 to=="function")return to.displayName||to.name||null;if(typeof to=="string")return to}return null}function Sa(eo){switch(typeof eo){case"boolean":case"number":case"string":case"undefined":return eo;case"object":return eo;default:return""}}function Ta(eo){var to=eo.type;return(eo=eo.nodeName)&&eo.toLowerCase()==="input"&&(to==="checkbox"||to==="radio")}function Ua(eo){var to=Ta(eo)?"checked":"value",ro=Object.getOwnPropertyDescriptor(eo.constructor.prototype,to),no=""+eo[to];if(!eo.hasOwnProperty(to)&&typeof ro<"u"&&typeof ro.get=="function"&&typeof ro.set=="function"){var oo=ro.get,io=ro.set;return Object.defineProperty(eo,to,{configurable:!0,get:function(){return oo.call(this)},set:function(so){no=""+so,io.call(this,so)}}),Object.defineProperty(eo,to,{enumerable:ro.enumerable}),{getValue:function(){return no},setValue:function(so){no=""+so},stopTracking:function(){eo._valueTracker=null,delete eo[to]}}}}function Va(eo){eo._valueTracker||(eo._valueTracker=Ua(eo))}function Wa(eo){if(!eo)return!1;var to=eo._valueTracker;if(!to)return!0;var ro=to.getValue(),no="";return eo&&(no=Ta(eo)?eo.checked?"true":"false":eo.value),eo=no,eo!==ro?(to.setValue(eo),!0):!1}function Xa(eo){if(eo=eo||(typeof document<"u"?document:void 0),typeof eo>"u")return null;try{return eo.activeElement||eo.body}catch{return eo.body}}function Ya(eo,to){var ro=to.checked;return A$6({},to,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:ro??eo._wrapperState.initialChecked})}function Za(eo,to){var ro=to.defaultValue==null?"":to.defaultValue,no=to.checked!=null?to.checked:to.defaultChecked;ro=Sa(to.value!=null?to.value:ro),eo._wrapperState={initialChecked:no,initialValue:ro,controlled:to.type==="checkbox"||to.type==="radio"?to.checked!=null:to.value!=null}}function ab(eo,to){to=to.checked,to!=null&&ta(eo,"checked",to,!1)}function bb(eo,to){ab(eo,to);var ro=Sa(to.value),no=to.type;if(ro!=null)no==="number"?(ro===0&&eo.value===""||eo.value!=ro)&&(eo.value=""+ro):eo.value!==""+ro&&(eo.value=""+ro);else if(no==="submit"||no==="reset"){eo.removeAttribute("value");return}to.hasOwnProperty("value")?cb(eo,to.type,ro):to.hasOwnProperty("defaultValue")&&cb(eo,to.type,Sa(to.defaultValue)),to.checked==null&&to.defaultChecked!=null&&(eo.defaultChecked=!!to.defaultChecked)}function db(eo,to,ro){if(to.hasOwnProperty("value")||to.hasOwnProperty("defaultValue")){var no=to.type;if(!(no!=="submit"&&no!=="reset"||to.value!==void 0&&to.value!==null))return;to=""+eo._wrapperState.initialValue,ro||to===eo.value||(eo.value=to),eo.defaultValue=to}ro=eo.name,ro!==""&&(eo.name=""),eo.defaultChecked=!!eo._wrapperState.initialChecked,ro!==""&&(eo.name=ro)}function cb(eo,to,ro){(to!=="number"||Xa(eo.ownerDocument)!==eo)&&(ro==null?eo.defaultValue=""+eo._wrapperState.initialValue:eo.defaultValue!==""+ro&&(eo.defaultValue=""+ro))}var eb=Array.isArray;function fb(eo,to,ro,no){if(eo=eo.options,to){to={};for(var oo=0;oo"+to.valueOf().toString()+"",to=mb.firstChild;eo.firstChild;)eo.removeChild(eo.firstChild);for(;to.firstChild;)eo.appendChild(to.firstChild)}});function ob(eo,to){if(to){var ro=eo.firstChild;if(ro&&ro===eo.lastChild&&ro.nodeType===3){ro.nodeValue=to;return}}eo.textContent=to}var pb={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},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(eo){qb.forEach(function(to){to=to+eo.charAt(0).toUpperCase()+eo.substring(1),pb[to]=pb[eo]})});function rb(eo,to,ro){return to==null||typeof to=="boolean"||to===""?"":ro||typeof to!="number"||to===0||pb.hasOwnProperty(eo)&&pb[eo]?(""+to).trim():to+"px"}function sb(eo,to){eo=eo.style;for(var ro in to)if(to.hasOwnProperty(ro)){var no=ro.indexOf("--")===0,oo=rb(ro,to[ro],no);ro==="float"&&(ro="cssFloat"),no?eo.setProperty(ro,oo):eo[ro]=oo}}var tb=A$6({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 ub(eo,to){if(to){if(tb[eo]&&(to.children!=null||to.dangerouslySetInnerHTML!=null))throw Error(p$9(137,eo));if(to.dangerouslySetInnerHTML!=null){if(to.children!=null)throw Error(p$9(60));if(typeof to.dangerouslySetInnerHTML!="object"||!("__html"in to.dangerouslySetInnerHTML))throw Error(p$9(61))}if(to.style!=null&&typeof to.style!="object")throw Error(p$9(62))}}function vb(eo,to){if(eo.indexOf("-")===-1)return typeof to.is=="string";switch(eo){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 wb=null;function xb(eo){return eo=eo.target||eo.srcElement||window,eo.correspondingUseElement&&(eo=eo.correspondingUseElement),eo.nodeType===3?eo.parentNode:eo}var yb=null,zb=null,Ab=null;function Bb(eo){if(eo=Cb(eo)){if(typeof yb!="function")throw Error(p$9(280));var to=eo.stateNode;to&&(to=Db(to),yb(eo.stateNode,eo.type,to))}}function Eb(eo){zb?Ab?Ab.push(eo):Ab=[eo]:zb=eo}function Fb(){if(zb){var eo=zb,to=Ab;if(Ab=zb=null,Bb(eo),to)for(eo=0;eo>>=0,eo===0?32:31-(pc(eo)/qc|0)|0}var rc=64,sc=4194304;function tc(eo){switch(eo&-eo){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 eo&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return eo&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return eo}}function uc(eo,to){var ro=eo.pendingLanes;if(ro===0)return 0;var no=0,oo=eo.suspendedLanes,io=eo.pingedLanes,so=ro&268435455;if(so!==0){var ao=so&~oo;ao!==0?no=tc(ao):(io&=so,io!==0&&(no=tc(io)))}else so=ro&~oo,so!==0?no=tc(so):io!==0&&(no=tc(io));if(no===0)return 0;if(to!==0&&to!==no&&!(to&oo)&&(oo=no&-no,io=to&-to,oo>=io||oo===16&&(io&4194240)!==0))return to;if(no&4&&(no|=ro&16),to=eo.entangledLanes,to!==0)for(eo=eo.entanglements,to&=no;0ro;ro++)to.push(eo);return to}function Ac(eo,to,ro){eo.pendingLanes|=to,to!==536870912&&(eo.suspendedLanes=0,eo.pingedLanes=0),eo=eo.eventTimes,to=31-oc(to),eo[to]=ro}function Bc(eo,to){var ro=eo.pendingLanes&~to;eo.pendingLanes=to,eo.suspendedLanes=0,eo.pingedLanes=0,eo.expiredLanes&=to,eo.mutableReadLanes&=to,eo.entangledLanes&=to,to=eo.entanglements;var no=eo.eventTimes;for(eo=eo.expirationTimes;0=be$2),ee$2=" ",fe$2=!1;function ge$1(eo,to){switch(eo){case"keyup":return $d.indexOf(to.keyCode)!==-1;case"keydown":return to.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he$2(eo){return eo=eo.detail,typeof eo=="object"&&"data"in eo?eo.data:null}var ie$2=!1;function je$1(eo,to){switch(eo){case"compositionend":return he$2(to);case"keypress":return to.which!==32?null:(fe$2=!0,ee$2);case"textInput":return eo=to.data,eo===ee$2&&fe$2?null:eo;default:return null}}function ke$1(eo,to){if(ie$2)return eo==="compositionend"||!ae$2&&ge$1(eo,to)?(eo=nd(),md=ld=kd=null,ie$2=!1,eo):null;switch(eo){case"paste":return null;case"keypress":if(!(to.ctrlKey||to.altKey||to.metaKey)||to.ctrlKey&&to.altKey){if(to.char&&1=to)return{node:ro,offset:to-eo};eo=no}e:{for(;ro;){if(ro.nextSibling){ro=ro.nextSibling;break e}ro=ro.parentNode}ro=void 0}ro=Je$1(ro)}}function Le$1(eo,to){return eo&&to?eo===to?!0:eo&&eo.nodeType===3?!1:to&&to.nodeType===3?Le$1(eo,to.parentNode):"contains"in eo?eo.contains(to):eo.compareDocumentPosition?!!(eo.compareDocumentPosition(to)&16):!1:!1}function Me$2(){for(var eo=window,to=Xa();to instanceof eo.HTMLIFrameElement;){try{var ro=typeof to.contentWindow.location.href=="string"}catch{ro=!1}if(ro)eo=to.contentWindow;else break;to=Xa(eo.document)}return to}function Ne$1(eo){var to=eo&&eo.nodeName&&eo.nodeName.toLowerCase();return to&&(to==="input"&&(eo.type==="text"||eo.type==="search"||eo.type==="tel"||eo.type==="url"||eo.type==="password")||to==="textarea"||eo.contentEditable==="true")}function Oe$2(eo){var to=Me$2(),ro=eo.focusedElem,no=eo.selectionRange;if(to!==ro&&ro&&ro.ownerDocument&&Le$1(ro.ownerDocument.documentElement,ro)){if(no!==null&&Ne$1(ro)){if(to=no.start,eo=no.end,eo===void 0&&(eo=to),"selectionStart"in ro)ro.selectionStart=to,ro.selectionEnd=Math.min(eo,ro.value.length);else if(eo=(to=ro.ownerDocument||document)&&to.defaultView||window,eo.getSelection){eo=eo.getSelection();var oo=ro.textContent.length,io=Math.min(no.start,oo);no=no.end===void 0?io:Math.min(no.end,oo),!eo.extend&&io>no&&(oo=no,no=io,io=oo),oo=Ke$1(ro,io);var so=Ke$1(ro,no);oo&&so&&(eo.rangeCount!==1||eo.anchorNode!==oo.node||eo.anchorOffset!==oo.offset||eo.focusNode!==so.node||eo.focusOffset!==so.offset)&&(to=to.createRange(),to.setStart(oo.node,oo.offset),eo.removeAllRanges(),io>no?(eo.addRange(to),eo.extend(so.node,so.offset)):(to.setEnd(so.node,so.offset),eo.addRange(to)))}}for(to=[],eo=ro;eo=eo.parentNode;)eo.nodeType===1&&to.push({element:eo,left:eo.scrollLeft,top:eo.scrollTop});for(typeof ro.focus=="function"&&ro.focus(),ro=0;ro=document.documentMode,Qe$1=null,Re$1=null,Se$1=null,Te$1=!1;function Ue$1(eo,to,ro){var no=ro.window===ro?ro.document:ro.nodeType===9?ro:ro.ownerDocument;Te$1||Qe$1==null||Qe$1!==Xa(no)||(no=Qe$1,"selectionStart"in no&&Ne$1(no)?no={start:no.selectionStart,end:no.selectionEnd}:(no=(no.ownerDocument&&no.ownerDocument.defaultView||window).getSelection(),no={anchorNode:no.anchorNode,anchorOffset:no.anchorOffset,focusNode:no.focusNode,focusOffset:no.focusOffset}),Se$1&&Ie$1(Se$1,no)||(Se$1=no,no=oe$1(Re$1,"onSelect"),0Tf||(eo.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G$1(eo,to){Tf++,Sf[Tf]=eo.current,eo.current=to}var Vf={},H$3=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(eo,to){var ro=eo.type.contextTypes;if(!ro)return Vf;var no=eo.stateNode;if(no&&no.__reactInternalMemoizedUnmaskedChildContext===to)return no.__reactInternalMemoizedMaskedChildContext;var oo={},io;for(io in ro)oo[io]=to[io];return no&&(eo=eo.stateNode,eo.__reactInternalMemoizedUnmaskedChildContext=to,eo.__reactInternalMemoizedMaskedChildContext=oo),oo}function Zf(eo){return eo=eo.childContextTypes,eo!=null}function $f(){E$5(Wf),E$5(H$3)}function ag(eo,to,ro){if(H$3.current!==Vf)throw Error(p$9(168));G$1(H$3,to),G$1(Wf,ro)}function bg(eo,to,ro){var no=eo.stateNode;if(to=to.childContextTypes,typeof no.getChildContext!="function")return ro;no=no.getChildContext();for(var oo in no)if(!(oo in to))throw Error(p$9(108,Ra(eo)||"Unknown",oo));return A$6({},ro,no)}function cg(eo){return eo=(eo=eo.stateNode)&&eo.__reactInternalMemoizedMergedChildContext||Vf,Xf=H$3.current,G$1(H$3,eo),G$1(Wf,Wf.current),!0}function dg(eo,to,ro){var no=eo.stateNode;if(!no)throw Error(p$9(169));ro?(eo=bg(eo,to,Xf),no.__reactInternalMemoizedMergedChildContext=eo,E$5(Wf),E$5(H$3),G$1(H$3,eo)):E$5(Wf),G$1(Wf,ro)}var eg=null,fg=!1,gg=!1;function hg(eo){eg===null?eg=[eo]:eg.push(eo)}function ig(eo){fg=!0,hg(eo)}function jg(){if(!gg&&eg!==null){gg=!0;var eo=0,to=C$5;try{var ro=eg;for(C$5=1;eo>=so,oo-=so,rg=1<<32-oc(to)+oo|ro<Ro?(Ao=Co,Co=null):Ao=Co.sibling;var Io=po(xo,Co,So[Ro],Eo);if(Io===null){Co===null&&(Co=Ao);break}eo&&Co&&Io.alternate===null&&to(xo,Co),_o=io(Io,_o,Ro),wo===null?ko=Io:wo.sibling=Io,wo=Io,Co=Ao}if(Ro===So.length)return ro(xo,Co),I$2&&tg(xo,Ro),ko;if(Co===null){for(;RoRo?(Ao=Co,Co=null):Ao=Co.sibling;var $o=po(xo,Co,Io.value,Eo);if($o===null){Co===null&&(Co=Ao);break}eo&&Co&&$o.alternate===null&&to(xo,Co),_o=io($o,_o,Ro),wo===null?ko=$o:wo.sibling=$o,wo=$o,Co=Ao}if(Io.done)return ro(xo,Co),I$2&&tg(xo,Ro),ko;if(Co===null){for(;!Io.done;Ro++,Io=So.next())Io=fo(xo,Io.value,Eo),Io!==null&&(_o=io(Io,_o,Ro),wo===null?ko=Io:wo.sibling=Io,wo=Io);return I$2&&tg(xo,Ro),ko}for(Co=no(xo,Co);!Io.done;Ro++,Io=So.next())Io=ho(Co,xo,Ro,Io.value,Eo),Io!==null&&(eo&&Io.alternate!==null&&Co.delete(Io.key===null?Ro:Io.key),_o=io(Io,_o,Ro),wo===null?ko=Io:wo.sibling=Io,wo=Io);return eo&&Co.forEach(function(Bo){return to(xo,Bo)}),I$2&&tg(xo,Ro),ko}function bo(xo,_o,So,Eo){if(typeof So=="object"&&So!==null&&So.type===ya&&So.key===null&&(So=So.props.children),typeof So=="object"&&So!==null){switch(So.$$typeof){case va:e:{for(var ko=So.key,wo=_o;wo!==null;){if(wo.key===ko){if(ko=So.type,ko===ya){if(wo.tag===7){ro(xo,wo.sibling),_o=oo(wo,So.props.children),_o.return=xo,xo=_o;break e}}else if(wo.elementType===ko||typeof ko=="object"&&ko!==null&&ko.$$typeof===Ha&&uh(ko)===wo.type){ro(xo,wo.sibling),_o=oo(wo,So.props),_o.ref=sh(xo,wo,So),_o.return=xo,xo=_o;break e}ro(xo,wo);break}else to(xo,wo);wo=wo.sibling}So.type===ya?(_o=Ah(So.props.children,xo.mode,Eo,So.key),_o.return=xo,xo=_o):(Eo=yh(So.type,So.key,So.props,null,xo.mode,Eo),Eo.ref=sh(xo,_o,So),Eo.return=xo,xo=Eo)}return so(xo);case wa:e:{for(wo=So.key;_o!==null;){if(_o.key===wo)if(_o.tag===4&&_o.stateNode.containerInfo===So.containerInfo&&_o.stateNode.implementation===So.implementation){ro(xo,_o.sibling),_o=oo(_o,So.children||[]),_o.return=xo,xo=_o;break e}else{ro(xo,_o);break}else to(xo,_o);_o=_o.sibling}_o=zh(So,xo.mode,Eo),_o.return=xo,xo=_o}return so(xo);case Ha:return wo=So._init,bo(xo,_o,wo(So._payload),Eo)}if(eb(So))return mo(xo,_o,So,Eo);if(Ka(So))return vo(xo,_o,So,Eo);th(xo,So)}return typeof So=="string"&&So!==""||typeof So=="number"?(So=""+So,_o!==null&&_o.tag===6?(ro(xo,_o.sibling),_o=oo(_o,So),_o.return=xo,xo=_o):(ro(xo,_o),_o=xh(So,xo.mode,Eo),_o.return=xo,xo=_o),so(xo)):ro(xo,_o)}return bo}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(eo){if(eo===Dh)throw Error(p$9(174));return eo}function Ih(eo,to){switch(G$1(Gh,to),G$1(Fh,eo),G$1(Eh,Dh),eo=to.nodeType,eo){case 9:case 11:to=(to=to.documentElement)?to.namespaceURI:lb(null,"");break;default:eo=eo===8?to.parentNode:to,to=eo.namespaceURI||null,eo=eo.tagName,to=lb(to,eo)}E$5(Eh),G$1(Eh,to)}function Jh(){E$5(Eh),E$5(Fh),E$5(Gh)}function Kh(eo){Hh(Gh.current);var to=Hh(Eh.current),ro=lb(to,eo.type);to!==ro&&(G$1(Fh,eo),G$1(Eh,ro))}function Lh(eo){Fh.current===eo&&(E$5(Eh),E$5(Fh))}var M$4=Uf(0);function Mh(eo){for(var to=eo;to!==null;){if(to.tag===13){var ro=to.memoizedState;if(ro!==null&&(ro=ro.dehydrated,ro===null||ro.data==="$?"||ro.data==="$!"))return to}else if(to.tag===19&&to.memoizedProps.revealOrder!==void 0){if(to.flags&128)return to}else if(to.child!==null){to.child.return=to,to=to.child;continue}if(to===eo)break;for(;to.sibling===null;){if(to.return===null||to.return===eo)return null;to=to.return}to.sibling.return=to.return,to=to.sibling}return null}var Nh=[];function Oh(){for(var eo=0;eoro?ro:4,eo(!0);var no=Qh.transition;Qh.transition={};try{eo(!1),to()}finally{C$5=ro,Qh.transition=no}}function Fi$1(){return di$1().memoizedState}function Gi$1(eo,to,ro){var no=lh(eo);if(ro={lane:no,action:ro,hasEagerState:!1,eagerState:null,next:null},Hi$1(eo))Ii$1(to,ro);else if(ro=Yg(eo,to,ro,no),ro!==null){var oo=L$3();mh(ro,eo,no,oo),Ji$1(ro,to,no)}}function ri$1(eo,to,ro){var no=lh(eo),oo={lane:no,action:ro,hasEagerState:!1,eagerState:null,next:null};if(Hi$1(eo))Ii$1(to,oo);else{var io=eo.alternate;if(eo.lanes===0&&(io===null||io.lanes===0)&&(io=to.lastRenderedReducer,io!==null))try{var so=to.lastRenderedState,ao=io(so,ro);if(oo.hasEagerState=!0,oo.eagerState=ao,He$2(ao,so)){var lo=to.interleaved;lo===null?(oo.next=oo,Xg(to)):(oo.next=lo.next,lo.next=oo),to.interleaved=oo;return}}catch{}finally{}ro=Yg(eo,to,oo,no),ro!==null&&(oo=L$3(),mh(ro,eo,no,oo),Ji$1(ro,to,no))}}function Hi$1(eo){var to=eo.alternate;return eo===N$4||to!==null&&to===N$4}function Ii$1(eo,to){Th$1=Sh=!0;var ro=eo.pending;ro===null?to.next=to:(to.next=ro.next,ro.next=to),eo.pending=to}function Ji$1(eo,to,ro){if(ro&4194240){var no=to.lanes;no&=eo.pendingLanes,ro|=no,to.lanes=ro,Cc(eo,ro)}}var ai$1={readContext:Vg,useCallback:Q$1,useContext:Q$1,useEffect:Q$1,useImperativeHandle:Q$1,useInsertionEffect:Q$1,useLayoutEffect:Q$1,useMemo:Q$1,useReducer:Q$1,useRef:Q$1,useState:Q$1,useDebugValue:Q$1,useDeferredValue:Q$1,useTransition:Q$1,useMutableSource:Q$1,useSyncExternalStore:Q$1,useId:Q$1,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(eo,to){return ci$1().memoizedState=[eo,to===void 0?null:to],eo},useContext:Vg,useEffect:vi$1,useImperativeHandle:function(eo,to,ro){return ro=ro!=null?ro.concat([eo]):null,ti$1(4194308,4,yi$1.bind(null,to,eo),ro)},useLayoutEffect:function(eo,to){return ti$1(4194308,4,eo,to)},useInsertionEffect:function(eo,to){return ti$1(4,2,eo,to)},useMemo:function(eo,to){var ro=ci$1();return to=to===void 0?null:to,eo=eo(),ro.memoizedState=[eo,to],eo},useReducer:function(eo,to,ro){var no=ci$1();return to=ro!==void 0?ro(to):to,no.memoizedState=no.baseState=to,eo={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:eo,lastRenderedState:to},no.queue=eo,eo=eo.dispatch=Gi$1.bind(null,N$4,eo),[no.memoizedState,eo]},useRef:function(eo){var to=ci$1();return eo={current:eo},to.memoizedState=eo},useState:qi$1,useDebugValue:Ai$1,useDeferredValue:function(eo){return ci$1().memoizedState=eo},useTransition:function(){var eo=qi$1(!1),to=eo[0];return eo=Ei$1.bind(null,eo[1]),ci$1().memoizedState=eo,[to,eo]},useMutableSource:function(){},useSyncExternalStore:function(eo,to,ro){var no=N$4,oo=ci$1();if(I$2){if(ro===void 0)throw Error(p$9(407));ro=ro()}else{if(ro=to(),R$3===null)throw Error(p$9(349));Rh&30||ni$1(no,to,ro)}oo.memoizedState=ro;var io={value:ro,getSnapshot:to};return oo.queue=io,vi$1(ki$1.bind(null,no,io,eo),[eo]),no.flags|=2048,li$1(9,mi$1.bind(null,no,io,ro,to),void 0,null),ro},useId:function(){var eo=ci$1(),to=R$3.identifierPrefix;if(I$2){var ro=sg,no=rg;ro=(no&~(1<<32-oc(no)-1)).toString(32)+ro,to=":"+to+"R"+ro,ro=Uh++,0<\/script>",eo=eo.removeChild(eo.firstChild)):typeof no.is=="string"?eo=so.createElement(ro,{is:no.is}):(eo=so.createElement(ro),ro==="select"&&(so=eo,no.multiple?so.multiple=!0:no.size&&(so.size=no.size))):eo=so.createElementNS(eo,ro),eo[Of]=to,eo[Pf]=no,Aj(eo,to,!1,!1),to.stateNode=eo;e:{switch(so=vb(ro,no),ro){case"dialog":D$4("cancel",eo),D$4("close",eo),oo=no;break;case"iframe":case"object":case"embed":D$4("load",eo),oo=no;break;case"video":case"audio":for(oo=0;ooHj&&(to.flags|=128,no=!0,Ej(io,!1),to.lanes=4194304)}else{if(!no)if(eo=Mh(so),eo!==null){if(to.flags|=128,no=!0,ro=eo.updateQueue,ro!==null&&(to.updateQueue=ro,to.flags|=4),Ej(io,!0),io.tail===null&&io.tailMode==="hidden"&&!so.alternate&&!I$2)return S$5(to),null}else 2*B$3()-io.renderingStartTime>Hj&&ro!==1073741824&&(to.flags|=128,no=!0,Ej(io,!1),to.lanes=4194304);io.isBackwards?(so.sibling=to.child,to.child=so):(ro=io.last,ro!==null?ro.sibling=so:to.child=so,io.last=so)}return io.tail!==null?(to=io.tail,io.rendering=to,io.tail=to.sibling,io.renderingStartTime=B$3(),to.sibling=null,ro=M$4.current,G$1(M$4,no?ro&1|2:ro&1),to):(S$5(to),null);case 22:case 23:return Ij(),no=to.memoizedState!==null,eo!==null&&eo.memoizedState!==null!==no&&(to.flags|=8192),no&&to.mode&1?gj&1073741824&&(S$5(to),to.subtreeFlags&6&&(to.flags|=8192)):S$5(to),null;case 24:return null;case 25:return null}throw Error(p$9(156,to.tag))}function Jj(eo,to){switch(wg(to),to.tag){case 1:return Zf(to.type)&&$f(),eo=to.flags,eo&65536?(to.flags=eo&-65537|128,to):null;case 3:return Jh(),E$5(Wf),E$5(H$3),Oh(),eo=to.flags,eo&65536&&!(eo&128)?(to.flags=eo&-65537|128,to):null;case 5:return Lh(to),null;case 13:if(E$5(M$4),eo=to.memoizedState,eo!==null&&eo.dehydrated!==null){if(to.alternate===null)throw Error(p$9(340));Ig()}return eo=to.flags,eo&65536?(to.flags=eo&-65537|128,to):null;case 19:return E$5(M$4),null;case 4:return Jh(),null;case 10:return Rg(to.type._context),null;case 22:case 23:return Ij(),null;case 24:return null;default:return null}}var Kj=!1,U$1=!1,Lj=typeof WeakSet=="function"?WeakSet:Set,V$1=null;function Mj(eo,to){var ro=eo.ref;if(ro!==null)if(typeof ro=="function")try{ro(null)}catch(no){W$1(eo,to,no)}else ro.current=null}function Nj(eo,to,ro){try{ro()}catch(no){W$1(eo,to,no)}}var Oj=!1;function Pj(eo,to){if(Cf=dd,eo=Me$2(),Ne$1(eo)){if("selectionStart"in eo)var ro={start:eo.selectionStart,end:eo.selectionEnd};else e:{ro=(ro=eo.ownerDocument)&&ro.defaultView||window;var no=ro.getSelection&&ro.getSelection();if(no&&no.rangeCount!==0){ro=no.anchorNode;var oo=no.anchorOffset,io=no.focusNode;no=no.focusOffset;try{ro.nodeType,io.nodeType}catch{ro=null;break e}var so=0,ao=-1,lo=-1,uo=0,co=0,fo=eo,po=null;t:for(;;){for(var ho;fo!==ro||oo!==0&&fo.nodeType!==3||(ao=so+oo),fo!==io||no!==0&&fo.nodeType!==3||(lo=so+no),fo.nodeType===3&&(so+=fo.nodeValue.length),(ho=fo.firstChild)!==null;)po=fo,fo=ho;for(;;){if(fo===eo)break t;if(po===ro&&++uo===oo&&(ao=so),po===io&&++co===no&&(lo=so),(ho=fo.nextSibling)!==null)break;fo=po,po=fo.parentNode}fo=ho}ro=ao===-1||lo===-1?null:{start:ao,end:lo}}else ro=null}ro=ro||{start:0,end:0}}else ro=null;for(Df={focusedElem:eo,selectionRange:ro},dd=!1,V$1=to;V$1!==null;)if(to=V$1,eo=to.child,(to.subtreeFlags&1028)!==0&&eo!==null)eo.return=to,V$1=eo;else for(;V$1!==null;){to=V$1;try{var mo=to.alternate;if(to.flags&1024)switch(to.tag){case 0:case 11:case 15:break;case 1:if(mo!==null){var vo=mo.memoizedProps,bo=mo.memoizedState,xo=to.stateNode,_o=xo.getSnapshotBeforeUpdate(to.elementType===to.type?vo:Lg(to.type,vo),bo);xo.__reactInternalSnapshotBeforeUpdate=_o}break;case 3:var So=to.stateNode.containerInfo;So.nodeType===1?So.textContent="":So.nodeType===9&&So.documentElement&&So.removeChild(So.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$9(163))}}catch(Eo){W$1(to,to.return,Eo)}if(eo=to.sibling,eo!==null){eo.return=to.return,V$1=eo;break}V$1=to.return}return mo=Oj,Oj=!1,mo}function Qj(eo,to,ro){var no=to.updateQueue;if(no=no!==null?no.lastEffect:null,no!==null){var oo=no=no.next;do{if((oo.tag&eo)===eo){var io=oo.destroy;oo.destroy=void 0,io!==void 0&&Nj(to,ro,io)}oo=oo.next}while(oo!==no)}}function Rj(eo,to){if(to=to.updateQueue,to=to!==null?to.lastEffect:null,to!==null){var ro=to=to.next;do{if((ro.tag&eo)===eo){var no=ro.create;ro.destroy=no()}ro=ro.next}while(ro!==to)}}function Sj(eo){var to=eo.ref;if(to!==null){var ro=eo.stateNode;switch(eo.tag){case 5:eo=ro;break;default:eo=ro}typeof to=="function"?to(eo):to.current=eo}}function Tj(eo){var to=eo.alternate;to!==null&&(eo.alternate=null,Tj(to)),eo.child=null,eo.deletions=null,eo.sibling=null,eo.tag===5&&(to=eo.stateNode,to!==null&&(delete to[Of],delete to[Pf],delete to[of$1],delete to[Qf],delete to[Rf])),eo.stateNode=null,eo.return=null,eo.dependencies=null,eo.memoizedProps=null,eo.memoizedState=null,eo.pendingProps=null,eo.stateNode=null,eo.updateQueue=null}function Uj(eo){return eo.tag===5||eo.tag===3||eo.tag===4}function Vj(eo){e:for(;;){for(;eo.sibling===null;){if(eo.return===null||Uj(eo.return))return null;eo=eo.return}for(eo.sibling.return=eo.return,eo=eo.sibling;eo.tag!==5&&eo.tag!==6&&eo.tag!==18;){if(eo.flags&2||eo.child===null||eo.tag===4)continue e;eo.child.return=eo,eo=eo.child}if(!(eo.flags&2))return eo.stateNode}}function Wj(eo,to,ro){var no=eo.tag;if(no===5||no===6)eo=eo.stateNode,to?ro.nodeType===8?ro.parentNode.insertBefore(eo,to):ro.insertBefore(eo,to):(ro.nodeType===8?(to=ro.parentNode,to.insertBefore(eo,ro)):(to=ro,to.appendChild(eo)),ro=ro._reactRootContainer,ro!=null||to.onclick!==null||(to.onclick=Bf));else if(no!==4&&(eo=eo.child,eo!==null))for(Wj(eo,to,ro),eo=eo.sibling;eo!==null;)Wj(eo,to,ro),eo=eo.sibling}function Xj(eo,to,ro){var no=eo.tag;if(no===5||no===6)eo=eo.stateNode,to?ro.insertBefore(eo,to):ro.appendChild(eo);else if(no!==4&&(eo=eo.child,eo!==null))for(Xj(eo,to,ro),eo=eo.sibling;eo!==null;)Xj(eo,to,ro),eo=eo.sibling}var X$1=null,Yj=!1;function Zj(eo,to,ro){for(ro=ro.child;ro!==null;)ak(eo,to,ro),ro=ro.sibling}function ak(eo,to,ro){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,ro)}catch{}switch(ro.tag){case 5:U$1||Mj(ro,to);case 6:var no=X$1,oo=Yj;X$1=null,Zj(eo,to,ro),X$1=no,Yj=oo,X$1!==null&&(Yj?(eo=X$1,ro=ro.stateNode,eo.nodeType===8?eo.parentNode.removeChild(ro):eo.removeChild(ro)):X$1.removeChild(ro.stateNode));break;case 18:X$1!==null&&(Yj?(eo=X$1,ro=ro.stateNode,eo.nodeType===8?Kf(eo.parentNode,ro):eo.nodeType===1&&Kf(eo,ro),bd(eo)):Kf(X$1,ro.stateNode));break;case 4:no=X$1,oo=Yj,X$1=ro.stateNode.containerInfo,Yj=!0,Zj(eo,to,ro),X$1=no,Yj=oo;break;case 0:case 11:case 14:case 15:if(!U$1&&(no=ro.updateQueue,no!==null&&(no=no.lastEffect,no!==null))){oo=no=no.next;do{var io=oo,so=io.destroy;io=io.tag,so!==void 0&&(io&2||io&4)&&Nj(ro,to,so),oo=oo.next}while(oo!==no)}Zj(eo,to,ro);break;case 1:if(!U$1&&(Mj(ro,to),no=ro.stateNode,typeof no.componentWillUnmount=="function"))try{no.props=ro.memoizedProps,no.state=ro.memoizedState,no.componentWillUnmount()}catch(ao){W$1(ro,to,ao)}Zj(eo,to,ro);break;case 21:Zj(eo,to,ro);break;case 22:ro.mode&1?(U$1=(no=U$1)||ro.memoizedState!==null,Zj(eo,to,ro),U$1=no):Zj(eo,to,ro);break;default:Zj(eo,to,ro)}}function bk$1(eo){var to=eo.updateQueue;if(to!==null){eo.updateQueue=null;var ro=eo.stateNode;ro===null&&(ro=eo.stateNode=new Lj),to.forEach(function(no){var oo=ck.bind(null,eo,no);ro.has(no)||(ro.add(no),no.then(oo,oo))})}}function dk(eo,to){var ro=to.deletions;if(ro!==null)for(var no=0;nooo&&(oo=so),no&=~io}if(no=oo,no=B$3()-no,no=(120>no?120:480>no?480:1080>no?1080:1920>no?1920:3e3>no?3e3:4320>no?4320:1960*mk(no/1960))-no,10eo?16:eo,xk===null)var no=!1;else{if(eo=xk,xk=null,yk=0,K$3&6)throw Error(p$9(331));var oo=K$3;for(K$3|=4,V$1=eo.current;V$1!==null;){var io=V$1,so=io.child;if(V$1.flags&16){var ao=io.deletions;if(ao!==null){for(var lo=0;loB$3()-gk?Lk(eo,0):sk|=ro),Ek(eo,to)}function Zk(eo,to){to===0&&(eo.mode&1?(to=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):to=1);var ro=L$3();eo=Zg(eo,to),eo!==null&&(Ac(eo,to,ro),Ek(eo,ro))}function vj(eo){var to=eo.memoizedState,ro=0;to!==null&&(ro=to.retryLane),Zk(eo,ro)}function ck(eo,to){var ro=0;switch(eo.tag){case 13:var no=eo.stateNode,oo=eo.memoizedState;oo!==null&&(ro=oo.retryLane);break;case 19:no=eo.stateNode;break;default:throw Error(p$9(314))}no!==null&&no.delete(to),Zk(eo,ro)}var Wk;Wk=function(eo,to,ro){if(eo!==null)if(eo.memoizedProps!==to.pendingProps||Wf.current)Ug=!0;else{if(!(eo.lanes&ro)&&!(to.flags&128))return Ug=!1,zj(eo,to,ro);Ug=!!(eo.flags&131072)}else Ug=!1,I$2&&to.flags&1048576&&ug(to,ng,to.index);switch(to.lanes=0,to.tag){case 2:var no=to.type;jj(eo,to),eo=to.pendingProps;var oo=Yf(to,H$3.current);Tg(to,ro),oo=Xh(null,to,no,eo,oo,ro);var io=bi$1();return to.flags|=1,typeof oo=="object"&&oo!==null&&typeof oo.render=="function"&&oo.$$typeof===void 0?(to.tag=1,to.memoizedState=null,to.updateQueue=null,Zf(no)?(io=!0,cg(to)):io=!1,to.memoizedState=oo.state!==null&&oo.state!==void 0?oo.state:null,ah(to),oo.updater=nh,to.stateNode=oo,oo._reactInternals=to,rh(to,no,eo,ro),to=kj(null,to,no,!0,io,ro)):(to.tag=0,I$2&&io&&vg(to),Yi$1(null,to,oo,ro),to=to.child),to;case 16:no=to.elementType;e:{switch(jj(eo,to),eo=to.pendingProps,oo=no._init,no=oo(no._payload),to.type=no,oo=to.tag=$k(no),eo=Lg(no,eo),oo){case 0:to=dj(null,to,no,eo,ro);break e;case 1:to=ij(null,to,no,eo,ro);break e;case 11:to=Zi$1(null,to,no,eo,ro);break e;case 14:to=aj(null,to,no,Lg(no.type,eo),ro);break e}throw Error(p$9(306,no,""))}return to;case 0:return no=to.type,oo=to.pendingProps,oo=to.elementType===no?oo:Lg(no,oo),dj(eo,to,no,oo,ro);case 1:return no=to.type,oo=to.pendingProps,oo=to.elementType===no?oo:Lg(no,oo),ij(eo,to,no,oo,ro);case 3:e:{if(lj(to),eo===null)throw Error(p$9(387));no=to.pendingProps,io=to.memoizedState,oo=io.element,bh(eo,to),gh(to,no,null,ro);var so=to.memoizedState;if(no=so.element,io.isDehydrated)if(io={element:no,isDehydrated:!1,cache:so.cache,pendingSuspenseBoundaries:so.pendingSuspenseBoundaries,transitions:so.transitions},to.updateQueue.baseState=io,to.memoizedState=io,to.flags&256){oo=Ki$1(Error(p$9(423)),to),to=mj(eo,to,no,ro,oo);break e}else if(no!==oo){oo=Ki$1(Error(p$9(424)),to),to=mj(eo,to,no,ro,oo);break e}else for(yg=Lf(to.stateNode.containerInfo.firstChild),xg=to,I$2=!0,zg=null,ro=Ch(to,null,no,ro),to.child=ro;ro;)ro.flags=ro.flags&-3|4096,ro=ro.sibling;else{if(Ig(),no===oo){to=$i$1(eo,to,ro);break e}Yi$1(eo,to,no,ro)}to=to.child}return to;case 5:return Kh(to),eo===null&&Eg(to),no=to.type,oo=to.pendingProps,io=eo!==null?eo.memoizedProps:null,so=oo.children,Ef(no,oo)?so=null:io!==null&&Ef(no,io)&&(to.flags|=32),hj(eo,to),Yi$1(eo,to,so,ro),to.child;case 6:return eo===null&&Eg(to),null;case 13:return pj(eo,to,ro);case 4:return Ih(to,to.stateNode.containerInfo),no=to.pendingProps,eo===null?to.child=Bh(to,null,no,ro):Yi$1(eo,to,no,ro),to.child;case 11:return no=to.type,oo=to.pendingProps,oo=to.elementType===no?oo:Lg(no,oo),Zi$1(eo,to,no,oo,ro);case 7:return Yi$1(eo,to,to.pendingProps,ro),to.child;case 8:return Yi$1(eo,to,to.pendingProps.children,ro),to.child;case 12:return Yi$1(eo,to,to.pendingProps.children,ro),to.child;case 10:e:{if(no=to.type._context,oo=to.pendingProps,io=to.memoizedProps,so=oo.value,G$1(Mg,no._currentValue),no._currentValue=so,io!==null)if(He$2(io.value,so)){if(io.children===oo.children&&!Wf.current){to=$i$1(eo,to,ro);break e}}else for(io=to.child,io!==null&&(io.return=to);io!==null;){var ao=io.dependencies;if(ao!==null){so=io.child;for(var lo=ao.firstContext;lo!==null;){if(lo.context===no){if(io.tag===1){lo=ch(-1,ro&-ro),lo.tag=2;var uo=io.updateQueue;if(uo!==null){uo=uo.shared;var co=uo.pending;co===null?lo.next=lo:(lo.next=co.next,co.next=lo),uo.pending=lo}}io.lanes|=ro,lo=io.alternate,lo!==null&&(lo.lanes|=ro),Sg(io.return,ro,to),ao.lanes|=ro;break}lo=lo.next}}else if(io.tag===10)so=io.type===to.type?null:io.child;else if(io.tag===18){if(so=io.return,so===null)throw Error(p$9(341));so.lanes|=ro,ao=so.alternate,ao!==null&&(ao.lanes|=ro),Sg(so,ro,to),so=io.sibling}else so=io.child;if(so!==null)so.return=io;else for(so=io;so!==null;){if(so===to){so=null;break}if(io=so.sibling,io!==null){io.return=so.return,so=io;break}so=so.return}io=so}Yi$1(eo,to,oo.children,ro),to=to.child}return to;case 9:return oo=to.type,no=to.pendingProps.children,Tg(to,ro),oo=Vg(oo),no=no(oo),to.flags|=1,Yi$1(eo,to,no,ro),to.child;case 14:return no=to.type,oo=Lg(no,to.pendingProps),oo=Lg(no.type,oo),aj(eo,to,no,oo,ro);case 15:return cj(eo,to,to.type,to.pendingProps,ro);case 17:return no=to.type,oo=to.pendingProps,oo=to.elementType===no?oo:Lg(no,oo),jj(eo,to),to.tag=1,Zf(no)?(eo=!0,cg(to)):eo=!1,Tg(to,ro),ph(to,no,oo),rh(to,no,oo,ro),kj(null,to,no,!0,eo,ro);case 19:return yj(eo,to,ro);case 22:return ej(eo,to,ro)}throw Error(p$9(156,to.tag))};function Gk(eo,to){return ac(eo,to)}function al(eo,to,ro,no){this.tag=eo,this.key=ro,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=to,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=no,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(eo,to,ro,no){return new al(eo,to,ro,no)}function bj(eo){return eo=eo.prototype,!(!eo||!eo.isReactComponent)}function $k(eo){if(typeof eo=="function")return bj(eo)?1:0;if(eo!=null){if(eo=eo.$$typeof,eo===Da)return 11;if(eo===Ga)return 14}return 2}function wh(eo,to){var ro=eo.alternate;return ro===null?(ro=Bg(eo.tag,to,eo.key,eo.mode),ro.elementType=eo.elementType,ro.type=eo.type,ro.stateNode=eo.stateNode,ro.alternate=eo,eo.alternate=ro):(ro.pendingProps=to,ro.type=eo.type,ro.flags=0,ro.subtreeFlags=0,ro.deletions=null),ro.flags=eo.flags&14680064,ro.childLanes=eo.childLanes,ro.lanes=eo.lanes,ro.child=eo.child,ro.memoizedProps=eo.memoizedProps,ro.memoizedState=eo.memoizedState,ro.updateQueue=eo.updateQueue,to=eo.dependencies,ro.dependencies=to===null?null:{lanes:to.lanes,firstContext:to.firstContext},ro.sibling=eo.sibling,ro.index=eo.index,ro.ref=eo.ref,ro}function yh(eo,to,ro,no,oo,io){var so=2;if(no=eo,typeof eo=="function")bj(eo)&&(so=1);else if(typeof eo=="string")so=5;else e:switch(eo){case ya:return Ah(ro.children,oo,io,to);case za:so=8,oo|=8;break;case Aa:return eo=Bg(12,ro,to,oo|2),eo.elementType=Aa,eo.lanes=io,eo;case Ea:return eo=Bg(13,ro,to,oo),eo.elementType=Ea,eo.lanes=io,eo;case Fa:return eo=Bg(19,ro,to,oo),eo.elementType=Fa,eo.lanes=io,eo;case Ia:return qj(ro,oo,io,to);default:if(typeof eo=="object"&&eo!==null)switch(eo.$$typeof){case Ba:so=10;break e;case Ca:so=9;break e;case Da:so=11;break e;case Ga:so=14;break e;case Ha:so=16,no=null;break e}throw Error(p$9(130,eo==null?eo:typeof eo,""))}return to=Bg(so,ro,to,oo),to.elementType=eo,to.type=no,to.lanes=io,to}function Ah(eo,to,ro,no){return eo=Bg(7,eo,no,to),eo.lanes=ro,eo}function qj(eo,to,ro,no){return eo=Bg(22,eo,no,to),eo.elementType=Ia,eo.lanes=ro,eo.stateNode={isHidden:!1},eo}function xh(eo,to,ro){return eo=Bg(6,eo,null,to),eo.lanes=ro,eo}function zh(eo,to,ro){return to=Bg(4,eo.children!==null?eo.children:[],eo.key,to),to.lanes=ro,to.stateNode={containerInfo:eo.containerInfo,pendingChildren:null,implementation:eo.implementation},to}function bl(eo,to,ro,no,oo){this.tag=to,this.containerInfo=eo,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=no,this.onRecoverableError=oo,this.mutableSourceEagerHydrationData=null}function cl(eo,to,ro,no,oo,io,so,ao,lo){return eo=new bl(eo,to,ro,ao,lo),to===1?(to=1,io===!0&&(to|=8)):to=0,io=Bg(3,null,null,to),eo.current=io,io.stateNode=eo,io.memoizedState={element:no,isDehydrated:ro,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(io),eo}function dl(eo,to,ro){var no=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(eo){console.error(eo)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const ReactDOM=getDefaultExportFromCjs(reactDomExports);var m$9=reactDomExports;client.createRoot=m$9.createRoot,client.hydrateRoot=m$9.hydrateRoot;const positionMap=["Top","Right","Bottom","Left"];function generateStyles(eo,to,...ro){const[no,oo=no,io=no,so=oo]=ro,ao=[no,oo,io,so],lo={};for(let uo=0;uotypeof eo=="string"&&/(\d+(\w+|%))/.test(eo),isUnitless=eo=>typeof eo=="number"&&!Number.isNaN(eo),isInitial=eo=>eo==="initial",isAuto=eo=>eo==="auto",isNone=eo=>eo==="none",widthReservedKeys=["content","fit-content","max-content","min-content"],isWidth=eo=>widthReservedKeys.some(to=>eo===to)||isUnit(eo);function flex(...eo){const to=eo.length===1,ro=eo.length===2,no=eo.length===3;if(to){const[oo]=eo;if(isInitial(oo))return{flexGrow:0,flexShrink:1,flexBasis:"auto"};if(isAuto(oo))return{flexGrow:1,flexShrink:1,flexBasis:"auto"};if(isNone(oo))return{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(isUnitless(oo))return{flexGrow:oo,flexShrink:1,flexBasis:0};if(isWidth(oo))return{flexGrow:1,flexShrink:1,flexBasis:oo}}if(ro){const[oo,io]=eo;if(isUnitless(io))return{flexGrow:oo,flexShrink:io,flexBasis:0};if(isWidth(io))return{flexGrow:oo,flexShrink:1,flexBasis:io}}if(no){const[oo,io,so]=eo;if(isUnitless(oo)&&isUnitless(io)&&(isAuto(so)||isWidth(so)))return{flexGrow:oo,flexShrink:io,flexBasis:so}}return{}}function gap(eo,to=eo){return{columnGap:eo,rowGap:to}}const cssVarRegEx=/var\(.*\)/gi;function isValidGridAreaInput(eo){return eo===void 0||typeof eo=="number"||typeof eo=="string"&&!cssVarRegEx.test(eo)}const customIdentRegEx=/^[a-zA-Z0-9\-_\\#;]+$/,nonCustomIdentRegEx=/^-moz-initial$|^auto$|^initial$|^inherit$|^revert$|^unset$|^span \d+$|^\d.*/;function isCustomIdent(eo){return eo!==void 0&&typeof eo=="string"&&customIdentRegEx.test(eo)&&!nonCustomIdentRegEx.test(eo)}function gridArea(...eo){if(eo.some(io=>!isValidGridAreaInput(io)))return{};const to=eo[0]!==void 0?eo[0]:"auto",ro=eo[1]!==void 0?eo[1]:isCustomIdent(to)?to:"auto",no=eo[2]!==void 0?eo[2]:isCustomIdent(to)?to:"auto",oo=eo[3]!==void 0?eo[3]:isCustomIdent(ro)?ro:"auto";return{gridRowStart:to,gridColumnStart:ro,gridRowEnd:no,gridColumnEnd:oo}}function margin(...eo){return generateStyles("margin","",...eo)}function marginBlock(eo,to=eo){return{marginBlockStart:eo,marginBlockEnd:to}}function marginInline(eo,to=eo){return{marginInlineStart:eo,marginInlineEnd:to}}function padding(...eo){return generateStyles("padding","",...eo)}function paddingBlock(eo,to=eo){return{paddingBlockStart:eo,paddingBlockEnd:to}}function paddingInline(eo,to=eo){return{paddingInlineStart:eo,paddingInlineEnd:to}}function overflow(eo,to=eo){return{overflowX:eo,overflowY:to}}function inset(...eo){const[to,ro=to,no=to,oo=ro]=eo;return{top:to,right:ro,bottom:no,left:oo}}function outline(eo,to,ro){return{outlineWidth:eo,...to&&{outlineStyle:to},...ro&&{outlineColor:ro}}}function transition$1(...eo){return isTransitionGlobalInputs(eo)?{transitionDelay:eo[0],transitionDuration:eo[0],transitionProperty:eo[0],transitionTimingFunction:eo[0]}:normalizeTransitionInputs(eo).reduce((ro,[no,oo="0s",io="0s",so="ease"],ao)=>(ao===0?(ro.transitionProperty=no,ro.transitionDuration=oo,ro.transitionDelay=io,ro.transitionTimingFunction=so):(ro.transitionProperty+=`, ${no}`,ro.transitionDuration+=`, ${oo}`,ro.transitionDelay+=`, ${io}`,ro.transitionTimingFunction+=`, ${so}`),ro),{})}const transitionGlobalInputs=["-moz-initial","inherit","initial","revert","unset"];function isTransitionGlobalInputs(eo){return eo.length===1&&transitionGlobalInputs.includes(eo[0])}function normalizeTransitionInputs(eo){return eo.length===1&&Array.isArray(eo[0])?eo[0]:[eo]}function textDecoration(eo,...to){if(to.length===0)return isTextDecorationStyleInput(eo)?{textDecorationStyle:eo}:{textDecorationLine:eo};const[ro,no,oo]=to;return{textDecorationLine:eo,...ro&&{textDecorationStyle:ro},...no&&{textDecorationColor:no},...oo&&{textDecorationThickness:oo}}}const textDecorationStyleInputs=["dashed","dotted","double","solid","wavy"];function isTextDecorationStyleInput(eo){return textDecorationStyleInputs.includes(eo)}const __GLOBAL__=typeof window>"u"?global:window,__NAMESPACE_PREFIX__="@griffel/";function getGlobalVar(eo,to){return __GLOBAL__[Symbol.for(__NAMESPACE_PREFIX__+eo)]||(__GLOBAL__[Symbol.for(__NAMESPACE_PREFIX__+eo)]=to),__GLOBAL__[Symbol.for(__NAMESPACE_PREFIX__+eo)]}const DEFINITION_LOOKUP_TABLE=getGlobalVar("DEFINITION_LOOKUP_TABLE",{}),DATA_BUCKET_ATTR="data-make-styles-bucket",HASH_PREFIX="f",SEQUENCE_HASH_LENGTH=7,SEQUENCE_PREFIX="___",SEQUENCE_SIZE=SEQUENCE_PREFIX.length+SEQUENCE_HASH_LENGTH,LOOKUP_DEFINITIONS_INDEX=0,LOOKUP_DIR_INDEX=1,UNSUPPORTED_CSS_PROPERTIES={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 murmur2(eo){for(var to=0,ro,no=0,oo=eo.length;oo>=4;++no,oo-=4)ro=eo.charCodeAt(no)&255|(eo.charCodeAt(++no)&255)<<8|(eo.charCodeAt(++no)&255)<<16|(eo.charCodeAt(++no)&255)<<24,ro=(ro&65535)*1540483477+((ro>>>16)*59797<<16),ro^=ro>>>24,to=(ro&65535)*1540483477+((ro>>>16)*59797<<16)^(to&65535)*1540483477+((to>>>16)*59797<<16);switch(oo){case 3:to^=(eo.charCodeAt(no+2)&255)<<16;case 2:to^=(eo.charCodeAt(no+1)&255)<<8;case 1:to^=eo.charCodeAt(no)&255,to=(to&65535)*1540483477+((to>>>16)*59797<<16)}return to^=to>>>13,to=(to&65535)*1540483477+((to>>>16)*59797<<16),((to^to>>>15)>>>0).toString(36)}function padEndHash(eo){const to=eo.length;if(to===SEQUENCE_HASH_LENGTH)return eo;for(let ro=to;ro0&&(to+=co.slice(0,fo)),ro+=po,no[uo]=po}}}if(ro==="")return to.slice(0,-1);const oo=mergeClassesCachedResults[ro];if(oo!==void 0)return to+oo;const io=[];for(let uo=0;uo{const to=Object.keys(mergeClassesCachedResults).find(ro=>mergeClassesCachedResults[ro].startsWith(eo));return to?to.split(SEQUENCE_PREFIX).filter(ro=>ro.length).map(ro=>SEQUENCE_PREFIX+ro):[]},addCSSRule:eo=>{cssRules.add(eo)},addSequenceDetails:(eo,to)=>{Object.entries(eo).forEach(([ro,no])=>{sequenceDetails[no.substring(0,SEQUENCE_SIZE)]={slotName:ro,sourceURL:to}})},getCSSRules:()=>Array.from(cssRules),getSequenceDetails:eo=>sequenceDetails[eo]};function getDirectionalClassName(eo,to){return Array.isArray(eo)?to==="rtl"?eo[1]:eo[0]:eo}function getDebugClassNames(eo,to,ro,no){const oo=eo[0],io=eo[1];return Object.entries(oo).map(([so,ao])=>{const lo=getDirectionalClassName(ao,io);let uo;if(ro&&to){const co=ro.find(({className:fo})=>fo===lo);!co&&to[0][so]?uo=getDirectionalClassName(to[0][so],to[1]):co&&to[0][so]?uo=(no?no.filter(({debugClassNames:po})=>po.filter(({className:ho})=>ho===lo).length>0).length>0:!1)?co.className:co.overriddenBy:(!co&&!to[0][so]||co&&!to[0][so])&&(uo=void 0)}return{className:lo,overriddenBy:uo}})}function getDebugTree(eo,to){const ro=DEFINITION_LOOKUP_TABLE[eo];if(ro===void 0)return;const no=to?DEFINITION_LOOKUP_TABLE[to.sequenceHash]:void 0,oo=getDebugClassNames(ro,no,to==null?void 0:to.debugClassNames,to==null?void 0:to.children),io={sequenceHash:eo,direction:ro[1],children:[],debugClassNames:oo};return debugData.getChildrenSequences(io.sequenceHash).reverse().forEach(ao=>{const lo=getDebugTree(ao,io);lo&&io.children.push(lo)}),io.children.length||(io.rules={},io.debugClassNames.forEach(({className:ao})=>{const lo=debugData.getSequenceDetails(eo);lo&&(io.slot=lo.slotName,io.sourceURL=lo.sourceURL);const uo=debugData.getCSSRules().find(co=>co.includes(ao));io.rules[ao]=uo})),io}function injectDevTools(eo){const to=eo.defaultView;if(!to||to.__GRIFFEL_DEVTOOLS__)return;const ro={getInfo:no=>{const oo=Array.from(no.classList).find(io=>io.startsWith(SEQUENCE_PREFIX));if(oo!==void 0)return getDebugTree(oo)}};Object.defineProperty(to,"__GRIFFEL_DEVTOOLS__",{configurable:!1,enumerable:!1,get(){return ro}})}function normalizeCSSBucketEntry(eo){return Array.isArray(eo)?eo:[eo]}function createIsomorphicStyleSheet(eo,to,ro){const no=[];if(ro[DATA_BUCKET_ATTR]=to,eo)for(const io in ro)eo.setAttribute(io,ro[io]);function oo(io){return eo!=null&&eo.sheet?eo.sheet.insertRule(io,eo.sheet.cssRules.length):no.push(io)}return{elementAttributes:ro,insertRule:oo,element:eo,bucketName:to,cssRules(){return eo!=null&&eo.sheet?Array.from(eo.sheet.cssRules).map(io=>io.cssText):no}}}const styleBucketOrdering=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"],styleBucketOrderingMap=styleBucketOrdering.reduce((eo,to,ro)=>(eo[to]=ro,eo),{});function getStyleSheetForBucket(eo,to,ro,no,oo={}){const io=eo==="m",so=io?eo+oo.m:eo;if(!no.stylesheets[so]){const ao=to&&to.createElement("style"),lo=createIsomorphicStyleSheet(ao,eo,{...no.styleElementAttributes,...io&&{media:oo.m}});no.stylesheets[so]=lo,to&&ao&&to.head.insertBefore(ao,findInsertionPoint(to,ro,eo,no,oo))}return no.stylesheets[so]}function findInsertionPoint(eo,to,ro,no,oo){const io=styleBucketOrderingMap[ro];let so=co=>io-styleBucketOrderingMap[co.getAttribute(DATA_BUCKET_ATTR)],ao=eo.head.querySelectorAll(`[${DATA_BUCKET_ATTR}]`);if(ro==="m"&&oo){const co=eo.head.querySelectorAll(`[${DATA_BUCKET_ATTR}="${ro}"]`);co.length&&(ao=co,so=fo=>no.compareMediaQueries(oo.m,fo.media))}const lo=ao.length;let uo=lo-1;for(;uo>=0;){const co=ao.item(uo);if(so(co)>0)return co.nextSibling;uo--}return lo>0?ao.item(0):to?to.nextSibling:null}function safeInsertRule(eo,to){try{eo.insertRule(to)}catch{}}let lastIndex=0;const defaultCompareMediaQueries=(eo,to)=>eoto?1:0;function createDOMRenderer(eo=typeof document>"u"?void 0:document,to={}){const{unstable_filterCSSRule:ro,insertionPoint:no,styleElementAttributes:oo,compareMediaQueries:io=defaultCompareMediaQueries}=to,so={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(oo),compareMediaQueries:io,id:`d${lastIndex++}`,insertCSSRules(ao){for(const lo in ao){const uo=ao[lo];for(let co=0,fo=uo.length;co{const eo={};return function(ro,no){eo[ro.id]===void 0&&(ro.insertCSSRules(no),eo[ro.id]=!0)}};function arrayToObject(eo){return eo.reduce(function(to,ro){var no=ro[0],oo=ro[1];return to[no]=oo,to[oo]=no,to},{})}function isBoolean(eo){return typeof eo=="boolean"}function isFunction$7(eo){return typeof eo=="function"}function isNumber$2(eo){return typeof eo=="number"}function isNullOrUndefined$1(eo){return eo===null||typeof eo>"u"}function isObject$i(eo){return eo&&typeof eo=="object"}function isString$2(eo){return typeof eo=="string"}function includes(eo,to){return eo.indexOf(to)!==-1}function flipSign(eo){return parseFloat(eo)===0?eo:eo[0]==="-"?eo.slice(1):"-"+eo}function flipTransformSign(eo,to,ro,no){return to+flipSign(ro)+no}function calculateNewBackgroundPosition(eo){var to=eo.indexOf(".");if(to===-1)eo=100-parseFloat(eo)+"%";else{var ro=eo.length-to-2;eo=100-parseFloat(eo),eo=eo.toFixed(ro)+"%"}return eo}function getValuesAsList(eo){return eo.replace(/ +/g," ").split(" ").map(function(to){return to.trim()}).filter(Boolean).reduce(function(to,ro){var no=to.list,oo=to.state,io=(ro.match(/\(/g)||[]).length,so=(ro.match(/\)/g)||[]).length;return oo.parensDepth>0?no[no.length-1]=no[no.length-1]+" "+ro:no.push(ro),oo.parensDepth+=io-so,{list:no,state:oo}},{list:[],state:{parensDepth:0}}).list}function handleQuartetValues(eo){var to=getValuesAsList(eo);if(to.length<=3||to.length>4)return eo;var ro=to[0],no=to[1],oo=to[2],io=to[3];return[ro,io,oo,no].join(" ")}function canConvertValue(eo){return!isBoolean(eo)&&!isNullOrUndefined$1(eo)}function splitShadow(eo){for(var to=[],ro=0,no=0,oo=!1;no0?charat$1(characters$1,--position$3):0,column$1--,character$1===10&&(column$1=1,line$2--),character$1}function next$1(){return character$1=position$32||token$2(character$1)>3?"":" "}function tokenizer(eo){for(;next$1();)switch(token$2(character$1)){case 0:append$1(identifier$1(position$3-1),eo);break;case 2:append$1(delimit$1(character$1),eo);break;default:append$1(from$2(character$1),eo)}return eo}function escaping$1(eo,to){for(;--to&&next$1()&&!(character$1<48||character$1>102||character$1>57&&character$1<65||character$1>70&&character$1<97););return slice$1(eo,caret$1()+(to<6&&peek$1()==32&&next$1()==32))}function delimiter$1(eo){for(;next$1();)switch(character$1){case eo:return position$3;case 34:case 39:eo!==34&&eo!==39&&delimiter$1(character$1);break;case 40:eo===41&&delimiter$1(eo);break;case 92:next$1();break}return position$3}function commenter$1(eo,to){for(;next$1()&&eo+character$1!==57;)if(eo+character$1===84&&peek$1()===47)break;return"/*"+slice$1(to,position$3-1)+"*"+from$2(eo===47?eo:next$1())}function identifier$1(eo){for(;!token$2(peek$1());)next$1();return slice$1(eo,position$3)}function compile$1(eo){return dealloc$1(parse$n("",null,null,null,[""],eo=alloc$1(eo),0,[0],eo))}function parse$n(eo,to,ro,no,oo,io,so,ao,lo){for(var uo=0,co=0,fo=so,po=0,ho=0,mo=0,vo=1,bo=1,xo=1,_o=0,So="",Eo=oo,ko=io,wo=no,Co=So;bo;)switch(mo=_o,_o=next$1()){case 40:if(mo!=108&&charat$1(Co,fo-1)==58){indexof$1(Co+=replace$2(delimit$1(_o),"&","&\f"),"&\f")!=-1&&(xo=-1);break}case 34:case 39:case 91:Co+=delimit$1(_o);break;case 9:case 10:case 13:case 32:Co+=whitespace$1(mo);break;case 92:Co+=escaping$1(caret$1()-1,7);continue;case 47:switch(peek$1()){case 42:case 47:append$1(comment$1(commenter$1(next$1(),caret$1()),to,ro,lo),lo);break;default:Co+="/"}break;case 123*vo:ao[uo++]=strlen$1(Co)*xo;case 125*vo:case 59:case 0:switch(_o){case 0:case 125:bo=0;case 59+co:xo==-1&&(Co=replace$2(Co,/\f/g,"")),ho>0&&strlen$1(Co)-fo&&append$1(ho>32?declaration$1(Co+";",no,ro,fo-1,lo):declaration$1(replace$2(Co," ","")+";",no,ro,fo-2,lo),lo);break;case 59:Co+=";";default:if(append$1(wo=ruleset$1(Co,to,ro,uo,co,oo,ao,So,Eo=[],ko=[],fo,io),io),_o===123)if(co===0)parse$n(Co,to,wo,wo,Eo,io,fo,ao,ko);else switch(po===99&&charat$1(Co,3)===110?100:po){case 100:case 108:case 109:case 115:parse$n(eo,wo,wo,no&&append$1(ruleset$1(eo,wo,wo,0,0,oo,ao,So,oo,Eo=[],fo,ko),ko),oo,ko,fo,ao,no?Eo:ko);break;default:parse$n(Co,wo,wo,wo,[""],ko,0,ao,ko)}}uo=co=ho=0,vo=xo=1,So=Co="",fo=so;break;case 58:fo=1+strlen$1(Co),ho=mo;default:if(vo<1){if(_o==123)--vo;else if(_o==125&&vo++==0&&prev$1()==125)continue}switch(Co+=from$2(_o),_o*vo){case 38:xo=co>0?1:(Co+="\f",-1);break;case 44:ao[uo++]=(strlen$1(Co)-1)*xo,xo=1;break;case 64:peek$1()===45&&(Co+=delimit$1(next$1())),po=peek$1(),co=fo=strlen$1(So=Co+=identifier$1(caret$1())),_o++;break;case 45:mo===45&&strlen$1(Co)==2&&(vo=0)}}return io}function ruleset$1(eo,to,ro,no,oo,io,so,ao,lo,uo,co,fo){for(var po=oo-1,ho=oo===0?io:[""],mo=sizeof$1(ho),vo=0,bo=0,xo=0;vo0?ho[_o]+" "+So:replace$2(So,/&\f/g,ho[_o])))&&(lo[xo++]=Eo);return node$1(eo,to,ro,oo===0?RULESET$1:ao,lo,uo,co,fo)}function comment$1(eo,to,ro,no){return node$1(eo,to,ro,COMMENT$1,from$2(char$1()),substr$1(eo,2,-2),0,no)}function declaration$1(eo,to,ro,no,oo){return node$1(eo,to,ro,DECLARATION$1,substr$1(eo,0,no),substr$1(eo,no+1,-1),no,oo)}function serialize$1(eo,to){for(var ro="",no=0;no{switch(eo.type){case RULESET$1:if(typeof eo.props=="string")return;eo.props=eo.props.map(to=>to.indexOf(":global(")===-1?to:tokenize(to).reduce((ro,no,oo,io)=>{if(no==="")return ro;if(no===":"&&io[oo+1]==="global"){const so=io[oo+2].slice(1,-1)+" ";return ro.unshift(so),io[oo+1]="",io[oo+2]="",ro}return ro.push(no),ro},[]).join(""))}};function prefix$3(eo,to,ro){switch(hash$2(eo,to)){case 5103:return WEBKIT$1+"print-"+eo+eo;case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:return WEBKIT$1+eo+eo;case 4215:if(charat$1(eo,9)===102||charat$1(eo,to+1)===116)return WEBKIT$1+eo+eo;break;case 4789:return MOZ$1+eo+eo;case 5349:case 4246:case 6968:return WEBKIT$1+eo+MOZ$1+eo+eo;case 6187:if(!match$m(eo,/grab/))return replace$2(replace$2(replace$2(eo,/(zoom-|grab)/,WEBKIT$1+"$1"),/(image-set)/,WEBKIT$1+"$1"),eo,"")+eo;case 5495:case 3959:return replace$2(eo,/(image-set\([^]*)/,WEBKIT$1+"$1$`$1");case 4095:case 3583:case 4068:case 2532:return replace$2(eo,/(.+)-inline(.+)/,WEBKIT$1+"$1$2")+eo;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(strlen$1(eo)-1-to>6)switch(charat$1(eo,to+1)){case 102:if(charat$1(eo,to+3)===108)return replace$2(eo,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT$1+"$2-$3$1"+MOZ$1+(charat$1(eo,to+3)==108?"$3":"$2-$3"))+eo;case 115:return~indexof$1(eo,"stretch")?prefix$3(replace$2(eo,"stretch","fill-available"),to)+eo:eo}break}return eo}function prefixerPlugin(eo,to,ro,no){if(eo.length>-1&&!eo.return)switch(eo.type){case DECLARATION$1:eo.return=prefix$3(eo.value,eo.length);return;case RULESET$1:if(eo.length)return combine$1(eo.props,function(oo){switch(match$m(oo,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize$1([copy$3(eo,{props:[replace$2(oo,/:(read-\w+)/,":"+MOZ$1+"$1")]})],no);case"::placeholder":return serialize$1([copy$3(eo,{props:[replace$2(oo,/:(plac\w+)/,":"+WEBKIT$1+"input-$1")]}),copy$3(eo,{props:[replace$2(oo,/:(plac\w+)/,":"+MOZ$1+"$1")]})],no)}return""})}}function isAtRuleElement(eo){switch(eo.type){case"@container":case MEDIA:case SUPPORTS:case LAYER$1:return!0}return!1}const sortClassesInAtRulesPlugin=eo=>{isAtRuleElement(eo)&&Array.isArray(eo.children)&&eo.children.sort((to,ro)=>to.props[0]>ro.props[0]?1:-1)};function noop$7(){}function compileCSSRules(eo,to){const ro=[];return serialize$1(compile$1(eo),middleware$1([globalPlugin,to?sortClassesInAtRulesPlugin:noop$7,prefixerPlugin,stringify$2,rulesheet$1(no=>ro.push(no))])),ro}const PSEUDO_SELECTOR_REGEX=/,( *[^ &])/g;function normalizePseudoSelector(eo){return"&"+normalizeNestedProperty(eo.replace(PSEUDO_SELECTOR_REGEX,",&$1"))}function createCSSRule(eo,to,ro){let no=to;return ro.length>0&&(no=ro.reduceRight((oo,io)=>`${normalizePseudoSelector(io)} { ${oo} }`,to)),`${eo}{${no}}`}function compileAtomicCSSRule(eo){const{className:to,media:ro,layer:no,selectors:oo,support:io,property:so,rtlClassName:ao,rtlProperty:lo,rtlValue:uo,value:co,container:fo}=eo,po=`.${to}`,ho=Array.isArray(co)?`${co.map(vo=>`${hyphenateProperty(so)}: ${vo}`).join(";")};`:`${hyphenateProperty(so)}: ${co};`;let mo=createCSSRule(po,ho,oo);if(lo&&ao){const vo=`.${ao}`,bo=Array.isArray(uo)?`${uo.map(xo=>`${hyphenateProperty(lo)}: ${xo}`).join(";")};`:`${hyphenateProperty(lo)}: ${uo};`;mo+=createCSSRule(vo,bo,oo)}return ro&&(mo=`@media ${ro} { ${mo} }`),no&&(mo=`@layer ${no} { ${mo} }`),io&&(mo=`@supports ${io} { ${mo} }`),fo&&(mo=`@container ${fo} { ${mo} }`),compileCSSRules(mo,!0)}function cssifyObject(eo){let to="";for(const ro in eo){const no=eo[ro];typeof no!="string"&&typeof no!="number"||(to+=hyphenateProperty(ro)+":"+no+";")}return to}function compileKeyframeRule(eo){let to="";for(const ro in eo)to+=`${ro}{${cssifyObject(eo[ro])}}`;return to}function compileKeyframesCSS(eo,to){const ro=`@keyframes ${eo} {${to}}`,no=[];return serialize$1(compile$1(ro),middleware$1([stringify$2,prefixerPlugin,rulesheet$1(oo=>no.push(oo))])),no}function generateCombinedQuery(eo,to){return eo.length===0?to:`${eo} and ${to}`}function isMediaQuerySelector(eo){return eo.substr(0,6)==="@media"}function isLayerSelector(eo){return eo.substr(0,6)==="@layer"}const regex=/^(:|\[|>|&)/;function isNestedSelector(eo){return regex.test(eo)}function isSupportQuerySelector(eo){return eo.substr(0,9)==="@supports"}function isContainerQuerySelector(eo){return eo.substring(0,10)==="@container"}function isObject$h(eo){return eo!=null&&typeof eo=="object"&&Array.isArray(eo)===!1}const pseudosMap={"us-w":"w","us-v":"i",nk:"l",si:"v",cu:"f",ve:"h",ti:"a"};function getStyleBucketName(eo,to,ro,no,oo){if(ro)return"m";if(to||no)return"t";if(oo)return"c";if(eo.length>0){const io=eo[0].trim();if(io.charCodeAt(0)===58)return pseudosMap[io.slice(4,8)]||pseudosMap[io.slice(3,5)]||"d"}return"d"}function hashClassName({container:eo,media:to,layer:ro,property:no,selector:oo,support:io,value:so}){const ao=murmur2(oo+eo+to+ro+io+no+so.trim());return HASH_PREFIX+ao}function hashPropertyKey(eo,to,ro,no,oo){const io=eo+to+ro+no+oo,so=murmur2(io),ao=so.charCodeAt(0);return ao>=48&&ao<=57?String.fromCharCode(ao+17)+so.slice(1):so}function trimSelector(eo){return eo.replace(/>\s+/g,">")}function warnAboutUnresolvedRule(eo,to){const ro=JSON.stringify(to,null,2);" ".repeat(2)+""," ".repeat(4)+""," ".repeat(6)+`"${eo}": ${ro.split(` -`).map((no,oo)=>" ".repeat(oo===0?0:6)+no).join(` -`)}`," ".repeat(4)+""," ".repeat(2)+"",eo.indexOf("&")}function warnAboutUnsupportedProperties(eo,to){}function pushToClassesMap(eo,to,ro,no){eo[to]=no?[ro,no]:ro}function createBucketEntry(eo,to){return to?[eo,to]:eo}function pushToCSSRules(eo,to,ro,no,oo){var io;let so;to==="m"&&oo&&(so={m:oo}),(io=eo[to])!==null&&io!==void 0||(eo[to]=[]),ro&&eo[to].push(createBucketEntry(ro,so)),no&&eo[to].push(createBucketEntry(no,so))}function resolveStyleRules(eo,to=[],ro="",no="",oo="",io="",so={},ao={},lo){for(const uo in eo){if(UNSUPPORTED_CSS_PROPERTIES.hasOwnProperty(uo)){eo[uo];continue}const co=eo[uo];if(co!=null){if(typeof co=="string"||typeof co=="number"){const fo=trimSelector(to.join("")),po=hashPropertyKey(fo,io,ro,oo,uo),ho=hashClassName({container:io,media:ro,layer:no,value:co.toString(),support:oo,selector:fo,property:uo}),mo=lo&&{key:uo,value:lo}||convertProperty(uo,co),vo=mo.key!==uo||mo.value!==co,bo=vo?hashClassName({container:io,value:mo.value.toString(),property:mo.key,selector:fo,media:ro,layer:no,support:oo}):void 0,xo=vo?{rtlClassName:bo,rtlProperty:mo.key,rtlValue:mo.value}:void 0,_o=getStyleBucketName(to,no,ro,oo,io),[So,Eo]=compileAtomicCSSRule({className:ho,media:ro,layer:no,selectors:to,property:uo,support:oo,container:io,value:co,...xo});pushToClassesMap(so,po,ho,bo),pushToCSSRules(ao,_o,So,Eo,ro)}else if(uo==="animationName"){const fo=Array.isArray(co)?co:[co],po=[],ho=[];for(const mo of fo){const vo=compileKeyframeRule(mo),bo=compileKeyframeRule(convert(mo)),xo=HASH_PREFIX+murmur2(vo);let _o;const So=compileKeyframesCSS(xo,vo);let Eo=[];vo===bo?_o=xo:(_o=HASH_PREFIX+murmur2(bo),Eo=compileKeyframesCSS(_o,bo));for(let ko=0;ko(wo??"").toString()).join(";"),support:oo,selector:fo,property:uo}),mo=co.map(wo=>convertProperty(uo,wo));if(!!mo.some(wo=>wo.key!==mo[0].key))continue;const bo=mo[0].key!==uo||mo.some((wo,Co)=>wo.value!==co[Co]),xo=bo?hashClassName({container:io,value:mo.map(wo=>{var Co;return((Co=wo==null?void 0:wo.value)!==null&&Co!==void 0?Co:"").toString()}).join(";"),property:mo[0].key,selector:fo,layer:no,media:ro,support:oo}):void 0,_o=bo?{rtlClassName:xo,rtlProperty:mo[0].key,rtlValue:mo.map(wo=>wo.value)}:void 0,So=getStyleBucketName(to,no,ro,oo,io),[Eo,ko]=compileAtomicCSSRule({className:ho,media:ro,layer:no,selectors:to,property:uo,support:oo,container:io,value:co,..._o});pushToClassesMap(so,po,ho,xo),pushToCSSRules(ao,So,Eo,ko,ro)}else if(isObject$h(co))if(isNestedSelector(uo))resolveStyleRules(co,to.concat(normalizeNestedProperty(uo)),ro,no,oo,io,so,ao);else if(isMediaQuerySelector(uo)){const fo=generateCombinedQuery(ro,uo.slice(6).trim());resolveStyleRules(co,to,fo,no,oo,io,so,ao)}else if(isLayerSelector(uo)){const fo=(no?`${no}.`:"")+uo.slice(6).trim();resolveStyleRules(co,to,ro,fo,oo,io,so,ao)}else if(isSupportQuerySelector(uo)){const fo=generateCombinedQuery(oo,uo.slice(9).trim());resolveStyleRules(co,to,ro,no,fo,io,so,ao)}else if(isContainerQuerySelector(uo)){const fo=uo.slice(10).trim();resolveStyleRules(co,to,ro,no,oo,fo,so,ao)}else warnAboutUnresolvedRule(uo,co)}}return[so,ao]}function resolveStyleRulesForSlots(eo){const to={},ro={};for(const no in eo){const oo=eo[no],[io,so]=resolveStyleRules(oo);to[no]=io,Object.keys(so).forEach(ao=>{ro[ao]=(ro[ao]||[]).concat(so[ao])})}return[to,ro]}function makeStyles$1(eo,to=insertionFactory$1){const ro=to();let no=null,oo=null,io=null,so=null;function ao(lo){const{dir:uo,renderer:co}=lo;no===null&&([no,oo]=resolveStyleRulesForSlots(eo));const fo=uo==="ltr";return fo?io===null&&(io=reduceToClassNameForSlots(no,uo)):so===null&&(so=reduceToClassNameForSlots(no,uo)),ro(co,oo),fo?io:so}return ao}function __styles$1(eo,to,ro=insertionFactory$1){const no=ro();let oo=null,io=null;function so(ao){const{dir:lo,renderer:uo}=ao,co=lo==="ltr";return co?oo===null&&(oo=reduceToClassNameForSlots(eo,lo)):io===null&&(io=reduceToClassNameForSlots(eo,lo)),no(uo,to),co?oo:io}return so}function __resetStyles$1(eo,to,ro,no=insertionFactory$1){const oo=no();function io(so){const{dir:ao,renderer:lo}=so,uo=ao==="ltr"?eo:to||eo;return oo(lo,Array.isArray(ro)?{r:ro}:ro),uo}return io}const shorthands={border,borderLeft,borderBottom,borderRight,borderTop,borderColor,borderStyle,borderRadius:borderRadius$1,borderWidth:borderWidth$1,flex,gap,gridArea,margin,marginBlock,marginInline,padding,paddingBlock,paddingInline,overflow,inset,outline,transition:transition$1,textDecoration};function canUseDOM$4(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const useInsertionEffect$2=React$1.useInsertionEffect?React$1.useInsertionEffect:void 0,insertionFactory=()=>{const eo={};return function(ro,no){if(useInsertionEffect$2&&canUseDOM$4()){useInsertionEffect$2(()=>{ro.insertCSSRules(no)},[ro,no]);return}eo[ro.id]===void 0&&(ro.insertCSSRules(no),eo[ro.id]=!0)}},RendererContext=reactExports.createContext(createDOMRenderer());function useRenderer(){return reactExports.useContext(RendererContext)}const TextDirectionContext=reactExports.createContext("ltr"),TextDirectionProvider=({children:eo,dir:to})=>reactExports.createElement(TextDirectionContext.Provider,{value:to},eo);function useTextDirection(){return reactExports.useContext(TextDirectionContext)}function makeStyles(eo){const to=makeStyles$1(eo,insertionFactory);return function(){const no=useTextDirection(),oo=useRenderer();return to({dir:no,renderer:oo})}}function __styles(eo,to){const ro=__styles$1(eo,to,insertionFactory);return function(){const oo=useTextDirection(),io=useRenderer();return ro({dir:oo,renderer:io})}}function __resetStyles(eo,to,ro){const no=__resetStyles$1(eo,to,ro,insertionFactory);return function(){const io=useTextDirection(),so=useRenderer();return no({dir:io,renderer:so})}}function createCSSRuleFromTheme(eo,to){if(to){const ro=Object.keys(to).reduce((no,oo)=>`${no}--${oo}: ${to[oo]}; `,"");return`${eo} { ${ro} }`}return`${eo} {}`}const SLOT_RENDER_FUNCTION_SYMBOL=Symbol("fui.slotRenderFunction"),SLOT_ELEMENT_TYPE_SYMBOL=Symbol("fui.slotElementType");function always(eo,to){const{defaultProps:ro,elementType:no}=to,oo=resolveShorthand(eo),io={...ro,...oo,[SLOT_ELEMENT_TYPE_SYMBOL]:no};return oo&&typeof oo.children=="function"&&(io[SLOT_RENDER_FUNCTION_SYMBOL]=oo.children,io.children=ro==null?void 0:ro.children),io}function optional(eo,to){if(!(eo===null||eo===void 0&&!to.renderByDefault))return always(eo,to)}function resolveShorthand(eo){return typeof eo=="string"||typeof eo=="number"||Array.isArray(eo)||reactExports.isValidElement(eo)?{children:eo}:eo}function isSlot(eo){return!!(eo!=null&&eo.hasOwnProperty(SLOT_ELEMENT_TYPE_SYMBOL))}function isResolvedShorthand(eo){return eo!==null&&typeof eo=="object"&&!Array.isArray(eo)&&!reactExports.isValidElement(eo)}const toObjectMap$1=(...eo)=>{const to={};for(const ro of eo){const no=Array.isArray(ro)?ro:Object.keys(ro);for(const oo of no)to[oo]=1}return to},baseElementEvents$1=toObjectMap$1(["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"]),baseElementProperties$1=toObjectMap$1(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),microdataProperties=toObjectMap$1(["itemID","itemProp","itemRef","itemScope","itemType"]),htmlElementProperties$1=toObjectMap$1(baseElementProperties$1,baseElementEvents$1,microdataProperties),labelProperties=toObjectMap$1(htmlElementProperties$1,["form"]),audioProperties$1=toObjectMap$1(htmlElementProperties$1,["height","loop","muted","preload","src","width"]),videoProperties=toObjectMap$1(audioProperties$1,["poster"]),olProperties=toObjectMap$1(htmlElementProperties$1,["start"]),liProperties=toObjectMap$1(htmlElementProperties$1,["value"]),anchorProperties$1=toObjectMap$1(htmlElementProperties$1,["download","href","hrefLang","media","rel","target","type"]),timeProperties=toObjectMap$1(htmlElementProperties$1,["dateTime"]),buttonProperties$1=toObjectMap$1(htmlElementProperties$1,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),inputProperties=toObjectMap$1(buttonProperties$1,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),textAreaProperties=toObjectMap$1(buttonProperties$1,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),selectProperties=toObjectMap$1(buttonProperties$1,["form","multiple","required"]),optionProperties=toObjectMap$1(htmlElementProperties$1,["selected","value"]),tableProperties=toObjectMap$1(htmlElementProperties$1,["cellPadding","cellSpacing"]),trProperties=htmlElementProperties$1,thProperties=toObjectMap$1(htmlElementProperties$1,["colSpan","rowSpan","scope"]),tdProperties=toObjectMap$1(htmlElementProperties$1,["colSpan","headers","rowSpan","scope"]),colGroupProperties=toObjectMap$1(htmlElementProperties$1,["span"]),colProperties=toObjectMap$1(htmlElementProperties$1,["span"]),fieldsetProperties=toObjectMap$1(htmlElementProperties$1,["disabled","form"]),formProperties=toObjectMap$1(htmlElementProperties$1,["acceptCharset","action","encType","encType","method","noValidate","target"]),iframeProperties=toObjectMap$1(htmlElementProperties$1,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),imgProperties$1=toObjectMap$1(htmlElementProperties$1,["alt","crossOrigin","height","src","srcSet","useMap","width"]),dialogProperties=toObjectMap$1(htmlElementProperties$1,["open","onCancel","onClose"]);function getNativeProps$1(eo,to,ro){const no=Array.isArray(to),oo={},io=Object.keys(eo);for(const so of io)(!no&&to[so]||no&&to.indexOf(so)>=0||so.indexOf("data-")===0||so.indexOf("aria-")===0)&&(!ro||(ro==null?void 0:ro.indexOf(so))===-1)&&(oo[so]=eo[so]);return oo}const nativeElementMap={label:labelProperties,audio:audioProperties$1,video:videoProperties,ol:olProperties,li:liProperties,a:anchorProperties$1,button:buttonProperties$1,input:inputProperties,textarea:textAreaProperties,select:selectProperties,option:optionProperties,table:tableProperties,tr:trProperties,th:thProperties,td:tdProperties,colGroup:colGroupProperties,col:colProperties,fieldset:fieldsetProperties,form:formProperties,iframe:iframeProperties,img:imgProperties$1,time:timeProperties,dialog:dialogProperties};function getNativeElementProps(eo,to,ro){const no=eo&&nativeElementMap[eo]||htmlElementProperties$1;return no.as=1,getNativeProps$1(to,no,ro)}const getPartitionedNativeProps=({primarySlotTagName:eo,props:to,excludedPropNames:ro})=>({root:{style:to.style,className:to.className},primary:getNativeElementProps(eo,to,[...ro||[],"style","className"])}),getIntrinsicElementProps=(eo,to,ro)=>{var no;return getNativeElementProps((no=to.as)!==null&&no!==void 0?no:eo,to,ro)};function canUseDOM$3(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}function useBrowserTimer(eo,to){const ro=reactExports.useRef(void 0),no=reactExports.useCallback((io,so)=>(ro.current!==void 0&&to(ro.current),ro.current=eo(io,so),ro.current),[to,eo]),oo=reactExports.useCallback(()=>{ro.current!==void 0&&(to(ro.current),ro.current=void 0)},[to]);return reactExports.useEffect(()=>oo,[oo]),[no,oo]}const setAnimationFrameNoop=eo=>(eo(0),0),cancelAnimationFrameNoop=eo=>eo;function useAnimationFrame(){const eo=canUseDOM$3();return useBrowserTimer(eo?requestAnimationFrame:setAnimationFrameNoop,eo?cancelAnimationFrame:cancelAnimationFrameNoop)}function isFactoryDispatch(eo){return typeof eo=="function"}const useControllableState=eo=>{const[to,ro]=reactExports.useState(()=>eo.defaultState===void 0?eo.initialState:isInitializer(eo.defaultState)?eo.defaultState():eo.defaultState),no=reactExports.useRef(eo.state);reactExports.useEffect(()=>{no.current=eo.state},[eo.state]);const oo=reactExports.useCallback(io=>{isFactoryDispatch(io)&&io(no.current)},[]);return useIsControlled(eo.state)?[eo.state,oo]:[to,ro]};function isInitializer(eo){return typeof eo=="function"}const useIsControlled=eo=>{const[to]=reactExports.useState(()=>eo!==void 0);return to},defaultSSRContextValue={current:0},SSRContext=reactExports.createContext(void 0);function useSSRContext(){var eo;return(eo=reactExports.useContext(SSRContext))!==null&&eo!==void 0?eo:defaultSSRContextValue}function useIsSSR(){const eo=useSSRContext()!==defaultSSRContextValue,[to,ro]=reactExports.useState(eo);return canUseDOM$3()&&eo&&reactExports.useLayoutEffect(()=>{ro(!1)},[]),to}const useIsomorphicLayoutEffect$1=canUseDOM$3()?reactExports.useLayoutEffect:reactExports.useEffect,useEventCallback$3=eo=>{const to=reactExports.useRef(()=>{throw new Error("Cannot call an event handler while rendering")});return useIsomorphicLayoutEffect$1(()=>{to.current=eo},[eo]),reactExports.useCallback((...ro)=>{const no=to.current;return no(...ro)},[to])};function useFirstMount(){const eo=reactExports.useRef(!0);return eo.current?(eo.current=!1,!0):eo.current}const IdPrefixContext=reactExports.createContext(void 0);IdPrefixContext.Provider;function useIdPrefix(){return reactExports.useContext(IdPrefixContext)||""}function useId$1(eo="fui-",to){const ro=useSSRContext(),no=useIdPrefix(),oo=React$1.useId;if(oo){const io=oo(),so=reactExports.useMemo(()=>io.replace(/:/g,""),[io]);return to||`${no}${eo}${so}`}return reactExports.useMemo(()=>to||`${no}${eo}${++ro.current}`,[no,eo,to,ro])}function useMergedRefs$1(...eo){const to=reactExports.useCallback(ro=>{to.current=ro;for(const no of eo)typeof no=="function"?no(ro):no&&(no.current=ro)},[...eo]);return to}const ThemeContext$2=reactExports.createContext(void 0),ThemeProvider=ThemeContext$2.Provider,ThemeClassNameContext=reactExports.createContext(void 0),themeClassNameContextDefaultVaue="",ThemeClassNameProvider=ThemeClassNameContext.Provider;function useThemeClassName(){var eo;return(eo=reactExports.useContext(ThemeClassNameContext))!==null&&eo!==void 0?eo:themeClassNameContextDefaultVaue}const TooltipVisibilityContext=reactExports.createContext(void 0),tooltipVisibilityContextDefaultValue={},TooltipVisibilityProvider=TooltipVisibilityContext.Provider;function useTooltipVisibility(){var eo;return(eo=reactExports.useContext(TooltipVisibilityContext))!==null&&eo!==void 0?eo:tooltipVisibilityContextDefaultValue}const ProviderContext=reactExports.createContext(void 0),providerContextDefaultValue={targetDocument:typeof document=="object"?document:void 0,dir:"ltr"},Provider$1=ProviderContext.Provider;function useFluent(){var eo;return(eo=reactExports.useContext(ProviderContext))!==null&&eo!==void 0?eo:providerContextDefaultValue}const OverridesContext=reactExports.createContext(void 0),OverridesProvider=OverridesContext.Provider;function useOverrides(){var eo;return(eo=reactExports.useContext(OverridesContext))!==null&&eo!==void 0?eo:{}}const CustomStyleHooksContext=reactExports.createContext(void 0),noop$6=()=>{},CustomStyleHooksProvider=CustomStyleHooksContext.Provider,useCustomStyleHook=eo=>{var to,ro;return(ro=(to=reactExports.useContext(CustomStyleHooksContext))===null||to===void 0?void 0:to[eo])!==null&&ro!==void 0?ro:noop$6},BackgroundAppearanceContext=reactExports.createContext(void 0);BackgroundAppearanceContext.Provider;function useBackgroundAppearance(){return reactExports.useContext(BackgroundAppearanceContext)}const PortalMountNodeContext=reactExports.createContext(void 0);PortalMountNodeContext.Provider;function usePortalMountNode$1(){return reactExports.useContext(PortalMountNodeContext)}const AnnounceContext=reactExports.createContext(void 0);AnnounceContext.Provider;function useAnnounce(){var eo;return(eo=reactExports.useContext(AnnounceContext))!==null&&eo!==void 0?eo:{announce:()=>{}}}const DEFAULT_CONTAINS=(eo,to)=>!!(eo!=null&&eo.contains(to)),useOnClickOutside=eo=>{const{targetDocument:to}=useFluent(),ro=to==null?void 0:to.defaultView,{refs:no,callback:oo,element:io,disabled:so,disabledFocusOnIframe:ao,contains:lo=DEFAULT_CONTAINS}=eo,uo=reactExports.useRef(void 0);useIFrameFocus({element:io,disabled:ao||so,callback:oo,refs:no,contains:lo});const co=reactExports.useRef(!1),fo=useEventCallback$3(ho=>{if(co.current){co.current=!1;return}const mo=ho.composedPath()[0];no.every(bo=>!lo(bo.current||null,mo))&&!so&&oo(ho)}),po=useEventCallback$3(ho=>{co.current=no.some(mo=>lo(mo.current||null,ho.target))});reactExports.useEffect(()=>{if(so)return;let ho=getWindowEvent(ro);const mo=vo=>{if(vo===ho){ho=void 0;return}fo(vo)};return io==null||io.addEventListener("click",mo,!0),io==null||io.addEventListener("touchstart",mo,!0),io==null||io.addEventListener("contextmenu",mo,!0),io==null||io.addEventListener("mousedown",po,!0),uo.current=ro==null?void 0:ro.setTimeout(()=>{ho=void 0},1),()=>{io==null||io.removeEventListener("click",mo,!0),io==null||io.removeEventListener("touchstart",mo,!0),io==null||io.removeEventListener("contextmenu",mo,!0),io==null||io.removeEventListener("mousedown",po,!0),ro==null||ro.clearTimeout(uo.current),ho=void 0}},[fo,io,so,po,ro])},getWindowEvent=eo=>{if(eo){var to,ro;if(typeof eo.window=="object"&&eo.window===eo)return eo.event;var no;return(no=(ro=eo.ownerDocument)===null||ro===void 0||(to=ro.defaultView)===null||to===void 0?void 0:to.event)!==null&&no!==void 0?no:void 0}},FUI_FRAME_EVENT="fuiframefocus",useIFrameFocus=eo=>{const{disabled:to,element:ro,callback:no,contains:oo=DEFAULT_CONTAINS,pollDuration:io=1e3,refs:so}=eo,ao=reactExports.useRef(),lo=useEventCallback$3(uo=>{so.every(fo=>!oo(fo.current||null,uo.target))&&!to&&no(uo)});reactExports.useEffect(()=>{if(!to)return ro==null||ro.addEventListener(FUI_FRAME_EVENT,lo,!0),()=>{ro==null||ro.removeEventListener(FUI_FRAME_EVENT,lo,!0)}},[ro,to,lo]),reactExports.useEffect(()=>{var uo;if(!to)return ao.current=ro==null||(uo=ro.defaultView)===null||uo===void 0?void 0:uo.setInterval(()=>{const co=ro==null?void 0:ro.activeElement;if((co==null?void 0:co.tagName)==="IFRAME"||(co==null?void 0:co.tagName)==="WEBVIEW"){const fo=new CustomEvent(FUI_FRAME_EVENT,{bubbles:!0});co.dispatchEvent(fo)}},io),()=>{var co;ro==null||(co=ro.defaultView)===null||co===void 0||co.clearTimeout(ao.current)}},[ro,to,io])},useOnScrollOutside=eo=>{const{refs:to,callback:ro,element:no,disabled:oo,contains:io}=eo,so=useEventCallback$3(ao=>{const lo=io||((fo,po)=>!!(fo!=null&&fo.contains(po))),uo=ao.composedPath()[0];to.every(fo=>!lo(fo.current||null,uo))&&!oo&&ro(ao)});reactExports.useEffect(()=>{if(!oo)return no==null||no.addEventListener("wheel",so),no==null||no.addEventListener("touchmove",so),()=>{no==null||no.removeEventListener("wheel",so),no==null||no.removeEventListener("touchmove",so)}},[so,no,oo])};function useTimeout(){return useBrowserTimer(setTimeout,clearTimeout)}function mergeCallbacks(eo,to){return(...ro)=>{eo==null||eo(...ro),to==null||to(...ro)}}function isHTMLElement$6(eo,to){var ro;const no=eo;var oo;return!!(!(no==null||(ro=no.ownerDocument)===null||ro===void 0)&&ro.defaultView&&no instanceof no.ownerDocument.defaultView[(oo=to==null?void 0:to.constructorName)!==null&&oo!==void 0?oo:"HTMLElement"])}function isFluentTrigger(eo){return!!eo.type.isFluentTriggerComponent}function applyTriggerPropsToChildren(eo,to){return typeof eo=="function"?eo(to):eo?cloneTriggerTree(eo,to):eo||null}function cloneTriggerTree(eo,to){if(!reactExports.isValidElement(eo)||eo.type===reactExports.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(isFluentTrigger(eo)){const ro=cloneTriggerTree(eo.props.children,to);return reactExports.cloneElement(eo,void 0,ro)}else return reactExports.cloneElement(eo,to)}function getTriggerChild(eo){return reactExports.isValidElement(eo)?isFluentTrigger(eo)?getTriggerChild(eo.props.children):eo:null}function isVirtualElement$1(eo){return eo&&!!eo._virtual}function getVirtualParent$1(eo){return isVirtualElement$1(eo)&&eo._virtual.parent||null}function getParent$1(eo,to={}){if(!eo)return null;if(!to.skipVirtual){const ro=getVirtualParent$1(eo);if(ro)return ro}return(eo==null?void 0:eo.parentNode)||null}function elementContains$1(eo,to){if(!eo||!to)return!1;if(eo===to)return!0;{const ro=new WeakSet;for(;to;){const no=getParent$1(to,{skipVirtual:ro.has(to)});if(ro.add(to),no===eo)return!0;to=no}}return!1}function setVirtualParent$1(eo,to){if(!eo)return;const ro=eo;ro._virtual||(ro._virtual={}),ro._virtual.parent=to}function createCompatSlotComponent(eo,to){return{...to,[SLOT_ELEMENT_TYPE_SYMBOL]:eo}}function createJSX(eo,to){return function(no,oo,io,so,ao){return isSlot(oo)?to(createCompatSlotComponent(no,oo),null,io,so,ao):isSlot(no)?to(no,oo,io,so,ao):eo(no,oo,io,so,ao)}}function getMetadataFromSlotComponent(eo){const{as:to,[SLOT_ELEMENT_TYPE_SYMBOL]:ro,[SLOT_RENDER_FUNCTION_SYMBOL]:no,...oo}=eo,io=oo,so=typeof ro=="string"?to??ro:ro;return typeof so!="string"&&to&&(io.as=to),{elementType:so,props:io,renderFunction:no}}const Runtime=ReactRuntime,jsxSlot=(eo,to,ro)=>{const{elementType:no,renderFunction:oo,props:io}=getMetadataFromSlotComponent(eo),so={...io,...to};return oo?Runtime.jsx(reactExports.Fragment,{children:oo(no,so)},ro):Runtime.jsx(no,so,ro)},jsxsSlot=(eo,to,ro)=>{const{elementType:no,renderFunction:oo,props:io}=getMetadataFromSlotComponent(eo),so={...io,...to};return oo?Runtime.jsx(reactExports.Fragment,{children:oo(no,{...so,children:Runtime.jsxs(reactExports.Fragment,{children:so.children},void 0)})},ro):Runtime.jsxs(no,so,ro)},jsx$1=createJSX(Runtime.jsx,jsxSlot),jsxs=createJSX(Runtime.jsxs,jsxsSlot),IconDirectionContext=reactExports.createContext(void 0),IconDirectionContextDefaultValue={},IconDirectionContextProvider=IconDirectionContext.Provider,useIconContext=()=>reactExports.useContext(IconDirectionContext)?reactExports.useContext(IconDirectionContext):IconDirectionContextDefaultValue,useRootStyles$7=__styles({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;}}"]}),useIconState=(eo,to)=>{const{title:ro,primaryFill:no="currentColor",...oo}=eo,io={...oo,title:void 0,fill:no},so=useRootStyles$7(),ao=useIconContext();return io.className=mergeClasses(so.root,(to==null?void 0:to.flipInRtl)&&(ao==null?void 0:ao.textDirection)==="rtl"&&so.rtl,io.className),ro&&(io["aria-label"]=ro),!io["aria-label"]&&!io["aria-labelledby"]?io["aria-hidden"]=!0:io.role="img",io},createFluentIcon=(eo,to,ro,no)=>{const oo=to==="1em"?"20":to,io=reactExports.forwardRef((so,ao)=>{const lo={...useIconState(so,{flipInRtl:no==null?void 0:no.flipInRtl}),ref:ao,width:to,height:to,viewBox:`0 0 ${oo} ${oo}`,xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement("svg",lo,...ro.map(uo=>reactExports.createElement("path",{d:uo,fill:lo.fill})))});return io.displayName=eo,io},CheckmarkFilled=createFluentIcon("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"]),CheckmarkCircleFilled=createFluentIcon("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"]),ChevronDownRegular=createFluentIcon("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"]),ChevronRightRegular=createFluentIcon("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"]),CircleFilled=createFluentIcon("CircleFilled","1em",["M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z"]),ErrorCircleFilled=createFluentIcon("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"]),FlowchartRegular=createFluentIcon("FlowchartRegular","1em",["M4.5 3C3.67 3 3 3.67 3 4.5v2C3 7.33 3.67 8 4.5 8H5v3.84a1 1 0 0 0-.2.16L3 13.8a1 1 0 0 0 0 1.4L4.8 17a1 1 0 0 0 1.4 0L8 15.2a1 1 0 0 0 .16-.2H12v.5c0 .83.67 1.5 1.5 1.5h2c.83 0 1.5-.67 1.5-1.5v-2c0-.83-.67-1.5-1.5-1.5h-2c-.83 0-1.5.67-1.5 1.5v.5H8.16a1 1 0 0 0-.16-.2L6.2 12a1 1 0 0 0-.2-.16V8h.5C7.33 8 8 7.33 8 6.5v-2C8 3.67 7.33 3 6.5 3h-2ZM4 4.5c0-.28.22-.5.5-.5h2c.28 0 .5.22.5.5v2a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5v-2Zm-.3 10 1.8-1.8 1.8 1.8-1.8 1.8-1.8-1.8Zm9.8-1.5h2c.28 0 .5.22.5.5v2a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5v-2c0-.28.22-.5.5-.5Z"]),InfoFilled=createFluentIcon("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"]),WarningFilled=createFluentIcon("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"]),Alert24Regular=createFluentIcon("Alert24Regular","24",["M12 2a7.5 7.5 0 0 1 7.5 7.25v4.35l1.38 3.15a1.25 1.25 0 0 1-1.15 1.75H15a3 3 0 0 1-6 .18v-.18H4.27a1.25 1.25 0 0 1-1.14-1.75L4.5 13.6V9.5C4.5 5.35 7.85 2 12 2Zm1.5 16.5h-3a1.5 1.5 0 0 0 3 .15v-.15ZM12 3.5c-3.32 0-6 2.67-6 6v4.4L4.66 17h14.7L18 13.9V9.29a5.99 5.99 0 0 0-6-5.78Z"]),ArrowClockwise16Regular=createFluentIcon("ArrowClockwise16Regular","16",["M3 8a5 5 0 0 1 9-3H9.5a.5.5 0 0 0 0 1h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-1 0v1.03A6 6 0 1 0 14 8a.5.5 0 0 0-1 0A5 5 0 0 1 3 8Z"]),ArrowClockwiseDashes20Filled=createFluentIcon("ArrowClockwiseDashes20Filled","20",["M8.44 2.15a8.03 8.03 0 0 1 3.12 0 .75.75 0 0 1-.3 1.47 6.54 6.54 0 0 0-2.53 0 .75.75 0 0 1-.29-1.47Zm4.96 1.4a.75.75 0 0 1 1.05-.2c.57.38 1.1.84 1.55 1.36V2.75a.75.75 0 0 1 1.5 0v4c0 .41-.34.75-.75.75h-4a.75.75 0 0 1 0-1.5h2.37a6.54 6.54 0 0 0-1.5-1.4.75.75 0 0 1-.21-1.05ZM6.4 4.6a.75.75 0 0 0-.84-1.24 8.04 8.04 0 0 0-2.2 2.2.75.75 0 0 0 1.24.84 6.54 6.54 0 0 1 1.8-1.8ZM3.03 7.85c.41.08.67.47.6.88a6.54 6.54 0 0 0 0 2.54.75.75 0 0 1-1.48.29 8.04 8.04 0 0 1 0-3.12c.08-.4.48-.67.88-.6ZM18 10v-.25a.75.75 0 0 0-1.5 0V10c0 .44-.04.86-.12 1.27a.75.75 0 1 0 1.47.29c.1-.5.15-1.03.15-1.56ZM3.55 13.4a.75.75 0 0 1 1.04.21c.48.71 1.09 1.32 1.8 1.8a.75.75 0 0 1-.84 1.24 8.04 8.04 0 0 1-2.2-2.2.75.75 0 0 1 .2-1.04Zm13.1 1.05a.75.75 0 0 0-1.24-.84 6.54 6.54 0 0 1-1.8 1.8.75.75 0 0 0 .84 1.24 8.04 8.04 0 0 0 2.2-2.2Zm-8.8 2.52c.08-.41.47-.67.88-.6a6.54 6.54 0 0 0 2.54 0 .75.75 0 1 1 .29 1.48 8.03 8.03 0 0 1-3.12 0 .75.75 0 0 1-.6-.88Z"]),ArrowDown20Regular=createFluentIcon("ArrowDown20Regular","20",["M16.87 10.84a.5.5 0 1 0-.74-.68l-5.63 6.17V2.5a.5.5 0 0 0-1 0v13.83l-5.63-6.17a.5.5 0 0 0-.74.68l6.31 6.91a.75.75 0 0 0 1.11 0l6.32-6.91Z"]),ArrowUp20Regular=createFluentIcon("ArrowUp20Regular","20",["M3.13 9.16a.5.5 0 1 0 .74.68L9.5 3.67V17.5a.5.5 0 1 0 1 0V3.67l5.63 6.17a.5.5 0 0 0 .74-.68l-6.32-6.92a.75.75 0 0 0-1.1 0L3.13 9.16Z"]),ArrowUpload24Regular=createFluentIcon("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"]),Attach16Regular=createFluentIcon("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"]),BranchRequest16Regular=createFluentIcon("BranchRequest16Regular","16",["M13 10.05V5.5A2.5 2.5 0 0 0 10.5 3H8.71l1.14-1.15c.2-.19.2-.51 0-.7a.48.48 0 0 0-.7 0l-2 2c-.2.19-.2.51 0 .7l2 2c.19.2.51.2.7 0 .2-.19.2-.51 0-.7L8.71 4h1.79c.83 0 1.5.67 1.5 1.5v4.55a2.5 2.5 0 1 0 1 0ZM12.5 14a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3ZM6 3.5a2.5 2.5 0 1 0-3 2.45v4.1a2.5 2.5 0 1 0 1 0v-4.1A2.5 2.5 0 0 0 6 3.5Zm-4 0a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Zm3 9a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z"]),Checkmark12Filled=createFluentIcon("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"]),CheckmarkCircle20Filled=createFluentIcon("CheckmarkCircle20Filled","20",["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"]),ChevronDown16Filled=createFluentIcon("ChevronDown16Filled","16",["M3.2 5.74a.75.75 0 0 1 1.06-.04L8 9.23l3.74-3.53a.75.75 0 1 1 1.02 1.1l-4.25 4a.75.75 0 0 1-1.02 0l-4.25-4a.75.75 0 0 1-.04-1.06Z"]),ChevronDown16Regular=createFluentIcon("ChevronDown16Regular","16",["M3.15 5.65c.2-.2.5-.2.7 0L8 9.79l4.15-4.14a.5.5 0 0 1 .7.7l-4.5 4.5a.5.5 0 0 1-.7 0l-4.5-4.5a.5.5 0 0 1 0-.7Z"]),ChevronDown20Regular=createFluentIcon("ChevronDown20Regular","20",["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"]),ChevronLeft12Regular=createFluentIcon("ChevronLeft12Regular","12",["M7.35 2.15c.2.2.2.5 0 .7L4.21 6l3.14 3.15a.5.5 0 1 1-.7.7l-3.5-3.5a.5.5 0 0 1 0-.7l3.5-3.5c.2-.2.5-.2.7 0Z"]),ChevronLeft16Regular=createFluentIcon("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"]),ChevronLeft20Regular=createFluentIcon("ChevronLeft20Regular","20",["M12.35 15.85a.5.5 0 0 1-.7 0L6.16 10.4a.55.55 0 0 1 0-.78l5.49-5.46a.5.5 0 1 1 .7.7L7.2 10l5.16 5.15c.2.2.2.5 0 .7Z"]),ChevronRight12Regular=createFluentIcon("ChevronRight12Regular","12",["M4.65 2.15a.5.5 0 0 0 0 .7L7.79 6 4.65 9.15a.5.5 0 1 0 .7.7l3.5-3.5a.5.5 0 0 0 0-.7l-3.5-3.5a.5.5 0 0 0-.7 0Z"]),ChevronRight16Filled=createFluentIcon("ChevronRight16Filled","16",["M5.74 3.2a.75.75 0 0 0-.04 1.06L9.23 8 5.7 11.74a.75.75 0 1 0 1.1 1.02l4-4.25a.75.75 0 0 0 0-1.02l-4-4.25a.75.75 0 0 0-1.06-.04Z"]),ChevronRight16Regular=createFluentIcon("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"]),ChevronRight20Regular=createFluentIcon("ChevronRight20Regular","20",["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"]),Clock20Regular=createFluentIcon("Clock20Regular","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm-.5 2a.5.5 0 0 1 .5.41V10h2.5a.5.5 0 0 1 .09 1H9.5a.5.5 0 0 1-.5-.41V5.5c0-.28.22-.5.5-.5Z"]),Copy20Regular=createFluentIcon("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"]),CopyArrowRight20Regular=createFluentIcon("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"]),Dismiss20Regular=createFluentIcon("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"]),Dismiss24Regular=createFluentIcon("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"]),DismissCircle20Filled=createFluentIcon("DismissCircle20Filled","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16ZM7.8 7.11a.5.5 0 0 0-.63.06l-.06.07a.5.5 0 0 0 .06.64L9.3 10l-2.12 2.12-.06.07a.5.5 0 0 0 .06.64l.07.06c.2.13.47.11.64-.06L10 10.7l2.12 2.12.07.06c.2.13.46.11.64-.06l.06-.07a.5.5 0 0 0-.06-.64L10.7 10l2.12-2.12.06-.07a.5.5 0 0 0-.06-.64l-.07-.06a.5.5 0 0 0-.64.06L10 9.3 7.88 7.17l-.07-.06Z"]),Document16Regular=createFluentIcon("Document16Regular","16",["M5 1a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h6a2 2 0 0 0 2-2V5.41c0-.4-.16-.78-.44-1.06L9.65 1.44A1.5 1.5 0 0 0 8.59 1H5ZM4 3a1 1 0 0 1 1-1h3v2.5C8 5.33 8.67 6 9.5 6H12v7a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V3Zm7.8 2H9.5a.5.5 0 0 1-.5-.5V2.2L11.8 5Z"]),ErrorCircle16Filled=createFluentIcon("ErrorCircle16Filled","16",["M8 2a6 6 0 1 1 0 12A6 6 0 0 1 8 2Zm0 8a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0-5.5a.5.5 0 0 0-.5.41V8.59a.5.5 0 0 0 1 0V4.91A.5.5 0 0 0 8 4.5Z"]),ErrorCircle20Filled=createFluentIcon("ErrorCircle20Filled","20",["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"]),Flow16Regular=createFluentIcon("Flow16Regular","16",["M12.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Zm-2.45 2a2.5 2.5 0 1 0 0-1H9.5a2 2 0 0 0-2 2v2a1 1 0 0 1-1 1h-.55a2.5 2.5 0 1 0 0 1h.55a2 2 0 0 0 2-2V7a1 1 0 0 1 1-1h.55ZM5 10.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z"]),GanttChart20Regular=createFluentIcon("GanttChart20Regular","20",["M4.5 7a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1h-4ZM9 9.5c0-.28.22-.5.5-.5h4a.5.5 0 0 1 0 1h-4a.5.5 0 0 1-.5-.5Zm3.5 1.5a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1h-3Zm-8-7A2.5 2.5 0 0 0 2 6.5v7A2.5 2.5 0 0 0 4.5 16h11a2.5 2.5 0 0 0 2.5-2.5v-7A2.5 2.5 0 0 0 15.5 4h-11ZM3 6.5C3 5.67 3.67 5 4.5 5H7v1h1V5h4v3h1V5h2.5c.83 0 1.5.67 1.5 1.5v7c0 .83-.67 1.5-1.5 1.5H13v-2h-1v2H8V9H7v6H4.5A1.5 1.5 0 0 1 3 13.5v-7Z"]),HexagonThree16Regular=createFluentIcon("HexagonThree16Regular","16",["M3.47 2a1 1 0 0 1 .87-.5h2.32a1 1 0 0 1 .87.5l1.16 2a1 1 0 0 1 0 1L7.53 7a1 1 0 0 1-.87.5H4.34a1 1 0 0 1-.87-.5L2.31 5a1 1 0 0 1 0-1l1.16-2Zm3.2.5H4.33l-1.16 2 1.16 2h2.32l1.16-2-1.16-2ZM3.46 9a1 1 0 0 1 .87-.5h2.32a1 1 0 0 1 .87.5l1.16 2a1 1 0 0 1 0 1l-1.16 2a1 1 0 0 1-.87.5H4.34a1 1 0 0 1-.87-.5l-1.16-2a1 1 0 0 1 0-1l1.16-2Zm3.2.5H4.33l-1.16 2 1.16 2h2.32l1.16-2-1.16-2ZM10.33 5a1 1 0 0 0-.87.5l-1.16 2a1 1 0 0 0 0 1l1.16 2c.18.31.51.5.87.5h2.32a1 1 0 0 0 .87-.5l1.16-2a1 1 0 0 0 0-1l-1.16-2a1 1 0 0 0-.87-.5h-2.32Zm0 1h2.32l1.16 2-1.16 2h-2.32L9.18 8l1.16-2Z"]),Link16Regular=createFluentIcon("Link16Regular","16",["M9.5 4h1a3.5 3.5 0 0 1 .2 7H9.5a.5.5 0 0 1-.1-.99h.1l1-.01a2.5 2.5 0 0 0 .16-5H9.5a.5.5 0 0 1-.09-1h1.09-1Zm-4 0h1a.5.5 0 0 1 .09 1H5.5a2.5 2.5 0 0 0-.16 5H6.5a.5.5 0 0 1 .09 1H5.5a3.5 3.5 0 0 1-.2-7h1.2-1Zm0 3h5a.5.5 0 0 1 .09 1H5.5a.5.5 0 0 1-.09-1h.09Z"]),NumberCircle020Regular=createFluentIcon("NumberCircle020Regular","20",["M17 10a7 7 0 1 1-14 0 7 7 0 0 1 14 0Zm-7 8a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm-2-8c0-1.07.15-1.97.49-2.6.16-.3.36-.51.6-.66.23-.15.52-.24.91-.24s.68.1.92.24c.23.15.43.37.6.67.33.62.48 1.52.48 2.59 0 1.07-.15 1.97-.49 2.6-.16.3-.36.51-.6.66-.23.15-.52.24-.91.24s-.68-.1-.92-.24a1.74 1.74 0 0 1-.6-.67A5.65 5.65 0 0 1 8 10Zm2-4.5c-.55 0-1.04.13-1.45.4-.4.25-.72.61-.94 1.03A6.6 6.6 0 0 0 7 10c0 1.14.16 2.23.6 3.07.23.42.54.78.95 1.04.41.26.9.39 1.45.39.55 0 1.04-.13 1.45-.4.4-.25.72-.61.94-1.03.45-.84.61-1.93.61-3.07a6.6 6.6 0 0 0-.6-3.07 2.74 2.74 0 0 0-.95-1.04c-.41-.26-.9-.39-1.45-.39Z"]),Person24Regular=createFluentIcon("Person24Regular","24",["M17.75 14C19 14 20 15 20 16.25v.57c0 .9-.32 1.76-.9 2.44C17.53 21.1 15.15 22 12 22c-3.15 0-5.53-.9-7.1-2.74a3.75 3.75 0 0 1-.9-2.43v-.58C4 15 5.01 14 6.25 14h11.5Zm0 1.5H6.25a.75.75 0 0 0-.75.75v.58c0 .53.2 1.05.54 1.46C7.3 19.76 9.26 20.5 12 20.5c2.74 0 4.7-.74 5.96-2.21.35-.41.54-.93.54-1.47v-.57a.75.75 0 0 0-.75-.75ZM12 2a5 5 0 1 1 0 10 5 5 0 0 1 0-10Zm0 1.5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7Z"]),QuestionCircle16Regular=createFluentIcon("QuestionCircle16Regular","16",["M8 2a6 6 0 1 1 0 12A6 6 0 0 1 8 2Zm0 1a5 5 0 1 0 0 10A5 5 0 0 0 8 3Zm0 7.5A.75.75 0 1 1 8 12a.75.75 0 0 1 0-1.5Zm0-6a2 2 0 0 1 2 2c0 .73-.21 1.14-.75 1.7l-.27.28c-.38.4-.48.6-.48 1.02a.5.5 0 0 1-1 0c0-.73.21-1.14.75-1.7l.27-.28c.38-.4.48-.6.48-1.02a1 1 0 0 0-2 0 .5.5 0 0 1-1 0c0-1.1.9-2 2-2Z"]),QuestionCircle20Filled=createFluentIcon("QuestionCircle20Filled","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 11.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0-8A2.5 2.5 0 0 0 7.5 8a.5.5 0 0 0 1 0 1.5 1.5 0 1 1 2.63.98l-.1.11-.12.1-.25.19A3.2 3.2 0 0 0 9.5 12a.5.5 0 0 0 1 0c0-.76.2-1.25.53-1.61l.08-.08.08-.07.09-.07.22-.17.15-.12A2.5 2.5 0 0 0 10 5.5Z"]),SendCopy20Regular=createFluentIcon("SendCopy20Regular","20",["M8.65 2.15c.2-.2.5-.2.7 0l3 3a.5.5 0 0 1-.7.7L9.5 3.71v7.79a.5.5 0 0 1-1 0V3.7L6.35 5.86a.5.5 0 1 1-.7-.7l3-3ZM5.27 17c.34.6.99 1 1.73 1h6a4 4 0 0 0 4-4v-3.5a.5.5 0 1 0-1 0V14a3 3 0 0 1-3 3H5.27ZM4 8.5a.5.5 0 0 0-1 0V14c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V8.5a.5.5 0 0 0-1 0V14a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V8.5Z"]),ShieldCheckmark24Regular=createFluentIcon("ShieldCheckmark24Regular","24",["M3 5.75c0-.41.34-.75.75-.75 2.66 0 5.26-.94 7.8-2.85.27-.2.63-.2.9 0C14.99 4.05 17.59 5 20.25 5c.41 0 .75.34.75.75V11c0 .34-.01.67-.04 1a6.47 6.47 0 0 0-1.46-.69V6.48a14.36 14.36 0 0 1-7.5-2.8 14.36 14.36 0 0 1-7.5 2.8V11c0 4.15 2.33 7.22 7.13 9.28.26.56.6 1.07 1 1.52l-.36.15a.75.75 0 0 1-.54 0C5.96 19.68 3 16 3 11V5.75ZM23 17.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Zm-2.15-2.35a.5.5 0 0 0-.7 0l-3.65 3.64-1.65-1.64a.5.5 0 0 0-.7.7l2 2c.2.2.5.2.7 0l4-4a.5.5 0 0 0 0-.7Z"]),TextBulletListSquareWarning24Regular=createFluentIcon("TextBulletListSquareWarning24Regular","24",["M7.75 9.25a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm3.5-1.75a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5h-5.5Zm0 3.75a.75.75 0 1 0 0 1.5h3.83l.19-.37c.26-.53.67-.9 1.13-1.13h-5.15Zm0 3.75h2.7l-.74 1.5h-1.96a.75.75 0 1 1 0-1.5Zm-5 4.5h5.46l-.44.88c-.1.2-.17.41-.22.62h-4.8A3.25 3.25 0 0 1 3 17.75V6.25C3 4.45 4.46 3 6.25 3h11.5C19.55 3 21 4.46 21 6.25v8.65l-1.26-2.52a2.6 2.6 0 0 0-.24-.39V6.25c0-.97-.78-1.75-1.75-1.75H6.25c-.97 0-1.75.78-1.75 1.75v11.5c0 .97.78 1.75 1.75 1.75Zm2.5-7.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-1 4.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm8.41-3.92a1.5 1.5 0 0 1 2.69 0l4 8c.5 1-.23 2.17-1.35 2.17h-8a1.5 1.5 0 0 1-1.34-2.17l4-8ZM18 15.5a.5.5 0 0 0-1 0v3a.5.5 0 0 0 1 0v-3Zm-.5 5.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z"]),TextWrap16Regular=createFluentIcon("TextWrap16Regular","16",["M2 3.5c0-.28.22-.5.5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5Zm0 4c0-.28.22-.5.5-.5h10a2.5 2.5 0 0 1 0 5H9.7l.65.65a.5.5 0 0 1-.7.7l-1.5-1.5a.5.5 0 0 1 0-.7l1.5-1.5a.5.5 0 0 1 .7.7l-.64.65h2.79a1.5 1.5 0 0 0 0-3h-10a.5.5 0 0 1-.5-.5ZM6 11a.5.5 0 0 1 0 1H2.5a.5.5 0 0 1 0-1H6Z"]),TextWrapOff16Regular=createFluentIcon("TextWrapOff16Regular","16",["M14.15 14.85 11.29 12H9.71l.64.65a.5.5 0 0 1-.7.7l-1.5-1.5a.5.5 0 0 1 0-.7L9.29 10l-2-2H2.5a.5.5 0 0 1 0-1h3.8l-3-3h-.8a.5.5 0 0 1-.18-.97L1.15 1.85a.5.5 0 1 1 .7-.7l13 13a.5.5 0 0 1-.7.7ZM10.12 8l-1-1h3.38a2.5 2.5 0 0 1 1.27 4.65l-.74-.74A1.5 1.5 0 0 0 12.5 8h-2.38Zm-4-4-1-1h8.38a.5.5 0 0 1 0 1H6.12ZM6 11a.5.5 0 0 1 0 1H2.5a.5.5 0 0 1 0-1H6Z"]),ZoomIn20Regular=createFluentIcon("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"]),renderFluentProvider_unstable=(eo,to)=>jsx$1(Provider$1,{value:to.provider,children:jsx$1(ThemeProvider,{value:to.theme,children:jsx$1(ThemeClassNameProvider,{value:to.themeClassName,children:jsx$1(CustomStyleHooksProvider,{value:to.customStyleHooks_unstable,children:jsx$1(TooltipVisibilityProvider,{value:to.tooltip,children:jsx$1(TextDirectionProvider,{dir:to.textDirection,children:jsx$1(IconDirectionContextProvider,{value:to.iconDirection,children:jsx$1(OverridesProvider,{value:to.overrides_unstable,children:jsxs(eo.root,{children:[canUseDOM$3()?null:jsx$1("style",{dangerouslySetInnerHTML:{__html:eo.serverStyleProps.cssRule},...eo.serverStyleProps.attributes}),eo.root.children]})})})})})})})})});/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */const _canUseWeakRef=typeof WeakRef<"u";class WeakRefInstance{constructor(to){_canUseWeakRef&&typeof to=="object"?this._weakRef=new WeakRef(to):this._instance=to}deref(){var to,ro,no;let oo;return this._weakRef?(oo=(to=this._weakRef)===null||to===void 0?void 0:to.deref(),oo||delete this._weakRef):(oo=this._instance,!((no=(ro=oo)===null||ro===void 0?void 0:ro.isDisposed)===null||no===void 0)&&no.call(ro)&&delete this._instance),oo}}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */const KEYBORG_FOCUSIN="keyborg:focusin";function canOverrideNativeFocus(eo){const to=eo.HTMLElement,ro=to.prototype.focus;let no=!1;return to.prototype.focus=function(){no=!0},eo.document.createElement("button").focus(),to.prototype.focus=ro,no}let _canOverrideNativeFocus=!1;function nativeFocus(eo){const to=eo.focus;to.__keyborgNativeFocus?to.__keyborgNativeFocus.call(eo):eo.focus()}function setupFocusEvent(eo){const to=eo;_canOverrideNativeFocus||(_canOverrideNativeFocus=canOverrideNativeFocus(to));const ro=to.HTMLElement.prototype.focus;if(ro.__keyborgNativeFocus)return;to.HTMLElement.prototype.focus=so;const no=ao=>{const lo=ao.relatedTarget,uo=ao.currentTarget;uo.contains(lo)||(uo.removeEventListener("focusin",oo),uo.removeEventListener("focusout",no))},oo=ao=>{var lo;let uo=ao.target;if(!uo)return;uo.shadowRoot&&(uo.shadowRoot.addEventListener("focusin",oo),uo.shadowRoot.addEventListener("focusout",no),uo=ao.composedPath()[0]);const co={relatedTarget:ao.relatedTarget||void 0},fo=new CustomEvent(KEYBORG_FOCUSIN,{cancelable:!0,bubbles:!0,composed:!0,detail:co});fo.details=co,(_canOverrideNativeFocus||io.lastFocusedProgrammatically)&&(co.isFocusedProgrammatically=uo===((lo=io.lastFocusedProgrammatically)===null||lo===void 0?void 0:lo.deref()),io.lastFocusedProgrammatically=void 0),uo.dispatchEvent(fo)},io=to.__keyborgData={focusInHandler:oo};to.document.addEventListener("focusin",to.__keyborgData.focusInHandler,!0);function so(){const ao=to.__keyborgData;return ao&&(ao.lastFocusedProgrammatically=new WeakRefInstance(this)),ro.apply(this,arguments)}so.__keyborgNativeFocus=ro}function disposeFocusEvent(eo){const to=eo,ro=to.HTMLElement.prototype,no=ro.focus.__keyborgNativeFocus,oo=to.__keyborgData;oo&&(to.document.removeEventListener("focusin",oo.focusInHandler,!0),delete to.__keyborgData),no&&(ro.focus=no)}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */const _dismissTimeout=500;let _lastId=0;class KeyborgState{constructor(){this.__keyborgCoreRefs={},this._isNavigatingWithKeyboard=!1}add(to){const ro=to.id;ro in this.__keyborgCoreRefs||(this.__keyborgCoreRefs[ro]=new WeakRefInstance(to))}remove(to){delete this.__keyborgCoreRefs[to],Object.keys(this.__keyborgCoreRefs).length===0&&(this._isNavigatingWithKeyboard=!1)}setVal(to){if(this._isNavigatingWithKeyboard!==to){this._isNavigatingWithKeyboard=to;for(const ro of Object.keys(this.__keyborgCoreRefs)){const oo=this.__keyborgCoreRefs[ro].deref();oo?oo.update(to):this.remove(ro)}}}getVal(){return this._isNavigatingWithKeyboard}}const _state=new KeyborgState;class KeyborgCore{constructor(to,ro){this._onFocusIn=oo=>{if(this._isMouseUsedTimer||_state.getVal())return;const io=oo.detail;io.relatedTarget&&(io.isFocusedProgrammatically||io.isFocusedProgrammatically===void 0||_state.setVal(!0))},this._onMouseDown=oo=>{if(oo.buttons===0||oo.clientX===0&&oo.clientY===0&&oo.screenX===0&&oo.screenY===0)return;const io=this._win;io&&(this._isMouseUsedTimer&&io.clearTimeout(this._isMouseUsedTimer),this._isMouseUsedTimer=io.setTimeout(()=>{delete this._isMouseUsedTimer},1e3)),_state.setVal(!1)},this._onKeyDown=oo=>{var io,so;const ao=_state.getVal(),lo=oo.keyCode,uo=this._triggerKeys;if(!ao&&(!uo||uo.has(lo))){const co=(io=this._win)===null||io===void 0?void 0:io.document.activeElement;if(co&&(co.tagName==="INPUT"||co.tagName==="TEXTAREA"||co.contentEditable==="true"))return;_state.setVal(!0)}else ao&&(!((so=this._dismissKeys)===null||so===void 0)&&so.has(lo))&&this._scheduleDismiss()},this.id="c"+ ++_lastId,this._win=to;const no=to.document;if(ro){const oo=ro.triggerKeys,io=ro.dismissKeys;oo!=null&&oo.length&&(this._triggerKeys=new Set(oo)),io!=null&&io.length&&(this._dismissKeys=new Set(io))}no.addEventListener(KEYBORG_FOCUSIN,this._onFocusIn,!0),no.addEventListener("mousedown",this._onMouseDown,!0),to.addEventListener("keydown",this._onKeyDown,!0),setupFocusEvent(to),_state.add(this)}dispose(){const to=this._win;if(to){this._isMouseUsedTimer&&(to.clearTimeout(this._isMouseUsedTimer),this._isMouseUsedTimer=void 0),this._dismissTimer&&(to.clearTimeout(this._dismissTimer),this._dismissTimer=void 0),disposeFocusEvent(to);const ro=to.document;ro.removeEventListener(KEYBORG_FOCUSIN,this._onFocusIn,!0),ro.removeEventListener("mousedown",this._onMouseDown,!0),to.removeEventListener("keydown",this._onKeyDown,!0),delete this._win,_state.remove(this.id)}}isDisposed(){return!!this._win}update(to){var ro,no;const oo=(no=(ro=this._win)===null||ro===void 0?void 0:ro.__keyborg)===null||no===void 0?void 0:no.refs;if(oo)for(const io of Object.keys(oo))Keyborg.update(oo[io],to)}_scheduleDismiss(){const to=this._win;if(to){this._dismissTimer&&(to.clearTimeout(this._dismissTimer),this._dismissTimer=void 0);const ro=to.document.activeElement;this._dismissTimer=to.setTimeout(()=>{this._dismissTimer=void 0;const no=to.document.activeElement;ro&&no&&ro===no&&_state.setVal(!1)},_dismissTimeout)}}}class Keyborg{constructor(to,ro){this._cb=[],this._id="k"+ ++_lastId,this._win=to;const no=to.__keyborg;no?(this._core=no.core,no.refs[this._id]=this):(this._core=new KeyborgCore(to,ro),to.__keyborg={core:this._core,refs:{[this._id]:this}})}static create(to,ro){return new Keyborg(to,ro)}static dispose(to){to.dispose()}static update(to,ro){to._cb.forEach(no=>no(ro))}dispose(){var to;const ro=(to=this._win)===null||to===void 0?void 0:to.__keyborg;ro!=null&&ro.refs[this._id]&&(delete ro.refs[this._id],Object.keys(ro.refs).length===0&&(ro.core.dispose(),delete this._win.__keyborg)),this._cb=[],delete this._core,delete this._win}isNavigatingWithKeyboard(){return _state.getVal()}subscribe(to){this._cb.push(to)}unsubscribe(to){const ro=this._cb.indexOf(to);ro>=0&&this._cb.splice(ro,1)}setVal(to){_state.setVal(to)}}function createKeyborg(eo,to){return Keyborg.create(eo,to)}function disposeKeyborg(eo){Keyborg.dispose(eo)}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */const TabsterAttributeName="data-tabster",TabsterDummyInputAttributeName="data-tabster-dummy",DeloserEventName="tabster:deloser",ModalizerActiveEventName="tabster:modalizer:active",ModalizerInactiveEventName="tabster:modalizer:inactive",ModalizerFocusInEventName="tabster:modalizer:focusin",ModalizerFocusOutEventName="tabster:modalizer:focusout",ModalizerBeforeFocusOutEventName="tabster:modalizer:beforefocusout",MoverEventName="tabster:mover",FocusInEventName="tabster:focusin",FocusOutEventName="tabster:focusout",MoveFocusEventName="tabster:movefocus",FocusableSelector=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","*[tabindex]","*[contenteditable]"].join(", "),ObservedElementAccesibilities={Any:0,Accessible:1,Focusable:2},RestoreFocusOrders={History:0,DeloserDefault:1,RootDefault:2,DeloserFirst:3,RootFirst:4},Visibilities={Invisible:0,PartiallyVisible:1,Visible:2},RestorerTypes={Source:0,Target:1},MoverDirections={Both:0,Vertical:1,Horizontal:2,Grid:3,GridLinear:4},GroupperTabbabilities={Unlimited:0,Limited:1,LimitedTrapFocus:2},SysDummyInputsPositions={Auto:0,Inside:1,Outside:2};var Types=Object.freeze({__proto__:null,TabsterAttributeName,TabsterDummyInputAttributeName,DeloserEventName,ModalizerActiveEventName,ModalizerInactiveEventName,ModalizerFocusInEventName,ModalizerFocusOutEventName,ModalizerBeforeFocusOutEventName,MoverEventName,FocusInEventName,FocusOutEventName,MoveFocusEventName,FocusableSelector,ObservedElementAccesibilities,RestoreFocusOrders,Visibilities,RestorerTypes,MoverDirections,GroupperTabbabilities,SysDummyInputsPositions});/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */function getTabsterOnElement(eo,to){var ro;return(ro=eo.storageEntry(to))===null||ro===void 0?void 0:ro.tabster}function updateTabsterByAttribute(eo,to,ro){var no,oo;const io=ro||eo._noop?void 0:to.getAttribute(TabsterAttributeName);let so=eo.storageEntry(to),ao;if(io)if(io!==((no=so==null?void 0:so.attr)===null||no===void 0?void 0:no.string))try{const fo=JSON.parse(io);if(typeof fo!="object")throw new Error(`Value is not a JSON object, got '${io}'.`);ao={string:io,object:fo}}catch{}else return;else if(!so)return;so||(so=eo.storageEntry(to,!0)),so.tabster||(so.tabster={});const lo=so.tabster||{},uo=((oo=so.attr)===null||oo===void 0?void 0:oo.object)||{},co=(ao==null?void 0:ao.object)||{};for(const fo of Object.keys(uo))if(!co[fo]){if(fo==="root"){const po=lo[fo];po&&eo.root.onRoot(po,!0)}switch(fo){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":const po=lo[fo];po&&(po.dispose(),delete lo[fo]);break;case"observed":delete lo[fo],eo.observedElement&&eo.observedElement.onObservedElementUpdate(to);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete lo[fo];break}}for(const fo of Object.keys(co)){const po=co.sys;switch(fo){case"deloser":lo.deloser?lo.deloser.setProps(co.deloser):eo.deloser&&(lo.deloser=eo.deloser.createDeloser(to,co.deloser));break;case"root":lo.root?lo.root.setProps(co.root):lo.root=eo.root.createRoot(to,co.root,po),eo.root.onRoot(lo.root);break;case"modalizer":lo.modalizer?lo.modalizer.setProps(co.modalizer):eo.modalizer&&(lo.modalizer=eo.modalizer.createModalizer(to,co.modalizer,po));break;case"restorer":lo.restorer?lo.restorer.setProps(co.restorer):eo.restorer&&co.restorer&&(lo.restorer=eo.restorer.createRestorer(to,co.restorer));break;case"focusable":lo.focusable=co.focusable;break;case"groupper":lo.groupper?lo.groupper.setProps(co.groupper):eo.groupper&&(lo.groupper=eo.groupper.createGroupper(to,co.groupper,po));break;case"mover":lo.mover?lo.mover.setProps(co.mover):eo.mover&&(lo.mover=eo.mover.createMover(to,co.mover,po));break;case"observed":eo.observedElement&&(lo.observed=co.observed,eo.observedElement.onObservedElementUpdate(to));break;case"uncontrolled":lo.uncontrolled=co.uncontrolled;break;case"outline":eo.outline&&(lo.outline=co.outline);break;case"sys":lo.sys=co.sys;break;default:console.error(`Unknown key '${fo}' in data-tabster attribute value.`)}}ao?so.attr=ao:(Object.keys(lo).length===0&&(delete so.tabster,delete so.attr),eo.storageEntry(to,!1))}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */function createEventTarget(eo){const to=eo();try{if(to.EventTarget)return new to.EventTarget}catch(ro){if(!(ro instanceof TypeError))throw ro}return to.document.createElement("div")}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */let _isBrokenIE11;const _DOMRect=typeof DOMRect<"u"?DOMRect:class{constructor(eo,to,ro,no){this.left=eo||0,this.top=to||0,this.right=(eo||0)+(ro||0),this.bottom=(to||0)+(no||0)}};let _uidCounter=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),_isBrokenIE11=!1}catch{_isBrokenIE11=!0}const _updateDummyInputsTimeout=100;function getInstanceContext(eo){const to=eo();let ro=to.__tabsterInstanceContext;return ro||(ro={elementByUId:{},basics:{Promise:to.Promise||void 0,WeakRef:to.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},to.__tabsterInstanceContext=ro),ro}function disposeInstanceContext(eo){const to=eo.__tabsterInstanceContext;to&&(to.elementByUId={},delete to.WeakRef,to.containerBoundingRectCache={},to.containerBoundingRectCacheTimer&&eo.clearTimeout(to.containerBoundingRectCacheTimer),to.fakeWeakRefsTimer&&eo.clearTimeout(to.fakeWeakRefsTimer),to.fakeWeakRefs=[],delete eo.__tabsterInstanceContext)}function createWeakMap(eo){const to=eo.__tabsterInstanceContext;return new((to==null?void 0:to.basics.WeakMap)||WeakMap)}function hasSubFocusable(eo){return!!eo.querySelector(FocusableSelector)}class FakeWeakRef{constructor(to){this._target=to}deref(){return this._target}static cleanup(to,ro){return to._target?ro||!documentContains(to._target.ownerDocument,to._target)?(delete to._target,!0):!1:!0}}class WeakHTMLElement{constructor(to,ro,no){const oo=getInstanceContext(to);let io;oo.WeakRef?io=new oo.WeakRef(ro):(io=new FakeWeakRef(ro),oo.fakeWeakRefs.push(io)),this._ref=io,this._data=no}get(){const to=this._ref;let ro;return to&&(ro=to.deref(),ro||delete this._ref),ro}getData(){return this._data}}function cleanupFakeWeakRefs(eo,to){const ro=getInstanceContext(eo);ro.fakeWeakRefs=ro.fakeWeakRefs.filter(no=>!FakeWeakRef.cleanup(no,to))}function startFakeWeakRefsCleanup(eo){const to=getInstanceContext(eo);to.fakeWeakRefsStarted||(to.fakeWeakRefsStarted=!0,to.WeakRef=getWeakRef(to)),to.fakeWeakRefsTimer||(to.fakeWeakRefsTimer=eo().setTimeout(()=>{to.fakeWeakRefsTimer=void 0,cleanupFakeWeakRefs(eo),startFakeWeakRefsCleanup(eo)},2*60*1e3))}function stopFakeWeakRefsCleanupAndClearStorage(eo){const to=getInstanceContext(eo);to.fakeWeakRefsStarted=!1,to.fakeWeakRefsTimer&&(eo().clearTimeout(to.fakeWeakRefsTimer),to.fakeWeakRefsTimer=void 0,to.fakeWeakRefs=[])}function createElementTreeWalker(eo,to,ro){if(to.nodeType!==Node.ELEMENT_NODE)return;const no=_isBrokenIE11?ro:{acceptNode:ro};return eo.createTreeWalker(to,NodeFilter.SHOW_ELEMENT,no,!1)}function getBoundingRect(eo,to){let ro=to.__tabsterCacheId;const no=getInstanceContext(eo),oo=ro?no.containerBoundingRectCache[ro]:void 0;if(oo)return oo.rect;const io=to.ownerDocument&&to.ownerDocument.documentElement;if(!io)return new _DOMRect;let so=0,ao=0,lo=io.clientWidth,uo=io.clientHeight;if(to!==io){const fo=to.getBoundingClientRect();so=Math.max(so,fo.left),ao=Math.max(ao,fo.top),lo=Math.min(lo,fo.right),uo=Math.min(uo,fo.bottom)}const co=new _DOMRect(so{no.containerBoundingRectCacheTimer=void 0;for(const fo of Object.keys(no.containerBoundingRectCache))delete no.containerBoundingRectCache[fo].element.__tabsterCacheId;no.containerBoundingRectCache={}},50)),co}function isElementVerticallyVisibleInContainer(eo,to,ro){const no=getScrollableContainer(to);if(!no)return!1;const oo=getBoundingRect(eo,no),io=to.getBoundingClientRect(),so=io.height*(1-ro),ao=Math.max(0,oo.top-io.top),lo=Math.max(0,io.bottom-oo.bottom),uo=ao+lo;return uo===0||uo<=so}function scrollIntoView$2(eo,to,ro){const no=getScrollableContainer(to);if(no){const oo=getBoundingRect(eo,no),io=to.getBoundingClientRect();ro?no.scrollTop+=io.top-oo.top:no.scrollTop+=io.bottom-oo.bottom}}function getScrollableContainer(eo){const to=eo.ownerDocument;if(to){for(let ro=eo.parentElement;ro;ro=ro.parentElement)if(ro.scrollWidth>ro.clientWidth||ro.scrollHeight>ro.clientHeight)return ro;return to.documentElement}return null}function makeFocusIgnored(eo){eo.__shouldIgnoreFocus=!0}function shouldIgnoreFocus(eo){return!!eo.__shouldIgnoreFocus}function getUId(eo){const to=new Uint32Array(4);if(eo.crypto&&eo.crypto.getRandomValues)eo.crypto.getRandomValues(to);else if(eo.msCrypto&&eo.msCrypto.getRandomValues)eo.msCrypto.getRandomValues(to);else for(let no=0;no{if(this._fixedTarget){const po=this._fixedTarget.get();po&&nativeFocus(po);return}const fo=this.input;if(this.onFocusIn&&fo){const po=co.relatedTarget;this.onFocusIn(this,this._isBackward(!0,fo,po),po)}},this._focusOut=co=>{if(this._fixedTarget)return;this.useDefaultAction=!1;const fo=this.input;if(this.onFocusOut&&fo){const po=co.relatedTarget;this.onFocusOut(this,this._isBackward(!1,fo,po),po)}};const ao=to(),lo=ao.document.createElement("i");lo.tabIndex=0,lo.setAttribute("role","none"),lo.setAttribute(TabsterDummyInputAttributeName,""),lo.setAttribute("aria-hidden","true");const uo=lo.style;uo.position="fixed",uo.width=uo.height="1px",uo.opacity="0.001",uo.zIndex="-1",uo.setProperty("content-visibility","hidden"),makeFocusIgnored(lo),this.input=lo,this.isFirst=no.isFirst,this.isOutside=ro,this._isPhantom=(so=no.isPhantom)!==null&&so!==void 0?so:!1,this._fixedTarget=io,lo.addEventListener("focusin",this._focusIn),lo.addEventListener("focusout",this._focusOut),lo.__tabsterDummyContainer=oo,this._isPhantom&&(this._disposeTimer=ao.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(ao.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){var to;this._clearDisposeTimeout&&this._clearDisposeTimeout();const ro=this.input;ro&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,ro.removeEventListener("focusin",this._focusIn),ro.removeEventListener("focusout",this._focusOut),delete ro.__tabsterDummyContainer,(to=ro.parentElement)===null||to===void 0||to.removeChild(ro))}setTopLeft(to,ro){var no;const oo=(no=this.input)===null||no===void 0?void 0:no.style;oo&&(oo.top=`${to}px`,oo.left=`${ro}px`)}_isBackward(to,ro,no){return to&&!no?!this.isFirst:!!(no&&ro.compareDocumentPosition(no)&Node.DOCUMENT_POSITION_FOLLOWING)}}const DummyInputManagerPriorities={Root:1,Modalizer:2,Mover:3,Groupper:4};class DummyInputManager{constructor(to,ro,no,oo,io,so){this._element=ro,this._instance=new DummyInputManagerCore(to,ro,this,no,oo,io,so)}_setHandlers(to,ro){this._onFocusIn=to,this._onFocusOut=ro}moveOut(to){var ro;(ro=this._instance)===null||ro===void 0||ro.moveOut(to)}moveOutWithDefaultAction(to,ro){var no;(no=this._instance)===null||no===void 0||no.moveOutWithDefaultAction(to,ro)}getHandler(to){return to?this._onFocusIn:this._onFocusOut}setTabbable(to){var ro;(ro=this._instance)===null||ro===void 0||ro.setTabbable(this,to)}dispose(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}static moveWithPhantomDummy(to,ro,no,oo,io){var so;const lo=new DummyInput(to.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(lo){let uo,co;if(ro.tagName==="BODY")uo=ro,co=no&&oo||!no&&!oo?ro.firstElementChild:null;else{no&&(!oo||oo&&!to.focusable.isFocusable(ro,!1,!0,!0))?(uo=ro,co=oo?ro.firstElementChild:null):(uo=ro.parentElement,co=no&&oo||!no&&!oo?ro:ro.nextElementSibling);let fo,po;do fo=no&&oo||!no&&!oo?co==null?void 0:co.previousElementSibling:co,po=(so=fo==null?void 0:fo.__tabsterDummyContainer)===null||so===void 0?void 0:so.get(),po===ro?co=no&&oo||!no&&!oo?fo:fo==null?void 0:fo.nextElementSibling:po=void 0;while(po)}uo&&triggerMoveFocusEvent({by:"root",owner:uo,next:null,relatedEvent:io})&&(uo.insertBefore(lo,co),nativeFocus(lo))}}static addPhantomDummyWithTarget(to,ro,no,oo){const so=new DummyInput(to.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new WeakHTMLElement(to.getWindow,oo)).input;if(so){let ao,lo;hasSubFocusable(ro)&&!no?(ao=ro,lo=ro.firstElementChild):(ao=ro.parentElement,lo=no?ro:ro.nextElementSibling),ao==null||ao.insertBefore(so,lo)}}}class DummyInputObserver{constructor(to){this._updateQueue=new Set,this._lastUpdateQueueTime=0,this._changedParents=new WeakSet,this._dummyElements=[],this._dummyCallbacks=new WeakMap,this._domChanged=ro=>{var no;this._changedParents.has(ro)||(this._changedParents.add(ro),!this._updateDummyInputsTimer&&(this._updateDummyInputsTimer=(no=this._win)===null||no===void 0?void 0:no.call(this).setTimeout(()=>{delete this._updateDummyInputsTimer;for(const oo of this._dummyElements){const io=oo.get();if(io){const so=this._dummyCallbacks.get(io);if(so){const ao=io.parentElement;(!ao||this._changedParents.has(ao))&&so()}}}this._changedParents=new WeakSet},_updateDummyInputsTimeout)))},this._win=to}add(to,ro){!this._dummyCallbacks.has(to)&&this._win&&(this._dummyElements.push(new WeakHTMLElement(this._win,to)),this._dummyCallbacks.set(to,ro),this.domChanged=this._domChanged)}remove(to){this._dummyElements=this._dummyElements.filter(ro=>{const no=ro.get();return no&&no!==to}),this._dummyCallbacks.delete(to),this._dummyElements.length===0&&delete this.domChanged}dispose(){var to;const ro=(to=this._win)===null||to===void 0?void 0:to.call(this);this._updateTimer&&(ro==null||ro.clearTimeout(this._updateTimer),delete this._updateTimer),this._updateDummyInputsTimer&&(ro==null||ro.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(to){this._win&&(this._updateQueue.add(to),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}_scheduledUpdatePositions(){var to;this._updateTimer||(this._updateTimer=(to=this._win)===null||to===void 0?void 0:to.call(this).setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+_updateDummyInputsTimeout<=Date.now()){const ro=new Map,no=[];for(const oo of this._updateQueue)no.push(oo(ro));this._updateQueue.clear();for(const oo of no)oo();ro.clear()}else this._scheduledUpdatePositions()},_updateDummyInputsTimeout))}}class DummyInputManagerCore{constructor(to,ro,no,oo,io,so,ao){this._wrappers=[],this._isOutside=!1,this._transformElements=new Set,this._onFocusIn=(ho,mo,vo)=>{this._onFocus(!0,ho,mo,vo)},this._onFocusOut=(ho,mo,vo)=>{this._onFocus(!1,ho,mo,vo)},this.moveOut=ho=>{var mo;const vo=this._firstDummy,bo=this._lastDummy;if(vo&&bo){this._ensurePosition();const xo=vo.input,_o=bo.input,So=(mo=this._element)===null||mo===void 0?void 0:mo.get();if(xo&&_o&&So){let Eo;ho?(xo.tabIndex=0,Eo=xo):(_o.tabIndex=0,Eo=_o),Eo&&nativeFocus(Eo)}}},this.moveOutWithDefaultAction=(ho,mo)=>{var vo;const bo=this._firstDummy,xo=this._lastDummy;if(bo&&xo){this._ensurePosition();const _o=bo.input,So=xo.input,Eo=(vo=this._element)===null||vo===void 0?void 0:vo.get();if(_o&&So&&Eo){let ko;ho?!bo.isOutside&&this._tabster.focusable.isFocusable(Eo,!0,!0,!0)?ko=Eo:(bo.useDefaultAction=!0,_o.tabIndex=0,ko=_o):(xo.useDefaultAction=!0,So.tabIndex=0,ko=So),ko&&triggerMoveFocusEvent({by:"root",owner:Eo,next:null,relatedEvent:mo})&&nativeFocus(ko)}}},this.setTabbable=(ho,mo)=>{var vo,bo;for(const _o of this._wrappers)if(_o.manager===ho){_o.tabbable=mo;break}const xo=this._getCurrent();if(xo){const _o=xo.tabbable?0:-1;let So=(vo=this._firstDummy)===null||vo===void 0?void 0:vo.input;So&&(So.tabIndex=_o),So=(bo=this._lastDummy)===null||bo===void 0?void 0:bo.input,So&&(So.tabIndex=_o)}},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=ho=>{var mo,vo;const bo=((mo=this._firstDummy)===null||mo===void 0?void 0:mo.input)||((vo=this._lastDummy)===null||vo===void 0?void 0:vo.input),xo=this._transformElements,_o=new Set;let So=0,Eo=0;const ko=this._getWindow();for(let wo=bo;wo&&wo.nodeType===Node.ELEMENT_NODE;wo=wo.parentElement){let Co=ho.get(wo);if(Co===void 0){const Ro=ko.getComputedStyle(wo).transform;Ro&&Ro!=="none"&&(Co={scrollTop:wo.scrollTop,scrollLeft:wo.scrollLeft}),ho.set(wo,Co||null)}Co&&(_o.add(wo),xo.has(wo)||wo.addEventListener("scroll",this._addTransformOffsets),So+=Co.scrollTop,Eo+=Co.scrollLeft)}for(const wo of xo)_o.has(wo)||wo.removeEventListener("scroll",this._addTransformOffsets);return this._transformElements=_o,()=>{var wo,Co;(wo=this._firstDummy)===null||wo===void 0||wo.setTopLeft(So,Eo),(Co=this._lastDummy)===null||Co===void 0||Co.setTopLeft(So,Eo)}};const lo=ro.get();if(!lo)throw new Error("No element");this._tabster=to,this._getWindow=to.getWindow,this._callForDefaultAction=ao;const uo=lo.__tabsterDummy;if((uo||this)._wrappers.push({manager:no,priority:oo,tabbable:!0}),uo)return uo;lo.__tabsterDummy=this;const co=io==null?void 0:io.dummyInputsPosition,fo=lo.tagName;this._isOutside=co?co===SysDummyInputsPositions.Outside:(so||fo==="UL"||fo==="OL"||fo==="TABLE")&&!(fo==="LI"||fo==="TD"||fo==="TH"),this._firstDummy=new DummyInput(this._getWindow,this._isOutside,{isFirst:!0},ro),this._lastDummy=new DummyInput(this._getWindow,this._isOutside,{isFirst:!1},ro);const po=this._firstDummy.input;po&&to._dummyObserver.add(po,this._addDummyInputs),this._firstDummy.onFocusIn=this._onFocusIn,this._firstDummy.onFocusOut=this._onFocusOut,this._lastDummy.onFocusIn=this._onFocusIn,this._lastDummy.onFocusOut=this._onFocusOut,this._element=ro,this._addDummyInputs()}dispose(to,ro){var no,oo,io,so;if((this._wrappers=this._wrappers.filter(lo=>lo.manager!==to&&!ro)).length===0){delete((no=this._element)===null||no===void 0?void 0:no.get()).__tabsterDummy;for(const co of this._transformElements)co.removeEventListener("scroll",this._addTransformOffsets);this._transformElements.clear();const lo=this._getWindow();this._addTimer&&(lo.clearTimeout(this._addTimer),delete this._addTimer);const uo=(oo=this._firstDummy)===null||oo===void 0?void 0:oo.input;uo&&this._tabster._dummyObserver.remove(uo),(io=this._firstDummy)===null||io===void 0||io.dispose(),(so=this._lastDummy)===null||so===void 0||so.dispose()}}_onFocus(to,ro,no,oo){var io;const so=this._getCurrent();so&&(!ro.useDefaultAction||this._callForDefaultAction)&&((io=so.manager.getHandler(to))===null||io===void 0||io(ro,no,oo))}_getCurrent(){return this._wrappers.sort((to,ro)=>to.tabbable!==ro.tabbable?to.tabbable?-1:1:to.priority-ro.priority),this._wrappers[0]}_ensurePosition(){var to,ro,no;const oo=(to=this._element)===null||to===void 0?void 0:to.get(),io=(ro=this._firstDummy)===null||ro===void 0?void 0:ro.input,so=(no=this._lastDummy)===null||no===void 0?void 0:no.input;if(!(!oo||!io||!so))if(this._isOutside){const ao=oo.parentElement;if(ao){const lo=oo.nextElementSibling;lo!==so&&ao.insertBefore(so,lo),oo.previousElementSibling!==io&&ao.insertBefore(io,oo)}}else{oo.lastElementChild!==so&&oo.appendChild(so);const ao=oo.firstElementChild;ao&&ao!==io&&oo.insertBefore(io,ao)}}}function getLastChild(eo){let to=null;for(let ro=eo.lastElementChild;ro;ro=ro.lastElementChild)to=ro;return to||void 0}function getAdjacentElement(eo,to){let ro=eo,no=null;for(;ro&&!no;)no=to?ro.previousElementSibling:ro.nextElementSibling,ro=ro.parentElement;return no||void 0}function triggerEvent(eo,to,ro){const no=document.createEvent("HTMLEvents");return no.initEvent(to,!0,!0),no.details=ro,eo.dispatchEvent(no),!no.defaultPrevented}function triggerMoveFocusEvent(eo){return triggerEvent(eo.owner,MoveFocusEventName,eo)}function augmentAttribute(eo,to,ro,no){const oo=eo.storageEntry(to,!0);let io=!1;if(!oo.aug){if(no===void 0)return io;oo.aug={}}if(no===void 0){if(ro in oo.aug){const so=oo.aug[ro];delete oo.aug[ro],so===null?to.removeAttribute(ro):to.setAttribute(ro,so),io=!0}}else{let so;ro in oo.aug||(so=to.getAttribute(ro)),so!==void 0&&so!==no&&(oo.aug[ro]=so,no===null?to.removeAttribute(ro):to.setAttribute(ro,no),io=!0)}return no===void 0&&Object.keys(oo.aug).length===0&&(delete oo.aug,eo.storageEntry(to,!1)),io}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */function getTabsterAttribute(eo,to){const ro=JSON.stringify(eo);return to===!0?ro:{[TabsterAttributeName]:ro}}function mergeTabsterProps(eo,to){for(const ro of Object.keys(to)){const no=to[ro];no?eo[ro]=no:delete eo[ro]}}function setTabsterAttribute(eo,to,ro){let no;if(ro){const oo=eo.getAttribute(TabsterAttributeName);if(oo)try{no=JSON.parse(oo)}catch{}}no||(no={}),mergeTabsterProps(no,to),Object.keys(no).length>0?eo.setAttribute(TabsterAttributeName,getTabsterAttribute(no,!0)):eo.removeAttribute(TabsterAttributeName)}class RootDummyManager extends DummyInputManager{constructor(to,ro,no,oo){super(to,ro,DummyInputManagerPriorities.Root,oo,void 0,!0),this._onDummyInputFocus=io=>{var so;if(io.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);const ao=this._element.get();if(ao){this._setFocused(!0);const lo=this._tabster.focusedElement.getFirstOrLastTabbable(io.isFirst,{container:ao,ignoreAccessibility:!0});if(lo){nativeFocus(lo);return}}(so=io.input)===null||so===void 0||so.blur()}},this._setHandlers(this._onDummyInputFocus),this._tabster=to,this._setFocused=no}}class Root extends TabsterPart{constructor(to,ro,no,oo,io){super(to,ro,oo),this._isFocused=!1,this._setFocused=lo=>{var uo;if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===lo)return;const co=this._element.get();co&&(lo?(this._isFocused=!0,(uo=this._dummyManager)===null||uo===void 0||uo.setTabbable(!1),triggerEvent(this._tabster.root.eventTarget,"focus",{element:co})):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{var fo;delete this._setFocusedTimer,this._isFocused=!1,(fo=this._dummyManager)===null||fo===void 0||fo.setTabbable(!0),triggerEvent(this._tabster.root.eventTarget,"blur",{element:co})},0))},this._onFocusIn=lo=>{const uo=this._tabster.getParent,co=this._element.get();let fo=lo.target;do{if(fo===co){this._setFocused(!0);return}fo=fo&&uo(fo)}while(fo)},this._onFocusOut=()=>{this._setFocused(!1)},this._onDispose=no;const so=to.getWindow;this.uid=getElementUId(so,ro),this._sys=io,(to.controlTab||to.rootDummyInputs)&&this.addDummyInputs();const ao=so();ao.document.addEventListener("focusin",this._onFocusIn),ao.document.addEventListener("focusout",this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new RootDummyManager(this._tabster,this._element,this._setFocused,this._sys))}dispose(){var to;this._onDispose(this);const ro=this._tabster.getWindow();ro.document.removeEventListener("focusin",this._onFocusIn),ro.document.removeEventListener("focusout",this._onFocusOut),this._setFocusedTimer&&(ro.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),(to=this._dummyManager)===null||to===void 0||to.dispose(),this._remove()}moveOutWithDefaultAction(to,ro){const no=this._dummyManager;if(no)no.moveOutWithDefaultAction(to,ro);else{const oo=this.getElement();oo&&RootDummyManager.moveWithPhantomDummy(this._tabster,oo,!0,to,ro)}}_add(){}_remove(){}}class RootAPI{constructor(to,ro){this._autoRootWaiting=!1,this._roots={},this._forceDummy=!1,this.rootById={},this._autoRootCreate=()=>{var no;const oo=this._win().document,io=oo.body;if(io){this._autoRootUnwait(oo);const so=this._autoRoot;if(so)return setTabsterAttribute(io,{root:so},!0),updateTabsterByAttribute(this._tabster,io),(no=getTabsterOnElement(this._tabster,io))===null||no===void 0?void 0:no.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,oo.addEventListener("readystatechange",this._autoRootCreate))},this._onRootDispose=no=>{delete this._roots[no.id]},this._tabster=to,this._win=to.getWindow,this._autoRoot=ro,this.eventTarget=createEventTarget(this._win),to.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootUnwait(to){to.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){const to=this._win();this._autoRootUnwait(to.document),delete this._autoRoot,Object.keys(this._roots).forEach(ro=>{this._roots[ro]&&(this._roots[ro].dispose(),delete this._roots[ro])}),this.rootById={}}createRoot(to,ro,no){const oo=new Root(this._tabster,to,this._onRootDispose,ro,no);return this._roots[oo.id]=oo,this._forceDummy&&oo.addDummyInputs(),oo}addDummyInputs(){this._forceDummy=!0;const to=this._roots;for(const ro of Object.keys(to))to[ro].addDummyInputs()}static getRootByUId(to,ro){const no=to().__tabsterInstance;return no&&no.root.rootById[ro]}static getTabsterContext(to,ro,no){no===void 0&&(no={});var oo,io,so,ao;if(!ro.ownerDocument)return;const{checkRtl:lo,referenceElement:uo}=no,co=to.getParent;to.drainInitQueue();let fo,po,ho,mo,vo=!1,bo,xo,_o,So,Eo=uo||ro;const ko={};for(;Eo&&(!fo||lo);){const Co=getTabsterOnElement(to,Eo);if(lo&&_o===void 0){const Bo=Eo.dir;Bo&&(_o=Bo.toLowerCase()==="rtl")}if(!Co){Eo=co(Eo);continue}const Ro=Eo.tagName;(Co.uncontrolled||Ro==="IFRAME"||Ro==="WEBVIEW")&&(So=Eo),!mo&&(!((oo=Co.focusable)===null||oo===void 0)&&oo.excludeFromMover)&&!ho&&(vo=!0);const Ao=Co.modalizer,Io=Co.groupper,$o=Co.mover;!po&&Ao&&(po=Ao),!ho&&Io&&(!po||Ao)&&(po?(!Io.isActive()&&Io.getProps().tabbability&&po.userId!==((io=to.modalizer)===null||io===void 0?void 0:io.activeId)&&(po=void 0,ho=Io),xo=Io):ho=Io),!mo&&$o&&(!po||Ao)&&(!Io||Eo!==ro)&&(mo=$o,bo=!!ho&&ho!==Io),Co.root&&(fo=Co.root),!((so=Co.focusable)===null||so===void 0)&&so.ignoreKeydown&&Object.assign(ko,Co.focusable.ignoreKeydown),Eo=co(Eo)}if(!fo){const Co=to.root;Co._autoRoot&&!((ao=ro.ownerDocument)===null||ao===void 0)&&ao.body&&(fo=Co._autoRootCreate())}return ho&&!mo&&(bo=!0),fo?{root:fo,modalizer:po,groupper:ho,mover:mo,groupperBeforeMover:bo,modalizerInGroupper:xo,rtl:lo?!!_o:void 0,uncontrolled:So,excludedFromMover:vo,ignoreKeydown:Co=>!!ko[Co.key]}:void 0}static getRoot(to,ro){var no;const oo=to.getParent;for(let io=ro;io;io=oo(io)){const so=(no=getTabsterOnElement(to,io))===null||no===void 0?void 0:no.root;if(so)return so}}onRoot(to,ro){ro?delete this.rootById[to.uid]:this.rootById[to.uid]=to}}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */class Subscribable{constructor(){this._callbacks=[]}dispose(){this._callbacks=[],delete this._val}subscribe(to){const ro=this._callbacks;ro.indexOf(to)<0&&ro.push(to)}subscribeFirst(to){const ro=this._callbacks,no=ro.indexOf(to);no>=0&&ro.splice(no,1),ro.unshift(to)}unsubscribe(to){const ro=this._callbacks.indexOf(to);ro>=0&&this._callbacks.splice(ro,1)}setVal(to,ro){this._val!==to&&(this._val=to,this._callCallbacks(to,ro))}getVal(){return this._val}trigger(to,ro){this._callCallbacks(to,ro)}_callCallbacks(to,ro){this._callbacks.forEach(no=>no(to,ro))}}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */class FocusableAPI{constructor(to){this._tabster=to}dispose(){}getProps(to){const ro=getTabsterOnElement(this._tabster,to);return ro&&ro.focusable||{}}isFocusable(to,ro,no,oo){return matchesSelector(to,FocusableSelector)&&(ro||to.tabIndex!==-1)?(no||this.isVisible(to))&&(oo||this.isAccessible(to)):!1}isVisible(to){if(!to.ownerDocument||to.nodeType!==Node.ELEMENT_NODE||to.offsetParent===null&&to.ownerDocument.body!==to)return!1;const ro=to.ownerDocument.defaultView;if(!ro)return!1;const no=to.ownerDocument.body.getBoundingClientRect();return!(no.width===0&&no.height===0||ro.getComputedStyle(to).visibility==="hidden")}isAccessible(to){var ro;for(let no=to;no;no=no.parentElement){const oo=getTabsterOnElement(this._tabster,no);if(this._isHidden(no)||!((ro=oo==null?void 0:oo.focusable)===null||ro===void 0?void 0:ro.ignoreAriaDisabled)&&this._isDisabled(no))return!1}return!0}_isDisabled(to){return to.hasAttribute("disabled")}_isHidden(to){var ro;const no=to.getAttribute("aria-hidden");return!!(no&&no.toLowerCase()==="true"&&!(!((ro=this._tabster.modalizer)===null||ro===void 0)&&ro.isAugmented(to)))}findFirst(to,ro){return this.findElement({...to},ro)}findLast(to,ro){return this.findElement({isBackward:!0,...to},ro)}findNext(to,ro){return this.findElement({...to},ro)}findPrev(to,ro){return this.findElement({...to,isBackward:!0},ro)}findDefault(to,ro){return this.findElement({...to,acceptCondition:no=>this.isFocusable(no,to.includeProgrammaticallyFocusable)&&!!this.getProps(no).isDefault},ro)||null}findAll(to){return this._findElements(!0,to)||[]}findElement(to,ro){const no=this._findElements(!1,to,ro);return no&&no[0]}_findElements(to,ro,no){var oo,io,so;const{container:ao,currentElement:lo=null,includeProgrammaticallyFocusable:uo,useActiveModalizer:co,ignoreAccessibility:fo,modalizerId:po,isBackward:ho,onElement:mo}=ro;no||(no={});const vo=[];let{acceptCondition:bo}=ro;const xo=!!bo;if(!ao)return null;bo||(bo=ko=>this.isFocusable(ko,uo,!1,fo));const _o={container:ao,modalizerUserId:po===void 0&&co?(oo=this._tabster.modalizer)===null||oo===void 0?void 0:oo.activeId:po||((so=(io=RootAPI.getTabsterContext(this._tabster,ao))===null||io===void 0?void 0:io.modalizer)===null||so===void 0?void 0:so.userId),from:lo||ao,isBackward:ho,acceptCondition:bo,hasCustomCondition:xo,includeProgrammaticallyFocusable:uo,ignoreAccessibility:fo,cachedGrouppers:{}},So=createElementTreeWalker(ao.ownerDocument,ao,ko=>this._acceptElement(ko,_o));if(!So)return null;const Eo=ko=>{var wo,Co;const Ro=(wo=_o.foundElement)!==null&&wo!==void 0?wo:_o.foundBackward;return Ro&&vo.push(Ro),to?Ro&&(_o.found=!1,delete _o.foundElement,delete _o.foundBackward,delete _o.fromCtx,_o.from=Ro,mo&&!mo(Ro))?!1:!!(Ro||ko):(Ro&&no&&(no.uncontrolled=(Co=RootAPI.getTabsterContext(this._tabster,Ro))===null||Co===void 0?void 0:Co.uncontrolled),!!(ko&&!Ro))};if(lo||(no.outOfDOMOrder=!0),lo)So.currentNode=lo;else if(ho){const ko=getLastChild(ao);if(!ko)return null;if(this._acceptElement(ko,_o)===NodeFilter.FILTER_ACCEPT&&!Eo(!0))return _o.skippedFocusable&&(no.outOfDOMOrder=!0),vo;So.currentNode=ko}do ho?So.previousNode():So.nextNode();while(Eo());return _o.skippedFocusable&&(no.outOfDOMOrder=!0),vo.length?vo:null}_acceptElement(to,ro){var no,oo,io,so;if(ro.found)return NodeFilter.FILTER_ACCEPT;const ao=ro.foundBackward;if(ao&&(to===ao||!ao.contains(to)))return ro.found=!0,ro.foundElement=ao,NodeFilter.FILTER_ACCEPT;const lo=ro.container;if(to===lo)return NodeFilter.FILTER_SKIP;if(!lo.contains(to)||to.__tabsterDummyContainer||!((no=ro.rejectElementsFrom)===null||no===void 0)&&no.contains(to))return NodeFilter.FILTER_REJECT;const uo=ro.currentCtx=RootAPI.getTabsterContext(this._tabster,to);if(!uo)return NodeFilter.FILTER_SKIP;if(shouldIgnoreFocus(to))return this.isFocusable(to,void 0,!0,!0)&&(ro.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!ro.hasCustomCondition&&(to.tagName==="IFRAME"||to.tagName==="WEBVIEW"))return((oo=uo.modalizer)===null||oo===void 0?void 0:oo.userId)===((io=this._tabster.modalizer)===null||io===void 0?void 0:io.activeId)?(ro.found=!0,ro.rejectElementsFrom=ro.foundElement=to,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!ro.ignoreAccessibility&&!this.isAccessible(to))return this.isFocusable(to,!1,!0,!0)&&(ro.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let co,fo=ro.fromCtx;fo||(fo=ro.fromCtx=RootAPI.getTabsterContext(this._tabster,ro.from));const po=fo==null?void 0:fo.mover;let ho=uo.groupper,mo=uo.mover;if(co=(so=this._tabster.modalizer)===null||so===void 0?void 0:so.acceptElement(to,ro),co!==void 0&&(ro.skippedFocusable=!0),co===void 0&&(ho||mo||po)){const vo=ho==null?void 0:ho.getElement(),bo=po==null?void 0:po.getElement();let xo=mo==null?void 0:mo.getElement();xo&&(bo!=null&&bo.contains(xo))&&lo.contains(bo)&&(!vo||!mo||bo.contains(vo))&&(mo=po,xo=bo),vo&&(vo===lo||!lo.contains(vo))&&(ho=void 0),xo&&!lo.contains(xo)&&(mo=void 0),ho&&mo&&(xo&&vo&&!vo.contains(xo)?mo=void 0:ho=void 0),ho&&(co=ho.acceptElement(to,ro)),mo&&(co=mo.acceptElement(to,ro))}return co===void 0&&(co=ro.acceptCondition(to)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,co===NodeFilter.FILTER_SKIP&&this.isFocusable(to,!1,!0,!0)&&(ro.skippedFocusable=!0)),co===NodeFilter.FILTER_ACCEPT&&!ro.found&&(ro.isBackward?(ro.foundBackward=to,co=NodeFilter.FILTER_SKIP):(ro.found=!0,ro.foundElement=to)),co}}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */const Keys={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 getUncontrolledCompletelyContainer(eo,to){var ro;const no=eo.getParent;let oo=to;do{const io=(ro=getTabsterOnElement(eo,oo))===null||ro===void 0?void 0:ro.uncontrolled;if(io&&eo.uncontrolled.isUncontrolledCompletely(oo,!!io.completely))return oo;oo=no(oo)}while(oo)}class FocusedElementState extends Subscribable{constructor(to,ro){super(),this._init=()=>{const no=this._win(),oo=no.document;oo.addEventListener(KEYBORG_FOCUSIN,this._onFocusIn,!0),oo.addEventListener("focusout",this._onFocusOut,!0),no.addEventListener("keydown",this._onKeyDown,!0);const io=oo.activeElement;io&&io!==oo.body&&this._setFocusedElement(io),this.subscribe(this._onChanged)},this._onFocusIn=no=>{this._setFocusedElement(no.target,no.details.relatedTarget,no.details.isFocusedProgrammatically)},this._onFocusOut=no=>{this._setFocusedElement(void 0,no.relatedTarget)},this._validateFocusedElement=no=>{},this._onKeyDown=no=>{if(no.keyCode!==Keys.Tab||no.ctrlKey)return;const oo=this.getVal();if(!oo||!oo.ownerDocument||oo.contentEditable==="true")return;const io=this._tabster,so=io.controlTab,ao=RootAPI.getTabsterContext(io,oo);if(!ao||ao.ignoreKeydown(no))return;const lo=no.shiftKey,uo=FocusedElementState.findNextTabbable(io,ao,void 0,oo,void 0,lo,!0),co=ao.root.getElement();if(!co)return;const fo=uo==null?void 0:uo.element,po=getUncontrolledCompletelyContainer(io,oo);if(fo){const ho=uo.uncontrolled;if(ao.uncontrolled||ho!=null&&ho.contains(oo)){if(!uo.outOfDOMOrder&&ho===ao.uncontrolled||po&&!po.contains(fo))return;DummyInputManager.addPhantomDummyWithTarget(io,oo,lo,fo);return}if(ho||fo.tagName==="IFRAME"){triggerMoveFocusEvent({by:"root",owner:co,next:fo,relatedEvent:no})&&DummyInputManager.moveWithPhantomDummy(this._tabster,ho??fo,!1,lo,no);return}(so||uo!=null&&uo.outOfDOMOrder)&&triggerMoveFocusEvent({by:"root",owner:co,next:fo,relatedEvent:no})&&(no.preventDefault(),no.stopImmediatePropagation(),nativeFocus(fo))}else!po&&triggerMoveFocusEvent({by:"root",owner:co,next:null,relatedEvent:no})&&ao.root.moveOutWithDefaultAction(lo,no)},this._onChanged=(no,oo)=>{var io,so;if(no)triggerEvent(no,FocusInEventName,oo);else{const ao=(io=this._lastVal)===null||io===void 0?void 0:io.get();if(ao){const lo={...oo},uo=RootAPI.getTabsterContext(this._tabster,ao),co=(so=uo==null?void 0:uo.modalizer)===null||so===void 0?void 0:so.userId;co&&(lo.modalizerId=co),triggerEvent(ao,FocusOutEventName,lo)}}},this._tabster=to,this._win=ro,to.queueInit(this._init)}dispose(){super.dispose();const to=this._win();to.document.removeEventListener(KEYBORG_FOCUSIN,this._onFocusIn,!0),to.document.removeEventListener("focusout",this._onFocusOut,!0),to.removeEventListener("keydown",this._onKeyDown,!0),this.unsubscribe(this._onChanged),delete FocusedElementState._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(to,ro){var no,oo;let io=FocusedElementState._lastResetElement,so=io&&io.get();so&&ro.contains(so)&&delete FocusedElementState._lastResetElement,so=(oo=(no=to._nextVal)===null||no===void 0?void 0:no.element)===null||oo===void 0?void 0:oo.get(),so&&ro.contains(so)&&delete to._nextVal,io=to._lastVal,so=io&&io.get(),so&&ro.contains(so)&&delete to._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){var to;let ro=(to=this._lastVal)===null||to===void 0?void 0:to.get();return(!ro||ro&&!documentContains(ro.ownerDocument,ro))&&(this._lastVal=ro=void 0),ro}focus(to,ro,no){return this._tabster.focusable.isFocusable(to,ro,!1,no)?(to.focus(),!0):!1}focusDefault(to){const ro=this._tabster.focusable.findDefault({container:to});return ro?(this._tabster.focusedElement.focus(ro),!0):!1}getFirstOrLastTabbable(to,ro){var no;const{container:oo,ignoreAccessibility:io}=ro;let so;if(oo){const ao=RootAPI.getTabsterContext(this._tabster,oo);ao&&(so=(no=FocusedElementState.findNextTabbable(this._tabster,ao,oo,void 0,void 0,!to,io))===null||no===void 0?void 0:no.element)}return so&&!(oo!=null&&oo.contains(so))&&(so=void 0),so||void 0}_focusFirstOrLast(to,ro){const no=this.getFirstOrLastTabbable(to,ro);return no?(this.focus(no,!1,!0),!0):!1}focusFirst(to){return this._focusFirstOrLast(!0,to)}focusLast(to){return this._focusFirstOrLast(!1,to)}resetFocus(to){if(!this._tabster.focusable.isVisible(to))return!1;if(this._tabster.focusable.isFocusable(to,!0,!0,!0))this.focus(to);else{const ro=to.getAttribute("tabindex"),no=to.getAttribute("aria-hidden");to.tabIndex=-1,to.setAttribute("aria-hidden","true"),FocusedElementState._lastResetElement=new WeakHTMLElement(this._win,to),this.focus(to,!0,!0),this._setOrRemoveAttribute(to,"tabindex",ro),this._setOrRemoveAttribute(to,"aria-hidden",no)}return!0}_setOrRemoveAttribute(to,ro,no){no===null?to.removeAttribute(ro):to.setAttribute(ro,no)}_setFocusedElement(to,ro,no){var oo,io;if(this._tabster._noop)return;const so={relatedTarget:ro};if(to){const lo=(oo=FocusedElementState._lastResetElement)===null||oo===void 0?void 0:oo.get();if(FocusedElementState._lastResetElement=void 0,lo===to||shouldIgnoreFocus(to))return;so.isFocusedProgrammatically=no;const uo=RootAPI.getTabsterContext(this._tabster,to),co=(io=uo==null?void 0:uo.modalizer)===null||io===void 0?void 0:io.userId;co&&(so.modalizerId=co)}const ao=this._nextVal={element:to?new WeakHTMLElement(this._win,to):void 0,details:so};to&&to!==this._val&&this._validateFocusedElement(to),this._nextVal===ao&&this.setVal(to,so),this._nextVal=void 0}setVal(to,ro){super.setVal(to,ro),to&&(this._lastVal=new WeakHTMLElement(this._win,to))}static findNextTabbable(to,ro,no,oo,io,so,ao){const lo=no||ro.root.getElement();if(!lo)return null;let uo=null;const co=FocusedElementState._isTabbingTimer,fo=to.getWindow();co&&fo.clearTimeout(co),FocusedElementState.isTabbing=!0,FocusedElementState._isTabbingTimer=fo.setTimeout(()=>{delete FocusedElementState._isTabbingTimer,FocusedElementState.isTabbing=!1},0);const po=ro.modalizer,ho=ro.groupper,mo=ro.mover,vo=bo=>{var xo;if(uo=bo.findNextTabbable(oo,io,so,ao),oo&&!(uo!=null&&uo.element)){const _o=bo!==po&&((xo=bo.getElement())===null||xo===void 0?void 0:xo.parentElement);if(_o){const So=RootAPI.getTabsterContext(to,oo,{referenceElement:_o});if(So){const Eo=bo.getElement(),ko=so?Eo:Eo&&getLastChild(Eo)||Eo;ko&&(uo=FocusedElementState.findNextTabbable(to,So,no,ko,_o,so,ao),uo&&(uo.outOfDOMOrder=!0))}}}};if(ho&&mo)vo(ro.groupperBeforeMover?ho:mo);else if(ho)vo(ho);else if(mo)vo(mo);else if(po)vo(po);else{const bo={container:lo,currentElement:oo,referenceElement:io,ignoreAccessibility:ao,useActiveModalizer:!0},xo={};uo={element:to.focusable[so?"findPrev":"findNext"](bo,xo),outOfDOMOrder:xo.outOfDOMOrder,uncontrolled:xo.uncontrolled}}return uo}}FocusedElementState.isTabbing=!1;/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */class GroupperDummyManager extends DummyInputManager{constructor(to,ro,no,oo){super(no,to,DummyInputManagerPriorities.Groupper,oo,!0),this._setHandlers((io,so,ao)=>{var lo,uo;const co=to.get(),fo=io.input;if(co&&fo){const po=RootAPI.getTabsterContext(no,fo);if(po){let ho;ho=(lo=ro.findNextTabbable(ao||void 0,void 0,so,!0))===null||lo===void 0?void 0:lo.element,ho||(ho=(uo=FocusedElementState.findNextTabbable(no,po,void 0,io.isOutside?fo:getAdjacentElement(co,!so),void 0,so,!0))===null||uo===void 0?void 0:uo.element),ho&&nativeFocus(ho)}}})}}class Groupper extends TabsterPart{constructor(to,ro,no,oo,io){super(to,ro,oo),this._shouldTabInside=!1,this.makeTabbable(!1),this._onDispose=no,to.controlTab||(this.dummyManager=new GroupperDummyManager(this._element,this,to,io))}dispose(){var to;this._onDispose(this),this._element.get(),(to=this.dummyManager)===null||to===void 0||to.dispose(),delete this.dummyManager,delete this._first}findNextTabbable(to,ro,no,oo){var io;const so=this.getElement();if(!so)return null;const ao=((io=to==null?void 0:to.__tabsterDummyContainer)===null||io===void 0?void 0:io.get())===so;if(!this._shouldTabInside&&to&&so.contains(to)&&!ao)return{element:void 0,outOfDOMOrder:!0};const lo=this.getFirst(!0);if(!to||!so.contains(to)||ao)return{element:lo,outOfDOMOrder:!0};const uo=this._tabster;let co=null,fo=!1,po;if(this._shouldTabInside&&lo){const ho={container:so,currentElement:to,referenceElement:ro,ignoreAccessibility:oo,useActiveModalizer:!0},mo={};co=uo.focusable[no?"findPrev":"findNext"](ho,mo),fo=!!mo.outOfDOMOrder,!co&&this._props.tabbability===GroupperTabbabilities.LimitedTrapFocus&&(co=uo.focusable[no?"findLast":"findFirst"]({container:so,ignoreAccessibility:oo,useActiveModalizer:!0},mo),fo=!0),po=mo.uncontrolled}return{element:co,uncontrolled:po,outOfDOMOrder:fo}}makeTabbable(to){this._shouldTabInside=to||!this._props.tabbability}isActive(to){var ro;const no=this.getElement()||null;let oo=!0;for(let so=no==null?void 0:no.parentElement;so;so=so.parentElement){const ao=(ro=getTabsterOnElement(this._tabster,so))===null||ro===void 0?void 0:ro.groupper;ao&&(ao._shouldTabInside||(oo=!1))}let io=oo?this._props.tabbability?this._shouldTabInside:!1:void 0;if(io&&to){const so=this._tabster.focusedElement.getFocusedElement();so&&(io=so!==this.getFirst(!0))}return io}getFirst(to){var ro;const no=this.getElement();let oo;if(no){if(to&&this._tabster.focusable.isFocusable(no))return no;oo=(ro=this._first)===null||ro===void 0?void 0:ro.get(),oo||(oo=this._tabster.focusable.findFirst({container:no,useActiveModalizer:!0})||void 0,oo&&this.setFirst(oo))}return oo}setFirst(to){to?this._first=new WeakHTMLElement(this._tabster.getWindow,to):delete this._first}acceptElement(to,ro){var no;const oo=ro.cachedGrouppers,io=(no=this.getElement())===null||no===void 0?void 0:no.parentElement,so=io&&RootAPI.getTabsterContext(this._tabster,io),ao=so==null?void 0:so.groupper,lo=so!=null&&so.groupperBeforeMover?ao:void 0;let uo;const co=ho=>{let mo=oo[ho.id],vo;return mo?vo=mo.isActive:(vo=this.isActive(!0),mo=oo[ho.id]={isActive:vo}),vo};if(lo&&(uo=lo.getElement(),!co(lo)&&uo&&ro.container!==uo&&ro.container.contains(uo)))return ro.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const fo=co(this),po=this.getElement();if(po&&fo!==!0){if(po===to&&ao&&(uo||(uo=ao.getElement()),uo&&!co(ao)&&ro.container.contains(uo)&&uo!==ro.container)||po!==to&&po.contains(to))return ro.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const ho=oo[this.id];let mo;if("first"in ho?mo=ho.first:mo=ho.first=this.getFirst(!0),mo&&ro.acceptCondition(mo))return ro.rejectElementsFrom=po,ro.skippedFocusable=!0,mo!==ro.from?(ro.found=!0,ro.foundElement=mo,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT}}}class GroupperAPI{constructor(to,ro){this._current={},this._grouppers={},this._init=()=>{const no=this._win();this._tabster.focusedElement.subscribeFirst(this._onFocus),no.document.addEventListener("mousedown",this._onMouseDown,!0),no.addEventListener("keydown",this._onKeyDown,!0)},this._onGroupperDispose=no=>{delete this._grouppers[no.id]},this._onFocus=no=>{no&&this._updateCurrent(no,!0,!0)},this._onMouseDown=no=>{no.target&&this._updateCurrent(no.target,!0)},this._onKeyDown=no=>{if(no.keyCode!==Keys.Enter&&no.keyCode!==Keys.Esc||no.ctrlKey||no.altKey||no.shiftKey||no.metaKey)return;const oo=this._tabster.focusedElement.getFocusedElement();oo&&this.handleKeyPress(oo,no)},this._tabster=to,this._win=ro,to.queueInit(this._init)}dispose(){const to=this._win();this._handleKeyPressTimer&&(to.clearTimeout(this._handleKeyPressTimer),delete this._handleKeyPressTimer),this._current={},this._updateTimer&&(to.clearTimeout(this._updateTimer),delete this._updateTimer),this._tabster.focusedElement.unsubscribe(this._onFocus),to.document.removeEventListener("mousedown",this._onMouseDown,!0),to.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._grouppers).forEach(ro=>{this._grouppers[ro]&&(this._grouppers[ro].dispose(),delete this._grouppers[ro])})}createGroupper(to,ro,no){const oo=new Groupper(this._tabster,to,this._onGroupperDispose,ro,no);this._grouppers[oo.id]=oo;const io=this._tabster.focusedElement.getFocusedElement();return io&&to.contains(io)&&!this._updateTimer&&(this._updateTimer=this._win().setTimeout(()=>{delete this._updateTimer,io===this._tabster.focusedElement.getFocusedElement()&&this._updateCurrent(io,!0,!0)},0)),oo}forgetCurrentGrouppers(){this._current={}}_updateCurrent(to,ro,no){var oo;this._updateTimer&&(this._win().clearTimeout(this._updateTimer),delete this._updateTimer);const io={};let so=!0;for(let ao=to;ao;ao=ao.parentElement){const lo=(oo=getTabsterOnElement(this._tabster,ao))===null||oo===void 0?void 0:oo.groupper;if(lo){if(io[lo.id]=!0,so&&no&&ao!==to&&(so=!1),ro||!so){this._current[lo.id]=lo;const uo=lo.isActive()||to!==ao&&(!lo.getProps().delegated||lo.getFirst(!1)!==to);lo.makeTabbable(uo)}so=!1}}for(const ao of Object.keys(this._current)){const lo=this._current[ao];lo.id in io||(lo.makeTabbable(!1),lo.setFirst(void 0),delete this._current[ao])}}handleKeyPress(to,ro,no){const oo=this._tabster,io=RootAPI.getTabsterContext(oo,to),so=io==null?void 0:io.modalizerInGroupper;let ao=(io==null?void 0:io.groupper)||so;if(io&&ao){const lo=this._win();if(this._handleKeyPressTimer&&(lo.clearTimeout(this._handleKeyPressTimer),delete this._handleKeyPressTimer),io.ignoreKeydown(ro))return;let uo;const co=ao.getElement();if(ro.keyCode===Keys.Enter)co&&(to===co||ao.getProps().delegated&&to===ao.getFirst(!1))&&(uo=oo.focusable.findNext({container:co,currentElement:to,useActiveModalizer:!0})),uo&&co&&triggerMoveFocusEvent({by:"groupper",owner:co,next:uo,relatedEvent:ro})&&(ro.preventDefault(),ro.stopImmediatePropagation(),uo.focus());else if(ro.keyCode===Keys.Esc){const fo=oo.focusedElement.getFocusedElement();this._handleKeyPressTimer=lo.setTimeout(()=>{var po;if(delete this._handleKeyPressTimer,fo===oo.focusedElement.getFocusedElement()&&ao&&co&&co.contains(to)){if(to!==co||no)uo=ao.getFirst(!0);else{const ho=co.parentElement,mo=ho?RootAPI.getTabsterContext(oo,ho):void 0;ao=mo==null?void 0:mo.groupper,uo=ao==null?void 0:ao.getFirst(!0)}uo&&triggerMoveFocusEvent({by:"groupper",owner:co,next:uo,relatedEvent:ro})&&(ao&&(ao.makeTabbable(!1),so&&((po=oo.modalizer)===null||po===void 0||po.setActive(void 0))),uo.focus())}},0)}}}}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */class KeyboardNavigationState extends Subscribable{constructor(to){super(),this._onChange=ro=>{this.setVal(ro,void 0)},this._keyborg=createKeyborg(to()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),disposeKeyborg(this._keyborg),delete this._keyborg)}setNavigatingWithKeyboard(to){var ro;(ro=this._keyborg)===null||ro===void 0||ro.setVal(to)}isNavigatingWithKeyboard(){var to;return!!(!((to=this._keyborg)===null||to===void 0)&&to.isNavigatingWithKeyboard())}}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */let _wasFocusedCounter=0;const _ariaHidden="aria-hidden";class ModalizerDummyManager extends DummyInputManager{constructor(to,ro,no){super(ro,to,DummyInputManagerPriorities.Modalizer,no),this._setHandlers((oo,io)=>{var so,ao,lo;const uo=to.get(),co=uo&&((so=RootAPI.getRoot(ro,uo))===null||so===void 0?void 0:so.getElement()),fo=oo.input;let po;if(co&&fo){const ho=(ao=fo.__tabsterDummyContainer)===null||ao===void 0?void 0:ao.get(),mo=RootAPI.getTabsterContext(ro,ho||fo);mo&&(po=(lo=FocusedElementState.findNextTabbable(ro,mo,co,fo,void 0,io,!0))===null||lo===void 0?void 0:lo.element),po&&nativeFocus(po)}})}}class Modalizer extends TabsterPart{constructor(to,ro,no,oo,io,so){super(to,ro,oo),this._wasFocused=0,this.userId=oo.id,this._onDispose=no,this._activeElements=so,to.controlTab||(this.dummyManager=new ModalizerDummyManager(this._element,to,io))}makeActive(to){if(this._isActive!==to){this._isActive=to;const ro=this.getElement();if(ro){const no=this._activeElements,oo=no.map(io=>io.get()).indexOf(ro);to?oo<0&&no.push(new WeakHTMLElement(this._tabster.getWindow,ro)):oo>=0&&no.splice(oo,1)}this.triggerFocusEvent(to?ModalizerActiveEventName:ModalizerInactiveEventName)}}focused(to){return to||(this._wasFocused=++_wasFocusedCounter),this._wasFocused}setProps(to){to.id&&(this.userId=to.id),this._props={...to}}dispose(){var to;this.makeActive(!1),this._onDispose(this),(to=this.dummyManager)===null||to===void 0||to.dispose(),delete this.dummyManager,this._activeElements=[],this._remove()}isActive(){return!!this._isActive}contains(to){var ro;return!!(!((ro=this.getElement())===null||ro===void 0)&&ro.contains(to))}findNextTabbable(to,ro,no,oo){var io,so;if(!this.getElement())return null;const lo=this._tabster;let uo=null,co=!1,fo;const po=to&&((io=RootAPI.getRoot(lo,to))===null||io===void 0?void 0:io.getElement());if(po){const ho={container:po,currentElement:to,referenceElement:ro,ignoreAccessibility:oo,useActiveModalizer:!0},mo={};uo=lo.focusable[no?"findPrev":"findNext"](ho,mo),!uo&&this._props.isTrapped&&(!((so=lo.modalizer)===null||so===void 0)&&so.activeId)?(uo=lo.focusable[no?"findLast":"findFirst"]({container:po,ignoreAccessibility:oo,useActiveModalizer:!0},mo),co=!0):co=!!mo.outOfDOMOrder,fo=mo.uncontrolled}return{element:uo,uncontrolled:fo,outOfDOMOrder:co}}triggerFocusEvent(to,ro){const no=this.getElement();let oo=!1;if(no){const io=ro?this._activeElements.map(so=>so.get()):[no];for(const so of io)so&&!triggerEvent(so,to,{id:this.userId,element:no,eventName:to})&&(oo=!0)}return oo}_remove(){}}class ModalizerAPI{constructor(to,ro,no){this._onModalizerDispose=io=>{const so=io.id,ao=io.userId,lo=this._parts[ao];delete this._modalizers[so],lo&&(delete lo[so],Object.keys(lo).length===0&&(delete this._parts[ao],this.activeId===ao&&this.setActive(void 0)))},this._onKeyDown=io=>{var so;if(io.keyCode!==Keys.Esc)return;const ao=this._tabster,lo=ao.focusedElement.getFocusedElement();if(lo){const uo=RootAPI.getTabsterContext(ao,lo),co=uo==null?void 0:uo.modalizer;if(uo&&!uo.groupper&&(co!=null&&co.isActive())&&!uo.ignoreKeydown(io)){const fo=co.userId;if(fo){const po=this._parts[fo];if(po){const ho=Object.keys(po).map(mo=>{var vo;const bo=po[mo],xo=bo.getElement();let _o;return xo&&(_o=(vo=getTabsterOnElement(this._tabster,xo))===null||vo===void 0?void 0:vo.groupper),bo&&xo&&_o?{el:xo,focusedSince:bo.focused(!0)}:{focusedSince:0}}).filter(mo=>mo.focusedSince>0).sort((mo,vo)=>mo.focusedSince>vo.focusedSince?-1:mo.focusedSince{var ao,lo;const uo=io&&RootAPI.getTabsterContext(this._tabster,io);if(!uo||!io)return;const co=this._augMap;for(let po=io;po;po=po.parentElement)co.has(po)&&(co.delete(po),augmentAttribute(this._tabster,po,_ariaHidden));const fo=uo.modalizer;if((lo=fo||((ao=getTabsterOnElement(this._tabster,io))===null||ao===void 0?void 0:ao.modalizer))===null||lo===void 0||lo.focused(),(fo==null?void 0:fo.userId)===this.activeId){this.currentIsOthersAccessible=fo==null?void 0:fo.getProps().isOthersAccessible;return}if(so.isFocusedProgrammatically||this.currentIsOthersAccessible||fo!=null&&fo.getProps().isAlwaysAccessible)this.setActive(fo);else{const po=this._win();po.clearTimeout(this._restoreModalizerFocusTimer),this._restoreModalizerFocusTimer=po.setTimeout(()=>this._restoreModalizerFocus(io),100)}},this._tabster=to,this._win=to.getWindow,this._modalizers={},this._parts={},this._augMap=new WeakMap,this._aug=[],this._alwaysAccessibleSelector=ro,this._accessibleCheck=no,this.activeElements=[],to.controlTab||to.root.addDummyInputs(),this._win().addEventListener("keydown",this._onKeyDown,!0),to.queueInit(()=>{this._tabster.focusedElement.subscribe(this._onFocus)})}dispose(){const to=this._win();to.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._modalizers).forEach(ro=>{this._modalizers[ro]&&(this._modalizers[ro].dispose(),delete this._modalizers[ro])}),to.clearTimeout(this._restoreModalizerFocusTimer),to.clearTimeout(this._hiddenUpdateTimer),this._parts={},delete this.activeId,this.activeElements=[],this._augMap=new WeakMap,this._aug=[],this._tabster.focusedElement.unsubscribe(this._onFocus)}createModalizer(to,ro,no){var oo;const io=new Modalizer(this._tabster,to,this._onModalizerDispose,ro,no,this.activeElements),so=io.id,ao=ro.id;this._modalizers[so]=io;let lo=this._parts[ao];return lo||(lo=this._parts[ao]={}),lo[so]=io,to.contains((oo=this._tabster.focusedElement.getFocusedElement())!==null&&oo!==void 0?oo:null)&&(ao!==this.activeId?this.setActive(io):io.makeActive(!0)),io}isAugmented(to){return this._augMap.has(to)}hiddenUpdate(){this._hiddenUpdateTimer||(this._hiddenUpdateTimer=this._win().setTimeout(()=>{delete this._hiddenUpdateTimer,this._hiddenUpdate()},250))}setActive(to){const ro=to==null?void 0:to.userId,no=this.activeId;if(no!==ro){if(this.activeId=ro,no){const oo=this._parts[no];if(oo)for(const io of Object.keys(oo))oo[io].makeActive(!1)}if(ro){const oo=this._parts[ro];if(oo)for(const io of Object.keys(oo))oo[io].makeActive(!0)}this.currentIsOthersAccessible=to==null?void 0:to.getProps().isOthersAccessible,this.hiddenUpdate()}}focus(to,ro,no){const oo=RootAPI.getTabsterContext(this._tabster,to),io=oo==null?void 0:oo.modalizer;if(io){this.setActive(io);const so=io.getProps(),ao=io.getElement();if(ao){if(ro===void 0&&(ro=so.isNoFocusFirst),!ro&&this._tabster.keyboardNavigation.isNavigatingWithKeyboard()&&this._tabster.focusedElement.focusFirst({container:ao})||(no===void 0&&(no=so.isNoFocusDefault),!no&&this._tabster.focusedElement.focusDefault(ao)))return!0;this._tabster.focusedElement.resetFocus(ao)}}return!1}acceptElement(to,ro){var no;const oo=ro.modalizerUserId,io=(no=ro.currentCtx)===null||no===void 0?void 0:no.modalizer;if(oo)for(const ao of this.activeElements){const lo=ao.get();if(lo&&(to.contains(lo)||lo===to))return NodeFilter.FILTER_SKIP}const so=oo===(io==null?void 0:io.userId)||!oo&&(io!=null&&io.getProps().isAlwaysAccessible)?void 0:NodeFilter.FILTER_SKIP;return so!==void 0&&(ro.skippedFocusable=!0),so}_hiddenUpdate(){var to;const ro=this._tabster,no=ro.getWindow().document.body,oo=this.activeId,io=this._parts,so=[],ao=[],lo=this._alwaysAccessibleSelector,uo=lo?Array.from(no.querySelectorAll(lo)):[],co=[];for(const xo of Object.keys(io)){const _o=io[xo];for(const So of Object.keys(_o)){const Eo=_o[So],ko=Eo.getElement(),Co=Eo.getProps().isAlwaysAccessible;ko&&(xo===oo?(co.push(ko),this.currentIsOthersAccessible||so.push(ko)):Co?uo.push(ko):ao.push(ko))}}const fo=this._augMap,po=so.length>0?[...so,...uo]:void 0,ho=[],mo=new WeakMap,vo=(xo,_o)=>{var So;const Eo=xo.tagName;if(Eo==="SCRIPT"||Eo==="STYLE")return;let ko=!1;fo.has(xo)?_o?ko=!0:(fo.delete(xo),augmentAttribute(ro,xo,_ariaHidden)):_o&&!(!((So=this._accessibleCheck)===null||So===void 0)&&So.call(this,xo,co))&&augmentAttribute(ro,xo,_ariaHidden,"true")&&(fo.set(xo,!0),ko=!0),ko&&(ho.push(new WeakHTMLElement(ro.getWindow,xo)),mo.set(xo,!0))},bo=xo=>{for(let _o=xo.firstElementChild;_o;_o=_o.nextElementSibling){let So=!1,Eo=!1;if(po){for(const ko of po){if(_o===ko){So=!0;break}if(_o.contains(ko)){Eo=!0;break}}Eo?bo(_o):So||vo(_o,!0)}else vo(_o,!1)}};po||uo.forEach(xo=>vo(xo,!1)),ao.forEach(xo=>vo(xo,!0)),no&&bo(no),(to=this._aug)===null||to===void 0||to.map(xo=>xo.get()).forEach(xo=>{xo&&!mo.get(xo)&&vo(xo,!1)}),this._aug=ho,this._augMap=mo}_restoreModalizerFocus(to){const ro=to==null?void 0:to.ownerDocument;if(!to||!ro)return;const no=RootAPI.getTabsterContext(this._tabster,to),oo=no==null?void 0:no.modalizer,io=this.activeId;if(!oo&&!io||oo&&io===oo.userId)return;const so=no==null?void 0:no.root.getElement();if(so){let ao=this._tabster.focusable.findFirst({container:so,useActiveModalizer:!0});if(ao){if(to.compareDocumentPosition(ao)&document.DOCUMENT_POSITION_PRECEDING&&(ao=this._tabster.focusable.findLast({container:so,useActiveModalizer:!0}),!ao))throw new Error("Something went wrong.");this._tabster.focusedElement.focus(ao);return}}to.blur()}}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */const _inputSelector=["input","textarea","*[contenteditable]"].join(", ");class MoverDummyManager extends DummyInputManager{constructor(to,ro,no,oo){super(ro,to,DummyInputManagerPriorities.Mover,oo),this._onFocusDummyInput=io=>{var so,ao;const lo=this._element.get(),uo=io.input;if(lo&&uo){const co=RootAPI.getTabsterContext(this._tabster,lo);let fo;co&&(fo=(so=FocusedElementState.findNextTabbable(this._tabster,co,void 0,uo,void 0,!io.isFirst,!0))===null||so===void 0?void 0:so.element);const po=(ao=this._getMemorized())===null||ao===void 0?void 0:ao.get();po&&(fo=po),fo&&nativeFocus(fo)}},this._tabster=ro,this._getMemorized=no,this._setHandlers(this._onFocusDummyInput)}}const _moverUpdateAdd=1,_moverUpdateAttr=2,_moverUpdateRemove=3;class Mover extends TabsterPart{constructor(to,ro,no,oo,io){var so;super(to,ro,oo),this._visible={},this._onIntersection=lo=>{for(const uo of lo){const co=uo.target,fo=getElementUId(this._win,co);let po,ho=this._fullyVisible;if(uo.intersectionRatio>=.25?(po=uo.intersectionRatio>=.75?Visibilities.Visible:Visibilities.PartiallyVisible,po===Visibilities.Visible&&(ho=fo)):po=Visibilities.Invisible,this._visible[fo]!==po){po===void 0?(delete this._visible[fo],ho===fo&&delete this._fullyVisible):(this._visible[fo]=po,this._fullyVisible=ho);const mo=this.getState(co);mo&&triggerEvent(co,MoverEventName,mo)}}},this._win=to.getWindow,this.visibilityTolerance=(so=oo.visibilityTolerance)!==null&&so!==void 0?so:.8,(this._props.trackState||this._props.visibilityAware)&&(this._intersectionObserver=new IntersectionObserver(this._onIntersection,{threshold:[0,.25,.5,.75,1]}),this._observeState()),this._onDispose=no;const ao=()=>oo.memorizeCurrent?this._current:void 0;to.controlTab||(this.dummyManager=new MoverDummyManager(this._element,to,ao,io))}dispose(){var to;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 ro=this._win();this._setCurrentTimer&&(ro.clearTimeout(this._setCurrentTimer),delete this._setCurrentTimer),this._updateTimer&&(ro.clearTimeout(this._updateTimer),delete this._updateTimer),(to=this.dummyManager)===null||to===void 0||to.dispose(),delete this.dummyManager}setCurrent(to){to?this._current=new WeakHTMLElement(this._win,to):this._current=void 0,(this._props.trackState||this._props.visibilityAware)&&!this._setCurrentTimer&&(this._setCurrentTimer=this._win().setTimeout(()=>{var ro;delete this._setCurrentTimer;const no=[];this._current!==this._prevCurrent&&(no.push(this._current),no.push(this._prevCurrent),this._prevCurrent=this._current);for(const oo of no){const io=oo==null?void 0:oo.get();if(io&&((ro=this._allElements)===null||ro===void 0?void 0:ro.get(io))===this){const so=this._props;if(io&&(so.visibilityAware!==void 0||so.trackState)){const ao=this.getState(io);ao&&triggerEvent(io,MoverEventName,ao)}}}}))}getCurrent(){var to;return((to=this._current)===null||to===void 0?void 0:to.get())||null}findNextTabbable(to,ro,no,oo){var io;const so=this.getElement(),ao=so&&((io=to==null?void 0:to.__tabsterDummyContainer)===null||io===void 0?void 0:io.get())===so;if(!so)return null;let lo=null,uo=!1,co;if(this._props.tabbable||ao||to&&!so.contains(to)){const fo={currentElement:to,referenceElement:ro,container:so,ignoreAccessibility:oo,useActiveModalizer:!0},po={};lo=this._tabster.focusable[no?"findPrev":"findNext"](fo,po),uo=!!po.outOfDOMOrder,co=po.uncontrolled}return{element:lo,uncontrolled:co,outOfDOMOrder:uo}}acceptElement(to,ro){var no,oo,io;if(!FocusedElementState.isTabbing)return!((no=ro.currentCtx)===null||no===void 0)&&no.excludedFromMover?NodeFilter.FILTER_REJECT:void 0;const{memorizeCurrent:so,visibilityAware:ao,hasDefault:lo=!0}=this._props,uo=this.getElement();if(uo&&(so||ao||lo)&&(!uo.contains(ro.from)||((oo=ro.from.__tabsterDummyContainer)===null||oo===void 0?void 0:oo.get())===uo)){let co;if(so){const fo=(io=this._current)===null||io===void 0?void 0:io.get();fo&&ro.acceptCondition(fo)&&(co=fo)}if(!co&&lo&&(co=this._tabster.focusable.findDefault({container:uo,useActiveModalizer:!0})),!co&&ao&&(co=this._tabster.focusable.findElement({container:uo,useActiveModalizer:!0,isBackward:ro.isBackward,acceptCondition:fo=>{var po;const ho=getElementUId(this._win,fo),mo=this._visible[ho];return uo!==fo&&!!(!((po=this._allElements)===null||po===void 0)&&po.get(fo))&&ro.acceptCondition(fo)&&(mo===Visibilities.Visible||mo===Visibilities.PartiallyVisible&&(ao===Visibilities.PartiallyVisible||!this._fullyVisible))}})),co)return ro.found=!0,ro.foundElement=co,ro.rejectElementsFrom=uo,ro.skippedFocusable=!0,NodeFilter.FILTER_ACCEPT}}_observeState(){const to=this.getElement();if(this._unobserve||!to||typeof MutationObserver>"u")return;const ro=this._win(),no=this._allElements=new WeakMap,oo=this._tabster.focusable;let io=this._updateQueue=[];const so=new MutationObserver(ho=>{for(const mo of ho){const vo=mo.target,bo=mo.removedNodes,xo=mo.addedNodes;if(mo.type==="attributes")mo.attributeName==="tabindex"&&io.push({element:vo,type:_moverUpdateAttr});else{for(let _o=0;_o{var vo,bo;const xo=no.get(ho);xo&&mo&&((vo=this._intersectionObserver)===null||vo===void 0||vo.unobserve(ho),no.delete(ho)),!xo&&!mo&&(no.set(ho,this),(bo=this._intersectionObserver)===null||bo===void 0||bo.observe(ho))},lo=ho=>{const mo=oo.isFocusable(ho);no.get(ho)?mo||ao(ho,!0):mo&&ao(ho)},uo=ho=>{const{mover:mo}=po(ho);if(mo&&mo!==this)if(mo.getElement()===ho&&oo.isFocusable(ho))ao(ho);else return;const vo=createElementTreeWalker(ro.document,ho,bo=>{const{mover:xo,groupper:_o}=po(bo);if(xo&&xo!==this)return NodeFilter.FILTER_REJECT;const So=_o==null?void 0:_o.getFirst(!0);return _o&&_o.getElement()!==bo&&So&&So!==bo?NodeFilter.FILTER_REJECT:(oo.isFocusable(bo)&&ao(bo),NodeFilter.FILTER_SKIP)});if(vo)for(vo.currentNode=ho;vo.nextNode(););},co=ho=>{no.get(ho)&&ao(ho,!0);for(let vo=ho.firstElementChild;vo;vo=vo.nextElementSibling)co(vo)},fo=()=>{!this._updateTimer&&io.length&&(this._updateTimer=ro.setTimeout(()=>{delete this._updateTimer;for(const{element:ho,type:mo}of io)switch(mo){case _moverUpdateAttr:lo(ho);break;case _moverUpdateAdd:uo(ho);break;case _moverUpdateRemove:co(ho);break}io=this._updateQueue=[]},0))},po=ho=>{const mo={};for(let vo=ho;vo;vo=vo.parentElement){const bo=getTabsterOnElement(this._tabster,vo);if(bo&&(bo.groupper&&!mo.groupper&&(mo.groupper=bo.groupper),bo.mover)){mo.mover=bo.mover;break}}return mo};io.push({element:to,type:_moverUpdateAdd}),fo(),so.observe(to,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),this._unobserve=()=>{so.disconnect()}}getState(to){const ro=getElementUId(this._win,to);if(ro in this._visible){const no=this._visible[ro]||Visibilities.Invisible;return{isCurrent:this._current?this._current.get()===to:void 0,visibility:no}}}}function getDistance(eo,to,ro,no,oo,io,so,ao){const lo=ro{this._win().addEventListener("keydown",this._onKeyDown,!0),this._tabster.focusedElement.subscribe(this._onFocus)},this._onMoverDispose=no=>{delete this._movers[no.id]},this._onFocus=no=>{var oo;let io=no,so=no;for(let ao=no==null?void 0:no.parentElement;ao;ao=ao.parentElement){const lo=(oo=getTabsterOnElement(this._tabster,ao))===null||oo===void 0?void 0:oo.mover;lo&&(lo.setCurrent(so),io=void 0),!io&&this._tabster.focusable.isFocusable(ao)&&(io=so=ao)}},this._onKeyDown=async no=>{var oo,io,so,ao;this._ignoredInputTimer&&(this._win().clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),(oo=this._ignoredInputResolve)===null||oo===void 0||oo.call(this,!1);let lo=no.keyCode;if(no.ctrlKey||no.altKey||no.shiftKey||no.metaKey)return;switch(lo){case Keys.Down:case Keys.Right:case Keys.Up:case Keys.Left:case Keys.PageDown:case Keys.PageUp:case Keys.Home:case Keys.End:break;default:return}const uo=this._tabster,co=uo.focusedElement.getFocusedElement();if(!co||await this._isIgnoredInput(co,lo))return;const fo=RootAPI.getTabsterContext(uo,co,{checkRtl:!0});if(!fo||!fo.mover||fo.excludedFromMover||fo.ignoreKeydown(no))return;const po=fo.mover,ho=po.getElement();if(fo.groupperBeforeMover){const Bo=fo.groupper;if(Bo&&!Bo.isActive(!0)){for(let Mo=(io=Bo.getElement())===null||io===void 0?void 0:io.parentElement;Mo&&Mo!==ho;Mo=Mo.parentElement)if(!((ao=(so=getTabsterOnElement(uo,Mo))===null||so===void 0?void 0:so.groupper)===null||ao===void 0)&&ao.isActive(!0))return}else return}if(!ho)return;const mo=uo.focusable,vo=po.getProps(),bo=vo.direction||MoverDirections.Both,xo=bo===MoverDirections.Both,_o=xo||bo===MoverDirections.Vertical,So=xo||bo===MoverDirections.Horizontal,Eo=bo===MoverDirections.GridLinear,ko=Eo||bo===MoverDirections.Grid,wo=vo.cyclic;let Co,Ro,Ao,Io=0,$o=0;if(ko&&(Ao=co.getBoundingClientRect(),Io=Math.ceil(Ao.left),$o=Math.floor(Ao.right)),fo.rtl&&(lo===Keys.Right?lo=Keys.Left:lo===Keys.Left&&(lo=Keys.Right)),lo===Keys.Down&&_o||lo===Keys.Right&&(So||ko))if(Co=mo.findNext({currentElement:co,container:ho,useActiveModalizer:!0}),Co&&ko){const Bo=Math.ceil(Co.getBoundingClientRect().left);!Eo&&$o>Bo&&(Co=void 0)}else!Co&&wo&&(Co=mo.findFirst({container:ho,useActiveModalizer:!0}));else if(lo===Keys.Up&&_o||lo===Keys.Left&&(So||ko))if(Co=mo.findPrev({currentElement:co,container:ho,useActiveModalizer:!0}),Co&&ko){const Bo=Math.floor(Co.getBoundingClientRect().right);!Eo&&Bo>Io&&(Co=void 0)}else!Co&&wo&&(Co=mo.findLast({container:ho,useActiveModalizer:!0}));else if(lo===Keys.Home)ko?mo.findElement({container:ho,currentElement:co,useActiveModalizer:!0,isBackward:!0,acceptCondition:Bo=>{var Mo;if(!mo.isFocusable(Bo))return!1;const Ho=Math.ceil((Mo=Bo.getBoundingClientRect().left)!==null&&Mo!==void 0?Mo:0);return Bo!==co&&Io<=Ho?!0:(Co=Bo,!1)}}):Co=mo.findFirst({container:ho,useActiveModalizer:!0});else if(lo===Keys.End)ko?mo.findElement({container:ho,currentElement:co,useActiveModalizer:!0,acceptCondition:Bo=>{var Mo;if(!mo.isFocusable(Bo))return!1;const Ho=Math.ceil((Mo=Bo.getBoundingClientRect().left)!==null&&Mo!==void 0?Mo:0);return Bo!==co&&Io>=Ho?!0:(Co=Bo,!1)}}):Co=mo.findLast({container:ho,useActiveModalizer:!0});else if(lo===Keys.PageUp){if(mo.findElement({currentElement:co,container:ho,useActiveModalizer:!0,isBackward:!0,acceptCondition:Bo=>mo.isFocusable(Bo)?isElementVerticallyVisibleInContainer(this._win,Bo,po.visibilityTolerance)?(Co=Bo,!1):!0:!1}),ko&&Co){const Bo=Math.ceil(Co.getBoundingClientRect().left);mo.findElement({currentElement:Co,container:ho,useActiveModalizer:!0,acceptCondition:Mo=>{if(!mo.isFocusable(Mo))return!1;const Ho=Math.ceil(Mo.getBoundingClientRect().left);return Io=Ho?!0:(Co=Mo,!1)}})}Ro=!1}else if(lo===Keys.PageDown){if(mo.findElement({currentElement:co,container:ho,useActiveModalizer:!0,acceptCondition:Bo=>mo.isFocusable(Bo)?isElementVerticallyVisibleInContainer(this._win,Bo,po.visibilityTolerance)?(Co=Bo,!1):!0:!1}),ko&&Co){const Bo=Math.ceil(Co.getBoundingClientRect().left);mo.findElement({currentElement:Co,container:ho,useActiveModalizer:!0,isBackward:!0,acceptCondition:Mo=>{if(!mo.isFocusable(Mo))return!1;const Ho=Math.ceil(Mo.getBoundingClientRect().left);return Io>Ho||Bo<=Ho?!0:(Co=Mo,!1)}})}Ro=!0}else if(ko){const Bo=lo===Keys.Up,Mo=Io,Ho=Math.ceil(Ao.top),jo=$o,Oo=Math.floor(Ao.bottom);let Fo,Go,qo=0;mo.findAll({container:ho,currentElement:co,isBackward:Bo,onElement:Xo=>{const Zo=Xo.getBoundingClientRect(),Qo=Math.ceil(Zo.left),xs=Math.ceil(Zo.top),Ts=Math.floor(Zo.right),Rs=Math.floor(Zo.bottom);if(Bo&&Hoxs)return!0;const Os=Math.ceil(Math.min(jo,Ts))-Math.floor(Math.max(Mo,Qo)),As=Math.ceil(Math.min(jo-Mo,Ts-Qo));if(Os>0&&As>=Os){const Ds=Os/As;Ds>qo&&(Fo=Xo,qo=Ds)}else if(qo===0){const Ds=getDistance(Mo,Ho,jo,Oo,Qo,xs,Ts,Rs);(Go===void 0||Ds0)return!1;return!0}}),Co=Fo}Co&&triggerMoveFocusEvent({by:"mover",owner:ho,next:Co,relatedEvent:no})&&(Ro!==void 0&&scrollIntoView$2(this._win,Co,Ro),no.preventDefault(),no.stopImmediatePropagation(),nativeFocus(Co))},this._tabster=to,this._win=ro,this._movers={},to.queueInit(this._init)}dispose(){var to;const ro=this._win();this._tabster.focusedElement.unsubscribe(this._onFocus),(to=this._ignoredInputResolve)===null||to===void 0||to.call(this,!1),this._ignoredInputTimer&&(ro.clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),ro.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._movers).forEach(no=>{this._movers[no]&&(this._movers[no].dispose(),delete this._movers[no])})}createMover(to,ro,no){const oo=new Mover(this._tabster,to,this._onMoverDispose,ro,no);return this._movers[oo.id]=oo,oo}async _isIgnoredInput(to,ro){var no;if(to.getAttribute("aria-expanded")==="true"&&to.hasAttribute("aria-activedescendant"))return!0;if(matchesSelector(to,_inputSelector)){let oo=0,io=0,so=0,ao;if(to.tagName==="INPUT"||to.tagName==="TEXTAREA"){const lo=to.type;if(so=(to.value||"").length,lo==="email"||lo==="number"){if(so){const co=(no=to.ownerDocument.defaultView)===null||no===void 0?void 0:no.getSelection();if(co){const fo=co.toString().length,po=ro===Keys.Left||ro===Keys.Up;if(co.modify("extend",po?"backward":"forward","character"),fo!==co.toString().length)return co.modify("extend",po?"forward":"backward","character"),!0;so=0}}}else{const co=to.selectionStart;if(co===null)return lo==="hidden";oo=co||0,io=to.selectionEnd||0}}else to.contentEditable==="true"&&(ao=new(getPromise(this._win))(lo=>{this._ignoredInputResolve=mo=>{delete this._ignoredInputResolve,lo(mo)};const uo=this._win();this._ignoredInputTimer&&uo.clearTimeout(this._ignoredInputTimer);const{anchorNode:co,focusNode:fo,anchorOffset:po,focusOffset:ho}=uo.getSelection()||{};this._ignoredInputTimer=uo.setTimeout(()=>{var mo,vo,bo;delete this._ignoredInputTimer;const{anchorNode:xo,focusNode:_o,anchorOffset:So,focusOffset:Eo}=uo.getSelection()||{};if(xo!==co||_o!==fo||So!==po||Eo!==ho){(mo=this._ignoredInputResolve)===null||mo===void 0||mo.call(this,!1);return}if(oo=So||0,io=Eo||0,so=((vo=to.textContent)===null||vo===void 0?void 0:vo.length)||0,xo&&_o&&to.contains(xo)&&to.contains(_o)&&xo!==to){let ko=!1;const wo=Co=>{if(Co===xo)ko=!0;else if(Co===_o)return!0;const Ro=Co.textContent;if(Ro&&!Co.firstChild){const Io=Ro.length;ko?_o!==xo&&(io+=Io):(oo+=Io,io+=Io)}let Ao=!1;for(let Io=Co.firstChild;Io&&!Ao;Io=Io.nextSibling)Ao=wo(Io);return Ao};wo(to)}(bo=this._ignoredInputResolve)===null||bo===void 0||bo.call(this,!0)},0)}));if(ao&&!await ao||oo!==io||oo>0&&(ro===Keys.Left||ro===Keys.Up||ro===Keys.Home)||oo"u")return()=>{};const oo=to.getWindow;let io;const so=co=>{var fo,po,ho,mo,vo;for(const bo of co){const xo=bo.target,_o=bo.removedNodes,So=bo.addedNodes;if(bo.type==="attributes")bo.attributeName===TabsterAttributeName&&ro(to,xo);else{for(let Eo=0;Eo<_o.length;Eo++)ao(_o[Eo],!0),(po=(fo=to._dummyObserver).domChanged)===null||po===void 0||po.call(fo,xo);for(let Eo=0;Eolo(ho,fo));if(po)for(;po.nextNode(););}function lo(co,fo){var po;if(!co.getAttribute)return NodeFilter.FILTER_SKIP;const ho=co.__tabsterElementUID;return ho&&io&&(fo?delete io[ho]:(po=io[ho])!==null&&po!==void 0||(io[ho]=new WeakHTMLElement(oo,co))),(getTabsterOnElement(to,co)||co.hasAttribute(TabsterAttributeName))&&ro(to,co,fo),NodeFilter.FILTER_SKIP}const uo=new MutationObserver(so);return no&&ao(oo().document.body),uo.observe(eo,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[TabsterAttributeName]}),()=>{uo.disconnect()}}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */class UncontrolledAPI{constructor(to){this._isUncontrolledCompletely=to}isUncontrolledCompletely(to,ro){var no;const oo=(no=this._isUncontrolledCompletely)===null||no===void 0?void 0:no.call(this,to,ro);return oo===void 0?ro:oo}}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */const EVENT_NAME="restorer:restorefocus",HISOTRY_DEPTH=10;class Restorer extends TabsterPart{constructor(to,ro,no){var oo;if(super(to,ro,no),this._hasFocus=!1,this._onFocusOut=io=>{var so;const ao=(so=this._element)===null||so===void 0?void 0:so.get();ao&&io.relatedTarget===null&&ao.dispatchEvent(new Event(EVENT_NAME,{bubbles:!0})),ao&&!ao.contains(io.relatedTarget)&&(this._hasFocus=!1)},this._onFocusIn=()=>{this._hasFocus=!0},this._props.type===RestorerTypes.Source){const io=(oo=this._element)===null||oo===void 0?void 0:oo.get();io==null||io.addEventListener("focusout",this._onFocusOut),io==null||io.addEventListener("focusin",this._onFocusIn)}}dispose(){var to,ro;if(this._props.type===RestorerTypes.Source){const no=(to=this._element)===null||to===void 0?void 0:to.get();no==null||no.removeEventListener("focusout",this._onFocusOut),no==null||no.removeEventListener("focusin",this._onFocusIn),this._hasFocus&&((ro=this._tabster.getWindow().document.body)===null||ro===void 0||ro.dispatchEvent(new Event(EVENT_NAME,{bubbles:!0})))}}}class RestorerAPI{constructor(to){this._history=[],this._restoreFocusTimeout=0,this._onRestoreFocus=ro=>{const no=this._getWindow();this._restoreFocusTimeout&&no.clearTimeout(this._restoreFocusTimeout),this._restoreFocusTimeout=no.setTimeout(()=>this._restoreFocus(ro.target))},this._onFocusIn=ro=>{var no;if(!ro)return;const oo=getTabsterOnElement(this._tabster,ro);((no=oo==null?void 0:oo.restorer)===null||no===void 0?void 0:no.getProps().type)===RestorerTypes.Target&&this._addToHistory(ro)},this._restoreFocus=ro=>{var no,oo,io;const so=this._getWindow().document;if(so.activeElement!==so.body||!this._keyboardNavState.isNavigatingWithKeyboard()&&so.body.contains(ro))return;let ao=this._history.pop();for(;ao&&!so.body.contains((oo=(no=ao.get())===null||no===void 0?void 0:no.parentElement)!==null&&oo!==void 0?oo:null);)ao=this._history.pop();(io=ao==null?void 0:ao.get())===null||io===void 0||io.focus()},this._tabster=to,this._getWindow=to.getWindow,this._getWindow().addEventListener(EVENT_NAME,this._onRestoreFocus),this._keyboardNavState=to.keyboardNavigation,this._focusedElementState=to.focusedElement,this._focusedElementState.subscribe(this._onFocusIn)}dispose(){const to=this._getWindow();this._focusedElementState.unsubscribe(this._onFocusIn),to.removeEventListener(EVENT_NAME,this._onRestoreFocus),this._restoreFocusTimeout&&to.clearTimeout(this._restoreFocusTimeout)}_addToHistory(to){var ro;((ro=this._history[this._history.length-1])===null||ro===void 0?void 0:ro.get())!==to&&(this._history.length>HISOTRY_DEPTH&&this._history.shift(),this._history.push(new WeakHTMLElement(this._getWindow,to)))}createRestorer(to,ro){const no=new Restorer(this._tabster,to,ro);return ro.type===RestorerTypes.Target&&to.ownerDocument.activeElement===to&&this._addToHistory(to),no}}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */class Tabster{constructor(to){this.keyboardNavigation=to.keyboardNavigation,this.focusedElement=to.focusedElement,this.focusable=to.focusable,this.root=to.root,this.uncontrolled=to.uncontrolled,this.core=to}}class TabsterCore{constructor(to,ro){var no,oo;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=createWeakMap(to),this._win=to;const io=this.getWindow;this.keyboardNavigation=new KeyboardNavigationState(io),this.focusedElement=new FocusedElementState(this,io),this.focusable=new FocusableAPI(this),this.root=new RootAPI(this,ro==null?void 0:ro.autoRoot),this.uncontrolled=new UncontrolledAPI((ro==null?void 0:ro.checkUncontrolledCompletely)||(ro==null?void 0:ro.checkUncontrolledTrappingFocus)),this.controlTab=(no=ro==null?void 0:ro.controlTab)!==null&&no!==void 0?no:!0,this.rootDummyInputs=!!(ro!=null&&ro.rootDummyInputs),this._dummyObserver=new DummyInputObserver(io),this.getParent=(oo=ro==null?void 0:ro.getParent)!==null&&oo!==void 0?oo:so=>so.parentElement,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:so=>{if(!this._unobserve){const ao=io().document;this._unobserve=observeMutations(ao,this,updateTabsterByAttribute,so)}}},startFakeWeakRefsCleanup(io),this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(to){var ro;to&&(this.getParent=(ro=to.getParent)!==null&&ro!==void 0?ro:this.getParent)}createTabster(to,ro){const no=new Tabster(this);return to||this._wrappers.add(no),this._mergeProps(ro),no}disposeTabster(to,ro){ro?this._wrappers.clear():this._wrappers.delete(to),this._wrappers.size===0&&this.dispose()}dispose(){var to,ro,no,oo,io,so,ao,lo;this.internal.stopObserver();const uo=this._win;uo==null||uo.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],uo&&this._forgetMemorizedTimer&&(uo.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),(to=this.outline)===null||to===void 0||to.dispose(),(ro=this.crossOrigin)===null||ro===void 0||ro.dispose(),(no=this.deloser)===null||no===void 0||no.dispose(),(oo=this.groupper)===null||oo===void 0||oo.dispose(),(io=this.mover)===null||io===void 0||io.dispose(),(so=this.modalizer)===null||so===void 0||so.dispose(),(ao=this.observedElement)===null||ao===void 0||ao.dispose(),(lo=this.restorer)===null||lo===void 0||lo.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),stopFakeWeakRefsCleanupAndClearStorage(this.getWindow),clearElementCache(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),uo&&(disposeInstanceContext(uo),delete uo.__tabsterInstance,delete this._win)}storageEntry(to,ro){const no=this._storage;let oo=no.get(to);return oo?ro===!1&&Object.keys(oo).length===0&&no.delete(to):ro===!0&&(oo={},no.set(to,oo)),oo}forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),!this._forgetMemorizedTimer&&(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let to=this._forgetMemorizedElements.shift();to;to=this._forgetMemorizedElements.shift())clearElementCache(this.getWindow,to),FocusedElementState.forgetMemorized(this.focusedElement,to)},0),cleanupFakeWeakRefs(this.getWindow,!0)))}queueInit(to){var ro;this._win&&(this._initQueue.push(to),this._initTimer||(this._initTimer=(ro=this._win)===null||ro===void 0?void 0:ro.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;const to=this._initQueue;this._initQueue=[],to.forEach(ro=>ro())}}function createTabster(eo,to){let ro=getCurrentTabster(eo);return ro?ro.createTabster(!1,to):(ro=new TabsterCore(eo,to),eo.__tabsterInstance=ro,ro.createTabster())}function getGroupper(eo){const to=eo.core;return to.groupper||(to.groupper=new GroupperAPI(to,to.getWindow)),to.groupper}function getMover(eo){const to=eo.core;return to.mover||(to.mover=new MoverAPI(to,to.getWindow)),to.mover}function getModalizer(eo,to,ro){const no=eo.core;return no.modalizer||(no.modalizer=new ModalizerAPI(no,to,ro)),no.modalizer}function getRestorer(eo){const to=eo.core;return to.restorer||(to.restorer=new RestorerAPI(to)),to.restorer}function disposeTabster(eo,to){eo.core.disposeTabster(eo,to)}function getCurrentTabster(eo){return eo.__tabsterInstance}const useTabster=()=>{const{targetDocument:eo}=useFluent(),to=(eo==null?void 0:eo.defaultView)||void 0,ro=reactExports.useMemo(()=>to?createTabster(to,{autoRoot:{},controlTab:!1,getParent:getParent$1,checkUncontrolledTrappingFocus:no=>{var oo;return!!(!((oo=no.firstElementChild)===null||oo===void 0)&&oo.hasAttribute("data-is-focus-trap-zone-bumper"))}}):null,[to]);return useIsomorphicLayoutEffect$1(()=>()=>{ro&&disposeTabster(ro)},[ro]),ro},useTabsterAttributes=eo=>(useTabster(),getTabsterAttribute(eo)),useArrowNavigationGroup=(eo={})=>{const{circular:to,axis:ro,memorizeCurrent:no,tabbable:oo,ignoreDefaultKeydown:io,unstable_hasDefault:so}=eo,ao=useTabster();return ao&&getMover(ao),useTabsterAttributes({mover:{cyclic:!!to,direction:axisToMoverDirection(ro??"vertical"),memorizeCurrent:no,tabbable:oo,hasDefault:so},...io&&{focusable:{ignoreKeydown:io}}})};function axisToMoverDirection(eo){switch(eo){case"horizontal":return Types.MoverDirections.Horizontal;case"grid":return Types.MoverDirections.Grid;case"grid-linear":return Types.MoverDirections.GridLinear;case"both":return Types.MoverDirections.Both;case"vertical":default:return Types.MoverDirections.Vertical}}const useFocusableGroup=eo=>{const to=useTabster();return to&&getGroupper(to),useTabsterAttributes({groupper:{tabbability:getTabbability(eo==null?void 0:eo.tabBehavior)},focusable:{ignoreKeydown:eo==null?void 0:eo.ignoreDefaultKeydown}})},getTabbability=eo=>{switch(eo){case"unlimited":return Types.GroupperTabbabilities.Unlimited;case"limited":return Types.GroupperTabbabilities.Limited;case"limited-trap-focus":return Types.GroupperTabbabilities.LimitedTrapFocus;default:return}},useFocusFinders=()=>{const eo=useTabster(),{targetDocument:to}=useFluent(),ro=reactExports.useCallback((ao,lo)=>(eo==null?void 0:eo.focusable.findAll({container:ao,acceptCondition:lo}))||[],[eo]),no=reactExports.useCallback(ao=>eo==null?void 0:eo.focusable.findFirst({container:ao}),[eo]),oo=reactExports.useCallback(ao=>eo==null?void 0:eo.focusable.findLast({container:ao}),[eo]),io=reactExports.useCallback((ao,lo={})=>{if(!eo||!to)return null;const{container:uo=to.body}=lo;return eo.focusable.findNext({currentElement:ao,container:uo})},[eo,to]),so=reactExports.useCallback((ao,lo={})=>{if(!eo||!to)return null;const{container:uo=to.body}=lo;return eo.focusable.findPrev({currentElement:ao,container:uo})},[eo,to]);return{findAllFocusable:ro,findFirstFocusable:no,findLastFocusable:oo,findNextFocusable:io,findPrevFocusable:so}},FOCUS_VISIBLE_ATTR="data-fui-focus-visible",FOCUS_WITHIN_ATTR="data-fui-focus-within";function applyFocusVisiblePolyfill(eo,to){if(alreadyInScope(eo))return()=>{};const ro={current:void 0},no=createKeyborg(to);function oo(lo){no.isNavigatingWithKeyboard()&&isHTMLElement$6(lo)&&(ro.current=lo,lo.setAttribute(FOCUS_VISIBLE_ATTR,""))}function io(){ro.current&&(ro.current.removeAttribute(FOCUS_VISIBLE_ATTR),ro.current=void 0)}no.subscribe(lo=>{lo||io()});const so=lo=>{io();const uo=lo.composedPath()[0];oo(uo)},ao=lo=>{(!lo.relatedTarget||isHTMLElement$6(lo.relatedTarget)&&!eo.contains(lo.relatedTarget))&&io()};return eo.addEventListener(KEYBORG_FOCUSIN,so),eo.addEventListener("focusout",ao),eo.focusVisible=!0,oo(to.document.activeElement),()=>{io(),eo.removeEventListener(KEYBORG_FOCUSIN,so),eo.removeEventListener("focusout",ao),delete eo.focusVisible,disposeKeyborg(no)}}function alreadyInScope(eo){return eo?eo.focusVisible?!0:alreadyInScope(eo==null?void 0:eo.parentElement):!1}function useFocusVisible(eo={}){const to=useFluent(),ro=reactExports.useRef(null);var no;const oo=(no=eo.targetDocument)!==null&&no!==void 0?no:to.targetDocument;return reactExports.useEffect(()=>{if(oo!=null&&oo.defaultView&&ro.current)return applyFocusVisiblePolyfill(ro.current,oo.defaultView)},[ro,oo]),ro}function applyFocusWithinPolyfill(eo,to){const ro=createKeyborg(to);ro.subscribe(io=>{io||removeFocusWithinClass(eo)});const no=io=>{ro.isNavigatingWithKeyboard()&&isHTMLElement$5(io.target)&&applyFocusWithinClass(eo)},oo=io=>{(!io.relatedTarget||isHTMLElement$5(io.relatedTarget)&&!eo.contains(io.relatedTarget))&&removeFocusWithinClass(eo)};return eo.addEventListener(KEYBORG_FOCUSIN,no),eo.addEventListener("focusout",oo),()=>{eo.removeEventListener(KEYBORG_FOCUSIN,no),eo.removeEventListener("focusout",oo),disposeKeyborg(ro)}}function applyFocusWithinClass(eo){eo.setAttribute(FOCUS_WITHIN_ATTR,"")}function removeFocusWithinClass(eo){eo.removeAttribute(FOCUS_WITHIN_ATTR)}function isHTMLElement$5(eo){return eo?!!(eo&&typeof eo=="object"&&"classList"in eo&&"contains"in eo):!1}function useFocusWithin(){const{targetDocument:eo}=useFluent(),to=reactExports.useRef(null);return reactExports.useEffect(()=>{if(eo!=null&&eo.defaultView&&to.current)return applyFocusWithinPolyfill(to.current,eo.defaultView)},[to,eo]),to}const useModalAttributes=(eo={})=>{const{trapFocus:to,alwaysFocusable:ro,legacyTrapFocus:no}=eo,oo=useTabster();oo&&(getModalizer(oo),getRestorer(oo));const io=useId$1("modal-",eo.id),so=useTabsterAttributes({restorer:{type:Types.RestorerTypes.Source},...to&&{modalizer:{id:io,isOthersAccessible:!to,isAlwaysAccessible:ro,isTrapped:no&&to}}}),ao=useTabsterAttributes({restorer:{type:Types.RestorerTypes.Target}});return{modalAttributes:so,triggerAttributes:ao}},grey={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"},whiteAlpha={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)"},blackAlpha={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)"},grey10Alpha={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)"},grey12Alpha={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)"},grey14Alpha={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)"},white="#ffffff",black="#000000",darkRed={shade50:"#130204",shade40:"#230308",shade30:"#420610",shade20:"#590815",shade10:"#690a19",primary:"#750b1c",tint10:"#861b2c",tint20:"#962f3f",tint30:"#ac4f5e",tint40:"#d69ca5",tint50:"#e9c7cd",tint60:"#f9f0f2"},cranberry={shade50:"#200205",shade40:"#3b0509",shade30:"#6e0811",shade20:"#960b18",shade10:"#b10e1c",primary:"#c50f1f",tint10:"#cc2635",tint20:"#d33f4c",tint30:"#dc626d",tint40:"#eeacb2",tint50:"#f6d1d5",tint60:"#fdf3f4"},red={shade50:"#210809",shade40:"#3f1011",shade30:"#751d1f",shade20:"#9f282b",shade10:"#bc2f32",primary:"#d13438",tint10:"#d7494c",tint20:"#dc5e62",tint30:"#e37d80",tint40:"#f1bbbc",tint50:"#f8dadb",tint60:"#fdf6f6"},darkOrange={shade50:"#230900",shade40:"#411200",shade30:"#7a2101",shade20:"#a62d01",shade10:"#c43501",primary:"#da3b01",tint10:"#de501c",tint20:"#e36537",tint30:"#e9835e",tint40:"#f4bfab",tint50:"#f9dcd1",tint60:"#fdf6f3"},pumpkin={shade50:"#200d03",shade40:"#3d1805",shade30:"#712d09",shade20:"#9a3d0c",shade10:"#b6480e",primary:"#ca5010",tint10:"#d06228",tint20:"#d77440",tint30:"#df8e64",tint40:"#efc4ad",tint50:"#f7dfd2",tint60:"#fdf7f4"},orange={shade50:"#271002",shade40:"#4a1e04",shade30:"#8a3707",shade20:"#bc4b09",shade10:"#de590b",primary:"#f7630c",tint10:"#f87528",tint20:"#f98845",tint30:"#faa06b",tint40:"#fdcfb4",tint50:"#fee5d7",tint60:"#fff9f5"},peach={shade50:"#291600",shade40:"#4d2a00",shade30:"#8f4e00",shade20:"#c26a00",shade10:"#e67e00",primary:"#ff8c00",tint10:"#ff9a1f",tint20:"#ffa83d",tint30:"#ffba66",tint40:"#ffddb3",tint50:"#ffedd6",tint60:"#fffaf5"},marigold={shade50:"#251a00",shade40:"#463100",shade30:"#835b00",shade20:"#b27c00",shade10:"#d39300",primary:"#eaa300",tint10:"#edad1c",tint20:"#efb839",tint30:"#f2c661",tint40:"#f9e2ae",tint50:"#fcefd3",tint60:"#fefbf4"},yellow={primary:"#fde300",shade10:"#e4cc00",shade20:"#c0ad00",shade30:"#817400",shade40:"#4c4400",shade50:"#282400",tint10:"#fde61e",tint20:"#fdea3d",tint30:"#feee66",tint40:"#fef7b2",tint50:"#fffad6",tint60:"#fffef5"},gold={shade50:"#1f1900",shade40:"#3a2f00",shade30:"#6c5700",shade20:"#937700",shade10:"#ae8c00",primary:"#c19c00",tint10:"#c8a718",tint20:"#d0b232",tint30:"#dac157",tint40:"#ecdfa5",tint50:"#f5eece",tint60:"#fdfbf2"},brass={shade50:"#181202",shade40:"#2e2103",shade30:"#553e06",shade20:"#745408",shade10:"#89640a",primary:"#986f0b",tint10:"#a47d1e",tint20:"#b18c34",tint30:"#c1a256",tint40:"#e0cea2",tint50:"#efe4cb",tint60:"#fbf8f2"},brown={shade50:"#170e07",shade40:"#2b1a0e",shade30:"#50301a",shade20:"#6c4123",shade10:"#804d29",primary:"#8e562e",tint10:"#9c663f",tint20:"#a97652",tint30:"#bb8f6f",tint40:"#ddc3b0",tint50:"#edded3",tint60:"#faf7f4"},forest={shade50:"#0c1501",shade40:"#162702",shade30:"#294903",shade20:"#376304",shade10:"#427505",primary:"#498205",tint10:"#599116",tint20:"#6ba02b",tint30:"#85b44c",tint40:"#bdd99b",tint50:"#dbebc7",tint60:"#f6faf0"},seafoam={shade50:"#002111",shade40:"#003d20",shade30:"#00723b",shade20:"#009b51",shade10:"#00b85f",primary:"#00cc6a",tint10:"#19d279",tint20:"#34d889",tint30:"#5ae0a0",tint40:"#a8f0cd",tint50:"#cff7e4",tint60:"#f3fdf8"},lightGreen={shade50:"#031a02",shade40:"#063004",shade30:"#0b5a08",shade20:"#0e7a0b",shade10:"#11910d",primary:"#13a10e",tint10:"#27ac22",tint20:"#3db838",tint30:"#5ec75a",tint40:"#a7e3a5",tint50:"#cef0cd",tint60:"#f2fbf2"},green={shade50:"#031403",shade40:"#052505",shade30:"#094509",shade20:"#0c5e0c",shade10:"#0e700e",primary:"#107c10",tint10:"#218c21",tint20:"#359b35",tint30:"#54b054",tint40:"#9fd89f",tint50:"#c9eac9",tint60:"#f1faf1"},darkGreen={shade50:"#021102",shade40:"#032003",shade30:"#063b06",shade20:"#085108",shade10:"#0a5f0a",primary:"#0b6a0b",tint10:"#1a7c1a",tint20:"#2d8e2d",tint30:"#4da64d",tint40:"#9ad29a",tint50:"#c6e7c6",tint60:"#f0f9f0"},lightTeal={shade50:"#001d1f",shade40:"#00373a",shade30:"#00666d",shade20:"#008b94",shade10:"#00a5af",primary:"#00b7c3",tint10:"#18bfca",tint20:"#32c8d1",tint30:"#58d3db",tint40:"#a6e9ed",tint50:"#cef3f5",tint60:"#f2fcfd"},teal={shade50:"#001516",shade40:"#012728",shade30:"#02494c",shade20:"#026467",shade10:"#037679",primary:"#038387",tint10:"#159195",tint20:"#2aa0a4",tint30:"#4cb4b7",tint40:"#9bd9db",tint50:"#c7ebec",tint60:"#f0fafa"},steel={shade50:"#000f12",shade40:"#001b22",shade30:"#00333f",shade20:"#004555",shade10:"#005265",primary:"#005b70",tint10:"#0f6c81",tint20:"#237d92",tint30:"#4496a9",tint40:"#94c8d4",tint50:"#c3e1e8",tint60:"#eff7f9"},blue={shade50:"#001322",shade40:"#002440",shade30:"#004377",shade20:"#005ba1",shade10:"#006cbf",primary:"#0078d4",tint10:"#1a86d9",tint20:"#3595de",tint30:"#5caae5",tint40:"#a9d3f2",tint50:"#d0e7f8",tint60:"#f3f9fd"},royalBlue={shade50:"#000c16",shade40:"#00172a",shade30:"#002c4e",shade20:"#003b6a",shade10:"#00467e",primary:"#004e8c",tint10:"#125e9a",tint20:"#286fa8",tint30:"#4a89ba",tint40:"#9abfdc",tint50:"#c7dced",tint60:"#f0f6fa"},cornflower={shade50:"#0d1126",shade40:"#182047",shade30:"#2c3c85",shade20:"#3c51b4",shade10:"#4760d5",primary:"#4f6bed",tint10:"#637cef",tint20:"#778df1",tint30:"#93a4f4",tint40:"#c8d1fa",tint50:"#e1e6fc",tint60:"#f7f9fe"},navy={shade50:"#00061d",shade40:"#000c36",shade30:"#001665",shade20:"#001e89",shade10:"#0023a2",primary:"#0027b4",tint10:"#173bbd",tint20:"#3050c6",tint30:"#546fd2",tint40:"#a3b2e8",tint50:"#ccd5f3",tint60:"#f2f4fc"},lavender={shade50:"#120f25",shade40:"#221d46",shade30:"#3f3682",shade20:"#5649b0",shade10:"#6656d1",primary:"#7160e8",tint10:"#8172eb",tint20:"#9184ee",tint30:"#a79cf1",tint40:"#d2ccf8",tint50:"#e7e4fb",tint60:"#f9f8fe"},purple={shade50:"#0f0717",shade40:"#1c0e2b",shade30:"#341a51",shade20:"#46236e",shade10:"#532982",primary:"#5c2e91",tint10:"#6b3f9e",tint20:"#7c52ab",tint30:"#9470bd",tint40:"#c6b1de",tint50:"#e0d3ed",tint60:"#f7f4fb"},grape={shade50:"#160418",shade40:"#29072e",shade30:"#4c0d55",shade20:"#671174",shade10:"#7a1589",primary:"#881798",tint10:"#952aa4",tint20:"#a33fb1",tint30:"#b55fc1",tint40:"#d9a7e0",tint50:"#eaceef",tint60:"#faf2fb"},berry={shade50:"#1f091d",shade40:"#3a1136",shade30:"#6d2064",shade20:"#932b88",shade10:"#af33a1",primary:"#c239b3",tint10:"#c94cbc",tint20:"#d161c4",tint30:"#da7ed0",tint40:"#edbbe7",tint50:"#f5daf2",tint60:"#fdf5fc"},lilac={shade50:"#1c0b1f",shade40:"#35153a",shade30:"#63276d",shade20:"#863593",shade10:"#9f3faf",primary:"#b146c2",tint10:"#ba58c9",tint20:"#c36bd1",tint30:"#cf87da",tint40:"#e6bfed",tint50:"#f2dcf5",tint60:"#fcf6fd"},pink={shade50:"#24091b",shade40:"#441232",shade30:"#80215d",shade20:"#ad2d7e",shade10:"#cd3595",primary:"#e43ba6",tint10:"#e750b0",tint20:"#ea66ba",tint30:"#ef85c8",tint40:"#f7c0e3",tint50:"#fbddf0",tint60:"#fef6fb"},magenta={shade50:"#1f0013",shade40:"#390024",shade30:"#6b0043",shade20:"#91005a",shade10:"#ac006b",primary:"#bf0077",tint10:"#c71885",tint20:"#ce3293",tint30:"#d957a8",tint40:"#eca5d1",tint50:"#f5cee6",tint60:"#fcf2f9"},plum={shade50:"#13000c",shade40:"#240017",shade30:"#43002b",shade20:"#5a003b",shade10:"#6b0045",primary:"#77004d",tint10:"#87105d",tint20:"#98246f",tint30:"#ad4589",tint40:"#d696c0",tint50:"#e9c4dc",tint60:"#faf0f6"},beige={shade50:"#141313",shade40:"#252323",shade30:"#444241",shade20:"#5d5958",shade10:"#6e6968",primary:"#7a7574",tint10:"#8a8584",tint20:"#9a9594",tint30:"#afabaa",tint40:"#d7d4d4",tint50:"#eae8e8",tint60:"#faf9f9"},mink={shade50:"#0f0e0e",shade40:"#1c1b1a",shade30:"#343231",shade20:"#474443",shade10:"#54514f",primary:"#5d5a58",tint10:"#706d6b",tint20:"#84817e",tint30:"#9e9b99",tint40:"#cecccb",tint50:"#e5e4e3",tint60:"#f8f8f8"},platinum={shade50:"#111314",shade40:"#1f2426",shade30:"#3b4447",shade20:"#505c60",shade10:"#5f6d71",primary:"#69797e",tint10:"#79898d",tint20:"#89989d",tint30:"#a0adb2",tint40:"#cdd6d8",tint50:"#e4e9ea",tint60:"#f8f9fa"},anchor={shade50:"#090a0b",shade40:"#111315",shade30:"#202427",shade20:"#2b3135",shade10:"#333a3f",primary:"#394146",tint10:"#4d565c",tint20:"#626c72",tint30:"#808a90",tint40:"#bcc3c7",tint50:"#dbdfe1",tint60:"#f6f7f8"},statusSharedColors={red,green,darkOrange,yellow,berry,lightGreen,marigold},personaSharedColors={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},mappedStatusColors={cranberry,green,orange},statusSharedColorNames=["red","green","darkOrange","yellow","berry","lightGreen","marigold"],personaSharedColorNames=["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"],statusColorMapping={success:"green",warning:"orange",danger:"cranberry"},statusColorPaletteTokens$1=statusSharedColorNames.reduce((eo,to)=>{const ro=to.slice(0,1).toUpperCase()+to.slice(1),no={[`colorPalette${ro}Background1`]:statusSharedColors[to].tint60,[`colorPalette${ro}Background2`]:statusSharedColors[to].tint40,[`colorPalette${ro}Background3`]:statusSharedColors[to].primary,[`colorPalette${ro}Foreground1`]:statusSharedColors[to].shade10,[`colorPalette${ro}Foreground2`]:statusSharedColors[to].shade30,[`colorPalette${ro}Foreground3`]:statusSharedColors[to].primary,[`colorPalette${ro}BorderActive`]:statusSharedColors[to].primary,[`colorPalette${ro}Border1`]:statusSharedColors[to].tint40,[`colorPalette${ro}Border2`]:statusSharedColors[to].primary};return Object.assign(eo,no)},{});statusColorPaletteTokens$1.colorPaletteYellowForeground1=statusSharedColors.yellow.shade30;statusColorPaletteTokens$1.colorPaletteRedForegroundInverted=statusSharedColors.red.tint20;statusColorPaletteTokens$1.colorPaletteGreenForegroundInverted=statusSharedColors.green.tint20;statusColorPaletteTokens$1.colorPaletteYellowForegroundInverted=statusSharedColors.yellow.tint40;const personaColorPaletteTokens$1=personaSharedColorNames.reduce((eo,to)=>{const ro=to.slice(0,1).toUpperCase()+to.slice(1),no={[`colorPalette${ro}Background2`]:personaSharedColors[to].tint40,[`colorPalette${ro}Foreground2`]:personaSharedColors[to].shade30,[`colorPalette${ro}BorderActive`]:personaSharedColors[to].primary};return Object.assign(eo,no)},{}),colorPaletteTokens$1={...statusColorPaletteTokens$1,...personaColorPaletteTokens$1},colorStatusTokens$1=Object.entries(statusColorMapping).reduce((eo,[to,ro])=>{const no=to.slice(0,1).toUpperCase()+to.slice(1),oo={[`colorStatus${no}Background1`]:mappedStatusColors[ro].tint60,[`colorStatus${no}Background2`]:mappedStatusColors[ro].tint40,[`colorStatus${no}Background3`]:mappedStatusColors[ro].primary,[`colorStatus${no}Foreground1`]:mappedStatusColors[ro].shade10,[`colorStatus${no}Foreground2`]:mappedStatusColors[ro].shade30,[`colorStatus${no}Foreground3`]:mappedStatusColors[ro].primary,[`colorStatus${no}ForegroundInverted`]:mappedStatusColors[ro].tint30,[`colorStatus${no}BorderActive`]:mappedStatusColors[ro].primary,[`colorStatus${no}Border1`]:mappedStatusColors[ro].tint40,[`colorStatus${no}Border2`]:mappedStatusColors[ro].primary};return Object.assign(eo,oo)},{});colorStatusTokens$1.colorStatusWarningForeground1=mappedStatusColors[statusColorMapping.warning].shade20;colorStatusTokens$1.colorStatusWarningForeground3=mappedStatusColors[statusColorMapping.warning].shade20;colorStatusTokens$1.colorStatusWarningBorder2=mappedStatusColors[statusColorMapping.warning].shade20;const generateColorTokens$1=eo=>({colorNeutralForeground1:grey[14],colorNeutralForeground1Hover:grey[14],colorNeutralForeground1Pressed:grey[14],colorNeutralForeground1Selected:grey[14],colorNeutralForeground2:grey[26],colorNeutralForeground2Hover:grey[14],colorNeutralForeground2Pressed:grey[14],colorNeutralForeground2Selected:grey[14],colorNeutralForeground2BrandHover:eo[80],colorNeutralForeground2BrandPressed:eo[70],colorNeutralForeground2BrandSelected:eo[80],colorNeutralForeground3:grey[38],colorNeutralForeground3Hover:grey[26],colorNeutralForeground3Pressed:grey[26],colorNeutralForeground3Selected:grey[26],colorNeutralForeground3BrandHover:eo[80],colorNeutralForeground3BrandPressed:eo[70],colorNeutralForeground3BrandSelected:eo[80],colorNeutralForeground4:grey[44],colorNeutralForegroundDisabled:grey[74],colorNeutralForegroundInvertedDisabled:whiteAlpha[40],colorBrandForegroundLink:eo[70],colorBrandForegroundLinkHover:eo[60],colorBrandForegroundLinkPressed:eo[40],colorBrandForegroundLinkSelected:eo[70],colorNeutralForeground2Link:grey[26],colorNeutralForeground2LinkHover:grey[14],colorNeutralForeground2LinkPressed:grey[14],colorNeutralForeground2LinkSelected:grey[14],colorCompoundBrandForeground1:eo[80],colorCompoundBrandForeground1Hover:eo[70],colorCompoundBrandForeground1Pressed:eo[60],colorBrandForeground1:eo[80],colorBrandForeground2:eo[70],colorBrandForeground2Hover:eo[60],colorBrandForeground2Pressed:eo[30],colorNeutralForeground1Static:grey[14],colorNeutralForegroundStaticInverted:white,colorNeutralForegroundInverted:white,colorNeutralForegroundInvertedHover:white,colorNeutralForegroundInvertedPressed:white,colorNeutralForegroundInvertedSelected:white,colorNeutralForegroundInverted2:white,colorNeutralForegroundOnBrand:white,colorNeutralForegroundInvertedLink:white,colorNeutralForegroundInvertedLinkHover:white,colorNeutralForegroundInvertedLinkPressed:white,colorNeutralForegroundInvertedLinkSelected:white,colorBrandForegroundInverted:eo[100],colorBrandForegroundInvertedHover:eo[110],colorBrandForegroundInvertedPressed:eo[100],colorBrandForegroundOnLight:eo[80],colorBrandForegroundOnLightHover:eo[70],colorBrandForegroundOnLightPressed:eo[50],colorBrandForegroundOnLightSelected:eo[60],colorNeutralBackground1:white,colorNeutralBackground1Hover:grey[96],colorNeutralBackground1Pressed:grey[88],colorNeutralBackground1Selected:grey[92],colorNeutralBackground2:grey[98],colorNeutralBackground2Hover:grey[94],colorNeutralBackground2Pressed:grey[86],colorNeutralBackground2Selected:grey[90],colorNeutralBackground3:grey[96],colorNeutralBackground3Hover:grey[92],colorNeutralBackground3Pressed:grey[84],colorNeutralBackground3Selected:grey[88],colorNeutralBackground4:grey[94],colorNeutralBackground4Hover:grey[98],colorNeutralBackground4Pressed:grey[96],colorNeutralBackground4Selected:white,colorNeutralBackground5:grey[92],colorNeutralBackground5Hover:grey[96],colorNeutralBackground5Pressed:grey[94],colorNeutralBackground5Selected:grey[98],colorNeutralBackground6:grey[90],colorNeutralBackgroundInverted:grey[16],colorNeutralBackgroundStatic:grey[20],colorNeutralBackgroundAlpha:whiteAlpha[50],colorNeutralBackgroundAlpha2:whiteAlpha[80],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:grey[96],colorSubtleBackgroundPressed:grey[88],colorSubtleBackgroundSelected:grey[92],colorSubtleBackgroundLightAlphaHover:whiteAlpha[70],colorSubtleBackgroundLightAlphaPressed:whiteAlpha[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:blackAlpha[10],colorSubtleBackgroundInvertedPressed:blackAlpha[30],colorSubtleBackgroundInvertedSelected:blackAlpha[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:grey[94],colorNeutralBackgroundInvertedDisabled:whiteAlpha[10],colorNeutralStencil1:grey[90],colorNeutralStencil2:grey[98],colorNeutralStencil1Alpha:blackAlpha[10],colorNeutralStencil2Alpha:blackAlpha[5],colorBackgroundOverlay:blackAlpha[40],colorScrollbarOverlay:blackAlpha[50],colorBrandBackground:eo[80],colorBrandBackgroundHover:eo[70],colorBrandBackgroundPressed:eo[40],colorBrandBackgroundSelected:eo[60],colorCompoundBrandBackground:eo[80],colorCompoundBrandBackgroundHover:eo[70],colorCompoundBrandBackgroundPressed:eo[60],colorBrandBackgroundStatic:eo[80],colorBrandBackground2:eo[160],colorBrandBackground2Hover:eo[150],colorBrandBackground2Pressed:eo[130],colorBrandBackgroundInverted:white,colorBrandBackgroundInvertedHover:eo[160],colorBrandBackgroundInvertedPressed:eo[140],colorBrandBackgroundInvertedSelected:eo[150],colorNeutralStrokeAccessible:grey[38],colorNeutralStrokeAccessibleHover:grey[34],colorNeutralStrokeAccessiblePressed:grey[30],colorNeutralStrokeAccessibleSelected:eo[80],colorNeutralStroke1:grey[82],colorNeutralStroke1Hover:grey[78],colorNeutralStroke1Pressed:grey[70],colorNeutralStroke1Selected:grey[74],colorNeutralStroke2:grey[88],colorNeutralStroke3:grey[94],colorNeutralStrokeSubtle:grey[88],colorNeutralStrokeOnBrand:white,colorNeutralStrokeOnBrand2:white,colorNeutralStrokeOnBrand2Hover:white,colorNeutralStrokeOnBrand2Pressed:white,colorNeutralStrokeOnBrand2Selected:white,colorBrandStroke1:eo[80],colorBrandStroke2:eo[140],colorBrandStroke2Hover:eo[120],colorBrandStroke2Pressed:eo[80],colorBrandStroke2Contrast:eo[140],colorCompoundBrandStroke:eo[80],colorCompoundBrandStrokeHover:eo[70],colorCompoundBrandStrokePressed:eo[60],colorNeutralStrokeDisabled:grey[88],colorNeutralStrokeInvertedDisabled:whiteAlpha[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:blackAlpha[5],colorNeutralStrokeAlpha2:whiteAlpha[20],colorStrokeFocus1:white,colorStrokeFocus2:black,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)"}),borderRadius={borderRadiusNone:"0",borderRadiusSmall:"2px",borderRadiusMedium:"4px",borderRadiusLarge:"6px",borderRadiusXLarge:"8px",borderRadiusCircular:"10000px"},curves={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)"},durations={durationUltraFast:"50ms",durationFaster:"100ms",durationFast:"150ms",durationNormal:"200ms",durationGentle:"250ms",durationSlow:"300ms",durationSlower:"400ms",durationUltraSlow:"500ms"},fontSizes={fontSizeBase100:"10px",fontSizeBase200:"12px",fontSizeBase300:"14px",fontSizeBase400:"16px",fontSizeBase500:"20px",fontSizeBase600:"24px",fontSizeHero700:"28px",fontSizeHero800:"32px",fontSizeHero900:"40px",fontSizeHero1000:"68px"},lineHeights={lineHeightBase100:"14px",lineHeightBase200:"16px",lineHeightBase300:"20px",lineHeightBase400:"22px",lineHeightBase500:"28px",lineHeightBase600:"32px",lineHeightHero700:"36px",lineHeightHero800:"40px",lineHeightHero900:"52px",lineHeightHero1000:"92px"},fontWeights={fontWeightRegular:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700},fontFamilies={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"},spacings={none:"0",xxs:"2px",xs:"4px",sNudge:"6px",s:"8px",mNudge:"10px",m:"12px",l:"16px",xl:"20px",xxl:"24px",xxxl:"32px"},horizontalSpacings={spacingHorizontalNone:spacings.none,spacingHorizontalXXS:spacings.xxs,spacingHorizontalXS:spacings.xs,spacingHorizontalSNudge:spacings.sNudge,spacingHorizontalS:spacings.s,spacingHorizontalMNudge:spacings.mNudge,spacingHorizontalM:spacings.m,spacingHorizontalL:spacings.l,spacingHorizontalXL:spacings.xl,spacingHorizontalXXL:spacings.xxl,spacingHorizontalXXXL:spacings.xxxl},verticalSpacings={spacingVerticalNone:spacings.none,spacingVerticalXXS:spacings.xxs,spacingVerticalXS:spacings.xs,spacingVerticalSNudge:spacings.sNudge,spacingVerticalS:spacings.s,spacingVerticalMNudge:spacings.mNudge,spacingVerticalM:spacings.m,spacingVerticalL:spacings.l,spacingVerticalXL:spacings.xl,spacingVerticalXXL:spacings.xxl,spacingVerticalXXXL:spacings.xxxl},strokeWidths={strokeWidthThin:"1px",strokeWidthThick:"2px",strokeWidthThicker:"3px",strokeWidthThickest:"4px"},tokens={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 createShadowTokens(eo,to,ro=""){return{[`shadow2${ro}`]:`0 0 2px ${eo}, 0 1px 2px ${to}`,[`shadow4${ro}`]:`0 0 2px ${eo}, 0 2px 4px ${to}`,[`shadow8${ro}`]:`0 0 2px ${eo}, 0 4px 8px ${to}`,[`shadow16${ro}`]:`0 0 2px ${eo}, 0 8px 16px ${to}`,[`shadow28${ro}`]:`0 0 8px ${eo}, 0 14px 28px ${to}`,[`shadow64${ro}`]:`0 0 8px ${eo}, 0 32px 64px ${to}`}}const createLightTheme=eo=>{const to=generateColorTokens$1(eo);return{...borderRadius,...fontSizes,...lineHeights,...fontFamilies,...fontWeights,...strokeWidths,...horizontalSpacings,...verticalSpacings,...durations,...curves,...to,...colorPaletteTokens$1,...colorStatusTokens$1,...createShadowTokens(to.colorNeutralShadowAmbient,to.colorNeutralShadowKey),...createShadowTokens(to.colorBrandShadowAmbient,to.colorBrandShadowKey,"Brand")}},brandWeb={10:"#061724",20:"#082338",30:"#0a2e4a",40:"#0c3b5e",50:"#0e4775",60:"#0f548c",70:"#115ea3",80:"#0f6cbd",90:"#2886de",100:"#479ef5",110:"#62abf5",120:"#77b7f7",130:"#96c6fa",140:"#b4d6fa",150:"#cfe4fa",160:"#ebf3fc"},statusColorPaletteTokens=statusSharedColorNames.reduce((eo,to)=>{const ro=to.slice(0,1).toUpperCase()+to.slice(1),no={[`colorPalette${ro}Background1`]:statusSharedColors[to].shade40,[`colorPalette${ro}Background2`]:statusSharedColors[to].shade30,[`colorPalette${ro}Background3`]:statusSharedColors[to].primary,[`colorPalette${ro}Foreground1`]:statusSharedColors[to].tint30,[`colorPalette${ro}Foreground2`]:statusSharedColors[to].tint40,[`colorPalette${ro}Foreground3`]:statusSharedColors[to].tint20,[`colorPalette${ro}BorderActive`]:statusSharedColors[to].tint30,[`colorPalette${ro}Border1`]:statusSharedColors[to].primary,[`colorPalette${ro}Border2`]:statusSharedColors[to].tint20};return Object.assign(eo,no)},{});statusColorPaletteTokens.colorPaletteRedForeground3=statusSharedColors.red.tint30;statusColorPaletteTokens.colorPaletteRedBorder2=statusSharedColors.red.tint30;statusColorPaletteTokens.colorPaletteGreenForeground3=statusSharedColors.green.tint40;statusColorPaletteTokens.colorPaletteGreenBorder2=statusSharedColors.green.tint40;statusColorPaletteTokens.colorPaletteDarkOrangeForeground3=statusSharedColors.darkOrange.tint30;statusColorPaletteTokens.colorPaletteDarkOrangeBorder2=statusSharedColors.darkOrange.tint30;statusColorPaletteTokens.colorPaletteRedForegroundInverted=statusSharedColors.red.primary;statusColorPaletteTokens.colorPaletteGreenForegroundInverted=statusSharedColors.green.primary;statusColorPaletteTokens.colorPaletteYellowForegroundInverted=statusSharedColors.yellow.shade30;const personaColorPaletteTokens=personaSharedColorNames.reduce((eo,to)=>{const ro=to.slice(0,1).toUpperCase()+to.slice(1),no={[`colorPalette${ro}Background2`]:personaSharedColors[to].shade30,[`colorPalette${ro}Foreground2`]:personaSharedColors[to].tint40,[`colorPalette${ro}BorderActive`]:personaSharedColors[to].tint30};return Object.assign(eo,no)},{});personaColorPaletteTokens.colorPaletteDarkRedBackground2=personaSharedColors.darkRed.shade20;personaColorPaletteTokens.colorPalettePlumBackground2=personaSharedColors.plum.shade20;const colorPaletteTokens={...statusColorPaletteTokens,...personaColorPaletteTokens},colorStatusTokens=Object.entries(statusColorMapping).reduce((eo,[to,ro])=>{const no=to.slice(0,1).toUpperCase()+to.slice(1),oo={[`colorStatus${no}Background1`]:mappedStatusColors[ro].shade40,[`colorStatus${no}Background2`]:mappedStatusColors[ro].shade30,[`colorStatus${no}Background3`]:mappedStatusColors[ro].primary,[`colorStatus${no}Foreground1`]:mappedStatusColors[ro].tint30,[`colorStatus${no}Foreground2`]:mappedStatusColors[ro].tint40,[`colorStatus${no}Foreground3`]:mappedStatusColors[ro].tint20,[`colorStatus${no}BorderActive`]:mappedStatusColors[ro].tint30,[`colorStatus${no}ForegroundInverted`]:mappedStatusColors[ro].shade10,[`colorStatus${no}Border1`]:mappedStatusColors[ro].primary,[`colorStatus${no}Border2`]:mappedStatusColors[ro].tint20};return Object.assign(eo,oo)},{});colorStatusTokens.colorStatusDangerForeground3=mappedStatusColors[statusColorMapping.danger].tint30;colorStatusTokens.colorStatusDangerBorder2=mappedStatusColors[statusColorMapping.danger].tint30;colorStatusTokens.colorStatusSuccessForeground3=mappedStatusColors[statusColorMapping.success].tint40;colorStatusTokens.colorStatusSuccessBorder2=mappedStatusColors[statusColorMapping.success].tint40;colorStatusTokens.colorStatusWarningForegroundInverted=mappedStatusColors[statusColorMapping.warning].shade20;const webLightTheme=createLightTheme(brandWeb),generateColorTokens=eo=>({colorNeutralForeground1:white,colorNeutralForeground1Hover:white,colorNeutralForeground1Pressed:white,colorNeutralForeground1Selected:white,colorNeutralForeground2:grey[84],colorNeutralForeground2Hover:white,colorNeutralForeground2Pressed:white,colorNeutralForeground2Selected:white,colorNeutralForeground2BrandHover:eo[100],colorNeutralForeground2BrandPressed:eo[90],colorNeutralForeground2BrandSelected:eo[100],colorNeutralForeground3:grey[68],colorNeutralForeground3Hover:grey[84],colorNeutralForeground3Pressed:grey[84],colorNeutralForeground3Selected:grey[84],colorNeutralForeground3BrandHover:eo[100],colorNeutralForeground3BrandPressed:eo[90],colorNeutralForeground3BrandSelected:eo[100],colorNeutralForeground4:grey[60],colorNeutralForegroundDisabled:grey[36],colorNeutralForegroundInvertedDisabled:whiteAlpha[40],colorBrandForegroundLink:eo[100],colorBrandForegroundLinkHover:eo[110],colorBrandForegroundLinkPressed:eo[90],colorBrandForegroundLinkSelected:eo[100],colorNeutralForeground2Link:grey[84],colorNeutralForeground2LinkHover:white,colorNeutralForeground2LinkPressed:white,colorNeutralForeground2LinkSelected:white,colorCompoundBrandForeground1:eo[100],colorCompoundBrandForeground1Hover:eo[110],colorCompoundBrandForeground1Pressed:eo[90],colorBrandForeground1:eo[100],colorBrandForeground2:eo[110],colorBrandForeground2Hover:eo[130],colorBrandForeground2Pressed:eo[160],colorNeutralForeground1Static:grey[14],colorNeutralForegroundStaticInverted:white,colorNeutralForegroundInverted:grey[14],colorNeutralForegroundInvertedHover:grey[14],colorNeutralForegroundInvertedPressed:grey[14],colorNeutralForegroundInvertedSelected:grey[14],colorNeutralForegroundInverted2:grey[14],colorNeutralForegroundOnBrand:white,colorNeutralForegroundInvertedLink:white,colorNeutralForegroundInvertedLinkHover:white,colorNeutralForegroundInvertedLinkPressed:white,colorNeutralForegroundInvertedLinkSelected:white,colorBrandForegroundInverted:eo[80],colorBrandForegroundInvertedHover:eo[70],colorBrandForegroundInvertedPressed:eo[60],colorBrandForegroundOnLight:eo[80],colorBrandForegroundOnLightHover:eo[70],colorBrandForegroundOnLightPressed:eo[50],colorBrandForegroundOnLightSelected:eo[60],colorNeutralBackground1:grey[16],colorNeutralBackground1Hover:grey[24],colorNeutralBackground1Pressed:grey[12],colorNeutralBackground1Selected:grey[22],colorNeutralBackground2:grey[12],colorNeutralBackground2Hover:grey[20],colorNeutralBackground2Pressed:grey[8],colorNeutralBackground2Selected:grey[18],colorNeutralBackground3:grey[8],colorNeutralBackground3Hover:grey[16],colorNeutralBackground3Pressed:grey[4],colorNeutralBackground3Selected:grey[14],colorNeutralBackground4:grey[4],colorNeutralBackground4Hover:grey[12],colorNeutralBackground4Pressed:black,colorNeutralBackground4Selected:grey[10],colorNeutralBackground5:black,colorNeutralBackground5Hover:grey[8],colorNeutralBackground5Pressed:grey[2],colorNeutralBackground5Selected:grey[6],colorNeutralBackground6:grey[20],colorNeutralBackgroundInverted:white,colorNeutralBackgroundStatic:grey[24],colorNeutralBackgroundAlpha:grey10Alpha[50],colorNeutralBackgroundAlpha2:grey12Alpha[70],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:grey[22],colorSubtleBackgroundPressed:grey[18],colorSubtleBackgroundSelected:grey[20],colorSubtleBackgroundLightAlphaHover:grey14Alpha[80],colorSubtleBackgroundLightAlphaPressed:grey14Alpha[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:blackAlpha[10],colorSubtleBackgroundInvertedPressed:blackAlpha[30],colorSubtleBackgroundInvertedSelected:blackAlpha[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:grey[8],colorNeutralBackgroundInvertedDisabled:whiteAlpha[10],colorNeutralStencil1:grey[34],colorNeutralStencil2:grey[20],colorNeutralStencil1Alpha:whiteAlpha[10],colorNeutralStencil2Alpha:whiteAlpha[5],colorBackgroundOverlay:blackAlpha[50],colorScrollbarOverlay:whiteAlpha[60],colorBrandBackground:eo[70],colorBrandBackgroundHover:eo[80],colorBrandBackgroundPressed:eo[40],colorBrandBackgroundSelected:eo[60],colorCompoundBrandBackground:eo[100],colorCompoundBrandBackgroundHover:eo[110],colorCompoundBrandBackgroundPressed:eo[90],colorBrandBackgroundStatic:eo[80],colorBrandBackground2:eo[20],colorBrandBackground2Hover:eo[40],colorBrandBackground2Pressed:eo[10],colorBrandBackgroundInverted:white,colorBrandBackgroundInvertedHover:eo[160],colorBrandBackgroundInvertedPressed:eo[140],colorBrandBackgroundInvertedSelected:eo[150],colorNeutralStrokeAccessible:grey[68],colorNeutralStrokeAccessibleHover:grey[74],colorNeutralStrokeAccessiblePressed:grey[70],colorNeutralStrokeAccessibleSelected:eo[100],colorNeutralStroke1:grey[40],colorNeutralStroke1Hover:grey[46],colorNeutralStroke1Pressed:grey[42],colorNeutralStroke1Selected:grey[44],colorNeutralStroke2:grey[32],colorNeutralStroke3:grey[24],colorNeutralStrokeSubtle:grey[4],colorNeutralStrokeOnBrand:grey[16],colorNeutralStrokeOnBrand2:white,colorNeutralStrokeOnBrand2Hover:white,colorNeutralStrokeOnBrand2Pressed:white,colorNeutralStrokeOnBrand2Selected:white,colorBrandStroke1:eo[100],colorBrandStroke2:eo[50],colorBrandStroke2Hover:eo[50],colorBrandStroke2Pressed:eo[30],colorBrandStroke2Contrast:eo[50],colorCompoundBrandStroke:eo[100],colorCompoundBrandStrokeHover:eo[110],colorCompoundBrandStrokePressed:eo[90],colorNeutralStrokeDisabled:grey[26],colorNeutralStrokeInvertedDisabled:whiteAlpha[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:whiteAlpha[10],colorNeutralStrokeAlpha2:whiteAlpha[20],colorStrokeFocus1:black,colorStrokeFocus2:white,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)"}),createDarkTheme=eo=>{const to=generateColorTokens(eo);return{...borderRadius,...fontSizes,...lineHeights,...fontFamilies,...fontWeights,...strokeWidths,...horizontalSpacings,...verticalSpacings,...durations,...curves,...to,...colorPaletteTokens,...colorStatusTokens,...createShadowTokens(to.colorNeutralShadowAmbient,to.colorNeutralShadowKey),...createShadowTokens(to.colorBrandShadowAmbient,to.colorBrandShadowKey,"Brand")}},webDarkTheme=createDarkTheme(brandWeb),fluentProviderClassNames={root:"fui-FluentProvider"},useStyles$C=__styles$1({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);}"]}),useFluentProviderStyles_unstable=eo=>{const to=useRenderer(),ro=useStyles$C({dir:eo.dir,renderer:to});return eo.root.className=mergeClasses(fluentProviderClassNames.root,eo.themeClassName,ro.root,eo.root.className),eo},useInsertionEffect$1=reactExports.useInsertionEffect?reactExports.useInsertionEffect:useIsomorphicLayoutEffect$1,createStyleTag=(eo,to)=>{if(!eo)return;const ro=eo.createElement("style");return Object.keys(to).forEach(no=>{ro.setAttribute(no,to[no])}),eo.head.appendChild(ro),ro},insertSheet=(eo,to)=>{const ro=eo.sheet;ro&&(ro.cssRules.length>0&&ro.deleteRule(0),ro.insertRule(to,0))},useFluentProviderThemeStyleTag=eo=>{const{targetDocument:to,theme:ro,rendererAttributes:no}=eo,oo=reactExports.useRef(),io=useId$1(fluentProviderClassNames.root),so=no,ao=reactExports.useMemo(()=>createCSSRuleFromTheme(`.${io}`,ro),[ro,io]);return useHandleSSRStyleElements(to,io),useInsertionEffect$1(()=>{const lo=to==null?void 0:to.getElementById(io);return lo?oo.current=lo:(oo.current=createStyleTag(to,{...so,id:io}),oo.current&&insertSheet(oo.current,ao)),()=>{var uo;(uo=oo.current)===null||uo===void 0||uo.remove()}},[io,to,ao,so]),{styleTagId:io,rule:ao}};function useHandleSSRStyleElements(eo,to){reactExports.useState(()=>{if(!eo)return;const ro=eo.getElementById(to);ro&&eo.head.append(ro)})}const EMPTY_OBJECT={},useFluentProvider_unstable=(eo,to)=>{const ro=useFluent(),no=useTheme(),oo=useOverrides(),io=reactExports.useContext(CustomStyleHooksContext)||EMPTY_OBJECT,{applyStylesToPortals:so=!0,customStyleHooks_unstable:ao,dir:lo=ro.dir,targetDocument:uo=ro.targetDocument,theme:co,overrides_unstable:fo={}}=eo,po=shallowMerge(no,co),ho=shallowMerge(oo,fo),mo=shallowMerge(io,ao),vo=useRenderer();var bo;const{styleTagId:xo,rule:_o}=useFluentProviderThemeStyleTag({theme:po,targetDocument:uo,rendererAttributes:(bo=vo.styleElementAttributes)!==null&&bo!==void 0?bo:{}});return{applyStylesToPortals:so,customStyleHooks_unstable:mo,dir:lo,targetDocument:uo,theme:po,overrides_unstable:ho,themeClassName:xo,components:{root:"div"},root:always(getIntrinsicElementProps("div",{...eo,dir:lo,ref:useMergedRefs$1(to,useFocusVisible({targetDocument:uo}))}),{elementType:"div"}),serverStyleProps:{cssRule:_o,attributes:{...vo.styleElementAttributes,id:xo}}}};function shallowMerge(eo,to){return eo&&to?{...eo,...to}:eo||to}function useTheme(){return reactExports.useContext(ThemeContext$2)}function useFluentProviderContextValues_unstable(eo){const{applyStylesToPortals:to,customStyleHooks_unstable:ro,dir:no,root:oo,targetDocument:io,theme:so,themeClassName:ao,overrides_unstable:lo}=eo,uo=reactExports.useMemo(()=>({dir:no,targetDocument:io}),[no,io]),[co]=reactExports.useState(()=>({})),fo=reactExports.useMemo(()=>({textDirection:no}),[no]);return{customStyleHooks_unstable:ro,overrides_unstable:lo,provider:uo,textDirection:no,iconDirection:fo,tooltip:co,theme:so,themeClassName:to?oo.className:ao}}const FluentProvider=reactExports.forwardRef((eo,to)=>{const ro=useFluentProvider_unstable(eo,to);useFluentProviderStyles_unstable(ro);const no=useFluentProviderContextValues_unstable(ro);return renderFluentProvider_unstable(ro,no)});FluentProvider.displayName="FluentProvider";const createProvider=eo=>ro=>{const no=reactExports.useRef(ro.value),oo=reactExports.useRef(0),io=reactExports.useRef();return io.current||(io.current={value:no,version:oo,listeners:[]}),useIsomorphicLayoutEffect$1(()=>{no.current=ro.value,oo.current+=1,schedulerExports.unstable_runWithPriority(schedulerExports.unstable_NormalPriority,()=>{io.current.listeners.forEach(so=>{so([oo.current,ro.value])})})},[ro.value]),reactExports.createElement(eo,{value:io.current},ro.children)},createContext=eo=>{const to=reactExports.createContext({value:{current:eo},version:{current:-1},listeners:[]});return to.Provider=createProvider(to.Provider),delete to.Consumer,to},useContextSelector=(eo,to)=>{const ro=reactExports.useContext(eo),{value:{current:no},version:{current:oo},listeners:io}=ro,so=to(no),[ao,lo]=reactExports.useReducer((uo,co)=>{if(!co)return[no,so];if(co[0]<=oo)return objectIs(uo[1],so)?uo:[no,so];try{if(objectIs(uo[0],co[1]))return uo;const fo=to(co[1]);return objectIs(uo[1],fo)?uo:[co[1],fo]}catch{}return[uo[0],uo[1]]},[no,so]);return objectIs(ao[1],so)||lo(void 0),useIsomorphicLayoutEffect$1(()=>(io.push(lo),()=>{const uo=io.indexOf(lo);io.splice(uo,1)}),[io]),ao[1]};function is$3(eo,to){return eo===to&&(eo!==0||1/eo===1/to)||eo!==eo&&to!==to}const objectIs=typeof Object.is=="function"?Object.is:is$3;function useHasParentContext(eo){const to=reactExports.useContext(eo);return to.version?to.version.current!==-1:!1}const AccordionContext=createContext(void 0),accordionContextDefaultValue={openItems:[],collapsible:!1,multiple:!1,navigation:void 0,requestToggle(){}},{Provider:AccordionProvider}=AccordionContext,useAccordionContext_unstable=eo=>useContextSelector(AccordionContext,(to=accordionContextDefaultValue)=>eo(to)),renderAccordion_unstable=(eo,to)=>jsx$1(eo.root,{children:jsx$1(AccordionProvider,{value:to.accordion,children:eo.root.children})}),useAccordion_unstable=(eo,to)=>{const{openItems:ro,defaultOpenItems:no,multiple:oo=!1,collapsible:io=!1,onToggle:so,navigation:ao}=eo,[lo,uo]=useControllableState({state:reactExports.useMemo(()=>normalizeValues(ro),[ro]),defaultState:()=>initializeUncontrolledOpenItems({defaultOpenItems:no,multiple:oo}),initialState:[]}),co=useArrowNavigationGroup({circular:ao==="circular",tabbable:!0}),fo=useEventCallback$3(po=>{const ho=updateOpenItems(po.value,lo,oo,io);so==null||so(po.event,{value:po.value,openItems:ho}),uo(ho)});return{collapsible:io,multiple:oo,navigation:ao,openItems:lo,requestToggle:fo,components:{root:"div"},root:always(getIntrinsicElementProps("div",{...eo,...ao?co:void 0,ref:to}),{elementType:"div"})}};function initializeUncontrolledOpenItems({defaultOpenItems:eo,multiple:to}){return eo!==void 0?Array.isArray(eo)?to?eo:[eo[0]]:[eo]:[]}function updateOpenItems(eo,to,ro,no){if(ro)if(to.includes(eo)){if(to.length>1||no)return to.filter(oo=>oo!==eo)}else return[...to,eo].sort();else return to[0]===eo&&no?[]:[eo];return to}function normalizeValues(eo){if(eo!==void 0)return Array.isArray(eo)?eo:[eo]}function useAccordionContextValues_unstable(eo){const{navigation:to,openItems:ro,requestToggle:no,multiple:oo,collapsible:io}=eo;return{accordion:{navigation:to,openItems:ro,requestToggle:no,collapsible:io,multiple:oo}}}const accordionClassNames={root:"fui-Accordion"},useAccordionStyles_unstable=eo=>(eo.root.className=mergeClasses(accordionClassNames.root,eo.root.className),eo),Accordion=reactExports.forwardRef((eo,to)=>{const ro=useAccordion_unstable(eo,to),no=useAccordionContextValues_unstable(ro);return useAccordionStyles_unstable(ro),useCustomStyleHook("useAccordionStyles_unstable")(ro),renderAccordion_unstable(ro,no)});Accordion.displayName="Accordion";const useAccordionItem_unstable=(eo,to)=>{const{value:ro,disabled:no=!1}=eo,oo=useAccordionContext_unstable(ao=>ao.requestToggle),io=useAccordionContext_unstable(ao=>ao.openItems.includes(ro)),so=useEventCallback$3(ao=>oo({event:ao,value:ro}));return{open:io,value:ro,disabled:no,onHeaderClick:so,components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:to,...eo}),{elementType:"div"})}};function useAccordionItemContextValues_unstable(eo){const{disabled:to,open:ro,value:no,onHeaderClick:oo}=eo;return{accordionItem:reactExports.useMemo(()=>({disabled:to,open:ro,value:no,onHeaderClick:oo}),[to,ro,no,oo])}}const AccordionItemContext=reactExports.createContext(void 0),accordionItemContextDefaultValue={open:!1,disabled:!1,value:void 0,onHeaderClick(){}},{Provider:AccordionItemProvider}=AccordionItemContext,useAccordionItemContext_unstable=()=>{var eo;return(eo=reactExports.useContext(AccordionItemContext))!==null&&eo!==void 0?eo:accordionItemContextDefaultValue},renderAccordionItem_unstable=(eo,to)=>jsx$1(eo.root,{children:jsx$1(AccordionItemProvider,{value:to.accordionItem,children:eo.root.children})}),accordionItemClassNames={root:"fui-AccordionItem"},useAccordionItemStyles_unstable=eo=>(eo.root.className=mergeClasses(accordionItemClassNames.root,eo.root.className),eo),AccordionItem=reactExports.forwardRef((eo,to)=>{const ro=useAccordionItem_unstable(eo,to),no=useAccordionItemContextValues_unstable(ro);return useAccordionItemStyles_unstable(ro),useCustomStyleHook("useAccordionItemStyles_unstable")(ro),renderAccordionItem_unstable(ro,no)});AccordionItem.displayName="AccordionItem";const Enter="Enter",Space=" ",Tab$2="Tab",ArrowDown="ArrowDown",ArrowLeft="ArrowLeft",ArrowRight="ArrowRight",ArrowUp="ArrowUp",End="End",Home="Home",PageDown="PageDown",PageUp="PageUp",Escape="Escape";function useARIAButtonProps(eo,to){const{disabled:ro,disabledFocusable:no=!1,["aria-disabled"]:oo,onClick:io,onKeyDown:so,onKeyUp:ao,...lo}=to??{},uo=typeof oo=="string"?oo==="true":oo,co=ro||no||uo,fo=useEventCallback$3(mo=>{co?(mo.preventDefault(),mo.stopPropagation()):io==null||io(mo)}),po=useEventCallback$3(mo=>{if(so==null||so(mo),mo.isDefaultPrevented())return;const vo=mo.key;if(co&&(vo===Enter||vo===Space)){mo.preventDefault(),mo.stopPropagation();return}if(vo===Space){mo.preventDefault();return}else vo===Enter&&(mo.preventDefault(),mo.currentTarget.click())}),ho=useEventCallback$3(mo=>{if(ao==null||ao(mo),mo.isDefaultPrevented())return;const vo=mo.key;if(co&&(vo===Enter||vo===Space)){mo.preventDefault(),mo.stopPropagation();return}vo===Space&&(mo.preventDefault(),mo.currentTarget.click())});if(eo==="button"||eo===void 0)return{...lo,disabled:ro&&!no,"aria-disabled":no?!0:uo,onClick:no?void 0:fo,onKeyUp:no?void 0:ao,onKeyDown:no?void 0:so};{const mo={role:"button",tabIndex:ro&&!no?void 0:0,...lo,onClick:fo,onKeyUp:ho,onKeyDown:po,"aria-disabled":ro||no||uo};return eo==="a"&&co&&(mo.href=void 0),mo}}const useAccordionHeader_unstable=(eo,to)=>{const{icon:ro,button:no,expandIcon:oo,inline:io=!1,size:so="medium",expandIconPosition:ao="start"}=eo,{value:lo,disabled:uo,open:co}=useAccordionItemContext_unstable(),fo=useAccordionContext_unstable(bo=>bo.requestToggle),po=useAccordionContext_unstable(bo=>!bo.collapsible&&bo.openItems.length===1&&co),{dir:ho}=useFluent();let mo;ao==="end"?mo=co?-90:90:mo=co?90:ho!=="rtl"?0:180;const vo=always(no,{elementType:"button",defaultProps:{disabled:uo,disabledFocusable:po,"aria-expanded":co,type:"button"}});return vo.onClick=useEventCallback$3(bo=>{if(isResolvedShorthand(no)){var xo;(xo=no.onClick)===null||xo===void 0||xo.call(no,bo)}bo.defaultPrevented||fo({value:lo,event:bo})}),{disabled:uo,open:co,size:so,inline:io,expandIconPosition:ao,components:{root:"div",button:"button",expandIcon:"span",icon:"div"},root:always(getIntrinsicElementProps("div",{ref:to,...eo}),{elementType:"div"}),icon:optional(ro,{elementType:"div"}),expandIcon:optional(oo,{renderByDefault:!0,defaultProps:{children:reactExports.createElement(ChevronRightRegular,{style:{transform:`rotate(${mo}deg)`}}),"aria-hidden":!0},elementType:"span"}),button:useARIAButtonProps(vo.as,vo)}},AccordionHeaderContext=reactExports.createContext(void 0),{Provider:AccordionHeaderProvider}=AccordionHeaderContext,renderAccordionHeader_unstable=(eo,to)=>jsx$1(AccordionHeaderProvider,{value:to.accordionHeader,children:jsx$1(eo.root,{children:jsxs(eo.button,{children:[eo.expandIconPosition==="start"&&eo.expandIcon&&jsx$1(eo.expandIcon,{}),eo.icon&&jsx$1(eo.icon,{}),eo.root.children,eo.expandIconPosition==="end"&&eo.expandIcon&&jsx$1(eo.expandIcon,{})]})})}),accordionHeaderClassNames={root:"fui-AccordionHeader",button:"fui-AccordionHeader__button",expandIcon:"fui-AccordionHeader__expandIcon",icon:"fui-AccordionHeader__icon"},useStyles$B=__styles({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)"}]]}),useAccordionHeaderStyles_unstable=eo=>{const to=useStyles$B();return eo.root.className=mergeClasses(accordionHeaderClassNames.root,to.root,eo.inline&&to.rootInline,eo.disabled&&to.rootDisabled,eo.root.className),eo.button.className=mergeClasses(accordionHeaderClassNames.button,to.resetButton,to.button,to.focusIndicator,eo.expandIconPosition==="end"&&!eo.icon&&to.buttonExpandIconEndNoIcon,eo.expandIconPosition==="end"&&to.buttonExpandIconEnd,eo.inline&&to.buttonInline,eo.size==="small"&&to.buttonSmall,eo.size==="large"&&to.buttonLarge,eo.size==="extra-large"&&to.buttonExtraLarge,eo.disabled&&to.buttonDisabled,eo.button.className),eo.expandIcon&&(eo.expandIcon.className=mergeClasses(accordionHeaderClassNames.expandIcon,to.expandIcon,eo.expandIconPosition==="start"&&to.expandIconStart,eo.expandIconPosition==="end"&&to.expandIconEnd,eo.expandIcon.className)),eo.icon&&(eo.icon.className=mergeClasses(accordionHeaderClassNames.icon,to.icon,eo.icon.className)),eo};function useAccordionHeaderContextValues_unstable(eo){const{disabled:to,expandIconPosition:ro,open:no,size:oo}=eo;return{accordionHeader:reactExports.useMemo(()=>({disabled:to,expandIconPosition:ro,open:no,size:oo}),[to,ro,no,oo])}}const AccordionHeader=reactExports.forwardRef((eo,to)=>{const ro=useAccordionHeader_unstable(eo,to),no=useAccordionHeaderContextValues_unstable(ro);return useAccordionHeaderStyles_unstable(ro),useCustomStyleHook("useAccordionHeaderStyles_unstable")(ro),renderAccordionHeader_unstable(ro,no)});AccordionHeader.displayName="AccordionHeader";const useAccordionPanel_unstable=(eo,to)=>{const{open:ro}=useAccordionItemContext_unstable(),no=useTabsterAttributes({focusable:{excludeFromMover:!0}}),oo=useAccordionContext_unstable(io=>io.navigation);return{open:ro,components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:to,...eo,...oo&&no}),{elementType:"div"})}},renderAccordionPanel_unstable=eo=>eo.open?jsx$1(eo.root,{children:eo.root.children}):null,accordionPanelClassNames={root:"fui-AccordionPanel"},useStyles$A=__styles({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;}"]}),useAccordionPanelStyles_unstable=eo=>{const to=useStyles$A();return eo.root.className=mergeClasses(accordionPanelClassNames.root,to.root,eo.root.className),eo},AccordionPanel=reactExports.forwardRef((eo,to)=>{const ro=useAccordionPanel_unstable(eo,to);return useAccordionPanelStyles_unstable(ro),useCustomStyleHook("useAccordionPanelStyles_unstable")(ro),renderAccordionPanel_unstable(ro)});AccordionPanel.displayName="AccordionPanel";const useBadge_unstable=(eo,to)=>{const{shape:ro="circular",size:no="medium",iconPosition:oo="before",appearance:io="filled",color:so="brand"}=eo;return{shape:ro,size:no,iconPosition:oo,appearance:io,color:so,components:{root:"div",icon:"span"},root:always(getIntrinsicElementProps("div",{ref:to,...eo}),{elementType:"div"}),icon:optional(eo.icon,{elementType:"span"})}},badgeClassNames={root:"fui-Badge",icon:"fui-Badge__icon"},useRootClassName$1=__resetStyles("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;}']),useRootStyles$6=__styles({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);}"]}),useIconRootClassName=__resetStyles("rttl5z0",null,[".rttl5z0{display:flex;line-height:1;margin:0 calc(-1 * var(--spacingHorizontalXXS));font-size:12px;}"]),useIconStyles$4=__styles({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;}"]}),useBadgeStyles_unstable=eo=>{const to=useRootClassName$1(),ro=useRootStyles$6(),no=eo.size==="small"||eo.size==="extra-small"||eo.size==="tiny";eo.root.className=mergeClasses(badgeClassNames.root,to,no&&ro.fontSmallToTiny,ro[eo.size],ro[eo.shape],eo.shape==="rounded"&&no&&ro.roundedSmallToTiny,eo.appearance==="ghost"&&ro.borderGhost,ro[eo.appearance],ro[`${eo.appearance}-${eo.color}`],eo.root.className);const oo=useIconRootClassName(),io=useIconStyles$4();if(eo.icon){let so;eo.root.children&&(eo.size==="extra-large"?so=eo.iconPosition==="after"?io.afterTextXL:io.beforeTextXL:so=eo.iconPosition==="after"?io.afterText:io.beforeText),eo.icon.className=mergeClasses(badgeClassNames.icon,oo,so,io[eo.size],eo.icon.className)}return eo},renderBadge_unstable=eo=>jsxs(eo.root,{children:[eo.iconPosition==="before"&&eo.icon&&jsx$1(eo.icon,{}),eo.root.children,eo.iconPosition==="after"&&eo.icon&&jsx$1(eo.icon,{})]}),Badge$2=reactExports.forwardRef((eo,to)=>{const ro=useBadge_unstable(eo,to);return useBadgeStyles_unstable(ro),useCustomStyleHook("useBadgeStyles_unstable")(ro),renderBadge_unstable(ro)});Badge$2.displayName="Badge";const useCounterBadge_unstable=(eo,to)=>{const{shape:ro="circular",appearance:no="filled",showZero:oo=!1,overflowCount:io=99,count:so=0,dot:ao=!1}=eo,lo={...useBadge_unstable(eo,to),shape:ro,appearance:no,showZero:oo,count:so,dot:ao};return(so!==0||oo)&&!ao&&!lo.root.children&&(lo.root.children=so>io?`${io}+`:`${so}`),lo},counterBadgeClassNames={root:"fui-CounterBadge",icon:"fui-CounterBadge__icon"},useStyles$z=__styles({dot:{Bf4jedk:"fgfkb25",a9b677:"f16dn6v3",Bqenvij:"f3mu39s",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"]},hide:{mc9l5x:"fjseox"}},{d:[".fgfkb25{min-width:auto;}",".f16dn6v3{width:6px;}",".f3mu39s{height:6px;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".fjseox{display:none;}"]}),useCounterBadgeStyles_unstable=eo=>{const to=useStyles$z();return eo.root.className=mergeClasses(counterBadgeClassNames.root,eo.dot&&to.dot,!eo.root.children&&!eo.dot&&to.hide,eo.root.className),eo.icon&&(eo.icon.className=mergeClasses(counterBadgeClassNames.icon,eo.icon.className)),useBadgeStyles_unstable(eo)},CounterBadge=reactExports.forwardRef((eo,to)=>{const ro=useCounterBadge_unstable(eo,to);return useCounterBadgeStyles_unstable(ro),useCustomStyleHook("useCounterBadgeStyles_unstable")(ro),renderBadge_unstable(ro)});CounterBadge.displayName="CounterBadge";function createVirtualElementFromClick(eo){const to=eo.clientX,ro=eo.clientY,no=to+1,oo=ro+1;function io(){return{left:to,top:ro,right:no,bottom:oo,x:to,y:ro,height:1,width:1}}return{getBoundingClientRect:io}}const DATA_POSITIONING_INTERSECTING="data-popper-is-intersecting",DATA_POSITIONING_ESCAPED="data-popper-escaped",DATA_POSITIONING_HIDDEN="data-popper-reference-hidden",DATA_POSITIONING_PLACEMENT="data-popper-placement",sides=["top","right","bottom","left"],min$2=Math.min,max$2=Math.max,round$1=Math.round,createCoords=eo=>({x:eo,y:eo}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"},oppositeAlignmentMap={start:"end",end:"start"};function clamp$2(eo,to,ro){return max$2(eo,min$2(to,ro))}function evaluate(eo,to){return typeof eo=="function"?eo(to):eo}function getSide(eo){return eo.split("-")[0]}function getAlignment(eo){return eo.split("-")[1]}function getOppositeAxis(eo){return eo==="x"?"y":"x"}function getAxisLength(eo){return eo==="y"?"height":"width"}function getSideAxis(eo){return["top","bottom"].includes(getSide(eo))?"y":"x"}function getAlignmentAxis(eo){return getOppositeAxis(getSideAxis(eo))}function getAlignmentSides(eo,to,ro){ro===void 0&&(ro=!1);const no=getAlignment(eo),oo=getAlignmentAxis(eo),io=getAxisLength(oo);let so=oo==="x"?no===(ro?"end":"start")?"right":"left":no==="start"?"bottom":"top";return to.reference[io]>to.floating[io]&&(so=getOppositePlacement(so)),[so,getOppositePlacement(so)]}function getExpandedPlacements(eo){const to=getOppositePlacement(eo);return[getOppositeAlignmentPlacement(eo),to,getOppositeAlignmentPlacement(to)]}function getOppositeAlignmentPlacement(eo){return eo.replace(/start|end/g,to=>oppositeAlignmentMap[to])}function getSideList(eo,to,ro){const no=["left","right"],oo=["right","left"],io=["top","bottom"],so=["bottom","top"];switch(eo){case"top":case"bottom":return ro?to?oo:no:to?no:oo;case"left":case"right":return to?io:so;default:return[]}}function getOppositeAxisPlacements(eo,to,ro,no){const oo=getAlignment(eo);let io=getSideList(getSide(eo),ro==="start",no);return oo&&(io=io.map(so=>so+"-"+oo),to&&(io=io.concat(io.map(getOppositeAlignmentPlacement)))),io}function getOppositePlacement(eo){return eo.replace(/left|right|bottom|top/g,to=>oppositeSideMap[to])}function expandPaddingObject(eo){return{top:0,right:0,bottom:0,left:0,...eo}}function getPaddingObject(eo){return typeof eo!="number"?expandPaddingObject(eo):{top:eo,right:eo,bottom:eo,left:eo}}function rectToClientRect(eo){return{...eo,top:eo.y,left:eo.x,right:eo.x+eo.width,bottom:eo.y+eo.height}}function computeCoordsFromPlacement(eo,to,ro){let{reference:no,floating:oo}=eo;const io=getSideAxis(to),so=getAlignmentAxis(to),ao=getAxisLength(so),lo=getSide(to),uo=io==="y",co=no.x+no.width/2-oo.width/2,fo=no.y+no.height/2-oo.height/2,po=no[ao]/2-oo[ao]/2;let ho;switch(lo){case"top":ho={x:co,y:no.y-oo.height};break;case"bottom":ho={x:co,y:no.y+no.height};break;case"right":ho={x:no.x+no.width,y:fo};break;case"left":ho={x:no.x-oo.width,y:fo};break;default:ho={x:no.x,y:no.y}}switch(getAlignment(to)){case"start":ho[so]-=po*(ro&&uo?-1:1);break;case"end":ho[so]+=po*(ro&&uo?-1:1);break}return ho}const computePosition$1=async(eo,to,ro)=>{const{placement:no="bottom",strategy:oo="absolute",middleware:io=[],platform:so}=ro,ao=io.filter(Boolean),lo=await(so.isRTL==null?void 0:so.isRTL(to));let uo=await so.getElementRects({reference:eo,floating:to,strategy:oo}),{x:co,y:fo}=computeCoordsFromPlacement(uo,no,lo),po=no,ho={},mo=0;for(let vo=0;vo({name:"arrow",options:eo,async fn(to){const{x:ro,y:no,placement:oo,rects:io,platform:so,elements:ao,middlewareData:lo}=to,{element:uo,padding:co=0}=evaluate(eo,to)||{};if(uo==null)return{};const fo=getPaddingObject(co),po={x:ro,y:no},ho=getAlignmentAxis(oo),mo=getAxisLength(ho),vo=await so.getDimensions(uo),bo=ho==="y",xo=bo?"top":"left",_o=bo?"bottom":"right",So=bo?"clientHeight":"clientWidth",Eo=io.reference[mo]+io.reference[ho]-po[ho]-io.floating[mo],ko=po[ho]-io.reference[ho],wo=await(so.getOffsetParent==null?void 0:so.getOffsetParent(uo));let Co=wo?wo[So]:0;(!Co||!await(so.isElement==null?void 0:so.isElement(wo)))&&(Co=ao.floating[So]||io.floating[mo]);const Ro=Eo/2-ko/2,Ao=Co/2-vo[mo]/2-1,Io=min$2(fo[xo],Ao),$o=min$2(fo[_o],Ao),Bo=Io,Mo=Co-vo[mo]-$o,Ho=Co/2-vo[mo]/2+Ro,jo=clamp$2(Bo,Ho,Mo),Oo=!lo.arrow&&getAlignment(oo)!=null&&Ho!=jo&&io.reference[mo]/2-(HoBo<=0)){var Ao,Io;const Bo=(((Ao=io.flip)==null?void 0:Ao.index)||0)+1,Mo=ko[Bo];if(Mo)return{data:{index:Bo,overflows:Ro},reset:{placement:Mo}};let Ho=(Io=Ro.filter(jo=>jo.overflows[0]<=0).sort((jo,Oo)=>jo.overflows[1]-Oo.overflows[1])[0])==null?void 0:Io.placement;if(!Ho)switch(ho){case"bestFit":{var $o;const jo=($o=Ro.map(Oo=>[Oo.placement,Oo.overflows.filter(Fo=>Fo>0).reduce((Fo,Go)=>Fo+Go,0)]).sort((Oo,Fo)=>Oo[1]-Fo[1])[0])==null?void 0:$o[0];jo&&(Ho=jo);break}case"initialPlacement":Ho=ao;break}if(oo!==Ho)return{reset:{placement:Ho}}}return{}}}};function getSideOffsets(eo,to){return{top:eo.top-to.height,right:eo.right-to.width,bottom:eo.bottom-to.height,left:eo.left-to.width}}function isAnySideFullyClipped(eo){return sides.some(to=>eo[to]>=0)}const hide=function(eo){return eo===void 0&&(eo={}),{name:"hide",options:eo,async fn(to){const{rects:ro}=to,{strategy:no="referenceHidden",...oo}=evaluate(eo,to);switch(no){case"referenceHidden":{const io=await detectOverflow(to,{...oo,elementContext:"reference"}),so=getSideOffsets(io,ro.reference);return{data:{referenceHiddenOffsets:so,referenceHidden:isAnySideFullyClipped(so)}}}case"escaped":{const io=await detectOverflow(to,{...oo,altBoundary:!0}),so=getSideOffsets(io,ro.floating);return{data:{escapedOffsets:so,escaped:isAnySideFullyClipped(so)}}}default:return{}}}}};async function convertValueToCoords(eo,to){const{placement:ro,platform:no,elements:oo}=eo,io=await(no.isRTL==null?void 0:no.isRTL(oo.floating)),so=getSide(ro),ao=getAlignment(ro),lo=getSideAxis(ro)==="y",uo=["left","top"].includes(so)?-1:1,co=io&&lo?-1:1,fo=evaluate(to,eo);let{mainAxis:po,crossAxis:ho,alignmentAxis:mo}=typeof fo=="number"?{mainAxis:fo,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...fo};return ao&&typeof mo=="number"&&(ho=ao==="end"?mo*-1:mo),lo?{x:ho*co,y:po*uo}:{x:po*uo,y:ho*co}}const offset$1=function(eo){return eo===void 0&&(eo=0),{name:"offset",options:eo,async fn(to){var ro,no;const{x:oo,y:io,placement:so,middlewareData:ao}=to,lo=await convertValueToCoords(to,eo);return so===((ro=ao.offset)==null?void 0:ro.placement)&&(no=ao.arrow)!=null&&no.alignmentOffset?{}:{x:oo+lo.x,y:io+lo.y,data:{...lo,placement:so}}}}},shift$1=function(eo){return eo===void 0&&(eo={}),{name:"shift",options:eo,async fn(to){const{x:ro,y:no,placement:oo}=to,{mainAxis:io=!0,crossAxis:so=!1,limiter:ao={fn:bo=>{let{x:xo,y:_o}=bo;return{x:xo,y:_o}}},...lo}=evaluate(eo,to),uo={x:ro,y:no},co=await detectOverflow(to,lo),fo=getSideAxis(getSide(oo)),po=getOppositeAxis(fo);let ho=uo[po],mo=uo[fo];if(io){const bo=po==="y"?"top":"left",xo=po==="y"?"bottom":"right",_o=ho+co[bo],So=ho-co[xo];ho=clamp$2(_o,ho,So)}if(so){const bo=fo==="y"?"top":"left",xo=fo==="y"?"bottom":"right",_o=mo+co[bo],So=mo-co[xo];mo=clamp$2(_o,mo,So)}const vo=ao.fn({...to,[po]:ho,[fo]:mo});return{...vo,data:{x:vo.x-ro,y:vo.y-no}}}}},limitShift=function(eo){return eo===void 0&&(eo={}),{options:eo,fn(to){const{x:ro,y:no,placement:oo,rects:io,middlewareData:so}=to,{offset:ao=0,mainAxis:lo=!0,crossAxis:uo=!0}=evaluate(eo,to),co={x:ro,y:no},fo=getSideAxis(oo),po=getOppositeAxis(fo);let ho=co[po],mo=co[fo];const vo=evaluate(ao,to),bo=typeof vo=="number"?{mainAxis:vo,crossAxis:0}:{mainAxis:0,crossAxis:0,...vo};if(lo){const So=po==="y"?"height":"width",Eo=io.reference[po]-io.floating[So]+bo.mainAxis,ko=io.reference[po]+io.reference[So]-bo.mainAxis;hoko&&(ho=ko)}if(uo){var xo,_o;const So=po==="y"?"width":"height",Eo=["top","left"].includes(getSide(oo)),ko=io.reference[fo]-io.floating[So]+(Eo&&((xo=so.offset)==null?void 0:xo[fo])||0)+(Eo?0:bo.crossAxis),wo=io.reference[fo]+io.reference[So]+(Eo?0:((_o=so.offset)==null?void 0:_o[fo])||0)-(Eo?bo.crossAxis:0);mowo&&(mo=wo)}return{[po]:ho,[fo]:mo}}}},size=function(eo){return eo===void 0&&(eo={}),{name:"size",options:eo,async fn(to){const{placement:ro,rects:no,platform:oo,elements:io}=to,{apply:so=()=>{},...ao}=evaluate(eo,to),lo=await detectOverflow(to,ao),uo=getSide(ro),co=getAlignment(ro),fo=getSideAxis(ro)==="y",{width:po,height:ho}=no.floating;let mo,vo;uo==="top"||uo==="bottom"?(mo=uo,vo=co===(await(oo.isRTL==null?void 0:oo.isRTL(io.floating))?"start":"end")?"left":"right"):(vo=uo,mo=co==="end"?"top":"bottom");const bo=ho-lo[mo],xo=po-lo[vo],_o=!to.middlewareData.shift;let So=bo,Eo=xo;if(fo){const wo=po-lo.left-lo.right;Eo=co||_o?min$2(xo,wo):wo}else{const wo=ho-lo.top-lo.bottom;So=co||_o?min$2(bo,wo):wo}if(_o&&!co){const wo=max$2(lo.left,0),Co=max$2(lo.right,0),Ro=max$2(lo.top,0),Ao=max$2(lo.bottom,0);fo?Eo=po-2*(wo!==0||Co!==0?wo+Co:max$2(lo.left,lo.right)):So=ho-2*(Ro!==0||Ao!==0?Ro+Ao:max$2(lo.top,lo.bottom))}await so({...to,availableWidth:Eo,availableHeight:So});const ko=await oo.getDimensions(io.floating);return po!==ko.width||ho!==ko.height?{reset:{rects:!0}}:{}}}};function getNodeName(eo){return isNode(eo)?(eo.nodeName||"").toLowerCase():"#document"}function getWindow$1(eo){var to;return(eo==null||(to=eo.ownerDocument)==null?void 0:to.defaultView)||window}function getDocumentElement(eo){var to;return(to=(isNode(eo)?eo.ownerDocument:eo.document)||window.document)==null?void 0:to.documentElement}function isNode(eo){return eo instanceof Node||eo instanceof getWindow$1(eo).Node}function isElement$1(eo){return eo instanceof Element||eo instanceof getWindow$1(eo).Element}function isHTMLElement$4(eo){return eo instanceof HTMLElement||eo instanceof getWindow$1(eo).HTMLElement}function isShadowRoot(eo){return typeof ShadowRoot>"u"?!1:eo instanceof ShadowRoot||eo instanceof getWindow$1(eo).ShadowRoot}function isOverflowElement(eo){const{overflow:to,overflowX:ro,overflowY:no,display:oo}=getComputedStyle$1(eo);return/auto|scroll|overlay|hidden|clip/.test(to+no+ro)&&!["inline","contents"].includes(oo)}function isTableElement(eo){return["table","td","th"].includes(getNodeName(eo))}function isContainingBlock(eo){const to=isWebKit(),ro=getComputedStyle$1(eo);return ro.transform!=="none"||ro.perspective!=="none"||(ro.containerType?ro.containerType!=="normal":!1)||!to&&(ro.backdropFilter?ro.backdropFilter!=="none":!1)||!to&&(ro.filter?ro.filter!=="none":!1)||["transform","perspective","filter"].some(no=>(ro.willChange||"").includes(no))||["paint","layout","strict","content"].some(no=>(ro.contain||"").includes(no))}function getContainingBlock(eo){let to=getParentNode$1(eo);for(;isHTMLElement$4(to)&&!isLastTraversableNode(to);){if(isContainingBlock(to))return to;to=getParentNode$1(to)}return null}function isWebKit(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(eo){return["html","body","#document"].includes(getNodeName(eo))}function getComputedStyle$1(eo){return getWindow$1(eo).getComputedStyle(eo)}function getNodeScroll(eo){return isElement$1(eo)?{scrollLeft:eo.scrollLeft,scrollTop:eo.scrollTop}:{scrollLeft:eo.pageXOffset,scrollTop:eo.pageYOffset}}function getParentNode$1(eo){if(getNodeName(eo)==="html")return eo;const to=eo.assignedSlot||eo.parentNode||isShadowRoot(eo)&&eo.host||getDocumentElement(eo);return isShadowRoot(to)?to.host:to}function getNearestOverflowAncestor(eo){const to=getParentNode$1(eo);return isLastTraversableNode(to)?eo.ownerDocument?eo.ownerDocument.body:eo.body:isHTMLElement$4(to)&&isOverflowElement(to)?to:getNearestOverflowAncestor(to)}function getOverflowAncestors(eo,to,ro){var no;to===void 0&&(to=[]),ro===void 0&&(ro=!0);const oo=getNearestOverflowAncestor(eo),io=oo===((no=eo.ownerDocument)==null?void 0:no.body),so=getWindow$1(oo);return io?to.concat(so,so.visualViewport||[],isOverflowElement(oo)?oo:[],so.frameElement&&ro?getOverflowAncestors(so.frameElement):[]):to.concat(oo,getOverflowAncestors(oo,[],ro))}function getCssDimensions(eo){const to=getComputedStyle$1(eo);let ro=parseFloat(to.width)||0,no=parseFloat(to.height)||0;const oo=isHTMLElement$4(eo),io=oo?eo.offsetWidth:ro,so=oo?eo.offsetHeight:no,ao=round$1(ro)!==io||round$1(no)!==so;return ao&&(ro=io,no=so),{width:ro,height:no,$:ao}}function unwrapElement(eo){return isElement$1(eo)?eo:eo.contextElement}function getScale(eo){const to=unwrapElement(eo);if(!isHTMLElement$4(to))return createCoords(1);const ro=to.getBoundingClientRect(),{width:no,height:oo,$:io}=getCssDimensions(to);let so=(io?round$1(ro.width):ro.width)/no,ao=(io?round$1(ro.height):ro.height)/oo;return(!so||!Number.isFinite(so))&&(so=1),(!ao||!Number.isFinite(ao))&&(ao=1),{x:so,y:ao}}const noOffsets=createCoords(0);function getVisualOffsets(eo){const to=getWindow$1(eo);return!isWebKit()||!to.visualViewport?noOffsets:{x:to.visualViewport.offsetLeft,y:to.visualViewport.offsetTop}}function shouldAddVisualOffsets(eo,to,ro){return to===void 0&&(to=!1),!ro||to&&ro!==getWindow$1(eo)?!1:to}function getBoundingClientRect(eo,to,ro,no){to===void 0&&(to=!1),ro===void 0&&(ro=!1);const oo=eo.getBoundingClientRect(),io=unwrapElement(eo);let so=createCoords(1);to&&(no?isElement$1(no)&&(so=getScale(no)):so=getScale(eo));const ao=shouldAddVisualOffsets(io,ro,no)?getVisualOffsets(io):createCoords(0);let lo=(oo.left+ao.x)/so.x,uo=(oo.top+ao.y)/so.y,co=oo.width/so.x,fo=oo.height/so.y;if(io){const po=getWindow$1(io),ho=no&&isElement$1(no)?getWindow$1(no):no;let mo=po.frameElement;for(;mo&&no&&ho!==po;){const vo=getScale(mo),bo=mo.getBoundingClientRect(),xo=getComputedStyle$1(mo),_o=bo.left+(mo.clientLeft+parseFloat(xo.paddingLeft))*vo.x,So=bo.top+(mo.clientTop+parseFloat(xo.paddingTop))*vo.y;lo*=vo.x,uo*=vo.y,co*=vo.x,fo*=vo.y,lo+=_o,uo+=So,mo=getWindow$1(mo).frameElement}}return rectToClientRect({width:co,height:fo,x:lo,y:uo})}function convertOffsetParentRelativeRectToViewportRelativeRect(eo){let{rect:to,offsetParent:ro,strategy:no}=eo;const oo=isHTMLElement$4(ro),io=getDocumentElement(ro);if(ro===io)return to;let so={scrollLeft:0,scrollTop:0},ao=createCoords(1);const lo=createCoords(0);if((oo||!oo&&no!=="fixed")&&((getNodeName(ro)!=="body"||isOverflowElement(io))&&(so=getNodeScroll(ro)),isHTMLElement$4(ro))){const uo=getBoundingClientRect(ro);ao=getScale(ro),lo.x=uo.x+ro.clientLeft,lo.y=uo.y+ro.clientTop}return{width:to.width*ao.x,height:to.height*ao.y,x:to.x*ao.x-so.scrollLeft*ao.x+lo.x,y:to.y*ao.y-so.scrollTop*ao.y+lo.y}}function getClientRects(eo){return Array.from(eo.getClientRects())}function getWindowScrollBarX(eo){return getBoundingClientRect(getDocumentElement(eo)).left+getNodeScroll(eo).scrollLeft}function getDocumentRect(eo){const to=getDocumentElement(eo),ro=getNodeScroll(eo),no=eo.ownerDocument.body,oo=max$2(to.scrollWidth,to.clientWidth,no.scrollWidth,no.clientWidth),io=max$2(to.scrollHeight,to.clientHeight,no.scrollHeight,no.clientHeight);let so=-ro.scrollLeft+getWindowScrollBarX(eo);const ao=-ro.scrollTop;return getComputedStyle$1(no).direction==="rtl"&&(so+=max$2(to.clientWidth,no.clientWidth)-oo),{width:oo,height:io,x:so,y:ao}}function getViewportRect(eo,to){const ro=getWindow$1(eo),no=getDocumentElement(eo),oo=ro.visualViewport;let io=no.clientWidth,so=no.clientHeight,ao=0,lo=0;if(oo){io=oo.width,so=oo.height;const uo=isWebKit();(!uo||uo&&to==="fixed")&&(ao=oo.offsetLeft,lo=oo.offsetTop)}return{width:io,height:so,x:ao,y:lo}}function getInnerBoundingClientRect(eo,to){const ro=getBoundingClientRect(eo,!0,to==="fixed"),no=ro.top+eo.clientTop,oo=ro.left+eo.clientLeft,io=isHTMLElement$4(eo)?getScale(eo):createCoords(1),so=eo.clientWidth*io.x,ao=eo.clientHeight*io.y,lo=oo*io.x,uo=no*io.y;return{width:so,height:ao,x:lo,y:uo}}function getClientRectFromClippingAncestor(eo,to,ro){let no;if(to==="viewport")no=getViewportRect(eo,ro);else if(to==="document")no=getDocumentRect(getDocumentElement(eo));else if(isElement$1(to))no=getInnerBoundingClientRect(to,ro);else{const oo=getVisualOffsets(eo);no={...to,x:to.x-oo.x,y:to.y-oo.y}}return rectToClientRect(no)}function hasFixedPositionAncestor(eo,to){const ro=getParentNode$1(eo);return ro===to||!isElement$1(ro)||isLastTraversableNode(ro)?!1:getComputedStyle$1(ro).position==="fixed"||hasFixedPositionAncestor(ro,to)}function getClippingElementAncestors(eo,to){const ro=to.get(eo);if(ro)return ro;let no=getOverflowAncestors(eo,[],!1).filter(ao=>isElement$1(ao)&&getNodeName(ao)!=="body"),oo=null;const io=getComputedStyle$1(eo).position==="fixed";let so=io?getParentNode$1(eo):eo;for(;isElement$1(so)&&!isLastTraversableNode(so);){const ao=getComputedStyle$1(so),lo=isContainingBlock(so);!lo&&ao.position==="fixed"&&(oo=null),(io?!lo&&!oo:!lo&&ao.position==="static"&&!!oo&&["absolute","fixed"].includes(oo.position)||isOverflowElement(so)&&!lo&&hasFixedPositionAncestor(eo,so))?no=no.filter(co=>co!==so):oo=ao,so=getParentNode$1(so)}return to.set(eo,no),no}function getClippingRect(eo){let{element:to,boundary:ro,rootBoundary:no,strategy:oo}=eo;const so=[...ro==="clippingAncestors"?getClippingElementAncestors(to,this._c):[].concat(ro),no],ao=so[0],lo=so.reduce((uo,co)=>{const fo=getClientRectFromClippingAncestor(to,co,oo);return uo.top=max$2(fo.top,uo.top),uo.right=min$2(fo.right,uo.right),uo.bottom=min$2(fo.bottom,uo.bottom),uo.left=max$2(fo.left,uo.left),uo},getClientRectFromClippingAncestor(to,ao,oo));return{width:lo.right-lo.left,height:lo.bottom-lo.top,x:lo.left,y:lo.top}}function getDimensions(eo){return getCssDimensions(eo)}function getRectRelativeToOffsetParent(eo,to,ro){const no=isHTMLElement$4(to),oo=getDocumentElement(to),io=ro==="fixed",so=getBoundingClientRect(eo,!0,io,to);let ao={scrollLeft:0,scrollTop:0};const lo=createCoords(0);if(no||!no&&!io)if((getNodeName(to)!=="body"||isOverflowElement(oo))&&(ao=getNodeScroll(to)),no){const uo=getBoundingClientRect(to,!0,io,to);lo.x=uo.x+to.clientLeft,lo.y=uo.y+to.clientTop}else oo&&(lo.x=getWindowScrollBarX(oo));return{x:so.left+ao.scrollLeft-lo.x,y:so.top+ao.scrollTop-lo.y,width:so.width,height:so.height}}function getTrueOffsetParent(eo,to){return!isHTMLElement$4(eo)||getComputedStyle$1(eo).position==="fixed"?null:to?to(eo):eo.offsetParent}function getOffsetParent(eo,to){const ro=getWindow$1(eo);if(!isHTMLElement$4(eo))return ro;let no=getTrueOffsetParent(eo,to);for(;no&&isTableElement(no)&&getComputedStyle$1(no).position==="static";)no=getTrueOffsetParent(no,to);return no&&(getNodeName(no)==="html"||getNodeName(no)==="body"&&getComputedStyle$1(no).position==="static"&&!isContainingBlock(no))?ro:no||getContainingBlock(eo)||ro}const getElementRects=async function(eo){let{reference:to,floating:ro,strategy:no}=eo;const oo=this.getOffsetParent||getOffsetParent,io=this.getDimensions;return{reference:getRectRelativeToOffsetParent(to,await oo(ro),no),floating:{x:0,y:0,...await io(ro)}}};function isRTL(eo){return getComputedStyle$1(eo).direction==="rtl"}const platform={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement:isElement$1,isRTL},computePosition=(eo,to,ro)=>{const no=new Map,oo={platform,...ro},io={...oo.platform,_c:no};return computePosition$1(eo,to,{...oo,platform:io})};function parseFloatingUIPlacement(eo){const to=eo.split("-");return{side:to[0],alignment:to[1]}}const getParentNode=eo=>eo.nodeName==="HTML"?eo:eo.parentNode||eo.host,getStyleComputedProperty=eo=>{var to;return eo.nodeType!==1?{}:((to=eo.ownerDocument)===null||to===void 0?void 0:to.defaultView).getComputedStyle(eo,null)},getScrollParent=eo=>{const to=eo&&getParentNode(eo);if(!to)return document.body;switch(to.nodeName){case"HTML":case"BODY":return to.ownerDocument.body;case"#document":return to.body}const{overflow:ro,overflowX:no,overflowY:oo}=getStyleComputedProperty(to);return/(auto|scroll|overlay)/.test(ro+oo+no)?to:getScrollParent(to)},hasScrollParent=eo=>{var to;const ro=getScrollParent(eo);return ro?ro!==((to=ro.ownerDocument)===null||to===void 0?void 0:to.body):!1};function getBoundary(eo,to){if(to==="window")return eo==null?void 0:eo.ownerDocument.documentElement;if(to==="clippingParents")return"clippingAncestors";if(to==="scrollParent"){let ro=getScrollParent(eo);return ro.nodeName==="BODY"&&(ro=eo==null?void 0:eo.ownerDocument.documentElement),ro}return to}function mergeArrowOffset(eo,to){return typeof eo=="number"||typeof eo=="object"&&eo!==null?addArrowOffset(eo,to):typeof eo=="function"?ro=>{const no=eo(ro);return addArrowOffset(no,to)}:{mainAxis:to}}const addArrowOffset=(eo,to)=>{if(typeof eo=="number")return{mainAxis:eo+to};var ro;return{...eo,mainAxis:((ro=eo.mainAxis)!==null&&ro!==void 0?ro:0)+to}};function toFloatingUIPadding(eo,to){if(typeof eo=="number")return eo;const{start:ro,end:no,...oo}=eo,io=oo,so=to?"end":"start",ao=to?"start":"end";return eo[so]&&(io.left=eo[so]),eo[ao]&&(io.right=eo[ao]),io}const getPositionMap$1=eo=>({above:"top",below:"bottom",before:eo?"right":"left",after:eo?"left":"right"}),getAlignmentMap$1=()=>({start:"start",end:"end",top:"start",bottom:"end",center:void 0}),shouldAlignToCenter=(eo,to)=>{const ro=eo==="above"||eo==="below",no=to==="top"||to==="bottom";return ro&&no||!ro&&!no},toFloatingUIPlacement=(eo,to,ro)=>{const no=shouldAlignToCenter(to,eo)?"center":eo,oo=to&&getPositionMap$1(ro)[to],io=no&&getAlignmentMap$1()[no];return oo&&io?`${oo}-${io}`:oo},getPositionMap=()=>({top:"above",bottom:"below",right:"after",left:"before"}),getAlignmentMap=eo=>eo==="above"||eo==="below"?{start:"start",end:"end"}:{start:"top",end:"bottom"},fromFloatingUIPlacement=eo=>{const{side:to,alignment:ro}=parseFloatingUIPlacement(eo),no=getPositionMap()[to],oo=ro&&getAlignmentMap(no)[ro];return{position:no,alignment:oo}},shorthandLookup={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 resolvePositioningShorthand(eo){return eo==null?{}:typeof eo=="string"?shorthandLookup[eo]:eo}function useCallbackRef(eo,to,ro){const no=reactExports.useRef(!0),[oo]=reactExports.useState(()=>({value:eo,callback:to,facade:{get current(){return oo.value},set current(io){const so=oo.value;if(so!==io){if(oo.value=io,ro&&no.current)return;oo.callback(io,so)}}}}));return useIsomorphicLayoutEffect$1(()=>{no.current=!1},[]),oo.callback=to,oo.facade}function debounce$1(eo){let to;return()=>(to||(to=new Promise(ro=>{Promise.resolve().then(()=>{to=void 0,ro(eo())})})),to)}function writeArrowUpdates(eo){const{arrow:to,middlewareData:ro}=eo;if(!ro.arrow||!to)return;const{x:no,y:oo}=ro.arrow;Object.assign(to.style,{left:`${no}px`,top:`${oo}px`})}function writeContainerUpdates(eo){var to,ro,no;const{container:oo,placement:io,middlewareData:so,strategy:ao,lowPPI:lo,coordinates:uo,useTransform:co=!0}=eo;if(!oo)return;oo.setAttribute(DATA_POSITIONING_PLACEMENT,io),oo.removeAttribute(DATA_POSITIONING_INTERSECTING),so.intersectionObserver.intersecting&&oo.setAttribute(DATA_POSITIONING_INTERSECTING,""),oo.removeAttribute(DATA_POSITIONING_ESCAPED),!((to=so.hide)===null||to===void 0)&&to.escaped&&oo.setAttribute(DATA_POSITIONING_ESCAPED,""),oo.removeAttribute(DATA_POSITIONING_HIDDEN),!((ro=so.hide)===null||ro===void 0)&&ro.referenceHidden&&oo.setAttribute(DATA_POSITIONING_HIDDEN,"");const fo=((no=oo.ownerDocument.defaultView)===null||no===void 0?void 0:no.devicePixelRatio)||1,po=Math.round(uo.x*fo)/fo,ho=Math.round(uo.y*fo)/fo;if(Object.assign(oo.style,{position:ao}),co){Object.assign(oo.style,{transform:lo?`translate(${po}px, ${ho}px)`:`translate3d(${po}px, ${ho}px, 0)`});return}Object.assign(oo.style,{left:`${po}px`,top:`${ho}px`})}const normalizeAutoSize=eo=>{switch(eo){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 coverTarget(){return{name:"coverTarget",fn:eo=>{const{placement:to,rects:ro,x:no,y:oo}=eo,io=parseFloatingUIPlacement(to).side,so={x:no,y:oo};switch(io){case"bottom":so.y-=ro.reference.height;break;case"top":so.y+=ro.reference.height;break;case"left":so.x+=ro.reference.width;break;case"right":so.x-=ro.reference.width;break}return so}}}function flip(eo){const{hasScrollableElement:to,flipBoundary:ro,container:no,fallbackPositions:oo=[],isRtl:io}=eo,so=oo.reduce((ao,lo)=>{const{position:uo,align:co}=resolvePositioningShorthand(lo),fo=toFloatingUIPlacement(co,uo,io);return fo&&ao.push(fo),ao},[]);return flip$1({...to&&{boundary:"clippingAncestors"},...ro&&{altBoundary:!0,boundary:getBoundary(no,ro)},fallbackStrategy:"bestFit",...so.length&&{fallbackPlacements:so}})}function intersecting(){return{name:"intersectionObserver",fn:async eo=>{const to=eo.rects.floating,ro=await detectOverflow(eo,{altBoundary:!0}),no=ro.top0,oo=ro.bottom0;return{data:{intersecting:no||oo}}}}}const resetMaxSize=eo=>({name:"resetMaxSize",fn({middlewareData:to,elements:ro}){var no;if(!((no=to.resetMaxSize)===null||no===void 0)&&no.maxSizeAlreadyReset)return{};const{applyMaxWidth:oo,applyMaxHeight:io}=eo;return oo&&(ro.floating.style.removeProperty("box-sizing"),ro.floating.style.removeProperty("max-width"),ro.floating.style.removeProperty("width")),io&&(ro.floating.style.removeProperty("box-sizing"),ro.floating.style.removeProperty("max-height"),ro.floating.style.removeProperty("height")),{data:{maxSizeAlreadyReset:!0},reset:{rects:!0}}}});function maxSize(eo,to){const{container:ro,overflowBoundary:no}=to;return size({...no&&{altBoundary:!0,boundary:getBoundary(ro,no)},apply({availableHeight:oo,availableWidth:io,elements:so,rects:ao}){const lo=(fo,po,ho)=>{if(fo&&(so.floating.style.setProperty("box-sizing","border-box"),so.floating.style.setProperty(`max-${po}`,`${ho}px`),ao.floating[po]>ho)){so.floating.style.setProperty(po,`${ho}px`);const mo=po==="width"?"x":"y";so.floating.style.getPropertyValue(`overflow-${mo}`)||so.floating.style.setProperty(`overflow-${mo}`,"auto")}},{applyMaxWidth:uo,applyMaxHeight:co}=eo;lo(uo,"width",io),lo(co,"height",oo)}})}function getFloatingUIOffset(eo){return!eo||typeof eo=="number"||typeof eo=="object"?eo:({rects:{floating:to,reference:ro},placement:no})=>{const{position:oo,alignment:io}=fromFloatingUIPlacement(no);return eo({positionedRect:to,targetRect:ro,position:oo,alignment:io})}}function offset(eo){const to=getFloatingUIOffset(eo);return offset$1(to)}function shift(eo){const{hasScrollableElement:to,disableTether:ro,overflowBoundary:no,container:oo,overflowBoundaryPadding:io,isRtl:so}=eo;return shift$1({...to&&{boundary:"clippingAncestors"},...ro&&{crossAxis:ro==="all",limiter:limitShift({crossAxis:ro!=="all",mainAxis:!1})},...io&&{padding:toFloatingUIPadding(io,so)},...no&&{altBoundary:!0,boundary:getBoundary(oo,no)}})}const matchTargetSizeCssVar="--fui-match-target-size";function matchTargetSize(){return{name:"matchTargetSize",fn:async eo=>{const{rects:{reference:to,floating:ro},elements:{floating:no},middlewareData:{matchTargetSize:{matchTargetSizeAttempt:oo=!1}={}}}=eo;if(to.width===ro.width||oo)return{};const{width:io}=to;return no.style.setProperty(matchTargetSizeCssVar,`${io}px`),no.style.width||(no.style.width=`var(${matchTargetSizeCssVar})`),{data:{matchTargetSizeAttempt:!0},reset:{rects:!0}}}}}function listScrollParents(eo){const to=[];let ro=eo;for(;ro;){const no=getScrollParent(ro);if(eo.ownerDocument.body===no){to.push(no);break}to.push(no),ro=no}return to}function createPositionManager(eo){const{container:to,target:ro,arrow:no,strategy:oo,middleware:io,placement:so,useTransform:ao=!0}=eo;let lo=!1;if(!ro||!to)return{updatePosition:()=>{},dispose:()=>{}};let uo=!0;const co=new Set,fo=to.ownerDocument.defaultView;Object.assign(to.style,{position:"fixed",left:0,top:0,margin:0});const po=()=>{lo||(uo&&(listScrollParents(to).forEach(vo=>co.add(vo)),isHTMLElement$6(ro)&&listScrollParents(ro).forEach(vo=>co.add(vo)),co.forEach(vo=>{vo.addEventListener("scroll",ho,{passive:!0})}),uo=!1),Object.assign(to.style,{position:oo}),computePosition(ro,to,{placement:so,middleware:io,strategy:oo}).then(({x:vo,y:bo,middlewareData:xo,placement:_o})=>{lo||(writeArrowUpdates({arrow:no,middlewareData:xo}),writeContainerUpdates({container:to,middlewareData:xo,placement:_o,coordinates:{x:vo,y:bo},lowPPI:((fo==null?void 0:fo.devicePixelRatio)||1)<=1,strategy:oo,useTransform:ao}))}).catch(vo=>{}))},ho=debounce$1(()=>po()),mo=()=>{lo=!0,fo&&(fo.removeEventListener("scroll",ho),fo.removeEventListener("resize",ho)),co.forEach(vo=>{vo.removeEventListener("scroll",ho)}),co.clear()};return fo&&(fo.addEventListener("scroll",ho,{passive:!0}),fo.addEventListener("resize",ho)),ho(),{updatePosition:ho,dispose:mo}}function usePositioning(eo){const to=reactExports.useRef(null),ro=reactExports.useRef(null),no=reactExports.useRef(null),oo=reactExports.useRef(null),io=reactExports.useRef(null),{enabled:so=!0}=eo,ao=usePositioningOptions(eo),lo=reactExports.useCallback(()=>{to.current&&to.current.dispose(),to.current=null;var ho;const mo=(ho=no.current)!==null&&ho!==void 0?ho:ro.current;so&&canUseDOM$3()&&mo&&oo.current&&(to.current=createPositionManager({container:oo.current,target:mo,arrow:io.current,...ao(oo.current,io.current)}))},[so,ao]),uo=useEventCallback$3(ho=>{no.current=ho,lo()});reactExports.useImperativeHandle(eo.positioningRef,()=>({updatePosition:()=>{var ho;return(ho=to.current)===null||ho===void 0?void 0:ho.updatePosition()},setTarget:ho=>{eo.target,uo(ho)}}),[eo.target,uo]),useIsomorphicLayoutEffect$1(()=>{var ho;uo((ho=eo.target)!==null&&ho!==void 0?ho:null)},[eo.target,uo]),useIsomorphicLayoutEffect$1(()=>{lo()},[lo]);const co=useCallbackRef(null,ho=>{ro.current!==ho&&(ro.current=ho,lo())}),fo=useCallbackRef(null,ho=>{oo.current!==ho&&(oo.current=ho,lo())}),po=useCallbackRef(null,ho=>{io.current!==ho&&(io.current=ho,lo())});return{targetRef:co,containerRef:fo,arrowRef:po}}function usePositioningOptions(eo){const{align:to,arrowPadding:ro,autoSize:no,coverTarget:oo,flipBoundary:io,offset:so,overflowBoundary:ao,pinned:lo,position:uo,unstable_disableTether:co,positionFixed:fo,strategy:po,overflowBoundaryPadding:ho,fallbackPositions:mo,useTransform:vo,matchTargetSize:bo}=eo,{dir:xo,targetDocument:_o}=useFluent(),So=xo==="rtl",Eo=po??fo?"fixed":"absolute",ko=normalizeAutoSize(no);return reactExports.useCallback((wo,Co)=>{const Ro=hasScrollParent(wo),Ao=[ko&&resetMaxSize(ko),bo&&matchTargetSize(),so&&offset(so),oo&&coverTarget(),!lo&&flip({container:wo,flipBoundary:io,hasScrollableElement:Ro,isRtl:So,fallbackPositions:mo}),shift({container:wo,hasScrollableElement:Ro,overflowBoundary:ao,disableTether:co,overflowBoundaryPadding:ho,isRtl:So}),ko&&maxSize(ko,{container:wo,overflowBoundary:ao}),intersecting(),Co&&arrow$1({element:Co,padding:ro}),hide({strategy:"referenceHidden"}),hide({strategy:"escaped"}),!1].filter(Boolean);return{placement:toFloatingUIPlacement(to,uo,So),middleware:Ao,strategy:Eo,useTransform:vo}},[to,ro,ko,oo,co,io,So,so,ao,lo,uo,Eo,ho,mo,vo,bo,_o])}const usePositioningMouseTarget=eo=>{const[to,ro]=reactExports.useState(eo);return[to,oo=>{if(oo==null){ro(void 0);return}let io;oo instanceof MouseEvent?io=oo:io=oo.nativeEvent,io instanceof MouseEvent;const so=createVirtualElementFromClick(io);ro(so)}]},PopoverContext=createContext(void 0),popoverContextDefaultValue={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};PopoverContext.Provider;const usePopoverContext_unstable=eo=>useContextSelector(PopoverContext,(to=popoverContextDefaultValue)=>eo(to)),usePopoverSurface_unstable=(eo,to)=>{const ro=usePopoverContext_unstable(_o=>_o.contentRef),no=usePopoverContext_unstable(_o=>_o.openOnHover),oo=usePopoverContext_unstable(_o=>_o.setOpen),io=usePopoverContext_unstable(_o=>_o.mountNode),so=usePopoverContext_unstable(_o=>_o.arrowRef),ao=usePopoverContext_unstable(_o=>_o.size),lo=usePopoverContext_unstable(_o=>_o.withArrow),uo=usePopoverContext_unstable(_o=>_o.appearance),co=usePopoverContext_unstable(_o=>_o.trapFocus),fo=usePopoverContext_unstable(_o=>_o.inertTrapFocus),po=usePopoverContext_unstable(_o=>_o.inline),{modalAttributes:ho}=useModalAttributes({trapFocus:co,legacyTrapFocus:!fo,alwaysFocusable:!co}),mo={inline:po,appearance:uo,withArrow:lo,size:ao,arrowRef:so,mountNode:io,components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(to,ro),role:co?"dialog":"group","aria-modal":co?!0:void 0,...ho,...eo}),{elementType:"div"})},{onMouseEnter:vo,onMouseLeave:bo,onKeyDown:xo}=mo.root;return mo.root.onMouseEnter=_o=>{no&&oo(_o,!0),vo==null||vo(_o)},mo.root.onMouseLeave=_o=>{no&&oo(_o,!1),bo==null||bo(_o)},mo.root.onKeyDown=_o=>{var So;_o.key==="Escape"&&(!((So=ro.current)===null||So===void 0)&&So.contains(_o.target))&&(_o.preventDefault(),oo(_o,!1)),xo==null||xo(_o)},mo};function toMountNodeProps(eo){return isHTMLElement$6(eo)?{element:eo}:typeof eo=="object"?eo===null?{element:null}:eo:{}}var getCurrentOwner=()=>reactExports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current,useIsStrictMode=()=>!1,effectSet=new WeakSet;function useStrictEffect(eo,to){const ro=getCurrentOwner();reactExports.useEffect(()=>{if(!effectSet.has(ro)){effectSet.add(ro),eo();return}return eo()},to)}var memoSet=new WeakSet;function useStrictMemo(eo,to){return reactExports.useMemo(()=>{const ro=getCurrentOwner();return memoSet.has(ro)?eo():(memoSet.add(ro),null)},to)}function useDisposable(eo,to){var ro;const no=useIsStrictMode()&&!1,oo=no?useStrictMemo:reactExports.useMemo,io=no?useStrictEffect:reactExports.useEffect,[so,ao]=(ro=oo(()=>eo(),to))!=null?ro:[null,()=>null];return io(()=>ao,to),so}const usePortalMountNodeStylesStyles=__styles({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;}"]}),useInsertionEffect=React$1.useInsertionEffect,usePortalMountNode=eo=>{const{targetDocument:to,dir:ro}=useFluent(),no=usePortalMountNode$1(),oo=useFocusVisible(),io=usePortalMountNodeStylesStyles(),so=useThemeClassName(),ao=mergeClasses(so,io.root,eo.className),lo=no??(to==null?void 0:to.body),uo=useDisposable(()=>{if(lo===void 0||eo.disabled)return[null,()=>null];const co=lo.ownerDocument.createElement("div");return lo.appendChild(co),[co,()=>co.remove()]},[lo]);return useInsertionEffect?useInsertionEffect(()=>{if(!uo)return;const co=ao.split(" ").filter(Boolean);return uo.classList.add(...co),uo.setAttribute("dir",ro),oo.current=uo,()=>{uo.classList.remove(...co),uo.removeAttribute("dir")}},[ao,ro,uo,oo]):reactExports.useMemo(()=>{uo&&(uo.className=ao,uo.setAttribute("dir",ro),oo.current=uo)},[ao,ro,uo,oo]),uo},usePortal_unstable=eo=>{const{element:to,className:ro}=toMountNodeProps(eo.mountNode),no=reactExports.useRef(null),oo=usePortalMountNode({disabled:!!to,className:ro}),io=to??oo,so={children:eo.children,mountNode:io,virtualParentRootRef:no};return reactExports.useEffect(()=>{if(!io)return;const ao=no.current,lo=io.contains(ao);if(ao&&!lo)return setVirtualParent$1(io,ao),()=>{setVirtualParent$1(io,void 0)}},[no,io]),so},renderPortal_unstable=eo=>reactExports.createElement("span",{hidden:!0,ref:eo.virtualParentRootRef},eo.mountNode&&reactDomExports.createPortal(eo.children,eo.mountNode)),Portal$1=eo=>{const to=usePortal_unstable(eo);return renderPortal_unstable(to)};Portal$1.displayName="Portal";const renderPopoverSurface_unstable=eo=>{const to=jsxs(eo.root,{children:[eo.withArrow&&jsx$1("div",{ref:eo.arrowRef,className:eo.arrowClassName}),eo.root.children]});return eo.inline?to:jsx$1(Portal$1,{mountNode:eo.mountNode,children:to})},popoverSurfaceClassNames={root:"fui-PopoverSurface"},arrowHeights={small:6,medium:8,large:8},useStyles$y=__styles({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;}}"]}),usePopoverSurfaceStyles_unstable=eo=>{const to=useStyles$y();return eo.root.className=mergeClasses(popoverSurfaceClassNames.root,to.root,eo.inline&&to.inline,eo.size==="small"&&to.smallPadding,eo.size==="medium"&&to.mediumPadding,eo.size==="large"&&to.largePadding,eo.appearance==="inverted"&&to.inverted,eo.appearance==="brand"&&to.brand,eo.root.className),eo.arrowClassName=mergeClasses(to.arrow,eo.size==="small"?to.smallArrow:to.mediumLargeArrow),eo},PopoverSurface=reactExports.forwardRef((eo,to)=>{const ro=usePopoverSurface_unstable(eo,to);return usePopoverSurfaceStyles_unstable(ro),useCustomStyleHook("usePopoverSurfaceStyles_unstable")(ro),renderPopoverSurface_unstable(ro)});PopoverSurface.displayName="PopoverSurface";const popoverSurfaceBorderRadius=4,usePopover_unstable=eo=>{const[to,ro]=usePositioningMouseTarget(),no={size:"medium",contextTarget:to,setContextTarget:ro,...eo},oo=reactExports.Children.toArray(eo.children);let io,so;oo.length===2?(io=oo[0],so=oo[1]):oo.length===1&&(so=oo[0]);const[ao,lo]=useOpenState(no),uo=reactExports.useRef(0),co=useEventCallback$3((So,Eo)=>{if(clearTimeout(uo.current),!(So instanceof Event)&&So.persist&&So.persist(),So.type==="mouseleave"){var ko;uo.current=setTimeout(()=>{lo(So,Eo)},(ko=eo.mouseLeaveDelay)!==null&&ko!==void 0?ko:500)}else lo(So,Eo)});reactExports.useEffect(()=>()=>{clearTimeout(uo.current)},[]);const fo=reactExports.useCallback(So=>{co(So,!ao)},[co,ao]),po=usePopoverRefs(no),{targetDocument:ho}=useFluent();var mo;useOnClickOutside({contains:elementContains$1,element:ho,callback:So=>co(So,!1),refs:[po.triggerRef,po.contentRef],disabled:!ao,disabledFocusOnIframe:!(!((mo=eo.closeOnIframeFocus)!==null&&mo!==void 0)||mo)});const vo=no.openOnContext||no.closeOnScroll;useOnScrollOutside({contains:elementContains$1,element:ho,callback:So=>co(So,!1),refs:[po.triggerRef,po.contentRef],disabled:!ao||!vo});const{findFirstFocusable:bo}=useFocusFinders();reactExports.useEffect(()=>{if(!eo.unstable_disableAutoFocus&&ao&&po.contentRef.current){var So;const Eo=(So=po.contentRef.current.getAttribute("tabIndex"))!==null&&So!==void 0?So:void 0,ko=isNaN(Eo)?bo(po.contentRef.current):po.contentRef.current;ko==null||ko.focus()}},[bo,ao,po.contentRef,eo.unstable_disableAutoFocus]);var xo,_o;return{...no,...po,inertTrapFocus:(xo=eo.inertTrapFocus)!==null&&xo!==void 0?xo:eo.legacyTrapFocus===void 0?!1:!eo.legacyTrapFocus,popoverTrigger:io,popoverSurface:so,open:ao,setOpen:co,toggleOpen:fo,setContextTarget:ro,contextTarget:to,inline:(_o=eo.inline)!==null&&_o!==void 0?_o:!1}};function useOpenState(eo){const to=useEventCallback$3((so,ao)=>{var lo;return(lo=eo.onOpenChange)===null||lo===void 0?void 0:lo.call(eo,so,ao)}),[ro,no]=useControllableState({state:eo.open,defaultState:eo.defaultOpen,initialState:!1});eo.open=ro!==void 0?ro:eo.open;const oo=eo.setContextTarget,io=reactExports.useCallback((so,ao)=>{ao&&so.type==="contextmenu"&&oo(so),ao||oo(void 0),no(ao),to==null||to(so,{open:ao})},[no,to,oo]);return[ro,io]}function usePopoverRefs(eo){const to={position:"above",align:"center",arrowPadding:2*popoverSurfaceBorderRadius,target:eo.openOnContext?eo.contextTarget:void 0,...resolvePositioningShorthand(eo.positioning)};to.coverTarget&&(eo.withArrow=!1),eo.withArrow&&(to.offset=mergeArrowOffset(to.offset,arrowHeights[eo.size]));const{targetRef:ro,containerRef:no,arrowRef:oo}=usePositioning(to);return{triggerRef:ro,contentRef:no,arrowRef:oo}}const renderPopover_unstable=eo=>{const{appearance:to,arrowRef:ro,contentRef:no,inline:oo,mountNode:io,open:so,openOnContext:ao,openOnHover:lo,setOpen:uo,size:co,toggleOpen:fo,trapFocus:po,triggerRef:ho,withArrow:mo,inertTrapFocus:vo}=eo;return reactExports.createElement(PopoverContext.Provider,{value:{appearance:to,arrowRef:ro,contentRef:no,inline:oo,mountNode:io,open:so,openOnContext:ao,openOnHover:lo,setOpen:uo,toggleOpen:fo,triggerRef:ho,size:co,trapFocus:po,inertTrapFocus:vo,withArrow:mo}},eo.popoverTrigger,eo.open&&eo.popoverSurface)},Popover=eo=>{const to=usePopover_unstable(eo);return renderPopover_unstable(to)};Popover.displayName="Popover";const usePopoverTrigger_unstable=eo=>{const{children:to,disableButtonEnhancement:ro=!1}=eo,no=getTriggerChild(to),oo=usePopoverContext_unstable(So=>So.open),io=usePopoverContext_unstable(So=>So.setOpen),so=usePopoverContext_unstable(So=>So.toggleOpen),ao=usePopoverContext_unstable(So=>So.triggerRef),lo=usePopoverContext_unstable(So=>So.openOnHover),uo=usePopoverContext_unstable(So=>So.openOnContext),{triggerAttributes:co}=useModalAttributes(),fo=So=>{uo&&(So.preventDefault(),io(So,!0))},po=So=>{uo||so(So)},ho=So=>{So.key===Escape&&oo&&!So.isDefaultPrevented()&&(io(So,!1),So.preventDefault())},mo=So=>{lo&&io(So,!0)},vo=So=>{lo&&io(So,!1)},bo={...co,"aria-expanded":`${oo}`,...no==null?void 0:no.props,onMouseEnter:useEventCallback$3(mergeCallbacks(no==null?void 0:no.props.onMouseEnter,mo)),onMouseLeave:useEventCallback$3(mergeCallbacks(no==null?void 0:no.props.onMouseLeave,vo)),onContextMenu:useEventCallback$3(mergeCallbacks(no==null?void 0:no.props.onContextMenu,fo)),ref:useMergedRefs$1(ao,no==null?void 0:no.ref)},xo={...bo,onClick:useEventCallback$3(mergeCallbacks(no==null?void 0:no.props.onClick,po)),onKeyDown:useEventCallback$3(mergeCallbacks(no==null?void 0:no.props.onKeyDown,ho))},_o=useARIAButtonProps((no==null?void 0:no.type)==="button"||(no==null?void 0:no.type)==="a"?no.type:"div",xo);return{children:applyTriggerPropsToChildren(eo.children,useARIAButtonProps((no==null?void 0:no.type)==="button"||(no==null?void 0:no.type)==="a"?no.type:"div",uo?bo:ro?xo:_o))}},renderPopoverTrigger_unstable=eo=>eo.children,PopoverTrigger=eo=>{const to=usePopoverTrigger_unstable(eo);return renderPopoverTrigger_unstable(to)};PopoverTrigger.displayName="PopoverTrigger";PopoverTrigger.isFluentTriggerComponent=!0;const arrowHeight=6,tooltipBorderRadius=4,useTooltip_unstable=eo=>{var to,ro,no,oo;const io=useTooltipVisibility(),so=useIsSSR(),{targetDocument:ao}=useFluent(),[lo,uo]=useTimeout(),{appearance:co="normal",children:fo,content:po,withArrow:ho=!1,positioning:mo="above",onVisibleChange:vo,relationship:bo,showDelay:xo=250,hideDelay:_o=250,mountNode:So}=eo,[Eo,ko]=useControllableState({state:eo.visible,initialState:!1}),wo=reactExports.useCallback((Go,qo)=>{uo(),ko(Xo=>(qo.visible!==Xo&&(vo==null||vo(Go,qo)),qo.visible))},[uo,ko,vo]),Co={withArrow:ho,positioning:mo,showDelay:xo,hideDelay:_o,relationship:bo,visible:Eo,shouldRenderTooltip:Eo,appearance:co,mountNode:So,components:{content:"div"},content:always(po,{defaultProps:{role:"tooltip"},elementType:"div"})};Co.content.id=useId$1("tooltip-",Co.content.id);const Ro={enabled:Co.visible,arrowPadding:2*tooltipBorderRadius,position:"above",align:"center",offset:4,...resolvePositioningShorthand(Co.positioning)};Co.withArrow&&(Ro.offset=mergeArrowOffset(Ro.offset,arrowHeight));const{targetRef:Ao,containerRef:Io,arrowRef:$o}=usePositioning(Ro);Co.content.ref=useMergedRefs$1(Co.content.ref,Io),Co.arrowRef=$o,useIsomorphicLayoutEffect$1(()=>{if(Eo){var Go;const qo={hide:Zo=>wo(void 0,{visible:!1,documentKeyboardEvent:Zo})};(Go=io.visibleTooltip)===null||Go===void 0||Go.hide(),io.visibleTooltip=qo;const Xo=Zo=>{Zo.key===Escape&&!Zo.defaultPrevented&&(qo.hide(Zo),Zo.preventDefault())};return ao==null||ao.addEventListener("keydown",Xo,{capture:!0}),()=>{io.visibleTooltip===qo&&(io.visibleTooltip=void 0),ao==null||ao.removeEventListener("keydown",Xo,{capture:!0})}}},[io,ao,Eo,wo]);const Bo=reactExports.useRef(!1),Mo=reactExports.useCallback(Go=>{if(Go.type==="focus"&&Bo.current){Bo.current=!1;return}const qo=io.visibleTooltip?0:Co.showDelay;lo(()=>{wo(Go,{visible:!0})},qo),Go.persist()},[lo,wo,Co.showDelay,io]),[Ho]=reactExports.useState(()=>{const Go=Xo=>{var Zo;!((Zo=Xo.detail)===null||Zo===void 0)&&Zo.isFocusedProgrammatically&&(Bo.current=!0)};let qo=null;return Xo=>{qo==null||qo.removeEventListener(KEYBORG_FOCUSIN,Go),Xo==null||Xo.addEventListener(KEYBORG_FOCUSIN,Go),qo=Xo}}),jo=reactExports.useCallback(Go=>{let qo=Co.hideDelay;Go.type==="blur"&&(qo=0,Bo.current=(ao==null?void 0:ao.activeElement)===Go.target),lo(()=>{wo(Go,{visible:!1})},qo),Go.persist()},[lo,wo,Co.hideDelay,ao]);Co.content.onPointerEnter=mergeCallbacks(Co.content.onPointerEnter,uo),Co.content.onPointerLeave=mergeCallbacks(Co.content.onPointerLeave,jo),Co.content.onFocus=mergeCallbacks(Co.content.onFocus,uo),Co.content.onBlur=mergeCallbacks(Co.content.onBlur,jo);const Oo=getTriggerChild(fo),Fo={};return bo==="label"?typeof Co.content.children=="string"?Fo["aria-label"]=Co.content.children:(Fo["aria-labelledby"]=Co.content.id,Co.shouldRenderTooltip=!0):bo==="description"&&(Fo["aria-describedby"]=Co.content.id,Co.shouldRenderTooltip=!0),so&&(Co.shouldRenderTooltip=!1),Co.children=applyTriggerPropsToChildren(fo,{...Fo,...Oo==null?void 0:Oo.props,ref:useMergedRefs$1(Oo==null?void 0:Oo.ref,Ho,Ro.target===void 0?Ao:void 0),onPointerEnter:useEventCallback$3(mergeCallbacks(Oo==null||(to=Oo.props)===null||to===void 0?void 0:to.onPointerEnter,Mo)),onPointerLeave:useEventCallback$3(mergeCallbacks(Oo==null||(ro=Oo.props)===null||ro===void 0?void 0:ro.onPointerLeave,jo)),onFocus:useEventCallback$3(mergeCallbacks(Oo==null||(no=Oo.props)===null||no===void 0?void 0:no.onFocus,Mo)),onBlur:useEventCallback$3(mergeCallbacks(Oo==null||(oo=Oo.props)===null||oo===void 0?void 0:oo.onBlur,jo))}),Co},renderTooltip_unstable=eo=>jsxs(reactExports.Fragment,{children:[eo.children,eo.shouldRenderTooltip&&jsx$1(Portal$1,{mountNode:eo.mountNode,children:jsxs(eo.content,{children:[eo.withArrow&&jsx$1("div",{ref:eo.arrowRef,className:eo.arrowClassName}),eo.content.children]})})]}),tooltipClassNames={content:"fui-Tooltip__content"},useStyles$x=__styles({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;}']}),useTooltipStyles_unstable=eo=>{const to=useStyles$x();return eo.content.className=mergeClasses(tooltipClassNames.content,to.root,eo.appearance==="inverted"&&to.inverted,eo.visible&&to.visible,eo.content.className),eo.arrowClassName=to.arrow,eo},Tooltip=eo=>{const to=useTooltip_unstable(eo);return useTooltipStyles_unstable(to),useCustomStyleHook("useTooltipStyles_unstable")(to),renderTooltip_unstable(to)};Tooltip.displayName="Tooltip";Tooltip.isFluentTriggerComponent=!0;const renderButton_unstable=eo=>{const{iconOnly:to,iconPosition:ro}=eo;return jsxs(eo.root,{children:[ro!=="after"&&eo.icon&&jsx$1(eo.icon,{}),!to&&eo.root.children,ro==="after"&&eo.icon&&jsx$1(eo.icon,{})]})},buttonContext=reactExports.createContext(void 0),buttonContextDefaultValue={};buttonContext.Provider;const useButtonContext=()=>{var eo;return(eo=reactExports.useContext(buttonContext))!==null&&eo!==void 0?eo:buttonContextDefaultValue},useButton_unstable=(eo,to)=>{const{size:ro}=useButtonContext(),{appearance:no="secondary",as:oo="button",disabled:io=!1,disabledFocusable:so=!1,icon:ao,iconPosition:lo="before",shape:uo="rounded",size:co=ro??"medium"}=eo,fo=optional(ao,{elementType:"span"});return{appearance:no,disabled:io,disabledFocusable:so,iconPosition:lo,shape:uo,size:co,iconOnly:!!(fo!=null&&fo.children&&!eo.children),components:{root:"button",icon:"span"},root:always(getIntrinsicElementProps(oo,useARIAButtonProps(eo.as,eo)),{elementType:"button",defaultProps:{ref:to,type:"button"}}),icon:fo}},buttonClassNames={root:"fui-Button",icon:"fui-Button__icon"},useRootBaseClassName$1=__resetStyles("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;}}"]}),useIconBaseClassName=__resetStyles("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);}"]),useRootStyles$5=__styles({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)"}]]}),useRootDisabledStyles=__styles({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)"}]]}),useRootFocusStyles=__styles({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;}}"]}),useRootIconOnlyStyles=__styles({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;}"]}),useIconStyles$3=__styles({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);}"]}),useButtonStyles_unstable=eo=>{const to=useRootBaseClassName$1(),ro=useIconBaseClassName(),no=useRootStyles$5(),oo=useRootDisabledStyles(),io=useRootFocusStyles(),so=useRootIconOnlyStyles(),ao=useIconStyles$3(),{appearance:lo,disabled:uo,disabledFocusable:co,icon:fo,iconOnly:po,iconPosition:ho,shape:mo,size:vo}=eo;return eo.root.className=mergeClasses(buttonClassNames.root,to,lo&&no[lo],no[vo],fo&&vo==="small"&&no.smallWithIcon,fo&&vo==="large"&&no.largeWithIcon,no[mo],(uo||co)&&oo.base,(uo||co)&&oo.highContrast,lo&&(uo||co)&&oo[lo],lo==="primary"&&io.primary,io[vo],io[mo],po&&so[vo],eo.root.className),eo.icon&&(eo.icon.className=mergeClasses(buttonClassNames.icon,ro,!!eo.root.children&&ao[ho],ao[vo],eo.icon.className)),eo},Button$2=reactExports.forwardRef((eo,to)=>{const ro=useButton_unstable(eo,to);return useButtonStyles_unstable(ro),useCustomStyleHook("useButtonStyles_unstable")(ro),renderButton_unstable(ro)});Button$2.displayName="Button";const FieldContext=reactExports.createContext(void 0);FieldContext.Provider;const useFieldContext_unstable=()=>reactExports.useContext(FieldContext);function useFieldControlProps_unstable(eo,to){return getFieldControlProps(useFieldContext_unstable(),eo,to)}function getFieldControlProps(eo,to,ro){if(!eo)return to;to={...to};const{generatedControlId:no,hintId:oo,labelFor:io,labelId:so,required:ao,validationMessageId:lo,validationState:uo}=eo;if(no){var co,fo;(fo=(co=to).id)!==null&&fo!==void 0||(co.id=no)}if(so&&(!(ro!=null&&ro.supportsLabelFor)||io!==to.id)){var po,ho,mo;(mo=(po=to)[ho="aria-labelledby"])!==null&&mo!==void 0||(po[ho]=so)}if((lo||oo)&&(to["aria-describedby"]=[lo,oo,to==null?void 0:to["aria-describedby"]].filter(Boolean).join(" ")),uo==="error"){var vo,bo,xo;(xo=(vo=to)[bo="aria-invalid"])!==null&&xo!==void 0||(vo[bo]=!0)}if(ao)if(ro!=null&&ro.supportsRequired){var _o,So;(So=(_o=to).required)!==null&&So!==void 0||(_o.required=!0)}else{var Eo,ko,wo;(wo=(Eo=to)[ko="aria-required"])!==null&&wo!==void 0||(Eo[ko]=!0)}if(ro!=null&&ro.supportsSize){var Co,Ro;(Ro=(Co=to).size)!==null&&Ro!==void 0||(Co.size=eo.size)}return to}const useLabel_unstable=(eo,to)=>{const{disabled:ro=!1,required:no=!1,weight:oo="regular",size:io="medium"}=eo;return{disabled:ro,required:optional(no===!0?"*":no||void 0,{defaultProps:{"aria-hidden":"true"},elementType:"span"}),weight:oo,size:io,components:{root:"label",required:"span"},root:always(getIntrinsicElementProps("label",{ref:to,...eo}),{elementType:"label"})}},renderLabel_unstable=eo=>jsxs(eo.root,{children:[eo.root.children,eo.required&&jsx$1(eo.required,{})]}),labelClassNames={root:"fui-Label",required:"fui-Label__required"},useStyles$w=__styles({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);}"]}),useLabelStyles_unstable=eo=>{const to=useStyles$w();return eo.root.className=mergeClasses(labelClassNames.root,to.root,eo.disabled&&to.disabled,to[eo.size],eo.weight==="semibold"&&to.semibold,eo.root.className),eo.required&&(eo.required.className=mergeClasses(labelClassNames.required,to.required,eo.disabled&&to.requiredDisabled,eo.required.className)),eo},Label=reactExports.forwardRef((eo,to)=>{const ro=useLabel_unstable(eo,to);return useLabelStyles_unstable(ro),useCustomStyleHook("useLabelStyles_unstable")(ro),renderLabel_unstable(ro)});Label.displayName="Label";const ComboboxContext=createContext({activeOption:void 0,appearance:"outline",focusVisible:!1,open:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){},setOpen(){},size:"medium"});ComboboxContext.Provider;const ListboxContext=createContext({activeOption:void 0,focusVisible:!1,multiselect:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){}});ListboxContext.Provider;function useComboboxContextValues(eo){const{activeOption:to,appearance:ro,focusVisible:no,open:oo,registerOption:io,selectedOptions:so,selectOption:ao,setActiveOption:lo,setOpen:uo,size:co}=eo;return{combobox:{activeOption:to,appearance:ro,focusVisible:no,open:oo,registerOption:io,selectedOptions:so,selectOption:ao,setActiveOption:lo,setOpen:uo,size:co}}}function useListboxContextValues(eo){const to=useHasParentContext(ComboboxContext),{activeOption:ro,focusVisible:no,multiselect:oo,registerOption:io,selectedOptions:so,selectOption:ao,setActiveOption:lo}=eo,uo=useContextSelector(ComboboxContext,po=>po.registerOption);return{listbox:{activeOption:ro,focusVisible:no,multiselect:oo,registerOption:to?uo:io,selectedOptions:so,selectOption:ao,setActiveOption:lo}}}function getDropdownActionFromKey(eo,to={}){const{open:ro=!0,multiselect:no=!1}=to,oo=eo.key,{altKey:io,ctrlKey:so,key:ao,metaKey:lo}=eo;return ao.length===1&&oo!==Space&&!io&&!so&&!lo?"Type":ro?oo===ArrowUp&&io||oo===Enter||!no&&oo===Space?"CloseSelect":no&&oo===Space?"Select":oo===Escape?"Close":oo===ArrowDown?"Next":oo===ArrowUp?"Previous":oo===Home?"First":oo===End?"Last":oo===PageUp?"PageUp":oo===PageDown?"PageDown":oo===Tab$2?"Tab":"None":oo===ArrowDown||oo===ArrowUp||oo===Enter||oo===Space?"Open":"None"}function getIndexFromAction(eo,to,ro){switch(eo){case"Next":return Math.min(ro,to+1);case"Previous":return Math.max(0,to-1);case"First":return 0;case"Last":return ro;case"PageDown":return Math.min(ro,to+10);case"PageUp":return Math.max(0,to-10);default:return to}}const useOptionCollection=()=>{const eo=reactExports.useRef([]),to=reactExports.useMemo(()=>({getCount:()=>eo.current.length,getOptionAtIndex:uo=>{var co;return(co=eo.current[uo])===null||co===void 0?void 0:co.option},getIndexOfId:uo=>eo.current.findIndex(co=>co.option.id===uo),getOptionById:uo=>{const co=eo.current.find(fo=>fo.option.id===uo);return co==null?void 0:co.option},getOptionsMatchingText:uo=>eo.current.filter(co=>uo(co.option.text)).map(co=>co.option),getOptionsMatchingValue:uo=>eo.current.filter(co=>uo(co.option.value)).map(co=>co.option)}),[]),ro=reactExports.useCallback((no,oo)=>{var io;const so=eo.current.findIndex(ao=>!ao.element||!oo?!1:ao.option.id===no.id?!0:ao.element.compareDocumentPosition(oo)&Node.DOCUMENT_POSITION_PRECEDING);if(((io=eo.current[so])===null||io===void 0?void 0:io.option.id)!==no.id){const ao={element:oo,option:no};so===-1?eo.current=[...eo.current,ao]:eo.current.splice(so,0,ao)}return()=>{eo.current=eo.current.filter(ao=>ao.option.id!==no.id)}},[]);return{...to,options:eo.current.map(no=>no.option),registerOption:ro}};function useScrollOptionsIntoView(eo){const{activeOption:to}=eo,ro=reactExports.useRef(null);return reactExports.useEffect(()=>{if(ro.current&&to&&canUseDOM$3()){const no=ro.current.querySelector(`#${to.id}`);if(!no)return;const{offsetHeight:oo,offsetTop:io}=no,{offsetHeight:so,scrollTop:ao}=ro.current,lo=ioao+so,co=2;lo?ro.current.scrollTo(0,io-co):uo&&ro.current.scrollTo(0,io-so+oo+co)}},[to]),ro}const useSelection=eo=>{const{defaultSelectedOptions:to,multiselect:ro,onOptionSelect:no}=eo,[oo,io]=useControllableState({state:eo.selectedOptions,defaultState:to,initialState:[]}),so=reactExports.useCallback((lo,uo)=>{if(uo.disabled)return;let co=[uo.value];if(ro){const fo=oo.findIndex(po=>po===uo.value);fo>-1?co=[...oo.slice(0,fo),...oo.slice(fo+1)]:co=[...oo,uo.value]}io(co),no==null||no(lo,{optionValue:uo.value,optionText:uo.text,selectedOptions:co})},[no,ro,oo,io]);return{clearSelection:lo=>{io([]),no==null||no(lo,{optionValue:void 0,optionText:void 0,selectedOptions:[]})},selectOption:so,selectedOptions:oo}},useListbox_unstable=(eo,to)=>{const{multiselect:ro}=eo,no=useOptionCollection(),{getCount:oo,getOptionAtIndex:io,getIndexOfId:so}=no,{clearSelection:ao,selectedOptions:lo,selectOption:uo}=useSelection(eo),[co,fo]=reactExports.useState(),[po,ho]=reactExports.useState(!1),mo=Ao=>{const Io=getDropdownActionFromKey(Ao,{open:!0}),$o=oo()-1,Bo=co?so(co.id):-1;let Mo=Bo;switch(Io){case"Select":case"CloseSelect":co&&uo(Ao,co);break;default:Mo=getIndexFromAction(Io,Bo,$o)}Mo!==Bo&&(Ao.preventDefault(),fo(io(Mo)),ho(!0))},vo=Ao=>{ho(!1)},bo=useHasParentContext(ComboboxContext),xo=useContextSelector(ComboboxContext,Ao=>Ao.activeOption),_o=useContextSelector(ComboboxContext,Ao=>Ao.focusVisible),So=useContextSelector(ComboboxContext,Ao=>Ao.selectedOptions),Eo=useContextSelector(ComboboxContext,Ao=>Ao.selectOption),ko=useContextSelector(ComboboxContext,Ao=>Ao.setActiveOption),wo=bo?{activeOption:xo,focusVisible:_o,selectedOptions:So,selectOption:Eo,setActiveOption:ko}:{activeOption:co,focusVisible:po,selectedOptions:lo,selectOption:uo,setActiveOption:fo},Co={components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:to,role:ro?"menu":"listbox","aria-activedescendant":bo||co==null?void 0:co.id,"aria-multiselectable":ro,tabIndex:0,...eo}),{elementType:"div"}),multiselect:ro,clearSelection:ao,...no,...wo},Ro=useScrollOptionsIntoView(Co);return Co.root.ref=useMergedRefs$1(Co.root.ref,Ro),Co.root.onKeyDown=useEventCallback$3(mergeCallbacks(Co.root.onKeyDown,mo)),Co.root.onMouseOver=useEventCallback$3(mergeCallbacks(Co.root.onMouseOver,vo)),Co},renderListbox_unstable=(eo,to)=>jsx$1(ListboxContext.Provider,{value:to.listbox,children:jsx$1(eo.root,{})}),listboxClassNames={root:"fui-Listbox"},useStyles$v=__styles({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);}"]}),useListboxStyles_unstable=eo=>{const to=useStyles$v();return eo.root.className=mergeClasses(listboxClassNames.root,to.root,eo.root.className),eo},Listbox$1=reactExports.forwardRef((eo,to)=>{const ro=useListbox_unstable(eo,to),no=useListboxContextValues(ro);return useListboxStyles_unstable(ro),useCustomStyleHook("useListboxStyles_unstable")(ro),renderListbox_unstable(ro,no)});Listbox$1.displayName="Listbox";function getTextString(eo,to){if(eo!==void 0)return eo;let ro="",no=!1;return reactExports.Children.forEach(to,oo=>{typeof oo=="string"?ro+=oo:no=!0}),no&&console.warn("Provide a `text` prop to Option components when they contain non-string children."),ro}const useOption_unstable=(eo,to)=>{const{children:ro,disabled:no,text:oo,value:io}=eo,so=reactExports.useRef(null),ao=getTextString(oo,ro),lo=io??ao,uo=useId$1("fluent-option",eo.id),co=reactExports.useMemo(()=>({id:uo,disabled:no,text:ao,value:lo}),[uo,no,ao,lo]),fo=useContextSelector(ListboxContext,wo=>wo.focusVisible),po=useContextSelector(ListboxContext,wo=>wo.multiselect),ho=useContextSelector(ListboxContext,wo=>wo.registerOption),mo=useContextSelector(ListboxContext,wo=>{const Co=wo.selectedOptions;return!!lo&&!!Co.find(Ro=>Ro===lo)}),vo=useContextSelector(ListboxContext,wo=>wo.selectOption),bo=useContextSelector(ListboxContext,wo=>wo.setActiveOption),xo=useContextSelector(ComboboxContext,wo=>wo.setOpen),_o=useContextSelector(ListboxContext,wo=>{var Co,Ro;return((Co=wo.activeOption)===null||Co===void 0?void 0:Co.id)!==void 0&&((Ro=wo.activeOption)===null||Ro===void 0?void 0:Ro.id)===uo});let So=reactExports.createElement(CheckmarkFilled,null);po&&(So=mo?reactExports.createElement(Checkmark12Filled,null):"");const Eo=wo=>{var Co;if(no){wo.preventDefault();return}bo(co),po||xo==null||xo(wo,!1),vo(wo,co),(Co=eo.onClick)===null||Co===void 0||Co.call(eo,wo)};reactExports.useEffect(()=>{if(uo&&so.current)return ho(co,so.current)},[uo,co,ho]);const ko=po?{role:"menuitemcheckbox","aria-checked":mo}:{role:"option","aria-selected":mo};return{components:{root:"div",checkIcon:"span"},root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(to,so),"aria-disabled":no?"true":void 0,id:uo,...ko,...eo,onClick:Eo}),{elementType:"div"}),checkIcon:optional(eo.checkIcon,{renderByDefault:!0,defaultProps:{"aria-hidden":"true",children:So},elementType:"span"}),active:_o,disabled:no,focusVisible:fo,multiselect:po,selected:mo}},renderOption_unstable=eo=>jsxs(eo.root,{children:[eo.checkIcon&&jsx$1(eo.checkIcon,{}),eo.root.children]}),optionClassNames={root:"fui-Option",checkIcon:"fui-Option__checkIcon"},useStyles$u=__styles({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)"}]]}),useOptionStyles_unstable=eo=>{const{active:to,disabled:ro,focusVisible:no,multiselect:oo,selected:io}=eo,so=useStyles$u();return eo.root.className=mergeClasses(optionClassNames.root,so.root,to&&no&&so.active,ro&&so.disabled,io&&so.selected,eo.root.className),eo.checkIcon&&(eo.checkIcon.className=mergeClasses(optionClassNames.checkIcon,so.checkIcon,oo&&so.multiselectCheck,io&&so.selectedCheck,io&&oo&&so.selectedMultiselectCheck,ro&&so.checkDisabled,eo.checkIcon.className)),eo},Option$2=reactExports.forwardRef((eo,to)=>{const ro=useOption_unstable(eo,to);return useOptionStyles_unstable(ro),useCustomStyleHook("useOptionStyles_unstable")(ro),renderOption_unstable(ro)});Option$2.displayName="Option";const useComboboxBaseState=eo=>{const{appearance:to="outline",children:ro,editable:no=!1,inlinePopup:oo=!1,mountNode:io=void 0,multiselect:so,onOpenChange:ao,size:lo="medium"}=eo,uo=useOptionCollection(),{getOptionAtIndex:co,getOptionsMatchingValue:fo}=uo,[po,ho]=reactExports.useState(),[mo,vo]=reactExports.useState(!1),[bo,xo]=reactExports.useState(!1),_o=reactExports.useRef(!1),So=useSelection(eo),{selectedOptions:Eo}=So,ko=useFirstMount(),[wo,Co]=useControllableState({state:eo.value,initialState:void 0}),Ro=reactExports.useMemo(()=>{if(wo!==void 0)return wo;if(ko&&eo.defaultValue!==void 0)return eo.defaultValue;const Bo=fo(Mo=>Eo.includes(Mo)).map(Mo=>Mo.text);return so?no?"":Bo.join(", "):Bo[0]},[wo,no,fo,so,eo.defaultValue,Eo]),[Ao,Io]=useControllableState({state:eo.open,defaultState:eo.defaultOpen,initialState:!1}),$o=reactExports.useCallback((Bo,Mo)=>{ao==null||ao(Bo,{open:Mo}),Io(Mo)},[ao,Io]);return reactExports.useEffect(()=>{if(Ao&&!po)if(!so&&Eo.length>0){const Bo=fo(Mo=>Mo===Eo[0]).pop();Bo&&ho(Bo)}else ho(co(0));else Ao||ho(void 0)},[Ao,ro]),{...uo,...So,activeOption:po,appearance:to,focusVisible:mo,hasFocus:bo,ignoreNextBlur:_o,inlinePopup:oo,mountNode:io,open:Ao,setActiveOption:ho,setFocusVisible:vo,setHasFocus:xo,setOpen:$o,setValue:Co,size:lo,value:Ro,multiselect:so}};function useComboboxPositioning(eo){const{positioning:to}=eo,no={position:"below",align:"start",offset:{crossAxis:0,mainAxis:2},fallbackPositions:["above","after","after-top","before","before-top"],matchTargetSize:"width",...resolvePositioningShorthand(to)},{targetRef:oo,containerRef:io}=usePositioning(no);return[io,oo]}function useListboxSlot(eo,to,ro){const{state:{multiselect:no},triggerRef:oo,defaultProps:io}=ro,so=useId$1("fluent-listbox",isResolvedShorthand(eo)?eo.id:void 0),ao=optional(eo,{renderByDefault:!0,elementType:Listbox$1,defaultProps:{id:so,multiselect:no,tabIndex:void 0,...io}}),lo=useEventCallback$3(mergeCallbacks(fo=>{fo.preventDefault()},ao==null?void 0:ao.onMouseDown)),uo=useEventCallback$3(mergeCallbacks(fo=>{var po;fo.preventDefault(),(po=oo.current)===null||po===void 0||po.focus()},ao==null?void 0:ao.onClick)),co=useMergedRefs$1(ao==null?void 0:ao.ref,to);return ao&&(ao.ref=co,ao.onMouseDown=lo,ao.onClick=uo),ao}function useTriggerSlot(eo,to,ro){const{state:{activeOption:no,getCount:oo,getIndexOfId:io,getOptionAtIndex:so,open:ao,selectOption:lo,setActiveOption:uo,setFocusVisible:co,setOpen:fo,multiselect:po},defaultProps:ho,elementType:mo}=ro,vo=always(eo,{defaultProps:{type:"text","aria-expanded":ao,"aria-activedescendant":ao?no==null?void 0:no.id:void 0,role:"combobox",...typeof ho=="object"&&ho},elementType:mo}),bo=reactExports.useRef(null);return vo.ref=useMergedRefs$1(bo,vo.ref,to),vo.onBlur=mergeCallbacks(xo=>{fo(xo,!1)},vo.onBlur),vo.onClick=mergeCallbacks(xo=>{fo(xo,!ao)},vo.onClick),vo.onKeyDown=mergeCallbacks(xo=>{const _o=getDropdownActionFromKey(xo,{open:ao,multiselect:po}),So=oo()-1,Eo=no?io(no.id):-1;let ko=Eo;switch(_o){case"Open":xo.preventDefault(),co(!0),fo(xo,!0);break;case"Close":xo.stopPropagation(),xo.preventDefault(),fo(xo,!1);break;case"CloseSelect":!po&&!(no!=null&&no.disabled)&&fo(xo,!1);case"Select":no&&lo(xo,no),xo.preventDefault();break;case"Tab":!po&&no&&lo(xo,no);break;default:ko=getIndexFromAction(_o,Eo,So)}ko!==Eo&&(xo.preventDefault(),uo(so(ko)),co(!0))},vo.onKeyDown),vo.onMouseOver=mergeCallbacks(xo=>{co(!1)},vo.onMouseOver),vo}function useInputTriggerSlot(eo,to,ro){const{state:{open:no,value:oo,activeOption:io,selectOption:so,setValue:ao,setActiveOption:lo,setFocusVisible:uo,multiselect:co,selectedOptions:fo,clearSelection:po,getOptionsMatchingText:ho,getIndexOfId:mo,setOpen:vo},freeform:bo,defaultProps:xo}=ro,_o=$o=>{!no&&!bo&&(oo&&io&&oo.trim().toLowerCase()===(io==null?void 0:io.text.toLowerCase())&&so($o,io),ao(void 0))},So=$o=>{const Bo=$o==null?void 0:$o.trim().toLowerCase();if(!Bo||Bo.length===0)return;const Ho=ho(Oo=>Oo.toLowerCase().indexOf(Bo)===0);if(Ho.length>1&&io){const Oo=mo(io.id),Fo=Ho.find(Go=>mo(Go.id)>=Oo);return Fo??Ho[0]}var jo;return(jo=Ho[0])!==null&&jo!==void 0?jo:void 0},Eo=$o=>{const Bo=$o.target.value;ao(Bo);const Mo=So(Bo);lo(Mo),uo(!0),!co&&fo.length===1&&(Bo.length<1||!Mo)&&po($o)},ko=useTriggerSlot(eo,to,{state:ro.state,defaultProps:xo,elementType:"input"});ko.onChange=mergeCallbacks(ko.onChange,Eo),ko.onBlur=mergeCallbacks(ko.onBlur,_o);const[wo,Co]=reactExports.useState(!1),Ro=reactExports.useRef(!1),Ao=ko.onKeyDown,Io=useEventCallback$3($o=>{!no&&getDropdownActionFromKey($o)==="Type"&&vo($o,!0),$o.key===ArrowLeft||$o.key===ArrowRight?Co(!0):Co(!1);const Bo=getDropdownActionFromKey($o,{open:no,multiselect:co});if(Bo==="Type"?Ro.current=!0:(Bo==="Open"&&$o.key!==" "||Bo==="Next"||Bo==="Previous"||Bo==="First"||Bo==="Last"||Bo==="PageUp"||Bo==="PageDown")&&(Ro.current=!1),bo&&(Ro.current||!no)&&$o.key===" "){var Mo;eo==null||(Mo=eo.onKeyDown)===null||Mo===void 0||Mo.call(eo,$o);return}Ao==null||Ao($o)});return ko.onKeyDown=Io,wo&&(ko["aria-activedescendant"]=void 0),ko}const useCombobox_unstable=(eo,to)=>{eo=useFieldControlProps_unstable(eo,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const ro=useComboboxBaseState({...eo,editable:!0}),{open:no,selectOption:oo,setOpen:io,setValue:so,value:ao}=ro,[lo,uo]=useComboboxPositioning(eo),{disabled:co,freeform:fo,inlinePopup:po}=eo,ho=useId$1("combobox-"),{primary:mo,root:vo}=getPartitionedNativeProps({props:eo,primarySlotTagName:"input",excludedPropNames:["children","size"]});ro.selectOption=(Ao,Io)=>{so(void 0),oo(Ao,Io)},ro.setOpen=(Ao,Io)=>{co||(!Io&&!fo&&so(void 0),io(Ao,Io))};const bo=reactExports.useRef(null),xo=useListboxSlot(eo.listbox,lo,{state:ro,triggerRef:bo,defaultProps:{children:eo.children}});var _o;const So=useInputTriggerSlot((_o=eo.input)!==null&&_o!==void 0?_o:{},useMergedRefs$1(bo,to),{state:ro,freeform:fo,defaultProps:{type:"text",value:ao??"",...mo}}),Eo=always(eo.root,{defaultProps:{"aria-owns":!po&&no?xo==null?void 0:xo.id:void 0,...vo},elementType:"div"});Eo.ref=useMergedRefs$1(Eo.ref,uo);const ko={components:{root:"div",input:"input",expandIcon:"span",listbox:Listbox$1},root:Eo,input:So,listbox:no?xo:void 0,expandIcon:optional(eo.expandIcon,{renderByDefault:!0,defaultProps:{"aria-expanded":no,children:reactExports.createElement(ChevronDownRegular,null),role:"button"},elementType:"span"}),...ro},{onMouseDown:wo}=ko.expandIcon||{},Co=useEventCallback$3(mergeCallbacks(wo,Ao=>{var Io;Ao.preventDefault(),ko.setOpen(Ao,!ko.open),(Io=bo.current)===null||Io===void 0||Io.focus()}));if(ko.expandIcon){ko.expandIcon.onMouseDown=Co;const Ao=ko.expandIcon["aria-label"]||ko.expandIcon["aria-labelledby"],Io="Open";if(!Ao)if(eo["aria-labelledby"]){var Ro;const $o=(Ro=ko.expandIcon.id)!==null&&Ro!==void 0?Ro:`${ho}-chevron`,Bo=`${$o} ${ko.input["aria-labelledby"]}`;ko.expandIcon["aria-label"]=Io,ko.expandIcon.id=$o,ko.expandIcon["aria-labelledby"]=Bo}else eo["aria-label"]?ko.expandIcon["aria-label"]=`${Io} ${eo["aria-label"]}`:ko.expandIcon["aria-label"]=Io}return ko},renderCombobox_unstable=(eo,to)=>jsx$1(eo.root,{children:jsxs(ComboboxContext.Provider,{value:to.combobox,children:[jsx$1(eo.input,{}),eo.expandIcon&&jsx$1(eo.expandIcon,{}),eo.listbox&&(eo.inlinePopup?jsx$1(eo.listbox,{}):jsx$1(Portal$1,{mountNode:eo.mountNode,children:jsx$1(eo.listbox,{})}))]})}),comboboxClassNames={root:"fui-Combobox",input:"fui-Combobox__input",expandIcon:"fui-Combobox__expandIcon",listbox:"fui-Combobox__listbox"},useStyles$t=__styles({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);}"]}),useInputStyles$1=__styles({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;}"]}),useIconStyles$2=__styles({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;}"]}),useComboboxStyles_unstable=eo=>{const{appearance:to,open:ro,size:no}=eo,oo=`${eo.input["aria-invalid"]}`=="true",io=eo.input.disabled,so=useStyles$t(),ao=useIconStyles$2(),lo=useInputStyles$1();return eo.root.className=mergeClasses(comboboxClassNames.root,so.root,so[to],so[no],!io&&to==="outline"&&so.outlineInteractive,oo&&to!=="underline"&&so.invalid,oo&&to==="underline"&&so.invalidUnderline,io&&so.disabled,eo.root.className),eo.input.className=mergeClasses(comboboxClassNames.input,lo.input,lo[no],io&&lo.disabled,eo.input.className),eo.listbox&&(eo.listbox.className=mergeClasses(comboboxClassNames.listbox,so.listbox,!ro&&so.listboxCollapsed,eo.listbox.className)),eo.expandIcon&&(eo.expandIcon.className=mergeClasses(comboboxClassNames.expandIcon,ao.icon,ao[no],io&&ao.disabled,eo.expandIcon.className)),eo},Combobox=reactExports.forwardRef((eo,to)=>{const ro=useCombobox_unstable(eo,to),no=useComboboxContextValues(ro);return useComboboxStyles_unstable(ro),useCustomStyleHook("useComboboxStyles_unstable")(ro),renderCombobox_unstable(ro,no)});Combobox.displayName="Combobox";const useOptionGroup_unstable=(eo,to)=>{const ro=useId$1("group-label"),{label:no}=eo;return{components:{root:"div",label:"span"},root:always(getIntrinsicElementProps("div",{ref:to,role:"group","aria-labelledby":no?ro:void 0,...eo}),{elementType:"div"}),label:optional(no,{defaultProps:{id:ro,role:"presentation"},elementType:"span"})}},renderOptionGroup_unstable=eo=>jsxs(eo.root,{children:[eo.label&&jsx$1(eo.label,{children:eo.label.children}),eo.root.children]}),optionGroupClassNames={root:"fui-OptionGroup",label:"fui-OptionGroup__label"},useStyles$s=__styles({root:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",Belr9w4:"fiut8dr",B8lkq7l:"f1xxzjds",Gwp8xu:"fu19d3i",H93o2g:"flylvvz",eii1in:"f1ug5m11",om0q45:"f5642y",Hl9o3s:"ffdf81h",Bi9x0x4:"flgyru6",B0i58d9:["f1fjgumo","f1sgo0dv"],sl1c2c:"fwsdxdw",z4hxbw:["f1sgo0dv","f1fjgumo"]},label:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],sj55zd:"f11d4kpn",mc9l5x:"ftgm304",Be2twd7:"fy9rknc",Bhrd7zp:"fl43uef",Bg96gwp:"fwrc4pm",z8tnut:"f17mpqex",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"fdvome7",uwmqm3:["fk8j09s","fdw0yi8"]}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".fiut8dr{row-gap:var(--spacingHorizontalXXS);}",'.f1xxzjds:not(:last-child)::after{content:"";}',".fu19d3i:not(:last-child)::after{border-bottom-width:var(--strokeWidthThin);}",".flylvvz:not(:last-child)::after{border-bottom-style:solid;}",".f1ug5m11:not(:last-child)::after{border-bottom-color:var(--colorNeutralStroke2);}",".f5642y:not(:last-child)::after{display:block;}",".ffdf81h:not(:last-child)::after{padding-bottom:var(--spacingHorizontalXS);}",".flgyru6:not(:last-child)::after{margin-top:0;}",".f1fjgumo:not(:last-child)::after{margin-right:calc(var(--spacingHorizontalXS) * -1);}",".f1sgo0dv:not(:last-child)::after{margin-left:calc(var(--spacingHorizontalXS) * -1);}",".fwsdxdw:not(:last-child)::after{margin-bottom:var(--spacingVerticalXS);}",".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);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".ftgm304{display:block;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f17mpqex{padding-top:var(--spacingHorizontalS);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdvome7{padding-bottom:var(--spacingHorizontalS);}"]}),useOptionGroupStyles_unstable=eo=>{const to=useStyles$s();return eo.root.className=mergeClasses(optionGroupClassNames.root,to.root,eo.root.className),eo.label&&(eo.label.className=mergeClasses(optionGroupClassNames.label,to.label,eo.label.className)),eo},OptionGroup=reactExports.forwardRef((eo,to)=>{const ro=useOptionGroup_unstable(eo,to);return useOptionGroupStyles_unstable(ro),useCustomStyleHook("useOptionGroupStyles_unstable")(ro),renderOptionGroup_unstable(ro)});OptionGroup.displayName="OptionGroup";const renderDivider_unstable=eo=>jsx$1(eo.root,{children:eo.root.children!==void 0&&jsx$1(eo.wrapper,{children:eo.root.children})}),useDivider_unstable=(eo,to)=>{const{alignContent:ro="center",appearance:no="default",inset:oo=!1,vertical:io=!1,wrapper:so}=eo,ao=useId$1("divider-");return{alignContent:ro,appearance:no,inset:oo,vertical:io,components:{root:"div",wrapper:"div"},root:always(getIntrinsicElementProps("div",{role:"separator","aria-orientation":io?"vertical":"horizontal","aria-labelledby":eo.children?ao:void 0,...eo,ref:to}),{elementType:"div"}),wrapper:always(so,{defaultProps:{id:ao,children:eo.children},elementType:"div"})}},dividerClassNames={root:"fui-Divider",wrapper:"fui-Divider__wrapper"},useBaseStyles=__styles({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);}"]}),useHorizontalStyles=__styles({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;}"]}),useVerticalStyles=__styles({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;}"]}),useDividerStyles_unstable=eo=>{const to=useBaseStyles(),ro=useHorizontalStyles(),no=useVerticalStyles(),{alignContent:oo,appearance:io,inset:so,vertical:ao}=eo;return eo.root.className=mergeClasses(dividerClassNames.root,to.base,to[oo],io&&to[io],!ao&&ro.base,!ao&&so&&ro.inset,!ao&&ro[oo],ao&&no.base,ao&&so&&no.inset,ao&&no[oo],ao&&eo.root.children!==void 0&&no.withChildren,eo.root.children===void 0&&to.childless,eo.root.className),eo.wrapper&&(eo.wrapper.className=mergeClasses(dividerClassNames.wrapper,eo.wrapper.className)),eo},Divider$2=reactExports.forwardRef((eo,to)=>{const ro=useDivider_unstable(eo,to);return useDividerStyles_unstable(ro),useCustomStyleHook("useDividerStyles_unstable")(ro),renderDivider_unstable(ro)});Divider$2.displayName="Divider";const useInput_unstable=(eo,to)=>{eo=useFieldControlProps_unstable(eo,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const ro=useOverrides();var no;const{size:oo="medium",appearance:io=(no=ro.inputDefaultAppearance)!==null&&no!==void 0?no:"outline",onChange:so}=eo,[ao,lo]=useControllableState({state:eo.value,defaultState:eo.defaultValue,initialState:""}),uo=getPartitionedNativeProps({props:eo,primarySlotTagName:"input",excludedPropNames:["size","onChange","value","defaultValue"]}),co={size:oo,appearance:io,components:{root:"span",input:"input",contentBefore:"span",contentAfter:"span"},input:always(eo.input,{defaultProps:{type:"text",ref:to,...uo.primary},elementType:"input"}),contentAfter:optional(eo.contentAfter,{elementType:"span"}),contentBefore:optional(eo.contentBefore,{elementType:"span"}),root:always(eo.root,{defaultProps:uo.root,elementType:"span"})};return co.input.value=ao,co.input.onChange=useEventCallback$3(fo=>{const po=fo.target.value;so==null||so(fo,{value:po}),lo(po)}),co},renderInput_unstable=eo=>jsxs(eo.root,{children:[eo.contentBefore&&jsx$1(eo.contentBefore,{}),jsx$1(eo.input,{}),eo.contentAfter&&jsx$1(eo.contentAfter,{})]}),inputClassNames={root:"fui-Input",input:"fui-Input__input",contentBefore:"fui-Input__contentBefore",contentAfter:"fui-Input__contentAfter"},useRootClassName=__resetStyles("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;}}"]}),useRootStyles$4=__styles({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;}"]}),useInputClassName=__resetStyles("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;}"]),useInputElementStyles=__styles({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);}"]}),useContentClassName=__resetStyles("r1572tok",null,[".r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;}",".r1572tok>svg{font-size:20px;}"]),useContentStyles$1=__styles({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;}"]}),useInputStyles_unstable=eo=>{const{size:to,appearance:ro}=eo,no=eo.input.disabled,oo=`${eo.input["aria-invalid"]}`=="true",io=ro.startsWith("filled"),so=useRootStyles$4(),ao=useInputElementStyles(),lo=useContentStyles$1();eo.root.className=mergeClasses(inputClassNames.root,useRootClassName(),so[to],so[ro],!no&&ro==="outline"&&so.outlineInteractive,!no&&ro==="underline"&&so.underlineInteractive,!no&&io&&so.filledInteractive,io&&so.filled,!no&&oo&&so.invalid,no&&so.disabled,eo.root.className),eo.input.className=mergeClasses(inputClassNames.input,useInputClassName(),to==="large"&&ao.large,no&&ao.disabled,eo.input.className);const uo=[useContentClassName(),no&&lo.disabled,lo[to]];return eo.contentBefore&&(eo.contentBefore.className=mergeClasses(inputClassNames.contentBefore,...uo,eo.contentBefore.className)),eo.contentAfter&&(eo.contentAfter.className=mergeClasses(inputClassNames.contentAfter,...uo,eo.contentAfter.className)),eo},Input=reactExports.forwardRef((eo,to)=>{const ro=useInput_unstable(eo,to);return useInputStyles_unstable(ro),useCustomStyleHook("useInputStyles_unstable")(ro),renderInput_unstable(ro)});Input.displayName="Input";const useLinkState_unstable=eo=>{const{disabled:to,disabledFocusable:ro}=eo,{onClick:no,onKeyDown:oo,role:io,tabIndex:so}=eo.root;return eo.root.as==="a"&&(eo.root.href=to?void 0:eo.root.href,(to||ro)&&(eo.root.role=io||"link")),(eo.root.as==="a"||eo.root.as==="span")&&(eo.root.tabIndex=so??(to&&!ro?void 0:0)),eo.root.onClick=ao=>{to||ro?ao.preventDefault():no==null||no(ao)},eo.root.onKeyDown=ao=>{(to||ro)&&(ao.key===Enter||ao.key===Space)?(ao.preventDefault(),ao.stopPropagation()):oo==null||oo(ao)},eo.disabled=to||ro,eo.root["aria-disabled"]=to||ro||void 0,eo.root.as==="button"&&(eo.root.disabled=to&&!ro),eo},useLink_unstable=(eo,to)=>{const ro=useBackgroundAppearance(),{appearance:no="default",disabled:oo=!1,disabledFocusable:io=!1,inline:so=!1}=eo,ao=eo.as||(eo.href?"a":"button"),lo={role:ao==="span"?"button":void 0,type:ao==="button"?"button":void 0,...eo,as:ao},uo={appearance:no,disabled:oo,disabledFocusable:io,inline:so,components:{root:ao},root:always(getIntrinsicElementProps(ao,{ref:to,...lo}),{elementType:ao}),backgroundAppearance:ro};return useLinkState_unstable(uo),uo},linkClassNames={root:"fui-Link"},useStyles$r=__styles({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);}"]}),useLinkStyles_unstable=eo=>{const to=useStyles$r(),{appearance:ro,disabled:no,inline:oo,root:io,backgroundAppearance:so}=eo;return eo.root.className=mergeClasses(linkClassNames.root,to.root,to.focusIndicator,io.as==="a"&&io.href&&to.href,io.as==="button"&&to.button,ro==="subtle"&&to.subtle,so==="inverted"&&to.inverted,oo&&to.inline,no&&to.disabled,eo.root.className),eo},renderLink_unstable=eo=>jsx$1(eo.root,{}),Link$1=reactExports.forwardRef((eo,to)=>{const ro=useLink_unstable(eo,to);return useLinkStyles_unstable(ro),renderLink_unstable(ro)});Link$1.displayName="Link";const SkeletonContext=reactExports.createContext(void 0),skeletonContextDefaultValue={},SkeletonContextProvider=SkeletonContext.Provider,useSkeletonContext=()=>{var eo;return(eo=reactExports.useContext(SkeletonContext))!==null&&eo!==void 0?eo:skeletonContextDefaultValue},useSkeleton_unstable=(eo,to)=>{const{animation:ro,appearance:no}=useSkeletonContext(),{animation:oo=ro??"wave",appearance:io=no??"opaque"}=eo,so=always(getIntrinsicElementProps("div",{ref:to,role:"progressbar","aria-busy":!0,"aria-label":"Loading Content",...eo}),{elementType:"div"});return{animation:oo,appearance:io,components:{root:"div"},root:so}},renderSkeleton_unstable=(eo,to)=>jsx$1(SkeletonContextProvider,{value:to.skeletonGroup,children:jsx$1(eo.root,{})}),skeletonClassNames={root:"fui-Skeleton"},useSkeletonStyles_unstable=eo=>(eo.root.className=mergeClasses(skeletonClassNames.root,eo.root.className),eo),useSkeletonContextValues=eo=>{const{animation:to,appearance:ro}=eo;return{skeletonGroup:reactExports.useMemo(()=>({animation:to,appearance:ro}),[to,ro])}},Skeleton=reactExports.forwardRef((eo,to)=>{const ro=useSkeleton_unstable(eo,to),no=useSkeletonContextValues(ro);return useSkeletonStyles_unstable(ro),renderSkeleton_unstable(ro,no)});Skeleton.displayName="Skeleton";const useSkeletonItem_unstable=(eo,to)=>{const{animation:ro,appearance:no}=useSkeletonContext(),{animation:oo=ro??"wave",appearance:io=no??"opaque",size:so=16,shape:ao="rectangle"}=eo,lo=always(getIntrinsicElementProps("div",{ref:to,...eo}),{elementType:"div"});return{appearance:io,animation:oo,size:so,shape:ao,components:{root:"div"},root:lo}},renderSkeletonItem_unstable=eo=>jsx$1(eo.root,{}),skeletonItemClassNames={root:"fui-SkeletonItem"},useStyles$q=__styles({root:{qhf8xq:"f10pi13n",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",Bkjc3bi:"f1qx3921",B8a6bjv:"fj9j8l8",Bpptf2m:"f1b6djjb",Bgh53k4:"f1dsdmen",w3vfg9:"f1cpbl36",vin17d:"f1a27w2r",Ezkn3b:"f452v7t",Gqtpxc:"f4akx1t",B3vm3ge:"f18p5put"},wave:{Bv12yb3:"fj20wtk",Bcmaq0h:["f101ziu5","f152emvt"],Bpep1pd:"f9jxvrw"},waveRtl:{Bv12yb3:"f105t0nc",Bcmaq0h:["f101ziu5","f152emvt"],Bpep1pd:"f9jxvrw"},pulse:{Bv12yb3:"fnm2mpv",vin17d:"f1iuewzk",De3pzq:"f1gjxg63"},translucent:{Bcmaq0h:["fss7axp","f4160cw"]},translucentPulse:{De3pzq:"f162mh4z"}},{d:[".f10pi13n{position:relative;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1qx3921{background-size:300% 100%;}",".fj9j8l8{background-position-x:center;}",".f1b6djjb{background-position-y:center;}",".f1dsdmen{background-attachment:fixed;}",".f1cpbl36{animation-iteration-count:infinite;}",".f1a27w2r{animation-duration:3s;}",".f452v7t{animation-timing-function:linear;}",".fj20wtk{animation-name:fma800j;}",`.f101ziu5{background-image:linear-gradient( - to right, - var(--colorNeutralStencil1) 0%, - var(--colorNeutralStencil2) 50%, - var(--colorNeutralStencil1) 100%);}`,`.f152emvt{background-image:linear-gradient( - to left, - var(--colorNeutralStencil1) 0%, - var(--colorNeutralStencil2) 50%, - var(--colorNeutralStencil1) 100%);}`,".f105t0nc{animation-name:fj9wi3p;}",".fnm2mpv{animation-name:f12o7gg6;}",".f1iuewzk{animation-duration:1s;}",".f1gjxg63{background-color:var(--colorNeutralStencil1);}",`.fss7axp{background-image:linear-gradient( - to right, - var(--colorNeutralStencil1Alpha) 0%, - var(--colorNeutralStencil2Alpha) 50%, - var(--colorNeutralStencil1Alpha) 100%);}`,`.f4160cw{background-image:linear-gradient( - to left, - var(--colorNeutralStencil1Alpha) 0%, - var(--colorNeutralStencil2Alpha) 50%, - var(--colorNeutralStencil1Alpha) 100%);}`,".f162mh4z{background-color:var(--colorNeutralStencil1Alpha);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f4akx1t{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f18p5put{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (forced-colors: active){.f9jxvrw{background-color:WindowText;}}",{m:"screen and (forced-colors: active)"}]],k:["@keyframes fma800j{from{background-position-x:300%;}to{background-position-x:0%;}}","@keyframes fj9wi3p{from{background-position-x:0%;}to{background-position-x:300%;}}","@keyframes f12o7gg6{0%{opacity:1;}50%{opacity:0.4;}100%{opacity:1;}}"]}),useRectangleStyles=__styles({8:{Bqenvij:"f1x82gua"},12:{Bqenvij:"fvblgha"},16:{Bqenvij:"fd461yt"},20:{Bqenvij:"fjamq6b"},24:{Bqenvij:"frvgh55"},28:{Bqenvij:"fxldao9"},32:{Bqenvij:"f1d2rq10"},36:{Bqenvij:"f8ljn23"},40:{Bqenvij:"fbhnoac"},48:{Bqenvij:"ff2sm71"},56:{Bqenvij:"fzki0ko"},64:{Bqenvij:"f16k9i2m"},72:{Bqenvij:"f1shusfg"},96:{Bqenvij:"fypu0ge"},120:{Bqenvij:"fjr5b71"},128:{Bqenvij:"fele2au"},root:{a9b677:"fly5x3f",Bbmb7ep:["fff7au0","f1bjk9e1"],Beyfa6y:["f1bjk9e1","fff7au0"],B7oj6ja:["fwsfkhu","f8wkphi"],Btl43ni:["f8wkphi","fwsfkhu"]}},{d:[".f1x82gua{height:8px;}",".fvblgha{height:12px;}",".fd461yt{height:16px;}",".fjamq6b{height:20px;}",".frvgh55{height:24px;}",".fxldao9{height:28px;}",".f1d2rq10{height:32px;}",".f8ljn23{height:36px;}",".fbhnoac{height:40px;}",".ff2sm71{height:48px;}",".fzki0ko{height:56px;}",".f16k9i2m{height:64px;}",".f1shusfg{height:72px;}",".fypu0ge{height:96px;}",".fjr5b71{height:120px;}",".fele2au{height:128px;}",".fly5x3f{width:100%;}",".fff7au0{border-bottom-right-radius:4px;}",".f1bjk9e1{border-bottom-left-radius:4px;}",".fwsfkhu{border-top-right-radius:4px;}",".f8wkphi{border-top-left-radius:4px;}"]}),useSizeStyles=__styles({8:{a9b677:"f1o3cbw4",Bqenvij:"f1x82gua"},12:{a9b677:"frx94fk",Bqenvij:"fvblgha"},16:{a9b677:"fjw5fx7",Bqenvij:"fd461yt"},20:{a9b677:"f64fuq3",Bqenvij:"fjamq6b"},24:{a9b677:"fq4mcun",Bqenvij:"frvgh55"},28:{a9b677:"f1w9dchk",Bqenvij:"fxldao9"},32:{a9b677:"f1szoe96",Bqenvij:"f1d2rq10"},36:{a9b677:"fpdz1er",Bqenvij:"f8ljn23"},40:{a9b677:"feqmc2u",Bqenvij:"fbhnoac"},48:{a9b677:"f124akge",Bqenvij:"ff2sm71"},56:{a9b677:"f1u66zr1",Bqenvij:"fzki0ko"},64:{a9b677:"fa9ln6p",Bqenvij:"f16k9i2m"},72:{a9b677:"fhcae8x",Bqenvij:"f1shusfg"},96:{a9b677:"f1kyr2gn",Bqenvij:"fypu0ge"},120:{a9b677:"fwfqyga",Bqenvij:"fjr5b71"},128:{a9b677:"f1iksgmy",Bqenvij:"fele2au"}},{d:[".f1o3cbw4{width:8px;}",".f1x82gua{height:8px;}",".frx94fk{width:12px;}",".fvblgha{height:12px;}",".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".f64fuq3{width:20px;}",".fjamq6b{height:20px;}",".fq4mcun{width:24px;}",".frvgh55{height:24px;}",".f1w9dchk{width:28px;}",".fxldao9{height:28px;}",".f1szoe96{width:32px;}",".f1d2rq10{height:32px;}",".fpdz1er{width:36px;}",".f8ljn23{height:36px;}",".feqmc2u{width:40px;}",".fbhnoac{height:40px;}",".f124akge{width:48px;}",".ff2sm71{height:48px;}",".f1u66zr1{width:56px;}",".fzki0ko{height:56px;}",".fa9ln6p{width:64px;}",".f16k9i2m{height:64px;}",".fhcae8x{width:72px;}",".f1shusfg{height:72px;}",".f1kyr2gn{width:96px;}",".fypu0ge{height:96px;}",".fwfqyga{width:120px;}",".fjr5b71{height:120px;}",".f1iksgmy{width:128px;}",".fele2au{height:128px;}"]}),useCircleSizeStyles=__styles({root:{Bbmb7ep:["fqgqgel","fchfifz"],Beyfa6y:["fchfifz","fqgqgel"],B7oj6ja:["fc7b1hi","f1dpx5h9"],Btl43ni:["f1dpx5h9","fc7b1hi"]}},{d:[".fqgqgel{border-bottom-right-radius:50%;}",".fchfifz{border-bottom-left-radius:50%;}",".fc7b1hi{border-top-right-radius:50%;}",".f1dpx5h9{border-top-left-radius:50%;}"]}),useSkeletonItemStyles_unstable=eo=>{const{animation:to,appearance:ro,size:no,shape:oo}=eo,{dir:io}=useFluent(),so=useStyles$q(),ao=useRectangleStyles(),lo=useSizeStyles(),uo=useCircleSizeStyles();return eo.root.className=mergeClasses(skeletonItemClassNames.root,so.root,to==="wave"&&so.wave,to==="wave"&&io==="rtl"&&so.waveRtl,to==="pulse"&&so.pulse,ro==="translucent"&&so.translucent,to==="pulse"&&ro==="translucent"&&so.translucentPulse,oo==="rectangle"&&ao.root,oo==="rectangle"&&ao[no],oo==="square"&&lo[no],oo==="circle"&&uo.root,oo==="circle"&&lo[no],eo.root.className),eo},SkeletonItem=reactExports.forwardRef((eo,to)=>{const ro=useSkeletonItem_unstable(eo,to);return useSkeletonItemStyles_unstable(ro),renderSkeletonItem_unstable(ro)});SkeletonItem.displayName="SkeletonItem";const DefaultSvg=()=>reactExports.createElement("svg",{className:"fui-Spinner__Progressbar"},reactExports.createElement("circle",{className:"fui-Spinner__Track"}),reactExports.createElement("circle",{className:"fui-Spinner__Tail"})),SpinnerContext=reactExports.createContext(void 0),SpinnerContextDefaultValue={};SpinnerContext.Provider;const useSpinnerContext=()=>{var eo;return(eo=reactExports.useContext(SpinnerContext))!==null&&eo!==void 0?eo:SpinnerContextDefaultValue},useSpinner_unstable=(eo,to)=>{const{size:ro}=useSpinnerContext(),{appearance:no="primary",labelPosition:oo="after",size:io=ro??"medium",delay:so=0}=eo,ao=useId$1("spinner"),{role:lo="progressbar",tabIndex:uo,...co}=eo,fo=always(getIntrinsicElementProps("div",{ref:to,role:lo,...co},["size"]),{elementType:"div"}),[po,ho]=reactExports.useState(!0),[mo,vo]=useTimeout();reactExports.useEffect(()=>{if(!(so<=0))return ho(!1),mo(()=>{ho(!0)},so),()=>{vo()}},[mo,vo,so]);const bo=optional(eo.label,{defaultProps:{id:ao},renderByDefault:!1,elementType:Label}),xo=optional(eo.spinner,{renderByDefault:!0,defaultProps:{children:reactExports.createElement(DefaultSvg,null),tabIndex:uo},elementType:"span"});return bo&&fo&&!fo["aria-labelledby"]&&(fo["aria-labelledby"]=bo.id),{appearance:no,delay:so,labelPosition:oo,size:io,shouldRenderSpinner:po,components:{root:"div",spinner:"span",label:Label},root:fo,spinner:xo,label:bo}},renderSpinner_unstable=eo=>{const{labelPosition:to,shouldRenderSpinner:ro}=eo;return jsxs(eo.root,{children:[eo.label&&ro&&(to==="above"||to==="before")&&jsx$1(eo.label,{}),eo.spinner&&ro&&jsx$1(eo.spinner,{}),eo.label&&ro&&(to==="below"||to==="after")&&jsx$1(eo.label,{})]})},spinnerClassNames={root:"fui-Spinner",spinner:"fui-Spinner__spinner",label:"fui-Spinner__label"},useRootStyles$3=__styles({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;}"]}),useLoaderStyles=__styles({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)"}]]}),useTrackStyles=__styles({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)"}]]}),useLabelStyles$1=__styles({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);}"]}),useSpinnerStyles_unstable=eo=>{const{labelPosition:to,size:ro,appearance:no="primary"}=eo,oo=useRootStyles$3(),io=useLoaderStyles(),so=useLabelStyles$1(),ao=useTrackStyles();return eo.root.className=mergeClasses(spinnerClassNames.root,oo.root,(to==="above"||to==="below")&&oo.vertical,(to==="before"||to==="after")&&oo.horizontal,eo.root.className),eo.spinner&&(eo.spinner.className=mergeClasses(spinnerClassNames.spinner,io.spinnerSVG,io[ro],ao[no],eo.spinner.className)),eo.label&&(eo.label.className=mergeClasses(spinnerClassNames.label,so[ro],so[no],eo.label.className)),eo},Spinner=reactExports.forwardRef((eo,to)=>{const ro=useSpinner_unstable(eo,to);return useSpinnerStyles_unstable(ro),useCustomStyleHook("useSpinnerStyles_unstable")(ro),renderSpinner_unstable(ro)});Spinner.displayName="Spinner";const useSwitch_unstable=(eo,to)=>{eo=useFieldControlProps_unstable(eo,{supportsLabelFor:!0,supportsRequired:!0});const{checked:ro,defaultChecked:no,disabled:oo,labelPosition:io="after",onChange:so,required:ao}=eo,lo=getPartitionedNativeProps({props:eo,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange"]}),uo=useId$1("switch-",lo.primary.id),co=always(eo.root,{defaultProps:{ref:useFocusWithin(),...lo.root},elementType:"div"}),fo=always(eo.indicator,{defaultProps:{"aria-hidden":!0,children:reactExports.createElement(CircleFilled,null)},elementType:"div"}),po=always(eo.input,{defaultProps:{checked:ro,defaultChecked:no,id:uo,ref:to,role:"switch",type:"checkbox",...lo.primary},elementType:"input"});po.onChange=mergeCallbacks(po.onChange,mo=>so==null?void 0:so(mo,{checked:mo.currentTarget.checked}));const ho=optional(eo.label,{defaultProps:{disabled:oo,htmlFor:uo,required:ao,size:"medium"},elementType:Label});return{labelPosition:io,components:{root:"div",indicator:"div",input:"input",label:Label},root:co,indicator:fo,input:po,label:ho}},renderSwitch_unstable=eo=>{const{labelPosition:to}=eo;return jsxs(eo.root,{children:[jsx$1(eo.input,{}),to!=="after"&&eo.label&&jsx$1(eo.label,{}),jsx$1(eo.indicator,{}),to==="after"&&eo.label&&jsx$1(eo.label,{})]})},switchClassNames={root:"fui-Switch",indicator:"fui-Switch__indicator",input:"fui-Switch__input",label:"fui-Switch__label"},useRootBaseClassName=__resetStyles("r1i56xw0","rk4yt03",{r:[".r1i56xw0{align-items:flex-start;box-sizing:border-box;display:inline-flex;position:relative;}",".r1i56xw0:focus{outline-style:none;}",".r1i56xw0:focus-visible{outline-style:none;}",".r1i56xw0[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1i56xw0[data-fui-focus-within]:focus-within::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);}',".rk4yt03{align-items:flex-start;box-sizing:border-box;display:inline-flex;position:relative;}",".rk4yt03:focus{outline-style:none;}",".rk4yt03:focus-visible{outline-style:none;}",".rk4yt03[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rk4yt03[data-fui-focus-within]:focus-within::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){.r1i56xw0[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rk4yt03[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),useRootStyles$2=__styles({vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f1vx9l62{flex-direction:column;}"]}),useIndicatorBaseClassName=__resetStyles("r13wlxb8",null,{r:[".r13wlxb8{border-radius:var(--borderRadiusCircular);border:1px solid;line-height:0;box-sizing:border-box;fill:currentColor;flex-shrink:0;font-size:18px;height:20px;margin:var(--spacingVerticalS) var(--spacingHorizontalS);pointer-events:none;transition-duration:var(--durationNormal);transition-timing-function:var(--curveEasyEase);transition-property:background,border,color;width:40px;}",".r13wlxb8>*{transition-duration:var(--durationNormal);transition-timing-function:var(--curveEasyEase);transition-property:transform;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r13wlxb8{transition-duration:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r13wlxb8>*{transition-duration:0.01ms;}}"]}),useIndicatorStyles=__styles({labelAbove:{B6of3ja:"f1hu3pq6"}},{d:[".f1hu3pq6{margin-top:0;}"]}),useInputBaseClassName=__resetStyles("rw4brat","r1f4bxyr",{r:[".rw4brat{box-sizing:border-box;cursor:pointer;height:100%;margin:0;opacity:0;position:absolute;width:calc(40px + 2 * var(--spacingHorizontalS));}",".rw4brat:checked~.fui-Switch__indicator>*{transform:translateX(20px);}",".rw4brat:disabled{cursor:default;}",".rw4brat:disabled~.fui-Switch__indicator{color:var(--colorNeutralForegroundDisabled);}",".rw4brat:disabled~.fui-Switch__label{cursor:default;color:var(--colorNeutralForegroundDisabled);}",".rw4brat:enabled:not(:checked)~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessible);border-color:var(--colorNeutralStrokeAccessible);}",".rw4brat:enabled:not(:checked)~.fui-Switch__label{color:var(--colorNeutralForeground1);}",".rw4brat:enabled:not(:checked):hover~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessibleHover);border-color:var(--colorNeutralStrokeAccessibleHover);}",".rw4brat:enabled:not(:checked):hover:active~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessiblePressed);border-color:var(--colorNeutralStrokeAccessiblePressed);}",".rw4brat:enabled:checked~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackground);color:var(--colorNeutralForegroundInverted);border-color:var(--colorTransparentStroke);}",".rw4brat:enabled:checked:hover~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundHover);border-color:var(--colorTransparentStrokeInteractive);}",".rw4brat:enabled:checked:hover:active~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundPressed);border-color:var(--colorTransparentStrokeInteractive);}",".rw4brat:disabled:not(:checked)~.fui-Switch__indicator{border-color:var(--colorNeutralStrokeDisabled);}",".rw4brat:disabled:checked~.fui-Switch__indicator{background-color:var(--colorNeutralBackgroundDisabled);border-color:var(--colorTransparentStrokeDisabled);}",".r1f4bxyr{box-sizing:border-box;cursor:pointer;height:100%;margin:0;opacity:0;position:absolute;width:calc(40px + 2 * var(--spacingHorizontalS));}",".r1f4bxyr:checked~.fui-Switch__indicator>*{transform:translateX(-20px);}",".r1f4bxyr:disabled{cursor:default;}",".r1f4bxyr:disabled~.fui-Switch__indicator{color:var(--colorNeutralForegroundDisabled);}",".r1f4bxyr:disabled~.fui-Switch__label{cursor:default;color:var(--colorNeutralForegroundDisabled);}",".r1f4bxyr:enabled:not(:checked)~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessible);border-color:var(--colorNeutralStrokeAccessible);}",".r1f4bxyr:enabled:not(:checked)~.fui-Switch__label{color:var(--colorNeutralForeground1);}",".r1f4bxyr:enabled:not(:checked):hover~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessibleHover);border-color:var(--colorNeutralStrokeAccessibleHover);}",".r1f4bxyr:enabled:not(:checked):hover:active~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessiblePressed);border-color:var(--colorNeutralStrokeAccessiblePressed);}",".r1f4bxyr:enabled:checked~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackground);color:var(--colorNeutralForegroundInverted);border-color:var(--colorTransparentStroke);}",".r1f4bxyr:enabled:checked:hover~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundHover);border-color:var(--colorTransparentStrokeInteractive);}",".r1f4bxyr:enabled:checked:hover:active~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundPressed);border-color:var(--colorTransparentStrokeInteractive);}",".r1f4bxyr:disabled:not(:checked)~.fui-Switch__indicator{border-color:var(--colorNeutralStrokeDisabled);}",".r1f4bxyr:disabled:checked~.fui-Switch__indicator{background-color:var(--colorNeutralBackgroundDisabled);border-color:var(--colorTransparentStrokeDisabled);}"],s:["@media (forced-colors: active){.rw4brat:disabled~.fui-Switch__indicator{color:GrayText;border-color:GrayText;}.rw4brat:disabled~.fui-Switch__label{color:GrayText;}.rw4brat:enabled:checked:hover~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.rw4brat:enabled:checked~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}}","@media (forced-colors: active){.r1f4bxyr:disabled~.fui-Switch__indicator{color:GrayText;border-color:GrayText;}.r1f4bxyr:disabled~.fui-Switch__label{color:GrayText;}.r1f4bxyr:enabled:checked:hover~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.r1f4bxyr:enabled:checked~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}}"]}),useInputStyles=__styles({before:{j35jbq:["f1e31b4d","f1vgc2s3"],Bhzewxz:"f15twtuk"},after:{oyh7mz:["f1vgc2s3","f1e31b4d"],Bhzewxz:"f15twtuk"},above:{B5kzvoi:"f1yab3r1",Bqenvij:"f1aar7gd",a9b677:"fly5x3f"}},{d:[".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f15twtuk{top:0;}",".f1yab3r1{bottom:0;}",".f1aar7gd{height:calc(20px + var(--spacingVerticalS));}",".fly5x3f{width:100%;}"]}),useLabelStyles=__styles({base:{Bceei9c:"f1k6fduh",jrapky:"f49ad5g",B6of3ja:"f1xlvstr",z8tnut:"f1kwiid1",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f5b47ha",uwmqm3:["f1f5gg8d","f1vdfbxk"]},above:{z8tnut:"f1ywm7hm",Byoj8tv:"f14wxoun",a9b677:"fly5x3f"},after:{uwmqm3:["fruq291","f7x41pl"]},before:{z189sj:["f7x41pl","fruq291"]}},{d:[".f1k6fduh{cursor:pointer;}",".f49ad5g{margin-bottom:calc((20px - var(--lineHeightBase300)) / 2);}",".f1xlvstr{margin-top:calc((20px - var(--lineHeightBase300)) / 2);}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f14wxoun{padding-bottom:var(--spacingVerticalXS);}",".fly5x3f{width:100%;}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}"]}),useSwitchStyles_unstable=eo=>{const to=useRootBaseClassName(),ro=useRootStyles$2(),no=useIndicatorBaseClassName(),oo=useIndicatorStyles(),io=useInputBaseClassName(),so=useInputStyles(),ao=useLabelStyles(),{label:lo,labelPosition:uo}=eo;return eo.root.className=mergeClasses(switchClassNames.root,to,uo==="above"&&ro.vertical,eo.root.className),eo.indicator.className=mergeClasses(switchClassNames.indicator,no,lo&&uo==="above"&&oo.labelAbove,eo.indicator.className),eo.input.className=mergeClasses(switchClassNames.input,io,lo&&so[uo],eo.input.className),eo.label&&(eo.label.className=mergeClasses(switchClassNames.label,ao.base,ao[uo],eo.label.className)),eo},Switch=reactExports.forwardRef((eo,to)=>{const ro=useSwitch_unstable(eo,to);return useSwitchStyles_unstable(ro),useCustomStyleHook("useSwitchStyles_unstable")(ro),renderSwitch_unstable(ro)});Switch.displayName="Switch";const tabListContextDefaultValue={appearance:"transparent",reserveSelectedTabSpace:!0,selectTabOnFocus:!1,disabled:!1,selectedValue:void 0,onRegister:()=>{},onUnregister:()=>{},onSelect:()=>{},getRegisteredTabs:()=>({registeredTabs:{}}),size:"medium",vertical:!1},TabListContext=createContext(void 0),TabListProvider=TabListContext.Provider,useTabListContext_unstable=eo=>useContextSelector(TabListContext,(to=tabListContextDefaultValue)=>eo(to)),useTab_unstable=(eo,to)=>{const{content:ro,disabled:no=!1,icon:oo,onClick:io,onFocus:so,value:ao}=eo,lo=useTabListContext_unstable(Io=>Io.appearance),uo=useTabListContext_unstable(Io=>Io.reserveSelectedTabSpace),co=useTabListContext_unstable(Io=>Io.selectTabOnFocus),fo=useTabListContext_unstable(Io=>Io.disabled),po=useTabListContext_unstable(Io=>Io.selectedValue===ao),ho=useTabListContext_unstable(Io=>Io.onRegister),mo=useTabListContext_unstable(Io=>Io.onUnregister),vo=useTabListContext_unstable(Io=>Io.onSelect),bo=useTabListContext_unstable(Io=>Io.size),xo=useTabListContext_unstable(Io=>!!Io.vertical),_o=fo||no,So=reactExports.useRef(null),Eo=Io=>vo(Io,{value:ao}),ko=useEventCallback$3(mergeCallbacks(io,Eo)),wo=useEventCallback$3(mergeCallbacks(so,Eo));reactExports.useEffect(()=>(ho({value:ao,ref:So}),()=>{mo({value:ao,ref:So})}),[ho,mo,So,ao]);const Co=optional(oo,{elementType:"span"}),Ro=always(ro,{defaultProps:{children:eo.children},elementType:"span"}),Ao=!!(Co!=null&&Co.children&&!Ro.children);return{components:{root:"button",icon:"span",content:"span",contentReservedSpace:"span"},root:always(getIntrinsicElementProps("button",{ref:useMergedRefs$1(to,So),role:"tab",type:"button","aria-selected":_o?void 0:`${po}`,...eo,disabled:_o,onClick:ko,onFocus:co?wo:so}),{elementType:"button"}),icon:Co,iconOnly:Ao,content:Ro,contentReservedSpace:optional(ro,{renderByDefault:!po&&!Ao&&uo,defaultProps:{children:eo.children},elementType:"span"}),appearance:lo,disabled:_o,selected:po,size:bo,value:ao,vertical:xo}},renderTab_unstable=eo=>jsxs(eo.root,{children:[eo.icon&&jsx$1(eo.icon,{}),!eo.iconOnly&&jsx$1(eo.content,{}),eo.contentReservedSpace&&jsx$1(eo.contentReservedSpace,{})]}),tabIndicatorCssVars_unstable={offsetVar:"--fui-Tab__indicator--offset",scaleVar:"--fui-Tab__indicator--scale"},useActiveIndicatorStyles$1=__styles({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)"}]]}),calculateTabRect=eo=>{if(eo){var to;const ro=((to=eo.parentElement)===null||to===void 0?void 0:to.getBoundingClientRect())||{x:0,y:0,width:0,height:0},no=eo.getBoundingClientRect();return{x:no.x-ro.x,y:no.y-ro.y,width:no.width,height:no.height}}},getRegisteredTabRect=(eo,to)=>{var ro;const no=to!=null?(ro=eo[JSON.stringify(to)])===null||ro===void 0?void 0:ro.ref.current:void 0;return no?calculateTabRect(no):void 0},useTabAnimatedIndicatorStyles_unstable=eo=>{const{disabled:to,selected:ro,vertical:no}=eo,oo=useActiveIndicatorStyles$1(),[io,so]=reactExports.useState(),[ao,lo]=reactExports.useState({offset:0,scale:1}),uo=useTabListContext_unstable(po=>po.getRegisteredTabs);if(reactExports.useEffect(()=>{io&&lo({offset:0,scale:1})},[io]),ro){const{previousSelectedValue:po,selectedValue:ho,registeredTabs:mo}=uo();if(po&&io!==po){const vo=getRegisteredTabRect(mo,po),bo=getRegisteredTabRect(mo,ho);if(bo&&vo){const xo=no?vo.y-bo.y:vo.x-bo.x,_o=no?vo.height/bo.height:vo.width/bo.width;lo({offset:xo,scale:_o}),so(po)}}}else io&&so(void 0);if(to)return eo;const co=ao.offset===0&&ao.scale===1;eo.root.className=mergeClasses(eo.root.className,ro&&oo.base,ro&&co&&oo.animated,ro&&(no?oo.vertical:oo.horizontal));const fo={[tabIndicatorCssVars_unstable.offsetVar]:`${ao.offset}px`,[tabIndicatorCssVars_unstable.scaleVar]:`${ao.scale}`};return eo.root.style={...fo,...eo.root.style},eo},tabClassNames={root:"fui-Tab",icon:"fui-Tab__icon",content:"fui-Tab__content"},reservedSpaceClassNames={content:"fui-Tab__content--reserved-space"},useRootStyles$1=__styles({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);}"]}),useFocusStyles=__styles({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;}"]}),usePendingIndicatorStyles=__styles({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);}"]}),useActiveIndicatorStyles=__styles({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)"}]]}),useIconStyles$1=__styles({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;}"]}),useContentStyles=__styles({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;}"]}),useTabStyles_unstable=eo=>{const to=useRootStyles$1(),ro=useFocusStyles(),no=usePendingIndicatorStyles(),oo=useActiveIndicatorStyles(),io=useIconStyles$1(),so=useContentStyles(),{appearance:ao,disabled:lo,selected:uo,size:co,vertical:fo}=eo;return eo.root.className=mergeClasses(tabClassNames.root,to.base,fo?to.vertical:to.horizontal,co==="small"&&(fo?to.smallVertical:to.smallHorizontal),co==="medium"&&(fo?to.mediumVertical:to.mediumHorizontal),co==="large"&&(fo?to.largeVertical:to.largeHorizontal),ro.base,!lo&&ao==="subtle"&&to.subtle,!lo&&ao==="transparent"&&to.transparent,!lo&&uo&&to.selected,lo&&to.disabled,no.base,co==="small"&&(fo?no.smallVertical:no.smallHorizontal),co==="medium"&&(fo?no.mediumVertical:no.mediumHorizontal),co==="large"&&(fo?no.largeVertical:no.largeHorizontal),lo&&no.disabled,uo&&oo.base,uo&&!lo&&oo.selected,uo&&co==="small"&&(fo?oo.smallVertical:oo.smallHorizontal),uo&&co==="medium"&&(fo?oo.mediumVertical:oo.mediumHorizontal),uo&&co==="large"&&(fo?oo.largeVertical:oo.largeHorizontal),uo&&lo&&oo.disabled,eo.root.className),eo.icon&&(eo.icon.className=mergeClasses(tabClassNames.icon,io.base,io[co],uo&&io.selected,eo.icon.className)),eo.contentReservedSpace&&(eo.contentReservedSpace.className=mergeClasses(reservedSpaceClassNames.content,so.base,co==="large"?so.largeSelected:so.selected,eo.icon?so.iconBefore:so.noIconBefore,so.placeholder,eo.content.className),eo.contentReservedSpaceClassName=eo.contentReservedSpace.className),eo.content.className=mergeClasses(tabClassNames.content,so.base,co==="large"&&so.large,uo&&(co==="large"?so.largeSelected:so.selected),eo.icon?so.iconBefore:so.noIconBefore,eo.content.className),useTabAnimatedIndicatorStyles_unstable(eo),eo},Tab$1=reactExports.forwardRef((eo,to)=>{const ro=useTab_unstable(eo,to);return useTabStyles_unstable(ro),useCustomStyleHook("useTabStyles_unstable")(ro),renderTab_unstable(ro)});Tab$1.displayName="Tab";const useTabList_unstable=(eo,to)=>{const{appearance:ro="transparent",reserveSelectedTabSpace:no=!0,disabled:oo=!1,onTabSelect:io,selectTabOnFocus:so=!1,size:ao="medium",vertical:lo=!1}=eo,uo=reactExports.useRef(null),co=useArrowNavigationGroup({circular:!0,axis:lo?"vertical":"horizontal",memorizeCurrent:!0}),[fo,po]=useControllableState({state:eo.selectedValue,defaultState:eo.defaultSelectedValue,initialState:void 0}),ho=reactExports.useRef(void 0),mo=reactExports.useRef(void 0);reactExports.useEffect(()=>{mo.current=ho.current,ho.current=fo},[fo]);const vo=useEventCallback$3((Eo,ko)=>{po(ko.value),io==null||io(Eo,ko)}),bo=reactExports.useRef({}),xo=useEventCallback$3(Eo=>{bo.current[JSON.stringify(Eo.value)]=Eo}),_o=useEventCallback$3(Eo=>{delete bo.current[JSON.stringify(Eo.value)]}),So=reactExports.useCallback(()=>({selectedValue:ho.current,previousSelectedValue:mo.current,registeredTabs:bo.current}),[]);return{components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(to,uo),role:"tablist","aria-orientation":lo?"vertical":"horizontal",...co,...eo}),{elementType:"div"}),appearance:ro,reserveSelectedTabSpace:no,disabled:oo,selectTabOnFocus:so,selectedValue:fo,size:ao,vertical:lo,onRegister:xo,onUnregister:_o,onSelect:vo,getRegisteredTabs:So}},renderTabList_unstable=(eo,to)=>jsx$1(eo.root,{children:jsx$1(TabListProvider,{value:to.tabList,children:eo.root.children})}),tabListClassNames={root:"fui-TabList"},useStyles$p=__styles({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;}"]}),useTabListStyles_unstable=eo=>{const{vertical:to}=eo,ro=useStyles$p();return eo.root.className=mergeClasses(tabListClassNames.root,ro.root,to?ro.vertical:ro.horizontal,eo.root.className),eo};function useTabListContextValues_unstable(eo){const{appearance:to,reserveSelectedTabSpace:ro,disabled:no,selectTabOnFocus:oo,selectedValue:io,onRegister:so,onUnregister:ao,onSelect:lo,getRegisteredTabs:uo,size:co,vertical:fo}=eo;return{tabList:{appearance:to,reserveSelectedTabSpace:ro,disabled:no,selectTabOnFocus:oo,selectedValue:io,onSelect:lo,onRegister:so,onUnregister:ao,getRegisteredTabs:uo,size:co,vertical:fo}}}const TabList=reactExports.forwardRef((eo,to)=>{const ro=useTabList_unstable(eo,to),no=useTabListContextValues_unstable(ro);return useTabListStyles_unstable(ro),useCustomStyleHook("useTabListStyles_unstable")(ro),renderTabList_unstable(ro,no)});TabList.displayName="TabList";const useText_unstable=(eo,to)=>{const{wrap:ro,truncate:no,block:oo,italic:io,underline:so,strikethrough:ao,size:lo,font:uo,weight:co,align:fo}=eo;return{align:fo??"start",block:oo??!1,font:uo??"base",italic:io??!1,size:lo??300,strikethrough:ao??!1,truncate:no??!1,underline:so??!1,weight:co??"regular",wrap:ro??!0,components:{root:"span"},root:always(getIntrinsicElementProps("span",{ref:to,...eo}),{elementType:"span"})}},renderText_unstable=eo=>jsx$1(eo.root,{}),textClassNames={root:"fui-Text"},useStyles$o=__styles({root:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",Bhrd7zp:"figsok6",fsow6f:"fpgzoln",mc9l5x:"f1w7gpdv",Huce71:"f6juhto",B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9",ygn44y:"f2jf649"},nowrap:{Huce71:"fz5stix",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw"},truncate:{ygn44y:"f1cmbuwj"},block:{mc9l5x:"ftgm304"},italic:{B80ckks:"f1j4dglz"},underline:{w71qe1:"f13mvf36"},strikethrough:{w71qe1:"fv5q2k7"},strikethroughUnderline:{w71qe1:"f1drk4o6"},base100:{Be2twd7:"f13mqy1h",Bg96gwp:"fcpl73t"},base200:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},base400:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k"},base500:{Be2twd7:"f1pp30po",Bg96gwp:"f106mvju"},base600:{Be2twd7:"f1x0m3f5",Bg96gwp:"fb86gi6"},hero700:{Be2twd7:"fojgt09",Bg96gwp:"fcen8rp"},hero800:{Be2twd7:"fccw675",Bg96gwp:"f1ebx5kk"},hero900:{Be2twd7:"f15afnhw",Bg96gwp:"fr3w3wp"},hero1000:{Be2twd7:"fpyltcb",Bg96gwp:"f1ivgwrt"},monospace:{Bahqtrf:"f1fedwem"},numeric:{Bahqtrf:"f1uq0ln5"},weightMedium:{Bhrd7zp:"fdj6btp"},weightSemibold:{Bhrd7zp:"fl43uef"},weightBold:{Bhrd7zp:"flh3ekv"},alignCenter:{fsow6f:"f17mccla"},alignEnd:{fsow6f:"f12ymhq5"},alignJustify:{fsow6f:"f1j59e10"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fpgzoln{text-align:start;}",".f1w7gpdv{display:inline;}",".f6juhto{white-space:normal;}",".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".f2jf649{text-overflow:clip;}",".fz5stix{white-space:nowrap;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1cmbuwj{text-overflow:ellipsis;}",".ftgm304{display:block;}",".f1j4dglz{font-style:italic;}",".f13mvf36{text-decoration-line:underline;}",".fv5q2k7{text-decoration-line:line-through;}",".f1drk4o6{text-decoration-line:line-through underline;}",".f13mqy1h{font-size:var(--fontSizeBase100);}",".fcpl73t{line-height:var(--lineHeightBase100);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}",".f1x0m3f5{font-size:var(--fontSizeBase600);}",".fb86gi6{line-height:var(--lineHeightBase600);}",".fojgt09{font-size:var(--fontSizeHero700);}",".fcen8rp{line-height:var(--lineHeightHero700);}",".fccw675{font-size:var(--fontSizeHero800);}",".f1ebx5kk{line-height:var(--lineHeightHero800);}",".f15afnhw{font-size:var(--fontSizeHero900);}",".fr3w3wp{line-height:var(--lineHeightHero900);}",".fpyltcb{font-size:var(--fontSizeHero1000);}",".f1ivgwrt{line-height:var(--lineHeightHero1000);}",".f1fedwem{font-family:var(--fontFamilyMonospace);}",".f1uq0ln5{font-family:var(--fontFamilyNumeric);}",".fdj6btp{font-weight:var(--fontWeightMedium);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".flh3ekv{font-weight:var(--fontWeightBold);}",".f17mccla{text-align:center;}",".f12ymhq5{text-align:end;}",".f1j59e10{text-align:justify;}"]}),useTextStyles_unstable=eo=>{const to=useStyles$o();return eo.root.className=mergeClasses(textClassNames.root,to.root,eo.wrap===!1&&to.nowrap,eo.truncate&&to.truncate,eo.block&&to.block,eo.italic&&to.italic,eo.underline&&to.underline,eo.strikethrough&&to.strikethrough,eo.underline&&eo.strikethrough&&to.strikethroughUnderline,eo.size===100&&to.base100,eo.size===200&&to.base200,eo.size===400&&to.base400,eo.size===500&&to.base500,eo.size===600&&to.base600,eo.size===700&&to.hero700,eo.size===800&&to.hero800,eo.size===900&&to.hero900,eo.size===1e3&&to.hero1000,eo.font==="monospace"&&to.monospace,eo.font==="numeric"&&to.numeric,eo.weight==="medium"&&to.weightMedium,eo.weight==="semibold"&&to.weightSemibold,eo.weight==="bold"&&to.weightBold,eo.align==="center"&&to.alignCenter,eo.align==="end"&&to.alignEnd,eo.align==="justify"&&to.alignJustify,eo.root.className),eo},Text$1=reactExports.forwardRef((eo,to)=>{const ro=useText_unstable(eo,to);return useTextStyles_unstable(ro),useCustomStyleHook("useTextStyles_unstable")(ro),renderText_unstable(ro)});Text$1.displayName="Text";const disableScrollElementProp="__fluentDisableScrollElement";function useDisableBodyScroll(){const{targetDocument:eo}=useFluent();return reactExports.useCallback(()=>{if(eo)return disableScroll(eo.body)},[eo])}function disableScroll(eo){var to;const{clientWidth:ro}=eo.ownerDocument.documentElement;var no;const oo=(no=(to=eo.ownerDocument.defaultView)===null||to===void 0?void 0:to.innerWidth)!==null&&no!==void 0?no:0;return assertIsDisableScrollElement(eo),eo[disableScrollElementProp].count===0&&(eo.style.overflow="hidden",eo.style.paddingRight=`${oo-ro}px`),eo[disableScrollElementProp].count++,()=>{eo[disableScrollElementProp].count--,eo[disableScrollElementProp].count===0&&(eo.style.overflow=eo[disableScrollElementProp].previousOverflowStyle,eo.style.paddingRight=eo[disableScrollElementProp].previousPaddingRightStyle)}}function assertIsDisableScrollElement(eo){var to,ro,no;(no=(to=eo)[ro=disableScrollElementProp])!==null&&no!==void 0||(to[ro]={count:0,previousOverflowStyle:eo.style.overflow,previousPaddingRightStyle:eo.style.paddingRight})}function useFocusFirstElement(eo,to){const{findFirstFocusable:ro}=useFocusFinders(),{targetDocument:no}=useFluent(),oo=reactExports.useRef(null);return reactExports.useEffect(()=>{if(!eo)return;const io=oo.current&&ro(oo.current);if(io)io.focus();else{var so;(so=oo.current)===null||so===void 0||so.focus()}},[ro,eo,to,no]),oo}const defaultContextValue$2={open:!1,inertTrapFocus:!1,modalType:"modal",isNestedDialog:!1,dialogRef:{current:null},requestOpenChange(){}},DialogContext=createContext(void 0),DialogProvider=DialogContext.Provider,useDialogContext_unstable=eo=>useContextSelector(DialogContext,(to=defaultContextValue$2)=>eo(to)),defaultContextValue$1=!1,DialogSurfaceContext=reactExports.createContext(void 0),DialogSurfaceProvider=DialogSurfaceContext.Provider,useDialogSurfaceContext_unstable=()=>{var eo;return(eo=reactExports.useContext(DialogSurfaceContext))!==null&&eo!==void 0?eo:defaultContextValue$1},useDialog_unstable=eo=>{const{children:to,modalType:ro="modal",onOpenChange:no,inertTrapFocus:oo=!1}=eo,[io,so]=childrenToTriggerAndContent(to),[ao,lo]=useControllableState({state:eo.open,defaultState:eo.defaultOpen,initialState:!1}),uo=useEventCallback$3(vo=>{no==null||no(vo.event,vo),vo.event.isDefaultPrevented()||lo(vo.open)}),co=useFocusFirstElement(ao,ro),fo=useDisableBodyScroll(),po=!!(ao&&ro!=="non-modal");useIsomorphicLayoutEffect$1(()=>{if(po)return fo()},[fo,po]);const{modalAttributes:ho,triggerAttributes:mo}=useModalAttributes({trapFocus:ro!=="non-modal",legacyTrapFocus:!oo});return{components:{backdrop:"div"},inertTrapFocus:oo,open:ao,modalType:ro,content:so,trigger:io,requestOpenChange:uo,dialogTitleId:useId$1("dialog-title-"),isNestedDialog:useHasParentContext(DialogContext),dialogRef:co,modalAttributes:ro!=="non-modal"?ho:void 0,triggerAttributes:mo}};function childrenToTriggerAndContent(eo){const to=reactExports.Children.toArray(eo);switch(to.length){case 2:return to;case 1:return[void 0,to[0]];default:return[void 0,void 0]}}function _extends$b(){return _extends$b=Object.assign?Object.assign.bind():function(eo){for(var to=1;to=0)&&(ro[oo]=eo[oo]);return ro}function _setPrototypeOf$2(eo,to){return _setPrototypeOf$2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(no,oo){return no.__proto__=oo,no},_setPrototypeOf$2(eo,to)}function _inheritsLoose$1(eo,to){eo.prototype=Object.create(to.prototype),eo.prototype.constructor=eo,_setPrototypeOf$2(eo,to)}var propTypes={exports:{}},ReactPropTypesSecret$1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ReactPropTypesSecret_1=ReactPropTypesSecret$1,ReactPropTypesSecret=ReactPropTypesSecret_1;function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction;var factoryWithThrowingShims=function(){function eo(no,oo,io,so,ao,lo){if(lo!==ReactPropTypesSecret){var uo=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 uo.name="Invariant Violation",uo}}eo.isRequired=eo;function to(){return eo}var ro={array:eo,bigint:eo,bool:eo,func:eo,number:eo,object:eo,string:eo,symbol:eo,any:eo,arrayOf:to,element:eo,elementType:eo,instanceOf:to,node:eo,objectOf:to,oneOf:to,oneOfType:to,shape:to,exact:to,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return ro.PropTypes=ro,ro};propTypes.exports=factoryWithThrowingShims();var propTypesExports=propTypes.exports;const PropTypes=getDefaultExportFromCjs(propTypesExports),config$3={disabled:!1},TransitionGroupContext=React.createContext(null);var forceReflow=function(to){return to.scrollTop},UNMOUNTED="unmounted",EXITED="exited",ENTERING="entering",ENTERED="entered",EXITING="exiting",Transition=function(eo){_inheritsLoose$1(to,eo);function to(no,oo){var io;io=eo.call(this,no,oo)||this;var so=oo,ao=so&&!so.isMounting?no.enter:no.appear,lo;return io.appearStatus=null,no.in?ao?(lo=EXITED,io.appearStatus=ENTERING):lo=ENTERED:no.unmountOnExit||no.mountOnEnter?lo=UNMOUNTED:lo=EXITED,io.state={status:lo},io.nextCallback=null,io}to.getDerivedStateFromProps=function(oo,io){var so=oo.in;return so&&io.status===UNMOUNTED?{status:EXITED}:null};var ro=to.prototype;return ro.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},ro.componentDidUpdate=function(oo){var io=null;if(oo!==this.props){var so=this.state.status;this.props.in?so!==ENTERING&&so!==ENTERED&&(io=ENTERING):(so===ENTERING||so===ENTERED)&&(io=EXITING)}this.updateStatus(!1,io)},ro.componentWillUnmount=function(){this.cancelNextCallback()},ro.getTimeouts=function(){var oo=this.props.timeout,io,so,ao;return io=so=ao=oo,oo!=null&&typeof oo!="number"&&(io=oo.exit,so=oo.enter,ao=oo.appear!==void 0?oo.appear:so),{exit:io,enter:so,appear:ao}},ro.updateStatus=function(oo,io){if(oo===void 0&&(oo=!1),io!==null)if(this.cancelNextCallback(),io===ENTERING){if(this.props.unmountOnExit||this.props.mountOnEnter){var so=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this);so&&forceReflow(so)}this.performEnter(oo)}else this.performExit();else this.props.unmountOnExit&&this.state.status===EXITED&&this.setState({status:UNMOUNTED})},ro.performEnter=function(oo){var io=this,so=this.props.enter,ao=this.context?this.context.isMounting:oo,lo=this.props.nodeRef?[ao]:[ReactDOM.findDOMNode(this),ao],uo=lo[0],co=lo[1],fo=this.getTimeouts(),po=ao?fo.appear:fo.enter;if(!oo&&!so||config$3.disabled){this.safeSetState({status:ENTERED},function(){io.props.onEntered(uo)});return}this.props.onEnter(uo,co),this.safeSetState({status:ENTERING},function(){io.props.onEntering(uo,co),io.onTransitionEnd(po,function(){io.safeSetState({status:ENTERED},function(){io.props.onEntered(uo,co)})})})},ro.performExit=function(){var oo=this,io=this.props.exit,so=this.getTimeouts(),ao=this.props.nodeRef?void 0:ReactDOM.findDOMNode(this);if(!io||config$3.disabled){this.safeSetState({status:EXITED},function(){oo.props.onExited(ao)});return}this.props.onExit(ao),this.safeSetState({status:EXITING},function(){oo.props.onExiting(ao),oo.onTransitionEnd(so.exit,function(){oo.safeSetState({status:EXITED},function(){oo.props.onExited(ao)})})})},ro.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},ro.safeSetState=function(oo,io){io=this.setNextCallback(io),this.setState(oo,io)},ro.setNextCallback=function(oo){var io=this,so=!0;return this.nextCallback=function(ao){so&&(so=!1,io.nextCallback=null,oo(ao))},this.nextCallback.cancel=function(){so=!1},this.nextCallback},ro.onTransitionEnd=function(oo,io){this.setNextCallback(io);var so=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this),ao=oo==null&&!this.props.addEndListener;if(!so||ao){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var lo=this.props.nodeRef?[this.nextCallback]:[so,this.nextCallback],uo=lo[0],co=lo[1];this.props.addEndListener(uo,co)}oo!=null&&setTimeout(this.nextCallback,oo)},ro.render=function(){var oo=this.state.status;if(oo===UNMOUNTED)return null;var io=this.props,so=io.children;io.in,io.mountOnEnter,io.unmountOnExit,io.appear,io.enter,io.exit,io.timeout,io.addEndListener,io.onEnter,io.onEntering,io.onEntered,io.onExit,io.onExiting,io.onExited,io.nodeRef;var ao=_objectWithoutPropertiesLoose$2(io,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return React.createElement(TransitionGroupContext.Provider,{value:null},typeof so=="function"?so(oo,ao):React.cloneElement(React.Children.only(so),ao))},to}(React.Component);Transition.contextType=TransitionGroupContext;Transition.propTypes={};function noop$5(){}Transition.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop$5,onEntering:noop$5,onEntered:noop$5,onExit:noop$5,onExiting:noop$5,onExited:noop$5};Transition.UNMOUNTED=UNMOUNTED;Transition.EXITED=EXITED;Transition.ENTERING=ENTERING;Transition.ENTERED=ENTERED;Transition.EXITING=EXITING;const Transition$1=Transition;function _assertThisInitialized$3(eo){if(eo===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return eo}const defaultContextValue=void 0,DialogTransitionContext=reactExports.createContext(void 0),DialogTransitionProvider=DialogTransitionContext.Provider,useDialogTransitionContext_unstable=()=>{var eo;return(eo=reactExports.useContext(DialogTransitionContext))!==null&&eo!==void 0?eo:defaultContextValue},renderDialog_unstable=(eo,to)=>{const{content:ro,trigger:no}=eo;return jsx$1(DialogProvider,{value:to.dialog,children:jsxs(DialogSurfaceProvider,{value:to.dialogSurface,children:[no,jsx$1(Transition$1,{mountOnEnter:!0,unmountOnExit:!0,in:eo.open,nodeRef:eo.dialogRef,appear:!0,timeout:250,children:oo=>jsx$1(DialogTransitionProvider,{value:oo,children:ro})})]})})};function useDialogContextValues_unstable(eo){const{modalType:to,open:ro,dialogRef:no,dialogTitleId:oo,isNestedDialog:io,inertTrapFocus:so,requestOpenChange:ao,modalAttributes:lo,triggerAttributes:uo}=eo;return{dialog:{open:ro,modalType:to,dialogRef:no,dialogTitleId:oo,isNestedDialog:io,inertTrapFocus:so,modalAttributes:lo,triggerAttributes:uo,requestOpenChange:ao},dialogSurface:!1}}const Dialog=reactExports.memo(eo=>{const to=useDialog_unstable(eo),ro=useDialogContextValues_unstable(to);return renderDialog_unstable(to,ro)});Dialog.displayName="Dialog";const useDialogTrigger_unstable=eo=>{const to=useDialogSurfaceContext_unstable(),{children:ro,disableButtonEnhancement:no=!1,action:oo=to?"close":"open"}=eo,io=getTriggerChild(ro),so=useDialogContext_unstable(fo=>fo.requestOpenChange),{triggerAttributes:ao}=useModalAttributes(),lo=useEventCallback$3(fo=>{var po,ho;io==null||(po=(ho=io.props).onClick)===null||po===void 0||po.call(ho,fo),fo.isDefaultPrevented()||so({event:fo,type:"triggerClick",open:oo==="open"})}),uo={...io==null?void 0:io.props,ref:io==null?void 0:io.ref,onClick:lo,...ao},co=useARIAButtonProps((io==null?void 0:io.type)==="button"||(io==null?void 0:io.type)==="a"?io.type:"div",{...uo,type:"button"});return{children:applyTriggerPropsToChildren(ro,no?uo:co)}},renderDialogTrigger_unstable=eo=>eo.children,DialogTrigger=eo=>{const to=useDialogTrigger_unstable(eo);return renderDialogTrigger_unstable(to)};DialogTrigger.displayName="DialogTrigger";DialogTrigger.isFluentTriggerComponent=!0;const useDialogSurface_unstable=(eo,to)=>{const ro=useDialogContext_unstable(po=>po.modalType),no=useDialogContext_unstable(po=>po.isNestedDialog),oo=useDialogTransitionContext_unstable(),io=useDialogContext_unstable(po=>po.modalAttributes),so=useDialogContext_unstable(po=>po.dialogRef),ao=useDialogContext_unstable(po=>po.requestOpenChange),lo=useDialogContext_unstable(po=>po.dialogTitleId),uo=useEventCallback$3(po=>{if(isResolvedShorthand(eo.backdrop)){var ho,mo;(ho=(mo=eo.backdrop).onClick)===null||ho===void 0||ho.call(mo,po)}ro==="modal"&&!po.isDefaultPrevented()&&ao({event:po,open:!1,type:"backdropClick"})}),co=useEventCallback$3(po=>{var ho;(ho=eo.onKeyDown)===null||ho===void 0||ho.call(eo,po),po.key===Escape&&!po.isDefaultPrevented()&&(ao({event:po,open:!1,type:"escapeKeyDown"}),po.preventDefault())}),fo=optional(eo.backdrop,{renderByDefault:ro!=="non-modal",defaultProps:{"aria-hidden":"true"},elementType:"div"});return fo&&(fo.onClick=uo),{components:{backdrop:"div",root:"div"},backdrop:fo,isNestedDialog:no,transitionStatus:oo,mountNode:eo.mountNode,root:always(getIntrinsicElementProps("div",{tabIndex:-1,"aria-modal":ro!=="non-modal",role:ro==="alert"?"alertdialog":"dialog","aria-labelledby":eo["aria-label"]?void 0:lo,...eo,...io,onKeyDown:co,ref:useMergedRefs$1(to,so)}),{elementType:"div"})}},renderDialogSurface_unstable=(eo,to)=>jsxs(Portal$1,{mountNode:eo.mountNode,children:[eo.backdrop&&jsx$1(eo.backdrop,{}),jsx$1(DialogSurfaceProvider,{value:to.dialogSurface,children:jsx$1(eo.root,{})})]}),dialogSurfaceClassNames={root:"fui-DialogSurface",backdrop:"fui-DialogSurface__backdrop"},useRootBaseStyle=__resetStyles("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;}}"]}),useRootStyles=__styles({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);}"]}),useBackdropBaseStyle=__resetStyles("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;}"]),useBackdropStyles$1=__styles({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);}"]}),useDialogSurfaceStyles_unstable=eo=>{const{isNestedDialog:to,root:ro,backdrop:no,transitionStatus:oo}=eo,io=useRootBaseStyle(),so=useRootStyles(),ao=useBackdropBaseStyle(),lo=useBackdropStyles$1();return ro.className=mergeClasses(dialogSurfaceClassNames.root,io,oo&&so.animated,oo&&so[oo],ro.className),no&&(no.className=mergeClasses(dialogSurfaceClassNames.backdrop,ao,to&&lo.nestedDialogBackdrop,oo&&lo[oo],no.className)),eo};function useDialogSurfaceContextValues_unstable(eo){return{dialogSurface:!0}}const DialogSurface=reactExports.forwardRef((eo,to)=>{const ro=useDialogSurface_unstable(eo,to),no=useDialogSurfaceContextValues_unstable();return useDialogSurfaceStyles_unstable(ro),useCustomStyleHook("useDialogSurfaceStyles_unstable")(ro),renderDialogSurface_unstable(ro,no)});DialogSurface.displayName="DialogSurface";const useCardSelectable=(eo,{referenceLabel:to,referenceId:ro},no)=>{const{checkbox:oo={},onSelectionChange:io,floatingAction:so,onClick:ao,onKeyDown:lo}=eo,{findAllFocusable:uo}=useFocusFinders(),co=reactExports.useRef(null),[fo,po]=useControllableState({state:eo.selected,defaultState:eo.defaultSelected,initialState:!1}),ho=[eo.selected,eo.defaultSelected,io].some(wo=>typeof wo<"u"),[mo,vo]=reactExports.useState(!1),bo=reactExports.useCallback(wo=>{if(!no.current)return!1;const Co=uo(no.current),Ro=wo.target,Ao=Co.some($o=>$o.contains(Ro)),Io=(co==null?void 0:co.current)===Ro;return Ao&&!Io},[no,uo]),xo=reactExports.useCallback(wo=>{if(bo(wo))return;const Co=!fo;po(Co),io&&io(wo,{selected:Co})},[io,fo,po,bo]),_o=reactExports.useCallback(wo=>{[Enter].includes(wo.key)&&(wo.preventDefault(),xo(wo))},[xo]),So=reactExports.useMemo(()=>{if(!ho||so)return;const wo={};return ro?wo["aria-labelledby"]=ro:to&&(wo["aria-label"]=to),optional(oo,{defaultProps:{ref:co,type:"checkbox",checked:fo,onChange:Co=>xo(Co),onFocus:()=>vo(!0),onBlur:()=>vo(!1),...wo},elementType:"input"})},[oo,so,fo,ho,xo,ro,to]),Eo=reactExports.useMemo(()=>{if(so)return optional(so,{defaultProps:{ref:co},elementType:"div"})},[so]),ko=reactExports.useMemo(()=>ho?{onClick:mergeCallbacks(ao,xo),onKeyDown:mergeCallbacks(lo,_o)}:null,[ho,xo,ao,lo,_o]);return{selected:fo,selectable:ho,selectFocused:mo,selectableCardProps:ko,checkboxSlot:So,floatingActionSlot:Eo}},cardContext=reactExports.createContext(void 0),cardContextDefaultValue={selectableA11yProps:{referenceId:void 0,setReferenceId(){},referenceLabel:void 0,setReferenceLabel(){}}},CardProvider=cardContext.Provider,useCardContext_unstable=()=>{var eo;return(eo=reactExports.useContext(cardContext))!==null&&eo!==void 0?eo:cardContextDefaultValue},focusMap={off:void 0,"no-tab":"limited-trap-focus","tab-exit":"limited","tab-only":"unlimited"},useCardInteractive=({focusMode:eo="off",...to})=>{const ro=["onClick","onDoubleClick","onMouseUp","onMouseDown","onPointerUp","onPointerDown","onTouchStart","onTouchEnd","onDragStart","onDragEnd"].some(io=>to[io]),oo={...useFocusableGroup({tabBehavior:focusMap[ro?"no-tab":eo]}),tabIndex:0};return{interactive:ro,focusAttributes:!ro&&eo==="off"?null:oo}},useCard_unstable=(eo,to)=>{const{appearance:ro="filled",orientation:no="vertical",size:oo="medium"}=eo,[io,so]=reactExports.useState(cardContextDefaultValue.selectableA11yProps.referenceId),[ao,lo]=reactExports.useState(cardContextDefaultValue.selectableA11yProps.referenceId),uo=useFocusWithin(),{selectable:co,selected:fo,selectableCardProps:po,selectFocused:ho,checkboxSlot:mo,floatingActionSlot:vo}=useCardSelectable(eo,{referenceId:io,referenceLabel:ao},uo),bo=useMergedRefs$1(uo,to),{interactive:xo,focusAttributes:_o}=useCardInteractive(eo);return{appearance:ro,orientation:no,size:oo,interactive:xo,selectable:co,selectFocused:ho,selected:fo,selectableA11yProps:{setReferenceId:so,referenceId:io,referenceLabel:ao,setReferenceLabel:lo},components:{root:"div",floatingAction:"div",checkbox:"input"},root:always(getIntrinsicElementProps("div",{ref:bo,role:"group",..._o,...eo,...po}),{elementType:"div"}),floatingAction:vo,checkbox:mo}},renderCard_unstable=(eo,to)=>jsx$1(eo.root,{children:jsxs(CardProvider,{value:to,children:[eo.checkbox?jsx$1(eo.checkbox,{}):null,eo.floatingAction?jsx$1(eo.floatingAction,{}):null,eo.root.children]})}),cardHeaderClassNames={root:"fui-CardHeader",image:"fui-CardHeader__image",header:"fui-CardHeader__header",description:"fui-CardHeader__description",action:"fui-CardHeader__action"},useStyles$n=__styles({root:{Bkc6ea2:"fkufhic",mc9l5x:"f13qh94s",t4k1zu:"f8a668j",Bt984gj:"f122n59"},image:{mc9l5x:"ftuwxu6",t21cq0:["fql5097","f6yss9k"],Br312pm:"fwpfdsa",Ijaq50:"fldnz9j"},header:{Br312pm:"fd46tj4",Ijaq50:"f16hsg94",mc9l5x:"f22iagw"},description:{Br312pm:"fd46tj4",Ijaq50:"faunodf",mc9l5x:"f22iagw"},action:{Frg6f3:["f6yss9k","fql5097"],Br312pm:"fis13di",Ijaq50:"fldnz9j"}},{d:[".fkufhic{--fui-CardHeader--gap:12px;}",".f13qh94s{display:grid;}",".f8a668j{grid-auto-columns:min-content 1fr min-content;}",".f122n59{align-items:center;}",".ftuwxu6{display:inline-flex;}",".fql5097{margin-right:var(--fui-CardHeader--gap);}",".f6yss9k{margin-left:var(--fui-CardHeader--gap);}",".fwpfdsa{grid-column-start:1;}",".fldnz9j{grid-row-start:span 2;}",".fd46tj4{grid-column-start:2;}",".f16hsg94{grid-row-start:1;}",".f22iagw{display:flex;}",".faunodf{grid-row-start:2;}",".fis13di{grid-column-start:3;}"]}),useCardHeaderStyles_unstable=eo=>{const to=useStyles$n();return eo.root.className=mergeClasses(cardHeaderClassNames.root,to.root,eo.root.className),eo.image&&(eo.image.className=mergeClasses(cardHeaderClassNames.image,to.image,eo.image.className)),eo.header&&(eo.header.className=mergeClasses(cardHeaderClassNames.header,to.header,eo.header.className)),eo.description&&(eo.description.className=mergeClasses(cardHeaderClassNames.description,to.description,eo.description.className)),eo.action&&(eo.action.className=mergeClasses(cardHeaderClassNames.action,to.action,eo.action.className)),eo},cardClassNames={root:"fui-Card",floatingAction:"fui-Card__floatingAction",checkbox:"fui-Card__checkbox"},useStyles$m=__styles({root:{B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",Bbmb7ep:["fifeqxg","f899z7z"],Beyfa6y:["f899z7z","fifeqxg"],B7oj6ja:["f4h3tyx","f18ur2pz"],Btl43ni:["f18ur2pz","f4h3tyx"],z8tnut:"f1lplnzb",z189sj:["f10m5gbb","f1k04kkk"],Byoj8tv:"fhftqfp",uwmqm3:["f1k04kkk","f10m5gbb"],i8kkvl:"fxsr4vj",Belr9w4:"fcvsdzp",mc9l5x:"f22iagw",qhf8xq:"f10pi13n",B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",E3zdtr:"f1mdlcz9",bn5sak:"frwkxtg",Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"],By385i5:"fo72kxq",Bsft5z2:"f13zj6fq",B80jsxd:"f1nwj1ja",Bm2nyyq:"f8rth92",Barhvk9:["flthirb","ftkbnf5"],Bw17bha:"f1lh990p",vfts7:["ftkbnf5","flthirb"],xrcqlc:"f6czdpx",Ihftqj:["f13hvwk3","f1en4csx"],Bcgy8vk:"f1i1u9k0",Bhxzhr1:["f1en4csx","f13hvwk3"],B3778ie:["f1qnomq5","f2fl922"],d9w3h3:["f2fl922","f1qnomq5"],Bl18szs:["f1anhtl","f1n2zcl3"],B4j8arr:["f1n2zcl3","f1anhtl"],B2jhnfs:"f16v3d5c",wiictr:"f1su8t2g"},focused:{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:"f99gebs",clg4pj:["f13b0oaq","f8t2bz6"],hgwjuy:"f1jvq617",Bonggc9:["f8t2bz6","f13b0oaq"],B1tsrr9:["f11unbnk","fbd201q"],Dah5zi:["fbd201q","f11unbnk"],Bkh64rk:["f12nqxso","f1uguk4w"],qqdqy8:["f1uguk4w","f12nqxso"],B6dhp37:"f1dvezut",i03rao:["fd0oaoj","f1cwg4i8"],Boxcth7:"fjvm52t",Bsom6fd:["f1cwg4i8","fd0oaoj"],J0r882:"f15fr7a0",Bule8hv:["fwsq40z","fy0y4wt"],Bjwuhne:"f34ld9f",Ghsupd:["fy0y4wt","fwsq40z"]},selectableFocused:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",Bssx7fj:"f1b1k54r",uh7if5:["f4ne723","fqqcjud"],clntm0:"fh7aioi",Dlk2r6:["fqqcjud","f4ne723"],Bm3wd5j:"f1k55ka9",Bbrhkcr:["fgclinu","f16pcs8n"],f1oku:"fycbxed",aywvf2:["f16pcs8n","fgclinu"],B2j2mmj:"ffht0p2",wigs8:"f1p0ul1q",pbfy6t:"f1c901ms",B0v4ure:"f1alokd7",ghq09:"f78i1la",B24cy0v:["f1kvsw7t","f1bw8brt"],Bwckmig:"f8k7e5g",Bvwlmkc:["f1bw8brt","f1kvsw7t"],Bbgo44z:"f125hn41",Bil7v7r:["fgxkx34","f1v56tyl"],skfxo0:"fdxas6f",jo1ztg:["f1v56tyl","fgxkx34"],Ba3ybja:["fxwickw","f1ia5cve"],az1dzo:["f1ia5cve","fxwickw"],vppk2z:["f194aguw","fqicc6c"],B6352mv:["fqicc6c","f194aguw"],nr063g:"fq4eyks",Blmvk6g:["f1ya6x16","ftuszwa"],Bsiemmq:"f1e2iu44",B98u21t:["ftuszwa","f1ya6x16"],B2pnrqr:"f1amxum7",B29w5g4:["f1cec8w7","f554mv0"],Bhhzhcn:"f1sj6kbr",Bec0n69:["f554mv0","f1cec8w7"]},orientationHorizontal:{Beiy3e4:"f1063pyq",Bt984gj:"f122n59",Bnoktp0:"fpfyeui",Idhjb2:"fwi74qw",ihgzqh:["ffcmwrh","f6ppoih"],Bgp6ld0:["f1dc9p14","fd933vt"],Bbucpmy:"f18esqgw"},orientationVertical:{Beiy3e4:"f1vx9l62",Bt4kzjz:["fobhde4","fx5r7kn"],B1ou843:["fx5r7kn","fobhde4"],y1433z:"f19chtn8",B7egwnw:"fuvs6re",B49b4xf:"fy4glsf"},sizeSmall:{B7balbw:"f1pi9uxy",B1h88n7:"f1h1zgly"},sizeMedium:{B7balbw:"frsmuga",B1h88n7:"fuldkky"},sizeLarge:{B7balbw:"f1qua4xo",B1h88n7:"fimkt6v"},filled:{De3pzq:"fxugw4r",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},filledInteractive:{Bceei9c:"f1k6fduh",De3pzq:"fxugw4r",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Jwef8y:"f1knas48",Bvxd0ez:"f1m145df",ecr2s2:"fb40n2d"},filledInteractiveSelected:{De3pzq:"f1nfm20t",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"f1kz6goq"},filledAlternative:{De3pzq:"f1dmdbja",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},filledAlternativeInteractive:{Bceei9c:"f1k6fduh",De3pzq:"f1dmdbja",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Jwef8y:"f1uvynv3",Bvxd0ez:"f1m145df",ecr2s2:"f1yhgkbh"},filledAlternativeInteractiveSelected:{De3pzq:"fjxa0vh",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"fehi0vp"},outline:{De3pzq:"f1c21dwh",E5pizo:"f1couhl3",B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"]},outlineInteractive:{Bceei9c:"f1k6fduh",De3pzq:"f1c21dwh",E5pizo:"f1couhl3",B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"],Jwef8y:"fjxutwb",Be0v6ae:"f1llr77y",B5kxglz:["fzk0khw","fjj8tog"],B3pwyw6:"fb1u8ub",Bymgtzf:["fjj8tog","fzk0khw"],ecr2s2:"fophhak",dmfk:"f1uohb70",B4ofi8:["f1jm7v1n","f1bus3rq"],jgq6uv:"f1fbu7rr",Baxewws:["f1bus3rq","f1jm7v1n"]},outlineInteractiveSelected:{De3pzq:"f1q9pm1r",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"fg59vm4"},subtle:{De3pzq:"fhovq9v",E5pizo:"f1couhl3",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},subtleInteractive:{Bceei9c:"f1k6fduh",De3pzq:"fhovq9v",E5pizo:"f1couhl3",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd"},subtleInteractiveSelected:{De3pzq:"fq5gl1p",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"f1uqaxdt"},highContrastSelected:{ycbfsm:"fkc42ay",Bsw6fvg:"f1rirnrt",Bbusuzp:"f1lkg8j3",xgfqdd:"f1nkj0oa",Bmmdzwq:"fey3rwa",zkpvhj:["f5jhx11","fff9uym"],B20bydw:"fm7n0jy",Bwwwggl:["fff9uym","f5jhx11"]},highContrastInteractive:{h1vhog:"fpfvv3l",kslmdy:"f1oamsm6",Baaf6ca:"f1il21bs",x9zz3d:"fnn5dk0",Bmmdzwq:"fey3rwa",zkpvhj:["f5jhx11","fff9uym"],B20bydw:"fm7n0jy",Bwwwggl:["fff9uym","f5jhx11"]},select:{qhf8xq:"f1euv43f",Bhzewxz:"fqclxi7",j35jbq:["fiv86kb","f36uhnt"],Bj3rh1h:"f19g0ac"},hiddenCheckbox:{B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",a9b677:"frkrog8",Bqenvij:"f1mpe4l3",qhf8xq:"f1euv43f",Bh84pgu:"fmf1zke",Bgl5zvf:"f1wch0ki",Huce71:"fz5stix"}},{d:[".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".fifeqxg{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f899z7z{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f4h3tyx{border-top-right-radius:var(--fui-Card--border-radius);}",".f18ur2pz{border-top-left-radius:var(--fui-Card--border-radius);}",".f1lplnzb{padding-top:var(--fui-Card--size);}",".f10m5gbb{padding-right:var(--fui-Card--size);}",".f1k04kkk{padding-left:var(--fui-Card--size);}",".fhftqfp{padding-bottom:var(--fui-Card--size);}",".fxsr4vj{column-gap:var(--fui-Card--size);}",".fcvsdzp{row-gap:var(--fui-Card--size);}",".f22iagw{display:flex;}",".f10pi13n{position:relative;}",".f1ewtqcl{box-sizing:border-box;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1mdlcz9::after{position:absolute;}",".frwkxtg::after{top:0;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".fo72kxq::after{bottom:0;}",'.f13zj6fq::after{content:"";}',".f1nwj1ja::after{pointer-events:none;}",".f8rth92::after{border-top-style:solid;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f1lh990p::after{border-bottom-style:solid;}",".f6czdpx::after{border-top-width:var(--strokeWidthThin);}",".f13hvwk3::after{border-right-width:var(--strokeWidthThin);}",".f1en4csx::after{border-left-width:var(--strokeWidthThin);}",".f1i1u9k0::after{border-bottom-width:var(--strokeWidthThin);}",".f1qnomq5::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f2fl922::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f1anhtl::after{border-top-right-radius:var(--fui-Card--border-radius);}",".f1n2zcl3::after{border-top-left-radius:var(--fui-Card--border-radius);}",".f16v3d5c>.fui-CardHeader,.f16v3d5c>.fui-CardFooter{flex-shrink:0;}",".f1su8t2g>:not(.fui-CardPreview):not(.fui-CardHeader):not(.fui-CardFooter){flex-grow:1;}",".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;}",".f99gebs[data-fui-focus-visible]::after{border-top-width:var(--strokeWidthThick);}",".f13b0oaq[data-fui-focus-visible]::after{border-right-width:var(--strokeWidthThick);}",".f8t2bz6[data-fui-focus-visible]::after{border-left-width:var(--strokeWidthThick);}",".f1jvq617[data-fui-focus-visible]::after{border-bottom-width:var(--strokeWidthThick);}",".f11unbnk[data-fui-focus-visible]::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".fbd201q[data-fui-focus-visible]::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f12nqxso[data-fui-focus-visible]::after{border-top-right-radius:var(--fui-Card--border-radius);}",".f1uguk4w[data-fui-focus-visible]::after{border-top-left-radius:var(--fui-Card--border-radius);}",".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);}",".f15fr7a0[data-fui-focus-visible]::after{top:calc(0px - var(--strokeWidthThick) - -2px);}",".fwsq40z[data-fui-focus-visible]::after{right:calc(0px - var(--strokeWidthThick) - -2px);}",".fy0y4wt[data-fui-focus-visible]::after{left:calc(0px - var(--strokeWidthThick) - -2px);}",".f34ld9f[data-fui-focus-visible]::after{bottom:calc(0px - var(--strokeWidthThick) - -2px);}",".f1b1k54r[data-fui-focus-within]:focus-within{border-top-color:transparent;}",".f4ne723[data-fui-focus-within]:focus-within{border-right-color:transparent;}",".fqqcjud[data-fui-focus-within]:focus-within{border-left-color:transparent;}",".fh7aioi[data-fui-focus-within]:focus-within{border-bottom-color:transparent;}",'.ffht0p2[data-fui-focus-within]:focus-within::after{content:"";}',".f1p0ul1q[data-fui-focus-within]:focus-within::after{position:absolute;}",".f1c901ms[data-fui-focus-within]:focus-within::after{pointer-events:none;}",".f1alokd7[data-fui-focus-within]:focus-within::after{z-index:1;}",".f78i1la[data-fui-focus-within]:focus-within::after{border-top-style:solid;}",".f1kvsw7t[data-fui-focus-within]:focus-within::after{border-right-style:solid;}",".f1bw8brt[data-fui-focus-within]:focus-within::after{border-left-style:solid;}",".f8k7e5g[data-fui-focus-within]:focus-within::after{border-bottom-style:solid;}",".f125hn41[data-fui-focus-within]:focus-within::after{border-top-width:var(--strokeWidthThick);}",".fgxkx34[data-fui-focus-within]:focus-within::after{border-right-width:var(--strokeWidthThick);}",".f1v56tyl[data-fui-focus-within]:focus-within::after{border-left-width:var(--strokeWidthThick);}",".fdxas6f[data-fui-focus-within]:focus-within::after{border-bottom-width:var(--strokeWidthThick);}",".fxwickw[data-fui-focus-within]:focus-within::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f1ia5cve[data-fui-focus-within]:focus-within::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f194aguw[data-fui-focus-within]:focus-within::after{border-top-right-radius:var(--fui-Card--border-radius);}",".fqicc6c[data-fui-focus-within]:focus-within::after{border-top-left-radius:var(--fui-Card--border-radius);}",".fq4eyks[data-fui-focus-within]:focus-within::after{border-top-color:var(--colorStrokeFocus2);}",".f1ya6x16[data-fui-focus-within]:focus-within::after{border-right-color:var(--colorStrokeFocus2);}",".ftuszwa[data-fui-focus-within]:focus-within::after{border-left-color:var(--colorStrokeFocus2);}",".f1e2iu44[data-fui-focus-within]:focus-within::after{border-bottom-color:var(--colorStrokeFocus2);}",".f1amxum7[data-fui-focus-within]:focus-within::after{top:calc(0px - var(--strokeWidthThick) - -2px);}",".f1cec8w7[data-fui-focus-within]:focus-within::after{right:calc(0px - var(--strokeWidthThick) - -2px);}",".f554mv0[data-fui-focus-within]:focus-within::after{left:calc(0px - var(--strokeWidthThick) - -2px);}",".f1sj6kbr[data-fui-focus-within]:focus-within::after{bottom:calc(0px - var(--strokeWidthThick) - -2px);}",".f1063pyq{flex-direction:row;}",".f122n59{align-items:center;}",".fpfyeui>.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}",".fwi74qw>.fui-CardPreview{margin-bottom:calc(var(--fui-Card--size) * -1);}",'.ffcmwrh>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-left:calc(var(--fui-Card--size) * -1);}','.f6ppoih>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-right:calc(var(--fui-Card--size) * -1);}','.f1dc9p14>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-right:calc(var(--fui-Card--size) * -1);}','.fd933vt>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-left:calc(var(--fui-Card--size) * -1);}',".f18esqgw>.fui-CardHeader:last-of-type,.f18esqgw>.fui-CardFooter:last-of-type{flex-grow:1;}",".f1vx9l62{flex-direction:column;}",".fobhde4>.fui-CardPreview{margin-left:calc(var(--fui-Card--size) * -1);}",".fx5r7kn>.fui-CardPreview{margin-right:calc(var(--fui-Card--size) * -1);}",'.f19chtn8>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-top:calc(var(--fui-Card--size) * -1);}',".fuvs6re>.fui-Card__floatingAction+.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}",'.fy4glsf>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-bottom:calc(var(--fui-Card--size) * -1);}',".f1pi9uxy{--fui-Card--size:8px;}",".f1h1zgly{--fui-Card--border-radius:var(--borderRadiusSmall);}",".frsmuga{--fui-Card--size:12px;}",".fuldkky{--fui-Card--border-radius:var(--borderRadiusMedium);}",".f1qua4xo{--fui-Card--size:16px;}",".fimkt6v{--fui-Card--border-radius:var(--borderRadiusLarge);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1whvlc6{box-shadow:var(--shadow4);}",".f16gxe2i::after{border-top-color:var(--colorTransparentStroke);}",".fpgykix::after{border-right-color:var(--colorTransparentStroke);}",".fzybk4o::after{border-left-color:var(--colorTransparentStroke);}",".f1osi826::after{border-bottom-color:var(--colorTransparentStroke);}",".f1k6fduh{cursor:pointer;}",".f1nfm20t{background-color:var(--colorNeutralBackground1Selected);}",".f16eln5f::after{border-top-color:var(--colorNeutralStroke1Selected);}",".fa2okxs::after{border-right-color:var(--colorNeutralStroke1Selected);}",".fg4zq3l::after{border-left-color:var(--colorNeutralStroke1Selected);}",".ff6932p::after{border-bottom-color:var(--colorNeutralStroke1Selected);}",".f1dmdbja{background-color:var(--colorNeutralBackground2);}",".fjxa0vh{background-color:var(--colorNeutralBackground2Selected);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1couhl3{box-shadow:none;}",".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);}",".f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1euv43f{position:absolute;}",".fqclxi7{top:4px;}",".fiv86kb{right:4px;}",".f36uhnt{left:4px;}",".f19g0ac{z-index:1;}",".frkrog8{width:1px;}",".f1mpe4l3{height:1px;}",".fmf1zke{clip:rect(0 0 0 0);}",".f1wch0ki{clip-path:inset(50%);}",".fz5stix{white-space:nowrap;}"],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)"}],["@media (forced-colors: active){.f1k55ka9[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16pcs8n[data-fui-focus-within]:focus-within::after{border-left-color:Highlight;}.fgclinu[data-fui-focus-within]:focus-within::after{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fycbxed[data-fui-focus-within]:focus-within::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1nkj0oa .fui-CardPreview,.f1nkj0oa .fui-CardFooter{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fey3rwa::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f5jhx11::after{border-right-color:Highlight;}.fff9uym::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fm7n0jy::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fpfvv3l:hover,.fpfvv3l :active{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1oamsm6:hover,.f1oamsm6 :active{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1il21bs:hover,.f1il21bs :active{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnn5dk0:hover .fui-CardPreview,.fnn5dk0 :active .fui-CardPreview,.fnn5dk0:hover .fui-CardFooter,.fnn5dk0 :active .fui-CardFooter{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}]],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".f1m145df:hover{box-shadow:var(--shadow8);}",".f1kz6goq:hover{background-color:var(--colorNeutralBackground1Selected);}",".f1uvynv3:hover{background-color:var(--colorNeutralBackground2Hover);}",".fehi0vp:hover{background-color:var(--colorNeutralBackground2Selected);}",".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1llr77y:hover::after{border-top-color:var(--colorNeutralStroke1Hover);}",".fzk0khw:hover::after{border-right-color:var(--colorNeutralStroke1Hover);}",".fjj8tog:hover::after{border-left-color:var(--colorNeutralStroke1Hover);}",".fb1u8ub:hover::after{border-bottom-color:var(--colorNeutralStroke1Hover);}",".fg59vm4:hover{background-color:var(--colorTransparentBackgroundSelected);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".f1uqaxdt:hover{background-color:var(--colorSubtleBackgroundSelected);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".f1yhgkbh:active{background-color:var(--colorNeutralBackground2Pressed);}",".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}",".f1uohb70:active::after{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1jm7v1n:active::after{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1bus3rq:active::after{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1fbu7rr:active::after{border-bottom-color:var(--colorNeutralStroke1Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}"]}),useCardStyles_unstable=eo=>{const to=useStyles$m(),ro={horizontal:to.orientationHorizontal,vertical:to.orientationVertical},no={small:to.sizeSmall,medium:to.sizeMedium,large:to.sizeLarge},oo={filled:to.filled,"filled-alternative":to.filledAlternative,outline:to.outline,subtle:to.subtle},io={filled:to.filledInteractiveSelected,"filled-alternative":to.filledAlternativeInteractiveSelected,outline:to.outlineInteractiveSelected,subtle:to.subtleInteractiveSelected},so={filled:to.filledInteractive,"filled-alternative":to.filledAlternativeInteractive,outline:to.outlineInteractive,subtle:to.subtleInteractive},ao=eo.interactive||eo.selectable,lo=reactExports.useMemo(()=>eo.selectable?eo.selectFocused?to.selectableFocused:"":to.focused,[eo.selectFocused,eo.selectable,to.focused,to.selectableFocused]);return eo.root.className=mergeClasses(cardClassNames.root,to.root,ro[eo.orientation],no[eo.size],oo[eo.appearance],ao&&so[eo.appearance],eo.selected&&io[eo.appearance],lo,ao&&to.highContrastInteractive,eo.selected&&to.highContrastSelected,eo.root.className),eo.floatingAction&&(eo.floatingAction.className=mergeClasses(cardClassNames.floatingAction,to.select,eo.floatingAction.className)),eo.checkbox&&(eo.checkbox.className=mergeClasses(cardClassNames.checkbox,to.hiddenCheckbox,eo.checkbox.className)),eo};function useCardContextValue({selectableA11yProps:eo}){return{selectableA11yProps:eo}}const Card=reactExports.forwardRef((eo,to)=>{const ro=useCard_unstable(eo,to),no=useCardContextValue(ro);return useCardStyles_unstable(ro),renderCard_unstable(ro,no)});Card.displayName="Card";function getChildWithId(eo){function to(ro){return reactExports.isValidElement(ro)&&!!ro.props.id}return reactExports.Children.toArray(eo).find(to)}function getReferenceId(eo,to,ro){return eo||(to!=null&&to.props.id?to.props.id:ro)}const useCardHeader_unstable=(eo,to)=>{const{image:ro,header:no,description:oo,action:io}=eo,{selectableA11yProps:{referenceId:so,setReferenceId:ao}}=useCardContext_unstable(),lo=reactExports.useRef(null),uo=reactExports.useRef(!1),co=useId$1(cardHeaderClassNames.header,so),fo=optional(no,{renderByDefault:!0,defaultProps:{ref:lo,id:uo.current?void 0:so},elementType:"div"});return reactExports.useEffect(()=>{var po;const ho=uo.current||(po=lo.current)===null||po===void 0?void 0:po.id,mo=getChildWithId(fo==null?void 0:fo.children);uo.current=!!mo,ao(getReferenceId(ho,mo,co))},[co,no,fo,ao]),{components:{root:"div",image:"div",header:"div",description:"div",action:"div"},root:always(getIntrinsicElementProps("div",{ref:to,...eo}),{elementType:"div"}),image:optional(ro,{elementType:"div"}),header:fo,description:optional(oo,{elementType:"div"}),action:optional(io,{elementType:"div"})}},renderCardHeader_unstable=eo=>jsxs(eo.root,{children:[eo.image&&jsx$1(eo.image,{}),jsx$1(eo.header,{}),eo.description&&jsx$1(eo.description,{}),eo.action&&jsx$1(eo.action,{})]}),CardHeader=reactExports.forwardRef((eo,to)=>{const ro=useCardHeader_unstable(eo,to);return useCardHeaderStyles_unstable(ro),renderCardHeader_unstable(ro)});CardHeader.displayName="CardHeader";function getIntentIcon(eo){switch(eo){case"info":return reactExports.createElement(InfoFilled,null);case"warning":return reactExports.createElement(WarningFilled,null);case"error":return reactExports.createElement(ErrorCircleFilled,null);case"success":return reactExports.createElement(CheckmarkCircleFilled,null);default:return null}}function useMessageBarReflow(eo=!1){const{targetDocument:to}=useFluent(),ro=reactExports.useReducer(()=>({}),{})[1],no=reactExports.useRef(!1),oo=reactExports.useRef(null),io=reactExports.useRef(-1),so=reactExports.useCallback(lo=>{const uo=lo[0],co=uo==null?void 0:uo.borderBoxSize[0];if(!co||!uo)return;const{inlineSize:fo}=co,{target:po}=uo;if(!isHTMLElement$6(po))return;let ho;if(no.current)io.current{var uo;if(!eo||!lo||!(to!=null&&to.defaultView))return;(uo=oo.current)===null||uo===void 0||uo.disconnect();const co=to.defaultView,fo=new co.ResizeObserver(so);oo.current=fo,fo.observe(lo,{box:"border-box"})},[to,so,eo]);return reactExports.useEffect(()=>()=>{var lo;(lo=oo.current)===null||lo===void 0||lo.disconnect()},[]),{ref:ao,reflowing:no.current}}const messageBarTransitionContext=reactExports.createContext(void 0),messageBarTransitionContextDefaultValue={className:"",nodeRef:reactExports.createRef()};messageBarTransitionContext.Provider;const useMessageBarTransitionContext=()=>{var eo;return(eo=reactExports.useContext(messageBarTransitionContext))!==null&&eo!==void 0?eo:messageBarTransitionContextDefaultValue},useMessageBar_unstable=(eo,to)=>{const{layout:ro="auto",intent:no="info",politeness:oo,shape:io="rounded"}=eo,so=oo??no==="info"?"polite":"assertive",ao=ro==="auto",{ref:lo,reflowing:uo}=useMessageBarReflow(ao),co=ao?uo?"multiline":"singleline":ro,{className:fo,nodeRef:po}=useMessageBarTransitionContext(),ho=reactExports.useRef(null),mo=reactExports.useRef(null),{announce:vo}=useAnnounce(),bo=useId$1();return reactExports.useEffect(()=>{var xo,_o;const So=(xo=mo.current)===null||xo===void 0?void 0:xo.textContent,Eo=(_o=ho.current)===null||_o===void 0?void 0:_o.textContent,ko=[So,Eo].filter(Boolean).join(",");vo(ko,{polite:so==="polite",alert:so==="assertive"})},[mo,ho,vo,so]),{components:{root:"div",icon:"div"},root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(to,lo,po),role:"group","aria-labelledby":bo,...eo}),{elementType:"div"}),icon:optional(eo.icon,{renderByDefault:!0,elementType:"div",defaultProps:{children:getIntentIcon(no)}}),layout:co,intent:no,transitionClassName:fo,actionsRef:ho,bodyRef:mo,titleId:bo,shape:io}},messageBarContext=reactExports.createContext(void 0),messageBarContextDefaultValue={titleId:"",layout:"singleline",actionsRef:reactExports.createRef(),bodyRef:reactExports.createRef()},MessageBarContextProvider=messageBarContext.Provider,useMessageBarContext=()=>{var eo;return(eo=reactExports.useContext(messageBarContext))!==null&&eo!==void 0?eo:messageBarContextDefaultValue},renderMessageBar_unstable=(eo,to)=>jsx$1(MessageBarContextProvider,{value:to.messageBar,children:jsxs(eo.root,{children:[eo.icon&&jsx$1(eo.icon,{}),eo.root.children]})}),messageBarClassNames={root:"fui-MessageBar",icon:"fui-MessageBar__icon"},useRootBaseStyles$2=__resetStyles("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);}']),useIconBaseStyles=__resetStyles("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;}"]),useStyles$l=__styles({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;}"]}),useIconIntentStyles=__styles({info:{},error:{sj55zd:"f1ca9wz"},warning:{sj55zd:"f14a4cve"},success:{sj55zd:"f36rra6"}},{d:[".f1ca9wz{color:var(--colorStatusDangerForeground1);}",".f14a4cve{color:var(--colorStatusWarningForeground3);}",".f36rra6{color:var(--colorStatusSuccessForeground1);}"]}),useRootIntentStyles=__styles({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);}"]}),useMessageBarStyles_unstable=eo=>{const to=useRootBaseStyles$2(),ro=useIconBaseStyles(),no=useIconIntentStyles(),oo=useRootIntentStyles(),io=useStyles$l();return eo.root.className=mergeClasses(messageBarClassNames.root,to,eo.layout==="multiline"&&io.rootMultiline,eo.shape==="square"&&io.square,oo[eo.intent],eo.transitionClassName,eo.root.className),eo.icon&&(eo.icon.className=mergeClasses(messageBarClassNames.icon,ro,no[eo.intent],eo.icon.className)),eo};function useMessageBarContextValue_unstable(eo){const{layout:to,actionsRef:ro,bodyRef:no,titleId:oo}=eo;return{messageBar:reactExports.useMemo(()=>({layout:to,actionsRef:ro,bodyRef:no,titleId:oo}),[to,ro,no,oo])}}const MessageBar=reactExports.forwardRef((eo,to)=>{const ro=useMessageBar_unstable(eo,to);return useMessageBarStyles_unstable(ro),useCustomStyleHook("useMessageBarStyles_unstable")(ro),renderMessageBar_unstable(ro,useMessageBarContextValue_unstable(ro))});MessageBar.displayName="MessageBar";const useMessageBarTitle_unstable=(eo,to)=>{const{titleId:ro}=useMessageBarContext();return{components:{root:"span"},root:always(getIntrinsicElementProps("span",{ref:to,id:ro,...eo}),{elementType:"span"})}},renderMessageBarTitle_unstable=eo=>jsx$1(eo.root,{}),messageBarTitleClassNames={root:"fui-MessageBarTitle"},useRootBaseStyles$1=__resetStyles("r168xkm9",null,[".r168xkm9{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);}",'.r168xkm9::after{content:" ";}']),useMessageBarTitleStyles_unstable=eo=>{const to=useRootBaseStyles$1();return eo.root.className=mergeClasses(messageBarTitleClassNames.root,to,eo.root.className),eo},MessageBarTitle=reactExports.forwardRef((eo,to)=>{const ro=useMessageBarTitle_unstable(eo,to);return useMessageBarTitleStyles_unstable(ro),useCustomStyleHook("useMessageBarTitleStyles_unstable")(ro),renderMessageBarTitle_unstable(ro)});MessageBarTitle.displayName="MessageBarTitle";const useMessageBarBody_unstable=(eo,to)=>{const{bodyRef:ro}=useMessageBarContext();return{components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(to,ro),...eo}),{elementType:"div"})}},renderMessageBarBody_unstable=eo=>jsx$1(eo.root,{}),messageBarBodyClassNames={root:"fui-MessageBarBody"},useRootBaseStyles=__resetStyles("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);}"]),useMessageBarBodyStyles_unstable=eo=>{const to=useRootBaseStyles();return eo.root.className=mergeClasses(messageBarBodyClassNames.root,to,eo.root.className),eo},MessageBarBody=reactExports.forwardRef((eo,to)=>{const ro=useMessageBarBody_unstable(eo,to);return useMessageBarBodyStyles_unstable(ro),useCustomStyleHook("useMessageBarBodyStyles_unstable")(ro),renderMessageBarBody_unstable(ro)});MessageBarBody.displayName="MessageBarBody";const useReducedMotion=()=>{var eo;const to=useFluent(),ro=reactExports.useRef(!1),no=canUseDOM$3()&&((eo=to.targetDocument)===null||eo===void 0?void 0:eo.defaultView),oo=reactExports.useCallback(io=>{ro.current=io.matches},[]);return useIsomorphicLayoutEffect$1(()=>{if(!no||!no.matchMedia)return;const io=no.matchMedia("screen and (prefers-reduced-motion: reduce)");return io.matches&&(ro.current=!0),io.addEventListener("change",oo),()=>io.removeEventListener("change",oo)},[oo,no]),ro.current},getCSSStyle=eo=>hasCSSOMSupport(eo)?eo.computedStyleMap():getElementComputedStyle(eo),hasCSSOMSupport=eo=>!!(typeof CSS<"u"&&CSS.number&&eo.computedStyleMap),getElementComputedStyle=eo=>{var to,ro;const no=canUseDOM$3()&&((ro=(to=eo.ownerDocument)===null||to===void 0?void 0:to.defaultView)!==null&&ro!==void 0?ro:window);return no?no.getComputedStyle(eo,null):{getPropertyValue:oo=>""}};function toMs(eo){const to=eo.trim();if(to.includes("auto"))return 0;if(to.endsWith("ms")){const ro=Number(to.replace("ms",""));return isNaN(ro)?0:ro}return Number(to.slice(0,-1).replace(",","."))*1e3}const getComputedMapProp=(eo,to)=>{const ro=eo.getAll(to);return ro.length>0?ro.map(({value:no,unit:oo})=>`${no}${oo}`):["0"]},getComputedStyleProp=(eo,to)=>{const ro=eo.getPropertyValue(to);return ro?ro.split(","):["0"]},getMaxCSSDuration=(eo,to)=>{const ro=Math.max(eo.length,to.length),no=[];if(ro===0)return 0;for(let oo=0;oo{const to=hasCSSOMSupport(eo),ro=getCSSStyle(eo),no=so=>to?getComputedMapProp(ro,so):getComputedStyleProp(ro,so),oo=getMaxCSSDuration(no("transition-duration"),no("transition-delay")),io=getMaxCSSDuration(no("animation-duration"),no("animation-delay"));return Math.max(oo,io)},useFirstMountCondition=eo=>{const to=reactExports.useRef(!0);return to.current&&eo?(to.current=!1,!0):to.current};function useMotionPresence(eo,to={}){const{animateOnFirstMount:ro,duration:no}={animateOnFirstMount:!1,...to},[oo,io]=reactExports.useState(eo&&ro?"entering":eo?"idle":"unmounted"),[so,ao]=reactExports.useState(!ro&&eo),[lo,uo]=useTimeout(),[co,fo]=useTimeout(),[po,ho]=useAnimationFrame(),[mo,vo]=reactExports.useState(null),bo=useReducedMotion(),xo=useFirstMount(),_o=useFirstMountCondition(!!mo),So=reactExports.useRef(eo).current,Eo=bo||_o&&So&&!ro,ko=reactExports.useCallback(Ro=>{Ro&&vo(Ro)},[]),wo=reactExports.useCallback(Ro=>(co(()=>po(Ro),0),()=>{fo(),ho()}),[ho,fo,po,co]),Co=reactExports.useCallback(()=>{io(eo?"entered":"exited"),wo(()=>io(eo?"idle":"unmounted"))},[wo,eo]);return reactExports.useEffect(()=>{if(!xo){if(Eo){io(eo?"idle":"unmounted"),ao(eo);return}if(io(eo?"entering":"exiting"),!!mo)return wo(()=>{ao(eo),wo(()=>{const Ro=no||getMotionDuration(mo);if(Ro===0){Co();return}lo(()=>Co(),Ro)})}),()=>uo()}},[mo,Eo,Co,eo]),reactExports.useMemo(()=>({ref:ko,type:oo,active:so,canRender:eo||oo!=="unmounted"}),[so,oo,eo])}function useMotion(eo,to){const ro=typeof eo=="object",no=useMotionPresence(ro?!1:eo,to);return ro?eo:no}const useReducedMotionStyles=__styles({reduced:{Hwfdqs:"f1bggi9a"}},{m:[["@media screen and (prefers-reduced-motion: reduce){.f1bggi9a{transition-duration:0.01ms!important;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]});function assertMotionStyles(eo){}const useMotionClassNames=(eo,to)=>{const{reduced:ro}=useReducedMotionStyles(),no=reactExports.useMemo(()=>!to.enter&&!to.exit?"":eo.active||eo.type==="idle"?to.enter:eo.active?"":to.exit,[eo.active,eo.type,to.enter,to.exit]);return reactExports.useEffect(()=>void 0,[to]),mergeClasses(to.default,no,to[eo.type],ro)};function useDrawerDefaultProps(eo){const{open:to=!1,size:ro="small",position:no="start"}=eo;return{size:ro,position:no,open:to}}const useBackdropResetStyles=__resetStyles("rivxbo","r1trjn1z",[".rivxbo{top:0px;right:0px;bottom:0px;left:0px;position:fixed;background-color:rgba(0, 0, 0, 0.4);}",".r1trjn1z{top:0px;left:0px;bottom:0px;right:0px;position:fixed;background-color:rgba(0, 0, 0, 0.4);}"]),useBackdropStyles=__styles({nested:{De3pzq:"f1c21dwh"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}"]}),useOverlayDrawerSurfaceStyles_unstable=eo=>{const to=useBackdropResetStyles(),ro=useBackdropStyles();return eo.backdrop&&(eo.backdrop.className=mergeClasses(to,eo.isNestedDialog&&ro.nested,eo.backdrop.className)),eo},OverlayDrawerSurface=reactExports.forwardRef((eo,to)=>{const ro=useDialogSurface_unstable(eo,to),no=useDialogSurfaceContextValues_unstable();return useOverlayDrawerSurfaceStyles_unstable(ro),renderDialogSurface_unstable(ro,no)});OverlayDrawerSurface.displayName="OverlayDrawerSurface";const useOverlayDrawer_unstable=(eo,to)=>{const{open:ro,size:no,position:oo}=useDrawerDefaultProps(eo),{modalType:io="modal",inertTrapFocus:so,defaultOpen:ao=!1,onOpenChange:lo}=eo,uo=useMotion(ro),co=resolveShorthand(eo.backdrop),po=always({...eo,backdrop:io!=="non-modal"&&co!==null?{...co}:null},{elementType:OverlayDrawerSurface,defaultProps:{ref:useMergedRefs$1(to,uo.ref)}}),ho=always({open:!0,defaultOpen:ao,onOpenChange:lo,inertTrapFocus:so,modalType:io,children:null},{elementType:Dialog});return{components:{root:OverlayDrawerSurface,dialog:Dialog},root:po,dialog:ho,size:no,position:oo,motion:uo}},renderOverlayDrawer_unstable=eo=>eo.motion.canRender?jsx$1(eo.dialog,{children:jsx$1(eo.root,{})}):null,useDrawerStyles=__styles({entering:{Bkqvd7p:"f18ad807"},exiting:{Bkqvd7p:"f1mfizis"},reducedMotion:{Hwfdqs:"f5e8c63"},start:{Bekrc4i:["f5tn483","f1ojsxk5"],vrafjx:["fcdblym","fjik90z"],h3c5rm:["f1gn591s","fjscplz"],oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["fvfyk4","frppm18"]},end:{ibv6hh:["f1ojsxk5","f5tn483"],wvpqe5:["fjik90z","fcdblym"],zhjwy3:["fjscplz","f1gn591s"],j35jbq:["f1e31b4d","f1vgc2s3"],oyh7mz:["frppm18","fvfyk4"]},small:{Bjr0ffy:"f1exhnwo"},medium:{Bjr0ffy:"fqofjzu"},large:{Bjr0ffy:"fce6y3m"},full:{Bjr0ffy:"fsdmzs6"}},{d:[".f18ad807{transition-timing-function:var(--curveDecelerateMid);}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".fvfyk4{right:auto;}",".frppm18{left:auto;}",".f1exhnwo{--fui-Drawer--size:320px;}",".fqofjzu{--fui-Drawer--size:592px;}",".fce6y3m{--fui-Drawer--size:940px;}",".fsdmzs6{--fui-Drawer--size:100vw;}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f5e8c63{transition-duration:0.001ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),useDrawerDurationStyles=__styles({small:{B3o57yi:"fc397y7"},medium:{B3o57yi:"f78771"},large:{B3o57yi:"f9ymmep"},full:{B3o57yi:"f1loko9l"}},{d:[".fc397y7{transition-duration:var(--durationGentle);}",".f78771{transition-duration:var(--durationSlow);}",".f9ymmep{transition-duration:var(--durationSlower);}",".f1loko9l{transition-duration:var(--durationUltraSlow);}"]}),useDrawerBaseClassNames=({position:eo,size:to,motion:ro})=>{const no=useDrawerStyles(),oo=useDrawerDurationStyles();return mergeClasses(no[eo],oo[to],no[to],no.reducedMotion,ro.type==="entering"&&no.entering,ro.type==="exiting"&&no.exiting)},overlayDrawerClassNames={root:"fui-OverlayDrawer",backdrop:"fui-OverlayDrawer__backdrop"},useDrawerResetStyles=__resetStyles("r1vxc6jp","r1uky7bi",{r:[".r1vxc6jp{overflow-x:hidden;overflow-y:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:fixed;top:0;bottom:0;}",".r1vxc6jp:focus{outline-style:none;}",".r1vxc6jp:focus-visible{outline-style:none;}",".r1vxc6jp[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1vxc6jp[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);}',".r1uky7bi{overflow-x:hidden;overflow-y:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:fixed;top:0;bottom:0;}",".r1uky7bi:focus{outline-style:none;}",".r1uky7bi:focus-visible{outline-style:none;}",".r1uky7bi[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r1uky7bi[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){.r1vxc6jp[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){.r1uky7bi[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),useDrawerRootStyles=__styles({start:{Bz10aip:"f1d8gkik"},end:{Bz10aip:"f1g0pcr8"}},{d:[".f1d8gkik{transform:translate3D(calc(var(--fui-Drawer--size) * -1), 0, 0);}",".f1g0pcr8{transform:translate3D(calc(var(--fui-Drawer--size) * 1), 0, 0);}"]}),useDrawerMotionStyles=__styles({default:{abs64n:"fk73vx1",E5pizo:"ff88big",Bmy1vo4:"f1neo61",Es3by:"f1ytgekk"},enter:{abs64n:"f5p0z4x",Bz10aip:"f87uvqx",E5pizo:"f10nrhrw"}},{d:[".fk73vx1{opacity:0;}",".ff88big{box-shadow:0px var(--colorTransparentBackground);}",".f1neo61{transition-property:transform,box-shadow,opacity;}",".f1ytgekk{will-change:transform,box-shadow,opacity;}",".f5p0z4x{opacity:1;}",".f87uvqx{transform:translate3D(0, 0, 0);}",".f10nrhrw{box-shadow:var(--shadow64);}"]}),useBackdropMotionStyles=__styles({default:{abs64n:"fk73vx1",Bmy1vo4:"f13u1uyl",Bkqvd7p:"f17wnm97",Es3by:"f1gqqdtu"},enter:{abs64n:"f5p0z4x"}},{d:[".fk73vx1{opacity:0;}",".f13u1uyl{transition-property:opacity;}",".f17wnm97{transition-timing-function:var(--curveEasyEase);}",".f1gqqdtu{will-change:opacity;}",".f5p0z4x{opacity:1;}"]}),useOverlayDrawerStyles_unstable=eo=>{const to=useDrawerBaseClassNames(eo),ro=useDrawerResetStyles(),no=useDrawerRootStyles(),oo=useDrawerDurationStyles(),io=useMotionClassNames(eo.motion,useDrawerMotionStyles()),so=useMotionClassNames(eo.motion,useBackdropMotionStyles()),ao=eo.root.backdrop;return eo.root.className=mergeClasses(overlayDrawerClassNames.root,to,ro,no[eo.position],io,eo.root.className),ao&&(ao.className=mergeClasses(overlayDrawerClassNames.backdrop,so,oo[eo.size],ao.className)),eo},OverlayDrawer=reactExports.forwardRef((eo,to)=>{const ro=useOverlayDrawer_unstable(eo,to);return useOverlayDrawerStyles_unstable(ro),useCustomStyleHook("useDrawerOverlayStyles_unstable")(ro),useCustomStyleHook("useOverlayDrawerStyles_unstable")(ro),renderOverlayDrawer_unstable(ro)});OverlayDrawer.displayName="OverlayDrawer";const useBreadcrumb_unstable=(eo,to)=>{const{focusMode:ro="tab",size:no="medium",list:oo,...io}=eo,so=useArrowNavigationGroup({circular:!0,axis:"horizontal",memorizeCurrent:!0});var ao;return{components:{root:"nav",list:"ol"},root:always(getIntrinsicElementProps("nav",{ref:to,"aria-label":(ao=eo["aria-label"])!==null&&ao!==void 0?ao:"breadcrumb",...ro==="arrow"?so:{},...io}),{elementType:"nav"}),list:optional(oo,{renderByDefault:!0,defaultProps:{role:"list"},elementType:"ol"}),size:no}},BreadcrumbContext=reactExports.createContext(void 0),breadcrumbDefaultValue={size:"medium"},BreadcrumbProvider=BreadcrumbContext.Provider,useBreadcrumbContext_unstable=()=>{var eo;return(eo=reactExports.useContext(BreadcrumbContext))!==null&&eo!==void 0?eo:breadcrumbDefaultValue},renderBreadcrumb_unstable=(eo,to)=>jsx$1(eo.root,{children:jsx$1(BreadcrumbProvider,{value:to,children:eo.list&&jsx$1(eo.list,{children:eo.root.children})})}),breadcrumbClassNames={root:"fui-Breadcrumb",list:"fui-Breadcrumb__list"},useListClassName=__resetStyles("rc5rb6b",null,[".rc5rb6b{list-style-type:none;display:flex;align-items:center;margin:0;padding:0;}"]),useBreadcrumbStyles_unstable=eo=>{const to=useListClassName();return eo.root.className=mergeClasses(breadcrumbClassNames.root,eo.root.className),eo.list&&(eo.list.className=mergeClasses(to,breadcrumbClassNames.list,eo.list.className)),eo};function useBreadcrumbContextValues_unstable(eo){const{size:to}=eo;return reactExports.useMemo(()=>({size:to}),[to])}const Breadcrumb=reactExports.forwardRef((eo,to)=>{const ro=useBreadcrumb_unstable(eo,to),no=useBreadcrumbContextValues_unstable(ro);return useBreadcrumbStyles_unstable(ro),useCustomStyleHook("useBreadcrumbStyles_unstable")(ro),renderBreadcrumb_unstable(ro,no)});Breadcrumb.displayName="Breadcrumb";const useBreadcrumbDivider_unstable=(eo,to)=>{const{size:ro}=useBreadcrumbContext_unstable(),{dir:no}=useFluent(),oo=getDividerIcon(ro,no);return{components:{root:"li"},root:always(getIntrinsicElementProps("li",{ref:to,"aria-hidden":!0,children:oo,...eo}),{elementType:"li"})}},dividerIcons={rtl:{small:reactExports.createElement(ChevronLeft12Regular,null),medium:reactExports.createElement(ChevronLeft16Regular,null),large:reactExports.createElement(ChevronLeft20Regular,null)},ltr:{small:reactExports.createElement(ChevronRight12Regular,null),medium:reactExports.createElement(ChevronRight16Regular,null),large:reactExports.createElement(ChevronRight20Regular,null)}};function getDividerIcon(eo="medium",to){const ro=to==="rtl"?dividerIcons.rtl:dividerIcons.ltr;return eo==="small"?ro.small:eo==="large"?ro.large:ro.medium}const renderBreadcrumbDivider_unstable=eo=>jsx$1(eo.root,{}),breadcrumbDividerClassNames={root:"fui-BreadcrumbDivider"},useStyles$k=__styles({root:{mc9l5x:"f22iagw"}},{d:[".f22iagw{display:flex;}"]}),useBreadcrumbDividerStyles_unstable=eo=>{const to=useStyles$k();return eo.root.className=mergeClasses(breadcrumbDividerClassNames.root,to.root,eo.root.className),eo},BreadcrumbDivider=reactExports.forwardRef((eo,to)=>{const ro=useBreadcrumbDivider_unstable(eo,to);return useBreadcrumbDividerStyles_unstable(ro),useCustomStyleHook("useBreadcrumbDividerStyles_unstable")(ro),renderBreadcrumbDivider_unstable(ro)});BreadcrumbDivider.displayName="BreadcrumbDivider";const useBreadcrumbItem_unstable=(eo,to)=>{const{size:ro}=useBreadcrumbContext_unstable();return{components:{root:"li"},root:always(getIntrinsicElementProps("li",{ref:to,...eo}),{elementType:"li"}),size:ro}},renderBreadcrumbItem_unstable=eo=>jsx$1(eo.root,{children:eo.root.children}),breadcrumbItemClassNames={root:"fui-BreadcrumbItem"},useBreadcrumbItemResetStyles=__resetStyles("r1tl60rs",null,[".r1tl60rs{display:flex;align-items:center;color:var(--colorNeutralForeground2);box-sizing:border-box;text-wrap:nowrap;}"]),useBreadcrumbItemStyles_unstable=eo=>{const to=useBreadcrumbItemResetStyles();return eo.root.className=mergeClasses(breadcrumbItemClassNames.root,to,eo.root.className),eo},BreadcrumbItem=reactExports.forwardRef((eo,to)=>{const ro=useBreadcrumbItem_unstable(eo,to);return useBreadcrumbItemStyles_unstable(ro),useCustomStyleHook("useBreadcrumbItemStyles_unstable")(ro),renderBreadcrumbItem_unstable(ro)});BreadcrumbItem.displayName="BreadcrumbItem";const useBreadcrumbButton_unstable=(eo,to)=>{const{size:ro}=useBreadcrumbContext_unstable(),{current:no=!1,as:oo,...io}=eo,so=oo??eo.href?"a":"button";var ao,lo;return{...useButton_unstable({appearance:"subtle",role:void 0,type:void 0,as:so,iconPosition:"before","aria-current":no?(ao=eo["aria-current"])!==null&&ao!==void 0?ao:"page":void 0,"aria-disabled":no?(lo=eo["aria-disabled"])!==null&&lo!==void 0?lo:!0:void 0,...io},to),current:no,size:ro}},renderBreadcrumbButton_unstable=eo=>renderButton_unstable(eo),breadcrumbButtonClassNames={root:"fui-BreadcrumbButton",icon:"fui-BreadcrumbButton__icon"},useIconStyles=__styles({base:{Be2twd7:"fsj74e5",Bqenvij:"f1qfv4wv",Bg96gwp:"f15xapk4",a9b677:"f17j33op",t21cq0:["fm0x6gh","fbyavb5"]},small:{u3h8gg:"f1qfi7kw",Biu6dll:"f1876atl"},medium:{u3h8gg:"f1h9446d",Biu6dll:"f10xfswh"},large:{u3h8gg:"f5hcofs",Biu6dll:"f1a6v6zl"}},{d:[".fsj74e5{font-size:var(--fui-Breadcrumb--icon-size);}",".f1qfv4wv{height:var(--fui-Breadcrumb--icon-size);}",".f15xapk4{line-height:var(--fui-Breadcrumb--icon-line-height);}",".f17j33op{width:var(--fui-Breadcrumb--icon-size);}",".fm0x6gh{margin-right:var(--spacingHorizontalXS);}",".fbyavb5{margin-left:var(--spacingHorizontalXS);}",".f1qfi7kw{--fui-Breadcrumb--icon-size:12px;}",".f1876atl{--fui-Breadcrumb--icon-line-height:var(--lineHeightBase200);}",".f1h9446d{--fui-Breadcrumb--icon-size:16px;}",".f10xfswh{--fui-Breadcrumb--icon-line-height:var(--lineHeightBase400);}",".f5hcofs{--fui-Breadcrumb--icon-size:20px;}",".f1a6v6zl{--fui-Breadcrumb--icon-line-height:var(--lineHeightBase600);}"]}),useStyles$j=__styles({root:{Bf4jedk:"f18p0k4z",j4b8c3:"fv6wr3j",icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"]},small:{Bqenvij:"frvgh55",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",z8tnut:"f16k8034",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"f1angvds",uwmqm3:["fk8j09s","fdw0yi8"]},medium:{Bqenvij:"f1d2rq10",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",z8tnut:"f16k8034",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"f1angvds",uwmqm3:["fk8j09s","fdw0yi8"]},large:{Bqenvij:"fbhnoac",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",z8tnut:"f17mpqex",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"fdvome7",uwmqm3:["f1f5gg8d","f1vdfbxk"]},current:{Jwef8y:"f9ql6rf",Bi91k9c:"f3p8bqa",eoavqd:"f14w7a5u",Bbdnnc7:"f1irjp3o",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",iro3zm:"f3h1zc4",B2d53fq:"f1xkgyln",c3iz72:"f17wbbfx",x3br3k:"fofxw0a",em6i61:"f1ol4fw6",vm6p8p:"f1q1lw4e",Bszkowt:"ff24m",Dyrjrp:"ft5r8e9",ezr58z:"f1cbpfqp",nhk3du:"f1motppv",Bfrek18:"fi9vkhg",G209fr:"f1fg3nnv"},currentSmall:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"fl43uef",Bg96gwp:"fwrc4pm"},currentMedium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"fl43uef",Bg96gwp:"f1i3iumi"},currentLarge:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"}},{d:[".f18p0k4z{min-width:unset;}",".fv6wr3j{text-wrap:nowrap;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",".frvgh55{height:24px;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f16k8034{padding-top:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1angvds{padding-bottom:var(--spacingHorizontalSNudge);}",".f1d2rq10{height:32px;}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fbhnoac{height:40px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f17mpqex{padding-top:var(--spacingHorizontalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".fdvome7{padding-bottom:var(--spacingHorizontalS);}",".ff24m:disabled{background-color:var(--colorTransparentBackground);}",".ft5r8e9:disabled{color:var(--colorNeutralForeground2);}",".f1cbpfqp:disabled{cursor:auto;}",".f1motppv:disabled .fui-Button__icon{color:unset;}",".fi9vkhg:disabled .fui-Icon-filled{display:none;}",".f1fg3nnv:disabled .fui-Icon-regular{display:inline;}",".fl43uef{font-weight:var(--fontWeightSemibold);}"],h:[".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f3p8bqa:hover{color:var(--colorNeutralForeground2);}",".f14w7a5u:hover{cursor:auto;}",".f1irjp3o:hover .fui-Button__icon{color:unset;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f3h1zc4:hover:active{background-color:var(--colorTransparentBackground);}",".f1xkgyln:hover:active{color:var(--colorNeutralForeground2);}",".f17wbbfx:hover:active{cursor:auto;}",".fofxw0a:hover:active .fui-Button__icon{color:unset;}",".f1ol4fw6:hover:active .fui-Icon-filled{display:none;}",".f1q1lw4e:hover:active .fui-Icon-regular{display:inline;}"]}),useBreadcrumbButtonStyles_unstable=eo=>{const to=useStyles$j(),ro=useIconStyles(),no={small:to.currentSmall,medium:to.currentMedium,large:to.currentLarge};return eo.root.className=mergeClasses(breadcrumbButtonClassNames.root,to[eo.size],to.root,eo.current&&no[eo.size],eo.current&&to.current,eo.root.className),eo.icon&&(eo.icon.className=mergeClasses(ro.base,ro[eo.size],eo.icon.className)),useButtonStyles_unstable(eo),eo},BreadcrumbButton=reactExports.forwardRef((eo,to)=>{const ro=useBreadcrumbButton_unstable(eo,to);return useBreadcrumbButtonStyles_unstable(ro),useCustomStyleHook("useBreadcrumbButtonStyles_unstable")(ro),renderBreadcrumbButton_unstable(ro)});BreadcrumbButton.displayName="BreadcrumbButton";var axios$1={exports:{}},bind$2=function(to,ro){return function(){for(var oo=new Array(arguments.length),io=0;io"u"}function isBuffer$4(eo){return eo!==null&&!isUndefined(eo)&&eo.constructor!==null&&!isUndefined(eo.constructor)&&typeof eo.constructor.isBuffer=="function"&&eo.constructor.isBuffer(eo)}function isArrayBuffer(eo){return toString$3.call(eo)==="[object ArrayBuffer]"}function isFormData(eo){return typeof FormData<"u"&&eo instanceof FormData}function isArrayBufferView(eo){var to;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?to=ArrayBuffer.isView(eo):to=eo&&eo.buffer&&eo.buffer instanceof ArrayBuffer,to}function isString$1(eo){return typeof eo=="string"}function isNumber$1(eo){return typeof eo=="number"}function isObject$g(eo){return eo!==null&&typeof eo=="object"}function isPlainObject$2(eo){if(toString$3.call(eo)!=="[object Object]")return!1;var to=Object.getPrototypeOf(eo);return to===null||to===Object.prototype}function isDate(eo){return toString$3.call(eo)==="[object Date]"}function isFile(eo){return toString$3.call(eo)==="[object File]"}function isBlob(eo){return toString$3.call(eo)==="[object Blob]"}function isFunction$6(eo){return toString$3.call(eo)==="[object Function]"}function isStream(eo){return isObject$g(eo)&&isFunction$6(eo.pipe)}function isURLSearchParams(eo){return typeof URLSearchParams<"u"&&eo instanceof URLSearchParams}function trim$1(eo){return eo.trim?eo.trim():eo.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function forEach(eo,to){if(!(eo===null||typeof eo>"u"))if(typeof eo!="object"&&(eo=[eo]),isArray$f(eo))for(var ro=0,no=eo.length;ro"u"||(utils$8.isArray(lo)?uo=uo+"[]":lo=[lo],utils$8.forEach(lo,function(fo){utils$8.isDate(fo)?fo=fo.toISOString():utils$8.isObject(fo)&&(fo=JSON.stringify(fo)),io.push(encode$1(uo)+"="+encode$1(fo))}))}),oo=io.join("&")}if(oo){var so=to.indexOf("#");so!==-1&&(to=to.slice(0,so)),to+=(to.indexOf("?")===-1?"?":"&")+oo}return to},utils$7=utils$9;function InterceptorManager$1(){this.handlers=[]}InterceptorManager$1.prototype.use=function(to,ro,no){return this.handlers.push({fulfilled:to,rejected:ro,synchronous:no?no.synchronous:!1,runWhen:no?no.runWhen:null}),this.handlers.length-1};InterceptorManager$1.prototype.eject=function(to){this.handlers[to]&&(this.handlers[to]=null)};InterceptorManager$1.prototype.forEach=function(to){utils$7.forEach(this.handlers,function(no){no!==null&&to(no)})};var InterceptorManager_1=InterceptorManager$1,utils$6=utils$9,normalizeHeaderName$1=function(to,ro){utils$6.forEach(to,function(oo,io){io!==ro&&io.toUpperCase()===ro.toUpperCase()&&(to[ro]=oo,delete to[io])})},enhanceError$1=function(to,ro,no,oo,io){return to.config=ro,no&&(to.code=no),to.request=oo,to.response=io,to.isAxiosError=!0,to.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}},to},createError,hasRequiredCreateError;function requireCreateError(){if(hasRequiredCreateError)return createError;hasRequiredCreateError=1;var eo=enhanceError$1;return createError=function(ro,no,oo,io,so){var ao=new Error(ro);return eo(ao,no,oo,io,so)},createError}var settle,hasRequiredSettle;function requireSettle(){if(hasRequiredSettle)return settle;hasRequiredSettle=1;var eo=requireCreateError();return settle=function(ro,no,oo){var io=oo.config.validateStatus;!oo.status||!io||io(oo.status)?ro(oo):no(eo("Request failed with status code "+oo.status,oo.config,null,oo.request,oo))},settle}var cookies,hasRequiredCookies;function requireCookies(){if(hasRequiredCookies)return cookies;hasRequiredCookies=1;var eo=utils$9;return cookies=eo.isStandardBrowserEnv()?function(){return{write:function(no,oo,io,so,ao,lo){var uo=[];uo.push(no+"="+encodeURIComponent(oo)),eo.isNumber(io)&&uo.push("expires="+new Date(io).toGMTString()),eo.isString(so)&&uo.push("path="+so),eo.isString(ao)&&uo.push("domain="+ao),lo===!0&&uo.push("secure"),document.cookie=uo.join("; ")},read:function(no){var oo=document.cookie.match(new RegExp("(^|;\\s*)("+no+")=([^;]*)"));return oo?decodeURIComponent(oo[3]):null},remove:function(no){this.write(no,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),cookies}var isAbsoluteURL,hasRequiredIsAbsoluteURL;function requireIsAbsoluteURL(){return hasRequiredIsAbsoluteURL||(hasRequiredIsAbsoluteURL=1,isAbsoluteURL=function(to){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(to)}),isAbsoluteURL}var combineURLs,hasRequiredCombineURLs;function requireCombineURLs(){return hasRequiredCombineURLs||(hasRequiredCombineURLs=1,combineURLs=function(to,ro){return ro?to.replace(/\/+$/,"")+"/"+ro.replace(/^\/+/,""):to}),combineURLs}var buildFullPath,hasRequiredBuildFullPath;function requireBuildFullPath(){if(hasRequiredBuildFullPath)return buildFullPath;hasRequiredBuildFullPath=1;var eo=requireIsAbsoluteURL(),to=requireCombineURLs();return buildFullPath=function(no,oo){return no&&!eo(oo)?to(no,oo):oo},buildFullPath}var parseHeaders,hasRequiredParseHeaders;function requireParseHeaders(){if(hasRequiredParseHeaders)return parseHeaders;hasRequiredParseHeaders=1;var eo=utils$9,to=["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 parseHeaders=function(no){var oo={},io,so,ao;return no&&eo.forEach(no.split(` -`),function(uo){if(ao=uo.indexOf(":"),io=eo.trim(uo.substr(0,ao)).toLowerCase(),so=eo.trim(uo.substr(ao+1)),io){if(oo[io]&&to.indexOf(io)>=0)return;io==="set-cookie"?oo[io]=(oo[io]?oo[io]:[]).concat([so]):oo[io]=oo[io]?oo[io]+", "+so:so}}),oo},parseHeaders}var isURLSameOrigin,hasRequiredIsURLSameOrigin;function requireIsURLSameOrigin(){if(hasRequiredIsURLSameOrigin)return isURLSameOrigin;hasRequiredIsURLSameOrigin=1;var eo=utils$9;return isURLSameOrigin=eo.isStandardBrowserEnv()?function(){var ro=/(msie|trident)/i.test(navigator.userAgent),no=document.createElement("a"),oo;function io(so){var ao=so;return ro&&(no.setAttribute("href",ao),ao=no.href),no.setAttribute("href",ao),{href:no.href,protocol:no.protocol?no.protocol.replace(/:$/,""):"",host:no.host,search:no.search?no.search.replace(/^\?/,""):"",hash:no.hash?no.hash.replace(/^#/,""):"",hostname:no.hostname,port:no.port,pathname:no.pathname.charAt(0)==="/"?no.pathname:"/"+no.pathname}}return oo=io(window.location.href),function(ao){var lo=eo.isString(ao)?io(ao):ao;return lo.protocol===oo.protocol&&lo.host===oo.host}}():function(){return function(){return!0}}(),isURLSameOrigin}var xhr,hasRequiredXhr;function requireXhr(){if(hasRequiredXhr)return xhr;hasRequiredXhr=1;var eo=utils$9,to=requireSettle(),ro=requireCookies(),no=buildURL$1,oo=requireBuildFullPath(),io=requireParseHeaders(),so=requireIsURLSameOrigin(),ao=requireCreateError();return xhr=function(uo){return new Promise(function(fo,po){var ho=uo.data,mo=uo.headers,vo=uo.responseType;eo.isFormData(ho)&&delete mo["Content-Type"];var bo=new XMLHttpRequest;if(uo.auth){var xo=uo.auth.username||"",_o=uo.auth.password?unescape(encodeURIComponent(uo.auth.password)):"";mo.Authorization="Basic "+btoa(xo+":"+_o)}var So=oo(uo.baseURL,uo.url);bo.open(uo.method.toUpperCase(),no(So,uo.params,uo.paramsSerializer),!0),bo.timeout=uo.timeout;function Eo(){if(bo){var wo="getAllResponseHeaders"in bo?io(bo.getAllResponseHeaders()):null,Co=!vo||vo==="text"||vo==="json"?bo.responseText:bo.response,Ro={data:Co,status:bo.status,statusText:bo.statusText,headers:wo,config:uo,request:bo};to(fo,po,Ro),bo=null}}if("onloadend"in bo?bo.onloadend=Eo:bo.onreadystatechange=function(){!bo||bo.readyState!==4||bo.status===0&&!(bo.responseURL&&bo.responseURL.indexOf("file:")===0)||setTimeout(Eo)},bo.onabort=function(){bo&&(po(ao("Request aborted",uo,"ECONNABORTED",bo)),bo=null)},bo.onerror=function(){po(ao("Network Error",uo,null,bo)),bo=null},bo.ontimeout=function(){var Co="timeout of "+uo.timeout+"ms exceeded";uo.timeoutErrorMessage&&(Co=uo.timeoutErrorMessage),po(ao(Co,uo,uo.transitional&&uo.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",bo)),bo=null},eo.isStandardBrowserEnv()){var ko=(uo.withCredentials||so(So))&&uo.xsrfCookieName?ro.read(uo.xsrfCookieName):void 0;ko&&(mo[uo.xsrfHeaderName]=ko)}"setRequestHeader"in bo&&eo.forEach(mo,function(Co,Ro){typeof ho>"u"&&Ro.toLowerCase()==="content-type"?delete mo[Ro]:bo.setRequestHeader(Ro,Co)}),eo.isUndefined(uo.withCredentials)||(bo.withCredentials=!!uo.withCredentials),vo&&vo!=="json"&&(bo.responseType=uo.responseType),typeof uo.onDownloadProgress=="function"&&bo.addEventListener("progress",uo.onDownloadProgress),typeof uo.onUploadProgress=="function"&&bo.upload&&bo.upload.addEventListener("progress",uo.onUploadProgress),uo.cancelToken&&uo.cancelToken.promise.then(function(Co){bo&&(bo.abort(),po(Co),bo=null)}),ho||(ho=null),bo.send(ho)})},xhr}var utils$5=utils$9,normalizeHeaderName=normalizeHeaderName$1,enhanceError=enhanceError$1,DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(eo,to){!utils$5.isUndefined(eo)&&utils$5.isUndefined(eo["Content-Type"])&&(eo["Content-Type"]=to)}function getDefaultAdapter(){var eo;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(eo=requireXhr()),eo}function stringifySafely(eo,to,ro){if(utils$5.isString(eo))try{return(to||JSON.parse)(eo),utils$5.trim(eo)}catch(no){if(no.name!=="SyntaxError")throw no}return(ro||JSON.stringify)(eo)}var defaults$3={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:getDefaultAdapter(),transformRequest:[function(to,ro){return normalizeHeaderName(ro,"Accept"),normalizeHeaderName(ro,"Content-Type"),utils$5.isFormData(to)||utils$5.isArrayBuffer(to)||utils$5.isBuffer(to)||utils$5.isStream(to)||utils$5.isFile(to)||utils$5.isBlob(to)?to:utils$5.isArrayBufferView(to)?to.buffer:utils$5.isURLSearchParams(to)?(setContentTypeIfUnset(ro,"application/x-www-form-urlencoded;charset=utf-8"),to.toString()):utils$5.isObject(to)||ro&&ro["Content-Type"]==="application/json"?(setContentTypeIfUnset(ro,"application/json"),stringifySafely(to)):to}],transformResponse:[function(to){var ro=this.transitional,no=ro&&ro.silentJSONParsing,oo=ro&&ro.forcedJSONParsing,io=!no&&this.responseType==="json";if(io||oo&&utils$5.isString(to)&&to.length)try{return JSON.parse(to)}catch(so){if(io)throw so.name==="SyntaxError"?enhanceError(so,this,"E_JSON_PARSE"):so}return to}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(to){return to>=200&&to<300}};defaults$3.headers={common:{Accept:"application/json, text/plain, */*"}};utils$5.forEach(["delete","get","head"],function(to){defaults$3.headers[to]={}});utils$5.forEach(["post","put","patch"],function(to){defaults$3.headers[to]=utils$5.merge(DEFAULT_CONTENT_TYPE)});var defaults_1$1=defaults$3,utils$4=utils$9,defaults$2=defaults_1$1,transformData$1=function(to,ro,no){var oo=this||defaults$2;return utils$4.forEach(no,function(so){to=so.call(oo,to,ro)}),to},isCancel$1,hasRequiredIsCancel;function requireIsCancel(){return hasRequiredIsCancel||(hasRequiredIsCancel=1,isCancel$1=function(to){return!!(to&&to.__CANCEL__)}),isCancel$1}var utils$3=utils$9,transformData=transformData$1,isCancel=requireIsCancel(),defaults$1=defaults_1$1;function throwIfCancellationRequested(eo){eo.cancelToken&&eo.cancelToken.throwIfRequested()}var dispatchRequest$1=function(to){throwIfCancellationRequested(to),to.headers=to.headers||{},to.data=transformData.call(to,to.data,to.headers,to.transformRequest),to.headers=utils$3.merge(to.headers.common||{},to.headers[to.method]||{},to.headers),utils$3.forEach(["delete","get","head","post","put","patch","common"],function(oo){delete to.headers[oo]});var ro=to.adapter||defaults$1.adapter;return ro(to).then(function(oo){return throwIfCancellationRequested(to),oo.data=transformData.call(to,oo.data,oo.headers,to.transformResponse),oo},function(oo){return isCancel(oo)||(throwIfCancellationRequested(to),oo&&oo.response&&(oo.response.data=transformData.call(to,oo.response.data,oo.response.headers,to.transformResponse))),Promise.reject(oo)})},utils$2=utils$9,mergeConfig$2=function(to,ro){ro=ro||{};var no={},oo=["url","method","data"],io=["headers","auth","proxy","params"],so=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],ao=["validateStatus"];function lo(po,ho){return utils$2.isPlainObject(po)&&utils$2.isPlainObject(ho)?utils$2.merge(po,ho):utils$2.isPlainObject(ho)?utils$2.merge({},ho):utils$2.isArray(ho)?ho.slice():ho}function uo(po){utils$2.isUndefined(ro[po])?utils$2.isUndefined(to[po])||(no[po]=lo(void 0,to[po])):no[po]=lo(to[po],ro[po])}utils$2.forEach(oo,function(ho){utils$2.isUndefined(ro[ho])||(no[ho]=lo(void 0,ro[ho]))}),utils$2.forEach(io,uo),utils$2.forEach(so,function(ho){utils$2.isUndefined(ro[ho])?utils$2.isUndefined(to[ho])||(no[ho]=lo(void 0,to[ho])):no[ho]=lo(void 0,ro[ho])}),utils$2.forEach(ao,function(ho){ho in ro?no[ho]=lo(to[ho],ro[ho]):ho in to&&(no[ho]=lo(void 0,to[ho]))});var co=oo.concat(io).concat(so).concat(ao),fo=Object.keys(to).concat(Object.keys(ro)).filter(function(ho){return co.indexOf(ho)===-1});return utils$2.forEach(fo,uo),no};const name="axios",version$2="0.21.4",description="Promise based HTTP client for the browser and node.js",main$1="index.js",scripts={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"},repository={type:"git",url:"https://github.com/axios/axios.git"},keywords$1=["xhr","http","ajax","promise","node"],author="Matt Zabriskie",license="MIT",bugs={url:"https://github.com/axios/axios/issues"},homepage="https://axios-http.com",devDependencies={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"},browser$1={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr="dist/axios.min.js",unpkg="dist/axios.min.js",typings="./index.d.ts",dependencies={"follow-redirects":"^1.14.0"},bundlesize=[{path:"./dist/axios.min.js",threshold:"5kB"}],require$$0={name,version:version$2,description,main:main$1,scripts,repository,keywords:keywords$1,author,license,bugs,homepage,devDependencies,browser:browser$1,jsdelivr,unpkg,typings,dependencies,bundlesize};var pkg=require$$0,validators$3={};["object","boolean","number","function","string","symbol"].forEach(function(eo,to){validators$3[eo]=function(no){return typeof no===eo||"a"+(to<1?"n ":" ")+eo}});var deprecatedWarnings={},currentVerArr=pkg.version.split(".");function isOlderVersion(eo,to){for(var ro=to?to.split("."):currentVerArr,no=eo.split("."),oo=0;oo<3;oo++){if(ro[oo]>no[oo])return!0;if(ro[oo]0;){var io=no[oo],so=to[io];if(so){var ao=eo[io],lo=ao===void 0||so(ao,io,eo);if(lo!==!0)throw new TypeError("option "+io+" must be "+lo);continue}if(ro!==!0)throw Error("Unknown option "+io)}}var validator$1={isOlderVersion,assertOptions,validators:validators$3},utils$1=utils$9,buildURL=buildURL$1,InterceptorManager=InterceptorManager_1,dispatchRequest=dispatchRequest$1,mergeConfig$1=mergeConfig$2,validator=validator$1,validators$2=validator.validators;function Axios$1(eo){this.defaults=eo,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}Axios$1.prototype.request=function(to){typeof to=="string"?(to=arguments[1]||{},to.url=arguments[0]):to=to||{},to=mergeConfig$1(this.defaults,to),to.method?to.method=to.method.toLowerCase():this.defaults.method?to.method=this.defaults.method.toLowerCase():to.method="get";var ro=to.transitional;ro!==void 0&&validator.assertOptions(ro,{silentJSONParsing:validators$2.transitional(validators$2.boolean,"1.0.0"),forcedJSONParsing:validators$2.transitional(validators$2.boolean,"1.0.0"),clarifyTimeoutError:validators$2.transitional(validators$2.boolean,"1.0.0")},!1);var no=[],oo=!0;this.interceptors.request.forEach(function(po){typeof po.runWhen=="function"&&po.runWhen(to)===!1||(oo=oo&&po.synchronous,no.unshift(po.fulfilled,po.rejected))});var io=[];this.interceptors.response.forEach(function(po){io.push(po.fulfilled,po.rejected)});var so;if(!oo){var ao=[dispatchRequest,void 0];for(Array.prototype.unshift.apply(ao,no),ao=ao.concat(io),so=Promise.resolve(to);ao.length;)so=so.then(ao.shift(),ao.shift());return so}for(var lo=to;no.length;){var uo=no.shift(),co=no.shift();try{lo=uo(lo)}catch(fo){co(fo);break}}try{so=dispatchRequest(lo)}catch(fo){return Promise.reject(fo)}for(;io.length;)so=so.then(io.shift(),io.shift());return so};Axios$1.prototype.getUri=function(to){return to=mergeConfig$1(this.defaults,to),buildURL(to.url,to.params,to.paramsSerializer).replace(/^\?/,"")};utils$1.forEach(["delete","get","head","options"],function(to){Axios$1.prototype[to]=function(ro,no){return this.request(mergeConfig$1(no||{},{method:to,url:ro,data:(no||{}).data}))}});utils$1.forEach(["post","put","patch"],function(to){Axios$1.prototype[to]=function(ro,no,oo){return this.request(mergeConfig$1(oo||{},{method:to,url:ro,data:no}))}});var Axios_1=Axios$1,Cancel_1,hasRequiredCancel;function requireCancel(){if(hasRequiredCancel)return Cancel_1;hasRequiredCancel=1;function eo(to){this.message=to}return eo.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},eo.prototype.__CANCEL__=!0,Cancel_1=eo,Cancel_1}var CancelToken_1,hasRequiredCancelToken;function requireCancelToken(){if(hasRequiredCancelToken)return CancelToken_1;hasRequiredCancelToken=1;var eo=requireCancel();function to(ro){if(typeof ro!="function")throw new TypeError("executor must be a function.");var no;this.promise=new Promise(function(so){no=so});var oo=this;ro(function(so){oo.reason||(oo.reason=new eo(so),no(oo.reason))})}return to.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},to.source=function(){var no,oo=new to(function(so){no=so});return{token:oo,cancel:no}},CancelToken_1=to,CancelToken_1}var spread$1,hasRequiredSpread;function requireSpread(){return hasRequiredSpread||(hasRequiredSpread=1,spread$1=function(to){return function(no){return to.apply(null,no)}}),spread$1}var isAxiosError,hasRequiredIsAxiosError;function requireIsAxiosError(){return hasRequiredIsAxiosError||(hasRequiredIsAxiosError=1,isAxiosError=function(to){return typeof to=="object"&&to.isAxiosError===!0}),isAxiosError}var utils=utils$9,bind=bind$2,Axios=Axios_1,mergeConfig=mergeConfig$2,defaults=defaults_1$1;function createInstance(eo){var to=new Axios(eo),ro=bind(Axios.prototype.request,to);return utils.extend(ro,Axios.prototype,to),utils.extend(ro,to),ro}var axios=createInstance(defaults);axios.Axios=Axios;axios.create=function(to){return createInstance(mergeConfig(axios.defaults,to))};axios.Cancel=requireCancel();axios.CancelToken=requireCancelToken();axios.isCancel=requireIsCancel();axios.all=function(to){return Promise.all(to)};axios.spread=requireSpread();axios.isAxiosError=requireIsAxiosError();axios$1.exports=axios;axios$1.exports.default=axios;var rngBrowser={exports:{}},getRandomValues$1=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(getRandomValues$1){var rnds8$1=new Uint8Array(16);rngBrowser.exports=function(){return getRandomValues$1(rnds8$1),rnds8$1}}else{var rnds=new Array(16);rngBrowser.exports=function(){for(var to=0,ro;to<16;to++)to&3||(ro=Math.random()*4294967296),rnds[to]=ro>>>((to&3)<<3)&255;return rnds}}var rngBrowserExports=rngBrowser.exports,byteToHex$1=[];for(var i$4=0;i$4<256;++i$4)byteToHex$1[i$4]=(i$4+256).toString(16).substr(1);function bytesToUuid$3(eo,to){var ro=to||0,no=byteToHex$1;return[no[eo[ro++]],no[eo[ro++]],no[eo[ro++]],no[eo[ro++]],"-",no[eo[ro++]],no[eo[ro++]],"-",no[eo[ro++]],no[eo[ro++]],"-",no[eo[ro++]],no[eo[ro++]],"-",no[eo[ro++]],no[eo[ro++]],no[eo[ro++]],no[eo[ro++]],no[eo[ro++]],no[eo[ro++]]].join("")}var bytesToUuid_1=bytesToUuid$3,rng$2=rngBrowserExports,bytesToUuid$2=bytesToUuid_1,_nodeId,_clockseq,_lastMSecs=0,_lastNSecs=0;function v1$1(eo,to,ro){var no=to&&ro||0,oo=to||[];eo=eo||{};var io=eo.node||_nodeId,so=eo.clockseq!==void 0?eo.clockseq:_clockseq;if(io==null||so==null){var ao=rng$2();io==null&&(io=_nodeId=[ao[0]|1,ao[1],ao[2],ao[3],ao[4],ao[5]]),so==null&&(so=_clockseq=(ao[6]<<8|ao[7])&16383)}var lo=eo.msecs!==void 0?eo.msecs:new Date().getTime(),uo=eo.nsecs!==void 0?eo.nsecs:_lastNSecs+1,co=lo-_lastMSecs+(uo-_lastNSecs)/1e4;if(co<0&&eo.clockseq===void 0&&(so=so+1&16383),(co<0||lo>_lastMSecs)&&eo.nsecs===void 0&&(uo=0),uo>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_lastMSecs=lo,_lastNSecs=uo,_clockseq=so,lo+=122192928e5;var fo=((lo&268435455)*1e4+uo)%4294967296;oo[no++]=fo>>>24&255,oo[no++]=fo>>>16&255,oo[no++]=fo>>>8&255,oo[no++]=fo&255;var po=lo/4294967296*1e4&268435455;oo[no++]=po>>>8&255,oo[no++]=po&255,oo[no++]=po>>>24&15|16,oo[no++]=po>>>16&255,oo[no++]=so>>>8|128,oo[no++]=so&255;for(var ho=0;ho<6;++ho)oo[no+ho]=io[ho];return to||bytesToUuid$2(oo)}var v1_1=v1$1,rng$1=rngBrowserExports,bytesToUuid$1=bytesToUuid_1;function v4$2(eo,to,ro){var no=to&&ro||0;typeof eo=="string"&&(to=eo==="binary"?new Array(16):null,eo=null),eo=eo||{};var oo=eo.random||(eo.rng||rng$1)();if(oo[6]=oo[6]&15|64,oo[8]=oo[8]&63|128,to)for(var io=0;io<16;++io)to[no+io]=oo[io];return to||bytesToUuid$1(oo)}var v4_1=v4$2,v1=v1_1,v4$1=v4_1,uuid=v4$1;uuid.v1=v1;uuid.v4=v4$1;var uuid_1=uuid;const BASELINE_VARIANT_ID="variant_0",DEFAULT_CHAT_INPUT_NAME="chat_input",DEFAULT_CHAT_HISTORY_NAME="chat_history",DEFAULT_CHAT_OUTPUT_NAME="chat_output";var FlowFeatures=(eo=>(eo.OpenCodeFileInNode="OpenCodeFileInNode",eo.ShowWarningIconOnNode="ShowWarningIconOnNode",eo))(FlowFeatures||{}),ConnectionType=(eo=>(eo.OpenAI="OpenAI",eo.AzureOpenAI="AzureOpenAI",eo.Serp="Serp",eo.Bing="Bing",eo.AzureContentModerator="AzureContentModerator",eo.Custom="Custom",eo.AzureContentSafety="AzureContentSafety",eo.CognitiveSearch="CognitiveSearch",eo.SubstrateLLM="SubstrateLLM",eo.Pinecone="Pinecone",eo.Qdrant="Qdrant",eo.Weaviate="Weaviate",eo.FormRecognizer="FormRecognizer",eo.Serverless="Serverless",eo))(ConnectionType||{}),FlowType=(eo=>(eo.Default="Default",eo.Evaluation="Evaluation",eo.Chat="Chat",eo.Rag="Rag",eo))(FlowType||{}),InputType=(eo=>(eo.default="default",eo.uionly_hidden="uionly_hidden",eo))(InputType||{}),Orientation$1=(eo=>(eo.Horizontal="Horizontal",eo.Vertical="Vertical",eo))(Orientation$1||{}),ToolType=(eo=>(eo.llm="llm",eo.python="python",eo.action="action",eo.prompt="prompt",eo.custom_llm="custom_llm",eo.csharp="csharp",eo.typescript="typescript",eo))(ToolType||{}),ValueType=(eo=>(eo.int="int",eo.double="double",eo.bool="bool",eo.string="string",eo.secret="secret",eo.prompt_template="prompt_template",eo.object="object",eo.list="list",eo.BingConnection="BingConnection",eo.OpenAIConnection="OpenAIConnection",eo.AzureOpenAIConnection="AzureOpenAIConnection",eo.AzureContentModeratorConnection="AzureContentModeratorConnection",eo.CustomConnection="CustomConnection",eo.AzureContentSafetyConnection="AzureContentSafetyConnection",eo.SerpConnection="SerpConnection",eo.CognitiveSearchConnection="CognitiveSearchConnection",eo.SubstrateLLMConnection="SubstrateLLMConnection",eo.PineconeConnection="PineconeConnection",eo.QdrantConnection="QdrantConnection",eo.WeaviateConnection="WeaviateConnection",eo.function_list="function_list",eo.function_str="function_str",eo.FormRecognizerConnection="FormRecognizerConnection",eo.file_path="file_path",eo.image="image",eo.assistant_definition="assistant_definition",eo.ServerlessConnection="ServerlessConnection",eo))(ValueType||{});const FLOW_INPUT_REF_NAME_FLOW="flow",FLOW_INPUT_REF_NAME_INPUT="inputs",FLOW_INPUT_NODE_NAME="inputs",FLOW_OUTPUT_NODE_NAME="outputs",isFlowInput=eo=>[FLOW_INPUT_REF_NAME_FLOW,FLOW_INPUT_REF_NAME_INPUT].includes(eo),SystemColors=["#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 ValidationErrorType=(eo=>(eo.CircularDependency="CircularDependency",eo.InputDependencyNotFound="InputDependencyNotFound",eo.InputGenerateError="InputGenerateError",eo.InputSelfReference="InputSelfReference",eo.InputEmpty="InputEmpty",eo.InputInvalidType="InputInvalidType",eo.NodeConfigInvalid="NodeConfigInvalid",eo.UnparsedCode="UnparsedCode",eo.EmptyCode="EmptyCode",eo.MissingTool="MissingTool",eo.AutoParseInputError="AutoParseInputError",eo.RuntimeNameEmpty="RuntimeNameEmpty",eo.RuntimeStatusInvalid="RuntimeStatusInvalid",eo))(ValidationErrorType||{}),ChatMessageFrom=(eo=>(eo.System="system",eo.ErrorHandler="error",eo.Chatbot="chatbot",eo.User="user",eo))(ChatMessageFrom||{}),ChatMessageType$1=(eo=>(eo.Text="text",eo.Typing="typing",eo.SessionSplit="session-split",eo))(ChatMessageType$1||{});const convertToBool=eo=>eo==="true"||eo==="True"||eo===!0,basicValueTypeDetector=eo=>Array.isArray(eo)?ValueType.list:typeof eo=="boolean"?ValueType.bool:typeof eo=="string"?ValueType.string:typeof eo=="number"?Number.isInteger(eo)?ValueType.int:ValueType.double:ValueType.object;function valueStringify(eo){if(eo==null)return;switch(basicValueTypeDetector(eo)){case ValueType.string:return eo;case ValueType.int:case ValueType.double:return eo.toString();case ValueType.bool:return eo?"True":"False";case ValueType.object:case ValueType.list:return JSON.stringify(eo);default:return String(eo)}}var lodash$1={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 - */lodash$1.exports;(function(eo,to){(function(){var ro,no="4.17.21",oo=200,io="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",so="Expected a function",ao="Invalid `variable` option passed into `_.template`",lo="__lodash_hash_undefined__",uo=500,co="__lodash_placeholder__",fo=1,po=2,ho=4,mo=1,vo=2,bo=1,xo=2,_o=4,So=8,Eo=16,ko=32,wo=64,Co=128,Ro=256,Ao=512,Io=30,$o="...",Bo=800,Mo=16,Ho=1,jo=2,Oo=3,Fo=1/0,Go=9007199254740991,qo=17976931348623157e292,Xo=NaN,Zo=4294967295,Qo=Zo-1,xs=Zo>>>1,Ts=[["ary",Co],["bind",bo],["bindKey",xo],["curry",So],["curryRight",Eo],["flip",Ao],["partial",ko],["partialRight",wo],["rearg",Ro]],Rs="[object Arguments]",Os="[object Array]",As="[object AsyncFunction]",Ds="[object Boolean]",Jo="[object Date]",Cs="[object DOMException]",Bs="[object Error]",zs="[object Function]",Ls="[object GeneratorFunction]",ga="[object Map]",Js="[object Number]",Zs="[object Null]",$a="[object Object]",Ll="[object Promise]",Kl="[object Proxy]",Zl="[object RegExp]",$l="[object Set]",xa="[object String]",Sl="[object Symbol]",cu="[object Undefined]",ks="[object WeakMap]",Es="[object WeakSet]",bs="[object ArrayBuffer]",ws="[object DataView]",Gs="[object Float32Array]",Ks="[object Float64Array]",Ms="[object Int8Array]",Hs="[object Int16Array]",Qs="[object Int32Array]",El="[object Uint8Array]",xl="[object Uint8ClampedArray]",Ol="[object Uint16Array]",ru="[object Uint32Array]",au=/\b__p \+= '';/g,zl=/\b(__p \+=) '' \+/g,hu=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xu=/&(?:amp|lt|gt|quot|#39);/g,Ql=/[&<>"']/g,Dl=RegExp(xu.source),gu=RegExp(Ql.source),lu=/<%-([\s\S]+?)%>/g,mu=/<%([\s\S]+?)%>/g,ou=/<%=([\s\S]+?)%>/g,Fl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yl=/^\w*$/,Xs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vu=/[\\^$.*+?()[\]{}|]/g,$u=RegExp(vu.source),du=/^\s+/,d1=/\s/,qu=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Iu=/\{\n\/\* \[wrapped with (.+)\] \*/,e1=/,? & /,qs=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ko=/[()=,{}\[\]\/\s]/,Uo=/\\(\\)?/g,Po=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,zo=/\w*$/,Do=/^[-+]0x[0-9a-f]+$/i,Yo=/^0b[01]+$/i,vs=/^\[object .+?Constructor\]$/,ys=/^0o[0-7]+$/i,hs=/^(?:0|[1-9]\d*)$/,Is=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Us=/($^)/,Il=/['\n\r\u2028\u2029\\]/g,Ml="\\ud800-\\udfff",Rl="\\u0300-\\u036f",Cl="\\ufe20-\\ufe2f",Ul="\\u20d0-\\u20ff",fu=Rl+Cl+Ul,Bl="\\u2700-\\u27bf",Su="a-z\\xdf-\\xf6\\xf8-\\xff",Nu="\\xac\\xb1\\xd7\\xf7",zu="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",f1="\\u2000-\\u206f",Xu=" \\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",A1="A-Z\\xc0-\\xd6\\xd8-\\xde",p1="\\ufe0e\\ufe0f",Au=Nu+zu+f1+Xu,t1="['’]",w1="["+Ml+"]",h1="["+Au+"]",R1="["+fu+"]",g1="\\d+",H1="["+Bl+"]",E1="["+Su+"]",I1="[^"+Ml+Au+g1+Bl+Su+A1+"]",N1="\\ud83c[\\udffb-\\udfff]",x1="(?:"+R1+"|"+N1+")",S1="[^"+Ml+"]",pp="(?:\\ud83c[\\udde6-\\uddff]){2}",Ip="[\\ud800-\\udbff][\\udc00-\\udfff]",G1="["+A1+"]",Zp="\\u200d",Np="(?:"+E1+"|"+I1+")",tp="(?:"+G1+"|"+I1+")",hp="(?:"+t1+"(?:d|ll|m|re|s|t|ve))?",gp="(?:"+t1+"(?:D|LL|M|RE|S|T|VE))?",rp=x1+"?",V1="["+p1+"]?",Fm="(?:"+Zp+"(?:"+[S1,pp,Ip].join("|")+")"+V1+rp+")*",Qp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",jm="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",$p=V1+rp+Fm,Pm="(?:"+[H1,pp,Ip].join("|")+")"+$p,zm="(?:"+[S1+R1+"?",R1,pp,Ip,w1].join("|")+")",np=RegExp(t1,"g"),Hm=RegExp(R1,"g"),q1=RegExp(N1+"(?="+N1+")|"+zm+$p,"g"),Jp=RegExp([G1+"?"+E1+"+"+hp+"(?="+[h1,G1,"$"].join("|")+")",tp+"+"+gp+"(?="+[h1,G1+Np,"$"].join("|")+")",G1+"?"+Np+"+"+hp,G1+"+"+gp,jm,Qp,g1,Pm].join("|"),"g"),Ys=RegExp("["+Zp+Ml+fu+p1+"]"),na=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Wl=["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"],Hl=-1,Al={};Al[Gs]=Al[Ks]=Al[Ms]=Al[Hs]=Al[Qs]=Al[El]=Al[xl]=Al[Ol]=Al[ru]=!0,Al[Rs]=Al[Os]=Al[bs]=Al[Ds]=Al[ws]=Al[Jo]=Al[Bs]=Al[zs]=Al[ga]=Al[Js]=Al[$a]=Al[Zl]=Al[$l]=Al[xa]=Al[ks]=!1;var Nl={};Nl[Rs]=Nl[Os]=Nl[bs]=Nl[ws]=Nl[Ds]=Nl[Jo]=Nl[Gs]=Nl[Ks]=Nl[Ms]=Nl[Hs]=Nl[Qs]=Nl[ga]=Nl[Js]=Nl[$a]=Nl[Zl]=Nl[$l]=Nl[xa]=Nl[Sl]=Nl[El]=Nl[xl]=Nl[Ol]=Nl[ru]=!0,Nl[Bs]=Nl[zs]=Nl[ks]=!1;var bu={À:"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"},_u={"&":"&","<":"<",">":">",'"':""","'":"'"},Ou={"&":"&","<":"<",">":">",""":'"',"'":"'"},r1={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},$1=parseFloat,Gm=parseInt,mp=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,Op=typeof self=="object"&&self&&self.Object===Object&&self,Du=mp||Op||Function("return this")(),Vm=to&&!to.nodeType&&to,op=Vm&&!0&&eo&&!eo.nodeType&&eo,nv=op&&op.exports===Vm,qm=nv&&mp.process,n1=function(){try{var _s=op&&op.require&&op.require("util").types;return _s||qm&&qm.binding&&qm.binding("util")}catch{}}(),ov=n1&&n1.isArrayBuffer,iv=n1&&n1.isDate,sv=n1&&n1.isMap,av=n1&&n1.isRegExp,lv=n1&&n1.isSet,uv=n1&&n1.isTypedArray;function Zu(_s,$s,Ns){switch(Ns.length){case 0:return _s.call($s);case 1:return _s.call($s,Ns[0]);case 2:return _s.call($s,Ns[0],Ns[1]);case 3:return _s.call($s,Ns[0],Ns[1],Ns[2])}return _s.apply($s,Ns)}function d_(_s,$s,Ns,_l){for(var Yl=-1,uu=_s==null?0:_s.length;++Yl-1}function Wm(_s,$s,Ns){for(var _l=-1,Yl=_s==null?0:_s.length;++_l-1;);return Ns}function vv(_s,$s){for(var Ns=_s.length;Ns--&&vp($s,_s[Ns],0)>-1;);return Ns}function __(_s,$s){for(var Ns=_s.length,_l=0;Ns--;)_s[Ns]===$s&&++_l;return _l}var E_=Xm(bu),x_=Xm(_u);function S_(_s){return"\\"+r1[_s]}function T_(_s,$s){return _s==null?ro:_s[$s]}function yp(_s){return Ys.test(_s)}function k_(_s){return na.test(_s)}function C_(_s){for(var $s,Ns=[];!($s=_s.next()).done;)Ns.push($s.value);return Ns}function e0(_s){var $s=-1,Ns=Array(_s.size);return _s.forEach(function(_l,Yl){Ns[++$s]=[Yl,_l]}),Ns}function yv(_s,$s){return function(Ns){return _s($s(Ns))}}function U1(_s,$s){for(var Ns=-1,_l=_s.length,Yl=0,uu=[];++Ns<_l;){var Mu=_s[Ns];(Mu===$s||Mu===co)&&(_s[Ns]=co,uu[Yl++]=Ns)}return uu}function em(_s){var $s=-1,Ns=Array(_s.size);return _s.forEach(function(_l){Ns[++$s]=_l}),Ns}function A_(_s){var $s=-1,Ns=Array(_s.size);return _s.forEach(function(_l){Ns[++$s]=[_l,_l]}),Ns}function w_(_s,$s,Ns){for(var _l=Ns-1,Yl=_s.length;++_l-1}function pE(go,yo){var To=this.__data__,No=gm(To,go);return No<0?(++this.size,To.push([go,yo])):To[No][1]=yo,this}O1.prototype.clear=uE,O1.prototype.delete=cE,O1.prototype.get=dE,O1.prototype.has=fE,O1.prototype.set=pE;function D1(go){var yo=-1,To=go==null?0:go.length;for(this.clear();++yo=yo?go:yo)),go}function a1(go,yo,To,No,Lo,Wo){var ps,gs=yo&fo,Ss=yo&po,Fs=yo&ho;if(To&&(ps=Lo?To(go,No,Lo,Wo):To(go)),ps!==ro)return ps;if(!ku(go))return go;var Ps=Xl(go);if(Ps){if(ps=bx(go),!gs)return Wu(go,ps)}else{var Vs=Pu(go),ba=Vs==zs||Vs==Ls;if(ep(go))return ey(go,gs);if(Vs==$a||Vs==Rs||ba&&!Lo){if(ps=Ss||ba?{}:by(go),!gs)return Ss?sx(go,RE(ps,go)):ix(go,Iv(ps,go))}else{if(!Nl[Vs])return Lo?go:{};ps=_x(go,Vs,gs)}}Wo||(Wo=new y1);var Tl=Wo.get(go);if(Tl)return Tl;Wo.set(go,ps),Uy(go)?go.forEach(function(Vl){ps.add(a1(Vl,yo,To,Vl,go,Wo))}):Wy(go)&&go.forEach(function(Vl,nu){ps.set(nu,a1(Vl,yo,To,nu,go,Wo))});var Gl=Fs?Ss?C0:k0:Ss?Uu:Lu,eu=Ps?ro:Gl(go);return o1(eu||go,function(Vl,nu){eu&&(nu=Vl,Vl=go[nu]),Pp(ps,nu,a1(Vl,yo,To,nu,go,Wo))}),ps}function IE(go){var yo=Lu(go);return function(To){return Nv(To,go,yo)}}function Nv(go,yo,To){var No=To.length;if(go==null)return!No;for(go=Eu(go);No--;){var Lo=To[No],Wo=yo[Lo],ps=go[Lo];if(ps===ro&&!(Lo in go)||!Wo(ps))return!1}return!0}function $v(go,yo,To){if(typeof go!="function")throw new i1(so);return Kp(function(){go.apply(ro,To)},yo)}function zp(go,yo,To,No){var Lo=-1,Wo=_h,ps=!0,gs=go.length,Ss=[],Fs=yo.length;if(!gs)return Ss;To&&(yo=Tu(yo,Qu(To))),No?(Wo=Wm,ps=!1):yo.length>=oo&&(Wo=Dp,ps=!1,yo=new ap(yo));e:for(;++LoLo?0:Lo+To),No=No===ro||No>Lo?Lo:Jl(No),No<0&&(No+=Lo),No=To>No?0:Xy(No);To0&&To(gs)?yo>1?Fu(gs,yo-1,To,No,Lo):K1(Lo,gs):No||(Lo[Lo.length]=gs)}return Lo}var a0=sy(),Mv=sy(!0);function T1(go,yo){return go&&a0(go,yo,Lu)}function l0(go,yo){return go&&Mv(go,yo,Lu)}function vm(go,yo){return W1(yo,function(To){return j1(go[To])})}function up(go,yo){yo=Q1(yo,go);for(var To=0,No=yo.length;go!=null&&Toyo}function OE(go,yo){return go!=null&&yu.call(go,yo)}function DE(go,yo){return go!=null&&yo in Eu(go)}function ME(go,yo,To){return go>=ju(yo,To)&&go=120&&Ps.length>=120)?new ap(ps&&Ps):ro}Ps=go[0];var Vs=-1,ba=gs[0];e:for(;++Vs-1;)gs!==go&&lm.call(gs,Ss,1),lm.call(go,Ss,1);return go}function Wv(go,yo){for(var To=go?yo.length:0,No=To-1;To--;){var Lo=yo[To];if(To==No||Lo!==Wo){var Wo=Lo;F1(Lo)?lm.call(go,Lo,1):y0(go,Lo)}}return go}function g0(go,yo){return go+dm(Cv()*(yo-go+1))}function UE(go,yo,To,No){for(var Lo=-1,Wo=Bu(cm((yo-go)/(To||1)),0),ps=Ns(Wo);Wo--;)ps[No?Wo:++Lo]=go,go+=To;return ps}function m0(go,yo){var To="";if(!go||yo<1||yo>Go)return To;do yo%2&&(To+=go),yo=dm(yo/2),yo&&(go+=go);while(yo);return To}function tu(go,yo){return O0(xy(go,yo,Yu),go+"")}function YE(go){return Rv(Rp(go))}function XE(go,yo){var To=Rp(go);return wm(To,lp(yo,0,To.length))}function Vp(go,yo,To,No){if(!ku(go))return go;yo=Q1(yo,go);for(var Lo=-1,Wo=yo.length,ps=Wo-1,gs=go;gs!=null&&++LoLo?0:Lo+yo),To=To>Lo?Lo:To,To<0&&(To+=Lo),Lo=yo>To?0:To-yo>>>0,yo>>>=0;for(var Wo=Ns(Lo);++No>>1,ps=go[Wo];ps!==null&&!_c(ps)&&(To?ps<=yo:ps=oo){var Fs=yo?null:dx(go);if(Fs)return em(Fs);ps=!1,Lo=Dp,Ss=new ap}else Ss=yo?[]:gs;e:for(;++No=No?go:l1(go,yo,To)}var Jv=z_||function(go){return Du.clearTimeout(go)};function ey(go,yo){if(yo)return go.slice();var To=go.length,No=Ev?Ev(To):new go.constructor(To);return go.copy(No),No}function x0(go){var yo=new go.constructor(go.byteLength);return new sm(yo).set(new sm(go)),yo}function tx(go,yo){var To=yo?x0(go.buffer):go.buffer;return new go.constructor(To,go.byteOffset,go.byteLength)}function rx(go){var yo=new go.constructor(go.source,zo.exec(go));return yo.lastIndex=go.lastIndex,yo}function nx(go){return jp?Eu(jp.call(go)):{}}function ty(go,yo){var To=yo?x0(go.buffer):go.buffer;return new go.constructor(To,go.byteOffset,go.length)}function ry(go,yo){if(go!==yo){var To=go!==ro,No=go===null,Lo=go===go,Wo=_c(go),ps=yo!==ro,gs=yo===null,Ss=yo===yo,Fs=_c(yo);if(!gs&&!Fs&&!Wo&&go>yo||Wo&&ps&&Ss&&!gs&&!Fs||No&&ps&&Ss||!To&&Ss||!Lo)return 1;if(!No&&!Wo&&!Fs&&go=gs)return Ss;var Fs=To[No];return Ss*(Fs=="desc"?-1:1)}}return go.index-yo.index}function ny(go,yo,To,No){for(var Lo=-1,Wo=go.length,ps=To.length,gs=-1,Ss=yo.length,Fs=Bu(Wo-ps,0),Ps=Ns(Ss+Fs),Vs=!No;++gs1?To[Lo-1]:ro,ps=Lo>2?To[2]:ro;for(Wo=go.length>3&&typeof Wo=="function"?(Lo--,Wo):ro,ps&&Gu(To[0],To[1],ps)&&(Wo=Lo<3?ro:Wo,Lo=1),yo=Eu(yo);++No-1?Lo[Wo?yo[ps]:ps]:ro}}function uy(go){return L1(function(yo){var To=yo.length,No=To,Lo=s1.prototype.thru;for(go&&yo.reverse();No--;){var Wo=yo[No];if(typeof Wo!="function")throw new i1(so);if(Lo&&!ps&&Cm(Wo)=="wrapper")var ps=new s1([],!0)}for(No=ps?No:To;++No1&&su.reverse(),Ps&&Ssgs))return!1;var Fs=Wo.get(go),Ps=Wo.get(yo);if(Fs&&Ps)return Fs==yo&&Ps==go;var Vs=-1,ba=!0,Tl=To&vo?new ap:ro;for(Wo.set(go,yo),Wo.set(yo,go);++Vs1?"& ":"")+yo[No],yo=yo.join(To>2?", ":" "),go.replace(qu,`{ -/* [wrapped with `+yo+`] */ -`)}function xx(go){return Xl(go)||fp(go)||!!(Tv&&go&&go[Tv])}function F1(go,yo){var To=typeof go;return yo=yo??Go,!!yo&&(To=="number"||To!="symbol"&&hs.test(go))&&go>-1&&go%1==0&&go0){if(++yo>=Bo)return arguments[0]}else yo=0;return go.apply(ro,arguments)}}function wm(go,yo){var To=-1,No=go.length,Lo=No-1;for(yo=yo===ro?No:yo;++To1?go[yo-1]:ro;return To=typeof To=="function"?(go.pop(),To):ro,Dy(go,To)});function My(go){var yo=Vo(go);return yo.__chain__=!0,yo}function OS(go,yo){return yo(go),go}function Rm(go,yo){return yo(go)}var DS=L1(function(go){var yo=go.length,To=yo?go[0]:0,No=this.__wrapped__,Lo=function(Wo){return s0(Wo,go)};return yo>1||this.__actions__.length||!(No instanceof iu)||!F1(To)?this.thru(Lo):(No=No.slice(To,+To+(yo?1:0)),No.__actions__.push({func:Rm,args:[Lo],thisArg:ro}),new s1(No,this.__chain__).thru(function(Wo){return yo&&!Wo.length&&Wo.push(ro),Wo}))});function BS(){return My(this)}function LS(){return new s1(this.value(),this.__chain__)}function FS(){this.__values__===ro&&(this.__values__=Yy(this.value()));var go=this.__index__>=this.__values__.length,yo=go?ro:this.__values__[this.__index__++];return{done:go,value:yo}}function jS(){return this}function PS(go){for(var yo,To=this;To instanceof hm;){var No=wy(To);No.__index__=0,No.__values__=ro,yo?Lo.__wrapped__=No:yo=No;var Lo=No;To=To.__wrapped__}return Lo.__wrapped__=go,yo}function zS(){var go=this.__wrapped__;if(go instanceof iu){var yo=go;return this.__actions__.length&&(yo=new iu(this)),yo=yo.reverse(),yo.__actions__.push({func:Rm,args:[D0],thisArg:ro}),new s1(yo,this.__chain__)}return this.thru(D0)}function HS(){return Zv(this.__wrapped__,this.__actions__)}var GS=Em(function(go,yo,To){yu.call(go,To)?++go[To]:M1(go,To,1)});function VS(go,yo,To){var No=Xl(go)?cv:NE;return To&&Gu(go,yo,To)&&(yo=ro),No(go,Pl(yo,3))}function qS(go,yo){var To=Xl(go)?W1:Dv;return To(go,Pl(yo,3))}var WS=ly(Ry),KS=ly(Iy);function US(go,yo){return Fu(Im(go,yo),1)}function YS(go,yo){return Fu(Im(go,yo),Fo)}function XS(go,yo,To){return To=To===ro?1:Jl(To),Fu(Im(go,yo),To)}function By(go,yo){var To=Xl(go)?o1:X1;return To(go,Pl(yo,3))}function Ly(go,yo){var To=Xl(go)?f_:Ov;return To(go,Pl(yo,3))}var ZS=Em(function(go,yo,To){yu.call(go,To)?go[To].push(yo):M1(go,To,[yo])});function QS(go,yo,To,No){go=Ku(go)?go:Rp(go),To=To&&!No?Jl(To):0;var Lo=go.length;return To<0&&(To=Bu(Lo+To,0)),Mm(go)?To<=Lo&&go.indexOf(yo,To)>-1:!!Lo&&vp(go,yo,To)>-1}var JS=tu(function(go,yo,To){var No=-1,Lo=typeof yo=="function",Wo=Ku(go)?Ns(go.length):[];return X1(go,function(ps){Wo[++No]=Lo?Zu(yo,ps,To):Hp(ps,yo,To)}),Wo}),eT=Em(function(go,yo,To){M1(go,To,yo)});function Im(go,yo){var To=Xl(go)?Tu:Pv;return To(go,Pl(yo,3))}function tT(go,yo,To,No){return go==null?[]:(Xl(yo)||(yo=yo==null?[]:[yo]),To=No?ro:To,Xl(To)||(To=To==null?[]:[To]),Vv(go,yo,To))}var rT=Em(function(go,yo,To){go[To?0:1].push(yo)},function(){return[[],[]]});function nT(go,yo,To){var No=Xl(go)?Km:hv,Lo=arguments.length<3;return No(go,Pl(yo,4),To,Lo,X1)}function oT(go,yo,To){var No=Xl(go)?p_:hv,Lo=arguments.length<3;return No(go,Pl(yo,4),To,Lo,Ov)}function iT(go,yo){var To=Xl(go)?W1:Dv;return To(go,Om(Pl(yo,3)))}function sT(go){var yo=Xl(go)?Rv:YE;return yo(go)}function aT(go,yo,To){(To?Gu(go,yo,To):yo===ro)?yo=1:yo=Jl(yo);var No=Xl(go)?CE:XE;return No(go,yo)}function lT(go){var yo=Xl(go)?AE:QE;return yo(go)}function uT(go){if(go==null)return 0;if(Ku(go))return Mm(go)?bp(go):go.length;var yo=Pu(go);return yo==ga||yo==$l?go.size:f0(go).length}function cT(go,yo,To){var No=Xl(go)?Um:JE;return To&&Gu(go,yo,To)&&(yo=ro),No(go,Pl(yo,3))}var dT=tu(function(go,yo){if(go==null)return[];var To=yo.length;return To>1&&Gu(go,yo[0],yo[1])?yo=[]:To>2&&Gu(yo[0],yo[1],yo[2])&&(yo=[yo[0]]),Vv(go,Fu(yo,1),[])}),Nm=H_||function(){return Du.Date.now()};function fT(go,yo){if(typeof yo!="function")throw new i1(so);return go=Jl(go),function(){if(--go<1)return yo.apply(this,arguments)}}function Fy(go,yo,To){return yo=To?ro:yo,yo=go&&yo==null?go.length:yo,B1(go,Co,ro,ro,ro,ro,yo)}function jy(go,yo){var To;if(typeof yo!="function")throw new i1(so);return go=Jl(go),function(){return--go>0&&(To=yo.apply(this,arguments)),go<=1&&(yo=ro),To}}var B0=tu(function(go,yo,To){var No=bo;if(To.length){var Lo=U1(To,Ap(B0));No|=ko}return B1(go,No,yo,To,Lo)}),Py=tu(function(go,yo,To){var No=bo|xo;if(To.length){var Lo=U1(To,Ap(Py));No|=ko}return B1(yo,No,go,To,Lo)});function zy(go,yo,To){yo=To?ro:yo;var No=B1(go,So,ro,ro,ro,ro,ro,yo);return No.placeholder=zy.placeholder,No}function Hy(go,yo,To){yo=To?ro:yo;var No=B1(go,Eo,ro,ro,ro,ro,ro,yo);return No.placeholder=Hy.placeholder,No}function Gy(go,yo,To){var No,Lo,Wo,ps,gs,Ss,Fs=0,Ps=!1,Vs=!1,ba=!0;if(typeof go!="function")throw new i1(so);yo=c1(yo)||0,ku(To)&&(Ps=!!To.leading,Vs="maxWait"in To,Wo=Vs?Bu(c1(To.maxWait)||0,yo):Wo,ba="trailing"in To?!!To.trailing:ba);function Tl(Ru){var _1=No,z1=Lo;return No=Lo=ro,Fs=Ru,ps=go.apply(z1,_1),ps}function Gl(Ru){return Fs=Ru,gs=Kp(nu,yo),Ps?Tl(Ru):ps}function eu(Ru){var _1=Ru-Ss,z1=Ru-Fs,a_=yo-_1;return Vs?ju(a_,Wo-z1):a_}function Vl(Ru){var _1=Ru-Ss,z1=Ru-Fs;return Ss===ro||_1>=yo||_1<0||Vs&&z1>=Wo}function nu(){var Ru=Nm();if(Vl(Ru))return su(Ru);gs=Kp(nu,eu(Ru))}function su(Ru){return gs=ro,ba&&No?Tl(Ru):(No=Lo=ro,ps)}function _d(){gs!==ro&&Jv(gs),Fs=0,No=Ss=Lo=gs=ro}function Vu(){return gs===ro?ps:su(Nm())}function _f(){var Ru=Nm(),_1=Vl(Ru);if(No=arguments,Lo=this,Ss=Ru,_1){if(gs===ro)return Gl(Ss);if(Vs)return Jv(gs),gs=Kp(nu,yo),Tl(Ss)}return gs===ro&&(gs=Kp(nu,yo)),ps}return _f.cancel=_d,_f.flush=Vu,_f}var pT=tu(function(go,yo){return $v(go,1,yo)}),hT=tu(function(go,yo,To){return $v(go,c1(yo)||0,To)});function gT(go){return B1(go,Ao)}function $m(go,yo){if(typeof go!="function"||yo!=null&&typeof yo!="function")throw new i1(so);var To=function(){var No=arguments,Lo=yo?yo.apply(this,No):No[0],Wo=To.cache;if(Wo.has(Lo))return Wo.get(Lo);var ps=go.apply(this,No);return To.cache=Wo.set(Lo,ps)||Wo,ps};return To.cache=new($m.Cache||D1),To}$m.Cache=D1;function Om(go){if(typeof go!="function")throw new i1(so);return function(){var yo=arguments;switch(yo.length){case 0:return!go.call(this);case 1:return!go.call(this,yo[0]);case 2:return!go.call(this,yo[0],yo[1]);case 3:return!go.call(this,yo[0],yo[1],yo[2])}return!go.apply(this,yo)}}function mT(go){return jy(2,go)}var vT=ex(function(go,yo){yo=yo.length==1&&Xl(yo[0])?Tu(yo[0],Qu(Pl())):Tu(Fu(yo,1),Qu(Pl()));var To=yo.length;return tu(function(No){for(var Lo=-1,Wo=ju(No.length,To);++Lo=yo}),fp=Lv(function(){return arguments}())?Lv:function(go){return Cu(go)&&yu.call(go,"callee")&&!Sv.call(go,"callee")},Xl=Ns.isArray,$T=ov?Qu(ov):LE;function Ku(go){return go!=null&&Dm(go.length)&&!j1(go)}function wu(go){return Cu(go)&&Ku(go)}function OT(go){return go===!0||go===!1||Cu(go)&&Hu(go)==Ds}var ep=V_||U0,DT=iv?Qu(iv):FE;function MT(go){return Cu(go)&&go.nodeType===1&&!Up(go)}function BT(go){if(go==null)return!0;if(Ku(go)&&(Xl(go)||typeof go=="string"||typeof go.splice=="function"||ep(go)||wp(go)||fp(go)))return!go.length;var yo=Pu(go);if(yo==ga||yo==$l)return!go.size;if(Wp(go))return!f0(go).length;for(var To in go)if(yu.call(go,To))return!1;return!0}function LT(go,yo){return Gp(go,yo)}function FT(go,yo,To){To=typeof To=="function"?To:ro;var No=To?To(go,yo):ro;return No===ro?Gp(go,yo,ro,To):!!No}function F0(go){if(!Cu(go))return!1;var yo=Hu(go);return yo==Bs||yo==Cs||typeof go.message=="string"&&typeof go.name=="string"&&!Up(go)}function jT(go){return typeof go=="number"&&kv(go)}function j1(go){if(!ku(go))return!1;var yo=Hu(go);return yo==zs||yo==Ls||yo==As||yo==Kl}function qy(go){return typeof go=="number"&&go==Jl(go)}function Dm(go){return typeof go=="number"&&go>-1&&go%1==0&&go<=Go}function ku(go){var yo=typeof go;return go!=null&&(yo=="object"||yo=="function")}function Cu(go){return go!=null&&typeof go=="object"}var Wy=sv?Qu(sv):PE;function PT(go,yo){return go===yo||d0(go,yo,w0(yo))}function zT(go,yo,To){return To=typeof To=="function"?To:ro,d0(go,yo,w0(yo),To)}function HT(go){return Ky(go)&&go!=+go}function GT(go){if(kx(go))throw new Yl(io);return Fv(go)}function VT(go){return go===null}function qT(go){return go==null}function Ky(go){return typeof go=="number"||Cu(go)&&Hu(go)==Js}function Up(go){if(!Cu(go)||Hu(go)!=$a)return!1;var yo=am(go);if(yo===null)return!0;var To=yu.call(yo,"constructor")&&yo.constructor;return typeof To=="function"&&To instanceof To&&nm.call(To)==F_}var j0=av?Qu(av):zE;function WT(go){return qy(go)&&go>=-Go&&go<=Go}var Uy=lv?Qu(lv):HE;function Mm(go){return typeof go=="string"||!Xl(go)&&Cu(go)&&Hu(go)==xa}function _c(go){return typeof go=="symbol"||Cu(go)&&Hu(go)==Sl}var wp=uv?Qu(uv):GE;function KT(go){return go===ro}function UT(go){return Cu(go)&&Pu(go)==ks}function YT(go){return Cu(go)&&Hu(go)==Es}var XT=km(p0),ZT=km(function(go,yo){return go<=yo});function Yy(go){if(!go)return[];if(Ku(go))return Mm(go)?m1(go):Wu(go);if(Mp&&go[Mp])return C_(go[Mp]());var yo=Pu(go),To=yo==ga?e0:yo==$l?em:Rp;return To(go)}function P1(go){if(!go)return go===0?go:0;if(go=c1(go),go===Fo||go===-Fo){var yo=go<0?-1:1;return yo*qo}return go===go?go:0}function Jl(go){var yo=P1(go),To=yo%1;return yo===yo?To?yo-To:yo:0}function Xy(go){return go?lp(Jl(go),0,Zo):0}function c1(go){if(typeof go=="number")return go;if(_c(go))return Xo;if(ku(go)){var yo=typeof go.valueOf=="function"?go.valueOf():go;go=ku(yo)?yo+"":yo}if(typeof go!="string")return go===0?go:+go;go=gv(go);var To=Yo.test(go);return To||ys.test(go)?Gm(go.slice(2),To?2:8):Do.test(go)?Xo:+go}function Zy(go){return k1(go,Uu(go))}function QT(go){return go?lp(Jl(go),-Go,Go):go===0?go:0}function pu(go){return go==null?"":Ju(go)}var JT=kp(function(go,yo){if(Wp(yo)||Ku(yo)){k1(yo,Lu(yo),go);return}for(var To in yo)yu.call(yo,To)&&Pp(go,To,yo[To])}),Qy=kp(function(go,yo){k1(yo,Uu(yo),go)}),Bm=kp(function(go,yo,To,No){k1(yo,Uu(yo),go,No)}),_k=kp(function(go,yo,To,No){k1(yo,Lu(yo),go,No)}),eC=L1(s0);function tC(go,yo){var To=Tp(go);return yo==null?To:Iv(To,yo)}var rC=tu(function(go,yo){go=Eu(go);var To=-1,No=yo.length,Lo=No>2?yo[2]:ro;for(Lo&&Gu(yo[0],yo[1],Lo)&&(No=1);++To1),Wo}),k1(go,C0(go),To),No&&(To=a1(To,fo|po|ho,fx));for(var Lo=yo.length;Lo--;)y0(To,yo[Lo]);return To});function _C(go,yo){return _b(go,Om(Pl(yo)))}var EC=L1(function(go,yo){return go==null?{}:WE(go,yo)});function _b(go,yo){if(go==null)return{};var To=Tu(C0(go),function(No){return[No]});return yo=Pl(yo),qv(go,To,function(No,Lo){return yo(No,Lo[0])})}function xC(go,yo,To){yo=Q1(yo,go);var No=-1,Lo=yo.length;for(Lo||(Lo=1,go=ro);++Noyo){var No=go;go=yo,yo=No}if(To||go%1||yo%1){var Lo=Cv();return ju(go+Lo*(yo-go+$1("1e-"+((Lo+"").length-1))),yo)}return g0(go,yo)}var OC=Cp(function(go,yo,To){return yo=yo.toLowerCase(),go+(To?r_(yo):yo)});function r_(go){return H0(pu(go).toLowerCase())}function n_(go){return go=pu(go),go&&go.replace(Is,E_).replace(Hm,"")}function DC(go,yo,To){go=pu(go),yo=Ju(yo);var No=go.length;To=To===ro?No:lp(Jl(To),0,No);var Lo=To;return To-=yo.length,To>=0&&go.slice(To,Lo)==yo}function MC(go){return go=pu(go),go&&gu.test(go)?go.replace(Ql,x_):go}function BC(go){return go=pu(go),go&&$u.test(go)?go.replace(vu,"\\$&"):go}var LC=Cp(function(go,yo,To){return go+(To?"-":"")+yo.toLowerCase()}),FC=Cp(function(go,yo,To){return go+(To?" ":"")+yo.toLowerCase()}),jC=ay("toLowerCase");function PC(go,yo,To){go=pu(go),yo=Jl(yo);var No=yo?bp(go):0;if(!yo||No>=yo)return go;var Lo=(yo-No)/2;return Tm(dm(Lo),To)+go+Tm(cm(Lo),To)}function zC(go,yo,To){go=pu(go),yo=Jl(yo);var No=yo?bp(go):0;return yo&&No>>0,To?(go=pu(go),go&&(typeof yo=="string"||yo!=null&&!j0(yo))&&(yo=Ju(yo),!yo&&yp(go))?J1(m1(go),0,To):go.split(yo,To)):[]}var UC=Cp(function(go,yo,To){return go+(To?" ":"")+H0(yo)});function YC(go,yo,To){return go=pu(go),To=To==null?0:lp(Jl(To),0,go.length),yo=Ju(yo),go.slice(To,To+yo.length)==yo}function XC(go,yo,To){var No=Vo.templateSettings;To&&Gu(go,yo,To)&&(yo=ro),go=pu(go),yo=Bm({},yo,No,hy);var Lo=Bm({},yo.imports,No.imports,hy),Wo=Lu(Lo),ps=Jm(Lo,Wo),gs,Ss,Fs=0,Ps=yo.interpolate||Us,Vs="__p += '",ba=t0((yo.escape||Us).source+"|"+Ps.source+"|"+(Ps===ou?Po:Us).source+"|"+(yo.evaluate||Us).source+"|$","g"),Tl="//# sourceURL="+(yu.call(yo,"sourceURL")?(yo.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Hl+"]")+` -`;go.replace(ba,function(Vl,nu,su,_d,Vu,_f){return su||(su=_d),Vs+=go.slice(Fs,_f).replace(Il,S_),nu&&(gs=!0,Vs+=`' + -__e(`+nu+`) + -'`),Vu&&(Ss=!0,Vs+=`'; -`+Vu+`; -__p += '`),su&&(Vs+=`' + -((__t = (`+su+`)) == null ? '' : __t) + -'`),Fs=_f+Vl.length,Vl}),Vs+=`'; -`;var Gl=yu.call(yo,"variable")&&yo.variable;if(!Gl)Vs=`with (obj) { -`+Vs+` -} -`;else if(Ko.test(Gl))throw new Yl(ao);Vs=(Ss?Vs.replace(au,""):Vs).replace(zl,"$1").replace(hu,"$1;"),Vs="function("+(Gl||"obj")+`) { -`+(Gl?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(gs?", __e = _.escape":"")+(Ss?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+Vs+`return __p -}`;var eu=i_(function(){return uu(Wo,Tl+"return "+Vs).apply(ro,ps)});if(eu.source=Vs,F0(eu))throw eu;return eu}function ZC(go){return pu(go).toLowerCase()}function QC(go){return pu(go).toUpperCase()}function JC(go,yo,To){if(go=pu(go),go&&(To||yo===ro))return gv(go);if(!go||!(yo=Ju(yo)))return go;var No=m1(go),Lo=m1(yo),Wo=mv(No,Lo),ps=vv(No,Lo)+1;return J1(No,Wo,ps).join("")}function eA(go,yo,To){if(go=pu(go),go&&(To||yo===ro))return go.slice(0,bv(go)+1);if(!go||!(yo=Ju(yo)))return go;var No=m1(go),Lo=vv(No,m1(yo))+1;return J1(No,0,Lo).join("")}function tA(go,yo,To){if(go=pu(go),go&&(To||yo===ro))return go.replace(du,"");if(!go||!(yo=Ju(yo)))return go;var No=m1(go),Lo=mv(No,m1(yo));return J1(No,Lo).join("")}function rA(go,yo){var To=Io,No=$o;if(ku(yo)){var Lo="separator"in yo?yo.separator:Lo;To="length"in yo?Jl(yo.length):To,No="omission"in yo?Ju(yo.omission):No}go=pu(go);var Wo=go.length;if(yp(go)){var ps=m1(go);Wo=ps.length}if(To>=Wo)return go;var gs=To-bp(No);if(gs<1)return No;var Ss=ps?J1(ps,0,gs).join(""):go.slice(0,gs);if(Lo===ro)return Ss+No;if(ps&&(gs+=Ss.length-gs),j0(Lo)){if(go.slice(gs).search(Lo)){var Fs,Ps=Ss;for(Lo.global||(Lo=t0(Lo.source,pu(zo.exec(Lo))+"g")),Lo.lastIndex=0;Fs=Lo.exec(Ps);)var Vs=Fs.index;Ss=Ss.slice(0,Vs===ro?gs:Vs)}}else if(go.indexOf(Ju(Lo),gs)!=gs){var ba=Ss.lastIndexOf(Lo);ba>-1&&(Ss=Ss.slice(0,ba))}return Ss+No}function nA(go){return go=pu(go),go&&Dl.test(go)?go.replace(xu,I_):go}var oA=Cp(function(go,yo,To){return go+(To?" ":"")+yo.toUpperCase()}),H0=ay("toUpperCase");function o_(go,yo,To){return go=pu(go),yo=To?ro:yo,yo===ro?k_(go)?O_(go):m_(go):go.match(yo)||[]}var i_=tu(function(go,yo){try{return Zu(go,ro,yo)}catch(To){return F0(To)?To:new Yl(To)}}),iA=L1(function(go,yo){return o1(yo,function(To){To=C1(To),M1(go,To,B0(go[To],go))}),go});function sA(go){var yo=go==null?0:go.length,To=Pl();return go=yo?Tu(go,function(No){if(typeof No[1]!="function")throw new i1(so);return[To(No[0]),No[1]]}):[],tu(function(No){for(var Lo=-1;++LoGo)return[];var To=Zo,No=ju(go,Zo);yo=Pl(yo),go-=Zo;for(var Lo=Qm(No,yo);++To0||yo<0)?new iu(To):(go<0?To=To.takeRight(-go):go&&(To=To.drop(go)),yo!==ro&&(yo=Jl(yo),To=yo<0?To.dropRight(-yo):To.take(yo-go)),To)},iu.prototype.takeRightWhile=function(go){return this.reverse().takeWhile(go).reverse()},iu.prototype.toArray=function(){return this.take(Zo)},T1(iu.prototype,function(go,yo){var To=/^(?:filter|find|map|reject)|While$/.test(yo),No=/^(?:head|last)$/.test(yo),Lo=Vo[No?"take"+(yo=="last"?"Right":""):yo],Wo=No||/^find/.test(yo);Lo&&(Vo.prototype[yo]=function(){var ps=this.__wrapped__,gs=No?[1]:arguments,Ss=ps instanceof iu,Fs=gs[0],Ps=Ss||Xl(ps),Vs=function(nu){var su=Lo.apply(Vo,K1([nu],gs));return No&&ba?su[0]:su};Ps&&To&&typeof Fs=="function"&&Fs.length!=1&&(Ss=Ps=!1);var ba=this.__chain__,Tl=!!this.__actions__.length,Gl=Wo&&!ba,eu=Ss&&!Tl;if(!Wo&&Ps){ps=eu?ps:new iu(this);var Vl=go.apply(ps,gs);return Vl.__actions__.push({func:Rm,args:[Vs],thisArg:ro}),new s1(Vl,ba)}return Gl&&eu?go.apply(this,gs):(Vl=this.thru(Vs),Gl?No?Vl.value()[0]:Vl.value():Vl)})}),o1(["pop","push","shift","sort","splice","unshift"],function(go){var yo=tm[go],To=/^(?:push|sort|unshift)$/.test(go)?"tap":"thru",No=/^(?:pop|shift)$/.test(go);Vo.prototype[go]=function(){var Lo=arguments;if(No&&!this.__chain__){var Wo=this.value();return yo.apply(Xl(Wo)?Wo:[],Lo)}return this[To](function(ps){return yo.apply(Xl(ps)?ps:[],Lo)})}}),T1(iu.prototype,function(go,yo){var To=Vo[yo];if(To){var No=To.name+"";yu.call(Sp,No)||(Sp[No]=[]),Sp[No].push({name:yo,func:To})}}),Sp[xm(ro,xo).name]=[{name:"wrapper",func:ro}],iu.prototype.clone=tE,iu.prototype.reverse=rE,iu.prototype.value=nE,Vo.prototype.at=DS,Vo.prototype.chain=BS,Vo.prototype.commit=LS,Vo.prototype.next=FS,Vo.prototype.plant=PS,Vo.prototype.reverse=zS,Vo.prototype.toJSON=Vo.prototype.valueOf=Vo.prototype.value=HS,Vo.prototype.first=Vo.prototype.head,Mp&&(Vo.prototype[Mp]=jS),Vo},_p=D_();op?((op.exports=_p)._=_p,Vm._=_p):Du._=_p}).call(commonjsGlobal)})(lodash$1,lodash$1.exports);var lodashExports=lodash$1.exports;const isImageDataObject=eo=>{if(!lodashExports.isPlainObject(eo))return!1;const to=Object.keys(eo);return to.length!==1?!1:to[0].startsWith("data:image/")},encodeImageDataObjectToMarkup=eo=>{const to=Object.keys(eo).find(ro=>ro.startsWith("data:image/"));return to?`![image](${eo[to]??""})`:""},listToMarkup=eo=>eo.map(to=>typeof to=="string"?to:isImageDataObject(to)?encodeImageDataObjectToMarkup(to):valueStringify(to)).join(` - -`),isChatInput=eo=>!!eo.is_chat_input,isChatHistory=(eo,to,ro=!1)=>eo!==FlowType.Chat||to.type!==ValueType.list?!1:Reflect.has(to,"is_chat_history")?!!to.is_chat_history:ro?!1:to.name===DEFAULT_CHAT_HISTORY_NAME,isChatOutput=eo=>!!eo.is_chat_output,makeChatMessageFromUser=(eo,to)=>{const ro=typeof eo=="string"?eo:Array.isArray(eo)?listToMarkup(eo):JSON.stringify(eo)??"",no=Array.isArray(eo)?JSON.stringify(eo):void 0;return{id:uuid_1.v4(),from:ChatMessageFrom.User,type:ChatMessageType$1.Text,content:ro,contentForCopy:no,timestamp:new Date().toISOString(),extraData:to}},makeChatMessageFromChatBot=(eo,to,ro,no)=>{const oo=typeof eo=="string"?eo:Array.isArray(eo)?listToMarkup(eo):JSON.stringify(eo)??"",io=Array.isArray(eo)?JSON.stringify(eo):void 0;return{id:uuid_1.v4(),from:ChatMessageFrom.Chatbot,type:ChatMessageType$1.Text,content:oo,contentForCopy:io,timestamp:new Date().toISOString(),duration:no==null?void 0:no.duration,tokens:no==null?void 0:no.total_tokens,error:ro,extraData:to}},parseChatMessages=(eo,to,ro)=>{const no=[];for(const oo of ro){const io=oo.inputs[eo],so=oo.outputs[to];if(typeof io=="string"&&typeof so=="string"){const ao={flowInputs:oo.inputs,flowOutputs:oo.outputs};no.push(makeChatMessageFromUser(io,ao)),no.push(makeChatMessageFromChatBot(so,ao))}else if(Array.isArray(io)&&Array.isArray(so)){const ao={flowInputs:oo.inputs,flowOutputs:oo.outputs};no.push(makeChatMessageFromUser(io,ao)),no.push(makeChatMessageFromChatBot(so,ao))}}return no};ValueType.AzureContentSafetyConnection,ValueType.AzureContentModeratorConnection,ValueType.OpenAIConnection,ValueType.AzureOpenAIConnection,ValueType.BingConnection,ValueType.CustomConnection,ValueType.SerpConnection,ValueType.CognitiveSearchConnection,ValueType.SubstrateLLMConnection,ValueType.QdrantConnection,ValueType.WeaviateConnection,ValueType.FormRecognizerConnection;const convertConnectionTypeToValueType=eo=>{switch(eo){case ConnectionType.AzureContentSafety:return ValueType.AzureContentSafetyConnection;case ConnectionType.AzureContentModerator:return ValueType.AzureContentModeratorConnection;case ConnectionType.Serp:return ValueType.SerpConnection;case ConnectionType.OpenAI:return ValueType.OpenAIConnection;case ConnectionType.Bing:return ValueType.BingConnection;case ConnectionType.AzureOpenAI:return ValueType.AzureOpenAIConnection;case ConnectionType.CognitiveSearch:return ValueType.CognitiveSearchConnection;case ConnectionType.SubstrateLLM:return ValueType.SubstrateLLMConnection;case ConnectionType.Custom:return ValueType.CustomConnection;default:return ValueType.CustomConnection}},getValueTypeByConnectionType=(eo,to)=>{var ro;return!to||to.length===0?convertConnectionTypeToValueType(eo):(ro=to.find(no=>no.connectionType===eo))==null?void 0:ro.flowValueType},getConnectionTypeByName=(eo,to,ro)=>{var oo;const no=(oo=eo==null?void 0:eo.find(io=>io.connectionName===ro))==null?void 0:oo.connectionType;if(no)return getValueTypeByConnectionType(no,to)};ValueType.AzureContentSafetyConnection+"",ValueType.BingConnection+"",ValueType.OpenAIConnection+"",ValueType.CustomConnection+"",ValueType.AzureOpenAIConnection+"",ValueType.AzureContentModeratorConnection+"",ValueType.SerpConnection+"",ValueType.CognitiveSearchConnection+"",ValueType.SubstrateLLMConnection+"",ValueType.PineconeConnection+"",ValueType.QdrantConnection+"",ValueType.WeaviateConnection+"",ValueType.FormRecognizerConnection+"",ValueType.ServerlessConnection+"";const safelyParseJson=(eo,to)=>{if(!eo)return to??"";try{return JSON.parse(eo)}catch{return to??""}},intNumberRegExp$1=/^[+-]?\d+$/,doubleNumberRegExp$1=/^[+-]?\d+(\.\d+)?$/,safelyParseInt=eo=>{try{const to=parseInt(eo,10);return isNaN(to)?eo:to}catch{return eo}},safelyParseFloat=eo=>{try{const to=parseFloat(eo);return isNaN(to)?eo:to}catch{return eo}},boolValues=["true","false","True","False",!0,!1],safelyParseBool=eo=>{try{return boolValues.includes(eo)?convertToBool(eo):eo}catch{return eo}},convertValByType=(eo,to)=>{var no;let ro=eo;if(!(((no=eo==null?void 0:eo.trim)==null?void 0:no.call(eo))===""&&to!==ValueType.string)){switch(to){case ValueType.int:ro=typeof ro=="string"&&intNumberRegExp$1.test(ro.trim())?safelyParseInt(ro):ro;break;case ValueType.double:ro=typeof ro=="string"&&doubleNumberRegExp$1.test(ro.trim())?safelyParseFloat(ro):ro;break;case ValueType.bool:ro=safelyParseBool(ro);break;case ValueType.string:ro=typeof ro=="object"?JSON.stringify(ro):String(ro??"");break;case ValueType.list:case ValueType.object:ro=typeof ro=="string"?safelyParseJson(ro,ro):ro;break}return ro}},inferTypeByVal=eo=>{if(typeof eo=="boolean")return ValueType.bool;if(typeof eo=="number")return Number.isInteger(eo)?ValueType.int:ValueType.double;if(Array.isArray(eo))return ValueType.list;if(typeof eo=="object"&&eo!==null)return ValueType.object;if(typeof eo=="string")return ValueType.string},filterNodeInputsKeys=(eo,to,ro,no,oo=!1)=>{const io=sortToolInputs(eo),so={...to};return Object.keys(io??{}).filter(uo=>{var fo;const co=io==null?void 0:io[uo];if(!oo&&(co==null?void 0:co.input_type)===InputType.uionly_hidden)return!1;if(co!=null&&co.enabled_by&&(co!=null&&co.enabled_by_value)){const po=io==null?void 0:io[co.enabled_by],ho=(so==null?void 0:so[co.enabled_by])??(po==null?void 0:po.default),mo=convertValByType(ho,(fo=po==null?void 0:po.type)==null?void 0:fo[0]),vo=co==null?void 0:co.enabled_by_value.includes(mo);return vo||(so[uo]=void 0),vo}if(co!=null&&co.enabled_by&&(co!=null&&co.enabled_by_type)){const po=so==null?void 0:so[co.enabled_by],ho=getConnectionTypeByName(ro??[],no??[],po??""),mo=ho?co==null?void 0:co.enabled_by_type.includes(ho):!1;return mo||(so[uo]=void 0),mo}return!0})},sortToolInputs=eo=>{let to=[];if(Object.values(eo??{}).some(oo=>{var io;return((io=oo.ui_hints)==null?void 0:io.index)!==void 0}))to=Object.keys(eo??{}).sort((oo,io)=>{var lo,uo,co,fo;const so=((uo=(lo=eo==null?void 0:eo[oo])==null?void 0:lo.ui_hints)==null?void 0:uo.index)??0,ao=((fo=(co=eo==null?void 0:eo[io])==null?void 0:co.ui_hints)==null?void 0:fo.index)??0;return so-ao});else{const oo=[],io={};Object.keys(eo??{}).forEach(ao=>{const lo=eo==null?void 0:eo[ao];lo!=null&&lo.enabled_by?(io[lo.enabled_by]||(io[lo.enabled_by]=[]),io[lo.enabled_by].push(ao)):oo.push(ao)});const so=ao=>{for(const lo of ao)to.push(lo),io[lo]&&so(io[lo])};so(oo)}const no={};for(const oo of to)no[oo]=eo==null?void 0:eo[oo];return no};var papaparse_min={exports:{}};/* @license -Papa Parse -v5.4.1 -https://github.com/mholt/PapaParse -License: MIT -*/(function(eo,to){(function(ro,no){eo.exports=no()})(commonjsGlobal,function ro(){var no=typeof self<"u"?self:typeof window<"u"?window:no!==void 0?no:{},oo=!no.document&&!!no.postMessage,io=no.IS_PAPA_WORKER||!1,so={},ao=0,lo={parse:function(Ro,Ao){var Io=(Ao=Ao||{}).dynamicTyping||!1;if(Co(Io)&&(Ao.dynamicTypingFunction=Io,Io={}),Ao.dynamicTyping=Io,Ao.transform=!!Co(Ao.transform)&&Ao.transform,Ao.worker&&lo.WORKERS_SUPPORTED){var $o=function(){if(!lo.WORKERS_SUPPORTED)return!1;var Mo=(jo=no.URL||no.webkitURL||null,Oo=ro.toString(),lo.BLOB_URL||(lo.BLOB_URL=jo.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",Oo,")();"],{type:"text/javascript"})))),Ho=new no.Worker(Mo),jo,Oo;return Ho.onmessage=_o,Ho.id=ao++,so[Ho.id]=Ho}();return $o.userStep=Ao.step,$o.userChunk=Ao.chunk,$o.userComplete=Ao.complete,$o.userError=Ao.error,Ao.step=Co(Ao.step),Ao.chunk=Co(Ao.chunk),Ao.complete=Co(Ao.complete),Ao.error=Co(Ao.error),delete Ao.worker,void $o.postMessage({input:Ro,config:Ao,workerId:$o.id})}var Bo=null;return lo.NODE_STREAM_INPUT,typeof Ro=="string"?(Ro=function(Mo){return Mo.charCodeAt(0)===65279?Mo.slice(1):Mo}(Ro),Bo=Ao.download?new fo(Ao):new ho(Ao)):Ro.readable===!0&&Co(Ro.read)&&Co(Ro.on)?Bo=new mo(Ao):(no.File&&Ro instanceof File||Ro instanceof Object)&&(Bo=new po(Ao)),Bo.stream(Ro)},unparse:function(Ro,Ao){var Io=!1,$o=!0,Bo=",",Mo=`\r -`,Ho='"',jo=Ho+Ho,Oo=!1,Fo=null,Go=!1;(function(){if(typeof Ao=="object"){if(typeof Ao.delimiter!="string"||lo.BAD_DELIMITERS.filter(function(Qo){return Ao.delimiter.indexOf(Qo)!==-1}).length||(Bo=Ao.delimiter),(typeof Ao.quotes=="boolean"||typeof Ao.quotes=="function"||Array.isArray(Ao.quotes))&&(Io=Ao.quotes),typeof Ao.skipEmptyLines!="boolean"&&typeof Ao.skipEmptyLines!="string"||(Oo=Ao.skipEmptyLines),typeof Ao.newline=="string"&&(Mo=Ao.newline),typeof Ao.quoteChar=="string"&&(Ho=Ao.quoteChar),typeof Ao.header=="boolean"&&($o=Ao.header),Array.isArray(Ao.columns)){if(Ao.columns.length===0)throw new Error("Option columns is empty");Fo=Ao.columns}Ao.escapeChar!==void 0&&(jo=Ao.escapeChar+Ho),(typeof Ao.escapeFormulae=="boolean"||Ao.escapeFormulae instanceof RegExp)&&(Go=Ao.escapeFormulae instanceof RegExp?Ao.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var qo=new RegExp(bo(Ho),"g");if(typeof Ro=="string"&&(Ro=JSON.parse(Ro)),Array.isArray(Ro)){if(!Ro.length||Array.isArray(Ro[0]))return Xo(null,Ro,Oo);if(typeof Ro[0]=="object")return Xo(Fo||Object.keys(Ro[0]),Ro,Oo)}else if(typeof Ro=="object")return typeof Ro.data=="string"&&(Ro.data=JSON.parse(Ro.data)),Array.isArray(Ro.data)&&(Ro.fields||(Ro.fields=Ro.meta&&Ro.meta.fields||Fo),Ro.fields||(Ro.fields=Array.isArray(Ro.data[0])?Ro.fields:typeof Ro.data[0]=="object"?Object.keys(Ro.data[0]):[]),Array.isArray(Ro.data[0])||typeof Ro.data[0]=="object"||(Ro.data=[Ro.data])),Xo(Ro.fields||[],Ro.data||[],Oo);throw new Error("Unable to serialize unrecognized input");function Xo(Qo,xs,Ts){var Rs="";typeof Qo=="string"&&(Qo=JSON.parse(Qo)),typeof xs=="string"&&(xs=JSON.parse(xs));var Os=Array.isArray(Qo)&&0=this._config.preview;if(io)no.postMessage({results:Mo,workerId:lo.WORKER_ID,finished:jo});else if(Co(this._config.chunk)&&!Io){if(this._config.chunk(Mo,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);Mo=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(Mo.data),this._completeResults.errors=this._completeResults.errors.concat(Mo.errors),this._completeResults.meta=Mo.meta),this._completed||!jo||!Co(this._config.complete)||Mo&&Mo.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),jo||Mo&&Mo.meta.paused||this._nextChunk(),Mo}this._halted=!0},this._sendError=function(Ao){Co(this._config.error)?this._config.error(Ao):io&&this._config.error&&no.postMessage({workerId:lo.WORKER_ID,error:Ao,finished:!1})}}function fo(Ro){var Ao;(Ro=Ro||{}).chunkSize||(Ro.chunkSize=lo.RemoteChunkSize),co.call(this,Ro),this._nextChunk=oo?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(Io){this._input=Io,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(Ao=new XMLHttpRequest,this._config.withCredentials&&(Ao.withCredentials=this._config.withCredentials),oo||(Ao.onload=wo(this._chunkLoaded,this),Ao.onerror=wo(this._chunkError,this)),Ao.open(this._config.downloadRequestBody?"POST":"GET",this._input,!oo),this._config.downloadRequestHeaders){var Io=this._config.downloadRequestHeaders;for(var $o in Io)Ao.setRequestHeader($o,Io[$o])}if(this._config.chunkSize){var Bo=this._start+this._config.chunkSize-1;Ao.setRequestHeader("Range","bytes="+this._start+"-"+Bo)}try{Ao.send(this._config.downloadRequestBody)}catch(Mo){this._chunkError(Mo.message)}oo&&Ao.status===0&&this._chunkError()}},this._chunkLoaded=function(){Ao.readyState===4&&(Ao.status<200||400<=Ao.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:Ao.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(Io){var $o=Io.getResponseHeader("Content-Range");return $o===null?-1:parseInt($o.substring($o.lastIndexOf("/")+1))}(Ao),this.parseChunk(Ao.responseText)))},this._chunkError=function(Io){var $o=Ao.statusText||Io;this._sendError(new Error($o))}}function po(Ro){var Ao,Io;(Ro=Ro||{}).chunkSize||(Ro.chunkSize=lo.LocalChunkSize),co.call(this,Ro);var $o=typeof FileReader<"u";this.stream=function(Bo){this._input=Bo,Io=Bo.slice||Bo.webkitSlice||Bo.mozSlice,$o?((Ao=new FileReader).onload=wo(this._chunkLoaded,this),Ao.onerror=wo(this._chunkError,this)):Ao=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(Bo.target.result)},this._chunkError=function(){this._sendError(Ao.error)}}function ho(Ro){var Ao;co.call(this,Ro=Ro||{}),this.stream=function(Io){return Ao=Io,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var Io,$o=this._config.chunkSize;return $o?(Io=Ao.substring(0,$o),Ao=Ao.substring($o)):(Io=Ao,Ao=""),this._finished=!Ao,this.parseChunk(Io)}}}function mo(Ro){co.call(this,Ro=Ro||{});var Ao=[],Io=!0,$o=!1;this.pause=function(){co.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){co.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(Bo){this._input=Bo,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){$o&&Ao.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),Ao.length?this.parseChunk(Ao.shift()):Io=!0},this._streamData=wo(function(Bo){try{Ao.push(typeof Bo=="string"?Bo:Bo.toString(this._config.encoding)),Io&&(Io=!1,this._checkIsFinished(),this.parseChunk(Ao.shift()))}catch(Mo){this._streamError(Mo)}},this),this._streamError=wo(function(Bo){this._streamCleanUp(),this._sendError(Bo)},this),this._streamEnd=wo(function(){this._streamCleanUp(),$o=!0,this._streamData("")},this),this._streamCleanUp=wo(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function vo(Ro){var Ao,Io,$o,Bo=Math.pow(2,53),Mo=-Bo,Ho=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,jo=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,Oo=this,Fo=0,Go=0,qo=!1,Xo=!1,Zo=[],Qo={data:[],errors:[],meta:{}};if(Co(Ro.step)){var xs=Ro.step;Ro.step=function(Jo){if(Qo=Jo,Os())Rs();else{if(Rs(),Qo.data.length===0)return;Fo+=Jo.data.length,Ro.preview&&Fo>Ro.preview?Io.abort():(Qo.data=Qo.data[0],xs(Qo,Oo))}}}function Ts(Jo){return Ro.skipEmptyLines==="greedy"?Jo.join("").trim()==="":Jo.length===1&&Jo[0].length===0}function Rs(){return Qo&&$o&&(Ds("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+lo.DefaultDelimiter+"'"),$o=!1),Ro.skipEmptyLines&&(Qo.data=Qo.data.filter(function(Jo){return!Ts(Jo)})),Os()&&function(){if(!Qo)return;function Jo(Bs,zs){Co(Ro.transformHeader)&&(Bs=Ro.transformHeader(Bs,zs)),Zo.push(Bs)}if(Array.isArray(Qo.data[0])){for(var Cs=0;Os()&&Cs=Zo.length?"__parsed_extra":Zo[Ls]),Ro.transform&&(Zs=Ro.transform(Zs,Js)),Zs=As(Js,Zs),Js==="__parsed_extra"?(ga[Js]=ga[Js]||[],ga[Js].push(Zs)):ga[Js]=Zs}return Ro.header&&(Ls>Zo.length?Ds("FieldMismatch","TooManyFields","Too many fields: expected "+Zo.length+" fields but parsed "+Ls,Go+zs):Ls=Ll.length/2?`\r -`:"\r"}(Jo,zs)),$o=!1,Ro.delimiter)Co(Ro.delimiter)&&(Ro.delimiter=Ro.delimiter(Jo),Qo.meta.delimiter=Ro.delimiter);else{var Ls=function(Js,Zs,$a,Ll,Kl){var Zl,$l,xa,Sl;Kl=Kl||[","," ","|",";",lo.RECORD_SEP,lo.UNIT_SEP];for(var cu=0;cu=Ho)return Hs(!0)}else for(ks=Fo,Fo++;;){if((ks=qo.indexOf(Ao,ks+1))===-1)return Zo||Ds.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:As.length,index:Fo}),Ks();if(ks===Qo-1)return Ks(qo.substring(Fo,ks).replace(cu,Ao));if(Ao!==Oo||qo[ks+1]!==Oo){if(Ao===Oo||ks===0||qo[ks-1]!==Oo){xa!==-1&&xa=Ho)return Hs(!0);break}Ds.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:As.length,index:Fo}),ks++}}else ks++}return Ks();function ws(El){As.push(El),Cs=Fo}function Gs(El){var xl=0;if(El!==-1){var Ol=qo.substring(ks+1,El);Ol&&Ol.trim()===""&&(xl=Ol.length)}return xl}function Ks(El){return Zo||(El===void 0&&(El=qo.substring(Fo)),Jo.push(El),Fo=Qo,ws(Jo),Os&&Qs()),Hs()}function Ms(El){Fo=El,ws(Jo),Jo=[],Sl=qo.indexOf($o,Fo)}function Hs(El){return{data:As,errors:Ds,meta:{delimiter:Io,linebreak:$o,aborted:Go,truncated:!!El,cursor:Cs+(Xo||0)}}}function Qs(){Mo(Hs()),As=[],Ds=[]}},this.abort=function(){Go=!0},this.getCharIndex=function(){return Fo}}function _o(Ro){var Ao=Ro.data,Io=so[Ao.workerId],$o=!1;if(Ao.error)Io.userError(Ao.error,Ao.file);else if(Ao.results&&Ao.results.data){var Bo={abort:function(){$o=!0,So(Ao.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:Eo,resume:Eo};if(Co(Io.userStep)){for(var Mo=0;Mo{const no={};return Object.keys(eo).forEach(oo=>{const io=eo[oo];oo===to?no[ro]=io:no[oo]=io}),no},getDefaultNodeVariant=eo=>{const{defaultVariantId:to=BASELINE_VARIANT_ID,variants:ro={}}=eo,no=ro[to];return no==null?void 0:no.node},getDefaultNodeList=(eo,to)=>{const ro=[];return eo.forEach(no=>{const oo=to.get(no);if(!oo)return;const io=getDefaultNodeVariant(oo);io&&ro.push(io)}),ro},getFlowSnapshotNodeList=(eo,to,ro)=>{const no=[];return eo.forEach(oo=>{if(ro.includes(oo)){no.push({name:oo,use_variants:!0});return}const io=to[oo];if(!io)return;const so={inputs:{},...getDefaultNodeVariant(io)};so&&no.push(so)}),no};ToolType.llm;ToolType.prompt;ValueType.string,ToolType.python;ValueType.string,ToolType.typescript;const getTokensUsageByRow=eo=>{var to,ro,no,oo,io,so;return eo.children&&eo.children.length>0?eo.children.reduce((ao,lo)=>{const uo=getTokensUsageByRow(lo);return{totalTokens:ao.totalTokens+uo.totalTokens,promptTokens:ao.promptTokens+uo.promptTokens,completionTokens:ao.completionTokens+uo.completionTokens}},{totalTokens:0,promptTokens:0,completionTokens:0}):{totalTokens:((ro=(to=eo.output)==null?void 0:to.usage)==null?void 0:ro.total_tokens)??0,promptTokens:((oo=(no=eo.output)==null?void 0:no.usage)==null?void 0:oo.prompt_tokens)??0,completionTokens:((so=(io=eo.output)==null?void 0:io.usage)==null?void 0:so.completion_tokens)??0}},numberToDigitsString=eo=>eo.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),timePDTFormatter=eo=>{const to=new Date(eo),ro=getUTCTimezoneOffset();return`${to.getFullYear()}-${to.getMonth()+1}-${to.getDate()} ${to.getHours()}:${to.getMinutes()}:${to.getSeconds()}:${to.getMilliseconds()} (${ro})`},getUTCTimezoneOffset=()=>{const eo=new Date().getTimezoneOffset(),to=Math.abs(eo);return`UTC${(eo<0?"+":"-")+`00${Math.floor(to/60)}`.slice(-2)}:${`00${to%60}`.slice(-2)}`},hasOwn=(eo,to)=>Object.prototype.hasOwnProperty.call(eo,to),resolveTool=(eo,to,ro,no)=>{var oo,io,so;if(((oo=eo==null?void 0:eo.source)==null?void 0:oo.type)==="code")return to;if(((io=eo==null?void 0:eo.source)==null?void 0:io.type)==="package_with_prompt"){const ao=(so=eo==null?void 0:eo.source)==null?void 0:so.path,lo=no(ao??"");return ro?{...ro,inputs:{...lo==null?void 0:lo.inputs,...addPositionField(ro==null?void 0:ro.inputs,"parameter")},code:lo==null?void 0:lo.code}:void 0}return ro},addPositionField=(eo,to)=>{if(!eo)return eo;const ro={...eo};return Object.keys(ro).forEach(no=>{ro[no]={...ro[no],position:to}}),ro},keyWords=["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"],keyFunction=["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"],flowWords=["input","inputs","output","outputs","flow","flows"],checkNodeNameValid=eo=>keyWords.some(to=>to===eo)||keyFunction.some(to=>to===eo)||flowWords.some(to=>to===eo)?!1:/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(eo),getNodesThatMoreThanOneVariant=(eo={})=>{const to=[];return Object.keys(eo).forEach(ro=>{const no=eo[ro],{variants:oo={},defaultVariantId:io,default_variant_id:so}=no,ao=Object.keys(oo).length;ao>1&&to.push({nodeName:ro,variantsCount:ao,defaultVariantId:io??so??BASELINE_VARIANT_ID,variants:oo})}),to},getVariantNodes=(eo={})=>{const to={};return Object.keys(eo).forEach(ro=>{const no=eo[ro],{variants:oo={}}=no;if(Object.keys(oo).length>1){const so=lodashExports.cloneDeep(no);Object.entries((so==null?void 0:so.variants)??{}).forEach(([lo,uo])=>{uo.node&&delete uo.node.name});const ao=so.defaultVariantId;delete so.defaultVariantId,to[ro]={default_variant_id:ao,...so}}}),Object.keys(to).length>0?to:void 0},revValueRegex=/^\$\{(\S+)\}$/,getRefValueFromRaw=eo=>{var to,ro;return(ro=(to=`${eo??""}`)==null?void 0:to.match(revValueRegex))==null?void 0:ro[1]},generateRandomStrings=eo=>{const to="abcdefghijklmnopqrstuvwxyz0123456789";let ro="";for(let no=0;nogenerateRandomStrings(8),getRandomOutputDefinitionId=getRandomInputDefinitionId,intNumberRegExp=/^[+-]?\d+$/,doubleNumberRegExp=/^[+-]?\d+(\.\d+)?$/,isBool=eo=>eo.toLowerCase()==="true"||eo.toLowerCase()==="false",isNumber=eo=>doubleNumberRegExp.test(eo.trim())?eo===eo.trim()&&eo.length>0&&!Number.isNaN(Number(eo)):!1,isInt=eo=>intNumberRegExp.test(eo.trim())?isNumber(eo)&&Number.isInteger(Number(eo)):!1,isList$1=eo=>{try{const to=JSON.parse(eo);return Array.isArray(to)}catch{return!1}},isObject$f=eo=>{try{const to=JSON.parse(eo);return Object.prototype.toString.call(to)==="[object Object]"}catch{return!1}},isTypeValid=(eo,to)=>{const ro=typeof eo,no=ro==="string";switch(to){case ValueType.int:return no?isInt(eo):Number.isInteger(eo);case ValueType.double:return no?isNumber(eo):ro==="number";case ValueType.list:return no?isList$1(eo):Array.isArray(eo);case ValueType.object:return no?isObject$f(eo):ro==="object";case ValueType.bool:return no?isBool(eo):ro==="boolean";case ValueType.function_str:return!0;default:return!0}},getCycle=(eo,to,ro,no)=>{var so,ao;const oo=[],io=new Set(eo.keys());for(eo.forEach((lo,uo)=>{lo===0&&oo.push(uo)});oo.length>0;){const lo=oo.shift();lo&&(io.delete(lo),(so=to.get(lo))==null||so.forEach(uo=>{const co=(eo.get(uo)??0)-1;eo.set(uo,co),co===0&&oo.push(uo)}))}for(ro.forEach((lo,uo)=>{lo===0&&oo.push(uo)});oo.length>0;){const lo=oo.shift();lo&&(io.delete(lo),(ao=no.get(lo))==null||ao.forEach(uo=>{const co=(ro.get(uo)??0)-1;ro.set(uo,co),co===0&&oo.push(uo)}))}return io};function commonjsRequire$1(eo){throw new Error('Could not dynamically require "'+eo+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$4(eo,to){return eo===to||eo!==eo&&to!==to}var eq_1=eq$4,eq$3=eq_1;function assocIndexOf$4(eo,to){for(var ro=eo.length;ro--;)if(eq$3(eo[ro][0],to))return ro;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(eo){var to=this.__data__,ro=assocIndexOf$3(to,eo);if(ro<0)return!1;var no=to.length-1;return ro==no?to.pop():splice.call(to,ro,1),--this.size,!0}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(eo){var to=this.__data__,ro=assocIndexOf$2(to,eo);return ro<0?void 0:to[ro][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(eo){return assocIndexOf$1(this.__data__,eo)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(eo,to){var ro=this.__data__,no=assocIndexOf(ro,eo);return no<0?(++this.size,ro.push([eo,to])):ro[no][1]=to,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(eo){var to=-1,ro=eo==null?0:eo.length;for(this.clear();++to-1&&eo%1==0&&eo-1&&eo%1==0&&eo<=MAX_SAFE_INTEGER}var isLength_1=isLength$3,baseGetTag$4=_baseGetTag,isLength$2=isLength_1,isObjectLike$6=isObjectLike_1,argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$3="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",funcTag$1="[object Function]",mapTag$5="[object Map]",numberTag$3="[object Number]",objectTag$4="[object Object]",regexpTag$3="[object RegExp]",setTag$5="[object Set]",stringTag$4="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$3]=typedArrayTags[boolTag$3]=typedArrayTags[dataViewTag$4]=typedArrayTags[dateTag$3]=typedArrayTags[errorTag$2]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$5]=typedArrayTags[numberTag$3]=typedArrayTags[objectTag$4]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$5]=typedArrayTags[stringTag$4]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray$1(eo){return isObjectLike$6(eo)&&isLength$2(eo.length)&&!!typedArrayTags[baseGetTag$4(eo)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$4(eo){return function(to){return eo(to)}}var _baseUnary=baseUnary$4,_nodeUtil={exports:{}};_nodeUtil.exports;(function(eo,to){var ro=_freeGlobal,no=to&&!to.nodeType&&to,oo=no&&!0&&eo&&!eo.nodeType&&eo,io=oo&&oo.exports===no,so=io&&ro.process,ao=function(){try{var lo=oo&&oo.require&&oo.require("util").types;return lo||so&&so.binding&&so.binding("util")}catch{}}();eo.exports=ao})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary$3=_baseUnary,nodeUtil$2=_nodeUtilExports,nodeIsTypedArray=nodeUtil$2&&nodeUtil$2.isTypedArray,isTypedArray$2=nodeIsTypedArray?baseUnary$3(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$2,baseTimes=_baseTimes,isArguments$2=isArguments_1,isArray$d=isArray_1,isBuffer$2=isBufferExports,isIndex$2=_isIndex,isTypedArray$1=isTypedArray_1,objectProto$8=Object.prototype,hasOwnProperty$8=objectProto$8.hasOwnProperty;function arrayLikeKeys$2(eo,to){var ro=isArray$d(eo),no=!ro&&isArguments$2(eo),oo=!ro&&!no&&isBuffer$2(eo),io=!ro&&!no&&!oo&&isTypedArray$1(eo),so=ro||no||oo||io,ao=so?baseTimes(eo.length,String):[],lo=ao.length;for(var uo in eo)(to||hasOwnProperty$8.call(eo,uo))&&!(so&&(uo=="length"||oo&&(uo=="offset"||uo=="parent")||io&&(uo=="buffer"||uo=="byteLength"||uo=="byteOffset")||isIndex$2(uo,lo)))&&ao.push(uo);return ao}var _arrayLikeKeys=arrayLikeKeys$2,objectProto$7=Object.prototype;function isPrototype$3(eo){var to=eo&&eo.constructor,ro=typeof to=="function"&&to.prototype||objectProto$7;return eo===ro}var _isPrototype=isPrototype$3;function overArg$2(eo,to){return function(ro){return eo(to(ro))}}var _overArg=overArg$2,overArg$1=_overArg,nativeKeys$1=overArg$1(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$2=_isPrototype,nativeKeys=_nativeKeys,objectProto$6=Object.prototype,hasOwnProperty$7=objectProto$6.hasOwnProperty;function baseKeys$1(eo){if(!isPrototype$2(eo))return nativeKeys(eo);var to=[];for(var ro in Object(eo))hasOwnProperty$7.call(eo,ro)&&ro!="constructor"&&to.push(ro);return to}var _baseKeys=baseKeys$1,isFunction$3=isFunction_1,isLength$1=isLength_1;function isArrayLike$8(eo){return eo!=null&&isLength$1(eo.length)&&!isFunction$3(eo)}var isArrayLike_1=isArrayLike$8,arrayLikeKeys$1=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike$7=isArrayLike_1;function keys$6(eo){return isArrayLike$7(eo)?arrayLikeKeys$1(eo):baseKeys(eo)}var keys_1=keys$6,copyObject$3=_copyObject,keys$5=keys_1;function baseAssign$1(eo,to){return eo&©Object$3(to,keys$5(to),eo)}var _baseAssign=baseAssign$1;function nativeKeysIn$1(eo){var to=[];if(eo!=null)for(var ro in Object(eo))to.push(ro);return to}var _nativeKeysIn=nativeKeysIn$1,isObject$b=isObject_1,isPrototype$1=_isPrototype,nativeKeysIn=_nativeKeysIn,objectProto$5=Object.prototype,hasOwnProperty$6=objectProto$5.hasOwnProperty;function baseKeysIn$1(eo){if(!isObject$b(eo))return nativeKeysIn(eo);var to=isPrototype$1(eo),ro=[];for(var no in eo)no=="constructor"&&(to||!hasOwnProperty$6.call(eo,no))||ro.push(no);return ro}var _baseKeysIn=baseKeysIn$1,arrayLikeKeys=_arrayLikeKeys,baseKeysIn=_baseKeysIn,isArrayLike$6=isArrayLike_1;function keysIn$3(eo){return isArrayLike$6(eo)?arrayLikeKeys(eo,!0):baseKeysIn(eo)}var keysIn_1=keysIn$3,copyObject$2=_copyObject,keysIn$2=keysIn_1;function baseAssignIn$1(eo,to){return eo&©Object$2(to,keysIn$2(to),eo)}var _baseAssignIn=baseAssignIn$1,_cloneBuffer={exports:{}};_cloneBuffer.exports;(function(eo,to){var ro=_root$1,no=to&&!to.nodeType&&to,oo=no&&!0&&eo&&!eo.nodeType&&eo,io=oo&&oo.exports===no,so=io?ro.Buffer:void 0,ao=so?so.allocUnsafe:void 0;function lo(uo,co){if(co)return uo.slice();var fo=uo.length,po=ao?ao(fo):new uo.constructor(fo);return uo.copy(po),po}eo.exports=lo})(_cloneBuffer,_cloneBuffer.exports);var _cloneBufferExports=_cloneBuffer.exports;function copyArray$1(eo,to){var ro=-1,no=eo.length;for(to||(to=Array(no));++roao))return!1;var uo=io.get(eo),co=io.get(to);if(uo&&co)return uo==to&&co==eo;var fo=-1,po=!0,ho=ro&COMPARE_UNORDERED_FLAG$3?new SetCache$1:void 0;for(io.set(eo,to),io.set(to,eo);++fo0&&ro(ao)?to>1?baseFlatten$2(ao,to-1,ro,no,oo):arrayPush$1(oo,ao):no||(oo[oo.length]=ao)}return oo}var _baseFlatten=baseFlatten$2;function apply$2(eo,to,ro){switch(ro.length){case 0:return eo.call(to);case 1:return eo.call(to,ro[0]);case 2:return eo.call(to,ro[0],ro[1]);case 3:return eo.call(to,ro[0],ro[1],ro[2])}return eo.apply(to,ro)}var _apply=apply$2,apply$1=_apply,nativeMax$2=Math.max;function overRest$2(eo,to,ro){return to=nativeMax$2(to===void 0?eo.length-1:to,0),function(){for(var no=arguments,oo=-1,io=nativeMax$2(no.length-to,0),so=Array(io);++oo0){if(++to>=HOT_COUNT)return arguments[0]}else to=0;return eo.apply(void 0,arguments)}}var _shortOut=shortOut$1,baseSetToString=_baseSetToString,shortOut=_shortOut,setToString$2=shortOut(baseSetToString),_setToString=setToString$2,identity$5=identity_1,overRest$1=_overRest,setToString$1=_setToString;function baseRest$1(eo,to){return setToString$1(overRest$1(eo,to,identity$5),eo+"")}var _baseRest=baseRest$1;function baseFindIndex$2(eo,to,ro,no){for(var oo=eo.length,io=ro+(no?1:-1);no?io--:++io-1}var _arrayIncludes=arrayIncludes$1;function arrayIncludesWith$1(eo,to,ro){for(var no=-1,oo=eo==null?0:eo.length;++no=LARGE_ARRAY_SIZE){var uo=to?null:createSet(eo);if(uo)return setToArray(uo);so=!1,oo=cacheHas,lo=new SetCache}else lo=to?[]:ao;e:for(;++no1?ho.setNode(mo,fo):ho.setNode(mo)}),this},oo.prototype.setNode=function(co,fo){return eo.has(this._nodes,co)?(arguments.length>1&&(this._nodes[co]=fo),this):(this._nodes[co]=arguments.length>1?fo:this._defaultNodeLabelFn(co),this._isCompound&&(this._parent[co]=ro,this._children[co]={},this._children[ro][co]=!0),this._in[co]={},this._preds[co]={},this._out[co]={},this._sucs[co]={},++this._nodeCount,this)},oo.prototype.node=function(co){return this._nodes[co]},oo.prototype.hasNode=function(co){return eo.has(this._nodes,co)},oo.prototype.removeNode=function(co){var fo=this;if(eo.has(this._nodes,co)){var po=function(ho){fo.removeEdge(fo._edgeObjs[ho])};delete this._nodes[co],this._isCompound&&(this._removeFromParentsChildList(co),delete this._parent[co],eo.each(this.children(co),function(ho){fo.setParent(ho)}),delete this._children[co]),eo.each(eo.keys(this._in[co]),po),delete this._in[co],delete this._preds[co],eo.each(eo.keys(this._out[co]),po),delete this._out[co],delete this._sucs[co],--this._nodeCount}return this},oo.prototype.setParent=function(co,fo){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(eo.isUndefined(fo))fo=ro;else{fo+="";for(var po=fo;!eo.isUndefined(po);po=this.parent(po))if(po===co)throw new Error("Setting "+fo+" as parent of "+co+" would create a cycle");this.setNode(fo)}return this.setNode(co),this._removeFromParentsChildList(co),this._parent[co]=fo,this._children[fo][co]=!0,this},oo.prototype._removeFromParentsChildList=function(co){delete this._children[this._parent[co]][co]},oo.prototype.parent=function(co){if(this._isCompound){var fo=this._parent[co];if(fo!==ro)return fo}},oo.prototype.children=function(co){if(eo.isUndefined(co)&&(co=ro),this._isCompound){var fo=this._children[co];if(fo)return eo.keys(fo)}else{if(co===ro)return this.nodes();if(this.hasNode(co))return[]}},oo.prototype.predecessors=function(co){var fo=this._preds[co];if(fo)return eo.keys(fo)},oo.prototype.successors=function(co){var fo=this._sucs[co];if(fo)return eo.keys(fo)},oo.prototype.neighbors=function(co){var fo=this.predecessors(co);if(fo)return eo.union(fo,this.successors(co))},oo.prototype.isLeaf=function(co){var fo;return this.isDirected()?fo=this.successors(co):fo=this.neighbors(co),fo.length===0},oo.prototype.filterNodes=function(co){var fo=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});fo.setGraph(this.graph());var po=this;eo.each(this._nodes,function(vo,bo){co(bo)&&fo.setNode(bo,vo)}),eo.each(this._edgeObjs,function(vo){fo.hasNode(vo.v)&&fo.hasNode(vo.w)&&fo.setEdge(vo,po.edge(vo))});var ho={};function mo(vo){var bo=po.parent(vo);return bo===void 0||fo.hasNode(bo)?(ho[vo]=bo,bo):bo in ho?ho[bo]:mo(bo)}return this._isCompound&&eo.each(fo.nodes(),function(vo){fo.setParent(vo,mo(vo))}),fo},oo.prototype.setDefaultEdgeLabel=function(co){return eo.isFunction(co)||(co=eo.constant(co)),this._defaultEdgeLabelFn=co,this},oo.prototype.edgeCount=function(){return this._edgeCount},oo.prototype.edges=function(){return eo.values(this._edgeObjs)},oo.prototype.setPath=function(co,fo){var po=this,ho=arguments;return eo.reduce(co,function(mo,vo){return ho.length>1?po.setEdge(mo,vo,fo):po.setEdge(mo,vo),vo}),this},oo.prototype.setEdge=function(){var co,fo,po,ho,mo=!1,vo=arguments[0];typeof vo=="object"&&vo!==null&&"v"in vo?(co=vo.v,fo=vo.w,po=vo.name,arguments.length===2&&(ho=arguments[1],mo=!0)):(co=vo,fo=arguments[1],po=arguments[3],arguments.length>2&&(ho=arguments[2],mo=!0)),co=""+co,fo=""+fo,eo.isUndefined(po)||(po=""+po);var bo=ao(this._isDirected,co,fo,po);if(eo.has(this._edgeLabels,bo))return mo&&(this._edgeLabels[bo]=ho),this;if(!eo.isUndefined(po)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(co),this.setNode(fo),this._edgeLabels[bo]=mo?ho:this._defaultEdgeLabelFn(co,fo,po);var xo=lo(this._isDirected,co,fo,po);return co=xo.v,fo=xo.w,Object.freeze(xo),this._edgeObjs[bo]=xo,io(this._preds[fo],co),io(this._sucs[co],fo),this._in[fo][bo]=xo,this._out[co][bo]=xo,this._edgeCount++,this},oo.prototype.edge=function(co,fo,po){var ho=arguments.length===1?uo(this._isDirected,arguments[0]):ao(this._isDirected,co,fo,po);return this._edgeLabels[ho]},oo.prototype.hasEdge=function(co,fo,po){var ho=arguments.length===1?uo(this._isDirected,arguments[0]):ao(this._isDirected,co,fo,po);return eo.has(this._edgeLabels,ho)},oo.prototype.removeEdge=function(co,fo,po){var ho=arguments.length===1?uo(this._isDirected,arguments[0]):ao(this._isDirected,co,fo,po),mo=this._edgeObjs[ho];return mo&&(co=mo.v,fo=mo.w,delete this._edgeLabels[ho],delete this._edgeObjs[ho],so(this._preds[fo],co),so(this._sucs[co],fo),delete this._in[fo][ho],delete this._out[co][ho],this._edgeCount--),this},oo.prototype.inEdges=function(co,fo){var po=this._in[co];if(po){var ho=eo.values(po);return fo?eo.filter(ho,function(mo){return mo.v===fo}):ho}},oo.prototype.outEdges=function(co,fo){var po=this._out[co];if(po){var ho=eo.values(po);return fo?eo.filter(ho,function(mo){return mo.w===fo}):ho}},oo.prototype.nodeEdges=function(co,fo){var po=this.inEdges(co,fo);if(po)return po.concat(this.outEdges(co,fo))};function io(co,fo){co[fo]?co[fo]++:co[fo]=1}function so(co,fo){--co[fo]||delete co[fo]}function ao(co,fo,po,ho){var mo=""+fo,vo=""+po;if(!co&&mo>vo){var bo=mo;mo=vo,vo=bo}return mo+no+vo+no+(eo.isUndefined(ho)?to:ho)}function lo(co,fo,po,ho){var mo=""+fo,vo=""+po;if(!co&&mo>vo){var bo=mo;mo=vo,vo=bo}var xo={v:mo,w:vo};return ho&&(xo.name=ho),xo}function uo(co,fo){return ao(co,fo.v,fo.w,fo.name)}return graph}var version$1,hasRequiredVersion;function requireVersion(){return hasRequiredVersion||(hasRequiredVersion=1,version$1="2.1.8"),version$1}var lib,hasRequiredLib;function requireLib(){return hasRequiredLib||(hasRequiredLib=1,lib={Graph:requireGraph(),version:requireVersion()}),lib}var json,hasRequiredJson;function requireJson(){if(hasRequiredJson)return json;hasRequiredJson=1;var eo=requireLodash(),to=requireGraph();json={write:ro,read:io};function ro(so){var ao={options:{directed:so.isDirected(),multigraph:so.isMultigraph(),compound:so.isCompound()},nodes:no(so),edges:oo(so)};return eo.isUndefined(so.graph())||(ao.value=eo.clone(so.graph())),ao}function no(so){return eo.map(so.nodes(),function(ao){var lo=so.node(ao),uo=so.parent(ao),co={v:ao};return eo.isUndefined(lo)||(co.value=lo),eo.isUndefined(uo)||(co.parent=uo),co})}function oo(so){return eo.map(so.edges(),function(ao){var lo=so.edge(ao),uo={v:ao.v,w:ao.w};return eo.isUndefined(ao.name)||(uo.name=ao.name),eo.isUndefined(lo)||(uo.value=lo),uo})}function io(so){var ao=new to(so.options).setGraph(so.value);return eo.each(so.nodes,function(lo){ao.setNode(lo.v,lo.value),lo.parent&&ao.setParent(lo.v,lo.parent)}),eo.each(so.edges,function(lo){ao.setEdge({v:lo.v,w:lo.w,name:lo.name},lo.value)}),ao}return json}var components_1,hasRequiredComponents;function requireComponents(){if(hasRequiredComponents)return components_1;hasRequiredComponents=1;var eo=requireLodash();components_1=to;function to(ro){var no={},oo=[],io;function so(ao){eo.has(no,ao)||(no[ao]=!0,io.push(ao),eo.each(ro.successors(ao),so),eo.each(ro.predecessors(ao),so))}return eo.each(ro.nodes(),function(ao){io=[],so(ao),io.length&&oo.push(io)}),oo}return components_1}var priorityQueue,hasRequiredPriorityQueue;function requirePriorityQueue(){if(hasRequiredPriorityQueue)return priorityQueue;hasRequiredPriorityQueue=1;var eo=requireLodash();priorityQueue=to;function to(){this._arr=[],this._keyIndices={}}return to.prototype.size=function(){return this._arr.length},to.prototype.keys=function(){return this._arr.map(function(ro){return ro.key})},to.prototype.has=function(ro){return eo.has(this._keyIndices,ro)},to.prototype.priority=function(ro){var no=this._keyIndices[ro];if(no!==void 0)return this._arr[no].priority},to.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},to.prototype.add=function(ro,no){var oo=this._keyIndices;if(ro=String(ro),!eo.has(oo,ro)){var io=this._arr,so=io.length;return oo[ro]=so,io.push({key:ro,priority:no}),this._decrease(so),!0}return!1},to.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var ro=this._arr.pop();return delete this._keyIndices[ro.key],this._heapify(0),ro.key},to.prototype.decrease=function(ro,no){var oo=this._keyIndices[ro];if(no>this._arr[oo].priority)throw new Error("New priority is greater than current priority. Key: "+ro+" Old: "+this._arr[oo].priority+" New: "+no);this._arr[oo].priority=no,this._decrease(oo)},to.prototype._heapify=function(ro){var no=this._arr,oo=2*ro,io=oo+1,so=ro;oo>1,!(no[io].priority0&&(fo=co.removeMin(),po=uo[fo],po.distance!==Number.POSITIVE_INFINITY);)lo(fo).forEach(ho);return uo}return dijkstra_1}var dijkstraAll_1,hasRequiredDijkstraAll;function requireDijkstraAll(){if(hasRequiredDijkstraAll)return dijkstraAll_1;hasRequiredDijkstraAll=1;var eo=requireDijkstra(),to=requireLodash();dijkstraAll_1=ro;function ro(no,oo,io){return to.transform(no.nodes(),function(so,ao){so[ao]=eo(no,ao,oo,io)},{})}return dijkstraAll_1}var tarjan_1,hasRequiredTarjan;function requireTarjan(){if(hasRequiredTarjan)return tarjan_1;hasRequiredTarjan=1;var eo=requireLodash();tarjan_1=to;function to(ro){var no=0,oo=[],io={},so=[];function ao(lo){var uo=io[lo]={onStack:!0,lowlink:no,index:no++};if(oo.push(lo),ro.successors(lo).forEach(function(po){eo.has(io,po)?io[po].onStack&&(uo.lowlink=Math.min(uo.lowlink,io[po].index)):(ao(po),uo.lowlink=Math.min(uo.lowlink,io[po].lowlink))}),uo.lowlink===uo.index){var co=[],fo;do fo=oo.pop(),io[fo].onStack=!1,co.push(fo);while(lo!==fo);so.push(co)}}return ro.nodes().forEach(function(lo){eo.has(io,lo)||ao(lo)}),so}return tarjan_1}var findCycles_1,hasRequiredFindCycles;function requireFindCycles(){if(hasRequiredFindCycles)return findCycles_1;hasRequiredFindCycles=1;var eo=requireLodash(),to=requireTarjan();findCycles_1=ro;function ro(no){return eo.filter(to(no),function(oo){return oo.length>1||oo.length===1&&no.hasEdge(oo[0],oo[0])})}return findCycles_1}var floydWarshall_1,hasRequiredFloydWarshall;function requireFloydWarshall(){if(hasRequiredFloydWarshall)return floydWarshall_1;hasRequiredFloydWarshall=1;var eo=requireLodash();floydWarshall_1=ro;var to=eo.constant(1);function ro(oo,io,so){return no(oo,io||to,so||function(ao){return oo.outEdges(ao)})}function no(oo,io,so){var ao={},lo=oo.nodes();return lo.forEach(function(uo){ao[uo]={},ao[uo][uo]={distance:0},lo.forEach(function(co){uo!==co&&(ao[uo][co]={distance:Number.POSITIVE_INFINITY})}),so(uo).forEach(function(co){var fo=co.v===uo?co.w:co.v,po=io(co);ao[uo][fo]={distance:po,predecessor:uo}})}),lo.forEach(function(uo){var co=ao[uo];lo.forEach(function(fo){var po=ao[fo];lo.forEach(function(ho){var mo=po[uo],vo=co[ho],bo=po[ho],xo=mo.distance+vo.distance;xo0;){if(uo=lo.removeMin(),eo.has(ao,uo))so.setEdge(uo,ao[uo]);else{if(fo)throw new Error("Input graph is not connected: "+oo);fo=!0}oo.nodeEdges(uo).forEach(co)}return so}return prim_1}var alg,hasRequiredAlg;function requireAlg(){return hasRequiredAlg||(hasRequiredAlg=1,alg={components:requireComponents(),dijkstra:requireDijkstra(),dijkstraAll:requireDijkstraAll(),findCycles:requireFindCycles(),floydWarshall:requireFloydWarshall(),isAcyclic:requireIsAcyclic(),postorder:requirePostorder(),preorder:requirePreorder(),prim:requirePrim(),tarjan:requireTarjan(),topsort:requireTopsort()}),alg}var graphlib$1,hasRequiredGraphlib;function requireGraphlib(){if(hasRequiredGraphlib)return graphlib$1;hasRequiredGraphlib=1;var eo=requireLib();return graphlib$1={Graph:eo.Graph,json:requireJson(),alg:requireAlg(),version:eo.version},graphlib$1}var graphlib;if(typeof commonjsRequire$1=="function")try{graphlib=requireGraphlib()}catch{}graphlib||(graphlib=window.graphlib);var graphlib_1=graphlib,cloneDeep_1,hasRequiredCloneDeep;function requireCloneDeep(){if(hasRequiredCloneDeep)return cloneDeep_1;hasRequiredCloneDeep=1;var eo=_baseClone,to=1,ro=4;function no(oo){return eo(oo,to|ro)}return cloneDeep_1=no,cloneDeep_1}var eq=eq_1,isArrayLike$3=isArrayLike_1,isIndex=_isIndex,isObject$7=isObject_1;function isIterateeCall$2(eo,to,ro){if(!isObject$7(ro))return!1;var no=typeof to;return(no=="number"?isArrayLike$3(ro)&&isIndex(to,ro.length):no=="string"&&to in ro)?eq(ro[to],eo):!1}var _isIterateeCall=isIterateeCall$2,defaults_1,hasRequiredDefaults;function requireDefaults(){if(hasRequiredDefaults)return defaults_1;hasRequiredDefaults=1;var eo=_baseRest,to=eq_1,ro=_isIterateeCall,no=keysIn_1,oo=Object.prototype,io=oo.hasOwnProperty,so=eo(function(ao,lo){ao=Object(ao);var uo=-1,co=lo.length,fo=co>2?lo[2]:void 0;for(fo&&ro(lo[0],lo[1],fo)&&(co=1);++uo-1?oo[io?to[so]:so]:void 0}}var _createFind=createFind$1,reWhitespace=/\s/;function trimmedEndIndex$1(eo){for(var to=eo.length;to--&&reWhitespace.test(eo.charAt(to)););return to}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(eo){return eo&&eo.slice(0,trimmedEndIndex(eo)+1).replace(reTrimStart,"")}var _baseTrim=baseTrim$1,baseTrim=_baseTrim,isObject$6=isObject_1,isSymbol$2=isSymbol_1,NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$1(eo){if(typeof eo=="number")return eo;if(isSymbol$2(eo))return NAN;if(isObject$6(eo)){var to=typeof eo.valueOf=="function"?eo.valueOf():eo;eo=isObject$6(to)?to+"":to}if(typeof eo!="string")return eo===0?eo:+eo;eo=baseTrim(eo);var ro=reIsBinary.test(eo);return ro||reIsOctal.test(eo)?freeParseInt(eo.slice(2),ro?2:8):reIsBadHex.test(eo)?NAN:+eo}var toNumber_1=toNumber$1,toNumber=toNumber_1,INFINITY=1/0,MAX_INTEGER=17976931348623157e292;function toFinite$2(eo){if(!eo)return eo===0?eo:0;if(eo=toNumber(eo),eo===INFINITY||eo===-INFINITY){var to=eo<0?-1:1;return to*MAX_INTEGER}return eo===eo?eo:0}var toFinite_1=toFinite$2,toFinite$1=toFinite_1;function toInteger$1(eo){var to=toFinite$1(eo),ro=to%1;return to===to?ro?to-ro:to:0}var toInteger_1=toInteger$1,baseFindIndex=_baseFindIndex,baseIteratee$3=_baseIteratee,toInteger=toInteger_1,nativeMax$1=Math.max;function findIndex$1(eo,to,ro){var no=eo==null?0:eo.length;if(!no)return-1;var oo=ro==null?0:toInteger(ro);return oo<0&&(oo=nativeMax$1(no+oo,0)),baseFindIndex(eo,baseIteratee$3(to),oo)}var findIndex_1=findIndex$1,createFind=_createFind,findIndex=findIndex_1,find=createFind(findIndex),find_1=find,baseFlatten$1=_baseFlatten;function flatten$1(eo){var to=eo==null?0:eo.length;return to?baseFlatten$1(eo,1):[]}var flatten_1=flatten$1,forIn_1,hasRequiredForIn;function requireForIn(){if(hasRequiredForIn)return forIn_1;hasRequiredForIn=1;var eo=_baseFor,to=require_castFunction(),ro=keysIn_1;function no(oo,io){return oo==null?oo:eo(oo,to(io),ro)}return forIn_1=no,forIn_1}function last(eo){var to=eo==null?0:eo.length;return to?eo[to-1]:void 0}var last_1=last,baseAssignValue=_baseAssignValue,baseForOwn=_baseForOwn,baseIteratee$2=_baseIteratee;function mapValues(eo,to){var ro={};return to=baseIteratee$2(to),baseForOwn(eo,function(no,oo,io){baseAssignValue(ro,oo,to(no,oo,io))}),ro}var mapValues_1=mapValues,isSymbol$1=isSymbol_1;function baseExtremum$3(eo,to,ro){for(var no=-1,oo=eo.length;++noto}var _baseGt=baseGt$1,baseExtremum$2=_baseExtremum,baseGt=_baseGt,identity$4=identity_1;function max$1(eo){return eo&&eo.length?baseExtremum$2(eo,identity$4,baseGt):void 0}var max_1=max$1,_assignMergeValue,hasRequired_assignMergeValue;function require_assignMergeValue(){if(hasRequired_assignMergeValue)return _assignMergeValue;hasRequired_assignMergeValue=1;var eo=_baseAssignValue,to=eq_1;function ro(no,oo,io){(io!==void 0&&!to(no[oo],io)||io===void 0&&!(oo in no))&&eo(no,oo,io)}return _assignMergeValue=ro,_assignMergeValue}var baseGetTag=_baseGetTag,getPrototype=_getPrototype,isObjectLike=isObjectLike_1,objectTag="[object Object]",funcProto=Function.prototype,objectProto=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$2=objectProto.hasOwnProperty,objectCtorString=funcToString.call(Object);function isPlainObject$1(eo){if(!isObjectLike(eo)||baseGetTag(eo)!=objectTag)return!1;var to=getPrototype(eo);if(to===null)return!0;var ro=hasOwnProperty$2.call(to,"constructor")&&to.constructor;return typeof ro=="function"&&ro instanceof ro&&funcToString.call(ro)==objectCtorString}var isPlainObject_1=isPlainObject$1,_safeGet,hasRequired_safeGet;function require_safeGet(){if(hasRequired_safeGet)return _safeGet;hasRequired_safeGet=1;function eo(to,ro){if(!(ro==="constructor"&&typeof to[ro]=="function")&&ro!="__proto__")return to[ro]}return _safeGet=eo,_safeGet}var toPlainObject_1,hasRequiredToPlainObject;function requireToPlainObject(){if(hasRequiredToPlainObject)return toPlainObject_1;hasRequiredToPlainObject=1;var eo=_copyObject,to=keysIn_1;function ro(no){return eo(no,to(no))}return toPlainObject_1=ro,toPlainObject_1}var _baseMergeDeep,hasRequired_baseMergeDeep;function require_baseMergeDeep(){if(hasRequired_baseMergeDeep)return _baseMergeDeep;hasRequired_baseMergeDeep=1;var eo=require_assignMergeValue(),to=_cloneBufferExports,ro=_cloneTypedArray,no=_copyArray,oo=_initCloneObject,io=isArguments_1,so=isArray_1,ao=requireIsArrayLikeObject(),lo=isBufferExports,uo=isFunction_1,co=isObject_1,fo=isPlainObject_1,po=isTypedArray_1,ho=require_safeGet(),mo=requireToPlainObject();function vo(bo,xo,_o,So,Eo,ko,wo){var Co=ho(bo,_o),Ro=ho(xo,_o),Ao=wo.get(Ro);if(Ao){eo(bo,_o,Ao);return}var Io=ko?ko(Co,Ro,_o+"",bo,xo,wo):void 0,$o=Io===void 0;if($o){var Bo=so(Ro),Mo=!Bo&&lo(Ro),Ho=!Bo&&!Mo&&po(Ro);Io=Ro,Bo||Mo||Ho?so(Co)?Io=Co:ao(Co)?Io=no(Co):Mo?($o=!1,Io=to(Ro,!0)):Ho?($o=!1,Io=ro(Ro,!0)):Io=[]:fo(Ro)||io(Ro)?(Io=Co,io(Co)?Io=mo(Co):(!co(Co)||uo(Co))&&(Io=oo(Ro))):$o=!1}$o&&(wo.set(Ro,Io),Eo(Io,Ro,So,ko,wo),wo.delete(Ro)),eo(bo,_o,Io)}return _baseMergeDeep=vo,_baseMergeDeep}var _baseMerge,hasRequired_baseMerge;function require_baseMerge(){if(hasRequired_baseMerge)return _baseMerge;hasRequired_baseMerge=1;var eo=_Stack,to=require_assignMergeValue(),ro=_baseFor,no=require_baseMergeDeep(),oo=isObject_1,io=keysIn_1,so=require_safeGet();function ao(lo,uo,co,fo,po){lo!==uo&&ro(uo,function(ho,mo){if(po||(po=new eo),oo(ho))no(lo,uo,mo,co,ao,fo,po);else{var vo=fo?fo(so(lo,mo),ho,mo+"",lo,uo,po):void 0;vo===void 0&&(vo=ho),to(lo,mo,vo)}},io)}return _baseMerge=ao,_baseMerge}var _createAssigner,hasRequired_createAssigner;function require_createAssigner(){if(hasRequired_createAssigner)return _createAssigner;hasRequired_createAssigner=1;var eo=_baseRest,to=_isIterateeCall;function ro(no){return eo(function(oo,io){var so=-1,ao=io.length,lo=ao>1?io[ao-1]:void 0,uo=ao>2?io[2]:void 0;for(lo=no.length>3&&typeof lo=="function"?(ao--,lo):void 0,uo&&to(io[0],io[1],uo)&&(lo=ao<3?void 0:lo,ao=1),oo=Object(oo);++soto||io&&so&&lo&&!ao&&!uo||no&&so&&lo||!ro&&lo||!oo)return 1;if(!no&&!io&&!uo&&eo=ao)return lo;var uo=ro[no];return lo*(uo=="desc"?-1:1)}}return eo.index-to.index}var _compareMultiple=compareMultiple$1,arrayMap=_arrayMap,baseGet=_baseGet,baseIteratee=_baseIteratee,baseMap=_baseMap,baseSortBy=_baseSortBy,baseUnary=_baseUnary,compareMultiple=_compareMultiple,identity$2=identity_1,isArray$1=isArray_1;function baseOrderBy$1(eo,to,ro){to.length?to=arrayMap(to,function(io){return isArray$1(io)?function(so){return baseGet(so,io.length===1?io[0]:io)}:io}):to=[identity$2];var no=-1;to=arrayMap(to,baseUnary(baseIteratee));var oo=baseMap(eo,function(io,so,ao){var lo=arrayMap(to,function(uo){return uo(io)});return{criteria:lo,index:++no,value:io}});return baseSortBy(oo,function(io,so){return compareMultiple(io,so,ro)})}var _baseOrderBy=baseOrderBy$1,baseFlatten=_baseFlatten,baseOrderBy=_baseOrderBy,baseRest=_baseRest,isIterateeCall=_isIterateeCall,sortBy=baseRest(function(eo,to){if(eo==null)return[];var ro=to.length;return ro>1&&isIterateeCall(eo,to[0],to[1])?to=[]:ro>2&&isIterateeCall(to[0],to[1],to[2])&&(to=[to[0]]),baseOrderBy(eo,baseFlatten(to,1),[])}),sortBy_1=sortBy,uniqueId_1,hasRequiredUniqueId;function requireUniqueId(){if(hasRequiredUniqueId)return uniqueId_1;hasRequiredUniqueId=1;var eo=toString_1,to=0;function ro(no){var oo=++to;return eo(no)+oo}return uniqueId_1=ro,uniqueId_1}var _baseZipObject,hasRequired_baseZipObject;function require_baseZipObject(){if(hasRequired_baseZipObject)return _baseZipObject;hasRequired_baseZipObject=1;function eo(to,ro,no){for(var oo=-1,io=to.length,so=ro.length,ao={};++oo0;--ao)if(so=to[ao].dequeue(),so){no=no.concat(removeNode(eo,to,ro,so,!0));break}}}return no}function removeNode(eo,to,ro,no,oo){var io=oo?[]:void 0;return _$u.forEach(eo.inEdges(no.v),function(so){var ao=eo.edge(so),lo=eo.node(so.v);oo&&io.push({v:so.v,w:so.w}),lo.out-=ao,assignBucket(to,ro,lo)}),_$u.forEach(eo.outEdges(no.v),function(so){var ao=eo.edge(so),lo=so.w,uo=eo.node(lo);uo.in-=ao,assignBucket(to,ro,uo)}),eo.removeNode(no.v),io}function buildState(eo,to){var ro=new Graph$8,no=0,oo=0;_$u.forEach(eo.nodes(),function(ao){ro.setNode(ao,{v:ao,in:0,out:0})}),_$u.forEach(eo.edges(),function(ao){var lo=ro.edge(ao.v,ao.w)||0,uo=to(ao),co=lo+uo;ro.setEdge(ao.v,ao.w,co),oo=Math.max(oo,ro.node(ao.v).out+=uo),no=Math.max(no,ro.node(ao.w).in+=uo)});var io=_$u.range(oo+no+3).map(function(){return new List$2}),so=no+1;return _$u.forEach(ro.nodes(),function(ao){assignBucket(io,so,ro.node(ao))}),{graph:ro,buckets:io,zeroIdx:so}}function assignBucket(eo,to,ro){ro.out?ro.in?eo[ro.out-ro.in+to].enqueue(ro):eo[eo.length-1].enqueue(ro):eo[0].enqueue(ro)}var _$t=lodash_1,greedyFAS=greedyFas,acyclic$1={run:run$2,undo:undo$3};function run$2(eo){var to=eo.graph().acyclicer==="greedy"?greedyFAS(eo,ro(eo)):dfsFAS(eo);_$t.forEach(to,function(no){var oo=eo.edge(no);eo.removeEdge(no),oo.forwardName=no.name,oo.reversed=!0,eo.setEdge(no.w,no.v,oo,_$t.uniqueId("rev"))});function ro(no){return function(oo){return no.edge(oo).weight}}}function dfsFAS(eo){var to=[],ro={},no={};function oo(io){_$t.has(no,io)||(no[io]=!0,ro[io]=!0,_$t.forEach(eo.outEdges(io),function(so){_$t.has(ro,so.w)?to.push(so):oo(so.w)}),delete ro[io])}return _$t.forEach(eo.nodes(),oo),to}function undo$3(eo){_$t.forEach(eo.edges(),function(to){var ro=eo.edge(to);if(ro.reversed){eo.removeEdge(to);var no=ro.forwardName;delete ro.reversed,delete ro.forwardName,eo.setEdge(to.w,to.v,ro,no)}})}var _$s=lodash_1,Graph$7=graphlib_1.Graph,util$a={addDummyNode,simplify:simplify$1,asNonCompoundGraph,successorWeights,predecessorWeights,intersectRect,buildLayerMatrix,normalizeRanks:normalizeRanks$1,removeEmptyRanks:removeEmptyRanks$1,addBorderNode:addBorderNode$1,maxRank,partition,time,notime};function addDummyNode(eo,to,ro,no){var oo;do oo=_$s.uniqueId(no);while(eo.hasNode(oo));return ro.dummy=to,eo.setNode(oo,ro),oo}function simplify$1(eo){var to=new Graph$7().setGraph(eo.graph());return _$s.forEach(eo.nodes(),function(ro){to.setNode(ro,eo.node(ro))}),_$s.forEach(eo.edges(),function(ro){var no=to.edge(ro.v,ro.w)||{weight:0,minlen:1},oo=eo.edge(ro);to.setEdge(ro.v,ro.w,{weight:no.weight+oo.weight,minlen:Math.max(no.minlen,oo.minlen)})}),to}function asNonCompoundGraph(eo){var to=new Graph$7({multigraph:eo.isMultigraph()}).setGraph(eo.graph());return _$s.forEach(eo.nodes(),function(ro){eo.children(ro).length||to.setNode(ro,eo.node(ro))}),_$s.forEach(eo.edges(),function(ro){to.setEdge(ro,eo.edge(ro))}),to}function successorWeights(eo){var to=_$s.map(eo.nodes(),function(ro){var no={};return _$s.forEach(eo.outEdges(ro),function(oo){no[oo.w]=(no[oo.w]||0)+eo.edge(oo).weight}),no});return _$s.zipObject(eo.nodes(),to)}function predecessorWeights(eo){var to=_$s.map(eo.nodes(),function(ro){var no={};return _$s.forEach(eo.inEdges(ro),function(oo){no[oo.v]=(no[oo.v]||0)+eo.edge(oo).weight}),no});return _$s.zipObject(eo.nodes(),to)}function intersectRect(eo,to){var ro=eo.x,no=eo.y,oo=to.x-ro,io=to.y-no,so=eo.width/2,ao=eo.height/2;if(!oo&&!io)throw new Error("Not possible to find intersection inside of the rectangle");var lo,uo;return Math.abs(io)*so>Math.abs(oo)*ao?(io<0&&(ao=-ao),lo=ao*oo/io,uo=ao):(oo<0&&(so=-so),lo=so,uo=so*io/oo),{x:ro+lo,y:no+uo}}function buildLayerMatrix(eo){var to=_$s.map(_$s.range(maxRank(eo)+1),function(){return[]});return _$s.forEach(eo.nodes(),function(ro){var no=eo.node(ro),oo=no.rank;_$s.isUndefined(oo)||(to[oo][no.order]=ro)}),to}function normalizeRanks$1(eo){var to=_$s.min(_$s.map(eo.nodes(),function(ro){return eo.node(ro).rank}));_$s.forEach(eo.nodes(),function(ro){var no=eo.node(ro);_$s.has(no,"rank")&&(no.rank-=to)})}function removeEmptyRanks$1(eo){var to=_$s.min(_$s.map(eo.nodes(),function(io){return eo.node(io).rank})),ro=[];_$s.forEach(eo.nodes(),function(io){var so=eo.node(io).rank-to;ro[so]||(ro[so]=[]),ro[so].push(io)});var no=0,oo=eo.graph().nodeRankFactor;_$s.forEach(ro,function(io,so){_$s.isUndefined(io)&&so%oo!==0?--no:no&&_$s.forEach(io,function(ao){eo.node(ao).rank+=no})})}function addBorderNode$1(eo,to,ro,no){var oo={width:0,height:0};return arguments.length>=4&&(oo.rank=ro,oo.order=no),addDummyNode(eo,"border",oo,to)}function maxRank(eo){return _$s.max(_$s.map(eo.nodes(),function(to){var ro=eo.node(to).rank;if(!_$s.isUndefined(ro))return ro}))}function partition(eo,to){var ro={lhs:[],rhs:[]};return _$s.forEach(eo,function(no){to(no)?ro.lhs.push(no):ro.rhs.push(no)}),ro}function time(eo,to){var ro=_$s.now();try{return to()}finally{console.log(eo+" time: "+(_$s.now()-ro)+"ms")}}function notime(eo,to){return to()}var _$r=lodash_1,util$9=util$a,normalize$1={run:run$1,undo:undo$2};function run$1(eo){eo.graph().dummyChains=[],_$r.forEach(eo.edges(),function(to){normalizeEdge(eo,to)})}function normalizeEdge(eo,to){var ro=to.v,no=eo.node(ro).rank,oo=to.w,io=eo.node(oo).rank,so=to.name,ao=eo.edge(to),lo=ao.labelRank;if(io!==no+1){eo.removeEdge(to);var uo,co,fo;for(fo=0,++no;noso.lim&&(ao=so,lo=!0);var uo=_$o.filter(to.edges(),function(co){return lo===isDescendant(eo,eo.node(co.v),ao)&&lo!==isDescendant(eo,eo.node(co.w),ao)});return _$o.minBy(uo,function(co){return slack(to,co)})}function exchangeEdges(eo,to,ro,no){var oo=ro.v,io=ro.w;eo.removeEdge(oo,io),eo.setEdge(no.v,no.w,{}),initLowLimValues(eo),initCutValues(eo,to),updateRanks(eo,to)}function updateRanks(eo,to){var ro=_$o.find(eo.nodes(),function(oo){return!to.node(oo).parent}),no=preorder(eo,ro);no=no.slice(1),_$o.forEach(no,function(oo){var io=eo.node(oo).parent,so=to.edge(oo,io),ao=!1;so||(so=to.edge(io,oo),ao=!0),to.node(oo).rank=to.node(io).rank+(ao?so.minlen:-so.minlen)})}function isTreeEdge(eo,to,ro){return eo.hasEdge(to,ro)}function isDescendant(eo,to,ro){return ro.low<=to.lim&&to.lim<=ro.lim}var rankUtil=util$8,longestPath=rankUtil.longestPath,feasibleTree=feasibleTree_1,networkSimplex=networkSimplex_1,rank_1=rank$1;function rank$1(eo){switch(eo.graph().ranker){case"network-simplex":networkSimplexRanker(eo);break;case"tight-tree":tightTreeRanker(eo);break;case"longest-path":longestPathRanker(eo);break;default:networkSimplexRanker(eo)}}var longestPathRanker=longestPath;function tightTreeRanker(eo){longestPath(eo),feasibleTree(eo)}function networkSimplexRanker(eo){networkSimplex(eo)}var _$n=lodash_1,parentDummyChains_1=parentDummyChains$1;function parentDummyChains$1(eo){var to=postorder(eo);_$n.forEach(eo.graph().dummyChains,function(ro){for(var no=eo.node(ro),oo=no.edgeObj,io=findPath(eo,to,oo.v,oo.w),so=io.path,ao=io.lca,lo=0,uo=so[lo],co=!0;ro!==oo.w;){if(no=eo.node(ro),co){for(;(uo=so[lo])!==ao&&eo.node(uo).maxRankso||ao>to[lo].lim));for(uo=lo,lo=no;(lo=eo.parent(lo))!==uo;)io.push(lo);return{path:oo.concat(io.reverse()),lca:uo}}function postorder(eo){var to={},ro=0;function no(oo){var io=ro;_$n.forEach(eo.children(oo),no),to[oo]={low:io,lim:ro++}}return _$n.forEach(eo.children(),no),to}var _$m=lodash_1,util$7=util$a,nestingGraph$1={run,cleanup:cleanup$1};function run(eo){var to=util$7.addDummyNode(eo,"root",{},"_root"),ro=treeDepths(eo),no=_$m.max(_$m.values(ro))-1,oo=2*no+1;eo.graph().nestingRoot=to,_$m.forEach(eo.edges(),function(so){eo.edge(so).minlen*=oo});var io=sumWeights(eo)+1;_$m.forEach(eo.children(),function(so){dfs(eo,to,oo,io,no,ro,so)}),eo.graph().nodeRankFactor=oo}function dfs(eo,to,ro,no,oo,io,so){var ao=eo.children(so);if(!ao.length){so!==to&&eo.setEdge(to,so,{weight:0,minlen:ro});return}var lo=util$7.addBorderNode(eo,"_bt"),uo=util$7.addBorderNode(eo,"_bb"),co=eo.node(so);eo.setParent(lo,so),co.borderTop=lo,eo.setParent(uo,so),co.borderBottom=uo,_$m.forEach(ao,function(fo){dfs(eo,to,ro,no,oo,io,fo);var po=eo.node(fo),ho=po.borderTop?po.borderTop:fo,mo=po.borderBottom?po.borderBottom:fo,vo=po.borderTop?no:2*no,bo=ho!==mo?1:oo-io[so]+1;eo.setEdge(lo,ho,{weight:vo,minlen:bo,nestingEdge:!0}),eo.setEdge(mo,uo,{weight:vo,minlen:bo,nestingEdge:!0})}),eo.parent(so)||eo.setEdge(to,lo,{weight:0,minlen:oo+io[so]})}function treeDepths(eo){var to={};function ro(no,oo){var io=eo.children(no);io&&io.length&&_$m.forEach(io,function(so){ro(so,oo+1)}),to[no]=oo}return _$m.forEach(eo.children(),function(no){ro(no,1)}),to}function sumWeights(eo){return _$m.reduce(eo.edges(),function(to,ro){return to+eo.edge(ro).weight},0)}function cleanup$1(eo){var to=eo.graph();eo.removeNode(to.nestingRoot),delete to.nestingRoot,_$m.forEach(eo.edges(),function(ro){var no=eo.edge(ro);no.nestingEdge&&eo.removeEdge(ro)})}var _$l=lodash_1,util$6=util$a,addBorderSegments_1=addBorderSegments$1;function addBorderSegments$1(eo){function to(ro){var no=eo.children(ro),oo=eo.node(ro);if(no.length&&_$l.forEach(no,to),_$l.has(oo,"minRank")){oo.borderLeft=[],oo.borderRight=[];for(var io=oo.minRank,so=oo.maxRank+1;io0;)co%2&&(fo+=ao[co+1]),co=co-1>>1,ao[co]+=uo.weight;lo+=uo.weight*fo})),lo}var _$h=lodash_1,barycenter_1=barycenter$1;function barycenter$1(eo,to){return _$h.map(to,function(ro){var no=eo.inEdges(ro);if(no.length){var oo=_$h.reduce(no,function(io,so){var ao=eo.edge(so),lo=eo.node(so.v);return{sum:io.sum+ao.weight*lo.order,weight:io.weight+ao.weight}},{sum:0,weight:0});return{v:ro,barycenter:oo.sum/oo.weight,weight:oo.weight}}else return{v:ro}})}var _$g=lodash_1,resolveConflicts_1=resolveConflicts$1;function resolveConflicts$1(eo,to){var ro={};_$g.forEach(eo,function(oo,io){var so=ro[oo.v]={indegree:0,in:[],out:[],vs:[oo.v],i:io};_$g.isUndefined(oo.barycenter)||(so.barycenter=oo.barycenter,so.weight=oo.weight)}),_$g.forEach(to.edges(),function(oo){var io=ro[oo.v],so=ro[oo.w];!_$g.isUndefined(io)&&!_$g.isUndefined(so)&&(so.indegree++,io.out.push(ro[oo.w]))});var no=_$g.filter(ro,function(oo){return!oo.indegree});return doResolveConflicts(no)}function doResolveConflicts(eo){var to=[];function ro(io){return function(so){so.merged||(_$g.isUndefined(so.barycenter)||_$g.isUndefined(io.barycenter)||so.barycenter>=io.barycenter)&&mergeEntries(io,so)}}function no(io){return function(so){so.in.push(io),--so.indegree===0&&eo.push(so)}}for(;eo.length;){var oo=eo.pop();to.push(oo),_$g.forEach(oo.in.reverse(),ro(oo)),_$g.forEach(oo.out,no(oo))}return _$g.map(_$g.filter(to,function(io){return!io.merged}),function(io){return _$g.pick(io,["vs","i","barycenter","weight"])})}function mergeEntries(eo,to){var ro=0,no=0;eo.weight&&(ro+=eo.barycenter*eo.weight,no+=eo.weight),to.weight&&(ro+=to.barycenter*to.weight,no+=to.weight),eo.vs=to.vs.concat(eo.vs),eo.barycenter=ro/no,eo.weight=no,eo.i=Math.min(to.i,eo.i),to.merged=!0}var _$f=lodash_1,util$5=util$a,sort_1=sort$1;function sort$1(eo,to){var ro=util$5.partition(eo,function(co){return _$f.has(co,"barycenter")}),no=ro.lhs,oo=_$f.sortBy(ro.rhs,function(co){return-co.i}),io=[],so=0,ao=0,lo=0;no.sort(compareWithBias(!!to)),lo=consumeUnsortable(io,oo,lo),_$f.forEach(no,function(co){lo+=co.vs.length,io.push(co.vs),so+=co.barycenter*co.weight,ao+=co.weight,lo=consumeUnsortable(io,oo,lo)});var uo={vs:_$f.flatten(io,!0)};return ao&&(uo.barycenter=so/ao,uo.weight=ao),uo}function consumeUnsortable(eo,to,ro){for(var no;to.length&&(no=_$f.last(to)).i<=ro;)to.pop(),eo.push(no.vs),ro++;return ro}function compareWithBias(eo){return function(to,ro){return to.barycenterro.barycenter?1:eo?ro.i-to.i:to.i-ro.i}}var _$e=lodash_1,barycenter=barycenter_1,resolveConflicts=resolveConflicts_1,sort=sort_1,sortSubgraph_1=sortSubgraph$1;function sortSubgraph$1(eo,to,ro,no){var oo=eo.children(to),io=eo.node(to),so=io?io.borderLeft:void 0,ao=io?io.borderRight:void 0,lo={};so&&(oo=_$e.filter(oo,function(mo){return mo!==so&&mo!==ao}));var uo=barycenter(eo,oo);_$e.forEach(uo,function(mo){if(eo.children(mo.v).length){var vo=sortSubgraph$1(eo,mo.v,ro,no);lo[mo.v]=vo,_$e.has(vo,"barycenter")&&mergeBarycenters(mo,vo)}});var co=resolveConflicts(uo,ro);expandSubgraphs(co,lo);var fo=sort(co,no);if(so&&(fo.vs=_$e.flatten([so,fo.vs,ao],!0),eo.predecessors(so).length)){var po=eo.node(eo.predecessors(so)[0]),ho=eo.node(eo.predecessors(ao)[0]);_$e.has(fo,"barycenter")||(fo.barycenter=0,fo.weight=0),fo.barycenter=(fo.barycenter*fo.weight+po.order+ho.order)/(fo.weight+2),fo.weight+=2}return fo}function expandSubgraphs(eo,to){_$e.forEach(eo,function(ro){ro.vs=_$e.flatten(ro.vs.map(function(no){return to[no]?to[no].vs:no}),!0)})}function mergeBarycenters(eo,to){_$e.isUndefined(eo.barycenter)?(eo.barycenter=to.barycenter,eo.weight=to.weight):(eo.barycenter=(eo.barycenter*eo.weight+to.barycenter*to.weight)/(eo.weight+to.weight),eo.weight+=to.weight)}var _$d=lodash_1,Graph$5=graphlib_1.Graph,buildLayerGraph_1=buildLayerGraph$1;function buildLayerGraph$1(eo,to,ro){var no=createRootNode(eo),oo=new Graph$5({compound:!0}).setGraph({root:no}).setDefaultNodeLabel(function(io){return eo.node(io)});return _$d.forEach(eo.nodes(),function(io){var so=eo.node(io),ao=eo.parent(io);(so.rank===to||so.minRank<=to&&to<=so.maxRank)&&(oo.setNode(io),oo.setParent(io,ao||no),_$d.forEach(eo[ro](io),function(lo){var uo=lo.v===io?lo.w:lo.v,co=oo.edge(uo,io),fo=_$d.isUndefined(co)?0:co.weight;oo.setEdge(uo,io,{weight:eo.edge(lo).weight+fo})}),_$d.has(so,"minRank")&&oo.setNode(io,{borderLeft:so.borderLeft[to],borderRight:so.borderRight[to]}))}),oo}function createRootNode(eo){for(var to;eo.hasNode(to=_$d.uniqueId("_root")););return to}var _$c=lodash_1,addSubgraphConstraints_1=addSubgraphConstraints$1;function addSubgraphConstraints$1(eo,to,ro){var no={},oo;_$c.forEach(ro,function(io){for(var so=eo.parent(io),ao,lo;so;){if(ao=eo.parent(so),ao?(lo=no[ao],no[ao]=so):(lo=oo,oo=so),lo&&lo!==so){to.setEdge(lo,so);return}so=ao}})}var _$b=lodash_1,initOrder=initOrder_1,crossCount=crossCount_1,sortSubgraph=sortSubgraph_1,buildLayerGraph=buildLayerGraph_1,addSubgraphConstraints=addSubgraphConstraints_1,Graph$4=graphlib_1.Graph,util$4=util$a,order_1=order$1;function order$1(eo){var to=util$4.maxRank(eo),ro=buildLayerGraphs(eo,_$b.range(1,to+1),"inEdges"),no=buildLayerGraphs(eo,_$b.range(to-1,-1,-1),"outEdges"),oo=initOrder(eo);assignOrder(eo,oo);for(var io=Number.POSITIVE_INFINITY,so,ao=0,lo=0;lo<4;++ao,++lo){sweepLayerGraphs(ao%2?ro:no,ao%4>=2),oo=util$4.buildLayerMatrix(eo);var uo=crossCount(eo,oo);uouo)&&addConflict(ro,po,co)})})}function oo(io,so){var ao=-1,lo,uo=0;return _$a.forEach(so,function(co,fo){if(eo.node(co).dummy==="border"){var po=eo.predecessors(co);po.length&&(lo=eo.node(po[0]).order,no(so,uo,fo,ao,lo),uo=fo,ao=lo)}no(so,uo,so.length,lo,io.length)}),so}return _$a.reduce(to,oo),ro}function findOtherInnerSegmentNode(eo,to){if(eo.node(to).dummy)return _$a.find(eo.predecessors(to),function(ro){return eo.node(ro).dummy})}function addConflict(eo,to,ro){if(to>ro){var no=to;to=ro,ro=no}var oo=eo[to];oo||(eo[to]=oo={}),oo[ro]=!0}function hasConflict(eo,to,ro){if(to>ro){var no=to;to=ro,ro=no}return _$a.has(eo[to],ro)}function verticalAlignment(eo,to,ro,no){var oo={},io={},so={};return _$a.forEach(to,function(ao){_$a.forEach(ao,function(lo,uo){oo[lo]=lo,io[lo]=lo,so[lo]=uo})}),_$a.forEach(to,function(ao){var lo=-1;_$a.forEach(ao,function(uo){var co=no(uo);if(co.length){co=_$a.sortBy(co,function(vo){return so[vo]});for(var fo=(co.length-1)/2,po=Math.floor(fo),ho=Math.ceil(fo);po<=ho;++po){var mo=co[po];io[uo]===uo&&lo=0;ao--)(so=eo[ao])&&(io=(oo<3?so(io):oo>3?so(to,ro,io):so(to,ro))||io);return oo>3&&io&&Object.defineProperty(to,ro,io),io}function __spreadArray$1(eo,to,ro){if(ro||arguments.length===2)for(var no=0,oo=to.length,io;no"u"?InjectionMode$1.none:InjectionMode$1.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},to),this._classNameToArgs=(no=ro==null?void 0:ro.classNameToArgs)!==null&&no!==void 0?no:this._classNameToArgs,this._counter=(oo=ro==null?void 0:ro.counter)!==null&&oo!==void 0?oo:this._counter,this._keyToClassName=(so=(io=this._config.classNameCache)!==null&&io!==void 0?io:ro==null?void 0:ro.keyToClassName)!==null&&so!==void 0?so:this._keyToClassName,this._preservedRules=(ao=ro==null?void 0:ro.preservedRules)!==null&&ao!==void 0?ao:this._preservedRules,this._rules=(lo=ro==null?void 0:ro.rules)!==null&&lo!==void 0?lo:this._rules}return eo.getInstance=function(){if(_stylesheet$1=_global$2[STYLESHEET_SETTING$1],!_stylesheet$1||_stylesheet$1._lastStyleElement&&_stylesheet$1._lastStyleElement.ownerDocument!==document){var to=(_global$2==null?void 0:_global$2.FabricConfig)||{},ro=new eo(to.mergeStyles,to.serializedStylesheet);_stylesheet$1=ro,_global$2[STYLESHEET_SETTING$1]=ro}return _stylesheet$1},eo.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},eo.prototype.setConfig=function(to){this._config=__assign$4(__assign$4({},this._config),to)},eo.prototype.onReset=function(to){var ro=this;return this._onResetCallbacks.push(to),function(){ro._onResetCallbacks=ro._onResetCallbacks.filter(function(no){return no!==to})}},eo.prototype.onInsertRule=function(to){var ro=this;return this._onInsertRuleCallbacks.push(to),function(){ro._onInsertRuleCallbacks=ro._onInsertRuleCallbacks.filter(function(no){return no!==to})}},eo.prototype.getClassName=function(to){var ro=this._config.namespace,no=to||this._config.defaultPrefix;return"".concat(ro?ro+"-":"").concat(no,"-").concat(this._counter++)},eo.prototype.cacheClassName=function(to,ro,no,oo){this._keyToClassName[ro]=to,this._classNameToArgs[to]={args:no,rules:oo}},eo.prototype.classNameFromKey=function(to){return this._keyToClassName[to]},eo.prototype.getClassNameCache=function(){return this._keyToClassName},eo.prototype.argsFromClassName=function(to){var ro=this._classNameToArgs[to];return ro&&ro.args},eo.prototype.insertedRulesFromClassName=function(to){var ro=this._classNameToArgs[to];return ro&&ro.rules},eo.prototype.insertRule=function(to,ro){var no=this._config.injectionMode,oo=no!==InjectionMode$1.none?this._getStyleElement():void 0;if(ro&&this._preservedRules.push(to),oo)switch(no){case InjectionMode$1.insertNode:var io=oo.sheet;try{io.insertRule(to,io.cssRules.length)}catch{}break;case InjectionMode$1.appendChild:oo.appendChild(document.createTextNode(to));break}else this._rules.push(to);this._config.onInsertRule&&this._config.onInsertRule(to),this._onInsertRuleCallbacks.forEach(function(so){return so()})},eo.prototype.getRules=function(to){return(to?this._preservedRules.join(""):"")+this._rules.join("")},eo.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(to){return to()})},eo.prototype.resetKeys=function(){this._keyToClassName={}},eo.prototype._getStyleElement=function(){var to=this;return!this._styleElement&&typeof document<"u"&&(this._styleElement=this._createStyleElement(),REUSE_STYLE_NODE$1||window.requestAnimationFrame(function(){to._styleElement=void 0})),this._styleElement},eo.prototype._createStyleElement=function(){var to=document.head,ro=document.createElement("style"),no=null;ro.setAttribute("data-merge-styles","true");var oo=this._config.cspSettings;if(oo&&oo.nonce&&ro.setAttribute("nonce",oo.nonce),this._lastStyleElement)no=this._lastStyleElement.nextElementSibling;else{var io=this._findPlaceholderStyleTag();io?no=io.nextElementSibling:no=to.childNodes[0]}return to.insertBefore(ro,to.contains(no)?no:null),this._lastStyleElement=ro,ro},eo.prototype._findPlaceholderStyleTag=function(){var to=document.head;return to?to.querySelector("style[data-merge-styles]"):null},eo}();function extractStyleParts$1(){for(var eo=[],to=0;to=0)io(uo.split(" "));else{var co=oo.argsFromClassName(uo);co?io(co):ro.indexOf(uo)===-1&&ro.push(uo)}else Array.isArray(uo)?io(uo):typeof uo=="object"&&no.push(uo)}}return io(eo),{classes:ro,objects:no}}function setRTL$1(eo){_rtl$1!==eo&&(_rtl$1=eo)}function getRTL$2(){return _rtl$1===void 0&&(_rtl$1=typeof document<"u"&&!!document.documentElement&&document.documentElement.getAttribute("dir")==="rtl"),_rtl$1}var _rtl$1;_rtl$1=getRTL$2();function getStyleOptions$1(){return{rtl:getRTL$2()}}var rules$1={};function kebabRules$1(eo,to){var ro=eo[to];ro.charAt(0)!=="-"&&(eo[to]=rules$1[ro]=rules$1[ro]||ro.replace(/([A-Z])/g,"-$1").toLowerCase())}var _vendorSettings$1;function getVendorSettings$1(){var eo;if(!_vendorSettings$1){var to=typeof document<"u"?document:void 0,ro=typeof navigator<"u"?navigator:void 0,no=(eo=ro==null?void 0:ro.userAgent)===null||eo===void 0?void 0:eo.toLowerCase();to?_vendorSettings$1={isWebkit:!!(to&&"WebkitAppearance"in to.documentElement.style),isMoz:!!(no&&no.indexOf("firefox")>-1),isOpera:!!(no&&no.indexOf("opera")>-1),isMs:!!(ro&&(/rv:11.0/i.test(ro.userAgent)||/Edge\/\d./i.test(navigator.userAgent)))}:_vendorSettings$1={isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return _vendorSettings$1}var autoPrefixNames$1={"user-select":1};function prefixRules$1(eo,to){var ro=getVendorSettings$1(),no=eo[to];if(autoPrefixNames$1[no]){var oo=eo[to+1];autoPrefixNames$1[no]&&(ro.isWebkit&&eo.push("-webkit-"+no,oo),ro.isMoz&&eo.push("-moz-"+no,oo),ro.isMs&&eo.push("-ms-"+no,oo),ro.isOpera&&eo.push("-o-"+no,oo))}}var NON_PIXEL_NUMBER_PROPS$1=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function provideUnits$1(eo,to){var ro=eo[to],no=eo[to+1];if(typeof no=="number"){var oo=NON_PIXEL_NUMBER_PROPS$1.indexOf(ro)>-1,io=ro.indexOf("--")>-1,so=oo||io?"":"px";eo[to+1]="".concat(no).concat(so)}}var _a$9,LEFT$1="left",RIGHT$1="right",NO_FLIP$1="@noflip",NAME_REPLACEMENTS$1=(_a$9={},_a$9[LEFT$1]=RIGHT$1,_a$9[RIGHT$1]=LEFT$1,_a$9),VALUE_REPLACEMENTS$1={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function rtlifyRules$1(eo,to,ro){if(eo.rtl){var no=to[ro];if(!no)return;var oo=to[ro+1];if(typeof oo=="string"&&oo.indexOf(NO_FLIP$1)>=0)to[ro+1]=oo.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(no.indexOf(LEFT$1)>=0)to[ro]=no.replace(LEFT$1,RIGHT$1);else if(no.indexOf(RIGHT$1)>=0)to[ro]=no.replace(RIGHT$1,LEFT$1);else if(String(oo).indexOf(LEFT$1)>=0)to[ro+1]=oo.replace(LEFT$1,RIGHT$1);else if(String(oo).indexOf(RIGHT$1)>=0)to[ro+1]=oo.replace(RIGHT$1,LEFT$1);else if(NAME_REPLACEMENTS$1[no])to[ro]=NAME_REPLACEMENTS$1[no];else if(VALUE_REPLACEMENTS$1[oo])to[ro+1]=VALUE_REPLACEMENTS$1[oo];else switch(no){case"margin":case"padding":to[ro+1]=flipQuad$1(oo);break;case"box-shadow":to[ro+1]=negateNum$1(oo,0);break}}}function negateNum$1(eo,to){var ro=eo.split(" "),no=parseInt(ro[to],10);return ro[0]=ro[0].replace(String(no),String(no*-1)),ro.join(" ")}function flipQuad$1(eo){if(typeof eo=="string"){var to=eo.split(" ");if(to.length===4)return"".concat(to[0]," ").concat(to[3]," ").concat(to[2]," ").concat(to[1])}return eo}function tokenizeWithParentheses$1(eo){for(var to=[],ro=0,no=0,oo=0;ooro&&to.push(eo.substring(ro,oo)),ro=oo+1);break}return ro-1&&to.push([no.index,no.index+no[0].length,no[1].split(",").map(function(oo){return":global(".concat(oo.trim(),")")}).join(", ")]);return to.reverse().reduce(function(oo,io){var so=io[0],ao=io[1],lo=io[2],uo=oo.slice(0,so),co=oo.slice(ao);return uo+lo+co},eo)}function expandSelector$1(eo,to){return eo.indexOf(":global(")>=0?eo.replace(globalSelectorRegExp$1,"$1"):eo.indexOf(":")===0?to+eo:eo.indexOf("&")<0?to+" "+eo:eo}function extractSelector$1(eo,to,ro,no){to===void 0&&(to={__order:[]}),ro.indexOf("@")===0?(ro=ro+"{"+eo,extractRules$1([no],to,ro)):ro.indexOf(",")>-1?expandCommaSeparatedGlobals$1(ro).split(",").map(function(oo){return oo.trim()}).forEach(function(oo){return extractRules$1([no],to,expandSelector$1(oo,eo))}):extractRules$1([no],to,expandSelector$1(ro,eo))}function extractRules$1(eo,to,ro){to===void 0&&(to={__order:[]}),ro===void 0&&(ro="&");var no=Stylesheet$1.getInstance(),oo=to[ro];oo||(oo={},to[ro]=oo,to.__order.push(ro));for(var io=0,so=eo;io0){ro.subComponentStyles={};var po=ro.subComponentStyles,ho=function(mo){if(no.hasOwnProperty(mo)){var vo=no[mo];po[mo]=function(bo){return concatStyleSets.apply(void 0,vo.map(function(xo){return typeof xo=="function"?xo(bo):xo}))}}};for(var uo in no)ho(uo)}return ro}function mergeStyleSets(){for(var eo=[],to=0;to"u")){var to=eo;return to&&to.ownerDocument&&to.ownerDocument.defaultView?to.ownerDocument.defaultView:_window}}var Async=function(){function eo(to,ro){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=to||null,this._onErrorHandler=ro,this._noop=function(){}}return eo.prototype.dispose=function(){var to;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(to in this._timeoutIds)this._timeoutIds.hasOwnProperty(to)&&this.clearTimeout(parseInt(to,10));this._timeoutIds=null}if(this._immediateIds){for(to in this._immediateIds)this._immediateIds.hasOwnProperty(to)&&this.clearImmediate(parseInt(to,10));this._immediateIds=null}if(this._intervalIds){for(to in this._intervalIds)this._intervalIds.hasOwnProperty(to)&&this.clearInterval(parseInt(to,10));this._intervalIds=null}if(this._animationFrameIds){for(to in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(to)&&this.cancelAnimationFrame(parseInt(to,10));this._animationFrameIds=null}},eo.prototype.setTimeout=function(to,ro){var no=this,oo=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),oo=setTimeout(function(){try{no._timeoutIds&&delete no._timeoutIds[oo],to.apply(no._parent)}catch(io){no._logError(io)}},ro),this._timeoutIds[oo]=!0),oo},eo.prototype.clearTimeout=function(to){this._timeoutIds&&this._timeoutIds[to]&&(clearTimeout(to),delete this._timeoutIds[to])},eo.prototype.setImmediate=function(to,ro){var no=this,oo=0,io=getWindow(ro);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});var so=function(){try{no._immediateIds&&delete no._immediateIds[oo],to.apply(no._parent)}catch(ao){no._logError(ao)}};oo=io.setTimeout(so,0),this._immediateIds[oo]=!0}return oo},eo.prototype.clearImmediate=function(to,ro){var no=getWindow(ro);this._immediateIds&&this._immediateIds[to]&&(no.clearTimeout(to),delete this._immediateIds[to])},eo.prototype.setInterval=function(to,ro){var no=this,oo=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),oo=setInterval(function(){try{to.apply(no._parent)}catch(io){no._logError(io)}},ro),this._intervalIds[oo]=!0),oo},eo.prototype.clearInterval=function(to){this._intervalIds&&this._intervalIds[to]&&(clearInterval(to),delete this._intervalIds[to])},eo.prototype.throttle=function(to,ro,no){var oo=this;if(this._isDisposed)return this._noop;var io=ro||0,so=!0,ao=!0,lo=0,uo,co,fo=null;no&&typeof no.leading=="boolean"&&(so=no.leading),no&&typeof no.trailing=="boolean"&&(ao=no.trailing);var po=function(mo){var vo=Date.now(),bo=vo-lo,xo=so?io-bo:io;return bo>=io&&(!mo||so)?(lo=vo,fo&&(oo.clearTimeout(fo),fo=null),uo=to.apply(oo._parent,co)):fo===null&&ao&&(fo=oo.setTimeout(po,xo)),uo},ho=function(){for(var mo=[],vo=0;vo=so&&(Ro=!0),co=Co);var Ao=Co-co,Io=so-Ao,$o=Co-fo,Bo=!1;return uo!==null&&($o>=uo&&mo?Bo=!0:Io=Math.min(Io,uo-$o)),Ao>=so||Bo||Ro?bo(Co):(mo===null||!wo)&&lo&&(mo=oo.setTimeout(xo,Io)),po},_o=function(){return!!mo},So=function(){_o()&&vo(Date.now())},Eo=function(){return _o()&&bo(Date.now()),po},ko=function(){for(var wo=[],Co=0;Co-1)for(var so=ro.split(/[ ,]+/),ao=0;ao"u")){var to=eo;return to&&to.ownerDocument?to.ownerDocument:document}}var _scrollbarWidth,_bodyScrollDisabledCount=0,DisabledScrollClassName=mergeStyles$1({overflow:"hidden !important"}),DATA_IS_SCROLLABLE_ATTRIBUTE="data-is-scrollable",allowScrollOnElement=function(eo,to){if(eo){var ro=0,no=null,oo=function(so){so.targetTouches.length===1&&(ro=so.targetTouches[0].clientY)},io=function(so){if(so.targetTouches.length===1&&(so.stopPropagation(),!!no)){var ao=so.targetTouches[0].clientY-ro,lo=findScrollableParent(so.target);lo&&(no=lo),no.scrollTop===0&&ao>0&&so.preventDefault(),no.scrollHeight-Math.ceil(no.scrollTop)<=no.clientHeight&&ao<0&&so.preventDefault()}};to.on(eo,"touchstart",oo,{passive:!1}),to.on(eo,"touchmove",io,{passive:!1}),no=eo}},allowOverscrollOnElement=function(eo,to){if(eo){var ro=function(no){no.stopPropagation()};to.on(eo,"touchmove",ro,{passive:!1})}},_disableIosBodyScroll=function(eo){eo.preventDefault()};function disableBodyScroll(){var eo=getDocument();eo&&eo.body&&!_bodyScrollDisabledCount&&(eo.body.classList.add(DisabledScrollClassName),eo.body.addEventListener("touchmove",_disableIosBodyScroll,{passive:!1,capture:!1})),_bodyScrollDisabledCount++}function enableBodyScroll(){if(_bodyScrollDisabledCount>0){var eo=getDocument();eo&&eo.body&&_bodyScrollDisabledCount===1&&(eo.body.classList.remove(DisabledScrollClassName),eo.body.removeEventListener("touchmove",_disableIosBodyScroll)),_bodyScrollDisabledCount--}}function getScrollbarWidth(){if(_scrollbarWidth===void 0){var eo=document.createElement("div");eo.style.setProperty("width","100px"),eo.style.setProperty("height","100px"),eo.style.setProperty("overflow","scroll"),eo.style.setProperty("position","absolute"),eo.style.setProperty("top","-9999px"),document.body.appendChild(eo),_scrollbarWidth=eo.offsetWidth-eo.clientWidth,document.body.removeChild(eo)}return _scrollbarWidth}function findScrollableParent(eo){for(var to=eo,ro=getDocument(eo);to&&to!==ro.body;){if(to.getAttribute(DATA_IS_SCROLLABLE_ATTRIBUTE)==="true")return to;to=to.parentElement}for(to=eo;to&&to!==ro.body;){if(to.getAttribute(DATA_IS_SCROLLABLE_ATTRIBUTE)!=="false"){var no=getComputedStyle(to),oo=no?no.getPropertyValue("overflow-y"):"";if(oo&&(oo==="scroll"||oo==="auto"))return to}to=to.parentElement}return(!to||to===ro.body)&&(to=getWindow(eo)),to}var _warningCallback=void 0;function warn(eo){console&&console.warn&&console.warn(eo)}var GLOBAL_SETTINGS_PROP_NAME="__globalSettings__",CALLBACK_STATE_PROP_NAME="__callbacks__",_counter=0,GlobalSettings=function(){function eo(){}return eo.getValue=function(to,ro){var no=_getGlobalSettings();return no[to]===void 0&&(no[to]=typeof ro=="function"?ro():ro),no[to]},eo.setValue=function(to,ro){var no=_getGlobalSettings(),oo=no[CALLBACK_STATE_PROP_NAME],io=no[to];if(ro!==io){no[to]=ro;var so={oldValue:io,value:ro,key:to};for(var ao in oo)oo.hasOwnProperty(ao)&&oo[ao](so)}return ro},eo.addChangeListener=function(to){var ro=to.__id__,no=_getCallbacks();ro||(ro=to.__id__=String(_counter++)),no[ro]=to},eo.removeChangeListener=function(to){var ro=_getCallbacks();delete ro[to.__id__]},eo}();function _getGlobalSettings(){var eo,to=getWindow(),ro=to||{};return ro[GLOBAL_SETTINGS_PROP_NAME]||(ro[GLOBAL_SETTINGS_PROP_NAME]=(eo={},eo[CALLBACK_STATE_PROP_NAME]={},eo)),ro[GLOBAL_SETTINGS_PROP_NAME]}function _getCallbacks(){var eo=_getGlobalSettings();return eo[CALLBACK_STATE_PROP_NAME]}var KeyCodes$1={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},Rectangle=function(){function eo(to,ro,no,oo){to===void 0&&(to=0),ro===void 0&&(ro=0),no===void 0&&(no=0),oo===void 0&&(oo=0),this.top=no,this.bottom=oo,this.left=to,this.right=ro}return Object.defineProperty(eo.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),eo.prototype.equals=function(to){return parseFloat(this.top.toFixed(4))===parseFloat(to.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(to.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(to.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(to.right.toFixed(4))},eo}();function appendFunction(eo){for(var to=[],ro=1;ro-1&&oo._virtual.children.splice(io,1)}ro._virtual.parent=no||void 0,no&&(no._virtual||(no._virtual={children:[]}),no._virtual.children.push(ro))}var IS_FOCUSABLE_ATTRIBUTE$1="data-is-focusable",IS_VISIBLE_ATTRIBUTE="data-is-visible",FOCUSZONE_ID_ATTRIBUTE$1="data-focuszone-id",FOCUSZONE_SUB_ATTRIBUTE="data-is-sub-focuszone";function getFirstFocusable(eo,to,ro){return getNextElement(eo,to,!0,!1,!1,ro)}function getLastFocusable(eo,to,ro){return getPreviousElement(eo,to,!0,!1,!0,ro)}function getFirstTabbable(eo,to,ro,no){return no===void 0&&(no=!0),getNextElement(eo,to,no,!1,!1,ro,!1,!0)}function getLastTabbable(eo,to,ro,no){return no===void 0&&(no=!0),getPreviousElement(eo,to,no,!1,!0,ro,!1,!0)}function focusFirstChild(eo,to){var ro=getNextElement(eo,eo,!0,!1,!1,!0,void 0,void 0,to);return ro?(focusAsync(ro),!0):!1}function getPreviousElement(eo,to,ro,no,oo,io,so,ao){if(!to||!so&&to===eo)return null;var lo=isElementVisible(to);if(oo&&lo&&(io||!(isElementFocusZone(to)||isElementFocusSubZone(to)))){var uo=getPreviousElement(eo,to.lastElementChild,!0,!0,!0,io,so,ao);if(uo){if(ao&&isElementTabbable(uo,!0)||!ao)return uo;var co=getPreviousElement(eo,uo.previousElementSibling,!0,!0,!0,io,so,ao);if(co)return co;for(var fo=uo.parentElement;fo&&fo!==to;){var po=getPreviousElement(eo,fo.previousElementSibling,!0,!0,!0,io,so,ao);if(po)return po;fo=fo.parentElement}}}if(ro&&lo&&isElementTabbable(to,ao))return to;var ho=getPreviousElement(eo,to.previousElementSibling,!0,!0,!0,io,so,ao);return ho||(no?null:getPreviousElement(eo,to.parentElement,!0,!1,!1,io,so,ao))}function getNextElement(eo,to,ro,no,oo,io,so,ao,lo){if(!to||to===eo&&oo&&!so)return null;var uo=lo?isElementVisibleAndNotHidden:isElementVisible,co=uo(to);if(ro&&co&&isElementTabbable(to,ao))return to;if(!oo&&co&&(io||!(isElementFocusZone(to)||isElementFocusSubZone(to)))){var fo=getNextElement(eo,to.firstElementChild,!0,!0,!1,io,so,ao,lo);if(fo)return fo}if(to===eo)return null;var po=getNextElement(eo,to.nextElementSibling,!0,!0,!1,io,so,ao,lo);return po||(no?null:getNextElement(eo,to.parentElement,!1,!1,!0,io,so,ao,lo))}function isElementVisible(eo){if(!eo||!eo.getAttribute)return!1;var to=eo.getAttribute(IS_VISIBLE_ATTRIBUTE);return to!=null?to==="true":eo.offsetHeight!==0||eo.offsetParent!==null||eo.isVisible===!0}function isElementVisibleAndNotHidden(eo){return!!eo&&isElementVisible(eo)&&!eo.hidden&&window.getComputedStyle(eo).visibility!=="hidden"}function isElementTabbable(eo,to){if(!eo||eo.disabled)return!1;var ro=0,no=null;eo&&eo.getAttribute&&(no=eo.getAttribute("tabIndex"),no&&(ro=parseInt(no,10)));var oo=eo.getAttribute?eo.getAttribute(IS_FOCUSABLE_ATTRIBUTE$1):null,io=no!==null&&ro>=0,so=!!eo&&oo!=="false"&&(eo.tagName==="A"||eo.tagName==="BUTTON"||eo.tagName==="INPUT"||eo.tagName==="TEXTAREA"||eo.tagName==="SELECT"||oo==="true"||io);return to?ro!==-1&&so:so}function isElementFocusZone(eo){return!!(eo&&eo.getAttribute&&eo.getAttribute(FOCUSZONE_ID_ATTRIBUTE$1))}function isElementFocusSubZone(eo){return!!(eo&&eo.getAttribute&&eo.getAttribute(FOCUSZONE_SUB_ATTRIBUTE)==="true")}function doesElementContainFocus(eo){var to=getDocument(eo),ro=to&&to.activeElement;return!!(ro&&elementContains(eo,ro))}function shouldWrapFocus(eo,to){return elementContainsAttribute(eo,to)!=="true"}var animationId=void 0;function focusAsync(eo){if(eo){var to=getWindow(eo);to&&(animationId!==void 0&&to.cancelAnimationFrame(animationId),animationId=to.requestAnimationFrame(function(){eo&&eo.focus(),animationId=void 0}))}}function getFocusableByIndexPath(eo,to){for(var ro=eo,no=0,oo=to;no(eo.cacheSize||MAX_CACHE_COUNT)){var ho=getWindow();!((lo=ho==null?void 0:ho.FabricConfig)===null||lo===void 0)&&lo.enableClassNameCacheFullWarning&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(ro,"/").concat(no,".")),console.trace()),to.clear(),ro=0,eo.disableCaching=!0}return uo[retVal]};return io}function _traverseEdge(eo,to){return to=_normalizeValue(to),eo.has(to)||eo.set(to,new Map),eo.get(to)}function _traverseMap(eo,to){if(typeof to=="function"){var ro=to.__cachedInputs__;if(ro)for(var no=0,oo=to.__cachedInputs__;no"u"?null:WeakMap;function resetMemoizations(){_resetCounter++}function memoizeFunction(eo,to,ro){if(to===void 0&&(to=100),ro===void 0&&(ro=!1),!_weakMap)return eo;if(!_initializedStylesheetResets$1){var no=Stylesheet$1.getInstance();no&&no.onReset&&Stylesheet$1.getInstance().onReset(resetMemoizations),_initializedStylesheetResets$1=!0}var oo,io=0,so=_resetCounter;return function(){for(var lo=[],uo=0;uo0&&io>to)&&(oo=_createNode(),io=0,so=_resetCounter),co=oo;for(var fo=0;fo=0||lo.indexOf("data-")===0||lo.indexOf("aria-")===0;uo&&(!ro||(ro==null?void 0:ro.indexOf(lo))===-1)&&(oo[lo]=eo[lo])}return oo}function initializeComponentRef(eo){extendComponent(eo,{componentDidMount:_onMount,componentDidUpdate:_onUpdate,componentWillUnmount:_onUnmount})}function _onMount(){_setComponentRef(this.props.componentRef,this)}function _onUpdate(eo){eo.componentRef!==this.props.componentRef&&(_setComponentRef(eo.componentRef,null),_setComponentRef(this.props.componentRef,this))}function _onUnmount(){_setComponentRef(this.props.componentRef,null)}function _setComponentRef(eo,to){eo&&(typeof eo=="object"?eo.current=to:typeof eo=="function"&&eo(to))}var _a$8,DirectionalKeyCodes=(_a$8={},_a$8[KeyCodes$1.up]=1,_a$8[KeyCodes$1.down]=1,_a$8[KeyCodes$1.left]=1,_a$8[KeyCodes$1.right]=1,_a$8[KeyCodes$1.home]=1,_a$8[KeyCodes$1.end]=1,_a$8[KeyCodes$1.tab]=1,_a$8[KeyCodes$1.pageUp]=1,_a$8[KeyCodes$1.pageDown]=1,_a$8);function isDirectionalKeyCode(eo){return!!DirectionalKeyCodes[eo]}var IsFocusVisibleClassName="ms-Fabric--isFocusVisible",IsFocusHiddenClassName="ms-Fabric--isFocusHidden";function updateClassList(eo,to){eo&&(eo.classList.add(to?IsFocusVisibleClassName:IsFocusHiddenClassName),eo.classList.remove(to?IsFocusHiddenClassName:IsFocusVisibleClassName))}function setFocusVisibility(eo,to,ro){var no;ro?ro.forEach(function(oo){return updateClassList(oo.current,eo)}):updateClassList((no=getWindow(to))===null||no===void 0?void 0:no.document.body,eo)}var mountCounters=new WeakMap,callbackMap=new WeakMap;function setMountCounters(eo,to){var ro,no=mountCounters.get(eo);return no?ro=no+to:ro=1,mountCounters.set(eo,ro),ro}function setCallbackMap(eo){var to=callbackMap.get(eo);if(to)return to;var ro=function(so){return _onMouseDown(so,eo.registeredProviders)},no=function(so){return _onPointerDown(so,eo.registeredProviders)},oo=function(so){return _onKeyDown(so,eo.registeredProviders)},io=function(so){return _onKeyUp(so,eo.registeredProviders)};return to={onMouseDown:ro,onPointerDown:no,onKeyDown:oo,onKeyUp:io},callbackMap.set(eo,to),to}var FocusRectsContext=reactExports.createContext(void 0);function useFocusRects(eo){var to=reactExports.useContext(FocusRectsContext);reactExports.useEffect(function(){var ro,no,oo,io,so=getWindow(eo==null?void 0:eo.current);if(!(!so||((ro=so.FabricConfig)===null||ro===void 0?void 0:ro.disableFocusRects)===!0)){var ao=so,lo,uo,co,fo;if(!((no=to==null?void 0:to.providerRef)===null||no===void 0)&&no.current&&(!((io=(oo=to==null?void 0:to.providerRef)===null||oo===void 0?void 0:oo.current)===null||io===void 0)&&io.addEventListener)){ao=to.providerRef.current;var po=setCallbackMap(to);lo=po.onMouseDown,uo=po.onPointerDown,co=po.onKeyDown,fo=po.onKeyUp}else lo=_onMouseDown,uo=_onPointerDown,co=_onKeyDown,fo=_onKeyUp;var ho=setMountCounters(ao,1);return ho<=1&&(ao.addEventListener("mousedown",lo,!0),ao.addEventListener("pointerdown",uo,!0),ao.addEventListener("keydown",co,!0),ao.addEventListener("keyup",fo,!0)),function(){var mo;!so||((mo=so.FabricConfig)===null||mo===void 0?void 0:mo.disableFocusRects)===!0||(ho=setMountCounters(ao,-1),ho===0&&(ao.removeEventListener("mousedown",lo,!0),ao.removeEventListener("pointerdown",uo,!0),ao.removeEventListener("keydown",co,!0),ao.removeEventListener("keyup",fo,!0)))}}},[to,eo])}var FocusRects=function(eo){return useFocusRects(eo.rootRef),null};function _onMouseDown(eo,to){setFocusVisibility(!1,eo.target,to)}function _onPointerDown(eo,to){eo.pointerType!=="mouse"&&setFocusVisibility(!1,eo.target,to)}function _onKeyDown(eo,to){isDirectionalKeyCode(eo.which)&&setFocusVisibility(!0,eo.target,to)}function _onKeyUp(eo,to){isDirectionalKeyCode(eo.which)&&setFocusVisibility(!0,eo.target,to)}var FocusRectsProvider=function(eo){var to=eo.providerRef,ro=eo.layerRoot,no=reactExports.useState([])[0],oo=reactExports.useContext(FocusRectsContext),io=oo!==void 0&&!ro,so=reactExports.useMemo(function(){return io?void 0:{providerRef:to,registeredProviders:no,registerProvider:function(ao){no.push(ao),oo==null||oo.registerProvider(ao)},unregisterProvider:function(ao){oo==null||oo.unregisterProvider(ao);var lo=no.indexOf(ao);lo>=0&&no.splice(lo,1)}}},[to,no,oo,io]);return reactExports.useEffect(function(){if(so)return so.registerProvider(so.providerRef),function(){return so.unregisterProvider(so.providerRef)}},[so]),so?reactExports.createElement(FocusRectsContext.Provider,{value:so},eo.children):reactExports.createElement(reactExports.Fragment,null,eo.children)};function getItem(eo){var to=null;try{var ro=getWindow();to=ro?ro.localStorage.getItem(eo):null}catch{}return to}var _language,STORAGE_KEY="language";function getLanguage(eo){if(eo===void 0&&(eo="sessionStorage"),_language===void 0){var to=getDocument(),ro=eo==="localStorage"?getItem(STORAGE_KEY):eo==="sessionStorage"?getItem$1(STORAGE_KEY):void 0;ro&&(_language=ro),_language===void 0&&to&&(_language=to.documentElement.getAttribute("lang")),_language===void 0&&(_language="en")}return _language}function merge$3(eo){for(var to=[],ro=1;ro-1;eo[no]=io?oo:_merge(eo[no]||{},oo,ro)}else eo[no]=oo}return ro.pop(),eo}var isIOS=function(){return!window||!window.navigator||!window.navigator.userAgent?!1:/iPad|iPhone|iPod/i.test(window.navigator.userAgent)},tagsToIgnore=["TEMPLATE","STYLE","SCRIPT"];function modalize(eo){var to=getDocument(eo);if(!to)return function(){};for(var ro=[];eo!==to.body&&eo.parentElement;){for(var no=0,oo=eo.parentElement.children;no"u"||eo){var ro=getWindow(),no=(to=ro==null?void 0:ro.navigator)===null||to===void 0?void 0:to.userAgent;isMacResult=!!no&&no.indexOf("Macintosh")!==-1}return!!isMacResult}function createComposedRenderFunction(eo){var to=createMemoizer(function(ro){var no=createMemoizer(function(oo){return function(io){return ro(io,oo)}});return function(oo,io){return eo(oo,io?no(io):ro)}});return to}var memoizer=createMemoizer(createComposedRenderFunction);function composeRenderFunction(eo,to){return memoizer(eo)(to)}var DefaultFields=["theme","styles"];function styled(eo,to,ro,no,oo){no=no||{scope:"",fields:void 0};var io=no.scope,so=no.fields,ao=so===void 0?DefaultFields:so,lo=reactExports.forwardRef(function(co,fo){var po=reactExports.useRef(),ho=useCustomizationSettings(ao,io),mo=ho.styles;ho.dir;var vo=__rest$1(ho,["styles","dir"]),bo=ro?ro(co):void 0,xo=po.current&&po.current.__cachedInputs__||[],_o=co.styles;if(!po.current||mo!==xo[1]||_o!==xo[2]){var So=function(Eo){return concatStyleSetsWithProps(Eo,to,mo,_o)};So.__cachedInputs__=[to,mo,_o],So.__noStyleOverride__=!mo&&!_o,po.current=So}return reactExports.createElement(eo,__assign$4({ref:fo},vo,bo,co,{styles:po.current}))});lo.displayName="Styled".concat(eo.displayName||eo.name);var uo=oo?reactExports.memo(lo):lo;return lo.displayName&&(uo.displayName=lo.displayName),uo}function getPropsWithDefaults(eo,to){for(var ro=__assign$4({},to),no=0,oo=Object.keys(eo);nono?" (+ ".concat(_missingIcons.length-no," more)"):"")),_missingIconsTimer=void 0,_missingIcons=[]},ro)))}function makeSemanticColors(eo,to,ro,no,oo){oo===void 0&&(oo=!1);var io=__assign$4({primaryButtonBorder:"transparent",errorText:no?"#F1707B":"#a4262c",messageText:no?"#F3F2F1":"#323130",messageLink:no?"#6CB8F6":"#005A9E",messageLinkHovered:no?"#82C7FF":"#004578",infoIcon:no?"#C8C6C4":"#605e5c",errorIcon:no?"#F1707B":"#A80000",blockingIcon:no?"#442726":"#FDE7E9",warningIcon:no?"#C8C6C4":"#797775",severeWarningIcon:no?"#FCE100":"#D83B01",successIcon:no?"#92C353":"#107C10",infoBackground:no?"#323130":"#f3f2f1",errorBackground:no?"#442726":"#FDE7E9",blockingBackground:no?"#442726":"#FDE7E9",warningBackground:no?"#433519":"#FFF4CE",severeWarningBackground:no?"#4F2A0F":"#FED9CC",successBackground:no?"#393D1B":"#DFF6DD",warningHighlight:no?"#fff100":"#ffb900",successText:no?"#92c353":"#107C10"},ro),so=getSemanticColors(eo,to,io,no);return _fixDeprecatedSlots(so,oo)}function getSemanticColors(eo,to,ro,no,oo){var io={},so=eo||{},ao=so.white,lo=so.black,uo=so.themePrimary,co=so.themeDark,fo=so.themeDarker,po=so.themeDarkAlt,ho=so.themeLighter,mo=so.neutralLight,vo=so.neutralLighter,bo=so.neutralDark,xo=so.neutralQuaternary,_o=so.neutralQuaternaryAlt,So=so.neutralPrimary,Eo=so.neutralSecondary,ko=so.neutralSecondaryAlt,wo=so.neutralTertiary,Co=so.neutralTertiaryAlt,Ro=so.neutralLighterAlt,Ao=so.accent;return ao&&(io.bodyBackground=ao,io.bodyFrameBackground=ao,io.accentButtonText=ao,io.buttonBackground=ao,io.primaryButtonText=ao,io.primaryButtonTextHovered=ao,io.primaryButtonTextPressed=ao,io.inputBackground=ao,io.inputForegroundChecked=ao,io.listBackground=ao,io.menuBackground=ao,io.cardStandoutBackground=ao),lo&&(io.bodyTextChecked=lo,io.buttonTextCheckedHovered=lo),uo&&(io.link=uo,io.primaryButtonBackground=uo,io.inputBackgroundChecked=uo,io.inputIcon=uo,io.inputFocusBorderAlt=uo,io.menuIcon=uo,io.menuHeader=uo,io.accentButtonBackground=uo),co&&(io.primaryButtonBackgroundPressed=co,io.inputBackgroundCheckedHovered=co,io.inputIconHovered=co),fo&&(io.linkHovered=fo),po&&(io.primaryButtonBackgroundHovered=po),ho&&(io.inputPlaceholderBackgroundChecked=ho),mo&&(io.bodyBackgroundChecked=mo,io.bodyFrameDivider=mo,io.bodyDivider=mo,io.variantBorder=mo,io.buttonBackgroundCheckedHovered=mo,io.buttonBackgroundPressed=mo,io.listItemBackgroundChecked=mo,io.listHeaderBackgroundPressed=mo,io.menuItemBackgroundPressed=mo,io.menuItemBackgroundChecked=mo),vo&&(io.bodyBackgroundHovered=vo,io.buttonBackgroundHovered=vo,io.buttonBackgroundDisabled=vo,io.buttonBorderDisabled=vo,io.primaryButtonBackgroundDisabled=vo,io.disabledBackground=vo,io.listItemBackgroundHovered=vo,io.listHeaderBackgroundHovered=vo,io.menuItemBackgroundHovered=vo),xo&&(io.primaryButtonTextDisabled=xo,io.disabledSubtext=xo),_o&&(io.listItemBackgroundCheckedHovered=_o),wo&&(io.disabledBodyText=wo,io.variantBorderHovered=(ro==null?void 0:ro.variantBorderHovered)||wo,io.buttonTextDisabled=wo,io.inputIconDisabled=wo,io.disabledText=wo),So&&(io.bodyText=So,io.actionLink=So,io.buttonText=So,io.inputBorderHovered=So,io.inputText=So,io.listText=So,io.menuItemText=So),Ro&&(io.bodyStandoutBackground=Ro,io.defaultStateBackground=Ro),bo&&(io.actionLinkHovered=bo,io.buttonTextHovered=bo,io.buttonTextChecked=bo,io.buttonTextPressed=bo,io.inputTextHovered=bo,io.menuItemTextHovered=bo),Eo&&(io.bodySubtext=Eo,io.focusBorder=Eo,io.inputBorder=Eo,io.smallInputBorder=Eo,io.inputPlaceholderText=Eo),ko&&(io.buttonBorder=ko),Co&&(io.disabledBodySubtext=Co,io.disabledBorder=Co,io.buttonBackgroundChecked=Co,io.menuDivider=Co),Ao&&(io.accentButtonBackground=Ao),to!=null&&to.elevation4&&(io.cardShadow=to.elevation4),!no&&(to!=null&&to.elevation8)?io.cardShadowHovered=to.elevation8:io.variantBorderHovered&&(io.cardShadowHovered="0 0 1px "+io.variantBorderHovered),io=__assign$4(__assign$4({},io),ro),io}function _fixDeprecatedSlots(eo,to){var ro="";return to===!0&&(ro=" /* @deprecated */"),eo.listTextColor=eo.listText+ro,eo.menuItemBackgroundChecked+=ro,eo.warningHighlight+=ro,eo.warningText=eo.messageText+ro,eo.successText+=ro,eo}function mergeThemes(eo,to){var ro,no,oo;to===void 0&&(to={});var io=merge$3({},eo,to,{semanticColors:getSemanticColors(to.palette,to.effects,to.semanticColors,to.isInverted===void 0?eo.isInverted:to.isInverted)});if(!((ro=to.palette)===null||ro===void 0)&&ro.themePrimary&&!(!((no=to.palette)===null||no===void 0)&&no.accent)&&(io.palette.accent=to.palette.themePrimary),to.defaultFontStyle)for(var so=0,ao=Object.keys(io.fonts);so"u"?global:window,_styleNonce=_root&&_root.CSPSettings&&_root.CSPSettings.nonce,_themeState=initializeThemeState();function initializeThemeState(){var eo=_root.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};return eo.runState||(eo=__assign$3(__assign$3({},eo),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),eo.registeredThemableStyles||(eo=__assign$3(__assign$3({},eo),{registeredThemableStyles:[]})),_root.__themeState__=eo,eo}function applyThemableStyles(eo,to){_themeState.loadStyles?_themeState.loadStyles(resolveThemableArray(eo).styleString,eo):registerStyles$1(eo)}function loadTheme$1(eo){_themeState.theme=eo,reloadStyles()}function clearStyles(eo){eo===void 0&&(eo=3),(eo===3||eo===2)&&(clearStylesInternal(_themeState.registeredStyles),_themeState.registeredStyles=[]),(eo===3||eo===1)&&(clearStylesInternal(_themeState.registeredThemableStyles),_themeState.registeredThemableStyles=[])}function clearStylesInternal(eo){eo.forEach(function(to){var ro=to&&to.styleElement;ro&&ro.parentElement&&ro.parentElement.removeChild(ro)})}function reloadStyles(){if(_themeState.theme){for(var eo=[],to=0,ro=_themeState.registeredThemableStyles;to0&&(clearStyles(1),applyThemableStyles([].concat.apply([],eo)))}}function resolveThemableArray(eo){var to=_themeState.theme,ro=!1,no=(eo||[]).map(function(oo){var io=oo.theme;if(io){ro=!0;var so=to?to[io]:void 0,ao=oo.defaultValue||"inherit";return to&&!so&&console&&!(io in to)&&typeof DEBUG<"u"&&DEBUG&&console.warn('Theming value not provided for "'.concat(io,'". Falling back to "').concat(ao,'".')),so||ao}else return oo.rawString});return{styleString:no.join(""),themable:ro}}function registerStyles$1(eo){if(!(typeof document>"u")){var to=document.getElementsByTagName("head")[0],ro=document.createElement("style"),no=resolveThemableArray(eo),oo=no.styleString,io=no.themable;ro.setAttribute("data-load-themed-styles","true"),_styleNonce&&ro.setAttribute("nonce",_styleNonce),ro.appendChild(document.createTextNode(oo)),_themeState.perf.count++,to.appendChild(ro);var so=document.createEvent("HTMLEvents");so.initEvent("styleinsert",!0,!1),so.args={newStyle:ro},document.dispatchEvent(so);var ao={styleElement:ro,themableStyle:eo};io?_themeState.registeredThemableStyles.push(ao):_themeState.registeredStyles.push(ao)}}var _theme=createTheme({}),_onThemeChangeCallbacks=[],ThemeSettingName="theme";function initializeThemeInCustomizations(){var eo,to,ro,no=getWindow();!((to=no==null?void 0:no.FabricConfig)===null||to===void 0)&&to.legacyTheme?loadTheme(no.FabricConfig.legacyTheme):Customizations.getSettings([ThemeSettingName]).theme||(!((ro=no==null?void 0:no.FabricConfig)===null||ro===void 0)&&ro.theme&&(_theme=createTheme(no.FabricConfig.theme)),Customizations.applySettings((eo={},eo[ThemeSettingName]=_theme,eo)))}initializeThemeInCustomizations();function getTheme(eo){return eo===void 0&&(eo=!1),eo===!0&&(_theme=createTheme({},eo)),_theme}function loadTheme(eo,to){var ro;return to===void 0&&(to=!1),_theme=createTheme(eo,to),loadTheme$1(__assign$4(__assign$4(__assign$4(__assign$4({},_theme.palette),_theme.semanticColors),_theme.effects),_loadFonts(_theme))),Customizations.applySettings((ro={},ro[ThemeSettingName]=_theme,ro)),_onThemeChangeCallbacks.forEach(function(no){try{no(_theme)}catch{}}),_theme}function _loadFonts(eo){for(var to={},ro=0,no=Object.keys(eo.fonts);roto.bottom||eo.leftto.right)}function _getOutOfBoundsEdges(eo,to){var ro=[];return eo.topto.bottom&&ro.push(RectangleEdge.bottom),eo.leftto.right&&ro.push(RectangleEdge.right),ro}function _getEdgeValue(eo,to){return eo[RectangleEdge[to]]}function _setEdgeValue(eo,to,ro){return eo[RectangleEdge[to]]=ro,eo}function _getCenterValue(eo,to){var ro=_getFlankingEdges(to);return(_getEdgeValue(eo,ro.positiveEdge)+_getEdgeValue(eo,ro.negativeEdge))/2}function _getRelativeEdgeValue(eo,to){return eo>0?to:to*-1}function _getRelativeRectEdgeValue(eo,to){return _getRelativeEdgeValue(eo,_getEdgeValue(to,eo))}function _getRelativeEdgeDifference(eo,to,ro){var no=_getEdgeValue(eo,ro)-_getEdgeValue(to,ro);return _getRelativeEdgeValue(ro,no)}function _moveEdge(eo,to,ro,no){no===void 0&&(no=!0);var oo=_getEdgeValue(eo,to)-ro,io=_setEdgeValue(eo,to,ro);return no&&(io=_setEdgeValue(eo,to*-1,_getEdgeValue(eo,to*-1)-oo)),io}function _alignEdges(eo,to,ro,no){return no===void 0&&(no=0),_moveEdge(eo,ro,_getEdgeValue(to,ro)+_getRelativeEdgeValue(ro,no))}function _alignOppositeEdges(eo,to,ro,no){no===void 0&&(no=0);var oo=ro*-1,io=_getRelativeEdgeValue(oo,no);return _moveEdge(eo,ro*-1,_getEdgeValue(to,ro)+io)}function _isEdgeInBounds(eo,to,ro){var no=_getRelativeRectEdgeValue(ro,eo);return no>_getRelativeRectEdgeValue(ro,to)}function _getOutOfBoundsDegree(eo,to){for(var ro=_getOutOfBoundsEdges(eo,to),no=0,oo=0,io=ro;oo=no}function _flipToFit(eo,to,ro,no,oo,io,so){oo===void 0&&(oo=!1),so===void 0&&(so=0);var ao=[RectangleEdge.left,RectangleEdge.right,RectangleEdge.bottom,RectangleEdge.top];getRTL$1()&&(ao[0]*=-1,ao[1]*=-1);for(var lo=eo,uo=no.targetEdge,co=no.alignmentEdge,fo,po=uo,ho=co,mo=0;mo<4;mo++){if(_isEdgeInBounds(lo,ro,uo))return{elementRectangle:lo,targetEdge:uo,alignmentEdge:co};if(oo&&_canScrollResizeToFitEdge(to,ro,uo,io)){switch(uo){case RectangleEdge.bottom:lo.bottom=ro.bottom;break;case RectangleEdge.top:lo.top=ro.top;break}return{elementRectangle:lo,targetEdge:uo,alignmentEdge:co,forcedInBounds:!0}}else{var vo=_getOutOfBoundsDegree(lo,ro);(!fo||vo0&&(ao.indexOf(uo*-1)>-1?uo=uo*-1:(co=uo,uo=ao.slice(-1)[0]),lo=_estimatePosition(eo,to,{targetEdge:uo,alignmentEdge:co},so))}}return lo=_estimatePosition(eo,to,{targetEdge:po,alignmentEdge:ho},so),{elementRectangle:lo,targetEdge:po,alignmentEdge:ho}}function _flipAlignmentEdge(eo,to,ro,no){var oo=eo.alignmentEdge,io=eo.targetEdge,so=eo.elementRectangle,ao=oo*-1,lo=_estimatePosition(so,to,{targetEdge:io,alignmentEdge:ao},ro,no);return{elementRectangle:lo,targetEdge:io,alignmentEdge:ao}}function _adjustFitWithinBounds(eo,to,ro,no,oo,io,so,ao,lo){oo===void 0&&(oo=!1),so===void 0&&(so=0);var uo=no.alignmentEdge,co=no.alignTargetEdge,fo={elementRectangle:eo,targetEdge:no.targetEdge,alignmentEdge:uo};!ao&&!lo&&(fo=_flipToFit(eo,to,ro,no,oo,io,so));var po=_getOutOfBoundsEdges(fo.elementRectangle,ro),ho=ao?-fo.targetEdge:void 0;if(po.length>0)if(co)if(fo.alignmentEdge&&po.indexOf(fo.alignmentEdge*-1)>-1){var mo=_flipAlignmentEdge(fo,to,so,lo);if(_isRectangleWithinBounds(mo.elementRectangle,ro))return mo;fo=_alignOutOfBoundsEdges(_getOutOfBoundsEdges(mo.elementRectangle,ro),fo,ro,ho)}else fo=_alignOutOfBoundsEdges(po,fo,ro,ho);else fo=_alignOutOfBoundsEdges(po,fo,ro,ho);return fo}function _alignOutOfBoundsEdges(eo,to,ro,no){for(var oo=0,io=eo;ooMath.abs(_getRelativeEdgeDifference(eo,ro,to*-1))?to*-1:to}function _isEdgeOnBounds(eo,to,ro){return ro!==void 0&&_getEdgeValue(eo,to)===_getEdgeValue(ro,to)}function _finalizeElementPosition(eo,to,ro,no,oo,io,so,ao){var lo={},uo=_getRectangleFromElement(to),co=io?ro:ro*-1,fo=oo||_getFlankingEdges(ro).positiveEdge;return(!so||_isEdgeOnBounds(eo,getOppositeEdge(fo),no))&&(fo=_finalizeReturnEdge(eo,fo,no)),lo[RectangleEdge[co]]=_getRelativeEdgeDifference(eo,uo,co),lo[RectangleEdge[fo]]=_getRelativeEdgeDifference(eo,uo,fo),ao&&(lo[RectangleEdge[co*-1]]=_getRelativeEdgeDifference(eo,uo,co*-1),lo[RectangleEdge[fo*-1]]=_getRelativeEdgeDifference(eo,uo,fo*-1)),lo}function _calculateActualBeakWidthInPixels(eo){return Math.sqrt(eo*eo*2)}function _getPositionData(eo,to,ro){if(eo===void 0&&(eo=DirectionalHint.bottomAutoEdge),ro)return{alignmentEdge:ro.alignmentEdge,isAuto:ro.isAuto,targetEdge:ro.targetEdge};var no=__assign$4({},DirectionalDictionary[eo]);return getRTL$1()?(no.alignmentEdge&&no.alignmentEdge%2===0&&(no.alignmentEdge=no.alignmentEdge*-1),to!==void 0?DirectionalDictionary[to]:no):no}function _getAlignmentData(eo,to,ro,no,oo){return eo.isAuto&&(eo.alignmentEdge=getClosestEdge(eo.targetEdge,to,ro)),eo.alignTargetEdge=oo,eo}function getClosestEdge(eo,to,ro){var no=_getCenterValue(to,eo),oo=_getCenterValue(ro,eo),io=_getFlankingEdges(eo),so=io.positiveEdge,ao=io.negativeEdge;return no<=oo?so:ao}function _positionElementWithinBounds(eo,to,ro,no,oo,io,so,ao,lo){io===void 0&&(io=!1);var uo=_estimatePosition(eo,to,no,oo,lo);return _isRectangleWithinBounds(uo,ro)?{elementRectangle:uo,targetEdge:no.targetEdge,alignmentEdge:no.alignmentEdge}:_adjustFitWithinBounds(uo,to,ro,no,io,so,oo,ao,lo)}function _finalizeBeakPosition(eo,to,ro){var no=eo.targetEdge*-1,oo=new Rectangle(0,eo.elementRectangle.width,0,eo.elementRectangle.height),io={},so=_finalizeReturnEdge(eo.elementRectangle,eo.alignmentEdge?eo.alignmentEdge:_getFlankingEdges(no).positiveEdge,ro),ao=_getRelativeEdgeDifference(eo.elementRectangle,eo.targetRectangle,no),lo=ao>Math.abs(_getEdgeValue(to,no));return io[RectangleEdge[no]]=_getEdgeValue(to,no),io[RectangleEdge[so]]=_getRelativeEdgeDifference(to,oo,so),{elementPosition:__assign$4({},io),closestEdge:getClosestEdge(eo.targetEdge,to,oo),targetEdge:no,hideBeak:!lo}}function _positionBeak(eo,to){var ro=to.targetRectangle,no=_getFlankingEdges(to.targetEdge),oo=no.positiveEdge,io=no.negativeEdge,so=_getCenterValue(ro,to.targetEdge),ao=new Rectangle(eo/2,to.elementRectangle.width-eo/2,eo/2,to.elementRectangle.height-eo/2),lo=new Rectangle(0,eo,0,eo);return lo=_moveEdge(lo,to.targetEdge*-1,-eo/2),lo=_centerEdgeToPoint(lo,to.targetEdge*-1,so-_getRelativeRectEdgeValue(oo,to.elementRectangle)),_isEdgeInBounds(lo,ao,oo)?_isEdgeInBounds(lo,ao,io)||(lo=_alignEdges(lo,ao,io)):lo=_alignEdges(lo,ao,oo),lo}function _getRectangleFromElement(eo){var to=eo.getBoundingClientRect();return new Rectangle(to.left,to.right,to.top,to.bottom)}function _getRectangleFromIRect(eo){return new Rectangle(eo.left,eo.right,eo.top,eo.bottom)}function _getTargetRect(eo,to){var ro;if(to){if(to.preventDefault){var no=to;ro=new Rectangle(no.clientX,no.clientX,no.clientY,no.clientY)}else if(to.getBoundingClientRect)ro=_getRectangleFromElement(to);else{var oo=to,io=oo.left||oo.x,so=oo.top||oo.y,ao=oo.right||io,lo=oo.bottom||so;ro=new Rectangle(io,ao,so,lo)}if(!_isRectangleWithinBounds(ro,eo))for(var uo=_getOutOfBoundsEdges(ro,eo),co=0,fo=uo;co=no&&oo&&uo.top<=oo&&uo.bottom>=oo&&(so={top:uo.top,left:uo.left,right:uo.right,bottom:uo.bottom,width:uo.width,height:uo.height})}return so}function getBoundsFromTargetWindow(eo,to){return _getBoundsFromTargetWindow(eo,to)}function calculateGapSpace(eo,to,ro){return _calculateGapSpace(eo,to,ro)}function getRectangleFromTarget(eo){return _getRectangleFromTarget(eo)}function useAsync(){var eo=reactExports.useRef();return eo.current||(eo.current=new Async),reactExports.useEffect(function(){return function(){var to;(to=eo.current)===null||to===void 0||to.dispose(),eo.current=void 0}},[]),eo.current}function useConst$1(eo){var to=reactExports.useRef();return to.current===void 0&&(to.current={value:typeof eo=="function"?eo():eo}),to.current.value}function useBoolean(eo){var to=reactExports.useState(eo),ro=to[0],no=to[1],oo=useConst$1(function(){return function(){no(!0)}}),io=useConst$1(function(){return function(){no(!1)}}),so=useConst$1(function(){return function(){no(function(ao){return!ao})}});return[ro,{setTrue:oo,setFalse:io,toggle:so}]}function useEventCallback$2(eo){var to=reactExports.useRef(function(){throw new Error("Cannot call an event handler while rendering")});return useIsomorphicLayoutEffect(function(){to.current=eo},[eo]),useConst$1(function(){return function(){for(var ro=[],no=0;no0&&uo>lo&&(ao=uo-lo>1)}oo!==ao&&io(ao)}}),function(){return ro.dispose()}}),oo}function defaultFocusRestorer(eo){var to=eo.originalElement,ro=eo.containsFocus;to&&ro&&to!==getWindow()&&setTimeout(function(){var no;(no=to.focus)===null||no===void 0||no.call(to)},0)}function useRestoreFocus(eo,to){var ro=eo.onRestoreFocus,no=ro===void 0?defaultFocusRestorer:ro,oo=reactExports.useRef(),io=reactExports.useRef(!1);reactExports.useEffect(function(){return oo.current=getDocument().activeElement,doesElementContainFocus(to.current)&&(io.current=!0),function(){var so;no==null||no({originalElement:oo.current,containsFocus:io.current,documentContainsFocus:((so=getDocument())===null||so===void 0?void 0:so.hasFocus())||!1}),oo.current=void 0}},[]),useOnEvent(to,"focus",reactExports.useCallback(function(){io.current=!0},[]),!0),useOnEvent(to,"blur",reactExports.useCallback(function(so){to.current&&so.relatedTarget&&!to.current.contains(so.relatedTarget)&&(io.current=!1)},[]),!0)}function useHideSiblingNodes(eo,to){var ro=String(eo["aria-modal"]).toLowerCase()==="true"&&eo.enableAriaHiddenSiblings;reactExports.useEffect(function(){if(ro&&to.current){var no=modalize(to.current);return no}},[to,ro])}var Popup=reactExports.forwardRef(function(eo,to){var ro=getPropsWithDefaults({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},eo),no=reactExports.useRef(),oo=useMergedRefs(no,to);useHideSiblingNodes(ro,no),useRestoreFocus(ro,no);var io=ro.role,so=ro.className,ao=ro.ariaLabel,lo=ro.ariaLabelledBy,uo=ro.ariaDescribedBy,co=ro.style,fo=ro.children,po=ro.onDismiss,ho=useScrollbarAsync(ro,no),mo=reactExports.useCallback(function(bo){switch(bo.which){case KeyCodes$1.escape:po&&(po(bo),bo.preventDefault(),bo.stopPropagation());break}},[po]),vo=useWindow();return useOnEvent(vo,"keydown",mo),reactExports.createElement("div",__assign$4({ref:oo},getNativeProps(ro,divProperties),{className:so,role:io,"aria-label":ao,"aria-labelledby":lo,"aria-describedby":uo,onKeyDown:mo,style:__assign$4({overflowY:ho?"scroll":void 0,outline:"none"},co)}),fo)});Popup.displayName="Popup";var _a$6,COMPONENT_NAME$2="CalloutContentBase",ANIMATIONS=(_a$6={},_a$6[RectangleEdge.top]=AnimationClassNames.slideUpIn10,_a$6[RectangleEdge.bottom]=AnimationClassNames.slideDownIn10,_a$6[RectangleEdge.left]=AnimationClassNames.slideLeftIn10,_a$6[RectangleEdge.right]=AnimationClassNames.slideRightIn10,_a$6),BEAK_ORIGIN_POSITION={top:0,left:0},OFF_SCREEN_STYLE={opacity:0,filter:"opacity(0)",pointerEvents:"none"},ARIA_ROLE_ATTRIBUTES=["role","aria-roledescription"],DEFAULT_PROPS$3={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:DirectionalHint.bottomAutoEdge},getClassNames$9=classNamesFunction({disableCaching:!0});function useBounds(eo,to,ro){var no=eo.bounds,oo=eo.minPagePadding,io=oo===void 0?DEFAULT_PROPS$3.minPagePadding:oo,so=eo.target,ao=reactExports.useState(!1),lo=ao[0],uo=ao[1],co=reactExports.useRef(),fo=reactExports.useCallback(function(){if(!co.current||lo){var ho=typeof no=="function"?ro?no(so,ro):void 0:no;!ho&&ro&&(ho=getBoundsFromTargetWindow(to.current,ro),ho={top:ho.top+io,left:ho.left+io,right:ho.right-io,bottom:ho.bottom-io,width:ho.width-io*2,height:ho.height-io*2}),co.current=ho,lo&&uo(!1)}return co.current},[no,io,so,to,ro,lo]),po=useAsync();return useOnEvent(ro,"resize",po.debounce(function(){uo(!0)},500,{leading:!0})),fo}function useMaxHeight(eo,to,ro,no){var oo,io=eo.calloutMaxHeight,so=eo.finalHeight,ao=eo.directionalHint,lo=eo.directionalHintFixed,uo=eo.hidden,co=eo.gapSpace,fo=eo.beakWidth,po=eo.isBeakVisible,ho=reactExports.useState(),mo=ho[0],vo=ho[1],bo=(oo=no==null?void 0:no.elementPosition)!==null&&oo!==void 0?oo:{},xo=bo.top,_o=bo.bottom,So=ro!=null&&ro.current?getRectangleFromTarget(ro.current):void 0;return reactExports.useEffect(function(){var Eo,ko=(Eo=to())!==null&&Eo!==void 0?Eo:{},wo=ko.top,Co=ko.bottom,Ro;(no==null?void 0:no.targetEdge)===RectangleEdge.top&&(So!=null&&So.top)&&(Co=So.top-calculateGapSpace(po,fo,co)),typeof xo=="number"&&Co?Ro=Co-xo:typeof _o=="number"&&typeof wo=="number"&&Co&&(Ro=Co-wo-_o),!io&&!uo||io&&Ro&&io>Ro?vo(Ro):vo(io||void 0)},[_o,io,so,ao,lo,to,uo,no,xo,co,fo,po,So]),mo}function usePositions(eo,to,ro,no,oo,io){var so=reactExports.useState(),ao=so[0],lo=so[1],uo=reactExports.useRef(0),co=reactExports.useRef(),fo=useAsync(),po=eo.hidden,ho=eo.target,mo=eo.finalHeight,vo=eo.calloutMaxHeight,bo=eo.onPositioned,xo=eo.directionalHint,_o=eo.hideOverflow,So=eo.preferScrollResizePositioning,Eo=useWindow(),ko=reactExports.useRef(),wo;ko.current!==io.current&&(ko.current=io.current,wo=io.current?Eo==null?void 0:Eo.getComputedStyle(io.current):void 0);var Co=wo==null?void 0:wo.overflowY;return reactExports.useEffect(function(){if(po)lo(void 0),uo.current=0;else{var Ro=fo.requestAnimationFrame(function(){var Ao,Io;if(to.current&&ro){var $o=__assign$4(__assign$4({},eo),{target:no.current,bounds:oo()}),Bo=ro.cloneNode(!0);Bo.style.maxHeight=vo?"".concat(vo):"",Bo.style.visibility="hidden",(Ao=ro.parentElement)===null||Ao===void 0||Ao.appendChild(Bo);var Mo=co.current===ho?ao:void 0,Ho=_o||Co==="clip"||Co==="hidden",jo=So&&!Ho,Oo=mo?positionCard($o,to.current,Bo,Mo):positionCallout($o,to.current,Bo,Mo,jo);(Io=ro.parentElement)===null||Io===void 0||Io.removeChild(Bo),!ao&&Oo||ao&&Oo&&!arePositionsEqual(ao,Oo)&&uo.current<5?(uo.current++,lo(Oo)):uo.current>0&&(uo.current=0,bo==null||bo(ao))}},ro);return co.current=ho,function(){fo.cancelAnimationFrame(Ro),co.current=void 0}}},[po,xo,fo,ro,vo,to,no,mo,oo,bo,ao,eo,ho,_o,So,Co]),ao}function useAutoFocus(eo,to,ro){var no=eo.hidden,oo=eo.setInitialFocus,io=useAsync(),so=!!to;reactExports.useEffect(function(){if(!no&&oo&&so&&ro){var ao=io.requestAnimationFrame(function(){return focusFirstChild(ro)},ro);return function(){return io.cancelAnimationFrame(ao)}}},[no,so,io,ro,oo])}function useDismissHandlers(eo,to,ro,no,oo){var io=eo.hidden,so=eo.onDismiss,ao=eo.preventDismissOnScroll,lo=eo.preventDismissOnResize,uo=eo.preventDismissOnLostFocus,co=eo.dismissOnTargetClick,fo=eo.shouldDismissOnWindowFocus,po=eo.preventDismissOnEvent,ho=reactExports.useRef(!1),mo=useAsync(),vo=useConst$1([function(){ho.current=!0},function(){ho.current=!1}]),bo=!!to;return reactExports.useEffect(function(){var xo=function(Co){bo&&!ao&&Eo(Co)},_o=function(Co){!lo&&!(po&&po(Co))&&(so==null||so(Co))},So=function(Co){uo||Eo(Co)},Eo=function(Co){var Ro=Co.composedPath?Co.composedPath():[],Ao=Ro.length>0?Ro[0]:Co.target,Io=ro.current&&!elementContains(ro.current,Ao);if(Io&&ho.current){ho.current=!1;return}if(!no.current&&Io||Co.target!==oo&&Io&&(!no.current||"stopPropagation"in no.current||co||Ao!==no.current&&!elementContains(no.current,Ao))){if(po&&po(Co))return;so==null||so(Co)}},ko=function(Co){fo&&(po&&!po(Co)||!po&&!uo)&&!(oo!=null&&oo.document.hasFocus())&&Co.relatedTarget===null&&(so==null||so(Co))},wo=new Promise(function(Co){mo.setTimeout(function(){if(!io&&oo){var Ro=[on$1(oo,"scroll",xo,!0),on$1(oo,"resize",_o,!0),on$1(oo.document.documentElement,"focus",So,!0),on$1(oo.document.documentElement,"click",So,!0),on$1(oo,"blur",ko,!0)];Co(function(){Ro.forEach(function(Ao){return Ao()})})}},0)});return function(){wo.then(function(Co){return Co()})}},[io,mo,ro,no,oo,so,fo,co,uo,lo,ao,bo,po]),vo}var CalloutContentBase=reactExports.memo(reactExports.forwardRef(function(eo,to){var ro=getPropsWithDefaults(DEFAULT_PROPS$3,eo),no=ro.styles,oo=ro.style,io=ro.ariaLabel,so=ro.ariaDescribedBy,ao=ro.ariaLabelledBy,lo=ro.className,uo=ro.isBeakVisible,co=ro.children,fo=ro.beakWidth,po=ro.calloutWidth,ho=ro.calloutMaxWidth,mo=ro.calloutMinWidth,vo=ro.doNotLayer,bo=ro.finalHeight,xo=ro.hideOverflow,_o=xo===void 0?!!bo:xo,So=ro.backgroundColor,Eo=ro.calloutMaxHeight,ko=ro.onScroll,wo=ro.shouldRestoreFocus,Co=wo===void 0?!0:wo,Ro=ro.target,Ao=ro.hidden,Io=ro.onLayerMounted,$o=ro.popupProps,Bo=reactExports.useRef(null),Mo=reactExports.useRef(null),Ho=useMergedRefs(Mo,$o==null?void 0:$o.ref),jo=reactExports.useState(null),Oo=jo[0],Fo=jo[1],Go=reactExports.useCallback(function(Zs){Fo(Zs)},[]),qo=useMergedRefs(Bo,to),Xo=useTarget(ro.target,{current:Oo}),Zo=Xo[0],Qo=Xo[1],xs=useBounds(ro,Zo,Qo),Ts=usePositions(ro,Bo,Oo,Zo,xs,Ho),Rs=useMaxHeight(ro,xs,Zo,Ts),Os=useDismissHandlers(ro,Ts,Bo,Zo,Qo),As=Os[0],Ds=Os[1],Jo=(Ts==null?void 0:Ts.elementPosition.top)&&(Ts==null?void 0:Ts.elementPosition.bottom),Cs=__assign$4(__assign$4({},Ts==null?void 0:Ts.elementPosition),{maxHeight:Rs});if(Jo&&(Cs.bottom=void 0),useAutoFocus(ro,Ts,Oo),reactExports.useEffect(function(){Ao||Io==null||Io()},[Ao]),!Qo)return null;var Bs=_o,zs=uo&&!!Ro,Ls=getClassNames$9(no,{theme:ro.theme,className:lo,overflowYHidden:Bs,calloutWidth:po,positions:Ts,beakWidth:fo,backgroundColor:So,calloutMaxWidth:ho,calloutMinWidth:mo,doNotLayer:vo}),ga=__assign$4(__assign$4({maxHeight:Eo||"100%"},oo),Bs&&{overflowY:"hidden"}),Js=ro.hidden?{visibility:"hidden"}:void 0;return reactExports.createElement("div",{ref:qo,className:Ls.container,style:Js},reactExports.createElement("div",__assign$4({},getNativeProps(ro,divProperties,ARIA_ROLE_ATTRIBUTES),{className:css$3(Ls.root,Ts&&Ts.targetEdge&&ANIMATIONS[Ts.targetEdge]),style:Ts?__assign$4({},Cs):OFF_SCREEN_STYLE,tabIndex:-1,ref:Go}),zs&&reactExports.createElement("div",{className:Ls.beak,style:getBeakPosition(Ts)}),zs&&reactExports.createElement("div",{className:Ls.beakCurtain}),reactExports.createElement(Popup,__assign$4({role:ro.role,"aria-roledescription":ro["aria-roledescription"],ariaDescribedBy:so,ariaLabel:io,ariaLabelledBy:ao,className:Ls.calloutMain,onDismiss:ro.onDismiss,onMouseDown:As,onMouseUp:Ds,onRestoreFocus:ro.onRestoreFocus,onScroll:ko,shouldRestoreFocus:Co,style:ga},$o,{ref:Ho}),co)))}),function(eo,to){return!to.shouldUpdateWhenHidden&&eo.hidden&&to.hidden?!0:shallowCompare(eo,to)});function getBeakPosition(eo){var to,ro,no=__assign$4(__assign$4({},(to=eo==null?void 0:eo.beakPosition)===null||to===void 0?void 0:to.elementPosition),{display:!((ro=eo==null?void 0:eo.beakPosition)===null||ro===void 0)&&ro.hideBeak?"none":void 0});return!no.top&&!no.bottom&&!no.left&&!no.right&&(no.left=BEAK_ORIGIN_POSITION.left,no.top=BEAK_ORIGIN_POSITION.top),no}function arePositionsEqual(eo,to){return comparePositions(eo.elementPosition,to.elementPosition)&&comparePositions(eo.beakPosition.elementPosition,to.beakPosition.elementPosition)}function comparePositions(eo,to){for(var ro in to)if(to.hasOwnProperty(ro)){var no=eo[ro],oo=to[ro];if(no!==void 0&&oo!==void 0){if(no.toFixed(2)!==oo.toFixed(2))return!1}else return!1}return!0}CalloutContentBase.displayName=COMPONENT_NAME$2;function getBeakStyle(eo){return{height:eo,width:eo}}var GlobalClassNames$8={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},getStyles$9=function(eo){var to,ro=eo.theme,no=eo.className,oo=eo.overflowYHidden,io=eo.calloutWidth,so=eo.beakWidth,ao=eo.backgroundColor,lo=eo.calloutMaxWidth,uo=eo.calloutMinWidth,co=eo.doNotLayer,fo=getGlobalClassNames(GlobalClassNames$8,ro),po=ro.semanticColors,ho=ro.effects;return{container:[fo.container,{position:"relative"}],root:[fo.root,ro.fonts.medium,{position:"absolute",display:"flex",zIndex:co?ZIndexes.Layer:void 0,boxSizing:"border-box",borderRadius:ho.roundedCorner2,boxShadow:ho.elevation16,selectors:(to={},to[HighContrastSelector]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},to)},focusClear(),no,!!io&&{width:io},!!lo&&{maxWidth:lo},!!uo&&{minWidth:uo}],beak:[fo.beak,{position:"absolute",backgroundColor:po.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},getBeakStyle(so),ao&&{backgroundColor:ao}],beakCurtain:[fo.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:po.menuBackground,borderRadius:ho.roundedCorner2}],calloutMain:[fo.calloutMain,{backgroundColor:po.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:ho.roundedCorner2},oo&&{overflowY:"hidden"},ao&&{backgroundColor:ao}]}},CalloutContent=styled(CalloutContentBase,getStyles$9,void 0,{scope:"CalloutContent"});const PortalCompatContext=reactExports.createContext(void 0),portalCompatContextDefaultValue=()=>()=>{};PortalCompatContext.Provider;function usePortalCompat(){var eo;return(eo=reactExports.useContext(PortalCompatContext))!==null&&eo!==void 0?eo:portalCompatContextDefaultValue}var getClassNames$8=classNamesFunction(),getFabricTheme=memoizeFunction(function(eo,to){return createTheme(__assign$4(__assign$4({},eo),{rtl:to}))}),getDir=function(eo){var to=eo.theme,ro=eo.dir,no=getRTL$1(to)?"rtl":"ltr",oo=getRTL$1()?"rtl":"ltr",io=ro||no;return{rootDir:io!==no||io!==oo?io:ro,needsTheme:io!==no}},FabricBase=reactExports.forwardRef(function(eo,to){var ro=eo.className,no=eo.theme,oo=eo.applyTheme,io=eo.applyThemeToBody,so=eo.styles,ao=getClassNames$8(so,{theme:no,applyTheme:oo,className:ro}),lo=reactExports.useRef(null);return useApplyThemeToBody(io,ao,lo),reactExports.createElement(reactExports.Fragment,null,useRenderedContent(eo,ao,lo,to))});FabricBase.displayName="FabricBase";function useRenderedContent(eo,to,ro,no){var oo=to.root,io=eo.as,so=io===void 0?"div":io,ao=eo.dir,lo=eo.theme,uo=getNativeProps(eo,divProperties,["dir"]),co=getDir(eo),fo=co.rootDir,po=co.needsTheme,ho=reactExports.createElement(FocusRectsProvider,{providerRef:ro},reactExports.createElement(so,__assign$4({dir:fo},uo,{className:oo,ref:useMergedRefs(ro,no)})));return po&&(ho=reactExports.createElement(Customizer,{settings:{theme:getFabricTheme(lo,ao==="rtl")}},ho)),ho}function useApplyThemeToBody(eo,to,ro){var no=to.bodyThemed;return reactExports.useEffect(function(){if(eo){var oo=getDocument(ro.current);if(oo)return oo.body.classList.add(no),function(){oo.body.classList.remove(no)}}},[no,eo,ro]),ro}var inheritFont={fontFamily:"inherit"},GlobalClassNames$7={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},getStyles$8=function(eo){var to=eo.applyTheme,ro=eo.className,no=eo.preventBlanketFontInheritance,oo=eo.theme,io=getGlobalClassNames(GlobalClassNames$7,oo);return{root:[io.root,oo.fonts.medium,{color:oo.palette.neutralPrimary},!no&&{"& button":inheritFont,"& input":inheritFont,"& textarea":inheritFont},to&&{color:oo.semanticColors.bodyText,backgroundColor:oo.semanticColors.bodyBackground},ro],bodyThemed:[{backgroundColor:oo.semanticColors.bodyBackground}]}},Fabric=styled(FabricBase,getStyles$8,void 0,{scope:"Fabric"}),_layersByHostId={},_layerHostsById={},defaultHostId="fluent-default-layer-host",_defaultHostSelector="#".concat(defaultHostId);function registerLayer(eo,to){_layersByHostId[eo]||(_layersByHostId[eo]=[]),_layersByHostId[eo].push(to);var ro=_layerHostsById[eo];if(ro)for(var no=0,oo=ro;no=0&&(ro.splice(no,1),ro.length===0&&delete _layersByHostId[eo])}var oo=_layerHostsById[eo];if(oo)for(var io=0,so=oo;io0&&to.current.naturalHeight>0||to.current.complete&&SVG_REGEX.test(io):!1;fo&&lo(ImageLoadState.loaded)}}),reactExports.useEffect(function(){ro==null||ro(ao)},[ao]);var uo=reactExports.useCallback(function(fo){no==null||no(fo),io&&lo(ImageLoadState.loaded)},[io,no]),co=reactExports.useCallback(function(fo){oo==null||oo(fo),lo(ImageLoadState.error)},[oo]);return[ao,uo,co]}var ImageBase=reactExports.forwardRef(function(eo,to){var ro=reactExports.useRef(),no=reactExports.useRef(),oo=useLoadState(eo,no),io=oo[0],so=oo[1],ao=oo[2],lo=getNativeProps(eo,imgProperties,["width","height"]),uo=eo.src,co=eo.alt,fo=eo.width,po=eo.height,ho=eo.shouldFadeIn,mo=ho===void 0?!0:ho,vo=eo.shouldStartVisible,bo=eo.className,xo=eo.imageFit,_o=eo.role,So=eo.maximizeFrame,Eo=eo.styles,ko=eo.theme,wo=eo.loading,Co=useCoverStyle(eo,io,no,ro),Ro=getClassNames$6(Eo,{theme:ko,className:bo,width:fo,height:po,maximizeFrame:So,shouldFadeIn:mo,shouldStartVisible:vo,isLoaded:io===ImageLoadState.loaded||io===ImageLoadState.notLoaded&&eo.shouldStartVisible,isLandscape:Co===ImageCoverStyle.landscape,isCenter:xo===ImageFit.center,isCenterContain:xo===ImageFit.centerContain,isCenterCover:xo===ImageFit.centerCover,isContain:xo===ImageFit.contain,isCover:xo===ImageFit.cover,isNone:xo===ImageFit.none,isError:io===ImageLoadState.error,isNotImageFit:xo===void 0});return reactExports.createElement("div",{className:Ro.root,style:{width:fo,height:po},ref:ro},reactExports.createElement("img",__assign$4({},lo,{onLoad:so,onError:ao,key:KEY_PREFIX+eo.src||"",className:Ro.image,ref:useMergedRefs(no,to),src:uo,alt:co,role:_o,loading:wo})))});ImageBase.displayName="ImageBase";function useCoverStyle(eo,to,ro,no){var oo=reactExports.useRef(to),io=reactExports.useRef();return(io===void 0||oo.current===ImageLoadState.notLoaded&&to===ImageLoadState.loaded)&&(io.current=computeCoverStyle(eo,to,ro,no)),oo.current=to,io.current}function computeCoverStyle(eo,to,ro,no){var oo=eo.imageFit,io=eo.width,so=eo.height;if(eo.coverStyle!==void 0)return eo.coverStyle;if(to===ImageLoadState.loaded&&(oo===ImageFit.cover||oo===ImageFit.contain||oo===ImageFit.centerContain||oo===ImageFit.centerCover)&&ro.current&&no.current){var ao=void 0;typeof io=="number"&&typeof so=="number"&&oo!==ImageFit.centerContain&&oo!==ImageFit.centerCover?ao=io/so:ao=no.current.clientWidth/no.current.clientHeight;var lo=ro.current.naturalWidth/ro.current.naturalHeight;if(lo>ao)return ImageCoverStyle.landscape}return ImageCoverStyle.portrait}var GlobalClassNames$5={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"},getStyles$6=function(eo){var to=eo.className,ro=eo.width,no=eo.height,oo=eo.maximizeFrame,io=eo.isLoaded,so=eo.shouldFadeIn,ao=eo.shouldStartVisible,lo=eo.isLandscape,uo=eo.isCenter,co=eo.isContain,fo=eo.isCover,po=eo.isCenterContain,ho=eo.isCenterCover,mo=eo.isNone,vo=eo.isError,bo=eo.isNotImageFit,xo=eo.theme,_o=getGlobalClassNames(GlobalClassNames$5,xo),So={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},Eo=getWindow(),ko=Eo!==void 0&&Eo.navigator.msMaxTouchPoints===void 0,wo=co&&lo||fo&&!lo?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[_o.root,xo.fonts.medium,{overflow:"hidden"},oo&&[_o.rootMaximizeFrame,{height:"100%",width:"100%"}],io&&so&&!ao&&AnimationClassNames.fadeIn400,(uo||co||fo||po||ho)&&{position:"relative"},to],image:[_o.image,{display:"block",opacity:0},io&&["is-loaded",{opacity:1}],uo&&[_o.imageCenter,So],co&&[_o.imageContain,ko&&{width:"100%",height:"100%",objectFit:"contain"},!ko&&wo,!ko&&So],fo&&[_o.imageCover,ko&&{width:"100%",height:"100%",objectFit:"cover"},!ko&&wo,!ko&&So],po&&[_o.imageCenterContain,lo&&{maxWidth:"100%"},!lo&&{maxHeight:"100%"},So],ho&&[_o.imageCenterCover,lo&&{maxHeight:"100%"},!lo&&{maxWidth:"100%"},So],mo&&[_o.imageNone,{width:"auto",height:"auto"}],bo&&[!!ro&&!no&&{height:"auto",width:"100%"},!ro&&!!no&&{height:"100%",width:"auto"},!!ro&&!!no&&{height:"100%",width:"100%"}],lo&&_o.imageLandscape,!lo&&_o.imagePortrait,!io&&"is-notLoaded",so&&"is-fadeIn",vo&&"is-error"]}},Image$1=styled(ImageBase,getStyles$6,void 0,{scope:"Image"},!0);Image$1.displayName="Image";var classNames=mergeStyleSets({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),MS_ICON="ms-Icon",getStyles$5=function(eo){var to=eo.className,ro=eo.iconClassName,no=eo.isPlaceholder,oo=eo.isImage,io=eo.styles;return{root:[no&&classNames.placeholder,classNames.root,oo&&classNames.image,ro,to,io&&io.root,io&&io.imageContainer]}},getIconContent=memoizeFunction(function(eo){var to=getIcon(eo)||{subset:{},code:void 0},ro=to.code,no=to.subset;return ro?{children:ro,iconClassName:no.className,fontFamily:no.fontFace&&no.fontFace.fontFamily,mergeImageProps:no.mergeImageProps}:null},void 0,!0),FontIcon=function(eo){var to=eo.iconName,ro=eo.className,no=eo.style,oo=no===void 0?{}:no,io=getIconContent(to)||{},so=io.iconClassName,ao=io.children,lo=io.fontFamily,uo=io.mergeImageProps,co=getNativeProps(eo,htmlElementProperties),fo=eo["aria-label"]||eo.title,po=eo["aria-label"]||eo["aria-labelledby"]||eo.title?{role:uo?void 0:"img"}:{"aria-hidden":!0},ho=ao;return uo&&typeof ao=="object"&&typeof ao.props=="object"&&fo&&(ho=reactExports.cloneElement(ao,{alt:fo})),reactExports.createElement("i",__assign$4({"data-icon-name":to},po,co,uo?{title:void 0,"aria-label":void 0}:{},{className:css$3(MS_ICON,classNames.root,so,!to&&classNames.placeholder,ro),style:__assign$4({fontFamily:lo},oo)}),ho)};memoizeFunction(function(eo,to,ro){return FontIcon({iconName:eo,className:to,"aria-label":ro})});var getClassNames$5=classNamesFunction({cacheSize:100}),IconBase=function(eo){__extends$3(to,eo);function to(ro){var no=eo.call(this,ro)||this;return no._onImageLoadingStateChange=function(oo){no.props.imageProps&&no.props.imageProps.onLoadingStateChange&&no.props.imageProps.onLoadingStateChange(oo),oo===ImageLoadState.error&&no.setState({imageLoadError:!0})},no.state={imageLoadError:!1},no}return to.prototype.render=function(){var ro=this.props,no=ro.children,oo=ro.className,io=ro.styles,so=ro.iconName,ao=ro.imageErrorAs,lo=ro.theme,uo=typeof so=="string"&&so.length===0,co=!!this.props.imageProps||this.props.iconType===IconType.image||this.props.iconType===IconType.Image,fo=getIconContent(so)||{},po=fo.iconClassName,ho=fo.children,mo=fo.mergeImageProps,vo=getClassNames$5(io,{theme:lo,className:oo,iconClassName:po,isImage:co,isPlaceholder:uo}),bo=co?"span":"i",xo=getNativeProps(this.props,htmlElementProperties,["aria-label"]),_o=this.state.imageLoadError,So=__assign$4(__assign$4({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),Eo=_o&&ao||Image$1,ko=this.props["aria-label"]||this.props.ariaLabel,wo=So.alt||ko||this.props.title,Co=!!(wo||this.props["aria-labelledby"]||So["aria-label"]||So["aria-labelledby"]),Ro=Co?{role:co||mo?void 0:"img","aria-label":co||mo?void 0:wo}:{"aria-hidden":!0},Ao=ho;return mo&&ho&&typeof ho=="object"&&wo&&(Ao=reactExports.cloneElement(ho,{alt:wo})),reactExports.createElement(bo,__assign$4({"data-icon-name":so},Ro,xo,mo?{title:void 0,"aria-label":void 0}:{},{className:vo.root}),co?reactExports.createElement(Eo,__assign$4({},So)):no||Ao)},to}(reactExports.Component),Icon=styled(IconBase,getStyles$5,void 0,{scope:"Icon"},!0);Icon.displayName="Icon";var FocusZoneTabbableElements={none:0,all:1,inputOnly:2},FocusZoneDirection;(function(eo){eo[eo.vertical=0]="vertical",eo[eo.horizontal=1]="horizontal",eo[eo.bidirectional=2]="bidirectional",eo[eo.domOrder=3]="domOrder"})(FocusZoneDirection||(FocusZoneDirection={}));var IS_FOCUSABLE_ATTRIBUTE="data-is-focusable",IS_ENTER_DISABLED_ATTRIBUTE="data-disable-click-on-enter",FOCUSZONE_ID_ATTRIBUTE="data-focuszone-id",TABINDEX="tabindex",NO_VERTICAL_WRAP="data-no-vertical-wrap",NO_HORIZONTAL_WRAP="data-no-horizontal-wrap",LARGE_DISTANCE_FROM_CENTER=999999999,LARGE_NEGATIVE_DISTANCE_FROM_CENTER=-999999999,focusZoneStyles,focusZoneClass="ms-FocusZone";function raiseClickFromKeyboardEvent(eo,to){var ro;typeof MouseEvent=="function"?ro=new MouseEvent("click",{ctrlKey:to==null?void 0:to.ctrlKey,metaKey:to==null?void 0:to.metaKey,shiftKey:to==null?void 0:to.shiftKey,altKey:to==null?void 0:to.altKey,bubbles:to==null?void 0:to.bubbles,cancelable:to==null?void 0:to.cancelable}):(ro=document.createEvent("MouseEvents"),ro.initMouseEvent("click",to?to.bubbles:!1,to?to.cancelable:!1,window,0,0,0,0,0,to?to.ctrlKey:!1,to?to.altKey:!1,to?to.shiftKey:!1,to?to.metaKey:!1,0,null)),eo.dispatchEvent(ro)}function getRootClass(){return focusZoneStyles||(focusZoneStyles=mergeStyles$1({selectors:{":focus":{outline:"none"}}},focusZoneClass)),focusZoneStyles}var _allInstances={},_outerZones=new Set,ALLOWED_INPUT_TYPES=["text","number","password","email","tel","url","search","textarea"],ALLOW_VIRTUAL_ELEMENTS=!1,FocusZone=function(eo){__extends$3(to,eo);function to(ro){var no=this,oo,io,so,ao;no=eo.call(this,ro)||this,no._root=reactExports.createRef(),no._mergedRef=createMergedRef(),no._onFocus=function(uo){if(!no._portalContainsElement(uo.target)){var co=no.props,fo=co.onActiveElementChanged,po=co.doNotAllowFocusEventToPropagate,ho=co.stopFocusPropagation,mo=co.onFocusNotification,vo=co.onFocus,bo=co.shouldFocusInnerElementWhenReceivedFocus,xo=co.defaultTabbableElement,_o=no._isImmediateDescendantOfZone(uo.target),So;if(_o)So=uo.target;else for(var Eo=uo.target;Eo&&Eo!==no._root.current;){if(isElementTabbable(Eo)&&no._isImmediateDescendantOfZone(Eo)){So=Eo;break}Eo=getParent(Eo,ALLOW_VIRTUAL_ELEMENTS)}if(bo&&uo.target===no._root.current){var ko=xo&&typeof xo=="function"&&no._root.current&&xo(no._root.current);ko&&isElementTabbable(ko)?(So=ko,ko.focus()):(no.focus(!0),no._activeElement&&(So=null))}var wo=!no._activeElement;So&&So!==no._activeElement&&((_o||wo)&&no._setFocusAlignment(So,!0,!0),no._activeElement=So,wo&&no._updateTabIndexes()),fo&&fo(no._activeElement,uo),(ho||po)&&uo.stopPropagation(),vo?vo(uo):mo&&mo()}},no._onBlur=function(){no._setParkedFocus(!1)},no._onMouseDown=function(uo){if(!no._portalContainsElement(uo.target)){var co=no.props.disabled;if(!co){for(var fo=uo.target,po=[];fo&&fo!==no._root.current;)po.push(fo),fo=getParent(fo,ALLOW_VIRTUAL_ELEMENTS);for(;po.length&&(fo=po.pop(),fo&&isElementTabbable(fo)&&no._setActiveElement(fo,!0),!isElementFocusZone(fo)););}}},no._onKeyDown=function(uo,co){if(!no._portalContainsElement(uo.target)){var fo=no.props,po=fo.direction,ho=fo.disabled,mo=fo.isInnerZoneKeystroke,vo=fo.pagingSupportDisabled,bo=fo.shouldEnterInnerZone;if(!ho&&(no.props.onKeyDown&&no.props.onKeyDown(uo),!uo.isDefaultPrevented()&&!(no._getDocument().activeElement===no._root.current&&no._isInnerZone))){if((bo&&bo(uo)||mo&&mo(uo))&&no._isImmediateDescendantOfZone(uo.target)){var xo=no._getFirstInnerZone();if(xo){if(!xo.focus(!0))return}else if(isElementFocusSubZone(uo.target)){if(!no.focusElement(getNextElement(uo.target,uo.target.firstChild,!0)))return}else return}else{if(uo.altKey)return;switch(uo.which){case KeyCodes$1.space:if(no._shouldRaiseClicksOnSpace&&no._tryInvokeClickForFocusable(uo.target,uo))break;return;case KeyCodes$1.left:if(po!==FocusZoneDirection.vertical&&(no._preventDefaultWhenHandled(uo),no._moveFocusLeft(co)))break;return;case KeyCodes$1.right:if(po!==FocusZoneDirection.vertical&&(no._preventDefaultWhenHandled(uo),no._moveFocusRight(co)))break;return;case KeyCodes$1.up:if(po!==FocusZoneDirection.horizontal&&(no._preventDefaultWhenHandled(uo),no._moveFocusUp()))break;return;case KeyCodes$1.down:if(po!==FocusZoneDirection.horizontal&&(no._preventDefaultWhenHandled(uo),no._moveFocusDown()))break;return;case KeyCodes$1.pageDown:if(!vo&&no._moveFocusPaging(!0))break;return;case KeyCodes$1.pageUp:if(!vo&&no._moveFocusPaging(!1))break;return;case KeyCodes$1.tab:if(no.props.allowTabKey||no.props.handleTabKey===FocusZoneTabbableElements.all||no.props.handleTabKey===FocusZoneTabbableElements.inputOnly&&no._isElementInput(uo.target)){var _o=!1;if(no._processingTabKey=!0,po===FocusZoneDirection.vertical||!no._shouldWrapFocus(no._activeElement,NO_HORIZONTAL_WRAP))_o=uo.shiftKey?no._moveFocusUp():no._moveFocusDown();else{var So=getRTL$1(co)?!uo.shiftKey:uo.shiftKey;_o=So?no._moveFocusLeft(co):no._moveFocusRight(co)}if(no._processingTabKey=!1,_o)break;no.props.shouldResetActiveElementWhenTabFromZone&&(no._activeElement=null)}return;case KeyCodes$1.home:if(no._isContentEditableElement(uo.target)||no._isElementInput(uo.target)&&!no._shouldInputLoseFocus(uo.target,!1))return!1;var Eo=no._root.current&&no._root.current.firstChild;if(no._root.current&&Eo&&no.focusElement(getNextElement(no._root.current,Eo,!0)))break;return;case KeyCodes$1.end:if(no._isContentEditableElement(uo.target)||no._isElementInput(uo.target)&&!no._shouldInputLoseFocus(uo.target,!0))return!1;var ko=no._root.current&&no._root.current.lastChild;if(no._root.current&&no.focusElement(getPreviousElement(no._root.current,ko,!0,!0,!0)))break;return;case KeyCodes$1.enter:if(no._shouldRaiseClicksOnEnter&&no._tryInvokeClickForFocusable(uo.target,uo))break;return;default:return}}uo.preventDefault(),uo.stopPropagation()}}},no._getHorizontalDistanceFromCenter=function(uo,co,fo){var po=no._focusAlignment.left||no._focusAlignment.x||0,ho=Math.floor(fo.top),mo=Math.floor(co.bottom),vo=Math.floor(fo.bottom),bo=Math.floor(co.top),xo=uo&&ho>mo,_o=!uo&&vo=fo.left&&po<=fo.left+fo.width?0:Math.abs(fo.left+fo.width/2-po):no._shouldWrapFocus(no._activeElement,NO_VERTICAL_WRAP)?LARGE_DISTANCE_FROM_CENTER:LARGE_NEGATIVE_DISTANCE_FROM_CENTER},initializeComponentRef(no),no._id=getId("FocusZone"),no._focusAlignment={left:0,top:0},no._processingTabKey=!1;var lo=(io=(oo=ro.shouldRaiseClicks)!==null&&oo!==void 0?oo:to.defaultProps.shouldRaiseClicks)!==null&&io!==void 0?io:!0;return no._shouldRaiseClicksOnEnter=(so=ro.shouldRaiseClicksOnEnter)!==null&&so!==void 0?so:lo,no._shouldRaiseClicksOnSpace=(ao=ro.shouldRaiseClicksOnSpace)!==null&&ao!==void 0?ao:lo,no}return to.getOuterZones=function(){return _outerZones.size},to._onKeyDownCapture=function(ro){ro.which===KeyCodes$1.tab&&_outerZones.forEach(function(no){return no._updateTabIndexes()})},to.prototype.componentDidMount=function(){var ro=this._root.current;if(_allInstances[this._id]=this,ro){for(var no=getParent(ro,ALLOW_VIRTUAL_ELEMENTS);no&&no!==this._getDocument().body&&no.nodeType===1;){if(isElementFocusZone(no)){this._isInnerZone=!0;break}no=getParent(no,ALLOW_VIRTUAL_ELEMENTS)}this._isInnerZone||(_outerZones.add(this),this._root.current&&this._root.current.addEventListener("keydown",to._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()}},to.prototype.componentDidUpdate=function(){var ro=this._root.current,no=this._getDocument();if((this._activeElement&&!elementContains(this._root.current,this._activeElement,ALLOW_VIRTUAL_ELEMENTS)||this._defaultFocusElement&&!elementContains(this._root.current,this._defaultFocusElement,ALLOW_VIRTUAL_ELEMENTS))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&no&&this._lastIndexPath&&(no.activeElement===no.body||no.activeElement===null||no.activeElement===ro)){var oo=getFocusableByIndexPath(ro,this._lastIndexPath);oo?(this._setActiveElement(oo,!0),oo.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},to.prototype.componentWillUnmount=function(){delete _allInstances[this._id],this._isInnerZone||(_outerZones.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",to._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},to.prototype.render=function(){var ro=this,no=this.props,oo=no.as,io=no.elementType,so=no.rootProps,ao=no.ariaDescribedBy,lo=no.ariaLabelledBy,uo=no.className,co=getNativeProps(this.props,htmlElementProperties),fo=oo||io||"div";this._evaluateFocusBeforeRender();var po=getTheme();return reactExports.createElement(fo,__assign$4({"aria-labelledby":lo,"aria-describedby":ao},co,so,{className:css$3(getRootClass(),uo),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(ho){return ro._onKeyDown(ho,po)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},to.prototype.focus=function(ro,no){if(ro===void 0&&(ro=!1),no===void 0&&(no=!1),this._root.current)if(!ro&&this._root.current.getAttribute(IS_FOCUSABLE_ATTRIBUTE)==="true"&&this._isInnerZone){var oo=this._getOwnerZone(this._root.current);if(oo!==this._root.current){var io=_allInstances[oo.getAttribute(FOCUSZONE_ID_ATTRIBUTE)];return!!io&&io.focusElement(this._root.current)}return!1}else{if(!ro&&this._activeElement&&elementContains(this._root.current,this._activeElement)&&isElementTabbable(this._activeElement)&&(!no||isElementVisibleAndNotHidden(this._activeElement)))return this._activeElement.focus(),!0;var so=this._root.current.firstChild;return this.focusElement(getNextElement(this._root.current,so,!0,void 0,void 0,void 0,void 0,void 0,no))}return!1},to.prototype.focusLast=function(){if(this._root.current){var ro=this._root.current&&this._root.current.lastChild;return this.focusElement(getPreviousElement(this._root.current,ro,!0,!0,!0))}return!1},to.prototype.focusElement=function(ro,no){var oo=this.props,io=oo.onBeforeFocus,so=oo.shouldReceiveFocus;return so&&!so(ro)||io&&!io(ro)?!1:ro?(this._setActiveElement(ro,no),this._activeElement&&this._activeElement.focus(),!0):!1},to.prototype.setFocusAlignment=function(ro){this._focusAlignment=ro},Object.defineProperty(to.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(to.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),to.prototype._evaluateFocusBeforeRender=function(){var ro=this._root.current,no=this._getDocument();if(no){var oo=no.activeElement;if(oo!==ro){var io=elementContains(ro,oo,!1);this._lastIndexPath=io?getElementIndexPath(ro,oo):void 0}}},to.prototype._setParkedFocus=function(ro){var no=this._root.current;no&&this._isParked!==ro&&(this._isParked=ro,ro?(this.props.allowFocusRoot||(this._parkedTabIndex=no.getAttribute("tabindex"),no.setAttribute("tabindex","-1")),no.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(no.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):no.removeAttribute("tabindex")))},to.prototype._setActiveElement=function(ro,no){var oo=this._activeElement;this._activeElement=ro,oo&&(isElementFocusZone(oo)&&this._updateTabIndexes(oo),oo.tabIndex=-1),this._activeElement&&((!this._focusAlignment||no)&&this._setFocusAlignment(ro,!0,!0),this._activeElement.tabIndex=0)},to.prototype._preventDefaultWhenHandled=function(ro){this.props.preventDefaultWhenHandled&&ro.preventDefault()},to.prototype._tryInvokeClickForFocusable=function(ro,no){var oo=ro;if(oo===this._root.current)return!1;do{if(oo.tagName==="BUTTON"||oo.tagName==="A"||oo.tagName==="INPUT"||oo.tagName==="TEXTAREA"||oo.tagName==="SUMMARY")return!1;if(this._isImmediateDescendantOfZone(oo)&&oo.getAttribute(IS_FOCUSABLE_ATTRIBUTE)==="true"&&oo.getAttribute(IS_ENTER_DISABLED_ATTRIBUTE)!=="true")return raiseClickFromKeyboardEvent(oo,no),!0;oo=getParent(oo,ALLOW_VIRTUAL_ELEMENTS)}while(oo!==this._root.current);return!1},to.prototype._getFirstInnerZone=function(ro){if(ro=ro||this._activeElement||this._root.current,!ro)return null;if(isElementFocusZone(ro))return _allInstances[ro.getAttribute(FOCUSZONE_ID_ATTRIBUTE)];for(var no=ro.firstElementChild;no;){if(isElementFocusZone(no))return _allInstances[no.getAttribute(FOCUSZONE_ID_ATTRIBUTE)];var oo=this._getFirstInnerZone(no);if(oo)return oo;no=no.nextElementSibling}return null},to.prototype._moveFocus=function(ro,no,oo,io){io===void 0&&(io=!0);var so=this._activeElement,ao=-1,lo=void 0,uo=!1,co=this.props.direction===FocusZoneDirection.bidirectional;if(!so||!this._root.current||this._isElementInput(so)&&!this._shouldInputLoseFocus(so,ro))return!1;var fo=co?so.getBoundingClientRect():null;do if(so=ro?getNextElement(this._root.current,so):getPreviousElement(this._root.current,so),co){if(so){var po=so.getBoundingClientRect(),ho=no(fo,po);if(ho===-1&&ao===-1){lo=so;break}if(ho>-1&&(ao===-1||ho=0&&ho<0)break}}else{lo=so;break}while(so);if(lo&&lo!==this._activeElement)uo=!0,this.focusElement(lo);else if(this.props.isCircularNavigation&&io)return ro?this.focusElement(getNextElement(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(getPreviousElement(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return uo},to.prototype._moveFocusDown=function(){var ro=this,no=-1,oo=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!0,function(io,so){var ao=-1,lo=Math.floor(so.top),uo=Math.floor(io.bottom);return lo=uo||lo===no)&&(no=lo,oo>=so.left&&oo<=so.left+so.width?ao=0:ao=Math.abs(so.left+so.width/2-oo)),ao)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},to.prototype._moveFocusUp=function(){var ro=this,no=-1,oo=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!1,function(io,so){var ao=-1,lo=Math.floor(so.bottom),uo=Math.floor(so.top),co=Math.floor(io.top);return lo>co?ro._shouldWrapFocus(ro._activeElement,NO_VERTICAL_WRAP)?LARGE_DISTANCE_FROM_CENTER:LARGE_NEGATIVE_DISTANCE_FROM_CENTER:((no===-1&&lo<=co||uo===no)&&(no=uo,oo>=so.left&&oo<=so.left+so.width?ao=0:ao=Math.abs(so.left+so.width/2-oo)),ao)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},to.prototype._moveFocusLeft=function(ro){var no=this,oo=this._shouldWrapFocus(this._activeElement,NO_HORIZONTAL_WRAP);return this._moveFocus(getRTL$1(ro),function(io,so){var ao=-1,lo;return getRTL$1(ro)?lo=parseFloat(so.top.toFixed(3))parseFloat(io.top.toFixed(3)),lo&&so.right<=io.right&&no.props.direction!==FocusZoneDirection.vertical?ao=io.right-so.right:oo||(ao=LARGE_NEGATIVE_DISTANCE_FROM_CENTER),ao},void 0,oo)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},to.prototype._moveFocusRight=function(ro){var no=this,oo=this._shouldWrapFocus(this._activeElement,NO_HORIZONTAL_WRAP);return this._moveFocus(!getRTL$1(ro),function(io,so){var ao=-1,lo;return getRTL$1(ro)?lo=parseFloat(so.bottom.toFixed(3))>parseFloat(io.top.toFixed(3)):lo=parseFloat(so.top.toFixed(3))=io.left&&no.props.direction!==FocusZoneDirection.vertical?ao=so.left-io.left:oo||(ao=LARGE_NEGATIVE_DISTANCE_FROM_CENTER),ao},void 0,oo)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},to.prototype._moveFocusPaging=function(ro,no){no===void 0&&(no=!0);var oo=this._activeElement;if(!oo||!this._root.current||this._isElementInput(oo)&&!this._shouldInputLoseFocus(oo,ro))return!1;var io=findScrollableParent(oo);if(!io)return!1;var so=-1,ao=void 0,lo=-1,uo=-1,co=io.clientHeight,fo=oo.getBoundingClientRect();do if(oo=ro?getNextElement(this._root.current,oo):getPreviousElement(this._root.current,oo),oo){var po=oo.getBoundingClientRect(),ho=Math.floor(po.top),mo=Math.floor(fo.bottom),vo=Math.floor(po.bottom),bo=Math.floor(fo.top),xo=this._getHorizontalDistanceFromCenter(ro,fo,po),_o=ro&&ho>mo+co,So=!ro&&vo-1&&(ro&&ho>lo?(lo=ho,so=xo,ao=oo):!ro&&vo-1){var oo=ro.selectionStart,io=ro.selectionEnd,so=oo!==io,ao=ro.value,lo=ro.readOnly;if(so||oo>0&&!no&&!lo||oo!==ao.length&&no&&!lo||this.props.handleTabKey&&!(this.props.shouldInputLoseFocusOnArrowKey&&this.props.shouldInputLoseFocusOnArrowKey(ro)))return!1}return!0},to.prototype._shouldWrapFocus=function(ro,no){return this.props.checkForNoWrap?shouldWrapFocus(ro,no):!0},to.prototype._portalContainsElement=function(ro){return ro&&!!this._root.current&&portalContainsElement(ro,this._root.current)},to.prototype._getDocument=function(){return getDocument(this._root.current)},to.defaultProps={isCircularNavigation:!1,direction:FocusZoneDirection.bidirectional,shouldRaiseClicks:!0},to}(reactExports.Component),ContextualMenuItemType;(function(eo){eo[eo.Normal=0]="Normal",eo[eo.Divider=1]="Divider",eo[eo.Header=2]="Header",eo[eo.Section=3]="Section"})(ContextualMenuItemType||(ContextualMenuItemType={}));function getIsChecked(eo){return eo.canCheck?!!(eo.isChecked||eo.checked):typeof eo.isChecked=="boolean"?eo.isChecked:typeof eo.checked=="boolean"?eo.checked:null}function hasSubmenu(eo){return!!(eo.subMenuProps||eo.items)}function isItemDisabled(eo){return!!(eo.isDisabled||eo.disabled)}function getMenuItemAriaRole(eo){var to=getIsChecked(eo),ro=to!==null;return ro?"menuitemcheckbox":"menuitem"}var defaultIconRenderer=function(eo){var to=eo.item,ro=eo.classNames,no=to.iconProps;return reactExports.createElement(Icon,__assign$4({},no,{className:ro.icon}))},renderItemIcon=function(eo){var to=eo.item,ro=eo.hasIcons;return ro?to.onRenderIcon?to.onRenderIcon(eo,defaultIconRenderer):defaultIconRenderer(eo):null},renderCheckMarkIcon=function(eo){var to=eo.onCheckmarkClick,ro=eo.item,no=eo.classNames,oo=getIsChecked(ro);if(to){var io=function(so){return to(ro,so)};return reactExports.createElement(Icon,{iconName:ro.canCheck!==!1&&oo?"CheckMark":"",className:no.checkmarkIcon,onClick:io})}return null},renderItemName=function(eo){var to=eo.item,ro=eo.classNames;return to.text||to.name?reactExports.createElement("span",{className:ro.label},to.text||to.name):null},renderSecondaryText=function(eo){var to=eo.item,ro=eo.classNames;return to.secondaryText?reactExports.createElement("span",{className:ro.secondaryText},to.secondaryText):null},renderSubMenuIcon=function(eo){var to=eo.item,ro=eo.classNames,no=eo.theme;return hasSubmenu(to)?reactExports.createElement(Icon,__assign$4({iconName:getRTL$1(no)?"ChevronLeft":"ChevronRight"},to.submenuIconProps,{className:ro.subMenuIcon})):null},ContextualMenuItemBase=function(eo){__extends$3(to,eo);function to(ro){var no=eo.call(this,ro)||this;return no.openSubMenu=function(){var oo=no.props,io=oo.item,so=oo.openSubMenu,ao=oo.getSubmenuTarget;if(ao){var lo=ao();hasSubmenu(io)&&so&&lo&&so(io,lo)}},no.dismissSubMenu=function(){var oo=no.props,io=oo.item,so=oo.dismissSubMenu;hasSubmenu(io)&&so&&so()},no.dismissMenu=function(oo){var io=no.props.dismissMenu;io&&io(void 0,oo)},initializeComponentRef(no),no}return to.prototype.render=function(){var ro=this.props,no=ro.item,oo=ro.classNames,io=no.onRenderContent||this._renderLayout;return reactExports.createElement("div",{className:no.split?oo.linkContentMenu:oo.linkContent},io(this.props,{renderCheckMarkIcon,renderItemIcon,renderItemName,renderSecondaryText,renderSubMenuIcon}))},to.prototype._renderLayout=function(ro,no){return reactExports.createElement(reactExports.Fragment,null,no.renderCheckMarkIcon(ro),no.renderItemIcon(ro),no.renderItemName(ro),no.renderSecondaryText(ro),no.renderSubMenuIcon(ro))},to}(reactExports.Component),getDividerClassNames=memoizeFunction(function(eo){return mergeStyleSets({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:eo.palette.neutralTertiaryAlt}})}),CONTEXTUAL_MENU_ITEM_HEIGHT=36,MediumScreenSelector$1=getScreenSelector(0,ScreenWidthMaxMedium),getMenuItemStyles=memoizeFunction(function(eo){var to,ro,no,oo,io,so=eo.semanticColors,ao=eo.fonts,lo=eo.palette,uo=so.menuItemBackgroundHovered,co=so.menuItemTextHovered,fo=so.menuItemBackgroundPressed,po=so.bodyDivider,ho={item:[ao.medium,{color:so.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:po,position:"relative"},root:[getFocusStyle(eo),ao.medium,{color:so.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:CONTEXTUAL_MENU_ITEM_HEIGHT,lineHeight:CONTEXTUAL_MENU_ITEM_HEIGHT,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:so.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(to={},to[HighContrastSelector]={color:"GrayText",opacity:1},to)},rootHovered:{backgroundColor:uo,color:co,selectors:{".ms-ContextualMenu-icon":{color:lo.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:lo.neutralPrimary}}},rootFocused:{backgroundColor:lo.white},rootChecked:{selectors:{".ms-ContextualMenu-checkmarkIcon":{color:lo.neutralPrimary}}},rootPressed:{backgroundColor:fo,selectors:{".ms-ContextualMenu-icon":{color:lo.themeDark},".ms-ContextualMenu-submenuIcon":{color:lo.neutralPrimary}}},rootExpanded:{backgroundColor:fo,color:so.bodyTextChecked,selectors:(ro={".ms-ContextualMenu-submenuIcon":(no={},no[HighContrastSelector]={color:"inherit"},no)},ro[HighContrastSelector]=__assign$4({},getHighContrastNoAdjustStyle()),ro)},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:eo.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:CONTEXTUAL_MENU_ITEM_HEIGHT,fontSize:IconFontSizes.medium,width:IconFontSizes.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(oo={},oo[MediumScreenSelector$1]={fontSize:IconFontSizes.large,width:IconFontSizes.large},oo)},iconColor:{color:so.menuIcon},iconDisabled:{color:so.disabledBodyText},checkmarkIcon:{color:so.bodySubtext},subMenuIcon:{height:CONTEXTUAL_MENU_ITEM_HEIGHT,lineHeight:CONTEXTUAL_MENU_ITEM_HEIGHT,color:lo.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:IconFontSizes.small,selectors:(io={":hover":{color:lo.neutralPrimary},":active":{color:lo.neutralPrimary}},io[MediumScreenSelector$1]={fontSize:IconFontSizes.medium},io)},splitButtonFlexContainer:[getFocusStyle(eo),{display:"flex",height:CONTEXTUAL_MENU_ITEM_HEIGHT,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]};return concatStyleSets(ho)}),CONTEXTUAL_SPLIT_MENU_MINWIDTH="28px",MediumScreenSelector=getScreenSelector(0,ScreenWidthMaxMedium),getSplitButtonVerticalDividerClassNames=memoizeFunction(function(eo){var to;return mergeStyleSets(getDividerClassNames(eo),{wrapper:{position:"absolute",right:28,selectors:(to={},to[MediumScreenSelector]={right:32},to)},divider:{height:16,width:1}})}),GlobalClassNames$4={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"},getItemClassNames=memoizeFunction(function(eo,to,ro,no,oo,io,so,ao,lo,uo,co,fo){var po,ho,mo,vo,bo=getMenuItemStyles(eo),xo=getGlobalClassNames(GlobalClassNames$4,eo);return mergeStyleSets({item:[xo.item,bo.item,so],divider:[xo.divider,bo.divider,ao],root:[xo.root,bo.root,no&&[xo.isChecked,bo.rootChecked],oo&&bo.anchorLink,ro&&[xo.isExpanded,bo.rootExpanded],to&&[xo.isDisabled,bo.rootDisabled],!to&&!ro&&[{selectors:(po={":hover":bo.rootHovered,":active":bo.rootPressed},po[".".concat(IsFocusVisibleClassName," &:focus, .").concat(IsFocusVisibleClassName," &:focus:hover")]=bo.rootFocused,po[".".concat(IsFocusVisibleClassName," &:hover")]={background:"inherit;"},po)}],fo],splitPrimary:[bo.root,{width:"calc(100% - ".concat(CONTEXTUAL_SPLIT_MENU_MINWIDTH,")")},no&&["is-checked",bo.rootChecked],(to||co)&&["is-disabled",bo.rootDisabled],!(to||co)&&!no&&[{selectors:(ho={":hover":bo.rootHovered},ho[":hover ~ .".concat(xo.splitMenu)]=bo.rootHovered,ho[":active"]=bo.rootPressed,ho[".".concat(IsFocusVisibleClassName," &:focus, .").concat(IsFocusVisibleClassName," &:focus:hover")]=bo.rootFocused,ho[".".concat(IsFocusVisibleClassName," &:hover")]={background:"inherit;"},ho)}]],splitMenu:[xo.splitMenu,bo.root,{flexBasis:"0",padding:"0 8px",minWidth:CONTEXTUAL_SPLIT_MENU_MINWIDTH},ro&&["is-expanded",bo.rootExpanded],to&&["is-disabled",bo.rootDisabled],!to&&!ro&&[{selectors:(mo={":hover":bo.rootHovered,":active":bo.rootPressed},mo[".".concat(IsFocusVisibleClassName," &:focus, .").concat(IsFocusVisibleClassName," &:focus:hover")]=bo.rootFocused,mo[".".concat(IsFocusVisibleClassName," &:hover")]={background:"inherit;"},mo)}]],anchorLink:bo.anchorLink,linkContent:[xo.linkContent,bo.linkContent],linkContentMenu:[xo.linkContentMenu,bo.linkContent,{justifyContent:"center"}],icon:[xo.icon,io&&bo.iconColor,bo.icon,lo,to&&[xo.isDisabled,bo.iconDisabled]],iconColor:bo.iconColor,checkmarkIcon:[xo.checkmarkIcon,io&&bo.checkmarkIcon,bo.icon,lo],subMenuIcon:[xo.subMenuIcon,bo.subMenuIcon,uo,ro&&{color:eo.palette.neutralPrimary},to&&[bo.iconDisabled]],label:[xo.label,bo.label],secondaryText:[xo.secondaryText,bo.secondaryText],splitContainer:[bo.splitButtonFlexContainer,!to&&!no&&[{selectors:(vo={},vo[".".concat(IsFocusVisibleClassName," &:focus, .").concat(IsFocusVisibleClassName," &:focus:hover")]=bo.rootFocused,vo)}]],screenReaderText:[xo.screenReaderText,bo.screenReaderText,hiddenContentStyle,{visibility:"hidden"}]})}),getItemStyles=function(eo){var to=eo.theme,ro=eo.disabled,no=eo.expanded,oo=eo.checked,io=eo.isAnchorLink,so=eo.knownIcon,ao=eo.itemClassName,lo=eo.dividerClassName,uo=eo.iconClassName,co=eo.subMenuClassName,fo=eo.primaryDisabled,po=eo.className;return getItemClassNames(to,ro,no,oo,io,so,ao,lo,uo,co,fo,po)},ContextualMenuItem=styled(ContextualMenuItemBase,getItemStyles,void 0,{scope:"ContextualMenuItem"}),ContextualMenuItemWrapper=function(eo){__extends$3(to,eo);function to(ro){var no=eo.call(this,ro)||this;return no._onItemMouseEnter=function(oo){var io=no.props,so=io.item,ao=io.onItemMouseEnter;ao&&ao(so,oo,oo.currentTarget)},no._onItemClick=function(oo){var io=no.props,so=io.item,ao=io.onItemClickBase;ao&&ao(so,oo,oo.currentTarget)},no._onItemMouseLeave=function(oo){var io=no.props,so=io.item,ao=io.onItemMouseLeave;ao&&ao(so,oo)},no._onItemKeyDown=function(oo){var io=no.props,so=io.item,ao=io.onItemKeyDown;ao&&ao(so,oo)},no._onItemMouseMove=function(oo){var io=no.props,so=io.item,ao=io.onItemMouseMove;ao&&ao(so,oo,oo.currentTarget)},no._getSubmenuTarget=function(){},initializeComponentRef(no),no}return to.prototype.shouldComponentUpdate=function(ro){return!shallowCompare(ro,this.props)},to}(reactExports.Component),KTP_PREFIX="ktp",KTP_SEPARATOR="-",DATAKTP_TARGET="data-ktp-target",DATAKTP_EXECUTE_TARGET="data-ktp-execute-target",KTP_LAYER_ID="ktp-layer-id",KeytipEvents;(function(eo){eo.KEYTIP_ADDED="keytipAdded",eo.KEYTIP_REMOVED="keytipRemoved",eo.KEYTIP_UPDATED="keytipUpdated",eo.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",eo.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",eo.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",eo.ENTER_KEYTIP_MODE="enterKeytipMode",eo.EXIT_KEYTIP_MODE="exitKeytipMode"})(KeytipEvents||(KeytipEvents={}));var KeytipManager=function(){function eo(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return eo.getInstance=function(){return this._instance},eo.prototype.init=function(to){this.delayUpdatingKeytipChange=to},eo.prototype.register=function(to,ro){ro===void 0&&(ro=!1);var no=to;ro||(no=this.addParentOverflow(to),this.sequenceMapping[no.keySequences.toString()]=no);var oo=this._getUniqueKtp(no);if(ro?this.persistedKeytips[oo.uniqueID]=oo:this.keytips[oo.uniqueID]=oo,this.inKeytipMode||!this.delayUpdatingKeytipChange){var io=ro?KeytipEvents.PERSISTED_KEYTIP_ADDED:KeytipEvents.KEYTIP_ADDED;EventGroup.raise(this,io,{keytip:no,uniqueID:oo.uniqueID})}return oo.uniqueID},eo.prototype.update=function(to,ro){var no=this.addParentOverflow(to),oo=this._getUniqueKtp(no,ro),io=this.keytips[ro];io&&(oo.keytip.visible=io.keytip.visible,this.keytips[ro]=oo,delete this.sequenceMapping[io.keytip.keySequences.toString()],this.sequenceMapping[oo.keytip.keySequences.toString()]=oo.keytip,(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&EventGroup.raise(this,KeytipEvents.KEYTIP_UPDATED,{keytip:oo.keytip,uniqueID:oo.uniqueID}))},eo.prototype.unregister=function(to,ro,no){no===void 0&&(no=!1),no?delete this.persistedKeytips[ro]:delete this.keytips[ro],!no&&delete this.sequenceMapping[to.keySequences.toString()];var oo=no?KeytipEvents.PERSISTED_KEYTIP_REMOVED:KeytipEvents.KEYTIP_REMOVED;(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&EventGroup.raise(this,oo,{keytip:to,uniqueID:ro})},eo.prototype.enterKeytipMode=function(){EventGroup.raise(this,KeytipEvents.ENTER_KEYTIP_MODE)},eo.prototype.exitKeytipMode=function(){EventGroup.raise(this,KeytipEvents.EXIT_KEYTIP_MODE)},eo.prototype.getKeytips=function(){var to=this;return Object.keys(this.keytips).map(function(ro){return to.keytips[ro].keytip})},eo.prototype.addParentOverflow=function(to){var ro=__spreadArray$1([],to.keySequences,!0);if(ro.pop(),ro.length!==0){var no=this.sequenceMapping[ro.toString()];if(no&&no.overflowSetSequence)return __assign$4(__assign$4({},to),{overflowSetSequence:no.overflowSetSequence})}return to},eo.prototype.menuExecute=function(to,ro){EventGroup.raise(this,KeytipEvents.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:to,keytipSequences:ro})},eo.prototype._getUniqueKtp=function(to,ro){return ro===void 0&&(ro=getId()),{keytip:__assign$4({},to),uniqueID:ro}},eo._instance=new eo,eo}();function sequencesToID(eo){return eo.reduce(function(to,ro){return to+KTP_SEPARATOR+ro.split("").join(KTP_SEPARATOR)},KTP_PREFIX)}function mergeOverflows(eo,to){var ro=to.length,no=__spreadArray$1([],to,!0).pop(),oo=__spreadArray$1([],eo,!0);return addElementAtIndex(oo,ro-1,no)}function getAriaDescribedBy(eo){var to=" "+KTP_LAYER_ID;return eo.length?to+" "+sequencesToID(eo):to}function useKeytipData(eo){var to=reactExports.useRef(),ro=eo.keytipProps?__assign$4({disabled:eo.disabled},eo.keytipProps):void 0,no=useConst$1(KeytipManager.getInstance()),oo=usePrevious(eo);useIsomorphicLayoutEffect(function(){to.current&&ro&&((oo==null?void 0:oo.keytipProps)!==eo.keytipProps||(oo==null?void 0:oo.disabled)!==eo.disabled)&&no.update(ro,to.current)}),useIsomorphicLayoutEffect(function(){return ro&&(to.current=no.register(ro)),function(){ro&&no.unregister(ro,to.current)}},[]);var io={ariaDescribedBy:void 0,keytipId:void 0};return ro&&(io=getKeytipData(no,ro,eo.ariaDescribedBy)),io}function getKeytipData(eo,to,ro){var no=eo.addParentOverflow(to),oo=mergeAriaAttributeValues(ro,getAriaDescribedBy(no.keySequences)),io=__spreadArray$1([],no.keySequences,!0);no.overflowSetSequence&&(io=mergeOverflows(io,no.overflowSetSequence));var so=sequencesToID(io);return{ariaDescribedBy:oo,keytipId:so}}var KeytipData=function(eo){var to,ro=eo.children,no=__rest$1(eo,["children"]),oo=useKeytipData(no),io=oo.keytipId,so=oo.ariaDescribedBy;return ro((to={},to[DATAKTP_TARGET]=io,to[DATAKTP_EXECUTE_TARGET]=io,to["aria-describedby"]=so,to))},ContextualMenuAnchor=function(eo){__extends$3(to,eo);function to(){var ro=eo!==null&&eo.apply(this,arguments)||this;return ro._anchor=reactExports.createRef(),ro._getMemoizedMenuButtonKeytipProps=memoizeFunction(function(no){return __assign$4(__assign$4({},no),{hasMenu:!0})}),ro._getSubmenuTarget=function(){return ro._anchor.current?ro._anchor.current:void 0},ro._onItemClick=function(no){var oo=ro.props,io=oo.item,so=oo.onItemClick;so&&so(io,no)},ro._renderAriaDescription=function(no,oo){return no?reactExports.createElement("span",{id:ro._ariaDescriptionId,className:oo},no):null},ro}return to.prototype.render=function(){var ro=this,no=this.props,oo=no.item,io=no.classNames,so=no.index,ao=no.focusableElementIndex,lo=no.totalItemCount,uo=no.hasCheckmarks,co=no.hasIcons,fo=no.expandedMenuItemKey,po=no.onItemClick,ho=no.openSubMenu,mo=no.dismissSubMenu,vo=no.dismissMenu,bo=ContextualMenuItem;this.props.item.contextualMenuItemAs&&(bo=composeComponentAs(this.props.item.contextualMenuItemAs,bo)),this.props.contextualMenuItemAs&&(bo=composeComponentAs(this.props.contextualMenuItemAs,bo));var xo=oo.rel;oo.target&&oo.target.toLowerCase()==="_blank"&&(xo=xo||"nofollow noopener noreferrer");var _o=hasSubmenu(oo),So=getNativeProps(oo,anchorProperties),Eo=isItemDisabled(oo),ko=oo.itemProps,wo=oo.ariaDescription,Co=oo.keytipProps;Co&&_o&&(Co=this._getMemoizedMenuButtonKeytipProps(Co)),wo&&(this._ariaDescriptionId=getId());var Ro=mergeAriaAttributeValues(oo.ariaDescribedBy,wo?this._ariaDescriptionId:void 0,So["aria-describedby"]),Ao={"aria-describedby":Ro};return reactExports.createElement("div",null,reactExports.createElement(KeytipData,{keytipProps:oo.keytipProps,ariaDescribedBy:Ro,disabled:Eo},function(Io){return reactExports.createElement("a",__assign$4({},Ao,So,Io,{ref:ro._anchor,href:oo.href,target:oo.target,rel:xo,className:io.root,role:"menuitem","aria-haspopup":_o||void 0,"aria-expanded":_o?oo.key===fo:void 0,"aria-posinset":ao+1,"aria-setsize":lo,"aria-disabled":isItemDisabled(oo),style:oo.style,onClick:ro._onItemClick,onMouseEnter:ro._onItemMouseEnter,onMouseLeave:ro._onItemMouseLeave,onMouseMove:ro._onItemMouseMove,onKeyDown:_o?ro._onItemKeyDown:void 0}),reactExports.createElement(bo,__assign$4({componentRef:oo.componentRef,item:oo,classNames:io,index:so,onCheckmarkClick:uo&&po?po:void 0,hasIcons:co,openSubMenu:ho,dismissSubMenu:mo,dismissMenu:vo,getSubmenuTarget:ro._getSubmenuTarget},ko)),ro._renderAriaDescription(wo,io.screenReaderText))}))},to}(ContextualMenuItemWrapper),ContextualMenuButton=function(eo){__extends$3(to,eo);function to(){var ro=eo!==null&&eo.apply(this,arguments)||this;return ro._btn=reactExports.createRef(),ro._getMemoizedMenuButtonKeytipProps=memoizeFunction(function(no){return __assign$4(__assign$4({},no),{hasMenu:!0})}),ro._renderAriaDescription=function(no,oo){return no?reactExports.createElement("span",{id:ro._ariaDescriptionId,className:oo},no):null},ro._getSubmenuTarget=function(){return ro._btn.current?ro._btn.current:void 0},ro}return to.prototype.render=function(){var ro=this,no=this.props,oo=no.item,io=no.classNames,so=no.index,ao=no.focusableElementIndex,lo=no.totalItemCount,uo=no.hasCheckmarks,co=no.hasIcons,fo=no.contextualMenuItemAs,po=no.expandedMenuItemKey,ho=no.onItemMouseDown,mo=no.onItemClick,vo=no.openSubMenu,bo=no.dismissSubMenu,xo=no.dismissMenu,_o=ContextualMenuItem;oo.contextualMenuItemAs&&(_o=composeComponentAs(oo.contextualMenuItemAs,_o)),fo&&(_o=composeComponentAs(fo,_o));var So=getIsChecked(oo),Eo=So!==null,ko=getMenuItemAriaRole(oo),wo=hasSubmenu(oo),Co=oo.itemProps,Ro=oo.ariaLabel,Ao=oo.ariaDescription,Io=getNativeProps(oo,buttonProperties);delete Io.disabled;var $o=oo.role||ko;Ao&&(this._ariaDescriptionId=getId());var Bo=mergeAriaAttributeValues(oo.ariaDescribedBy,Ao?this._ariaDescriptionId:void 0,Io["aria-describedby"]),Mo={className:io.root,onClick:this._onItemClick,onKeyDown:wo?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(jo){return ho?ho(oo,jo):void 0},onMouseMove:this._onItemMouseMove,href:oo.href,title:oo.title,"aria-label":Ro,"aria-describedby":Bo,"aria-haspopup":wo||void 0,"aria-expanded":wo?oo.key===po:void 0,"aria-posinset":ao+1,"aria-setsize":lo,"aria-disabled":isItemDisabled(oo),"aria-checked":($o==="menuitemcheckbox"||$o==="menuitemradio")&&Eo?!!So:void 0,"aria-selected":$o==="menuitem"&&Eo?!!So:void 0,role:$o,style:oo.style},Ho=oo.keytipProps;return Ho&&wo&&(Ho=this._getMemoizedMenuButtonKeytipProps(Ho)),reactExports.createElement(KeytipData,{keytipProps:Ho,ariaDescribedBy:Bo,disabled:isItemDisabled(oo)},function(jo){return reactExports.createElement("button",__assign$4({ref:ro._btn},Io,Mo,jo),reactExports.createElement(_o,__assign$4({componentRef:oo.componentRef,item:oo,classNames:io,index:so,onCheckmarkClick:uo&&mo?mo:void 0,hasIcons:co,openSubMenu:vo,dismissSubMenu:bo,dismissMenu:xo,getSubmenuTarget:ro._getSubmenuTarget},Co)),ro._renderAriaDescription(Ao,io.screenReaderText))})},to}(ContextualMenuItemWrapper),getStyles$4=function(eo){var to=eo.theme,ro=eo.getClassNames,no=eo.className;if(!to)throw new Error("Theme is undefined or null.");if(ro){var oo=ro(to);return{wrapper:[oo.wrapper],divider:[oo.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},no],divider:[{width:1,height:"100%",backgroundColor:to.palette.neutralTertiaryAlt}]}},getClassNames$4=classNamesFunction(),VerticalDividerBase=reactExports.forwardRef(function(eo,to){var ro=eo.styles,no=eo.theme,oo=eo.getClassNames,io=eo.className,so=getClassNames$4(ro,{theme:no,getClassNames:oo,className:io});return reactExports.createElement("span",{className:so.wrapper,ref:to},reactExports.createElement("span",{className:so.divider}))});VerticalDividerBase.displayName="VerticalDividerBase";var VerticalDivider=styled(VerticalDividerBase,getStyles$4,void 0,{scope:"VerticalDivider"}),TouchIdleDelay=500,ContextualMenuSplitButton=function(eo){__extends$3(to,eo);function to(ro){var no=eo.call(this,ro)||this;return no._getMemoizedMenuButtonKeytipProps=memoizeFunction(function(oo){return __assign$4(__assign$4({},oo),{hasMenu:!0})}),no._onItemKeyDown=function(oo){var io=no.props,so=io.item,ao=io.onItemKeyDown;oo.which===KeyCodes$1.enter?(no._executeItemClick(oo),oo.preventDefault(),oo.stopPropagation()):ao&&ao(so,oo)},no._getSubmenuTarget=function(){return no._splitButton},no._renderAriaDescription=function(oo,io){return oo?reactExports.createElement("span",{id:no._ariaDescriptionId,className:io},oo):null},no._onItemMouseEnterPrimary=function(oo){var io=no.props,so=io.item,ao=io.onItemMouseEnter;ao&&ao(__assign$4(__assign$4({},so),{subMenuProps:void 0,items:void 0}),oo,no._splitButton)},no._onItemMouseEnterIcon=function(oo){var io=no.props,so=io.item,ao=io.onItemMouseEnter;ao&&ao(so,oo,no._splitButton)},no._onItemMouseMovePrimary=function(oo){var io=no.props,so=io.item,ao=io.onItemMouseMove;ao&&ao(__assign$4(__assign$4({},so),{subMenuProps:void 0,items:void 0}),oo,no._splitButton)},no._onItemMouseMoveIcon=function(oo){var io=no.props,so=io.item,ao=io.onItemMouseMove;ao&&ao(so,oo,no._splitButton)},no._onIconItemClick=function(oo){var io=no.props,so=io.item,ao=io.onItemClickBase;ao&&ao(so,oo,no._splitButton?no._splitButton:oo.currentTarget)},no._executeItemClick=function(oo){var io=no.props,so=io.item,ao=io.executeItemClick,lo=io.onItemClick;if(!(so.disabled||so.isDisabled)){if(no._processingTouch&&!so.canCheck&&lo)return lo(so,oo);ao&&ao(so,oo)}},no._onTouchStart=function(oo){no._splitButton&&!("onpointerdown"in no._splitButton)&&no._handleTouchAndPointerEvent(oo)},no._onPointerDown=function(oo){oo.pointerType==="touch"&&(no._handleTouchAndPointerEvent(oo),oo.preventDefault(),oo.stopImmediatePropagation())},no._async=new Async(no),no._events=new EventGroup(no),no._dismissLabelId=getId(),no}return to.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},to.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},to.prototype.render=function(){var ro=this,no,oo=this.props,io=oo.item,so=oo.classNames,ao=oo.index,lo=oo.focusableElementIndex,uo=oo.totalItemCount,co=oo.hasCheckmarks,fo=oo.hasIcons,po=oo.onItemMouseLeave,ho=oo.expandedMenuItemKey,mo=hasSubmenu(io),vo=io.keytipProps;vo&&(vo=this._getMemoizedMenuButtonKeytipProps(vo));var bo=io.ariaDescription;bo&&(this._ariaDescriptionId=getId());var xo=(no=getIsChecked(io))!==null&&no!==void 0?no:void 0;return reactExports.createElement(KeytipData,{keytipProps:vo,disabled:isItemDisabled(io)},function(_o){return reactExports.createElement("div",{"data-ktp-target":_o["data-ktp-target"],ref:function(So){return ro._splitButton=So},role:getMenuItemAriaRole(io),"aria-label":io.ariaLabel,className:so.splitContainer,"aria-disabled":isItemDisabled(io),"aria-expanded":mo?io.key===ho:void 0,"aria-haspopup":!0,"aria-describedby":mergeAriaAttributeValues(io.ariaDescribedBy,bo?ro._ariaDescriptionId:void 0,_o["aria-describedby"]),"aria-checked":xo,"aria-posinset":lo+1,"aria-setsize":uo,onMouseEnter:ro._onItemMouseEnterPrimary,onMouseLeave:po?po.bind(ro,__assign$4(__assign$4({},io),{subMenuProps:null,items:null})):void 0,onMouseMove:ro._onItemMouseMovePrimary,onKeyDown:ro._onItemKeyDown,onClick:ro._executeItemClick,onTouchStart:ro._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":io["aria-roledescription"]},ro._renderSplitPrimaryButton(io,so,ao,co,fo),ro._renderSplitDivider(io),ro._renderSplitIconButton(io,so,ao,_o),ro._renderAriaDescription(bo,so.screenReaderText))})},to.prototype._renderSplitPrimaryButton=function(ro,no,oo,io,so){var ao=this.props,lo=ao.contextualMenuItemAs,uo=lo===void 0?ContextualMenuItem:lo,co=ao.onItemClick,fo={key:ro.key,disabled:isItemDisabled(ro)||ro.primaryDisabled,name:ro.name,text:ro.text||ro.name,secondaryText:ro.secondaryText,className:no.splitPrimary,canCheck:ro.canCheck,isChecked:ro.isChecked,checked:ro.checked,iconProps:ro.iconProps,id:this._dismissLabelId,onRenderIcon:ro.onRenderIcon,data:ro.data,"data-is-focusable":!1},po=ro.itemProps;return reactExports.createElement("button",__assign$4({},getNativeProps(fo,buttonProperties)),reactExports.createElement(uo,__assign$4({"data-is-focusable":!1,item:fo,classNames:no,index:oo,onCheckmarkClick:io&&co?co:void 0,hasIcons:so},po)))},to.prototype._renderSplitDivider=function(ro){var no=ro.getSplitButtonVerticalDividerClassNames||getSplitButtonVerticalDividerClassNames;return reactExports.createElement(VerticalDivider,{getClassNames:no})},to.prototype._renderSplitIconButton=function(ro,no,oo,io){var so=this.props,ao=so.onItemMouseLeave,lo=so.onItemMouseDown,uo=so.openSubMenu,co=so.dismissSubMenu,fo=so.dismissMenu,po=ContextualMenuItem;this.props.item.contextualMenuItemAs&&(po=composeComponentAs(this.props.item.contextualMenuItemAs,po)),this.props.contextualMenuItemAs&&(po=composeComponentAs(this.props.contextualMenuItemAs,po));var ho={onClick:this._onIconItemClick,disabled:isItemDisabled(ro),className:no.splitMenu,subMenuProps:ro.subMenuProps,submenuIconProps:ro.submenuIconProps,split:!0,key:ro.key,"aria-labelledby":this._dismissLabelId},mo=__assign$4(__assign$4({},getNativeProps(ho,buttonProperties)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:ao?ao.bind(this,ro):void 0,onMouseDown:function(bo){return lo?lo(ro,bo):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":io["data-ktp-execute-target"],"aria-haspopup":!0}),vo=ro.itemProps;return reactExports.createElement("button",__assign$4({},mo),reactExports.createElement(po,__assign$4({componentRef:ro.componentRef,item:ho,classNames:no,index:oo,hasIcons:!1,openSubMenu:uo,dismissSubMenu:co,dismissMenu:fo,getSubmenuTarget:this._getSubmenuTarget},vo)))},to.prototype._handleTouchAndPointerEvent=function(ro){var no=this,oo=this.props.onTap;oo&&oo(ro),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){no._processingTouch=!1,no._lastTouchTimeoutId=void 0},TouchIdleDelay)},to}(ContextualMenuItemWrapper),ResponsiveMode;(function(eo){eo[eo.small=0]="small",eo[eo.medium=1]="medium",eo[eo.large=2]="large",eo[eo.xLarge=3]="xLarge",eo[eo.xxLarge=4]="xxLarge",eo[eo.xxxLarge=5]="xxxLarge",eo[eo.unknown=999]="unknown"})(ResponsiveMode||(ResponsiveMode={}));var RESPONSIVE_MAX_CONSTRAINT=[479,639,1023,1365,1919,99999999],_defaultMode,_lastMode;function getInitialResponsiveMode(){var eo;return(eo=_defaultMode??_lastMode)!==null&&eo!==void 0?eo:ResponsiveMode.large}function getWidthOfCurrentWindow(eo){try{return eo.document.documentElement.clientWidth}catch{return eo.innerWidth}}function getResponsiveMode(eo){var to=ResponsiveMode.small;if(eo){try{for(;getWidthOfCurrentWindow(eo)>RESPONSIVE_MAX_CONSTRAINT[to];)to++}catch{to=getInitialResponsiveMode()}_lastMode=to}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 to}var useResponsiveMode=function(eo,to){var ro=reactExports.useState(getInitialResponsiveMode()),no=ro[0],oo=ro[1],io=reactExports.useCallback(function(){var ao=getResponsiveMode(getWindow(eo.current));no!==ao&&oo(ao)},[eo,no]),so=useWindow();return useOnEvent(so,"resize",io),reactExports.useEffect(function(){to===void 0&&io()},[to]),to??no},MenuContext=reactExports.createContext({}),getClassNames$3=classNamesFunction(),getContextualMenuItemClassNames=classNamesFunction(),DEFAULT_PROPS$1={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:DirectionalHint.bottomAutoEdge,beakWidth:16};function getItemCount(eo){for(var to=0,ro=0,no=eo;ro0){var Ml=0;return reactExports.createElement("li",{role:"presentation",key:Yo.key||qs.key||"section-".concat(Po)},reactExports.createElement("div",__assign$4({},ys),reactExports.createElement("ul",{className:Uo.list,role:"presentation"},Yo.topDivider&&Ls(Po,Ko,!0,!0),vs&&zs(vs,qs.key||Po,Ko,qs.title),Yo.items.map(function(Rl,Cl){var Ul=Jo(Rl,Cl,Ml,getItemCount(Yo.items),zo,Do,Uo);if(Rl.itemType!==ContextualMenuItemType.Divider&&Rl.itemType!==ContextualMenuItemType.Header){var fu=Rl.customOnRenderListLength?Rl.customOnRenderListLength:1;Ml+=fu}return Ul}),Yo.bottomDivider&&Ls(Po,Ko,!1,!0))))}}},zs=function(qs,Ko,Uo,Po){return reactExports.createElement("li",{role:"presentation",title:Po,key:Ko,className:Uo.item},qs)},Ls=function(qs,Ko,Uo,Po){return Po||qs>0?reactExports.createElement("li",{role:"separator",key:"separator-"+qs+(Uo===void 0?"":Uo?"-top":"-bottom"),className:Ko.divider,"aria-hidden":"true"}):null},ga=function(qs,Ko,Uo,Po,zo,Do,Yo){if(qs.onRender)return qs.onRender(__assign$4({"aria-posinset":Po+1,"aria-setsize":zo},qs),lo);var vs=oo.contextualMenuItemAs,ys={item:qs,classNames:Ko,index:Uo,focusableElementIndex:Po,totalItemCount:zo,hasCheckmarks:Do,hasIcons:Yo,contextualMenuItemAs:vs,onItemMouseEnter:Xo,onItemMouseLeave:Qo,onItemMouseMove:Zo,onItemMouseDown,executeItemClick:Rs,onItemKeyDown:Go,expandedMenuItemKey:mo,openSubMenu:vo,dismissSubMenu:xo,dismissMenu:lo};if(qs.href){var hs=ContextualMenuAnchor;return qs.contextualMenuItemWrapperAs&&(hs=composeComponentAs(qs.contextualMenuItemWrapperAs,hs)),reactExports.createElement(hs,__assign$4({},ys,{onItemClick:Ts}))}if(qs.split&&hasSubmenu(qs)){var Is=ContextualMenuSplitButton;return qs.contextualMenuItemWrapperAs&&(Is=composeComponentAs(qs.contextualMenuItemWrapperAs,Is)),reactExports.createElement(Is,__assign$4({},ys,{onItemClick:xs,onItemClickBase:Os,onTap:Io}))}var Us=ContextualMenuButton;return qs.contextualMenuItemWrapperAs&&(Us=composeComponentAs(qs.contextualMenuItemWrapperAs,Us)),reactExports.createElement(Us,__assign$4({},ys,{onItemClick:xs,onItemClickBase:Os}))},Js=function(qs,Ko,Uo,Po,zo,Do){var Yo=ContextualMenuItem;qs.contextualMenuItemAs&&(Yo=composeComponentAs(qs.contextualMenuItemAs,Yo)),oo.contextualMenuItemAs&&(Yo=composeComponentAs(oo.contextualMenuItemAs,Yo));var vs=qs.itemProps,ys=qs.id,hs=vs&&getNativeProps(vs,divProperties);return reactExports.createElement("div",__assign$4({id:ys,className:Uo.header},hs,{style:qs.style}),reactExports.createElement(Yo,__assign$4({item:qs,classNames:Ko,index:Po,onCheckmarkClick:zo?xs:void 0,hasIcons:Do},vs)))},Zs=oo.isBeakVisible,$a=oo.items,Ll=oo.labelElementId,Kl=oo.id,Zl=oo.className,$l=oo.beakWidth,xa=oo.directionalHint,Sl=oo.directionalHintForRTL,cu=oo.alignTargetEdge,ks=oo.gapSpace,Es=oo.coverTarget,bs=oo.ariaLabel,ws=oo.doNotLayer,Gs=oo.target,Ks=oo.bounds,Ms=oo.useTargetWidth,Hs=oo.useTargetAsMinWidth,Qs=oo.directionalHintFixed,El=oo.shouldFocusOnMount,xl=oo.shouldFocusOnContainer,Ol=oo.title,ru=oo.styles,au=oo.theme,zl=oo.calloutProps,hu=oo.onRenderSubMenu,xu=hu===void 0?onDefaultRenderSubMenu:hu,Ql=oo.onRenderMenuList,Dl=Ql===void 0?function(qs,Ko){return As(qs,mu)}:Ql,gu=oo.focusZoneProps,lu=oo.getMenuClassNames,mu=lu?lu(au,Zl):getClassNames$3(ru,{theme:au,className:Zl}),ou=Fl($a);function Fl(qs){for(var Ko=0,Uo=qs;Ko0){var Iu=getItemCount($a),e1=mu.subComponentStyles?mu.subComponentStyles.callout:void 0;return reactExports.createElement(MenuContext.Consumer,null,function(qs){return reactExports.createElement(Callout,__assign$4({styles:e1,onRestoreFocus:po},zl,{target:Gs||qs.target,isBeakVisible:Zs,beakWidth:$l,directionalHint:xa,directionalHintForRTL:Sl,gapSpace:ks,coverTarget:Es,doNotLayer:ws,className:css$3("ms-ContextualMenu-Callout",zl&&zl.className),setInitialFocus:El,onDismiss:oo.onDismiss||qs.onDismiss,onScroll:Co,bounds:Ks,directionalHintFixed:Qs,alignTargetEdge:cu,hidden:oo.hidden||qs.hidden,ref:to}),reactExports.createElement("div",{style:$u,ref:io,id:Kl,className:mu.container,tabIndex:xl?0:-1,onKeyDown:Fo,onKeyUp:Oo,onFocusCapture:ko,"aria-label":bs,"aria-labelledby":Ll,role:"menu"},Ol&&reactExports.createElement("div",{className:mu.title}," ",Ol," "),$a&&$a.length?Ds(Dl({ariaLabel:bs,items:$a,totalItemCount:Iu,hasCheckmarks:Xs,hasIcons:ou,defaultMenuItemRenderer:function(Ko){return Cs(Ko,mu)},labelElementId:Ll},function(Ko,Uo){return As(Ko,mu)}),yl):null,vu&&xu(vu,onDefaultRenderSubMenu)),reactExports.createElement(FocusRects,null))})}else return null}),function(eo,to){return!to.shouldUpdateWhenHidden&&eo.hidden&&to.hidden?!0:shallowCompare(eo,to)});ContextualMenuBase.displayName="ContextualMenuBase";function isAltOrMeta(eo){return eo.which===KeyCodes$1.alt||eo.key==="Meta"}function onItemMouseDown(eo,to){var ro;(ro=eo.onMouseDown)===null||ro===void 0||ro.call(eo,eo,to)}function onDefaultRenderSubMenu(eo,to){throw Error("ContextualMenuBase: onRenderSubMenu callback is null or undefined. Please ensure to set `onRenderSubMenu` property either manually or with `styled` helper.")}function findItemByKeyFromItems(eo,to){for(var ro=0,no=to;ro=(Oo||ResponsiveMode.small)&&reactExports.createElement(Layer,__assign$4({ref:As},Ol),reactExports.createElement(Popup,__assign$4({role:Qs?"alertdialog":"dialog",ariaLabelledBy:$o,ariaDescribedBy:Mo,onDismiss:Co,shouldRestoreFocus:!_o,enableAriaHiddenSiblings:Zo,"aria-modal":!Go},Qo),reactExports.createElement("div",{className:xl.root,role:Go?void 0:"document"},!Go&&reactExports.createElement(Overlay,__assign$4({"aria-hidden":!0,isDarkThemed:wo,onClick:So?void 0:Co,allowTouchBodyScroll:lo},Ao)),qo?reactExports.createElement(DraggableZone,{handleSelector:qo.dragHandleSelector||"#".concat(Jo),preventDragSelector:"button",onStart:xu,onDragChange:Ql,onStop:Dl,position:$l},ou):ou)))||null});ModalBase.displayName="Modal";var Modal=styled(ModalBase,getStyles$2,void 0,{scope:"Modal",fields:["theme","styles","enableAriaHiddenSiblings"]});Modal.displayName="Modal";var assign$1=__assign$4;function withSlots(eo,to){for(var ro=[],no=2;no0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return _renderSlot(to[so],lo,no[so],no.slots&&no.slots[so],no._defaultStyles&&no._defaultStyles[so],no.theme)};ao.isSlot=!0,ro[so]=ao}};for(var io in to)oo(io);return ro}function _translateShorthand(eo,to){var ro,no;return typeof to=="string"||typeof to=="number"||typeof to=="boolean"?no=(ro={},ro[eo]=to,ro):no=to,no}function _constructFinalProps(eo,to){for(var ro=[],no=2;no2)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(ro.length===2)return{rowGap:_getValueUnitGap(_getThemedSpacing(ro[0],to)),columnGap:_getValueUnitGap(_getThemedSpacing(ro[1],to))};var no=_getValueUnitGap(_getThemedSpacing(eo,to));return{rowGap:no,columnGap:no}},parsePadding=function(eo,to){if(eo===void 0||typeof eo=="number"||eo==="")return eo;var ro=eo.split(" ");return ro.length<2?_getThemedSpacing(eo,to):ro.reduce(function(no,oo){return _getThemedSpacing(no,to)+" "+_getThemedSpacing(oo,to)})},nameMap={start:"flex-start",end:"flex-end"},GlobalClassNames={root:"ms-Stack",inner:"ms-Stack-inner",child:"ms-Stack-child"},styles$2=function(eo,to,ro){var no,oo,io,so,ao,lo,uo,co,fo,po,ho,mo,vo,bo=eo.className,xo=eo.disableShrink,_o=eo.enableScopedSelectors,So=eo.grow,Eo=eo.horizontal,ko=eo.horizontalAlign,wo=eo.reversed,Co=eo.verticalAlign,Ro=eo.verticalFill,Ao=eo.wrap,Io=getGlobalClassNames(GlobalClassNames,to),$o=ro&&ro.childrenGap?ro.childrenGap:eo.gap,Bo=ro&&ro.maxHeight?ro.maxHeight:eo.maxHeight,Mo=ro&&ro.maxWidth?ro.maxWidth:eo.maxWidth,Ho=ro&&ro.padding?ro.padding:eo.padding,jo=parseGap($o,to),Oo=jo.rowGap,Fo=jo.columnGap,Go="".concat(-.5*Fo.value).concat(Fo.unit),qo="".concat(-.5*Oo.value).concat(Oo.unit),Xo={textOverflow:"ellipsis"},Zo="> "+(_o?"."+GlobalClassNames.child:"*"),Qo=(no={},no["".concat(Zo,":not(.").concat(GlobalClassNames$1.root,")")]={flexShrink:0},no);return Ao?{root:[Io.root,{flexWrap:"wrap",maxWidth:Mo,maxHeight:Bo,width:"auto",overflow:"visible",height:"100%"},ko&&(oo={},oo[Eo?"justifyContent":"alignItems"]=nameMap[ko]||ko,oo),Co&&(io={},io[Eo?"alignItems":"justifyContent"]=nameMap[Co]||Co,io),bo,{display:"flex"},Eo&&{height:Ro?"100%":"auto"}],inner:[Io.inner,(so={display:"flex",flexWrap:"wrap",marginLeft:Go,marginRight:Go,marginTop:qo,marginBottom:qo,overflow:"visible",boxSizing:"border-box",padding:parsePadding(Ho,to),width:Fo.value===0?"100%":"calc(100% + ".concat(Fo.value).concat(Fo.unit,")"),maxWidth:"100vw"},so[Zo]=__assign$4({margin:"".concat(.5*Oo.value).concat(Oo.unit," ").concat(.5*Fo.value).concat(Fo.unit)},Xo),so),xo&&Qo,ko&&(ao={},ao[Eo?"justifyContent":"alignItems"]=nameMap[ko]||ko,ao),Co&&(lo={},lo[Eo?"alignItems":"justifyContent"]=nameMap[Co]||Co,lo),Eo&&(uo={flexDirection:wo?"row-reverse":"row",height:Oo.value===0?"100%":"calc(100% + ".concat(Oo.value).concat(Oo.unit,")")},uo[Zo]={maxWidth:Fo.value===0?"100%":"calc(100% - ".concat(Fo.value).concat(Fo.unit,")")},uo),!Eo&&(co={flexDirection:wo?"column-reverse":"column",height:"calc(100% + ".concat(Oo.value).concat(Oo.unit,")")},co[Zo]={maxHeight:Oo.value===0?"100%":"calc(100% - ".concat(Oo.value).concat(Oo.unit,")")},co)]}:{root:[Io.root,(fo={display:"flex",flexDirection:Eo?wo?"row-reverse":"row":wo?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:Ro?"100%":"auto",maxWidth:Mo,maxHeight:Bo,padding:parsePadding(Ho,to),boxSizing:"border-box"},fo[Zo]=Xo,fo),xo&&Qo,So&&{flexGrow:So===!0?1:So},ko&&(po={},po[Eo?"justifyContent":"alignItems"]=nameMap[ko]||ko,po),Co&&(ho={},ho[Eo?"alignItems":"justifyContent"]=nameMap[Co]||Co,ho),Eo&&Fo.value>0&&(mo={},mo[wo?"".concat(Zo,":not(:last-child)"):"".concat(Zo,":not(:first-child)")]={marginLeft:"".concat(Fo.value).concat(Fo.unit)},mo),!Eo&&Oo.value>0&&(vo={},vo[wo?"".concat(Zo,":not(:last-child)"):"".concat(Zo,":not(:first-child)")]={marginTop:"".concat(Oo.value).concat(Oo.unit)},vo),bo]}},StackView=function(eo){var to=eo.as,ro=to===void 0?"div":to,no=eo.disableShrink,oo=no===void 0?!1:no,io=eo.doNotRenderFalsyValues,so=io===void 0?!1:io,ao=eo.enableScopedSelectors,lo=ao===void 0?!1:ao,uo=eo.wrap,co=__rest$1(eo,["as","disableShrink","doNotRenderFalsyValues","enableScopedSelectors","wrap"]),fo=_processStackChildren(eo.children,{disableShrink:oo,enableScopedSelectors:lo,doNotRenderFalsyValues:so}),po=getNativeProps(co,htmlElementProperties),ho=getSlots(eo,{root:ro,inner:"div"});return uo?withSlots(ho.root,__assign$4({},po),withSlots(ho.inner,null,fo)):withSlots(ho.root,__assign$4({},po),fo)};function _processStackChildren(eo,to){var ro=to.disableShrink,no=to.enableScopedSelectors,oo=to.doNotRenderFalsyValues,io=reactExports.Children.toArray(eo);return io=reactExports.Children.map(io,function(so){if(!so)return oo?null:so;if(!reactExports.isValidElement(so))return so;if(so.type===reactExports.Fragment)return so.props.children?_processStackChildren(so.props.children,{disableShrink:ro,enableScopedSelectors:no,doNotRenderFalsyValues:oo}):null;var ao=so,lo={};_isStackItem(so)&&(lo={shrink:!ro});var uo=ao.props.className;return reactExports.cloneElement(ao,__assign$4(__assign$4(__assign$4(__assign$4({},lo),ao.props),uo&&{className:uo}),no&&{className:css$3(GlobalClassNames.child,uo)}))}),io}function _isStackItem(eo){return!!eo&&typeof eo=="object"&&!!eo.type&&eo.type.displayName===StackItem.displayName}var StackStatics={Item:StackItem},Stack$1=createComponent(StackView,{displayName:"Stack",styles:styles$2,statics:StackStatics});const AzureContentSafetyIcon="data:image/svg+xml,%3csvg%20id='uuid-40011f3f-22d0-4882-8376-afe2ef514a7e'%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%3e%3cdefs%3e%3clinearGradient%20id='uuid-5c4dfc33-1236-40a5-b487-5c8d33e4013b'%20x1='12.062'%20y1='5.427'%20x2='12.062'%20y2='3.991'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2376bc2d'/%3e%3cstop%20offset='1'%20stop-color='%2386d633'/%3e%3c/linearGradient%3e%3clinearGradient%20id='uuid-5dc2ae3c-3a23-47ff-9dc1-e087ff0e2742'%20x1='2.902'%20y1='6.762'%20x2='9.455'%20y2='6.762'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23e6e6e6'/%3e%3cstop%20offset='1'%20stop-color='%23999'/%3e%3c/linearGradient%3e%3clinearGradient%20id='uuid-d781b8b0-afbe-4f6e-a478-ee1974441cbf'%20x1='-1288.505'%20y1='-521.774'%20x2='-1284.777'%20y2='-521.774'%20gradientTransform='translate(-512.319%201291.819)%20rotate(90)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2386d633'/%3e%3cstop%20offset='1'%20stop-color='%2376bc2d'/%3e%3c/linearGradient%3e%3clinearGradient%20id='uuid-efb884ed-afc6-4667-82f2-34983e82b107'%20x1='2.902'%20y1='11.544'%20x2='9.455'%20y2='11.544'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23e6e6e6'/%3e%3cstop%20offset='1'%20stop-color='%23999'/%3e%3c/linearGradient%3e%3clinearGradient%20id='uuid-e8c8c19d-aa6c-48ed-823e-cfec5a014d78'%20x1='-274.183'%20y1='-521.774'%20x2='-279.397'%20y2='-521.774'%20gradientTransform='translate(-512.319%20-263.224)%20rotate(-90)%20scale(1%20-1)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23faa21d'/%3e%3cstop%20offset='.999'%20stop-color='%23f78d1e'/%3e%3c/linearGradient%3e%3clinearGradient%20id='uuid-7a6a88dd-1778-43da-9238-45bfc5a17b3e'%20x1='-140.646'%20y1='13.626'%20x2='-143.764'%20y2='4.784'%20gradientTransform='translate(149.182)%20skewX(-19.425)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2350e6ff'/%3e%3cstop%20offset='1'%20stop-color='%239cebff'/%3e%3c/linearGradient%3e%3c/defs%3e%3cpath%20d='m16.62,4.541l-2.765-1.597c-.129-.075-.291.019-.291.168v.822h-6.158v1.55h6.158v.822c0,.149.161.242.291.168l2.765-1.597c.129-.075.129-.261,0-.336Z'%20fill='url(%23uuid-5c4dfc33-1236-40a5-b487-5c8d33e4013b)'/%3e%3cpath%20d='m4.495,9.616h-1.592v-4.634c-.002-.591.476-1.071,1.067-1.073,0,0,.001,0,.002,0h5.484v1.592h-4.96v4.115Z'%20fill='url(%23uuid-5dc2ae3c-3a23-47ff-9dc1-e087ff0e2742)'/%3e%3ccircle%20cx='9.455'%20cy='4.603'%20r='2.607'%20fill='url(%23uuid-d781b8b0-afbe-4f6e-a478-ee1974441cbf)'/%3e%3cpath%20d='m9.455,14.4H3.971c-.591,0-1.07-.48-1.069-1.071,0,0,0-.001,0-.002v-4.638h1.592v4.115h4.96v1.596Z'%20fill='url(%23uuid-efb884ed-afc6-4667-82f2-34983e82b107)'/%3e%3ccircle%20cx='9.455'%20cy='13.397'%20r='2.607'%20fill='url(%23uuid-e8c8c19d-aa6c-48ed-823e-cfec5a014d78)'/%3e%3cpath%20d='m5.008,12.097H1.696c-.272,0-.453-.301-.405-.673l.584-4.534c.048-.372.307-.673.578-.673h3.312c.272,0,.453.301.405.673l-.584,4.534c-.048.372-.307.673-.578.673Z'%20fill='url(%23uuid-7a6a88dd-1778-43da-9238-45bfc5a17b3e)'/%3e%3cpath%20d='m.362,3.138C.162,3.138,0,2.976,0,2.777h0V.361C0,.162.162,0,.362,0h2.266c.2,0,.362.162.362.361,0,.199-.162.361-.362.361H.724v2.053c0,.199-.161.362-.361.362,0,0,0,0-.001,0Zm17.638-.361V.361C18,.162,17.838,0,17.638,0h-2.266c-.2,0-.362.162-.362.361s.162.361.362.361h1.904v2.053c0,.199.162.361.362.361.2,0,.361-.162.362-.361h0ZM2.99,17.639c0-.199-.162-.361-.362-.361H.724v-2.053c0-.199-.162-.361-.362-.361-.2,0-.362.162-.362.361v2.415c0,.199.163.36.362.36h2.266c.2,0,.362-.162.362-.361Zm15.01.001v-2.415c0-.199-.162-.361-.362-.361-.2,0-.361.162-.362.361v2.053h-1.904c-.2,0-.362.162-.362.362,0,.199.162.361.362.361h2.266c.199,0,.361-.161.362-.36Z'%20fill='%2376bc2d'/%3e%3c/svg%3e",BingLogoIcon="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20234%20343.41'%3e%3cdefs%3e%3clinearGradient%20id='a'%20x1='-29.25'%20y1='662.02'%20x2='-23.09'%20y2='658.46'%20gradientTransform='matrix(24.45,%200,%200,%20-24.45,%20967.18,%2016420.97)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2337bdff'/%3e%3cstop%20offset='0.18'%20stop-color='%2333bffd'/%3e%3cstop%20offset='0.36'%20stop-color='%2328c5f5'/%3e%3cstop%20offset='0.53'%20stop-color='%2315d0e9'/%3e%3cstop%20offset='0.55'%20stop-color='%2312d1e7'/%3e%3cstop%20offset='0.59'%20stop-color='%231cd2e5'/%3e%3cstop%20offset='0.77'%20stop-color='%2342d8dc'/%3e%3cstop%20offset='0.91'%20stop-color='%2359dbd6'/%3e%3cstop%20offset='1'%20stop-color='%2362dcd4'/%3e%3c/linearGradient%3e%3clinearGradient%20id='b'%20x1='-32.86'%20y1='656.68'%20x2='-23.89'%20y2='656.68'%20gradientTransform='matrix(24.45,%200,%200,%20-24.45,%20967.18,%2016420.97)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2339d2ff'/%3e%3cstop%20offset='0.15'%20stop-color='%2338cefe'/%3e%3cstop%20offset='0.29'%20stop-color='%2335c3fa'/%3e%3cstop%20offset='0.43'%20stop-color='%232fb0f3'/%3e%3cstop%20offset='0.55'%20stop-color='%23299aeb'/%3e%3cstop%20offset='0.58'%20stop-color='%232692ec'/%3e%3cstop%20offset='0.76'%20stop-color='%231a6cf1'/%3e%3cstop%20offset='0.91'%20stop-color='%231355f4'/%3e%3cstop%20offset='1'%20stop-color='%23104cf5'/%3e%3c/linearGradient%3e%3clinearGradient%20id='c'%20x1='-31.2'%20y1='655.9'%20x2='-31.2'%20y2='667.89'%20gradientTransform='matrix(24.45,%200,%200,%20-24.45,%20967.18,%2016420.97)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%231b48ef'/%3e%3cstop%20offset='0.12'%20stop-color='%231c51f0'/%3e%3cstop%20offset='0.32'%20stop-color='%231e69f5'/%3e%3cstop%20offset='0.57'%20stop-color='%232190fb'/%3e%3cstop%20offset='1'%20stop-color='%2326b8f4'/%3e%3c/linearGradient%3e%3cclipPath%20id='d'%20transform='translate(-163%20-82.94)'%3e%3crect%20x='163.02'%20y='288.38'%20width='227.17'%20height='140.76'%20style='fill:none'/%3e%3c/clipPath%3e%3clinearGradient%20id='e'%20x1='-31.08'%20y1='654.47'%20x2='-25.54'%20y2='660'%20gradientTransform='matrix(24.45,%200,%200,%20-24.45,%20967.18,%2016420.97)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23fff'/%3e%3cstop%20offset='0.37'%20stop-color='%23fdfdfd'/%3e%3cstop%20offset='0.51'%20stop-color='%23f6f6f6'/%3e%3cstop%20offset='0.6'%20stop-color='%23ebebeb'/%3e%3cstop%20offset='0.68'%20stop-color='%23dadada'/%3e%3cstop%20offset='0.75'%20stop-color='%23c4c4c4'/%3e%3cstop%20offset='0.81'%20stop-color='%23a8a8a8'/%3e%3cstop%20offset='0.86'%20stop-color='%23888'/%3e%3cstop%20offset='0.91'%20stop-color='%23626262'/%3e%3cstop%20offset='0.95'%20stop-color='%23373737'/%3e%3cstop%20offset='0.99'%20stop-color='%23090909'/%3e%3cstop%20offset='1'/%3e%3c/linearGradient%3e%3cclipPath%20id='f'%20transform='translate(-163%20-82.94)'%3e%3crect%20x='163.02'%20y='82.87'%20width='86.51'%20height='302.96'%20style='fill:none'/%3e%3c/clipPath%3e%3clinearGradient%20id='g'%20x1='-31.2'%20y1='668.1'%20x2='-31.2'%20y2='656.02'%20xlink:href='%23e'/%3e%3c/defs%3e%3ctitle%3ebing-logo%3c/title%3e%3cpath%20d='M397,303.4a92.73,92.73,0,0,1-24.84,63.16,41.81,41.81,0,0,0,4.5-6,38.11,38.11,0,0,0,2.69-5.08,17.7,17.7,0,0,0,.74-1.78,17.25,17.25,0,0,0,.65-1.78c.21-.56.39-1.14.55-1.72s.33-1.2.46-1.81l.07-.21c.14-.6.25-1.2.37-1.81s.23-1.25.33-1.88v0c.09-.58.16-1.16.21-1.76a40,40,0,0,0,.21-4.13A41.41,41.41,0,0,0,377,317.11a36.51,36.51,0,0,0-2.85-4.17,39.93,39.93,0,0,0-4-4.43,41.45,41.45,0,0,0-12.36-8.28,38.78,38.78,0,0,0-6.22-2.14l-.09,0-.74-.25-10.81-3.71v0l-28.27-9.72c-.09,0-.21,0-.28,0l-1.77-.65A26.23,26.23,0,0,1,296.29,272L286,245.62l-11.83-30.16-2.27-5.82-.58-1.18a13.35,13.35,0,0,1-1-5.08,12,12,0,0,1,0-1.35,13.19,13.19,0,0,1,18.26-10.79l52.69,27,10.39,5.31A91.11,91.11,0,0,1,367,235a92.45,92.45,0,0,1,29.79,61.87C396.91,299.06,397,301.22,397,303.4Z'%20transform='translate(-163%20-82.94)'%20style='fill:url(%23a)'/%3e%3cpath%20d='M382.91,338.56a42.8,42.8,0,0,1-.72,7.82c-.14.67-.28,1.35-.44,2-.3,1.2-.62,2.36-1,3.53-.21.6-.42,1.2-.65,1.78s-.49,1.18-.74,1.78a38.1,38.1,0,0,1-2.69,5.08,42.22,42.22,0,0,1-4.5,6c-7.68,8.49-33.75,23.63-43.36,29.79l-21.33,13c-15.63,9.63-30.41,16.45-49,16.91-.88,0-1.74,0-2.6,0-1.2,0-2.39,0-3.57-.07a92.86,92.86,0,0,1-74.92-43.17,91.58,91.58,0,0,1-13.68-38.67,41.13,41.13,0,0,0,60,28.95l.14-.07,2.09-1.25,8.49-5,10.81-6.4v-.3l1.39-.83,96.71-57.29,7.44-4.41.74.25.09,0a38.31,38.31,0,0,1,6.22,2.14,41.45,41.45,0,0,1,12.36,8.28,40,40,0,0,1,4,4.43,37,37,0,0,1,2.85,4.17A41.64,41.64,0,0,1,382.91,338.56Z'%20transform='translate(-163%20-82.94)'%20style='fill:url(%23b)'/%3e%3cpath%20d='M245.24,147.35l0,213.29L234.39,367l-8.5,5-2.09,1.27a.24.24,0,0,0-.13.06,41.13,41.13,0,0,1-60-28.94c-.16-.89-.28-1.81-.38-2.7-.13-1.68-.22-3.33-.25-5v-240a13.77,13.77,0,0,1,21.46-11.41l42.07,27.48a5.55,5.55,0,0,0,.73.51A41.14,41.14,0,0,1,245.24,147.35Z'%20transform='translate(-163%20-82.94)'%20style='fill:url(%23c)'/%3e%3cg%20style='opacity:0.14900000393390656;isolation:isolate'%3e%3cg%20style='clip-path:url(%23d)'%3e%3cpath%20d='M382.91,338.56a42.8,42.8,0,0,1-.72,7.82c-.14.67-.28,1.35-.44,2-.3,1.2-.62,2.36-1,3.53-.21.6-.42,1.2-.65,1.78s-.49,1.18-.74,1.78a38.1,38.1,0,0,1-2.69,5.08,41.81,41.81,0,0,1-4.5,6c-7.68,8.49-33.75,23.63-43.36,29.79l-21.33,13c-15.63,9.63-30.41,16.45-49,16.91-.88,0-1.74,0-2.6,0-1.2,0-2.39,0-3.57-.07a92.86,92.86,0,0,1-74.92-43.17,91.58,91.58,0,0,1-13.68-38.67,41.13,41.13,0,0,0,60,28.95l.14-.07,2.09-1.25,8.49-5,10.81-6.4v-.3l1.39-.83,96.71-57.29,7.44-4.41.74.25.09,0a38.31,38.31,0,0,1,6.22,2.14,41.45,41.45,0,0,1,12.36,8.28,40,40,0,0,1,4,4.43,37,37,0,0,1,2.85,4.17A41.64,41.64,0,0,1,382.91,338.56Z'%20transform='translate(-163%20-82.94)'%20style='fill:url(%23e)'/%3e%3c/g%3e%3c/g%3e%3cg%20style='opacity:0.09799999743700027;isolation:isolate'%3e%3cg%20style='clip-path:url(%23f)'%3e%3cpath%20d='M245.24,147.35l0,213.29L234.39,367l-8.5,5-2.09,1.27a.24.24,0,0,0-.13.06,41.13,41.13,0,0,1-60-28.94c-.16-.89-.28-1.81-.38-2.7-.13-1.68-.22-3.33-.25-5v-240a13.77,13.77,0,0,1,21.46-11.41l42.07,27.48a5.55,5.55,0,0,0,.73.51A41.14,41.14,0,0,1,245.24,147.35Z'%20transform='translate(-163%20-82.94)'%20style='fill:url(%23g)'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",DefaultIcon=()=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px",viewBox:"0 0 18 18",children:[jsxRuntimeExports.jsxs("defs",{children:[jsxRuntimeExports.jsxs("linearGradient",{id:"a5efbc52-c9a4-425f-9d94-50e000195659",x1:"9",y1:"18.967",x2:"9",y2:"3.398",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{offset:"0",stopColor:"#0078d4"}),jsxRuntimeExports.jsx("stop",{offset:"0.156",stopColor:"#1380da"}),jsxRuntimeExports.jsx("stop",{offset:"0.528",stopColor:"#3c91e5"}),jsxRuntimeExports.jsx("stop",{offset:"0.822",stopColor:"#559cec"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#5ea0ef"})]}),jsxRuntimeExports.jsxs("linearGradient",{id:"a110d41d-e4ca-48ee-9efe-328e60a20dcc",x1:"9",y1:"5.019",x2:"9",y2:"13.676",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{offset:"0.22",stopColor:"#fff"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#e6e6e6"})]}),jsxRuntimeExports.jsxs("linearGradient",{id:"bcf81335-a15c-4e8a-85c4-cb14c4ef74b0",x1:"8.991",y1:"2.883",x2:"8.991",y2:"11.32",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{offset:"0.22",stopColor:"#fff"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#e6e6e6"})]})]}),jsxRuntimeExports.jsx("g",{id:"b5d797c5-507f-4358-b61e-ca040c36ef52",children:jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.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)"}),jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.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)"}),jsxRuntimeExports.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)"})]})]})})]}),OpenAIIcon$1=()=>jsxRuntimeExports.jsxs("svg",{fill:"currentColor",width:"16px",height:"16px",viewBox:"0 0 2048 2048",role:"img",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("title",{children:"OpenAI icon"}),jsxRuntimeExports.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"})]}),PromptIcon=()=>jsxRuntimeExports.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.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"})}),PythonIcon=()=>jsxRuntimeExports.jsxs("svg",{width:"16px",height:"16px",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.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"}),jsxRuntimeExports.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"})]}),TypeScriptIcon="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",VectorSearchIcon=()=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px",viewBox:"0 0 18 18",role:"img",children:[jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.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:[jsxRuntimeExports.jsx("stop",{offset:"0",stopColor:"#5ea0ef"}),jsxRuntimeExports.jsx("stop",{offset:"0.178",stopColor:"#589eed"}),jsxRuntimeExports.jsx("stop",{offset:"0.406",stopColor:"#4897e9"}),jsxRuntimeExports.jsx("stop",{offset:"0.662",stopColor:"#2e8ce1"}),jsxRuntimeExports.jsx("stop",{offset:"0.936",stopColor:"#0a7cd7"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#0078d4"})]})}),jsxRuntimeExports.jsx("g",{id:"a05a9809-540f-4ec8-9a73-07896b5e7f5c",children:jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.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)"}),jsxRuntimeExports.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"}),jsxRuntimeExports.jsx("circle",{cx:"5.959",cy:"11.709",r:"3.744",fill:"#50e6ff"}),jsxRuntimeExports.jsx("circle",{cx:"5.952",cy:"11.642",r:"2.94",fill:"#fff"})]})})]}),DEFAULT_SIZE$1=16,toolsIcons={PromptFlowToolAzureContentSafety:jsxRuntimeExports.jsx(AzureContentSafetyIcon,{width:DEFAULT_SIZE$1,height:DEFAULT_SIZE$1}),PromptFlowToolSerpAPI:jsxRuntimeExports.jsx(DefaultIcon,{}),PromptFlowToolBing:jsxRuntimeExports.jsx(BingLogoIcon,{width:DEFAULT_SIZE$1,height:DEFAULT_SIZE$1}),PromptFlowToolAzureContentModerator:jsxRuntimeExports.jsx(AzureContentSafetyIcon,{width:DEFAULT_SIZE$1,height:DEFAULT_SIZE$1}),PromptFlowToolVectorIndexLookupByText:jsxRuntimeExports.jsx(VectorSearchIcon,{}),PromptFlowToolFaissIndexLookup:jsxRuntimeExports.jsx(VectorSearchIcon,{}),PromptFlowToolVectorDBLookup:jsxRuntimeExports.jsx(VectorSearchIcon,{}),PromptFlowToolVectorSearch:jsxRuntimeExports.jsx(VectorSearchIcon,{}),PromptFlowToolLlm:jsxRuntimeExports.jsx(OpenAIIcon$1,{}),PromptFlowToolPython:jsxRuntimeExports.jsx(PythonIcon,{}),PromptFlowToolTypeScript:jsxRuntimeExports.jsx(TypeScriptIcon,{width:DEFAULT_SIZE$1,height:DEFAULT_SIZE$1}),PromptFlowToolPrompt:jsxRuntimeExports.jsx(PromptIcon,{}),PromptFlowToolDefault:jsxRuntimeExports.jsx(DefaultIcon,{})};registerIcons({icons:{...toolsIcons}});var getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),rnds8=new Uint8Array(16);function rng(){if(!getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}var byteToHex=[];for(var i$3=0;i$3<256;++i$3)byteToHex[i$3]=(i$3+256).toString(16).substr(1);function bytesToUuid(eo,to){var ro=to||0,no=byteToHex;return[no[eo[ro++]],no[eo[ro++]],no[eo[ro++]],no[eo[ro++]],"-",no[eo[ro++]],no[eo[ro++]],"-",no[eo[ro++]],no[eo[ro++]],"-",no[eo[ro++]],no[eo[ro++]],"-",no[eo[ro++]],no[eo[ro++]],no[eo[ro++]],no[eo[ro++]],no[eo[ro++]],no[eo[ro++]]].join("")}function v4(eo,to,ro){var no=to&&ro||0;typeof eo=="string"&&(to=eo==="binary"?new Array(16):null,eo=null),eo=eo||{};var oo=eo.random||(eo.rng||rng)();if(oo[6]=oo[6]&15|64,oo[8]=oo[8]&63|128,to)for(var io=0;io<16;++io)to[no+io]=oo[io];return to||bytesToUuid(oo)}var toposort$1={exports:{}};toposort$1.exports=function(eo){return toposort(uniqueNodes(eo),eo)};toposort$1.exports.array=toposort;function toposort(eo,to){for(var ro=eo.length,no=new Array(ro),oo={},io=ro;io--;)oo[io]||so(eo[io],io,[]);return no;function so(ao,lo,uo){if(uo.indexOf(ao)>=0){var co;try{co=", node was:"+JSON.stringify(ao)}catch{co=""}throw new Error("Cyclic dependency"+co)}if(!~eo.indexOf(ao))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(ao));if(!oo[lo]){oo[lo]=!0;var fo=to.filter(function(mo){return mo[0]===ao});if(lo=fo.length){var po=uo.concat(ao);do{var ho=fo[--lo][1];so(ho,eo.indexOf(ho),po)}while(lo)}no[--ro]=ao}}}function uniqueNodes(eo){for(var to=[],ro=0,no=eo.length;ro1?ro-1:0),oo=1;oo2&&arguments[2]!==void 0?arguments[2]:stringToLowerCase;setPrototypeOf&&setPrototypeOf(eo,null);let no=to.length;for(;no--;){let oo=to[no];if(typeof oo=="string"){const io=ro(oo);io!==oo&&(isFrozen(to)||(to[no]=io),oo=io)}eo[oo]=!0}return eo}function cleanArray(eo){for(let to=0;to/gm),TMPLIT_EXPR=seal(/\${[\w\W]*}/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DOCTYPE_NAME=seal(/^html$/i);var EXPRESSIONS=Object.freeze({__proto__:null,MUSTACHE_EXPR,ERB_EXPR,TMPLIT_EXPR,DATA_ATTR,ARIA_ATTR,IS_ALLOWED_URI,IS_SCRIPT_OR_DATA,ATTR_WHITESPACE,DOCTYPE_NAME});const getGlobal=function(){return typeof window>"u"?null:window},_createTrustedTypesPolicy=function(to,ro){if(typeof to!="object"||typeof to.createPolicy!="function")return null;let no=null;const oo="data-tt-policy-suffix";ro&&ro.hasAttribute(oo)&&(no=ro.getAttribute(oo));const io="dompurify"+(no?"#"+no:"");try{return to.createPolicy(io,{createHTML(so){return so},createScriptURL(so){return so}})}catch{return console.warn("TrustedTypes policy "+io+" could not be created."),null}};function createDOMPurify(){let eo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:getGlobal();const to=zo=>createDOMPurify(zo);if(to.version="3.0.9",to.removed=[],!eo||!eo.document||eo.document.nodeType!==9)return to.isSupported=!1,to;let{document:ro}=eo;const no=ro,oo=no.currentScript,{DocumentFragment:io,HTMLTemplateElement:so,Node:ao,Element:lo,NodeFilter:uo,NamedNodeMap:co=eo.NamedNodeMap||eo.MozNamedAttrMap,HTMLFormElement:fo,DOMParser:po,trustedTypes:ho}=eo,mo=lo.prototype,vo=lookupGetter(mo,"cloneNode"),bo=lookupGetter(mo,"nextSibling"),xo=lookupGetter(mo,"childNodes"),_o=lookupGetter(mo,"parentNode");if(typeof so=="function"){const zo=ro.createElement("template");zo.content&&zo.content.ownerDocument&&(ro=zo.content.ownerDocument)}let So,Eo="";const{implementation:ko,createNodeIterator:wo,createDocumentFragment:Co,getElementsByTagName:Ro}=ro,{importNode:Ao}=no;let Io={};to.isSupported=typeof entries=="function"&&typeof _o=="function"&&ko&&ko.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:$o,ERB_EXPR:Bo,TMPLIT_EXPR:Mo,DATA_ATTR:Ho,ARIA_ATTR:jo,IS_SCRIPT_OR_DATA:Oo,ATTR_WHITESPACE:Fo}=EXPRESSIONS;let{IS_ALLOWED_URI:Go}=EXPRESSIONS,qo=null;const Xo=addToSet({},[...html$1,...svg$1,...svgFilters,...mathMl$1,...text]);let Zo=null;const Qo=addToSet({},[...html$2,...svg,...mathMl,...xml]);let xs=Object.seal(create$4(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}})),Ts=null,Rs=null,Os=!0,As=!0,Ds=!1,Jo=!0,Cs=!1,Bs=!1,zs=!1,Ls=!1,ga=!1,Js=!1,Zs=!1,$a=!0,Ll=!1;const Kl="user-content-";let Zl=!0,$l=!1,xa={},Sl=null;const cu=addToSet({},["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 ks=null;const Es=addToSet({},["audio","video","img","source","image","track"]);let bs=null;const ws=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Gs="http://www.w3.org/1998/Math/MathML",Ks="http://www.w3.org/2000/svg",Ms="http://www.w3.org/1999/xhtml";let Hs=Ms,Qs=!1,El=null;const xl=addToSet({},[Gs,Ks,Ms],stringToString);let Ol=null;const ru=["application/xhtml+xml","text/html"],au="text/html";let zl=null,hu=null;const xu=ro.createElement("form"),Ql=function(Do){return Do instanceof RegExp||Do instanceof Function},Dl=function(){let Do=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(hu&&hu===Do)){if((!Do||typeof Do!="object")&&(Do={}),Do=clone(Do),Ol=ru.indexOf(Do.PARSER_MEDIA_TYPE)===-1?au:Do.PARSER_MEDIA_TYPE,zl=Ol==="application/xhtml+xml"?stringToString:stringToLowerCase,qo=objectHasOwnProperty(Do,"ALLOWED_TAGS")?addToSet({},Do.ALLOWED_TAGS,zl):Xo,Zo=objectHasOwnProperty(Do,"ALLOWED_ATTR")?addToSet({},Do.ALLOWED_ATTR,zl):Qo,El=objectHasOwnProperty(Do,"ALLOWED_NAMESPACES")?addToSet({},Do.ALLOWED_NAMESPACES,stringToString):xl,bs=objectHasOwnProperty(Do,"ADD_URI_SAFE_ATTR")?addToSet(clone(ws),Do.ADD_URI_SAFE_ATTR,zl):ws,ks=objectHasOwnProperty(Do,"ADD_DATA_URI_TAGS")?addToSet(clone(Es),Do.ADD_DATA_URI_TAGS,zl):Es,Sl=objectHasOwnProperty(Do,"FORBID_CONTENTS")?addToSet({},Do.FORBID_CONTENTS,zl):cu,Ts=objectHasOwnProperty(Do,"FORBID_TAGS")?addToSet({},Do.FORBID_TAGS,zl):{},Rs=objectHasOwnProperty(Do,"FORBID_ATTR")?addToSet({},Do.FORBID_ATTR,zl):{},xa=objectHasOwnProperty(Do,"USE_PROFILES")?Do.USE_PROFILES:!1,Os=Do.ALLOW_ARIA_ATTR!==!1,As=Do.ALLOW_DATA_ATTR!==!1,Ds=Do.ALLOW_UNKNOWN_PROTOCOLS||!1,Jo=Do.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Cs=Do.SAFE_FOR_TEMPLATES||!1,Bs=Do.WHOLE_DOCUMENT||!1,ga=Do.RETURN_DOM||!1,Js=Do.RETURN_DOM_FRAGMENT||!1,Zs=Do.RETURN_TRUSTED_TYPE||!1,Ls=Do.FORCE_BODY||!1,$a=Do.SANITIZE_DOM!==!1,Ll=Do.SANITIZE_NAMED_PROPS||!1,Zl=Do.KEEP_CONTENT!==!1,$l=Do.IN_PLACE||!1,Go=Do.ALLOWED_URI_REGEXP||IS_ALLOWED_URI,Hs=Do.NAMESPACE||Ms,xs=Do.CUSTOM_ELEMENT_HANDLING||{},Do.CUSTOM_ELEMENT_HANDLING&&Ql(Do.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(xs.tagNameCheck=Do.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Do.CUSTOM_ELEMENT_HANDLING&&Ql(Do.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(xs.attributeNameCheck=Do.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Do.CUSTOM_ELEMENT_HANDLING&&typeof Do.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(xs.allowCustomizedBuiltInElements=Do.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Cs&&(As=!1),Js&&(ga=!0),xa&&(qo=addToSet({},text),Zo=[],xa.html===!0&&(addToSet(qo,html$1),addToSet(Zo,html$2)),xa.svg===!0&&(addToSet(qo,svg$1),addToSet(Zo,svg),addToSet(Zo,xml)),xa.svgFilters===!0&&(addToSet(qo,svgFilters),addToSet(Zo,svg),addToSet(Zo,xml)),xa.mathMl===!0&&(addToSet(qo,mathMl$1),addToSet(Zo,mathMl),addToSet(Zo,xml))),Do.ADD_TAGS&&(qo===Xo&&(qo=clone(qo)),addToSet(qo,Do.ADD_TAGS,zl)),Do.ADD_ATTR&&(Zo===Qo&&(Zo=clone(Zo)),addToSet(Zo,Do.ADD_ATTR,zl)),Do.ADD_URI_SAFE_ATTR&&addToSet(bs,Do.ADD_URI_SAFE_ATTR,zl),Do.FORBID_CONTENTS&&(Sl===cu&&(Sl=clone(Sl)),addToSet(Sl,Do.FORBID_CONTENTS,zl)),Zl&&(qo["#text"]=!0),Bs&&addToSet(qo,["html","head","body"]),qo.table&&(addToSet(qo,["tbody"]),delete Ts.tbody),Do.TRUSTED_TYPES_POLICY){if(typeof Do.TRUSTED_TYPES_POLICY.createHTML!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Do.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');So=Do.TRUSTED_TYPES_POLICY,Eo=So.createHTML("")}else So===void 0&&(So=_createTrustedTypesPolicy(ho,oo)),So!==null&&typeof Eo=="string"&&(Eo=So.createHTML(""));freeze&&freeze(Do),hu=Do}},gu=addToSet({},["mi","mo","mn","ms","mtext"]),lu=addToSet({},["foreignobject","desc","title","annotation-xml"]),mu=addToSet({},["title","style","font","a","script"]),ou=addToSet({},[...svg$1,...svgFilters,...svgDisallowed]),Fl=addToSet({},[...mathMl$1,...mathMlDisallowed]),yl=function(Do){let Yo=_o(Do);(!Yo||!Yo.tagName)&&(Yo={namespaceURI:Hs,tagName:"template"});const vs=stringToLowerCase(Do.tagName),ys=stringToLowerCase(Yo.tagName);return El[Do.namespaceURI]?Do.namespaceURI===Ks?Yo.namespaceURI===Ms?vs==="svg":Yo.namespaceURI===Gs?vs==="svg"&&(ys==="annotation-xml"||gu[ys]):!!ou[vs]:Do.namespaceURI===Gs?Yo.namespaceURI===Ms?vs==="math":Yo.namespaceURI===Ks?vs==="math"&&lu[ys]:!!Fl[vs]:Do.namespaceURI===Ms?Yo.namespaceURI===Ks&&!lu[ys]||Yo.namespaceURI===Gs&&!gu[ys]?!1:!Fl[vs]&&(mu[vs]||!ou[vs]):!!(Ol==="application/xhtml+xml"&&El[Do.namespaceURI]):!1},Xs=function(Do){arrayPush(to.removed,{element:Do});try{Do.parentNode.removeChild(Do)}catch{Do.remove()}},vu=function(Do,Yo){try{arrayPush(to.removed,{attribute:Yo.getAttributeNode(Do),from:Yo})}catch{arrayPush(to.removed,{attribute:null,from:Yo})}if(Yo.removeAttribute(Do),Do==="is"&&!Zo[Do])if(ga||Js)try{Xs(Yo)}catch{}else try{Yo.setAttribute(Do,"")}catch{}},$u=function(Do){let Yo=null,vs=null;if(Ls)Do=""+Do;else{const Is=stringMatch(Do,/^[\r\n\t ]+/);vs=Is&&Is[0]}Ol==="application/xhtml+xml"&&Hs===Ms&&(Do=''+Do+"");const ys=So?So.createHTML(Do):Do;if(Hs===Ms)try{Yo=new po().parseFromString(ys,Ol)}catch{}if(!Yo||!Yo.documentElement){Yo=ko.createDocument(Hs,"template",null);try{Yo.documentElement.innerHTML=Qs?Eo:ys}catch{}}const hs=Yo.body||Yo.documentElement;return Do&&vs&&hs.insertBefore(ro.createTextNode(vs),hs.childNodes[0]||null),Hs===Ms?Ro.call(Yo,Bs?"html":"body")[0]:Bs?Yo.documentElement:hs},du=function(Do){return wo.call(Do.ownerDocument||Do,Do,uo.SHOW_ELEMENT|uo.SHOW_COMMENT|uo.SHOW_TEXT,null)},d1=function(Do){return Do instanceof fo&&(typeof Do.nodeName!="string"||typeof Do.textContent!="string"||typeof Do.removeChild!="function"||!(Do.attributes instanceof co)||typeof Do.removeAttribute!="function"||typeof Do.setAttribute!="function"||typeof Do.namespaceURI!="string"||typeof Do.insertBefore!="function"||typeof Do.hasChildNodes!="function")},qu=function(Do){return typeof ao=="function"&&Do instanceof ao},Iu=function(Do,Yo,vs){Io[Do]&&arrayForEach(Io[Do],ys=>{ys.call(to,Yo,vs,hu)})},e1=function(Do){let Yo=null;if(Iu("beforeSanitizeElements",Do,null),d1(Do))return Xs(Do),!0;const vs=zl(Do.nodeName);if(Iu("uponSanitizeElement",Do,{tagName:vs,allowedTags:qo}),Do.hasChildNodes()&&!qu(Do.firstElementChild)&®ExpTest(/<[/\w]/g,Do.innerHTML)&®ExpTest(/<[/\w]/g,Do.textContent))return Xs(Do),!0;if(!qo[vs]||Ts[vs]){if(!Ts[vs]&&Ko(vs)&&(xs.tagNameCheck instanceof RegExp&®ExpTest(xs.tagNameCheck,vs)||xs.tagNameCheck instanceof Function&&xs.tagNameCheck(vs)))return!1;if(Zl&&!Sl[vs]){const ys=_o(Do)||Do.parentNode,hs=xo(Do)||Do.childNodes;if(hs&&ys){const Is=hs.length;for(let Us=Is-1;Us>=0;--Us)ys.insertBefore(vo(hs[Us],!0),bo(Do))}}return Xs(Do),!0}return Do instanceof lo&&!yl(Do)||(vs==="noscript"||vs==="noembed"||vs==="noframes")&®ExpTest(/<\/no(script|embed|frames)/i,Do.innerHTML)?(Xs(Do),!0):(Cs&&Do.nodeType===3&&(Yo=Do.textContent,arrayForEach([$o,Bo,Mo],ys=>{Yo=stringReplace(Yo,ys," ")}),Do.textContent!==Yo&&(arrayPush(to.removed,{element:Do.cloneNode()}),Do.textContent=Yo)),Iu("afterSanitizeElements",Do,null),!1)},qs=function(Do,Yo,vs){if($a&&(Yo==="id"||Yo==="name")&&(vs in ro||vs in xu))return!1;if(!(As&&!Rs[Yo]&®ExpTest(Ho,Yo))){if(!(Os&®ExpTest(jo,Yo))){if(!Zo[Yo]||Rs[Yo]){if(!(Ko(Do)&&(xs.tagNameCheck instanceof RegExp&®ExpTest(xs.tagNameCheck,Do)||xs.tagNameCheck instanceof Function&&xs.tagNameCheck(Do))&&(xs.attributeNameCheck instanceof RegExp&®ExpTest(xs.attributeNameCheck,Yo)||xs.attributeNameCheck instanceof Function&&xs.attributeNameCheck(Yo))||Yo==="is"&&xs.allowCustomizedBuiltInElements&&(xs.tagNameCheck instanceof RegExp&®ExpTest(xs.tagNameCheck,vs)||xs.tagNameCheck instanceof Function&&xs.tagNameCheck(vs))))return!1}else if(!bs[Yo]){if(!regExpTest(Go,stringReplace(vs,Fo,""))){if(!((Yo==="src"||Yo==="xlink:href"||Yo==="href")&&Do!=="script"&&stringIndexOf(vs,"data:")===0&&ks[Do])){if(!(Ds&&!regExpTest(Oo,stringReplace(vs,Fo,"")))){if(vs)return!1}}}}}}return!0},Ko=function(Do){return Do!=="annotation-xml"&&Do.indexOf("-")>0},Uo=function(Do){Iu("beforeSanitizeAttributes",Do,null);const{attributes:Yo}=Do;if(!Yo)return;const vs={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Zo};let ys=Yo.length;for(;ys--;){const hs=Yo[ys],{name:Is,namespaceURI:Us,value:Il}=hs,Ml=zl(Is);let Rl=Is==="value"?Il:stringTrim(Il);if(vs.attrName=Ml,vs.attrValue=Rl,vs.keepAttr=!0,vs.forceKeepAttr=void 0,Iu("uponSanitizeAttribute",Do,vs),Rl=vs.attrValue,vs.forceKeepAttr||(vu(Is,Do),!vs.keepAttr))continue;if(!Jo&®ExpTest(/\/>/i,Rl)){vu(Is,Do);continue}Cs&&arrayForEach([$o,Bo,Mo],Ul=>{Rl=stringReplace(Rl,Ul," ")});const Cl=zl(Do.nodeName);if(qs(Cl,Ml,Rl)){if(Ll&&(Ml==="id"||Ml==="name")&&(vu(Is,Do),Rl=Kl+Rl),So&&typeof ho=="object"&&typeof ho.getAttributeType=="function"&&!Us)switch(ho.getAttributeType(Cl,Ml)){case"TrustedHTML":{Rl=So.createHTML(Rl);break}case"TrustedScriptURL":{Rl=So.createScriptURL(Rl);break}}try{Us?Do.setAttributeNS(Us,Is,Rl):Do.setAttribute(Is,Rl),arrayPop(to.removed)}catch{}}}Iu("afterSanitizeAttributes",Do,null)},Po=function zo(Do){let Yo=null;const vs=du(Do);for(Iu("beforeSanitizeShadowDOM",Do,null);Yo=vs.nextNode();)Iu("uponSanitizeShadowNode",Yo,null),!e1(Yo)&&(Yo.content instanceof io&&zo(Yo.content),Uo(Yo));Iu("afterSanitizeShadowDOM",Do,null)};return to.sanitize=function(zo){let Do=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Yo=null,vs=null,ys=null,hs=null;if(Qs=!zo,Qs&&(zo=""),typeof zo!="string"&&!qu(zo))if(typeof zo.toString=="function"){if(zo=zo.toString(),typeof zo!="string")throw typeErrorCreate("dirty is not a string, aborting")}else throw typeErrorCreate("toString is not a function");if(!to.isSupported)return zo;if(zs||Dl(Do),to.removed=[],typeof zo=="string"&&($l=!1),$l){if(zo.nodeName){const Il=zl(zo.nodeName);if(!qo[Il]||Ts[Il])throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place")}}else if(zo instanceof ao)Yo=$u(""),vs=Yo.ownerDocument.importNode(zo,!0),vs.nodeType===1&&vs.nodeName==="BODY"||vs.nodeName==="HTML"?Yo=vs:Yo.appendChild(vs);else{if(!ga&&!Cs&&!Bs&&zo.indexOf("<")===-1)return So&&Zs?So.createHTML(zo):zo;if(Yo=$u(zo),!Yo)return ga?null:Zs?Eo:""}Yo&&Ls&&Xs(Yo.firstChild);const Is=du($l?zo:Yo);for(;ys=Is.nextNode();)e1(ys)||(ys.content instanceof io&&Po(ys.content),Uo(ys));if($l)return zo;if(ga){if(Js)for(hs=Co.call(Yo.ownerDocument);Yo.firstChild;)hs.appendChild(Yo.firstChild);else hs=Yo;return(Zo.shadowroot||Zo.shadowrootmode)&&(hs=Ao.call(no,hs,!0)),hs}let Us=Bs?Yo.outerHTML:Yo.innerHTML;return Bs&&qo["!doctype"]&&Yo.ownerDocument&&Yo.ownerDocument.doctype&&Yo.ownerDocument.doctype.name&®ExpTest(DOCTYPE_NAME,Yo.ownerDocument.doctype.name)&&(Us=" -`+Us),Cs&&arrayForEach([$o,Bo,Mo],Il=>{Us=stringReplace(Us,Il," ")}),So&&Zs?So.createHTML(Us):Us},to.setConfig=function(){let zo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Dl(zo),zs=!0},to.clearConfig=function(){hu=null,zs=!1},to.isValidAttribute=function(zo,Do,Yo){hu||Dl({});const vs=zl(zo),ys=zl(Do);return qs(vs,ys,Yo)},to.addHook=function(zo,Do){typeof Do=="function"&&(Io[zo]=Io[zo]||[],arrayPush(Io[zo],Do))},to.removeHook=function(zo){if(Io[zo])return arrayPop(Io[zo])},to.removeHooks=function(zo){Io[zo]&&(Io[zo]=[])},to.removeAllHooks=function(){Io={}},to}var purify=createDOMPurify(),eventemitter3={exports:{}};(function(eo){var to=Object.prototype.hasOwnProperty,ro="~";function no(){}Object.create&&(no.prototype=Object.create(null),new no().__proto__||(ro=!1));function oo(lo,uo,co){this.fn=lo,this.context=uo,this.once=co||!1}function io(lo,uo,co,fo,po){if(typeof co!="function")throw new TypeError("The listener must be a function");var ho=new oo(co,fo||lo,po),mo=ro?ro+uo:uo;return lo._events[mo]?lo._events[mo].fn?lo._events[mo]=[lo._events[mo],ho]:lo._events[mo].push(ho):(lo._events[mo]=ho,lo._eventsCount++),lo}function so(lo,uo){--lo._eventsCount===0?lo._events=new no:delete lo._events[uo]}function ao(){this._events=new no,this._eventsCount=0}ao.prototype.eventNames=function(){var uo=[],co,fo;if(this._eventsCount===0)return uo;for(fo in co=this._events)to.call(co,fo)&&uo.push(ro?fo.slice(1):fo);return Object.getOwnPropertySymbols?uo.concat(Object.getOwnPropertySymbols(co)):uo},ao.prototype.listeners=function(uo){var co=ro?ro+uo:uo,fo=this._events[co];if(!fo)return[];if(fo.fn)return[fo.fn];for(var po=0,ho=fo.length,mo=new Array(ho);po0?eo:"Unknown")}function _defineProperty$5(eo,to,ro){return to in eo?Object.defineProperty(eo,to,{value:ro,enumerable:!0,configurable:!0,writable:!0}):eo[to]=ro,eo}function _extends$a(){return _extends$a=Object.assign||function(eo){for(var to=1;to"u"?"undefined":_typeof$6(window))==="object"&&(typeof document>"u"?"undefined":_typeof$6(document))==="object"&&document.nodeType===9;function _typeof$5(eo){"@babel/helpers - typeof";return _typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(to){return typeof to}:function(to){return to&&typeof Symbol=="function"&&to.constructor===Symbol&&to!==Symbol.prototype?"symbol":typeof to},_typeof$5(eo)}function toPrimitive(eo,to){if(_typeof$5(eo)!="object"||!eo)return eo;var ro=eo[Symbol.toPrimitive];if(ro!==void 0){var no=ro.call(eo,to||"default");if(_typeof$5(no)!="object")return no;throw new TypeError("@@toPrimitive must return a primitive value.")}return(to==="string"?String:Number)(eo)}function toPropertyKey(eo){var to=toPrimitive(eo,"string");return _typeof$5(to)=="symbol"?to:String(to)}function _defineProperties$3(eo,to){for(var ro=0;ro<+~=|^:(),"'`\s])/g,nativeEscape=typeof CSS<"u"&&CSS.escape,escape=function(eo){return nativeEscape?nativeEscape(eo):eo.replace(escapeRegex,"\\$1")},BaseStyleRule=function(){function eo(ro,no,oo){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 io=oo.sheet,so=oo.Renderer;this.key=ro,this.options=oo,this.style=no,io?this.renderer=io.renderer:so&&(this.renderer=new so)}var to=eo.prototype;return to.prop=function(no,oo,io){if(oo===void 0)return this.style[no];var so=io?io.force:!1;if(!so&&this.style[no]===oo)return this;var ao=oo;(!io||io.process!==!1)&&(ao=this.options.jss.plugins.onChangeValue(oo,no,this));var lo=ao==null||ao===!1,uo=no in this.style;if(lo&&!uo&&!so)return this;var co=lo&&uo;if(co?delete this.style[no]:this.style[no]=ao,this.renderable&&this.renderer)return co?this.renderer.removeProperty(this.renderable,no):this.renderer.setProperty(this.renderable,no,ao),this;var fo=this.options.sheet;return fo&&fo.attached,this},eo}(),StyleRule=function(eo){_inheritsLoose$1(to,eo);function to(no,oo,io){var so;so=eo.call(this,no,oo,io)||this,so.selectorText=void 0,so.id=void 0,so.renderable=void 0;var ao=io.selector,lo=io.scoped,uo=io.sheet,co=io.generateId;return ao?so.selectorText=ao:lo!==!1&&(so.id=co(_assertThisInitialized$3(_assertThisInitialized$3(so)),uo),so.selectorText="."+escape(so.id)),so}var ro=to.prototype;return ro.applyTo=function(oo){var io=this.renderer;if(io){var so=this.toJSON();for(var ao in so)io.setProperty(oo,ao,so[ao])}return this},ro.toJSON=function(){var oo={};for(var io in this.style){var so=this.style[io];typeof so!="object"?oo[io]=so:Array.isArray(so)&&(oo[io]=toCssValue(so))}return oo},ro.toString=function(oo){var io=this.options.sheet,so=io?io.options.link:!1,ao=so?_extends$b({},oo,{allowEmpty:!0}):oo;return toCss(this.selectorText,this.style,ao)},_createClass$3(to,[{key:"selector",set:function(oo){if(oo!==this.selectorText){this.selectorText=oo;var io=this.renderer,so=this.renderable;if(!(!so||!io)){var ao=io.setSelector(so,oo);ao||io.replaceRule(so,this)}}},get:function(){return this.selectorText}}]),to}(BaseStyleRule),pluginStyleRule={onCreateRule:function(to,ro,no){return to[0]==="@"||no.parent&&no.parent.type==="keyframes"?null:new StyleRule(to,ro,no)}},defaultToStringOptions={indent:1,children:!0},atRegExp=/@([\w-]+)/,ConditionalRule=function(){function eo(ro,no,oo){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=ro,this.query=oo.name;var io=ro.match(atRegExp);this.at=io?io[1]:"unknown",this.options=oo,this.rules=new RuleList(_extends$b({},oo,{parent:this}));for(var so in no)this.rules.add(so,no[so]);this.rules.process()}var to=eo.prototype;return to.getRule=function(no){return this.rules.get(no)},to.indexOf=function(no){return this.rules.indexOf(no)},to.addRule=function(no,oo,io){var so=this.rules.add(no,oo,io);return so?(this.options.jss.plugins.onProcessRule(so),so):null},to.toString=function(no){if(no===void 0&&(no=defaultToStringOptions),no.indent==null&&(no.indent=defaultToStringOptions.indent),no.children==null&&(no.children=defaultToStringOptions.children),no.children===!1)return this.query+" {}";var oo=this.rules.toString(no);return oo?this.query+` { -`+oo+` -}`:""},eo}(),keyRegExp=/@media|@supports\s+/,pluginConditionalRule={onCreateRule:function(to,ro,no){return keyRegExp.test(to)?new ConditionalRule(to,ro,no):null}},defaultToStringOptions$1={indent:1,children:!0},nameRegExp=/@keyframes\s+([\w-]+)/,KeyframesRule=function(){function eo(ro,no,oo){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 io=ro.match(nameRegExp);io&&io[1]?this.name=io[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=oo;var so=oo.scoped,ao=oo.sheet,lo=oo.generateId;this.id=so===!1?this.name:escape(lo(this,ao)),this.rules=new RuleList(_extends$b({},oo,{parent:this}));for(var uo in no)this.rules.add(uo,no[uo],_extends$b({},oo,{parent:this}));this.rules.process()}var to=eo.prototype;return to.toString=function(no){if(no===void 0&&(no=defaultToStringOptions$1),no.indent==null&&(no.indent=defaultToStringOptions$1.indent),no.children==null&&(no.children=defaultToStringOptions$1.children),no.children===!1)return this.at+" "+this.id+" {}";var oo=this.rules.toString(no);return oo&&(oo=` -`+oo+` -`),this.at+" "+this.id+" {"+oo+"}"},eo}(),keyRegExp$1=/@keyframes\s+/,refRegExp$1=/\$([\w-]+)/g,findReferencedKeyframe=function(to,ro){return typeof to=="string"?to.replace(refRegExp$1,function(no,oo){return oo in ro?ro[oo]:no}):to},replaceRef=function(to,ro,no){var oo=to[ro],io=findReferencedKeyframe(oo,no);io!==oo&&(to[ro]=io)},plugin={onCreateRule:function(to,ro,no){return typeof to=="string"&&keyRegExp$1.test(to)?new KeyframesRule(to,ro,no):null},onProcessStyle:function(to,ro,no){return ro.type!=="style"||!no||("animation-name"in to&&replaceRef(to,"animation-name",no.keyframes),"animation"in to&&replaceRef(to,"animation",no.keyframes)),to},onChangeValue:function(to,ro,no){var oo=no.options.sheet;if(!oo)return to;switch(ro){case"animation":return findReferencedKeyframe(to,oo.keyframes);case"animation-name":return findReferencedKeyframe(to,oo.keyframes);default:return to}}},KeyframeRule=function(eo){_inheritsLoose$1(to,eo);function to(){for(var no,oo=arguments.length,io=new Array(oo),so=0;so=this.index){oo.push(no);return}for(var so=0;soio){oo.splice(so,0,no);return}}},to.reset=function(){this.registry=[]},to.remove=function(no){var oo=this.registry.indexOf(no);this.registry.splice(oo,1)},to.toString=function(no){for(var oo=no===void 0?{}:no,io=oo.attached,so=_objectWithoutPropertiesLoose$2(oo,["attached"]),ao="",lo=0;loto.index&&no.options.insertionPoint===to.insertionPoint)return no}return null}function findHighestSheet(eo,to){for(var ro=eo.length-1;ro>=0;ro--){var no=eo[ro];if(no.attached&&no.options.insertionPoint===to.insertionPoint)return no}return null}function findCommentNode(eo){for(var to=getHead(),ro=0;ro0){var ro=findHigherSheet(to,eo);if(ro&&ro.renderer)return{parent:ro.renderer.element.parentNode,node:ro.renderer.element};if(ro=findHighestSheet(to,eo),ro&&ro.renderer)return{parent:ro.renderer.element.parentNode,node:ro.renderer.element.nextSibling}}var no=eo.insertionPoint;if(no&&typeof no=="string"){var oo=findCommentNode(no);if(oo)return{parent:oo.parentNode,node:oo.nextSibling}}return!1}function insertStyle(eo,to){var ro=to.insertionPoint,no=findPrevNode(to);if(no!==!1&&no.parent){no.parent.insertBefore(eo,no.node);return}if(ro&&typeof ro.nodeType=="number"){var oo=ro,io=oo.parentNode;io&&io.insertBefore(eo,oo.nextSibling);return}getHead().appendChild(eo)}var getNonce$1=memoize$2(function(){var eo=document.querySelector('meta[property="csp-nonce"]');return eo?eo.getAttribute("content"):null}),_insertRule=function(to,ro,no){var oo=to.cssRules.length;(no===void 0||no>oo)&&(no=oo);try{if("insertRule"in to){var io=to;io.insertRule(ro,no)}else if("appendRule"in to){var so=to;so.appendRule(ro)}}catch{return!1}return to.cssRules[no]},createStyle=function(){var to=document.createElement("style");return to.textContent=` -`,to},DomRenderer=function(){function eo(ro){this.getPropertyValue=getPropertyValue,this.setProperty=setProperty,this.removeProperty=removeProperty,this.setSelector=setSelector,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,ro&&sheets.add(ro),this.sheet=ro;var no=this.sheet?this.sheet.options:{},oo=no.media,io=no.meta,so=no.element;this.element=so||createStyle(),this.element.setAttribute("data-jss",""),oo&&this.element.setAttribute("media",oo),io&&this.element.setAttribute("data-meta",io);var ao=getNonce$1();ao&&this.element.setAttribute("nonce",ao)}var to=eo.prototype;return to.attach=function(){if(!(this.element.parentNode||!this.sheet)){insertStyle(this.element,this.sheet.options);var no=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&no&&(this.hasInsertedRules=!1,this.deploy())}},to.detach=function(){var no=this.element.parentNode;no&&no.removeChild(this.element)},to.deploy=function(){var no=this.sheet;if(no){if(no.options.link){this.insertRules(no.rules);return}this.element.textContent=` -`+no.toString()+` -`}},to.insertRules=function(no,oo){for(var io=0;io0&&(oo.refs--,oo.refs===0&&oo.sheet.detach()):warning(!1,"SheetsManager: can't find sheet to unmanage")},_createClass$3(eo,[{key:"size",get:function(){return this.length}}]),eo}();/** - * A better abstraction over CSS. - * - * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present - * @website https://github.com/cssinjs/jss - * @license MIT - */var hasCSSTOMSupport=typeof CSS<"u"&&CSS&&"number"in CSS,create$3=function(to){return new Jss(to)},index$4=create$3(),now=Date.now(),fnValuesNs="fnValues"+now,fnRuleNs="fnStyle"+ ++now;function functionPlugin(){return{onCreateRule:function(to,ro,no){if(typeof ro!="function")return null;var oo=createRule(to,{},no);return oo[fnRuleNs]=ro,oo},onProcessStyle:function(to,ro){if(fnValuesNs in ro||fnRuleNs in ro)return to;var no={};for(var oo in to){var io=to[oo];typeof io=="function"&&(delete to[oo],no[oo]=io)}return ro[fnValuesNs]=no,to},onUpdate:function(to,ro,no,oo){var io=ro,so=io[fnRuleNs];so&&(io.style=so(to)||{});var ao=io[fnValuesNs];if(ao)for(var lo in ao)io.prop(lo,ao[lo](to),oo)}}}function symbolObservablePonyfill(eo){var to,ro=eo.Symbol;return typeof ro=="function"?ro.observable?to=ro.observable:(to=ro("observable"),ro.observable=to):to="@@observable",to}var root$1;typeof self<"u"?root$1=self:typeof window<"u"?root$1=window:typeof global<"u"?root$1=global:typeof module<"u"?root$1=module:root$1=Function("return this")();var result=symbolObservablePonyfill(root$1),isObservable$1=function(to){return to&&to[result]&&to===to[result]()};function observablePlugin(eo){return{onCreateRule:function(ro,no,oo){if(!isObservable$1(no))return null;var io=no,so=createRule(ro,{},oo);return io.subscribe(function(ao){for(var lo in ao)so.prop(lo,ao[lo],eo)}),so},onProcessRule:function(ro){if(!(ro&&ro.type!=="style")){var no=ro,oo=no.style,io=function(uo){var co=oo[uo];if(!isObservable$1(co))return"continue";delete oo[uo],co.subscribe({next:function(po){no.prop(uo,po,eo)}})};for(var so in oo)var ao=io(so)}}}}var semiWithNl=/;\n/,parse$m=function(eo){for(var to={},ro=eo.split(semiWithNl),no=0;no-1)return registerClass(eo,to.split(" "));var oo=eo.options,io=oo.parent;if(to[0]==="$"){var so=io.getRule(to.substr(1));return!so||so===eo?!1:(io.classes[eo.key]+=" "+io.classes[so.key],!0)}return io.classes[eo.key]+=" "+to,!0}function jssCompose(){function eo(to,ro){return"composes"in to&&(registerClass(ro,to.composes),delete to.composes),to}return{onProcessStyle:eo}}var uppercasePattern=/[A-Z]/g,msPattern=/^ms-/,cache$2={};function toHyphenLower(eo){return"-"+eo.toLowerCase()}function hyphenateStyleName(eo){if(cache$2.hasOwnProperty(eo))return cache$2[eo];var to=eo.replace(uppercasePattern,toHyphenLower);return cache$2[eo]=msPattern.test(to)?"-"+to:to}function convertCase(eo){var to={};for(var ro in eo){var no=ro.indexOf("--")===0?ro:hyphenateStyleName(ro);to[no]=eo[ro]}return eo.fallbacks&&(Array.isArray(eo.fallbacks)?to.fallbacks=eo.fallbacks.map(convertCase):to.fallbacks=convertCase(eo.fallbacks)),to}function camelCase(){function eo(ro){if(Array.isArray(ro)){for(var no=0;noeo.length)&&(to=eo.length);for(var ro=0,no=new Array(to);ro-1){var io=propMap$1[to];if(!Array.isArray(io))return prefix$2.js+pascalize(io)in ro?prefix$2.css+io:!1;if(!oo)return!1;for(var so=0;sono?1:-1:ro.length-no.length};return{onProcessStyle:function(ro,no){if(no.type!=="style")return ro;for(var oo={},io=Object.keys(ro).sort(eo),so=0;soMAX_RULES_PER_SHEET)&&(oo=to.createStyleSheet().attach()),oo};function so(){var ao=arguments,lo=JSON.stringify(ao),uo=ro.get(lo);if(uo)return uo.className;var co=[];for(var fo in ao){var po=ao[fo];if(!Array.isArray(po)){co.push(po);continue}for(var ho=0;hoto=>!!pick$1(eo)(to),add=eo=>to=>{const ro=to||0;return Array.isArray(eo)?eo.reduce((no,oo)=>no|oo,ro):ro|eo},toggle=eo=>to=>(to||0)^eo,pick$1=eo=>to=>(to||0)&eo,remove$1=eo=>to=>{const ro=to||0;return Array.isArray(eo)?eo.reduce((no,oo)=>no&~oo,ro):ro&~eo},replace$1=eo=>()=>eo;var bitset=Object.freeze({__proto__:null,has:has$1,add,toggle,pick:pick$1,remove:remove$1,replace:replace$1});const EMPTY_STATUS=0,SELECTED_STATUS=1,ACTIVATED_STATUS=2;var GraphEdgeStatus;(function(eo){eo[eo.Default=EMPTY_STATUS]="Default",eo[eo.Selected=SELECTED_STATUS]="Selected",eo[eo.Activated=ACTIVATED_STATUS]="Activated",eo[eo.ConnectedToSelected=4]="ConnectedToSelected",eo[eo.UnconnectedToSelected=8]="UnconnectedToSelected",eo[eo.Editing=16]="Editing"})(GraphEdgeStatus||(GraphEdgeStatus={}));var GraphNodeStatus;(function(eo){eo[eo.Default=EMPTY_STATUS]="Default",eo[eo.Selected=SELECTED_STATUS]="Selected",eo[eo.Activated=ACTIVATED_STATUS]="Activated",eo[eo.Editing=4]="Editing",eo[eo.ConnectedToSelected=8]="ConnectedToSelected",eo[eo.UnconnectedToSelected=16]="UnconnectedToSelected"})(GraphNodeStatus||(GraphNodeStatus={}));var GraphPortStatus;(function(eo){eo[eo.Default=EMPTY_STATUS]="Default",eo[eo.Selected=SELECTED_STATUS]="Selected",eo[eo.Activated=ACTIVATED_STATUS]="Activated",eo[eo.Connecting=4]="Connecting",eo[eo.ConnectingAsTarget=8]="ConnectingAsTarget"})(GraphPortStatus||(GraphPortStatus={}));const updateStatus=eo=>to=>{var ro;const no=eo((ro=to.status)!==null&&ro!==void 0?ro:0);return no===to.status?to:Object.assign(Object.assign({},to),{status:no})};function isNodeEditing(eo){return has$1(GraphNodeStatus.Editing)(eo.status)}function isSelected(eo){return has$1(SELECTED_STATUS)(eo.status)}function notSelected(eo){return!isSelected(eo)}const resetConnectStatus=eo=>to=>(to||0)&GraphNodeStatus.Activated|eo;class Debug{static log(to){}static warn(to){}static error(...to){console.error(...to)}static never(to,ro){throw new Error(ro??`${to} is unexpected`)}}const getNodeConfig=(eo,to)=>{const ro=to.getNodeConfig(eo);if(!ro){Debug.warn(`invalid node ${JSON.stringify(eo)}`);return}return ro};function getRectWidth(eo,to){var ro;const no=(ro=eo==null?void 0:eo.getMinWidth(to))!==null&&ro!==void 0?ro:0;return to.width&&to.width>=no?to.width:no}function getRectHeight(eo,to){var ro;const no=(ro=eo==null?void 0:eo.getMinHeight(to))!==null&&ro!==void 0?ro:0;return to.height&&to.height>=no?to.height:no}function getNodeSize(eo,to){const ro=getNodeConfig(eo,to),no=getRectWidth(ro,eo);return{height:getRectHeight(ro,eo),width:no}}function getGroupRect(eo,to,ro){var no,oo,io,so,ao,lo,uo,co;const fo=new Set(eo.nodeIds),po=Array.from(to.values()).filter(ko=>fo.has(ko.id)),ho=Math.min(...po.map(ko=>ko.x)),mo=Math.max(...po.map(ko=>ko.x+getNodeSize(ko,ro).width)),vo=Math.min(...po.map(ko=>ko.y)),bo=Math.max(...po.map(ko=>ko.y+getNodeSize(ko,ro).height)),xo=ho-((oo=(no=eo.padding)===null||no===void 0?void 0:no.left)!==null&&oo!==void 0?oo:0),_o=vo-((so=(io=eo.padding)===null||io===void 0?void 0:io.top)!==null&&so!==void 0?so:0),So=bo-_o+((lo=(ao=eo.padding)===null||ao===void 0?void 0:ao.bottom)!==null&&lo!==void 0?lo:0),Eo=mo-xo+((co=(uo=eo.padding)===null||uo===void 0?void 0:uo.left)!==null&&co!==void 0?co:0);return{x:xo,y:_o,width:Eo,height:So}}var MouseEventButton;(function(eo){eo[eo.Primary=0]="Primary",eo[eo.Auxiliary=1]="Auxiliary",eo[eo.Secondary=2]="Secondary",eo[eo.Fourth=4]="Fourth",eo[eo.Fifth=5]="Fifth"})(MouseEventButton||(MouseEventButton={}));var MouseEventButtons;(function(eo){eo[eo.None=0]="None",eo[eo.Left=1]="Left",eo[eo.Right=2]="Right",eo[eo.Middle=4]="Middle"})(MouseEventButtons||(MouseEventButtons={}));const DEFAULT_AUTO_ALIGN_THRESHOLD=50,COPIED_NODE_SPACING=50,NODE_MIN_VISIBLE_LENGTH=5,NODE_MAX_VISIBLE_LENGTH=500,defaultColors={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"},RectComponent=eo=>{const{style:to,node:ro,width:no,height:oo,textY:io}=eo,so=ro.data&&ro.data.comment?ro.data.comment:"",ao=isNodeEditing(ro);return jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.jsx("rect",{width:no,height:oo,x:ro.x,y:ro.y,style:to,rx:to.borderRadius}),jsxRuntimeExports.jsx("text",Object.assign({x:ro.x,y:io,fontSize:12},{children:ro.name})),ro.data&&ro.data.comment&&!ao&&jsxRuntimeExports.jsx("text",Object.assign({x:ro.x,y:io+20,fontSize:12,className:`comment-${ro.id}`},{children:ro.data.comment})),ao&&jsxRuntimeExports.jsx("foreignObject",Object.assign({x:ro.x,y:io,height:oo/2.5,width:no-5},{children:jsxRuntimeExports.jsx("input",{value:so,placeholder:"Input your comment here"})}))]},ro.id)},rect={getMinHeight(){return 150},getMinWidth(){return 150},render(eo){const to=eo.model,ro=getRectWidth(rect,to),no=getRectHeight(rect,to),oo=has$1(GraphNodeStatus.Selected|GraphNodeStatus.Activated)(to.status)?{fill:defaultColors.nodeActivateFill,stroke:defaultColors.nodeActivateStroke}:{fill:defaultColors.nodeFill,fillOpacity:.1,stroke:defaultColors.nodeStroke,borderRadius:"5"},io=to.y+no/3;return jsxRuntimeExports.jsx(RectComponent,{style:oo,node:to,width:ro,height:no,textY:io})}},getCurvePathD=(eo,to,ro,no)=>`M${eo},${ro}C${eo},${ro-getControlPointDistance(ro,no)},${to},${no+5+getControlPointDistance(ro,no)},${to},${no+5}`,getControlPointDistance=(eo,to)=>Math.min(5*15,Math.max(5*3,Math.abs((eo-(to+5))/2))),line$1={render(eo){const to=eo.model,ro={cursor:"crosshair",stroke:has$1(GraphEdgeStatus.Selected)(to.status)?defaultColors.edgeColorSelected:defaultColors.edgeColor,strokeWidth:"2"};return jsxRuntimeExports.jsx("path",{d:getCurvePathD(eo.x2,eo.x1,eo.y2,eo.y1),fill:"none",style:ro,id:`edge${to.id}`},to.id)}};class DefaultPort{getStyle(to,ro,no,oo,io){const so=defaultColors.portStroke;let ao=defaultColors.portFill;return(oo||io)&&(ao=defaultColors.connectedPortColor),has$1(GraphPortStatus.Activated)(to.status)&&(ao=defaultColors.primaryColor),{stroke:so,fill:ao}}getIsConnectable(){return!0}render(to){const{model:ro,data:no,parentNode:oo}=to,io=no.isPortConnectedAsSource(oo.id,ro.id),so=no.isPortConnectedAsTarget(oo.id,ro.id),ao=this.getStyle(ro,oo,no,io,so),{x:lo,y:uo}=to,co=`${lo-5} ${uo}, ${lo+7} ${uo}, ${lo+1} ${uo+8}`;return so?jsxRuntimeExports.jsx("polygon",{points:co,style:ao}):jsxRuntimeExports.jsx("circle",{r:5,cx:lo,cy:uo,style:ao},`${to.parentNode.id}-${to.model.id}`)}}const defaultPort=new DefaultPort;class DefaultClipboard{constructor(to){this.storage=to}write(to){this.storage.setItem("graph-clipboard",JSON.stringify({nodes:to.nodes.map(ro=>Object.assign(Object.assign({},ro),{data:{}})),edges:to.edges.map(ro=>Object.assign(Object.assign({},ro),{data:{}}))}))}read(){const to=this.storage.getItem("graph-clipboard");if(!to)return null;try{const ro=JSON.parse(to),no=new Map;return{nodes:ro.nodes.map(oo=>{const io=v4();return no.set(oo.id,io),Object.assign(Object.assign({},oo),{x:oo.x+COPIED_NODE_SPACING,y:oo.y+COPIED_NODE_SPACING,id:io})}),edges:ro.edges.map(oo=>Object.assign(Object.assign({},oo),{id:v4(),source:no.get(oo.source)||"",target:no.get(oo.target)||""}))}}catch{return null}}}class DefaultStorage{get length(){return this.items.size}constructor(){this.key=()=>"DefaultLocalStorage",this.items=new Map}clear(){this.items=new Map}setItem(to,ro){this.items.set(to,ro)}getItem(to){return this.items.has(to)?this.items.get(to):null}removeItem(to){this.items.delete(to)}}class GraphConfigBuilder{constructor(){const to=new DefaultStorage,ro=new DefaultClipboard(to);this.draft={getNodeConfig:()=>rect,getEdgeConfig:()=>line$1,getPortConfig:()=>defaultPort,getGroupConfig:()=>{},getClipboard:()=>ro}}static default(){return new GraphConfigBuilder}static from(to){return new GraphConfigBuilder().registerNode(to.getNodeConfig.bind(to)).registerEdge(to.getEdgeConfig.bind(to)).registerPort(to.getPortConfig.bind(to)).registerGroup(to.getGroupConfig.bind(to)).registerClipboard(to.getClipboard.bind(to))}registerNode(to){return this.draft.getNodeConfig=to,this}registerEdge(to){return this.draft.getEdgeConfig=to,this}registerPort(to){return this.draft.getPortConfig=to,this}registerGroup(to){return this.draft.getGroupConfig=to,this}registerClipboard(to){return this.draft.getClipboard=to,this}build(){return this.draft}}const GraphConfigContext=reactExports.createContext(GraphConfigBuilder.default().build());var MenuType;(function(eo){eo.Node="node",eo.Edge="edge",eo.Port="port",eo.Canvas="canvas",eo.Multi="multi"})(MenuType||(MenuType={}));class ContextMenuConfig{constructor(){this.contextMenu=new Map}registerContextMenu(to){this.contextMenuProps=Object.assign({},to)}registerMenu(to,ro){this.contextMenu.set(ro,to)}getMenu(to){if(this.contextMenuProps&&this.contextMenu.has(to)){const{className:ro,styles:no}=this.contextMenuProps;return reactExports.createElement("div",{className:ro,style:no},this.contextMenu.get(to))}return null}}const ContextMenuConfigContext=reactExports.createContext(new ContextMenuConfig),emptySelectBoxPosition=()=>({startX:0,startY:0,height:0,width:0}),SelectBox=eo=>{const{selectBoxPosition:to,style:ro}=eo,no=`m${to.startX} ${to.startY} v ${to.height} h ${to.width} v${-to.height} h ${-to.width}`,oo=ro??{fill:"none",stroke:defaultColors.defaultColor};return jsxRuntimeExports.jsx("path",{style:oo,d:no})};var GraphFeatures;(function(eo){eo.NodeDraggable="nodeDraggable",eo.NodeResizable="nodeResizable",eo.ClickNodeToSelect="clickNodeToSelect",eo.PanCanvas="panCanvas",eo.MultipleSelect="multipleSelect",eo.LassoSelect="lassoSelect",eo.Delete="delete",eo.AddNewNodes="addNewNodes",eo.AddNewEdges="addNewEdges",eo.AddNewPorts="addNewPorts",eo.AutoFit="autoFit",eo.CanvasHorizontalScrollable="canvasHorizontalScrollable",eo.CanvasVerticalScrollable="canvasVerticalScrollable",eo.NodeHoverView="nodeHoverView",eo.PortHoverView="portHoverView",eo.AddEdgesByKeyboard="addEdgesByKeyboard",eo.A11yFeatures="a11YFeatures",eo.EditNode="editNode",eo.AutoAlign="autoAlign",eo.UndoStack="undoStack",eo.CtrlKeyZoom="ctrlKeyZoom",eo.LimitBoundary="limitBoundary",eo.EditEdge="editEdge",eo.InvisibleScrollbar="InvisibleScrollbar"})(GraphFeatures||(GraphFeatures={}));GraphFeatures.NodeDraggable,GraphFeatures.NodeResizable,GraphFeatures.ClickNodeToSelect,GraphFeatures.PanCanvas,GraphFeatures.MultipleSelect,GraphFeatures.LassoSelect,GraphFeatures.Delete,GraphFeatures.AddNewNodes,GraphFeatures.AddNewEdges,GraphFeatures.AddNewPorts,GraphFeatures.CanvasHorizontalScrollable,GraphFeatures.CanvasVerticalScrollable,GraphFeatures.NodeHoverView,GraphFeatures.PortHoverView,GraphFeatures.AddEdgesByKeyboard,GraphFeatures.A11yFeatures,GraphFeatures.AutoFit,GraphFeatures.EditNode,GraphFeatures.AutoAlign,GraphFeatures.UndoStack,GraphFeatures.CtrlKeyZoom,GraphFeatures.LimitBoundary,GraphFeatures.EditEdge;const defaultFeatures=new Set([GraphFeatures.NodeDraggable,GraphFeatures.NodeResizable,GraphFeatures.ClickNodeToSelect,GraphFeatures.PanCanvas,GraphFeatures.MultipleSelect,GraphFeatures.Delete,GraphFeatures.AddNewNodes,GraphFeatures.AddNewEdges,GraphFeatures.AddNewPorts,GraphFeatures.CanvasHorizontalScrollable,GraphFeatures.CanvasVerticalScrollable,GraphFeatures.NodeHoverView,GraphFeatures.PortHoverView,GraphFeatures.AddEdgesByKeyboard,GraphFeatures.A11yFeatures,GraphFeatures.EditNode,GraphFeatures.AutoAlign,GraphFeatures.UndoStack,GraphFeatures.CtrlKeyZoom,GraphFeatures.LimitBoundary]),dataReadonlyMode=new Set([GraphFeatures.NodeDraggable,GraphFeatures.NodeResizable,GraphFeatures.ClickNodeToSelect,GraphFeatures.PanCanvas,GraphFeatures.MultipleSelect,GraphFeatures.CanvasHorizontalScrollable,GraphFeatures.CanvasVerticalScrollable,GraphFeatures.NodeHoverView,GraphFeatures.PortHoverView,GraphFeatures.A11yFeatures,GraphFeatures.CtrlKeyZoom,GraphFeatures.LimitBoundary]);GraphFeatures.ClickNodeToSelect,GraphFeatures.CanvasHorizontalScrollable,GraphFeatures.CanvasVerticalScrollable,GraphFeatures.NodeHoverView,GraphFeatures.PortHoverView,GraphFeatures.A11yFeatures,GraphFeatures.LassoSelect,GraphFeatures.LimitBoundary;const previewMode=new Set([GraphFeatures.NodeHoverView,GraphFeatures.PortHoverView,GraphFeatures.AutoFit]),emptyDummyNodes=()=>({dx:0,dy:0,dWidth:0,dHeight:0,alignedDX:void 0,alignedDY:void 0,nodes:[],isVisible:!1}),is$1$1=Object.is;let MapIterator$1=class{constructor(to,ro){this.upstream=to,this.f=ro}[Symbol.iterator](){return this}next(){const to=this.upstream.next();return to.done?to:{done:!1,value:this.f(to.value)}}};var NodeType$1;(function(eo){eo[eo.Bitmap=0]="Bitmap",eo[eo.Collision=1]="Collision"})(NodeType$1||(NodeType$1={}));const HASH_CODE_LENGTH=30,BIT_PARTITION_SIZE=5,FULL_MASK=1073741823;function bitPosFrom(eo){return 1<>>to&31}function bitCount(eo){return eo|=0,eo-=eo>>>1&1431655765,eo=(eo&858993459)+(eo>>>2&858993459),eo=eo+(eo>>>4)&252645135,eo+=eo>>>8,eo+=eo>>>16,eo&127}let BitmapIndexedNode$1=class Yp{get valueCount(){return this.values.length}get nodeCount(){return this.children.length}constructor(to,ro,no,oo,io,so,ao,lo){this.type=NodeType$1.Bitmap,this.owner=to,this.dataMap=ro,this.nodeMap=no,this.keys=oo,this.values=io,this.children=so,this.hashes=ao,this.size=lo}static empty(to){return new Yp(to,0,0,[],[],[],[],0)}getKey(to){return this.keys[to]}getValue(to){return this.values[to]}getHash(to){return this.hashes[to]}getNode(to){return this.children[to]}contains(to,ro,no){const oo=maskFrom(ro,no),io=bitPosFrom(oo),{dataMap:so,nodeMap:ao}=this;if(so&io){const lo=indexFrom(so,oo,io),uo=this.getKey(lo);return is$1$1(uo,to)}else if(ao&io){const lo=indexFrom(ao,oo,io);return this.getNode(lo).contains(to,ro,no+BIT_PARTITION_SIZE)}return!1}get(to,ro,no){const oo=maskFrom(ro,no),io=bitPosFrom(oo),{dataMap:so,nodeMap:ao}=this;if(so&io){const lo=indexFrom(so,oo,io),uo=this.getKey(lo);return is$1$1(uo,to)?this.getValue(lo):void 0}else if(ao&io){const lo=indexFrom(ao,oo,io);return this.getNode(lo).get(to,ro,no+BIT_PARTITION_SIZE)}}insert(to,ro,no,oo,io){const so=maskFrom(oo,io),ao=bitPosFrom(so),{dataMap:lo,nodeMap:uo}=this;if(lo&ao){const co=indexFrom(lo,so,ao),fo=this.getKey(co),po=this.getValue(co),ho=this.getHash(co);if(ho===oo&&is$1$1(fo,ro))return is$1$1(po,no)?this:this.setValue(to,no,co);{const mo=mergeTwoKeyValPairs(to,fo,po,ho,ro,no,oo,io+BIT_PARTITION_SIZE);return this.migrateInlineToNode(to,ao,mo)}}else if(uo&ao){const co=indexFrom(uo,so,ao),po=this.getNode(co).insert(to,ro,no,oo,io+BIT_PARTITION_SIZE);return this.setNode(to,1,po,ao)}return this.insertValue(to,ao,ro,oo,no)}update(to,ro,no,oo,io){const so=maskFrom(oo,io),ao=bitPosFrom(so),{dataMap:lo,nodeMap:uo}=this;if(lo&ao){const co=indexFrom(lo,so,ao),fo=this.getKey(co);if(this.getHash(co)===oo&&is$1$1(fo,ro)){const ho=this.getValue(co),mo=no(ho);return is$1$1(ho,mo)?this:this.setValue(to,mo,co)}}else if(uo&ao){const co=indexFrom(uo,so,ao),fo=this.getNode(co),po=fo.update(to,ro,no,oo,io+BIT_PARTITION_SIZE);return po===fo?this:this.setNode(to,0,po,ao)}return this}remove(to,ro,no,oo){const io=maskFrom(no,oo),so=bitPosFrom(io);if(this.dataMap&so){const ao=indexFrom(this.dataMap,io,so),lo=this.getKey(ao);return is$1$1(lo,ro)?this.removeValue(to,so):void 0}else if(this.nodeMap&so){const ao=indexFrom(this.nodeMap,io,so),lo=this.getNode(ao),uo=lo.remove(to,ro,no,oo+BIT_PARTITION_SIZE);if(uo===void 0)return;const[co,fo]=uo;return co.size===1?this.size===lo.size?[new Yp(to,so,0,[co.getKey(0)],[co.getValue(0)],[],[co.getHash(0)],1),fo]:[this.migrateNodeToInline(to,so,co),fo]:[this.setNode(to,-1,co,so),fo]}}toOwned(to){return this.owner===to?this:new Yp(to,this.dataMap,this.nodeMap,this.keys.slice(),this.values.slice(),this.children.slice(),this.hashes.slice(),this.size)}iter(){return new BitmapIndexedNodeIterator(this)}map(to,ro){const no=this.valueCount,oo=[],io=[],so=[];let ao=!0;for(let lo=0;lo=HASH_CODE_LENGTH)return new HashCollisionNode$1(eo,no,[to,oo],[ro,io]);{const lo=maskFrom(no,ao),uo=maskFrom(so,ao);if(lo!==uo){const co=bitPosFrom(lo)|bitPosFrom(uo);return lois$1$1(no,to));return ro>=0?this.values[ro]:void 0}insert(to,ro,no){const oo=this.keys.findIndex(io=>is$1$1(io,ro));if(oo>=0){const io=this.values[oo];if(is$1$1(io,no))return this;const so=this.toOwned(to);return so.values[oo]=no,so}else{const io=this.toOwned(to);return io.keys.push(ro),io.values.push(no),io}}update(to,ro,no){const oo=this.keys.findIndex(io=>is$1$1(io,ro));if(oo>=0){const io=this.values[oo],so=no(io);if(is$1$1(io,so))return this;const ao=this.toOwned(to);return ao.values[oo]=so,ao}return this}remove(to,ro){const no=this.keys.findIndex(io=>is$1$1(io,ro));if(no===-1)return;const oo=this.getValue(no);return[new Lm(to,this.hash,this.keys.filter((io,so)=>so!==no),this.values.filter((io,so)=>so!==no)),oo]}getKey(to){return this.keys[to]}getValue(to){return this.values[to]}getHash(){return this.hash}iter(){return new HashCollisionNodeIterator(this)}map(to,ro){const no=this.size,oo=[];let io=!1;for(let so=0;so=this.node.size)return{done:!0,value:void 0};const to=this.node.getKey(this.index),ro=this.node.getValue(this.index);return this.index+=1,{done:!1,value:[to,ro]}}clone(){const to=new HashCollisionNodeIterator(this.node);return to.index=this.index,to}}function hashing(eo){if(eo===null)return 1108378658;switch(typeof eo){case"boolean":return eo?839943201:839943200;case"number":return hashNumber$1(eo);case"string":return hashString$1(eo);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 hashString$1(String(eo))}}function hashString$1(eo){let to=0;for(let ro=0;ro4294967295;)eo/=4294967295,to^=eo;return smi$1(to)}function smi$1(eo){return eo&1073741823}class Uid{constructor(){this.id=0}take(){return this.id+=1,this.id}peek(){return this.id+1}}const uid$1=new Uid;class HashMap{get size(){return this.root.size}constructor(to){this.id=uid$1.take(),this.root=to}static empty(){return HashMapBuilder.empty().finish()}static from(to){return HashMapBuilder.from(to).finish()}get(to){const ro=hashing(to);return this.root.get(to,ro,0)}has(to){const ro=hashing(to);return this.root.contains(to,ro,0)}set(to,ro){return this.withRoot(this.root.insert(uid$1.peek(),to,ro,hashing(to),0))}update(to,ro){return this.withRoot(this.root.update(uid$1.peek(),to,ro,hashing(to),0))}delete(to){const ro=hashing(to),no=uid$1.peek(),oo=this.root.remove(no,to,ro,0);return oo===void 0?this:new HashMap(oo[0])}clone(){return new HashMap(this.root)}[Symbol.iterator](){return this.entries()}entries(){return this.root.iter()}values(){return new MapIterator$1(this.entries(),([,to])=>to)}mutate(){return new HashMapBuilder(this.root)}map(to){return new HashMap(this.root.map(uid$1.peek(),to))}filter(to){const ro=this.mutate();return this.forEach((no,oo)=>{to(no,oo)||ro.delete(oo)}),ro.finish()}forEach(to){this.root.forEach(to)}find(to){return this.root.find(to)}withRoot(to){return to===this.root?this:new HashMap(to)}}class HashMapBuilder{constructor(to){this.id=uid$1.take(),this.root=to}static empty(){const to=uid$1.peek(),ro=BitmapIndexedNode$1.empty(to);return new HashMapBuilder(ro)}static from(to){if(Array.isArray(to))return HashMapBuilder.fromArray(to);const ro=to[Symbol.iterator](),no=HashMapBuilder.empty();let oo=ro.next();for(;!oo.done;){const[io,so]=oo.value;no.set(io,so),oo=ro.next()}return no}static fromArray(to){const ro=HashMapBuilder.empty();for(let no=0;no=to?ro:no;const oo=ro+no>>>1;if(eo[oo]===to)return oo;to=MIN_SIZE$1)return uo;if(no===oo)return uo.balanceTail(lo),uo;const co=this.getValue(no);return uo.balanceChild(to,lo,ao,co,no)}}removeMostRight(to){const ro=this.selfSize,[no,oo,io]=this.getChild(ro).removeMostRight(to),so=this.toOwned(to);return so.size-=1,so.children[ro]=io,io.selfSizeMIN_SIZE$1)this.rotateRight(ro,ao,io,so);else if(lo.selfSize>MIN_SIZE$1)this.rotateLeft(ro,lo,io,so);else{const uo=ao.toOwned(to),co=lo.toOwned(to),fo=ro.getKey(HALF_NODE_SPLIT),po=ro.getValue(HALF_NODE_SPLIT);uo.keys.push(this.getKey(io-1)),uo.values.push(this.getValue(io-1)),uo.keys.push(...ro.keys.slice(0,HALF_NODE_SPLIT)),uo.values.push(...ro.values.slice(0,HALF_NODE_SPLIT)),co.keys.unshift(no),co.values.unshift(oo),co.keys.unshift(...ro.keys.slice(HALF_NODE_SPLIT+1,MIN_SIZE$1)),co.values.unshift(...ro.values.slice(HALF_NODE_SPLIT+1,MIN_SIZE$1)),this.keys.splice(io-1,2,fo),this.values.splice(io-1,2,po),this.children.splice(io-1,3,uo,co),so&&(uo.children.push(...ro.children.slice(0,HALF_NODE_SPLIT+1)),co.children.unshift(...ro.children.slice(HALF_NODE_SPLIT+1,MIN_SIZE$1+1)),uo.updateSize(),co.updateSize())}return this}rotateLeft(to,ro,no,oo){const io=ro.toOwned(this.owner),so=io.keys.shift(),ao=io.values.shift(),lo=this.getKey(no),uo=this.getValue(no);if(to.keys.push(lo),to.values.push(uo),this.keys[no]=so,this.values[no]=ao,this.children[no+1]=io,oo){const co=io.children.shift();to.children.push(co);const fo=co.size+1;to.size+=fo,io.size-=fo}}rotateRight(to,ro,no,oo){const io=ro.toOwned(this.owner),so=io.keys.pop(),ao=io.values.pop(),lo=this.getKey(no-1),uo=this.getValue(no-1);if(to.keys.unshift(lo),to.values.unshift(uo),this.keys[no-1]=so,this.values[no-1]=ao,this.children[no-1]=io,oo){const co=io.children.pop();to.children.unshift(co);const fo=co.size+1;to.size+=fo,io.size-=fo}}balanceTail(to){const ro=this.selfSize,no=this.getChild(ro-1),oo=to.type===NodeType.Internal;no.selfSize===MIN_SIZE$1?(to.keys.unshift(this.getKey(ro-1)),to.values.unshift(this.getValue(ro-1)),to.keys.unshift(...no.keys),to.values.unshift(...no.values),this.keys.splice(ro-1,1),this.values.splice(ro-1,1),this.children.splice(ro-1,1),oo&&(to.children.unshift(...no.children),to.size+=no.size+1)):this.rotateRight(to,no,ro,oo)}balanceHead(to){const ro=this.getChild(1),no=to.type===NodeType.Internal;ro.selfSize===MIN_SIZE$1?(to.keys.push(this.getKey(0)),to.values.push(this.getValue(0)),to.keys.push(...ro.keys),to.values.push(...ro.values),this.keys.splice(0,1),this.values.splice(0,1),this.children.splice(1,1),no&&(to.children.push(...ro.children),to.size+=ro.size+1)):this.rotateLeft(to,ro,0,no)}updateWithSplit(to,ro,no,oo,io,so){const ao=this.toOwned(to);ao.keys.splice(so,0,oo),ao.values.splice(so,0,io),ao.children.splice(so,1,ro,no);const lo=new InternalNode(to,ao.keys.splice(16,16),ao.values.splice(16,16),ao.children.splice(16,17),0),uo=ao.keys.pop(),co=ao.values.pop();return ao.updateSize(),lo.updateSize(),[ao,lo,uo,co]}updateSize(){let to=this.selfSize;const ro=this.children.length;for(let no=0;no{const[so,ao]=io,lo=ro(ao);return is$1$1(lo,ao)?io:[so,lo]});return this.withRoot(this.itemId,this.hashRoot,oo)}[Symbol.iterator](){return this.entries()}clone(){return new Xp(this.itemId,this.hashRoot,this.sortedRoot)}entries(){return new OrderedMapIterator(new BTreeIterator(this.sortedRoot))}values(){return new MapIterator$1(this.entries(),([,to])=>to)}mutate(){return new OrderedMapBuilder(this.itemId,this.hashRoot,this.sortedRoot)}map(to){const ro=uid.peek(),no=io=>{const[so,ao]=io,lo=to(ao,so);return is$1$1(ao,lo)?io:[so,lo]},oo=this.sortedRoot.map(ro,no);return new Xp(this.itemId,this.hashRoot,oo)}forEach(to){this.sortedRoot.forEach(([ro,no])=>{to(no,ro)})}find(to){const ro=this.sortedRoot.find(([,no])=>to(no));return ro?ro[1]:void 0}first(){const to=this.entries().next();if(!to.done)return to.value[1]}filter(to){const ro=this.mutate();return this.forEach((no,oo)=>{to(no,oo)||ro.delete(oo)}),ro.finish()}withRoot(to,ro,no){return ro===this.hashRoot&&no===this.sortedRoot?this:new Xp(to,ro,no)}};class OrderedMapIterator{constructor(to){this.delegate=to}[Symbol.iterator](){return this.clone()}next(){const to=this.delegate.next();return to.done?{done:!0,value:void 0}:{done:!1,value:to.value[1]}}clone(){return new OrderedMapIterator(this.delegate.clone())}}class OrderedMapBuilder{constructor(to,ro,no){this.id=uid.take(),this.itemId=to,this.hashRoot=ro,this.sortedRoot=no}static empty(){const to=uid.peek(),ro=BitmapIndexedNode$1.empty(to),no=emptyRoot(to);return new OrderedMapBuilder(0,ro,no)}static from(to){if(Array.isArray(to))return OrderedMapBuilder.fromArray(to);const ro=OrderedMapBuilder.empty(),no=to[Symbol.iterator]();let oo=no.next();for(;!oo.done;){const[io,so]=oo.value;ro.set(io,so),oo=no.next()}return ro}static fromArray(to){const ro=OrderedMapBuilder.empty();for(let no=0;no{const[io,so]=oo,ao=ro(so);return is$1$1(ao,so)?oo:[io,ao]}),this):this}finish(){return new OrderedMap$1(this.itemId,this.hashRoot,this.sortedRoot)}}const getPortPosition=(eo,to,ro)=>{const no=getRectWidth(ro,eo),oo=getRectHeight(ro,eo),io=to.position?to.position[0]*no:no*.5,so=eo.x+io,ao=to.position?to.position[1]*oo:oo,lo=eo.y+ao;return{x:so,y:lo}},getPortPositionByPortId=(eo,to,ro)=>{const no=getNodeConfig(eo,ro);if(!no)return;const io=(eo.ports||[]).find(so=>so.id===to);if(!io){Debug.warn(`invalid port id ${JSON.stringify(io)}`);return}return getPortPosition(eo,io,no)},identical=eo=>eo,isMobile=()=>[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some(to=>navigator.userAgent.match(to));var BrowserType;(function(eo){eo.Unknown="Unknown",eo.Edge="Edge",eo.EdgeChromium="EdgeChromium",eo.Opera="Opera",eo.Chrome="Chrome",eo.IE="IE",eo.Firefox="Firefox",eo.Safari="Safari",eo.Electron="Electron"})(BrowserType||(BrowserType={}));const getBrowser=()=>{const eo=navigator.userAgent.toLowerCase();if(eo.indexOf("electron")>-1)return BrowserType.Electron;switch(!0){case eo.indexOf("edge")>-1:return BrowserType.Edge;case eo.indexOf("edg")>-1:return BrowserType.EdgeChromium;case(eo.indexOf("opr")>-1&&!!window.opr):return BrowserType.Opera;case(eo.indexOf("chrome")>-1&&!!window.chrome):return BrowserType.Chrome;case eo.indexOf("trident")>-1:return BrowserType.IE;case eo.indexOf("firefox")>-1:return BrowserType.Firefox;case eo.indexOf("safari")>-1:return BrowserType.Safari;default:return BrowserType.Unknown}},isSupported=()=>{if(isMobile())return!1;const eo=getBrowser();return[BrowserType.Chrome,BrowserType.EdgeChromium,BrowserType.Firefox,BrowserType.Safari,BrowserType.Electron].indexOf(eo)>-1},isMacOs=navigator.userAgent.includes("Macintosh"),metaControl=eo=>isMacOs?eo.metaKey:eo.ctrlKey,checkIsMultiSelect=eo=>eo.shiftKey||metaControl(eo),transformPoint=(eo,to,ro)=>({x:ro[0]*eo+ro[2]*to+ro[4],y:ro[1]*eo+ro[3]*to+ro[5]}),reverseTransformPoint=(eo,to,ro)=>{const[no,oo,io,so,ao,lo]=ro;return{x:((eo-ao)*so-(to-lo)*io)/(no*so-oo*io),y:((eo-ao)*oo-(to-lo)*no)/(oo*io-no*so)}},getPointDeltaByClientDelta=(eo,to,ro)=>{const[no,oo,io,so]=ro,ao=so*eo/(no*so-oo*io)+io*to/(oo*io-no*so),lo=oo*eo/(oo*io-no*so)+no*to/(no*so-oo*io);return{x:ao,y:lo}},getClientDeltaByPointDelta=(eo,to,ro)=>{if(!ro)return{x:eo,y:to};const[no,oo,io,so]=ro;return transformPoint(eo,to,[no,oo,io,so,0,0])},getRealPointFromClientPoint=(eo,to,ro)=>{const{rect:no}=ro,oo=eo-no.left,io=to-no.top;return reverseTransformPoint(oo,io,ro.transformMatrix)},getClientPointFromRealPoint=(eo,to,ro)=>{const{x:no,y:oo}=transformPoint(eo,to,ro.transformMatrix),{rect:io}=ro;return{x:no+io.left,y:oo+io.top}},getContainerClientPoint=(eo,to,ro)=>{const no=getClientPointFromRealPoint(eo,to,ro),{rect:oo}=ro;return{x:no.x-oo.left,y:no.y-oo.top}};function markEdgeDirty(eo,to){eo.update(to,ro=>ro.shallow())}const getNearestConnectablePort=eo=>{const{parentNode:to,clientX:ro,clientY:no,graphConfig:oo,viewport:io}=eo;let so=1/0,ao;if(!to.ports)return;const lo=getRealPointFromClientPoint(ro,no,io);return to.ports.forEach(uo=>{if(isConnectable(oo,Object.assign(Object.assign({},eo),{model:uo}))){const co=getPortPositionByPortId(to,uo.id,oo);if(!co)return;const fo=lo.x-co.x,po=lo.y-co.y,ho=fo*fo+po*po;ho{const ro=eo.getPortConfig(to.model);return ro?ro.getIsConnectable(to):!1},filterSelectedItems=eo=>{const to=new Map,ro=[];return eo.nodes.forEach(({inner:no})=>{isSelected(no)&&to.set(no.id,no)}),eo.edges.forEach(({inner:no})=>{(isSelected(no)||to.has(no.source)&&to.has(no.target))&&ro.push(no)}),{nodes:Array.from(to.values()),edges:ro}},getNeighborPorts=(eo,to,ro)=>{const no=[],oo=eo.getEdgesBySource(to,ro),io=eo.getEdgesByTarget(to,ro);return oo==null||oo.forEach(so=>{const ao=eo.edges.get(so);ao&&no.push({nodeId:ao.target,portId:ao.targetPortId})}),io==null||io.forEach(so=>{const ao=eo.edges.get(so);ao&&no.push({nodeId:ao.source,portId:ao.sourcePortId})}),no},unSelectAllEntity=()=>eo=>eo.mapNodes(to=>to.update(ro=>{var no;const oo=Object.assign(Object.assign({},ro),{ports:(no=ro.ports)===null||no===void 0?void 0:no.map(updateStatus(replace$1(GraphPortStatus.Default)))});return updateStatus(replace$1(GraphNodeStatus.Default))(oo)})).mapEdges(to=>to.update(updateStatus(replace$1(GraphEdgeStatus.Default)))),nodeSelection=(eo,to)=>{if(isNodeEditing(to))return identical;const ro=checkIsMultiSelect(eo);return isSelected(to)&&!ro?identical:no=>{const oo=ro?io=>io.id!==to.id?isSelected(io):eo.button===MouseEventButton.Secondary?!0:!isSelected(to):io=>io.id===to.id;return no.selectNodes(oo,to.id)}},getNodeAutomationId=eo=>{var to;return`node-container-${(to=eo.name)!==null&&to!==void 0?to:"unnamed"}-${eo.id}`},getPortAutomationId=(eo,to)=>`port-${to.name}-${to.id}-${eo.name}-${eo.id}`,getNodeUid=(eo,to)=>`node:${eo}:${to.id}`,getPortUid=(eo,to,ro)=>`port:${eo}:${to.id}:${ro.id}`,getEdgeUid=(eo,to)=>`edge:${eo}:${to.id}`;function preventSpread(eo){Object.defineProperty(eo,"__preventSpread",{enumerable:!0,configurable:!1,get(){document.currentScript&&Debug.error(`${eo.constructor.name} is a class, which should not be used in the spread syntax or argument of Object.assign`)}})}class EdgeModel{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(to){this.inner=to,preventSpread(this)}static fromJSON(to){return new EdgeModel(to)}updateStatus(to){return this.update(updateStatus(to))}update(to){const ro=to(this.inner);return ro===this.inner?this:new EdgeModel(ro)}shallow(){return new EdgeModel(this.inner)}toJSON(){return this.inner}}const is$2=Object.is;function mapCow(eo,to){const ro=[];let no=!0;for(let oo=0;oono.id===to)}link({prev:to,next:ro}){return to===this.prev&&ro===this.next?this:new NodeModel(this.inner,this.portPositionCache,to??this.prev,ro??this.next)}updateStatus(to){return this.update(updateStatus(to))}update(to){const ro=to(this.inner);return ro===this.inner?this:new NodeModel(ro,new Map,this.prev,this.next)}updateData(to){return this.data?this.update(ro=>{const no=to(ro.data);return no===ro.data?ro:Object.assign(Object.assign({},ro),{data:no})}):this}getPortPosition(to,ro){let no=this.portPositionCache.get(to);return no||(no=getPortPositionByPortId(this.inner,to,ro),this.portPositionCache.set(to,no)),no}hasPort(to){var ro;return!!(!((ro=this.inner.ports)===null||ro===void 0)&&ro.find(no=>no.id===to))}updatePositionAndSize(to){const{x:ro,y:no,width:oo,height:io}=to,so=Object.assign(Object.assign({},this.inner),{x:ro,y:no,width:oo??this.inner.width,height:io??this.inner.height});return new NodeModel(so,new Map,this.prev,this.next)}updatePorts(to){if(!this.inner.ports)return this;const ro=mapCow(this.inner.ports,to),no=this.inner.ports===ro?this.inner:Object.assign(Object.assign({},this.inner),{ports:ro});return no===this.inner?this:new NodeModel(no,new Map,this.prev,this.next)}invalidCache(){return new NodeModel(this.inner,new Map,this.prev,this.next)}toJSON(){return this.inner}}class GraphModel{constructor(to){this.nodes=to.nodes,this.edges=to.edges,this.groups=to.groups,this.head=to.head,this.tail=to.tail,this.edgesBySource=to.edgesBySource,this.edgesByTarget=to.edgesByTarget,this.selectedNodes=to.selectedNodes,preventSpread(this)}static empty(){return new GraphModel({nodes:OrderedMap$1.empty(),edges:HashMap.empty(),groups:[],head:void 0,tail:void 0,edgesBySource:HashMap.empty(),edgesByTarget:HashMap.empty(),selectedNodes:new Set})}static fromJSON(to){var ro;const no=OrderedMap$1.empty().mutate(),oo=HashMap.empty().mutate();let io,so;if(to.nodes.length===0)io=void 0,so=void 0;else if(to.nodes.length===1){const uo=to.nodes[0];no.set(uo.id,NodeModel.fromJSON(uo,void 0,void 0)),io=uo.id,so=uo.id}else{const uo=to.nodes[0],co=to.nodes[1],fo=to.nodes[to.nodes.length-1];io=uo.id,so=fo.id,no.set(uo.id,NodeModel.fromJSON(uo,void 0,co.id));let po=to.nodes[0];if(to.nodes.length>2)for(let ho=1;hoao.update(ro));if(io===this.nodes)return this;const so=this.edges.mutate();return(no=this.edgesBySource.get(to))===null||no===void 0||no.forEach(ao=>{ao.forEach(lo=>{markEdgeDirty(so,lo)})}),(oo=this.edgesByTarget.get(to))===null||oo===void 0||oo.forEach(ao=>{ao.forEach(lo=>{markEdgeDirty(so,lo)})}),this.merge({nodes:io,edges:so.finish()})}updateNodeData(to,ro){return this.merge({nodes:this.nodes.update(to,no=>no.updateData(ro))})}updatePort(to,ro,no){const oo=this.nodes.update(to,io=>io.updatePorts(so=>so.id===ro?no(so):so));return this.merge({nodes:oo})}insertNode(to){const ro=this.nodes.mutate().set(to.id,NodeModel.fromJSON(to,this.tail,void 0));return this.tail&&!this.nodes.has(to.id)&&ro.update(this.tail,no=>no.link({next:to.id})),this.merge({nodes:ro.finish(),head:this.nodes.size===0?to.id:this.head,tail:to.id})}deleteItems(to){var ro;const no=new Set,oo=this.nodes.mutate();let io=this.head===void 0?void 0:this.nodes.get(this.head),so=io,ao;const lo=this.edgesBySource.mutate(),uo=this.edgesByTarget.mutate();for(;so!==void 0;){const fo=so.next?this.nodes.get(so.next):void 0;!((ro=to.node)===null||ro===void 0)&&ro.call(to,so.inner)?(oo.update(so.id,po=>po.link({prev:ao==null?void 0:ao.id}).update(ho=>has$1(GraphNodeStatus.Editing)(ho.status)?ho:Object.assign(Object.assign({},ho),{status:GraphNodeStatus.Default}))),ao=so):(oo.delete(so.id),lo.delete(so.id),uo.delete(so.id),no.add(so.id),ao&&oo.update(ao.id,po=>po.link({next:so==null?void 0:so.next})),fo&&oo.update(fo.id,po=>po.link({prev:ao==null?void 0:ao.id})),so===io&&(io=fo)),so=fo}const co=this.edges.mutate();return this.edges.forEach(fo=>{var po,ho;!no.has(fo.source)&&!no.has(fo.target)&&(!((ho=(po=to.edge)===null||po===void 0?void 0:po.call(to,fo))!==null&&ho!==void 0)||ho)?co.update(fo.id,mo=>mo.update(updateStatus(replace$1(GraphEdgeStatus.Default)))):(co.delete(fo.id),deleteEdgeByPort(lo,fo.id,fo.source,fo.sourcePortId),deleteEdgeByPort(uo,fo.id,fo.target,fo.targetPortId))}),this.merge({nodes:oo.finish(),edges:co.finish(),head:io==null?void 0:io.id,tail:ao==null?void 0:ao.id,edgesBySource:lo.finish(),edgesByTarget:uo.finish()})}insertEdge(to){if(this.isEdgeExist(to.source,to.sourcePortId,to.target,to.targetPortId)||!this.nodes.has(to.source)||!this.nodes.has(to.target))return this;const ro=setEdgeByPort(this.edgesBySource,to.id,to.source,to.sourcePortId),no=setEdgeByPort(this.edgesByTarget,to.id,to.target,to.targetPortId);return this.merge({nodes:this.nodes.update(to.source,oo=>oo.invalidCache()).update(to.target,oo=>oo.invalidCache()),edges:this.edges.set(to.id,EdgeModel.fromJSON(to)).map(oo=>oo.updateStatus(replace$1(GraphEdgeStatus.Default))),edgesBySource:ro,edgesByTarget:no})}updateEdge(to,ro){return this.merge({edges:this.edges.update(to,no=>no.update(ro))})}deleteEdge(to){const ro=this.edges.get(to);return ro?this.merge({edges:this.edges.delete(to),edgesBySource:deleteEdgeByPort(this.edgesBySource,ro.id,ro.source,ro.sourcePortId),edgesByTarget:deleteEdgeByPort(this.edgesByTarget,ro.id,ro.target,ro.targetPortId)}):this}updateNodesPositionAndSize(to){const ro=new Set,no=this.nodes.mutate(),oo=this.edges.mutate();return to.forEach(io=>{var so,ao;ro.add(io.id),no.update(io.id,lo=>lo.updatePositionAndSize(io)),(so=this.edgesBySource.get(io.id))===null||so===void 0||so.forEach(lo=>{lo.forEach(uo=>{markEdgeDirty(oo,uo)})}),(ao=this.edgesByTarget.get(io.id))===null||ao===void 0||ao.forEach(lo=>{lo.forEach(uo=>{markEdgeDirty(oo,uo)})})}),this.merge({nodes:no.finish(),edges:oo.finish()})}mapNodes(to){return this.merge({nodes:this.nodes.map(to)})}mapEdges(to){return this.merge({edges:this.edges.map(to)})}selectNodes(to,ro){const no=new Set,oo=this.nodes.map(ao=>{const lo=to(ao.inner);return lo&&no.add(ao.id),ao.updatePorts(updateStatus(replace$1(GraphPortStatus.Default))).updateStatus(resetConnectStatus(lo?GraphNodeStatus.Selected:GraphNodeStatus.UnconnectedToSelected))}).mutate();if(no.size===0)this.nodes.forEach(ao=>oo.update(ao.id,lo=>lo.updateStatus(replace$1(GraphNodeStatus.Default))));else if(ro){const ao=oo.get(ro);ao&&(oo.delete(ro),oo.set(ao.id,ao))}const io=ao=>{oo.update(ao,lo=>lo.updateStatus(replace$1(isSelected(lo)?GraphNodeStatus.Selected:GraphNodeStatus.ConnectedToSelected)))},so=no.size?this.edges.map(ao=>{let lo=GraphEdgeStatus.UnconnectedToSelected;return no.has(ao.source)&&(io(ao.target),lo=GraphEdgeStatus.ConnectedToSelected),no.has(ao.target)&&(io(ao.source),lo=GraphEdgeStatus.ConnectedToSelected),ao.updateStatus(replace$1(lo))}):this.edges.map(ao=>ao.updateStatus(replace$1(GraphEdgeStatus.Default)));return this.merge({nodes:oo.finish(),edges:so,selectedNodes:no})}getEdgesBySource(to,ro){var no;return(no=this.edgesBySource.get(to))===null||no===void 0?void 0:no.get(ro)}getEdgesByTarget(to,ro){var no;return(no=this.edgesByTarget.get(to))===null||no===void 0?void 0:no.get(ro)}isPortConnectedAsSource(to,ro){var no,oo;return((oo=(no=this.getEdgesBySource(to,ro))===null||no===void 0?void 0:no.size)!==null&&oo!==void 0?oo:0)>0}isPortConnectedAsTarget(to,ro){var no,oo;return((oo=(no=this.getEdgesByTarget(to,ro))===null||no===void 0?void 0:no.size)!==null&&oo!==void 0?oo:0)>0}shallow(){return this.merge({})}toJSON(){const to=[];let ro=this.head&&this.nodes.get(this.head);for(;ro;)to.push(ro.inner),ro=ro.next&&this.nodes.get(ro.next);const no=Array.from(this.edges.values()).map(oo=>oo.inner);return{nodes:to,edges:no}}isEdgeExist(to,ro,no,oo){const io=this.getEdgesBySource(to,ro),so=this.getEdgesByTarget(no,oo);if(!io||!so)return!1;let ao=!1;return io.forEach(lo=>{so.has(lo)&&(ao=!0)}),ao}merge(to){var ro,no,oo,io,so,ao,lo,uo;return new GraphModel({nodes:(ro=to.nodes)!==null&&ro!==void 0?ro:this.nodes,edges:(no=to.edges)!==null&&no!==void 0?no:this.edges,groups:(oo=to.groups)!==null&&oo!==void 0?oo:this.groups,head:(io=to.head)!==null&&io!==void 0?io:this.head,tail:(so=to.tail)!==null&&so!==void 0?so:this.tail,edgesBySource:(ao=to.edgesBySource)!==null&&ao!==void 0?ao:this.edgesBySource,edgesByTarget:(lo=to.edgesByTarget)!==null&&lo!==void 0?lo:this.edgesByTarget,selectedNodes:(uo=to.selectedNodes)!==null&&uo!==void 0?uo:this.selectedNodes})}}function setEdgeByPort(eo,to,ro,no){return eo.has(ro)?eo.update(ro,oo=>{const io=oo.get(no);return new Map(oo).set(no,(io?new Set(io):new Set).add(to))}):eo.set(ro,new Map([[no,new Set([to])]]))}function setEdgeByPortMutable(eo,to,ro,no){eo.has(ro)?eo.update(ro,oo=>{let io=oo.get(no);return io||(io=new Set,oo.set(no,io)),io.add(to),oo}):eo.set(ro,new Map([[no,new Set([to])]]))}function deleteEdgeByPort(eo,to,ro,no){return eo.has(ro)?eo.update(ro,oo=>{const io=oo.get(no);if(!io)return oo;const so=new Set(io);return so.delete(to),new Map(oo).set(no,so)}):eo}var CanvasMouseMode;(function(eo){eo.Pan="Pan",eo.Select="Select"})(CanvasMouseMode||(CanvasMouseMode={}));var GraphBehavior;(function(eo){eo.Default="default",eo.Dragging="dragging",eo.Panning="panning",eo.MultiSelect="multiSelect",eo.Connecting="connecting",eo.AddingNode="addingNode"})(GraphBehavior||(GraphBehavior={}));function clamp$1(eo,to,ro){return eo>ro?eo:to{const{instance:no,maxWait:oo}=ro||{};let io=0,so;return(...lo)=>{if(window.clearTimeout(io),isDef(oo)){const uo=Date.now();if(!isDef(so))so=uo;else if(uo-so>=oo){so=void 0,ao(lo);return}}io=window.setTimeout(()=>{ao(lo)},to)};function ao(lo){eo.apply(no,lo)}},emptyArrayInstance=[];function constantEmptyArray(){return emptyArrayInstance}const checkRectIntersect=(eo,to)=>{const ro=eo.maxXto.maxX,oo=eo.minY>to.maxY,io=eo.maxY{const{minX:ro,minY:no,maxX:oo,maxY:io}=eo,{x:so,y:ao}=to;return so>ro&&sono&&aoMath.pow(eo,2),distance=(eo,to,ro,no)=>Math.sqrt(square(ro-eo)+square(no-to)),getLinearFunction=(eo,to,ro,no)=>eo===ro?()=>Number.MAX_SAFE_INTEGER:oo=>(no-to)/(ro-eo)*oo+(to*ro-no*eo)/(ro-eo),shallowEqual=(eo,to)=>{if(!eo||eo.length!==to.length)return!1;for(let ro=0;ro{const io=to?Array.isArray(to)?to:to.apply(void 0,oo):oo;return shallowEqual(ro,io)||(ro=io,no=eo.apply(void 0,oo)),no}}var Direction$1;(function(eo){eo[eo.X=0]="X",eo[eo.Y=1]="Y",eo[eo.XY=2]="XY"})(Direction$1||(Direction$1={}));const isViewportComplete=eo=>!!eo.rect,getNodeRect=(eo,to)=>{const{x:ro,y:no}=eo,{width:oo,height:io}=getNodeSize(eo,to);return{x:ro,y:no,width:oo,height:io}},isNodeVisible=(eo,to,ro)=>isRectVisible(getNodeRect(eo,ro),to),isRectVisible=(eo,to)=>{const{x:ro,y:no,width:oo,height:io}=eo;return isPointVisible({x:ro,y:no},to)||isPointVisible({x:ro+oo,y:no},to)||isPointVisible({x:ro+oo,y:no+io},to)||isPointVisible({x:ro,y:no+io},to)},isPointVisible=(eo,to)=>{const{x:ro,y:no}=getContainerClientPoint(eo.x,eo.y,to),{height:oo,width:io}=to.rect;return ro>0&&ro0&&no{const no=[];return eo.forEach(oo=>{isNodeVisible(oo,to,ro)&&no.push(oo.inner)}),no},getRenderedNodes=(eo,to)=>{const ro=[],no=getRenderedArea(to);return eo.forEach(oo=>{isNodeInRenderedArea(oo,no)&&ro.push(oo.inner)}),ro},isNodeInRenderedArea=(eo,to)=>isPointInRect(to,eo),getVisibleArea=eo=>{if(!isViewportComplete(eo))return{minX:0,minY:0,maxX:0,maxY:0};const{rect:to,transformMatrix:ro}=eo,no=0,oo=0,io=to.width,so=to.height,ao=reverseTransformPoint(no,oo,ro),lo=reverseTransformPoint(io,so,ro);return{minX:ao.x,minY:ao.y,maxX:lo.x,maxY:lo.y}},getRenderedArea=eo=>{if(!isViewportComplete(eo))return{minX:0,minY:0,maxX:0,maxY:0};const{rect:to,transformMatrix:ro}=eo,no=0,oo=0,io=to.width,so=to.height,ao=reverseTransformPoint(no-to.width,oo-to.height,ro),lo=reverseTransformPoint(io+to.width,so+to.height,ro);return{minX:ao.x,minY:ao.y,maxX:lo.x,maxY:lo.y}},normalizeSpacing=eo=>eo?typeof eo=="number"?{top:eo,right:eo,bottom:eo,left:eo}:Object.assign({top:0,right:0,bottom:0,left:0},eo):{top:0,right:0,bottom:0,left:0},zoomTo=({scale:eo,anchor:to,direction:ro,limitScale:no})=>oo=>{const io=no(eo)/oo.transformMatrix[0],so=no(eo)/oo.transformMatrix[3],{x:ao,y:lo}=to,uo=ao*(1-io),co=lo*(1-so);let fo;switch(ro){case Direction$1.X:fo=[eo,0,0,oo.transformMatrix[3],oo.transformMatrix[4]*io+uo,oo.transformMatrix[5]];break;case Direction$1.Y:fo=[oo.transformMatrix[0],0,0,eo,oo.transformMatrix[4],oo.transformMatrix[5]*so+co];break;case Direction$1.XY:default:fo=[eo,0,0,eo,oo.transformMatrix[4]*io+uo,oo.transformMatrix[5]*so+co]}return Object.assign(Object.assign({},oo),{transformMatrix:fo})},zoom=({scale:eo,anchor:to,direction:ro,limitScale:no})=>eo===1?identical:oo=>{let io;switch(ro){case Direction$1.X:return zoomTo({anchor:to,direction:ro,limitScale:no,scale:oo.transformMatrix[0]*eo})(oo);case Direction$1.Y:return zoomTo({anchor:to,direction:ro,limitScale:no,scale:oo.transformMatrix[3]*eo})(oo);case Direction$1.XY:default:{const so=no(oo.transformMatrix[0]*eo),ao=no(oo.transformMatrix[3]*eo),lo=so/oo.transformMatrix[0],uo=ao/oo.transformMatrix[3],{x:co,y:fo}=to,po=co*(1-lo),ho=fo*(1-uo);io=[so,0,0,ao,oo.transformMatrix[4]*lo+po,oo.transformMatrix[5]*uo+ho]}}return Object.assign(Object.assign({},oo),{transformMatrix:io})},pan=(eo,to)=>eo===0&&to===0?identical:ro=>Object.assign(Object.assign({},ro),{transformMatrix:[ro.transformMatrix[0],ro.transformMatrix[1],ro.transformMatrix[2],ro.transformMatrix[3],ro.transformMatrix[4]+eo,ro.transformMatrix[5]+to]}),minimapPan=(eo,to)=>eo===0&&to===0?identical:ro=>{const[no,oo,io,so]=ro.transformMatrix;return Object.assign(Object.assign({},ro),{transformMatrix:[no,oo,io,so,ro.transformMatrix[4]+no*eo+oo*to,ro.transformMatrix[5]+io*eo+so*to]})},getContentArea$1=(eo,to,ro)=>{let no=1/0,oo=1/0,io=1/0,so=1/0,ao=-1/0,lo=-1/0;return(ro===void 0?po=>eo.nodes.forEach(po):po=>ro==null?void 0:ro.forEach(ho=>{const mo=eo.nodes.get(ho);mo&&po(mo)}))(po=>{const{width:ho,height:mo}=getNodeSize(po,to);po.xao&&(ao=po.x+ho),po.y+mo>lo&&(lo=po.y+mo),ho{let{width:ro,height:no}=eo,{width:oo,height:io}=to;if(ro>oo){const so=ro;ro=oo,oo=so}if(no>io){const so=no;no=io,io=so}return{nodeMinVisibleWidth:ro,nodeMinVisibleHeight:no,nodeMaxVisibleWidth:oo,nodeMaxVisibleHeight:io}},getScaleRange=(eo,{width:to,height:ro})=>{const{nodeMinVisibleWidth:no,nodeMinVisibleHeight:oo,nodeMaxVisibleWidth:io,nodeMaxVisibleHeight:so}=normalizeNodeVisibleMinMax(eo);let ao=0,lo=0,uo=1/0,co=1/0;return to&&(ao=no/to,uo=io/to),ro&&(lo=oo/ro,co=so/ro),{minScaleX:ao,minScaleY:lo,maxScaleX:uo,maxScaleY:co}},getZoomFitMatrix=eo=>{const{data:to,graphConfig:ro,disablePan:no,direction:oo,rect:io}=eo,{nodes:so}=to;if(so.size===0)return[1,0,0,1,0,0];const{minNodeWidth:ao,minNodeHeight:lo,minNodeX:uo,minNodeY:co,maxNodeX:fo,maxNodeY:po}=getContentArea$1(to,ro),{minScaleX:ho,minScaleY:mo,maxScaleX:vo,maxScaleY:bo}=getScaleRange(eo,{width:ao,height:lo}),xo=normalizeSpacing(eo.spacing),{width:_o,height:So}=io,Eo=_o/(fo-uo+xo.left+xo.right),ko=So/(po-co+xo.top+xo.bottom),wo=oo===Direction$1.Y?Math.min(Math.max(ho,mo,ko),vo,bo):Math.min(Math.max(ho,mo,Math.min(Eo,ko)),bo,bo),Co=oo===Direction$1.XY?Math.min(Math.max(ho,Eo),vo):wo,Ro=oo===Direction$1.XY?Math.min(Math.max(mo,ko),bo):wo;if(no)return[Co,0,0,Ro,0,0];const Ao=-Co*(uo-xo.left),Io=-Ro*(co-xo.top);if(getVisibleNodes(to.nodes,{rect:io,transformMatrix:[Co,0,0,Ro,Ao,Io]},ro).length>0)return[Co,0,0,Ro,Ao,Io];let Bo=to.nodes.first();return Bo&&to.nodes.forEach(Mo=>{Bo.y>Mo.y&&(Bo=Mo)}),[Co,0,0,Ro,-Co*(Bo.x-xo.left),-Ro*(Bo.y-xo.top)]},focusArea=(eo,to,ro,no,oo)=>{const io=ro-eo,so=no-to,ao=Math.min(oo.rect.width/io,oo.rect.height/so),lo=-ao*(eo+io/2)+oo.rect.width/2,uo=-ao*(to+so/2)+oo.rect.height/2;return Object.assign(Object.assign({},oo),{transformMatrix:[ao,0,0,ao,lo,uo]})};function getContainerCenter(eo){const to=eo.current;if(!to)return;const ro=to.width/2,no=to.height/2;return{x:ro,y:no}}function getRelativePoint(eo,to){const ro=to.clientX-eo.left,no=to.clientY-eo.top;return{x:ro,y:no}}const scrollIntoView$1=(eo,to,ro,no,oo)=>{if(!ro)return identical;const{width:io,height:so}=ro;return!(eo<0||eo>io||to<0||to>so)&&!no?identical:lo=>{const uo=oo?oo.x-eo:io/2-eo,co=oo?oo.y-to:so/2-to;return Object.assign(Object.assign({},lo),{transformMatrix:[lo.transformMatrix[0],lo.transformMatrix[1],lo.transformMatrix[2],lo.transformMatrix[3],lo.transformMatrix[4]+uo,lo.transformMatrix[5]+co]})}},getScaleLimit=(eo,to)=>{const{minNodeWidth:ro,minNodeHeight:no}=getContentArea$1(eo,to.graphConfig),{minScaleX:oo,minScaleY:io}=getScaleRange(to,{width:ro,height:no});return Math.max(oo,io)},getContentArea=memoize$1(getContentArea$1),getOffsetLimit=({data:eo,graphConfig:to,rect:ro,transformMatrix:no,canvasBoundaryPadding:oo,groupPadding:io})=>{var so,ao,lo,uo;const co=getContentArea(eo,to),fo=getClientDeltaByPointDelta(co.minNodeX-((io==null?void 0:io.left)||0),co.minNodeY-((io==null?void 0:io.top)||0),no);fo.x-=(so=oo==null?void 0:oo.left)!==null&&so!==void 0?so:0,fo.y-=(ao=oo==null?void 0:oo.top)!==null&&ao!==void 0?ao:0;const po=getClientDeltaByPointDelta(co.maxNodeX+((io==null?void 0:io.right)||0),co.maxNodeY+((io==null?void 0:io.bottom)||0),no);po.x+=(lo=oo==null?void 0:oo.right)!==null&&lo!==void 0?lo:0,po.y+=(uo=oo==null?void 0:oo.bottom)!==null&&uo!==void 0?uo:0;let ho=-fo.x||0,mo=-fo.y||0,vo=ro.width-po.x||0,bo=ro.height-po.y||0;if(vo({present:to,past:{next:eo.past,value:ro(eo.present)},future:null}),undo=eo=>eo.past?{present:eo.past.value,past:eo.past.next,future:{next:eo.future,value:eo.present}}:eo,redo=eo=>eo.future?{present:eo.future.value,past:{next:eo.past,value:eo.present},future:eo.future.next}:eo,resetUndoStack=eo=>({present:eo,future:null,past:null}),isWithinThreshold=(eo,to,ro)=>Math.abs(eo){warnGraphStateContext()}},EMPTY_CONNECT_STATE={sourceNode:void 0,sourcePort:void 0,targetNode:void 0,targetPort:void 0,movingPoint:{x:0,y:0}},GraphValueContext=reactExports.createContext(new Proxy(GraphModel.empty(),{get:(eo,to)=>(console.warn("Default graph data value is being used. Please check if you forget rendering Graph component"),Reflect.get(eo,to))})),GraphStateContext=reactExports.createContext(defaultGraphStateContext),SlotsContext=reactExports.createContext({});class EventChannel{constructor(){this.listenersRef=reactExports.createRef(),this.externalHandlerRef=reactExports.createRef(),this.queue=[],this.working=!1}trigger(to){this.working?this.queue.push(to):(this.working=!0,reactDomExports.unstable_batchedUpdates(()=>{this.callHandlers(to);for(let ro=0;ro{this.dispatchDelegate(no,oo)},this.state=to,this.UNSAFE_latestState=to,this.dispatchDelegate=ro}setMouseClientPosition(to){this.mouseClientPoint=to}unsetMouseClientPosition(){this.mouseClientPoint=void 0}getMouseClientPosition(){return this.mouseClientPoint}getEnabledFeatures(){return this.state.settings.features}getBehavior(){return this.behavior}setBehavior(to){this.behavior=to}getData(){return this.state.data.present}getGlobalEventTarget(){var to,ro;return(ro=(to=this.getGlobalEventTargetDelegate)===null||to===void 0?void 0:to.call(this))!==null&&ro!==void 0?ro:window}}function useConst(eo){const to=reactExports.useRef();return to.current===void 0&&(to.current=eo()),to.current}const noop$2=()=>{};class ErrorBoundary extends reactExports.Component{constructor(to){super(to),this.state={hasError:!1}}static getDerivedStateFromError(to){return{hasError:!0,error:to}}componentDidCatch(to,ro){console.error(to),this.setState({error:to,errorInfo:ro})}render(){var to,ro;if(!this.state.hasError)return this.props.children;if(this.props.renderOnError)return(to=this.props.renderOnError(this.state.error,this.state.errorInfo,this.props.children))!==null&&to!==void 0?to:null;const no=this.state.errorInfo?(ro=this.state.errorInfo.componentStack)===null||ro===void 0?void 0:ro.split(` -`):[];return jsxRuntimeExports.jsxs("div",Object.assign({style:{color:"red"}},{children:[jsxRuntimeExports.jsx("h1",{children:"Something went wrong."}),jsxRuntimeExports.jsx("p",{children:`Error: ${this.state.error}`}),jsxRuntimeExports.jsx("p",{children:`ErrorInfo: ${JSON.stringify(this.state.errorInfo)}`}),jsxRuntimeExports.jsx("h2",{children:"Component Stack"}),(no??[]).map((oo,io)=>jsxRuntimeExports.jsx("p",{children:oo},io))]}))}}const EMPTY_CONNECT_CONTEXT={sourceNode:void 0,sourcePort:void 0,targetNode:void 0,targetPort:void 0},ConnectingStateContext=reactExports.createContext(EMPTY_CONNECT_CONTEXT);ConnectingStateContext.displayName="ConnectingStateContext";const ConnectingState=({children:eo,data:to,connectState:ro})=>{let no,oo,io,so;ro&&(no=to.nodes.get(ro.sourceNode),oo=no==null?void 0:no.getPort(ro.sourcePort),io=ro.targetNode?to.nodes.get(ro.targetNode):void 0,so=ro.targetPort?io==null?void 0:io.getPort(ro.targetPort):void 0);const ao=reactExports.useMemo(()=>({sourceNode:no,sourcePort:oo,targetNode:io,targetPort:so}),[no,oo,io,so]);return jsxRuntimeExports.jsx(ConnectingStateContext.Provider,Object.assign({value:ao},{children:eo}))};ConnectingState.displayName="ConnectingState";const AlignmentLinesContext=reactExports.createContext([]),GraphControllerContext=reactExports.createContext(new GraphController(EMPTY_GRAPH_STATE,noop$2));function GraphStateStore(eo){const{graphController:to,state:ro,dispatch:no,children:oo}=eo,io=reactExports.useMemo(()=>({state:ro,dispatch:no}),[ro,no]);return jsxRuntimeExports.jsx(GraphConfigContext.Provider,Object.assign({value:ro.settings.graphConfig},{children:jsxRuntimeExports.jsx(GraphControllerContext.Provider,Object.assign({value:to},{children:jsxRuntimeExports.jsx(ConnectingState,Object.assign({data:ro.data.present,connectState:ro.connectState},{children:jsxRuntimeExports.jsx(GraphStateContext.Provider,Object.assign({value:io},{children:jsxRuntimeExports.jsx(ViewportContext.Provider,Object.assign({value:ro.viewport},{children:jsxRuntimeExports.jsx(GraphValueContext.Provider,Object.assign({value:ro.data.present},{children:jsxRuntimeExports.jsx(AlignmentLinesContext.Provider,Object.assign({value:ro.alignmentLines},{children:oo}))}))}))}))}))}))}))}const ReactDagEditor=eo=>{var to;reactExports.useEffect(()=>{eo.handleWarning&&(Debug.warn=eo.handleWarning)},[]);const ro=(to=eo.handleError)===null||to===void 0?void 0:to.bind(null),{state:no,dispatch:oo,getGlobalEventTarget:io}=eo,so=useConst(()=>new GraphController(no,oo));return so.UNSAFE_latestState=no,reactExports.useLayoutEffect(()=>{so.state=no,so.dispatchDelegate=oo,so.getGlobalEventTargetDelegate=io},[oo,io,so,no]),reactExports.useEffect(()=>()=>{so.dispatchDelegate=noop$2},[so]),jsxRuntimeExports.jsx(ErrorBoundary,Object.assign({renderOnError:ro},{children:jsxRuntimeExports.jsx(SlotsContext.Provider,Object.assign({value:eo},{children:jsxRuntimeExports.jsx(GraphStateStore,Object.assign({state:no,dispatch:oo,graphController:so},{children:jsxRuntimeExports.jsx(ContextMenuConfigContext.Provider,Object.assign({value:useConst(()=>new ContextMenuConfig)},{children:jsxRuntimeExports.jsx("div",Object.assign({style:eo.style,className:eo.className},{children:eo.children}))}))}))}))}))},useContextMenuConfigContext=()=>reactExports.useContext(ContextMenuConfigContext);var GraphNodeEvent;(function(eo){eo.Click="[Node]Click",eo.DoubleClick="[Node]DoubleClick",eo.MouseDown="[Node]MouseDown",eo.MouseUp="[Node]MouseUp",eo.MouseEnter="[Node]MouseEnter",eo.MouseLeave="[Node]MouseLeave",eo.MouseOver="[Node]MouseOver",eo.MouseOut="[Node]MouseOut",eo.MouseMove="[Node]MouseMove",eo.ContextMenu="[Node]ContextMenu",eo.Drag="[Node]Drag",eo.DragStart="[Node]DragStart",eo.DragEnd="[Node]DragEnd",eo.PointerDown="[Node]PointerDown",eo.PointerEnter="[Node]PointerEnter",eo.PointerMove="[Node]PointerMove",eo.PointerLeave="[Node]PointerLeave",eo.PointerUp="[Node]PointerUp",eo.Resizing="[Node]Resizing",eo.ResizingStart="[Node]ResizingStart",eo.ResizingEnd="[Node]ResizingEnd",eo.KeyDown="[Node]KeyDown",eo.Select="[Node]Select",eo.SelectAll="[Node]SelectAll",eo.Centralize="[Node]Centralize",eo.Locate="[Node]Locate",eo.Add="[Node]Add"})(GraphNodeEvent||(GraphNodeEvent={}));var GraphEdgeEvent;(function(eo){eo.Click="[Edge]Click",eo.DoubleClick="[Edge]DoubleClick",eo.MouseEnter="[Edge]MouseEnter",eo.MouseLeave="[Edge]MouseLeave",eo.MouseOver="[Edge]MouseOver",eo.MouseOut="[Edge]MouseOut",eo.MouseMove="[Edge]MouseMove",eo.MouseDown="[Edge]MouseDown",eo.MouseUp="[Edge]MouseUp",eo.ContextMenu="[Edge]ContextMenu",eo.ConnectStart="[Edge]ConnectStart",eo.ConnectMove="[Edge]ConnectMove",eo.ConnectEnd="[Edge]ConnectEnd",eo.ConnectNavigate="[Edge]ConnectNavigate",eo.Add="[Edge]Add"})(GraphEdgeEvent||(GraphEdgeEvent={}));var GraphPortEvent;(function(eo){eo.Click="[Port]Click",eo.DoubleClick="[Port]DoubleClick",eo.MouseDown="[Port]MouseDown",eo.PointerDown="[Port]PointerDown",eo.PointerUp="[Port]PointerUp",eo.PointerEnter="[Port]PointerEnter",eo.PointerLeave="[Port]PointerLeave",eo.MouseUp="[Port]MouseUp",eo.MouseEnter="[Port]MouseEnter",eo.MouseLeave="[Port]MouseLeave",eo.MouseOver="[Port]MouseOver",eo.MouseOut="[Port]MouseOut",eo.MouseMove="[Port]MouseMove",eo.ContextMenu="[Port]ContextMenu",eo.KeyDown="[Port]KeyDown",eo.Focus="[Port]Focus",eo.Blur="[Port]Blur"})(GraphPortEvent||(GraphPortEvent={}));var GraphCanvasEvent;(function(eo){eo.Click="[Canvas]Click",eo.DoubleClick="[Canvas]DoubleClick",eo.MouseDown="[Canvas]MouseDown",eo.MouseUp="[Canvas]MouseUp",eo.MouseEnter="[Canvas]MouseEnter",eo.MouseLeave="[Canvas]MouseLeave",eo.MouseOver="[Canvas]MouseOver",eo.MouseOut="[Canvas]MouseOut",eo.MouseMove="[Canvas]MouseMove",eo.ContextMenu="[Canvas]ContextMenu",eo.DragStart="[Canvas]DragStart",eo.Drag="[Canvas]Drag",eo.DragEnd="[Canvas]DragEnd",eo.Pan="[Canvas]Pan",eo.Focus="[Canvas]Focus",eo.Blur="[Canvas]Blur",eo.Zoom="[Canvas]Zoom",eo.Pinch="[Canvas]Pinch",eo.KeyDown="[Canvas]KeyDown",eo.KeyUp="[Canvas]KeyUp",eo.SelectStart="[Canvas]SelectStart",eo.SelectMove="[Canvas]SelectMove",eo.SelectEnd="[Canvas]SelectEnd",eo.UpdateNodeSelectionBySelectBox="[Canvas]UpdateNodeSelectionBySelectBox",eo.MouseWheelScroll="[Canvas]MouseWheelScroll",eo.DraggingNodeFromItemPanel="[Canvas]DraggingNodeFromItemPanel",eo.DraggingNodeFromItemPanelStart="[Canvas]DraggingNodeFromItemPanelStart",eo.DraggingNodeFromItemPanelEnd="[Canvas]DraggingNodeFromItemPanelEnd",eo.ViewportResize="[Canvas]ViewportResize",eo.Navigate="[Canvas]Navigate",eo.VirtualizationRecalculated="[Canvas]VirtualizationRecalculated",eo.ResetSelection="[Canvas]ResetSelection",eo.Copy="[Canvas]Copy",eo.Paste="[Canvas]Paste",eo.Delete="[Canvas]Delete",eo.Undo="[Canvas]Undo",eo.Redo="[Canvas]Redo",eo.ScrollIntoView="[Canvas]ScrollIntoView",eo.ResetUndoStack="[Canvas]ResetUndoStack",eo.ResetViewport="[Canvas]ResetViewport",eo.ZoomTo="[Canvas]ZoomTo",eo.ZoomToFit="[Canvas]ZoomToFit",eo.SetData="[Canvas]SetData",eo.UpdateData="[Canvas]UpdateData",eo.ScrollTo="[Canvas]ScrollTo",eo.UpdateSettings="[Canvas]UpdateSettings"})(GraphCanvasEvent||(GraphCanvasEvent={}));var GraphScrollBarEvent;(function(eo){eo.ScrollStart="[ScrollBar]ScrollStart",eo.Scroll="[ScrollBar]Scroll",eo.ScrollEnd="[ScrollBar]ScrollEnd"})(GraphScrollBarEvent||(GraphScrollBarEvent={}));var GraphMinimapEvent;(function(eo){eo.PanStart="[Minimap]PanStart",eo.Pan="[Minimap]Pan",eo.PanEnd="[Minimap]PanEnd",eo.Click="[Minimap]Click"})(GraphMinimapEvent||(GraphMinimapEvent={}));var GraphContextMenuEvent;(function(eo){eo.Open="[ContextMenu]Open",eo.Close="[ContextMenu]Close"})(GraphContextMenuEvent||(GraphContextMenuEvent={}));function getScrollLineHeight(){try{const eo=document.createElement("iframe");eo.src="#",document.body.appendChild(eo);const{contentDocument:to}=eo;if(!to)throw new Error("Fail to create iframe");to.documentElement.innerHTML=purify.sanitize("a",{RETURN_TRUSTED_TYPE:!0});const no=to.body.firstElementChild.offsetHeight;return document.body.removeChild(eo),no}catch(eo){return Debug.error("failed to calculate scroll line height",eo),16}}const scrollLineHeight=getScrollLineHeight(),normalizeWheelDelta=typeof WheelEvent=="function"?(eo,to)=>{switch(eo){case WheelEvent.DOM_DELTA_PIXEL:return to;case WheelEvent.DOM_DELTA_LINE:return to*scrollLineHeight;case WheelEvent.DOM_DELTA_PAGE:return to*window.innerHeight;default:return to}}:(eo,to)=>to,EMPTY_RECT={height:0,width:0,x:0,y:0,bottom:0,left:0,right:0,top:0,toJSON(){return this}},VirtualizationContext=reactExports.createContext({viewport:{rect:EMPTY_RECT,transformMatrix:EMPTY_TRANSFORM_MATRIX},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 useGraphConfig(){return reactExports.useContext(GraphConfigContext)}function useGraphController(){return reactExports.useContext(GraphControllerContext)}function useAlignmentLines(){return reactExports.useContext(AlignmentLinesContext)}function useConnectingState(){return reactExports.useContext(ConnectingStateContext)}function useVirtualization(){return reactExports.useContext(VirtualizationContext)}let shouldRespondWheel=!1;const useWheelHandler=eo=>{const{containerRef:to,svgRef:ro,rectRef:no,zoomSensitivity:oo,scrollSensitivity:io,isHorizontalScrollDisabled:so,isVerticalScrollDisabled:ao,isCtrlKeyZoomEnable:lo,eventChannel:uo,graphConfig:co,dispatch:fo}=eo,ho=useGraphController().getGlobalEventTarget();reactExports.useLayoutEffect(()=>{const mo=ro.current,vo=to.current;if(!mo||!vo)return noop$2;const bo=So=>{const Eo=no.current;if(!Eo||!shouldRespondWheel)return;if(So.preventDefault(),So.ctrlKey&&lo){const Ro=(normalizeWheelDelta(So.deltaMode,So.deltaY)>0?-oo:oo)+1;uo.trigger({type:GraphCanvasEvent.Zoom,rawEvent:So,scale:Ro,anchor:getRelativePoint(Eo,So)});return}const ko=so?0:-normalizeWheelDelta(So.deltaMode,So.shiftKey?So.deltaY:So.deltaX)*io,wo=ao||So.shiftKey?0:-normalizeWheelDelta(So.deltaMode,So.deltaY)*io;uo.trigger({type:GraphCanvasEvent.MouseWheelScroll,dx:ko,dy:wo,rawEvent:So})},xo=()=>{shouldRespondWheel=!0};vo.addEventListener("mouseenter",xo);const _o=()=>{shouldRespondWheel=!1};return vo.addEventListener("mouseleave",_o),ho.addEventListener("wheel",bo,{passive:!1}),()=>{ho.removeEventListener("wheel",bo),vo.removeEventListener("mouseenter",xo),vo.removeEventListener("mouseleave",_o)}},[ro,no,oo,io,fo,so,ao,co,uo,lo])};function nextFrame(eo){requestAnimationFrame(()=>{requestAnimationFrame(eo)})}const LIMIT=20,isRectChanged=(eo,to)=>eo===to?!1:!eo||!to?!0:eo.top!==to.top||eo.left!==to.left||eo.width!==to.width||eo.height!==to.height,useUpdateViewportCallback=(eo,to,ro)=>reactExports.useCallback((no=!1)=>{var oo;const io=(oo=to.current)===null||oo===void 0?void 0:oo.getBoundingClientRect();(no||isRectChanged(eo.current,io))&&(eo.current=io,ro.trigger({type:GraphCanvasEvent.ViewportResize,viewportRect:io}))},[ro,eo,to]),useContainerRect=(eo,to,ro,no)=>{reactExports.useLayoutEffect(()=>{eo.viewport.rect||no(!0)}),reactExports.useEffect(()=>{const oo=ro.current;if(!oo)return noop$2;const io=debounce(()=>nextFrame(()=>{no()}),LIMIT);if(typeof ResizeObserver<"u"){const so=new ResizeObserver(io);return so.observe(oo),()=>{so.unobserve(oo),so.disconnect()}}return window.addEventListener("resize",io),()=>{window.removeEventListener("resize",io)}},[ro,no]),reactExports.useEffect(()=>{const oo=debounce(so=>{const ao=to.current;!ao||!(so.target instanceof Element)||!so.target.contains(ao)||no()},LIMIT),io={capture:!0,passive:!0};return document.body.addEventListener("scroll",oo,io),()=>{document.body.removeEventListener("scroll",oo,io)}},[to,no])};function makeScheduledCallback(eo,to,ro){let no=!1,oo,io;const so=(...ao)=>{oo=ao,no||(no=!0,io=to(()=>{no=!1,reactDomExports.unstable_batchedUpdates(()=>{eo.apply(null,oo)})}))};return so.cancel=()=>{ro(io)},so}const animationFramed=eo=>makeScheduledCallback(eo,requestAnimationFrame,cancelAnimationFrame),useRenderedArea=(eo,to)=>reactExports.useMemo(()=>to?getRenderedArea(eo):{minX:-Number.MAX_SAFE_INTEGER,minY:-Number.MAX_SAFE_INTEGER,maxX:Number.MAX_SAFE_INTEGER,maxY:Number.MAX_SAFE_INTEGER},[eo,to]);class DragController{constructor(to,ro){this.onMove=noop$2,this.onEnd=noop$2,this.lastEvent=null,this.startX=0,this.startY=0,this.prevClientX=0,this.prevClientY=0,this.onMouseUp=no=>{this.lastEvent=no,this.doOnMouseUp(no),this.lastEvent=null},this.onMouseMove=no=>{this.lastEvent=no,no.preventDefault(),this.mouseMove(no)},this.eventProvider=to,this.getPositionFromEvent=ro,this.mouseMove=animationFramed(no=>{this.doOnMouseMove(no)})}start(to){this.lastEvent=to;const{x:ro,y:no}=this.getPositionFromEvent(to);this.startX=ro,this.startY=no,this.prevClientX=ro,this.prevClientY=no,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(to,ro){const no=to-this.prevClientX,oo=ro-this.prevClientY;return this.prevClientX=to,this.prevClientY=ro,{x:no,y:oo}}getTotalDelta(to){const ro=to.clientX-this.startX,no=to.clientY-this.startY;return{x:ro,y:no}}doOnMouseMove(to){const{x:ro,y:no}=this.getPositionFromEvent(to),{x:oo,y:io}=this.getDelta(ro,no),{x:so,y:ao}=this.getTotalDelta(to);this.onMove({clientX:ro,clientY:no,dx:oo,dy:io,totalDX:so,totalDY:ao,e:to})}doOnMouseUp(to){to.preventDefault();const{x:ro,y:no}=this.getTotalDelta(to);this.onEnd({totalDX:ro,totalDY:no,e:to}),this.stop()}}function defaultGetPositionFromEvent(eo){return{x:eo.clientX,y:eo.clientY}}class DragNodeController extends DragController{constructor(to,ro,no){super(to,ro),this.rectRef=no}doOnMouseMove(to){super.doOnMouseMove(to);const ro=this.rectRef.current;!ro||!this.lastEvent||(to.clientXro.right||to.clientYro.bottom)&&this.mouseMove(this.lastEvent)}}class TouchController{constructor(to){this.eventHandlers={onPointerDown:(ro,...no)=>{ro.pointerType==="touch"&&(ro.preventDefault(),this.pointers=new Map(this.pointers),this.pointers.set(ro.pointerId,ro.nativeEvent),this.updateHandler(ro.nativeEvent,...no))},onPointerMove:(ro,...no)=>{ro.pointerType==="touch"&&(ro.preventDefault(),this.pointers.set(ro.pointerId,ro.nativeEvent),this.onMove(ro.nativeEvent,...no))},onPointerUp:(ro,...no)=>{ro.pointerType==="touch"&&(ro.preventDefault(),this.pointers=new Map(this.pointers),this.pointers.delete(ro.pointerId),this.updateHandler(ro.nativeEvent,...no))}},this.pointers=new Map,this.onMove=animationFramed((ro,...no)=>{var oo;(oo=this.currentHandler)===null||oo===void 0||oo.onMove(this.pointers,ro,...no)}),this.handlers=to}updateHandler(to,...ro){var no,oo;const io=this.handlers.get(this.pointers.size);io!==this.currentHandler&&((no=this.currentHandler)===null||no===void 0||no.onEnd(to,...ro),this.currentHandler=io,(oo=this.currentHandler)===null||oo===void 0||oo.onStart(this.pointers,to,...ro))}}class TwoFingerHandler{constructor(to,ro){this.prevDistance=0,this.rectRef=to,this.eventChannel=ro}onEnd(){}onMove(to,ro){const no=Array.from(to.values()),oo=distance(no[0].clientX,no[0].clientY,no[1].clientX,no[1].clientY),{prevEvents:io,prevDistance:so}=this;if(this.prevDistance=oo,this.prevEvents=no,!io)return;const ao=no[0].clientX-io[0].clientX,lo=no[1].clientX-io[1].clientX,uo=no[0].clientY-io[0].clientY,co=no[1].clientY-io[1].clientY,fo=(ao+lo)/2,po=(uo+co)/2,ho=(oo-so)/so+1,mo=getContainerCenter(this.rectRef);mo&&this.eventChannel.trigger({type:GraphCanvasEvent.Pinch,rawEvent:ro,dx:fo,dy:po,scale:ho,anchor:mo})}onStart(to){if(to.size!==2)throw new Error(`Unexpected touch event with ${to.size} touches`);this.prevEvents=Array.from(to.values()),this.prevDistance=distance(this.prevEvents[0].clientX,this.prevEvents[0].clientY,this.prevEvents[1].clientX,this.prevEvents[1].clientY)}}const useGraphTouchHandler=(eo,to)=>reactExports.useMemo(()=>new TouchController(new Map().set(2,new TwoFingerHandler(eo,to))).eventHandlers,[eo,to]),isSafari=getBrowser()===BrowserType.Safari;let prevScale=0;function useSafariScale({rectRef:eo,svgRef:to,eventChannel:ro}){reactExports.useEffect(()=>{const no=to.current;if(!isSafari||!no||isMobile())return()=>{};const oo=animationFramed(lo=>{const{scale:uo}=lo,co=uo/prevScale;prevScale=uo,ro.trigger({type:GraphCanvasEvent.Zoom,rawEvent:lo,scale:co,anchor:getContainerCenter(eo)})}),io=lo=>{lo.stopPropagation(),lo.preventDefault(),prevScale=lo.scale,ro.trigger({type:GraphCanvasEvent.Zoom,rawEvent:lo,scale:lo.scale,anchor:getContainerCenter(eo)})},so=lo=>{lo.stopPropagation(),lo.preventDefault(),oo(lo)},ao=lo=>{lo.stopPropagation(),lo.preventDefault(),oo(lo)};return no.addEventListener("gesturestart",io),no.addEventListener("gesturechange",so),no.addEventListener("gestureend",ao),()=>{no.removeEventListener("gesturestart",io),no.removeEventListener("gesturechange",so),no.removeEventListener("gestureend",ao)}},[])}function useDeferredValue(eo,{timeout:to}){const[ro,no]=reactExports.useState(eo);return reactExports.useEffect(()=>{const oo=setTimeout(()=>{no(eo)},to);return()=>{clearTimeout(oo)}},[eo,to]),ro}const useSelectBox=(eo,to)=>{const ro=useDeferredValue(to,{timeout:100});reactExports.useEffect(()=>{eo({type:GraphCanvasEvent.UpdateNodeSelectionBySelectBox})},[ro])},useGraphState=()=>reactExports.useContext(GraphStateContext),handleBehaviorChange=(eo,to)=>{switch(to.type){case GraphNodeEvent.DragStart:return GraphBehavior.Dragging;case GraphEdgeEvent.ConnectStart:return GraphBehavior.Connecting;case GraphCanvasEvent.SelectStart:return GraphBehavior.MultiSelect;case GraphCanvasEvent.DragStart:return GraphBehavior.Panning;case GraphCanvasEvent.DraggingNodeFromItemPanelStart:return GraphBehavior.AddingNode;case GraphNodeEvent.DragEnd:case GraphEdgeEvent.ConnectEnd:case GraphCanvasEvent.SelectEnd:case GraphCanvasEvent.DragEnd:case GraphCanvasEvent.DraggingNodeFromItemPanelEnd:return GraphBehavior.Default;default:return eo}},behaviorReducer=(eo,to)=>{const ro=handleBehaviorChange(eo.behavior,to);return ro===eo.behavior?eo:Object.assign(Object.assign({},eo),{behavior:ro})};function __rest(eo,to){var ro={};for(var no in eo)Object.prototype.hasOwnProperty.call(eo,no)&&to.indexOf(no)<0&&(ro[no]=eo[no]);if(eo!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oo=0,no=Object.getOwnPropertySymbols(eo);oo{switch(to.type){case GraphCanvasEvent.Paste:{const{position:ro}=to;if(!isViewportComplete(eo.viewport))return eo;const{rect:no}=eo.viewport;let oo=to.data.nodes;if(ro&&no){const so=getRealPointFromClientPoint(ro.x,ro.y,eo.viewport);let ao,lo;oo=oo.map((uo,co)=>(co===0&&(ao=so.x-uo.x,lo=so.y-uo.y),Object.assign(Object.assign({},uo),{x:ao?uo.x-COPIED_NODE_SPACING+ao:uo.x,y:lo?uo.y-COPIED_NODE_SPACING+lo:uo.y,state:GraphNodeStatus.Selected})))}let io=unSelectAllEntity()(eo.data.present);return oo.forEach(so=>{io=io.insertNode(so)}),to.data.edges.forEach(so=>{io=io.insertEdge(so)}),Object.assign(Object.assign({},eo),{data:pushHistory(eo.data,io)})}case GraphCanvasEvent.Delete:return eo.settings.features.has(GraphFeatures.Delete)?Object.assign(Object.assign({},eo),{data:pushHistory(eo.data,eo.data.present.deleteItems({node:notSelected,edge:notSelected}),unSelectAllEntity())}):eo;case GraphCanvasEvent.Undo:return Object.assign(Object.assign({},eo),{data:undo(eo.data)});case GraphCanvasEvent.Redo:return Object.assign(Object.assign({},eo),{data:redo(eo.data)});case GraphCanvasEvent.KeyDown:{const ro=to.rawEvent.key.toLowerCase();if(eo.activeKeys.has(ro))return eo;const no=new Set(eo.activeKeys);return no.add(ro),Object.assign(Object.assign({},eo),{activeKeys:no})}case GraphCanvasEvent.KeyUp:{const ro=to.rawEvent.key.toLowerCase();if(!eo.activeKeys.has(ro))return eo;const no=new Set(eo.activeKeys);return no.delete(ro),Object.assign(Object.assign({},eo),{activeKeys:no})}case GraphCanvasEvent.SetData:return Object.assign(Object.assign({},eo),{data:resetUndoStack(to.data)});case GraphCanvasEvent.UpdateData:return Object.assign(Object.assign({},eo),{data:to.shouldRecord?pushHistory(eo.data,to.updater(eo.data.present)):Object.assign(Object.assign({},eo.data),{present:to.updater(eo.data.present)})});case GraphCanvasEvent.ResetUndoStack:return Object.assign(Object.assign({},eo),{data:resetUndoStack(eo.data.present)});case GraphCanvasEvent.UpdateSettings:{const ro=__rest(to,["type"]);return Object.assign(Object.assign({},eo),{settings:Object.assign(Object.assign({},eo.settings),ro)})}default:return eo}};function composeReducers(eo){return to=>eo.reduceRight((ro,no)=>no(ro),to)}const VisitPortHelper=eo=>{const{neighborPorts:to,data:ro}=eo,no=reactExports.useRef(null),[oo,io]=reactExports.useState(),so=reactExports.useCallback(uo=>{uo.key==="Escape"&&(uo.stopPropagation(),uo.preventDefault(),oo&&eo.onComplete(oo))},[oo,eo]),ao=reactExports.useCallback(()=>{},[]),lo=reactExports.useCallback(uo=>{const co=JSON.parse(uo.target.value);co.nodeId&&co.portId&&io({nodeId:co.nodeId,portId:co.portId})},[io]);return reactExports.useEffect(()=>{no.current&&no.current.focus({preventScroll:!0})},[]),jsxRuntimeExports.jsx("select",Object.assign({onKeyDown:so,onBlur:ao,ref:no,onChange:lo},{children:to.map(uo=>{const co=oo&&oo.portId===uo.portId&&oo.nodeId===uo.nodeId,fo=JSON.stringify(uo),po=ro.nodes.get(uo.nodeId);if(!po)return null;const ho=po.ports?po.ports.filter(vo=>vo.id===uo.portId)[0]:null;if(!ho)return null;const mo=`${po.ariaLabel||po.name||po.id}: ${ho.ariaLabel||ho.name||ho.id}`;return jsxRuntimeExports.jsx("option",Object.assign({value:fo,"aria-selected":co,"aria-label":mo},{children:mo}),`${uo.nodeId}-${uo.portId}`)})}))},item=(eo=void 0,to=void 0)=>({node:eo,port:to}),findDOMElement=(eo,{node:to,port:ro})=>{var no,oo;let io;if(to&&ro)io=getPortUid((no=eo.dataset.graphId)!==null&&no!==void 0?no:"",to,ro);else if(to)io=getNodeUid((oo=eo.dataset.graphId)!==null&&oo!==void 0?oo:"",to);else return null;return eo.getElementById(io)},focusItem=(eo,to,ro,no)=>{if(!eo.current)return;const oo=findDOMElement(eo.current,to);oo?(ro.preventDefault(),ro.stopPropagation(),oo.focus({preventScroll:!0}),no.trigger({type:GraphCanvasEvent.Navigate,node:to.node,port:to.port,rawEvent:ro})):!to.node&&!to.port&&no.trigger({type:GraphCanvasEvent.Navigate,node:to.node,port:to.port,rawEvent:ro})},getNextItem=(eo,to,ro)=>{if(to.ports){const io=(ro?to.ports.findIndex(so=>so.id===ro.id):-1)+1;if(io{if(ro&&to.ports){const oo=to.ports.findIndex(io=>io.id===ro.id)-1;return oo>=0?item(to,to.ports[oo]):item(to)}const no=to.prev&&eo.nodes.get(to.prev);return no?item(no,no.ports&&no.ports.length?no.ports[no.ports.length-1]:void 0):item()},nextConnectablePort=(eo,to)=>(ro,no,oo)=>{var io,so,ao;let lo=getNextItem(ro,no,oo);for(;!(((io=lo.node)===null||io===void 0?void 0:io.id)===no.id&&((so=lo.port)===null||so===void 0?void 0:so.id)===(oo==null?void 0:oo.id));){if(!lo.node)lo=item(ro.getNavigationFirstNode());else if(lo.port&&!((ao=eo.getPortConfig(lo.port))===null||ao===void 0)&&ao.getIsConnectable(Object.assign(Object.assign({},to),{data:ro,parentNode:lo.node,model:lo.port})))return lo;lo=getNextItem(ro,lo.node,lo.port)}return item()},focusNextPort=(eo,to,ro,no,oo,io)=>{const ao=(eo.findIndex(uo=>uo.id===ro)+1)%eo.length,lo=eo[ao];lo&&no.current&&focusItem(no,{node:to,port:lo},oo,io)},focusPrevPort=(eo,to,ro,no,oo,io)=>{const ao=(eo.findIndex(uo=>uo.id===ro)-1+eo.length)%eo.length,lo=eo[ao];lo&&no.current&&focusItem(no,{node:to,port:lo},oo,io)},getFocusNodeHandler=eo=>(to,ro,no,oo,io,so)=>{const ao=Array.from(to.nodes.values()).sort(eo),lo=ao.findIndex(co=>co.id===ro),uo=ao[(lo+1)%ao.length];uo&&no.current&&(oo.dispatch({type:GraphNodeEvent.Select,nodes:[uo.id]}),oo.dispatch({type:GraphNodeEvent.Centralize,nodes:[uo.id]}),focusItem(no,{node:uo,port:void 0},io,so))},focusLeftNode=getFocusNodeHandler((eo,to)=>eo.x*10+eo.y-to.x*10-to.y),focusRightNode=getFocusNodeHandler((eo,to)=>to.x*10+to.y-eo.x*10-eo.y),focusDownNode=getFocusNodeHandler((eo,to)=>eo.x+eo.y*10-to.x-to.y*10),focusUpNode=getFocusNodeHandler((eo,to)=>to.x+to.y*10-eo.x-eo.y*10),goToConnectedPort=(eo,to,ro,no,oo,io)=>{var so;const ao=getNeighborPorts(eo,to.id,ro.id);if(ao.length===1&&no.current){const lo=eo.nodes.get(ao[0].nodeId);if(!lo)return;const uo=(so=lo.ports)===null||so===void 0?void 0:so.find(co=>co.id===ao[0].portId);if(!uo)return;focusItem(no,{node:lo,port:uo},oo,io)}else if(ao.length>1&&no.current){const lo=fo=>{var po;if(reactDomExports.unmountComponentAtNode(uo),no.current){const vo=no.current.closest(".react-dag-editor-container");vo&&vo.removeChild(uo)}const ho=eo.nodes.get(fo.nodeId);if(!ho)return;const mo=(po=ho.ports)===null||po===void 0?void 0:po.find(vo=>vo.id===fo.portId);mo&&focusItem(no,{node:ho,port:mo},oo,io)},uo=document.createElement("div"),co=no.current.closest(".react-dag-editor-container");co&&co.appendChild(uo),uo.style.position="fixed",uo.style.top="0",reactDomExports.render(jsxRuntimeExports.jsx(VisitPortHelper,{neighborPorts:ao,onComplete:lo,data:eo}),uo)}};function defaultGetPortAriaLabel(eo,to,ro){return ro.ariaLabel}function defaultGetNodeAriaLabel(eo){return eo.ariaLabel}function attachPort(eo,to,ro){if(!eo.connectState)return eo;let no=eo.data.present;return no=no.updatePort(to,ro,updateStatus(add(GraphPortStatus.ConnectingAsTarget))),eo.connectState.targetNode&&eo.connectState.targetPort&&(no=no.updatePort(eo.connectState.targetNode,eo.connectState.targetPort,updateStatus(remove$1(GraphPortStatus.ConnectingAsTarget)))),Object.assign(Object.assign({},eo),{connectState:Object.assign(Object.assign({},eo.connectState),{targetNode:to,targetPort:ro}),data:Object.assign(Object.assign({},eo.data),{present:no})})}function clearAttach(eo){if(!eo.connectState)return eo;let to=eo.data.present;const{targetPort:ro,targetNode:no}=eo.connectState;return no&&ro&&(to=to.updatePort(no,ro,updateStatus(remove$1(GraphPortStatus.ConnectingAsTarget)))),Object.assign(Object.assign({},eo),{connectState:Object.assign(Object.assign({},eo.connectState),{targetNode:void 0,targetPort:void 0}),data:Object.assign(Object.assign({},eo.data),{present:to})})}const connectingReducer=(eo,to)=>{var ro,no,oo;if(!isViewportComplete(eo.viewport))return eo;const{rect:io}=eo.viewport;switch(to.type){case GraphEdgeEvent.ConnectStart:return Object.assign(Object.assign({},eo),{connectState:Object.assign(Object.assign({},EMPTY_CONNECT_STATE),{sourceNode:to.nodeId,sourcePort:to.portId,movingPoint:to.clientPoint?{x:to.clientPoint.x-io.left,y:to.clientPoint.y-io.top}:void 0}),data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updatePort(to.nodeId,to.portId,updateStatus(add(GraphPortStatus.Connecting)))})});case GraphEdgeEvent.ConnectMove:return eo.connectState?Object.assign(Object.assign({},eo),{connectState:Object.assign(Object.assign({},eo.connectState),{movingPoint:{x:to.clientX-io.left,y:to.clientY-io.top}})}):eo;case GraphEdgeEvent.ConnectEnd:if(eo.connectState){const{edgeWillAdd:so,isCancel:ao}=to,{sourceNode:lo,sourcePort:uo,targetNode:co,targetPort:fo}=eo.connectState;let po=eo.data.present;if(po=po.updatePort(lo,uo,updateStatus(replace$1(GraphPortStatus.Default))),!ao&&co&&fo){let ho={source:lo,sourcePortId:uo,target:co,targetPortId:fo,id:v4(),status:GraphEdgeStatus.Default};return so&&(ho=so(ho,po)),po=po.insertEdge(ho).updatePort(co,fo,updateStatus(replace$1(GraphPortStatus.Default))),Object.assign(Object.assign({},eo),{connectState:void 0,data:pushHistory(eo.data,po,unSelectAllEntity())})}return Object.assign(Object.assign({},eo),{connectState:void 0,data:Object.assign(Object.assign({},eo.data),{present:po})})}return eo;case GraphEdgeEvent.ConnectNavigate:if(eo.connectState){const so=eo.data.present,ao=so.nodes.get(eo.connectState.sourceNode),lo=ao==null?void 0:ao.getPort(eo.connectState.sourcePort),uo=eo.connectState.targetNode?so.nodes.get(eo.connectState.targetNode):void 0,co=eo.connectState.targetPort?uo==null?void 0:uo.getPort(eo.connectState.targetPort):void 0;if(!ao||!lo)return eo;const fo=nextConnectablePort(eo.settings.graphConfig,{anotherNode:ao,anotherPort:lo})(so,uo||ao,co);return!fo.node||!fo.port||fo.node.id===ao.id&&fo.port.id===lo.id?eo:attachPort(eo,fo.node.id,fo.port.id)}return eo;case GraphPortEvent.PointerEnter:if(eo.connectState){const{sourceNode:so,sourcePort:ao}=eo.connectState,lo=eo.data.present,uo=lo.nodes.get(to.node.id),co=uo==null?void 0:uo.getPort(to.port.id),fo=lo.nodes.get(so),po=fo==null?void 0:fo.getPort(ao);if(uo&&co&&fo&&po&&isConnectable(eo.settings.graphConfig,{parentNode:uo,model:co,data:lo,anotherPort:po,anotherNode:fo}))return attachPort(eo,uo.id,co.id)}return eo;case GraphNodeEvent.PointerEnter:case GraphNodeEvent.PointerMove:if(eo.connectState){const{clientX:so,clientY:ao}=to.rawEvent,{sourceNode:lo,sourcePort:uo}=eo.connectState,co=eo.data.present,fo=co.nodes.get(to.node.id),po=co.nodes.get(lo),ho=po==null?void 0:po.getPort(uo);if(fo&&po&&ho){const mo=getNearestConnectablePort({parentNode:fo,clientX:so,clientY:ao,graphConfig:eo.settings.graphConfig,data:eo.data.present,viewport:eo.viewport,anotherPort:ho,anotherNode:po});return mo?attachPort(eo,fo.id,mo.id):eo}}return eo;case GraphNodeEvent.PointerLeave:return((ro=eo.connectState)===null||ro===void 0?void 0:ro.targetNode)===to.node.id?clearAttach(eo):eo;case GraphPortEvent.PointerLeave:return((no=eo.connectState)===null||no===void 0?void 0:no.targetNode)===to.node.id&&((oo=eo.connectState)===null||oo===void 0?void 0:oo.targetPort)===to.port.id?clearAttach(eo):eo;default:return eo}},contextMenuReducer=(eo,to)=>{let ro=eo.contextMenuPosition;switch(to.type){case GraphCanvasEvent.ContextMenu:case GraphNodeEvent.ContextMenu:case GraphEdgeEvent.ContextMenu:case GraphPortEvent.ContextMenu:{const no=to.rawEvent;no.button===MouseEventButton.Secondary&&(ro={x:no.clientX,y:no.clientY})}break;case GraphCanvasEvent.Click:case GraphNodeEvent.Click:case GraphEdgeEvent.Click:case GraphPortEvent.Click:ro=void 0;break;case GraphContextMenuEvent.Open:ro={x:to.x,y:to.y};break;case GraphContextMenuEvent.Close:ro=void 0;break}return eo.contextMenuPosition===ro?eo:Object.assign(Object.assign({},eo),{contextMenuPosition:ro})},edgeReducer=(eo,to)=>{switch(to.type){case GraphEdgeEvent.DoubleClick:return eo.settings.features.has(GraphFeatures.EditEdge)?Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updateEdge(to.edge.id,updateStatus(replace$1(GraphEdgeStatus.Editing)))})}):eo;case GraphEdgeEvent.MouseEnter:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updateEdge(to.edge.id,updateStatus(add(GraphEdgeStatus.Activated)))})});case GraphEdgeEvent.MouseLeave:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updateEdge(to.edge.id,updateStatus(remove$1(GraphEdgeStatus.Activated)))})});case GraphEdgeEvent.Click:case GraphEdgeEvent.ContextMenu:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:unSelectAllEntity()(eo.data.present).updateEdge(to.edge.id,updateStatus(add(GraphEdgeStatus.Selected)))})});case GraphEdgeEvent.Add:return Object.assign(Object.assign({},eo),{data:pushHistory(eo.data,eo.data.present.insertEdge(to.edge))});default:return eo}},getAlignmentLines=(eo,to,ro,no=2)=>{const oo=getDummyDraggingNode(eo),io=getClosestNodes(oo,eo,to,ro,no);return getLines(oo,io,eo.length)},getAutoAlignDisplacement=(eo,to,ro,no)=>{let oo=1/0,io=0;const so=getDummyDraggingNode(to),ao=no==="x"?so.width||0:so.height||0;return eo.forEach(lo=>{let uo;if(no==="x"&&lo.x1===lo.x2)uo=lo.x1;else if(no==="y"&&lo.y1===lo.y2)uo=lo.y1;else return;const co=so[no]-uo,fo=so[no]+(ao||0)/2-uo,po=so[no]+(ao||0)-uo;Math.abs(co)0?-oo:oo),Math.abs(fo)0?-oo:oo),Math.abs(po)0?-oo:oo)}),io},getMinCoordinate=(eo,to)=>{if(eo.length)return Math.min(...eo.map(ro=>ro[to]))},getMaxCoordinate=(eo,to)=>{if(eo.length)return Math.max(...eo.map(ro=>ro[to]+(to==="y"?ro.height||0:ro.width||0)))},setSizeForNode=(eo,to)=>Object.assign(Object.assign({},eo),getNodeSize(eo,to)),getBoundingBoxOfNodes=eo=>{let to=1/0,ro=1/0,no=-1/0,oo=-1/0;return eo.forEach(io=>{const so=io.x,ao=io.y,lo=io.x+(io.width||0),uo=io.y+(io.height||0);sono&&(no=lo),uo>oo&&(oo=uo)}),{x:to,y:ro,width:no-to,height:oo-ro}},getDummyDraggingNode=eo=>{const{x:to,y:ro,width:no,height:oo}=getBoundingBoxOfNodes(eo);return{id:v4(),x:to,y:ro,width:no,height:oo}},getClosestNodes=(eo,to,ro,no,oo=2)=>{const io=[],so=[],{x:ao,y:lo,width:uo=0,height:co=0}=eo;let fo=oo,po=oo;return ro.forEach(ho=>{if(to.find(xo=>xo.id===ho.id))return;const mo=setSizeForNode(ho,no),{width:vo=0,height:bo=0}=mo;[ao,ao+uo/2,ao+uo].forEach((xo,_o)=>{io[_o]||(io[_o]={}),io[_o].closestNodes||(io[_o].closestNodes=[]),[mo.x,mo.x+vo/2,mo.x+vo].forEach(So=>{var Eo;const ko=Math.abs(xo-So);ko<=fo&&((Eo=io[_o].closestNodes)===null||Eo===void 0||Eo.push(mo),io[_o].alignCoordinateValue=So,fo=ko)})}),[lo,lo+co/2,lo+co].forEach((xo,_o)=>{so[_o]||(so[_o]={}),so[_o].closestNodes||(so[_o].closestNodes=[]),[mo.y,mo.y+bo/2,mo.y+bo].forEach(So=>{var Eo;const ko=Math.abs(xo-So);ko<=po&&((Eo=so[_o].closestNodes)===null||Eo===void 0||Eo.push(mo),so[_o].alignCoordinateValue=So,po=ko)})})}),{closestX:io,closestY:so}},getLines=(eo,to,ro=1)=>{const no=[],oo=[],io=to.closestX,so=to.closestY;return io.forEach((ao,lo)=>{var uo;if(ao.alignCoordinateValue===void 0||lo===1&&(no.length||ro>1))return;const co=[],fo=ao.alignCoordinateValue;(uo=ao.closestNodes)===null||uo===void 0||uo.forEach(mo=>{(mo.x===fo||mo.x+(mo.width||0)/2===fo||mo.x+(mo.width||0)===fo)&&co.push(mo)});const po=getMinCoordinate([eo,...co],"y"),ho=getMaxCoordinate([eo,...co],"y");po!==void 0&&ho!==void 0&&no.push({x1:fo,y1:po,x2:fo,y2:ho,visible:!0})}),so.forEach((ao,lo)=>{var uo;if(ao.alignCoordinateValue===void 0||lo===1&&(oo.length||ro>1))return;const co=[],fo=ao.alignCoordinateValue;(uo=ao.closestNodes)===null||uo===void 0||uo.forEach(mo=>{(mo.y===fo||mo.y+(mo.height||0)/2===fo||mo.y+(mo.height||0)===fo)&&co.push(mo)});const po=getMinCoordinate([eo,...co],"x"),ho=getMaxCoordinate([eo,...co],"x");po!==void 0&&ho!==void 0&&oo.push({x1:po,y1:fo,x2:ho,y2:fo,visible:!0})}),[...no,...oo]};function pipe(...eo){return eo.reduceRight((to,ro)=>no=>to(ro(no)),identical)}const getDelta=(eo,to,ro)=>roto?10:0;function getSelectedNodes(eo,to){const ro=[];return eo.nodes.forEach(no=>{isSelected(no)&&ro.push(Object.assign({id:no.id,x:no.x,y:no.y},getNodeSize(no,to)))}),ro}function dragNodeHandler(eo,to){if(!isViewportComplete(eo.viewport))return eo;const ro=ho=>Math.max(ho,getScaleLimit(so,eo.settings)),no=to.rawEvent,{rect:oo}=eo.viewport,io=Object.assign({},eo),so=eo.data.present,ao=getDelta(oo.left,oo.right,no.clientX),lo=getDelta(oo.top,oo.bottom,no.clientY),uo=ao!==0||lo!==0?.999:1,co=ao!==0||ao!==0?pipe(pan(-ao,-lo),zoom({scale:uo,anchor:getRelativePoint(oo,no),direction:Direction$1.XY,limitScale:ro}))(eo.viewport):eo.viewport,fo=getPointDeltaByClientDelta(to.dx+ao*uo,to.dy+lo*uo,co.transformMatrix),po=Object.assign(Object.assign({},eo.dummyNodes),{dx:eo.dummyNodes.dx+fo.x,dy:eo.dummyNodes.dy+fo.y,isVisible:to.isVisible});if(to.isAutoAlignEnable){const ho=getRenderedNodes(so.nodes,eo.viewport);if(ho.lengthObject.assign(Object.assign({},bo),{x:bo.x+po.dx,y:bo.y+po.dy})),vo=getAlignmentLines(mo,ho,eo.settings.graphConfig,eo.viewport.transformMatrix[0]>.3?2:5);if(vo.length){const bo=getAutoAlignDisplacement(vo,mo,eo.settings.graphConfig,"x"),xo=getAutoAlignDisplacement(vo,mo,eo.settings.graphConfig,"y");po.alignedDX=po.dx+bo,po.alignedDY=po.dy+xo}else po.alignedDX=void 0,po.alignedDY=void 0;io.alignmentLines=vo}else po.alignedDX=void 0,po.alignedDY=void 0}return io.dummyNodes=po,io.viewport=co,io}function handleDraggingNewNode(eo,to){if(!eo.settings.features.has(GraphFeatures.AutoAlign))return eo;const ro=eo.data.present,no=getRenderedNodes(ro.nodes,eo.viewport),oo=getAlignmentLines([to.node],no,eo.settings.graphConfig,eo.viewport.transformMatrix[0]>.3?2:5);return Object.assign(Object.assign({},eo),{alignmentLines:oo})}function dragStart(eo,to){let ro=eo.data.present;const no=ro.nodes.get(to.node.id);if(!no)return eo;let oo;return to.isMultiSelect?(ro=ro.selectNodes(io=>io.id===to.node.id||isSelected(io)),oo=getSelectedNodes(ro,eo.settings.graphConfig)):isSelected(no)?oo=getSelectedNodes(ro,eo.settings.graphConfig):oo=[Object.assign({id:to.node.id,x:to.node.x,y:to.node.y},getNodeSize(to.node,eo.settings.graphConfig))],Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:ro}),dummyNodes:Object.assign(Object.assign({},emptyDummyNodes()),{isVisible:!1,nodes:oo})})}function dragEnd(eo,to){let ro=eo.data.present;if(to.isDragCanceled)return Object.assign(Object.assign({},eo),{alignmentLines:[],dummyNodes:emptyDummyNodes()});const{dx:no,dy:oo}=eo.dummyNodes;return ro=ro.updateNodesPositionAndSize(eo.dummyNodes.nodes.map(io=>Object.assign(Object.assign({},io),{x:io.x+no,y:io.y+oo,width:void 0,height:void 0}))),Object.assign(Object.assign({},eo),{alignmentLines:[],dummyNodes:emptyDummyNodes(),data:pushHistory(eo.data,ro,unSelectAllEntity())})}function locateNode(eo,to){const ro=to.data.present;if(!isViewportComplete(to.viewport)||!eo.nodes.length)return to;if(eo.nodes.length===1){const ao=eo.nodes[0],lo=ro.nodes.get(ao);if(!lo)return to;const{width:uo,height:co}=getNodeSize(lo,to.settings.graphConfig),fo=eo.type===GraphNodeEvent.Centralize?lo.x+uo/2:lo.x,po=eo.type===GraphNodeEvent.Centralize?lo.y+co/2:lo.y,{x:ho,y:mo}=transformPoint(fo,po,to.viewport.transformMatrix),vo=eo.type===GraphNodeEvent.Locate?eo.position:void 0;return Object.assign(Object.assign({},to),{viewport:scrollIntoView$1(ho,mo,to.viewport.rect,!0,vo)(to.viewport)})}const{minNodeX:no,minNodeY:oo,maxNodeX:io,maxNodeY:so}=getContentArea$1(ro,to.settings.graphConfig,new Set(eo.nodes));return Object.assign(Object.assign({},to),{viewport:focusArea(no,oo,io,so,to.viewport)})}const nodeReducer=(eo,to)=>{const ro=eo.data.present;switch(to.type){case GraphNodeEvent.ResizingStart:return Object.assign(Object.assign({},eo),{dummyNodes:Object.assign(Object.assign({},emptyDummyNodes()),{isVisible:!0,nodes:getSelectedNodes(ro,eo.settings.graphConfig)})});case GraphNodeEvent.Resizing:return Object.assign(Object.assign({},eo),{dummyNodes:Object.assign(Object.assign({},eo.dummyNodes),{dx:to.dx,dy:to.dy,dWidth:to.dWidth,dHeight:to.dHeight})});case GraphNodeEvent.ResizingEnd:{const{dx:no,dy:oo,dWidth:io,dHeight:so}=eo.dummyNodes;return Object.assign(Object.assign({},eo),{dummyNodes:emptyDummyNodes(),data:pushHistory(eo.data,ro.updateNodesPositionAndSize(eo.dummyNodes.nodes.map(ao=>Object.assign(Object.assign({},ao),{x:ao.x+no,y:ao.y+oo,width:ao.width+io,height:ao.height+so}))),unSelectAllEntity())})}case GraphNodeEvent.DragStart:return dragStart(eo,to);case GraphNodeEvent.Drag:return dragNodeHandler(eo,to);case GraphNodeEvent.DragEnd:return dragEnd(eo,to);case GraphNodeEvent.PointerEnter:switch(eo.behavior){case GraphBehavior.Default:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:ro.updateNode(to.node.id,updateStatus(add(GraphNodeStatus.Activated)))})});default:return eo}case GraphNodeEvent.PointerLeave:switch(eo.behavior){case GraphBehavior.Default:case GraphBehavior.Connecting:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:ro.updateNode(to.node.id,updateStatus(remove$1(GraphNodeStatus.Activated)))})});default:return eo}case GraphCanvasEvent.DraggingNodeFromItemPanel:return handleDraggingNewNode(eo,to);case GraphCanvasEvent.DraggingNodeFromItemPanelEnd:return to.node?Object.assign(Object.assign({},eo),{alignmentLines:[],data:pushHistory(eo.data,eo.data.present.insertNode(Object.assign(Object.assign({},to.node),{status:GraphNodeStatus.Selected})),unSelectAllEntity())}):Object.assign(Object.assign({},eo),{alignmentLines:[]});case GraphNodeEvent.Centralize:case GraphNodeEvent.Locate:return locateNode(to,eo);case GraphNodeEvent.Add:return Object.assign(Object.assign({},eo),{data:pushHistory(eo.data,ro.insertNode(to.node))});case GraphNodeEvent.DoubleClick:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updateNode(to.node.id,updateStatus(add(GraphNodeStatus.Editing)))})});default:return eo}},portReducer=(eo,to)=>{switch(to.type){case GraphPortEvent.Focus:case GraphPortEvent.PointerEnter:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updatePort(to.node.id,to.port.id,updateStatus(add(GraphPortStatus.Activated)))})});case GraphPortEvent.Blur:case GraphPortEvent.PointerLeave:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updatePort(to.node.id,to.port.id,updateStatus(remove$1(GraphPortStatus.Activated)))})});case GraphPortEvent.Click:case GraphPortEvent.ContextMenu:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:unSelectAllEntity()(eo.data.present).updatePort(to.node.id,to.port.id,updateStatus(add(GraphPortStatus.Selected)))})});default:return eo}},selectNodeBySelectBox=(eo,to,ro,no)=>{if(!ro.width||!ro.height)return no;const oo=Math.min(ro.startX,ro.startX+ro.width),io=Math.max(ro.startX,ro.startX+ro.width),so=Math.min(ro.startY,ro.startY+ro.height),ao=Math.max(ro.startY,ro.startY+ro.height),lo=reverseTransformPoint(oo,so,to),uo=reverseTransformPoint(io,ao,to),co={minX:lo.x,minY:lo.y,maxX:uo.x,maxY:uo.y};return no.selectNodes(fo=>{const{width:po,height:ho}=getNodeSize(fo,eo),mo={minX:fo.x,minY:fo.y,maxX:fo.x+po,maxY:fo.y+ho};return checkRectIntersect(co,mo)})};function handleNavigate(eo,to){let ro=unSelectAllEntity()(eo.data.present);if(to.node&&to.port)ro=ro.updatePort(to.node.id,to.port.id,updateStatus(add(GraphPortStatus.Selected)));else if(to.node){const no=to.node.id;ro=ro.selectNodes(oo=>oo.id===no)}return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:ro})})}const selectionReducer=(eo,to)=>{var ro,no;const oo=eo.data.present,io=eo.settings.features.has(GraphFeatures.LassoSelect);switch(to.type){case GraphCanvasEvent.Click:case GraphCanvasEvent.ResetSelection:case GraphCanvasEvent.ContextMenu:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:unSelectAllEntity()(oo)})});case GraphNodeEvent.Click:case GraphNodeEvent.ContextMenu:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:nodeSelection(to.rawEvent,to.node)(oo)})});case GraphCanvasEvent.SelectStart:{if(!isViewportComplete(eo.viewport))return eo;const so=getRelativePoint(eo.viewport.rect,to.rawEvent);return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:unSelectAllEntity()(oo)}),selectBoxPosition:{startX:so.x,startY:io?0:so.y,width:0,height:0}})}case GraphCanvasEvent.SelectMove:return eo.behavior!==GraphBehavior.MultiSelect?eo:Object.assign(Object.assign({},eo),{selectBoxPosition:Object.assign(Object.assign({},eo.selectBoxPosition),{width:eo.selectBoxPosition.width+to.dx,height:io?(no=(ro=eo.viewport.rect)===null||ro===void 0?void 0:ro.height)!==null&&no!==void 0?no:eo.selectBoxPosition.height:eo.selectBoxPosition.height+to.dy})});case GraphCanvasEvent.SelectEnd:return Object.assign(Object.assign({},eo),{selectBoxPosition:emptySelectBoxPosition(),data:Object.assign(Object.assign({},eo.data),{present:selectNodeBySelectBox(eo.settings.graphConfig,eo.viewport.transformMatrix,eo.selectBoxPosition,oo)})});case GraphCanvasEvent.UpdateNodeSelectionBySelectBox:return eo.behavior!==GraphBehavior.MultiSelect?eo:Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:selectNodeBySelectBox(eo.settings.graphConfig,eo.viewport.transformMatrix,eo.selectBoxPosition,oo)})});case GraphCanvasEvent.Navigate:return handleNavigate(eo,to);case GraphNodeEvent.SelectAll:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:oo.selectNodes(()=>!0)})});case GraphNodeEvent.Select:{const so=new Set(to.nodes);return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:oo.selectNodes(ao=>so.has(ao.id))})})}default:return eo}};function getRectCenter(eo){return{x:eo.width/2,y:eo.height/2}}function resetViewport(eo,to,ro,no){if(!isViewportComplete(eo))return eo;if(!no.ensureNodeVisible)return Object.assign(Object.assign({},eo),{transformMatrix:EMPTY_TRANSFORM_MATRIX});const{nodes:oo,groups:io}=to;if(oo.size===0)return Object.assign(Object.assign({},eo),{transformMatrix:EMPTY_TRANSFORM_MATRIX});const so=ho=>isRectVisible(ho,eo),ao=oo.map(ho=>getNodeRect(ho,ro));if(ao.find(so))return Object.assign(Object.assign({},eo),{transformMatrix:EMPTY_TRANSFORM_MATRIX});const uo=io.map(ho=>getGroupRect(ho,oo,ro));if(uo.find(so))return Object.assign(Object.assign({},eo),{transformMatrix:EMPTY_TRANSFORM_MATRIX});let fo=ao.first();const po=ho=>{fo.y>ho.y&&(fo=ho)};return ao.forEach(po),uo.forEach(po),Object.assign(Object.assign({},eo),{transformMatrix:[1,0,0,1,-fo.x,-fo.y]})}function zoomToFit(eo,to,ro,no){if(!isViewportComplete(eo))return eo;const{graphConfig:oo,nodeMaxVisibleSize:io,nodeMinVisibleSize:so}=ro,ao=getZoomFitMatrix(Object.assign(Object.assign({},no),{data:to,graphConfig:oo,rect:eo.rect,nodeMaxVisibleSize:io,nodeMinVisibleSize:so}));return Object.assign(Object.assign({},eo),{transformMatrix:ao})}const reducer=(eo,to,ro,no)=>{var oo,io,so,ao;const{graphConfig:lo,canvasBoundaryPadding:uo,features:co}=no,fo=po=>Math.max(po,getScaleLimit(ro,no));switch(to.type){case GraphCanvasEvent.ViewportResize:return Object.assign(Object.assign({},eo),{rect:to.viewportRect});case GraphCanvasEvent.Zoom:return isViewportComplete(eo)?zoom({scale:to.scale,anchor:(oo=to.anchor)!==null&&oo!==void 0?oo:getRectCenter(eo.rect),direction:to.direction,limitScale:fo})(eo):eo;case GraphScrollBarEvent.Scroll:case GraphCanvasEvent.MouseWheelScroll:case GraphCanvasEvent.Pan:case GraphCanvasEvent.Drag:{if(!isViewportComplete(eo))return eo;const{transformMatrix:po,rect:ho}=eo;let{dx:mo,dy:vo}=to;const bo=co.has(GraphFeatures.LimitBoundary),xo=(so=(io=ro.groups)===null||io===void 0?void 0:io[0])===null||so===void 0?void 0:so.padding;if(bo){const{minX:_o,maxX:So,minY:Eo,maxY:ko}=getOffsetLimit({data:ro,graphConfig:lo,rect:ho,transformMatrix:po,canvasBoundaryPadding:uo,groupPadding:xo});mo=clamp$1(_o-po[4],So-po[4],mo),vo=clamp$1(Eo-po[5],ko-po[5],vo)}return pan(mo,vo)(eo)}case GraphCanvasEvent.Pinch:{const{dx:po,dy:ho,scale:mo,anchor:vo}=to;return pipe(pan(po,ho),zoom({scale:mo,anchor:vo,limitScale:fo}))(eo)}case GraphMinimapEvent.Pan:return minimapPan(to.dx,to.dy)(eo);case GraphCanvasEvent.ResetViewport:return resetViewport(eo,ro,lo,to);case GraphCanvasEvent.ZoomTo:return isViewportComplete(eo)?zoomTo({scale:to.scale,anchor:(ao=to.anchor)!==null&&ao!==void 0?ao:getRectCenter(eo.rect),direction:to.direction,limitScale:fo})(eo):eo;case GraphCanvasEvent.ZoomToFit:return zoomToFit(eo,ro,no,to);case GraphCanvasEvent.ScrollIntoView:if(eo.rect){const{x:po,y:ho}=transformPoint(to.x,to.y,eo.transformMatrix);return scrollIntoView$1(po,ho,eo.rect,!0)(eo)}return eo;default:return eo}},viewportReducer=(eo,to)=>{const ro=reducer(eo.viewport,to,eo.data.present,eo.settings);return ro===eo.viewport?eo:Object.assign(Object.assign({},eo),{viewport:ro})},builtinReducer=composeReducers([behaviorReducer,viewportReducer,nodeReducer,portReducer,edgeReducer,canvasReducer,connectingReducer,selectionReducer,contextMenuReducer].map(eo=>to=>(ro,no)=>to(eo(ro,no),no)));function getGraphReducer(eo=void 0,to=identical){return(eo?composeReducers([eo,builtinReducer]):builtinReducer)(to)}function useGraphReducer(eo,to){const ro=reactExports.useMemo(()=>getGraphReducer(to),[to]),[no,oo]=reactExports.useReducer(ro,eo,createGraphState),io=useConst(()=>[]),so=reactExports.useRef(no),ao=reactExports.useCallback((lo,uo)=>{uo&&io.push(uo),oo(lo)},[io]);return reactExports.useEffect(()=>{const lo=so.current;lo!==no&&(so.current=no,reactDomExports.unstable_batchedUpdates(()=>{io.forEach(uo=>{try{uo(no,lo)}catch(co){console.error(co)}}),io.length=0}))},[no]),[no,ao]}class MouseMoveEventProvider{constructor(to){this.target=to}off(to,ro){switch(to){case"move":this.target.removeEventListener("mousemove",ro);break;case"end":this.target.removeEventListener("mouseup",ro);break}return this}on(to,ro){switch(to){case"move":this.target.addEventListener("mousemove",ro);break;case"end":this.target.addEventListener("mouseup",ro);break}return this}}const useGetMouseDownOnAnchor=(eo,to)=>{const ro=useGraphController();return reactExports.useCallback(no=>oo=>{oo.preventDefault(),oo.stopPropagation(),to.trigger({type:GraphNodeEvent.ResizingStart,rawEvent:oo,node:eo});const io=new DragController(new MouseMoveEventProvider(ro.getGlobalEventTarget()),defaultGetPositionFromEvent);io.onMove=({totalDX:so,totalDY:ao,e:lo})=>{to.trigger(Object.assign({type:GraphNodeEvent.Resizing,rawEvent:lo,node:eo,dx:0,dy:0,dWidth:0,dHeight:0},no(so,ao)))},io.onEnd=({e:so})=>{to.trigger({type:GraphNodeEvent.ResizingEnd,rawEvent:so,node:eo})},to.trigger({type:GraphNodeEvent.ResizingStart,rawEvent:oo,node:eo}),io.start(oo.nativeEvent)},[to,ro,eo])};class PointerEventProvider{constructor(to,ro=null){this.eventEmitter=new eventemitter3Exports.EventEmitter,this.onMove=no=>{(this.pointerId===null||this.pointerId===no.pointerId)&&this.eventEmitter.emit("move",no)},this.onUp=no=>{(this.pointerId===null||this.pointerId===no.pointerId)&&this.eventEmitter.emit("end",no)},this.target=to,this.pointerId=ro}off(to,ro){return this.eventEmitter.off(to,ro),this.ensureRemoveListener(to),this}on(to,ro){return this.ensureAddListener(to),this.eventEmitter.on(to,ro),this}ensureAddListener(to){if(!this.eventEmitter.listeners(to).length)switch(to){case"move":this.target.addEventListener("pointermove",this.onMove);break;case"end":this.target.addEventListener("pointerup",this.onUp);break}}ensureRemoveListener(to){if(!this.eventEmitter.listeners(to).length)switch(to){case"move":this.target.removeEventListener("pointermove",this.onMove);break;case"end":this.target.removeEventListener("pointerup",this.onUp);break}}}const withSimulatedClick=(eo,to)=>({totalDX:ro,totalDY:no,e:oo})=>{var io;const{eventChannel:so,dragThreshold:ao,containerRef:lo}=eo,uo=[];uo.push({type:to,rawEvent:oo}),oo.target instanceof Node&&(!((io=lo.current)===null||io===void 0)&&io.contains(oo.target))&&isWithinThreshold(ro,no,ao)&&uo.push({type:GraphCanvasEvent.Click,rawEvent:oo}),so.batch(uo)},dragMultiSelect=(eo,to)=>{const{getPositionFromEvent:ro,graphController:no,eventChannel:oo}=to,io=new DragController(new MouseMoveEventProvider(no.getGlobalEventTarget()),ro);io.onMove=({dx:so,dy:ao,e:lo})=>{oo.trigger({type:GraphCanvasEvent.SelectMove,rawEvent:lo,dx:so,dy:ao})},io.onEnd=withSimulatedClick(to,GraphCanvasEvent.SelectEnd),oo.trigger({type:GraphCanvasEvent.SelectStart,rawEvent:eo}),io.start(eo)},dragPan=(eo,to)=>{const{getPositionFromEvent:ro,graphController:no,eventChannel:oo}=to,io=new DragController(new MouseMoveEventProvider(no.getGlobalEventTarget()),ro);io.onMove=({dx:so,dy:ao,e:lo})=>{oo.trigger({type:GraphCanvasEvent.Drag,rawEvent:lo,dx:so,dy:ao})},io.onEnd=withSimulatedClick(to,GraphCanvasEvent.DragEnd),io.start(eo),oo.trigger({type:GraphCanvasEvent.DragStart,rawEvent:eo})},onContainerMouseDown=(eo,to)=>{var ro;if(eo.preventDefault(),eo.stopPropagation(),eo.button!==MouseEventButton.Primary)return;const{canvasMouseMode:no,isPanDisabled:oo,isMultiSelectDisabled:io,state:so,isLassoSelectEnable:ao,graphController:lo}=to,uo=no===CanvasMouseMode.Pan&&!eo.ctrlKey&&!eo.shiftKey&&!eo.metaKey||((ro=so.activeKeys)===null||ro===void 0?void 0:ro.has(" "));!oo&&uo?dragPan(eo.nativeEvent,to):!io||ao&&!eo.ctrlKey&&!eo.metaKey?dragMultiSelect(eo.nativeEvent,to):lo.canvasClickOnce=!0};function isMouseButNotLeft(eo){return eo.pointerType==="mouse"&&eo.button!==MouseEventButton.Primary}const onNodePointerDown=(eo,to,ro)=>{eo.preventDefault();const{svgRef:no,isNodesDraggable:oo,getPositionFromEvent:io,isClickNodeToSelectDisabled:so,eventChannel:ao,dragThreshold:lo,rectRef:uo,isAutoAlignEnable:co,autoAlignThreshold:fo,graphController:po}=ro;oo&&eo.stopPropagation();const ho=isMouseButNotLeft(eo);if(so||ho)return;no.current&&no.current.focus({preventScroll:!0});const mo=checkIsMultiSelect(eo),vo=new DragNodeController(new PointerEventProvider(po.getGlobalEventTarget(),eo.pointerId),io,uo);vo.onMove=({dx:bo,dy:xo,totalDX:_o,totalDY:So,e:Eo})=>{oo&&ao.trigger({type:GraphNodeEvent.Drag,node:to,dx:bo,dy:xo,rawEvent:Eo,isVisible:!isWithinThreshold(_o,So,lo),isAutoAlignEnable:co,autoAlignThreshold:fo})},vo.onEnd=({totalDX:bo,totalDY:xo,e:_o})=>{var So,Eo;po.pointerId=null;const ko=isWithinThreshold(bo,xo,lo);if((ko||!oo)&&(po.nodeClickOnce=to),ao.trigger({type:GraphNodeEvent.DragEnd,node:to,rawEvent:_o,isDragCanceled:ko}),ko){const wo=new MouseEvent("click",_o);(Eo=(So=eo.currentTarget)!==null&&So!==void 0?So:eo.target)===null||Eo===void 0||Eo.dispatchEvent(wo)}},po.pointerId=eo.pointerId,eo.target instanceof Element&&eo.pointerType!=="mouse"&&eo.target.releasePointerCapture(eo.pointerId),ao.trigger({type:GraphNodeEvent.DragStart,node:to,rawEvent:eo,isMultiSelect:mo}),vo.start(eo.nativeEvent)},useCanvasKeyboardEventHandlers=eo=>{const{featureControl:to,graphConfig:ro,setCurHoverNode:no,setCurHoverPort:oo,eventChannel:io}=eo,{isDeleteDisabled:so,isPasteDisabled:ao,isUndoEnabled:lo}=to;return reactExports.useMemo(()=>{const uo=new Map,co=()=>Eo=>{Eo.preventDefault(),Eo.stopPropagation(),!so&&(io.trigger({type:GraphCanvasEvent.Delete}),no(void 0),oo(void 0))};uo.set("delete",co()),uo.set("backspace",co());const fo=Eo=>{metaControl(Eo)&&(Eo.preventDefault(),Eo.stopPropagation(),io.trigger({type:GraphCanvasEvent.Copy}))};uo.set("c",fo);const po=Eo=>{if(metaControl(Eo)){if(Eo.preventDefault(),Eo.stopPropagation(),ao)return;const ko=ro.getClipboard().read();ko&&io.trigger({type:GraphCanvasEvent.Paste,data:ko})}};uo.set("v",po);const ho=Eo=>{lo&&metaControl(Eo)&&(Eo.preventDefault(),Eo.stopPropagation(),io.trigger({type:GraphCanvasEvent.Undo}))};lo&&uo.set("z",ho);const mo=Eo=>{lo&&metaControl(Eo)&&(Eo.preventDefault(),Eo.stopPropagation(),io.trigger({type:GraphCanvasEvent.Redo}))};lo&&uo.set("y",mo);const vo=Eo=>{metaControl(Eo)&&(Eo.preventDefault(),Eo.stopPropagation(),io.trigger({type:GraphNodeEvent.SelectAll}))};uo.set("a",vo);const bo=Eo=>{Eo.preventDefault(),Eo.stopPropagation()},xo=Eo=>{Eo.preventDefault(),Eo.stopPropagation()},_o=Eo=>{Eo.preventDefault(),Eo.stopPropagation()},So=Eo=>{Eo.preventDefault(),Eo.stopPropagation()};return uo.set(" ",bo),uo.set("control",xo),uo.set("meta",_o),uo.set("shift",So),Eo=>{if(Eo.repeat)return;const ko=Eo.key.toLowerCase(),wo=uo.get(ko);wo&&wo.call(null,Eo)}},[io,ro,so,ao,lo,no,oo])};let prevMouseDownPortId,prevMouseDownPortTime;function useEventChannel({props:eo,dispatch:to,rectRef:ro,svgRef:no,containerRef:oo,featureControl:io,graphConfig:so,setFocusedWithoutMouse:ao,setCurHoverNode:lo,setCurHoverPort:uo,eventChannel:co,updateViewport:fo,graphController:po}){const{dragThreshold:ho=10,autoAlignThreshold:mo=DEFAULT_AUTO_ALIGN_THRESHOLD,getPositionFromEvent:vo=defaultGetPositionFromEvent,canvasMouseMode:bo,edgeWillAdd:xo}=eo,{isNodesDraggable:_o,isAutoAlignEnable:So,isClickNodeToSelectDisabled:Eo,isPanDisabled:ko,isMultiSelectDisabled:wo,isLassoSelectEnable:Co,isConnectDisabled:Ro,isPortHoverViewEnable:Ao,isNodeEditDisabled:Io,isA11yEnable:$o}=io,Bo=reactExports.useMemo(()=>animationFramed(to),[to]),Mo=useCanvasKeyboardEventHandlers({featureControl:io,eventChannel:co,graphConfig:so,setCurHoverNode:lo,setCurHoverPort:uo}),Ho=Jo=>{const Cs=po.getData();if(Cs.nodes.size>0&&no.current){const Bs=Cs.head&&Cs.nodes.get(Cs.head);Bs&&focusItem(no,{node:Bs,port:void 0},Jo,co)}},jo=Jo=>{switch(Jo.type){case GraphEdgeEvent.ConnectStart:case GraphEdgeEvent.ConnectMove:case GraphEdgeEvent.ConnectEnd:case GraphEdgeEvent.ConnectNavigate:case GraphEdgeEvent.Click:case GraphEdgeEvent.MouseEnter:case GraphEdgeEvent.MouseLeave:case GraphEdgeEvent.DoubleClick:to(Jo);break;case GraphEdgeEvent.ContextMenu:Jo.rawEvent.stopPropagation(),Jo.rawEvent.preventDefault(),to(Jo);break}},Oo=Jo=>{var Cs,Bs;switch(Jo.type){case GraphCanvasEvent.ViewportResize:case GraphCanvasEvent.Drag:case GraphCanvasEvent.MouseWheelScroll:case GraphCanvasEvent.Zoom:case GraphCanvasEvent.Pinch:case GraphCanvasEvent.Click:case GraphCanvasEvent.SelectStart:case GraphCanvasEvent.SelectMove:case GraphCanvasEvent.SelectEnd:case GraphCanvasEvent.ResetSelection:case GraphCanvasEvent.Navigate:case GraphCanvasEvent.Paste:case GraphCanvasEvent.Undo:case GraphCanvasEvent.Redo:case GraphCanvasEvent.Delete:case GraphCanvasEvent.KeyUp:case GraphCanvasEvent.DraggingNodeFromItemPanelStart:case GraphCanvasEvent.DraggingNodeFromItemPanel:case GraphCanvasEvent.DraggingNodeFromItemPanelEnd:to(Jo);break;case GraphCanvasEvent.Copy:{const zs=filterSelectedItems(po.getData());so.getClipboard().write(zs)}break;case GraphCanvasEvent.KeyDown:!Jo.rawEvent.repeat&&Jo.rawEvent.target===Jo.rawEvent.currentTarget&&!Jo.rawEvent.shiftKey&&Jo.rawEvent.key==="Tab"?(Jo.rawEvent.preventDefault(),Jo.rawEvent.stopPropagation(),ao(!0),Ho(Jo.rawEvent)):Mo(Jo.rawEvent),to(Jo);break;case GraphCanvasEvent.MouseDown:{po.nodeClickOnce=null,(Cs=no.current)===null||Cs===void 0||Cs.focus({preventScroll:!0}),ao(!1);const zs=Jo.rawEvent;fo(),onContainerMouseDown(zs,{state:po.state,canvasMouseMode:bo,isPanDisabled:ko,isMultiSelectDisabled:wo,isLassoSelectEnable:Co,dragThreshold:ho,containerRef:oo,getPositionFromEvent:defaultGetPositionFromEvent,eventChannel:co,graphController:po})}break;case GraphCanvasEvent.MouseUp:if(po.canvasClickOnce){po.canvasClickOnce=!1;const zs=Jo.rawEvent;zs.target instanceof Node&&(!((Bs=no.current)===null||Bs===void 0)&&Bs.contains(zs.target))&&zs.target.nodeName==="svg"&&co.trigger({type:GraphCanvasEvent.Click,rawEvent:Jo.rawEvent})}break;case GraphCanvasEvent.ContextMenu:Jo.rawEvent.preventDefault(),Jo.rawEvent.stopPropagation(),to(Jo);break;case GraphCanvasEvent.MouseMove:{const zs=Jo.rawEvent;po.setMouseClientPosition({x:zs.clientX,y:zs.clientY})}break;case GraphCanvasEvent.MouseLeave:po.unsetMouseClientPosition(),po.canvasClickOnce=!1;break;case GraphCanvasEvent.Blur:ao(!1);break}},Fo=Jo=>{const{node:Cs}=Jo,{isNodeHoverViewEnabled:Bs}=io;switch(po.getBehavior()){case GraphBehavior.Connecting:case GraphBehavior.Default:Bs&&(lo(Cs.id),uo(void 0));break}to(Jo)},Go=Jo=>{to(Jo),lo(void 0)},qo=Jo=>{Io||(Jo.rawEvent.stopPropagation(),to(Jo))},Xo=Jo=>{if(!no||!$o)return;const Cs=po.getData(),{node:Bs}=Jo,zs=Jo.rawEvent;switch(zs.key){case"Tab":{zs.preventDefault(),zs.stopPropagation();const Ls=zs.shiftKey?getPrevItem(Cs,Bs):getNextItem(Cs,Bs);focusItem(no,Ls,zs,co)}break;case"ArrowUp":zs.preventDefault(),zs.stopPropagation(),focusUpNode(Cs,Bs.id,no,po,zs,co);break;case"ArrowDown":zs.preventDefault(),zs.stopPropagation(),focusDownNode(Cs,Bs.id,no,po,zs,co);break;case"ArrowLeft":zs.preventDefault(),zs.stopPropagation(),focusLeftNode(Cs,Bs.id,no,po,zs,co);break;case"ArrowRight":zs.preventDefault(),zs.stopPropagation(),focusRightNode(Cs,Bs.id,no,po,zs,co);break}},Zo=Jo=>{var Cs;switch(Jo.type){case GraphNodeEvent.ResizingStart:case GraphNodeEvent.Resizing:case GraphNodeEvent.ResizingEnd:case GraphNodeEvent.DragStart:case GraphNodeEvent.Drag:case GraphNodeEvent.DragEnd:case GraphNodeEvent.SelectAll:to(Jo);break;case GraphNodeEvent.PointerMove:Jo.rawEvent.pointerId===po.pointerId&&Bo(Jo);break;case GraphNodeEvent.PointerDown:{if(po.nodeClickOnce=null,po.getBehavior()!==GraphBehavior.Default)return;const Bs=Jo.rawEvent;fo(),onNodePointerDown(Bs,Jo.node,{svgRef:no,rectRef:ro,isNodesDraggable:_o,isAutoAlignEnable:So,dragThreshold:ho,getPositionFromEvent:vo,isClickNodeToSelectDisabled:Eo,autoAlignThreshold:mo,eventChannel:co,graphController:po})}break;case GraphNodeEvent.PointerEnter:Fo(Jo);break;case GraphNodeEvent.PointerLeave:Go(Jo);break;case GraphNodeEvent.MouseDown:po.nodeClickOnce=null,Jo.rawEvent.preventDefault(),_o&&Jo.rawEvent.stopPropagation(),ao(!1);break;case GraphNodeEvent.Click:if(((Cs=po.nodeClickOnce)===null||Cs===void 0?void 0:Cs.id)===Jo.node.id){const{currentTarget:Bs}=Jo.rawEvent;Bs instanceof SVGElement&&Bs.focus({preventScroll:!0}),Jo.node=po.nodeClickOnce,to(Jo),po.nodeClickOnce=null}else Jo.intercepted=!0;break;case GraphNodeEvent.ContextMenu:Jo.rawEvent.preventDefault(),Jo.rawEvent.stopPropagation(),to(Jo);break;case GraphNodeEvent.DoubleClick:qo(Jo);break;case GraphNodeEvent.KeyDown:Xo(Jo);break}},Qo=reactExports.useCallback(Jo=>{const Cs=Jo.rawEvent,{node:Bs,port:zs}=Jo;if(ao(!1),Cs.stopPropagation(),Cs.preventDefault(),prevMouseDownPortId=`${Bs.id}:${zs.id}`,prevMouseDownPortTime=performance.now(),Ro||isMouseButNotLeft(Cs))return;fo();const Ls=po.getGlobalEventTarget(),ga=new DragController(new PointerEventProvider(Ls,Cs.pointerId),vo);ga.onMove=({clientX:Js,clientY:Zs,e:$a})=>{co.trigger({type:GraphEdgeEvent.ConnectMove,rawEvent:$a,clientX:Js,clientY:Zs})},ga.onEnd=({e:Js,totalDY:Zs,totalDX:$a})=>{var Ll,Kl;const Zl=isWithinThreshold($a,Zs,ho);if(co.trigger({type:GraphEdgeEvent.ConnectEnd,rawEvent:Js,edgeWillAdd:xo,isCancel:Zl}),po.pointerId=null,Zl){const $l=new MouseEvent("click",Js);(Kl=(Ll=Cs.currentTarget)!==null&&Ll!==void 0?Ll:Cs.target)===null||Kl===void 0||Kl.dispatchEvent($l)}},co.trigger({type:GraphEdgeEvent.ConnectStart,nodeId:Bs.id,portId:zs.id,rawEvent:Cs,clientPoint:{x:Cs.clientX,y:Cs.clientY}}),Cs.target instanceof Element&&Cs.pointerType!=="mouse"&&Cs.target.releasePointerCapture(Cs.pointerId),po.pointerId=Cs.pointerId,ga.start(Cs.nativeEvent)},[xo,co,vo,po,Ro,ao,fo]),xs=reactExports.useCallback(Jo=>{const Cs=Jo.rawEvent,{node:Bs,port:zs}=Jo;prevMouseDownPortId===`${Bs.id}:${zs.id}`&&performance.now()-(prevMouseDownPortTime||0)<500&&(prevMouseDownPortId=void 0,prevMouseDownPortTime=void 0,co.trigger({type:GraphPortEvent.Click,node:Bs,port:zs,rawEvent:Cs}))},[co]),Ts=Jo=>{switch(po.getBehavior()){case GraphBehavior.Default:uo([Jo.node.id,Jo.port.id]);break}Ao&&uo([Jo.node.id,Jo.port.id]),Jo.rawEvent.pointerId===po.pointerId&&to(Jo)},Rs=Jo=>{uo(void 0),to(Jo)},Os=Jo=>{var Cs,Bs,zs;if(!$o)return;const Ls=Jo.rawEvent;if(Ls.altKey&&(Ls.nativeEvent.code==="KeyC"||Ls.key==="c")){Ls.preventDefault(),Ls.stopPropagation(),co.trigger({type:GraphEdgeEvent.ConnectStart,nodeId:Jo.node.id,portId:Jo.port.id,rawEvent:Ls});return}const ga=po.getData(),{node:Js,port:Zs}=Jo;switch(Ls.key){case"Tab":if($o&&po.getBehavior()===GraphBehavior.Connecting)Ls.preventDefault(),Ls.stopPropagation(),co.trigger({type:GraphEdgeEvent.ConnectNavigate,rawEvent:Ls});else{const $a=Ls.shiftKey?getPrevItem(ga,Js,Zs):getNextItem(ga,Js,Zs);focusItem(no,$a,Ls,co)}break;case"ArrowUp":case"ArrowLeft":Ls.preventDefault(),Ls.stopPropagation(),focusPrevPort((Cs=Js.ports)!==null&&Cs!==void 0?Cs:[],Js,Zs.id,no,Ls,co);break;case"ArrowDown":case"ArrowRight":Ls.preventDefault(),Ls.stopPropagation(),focusNextPort((Bs=Js.ports)!==null&&Bs!==void 0?Bs:[],Js,Zs.id,no,Ls,co);break;case"g":Ls.preventDefault(),Ls.stopPropagation(),goToConnectedPort(ga,Js,Zs,no,Ls,co);break;case"Escape":po.getBehavior()===GraphBehavior.Connecting&&(Ls.preventDefault(),Ls.stopPropagation(),no.current&&((zs=findDOMElement(no.current,{node:Js,port:Zs}))===null||zs===void 0||zs.blur()));break;case"Enter":Ls.preventDefault(),Ls.stopPropagation(),co.trigger({type:GraphEdgeEvent.ConnectEnd,rawEvent:Ls.nativeEvent,edgeWillAdd:xo,isCancel:!1});break}},As=Jo=>{switch(Jo.type){case GraphPortEvent.Click:to(Jo);break;case GraphPortEvent.PointerDown:Qo(Jo);break;case GraphPortEvent.PointerUp:xs(Jo);break;case GraphPortEvent.PointerEnter:Ts(Jo);break;case GraphPortEvent.PointerLeave:Rs(Jo);break;case GraphPortEvent.ContextMenu:Jo.rawEvent.preventDefault(),Jo.rawEvent.stopPropagation(),to(Jo);break;case GraphPortEvent.Focus:Jo.rawEvent.stopPropagation(),to(Jo);break;case GraphPortEvent.Blur:po.getBehavior()===GraphBehavior.Connecting&&co.trigger({type:GraphEdgeEvent.ConnectEnd,rawEvent:Jo.rawEvent.nativeEvent,edgeWillAdd:xo,isCancel:!0});break;case GraphPortEvent.KeyDown:Os(Jo);break}},Ds=Jo=>{const Cs=handleBehaviorChange(po.getBehavior(),Jo);switch(po.setBehavior(Cs),jo(Jo),Oo(Jo),Zo(Jo),As(Jo),Jo.type){case GraphMinimapEvent.Pan:case GraphScrollBarEvent.Scroll:case GraphContextMenuEvent.Open:case GraphContextMenuEvent.Close:to(Jo);break}};reactExports.useImperativeHandle(co.listenersRef,()=>Ds),reactExports.useImperativeHandle(co.externalHandlerRef,()=>eo.onEvent)}const useFeatureControl=eo=>reactExports.useMemo(()=>{const to=eo.has(GraphFeatures.NodeDraggable),ro=eo.has(GraphFeatures.NodeResizable),no=!eo.has(GraphFeatures.AutoFit),oo=!eo.has(GraphFeatures.PanCanvas),io=!eo.has(GraphFeatures.MultipleSelect),so=eo.has(GraphFeatures.LassoSelect),ao=eo.has(GraphFeatures.NodeHoverView),lo=!eo.has(GraphFeatures.ClickNodeToSelect),uo=!eo.has(GraphFeatures.AddNewEdges),co=eo.has(GraphFeatures.PortHoverView),fo=!eo.has(GraphFeatures.EditNode),po=!eo.has(GraphFeatures.CanvasVerticalScrollable),ho=!eo.has(GraphFeatures.CanvasHorizontalScrollable),mo=eo.has(GraphFeatures.A11yFeatures),vo=eo.has(GraphFeatures.AutoAlign),bo=eo.has(GraphFeatures.CtrlKeyZoom),xo=eo.has(GraphFeatures.LimitBoundary),_o=!eo.has(GraphFeatures.AutoFit),So=eo.has(GraphFeatures.EditEdge),Eo=!eo.has(GraphFeatures.Delete),ko=!eo.has(GraphFeatures.AddNewNodes)||!eo.has(GraphFeatures.AddNewEdges),wo=eo.has(GraphFeatures.UndoStack),Co=(!po||!ho||!oo)&&xo&&!eo.has(GraphFeatures.InvisibleScrollbar);return{isNodesDraggable:to,isNodeResizable:ro,isAutoFitDisabled:no,isPanDisabled:oo,isMultiSelectDisabled:io,isLassoSelectEnable:so,isNodeHoverViewEnabled:ao,isClickNodeToSelectDisabled:lo,isConnectDisabled:uo,isPortHoverViewEnable:co,isNodeEditDisabled:fo,isVerticalScrollDisabled:po,isHorizontalScrollDisabled:ho,isA11yEnable:mo,isAutoAlignEnable:vo,isCtrlKeyZoomEnable:bo,isLimitBoundary:xo,isVirtualizationEnabled:_o,isEdgeEditable:So,isDeleteDisabled:Eo,isPasteDisabled:ko,isUndoEnabled:wo,isScrollbarVisible:Co}},[eo]),emptyLine=()=>({x1:0,y1:0,x2:0,y2:0,visible:!1}),Line=eo=>{var to;const{line:ro,style:no}=eo,oo=Object.assign(Object.assign({strokeWidth:1},no),{stroke:ro.visible?(to=no==null?void 0:no.stroke)!==null&&to!==void 0?to:"#ea4300":"none"});return jsxRuntimeExports.jsx("line",{className:"auto-align-hint",x1:ro.x1,y1:ro.y1,x2:ro.x2,y2:ro.y2,style:oo})},AlignmentLines=reactExports.memo(({style:eo})=>{const to=useAlignmentLines();return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:to.map((ro,no)=>ro.visible?jsxRuntimeExports.jsx(Line,{line:ro,style:eo},no):null)})});AlignmentLines.displayName="AlignmentLines";const NodeFrame=eo=>{var to,ro;const no=reactExports.useContext(SlotsContext);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:(ro=(to=no.renderNodeFrame)===null||to===void 0?void 0:to.call(no,eo))!==null&&ro!==void 0?ro:eo.children})},NodeResizeHandler=eo=>{var to,ro;const no=reactExports.useContext(SlotsContext);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:(ro=(to=no.renderNodeResizeHandler)===null||to===void 0?void 0:to.call(no,eo))!==null&&ro!==void 0?ro:eo.children})},Slots={NodeFrame,NodeResizeHandler},AnimatingNodeGroup=eo=>{var to,ro;const{dummyNodes:no,graphData:oo}=eo,io=useGraphConfig(),{dWidth:so,dHeight:ao}=no,lo=(to=no.alignedDX)!==null&&to!==void 0?to:no.dx,uo=(ro=no.alignedDY)!==null&&ro!==void 0?ro:no.dy;return jsxRuntimeExports.jsx("g",{children:no.nodes.map(co=>{const fo=oo.nodes.get(co.id);if(!fo)return null;const po=co.x+lo,ho=co.y+uo,mo=co.width+so,vo=co.height+ao,bo=getNodeConfig(fo,io);return bo!=null&&bo.renderDummy?bo.renderDummy(Object.assign(Object.assign({},fo.inner),{x:po,y:ho,width:mo,height:vo})):jsxRuntimeExports.jsx(Slots.NodeFrame,Object.assign({height:vo,width:mo,x:po,y:ho},{children:jsxRuntimeExports.jsx("rect",{transform:`translate(${po},${ho})`,height:vo,width:mo,stroke:defaultColors.dummyNodeStroke,strokeDasharray:"4",fill:"none"},fo.id)}),`node-frame-${co.id}`)})})},ConnectingLine=eo=>{const{autoAttachLine:to,connectingLine:ro,styles:no}=eo,oo=(no==null?void 0:no.stroke)||defaultColors.primaryColor,io=(no==null?void 0:no.fill)||"none",so=(no==null?void 0:no.strokeDasharray)||"4,4",ao=ro.visible?oo:"none";return jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("marker",Object.assign({id:"markerArrow",markerWidth:"10",markerHeight:"10",refX:"6",refY:"5",orient:"auto",markerUnits:"strokeWidth"},{children:jsxRuntimeExports.jsx("path",{d:"M0,0 L6,5 L0,10",style:{stroke:ao,fill:"none"}})}))}),jsxRuntimeExports.jsx("line",{x1:ro.x1,y1:ro.y1,x2:ro.x2,y2:ro.y2,style:{stroke:ao,fill:io,strokeDasharray:so},markerEnd:"url(#markerArrow)"}),jsxRuntimeExports.jsx("path",{d:getCurvePathD(to.x2,to.x1,to.y2,to.y1),style:{stroke:to.visible?oo:"none",fill:"none"}})]})},Connecting=reactExports.memo(eo=>{const{styles:to,graphConfig:ro,viewport:no,movingPoint:oo}=eo,{sourcePort:io,sourceNode:so,targetPort:ao,targetNode:lo}=useConnectingState();if(!so||!io)return null;const uo=so.getPortPosition(io.id,ro);let co,fo=!1;if(lo&&ao?(fo=!0,co=lo==null?void 0:lo.getPortPosition(ao.id,ro)):co=uo,!uo||!co)return null;const po=transformPoint(uo.x,uo.y,no.transformMatrix),ho=transformPoint(co.x,co.y,no.transformMatrix),mo=oo?{x1:po.x,y1:po.y,x2:oo.x,y2:oo.y,visible:!fo}:emptyLine(),vo={x1:po.x,y1:po.y,x2:ho.x,y2:ho.y,visible:fo};return jsxRuntimeExports.jsx(ConnectingLine,{connectingLine:mo,autoAttachLine:vo,styles:to})});Connecting.displayName="Connecting";const defaultStyle={position:"fixed",userSelect:"none"},GraphContextMenu=({state:eo,onClick:to})=>{var ro,no;const oo=reactExports.useRef(null),[io,so]=reactExports.useState(Object.assign({},defaultStyle));reactExports.useLayoutEffect(()=>{const fo=oo.current;if(!fo||!eo.contextMenuPosition)return;const{x:po,y:ho}=eo.contextMenuPosition,{clientWidth:mo,clientHeight:vo}=document.documentElement,{width:bo,height:xo}=fo.getBoundingClientRect(),_o=Object.assign({},defaultStyle);po+bo>=mo?_o.right=0:_o.left=po,ho+xo>vo?_o.bottom=0:_o.top=ho,so(_o)},[(ro=eo.contextMenuPosition)===null||ro===void 0?void 0:ro.x,(no=eo.contextMenuPosition)===null||no===void 0?void 0:no.y]);const ao=useContextMenuConfigContext(),[lo,uo]=reactExports.useState(jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}));reactExports.useEffect(()=>{const fo=eo.data.present;let po=0,ho=0,mo=0;fo.nodes.forEach(bo=>{var xo;isSelected(bo)&&(po+=1),(xo=bo.ports)===null||xo===void 0||xo.forEach(_o=>{isSelected(_o)&&(ho+=1)})}),fo.edges.forEach(bo=>{isSelected(bo)&&(mo+=1)});let vo;ho+po+mo>1?vo=ao.getMenu(MenuType.Multi):ho+po+mo===0?vo=ao.getMenu(MenuType.Canvas):po===1?vo=ao.getMenu(MenuType.Node):ho===1?vo=ao.getMenu(MenuType.Port):vo=ao.getMenu(MenuType.Edge),uo(vo)},[eo.data.present,ao]);const co=reactExports.useCallback(fo=>{fo.stopPropagation(),fo.preventDefault()},[]);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:eo.contextMenuPosition&&jsxRuntimeExports.jsx("div",Object.assign({ref:oo,onClick:to,onContextMenu:co,role:"button",style:io},{children:lo}))})},Renderer=eo=>jsxRuntimeExports.jsx("rect",{height:eo.height,width:eo.width,fill:eo.group.fill}),defaultGroup={render:Renderer},Group=eo=>{var to;const{data:ro,group:no}=eo,oo=useGraphConfig(),{x:io,y:so,width:ao,height:lo}=reactExports.useMemo(()=>getGroupRect(no,ro.nodes,oo),[no,ro.nodes,oo]),uo=(to=oo.getGroupConfig(no))!==null&&to!==void 0?to:defaultGroup,co=`group-container-${no.id}`;return jsxRuntimeExports.jsx("g",Object.assign({"data-automation-id":co,transform:`translate(${io}, ${so})`},{children:uo.render({group:no,height:lo,width:ao})}),no.id)},GraphGroupsRenderer=eo=>jsxRuntimeExports.jsx("g",{children:reactExports.useMemo(()=>eo.groups.map(to=>jsxRuntimeExports.jsx(Group,{group:to,data:eo.data},to.id)),[eo.groups,eo.data])}),NodeTooltips=eo=>{const{node:to,viewport:ro}=eo,no=useGraphConfig();if(!to||!has$1(GraphNodeStatus.Activated)(to.status))return null;const oo=getNodeConfig(to,no);return oo!=null&&oo.renderTooltips?jsxRuntimeExports.jsx("div",Object.assign({className:"node-tooltips"},{children:oo.renderTooltips({model:to,viewport:ro})})):null},PortTooltips=eo=>{const to=useGraphConfig(),{parentNode:ro,port:no,viewport:oo}=eo;if(!has$1(GraphPortStatus.Activated)(no.status))return null;const so=to.getPortConfig(no);if(!so||!so.renderTooltips)return null;const ao=ro.getPortPosition(no.id,to);return ao?jsxRuntimeExports.jsx("div",Object.assign({className:"port-tooltips"},{children:jsxRuntimeExports.jsx(ConnectingStateContext.Consumer,{children:({sourceNode:lo,sourcePort:uo})=>so.renderTooltips&&so.renderTooltips(Object.assign({model:no,parentNode:ro,data:eo.data,anotherNode:lo,anotherPort:uo,viewport:oo},ao))})})):null};function useRefValue(eo){const to=reactExports.useRef(eo);return reactExports.useLayoutEffect(()=>{to.current=eo},[eo]),to}const SCROLL_BAR_WIDTH=10,wrapperCommonStyle={position:"absolute",cursor:"initial"},useStyles$i=createUseStyles({verticalScrollWrapper:Object.assign(Object.assign({},wrapperCommonStyle),{height:"100%",width:SCROLL_BAR_WIDTH,top:0,right:0}),horizontalScrollWrapper:Object.assign(Object.assign({},wrapperCommonStyle),{height:SCROLL_BAR_WIDTH,width:"100%",bottom:0,left:0}),verticalScrollStyle:eo=>({height:eo.scrollbarLayout.verticalScrollHeight,width:"100%",backgroundColor:defaultColors.scrollbarColor,position:"absolute",top:0,right:0,transform:`translateY(${eo.scrollbarLayout.verticalScrollTop}px)`}),horizontalScrollStyle:eo=>({width:eo.scrollbarLayout.horizontalScrollWidth-SCROLL_BAR_WIDTH,height:"100%",backgroundColor:defaultColors.scrollbarColor,position:"absolute",left:0,bottom:0,transform:`translateX(${eo.scrollbarLayout.horizontalScrollLeft}px)`})}),Scrollbar=eo=>{const{vertical:to=!0,horizontal:ro=!0,offsetLimit:no,eventChannel:oo,viewport:io}=eo,so=useGraphController(),ao=getScrollbarLayout(io,no),lo=useStyles$i({scrollbarLayout:ao}),uo=useRefValue(ao);function co(po){po.preventDefault(),po.stopPropagation();const{height:ho}=io.rect,mo=new DragController(new MouseMoveEventProvider(so.getGlobalEventTarget()),defaultGetPositionFromEvent);mo.onMove=({dy:vo,e:bo})=>{const{totalContentHeight:xo}=uo.current,_o=-(vo*xo)/ho;oo.trigger({type:GraphScrollBarEvent.Scroll,rawEvent:bo,dx:0,dy:_o})},mo.onEnd=()=>{oo.trigger({type:GraphScrollBarEvent.ScrollEnd})},mo.start(po.nativeEvent),oo.trigger({type:GraphScrollBarEvent.ScrollStart})}function fo(po){po.preventDefault(),po.stopPropagation();const{width:ho}=io.rect,mo=new DragController(new MouseMoveEventProvider(so.getGlobalEventTarget()),defaultGetPositionFromEvent);mo.onMove=({dx:vo,e:bo})=>{const{totalContentWidth:xo}=uo.current,_o=-(vo*xo)/ho;oo.trigger({type:GraphScrollBarEvent.Scroll,rawEvent:bo,dx:_o,dy:0})},mo.onEnd=()=>{oo.trigger({type:GraphScrollBarEvent.ScrollEnd})},mo.start(po.nativeEvent),oo.trigger({type:GraphScrollBarEvent.ScrollStart})}return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[to&&jsxRuntimeExports.jsx("div",Object.assign({className:lo.verticalScrollWrapper},{children:jsxRuntimeExports.jsx("div",{className:lo.verticalScrollStyle,onMouseDown:co,role:"button","aria-label":"vertical scrollbar","aria-roledescription":"vertical scrollbar",id:"canvas-vertical-scrollbar"})})),ro&&jsxRuntimeExports.jsx("div",Object.assign({className:lo.horizontalScrollWrapper},{children:jsxRuntimeExports.jsx("div",{className:lo.horizontalScrollStyle,onMouseDown:fo,role:"button","aria-label":"horizontal scrollbar","aria-roledescription":"horizontal scrollbar",id:"canvas-horizontal-scrollbar"})}))]})};function getTotalContentHeight(eo,to){const{minY:ro,maxY:no}=to;return eo+no-ro}function getTotalContentWidth(eo,to){const{minX:ro,maxX:no}=to;return eo+no-ro}function getScrollbarLayout(eo,to){const{rect:ro,transformMatrix:no}=eo,oo=getTotalContentHeight(ro.height,to),io=getTotalContentWidth(ro.width,to);return{totalContentHeight:oo,totalContentWidth:io,verticalScrollHeight:ro.height*ro.height/oo,horizontalScrollWidth:ro.width*ro.width/io,verticalScrollTop:(to.maxY-no[5])*ro.height/oo,horizontalScrollLeft:(to.maxX-no[4])*ro.width/io}}const Transform=({matrix:eo,children:to})=>{const ro=reactExports.useMemo(()=>`matrix(${eo.join(" ")})`,eo);return jsxRuntimeExports.jsx("g",Object.assign({transform:ro},{children:to}))};function getHintPoints(eo,to,{minX:ro,minY:no,maxX:oo,maxY:io},so,ao,lo,uo){return eo.x===to.x?{x:eo.x,y:eo.y=no?{x:oo,y:so}:{x:lo,y:no}:eo.yro?{x:ao,y:io}:{x:ro,y:uo}:uo>no?{x:ro,y:uo}:{x:lo,y:no}}const GraphEdge=reactExports.memo(eo=>{var to;const{edge:ro,data:no,eventChannel:oo,source:io,target:so,graphId:ao}=eo,lo=useGraphConfig(),uo=useVirtualization(),{viewport:co,renderedArea:fo,visibleArea:po}=uo,ho=Ro=>Ao=>{Ao.persist(),oo.trigger({type:Ro,edge:ro,rawEvent:Ao})},mo=isPointInRect(fo,io),vo=isPointInRect(fo,so),bo=mo&&vo;if(reactExports.useLayoutEffect(()=>{bo&&uo.renderedEdges.add(ro.id)},[uo]),!bo)return null;const xo=lo.getEdgeConfig(ro);if(!xo)return Debug.warn(`invalid edge ${JSON.stringify(ro)}`),null;if(!xo.render)return Debug.warn(`Missing "render" method in edge config ${JSON.stringify(ro)}`),null;const _o=isPointInRect(po,io),So=isPointInRect(po,so);let Eo=xo.render({model:ro,data:no,x1:io.x,y1:io.y,x2:so.x,y2:so.y,viewport:co});if(has$1(GraphEdgeStatus.ConnectedToSelected)(ro.status)&&(!_o||!So)){const Ro=getLinearFunction(io.x,io.y,so.x,so.y),Ao=getLinearFunction(io.y,io.x,so.y,so.x),Io=_o?io:so,$o=_o?so:io,Bo=Ro(po.maxX),Mo=Ao(po.maxY),Ho=Ao(po.minY),jo=Ro(po.minX),Oo=getHintPoints(Io,$o,po,Bo,Mo,Ho,jo);_o&&xo.renderWithTargetHint?Eo=xo.renderWithTargetHint({model:ro,data:no,x1:io.x,y1:io.y,x2:Oo.x,y2:Oo.y,viewport:co}):So&&xo.renderWithSourceHint&&(Eo=xo.renderWithSourceHint({model:ro,data:no,x1:Oo.x,y1:Oo.y,x2:so.x,y2:so.y,viewport:co}))}const ko=getEdgeUid(ao,ro),wo=`edge-container-${ro.id}`,Co=(to=ro.automationId)!==null&&to!==void 0?to:wo;return jsxRuntimeExports.jsx("g",Object.assign({id:ko,onClick:ho(GraphEdgeEvent.Click),onDoubleClick:ho(GraphEdgeEvent.DoubleClick),onMouseDown:ho(GraphEdgeEvent.MouseDown),onMouseUp:ho(GraphEdgeEvent.MouseUp),onMouseEnter:ho(GraphEdgeEvent.MouseEnter),onMouseLeave:ho(GraphEdgeEvent.MouseLeave),onContextMenu:ho(GraphEdgeEvent.ContextMenu),onMouseMove:ho(GraphEdgeEvent.MouseMove),onMouseOver:ho(GraphEdgeEvent.MouseOver),onMouseOut:ho(GraphEdgeEvent.MouseOut),onFocus:void 0,onBlur:void 0,className:wo,"data-automation-id":Co},{children:Eo}))});function compareEqual(eo,to){return eo.node===to.node}const EdgeChampNodeRender=reactExports.memo(eo=>{var to,ro;const{node:no,data:oo}=eo,io=__rest(eo,["node","data"]),so=useGraphConfig(),ao=[],lo=no.valueCount;for(let fo=0;fo{const{data:to,node:ro}=eo,no=__rest(eo,["data","node"]),oo=useGraphConfig();return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ro.values.map(io=>{var so,ao;const lo=(so=to.nodes.get(io.source))===null||so===void 0?void 0:so.getPortPosition(io.sourcePortId,oo),uo=(ao=to.nodes.get(io.target))===null||ao===void 0?void 0:ao.getPortPosition(io.targetPortId,oo);return lo&&uo?reactExports.createElement(GraphEdge,Object.assign({},no,{key:io.id,data:to,edge:io,source:lo,target:uo})):null})})},compareEqual);EdgeHashCollisionNodeRender.displayName="EdgeHashCollisionNodeRender";const EdgeTree=eo=>{const{tree:to}=eo,ro=__rest(eo,["tree"]);return jsxRuntimeExports.jsx(EdgeChampNodeRender,Object.assign({},ro,{node:to.root}))},styles$1=mergeStyleSets({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%"}}),GraphNode=eo=>{var to;const{node:ro,eventChannel:no,getNodeAriaLabel:oo,viewport:io,graphId:so}=eo,ao=useGraphConfig(),lo=getNodeConfig(ro,ao),uo=ho=>mo=>{mo.persist();const vo={type:ho,node:ro,rawEvent:mo};no.trigger(vo)},co=ho=>{ho.persist();const mo=checkIsMultiSelect(ho);no.trigger({type:GraphNodeEvent.Click,rawEvent:ho,isMultiSelect:mo,node:ro})},fo=getNodeUid(so,ro),po=(to=ro.automationId)!==null&&to!==void 0?to:getNodeAutomationId(ro);return lo!=null&&lo.render?jsxRuntimeExports.jsx("g",Object.assign({id:fo,focusable:"true",tabIndex:0,className:styles$1.node,onPointerDown:uo(GraphNodeEvent.PointerDown),onPointerEnter:uo(GraphNodeEvent.PointerEnter),onPointerMove:uo(GraphNodeEvent.PointerMove),onPointerLeave:uo(GraphNodeEvent.PointerLeave),onPointerUp:uo(GraphNodeEvent.PointerUp),onDoubleClick:uo(GraphNodeEvent.DoubleClick),onMouseDown:uo(GraphNodeEvent.MouseDown),onMouseUp:uo(GraphNodeEvent.MouseUp),onMouseEnter:uo(GraphNodeEvent.MouseEnter),onMouseLeave:uo(GraphNodeEvent.MouseLeave),onContextMenu:uo(GraphNodeEvent.ContextMenu),onMouseMove:uo(GraphNodeEvent.MouseMove),onMouseOver:uo(GraphNodeEvent.MouseOver),onMouseOut:uo(GraphNodeEvent.MouseOut),onClick:co,onKeyDown:uo(GraphNodeEvent.KeyDown),"aria-label":oo(ro),role:"group","aria-roledescription":"node","data-automation-id":po},{children:jsxRuntimeExports.jsx("g",Object.assign({className:"node-box-container"},{children:lo.render({model:ro,viewport:io})}))})):(Debug.warn('Missing "render" method in node config'),null)},RESIZE_POINT_WIDTH=8,RESIZE_POINT_HEIGHT=8,NodeAnchor=({x:eo,y:to,cursor:ro,onMouseDown:no})=>jsxRuntimeExports.jsx(Slots.NodeResizeHandler,Object.assign({x:eo,y:to,cursor:ro,onMouseDown:no},{children:jsxRuntimeExports.jsx("rect",{x:eo,y:to,height:RESIZE_POINT_HEIGHT,width:RESIZE_POINT_WIDTH,stroke:defaultColors.controlPointColor,fill:"transparent",cursor:ro,onMouseDown:no})})),BBOX_PADDING=15,GraphNodeAnchors=eo=>{var to,ro;const{node:no,getMouseDown:oo}=eo,io=useGraphConfig(),so=getNodeConfig(no,io),ao=(to=so==null?void 0:so.getMinWidth(no))!==null&&to!==void 0?to:0,lo=(ro=so==null?void 0:so.getMinHeight(no))!==null&&ro!==void 0?ro:0,uo=getRectHeight(so,no),co=getRectWidth(so,no),fo=oo((So,Eo)=>{const ko=Math.min(So,co-ao),wo=Math.min(Eo,uo-lo);return{dx:+ko,dy:+wo,dWidth:-ko,dHeight:-wo}}),po=oo((So,Eo)=>{const ko=Math.min(Eo,uo-lo);return{dy:+ko,dHeight:-ko}}),ho=oo((So,Eo)=>{const ko=Math.max(So,ao-co),wo=Math.min(Eo,uo-lo);return{dy:+wo,dWidth:+ko,dHeight:-wo}}),mo=oo(So=>({dWidth:+Math.max(So,ao-co)})),vo=oo((So,Eo)=>{const ko=Math.max(So,ao-co),wo=Math.max(Eo,lo-uo);return{dWidth:+ko,dHeight:+wo}}),bo=oo((So,Eo)=>({dHeight:+Math.max(Eo,lo-uo)})),xo=oo((So,Eo)=>{const ko=Math.min(So,co-ao),wo=Math.max(Eo,lo-uo);return{dx:+ko,dWidth:-ko,dHeight:+wo}}),_o=oo(So=>{const Eo=Math.min(So,co-ao);return{dx:Eo,dWidth:-Eo}});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(NodeAnchor,{cursor:"nw-resize",x:no.x-BBOX_PADDING,y:no.y-BBOX_PADDING-RESIZE_POINT_HEIGHT,onMouseDown:fo},"nw-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:no.x+co/2-RESIZE_POINT_WIDTH/2,y:no.y-BBOX_PADDING-RESIZE_POINT_HEIGHT,cursor:"n-resize",onMouseDown:po},"n-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:no.x+co+BBOX_PADDING-RESIZE_POINT_WIDTH,y:no.y-BBOX_PADDING-RESIZE_POINT_HEIGHT,cursor:"ne-resize",onMouseDown:ho},"ne-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:no.x+co+BBOX_PADDING-RESIZE_POINT_WIDTH,y:no.y+uo/2-RESIZE_POINT_HEIGHT/2,cursor:"e-resize",onMouseDown:mo},"e-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:no.x+co+BBOX_PADDING-RESIZE_POINT_WIDTH,y:no.y+uo+BBOX_PADDING,cursor:"se-resize",onMouseDown:vo},"se-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:no.x+co/2-RESIZE_POINT_WIDTH/2,y:no.y+uo+BBOX_PADDING,cursor:"s-resize",onMouseDown:bo},"s-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:no.x-BBOX_PADDING,y:no.y+uo+BBOX_PADDING,cursor:"sw-resize",onMouseDown:xo},"sw-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:no.x-BBOX_PADDING,y:no.y+uo/2-RESIZE_POINT_HEIGHT/2,cursor:"w-resize",onMouseDown:_o},"w-resize")]})},GraphOneNodePorts=eo=>{const{data:to,node:ro,getPortAriaLabel:no,eventChannel:oo,viewport:io,graphId:so}=eo,ao=useGraphConfig(),lo=ro.ports;if(!lo)return null;const uo=(co,fo)=>po=>{po.persist(),oo.trigger({type:co,node:ro,port:fo,rawEvent:po})};return jsxRuntimeExports.jsx("g",{children:lo.map(co=>{var fo;const po=ao.getPortConfig(co);if(!po||!po.render)return Debug.warn(`invalid port config ${ro.id}:${ro.name} - ${co.id}:${co.name}`),null;const ho=ro.getPortPosition(co.id,ao);if(!ho)return null;const mo=getPortUid(so,ro,co),vo=(fo=co.automationId)!==null&&fo!==void 0?fo:getPortAutomationId(co,ro);return jsxRuntimeExports.jsx("g",Object.assign({id:mo,tabIndex:0,focusable:"true",onPointerDown:uo(GraphPortEvent.PointerDown,co),onPointerUp:uo(GraphPortEvent.PointerUp,co),onDoubleClick:uo(GraphPortEvent.DoubleClick,co),onMouseDown:uo(GraphPortEvent.MouseDown,co),onMouseUp:uo(GraphPortEvent.MouseUp,co),onContextMenu:uo(GraphPortEvent.ContextMenu,co),onPointerEnter:uo(GraphPortEvent.PointerEnter,co),onPointerLeave:uo(GraphPortEvent.PointerLeave,co),onMouseMove:uo(GraphPortEvent.MouseMove,co),onMouseOver:uo(GraphPortEvent.MouseOver,co),onMouseOut:uo(GraphPortEvent.MouseOut,co),onFocus:uo(GraphPortEvent.Focus,co),onBlur:uo(GraphPortEvent.Blur,co),onKeyDown:uo(GraphPortEvent.KeyDown,co),onClick:uo(GraphPortEvent.Click,co),"aria-label":no(to,ro,co),role:"group","aria-roledescription":"port","data-automation-id":vo},{children:jsxRuntimeExports.jsx(ConnectingStateContext.Consumer,{children:({sourceNode:bo,sourcePort:xo})=>po==null?void 0:po.render(Object.assign({model:co,data:to,parentNode:ro,anotherNode:bo,anotherPort:xo,viewport:io},ho))})}),mo)})})},GraphNodeParts=eo=>{var{node:to,isNodeResizable:ro,renderNodeAnchors:no}=eo,oo=__rest(eo,["node","isNodeResizable","renderNodeAnchors"]);const io=useVirtualization(),{renderedArea:so,viewport:ao}=io,lo=useGetMouseDownOnAnchor(to,oo.eventChannel),uo=isPointInRect(so,to);if(reactExports.useLayoutEffect(()=>{uo&&io.renderedEdges.add(to.id)},[io]),!uo)return null;let co;if(ro&&isNodeEditing(to)){const fo=jsxRuntimeExports.jsx(GraphNodeAnchors,{node:to,getMouseDown:lo});co=no?no(to,lo,fo):fo}return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(GraphNode,Object.assign({},oo,{node:to,viewport:ao})),jsxRuntimeExports.jsx(GraphOneNodePorts,Object.assign({},oo,{node:to,viewport:ao})),co]})},GraphNodePartsMemo=reactExports.memo(GraphNodeParts),NodeTreeNode=reactExports.memo(eo=>{var{node:to}=eo,ro=__rest(eo,["node"]);const no=to.values.map(io=>{const so=io[1];return jsxRuntimeExports.jsx(GraphNodePartsMemo,Object.assign({node:so},ro),so.id)}),oo=to.type===NodeType.Internal?to.children.map((io,so)=>{const ao=soeo.node===to.node);NodeTreeNode.displayName="NodeTreeNode";const NodeTree=eo=>{var{tree:to}=eo,ro=__rest(eo,["tree"]);return jsxRuntimeExports.jsx(NodeTreeNode,Object.assign({node:to.sortedRoot},ro))},NodeLayers=({data:eo,renderTree:to})=>{const ro=new Set;return eo.nodes.forEach(no=>ro.add(no.layer)),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:Array.from(ro.values()).sort().map(no=>to(eo.nodes.filter(oo=>oo.layer===no),no))})},VirtualizationProvider=({viewport:eo,isVirtualizationEnabled:to,virtualizationDelay:ro,eventChannel:no,children:oo})=>{const io=useRenderedArea(eo,to),so=reactExports.useMemo(()=>getVisibleArea(eo),[eo]),ao=reactExports.useMemo(()=>({viewport:eo,renderedArea:io,visibleArea:so,renderedEdges:new Set,renderedNodes:new Set,timestamp:performance.now()}),[eo,io,so]),lo=useDeferredValue(ao,{timeout:ro}),uo=reactExports.useRef(lo);return reactExports.useEffect(()=>{const co=uo.current;uo.current=lo,no.trigger({type:GraphCanvasEvent.VirtualizationRecalculated,performanceStartTime:lo.timestamp,renderedNodes:co.renderedNodes,renderedEdges:co.renderedEdges,previousRenderedNodes:co.renderedNodes,previousRenderedEdges:co.renderedEdges})},[lo,no]),jsxRuntimeExports.jsx(VirtualizationContext.Provider,Object.assign({value:lo},{children:oo}))},getCursorStyle=({canvasMouseMode:eo,state:to,isPanDisabled:ro,isMultiSelecting:no})=>to.behavior===GraphBehavior.Connecting||["meta","control"].some(so=>to.activeKeys.has(so))?"initial":to.activeKeys.has("shift")?"crosshair":eo!==CanvasMouseMode.Pan?to.activeKeys.has(" ")&&!ro?"grab":no?"crosshair":"inherit":ro?"inherit":"grab";function getNodeCursor(eo){return eo?"move":"initial"}const getGraphStyles=(eo,to,ro,no,oo,io)=>{var so,ao;return mergeStyleSets({svg:["react-dag-editor-svg-container",styles$1.svg,(so=eo.styles)===null||so===void 0?void 0:so.svg,{"& *:focus":{outline:defaultColors.outlineStyle},[`& .${styles$1.node}`]:{cursor:getNodeCursor(no)}}],container:["react-dag-editor-container",styles$1.container,{cursor:getCursorStyle({canvasMouseMode:eo.canvasMouseMode,state:to,isPanDisabled:ro,isMultiSelecting:io}),[`&.${styles$1.container}`]:Object.assign(Object.assign({background:defaultColors.canvasBackground},eo.style),(ao=eo.styles)===null||ao===void 0?void 0:ao.root)},oo&&{outline:`${defaultColors.focusOutlineColor} solid 1px`}],buttonA11y:["react-dag-editor-a11y-help-button",styles$1.buttonA11Y],node:[styles$1.node]})};function Graph(eo){var to,ro,no,oo,io;const[so,ao]=reactExports.useState(!1),lo=useGraphController(),{state:uo,dispatch:co}=useGraphState(),fo=uo.data.present,{viewport:po}=uo,{eventChannel:ho}=lo,mo=useConst(()=>`graph-${v4()}`),vo=reactExports.useRef(null),{focusCanvasAccessKey:bo="f",zoomSensitivity:xo=.1,scrollSensitivity:_o=.5,svgRef:So=vo,virtualizationDelay:Eo=500,background:ko=null}=eo,wo=useGraphConfig(),Co=useFeatureControl(uo.settings.features),[Ro,Ao]=reactExports.useState(),[Io,$o]=reactExports.useState(void 0),Bo=reactExports.useRef(null),Mo=reactExports.useRef(void 0),Ho=useUpdateViewportCallback(Mo,So,ho);useEventChannel({props:eo,dispatch:co,rectRef:Mo,svgRef:So,setFocusedWithoutMouse:ao,containerRef:Bo,featureControl:Co,graphConfig:wo,setCurHoverNode:Ao,setCurHoverPort:$o,updateViewport:Ho,eventChannel:ho,graphController:lo}),useContainerRect(uo,So,Bo,Ho);const{isNodesDraggable:jo,isNodeResizable:Oo,isPanDisabled:Fo,isMultiSelectDisabled:Go,isLassoSelectEnable:qo,isNodeEditDisabled:Xo,isVerticalScrollDisabled:Zo,isHorizontalScrollDisabled:Qo,isA11yEnable:xs,isCtrlKeyZoomEnable:Ts,isVirtualizationEnabled:Rs,isScrollbarVisible:Os}=Co;useSelectBox(co,uo.selectBoxPosition);const As=Zs=>$a=>{$a.persist(),ho.trigger({type:Zs,rawEvent:$a})},Ds=getGraphStyles(eo,uo,Fo,jo,so,uo.behavior===GraphBehavior.MultiSelect);useWheelHandler({containerRef:Bo,svgRef:So,rectRef:Mo,zoomSensitivity:xo,scrollSensitivity:_o,dispatch:co,isHorizontalScrollDisabled:Qo,isVerticalScrollDisabled:Zo,isCtrlKeyZoomEnable:Ts,eventChannel:ho,graphConfig:wo});const Jo=reactExports.useCallback(Zs=>{Zs.preventDefault(),Zs.stopPropagation(),ho.trigger({type:GraphContextMenuEvent.Close}),So.current&&So.current.focus({preventScroll:!0})},[ho,So]),Cs=reactExports.useCallback(()=>{ao(!0),So.current&&So.current.focus({preventScroll:!0})},[So]);useSafariScale({rectRef:Mo,svgRef:So,eventChannel:ho});const Bs=xs?bo:void 0,zs=useGraphTouchHandler(Mo,ho),Ls=reactExports.useCallback((Zs,$a)=>{var Ll,Kl;return jsxRuntimeExports.jsx(NodeTree,{graphId:mo,isNodeResizable:Oo,tree:Zs,data:fo,isNodeEditDisabled:Xo,eventChannel:ho,getNodeAriaLabel:(Ll=eo.getNodeAriaLabel)!==null&&Ll!==void 0?Ll:defaultGetNodeAriaLabel,getPortAriaLabel:(Kl=eo.getPortAriaLabel)!==null&&Kl!==void 0?Kl:defaultGetPortAriaLabel,renderNodeAnchors:eo.renderNodeAnchors},$a)},[fo,ho,mo,Xo,Oo,eo.getNodeAriaLabel,eo.getPortAriaLabel,eo.renderNodeAnchors]);if(!isSupported()){const{onBrowserNotSupported:Zs=()=>jsxRuntimeExports.jsx("p",{children:"Your browser is not supported"})}=eo;return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:Zs()})}const ga=()=>{if(!Io||!isViewportComplete(uo.viewport))return null;const[Zs,$a]=Io,Ll=fo.nodes.get(Zs);if(!Ll)return null;const Kl=Ll.getPort($a);return Kl?jsxRuntimeExports.jsx(PortTooltips,{port:Kl,parentNode:Ll,data:fo,viewport:uo.viewport}):null},Js=()=>{var Zs;return!Ro||!isViewportComplete(uo.viewport)||uo.contextMenuPosition&&Ro===((Zs=uo.data.present.nodes.find(isSelected))===null||Zs===void 0?void 0:Zs.id)?null:jsxRuntimeExports.jsx(NodeTooltips,{node:fo.nodes.get(Ro),viewport:uo.viewport})};return jsxRuntimeExports.jsxs("div",Object.assign({ref:Bo,role:"application",id:mo,className:Ds.container},zs,{onDoubleClick:As(GraphCanvasEvent.DoubleClick),onMouseDown:As(GraphCanvasEvent.MouseDown),onMouseUp:As(GraphCanvasEvent.MouseUp),onContextMenu:As(GraphCanvasEvent.ContextMenu),onMouseMove:As(GraphCanvasEvent.MouseMove),onMouseOver:As(GraphCanvasEvent.MouseOver),onMouseOut:As(GraphCanvasEvent.MouseOut),onFocus:As(GraphCanvasEvent.Focus),onBlur:As(GraphCanvasEvent.Blur),onKeyDown:As(GraphCanvasEvent.KeyDown),onKeyUp:As(GraphCanvasEvent.KeyUp)},{children:[jsxRuntimeExports.jsx("button",{className:Ds.buttonA11y,onClick:Cs,accessKey:Bs,hidden:!0}),jsxRuntimeExports.jsxs("svg",Object.assign({tabIndex:0,focusable:"true",preserveAspectRatio:"xMidYMid meet",ref:So,className:Ds.svg,"data-graph-id":mo},{children:[jsxRuntimeExports.jsx("title",{children:eo.title}),jsxRuntimeExports.jsx("desc",{children:eo.desc}),jsxRuntimeExports.jsxs(Transform,Object.assign({matrix:po.transformMatrix},{children:[uo.viewport.rect&&jsxRuntimeExports.jsxs(VirtualizationProvider,Object.assign({viewport:uo.viewport,isVirtualizationEnabled:Rs,virtualizationDelay:Eo,eventChannel:ho},{children:[ko,jsxRuntimeExports.jsx(GraphGroupsRenderer,{data:fo,groups:(to=fo.groups)!==null&&to!==void 0?to:constantEmptyArray()}),jsxRuntimeExports.jsx(EdgeTree,{graphId:mo,tree:fo.edges,data:fo,eventChannel:ho}),jsxRuntimeExports.jsx(NodeLayers,{data:fo,renderTree:Ls})]})),uo.dummyNodes.isVisible&&jsxRuntimeExports.jsx(AnimatingNodeGroup,{dummyNodes:uo.dummyNodes,graphData:uo.data.present}),jsxRuntimeExports.jsx(AlignmentLines,{style:(ro=eo.styles)===null||ro===void 0?void 0:ro.alignmentLine})]})),(!Go||qo)&&jsxRuntimeExports.jsx(SelectBox,{selectBoxPosition:uo.selectBoxPosition,style:(no=eo.styles)===null||no===void 0?void 0:no.selectBox}),uo.connectState&&jsxRuntimeExports.jsx(Connecting,{graphConfig:wo,eventChannel:ho,viewport:uo.viewport,styles:(oo=eo.styles)===null||oo===void 0?void 0:oo.connectingLine,movingPoint:uo.connectState.movingPoint})]})),Os&&isViewportComplete(uo.viewport)&&jsxRuntimeExports.jsx(Scrollbar,{viewport:uo.viewport,offsetLimit:getOffsetLimit({data:fo,graphConfig:wo,rect:uo.viewport.rect,transformMatrix:po.transformMatrix,canvasBoundaryPadding:uo.settings.canvasBoundaryPadding,groupPadding:(io=fo.groups[0])===null||io===void 0?void 0:io.padding}),dispatch:co,horizontal:!Qo,vertical:!Zo,eventChannel:ho}),jsxRuntimeExports.jsx(GraphContextMenu,{state:uo,onClick:Jo,"data-automation-id":"context-menu-container"}),Js(),ga()]}))}const el=document.createElement("div");document.body.appendChild(el);const StaticNode=eo=>{const{node:to}=eo,ro=useGraphConfig(),no=getNodeConfig(to,ro);if(no!=null&&no.renderStatic)return jsxRuntimeExports.jsx("g",{children:no.renderStatic({model:to})});const oo=getRectHeight(no,to),io=getRectWidth(no,to);return jsxRuntimeExports.jsx("rect",{transform:`translate(${to.x}, ${to.y})`,height:oo,width:io,fill:defaultColors.dummyNodeStroke})},StaticNodeWithMemo=reactExports.memo(StaticNode,(eo,to)=>{const ro=eo.node,no=to.node;return ro.x===no.x&&ro.y===no.y&&ro.height===no.height&&ro.width===no.width&&ro.isInSearchResults===no.isInSearchResults&&ro.isCurrentSearchResult===no.isCurrentSearchResult}),ReadonlyNodeTreeNode=reactExports.memo(({node:eo})=>{const to=eo.values.map(no=>jsxRuntimeExports.jsx(StaticNodeWithMemo,{node:no[1]},no[1].id)),ro=eo.type===NodeType.Internal?eo.children.map((no,oo)=>{const io=oo>>0;if(""+ro!==to||ro===4294967295)return NaN;to=ro}return to<0?ensureSize(eo)+to:to}function returnTrue(){return!0}function wholeSlice(eo,to,ro){return(eo===0&&!isNeg(eo)||ro!==void 0&&eo<=-ro)&&(to===void 0||ro!==void 0&&to>=ro)}function resolveBegin(eo,to){return resolveIndex(eo,to,0)}function resolveEnd(eo,to){return resolveIndex(eo,to,to)}function resolveIndex(eo,to,ro){return eo===void 0?ro:isNeg(eo)?to===1/0?to:Math.max(0,to+eo)|0:to===void 0||to===eo?eo:Math.min(to,eo)|0}function isNeg(eo){return eo<0||eo===0&&1/eo===-1/0}var IS_COLLECTION_SYMBOL="@@__IMMUTABLE_ITERABLE__@@";function isCollection(eo){return!!(eo&&eo[IS_COLLECTION_SYMBOL])}var IS_KEYED_SYMBOL="@@__IMMUTABLE_KEYED__@@";function isKeyed(eo){return!!(eo&&eo[IS_KEYED_SYMBOL])}var IS_INDEXED_SYMBOL="@@__IMMUTABLE_INDEXED__@@";function isIndexed(eo){return!!(eo&&eo[IS_INDEXED_SYMBOL])}function isAssociative(eo){return isKeyed(eo)||isIndexed(eo)}var Collection$1=function(to){return isCollection(to)?to:Seq(to)},KeyedCollection=function(eo){function to(ro){return isKeyed(ro)?ro:KeyedSeq(ro)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to}(Collection$1),IndexedCollection=function(eo){function to(ro){return isIndexed(ro)?ro:IndexedSeq(ro)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to}(Collection$1),SetCollection=function(eo){function to(ro){return isCollection(ro)&&!isAssociative(ro)?ro:SetSeq(ro)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to}(Collection$1);Collection$1.Keyed=KeyedCollection;Collection$1.Indexed=IndexedCollection;Collection$1.Set=SetCollection;var IS_SEQ_SYMBOL="@@__IMMUTABLE_SEQ__@@";function isSeq(eo){return!!(eo&&eo[IS_SEQ_SYMBOL])}var IS_RECORD_SYMBOL="@@__IMMUTABLE_RECORD__@@";function isRecord(eo){return!!(eo&&eo[IS_RECORD_SYMBOL])}function isImmutable(eo){return isCollection(eo)||isRecord(eo)}var IS_ORDERED_SYMBOL="@@__IMMUTABLE_ORDERED__@@";function isOrdered(eo){return!!(eo&&eo[IS_ORDERED_SYMBOL])}var ITERATE_KEYS=0,ITERATE_VALUES=1,ITERATE_ENTRIES=2,REAL_ITERATOR_SYMBOL=typeof Symbol=="function"&&Symbol.iterator,FAUX_ITERATOR_SYMBOL="@@iterator",ITERATOR_SYMBOL=REAL_ITERATOR_SYMBOL||FAUX_ITERATOR_SYMBOL,Iterator=function(to){this.next=to};Iterator.prototype.toString=function(){return"[Iterator]"};Iterator.KEYS=ITERATE_KEYS;Iterator.VALUES=ITERATE_VALUES;Iterator.ENTRIES=ITERATE_ENTRIES;Iterator.prototype.inspect=Iterator.prototype.toSource=function(){return this.toString()};Iterator.prototype[ITERATOR_SYMBOL]=function(){return this};function iteratorValue(eo,to,ro,no){var oo=eo===0?to:eo===1?ro:[to,ro];return no?no.value=oo:no={value:oo,done:!1},no}function iteratorDone(){return{value:void 0,done:!0}}function hasIterator(eo){return Array.isArray(eo)?!0:!!getIteratorFn(eo)}function isIterator(eo){return eo&&typeof eo.next=="function"}function getIterator(eo){var to=getIteratorFn(eo);return to&&to.call(eo)}function getIteratorFn(eo){var to=eo&&(REAL_ITERATOR_SYMBOL&&eo[REAL_ITERATOR_SYMBOL]||eo[FAUX_ITERATOR_SYMBOL]);if(typeof to=="function")return to}function isEntriesIterable(eo){var to=getIteratorFn(eo);return to&&to===eo.entries}function isKeysIterable(eo){var to=getIteratorFn(eo);return to&&to===eo.keys}var hasOwnProperty$1=Object.prototype.hasOwnProperty;function isArrayLike$1(eo){return Array.isArray(eo)||typeof eo=="string"?!0:eo&&typeof eo=="object"&&Number.isInteger(eo.length)&&eo.length>=0&&(eo.length===0?Object.keys(eo).length===1:eo.hasOwnProperty(eo.length-1))}var Seq=function(eo){function to(ro){return ro==null?emptySequence():isImmutable(ro)?ro.toSeq():seqFromValue(ro)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.toSeq=function(){return this},to.prototype.toString=function(){return this.__toString("Seq {","}")},to.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},to.prototype.__iterate=function(no,oo){var io=this._cache;if(io){for(var so=io.length,ao=0;ao!==so;){var lo=io[oo?so-++ao:ao++];if(no(lo[1],lo[0],this)===!1)break}return ao}return this.__iterateUncached(no,oo)},to.prototype.__iterator=function(no,oo){var io=this._cache;if(io){var so=io.length,ao=0;return new Iterator(function(){if(ao===so)return iteratorDone();var lo=io[oo?so-++ao:ao++];return iteratorValue(no,lo[0],lo[1])})}return this.__iteratorUncached(no,oo)},to}(Collection$1),KeyedSeq=function(eo){function to(ro){return ro==null?emptySequence().toKeyedSeq():isCollection(ro)?isKeyed(ro)?ro.toSeq():ro.fromEntrySeq():isRecord(ro)?ro.toSeq():keyedSeqFromValue(ro)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.toKeyedSeq=function(){return this},to}(Seq),IndexedSeq=function(eo){function to(ro){return ro==null?emptySequence():isCollection(ro)?isKeyed(ro)?ro.entrySeq():ro.toIndexedSeq():isRecord(ro)?ro.toSeq().entrySeq():indexedSeqFromValue(ro)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.of=function(){return to(arguments)},to.prototype.toIndexedSeq=function(){return this},to.prototype.toString=function(){return this.__toString("Seq [","]")},to}(Seq),SetSeq=function(eo){function to(ro){return(isCollection(ro)&&!isAssociative(ro)?ro:IndexedSeq(ro)).toSetSeq()}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.of=function(){return to(arguments)},to.prototype.toSetSeq=function(){return this},to}(Seq);Seq.isSeq=isSeq;Seq.Keyed=KeyedSeq;Seq.Set=SetSeq;Seq.Indexed=IndexedSeq;Seq.prototype[IS_SEQ_SYMBOL]=!0;var ArraySeq=function(eo){function to(ro){this._array=ro,this.size=ro.length}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.get=function(no,oo){return this.has(no)?this._array[wrapIndex(this,no)]:oo},to.prototype.__iterate=function(no,oo){for(var io=this._array,so=io.length,ao=0;ao!==so;){var lo=oo?so-++ao:ao++;if(no(io[lo],lo,this)===!1)break}return ao},to.prototype.__iterator=function(no,oo){var io=this._array,so=io.length,ao=0;return new Iterator(function(){if(ao===so)return iteratorDone();var lo=oo?so-++ao:ao++;return iteratorValue(no,lo,io[lo])})},to}(IndexedSeq),ObjectSeq=function(eo){function to(ro){var no=Object.keys(ro).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(ro):[]);this._object=ro,this._keys=no,this.size=no.length}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.get=function(no,oo){return oo!==void 0&&!this.has(no)?oo:this._object[no]},to.prototype.has=function(no){return hasOwnProperty$1.call(this._object,no)},to.prototype.__iterate=function(no,oo){for(var io=this._object,so=this._keys,ao=so.length,lo=0;lo!==ao;){var uo=so[oo?ao-++lo:lo++];if(no(io[uo],uo,this)===!1)break}return lo},to.prototype.__iterator=function(no,oo){var io=this._object,so=this._keys,ao=so.length,lo=0;return new Iterator(function(){if(lo===ao)return iteratorDone();var uo=so[oo?ao-++lo:lo++];return iteratorValue(no,uo,io[uo])})},to}(KeyedSeq);ObjectSeq.prototype[IS_ORDERED_SYMBOL]=!0;var CollectionSeq=function(eo){function to(ro){this._collection=ro,this.size=ro.length||ro.size}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.__iterateUncached=function(no,oo){if(oo)return this.cacheResult().__iterate(no,oo);var io=this._collection,so=getIterator(io),ao=0;if(isIterator(so))for(var lo;!(lo=so.next()).done&&no(lo.value,ao++,this)!==!1;);return ao},to.prototype.__iteratorUncached=function(no,oo){if(oo)return this.cacheResult().__iterator(no,oo);var io=this._collection,so=getIterator(io);if(!isIterator(so))return new Iterator(iteratorDone);var ao=0;return new Iterator(function(){var lo=so.next();return lo.done?lo:iteratorValue(no,ao++,lo.value)})},to}(IndexedSeq),EMPTY_SEQ;function emptySequence(){return EMPTY_SEQ||(EMPTY_SEQ=new ArraySeq([]))}function keyedSeqFromValue(eo){var to=maybeIndexedSeqFromValue(eo);if(to)return to.fromEntrySeq();if(typeof eo=="object")return new ObjectSeq(eo);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+eo)}function indexedSeqFromValue(eo){var to=maybeIndexedSeqFromValue(eo);if(to)return to;throw new TypeError("Expected Array or collection object of values: "+eo)}function seqFromValue(eo){var to=maybeIndexedSeqFromValue(eo);if(to)return isEntriesIterable(eo)?to.fromEntrySeq():isKeysIterable(eo)?to.toSetSeq():to;if(typeof eo=="object")return new ObjectSeq(eo);throw new TypeError("Expected Array or collection object of values, or keyed object: "+eo)}function maybeIndexedSeqFromValue(eo){return isArrayLike$1(eo)?new ArraySeq(eo):hasIterator(eo)?new CollectionSeq(eo):void 0}var IS_MAP_SYMBOL="@@__IMMUTABLE_MAP__@@";function isMap(eo){return!!(eo&&eo[IS_MAP_SYMBOL])}function isOrderedMap(eo){return isMap(eo)&&isOrdered(eo)}function isValueObject(eo){return!!(eo&&typeof eo.equals=="function"&&typeof eo.hashCode=="function")}function is$1(eo,to){if(eo===to||eo!==eo&&to!==to)return!0;if(!eo||!to)return!1;if(typeof eo.valueOf=="function"&&typeof to.valueOf=="function"){if(eo=eo.valueOf(),to=to.valueOf(),eo===to||eo!==eo&&to!==to)return!0;if(!eo||!to)return!1}return!!(isValueObject(eo)&&isValueObject(to)&&eo.equals(to))}var imul=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(to,ro){to|=0,ro|=0;var no=to&65535,oo=ro&65535;return no*oo+((to>>>16)*oo+no*(ro>>>16)<<16>>>0)|0};function smi(eo){return eo>>>1&1073741824|eo&3221225471}var defaultValueOf=Object.prototype.valueOf;function hash$1(eo){if(eo==null)return hashNullish(eo);if(typeof eo.hashCode=="function")return smi(eo.hashCode(eo));var to=valueOf(eo);if(to==null)return hashNullish(to);switch(typeof to){case"boolean":return to?1108378657:1108378656;case"number":return hashNumber(to);case"string":return to.length>STRING_HASH_CACHE_MIN_STRLEN?cachedHashString(to):hashString(to);case"object":case"function":return hashJSObj(to);case"symbol":return hashSymbol(to);default:if(typeof to.toString=="function")return hashString(to.toString());throw new Error("Value type "+typeof to+" cannot be hashed.")}}function hashNullish(eo){return eo===null?1108378658:1108378659}function hashNumber(eo){if(eo!==eo||eo===1/0)return 0;var to=eo|0;for(to!==eo&&(to^=eo*4294967295);eo>4294967295;)eo/=4294967295,to^=eo;return smi(to)}function cachedHashString(eo){var to=stringHashCache[eo];return to===void 0&&(to=hashString(eo),STRING_HASH_CACHE_SIZE===STRING_HASH_CACHE_MAX_SIZE&&(STRING_HASH_CACHE_SIZE=0,stringHashCache={}),STRING_HASH_CACHE_SIZE++,stringHashCache[eo]=to),to}function hashString(eo){for(var to=0,ro=0;ro0)switch(eo.nodeType){case 1:return eo.uniqueID;case 9:return eo.documentElement&&eo.documentElement.uniqueID}}function valueOf(eo){return eo.valueOf!==defaultValueOf&&typeof eo.valueOf=="function"?eo.valueOf(eo):eo}function nextHash(){var eo=++_objHashUID;return _objHashUID&1073741824&&(_objHashUID=0),eo}var usingWeakMap=typeof WeakMap=="function",weakMap;usingWeakMap&&(weakMap=new WeakMap);var symbolMap=Object.create(null),_objHashUID=0,UID_HASH_KEY="__immutablehash__";typeof Symbol=="function"&&(UID_HASH_KEY=Symbol(UID_HASH_KEY));var STRING_HASH_CACHE_MIN_STRLEN=16,STRING_HASH_CACHE_MAX_SIZE=255,STRING_HASH_CACHE_SIZE=0,stringHashCache={},ToKeyedSequence=function(eo){function to(ro,no){this._iter=ro,this._useKeys=no,this.size=ro.size}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.get=function(no,oo){return this._iter.get(no,oo)},to.prototype.has=function(no){return this._iter.has(no)},to.prototype.valueSeq=function(){return this._iter.valueSeq()},to.prototype.reverse=function(){var no=this,oo=reverseFactory(this,!0);return this._useKeys||(oo.valueSeq=function(){return no._iter.toSeq().reverse()}),oo},to.prototype.map=function(no,oo){var io=this,so=mapFactory(this,no,oo);return this._useKeys||(so.valueSeq=function(){return io._iter.toSeq().map(no,oo)}),so},to.prototype.__iterate=function(no,oo){var io=this;return this._iter.__iterate(function(so,ao){return no(so,ao,io)},oo)},to.prototype.__iterator=function(no,oo){return this._iter.__iterator(no,oo)},to}(KeyedSeq);ToKeyedSequence.prototype[IS_ORDERED_SYMBOL]=!0;var ToIndexedSequence=function(eo){function to(ro){this._iter=ro,this.size=ro.size}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.includes=function(no){return this._iter.includes(no)},to.prototype.__iterate=function(no,oo){var io=this,so=0;return oo&&ensureSize(this),this._iter.__iterate(function(ao){return no(ao,oo?io.size-++so:so++,io)},oo)},to.prototype.__iterator=function(no,oo){var io=this,so=this._iter.__iterator(ITERATE_VALUES,oo),ao=0;return oo&&ensureSize(this),new Iterator(function(){var lo=so.next();return lo.done?lo:iteratorValue(no,oo?io.size-++ao:ao++,lo.value,lo)})},to}(IndexedSeq),ToSetSequence=function(eo){function to(ro){this._iter=ro,this.size=ro.size}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.has=function(no){return this._iter.includes(no)},to.prototype.__iterate=function(no,oo){var io=this;return this._iter.__iterate(function(so){return no(so,so,io)},oo)},to.prototype.__iterator=function(no,oo){var io=this._iter.__iterator(ITERATE_VALUES,oo);return new Iterator(function(){var so=io.next();return so.done?so:iteratorValue(no,so.value,so.value,so)})},to}(SetSeq),FromEntriesSequence=function(eo){function to(ro){this._iter=ro,this.size=ro.size}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.entrySeq=function(){return this._iter.toSeq()},to.prototype.__iterate=function(no,oo){var io=this;return this._iter.__iterate(function(so){if(so){validateEntry(so);var ao=isCollection(so);return no(ao?so.get(1):so[1],ao?so.get(0):so[0],io)}},oo)},to.prototype.__iterator=function(no,oo){var io=this._iter.__iterator(ITERATE_VALUES,oo);return new Iterator(function(){for(;;){var so=io.next();if(so.done)return so;var ao=so.value;if(ao){validateEntry(ao);var lo=isCollection(ao);return iteratorValue(no,lo?ao.get(0):ao[0],lo?ao.get(1):ao[1],so)}}})},to}(KeyedSeq);ToIndexedSequence.prototype.cacheResult=ToKeyedSequence.prototype.cacheResult=ToSetSequence.prototype.cacheResult=FromEntriesSequence.prototype.cacheResult=cacheResultThrough;function flipFactory(eo){var to=makeSequence(eo);return to._iter=eo,to.size=eo.size,to.flip=function(){return eo},to.reverse=function(){var ro=eo.reverse.apply(this);return ro.flip=function(){return eo.reverse()},ro},to.has=function(ro){return eo.includes(ro)},to.includes=function(ro){return eo.has(ro)},to.cacheResult=cacheResultThrough,to.__iterateUncached=function(ro,no){var oo=this;return eo.__iterate(function(io,so){return ro(so,io,oo)!==!1},no)},to.__iteratorUncached=function(ro,no){if(ro===ITERATE_ENTRIES){var oo=eo.__iterator(ro,no);return new Iterator(function(){var io=oo.next();if(!io.done){var so=io.value[0];io.value[0]=io.value[1],io.value[1]=so}return io})}return eo.__iterator(ro===ITERATE_VALUES?ITERATE_KEYS:ITERATE_VALUES,no)},to}function mapFactory(eo,to,ro){var no=makeSequence(eo);return no.size=eo.size,no.has=function(oo){return eo.has(oo)},no.get=function(oo,io){var so=eo.get(oo,NOT_SET);return so===NOT_SET?io:to.call(ro,so,oo,eo)},no.__iterateUncached=function(oo,io){var so=this;return eo.__iterate(function(ao,lo,uo){return oo(to.call(ro,ao,lo,uo),lo,so)!==!1},io)},no.__iteratorUncached=function(oo,io){var so=eo.__iterator(ITERATE_ENTRIES,io);return new Iterator(function(){var ao=so.next();if(ao.done)return ao;var lo=ao.value,uo=lo[0];return iteratorValue(oo,uo,to.call(ro,lo[1],uo,eo),ao)})},no}function reverseFactory(eo,to){var ro=this,no=makeSequence(eo);return no._iter=eo,no.size=eo.size,no.reverse=function(){return eo},eo.flip&&(no.flip=function(){var oo=flipFactory(eo);return oo.reverse=function(){return eo.flip()},oo}),no.get=function(oo,io){return eo.get(to?oo:-1-oo,io)},no.has=function(oo){return eo.has(to?oo:-1-oo)},no.includes=function(oo){return eo.includes(oo)},no.cacheResult=cacheResultThrough,no.__iterate=function(oo,io){var so=this,ao=0;return io&&ensureSize(eo),eo.__iterate(function(lo,uo){return oo(lo,to?uo:io?so.size-++ao:ao++,so)},!io)},no.__iterator=function(oo,io){var so=0;io&&ensureSize(eo);var ao=eo.__iterator(ITERATE_ENTRIES,!io);return new Iterator(function(){var lo=ao.next();if(lo.done)return lo;var uo=lo.value;return iteratorValue(oo,to?uo[0]:io?ro.size-++so:so++,uo[1],lo)})},no}function filterFactory(eo,to,ro,no){var oo=makeSequence(eo);return no&&(oo.has=function(io){var so=eo.get(io,NOT_SET);return so!==NOT_SET&&!!to.call(ro,so,io,eo)},oo.get=function(io,so){var ao=eo.get(io,NOT_SET);return ao!==NOT_SET&&to.call(ro,ao,io,eo)?ao:so}),oo.__iterateUncached=function(io,so){var ao=this,lo=0;return eo.__iterate(function(uo,co,fo){if(to.call(ro,uo,co,fo))return lo++,io(uo,no?co:lo-1,ao)},so),lo},oo.__iteratorUncached=function(io,so){var ao=eo.__iterator(ITERATE_ENTRIES,so),lo=0;return new Iterator(function(){for(;;){var uo=ao.next();if(uo.done)return uo;var co=uo.value,fo=co[0],po=co[1];if(to.call(ro,po,fo,eo))return iteratorValue(io,no?fo:lo++,po,uo)}})},oo}function countByFactory(eo,to,ro){var no=Map$1().asMutable();return eo.__iterate(function(oo,io){no.update(to.call(ro,oo,io,eo),0,function(so){return so+1})}),no.asImmutable()}function groupByFactory(eo,to,ro){var no=isKeyed(eo),oo=(isOrdered(eo)?OrderedMap():Map$1()).asMutable();eo.__iterate(function(so,ao){oo.update(to.call(ro,so,ao,eo),function(lo){return lo=lo||[],lo.push(no?[ao,so]:so),lo})});var io=collectionClass(eo);return oo.map(function(so){return reify(eo,io(so))}).asImmutable()}function partitionFactory(eo,to,ro){var no=isKeyed(eo),oo=[[],[]];eo.__iterate(function(so,ao){oo[to.call(ro,so,ao,eo)?1:0].push(no?[ao,so]:so)});var io=collectionClass(eo);return oo.map(function(so){return reify(eo,io(so))})}function sliceFactory(eo,to,ro,no){var oo=eo.size;if(wholeSlice(to,ro,oo))return eo;var io=resolveBegin(to,oo),so=resolveEnd(ro,oo);if(io!==io||so!==so)return sliceFactory(eo.toSeq().cacheResult(),to,ro,no);var ao=so-io,lo;ao===ao&&(lo=ao<0?0:ao);var uo=makeSequence(eo);return uo.size=lo===0?lo:eo.size&&lo||void 0,!no&&isSeq(eo)&&lo>=0&&(uo.get=function(co,fo){return co=wrapIndex(this,co),co>=0&&colo)return iteratorDone();var vo=po.next();return no||co===ITERATE_VALUES||vo.done?vo:co===ITERATE_KEYS?iteratorValue(co,mo-1,void 0,vo):iteratorValue(co,mo-1,vo.value[1],vo)})},uo}function takeWhileFactory(eo,to,ro){var no=makeSequence(eo);return no.__iterateUncached=function(oo,io){var so=this;if(io)return this.cacheResult().__iterate(oo,io);var ao=0;return eo.__iterate(function(lo,uo,co){return to.call(ro,lo,uo,co)&&++ao&&oo(lo,uo,so)}),ao},no.__iteratorUncached=function(oo,io){var so=this;if(io)return this.cacheResult().__iterator(oo,io);var ao=eo.__iterator(ITERATE_ENTRIES,io),lo=!0;return new Iterator(function(){if(!lo)return iteratorDone();var uo=ao.next();if(uo.done)return uo;var co=uo.value,fo=co[0],po=co[1];return to.call(ro,po,fo,so)?oo===ITERATE_ENTRIES?uo:iteratorValue(oo,fo,po,uo):(lo=!1,iteratorDone())})},no}function skipWhileFactory(eo,to,ro,no){var oo=makeSequence(eo);return oo.__iterateUncached=function(io,so){var ao=this;if(so)return this.cacheResult().__iterate(io,so);var lo=!0,uo=0;return eo.__iterate(function(co,fo,po){if(!(lo&&(lo=to.call(ro,co,fo,po))))return uo++,io(co,no?fo:uo-1,ao)}),uo},oo.__iteratorUncached=function(io,so){var ao=this;if(so)return this.cacheResult().__iterator(io,so);var lo=eo.__iterator(ITERATE_ENTRIES,so),uo=!0,co=0;return new Iterator(function(){var fo,po,ho;do{if(fo=lo.next(),fo.done)return no||io===ITERATE_VALUES?fo:io===ITERATE_KEYS?iteratorValue(io,co++,void 0,fo):iteratorValue(io,co++,fo.value[1],fo);var mo=fo.value;po=mo[0],ho=mo[1],uo&&(uo=to.call(ro,ho,po,ao))}while(uo);return io===ITERATE_ENTRIES?fo:iteratorValue(io,po,ho,fo)})},oo}function concatFactory(eo,to){var ro=isKeyed(eo),no=[eo].concat(to).map(function(so){return isCollection(so)?ro&&(so=KeyedCollection(so)):so=ro?keyedSeqFromValue(so):indexedSeqFromValue(Array.isArray(so)?so:[so]),so}).filter(function(so){return so.size!==0});if(no.length===0)return eo;if(no.length===1){var oo=no[0];if(oo===eo||ro&&isKeyed(oo)||isIndexed(eo)&&isIndexed(oo))return oo}var io=new ArraySeq(no);return ro?io=io.toKeyedSeq():isIndexed(eo)||(io=io.toSetSeq()),io=io.flatten(!0),io.size=no.reduce(function(so,ao){if(so!==void 0){var lo=ao.size;if(lo!==void 0)return so+lo}},0),io}function flattenFactory(eo,to,ro){var no=makeSequence(eo);return no.__iterateUncached=function(oo,io){if(io)return this.cacheResult().__iterate(oo,io);var so=0,ao=!1;function lo(uo,co){uo.__iterate(function(fo,po){return(!to||co0}function zipWithFactory(eo,to,ro,no){var oo=makeSequence(eo),io=new ArraySeq(ro).map(function(so){return so.size});return oo.size=no?io.max():io.min(),oo.__iterate=function(so,ao){for(var lo=this.__iterator(ITERATE_VALUES,ao),uo,co=0;!(uo=lo.next()).done&&so(uo.value,co++,this)!==!1;);return co},oo.__iteratorUncached=function(so,ao){var lo=ro.map(function(fo){return fo=Collection$1(fo),getIterator(ao?fo.reverse():fo)}),uo=0,co=!1;return new Iterator(function(){var fo;return co||(fo=lo.map(function(po){return po.next()}),co=no?fo.every(function(po){return po.done}):fo.some(function(po){return po.done})),co?iteratorDone():iteratorValue(so,uo++,to.apply(null,fo.map(function(po){return po.value})))})},oo}function reify(eo,to){return eo===to?eo:isSeq(eo)?to:eo.constructor(to)}function validateEntry(eo){if(eo!==Object(eo))throw new TypeError("Expected [K, V] tuple: "+eo)}function collectionClass(eo){return isKeyed(eo)?KeyedCollection:isIndexed(eo)?IndexedCollection:SetCollection}function makeSequence(eo){return Object.create((isKeyed(eo)?KeyedSeq:isIndexed(eo)?IndexedSeq:SetSeq).prototype)}function cacheResultThrough(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Seq.prototype.cacheResult.call(this)}function defaultComparator(eo,to){return eo===void 0&&to===void 0?0:eo===void 0?1:to===void 0?-1:eo>to?1:eo0;)to[ro]=arguments[ro+1];if(typeof eo!="function")throw new TypeError("Invalid merger function: "+eo);return mergeIntoKeyedWith(this,to,eo)}function mergeIntoKeyedWith(eo,to,ro){for(var no=[],oo=0;oo0;)to[ro]=arguments[ro+1];return mergeDeepWithSources(this,to,eo)}function mergeIn(eo){for(var to=[],ro=arguments.length-1;ro-- >0;)to[ro]=arguments[ro+1];return updateIn$1(this,eo,emptyMap(),function(no){return mergeWithSources(no,to)})}function mergeDeepIn(eo){for(var to=[],ro=arguments.length-1;ro-- >0;)to[ro]=arguments[ro+1];return updateIn$1(this,eo,emptyMap(),function(no){return mergeDeepWithSources(no,to)})}function withMutations(eo){var to=this.asMutable();return eo(to),to.wasAltered()?to.__ensureOwner(this.__ownerID):this}function asMutable(){return this.__ownerID?this:this.__ensureOwner(new OwnerID)}function asImmutable(){return this.__ensureOwner()}function wasAltered(){return this.__altered}var Map$1=function(eo){function to(ro){return ro==null?emptyMap():isMap(ro)&&!isOrdered(ro)?ro:emptyMap().withMutations(function(no){var oo=eo(ro);assertNotInfinite(oo.size),oo.forEach(function(io,so){return no.set(so,io)})})}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.of=function(){for(var no=[],oo=arguments.length;oo--;)no[oo]=arguments[oo];return emptyMap().withMutations(function(io){for(var so=0;so=no.length)throw new Error("Missing value for key: "+no[so]);io.set(no[so],no[so+1])}})},to.prototype.toString=function(){return this.__toString("Map {","}")},to.prototype.get=function(no,oo){return this._root?this._root.get(0,void 0,no,oo):oo},to.prototype.set=function(no,oo){return updateMap(this,no,oo)},to.prototype.remove=function(no){return updateMap(this,no,NOT_SET)},to.prototype.deleteAll=function(no){var oo=Collection$1(no);return oo.size===0?this:this.withMutations(function(io){oo.forEach(function(so){return io.remove(so)})})},to.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):emptyMap()},to.prototype.sort=function(no){return OrderedMap(sortFactory(this,no))},to.prototype.sortBy=function(no,oo){return OrderedMap(sortFactory(this,oo,no))},to.prototype.map=function(no,oo){var io=this;return this.withMutations(function(so){so.forEach(function(ao,lo){so.set(lo,no.call(oo,ao,lo,io))})})},to.prototype.__iterator=function(no,oo){return new MapIterator(this,no,oo)},to.prototype.__iterate=function(no,oo){var io=this,so=0;return this._root&&this._root.iterate(function(ao){return so++,no(ao[1],ao[0],io)},oo),so},to.prototype.__ensureOwner=function(no){return no===this.__ownerID?this:no?makeMap(this.size,this._root,no,this.__hash):this.size===0?emptyMap():(this.__ownerID=no,this.__altered=!1,this)},to}(KeyedCollection);Map$1.isMap=isMap;var MapPrototype=Map$1.prototype;MapPrototype[IS_MAP_SYMBOL]=!0;MapPrototype[DELETE]=MapPrototype.remove;MapPrototype.removeAll=MapPrototype.deleteAll;MapPrototype.setIn=setIn;MapPrototype.removeIn=MapPrototype.deleteIn=deleteIn;MapPrototype.update=update;MapPrototype.updateIn=updateIn;MapPrototype.merge=MapPrototype.concat=merge$1$1;MapPrototype.mergeWith=mergeWith$1;MapPrototype.mergeDeep=mergeDeep;MapPrototype.mergeDeepWith=mergeDeepWith;MapPrototype.mergeIn=mergeIn;MapPrototype.mergeDeepIn=mergeDeepIn;MapPrototype.withMutations=withMutations;MapPrototype.wasAltered=wasAltered;MapPrototype.asImmutable=asImmutable;MapPrototype["@@transducer/init"]=MapPrototype.asMutable=asMutable;MapPrototype["@@transducer/step"]=function(eo,to){return eo.set(to[0],to[1])};MapPrototype["@@transducer/result"]=function(eo){return eo.asImmutable()};var ArrayMapNode=function(to,ro){this.ownerID=to,this.entries=ro};ArrayMapNode.prototype.get=function(to,ro,no,oo){for(var io=this.entries,so=0,ao=io.length;so=MAX_ARRAY_MAP_SIZE)return createNodes(to,uo,oo,io);var ho=to&&to===this.ownerID,mo=ho?uo:arrCopy(uo);return po?lo?co===fo-1?mo.pop():mo[co]=mo.pop():mo[co]=[oo,io]:mo.push([oo,io]),ho?(this.entries=mo,this):new ArrayMapNode(to,mo)}};var BitmapIndexedNode=function(to,ro,no){this.ownerID=to,this.bitmap=ro,this.nodes=no};BitmapIndexedNode.prototype.get=function(to,ro,no,oo){ro===void 0&&(ro=hash$1(no));var io=1<<((to===0?ro:ro>>>to)&MASK),so=this.bitmap;return so&io?this.nodes[popCount(so&io-1)].get(to+SHIFT,ro,no,oo):oo};BitmapIndexedNode.prototype.update=function(to,ro,no,oo,io,so,ao){no===void 0&&(no=hash$1(oo));var lo=(ro===0?no:no>>>ro)&MASK,uo=1<=MAX_BITMAP_INDEXED_SIZE)return expandNodes(to,ho,co,lo,vo);if(fo&&!vo&&ho.length===2&&isLeafNode(ho[po^1]))return ho[po^1];if(fo&&vo&&ho.length===1&&isLeafNode(vo))return vo;var bo=to&&to===this.ownerID,xo=fo?vo?co:co^uo:co|uo,_o=fo?vo?setAt(ho,po,vo,bo):spliceOut(ho,po,bo):spliceIn(ho,po,vo,bo);return bo?(this.bitmap=xo,this.nodes=_o,this):new BitmapIndexedNode(to,xo,_o)};var HashArrayMapNode=function(to,ro,no){this.ownerID=to,this.count=ro,this.nodes=no};HashArrayMapNode.prototype.get=function(to,ro,no,oo){ro===void 0&&(ro=hash$1(no));var io=(to===0?ro:ro>>>to)&MASK,so=this.nodes[io];return so?so.get(to+SHIFT,ro,no,oo):oo};HashArrayMapNode.prototype.update=function(to,ro,no,oo,io,so,ao){no===void 0&&(no=hash$1(oo));var lo=(ro===0?no:no>>>ro)&MASK,uo=io===NOT_SET,co=this.nodes,fo=co[lo];if(uo&&!fo)return this;var po=updateNode(fo,to,ro+SHIFT,no,oo,io,so,ao);if(po===fo)return this;var ho=this.count;if(!fo)ho++;else if(!po&&(ho--,ho>>ro)&MASK,so=(ro===0?no:no>>>ro)&MASK,ao,lo=io===so?[mergeIntoNode(eo,to,ro+SHIFT,no,oo)]:(ao=new ValueNode(to,no,oo),io>>=1)so[ao]=ro&1?to[io++]:void 0;return so[no]=oo,new HashArrayMapNode(eo,io+1,so)}function popCount(eo){return eo-=eo>>1&1431655765,eo=(eo&858993459)+(eo>>2&858993459),eo=eo+(eo>>4)&252645135,eo+=eo>>8,eo+=eo>>16,eo&127}function setAt(eo,to,ro,no){var oo=no?eo:arrCopy(eo);return oo[to]=ro,oo}function spliceIn(eo,to,ro,no){var oo=eo.length+1;if(no&&to+1===oo)return eo[to]=ro,eo;for(var io=new Array(oo),so=0,ao=0;ao0&&io=0&&no>>ro&MASK;if(oo>=this.array.length)return new VNode([],to);var io=oo===0,so;if(ro>0){var ao=this.array[oo];if(so=ao&&ao.removeBefore(to,ro-SHIFT,no),so===ao&&io)return this}if(io&&!so)return this;var lo=editableVNode(this,to);if(!io)for(var uo=0;uo>>ro&MASK;if(oo>=this.array.length)return this;var io;if(ro>0){var so=this.array[oo];if(io=so&&so.removeAfter(to,ro-SHIFT,no),io===so&&oo===this.array.length-1)return this}var ao=editableVNode(this,to);return ao.array.splice(oo+1),io&&(ao.array[oo]=io),ao};var DONE={};function iterateList(eo,to){var ro=eo._origin,no=eo._capacity,oo=getTailOffset(no),io=eo._tail;return so(eo._root,eo._level,0);function so(uo,co,fo){return co===0?ao(uo,fo):lo(uo,co,fo)}function ao(uo,co){var fo=co===oo?io&&io.array:uo&&uo.array,po=co>ro?0:ro-co,ho=no-co;return ho>SIZE&&(ho=SIZE),function(){if(po===ho)return DONE;var mo=to?--ho:po++;return fo&&fo[mo]}}function lo(uo,co,fo){var po,ho=uo&&uo.array,mo=fo>ro?0:ro-fo>>co,vo=(no-fo>>co)+1;return vo>SIZE&&(vo=SIZE),function(){for(;;){if(po){var bo=po();if(bo!==DONE)return bo;po=null}if(mo===vo)return DONE;var xo=to?--vo:mo++;po=so(ho&&ho[xo],co-SHIFT,fo+(xo<=eo.size||to<0)return eo.withMutations(function(so){to<0?setListBounds(so,to).set(0,ro):setListBounds(so,0,to+1).set(to,ro)});to+=eo._origin;var no=eo._tail,oo=eo._root,io=MakeRef();return to>=getTailOffset(eo._capacity)?no=updateVNode(no,eo.__ownerID,0,to,ro,io):oo=updateVNode(oo,eo.__ownerID,eo._level,to,ro,io),io.value?eo.__ownerID?(eo._root=oo,eo._tail=no,eo.__hash=void 0,eo.__altered=!0,eo):makeList(eo._origin,eo._capacity,eo._level,oo,no):eo}function updateVNode(eo,to,ro,no,oo,io){var so=no>>>ro&MASK,ao=eo&&so0){var uo=eo&&eo.array[so],co=updateVNode(uo,to,ro-SHIFT,no,oo,io);return co===uo?eo:(lo=editableVNode(eo,to),lo.array[so]=co,lo)}return ao&&eo.array[so]===oo?eo:(io&&SetRef(io),lo=editableVNode(eo,to),oo===void 0&&so===lo.array.length-1?lo.array.pop():lo.array[so]=oo,lo)}function editableVNode(eo,to){return to&&eo&&to===eo.ownerID?eo:new VNode(eo?eo.array.slice():[],to)}function listNodeFor(eo,to){if(to>=getTailOffset(eo._capacity))return eo._tail;if(to<1<0;)ro=ro.array[to>>>no&MASK],no-=SHIFT;return ro}}function setListBounds(eo,to,ro){to!==void 0&&(to|=0),ro!==void 0&&(ro|=0);var no=eo.__ownerID||new OwnerID,oo=eo._origin,io=eo._capacity,so=oo+to,ao=ro===void 0?io:ro<0?io+ro:oo+ro;if(so===oo&&ao===io)return eo;if(so>=ao)return eo.clear();for(var lo=eo._level,uo=eo._root,co=0;so+co<0;)uo=new VNode(uo&&uo.array.length?[void 0,uo]:[],no),lo+=SHIFT,co+=1<=1<fo?new VNode([],no):ho;if(ho&&po>fo&&soSHIFT;bo-=SHIFT){var xo=fo>>>bo&MASK;vo=vo.array[xo]=editableVNode(vo.array[xo],no)}vo.array[fo>>>SHIFT&MASK]=ho}if(ao=po)so-=po,ao-=po,lo=SHIFT,uo=null,mo=mo&&mo.removeBefore(no,0,so);else if(so>oo||po>>lo&MASK;if(_o!==po>>>lo&MASK)break;_o&&(co+=(1<oo&&(uo=uo.removeBefore(no,lo,so-co)),uo&&po>>SHIFT<=SIZE&&oo.size>=no.size*2?(lo=oo.filter(function(uo,co){return uo!==void 0&&io!==co}),ao=lo.toKeyedSeq().map(function(uo){return uo[0]}).flip().toMap(),eo.__ownerID&&(ao.__ownerID=lo.__ownerID=eo.__ownerID)):(ao=no.remove(to),lo=io===oo.size-1?oo.pop():oo.set(io,void 0))}else if(so){if(ro===oo.get(io)[1])return eo;ao=no,lo=oo.set(io,[to,ro])}else ao=no.set(to,oo.size),lo=oo.set(oo.size,[to,ro]);return eo.__ownerID?(eo.size=ao.size,eo._map=ao,eo._list=lo,eo.__hash=void 0,eo.__altered=!0,eo):makeOrderedMap(ao,lo)}var IS_STACK_SYMBOL="@@__IMMUTABLE_STACK__@@";function isStack(eo){return!!(eo&&eo[IS_STACK_SYMBOL])}var Stack=function(eo){function to(ro){return ro==null?emptyStack():isStack(ro)?ro:emptyStack().pushAll(ro)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.of=function(){return this(arguments)},to.prototype.toString=function(){return this.__toString("Stack [","]")},to.prototype.get=function(no,oo){var io=this._head;for(no=wrapIndex(this,no);io&&no--;)io=io.next;return io?io.value:oo},to.prototype.peek=function(){return this._head&&this._head.value},to.prototype.push=function(){var no=arguments;if(arguments.length===0)return this;for(var oo=this.size+arguments.length,io=this._head,so=arguments.length-1;so>=0;so--)io={value:no[so],next:io};return this.__ownerID?(this.size=oo,this._head=io,this.__hash=void 0,this.__altered=!0,this):makeStack(oo,io)},to.prototype.pushAll=function(no){if(no=eo(no),no.size===0)return this;if(this.size===0&&isStack(no))return no;assertNotInfinite(no.size);var oo=this.size,io=this._head;return no.__iterate(function(so){oo++,io={value:so,next:io}},!0),this.__ownerID?(this.size=oo,this._head=io,this.__hash=void 0,this.__altered=!0,this):makeStack(oo,io)},to.prototype.pop=function(){return this.slice(1)},to.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):emptyStack()},to.prototype.slice=function(no,oo){if(wholeSlice(no,oo,this.size))return this;var io=resolveBegin(no,this.size),so=resolveEnd(oo,this.size);if(so!==this.size)return eo.prototype.slice.call(this,no,oo);for(var ao=this.size-io,lo=this._head;io--;)lo=lo.next;return this.__ownerID?(this.size=ao,this._head=lo,this.__hash=void 0,this.__altered=!0,this):makeStack(ao,lo)},to.prototype.__ensureOwner=function(no){return no===this.__ownerID?this:no?makeStack(this.size,this._head,no,this.__hash):this.size===0?emptyStack():(this.__ownerID=no,this.__altered=!1,this)},to.prototype.__iterate=function(no,oo){var io=this;if(oo)return new ArraySeq(this.toArray()).__iterate(function(lo,uo){return no(lo,uo,io)},oo);for(var so=0,ao=this._head;ao&&no(ao.value,so++,this)!==!1;)ao=ao.next;return so},to.prototype.__iterator=function(no,oo){if(oo)return new ArraySeq(this.toArray()).__iterator(no,oo);var io=0,so=this._head;return new Iterator(function(){if(so){var ao=so.value;return so=so.next,iteratorValue(no,io++,ao)}return iteratorDone()})},to}(IndexedCollection);Stack.isStack=isStack;var StackPrototype=Stack.prototype;StackPrototype[IS_STACK_SYMBOL]=!0;StackPrototype.shift=StackPrototype.pop;StackPrototype.unshift=StackPrototype.push;StackPrototype.unshiftAll=StackPrototype.pushAll;StackPrototype.withMutations=withMutations;StackPrototype.wasAltered=wasAltered;StackPrototype.asImmutable=asImmutable;StackPrototype["@@transducer/init"]=StackPrototype.asMutable=asMutable;StackPrototype["@@transducer/step"]=function(eo,to){return eo.unshift(to)};StackPrototype["@@transducer/result"]=function(eo){return eo.asImmutable()};function makeStack(eo,to,ro,no){var oo=Object.create(StackPrototype);return oo.size=eo,oo._head=to,oo.__ownerID=ro,oo.__hash=no,oo.__altered=!1,oo}var EMPTY_STACK;function emptyStack(){return EMPTY_STACK||(EMPTY_STACK=makeStack(0))}var IS_SET_SYMBOL="@@__IMMUTABLE_SET__@@";function isSet(eo){return!!(eo&&eo[IS_SET_SYMBOL])}function isOrderedSet(eo){return isSet(eo)&&isOrdered(eo)}function deepEqual(eo,to){if(eo===to)return!0;if(!isCollection(to)||eo.size!==void 0&&to.size!==void 0&&eo.size!==to.size||eo.__hash!==void 0&&to.__hash!==void 0&&eo.__hash!==to.__hash||isKeyed(eo)!==isKeyed(to)||isIndexed(eo)!==isIndexed(to)||isOrdered(eo)!==isOrdered(to))return!1;if(eo.size===0&&to.size===0)return!0;var ro=!isAssociative(eo);if(isOrdered(eo)){var no=eo.entries();return to.every(function(lo,uo){var co=no.next().value;return co&&is$1(co[1],lo)&&(ro||is$1(co[0],uo))})&&no.next().done}var oo=!1;if(eo.size===void 0)if(to.size===void 0)typeof eo.cacheResult=="function"&&eo.cacheResult();else{oo=!0;var io=eo;eo=to,to=io}var so=!0,ao=to.__iterate(function(lo,uo){if(ro?!eo.has(lo):oo?!is$1(lo,eo.get(uo,NOT_SET)):!is$1(eo.get(uo,NOT_SET),lo))return so=!1,!1});return so&&eo.size===ao}function mixin(eo,to){var ro=function(no){eo.prototype[no]=to[no]};return Object.keys(to).forEach(ro),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(to).forEach(ro),eo}function toJS(eo){if(!eo||typeof eo!="object")return eo;if(!isCollection(eo)){if(!isDataStructure(eo))return eo;eo=Seq(eo)}if(isKeyed(eo)){var to={};return eo.__iterate(function(no,oo){to[oo]=toJS(no)}),to}var ro=[];return eo.__iterate(function(no){ro.push(toJS(no))}),ro}var Set$1=function(eo){function to(ro){return ro==null?emptySet():isSet(ro)&&!isOrdered(ro)?ro:emptySet().withMutations(function(no){var oo=eo(ro);assertNotInfinite(oo.size),oo.forEach(function(io){return no.add(io)})})}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.of=function(){return this(arguments)},to.fromKeys=function(no){return this(KeyedCollection(no).keySeq())},to.intersect=function(no){return no=Collection$1(no).toArray(),no.length?SetPrototype.intersect.apply(to(no.pop()),no):emptySet()},to.union=function(no){return no=Collection$1(no).toArray(),no.length?SetPrototype.union.apply(to(no.pop()),no):emptySet()},to.prototype.toString=function(){return this.__toString("Set {","}")},to.prototype.has=function(no){return this._map.has(no)},to.prototype.add=function(no){return updateSet(this,this._map.set(no,no))},to.prototype.remove=function(no){return updateSet(this,this._map.remove(no))},to.prototype.clear=function(){return updateSet(this,this._map.clear())},to.prototype.map=function(no,oo){var io=this,so=!1,ao=updateSet(this,this._map.mapEntries(function(lo){var uo=lo[1],co=no.call(oo,uo,uo,io);return co!==uo&&(so=!0),[co,co]},oo));return so?ao:this},to.prototype.union=function(){for(var no=[],oo=arguments.length;oo--;)no[oo]=arguments[oo];return no=no.filter(function(io){return io.size!==0}),no.length===0?this:this.size===0&&!this.__ownerID&&no.length===1?this.constructor(no[0]):this.withMutations(function(io){for(var so=0;so=0&&oo=0&&iothis.size?ro:this.find(function(no,oo){return oo===to},void 0,ro)},has:function(to){return to=wrapIndex(this,to),to>=0&&(this.size!==void 0?this.size===1/0||toto?-1:0}function hashCollection(eo){if(eo.size===1/0)return 0;var to=isOrdered(eo),ro=isKeyed(eo),no=to?1:0,oo=eo.__iterate(ro?to?function(io,so){no=31*no+hashMerge(hash$1(io),hash$1(so))|0}:function(io,so){no=no+hashMerge(hash$1(io),hash$1(so))|0}:to?function(io){no=31*no+hash$1(io)|0}:function(io){no=no+hash$1(io)|0});return murmurHashOfSize(oo,no)}function murmurHashOfSize(eo,to){return to=imul(to,3432918353),to=imul(to<<15|to>>>-15,461845907),to=imul(to<<13|to>>>-13,5),to=(to+3864292196|0)^eo,to=imul(to^to>>>16,2246822507),to=imul(to^to>>>13,3266489909),to=smi(to^to>>>16),to}function hashMerge(eo,to){return eo^to+2654435769+(eo<<6)+(eo>>2)|0}var OrderedSet=function(eo){function to(ro){return ro==null?emptyOrderedSet():isOrderedSet(ro)?ro:emptyOrderedSet().withMutations(function(no){var oo=SetCollection(ro);assertNotInfinite(oo.size),oo.forEach(function(io){return no.add(io)})})}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.of=function(){return this(arguments)},to.fromKeys=function(no){return this(KeyedCollection(no).keySeq())},to.prototype.toString=function(){return this.__toString("OrderedSet {","}")},to}(Set$1);OrderedSet.isOrderedSet=isOrderedSet;var OrderedSetPrototype=OrderedSet.prototype;OrderedSetPrototype[IS_ORDERED_SYMBOL]=!0;OrderedSetPrototype.zip=IndexedCollectionPrototype.zip;OrderedSetPrototype.zipWith=IndexedCollectionPrototype.zipWith;OrderedSetPrototype.zipAll=IndexedCollectionPrototype.zipAll;OrderedSetPrototype.__empty=emptyOrderedSet;OrderedSetPrototype.__make=makeOrderedSet;function makeOrderedSet(eo,to){var ro=Object.create(OrderedSetPrototype);return ro.size=eo?eo.size:0,ro._map=eo,ro.__ownerID=to,ro}var EMPTY_ORDERED_SET;function emptyOrderedSet(){return EMPTY_ORDERED_SET||(EMPTY_ORDERED_SET=makeOrderedSet(emptyOrderedMap()))}function throwOnInvalidDefaultValues(eo){if(isRecord(eo))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(isImmutable(eo))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(eo===null||typeof eo!="object")throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}var Record=function(to,ro){var no;throwOnInvalidDefaultValues(to);var oo=function(ao){var lo=this;if(ao instanceof oo)return ao;if(!(this instanceof oo))return new oo(ao);if(!no){no=!0;var uo=Object.keys(to),co=io._indices={};io._name=ro,io._keys=uo,io._defaultValues=to;for(var fo=0;fo0?this._next(ro.shift()):this.active===0&&this.hasCompleted&&this.destination.complete()},to}(SimpleOuterSubscriber);function mergeAll(eo){return eo===void 0&&(eo=Number.POSITIVE_INFINITY),mergeMap(identity$1,eo)}function merge$2(){for(var eo=[],to=0;to1&&typeof eo[eo.length-1]=="number"&&(ro=eo.pop())):typeof oo=="number"&&(ro=eo.pop()),no===null&&eo.length===1&&eo[0]instanceof Observable$2?eo[0]:mergeAll(ro)(fromArray(eo,no))}function filter(eo,to){return function(no){return no.lift(new FilterOperator(eo,to))}}var FilterOperator=function(){function eo(to,ro){this.predicate=to,this.thisArg=ro}return eo.prototype.call=function(to,ro){return ro.subscribe(new FilterSubscriber(to,this.predicate,this.thisArg))},eo}(),FilterSubscriber=function(eo){__extends$2(to,eo);function to(ro,no,oo){var io=eo.call(this,ro)||this;return io.predicate=no,io.thisArg=oo,io.count=0,io}return to.prototype._next=function(ro){var no;try{no=this.predicate.call(this.thisArg,ro,this.count++)}catch(oo){this.destination.error(oo);return}no&&this.destination.next(ro)},to}(Subscriber$1);function debounceTime(eo,to){return to===void 0&&(to=async),function(ro){return ro.lift(new DebounceTimeOperator(eo,to))}}var DebounceTimeOperator=function(){function eo(to,ro){this.dueTime=to,this.scheduler=ro}return eo.prototype.call=function(to,ro){return ro.subscribe(new DebounceTimeSubscriber(to,this.dueTime,this.scheduler))},eo}(),DebounceTimeSubscriber=function(eo){__extends$2(to,eo);function to(ro,no,oo){var io=eo.call(this,ro)||this;return io.dueTime=no,io.scheduler=oo,io.debouncedSubscription=null,io.lastValue=null,io.hasValue=!1,io}return to.prototype._next=function(ro){this.clearDebounce(),this.lastValue=ro,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(dispatchNext,this.dueTime,this))},to.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},to.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var ro=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(ro)}},to.prototype.clearDebounce=function(){var ro=this.debouncedSubscription;ro!==null&&(this.remove(ro),ro.unsubscribe(),this.debouncedSubscription=null)},to}(Subscriber$1);function dispatchNext(eo){eo.debouncedNext()}function e$4(){return e$4=Object.assign?Object.assign.bind():function(eo){for(var to=1;to{const ao=no.singletonCache.get(so)||no.requestCache.get(so)||no.transientCache.get(so);ao&&(io.proxyTarget.current=ao)}),no.postConstruct.forEach(io=>{io.postConstruct()}),this.currentCtx=null,oo}child(){const to=new this.constructor;return to.parent=this,to}getParent(){return this.parent}getInjectable(to){var ro;const no=this.pool.get(to);if(no)return{value:no,fromParent:!1};const oo=(ro=this.parent)==null?void 0:ro.getInjectable(to);return oo?{value:oo.value,fromParent:!0}:void 0}_resolve(to,ro,no){const oo=this.getInjectable(to);if((ro==null?void 0:ro.optional)===!0&&!oo)return;if(!oo)throw new Error(`Key: ${a$5(to)} not found`);const{value:{value:io,scope:so,type:ao},fromParent:lo}=oo;let uo,co=!1;if(ao===h$7.VALUE)return io;{const fo=no.requestedKeys.get(to);if(fo){if(!fo.constructed){if(!ro.lazy&&!lo){const po=Array.from(no.requestedKeys.entries()).pop(),ho=po?`[ ${String(po[0])}: ${po[1].value.name} ]`:"";throw new Error(`Circular reference detected: ${ho} -> [ ${a$5(to)}: ${io.name} ]`)}co=!0}}else no.requestedKeys.set(to,{constructed:!1,value:io})}return uo=co?()=>this.createLazy(to,ao,no):()=>this.create(to,oo.value,no),this.run(so,to,uo,no)}resolveDeps(to,ro){const no=[];for(const oo of to){const{key:io,options:so}=c$7(oo);if(Array.isArray(io)){const ao=[];for(const lo of io){let uo=ro.singletonCache.get(lo.key);uo===void 0&&(uo=this._resolve(lo.key,e$4({},lo.options),ro)),uo===void 0&&so.removeUndefined||ao.push(uo)}no.push(ao.length?ao:so.setToUndefinedIfEmpty?void 0:ao)}else{let ao=ro.singletonCache.get(io);ao===void 0&&(ao=this._resolve(io,e$4({},so),ro)),no.push(ao)}}return no}createLazy(to,ro,no){const oo=no.delayed.get(to);if(oo)return oo.proxy;const io=ro===h$7.CLASS?{}:function(){},so=function(ao,lo,uo){function co(){if(!ao.current)throw new Error(`Lazy target for key:${String(uo)} not yet set`);return ao.current}return new Proxy(ao,{apply:function(fo,po){const ho=co();return Reflect.apply(ho,lo?ho:void 0,po)},construct:function(fo,po){return Reflect.construct(co(),po)},get:function(fo,po,ho){return po===t$6?fo.current:po===n$5||Reflect.get(co(),po,ho)},set:function(fo,po,ho){return Reflect.set(po==="current"?fo:co(),po,ho)},defineProperty:function(fo,po,ho){return Reflect.defineProperty(co(),po,ho)},deleteProperty:function(fo,po){return Reflect.deleteProperty(co(),po)},getPrototypeOf:function(fo){return Reflect.getPrototypeOf(co())},setPrototypeOf:function(fo,po){return Reflect.setPrototypeOf(co(),po)},getOwnPropertyDescriptor:function(fo,po){return Reflect.getOwnPropertyDescriptor(co(),po)},has:function(fo,po){return Reflect.has(co(),po)},isExtensible:function(fo){return Reflect.isExtensible(co())},ownKeys:function(fo){return Reflect.ownKeys(co())},preventExtensions:function(fo){return Reflect.preventExtensions(co())}})}(io,ro===h$7.CLASS,to);return no.delayed.set(to,{proxy:so,proxyTarget:io}),so}create(to,ro,no){const{beforeResolve:oo,afterResolve:io,value:so,type:ao}=ro,lo=so.inject;let uo=[];lo&&(uo=Array.isArray(lo)?this.resolveDeps(lo,no):lo.fn({container:this,ctx:no.ctx},...this.resolveDeps(lo.deps,no)));const co=oo?oo({container:this,value:so.original,ctx:no.ctx},...uo):so(...uo);return io&&io({container:this,value:co,ctx:no.ctx}),no.requestedKeys.get(to).constructed=!0,ao==="CLASS"&&"postConstruct"in co&&no.postConstruct.push(co),co}run(to,ro,no,oo){if(to===f$6.SINGLETON||to===f$6.CONTAINER_SINGLETON){var io;if(!this.pool.has(ro)&&to===f$6.SINGLETON)return(io=this.parent)==null?void 0:io.resolve(ro);const ao=oo.singletonCache.get(ro);if(ao!==void 0)return ao===p$7?void 0:ao;{let lo=no();return lo===void 0&&(lo=p$7),this.singletonCache.set(ro,lo),lo}}if(f$6.REQUEST===to){const ao=oo.requestCache.get(ro);if(ao!==void 0)return ao===p$7?void 0:ao;{let lo=no();return lo===void 0&&(lo=p$7),oo.requestCache.set(ro,lo),lo}}const so=no();return oo.transientCache.set(ro,so),so}};function isClassProvider(eo){return hasOwn(eo,"useClass")}function isFactoryProvider(eo){return hasOwn(eo,"useFactory")}function isValueProvider(eo){return hasOwn(eo,"useValue")}function isTokenProvider(eo){return hasOwn(eo,"useToken")}const SINGLETON=Symbol("singleton");function isConstructor(eo){return typeof eo=="function"&&!!eo.inject}function getClassScope(eo){return eo[SINGLETON]?"SINGLETON":eo.scope?eo.scope:"TRANSIENT"}class DependencyContainer extends d$6{constructor(){super(...arguments),this.name="DependencyContainer"}bindValue(to,ro){return this.has(to,!1)&&this.unbind(to),super.bindValue(to,ro)}bindClass(to,ro,no){const oo=(no==null?void 0:no.scope)??getClassScope(to);return super.bindClass(to,ro,{...no,scope:oo})}register(to,ro){if(isValueProvider(ro))this.bindValue(to,ro.useValue);else if(isFactoryProvider(ro)){const{useFactory:no}=ro;this.bindFactory(to,{value:no,inject:[ContainerToken]},{scope:ro.scope})}else if(isTokenProvider(ro))this.bindFactory(to,{value:no=>no,inject:[ro.useToken]});else if(isClassProvider(ro)){const no=ro.scope??getClassScope(ro.useClass);this.bindClass(to,ro.useClass,{scope:no})}}_resolve(to,ro,no){if(!this.getInjectable(to)&&isConstructor(to)){const oo=getClassScope(to);this.bindClass(to,to,{scope:oo})}return super._resolve(to,ro,no)}}const getGlobalContainer=()=>{const eo=new DependencyContainer;return eo.name="global",eo},container=getGlobalContainer();function createInjectionToken(eo,to){return container.bindValue(eo,to),eo}const ContainerToken=createInjectionToken("DependencyContainer",container),ServicesContext=reactExports.createContext(container),createRegistry=({provide:eo,name:to})=>({containerRef:no,onInitialize:oo,onDispose:io,children:so})=>{const ao=reactExports.useContext(ServicesContext),lo=reactExports.useMemo(()=>{const uo=ao.child();return to&&(uo.name=to),eo==null||eo.forEach(co=>{uo.register(co.token,co)}),uo.bindValue(ContainerToken,uo),oo==null||oo(uo),uo},[oo,ao]);return reactExports.useImperativeHandle(no,()=>lo,[lo]),reactExports.useEffect(()=>()=>{io==null||io(lo),lo.unbindAll(!0)},[lo]),jsxRuntimeExports.jsx(ServicesContext.Provider,{value:lo,children:so})};createInjectionToken("isControlFlowEnabledToken",!1);createInjectionToken("isDoWhileLoopEnabledToken",!1);createInjectionToken("isAnnotationEnabledToken",!1);createInjectionToken("isDesignerUnifiedSubmissionFlowEnabledToken",!1);createInjectionToken("isPipelineComputeDatastoreEnabledToken",!1);createInjectionToken("TransactionalAuthoringEnabled",!1);createInjectionToken("ComponentSettingsEnabled",!1);createInjectionToken("isPipelineOwnerToken",!1);createInjectionToken("isExecutionPhaseEnabledToken",!1);createInjectionToken("isPipelineStreamingEnabledToken",!1);createInjectionToken("useFocusedNodeId",()=>{});createInjectionToken("useIsInSearchResult",()=>!1);createInjectionToken("dismissCompareCheckListPanel",()=>null);const promptFlowGraphReducer=eo=>(to,ro)=>eo(to,ro),graphReducer=()=>getGraphReducer(promptFlowGraphReducer);let Computed$1=class l_ extends Observable$2{constructor(to,ro){super(no=>this.state$.subscribe(no)),this.getSnapshot=()=>this.state$.getValue(),this.state$=new BehaviorSubject(to),this.subscription=ro.subscribe(this.state$)}static fromStates(to,ro){const no=ro(to.map(io=>io.getSnapshot())),oo=combineLatest(to).pipe(map$1(ro));return new l_(no,oo)}destroy(){this.subscription.unsubscribe()}},State$1=class extends BehaviorSubject{constructor(){super(...arguments),this.getState=()=>this.getValue(),this.setState=to=>{this.next(to)},this.updateState=to=>{this.next(to(this.getValue()))},this.getSnapshot=()=>this.getValue()}next(to,ro){!ro&&this.value===to||super.next(to)}copyFrom(to){this.next(to.getSnapshot())}};const X0=class X0{constructor(){this.nodesIndex$=new State$1(List$1()),this.allNodeNames$=Computed$1.fromStates([],()=>List$1()),this.orientation$=new State$1(Orientation$1.Vertical),this.language$=new State$1(void 0)}tweakFlattenNodeOrder(to,ro){const no=this.nodesIndex$.getSnapshot(),oo=no.findIndex(so=>so===to),io=oo+ro;if(oo>=0&&io>=0&&io(this.addListener(to,ro),ro.next(this.get(to)),()=>{this.removeListener(to,ro)}))}notify(to){var ro;(ro=this.listeners.get(to))==null||ro.forEach(no=>{no.next(this.get(to))})}next(to){const ro=this.getSnapshot();super.next(to);const no=new Set;ro.forEach((oo,io)=>{to.has(io)||no.add(io)}),to.forEach((oo,io)=>{ro.has(io)&&Object.is(ro.get(io),oo)||no.add(io)}),no.forEach(oo=>{this.notify(oo)})}addListener(to,ro){let no=this.listeners.get(to);no||(no=new Set,this.listeners.set(to,no)),no.add(ro)}removeListener(to,ro){const no=this.listeners.get(to);no&&(no.delete(ro),no.size===0&&this.listeners.delete(to))}}class ObservableMap extends ObservableCollection{constructor(){super(Map$1())}set(to,ro){return this.updateState(no=>no.set(to,ro)),this}update(to,ro){return this.updateState(no=>no.update(to,ro)),this}delete(to){return this.updateState(ro=>ro.delete(to)),this}deleteAll(to){return this.updateState(ro=>ro.deleteAll(to)),this}clear(){return this.next(Map$1()),this}merge(to){return this.updateState(ro=>ro.merge(to)),this}}class ObservableOrderedMap extends ObservableCollection{constructor(){super(OrderedMap())}set(to,ro){return this.updateState(no=>no.set(to,ro)),this}update(to,ro){return this.updateState(no=>no.update(to,ro)),this}delete(to){return this.updateState(ro=>ro.delete(to)),this}deleteAll(to){return this.updateState(ro=>ro.deleteAll(to)),this}clear(){return this.next(OrderedMap()),this}merge(to){return this.updateState(ro=>ro.merge(to)),this}insertBefore(to,ro,no){return this.updateState(oo=>OrderedMap().withMutations(io=>{for(const[so,ao]of oo.entries())to===so&&io.set(ro,no),io.set(so,ao)})),this.notify(ro),this}insertAfter(to,ro,no){return this.updateState(oo=>OrderedMap().withMutations(io=>{for(const[so,ao]of oo.entries())io.set(so,ao),to===so&&io.set(ro,no)})),this.notify(ro),this}sortByValue(to){return this.updateState(ro=>ro.sort(to)),this}}var _a$5;const Z0=class Z0 extends FlowViewModelShared{constructor(){super(),this.isWorkspaceReady$=new State$1(!1),this.currentNodeId$=new State$1(void 0),this.graphConfig=GraphConfigBuilder.default().build(),this.graphReducer=graphReducer(),this.isReadonly$=new State$1(!1),this.name$=new State$1(""),this.flowType$=new State$1(FlowType.Default),this.owner$=new State$1(void 0),this.isArchived$=new State$1(!1),this.selectedStepId$=new State$1(void 0),this.tools$=new ObservableOrderedMap,this.toolsStatus$=new ObservableOrderedMap,this.batchInputs$=new State$1([]),this.bulkRunDataReference$=new State$1(void 0),this.chatMessages$=new State$1([]),this.nodeVariants$=new ObservableOrderedMap,this.tuningNodeNames$=new State$1([]),this.inputSpec$=new ObservableOrderedMap,this.selectedBulkIndex$=new State$1(void 0),this.nodeRuns$=new ObservableOrderedMap,this.flowRuns$=new State$1([]),this.rootFlowRunMap$=new ObservableMap,this.flowOutputs$=new ObservableOrderedMap,this.connections$=new ObservableOrderedMap,this.promptToolSetting$=new State$1(void 0),this.userInfo$=new State$1(void 0),this.bulkRunDescription$=new State$1(""),this.bulkRunTags$=new State$1([]),this.nodeParameterTypes$=new ObservableMap,this.theme$=new State$1(void 0),this.selectedRuntimeName$=new State$1(void 0),this.connectionList$=new State$1([]),this.connectionSpecList$=new State$1([]),this.connectionDeployments$=new ObservableOrderedMap,this.connectionDeploymentsLoading$=new ObservableOrderedMap,this.runStatus$=new State$1(void 0),this.flowRunType$=new State$1(void 0),this.packageToolsDictionary$=new ObservableMap,this.codeToolsDictionary$=new ObservableMap,this.isToolsJsonReady$=new State$1(!1),this.flowGraphLayout$=new State$1(void 0),this.flowUIHint$=new State$1(void 0),this.isInitialized$=new State$1(!1),this.flowFeatures$=new State$1(new Set),this.loaded=!1,this._allLlmParameterKeys=[],new Set(dataReadonlyMode).add(GraphFeatures.AutoFit);const ro=new Set;ro.add(FlowFeatures.OpenCodeFileInNode),this.flowFeatures$.next(ro),this.canvasState$=new State$1(createGraphState({settings:{graphConfig:this.graphConfig,canvasBoundaryPadding:{top:800,bottom:800}},data:GraphModel.empty()})),this.allNodeNames$=Computed$1.fromStates([this.nodeVariants$],([no])=>List$1(Array.from(no.keys()).filter(oo=>!!oo&&oo!==FLOW_INPUT_NODE_NAME&&oo!==FLOW_OUTPUT_NODE_NAME))),merge$2(this.flowOutputs$,this.batchInputs$,this.inputSpec$,this.selectedRuntimeName$,this.bulkRunTags$,this.nodeVariants$,this.codeToolsDictionary$,this.packageToolsDictionary$).pipe(filter(()=>this.loaded),filter(()=>this.isInitialized$.getSnapshot()),debounceTime(100)).subscribe(()=>{this.notifyFlowChange()}),merge$2(this.flowGraphLayout$,this.orientation$).pipe(debounceTime(100)).subscribe(()=>{this.notifyLayoutChange()}),merge$2(this.flowUIHint$).pipe(debounceTime(100)).subscribe(()=>{this.notifyUIHintChange()}),this.invalidStepInputs$=Computed$1.fromStates([this.nodeVariants$,this.codeToolsDictionary$,this.packageToolsDictionary$,this.connectionList$,this.inputSpec$,this.nodeParameterTypes$],([no,oo,io,so,ao,lo])=>this.validateNodeInputs(no))}attemptToRenameStep(to,ro){if(!checkNodeNameValid(ro))return`step name ${ro} is not valid`;if(this.nodeVariants$.get(ro))return`step with name ${ro} already exists`;if(!this.nodeVariants$.get(to))return`step ${to} not found`;const oo=(so,ao,lo)=>{const uo={...so};return Object.keys(uo).forEach(co=>{const fo=uo[co],po=getRefValueFromRaw(fo),[ho]=(po==null?void 0:po.split("."))??[];ho===ao&&(uo[co]=fo.replace(`${ao}`,`${lo}`))}),uo},io=(so,ao,lo)=>{if(!so)return;const uo={};return Object.entries(so).forEach(([co,fo])=>{var po,ho,mo;uo[co]={...fo,node:{...fo.node,name:((po=fo.node)==null?void 0:po.name)===ao?lo:(ho=fo.node)==null?void 0:ho.name,inputs:oo(((mo=fo.node)==null?void 0:mo.inputs)??{},ao,lo)}}}),uo};reactDomExports.unstable_batchedUpdates(()=>{this.nodeVariants$.updateState(so=>so.mapEntries(([ao,lo])=>{const uo={...lo,variants:io(lo.variants,to,ro)};return[ao===to?ro:ao,uo]})),this.flowGraphLayout$.updateState(so=>({...so,nodeLayouts:renameKeyInObject((so==null?void 0:so.nodeLayouts)??{},to,ro)})),this.flowUIHint$.updateState(so=>({...so,nodes:renameKeyInObject((so==null?void 0:so.nodes)??{},to,ro)})),this.currentNodeId$.getSnapshot()===to&&this.currentNodeId$.next(ro),this.selectedStepId$.getSnapshot()===to&&this.selectedStepId$.next(ro),this.nodeRuns$.getSnapshot().forEach((so,ao)=>{if(so.node===to){const[,lo,uo,co]=ao.split("#"),fo=parseInt(lo,10);this.nodeRuns$.set(this.getNodeRunKey(ro,isNaN(fo)?0:fo,uo,co),{...so,node:ro}),this.nodeRuns$.delete(ao)}})})}acceptFlowEdit(to,ro){to!==this.viewType&&this.loadFlow(ro)}loadFlow(to){this.loaded=!1;try{reactDomExports.unstable_batchedUpdates(()=>{this.baseEntity=to,this.owner$.next(to.owner),this.isArchived$.next(to.isArchived??!1),this.loadFlowDto(to),to.flowRunResult&&this.loadStatus(to.flowRunResult)}),this.loaded=!0}catch(ro){throw this.loaded=!0,ro}}loadCodeTool(to,ro){this.codeToolsDictionary$.set(to,ro)}loadPackageTool(to,ro){this.packageToolsDictionary$.set(to,ro)}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(to){var io;this.clearStatus();let ro=0;const no=[],oo=new Map;if((io=to.flow_runs)!=null&&io.length){for(const so of to.flow_runs)so.index===null?oo.set(so.run_id,so):(ro=so.index,no.push(so));no.sort((so,ao)=>{var lo;return so.root_run_id===ao.root_run_id?(so.index??0)-(ao.index??0):so.variant_id&&ao.variant_id?so.variant_id.localeCompare(ao.variant_id):((lo=so.root_run_id)==null?void 0:lo.localeCompare((ao==null?void 0:ao.root_run_id)??""))??0}),this.flowRuns$.next(no),this.rootFlowRunMap$.next(Map$1(oo))}to.flowRunType&&this.flowRunType$.next(to.flowRunType),to.runStatus&&this.runStatus$.next(to.runStatus),this.loadNodesStatus(to.node_runs||[]),this.selectedBulkIndex$.next(ro)}loadNodesStatus(to){const ro=this.tuningNodeNames$.getSnapshot()[0];to.forEach(no=>{const oo=no.node===ro,io=this.getDefaultVariantId(no.node),so=no.variant_id||io,ao=oo?so:io,lo=this.getNodeRunKey(no.node,no.index??0,ao,so);this.nodeRuns$.set(lo,no)})}loadSingleNodeRunStatus(to,ro,no){this.resetNodesStatus(to,ro),no.forEach(oo=>{const io=this.getDefaultVariantId(oo.node),so=oo.variant_id||io,ao=oo.variant_id||io,lo=this.getNodeRunKey(oo.node,oo.index??0,ao,so);this.nodeRuns$.set(lo,oo)})}resetNodesStatus(to,ro){this.nodeRuns$.updateState(no=>no.filter(oo=>{if(oo.node!==to)return!0;const io=this.getDefaultVariantId(oo.node);return(oo.variant_id||io)!==ro}))}clearStatus(){this.selectedBulkIndex$.next(void 0),this.nodeRuns$.clear(),this.flowRuns$.next([]),this.rootFlowRunMap$.clear()}getDefaultVariantId(to){var ro;return((ro=this.nodeVariants$.get(to))==null?void 0:ro.defaultVariantId)||BASELINE_VARIANT_ID}setStepInput(to,ro,no,oo){const io=this.getNode(to,oo);if(!(io!=null&&io.name))return;const so={...io,inputs:{...io.inputs,[ro]:no}};this.setNode(to,oo,so)}removeStepInputs(to,ro,no){const oo=this.getNode(to,no);if(!(oo!=null&&oo.name))return;const io={...oo.inputs};ro.forEach(ao=>{delete io[ao]});const so={...oo,inputs:io};this.setNode(to,no,so)}renameStepInput(to,ro,no){const oo=this.getNode(to,BASELINE_VARIANT_ID);if(!(oo!=null&&oo.name))return;const io={...oo,inputs:renameKeyInObject(oo.inputs??{},ro,no)};this.setNode(to,BASELINE_VARIANT_ID,io)}setStepActivate(to,ro,no){const oo=this.getNode(to,ro);if(!(oo!=null&&oo.name))return;const io={...oo,activate:no};this.setNode(to,ro,io)}setStepKeyValue(to,ro,no,oo){const io=this.getNode(to,oo);if(!(io!=null&&io.name))return;const so={...io,[ro]:no};this.setNode(to,oo,so)}setStepSourcePath(to,ro,no){const oo=this.getNode(to,no);if(!(oo!=null&&oo.name))return;const io={...oo,source:{...oo.source,path:ro}};this.setNode(to,no,io)}setBatchInput(to,ro,no){const oo=this.batchInputs$.getSnapshot();if(!oo[to])return;const io=[...oo];io[to]={...io[to],[ro]:no},this.batchInputs$.setState(io)}setBulkRunTag(to,ro,no){const oo=[...this.bulkRunTags$.getSnapshot()];if(!oo[to])return;const io={};io[ro]=no,oo[to]=io,this.bulkRunTags$.next(oo)}deleteBulkRunTag(to){const ro=[...this.bulkRunTags$.getSnapshot()];ro.splice(to,1),this.bulkRunTags$.next(ro)}addBulkRunTagRow(){const to=this.bulkRunTags$.getSnapshot(),ro={"":""};this.bulkRunTags$.next([...to,ro])}getNodeRunKey(to,ro,no=BASELINE_VARIANT_ID,oo=BASELINE_VARIANT_ID){return`${to}#${ro}#${no}#${oo}`}dispatch(to){var io;let ro="";switch(to.type){case GraphCanvasEvent.Click:this.currentNodeId$.next(void 0);break;case GraphNodeEvent.Click:this.currentNodeId$.next(to.node.id,!0);break;case GraphNodeEvent.DragEnd:{ro=to.node.name??"";break}}const no=this.canvasState$.getSnapshot(),oo=this.graphReducer(no,to);if(this.canvasState$.next(oo),ro){const so=oo.data.present.nodes.find(uo=>uo.name===ro),ao=this.flowGraphLayout$.getSnapshot(),lo={...ao,nodeLayouts:{...ao==null?void 0:ao.nodeLayouts,[ro]:{...(io=ao==null?void 0:ao.nodeLayouts)==null?void 0:io[ro],x:so==null?void 0:so.x,y:so==null?void 0:so.y}}};this.flowGraphLayout$.next(lo)}}setGraphConfig(to){this.graphConfig=to;const ro=this.canvasState$.getSnapshot();this.canvasState$.next({...ro,settings:{...ro.settings,graphConfig:to}})}toFlowGraph(){const to=this.nodeVariants$.getSnapshot(),ro=getDefaultNodeList(List$1.of(...to.keys()),to);return{inputs:this.inputSpec$.getSnapshot().toJSON(),outputs:this.flowOutputs$.getSnapshot().toJSON(),nodes:ro,tools:void 0}}toFlowGraphSnapshot(to){const ro=lodashExports.mapValues(this.inputSpec$.getSnapshot().toJSON(),lo=>{lo.default!==void 0&&(lo.default=convertValByType(lo.default,lo.type));const{name:uo,id:co,...fo}=lo;return fo}),no=lodashExports.mapValues(this.flowOutputs$.getSnapshot().toJSON(),lo=>{const{name:uo,id:co,...fo}=lo;return fo}),io=getNodesThatMoreThanOneVariant(to).map(lo=>lo.nodeName),so=getFlowSnapshotNodeList(List$1.of(...Object.keys(to)),to,io),ao=getVariantNodes(to);return{inputs:ro,outputs:no,nodes:so,node_variants:ao}}toNodeVariants(){const to=this.nodeVariants$.getSnapshot().toJSON(),ro={};return Object.keys(to).forEach(no=>{const oo=to[no],io={};Object.keys(oo.variants??{}).forEach(so=>{const ao=(oo.variants??{})[so];io[so]={...ao,node:ao.node?this.pruneNodeInputs(ao.node):void 0}}),ro[no]={...oo,variants:io}}),ro}toFlowRunSettings(){var to,ro;return{tuningNodeNames:this.tuningNodeNames$.getSnapshot(),variants:void 0,runtimeName:(to=this.selectedRuntimeName$)==null?void 0:to.getSnapshot(),description:this.bulkRunDescription$.getSnapshot(),tags:Object.assign({},...this.bulkRunTags$.getSnapshot()),...this.bulkRunDataReference$.getSnapshot()!==void 0?{batchDataInput:{dataUri:(ro=this.bulkRunDataReference$.getSnapshot())==null?void 0:ro.id}}:{batch_inputs:this.batchInputs$.getSnapshot()}}}toJSON(){const to=this.toNodeVariants();return{...this.baseEntity,flow:{flowGraph:this.toFlowGraphSnapshot(to)},flowName:this.name$.getSnapshot(),flowRunSettings:this.toFlowRunSettings()}}toFlowGraphLayout(){const to=this.flowGraphLayout$.getSnapshot()??{},ro=Array.from(this.nodeVariants$.getSnapshot().keys()),no={...to.nodeLayouts};return Object.keys(no).forEach(oo=>{no[oo]={...no[oo],index:ro.indexOf(oo)}}),{...to,nodeLayouts:no,orientation:this.orientation$.getSnapshot()}}toFlowUIHint(){return this.flowUIHint$.getSnapshot()??{nodes:{}}}updateToolCode(to,ro){const no=this.codeToolsDictionary$.get(to);no&&this.codeToolsDictionary$.set(to,{...no,code:ro})}updateToolStatus(to,ro){const no=this.toolsStatus$.get(to);this.toolsStatus$.set(to,{...no,...ro})}updateFlowInput(to,ro){const no=this.batchInputs$.getSnapshot(),oo=no==null?void 0:no[0];let io=ro;try{const so=JSON.parse(ro);io=JSON.stringify(so)}catch{io=ro}this.batchInputs$.next([{...oo,[to]:io},...no.slice(1)])}addNewNode(to,ro){if(!to.name)return;const no=to,oo={defaultVariantId:BASELINE_VARIANT_ID,variants:{[BASELINE_VARIANT_ID]:{node:no}}};ro?this.nodeVariants$.insertBefore(ro,to.name,oo):this.nodeVariants$.set(to.name,oo)}patchEditData(to){var ro,no,oo,io;switch(to.type){case"chatInput":{if(this.flowType$.getSnapshot()!==FlowType.Chat)return;const so=this.batchInputs$.getSnapshot(),ao=((ro=this.getChatInputDefinition())==null?void 0:ro.name)??DEFAULT_CHAT_INPUT_NAME;this.batchInputs$.next([{...so[0],[ao]:to.value}]);break}case"chatHistory":{if(this.flowType$.getSnapshot()!==FlowType.Chat)return;const so=this.batchInputs$.getSnapshot(),ao=((no=this.getChatHistoryDefinition())==null?void 0:no.name)??DEFAULT_CHAT_HISTORY_NAME,lo=((oo=this.getChatInputDefinition())==null?void 0:oo.name)??DEFAULT_CHAT_INPUT_NAME,uo=((io=this.getChatOutputDefinition())==null?void 0:io.name)??DEFAULT_CHAT_OUTPUT_NAME;this.batchInputs$.next([{...so[0],[ao]:[...so[0][ao],{inputs:{[lo]:to.value.chatInput},outputs:{[uo]:to.value.chatOutput}}].slice(-10)}]);break}case"flowGraph":{try{this.loaded=!1,reactDomExports.unstable_batchedUpdates(()=>{this.loadFlorGraph(to.value)})}finally{this.loaded=!0}break}default:{const so=to;throw new Error(`Didn't expect to get here: ${so}`)}}}getChatInputDefinition(){return this.inputSpec$.getSnapshot().find(isChatInput)}getChatHistoryDefinition(){const to=this.flowType$.getSnapshot();return this.inputSpec$.getSnapshot().find(ro=>isChatHistory(to,ro))}getChatOutputDefinition(){return this.flowOutputs$.getSnapshot().find(isChatOutput)}clearChatMessages(){this.chatMessages$.next([]),this.syncChatMessagesToInputsValues([])}getProviderByConnection(to){var so;if(!to)return;const ro=this.connectionList$.getSnapshot(),no=this.promptToolSetting$.getSnapshot(),oo=ro.find(ao=>ao.connectionName===to);if(!oo)return;const io=(so=no==null?void 0:no.providers)==null?void 0:so.find(ao=>{var lo;return oo.connectionType&&((lo=ao.connection_type)==null?void 0:lo.includes(oo.connectionType))});if(io)return io.provider}addFlowInput(to,ro){this.inputSpec$.set(to,{...ro,name:to,id:(ro==null?void 0:ro.id)??getRandomInputDefinitionId()})}addFlowOutput(to,ro){this.flowOutputs$.set(to,{...ro,name:to,id:(ro==null?void 0:ro.id)??getRandomOutputDefinitionId()})}loadFlorGraph(to){var io;const ro=(to==null?void 0:to.nodes)||[],no=(to==null?void 0:to.outputs)||{},oo=(to==null?void 0:to.inputs)||{};this.nodeVariants$.clear(),ro.forEach(so=>{so.name&&(this.nodeVariants$.get(so.name)||this.nodeVariants$.set(so.name,{defaultVariantId:BASELINE_VARIANT_ID,variants:{[BASELINE_VARIANT_ID]:{node:so}}}))}),(io=Object.entries((to==null?void 0:to.node_variants)??{}))==null||io.forEach(([so,ao])=>{const lo={...ao.variants};Object.entries(lo).forEach(([uo,co])=>{co.node&&(co.node.name=so)}),this.nodeVariants$.set(so,{defaultVariantId:ao.default_variant_id??BASELINE_VARIANT_ID,variants:lo})}),this.flowOutputs$.clear(),Object.keys(no).forEach(so=>{const ao=no[so];ao&&this.addFlowOutput(so,ao)}),this.inputSpec$.clear(),Object.keys(oo).forEach(so=>{const ao=oo[so];ao&&this.addFlowInput(so,ao)})}loadFlowDto(to){var ro,no,oo,io,so,ao,lo,uo,co,fo,po,ho,mo,vo;if(this.name$.next(to.flowName??""),this.flowType$.next(to.flowType??FlowType.Default),this.loadFlorGraph((ro=to.flow)==null?void 0:ro.flowGraph),(no=to.flow)!=null&&no.nodeVariants&&((io=Object.entries(((oo=to.flow)==null?void 0:oo.nodeVariants)??{}))==null||io.forEach(([bo,xo])=>{this.nodeVariants$.set(bo,{...xo,defaultVariantId:xo.defaultVariantId??BASELINE_VARIANT_ID})})),(ao=(so=to.flow)==null?void 0:so.flowGraphLayout)!=null&&ao.nodeLayouts){const bo=(lo=to.flow)==null?void 0:lo.flowGraphLayout;this.flowGraphLayout$.next(bo),bo.orientation&&this.orientation$.next(bo.orientation)}if(this.selectedRuntimeName$.setState(((uo=to.flowRunSettings)==null?void 0:uo.runtimeName)??""),this.batchInputs$.setState(((co=to.flowRunSettings)==null?void 0:co.batch_inputs)??[{}]),this.tuningNodeNames$.setState(((fo=to.flowRunSettings)==null?void 0:fo.tuningNodeNames)??[]),this.bulkRunDescription$.next(to.description??""),this.bulkRunTags$.next([]),to.tags){const bo=[];Object.keys(to.tags).forEach(xo=>{var _o;bo.push({[xo]:((_o=to==null?void 0:to.tags)==null?void 0:_o[xo])??""})}),this.bulkRunTags$.next(bo)}this.initNodeParameterTypes((po=to.flow)==null?void 0:po.flowGraph),to.flowType===FlowType.Chat&&(this.initChatFlow(to),this.initChatMessages(((ho=to.flowRunSettings)==null?void 0:ho.batch_inputs)??[{}])),this.language$.next((vo=(mo=to.flow)==null?void 0:mo.flowGraph)==null?void 0:vo.language)}initNodeParameterTypes(to){if(!to)return;const ro=this.nodeVariants$.getSnapshot().toJSON();let no=Map$1(new Map);Object.keys(ro).forEach(oo=>{const io=ro[oo];Object.keys(io.variants??{}).forEach(so=>{var lo;const ao=(io.variants??{})[so];if(ao.node){const uo={inputs:{},activate:{is:void 0}},co=this.getToolOfNode(ao.node);if((ao.node.type??(co==null?void 0:co.type))===ToolType.python){const fo=Object.keys((co==null?void 0:co.inputs)??{});Object.keys(ao.node.inputs??{}).filter(mo=>!fo.includes(mo)).forEach(mo=>{var vo,bo;uo.inputs[mo]=inferTypeByVal((bo=(vo=ao.node)==null?void 0:vo.inputs)==null?void 0:bo[mo])??ValueType.string})}uo.activate.is=inferTypeByVal((lo=ao.node.activate)==null?void 0:lo.is)??ValueType.string,no=no.set(`${oo}#${so}`,uo)}})}),this.nodeParameterTypes$.next(no)}initChatFlow(to){if(to.flowType!==FlowType.Chat)return;this.inputSpec$.getSnapshot().some(io=>isChatHistory(to.flowType,io))||(this.addFlowInput(DEFAULT_CHAT_HISTORY_NAME,{name:DEFAULT_CHAT_HISTORY_NAME,type:ValueType.list}),this.batchInputs$.updateState(io=>[{...io[0],[DEFAULT_CHAT_HISTORY_NAME]:[]},...io.slice(1)])),this.inputSpec$.getSnapshot().some(io=>isChatInput(io))||this.addFlowInput(DEFAULT_CHAT_INPUT_NAME,{name:DEFAULT_CHAT_INPUT_NAME,type:ValueType.string,is_chat_input:!0}),this.flowOutputs$.getSnapshot().some(io=>isChatOutput(io))||this.addFlowOutput(DEFAULT_CHAT_OUTPUT_NAME,{name:DEFAULT_CHAT_OUTPUT_NAME,type:ValueType.string,is_chat_output:!0})}initChatMessages(to){var ao,lo,uo;const ro=((ao=this.getChatHistoryDefinition())==null?void 0:ao.name)??DEFAULT_CHAT_HISTORY_NAME,no=to[0][ro];if(!Array.isArray(no))return;const oo=((lo=this.getChatInputDefinition())==null?void 0:lo.name)??DEFAULT_CHAT_INPUT_NAME,io=((uo=this.getChatOutputDefinition())==null?void 0:uo.name)??DEFAULT_CHAT_OUTPUT_NAME,so=parseChatMessages(oo,io,no);this.chatMessages$.next(so),this.syncChatMessagesToInputsValues(so)}syncChatMessagesToInputsValues(to){var no,oo,io;if(this.batchInputs$.getSnapshot().length<=1){const so=((no=this.getChatInputDefinition())==null?void 0:no.name)??DEFAULT_CHAT_INPUT_NAME,ao=((oo=this.getChatOutputDefinition())==null?void 0:oo.name)??DEFAULT_CHAT_OUTPUT_NAME,lo=((io=this.getChatHistoryDefinition())==null?void 0:io.name)??DEFAULT_CHAT_HISTORY_NAME,uo=[];for(let co=0;co[{...co[0],[lo]:uo}])}}getNode(to,ro){var no,oo,io;return(io=(oo=(no=this.nodeVariants$.get(to))==null?void 0:no.variants)==null?void 0:oo[ro])==null?void 0:io.node}setNode(to,ro,no){var io;const oo=this.nodeVariants$.get(to);this.nodeVariants$.set(to,{defaultVariantId:(oo==null?void 0:oo.defaultVariantId)??BASELINE_VARIANT_ID,variants:{...oo==null?void 0:oo.variants,[ro]:{...(io=oo==null?void 0:oo.variants)==null?void 0:io[ro],node:no}}})}getAllLlmParameterKeys(){var to;if(this._allLlmParameterKeys.length===0){const ro=this.promptToolSetting$.getSnapshot();if(!ro)return[];const no=(to=ro.providers)==null?void 0:to.flatMap(io=>{var so;return(so=io.apis)==null?void 0:so.map(ao=>ao.parameters)}),oo=new Set(no==null?void 0:no.flatMap(io=>Object.keys(io??{})));this._allLlmParameterKeys=[...oo.values()]}return this._allLlmParameterKeys}pruneNodeInputs(to){var fo,po,ho,mo;const ro=to?this.getToolOfNode(to):void 0,no=this.promptToolSetting$.getSnapshot(),oo=this.connectionList$.getSnapshot(),io=this.connectionSpecList$.getSnapshot();if(!ro||!no)return to;if((to.type??ro.type)===ToolType.python&&ro.enable_kwargs){const vo={};return Object.keys(to.inputs??{}).forEach(bo=>{var xo,_o,So,Eo;if(((xo=to.inputs)==null?void 0:xo[bo])!==void 0){const ko=(_o=ro.inputs)==null?void 0:_o[bo];vo[bo]=convertValByType((So=to.inputs)==null?void 0:So[bo],(Eo=ko==null?void 0:ko.type)==null?void 0:Eo[0])}}),{...to,inputs:vo}}const so=this.getProviderByConnection(to.connection??"");if((to.type??ro.type)===ToolType.llm&&(!so||!to.api))return to;const ao=(to.type??ro.type)===ToolType.llm,lo=ao?(mo=(ho=(po=(fo=no==null?void 0:no.providers)==null?void 0:fo.find(vo=>vo.provider===so))==null?void 0:po.apis)==null?void 0:ho.find(vo=>vo.api===to.api))==null?void 0:mo.parameters:void 0,uo=new Set(filterNodeInputsKeys(ro.inputs,to.inputs,oo,io).concat(ao?this.getAllLlmParameterKeys():[])),co={};return Object.keys(to.inputs??{}).forEach(vo=>{var bo,xo,_o,So;if(uo.has(vo)&&((bo=to.inputs)==null?void 0:bo[vo])!==void 0){const Eo=((xo=ro.inputs)==null?void 0:xo[vo])??(lo==null?void 0:lo[vo]);co[vo]=convertValByType((_o=to.inputs)==null?void 0:_o[vo],(So=Eo==null?void 0:Eo.type)==null?void 0:So[0])}}),{...to,inputs:co}}getToolOfNode(to){var oo,io;const ro=this.codeToolsDictionary$.get(((oo=to.source)==null?void 0:oo.path)??""),no=this.packageToolsDictionary$.get(((io=to.source)==null?void 0:io.tool)??"");return resolveTool(to,ro,no,so=>this.codeToolsDictionary$.get(so))}validateNodeInputs(to){const ro=new Map,no=this.getNodesInCycle(to),oo=this.connectionList$.getSnapshot(),io=this.connectionSpecList$.getSnapshot(),so=[];return this.inputSpec$.getSnapshot().forEach((lo,uo)=>{const co=lo.default,fo=lo.type;if(co!==void 0&&co!==""&&!isTypeValid(co,fo)){const po={section:"inputs",parameterName:uo,type:ValidationErrorType.InputInvalidType,message:"Input type is not valid"};so.push(po)}}),so.length>0&&ro.set(`${FLOW_INPUT_NODE_NAME}#`,so),Array.from(to.values()).forEach(lo=>{const{variants:uo={}}=lo;Object.keys(uo).forEach(co=>{var xo,_o,So;const fo=uo[co],{node:po}=fo,ho=po?this.getToolOfNode(po):void 0,mo=filterNodeInputsKeys(ho==null?void 0:ho.inputs,po==null?void 0:po.inputs,oo,io);if(!po||!po.name)return;if(!ho){const Eo=po;ro.set(`${po.name}#${co}`,[{type:ValidationErrorType.MissingTool,message:`Can't find tool ${((xo=Eo==null?void 0:Eo.source)==null?void 0:xo.tool)??((_o=Eo==null?void 0:Eo.source)==null?void 0:_o.path)}`}]);return}const vo=[],bo=this.validateNodeConfig(po,ho);if(bo&&vo.push(bo),mo.forEach(Eo=>{const ko=this.validateNodeInputRequired(ho,po,Eo);ko&&vo.push(ko)}),po.inputs&&vo.push(...Object.keys(po.inputs).map(Eo=>{if(!mo.includes(Eo)&&!ho.enable_kwargs)return;const{isReference:ko,error:wo}=this.validateNodeInputReference(po,"inputs",Eo,to,no);if(wo)return wo;if(!ko)return this.validateNodeInputType(ho,po,co,Eo)}).filter(Boolean)),po.activate){const{error:Eo}=this.validateNodeInputReference(po,"activate","when",to,no);Eo&&vo.push(Eo);const ko=po.activate.is,wo=(So=this.nodeParameterTypes$.get(`${po.name}#${co}`))==null?void 0:So.activate.is;if(!isTypeValid(ko,wo)){const Co={section:"activate",parameterName:"is",type:ValidationErrorType.InputInvalidType,message:"Input type is not valid"};vo.push(Co)}}ro.set(`${po.name}#${co}`,vo)})}),ro}getNodesInCycle(to){const ro=getDefaultNodeList(List$1.of(...to.keys()),to),no=new Map;ro.forEach(uo=>{var fo;const co=(po,ho,mo)=>{const vo=getRefValueFromRaw(mo),[bo]=(vo==null?void 0:vo.split("."))??[];!bo||isFlowInput(bo)||no.set(`${uo.name}.${po}.${ho}`,bo)};Object.keys((uo==null?void 0:uo.inputs)??{}).forEach(po=>{var mo;const ho=(mo=uo.inputs)==null?void 0:mo[po];co("inputs",po,ho)}),co("activate","when",(fo=uo.activate)==null?void 0:fo.when)});const oo=new Map,io=new Map,so=new Map,ao=new Map;return ro.forEach(uo=>{const co=uo.name;co&&(oo.set(co,0),io.set(co,0),so.set(co,[]),ao.set(co,[]))}),ro.forEach(uo=>{const co=uo.name;if(!co)return;const fo=(po,ho)=>{const mo=no.get(`${co}.${po}.${ho}`);mo&&(oo.set(co,(oo.get(co)??0)+1),io.set(mo,(io.get(mo)??0)+1),so.set(mo,[...so.get(mo)??[],co]),ao.set(co,[...ao.get(co)??[],mo]))};Object.keys((uo==null?void 0:uo.inputs)??{}).forEach(po=>{fo("inputs",po)}),fo("activate","when")}),getCycle(oo,so,io,ao)}validateNodeConfig(to,ro){var oo,io,so,ao,lo,uo,co;const no=this.promptToolSetting$.getSnapshot();if((to.type??(ro==null?void 0:ro.type))===ToolType.llm){if(!to.connection)return{parameterName:"connection",type:ValidationErrorType.NodeConfigInvalid,message:"connection is required"};if(!this.connectionList$.getSnapshot().some(vo=>vo.connectionName===to.connection))return{parameterName:"connection",type:ValidationErrorType.NodeConfigInvalid,message:"connection is not valid"};if(!to.api)return{parameterName:"api",type:ValidationErrorType.NodeConfigInvalid,message:"api is required"};const fo=this.getProviderByConnection(to.connection),po=(ao=(so=(io=(oo=no==null?void 0:no.providers)==null?void 0:oo.find(vo=>vo.provider===fo))==null?void 0:io.apis)==null?void 0:so.find(vo=>vo.api===to.api))==null?void 0:ao.parameters;if((po==null?void 0:po.model)&&!((lo=to.inputs)!=null&&lo.model))return{parameterName:"model",type:ValidationErrorType.NodeConfigInvalid,message:"model is required"};if((po==null?void 0:po.deployment_name)&&!((uo=to.inputs)!=null&&uo.deployment_name))return{parameterName:"deployment_name",type:ValidationErrorType.NodeConfigInvalid,message:"deployment_name is required"}}if(ro&&((co=ro==null?void 0:ro.connection_type)!=null&&co.length)&&!to.connection)return{parameterName:"connection",type:ValidationErrorType.NodeConfigInvalid,message:"connection is required"}}validateNodeInputRequired(to,ro,no){var io,so,ao;if(((so=(io=to.inputs)==null?void 0:io[no])==null?void 0:so.default)!==void 0)return;const oo=(ao=ro.inputs)==null?void 0:ao[no];if(oo===void 0||oo==="")return{section:"inputs",parameterName:no,type:ValidationErrorType.InputEmpty,message:"Input cannot be empty"}}validateNodeInputReference(to,ro,no,oo,io){var fo;const so=(fo=to==null?void 0:to[ro])==null?void 0:fo[no],ao=getRefValueFromRaw(so),[lo,uo]=(ao==null?void 0:ao.split("."))??[];return lo?isFlowInput(lo)?this.inputSpec$.get(uo)?{isReference:!0,error:void 0}:{isReference:!0,error:{section:ro,parameterName:no,type:ValidationErrorType.InputDependencyNotFound,message:`${ao} is not a valid flow input`}}:lo===to.name?{isReference:!0,error:{section:ro,parameterName:no,type:ValidationErrorType.InputSelfReference,message:"Input cannot reference itself"}}:oo.get(lo)?to.name&&io.has(to.name)&&io.has(lo)?{isReference:!0,error:{section:ro,parameterName:no,type:ValidationErrorType.CircularDependency,message:"Input cannot reference a node in a cycle"}}:{isReference:!0,error:void 0}:{isReference:!0,error:{section:ro,parameterName:no,type:ValidationErrorType.InputDependencyNotFound,message:`${lo} is not a valid node name`}}:{isReference:!1,error:void 0}}validateNodeInputType(to,ro,no,oo){var lo,uo,co,fo,po;const io=(lo=ro.inputs)==null?void 0:lo[oo];if(!io)return;const so=(uo=to==null?void 0:to.inputs)==null?void 0:uo[oo],ao=((co=so==null?void 0:so.type)==null?void 0:co[0])??((po=(fo=this.nodeParameterTypes$.get(`${ro.name}#${no}`))==null?void 0:fo.inputs)==null?void 0:po[oo]);if(!(!io||!to||!ao)&&!isTypeValid(io,ao))return{section:"inputs",parameterName:oo,type:ValidationErrorType.InputInvalidType,message:"Input type is not valid"}}};_a$5=SINGLETON,Z0[_a$5]=!0;let BaseFlowViewModel=Z0;class DefaultFlowViewModel extends BaseFlowViewModel{constructor(){super(...arguments),this.viewType="default"}fetchConnectionList(){}fetchPromptToolSetting(){}openRunListView(){}deployFlow(){}setSelectedStepId(){}notifyFlowChange(){}notifyLayoutChange(){}notifyUIHintChange(){}}createInjectionToken("FlowViewModel",new DefaultFlowViewModel);function useInjected(...eo){const to=reactExports.useContext(ServicesContext);return reactExports.useMemo(()=>eo.map(ro=>{try{return to.resolve(ro)}catch(no){throw[ro,no]}}),[to].concat(eo))}var shim$1={exports:{}},useSyncExternalStoreShim_production_min={};/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var e$3=reactExports;function h$6(eo,to){return eo===to&&(eo!==0||1/eo===1/to)||eo!==eo&&to!==to}var k$5=typeof Object.is=="function"?Object.is:h$6,l$6=e$3.useState,m$7=e$3.useEffect,n$4=e$3.useLayoutEffect,p$6=e$3.useDebugValue;function q$2(eo,to){var ro=to(),no=l$6({inst:{value:ro,getSnapshot:to}}),oo=no[0].inst,io=no[1];return n$4(function(){oo.value=ro,oo.getSnapshot=to,r$4(oo)&&io({inst:oo})},[eo,ro,to]),m$7(function(){return r$4(oo)&&io({inst:oo}),eo(function(){r$4(oo)&&io({inst:oo})})},[eo]),p$6(ro),ro}function r$4(eo){var to=eo.getSnapshot;eo=eo.value;try{var ro=to();return!k$5(eo,ro)}catch{return!0}}function t$5(eo,to){return to()}var u$6=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?t$5:q$2;useSyncExternalStoreShim_production_min.useSyncExternalStore=e$3.useSyncExternalStore!==void 0?e$3.useSyncExternalStore:u$6;shim$1.exports=useSyncExternalStoreShim_production_min;var shimExports=shim$1.exports;const useSubscribe=eo=>reactExports.useCallback(to=>{const ro=eo.subscribe(to);return()=>{ro.unsubscribe()}},[eo]);function useState(eo){const to=useSubscribe(eo),{getSnapshot:ro}=eo;return shimExports.useSyncExternalStore(to,ro)}function useSetState(eo){return reactExports.useCallback(to=>{typeof to!="function"?eo.setState(to):eo.setState(to(eo.getSnapshot()))},[eo])}of(void 0);var _a$4;const Q0=class Q0{constructor(to,ro){this.isChatBoxBottomTipVisible$=new State$1(to.isChatBoxBottomTipVisible),this.simpleMode$=new State$1(to.simpleMode),this.freezeLayout$=new State$1(to.freezeLayout),this.viewMyOnlyFlow$=new State$1(to.viewMyOnlyFlow),this.viewOnlyMyRuns$=new State$1(to.viewOnlyMyRuns),this.viewArchived$=new State$1(to.viewArchived),this.wrapTextOn$=new State$1(to.wrapTextOn),this.diffModeOn$=new State$1(to.diffModeOn),this.isRightTopPaneCollapsed$=new State$1(to.isRightTopPaneCollapsed),this.isRightBottomPaneCollapsed$=new State$1(to.isRightBottomPaneCollapsed),this.leftPaneWidth$=new State$1(to.leftPaneWidth),this.rightTopPaneHeight$=new State$1(to.rightTopPaneHeight);const no=(oo,io)=>{io.subscribe(so=>{ro({...this.getSettingsSnapshot(),[oo]:so})})};no("isChatBoxBottomTipVisible",this.isChatBoxBottomTipVisible$),no("simpleMode",this.simpleMode$),no("freezeLayout",this.freezeLayout$),no("viewMyOnlyFlow",this.viewMyOnlyFlow$),no("viewOnlyMyRuns",this.viewOnlyMyRuns$),no("viewArchived",this.viewArchived$),no("wrapTextOn",this.wrapTextOn$),no("diffModeOn",this.diffModeOn$),no("isRightTopPaneCollapsed",this.isRightTopPaneCollapsed$),no("isRightBottomPaneCollapsed",this.isRightBottomPaneCollapsed$),no("leftPaneWidth",this.leftPaneWidth$),no("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()}}};_a$4=SINGLETON,Q0[_a$4]=!0;let BaseFlowSettingViewModel=Q0;class DefaultFlowSettingViewModel extends BaseFlowSettingViewModel{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},()=>{})}}createInjectionToken("FlowSettingViewModel",new DefaultFlowSettingViewModel);makeStyles({root:{display:"flex",flexWrap:"nowrap"},item:{display:"inline-flex",alignItems:"center",marginRight:"8px",lineHeight:"14px"}});mergeStyleSets({line:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}});const isInVscodeWebview=typeof acquireVsCodeApi<"u";isInVscodeWebview&&acquireVsCodeApi();var _a$3;const J0=class J0{constructor(){this.extensionConfigurations$=new State$1(void 0),this.isPackageInstalled$=new State$1(void 0),this.sdkVersion$=new State$1(void 0),this.sdkFeatureList$=new State$1([]),this.uxFeatureList$=new State$1([])}};_a$3=SINGLETON,J0[_a$3]=!0;let VSCodeExtensionViewModel=J0;createInjectionToken("VSCodeFlowViewModel",new VSCodeExtensionViewModel);React.createContext({variantName:BASELINE_VARIANT_ID,haveMultipleVariants:!1,showAllVariantsOutputs:!1,isDisableEditing:!1});function createCommonjsModule(eo,to,ro){return ro={path:to,exports:{},require:function(no,oo){return commonjsRequire(no,oo??ro.path)}},eo(ro,ro.exports),ro.exports}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var classnames$1=createCommonjsModule(function(eo){/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/(function(){var to={}.hasOwnProperty;function ro(){for(var no=[],oo=0;oo1&&arguments[1]!==void 0?arguments[1]:{},ro=[];return React.Children.forEach(eo,function(no){no==null&&!to.keepEmpty||(Array.isArray(no)?ro=ro.concat(toArray(no)):reactIs.isFragment(no)&&no.props?ro=ro.concat(toArray(no.props.children,to)):ro.push(no))}),ro}function _defineProperty$3(eo,to,ro){return to in eo?Object.defineProperty(eo,to,{value:ro,enumerable:!0,configurable:!0,writable:!0}):eo[to]=ro,eo}function ownKeys$2(eo,to){var ro=Object.keys(eo);if(Object.getOwnPropertySymbols){var no=Object.getOwnPropertySymbols(eo);to&&(no=no.filter(function(oo){return Object.getOwnPropertyDescriptor(eo,oo).enumerable})),ro.push.apply(ro,no)}return ro}function _objectSpread2$2(eo){for(var to=1;to0},eo.prototype.connect_=function(){!isBrowser$1||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mutationObserverSupported?(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)},eo.prototype.disconnect_=function(){!isBrowser$1||!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)},eo.prototype.onTransitionEnd_=function(to){var ro=to.propertyName,no=ro===void 0?"":ro,oo=transitionKeys.some(function(io){return!!~no.indexOf(io)});oo&&this.refresh()},eo.getInstance=function(){return this.instance_||(this.instance_=new eo),this.instance_},eo.instance_=null,eo}(),defineConfigurable=function(eo,to){for(var ro=0,no=Object.keys(to);ro"u"||!(Element instanceof Object))){if(!(to instanceof getWindowOf(to).Element))throw new TypeError('parameter 1 is not of type "Element".');var ro=this.observations_;ro.has(to)||(ro.set(to,new ResizeObservation(to)),this.controller_.addObserver(this),this.controller_.refresh())}},eo.prototype.unobserve=function(to){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(to instanceof getWindowOf(to).Element))throw new TypeError('parameter 1 is not of type "Element".');var ro=this.observations_;ro.has(to)&&(ro.delete(to),ro.size||this.controller_.removeObserver(this))}},eo.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},eo.prototype.gatherActive=function(){var to=this;this.clearActive(),this.observations_.forEach(function(ro){ro.isActive()&&to.activeObservations_.push(ro)})},eo.prototype.broadcastActive=function(){if(this.hasActive()){var to=this.callbackCtx_,ro=this.activeObservations_.map(function(no){return new ResizeObserverEntry(no.target,no.broadcastRect())});this.callback_.call(to,ro,to),this.clearActive()}},eo.prototype.clearActive=function(){this.activeObservations_.splice(0)},eo.prototype.hasActive=function(){return this.activeObservations_.length>0},eo}(),observers=typeof WeakMap<"u"?new WeakMap:new MapShim,ResizeObserver$1=function(){function eo(to){if(!(this instanceof eo))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var ro=ResizeObserverController.getInstance(),no=new ResizeObserverSPI(to,ro,this);observers.set(this,no)}return eo}();["observe","unobserve","disconnect"].forEach(function(eo){ResizeObserver$1.prototype[eo]=function(){var to;return(to=observers.get(this))[eo].apply(to,arguments)}});var index$1=function(){return typeof global$1.ResizeObserver<"u"?global$1.ResizeObserver:ResizeObserver$1}(),elementListeners=new Map;function onResize(eo){eo.forEach(function(to){var ro,no=to.target;(ro=elementListeners.get(no))===null||ro===void 0||ro.forEach(function(oo){return oo(no)})})}var resizeObserver=new index$1(onResize);function observe(eo,to){elementListeners.has(eo)||(elementListeners.set(eo,new Set),resizeObserver.observe(eo)),elementListeners.get(eo).add(to)}function unobserve(eo,to){elementListeners.has(eo)&&(elementListeners.get(eo).delete(to),elementListeners.get(eo).size||(resizeObserver.unobserve(eo),elementListeners.delete(eo)))}function _classCallCheck$2(eo,to){if(!(eo instanceof to))throw new TypeError("Cannot call a class as a function")}function _defineProperties$2(eo,to){for(var ro=0;ro"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 _typeof$3(eo){"@babel/helpers - typeof";return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(to){return typeof to}:function(to){return to&&typeof Symbol=="function"&&to.constructor===Symbol&&to!==Symbol.prototype?"symbol":typeof to},_typeof$3(eo)}function _assertThisInitialized$1(eo){if(eo===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return eo}function _possibleConstructorReturn$1(eo,to){if(to&&(_typeof$3(to)==="object"||typeof to=="function"))return to;if(to!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1(eo)}function _createSuper$1(eo){var to=_isNativeReflectConstruct$1();return function(){var no=_getPrototypeOf$1(eo),oo;if(to){var io=_getPrototypeOf$1(this).constructor;oo=Reflect.construct(no,arguments,io)}else oo=no.apply(this,arguments);return _possibleConstructorReturn$1(this,oo)}}var DomWrapper=function(eo){_inherits$1(ro,eo);var to=_createSuper$1(ro);function ro(){return _classCallCheck$2(this,ro),to.apply(this,arguments)}return _createClass$2(ro,[{key:"render",value:function(){return this.props.children}}]),ro}(reactExports.Component),CollectionContext=reactExports.createContext(null);function Collection(eo){var to=eo.children,ro=eo.onBatchResize,no=reactExports.useRef(0),oo=reactExports.useRef([]),io=reactExports.useContext(CollectionContext),so=reactExports.useCallback(function(ao,lo,uo){no.current+=1;var co=no.current;oo.current.push({size:ao,element:lo,data:uo}),Promise.resolve().then(function(){co===no.current&&(ro==null||ro(oo.current),oo.current=[])}),io==null||io(ao,lo,uo)},[ro,io]);return reactExports.createElement(CollectionContext.Provider,{value:so},to)}function SingleObserver(eo){var to=eo.children,ro=eo.disabled,no=reactExports.useRef(null),oo=reactExports.useRef(null),io=reactExports.useContext(CollectionContext),so=typeof to=="function",ao=so?to(no):to,lo=reactExports.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),uo=!so&&reactExports.isValidElement(ao)&&supportRef(ao),co=uo?ao.ref:null,fo=reactExports.useMemo(function(){return composeRef(co,no)},[co,no]),po=reactExports.useRef(eo);po.current=eo;var ho=reactExports.useCallback(function(mo){var vo=po.current,bo=vo.onResize,xo=vo.data,_o=mo.getBoundingClientRect(),So=_o.width,Eo=_o.height,ko=mo.offsetWidth,wo=mo.offsetHeight,Co=Math.floor(So),Ro=Math.floor(Eo);if(lo.current.width!==Co||lo.current.height!==Ro||lo.current.offsetWidth!==ko||lo.current.offsetHeight!==wo){var Ao={width:Co,height:Ro,offsetWidth:ko,offsetHeight:wo};lo.current=Ao;var Io=ko===Math.round(So)?So:ko,$o=wo===Math.round(Eo)?Eo:wo,Bo=_objectSpread2$2(_objectSpread2$2({},Ao),{},{offsetWidth:Io,offsetHeight:$o});io==null||io(Bo,mo,xo),bo&&Promise.resolve().then(function(){bo(Bo,mo)})}},[]);return reactExports.useEffect(function(){var mo=findDOMNode(no.current)||findDOMNode(oo.current);return mo&&!ro&&observe(mo,ho),function(){return unobserve(mo,ho)}},[no.current,ro]),reactExports.createElement(DomWrapper,{ref:oo},uo?reactExports.cloneElement(ao,{ref:fo}):ao)}var INTERNAL_PREFIX_KEY="rc-observer-key";function ResizeObserver$2(eo){var to=eo.children,ro=typeof to=="function"?[to]:toArray(to);return ro.map(function(no,oo){var io=(no==null?void 0:no.key)||"".concat(INTERNAL_PREFIX_KEY,"-").concat(oo);return reactExports.createElement(SingleObserver,_extends$1$1({},eo,{key:io}),no)})}ResizeObserver$2.Collection=Collection;function ownKeys$1$1(eo,to){var ro=Object.keys(eo);if(Object.getOwnPropertySymbols){var no=Object.getOwnPropertySymbols(eo);to&&(no=no.filter(function(oo){return Object.getOwnPropertyDescriptor(eo,oo).enumerable})),ro.push.apply(ro,no)}return ro}function _objectSpread$1(eo){for(var to=1;to1&&arguments[1]!==void 0?arguments[1]:1;rafUUID+=1;var ro=rafUUID;function no(oo){if(oo===0)cleanup(ro),eo();else{var io=raf(function(){no(oo-1)});rafIds.set(ro,io)}}return no(to),ro}wrapperRaf.cancel=function(eo){var to=rafIds.get(eo);return cleanup(to),caf(to)};function _typeof$2(eo){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(to){return typeof to}:function(to){return to&&typeof Symbol=="function"&&to.constructor===Symbol&&to!==Symbol.prototype?"symbol":typeof to},_typeof$2(eo)}function _defineProperty$1$1(eo,to,ro){return to in eo?Object.defineProperty(eo,to,{value:ro,enumerable:!0,configurable:!0,writable:!0}):eo[to]=ro,eo}function _classCallCheck$1(eo,to){if(!(eo instanceof to))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(eo,to){for(var ro=0;ro"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 _getPrototypeOf(eo){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(ro){return ro.__proto__||Object.getPrototypeOf(ro)},_getPrototypeOf(eo)}var MIN_SIZE=20;function getPageY(eo){return"touches"in eo?eo.touches[0].pageY:eo.pageY}var ScrollBar=function(eo){_inherits(ro,eo);var to=_createSuper(ro);function ro(){var no;_classCallCheck$1(this,ro);for(var oo=arguments.length,io=new Array(oo),so=0;solo},no}return _createClass$1(ro,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(oo){oo.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var oo=this.state,io=oo.dragging,so=oo.visible,ao=this.props.prefixCls,lo=this.getSpinHeight(),uo=this.getTop(),co=this.showScroll(),fo=co&&so;return reactExports.createElement("div",{ref:this.scrollbarRef,className:classnames$1("".concat(ao,"-scrollbar"),_defineProperty$1$1({},"".concat(ao,"-scrollbar-show"),co)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:fo?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},reactExports.createElement("div",{ref:this.thumbRef,className:classnames$1("".concat(ao,"-scrollbar-thumb"),_defineProperty$1$1({},"".concat(ao,"-scrollbar-thumb-moving"),io)),style:{width:"100%",height:lo,top:uo,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),ro}(reactExports.Component);function Item(eo){var to=eo.children,ro=eo.setRef,no=reactExports.useCallback(function(oo){ro(oo)},[]);return reactExports.cloneElement(to,{ref:no})}function useChildren(eo,to,ro,no,oo,io){var so=io.getKey;return eo.slice(to,ro+1).map(function(ao,lo){var uo=to+lo,co=oo(ao,uo,{}),fo=so(ao);return reactExports.createElement(Item,{key:fo,setRef:function(ho){return no(ao,ho)}},co)})}function _classCallCheck(eo,to){if(!(eo instanceof to))throw new TypeError("Cannot call a class as a function")}function _defineProperties(eo,to){for(var ro=0;roeo.length)&&(to=eo.length);for(var ro=0,no=new Array(to);rojo&&(Eo="bottom")}}Mo!==null&&Mo!==eo.current.scrollTop&&so(Mo)}lo.current=wrapperRaf(function(){So&&io(),vo(bo-1,Eo)})}};mo(3)}}}function findListDiffIndex(eo,to,ro){var no=eo.length,oo=to.length,io,so;if(no===0&&oo===0)return null;noeo.length)&&(to=eo.length);for(var ro=0,no=new Array(to);ro"u"?"undefined":_typeof(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),useOriginScroll=function(eo,to){var ro=reactExports.useRef(!1),no=reactExports.useRef(null);function oo(){clearTimeout(no.current),ro.current=!0,no.current=setTimeout(function(){ro.current=!1},50)}var io=reactExports.useRef({top:eo,bottom:to});return io.current.top=eo,io.current.bottom=to,function(so){var ao=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,lo=so<0&&io.current.top||so>0&&io.current.bottom;return ao&&lo?(clearTimeout(no.current),ro.current=!1):(!lo||ro.current)&&oo(),!ro.current&&lo}};function useFrameWheel(eo,to,ro,no){var oo=reactExports.useRef(0),io=reactExports.useRef(null),so=reactExports.useRef(null),ao=reactExports.useRef(!1),lo=useOriginScroll(to,ro);function uo(fo){if(eo){wrapperRaf.cancel(io.current);var po=fo.deltaY;oo.current+=po,so.current=po,!lo(po)&&(isFF||fo.preventDefault(),io.current=wrapperRaf(function(){var ho=ao.current?10:1;no(oo.current*ho),oo.current=0}))}}function co(fo){eo&&(ao.current=fo.detail===so.current)}return[uo,co]}function canUseDom(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var useLayoutEffect$1=canUseDom()?reactExports.useLayoutEffect:reactExports.useEffect,SMOOTH_PTG=14/15;function useMobileTouchMove(eo,to,ro){var no=reactExports.useRef(!1),oo=reactExports.useRef(0),io=reactExports.useRef(null),so=reactExports.useRef(null),ao,lo=function(po){if(no.current){var ho=Math.ceil(po.touches[0].pageY),mo=oo.current-ho;oo.current=ho,ro(mo)&&po.preventDefault(),clearInterval(so.current),so.current=setInterval(function(){mo*=SMOOTH_PTG,(!ro(mo,!0)||Math.abs(mo)<=.1)&&clearInterval(so.current)},16)}},uo=function(){no.current=!1,ao()},co=function(po){ao(),po.touches.length===1&&!no.current&&(no.current=!0,oo.current=Math.ceil(po.touches[0].pageY),io.current=po.target,io.current.addEventListener("touchmove",lo),io.current.addEventListener("touchend",uo))};ao=function(){io.current&&(io.current.removeEventListener("touchmove",lo),io.current.removeEventListener("touchend",uo))},useLayoutEffect$1(function(){return eo&&to.current.addEventListener("touchstart",co),function(){var fo;(fo=to.current)===null||fo===void 0||fo.removeEventListener("touchstart",co),ao(),clearInterval(so.current)}},[eo])}var _excluded=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function _extends$9(){return _extends$9=Object.assign||function(eo){for(var to=1;toeo.length)&&(to=eo.length);for(var ro=0,no=new Array(to);ro=0)&&Object.prototype.propertyIsEnumerable.call(eo,no)&&(ro[no]=eo[no])}return ro}function _objectWithoutPropertiesLoose$1(eo,to){if(eo==null)return{};var ro={},no=Object.keys(eo),oo,io;for(io=0;io=0)&&(ro[oo]=eo[oo]);return ro}var EMPTY_DATA=[],ScrollStyle={overflowY:"auto",overflowAnchor:"none"};function RawList(eo,to){var ro=eo.prefixCls,no=ro===void 0?"rc-virtual-list":ro,oo=eo.className,io=eo.height,so=eo.itemHeight,ao=eo.fullHeight,lo=ao===void 0?!0:ao,uo=eo.style,co=eo.data,fo=eo.children,po=eo.itemKey,ho=eo.virtual,mo=eo.component,vo=mo===void 0?"div":mo,bo=eo.onScroll,xo=eo.onVisibleChange,_o=_objectWithoutProperties$1(eo,_excluded),So=!!(ho!==!1&&io&&so),Eo=So&&co&&so*co.length>io,ko=reactExports.useState(0),wo=_slicedToArray$3(ko,2),Co=wo[0],Ro=wo[1],Ao=reactExports.useState(!1),Io=_slicedToArray$3(Ao,2),$o=Io[0],Bo=Io[1],Mo=classnames$1(no,oo),Ho=co||EMPTY_DATA,jo=reactExports.useRef(),Oo=reactExports.useRef(),Fo=reactExports.useRef(),Go=reactExports.useCallback(function(Hs){return typeof po=="function"?po(Hs):Hs==null?void 0:Hs[po]},[po]),qo={getKey:Go};function Xo(Hs){Ro(function(Qs){var El;typeof Hs=="function"?El=Hs(Qs):El=Hs;var xl=Kl(El);return jo.current.scrollTop=xl,xl})}var Zo=reactExports.useRef({start:0,end:Ho.length}),Qo=reactExports.useRef(),xs=useDiffItem(Ho,Go),Ts=_slicedToArray$3(xs,1),Rs=Ts[0];Qo.current=Rs;var Os=useHeights(Go,null,null),As=_slicedToArray$3(Os,4),Ds=As[0],Jo=As[1],Cs=As[2],Bs=As[3],zs=reactExports.useMemo(function(){if(!So)return{scrollHeight:void 0,start:0,end:Ho.length-1,offset:void 0};if(!Eo){var Hs;return{scrollHeight:((Hs=Oo.current)===null||Hs===void 0?void 0:Hs.offsetHeight)||0,start:0,end:Ho.length-1,offset:void 0}}for(var Qs=0,El,xl,Ol,ru=Ho.length,au=0;au=Co&&El===void 0&&(El=au,xl=Qs),Ql>Co+io&&Ol===void 0&&(Ol=au),Qs=Ql}return El===void 0&&(El=0,xl=0),Ol===void 0&&(Ol=Ho.length-1),Ol=Math.min(Ol+1,Ho.length),{scrollHeight:Qs,start:El,end:Ol,offset:xl}},[Eo,So,Co,Ho,Bs,io]),Ls=zs.scrollHeight,ga=zs.start,Js=zs.end,Zs=zs.offset;Zo.current.start=ga,Zo.current.end=Js;var $a=Ls-io,Ll=reactExports.useRef($a);Ll.current=$a;function Kl(Hs){var Qs=Hs;return Number.isNaN(Ll.current)||(Qs=Math.min(Qs,Ll.current)),Qs=Math.max(Qs,0),Qs}var Zl=Co<=0,$l=Co>=$a,xa=useOriginScroll(Zl,$l);function Sl(Hs){var Qs=Hs;Xo(Qs)}function cu(Hs){var Qs=Hs.currentTarget.scrollTop;Qs!==Co&&Xo(Qs),bo==null||bo(Hs)}var ks=useFrameWheel(So,Zl,$l,function(Hs){Xo(function(Qs){var El=Qs+Hs;return El})}),Es=_slicedToArray$3(ks,2),bs=Es[0],ws=Es[1];useMobileTouchMove(So,jo,function(Hs,Qs){return xa(Hs,Qs)?!1:(bs({preventDefault:function(){},deltaY:Hs}),!0)}),useLayoutEffect$1(function(){function Hs(Qs){So&&Qs.preventDefault()}return jo.current.addEventListener("wheel",bs),jo.current.addEventListener("DOMMouseScroll",ws),jo.current.addEventListener("MozMousePixelScroll",Hs),function(){jo.current&&(jo.current.removeEventListener("wheel",bs),jo.current.removeEventListener("DOMMouseScroll",ws),jo.current.removeEventListener("MozMousePixelScroll",Hs))}},[So]);var Gs=useScrollTo(jo,Ho,Cs,so,Go,Jo,Xo,function(){var Hs;(Hs=Fo.current)===null||Hs===void 0||Hs.delayHidden()});reactExports.useImperativeHandle(to,function(){return{scrollTo:Gs}}),useLayoutEffect$1(function(){if(xo){var Hs=Ho.slice(ga,Js+1);xo(Hs,Ho)}},[ga,Js,Ho]);var Ks=useChildren(Ho,ga,Js,Ds,fo,qo),Ms=null;return io&&(Ms=_objectSpread(_defineProperty$4({},lo?"height":"maxHeight",io),ScrollStyle),So&&(Ms.overflowY="hidden",$o&&(Ms.pointerEvents="none"))),reactExports.createElement("div",_extends$9({style:_objectSpread(_objectSpread({},uo),{},{position:"relative"}),className:Mo},_o),reactExports.createElement(vo,{className:"".concat(no,"-holder"),style:Ms,ref:jo,onScroll:cu},reactExports.createElement(Filler,{prefixCls:no,height:Ls,offset:Zs,onInnerResize:Jo,ref:Oo},Ks)),So&&reactExports.createElement(ScrollBar,{ref:Fo,prefixCls:no,scrollTop:Co,height:io,scrollHeight:Ls,count:Ho.length,onScroll:Sl,onStartMove:function(){Bo(!0)},onStopMove:function(){Bo(!1)}}))}var List=reactExports.forwardRef(RawList);List.displayName="List";var arrDel=function(eo,to){var ro=eo.slice(),no=ro.indexOf(to);return no>=0&&ro.splice(no,1),ro},arrAdd=function(eo,to){var ro=eo.slice();return ro.indexOf(to)===-1&&ro.push(to),ro},ROOT_NODE_ID="$root",Node$1=function(){function eo(to){var ro=this,no,oo,io,so=to.node,ao=to.flattenNodes,lo=to.parent,uo=to.selectedKeySet,co=uo===void 0?new Set:uo,fo=to.expandedKeySet,po=fo===void 0?new Set:fo,ho=to.loadInfo,mo=ho===void 0?{loadingKeys:[],loadedKeys:[]}:ho;this.internal=so,this.parent=lo,this.level=((oo=(no=this.parent)===null||no===void 0?void 0:no.level)!==null&&oo!==void 0?oo:-1)+1,this.selected=co.has(so.id),this.expanded=po.has(so.id)||so.id===ROOT_NODE_ID,this.ancestorExpanded=!!(lo!=null&&lo.expanded&&(lo!=null&&lo.ancestorExpanded))||so.id===ROOT_NODE_ID,this.loading=mo.loadingKeys.includes(so.id),this.loaded=mo.loadedKeys.includes(so.id),this.isLeaf=(io=so.isLeaf)!==null&&io!==void 0?io:!(so.children.length>0),eo.nodesMap.set(so.id,this),this.level>0&&this.ancestorExpanded&&ao.push(this),this.childNodes=so.children.map(function(vo){return new eo({node:vo,parent:ro,selectedKeySet:co,expandedKeySet:po,loadInfo:mo,flattenNodes:ao})})}return Object.defineProperty(eo.prototype,"id",{get:function(){return this.internal.id},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"title",{get:function(){return this.internal.title},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"children",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"searchKeys",{get:function(){return this.internal.searchKeys},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"isTag",{get:function(){return this.internal.isTag},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"ariaLabel",{get:function(){return this.internal.ariaLabel},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"extra",{get:function(){return this.internal.extra},enumerable:!1,configurable:!0}),eo.init=function(to,ro,no,oo){ro===void 0&&(ro=[]),no===void 0&&(no=[]),eo.nodesMap=new Map;var io=[];return eo.root=new eo({node:{title:"",children:to,searchKeys:[],id:ROOT_NODE_ID},selectedKeySet:new Set(ro),expandedKeySet:new Set(no),loadInfo:oo,flattenNodes:io}),io},eo.nodesMap=new Map,eo}();/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -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 __assign$2=function(){return __assign$2=Object.assign||function(to){for(var ro,no=1,oo=arguments.length;no"u"?InjectionMode.none:InjectionMode.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},to),this._classNameToArgs=(no=ro==null?void 0:ro.classNameToArgs)!==null&&no!==void 0?no:this._classNameToArgs,this._counter=(oo=ro==null?void 0:ro.counter)!==null&&oo!==void 0?oo:this._counter,this._keyToClassName=(so=(io=this._config.classNameCache)!==null&&io!==void 0?io:ro==null?void 0:ro.keyToClassName)!==null&&so!==void 0?so:this._keyToClassName,this._preservedRules=(ao=ro==null?void 0:ro.preservedRules)!==null&&ao!==void 0?ao:this._preservedRules,this._rules=(lo=ro==null?void 0:ro.rules)!==null&&lo!==void 0?lo:this._rules}return eo.getInstance=function(){if(_stylesheet=_global[STYLESHEET_SETTING],!_stylesheet||_stylesheet._lastStyleElement&&_stylesheet._lastStyleElement.ownerDocument!==document){var to=(_global==null?void 0:_global.FabricConfig)||{},ro=new eo(to.mergeStyles,to.serializedStylesheet);_stylesheet=ro,_global[STYLESHEET_SETTING]=ro}return _stylesheet},eo.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},eo.prototype.setConfig=function(to){this._config=__assign$2(__assign$2({},this._config),to)},eo.prototype.onReset=function(to){var ro=this;return this._onResetCallbacks.push(to),function(){ro._onResetCallbacks=ro._onResetCallbacks.filter(function(no){return no!==to})}},eo.prototype.onInsertRule=function(to){var ro=this;return this._onInsertRuleCallbacks.push(to),function(){ro._onInsertRuleCallbacks=ro._onInsertRuleCallbacks.filter(function(no){return no!==to})}},eo.prototype.getClassName=function(to){var ro=this._config.namespace,no=to||this._config.defaultPrefix;return(ro?ro+"-":"")+no+"-"+this._counter++},eo.prototype.cacheClassName=function(to,ro,no,oo){this._keyToClassName[ro]=to,this._classNameToArgs[to]={args:no,rules:oo}},eo.prototype.classNameFromKey=function(to){return this._keyToClassName[to]},eo.prototype.getClassNameCache=function(){return this._keyToClassName},eo.prototype.argsFromClassName=function(to){var ro=this._classNameToArgs[to];return ro&&ro.args},eo.prototype.insertedRulesFromClassName=function(to){var ro=this._classNameToArgs[to];return ro&&ro.rules},eo.prototype.insertRule=function(to,ro){var no=this._config.injectionMode,oo=no!==InjectionMode.none?this._getStyleElement():void 0;if(ro&&this._preservedRules.push(to),oo)switch(no){case InjectionMode.insertNode:var io=oo.sheet;try{io.insertRule(to,io.cssRules.length)}catch{}break;case InjectionMode.appendChild:oo.appendChild(document.createTextNode(to));break}else this._rules.push(to);this._config.onInsertRule&&this._config.onInsertRule(to),this._onInsertRuleCallbacks.forEach(function(so){return so()})},eo.prototype.getRules=function(to){return(to?this._preservedRules.join(""):"")+this._rules.join("")},eo.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(to){return to()})},eo.prototype.resetKeys=function(){this._keyToClassName={}},eo.prototype._getStyleElement=function(){var to=this;return!this._styleElement&&typeof document<"u"&&(this._styleElement=this._createStyleElement(),REUSE_STYLE_NODE||window.requestAnimationFrame(function(){to._styleElement=void 0})),this._styleElement},eo.prototype._createStyleElement=function(){var to=document.head,ro=document.createElement("style"),no=null;ro.setAttribute("data-merge-styles","true");var oo=this._config.cspSettings;if(oo&&oo.nonce&&ro.setAttribute("nonce",oo.nonce),this._lastStyleElement)no=this._lastStyleElement.nextElementSibling;else{var io=this._findPlaceholderStyleTag();io?no=io.nextElementSibling:no=to.childNodes[0]}return to.insertBefore(ro,to.contains(no)?no:null),this._lastStyleElement=ro,ro},eo.prototype._findPlaceholderStyleTag=function(){var to=document.head;return to?to.querySelector("style[data-merge-styles]"):null},eo}();function extractStyleParts(){for(var eo=[],to=0;to=0)io(uo.split(" "));else{var co=oo.argsFromClassName(uo);co?io(co):ro.indexOf(uo)===-1&&ro.push(uo)}else Array.isArray(uo)?io(uo):typeof uo=="object"&&no.push(uo)}}return io(eo),{classes:ro,objects:no}}function getRTL(){return _rtl===void 0&&(_rtl=typeof document<"u"&&!!document.documentElement&&document.documentElement.getAttribute("dir")==="rtl"),_rtl}var _rtl;_rtl=getRTL();function getStyleOptions(){return{rtl:getRTL()}}var rules={};function kebabRules(eo,to){var ro=eo[to];ro.charAt(0)!=="-"&&(eo[to]=rules[ro]=rules[ro]||ro.replace(/([A-Z])/g,"-$1").toLowerCase())}var _vendorSettings;function getVendorSettings(){var eo;if(!_vendorSettings){var to=typeof document<"u"?document:void 0,ro=typeof navigator<"u"?navigator:void 0,no=(eo=ro==null?void 0:ro.userAgent)===null||eo===void 0?void 0:eo.toLowerCase();to?_vendorSettings={isWebkit:!!(to&&"WebkitAppearance"in to.documentElement.style),isMoz:!!(no&&no.indexOf("firefox")>-1),isOpera:!!(no&&no.indexOf("opera")>-1),isMs:!!(ro&&(/rv:11.0/i.test(ro.userAgent)||/Edge\/\d./i.test(navigator.userAgent)))}:_vendorSettings={isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return _vendorSettings}var autoPrefixNames={"user-select":1};function prefixRules(eo,to){var ro=getVendorSettings(),no=eo[to];if(autoPrefixNames[no]){var oo=eo[to+1];autoPrefixNames[no]&&(ro.isWebkit&&eo.push("-webkit-"+no,oo),ro.isMoz&&eo.push("-moz-"+no,oo),ro.isMs&&eo.push("-ms-"+no,oo),ro.isOpera&&eo.push("-o-"+no,oo))}}var NON_PIXEL_NUMBER_PROPS=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function provideUnits(eo,to){var ro=eo[to],no=eo[to+1];if(typeof no=="number"){var oo=NON_PIXEL_NUMBER_PROPS.indexOf(ro)>-1,io=ro.indexOf("--")>-1,so=oo||io?"":"px";eo[to+1]=""+no+so}}var _a$2,LEFT="left",RIGHT="right",NO_FLIP="@noflip",NAME_REPLACEMENTS=(_a$2={},_a$2[LEFT]=RIGHT,_a$2[RIGHT]=LEFT,_a$2),VALUE_REPLACEMENTS={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function rtlifyRules(eo,to,ro){if(eo.rtl){var no=to[ro];if(!no)return;var oo=to[ro+1];if(typeof oo=="string"&&oo.indexOf(NO_FLIP)>=0)to[ro+1]=oo.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(no.indexOf(LEFT)>=0)to[ro]=no.replace(LEFT,RIGHT);else if(no.indexOf(RIGHT)>=0)to[ro]=no.replace(RIGHT,LEFT);else if(String(oo).indexOf(LEFT)>=0)to[ro+1]=oo.replace(LEFT,RIGHT);else if(String(oo).indexOf(RIGHT)>=0)to[ro+1]=oo.replace(RIGHT,LEFT);else if(NAME_REPLACEMENTS[no])to[ro]=NAME_REPLACEMENTS[no];else if(VALUE_REPLACEMENTS[oo])to[ro+1]=VALUE_REPLACEMENTS[oo];else switch(no){case"margin":case"padding":to[ro+1]=flipQuad(oo);break;case"box-shadow":to[ro+1]=negateNum(oo,0);break}}}function negateNum(eo,to){var ro=eo.split(" "),no=parseInt(ro[to],10);return ro[0]=ro[0].replace(String(no),String(no*-1)),ro.join(" ")}function flipQuad(eo){if(typeof eo=="string"){var to=eo.split(" ");if(to.length===4)return to[0]+" "+to[3]+" "+to[2]+" "+to[1]}return eo}function tokenizeWithParentheses(eo){for(var to=[],ro=0,no=0,oo=0;ooro&&to.push(eo.substring(ro,oo)),ro=oo+1);break}return ro-1&&to.push([no.index,no.index+no[0].length,no[1].split(",").map(function(oo){return":global("+oo.trim()+")"}).join(", ")]);return to.reverse().reduce(function(oo,io){var so=io[0],ao=io[1],lo=io[2],uo=oo.slice(0,so),co=oo.slice(ao);return uo+lo+co},eo)}function expandSelector(eo,to){return eo.indexOf(":global(")>=0?eo.replace(globalSelectorRegExp,"$1"):eo.indexOf(":")===0?to+eo:eo.indexOf("&")<0?to+" "+eo:eo}function extractSelector(eo,to,ro,no){to===void 0&&(to={__order:[]}),ro.indexOf("@")===0?(ro=ro+"{"+eo,extractRules([no],to,ro)):ro.indexOf(",")>-1?expandCommaSeparatedGlobals(ro).split(",").map(function(oo){return oo.trim()}).forEach(function(oo){return extractRules([no],to,expandSelector(oo,eo))}):extractRules([no],to,expandSelector(ro,eo))}function extractRules(eo,to,ro){to===void 0&&(to={__order:[]}),ro===void 0&&(ro="&");var no=Stylesheet.getInstance(),oo=to[ro];oo||(oo={},to[ro]=oo,to.__order.push(ro));for(var io=0,so=eo;io"u")){var no=document.head||document.getElementsByTagName("head")[0],oo=document.createElement("style");oo.type="text/css",ro==="top"&&no.firstChild?no.insertBefore(oo,no.firstChild):no.appendChild(oo),oo.styleSheet?oo.styleSheet.cssText=eo:oo.appendChild(document.createTextNode(eo))}}var css_248z=".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}",classes$3={root:"root_ce9fd48c",item:"item_34141342",content:"content_6abc12be",icon:"icon_aaa0d589",expanded:"expanded_6233c4e1",leaf:"leaf_f2922997",group:"group_7e2ac704",inner:"inner_683a43d6"};styleInject(css_248z);var mergeTreeClasses=function(eo){return{root:mergeStyles(classes$3.root,eo==null?void 0:eo.root)}},mergeTreeNodeClasses=function(eo,to){var ro,no,oo;return{item:mergeStyles(classes$3.item,to==null?void 0:to.item),icon:mergeStyles(classes$3.icon,eo.expanded&&classes$3.expanded,eo.isLeaf&&classes$3.leaf),group:mergeStyles(classes$3.group,to==null?void 0:to.group),inner:mergeStyles(classes$3.inner,to==null?void 0:to.inner),content:mergeStyles(classes$3.content,(ro=to==null?void 0:to.content)===null||ro===void 0?void 0:ro.base,eo.expanded&&((no=to==null?void 0:to.content)===null||no===void 0?void 0:no.expand),eo.isLeaf&&((oo=to==null?void 0:to.content)===null||oo===void 0?void 0:oo.leaf))}},TreeNode$1=reactExports.forwardRef(function(eo,to){var ro,no,oo,io,so,ao,lo,uo,co=eo.node,fo=eo.classes,po=eo.indent,ho=eo.calcIndent,mo=eo.onNodeClick,vo=eo.renderIcon,bo=eo.renderContent,xo=eo.renderInnerContent,_o=!co.isLeaf&&co.expanded,So=mergeTreeNodeClasses(co,fo),Eo=ho?ho(co):{item:(co.level-1)*((ro=po==null?void 0:po.item)!==null&&ro!==void 0?ro:20)+((no=po==null?void 0:po.root)!==null&&no!==void 0?no:0),innerItem:co.level*((oo=po==null?void 0:po.item)!==null&&oo!==void 0?oo:20)+((io=po==null?void 0:po.root)!==null&&io!==void 0?io:0)},ko=reactExports.useCallback(function(wo){wo.preventDefault(),wo.stopPropagation()},[]);return reactExports.createElement("div",{key:co.id,role:"treeitem","aria-selected":co.selected,"aria-expanded":co.expanded,tabIndex:-1,className:So.item,onClick:mo.bind(null,co),"data-item-id":co.id,ref:to},reactExports.createElement("div",{className:So.content,style:{paddingLeft:(so=Eo.item)!==null&&so!==void 0?so:20}},(ao=vo==null?void 0:vo(co))!==null&&ao!==void 0?ao:reactExports.createElement("span",{className:So.icon}),(lo=bo==null?void 0:bo(co))!==null&&lo!==void 0?lo:reactExports.createElement("span",{role:"button"},co.title)),_o&&reactExports.createElement(reactExports.Fragment,null,xo&&reactExports.createElement("div",{role:"group",key:"innerContent",className:So.inner,style:{paddingLeft:(uo=Eo.innerItem)!==null&&uo!==void 0?uo:40},onClick:ko},xo(co))))});TreeNode$1.displayName="TreeNode";var ReactAccessibleTree=reactExports.forwardRef(function(eo,to){var ro=eo.selectedKeys,no=ro===void 0?[]:ro,oo=eo.expandedKeys,io=oo===void 0?[]:oo,so=eo.treeData,ao=eo.classes,lo=eo.indent,uo=eo.height,co=eo.itemHeight,fo=eo.virtual,po=eo.calcIndent,ho=eo.onKeyDown,mo=eo.renderIcon,vo=eo.renderContent,bo=eo.renderInnerContent,xo=eo.onSelect,_o=eo.multiple,So=eo.onExpand,Eo=eo.loadData,ko=reactExports.useState({loadedKeys:[],loadingKeys:[]}),wo=ko[0],Co=ko[1],Ro=reactExports.useRef(null),Ao=reactExports.useRef(null),Io=reactExports.useMemo(function(){return Node$1.init(so,no,io,wo)},[so,no,io,wo]);reactExports.useImperativeHandle(to,function(){return{scrollTo:function(Xo){var Zo;(Zo=Ao.current)===null||Zo===void 0||Zo.scrollTo(Xo)}}}),reactExports.useEffect(function(){Ho(0)},[]);var $o=function(Xo,Zo){var Qo=no,xs=Zo.id,Ts=!Zo.selected;Ts?_o?Qo=arrAdd(Qo,xs):Qo=[xs]:Qo=arrDel(Qo,xs),xo==null||xo(Qo,{node:Zo,selected:Ts,nativeEvent:Xo})},Bo=function(Xo,Zo){var Qo=io,xs=Zo.id,Ts=!Zo.expanded;Ts?Qo=arrAdd(Qo,xs):Qo=arrDel(Qo,xs),So==null||So(Qo,{node:Zo,expanded:Ts,nativeEvent:Xo}),Ts&&Eo&&Mo(Zo)},Mo=function(Xo){Co(function(Zo){var Qo=Zo.loadedKeys,xs=Zo.loadingKeys,Ts=Xo.id;if(!Eo||Qo.includes(Ts)||xs.includes(Ts))return wo;var Rs=Eo(Xo);return Rs.then(function(){var Os=wo.loadedKeys,As=wo.loadingKeys,Ds=arrAdd(Os,Ts),Jo=arrDel(As,Ts);Co({loadedKeys:Ds,loadingKeys:Jo})}),{loadedKeys:Qo,loadingKeys:arrAdd(xs,Ts)}})},Ho=function(Xo){var Zo,Qo,xs=Array.from((Qo=(Zo=Ro.current)===null||Zo===void 0?void 0:Zo.querySelectorAll("div[role='treeitem']"))!==null&&Qo!==void 0?Qo:[]);xs.forEach(function(Ts,Rs){Rs===Xo?Ts.setAttribute("tabindex","0"):Ts.setAttribute("tabindex","-1")})},jo=function(Xo){var Zo,Qo,xs;Xo.stopPropagation();var Ts=Xo.target;if(Ts.getAttribute("role")!=="treeitem"||Xo.ctrlKey||Xo.metaKey)return-1;var Rs=Array.from((Qo=(Zo=Ro.current)===null||Zo===void 0?void 0:Zo.querySelectorAll("div[role='treeitem']"))!==null&&Qo!==void 0?Qo:[]),Os=Rs.indexOf(Ts),As=Xo.keyCode>=65&&Xo.keyCode<=90;if(As){var Ds=-1,Jo=Rs.findIndex(function(zs,Ls){var ga=zs.getAttribute("data-item-id"),Js=Node$1.nodesMap.get(ga??""),Zs=Js==null?void 0:Js.searchKeys.some(function($a){return $a.match(new RegExp("^"+Xo.key,"i"))});return Zs&&Ls>Os?!0:(Zs&&Ls<=Os&&(Ds=Ds===-1?Ls:Ds),!1)}),Cs=Jo===-1?Ds:Jo;return(xs=Rs[Cs])===null||xs===void 0||xs.focus(),Cs}switch(Xo.key){case"ArrowDown":{var Bs=(Os+1)%Rs.length;return Rs[Bs].focus(),Bs}case"ArrowUp":{var Bs=(Os-1+Rs.length)%Rs.length;return Rs[Bs].focus(),Bs}case"ArrowLeft":case"ArrowRight":return Ts.click(),Os;case"Home":return Rs[0].focus(),0;case"End":return Rs[Rs.length-1].focus(),Rs.length-1;default:return ho==null||ho(Xo),Os}},Oo=function(Xo){var Zo=jo(Xo);Zo>-1&&Ho(Zo)},Fo=function(Xo,Zo){Zo.stopPropagation(),$o(Zo,Xo),!(Xo.loading||Xo.loaded&&Xo.isLeaf)&&Bo(Zo,Xo)},Go=mergeTreeClasses(ao),qo=function(Xo){return Xo.id};return reactExports.createElement("div",{role:"tree",className:Go.root,onKeyDown:Oo,ref:Ro},reactExports.createElement(List,{data:Io,itemKey:qo,height:uo,fullHeight:!1,virtual:fo,itemHeight:co,ref:Ao},function(Xo){return reactExports.createElement(TreeNode$1,{key:Xo.id,node:Xo,classes:ao,indent:lo,calcIndent:po,renderIcon:mo,renderContent:vo,renderInnerContent:bo,onNodeClick:Fo})}))});ReactAccessibleTree.displayName="ReactAccessibleTree";var __extends$1=function(){var eo=function(to,ro){return eo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(no,oo){no.__proto__=oo}||function(no,oo){for(var io in oo)Object.prototype.hasOwnProperty.call(oo,io)&&(no[io]=oo[io])},eo(to,ro)};return function(to,ro){eo(to,ro);function no(){this.constructor=to}to.prototype=ro===null?Object.create(ro):(no.prototype=ro.prototype,new no)}}(),__assign$1=function(){return __assign$1=Object.assign||function(eo){for(var to,ro=1,no=arguments.length;ro"u"?void 0:Number(no),maxHeight:typeof oo>"u"?void 0:Number(oo),minWidth:typeof io>"u"?void 0:Number(io),minHeight:typeof so>"u"?void 0:Number(so)}},definedProps=["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"],baseClassName="__resizable_base__",Resizable=function(eo){__extends(to,eo);function to(ro){var no=eo.call(this,ro)||this;return no.ratio=1,no.resizable=null,no.parentLeft=0,no.parentTop=0,no.resizableLeft=0,no.resizableRight=0,no.resizableTop=0,no.resizableBottom=0,no.targetLeft=0,no.targetTop=0,no.appendBase=function(){if(!no.resizable||!no.window)return null;var oo=no.parentNode;if(!oo)return null;var io=no.window.document.createElement("div");return io.style.width="100%",io.style.height="100%",io.style.position="absolute",io.style.transform="scale(0, 0)",io.style.left="0",io.style.flex="0 0 100%",io.classList?io.classList.add(baseClassName):io.className+=baseClassName,oo.appendChild(io),io},no.removeBase=function(oo){var io=no.parentNode;io&&io.removeChild(oo)},no.ref=function(oo){oo&&(no.resizable=oo)},no.state={isResizing:!1,width:typeof(no.propsSize&&no.propsSize.width)>"u"?"auto":no.propsSize&&no.propsSize.width,height:typeof(no.propsSize&&no.propsSize.height)>"u"?"auto":no.propsSize&&no.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},no.onResizeStart=no.onResizeStart.bind(no),no.onMouseMove=no.onMouseMove.bind(no),no.onMouseUp=no.onMouseUp.bind(no),no}return Object.defineProperty(to.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(to.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(to.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||DEFAULT_SIZE},enumerable:!1,configurable:!0}),Object.defineProperty(to.prototype,"size",{get:function(){var ro=0,no=0;if(this.resizable&&this.window){var oo=this.resizable.offsetWidth,io=this.resizable.offsetHeight,so=this.resizable.style.position;so!=="relative"&&(this.resizable.style.position="relative"),ro=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:oo,no=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:io,this.resizable.style.position=so}return{width:ro,height:no}},enumerable:!1,configurable:!0}),Object.defineProperty(to.prototype,"sizeStyle",{get:function(){var ro=this,no=this.props.size,oo=function(ao){if(typeof ro.state[ao]>"u"||ro.state[ao]==="auto")return"auto";if(ro.propsSize&&ro.propsSize[ao]&&ro.propsSize[ao].toString().endsWith("%")){if(ro.state[ao].toString().endsWith("%"))return ro.state[ao].toString();var lo=ro.getParentSize(),uo=Number(ro.state[ao].toString().replace("px","")),co=uo/lo[ao]*100;return co+"%"}return getStringSize(ro.state[ao])},io=no&&typeof no.width<"u"&&!this.state.isResizing?getStringSize(no.width):oo("width"),so=no&&typeof no.height<"u"&&!this.state.isResizing?getStringSize(no.height):oo("height");return{width:io,height:so}},enumerable:!1,configurable:!0}),to.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var ro=this.appendBase();if(!ro)return{width:0,height:0};var no=!1,oo=this.parentNode.style.flexWrap;oo!=="wrap"&&(no=!0,this.parentNode.style.flexWrap="wrap"),ro.style.position="relative",ro.style.minWidth="100%",ro.style.minHeight="100%";var io={width:ro.offsetWidth,height:ro.offsetHeight};return no&&(this.parentNode.style.flexWrap=oo),this.removeBase(ro),io},to.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))},to.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))},to.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var ro=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:ro.flexBasis!=="auto"?ro.flexBasis:void 0})}},to.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},to.prototype.createSizeForCssProperty=function(ro,no){var oo=this.propsSize&&this.propsSize[no];return this.state[no]==="auto"&&this.state.original[no]===ro&&(typeof oo>"u"||oo==="auto")?"auto":ro},to.prototype.calculateNewMaxFromBoundary=function(ro,no){var oo=this.props.boundsByDirection,io=this.state.direction,so=oo&&hasDirection("left",io),ao=oo&&hasDirection("top",io),lo,uo;if(this.props.bounds==="parent"){var co=this.parentNode;co&&(lo=so?this.resizableRight-this.parentLeft:co.offsetWidth+(this.parentLeft-this.resizableLeft),uo=ao?this.resizableBottom-this.parentTop:co.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(lo=so?this.resizableRight:this.window.innerWidth-this.resizableLeft,uo=ao?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(lo=so?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),uo=ao?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return lo&&Number.isFinite(lo)&&(ro=ro&&ro"u"?10:io.width,fo=typeof oo.width>"u"||oo.width<0?ro:oo.width,po=typeof io.height>"u"?10:io.height,ho=typeof oo.height>"u"||oo.height<0?no:oo.height,mo=lo||0,vo=uo||0;if(ao){var bo=(po-mo)*this.ratio+vo,xo=(ho-mo)*this.ratio+vo,_o=(co-vo)/this.ratio+mo,So=(fo-vo)/this.ratio+mo,Eo=Math.max(co,bo),ko=Math.min(fo,xo),wo=Math.max(po,_o),Co=Math.min(ho,So);ro=clamp(ro,Eo,ko),no=clamp(no,wo,Co)}else ro=clamp(ro,co,fo),no=clamp(no,po,ho);return{newWidth:ro,newHeight:no}},to.prototype.setBoundingClientRect=function(){if(this.props.bounds==="parent"){var ro=this.parentNode;if(ro){var no=ro.getBoundingClientRect();this.parentLeft=no.left,this.parentTop=no.top}}if(this.props.bounds&&typeof this.props.bounds!="string"){var oo=this.props.bounds.getBoundingClientRect();this.targetLeft=oo.left,this.targetTop=oo.top}if(this.resizable){var io=this.resizable.getBoundingClientRect(),so=io.left,ao=io.top,lo=io.right,uo=io.bottom;this.resizableLeft=so,this.resizableRight=lo,this.resizableTop=ao,this.resizableBottom=uo}},to.prototype.onResizeStart=function(ro,no){if(!(!this.resizable||!this.window)){var oo=0,io=0;if(ro.nativeEvent&&isMouseEvent(ro.nativeEvent)?(oo=ro.nativeEvent.clientX,io=ro.nativeEvent.clientY):ro.nativeEvent&&isTouchEvent(ro.nativeEvent)&&(oo=ro.nativeEvent.touches[0].clientX,io=ro.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var so=this.props.onResizeStart(ro,no,this.resizable);if(so===!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 ao,lo=this.window.getComputedStyle(this.resizable);if(lo.flexBasis!=="auto"){var uo=this.parentNode;if(uo){var co=this.window.getComputedStyle(uo).flexDirection;this.flexDir=co.startsWith("row")?"row":"column",ao=lo.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var fo={original:{x:oo,y:io,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:__assign(__assign({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(ro.target).cursor||"auto"}),direction:no,flexBasis:ao};this.setState(fo)}},to.prototype.onMouseMove=function(ro){var no=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&isTouchEvent(ro))try{ro.preventDefault(),ro.stopPropagation()}catch{}var oo=this.props,io=oo.maxWidth,so=oo.maxHeight,ao=oo.minWidth,lo=oo.minHeight,uo=isTouchEvent(ro)?ro.touches[0].clientX:ro.clientX,co=isTouchEvent(ro)?ro.touches[0].clientY:ro.clientY,fo=this.state,po=fo.direction,ho=fo.original,mo=fo.width,vo=fo.height,bo=this.getParentSize(),xo=calculateNewMax(bo,this.window.innerWidth,this.window.innerHeight,io,so,ao,lo);io=xo.maxWidth,so=xo.maxHeight,ao=xo.minWidth,lo=xo.minHeight;var _o=this.calculateNewSizeFromDirection(uo,co),So=_o.newHeight,Eo=_o.newWidth,ko=this.calculateNewMaxFromBoundary(io,so);this.props.snap&&this.props.snap.x&&(Eo=findClosestSnap(Eo,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(So=findClosestSnap(So,this.props.snap.y,this.props.snapGap));var wo=this.calculateNewSizeFromAspectRatio(Eo,So,{width:ko.maxWidth,height:ko.maxHeight},{width:ao,height:lo});if(Eo=wo.newWidth,So=wo.newHeight,this.props.grid){var Co=snap(Eo,this.props.grid[0]),Ro=snap(So,this.props.grid[1]),Ao=this.props.snapGap||0;Eo=Ao===0||Math.abs(Co-Eo)<=Ao?Co:Eo,So=Ao===0||Math.abs(Ro-So)<=Ao?Ro:So}var Io={width:Eo-ho.width,height:So-ho.height};if(mo&&typeof mo=="string"){if(mo.endsWith("%")){var $o=Eo/bo.width*100;Eo=$o+"%"}else if(mo.endsWith("vw")){var Bo=Eo/this.window.innerWidth*100;Eo=Bo+"vw"}else if(mo.endsWith("vh")){var Mo=Eo/this.window.innerHeight*100;Eo=Mo+"vh"}}if(vo&&typeof vo=="string"){if(vo.endsWith("%")){var $o=So/bo.height*100;So=$o+"%"}else if(vo.endsWith("vw")){var Bo=So/this.window.innerWidth*100;So=Bo+"vw"}else if(vo.endsWith("vh")){var Mo=So/this.window.innerHeight*100;So=Mo+"vh"}}var Ho={width:this.createSizeForCssProperty(Eo,"width"),height:this.createSizeForCssProperty(So,"height")};this.flexDir==="row"?Ho.flexBasis=Ho.width:this.flexDir==="column"&&(Ho.flexBasis=Ho.height),reactDomExports.flushSync(function(){no.setState(Ho)}),this.props.onResize&&this.props.onResize(ro,po,this.resizable,Io)}},to.prototype.onMouseUp=function(ro){var no=this.state,oo=no.isResizing,io=no.direction,so=no.original;if(!(!oo||!this.resizable)){var ao={width:this.size.width-so.width,height:this.size.height-so.height};this.props.onResizeStop&&this.props.onResizeStop(ro,io,this.resizable,ao),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:__assign(__assign({},this.state.backgroundStyle),{cursor:"auto"})})}},to.prototype.updateSize=function(ro){this.setState({width:ro.width,height:ro.height})},to.prototype.renderResizer=function(){var ro=this,no=this.props,oo=no.enable,io=no.handleStyles,so=no.handleClasses,ao=no.handleWrapperStyle,lo=no.handleWrapperClass,uo=no.handleComponent;if(!oo)return null;var co=Object.keys(oo).map(function(fo){return oo[fo]!==!1?reactExports.createElement(Resizer,{key:fo,direction:fo,onResizeStart:ro.onResizeStart,replaceStyles:io&&io[fo],className:so&&so[fo]},uo&&uo[fo]?uo[fo]:null):null});return reactExports.createElement("div",{className:lo,style:ao},co)},to.prototype.render=function(){var ro=this,no=Object.keys(this.props).reduce(function(so,ao){return definedProps.indexOf(ao)!==-1||(so[ao]=ro.props[ao]),so},{}),oo=__assign(__assign(__assign({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&&(oo.flexBasis=this.state.flexBasis);var io=this.props.as||"div";return reactExports.createElement(io,__assign({ref:this.ref,style:oo,className:this.props.className},no),this.state.isResizing&&reactExports.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},to.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},to}(reactExports.PureComponent),_a$1;const tasksToTaskRows=(eo,to)=>eo.map(ro=>({...ro,level:to,children:ro.children?tasksToTaskRows(ro.children,to+1):void 0})),ev=class ev{constructor(){this.rows$=new State$1(List$1([])),this.selectedRowId$=new State$1(void 0),this.startTime=Number.MAX_SAFE_INTEGER,this.endTime=0}toggleRow(to){const ro=this.rows$.getSnapshot(),no=ro.findIndex(ao=>ao.id===to),oo=ro.get(no);if(!oo)return;const{children:io}=oo;if(!io)return;const so=[...ro];so[no]={...oo,isExpanded:!oo.isExpanded},oo.isExpanded?so.splice(no+1,io.length):so.splice(no+1,0,...io),this.rows$.next(List$1(so))}setRows(to){this.rows$.next(List$1(to))}setTasks(to){this.startTime=Number.MAX_SAFE_INTEGER,this.endTime=0,this.rows$.next(List$1(tasksToTaskRows(to,0)));const ro=no=>{no.forEach(oo=>{oo.startTimethis.endTime&&(this.endTime=oo.endTime),oo.children&&ro(oo.children)})};ro(to)}};_a$1=SINGLETON,ev[_a$1]=!0;let GanttViewModel=ev;const GanttViewModelToken=createInjectionToken("GanttViewModel",new GanttViewModel);function r$2(eo){var to,ro,no="";if(typeof eo=="string"||typeof eo=="number")no+=eo;else if(typeof eo=="object")if(Array.isArray(eo))for(to=0;to1&&(!eo.frozen||eo.idx+no-1<=to))return no}function stopPropagation(eo){eo.stopPropagation()}function scrollIntoView(eo){eo==null||eo.scrollIntoView({inline:"nearest",block:"nearest"})}function createCellEvent(eo){let to=!1;const ro={...eo,preventGridDefault(){to=!0},isGridDefaultPrevented(){return to}};return Object.setPrototypeOf(ro,Object.getPrototypeOf(eo)),ro}const nonInputKeys=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 isCtrlKeyHeldDown(eo){return(eo.ctrlKey||eo.metaKey)&&eo.key!=="Control"}function isDefaultCellInput(eo){return!nonInputKeys.has(eo.key)}function onEditorNavigation({key:eo,target:to}){var ro;return eo==="Tab"&&(to instanceof HTMLInputElement||to instanceof HTMLTextAreaElement||to instanceof HTMLSelectElement)?((ro=to.closest(".rdg-editor-container"))==null?void 0:ro.querySelectorAll("input, textarea, select").length)===1:!1}const measuringCellClassname="m1l09lto7-0-0-beta-39";function renderMeasuringCells(eo){return eo.map(({key:to,idx:ro,minWidth:no,maxWidth:oo})=>jsxRuntimeExports.jsx("div",{className:measuringCellClassname,style:{gridColumnStart:ro+1,minWidth:no,maxWidth:oo},"data-measuring-cell-key":to},to))}function isSelectedCellEditable({selectedPosition:eo,columns:to,rows:ro}){const no=to[eo.idx],oo=ro[eo.rowIdx];return isCellEditable(no,oo)}function isCellEditable(eo,to){return eo.renderEditCell!=null&&(typeof eo.editable=="function"?eo.editable(to):eo.editable)!==!1}function getSelectedCellColSpan({rows:eo,topSummaryRows:to,bottomSummaryRows:ro,rowIdx:no,mainHeaderRowIdx:oo,lastFrozenColumnIndex:io,column:so}){const ao=(to==null?void 0:to.length)??0;if(no===oo)return getColSpan(so,io,{type:"HEADER"});if(to&&no>oo&&no<=ao+oo)return getColSpan(so,io,{type:"SUMMARY",row:to[no+ao]});if(no>=0&&no{for(const Co of oo){const Ro=Co.idx;if(Ro>bo)break;const Ao=getSelectedCellColSpan({rows:io,topSummaryRows:so,bottomSummaryRows:ao,rowIdx:xo,mainHeaderRowIdx:uo,lastFrozenColumnIndex:mo,column:Co});if(Ao&&bo>Ro&&bowo.level+uo,ko=()=>{if(to){let Co=no[bo].parent;for(;Co!==void 0;){const Ro=Eo(Co);if(xo===Ro){bo=Co.idx+Co.colSpan;break}Co=Co.parent}}else if(eo){let Co=no[bo].parent,Ro=!1;for(;Co!==void 0;){const Ao=Eo(Co);if(xo>=Ao){bo=Co.idx,xo=Ao,Ro=!0;break}Co=Co.parent}Ro||(bo=fo,xo=po)}};if(vo(ho)&&(So(to),xo=Ro&&(xo=Ao,bo=Co.idx),Co=Co.parent}}return{idx:bo,rowIdx:xo}}function canExitGrid({maxColIdx:eo,minRowIdx:to,maxRowIdx:ro,selectedPosition:{rowIdx:no,idx:oo},shiftKey:io}){return io?oo===0&&no===to:oo===eo&&no===ro}const cell="c1wupbe7-0-0-beta-39",cellClassname=`rdg-cell ${cell}`,cellFrozen="cd0kgiy7-0-0-beta-39",cellFrozenClassname=`rdg-cell-frozen ${cellFrozen}`,cellFrozenLast="c1730fa47-0-0-beta-39",cellFrozenLastClassname=`rdg-cell-frozen-last ${cellFrozenLast}`;function getRowStyle(eo,to){return to!==void 0?{"--rdg-grid-row-start":eo,"--rdg-row-height":`${to}px`}:{"--rdg-grid-row-start":eo}}function getHeaderCellStyle(eo,to,ro){const no=to+1,oo=`calc(${ro-1} * var(--rdg-header-row-height))`;return eo.parent===void 0?{insetBlockStart:0,gridRowStart:1,gridRowEnd:no,paddingBlockStart:oo}:{insetBlockStart:`calc(${to-ro} * var(--rdg-header-row-height))`,gridRowStart:no-ro,gridRowEnd:no,paddingBlockStart:oo}}function getCellStyle(eo,to=1){const ro=eo.idx+1;return{gridColumnStart:ro,gridColumnEnd:ro+to,insetInlineStart:eo.frozen?`var(--rdg-frozen-left-${eo.idx})`:void 0}}function getCellClassname(eo,...to){return clsx(cellClassname,...to,eo.frozen&&cellFrozenClassname,eo.isLastFrozenColumn&&cellFrozenLastClassname)}const{min,max,round,floor,sign,abs:abs$1}=Math;function assertIsValidKeyGetter(eo){if(typeof eo!="function")throw new Error("Please specify the rowKeyGetter prop to use selection")}function clampColumnWidth(eo,{minWidth:to,maxWidth:ro}){return eo=max(eo,to),typeof ro=="number"&&ro>=to?min(eo,ro):eo}function getHeaderCellRowSpan(eo,to){return eo.parent===void 0?to:eo.level-eo.parent.level}const checkboxLabel="c1hs68w07-0-0-beta-39",checkboxLabelClassname=`rdg-checkbox-label ${checkboxLabel}`,checkboxInput="cojpd0n7-0-0-beta-39",checkboxInputClassname=`rdg-checkbox-input ${checkboxInput}`,checkbox="cwsfieb7-0-0-beta-39",checkboxClassname=`rdg-checkbox ${checkbox}`,checkboxLabelDisabled="c1fgadbl7-0-0-beta-39",checkboxLabelDisabledClassname=`rdg-checkbox-label-disabled ${checkboxLabelDisabled}`;function renderCheckbox({onChange:eo,...to}){function ro(no){eo(no.target.checked,no.nativeEvent.shiftKey)}return jsxRuntimeExports.jsxs("label",{className:clsx(checkboxLabelClassname,to.disabled&&checkboxLabelDisabledClassname),children:[jsxRuntimeExports.jsx("input",{type:"checkbox",...to,className:checkboxInputClassname,onChange:ro}),jsxRuntimeExports.jsx("div",{className:checkboxClassname})]})}function renderValue(eo){try{return eo.row[eo.column.key]}catch{return null}}const DataGridDefaultRenderersContext=reactExports.createContext(void 0),DataGridDefaultRenderersProvider=DataGridDefaultRenderersContext.Provider;function useDefaultRenderers(){return reactExports.useContext(DataGridDefaultRenderersContext)}const RowSelectionContext=reactExports.createContext(void 0),RowSelectionProvider=RowSelectionContext.Provider,RowSelectionChangeContext=reactExports.createContext(void 0),RowSelectionChangeProvider=RowSelectionChangeContext.Provider,SELECT_COLUMN_KEY="select-row",DEFAULT_COLUMN_WIDTH="auto",DEFAULT_COLUMN_MIN_WIDTH=50;function useCalculatedColumns({rawColumns:eo,defaultColumnOptions:to,measuredColumnWidths:ro,resizedColumnWidths:no,viewportWidth:oo,scrollLeft:io,enableVirtualization:so}){const ao=(to==null?void 0:to.width)??DEFAULT_COLUMN_WIDTH,lo=(to==null?void 0:to.minWidth)??DEFAULT_COLUMN_MIN_WIDTH,uo=(to==null?void 0:to.maxWidth)??void 0,co=(to==null?void 0:to.renderCell)??renderValue,fo=(to==null?void 0:to.sortable)??!1,po=(to==null?void 0:to.resizable)??!1,ho=(to==null?void 0:to.draggable)??!1,{columns:mo,colSpanColumns:vo,lastFrozenColumnIndex:bo,headerRowsCount:xo}=reactExports.useMemo(()=>{let Ro=-1,Ao=1;const Io=[];$o(eo,1);function $o(Mo,Ho,jo){for(const Oo of Mo){if("children"in Oo){const qo={name:Oo.name,parent:jo,idx:-1,colSpan:0,level:0,headerCellClass:Oo.headerCellClass};$o(Oo.children,Ho+1,qo);continue}const Fo=Oo.frozen??!1,Go={...Oo,parent:jo,idx:0,level:0,frozen:Fo,isLastFrozenColumn:!1,width:Oo.width??ao,minWidth:Oo.minWidth??lo,maxWidth:Oo.maxWidth??uo,sortable:Oo.sortable??fo,resizable:Oo.resizable??po,draggable:Oo.draggable??ho,renderCell:Oo.renderCell??co};Io.push(Go),Fo&&Ro++,Ho>Ao&&(Ao=Ho)}}Io.sort(({key:Mo,frozen:Ho},{key:jo,frozen:Oo})=>Mo===SELECT_COLUMN_KEY?-1:jo===SELECT_COLUMN_KEY?1:Ho?Oo?0:-1:Oo?1:0);const Bo=[];return Io.forEach((Mo,Ho)=>{Mo.idx=Ho,updateColumnParent(Mo,Ho,0),Mo.colSpan!=null&&Bo.push(Mo)}),Ro!==-1&&(Io[Ro].isLastFrozenColumn=!0),{columns:Io,colSpanColumns:Bo,lastFrozenColumnIndex:Ro,headerRowsCount:Ao}},[eo,ao,lo,uo,co,po,fo,ho]),{templateColumns:_o,layoutCssVars:So,totalFrozenColumnWidth:Eo,columnMetrics:ko}=reactExports.useMemo(()=>{const Ro=new Map;let Ao=0,Io=0;const $o=[];for(const Mo of mo){let Ho=no.get(Mo.key)??ro.get(Mo.key)??Mo.width;typeof Ho=="number"?Ho=clampColumnWidth(Ho,Mo):Ho=Mo.minWidth,$o.push(`${Ho}px`),Ro.set(Mo,{width:Ho,left:Ao}),Ao+=Ho}if(bo!==-1){const Mo=Ro.get(mo[bo]);Io=Mo.left+Mo.width}const Bo={};for(let Mo=0;Mo<=bo;Mo++){const Ho=mo[Mo];Bo[`--rdg-frozen-left-${Ho.idx}`]=`${Ro.get(Ho).left}px`}return{templateColumns:$o,layoutCssVars:Bo,totalFrozenColumnWidth:Io,columnMetrics:Ro}},[ro,no,mo,bo]),[wo,Co]=reactExports.useMemo(()=>{if(!so)return[0,mo.length-1];const Ro=io+Eo,Ao=io+oo,Io=mo.length-1,$o=min(bo+1,Io);if(Ro>=Ao)return[$o,$o];let Bo=$o;for(;BoRo)break;Bo++}let Mo=Bo;for(;Mo=Ao)break;Mo++}const Ho=max($o,Bo-1),jo=min(Io,Mo+1);return[Ho,jo]},[ko,mo,bo,io,Eo,oo,so]);return{columns:mo,colSpanColumns:vo,colOverscanStartIdx:wo,colOverscanEndIdx:Co,templateColumns:_o,layoutCssVars:So,headerRowsCount:xo,lastFrozenColumnIndex:bo,totalFrozenColumnWidth:Eo}}function updateColumnParent(eo,to,ro){if(ro"u"?reactExports.useEffect:reactExports.useLayoutEffect;function useColumnWidths(eo,to,ro,no,oo,io,so,ao,lo,uo){const co=reactExports.useRef(oo),fo=eo.length===to.length,po=fo&&oo!==co.current,ho=[...ro],mo=[];for(const{key:_o,idx:So,width:Eo}of to)typeof Eo=="string"&&(po||!so.has(_o))&&!io.has(_o)&&(ho[So]=Eo,mo.push(_o));const vo=ho.join(" ");useLayoutEffect(()=>{co.current=oo,bo(mo)});function bo(_o){_o.length!==0&&lo(So=>{const Eo=new Map(So);let ko=!1;for(const wo of _o){const Co=measureColumnWidth(no,wo);ko||(ko=Co!==So.get(wo)),Co===void 0?Eo.delete(wo):Eo.set(wo,Co)}return ko?Eo:So})}function xo(_o,So){const{key:Eo}=_o,ko=[...ro],wo=[];for(const{key:Ro,idx:Ao,width:Io}of to)if(Eo===Ro){const $o=typeof So=="number"?`${So}px`:So;ko[Ao]=$o}else fo&&typeof Io=="string"&&!io.has(Ro)&&(ko[Ao]=Io,wo.push(Ro));no.current.style.gridTemplateColumns=ko.join(" ");const Co=typeof So=="number"?So:measureColumnWidth(no,Eo);reactDomExports.flushSync(()=>{ao(Ro=>{const Ao=new Map(Ro);return Ao.set(Eo,Co),Ao}),bo(wo)}),uo==null||uo(_o.idx,Co)}return{gridTemplateColumns:vo,handleColumnResize:xo}}function measureColumnWidth(eo,to){const ro=`[data-measuring-cell-key="${CSS.escape(to)}"]`,no=eo.current.querySelector(ro);return no==null?void 0:no.getBoundingClientRect().width}function useGridDimensions(){const eo=reactExports.useRef(null),[to,ro]=reactExports.useState(1),[no,oo]=reactExports.useState(1);return useLayoutEffect(()=>{const{ResizeObserver:io}=window;if(io==null)return;const{clientWidth:so,clientHeight:ao,offsetWidth:lo,offsetHeight:uo}=eo.current,{width:co,height:fo}=eo.current.getBoundingClientRect(),po=co-lo+so,ho=fo-uo+ao;ro(po),oo(ho);const mo=new io(vo=>{const bo=vo[0].contentBoxSize[0];reactDomExports.flushSync(()=>{ro(bo.inlineSize),oo(bo.blockSize)})});return mo.observe(eo.current),()=>{mo.disconnect()}},[]),[eo,to,no]}function useLatestFunc(eo){const to=reactExports.useRef(eo);reactExports.useEffect(()=>{to.current=eo});const ro=reactExports.useCallback((...no)=>{to.current(...no)},[]);return eo&&ro}function useRovingTabIndex(eo){const[to,ro]=reactExports.useState(!1);to&&!eo&&ro(!1);function no(io){io.target!==io.currentTarget&&ro(!0)}return{tabIndex:eo&&!to?0:-1,childTabIndex:eo?0:-1,onFocus:eo?no:void 0}}function useViewportColumns({columns:eo,colSpanColumns:to,rows:ro,topSummaryRows:no,bottomSummaryRows:oo,colOverscanStartIdx:io,colOverscanEndIdx:so,lastFrozenColumnIndex:ao,rowOverscanStartIdx:lo,rowOverscanEndIdx:uo}){const co=reactExports.useMemo(()=>{if(io===0)return 0;let fo=io;const po=(ho,mo)=>mo!==void 0&&ho+mo>io?(fo=ho,!0):!1;for(const ho of to){const mo=ho.idx;if(mo>=fo||po(mo,getColSpan(ho,ao,{type:"HEADER"})))break;for(let vo=lo;vo<=uo;vo++){const bo=ro[vo];if(po(mo,getColSpan(ho,ao,{type:"ROW",row:bo})))break}if(no!=null){for(const vo of no)if(po(mo,getColSpan(ho,ao,{type:"SUMMARY",row:vo})))break}if(oo!=null){for(const vo of oo)if(po(mo,getColSpan(ho,ao,{type:"SUMMARY",row:vo})))break}}return fo},[lo,uo,ro,no,oo,io,ao,to]);return reactExports.useMemo(()=>{const fo=[];for(let po=0;po<=so;po++){const ho=eo[po];po{if(typeof to=="number")return{totalRowHeight:to*eo.length,gridTemplateRows:` repeat(${eo.length}, ${to}px)`,getRowTop:bo=>bo*to,getRowHeight:()=>to,findRowIdx:bo=>floor(bo/to)};let po=0,ho=" ";const mo=eo.map(bo=>{const xo=to(bo),_o={top:po,height:xo};return ho+=`${xo}px `,po+=xo,_o}),vo=bo=>max(0,min(eo.length-1,bo));return{totalRowHeight:po,gridTemplateRows:ho,getRowTop:bo=>mo[vo(bo)].top,getRowHeight:bo=>mo[vo(bo)].height,findRowIdx(bo){let xo=0,_o=mo.length-1;for(;xo<=_o;){const So=xo+floor((_o-xo)/2),Eo=mo[So].top;if(Eo===bo)return So;if(Eobo&&(_o=So-1),xo>_o)return _o}return 0}}},[to,eo]);let co=0,fo=eo.length-1;if(oo){const ho=uo(no),mo=uo(no+ro);co=max(0,ho-4),fo=min(eo.length-1,mo+4)}return{rowOverscanStartIdx:co,rowOverscanEndIdx:fo,totalRowHeight:io,gridTemplateRows:so,getRowTop:ao,getRowHeight:lo,findRowIdx:uo}}const cellDragHandle="cadd3bp7-0-0-beta-39",cellDragHandleFrozenClassname="ccmuez27-0-0-beta-39",cellDragHandleClassname=`rdg-cell-drag-handle ${cellDragHandle}`;function DragHandle({gridRowStart:eo,rows:to,columns:ro,selectedPosition:no,latestDraggedOverRowIdx:oo,isCellEditable:io,onRowsChange:so,onFill:ao,onClick:lo,setDragging:uo,setDraggedOverRowIdx:co}){var Eo;const{idx:fo,rowIdx:po}=no,ho=ro[fo];function mo(ko){if(ko.preventDefault(),ko.buttons!==1)return;uo(!0),window.addEventListener("mouseover",wo),window.addEventListener("mouseup",Co);function wo(Ro){Ro.buttons!==1&&Co()}function Co(){window.removeEventListener("mouseover",wo),window.removeEventListener("mouseup",Co),uo(!1),vo()}}function vo(){const ko=oo.current;if(ko===void 0)return;const wo=po0&&(so==null||so(Ao,{indexes:Io,column:Co}))}const _o=((Eo=ho.colSpan)==null?void 0:Eo.call(ho,{type:"ROW",row:to[po]}))??1,So=getCellStyle(ho,_o);return jsxRuntimeExports.jsx("div",{style:{...So,gridRowStart:eo,insetInlineStart:So.insetInlineStart&&typeof ho.width=="number"?`calc(${So.insetInlineStart} + ${ho.width}px - var(--rdg-drag-handle-size))`:void 0},className:clsx(cellDragHandleClassname,ho.frozen&&cellDragHandleFrozenClassname),onClick:lo,onMouseDown:mo,onDoubleClick:bo})}const cellEditing="c1tngyp17-0-0-beta-39";function EditCell({column:eo,colSpan:to,row:ro,rowIdx:no,onRowChange:oo,closeEditor:io,onKeyDown:so,navigate:ao}){var xo,_o,So;const lo=reactExports.useRef(),uo=((xo=eo.editorOptions)==null?void 0:xo.commitOnOutsideClick)!==!1,co=useLatestFunc(()=>{ho(!0,!1)});reactExports.useEffect(()=>{if(!uo)return;function Eo(){lo.current=requestAnimationFrame(co)}return addEventListener("mousedown",Eo,{capture:!0}),()=>{removeEventListener("mousedown",Eo,{capture:!0}),fo()}},[uo,co]);function fo(){cancelAnimationFrame(lo.current)}function po(Eo){if(so){const ko=createCellEvent(Eo);if(so({mode:"EDIT",row:ro,column:eo,rowIdx:no,navigate(){ao(Eo)},onClose:ho},ko),ko.isGridDefaultPrevented())return}Eo.key==="Escape"?ho():Eo.key==="Enter"?ho(!0):onEditorNavigation(Eo)&&ao(Eo)}function ho(Eo=!1,ko=!0){Eo?oo(ro,!0,ko):io(ko)}function mo(Eo,ko=!1){oo(Eo,ko,ko)}const{cellClass:vo}=eo,bo=getCellClassname(eo,"rdg-editor-container",typeof vo=="function"?vo(ro):vo,!((_o=eo.editorOptions)!=null&&_o.displayCellContent)&&cellEditing);return jsxRuntimeExports.jsx("div",{role:"gridcell","aria-colindex":eo.idx+1,"aria-colspan":to,"aria-selected":!0,className:bo,style:getCellStyle(eo,to),onKeyDown:po,onMouseDownCapture:fo,children:eo.renderEditCell!=null&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[eo.renderEditCell({column:eo,row:ro,onRowChange:mo,onClose:ho}),((So=eo.editorOptions)==null?void 0:So.displayCellContent)&&eo.renderCell({column:eo,row:ro,isCellEditable:!0,tabIndex:-1,onRowChange:mo})]})})}function GroupedColumnHeaderCell({column:eo,rowIdx:to,isCellSelected:ro,selectCell:no}){const{tabIndex:oo,onFocus:io}=useRovingTabIndex(ro),{colSpan:so}=eo,ao=getHeaderCellRowSpan(eo,to),lo=eo.idx+1;function uo(){no({idx:eo.idx,rowIdx:to})}return jsxRuntimeExports.jsx("div",{role:"columnheader","aria-colindex":lo,"aria-colspan":so,"aria-rowspan":ao,"aria-selected":ro,tabIndex:oo,className:clsx(cellClassname,eo.headerCellClass),style:{...getHeaderCellStyle(eo,to,ao),gridColumnStart:lo,gridColumnEnd:lo+so},onFocus:io,onClick:uo,children:eo.name})}const headerSortCellClassname="hizp7y17-0-0-beta-39",headerSortName="h14cojrm7-0-0-beta-39",headerSortNameClassname=`rdg-header-sort-name ${headerSortName}`;function renderHeaderCell({column:eo,sortDirection:to,priority:ro}){return eo.sortable?jsxRuntimeExports.jsx(SortableHeaderCell,{sortDirection:to,priority:ro,children:eo.name}):eo.name}function SortableHeaderCell({sortDirection:eo,priority:to,children:ro}){const no=useDefaultRenderers().renderSortStatus;return jsxRuntimeExports.jsxs("span",{className:headerSortCellClassname,children:[jsxRuntimeExports.jsx("span",{className:headerSortNameClassname,children:ro}),jsxRuntimeExports.jsx("span",{children:no({sortDirection:eo,priority:to})})]})}const cellSortableClassname="celq7o97-0-0-beta-39",cellResizable="ceqw94e7-0-0-beta-39",cellResizableClassname=`rdg-cell-resizable ${cellResizable}`,resizeHandleClassname="r12jy2ca7-0-0-beta-39",cellDragging="c1j3os1p7-0-0-beta-39",cellDraggingClassname=`rdg-cell-dragging ${cellDragging}`,cellOver="c1ui3nad7-0-0-beta-39",cellOverClassname=`rdg-cell-drag-over ${cellOver}`;function HeaderCell({column:eo,colSpan:to,rowIdx:ro,isCellSelected:no,onColumnResize:oo,onColumnsReorder:io,sortColumns:so,onSortColumnsChange:ao,selectCell:lo,shouldFocusGrid:uo,direction:co}){const[fo,po]=reactExports.useState(!1),[ho,mo]=reactExports.useState(!1),vo=co==="rtl",bo=getHeaderCellRowSpan(eo,ro),{tabIndex:xo,childTabIndex:_o,onFocus:So}=useRovingTabIndex(no),Eo=so==null?void 0:so.findIndex(As=>As.columnKey===eo.key),ko=Eo!==void 0&&Eo>-1?so[Eo]:void 0,wo=ko==null?void 0:ko.direction,Co=ko!==void 0&&so.length>1?Eo+1:void 0,Ro=wo&&!Co?wo==="ASC"?"ascending":"descending":void 0,{sortable:Ao,resizable:Io,draggable:$o}=eo,Bo=getCellClassname(eo,eo.headerCellClass,Ao&&cellSortableClassname,Io&&cellResizableClassname,fo&&cellDraggingClassname,ho&&cellOverClassname),Mo=eo.renderHeaderCell??renderHeaderCell;function Ho(As){if(As.pointerType==="mouse"&&As.buttons!==1)return;const{currentTarget:Ds,pointerId:Jo}=As,Cs=Ds.parentElement,{right:Bs,left:zs}=Cs.getBoundingClientRect(),Ls=vo?As.clientX-zs:Bs-As.clientX;function ga(Zs){Zs.preventDefault();const{right:$a,left:Ll}=Cs.getBoundingClientRect(),Kl=vo?$a+Ls-Zs.clientX:Zs.clientX+Ls-Ll;Kl>0&&oo(eo,clampColumnWidth(Kl,eo))}function Js(){Ds.removeEventListener("pointermove",ga),Ds.removeEventListener("lostpointercapture",Js)}Ds.setPointerCapture(Jo),Ds.addEventListener("pointermove",ga),Ds.addEventListener("lostpointercapture",Js)}function jo(As){if(ao==null)return;const{sortDescendingFirst:Ds}=eo;if(ko===void 0){const Jo={columnKey:eo.key,direction:Ds?"DESC":"ASC"};ao(so&&As?[...so,Jo]:[Jo])}else{let Jo;if((Ds===!0&&wo==="DESC"||Ds!==!0&&wo==="ASC")&&(Jo={columnKey:eo.key,direction:wo==="ASC"?"DESC":"ASC"}),As){const Cs=[...so];Jo?Cs[Eo]=Jo:Cs.splice(Eo,1),ao(Cs)}else ao(Jo?[Jo]:[])}}function Oo(As){lo({idx:eo.idx,rowIdx:ro}),Ao&&jo(As.ctrlKey||As.metaKey)}function Fo(){oo(eo,"max-content")}function Go(As){So==null||So(As),uo&&lo({idx:0,rowIdx:ro})}function qo(As){(As.key===" "||As.key==="Enter")&&(As.preventDefault(),jo(As.ctrlKey||As.metaKey))}function Xo(As){As.dataTransfer.setData("text/plain",eo.key),As.dataTransfer.dropEffect="move",po(!0)}function Zo(){po(!1)}function Qo(As){As.preventDefault(),As.dataTransfer.dropEffect="move"}function xs(As){mo(!1);const Ds=As.dataTransfer.getData("text/plain");Ds!==eo.key&&(As.preventDefault(),io==null||io(Ds,eo.key))}function Ts(As){isEventPertinent(As)&&mo(!0)}function Rs(As){isEventPertinent(As)&&mo(!1)}let Os;return $o&&(Os={draggable:!0,onDragStart:Xo,onDragEnd:Zo,onDragOver:Qo,onDragEnter:Ts,onDragLeave:Rs,onDrop:xs}),jsxRuntimeExports.jsxs("div",{role:"columnheader","aria-colindex":eo.idx+1,"aria-colspan":to,"aria-rowspan":bo,"aria-selected":no,"aria-sort":Ro,tabIndex:uo?0:xo,className:Bo,style:{...getHeaderCellStyle(eo,ro,bo),...getCellStyle(eo,to)},onFocus:Go,onClick:Oo,onKeyDown:Ao?qo:void 0,...Os,children:[Mo({column:eo,sortDirection:wo,priority:Co,tabIndex:_o}),Io&&jsxRuntimeExports.jsx("div",{className:resizeHandleClassname,onClick:stopPropagation,onDoubleClick:Fo,onPointerDown:Ho})]})}function isEventPertinent(eo){const to=eo.relatedTarget;return!eo.currentTarget.contains(to)}const row="r1otpg647-0-0-beta-39",rowClassname=`rdg-row ${row}`,rowSelected="rel5gk27-0-0-beta-39",rowSelectedClassname="rdg-row-selected",rowSelectedWithFrozenCell="r1qymf1z7-0-0-beta-39",headerRow="h197vzie7-0-0-beta-39",headerRowClassname=`rdg-header-row ${headerRow}`;function HeaderRow({rowIdx:eo,columns:to,onColumnResize:ro,onColumnsReorder:no,sortColumns:oo,onSortColumnsChange:io,lastFrozenColumnIndex:so,selectedCellIdx:ao,selectCell:lo,shouldFocusGrid:uo,direction:co}){const fo=[];for(let po=0;poto&&lo.parent!==void 0;)lo=lo.parent;if(lo.level===to&&!so.has(lo)){so.add(lo);const{idx:uo}=lo;io.push(jsxRuntimeExports.jsx(GroupedColumnHeaderCell,{column:lo,rowIdx:eo,isCellSelected:no===uo,selectCell:oo},uo))}}}return jsxRuntimeExports.jsx("div",{role:"row","aria-rowindex":eo,className:headerRowClassname,children:io})}const GroupedColumnHeaderRow$1=reactExports.memo(GroupedColumnHeaderRow),cellCopied="ccpfvsn7-0-0-beta-39",cellCopiedClassname=`rdg-cell-copied ${cellCopied}`,cellDraggedOver="c1bmg16t7-0-0-beta-39",cellDraggedOverClassname=`rdg-cell-dragged-over ${cellDraggedOver}`;function Cell({column:eo,colSpan:to,isCellSelected:ro,isCopied:no,isDraggedOver:oo,row:io,rowIdx:so,onClick:ao,onDoubleClick:lo,onContextMenu:uo,onRowChange:co,selectCell:fo,...po}){const{tabIndex:ho,childTabIndex:mo,onFocus:vo}=useRovingTabIndex(ro),{cellClass:bo}=eo,xo=getCellClassname(eo,typeof bo=="function"?bo(io):bo,no&&cellCopiedClassname,oo&&cellDraggedOverClassname),_o=isCellEditable(eo,io);function So(Ro){fo({rowIdx:so,idx:eo.idx},Ro)}function Eo(Ro){if(ao){const Ao=createCellEvent(Ro);if(ao({row:io,column:eo,selectCell:So},Ao),Ao.isGridDefaultPrevented())return}So()}function ko(Ro){if(uo){const Ao=createCellEvent(Ro);if(uo({row:io,column:eo,selectCell:So},Ao),Ao.isGridDefaultPrevented())return}So()}function wo(Ro){if(lo){const Ao=createCellEvent(Ro);if(lo({row:io,column:eo,selectCell:So},Ao),Ao.isGridDefaultPrevented())return}So(!0)}function Co(Ro){co(eo,Ro)}return jsxRuntimeExports.jsx("div",{role:"gridcell","aria-colindex":eo.idx+1,"aria-colspan":to,"aria-selected":ro,"aria-readonly":!_o||void 0,tabIndex:ho,className:xo,style:getCellStyle(eo,to),onClick:Eo,onDoubleClick:wo,onContextMenu:ko,onFocus:vo,...po,children:eo.renderCell({column:eo,row:io,isCellEditable:_o,tabIndex:mo,onRowChange:Co})})}const Cell$1=reactExports.memo(Cell);function Row({className:eo,rowIdx:to,gridRowStart:ro,height:no,selectedCellIdx:oo,isRowSelected:io,copiedCellIdx:so,draggedOverCellIdx:ao,lastFrozenColumnIndex:lo,row:uo,viewportColumns:co,selectedCellEditor:fo,onCellClick:po,onCellDoubleClick:ho,onCellContextMenu:mo,rowClass:vo,setDraggedOverRowIdx:bo,onMouseEnter:xo,onRowChange:_o,selectCell:So,...Eo},ko){const wo=useLatestFunc((Ao,Io)=>{_o(Ao,to,Io)});function Co(Ao){bo==null||bo(to),xo==null||xo(Ao)}eo=clsx(rowClassname,`rdg-row-${to%2===0?"even":"odd"}`,vo==null?void 0:vo(uo,to),eo,oo===-1&&rowSelectedClassname);const Ro=[];for(let Ao=0;Ao{scrollIntoView(oo.current)}),useLayoutEffect(()=>{function io(){no(null)}const so=new IntersectionObserver(io,{root:ro,threshold:1});return so.observe(oo.current),()=>{so.disconnect()}},[ro,no]),jsxRuntimeExports.jsx("div",{ref:oo,style:{gridColumn:eo===void 0?"1/-1":eo+1,gridRow:to===void 0?"1/-1":to+2}})}const arrow="a1mygwml7-0-0-beta-39",arrowClassname=`rdg-sort-arrow ${arrow}`;function renderSortStatus({sortDirection:eo,priority:to}){return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderSortIcon({sortDirection:eo}),renderSortPriority({priority:to})]})}function renderSortIcon({sortDirection:eo}){return eo===void 0?null:jsxRuntimeExports.jsx("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:arrowClassname,"aria-hidden":!0,children:jsxRuntimeExports.jsx("path",{d:eo==="ASC"?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}function renderSortPriority({priority:eo}){return eo}const root="r104f42s7-0-0-beta-39",rootClassname=`rdg ${root}`,viewportDragging="v7ly7s7-0-0-beta-39",viewportDraggingClassname=`rdg-viewport-dragging ${viewportDragging}`,focusSinkClassname="fc4f4zb7-0-0-beta-39",focusSinkHeaderAndSummaryClassname="fq51q037-0-0-beta-39",summaryCellClassname="s1n3hxke7-0-0-beta-39";function SummaryCell({column:eo,colSpan:to,row:ro,rowIdx:no,isCellSelected:oo,selectCell:io}){var po;const{tabIndex:so,childTabIndex:ao,onFocus:lo}=useRovingTabIndex(oo),{summaryCellClass:uo}=eo,co=getCellClassname(eo,summaryCellClassname,typeof uo=="function"?uo(ro):uo);function fo(){io({rowIdx:no,idx:eo.idx})}return jsxRuntimeExports.jsx("div",{role:"gridcell","aria-colindex":eo.idx+1,"aria-colspan":to,"aria-selected":oo,tabIndex:so,className:co,style:getCellStyle(eo,to),onClick:fo,onFocus:lo,children:(po=eo.renderSummaryCell)==null?void 0:po.call(eo,{column:eo,row:ro,tabIndex:ao})})}const SummaryCell$1=reactExports.memo(SummaryCell),summaryRow="snfqesz7-0-0-beta-39",topSummaryRow="t1jijrjz7-0-0-beta-39",topSummaryRowBorderClassname="t14bmecc7-0-0-beta-39",bottomSummaryRowBorderClassname="b1odhhml7-0-0-beta-39",summaryRowClassname=`rdg-summary-row ${summaryRow}`,topSummaryRowClassname=`rdg-top-summary-row ${topSummaryRow}`;function SummaryRow({rowIdx:eo,gridRowStart:to,row:ro,viewportColumns:no,top:oo,bottom:io,lastFrozenColumnIndex:so,selectedCellIdx:ao,isTop:lo,showBorder:uo,selectCell:co,"aria-rowindex":fo}){const po=[];for(let ho=0;honew Map),[Zl,$l]=reactExports.useState(()=>new Map),[xa,Sl]=reactExports.useState(null),[cu,ks]=reactExports.useState(!1),[Es,bs]=reactExports.useState(void 0),[ws,Gs]=reactExports.useState(null),[Ks,Ms,Hs]=useGridDimensions(),{columns:Qs,colSpanColumns:El,lastFrozenColumnIndex:xl,headerRowsCount:Ol,colOverscanStartIdx:ru,colOverscanEndIdx:au,templateColumns:zl,layoutCssVars:hu,totalFrozenColumnWidth:xu}=useCalculatedColumns({rawColumns:ro,defaultColumnOptions:vo,measuredColumnWidths:Zl,resizedColumnWidths:Ll,scrollLeft:Zs,viewportWidth:Ms,enableVirtualization:zs}),Ql=(oo==null?void 0:oo.length)??0,Dl=(io==null?void 0:io.length)??0,gu=Ql+Dl,lu=Ol+Ql,mu=Ol-1,ou=-lu,Fl=ou+mu,yl=no.length+Dl-1,[Xs,vu]=reactExports.useState(()=>({idx:-1,rowIdx:ou-1,mode:"SELECT"})),$u=reactExports.useRef(Xs),du=reactExports.useRef(Es),d1=reactExports.useRef(-1),qu=reactExports.useRef(null),Iu=reactExports.useRef(!1),e1=Ts==="treegrid",qs=Ol*Os,Ko=Hs-qs-gu*As,Uo=fo!=null&&po!=null,Po=Ls==="rtl",zo=Po?"ArrowRight":"ArrowLeft",Do=Po?"ArrowLeft":"ArrowRight",Yo=Zo??Ol+no.length+gu,vs=reactExports.useMemo(()=>({renderCheckbox:Cs,renderSortStatus:Jo}),[Cs,Jo]),ys=reactExports.useMemo(()=>{const{length:Ys}=no;return Ys!==0&&fo!=null&&so!=null&&fo.size>=Ys&&no.every(na=>fo.has(so(na)))},[no,fo,so]),{rowOverscanStartIdx:hs,rowOverscanEndIdx:Is,totalRowHeight:Us,gridTemplateRows:Il,getRowTop:Ml,getRowHeight:Rl,findRowIdx:Cl}=useViewportRows({rows:no,rowHeight:Rs,clientHeight:Ko,scrollTop:ga,enableVirtualization:zs}),Ul=useViewportColumns({columns:Qs,colSpanColumns:El,colOverscanStartIdx:ru,colOverscanEndIdx:au,lastFrozenColumnIndex:xl,rowOverscanStartIdx:hs,rowOverscanEndIdx:Is,rows:no,topSummaryRows:oo,bottomSummaryRows:io}),{gridTemplateColumns:fu,handleColumnResize:Bl}=useColumnWidths(Qs,Ul,zl,Ks,Ms,Ll,Zl,Kl,$l,wo),Su=e1?-1:0,Nu=Qs.length-1,zu=hp(Xs),f1=gp(Xs),Xu=useLatestFunc(Bl),A1=useLatestFunc(Co),p1=useLatestFunc(mo),Au=useLatestFunc(bo),t1=useLatestFunc(xo),w1=useLatestFunc(_o),h1=useLatestFunc(I1),R1=useLatestFunc(S1),g1=useLatestFunc(V1),H1=useLatestFunc(({idx:Ys,rowIdx:na})=>{V1({rowIdx:ou+na-1,idx:Ys})});useLayoutEffect(()=>{if(!zu||isSamePosition(Xs,$u.current)){$u.current=Xs;return}$u.current=Xs,Xs.idx===-1&&(qu.current.focus({preventScroll:!0}),scrollIntoView(qu.current))}),useLayoutEffect(()=>{Iu.current&&(Iu.current=!1,$p())}),reactExports.useImperativeHandle(to,()=>({element:Ks.current,scrollToCell({idx:Ys,rowIdx:na}){const Wl=Ys!==void 0&&Ys>xl&&Ys{bs(Ys),du.current=Ys},[]);function I1(Ys){if(!po)return;if(assertIsValidKeyGetter(so),Ys.type==="HEADER"){const bu=new Set(fo);for(const _u of no){const Ou=so(_u);Ys.checked?bu.add(Ou):bu.delete(Ou)}po(bu);return}const{row:na,checked:Wl,isShiftClick:Hl}=Ys,Al=new Set(fo),Nl=so(na);if(Wl){Al.add(Nl);const bu=d1.current,_u=no.indexOf(na);if(d1.current=_u,Hl&&bu!==-1&&bu!==_u){const Ou=sign(_u-bu);for(let r1=bu+Ou;r1!==_u;r1+=Ou){const $1=no[r1];Al.add(so($1))}}}else Al.delete(Nl),d1.current=-1;po(Al)}function N1(Ys){const{idx:na,rowIdx:Wl,mode:Hl}=Xs;if(Hl==="EDIT")return;if(So&&tp(Wl)){const _u=no[Wl],Ou=createCellEvent(Ys);if(So({mode:"SELECT",row:_u,column:Qs[na],rowIdx:Wl,selectCell:V1},Ou),Ou.isGridDefaultPrevented())return}if(!(Ys.target instanceof Element))return;const Al=Ys.target.closest(".rdg-cell")!==null,Nl=e1&&Ys.target===qu.current;if(!Al&&!Nl)return;const{keyCode:bu}=Ys;if(f1&&(Io!=null||Ao!=null)&&isCtrlKeyHeldDown(Ys)){if(bu===67){Ip();return}if(bu===86){G1();return}}switch(Ys.key){case"Escape":Sl(null);return;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":Qp(Ys);break;default:Zp(Ys);break}}function x1(Ys){const{scrollTop:na,scrollLeft:Wl}=Ys.currentTarget;reactDomExports.flushSync(()=>{Js(na),$a(abs$1(Wl))}),ko==null||ko(Ys)}function S1(Ys,na,Wl){if(typeof ao!="function"||Wl===no[na])return;const Hl=[...no];Hl[na]=Wl,ao(Hl,{indexes:[na],column:Ys})}function pp(){Xs.mode==="EDIT"&&S1(Qs[Xs.idx],Xs.rowIdx,Xs.row)}function Ip(){const{idx:Ys,rowIdx:na}=Xs,Wl=no[na],Hl=Qs[Ys].key;Sl({row:Wl,columnKey:Hl}),Ao==null||Ao({sourceRow:Wl,sourceColumnKey:Hl})}function G1(){if(!Io||!ao||xa===null||!rp(Xs))return;const{idx:Ys,rowIdx:na}=Xs,Wl=Qs[Ys],Hl=no[na],Al=Io({sourceRow:xa.row,sourceColumnKey:xa.columnKey,targetRow:Hl,targetColumnKey:Wl.key});S1(Wl,na,Al)}function Zp(Ys){if(!f1)return;const na=no[Xs.rowIdx],{key:Wl,shiftKey:Hl}=Ys;if(Uo&&Hl&&Wl===" "){assertIsValidKeyGetter(so);const Al=so(na);I1({type:"ROW",row:na,checked:!fo.has(Al),isShiftClick:!1}),Ys.preventDefault();return}rp(Xs)&&isDefaultCellInput(Ys)&&vu(({idx:Al,rowIdx:Nl})=>({idx:Al,rowIdx:Nl,mode:"EDIT",row:na,originalRow:na}))}function Np(Ys){return Ys>=Su&&Ys<=Nu}function tp(Ys){return Ys>=0&&Ys=ou&&na<=yl&&Np(Ys)}function gp({idx:Ys,rowIdx:na}){return tp(na)&&Np(Ys)}function rp(Ys){return gp(Ys)&&isSelectedCellEditable({columns:Qs,rows:no,selectedPosition:Ys})}function V1(Ys,na){if(!hp(Ys))return;pp();const Wl=no[Ys.rowIdx],Hl=isSamePosition(Xs,Ys);na&&rp(Ys)?vu({...Ys,mode:"EDIT",row:Wl,originalRow:Wl}):Hl?scrollIntoView(getCellToScroll(Ks.current)):(Iu.current=!0,vu({...Ys,mode:"SELECT"})),Eo&&!Hl&&Eo({rowIdx:Ys.rowIdx,row:Wl,column:Qs[Ys.idx]})}function Fm(Ys,na,Wl){const{idx:Hl,rowIdx:Al}=Xs,Nl=zu&&Hl===-1;switch(Ys){case"ArrowUp":return{idx:Hl,rowIdx:Al-1};case"ArrowDown":return{idx:Hl,rowIdx:Al+1};case zo:return{idx:Hl-1,rowIdx:Al};case Do:return{idx:Hl+1,rowIdx:Al};case"Tab":return{idx:Hl+(Wl?-1:1),rowIdx:Al};case"Home":return Nl?{idx:Hl,rowIdx:ou}:{idx:0,rowIdx:na?ou:Al};case"End":return Nl?{idx:Hl,rowIdx:yl}:{idx:Nu,rowIdx:na?yl:Al};case"PageUp":{if(Xs.rowIdx===ou)return Xs;const bu=Ml(Al)+Rl(Al)-Ko;return{idx:Hl,rowIdx:bu>0?Cl(bu):0}}case"PageDown":{if(Xs.rowIdx>=no.length)return Xs;const bu=Ml(Al)+Ko;return{idx:Hl,rowIdx:buYs&&Ys>=Es)?Xs.idx:void 0}function $p(){const Ys=getCellToScroll(Ks.current);if(Ys===null)return;scrollIntoView(Ys),(Ys.querySelector('[tabindex="0"]')??Ys).focus({preventScroll:!0})}function Pm(){if(!(Ro==null||Xs.mode==="EDIT"||!gp(Xs)))return jsxRuntimeExports.jsx(DragHandle,{gridRowStart:lu+Xs.rowIdx+1,rows:no,columns:Qs,selectedPosition:Xs,isCellEditable:rp,latestDraggedOverRowIdx:du,onRowsChange:ao,onClick:$p,onFill:Ro,setDragging:ks,setDraggedOverRowIdx:E1})}function zm(Ys){if(Xs.rowIdx!==Ys||Xs.mode==="SELECT")return;const{idx:na,row:Wl}=Xs,Hl=Qs[na],Al=getColSpan(Hl,xl,{type:"ROW",row:Wl}),Nl=_u=>{Iu.current=_u,vu(({idx:Ou,rowIdx:r1})=>({idx:Ou,rowIdx:r1,mode:"SELECT"}))},bu=(_u,Ou,r1)=>{Ou?reactDomExports.flushSync(()=>{S1(Hl,Xs.rowIdx,_u),Nl(r1)}):vu($1=>({...$1,row:_u}))};return no[Xs.rowIdx]!==Xs.originalRow&&Nl(!1),jsxRuntimeExports.jsx(EditCell,{column:Hl,colSpan:Al,row:Wl,rowIdx:Ys,onRowChange:bu,closeEditor:Nl,onKeyDown:So,navigate:Qp},Hl.key)}function np(Ys){const na=Xs.idx===-1?void 0:Qs[Xs.idx];return na!==void 0&&Xs.rowIdx===Ys&&!Ul.includes(na)?Xs.idx>au?[...Ul,na]:[...Ul.slice(0,xl+1),na,...Ul.slice(xl+1)]:Ul}function Hm(){const Ys=[],{idx:na,rowIdx:Wl}=Xs,Hl=f1&&WlIs?Is+1:Is;for(let Nl=Hl;Nl<=Al;Nl++){const bu=Nl===hs-1||Nl===Is+1,_u=bu?Wl:Nl;let Ou=Ul;const r1=na===-1?void 0:Qs[na];r1!==void 0&&(bu?Ou=[r1]:Ou=np(_u));const $1=no[_u],Gm=lu+_u+1;let mp=_u,Op=!1;typeof so=="function"&&(mp=so($1),Op=(fo==null?void 0:fo.has(mp))??!1),Ys.push(Ds(mp,{"aria-rowindex":lu+_u+1,"aria-selected":Uo?Op:void 0,rowIdx:_u,row:$1,viewportColumns:Ou,isRowSelected:Op,onCellClick:Au,onCellDoubleClick:t1,onCellContextMenu:w1,rowClass:jo,gridRowStart:Gm,height:Rl(_u),copiedCellIdx:xa!==null&&xa.row===$1?Qs.findIndex(Du=>Du.key===xa.columnKey):void 0,selectedCellIdx:Wl===_u?na:void 0,draggedOverCellIdx:jm(_u),setDraggedOverRowIdx:cu?E1:void 0,lastFrozenColumnIndex:xl,onRowChange:R1,selectCell:g1,selectedCellEditor:zm(_u)}))}return Ys}(Xs.idx>Nu||Xs.rowIdx>yl)&&(vu({idx:-1,rowIdx:ou-1,mode:"SELECT"}),E1(void 0));let q1=`repeat(${Ol}, ${Os}px)`;Ql>0&&(q1+=` repeat(${Ql}, ${As}px)`),no.length>0&&(q1+=Il),Dl>0&&(q1+=` repeat(${Dl}, ${As}px)`);const Jp=Xs.idx===-1&&Xs.rowIdx!==ou-1;return jsxRuntimeExports.jsxs("div",{role:Ts,"aria-label":Go,"aria-labelledby":qo,"aria-describedby":Xo,"aria-multiselectable":Uo?!0:void 0,"aria-colcount":Qs.length,"aria-rowcount":Yo,className:clsx(rootClassname,Mo,cu&&viewportDraggingClassname),style:{...Ho,scrollPaddingInlineStart:Xs.idx>xl||(ws==null?void 0:ws.idx)!==void 0?`${xu}px`:void 0,scrollPaddingBlock:tp(Xs.rowIdx)||(ws==null?void 0:ws.rowIdx)!==void 0?`${qs+Ql*As}px ${Dl*As}px`:void 0,gridTemplateColumns:fu,gridTemplateRows:q1,"--rdg-header-row-height":`${Os}px`,"--rdg-summary-row-height":`${As}px`,"--rdg-sign":Po?-1:1,...hu},dir:Ls,ref:Ks,onScroll:x1,onKeyDown:N1,"data-testid":Qo,children:[jsxRuntimeExports.jsx(DataGridDefaultRenderersProvider,{value:vs,children:jsxRuntimeExports.jsxs(RowSelectionChangeProvider,{value:h1,children:[jsxRuntimeExports.jsxs(RowSelectionProvider,{value:ys,children:[Array.from({length:mu},(Ys,na)=>jsxRuntimeExports.jsx(GroupedColumnHeaderRow$1,{rowIdx:na+1,level:-mu+na,columns:np(ou+na),selectedCellIdx:Xs.rowIdx===ou+na?Xs.idx:void 0,selectCell:H1},na)),jsxRuntimeExports.jsx(HeaderRow$1,{rowIdx:Ol,columns:np(Fl),onColumnResize:Xu,onColumnsReorder:A1,sortColumns:ho,onSortColumnsChange:p1,lastFrozenColumnIndex:xl,selectedCellIdx:Xs.rowIdx===Fl?Xs.idx:void 0,selectCell:H1,shouldFocusGrid:!zu,direction:Ls})]}),no.length===0&&Bs?Bs:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[oo==null?void 0:oo.map((Ys,na)=>{const Wl=Ol+1+na,Hl=Fl+1+na,Al=Xs.rowIdx===Hl,Nl=qs+As*na;return jsxRuntimeExports.jsx(SummaryRow$1,{"aria-rowindex":Wl,rowIdx:Hl,gridRowStart:Wl,row:Ys,top:Nl,bottom:void 0,viewportColumns:np(Hl),lastFrozenColumnIndex:xl,selectedCellIdx:Al?Xs.idx:void 0,isTop:!0,showBorder:na===Ql-1,selectCell:g1},na)}),Hm(),io==null?void 0:io.map((Ys,na)=>{const Wl=lu+no.length+na+1,Hl=no.length+na,Al=Xs.rowIdx===Hl,Nl=Ko>Us?Hs-As*(io.length-na):void 0,bu=Nl===void 0?As*(io.length-1-na):void 0;return jsxRuntimeExports.jsx(SummaryRow$1,{"aria-rowindex":Yo-Dl+na+1,rowIdx:Hl,gridRowStart:Wl,row:Ys,top:Nl,bottom:bu,viewportColumns:np(Hl),lastFrozenColumnIndex:xl,selectedCellIdx:Al?Xs.idx:void 0,isTop:!1,showBorder:na===0,selectCell:g1},na)})]})]})}),Pm(),renderMeasuringCells(Ul),e1&&jsxRuntimeExports.jsx("div",{ref:qu,tabIndex:Jp?0:-1,className:clsx(focusSinkClassname,Jp&&[rowSelected,xl!==-1&&rowSelectedWithFrozenCell],!tp(Xs.rowIdx)&&focusSinkHeaderAndSummaryClassname),style:{gridRowStart:Xs.rowIdx+lu+1}}),ws!==null&&jsxRuntimeExports.jsx(ScrollToCell,{scrollToPosition:ws,setScrollToCellPosition:Gs,gridElement:Ks.current})]})}function getCellToScroll(eo){return eo.querySelector(':scope > [role="row"] > [tabindex="0"]')}function isSamePosition(eo,to){return eo.idx===to.idx&&eo.rowIdx===to.rowIdx}const DataGrid$1$1=reactExports.forwardRef(DataGrid$2),useGanttViewModel=()=>{const[eo]=useInjected(GanttViewModelToken);return eo},useGanttViewRows=()=>{const eo=useGanttViewModel();return useState(eo.rows$).toArray()},useToggleSubRows=()=>{const eo=useGanttViewModel();return reactExports.useCallback(to=>{eo.toggleRow(to)},[eo])},useTasksTimeBoundaries=()=>{const eo=useGanttViewModel();return[eo.startTime,eo.endTime]},useSelectedRow=()=>{const eo=useGanttViewModel();return useState(eo.selectedRowId$)},useSetSelectedRow=()=>{const eo=useGanttViewModel();return useSetState(eo.selectedRowId$)},GanttChartCell=({row:eo})=>{const[to,ro]=useTasksTimeBoundaries(),no=`${(eo.startTime-to)*100/(ro-to)}%`,oo=`${(ro-eo.endTime)*100/(ro-to)}%`,io=eo.children&&eo.children.length>0,so=eo.isExpanded;return jsxRuntimeExports.jsx("div",{style:{marginLeft:no,marginRight:oo,height:"100%",marginTop:4,marginBottom:4,display:"flex"},children:io&&!so?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:(eo.children??[]).map((ao,lo)=>{const uo=`${(ao.endTime-ao.startTime)*100/(eo.endTime-eo.startTime)}%`;return jsxRuntimeExports.jsx("div",{style:{backgroundColor:ao.color??`rgba(0, 120, 212, ${1-.2*lo})`,width:uo}},ao.id)})}):jsxRuntimeExports.jsx("div",{style:{backgroundColor:eo.color??"rgba(0, 120, 212, 1)",width:"100%"}})})},NameCell=({row:eo})=>{const to=eo.children!==void 0&&eo.children.length>0,ro=eo.isExpanded,no=useToggleSubRows(),oo=reactExports.useCallback(io=>{io.preventDefault(),io.stopPropagation(),no(eo.id)},[eo.id,no]);return jsxRuntimeExports.jsxs("div",{style:{display:"flex",gap:4,paddingLeft:eo.level*24},children:[to?jsxRuntimeExports.jsx("div",{onClick:oo,role:"button",children:ro?"▼":"▶"}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}),jsxRuntimeExports.jsx("div",{children:eo.node_name||eo.name})]})},defaultColumns=[{key:"name",name:"node name",resizable:!0,width:320,renderCell({row:eo}){return jsxRuntimeExports.jsx(NameCell,{row:eo})}},{key:"duration",name:"duration",resizable:!0,width:60,renderHeaderCell(){return jsxRuntimeExports.jsx("div",{style:{textAlign:"right"},children:"duration"})},renderCell({row:eo}){return jsxRuntimeExports.jsxs("div",{style:{textAlign:"right"},children:[Math.round((eo.endTime-eo.startTime)*1e3).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")," ","ms"]})}},{key:"ganttChart",name:"gantt-chart",renderCell({row:eo}){return jsxRuntimeExports.jsx(GanttChartCell,{row:eo})},renderHeaderCell:()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}],GanttGridView=({styles:eo,getColumns:to=ro=>ro})=>{const ro=useGanttViewRows(),no=useSetSelectedRow(),oo=useSelectedRow(),io=reactExports.useCallback(lo=>{const{row:uo}=lo;no(uo.id)},[no]),so=mergeStyles$1(eo==null?void 0:eo.grid,{borderBottom:"none",borderRight:"none"}),ao=reactExports.useCallback(lo=>mergeStyles$1(oo===lo.id?eo==null?void 0:eo.selectedRow:""),[oo,eo==null?void 0:eo.selectedRow]);return jsxRuntimeExports.jsx(DataGrid$1$1,{rows:ro,columns:to(defaultColumns),onCellClick:io,className:so,rowClass:ao})},Wrapper=({viewModel:eo,children:to})=>{const ro=createRegistry({name:"gantt-wrapper"}),no=reactExports.useCallback(oo=>{oo.register(GanttViewModelToken,{useValue:eo})},[eo]);return jsxRuntimeExports.jsx(ro,{onInitialize:no,children:to})};var GanttGridTheme=(eo=>(eo.Light="rdg-light",eo.Dark="rdg-dark",eo))(GanttGridTheme||{});const Gantt=({viewModel:eo,styles:to,getColumns:ro})=>jsxRuntimeExports.jsx(Wrapper,{viewModel:eo,children:jsxRuntimeExports.jsx(GanttGridView,{styles:to,getColumns:ro})}),TraceDetailTemplate=({trace:eo,JSONView:to})=>{const ro=mergeStyleSets({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"}]}),no=eo.node_name??eo.name??"",oo=getTokensUsageByRow(eo),io=eo.inputs??{},so=eo.output??{};return jsxRuntimeExports.jsxs("div",{className:ro.root,children:[jsxRuntimeExports.jsx("div",{className:ro.header,children:no}),jsxRuntimeExports.jsxs("div",{className:ro.section,children:[jsxRuntimeExports.jsx("div",{className:ro.sectionTitle,children:"Overview"}),jsxRuntimeExports.jsx("div",{className:ro.sectionContent,children:jsxRuntimeExports.jsxs("div",{className:ro.overviewContainer,children:[jsxRuntimeExports.jsxs("div",{className:ro.overviewColumn,children:[jsxRuntimeExports.jsx("div",{className:ro.fieldTitle,children:"total tokens"}),jsxRuntimeExports.jsx("div",{children:numberToDigitsString(oo.totalTokens)}),jsxRuntimeExports.jsx("div",{className:ro.fieldTitle,children:"prompt tokens"}),jsxRuntimeExports.jsx("div",{children:numberToDigitsString(oo.promptTokens)}),jsxRuntimeExports.jsx("div",{className:ro.fieldTitle,children:"completion tokens"}),jsxRuntimeExports.jsx("div",{children:numberToDigitsString(oo.completionTokens)})]}),jsxRuntimeExports.jsxs("div",{className:ro.overviewColumn,children:[jsxRuntimeExports.jsx("div",{className:ro.fieldTitle,children:"duration"}),jsxRuntimeExports.jsx("div",{children:eo.end_time&&eo.start_time?`${Math.round((eo.end_time-eo.start_time)*1e3).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")} ms`:"N/A"}),jsxRuntimeExports.jsx("div",{className:ro.fieldTitle,children:"started at"}),jsxRuntimeExports.jsx("div",{children:eo.start_time?timePDTFormatter(eo.start_time*1e3):"N/A"}),jsxRuntimeExports.jsx("div",{className:ro.fieldTitle,children:"finished at"}),jsxRuntimeExports.jsx("div",{children:eo.end_time?timePDTFormatter(eo.end_time*1e3):"N/A"})]})]})})]}),jsxRuntimeExports.jsxs("div",{className:ro.section,children:[jsxRuntimeExports.jsx("div",{className:ro.sectionTitle,children:"Inputs"}),jsxRuntimeExports.jsx("div",{className:ro.sectionContent,children:jsxRuntimeExports.jsx(to,{src:io})})]}),jsxRuntimeExports.jsxs("div",{className:ro.section,children:[jsxRuntimeExports.jsx("div",{className:ro.sectionTitle,children:"Outputs"}),jsxRuntimeExports.jsx("div",{className:ro.sectionContent,children:jsxRuntimeExports.jsx(to,{src:so})})]})]})},traceMap=new Map,hashTraceName=eo=>{let to=0,ro=0;if(eo.length===0)return to;for(let no=0;noeo.map(to=>{const ro=uuid_1.v4();return traceMap.set(ro,to),{startTime:to.start_time??performance.now(),endTime:to.end_time??performance.now(),color:SystemColors[hashTraceName(to.name??"")%systemColorsLength],id:ro,name:to.name??"",node_name:to.node_name??"",output:to.output??[],children:to.children?parseTrace(to.children):void 0}}),DefaultGridContainer=({children:eo,className:to})=>jsxRuntimeExports.jsx(Resizable,{enable:{right:!0},className:to,defaultSize:{width:"50%",height:"100%"},children:eo}),DefaultContainer=({children:eo,className:to})=>jsxRuntimeExports.jsx("div",{className:to,children:eo}),ApiLogs=reactExports.forwardRef(({traces:eo,styles:to,isDarkMode:ro=!1,classNames:no,RootContainer:oo=DefaultContainer,GridContainer:io=DefaultGridContainer,DetailContainer:so=DefaultContainer,renderDetail:ao=fo=>jsxRuntimeExports.jsx(TraceDetailTemplate,{JSONView:po=>jsxRuntimeExports.jsx("pre",{children:JSON.stringify(po)}),trace:fo}),onChangeSelectedTrace:lo,renderUnselectedHint:uo=()=>jsxRuntimeExports.jsx("div",{children:"Click on a row to see details"})},co)=>{const fo=reactExports.useMemo(()=>eo.reduce((wo,Co)=>[...wo,...parseTrace(Co)],[]),[eo]),po=reactExports.useMemo(()=>new GanttViewModel,[]);reactExports.useEffect(()=>{po.setTasks(fo)},[fo,po]);const ho=useState(po.selectedRowId$),mo=useSetState(po.selectedRowId$),vo=reactExports.useMemo(()=>ho?traceMap.get(ho):void 0,[ho]),bo=reactExports.useMemo(()=>({...to,grid:mergeStyles$1(to==null?void 0:to.grid,ro?GanttGridTheme.Dark:GanttGridTheme.Light)}),[to,ro]),xo=mergeStyles$1({display:"flex",height:"100%",borderTop:"1px solid #ccc"},no==null?void 0:no.root),_o=mergeStyles$1({height:"100%",width:"100%",padding:16,borderRight:"1px solid #ccc"},no==null?void 0:no.gridContainer),So=mergeStyles$1({height:"100%",width:"100%",padding:8},no==null?void 0:no.detailContainer),Eo=reactExports.useCallback(wo=>{var Ro;const Co=(Ro=fo.find(Ao=>Ao.node_name===wo))==null?void 0:Ro.id;Co&&mo(Co)},[fo,mo]);reactExports.useImperativeHandle(co,()=>({setSelectedTraceRow:Eo})),reactExports.useEffect(()=>{lo&&lo(vo)},[lo,vo]),reactExports.useEffect(()=>{mo(void 0)},[eo]);const ko=reactExports.useCallback(wo=>{const Co={key:"token",name:"token",resizable:!0,width:60,renderHeaderCell(){return jsxRuntimeExports.jsx("div",{style:{textAlign:"right"},children:"Tokens"})},renderCell({row:Io}){const $o=getTokensUsageByRow(Io),Bo=`prompt tokens: ${numberToDigitsString($o.promptTokens)}, - completion tokens: ${$o.completionTokens}`;return jsxRuntimeExports.jsx("div",{style:{textAlign:"right"},title:Bo,children:numberToDigitsString($o.totalTokens)})}},[Ro,...Ao]=wo;return[Ro,Co,...Ao]},[]);return jsxRuntimeExports.jsxs(oo,{className:xo,children:[jsxRuntimeExports.jsx(io,{className:_o,children:jsxRuntimeExports.jsx(Gantt,{viewModel:po,styles:bo,getColumns:ko})}),jsxRuntimeExports.jsx(so,{className:So,children:vo?ao(vo):uo()})]})});ApiLogs.displayName="ApiLogs";const $global=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{}}}();$global.trustedTypes===void 0&&($global.trustedTypes={createPolicy:(eo,to)=>to});const propConfig={configurable:!1,enumerable:!1,writable:!1};$global.FAST===void 0&&Reflect.defineProperty($global,"FAST",Object.assign({value:Object.create(null)},propConfig));const FAST=$global.FAST;if(FAST.getById===void 0){const eo=Object.create(null);Reflect.defineProperty(FAST,"getById",Object.assign({value(to,ro){let no=eo[to];return no===void 0&&(no=ro?eo[to]=ro():null),no}},propConfig))}const emptyArray=Object.freeze([]);function createMetadataLocator(){const eo=new WeakMap;return function(to){let ro=eo.get(to);if(ro===void 0){let no=Reflect.getPrototypeOf(to);for(;ro===void 0&&no!==null;)ro=eo.get(no),no=Reflect.getPrototypeOf(no);ro=ro===void 0?[]:ro.slice(0),eo.set(to,ro)}return ro}}const updateQueue=$global.FAST.getById(1,()=>{const eo=[],to=[];function ro(){if(to.length)throw to.shift()}function no(so){try{so.call()}catch(ao){to.push(ao),setTimeout(ro,0)}}function oo(){let ao=0;for(;ao1024){for(let lo=0,uo=eo.length-ao;loeo});let htmlPolicy=fastHTMLPolicy;const marker=`fast-${Math.random().toString(36).substring(2,8)}`,_interpolationStart=`${marker}{`,_interpolationEnd=`}${marker}`,DOM=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(eo){if(htmlPolicy!==fastHTMLPolicy)throw new Error("The HTML policy can only be set once.");htmlPolicy=eo},createHTML(eo){return htmlPolicy.createHTML(eo)},isMarker(eo){return eo&&eo.nodeType===8&&eo.data.startsWith(marker)},extractDirectiveIndexFromMarker(eo){return parseInt(eo.data.replace(`${marker}:`,""))},createInterpolationPlaceholder(eo){return`${_interpolationStart}${eo}${_interpolationEnd}`},createCustomAttributePlaceholder(eo,to){return`${eo}="${this.createInterpolationPlaceholder(to)}"`},createBlockPlaceholder(eo){return``},queueUpdate:updateQueue.enqueue,processUpdates:updateQueue.process,nextUpdate(){return new Promise(updateQueue.enqueue)},setAttribute(eo,to,ro){ro==null?eo.removeAttribute(to):eo.setAttribute(to,ro)},setBooleanAttribute(eo,to,ro){ro?eo.setAttribute(to,""):eo.removeAttribute(to)},removeChildNodes(eo){for(let to=eo.firstChild;to!==null;to=eo.firstChild)eo.removeChild(to)},createTemplateWalker(eo){return document.createTreeWalker(eo,133,null,!1)}});class SubscriberSet{constructor(to,ro){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=to,this.sub1=ro}has(to){return this.spillover===void 0?this.sub1===to||this.sub2===to:this.spillover.indexOf(to)!==-1}subscribe(to){const ro=this.spillover;if(ro===void 0){if(this.has(to))return;if(this.sub1===void 0){this.sub1=to;return}if(this.sub2===void 0){this.sub2=to;return}this.spillover=[this.sub1,this.sub2,to],this.sub1=void 0,this.sub2=void 0}else ro.indexOf(to)===-1&&ro.push(to)}unsubscribe(to){const ro=this.spillover;if(ro===void 0)this.sub1===to?this.sub1=void 0:this.sub2===to&&(this.sub2=void 0);else{const no=ro.indexOf(to);no!==-1&&ro.splice(no,1)}}notify(to){const ro=this.spillover,no=this.source;if(ro===void 0){const oo=this.sub1,io=this.sub2;oo!==void 0&&oo.handleChange(no,to),io!==void 0&&io.handleChange(no,to)}else for(let oo=0,io=ro.length;oo{const eo=/(:|&&|\|\||if)/,to=new WeakMap,ro=DOM.queueUpdate;let no,oo=uo=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function io(uo){let co=uo.$fastController||to.get(uo);return co===void 0&&(Array.isArray(uo)?co=oo(uo):to.set(uo,co=new PropertyChangeNotifier(uo))),co}const so=createMetadataLocator();class ao{constructor(co){this.name=co,this.field=`_${co}`,this.callback=`${co}Changed`}getValue(co){return no!==void 0&&no.watch(co,this.name),co[this.field]}setValue(co,fo){const po=this.field,ho=co[po];if(ho!==fo){co[po]=fo;const mo=co[this.callback];typeof mo=="function"&&mo.call(co,ho,fo),io(co).notify(this.name)}}}class lo extends SubscriberSet{constructor(co,fo,po=!1){super(co,fo),this.binding=co,this.isVolatileBinding=po,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(co,fo){this.needsRefresh&&this.last!==null&&this.disconnect();const po=no;no=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const ho=this.binding(co,fo);return no=po,ho}disconnect(){if(this.last!==null){let co=this.first;for(;co!==void 0;)co.notifier.unsubscribe(this,co.propertyName),co=co.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(co,fo){const po=this.last,ho=io(co),mo=po===null?this.first:{};if(mo.propertySource=co,mo.propertyName=fo,mo.notifier=ho,ho.subscribe(this,fo),po!==null){if(!this.needsRefresh){let vo;no=void 0,vo=po.propertySource[po.propertyName],no=this,co===vo&&(this.needsRefresh=!0)}po.next=mo}this.last=mo}handleChange(){this.needsQueue&&(this.needsQueue=!1,ro(this))}call(){this.last!==null&&(this.needsQueue=!0,this.notify(this))}records(){let co=this.first;return{next:()=>{const fo=co;return fo===void 0?{value:void 0,done:!0}:(co=co.next,{value:fo,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(uo){oo=uo},getNotifier:io,track(uo,co){no!==void 0&&no.watch(uo,co)},trackVolatile(){no!==void 0&&(no.needsRefresh=!0)},notify(uo,co){io(uo).notify(co)},defineProperty(uo,co){typeof co=="string"&&(co=new ao(co)),so(uo).push(co),Reflect.defineProperty(uo,co.name,{enumerable:!0,get:function(){return co.getValue(this)},set:function(fo){co.setValue(this,fo)}})},getAccessors:so,binding(uo,co,fo=this.isVolatileBinding(uo)){return new lo(uo,co,fo)},isVolatileBinding(uo){return eo.test(uo.toString())}})});function observable(eo,to){Observable$1.defineProperty(eo,to)}function volatile(eo,to,ro){return Object.assign({},ro,{get:function(){return Observable$1.trackVolatile(),ro.get.apply(this)}})}const contextEvent=FAST.getById(3,()=>{let eo=null;return{get(){return eo},set(to){eo=to}}});class ExecutionContext{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return contextEvent.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(to){contextEvent.set(to)}}Observable$1.defineProperty(ExecutionContext.prototype,"index");Observable$1.defineProperty(ExecutionContext.prototype,"length");const defaultExecutionContext=Object.seal(new ExecutionContext);class HTMLDirective{constructor(){this.targetIndex=0}}class TargetedHTMLDirective extends HTMLDirective{constructor(){super(...arguments),this.createPlaceholder=DOM.createInterpolationPlaceholder}}class AttachedBehaviorHTMLDirective extends HTMLDirective{constructor(to,ro,no){super(),this.name=to,this.behavior=ro,this.options=no}createPlaceholder(to){return DOM.createCustomAttributePlaceholder(this.name,to)}createBehavior(to){return new this.behavior(to,this.options)}}function normalBind(eo,to){this.source=eo,this.context=to,this.bindingObserver===null&&(this.bindingObserver=Observable$1.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(eo,to))}function triggerBind(eo,to){this.source=eo,this.context=to,this.target.addEventListener(this.targetName,this)}function normalUnbind(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function contentUnbind(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const eo=this.target.$fastView;eo!==void 0&&eo.isComposed&&(eo.unbind(),eo.needsBindOnly=!0)}function triggerUnbind(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function updateAttributeTarget(eo){DOM.setAttribute(this.target,this.targetName,eo)}function updateBooleanAttributeTarget(eo){DOM.setBooleanAttribute(this.target,this.targetName,eo)}function updateContentTarget(eo){if(eo==null&&(eo=""),eo.create){this.target.textContent="";let to=this.target.$fastView;to===void 0?to=eo.create():this.target.$fastTemplate!==eo&&(to.isComposed&&(to.remove(),to.unbind()),to=eo.create()),to.isComposed?to.needsBindOnly&&(to.needsBindOnly=!1,to.bind(this.source,this.context)):(to.isComposed=!0,to.bind(this.source,this.context),to.insertBefore(this.target),this.target.$fastView=to,this.target.$fastTemplate=eo)}else{const to=this.target.$fastView;to!==void 0&&to.isComposed&&(to.isComposed=!1,to.remove(),to.needsBindOnly?to.needsBindOnly=!1:to.unbind()),this.target.textContent=eo}}function updatePropertyTarget(eo){this.target[this.targetName]=eo}function updateClassTarget(eo){const to=this.classVersions||Object.create(null),ro=this.target;let no=this.version||0;if(eo!=null&&eo.length){const oo=eo.split(/\s+/);for(let io=0,so=oo.length;ioDOM.createHTML(ro(no,oo))}break;case"?":this.cleanedTargetName=to.substr(1),this.updateTarget=updateBooleanAttributeTarget;break;case"@":this.cleanedTargetName=to.substr(1),this.bind=triggerBind,this.unbind=triggerUnbind;break;default:this.cleanedTargetName=to,to==="class"&&(this.updateTarget=updateClassTarget);break}}targetAtContent(){this.updateTarget=updateContentTarget,this.unbind=contentUnbind}createBehavior(to){return new BindingBehavior(to,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class BindingBehavior{constructor(to,ro,no,oo,io,so,ao){this.source=null,this.context=null,this.bindingObserver=null,this.target=to,this.binding=ro,this.isBindingVolatile=no,this.bind=oo,this.unbind=io,this.updateTarget=so,this.targetName=ao}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(to){ExecutionContext.setEvent(to);const ro=this.binding(this.source,this.context);ExecutionContext.setEvent(null),ro!==!0&&to.preventDefault()}}let sharedContext=null;class CompilationContext{addFactory(to){to.targetIndex=this.targetIndex,this.behaviorFactories.push(to)}captureContentBinding(to){to.targetAtContent(),this.addFactory(to)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){sharedContext=this}static borrow(to){const ro=sharedContext||new CompilationContext;return ro.directives=to,ro.reset(),sharedContext=null,ro}}function createAggregateBinding(eo){if(eo.length===1)return eo[0];let to;const ro=eo.length,no=eo.map(so=>typeof so=="string"?()=>so:(to=so.targetName||to,so.binding)),oo=(so,ao)=>{let lo="";for(let uo=0;uoao),uo.targetName=so.name):uo=createAggregateBinding(lo),uo!==null&&(to.removeAttributeNode(so),oo--,io--,eo.addFactory(uo))}}function compileContent(eo,to,ro){const no=parseContent(eo,to.textContent);if(no!==null){let oo=to;for(let io=0,so=no.length;io0}const ro=this.fragment.cloneNode(!0),no=this.viewBehaviorFactories,oo=new Array(this.behaviorCount),io=DOM.createTemplateWalker(ro);let so=0,ao=this.targetOffset,lo=io.nextNode();for(let uo=no.length;so=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function html(eo,...to){const ro=[];let no="";for(let oo=0,io=eo.length-1;oolo}if(typeof ao=="function"&&(ao=new HTMLBindingDirective(ao)),ao instanceof TargetedHTMLDirective){const lo=lastAttributeNameRegex.exec(so);lo!==null&&(ao.targetName=lo[2])}ao instanceof HTMLDirective?(no+=ao.createPlaceholder(ro.length),ro.push(ao)):no+=ao}return no+=eo[eo.length-1],new ViewTemplate(no,ro)}class ElementStyles{constructor(){this.targets=new WeakSet}addStylesTo(to){this.targets.add(to)}removeStylesFrom(to){this.targets.delete(to)}isAttachedTo(to){return this.targets.has(to)}withBehaviors(...to){return this.behaviors=this.behaviors===null?to:this.behaviors.concat(to),this}}ElementStyles.create=(()=>{if(DOM.supportsAdoptedStyleSheets){const eo=new Map;return to=>new AdoptedStyleSheetsStyles(to,eo)}return eo=>new StyleElementStyles(eo)})();function reduceStyles(eo){return eo.map(to=>to instanceof ElementStyles?reduceStyles(to.styles):[to]).reduce((to,ro)=>to.concat(ro),[])}function reduceBehaviors(eo){return eo.map(to=>to instanceof ElementStyles?to.behaviors:null).reduce((to,ro)=>ro===null?to:(to===null&&(to=[]),to.concat(ro)),null)}let addAdoptedStyleSheets=(eo,to)=>{eo.adoptedStyleSheets=[...eo.adoptedStyleSheets,...to]},removeAdoptedStyleSheets=(eo,to)=>{eo.adoptedStyleSheets=eo.adoptedStyleSheets.filter(ro=>to.indexOf(ro)===-1)};if(DOM.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),addAdoptedStyleSheets=(eo,to)=>{eo.adoptedStyleSheets.push(...to)},removeAdoptedStyleSheets=(eo,to)=>{for(const ro of to){const no=eo.adoptedStyleSheets.indexOf(ro);no!==-1&&eo.adoptedStyleSheets.splice(no,1)}}}catch{}class AdoptedStyleSheetsStyles extends ElementStyles{constructor(to,ro){super(),this.styles=to,this.styleSheetCache=ro,this._styleSheets=void 0,this.behaviors=reduceBehaviors(to)}get styleSheets(){if(this._styleSheets===void 0){const to=this.styles,ro=this.styleSheetCache;this._styleSheets=reduceStyles(to).map(no=>{if(no instanceof CSSStyleSheet)return no;let oo=ro.get(no);return oo===void 0&&(oo=new CSSStyleSheet,oo.replaceSync(no),ro.set(no,oo)),oo})}return this._styleSheets}addStylesTo(to){addAdoptedStyleSheets(to,this.styleSheets),super.addStylesTo(to)}removeStylesFrom(to){removeAdoptedStyleSheets(to,this.styleSheets),super.removeStylesFrom(to)}}let styleClassId=0;function getNextStyleClass(){return`fast-style-class-${++styleClassId}`}class StyleElementStyles extends ElementStyles{constructor(to){super(),this.styles=to,this.behaviors=null,this.behaviors=reduceBehaviors(to),this.styleSheets=reduceStyles(to),this.styleClass=getNextStyleClass()}addStylesTo(to){const ro=this.styleSheets,no=this.styleClass;to=this.normalizeTarget(to);for(let oo=0;oo{no.add(to);const oo=to[this.fieldName];switch(ro){case"reflect":const io=this.converter;DOM.setAttribute(to,this.attribute,io!==void 0?io.toView(oo):oo);break;case"boolean":DOM.setBooleanAttribute(to,this.attribute,oo);break}no.delete(to)})}static collect(to,...ro){const no=[];ro.push(AttributeConfiguration.locate(to));for(let oo=0,io=ro.length;oo1&&(ro.property=io),AttributeConfiguration.locate(oo.constructor).push(ro)}if(arguments.length>1){ro={},no(eo,to);return}return ro=eo===void 0?{}:eo,no}const defaultShadowOptions={mode:"open"},defaultElementOptions={},fastRegistry=FAST.getById(4,()=>{const eo=new Map;return Object.freeze({register(to){return eo.has(to.type)?!1:(eo.set(to.type,to),!0)},getByType(to){return eo.get(to)}})});class FASTElementDefinition{constructor(to,ro=to.definition){typeof ro=="string"&&(ro={name:ro}),this.type=to,this.name=ro.name,this.template=ro.template;const no=AttributeDefinition.collect(to,ro.attributes),oo=new Array(no.length),io={},so={};for(let ao=0,lo=no.length;ao0){const io=this.boundObservables=Object.create(null);for(let so=0,ao=oo.length;so0||ro>0;){if(to===0){oo.push(EDIT_ADD),ro--;continue}if(ro===0){oo.push(EDIT_DELETE),to--;continue}const io=eo[to-1][ro-1],so=eo[to-1][ro],ao=eo[to][ro-1];let lo;so=0){eo.splice(ao,1),ao--,so-=lo.addedCount-lo.removed.length,oo.addedCount+=lo.addedCount-uo;const co=oo.removed.length+lo.removed.length-uo;if(!oo.addedCount&&!co)io=!0;else{let fo=lo.removed;if(oo.indexlo.index+lo.addedCount){const po=oo.removed.slice(lo.index+lo.addedCount-oo.index);$push.apply(fo,po)}oo.removed=fo,lo.indexno?ro=no-eo.addedCount:ro<0&&(ro=no+eo.removed.length+ro-eo.addedCount),ro<0&&(ro=0),eo.index=ro,eo}class ArrayObserver extends SubscriberSet{constructor(to){super(to),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(to,"$fastController",{value:this,enumerable:!1})}subscribe(to){this.flush(),super.subscribe(to)}addSplice(to){this.splices===void 0?this.splices=[to]:this.splices.push(to),this.needsQueue&&(this.needsQueue=!1,DOM.queueUpdate(this))}reset(to){this.oldCollection=to,this.needsQueue&&(this.needsQueue=!1,DOM.queueUpdate(this))}flush(){const to=this.splices,ro=this.oldCollection;if(to===void 0&&ro===void 0)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const no=ro===void 0?projectArraySplices(this.source,to):calcSplices(this.source,0,this.source.length,ro,0,ro.length);this.notify(no)}}function enableArrayObservation(){if(arrayObservationEnabled)return;arrayObservationEnabled=!0,Observable$1.setArrayObserverFactory(lo=>new ArrayObserver(lo));const eo=Array.prototype;if(eo.$fastPatch)return;Reflect.defineProperty(eo,"$fastPatch",{value:1,enumerable:!1});const to=eo.pop,ro=eo.push,no=eo.reverse,oo=eo.shift,io=eo.sort,so=eo.splice,ao=eo.unshift;eo.pop=function(){const lo=this.length>0,uo=to.apply(this,arguments),co=this.$fastController;return co!==void 0&&lo&&co.addSplice(newSplice(this.length,[uo],0)),uo},eo.push=function(){const lo=ro.apply(this,arguments),uo=this.$fastController;return uo!==void 0&&uo.addSplice(adjustIndex(newSplice(this.length-arguments.length,[],arguments.length),this)),lo},eo.reverse=function(){let lo;const uo=this.$fastController;uo!==void 0&&(uo.flush(),lo=this.slice());const co=no.apply(this,arguments);return uo!==void 0&&uo.reset(lo),co},eo.shift=function(){const lo=this.length>0,uo=oo.apply(this,arguments),co=this.$fastController;return co!==void 0&&lo&&co.addSplice(newSplice(0,[uo],0)),uo},eo.sort=function(){let lo;const uo=this.$fastController;uo!==void 0&&(uo.flush(),lo=this.slice());const co=io.apply(this,arguments);return uo!==void 0&&uo.reset(lo),co},eo.splice=function(){const lo=so.apply(this,arguments),uo=this.$fastController;return uo!==void 0&&uo.addSplice(adjustIndex(newSplice(+arguments[0],lo,arguments.length>2?arguments.length-2:0),this)),lo},eo.unshift=function(){const lo=ao.apply(this,arguments),uo=this.$fastController;return uo!==void 0&&uo.addSplice(adjustIndex(newSplice(0,[],arguments.length),this)),lo}}class RefBehavior{constructor(to,ro){this.target=to,this.propertyName=ro}bind(to){to[this.propertyName]=this.target}unbind(){}}function ref(eo){return new AttachedBehaviorHTMLDirective("fast-ref",RefBehavior,eo)}const isFunction$1=eo=>typeof eo=="function",noTemplate=()=>null;function normalizeBinding(eo){return eo===void 0?noTemplate:isFunction$1(eo)?eo:()=>eo}function when(eo,to,ro){const no=isFunction$1(eo)?eo:()=>eo,oo=normalizeBinding(to),io=normalizeBinding(ro);return(so,ao)=>no(so,ao)?oo(so,ao):io(so,ao)}function bindWithoutPositioning(eo,to,ro,no){eo.bind(to[ro],no)}function bindWithPositioning(eo,to,ro,no){const oo=Object.create(no);oo.index=ro,oo.length=to.length,eo.bind(to[ro],oo)}class RepeatBehavior{constructor(to,ro,no,oo,io,so){this.location=to,this.itemsBinding=ro,this.templateBinding=oo,this.options=so,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=bindWithoutPositioning,this.itemsBindingObserver=Observable$1.binding(ro,this,no),this.templateBindingObserver=Observable$1.binding(oo,this,io),so.positioning&&(this.bindView=bindWithPositioning)}bind(to,ro){this.source=to,this.originalContext=ro,this.childContext=Object.create(ro),this.childContext.parent=to,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(to,this.originalContext),this.template=this.templateBindingObserver.observe(to,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,this.itemsObserver!==null&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(to,ro){to===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):to===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(ro)}observeItems(to=!1){if(!this.items){this.items=emptyArray;return}const ro=this.itemsObserver,no=this.itemsObserver=Observable$1.getNotifier(this.items),oo=ro!==no;oo&&ro!==null&&ro.unsubscribe(this),(oo||to)&&no.subscribe(this)}updateViews(to){const ro=this.childContext,no=this.views,oo=this.bindView,io=this.items,so=this.template,ao=this.options.recycle,lo=[];let uo=0,co=0;for(let fo=0,po=to.length;fo0?(vo<=So&&_o.length>0?(wo=_o[vo],vo++):(wo=lo[uo],uo++),co--):wo=so.create(),no.splice(bo,0,wo),oo(wo,io,bo,ro),wo.insertBefore(ko)}_o[vo]&&lo.push(..._o.slice(vo))}for(let fo=uo,po=lo.length;fono.name===ro),this.source=to,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(emptyArray),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let to=this.getNodes();return this.options.filter!==void 0&&(to=to.filter(this.options.filter)),to}updateTarget(to){this.source[this.options.property]=to}}class SlottedBehavior extends NodeObservationBehavior{constructor(to,ro){super(to,ro)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function slotted(eo){return typeof eo=="string"&&(eo={property:eo}),new AttachedBehaviorHTMLDirective("fast-slotted",SlottedBehavior,eo)}class ChildrenBehavior extends NodeObservationBehavior{constructor(to,ro){super(to,ro),this.observer=null,ro.childList=!0}observe(){this.observer===null&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}function children(eo){return typeof eo=="string"&&(eo={property:eo}),new AttachedBehaviorHTMLDirective("fast-children",ChildrenBehavior,eo)}class StartEnd{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const endSlotTemplate=(eo,to)=>html` - to.end?"end":void 0} - > - - ${to.end||""} - - -`,startSlotTemplate=(eo,to)=>html` - - - ${to.start||""} - - -`;html` - - - -`;html` - - - -`;/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -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. -***************************************************************************** */function __decorate(eo,to,ro,no){var oo=arguments.length,io=oo<3?to:no===null?no=Object.getOwnPropertyDescriptor(to,ro):no,so;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")io=Reflect.decorate(eo,to,ro,no);else for(var ao=eo.length-1;ao>=0;ao--)(so=eo[ao])&&(io=(oo<3?so(io):oo>3?so(to,ro,io):so(to,ro))||io);return oo>3&&io&&Object.defineProperty(to,ro,io),io}const metadataByTarget=new Map;"metadata"in Reflect||(Reflect.metadata=function(eo,to){return function(ro){Reflect.defineMetadata(eo,to,ro)}},Reflect.defineMetadata=function(eo,to,ro){let no=metadataByTarget.get(ro);no===void 0&&metadataByTarget.set(ro,no=new Map),no.set(eo,to)},Reflect.getOwnMetadata=function(eo,to){const ro=metadataByTarget.get(to);if(ro!==void 0)return ro.get(eo)});class ResolverBuilder{constructor(to,ro){this.container=to,this.key=ro}instance(to){return this.registerResolver(0,to)}singleton(to){return this.registerResolver(1,to)}transient(to){return this.registerResolver(2,to)}callback(to){return this.registerResolver(3,to)}cachedCallback(to){return this.registerResolver(3,cacheCallbackResult(to))}aliasTo(to){return this.registerResolver(5,to)}registerResolver(to,ro){const{container:no,key:oo}=this;return this.container=this.key=void 0,no.registerResolver(oo,new ResolverImpl(oo,to,ro))}}function cloneArrayWithPossibleProps(eo){const to=eo.slice(),ro=Object.keys(eo),no=ro.length;let oo;for(let io=0;ionull,responsibleForOwnerRequests:!1,defaultResolver:DefaultResolver.singleton})}),dependencyLookup=new Map;function getParamTypes(eo){return to=>Reflect.getOwnMetadata(eo,to)}let rootDOMContainer=null;const DI=Object.freeze({createContainer(eo){return new ContainerImpl(null,Object.assign({},ContainerConfiguration.default,eo))},findResponsibleContainer(eo){const to=eo.$$container$$;return to&&to.responsibleForOwnerRequests?to:DI.findParentContainer(eo)},findParentContainer(eo){const to=new CustomEvent(DILocateParentEventType,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return eo.dispatchEvent(to),to.detail.container||DI.getOrCreateDOMContainer()},getOrCreateDOMContainer(eo,to){return eo?eo.$$container$$||new ContainerImpl(eo,Object.assign({},ContainerConfiguration.default,to,{parentLocator:DI.findParentContainer})):rootDOMContainer||(rootDOMContainer=new ContainerImpl(null,Object.assign({},ContainerConfiguration.default,to,{parentLocator:()=>null})))},getDesignParamtypes:getParamTypes("design:paramtypes"),getAnnotationParamtypes:getParamTypes("di:paramtypes"),getOrCreateAnnotationParamTypes(eo){let to=this.getAnnotationParamtypes(eo);return to===void 0&&Reflect.defineMetadata("di:paramtypes",to=[],eo),to},getDependencies(eo){let to=dependencyLookup.get(eo);if(to===void 0){const ro=eo.inject;if(ro===void 0){const no=DI.getDesignParamtypes(eo),oo=DI.getAnnotationParamtypes(eo);if(no===void 0)if(oo===void 0){const io=Object.getPrototypeOf(eo);typeof io=="function"&&io!==Function.prototype?to=cloneArrayWithPossibleProps(DI.getDependencies(io)):to=[]}else to=cloneArrayWithPossibleProps(oo);else if(oo===void 0)to=cloneArrayWithPossibleProps(no);else{to=cloneArrayWithPossibleProps(no);let io=oo.length,so;for(let uo=0;uo{const co=DI.findResponsibleContainer(this).get(ro),fo=this[oo];co!==fo&&(this[oo]=io,ao.notify(to))};ao.subscribe({handleChange:lo},"isConnected")}return io}})},createInterface(eo,to){const ro=typeof eo=="function"?eo:to,no=typeof eo=="string"?eo:eo&&"friendlyName"in eo&&eo.friendlyName||defaultFriendlyName,oo=typeof eo=="string"?!1:eo&&"respectConnection"in eo&&eo.respectConnection||!1,io=function(so,ao,lo){if(so==null||new.target!==void 0)throw new Error(`No registration for interface: '${io.friendlyName}'`);if(ao)DI.defineProperty(so,ao,io,oo);else{const uo=DI.getOrCreateAnnotationParamTypes(so);uo[lo]=io}};return io.$isInterface=!0,io.friendlyName=no??"(anonymous)",ro!=null&&(io.register=function(so,ao){return ro(new ResolverBuilder(so,ao??io))}),io.toString=function(){return`InterfaceSymbol<${io.friendlyName}>`},io},inject(...eo){return function(to,ro,no){if(typeof no=="number"){const oo=DI.getOrCreateAnnotationParamTypes(to),io=eo[0];io!==void 0&&(oo[no]=io)}else if(ro)DI.defineProperty(to,ro,eo[0]);else{const oo=no?DI.getOrCreateAnnotationParamTypes(no.value):DI.getOrCreateAnnotationParamTypes(to);let io;for(let so=0;so{no.composedPath()[0]!==this.owner&&(no.detail.container=this,no.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(to,...ro){return this.context=to,this.register(...ro),this.context=null,this}register(...to){if(++this.registerDepth===100)throw new Error("Unable to autoregister dependency");let ro,no,oo,io,so;const ao=this.context;for(let lo=0,uo=to.length;lothis}))}jitRegister(to,ro){if(typeof to!="function")throw new Error(`Attempted to jitRegister something that is not a constructor: '${to}'. Did you forget to register this dependency?`);if(InstrinsicTypeNames.has(to.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${to.name}. Did you forget to add @inject(Key)`);if(isRegistry(to)){const no=to.register(ro);if(!(no instanceof Object)||no.resolve==null){const oo=ro.resolvers.get(to);if(oo!=null)return oo;throw new Error("A valid resolver was not returned from the static register method")}return no}else{if(to.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${to.friendlyName}`);{const no=this.config.defaultResolver(to,ro);return ro.resolvers.set(to,no),no}}}}const cache=new WeakMap;function cacheCallbackResult(eo){return function(to,ro,no){if(cache.has(no))return cache.get(no);const oo=eo(to,ro,no);return cache.set(no,oo),oo}}const Registration=Object.freeze({instance(eo,to){return new ResolverImpl(eo,0,to)},singleton(eo,to){return new ResolverImpl(eo,1,to)},transient(eo,to){return new ResolverImpl(eo,2,to)},callback(eo,to){return new ResolverImpl(eo,3,to)},cachedCallback(eo,to){return new ResolverImpl(eo,3,cacheCallbackResult(to))},aliasTo(eo,to){return new ResolverImpl(to,5,eo)}});function validateKey(eo){if(eo==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 buildAllResponse(eo,to,ro){if(eo instanceof ResolverImpl&&eo.strategy===4){const no=eo.state;let oo=no.length;const io=new Array(oo);for(;oo--;)io[oo]=no[oo].resolve(to,ro);return io}return[eo.resolve(to,ro)]}const defaultFriendlyName="(anonymous)";function isObject$3(eo){return typeof eo=="object"&&eo!==null||typeof eo=="function"}const isNativeFunction=function(){const eo=new WeakMap;let to=!1,ro="",no=0;return function(oo){return to=eo.get(oo),to===void 0&&(ro=oo.toString(),no=ro.length,to=no>=29&&no<=100&&ro.charCodeAt(no-1)===125&&ro.charCodeAt(no-2)<=32&&ro.charCodeAt(no-3)===93&&ro.charCodeAt(no-4)===101&&ro.charCodeAt(no-5)===100&&ro.charCodeAt(no-6)===111&&ro.charCodeAt(no-7)===99&&ro.charCodeAt(no-8)===32&&ro.charCodeAt(no-9)===101&&ro.charCodeAt(no-10)===118&&ro.charCodeAt(no-11)===105&&ro.charCodeAt(no-12)===116&&ro.charCodeAt(no-13)===97&&ro.charCodeAt(no-14)===110&&ro.charCodeAt(no-15)===88,eo.set(oo,to)),to}}(),isNumericLookup={};function isArrayIndex(eo){switch(typeof eo){case"number":return eo>=0&&(eo|0)===eo;case"string":{const to=isNumericLookup[eo];if(to!==void 0)return to;const ro=eo.length;if(ro===0)return isNumericLookup[eo]=!1;let no=0;for(let oo=0;oo1||no<48||no>57)return isNumericLookup[eo]=!1;return isNumericLookup[eo]=!0}default:return!1}}function presentationKeyFromTag(eo){return`${eo.toLowerCase()}:presentation`}const presentationRegistry=new Map,ComponentPresentation=Object.freeze({define(eo,to,ro){const no=presentationKeyFromTag(eo);presentationRegistry.get(no)===void 0?presentationRegistry.set(no,to):presentationRegistry.set(no,!1),ro.register(Registration.instance(no,to))},forTag(eo,to){const ro=presentationKeyFromTag(eo),no=presentationRegistry.get(ro);return no===!1?DI.findResponsibleContainer(to).get(ro):no||null}});class DefaultComponentPresentation{constructor(to,ro){this.template=to||null,this.styles=ro===void 0?null:Array.isArray(ro)?ElementStyles.create(ro):ro instanceof ElementStyles?ro:ElementStyles.create([ro])}applyTo(to){const ro=to.$fastController;ro.template===null&&(ro.template=this.template),ro.styles===null&&(ro.styles=this.styles)}}class FoundationElement extends FASTElement{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return this._presentation===void 0&&(this._presentation=ComponentPresentation.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(to){return(ro={})=>new FoundationElementRegistry(this===FoundationElement?class extends FoundationElement{}:this,to,ro)}}__decorate([observable],FoundationElement.prototype,"template",void 0);__decorate([observable],FoundationElement.prototype,"styles",void 0);function resolveOption(eo,to,ro){return typeof eo=="function"?eo(to,ro):eo}class FoundationElementRegistry{constructor(to,ro,no){this.type=to,this.elementDefinition=ro,this.overrideDefinition=no,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(to,ro){const no=this.definition,oo=this.overrideDefinition,so=`${no.prefix||ro.elementPrefix}-${no.baseName}`;ro.tryDefineElement({name:so,type:this.type,baseClass:this.elementDefinition.baseClass,callback:ao=>{const lo=new DefaultComponentPresentation(resolveOption(no.template,ao,no),resolveOption(no.styles,ao,no));ao.definePresentation(lo);let uo=resolveOption(no.shadowOptions,ao,no);ao.shadowRootMode&&(uo?oo.shadowOptions||(uo.mode=ao.shadowRootMode):uo!==null&&(uo={mode:ao.shadowRootMode})),ao.defineElement({elementOptions:resolveOption(no.elementOptions,ao,no),shadowOptions:uo,attributes:resolveOption(no.attributes,ao,no)})}})}}function applyMixins(eo,...to){const ro=AttributeConfiguration.locate(eo);to.forEach(no=>{Object.getOwnPropertyNames(no.prototype).forEach(io=>{io!=="constructor"&&Object.defineProperty(eo.prototype,io,Object.getOwnPropertyDescriptor(no.prototype,io))}),AttributeConfiguration.locate(no).forEach(io=>ro.push(io))})}const Orientation={horizontal:"horizontal",vertical:"vertical"};function findLastIndex(eo,to){let ro=eo.length;for(;ro--;)if(to(eo[ro],ro,eo))return ro;return-1}function canUseDOM$1(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function isHTMLElement$3(...eo){return eo.every(to=>to instanceof HTMLElement)}function getNonce(){const eo=document.querySelector('meta[property="csp-nonce"]');return eo?eo.getAttribute("content"):null}let _canUseFocusVisible;function canUseFocusVisible(){if(typeof _canUseFocusVisible=="boolean")return _canUseFocusVisible;if(!canUseDOM$1())return _canUseFocusVisible=!1,_canUseFocusVisible;const eo=document.createElement("style"),to=getNonce();to!==null&&eo.setAttribute("nonce",to),document.head.appendChild(eo);try{eo.sheet.insertRule("foo:focus-visible {color:inherit}",0),_canUseFocusVisible=!0}catch{_canUseFocusVisible=!1}finally{document.head.removeChild(eo)}return _canUseFocusVisible}const eventFocus="focus",eventFocusIn="focusin",eventFocusOut="focusout",eventKeyDown="keydown";var KeyCodes;(function(eo){eo[eo.alt=18]="alt",eo[eo.arrowDown=40]="arrowDown",eo[eo.arrowLeft=37]="arrowLeft",eo[eo.arrowRight=39]="arrowRight",eo[eo.arrowUp=38]="arrowUp",eo[eo.back=8]="back",eo[eo.backSlash=220]="backSlash",eo[eo.break=19]="break",eo[eo.capsLock=20]="capsLock",eo[eo.closeBracket=221]="closeBracket",eo[eo.colon=186]="colon",eo[eo.colon2=59]="colon2",eo[eo.comma=188]="comma",eo[eo.ctrl=17]="ctrl",eo[eo.delete=46]="delete",eo[eo.end=35]="end",eo[eo.enter=13]="enter",eo[eo.equals=187]="equals",eo[eo.equals2=61]="equals2",eo[eo.equals3=107]="equals3",eo[eo.escape=27]="escape",eo[eo.forwardSlash=191]="forwardSlash",eo[eo.function1=112]="function1",eo[eo.function10=121]="function10",eo[eo.function11=122]="function11",eo[eo.function12=123]="function12",eo[eo.function2=113]="function2",eo[eo.function3=114]="function3",eo[eo.function4=115]="function4",eo[eo.function5=116]="function5",eo[eo.function6=117]="function6",eo[eo.function7=118]="function7",eo[eo.function8=119]="function8",eo[eo.function9=120]="function9",eo[eo.home=36]="home",eo[eo.insert=45]="insert",eo[eo.menu=93]="menu",eo[eo.minus=189]="minus",eo[eo.minus2=109]="minus2",eo[eo.numLock=144]="numLock",eo[eo.numPad0=96]="numPad0",eo[eo.numPad1=97]="numPad1",eo[eo.numPad2=98]="numPad2",eo[eo.numPad3=99]="numPad3",eo[eo.numPad4=100]="numPad4",eo[eo.numPad5=101]="numPad5",eo[eo.numPad6=102]="numPad6",eo[eo.numPad7=103]="numPad7",eo[eo.numPad8=104]="numPad8",eo[eo.numPad9=105]="numPad9",eo[eo.numPadDivide=111]="numPadDivide",eo[eo.numPadDot=110]="numPadDot",eo[eo.numPadMinus=109]="numPadMinus",eo[eo.numPadMultiply=106]="numPadMultiply",eo[eo.numPadPlus=107]="numPadPlus",eo[eo.openBracket=219]="openBracket",eo[eo.pageDown=34]="pageDown",eo[eo.pageUp=33]="pageUp",eo[eo.period=190]="period",eo[eo.print=44]="print",eo[eo.quote=222]="quote",eo[eo.scrollLock=145]="scrollLock",eo[eo.shift=16]="shift",eo[eo.space=32]="space",eo[eo.tab=9]="tab",eo[eo.tilde=192]="tilde",eo[eo.windowsLeft=91]="windowsLeft",eo[eo.windowsOpera=219]="windowsOpera",eo[eo.windowsRight=92]="windowsRight"})(KeyCodes||(KeyCodes={}));const keyArrowDown="ArrowDown",keyArrowLeft="ArrowLeft",keyArrowRight="ArrowRight",keyArrowUp="ArrowUp",keyEnter="Enter",keyEscape="Escape",keyHome="Home",keyEnd="End",keyFunction2="F2",keyPageDown="PageDown",keyPageUp="PageUp",keySpace=" ",keyTab="Tab",ArrowKeys={ArrowDown:keyArrowDown,ArrowLeft:keyArrowLeft,ArrowRight:keyArrowRight,ArrowUp:keyArrowUp};var Direction;(function(eo){eo.ltr="ltr",eo.rtl="rtl"})(Direction||(Direction={}));function limit(eo,to,ro){return Math.min(Math.max(ro,eo),to)}function inRange(eo,to,ro=0){return[to,ro]=[to,ro].sort((no,oo)=>no-oo),to<=eo&&eohtml` - - ${startSlotTemplate(eo,to)} - - - - ${endSlotTemplate(eo,to)} - -`;class ARIAGlobalStatesAndProperties{}__decorate([attr({attribute:"aria-atomic"})],ARIAGlobalStatesAndProperties.prototype,"ariaAtomic",void 0);__decorate([attr({attribute:"aria-busy"})],ARIAGlobalStatesAndProperties.prototype,"ariaBusy",void 0);__decorate([attr({attribute:"aria-controls"})],ARIAGlobalStatesAndProperties.prototype,"ariaControls",void 0);__decorate([attr({attribute:"aria-current"})],ARIAGlobalStatesAndProperties.prototype,"ariaCurrent",void 0);__decorate([attr({attribute:"aria-describedby"})],ARIAGlobalStatesAndProperties.prototype,"ariaDescribedby",void 0);__decorate([attr({attribute:"aria-details"})],ARIAGlobalStatesAndProperties.prototype,"ariaDetails",void 0);__decorate([attr({attribute:"aria-disabled"})],ARIAGlobalStatesAndProperties.prototype,"ariaDisabled",void 0);__decorate([attr({attribute:"aria-errormessage"})],ARIAGlobalStatesAndProperties.prototype,"ariaErrormessage",void 0);__decorate([attr({attribute:"aria-flowto"})],ARIAGlobalStatesAndProperties.prototype,"ariaFlowto",void 0);__decorate([attr({attribute:"aria-haspopup"})],ARIAGlobalStatesAndProperties.prototype,"ariaHaspopup",void 0);__decorate([attr({attribute:"aria-hidden"})],ARIAGlobalStatesAndProperties.prototype,"ariaHidden",void 0);__decorate([attr({attribute:"aria-invalid"})],ARIAGlobalStatesAndProperties.prototype,"ariaInvalid",void 0);__decorate([attr({attribute:"aria-keyshortcuts"})],ARIAGlobalStatesAndProperties.prototype,"ariaKeyshortcuts",void 0);__decorate([attr({attribute:"aria-label"})],ARIAGlobalStatesAndProperties.prototype,"ariaLabel",void 0);__decorate([attr({attribute:"aria-labelledby"})],ARIAGlobalStatesAndProperties.prototype,"ariaLabelledby",void 0);__decorate([attr({attribute:"aria-live"})],ARIAGlobalStatesAndProperties.prototype,"ariaLive",void 0);__decorate([attr({attribute:"aria-owns"})],ARIAGlobalStatesAndProperties.prototype,"ariaOwns",void 0);__decorate([attr({attribute:"aria-relevant"})],ARIAGlobalStatesAndProperties.prototype,"ariaRelevant",void 0);__decorate([attr({attribute:"aria-roledescription"})],ARIAGlobalStatesAndProperties.prototype,"ariaRoledescription",void 0);class Anchor extends FoundationElement{constructor(){super(...arguments),this.handleUnsupportedDelegatesFocus=()=>{var to;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((to=this.$fastController.definition.shadowOptions)===null||to===void 0)&&to.delegatesFocus)&&(this.focus=()=>{var ro;(ro=this.control)===null||ro===void 0||ro.focus()})}}connectedCallback(){super.connectedCallback(),this.handleUnsupportedDelegatesFocus()}}__decorate([attr],Anchor.prototype,"download",void 0);__decorate([attr],Anchor.prototype,"href",void 0);__decorate([attr],Anchor.prototype,"hreflang",void 0);__decorate([attr],Anchor.prototype,"ping",void 0);__decorate([attr],Anchor.prototype,"referrerpolicy",void 0);__decorate([attr],Anchor.prototype,"rel",void 0);__decorate([attr],Anchor.prototype,"target",void 0);__decorate([attr],Anchor.prototype,"type",void 0);__decorate([observable],Anchor.prototype,"defaultSlottedContent",void 0);class DelegatesARIALink{}__decorate([attr({attribute:"aria-expanded"})],DelegatesARIALink.prototype,"ariaExpanded",void 0);applyMixins(DelegatesARIALink,ARIAGlobalStatesAndProperties);applyMixins(Anchor,StartEnd,DelegatesARIALink);const getDirection=eo=>{const to=eo.closest("[dir]");return to!==null&&to.dir==="rtl"?Direction.rtl:Direction.ltr},badgeTemplate=(eo,to)=>html` - -`;let Badge$1=class extends FoundationElement{constructor(){super(...arguments),this.generateBadgeStyle=()=>{if(!this.fill&&!this.color)return;const to=`background-color: var(--badge-fill-${this.fill});`,ro=`color: var(--badge-color-${this.color});`;return this.fill&&!this.color?to:this.color&&!this.fill?ro:`${ro} ${to}`}}};__decorate([attr({attribute:"fill"})],Badge$1.prototype,"fill",void 0);__decorate([attr({attribute:"color"})],Badge$1.prototype,"color",void 0);__decorate([attr({mode:"boolean"})],Badge$1.prototype,"circular",void 0);const buttonTemplate=(eo,to)=>html` - -`,proxySlotName="form-associated-proxy",ElementInternalsKey="ElementInternals",supportsElementInternals=ElementInternalsKey in window&&"setFormValue"in window[ElementInternalsKey].prototype,InternalsMap=new WeakMap;function FormAssociated(eo){const to=class extends eo{constructor(...ro){super(...ro),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 supportsElementInternals}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 ro=this.proxy.labels,no=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),oo=ro?no.concat(Array.from(ro)):no;return Object.freeze(oo)}else return emptyArray}valueChanged(ro,no){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(ro,no){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(ro,no){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),DOM.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(ro,no){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(ro,no){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),DOM.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!supportsElementInternals)return null;let ro=InternalsMap.get(this);return ro||(ro=this.attachInternals(),InternalsMap.set(this,ro)),ro}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(ro=>this.proxy.removeEventListener(ro,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(ro,no,oo){this.elementInternals?this.elementInternals.setValidity(ro,no,oo):typeof no=="string"&&this.proxy.setCustomValidity(no)}formDisabledCallback(ro){this.disabled=ro}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var ro;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(no=>this.proxy.addEventListener(no,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",proxySlotName),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",proxySlotName)),(ro=this.shadowRoot)===null||ro===void 0||ro.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var ro;this.removeChild(this.proxy),(ro=this.shadowRoot)===null||ro===void 0||ro.removeChild(this.proxySlot)}validate(ro){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,ro)}setFormValue(ro,no){this.elementInternals&&this.elementInternals.setFormValue(ro,no||ro)}_keypressHandler(ro){switch(ro.key){case keyEnter:if(this.form instanceof HTMLFormElement){const no=this.form.querySelector("[type=submit]");no==null||no.click()}break}}stopPropagation(ro){ro.stopPropagation()}};return attr({mode:"boolean"})(to.prototype,"disabled"),attr({mode:"fromView",attribute:"value"})(to.prototype,"initialValue"),attr({attribute:"current-value"})(to.prototype,"currentValue"),attr(to.prototype,"name"),attr({mode:"boolean"})(to.prototype,"required"),observable(to.prototype,"value"),to}function CheckableFormAssociated(eo){class to extends FormAssociated(eo){}class ro extends to{constructor(...oo){super(oo),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(oo,io){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),oo!==void 0&&this.$emit("change"),this.validate()}currentCheckedChanged(oo,io){this.checked=this.currentChecked}updateForm(){const oo=this.checked?this.value:null;this.setFormValue(oo,oo)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return attr({attribute:"checked",mode:"boolean"})(ro.prototype,"checkedAttribute"),attr({attribute:"current-checked",converter:booleanConverter})(ro.prototype,"currentChecked"),observable(ro.prototype,"defaultChecked"),observable(ro.prototype,"checked"),ro}class _Button extends FoundationElement{}class FormAssociatedButton extends FormAssociated(_Button){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let Button$1=class extends FormAssociatedButton{constructor(){super(...arguments),this.handleClick=to=>{var ro;this.disabled&&((ro=this.defaultSlottedContent)===null||ro===void 0?void 0:ro.length)<=1&&to.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;const to=this.proxy.isConnected;to||this.attachProxy(),typeof this.form.requestSubmit=="function"?this.form.requestSubmit(this.proxy):this.proxy.click(),to||this.detachProxy()},this.handleFormReset=()=>{var to;(to=this.form)===null||to===void 0||to.reset()},this.handleUnsupportedDelegatesFocus=()=>{var to;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((to=this.$fastController.definition.shadowOptions)===null||to===void 0)&&to.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(to,ro){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),ro==="submit"&&this.addEventListener("click",this.handleSubmission),to==="submit"&&this.removeEventListener("click",this.handleSubmission),ro==="reset"&&this.addEventListener("click",this.handleFormReset),to==="reset"&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){var to;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();const ro=Array.from((to=this.control)===null||to===void 0?void 0:to.children);ro&&ro.forEach(no=>{no.addEventListener("click",this.handleClick)})}disconnectedCallback(){var to;super.disconnectedCallback();const ro=Array.from((to=this.control)===null||to===void 0?void 0:to.children);ro&&ro.forEach(no=>{no.removeEventListener("click",this.handleClick)})}};__decorate([attr({mode:"boolean"})],Button$1.prototype,"autofocus",void 0);__decorate([attr({attribute:"form"})],Button$1.prototype,"formId",void 0);__decorate([attr],Button$1.prototype,"formaction",void 0);__decorate([attr],Button$1.prototype,"formenctype",void 0);__decorate([attr],Button$1.prototype,"formmethod",void 0);__decorate([attr({mode:"boolean"})],Button$1.prototype,"formnovalidate",void 0);__decorate([attr],Button$1.prototype,"formtarget",void 0);__decorate([attr],Button$1.prototype,"type",void 0);__decorate([observable],Button$1.prototype,"defaultSlottedContent",void 0);class DelegatesARIAButton{}__decorate([attr({attribute:"aria-expanded"})],DelegatesARIAButton.prototype,"ariaExpanded",void 0);__decorate([attr({attribute:"aria-pressed"})],DelegatesARIAButton.prototype,"ariaPressed",void 0);applyMixins(DelegatesARIAButton,ARIAGlobalStatesAndProperties);applyMixins(Button$1,StartEnd,DelegatesARIAButton);const GenerateHeaderOptions={none:"none",default:"default",sticky:"sticky"},DataGridCellTypes={default:"default",columnHeader:"columnheader",rowHeader:"rowheader"},DataGridRowTypes={default:"default",header:"header",stickyHeader:"sticky-header"};let DataGridRow$1=class extends FoundationElement{constructor(){super(...arguments),this.rowType=DataGridRowTypes.default,this.rowData=null,this.columnDefinitions=null,this.isActiveRow=!1,this.cellsRepeatBehavior=null,this.cellsPlaceholder=null,this.focusColumnIndex=0,this.refocusOnLoad=!1,this.updateRowStyle=()=>{this.style.gridTemplateColumns=this.gridTemplateColumns}}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowStyle()}rowTypeChanged(){this.$fastController.isConnected&&this.updateItemTemplate()}rowDataChanged(){if(this.rowData!==null&&this.isActiveRow){this.refocusOnLoad=!0;return}}cellItemTemplateChanged(){this.updateItemTemplate()}headerCellItemTemplateChanged(){this.updateItemTemplate()}connectedCallback(){super.connectedCallback(),this.cellsRepeatBehavior===null&&(this.cellsPlaceholder=document.createComment(""),this.appendChild(this.cellsPlaceholder),this.updateItemTemplate(),this.cellsRepeatBehavior=new RepeatDirective(to=>to.columnDefinitions,to=>to.activeCellItemTemplate,{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener(eventFocusOut,this.handleFocusout),this.addEventListener(eventKeyDown,this.handleKeydown),this.updateRowStyle(),this.refocusOnLoad&&(this.refocusOnLoad=!1,this.cellElements.length>this.focusColumnIndex&&this.cellElements[this.focusColumnIndex].focus())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("cell-focused",this.handleCellFocus),this.removeEventListener(eventFocusOut,this.handleFocusout),this.removeEventListener(eventKeyDown,this.handleKeydown)}handleFocusout(to){this.contains(to.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}handleCellFocus(to){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(to.target),this.$emit("row-focused",this)}handleKeydown(to){if(to.defaultPrevented)return;let ro=0;switch(to.key){case keyArrowLeft:ro=Math.max(0,this.focusColumnIndex-1),this.cellElements[ro].focus(),to.preventDefault();break;case keyArrowRight:ro=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[ro].focus(),to.preventDefault();break;case keyHome:to.ctrlKey||(this.cellElements[0].focus(),to.preventDefault());break;case keyEnd:to.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),to.preventDefault());break}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===DataGridRowTypes.default&&this.cellItemTemplate!==void 0?this.cellItemTemplate:this.rowType===DataGridRowTypes.default&&this.cellItemTemplate===void 0?this.defaultCellItemTemplate:this.headerCellItemTemplate!==void 0?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}};__decorate([attr({attribute:"grid-template-columns"})],DataGridRow$1.prototype,"gridTemplateColumns",void 0);__decorate([attr({attribute:"row-type"})],DataGridRow$1.prototype,"rowType",void 0);__decorate([observable],DataGridRow$1.prototype,"rowData",void 0);__decorate([observable],DataGridRow$1.prototype,"columnDefinitions",void 0);__decorate([observable],DataGridRow$1.prototype,"cellItemTemplate",void 0);__decorate([observable],DataGridRow$1.prototype,"headerCellItemTemplate",void 0);__decorate([observable],DataGridRow$1.prototype,"rowIndex",void 0);__decorate([observable],DataGridRow$1.prototype,"isActiveRow",void 0);__decorate([observable],DataGridRow$1.prototype,"activeCellItemTemplate",void 0);__decorate([observable],DataGridRow$1.prototype,"defaultCellItemTemplate",void 0);__decorate([observable],DataGridRow$1.prototype,"defaultHeaderCellItemTemplate",void 0);__decorate([observable],DataGridRow$1.prototype,"cellElements",void 0);function createRowItemTemplate(eo){const to=eo.tagFor(DataGridRow$1);return html` - <${to} - :rowData="${ro=>ro}" - :cellItemTemplate="${(ro,no)=>no.parent.cellItemTemplate}" - :headerCellItemTemplate="${(ro,no)=>no.parent.headerCellItemTemplate}" - > -`}const dataGridTemplate=(eo,to)=>{const ro=createRowItemTemplate(eo),no=eo.tagFor(DataGridRow$1);return html` - - `};let DataGrid$1=class Y0 extends FoundationElement{constructor(){super(),this.noTabbing=!1,this.generateHeader=GenerateHeaderOptions.default,this.rowsData=[],this.columnDefinitions=null,this.focusRowIndex=0,this.focusColumnIndex=0,this.rowsPlaceholder=null,this.generatedHeader=null,this.isUpdatingFocus=!1,this.pendingFocusUpdate=!1,this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!0,this.generatedGridTemplateColumns="",this.focusOnCell=(to,ro,no)=>{if(this.rowElements.length===0){this.focusRowIndex=0,this.focusColumnIndex=0;return}const oo=Math.max(0,Math.min(this.rowElements.length-1,to)),so=this.rowElements[oo].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),ao=Math.max(0,Math.min(so.length-1,ro)),lo=so[ao];no&&this.scrollHeight!==this.clientHeight&&(oo0||oo>this.focusRowIndex&&this.scrollTop{to&&to.length&&(to.forEach(no=>{no.addedNodes.forEach(oo=>{oo.nodeType===1&&oo.getAttribute("role")==="row"&&(oo.columnDefinitions=this.columnDefinitions)})}),this.queueRowIndexUpdate())},this.queueRowIndexUpdate=()=>{this.rowindexUpdateQueued||(this.rowindexUpdateQueued=!0,DOM.queueUpdate(this.updateRowIndexes))},this.updateRowIndexes=()=>{let to=this.gridTemplateColumns;if(to===void 0){if(this.generatedGridTemplateColumns===""&&this.rowElements.length>0){const ro=this.rowElements[0];this.generatedGridTemplateColumns=new Array(ro.cellElements.length).fill("1fr").join(" ")}to=this.generatedGridTemplateColumns}this.rowElements.forEach((ro,no)=>{const oo=ro;oo.rowIndex=no,oo.gridTemplateColumns=to,this.columnDefinitionsStale&&(oo.columnDefinitions=this.columnDefinitions)}),this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!1}}static generateTemplateColumns(to){let ro="";return to.forEach(no=>{ro=`${ro}${ro===""?"":" "}1fr`}),ro}noTabbingChanged(){this.$fastController.isConnected&&(this.noTabbing?this.setAttribute("tabIndex","-1"):this.setAttribute("tabIndex",this.contains(document.activeElement)||this===document.activeElement?"-1":"0"))}generateHeaderChanged(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowIndexes()}rowsDataChanged(){this.columnDefinitions===null&&this.rowsData.length>0&&(this.columnDefinitions=Y0.generateColumns(this.rowsData[0])),this.$fastController.isConnected&&this.toggleGeneratedHeader()}columnDefinitionsChanged(){if(this.columnDefinitions===null){this.generatedGridTemplateColumns="";return}this.generatedGridTemplateColumns=Y0.generateTemplateColumns(this.columnDefinitions),this.$fastController.isConnected&&(this.columnDefinitionsStale=!0,this.queueRowIndexUpdate())}headerCellItemTemplateChanged(){this.$fastController.isConnected&&this.generatedHeader!==null&&(this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate)}focusRowIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}focusColumnIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}connectedCallback(){super.connectedCallback(),this.rowItemTemplate===void 0&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.rowsPlaceholder=document.createComment(""),this.appendChild(this.rowsPlaceholder),this.toggleGeneratedHeader(),this.rowsRepeatBehavior=new RepeatDirective(to=>to.rowsData,to=>to.rowItemTemplate,{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener(eventFocus,this.handleFocus),this.addEventListener(eventKeyDown,this.handleKeydown),this.addEventListener(eventFocusOut,this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),this.noTabbing&&this.setAttribute("tabindex","-1"),DOM.queueUpdate(this.queueRowIndexUpdate)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("row-focused",this.handleRowFocus),this.removeEventListener(eventFocus,this.handleFocus),this.removeEventListener(eventKeyDown,this.handleKeydown),this.removeEventListener(eventFocusOut,this.handleFocusOut),this.observer.disconnect(),this.rowsPlaceholder=null,this.generatedHeader=null}handleRowFocus(to){this.isUpdatingFocus=!0;const ro=to.target;this.focusRowIndex=this.rowElements.indexOf(ro),this.focusColumnIndex=ro.focusColumnIndex,this.setAttribute("tabIndex","-1"),this.isUpdatingFocus=!1}handleFocus(to){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}handleFocusOut(to){(to.relatedTarget===null||!this.contains(to.relatedTarget))&&this.setAttribute("tabIndex",this.noTabbing?"-1":"0")}handleKeydown(to){if(to.defaultPrevented)return;let ro;const no=this.rowElements.length-1,oo=this.offsetHeight+this.scrollTop,io=this.rowElements[no];switch(to.key){case keyArrowUp:to.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case keyArrowDown:to.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case keyPageUp:if(to.preventDefault(),this.rowElements.length===0){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex===0){this.focusOnCell(0,this.focusColumnIndex,!1);return}for(ro=this.focusRowIndex-1,ro;ro>=0;ro--){const so=this.rowElements[ro];if(so.offsetTop=no||io.offsetTop+io.offsetHeight<=oo){this.focusOnCell(no,this.focusColumnIndex,!1);return}for(ro=this.focusRowIndex+1,ro;ro<=no;ro++){const so=this.rowElements[ro];if(so.offsetTop+so.offsetHeight>oo){let ao=0;this.generateHeader===GenerateHeaderOptions.sticky&&this.generatedHeader!==null&&(ao=this.generatedHeader.clientHeight),this.scrollTop=so.offsetTop-ao;break}}this.focusOnCell(ro,this.focusColumnIndex,!1);break;case keyHome:to.ctrlKey&&(to.preventDefault(),this.focusOnCell(0,0,!0));break;case keyEnd:to.ctrlKey&&this.columnDefinitions!==null&&(to.preventDefault(),this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,!0));break}}queueFocusUpdate(){this.isUpdatingFocus&&(this.contains(document.activeElement)||this===document.activeElement)||this.pendingFocusUpdate===!1&&(this.pendingFocusUpdate=!0,DOM.queueUpdate(()=>this.updateFocus()))}updateFocus(){this.pendingFocusUpdate=!1,this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}toggleGeneratedHeader(){if(this.generatedHeader!==null&&(this.removeChild(this.generatedHeader),this.generatedHeader=null),this.generateHeader!==GenerateHeaderOptions.none&&this.rowsData.length>0){const to=document.createElement(this.rowElementTag);this.generatedHeader=to,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===GenerateHeaderOptions.sticky?DataGridRowTypes.stickyHeader:DataGridRowTypes.header,(this.firstChild!==null||this.rowsPlaceholder!==null)&&this.insertBefore(to,this.firstChild!==null?this.firstChild:this.rowsPlaceholder);return}}};DataGrid$1.generateColumns=eo=>Object.getOwnPropertyNames(eo).map((to,ro)=>({columnDataKey:to,gridColumn:`${ro}`}));__decorate([attr({attribute:"no-tabbing",mode:"boolean"})],DataGrid$1.prototype,"noTabbing",void 0);__decorate([attr({attribute:"generate-header"})],DataGrid$1.prototype,"generateHeader",void 0);__decorate([attr({attribute:"grid-template-columns"})],DataGrid$1.prototype,"gridTemplateColumns",void 0);__decorate([observable],DataGrid$1.prototype,"rowsData",void 0);__decorate([observable],DataGrid$1.prototype,"columnDefinitions",void 0);__decorate([observable],DataGrid$1.prototype,"rowItemTemplate",void 0);__decorate([observable],DataGrid$1.prototype,"cellItemTemplate",void 0);__decorate([observable],DataGrid$1.prototype,"headerCellItemTemplate",void 0);__decorate([observable],DataGrid$1.prototype,"focusRowIndex",void 0);__decorate([observable],DataGrid$1.prototype,"focusColumnIndex",void 0);__decorate([observable],DataGrid$1.prototype,"defaultRowItemTemplate",void 0);__decorate([observable],DataGrid$1.prototype,"rowElementTag",void 0);__decorate([observable],DataGrid$1.prototype,"rowElements",void 0);const defaultCellContentsTemplate=html` - -`,defaultHeaderCellContentsTemplate=html` - -`;let DataGridCell$1=class extends FoundationElement{constructor(){super(...arguments),this.cellType=DataGridCellTypes.default,this.rowData=null,this.columnDefinition=null,this.isActiveCell=!1,this.customCellView=null,this.updateCellStyle=()=>{this.style.gridColumn=this.gridColumn}}cellTypeChanged(){this.$fastController.isConnected&&this.updateCellView()}gridColumnChanged(){this.$fastController.isConnected&&this.updateCellStyle()}columnDefinitionChanged(to,ro){this.$fastController.isConnected&&this.updateCellView()}connectedCallback(){var to;super.connectedCallback(),this.addEventListener(eventFocusIn,this.handleFocusin),this.addEventListener(eventFocusOut,this.handleFocusout),this.addEventListener(eventKeyDown,this.handleKeydown),this.style.gridColumn=`${((to=this.columnDefinition)===null||to===void 0?void 0:to.gridColumn)===void 0?0:this.columnDefinition.gridColumn}`,this.updateCellView(),this.updateCellStyle()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(eventFocusIn,this.handleFocusin),this.removeEventListener(eventFocusOut,this.handleFocusout),this.removeEventListener(eventKeyDown,this.handleKeydown),this.disconnectCellView()}handleFocusin(to){if(!this.isActiveCell){switch(this.isActiveCell=!0,this.cellType){case DataGridCellTypes.columnHeader:if(this.columnDefinition!==null&&this.columnDefinition.headerCellInternalFocusQueue!==!0&&typeof this.columnDefinition.headerCellFocusTargetCallback=="function"){const ro=this.columnDefinition.headerCellFocusTargetCallback(this);ro!==null&&ro.focus()}break;default:if(this.columnDefinition!==null&&this.columnDefinition.cellInternalFocusQueue!==!0&&typeof this.columnDefinition.cellFocusTargetCallback=="function"){const ro=this.columnDefinition.cellFocusTargetCallback(this);ro!==null&&ro.focus()}break}this.$emit("cell-focused",this)}}handleFocusout(to){this!==document.activeElement&&!this.contains(document.activeElement)&&(this.isActiveCell=!1)}handleKeydown(to){if(!(to.defaultPrevented||this.columnDefinition===null||this.cellType===DataGridCellTypes.default&&this.columnDefinition.cellInternalFocusQueue!==!0||this.cellType===DataGridCellTypes.columnHeader&&this.columnDefinition.headerCellInternalFocusQueue!==!0))switch(to.key){case keyEnter:case keyFunction2:if(this.contains(document.activeElement)&&document.activeElement!==this)return;switch(this.cellType){case DataGridCellTypes.columnHeader:if(this.columnDefinition.headerCellFocusTargetCallback!==void 0){const ro=this.columnDefinition.headerCellFocusTargetCallback(this);ro!==null&&ro.focus(),to.preventDefault()}break;default:if(this.columnDefinition.cellFocusTargetCallback!==void 0){const ro=this.columnDefinition.cellFocusTargetCallback(this);ro!==null&&ro.focus(),to.preventDefault()}break}break;case keyEscape:this.contains(document.activeElement)&&document.activeElement!==this&&(this.focus(),to.preventDefault());break}}updateCellView(){if(this.disconnectCellView(),this.columnDefinition!==null)switch(this.cellType){case DataGridCellTypes.columnHeader:this.columnDefinition.headerCellTemplate!==void 0?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=defaultHeaderCellContentsTemplate.render(this,this);break;case void 0:case DataGridCellTypes.rowHeader:case DataGridCellTypes.default:this.columnDefinition.cellTemplate!==void 0?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=defaultCellContentsTemplate.render(this,this);break}}disconnectCellView(){this.customCellView!==null&&(this.customCellView.dispose(),this.customCellView=null)}};__decorate([attr({attribute:"cell-type"})],DataGridCell$1.prototype,"cellType",void 0);__decorate([attr({attribute:"grid-column"})],DataGridCell$1.prototype,"gridColumn",void 0);__decorate([observable],DataGridCell$1.prototype,"rowData",void 0);__decorate([observable],DataGridCell$1.prototype,"columnDefinition",void 0);function createCellItemTemplate(eo){const to=eo.tagFor(DataGridCell$1);return html` - <${to} - cell-type="${ro=>ro.isRowHeader?"rowheader":void 0}" - grid-column="${(ro,no)=>no.index+1}" - :rowData="${(ro,no)=>no.parent.rowData}" - :columnDefinition="${ro=>ro}" - > -`}function createHeaderCellItemTemplate(eo){const to=eo.tagFor(DataGridCell$1);return html` - <${to} - cell-type="columnheader" - grid-column="${(ro,no)=>no.index+1}" - :columnDefinition="${ro=>ro}" - > -`}const dataGridRowTemplate=(eo,to)=>{const ro=createCellItemTemplate(eo),no=createHeaderCellItemTemplate(eo);return html` - - `},dataGridCellTemplate=(eo,to)=>html` - - `,checkboxTemplate=(eo,to)=>html` - -`;class _Checkbox extends FoundationElement{}class FormAssociatedCheckbox extends CheckableFormAssociated(_Checkbox){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let Checkbox$1=class extends FormAssociatedCheckbox{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=to=>{if(!this.readOnly)switch(to.key){case keySpace:this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked;break}},this.clickHandler=to=>{!this.disabled&&!this.readOnly&&(this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}};__decorate([attr({attribute:"readonly",mode:"boolean"})],Checkbox$1.prototype,"readOnly",void 0);__decorate([observable],Checkbox$1.prototype,"defaultSlottedNodes",void 0);__decorate([observable],Checkbox$1.prototype,"indeterminate",void 0);function isListboxOption(eo){return isHTMLElement$3(eo)&&(eo.getAttribute("role")==="option"||eo instanceof HTMLOptionElement)}class ListboxOption extends FoundationElement{constructor(to,ro,no,oo){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,to&&(this.textContent=to),ro&&(this.initialValue=ro),no&&(this.defaultSelected=no),oo&&(this.selected=oo),this.proxy=new Option(`${this.textContent}`,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}checkedChanged(to,ro){if(typeof ro=="boolean"){this.ariaChecked=ro?"true":"false";return}this.ariaChecked=null}contentChanged(to,ro){this.proxy instanceof HTMLOptionElement&&(this.proxy.textContent=this.textContent),this.$emit("contentchange",null,{bubbles:!0})}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(to,ro){this.ariaDisabled=this.disabled?"true":"false",this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}selectedChanged(){this.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}initialValueChanged(to,ro){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}get label(){var to;return(to=this.value)!==null&&to!==void 0?to:this.text}get text(){var to,ro;return(ro=(to=this.textContent)===null||to===void 0?void 0:to.replace(/\s+/g," ").trim())!==null&&ro!==void 0?ro:""}set value(to){const ro=`${to??""}`;this._value=ro,this.dirtyValue=!0,this.proxy instanceof HTMLOptionElement&&(this.proxy.value=ro),Observable$1.notify(this,"value")}get value(){var to;return Observable$1.track(this,"value"),(to=this._value)!==null&&to!==void 0?to:this.text}get form(){return this.proxy?this.proxy.form:null}}__decorate([observable],ListboxOption.prototype,"checked",void 0);__decorate([observable],ListboxOption.prototype,"content",void 0);__decorate([observable],ListboxOption.prototype,"defaultSelected",void 0);__decorate([attr({mode:"boolean"})],ListboxOption.prototype,"disabled",void 0);__decorate([attr({attribute:"selected",mode:"boolean"})],ListboxOption.prototype,"selectedAttribute",void 0);__decorate([observable],ListboxOption.prototype,"selected",void 0);__decorate([attr({attribute:"value",mode:"fromView"})],ListboxOption.prototype,"initialValue",void 0);class DelegatesARIAListboxOption{}__decorate([observable],DelegatesARIAListboxOption.prototype,"ariaChecked",void 0);__decorate([observable],DelegatesARIAListboxOption.prototype,"ariaPosInSet",void 0);__decorate([observable],DelegatesARIAListboxOption.prototype,"ariaSelected",void 0);__decorate([observable],DelegatesARIAListboxOption.prototype,"ariaSetSize",void 0);applyMixins(DelegatesARIAListboxOption,ARIAGlobalStatesAndProperties);applyMixins(ListboxOption,StartEnd,DelegatesARIAListboxOption);class Listbox extends FoundationElement{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1}get firstSelectedOption(){var to;return(to=this.selectedOptions[0])!==null&&to!==void 0?to:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every(to=>to.disabled)}get length(){var to,ro;return(ro=(to=this.options)===null||to===void 0?void 0:to.length)!==null&&ro!==void 0?ro:0}get options(){return Observable$1.track(this,"options"),this._options}set options(to){this._options=to,Observable$1.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(to){this.typeaheadExpired=to}clickHandler(to){const ro=to.target.closest("option,[role=option]");if(ro&&!ro.disabled)return this.selectedIndex=this.options.indexOf(ro),!0}focusAndScrollOptionIntoView(to=this.firstSelectedOption){this.contains(document.activeElement)&&to!==null&&(to.focus(),requestAnimationFrame(()=>{to.scrollIntoView({block:"nearest"})}))}focusinHandler(to){!this.shouldSkipFocus&&to.target===to.currentTarget&&(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){const to=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),ro=new RegExp(`^${to}`,"gi");return this.options.filter(no=>no.text.trim().match(ro))}getSelectableIndex(to=this.selectedIndex,ro){const no=to>ro?-1:to!so&&!ao.disabled&&lo!so&&!ao.disabled&&lo>oo?ao:so,io);break}}return this.options.indexOf(io)}handleChange(to,ro){switch(ro){case"selected":{Listbox.slottedOptionFilter(to)&&(this.selectedIndex=this.options.indexOf(to)),this.setSelectedOptions();break}}}handleTypeAhead(to){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout(()=>this.typeaheadExpired=!0,Listbox.TYPE_AHEAD_TIMEOUT_MS),!(to.length>1)&&(this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${to}`)}keydownHandler(to){if(this.disabled)return!0;this.shouldSkipFocus=!1;const ro=to.key;switch(ro){case keyHome:{to.shiftKey||(to.preventDefault(),this.selectFirstOption());break}case keyArrowDown:{to.shiftKey||(to.preventDefault(),this.selectNextOption());break}case keyArrowUp:{to.shiftKey||(to.preventDefault(),this.selectPreviousOption());break}case keyEnd:{to.preventDefault(),this.selectLastOption();break}case keyTab:return this.focusAndScrollOptionIntoView(),!0;case keyEnter:case keyEscape:return!0;case keySpace:if(this.typeaheadExpired)return!0;default:return ro.length===1&&this.handleTypeAhead(`${ro}`),!0}}mousedownHandler(to){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}multipleChanged(to,ro){this.ariaMultiSelectable=ro?"true":null}selectedIndexChanged(to,ro){var no;if(!this.hasSelectableOptions){this.selectedIndex=-1;return}if(!((no=this.options[this.selectedIndex])===null||no===void 0)&&no.disabled&&typeof to=="number"){const oo=this.getSelectableIndex(to,ro),io=oo>-1?oo:to;this.selectedIndex=io,ro===io&&this.selectedIndexChanged(ro,io);return}this.setSelectedOptions()}selectedOptionsChanged(to,ro){var no;const oo=ro.filter(Listbox.slottedOptionFilter);(no=this.options)===null||no===void 0||no.forEach(io=>{const so=Observable$1.getNotifier(io);so.unsubscribe(this,"selected"),io.selected=oo.includes(io),so.subscribe(this,"selected")})}selectFirstOption(){var to,ro;this.disabled||(this.selectedIndex=(ro=(to=this.options)===null||to===void 0?void 0:to.findIndex(no=>!no.disabled))!==null&&ro!==void 0?ro:-1)}selectLastOption(){this.disabled||(this.selectedIndex=findLastIndex(this.options,to=>!to.disabled))}selectNextOption(){!this.disabled&&this.selectedIndex0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){var to,ro;this.selectedIndex=(ro=(to=this.options)===null||to===void 0?void 0:to.findIndex(no=>no.defaultSelected))!==null&&ro!==void 0?ro:-1}setSelectedOptions(){var to,ro,no;!((to=this.options)===null||to===void 0)&&to.length&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=(no=(ro=this.firstSelectedOption)===null||ro===void 0?void 0:ro.id)!==null&&no!==void 0?no:"",this.focusAndScrollOptionIntoView())}slottedOptionsChanged(to,ro){this.options=ro.reduce((oo,io)=>(isListboxOption(io)&&oo.push(io),oo),[]);const no=`${this.options.length}`;this.options.forEach((oo,io)=>{oo.id||(oo.id=uniqueId("option-")),oo.ariaPosInSet=`${io+1}`,oo.ariaSetSize=no}),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(to,ro){if(this.$fastController.isConnected){const no=this.getTypeaheadMatches();if(no.length){const oo=this.options.indexOf(no[0]);oo>-1&&(this.selectedIndex=oo)}this.typeaheadExpired=!1}}}Listbox.slottedOptionFilter=eo=>isListboxOption(eo)&&!eo.hidden;Listbox.TYPE_AHEAD_TIMEOUT_MS=1e3;__decorate([attr({mode:"boolean"})],Listbox.prototype,"disabled",void 0);__decorate([observable],Listbox.prototype,"selectedIndex",void 0);__decorate([observable],Listbox.prototype,"selectedOptions",void 0);__decorate([observable],Listbox.prototype,"slottedOptions",void 0);__decorate([observable],Listbox.prototype,"typeaheadBuffer",void 0);class DelegatesARIAListbox{}__decorate([observable],DelegatesARIAListbox.prototype,"ariaActiveDescendant",void 0);__decorate([observable],DelegatesARIAListbox.prototype,"ariaDisabled",void 0);__decorate([observable],DelegatesARIAListbox.prototype,"ariaExpanded",void 0);__decorate([observable],DelegatesARIAListbox.prototype,"ariaMultiSelectable",void 0);applyMixins(DelegatesARIAListbox,ARIAGlobalStatesAndProperties);applyMixins(Listbox,DelegatesARIAListbox);const SelectPosition={above:"above",below:"below"};function composedParent(eo){const to=eo.parentElement;if(to)return to;{const ro=eo.getRootNode();if(ro.host instanceof HTMLElement)return ro.host}return null}function composedContains(eo,to){let ro=to;for(;ro!==null;){if(ro===eo)return!0;ro=composedParent(ro)}return!1}const defaultElement=document.createElement("div");function isFastElement(eo){return eo instanceof FASTElement}class QueuedStyleSheetTarget{setProperty(to,ro){DOM.queueUpdate(()=>this.target.setProperty(to,ro))}removeProperty(to){DOM.queueUpdate(()=>this.target.removeProperty(to))}}class ConstructableStyleSheetTarget extends QueuedStyleSheetTarget{constructor(to){super();const ro=new CSSStyleSheet;this.target=ro.cssRules[ro.insertRule(":host{}")].style,to.$fastController.addStyles(ElementStyles.create([ro]))}}class DocumentStyleSheetTarget extends QueuedStyleSheetTarget{constructor(){super();const to=new CSSStyleSheet;this.target=to.cssRules[to.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,to]}}class HeadStyleElementStyleSheetTarget extends QueuedStyleSheetTarget{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:to}=this.style;if(to){const ro=to.insertRule(":root{}",to.cssRules.length);this.target=to.cssRules[ro].style}}}class StyleElementStyleSheetTarget{constructor(to){this.store=new Map,this.target=null;const ro=to.$fastController;this.style=document.createElement("style"),ro.addStyles(this.style),Observable$1.getNotifier(ro).subscribe(this,"isConnected"),this.handleChange(ro,"isConnected")}targetChanged(){if(this.target!==null)for(const[to,ro]of this.store.entries())this.target.setProperty(to,ro)}setProperty(to,ro){this.store.set(to,ro),DOM.queueUpdate(()=>{this.target!==null&&this.target.setProperty(to,ro)})}removeProperty(to){this.store.delete(to),DOM.queueUpdate(()=>{this.target!==null&&this.target.removeProperty(to)})}handleChange(to,ro){const{sheet:no}=this.style;if(no){const oo=no.insertRule(":host{}",no.cssRules.length);this.target=no.cssRules[oo].style}else this.target=null}}__decorate([observable],StyleElementStyleSheetTarget.prototype,"target",void 0);class ElementStyleSheetTarget{constructor(to){this.target=to.style}setProperty(to,ro){DOM.queueUpdate(()=>this.target.setProperty(to,ro))}removeProperty(to){DOM.queueUpdate(()=>this.target.removeProperty(to))}}class RootStyleSheetTarget{setProperty(to,ro){RootStyleSheetTarget.properties[to]=ro;for(const no of RootStyleSheetTarget.roots.values())PropertyTargetManager.getOrCreate(RootStyleSheetTarget.normalizeRoot(no)).setProperty(to,ro)}removeProperty(to){delete RootStyleSheetTarget.properties[to];for(const ro of RootStyleSheetTarget.roots.values())PropertyTargetManager.getOrCreate(RootStyleSheetTarget.normalizeRoot(ro)).removeProperty(to)}static registerRoot(to){const{roots:ro}=RootStyleSheetTarget;if(!ro.has(to)){ro.add(to);const no=PropertyTargetManager.getOrCreate(this.normalizeRoot(to));for(const oo in RootStyleSheetTarget.properties)no.setProperty(oo,RootStyleSheetTarget.properties[oo])}}static unregisterRoot(to){const{roots:ro}=RootStyleSheetTarget;if(ro.has(to)){ro.delete(to);const no=PropertyTargetManager.getOrCreate(RootStyleSheetTarget.normalizeRoot(to));for(const oo in RootStyleSheetTarget.properties)no.removeProperty(oo)}}static normalizeRoot(to){return to===defaultElement?document:to}}RootStyleSheetTarget.roots=new Set;RootStyleSheetTarget.properties={};const propertyTargetCache=new WeakMap,propertyTargetCtor=DOM.supportsAdoptedStyleSheets?ConstructableStyleSheetTarget:StyleElementStyleSheetTarget,PropertyTargetManager=Object.freeze({getOrCreate(eo){if(propertyTargetCache.has(eo))return propertyTargetCache.get(eo);let to;return eo===defaultElement?to=new RootStyleSheetTarget:eo instanceof Document?to=DOM.supportsAdoptedStyleSheets?new DocumentStyleSheetTarget:new HeadStyleElementStyleSheetTarget:isFastElement(eo)?to=new propertyTargetCtor(eo):to=new ElementStyleSheetTarget(eo),propertyTargetCache.set(eo,to),to}});class DesignTokenImpl extends CSSDirective{constructor(to){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=to.name,to.cssCustomPropertyName!==null&&(this.cssCustomProperty=`--${to.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=DesignTokenImpl.uniqueId(),DesignTokenImpl.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(to){return new DesignTokenImpl({name:typeof to=="string"?to:to.name,cssCustomPropertyName:typeof to=="string"?to:to.cssCustomPropertyName===void 0?to.name:to.cssCustomPropertyName})}static isCSSDesignToken(to){return typeof to.cssCustomProperty=="string"}static isDerivedDesignTokenValue(to){return typeof to=="function"}static getTokenById(to){return DesignTokenImpl.tokensById.get(to)}getOrCreateSubscriberSet(to=this){return this.subscribers.get(to)||this.subscribers.set(to,new Set)&&this.subscribers.get(to)}createCSS(){return this.cssVar||""}getValueFor(to){const ro=DesignTokenNode.getOrCreate(to).get(this);if(ro!==void 0)return ro;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${to} or an ancestor of ${to}.`)}setValueFor(to,ro){return this._appliedTo.add(to),ro instanceof DesignTokenImpl&&(ro=this.alias(ro)),DesignTokenNode.getOrCreate(to).set(this,ro),this}deleteValueFor(to){return this._appliedTo.delete(to),DesignTokenNode.existsFor(to)&&DesignTokenNode.getOrCreate(to).delete(this),this}withDefault(to){return this.setValueFor(defaultElement,to),this}subscribe(to,ro){const no=this.getOrCreateSubscriberSet(ro);ro&&!DesignTokenNode.existsFor(ro)&&DesignTokenNode.getOrCreate(ro),no.has(to)||no.add(to)}unsubscribe(to,ro){const no=this.subscribers.get(ro||this);no&&no.has(to)&&no.delete(to)}notify(to){const ro=Object.freeze({token:this,target:to});this.subscribers.has(this)&&this.subscribers.get(this).forEach(no=>no.handleChange(ro)),this.subscribers.has(to)&&this.subscribers.get(to).forEach(no=>no.handleChange(ro))}alias(to){return ro=>to.getValueFor(ro)}}DesignTokenImpl.uniqueId=(()=>{let eo=0;return()=>(eo++,eo.toString(16))})();DesignTokenImpl.tokensById=new Map;class CustomPropertyReflector{startReflection(to,ro){to.subscribe(this,ro),this.handleChange({token:to,target:ro})}stopReflection(to,ro){to.unsubscribe(this,ro),this.remove(to,ro)}handleChange(to){const{token:ro,target:no}=to;this.add(ro,no)}add(to,ro){PropertyTargetManager.getOrCreate(ro).setProperty(to.cssCustomProperty,this.resolveCSSValue(DesignTokenNode.getOrCreate(ro).get(to)))}remove(to,ro){PropertyTargetManager.getOrCreate(ro).removeProperty(to.cssCustomProperty)}resolveCSSValue(to){return to&&typeof to.createCSS=="function"?to.createCSS():to}}class DesignTokenBindingObserver{constructor(to,ro,no){this.source=to,this.token=ro,this.node=no,this.dependencies=new Set,this.observer=Observable$1.binding(to,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,defaultExecutionContext))}}class Store{constructor(){this.values=new Map}set(to,ro){this.values.get(to)!==ro&&(this.values.set(to,ro),Observable$1.getNotifier(this).notify(to.id))}get(to){return Observable$1.track(this,to.id),this.values.get(to)}delete(to){this.values.delete(to)}all(){return this.values.entries()}}const nodeCache=new WeakMap,childToParent=new WeakMap;class DesignTokenNode{constructor(to){this.target=to,this.store=new Store,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(ro,no)=>{const oo=DesignTokenImpl.getTokenById(no);if(oo&&(oo.notify(this.target),DesignTokenImpl.isCSSDesignToken(oo))){const io=this.parent,so=this.isReflecting(oo);if(io){const ao=io.get(oo),lo=ro.get(oo);ao!==lo&&!so?this.reflectToCSS(oo):ao===lo&&so&&this.stopReflectToCSS(oo)}else so||this.reflectToCSS(oo)}}},nodeCache.set(to,this),Observable$1.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),to instanceof FASTElement?to.$fastController.addBehaviors([this]):to.isConnected&&this.bind()}static getOrCreate(to){return nodeCache.get(to)||new DesignTokenNode(to)}static existsFor(to){return nodeCache.has(to)}static findParent(to){if(defaultElement!==to.target){let ro=composedParent(to.target);for(;ro!==null;){if(nodeCache.has(ro))return nodeCache.get(ro);ro=composedParent(ro)}return DesignTokenNode.getOrCreate(defaultElement)}return null}static findClosestAssignedNode(to,ro){let no=ro;do{if(no.has(to))return no;no=no.parent?no.parent:no.target!==defaultElement?DesignTokenNode.getOrCreate(defaultElement):null}while(no!==null);return null}get parent(){return childToParent.get(this)||null}has(to){return this.assignedValues.has(to)}get(to){const ro=this.store.get(to);if(ro!==void 0)return ro;const no=this.getRaw(to);if(no!==void 0)return this.hydrate(to,no),this.get(to)}getRaw(to){var ro;return this.assignedValues.has(to)?this.assignedValues.get(to):(ro=DesignTokenNode.findClosestAssignedNode(to,this))===null||ro===void 0?void 0:ro.getRaw(to)}set(to,ro){DesignTokenImpl.isDerivedDesignTokenValue(this.assignedValues.get(to))&&this.tearDownBindingObserver(to),this.assignedValues.set(to,ro),DesignTokenImpl.isDerivedDesignTokenValue(ro)?this.setupBindingObserver(to,ro):this.store.set(to,ro)}delete(to){this.assignedValues.delete(to),this.tearDownBindingObserver(to);const ro=this.getRaw(to);ro?this.hydrate(to,ro):this.store.delete(to)}bind(){const to=DesignTokenNode.findParent(this);to&&to.appendChild(this);for(const ro of this.assignedValues.keys())ro.notify(this.target)}unbind(){this.parent&&childToParent.get(this).removeChild(this)}appendChild(to){to.parent&&childToParent.get(to).removeChild(to);const ro=this.children.filter(no=>to.contains(no));childToParent.set(to,this),this.children.push(to),ro.forEach(no=>to.appendChild(no)),Observable$1.getNotifier(this.store).subscribe(to);for(const[no,oo]of this.store.all())to.hydrate(no,this.bindingObservers.has(no)?this.getRaw(no):oo)}removeChild(to){const ro=this.children.indexOf(to);return ro!==-1&&this.children.splice(ro,1),Observable$1.getNotifier(this.store).unsubscribe(to),to.parent===this?childToParent.delete(to):!1}contains(to){return composedContains(this.target,to.target)}reflectToCSS(to){this.isReflecting(to)||(this.reflecting.add(to),DesignTokenNode.cssCustomPropertyReflector.startReflection(to,this.target))}stopReflectToCSS(to){this.isReflecting(to)&&(this.reflecting.delete(to),DesignTokenNode.cssCustomPropertyReflector.stopReflection(to,this.target))}isReflecting(to){return this.reflecting.has(to)}handleChange(to,ro){const no=DesignTokenImpl.getTokenById(ro);no&&this.hydrate(no,this.getRaw(no))}hydrate(to,ro){if(!this.has(to)){const no=this.bindingObservers.get(to);DesignTokenImpl.isDerivedDesignTokenValue(ro)?no?no.source!==ro&&(this.tearDownBindingObserver(to),this.setupBindingObserver(to,ro)):this.setupBindingObserver(to,ro):(no&&this.tearDownBindingObserver(to),this.store.set(to,ro))}}setupBindingObserver(to,ro){const no=new DesignTokenBindingObserver(ro,to,this);return this.bindingObservers.set(to,no),no}tearDownBindingObserver(to){return this.bindingObservers.has(to)?(this.bindingObservers.get(to).disconnect(),this.bindingObservers.delete(to),!0):!1}}DesignTokenNode.cssCustomPropertyReflector=new CustomPropertyReflector;__decorate([observable],DesignTokenNode.prototype,"children",void 0);function create$2(eo){return DesignTokenImpl.from(eo)}const DesignToken=Object.freeze({create:create$2,notifyConnection(eo){return!eo.isConnected||!DesignTokenNode.existsFor(eo)?!1:(DesignTokenNode.getOrCreate(eo).bind(),!0)},notifyDisconnection(eo){return eo.isConnected||!DesignTokenNode.existsFor(eo)?!1:(DesignTokenNode.getOrCreate(eo).unbind(),!0)},registerRoot(eo=defaultElement){RootStyleSheetTarget.registerRoot(eo)},unregisterRoot(eo=defaultElement){RootStyleSheetTarget.unregisterRoot(eo)}}),ElementDisambiguation=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),elementTypesByTag=new Map,elementTagsByType=new Map;let rootDesignSystem=null;const designSystemKey=DI.createInterface(eo=>eo.cachedCallback(to=>(rootDesignSystem===null&&(rootDesignSystem=new DefaultDesignSystem(null,to)),rootDesignSystem))),DesignSystem=Object.freeze({tagFor(eo){return elementTagsByType.get(eo)},responsibleFor(eo){const to=eo.$$designSystem$$;return to||DI.findResponsibleContainer(eo).get(designSystemKey)},getOrCreate(eo){if(!eo)return rootDesignSystem===null&&(rootDesignSystem=DI.getOrCreateDOMContainer().get(designSystemKey)),rootDesignSystem;const to=eo.$$designSystem$$;if(to)return to;const ro=DI.getOrCreateDOMContainer(eo);if(ro.has(designSystemKey,!1))return ro.get(designSystemKey);{const no=new DefaultDesignSystem(eo,ro);return ro.register(Registration.instance(designSystemKey,no)),no}}});function extractTryDefineElementParams(eo,to,ro){return typeof eo=="string"?{name:eo,type:to,callback:ro}:eo}class DefaultDesignSystem{constructor(to,ro){this.owner=to,this.container=ro,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>ElementDisambiguation.definitionCallbackOnly,to!==null&&(to.$$designSystem$$=this)}withPrefix(to){return this.prefix=to,this}withShadowRootMode(to){return this.shadowRootMode=to,this}withElementDisambiguation(to){return this.disambiguate=to,this}withDesignTokenRoot(to){return this.designTokenRoot=to,this}register(...to){const ro=this.container,no=[],oo=this.disambiguate,io=this.shadowRootMode,so={elementPrefix:this.prefix,tryDefineElement(ao,lo,uo){const co=extractTryDefineElementParams(ao,lo,uo),{name:fo,callback:po,baseClass:ho}=co;let{type:mo}=co,vo=fo,bo=elementTypesByTag.get(vo),xo=!0;for(;bo;){const _o=oo(vo,mo,bo);switch(_o){case ElementDisambiguation.ignoreDuplicate:return;case ElementDisambiguation.definitionCallbackOnly:xo=!1,bo=void 0;break;default:vo=_o,bo=elementTypesByTag.get(vo);break}}xo&&((elementTagsByType.has(mo)||mo===FoundationElement)&&(mo=class extends mo{}),elementTypesByTag.set(vo,mo),elementTagsByType.set(mo,vo),ho&&elementTagsByType.set(ho,vo)),no.push(new ElementDefinitionEntry(ro,vo,mo,io,po,xo))}};this.designTokensInitialized||(this.designTokensInitialized=!0,this.designTokenRoot!==null&&DesignToken.registerRoot(this.designTokenRoot)),ro.registerWithContext(so,...to);for(const ao of no)ao.callback(ao),ao.willDefine&&ao.definition!==null&&ao.definition.define();return this}}class ElementDefinitionEntry{constructor(to,ro,no,oo,io,so){this.container=to,this.name=ro,this.type=no,this.shadowRootMode=oo,this.callback=io,this.willDefine=so,this.definition=null}definePresentation(to){ComponentPresentation.define(this.name,to,this.container)}defineElement(to){this.definition=new FASTElementDefinition(this.type,Object.assign(Object.assign({},to),{name:this.name}))}tagFor(to){return DesignSystem.tagFor(to)}}const dividerTemplate=(eo,to)=>html` - -`,DividerRole={separator:"separator",presentation:"presentation"};let Divider$1=class extends FoundationElement{constructor(){super(...arguments),this.role=DividerRole.separator,this.orientation=Orientation.horizontal}};__decorate([attr],Divider$1.prototype,"role",void 0);__decorate([attr],Divider$1.prototype,"orientation",void 0);const listboxOptionTemplate=(eo,to)=>html` - -`;class ListboxElement extends Listbox{constructor(){super(...arguments),this.activeIndex=-1,this.rangeStartIndex=-1}get activeOption(){return this.options[this.activeIndex]}get checkedOptions(){var to;return(to=this.options)===null||to===void 0?void 0:to.filter(ro=>ro.checked)}get firstSelectedOptionIndex(){return this.options.indexOf(this.firstSelectedOption)}activeIndexChanged(to,ro){var no,oo;this.ariaActiveDescendant=(oo=(no=this.options[ro])===null||no===void 0?void 0:no.id)!==null&&oo!==void 0?oo:"",this.focusAndScrollOptionIntoView()}checkActiveIndex(){if(!this.multiple)return;const to=this.activeOption;to&&(to.checked=!0)}checkFirstOption(to=!1){to?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach((ro,no)=>{ro.checked=inRange(no,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}checkLastOption(to=!1){to?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((ro,no)=>{ro.checked=inRange(no,this.rangeStartIndex,this.options.length)})):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.focusoutHandler)}disconnectedCallback(){this.removeEventListener("focusout",this.focusoutHandler),super.disconnectedCallback()}checkNextOption(to=!1){to?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((ro,no)=>{ro.checked=inRange(no,this.rangeStartIndex,this.activeIndex+1)})):this.uncheckAllOptions(),this.activeIndex+=this.activeIndex{ro.checked=inRange(no,this.activeIndex,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex-=this.activeIndex>0?1:0,this.checkActiveIndex()}clickHandler(to){var ro;if(!this.multiple)return super.clickHandler(to);const no=(ro=to.target)===null||ro===void 0?void 0:ro.closest("[role=option]");if(!(!no||no.disabled))return this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(no),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0}focusAndScrollOptionIntoView(){super.focusAndScrollOptionIntoView(this.activeOption)}focusinHandler(to){if(!this.multiple)return super.focusinHandler(to);!this.shouldSkipFocus&&to.target===to.currentTarget&&(this.uncheckAllOptions(),this.activeIndex===-1&&(this.activeIndex=this.firstSelectedOptionIndex!==-1?this.firstSelectedOptionIndex:0),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}focusoutHandler(to){this.multiple&&this.uncheckAllOptions()}keydownHandler(to){if(!this.multiple)return super.keydownHandler(to);if(this.disabled)return!0;const{key:ro,shiftKey:no}=to;switch(this.shouldSkipFocus=!1,ro){case keyHome:{this.checkFirstOption(no);return}case keyArrowDown:{this.checkNextOption(no);return}case keyArrowUp:{this.checkPreviousOption(no);return}case keyEnd:{this.checkLastOption(no);return}case keyTab:return this.focusAndScrollOptionIntoView(),!0;case keyEscape:return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case keySpace:if(to.preventDefault(),this.typeAheadExpired){this.toggleSelectedForAllCheckedOptions();return}default:return ro.length===1&&this.handleTypeAhead(`${ro}`),!0}}mousedownHandler(to){if(to.offsetX>=0&&to.offsetX<=this.scrollWidth)return super.mousedownHandler(to)}multipleChanged(to,ro){var no;this.ariaMultiSelectable=ro?"true":null,(no=this.options)===null||no===void 0||no.forEach(oo=>{oo.checked=ro?!1:void 0}),this.setSelectedOptions()}setSelectedOptions(){if(!this.multiple){super.setSelectedOptions();return}this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter(to=>to.selected),this.focusAndScrollOptionIntoView())}sizeChanged(to,ro){var no;const oo=Math.max(0,parseInt((no=ro==null?void 0:ro.toFixed())!==null&&no!==void 0?no:"",10));oo!==ro&&DOM.queueUpdate(()=>{this.size=oo})}toggleSelectedForAllCheckedOptions(){const to=this.checkedOptions.filter(no=>!no.disabled),ro=!to.every(no=>no.selected);to.forEach(no=>no.selected=ro),this.selectedIndex=this.options.indexOf(to[to.length-1]),this.setSelectedOptions()}typeaheadBufferChanged(to,ro){if(!this.multiple){super.typeaheadBufferChanged(to,ro);return}if(this.$fastController.isConnected){const no=this.getTypeaheadMatches(),oo=this.options.indexOf(no[0]);oo>-1&&(this.activeIndex=oo,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}uncheckAllOptions(to=!1){this.options.forEach(ro=>ro.checked=this.multiple?!1:void 0),to||(this.rangeStartIndex=-1)}}__decorate([observable],ListboxElement.prototype,"activeIndex",void 0);__decorate([attr({mode:"boolean"})],ListboxElement.prototype,"multiple",void 0);__decorate([attr({converter:nullableNumberConverter})],ListboxElement.prototype,"size",void 0);class _TextField extends FoundationElement{}class FormAssociatedTextField extends FormAssociated(_TextField){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const TextFieldType={email:"email",password:"password",tel:"tel",text:"text",url:"url"};let TextField$1=class extends FormAssociatedTextField{constructor(){super(...arguments),this.type=TextFieldType.text}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&DOM.queueUpdate(()=>{this.focus()})}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}};__decorate([attr({attribute:"readonly",mode:"boolean"})],TextField$1.prototype,"readOnly",void 0);__decorate([attr({mode:"boolean"})],TextField$1.prototype,"autofocus",void 0);__decorate([attr],TextField$1.prototype,"placeholder",void 0);__decorate([attr],TextField$1.prototype,"type",void 0);__decorate([attr],TextField$1.prototype,"list",void 0);__decorate([attr({converter:nullableNumberConverter})],TextField$1.prototype,"maxlength",void 0);__decorate([attr({converter:nullableNumberConverter})],TextField$1.prototype,"minlength",void 0);__decorate([attr],TextField$1.prototype,"pattern",void 0);__decorate([attr({converter:nullableNumberConverter})],TextField$1.prototype,"size",void 0);__decorate([attr({mode:"boolean"})],TextField$1.prototype,"spellcheck",void 0);__decorate([observable],TextField$1.prototype,"defaultSlottedNodes",void 0);class DelegatesARIATextbox{}applyMixins(DelegatesARIATextbox,ARIAGlobalStatesAndProperties);applyMixins(TextField$1,StartEnd,DelegatesARIATextbox);const progressSegments=44,progressRingTemplate=(eo,to)=>html` - -`;class BaseProgress extends FoundationElement{constructor(){super(...arguments),this.percentComplete=0}valueChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){const to=typeof this.min=="number"?this.min:0,ro=typeof this.max=="number"?this.max:100,no=typeof this.value=="number"?this.value:0,oo=ro-to;this.percentComplete=oo===0?0:Math.fround((no-to)/oo*100)}}__decorate([attr({converter:nullableNumberConverter})],BaseProgress.prototype,"value",void 0);__decorate([attr({converter:nullableNumberConverter})],BaseProgress.prototype,"min",void 0);__decorate([attr({converter:nullableNumberConverter})],BaseProgress.prototype,"max",void 0);__decorate([attr({mode:"boolean"})],BaseProgress.prototype,"paused",void 0);__decorate([observable],BaseProgress.prototype,"percentComplete",void 0);const radioGroupTemplate=(eo,to)=>html` - -`;let RadioGroup$1=class extends FoundationElement{constructor(){super(...arguments),this.orientation=Orientation.horizontal,this.radioChangeHandler=to=>{const ro=to.target;ro.checked&&(this.slottedRadioButtons.forEach(no=>{no!==ro&&(no.checked=!1,this.isInsideFoundationToolbar||no.setAttribute("tabindex","-1"))}),this.selectedRadio=ro,this.value=ro.value,ro.setAttribute("tabindex","0"),this.focusedRadio=ro),to.stopPropagation()},this.moveToRadioByIndex=(to,ro)=>{const no=to[ro];this.isInsideToolbar||(no.setAttribute("tabindex","0"),no.readOnly?this.slottedRadioButtons.forEach(oo=>{oo!==no&&oo.setAttribute("tabindex","-1")}):(no.checked=!0,this.selectedRadio=no)),this.focusedRadio=no,no.focus()},this.moveRightOffGroup=()=>{var to;(to=this.nextElementSibling)===null||to===void 0||to.focus()},this.moveLeftOffGroup=()=>{var to;(to=this.previousElementSibling)===null||to===void 0||to.focus()},this.focusOutHandler=to=>{const ro=this.slottedRadioButtons,no=to.target,oo=no!==null?ro.indexOf(no):0,io=this.focusedRadio?ro.indexOf(this.focusedRadio):-1;return(io===0&&oo===io||io===ro.length-1&&io===oo)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),ro.forEach(so=>{so!==this.selectedRadio&&so.setAttribute("tabindex","-1")}))):(this.focusedRadio=ro[0],this.focusedRadio.setAttribute("tabindex","0"),ro.forEach(so=>{so!==this.focusedRadio&&so.setAttribute("tabindex","-1")}))),!0},this.clickHandler=to=>{const ro=to.target;if(ro){const no=this.slottedRadioButtons;ro.checked||no.indexOf(ro)===0?(ro.setAttribute("tabindex","0"),this.selectedRadio=ro):(ro.setAttribute("tabindex","-1"),this.selectedRadio=null),this.focusedRadio=ro}to.preventDefault()},this.shouldMoveOffGroupToTheRight=(to,ro,no)=>to===ro.length&&this.isInsideToolbar&&no===keyArrowRight,this.shouldMoveOffGroupToTheLeft=(to,ro)=>(this.focusedRadio?to.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&ro===keyArrowLeft,this.checkFocusedRadio=()=>{this.focusedRadio!==null&&!this.focusedRadio.readOnly&&!this.focusedRadio.checked&&(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=to=>{const ro=this.slottedRadioButtons;let no=0;if(no=this.focusedRadio?ro.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(no,ro,to.key)){this.moveRightOffGroup();return}else no===ro.length&&(no=0);for(;no1;)if(ro[no].disabled){if(this.focusedRadio&&no===ro.indexOf(this.focusedRadio))break;if(no+1>=ro.length){if(this.isInsideToolbar)break;no=0}else no+=1}else{this.moveToRadioByIndex(ro,no);break}},this.moveLeft=to=>{const ro=this.slottedRadioButtons;let no=0;if(no=this.focusedRadio?ro.indexOf(this.focusedRadio)-1:0,no=no<0?ro.length-1:no,this.shouldMoveOffGroupToTheLeft(ro,to.key)){this.moveLeftOffGroup();return}for(;no>=0&&ro.length>1;)if(ro[no].disabled){if(this.focusedRadio&&no===ro.indexOf(this.focusedRadio))break;no-1<0?no=ro.length-1:no-=1}else{this.moveToRadioByIndex(ro,no);break}},this.keydownHandler=to=>{const ro=to.key;if(ro in ArrowKeys&&this.isInsideFoundationToolbar)return!0;switch(ro){case keyEnter:{this.checkFocusedRadio();break}case keyArrowRight:case keyArrowDown:{this.direction===Direction.ltr?this.moveRight(to):this.moveLeft(to);break}case keyArrowLeft:case keyArrowUp:{this.direction===Direction.ltr?this.moveLeft(to):this.moveRight(to);break}default:return!0}}}readOnlyChanged(){this.slottedRadioButtons!==void 0&&this.slottedRadioButtons.forEach(to=>{this.readOnly?to.readOnly=!0:to.readOnly=!1})}disabledChanged(){this.slottedRadioButtons!==void 0&&this.slottedRadioButtons.forEach(to=>{this.disabled?to.disabled=!0:to.disabled=!1})}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(to=>{to.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(to=>{to.value===this.value&&(to.checked=!0,this.selectedRadio=to)}),this.$emit("change")}slottedRadioButtonsChanged(to,ro){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){var to;return(to=this.parentToolbar)!==null&&to!==void 0?to:!1}get isInsideFoundationToolbar(){var to;return!!(!((to=this.parentToolbar)===null||to===void 0)&&to.$fastController)}connectedCallback(){super.connectedCallback(),this.direction=getDirection(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(to=>{to.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){const to=this.slottedRadioButtons.filter(oo=>oo.hasAttribute("checked")),ro=to?to.length:0;if(ro>1){const oo=to[ro-1];oo.checked=!0}let no=!1;if(this.slottedRadioButtons.forEach(oo=>{this.name!==void 0&&oo.setAttribute("name",this.name),this.disabled&&(oo.disabled=!0),this.readOnly&&(oo.readOnly=!0),this.value&&this.value===oo.value?(this.selectedRadio=oo,this.focusedRadio=oo,oo.checked=!0,oo.setAttribute("tabindex","0"),no=!0):(this.isInsideFoundationToolbar||oo.setAttribute("tabindex","-1"),oo.checked=!1),oo.addEventListener("change",this.radioChangeHandler)}),this.value===void 0&&this.slottedRadioButtons.length>0){const oo=this.slottedRadioButtons.filter(so=>so.hasAttribute("checked")),io=oo!==null?oo.length:0;if(io>0&&!no){const so=oo[io-1];so.checked=!0,this.focusedRadio=so,so.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}};__decorate([attr({attribute:"readonly",mode:"boolean"})],RadioGroup$1.prototype,"readOnly",void 0);__decorate([attr({attribute:"disabled",mode:"boolean"})],RadioGroup$1.prototype,"disabled",void 0);__decorate([attr],RadioGroup$1.prototype,"name",void 0);__decorate([attr],RadioGroup$1.prototype,"value",void 0);__decorate([attr],RadioGroup$1.prototype,"orientation",void 0);__decorate([observable],RadioGroup$1.prototype,"childItems",void 0);__decorate([observable],RadioGroup$1.prototype,"slottedRadioButtons",void 0);const radioTemplate=(eo,to)=>html` - -`;class _Radio extends FoundationElement{}class FormAssociatedRadio extends CheckableFormAssociated(_Radio){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let Radio$1=class extends FormAssociatedRadio{constructor(){super(),this.initialValue="on",this.keypressHandler=to=>{switch(to.key){case keySpace:!this.checked&&!this.readOnly&&(this.checked=!0);return}return!0},this.proxy.setAttribute("type","radio")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}defaultCheckedChanged(){var to;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=(to=this.defaultChecked)!==null&&to!==void 0?to:!1,this.dirtyChecked=!1))}connectedCallback(){var to,ro;super.connectedCallback(),this.validate(),((to=this.parentElement)===null||to===void 0?void 0:to.getAttribute("role"))!=="radiogroup"&&this.getAttribute("tabindex")===null&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=(ro=this.defaultChecked)!==null&&ro!==void 0?ro:!1,this.dirtyChecked=!1))}isInsideRadioGroup(){return this.closest("[role=radiogroup]")!==null}clickHandler(to){!this.disabled&&!this.readOnly&&!this.checked&&(this.checked=!0)}};__decorate([attr({attribute:"readonly",mode:"boolean"})],Radio$1.prototype,"readOnly",void 0);__decorate([observable],Radio$1.prototype,"name",void 0);__decorate([observable],Radio$1.prototype,"defaultSlottedNodes",void 0);function whitespaceFilter(eo,to,ro){return eo.nodeType!==Node.TEXT_NODE?!0:typeof eo.nodeValue=="string"&&!!eo.nodeValue.trim().length}class _Select extends ListboxElement{}class FormAssociatedSelect extends FormAssociated(_Select){constructor(){super(...arguments),this.proxy=document.createElement("select")}}class Select extends FormAssociatedSelect{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.listboxId=uniqueId("listbox-"),this.maxHeight=0}openChanged(to,ro){if(this.collapsible){if(this.open){this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,DOM.queueUpdate(()=>this.focus());return}this.ariaControls="",this.ariaExpanded="false"}}get collapsible(){return!(this.multiple||typeof this.size=="number")}get value(){return Observable$1.track(this,"value"),this._value}set value(to){var ro,no,oo,io,so,ao,lo;const uo=`${this._value}`;if(!((ro=this._options)===null||ro===void 0)&&ro.length){const co=this._options.findIndex(ho=>ho.value===to),fo=(oo=(no=this._options[this.selectedIndex])===null||no===void 0?void 0:no.value)!==null&&oo!==void 0?oo:null,po=(so=(io=this._options[co])===null||io===void 0?void 0:io.value)!==null&&so!==void 0?so:null;(co===-1||fo!==po)&&(to="",this.selectedIndex=co),to=(lo=(ao=this.firstSelectedOption)===null||ao===void 0?void 0:ao.value)!==null&&lo!==void 0?lo:to}uo!==to&&(this._value=to,super.valueChanged(uo,to),Observable$1.notify(this,"value"),this.updateDisplayValue())}updateValue(to){var ro,no;this.$fastController.isConnected&&(this.value=(no=(ro=this.firstSelectedOption)===null||ro===void 0?void 0:ro.value)!==null&&no!==void 0?no:""),to&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(to,ro){super.selectedIndexChanged(to,ro),this.updateValue()}positionChanged(to,ro){this.positionAttribute=ro,this.setPositioning()}setPositioning(){const to=this.getBoundingClientRect(),no=window.innerHeight-to.bottom;this.position=this.forcedPosition?this.positionAttribute:to.top>no?SelectPosition.above:SelectPosition.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===SelectPosition.above?~~to.top:~~no}get displayValue(){var to,ro;return Observable$1.track(this,"displayValue"),(ro=(to=this.firstSelectedOption)===null||to===void 0?void 0:to.text)!==null&&ro!==void 0?ro:""}disabledChanged(to,ro){super.disabledChanged&&super.disabledChanged(to,ro),this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions(),super.setDefaultSelectedOption(),this.selectedIndex===-1&&(this.selectedIndex=0)}clickHandler(to){if(!this.disabled){if(this.open){const ro=to.target.closest("option,[role=option]");if(ro&&ro.disabled)return}return super.clickHandler(to),this.open=this.collapsible&&!this.open,!this.open&&this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0),!0}}focusoutHandler(to){var ro;if(super.focusoutHandler(to),!this.open)return!0;const no=to.relatedTarget;if(this.isSameNode(no)){this.focus();return}!((ro=this.options)===null||ro===void 0)&&ro.includes(no)||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}handleChange(to,ro){super.handleChange(to,ro),ro==="value"&&this.updateValue()}slottedOptionsChanged(to,ro){this.options.forEach(no=>{Observable$1.getNotifier(no).unsubscribe(this,"value")}),super.slottedOptionsChanged(to,ro),this.options.forEach(no=>{Observable$1.getNotifier(no).subscribe(this,"value")}),this.setProxyOptions(),this.updateValue()}mousedownHandler(to){var ro;return to.offsetX>=0&&to.offsetX<=((ro=this.listbox)===null||ro===void 0?void 0:ro.scrollWidth)?super.mousedownHandler(to):this.collapsible}multipleChanged(to,ro){super.multipleChanged(to,ro),this.proxy&&(this.proxy.multiple=ro)}selectedOptionsChanged(to,ro){var no;super.selectedOptionsChanged(to,ro),(no=this.options)===null||no===void 0||no.forEach((oo,io)=>{var so;const ao=(so=this.proxy)===null||so===void 0?void 0:so.options.item(io);ao&&(ao.selected=oo.selected)})}setDefaultSelectedOption(){var to;const ro=(to=this.options)!==null&&to!==void 0?to:Array.from(this.children).filter(Listbox.slottedOptionFilter),no=ro==null?void 0:ro.findIndex(oo=>oo.hasAttribute("selected")||oo.selected||oo.value===this.value);if(no!==-1){this.selectedIndex=no;return}this.selectedIndex=0}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach(to=>{const ro=to.proxy||(to instanceof HTMLOptionElement?to.cloneNode():null);ro&&this.proxy.options.add(ro)}))}keydownHandler(to){super.keydownHandler(to);const ro=to.key||to.key.charCodeAt(0);switch(ro){case keySpace:{to.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break}case keyHome:case keyEnd:{to.preventDefault();break}case keyEnter:{to.preventDefault(),this.open=!this.open;break}case keyEscape:{this.collapsible&&this.open&&(to.preventDefault(),this.open=!1);break}case keyTab:return this.collapsible&&this.open&&(to.preventDefault(),this.open=!1),!0}return!this.open&&this.indexWhenOpened!==this.selectedIndex&&(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!(ro===keyArrowDown||ro===keyArrowUp)}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.addEventListener("contentchange",this.updateDisplayValue)}disconnectedCallback(){this.removeEventListener("contentchange",this.updateDisplayValue),super.disconnectedCallback()}sizeChanged(to,ro){super.sizeChanged(to,ro),this.proxy&&(this.proxy.size=ro)}updateDisplayValue(){this.collapsible&&Observable$1.notify(this,"displayValue")}}__decorate([attr({attribute:"open",mode:"boolean"})],Select.prototype,"open",void 0);__decorate([volatile],Select.prototype,"collapsible",null);__decorate([observable],Select.prototype,"control",void 0);__decorate([attr({attribute:"position"})],Select.prototype,"positionAttribute",void 0);__decorate([observable],Select.prototype,"position",void 0);__decorate([observable],Select.prototype,"maxHeight",void 0);class DelegatesARIASelect{}__decorate([observable],DelegatesARIASelect.prototype,"ariaControls",void 0);applyMixins(DelegatesARIASelect,DelegatesARIAListbox);applyMixins(Select,StartEnd,DelegatesARIASelect);const selectTemplate=(eo,to)=>html` - -`,tabPanelTemplate=(eo,to)=>html` - -`;class TabPanel extends FoundationElement{}const tabTemplate=(eo,to)=>html` - -`;class Tab extends FoundationElement{}__decorate([attr({mode:"boolean"})],Tab.prototype,"disabled",void 0);const tabsTemplate=(eo,to)=>html` - -`,TabsOrientation={vertical:"vertical",horizontal:"horizontal"};class Tabs extends FoundationElement{constructor(){super(...arguments),this.orientation=TabsOrientation.horizontal,this.activeindicator=!0,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=to=>to.getAttribute("aria-disabled")==="true",this.isHiddenElement=to=>to.hasAttribute("hidden"),this.isFocusableElement=to=>!this.isDisabledElement(to)&&!this.isHiddenElement(to),this.setTabs=()=>{const to="gridColumn",ro="gridRow",no=this.isHorizontal()?to:ro;this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach((oo,io)=>{if(oo.slot==="tab"){const so=this.activeTabIndex===io&&this.isFocusableElement(oo);this.activeindicator&&this.isFocusableElement(oo)&&(this.showActiveIndicator=!0);const ao=this.tabIds[io],lo=this.tabpanelIds[io];oo.setAttribute("id",ao),oo.setAttribute("aria-selected",so?"true":"false"),oo.setAttribute("aria-controls",lo),oo.addEventListener("click",this.handleTabClick),oo.addEventListener("keydown",this.handleTabKeyDown),oo.setAttribute("tabindex",so?"0":"-1"),so&&(this.activetab=oo,this.activeid=ao)}oo.style[to]="",oo.style[ro]="",oo.style[no]=`${io+1}`,this.isHorizontal()?oo.classList.remove("vertical"):oo.classList.add("vertical")})},this.setTabPanels=()=>{this.tabpanels.forEach((to,ro)=>{const no=this.tabIds[ro],oo=this.tabpanelIds[ro];to.setAttribute("id",oo),to.setAttribute("aria-labelledby",no),this.activeTabIndex!==ro?to.setAttribute("hidden",""):to.removeAttribute("hidden")})},this.handleTabClick=to=>{const ro=to.currentTarget;ro.nodeType===1&&this.isFocusableElement(ro)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(ro),this.setComponent())},this.handleTabKeyDown=to=>{if(this.isHorizontal())switch(to.key){case keyArrowLeft:to.preventDefault(),this.adjustBackward(to);break;case keyArrowRight:to.preventDefault(),this.adjustForward(to);break}else switch(to.key){case keyArrowUp:to.preventDefault(),this.adjustBackward(to);break;case keyArrowDown:to.preventDefault(),this.adjustForward(to);break}switch(to.key){case keyHome:to.preventDefault(),this.adjust(-this.activeTabIndex);break;case keyEnd:to.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}},this.adjustForward=to=>{const ro=this.tabs;let no=0;for(no=this.activetab?ro.indexOf(this.activetab)+1:1,no===ro.length&&(no=0);no1;)if(this.isFocusableElement(ro[no])){this.moveToTabByIndex(ro,no);break}else{if(this.activetab&&no===ro.indexOf(this.activetab))break;no+1>=ro.length?no=0:no+=1}},this.adjustBackward=to=>{const ro=this.tabs;let no=0;for(no=this.activetab?ro.indexOf(this.activetab)-1:0,no=no<0?ro.length-1:no;no>=0&&ro.length>1;)if(this.isFocusableElement(ro[no])){this.moveToTabByIndex(ro,no);break}else no-1<0?no=ro.length-1:no-=1},this.moveToTabByIndex=(to,ro)=>{const no=to[ro];this.activetab=no,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=ro,no.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(to,ro){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(no=>no.id===to),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return this.tabs.map(to=>{var ro;return(ro=to.getAttribute("id"))!==null&&ro!==void 0?ro:`tab-${uniqueId()}`})}getTabPanelIds(){return this.tabpanels.map(to=>{var ro;return(ro=to.getAttribute("id"))!==null&&ro!==void 0?ro:`panel-${uniqueId()}`})}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===TabsOrientation.horizontal}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;const to=this.isHorizontal()?"gridColumn":"gridRow",ro=this.isHorizontal()?"translateX":"translateY",no=this.isHorizontal()?"offsetLeft":"offsetTop",oo=this.activeIndicatorRef[no];this.activeIndicatorRef.style[to]=`${this.activeTabIndex+1}`;const io=this.activeIndicatorRef[no];this.activeIndicatorRef.style[to]=`${this.prevActiveTabIndex+1}`;const so=io-oo;this.activeIndicatorRef.style.transform=`${ro}(${so}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",()=>{this.ticking=!1,this.activeIndicatorRef.style[to]=`${this.activeTabIndex+1}`,this.activeIndicatorRef.style.transform=`${ro}(0px)`,this.activeIndicatorRef.classList.remove("activeIndicatorTransition")})}adjust(to){const ro=this.tabs.filter(so=>this.isFocusableElement(so)),no=ro.indexOf(this.activetab),oo=limit(0,ro.length-1,no+to),io=this.tabs.indexOf(ro[oo]);io>-1&&this.moveToTabByIndex(this.tabs,io)}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}__decorate([attr],Tabs.prototype,"orientation",void 0);__decorate([attr],Tabs.prototype,"activeid",void 0);__decorate([observable],Tabs.prototype,"tabs",void 0);__decorate([observable],Tabs.prototype,"tabpanels",void 0);__decorate([attr({mode:"boolean"})],Tabs.prototype,"activeindicator",void 0);__decorate([observable],Tabs.prototype,"activeIndicatorRef",void 0);__decorate([observable],Tabs.prototype,"showActiveIndicator",void 0);applyMixins(Tabs,StartEnd);class _TextArea extends FoundationElement{}class FormAssociatedTextArea extends FormAssociated(_TextArea){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}const TextAreaResize={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};let TextArea$1=class extends FormAssociatedTextArea{constructor(){super(...arguments),this.resize=TextAreaResize.none,this.cols=20,this.handleTextInput=()=>{this.value=this.control.value}}readOnlyChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.readOnly=this.readOnly)}autofocusChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.autofocus=this.autofocus)}listChanged(){this.proxy instanceof HTMLTextAreaElement&&this.proxy.setAttribute("list",this.list)}maxlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.maxLength=this.maxlength)}minlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.minLength=this.minlength)}spellcheckChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.spellcheck=this.spellcheck)}select(){this.control.select(),this.$emit("select")}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}};__decorate([attr({mode:"boolean"})],TextArea$1.prototype,"readOnly",void 0);__decorate([attr],TextArea$1.prototype,"resize",void 0);__decorate([attr({mode:"boolean"})],TextArea$1.prototype,"autofocus",void 0);__decorate([attr({attribute:"form"})],TextArea$1.prototype,"formId",void 0);__decorate([attr],TextArea$1.prototype,"list",void 0);__decorate([attr({converter:nullableNumberConverter})],TextArea$1.prototype,"maxlength",void 0);__decorate([attr({converter:nullableNumberConverter})],TextArea$1.prototype,"minlength",void 0);__decorate([attr],TextArea$1.prototype,"name",void 0);__decorate([attr],TextArea$1.prototype,"placeholder",void 0);__decorate([attr({converter:nullableNumberConverter,mode:"fromView"})],TextArea$1.prototype,"cols",void 0);__decorate([attr({converter:nullableNumberConverter,mode:"fromView"})],TextArea$1.prototype,"rows",void 0);__decorate([attr({mode:"boolean"})],TextArea$1.prototype,"spellcheck",void 0);__decorate([observable],TextArea$1.prototype,"defaultSlottedNodes",void 0);applyMixins(TextArea$1,DelegatesARIATextbox);const textAreaTemplate=(eo,to)=>html` - -`,textFieldTemplate=(eo,to)=>html` - -`,disabledCursor="not-allowed",hidden=":host([hidden]){display:none}";function display(eo){return`${hidden}:host{display:${eo}}`}const focusVisible=canUseFocusVisible()?"focus-visible":"focus",reservedReactProperties=new Set(["children","localName","ref","style","className"]),emptyProps=Object.freeze(Object.create(null)),DEFAULT_CACHE_NAME="_default",wrappersCache=new Map;function setRef(eo,to){typeof eo=="function"?eo(to):eo.current=to}function getTagName(eo,to){if(!to.name){const ro=FASTElementDefinition.forType(eo);if(ro)to.name=ro.name;else throw new Error("React wrappers must wrap a FASTElement or be configured with a name.")}return to.name}function getElementEvents(eo){return eo.events||(eo.events={})}function keyIsValid(eo,to,ro){return reservedReactProperties.has(ro)?(console.warn(`${getTagName(eo,to)} contains property ${ro} which is a React reserved property. It will be used by React and not set on the element.`),!1):!0}function getElementKeys(eo,to){if(!to.keys)if(to.properties)to.keys=new Set(to.properties.concat(Object.keys(getElementEvents(to))));else{const ro=new Set(Object.keys(getElementEvents(to))),no=Observable$1.getAccessors(eo.prototype);if(no.length>0)for(const oo of no)keyIsValid(eo,to,oo.name)&&ro.add(oo.name);else for(const oo in eo.prototype)!(oo in HTMLElement.prototype)&&keyIsValid(eo,to,oo)&&ro.add(oo);to.keys=ro}return to.keys}function provideReactWrapper(eo,to){let ro=[];const no={register(io,...so){ro.forEach(ao=>ao.register(io,...so)),ro=[]}};function oo(io,so={}){var ao,lo;io instanceof FoundationElementRegistry&&(to?to.register(io):ro.push(io),io=io.type);const uo=wrappersCache.get(io);if(uo){const po=uo.get((ao=so.name)!==null&&ao!==void 0?ao:DEFAULT_CACHE_NAME);if(po)return po}class co extends eo.Component{constructor(){super(...arguments),this._element=null}_updateElement(ho){const mo=this._element;if(mo===null)return;const vo=this.props,bo=ho||emptyProps,xo=getElementEvents(so);for(const _o in this._elementProps){const So=vo[_o],Eo=xo[_o];if(Eo===void 0)mo[_o]=So;else{const ko=bo[_o];if(So===ko)continue;ko!==void 0&&mo.removeEventListener(Eo,ko),So!==void 0&&mo.addEventListener(Eo,So)}}}componentDidMount(){this._updateElement()}componentDidUpdate(ho){this._updateElement(ho)}render(){const ho=this.props.__forwardedRef;(this._ref===void 0||this._userRef!==ho)&&(this._ref=_o=>{this._element===null&&(this._element=_o),ho!==null&&setRef(ho,_o),this._userRef=ho});const mo={ref:this._ref},vo=this._elementProps={},bo=getElementKeys(io,so),xo=this.props;for(const _o in xo){const So=xo[_o];bo.has(_o)?vo[_o]=So:mo[_o==="className"?"class":_o]=So}return eo.createElement(getTagName(io,so),mo)}}const fo=eo.forwardRef((po,ho)=>eo.createElement(co,Object.assign(Object.assign({},po),{__forwardedRef:ho}),po==null?void 0:po.children));return wrappersCache.has(io)||wrappersCache.set(io,new Map),wrappersCache.get(io).set((lo=so.name)!==null&&lo!==void 0?lo:DEFAULT_CACHE_NAME,fo),fo}return{wrap:oo,registry:no}}function provideVSCodeDesignSystem(eo){return DesignSystem.getOrCreate(eo).withPrefix("vscode")}function initThemeChangeListener(eo){window.addEventListener("load",()=>{new MutationObserver(()=>{applyCurrentTheme(eo)}).observe(document.body,{attributes:!0,attributeFilter:["class"]}),applyCurrentTheme(eo)})}function applyCurrentTheme(eo){const to=getComputedStyle(document.body),ro=document.querySelector("body");if(ro){const no=ro.getAttribute("data-vscode-theme-kind");for(const[oo,io]of eo){let so=to.getPropertyValue(oo).toString();if(no==="vscode-high-contrast")so.length===0&&io.name.includes("background")&&(so="transparent"),io.name==="button-icon-hover-background"&&(so="transparent");else if(no==="vscode-high-contrast-light"){if(so.length===0&&io.name.includes("background"))switch(io.name){case"button-primary-hover-background":so="#0F4A85";break;case"button-secondary-hover-background":so="transparent";break;case"button-icon-hover-background":so="transparent";break}}else io.name==="contrast-active-border"&&(so="transparent");io.setValueFor(ro,so)}}}const tokenMappings=new Map;let isThemeListenerInitialized=!1;function create$1(eo,to){const ro=DesignToken.create(eo);if(to){if(to.includes("--fake-vscode-token")){const no="id"+Math.random().toString(16).slice(2);to=`${to}-${no}`}tokenMappings.set(to,ro)}return isThemeListenerInitialized||(initThemeChangeListener(tokenMappings),isThemeListenerInitialized=!0),ro}const background=create$1("background","--vscode-editor-background").withDefault("#1e1e1e"),borderWidth=create$1("border-width").withDefault(1),contrastActiveBorder=create$1("contrast-active-border","--vscode-contrastActiveBorder").withDefault("#f38518");create$1("contrast-border","--vscode-contrastBorder").withDefault("#6fc3df");const cornerRadius=create$1("corner-radius").withDefault(0),cornerRadiusRound=create$1("corner-radius-round").withDefault(2),designUnit=create$1("design-unit").withDefault(4),disabledOpacity=create$1("disabled-opacity").withDefault(.4),focusBorder=create$1("focus-border","--vscode-focusBorder").withDefault("#007fd4"),fontFamily=create$1("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");create$1("font-weight","--vscode-font-weight").withDefault("400");const foreground=create$1("foreground","--vscode-foreground").withDefault("#cccccc"),inputHeight=create$1("input-height").withDefault("26"),inputMinWidth=create$1("input-min-width").withDefault("100px"),typeRampBaseFontSize=create$1("type-ramp-base-font-size","--vscode-font-size").withDefault("13px"),typeRampBaseLineHeight=create$1("type-ramp-base-line-height").withDefault("normal"),typeRampMinus1FontSize=create$1("type-ramp-minus1-font-size").withDefault("11px"),typeRampMinus1LineHeight=create$1("type-ramp-minus1-line-height").withDefault("16px");create$1("type-ramp-minus2-font-size").withDefault("9px");create$1("type-ramp-minus2-line-height").withDefault("16px");create$1("type-ramp-plus1-font-size").withDefault("16px");create$1("type-ramp-plus1-line-height").withDefault("24px");const scrollbarWidth=create$1("scrollbarWidth").withDefault("10px"),scrollbarHeight=create$1("scrollbarHeight").withDefault("10px"),scrollbarSliderBackground=create$1("scrollbar-slider-background","--vscode-scrollbarSlider-background").withDefault("#79797966"),scrollbarSliderHoverBackground=create$1("scrollbar-slider-hover-background","--vscode-scrollbarSlider-hoverBackground").withDefault("#646464b3"),scrollbarSliderActiveBackground=create$1("scrollbar-slider-active-background","--vscode-scrollbarSlider-activeBackground").withDefault("#bfbfbf66"),badgeBackground=create$1("badge-background","--vscode-badge-background").withDefault("#4d4d4d"),badgeForeground=create$1("badge-foreground","--vscode-badge-foreground").withDefault("#ffffff"),buttonBorder=create$1("button-border","--vscode-button-border").withDefault("transparent"),buttonIconBackground=create$1("button-icon-background").withDefault("transparent"),buttonIconCornerRadius=create$1("button-icon-corner-radius").withDefault("5px"),buttonIconFocusBorderOffset=create$1("button-icon-outline-offset").withDefault(0),buttonIconHoverBackground=create$1("button-icon-hover-background","--fake-vscode-token").withDefault("rgba(90, 93, 94, 0.31)"),buttonIconPadding=create$1("button-icon-padding").withDefault("3px"),buttonPrimaryBackground=create$1("button-primary-background","--vscode-button-background").withDefault("#0e639c"),buttonPrimaryForeground=create$1("button-primary-foreground","--vscode-button-foreground").withDefault("#ffffff"),buttonPrimaryHoverBackground=create$1("button-primary-hover-background","--vscode-button-hoverBackground").withDefault("#1177bb"),buttonSecondaryBackground=create$1("button-secondary-background","--vscode-button-secondaryBackground").withDefault("#3a3d41"),buttonSecondaryForeground=create$1("button-secondary-foreground","--vscode-button-secondaryForeground").withDefault("#ffffff"),buttonSecondaryHoverBackground=create$1("button-secondary-hover-background","--vscode-button-secondaryHoverBackground").withDefault("#45494e"),buttonPaddingHorizontal=create$1("button-padding-horizontal").withDefault("11px"),buttonPaddingVertical=create$1("button-padding-vertical").withDefault("4px"),checkboxBackground=create$1("checkbox-background","--vscode-checkbox-background").withDefault("#3c3c3c"),checkboxBorder=create$1("checkbox-border","--vscode-checkbox-border").withDefault("#3c3c3c"),checkboxCornerRadius=create$1("checkbox-corner-radius").withDefault(3);create$1("checkbox-foreground","--vscode-checkbox-foreground").withDefault("#f0f0f0");const listActiveSelectionBackground=create$1("list-active-selection-background","--vscode-list-activeSelectionBackground").withDefault("#094771"),listActiveSelectionForeground=create$1("list-active-selection-foreground","--vscode-list-activeSelectionForeground").withDefault("#ffffff"),listHoverBackground=create$1("list-hover-background","--vscode-list-hoverBackground").withDefault("#2a2d2e"),dividerBackground=create$1("divider-background","--vscode-settings-dropdownListBorder").withDefault("#454545"),dropdownBackground=create$1("dropdown-background","--vscode-dropdown-background").withDefault("#3c3c3c"),dropdownBorder=create$1("dropdown-border","--vscode-dropdown-border").withDefault("#3c3c3c");create$1("dropdown-foreground","--vscode-dropdown-foreground").withDefault("#f0f0f0");const dropdownListMaxHeight=create$1("dropdown-list-max-height").withDefault("200px"),inputBackground=create$1("input-background","--vscode-input-background").withDefault("#3c3c3c"),inputForeground=create$1("input-foreground","--vscode-input-foreground").withDefault("#cccccc");create$1("input-placeholder-foreground","--vscode-input-placeholderForeground").withDefault("#cccccc");const linkActiveForeground=create$1("link-active-foreground","--vscode-textLink-activeForeground").withDefault("#3794ff"),linkForeground=create$1("link-foreground","--vscode-textLink-foreground").withDefault("#3794ff"),progressBackground=create$1("progress-background","--vscode-progressBar-background").withDefault("#0e70c0"),panelTabActiveBorder=create$1("panel-tab-active-border","--vscode-panelTitle-activeBorder").withDefault("#e7e7e7"),panelTabActiveForeground=create$1("panel-tab-active-foreground","--vscode-panelTitle-activeForeground").withDefault("#e7e7e7"),panelTabForeground=create$1("panel-tab-foreground","--vscode-panelTitle-inactiveForeground").withDefault("#e7e7e799");create$1("panel-view-background","--vscode-panel-background").withDefault("#1e1e1e");create$1("panel-view-border","--vscode-panel-border").withDefault("#80808059");const tagCornerRadius=create$1("tag-corner-radius").withDefault("2px"),badgeStyles=(eo,to)=>css$1` - ${display("inline-block")} :host { - box-sizing: border-box; - font-family: ${fontFamily}; - font-size: ${typeRampMinus1FontSize}; - line-height: ${typeRampMinus1LineHeight}; - text-align: center; - } - .control { - align-items: center; - background-color: ${badgeBackground}; - border: calc(${borderWidth} * 1px) solid ${buttonBorder}; - border-radius: 11px; - box-sizing: border-box; - color: ${badgeForeground}; - display: flex; - height: calc(${designUnit} * 4px); - justify-content: center; - min-width: calc(${designUnit} * 4px + 2px); - min-height: calc(${designUnit} * 4px + 2px); - padding: 3px 6px; - } -`;class Badge extends Badge$1{connectedCallback(){super.connectedCallback(),this.circular||(this.circular=!0)}}const vsCodeBadge=Badge.compose({baseName:"badge",template:badgeTemplate,styles:badgeStyles}),BaseButtonStyles=css$1` - ${display("inline-flex")} :host { - outline: none; - font-family: ${fontFamily}; - font-size: ${typeRampBaseFontSize}; - line-height: ${typeRampBaseLineHeight}; - color: ${buttonPrimaryForeground}; - background: ${buttonPrimaryBackground}; - border-radius: calc(${cornerRadiusRound} * 1px); - fill: currentColor; - cursor: pointer; - } - .control { - background: transparent; - height: inherit; - flex-grow: 1; - box-sizing: border-box; - display: inline-flex; - justify-content: center; - align-items: center; - padding: ${buttonPaddingVertical} ${buttonPaddingHorizontal}; - white-space: wrap; - outline: none; - text-decoration: none; - border: calc(${borderWidth} * 1px) solid ${buttonBorder}; - color: inherit; - border-radius: inherit; - fill: inherit; - cursor: inherit; - font-family: inherit; - } - :host(:hover) { - background: ${buttonPrimaryHoverBackground}; - } - :host(:active) { - background: ${buttonPrimaryBackground}; - } - .control:${focusVisible} { - outline: calc(${borderWidth} * 1px) solid ${focusBorder}; - outline-offset: calc(${borderWidth} * 2px); - } - .control::-moz-focus-inner { - border: 0; - } - :host([disabled]) { - opacity: ${disabledOpacity}; - background: ${buttonPrimaryBackground}; - cursor: ${disabledCursor}; - } - .content { - display: flex; - } - .start { - display: flex; - } - ::slotted(svg), - ::slotted(span) { - width: calc(${designUnit} * 4px); - height: calc(${designUnit} * 4px); - } - .start { - margin-inline-end: 8px; - } -`,PrimaryButtonStyles=css$1` - :host([appearance='primary']) { - background: ${buttonPrimaryBackground}; - color: ${buttonPrimaryForeground}; - } - :host([appearance='primary']:hover) { - background: ${buttonPrimaryHoverBackground}; - } - :host([appearance='primary']:active) .control:active { - background: ${buttonPrimaryBackground}; - } - :host([appearance='primary']) .control:${focusVisible} { - outline: calc(${borderWidth} * 1px) solid ${focusBorder}; - outline-offset: calc(${borderWidth} * 2px); - } - :host([appearance='primary'][disabled]) { - background: ${buttonPrimaryBackground}; - } -`,SecondaryButtonStyles=css$1` - :host([appearance='secondary']) { - background: ${buttonSecondaryBackground}; - color: ${buttonSecondaryForeground}; - } - :host([appearance='secondary']:hover) { - background: ${buttonSecondaryHoverBackground}; - } - :host([appearance='secondary']:active) .control:active { - background: ${buttonSecondaryBackground}; - } - :host([appearance='secondary']) .control:${focusVisible} { - outline: calc(${borderWidth} * 1px) solid ${focusBorder}; - outline-offset: calc(${borderWidth} * 2px); - } - :host([appearance='secondary'][disabled]) { - background: ${buttonSecondaryBackground}; - } -`,IconButtonStyles=css$1` - :host([appearance='icon']) { - background: ${buttonIconBackground}; - border-radius: ${buttonIconCornerRadius}; - color: ${foreground}; - } - :host([appearance='icon']:hover) { - background: ${buttonIconHoverBackground}; - outline: 1px dotted ${contrastActiveBorder}; - outline-offset: -1px; - } - :host([appearance='icon']) .control { - padding: ${buttonIconPadding}; - border: none; - } - :host([appearance='icon']:active) .control:active { - background: ${buttonIconHoverBackground}; - } - :host([appearance='icon']) .control:${focusVisible} { - outline: calc(${borderWidth} * 1px) solid ${focusBorder}; - outline-offset: ${buttonIconFocusBorderOffset}; - } - :host([appearance='icon'][disabled]) { - background: ${buttonIconBackground}; - } -`,buttonStyles=(eo,to)=>css$1` - ${BaseButtonStyles} - ${PrimaryButtonStyles} - ${SecondaryButtonStyles} - ${IconButtonStyles} -`;class Button extends Button$1{connectedCallback(){if(super.connectedCallback(),!this.appearance){const to=this.getAttribute("appearance");this.appearance=to}}attributeChangedCallback(to,ro,no){to==="appearance"&&no==="icon"&&(this.getAttribute("aria-label")||(this.ariaLabel="Icon Button")),to==="aria-label"&&(this.ariaLabel=no),to==="disabled"&&(this.disabled=no!==null)}}__decorate$1([attr],Button.prototype,"appearance",void 0);const vsCodeButton=Button.compose({baseName:"button",template:buttonTemplate,styles:buttonStyles,shadowOptions:{delegatesFocus:!0}}),checkboxStyles=(eo,to)=>css$1` - ${display("inline-flex")} :host { - align-items: center; - outline: none; - margin: calc(${designUnit} * 1px) 0; - user-select: none; - font-size: ${typeRampBaseFontSize}; - line-height: ${typeRampBaseLineHeight}; - } - .control { - position: relative; - width: calc(${designUnit} * 4px + 2px); - height: calc(${designUnit} * 4px + 2px); - box-sizing: border-box; - border-radius: calc(${checkboxCornerRadius} * 1px); - border: calc(${borderWidth} * 1px) solid ${checkboxBorder}; - background: ${checkboxBackground}; - outline: none; - cursor: pointer; - } - .label { - font-family: ${fontFamily}; - color: ${foreground}; - padding-inline-start: calc(${designUnit} * 2px + 2px); - margin-inline-end: calc(${designUnit} * 2px + 2px); - cursor: pointer; - } - .label__hidden { - display: none; - visibility: hidden; - } - .checked-indicator { - width: 100%; - height: 100%; - display: block; - fill: ${foreground}; - opacity: 0; - pointer-events: none; - } - .indeterminate-indicator { - border-radius: 2px; - background: ${foreground}; - position: absolute; - top: 50%; - left: 50%; - width: 50%; - height: 50%; - transform: translate(-50%, -50%); - opacity: 0; - } - :host(:enabled) .control:hover { - background: ${checkboxBackground}; - border-color: ${checkboxBorder}; - } - :host(:enabled) .control:active { - background: ${checkboxBackground}; - border-color: ${focusBorder}; - } - :host(:${focusVisible}) .control { - border: calc(${borderWidth} * 1px) solid ${focusBorder}; - } - :host(.disabled) .label, - :host(.readonly) .label, - :host(.readonly) .control, - :host(.disabled) .control { - cursor: ${disabledCursor}; - } - :host(.checked:not(.indeterminate)) .checked-indicator, - :host(.indeterminate) .indeterminate-indicator { - opacity: 1; - } - :host(.disabled) { - opacity: ${disabledOpacity}; - } -`;class Checkbox extends Checkbox$1{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Checkbox")}}const vsCodeCheckbox=Checkbox.compose({baseName:"checkbox",template:checkboxTemplate,styles:checkboxStyles,checkedIndicator:` - - - - `,indeterminateIndicator:` -
- `}),dataGridStyles=(eo,to)=>css$1` - :host { - display: flex; - position: relative; - flex-direction: column; - width: 100%; - } -`,dataGridRowStyles=(eo,to)=>css$1` - :host { - display: grid; - padding: calc((${designUnit} / 4) * 1px) 0; - box-sizing: border-box; - width: 100%; - background: transparent; - } - :host(.header) { - } - :host(.sticky-header) { - background: ${background}; - position: sticky; - top: 0; - } - :host(:hover) { - background: ${listHoverBackground}; - outline: 1px dotted ${contrastActiveBorder}; - outline-offset: -1px; - } -`,dataGridCellStyles=(eo,to)=>css$1` - :host { - padding: calc(${designUnit} * 1px) calc(${designUnit} * 3px); - color: ${foreground}; - opacity: 1; - box-sizing: border-box; - font-family: ${fontFamily}; - font-size: ${typeRampBaseFontSize}; - line-height: ${typeRampBaseLineHeight}; - font-weight: 400; - border: solid calc(${borderWidth} * 1px) transparent; - border-radius: calc(${cornerRadius} * 1px); - white-space: wrap; - overflow-wrap: anywhere; - } - :host(.column-header) { - font-weight: 600; - } - :host(:${focusVisible}), - :host(:focus), - :host(:active) { - background: ${listActiveSelectionBackground}; - border: solid calc(${borderWidth} * 1px) ${focusBorder}; - color: ${listActiveSelectionForeground}; - outline: none; - } - :host(:${focusVisible}) ::slotted(*), - :host(:focus) ::slotted(*), - :host(:active) ::slotted(*) { - color: ${listActiveSelectionForeground} !important; - } -`;class DataGrid extends DataGrid$1{connectedCallback(){super.connectedCallback(),this.getAttribute("aria-label")||this.setAttribute("aria-label","Data Grid")}}const vsCodeDataGrid=DataGrid.compose({baseName:"data-grid",baseClass:DataGrid$1,template:dataGridTemplate,styles:dataGridStyles});class DataGridRow extends DataGridRow$1{}const vsCodeDataGridRow=DataGridRow.compose({baseName:"data-grid-row",baseClass:DataGridRow$1,template:dataGridRowTemplate,styles:dataGridRowStyles});class DataGridCell extends DataGridCell$1{}const vsCodeDataGridCell=DataGridCell.compose({baseName:"data-grid-cell",baseClass:DataGridCell$1,template:dataGridCellTemplate,styles:dataGridCellStyles}),dividerStyles=(eo,to)=>css$1` - ${display("block")} :host { - border: none; - border-top: calc(${borderWidth} * 1px) solid ${dividerBackground}; - box-sizing: content-box; - height: 0; - margin: calc(${designUnit} * 1px) 0; - width: 100%; - } -`;class Divider extends Divider$1{}const vsCodeDivider=Divider.compose({baseName:"divider",template:dividerTemplate,styles:dividerStyles}),dropdownStyles=(eo,to)=>css$1` - ${display("inline-flex")} :host { - background: ${dropdownBackground}; - border-radius: calc(${cornerRadiusRound} * 1px); - box-sizing: border-box; - color: ${foreground}; - contain: contents; - font-family: ${fontFamily}; - height: calc(${inputHeight} * 1px); - position: relative; - user-select: none; - min-width: ${inputMinWidth}; - outline: none; - vertical-align: top; - } - .control { - align-items: center; - box-sizing: border-box; - border: calc(${borderWidth} * 1px) solid ${dropdownBorder}; - border-radius: calc(${cornerRadiusRound} * 1px); - cursor: pointer; - display: flex; - font-family: inherit; - font-size: ${typeRampBaseFontSize}; - line-height: ${typeRampBaseLineHeight}; - min-height: 100%; - padding: 2px 6px 2px 8px; - width: 100%; - } - .listbox { - background: ${dropdownBackground}; - border: calc(${borderWidth} * 1px) solid ${focusBorder}; - border-radius: calc(${cornerRadiusRound} * 1px); - box-sizing: border-box; - display: inline-flex; - flex-direction: column; - left: 0; - max-height: ${dropdownListMaxHeight}; - padding: 0; - overflow-y: auto; - position: absolute; - width: 100%; - z-index: 1; - } - .listbox[hidden] { - display: none; - } - :host(:${focusVisible}) .control { - border-color: ${focusBorder}; - } - :host(:not([disabled]):hover) { - background: ${dropdownBackground}; - border-color: ${dropdownBorder}; - } - :host(:${focusVisible}) ::slotted([aria-selected="true"][role="option"]:not([disabled])) { - background: ${listActiveSelectionBackground}; - border: calc(${borderWidth} * 1px) solid transparent; - color: ${listActiveSelectionForeground}; - } - :host([disabled]) { - cursor: ${disabledCursor}; - opacity: ${disabledOpacity}; - } - :host([disabled]) .control { - cursor: ${disabledCursor}; - user-select: none; - } - :host([disabled]:hover) { - background: ${dropdownBackground}; - color: ${foreground}; - fill: currentcolor; - } - :host(:not([disabled])) .control:active { - border-color: ${focusBorder}; - } - :host(:empty) .listbox { - display: none; - } - :host([open]) .control { - border-color: ${focusBorder}; - } - :host([open][position='above']) .listbox { - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; - } - :host([open][position='below']) .listbox { - border-top-left-radius: 0; - border-top-right-radius: 0; - } - :host([open][position='above']) .listbox { - bottom: calc(${inputHeight} * 1px); - } - :host([open][position='below']) .listbox { - top: calc(${inputHeight} * 1px); - } - .selected-value { - flex: 1 1 auto; - font-family: inherit; - overflow: hidden; - text-align: start; - text-overflow: ellipsis; - white-space: nowrap; - } - .indicator { - flex: 0 0 auto; - margin-inline-start: 1em; - } - slot[name='listbox'] { - display: none; - width: 100%; - } - :host([open]) slot[name='listbox'] { - display: flex; - position: absolute; - } - .end { - margin-inline-start: auto; - } - .start, - .end, - .indicator, - .select-indicator, - ::slotted(svg), - ::slotted(span) { - fill: currentcolor; - height: 1em; - min-height: calc(${designUnit} * 4px); - min-width: calc(${designUnit} * 4px); - width: 1em; - } - ::slotted([role='option']), - ::slotted(option) { - flex: 0 0 auto; - } -`;class Dropdown extends Select{}const vsCodeDropdown=Dropdown.compose({baseName:"dropdown",template:selectTemplate,styles:dropdownStyles,indicator:` - - - - `}),linkStyles=(eo,to)=>css$1` - ${display("inline-flex")} :host { - background: transparent; - box-sizing: border-box; - color: ${linkForeground}; - cursor: pointer; - fill: currentcolor; - font-family: ${fontFamily}; - font-size: ${typeRampBaseFontSize}; - line-height: ${typeRampBaseLineHeight}; - outline: none; - } - .control { - background: transparent; - border: calc(${borderWidth} * 1px) solid transparent; - border-radius: calc(${cornerRadius} * 1px); - box-sizing: border-box; - color: inherit; - cursor: inherit; - fill: inherit; - font-family: inherit; - height: inherit; - padding: 0; - outline: none; - text-decoration: none; - word-break: break-word; - } - .control::-moz-focus-inner { - border: 0; - } - :host(:hover) { - color: ${linkActiveForeground}; - } - :host(:hover) .content { - text-decoration: underline; - } - :host(:active) { - background: transparent; - color: ${linkActiveForeground}; - } - :host(:${focusVisible}) .control, - :host(:focus) .control { - border: calc(${borderWidth} * 1px) solid ${focusBorder}; - } -`;class Link extends Anchor{}const vsCodeLink=Link.compose({baseName:"link",template:anchorTemplate,styles:linkStyles,shadowOptions:{delegatesFocus:!0}}),optionStyles=(eo,to)=>css$1` - ${display("inline-flex")} :host { - font-family: var(--body-font); - border-radius: ${cornerRadius}; - border: calc(${borderWidth} * 1px) solid transparent; - box-sizing: border-box; - color: ${foreground}; - cursor: pointer; - fill: currentcolor; - font-size: ${typeRampBaseFontSize}; - line-height: ${typeRampBaseLineHeight}; - margin: 0; - outline: none; - overflow: hidden; - padding: 0 calc((${designUnit} / 2) * 1px) - calc((${designUnit} / 4) * 1px); - user-select: none; - white-space: nowrap; - } - :host(:${focusVisible}) { - border-color: ${focusBorder}; - background: ${listActiveSelectionBackground}; - color: ${foreground}; - } - :host([aria-selected='true']) { - background: ${listActiveSelectionBackground}; - border: calc(${borderWidth} * 1px) solid transparent; - color: ${listActiveSelectionForeground}; - } - :host(:active) { - background: ${listActiveSelectionBackground}; - color: ${listActiveSelectionForeground}; - } - :host(:not([aria-selected='true']):hover) { - background: ${listActiveSelectionBackground}; - border: calc(${borderWidth} * 1px) solid transparent; - color: ${listActiveSelectionForeground}; - } - :host(:not([aria-selected='true']):active) { - background: ${listActiveSelectionBackground}; - color: ${foreground}; - } - :host([disabled]) { - cursor: ${disabledCursor}; - opacity: ${disabledOpacity}; - } - :host([disabled]:hover) { - background-color: inherit; - } - .content { - grid-column-start: 2; - justify-self: start; - overflow: hidden; - text-overflow: ellipsis; - } -`;let Option$1=class extends ListboxOption{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Option")}};const vsCodeOption=Option$1.compose({baseName:"option",template:listboxOptionTemplate,styles:optionStyles}),panelsStyles=(eo,to)=>css$1` - ${display("grid")} :host { - box-sizing: border-box; - font-family: ${fontFamily}; - font-size: ${typeRampBaseFontSize}; - line-height: ${typeRampBaseLineHeight}; - color: ${foreground}; - grid-template-columns: auto 1fr auto; - grid-template-rows: auto 1fr; - overflow-x: auto; - } - .tablist { - display: grid; - grid-template-rows: auto auto; - grid-template-columns: auto; - column-gap: calc(${designUnit} * 8px); - position: relative; - width: max-content; - align-self: end; - padding: calc(${designUnit} * 1px) calc(${designUnit} * 1px) 0; - box-sizing: border-box; - } - .start, - .end { - align-self: center; - } - .activeIndicator { - grid-row: 2; - grid-column: 1; - width: 100%; - height: calc((${designUnit} / 4) * 1px); - justify-self: center; - background: ${panelTabActiveForeground}; - margin: 0; - border-radius: calc(${cornerRadius} * 1px); - } - .activeIndicatorTransition { - transition: transform 0.01s linear; - } - .tabpanel { - grid-row: 2; - grid-column-start: 1; - grid-column-end: 4; - position: relative; - } -`,panelTabStyles=(eo,to)=>css$1` - ${display("inline-flex")} :host { - box-sizing: border-box; - font-family: ${fontFamily}; - font-size: ${typeRampBaseFontSize}; - line-height: ${typeRampBaseLineHeight}; - height: calc(${designUnit} * 7px); - padding: calc(${designUnit} * 1px) 0; - color: ${panelTabForeground}; - fill: currentcolor; - border-radius: calc(${cornerRadius} * 1px); - border: solid calc(${borderWidth} * 1px) transparent; - align-items: center; - justify-content: center; - grid-row: 1; - cursor: pointer; - } - :host(:hover) { - color: ${panelTabActiveForeground}; - fill: currentcolor; - } - :host(:active) { - color: ${panelTabActiveForeground}; - fill: currentcolor; - } - :host([aria-selected='true']) { - background: transparent; - color: ${panelTabActiveForeground}; - fill: currentcolor; - } - :host([aria-selected='true']:hover) { - background: transparent; - color: ${panelTabActiveForeground}; - fill: currentcolor; - } - :host([aria-selected='true']:active) { - background: transparent; - color: ${panelTabActiveForeground}; - fill: currentcolor; - } - :host(:${focusVisible}) { - outline: none; - border: solid calc(${borderWidth} * 1px) ${panelTabActiveBorder}; - } - :host(:focus) { - outline: none; - } - ::slotted(vscode-badge) { - margin-inline-start: calc(${designUnit} * 2px); - } -`,panelViewStyles=(eo,to)=>css$1` - ${display("flex")} :host { - color: inherit; - background-color: transparent; - border: solid calc(${borderWidth} * 1px) transparent; - box-sizing: border-box; - font-size: ${typeRampBaseFontSize}; - line-height: ${typeRampBaseLineHeight}; - padding: 10px calc((${designUnit} + 2) * 1px); - } -`;class Panels extends Tabs{connectedCallback(){super.connectedCallback(),this.orientation&&(this.orientation=TabsOrientation.horizontal),this.getAttribute("aria-label")||this.setAttribute("aria-label","Panels")}}const vsCodePanels=Panels.compose({baseName:"panels",template:tabsTemplate,styles:panelsStyles});class PanelTab extends Tab{connectedCallback(){super.connectedCallback(),this.disabled&&(this.disabled=!1),this.textContent&&this.setAttribute("aria-label",this.textContent)}}const vsCodePanelTab=PanelTab.compose({baseName:"panel-tab",template:tabTemplate,styles:panelTabStyles});class PanelView extends TabPanel{}const vsCodePanelView=PanelView.compose({baseName:"panel-view",template:tabPanelTemplate,styles:panelViewStyles}),progressRingStyles=(eo,to)=>css$1` - ${display("flex")} :host { - align-items: center; - outline: none; - height: calc(${designUnit} * 7px); - width: calc(${designUnit} * 7px); - margin: 0; - } - .progress { - height: 100%; - width: 100%; - } - .background { - fill: none; - stroke: transparent; - stroke-width: calc(${designUnit} / 2 * 1px); - } - .indeterminate-indicator-1 { - fill: none; - stroke: ${progressBackground}; - stroke-width: calc(${designUnit} / 2 * 1px); - stroke-linecap: square; - transform-origin: 50% 50%; - transform: rotate(-90deg); - transition: all 0.2s ease-in-out; - animation: spin-infinite 2s linear infinite; - } - @keyframes spin-infinite { - 0% { - stroke-dasharray: 0.01px 43.97px; - transform: rotate(0deg); - } - 50% { - stroke-dasharray: 21.99px 21.99px; - transform: rotate(450deg); - } - 100% { - stroke-dasharray: 0.01px 43.97px; - transform: rotate(1080deg); - } - } -`;class ProgressRing extends BaseProgress{connectedCallback(){super.connectedCallback(),this.paused&&(this.paused=!1),this.setAttribute("aria-label","Loading"),this.setAttribute("aria-live","assertive"),this.setAttribute("role","alert")}attributeChangedCallback(to,ro,no){to==="value"&&this.removeAttribute("value")}}const vsCodeProgressRing=ProgressRing.compose({baseName:"progress-ring",template:progressRingTemplate,styles:progressRingStyles,indeterminateIndicator:` - - - - - `}),radioGroupStyles=(eo,to)=>css$1` - ${display("flex")} :host { - align-items: flex-start; - margin: calc(${designUnit} * 1px) 0; - flex-direction: column; - } - .positioning-region { - display: flex; - flex-wrap: wrap; - } - :host([orientation='vertical']) .positioning-region { - flex-direction: column; - } - :host([orientation='horizontal']) .positioning-region { - flex-direction: row; - } - ::slotted([slot='label']) { - color: ${foreground}; - font-size: ${typeRampBaseFontSize}; - margin: calc(${designUnit} * 1px) 0; - } -`;class RadioGroup extends RadioGroup$1{connectedCallback(){super.connectedCallback();const to=this.querySelector("label");if(to){const ro="radio-group-"+Math.random().toString(16).slice(2);to.setAttribute("id",ro),this.setAttribute("aria-labelledby",ro)}}}const vsCodeRadioGroup=RadioGroup.compose({baseName:"radio-group",template:radioGroupTemplate,styles:radioGroupStyles}),radioStyles=(eo,to)=>css$1` - ${display("inline-flex")} :host { - align-items: center; - flex-direction: row; - font-size: ${typeRampBaseFontSize}; - line-height: ${typeRampBaseLineHeight}; - margin: calc(${designUnit} * 1px) 0; - outline: none; - position: relative; - transition: all 0.2s ease-in-out; - user-select: none; - } - .control { - background: ${checkboxBackground}; - border-radius: 999px; - border: calc(${borderWidth} * 1px) solid ${checkboxBorder}; - box-sizing: border-box; - cursor: pointer; - height: calc(${designUnit} * 4px); - position: relative; - outline: none; - width: calc(${designUnit} * 4px); - } - .label { - color: ${foreground}; - cursor: pointer; - font-family: ${fontFamily}; - margin-inline-end: calc(${designUnit} * 2px + 2px); - padding-inline-start: calc(${designUnit} * 2px + 2px); - } - .label__hidden { - display: none; - visibility: hidden; - } - .control, - .checked-indicator { - flex-shrink: 0; - } - .checked-indicator { - background: ${foreground}; - border-radius: 999px; - display: inline-block; - inset: calc(${designUnit} * 1px); - opacity: 0; - pointer-events: none; - position: absolute; - } - :host(:not([disabled])) .control:hover { - background: ${checkboxBackground}; - border-color: ${checkboxBorder}; - } - :host(:not([disabled])) .control:active { - background: ${checkboxBackground}; - border-color: ${focusBorder}; - } - :host(:${focusVisible}) .control { - border: calc(${borderWidth} * 1px) solid ${focusBorder}; - } - :host([aria-checked='true']) .control { - background: ${checkboxBackground}; - border: calc(${borderWidth} * 1px) solid ${checkboxBorder}; - } - :host([aria-checked='true']:not([disabled])) .control:hover { - background: ${checkboxBackground}; - border: calc(${borderWidth} * 1px) solid ${checkboxBorder}; - } - :host([aria-checked='true']:not([disabled])) .control:active { - background: ${checkboxBackground}; - border: calc(${borderWidth} * 1px) solid ${focusBorder}; - } - :host([aria-checked="true"]:${focusVisible}:not([disabled])) .control { - border: calc(${borderWidth} * 1px) solid ${focusBorder}; - } - :host([disabled]) .label, - :host([readonly]) .label, - :host([readonly]) .control, - :host([disabled]) .control { - cursor: ${disabledCursor}; - } - :host([aria-checked='true']) .checked-indicator { - opacity: 1; - } - :host([disabled]) { - opacity: ${disabledOpacity}; - } -`;class Radio extends Radio$1{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Radio")}}const vsCodeRadio=Radio.compose({baseName:"radio",template:radioTemplate,styles:radioStyles,checkedIndicator:` -
- `}),tagStyles=(eo,to)=>css$1` - ${display("inline-block")} :host { - box-sizing: border-box; - font-family: ${fontFamily}; - font-size: ${typeRampMinus1FontSize}; - line-height: ${typeRampMinus1LineHeight}; - } - .control { - background-color: ${badgeBackground}; - border: calc(${borderWidth} * 1px) solid ${buttonBorder}; - border-radius: ${tagCornerRadius}; - color: ${badgeForeground}; - padding: calc(${designUnit} * 0.5px) calc(${designUnit} * 1px); - text-transform: uppercase; - } -`;class Tag extends Badge$1{connectedCallback(){super.connectedCallback(),this.circular&&(this.circular=!1)}}const vsCodeTag=Tag.compose({baseName:"tag",template:badgeTemplate,styles:tagStyles}),textAreaStyles=(eo,to)=>css$1` - ${display("inline-block")} :host { - font-family: ${fontFamily}; - outline: none; - user-select: none; - } - .control { - box-sizing: border-box; - position: relative; - color: ${inputForeground}; - background: ${inputBackground}; - border-radius: calc(${cornerRadiusRound} * 1px); - border: calc(${borderWidth} * 1px) solid ${dropdownBorder}; - font: inherit; - font-size: ${typeRampBaseFontSize}; - line-height: ${typeRampBaseLineHeight}; - padding: calc(${designUnit} * 2px + 1px); - width: 100%; - min-width: ${inputMinWidth}; - resize: none; - } - .control:hover:enabled { - background: ${inputBackground}; - border-color: ${dropdownBorder}; - } - .control:active:enabled { - background: ${inputBackground}; - border-color: ${focusBorder}; - } - .control:hover, - .control:${focusVisible}, - .control:disabled, - .control:active { - outline: none; - } - .control::-webkit-scrollbar { - width: ${scrollbarWidth}; - height: ${scrollbarHeight}; - } - .control::-webkit-scrollbar-corner { - background: ${inputBackground}; - } - .control::-webkit-scrollbar-thumb { - background: ${scrollbarSliderBackground}; - } - .control::-webkit-scrollbar-thumb:hover { - background: ${scrollbarSliderHoverBackground}; - } - .control::-webkit-scrollbar-thumb:active { - background: ${scrollbarSliderActiveBackground}; - } - :host(:focus-within:not([disabled])) .control { - border-color: ${focusBorder}; - } - :host([resize='both']) .control { - resize: both; - } - :host([resize='horizontal']) .control { - resize: horizontal; - } - :host([resize='vertical']) .control { - resize: vertical; - } - .label { - display: block; - color: ${foreground}; - cursor: pointer; - font-size: ${typeRampBaseFontSize}; - line-height: ${typeRampBaseLineHeight}; - margin-bottom: 2px; - } - .label__hidden { - display: none; - visibility: hidden; - } - :host([disabled]) .label, - :host([readonly]) .label, - :host([readonly]) .control, - :host([disabled]) .control { - cursor: ${disabledCursor}; - } - :host([disabled]) { - opacity: ${disabledOpacity}; - } - :host([disabled]) .control { - border-color: ${dropdownBorder}; - } -`;class TextArea extends TextArea$1{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text area")}}const vsCodeTextArea=TextArea.compose({baseName:"text-area",template:textAreaTemplate,styles:textAreaStyles,shadowOptions:{delegatesFocus:!0}}),textFieldStyles=(eo,to)=>css$1` - ${display("inline-block")} :host { - font-family: ${fontFamily}; - outline: none; - user-select: none; - } - .root { - box-sizing: border-box; - position: relative; - display: flex; - flex-direction: row; - color: ${inputForeground}; - background: ${inputBackground}; - border-radius: calc(${cornerRadiusRound} * 1px); - border: calc(${borderWidth} * 1px) solid ${dropdownBorder}; - height: calc(${inputHeight} * 1px); - min-width: ${inputMinWidth}; - } - .control { - -webkit-appearance: none; - font: inherit; - background: transparent; - border: 0; - color: inherit; - height: calc(100% - (${designUnit} * 1px)); - width: 100%; - margin-top: auto; - margin-bottom: auto; - border: none; - padding: 0 calc(${designUnit} * 2px + 1px); - font-size: ${typeRampBaseFontSize}; - line-height: ${typeRampBaseLineHeight}; - } - .control:hover, - .control:${focusVisible}, - .control:disabled, - .control:active { - outline: none; - } - .label { - display: block; - color: ${foreground}; - cursor: pointer; - font-size: ${typeRampBaseFontSize}; - line-height: ${typeRampBaseLineHeight}; - margin-bottom: 2px; - } - .label__hidden { - display: none; - visibility: hidden; - } - .start, - .end { - display: flex; - margin: auto; - fill: currentcolor; - } - ::slotted(svg), - ::slotted(span) { - width: calc(${designUnit} * 4px); - height: calc(${designUnit} * 4px); - } - .start { - margin-inline-start: calc(${designUnit} * 2px); - } - .end { - margin-inline-end: calc(${designUnit} * 2px); - } - :host(:hover:not([disabled])) .root { - background: ${inputBackground}; - border-color: ${dropdownBorder}; - } - :host(:active:not([disabled])) .root { - background: ${inputBackground}; - border-color: ${focusBorder}; - } - :host(:focus-within:not([disabled])) .root { - border-color: ${focusBorder}; - } - :host([disabled]) .label, - :host([readonly]) .label, - :host([readonly]) .control, - :host([disabled]) .control { - cursor: ${disabledCursor}; - } - :host([disabled]) { - opacity: ${disabledOpacity}; - } - :host([disabled]) .control { - border-color: ${dropdownBorder}; - } -`;class TextField extends TextField$1{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text field")}}const vsCodeTextField=TextField.compose({baseName:"text-field",template:textFieldTemplate,styles:textFieldStyles,shadowOptions:{delegatesFocus:!0}}),{wrap}=provideReactWrapper(React,provideVSCodeDesignSystem());wrap(vsCodeBadge(),{name:"vscode-badge"});wrap(vsCodeButton(),{name:"vscode-button"});wrap(vsCodeCheckbox(),{name:"vscode-checkbox",events:{onChange:"change"}});wrap(vsCodeDataGrid(),{name:"vscode-data-grid"});wrap(vsCodeDataGridCell(),{name:"vscode-data-grid-cell"});wrap(vsCodeDataGridRow(),{name:"vscode-data-grid-row"});wrap(vsCodeDivider(),{name:"vscode-divider"});wrap(vsCodeDropdown(),{name:"vscode-dropdown",events:{onChange:"change"}});wrap(vsCodeLink(),{name:"vscode-link"});wrap(vsCodeOption(),{name:"vscode-option"});wrap(vsCodePanels(),{name:"vscode-panels",events:{onChange:"change"}});wrap(vsCodePanelTab(),{name:"vscode-panel-tab"});wrap(vsCodePanelView(),{name:"vscode-panel-view"});const VSCodeProgressRing=wrap(vsCodeProgressRing(),{name:"vscode-progress-ring"});wrap(vsCodeRadio(),{name:"vscode-radio",events:{onChange:"change"}});wrap(vsCodeRadioGroup(),{name:"vscode-radio-group",events:{onChange:"change"}});wrap(vsCodeTag(),{name:"vscode-tag"});wrap(vsCodeTextArea(),{name:"vscode-text-area",events:{onChange:"change",onInput:"input"}});wrap(vsCodeTextField(),{name:"vscode-text-field",events:{onChange:"change",onInput:"input"}});const Loading=({isFullPage:eo=!1,style:to={}})=>{const ro=eo?{...to,height:"100vh",width:"100%"}:{...to};return jsxRuntimeExports.jsx(Stack$1,{horizontalAlign:"center",verticalAlign:"center",verticalFill:!0,style:ro,children:jsxRuntimeExports.jsx(VSCodeProgressRing,{})})};memoizeFunction((eo,to)=>mergeStyleSets({root:mergeStyles$1({display:"flex",flexDirection:"row",alignItems:"center",height:"30px",background:"var(--background)",width:"100%",...to&&{position:"fixed",top:0,zIndex:100}},eo),buttonGroup:{display:"flex",flexDirection:"row",height:"30px"},searchField:{marginRight:"100px",selectors:{"div.root":{height:"30px"}}}}));var toggleSelection=function(){var eo=document.getSelection();if(!eo.rangeCount)return function(){};for(var to=document.activeElement,ro=[],no=0;no"u"){ro&&console.warn("unable to use e.clipboardData"),ro&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var fo=clipboardToIE11Formatting[to.format]||clipboardToIE11Formatting.default;window.clipboardData.setData(fo,eo)}else co.clipboardData.clearData(),co.clipboardData.setData(to.format,eo);to.onCopy&&(co.preventDefault(),to.onCopy(co.clipboardData))}),document.body.appendChild(ao),io.selectNodeContents(ao),so.addRange(io);var uo=document.execCommand("copy");if(!uo)throw new Error("copy command was unsuccessful");lo=!0}catch(co){ro&&console.error("unable to copy using execCommand: ",co),ro&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(to.format||"text",eo),to.onCopy&&to.onCopy(window.clipboardData),lo=!0}catch(fo){ro&&console.error("unable to copy using clipboardData: ",fo),ro&&console.error("falling back to prompt"),no=format$1("message"in to?to.message:defaultMessage),window.prompt(no,eo)}}finally{so&&(typeof so.removeRange=="function"?so.removeRange(io):so.removeAllRanges()),ao&&document.body.removeChild(ao),oo()}return lo}var copyToClipboard$1=copy$1;const copy$2=getDefaultExportFromCjs(copyToClipboard$1);var main={exports:{}};(function(eo,to){(function(ro,no){eo.exports=no(reactExports)})(commonjsGlobal,function(ro){return function(no){var oo={};function io(so){if(oo[so])return oo[so].exports;var ao=oo[so]={i:so,l:!1,exports:{}};return no[so].call(ao.exports,ao,ao.exports,io),ao.l=!0,ao.exports}return io.m=no,io.c=oo,io.d=function(so,ao,lo){io.o(so,ao)||Object.defineProperty(so,ao,{enumerable:!0,get:lo})},io.r=function(so){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(so,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(so,"__esModule",{value:!0})},io.t=function(so,ao){if(1&ao&&(so=io(so)),8&ao||4&ao&&typeof so=="object"&&so&&so.__esModule)return so;var lo=Object.create(null);if(io.r(lo),Object.defineProperty(lo,"default",{enumerable:!0,value:so}),2&ao&&typeof so!="string")for(var uo in so)io.d(lo,uo,(function(co){return so[co]}).bind(null,uo));return lo},io.n=function(so){var ao=so&&so.__esModule?function(){return so.default}:function(){return so};return io.d(ao,"a",ao),ao},io.o=function(so,ao){return Object.prototype.hasOwnProperty.call(so,ao)},io.p="",io(io.s=48)}([function(no,oo){no.exports=ro},function(no,oo){var io=no.exports={version:"2.6.12"};typeof __e=="number"&&(__e=io)},function(no,oo,io){var so=io(26)("wks"),ao=io(17),lo=io(3).Symbol,uo=typeof lo=="function";(no.exports=function(co){return so[co]||(so[co]=uo&&lo[co]||(uo?lo:ao)("Symbol."+co))}).store=so},function(no,oo){var io=no.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=io)},function(no,oo,io){no.exports=!io(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(no,oo){var io={}.hasOwnProperty;no.exports=function(so,ao){return io.call(so,ao)}},function(no,oo,io){var so=io(7),ao=io(16);no.exports=io(4)?function(lo,uo,co){return so.f(lo,uo,ao(1,co))}:function(lo,uo,co){return lo[uo]=co,lo}},function(no,oo,io){var so=io(10),ao=io(35),lo=io(23),uo=Object.defineProperty;oo.f=io(4)?Object.defineProperty:function(co,fo,po){if(so(co),fo=lo(fo,!0),so(po),ao)try{return uo(co,fo,po)}catch{}if("get"in po||"set"in po)throw TypeError("Accessors not supported!");return"value"in po&&(co[fo]=po.value),co}},function(no,oo){no.exports=function(io){try{return!!io()}catch{return!0}}},function(no,oo,io){var so=io(40),ao=io(22);no.exports=function(lo){return so(ao(lo))}},function(no,oo,io){var so=io(11);no.exports=function(ao){if(!so(ao))throw TypeError(ao+" is not an object!");return ao}},function(no,oo){no.exports=function(io){return typeof io=="object"?io!==null:typeof io=="function"}},function(no,oo){no.exports={}},function(no,oo,io){var so=io(39),ao=io(27);no.exports=Object.keys||function(lo){return so(lo,ao)}},function(no,oo){no.exports=!0},function(no,oo,io){var so=io(3),ao=io(1),lo=io(53),uo=io(6),co=io(5),fo=function(po,ho,mo){var vo,bo,xo,_o=po&fo.F,So=po&fo.G,Eo=po&fo.S,ko=po&fo.P,wo=po&fo.B,Co=po&fo.W,Ro=So?ao:ao[ho]||(ao[ho]={}),Ao=Ro.prototype,Io=So?so:Eo?so[ho]:(so[ho]||{}).prototype;for(vo in So&&(mo=ho),mo)(bo=!_o&&Io&&Io[vo]!==void 0)&&co(Ro,vo)||(xo=bo?Io[vo]:mo[vo],Ro[vo]=So&&typeof Io[vo]!="function"?mo[vo]:wo&&bo?lo(xo,so):Co&&Io[vo]==xo?function($o){var Bo=function(Mo,Ho,jo){if(this instanceof $o){switch(arguments.length){case 0:return new $o;case 1:return new $o(Mo);case 2:return new $o(Mo,Ho)}return new $o(Mo,Ho,jo)}return $o.apply(this,arguments)};return Bo.prototype=$o.prototype,Bo}(xo):ko&&typeof xo=="function"?lo(Function.call,xo):xo,ko&&((Ro.virtual||(Ro.virtual={}))[vo]=xo,po&fo.R&&Ao&&!Ao[vo]&&uo(Ao,vo,xo)))};fo.F=1,fo.G=2,fo.S=4,fo.P=8,fo.B=16,fo.W=32,fo.U=64,fo.R=128,no.exports=fo},function(no,oo){no.exports=function(io,so){return{enumerable:!(1&io),configurable:!(2&io),writable:!(4&io),value:so}}},function(no,oo){var io=0,so=Math.random();no.exports=function(ao){return"Symbol(".concat(ao===void 0?"":ao,")_",(++io+so).toString(36))}},function(no,oo,io){var so=io(22);no.exports=function(ao){return Object(so(ao))}},function(no,oo){oo.f={}.propertyIsEnumerable},function(no,oo,io){var so=io(52)(!0);io(34)(String,"String",function(ao){this._t=String(ao),this._i=0},function(){var ao,lo=this._t,uo=this._i;return uo>=lo.length?{value:void 0,done:!0}:(ao=so(lo,uo),this._i+=ao.length,{value:ao,done:!1})})},function(no,oo){var io=Math.ceil,so=Math.floor;no.exports=function(ao){return isNaN(ao=+ao)?0:(ao>0?so:io)(ao)}},function(no,oo){no.exports=function(io){if(io==null)throw TypeError("Can't call method on "+io);return io}},function(no,oo,io){var so=io(11);no.exports=function(ao,lo){if(!so(ao))return ao;var uo,co;if(lo&&typeof(uo=ao.toString)=="function"&&!so(co=uo.call(ao))||typeof(uo=ao.valueOf)=="function"&&!so(co=uo.call(ao))||!lo&&typeof(uo=ao.toString)=="function"&&!so(co=uo.call(ao)))return co;throw TypeError("Can't convert object to primitive value")}},function(no,oo){var io={}.toString;no.exports=function(so){return io.call(so).slice(8,-1)}},function(no,oo,io){var so=io(26)("keys"),ao=io(17);no.exports=function(lo){return so[lo]||(so[lo]=ao(lo))}},function(no,oo,io){var so=io(1),ao=io(3),lo=ao["__core-js_shared__"]||(ao["__core-js_shared__"]={});(no.exports=function(uo,co){return lo[uo]||(lo[uo]=co!==void 0?co:{})})("versions",[]).push({version:so.version,mode:io(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(no,oo){no.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(no,oo,io){var so=io(7).f,ao=io(5),lo=io(2)("toStringTag");no.exports=function(uo,co,fo){uo&&!ao(uo=fo?uo:uo.prototype,lo)&&so(uo,lo,{configurable:!0,value:co})}},function(no,oo,io){io(62);for(var so=io(3),ao=io(6),lo=io(12),uo=io(2)("toStringTag"),co="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(","),fo=0;fodocument.F=Object<\/script>"),po.close(),fo=po.F;mo--;)delete fo.prototype[lo[mo]];return fo()};no.exports=Object.create||function(po,ho){var mo;return po!==null?(co.prototype=so(po),mo=new co,co.prototype=null,mo[uo]=po):mo=fo(),ho===void 0?mo:ao(mo,ho)}},function(no,oo,io){var so=io(5),ao=io(9),lo=io(57)(!1),uo=io(25)("IE_PROTO");no.exports=function(co,fo){var po,ho=ao(co),mo=0,vo=[];for(po in ho)po!=uo&&so(ho,po)&&vo.push(po);for(;fo.length>mo;)so(ho,po=fo[mo++])&&(~lo(vo,po)||vo.push(po));return vo}},function(no,oo,io){var so=io(24);no.exports=Object("z").propertyIsEnumerable(0)?Object:function(ao){return so(ao)=="String"?ao.split(""):Object(ao)}},function(no,oo,io){var so=io(39),ao=io(27).concat("length","prototype");oo.f=Object.getOwnPropertyNames||function(lo){return so(lo,ao)}},function(no,oo,io){var so=io(24),ao=io(2)("toStringTag"),lo=so(function(){return arguments}())=="Arguments";no.exports=function(uo){var co,fo,po;return uo===void 0?"Undefined":uo===null?"Null":typeof(fo=function(ho,mo){try{return ho[mo]}catch{}}(co=Object(uo),ao))=="string"?fo:lo?so(co):(po=so(co))=="Object"&&typeof co.callee=="function"?"Arguments":po}},function(no,oo){var io;io=function(){return this}();try{io=io||new Function("return this")()}catch{typeof window=="object"&&(io=window)}no.exports=io},function(no,oo){var io=/-?\d+(\.\d+)?%?/g;no.exports=function(so){return so.match(io)}},function(no,oo,io){Object.defineProperty(oo,"__esModule",{value:!0}),oo.getBase16Theme=oo.createStyling=oo.invertTheme=void 0;var so=bo(io(49)),ao=bo(io(76)),lo=bo(io(81)),uo=bo(io(89)),co=bo(io(93)),fo=function(Ao){if(Ao&&Ao.__esModule)return Ao;var Io={};if(Ao!=null)for(var $o in Ao)Object.prototype.hasOwnProperty.call(Ao,$o)&&(Io[$o]=Ao[$o]);return Io.default=Ao,Io}(io(94)),po=bo(io(132)),ho=bo(io(133)),mo=bo(io(138)),vo=io(139);function bo(Ao){return Ao&&Ao.__esModule?Ao:{default:Ao}}var xo=fo.default,_o=(0,uo.default)(xo),So=(0,mo.default)(ho.default,vo.rgb2yuv,function(Ao){var Io,$o=(0,lo.default)(Ao,3),Bo=$o[0],Mo=$o[1],Ho=$o[2];return[(Io=Bo,Io<.25?1:Io<.5?.9-Io:1.1-Io),Mo,Ho]},vo.yuv2rgb,po.default),Eo=function(Ao){return function(Io){return{className:[Io.className,Ao.className].filter(Boolean).join(" "),style:(0,ao.default)({},Io.style||{},Ao.style||{})}}},ko=function(Ao,Io){var $o=(0,uo.default)(Io);for(var Bo in Ao)$o.indexOf(Bo)===-1&&$o.push(Bo);return $o.reduce(function(Mo,Ho){return Mo[Ho]=function(jo,Oo){if(jo===void 0)return Oo;if(Oo===void 0)return jo;var Fo=jo===void 0?"undefined":(0,so.default)(jo),Go=Oo===void 0?"undefined":(0,so.default)(Oo);switch(Fo){case"string":switch(Go){case"string":return[Oo,jo].filter(Boolean).join(" ");case"object":return Eo({className:jo,style:Oo});case"function":return function(qo){for(var Xo=arguments.length,Zo=Array(Xo>1?Xo-1:0),Qo=1;Qo1?Xo-1:0),Qo=1;Qo1?Xo-1:0),Qo=1;Qo1?Xo-1:0),Qo=1;Qo1?Xo-1:0),Qo=1;Qo2?$o-2:0),Mo=2;Mo<$o;Mo++)Bo[Mo-2]=arguments[Mo];if(Io===null)return Ao;Array.isArray(Io)||(Io=[Io]);var Ho=Io.map(function(Oo){return Ao[Oo]}).filter(Boolean),jo=Ho.reduce(function(Oo,Fo){return typeof Fo=="string"?Oo.className=[Oo.className,Fo].filter(Boolean).join(" "):(Fo===void 0?"undefined":(0,so.default)(Fo))==="object"?Oo.style=(0,ao.default)({},Oo.style,Fo):typeof Fo=="function"&&(Oo=(0,ao.default)({},Oo,Fo.apply(void 0,[Oo].concat(Bo)))),Oo},{className:"",style:{}});return jo.className||delete jo.className,(0,uo.default)(jo.style).length===0&&delete jo.style,jo},Co=oo.invertTheme=function(Ao){return(0,uo.default)(Ao).reduce(function(Io,$o){return Io[$o]=/^base/.test($o)?So(Ao[$o]):$o==="scheme"?Ao[$o]+":inverted":Ao[$o],Io},{})},Ro=(oo.createStyling=(0,co.default)(function(Ao){for(var Io=arguments.length,$o=Array(Io>3?Io-3:0),Bo=3;Bo1&&arguments[1]!==void 0?arguments[1]:{},Ho=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},jo=Mo.defaultBase16,Oo=jo===void 0?xo:jo,Fo=Mo.base16Themes,Go=Fo===void 0?null:Fo,qo=Ro(Ho,Go);qo&&(Ho=(0,ao.default)({},qo,Ho));var Xo=_o.reduce(function(Ts,Rs){return Ts[Rs]=Ho[Rs]||Oo[Rs],Ts},{}),Zo=(0,uo.default)(Ho).reduce(function(Ts,Rs){return _o.indexOf(Rs)===-1&&(Ts[Rs]=Ho[Rs]),Ts},{}),Qo=Ao(Xo),xs=ko(Zo,Qo);return(0,co.default)(wo,2).apply(void 0,[xs].concat($o))},3),oo.getBase16Theme=function(Ao,Io){if(Ao&&Ao.extend&&(Ao=Ao.extend),typeof Ao=="string"){var $o=Ao.split(":"),Bo=(0,lo.default)($o,2),Mo=Bo[0],Ho=Bo[1];Ao=(Io||{})[Mo]||fo[Mo],Ho==="inverted"&&(Ao=Co(Ao))}return Ao&&Ao.hasOwnProperty("base00")?Ao:void 0})},function(no,oo,io){var so,ao=typeof Reflect=="object"?Reflect:null,lo=ao&&typeof ao.apply=="function"?ao.apply:function(Eo,ko,wo){return Function.prototype.apply.call(Eo,ko,wo)};so=ao&&typeof ao.ownKeys=="function"?ao.ownKeys:Object.getOwnPropertySymbols?function(Eo){return Object.getOwnPropertyNames(Eo).concat(Object.getOwnPropertySymbols(Eo))}:function(Eo){return Object.getOwnPropertyNames(Eo)};var uo=Number.isNaN||function(Eo){return Eo!=Eo};function co(){co.init.call(this)}no.exports=co,no.exports.once=function(Eo,ko){return new Promise(function(wo,Co){function Ro(){Ao!==void 0&&Eo.removeListener("error",Ao),wo([].slice.call(arguments))}var Ao;ko!=="error"&&(Ao=function(Io){Eo.removeListener(ko,Ro),Co(Io)},Eo.once("error",Ao)),Eo.once(ko,Ro)})},co.EventEmitter=co,co.prototype._events=void 0,co.prototype._eventsCount=0,co.prototype._maxListeners=void 0;var fo=10;function po(Eo){if(typeof Eo!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof Eo)}function ho(Eo){return Eo._maxListeners===void 0?co.defaultMaxListeners:Eo._maxListeners}function mo(Eo,ko,wo,Co){var Ro,Ao,Io,$o;if(po(wo),(Ao=Eo._events)===void 0?(Ao=Eo._events=Object.create(null),Eo._eventsCount=0):(Ao.newListener!==void 0&&(Eo.emit("newListener",ko,wo.listener?wo.listener:wo),Ao=Eo._events),Io=Ao[ko]),Io===void 0)Io=Ao[ko]=wo,++Eo._eventsCount;else if(typeof Io=="function"?Io=Ao[ko]=Co?[wo,Io]:[Io,wo]:Co?Io.unshift(wo):Io.push(wo),(Ro=ho(Eo))>0&&Io.length>Ro&&!Io.warned){Io.warned=!0;var Bo=new Error("Possible EventEmitter memory leak detected. "+Io.length+" "+String(ko)+" listeners added. Use emitter.setMaxListeners() to increase limit");Bo.name="MaxListenersExceededWarning",Bo.emitter=Eo,Bo.type=ko,Bo.count=Io.length,$o=Bo,console&&console.warn&&console.warn($o)}return Eo}function vo(){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 bo(Eo,ko,wo){var Co={fired:!1,wrapFn:void 0,target:Eo,type:ko,listener:wo},Ro=vo.bind(Co);return Ro.listener=wo,Co.wrapFn=Ro,Ro}function xo(Eo,ko,wo){var Co=Eo._events;if(Co===void 0)return[];var Ro=Co[ko];return Ro===void 0?[]:typeof Ro=="function"?wo?[Ro.listener||Ro]:[Ro]:wo?function(Ao){for(var Io=new Array(Ao.length),$o=0;$o0&&(Ao=ko[0]),Ao instanceof Error)throw Ao;var Io=new Error("Unhandled error."+(Ao?" ("+Ao.message+")":""));throw Io.context=Ao,Io}var $o=Ro[Eo];if($o===void 0)return!1;if(typeof $o=="function")lo($o,this,ko);else{var Bo=$o.length,Mo=So($o,Bo);for(wo=0;wo=0;Ao--)if(wo[Ao]===ko||wo[Ao].listener===ko){Io=wo[Ao].listener,Ro=Ao;break}if(Ro<0)return this;Ro===0?wo.shift():function($o,Bo){for(;Bo+1<$o.length;Bo++)$o[Bo]=$o[Bo+1];$o.pop()}(wo,Ro),wo.length===1&&(Co[Eo]=wo[0]),Co.removeListener!==void 0&&this.emit("removeListener",Eo,Io||ko)}return this},co.prototype.off=co.prototype.removeListener,co.prototype.removeAllListeners=function(Eo){var ko,wo,Co;if((wo=this._events)===void 0)return this;if(wo.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):wo[Eo]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete wo[Eo]),this;if(arguments.length===0){var Ro,Ao=Object.keys(wo);for(Co=0;Co=0;Co--)this.removeListener(Eo,ko[Co]);return this},co.prototype.listeners=function(Eo){return xo(this,Eo,!0)},co.prototype.rawListeners=function(Eo){return xo(this,Eo,!1)},co.listenerCount=function(Eo,ko){return typeof Eo.listenerCount=="function"?Eo.listenerCount(ko):_o.call(Eo,ko)},co.prototype.listenerCount=_o,co.prototype.eventNames=function(){return this._eventsCount>0?so(this._events):[]}},function(no,oo,io){no.exports.Dispatcher=io(140)},function(no,oo,io){no.exports=io(142)},function(no,oo,io){oo.__esModule=!0;var so=uo(io(50)),ao=uo(io(65)),lo=typeof ao.default=="function"&&typeof so.default=="symbol"?function(co){return typeof co}:function(co){return co&&typeof ao.default=="function"&&co.constructor===ao.default&&co!==ao.default.prototype?"symbol":typeof co};function uo(co){return co&&co.__esModule?co:{default:co}}oo.default=typeof ao.default=="function"&&lo(so.default)==="symbol"?function(co){return co===void 0?"undefined":lo(co)}:function(co){return co&&typeof ao.default=="function"&&co.constructor===ao.default&&co!==ao.default.prototype?"symbol":co===void 0?"undefined":lo(co)}},function(no,oo,io){no.exports={default:io(51),__esModule:!0}},function(no,oo,io){io(20),io(29),no.exports=io(30).f("iterator")},function(no,oo,io){var so=io(21),ao=io(22);no.exports=function(lo){return function(uo,co){var fo,po,ho=String(ao(uo)),mo=so(co),vo=ho.length;return mo<0||mo>=vo?lo?"":void 0:(fo=ho.charCodeAt(mo))<55296||fo>56319||mo+1===vo||(po=ho.charCodeAt(mo+1))<56320||po>57343?lo?ho.charAt(mo):fo:lo?ho.slice(mo,mo+2):po-56320+(fo-55296<<10)+65536}}},function(no,oo,io){var so=io(54);no.exports=function(ao,lo,uo){if(so(ao),lo===void 0)return ao;switch(uo){case 1:return function(co){return ao.call(lo,co)};case 2:return function(co,fo){return ao.call(lo,co,fo)};case 3:return function(co,fo,po){return ao.call(lo,co,fo,po)}}return function(){return ao.apply(lo,arguments)}}},function(no,oo){no.exports=function(io){if(typeof io!="function")throw TypeError(io+" is not a function!");return io}},function(no,oo,io){var so=io(38),ao=io(16),lo=io(28),uo={};io(6)(uo,io(2)("iterator"),function(){return this}),no.exports=function(co,fo,po){co.prototype=so(uo,{next:ao(1,po)}),lo(co,fo+" Iterator")}},function(no,oo,io){var so=io(7),ao=io(10),lo=io(13);no.exports=io(4)?Object.defineProperties:function(uo,co){ao(uo);for(var fo,po=lo(co),ho=po.length,mo=0;ho>mo;)so.f(uo,fo=po[mo++],co[fo]);return uo}},function(no,oo,io){var so=io(9),ao=io(58),lo=io(59);no.exports=function(uo){return function(co,fo,po){var ho,mo=so(co),vo=ao(mo.length),bo=lo(po,vo);if(uo&&fo!=fo){for(;vo>bo;)if((ho=mo[bo++])!=ho)return!0}else for(;vo>bo;bo++)if((uo||bo in mo)&&mo[bo]===fo)return uo||bo||0;return!uo&&-1}}},function(no,oo,io){var so=io(21),ao=Math.min;no.exports=function(lo){return lo>0?ao(so(lo),9007199254740991):0}},function(no,oo,io){var so=io(21),ao=Math.max,lo=Math.min;no.exports=function(uo,co){return(uo=so(uo))<0?ao(uo+co,0):lo(uo,co)}},function(no,oo,io){var so=io(3).document;no.exports=so&&so.documentElement},function(no,oo,io){var so=io(5),ao=io(18),lo=io(25)("IE_PROTO"),uo=Object.prototype;no.exports=Object.getPrototypeOf||function(co){return co=ao(co),so(co,lo)?co[lo]:typeof co.constructor=="function"&&co instanceof co.constructor?co.constructor.prototype:co instanceof Object?uo:null}},function(no,oo,io){var so=io(63),ao=io(64),lo=io(12),uo=io(9);no.exports=io(34)(Array,"Array",function(co,fo){this._t=uo(co),this._i=0,this._k=fo},function(){var co=this._t,fo=this._k,po=this._i++;return!co||po>=co.length?(this._t=void 0,ao(1)):ao(0,fo=="keys"?po:fo=="values"?co[po]:[po,co[po]])},"values"),lo.Arguments=lo.Array,so("keys"),so("values"),so("entries")},function(no,oo){no.exports=function(){}},function(no,oo){no.exports=function(io,so){return{value:so,done:!!io}}},function(no,oo,io){no.exports={default:io(66),__esModule:!0}},function(no,oo,io){io(67),io(73),io(74),io(75),no.exports=io(1).Symbol},function(no,oo,io){var so=io(3),ao=io(5),lo=io(4),uo=io(15),co=io(37),fo=io(68).KEY,po=io(8),ho=io(26),mo=io(28),vo=io(17),bo=io(2),xo=io(30),_o=io(31),So=io(69),Eo=io(70),ko=io(10),wo=io(11),Co=io(18),Ro=io(9),Ao=io(23),Io=io(16),$o=io(38),Bo=io(71),Mo=io(72),Ho=io(32),jo=io(7),Oo=io(13),Fo=Mo.f,Go=jo.f,qo=Bo.f,Xo=so.Symbol,Zo=so.JSON,Qo=Zo&&Zo.stringify,xs=bo("_hidden"),Ts=bo("toPrimitive"),Rs={}.propertyIsEnumerable,Os=ho("symbol-registry"),As=ho("symbols"),Ds=ho("op-symbols"),Jo=Object.prototype,Cs=typeof Xo=="function"&&!!Ho.f,Bs=so.QObject,zs=!Bs||!Bs.prototype||!Bs.prototype.findChild,Ls=lo&&po(function(){return $o(Go({},"a",{get:function(){return Go(this,"a",{value:7}).a}})).a!=7})?function(bs,ws,Gs){var Ks=Fo(Jo,ws);Ks&&delete Jo[ws],Go(bs,ws,Gs),Ks&&bs!==Jo&&Go(Jo,ws,Ks)}:Go,ga=function(bs){var ws=As[bs]=$o(Xo.prototype);return ws._k=bs,ws},Js=Cs&&typeof Xo.iterator=="symbol"?function(bs){return typeof bs=="symbol"}:function(bs){return bs instanceof Xo},Zs=function(bs,ws,Gs){return bs===Jo&&Zs(Ds,ws,Gs),ko(bs),ws=Ao(ws,!0),ko(Gs),ao(As,ws)?(Gs.enumerable?(ao(bs,xs)&&bs[xs][ws]&&(bs[xs][ws]=!1),Gs=$o(Gs,{enumerable:Io(0,!1)})):(ao(bs,xs)||Go(bs,xs,Io(1,{})),bs[xs][ws]=!0),Ls(bs,ws,Gs)):Go(bs,ws,Gs)},$a=function(bs,ws){ko(bs);for(var Gs,Ks=So(ws=Ro(ws)),Ms=0,Hs=Ks.length;Hs>Ms;)Zs(bs,Gs=Ks[Ms++],ws[Gs]);return bs},Ll=function(bs){var ws=Rs.call(this,bs=Ao(bs,!0));return!(this===Jo&&ao(As,bs)&&!ao(Ds,bs))&&(!(ws||!ao(this,bs)||!ao(As,bs)||ao(this,xs)&&this[xs][bs])||ws)},Kl=function(bs,ws){if(bs=Ro(bs),ws=Ao(ws,!0),bs!==Jo||!ao(As,ws)||ao(Ds,ws)){var Gs=Fo(bs,ws);return!Gs||!ao(As,ws)||ao(bs,xs)&&bs[xs][ws]||(Gs.enumerable=!0),Gs}},Zl=function(bs){for(var ws,Gs=qo(Ro(bs)),Ks=[],Ms=0;Gs.length>Ms;)ao(As,ws=Gs[Ms++])||ws==xs||ws==fo||Ks.push(ws);return Ks},$l=function(bs){for(var ws,Gs=bs===Jo,Ks=qo(Gs?Ds:Ro(bs)),Ms=[],Hs=0;Ks.length>Hs;)!ao(As,ws=Ks[Hs++])||Gs&&!ao(Jo,ws)||Ms.push(As[ws]);return Ms};Cs||(co((Xo=function(){if(this instanceof Xo)throw TypeError("Symbol is not a constructor!");var bs=vo(arguments.length>0?arguments[0]:void 0),ws=function(Gs){this===Jo&&ws.call(Ds,Gs),ao(this,xs)&&ao(this[xs],bs)&&(this[xs][bs]=!1),Ls(this,bs,Io(1,Gs))};return lo&&zs&&Ls(Jo,bs,{configurable:!0,set:ws}),ga(bs)}).prototype,"toString",function(){return this._k}),Mo.f=Kl,jo.f=Zs,io(41).f=Bo.f=Zl,io(19).f=Ll,Ho.f=$l,lo&&!io(14)&&co(Jo,"propertyIsEnumerable",Ll,!0),xo.f=function(bs){return ga(bo(bs))}),uo(uo.G+uo.W+uo.F*!Cs,{Symbol:Xo});for(var xa="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Sl=0;xa.length>Sl;)bo(xa[Sl++]);for(var cu=Oo(bo.store),ks=0;cu.length>ks;)_o(cu[ks++]);uo(uo.S+uo.F*!Cs,"Symbol",{for:function(bs){return ao(Os,bs+="")?Os[bs]:Os[bs]=Xo(bs)},keyFor:function(bs){if(!Js(bs))throw TypeError(bs+" is not a symbol!");for(var ws in Os)if(Os[ws]===bs)return ws},useSetter:function(){zs=!0},useSimple:function(){zs=!1}}),uo(uo.S+uo.F*!Cs,"Object",{create:function(bs,ws){return ws===void 0?$o(bs):$a($o(bs),ws)},defineProperty:Zs,defineProperties:$a,getOwnPropertyDescriptor:Kl,getOwnPropertyNames:Zl,getOwnPropertySymbols:$l});var Es=po(function(){Ho.f(1)});uo(uo.S+uo.F*Es,"Object",{getOwnPropertySymbols:function(bs){return Ho.f(Co(bs))}}),Zo&&uo(uo.S+uo.F*(!Cs||po(function(){var bs=Xo();return Qo([bs])!="[null]"||Qo({a:bs})!="{}"||Qo(Object(bs))!="{}"})),"JSON",{stringify:function(bs){for(var ws,Gs,Ks=[bs],Ms=1;arguments.length>Ms;)Ks.push(arguments[Ms++]);if(Gs=ws=Ks[1],(wo(ws)||bs!==void 0)&&!Js(bs))return Eo(ws)||(ws=function(Hs,Qs){if(typeof Gs=="function"&&(Qs=Gs.call(this,Hs,Qs)),!Js(Qs))return Qs}),Ks[1]=ws,Qo.apply(Zo,Ks)}}),Xo.prototype[Ts]||io(6)(Xo.prototype,Ts,Xo.prototype.valueOf),mo(Xo,"Symbol"),mo(Math,"Math",!0),mo(so.JSON,"JSON",!0)},function(no,oo,io){var so=io(17)("meta"),ao=io(11),lo=io(5),uo=io(7).f,co=0,fo=Object.isExtensible||function(){return!0},po=!io(8)(function(){return fo(Object.preventExtensions({}))}),ho=function(vo){uo(vo,so,{value:{i:"O"+ ++co,w:{}}})},mo=no.exports={KEY:so,NEED:!1,fastKey:function(vo,bo){if(!ao(vo))return typeof vo=="symbol"?vo:(typeof vo=="string"?"S":"P")+vo;if(!lo(vo,so)){if(!fo(vo))return"F";if(!bo)return"E";ho(vo)}return vo[so].i},getWeak:function(vo,bo){if(!lo(vo,so)){if(!fo(vo))return!0;if(!bo)return!1;ho(vo)}return vo[so].w},onFreeze:function(vo){return po&&mo.NEED&&fo(vo)&&!lo(vo,so)&&ho(vo),vo}}},function(no,oo,io){var so=io(13),ao=io(32),lo=io(19);no.exports=function(uo){var co=so(uo),fo=ao.f;if(fo)for(var po,ho=fo(uo),mo=lo.f,vo=0;ho.length>vo;)mo.call(uo,po=ho[vo++])&&co.push(po);return co}},function(no,oo,io){var so=io(24);no.exports=Array.isArray||function(ao){return so(ao)=="Array"}},function(no,oo,io){var so=io(9),ao=io(41).f,lo={}.toString,uo=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];no.exports.f=function(co){return uo&&lo.call(co)=="[object Window]"?function(fo){try{return ao(fo)}catch{return uo.slice()}}(co):ao(so(co))}},function(no,oo,io){var so=io(19),ao=io(16),lo=io(9),uo=io(23),co=io(5),fo=io(35),po=Object.getOwnPropertyDescriptor;oo.f=io(4)?po:function(ho,mo){if(ho=lo(ho),mo=uo(mo,!0),fo)try{return po(ho,mo)}catch{}if(co(ho,mo))return ao(!so.f.call(ho,mo),ho[mo])}},function(no,oo){},function(no,oo,io){io(31)("asyncIterator")},function(no,oo,io){io(31)("observable")},function(no,oo,io){oo.__esModule=!0;var so,ao=io(77),lo=(so=ao)&&so.__esModule?so:{default:so};oo.default=lo.default||function(uo){for(var co=1;coxo;)for(var Eo,ko=fo(arguments[xo++]),wo=_o?ao(ko).concat(_o(ko)):ao(ko),Co=wo.length,Ro=0;Co>Ro;)Eo=wo[Ro++],so&&!So.call(ko,Eo)||(vo[Eo]=ko[Eo]);return vo}:po},function(no,oo,io){oo.__esModule=!0;var so=lo(io(82)),ao=lo(io(85));function lo(uo){return uo&&uo.__esModule?uo:{default:uo}}oo.default=function(uo,co){if(Array.isArray(uo))return uo;if((0,so.default)(Object(uo)))return function(fo,po){var ho=[],mo=!0,vo=!1,bo=void 0;try{for(var xo,_o=(0,ao.default)(fo);!(mo=(xo=_o.next()).done)&&(ho.push(xo.value),!po||ho.length!==po);mo=!0);}catch(So){vo=!0,bo=So}finally{try{!mo&&_o.return&&_o.return()}finally{if(vo)throw bo}}return ho}(uo,co);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(no,oo,io){no.exports={default:io(83),__esModule:!0}},function(no,oo,io){io(29),io(20),no.exports=io(84)},function(no,oo,io){var so=io(42),ao=io(2)("iterator"),lo=io(12);no.exports=io(1).isIterable=function(uo){var co=Object(uo);return co[ao]!==void 0||"@@iterator"in co||lo.hasOwnProperty(so(co))}},function(no,oo,io){no.exports={default:io(86),__esModule:!0}},function(no,oo,io){io(29),io(20),no.exports=io(87)},function(no,oo,io){var so=io(10),ao=io(88);no.exports=io(1).getIterator=function(lo){var uo=ao(lo);if(typeof uo!="function")throw TypeError(lo+" is not iterable!");return so(uo.call(lo))}},function(no,oo,io){var so=io(42),ao=io(2)("iterator"),lo=io(12);no.exports=io(1).getIteratorMethod=function(uo){if(uo!=null)return uo[ao]||uo["@@iterator"]||lo[so(uo)]}},function(no,oo,io){no.exports={default:io(90),__esModule:!0}},function(no,oo,io){io(91),no.exports=io(1).Object.keys},function(no,oo,io){var so=io(18),ao=io(13);io(92)("keys",function(){return function(lo){return ao(so(lo))}})},function(no,oo,io){var so=io(15),ao=io(1),lo=io(8);no.exports=function(uo,co){var fo=(ao.Object||{})[uo]||Object[uo],po={};po[uo]=co(fo),so(so.S+so.F*lo(function(){fo(1)}),"Object",po)}},function(no,oo,io){(function(so){var ao=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],lo=/^\s+|\s+$/g,uo=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,co=/\{\n\/\* \[wrapped with (.+)\] \*/,fo=/,? & /,po=/^[-+]0x[0-9a-f]+$/i,ho=/^0b[01]+$/i,mo=/^\[object .+?Constructor\]$/,vo=/^0o[0-7]+$/i,bo=/^(?:0|[1-9]\d*)$/,xo=parseInt,_o=typeof so=="object"&&so&&so.Object===Object&&so,So=typeof self=="object"&&self&&self.Object===Object&&self,Eo=_o||So||Function("return this")();function ko(ks,Es,bs){switch(bs.length){case 0:return ks.call(Es);case 1:return ks.call(Es,bs[0]);case 2:return ks.call(Es,bs[0],bs[1]);case 3:return ks.call(Es,bs[0],bs[1],bs[2])}return ks.apply(Es,bs)}function wo(ks,Es){return!!(ks&&ks.length)&&function(bs,ws,Gs){if(ws!=ws)return function(Hs,Qs,El,xl){for(var Ol=Hs.length,ru=El+(xl?1:-1);xl?ru--:++ru-1}function Co(ks){return ks!=ks}function Ro(ks,Es){for(var bs=ks.length,ws=0;bs--;)ks[bs]===Es&&ws++;return ws}function Ao(ks,Es){for(var bs=-1,ws=ks.length,Gs=0,Ks=[];++bs2?$o:void 0);function Rs(ks){return xa(ks)?Zo(ks):{}}function Os(ks){return!(!xa(ks)||function(Es){return!!Oo&&Oo in Es}(ks))&&(function(Es){var bs=xa(Es)?qo.call(Es):"";return bs=="[object Function]"||bs=="[object GeneratorFunction]"}(ks)||function(Es){var bs=!1;if(Es!=null&&typeof Es.toString!="function")try{bs=!!(Es+"")}catch{}return bs}(ks)?Xo:mo).test(function(Es){if(Es!=null){try{return Fo.call(Es)}catch{}try{return Es+""}catch{}}return""}(ks))}function As(ks,Es,bs,ws){for(var Gs=-1,Ks=ks.length,Ms=bs.length,Hs=-1,Qs=Es.length,El=Qo(Ks-Ms,0),xl=Array(Qs+El),Ol=!ws;++Hs1&&Dl.reverse(),xl&&Qs1?"& ":"")+Es[ws],Es=Es.join(bs>2?", ":" "),ks.replace(uo,`{ -/* [wrapped with `+Es+`] */ -`)}function $a(ks,Es){return!!(Es=Es??9007199254740991)&&(typeof ks=="number"||bo.test(ks))&&ks>-1&&ks%1==0&&ks1&&lo--,co=6*lo<1?so+6*(ao-so)*lo:2*lo<1?ao:3*lo<2?so+(ao-so)*(2/3-lo)*6:so,uo[mo]=255*co;return uo}},function(no,oo,io){(function(so){var ao=typeof so=="object"&&so&&so.Object===Object&&so,lo=typeof self=="object"&&self&&self.Object===Object&&self,uo=ao||lo||Function("return this")();function co(Ao,Io,$o){switch($o.length){case 0:return Ao.call(Io);case 1:return Ao.call(Io,$o[0]);case 2:return Ao.call(Io,$o[0],$o[1]);case 3:return Ao.call(Io,$o[0],$o[1],$o[2])}return Ao.apply(Io,$o)}function fo(Ao,Io){for(var $o=-1,Bo=Io.length,Mo=Ao.length;++$o-1&&Mo%1==0&&Mo<=9007199254740991}(Bo.length)&&!function(Mo){var Ho=function(jo){var Oo=typeof jo;return!!jo&&(Oo=="object"||Oo=="function")}(Mo)?mo.call(Mo):"";return Ho=="[object Function]"||Ho=="[object GeneratorFunction]"}(Bo)}($o)}(Io)&&ho.call(Io,"callee")&&(!bo.call(Io,"callee")||mo.call(Io)=="[object Arguments]")}(Ao)||!!(xo&&Ao&&Ao[xo])}var Eo=Array.isArray,ko,wo,Co,Ro=(wo=function(Ao){var Io=(Ao=function Bo(Mo,Ho,jo,Oo,Fo){var Go=-1,qo=Mo.length;for(jo||(jo=So),Fo||(Fo=[]);++Go0&&jo(Xo)?Ho>1?Bo(Xo,Ho-1,jo,Oo,Fo):fo(Fo,Xo):Oo||(Fo[Fo.length]=Xo)}return Fo}(Ao,1)).length,$o=Io;for(ko;$o--;)if(typeof Ao[$o]!="function")throw new TypeError("Expected a function");return function(){for(var Bo=0,Mo=Io?Ao[Bo].apply(this,arguments):arguments[0];++Bo2?lo-2:0),co=2;co"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 Po,zo=mo(Ko);if(Uo){var Do=mo(this).constructor;Po=Reflect.construct(zo,arguments,Do)}else Po=zo.apply(this,arguments);return xo(this,Po)}}io.r(oo);var So=io(0),Eo=io.n(So);function ko(){var Ko=this.constructor.getDerivedStateFromProps(this.props,this.state);Ko!=null&&this.setState(Ko)}function wo(Ko){this.setState((function(Uo){var Po=this.constructor.getDerivedStateFromProps(Ko,Uo);return Po??null}).bind(this))}function Co(Ko,Uo){try{var Po=this.props,zo=this.state;this.props=Ko,this.state=Uo,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(Po,zo)}finally{this.props=Po,this.state=zo}}function Ro(Ko){var Uo=Ko.prototype;if(!Uo||!Uo.isReactComponent)throw new Error("Can only polyfill class components");if(typeof Ko.getDerivedStateFromProps!="function"&&typeof Uo.getSnapshotBeforeUpdate!="function")return Ko;var Po=null,zo=null,Do=null;if(typeof Uo.componentWillMount=="function"?Po="componentWillMount":typeof Uo.UNSAFE_componentWillMount=="function"&&(Po="UNSAFE_componentWillMount"),typeof Uo.componentWillReceiveProps=="function"?zo="componentWillReceiveProps":typeof Uo.UNSAFE_componentWillReceiveProps=="function"&&(zo="UNSAFE_componentWillReceiveProps"),typeof Uo.componentWillUpdate=="function"?Do="componentWillUpdate":typeof Uo.UNSAFE_componentWillUpdate=="function"&&(Do="UNSAFE_componentWillUpdate"),Po!==null||zo!==null||Do!==null){var Yo=Ko.displayName||Ko.name,vs=typeof Ko.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. - -`+Yo+" uses "+vs+" but also contains the following legacy lifecycles:"+(Po!==null?` - `+Po:"")+(zo!==null?` - `+zo:"")+(Do!==null?` - `+Do:"")+` - -The above lifecycles should be removed. Learn more about this warning here: -https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof Ko.getDerivedStateFromProps=="function"&&(Uo.componentWillMount=ko,Uo.componentWillReceiveProps=wo),typeof Uo.getSnapshotBeforeUpdate=="function"){if(typeof Uo.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");Uo.componentWillUpdate=Co;var ys=Uo.componentDidUpdate;Uo.componentDidUpdate=function(hs,Is,Us){var Il=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:Us;ys.call(this,hs,Is,Il)}}return Ko}function Ao(Ko,Uo){if(Ko==null)return{};var Po,zo,Do=function(vs,ys){if(vs==null)return{};var hs,Is,Us={},Il=Object.keys(vs);for(Is=0;Is=0||(Us[hs]=vs[hs]);return Us}(Ko,Uo);if(Object.getOwnPropertySymbols){var Yo=Object.getOwnPropertySymbols(Ko);for(zo=0;zo=0||Object.prototype.propertyIsEnumerable.call(Ko,Po)&&(Do[Po]=Ko[Po])}return Do}function Io(Ko){var Uo=function(Po){return{}.toString.call(Po).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(Ko);return Uo==="number"&&(Uo=isNaN(Ko)?"nan":(0|Ko)!=Ko?"float":"integer"),Uo}ko.__suppressDeprecationWarning=!0,wo.__suppressDeprecationWarning=!0,Co.__suppressDeprecationWarning=!0;var $o={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"},Bo={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)"},Mo={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"},Ho=io(45),jo=function(Ko){var Uo=function(Po){return{backgroundColor:Po.base00,ellipsisColor:Po.base09,braceColor:Po.base07,expandedIcon:Po.base0D,collapsedIcon:Po.base0E,keyColor:Po.base07,arrayKeyColor:Po.base0C,objectSize:Po.base04,copyToClipboard:Po.base0F,copyToClipboardCheck:Po.base0D,objectBorder:Po.base02,dataTypes:{boolean:Po.base0E,date:Po.base0D,float:Po.base0B,function:Po.base0D,integer:Po.base0F,string:Po.base09,nan:Po.base08,null:Po.base0A,undefined:Po.base05,regexp:Po.base0A,background:Po.base02},editVariable:{editIcon:Po.base0E,cancelIcon:Po.base09,removeIcon:Po.base09,addIcon:Po.base0E,checkIcon:Po.base0E,background:Po.base01,color:Po.base0A,border:Po.base07},addKeyModal:{background:Po.base05,border:Po.base04,color:Po.base0A,labelColor:Po.base01},validationFailure:{background:Po.base09,iconColor:Po.base01,fontColor:Po.base01}}}(Ko);return{"app-container":{fontFamily:Mo.globalFontFamily,cursor:Mo.globalCursor,backgroundColor:Uo.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:Uo.ellipsisColor,fontSize:Mo.ellipsisFontSize,lineHeight:Mo.ellipsisLineHeight,cursor:Mo.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:Mo.braceCursor,fontWeight:Mo.braceFontWeight,color:Uo.braceColor},"expanded-icon":{color:Uo.expandedIcon},"collapsed-icon":{color:Uo.collapsedIcon},colon:{display:"inline-block",margin:Mo.keyMargin,color:Uo.keyColor,verticalAlign:"top"},objectKeyVal:function(Po,zo){return{style:lo({paddingTop:Mo.keyValPaddingTop,paddingRight:Mo.keyValPaddingRight,paddingBottom:Mo.keyValPaddingBottom,borderLeft:Mo.keyValBorderLeft+" "+Uo.objectBorder,":hover":{paddingLeft:zo.paddingLeft-1+"px",borderLeft:Mo.keyValBorderHover+" "+Uo.objectBorder}},zo)}},"object-key-val-no-border":{padding:Mo.keyValPadding},"pushed-content":{marginLeft:Mo.pushedContentMarginLeft},variableValue:function(Po,zo){return{style:lo({display:"inline-block",paddingRight:Mo.variableValuePaddingRight,position:"relative"},zo)}},"object-name":{display:"inline-block",color:Uo.keyColor,letterSpacing:Mo.keyLetterSpacing,fontStyle:Mo.keyFontStyle,verticalAlign:Mo.keyVerticalAlign,opacity:Mo.keyOpacity,":hover":{opacity:Mo.keyOpacityHover}},"array-key":{display:"inline-block",color:Uo.arrayKeyColor,letterSpacing:Mo.keyLetterSpacing,fontStyle:Mo.keyFontStyle,verticalAlign:Mo.keyVerticalAlign,opacity:Mo.keyOpacity,":hover":{opacity:Mo.keyOpacityHover}},"object-size":{color:Uo.objectSize,borderRadius:Mo.objectSizeBorderRadius,fontStyle:Mo.objectSizeFontStyle,margin:Mo.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:Mo.dataTypeFontSize,marginRight:Mo.dataTypeMarginRight,opacity:Mo.datatypeOpacity},boolean:{display:"inline-block",color:Uo.dataTypes.boolean},date:{display:"inline-block",color:Uo.dataTypes.date},"date-value":{marginLeft:Mo.dateValueMarginLeft},float:{display:"inline-block",color:Uo.dataTypes.float},function:{display:"inline-block",color:Uo.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:Uo.dataTypes.integer},string:{display:"inline-block",color:Uo.dataTypes.string},nan:{display:"inline-block",color:Uo.dataTypes.nan,fontSize:Mo.nanFontSize,fontWeight:Mo.nanFontWeight,backgroundColor:Uo.dataTypes.background,padding:Mo.nanPadding,borderRadius:Mo.nanBorderRadius},null:{display:"inline-block",color:Uo.dataTypes.null,fontSize:Mo.nullFontSize,fontWeight:Mo.nullFontWeight,backgroundColor:Uo.dataTypes.background,padding:Mo.nullPadding,borderRadius:Mo.nullBorderRadius},undefined:{display:"inline-block",color:Uo.dataTypes.undefined,fontSize:Mo.undefinedFontSize,padding:Mo.undefinedPadding,borderRadius:Mo.undefinedBorderRadius,backgroundColor:Uo.dataTypes.background},regexp:{display:"inline-block",color:Uo.dataTypes.regexp},"copy-to-clipboard":{cursor:Mo.clipboardCursor},"copy-icon":{color:Uo.copyToClipboard,fontSize:Mo.iconFontSize,marginRight:Mo.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:Uo.copyToClipboardCheck,marginLeft:Mo.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:Mo.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:Mo.metaDataPadding},"icon-container":{display:"inline-block",width:Mo.iconContainerWidth},tooltip:{padding:Mo.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:Uo.editVariable.removeIcon,cursor:Mo.iconCursor,fontSize:Mo.iconFontSize,marginRight:Mo.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:Uo.editVariable.addIcon,cursor:Mo.iconCursor,fontSize:Mo.iconFontSize,marginRight:Mo.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:Uo.editVariable.editIcon,cursor:Mo.iconCursor,fontSize:Mo.iconFontSize,marginRight:Mo.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:Mo.iconCursor,color:Uo.editVariable.checkIcon,fontSize:Mo.iconFontSize,paddingRight:Mo.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:Mo.iconCursor,color:Uo.editVariable.cancelIcon,fontSize:Mo.iconFontSize,paddingRight:Mo.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:Mo.editInputMinWidth,borderRadius:Mo.editInputBorderRadius,backgroundColor:Uo.editVariable.background,color:Uo.editVariable.color,padding:Mo.editInputPadding,marginRight:Mo.editInputMarginRight,fontFamily:Mo.editInputFontFamily},"detected-row":{paddingTop:Mo.detectedRowPaddingTop},"key-modal-request":{position:Mo.addKeyCoverPosition,top:Mo.addKeyCoverPositionPx,left:Mo.addKeyCoverPositionPx,right:Mo.addKeyCoverPositionPx,bottom:Mo.addKeyCoverPositionPx,backgroundColor:Mo.addKeyCoverBackground},"key-modal":{width:Mo.addKeyModalWidth,backgroundColor:Uo.addKeyModal.background,marginLeft:Mo.addKeyModalMargin,marginRight:Mo.addKeyModalMargin,padding:Mo.addKeyModalPadding,borderRadius:Mo.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:Uo.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:Uo.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:Uo.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:Uo.addKeyModal.labelColor,fontSize:Mo.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:Uo.editVariable.addIcon,fontSize:Mo.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:Uo.ellipsisColor,fontSize:Mo.ellipsisFontSize,lineHeight:Mo.ellipsisLineHeight,cursor:Mo.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:Uo.validationFailure.fontColor,backgroundColor:Uo.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:Uo.validationFailure.iconColor,fontSize:Mo.iconFontSize,transform:"rotate(45deg)"}}};function Oo(Ko,Uo,Po){return Ko||console.error("theme has not been set"),function(zo){var Do=$o;return zo!==!1&&zo!=="none"||(Do=Bo),Object(Ho.createStyling)(jo,{defaultBase16:Do})(zo)}(Ko)(Uo,Po)}var Fo=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){var zo=this.props,Do=(zo.rjvId,zo.type_name),Yo=zo.displayDataTypes,vs=zo.theme;return Yo?Eo.a.createElement("span",Object.assign({className:"data-type-label"},Oo(vs,"data-type-label")),Do):null}}]),Po}(Eo.a.PureComponent),Go=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){var zo=this.props;return Eo.a.createElement("div",Oo(zo.theme,"boolean"),Eo.a.createElement(Fo,Object.assign({type_name:"bool"},zo)),zo.value?"true":"false")}}]),Po}(Eo.a.PureComponent),qo=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){var zo=this.props;return Eo.a.createElement("div",Oo(zo.theme,"date"),Eo.a.createElement(Fo,Object.assign({type_name:"date"},zo)),Eo.a.createElement("span",Object.assign({className:"date-value"},Oo(zo.theme,"date-value")),zo.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),Po}(Eo.a.PureComponent),Xo=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){var zo=this.props;return Eo.a.createElement("div",Oo(zo.theme,"float"),Eo.a.createElement(Fo,Object.assign({type_name:"float"},zo)),this.props.value)}}]),Po}(Eo.a.PureComponent);function Zo(Ko,Uo){(Uo==null||Uo>Ko.length)&&(Uo=Ko.length);for(var Po=0,zo=new Array(Uo);Po"u"||Ko[Symbol.iterator]==null){if(Array.isArray(Ko)||(Po=Qo(Ko))||Uo&&Ko&&typeof Ko.length=="number"){Po&&(Ko=Po);var zo=0,Do=function(){};return{s:Do,n:function(){return zo>=Ko.length?{done:!0}:{done:!1,value:Ko[zo++]}},e:function(hs){throw hs},f:Do}}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 Yo,vs=!0,ys=!1;return{s:function(){Po=Ko[Symbol.iterator]()},n:function(){var hs=Po.next();return vs=hs.done,hs},e:function(hs){ys=!0,Yo=hs},f:function(){try{vs||Po.return==null||Po.return()}finally{if(ys)throw Yo}}}}function Ts(Ko){return function(Uo){if(Array.isArray(Uo))return Zo(Uo)}(Ko)||function(Uo){if(typeof Symbol<"u"&&Symbol.iterator in Object(Uo))return Array.from(Uo)}(Ko)||Qo(Ko)||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 Rs=io(46),Os=new(io(47)).Dispatcher,As=new(function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){var zo;uo(this,Po);for(var Do=arguments.length,Yo=new Array(Do),vs=0;vsDo&&(ys.style.cursor="pointer",this.state.collapsed&&(vs=Eo.a.createElement("span",null,vs.substring(0,Do),Eo.a.createElement("span",Oo(Yo,"ellipsis")," ...")))),Eo.a.createElement("div",Oo(Yo,"string"),Eo.a.createElement(Fo,Object.assign({type_name:"string"},zo)),Eo.a.createElement("span",Object.assign({className:"string-value"},ys,{onClick:this.toggleCollapsed}),'"',vs,'"'))}}]),Po}(Eo.a.PureComponent),Js=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){return Eo.a.createElement("div",Oo(this.props.theme,"undefined"),"undefined")}}]),Po}(Eo.a.PureComponent);function Zs(){return(Zs=Object.assign||function(Ko){for(var Uo=1;Uo=0||(f1[Nu]=Bl[Nu]);return f1}(Ko,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),Us,Il=Is.value!==void 0,Ml=Object(So.useRef)(null),Rl=Zl(Ml,Uo),Cl=Object(So.useRef)(0),Ul=Object(So.useRef)(),fu=function(){var Bl=Ml.current,Su=Po&&Ul.current?Ul.current:function(Xu){var A1=window.getComputedStyle(Xu);if(A1===null)return null;var p1,Au=(p1=A1,ks.reduce(function(w1,h1){return w1[h1]=p1[h1],w1},{})),t1=Au.boxSizing;return t1===""?null:(Es&&t1==="border-box"&&(Au.width=parseFloat(Au.width)+parseFloat(Au.borderRightWidth)+parseFloat(Au.borderLeftWidth)+parseFloat(Au.paddingRight)+parseFloat(Au.paddingLeft)+"px"),{sizingStyle:Au,paddingSize:parseFloat(Au.paddingBottom)+parseFloat(Au.paddingTop),borderSize:parseFloat(Au.borderBottomWidth)+parseFloat(Au.borderTopWidth)})}(Bl);if(Su){Ul.current=Su;var Nu=function(Xu,A1,p1,Au){p1===void 0&&(p1=1),Au===void 0&&(Au=1/0),Sl||((Sl=document.createElement("textarea")).setAttribute("tab-index","-1"),Sl.setAttribute("aria-hidden","true"),xa(Sl)),Sl.parentNode===null&&document.body.appendChild(Sl);var t1=Xu.paddingSize,w1=Xu.borderSize,h1=Xu.sizingStyle,R1=h1.boxSizing;Object.keys(h1).forEach(function(N1){var x1=N1;Sl.style[x1]=h1[x1]}),xa(Sl),Sl.value=A1;var g1=function(N1,x1){var S1=N1.scrollHeight;return x1.sizingStyle.boxSizing==="border-box"?S1+x1.borderSize:S1-x1.paddingSize}(Sl,Xu);Sl.value="x";var H1=Sl.scrollHeight-t1,E1=H1*p1;R1==="border-box"&&(E1=E1+t1+w1),g1=Math.max(E1,g1);var I1=H1*Au;return R1==="border-box"&&(I1=I1+t1+w1),[g1=Math.min(I1,g1),H1]}(Su,Bl.value||Bl.placeholder||"x",Do,zo),zu=Nu[0],f1=Nu[1];Cl.current!==zu&&(Cl.current=zu,Bl.style.setProperty("height",zu+"px","important"),hs(zu,{rowHeight:f1}))}};return Object(So.useLayoutEffect)(fu),Us=Ll(fu),Object(So.useLayoutEffect)(function(){var Bl=function(Su){Us.current(Su)};return window.addEventListener("resize",Bl),function(){window.removeEventListener("resize",Bl)}},[]),Object(So.createElement)("textarea",Zs({},Is,{onChange:function(Bl){Il||fu(),vs(Bl)},ref:Rl}))},ws=Object(So.forwardRef)(bs);function Gs(Ko){Ko=Ko.trim();try{if((Ko=JSON.stringify(JSON.parse(Ko)))[0]==="[")return Ks("array",JSON.parse(Ko));if(Ko[0]==="{")return Ks("object",JSON.parse(Ko));if(Ko.match(/\-?\d+\.\d+/)&&Ko.match(/\-?\d+\.\d+/)[0]===Ko)return Ks("float",parseFloat(Ko));if(Ko.match(/\-?\d+e-\d+/)&&Ko.match(/\-?\d+e-\d+/)[0]===Ko)return Ks("float",Number(Ko));if(Ko.match(/\-?\d+/)&&Ko.match(/\-?\d+/)[0]===Ko)return Ks("integer",parseInt(Ko));if(Ko.match(/\-?\d+e\+\d+/)&&Ko.match(/\-?\d+e\+\d+/)[0]===Ko)return Ks("integer",Number(Ko))}catch{}switch(Ko=Ko.toLowerCase()){case"undefined":return Ks("undefined",void 0);case"nan":return Ks("nan",NaN);case"null":return Ks("null",null);case"true":return Ks("boolean",!0);case"false":return Ks("boolean",!1);default:if(Ko=Date.parse(Ko))return Ks("date",new Date(Ko))}return Ks(!1,null)}function Ks(Ko,Uo){return{type:Ko,value:Uo}}var Ms=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){var zo=this.props,Do=zo.style,Yo=Ao(zo,["style"]);return Eo.a.createElement("span",Yo,Eo.a.createElement("svg",Object.assign({},Dl(Do),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),Eo.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"})))}}]),Po}(Eo.a.PureComponent),Hs=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){var zo=this.props,Do=zo.style,Yo=Ao(zo,["style"]);return Eo.a.createElement("span",Yo,Eo.a.createElement("svg",Object.assign({},Dl(Do),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),Eo.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"})))}}]),Po}(Eo.a.PureComponent),Qs=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){var zo=this.props,Do=zo.style,Yo=Ao(zo,["style"]),vs=Dl(Do).style;return Eo.a.createElement("span",Yo,Eo.a.createElement("svg",{fill:vs.color,width:vs.height,height:vs.width,style:vs,viewBox:"0 0 1792 1792"},Eo.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"})))}}]),Po}(Eo.a.PureComponent),El=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){var zo=this.props,Do=zo.style,Yo=Ao(zo,["style"]),vs=Dl(Do).style;return Eo.a.createElement("span",Yo,Eo.a.createElement("svg",{fill:vs.color,width:vs.height,height:vs.width,style:vs,viewBox:"0 0 1792 1792"},Eo.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"})))}}]),Po}(Eo.a.PureComponent),xl=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){var zo=this.props,Do=zo.style,Yo=Ao(zo,["style"]);return Eo.a.createElement("span",Yo,Eo.a.createElement("svg",{style:lo(lo({},Dl(Do).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},Eo.a.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),Po}(Eo.a.PureComponent),Ol=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){var zo=this.props,Do=zo.style,Yo=Ao(zo,["style"]);return Eo.a.createElement("span",Yo,Eo.a.createElement("svg",{style:lo(lo({},Dl(Do).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},Eo.a.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),Po}(Eo.a.PureComponent),ru=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){var zo=this.props,Do=zo.style,Yo=Ao(zo,["style"]);return Eo.a.createElement("span",Yo,Eo.a.createElement("svg",Object.assign({},Dl(Do),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),Eo.a.createElement("g",null,Eo.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"}))))}}]),Po}(Eo.a.PureComponent),au=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){var zo=this.props,Do=zo.style,Yo=Ao(zo,["style"]);return Eo.a.createElement("span",Yo,Eo.a.createElement("svg",Object.assign({},Dl(Do),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),Eo.a.createElement("g",null,Eo.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"}))))}}]),Po}(Eo.a.PureComponent),zl=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){var zo=this.props,Do=zo.style,Yo=Ao(zo,["style"]);return Eo.a.createElement("span",Yo,Eo.a.createElement("svg",Object.assign({},Dl(Do),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),Eo.a.createElement("g",null,Eo.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"}))))}}]),Po}(Eo.a.PureComponent),hu=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){var zo=this.props,Do=zo.style,Yo=Ao(zo,["style"]);return Eo.a.createElement("span",Yo,Eo.a.createElement("svg",Object.assign({},Dl(Do),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),Eo.a.createElement("g",null,Eo.a.createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}]),Po}(Eo.a.PureComponent),xu=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){var zo=this.props,Do=zo.style,Yo=Ao(zo,["style"]);return Eo.a.createElement("span",Yo,Eo.a.createElement("svg",Object.assign({},Dl(Do),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),Eo.a.createElement("g",null,Eo.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"}))))}}]),Po}(Eo.a.PureComponent),Ql=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){var zo=this.props,Do=zo.style,Yo=Ao(zo,["style"]);return Eo.a.createElement("span",Yo,Eo.a.createElement("svg",Object.assign({},Dl(Do),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),Eo.a.createElement("g",null,Eo.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"}))))}}]),Po}(Eo.a.PureComponent);function Dl(Ko){return Ko||(Ko={}),{style:lo(lo({verticalAlign:"middle"},Ko),{},{color:Ko.color?Ko.color:"#000000",height:"1em",width:"1em"})}}var gu=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(zo){var Do;return uo(this,Po),(Do=Uo.call(this,zo)).copiedTimer=null,Do.handleCopy=function(){var Yo=document.createElement("textarea"),vs=Do.props,ys=vs.clickCallback,hs=vs.src,Is=vs.namespace;Yo.innerHTML=JSON.stringify(Do.clipboardValue(hs),null," "),document.body.appendChild(Yo),Yo.select(),document.execCommand("copy"),document.body.removeChild(Yo),Do.copiedTimer=setTimeout(function(){Do.setState({copied:!1})},5500),Do.setState({copied:!0},function(){typeof ys=="function"&&ys({src:hs,namespace:Is,name:Is[Is.length-1]})})},Do.getClippyIcon=function(){var Yo=Do.props.theme;return Do.state.copied?Eo.a.createElement("span",null,Eo.a.createElement(ru,Object.assign({className:"copy-icon"},Oo(Yo,"copy-icon"))),Eo.a.createElement("span",Oo(Yo,"copy-icon-copied"),"✔")):Eo.a.createElement(ru,Object.assign({className:"copy-icon"},Oo(Yo,"copy-icon")))},Do.clipboardValue=function(Yo){switch(Io(Yo)){case"function":case"regexp":return Yo.toString();default:return Yo}},Do.state={copied:!1},Do}return fo(Po,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var zo=this.props,Do=(zo.src,zo.theme),Yo=zo.hidden,vs=zo.rowHovered,ys=Oo(Do,"copy-to-clipboard").style,hs="inline";return Yo&&(hs="none"),Eo.a.createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:vs?"inline-block":"none"}},Eo.a.createElement("span",{style:lo(lo({},ys),{},{display:hs}),onClick:this.handleCopy},this.getClippyIcon()))}}]),Po}(Eo.a.PureComponent),lu=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(zo){var Do;return uo(this,Po),(Do=Uo.call(this,zo)).getEditIcon=function(){var Yo=Do.props,vs=Yo.variable,ys=Yo.theme;return Eo.a.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:Do.state.hovered?"inline-block":"none"}},Eo.a.createElement(xu,Object.assign({className:"click-to-edit-icon"},Oo(ys,"editVarIcon"),{onClick:function(){Do.prepopInput(vs)}})))},Do.prepopInput=function(Yo){if(Do.props.onEdit!==!1){var vs=function(hs){var Is;switch(Io(hs)){case"undefined":Is="undefined";break;case"nan":Is="NaN";break;case"string":Is=hs;break;case"date":case"function":case"regexp":Is=hs.toString();break;default:try{Is=JSON.stringify(hs,null," ")}catch{Is=""}}return Is}(Yo.value),ys=Gs(vs);Do.setState({editMode:!0,editValue:vs,parsedInput:{type:ys.type,value:ys.value}})}},Do.getRemoveIcon=function(){var Yo=Do.props,vs=Yo.variable,ys=Yo.namespace,hs=Yo.theme,Is=Yo.rjvId;return Eo.a.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:Do.state.hovered?"inline-block":"none"}},Eo.a.createElement(au,Object.assign({className:"click-to-remove-icon"},Oo(hs,"removeVarIcon"),{onClick:function(){Os.dispatch({name:"VARIABLE_REMOVED",rjvId:Is,data:{name:vs.name,namespace:ys,existing_value:vs.value,variable_removed:!0}})}})))},Do.getValue=function(Yo,vs){var ys=!vs&&Yo.type,hs=bo(Do).props;switch(ys){case!1:return Do.getEditInput();case"string":return Eo.a.createElement(ga,Object.assign({value:Yo.value},hs));case"integer":return Eo.a.createElement(zs,Object.assign({value:Yo.value},hs));case"float":return Eo.a.createElement(Xo,Object.assign({value:Yo.value},hs));case"boolean":return Eo.a.createElement(Go,Object.assign({value:Yo.value},hs));case"function":return Eo.a.createElement(Jo,Object.assign({value:Yo.value},hs));case"null":return Eo.a.createElement(Bs,hs);case"nan":return Eo.a.createElement(Cs,hs);case"undefined":return Eo.a.createElement(Js,hs);case"date":return Eo.a.createElement(qo,Object.assign({value:Yo.value},hs));case"regexp":return Eo.a.createElement(Ls,Object.assign({value:Yo.value},hs));default:return Eo.a.createElement("div",{className:"object-value"},JSON.stringify(Yo.value))}},Do.getEditInput=function(){var Yo=Do.props.theme,vs=Do.state.editValue;return Eo.a.createElement("div",null,Eo.a.createElement(ws,Object.assign({type:"text",inputRef:function(ys){return ys&&ys.focus()},value:vs,className:"variable-editor",onChange:function(ys){var hs=ys.target.value,Is=Gs(hs);Do.setState({editValue:hs,parsedInput:{type:Is.type,value:Is.value}})},onKeyDown:function(ys){switch(ys.key){case"Escape":Do.setState({editMode:!1,editValue:""});break;case"Enter":(ys.ctrlKey||ys.metaKey)&&Do.submitEdit(!0)}ys.stopPropagation()},placeholder:"update this value",minRows:2},Oo(Yo,"edit-input"))),Eo.a.createElement("div",Oo(Yo,"edit-icon-container"),Eo.a.createElement(au,Object.assign({className:"edit-cancel"},Oo(Yo,"cancel-icon"),{onClick:function(){Do.setState({editMode:!1,editValue:""})}})),Eo.a.createElement(Ql,Object.assign({className:"edit-check string-value"},Oo(Yo,"check-icon"),{onClick:function(){Do.submitEdit()}})),Eo.a.createElement("div",null,Do.showDetected())))},Do.submitEdit=function(Yo){var vs=Do.props,ys=vs.variable,hs=vs.namespace,Is=vs.rjvId,Us=Do.state,Il=Us.editValue,Ml=Us.parsedInput,Rl=Il;Yo&&Ml.type&&(Rl=Ml.value),Do.setState({editMode:!1}),Os.dispatch({name:"VARIABLE_UPDATED",rjvId:Is,data:{name:ys.name,namespace:hs,existing_value:ys.value,new_value:Rl,variable_removed:!1}})},Do.showDetected=function(){var Yo=Do.props,vs=Yo.theme,ys=(Yo.variable,Yo.namespace,Yo.rjvId,Do.state.parsedInput),hs=(ys.type,ys.value,Do.getDetectedInput());if(hs)return Eo.a.createElement("div",null,Eo.a.createElement("div",Oo(vs,"detected-row"),hs,Eo.a.createElement(Ql,{className:"edit-check detected",style:lo({verticalAlign:"top",paddingLeft:"3px"},Oo(vs,"check-icon").style),onClick:function(){Do.submitEdit(!0)}})))},Do.getDetectedInput=function(){var Yo=Do.state.parsedInput,vs=Yo.type,ys=Yo.value,hs=bo(Do).props,Is=hs.theme;if(vs!==!1)switch(vs.toLowerCase()){case"object":return Eo.a.createElement("span",null,Eo.a.createElement("span",{style:lo(lo({},Oo(Is,"brace").style),{},{cursor:"default"})},"{"),Eo.a.createElement("span",{style:lo(lo({},Oo(Is,"ellipsis").style),{},{cursor:"default"})},"..."),Eo.a.createElement("span",{style:lo(lo({},Oo(Is,"brace").style),{},{cursor:"default"})},"}"));case"array":return Eo.a.createElement("span",null,Eo.a.createElement("span",{style:lo(lo({},Oo(Is,"brace").style),{},{cursor:"default"})},"["),Eo.a.createElement("span",{style:lo(lo({},Oo(Is,"ellipsis").style),{},{cursor:"default"})},"..."),Eo.a.createElement("span",{style:lo(lo({},Oo(Is,"brace").style),{},{cursor:"default"})},"]"));case"string":return Eo.a.createElement(ga,Object.assign({value:ys},hs));case"integer":return Eo.a.createElement(zs,Object.assign({value:ys},hs));case"float":return Eo.a.createElement(Xo,Object.assign({value:ys},hs));case"boolean":return Eo.a.createElement(Go,Object.assign({value:ys},hs));case"function":return Eo.a.createElement(Jo,Object.assign({value:ys},hs));case"null":return Eo.a.createElement(Bs,hs);case"nan":return Eo.a.createElement(Cs,hs);case"undefined":return Eo.a.createElement(Js,hs);case"date":return Eo.a.createElement(qo,Object.assign({value:new Date(ys)},hs))}},Do.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},Do}return fo(Po,[{key:"render",value:function(){var zo=this,Do=this.props,Yo=Do.variable,vs=Do.singleIndent,ys=Do.type,hs=Do.theme,Is=Do.namespace,Us=Do.indentWidth,Il=Do.enableClipboard,Ml=Do.onEdit,Rl=Do.onDelete,Cl=Do.onSelect,Ul=Do.displayArrayKey,fu=Do.quotesOnKeys,Bl=this.state.editMode;return Eo.a.createElement("div",Object.assign({},Oo(hs,"objectKeyVal",{paddingLeft:Us*vs}),{onMouseEnter:function(){return zo.setState(lo(lo({},zo.state),{},{hovered:!0}))},onMouseLeave:function(){return zo.setState(lo(lo({},zo.state),{},{hovered:!1}))},className:"variable-row",key:Yo.name}),ys=="array"?Ul?Eo.a.createElement("span",Object.assign({},Oo(hs,"array-key"),{key:Yo.name+"_"+Is}),Yo.name,Eo.a.createElement("div",Oo(hs,"colon"),":")):null:Eo.a.createElement("span",null,Eo.a.createElement("span",Object.assign({},Oo(hs,"object-name"),{className:"object-key",key:Yo.name+"_"+Is}),!!fu&&Eo.a.createElement("span",{style:{verticalAlign:"top"}},'"'),Eo.a.createElement("span",{style:{display:"inline-block"}},Yo.name),!!fu&&Eo.a.createElement("span",{style:{verticalAlign:"top"}},'"')),Eo.a.createElement("span",Oo(hs,"colon"),":")),Eo.a.createElement("div",Object.assign({className:"variable-value",onClick:Cl===!1&&Ml===!1?null:function(Su){var Nu=Ts(Is);(Su.ctrlKey||Su.metaKey)&&Ml!==!1?zo.prepopInput(Yo):Cl!==!1&&(Nu.shift(),Cl(lo(lo({},Yo),{},{namespace:Nu})))}},Oo(hs,"variableValue",{cursor:Cl===!1?"default":"pointer"})),this.getValue(Yo,Bl)),Il?Eo.a.createElement(gu,{rowHovered:this.state.hovered,hidden:Bl,src:Yo.value,clickCallback:Il,theme:hs,namespace:[].concat(Ts(Is),[Yo.name])}):null,Ml!==!1&&Bl==0?this.getEditIcon():null,Rl!==!1&&Bl==0?this.getRemoveIcon():null)}}]),Po}(Eo.a.PureComponent),mu=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){var zo;uo(this,Po);for(var Do=arguments.length,Yo=new Array(Do),vs=0;vs0?Il:null,namespace:Us.splice(0,Us.length-1),existing_value:Ml,variable_removed:!1,key_name:null};Io(Ml)==="object"?Os.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:Rl,data:Ul}):Os.dispatch({name:"VARIABLE_ADDED",rjvId:Rl,data:lo(lo({},Ul),{},{new_value:[].concat(Ts(Ml),[null])})})}})))},zo.getRemoveObject=function(ys){var hs=zo.props,Is=hs.theme,Us=(hs.hover,hs.namespace),Il=hs.name,Ml=hs.src,Rl=hs.rjvId;if(Us.length!==1)return Eo.a.createElement("span",{className:"click-to-remove",style:{display:ys?"inline-block":"none"}},Eo.a.createElement(au,Object.assign({className:"click-to-remove-icon"},Oo(Is,"removeVarIcon"),{onClick:function(){Os.dispatch({name:"VARIABLE_REMOVED",rjvId:Rl,data:{name:Il,namespace:Us.splice(0,Us.length-1),existing_value:Ml,variable_removed:!0}})}})))},zo.render=function(){var ys=zo.props,hs=ys.theme,Is=ys.onDelete,Us=ys.onAdd,Il=ys.enableClipboard,Ml=ys.src,Rl=ys.namespace,Cl=ys.rowHovered;return Eo.a.createElement("div",Object.assign({},Oo(hs,"object-meta-data"),{className:"object-meta-data",onClick:function(Ul){Ul.stopPropagation()}}),zo.getObjectSize(),Il?Eo.a.createElement(gu,{rowHovered:Cl,clickCallback:Il,src:Ml,theme:hs,namespace:Rl}):null,Us!==!1?zo.getAddAttribute(Cl):null,Is!==!1?zo.getRemoveObject(Cl):null)},zo}return Po}(Eo.a.PureComponent);function ou(Ko){var Uo=Ko.parent_type,Po=Ko.namespace,zo=Ko.quotesOnKeys,Do=Ko.theme,Yo=Ko.jsvRoot,vs=Ko.name,ys=Ko.displayArrayKey,hs=Ko.name?Ko.name:"";return!Yo||vs!==!1&&vs!==null?Uo=="array"?ys?Eo.a.createElement("span",Object.assign({},Oo(Do,"array-key"),{key:Po}),Eo.a.createElement("span",{className:"array-key"},hs),Eo.a.createElement("span",Oo(Do,"colon"),":")):Eo.a.createElement("span",null):Eo.a.createElement("span",Object.assign({},Oo(Do,"object-name"),{key:Po}),Eo.a.createElement("span",{className:"object-key"},zo&&Eo.a.createElement("span",{style:{verticalAlign:"top"}},'"'),Eo.a.createElement("span",null,hs),zo&&Eo.a.createElement("span",{style:{verticalAlign:"top"}},'"')),Eo.a.createElement("span",Oo(Do,"colon"),":")):Eo.a.createElement("span",null)}function Fl(Ko){var Uo=Ko.theme;switch(Ko.iconStyle){case"triangle":return Eo.a.createElement(Ol,Object.assign({},Oo(Uo,"expanded-icon"),{className:"expanded-icon"}));case"square":return Eo.a.createElement(Qs,Object.assign({},Oo(Uo,"expanded-icon"),{className:"expanded-icon"}));default:return Eo.a.createElement(Ms,Object.assign({},Oo(Uo,"expanded-icon"),{className:"expanded-icon"}))}}function yl(Ko){var Uo=Ko.theme;switch(Ko.iconStyle){case"triangle":return Eo.a.createElement(xl,Object.assign({},Oo(Uo,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return Eo.a.createElement(El,Object.assign({},Oo(Uo,"collapsed-icon"),{className:"collapsed-icon"}));default:return Eo.a.createElement(Hs,Object.assign({},Oo(Uo,"collapsed-icon"),{className:"collapsed-icon"}))}}var Xs=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(zo){var Do;return uo(this,Po),(Do=Uo.call(this,zo)).toggleCollapsed=function(Yo){var vs=[];for(var ys in Do.state.expanded)vs.push(Do.state.expanded[ys]);vs[Yo]=!vs[Yo],Do.setState({expanded:vs})},Do.state={expanded:[]},Do}return fo(Po,[{key:"getExpandedIcon",value:function(zo){var Do=this.props,Yo=Do.theme,vs=Do.iconStyle;return this.state.expanded[zo]?Eo.a.createElement(Fl,{theme:Yo,iconStyle:vs}):Eo.a.createElement(yl,{theme:Yo,iconStyle:vs})}},{key:"render",value:function(){var zo=this,Do=this.props,Yo=Do.src,vs=Do.groupArraysAfterLength,ys=(Do.depth,Do.name),hs=Do.theme,Is=Do.jsvRoot,Us=Do.namespace,Il=(Do.parent_type,Ao(Do,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),Ml=0,Rl=5*this.props.indentWidth;Is||(Ml=5*this.props.indentWidth);var Cl=vs,Ul=Math.ceil(Yo.length/Cl);return Eo.a.createElement("div",Object.assign({className:"object-key-val"},Oo(hs,Is?"jsv-root":"objectKeyVal",{paddingLeft:Ml})),Eo.a.createElement(ou,this.props),Eo.a.createElement("span",null,Eo.a.createElement(mu,Object.assign({size:Yo.length},this.props))),Ts(Array(Ul)).map(function(fu,Bl){return Eo.a.createElement("div",Object.assign({key:Bl,className:"object-key-val array-group"},Oo(hs,"objectKeyVal",{marginLeft:6,paddingLeft:Rl})),Eo.a.createElement("span",Oo(hs,"brace-row"),Eo.a.createElement("div",Object.assign({className:"icon-container"},Oo(hs,"icon-container"),{onClick:function(Su){zo.toggleCollapsed(Bl)}}),zo.getExpandedIcon(Bl)),zo.state.expanded[Bl]?Eo.a.createElement(du,Object.assign({key:ys+Bl,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:Cl,index_offset:Bl*Cl,src:Yo.slice(Bl*Cl,Bl*Cl+Cl),namespace:Us,type:"array",parent_type:"array_group",theme:hs},Il)):Eo.a.createElement("span",Object.assign({},Oo(hs,"brace"),{onClick:function(Su){zo.toggleCollapsed(Bl)},className:"array-group-brace"}),"[",Eo.a.createElement("div",Object.assign({},Oo(hs,"array-group-meta-data"),{className:"array-group-meta-data"}),Eo.a.createElement("span",Object.assign({className:"object-size"},Oo(hs,"object-size")),Bl*Cl," - ",Bl*Cl+Cl>Yo.length?Yo.length:Bl*Cl+Cl)),"]")))}))}}]),Po}(Eo.a.PureComponent),vu=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(zo){var Do;uo(this,Po),(Do=Uo.call(this,zo)).toggleCollapsed=function(){Do.setState({expanded:!Do.state.expanded},function(){Ds.set(Do.props.rjvId,Do.props.namespace,"expanded",Do.state.expanded)})},Do.getObjectContent=function(vs,ys,hs){return Eo.a.createElement("div",{className:"pushed-content object-container"},Eo.a.createElement("div",Object.assign({className:"object-content"},Oo(Do.props.theme,"pushed-content")),Do.renderObjectContents(ys,hs)))},Do.getEllipsis=function(){return Do.state.size===0?null:Eo.a.createElement("div",Object.assign({},Oo(Do.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:Do.toggleCollapsed}),"...")},Do.getObjectMetaData=function(vs){var ys=Do.props,hs=(ys.rjvId,ys.theme,Do.state),Is=hs.size,Us=hs.hovered;return Eo.a.createElement(mu,Object.assign({rowHovered:Us,size:Is},Do.props))},Do.renderObjectContents=function(vs,ys){var hs,Is=Do.props,Us=Is.depth,Il=Is.parent_type,Ml=Is.index_offset,Rl=Is.groupArraysAfterLength,Cl=Is.namespace,Ul=Do.state.object_type,fu=[],Bl=Object.keys(vs||{});return Do.props.sortKeys&&Ul!=="array"&&(Bl=Bl.sort()),Bl.forEach(function(Su){if(hs=new $u(Su,vs[Su]),Il==="array_group"&&Ml&&(hs.name=parseInt(hs.name)+Ml),vs.hasOwnProperty(Su))if(hs.type==="object")fu.push(Eo.a.createElement(du,Object.assign({key:hs.name,depth:Us+1,name:hs.name,src:hs.value,namespace:Cl.concat(hs.name),parent_type:Ul},ys)));else if(hs.type==="array"){var Nu=du;Rl&&hs.value.length>Rl&&(Nu=Xs),fu.push(Eo.a.createElement(Nu,Object.assign({key:hs.name,depth:Us+1,name:hs.name,src:hs.value,namespace:Cl.concat(hs.name),type:"array",parent_type:Ul},ys)))}else fu.push(Eo.a.createElement(lu,Object.assign({key:hs.name+"_"+Cl,variable:hs,singleIndent:5,namespace:Cl,type:Do.props.type},ys)))}),fu};var Yo=Po.getState(zo);return Do.state=lo(lo({},Yo),{},{prevProps:{}}),Do}return fo(Po,[{key:"getBraceStart",value:function(zo,Do){var Yo=this,vs=this.props,ys=vs.src,hs=vs.theme,Is=vs.iconStyle;if(vs.parent_type==="array_group")return Eo.a.createElement("span",null,Eo.a.createElement("span",Oo(hs,"brace"),zo==="array"?"[":"{"),Do?this.getObjectMetaData(ys):null);var Us=Do?Fl:yl;return Eo.a.createElement("span",null,Eo.a.createElement("span",Object.assign({onClick:function(Il){Yo.toggleCollapsed()}},Oo(hs,"brace-row")),Eo.a.createElement("div",Object.assign({className:"icon-container"},Oo(hs,"icon-container")),Eo.a.createElement(Us,{theme:hs,iconStyle:Is})),Eo.a.createElement(ou,this.props),Eo.a.createElement("span",Oo(hs,"brace"),zo==="array"?"[":"{")),Do?this.getObjectMetaData(ys):null)}},{key:"render",value:function(){var zo=this,Do=this.props,Yo=Do.depth,vs=Do.src,ys=(Do.namespace,Do.name,Do.type,Do.parent_type),hs=Do.theme,Is=Do.jsvRoot,Us=Do.iconStyle,Il=Ao(Do,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),Ml=this.state,Rl=Ml.object_type,Cl=Ml.expanded,Ul={};return Is||ys==="array_group"?ys==="array_group"&&(Ul.borderLeft=0,Ul.display="inline"):Ul.paddingLeft=5*this.props.indentWidth,Eo.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return zo.setState(lo(lo({},zo.state),{},{hovered:!0}))},onMouseLeave:function(){return zo.setState(lo(lo({},zo.state),{},{hovered:!1}))}},Oo(hs,Is?"jsv-root":"objectKeyVal",Ul)),this.getBraceStart(Rl,Cl),Cl?this.getObjectContent(Yo,vs,lo({theme:hs,iconStyle:Us},Il)):this.getEllipsis(),Eo.a.createElement("span",{className:"brace-row"},Eo.a.createElement("span",{style:lo(lo({},Oo(hs,"brace").style),{},{paddingLeft:Cl?"3px":"0px"})},Rl==="array"?"]":"}"),Cl?null:this.getObjectMetaData(vs)))}}],[{key:"getDerivedStateFromProps",value:function(zo,Do){var Yo=Do.prevProps;return zo.src!==Yo.src||zo.collapsed!==Yo.collapsed||zo.name!==Yo.name||zo.namespace!==Yo.namespace||zo.rjvId!==Yo.rjvId?lo(lo({},Po.getState(zo)),{},{prevProps:zo}):null}}]),Po}(Eo.a.PureComponent);vu.getState=function(Ko){var Uo=Object.keys(Ko.src).length,Po=(Ko.collapsed===!1||Ko.collapsed!==!0&&Ko.collapsed>Ko.depth)&&(!Ko.shouldCollapse||Ko.shouldCollapse({name:Ko.name,src:Ko.src,type:Io(Ko.src),namespace:Ko.namespace})===!1)&&Uo!==0;return{expanded:Ds.get(Ko.rjvId,Ko.namespace,"expanded",Po),object_type:Ko.type==="array"?"array":"object",parent_type:Ko.type==="array"?"array":"object",size:Uo,hovered:!1}};var $u=function Ko(Uo,Po){uo(this,Ko),this.name=Uo,this.value=Po,this.type=Io(Po)};Ro(vu);var du=vu,d1=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){var zo;uo(this,Po);for(var Do=arguments.length,Yo=new Array(Do),vs=0;vsys.groupArraysAfterLength&&(Is=Xs),Eo.a.createElement("div",{className:"pretty-json-container object-container"},Eo.a.createElement("div",{className:"object-content"},Eo.a.createElement(Is,Object.assign({namespace:hs,depth:0,jsvRoot:!0},ys))))},zo}return Po}(Eo.a.PureComponent),qu=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(zo){var Do;return uo(this,Po),(Do=Uo.call(this,zo)).closeModal=function(){Os.dispatch({rjvId:Do.props.rjvId,name:"RESET"})},Do.submit=function(){Do.props.submit(Do.state.input)},Do.state={input:zo.input?zo.input:""},Do}return fo(Po,[{key:"render",value:function(){var zo=this,Do=this.props,Yo=Do.theme,vs=Do.rjvId,ys=Do.isValid,hs=this.state.input,Is=ys(hs);return Eo.a.createElement("div",Object.assign({className:"key-modal-request"},Oo(Yo,"key-modal-request"),{onClick:this.closeModal}),Eo.a.createElement("div",Object.assign({},Oo(Yo,"key-modal"),{onClick:function(Us){Us.stopPropagation()}}),Eo.a.createElement("div",Oo(Yo,"key-modal-label"),"Key Name:"),Eo.a.createElement("div",{style:{position:"relative"}},Eo.a.createElement("input",Object.assign({},Oo(Yo,"key-modal-input"),{className:"key-modal-input",ref:function(Us){return Us&&Us.focus()},spellCheck:!1,value:hs,placeholder:"...",onChange:function(Us){zo.setState({input:Us.target.value})},onKeyPress:function(Us){Is&&Us.key==="Enter"?zo.submit():Us.key==="Escape"&&zo.closeModal()}})),Is?Eo.a.createElement(Ql,Object.assign({},Oo(Yo,"key-modal-submit"),{className:"key-modal-submit",onClick:function(Us){return zo.submit()}})):null),Eo.a.createElement("span",Oo(Yo,"key-modal-cancel"),Eo.a.createElement(hu,Object.assign({},Oo(Yo,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){Os.dispatch({rjvId:vs,name:"RESET"})}})))))}}]),Po}(Eo.a.PureComponent),Iu=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){var zo;uo(this,Po);for(var Do=arguments.length,Yo=new Array(Do),vs=0;vs=0)&&(ro[oo]=eo[oo]);return ro}function _objectWithoutProperties(eo,to){if(eo==null)return{};var ro=_objectWithoutPropertiesLoose(eo,to),no,oo;if(Object.getOwnPropertySymbols){var io=Object.getOwnPropertySymbols(eo);for(oo=0;oo=0)&&Object.prototype.propertyIsEnumerable.call(eo,no)&&(ro[no]=eo[no])}return ro}function _slicedToArray(eo,to){return _arrayWithHoles(eo)||_iterableToArrayLimit(eo,to)||_unsupportedIterableToArray(eo,to)||_nonIterableRest()}function _arrayWithHoles(eo){if(Array.isArray(eo))return eo}function _iterableToArrayLimit(eo,to){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(eo)))){var ro=[],no=!0,oo=!1,io=void 0;try{for(var so=eo[Symbol.iterator](),ao;!(no=(ao=so.next()).done)&&(ro.push(ao.value),!(to&&ro.length===to));no=!0);}catch(lo){oo=!0,io=lo}finally{try{!no&&so.return!=null&&so.return()}finally{if(oo)throw io}}return ro}}function _unsupportedIterableToArray(eo,to){if(eo){if(typeof eo=="string")return _arrayLikeToArray(eo,to);var ro=Object.prototype.toString.call(eo).slice(8,-1);if(ro==="Object"&&eo.constructor&&(ro=eo.constructor.name),ro==="Map"||ro==="Set")return Array.from(eo);if(ro==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ro))return _arrayLikeToArray(eo,to)}}function _arrayLikeToArray(eo,to){(to==null||to>eo.length)&&(to=eo.length);for(var ro=0,no=new Array(to);ro=eo.length?eo.apply(this,oo):function(){for(var so=arguments.length,ao=new Array(so),lo=0;lo1&&arguments[1]!==void 0?arguments[1]:{};validators$1.initial(eo),validators$1.handler(to);var ro={current:eo},no=curry$1(didStateUpdate)(ro,to),oo=curry$1(updateState)(ro),io=curry$1(validators$1.changes)(eo),so=curry$1(extractChanges)(ro);function ao(){var uo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(co){return co};return validators$1.selector(uo),uo(ro.current)}function lo(uo){compose$1(no,oo,io,so)(uo)}return[ao,lo]}function extractChanges(eo,to){return isFunction(to)?to(eo.current):to}function updateState(eo,to){return eo.current=_objectSpread2(_objectSpread2({},eo.current),to),to}function didStateUpdate(eo,to,ro){return isFunction(to)?to(eo.current):Object.keys(ro).forEach(function(no){var oo;return(oo=to[no])===null||oo===void 0?void 0:oo.call(to,eo.current[no])}),ro}var index={create},config$1={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function curry(eo){return function to(){for(var ro=this,no=arguments.length,oo=new Array(no),io=0;io=eo.length?eo.apply(this,oo):function(){for(var so=arguments.length,ao=new Array(so),lo=0;lo{no.current=!1}:eo,to)}var l$4=he$1;function D$3(){}function h$4(eo,to,ro,no){return De$1(eo,no)||be$1(eo,to,ro,no)}function De$1(eo,to){return eo.editor.getModel(te$1(eo,to))}function be$1(eo,to,ro,no){return eo.editor.createModel(to,ro,no?te$1(eo,no):void 0)}function te$1(eo,to){return eo.Uri.parse(to)}function Oe$1({original:eo,modified:to,language:ro,originalLanguage:no,modifiedLanguage:oo,originalModelPath:io,modifiedModelPath:so,keepCurrentOriginalModel:ao=!1,keepCurrentModifiedModel:lo=!1,theme:uo="light",loading:co="Loading...",options:fo={},height:po="100%",width:ho="100%",className:mo,wrapperProps:vo={},beforeMount:bo=D$3,onMount:xo=D$3}){let[_o,So]=reactExports.useState(!1),[Eo,ko]=reactExports.useState(!0),wo=reactExports.useRef(null),Co=reactExports.useRef(null),Ro=reactExports.useRef(null),Ao=reactExports.useRef(xo),Io=reactExports.useRef(bo),$o=reactExports.useRef(!1);k$3(()=>{let jo=loader.init();return jo.then(Oo=>(Co.current=Oo)&&ko(!1)).catch(Oo=>(Oo==null?void 0:Oo.type)!=="cancelation"&&console.error("Monaco initialization: error:",Oo)),()=>wo.current?Ho():jo.cancel()}),l$4(()=>{if(wo.current&&Co.current){let jo=wo.current.getOriginalEditor(),Oo=h$4(Co.current,eo||"",no||ro||"text",io||"");Oo!==jo.getModel()&&jo.setModel(Oo)}},[io],_o),l$4(()=>{if(wo.current&&Co.current){let jo=wo.current.getModifiedEditor(),Oo=h$4(Co.current,to||"",oo||ro||"text",so||"");Oo!==jo.getModel()&&jo.setModel(Oo)}},[so],_o),l$4(()=>{let jo=wo.current.getModifiedEditor();jo.getOption(Co.current.editor.EditorOption.readOnly)?jo.setValue(to||""):to!==jo.getValue()&&(jo.executeEdits("",[{range:jo.getModel().getFullModelRange(),text:to||"",forceMoveMarkers:!0}]),jo.pushUndoStop())},[to],_o),l$4(()=>{var jo,Oo;(Oo=(jo=wo.current)==null?void 0:jo.getModel())==null||Oo.original.setValue(eo||"")},[eo],_o),l$4(()=>{let{original:jo,modified:Oo}=wo.current.getModel();Co.current.editor.setModelLanguage(jo,no||ro||"text"),Co.current.editor.setModelLanguage(Oo,oo||ro||"text")},[ro,no,oo],_o),l$4(()=>{var jo;(jo=Co.current)==null||jo.editor.setTheme(uo)},[uo],_o),l$4(()=>{var jo;(jo=wo.current)==null||jo.updateOptions(fo)},[fo],_o);let Bo=reactExports.useCallback(()=>{var Fo;if(!Co.current)return;Io.current(Co.current);let jo=h$4(Co.current,eo||"",no||ro||"text",io||""),Oo=h$4(Co.current,to||"",oo||ro||"text",so||"");(Fo=wo.current)==null||Fo.setModel({original:jo,modified:Oo})},[ro,to,oo,eo,no,io,so]),Mo=reactExports.useCallback(()=>{var jo;!$o.current&&Ro.current&&(wo.current=Co.current.editor.createDiffEditor(Ro.current,{automaticLayout:!0,...fo}),Bo(),(jo=Co.current)==null||jo.editor.setTheme(uo),So(!0),$o.current=!0)},[fo,uo,Bo]);reactExports.useEffect(()=>{_o&&Ao.current(wo.current,Co.current)},[_o]),reactExports.useEffect(()=>{!Eo&&!_o&&Mo()},[Eo,_o,Mo]);function Ho(){var Oo,Fo,Go,qo;let jo=(Oo=wo.current)==null?void 0:Oo.getModel();ao||((Fo=jo==null?void 0:jo.original)==null||Fo.dispose()),lo||((Go=jo==null?void 0:jo.modified)==null||Go.dispose()),(qo=wo.current)==null||qo.dispose()}return React.createElement(H$2,{width:ho,height:po,isEditorReady:_o,loading:co,_ref:Ro,className:mo,wrapperProps:vo})}var ie$1=Oe$1;reactExports.memo(ie$1);function He$1(eo){let to=reactExports.useRef();return reactExports.useEffect(()=>{to.current=eo},[eo]),to.current}var se$1=He$1,_$6=new Map;function Ve$1({defaultValue:eo,defaultLanguage:to,defaultPath:ro,value:no,language:oo,path:io,theme:so="light",line:ao,loading:lo="Loading...",options:uo={},overrideServices:co={},saveViewState:fo=!0,keepCurrentModel:po=!1,width:ho="100%",height:mo="100%",className:vo,wrapperProps:bo={},beforeMount:xo=D$3,onMount:_o=D$3,onChange:So,onValidate:Eo=D$3}){let[ko,wo]=reactExports.useState(!1),[Co,Ro]=reactExports.useState(!0),Ao=reactExports.useRef(null),Io=reactExports.useRef(null),$o=reactExports.useRef(null),Bo=reactExports.useRef(_o),Mo=reactExports.useRef(xo),Ho=reactExports.useRef(),jo=reactExports.useRef(no),Oo=se$1(io),Fo=reactExports.useRef(!1),Go=reactExports.useRef(!1);k$3(()=>{let Zo=loader.init();return Zo.then(Qo=>(Ao.current=Qo)&&Ro(!1)).catch(Qo=>(Qo==null?void 0:Qo.type)!=="cancelation"&&console.error("Monaco initialization: error:",Qo)),()=>Io.current?Xo():Zo.cancel()}),l$4(()=>{var Qo,xs,Ts,Rs;let Zo=h$4(Ao.current,eo||no||"",to||oo||"",io||ro||"");Zo!==((Qo=Io.current)==null?void 0:Qo.getModel())&&(fo&&_$6.set(Oo,(xs=Io.current)==null?void 0:xs.saveViewState()),(Ts=Io.current)==null||Ts.setModel(Zo),fo&&((Rs=Io.current)==null||Rs.restoreViewState(_$6.get(io))))},[io],ko),l$4(()=>{var Zo;(Zo=Io.current)==null||Zo.updateOptions(uo)},[uo],ko),l$4(()=>{!Io.current||no===void 0||(Io.current.getOption(Ao.current.editor.EditorOption.readOnly)?Io.current.setValue(no):no!==Io.current.getValue()&&(Go.current=!0,Io.current.executeEdits("",[{range:Io.current.getModel().getFullModelRange(),text:no,forceMoveMarkers:!0}]),Io.current.pushUndoStop(),Go.current=!1))},[no],ko),l$4(()=>{var Qo,xs;let Zo=(Qo=Io.current)==null?void 0:Qo.getModel();Zo&&oo&&((xs=Ao.current)==null||xs.editor.setModelLanguage(Zo,oo))},[oo],ko),l$4(()=>{var Zo;ao!==void 0&&((Zo=Io.current)==null||Zo.revealLine(ao))},[ao],ko),l$4(()=>{var Zo;(Zo=Ao.current)==null||Zo.editor.setTheme(so)},[so],ko);let qo=reactExports.useCallback(()=>{var Zo;if(!(!$o.current||!Ao.current)&&!Fo.current){Mo.current(Ao.current);let Qo=io||ro,xs=h$4(Ao.current,no||eo||"",to||oo||"",Qo||"");Io.current=(Zo=Ao.current)==null?void 0:Zo.editor.create($o.current,{model:xs,automaticLayout:!0,...uo},co),fo&&Io.current.restoreViewState(_$6.get(Qo)),Ao.current.editor.setTheme(so),ao!==void 0&&Io.current.revealLine(ao),wo(!0),Fo.current=!0}},[eo,to,ro,no,oo,io,uo,co,fo,so,ao]);reactExports.useEffect(()=>{ko&&Bo.current(Io.current,Ao.current)},[ko]),reactExports.useEffect(()=>{!Co&&!ko&&qo()},[Co,ko,qo]),jo.current=no,reactExports.useEffect(()=>{var Zo,Qo;ko&&So&&((Zo=Ho.current)==null||Zo.dispose(),Ho.current=(Qo=Io.current)==null?void 0:Qo.onDidChangeModelContent(xs=>{Go.current||So(Io.current.getValue(),xs)}))},[ko,So]),reactExports.useEffect(()=>{if(ko){let Zo=Ao.current.editor.onDidChangeMarkers(Qo=>{var Ts;let xs=(Ts=Io.current.getModel())==null?void 0:Ts.uri;if(xs&&Qo.find(Rs=>Rs.path===xs.path)){let Rs=Ao.current.editor.getModelMarkers({resource:xs});Eo==null||Eo(Rs)}});return()=>{Zo==null||Zo.dispose()}}return()=>{}},[ko,Eo]);function Xo(){var Zo,Qo;(Zo=Ho.current)==null||Zo.dispose(),po?fo&&_$6.set(io,Io.current.saveViewState()):(Qo=Io.current.getModel())==null||Qo.dispose(),Io.current.dispose()}return React.createElement(H$2,{width:ho,height:mo,isEditorReady:ko,loading:lo,_ref:$o,className:vo,wrapperProps:bo})}var fe$1=Ve$1,de$1=reactExports.memo(fe$1),Ft$1=de$1;const JinjaSyntaxHighlighter=({value:eo,theme:to,onMount:ro})=>jsxRuntimeExports.jsx(Ft$1,{value:eo,theme:to,options:{readOnly:!0,minimap:{enabled:!1}},defaultLanguage:"jinja2",onMount:(no,oo)=>{oo.languages.register({id:"jinja2"}),oo.languages.setLanguageConfiguration("jinja2",{comments:{blockComment:["{#","#}"]},brackets:[["{#","#}"],["{%","%}"],["{{","}}"],["{","}"]],folding:{markers:{start:/\{%\s*(block|for|if)/,end:/\{%\s*end(block|for|if)/}}}),oo.languages.setMonarchTokensProvider("jinja2",{tokenizer:{root:[[/\{\{/,"delimiter"],[/\}\}/,"delimiter"],[/\{#/,"comment"],[/#\}/,"comment"],[/\{%/,"control"],[/%\}/,"control"],[/\b(if|else|elif|endif|for|endfor|set|extends|include|block|endblock|macro|endmacro)\b/,"keyword"],[/\b(length|list|lower|upper|trim|truncate|replace|round|urlencode|urlize)\b/,"filter"],[/\b(\+|-|\*|\/|%|\*\*|\/\/)\b/,"operator"],[/\b(\d+|\d*\.\d+)\b/,"number"],[/(^user:|^# user:|^system:|^# system:|^assistant:|^# assistant:)/,"keyword"]]}}),ro==null||ro(no)}}),locStringsInjectionToken=createInjectionToken("locStrings",{}),useLocStrings=()=>{const[eo]=useInjected(locStringsInjectionToken);return eo},safeJSONParse=eo=>{try{return JSON.parse(eo)}catch{return eo}};function formatDecimal(eo){return Math.abs(eo=Math.round(eo))>=1e21?eo.toLocaleString("en").replace(/,/g,""):eo.toString(10)}function formatDecimalParts(eo,to){if((ro=(eo=to?eo.toExponential(to-1):eo.toExponential()).indexOf("e"))<0)return null;var ro,no=eo.slice(0,ro);return[no.length>1?no[0]+no.slice(2):no,+eo.slice(ro+1)]}function exponent(eo){return eo=formatDecimalParts(Math.abs(eo)),eo?eo[1]:NaN}function formatGroup(eo,to){return function(ro,no){for(var oo=ro.length,io=[],so=0,ao=eo[0],lo=0;oo>0&&ao>0&&(lo+ao+1>no&&(ao=Math.max(1,no-lo)),io.push(ro.substring(oo-=ao,oo+ao)),!((lo+=ao+1)>no));)ao=eo[so=(so+1)%eo.length];return io.reverse().join(to)}}function formatNumerals(eo){return function(to){return to.replace(/[0-9]/g,function(ro){return eo[+ro]})}}var re$2=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function formatSpecifier(eo){if(!(to=re$2.exec(eo)))throw new Error("invalid format: "+eo);var to;return new FormatSpecifier({fill:to[1],align:to[2],sign:to[3],symbol:to[4],zero:to[5],width:to[6],comma:to[7],precision:to[8]&&to[8].slice(1),trim:to[9],type:to[10]})}formatSpecifier.prototype=FormatSpecifier.prototype;function FormatSpecifier(eo){this.fill=eo.fill===void 0?" ":eo.fill+"",this.align=eo.align===void 0?">":eo.align+"",this.sign=eo.sign===void 0?"-":eo.sign+"",this.symbol=eo.symbol===void 0?"":eo.symbol+"",this.zero=!!eo.zero,this.width=eo.width===void 0?void 0:+eo.width,this.comma=!!eo.comma,this.precision=eo.precision===void 0?void 0:+eo.precision,this.trim=!!eo.trim,this.type=eo.type===void 0?"":eo.type+""}FormatSpecifier.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function formatTrim(eo){e:for(var to=eo.length,ro=1,no=-1,oo;ro0&&(no=0);break}return no>0?eo.slice(0,no)+eo.slice(oo+1):eo}var prefixExponent;function formatPrefixAuto(eo,to){var ro=formatDecimalParts(eo,to);if(!ro)return eo+"";var no=ro[0],oo=ro[1],io=oo-(prefixExponent=Math.max(-8,Math.min(8,Math.floor(oo/3)))*3)+1,so=no.length;return io===so?no:io>so?no+new Array(io-so+1).join("0"):io>0?no.slice(0,io)+"."+no.slice(io):"0."+new Array(1-io).join("0")+formatDecimalParts(eo,Math.max(0,to+io-1))[0]}function formatRounded(eo,to){var ro=formatDecimalParts(eo,to);if(!ro)return eo+"";var no=ro[0],oo=ro[1];return oo<0?"0."+new Array(-oo).join("0")+no:no.length>oo+1?no.slice(0,oo+1)+"."+no.slice(oo+1):no+new Array(oo-no.length+2).join("0")}const formatTypes={"%":(eo,to)=>(eo*100).toFixed(to),b:eo=>Math.round(eo).toString(2),c:eo=>eo+"",d:formatDecimal,e:(eo,to)=>eo.toExponential(to),f:(eo,to)=>eo.toFixed(to),g:(eo,to)=>eo.toPrecision(to),o:eo=>Math.round(eo).toString(8),p:(eo,to)=>formatRounded(eo*100,to),r:formatRounded,s:formatPrefixAuto,X:eo=>Math.round(eo).toString(16).toUpperCase(),x:eo=>Math.round(eo).toString(16)};function identity(eo){return eo}var map=Array.prototype.map,prefixes=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function formatLocale(eo){var to=eo.grouping===void 0||eo.thousands===void 0?identity:formatGroup(map.call(eo.grouping,Number),eo.thousands+""),ro=eo.currency===void 0?"":eo.currency[0]+"",no=eo.currency===void 0?"":eo.currency[1]+"",oo=eo.decimal===void 0?".":eo.decimal+"",io=eo.numerals===void 0?identity:formatNumerals(map.call(eo.numerals,String)),so=eo.percent===void 0?"%":eo.percent+"",ao=eo.minus===void 0?"−":eo.minus+"",lo=eo.nan===void 0?"NaN":eo.nan+"";function uo(fo){fo=formatSpecifier(fo);var po=fo.fill,ho=fo.align,mo=fo.sign,vo=fo.symbol,bo=fo.zero,xo=fo.width,_o=fo.comma,So=fo.precision,Eo=fo.trim,ko=fo.type;ko==="n"?(_o=!0,ko="g"):formatTypes[ko]||(So===void 0&&(So=12),Eo=!0,ko="g"),(bo||po==="0"&&ho==="=")&&(bo=!0,po="0",ho="=");var wo=vo==="$"?ro:vo==="#"&&/[boxX]/.test(ko)?"0"+ko.toLowerCase():"",Co=vo==="$"?no:/[%p]/.test(ko)?so:"",Ro=formatTypes[ko],Ao=/[defgprs%]/.test(ko);So=So===void 0?6:/[gprs]/.test(ko)?Math.max(1,Math.min(21,So)):Math.max(0,Math.min(20,So));function Io($o){var Bo=wo,Mo=Co,Ho,jo,Oo;if(ko==="c")Mo=Ro($o)+Mo,$o="";else{$o=+$o;var Fo=$o<0||1/$o<0;if($o=isNaN($o)?lo:Ro(Math.abs($o),So),Eo&&($o=formatTrim($o)),Fo&&+$o==0&&mo!=="+"&&(Fo=!1),Bo=(Fo?mo==="("?mo:ao:mo==="-"||mo==="("?"":mo)+Bo,Mo=(ko==="s"?prefixes[8+prefixExponent/3]:"")+Mo+(Fo&&mo==="("?")":""),Ao){for(Ho=-1,jo=$o.length;++HoOo||Oo>57){Mo=(Oo===46?oo+$o.slice(Ho+1):$o.slice(Ho))+Mo,$o=$o.slice(0,Ho);break}}}_o&&!bo&&($o=to($o,1/0));var Go=Bo.length+$o.length+Mo.length,qo=Go>1)+Bo+$o+Mo+qo.slice(Go);break;default:$o=qo+Bo+$o+Mo;break}return io($o)}return Io.toString=function(){return fo+""},Io}function co(fo,po){var ho=uo((fo=formatSpecifier(fo),fo.type="f",fo)),mo=Math.max(-8,Math.min(8,Math.floor(exponent(po)/3)))*3,vo=Math.pow(10,-mo),bo=prefixes[8+mo/3];return function(xo){return ho(vo*xo)+bo}}return{format:uo,formatPrefix:co}}var locale,format;defaultLocale({thousands:",",grouping:[3],currency:["$",""]});function defaultLocale(eo){return locale=formatLocale(eo),format=locale.format,locale.formatPrefix,locale}function formatInt(eo){return Math.abs(eo)<1e6?format(",")(eo):format("0.2s")(eo)}function formatFloat(eo){const to=Math.abs(eo);return to===0?"0.00":to<.01?format(".2e")(eo):to<1e3?format("0.2f")(eo):format("0.2s")(eo)}function formatNumber(eo){return Number.isInteger(eo)?formatInt(eo):formatFloat(eo)}function createNumberFormatter(eo){return to=>typeof to!="number"?"--":eo(to)}const intFormatter=createNumberFormatter(formatInt),floatFormatter=createNumberFormatter(formatFloat),timeFormat=eo=>(eo&&!eo.endsWith("Z")&&(eo+="Z"),eo?new Date(eo).toLocaleString([],{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):"--"),latencyFormat=eo=>eo===void 0?"N/A":eo===0?"0 ms":eo<10?formatFloat(eo)+"ms":formatFloat(eo/1e3)+"s",parseSpanOutput=eo=>{var ro;const to=(ro=eo==null?void 0:eo.attributes)==null?void 0:ro.output;if(typeof to=="string")try{const no=JSON.parse(to);if(typeof no.usage=="string")try{no.usage=JSON.parse(no.usage)}catch{no.usage={}}return no}catch{return to}return to},parseHttpSpanAttributes=eo=>{var no;const to=eo==null?void 0:eo.attributes;if(!to||((no=to.span_type)==null?void 0:no.toLowerCase())!=="http")return;const ro={response:{headers:{}},request:{headers:{}}};return Object.entries(to).forEach(([oo,io])=>{const so=oo.toLowerCase();if(so==="url.full"){ro.urlFull=io;return}const[ao,lo,uo,...co]=so.split(".");if(ao==="http")switch(lo){case"request":uo==="header"?ro.request.headers[co.join(".")]=io:ro.request[[uo,...co].join(".")]=io;break;case"response":uo==="header"?ro.response.headers[co.join(".")]=io:ro.response[[uo,...co].join(".")]=io;break;case"status_code":ro.status_code=io;break;case"method":ro.method=io;break;default:ro[oo.substring(5)]=io}}),ro},convertToTraceListRow=eo=>{var ro,no,oo;const to=eo.end_time&&eo.start_time?Date.parse(eo.end_time)-Date.parse(eo.start_time):0;return{...eo,latency:to,total_tokens:((ro=eo==null?void 0:eo.cumulative_token_count)==null?void 0:ro.total)??0,prompt_tokens:(no=eo==null?void 0:eo.cumulative_token_count)==null?void 0:no.prompt,completion_tokens:(oo=eo==null?void 0:eo.cumulative_token_count)==null?void 0:oo.completion}};var _a;const initialTableColumnNames={normalColumns:[],evaluationColumns:[]};var ViewStatus=(eo=>(eo.loading="loading",eo.loaded="loaded",eo.error="error",eo.hidden="hidden",eo))(ViewStatus||{});const tv=class tv{constructor(to){this.selectedSpanId$=new State$1(void 0),this.selectedTraceId$=new State$1(void 0),this.selectedEvaluationTraceId$=new State$1(void 0),this.spans$=new ObservableMap,this.traces$=new ObservableOrderedMap,this.tableColumnNames$=new State$1(initialTableColumnNames),this.tableHiddenColumnKeys$=new State$1([]),this.isTraceDetailOpen$=new State$1(!1),this.isGanttChartOpen$=new State$1(!1),this.traceListStatus$=new State$1("loading"),this.traceDetailStatus$=new State$1("loading"),this.traceListShowMetrics$=new State$1(!0),this.messagesBySpanId$=new ObservableOrderedMap,this.sortColumn$=new State$1(void 0),this.sortableColumns=[],this.isLazyLoadSpan=!0,this.spanEventsLoadStatus$=new ObservableMap;const{traceListConfig:ro,spanConfig:no}=to||{};ro&&(this.traceListColumnModifier=ro.columnModifier,ro.showMetrics!==void 0&&this.traceListShowMetrics$.setState(ro.showMetrics),ro.defaultHiddenColumnKeys!==void 0&&this.tableHiddenColumnKeys$.setState(ro.defaultHiddenColumnKeys),ro.sortableColumns&&(this.sortableColumns=ro.sortableColumns)),no&&(this._fetchSpanEvent=no.fetchSpanEvent,this.isLazyLoadSpan=no.isLazyLoadSpan??!0),this.selectedTrace$=Computed$1.fromStates([this.selectedTraceId$,this.traces$,this.selectedEvaluationTraceId$],([oo,io,so])=>{const ao=oo&&io.get(oo)||void 0;return ao&&ao.evaluations&&Object.values(ao.evaluations).find(uo=>uo.trace_id===so)||ao}),this.selectedTraceId$.subscribe(oo=>{var so;if(!oo)return;const io=this.traces$.get(oo);(so=this._traceDetailDidOpenCallback)==null||so.call(this,oo,io)}),this.isTraceDetailOpen$.subscribe(oo=>{var ao;const io=this.selectedTraceId$.getSnapshot(),so=this.selectedTrace$.getSnapshot();!oo&&io&&((ao=this._traceDetailDidCloseCallback)==null||ao.call(this,io,so),this.traceDetailStatus$.setState("hidden"),this.isGanttChartOpen$.setState(!1),this.selectedTraceId$.setState(void 0),this.selectedEvaluationTraceId$.next(void 0),this.spanEventsLoadStatus$.clear())}),this.sortColumn$.subscribe(oo=>{var io;(io=this._traceListSortColumnDidChangeCallback)==null||io.call(this,oo)}),this.traceDetailTitleParts$=Computed$1.fromStates([this.selectedTraceId$,this.selectedEvaluationTraceId$,this.traces$],([oo,io,so])=>{if(!oo)return[];const ao=so.get(oo),lo=ao==null?void 0:ao.evaluations,uo=[];ao!=null&&ao.name&&uo.push(ao.name);const co=Object.values(lo??{}).find(fo=>fo.trace_id===io);return co!=null&&co.name&&uo.push(co.name),uo})}traceDetailDidOpen(to){this._traceDetailDidOpenCallback=to}traceDetailDidClose(to){this._traceDetailDidCloseCallback=to}onTraceDetailCopyUrl(to){this._traceDetailCopyUrlCallback=to}traceListSortColumnDidChange(to){this._traceListSortColumnDidChangeCallback=to}onRefreshSpans(to){this._refreshSpansCallback=to}setOnRefreshTraces(to){this._refreshTracesCallback=to}traceDetailCopyUrl(){const to=this.selectedTraceId$.getSnapshot(),ro=this.selectedTrace$.getSnapshot();return to&&this._traceDetailCopyUrlCallback?(this._traceDetailCopyUrlCallback(to,ro),!0):!1}refreshSpans(){var no;const to=this.selectedTraceId$.getSnapshot(),ro=this.selectedTrace$.getSnapshot();to&&((no=this._refreshSpansCallback)==null||no.call(this,to,ro))}refreshTraces(){var to;(to=this._refreshTracesCallback)==null||to.call(this)}clear(){this.traces$.clear(),this.spans$.clear()}appendTraces(to,ro){to.forEach(no=>{no.trace_id!==void 0&&(ro?this.traces$.set(no.trace_id,no).sortByValue(ro):this.traces$.set(no.trace_id,no))})}appendSpans(to){to.forEach(ro=>{var so,ao;const no=(so=ro==null?void 0:ro.context)==null?void 0:so.trace_id,oo=(ao=ro==null?void 0:ro.context)==null?void 0:ao.span_id;if(!no||!oo)return;const io=this.spans$.get(no)||new ObservableOrderedMap;this.spans$.set(no,io.set(oo,ro))})}toggleIsGanttChartOpen(){this.isGanttChartOpen$.setState(!this.isGanttChartOpen$.getSnapshot())}getTraceById(to){return to?this.traces$.get(to):void 0}setTraceListStatus(to){this.traceListStatus$.setState(to)}setTraceDetailStatus(to){this.traceDetailStatus$.setState(to)}setTraceDetailOpen(to,ro){this.isTraceDetailOpen$.setState(to),this.selectedTraceId$.setState(to?ro:void 0)}sortTraces(to){this.traces$.sortByValue(to)}fetchSpanEvent(to){var ro;return((ro=this._fetchSpanEvent)==null?void 0:ro.call(this,to))??Promise.resolve({status:"success"})}};_a=SINGLETON,tv[_a]=!0;let TraceViewModel=tv;const TraceViewModelToken=createInjectionToken("TraceViewModel",new TraceViewModel),useTraceViewModel=()=>{const[eo]=useInjected(TraceViewModelToken);return eo},useSelectedSpanId=()=>{const eo=useTraceViewModel();return useState(eo.selectedSpanId$)},useSelectedSpan=()=>{var io;const eo=useTraceViewModel(),to=useSelectedSpanId(),ro=useSelectedTraceId(),oo=useSelectedEvaluationTraceId()??ro;if(!(!to||!oo))return(io=eo.spans$.get(oo))==null?void 0:io.get(to)},useParentSpanOfSelectedSpan=()=>{var no;const eo=useTraceViewModel(),to=useSelectedTraceId(),ro=useSelectedSpan();if(!(!ro||!to||!ro.parent_id))return(no=eo.spans$.get(to))==null?void 0:no.get(ro.parent_id)},useSetSelectedSpanId=()=>useSetState(useTraceViewModel().selectedSpanId$),useSelectedTraceId=()=>useState(useTraceViewModel().selectedTraceId$),useSetSelectedTraceId=()=>useSetState(useTraceViewModel().selectedTraceId$),useSelectedTrace=()=>{const eo=useTraceViewModel();return useState(eo.selectedTrace$)},useSpansOfSelectedTrace=()=>{const eo=useTraceViewModel(),to=useSelectedTraceId(),ro=useSelectedEvaluationTraceId(),no=useState(eo.spans$.get(ro??to??"")??new ObservableOrderedMap);return Array.from(no.values())},useTraces=()=>{const eo=useState(useTraceViewModel().traces$);return reactExports.useMemo(()=>Array.from(eo.values()),[eo])},useTraceNavigation=()=>{const eo=useTraceViewModel(),to=useTraces(),ro=useSelectedTraceId(),no=to.findIndex(lo=>lo.trace_id===ro),oo=no>0,io=no{oo&&eo.selectedTraceId$.setState(to[no-1].trace_id)},[oo,no,to,eo]),ao=reactExports.useCallback(()=>{io&&eo.selectedTraceId$.setState(to[no+1].trace_id)},[io,no,to,eo]);return{hasPreviousTrace:oo,hasNextTrace:io,goToPreviousTrace:so,goToNextTrace:ao}},useParseTraceOutput=eo=>reactExports.useMemo(()=>parseSpanOutput(eo),[eo]),useEvaluationSpansOfSelectedSpan=()=>{const eo=useTraceViewModel(),to=[],ro=useSelectedTrace();return ro?(Object.keys(ro.evaluations??[]).forEach(no=>{var io,so;const oo=(io=ro==null?void 0:ro.evaluations)==null?void 0:io[no];if(oo){const ao=Array.from(((so=eo.spans$.get(oo.trace_id??""))==null?void 0:so.getState().values())??[]);to.push({evaluationName:oo.name??no,evaluationTraces:ao})}}),to):[]},useRootSpanIdOfSelectedSpans=()=>{const eo=useSelectedTrace();return eo==null?void 0:eo.root_span_id},useTableColumnNames=()=>useState(useTraceViewModel().tableColumnNames$),useSetTableColumnNames=()=>useSetState(useTraceViewModel().tableColumnNames$),useTableHiddenColumnKeys=()=>useState(useTraceViewModel().tableHiddenColumnKeys$),useSetTableHiddenColumnKeys=()=>useSetState(useTraceViewModel().tableHiddenColumnKeys$),useIsTraceDetailOpen=()=>useState(useTraceViewModel().isTraceDetailOpen$),useSetIsTraceDetailOpen=()=>useSetState(useTraceViewModel().isTraceDetailOpen$),useTraceDetailRefreshKey=()=>{const eo=useTraceViewModel(),to=useSelectedTraceId(),ro=useSelectedEvaluationTraceId(),no=useState(eo.spans$),oo=Array.from(useState(no.get(to??"")??new ObservableOrderedMap).keys());return`${to}-${ro}-${oo.join("-")}`},useIsGanttChartOpen=()=>useState(useTraceViewModel().isGanttChartOpen$),useTraceListColumnModifier=()=>useTraceViewModel().traceListColumnModifier,useTraceListShowMetrics=()=>useState(useTraceViewModel().traceListShowMetrics$),useMessagesBySpanId=eo=>{var fo,po,ho,mo,vo;const to=useTraceViewModel(),ro=useState(to.selectedTraceId$);if(!ro)return{inputMessages:[],outputMessages:[],tools:[]};const no=(fo=to.spans$.get(ro))==null?void 0:fo.get(eo),oo=safeJSONParse(((po=no==null?void 0:no.attributes)==null?void 0:po.inputs)??"{}"),io=safeJSONParse(((ho=no==null?void 0:no.attributes)==null?void 0:ho.output)??"{}"),so=(mo=no==null?void 0:no.attributes)==null?void 0:mo["llm.generated_message"],ao=so?safeJSONParse(so):void 0,lo=(oo==null?void 0:oo.tools)??[],uo=(oo==null?void 0:oo.messages)??[],co=((vo=io==null?void 0:io.choices)==null?void 0:vo.reduce((bo,xo)=>xo.message?[...bo,{...xo.message,tools:lo}]:xo.text?[...bo,{content:xo.text,role:"assistant",tools:lo}]:bo,[]))??[];return ao&&co.push(ao),{inputMessages:uo,outputMessages:co,tools:lo}},useMessagesOfSelectedSpan=()=>{const eo=useSelectedSpanId();return useMessagesBySpanId(eo??"")},useGetAllTraces=()=>{const eo=useTraceViewModel();return reactExports.useCallback(()=>Array.from(eo.traces$.getState().values()),[eo.traces$])},useGetAllSpans=()=>{const eo=useTraceViewModel();return reactExports.useCallback(()=>{const to=[];return eo.spans$.getState().forEach(no=>{no.getState().forEach(io=>{to.push(io)})}),to},[eo.spans$])},useSortColumn=()=>{const eo=useTraceViewModel();return useState(eo.sortColumn$)},useSetSortColumn=()=>useSetState(useTraceViewModel().sortColumn$),useSortableColumns=()=>useTraceViewModel().sortableColumns,useSelectedEvaluationTraceId=()=>useState(useTraceViewModel().selectedEvaluationTraceId$),useSetSelectedEvaluationTraceId=()=>useSetState(useTraceViewModel().selectedEvaluationTraceId$),useSelectedTraceTitleParts=()=>useState(useTraceViewModel().traceDetailTitleParts$),useSpanEventsLoadStatus=()=>useTraceViewModel().spanEventsLoadStatus$,StreamSwitcher=({isStreaming:eo,style:to,onIsStreamingChange:ro,labelName:no})=>{const oo=useLocStrings();return jsxRuntimeExports.jsx(Switch,{label:no||oo.Streaming,labelPosition:"before",checked:eo,onChange:(io,so)=>ro(so.checked),style:to})};var UISize=(eo=>(eo.extraSmall="extra-small",eo.small="small",eo.normal="normal",eo.large="large",eo))(UISize||{});const useUISize=eo=>{const{textSize:to,iconSize:ro,gap:no}=reactExports.useMemo(()=>{switch(eo){case UISize.extraSmall:return{textSize:200,iconSize:"12px",gap:"2px"};case UISize.small:return{textSize:300,iconSize:"16px",gap:"2px"};case UISize.large:return{textSize:500,iconSize:"26px",gap:"5px"};case UISize.normal:default:return{textSize:400,iconSize:"20px",gap:"5px"}}},[eo]);return{textSize:to,iconSize:ro,gap:no}},LatencyText=({startTimeISOString:eo,endTimeISOString:to,size:ro,tipTextSize:no})=>{const oo=useClasses$r(),io=eo?new Date(eo):void 0,so=to?new Date(to):void 0,ao=io&&so?so.getTime()-io.getTime():void 0,lo=latencyFormat(ao),{textSize:uo,iconSize:co,gap:fo}=useUISize(ro);return jsxRuntimeExports.jsx(Tooltip,{content:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Text$1,{size:no,weight:"bold",block:!0,children:"Start Time"}),jsxRuntimeExports.jsx(Text$1,{size:no,block:!0,children:timeFormat(eo)}),jsxRuntimeExports.jsx(Text$1,{size:no,weight:"bold",block:!0,children:"End Time"}),jsxRuntimeExports.jsx(Text$1,{size:no,block:!0,children:timeFormat(to)})]}),relationship:"label",children:jsxRuntimeExports.jsxs("div",{className:oo.wrapper,style:{gap:fo},children:[jsxRuntimeExports.jsx(Clock20Regular,{style:{height:co,width:co}}),jsxRuntimeExports.jsx(Text$1,{size:uo,className:oo.text,children:lo})]})})},useClasses$r=makeStyles({wrapper:{display:"inline-flex",flexDirection:"row",alignItems:"center"},text:{color:tokens.colorNeutralForeground3,fontWeight:600}}),MetricTag=({tag:eo})=>{const to=useClasses$q(),[ro,no]=React.useState(!0),oo=reactExports.useMemo(()=>{if(typeof eo.value=="number")return formatNumber(eo.value);{const io=eo.value.toString();return ro&&io.length>20?io.substring(0,20)+"...":io}},[eo.value,ro]);return jsxRuntimeExports.jsxs(Badge$2,{className:to.wrapper,size:"medium",shape:"rounded",appearance:"outline",onClick:()=>no(!ro),children:[jsxRuntimeExports.jsxs("span",{className:to.name,children:[eo.name," "]}),jsxRuntimeExports.jsx("span",{className:to.data,children:oo})]})},useClasses$q=makeStyles({wrapper:{display:"inline-flex",fontSize:"12px",cursor:"pointer",...shorthands.padding("0px","8px","1px"),...shorthands.borderColor(tokens.colorPaletteGreenBorder2),...shorthands.gap("0.5rem")},name:{color:tokens.colorPaletteGreenBorder2,fontWeight:tokens.fontWeightRegular},data:{color:tokens.colorNeutralForeground1,fontWeight:tokens.fontWeightRegular}});function TokenText({token:eo,info:to,size:ro=UISize.normal}){const no=useClasses$p(),oo=typeof eo=="number"?intFormatter(eo):eo,{textSize:io,iconSize:so,gap:ao}=useUISize(ro);return jsxRuntimeExports.jsxs("div",{className:no.wrapper,style:{gap:ao},children:[jsxRuntimeExports.jsx(NumberCircle020Regular,{style:{height:so,width:so}}),to?jsxRuntimeExports.jsx(Tooltip,{content:to,relationship:"description",children:jsxRuntimeExports.jsx(Text$1,{size:io,className:no.text,children:oo})}):jsxRuntimeExports.jsx(Text$1,{size:io,className:no.text,children:oo})]})}const useClasses$p=makeStyles({wrapper:{display:"inline-flex",flexDirection:"row",alignItems:"center",justifyContent:"center"},text:{color:tokens.colorNeutralForeground3,fontWeight:600}}),NodeToken=({span:eo,showDetail:to=!0,size:ro})=>{const no=useParseTraceOutput(eo);if(!no||typeof no=="string")return null;const oo=no.usage;return!oo||typeof oo=="string"||!oo.total_tokens?null:jsxRuntimeExports.jsx(TokenText,{token:oo.total_tokens,size:ro,info:to?jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",rowGap:6},children:[jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Total tokens",value:oo.total_tokens??0}}),jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Prompt tokens",value:oo.prompt_tokens??0}}),jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Completion tokens",value:oo.completion_tokens??0}})]}):void 0})},SummaryToken=({trace:eo,showDetail:to=!0,size:ro})=>{const{total_tokens:no,prompt_tokens:oo,completion_tokens:io}=eo;return jsxRuntimeExports.jsx(TokenText,{token:no,size:ro,info:to?jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",rowGap:6},children:[jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Total tokens",value:no}}),oo!==void 0&&jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Prompt tokens",value:oo}}),io!==void 0&&jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Completion tokens",value:io}})]}):void 0})};function StatusText({statusCode:eo,showText:to=!1,size:ro,tooltipContent:no}){const oo=useClasses$o(),io=useLocStrings();eo=eo||io.unknown;const{textSize:so,iconSize:ao,gap:lo}=useUISize(ro),uo=reactExports.useMemo(()=>({width:ao,height:ao}),[ao]),[co,fo]=reactExports.useMemo(()=>{switch(eo==null?void 0:eo.toLowerCase()){case"ok":case"completed":return[jsxRuntimeExports.jsx(CheckmarkCircle20Filled,{style:uo},"ok"),tokens.colorPaletteGreenForeground1];case"error":return[jsxRuntimeExports.jsx(DismissCircle20Filled,{style:uo},"error"),tokens.colorPaletteRedForeground1];case"unset":return[jsxRuntimeExports.jsx(ErrorCircle20Filled,{style:uo},"unset"),tokens.colorPaletteYellowForeground1];case"running":return[jsxRuntimeExports.jsx(ArrowClockwiseDashes20Filled,{className:oo.rotate,style:uo},"running"),tokens.colorPaletteYellowForeground1];default:return[jsxRuntimeExports.jsx(QuestionCircle20Filled,{},"unknown"),tokens.colorPaletteYellowForeground1]}},[oo.rotate,uo,eo]);return jsxRuntimeExports.jsx(Tooltip,{content:no??eo??"",relationship:"label",children:jsxRuntimeExports.jsxs("div",{className:oo.wrapper,style:{color:fo,gap:to?lo:0},children:[co,to&&jsxRuntimeExports.jsx(Text$1,{size:so,children:eo})]})})}const useClasses$o=makeStyles({wrapper:{display:"inline-flex",flexDirection:"row",alignItems:"center",justifyContent:"center"},rotate:{animationDuration:"2s",animationTimingFunction:"linear",animationIterationCount:"infinite",animationName:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}}}}),useClasses$n=makeStyles({root:{display:"flex",fontSize:tokens.fontSizeBase200,marginLeft:"8px",...shorthands.gap("8px","column")}}),TraceSystemMetrics=()=>{const eo=useSelectedTrace(),to=useClasses$n();return eo?jsxRuntimeExports.jsxs("div",{className:to.root,children:[jsxRuntimeExports.jsx(StatusText,{statusCode:eo.status,size:UISize.normal,showText:!0}),jsxRuntimeExports.jsx(LatencyText,{startTimeISOString:eo.start_time,endTimeISOString:eo.end_time,size:UISize.normal}),jsxRuntimeExports.jsx(SummaryToken,{trace:convertToTraceListRow(eo),size:UISize.normal})]}):null},useClasses$m=makeStyles({title:{...shorthands.flex(1),...shorthands.padding("0"),lineHeight:"28px",fontSize:"20px",fontWeight:600},button:{fontSize:"20px",...shorthands.padding("0")}}),TraceDetailTitle=()=>{const eo=useSelectedTraceTitleParts(),to=useSetSelectedEvaluationTraceId(),ro=eo[0],no=eo[1],oo=useClasses$m();return jsxRuntimeExports.jsxs(Breadcrumb,{className:oo.title,size:"large",children:[jsxRuntimeExports.jsx(BreadcrumbItem,{children:jsxRuntimeExports.jsxs(BreadcrumbButton,{className:oo.button,onClick:()=>{to(void 0)},children:[ro,!no&&jsxRuntimeExports.jsx(TraceSystemMetrics,{})]})}),no&&jsxRuntimeExports.jsx(BreadcrumbDivider,{}),no&&jsxRuntimeExports.jsx(BreadcrumbItem,{children:jsxRuntimeExports.jsxs(BreadcrumbButton,{className:oo.button,children:[no,jsxRuntimeExports.jsx(TraceSystemMetrics,{})]})})]})},TraceDetailHeader=({setIsTraceDetailOpen:eo,showRefresh:to=!0,showGantt:ro=!1,showCopyUrl:no=!1,showStreamSwitch:oo=!1,isStreaming:io,onIsStreamingChange:so})=>{const ao=useClasses$l(),lo=useLocStrings(),uo=useTraceViewModel(),co=useIsGanttChartOpen(),[fo,po]=React.useState("Copy URL"),ho=useSelectedTrace(),mo=ho!=null&&ho.start_time?timeFormat(ho.start_time):void 0;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:ao.header,children:[jsxRuntimeExports.jsx(TraceDetailTitle,{}),mo&&jsxRuntimeExports.jsxs("time",{className:ao.time,children:["Created on: ",mo]}),jsxRuntimeExports.jsx(Divider$2,{vertical:!0,className:ao.divider}),jsxRuntimeExports.jsx(TraceNavigation,{}),oo&&io!==void 0&&so!==void 0&&jsxRuntimeExports.jsx(StreamSwitcher,{style:{marginRight:"16px",marginTop:"4px"},isStreaming:io,onIsStreamingChange:so}),no?jsxRuntimeExports.jsx(Tooltip,{content:lo[`${fo}`],relationship:"description",children:jsxRuntimeExports.jsx(Button$2,{appearance:"subtle","aria-label":"Copy URL",icon:jsxRuntimeExports.jsx(SendCopy20Regular,{}),onMouseEnter:()=>{po("Copy URL")},onClick:()=>{if(uo.traceDetailCopyUrl()){po("Copied!");return}const vo=window.location.href;if(navigator.clipboard)navigator.clipboard.writeText(vo),po("Copied!");else{const bo=document.createElement("textarea");bo.value=vo,document.body.appendChild(bo),bo.select();try{document.execCommand("copy"),po("Copied!")}catch(xo){console.error("Fallback: Oops, unable to copy",xo),po("Oops, unable to copy!")}document.body.removeChild(bo)}}})}):null,to?jsxRuntimeExports.jsx(Tooltip,{content:lo["Refresh Data"],relationship:"description",children:jsxRuntimeExports.jsx(Button$2,{appearance:"subtle","aria-label":"Refresh",icon:jsxRuntimeExports.jsx(ArrowClockwise16Regular,{}),onClick:()=>uo.refreshSpans()})}):null,ro?jsxRuntimeExports.jsx(Tooltip,{content:lo[co?"Hide Gantt":"Show Gantt"],relationship:"description",children:jsxRuntimeExports.jsx(Button$2,{style:{color:co?tokens.colorBrandForeground1:""},appearance:"subtle","aria-label":"Close",icon:jsxRuntimeExports.jsx(GanttChart20Regular,{}),onClick:()=>uo.toggleIsGanttChartOpen()})}):null,jsxRuntimeExports.jsx(Button$2,{appearance:"subtle","aria-label":"Close",icon:jsxRuntimeExports.jsx(Dismiss20Regular,{}),onClick:()=>eo(!1)})]}),jsxRuntimeExports.jsx(Divider$2,{})]})},TraceNavigation=()=>{const eo=useLocStrings(),to=useClasses$l(),{hasPreviousTrace:ro,hasNextTrace:no,goToPreviousTrace:oo,goToNextTrace:io}=useTraceNavigation();return ro||no?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:to.navigation,children:[ro&&jsxRuntimeExports.jsxs(Button$2,{icon:jsxRuntimeExports.jsx(ArrowUp20Regular,{}),onClick:oo,appearance:"subtle",children:[eo["Previous trace"]," "]}),no&&jsxRuntimeExports.jsxs(Button$2,{icon:jsxRuntimeExports.jsx(ArrowDown20Regular,{}),onClick:io,appearance:"subtle",children:[eo["Next trace"]," "]})]}),jsxRuntimeExports.jsx(Divider$2,{vertical:!0,className:to.divider})]}):void 0},useClasses$l=makeStyles({header:{display:"flex",width:"100%",boxSizing:"border-box",...shorthands.padding("12px","20px")},divider:{height:"100%",...shorthands.flex("none"),...shorthands.padding(0,tokens.spacingHorizontalM)},navigation:{display:"flex",alignItems:"center",...shorthands.gap(tokens.spacingHorizontalS)},time:{display:"flex",alignItems:"center",paddingRight:tokens.spacingHorizontalL,...shorthands.flex("0 1 auto")}}),traceDetailErrorInjectionToken=createInjectionToken("traceDetailErrorInjectionToken",()=>{const eo=useLocStrings();return jsxRuntimeExports.jsx(MessageBar,{intent:"error",children:eo.Failed_to_load_trace})}),traceDetailLoadingInjectionToken=createInjectionToken("traceDetailLoadingInjectionToken",Loading),traceListErrorInjectionToken=createInjectionToken("traceListErrorInjectionToken",()=>{const eo=useLocStrings();return jsxRuntimeExports.jsx(MessageBar,{intent:"error",children:eo.Failed_to_load_traces})}),traceListLoadingInjectionToken=createInjectionToken("traceListLoadingInjectionToken",Loading),useTraceListViewStatus=()=>{const eo=useTraceViewModel();return useState(eo.traceListStatus$)},useTraceDetailViewStatus=()=>{const eo=useTraceViewModel();return useState(eo.traceDetailStatus$)},useTraceListLoadingComponent=()=>{const[eo]=useInjected(traceListLoadingInjectionToken);return eo},useTraceListErrorComponent=()=>{const[eo]=useInjected(traceListErrorInjectionToken);return eo},useTraceDetailLoadingComponent=()=>{const[eo]=useInjected(traceDetailLoadingInjectionToken);return eo},useTraceDetailErrorComponent=()=>{const[eo]=useInjected(traceDetailErrorInjectionToken);return eo},TREE_NODE_HEIGHT=40,TREE_NODE_WIDTH=400,TREE_NODE_PADDING=10,TREE_NODE_INDENT=48,sortTraceByStartTimeDesc=(eo,to)=>eo.start_time&&to.start_time?Date.parse(to.start_time)-Date.parse(eo.start_time):1,sortTraceByStartTimeAsc=(eo,to)=>eo.start_time&&to.start_time?Date.parse(eo.start_time)-Date.parse(to.start_time):1,defaultGetNodeX=({level:eo})=>eo*TREE_NODE_INDENT,defaultGetNodeWidth=()=>TREE_NODE_WIDTH,defaultGetNodeHeight=()=>TREE_NODE_HEIGHT,spansToGraphModel=(eo,{isEdgesHidden:to=!1,getNodeX:ro=defaultGetNodeX,getNodeWidth:no=defaultGetNodeWidth,getNodeHeight:oo=defaultGetNodeHeight,collapsedSpanIds:io})=>{const so=[],ao=[],lo=new Map,uo=new Set,co=new Set(eo.map(ho=>{var mo;return(mo=ho.context)==null?void 0:mo.span_id}).filter(ho=>!!ho));eo.forEach(ho=>{var mo,vo;(mo=ho.context)!=null&&mo.span_id&&(ho.parent_id&&co.has(ho.parent_id)?lo.has(ho.parent_id)?lo.get(ho.parent_id).push(ho):lo.set(ho.parent_id,[ho]):uo.add((vo=ho.context)==null?void 0:vo.span_id))});const fo=eo.filter(ho=>{var mo,vo;return((mo=ho.context)==null?void 0:mo.span_id)&&uo.has((vo=ho.context)==null?void 0:vo.span_id)}).sort((ho,mo)=>Date.parse(ho.start_time??"")??0-Date.parse(mo.start_time??"")??0);let po=0;return fo.sort(sortTraceByStartTimeAsc).forEach(ho=>{var vo,bo;const mo=[{span:ho,level:0}];for(;mo.length>0;){const{span:xo,level:_o}=mo.pop(),So=oo({span:xo,level:_o,index:po});so.push({id:((vo=xo==null?void 0:xo.context)==null?void 0:vo.span_id)??"",width:no({span:xo,level:_o,index:po}),height:So,x:ro({span:xo,level:_o,index:po}),y:po*(So+TREE_NODE_PADDING),ports:[{id:"port",name:"port",position:[0,.5]}]}),po++,(bo=xo==null?void 0:xo.context)!=null&&bo.span_id&&lo.has(xo.context.span_id)&&!(io!=null&&io.has(xo.context.span_id))&&lo.get(xo.context.span_id).sort(sortTraceByStartTimeDesc).forEach(Eo=>{var ko,wo;!to&&((ko=xo==null?void 0:xo.context)!=null&&ko.span_id)&&((wo=Eo==null?void 0:Eo.context)!=null&&wo.span_id)&&ao.push({id:`${xo.context.span_id}-${Eo.context.span_id}`,source:xo.context.span_id,sourcePortId:"port",target:Eo.context.span_id,targetPortId:"port"}),mo.push({span:Eo,level:_o+1})})}}),{graph:GraphModel.fromJSON({nodes:so,edges:ao}),rootIds:Array.from(uo.values()),parentIdLookUp:lo}},TreeViewEdge=({x1:eo,x2:to,y1:ro,y2:no,model:oo,data:io})=>{if(!io.nodes.get(oo.source)||!io.nodes.get(oo.target))return null;const lo=eo+30,uo=to+20,co=ro+10,fo=`M ${lo} ${co} L ${lo} ${no} L ${uo} ${no}`;return jsxRuntimeExports.jsx("g",{children:jsxRuntimeExports.jsx("path",{d:fo,stroke:tokens.colorNeutralStrokeAccessible,strokeWidth:1,fill:"none"})})};class EdgeConfig{render(to){return jsxRuntimeExports.jsx(TreeViewEdge,{...to})}}const GanttTreeNode=({node:eo})=>{const to=bitset.has(GraphNodeStatus.Selected)(eo.status),ro=bitset.has(GraphNodeStatus.Activated)(eo.status);let no=tokens.colorNeutralStroke1,oo=tokens.colorBrandBackground2,io=1;return to&&(no=tokens.colorBrandStroke2,io=2,oo=tokens.colorBrandBackground2Pressed),ro&&(oo=tokens.colorBrandBackground2Hover),jsxRuntimeExports.jsx("foreignObject",{x:eo.x,y:eo.y,width:eo.width,height:eo.height,style:{border:`${io}px solid ${no}`,backgroundColor:oo,borderRadius:10,paddingLeft:10},children:jsxRuntimeExports.jsx("div",{style:{height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"nowrap",cursor:"pointer"}})})};class GanttNodeConfig{constructor(to){this.options=to}render(to){const ro=this.options.spans.find(no=>{var oo;return((oo=no==null?void 0:no.context)==null?void 0:oo.span_id)===to.model.id});return ro?jsxRuntimeExports.jsx(GanttTreeNode,{node:to.model,span:ro}):null}getMinHeight(){return 0}getMinWidth(){return 0}}const GanttTimeline=({startMs:eo,endMs:to})=>{const ro=to-eo,no=Math.pow(10,Math.floor(Math.log10(ro))-1),oo=Math.ceil(ro/no),io=[],so=[];for(let ao=0;aojsxRuntimeExports.jsx("div",{style:{width:"100%",height:"100%"},children:jsxRuntimeExports.jsx(ReactDagEditor,{state:eo,dispatch:to,style:{height:"100%",flexGrow:1,display:"flex"},children:jsxRuntimeExports.jsx(Graph,{canvasMouseMode:CanvasMouseMode.Pan})})}),GanttView=()=>{var ho;const eo=useSpansOfSelectedTrace(),to=useSetSelectedSpanId(),ro=useSelectedSpanId(),no=mo=>(vo,bo)=>(bo&&bo.type===GraphNodeEvent.Click&&to(bo.node.id),mo(vo,bo)),oo=GraphConfigBuilder.default().registerNode(()=>new GanttNodeConfig({spans:eo})).registerPort(()=>new PortConfig).registerEdge(()=>new EdgeConfig).build();previewMode.add(GraphFeatures.ClickNodeToSelect);const[so,ao]=useGraphReducer({data:GraphModel.empty(),settings:{features:previewMode,graphConfig:oo}},no),lo=((ho=so.viewport.rect)==null?void 0:ho.width)||1200;let uo=Number.MAX_SAFE_INTEGER,co=0;eo.forEach(mo=>{const vo=Date.parse(mo.start_time??"");voco&&(co=bo)});const fo=reactExports.useCallback(({span:mo})=>lo/(co-uo)*(Date.parse(mo.start_time??"")-uo),[co,lo,uo]),po=reactExports.useCallback(({span:mo})=>lo/(co-uo)*(Date.parse(mo.end_time??"")-Date.parse(mo.start_time??"")),[co,lo,uo]);return reactExports.useEffect(()=>{ao({type:GraphCanvasEvent.SetData,data:spansToGraphModel(eo,{isEdgesHidden:!0,getNodeX:fo,getNodeWidth:po,getNodeHeight:()=>24}).graph.selectNodes(mo=>mo.id===ro)})},[]),reactExports.useEffect(()=>{ro&&ao({type:GraphNodeEvent.Select,nodes:[ro]})},[ro]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(GanttTimeline,{startMs:uo,endMs:co}),jsxRuntimeExports.jsx(TreeGraph,{state:so,dispatch:ao})]})},useNodeDetailClasses=makeStyles({wrapper:{display:"flex",flexDirection:"column",height:"100%"},detailHeaderWrapper:{display:"flex",boxSizing:"border-box",width:"100%",...shorthands.padding("12px","12px",0,"12px"),flexDirection:"row",alignItems:"center",...shorthands.gap("12px")},detailHeaderTitle:{flexGrow:1,flexShrink:1,...shorthands.overflow("hidden"),whiteSpace:"nowrap",textOverflow:"ellipsis"},header:{display:"flex",height:"50px",boxSizing:"border-box",alignItems:"center",justifyContent:"flex-start",...shorthands.padding("6px","12px")},headerModalName:{color:tokens.colorNeutralForeground3,fontSize:"12px",fontWeight:600,lineHeight:"16px"},headerSpan:{marginRight:"10px"},headerTitle:{...shorthands.overflow("hidden"),textOverflow:"ellipsis",whiteSpace:"nowrap",marginRight:"4px",...shorthands.flex(0,1,"auto")},headerDivider:{...shorthands.flex("none"),...shorthands.padding(0)},headerRight:{marginLeft:"auto",display:"flex",alignItems:"center",...shorthands.gap("12px")},tabDivider:{...shorthands.flex("none"),...shorthands.padding(0,"12px")},content:{...shorthands.flex(1),...shorthands.padding("12px"),...shorthands.overflow("auto")},panels:{...shorthands.padding(0,"10px"),"& th":{textAlign:"left",...shorthands.padding(0,"30px",0,0)}},cardWrapper:{backgroundColor:tokens.colorNeutralBackground3},cardTitle:{fontSize:"16px",fontWeight:600},innerCardWrapper:{...shorthands.padding("16px"),...shorthands.border("1px","solid",tokens.colorNeutralForeground1),...shorthands.borderRadius("8px")}}),useRetrievalNodeDetailClasses=makeStyles({accordionHeader:{"& button":{...shorthands.padding(0),fontWeight:600}}});var BuildInEventName=(eo=>(eo.exception="exception",eo["function.inputs"]="promptflow.function.inputs",eo["function.output"]="promptflow.function.output",eo["embedding.embeddings"]="promptflow.embedding.embeddings",eo["retrieval.query"]="promptflow.retrieval.query",eo["retrieval.documents"]="promptflow.retrieval.documents",eo["llm.generated_message"]="promptflow.llm.generated_message",eo["prompt.template"]="promptflow.prompt.template",eo))(BuildInEventName||{});const getSpanType=eo=>{var ro;const to=(ro=eo==null?void 0:eo.attributes)==null?void 0:ro.span_type;return to==null?void 0:to.split(".").pop()},useLoadSpanEvents=(eo,to,ro)=>{const no=useTraceViewModel(),oo=useSpanEventsLoadStatus();return reactExports.useCallback(({onCompleted:io,forceRefresh:so})=>{var lo,uo,co,fo;if(!((lo=eo==null?void 0:eo.events)!=null&&lo.length)||!no.isLazyLoadSpan){io();return}if(ro!==void 0){const po=(uo=eo.external_event_data_uris)==null?void 0:uo[ro];if(!po){io();return}const ho=`${(co=eo.context)==null?void 0:co.span_id}__${po}`;if(!so&&oo.has(ho)){io(oo.get(ho)==="error"?new Error("load error"):void 0);return}no.fetchSpanEvent(po).then(mo=>{var vo;mo.status==="error"?(oo.set(ho,"error"),io(new Error("load error"))):((vo=eo.events)!=null&&vo[ro]&&(eo.events[ro].attributes={...eo.events[ro].attributes,payload:mo.data??""}),oo.set(ho,"success"),io())});return}const ao=`${(fo=eo.context)==null?void 0:fo.span_id}__${to}`;if(!so&&oo.has(ao)){io(oo.get(ao)==="error"?new Error("load error"):void 0);return}Promise.all(eo.events.map((po,ho)=>{var mo,vo;if(po.name===to){const bo=(mo=eo.external_event_data_uris)==null?void 0:mo[ho];if(!bo)return Promise.resolve({status:"success"});const xo=`${(vo=eo.context)==null?void 0:vo.span_id}__${bo}`;return oo.get(xo)==="success"?Promise.resolve({status:"success"}):!so&&oo.has(xo)?Promise.resolve({status:oo.get(xo)==="error"?"error":"success"}):no.fetchSpanEvent(bo).then(_o=>{var So;return _o.status==="error"?oo.set(xo,"error"):((So=eo.events)!=null&&So[ho]&&(eo.events[ho].attributes={...eo.events[ho].attributes,payload:_o.data??""}),oo.set(xo,"success")),_o})}}).filter(po=>po!==void 0)).then(po=>{if(po.some(ho=>(ho==null?void 0:ho.status)==="error")){oo.set(ao,"error"),io(new Error("load error"));return}oo.set(ao,"success"),io()})},[no,eo,to,ro,oo])},useSpanEventsWithPayload=(eo,to)=>{var ro;return((ro=eo==null?void 0:eo.events)==null?void 0:ro.filter(no=>no.name===to).map(no=>{var oo;return{...no,attributes:safeJSONParse(((oo=no.attributes)==null?void 0:oo.payload)??"")}}))??[]},TraceViewThemeContext=reactExports.createContext(!1),useIsDark=()=>reactExports.useContext(TraceViewThemeContext);function isObject(eo){return Object.prototype.toString.call(eo)==="[object Object]"}function objectSize(eo){return Array.isArray(eo)?eo.length:isObject(eo)?Object.keys(eo).length:0}function stringifyForCopying(eo,to){if(typeof eo=="string")return eo;try{return JSON.stringify(eo,(ro,no)=>{switch(typeof no){case"bigint":return String(no)+"n";case"number":case"boolean":case"object":case"string":return no;default:return String(no)}},to)}catch(ro){return`${ro.name}: ${ro.message}`||"JSON.stringify failed"}}function isCollapsed(eo,to,ro,no,oo,io){if(io&&io.collapsed!==void 0)return!!io.collapsed;if(typeof no=="boolean")return no;if(typeof no=="number"&&to>no)return!0;const so=objectSize(eo);if(typeof no=="function"){const ao=safeCall(no,[{node:eo,depth:to,indexOrName:ro,size:so}]);if(typeof ao=="boolean")return ao}return!!(Array.isArray(eo)&&so>oo||isObject(eo)&&so>oo)}function isCollapsed_largeArray(eo,to,ro,no,oo,io){if(io&&io.collapsed!==void 0)return!!io.collapsed;if(typeof no=="boolean")return no;if(typeof no=="number"&&to>no)return!0;const so=Math.ceil(eo.length/100);if(typeof no=="function"){const ao=safeCall(no,[{node:eo,depth:to,indexOrName:ro,size:so}]);if(typeof ao=="boolean")return ao}return!!(Array.isArray(eo)&&so>oo||isObject(eo)&&so>oo)}function ifDisplay(eo,to,ro){return typeof eo=="boolean"?eo:!!(typeof eo=="number"&&to>eo||eo==="collapsed"&&ro||eo==="expanded"&&!ro)}function safeCall(eo,to){try{return eo(...to)}catch(ro){reportError(ro)}}function editableAdd(eo){if(eo===!0||isObject(eo)&&eo.add===!0)return!0}function editableEdit(eo){if(eo===!0||isObject(eo)&&eo.edit===!0)return!0}function editableDelete(eo){if(eo===!0||isObject(eo)&&eo.delete===!0)return!0}function isReactComponent(eo){return typeof eo=="function"}function customAdd(eo){return!eo||eo.add===void 0||!!eo.add}function customEdit(eo){return!eo||eo.edit===void 0||!!eo.edit}function customDelete(eo){return!eo||eo.delete===void 0||!!eo.delete}function customCopy(eo){return!eo||eo.enableClipboard===void 0||!!eo.enableClipboard}function customMatchesURL(eo){return!eo||eo.matchesURL===void 0||!!eo.matchesURL}function resolveEvalFailedNewValue(eo,to){return eo==="string"?to.trim().replace(/^\"([\s\S]+?)\"$/,"$1"):to}var _path$8;function _extends$8(){return _extends$8=Object.assign?Object.assign.bind():function(eo){for(var to=1;to{oo.stopPropagation();const io=to(eo);typeof io=="string"&&io&&navigator.clipboard.writeText(io),no(!0),setTimeout(()=>no(!1),3e3)},className:"json-view--copy"})}function NameValue({indexOrName:eo,value:to,depth:ro,parent:no,deleteHandle:oo,editHandle:io}){return jsxRuntimeExports.jsxs("div",Object.assign({className:"json-view--pair"},{children:[jsxRuntimeExports.jsx("span",Object.assign({className:typeof eo=="number"?"json-view--index":"json-view--property"},{children:eo})),":"," ",jsxRuntimeExports.jsx(JsonNode,{node:to,depth:ro+1,deleteHandle:oo,editHandle:io,parent:no,indexOrName:eo})]}))}var _path$5,_path2$4;function _extends$5(){return _extends$5=Object.assign?Object.assign.bind():function(eo){for(var to=1;to{eo[_o]=So,uo&&uo({newValue:So,oldValue:Eo,depth:ro,src:lo,indexOrName:_o,parentType:"array"}),co&&co({type:"edit",depth:ro,src:lo,indexOrName:_o,parentType:"array"}),fo()},[to,uo,co,fo]),bo=_o=>{eo.splice(_o,1),fo()},xo=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!ho&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>mo(!0),className:"jv-size-chevron"},{children:[ifDisplay(po,ro,ho)&&jsxRuntimeExports.jsxs("span",Object.assign({className:"jv-size"},{children:[objectSize(to)," Items"]})),jsxRuntimeExports.jsx(SvgAngleDown,{className:"jv-chevron"})]})),!ho&&ao&&customCopy(io)&&jsxRuntimeExports.jsx(CopyButton$1,{node:to})]});return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("span",{children:"["}),xo,ho?jsxRuntimeExports.jsxs("button",Object.assign({onClick:()=>mo(!1),className:"jv-button"},{children:[so," ... ",so+to.length-1]})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:to.map((_o,So)=>jsxRuntimeExports.jsx(NameValue,{indexOrName:So+so,value:_o,depth:ro,parent:to,deleteHandle:bo,editHandle:vo},String(no)+String(So)))})),jsxRuntimeExports.jsx("span",{children:"]"})]})}function LargeArray({node:eo,depth:to,deleteHandle:ro,indexOrName:no,customOptions:oo}){const io=[];for(let Bo=0;Bo{_o(isCollapsed_largeArray(eo,to,no,so,lo,oo))},[so,lo]);const[So,Eo]=reactExports.useState(!1),ko=()=>{Eo(!1),ro&&ro(no),co&&co({value:eo,depth:to,src:fo,indexOrName:no,parentType:"array"}),mo&&mo({type:"delete",depth:to,src:fo,indexOrName:no,parentType:"array"})},[wo,Co]=reactExports.useState(!1),Ro=()=>{const Bo=eo;Bo.push(null),po&&po({indexOrName:Bo.length-1,depth:to,src:fo,parentType:"array"}),mo&&mo({type:"add",indexOrName:Bo.length-1,depth:to,src:fo,parentType:"array"}),vo()},Ao=So||wo,Io=()=>{Eo(!1),Co(!1)},$o=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!xo&&!Ao&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>_o(!0),className:"jv-size-chevron"},{children:[ifDisplay(bo,to,xo)&&jsxRuntimeExports.jsxs("span",Object.assign({className:"jv-size"},{children:[eo.length," Items"]})),jsxRuntimeExports.jsx(SvgAngleDown,{className:"jv-chevron"})]})),Ao&&jsxRuntimeExports.jsx(SvgDone,{className:"json-view--edit",style:{display:"inline-block"},onClick:wo?Ro:ko}),Ao&&jsxRuntimeExports.jsx(SvgCancel,{className:"json-view--edit",style:{display:"inline-block"},onClick:Io}),!xo&&!Ao&&ao&&customCopy(oo)&&jsxRuntimeExports.jsx(CopyButton$1,{node:eo}),!xo&&!Ao&&editableAdd(uo)&&customAdd(oo)&&jsxRuntimeExports.jsx(SvgAddSquare,{className:"json-view--edit",onClick:()=>{Ro()}}),!xo&&!Ao&&editableDelete(uo)&&customDelete(oo)&&ro&&jsxRuntimeExports.jsx(SvgTrash,{className:"json-view--edit",onClick:()=>Eo(!0)})]});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"["}),$o,xo?jsxRuntimeExports.jsx("button",Object.assign({onClick:()=>_o(!1),className:"jv-button"},{children:"..."})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:io.map((Bo,Mo)=>jsxRuntimeExports.jsx(LargeArrayNode,{originNode:eo,node:Bo,depth:to,index:Mo,startIndex:Mo*100},String(no)+String(Mo)))})),jsxRuntimeExports.jsx("span",{children:"]"}),xo&&ifDisplay(bo,to,xo)&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>_o(!1),className:"jv-size"},{children:[eo.length," Items"]}))]})}function ObjectNode({node:eo,depth:to,indexOrName:ro,deleteHandle:no,customOptions:oo}){const{collapsed:io,enableClipboard:so,ignoreLargeArray:ao,collapseObjectsAfterLength:lo,editable:uo,onDelete:co,src:fo,onAdd:po,onEdit:ho,onChange:mo,forceUpdate:vo,displaySize:bo}=reactExports.useContext(JsonViewContext);if(!ao&&Array.isArray(eo)&&eo.length>100)return jsxRuntimeExports.jsx(LargeArray,{node:eo,depth:to,indexOrName:ro,deleteHandle:no,customOptions:oo});const xo=isObject(eo),[_o,So]=reactExports.useState(isCollapsed(eo,to,ro,io,lo,oo));reactExports.useEffect(()=>{So(isCollapsed(eo,to,ro,io,lo,oo))},[io,lo]);const Eo=reactExports.useCallback((Fo,Go,qo)=>{Array.isArray(eo)?eo[+Fo]=Go:eo&&(eo[Fo]=Go),ho&&ho({newValue:Go,oldValue:qo,depth:to,src:fo,indexOrName:Fo,parentType:xo?"object":"array"}),mo&&mo({type:"edit",depth:to,src:fo,indexOrName:Fo,parentType:xo?"object":"array"}),vo()},[eo,ho,mo,vo]),ko=Fo=>{Array.isArray(eo)?eo.splice(+Fo,1):eo&&delete eo[Fo],vo()},[wo,Co]=reactExports.useState(!1),Ro=()=>{Co(!1),no&&no(ro),co&&co({value:eo,depth:to,src:fo,indexOrName:ro,parentType:xo?"object":"array"}),mo&&mo({type:"delete",depth:to,src:fo,indexOrName:ro,parentType:xo?"object":"array"})},[Ao,Io]=reactExports.useState(!1),$o=reactExports.useRef(null),Bo=()=>{var Fo;if(xo){const Go=(Fo=$o.current)===null||Fo===void 0?void 0:Fo.value;Go&&(eo[Go]=null,$o.current&&($o.current.value=""),Io(!1),po&&po({indexOrName:Go,depth:to,src:fo,parentType:"object"}),mo&&mo({type:"add",indexOrName:Go,depth:to,src:fo,parentType:"object"}))}else if(Array.isArray(eo)){const Go=eo;Go.push(null),po&&po({indexOrName:Go.length-1,depth:to,src:fo,parentType:"array"}),mo&&mo({type:"add",indexOrName:Go.length-1,depth:to,src:fo,parentType:"array"})}vo()},Mo=Fo=>{Fo.key==="Enter"?(Fo.preventDefault(),Bo()):Fo.key==="Escape"&&jo()},Ho=wo||Ao,jo=()=>{Co(!1),Io(!1)},Oo=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!_o&&!Ho&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>So(!0),className:"jv-size-chevron"},{children:[ifDisplay(bo,to,_o)&&jsxRuntimeExports.jsxs("span",Object.assign({className:"jv-size"},{children:[objectSize(eo)," Items"]})),jsxRuntimeExports.jsx(SvgAngleDown,{className:"jv-chevron"})]})),Ao&&xo&&jsxRuntimeExports.jsx("input",{className:"json-view--input",placeholder:"property",ref:$o,onKeyDown:Mo}),Ho&&jsxRuntimeExports.jsx(SvgDone,{className:"json-view--edit",style:{display:"inline-block"},onClick:Ao?Bo:Ro}),Ho&&jsxRuntimeExports.jsx(SvgCancel,{className:"json-view--edit",style:{display:"inline-block"},onClick:jo}),!_o&&!Ho&&so&&customCopy(oo)&&jsxRuntimeExports.jsx(CopyButton$1,{node:eo}),!_o&&!Ho&&editableAdd(uo)&&customAdd(oo)&&jsxRuntimeExports.jsx(SvgAddSquare,{className:"json-view--edit",onClick:()=>{xo?(Io(!0),setTimeout(()=>{var Fo;return(Fo=$o.current)===null||Fo===void 0?void 0:Fo.focus()})):Bo()}}),!_o&&!Ho&&editableDelete(uo)&&customDelete(oo)&&no&&jsxRuntimeExports.jsx(SvgTrash,{className:"json-view--edit",onClick:()=>Co(!0)})]});return Array.isArray(eo)?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"["}),Oo,_o?jsxRuntimeExports.jsx("button",Object.assign({onClick:()=>So(!1),className:"jv-button"},{children:"..."})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:eo.map((Fo,Go)=>jsxRuntimeExports.jsx(NameValue,{indexOrName:Go,value:Fo,depth:to,parent:eo,deleteHandle:ko,editHandle:Eo},String(ro)+String(Go)))})),jsxRuntimeExports.jsx("span",{children:"]"}),_o&&ifDisplay(bo,to,_o)&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>So(!1),className:"jv-size"},{children:[objectSize(eo)," Items"]}))]}):xo?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"{"}),Oo,_o?jsxRuntimeExports.jsx("button",Object.assign({onClick:()=>So(!1),className:"jv-button"},{children:"..."})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:Object.entries(eo).map(([Fo,Go])=>jsxRuntimeExports.jsx(NameValue,{indexOrName:Fo,value:Go,depth:to,parent:eo,deleteHandle:ko,editHandle:Eo},String(ro)+String(Fo)))})),jsxRuntimeExports.jsx("span",{children:"}"}),_o&&ifDisplay(bo,to,_o)&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>So(!1),className:"jv-size"},{children:[objectSize(eo)," Items"]}))]}):null}const LongString=React.forwardRef(({str:eo,className:to,ctrlClick:ro},no)=>{let{collapseStringMode:oo,collapseStringsAfterLength:io,customizeCollapseStringUI:so}=reactExports.useContext(JsonViewContext);const[ao,lo]=reactExports.useState(!0),uo=reactExports.useRef(null);io=io>0?io:0;const co=eo.replace(/\s+/g," "),fo=typeof so=="function"?so(co,ao):typeof so=="string"?so:"...",po=ho=>{var mo;if((ho.ctrlKey||ho.metaKey)&&ro)ro(ho);else{const vo=window.getSelection();if(vo&&vo.anchorOffset!==vo.focusOffset&&((mo=vo.anchorNode)===null||mo===void 0?void 0:mo.parentElement)===uo.current)return;lo(!ao)}};if(eo.length<=io)return jsxRuntimeExports.jsxs("span",Object.assign({ref:uo,className:to,onClick:ro},{children:['"',eo,'"']}));if(oo==="address")return eo.length<=10?jsxRuntimeExports.jsxs("span",Object.assign({ref:uo,className:to,onClick:ro},{children:['"',eo,'"']})):jsxRuntimeExports.jsxs("span",Object.assign({ref:uo,onClick:po,className:to+" cursor-pointer"},{children:['"',ao?[co.slice(0,6),fo,co.slice(-4)]:eo,'"']}));if(oo==="directly")return jsxRuntimeExports.jsxs("span",Object.assign({ref:uo,onClick:po,className:to+" cursor-pointer"},{children:['"',ao?[co.slice(0,io),fo]:eo,'"']}));if(oo==="word"){let ho=io,mo=io+1,vo=co,bo=1;for(;;){if(/\W/.test(eo[ho])){vo=eo.slice(0,ho);break}if(/\W/.test(eo[mo])){vo=eo.slice(0,mo);break}if(bo===6){vo=eo.slice(0,io);break}bo++,ho--,mo++}return jsxRuntimeExports.jsxs("span",Object.assign({ref:uo,onClick:po,className:to+" cursor-pointer"},{children:['"',ao?[vo,fo]:eo,'"']}))}return jsxRuntimeExports.jsxs("span",Object.assign({ref:uo,className:to},{children:['"',eo,'"']}))});var _path$1;function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(eo){for(var to=1;to{setEditing(!0),setTimeout(()=>{var eo,to;(eo=window.getSelection())===null||eo===void 0||eo.selectAllChildren(valueRef.current),(to=valueRef.current)===null||to===void 0||to.focus()})},done=reactExports.useCallback(()=>{let newValue=valueRef.current.innerText;try{(newValue==="{}"||newValue==="[]")&&(newValue=`(${newValue})`);const evalValue=eval(newValue);editHandle&&editHandle(indexOrName,evalValue,node)}catch(eo){const to=resolveEvalFailedNewValue(type,newValue);editHandle&&editHandle(indexOrName,to,node)}setEditing(!1)},[editHandle]),cancel=()=>{setEditing(!1),setDeleting(!1)},deleteHandle=()=>{setDeleting(!1),_deleteHandle&&_deleteHandle(indexOrName),onDelete&&onDelete({value:node,depth,src,indexOrName,parentType:Array.isArray(parent)?"array":"object"}),onChange&&onChange({depth,src,indexOrName,parentType:Array.isArray(parent)?"array":"object",type:"delete"})},handleKeyDown=reactExports.useCallback(eo=>{eo.key==="Enter"?(eo.preventDefault(),done()):eo.key==="Escape"&&cancel()},[done]),isEditing=editing||deleting,ctrlClick=!isEditing&&editableEdit(editable)&&customEdit(customReturn)&&editHandle?eo=>{(eo.ctrlKey||eo.metaKey)&&edit()}:void 0,Icons=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[isEditing&&jsxRuntimeExports.jsx(SvgDone,{className:"json-view--edit",style:{display:"inline-block"},onClick:deleting?deleteHandle:done}),isEditing&&jsxRuntimeExports.jsx(SvgCancel,{className:"json-view--edit",style:{display:"inline-block"},onClick:cancel}),!isEditing&&enableClipboard&&customCopy(customReturn)&&jsxRuntimeExports.jsx(CopyButton$1,{node}),!isEditing&&matchesURL&&type==="string"&&urlRegExp.test(node)&&customMatchesURL(customReturn)&&jsxRuntimeExports.jsx("a",Object.assign({href:node,target:"_blank",className:"json-view--link"},{children:jsxRuntimeExports.jsx(SvgLink,{})})),!isEditing&&editableEdit(editable)&&customEdit(customReturn)&&editHandle&&jsxRuntimeExports.jsx(SvgEdit,{className:"json-view--edit",onClick:edit}),!isEditing&&editableDelete(editable)&&customDelete(customReturn)&&_deleteHandle&&jsxRuntimeExports.jsx(SvgTrash,{className:"json-view--edit",onClick:()=>setDeleting(!0)})]});let className="json-view--string";switch(typeof(customReturn==null?void 0:customReturn.className)=="string"&&(className+=" "+customReturn.className),type){case"number":case"bigint":className="json-view--number";break;case"boolean":className="json-view--boolean";break;case"object":className="json-view--null";break}deleting&&(className+=" json-view--deleting");let displayValue=String(node);type==="bigint"&&(displayValue+="n");const EditingElement=reactExports.useMemo(()=>jsxRuntimeExports.jsx("span",{contentEditable:!0,className,dangerouslySetInnerHTML:{__html:type==="string"?`"${displayValue}"`:displayValue},ref:valueRef,onKeyDown:handleKeyDown}),[displayValue,type,handleKeyDown]);return type==="string"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[editing?EditingElement:node.length>collapseStringsAfterLength?jsxRuntimeExports.jsx(LongString,{str:node,ref:valueRef,className,ctrlClick}):jsxRuntimeExports.jsxs("span",Object.assign({className,onClick:ctrlClick},{children:['"',displayValue,'"']})),Icons]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[editing?EditingElement:jsxRuntimeExports.jsx("span",Object.assign({className,onClick:ctrlClick},{children:displayValue})),Icons]})}}const defaultURLRegExp=/^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^&*?.\s])?\.)+[a-z]{2,6}\/?/,JsonViewContext=reactExports.createContext({src:void 0,collapseStringsAfterLength:99,collapseStringMode:"directly",customizeCollapseStringUI:void 0,collapseObjectsAfterLength:20,collapsed:!1,enableClipboard:!0,editable:!1,onEdit:void 0,onDelete:void 0,onAdd:void 0,onChange:void 0,forceUpdate:()=>{},customizeNode:void 0,customizeCopy:()=>{},displaySize:void 0,matchesURL:!1,urlRegExp:defaultURLRegExp,ignoreLargeArray:!1});function JsonView({src:eo,collapseStringsAfterLength:to=99,collapseStringMode:ro="directly",customizeCollapseStringUI:no,collapseObjectsAfterLength:oo=99,collapsed:io,enableClipboard:so=!0,editable:ao=!1,onEdit:lo,onDelete:uo,onAdd:co,onChange:fo,dark:po=!1,theme:ho="default",customizeNode:mo,customizeCopy:vo=stringifyForCopying,displaySize:bo,style:xo,className:_o,matchesURL:So=!1,urlRegExp:Eo=defaultURLRegExp,ignoreLargeArray:ko=!1}){const[wo,Co]=reactExports.useState(0),Ro=reactExports.useCallback(()=>Co($o=>++$o),[]),[Ao,Io]=reactExports.useState(eo);return reactExports.useEffect(()=>Io(eo),[eo]),jsxRuntimeExports.jsx(JsonViewContext.Provider,Object.assign({value:{src:Ao,collapseStringsAfterLength:to,collapseStringMode:ro,customizeCollapseStringUI:no,collapseObjectsAfterLength:oo,collapsed:io,enableClipboard:so,editable:ao,onEdit:lo,onDelete:uo,onAdd:co,onChange:fo,forceUpdate:Ro,customizeNode:mo,customizeCopy:vo,displaySize:bo,matchesURL:So,urlRegExp:Eo,ignoreLargeArray:ko}},{children:jsxRuntimeExports.jsx("code",Object.assign({className:"json-view"+(po?" dark":"")+(ho&&ho!=="default"?" json-view_"+ho:"")+(_o?" "+_o:""),style:xo},{children:jsxRuntimeExports.jsx(JsonNode,{node:Ao,depth:1,editHandle:($o,Bo,Mo)=>{Io(Bo),lo&&lo({newValue:Bo,oldValue:Mo,depth:1,src:Ao,indexOrName:$o,parentType:null}),fo&&fo({type:"edit",depth:1,src:Ao,indexOrName:$o,parentType:null})},deleteHandle:()=>{Io(void 0),uo&&uo({value:Ao,depth:1,src:Ao,indexOrName:"",parentType:null}),fo&&fo({depth:1,src:Ao,indexOrName:"",parentType:null,type:"delete"})}})}))}))}const JsonViewer=eo=>{const{useCustomCollapse:to=!0,...ro}=eo;return jsxRuntimeExports.jsx(JsonView,{customizeCollapseStringUI:to?()=>jsxRuntimeExports.jsx(ExpandButton,{}):void 0,...ro})},ExpandButton=()=>{const eo=useClasses$k();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["...",jsxRuntimeExports.jsxs("div",{className:eo.btn,children:[jsxRuntimeExports.jsx(ChevronDown16Regular,{className:eo.icon}),jsxRuntimeExports.jsx("span",{className:eo.text,children:"view all"})]})]})},useClasses$k=makeStyles({btn:{display:"inline-flex",pointer:"cursor",alignItems:"center",...shorthands.padding(0),paddingLeft:"4px",...shorthands.margin(0),fontWeight:400,color:"#A3BEE9"},icon:{height:"12px",width:"12px",...shorthands.padding(0),...shorthands.margin(0)},text:{fontSize:"12px",...shorthands.padding(0),...shorthands.margin(0)}}),JsonNodeCard=({title:eo,src:to,wrapperStyle:ro={},status:no=ViewStatus.loaded,errorTip:oo=null,jsonViewerProps:io={}})=>{let so="";if(typeof to=="string")try{so=JSON.parse(to)}catch{so=to}else typeof to=="object"&&(so=to);const ao=useIsDark();return jsxRuntimeExports.jsxs(Card,{style:{marginBottom:12,...ro},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:eo})})}),no===ViewStatus.loading&&jsxRuntimeExports.jsx(Spinner,{size:"tiny"}),no===ViewStatus.loaded&&jsxRuntimeExports.jsx(JsonViewer,{src:so,theme:"vscode",dark:ao,...io}),no===ViewStatus.error&&oo]})},DefaultNodeInfo=()=>{var mo,vo,bo,xo;const eo=useSelectedSpan(),to=(mo=getSpanType(eo))==null?void 0:mo.toLocaleLowerCase(),ro=useLocStrings(),[no,oo]=reactExports.useState(ViewStatus.loading),[io,so]=reactExports.useState(ViewStatus.loading),ao=useSpanEventsWithPayload(eo,BuildInEventName["function.inputs"]),lo=useSpanEventsWithPayload(eo,BuildInEventName["llm.generated_message"]),uo=useLoadSpanEvents(eo,BuildInEventName["function.inputs"]),co=useLoadSpanEvents(eo,BuildInEventName["llm.generated_message"]);let fo=useSpanEventsWithPayload(eo,BuildInEventName["function.output"]),po=useLoadSpanEvents(eo,BuildInEventName["function.output"]);to==="llm"&&fo.length===0&&(fo=lo,po=co);let ho=(vo=eo==null?void 0:eo.attributes)==null?void 0:vo.output;return to==="llm"&&(ho=ho??((bo=eo==null?void 0:eo.attributes)==null?void 0:bo["llm.generated_message"])),reactExports.useEffect(()=>{uo({onCompleted:_o=>{oo(_o?ViewStatus.error:ViewStatus.loaded)}}),po({onCompleted:_o=>{so(_o?ViewStatus.error:ViewStatus.loaded)}})},[]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[ao.length>0?jsxRuntimeExports.jsx(JsonNodeCard,{title:ro.Input,status:no,src:ao.length===1?ao[0].attributes:ao,errorTip:jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{oo(ViewStatus.loading),uo({onCompleted:_o=>{oo(_o?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})}):jsxRuntimeExports.jsx(JsonNodeCard,{title:ro.Input,src:(xo=eo==null?void 0:eo.attributes)==null?void 0:xo.inputs}),fo.length>0?jsxRuntimeExports.jsx(JsonNodeCard,{title:ro.Output,status:io,src:fo.length===1?fo[0].attributes:fo,errorTip:jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{so(ViewStatus.loading),po({onCompleted:_o=>{so(_o?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})}):jsxRuntimeExports.jsx(JsonNodeCard,{title:ro.Output,src:ho})]})},DefaultNodeLoadError=({onRetry:eo})=>{const to=useLocStrings();return jsxRuntimeExports.jsx(Button$2,{appearance:"transparent",icon:jsxRuntimeExports.jsx(ErrorCircle16Filled,{style:{color:tokens.colorStatusDangerForeground1}}),style:{fontWeight:400},onClick:eo,children:to["Failed to load, click to try again"]})},BlockquoteType="blockquote",BreakType="break",CodeType="code",DefinitionType="definition",DeleteType="delete",EmphasisType="emphasis",HeadingType="heading",HtmlType="html";var HtmlContentType;(function(eo){eo.CDATA="cdata",eo.Closing="closing",eo.Comment="comment",eo.Declaration="declaration",eo.Instruction="instruction",eo.Open="open"})(HtmlContentType||(HtmlContentType={}));const ImageReferenceType="imageReference",ImageType$1="image",InlineCodeType="inlineCode",LinkReferenceType="linkReference",LinkType="link",ListItemType="listItem";var TaskStatus;(function(eo){eo.TODO="todo",eo.DOING="doing",eo.DONE="done"})(TaskStatus||(TaskStatus={}));const ListType="list",ParagraphType$1="paragraph",StrongType="strong",TableType="table",TextType$1="text",ThematicBreakType="thematicBreak";var AsciiCodePoint;(function(eo){eo[eo.NUL=0]="NUL",eo[eo.SOH=1]="SOH",eo[eo.STX=2]="STX",eo[eo.ETX=3]="ETX",eo[eo.EOT=4]="EOT",eo[eo.ENQ=5]="ENQ",eo[eo.ACK=6]="ACK",eo[eo.BEL=7]="BEL",eo[eo.BS=8]="BS",eo[eo.HT=9]="HT",eo[eo.LF=10]="LF",eo[eo.VT=11]="VT",eo[eo.FF=12]="FF",eo[eo.CR=13]="CR",eo[eo.SO=14]="SO",eo[eo.SI=15]="SI",eo[eo.DLE=16]="DLE",eo[eo.DC1=17]="DC1",eo[eo.DC2=18]="DC2",eo[eo.DC3=19]="DC3",eo[eo.DC4=20]="DC4",eo[eo.NAK=21]="NAK",eo[eo.SYN=22]="SYN",eo[eo.ETB=23]="ETB",eo[eo.CAN=24]="CAN",eo[eo.EM=25]="EM",eo[eo.SUB=26]="SUB",eo[eo.ESC=27]="ESC",eo[eo.FS=28]="FS",eo[eo.GS=29]="GS",eo[eo.RS=30]="RS",eo[eo.US=31]="US",eo[eo.SPACE=32]="SPACE",eo[eo.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",eo[eo.DOUBLE_QUOTE=34]="DOUBLE_QUOTE",eo[eo.NUMBER_SIGN=35]="NUMBER_SIGN",eo[eo.DOLLAR_SIGN=36]="DOLLAR_SIGN",eo[eo.PERCENT_SIGN=37]="PERCENT_SIGN",eo[eo.AMPERSAND=38]="AMPERSAND",eo[eo.SINGLE_QUOTE=39]="SINGLE_QUOTE",eo[eo.OPEN_PARENTHESIS=40]="OPEN_PARENTHESIS",eo[eo.CLOSE_PARENTHESIS=41]="CLOSE_PARENTHESIS",eo[eo.ASTERISK=42]="ASTERISK",eo[eo.PLUS_SIGN=43]="PLUS_SIGN",eo[eo.COMMA=44]="COMMA",eo[eo.MINUS_SIGN=45]="MINUS_SIGN",eo[eo.DOT=46]="DOT",eo[eo.SLASH=47]="SLASH",eo[eo.DIGIT0=48]="DIGIT0",eo[eo.DIGIT1=49]="DIGIT1",eo[eo.DIGIT2=50]="DIGIT2",eo[eo.DIGIT3=51]="DIGIT3",eo[eo.DIGIT4=52]="DIGIT4",eo[eo.DIGIT5=53]="DIGIT5",eo[eo.DIGIT6=54]="DIGIT6",eo[eo.DIGIT7=55]="DIGIT7",eo[eo.DIGIT8=56]="DIGIT8",eo[eo.DIGIT9=57]="DIGIT9",eo[eo.COLON=58]="COLON",eo[eo.SEMICOLON=59]="SEMICOLON",eo[eo.OPEN_ANGLE=60]="OPEN_ANGLE",eo[eo.EQUALS_SIGN=61]="EQUALS_SIGN",eo[eo.CLOSE_ANGLE=62]="CLOSE_ANGLE",eo[eo.QUESTION_MARK=63]="QUESTION_MARK",eo[eo.AT_SIGN=64]="AT_SIGN",eo[eo.UPPERCASE_A=65]="UPPERCASE_A",eo[eo.UPPERCASE_B=66]="UPPERCASE_B",eo[eo.UPPERCASE_C=67]="UPPERCASE_C",eo[eo.UPPERCASE_D=68]="UPPERCASE_D",eo[eo.UPPERCASE_E=69]="UPPERCASE_E",eo[eo.UPPERCASE_F=70]="UPPERCASE_F",eo[eo.UPPERCASE_G=71]="UPPERCASE_G",eo[eo.UPPERCASE_H=72]="UPPERCASE_H",eo[eo.UPPERCASE_I=73]="UPPERCASE_I",eo[eo.UPPERCASE_J=74]="UPPERCASE_J",eo[eo.UPPERCASE_K=75]="UPPERCASE_K",eo[eo.UPPERCASE_L=76]="UPPERCASE_L",eo[eo.UPPERCASE_M=77]="UPPERCASE_M",eo[eo.UPPERCASE_N=78]="UPPERCASE_N",eo[eo.UPPERCASE_O=79]="UPPERCASE_O",eo[eo.UPPERCASE_P=80]="UPPERCASE_P",eo[eo.UPPERCASE_Q=81]="UPPERCASE_Q",eo[eo.UPPERCASE_R=82]="UPPERCASE_R",eo[eo.UPPERCASE_S=83]="UPPERCASE_S",eo[eo.UPPERCASE_T=84]="UPPERCASE_T",eo[eo.UPPERCASE_U=85]="UPPERCASE_U",eo[eo.UPPERCASE_V=86]="UPPERCASE_V",eo[eo.UPPERCASE_W=87]="UPPERCASE_W",eo[eo.UPPERCASE_X=88]="UPPERCASE_X",eo[eo.UPPERCASE_Y=89]="UPPERCASE_Y",eo[eo.UPPERCASE_Z=90]="UPPERCASE_Z",eo[eo.OPEN_BRACKET=91]="OPEN_BRACKET",eo[eo.BACKSLASH=92]="BACKSLASH",eo[eo.CLOSE_BRACKET=93]="CLOSE_BRACKET",eo[eo.CARET=94]="CARET",eo[eo.UNDERSCORE=95]="UNDERSCORE",eo[eo.BACKTICK=96]="BACKTICK",eo[eo.LOWERCASE_A=97]="LOWERCASE_A",eo[eo.LOWERCASE_B=98]="LOWERCASE_B",eo[eo.LOWERCASE_C=99]="LOWERCASE_C",eo[eo.LOWERCASE_D=100]="LOWERCASE_D",eo[eo.LOWERCASE_E=101]="LOWERCASE_E",eo[eo.LOWERCASE_F=102]="LOWERCASE_F",eo[eo.LOWERCASE_G=103]="LOWERCASE_G",eo[eo.LOWERCASE_H=104]="LOWERCASE_H",eo[eo.LOWERCASE_I=105]="LOWERCASE_I",eo[eo.LOWERCASE_J=106]="LOWERCASE_J",eo[eo.LOWERCASE_K=107]="LOWERCASE_K",eo[eo.LOWERCASE_L=108]="LOWERCASE_L",eo[eo.LOWERCASE_M=109]="LOWERCASE_M",eo[eo.LOWERCASE_N=110]="LOWERCASE_N",eo[eo.LOWERCASE_O=111]="LOWERCASE_O",eo[eo.LOWERCASE_P=112]="LOWERCASE_P",eo[eo.LOWERCASE_Q=113]="LOWERCASE_Q",eo[eo.LOWERCASE_R=114]="LOWERCASE_R",eo[eo.LOWERCASE_S=115]="LOWERCASE_S",eo[eo.LOWERCASE_T=116]="LOWERCASE_T",eo[eo.LOWERCASE_U=117]="LOWERCASE_U",eo[eo.LOWERCASE_V=118]="LOWERCASE_V",eo[eo.LOWERCASE_W=119]="LOWERCASE_W",eo[eo.LOWERCASE_X=120]="LOWERCASE_X",eo[eo.LOWERCASE_Y=121]="LOWERCASE_Y",eo[eo.LOWERCASE_Z=122]="LOWERCASE_Z",eo[eo.OPEN_BRACE=123]="OPEN_BRACE",eo[eo.VERTICAL_SLASH=124]="VERTICAL_SLASH",eo[eo.CLOSE_BRACE=125]="CLOSE_BRACE",eo[eo.TILDE=126]="TILDE",eo[eo.DELETE=127]="DELETE"})(AsciiCodePoint||(AsciiCodePoint={}));const foldingCaseCodeMap={µ:"μ",À:"à",Á:"á",Â:"â",Ã:"ã",Ä:"ä",Å:"å",Æ:"æ",Ç:"ç",È:"è",É:"é",Ê:"ê",Ë:"ë",Ì:"ì",Í:"í",Î:"î",Ï:"ï",Ð:"ð",Ñ:"ñ",Ò:"ò",Ó:"ó",Ô:"ô",Õ:"õ",Ö:"ö",Ø:"ø",Ù:"ù",Ú:"ú",Û:"û",Ü:"ü",Ý:"ý",Þ:"þ",Ā:"ā",Ă:"ă",Ą:"ą",Ć:"ć",Ĉ:"ĉ",Ċ:"ċ",Č:"č",Ď:"ď",Đ:"đ",Ē:"ē",Ĕ:"ĕ",Ė:"ė",Ę:"ę",Ě:"ě",Ĝ:"ĝ",Ğ:"ğ",Ġ:"ġ",Ģ:"ģ",Ĥ:"ĥ",Ħ:"ħ",Ĩ:"ĩ",Ī:"ī",Ĭ:"ĭ",Į:"į",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",ﬓ:"մն",ﬔ:"մե",ﬕ:"մի",ﬖ:"վն",ﬗ:"մխ"},entityReferences=[{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 UnicodePcCodePoint;(function(eo){eo[eo.LOW_LINE=95]="LOW_LINE",eo[eo.UNDERTIE=8255]="UNDERTIE",eo[eo.CHARACTER_TIE=8256]="CHARACTER_TIE",eo[eo.INVERTED_UNDERTIE=8276]="INVERTED_UNDERTIE",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LOW_LINE=65075]="PRESENTATION_FORM_FOR_VERTICAL_LOW_LINE",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_WAVY_LOW_LINE=65076]="PRESENTATION_FORM_FOR_VERTICAL_WAVY_LOW_LINE",eo[eo.DASHED_LOW_LINE=65101]="DASHED_LOW_LINE",eo[eo.CENTRELINE_LOW_LINE=65102]="CENTRELINE_LOW_LINE",eo[eo.WAVY_LOW_LINE=65103]="WAVY_LOW_LINE",eo[eo.FULLWIDTH_LOW_LINE=65343]="FULLWIDTH_LOW_LINE"})(UnicodePcCodePoint||(UnicodePcCodePoint={}));var UnicodePdCodePoint;(function(eo){eo[eo.HYPHEN_MINUS=45]="HYPHEN_MINUS",eo[eo.ARMENIAN_HYPHEN=1418]="ARMENIAN_HYPHEN",eo[eo.HEBREW_PUNCTUATION_MAQAF=1470]="HEBREW_PUNCTUATION_MAQAF",eo[eo.CANADIAN_SYLLABICS_HYPHEN=5120]="CANADIAN_SYLLABICS_HYPHEN",eo[eo.MONGOLIAN_TODO_SOFT_HYPHEN=6150]="MONGOLIAN_TODO_SOFT_HYPHEN",eo[eo.HYPHEN=8208]="HYPHEN",eo[eo.NON_BREAKING_HYPHEN=8209]="NON_BREAKING_HYPHEN",eo[eo.FIGURE_DASH=8210]="FIGURE_DASH",eo[eo.EN_DASH=8211]="EN_DASH",eo[eo.EM_DASH=8212]="EM_DASH",eo[eo.HORIZONTAL_BAR=8213]="HORIZONTAL_BAR",eo[eo.DOUBLE_OBLIQUE_HYPHEN=11799]="DOUBLE_OBLIQUE_HYPHEN",eo[eo.HYPHEN_WITH_DIAERESIS=11802]="HYPHEN_WITH_DIAERESIS",eo[eo.TWO_EM_DASH=11834]="TWO_EM_DASH",eo[eo.THREE_EM_DASH=11835]="THREE_EM_DASH",eo[eo.DOUBLE_HYPHEN=11840]="DOUBLE_HYPHEN",eo[eo.WAVE_DASH=12316]="WAVE_DASH",eo[eo.WAVY_DASH=12336]="WAVY_DASH",eo[eo.KATAKANA_HIRAGANA_DOUBLE_HYPHEN=12448]="KATAKANA_HIRAGANA_DOUBLE_HYPHEN",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_EM_DASH=65073]="PRESENTATION_FORM_FOR_VERTICAL_EM_DASH",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_EN_DASH=65074]="PRESENTATION_FORM_FOR_VERTICAL_EN_DASH",eo[eo.SMALL_EM_DASH=65112]="SMALL_EM_DASH",eo[eo.SMALL_HYPHEN_MINUS=65123]="SMALL_HYPHEN_MINUS",eo[eo.FULLWIDTH_HYPHEN_MINUS=65293]="FULLWIDTH_HYPHEN_MINUS",eo[eo.YEZIDI_HYPHENATION_MARK=69293]="YEZIDI_HYPHENATION_MARK"})(UnicodePdCodePoint||(UnicodePdCodePoint={}));var UnicodePeCodePoint;(function(eo){eo[eo.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",eo[eo.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",eo[eo.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",eo[eo.TIBETAN_MARK_GUG_RTAGS_GYAS=3899]="TIBETAN_MARK_GUG_RTAGS_GYAS",eo[eo.TIBETAN_MARK_ANG_KHANG_GYAS=3901]="TIBETAN_MARK_ANG_KHANG_GYAS",eo[eo.OGHAM_REVERSED_FEATHER_MARK=5788]="OGHAM_REVERSED_FEATHER_MARK",eo[eo.RIGHT_SQUARE_BRACKET_WITH_QUILL=8262]="RIGHT_SQUARE_BRACKET_WITH_QUILL",eo[eo.SUPERSCRIPT_RIGHT_PARENTHESIS=8318]="SUPERSCRIPT_RIGHT_PARENTHESIS",eo[eo.SUBSCRIPT_RIGHT_PARENTHESIS=8334]="SUBSCRIPT_RIGHT_PARENTHESIS",eo[eo.RIGHT_CEILING=8969]="RIGHT_CEILING",eo[eo.RIGHT_FLOOR=8971]="RIGHT_FLOOR",eo[eo.RIGHT_POINTING_ANGLE_BRACKET=9002]="RIGHT_POINTING_ANGLE_BRACKET",eo[eo.MEDIUM_RIGHT_PARENTHESIS_ORNAMENT=10089]="MEDIUM_RIGHT_PARENTHESIS_ORNAMENT",eo[eo.MEDIUM_FLATTENED_RIGHT_PARENTHESIS_ORNAMENT=10091]="MEDIUM_FLATTENED_RIGHT_PARENTHESIS_ORNAMENT",eo[eo.MEDIUM_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT=10093]="MEDIUM_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT",eo[eo.HEAVY_RIGHT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT=10095]="HEAVY_RIGHT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT",eo[eo.HEAVY_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT=10097]="HEAVY_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT",eo[eo.LIGHT_RIGHT_TORTOISE_SHELL_BRACKET_ORNAMENT=10099]="LIGHT_RIGHT_TORTOISE_SHELL_BRACKET_ORNAMENT",eo[eo.MEDIUM_RIGHT_CURLY_BRACKET_ORNAMENT=10101]="MEDIUM_RIGHT_CURLY_BRACKET_ORNAMENT",eo[eo.RIGHT_S_SHAPED_BAG_DELIMITER=10182]="RIGHT_S_SHAPED_BAG_DELIMITER",eo[eo.MATHEMATICAL_RIGHT_WHITE_SQUARE_BRACKET=10215]="MATHEMATICAL_RIGHT_WHITE_SQUARE_BRACKET",eo[eo.MATHEMATICAL_RIGHT_ANGLE_BRACKET=10217]="MATHEMATICAL_RIGHT_ANGLE_BRACKET",eo[eo.MATHEMATICAL_RIGHT_DOUBLE_ANGLE_BRACKET=10219]="MATHEMATICAL_RIGHT_DOUBLE_ANGLE_BRACKET",eo[eo.MATHEMATICAL_RIGHT_WHITE_TORTOISE_SHELL_BRACKET=10221]="MATHEMATICAL_RIGHT_WHITE_TORTOISE_SHELL_BRACKET",eo[eo.MATHEMATICAL_RIGHT_FLATTENED_PARENTHESIS=10223]="MATHEMATICAL_RIGHT_FLATTENED_PARENTHESIS",eo[eo.RIGHT_WHITE_CURLY_BRACKET=10628]="RIGHT_WHITE_CURLY_BRACKET",eo[eo.RIGHT_WHITE_PARENTHESIS=10630]="RIGHT_WHITE_PARENTHESIS",eo[eo.Z_NOTATION_RIGHT_IMAGE_BRACKET=10632]="Z_NOTATION_RIGHT_IMAGE_BRACKET",eo[eo.Z_NOTATION_RIGHT_BINDING_BRACKET=10634]="Z_NOTATION_RIGHT_BINDING_BRACKET",eo[eo.RIGHT_SQUARE_BRACKET_WITH_UNDERBAR=10636]="RIGHT_SQUARE_BRACKET_WITH_UNDERBAR",eo[eo.RIGHT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER=10638]="RIGHT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER",eo[eo.RIGHT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER=10640]="RIGHT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER",eo[eo.RIGHT_ANGLE_BRACKET_WITH_DOT=10642]="RIGHT_ANGLE_BRACKET_WITH_DOT",eo[eo.RIGHT_ARC_GREATER_THAN_BRACKET=10644]="RIGHT_ARC_GREATER_THAN_BRACKET",eo[eo.DOUBLE_RIGHT_ARC_LESS_THAN_BRACKET=10646]="DOUBLE_RIGHT_ARC_LESS_THAN_BRACKET",eo[eo.RIGHT_BLACK_TORTOISE_SHELL_BRACKET=10648]="RIGHT_BLACK_TORTOISE_SHELL_BRACKET",eo[eo.RIGHT_WIGGLY_FENCE=10713]="RIGHT_WIGGLY_FENCE",eo[eo.RIGHT_DOUBLE_WIGGLY_FENCE=10715]="RIGHT_DOUBLE_WIGGLY_FENCE",eo[eo.RIGHT_POINTING_CURVED_ANGLE_BRACKET=10749]="RIGHT_POINTING_CURVED_ANGLE_BRACKET",eo[eo.TOP_RIGHT_HALF_BRACKET=11811]="TOP_RIGHT_HALF_BRACKET",eo[eo.BOTTOM_RIGHT_HALF_BRACKET=11813]="BOTTOM_RIGHT_HALF_BRACKET",eo[eo.RIGHT_SIDEWAYS_U_BRACKET=11815]="RIGHT_SIDEWAYS_U_BRACKET",eo[eo.RIGHT_DOUBLE_PARENTHESIS=11817]="RIGHT_DOUBLE_PARENTHESIS",eo[eo.RIGHT_ANGLE_BRACKET=12297]="RIGHT_ANGLE_BRACKET",eo[eo.RIGHT_DOUBLE_ANGLE_BRACKET=12299]="RIGHT_DOUBLE_ANGLE_BRACKET",eo[eo.RIGHT_CORNER_BRACKET=12301]="RIGHT_CORNER_BRACKET",eo[eo.RIGHT_WHITE_CORNER_BRACKET=12303]="RIGHT_WHITE_CORNER_BRACKET",eo[eo.RIGHT_BLACK_LENTICULAR_BRACKET=12305]="RIGHT_BLACK_LENTICULAR_BRACKET",eo[eo.RIGHT_TORTOISE_SHELL_BRACKET=12309]="RIGHT_TORTOISE_SHELL_BRACKET",eo[eo.RIGHT_WHITE_LENTICULAR_BRACKET=12311]="RIGHT_WHITE_LENTICULAR_BRACKET",eo[eo.RIGHT_WHITE_TORTOISE_SHELL_BRACKET=12313]="RIGHT_WHITE_TORTOISE_SHELL_BRACKET",eo[eo.RIGHT_WHITE_SQUARE_BRACKET=12315]="RIGHT_WHITE_SQUARE_BRACKET",eo[eo.DOUBLE_PRIME_QUOTATION_MARK=12318]="DOUBLE_PRIME_QUOTATION_MARK",eo[eo.LOW_DOUBLE_PRIME_QUOTATION_MARK=12319]="LOW_DOUBLE_PRIME_QUOTATION_MARK",eo[eo.ORNATE_LEFT_PARENTHESIS=64830]="ORNATE_LEFT_PARENTHESIS",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_LENTICULAR_BRAKCET=65048]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_LENTICULAR_BRAKCET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_PARENTHESIS=65078]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_PARENTHESIS",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CURLY_BRACKET=65080]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CURLY_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_TORTOISE_SHELL_BRACKET=65082]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_TORTOISE_SHELL_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_BLACK_LENTICULAR_BRACKET=65084]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_BLACK_LENTICULAR_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_DOUBLE_ANGLE_BRACKET=65086]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_DOUBLE_ANGLE_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_ANGLE_BRACKET=65088]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_ANGLE_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CORNER_BRACKET=65090]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CORNER_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_CORNER_BRACKET=65092]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_CORNER_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_SQUARE_BRACKET=65096]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_SQUARE_BRACKET",eo[eo.SMALL_RIGHT_PARENTHESIS=65114]="SMALL_RIGHT_PARENTHESIS",eo[eo.SMALL_RIGHT_CURLY_BRACKET=65116]="SMALL_RIGHT_CURLY_BRACKET",eo[eo.SMALL_RIGHT_TORTOISE_SHELL_BRACKET=65118]="SMALL_RIGHT_TORTOISE_SHELL_BRACKET",eo[eo.FULLWIDTH_RIGHT_PARENTHESIS=65289]="FULLWIDTH_RIGHT_PARENTHESIS",eo[eo.FULLWIDTH_RIGHT_SQUARE_BRACKET=65341]="FULLWIDTH_RIGHT_SQUARE_BRACKET",eo[eo.FULLWIDTH_RIGHT_CURLY_BRACKET=65373]="FULLWIDTH_RIGHT_CURLY_BRACKET",eo[eo.FULLWIDTH_RIGHT_WHITE_PARENTHESIS=65376]="FULLWIDTH_RIGHT_WHITE_PARENTHESIS",eo[eo.HALFWIDTH_RIGHT_CORNER_BRACKET=65379]="HALFWIDTH_RIGHT_CORNER_BRACKET"})(UnicodePeCodePoint||(UnicodePeCodePoint={}));var UnicodePfCodePoint;(function(eo){eo[eo.RIGHT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK=187]="RIGHT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK",eo[eo.RIGHT_SINGLE_QUOTATION_MARK=8217]="RIGHT_SINGLE_QUOTATION_MARK",eo[eo.RIGHT_DOUBLE_QUOTATION_MARK=8221]="RIGHT_DOUBLE_QUOTATION_MARK",eo[eo.SINGLE_RIGHT_POINTING_ANGLE_QUOTATION_MARK=8250]="SINGLE_RIGHT_POINTING_ANGLE_QUOTATION_MARK",eo[eo.RIGHT_SUBSTITUTION_BRACKET=11779]="RIGHT_SUBSTITUTION_BRACKET",eo[eo.RIGHT_DOTTED_SUBSTITUTION_BRACKET=11781]="RIGHT_DOTTED_SUBSTITUTION_BRACKET",eo[eo.RIGHT_TRANSPOSITION_BRACKET=11786]="RIGHT_TRANSPOSITION_BRACKET",eo[eo.RIGHT_RAISED_OMISSION_BRACKET=11789]="RIGHT_RAISED_OMISSION_BRACKET",eo[eo.RIGHT_LOW_PARAPHRASE_BRACKET=11805]="RIGHT_LOW_PARAPHRASE_BRACKET",eo[eo.RIGHT_VERTICAL_BAR_WITH_QUILL=11809]="RIGHT_VERTICAL_BAR_WITH_QUILL"})(UnicodePfCodePoint||(UnicodePfCodePoint={}));var UnicodePiCodePoint;(function(eo){eo[eo.LEFT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK=171]="LEFT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK",eo[eo.LEFT_SINGLE_QUOTATION_MARK=8216]="LEFT_SINGLE_QUOTATION_MARK",eo[eo.SINGLE_HIGH_REVERSED_9_QUOTATION_MARK=8219]="SINGLE_HIGH_REVERSED_9_QUOTATION_MARK",eo[eo.LEFT_DOUBLE_QUOTATION_MARK=8220]="LEFT_DOUBLE_QUOTATION_MARK",eo[eo.DOUBLE_HIGH_REVERSED_9_QUOTATION_MARK=8223]="DOUBLE_HIGH_REVERSED_9_QUOTATION_MARK",eo[eo.SINGLE_LEFT_POINTING_ANGLE_QUOTATION_MARK=8249]="SINGLE_LEFT_POINTING_ANGLE_QUOTATION_MARK",eo[eo.LEFT_SUBSTITUTION_BRACKET=11778]="LEFT_SUBSTITUTION_BRACKET",eo[eo.LEFT_DOTTED_SUBSTITUTION_BRACKET=11780]="LEFT_DOTTED_SUBSTITUTION_BRACKET",eo[eo.LEFT_TRANSPOSITION_BRACKET=11785]="LEFT_TRANSPOSITION_BRACKET",eo[eo.LEFT_RAISED_OMISSION_BRACKET=11788]="LEFT_RAISED_OMISSION_BRACKET",eo[eo.LEFT_LOW_PARAPHRASE_BRACKET=11804]="LEFT_LOW_PARAPHRASE_BRACKET",eo[eo.LEFT_VERTICAL_BAR_WITH_QUILL=11808]="LEFT_VERTICAL_BAR_WITH_QUILL"})(UnicodePiCodePoint||(UnicodePiCodePoint={}));var UnicodePoCodePoint;(function(eo){eo[eo.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",eo[eo.QUOTATION_MARK=34]="QUOTATION_MARK",eo[eo.NUMBER_SIGN=35]="NUMBER_SIGN",eo[eo.PERCENT_SIGN=37]="PERCENT_SIGN",eo[eo.AMPERSAND=38]="AMPERSAND",eo[eo.APOSTROPHE=39]="APOSTROPHE",eo[eo.ASTERISK=42]="ASTERISK",eo[eo.COMMA=44]="COMMA",eo[eo.FULL_STOP=46]="FULL_STOP",eo[eo.SOLIDUS=47]="SOLIDUS",eo[eo.COLON=58]="COLON",eo[eo.SEMICOLON=59]="SEMICOLON",eo[eo.QUESTION_MARK=63]="QUESTION_MARK",eo[eo.COMMERCIAL_AT=64]="COMMERCIAL_AT",eo[eo.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",eo[eo.INVERTED_EXCLAMATION_MARK=161]="INVERTED_EXCLAMATION_MARK",eo[eo.SECTION_SIGN=167]="SECTION_SIGN",eo[eo.PILCROW_SIGN=182]="PILCROW_SIGN",eo[eo.MIDDLE_DOT=183]="MIDDLE_DOT",eo[eo.INVERTED_QUESTION_MARK=191]="INVERTED_QUESTION_MARK",eo[eo.GREEK_QUESTION_MARK=894]="GREEK_QUESTION_MARK",eo[eo.GREEK_ANO_TELEIA=903]="GREEK_ANO_TELEIA",eo[eo.ARMENIAN_APOSTROPHE=1370]="ARMENIAN_APOSTROPHE",eo[eo.ARMENIAN_EMPHASIS_MARK=1371]="ARMENIAN_EMPHASIS_MARK",eo[eo.ARMENIAN_EXCLAMATION_MARK=1372]="ARMENIAN_EXCLAMATION_MARK",eo[eo.ARMENIAN_COMMA=1373]="ARMENIAN_COMMA",eo[eo.ARMENIAN_QUESTION_MARK=1374]="ARMENIAN_QUESTION_MARK",eo[eo.ARMENIAN_ABBREVIATION_MARK=1375]="ARMENIAN_ABBREVIATION_MARK",eo[eo.ARMENIAN_FULL_STOP=1417]="ARMENIAN_FULL_STOP",eo[eo.HEBREW_PUNCTUATION_PASEQ=1472]="HEBREW_PUNCTUATION_PASEQ",eo[eo.HEBREW_PUNCTUATION_SOF_PASUQ=1475]="HEBREW_PUNCTUATION_SOF_PASUQ",eo[eo.HEBREW_PUNCTUATION_NUN_HAFUKHA=1478]="HEBREW_PUNCTUATION_NUN_HAFUKHA",eo[eo.HEBREW_PUNCTUATION_GERESH=1523]="HEBREW_PUNCTUATION_GERESH",eo[eo.HEBREW_PUNCTUATION_GERSHAYIM=1524]="HEBREW_PUNCTUATION_GERSHAYIM",eo[eo.ARABIC_INDIC_PER_MILLE_SIGN=1545]="ARABIC_INDIC_PER_MILLE_SIGN",eo[eo.ARABIC_INDIC_PER_TEN_THOUSAND_SIGN=1546]="ARABIC_INDIC_PER_TEN_THOUSAND_SIGN",eo[eo.ARABIC_COMMA=1548]="ARABIC_COMMA",eo[eo.ARABIC_DATE_SEPARATOR=1549]="ARABIC_DATE_SEPARATOR",eo[eo.ARABIC_SEMICOLON=1563]="ARABIC_SEMICOLON",eo[eo.ARABIC_TRIPLE_DOT_PUNCTUATION_MARK=1566]="ARABIC_TRIPLE_DOT_PUNCTUATION_MARK",eo[eo.ARABIC_QUESTION_MARK=1567]="ARABIC_QUESTION_MARK",eo[eo.ARABIC_PERCENT_SIGN=1642]="ARABIC_PERCENT_SIGN",eo[eo.ARABIC_DECIMAL_SEPARATOR=1643]="ARABIC_DECIMAL_SEPARATOR",eo[eo.ARABIC_THOUSANDS_SEPARATOR=1644]="ARABIC_THOUSANDS_SEPARATOR",eo[eo.ARABIC_FIVE_POINTED_STAR=1645]="ARABIC_FIVE_POINTED_STAR",eo[eo.ARABIC_FULL_STOP=1748]="ARABIC_FULL_STOP",eo[eo.SYRIAC_END_OF_PARAGRAPH=1792]="SYRIAC_END_OF_PARAGRAPH",eo[eo.SYRIAC_SUPRALINEAR_FULL_STOP=1793]="SYRIAC_SUPRALINEAR_FULL_STOP",eo[eo.SYRIAC_SUBLINEAR_FULL_STOP=1794]="SYRIAC_SUBLINEAR_FULL_STOP",eo[eo.SYRIAC_SUPRALINEAR_COLON=1795]="SYRIAC_SUPRALINEAR_COLON",eo[eo.SYRIAC_SUBLINEAR_COLON=1796]="SYRIAC_SUBLINEAR_COLON",eo[eo.SYRIAC_HORIZONTAL_COLON=1797]="SYRIAC_HORIZONTAL_COLON",eo[eo.SYRIAC_COLON_SKEWED_LEFT=1798]="SYRIAC_COLON_SKEWED_LEFT",eo[eo.SYRIAC_COLON_SKEWED_RIGHT=1799]="SYRIAC_COLON_SKEWED_RIGHT",eo[eo.SYRIAC_SUPRALINEAR_COLON_SKEWED_LEFT=1800]="SYRIAC_SUPRALINEAR_COLON_SKEWED_LEFT",eo[eo.SYRIAC_SUBLINEAR_COLON_SKEWED_RIGHT=1801]="SYRIAC_SUBLINEAR_COLON_SKEWED_RIGHT",eo[eo.SYRIAC_CONTRACTION=1802]="SYRIAC_CONTRACTION",eo[eo.SYRIAC_HARKLEAN_OBELUS=1803]="SYRIAC_HARKLEAN_OBELUS",eo[eo.SYRIAC_HARKLEAN_METOBELUS=1804]="SYRIAC_HARKLEAN_METOBELUS",eo[eo.SYRIAC_HARKLEAN_ASTERISCUS=1805]="SYRIAC_HARKLEAN_ASTERISCUS",eo[eo.NKO_SYMBOL_GBAKURUNEN=2039]="NKO_SYMBOL_GBAKURUNEN",eo[eo.NKO_COMMA=2040]="NKO_COMMA",eo[eo.NKO_EXCLAMATION_MARK=2041]="NKO_EXCLAMATION_MARK",eo[eo.SAMARITAN_PUNCTUATION_NEQUDAA=2096]="SAMARITAN_PUNCTUATION_NEQUDAA",eo[eo.SAMARITAN_PUNCTUATION_AFSAAQ=2097]="SAMARITAN_PUNCTUATION_AFSAAQ",eo[eo.SAMARITAN_PUNCTUATION_ANGED=2098]="SAMARITAN_PUNCTUATION_ANGED",eo[eo.SAMARITAN_PUNCTUATION_BAU=2099]="SAMARITAN_PUNCTUATION_BAU",eo[eo.SAMARITAN_PUNCTUATION_ATMAAU=2100]="SAMARITAN_PUNCTUATION_ATMAAU",eo[eo.SAMARITAN_PUNCTUATION_SHIYYAALAA=2101]="SAMARITAN_PUNCTUATION_SHIYYAALAA",eo[eo.SAMARITAN_ABBREVIATION_MARK=2102]="SAMARITAN_ABBREVIATION_MARK",eo[eo.SAMARITAN_PUNCTUATION_MELODIC_QITSA=2103]="SAMARITAN_PUNCTUATION_MELODIC_QITSA",eo[eo.SAMARITAN_PUNCTUATION_ZIQAA=2104]="SAMARITAN_PUNCTUATION_ZIQAA",eo[eo.SAMARITAN_PUNCTUATION_QITSA=2105]="SAMARITAN_PUNCTUATION_QITSA",eo[eo.SAMARITAN_PUNCTUATION_ZAEF=2106]="SAMARITAN_PUNCTUATION_ZAEF",eo[eo.SAMARITAN_PUNCTUATION_TURU=2107]="SAMARITAN_PUNCTUATION_TURU",eo[eo.SAMARITAN_PUNCTUATION_ARKAANU=2108]="SAMARITAN_PUNCTUATION_ARKAANU",eo[eo.SAMARITAN_PUNCTUATION_SOF_MASHFAAT=2109]="SAMARITAN_PUNCTUATION_SOF_MASHFAAT",eo[eo.SAMARITAN_PUNCTUATION_ANNAAU=2110]="SAMARITAN_PUNCTUATION_ANNAAU",eo[eo.MANDAIC_PUNCTUATION=2142]="MANDAIC_PUNCTUATION",eo[eo.DEVANAGARI_DANDA=2404]="DEVANAGARI_DANDA",eo[eo.DEVANAGARI_DOUBLE_DANDA=2405]="DEVANAGARI_DOUBLE_DANDA",eo[eo.DEVANAGARI_ABBREVIATION_SIGN=2416]="DEVANAGARI_ABBREVIATION_SIGN",eo[eo.BENGALI_ABBREVIATION_SIGN=2557]="BENGALI_ABBREVIATION_SIGN",eo[eo.GURMUKHI_ABBREVIATION_SIGN=2678]="GURMUKHI_ABBREVIATION_SIGN",eo[eo.GUJARATI_ABBREVIATION_SIGN=2800]="GUJARATI_ABBREVIATION_SIGN",eo[eo.TELUGU_SIGN_SIDDHAM=3191]="TELUGU_SIGN_SIDDHAM",eo[eo.KANNADA_SIGN_SIDDHAM=3204]="KANNADA_SIGN_SIDDHAM",eo[eo.SINHALA_PUNCTUATION_KUNDDALIYA=3572]="SINHALA_PUNCTUATION_KUNDDALIYA",eo[eo.THAI_CHARACTER_FONGMAN=3663]="THAI_CHARACTER_FONGMAN",eo[eo.THAI_CHARACTER_ANGKHANKHU=3674]="THAI_CHARACTER_ANGKHANKHU",eo[eo.THAI_CHARACTER_KHOMUT=3675]="THAI_CHARACTER_KHOMUT",eo[eo.TIBETAN_MARK_INITIAL_YIG_MGO_MDUN_MA=3844]="TIBETAN_MARK_INITIAL_YIG_MGO_MDUN_MA",eo[eo.TIBETAN_MARK_CLOSING_YIG_MGO_SGAB_MA=3845]="TIBETAN_MARK_CLOSING_YIG_MGO_SGAB_MA",eo[eo.TIBETAN_MARK_CARET_YIG_MGO_PHUR_SHAD_MA=3846]="TIBETAN_MARK_CARET_YIG_MGO_PHUR_SHAD_MA",eo[eo.TIBETAN_MARK_YIG_MGO_TSHEG_SHAD_MA=3847]="TIBETAN_MARK_YIG_MGO_TSHEG_SHAD_MA",eo[eo.TIBETAN_MARK_SBRUL_SHAD=3848]="TIBETAN_MARK_SBRUL_SHAD",eo[eo.TIBETAN_MARK_BSKUR_YIG_MGO=3849]="TIBETAN_MARK_BSKUR_YIG_MGO",eo[eo.TIBETAN_MARK_BKA__SHOG_YIG_MGO=3850]="TIBETAN_MARK_BKA__SHOG_YIG_MGO",eo[eo.TIBETAN_MARK_INTERSYLLABIC_TSHEG=3851]="TIBETAN_MARK_INTERSYLLABIC_TSHEG",eo[eo.TIBETAN_MARK_DELIMITER_TSHEG_BSTAR=3852]="TIBETAN_MARK_DELIMITER_TSHEG_BSTAR",eo[eo.TIBETAN_MARK_SHAD=3853]="TIBETAN_MARK_SHAD",eo[eo.TIBETAN_MARK_NYIS_SHAD=3854]="TIBETAN_MARK_NYIS_SHAD",eo[eo.TIBETAN_MARK_TSHEG_SHAD=3855]="TIBETAN_MARK_TSHEG_SHAD",eo[eo.TIBETAN_MARK_NYIS_TSHEG_SHAD=3856]="TIBETAN_MARK_NYIS_TSHEG_SHAD",eo[eo.TIBETAN_MARK_RIN_CHEN_SPUNGS_SHAD=3857]="TIBETAN_MARK_RIN_CHEN_SPUNGS_SHAD",eo[eo.TIBETAN_MARK_RGYA_GRAM_SHAD=3858]="TIBETAN_MARK_RGYA_GRAM_SHAD",eo[eo.TIBETAN_MARK_GTER_TSHEG=3860]="TIBETAN_MARK_GTER_TSHEG",eo[eo.TIBETAN_MARK_PALUTA=3973]="TIBETAN_MARK_PALUTA",eo[eo.TIBETAN_MARK_BSKA__SHOG_GI_MGO_RGYAN=4048]="TIBETAN_MARK_BSKA__SHOG_GI_MGO_RGYAN",eo[eo.TIBETAN_MARK_MNYAM_YIG_GI_MGO_RGYAN=4049]="TIBETAN_MARK_MNYAM_YIG_GI_MGO_RGYAN",eo[eo.TIBETAN_MARK_NYIS_TSHEG=4050]="TIBETAN_MARK_NYIS_TSHEG",eo[eo.TIBETAN_MARK_INITIAL_BRDA_RNYING_YIG_MGO_MDUN_MA=4051]="TIBETAN_MARK_INITIAL_BRDA_RNYING_YIG_MGO_MDUN_MA",eo[eo.TIBETAN_MARK_CLOSING_BRDA_RNYING_YIG_MGO_SGAB_MA=4052]="TIBETAN_MARK_CLOSING_BRDA_RNYING_YIG_MGO_SGAB_MA",eo[eo.TIBETAN_MARK_LEADING_MCHAN_RTAGS=4057]="TIBETAN_MARK_LEADING_MCHAN_RTAGS",eo[eo.TIBETAN_MARK_TRAILING_MCHAN_RTAGS=4058]="TIBETAN_MARK_TRAILING_MCHAN_RTAGS",eo[eo.MYANMAR_SIGN_LITTLE_SECTION=4170]="MYANMAR_SIGN_LITTLE_SECTION",eo[eo.MYANMAR_SIGN_SECTION=4171]="MYANMAR_SIGN_SECTION",eo[eo.MYANMAR_SYMBOL_LOCATIVE=4172]="MYANMAR_SYMBOL_LOCATIVE",eo[eo.MYANMAR_SYMBOL_COMPLETED=4173]="MYANMAR_SYMBOL_COMPLETED",eo[eo.MYANMAR_SYMBOL_AFOREMENTIONED=4174]="MYANMAR_SYMBOL_AFOREMENTIONED",eo[eo.MYANMAR_SYMBOL_GENITIVE=4175]="MYANMAR_SYMBOL_GENITIVE",eo[eo.GEORGIAN_PARAGRAPH_SEPARATOR=4347]="GEORGIAN_PARAGRAPH_SEPARATOR",eo[eo.ETHIOPIC_SECTION_MARK=4960]="ETHIOPIC_SECTION_MARK",eo[eo.ETHIOPIC_WORDSPACE=4961]="ETHIOPIC_WORDSPACE",eo[eo.ETHIOPIC_FULL_STOP=4962]="ETHIOPIC_FULL_STOP",eo[eo.ETHIOPIC_COMMA=4963]="ETHIOPIC_COMMA",eo[eo.ETHIOPIC_SEMICOLON=4964]="ETHIOPIC_SEMICOLON",eo[eo.ETHIOPIC_COLON=4965]="ETHIOPIC_COLON",eo[eo.ETHIOPIC_PREFACE_COLON=4966]="ETHIOPIC_PREFACE_COLON",eo[eo.ETHIOPIC_QUESTION_MARK=4967]="ETHIOPIC_QUESTION_MARK",eo[eo.ETHIOPIC_PARAGRAPH_SEPARATOR=4968]="ETHIOPIC_PARAGRAPH_SEPARATOR",eo[eo.CANADIAN_SYLLABICS_FULL_STOP=5742]="CANADIAN_SYLLABICS_FULL_STOP",eo[eo.RUNIC_SINGLE_PUNCTUATION=5867]="RUNIC_SINGLE_PUNCTUATION",eo[eo.RUNIC_MULTIPLE_PUNCTUATION=5868]="RUNIC_MULTIPLE_PUNCTUATION",eo[eo.RUNIC_CROSS_PUNCTUATION=5869]="RUNIC_CROSS_PUNCTUATION",eo[eo.PHILIPPINE_SINGLE_PUNCTUATION=5941]="PHILIPPINE_SINGLE_PUNCTUATION",eo[eo.PHILIPPINE_DOUBLE_PUNCTUATION=5942]="PHILIPPINE_DOUBLE_PUNCTUATION",eo[eo.KHMER_SIGN_KHAN=6100]="KHMER_SIGN_KHAN",eo[eo.KHMER_SIGN_BARIYOOSAN=6101]="KHMER_SIGN_BARIYOOSAN",eo[eo.KHMER_SIGN_CAMNUC_PII_KUUH=6102]="KHMER_SIGN_CAMNUC_PII_KUUH",eo[eo.KHMER_SIGN_BEYYAL=6104]="KHMER_SIGN_BEYYAL",eo[eo.KHMER_SIGN_PHNAEK_MUAN=6105]="KHMER_SIGN_PHNAEK_MUAN",eo[eo.KHMER_SIGN_KOOMUUT=6106]="KHMER_SIGN_KOOMUUT",eo[eo.MONGOLIAN_BIRGA=6144]="MONGOLIAN_BIRGA",eo[eo.MONGOLIAN_ELLIPSIS=6145]="MONGOLIAN_ELLIPSIS",eo[eo.MONGOLIAN_COMMA=6146]="MONGOLIAN_COMMA",eo[eo.MONGOLIAN_FULL_STOP=6147]="MONGOLIAN_FULL_STOP",eo[eo.MONGOLIAN_COLON=6148]="MONGOLIAN_COLON",eo[eo.MONGOLIAN_FOUR_DOTS=6149]="MONGOLIAN_FOUR_DOTS",eo[eo.MONGOLIAN_SIBE_SYLLABLE_BOUNDARY_MARKER=6151]="MONGOLIAN_SIBE_SYLLABLE_BOUNDARY_MARKER",eo[eo.MONGOLIAN_MANCHU_COMMA=6152]="MONGOLIAN_MANCHU_COMMA",eo[eo.MONGOLIAN_MANCHU_FULL_STOP=6153]="MONGOLIAN_MANCHU_FULL_STOP",eo[eo.MONGOLIAN_NIRUGU=6154]="MONGOLIAN_NIRUGU",eo[eo.LIMBU_EXCLAMATION_MARK=6468]="LIMBU_EXCLAMATION_MARK",eo[eo.LIMBU_QUESTION_MARK=6469]="LIMBU_QUESTION_MARK",eo[eo.BUGINESE_PALLAWA=6686]="BUGINESE_PALLAWA",eo[eo.BUGINESE_END_OF_SECTION=6687]="BUGINESE_END_OF_SECTION",eo[eo.TAI_THAM_SIGN_WIANG=6816]="TAI_THAM_SIGN_WIANG",eo[eo.TAI_THAM_SIGN_WIANGWAAK=6817]="TAI_THAM_SIGN_WIANGWAAK",eo[eo.TAI_THAM_SIGN_SAWAN=6818]="TAI_THAM_SIGN_SAWAN",eo[eo.TAI_THAM_SIGN_KEOW=6819]="TAI_THAM_SIGN_KEOW",eo[eo.TAI_THAM_SIGN_HOY=6820]="TAI_THAM_SIGN_HOY",eo[eo.TAI_THAM_SIGN_DOKMAI=6821]="TAI_THAM_SIGN_DOKMAI",eo[eo.TAI_THAM_SIGN_REVERSED_ROTATED_RANA=6822]="TAI_THAM_SIGN_REVERSED_ROTATED_RANA",eo[eo.TAI_THAM_SIGN_KAAN=6824]="TAI_THAM_SIGN_KAAN",eo[eo.TAI_THAM_SIGN_KAANKUU=6825]="TAI_THAM_SIGN_KAANKUU",eo[eo.TAI_THAM_SIGN_SATKAAN=6826]="TAI_THAM_SIGN_SATKAAN",eo[eo.TAI_THAM_SIGN_SATKAANKUU=6827]="TAI_THAM_SIGN_SATKAANKUU",eo[eo.TAI_THAM_SIGN_HANG=6828]="TAI_THAM_SIGN_HANG",eo[eo.TAI_THAM_SIGN_CAANG=6829]="TAI_THAM_SIGN_CAANG",eo[eo.BALINESE_PANTI=7002]="BALINESE_PANTI",eo[eo.BALINESE_PAMADA=7003]="BALINESE_PAMADA",eo[eo.BALINESE_WINDU=7004]="BALINESE_WINDU",eo[eo.BALINESE_CARIK_PAMUNGKAH=7005]="BALINESE_CARIK_PAMUNGKAH",eo[eo.BALINESE_CARIK_SIKI=7006]="BALINESE_CARIK_SIKI",eo[eo.BALINESE_CARIK_PAREREN=7007]="BALINESE_CARIK_PAREREN",eo[eo.BALINESE_PAMENENG=7008]="BALINESE_PAMENENG",eo[eo.BATAK_SYMBOL_BINDU_NA_METEK=7164]="BATAK_SYMBOL_BINDU_NA_METEK",eo[eo.BATAK_SYMBOL_BINDU_PINARBORAS=7165]="BATAK_SYMBOL_BINDU_PINARBORAS",eo[eo.BATAK_SYMBOL_BINDU_JUDUL=7166]="BATAK_SYMBOL_BINDU_JUDUL",eo[eo.BATAK_SYMBOL_BINDU_PANGOLAT=7167]="BATAK_SYMBOL_BINDU_PANGOLAT",eo[eo.LEPCHA_PUNCTUATION_TA_ROL=7227]="LEPCHA_PUNCTUATION_TA_ROL",eo[eo.LEPCHA_PUNCTUATION_NYET_THYOOM_TA_ROL=7228]="LEPCHA_PUNCTUATION_NYET_THYOOM_TA_ROL",eo[eo.LEPCHA_PUNCTUATION_CER_WA=7229]="LEPCHA_PUNCTUATION_CER_WA",eo[eo.LEPCHA_PUNCTUATION_TSHOOK_CER_WA=7230]="LEPCHA_PUNCTUATION_TSHOOK_CER_WA",eo[eo.LEPCHA_PUNCTUATION_TSHOOK=7231]="LEPCHA_PUNCTUATION_TSHOOK",eo[eo.OL_CHIKI_PUNCTUATION_MUCAAD=7294]="OL_CHIKI_PUNCTUATION_MUCAAD",eo[eo.OL_CHIKI_PUNCTUATION_DOUBLE_MUCAAD=7295]="OL_CHIKI_PUNCTUATION_DOUBLE_MUCAAD",eo[eo.SUNDANESE_PUNCTUATION_BINDU_SURYA=7360]="SUNDANESE_PUNCTUATION_BINDU_SURYA",eo[eo.SUNDANESE_PUNCTUATION_BINDU_PANGLONG=7361]="SUNDANESE_PUNCTUATION_BINDU_PANGLONG",eo[eo.SUNDANESE_PUNCTUATION_BINDU_PURNAMA=7362]="SUNDANESE_PUNCTUATION_BINDU_PURNAMA",eo[eo.SUNDANESE_PUNCTUATION_BINDU_CAKRA=7363]="SUNDANESE_PUNCTUATION_BINDU_CAKRA",eo[eo.SUNDANESE_PUNCTUATION_BINDU_LEU_SATANGA=7364]="SUNDANESE_PUNCTUATION_BINDU_LEU_SATANGA",eo[eo.SUNDANESE_PUNCTUATION_BINDU_KA_SATANGA=7365]="SUNDANESE_PUNCTUATION_BINDU_KA_SATANGA",eo[eo.SUNDANESE_PUNCTUATION_BINDU_DA_SATANGA=7366]="SUNDANESE_PUNCTUATION_BINDU_DA_SATANGA",eo[eo.SUNDANESE_PUNCTUATION_BINDU_BA_SATANGA=7367]="SUNDANESE_PUNCTUATION_BINDU_BA_SATANGA",eo[eo.VEDIC_SIGN_NIHSHVASA=7379]="VEDIC_SIGN_NIHSHVASA",eo[eo.DOUBLE_VERTICAL_LINE=8214]="DOUBLE_VERTICAL_LINE",eo[eo.DOUBLE_LOW_LINE=8215]="DOUBLE_LOW_LINE",eo[eo.DAGGER=8224]="DAGGER",eo[eo.DOUBLE_DAGGER=8225]="DOUBLE_DAGGER",eo[eo.BULLET=8226]="BULLET",eo[eo.TRIANGULAR_BULLET=8227]="TRIANGULAR_BULLET",eo[eo.ONE_DOT_LEADER=8228]="ONE_DOT_LEADER",eo[eo.TWO_DOT_LEADER=8229]="TWO_DOT_LEADER",eo[eo.HORIZONTAL_ELLIPSIS=8230]="HORIZONTAL_ELLIPSIS",eo[eo.HYPHENATION_POINT=8231]="HYPHENATION_POINT",eo[eo.PER_MILLE_SIGN=8240]="PER_MILLE_SIGN",eo[eo.PER_TEN_THOUSAND_SIGN=8241]="PER_TEN_THOUSAND_SIGN",eo[eo.PRIME=8242]="PRIME",eo[eo.DOUBLE_PRIME=8243]="DOUBLE_PRIME",eo[eo.TRIPLE_PRIME=8244]="TRIPLE_PRIME",eo[eo.REVERSED_PRIME=8245]="REVERSED_PRIME",eo[eo.REVERSED_DOUBLE_PRIME=8246]="REVERSED_DOUBLE_PRIME",eo[eo.REVERSED_TRIPLE_PRIME=8247]="REVERSED_TRIPLE_PRIME",eo[eo.CARET=8248]="CARET",eo[eo.REFERENCE_MARK=8251]="REFERENCE_MARK",eo[eo.DOUBLE_EXCLAMATION_MARK=8252]="DOUBLE_EXCLAMATION_MARK",eo[eo.INTERROBANG=8253]="INTERROBANG",eo[eo.OVERLINE=8254]="OVERLINE",eo[eo.CARET_INSERTION_POINT=8257]="CARET_INSERTION_POINT",eo[eo.ASTERISM=8258]="ASTERISM",eo[eo.HYPHEN_BULLET=8259]="HYPHEN_BULLET",eo[eo.DOUBLE_QUESTION_MARK=8263]="DOUBLE_QUESTION_MARK",eo[eo.QUESTION_EXCLAMATION_MARK=8264]="QUESTION_EXCLAMATION_MARK",eo[eo.EXCLAMATION_QUESTION_MARK=8265]="EXCLAMATION_QUESTION_MARK",eo[eo.TIRONIAN_SIGN_ET=8266]="TIRONIAN_SIGN_ET",eo[eo.REVERSED_PILCROW_SIGN=8267]="REVERSED_PILCROW_SIGN",eo[eo.BLACK_LEFTWARDS_BULLET=8268]="BLACK_LEFTWARDS_BULLET",eo[eo.BLACK_RIGHTWARDS_BULLET=8269]="BLACK_RIGHTWARDS_BULLET",eo[eo.LOW_ASTERISK=8270]="LOW_ASTERISK",eo[eo.REVERSED_SEMICOLON=8271]="REVERSED_SEMICOLON",eo[eo.CLOSE_UP=8272]="CLOSE_UP",eo[eo.TWO_ASTERISKS_ALIGNED_VERTICALLY=8273]="TWO_ASTERISKS_ALIGNED_VERTICALLY",eo[eo.SWUNG_DASH=8275]="SWUNG_DASH",eo[eo.FLOWER_PUNCTUATION_MARK=8277]="FLOWER_PUNCTUATION_MARK",eo[eo.THREE_DOT_PUNCTUATION=8278]="THREE_DOT_PUNCTUATION",eo[eo.QUADRUPLE_PRIME=8279]="QUADRUPLE_PRIME",eo[eo.FOUR_DOT_PUNCTUATION=8280]="FOUR_DOT_PUNCTUATION",eo[eo.FIVE_DOT_PUNCTUATION=8281]="FIVE_DOT_PUNCTUATION",eo[eo.TWO_DOT_PUNCTUATION=8282]="TWO_DOT_PUNCTUATION",eo[eo.FOUR_DOT_MARK=8283]="FOUR_DOT_MARK",eo[eo.DOTTED_CROSS=8284]="DOTTED_CROSS",eo[eo.TRICOLON=8285]="TRICOLON",eo[eo.VERTICAL_FOUR_DOTS=8286]="VERTICAL_FOUR_DOTS",eo[eo.COPTIC_OLD_NUBIAN_FULL_STOP=11513]="COPTIC_OLD_NUBIAN_FULL_STOP",eo[eo.COPTIC_OLD_NUBIAN_DIRECT_QUESTION_MARK=11514]="COPTIC_OLD_NUBIAN_DIRECT_QUESTION_MARK",eo[eo.COPTIC_OLD_NUBIAN_INDIRECT_QUESTION_MARK=11515]="COPTIC_OLD_NUBIAN_INDIRECT_QUESTION_MARK",eo[eo.COPTIC_OLD_NUBIAN_VERSE_DIVIDER=11516]="COPTIC_OLD_NUBIAN_VERSE_DIVIDER",eo[eo.COPTIC_FULL_STOP=11518]="COPTIC_FULL_STOP",eo[eo.COPTIC_MORPHOLOGICAL_DIVIDER=11519]="COPTIC_MORPHOLOGICAL_DIVIDER",eo[eo.TIFINAGH_SEPARATOR_MARK=11632]="TIFINAGH_SEPARATOR_MARK",eo[eo.RIGHT_ANGLE_SUBSTITUTION_MARKER=11776]="RIGHT_ANGLE_SUBSTITUTION_MARKER",eo[eo.RIGHT_ANGLE_DOTTED_SUBSTITUTION_MARKER=11777]="RIGHT_ANGLE_DOTTED_SUBSTITUTION_MARKER",eo[eo.RAISED_INTERPOLATION_MARKER=11782]="RAISED_INTERPOLATION_MARKER",eo[eo.RAISED_DOTTED_INTERPOLATION_MARKER=11783]="RAISED_DOTTED_INTERPOLATION_MARKER",eo[eo.DOTTED_TRANSPOSITION_MARKER=11784]="DOTTED_TRANSPOSITION_MARKER",eo[eo.RAISED_SQUARE=11787]="RAISED_SQUARE",eo[eo.EDITORIAL_CORONIS=11790]="EDITORIAL_CORONIS",eo[eo.PARAGRAPHOS=11791]="PARAGRAPHOS",eo[eo.FORKED_PARAGRAPHOS=11792]="FORKED_PARAGRAPHOS",eo[eo.REVERSED_FORKED_PARAGRAPHOS=11793]="REVERSED_FORKED_PARAGRAPHOS",eo[eo.HYPODIASTOLE=11794]="HYPODIASTOLE",eo[eo.DOTTED_OBELOS=11795]="DOTTED_OBELOS",eo[eo.DOWNWARDS_ANCORA=11796]="DOWNWARDS_ANCORA",eo[eo.UPWARDS_ANCORA=11797]="UPWARDS_ANCORA",eo[eo.DOTTED_RIGHT_POINTING_ANGLE=11798]="DOTTED_RIGHT_POINTING_ANGLE",eo[eo.INVERTED_INTERROBANG=11800]="INVERTED_INTERROBANG",eo[eo.PALM_BRANCH=11801]="PALM_BRANCH",eo[eo.TILDE_WITH_RING_ABOVE=11803]="TILDE_WITH_RING_ABOVE",eo[eo.TILDE_WITH_DOT_ABOVE=11806]="TILDE_WITH_DOT_ABOVE",eo[eo.TILDE_WITH_DOT_BELOW=11807]="TILDE_WITH_DOT_BELOW",eo[eo.TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=11818]="TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",eo[eo.ONE_DOT_OVER_TWO_DOTS_PUNCTUATION=11819]="ONE_DOT_OVER_TWO_DOTS_PUNCTUATION",eo[eo.SQUARED_FOUR_DOT_PUNCTUATION=11820]="SQUARED_FOUR_DOT_PUNCTUATION",eo[eo.FIVE_DOT_MARK=11821]="FIVE_DOT_MARK",eo[eo.REVERSED_QUESTION_MARK=11822]="REVERSED_QUESTION_MARK",eo[eo.RING_POINT=11824]="RING_POINT",eo[eo.WORD_SEPARATOR_MIDDLE_DOT=11825]="WORD_SEPARATOR_MIDDLE_DOT",eo[eo.TURNED_COMMA=11826]="TURNED_COMMA",eo[eo.RAISED_DOT=11827]="RAISED_DOT",eo[eo.RAISED_COMMA=11828]="RAISED_COMMA",eo[eo.TURNED_SEMICOLON=11829]="TURNED_SEMICOLON",eo[eo.DAGGER_WITH_LEFT_GUARD=11830]="DAGGER_WITH_LEFT_GUARD",eo[eo.DAGGER_WITH_RIGHT_GUARD=11831]="DAGGER_WITH_RIGHT_GUARD",eo[eo.TURNED_DAGGER=11832]="TURNED_DAGGER",eo[eo.TOP_HALF_SECTION_SIGN=11833]="TOP_HALF_SECTION_SIGN",eo[eo.STENOGRAPHIC_FULL_STOP=11836]="STENOGRAPHIC_FULL_STOP",eo[eo.VERTICAL_SIX_DOTS=11837]="VERTICAL_SIX_DOTS",eo[eo.WIGGLY_VERTICAL_LINE=11838]="WIGGLY_VERTICAL_LINE",eo[eo.CAPITULUM=11839]="CAPITULUM",eo[eo.REVERSED_COMMA=11841]="REVERSED_COMMA",eo[eo.DASH_WITH_LEFT_UPTURN=11843]="DASH_WITH_LEFT_UPTURN",eo[eo.DOUBLE_SUSPENSION_MARK=11844]="DOUBLE_SUSPENSION_MARK",eo[eo.INVERTED_LOW_KAVYKA=11845]="INVERTED_LOW_KAVYKA",eo[eo.INVERTED_LOW_KAVYKA_WITH_KAVYKA_ABOVE=11846]="INVERTED_LOW_KAVYKA_WITH_KAVYKA_ABOVE",eo[eo.LOW_KAVYKA=11847]="LOW_KAVYKA",eo[eo.LOW_KAVYKA_WITH_DOT=11848]="LOW_KAVYKA_WITH_DOT",eo[eo.DOUBLE_STACKED_COMMA=11849]="DOUBLE_STACKED_COMMA",eo[eo.DOTTED_SOLIDUS=11850]="DOTTED_SOLIDUS",eo[eo.TRIPLE_DAGGER=11851]="TRIPLE_DAGGER",eo[eo.MEDIEVAL_COMMA=11852]="MEDIEVAL_COMMA",eo[eo.PARAGRAPHUS_MARK=11853]="PARAGRAPHUS_MARK",eo[eo.PUNCTUS_ELEVATUS_MARK=11854]="PUNCTUS_ELEVATUS_MARK",eo[eo.CORNISH_VERSE_DIVIDER=11855]="CORNISH_VERSE_DIVIDER",eo[eo.TIRONIAN_SIGN_CAPITAL_ET=11858]="TIRONIAN_SIGN_CAPITAL_ET",eo[eo.IDEOGRAPHIC_COMMA=12289]="IDEOGRAPHIC_COMMA",eo[eo.IDEOGRAPHIC_FULL_STOP=12290]="IDEOGRAPHIC_FULL_STOP",eo[eo.DITTO_MARK=12291]="DITTO_MARK",eo[eo.PART_ALTERNATION_MARK=12349]="PART_ALTERNATION_MARK",eo[eo.KATAKANA_MIDDLE_DOT=12539]="KATAKANA_MIDDLE_DOT",eo[eo.LISU_PUNCTUATION_COMMA=42238]="LISU_PUNCTUATION_COMMA",eo[eo.LISU_PUNCTUATION_FULL_STOP=42239]="LISU_PUNCTUATION_FULL_STOP",eo[eo.VAI_COMMA=42509]="VAI_COMMA",eo[eo.VAI_FULL_STOP=42510]="VAI_FULL_STOP",eo[eo.VAI_QUESTION_MARK=42511]="VAI_QUESTION_MARK",eo[eo.SLAVONIC_ASTERISK=42611]="SLAVONIC_ASTERISK",eo[eo.CYRILLIC_KAVYKA=42622]="CYRILLIC_KAVYKA",eo[eo.BAMUM_NJAEMLI=42738]="BAMUM_NJAEMLI",eo[eo.BAMUM_FULL_STOP=42739]="BAMUM_FULL_STOP",eo[eo.BAMUM_COLON=42740]="BAMUM_COLON",eo[eo.BAMUM_COMMA=42741]="BAMUM_COMMA",eo[eo.BAMUM_SEMICOLON=42742]="BAMUM_SEMICOLON",eo[eo.BAMUM_QUESTION_MARK=42743]="BAMUM_QUESTION_MARK",eo[eo.PHAGS_PA_SINGLE_HEAD_MARK=43124]="PHAGS_PA_SINGLE_HEAD_MARK",eo[eo.PHAGS_PA_DOUBLE_HEAD_MARK=43125]="PHAGS_PA_DOUBLE_HEAD_MARK",eo[eo.PHAGS_PA_MARK_SHAD=43126]="PHAGS_PA_MARK_SHAD",eo[eo.PHAGS_PA_MARK_DOUBLE_SHAD=43127]="PHAGS_PA_MARK_DOUBLE_SHAD",eo[eo.SAURASHTRA_DANDA=43214]="SAURASHTRA_DANDA",eo[eo.SAURASHTRA_DOUBLE_DANDA=43215]="SAURASHTRA_DOUBLE_DANDA",eo[eo.DEVANAGARI_SIGN_PUSHPIKA=43256]="DEVANAGARI_SIGN_PUSHPIKA",eo[eo.DEVANAGARI_GAP_FILLER=43257]="DEVANAGARI_GAP_FILLER",eo[eo.DEVANAGARI_CARET=43258]="DEVANAGARI_CARET",eo[eo.DEVANAGARI_SIGN_SIDDHAM=43260]="DEVANAGARI_SIGN_SIDDHAM",eo[eo.KAYAH_LI_SIGN_CWI=43310]="KAYAH_LI_SIGN_CWI",eo[eo.KAYAH_LI_SIGN_SHYA=43311]="KAYAH_LI_SIGN_SHYA",eo[eo.REJANG_SECTION_MARK=43359]="REJANG_SECTION_MARK",eo[eo.JAVANESE_LEFT_RERENGGAN=43457]="JAVANESE_LEFT_RERENGGAN",eo[eo.JAVANESE_RIGHT_RERENGGAN=43458]="JAVANESE_RIGHT_RERENGGAN",eo[eo.JAVANESE_PADA_ANDAP=43459]="JAVANESE_PADA_ANDAP",eo[eo.JAVANESE_PADA_MADYA=43460]="JAVANESE_PADA_MADYA",eo[eo.JAVANESE_PADA_LUHUR=43461]="JAVANESE_PADA_LUHUR",eo[eo.JAVANESE_PADA_WINDU=43462]="JAVANESE_PADA_WINDU",eo[eo.JAVANESE_PADA_PANGKAT=43463]="JAVANESE_PADA_PANGKAT",eo[eo.JAVANESE_PADA_LINGSA=43464]="JAVANESE_PADA_LINGSA",eo[eo.JAVANESE_PADA_LUNGSI=43465]="JAVANESE_PADA_LUNGSI",eo[eo.JAVANESE_PADA_ADEG=43466]="JAVANESE_PADA_ADEG",eo[eo.JAVANESE_PADA_ADEG_ADEG=43467]="JAVANESE_PADA_ADEG_ADEG",eo[eo.JAVANESE_PADA_PISELEH=43468]="JAVANESE_PADA_PISELEH",eo[eo.JAVANESE_TURNED_PADA_PISELEH=43469]="JAVANESE_TURNED_PADA_PISELEH",eo[eo.JAVANESE_PADA_TIRTA_TUMETES=43486]="JAVANESE_PADA_TIRTA_TUMETES",eo[eo.JAVANESE_PADA_ISEN_ISEN=43487]="JAVANESE_PADA_ISEN_ISEN",eo[eo.CHAM_PUNCTUATION_SPIRAL=43612]="CHAM_PUNCTUATION_SPIRAL",eo[eo.CHAM_PUNCTUATION_DANDA=43613]="CHAM_PUNCTUATION_DANDA",eo[eo.CHAM_PUNCTUATION_DOUBLE_DANDA=43614]="CHAM_PUNCTUATION_DOUBLE_DANDA",eo[eo.CHAM_PUNCTUATION_TRIPLE_DANDA=43615]="CHAM_PUNCTUATION_TRIPLE_DANDA",eo[eo.TAI_VIET_SYMBOL_HO_HOI=43742]="TAI_VIET_SYMBOL_HO_HOI",eo[eo.TAI_VIET_SYMBOL_KOI_KOI=43743]="TAI_VIET_SYMBOL_KOI_KOI",eo[eo.MEETEI_MAYEK_CHEIKHAN=43760]="MEETEI_MAYEK_CHEIKHAN",eo[eo.MEETEI_MAYEK_AHANG_KHUDAM=43761]="MEETEI_MAYEK_AHANG_KHUDAM",eo[eo.MEETEI_MAYEK_CHEIKHEI=44011]="MEETEI_MAYEK_CHEIKHEI",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_COMMA=65040]="PRESENTATION_FORM_FOR_VERTICAL_COMMA",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_COMMA=65041]="PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_COMMA",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_FULL_STOP=65042]="PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_FULL_STOP",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_COLON=65043]="PRESENTATION_FORM_FOR_VERTICAL_COLON",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_SEMICOLON=65044]="PRESENTATION_FORM_FOR_VERTICAL_SEMICOLON",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_EXCLAMATION_MARK=65045]="PRESENTATION_FORM_FOR_VERTICAL_EXCLAMATION_MARK",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_QUESTION_MARK=65046]="PRESENTATION_FORM_FOR_VERTICAL_QUESTION_MARK",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_HORIZONTAL_ELLIPSIS=65049]="PRESENTATION_FORM_FOR_VERTICAL_HORIZONTAL_ELLIPSIS",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_TWO_DOT_LEADER=65072]="PRESENTATION_FORM_FOR_VERTICAL_TWO_DOT_LEADER",eo[eo.SESAME_DOT=65093]="SESAME_DOT",eo[eo.WHITE_SESAME_DOT=65094]="WHITE_SESAME_DOT",eo[eo.DASHED_OVERLINE=65097]="DASHED_OVERLINE",eo[eo.CENTRELINE_OVERLINE=65098]="CENTRELINE_OVERLINE",eo[eo.WAVY_OVERLINE=65099]="WAVY_OVERLINE",eo[eo.DOUBLE_WAVY_OVERLINE=65100]="DOUBLE_WAVY_OVERLINE",eo[eo.SMALL_COMMA=65104]="SMALL_COMMA",eo[eo.SMALL_IDEOGRAPHIC_COMMA=65105]="SMALL_IDEOGRAPHIC_COMMA",eo[eo.SMALL_FULL_STOP=65106]="SMALL_FULL_STOP",eo[eo.SMALL_SEMICOLON=65108]="SMALL_SEMICOLON",eo[eo.SMALL_COLON=65109]="SMALL_COLON",eo[eo.SMALL_QUESTION_MARK=65110]="SMALL_QUESTION_MARK",eo[eo.SMALL_EXCLAMATION_MARK=65111]="SMALL_EXCLAMATION_MARK",eo[eo.SMALL_NUMBER_SIGN=65119]="SMALL_NUMBER_SIGN",eo[eo.SMALL_AMPERSAND=65120]="SMALL_AMPERSAND",eo[eo.SMALL_ASTERISK=65121]="SMALL_ASTERISK",eo[eo.SMALL_REVERSE_SOLIDUS=65128]="SMALL_REVERSE_SOLIDUS",eo[eo.SMALL_PERCENT_SIGN=65130]="SMALL_PERCENT_SIGN",eo[eo.SMALL_COMMERCIAL_AT=65131]="SMALL_COMMERCIAL_AT",eo[eo.FULLWIDTH_EXCLAMATION_MARK=65281]="FULLWIDTH_EXCLAMATION_MARK",eo[eo.FULLWIDTH_QUOTATION_MARK=65282]="FULLWIDTH_QUOTATION_MARK",eo[eo.FULLWIDTH_NUMBER_SIGN=65283]="FULLWIDTH_NUMBER_SIGN",eo[eo.FULLWIDTH_PERCENT_SIGN=65285]="FULLWIDTH_PERCENT_SIGN",eo[eo.FULLWIDTH_AMPERSAND=65286]="FULLWIDTH_AMPERSAND",eo[eo.FULLWIDTH_APOSTROPHE=65287]="FULLWIDTH_APOSTROPHE",eo[eo.FULLWIDTH_ASTERISK=65290]="FULLWIDTH_ASTERISK",eo[eo.FULLWIDTH_COMMA=65292]="FULLWIDTH_COMMA",eo[eo.FULLWIDTH_FULL_STOP=65294]="FULLWIDTH_FULL_STOP",eo[eo.FULLWIDTH_SOLIDUS=65295]="FULLWIDTH_SOLIDUS",eo[eo.FULLWIDTH_COLON=65306]="FULLWIDTH_COLON",eo[eo.FULLWIDTH_SEMICOLON=65307]="FULLWIDTH_SEMICOLON",eo[eo.FULLWIDTH_QUESTION_MARK=65311]="FULLWIDTH_QUESTION_MARK",eo[eo.FULLWIDTH_COMMERCIAL_AT=65312]="FULLWIDTH_COMMERCIAL_AT",eo[eo.FULLWIDTH_REVERSE_SOLIDUS=65340]="FULLWIDTH_REVERSE_SOLIDUS",eo[eo.HALFWIDTH_IDEOGRAPHIC_FULL_STOP=65377]="HALFWIDTH_IDEOGRAPHIC_FULL_STOP",eo[eo.HALFWIDTH_IDEOGRAPHIC_COMMA=65380]="HALFWIDTH_IDEOGRAPHIC_COMMA",eo[eo.HALFWIDTH_KATAKANA_MIDDLE_DOT=65381]="HALFWIDTH_KATAKANA_MIDDLE_DOT",eo[eo.AEGEAN_WORD_SEPARATOR_LINE=65792]="AEGEAN_WORD_SEPARATOR_LINE",eo[eo.AEGEAN_WORD_SEPARATOR_DOT=65793]="AEGEAN_WORD_SEPARATOR_DOT",eo[eo.AEGEAN_CHECK_MARK=65794]="AEGEAN_CHECK_MARK",eo[eo.UGARITIC_WORD_DIVIDER=66463]="UGARITIC_WORD_DIVIDER",eo[eo.OLD_PERSIAN_WORD_DIVIDER=66512]="OLD_PERSIAN_WORD_DIVIDER",eo[eo.CAUCASIAN_ALBANIAN_CITATION_MARK=66927]="CAUCASIAN_ALBANIAN_CITATION_MARK",eo[eo.IMPERIAL_ARAMAIC_SECTION_SIGN=67671]="IMPERIAL_ARAMAIC_SECTION_SIGN",eo[eo.PHOENICIAN_WORD_SEPARATOR=67871]="PHOENICIAN_WORD_SEPARATOR",eo[eo.LYDIAN_TRIANGULAR_MARK=67903]="LYDIAN_TRIANGULAR_MARK",eo[eo.KHAROSHTHI_PUNCTUATION_DOT=68176]="KHAROSHTHI_PUNCTUATION_DOT",eo[eo.KHAROSHTHI_PUNCTUATION_SMALL_CIRCLE=68177]="KHAROSHTHI_PUNCTUATION_SMALL_CIRCLE",eo[eo.KHAROSHTHI_PUNCTUATION_CIRCLE=68178]="KHAROSHTHI_PUNCTUATION_CIRCLE",eo[eo.KHAROSHTHI_PUNCTUATION_CRESCENT_BAR=68179]="KHAROSHTHI_PUNCTUATION_CRESCENT_BAR",eo[eo.KHAROSHTHI_PUNCTUATION_MANGALAM=68180]="KHAROSHTHI_PUNCTUATION_MANGALAM",eo[eo.KHAROSHTHI_PUNCTUATION_LOTUS=68181]="KHAROSHTHI_PUNCTUATION_LOTUS",eo[eo.KHAROSHTHI_PUNCTUATION_DANDA=68182]="KHAROSHTHI_PUNCTUATION_DANDA",eo[eo.KHAROSHTHI_PUNCTUATION_DOUBLE_DANDA=68183]="KHAROSHTHI_PUNCTUATION_DOUBLE_DANDA",eo[eo.KHAROSHTHI_PUNCTUATION_LINES=68184]="KHAROSHTHI_PUNCTUATION_LINES",eo[eo.OLD_SOUTH_ARABIAN_NUMERIC_INDICATOR=68223]="OLD_SOUTH_ARABIAN_NUMERIC_INDICATOR",eo[eo.MANICHAEAN_PUNCTUATION_STAR=68336]="MANICHAEAN_PUNCTUATION_STAR",eo[eo.MANICHAEAN_PUNCTUATION_FLEURON=68337]="MANICHAEAN_PUNCTUATION_FLEURON",eo[eo.MANICHAEAN_PUNCTUATION_DOUBLE_DOT_WITHIN_DOT=68338]="MANICHAEAN_PUNCTUATION_DOUBLE_DOT_WITHIN_DOT",eo[eo.MANICHAEAN_PUNCTUATION_DOT_WITHIN_DOT=68339]="MANICHAEAN_PUNCTUATION_DOT_WITHIN_DOT",eo[eo.MANICHAEAN_PUNCTUATION_DOT=68340]="MANICHAEAN_PUNCTUATION_DOT",eo[eo.MANICHAEAN_PUNCTUATION_TWO_DOTS=68341]="MANICHAEAN_PUNCTUATION_TWO_DOTS",eo[eo.MANICHAEAN_PUNCTUATION_LINE_FILLER=68342]="MANICHAEAN_PUNCTUATION_LINE_FILLER",eo[eo.AVESTAN_ABBREVIATION_MARK=68409]="AVESTAN_ABBREVIATION_MARK",eo[eo.TINY_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=68410]="TINY_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",eo[eo.SMALL_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=68411]="SMALL_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",eo[eo.LARGE_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=68412]="LARGE_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",eo[eo.LARGE_ONE_DOT_OVER_TWO_DOTS_PUNCTUATION=68413]="LARGE_ONE_DOT_OVER_TWO_DOTS_PUNCTUATION",eo[eo.LARGE_TWO_RINGS_OVER_ONE_RING_PUNCTUATION=68414]="LARGE_TWO_RINGS_OVER_ONE_RING_PUNCTUATION",eo[eo.LARGE_ONE_RING_OVER_TWO_RINGS_PUNCTUATION=68415]="LARGE_ONE_RING_OVER_TWO_RINGS_PUNCTUATION",eo[eo.PSALTER_PAHLAVI_SECTION_MARK=68505]="PSALTER_PAHLAVI_SECTION_MARK",eo[eo.PSALTER_PAHLAVI_TURNED_SECTION_MARK=68506]="PSALTER_PAHLAVI_TURNED_SECTION_MARK",eo[eo.PSALTER_PAHLAVI_FOUR_DOTS_WITH_CROSS=68507]="PSALTER_PAHLAVI_FOUR_DOTS_WITH_CROSS",eo[eo.PSALTER_PAHLAVI_FOUR_DOTS_WITH_DOT=68508]="PSALTER_PAHLAVI_FOUR_DOTS_WITH_DOT",eo[eo.SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS=69461]="SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS",eo[eo.SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS_WITH_DOTS=69462]="SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS_WITH_DOTS",eo[eo.SOGDIAN_PUNCTUATION_CIRCLE_WITH_DOT=69463]="SOGDIAN_PUNCTUATION_CIRCLE_WITH_DOT",eo[eo.SOGDIAN_PUNCTUATION_TWO_CIRCLES_WITH_DOTS=69464]="SOGDIAN_PUNCTUATION_TWO_CIRCLES_WITH_DOTS",eo[eo.SOGDIAN_PUNCTUATION_HALF_CIRCLE_WITH_DOT=69465]="SOGDIAN_PUNCTUATION_HALF_CIRCLE_WITH_DOT",eo[eo.BRAHMI_DANDA=69703]="BRAHMI_DANDA",eo[eo.BRAHMI_DOUBLE_DANDA=69704]="BRAHMI_DOUBLE_DANDA",eo[eo.BRAHMI_PUNCTUATION_DOT=69705]="BRAHMI_PUNCTUATION_DOT",eo[eo.BRAHMI_PUNCTUATION_DOUBLE_DOT=69706]="BRAHMI_PUNCTUATION_DOUBLE_DOT",eo[eo.BRAHMI_PUNCTUATION_LINE=69707]="BRAHMI_PUNCTUATION_LINE",eo[eo.BRAHMI_PUNCTUATION_CRESCENT_BAR=69708]="BRAHMI_PUNCTUATION_CRESCENT_BAR",eo[eo.BRAHMI_PUNCTUATION_LOTUS=69709]="BRAHMI_PUNCTUATION_LOTUS",eo[eo.KAITHI_ABBREVIATION_SIGN=69819]="KAITHI_ABBREVIATION_SIGN",eo[eo.KAITHI_ENUMERATION_SIGN=69820]="KAITHI_ENUMERATION_SIGN",eo[eo.KAITHI_SECTION_MARK=69822]="KAITHI_SECTION_MARK",eo[eo.KAITHI_DOUBLE_SECTION_MARK=69823]="KAITHI_DOUBLE_SECTION_MARK",eo[eo.KAITHI_DANDA=69824]="KAITHI_DANDA",eo[eo.KAITHI_DOUBLE_DANDA=69825]="KAITHI_DOUBLE_DANDA",eo[eo.CHAKMA_SECTION_MARK=69952]="CHAKMA_SECTION_MARK",eo[eo.CHAKMA_DANDA=69953]="CHAKMA_DANDA",eo[eo.CHAKMA_DOUBLE_DANDA=69954]="CHAKMA_DOUBLE_DANDA",eo[eo.CHAKMA_QUESTION_MARK=69955]="CHAKMA_QUESTION_MARK",eo[eo.MAHAJANI_ABBREVIATION_SIGN=70004]="MAHAJANI_ABBREVIATION_SIGN",eo[eo.MAHAJANI_SECTION_MARK=70005]="MAHAJANI_SECTION_MARK",eo[eo.SHARADA_DANDA=70085]="SHARADA_DANDA",eo[eo.SHARADA_DOUBLE_DANDA=70086]="SHARADA_DOUBLE_DANDA",eo[eo.SHARADA_ABBREVIATION_SIGN=70087]="SHARADA_ABBREVIATION_SIGN",eo[eo.SHARADA_SEPARATOR=70088]="SHARADA_SEPARATOR",eo[eo.SHARADA_SUTRA_MARK=70093]="SHARADA_SUTRA_MARK",eo[eo.SHARADA_SIGN_SIDDHAM=70107]="SHARADA_SIGN_SIDDHAM",eo[eo.SHARADA_CONTINUATION_SIGN=70109]="SHARADA_CONTINUATION_SIGN",eo[eo.SHARADA_SECTION_MARK_1=70110]="SHARADA_SECTION_MARK_1",eo[eo.SHARADA_SECTION_MARK_2=70111]="SHARADA_SECTION_MARK_2",eo[eo.KHOJKI_DANDA=70200]="KHOJKI_DANDA",eo[eo.KHOJKI_DOUBLE_DANDA=70201]="KHOJKI_DOUBLE_DANDA",eo[eo.KHOJKI_WORD_SEPARATOR=70202]="KHOJKI_WORD_SEPARATOR",eo[eo.KHOJKI_SECTION_MARK=70203]="KHOJKI_SECTION_MARK",eo[eo.KHOJKI_DOUBLE_SECTION_MARK=70204]="KHOJKI_DOUBLE_SECTION_MARK",eo[eo.KHOJKI_ABBREVIATION_SIGN=70205]="KHOJKI_ABBREVIATION_SIGN",eo[eo.MULTANI_SECTION_MARK=70313]="MULTANI_SECTION_MARK",eo[eo.NEWA_DANDA=70731]="NEWA_DANDA",eo[eo.NEWA_DOUBLE_DANDA=70732]="NEWA_DOUBLE_DANDA",eo[eo.NEWA_COMMA=70733]="NEWA_COMMA",eo[eo.NEWA_GAP_FILLER=70734]="NEWA_GAP_FILLER",eo[eo.NEWA_ABBREVIATION_SIGN=70735]="NEWA_ABBREVIATION_SIGN",eo[eo.NEWA_DOUBLE_COMMA=70746]="NEWA_DOUBLE_COMMA",eo[eo.NEWA_PLACEHOLDER_MARK=70747]="NEWA_PLACEHOLDER_MARK",eo[eo.NEWA_INSERTION_SIGN=70749]="NEWA_INSERTION_SIGN",eo[eo.TIRHUTA_ABBREVIATION_SIGN=70854]="TIRHUTA_ABBREVIATION_SIGN",eo[eo.SIDDHAM_SIGN_SIDDHAM=71105]="SIDDHAM_SIGN_SIDDHAM",eo[eo.SIDDHAM_DANDA=71106]="SIDDHAM_DANDA",eo[eo.SIDDHAM_DOUBLE_DANDA=71107]="SIDDHAM_DOUBLE_DANDA",eo[eo.SIDDHAM_SEPARATOR_DOT=71108]="SIDDHAM_SEPARATOR_DOT",eo[eo.SIDDHAM_SEPARATOR_BAR=71109]="SIDDHAM_SEPARATOR_BAR",eo[eo.SIDDHAM_REPETITION_MARK_1=71110]="SIDDHAM_REPETITION_MARK_1",eo[eo.SIDDHAM_REPETITION_MARK_2=71111]="SIDDHAM_REPETITION_MARK_2",eo[eo.SIDDHAM_REPETITION_MARK_3=71112]="SIDDHAM_REPETITION_MARK_3",eo[eo.SIDDHAM_END_OF_TEXT_MARK=71113]="SIDDHAM_END_OF_TEXT_MARK",eo[eo.SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_U_SHAPED_ORNAMENTS=71114]="SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_U_SHAPED_ORNAMENTS",eo[eo.SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_DOTTED_CRESCENTS=71115]="SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_DOTTED_CRESCENTS",eo[eo.SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_CRESCENTS=71116]="SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_CRESCENTS",eo[eo.SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_DOUBLE_CRESCENTS=71117]="SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_DOUBLE_CRESCENTS",eo[eo.SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_TRIPLE_CRESCENTS=71118]="SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_TRIPLE_CRESCENTS",eo[eo.SIDDHAM_SECTION_MARK_DOUBLE_RING=71119]="SIDDHAM_SECTION_MARK_DOUBLE_RING",eo[eo.SIDDHAM_SECTION_MARK_DOUBLE_RING_WITH_RAYS=71120]="SIDDHAM_SECTION_MARK_DOUBLE_RING_WITH_RAYS",eo[eo.SIDDHAM_SECTION_MARK_WITH_DOUBLE_CRESCENTS=71121]="SIDDHAM_SECTION_MARK_WITH_DOUBLE_CRESCENTS",eo[eo.SIDDHAM_SECTION_MARK_WITH_TRIPLE_CRESCENTS=71122]="SIDDHAM_SECTION_MARK_WITH_TRIPLE_CRESCENTS",eo[eo.SIDDHAM_SECTION_MARK_WITH_QUADRUPLE_CRESCENTS=71123]="SIDDHAM_SECTION_MARK_WITH_QUADRUPLE_CRESCENTS",eo[eo.SIDDHAM_SECTION_MARK_WITH_SEPTUPLE_CRESCENTS=71124]="SIDDHAM_SECTION_MARK_WITH_SEPTUPLE_CRESCENTS",eo[eo.SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_RAYS=71125]="SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_RAYS",eo[eo.SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_TWO_ENCLOSURES=71126]="SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_TWO_ENCLOSURES",eo[eo.SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_FOUR_ENCLOSURES=71127]="SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_FOUR_ENCLOSURES",eo[eo.MODI_DANDA=71233]="MODI_DANDA",eo[eo.MODI_DOUBLE_DANDA=71234]="MODI_DOUBLE_DANDA",eo[eo.MODI_ABBREVIATION_SIGN=71235]="MODI_ABBREVIATION_SIGN",eo[eo.MONGOLIAN_BIRGA_WITH_ORNAMENT=71264]="MONGOLIAN_BIRGA_WITH_ORNAMENT",eo[eo.MONGOLIAN_ROTATED_BIRGA=71265]="MONGOLIAN_ROTATED_BIRGA",eo[eo.MONGOLIAN_DOUBLE_BIRGA_WITH_ORNAMENT=71266]="MONGOLIAN_DOUBLE_BIRGA_WITH_ORNAMENT",eo[eo.MONGOLIAN_TRIPLE_BIRGA_WITH_ORNAMENT=71267]="MONGOLIAN_TRIPLE_BIRGA_WITH_ORNAMENT",eo[eo.MONGOLIAN_BIRGA_WITH_DOUBLE_ORNAMENT=71268]="MONGOLIAN_BIRGA_WITH_DOUBLE_ORNAMENT",eo[eo.MONGOLIAN_ROTATED_BIRGA_WITH_ORNAMENT=71269]="MONGOLIAN_ROTATED_BIRGA_WITH_ORNAMENT",eo[eo.MONGOLIAN_ROTATED_BIRGA_WITH_DOUBLE_ORNAMENT=71270]="MONGOLIAN_ROTATED_BIRGA_WITH_DOUBLE_ORNAMENT",eo[eo.MONGOLIAN_INVERTED_BIRGA=71271]="MONGOLIAN_INVERTED_BIRGA",eo[eo.MONGOLIAN_INVERTED_BIRGA_WITH_DOUBLE_ORNAMENT=71272]="MONGOLIAN_INVERTED_BIRGA_WITH_DOUBLE_ORNAMENT",eo[eo.MONGOLIAN_SWIRL_BIRGA=71273]="MONGOLIAN_SWIRL_BIRGA",eo[eo.MONGOLIAN_SWIRL_BIRGA_WITH_ORNAMENT=71274]="MONGOLIAN_SWIRL_BIRGA_WITH_ORNAMENT",eo[eo.MONGOLIAN_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT=71275]="MONGOLIAN_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT",eo[eo.MONGOLIAN_TURNED_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT=71276]="MONGOLIAN_TURNED_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT",eo[eo.AHOM_SIGN_SMALL_SECTION=71484]="AHOM_SIGN_SMALL_SECTION",eo[eo.AHOM_SIGN_SECTION=71485]="AHOM_SIGN_SECTION",eo[eo.AHOM_SIGN_RULAI=71486]="AHOM_SIGN_RULAI",eo[eo.DOGRA_ABBREVIATION_SIGN=71739]="DOGRA_ABBREVIATION_SIGN",eo[eo.DIVES_AKURU_DOUBLE_DANDA=72004]="DIVES_AKURU_DOUBLE_DANDA",eo[eo.DIVES_AKURU_GAP_FILLER=72005]="DIVES_AKURU_GAP_FILLER",eo[eo.DIVES_AKURU_END_OF_TEXT_MARK=72006]="DIVES_AKURU_END_OF_TEXT_MARK",eo[eo.NANDINAGARI_SIGN_SIDDHAM=72162]="NANDINAGARI_SIGN_SIDDHAM",eo[eo.ZANABAZAR_SQUARE_INITIAL_HEAD_MARK=72255]="ZANABAZAR_SQUARE_INITIAL_HEAD_MARK",eo[eo.ZANABAZAR_SQUARE_CLOSING_HEAD_MARK=72256]="ZANABAZAR_SQUARE_CLOSING_HEAD_MARK",eo[eo.ZANABAZAR_SQUARE_MARK_TSHEG=72257]="ZANABAZAR_SQUARE_MARK_TSHEG",eo[eo.ZANABAZAR_SQUARE_MARK_SHAD=72258]="ZANABAZAR_SQUARE_MARK_SHAD",eo[eo.ZANABAZAR_SQUARE_MARK_DOUBLE_SHAD=72259]="ZANABAZAR_SQUARE_MARK_DOUBLE_SHAD",eo[eo.ZANABAZAR_SQUARE_MARK_LONG_TSHEG=72260]="ZANABAZAR_SQUARE_MARK_LONG_TSHEG",eo[eo.ZANABAZAR_SQUARE_INITIAL_DOUBLE_LINED_HEAD_MARK=72261]="ZANABAZAR_SQUARE_INITIAL_DOUBLE_LINED_HEAD_MARK",eo[eo.ZANABAZAR_SQUARE_CLOSING_DOUBLE_LINED_HEAD_MARK=72262]="ZANABAZAR_SQUARE_CLOSING_DOUBLE_LINED_HEAD_MARK",eo[eo.SOYOMBO_MARK_TSHEG=72346]="SOYOMBO_MARK_TSHEG",eo[eo.SOYOMBO_MARK_SHAD=72347]="SOYOMBO_MARK_SHAD",eo[eo.SOYOMBO_MARK_DOUBLE_SHAD=72348]="SOYOMBO_MARK_DOUBLE_SHAD",eo[eo.SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_TRIPLE_FLAME=72350]="SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_TRIPLE_FLAME",eo[eo.SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_FLAME=72351]="SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_FLAME",eo[eo.SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN=72352]="SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN",eo[eo.SOYOMBO_TERMINAL_MARK_1=72353]="SOYOMBO_TERMINAL_MARK_1",eo[eo.SOYOMBO_TERMINAL_MARK_2=72354]="SOYOMBO_TERMINAL_MARK_2",eo[eo.BHAIKSUKI_DANDA=72769]="BHAIKSUKI_DANDA",eo[eo.BHAIKSUKI_DOUBLE_DANDA=72770]="BHAIKSUKI_DOUBLE_DANDA",eo[eo.BHAIKSUKI_WORD_SEPARATOR=72771]="BHAIKSUKI_WORD_SEPARATOR",eo[eo.BHAIKSUKI_GAP_FILLER_1=72772]="BHAIKSUKI_GAP_FILLER_1",eo[eo.BHAIKSUKI_GAP_FILLER_2=72773]="BHAIKSUKI_GAP_FILLER_2",eo[eo.MARCHEN_HEAD_MARK=72816]="MARCHEN_HEAD_MARK",eo[eo.MARCHEN_MARK_SHAD=72817]="MARCHEN_MARK_SHAD",eo[eo.MAKASAR_PASSIMBANG=73463]="MAKASAR_PASSIMBANG",eo[eo.MAKASAR_END_OF_SECTION=73464]="MAKASAR_END_OF_SECTION",eo[eo.TAMIL_PUNCTUATION_END_OF_TEXT=73727]="TAMIL_PUNCTUATION_END_OF_TEXT",eo[eo.CUNEIFORM_PUNCTUATION_SIGN_OLD_ASSYRIAN_WORD_DIVIDER=74864]="CUNEIFORM_PUNCTUATION_SIGN_OLD_ASSYRIAN_WORD_DIVIDER",eo[eo.CUNEIFORM_PUNCTUATION_SIGN_VERTICAL_COLON=74865]="CUNEIFORM_PUNCTUATION_SIGN_VERTICAL_COLON",eo[eo.CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_COLON=74866]="CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_COLON",eo[eo.CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_TRICOLON=74867]="CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_TRICOLON",eo[eo.CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_QUADCOLON=74868]="CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_QUADCOLON",eo[eo.MRO_DANDA=92782]="MRO_DANDA",eo[eo.MRO_DOUBLE_DANDA=92783]="MRO_DOUBLE_DANDA",eo[eo.BASSA_VAH_FULL_STOP=92917]="BASSA_VAH_FULL_STOP",eo[eo.PAHAWH_HMONG_SIGN_VOS_THOM=92983]="PAHAWH_HMONG_SIGN_VOS_THOM",eo[eo.PAHAWH_HMONG_SIGN_VOS_TSHAB_CEEB=92984]="PAHAWH_HMONG_SIGN_VOS_TSHAB_CEEB",eo[eo.PAHAWH_HMONG_SIGN_CIM_CHEEM=92985]="PAHAWH_HMONG_SIGN_CIM_CHEEM",eo[eo.PAHAWH_HMONG_SIGN_VOS_THIAB=92986]="PAHAWH_HMONG_SIGN_VOS_THIAB",eo[eo.PAHAWH_HMONG_SIGN_VOS_FEEM=92987]="PAHAWH_HMONG_SIGN_VOS_FEEM",eo[eo.PAHAWH_HMONG_SIGN_XAUS=92996]="PAHAWH_HMONG_SIGN_XAUS",eo[eo.MEDEFAIDRIN_COMMA=93847]="MEDEFAIDRIN_COMMA",eo[eo.MEDEFAIDRIN_FULL_STOP=93848]="MEDEFAIDRIN_FULL_STOP",eo[eo.MEDEFAIDRIN_SYMBOL_AIVA=93849]="MEDEFAIDRIN_SYMBOL_AIVA",eo[eo.MEDEFAIDRIN_EXCLAMATION_OH=93850]="MEDEFAIDRIN_EXCLAMATION_OH",eo[eo.OLD_CHINESE_HOOK_MARK=94178]="OLD_CHINESE_HOOK_MARK",eo[eo.DUPLOYAN_PUNCTUATION_CHINOOK_FULL_STOP=113823]="DUPLOYAN_PUNCTUATION_CHINOOK_FULL_STOP",eo[eo.SIGNWRITING_COMMA=121479]="SIGNWRITING_COMMA",eo[eo.SIGNWRITING_FULL_STOP=121480]="SIGNWRITING_FULL_STOP",eo[eo.SIGNWRITING_SEMICOLON=121481]="SIGNWRITING_SEMICOLON",eo[eo.SIGNWRITING_COLON=121482]="SIGNWRITING_COLON",eo[eo.SIGNWRITING_PARENTHESIS=121483]="SIGNWRITING_PARENTHESIS",eo[eo.ADLAM_INITIAL_EXCLAMATION_MARK=125278]="ADLAM_INITIAL_EXCLAMATION_MARK",eo[eo.ADLAM_INITIAL_QUESTION_MARK=125279]="ADLAM_INITIAL_QUESTION_MARK"})(UnicodePoCodePoint||(UnicodePoCodePoint={}));var UnicodePsCodePoint;(function(eo){eo[eo.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",eo[eo.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",eo[eo.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",eo[eo.TIBETAN_MARK_GUG_RTAGS_GYON=3898]="TIBETAN_MARK_GUG_RTAGS_GYON",eo[eo.TIBETAN_MARK_ANG_KHANG_GYON=3900]="TIBETAN_MARK_ANG_KHANG_GYON",eo[eo.OGHAM_FEATHER_MARK=5787]="OGHAM_FEATHER_MARK",eo[eo.SINGLE_LOW_9_QUOTATION_MARK=8218]="SINGLE_LOW_9_QUOTATION_MARK",eo[eo.DOUBLE_LOW_9_QUOTATION_MARK=8222]="DOUBLE_LOW_9_QUOTATION_MARK",eo[eo.LEFT_SQUARE_BRACKET_WITH_QUILL=8261]="LEFT_SQUARE_BRACKET_WITH_QUILL",eo[eo.SUPERSCRIPT_LEFT_PARENTHESIS=8317]="SUPERSCRIPT_LEFT_PARENTHESIS",eo[eo.SUBSCRIPT_LEFT_PARENTHESIS=8333]="SUBSCRIPT_LEFT_PARENTHESIS",eo[eo.LEFT_CEILING=8968]="LEFT_CEILING",eo[eo.LEFT_FLOOR=8970]="LEFT_FLOOR",eo[eo.LEFT_POINTING_ANGLE_BRACKET=9001]="LEFT_POINTING_ANGLE_BRACKET",eo[eo.MEDIUM_LEFT_PARENTHESIS_ORNAMENT=10088]="MEDIUM_LEFT_PARENTHESIS_ORNAMENT",eo[eo.MEDIUM_FLATTENED_LEFT_PARENTHESIS_ORNAMENT=10090]="MEDIUM_FLATTENED_LEFT_PARENTHESIS_ORNAMENT",eo[eo.MEDIUM_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT=10092]="MEDIUM_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT",eo[eo.HEAVY_LEFT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT=10094]="HEAVY_LEFT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT",eo[eo.HEAVY_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT=10096]="HEAVY_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT",eo[eo.LIGHT_LEFT_TORTOISE_SHELL_BRACKET_ORNAMENT=10098]="LIGHT_LEFT_TORTOISE_SHELL_BRACKET_ORNAMENT",eo[eo.MEDIUM_LEFT_CURLY_BRACKET_ORNAMENT=10100]="MEDIUM_LEFT_CURLY_BRACKET_ORNAMENT",eo[eo.LEFT_S_SHAPED_BAG_DELIMITER=10181]="LEFT_S_SHAPED_BAG_DELIMITER",eo[eo.MATHEMATICAL_LEFT_WHITE_SQUARE_BRACKET=10214]="MATHEMATICAL_LEFT_WHITE_SQUARE_BRACKET",eo[eo.MATHEMATICAL_LEFT_ANGLE_BRACKET=10216]="MATHEMATICAL_LEFT_ANGLE_BRACKET",eo[eo.MATHEMATICAL_LEFT_DOUBLE_ANGLE_BRACKET=10218]="MATHEMATICAL_LEFT_DOUBLE_ANGLE_BRACKET",eo[eo.MATHEMATICAL_LEFT_WHITE_TORTOISE_SHELL_BRACKET=10220]="MATHEMATICAL_LEFT_WHITE_TORTOISE_SHELL_BRACKET",eo[eo.MATHEMATICAL_LEFT_FLATTENED_PARENTHESIS=10222]="MATHEMATICAL_LEFT_FLATTENED_PARENTHESIS",eo[eo.LEFT_WHITE_CURLY_BRACKET=10627]="LEFT_WHITE_CURLY_BRACKET",eo[eo.LEFT_WHITE_PARENTHESIS=10629]="LEFT_WHITE_PARENTHESIS",eo[eo.Z_NOTATION_LEFT_IMAGE_BRACKET=10631]="Z_NOTATION_LEFT_IMAGE_BRACKET",eo[eo.Z_NOTATION_LEFT_BINDING_BRACKET=10633]="Z_NOTATION_LEFT_BINDING_BRACKET",eo[eo.LEFT_SQUARE_BRACKET_WITH_UNDERBAR=10635]="LEFT_SQUARE_BRACKET_WITH_UNDERBAR",eo[eo.LEFT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER=10637]="LEFT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER",eo[eo.LEFT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER=10639]="LEFT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER",eo[eo.LEFT_ANGLE_BRACKET_WITH_DOT=10641]="LEFT_ANGLE_BRACKET_WITH_DOT",eo[eo.LEFT_ARC_LESS_THAN_BRACKET=10643]="LEFT_ARC_LESS_THAN_BRACKET",eo[eo.DOUBLE_LEFT_ARC_GREATER_THAN_BRACKET=10645]="DOUBLE_LEFT_ARC_GREATER_THAN_BRACKET",eo[eo.LEFT_BLACK_TORTOISE_SHELL_BRACKET=10647]="LEFT_BLACK_TORTOISE_SHELL_BRACKET",eo[eo.LEFT_WIGGLY_FENCE=10712]="LEFT_WIGGLY_FENCE",eo[eo.LEFT_DOUBLE_WIGGLY_FENCE=10714]="LEFT_DOUBLE_WIGGLY_FENCE",eo[eo.LEFT_POINTING_CURVED_ANGLE_BRACKET=10748]="LEFT_POINTING_CURVED_ANGLE_BRACKET",eo[eo.TOP_LEFT_HALF_BRACKET=11810]="TOP_LEFT_HALF_BRACKET",eo[eo.BOTTOM_LEFT_HALF_BRACKET=11812]="BOTTOM_LEFT_HALF_BRACKET",eo[eo.LEFT_SIDEWAYS_U_BRACKET=11814]="LEFT_SIDEWAYS_U_BRACKET",eo[eo.LEFT_DOUBLE_PARENTHESIS=11816]="LEFT_DOUBLE_PARENTHESIS",eo[eo.DOUBLE_LOW_REVERSED_9_QUOTATION_MARK=11842]="DOUBLE_LOW_REVERSED_9_QUOTATION_MARK",eo[eo.LEFT_ANGLE_BRACKET=12296]="LEFT_ANGLE_BRACKET",eo[eo.LEFT_DOUBLE_ANGLE_BRACKET=12298]="LEFT_DOUBLE_ANGLE_BRACKET",eo[eo.LEFT_CORNER_BRACKET=12300]="LEFT_CORNER_BRACKET",eo[eo.LEFT_WHITE_CORNER_BRACKET=12302]="LEFT_WHITE_CORNER_BRACKET",eo[eo.LEFT_BLACK_LENTICULAR_BRACKET=12304]="LEFT_BLACK_LENTICULAR_BRACKET",eo[eo.LEFT_TORTOISE_SHELL_BRACKET=12308]="LEFT_TORTOISE_SHELL_BRACKET",eo[eo.LEFT_WHITE_LENTICULAR_BRACKET=12310]="LEFT_WHITE_LENTICULAR_BRACKET",eo[eo.LEFT_WHITE_TORTOISE_SHELL_BRACKET=12312]="LEFT_WHITE_TORTOISE_SHELL_BRACKET",eo[eo.LEFT_WHITE_SQUARE_BRACKET=12314]="LEFT_WHITE_SQUARE_BRACKET",eo[eo.REVERSED_DOUBLE_PRIME_QUOTATION_MARK=12317]="REVERSED_DOUBLE_PRIME_QUOTATION_MARK",eo[eo.ORNATE_RIGHT_PARENTHESIS=64831]="ORNATE_RIGHT_PARENTHESIS",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_LENTICULAR_BRACKET=65047]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_LENTICULAR_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_PARENTHESIS=65077]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_PARENTHESIS",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_CURLY_BRACKET=65079]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_CURLY_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_TORTOISE_SHELL_BRACKET=65081]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_TORTOISE_SHELL_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_BLACK_LENTICULAR_BRACKET=65083]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_BLACK_LENTICULAR_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_DOUBLE_ANGLE_BRACKET=65085]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_DOUBLE_ANGLE_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_ANGLE_BRACKET=65087]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_ANGLE_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_CORNER_BRACKET=65089]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_CORNER_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_CORNER_BRACKET=65091]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_CORNER_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_SQUARE_BRACKET=65095]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_SQUARE_BRACKET",eo[eo.SMALL_LEFT_PARENTHESIS=65113]="SMALL_LEFT_PARENTHESIS",eo[eo.SMALL_LEFT_CURLY_BRACKET=65115]="SMALL_LEFT_CURLY_BRACKET",eo[eo.SMALL_LEFT_TORTOISE_SHELL_BRACKET=65117]="SMALL_LEFT_TORTOISE_SHELL_BRACKET",eo[eo.FULLWIDTH_LEFT_PARENTHESIS=65288]="FULLWIDTH_LEFT_PARENTHESIS",eo[eo.FULLWIDTH_LEFT_SQUARE_BRACKET=65339]="FULLWIDTH_LEFT_SQUARE_BRACKET",eo[eo.FULLWIDTH_LEFT_CURLY_BRACKET=65371]="FULLWIDTH_LEFT_CURLY_BRACKET",eo[eo.FULLWIDTH_LEFT_WHITE_PARENTHESIS=65375]="FULLWIDTH_LEFT_WHITE_PARENTHESIS",eo[eo.HALFWIDTH_LEFT_CORNER_BRACKET=65378]="HALFWIDTH_LEFT_CORNER_BRACKET"})(UnicodePsCodePoint||(UnicodePsCodePoint={}));var UnicodeZsCodePoint;(function(eo){eo[eo.SPACE=32]="SPACE",eo[eo.NO_BREAK_SPACE=160]="NO_BREAK_SPACE",eo[eo.OGHAM_SPACE_MARK=5760]="OGHAM_SPACE_MARK",eo[eo.EN_QUAD=8192]="EN_QUAD",eo[eo.EM_QUAD=8193]="EM_QUAD",eo[eo.EN_SPACE=8194]="EN_SPACE",eo[eo.EM_SPACE=8195]="EM_SPACE",eo[eo.THREE_PER_EM_SPACE=8196]="THREE_PER_EM_SPACE",eo[eo.FOUR_PER_EM_SPACE=8197]="FOUR_PER_EM_SPACE",eo[eo.SIX_PER_EM_SPACE=8198]="SIX_PER_EM_SPACE",eo[eo.FIGURE_SPACE=8199]="FIGURE_SPACE",eo[eo.PUNCTUATION_SPACE=8200]="PUNCTUATION_SPACE",eo[eo.THIN_SPACE=8201]="THIN_SPACE",eo[eo.HAIR_SPACE=8202]="HAIR_SPACE",eo[eo.NARROW_NO_BREAK_SPACE=8239]="NARROW_NO_BREAK_SPACE",eo[eo.MEDIUM_MATHEMATICAL_SPACE=8287]="MEDIUM_MATHEMATICAL_SPACE",eo[eo.IDEOGRAPHIC_SPACE=12288]="IDEOGRAPHIC_SPACE"})(UnicodeZsCodePoint||(UnicodeZsCodePoint={}));var VirtualCodePoint;(function(eo){eo[eo.LINE_END=-1]="LINE_END",eo[eo.SPACE=-2]="SPACE"})(VirtualCodePoint||(VirtualCodePoint={}));function createCodePointSearcher(eo){const to=[...new Set(eo)].sort((oo,io)=>oo-io),ro=to.length;if(ro<8)return[oo=>{for(let io=0;ioso+io);++io);no.push(so,so+io)}if(no.length*1.5{for(let so=0;so{let so=0,ao=oo;for(;so>>1;io{let io=0,so=ro;for(;io>>1;ootypeof to=="number")}createCodePointSearcher([AsciiCodePoint.HT,AsciiCodePoint.LF,AsciiCodePoint.VT,AsciiCodePoint.FF,AsciiCodePoint.CR,AsciiCodePoint.SPACE]);const[isAsciiPunctuationCharacter,asciiPunctuationCharacters]=createCodePointSearcher([AsciiCodePoint.EXCLAMATION_MARK,AsciiCodePoint.DOUBLE_QUOTE,AsciiCodePoint.NUMBER_SIGN,AsciiCodePoint.DOLLAR_SIGN,AsciiCodePoint.PERCENT_SIGN,AsciiCodePoint.AMPERSAND,AsciiCodePoint.SINGLE_QUOTE,AsciiCodePoint.OPEN_PARENTHESIS,AsciiCodePoint.CLOSE_PARENTHESIS,AsciiCodePoint.ASTERISK,AsciiCodePoint.PLUS_SIGN,AsciiCodePoint.COMMA,AsciiCodePoint.MINUS_SIGN,AsciiCodePoint.DOT,AsciiCodePoint.SLASH,AsciiCodePoint.COLON,AsciiCodePoint.SEMICOLON,AsciiCodePoint.OPEN_ANGLE,AsciiCodePoint.EQUALS_SIGN,AsciiCodePoint.CLOSE_ANGLE,AsciiCodePoint.QUESTION_MARK,AsciiCodePoint.AT_SIGN,AsciiCodePoint.OPEN_BRACKET,AsciiCodePoint.BACKSLASH,AsciiCodePoint.CLOSE_BRACKET,AsciiCodePoint.CARET,AsciiCodePoint.UNDERSCORE,AsciiCodePoint.BACKTICK,AsciiCodePoint.OPEN_BRACE,AsciiCodePoint.VERTICAL_SLASH,AsciiCodePoint.CLOSE_BRACE,AsciiCodePoint.TILDE]),isAsciiDigitCharacter=eo=>eo>=AsciiCodePoint.DIGIT0&&eo<=AsciiCodePoint.DIGIT9,isAsciiLowerLetter=eo=>eo>=AsciiCodePoint.LOWERCASE_A&&eo<=AsciiCodePoint.LOWERCASE_Z,isAsciiUpperLetter=eo=>eo>=AsciiCodePoint.UPPERCASE_A&&eo<=AsciiCodePoint.UPPERCASE_Z,isAsciiLetter=eo=>isAsciiLowerLetter(eo)||isAsciiUpperLetter(eo),isAlphanumeric=eo=>isAsciiLowerLetter(eo)||isAsciiUpperLetter(eo)||isAsciiDigitCharacter(eo),isAsciiCharacter=eo=>eo>=AsciiCodePoint.NUL&&eo<=AsciiCodePoint.DELETE,[isAsciiControlCharacter,asciiControlCharacters]=createCodePointSearcher([AsciiCodePoint.NUL,AsciiCodePoint.SOH,AsciiCodePoint.STX,AsciiCodePoint.ETX,AsciiCodePoint.EOT,AsciiCodePoint.ENQ,AsciiCodePoint.ACK,AsciiCodePoint.BEL,AsciiCodePoint.BS,AsciiCodePoint.HT,AsciiCodePoint.LF,AsciiCodePoint.VT,AsciiCodePoint.FF,AsciiCodePoint.CR,AsciiCodePoint.SO,AsciiCodePoint.SI,AsciiCodePoint.DLE,AsciiCodePoint.DC1,AsciiCodePoint.DC2,AsciiCodePoint.DC3,AsciiCodePoint.DC4,AsciiCodePoint.NAK,AsciiCodePoint.SYN,AsciiCodePoint.ETB,AsciiCodePoint.CAN,AsciiCodePoint.EM,AsciiCodePoint.SUB,AsciiCodePoint.ESC,AsciiCodePoint.FS,AsciiCodePoint.GS,AsciiCodePoint.RS,AsciiCodePoint.US,AsciiCodePoint.DELETE]),[isWhitespaceCharacter,whitespaceCharacters]=createCodePointSearcher([AsciiCodePoint.VT,AsciiCodePoint.FF,AsciiCodePoint.SPACE,VirtualCodePoint.SPACE,VirtualCodePoint.LINE_END]);AsciiCodePoint.SPACE,VirtualCodePoint.SPACE;const isSpaceCharacter=eo=>eo===AsciiCodePoint.SPACE||eo===VirtualCodePoint.SPACE,isLineEnding=eo=>eo===VirtualCodePoint.LINE_END,[isPunctuationCharacter,punctuationCharacters]=createCodePointSearcher([...asciiPunctuationCharacters,...collectCodePointsFromEnum(UnicodePcCodePoint),...collectCodePointsFromEnum(UnicodePdCodePoint),...collectCodePointsFromEnum(UnicodePeCodePoint),...collectCodePointsFromEnum(UnicodePfCodePoint),...collectCodePointsFromEnum(UnicodePiCodePoint),...collectCodePointsFromEnum(UnicodePoCodePoint),...collectCodePointsFromEnum(UnicodePsCodePoint)]),isSpaceLike=eo=>isSpaceCharacter(eo)||isLineEnding(eo),[isUnicodeWhitespaceCharacter,unicodeWhitespaceCharacters]=createCodePointSearcher([AsciiCodePoint.HT,AsciiCodePoint.LF,AsciiCodePoint.FF,AsciiCodePoint.CR,VirtualCodePoint.SPACE,VirtualCodePoint.LINE_END,...collectCodePointsFromEnum(UnicodeZsCodePoint)]);var UnicodeCodePoint;(function(eo){eo[eo.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"})(UnicodeCodePoint||(UnicodeCodePoint={}));function createEntityReferenceTrie(){const eo=(oo,io)=>{if(oo.length<=4){for(let lo=0;lo=io)return lo;return oo.length}let so=0,ao=oo.length;for(;so>>1;oo[lo].key{let so=to;for(const ao of oo){const lo=eo(so.children,ao);if(lo>=so.children.length){const co={key:ao,children:[]};so.children.push(co),so=co;continue}let uo=so.children[lo];if(uo.key===ao){so=uo;continue}uo={key:ao,children:[]},so.children.splice(lo,0,uo),so=uo}so.value=io},search:(oo,io,so)=>{let ao=to;for(let lo=io;lo=ao.children.length)return null;const fo=ao.children[co];if(fo.key!==uo)return null;if(fo.value!=null)return{nextIndex:lo+1,value:fo.value};ao=fo}return null}}}const entityReferenceTrie=createEntityReferenceTrie();entityReferences.forEach(eo=>entityReferenceTrie.insert(eo.key,eo.value));function eatEntityReference(eo,to,ro){if(to+1>=ro)return null;const no=entityReferenceTrie.search(eo,to,ro);if(no!=null)return no;if(eo[to].codePoint!==AsciiCodePoint.NUMBER_SIGN)return null;let oo=0,io=to+1;if(eo[io].codePoint===AsciiCodePoint.LOWERCASE_X||eo[io].codePoint===AsciiCodePoint.UPPERCASE_X){io+=1;for(let ao=1;ao<=6&&io=AsciiCodePoint.UPPERCASE_A&&lo<=AsciiCodePoint.UPPERCASE_F){oo=(oo<<4)+(lo-AsciiCodePoint.UPPERCASE_A+10);continue}if(lo>=AsciiCodePoint.LOWERCASE_A&&lo<=AsciiCodePoint.LOWERCASE_F){oo=(oo<<4)+(lo-AsciiCodePoint.LOWERCASE_A+10);continue}break}}else for(let ao=1;ao<=7&&io=ro||eo[io].codePoint!==AsciiCodePoint.SEMICOLON)return null;let so;try{oo===0&&(oo=UnicodeCodePoint.REPLACEMENT_CHARACTER),so=String.fromCodePoint(oo)}catch{so=String.fromCodePoint(UnicodeCodePoint.REPLACEMENT_CHARACTER)}return{nextIndex:io+1,value:so}}function foldCase(eo){return Array.from(eo).map(to=>foldingCaseCodeMap[to]??to).join("")}(()=>{try{const eo=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,to=new RegExp(`(${eo})\\n+(${eo})`,"gu");return ro=>ro.replace(to,"$1$2")}catch{const eo=/[\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,to=new RegExp(`(${eo})\\n+(${eo})`,"gu");return ro=>ro.replace(to,"$1$2")}})();(()=>{try{const eo=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,to=new RegExp(`(${eo})[\\s\\n]+(${eo})`,"gu");return ro=>ro.replace(to,"$1$2")}catch{const eo=/[\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,to=new RegExp(`(${eo})[\\s\\n]+(${eo})`,"gu");return ro=>ro.replace(to,"$1$2")}})();function*createNodePointGenerator(eo){let to=0,ro=1,no=1;const oo=typeof eo=="string"?[eo]:eo;for(const io of oo){const so=[];for(const uo of io){const co=uo.codePointAt(0);so.push(co)}const ao=[],lo=so.length;for(let uo=0;uo>2,uo=so-io&3;for(let co=0;co>2,uo=so-io&3;for(let co=0;co!0;if(eo instanceof Function)return eo;if(eo.length===0)return()=>!1;if(eo.length===1){const to=eo[0];return ro=>ro.type===to}if(eo.length===2){const[to,ro]=eo;return no=>no.type===to||no.type===ro}return to=>{for(const ro of eo)if(to.type===ro)return!0;return!1}}function traverseAst(eo,to,ro){const no=createNodeMatcher(to),oo=io=>{const{children:so}=io;for(let ao=0;ao{const no={};traverseAst(eo,to,so=>{const ao=so;no[ao.identifier]===void 0&&(no[ao.identifier]=ao)});const oo=[];for(const so of ro)no[so.identifier]===void 0&&(no[so.identifier]=so,oo.push(so));return{root:oo.length>0?{...eo,children:eo.children.concat(oo)}:eo,definitionMap:no}},astClasses=mergeStyleSets({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:{}}),NodeRendererContextType=React.createContext(null);NodeRendererContextType.displayName="NodeRendererContextType";const useNodeRendererContext=()=>React.useContext(NodeRendererContextType);class SafeBatchHandler{constructor(){Ws(this,"_errors");Ws(this,"_summary");this._errors=[],this._summary=void 0}cleanup(){this._errors.length=0,this._summary=void 0}run(to){try{to()}catch(ro){this._errors.push(ro),this._summary=void 0}}summary(to){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,to))}if(this._summary!==void 0)throw this._summary}}function disposeAll(eo){const to=new SafeBatchHandler;for(const ro of eo)to.run(()=>ro.dispose());to.summary("[disposeAll] Encountered errors while disposing"),to.cleanup()}class BatchDisposable{constructor(){Ws(this,"_disposed");Ws(this,"_disposables");this._disposed=!1,this._disposables=[]}get disposed(){return this._disposed}dispose(){if(!this._disposed){this._disposed=!0;try{disposeAll(this._disposables)}finally{this._disposables.length=0}}}registerDisposable(to){to.disposed||(this._disposed?to.dispose():this._disposables.push(to))}}class Disposable{constructor(to){Ws(this,"_onDispose");Ws(this,"_disposed");this._onDispose=to,this._disposed=!1}get disposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._onDispose())}}function isDisposable(eo){return eo===null||typeof eo!="object"?!1:typeof Reflect.get(eo,"dispose")=="function"&&typeof Reflect.get(eo,"disposed")=="boolean"}const noop$1=()=>{};class Subscriber{constructor(to){Ws(this,"_onDispose");Ws(this,"_onNext");Ws(this,"_disposed");this._onDispose=(to==null?void 0:to.onDispose)??noop$1,this._onNext=to.onNext,this._disposed=!1}get disposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._onDispose())}next(to,ro){this._disposed||this._onNext(to,ro)}}const noopUnsubscribable$1={unsubscribe:()=>{}};class Subscribers{constructor(to={}){Ws(this,"ARRANGE_THRESHOLD");Ws(this,"_disposed");Ws(this,"_items");Ws(this,"_subscribingCount");this.ARRANGE_THRESHOLD=to.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 to=new SafeBatchHandler,ro=this._items;for(let no=0;nooo.subscriber.dispose()))}ro.length=0,this._subscribingCount=0,to.summary("Encountered errors while disposing."),to.cleanup()}notify(to,ro){if(this._disposed)return;const no=new SafeBatchHandler,oo=this._items;for(let io=0,so=oo.length;ioao.subscriber.next(to,ro))}no.summary("Encountered errors while notifying subscribers."),no.cleanup()}subscribe(to){if(to.disposed)return noopUnsubscribable$1;if(this.disposed)return to.dispose(),noopUnsubscribable$1;const ro={subscriber:to,unsubscribed:!1};return this._items.push(ro),this._subscribingCount+=1,{unsubscribe:()=>{ro.unsubscribed||(ro.unsubscribed=!0,this._subscribingCount-=1,this._arrange())}}}_arrange(){const to=this._items;if(to.length>=this.ARRANGE_THRESHOLD&&this._subscribingCount*2<=to.length){const ro=[];for(let no=0;no{},noopUnsubscribable={unsubscribe:noop},noopUnobservable={unobserve:noop},isObservable=eo=>eo===null||typeof eo!="object"?!1:typeof Reflect.get(eo,"dispose")=="function"&&typeof Reflect.get(eo,"disposed")=="boolean"&&typeof Reflect.get(eo,"subscribe")=="function"&&typeof Reflect.get(eo,"equals")=="function"&&typeof Reflect.get(eo,"getSnapshot")=="function"&&typeof Reflect.get(eo,"next")=="function",defaultEquals=(eo,to)=>Object.is(eo,to);class Observable extends BatchDisposable{constructor(ro,no={}){super();Ws(this,"equals");Ws(this,"_delay");Ws(this,"_subscribers");Ws(this,"_value");Ws(this,"_updateTick");Ws(this,"_notifyTick");Ws(this,"_lastNotifiedValue");Ws(this,"_timer");const{equals:oo=defaultEquals}=no;this._delay=Math.max(0,Number(no.delay)||0),this._subscribers=new Subscribers,this._value=ro,this._updateTick=0,this._notifyTick=0,this._lastNotifiedValue=void 0,this._timer=void 0,this.equals=oo}dispose(){this.disposed||(super.dispose(),this._flush(),this._subscribers.dispose())}getSnapshot(){return this._value}next(ro,no){if(this.disposed){if((no==null?void 0:no.strict)??!0)throw new RangeError(`Don't update a disposed observable. value: ${String(ro)}.`);return}!((no==null?void 0:no.force)??!1)&&this.equals(ro,this._value)||(this._value=ro,this._updateTick+=1,this._notify())}subscribe(ro){if(ro.disposed)return noopUnsubscribable;const no=this._lastNotifiedValue,oo=this._value;return this.disposed?(ro.next(oo,no),ro.dispose(),noopUnsubscribable):(this._flush(),ro.next(oo,no),this._subscribers.subscribe(ro))}_flush(){this._notifyTick{try{this._notifyImmediate()}finally{this._timer=void 0}this._notify()},this._delay))}}_notifyImmediate(){const ro=this._lastNotifiedValue,no=this._value;this._lastNotifiedValue=no,this._notifyTick=this._updateTick,this._subscribers.notify(no,ro)}}const equals=(eo,to)=>eo===to;class Ticker extends Observable{constructor(to={}){const{start:ro=0,delay:no}=to;super(ro,{delay:no,equals})}tick(to){this.next(this._value+1,to)}observe(to,ro){if(this.disposed){if((ro==null?void 0:ro.strict)??!0)throw new RangeError("[Ticker.observe] the ticker has been disposed.");return noopUnobservable}if(to.disposed)return noopUnobservable;const no=new Subscriber({onNext:()=>this.tick()}),oo=to.subscribe(no),io=new Disposable(()=>{no.dispose(),oo.unsubscribe()});return this.registerDisposable(io),{unobserve:()=>io.dispose()}}}class Computed{constructor(to){Ws(this,"_observable");Ws(this,"getSnapshot",()=>this._observable.getSnapshot());Ws(this,"getServerSnapshot",()=>this._observable.getSnapshot());Ws(this,"subscribeStateChange",to=>{const ro=new Subscriber({onNext:()=>to()}),no=this._observable.subscribe(ro),oo=new Disposable(()=>{ro.dispose(),no.unsubscribe()});return this._observable.registerDisposable(oo),()=>oo.dispose()});this._observable=to}static fromObservables(to,ro,no){const oo=new Ticker;for(const lo of to)oo.observe(lo);const io=()=>{const lo=to.map(uo=>uo.getSnapshot());return ro(lo)},so=new Observable(io(),no);so.registerDisposable(oo);const ao=new Subscriber({onNext:()=>so.next(io())});return oo.subscribe(ao),new Computed(so)}get disposed(){return this._observable.disposed}dispose(){this._observable.disposed||this._observable.dispose()}registerDisposable(to){this._observable.registerDisposable(to)}subscribe(to){return this._observable.subscribe(to)}}class State extends Observable{constructor(){super(...arguments);Ws(this,"getSnapshot",()=>super.getSnapshot());Ws(this,"getServerSnapshot",()=>super.getSnapshot());Ws(this,"setState",ro=>{const no=this.getSnapshot(),oo=ro(no);super.next(oo)});Ws(this,"subscribeStateChange",ro=>{const no=new Subscriber({onNext:()=>ro()}),oo=super.subscribe(no),io=new Disposable(()=>{no.dispose(),oo.unsubscribe()});return this.registerDisposable(io),()=>io.dispose()})}}class ViewModel extends BatchDisposable{constructor(){super();Ws(this,"_tickerMap");this._tickerMap=new Map}dispose(){if(!this.disposed){super.dispose();for(const ro of Reflect.ownKeys(this))if(typeof ro=="string"&&ro.endsWith("$")){const no=this[ro];isDisposable(no)&&no.dispose()}for(const ro of this._tickerMap.values())ro.ticker.dispose();this._tickerMap.clear()}}ticker(ro){const no=Array.from(new Set(ro)).sort(),oo=no.join("|");let io=this._tickerMap.get(oo);if(io===void 0){const so=new Ticker;io={keys:no,ticker:so},this.registerDisposable(so),this._tickerMap.set(oo,io);for(const ao of no){const lo=this[ao];if(!isObservable(lo)){console.warn("[ViewModel.ticker] not an observable, key:",ao,"val:",lo);continue}so.observe(lo)}}return io}}class ReactMarkdownViewModel extends ViewModel{constructor(to){super(),this.preferCodeWrap$=new State(!1);const{definitionMap:ro,rendererMap:no,showCodeLineno:oo,themeScheme:io}=to;this.definitionMap$=new State(ro),this.rendererMap$=new State(no),this.showCodeLineno$=new State(oo),this.themeScheme$=new State(io)}}function useSyncExternalStore$2(eo,to,ro){const no=to(),[{inst:oo},io]=reactExports.useState({inst:{value:no,getSnapshot:to}});return reactExports.useLayoutEffect(()=>{oo.value=no,oo.getSnapshot=to,checkIfSnapshotChanged(oo)&&io({inst:oo})},[eo,no,to]),reactExports.useEffect(()=>(checkIfSnapshotChanged(oo)&&io({inst:oo}),eo(()=>{checkIfSnapshotChanged(oo)&&io({inst:oo})})),[eo]),reactExports.useDebugValue(no),no}function checkIfSnapshotChanged(eo){const to=eo.getSnapshot,ro=eo.value;try{const no=to();return!Object.is(ro,no)}catch{return!0}}function useSyncExternalStore$1(eo,to,ro){return to()}const canUseDOM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",shim=canUseDOM?useSyncExternalStore$2:useSyncExternalStore$1,builtin=reactExports.useSyncExternalStore,useSyncExternalStore=builtin||shim;function useStateValue(eo){const{getSnapshot:to,getServerSnapshot:ro,subscribeStateChange:no}=eo;return useSyncExternalStore(no,to,ro)}const NodesRenderer=eo=>{const{nodes:to}=eo,{viewmodel:ro}=useNodeRendererContext(),no=useStateValue(ro.rendererMap$);return!Array.isArray(to)||to.length<=0?jsxRuntimeExports.jsx(React.Fragment,{}):jsxRuntimeExports.jsx(NodesRendererInner,{nodes:to,rendererMap:no})};class NodesRendererInner extends React.Component{shouldComponentUpdate(to){const ro=this.props;return!lodashExports.isEqual(ro.nodes,to.nodes)||ro.rendererMap!==to.rendererMap}render(){const{nodes:to,rendererMap:ro}=this.props;return jsxRuntimeExports.jsx(React.Fragment,{children:to.map((no,oo)=>{const io=`${no.type}-${oo}`,so=ro[no.type]??ro._fallback;return jsxRuntimeExports.jsx(so,{...no},io)})})}}var TokenizerType;(function(eo){eo.BLOCK="block",eo.INLINE="inline"})(TokenizerType||(TokenizerType={}));var TokenizerPriority;(function(eo){eo[eo.ATOMIC=10]="ATOMIC",eo[eo.FENCED_BLOCK=10]="FENCED_BLOCK",eo[eo.CONTAINING_BLOCK=10]="CONTAINING_BLOCK",eo[eo.INTERRUPTABLE_BLOCK=2]="INTERRUPTABLE_BLOCK",eo[eo.IMAGES=4]="IMAGES",eo[eo.LINKS=3]="LINKS",eo[eo.CONTAINING_INLINE=2]="CONTAINING_INLINE",eo[eo.SOFT_INLINE=1]="SOFT_INLINE",eo[eo.FALLBACK=-1]="FALLBACK"})(TokenizerPriority||(TokenizerPriority={}));class BaseInlineTokenizer{constructor(to){Ws(this,"type",TokenizerType.INLINE);Ws(this,"name");Ws(this,"priority");this.name=to.name,this.priority=to.priority}toString(){return this.name}}function*genFindDelimiter(eo){let to=-1,ro=null;for(;;){const[no,oo]=yield ro;to===oo&&(ro==null||ro.startIndex>=no)||(to=oo,ro=eo(no,oo))}}class BaseBlockTokenizer{constructor(to){Ws(this,"type",TokenizerType.BLOCK);Ws(this,"name");Ws(this,"priority");this.name=to.name,this.priority=to.priority}extractPhrasingContentLines(to){return null}buildBlockToken(to,ro){return null}toString(){return this.name}}function calcStartPoint(eo,to){const{line:ro,column:no,offset:oo}=eo[to];return{line:ro,column:no,offset:oo}}function calcEndPoint(eo,to){const{line:ro,column:no,offset:oo}=eo[to];return{line:ro,column:no+1,offset:oo+1}}function calcPositionFromPhrasingContentLines(eo){const to=eo[0],ro=eo[eo.length-1];return{start:calcStartPoint(to.nodePoints,to.startIndex),end:calcEndPoint(ro.nodePoints,ro.endIndex-1)}}function mergeContentLinesFaithfully(eo,to=0,ro=eo.length){if(to>=ro||to<0||ro>eo.length)return[];const no=[];for(let oo=to;oo=ro||to<0||ro>eo.length)return[];for(let lo=to;lo+1=0;--ao){const lo=oo[ao];if(!isWhitespaceCharacter(lo.codePoint))break}for(let lo=so;lo<=ao;++lo)no.push(oo[lo]);return no}function encodeLinkDestination(eo){let to=eo;for(;;)try{const ro=decodeURIComponent(to);if(ro===to)break;to=ro}catch{break}return encodeURI(to)}function resolveLabelToIdentifier(eo){const to=eo.trim().replace(/\s+/gu," ").toLowerCase();return foldCase(to)}function resolveLinkLabelAndIdentifier(eo,to,ro){const no=calcStringFromNodePoints(eo,to,ro,!0);if(no.length<=0)return null;const oo=resolveLabelToIdentifier(no);return{label:no,identifier:oo}}function eatLinkLabel(eo,to,ro){let no=to+1;const oo=Math.min(no+1e3,ro);for(;noto;--ro){const no=eo[ro];if(no.firstNonWhitespaceIndexro?[]:eo.slice(to,ro+1)}const prefix$1="Invariant failed";function invariant(eo,to){if(!eo)throw new Error(prefix$1)}const createBlockContentProcessor=(eo,to)=>{const ro={_tokenizer:"root",nodeType:"root",position:{start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}},children:[]},no=[];no.push({hook:{isContainingBlock:!0},token:ro});let oo=0;const io=ho=>{for(let mo=oo;mo>=0;--mo){const vo=no[mo];vo.token.position.end={...ho}}},so=(ho,mo)=>{if(mo.length<=0)return null;const vo=eo.filter(xo=>xo!==ho),bo=createBlockContentProcessor(vo,to);for(const xo of mo)bo.consume(xo);return bo},ao=()=>{const ho=no.pop();if(ho!=null){if(no.length>0){const mo=no[no.length-1];if(ho.hook.onClose!=null){const vo=ho.hook.onClose(ho.token);if(vo!=null)switch(vo.status){case"closingAndRollback":{const bo=so(ho.hook,vo.lines);if(bo==null)break;const xo=bo.done();mo.token.children.push(...xo.children);break}case"failedAndRollback":{mo.token.children.pop();const bo=so(ho.hook,vo.lines);if(bo==null)break;const xo=bo.done();mo.token.children.push(...xo.children);break}}}}return oo>=no.length&&(oo=no.length-1),ho}},lo=ho=>{for(;no.length>ho;)ao()},uo=(ho,mo,vo)=>{lo(oo+1),no[oo].token.children.push(mo),io(mo.position.end),oo+=1,no.push({hook:ho,token:mo}),vo&&ao()},co=(ho,mo,vo)=>{const bo=so(ho,mo);if(bo==null)return!1;const xo=bo.shallowSnapshot(),_o=xo[0];_o.token.children!=null&&vo.token.children.push(..._o.token.children),io(_o.token.position.end);for(let So=1;So{const{nodePoints:mo,startIndex:vo,endIndex:bo}=ho;let{firstNonWhitespaceIndex:xo,countOfPrecedeSpaces:_o,startIndex:So}=ho;const Eo=()=>({nodePoints:mo,startIndex:So,endIndex:bo,firstNonWhitespaceIndex:xo,countOfPrecedeSpaces:_o}),ko=($o,Bo)=>{if(invariant(So<=$o),Bo){const Mo=calcEndPoint(mo,$o-1);io(Mo)}if(So!==$o)for(So=$o,_o=0,xo=$o;xo{const{token:Mo}=no[oo],Ho=$o.eatOpener(Bo,Mo);if(Ho==null)return!1;invariant(Ho.nextIndex>So,`[consumeNewOpener] The marker of the new data node cannot be empty. - tokenizer(${Ho.token._tokenizer})`),ko(Ho.nextIndex,!1);const jo=Ho.token;return jo._tokenizer=$o.name,uo($o,jo,!!Ho.saturated),!0},Co=($o,Bo)=>{if($o.eatAndInterruptPreviousSibling==null)return!1;const{hook:Mo,token:Ho}=no[oo],{token:jo}=no[oo-1];if($o.priority<=Mo.priority)return!1;const Oo=$o.eatAndInterruptPreviousSibling(Bo,Ho,jo);if(Oo==null)return!1;lo(oo),jo.children.pop(),Oo.remainingSibling!=null&&(Array.isArray(Oo.remainingSibling)?jo.children.push(...Oo.remainingSibling):jo.children.push(Oo.remainingSibling)),ko(Oo.nextIndex,!1);const Fo=Oo.token;return Fo._tokenizer=$o.name,uo($o,Fo,!!Oo.saturated),!0},Ro=()=>{if(oo=1,no.length<2)return;let{token:$o}=no[oo-1];for(;SoGo!==Mo&&Co(Go,Ho)))break;const jo=Mo.eatContinuationText==null?{status:"notMatched"}:Mo.eatContinuationText(Ho,Bo.token,$o);let Oo=!1,Fo=!1;switch(jo.status){case"failedAndRollback":{if($o.children.pop(),no.length=oo,oo-=1,jo.lines.length>0){const Go=no[oo];if(co(Mo,jo.lines,Go)){Fo=!0;break}}Oo=!0;break}case"closingAndRollback":{if(lo(oo),jo.lines.length>0){const Go=no[oo];if(co(Mo,jo.lines,Go)){Fo=!0;break}}Oo=!0;break}case"notMatched":{oo-=1,Oo=!0;break}case"closing":{ko(jo.nextIndex,!0),oo-=1,Oo=!0;break}case"opening":{ko(jo.nextIndex,!0);break}default:throw new TypeError(`[eatContinuationText] unexpected status (${jo.status}).`)}if(Oo)break;Fo||(oo+=1,$o=Bo.token)}},Ao=()=>{if(!(So>=bo)){if(oo=4)return}else oo=no.length-1;for(;So{if(So>=bo||oo+1>=no.length)return!1;const{hook:$o,token:Bo}=no[no.length-1];if($o.eatLazyContinuationText==null)return!1;const{token:Mo}=no[no.length-2],Ho=Eo(),jo=$o.eatLazyContinuationText(Ho,Bo,Mo);switch(jo.status){case"notMatched":return!1;case"opening":return oo=no.length-1,ko(jo.nextIndex,!0),oo=no.length-1,!0;default:throw new TypeError(`[eatLazyContinuationText] unexpected status (${jo.status}).`)}};if(Ro(),Ao(),Io()||lo(oo+1),to!=null&&So=bo)},done:()=>{for(;no.length>1;)ao();return ro},shallowSnapshot:()=>[...no]}},createSinglePriorityDelimiterProcessor=()=>{let eo=0;const to=[],ro=[],no=[],oo=fo=>{let po=fo-1;for(;po>=0&&ro[po].inactive;)po-=1;ro.length=po+1},io=(fo,po)=>{ro.push({hook:fo,delimiter:po,inactive:!1,tokenStackIndex:no.length})},so=(fo,po)=>{if(ro.length<=0)return null;let ho=null;for(let mo=ro.length-1;mo>=0;--mo){if(ho=ro[mo],ho.inactive||ho.hook!==fo)continue;const vo=ho.delimiter,bo=fo.isDelimiterPair(vo,po,to);if(bo.paired)return vo;if(!bo.closer)return null}return null},ao=(fo,po)=>{if(ro.length<=0)return po;let ho,mo=po,vo=[];for(let bo=ro.length-1;bo>=0;--bo){const xo=ro[bo];if(xo.hook!==fo||xo.inactive)continue;const _o=xo.tokenStackIndex;for(_o0){for(const wo of ko)wo._tokenizer=fo.name;vo.unshift(...ko)}ho=void 0,xo.inactive=!0}if(!So.closer){const ko=fo.processSingleDelimiter(mo);if(ko.length>0){for(const wo of ko)wo._tokenizer=fo.name;vo.push(...ko)}mo=void 0}break}const Eo=fo.processDelimiterPair(ho,mo,vo);{for(const ko of Eo.tokens)ko._tokenizer==null&&(ko._tokenizer=fo.name);vo=Eo.tokens}ho=Eo.remainOpenerDelimiter,mo=Eo.remainCloserDelimiter,oo(bo),bo=Math.min(bo,ro.length),ho!=null&&io(fo,ho)}if(mo==null||mo.type==="full")break}if(no.push(...vo),mo==null)return null;if(mo.type==="full"||mo.type==="closer"){const bo=fo.processSingleDelimiter(mo);for(const xo of bo)xo._tokenizer=fo.name,no.push(xo);return null}return mo};return{process:(fo,po)=>{for(;eo=po.endIndex)break;ho.startIndex>=po.startIndex||no.push(ho)}switch(po.type){case"opener":{io(fo,po);break}case"both":{const ho=ao(fo,po);ho!=null&&io(fo,ho);break}case"closer":{ao(fo,po);break}case"full":{const ho=fo.processSingleDelimiter(po);for(const mo of ho)mo._tokenizer=fo.name,no.push(mo);break}default:throw new TypeError(`Unexpected delimiter type(${po.type}) from ${fo.name}.`)}},done:()=>{const fo=[];for(const{delimiter:ho,hook:mo}of ro){const vo=mo.processSingleDelimiter(ho);for(const bo of vo)bo._tokenizer=mo.name,fo.push(bo)}if(ro.length=0,fo.length>0){const ho=mergeSortedTokenStack(no,fo);no.length=0,no.push(...ho)}return no.concat(to.slice(eo))},reset:fo=>{to.length=fo.length;for(let po=0;po{if(eo.length<=0)return to;if(to.length<=0)return eo;const ro=[];let no=0,oo=0;for(;no{const ro=(io,so,ao)=>{let lo=[],uo=null;const co=[io,so];for(const po of ao){const ho=po.findDelimiter(co);if(ho!=null){if(uo!=null){if(ho.startIndex>uo)continue;ho.startIndex1){let po=0;for(const ho of lo){const mo=ho.delimiter.type;if(mo==="full")return{items:[ho],nextIndex:ho.delimiter.endIndex};(mo==="both"||mo==="closer")&&(po+=1)}if(po>1){let ho=-1,mo=-1;for(let bo=0;bo-1?[lo[ho]]:lo.filter(bo=>bo.delimiter.type!=="closer"),nextIndex:fo}}}return{items:lo,nextIndex:fo}},no=createSinglePriorityDelimiterProcessor();return{process:(io,so,ao)=>{let lo=io;for(let uo=to;uo{const no=[];for(let oo=0;oo{let po=so.process(uo,co,fo);return po=ro(po,co,fo),po}}),lo=eo[oo].priority;for(;oo{let ro;const no=eo.match(to);return{isDelimiterPair:()=>({paired:!0}),processDelimiterPair:(oo,io,so)=>({tokens:so}),processSingleDelimiter:()=>[],...no,name:eo.name,priority:eo.priority,findDelimiter:oo=>ro.next(oo).value,reset:()=>{ro=no.findDelimiter(),ro.next()}}};function createProcessor(eo){const{inlineTokenizers:to,inlineTokenizerMap:ro,blockTokenizers:no,blockTokenizerMap:oo,blockFallbackTokenizer:io,inlineFallbackTokenizer:so,shouldReservePosition:ao,presetDefinitions:lo,presetFootnoteDefinitions:uo,formatUrl:co}=eo;let fo=!1;const po=new Set,ho=new Set;let mo=[],vo=-1,bo=-1;const xo=Object.freeze({matchBlockApi:{extractPhrasingLines:Ao,rollbackPhrasingLines:Io,registerDefinitionIdentifier:Fo=>{fo&&po.add(Fo)},registerFootnoteDefinitionIdentifier:Fo=>{fo&&ho.add(Fo)}},parseBlockApi:{shouldReservePosition:ao,formatUrl:co,processInlines:Ho,parseBlockTokens:Mo},matchInlineApi:{hasDefinition:Fo=>po.has(Fo),hasFootnoteDefinition:Fo=>ho.has(Fo),getNodePoints:()=>mo,getBlockStartIndex:()=>vo,getBlockEndIndex:()=>bo,resolveFallbackTokens:$o},parseInlineApi:{shouldReservePosition:ao,calcPosition:Fo=>({start:calcStartPoint(mo,Fo.startIndex),end:calcEndPoint(mo,Fo.endIndex-1)}),formatUrl:co,getNodePoints:()=>mo,hasDefinition:Fo=>po.has(Fo),hasFootnoteDefinition:Fo=>ho.has(Fo),parseInlineTokens:Oo}}),_o=no.map(Fo=>({...Fo.match(xo.matchBlockApi),name:Fo.name,priority:Fo.priority})),So=new Map(Array.from(oo.entries()).map(Fo=>[Fo[0],Fo[1].parse(xo.parseBlockApi)])),Eo=io?{...io.match(xo.matchBlockApi),name:io.name,priority:io.priority}:null,ko=createProcessorHookGroups(to,xo.matchInlineApi,$o),wo=new Map(Array.from(ro.entries()).map(Fo=>[Fo[0],Fo[1].parse(xo.parseInlineApi)])),Co=createPhrasingContentProcessor(ko,0);return{process:Ro};function Ro(Fo){po.clear(),ho.clear(),fo=!0;const Go=Bo(Fo);fo=!1;for(const Zo of lo)po.add(Zo.identifier);for(const Zo of uo)ho.add(Zo.identifier);const qo=Mo(Go.children);return ao?{type:"root",position:Go.position,children:qo}:{type:"root",children:qo}}function Ao(Fo){const Go=oo.get(Fo._tokenizer);return(Go==null?void 0:Go.extractPhrasingContentLines(Fo))??null}function Io(Fo,Go){if(Go!=null){const Xo=oo.get(Go._tokenizer);if(Xo!==void 0&&Xo.buildBlockToken!=null){const Zo=Xo.buildBlockToken(Fo,Go);if(Zo!==null)return Zo._tokenizer=Xo.name,[Zo]}}return Bo([Fo]).children}function $o(Fo,Go,qo){if(so==null)return Fo;let Xo=Go;const Zo=[];for(const Qo of Fo){if(Xoso.priority)break}io<0||io>=to.length?to.push(no):to.splice(io,0,no)}_unregisterTokenizer(to,ro,no){var ao,lo;const oo=typeof no=="string"?no:no.name;if(!ro.delete(oo))return;((ao=this.blockFallbackTokenizer)==null?void 0:ao.name)===oo&&(this.blockFallbackTokenizer=null),((lo=this.inlineFallbackTokenizer)==null?void 0:lo.name)===oo&&(this.inlineFallbackTokenizer=null);const so=to.findIndex(uo=>uo.name===oo);so>=0&&to.splice(so,1)}}function eatEmailAddress(eo,to,ro){let no=to;for(;no=ro||eo[no].codePoint!==AsciiCodePoint.AT_SIGN||!isAlphanumeric(eo[no+1].codePoint))return{valid:!1,nextIndex:no+1};for(no=eatAddressPart0(eo,no+2,ro);no+1=to?oo+1:to}function eatAbsoluteUri(eo,to,ro){const no=eatAutolinkSchema(eo,to,ro);let{nextIndex:oo}=no;if(!no.valid||oo>=ro||eo[oo].codePoint!==AsciiCodePoint.COLON)return{valid:!1,nextIndex:oo};for(oo+=1;oo32?{valid:!1,nextIndex:no+1}:{valid:!0,nextIndex:no}}const helpers=[{contentType:"uri",eat:eatAbsoluteUri},{contentType:"email",eat:eatEmailAddress}],match$l=function(eo){return{findDelimiter:()=>genFindDelimiter(to),processSingleDelimiter:ro};function to(no,oo){const io=eo.getNodePoints();for(let so=no;soto.map(ro=>{const no=eo.getNodePoints();let oo=calcStringFromNodePoints(no,ro.startIndex+1,ro.endIndex-1);ro.contentType==="email"&&(oo="mailto:"+oo);const io=eo.formatUrl(oo),so=eo.parseInlineTokens(ro.children);return eo.shouldReservePosition?{type:LinkType,position:eo.calcPosition(ro),url:io,children:so}:{type:LinkType,url:io,children:so}})}},uniqueName$j="@yozora/tokenizer-autolink";class AutolinkTokenizer extends BaseInlineTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$j,priority:ro.priority??TokenizerPriority.ATOMIC});Ws(this,"match",match$l);Ws(this,"parse",parse$l)}}const match$k=function(){return{isContainingBlock:!0,eatOpener:eo,eatAndInterruptPreviousSibling:to,eatContinuationText:ro};function eo(no){if(no.countOfPrecedeSpaces>=4)return null;const{nodePoints:oo,startIndex:io,endIndex:so,firstNonWhitespaceIndex:ao}=no;if(ao>=so||oo[ao].codePoint!==AsciiCodePoint.CLOSE_ANGLE)return null;let lo=ao+1;return lo=4||uo>=lo||so[uo].codePoint!==AsciiCodePoint.CLOSE_ANGLE?io.nodeType===BlockquoteType?{status:"opening",nextIndex:ao}:{status:"notMatched"}:{status:"opening",nextIndex:uo+1to.map(ro=>{const no=eo.parseBlockTokens(ro.children);return eo.shouldReservePosition?{type:BlockquoteType,position:ro.position,children:no}:{type:BlockquoteType,children:no}})}},uniqueName$i="@yozora/tokenizer-blockquote";class BlockquoteTokenizer extends BaseBlockTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$i,priority:ro.priority??TokenizerPriority.CONTAINING_BLOCK});Ws(this,"match",match$k);Ws(this,"parse",parse$k)}}const uniqueName$h="@yozora/tokenizer-break";var BreakTokenMarkerType;(function(eo){eo.BACKSLASH="backslash",eo.MORE_THAN_TWO_SPACES="more-than-two-spaces"})(BreakTokenMarkerType||(BreakTokenMarkerType={}));const match$j=function(eo){return{findDelimiter:()=>genFindDelimiter(to),processSingleDelimiter:ro};function to(no,oo){const io=eo.getNodePoints();for(let so=no+1;so=no&&io[co].codePoint===AsciiCodePoint.BACKSLASH;co-=1);so-co&1||(lo=so-1,uo=BreakTokenMarkerType.BACKSLASH);break}case AsciiCodePoint.SPACE:{let co=so-2;for(;co>=no&&io[co].codePoint===AsciiCodePoint.SPACE;co-=1);so-co>2&&(lo=co+1,uo=BreakTokenMarkerType.MORE_THAN_TWO_SPACES);break}}if(!(lo==null||uo==null))return{type:"full",markerType:uo,startIndex:lo,endIndex:so}}return null}function ro(no){return[{nodeType:BreakType,startIndex:no.startIndex,endIndex:no.endIndex}]}},parse$j=function(eo){return{parse:to=>to.map(ro=>eo.shouldReservePosition?{type:BreakType,position:eo.calcPosition(ro)}:{type:BreakType})}};class BreakTokenizer extends BaseInlineTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$h,priority:ro.priority??TokenizerPriority.SOFT_INLINE});Ws(this,"match",match$j);Ws(this,"parse",parse$j)}}function eatAndCollectLinkDestination(eo,to,ro,no){let oo=to;no==null&&(no={saturated:!1,nodePoints:[],hasOpenAngleBracket:!1,openParensCount:0});const io=eatOptionalWhitespaces(eo,oo,ro);if(io>=ro)return{nextIndex:-1,state:no};if(no.nodePoints.length<=0){oo=io;const so=eo[oo];so.codePoint===AsciiCodePoint.OPEN_ANGLE&&(oo+=1,no.hasOpenAngleBracket=!0,no.nodePoints.push(so))}if(no.hasOpenAngleBracket){for(;oo=ro)return{nextIndex:-1,state:no};if(no.nodePoints.length<=0){oo=io;const so=eo[oo];if(so.codePoint!==AsciiCodePoint.OPEN_BRACKET)return{nextIndex:-1,state:no};oo+=1,no.nodePoints.push(so)}for(;oo=ro)return{nextIndex:-1,state:no};if(no.nodePoints.length<=0){oo=io;const so=eo[oo];switch(so.codePoint){case AsciiCodePoint.DOUBLE_QUOTE:case AsciiCodePoint.SINGLE_QUOTE:case AsciiCodePoint.OPEN_PARENTHESIS:no.wrapSymbol=so.codePoint,no.nodePoints.push(so),oo+=1;break;default:return{nextIndex:-1,state:no}}}if(no.wrapSymbol==null)return{nextIndex:-1,state:no};switch(no.wrapSymbol){case AsciiCodePoint.DOUBLE_QUOTE:case AsciiCodePoint.SINGLE_QUOTE:{for(;oo=ro||eo[oo+1].codePoint===VirtualCodePoint.LINE_END){no.nodePoints.push(so),no.saturated=!0;break}return{nextIndex:-1,state:no};default:no.nodePoints.push(so)}}break}}return{nextIndex:ro,state:no}}const match$i=function(eo){return{isContainingBlock:!1,eatOpener:to,eatContinuationText:ro,onClose:no};function to(oo){if(oo.countOfPrecedeSpaces>=4)return null;const{nodePoints:io,startIndex:so,endIndex:ao,firstNonWhitespaceIndex:lo}=oo;if(lo>=ao)return null;let uo=lo;const{nextIndex:co,state:fo}=eatAndCollectLinkLabel(io,uo,ao,null);if(co<0)return null;const po=io[so].line,ho=()=>({nodeType:DefinitionType,position:{start:calcStartPoint(io,so),end:calcEndPoint(io,ao-1)},label:fo,destination:null,title:null,lineNoOfLabel:po,lineNoOfDestination:-1,lineNoOfTitle:-1,lines:[oo]});if(!fo.saturated)return{token:ho(),nextIndex:ao};if(co<0||co+1>=ao||io[co].codePoint!==AsciiCodePoint.COLON)return null;if(uo=eatOptionalWhitespaces(io,co+1,ao),uo>=ao)return{token:ho(),nextIndex:ao};const{nextIndex:mo,state:vo}=eatAndCollectLinkDestination(io,uo,ao,null);if(mo<0||!vo.saturated&&mo!==ao)return null;if(uo=eatOptionalWhitespaces(io,mo,ao),uo>=ao){const So=ho();return So.destination=vo,So.lineNoOfDestination=po,{token:So,nextIndex:ao}}if(uo===mo)return null;const{nextIndex:bo,state:xo}=eatAndCollectLinkTitle(io,uo,ao,null);if(bo>=0&&(uo=bo),uo=uo||so[bo].codePoint!==AsciiCodePoint.COLON)return{status:"failedAndRollback",lines:io.lines};fo=bo+1}if(io.destination==null){if(fo=eatOptionalWhitespaces(so,fo,uo),fo>=uo)return{status:"failedAndRollback",lines:io.lines};const{nextIndex:bo,state:xo}=eatAndCollectLinkDestination(so,fo,uo,null);if(bo<0||!xo.saturated)return{status:"failedAndRollback",lines:io.lines};if(fo=eatOptionalWhitespaces(so,bo,uo),fo>=uo)return io.destination=xo,io.lines.push(oo),{status:"opening",nextIndex:uo};io.lineNoOfDestination=co,io.lineNoOfTitle=co}io.lineNoOfTitle<0&&(io.lineNoOfTitle=co);const{nextIndex:po,state:ho}=eatAndCollectLinkTitle(so,fo,uo,io.title);if(io.title=ho,po<0||ho.nodePoints.length<=0||ho.saturated&&eatOptionalWhitespaces(so,po,uo)to.map(ro=>{const no=ro._label,oo=ro._identifier,io=ro.destination.nodePoints,so=io[0].codePoint===AsciiCodePoint.OPEN_ANGLE?calcEscapedStringFromNodePoints(io,1,io.length-1,!0):calcEscapedStringFromNodePoints(io,0,io.length,!0),ao=eo.formatUrl(so),lo=ro.title==null?void 0:calcEscapedStringFromNodePoints(ro.title.nodePoints,1,ro.title.nodePoints.length-1);return eo.shouldReservePosition?{type:DefinitionType,position:ro.position,identifier:oo,label:no,url:ao,title:lo}:{type:DefinitionType,identifier:oo,label:no,url:ao,title:lo}})}},uniqueName$g="@yozora/tokenizer-definition";class DefinitionTokenizer extends BaseBlockTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$g,priority:ro.priority??TokenizerPriority.ATOMIC});Ws(this,"match",match$i);Ws(this,"parse",parse$i)}}const match$h=function(eo){return{findDelimiter:()=>genFindDelimiter(to),isDelimiterPair:ro,processDelimiterPair:no};function to(oo,io){const so=eo.getNodePoints(),ao=eo.getBlockStartIndex(),lo=eo.getBlockEndIndex(),uo=(fo,po)=>{if(po===lo)return!1;if(po===io)return!0;const ho=so[po];if(isUnicodeWhitespaceCharacter(ho.codePoint))return!1;if(!isPunctuationCharacter(ho.codePoint)||fo<=oo)return!0;const mo=so[fo-1];return isUnicodeWhitespaceCharacter(mo.codePoint)||isPunctuationCharacter(mo.codePoint)},co=(fo,po)=>{if(fo===ao)return!1;if(fo===oo)return!0;const ho=so[fo-1];if(isUnicodeWhitespaceCharacter(ho.codePoint))return!1;if(!isPunctuationCharacter(ho.codePoint)||po>=io)return!0;const mo=so[po];return isUnicodeWhitespaceCharacter(mo.codePoint)||isPunctuationCharacter(mo.codePoint)};for(let fo=oo;fooo&&!isPunctuationCharacter(so[ho-1].codePoint)&&(xo=!1);const Eo=so[mo];isPunctuationCharacter(Eo.codePoint)||(_o=!1)}if(!xo&&!_o)break;const So=mo-ho;return{type:xo?_o?"both":"opener":"closer",startIndex:ho,endIndex:mo,thickness:So,originalThickness:So}}}}return null}function ro(oo,io){const so=eo.getNodePoints();return so[oo.startIndex].codePoint!==so[io.startIndex].codePoint||(oo.type==="both"||io.type==="both")&&(oo.originalThickness+io.originalThickness)%3===0&&oo.originalThickness%3!==0?{paired:!1,opener:!0,closer:!0}:{paired:!0}}function no(oo,io,so){let ao=1;oo.thickness>1&&io.thickness>1&&(ao=2),so=eo.resolveInternalTokens(so,oo.endIndex,io.startIndex);const lo={nodeType:ao===1?EmphasisType:StrongType,startIndex:oo.endIndex-ao,endIndex:io.startIndex+ao,thickness:ao,children:so},uo=oo.thickness>ao?{type:oo.type,startIndex:oo.startIndex,endIndex:oo.endIndex-ao,thickness:oo.thickness-ao,originalThickness:oo.originalThickness}:void 0,co=io.thickness>ao?{type:io.type,startIndex:io.startIndex+ao,endIndex:io.endIndex,thickness:io.thickness-ao,originalThickness:io.originalThickness}:void 0;return{tokens:[lo],remainOpenerDelimiter:uo,remainCloserDelimiter:co}}},parse$h=function(eo){return{parse:to=>to.map(ro=>{const no=eo.parseInlineTokens(ro.children);return eo.shouldReservePosition?{type:ro.nodeType,position:eo.calcPosition(ro),children:no}:{type:ro.nodeType,children:no}})}},uniqueName$f="@yozora/tokenizer-emphasis";class EmphasisTokenizer extends BaseInlineTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$f,priority:ro.priority??TokenizerPriority.CONTAINING_INLINE});Ws(this,"match",match$h);Ws(this,"parse",parse$h)}}function match$g(eo){const{nodeType:to,markers:ro,markersRequired:no,checkInfoString:oo}=this;return{isContainingBlock:!1,eatOpener:io,eatAndInterruptPreviousSibling:so,eatContinuationText:ao};function io(lo){if(lo.countOfPrecedeSpaces>=4)return null;const{endIndex:uo,firstNonWhitespaceIndex:co}=lo;if(co+no-1>=uo)return null;const{nodePoints:fo,startIndex:po}=lo,ho=fo[co].codePoint;if(ro.indexOf(ho)<0)return null;const mo=eatOptionalCharacters(fo,co+1,uo,ho),vo=mo-co;if(vo=uo.markerCount){for(;bo=po)return{status:"closing",nextIndex:po}}}const vo=Math.min(fo+uo.indent,ho,po-1);return uo.lines.push({nodePoints:co,startIndex:vo,endIndex:po,firstNonWhitespaceIndex:ho,countOfPrecedeSpaces:mo}),{status:"opening",nextIndex:po}}}class FencedBlockTokenizer extends BaseBlockTokenizer{constructor(ro){super({name:ro.name,priority:ro.priority??TokenizerPriority.FENCED_BLOCK});Ws(this,"nodeType");Ws(this,"markers",[]);Ws(this,"markersRequired");Ws(this,"checkInfoString");Ws(this,"match",match$g);this.nodeType=ro.nodeType,this.markers=ro.markers,this.markersRequired=ro.markersRequired,this.checkInfoString=ro.checkInfoString}}const match$f=function(eo){return{...match$g.call(this,eo),isContainingBlock:!1}},parse$g=function(eo){return{parse:to=>to.map(ro=>{const no=ro.infoString;let oo=0;const io=[];for(;oo0?so:null,meta:ao.length>0?ao:null,value:uo}:{type:CodeType,lang:so.length>0?so:null,meta:ao.length>0?ao:null,value:uo}})}},uniqueName$e="@yozora/tokenizer-fenced-code";class FencedCodeTokenizer extends FencedBlockTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$e,priority:ro.priority??TokenizerPriority.FENCED_BLOCK,nodeType:CodeType,markers:[AsciiCodePoint.BACKTICK,AsciiCodePoint.TILDE],markersRequired:3,checkInfoString:(no,oo)=>{if(oo===AsciiCodePoint.BACKTICK){for(const io of no)if(io.codePoint===AsciiCodePoint.BACKTICK)return!1}return!0}});Ws(this,"match",match$f);Ws(this,"parse",parse$g)}}const match$e=function(){return{isContainingBlock:!1,eatOpener:eo,eatAndInterruptPreviousSibling:to};function eo(ro){if(ro.countOfPrecedeSpaces>=4)return null;const{nodePoints:no,startIndex:oo,endIndex:io,firstNonWhitespaceIndex:so}=ro;if(so>=io||no[so].codePoint!==AsciiCodePoint.NUMBER_SIGN)return null;const ao=eatOptionalCharacters(no,so+1,io,AsciiCodePoint.NUMBER_SIGN),lo=ao-so;if(lo>6||ao+1to.map(ro=>{const{nodePoints:no,firstNonWhitespaceIndex:oo,endIndex:io}=ro.line;let[so,ao]=calcTrimBoundaryOfCodePoints(no,oo+ro.depth,io),lo=0;for(let ho=ao-1;ho>=so&&no[ho].codePoint===AsciiCodePoint.NUMBER_SIGN;--ho)lo+=1;if(lo>0){let ho=0,mo=ao-1-lo;for(;mo>=so;--mo){const vo=no[mo].codePoint;if(!isWhitespaceCharacter(vo))break;ho+=1}(ho>0||mo=ro)return null;const oo=no;let io=eo[no].codePoint;if(!isAsciiLetter(io)&&io!==AsciiCodePoint.UNDERSCORE&&io!==AsciiCodePoint.COLON)return null;for(no=oo+1;nouo&&(ao.value={startIndex:uo,endIndex:co});break}}if(ao.value!=null)return{attribute:ao,nextIndex:no}}return{attribute:ao,nextIndex:so}}function eatHTMLTagName(eo,to,ro){if(to>=ro||!isAsciiLetter(eo[to].codePoint))return null;let no=to;for(;no=ro)return ro;const oo=eo[to].codePoint;return isWhitespaceCharacter(oo)||oo===AsciiCodePoint.CLOSE_ANGLE?to+1:null}function eatEndCondition1(eo,to,ro){for(let no=to;no=ro||eo[io].codePoint!==AsciiCodePoint.CLOSE_ANGLE){no+=1;continue}const ao=calcStringFromNodePoints(eo,oo,io,!0).toLowerCase();if(includedTags$1.includes(ao))return io}return null}function eatStartCondition2(eo,to,ro){const no=to;return no+2=ro)return ro;const oo=eo[to].codePoint;return isWhitespaceCharacter(oo)||oo===AsciiCodePoint.CLOSE_ANGLE?to+1:oo===AsciiCodePoint.SLASH&&to+1=ro)return null;let io=to;if(oo){for(;io=ro)return null;eo[io].codePoint===AsciiCodePoint.SLASH&&(io+=1)}else io=eatOptionalWhitespaces(eo,to,ro);if(io>=ro||eo[io].codePoint!==AsciiCodePoint.CLOSE_ANGLE)return null;for(io+=1;io=4)return null;const{nodePoints:so,startIndex:ao,endIndex:lo,firstNonWhitespaceIndex:uo}=io;if(uo>=lo||so[uo].codePoint!==AsciiCodePoint.OPEN_ANGLE)return null;const co=uo+1,fo=no(so,co,lo);if(fo==null)return null;const{condition:po}=fo;let ho=!1;po!==6&&po!==7&&oo(so,fo.nextIndex,lo,po)!=null&&(ho=!0);const mo=lo;return{token:{nodeType:HtmlType,position:{start:calcStartPoint(so,ao),end:calcEndPoint(so,mo-1)},condition:po,lines:[io]},nextIndex:mo,saturated:ho}}function to(io,so){const ao=eo(io);if(ao==null||ao.token.condition===7)return null;const{token:lo,nextIndex:uo}=ao;return{token:lo,nextIndex:uo,remainingSibling:so}}function ro(io,so){const{nodePoints:ao,endIndex:lo,firstNonWhitespaceIndex:uo}=io,co=oo(ao,uo,lo,so.condition);return co===-1?{status:"notMatched"}:(so.lines.push(io),co!=null?{status:"closing",nextIndex:lo}:{status:"opening",nextIndex:lo})}function no(io,so,ao){let lo=null;if(so>=ao)return null;if(lo=eatStartCondition2(io,so,ao),lo!=null)return{nextIndex:lo,condition:2};if(lo=eatStartCondition3(io,so,ao),lo!=null)return{nextIndex:lo,condition:3};if(lo=eatStartCondition4(io,so,ao),lo!=null)return{nextIndex:lo,condition:4};if(lo=eatStartCondition5(io,so,ao),lo!=null)return{nextIndex:lo,condition:5};if(io[so].codePoint!==AsciiCodePoint.SLASH){const mo=so,vo=eatHTMLTagName(io,mo,ao);if(vo==null)return null;const bo={startIndex:mo,endIndex:vo},_o=calcStringFromNodePoints(io,bo.startIndex,bo.endIndex).toLowerCase();return lo=eatStartCondition1(io,bo.endIndex,ao,_o),lo!=null?{nextIndex:lo,condition:1}:(lo=eatStartCondition6(io,bo.endIndex,ao,_o),lo!=null?{nextIndex:lo,condition:6}:(lo=eatStartCondition7(io,bo.endIndex,ao,_o,!0),lo!=null?{nextIndex:lo,condition:7}:null))}const uo=so+1,co=eatHTMLTagName(io,uo,ao);if(co==null)return null;const fo={startIndex:uo,endIndex:co},ho=calcStringFromNodePoints(io,fo.startIndex,fo.endIndex).toLowerCase();return lo=eatStartCondition6(io,fo.endIndex,ao,ho),lo!=null?{nextIndex:lo,condition:6}:(lo=eatStartCondition7(io,fo.endIndex,ao,ho,!1),lo!=null?{nextIndex:lo,condition:7}:null)}function oo(io,so,ao,lo){switch(lo){case 1:return eatEndCondition1(io,so,ao)==null?null:ao;case 2:return eatEndCondition2(io,so,ao)==null?null:ao;case 3:return eatEndCondition3(io,so,ao)==null?null:ao;case 4:return eatEndCondition4(io,so,ao)==null?null:ao;case 5:return eatEndCondition5(io,so,ao)==null?null:ao;case 6:case 7:return eatOptionalWhitespaces(io,so,ao)>=ao?-1:null}}},parse$e=function(eo){return{parse:to=>to.map(ro=>{const no=mergeContentLinesFaithfully(ro.lines);return eo.shouldReservePosition?{type:"html",position:ro.position,value:calcStringFromNodePoints(no)}:{type:"html",value:calcStringFromNodePoints(no)}})}},uniqueName$c="@yozora/tokenizer-html-block";class HtmlBlockTokenizer extends BaseBlockTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$c,priority:ro.priority??TokenizerPriority.ATOMIC});Ws(this,"match",match$d);Ws(this,"parse",parse$e)}}function eatHtmlInlineCDataDelimiter(eo,to,ro){let no=to;if(no+11>=ro||eo[no+1].codePoint!==AsciiCodePoint.EXCLAMATION_MARK||eo[no+2].codePoint!==AsciiCodePoint.OPEN_BRACKET||eo[no+3].codePoint!==AsciiCodePoint.UPPERCASE_C||eo[no+4].codePoint!==AsciiCodePoint.UPPERCASE_D||eo[no+5].codePoint!==AsciiCodePoint.UPPERCASE_A||eo[no+6].codePoint!==AsciiCodePoint.UPPERCASE_T||eo[no+7].codePoint!==AsciiCodePoint.UPPERCASE_A||eo[no+8].codePoint!==AsciiCodePoint.OPEN_BRACKET)return null;const oo=no+9;for(no=oo;no=ro)return null;if(eo[no+1].codePoint===AsciiCodePoint.CLOSE_BRACKET&&eo[no+2].codePoint===AsciiCodePoint.CLOSE_ANGLE)return{type:"full",startIndex:to,endIndex:no+3,htmlType:"cdata"}}return null}function eatHtmlInlineClosingDelimiter(eo,to,ro){let no=to;if(no+3>=ro||eo[no+1].codePoint!==AsciiCodePoint.SLASH)return null;const oo=no+2,io=eatHTMLTagName(eo,oo,ro);return io==null||(no=eatOptionalWhitespaces(eo,io,ro),no>=ro||eo[no].codePoint!==AsciiCodePoint.CLOSE_ANGLE)?null:{type:"full",startIndex:to,endIndex:no+1,htmlType:"closing",tagName:{startIndex:oo,endIndex:io}}}function eatHtmlInlineCommentDelimiter(eo,to,ro){let no=to;if(no+6>=ro||eo[no+1].codePoint!==AsciiCodePoint.EXCLAMATION_MARK||eo[no+2].codePoint!==AsciiCodePoint.MINUS_SIGN||eo[no+3].codePoint!==AsciiCodePoint.MINUS_SIGN||eo[no+4].codePoint===AsciiCodePoint.CLOSE_ANGLE||eo[no+4].codePoint===AsciiCodePoint.MINUS_SIGN&&eo[no+5].codePoint===AsciiCodePoint.CLOSE_ANGLE)return null;const oo=no+4;for(no=oo;no2||no+2>=ro||eo[no+2].codePoint!==AsciiCodePoint.CLOSE_ANGLE?null:{type:"full",startIndex:to,endIndex:no+3,htmlType:"comment"}}return null}function eatHtmlInlineDeclarationDelimiter(eo,to,ro){let no=to;if(no+4>=ro||eo[no+1].codePoint!==AsciiCodePoint.EXCLAMATION_MARK)return null;const oo=no+2;for(no=oo;no=ro||!isWhitespaceCharacter(eo[no].codePoint))return null;const io=no,so=no+1;for(no=so;no=ro||eo[no+1].codePoint!==AsciiCodePoint.QUESTION_MARK)return null;const oo=no+2;for(no=oo;no=ro)return null;if(eo[no+1].codePoint===AsciiCodePoint.CLOSE_ANGLE)return{type:"full",startIndex:to,endIndex:no+2,htmlType:"instruction"}}return null}function eatHtmlInlineTokenOpenDelimiter(eo,to,ro){let no=to;if(no+2>=ro)return null;const oo=no+1,io=eatHTMLTagName(eo,oo,ro);if(io==null)return null;const so=[];for(no=io;no=ro)return null;let ao=!1;return eo[no].codePoint===AsciiCodePoint.SLASH&&(no+=1,ao=!0),no>=ro||eo[no].codePoint!==AsciiCodePoint.CLOSE_ANGLE?null:{type:"full",startIndex:to,endIndex:no+1,htmlType:"open",tagName:{startIndex:oo,endIndex:io},attributes:so,selfClosed:ao}}const match$c=function(eo){return{findDelimiter:()=>genFindDelimiter(to),processSingleDelimiter:ro};function to(no,oo){const io=eo.getNodePoints();for(let so=no;so=oo));++so)switch(io[so].codePoint){case AsciiCodePoint.BACKSLASH:so+=1;break;case AsciiCodePoint.OPEN_ANGLE:{const lo=tryToEatDelimiter(io,so,oo);if(lo!=null)return lo;break}}return null}function ro(no){return[{...no,nodeType:HtmlType}]}};function tryToEatDelimiter(eo,to,ro){let no=null;return no=eatHtmlInlineTokenOpenDelimiter(eo,to,ro),no!=null||(no=eatHtmlInlineClosingDelimiter(eo,to,ro),no!=null)||(no=eatHtmlInlineCommentDelimiter(eo,to,ro),no!=null)||(no=eatHtmlInlineInstructionDelimiter(eo,to,ro),no!=null)||(no=eatHtmlInlineDeclarationDelimiter(eo,to,ro),no!=null)||(no=eatHtmlInlineCDataDelimiter(eo,to,ro)),no}const parse$d=function(eo){return{parse:to=>to.map(ro=>{const{startIndex:no,endIndex:oo}=ro,io=eo.getNodePoints(),so=calcStringFromNodePoints(io,no,oo);return eo.shouldReservePosition?{type:HtmlType,position:eo.calcPosition(ro),value:so}:{type:HtmlType,value:so}})}},uniqueName$b="@yozora/tokenizer-html-inline";class HtmlInlineTokenizer extends BaseInlineTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$b,priority:ro.priority??TokenizerPriority.ATOMIC});Ws(this,"match",match$c);Ws(this,"parse",parse$d)}}const checkBalancedBracketsStatus=(eo,to,ro,no)=>{let oo=eo,io=0;const so=()=>{switch(no[oo].codePoint){case AsciiCodePoint.BACKSLASH:oo+=1;break;case AsciiCodePoint.OPEN_BRACKET:io+=1;break;case AsciiCodePoint.CLOSE_BRACKET:io-=1;break}};for(const ao of ro)if(!(ao.startIndexto)break;for(;oo0?1:0};function eatLinkDestination(eo,to,ro){if(to>=ro)return-1;let no=to;switch(eo[no].codePoint){case AsciiCodePoint.OPEN_ANGLE:{for(no+=1;no=ro)return-1;let no=to;const oo=eo[no].codePoint;switch(oo){case AsciiCodePoint.DOUBLE_QUOTE:case AsciiCodePoint.SINGLE_QUOTE:{for(no+=1;noio.line+1)return-1;break}}}break}case AsciiCodePoint.OPEN_PARENTHESIS:{let io=1;for(no+=1;noso.line+1)return-1;break}case AsciiCodePoint.OPEN_PARENTHESIS:io+=1;break;case AsciiCodePoint.CLOSE_PARENTHESIS:if(io-=1,io===0)return no+1;break}}break}case AsciiCodePoint.CLOSE_PARENTHESIS:return no;default:return-1}return-1}const match$b=function(eo){return{findDelimiter:()=>genFindDelimiter(to),isDelimiterPair:ro,processDelimiterPair:no};function to(oo,io){const so=eo.getNodePoints(),ao=eo.getBlockEndIndex();for(let lo=oo;lo=io||so[lo+1].codePoint!==AsciiCodePoint.OPEN_PARENTHESIS)break;const co=eatOptionalWhitespaces(so,lo+2,ao),fo=eatLinkDestination(so,co,ao);if(fo<0)break;const po=eatOptionalWhitespaces(so,fo,ao),ho=eatLinkTitle(so,po,ao);if(ho<0)break;const mo=lo,vo=eatOptionalWhitespaces(so,ho,ao)+1;if(vo>ao||so[vo-1].codePoint!==AsciiCodePoint.CLOSE_PARENTHESIS)break;return{type:"closer",startIndex:mo,endIndex:vo,destinationContent:coto.map(ro=>{const no=eo.getNodePoints();let oo="";if(ro.destinationContent!=null){let{startIndex:lo,endIndex:uo}=ro.destinationContent;no[lo].codePoint===AsciiCodePoint.OPEN_ANGLE&&(lo+=1,uo-=1);const co=calcEscapedStringFromNodePoints(no,lo,uo,!0);oo=eo.formatUrl(co)}let io;if(ro.titleContent!=null){const{startIndex:lo,endIndex:uo}=ro.titleContent;io=calcEscapedStringFromNodePoints(no,lo+1,uo-1)}const so=eo.parseInlineTokens(ro.children);return eo.shouldReservePosition?{type:LinkType,position:eo.calcPosition(ro),url:oo,title:io,children:so}:{type:LinkType,url:oo,title:io,children:so}})}},uniqueName$a="@yozora/tokenizer-link";class LinkTokenizer extends BaseInlineTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$a,priority:ro.priority??TokenizerPriority.LINKS});Ws(this,"match",match$b);Ws(this,"parse",parse$c)}}function calcImageAlt(eo){return eo.map(to=>to.value!=null?to.value:to.alt!=null?to.alt:to.children!=null?calcImageAlt(to.children):"").join("")}const match$a=function(eo){return{findDelimiter:()=>genFindDelimiter(to),isDelimiterPair:ro,processDelimiterPair:no};function to(oo,io){const so=eo.getNodePoints(),ao=eo.getBlockEndIndex();for(let lo=oo;lo=io||so[lo+1].codePoint!==AsciiCodePoint.OPEN_PARENTHESIS)break;const co=eatOptionalWhitespaces(so,lo+2,ao),fo=eatLinkDestination(so,co,ao);if(fo<0)break;const po=eatOptionalWhitespaces(so,fo,ao),ho=eatLinkTitle(so,po,ao);if(ho<0)break;const mo=lo,vo=eatOptionalWhitespaces(so,ho,ao)+1;if(vo>ao||so[vo-1].codePoint!==AsciiCodePoint.CLOSE_PARENTHESIS)break;return{type:"closer",startIndex:mo,endIndex:vo,destinationContent:coto.map(ro=>{const no=eo.getNodePoints();let oo="";if(ro.destinationContent!=null){let{startIndex:uo,endIndex:co}=ro.destinationContent;no[uo].codePoint===AsciiCodePoint.OPEN_ANGLE&&(uo+=1,co-=1);const fo=calcEscapedStringFromNodePoints(no,uo,co,!0);oo=eo.formatUrl(fo)}const io=eo.parseInlineTokens(ro.children),so=calcImageAlt(io);let ao;if(ro.titleContent!=null){const{startIndex:uo,endIndex:co}=ro.titleContent;ao=calcEscapedStringFromNodePoints(no,uo+1,co-1)}return eo.shouldReservePosition?{type:ImageType$1,position:eo.calcPosition(ro),url:oo,alt:so,title:ao}:{type:ImageType$1,url:oo,alt:so,title:ao}})}},uniqueName$9="@yozora/tokenizer-image";class ImageTokenizer extends BaseInlineTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$9,priority:ro.priority??TokenizerPriority.LINKS});Ws(this,"match",match$a);Ws(this,"parse",parse$b)}}const match$9=function(eo){return{findDelimiter:()=>genFindDelimiter(to),isDelimiterPair:ro,processDelimiterPair:no};function to(oo,io){const so=eo.getNodePoints();for(let ao=oo;ao=io||so[ao+1].codePoint!==AsciiCodePoint.OPEN_BRACKET)break;return{type:"opener",startIndex:ao,endIndex:ao+2,brackets:[]}}case AsciiCodePoint.CLOSE_BRACKET:{const uo={type:"closer",startIndex:ao,endIndex:ao+1,brackets:[]};if(ao+1>=io||so[ao+1].codePoint!==AsciiCodePoint.OPEN_BRACKET)return uo;const co=eatLinkLabel(so,ao+1,io);return co.nextIndex<0?uo:co.labelAndIdentifier==null?{type:"closer",startIndex:ao,endIndex:co.nextIndex,brackets:[{startIndex:ao+1,endIndex:co.nextIndex}]}:{type:"closer",startIndex:ao,endIndex:co.nextIndex,brackets:[{startIndex:ao+1,endIndex:co.nextIndex,label:co.labelAndIdentifier.label,identifier:co.labelAndIdentifier.identifier}]}}}return null}function ro(oo,io,so){const ao=eo.getNodePoints();switch(checkBalancedBracketsStatus(oo.endIndex,io.startIndex,so,ao)){case-1:return{paired:!1,opener:!1,closer:!0};case 0:return{paired:!0};case 1:return{paired:!1,opener:!0,closer:!1}}}function no(oo,io,so){const ao=eo.getNodePoints(),lo=io.brackets[0];if(lo!=null&&lo.identifier!=null)return eo.hasDefinition(lo.identifier)?{tokens:[{nodeType:ImageReferenceType,startIndex:oo.startIndex,endIndex:lo.endIndex,referenceType:"full",label:lo.label,identifier:lo.identifier,children:eo.resolveInternalTokens(so,oo.endIndex,io.startIndex)}]}:{tokens:so};const{nextIndex:uo,labelAndIdentifier:co}=eatLinkLabel(ao,oo.endIndex-1,io.startIndex+1);return uo===io.startIndex+1&&co!=null&&eo.hasDefinition(co.identifier)?{tokens:[{nodeType:ImageReferenceType,startIndex:oo.startIndex,endIndex:io.endIndex,referenceType:lo==null?"shortcut":"collapsed",label:co.label,identifier:co.identifier,children:eo.resolveInternalTokens(so,oo.endIndex,io.startIndex)}]}:{tokens:so}}},parse$a=function(eo){return{parse:to=>to.map(ro=>{const{identifier:no,label:oo,referenceType:io}=ro,so=eo.parseInlineTokens(ro.children),ao=calcImageAlt(so);return eo.shouldReservePosition?{type:ImageReferenceType,position:eo.calcPosition(ro),identifier:no,label:oo,referenceType:io,alt:ao}:{type:ImageReferenceType,identifier:no,label:oo,referenceType:io,alt:ao}})}},uniqueName$8="@yozora/tokenizer-image-reference";class ImageReferenceTokenizer extends BaseInlineTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$8,priority:ro.priority??TokenizerPriority.LINKS});Ws(this,"match",match$9);Ws(this,"parse",parse$a)}}const match$8=function(){return{isContainingBlock:!1,eatOpener:eo,eatContinuationText:to};function eo(ro){if(ro.countOfPrecedeSpaces<4)return null;const{nodePoints:no,startIndex:oo,firstNonWhitespaceIndex:io,endIndex:so}=ro;let ao=oo+4;if(no[oo].codePoint===AsciiCodePoint.SPACE&&no[oo+3].codePoint===VirtualCodePoint.SPACE){let co=oo+1;for(;coto.map(ro=>{const{lines:no}=ro;let oo=0,io=no.length;for(;ooco+1&&so.push({type:"opener",startIndex:co+1,endIndex:po}),co=po-1}break}case AsciiCodePoint.BACKTICK:{const po=co,ho=eatOptionalCharacters(no,co+1,io,fo);so.push({type:"both",startIndex:po,endIndex:ho}),co=ho-1;break}}}let ao=0,lo=-1,uo=null;for(;ao=co))continue;lo=fo;let po=null,ho=null;for(;ao=co&&vo.type!=="closer")break}if(ao+1>=so.length)return;po=so[ao];const mo=po.endIndex-po.startIndex;for(let vo=ao+1;voto.map(ro=>{const no=eo.getNodePoints();let oo=ro.startIndex+ro.thickness,io=ro.endIndex-ro.thickness,so=!0;for(let uo=oo;uogenFindDelimiter(to),isDelimiterPair:ro,processDelimiterPair:no,processSingleDelimiter:oo};function to(io,so){const ao=eo.getNodePoints();for(let lo=io;lo=so||ao[lo+1].codePoint!==AsciiCodePoint.OPEN_BRACKET)break;const co=eatLinkLabel(ao,lo+1,so);if(co.nextIndex===-1)return{type:"opener",startIndex:lo+1,endIndex:lo+2,brackets:[]};if(co.labelAndIdentifier==null){lo=co.nextIndex-1;break}const fo=[{startIndex:lo+1,endIndex:co.nextIndex,label:co.labelAndIdentifier.label,identifier:co.labelAndIdentifier.identifier}],po={type:"closer",startIndex:lo,endIndex:co.nextIndex,brackets:fo};for(lo=co.nextIndex;lo=ao.length)break;if(uo+1to.map(ro=>{const{identifier:no,label:oo,referenceType:io}=ro,so=eo.parseInlineTokens(ro.children);return eo.shouldReservePosition?{type:LinkReferenceType,position:eo.calcPosition(ro),identifier:no,label:oo,referenceType:io,children:so}:{type:LinkReferenceType,identifier:no,label:oo,referenceType:io,children:so}})}},uniqueName$5="@yozora/tokenizer-link-reference";class LinkReferenceTokenizer extends BaseInlineTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$5,priority:ro.priority??TokenizerPriority.LINKS});Ws(this,"match",match$6);Ws(this,"parse",parse$7)}}const match$5=function(){const{emptyItemCouldNotInterruptedTypes:eo,enableTaskListItem:to}=this;return{isContainingBlock:!0,eatOpener:ro,eatAndInterruptPreviousSibling:no,eatContinuationText:oo};function ro(io){if(io.countOfPrecedeSpaces>=4)return null;const{nodePoints:so,startIndex:ao,endIndex:lo,firstNonWhitespaceIndex:uo}=io;if(uo>=lo)return null;let co=!1,fo=null,po,ho,mo=uo,vo=so[mo].codePoint;if(mo+1uo&&mo-uo<=9&&(vo===AsciiCodePoint.DOT||vo===AsciiCodePoint.CLOSE_PARENTHESIS)&&(mo+=1,co=!0,fo=vo)}if(co||(vo===AsciiCodePoint.PLUS_SIGN||vo===AsciiCodePoint.MINUS_SIGN||vo===AsciiCodePoint.ASTERISK)&&(mo+=1,fo=vo),fo==null)return null;let bo=0,xo=mo;for(xo4&&(xo-=bo-1,bo=1),bo===0&&xo=lo){if(so.countOfTopBlankLine>=0&&(so.countOfTopBlankLine+=1,so.countOfTopBlankLine>1))return{status:"notMatched"}}else so.countOfTopBlankLine=-1;return{status:"opening",nextIndex:Math.min(ao+so.indent,lo-1)}}};function eatTaskStatus(eo,to,ro){let no=to;for(;no=ro||eo[no].codePoint!==AsciiCodePoint.OPEN_BRACKET||eo[no+2].codePoint!==AsciiCodePoint.CLOSE_BRACKET||!isWhitespaceCharacter(eo[no+3].codePoint))return{status:null,nextIndex:to};let oo;switch(eo[no+1].codePoint){case AsciiCodePoint.SPACE:oo=TaskStatus.TODO;break;case AsciiCodePoint.MINUS_SIGN:oo=TaskStatus.DOING;break;case AsciiCodePoint.LOWERCASE_X:case AsciiCodePoint.UPPERCASE_X:oo=TaskStatus.DONE;break;default:return{status:null,nextIndex:to}}return{status:oo,nextIndex:no+4}}const parse$6=function(eo){return{parse:to=>{const ro=[];let no=[];for(let io=0;io{if(eo.length<=0)return null;let ro=eo.some(io=>{if(io.children==null||io.children.length<=1)return!1;let so=io.children[0].position;for(let ao=1;ao1){let io=eo[0];for(let so=1;so{const so=to.parseBlockTokens(io.children),ao=ro?so:so.map(uo=>uo.type===ParagraphType$1?uo.children:uo).flat();return to.shouldReservePosition?{type:ListItemType,position:io.position,status:io.status,children:ao}:{type:ListItemType,status:io.status,children:ao}});return to.shouldReservePosition?{type:ListType,position:{start:{...eo[0].position.start},end:{...eo[eo.length-1].position.end}},ordered:eo[0].ordered,orderType:eo[0].orderType,start:eo[0].order,marker:eo[0].marker,spread:ro,children:no}:{type:ListType,ordered:eo[0].ordered,orderType:eo[0].orderType,start:eo[0].order,marker:eo[0].marker,spread:ro,children:no}},uniqueName$4="@yozora/tokenizer-list";class ListTokenizer extends BaseBlockTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$4,priority:ro.priority??TokenizerPriority.CONTAINING_BLOCK});Ws(this,"enableTaskListItem");Ws(this,"emptyItemCouldNotInterruptedTypes");Ws(this,"match",match$5);Ws(this,"parse",parse$6);this.enableTaskListItem=ro.enableTaskListItem??!1,this.emptyItemCouldNotInterruptedTypes=ro.emptyItemCouldNotInterruptedTypes??[ParagraphType$1]}}const match$4=function(){return{isContainingBlock:!1,eatOpener:eo,eatContinuationText:to,eatLazyContinuationText:ro};function eo(no){const{endIndex:oo,firstNonWhitespaceIndex:io}=no;if(io>=oo)return null;const so=[no],ao=calcPositionFromPhrasingContentLines(so);return{token:{nodeType:ParagraphType$1,position:ao,lines:so},nextIndex:oo}}function to(no,oo){const{endIndex:io,firstNonWhitespaceIndex:so}=no;return so>=io?{status:"notMatched"}:(oo.lines.push(no),{status:"opening",nextIndex:io})}function ro(no,oo){return to(no,oo)}},parse$5=function(eo){return{parse:to=>{const ro=[];for(const no of to){const oo=mergeAndStripContentLines(no.lines),io=eo.processInlines(oo);if(io.length<=0)continue;const so=eo.shouldReservePosition?{type:ParagraphType$1,position:no.position,children:io}:{type:ParagraphType$1,children:io};ro.push(so)}return ro}}},uniqueName$3="@yozora/tokenizer-paragraph";class ParagraphTokenizer extends BaseBlockTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$3,priority:ro.priority??TokenizerPriority.FALLBACK});Ws(this,"match",match$4);Ws(this,"parse",parse$5)}extractPhrasingContentLines(ro){return ro.lines}buildBlockToken(ro){const no=trimBlankLines(ro);if(no.length<=0)return null;const oo=calcPositionFromPhrasingContentLines(no);return{nodeType:ParagraphType$1,lines:no,position:oo}}}const match$3=function(eo){return{isContainingBlock:!1,eatOpener:to,eatAndInterruptPreviousSibling:ro};function to(){return null}function ro(no,oo){const{nodePoints:io,endIndex:so,firstNonWhitespaceIndex:ao,countOfPrecedeSpaces:lo}=no;if(lo>=4||ao>=so)return null;let uo=null,co=!1;for(let mo=ao;moto.map(ro=>{let no=1;switch(ro.marker){case AsciiCodePoint.EQUALS_SIGN:no=1;break;case AsciiCodePoint.MINUS_SIGN:no=2;break}const oo=mergeAndStripContentLines(ro.lines),io=eo.processInlines(oo);return eo.shouldReservePosition?{type:HeadingType,position:ro.position,depth:no,children:io}:{type:HeadingType,depth:no,children:io}})}},uniqueName$2="@yozora/tokenizer-setext-heading";class SetextHeadingTokenizer extends BaseBlockTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$2,priority:ro.priority??TokenizerPriority.ATOMIC});Ws(this,"match",match$3);Ws(this,"parse",parse$4)}}const match$2=function(){return{findDelimiter:()=>genFindDelimiter((eo,to)=>({type:"full",startIndex:eo,endIndex:to})),processSingleDelimiter:eo=>[{nodeType:TextType$1,startIndex:eo.startIndex,endIndex:eo.endIndex}]}},parse$3=function(eo){return{parse:to=>to.map(ro=>{const no=eo.getNodePoints();let oo=calcEscapedStringFromNodePoints(no,ro.startIndex,ro.endIndex);return oo=stripSpaces(oo),eo.shouldReservePosition?{type:TextType$1,position:eo.calcPosition(ro),value:oo}:{type:TextType$1,value:oo}})}},_stripRegex=/[^\S\n]*\n[^\S\n]*/g,stripSpaces=eo=>eo.replace(_stripRegex,` -`),uniqueName$1="@yozora/tokenizer-text";class TextTokenizer extends BaseInlineTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$1,priority:ro.priority??TokenizerPriority.FALLBACK});Ws(this,"match",match$2);Ws(this,"parse",parse$3)}findAndHandleDelimiter(ro,no){return{nodeType:TextType$1,startIndex:ro,endIndex:no}}}const match$1=function(){return{isContainingBlock:!1,eatOpener:eo,eatAndInterruptPreviousSibling:to};function eo(ro){if(ro.countOfPrecedeSpaces>=4)return null;const{nodePoints:no,startIndex:oo,endIndex:io,firstNonWhitespaceIndex:so}=ro;if(so+2>=io)return null;let ao,lo=0,uo=!0,co=!1;for(let po=so;poto.map(ro=>eo.shouldReservePosition?{type:ThematicBreakType,position:ro.position}:{type:ThematicBreakType})}},uniqueName="@yozora/tokenizer-thematic-break";class ThematicBreakTokenizer extends BaseBlockTokenizer{constructor(ro={}){super({name:ro.name??uniqueName,priority:ro.priority??TokenizerPriority.ATOMIC});Ws(this,"match",match$1);Ws(this,"parse",parse$2)}}class GfmParser extends DefaultParser{constructor(to={}){super({...to,blockFallbackTokenizer:to.blockFallbackTokenizer??new ParagraphTokenizer,inlineFallbackTokenizer:to.inlineFallbackTokenizer??new TextTokenizer}),this.useTokenizer(new IndentedCodeTokenizer).useTokenizer(new HtmlBlockTokenizer).useTokenizer(new SetextHeadingTokenizer).useTokenizer(new ThematicBreakTokenizer).useTokenizer(new BlockquoteTokenizer).useTokenizer(new ListTokenizer({enableTaskListItem:!1})).useTokenizer(new HeadingTokenizer).useTokenizer(new FencedCodeTokenizer).useTokenizer(new DefinitionTokenizer).useTokenizer(new HtmlInlineTokenizer).useTokenizer(new InlineCodeTokenizer).useTokenizer(new AutolinkTokenizer).useTokenizer(new BreakTokenizer).useTokenizer(new ImageTokenizer).useTokenizer(new ImageReferenceTokenizer).useTokenizer(new LinkTokenizer).useTokenizer(new LinkReferenceTokenizer).useTokenizer(new EmphasisTokenizer)}}const parser=new GfmParser({defaultParseOptions:{shouldReservePosition:!1}});class BlockquoteRenderer extends React.Component{shouldComponentUpdate(to){return this.props.children!==to.children}render(){const to=this.props.children;return jsxRuntimeExports.jsx("blockquote",{className:cls$b,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:to})})}}const cls$b=mergeStyles$1(astClasses.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 BreakRenderer extends React.Component{shouldComponentUpdate(){return!1}render(){return jsxRuntimeExports.jsx("br",{className:cls$a})}}const cls$a=mergeStyles$1(astClasses.break,{boxSizing:"border-box"});var prism={exports:{}};(function(eo){var to=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** - * Prism: Lightweight, robust, elegant syntax highlighting - * - * @license MIT - * @author Lea Verou - * @namespace - * @public - */var ro=function(no){var oo=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,io=0,so={},ao={manual:no.Prism&&no.Prism.manual,disableWorkerMessageHandler:no.Prism&&no.Prism.disableWorkerMessageHandler,util:{encode:function _o(So){return So instanceof lo?new lo(So.type,_o(So.content),So.alias):Array.isArray(So)?So.map(_o):So.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(ko){var _o=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(ko.stack)||[])[1];if(_o){var So=document.getElementsByTagName("script");for(var Eo in So)if(So[Eo].src==_o)return So[Eo]}return null}},isActive:function(_o,So,Eo){for(var ko="no-"+So;_o;){var wo=_o.classList;if(wo.contains(So))return!0;if(wo.contains(ko))return!1;_o=_o.parentElement}return!!Eo}},languages:{plain:so,plaintext:so,text:so,txt:so,extend:function(_o,So){var Eo=ao.util.clone(ao.languages[_o]);for(var ko in So)Eo[ko]=So[ko];return Eo},insertBefore:function(_o,So,Eo,ko){ko=ko||ao.languages;var wo=ko[_o],Co={};for(var Ro in wo)if(wo.hasOwnProperty(Ro)){if(Ro==So)for(var Ao in Eo)Eo.hasOwnProperty(Ao)&&(Co[Ao]=Eo[Ao]);Eo.hasOwnProperty(Ro)||(Co[Ro]=wo[Ro])}var Io=ko[_o];return ko[_o]=Co,ao.languages.DFS(ao.languages,function($o,Bo){Bo===Io&&$o!=_o&&(this[$o]=Co)}),Co},DFS:function _o(So,Eo,ko,wo){wo=wo||{};var Co=ao.util.objId;for(var Ro in So)if(So.hasOwnProperty(Ro)){Eo.call(So,Ro,So[Ro],ko||Ro);var Ao=So[Ro],Io=ao.util.type(Ao);Io==="Object"&&!wo[Co(Ao)]?(wo[Co(Ao)]=!0,_o(Ao,Eo,null,wo)):Io==="Array"&&!wo[Co(Ao)]&&(wo[Co(Ao)]=!0,_o(Ao,Eo,Ro,wo))}}},plugins:{},highlightAll:function(_o,So){ao.highlightAllUnder(document,_o,So)},highlightAllUnder:function(_o,So,Eo){var ko={callback:Eo,container:_o,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};ao.hooks.run("before-highlightall",ko),ko.elements=Array.prototype.slice.apply(ko.container.querySelectorAll(ko.selector)),ao.hooks.run("before-all-elements-highlight",ko);for(var wo=0,Co;Co=ko.elements[wo++];)ao.highlightElement(Co,So===!0,ko.callback)},highlightElement:function(_o,So,Eo){var ko=ao.util.getLanguage(_o),wo=ao.languages[ko];ao.util.setLanguage(_o,ko);var Co=_o.parentElement;Co&&Co.nodeName.toLowerCase()==="pre"&&ao.util.setLanguage(Co,ko);var Ro=_o.textContent,Ao={element:_o,language:ko,grammar:wo,code:Ro};function Io(Bo){Ao.highlightedCode=Bo,ao.hooks.run("before-insert",Ao),Ao.element.innerHTML=Ao.highlightedCode,ao.hooks.run("after-highlight",Ao),ao.hooks.run("complete",Ao),Eo&&Eo.call(Ao.element)}if(ao.hooks.run("before-sanity-check",Ao),Co=Ao.element.parentElement,Co&&Co.nodeName.toLowerCase()==="pre"&&!Co.hasAttribute("tabindex")&&Co.setAttribute("tabindex","0"),!Ao.code){ao.hooks.run("complete",Ao),Eo&&Eo.call(Ao.element);return}if(ao.hooks.run("before-highlight",Ao),!Ao.grammar){Io(ao.util.encode(Ao.code));return}if(So&&no.Worker){var $o=new Worker(ao.filename);$o.onmessage=function(Bo){Io(Bo.data)},$o.postMessage(JSON.stringify({language:Ao.language,code:Ao.code,immediateClose:!0}))}else Io(ao.highlight(Ao.code,Ao.grammar,Ao.language))},highlight:function(_o,So,Eo){var ko={code:_o,grammar:So,language:Eo};if(ao.hooks.run("before-tokenize",ko),!ko.grammar)throw new Error('The language "'+ko.language+'" has no grammar.');return ko.tokens=ao.tokenize(ko.code,ko.grammar),ao.hooks.run("after-tokenize",ko),lo.stringify(ao.util.encode(ko.tokens),ko.language)},tokenize:function(_o,So){var Eo=So.rest;if(Eo){for(var ko in Eo)So[ko]=Eo[ko];delete So.rest}var wo=new fo;return po(wo,wo.head,_o),co(_o,wo,So,wo.head,0),mo(wo)},hooks:{all:{},add:function(_o,So){var Eo=ao.hooks.all;Eo[_o]=Eo[_o]||[],Eo[_o].push(So)},run:function(_o,So){var Eo=ao.hooks.all[_o];if(!(!Eo||!Eo.length))for(var ko=0,wo;wo=Eo[ko++];)wo(So)}},Token:lo};no.Prism=ao;function lo(_o,So,Eo,ko){this.type=_o,this.content=So,this.alias=Eo,this.length=(ko||"").length|0}lo.stringify=function _o(So,Eo){if(typeof So=="string")return So;if(Array.isArray(So)){var ko="";return So.forEach(function(Io){ko+=_o(Io,Eo)}),ko}var wo={type:So.type,content:_o(So.content,Eo),tag:"span",classes:["token",So.type],attributes:{},language:Eo},Co=So.alias;Co&&(Array.isArray(Co)?Array.prototype.push.apply(wo.classes,Co):wo.classes.push(Co)),ao.hooks.run("wrap",wo);var Ro="";for(var Ao in wo.attributes)Ro+=" "+Ao+'="'+(wo.attributes[Ao]||"").replace(/"/g,""")+'"';return"<"+wo.tag+' class="'+wo.classes.join(" ")+'"'+Ro+">"+wo.content+""};function uo(_o,So,Eo,ko){_o.lastIndex=So;var wo=_o.exec(Eo);if(wo&&ko&&wo[1]){var Co=wo[1].length;wo.index+=Co,wo[0]=wo[0].slice(Co)}return wo}function co(_o,So,Eo,ko,wo,Co){for(var Ro in Eo)if(!(!Eo.hasOwnProperty(Ro)||!Eo[Ro])){var Ao=Eo[Ro];Ao=Array.isArray(Ao)?Ao:[Ao];for(var Io=0;Io=Co.reach);qo+=Go.value.length,Go=Go.next){var Xo=Go.value;if(So.length>_o.length)return;if(!(Xo instanceof lo)){var Zo=1,Qo;if(Ho){if(Qo=uo(Fo,qo,_o,Mo),!Qo||Qo.index>=_o.length)break;var Os=Qo.index,xs=Qo.index+Qo[0].length,Ts=qo;for(Ts+=Go.value.length;Os>=Ts;)Go=Go.next,Ts+=Go.value.length;if(Ts-=Go.value.length,qo=Ts,Go.value instanceof lo)continue;for(var Rs=Go;Rs!==So.tail&&(TsCo.reach&&(Co.reach=Cs);var Bs=Go.prev;Ds&&(Bs=po(So,Bs,Ds),qo+=Ds.length),ho(So,Bs,Zo);var zs=new lo(Ro,Bo?ao.tokenize(As,Bo):As,jo,As);if(Go=po(So,Bs,zs),Jo&&po(So,Go,Jo),Zo>1){var Ls={cause:Ro+","+Io,reach:Cs};co(_o,So,Eo,Go.prev,qo,Ls),Co&&Ls.reach>Co.reach&&(Co.reach=Ls.reach)}}}}}}function fo(){var _o={value:null,prev:null,next:null},So={value:null,prev:_o,next:null};_o.next=So,this.head=_o,this.tail=So,this.length=0}function po(_o,So,Eo){var ko=So.next,wo={value:Eo,prev:So,next:ko};return So.next=wo,ko.prev=wo,_o.length++,wo}function ho(_o,So,Eo){for(var ko=So.next,wo=0;wo/,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]},ro.languages.markup.tag.inside["attr-value"].inside.entity=ro.languages.markup.entity,ro.languages.markup.doctype.inside["internal-subset"].inside=ro.languages.markup,ro.hooks.add("wrap",function(no){no.type==="entity"&&(no.attributes.title=no.content.replace(/&/,"&"))}),Object.defineProperty(ro.languages.markup.tag,"addInlined",{value:function(oo,io){var so={};so["language-"+io]={pattern:/(^$)/i,lookbehind:!0,inside:ro.languages[io]},so.cdata=/^$/i;var ao={"included-cdata":{pattern://i,inside:so}};ao["language-"+io]={pattern:/[\s\S]+/,inside:ro.languages[io]};var lo={};lo[oo]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return oo}),"i"),lookbehind:!0,greedy:!0,inside:ao},ro.languages.insertBefore("markup","cdata",lo)}}),Object.defineProperty(ro.languages.markup.tag,"addAttribute",{value:function(no,oo){ro.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+no+")"+/\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:[oo,"language-"+oo],inside:ro.languages[oo]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),ro.languages.html=ro.languages.markup,ro.languages.mathml=ro.languages.markup,ro.languages.svg=ro.languages.markup,ro.languages.xml=ro.languages.extend("markup",{}),ro.languages.ssml=ro.languages.xml,ro.languages.atom=ro.languages.xml,ro.languages.rss=ro.languages.xml,function(no){var oo=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;no.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+oo.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\\((?:"+oo.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+oo.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+oo.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:oo,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:/[(){};:,]/},no.languages.css.atrule.inside.rest=no.languages.css;var io=no.languages.markup;io&&(io.tag.addInlined("style","css"),io.tag.addAttribute("style","css"))}(ro),ro.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:/[{}[\];(),.:]/},ro.languages.javascript=ro.languages.extend("clike",{"class-name":[ro.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}|\?\?=?|\?\.?|[~:]/}),ro.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,ro.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:ro.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:ro.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:ro.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:ro.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:ro.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),ro.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:ro.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"}}),ro.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),ro.languages.markup&&(ro.languages.markup.tag.addInlined("script","javascript"),ro.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")),ro.languages.js=ro.languages.javascript,function(){if(typeof ro>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var no="Loading…",oo=function(vo,bo){return"✖ Error "+vo+" while fetching file: "+bo},io="✖ Error: File does not exist or is empty",so={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},ao="data-src-status",lo="loading",uo="loaded",co="failed",fo="pre[data-src]:not(["+ao+'="'+uo+'"]):not(['+ao+'="'+lo+'"])';function po(vo,bo,xo){var _o=new XMLHttpRequest;_o.open("GET",vo,!0),_o.onreadystatechange=function(){_o.readyState==4&&(_o.status<400&&_o.responseText?bo(_o.responseText):_o.status>=400?xo(oo(_o.status,_o.statusText)):xo(io))},_o.send(null)}function ho(vo){var bo=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(vo||"");if(bo){var xo=Number(bo[1]),_o=bo[2],So=bo[3];return _o?So?[xo,Number(So)]:[xo,void 0]:[xo,xo]}}ro.hooks.add("before-highlightall",function(vo){vo.selector+=", "+fo}),ro.hooks.add("before-sanity-check",function(vo){var bo=vo.element;if(bo.matches(fo)){vo.code="",bo.setAttribute(ao,lo);var xo=bo.appendChild(document.createElement("CODE"));xo.textContent=no;var _o=bo.getAttribute("data-src"),So=vo.language;if(So==="none"){var Eo=(/\.(\w+)$/.exec(_o)||[,"none"])[1];So=so[Eo]||Eo}ro.util.setLanguage(xo,So),ro.util.setLanguage(bo,So);var ko=ro.plugins.autoloader;ko&&ko.loadLanguages(So),po(_o,function(wo){bo.setAttribute(ao,uo);var Co=ho(bo.getAttribute("data-range"));if(Co){var Ro=wo.split(/\r\n?|\n/g),Ao=Co[0],Io=Co[1]==null?Ro.length:Co[1];Ao<0&&(Ao+=Ro.length),Ao=Math.max(0,Math.min(Ao-1,Ro.length)),Io<0&&(Io+=Ro.length),Io=Math.max(0,Math.min(Io,Ro.length)),wo=Ro.slice(Ao,Io).join(` -`),bo.hasAttribute("data-start")||bo.setAttribute("data-start",String(Ao+1))}xo.textContent=wo,ro.highlightElement(xo)},function(wo){bo.setAttribute(ao,co),xo.textContent=wo})}}),ro.plugins.fileHighlight={highlight:function(bo){for(var xo=(bo||document).querySelectorAll(fo),_o=0,So;So=xo[_o++];)ro.highlightElement(So)}};var mo=!1;ro.fileHighlight=function(){mo||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),mo=!0),ro.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(prism);var prismExports=prism.exports;const Prism=getDefaultExportFromCjs(prismExports);function sheetForTag(eo){if(eo.sheet)return eo.sheet;for(var to=0;to0?charat(characters,--position):0,column--,character===10&&(column=1,line--),character}function next(){return character=position2||token$1(character)>3?"":" "}function escaping(eo,to){for(;--to&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(eo,caret()+(to<6&&peek()==32&&next()==32))}function delimiter(eo){for(;next();)switch(character){case eo:return position;case 34:case 39:eo!==34&&eo!==39&&delimiter(character);break;case 40:eo===41&&delimiter(eo);break;case 92:next();break}return position}function commenter(eo,to){for(;next()&&eo+character!==57;)if(eo+character===84&&peek()===47)break;return"/*"+slice(to,position-1)+"*"+from(eo===47?eo:next())}function identifier(eo){for(;!token$1(peek());)next();return slice(eo,position)}function compile(eo){return dealloc(parse$1("",null,null,null,[""],eo=alloc(eo),0,[0],eo))}function parse$1(eo,to,ro,no,oo,io,so,ao,lo){for(var uo=0,co=0,fo=so,po=0,ho=0,mo=0,vo=1,bo=1,xo=1,_o=0,So="",Eo=oo,ko=io,wo=no,Co=So;bo;)switch(mo=_o,_o=next()){case 40:if(mo!=108&&charat(Co,fo-1)==58){indexof(Co+=replace(delimit(_o),"&","&\f"),"&\f")!=-1&&(xo=-1);break}case 34:case 39:case 91:Co+=delimit(_o);break;case 9:case 10:case 13:case 32:Co+=whitespace(mo);break;case 92:Co+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),to,ro),lo);break;default:Co+="/"}break;case 123*vo:ao[uo++]=strlen(Co)*xo;case 125*vo:case 59:case 0:switch(_o){case 0:case 125:bo=0;case 59+co:xo==-1&&(Co=replace(Co,/\f/g,"")),ho>0&&strlen(Co)-fo&&append(ho>32?declaration(Co+";",no,ro,fo-1):declaration(replace(Co," ","")+";",no,ro,fo-2),lo);break;case 59:Co+=";";default:if(append(wo=ruleset(Co,to,ro,uo,co,oo,ao,So,Eo=[],ko=[],fo),io),_o===123)if(co===0)parse$1(Co,to,wo,wo,Eo,io,fo,ao,ko);else switch(po===99&&charat(Co,3)===110?100:po){case 100:case 108:case 109:case 115:parse$1(eo,wo,wo,no&&append(ruleset(eo,wo,wo,0,0,oo,ao,So,oo,Eo=[],fo),ko),oo,ko,fo,ao,no?Eo:ko);break;default:parse$1(Co,wo,wo,wo,[""],ko,0,ao,ko)}}uo=co=ho=0,vo=xo=1,So=Co="",fo=so;break;case 58:fo=1+strlen(Co),ho=mo;default:if(vo<1){if(_o==123)--vo;else if(_o==125&&vo++==0&&prev()==125)continue}switch(Co+=from(_o),_o*vo){case 38:xo=co>0?1:(Co+="\f",-1);break;case 44:ao[uo++]=(strlen(Co)-1)*xo,xo=1;break;case 64:peek()===45&&(Co+=delimit(next())),po=peek(),co=fo=strlen(So=Co+=identifier(caret())),_o++;break;case 45:mo===45&&strlen(Co)==2&&(vo=0)}}return io}function ruleset(eo,to,ro,no,oo,io,so,ao,lo,uo,co){for(var fo=oo-1,po=oo===0?io:[""],ho=sizeof(po),mo=0,vo=0,bo=0;mo0?po[xo]+" "+_o:replace(_o,/&\f/g,po[xo])))&&(lo[bo++]=So);return node(eo,to,ro,oo===0?RULESET:ao,lo,uo,co)}function comment(eo,to,ro){return node(eo,to,ro,COMMENT,from(char()),substr(eo,2,-2),0)}function declaration(eo,to,ro,no){return node(eo,to,ro,DECLARATION,substr(eo,0,no),substr(eo,no+1,-1),no)}function serialize(eo,to){for(var ro="",no=sizeof(eo),oo=0;oo6)switch(charat(eo,to+1)){case 109:if(charat(eo,to+4)!==45)break;case 102:return replace(eo,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat(eo,to+3)==108?"$3":"$2-$3"))+eo;case 115:return~indexof(eo,"stretch")?prefix(replace(eo,"stretch","fill-available"),to)+eo:eo}break;case 4949:if(charat(eo,to+1)!==115)break;case 6444:switch(charat(eo,strlen(eo)-3-(~indexof(eo,"!important")&&10))){case 107:return replace(eo,":",":"+WEBKIT)+eo;case 101:return replace(eo,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat(eo,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+eo}break;case 5936:switch(charat(eo,to+11)){case 114:return WEBKIT+eo+MS+replace(eo,/[svh]\w+-[tblr]{2}/,"tb")+eo;case 108:return WEBKIT+eo+MS+replace(eo,/[svh]\w+-[tblr]{2}/,"tb-rl")+eo;case 45:return WEBKIT+eo+MS+replace(eo,/[svh]\w+-[tblr]{2}/,"lr")+eo}return WEBKIT+eo+MS+eo+eo}return eo}var prefixer=function eo(to,ro,no,oo){if(to.length>-1&&!to.return)switch(to.type){case DECLARATION:to.return=prefix(to.value,to.length);break;case KEYFRAMES:return serialize([copy(to,{value:replace(to.value,"@","@"+WEBKIT)})],oo);case RULESET:if(to.length)return combine(to.props,function(io){switch(match(io,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(to,{props:[replace(io,/:(read-\w+)/,":"+MOZ+"$1")]})],oo);case"::placeholder":return serialize([copy(to,{props:[replace(io,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(to,{props:[replace(io,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(to,{props:[replace(io,/:(plac\w+)/,MS+"input-$1")]})],oo)}return""})}},defaultStylisPlugins=[prefixer],createCache=function eo(to){var ro=to.key;if(ro==="css"){var no=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(no,function(vo){var bo=vo.getAttribute("data-emotion");bo.indexOf(" ")!==-1&&(document.head.appendChild(vo),vo.setAttribute("data-s",""))})}var oo=to.stylisPlugins||defaultStylisPlugins,io={},so,ao=[];so=to.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+ro+' "]'),function(vo){for(var bo=vo.getAttribute("data-emotion").split(" "),xo=1;xoNumber.isNaN(Number(eo))).map(([eo,to])=>[eo,`var(${to})`]));Prism.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:/[{}[\];(),.:]/};Prism.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]};Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity;Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup;Prism.hooks.add("wrap",function(eo){eo.type==="entity"&&eo.attributes&&(eo.attributes.title=eo.content.replace(/&/,"&"))});Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function eo(to,ro){const no={};no["language-"+ro]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[ro]},no.cdata=/^$/i;const oo={"included-cdata":{pattern://i,inside:no}};oo["language-"+ro]={pattern:/[\s\S]+/,inside:Prism.languages[ro]};const io={};io[to]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return to}),"i"),lookbehind:!0,greedy:!0,inside:oo},Prism.languages.insertBefore("markup","cdata",io)}});Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(eo,to){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+eo+")"+/\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:[to,"language-"+to],inside:Prism.languages[to]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});Prism.languages.html=Prism.languages.markup;Prism.languages.mathml=Prism.languages.markup;Prism.languages.svg=Prism.languages.markup;Prism.languages.xml=Prism.languages.extend("markup",{});Prism.languages.ssml=Prism.languages.xml;Prism.languages.atom=Prism.languages.xml;Prism.languages.rss=Prism.languages.xml;const envVars="\\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",commandAfterHeredoc={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:void 0},insideString={bash:commandAfterHeredoc,environment:{pattern:RegExp("\\$"+envVars),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("(\\{)"+envVars),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})/};Prism.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;|&]|[<>]\\()"+envVars),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:insideString},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:commandAfterHeredoc}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:insideString},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:insideString.entity}}],environment:{pattern:RegExp("\\$?"+envVars),alias:"constant"},variable:insideString.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}};commandAfterHeredoc.inside=Prism.languages.bash;const toBeCopied=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],inside$1=insideString.variable[1].inside;for(let eo=0;eo>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/});Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}});Prism.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},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.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:Prism.languages.c}}}});Prism.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 Prism.languages.c.boolean;const string$1=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;Prism.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+string$1.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\\((?:"+string$1.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+string$1.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+string$1.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:string$1,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:/[(){};:,]/};Prism.languages.css.atrule.inside.rest=Prism.languages.css;const markup=Prism.languages.markup;markup&&(markup.tag.addInlined("style","css"),markup.tag.addAttribute("style","css"));const keyword=/\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/,modName=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return keyword.source});Prism.languages.cpp=Prism.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return keyword.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,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/});Prism.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 modName})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}});Prism.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:Prism.languages.cpp}}}});Prism.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});Prism.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:Prism.languages.extend("cpp",{})}});Prism.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},Prism.languages.cpp["base-clause"]);const ID="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",IDInside={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:Prism.languages.markup}};function withID(eo,to){return RegExp(eo.replace(//g,function(){return ID}),to)}Prism.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:withID(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:IDInside},"attr-value":{pattern:withID(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:IDInside},"attr-name":{pattern:withID(/([[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:IDInside},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:withID(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:IDInside},operator:/[=:]|-[->]/,punctuation:/[[\]{};,]/};Prism.languages.gv=Prism.languages.dot;Prism.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};const PREFIXES={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(PREFIXES).forEach(function(eo){const to=PREFIXES[eo],ro=[];/^\w+$/.test(eo)||ro.push(/\w+/.exec(eo)[0]),eo==="diff"&&ro.push("bold"),Prism.languages.diff[eo]={pattern:RegExp("^(?:["+to+`].*(?:\r -?| -|(?![\\s\\S])))+`,"m"),alias:ro,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(eo)[0]}}}});Object.defineProperty(Prism.languages.diff,"PREFIXES",{value:PREFIXES});Prism.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};Prism.languages.go=Prism.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/});Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}});delete Prism.languages.go["class-name"];const keywords=/\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/,classNamePrefix=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,className={pattern:RegExp(/(^|[^\w.])/.source+classNamePrefix+/[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:/\./}};Prism.languages.java=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[className,{pattern:RegExp(/(^|[^\w.])/.source+classNamePrefix+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:className.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+classNamePrefix+/[A-Z]\w*\b/.source),lookbehind:!0,inside:className.inside}],keyword:keywords,function:[Prism.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/});Prism.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}});Prism.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":className,keyword:keywords,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+classNamePrefix+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:className.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+classNamePrefix+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:className.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 keywords.source})),lookbehind:!0,inside:{punctuation:/\./}}});Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.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}|\?\?=?|\?\.?|[~:]/});Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;Prism.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:Prism.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:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.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:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});Prism.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:Prism.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"}});Prism.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(Prism.languages.markup){const eo=Prism.languages.markup;eo.tag.addInlined("script","javascript"),eo.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")}Prism.languages.js=Prism.languages.javascript;Prism.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"}};Prism.languages.webmanifest=Prism.languages.json;const javascript=Prism.util.clone(Prism.languages.javascript),space=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,braces=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source;let spread=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function re$1(eo,to){const ro=eo.replace(//g,()=>space).replace(//g,()=>braces).replace(//g,()=>spread);return RegExp(ro,to)}spread=re$1(spread).source;Prism.languages.jsx=Prism.languages.extend("markup",javascript);const jsx=Prism.languages.jsx;jsx.tag.pattern=re$1(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source);jsx.tag.inside.tag.pattern=/^<\/?[^\s>/]*/;jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/;jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/;jsx.tag.inside.comment=javascript.comment;Prism.languages.insertBefore("inside","attr-name",{spread:{pattern:re$1(//.source),inside:Prism.languages.jsx}},jsx.tag);Prism.languages.insertBefore("inside","special-attr",{script:{pattern:re$1(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:Prism.languages.jsx}}},jsx.tag);const stringifyToken=function(eo){return eo?typeof eo=="string"?eo:typeof eo.content=="string"?eo.content:eo.content.map(stringifyToken).join(""):""},walkTokens=function(eo){const to=[];for(let ro=0;ro0&&to[to.length-1].tagName===stringifyToken(io[0].content[1])&&to.pop():io[io.length-1].content==="/>"||to.push({tagName:stringifyToken(io[0].content[1]),openedBraces:0}):to.length>0&&no.type==="punctuation"&&no.content==="{"?to[to.length-1].openedBraces+=1:to.length>0&&to[to.length-1].openedBraces>0&&no.type==="punctuation"&&no.content==="}"?to[to.length-1].openedBraces-=1:oo=!0}if((oo||typeof no=="string")&&to.length>0&&to[to.length-1].openedBraces===0){let io=stringifyToken(no);ro0&&(typeof eo[ro-1]=="string"||eo[ro-1].type==="plain-text")&&(io=stringifyToken(eo[ro-1])+io,eo.splice(ro-1,1),ro-=1),eo[ro]=new Prism.Token("plain-text",io,void 0,io)}typeof no!="string"&&no.content&&typeof no.content!="string"&&walkTokens(no.content)}};Prism.hooks.add("after-tokenize",function(eo){eo.language!=="jsx"&&eo.language!=="tsx"||walkTokens(eo.tokens)});Prism.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 inner=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function createInline(eo){const to=eo.replace(//g,function(){return inner});return RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+to+")")}const tableCell=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,tableRow=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return tableCell}),tableLine=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;Prism.languages.markdown=Prism.languages.extend("markup",{});Prism.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:Prism.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+tableRow+tableLine+"(?:"+tableRow+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+tableRow+tableLine+")(?:"+tableRow+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(tableCell),inside:Prism.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+tableRow+")"+tableLine+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+tableRow+"$"),inside:{"table-header":{pattern:RegExp(tableCell),alias:"important",inside:Prism.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:createInline(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:createInline(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:createInline(/(~~?)(?:(?!~))+\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:createInline(/!?\[(?:(?!\]))+\](?:\([^\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(eo){["url","bold","italic","strike","code-snippet"].forEach(function(to){if(eo!==to){const ro=Prism.languages.markdown;ro[eo].inside.content.inside[to]=ro[to]}})});Prism.hooks.add("after-tokenize",function(eo){if(eo.language!=="markdown"&&eo.language!=="md")return;function to(ro){if(!(!ro||typeof ro=="string"))for(let no=0,oo=ro.length;no",quot:'"'},fromCodePoint=String.fromCodePoint||String.fromCharCode;function textContent(eo){let to=eo.replace(tagPattern,"");return to=to.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(ro,no){if(no=no.toLowerCase(),no[0]==="#"){let oo;return no[1]==="x"?oo=parseInt(no.slice(2),16):oo=Number(no.slice(1)),fromCodePoint(oo)}else{const oo=KNOWN_ENTITY_NAMES[no];return oo||ro}}),to}Prism.languages.md=Prism.languages.markdown;Prism.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:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;Prism.languages.scss=Prism.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]+\}/}}});Prism.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}]});Prism.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/});Prism.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}});Prism.languages.scss.atrule.inside.rest=Prism.languages.scss;Prism.languages.sass=Prism.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}});Prism.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}});delete Prism.languages.sass.atrule;const variable=/\$[-\w]+|#\{\$[-\w]+\}/,operator=[/[+*/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];Prism.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable,operator}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable,operator,important:Prism.languages.sass.important}}});delete Prism.languages.sass.property;delete Prism.languages.sass.important;Prism.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}});Prism.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 unit={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},number={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},inside={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,number,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit,boolean:/\b(?:false|true)\b/,operator:[/~|[+!/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number,punctuation:/[{}()[\];:,]/};inside.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:inside}};inside.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:inside}};Prism.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:inside}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:inside}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:inside}},"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:inside.interpolation}},rest:inside}},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:inside.interpolation,comment:inside.comment,punctuation:/[{},]/}},func:inside.func,string:inside.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:inside.interpolation,punctuation:/[{}()[\];:.]/};Prism.languages.typescript=Prism.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/});Prism.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 Prism.languages.typescript.parameter;delete Prism.languages.typescript["literal-property"];const typeInside=Prism.languages.extend("typescript",{});delete typeInside["class-name"];Prism.languages.typescript["class-name"].inside=typeInside;Prism.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:typeInside}}}});Prism.languages.ts=Prism.languages.typescript;const typescript=Prism.util.clone(Prism.languages.typescript);Prism.languages.tsx=Prism.languages.extend("jsx",typescript);delete Prism.languages.tsx.parameter;delete Prism.languages.tsx["literal-property"];const tag$1=Prism.languages.tsx.tag;tag$1.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+tag$1.pattern.source+")",tag$1.pattern.flags);tag$1.lookbehind=!0;Prism.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:/[{}().,:?]/};Prism.languages.vb=Prism.languages["visual-basic"];Prism.languages.vba=Prism.languages["visual-basic"];Prism.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 anchorOrAlias=/[*&][^\s[\]{},]+/,tag=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,properties="(?:"+tag.source+"(?:[ ]+"+anchorOrAlias.source+")?|"+anchorOrAlias.source+"(?:[ ]+"+tag.source+")?)",plainKey=/(?:[^\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),string=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function createValuePattern(eo,to){const ro=(to||"").replace(/m/g,"")+"m",no=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return properties}).replace(/<>/g,function(){return eo});return RegExp(no,ro)}Prism.languages.yaml={scalar:{pattern:RegExp(/([-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return properties})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return properties}).replace(/<>/g,function(){return"(?:"+plainKey+"|"+string+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:createValuePattern(/\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:createValuePattern(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:createValuePattern(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:createValuePattern(string),lookbehind:!0,greedy:!0},number:{pattern:createValuePattern(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag,important:anchorOrAlias,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./};Prism.languages.yml=Prism.languages.yaml;const vscDarkTheme={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"}}]},vscLightTheme={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)"}}]},vars={border:`1px solid var(${TokenNames.colorBorderCodeLineno}, hsla(0deg, 0%, 80%, 0.8))`,highlightBackground:`var(${TokenNames.colorBgCodeHighlight}, hsla(30deg, 90%, 50%, 0.3))`,fontSizeCode:`var(${CommonTokenNames.fontSizeCode}, 14px)`,lineHeightCode:`var(${CommonTokenNames.lineHeightCode}, 1.6)`},classes$2={container:css({MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",display:"flex",alignItems:"stretch",overflow:"hidden",width:"100%",fontSize:vars.fontSizeCode,lineHeight:vars.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:css({boxSizing:"border-box",display:"flex",minWidth:"fit-content",width:"100%",padding:"0 6px",letterSpacing:"inherit",fontSize:vars.fontSizeCode,lineHeight:vars.lineHeightCode,height:vars.lineHeightCode,overflowWrap:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"inherit",wordBreak:"inherit",wordSpacing:"inherit",wordWrap:"inherit"}),linenoLine:css({justifyContent:"flex-end",padding:"0 4px"}),highlightLine:css({background:vars.highlightBackground,borderColor:"transparent"}),lineno:css({flex:"0 0 auto",overflow:"hidden",boxSizing:"border-box",padding:"0.5rem 0",cursor:"default",fontSize:vars.fontSizeCode,lineHeight:vars.lineHeightCode,userSelect:"none",textAlign:"right",borderRight:vars.border}),codes:css({flex:"1 1 auto",overflow:"overlay",boxSizing:"border-box",padding:"0.5rem 0",fontSize:vars.fontSizeCode,lineHeight:vars.lineHeightCode}),codeWrapper:css({minWidth:"100%",width:"fit-content"}),codeLine:css({boxSizing:"border-box",padding:"0 12px"})},languageMap={js:"javascript",ts:"typescript"},themeToDict=(eo,to)=>{eo=languageMap[eo]??eo;const{plain:ro}=to,no=Object.create(null),oo=to.styles.reduce((io,so)=>{const{types:ao,style:lo,languages:uo}=so;if(uo&&!uo.includes(eo))return io;for(const co of ao){const fo={...io[co],...lo};io[co]=fo}return io},no);return oo.root=ro,oo.plain={...ro,backgroundColor:void 0},oo},newlineRegex=/\r\n|\r|\n/,normalizeEmptyLines=eo=>{eo.length===0?eo.push({types:["plain"],content:` -`,empty:!0}):eo.length===1&&eo[0].content===""&&(eo[0].content=` -`,eo[0].empty=!0)},appendTypes=(eo,to)=>{const ro=eo.length;return ro>0&&eo[ro-1]===to?eo:eo.concat(to)},normalizeTokens=eo=>{const to=[[]],ro=[eo],no=[0],oo=[eo.length];let io=[];const so=[io];for(let ao=0;ao>-1;--ao){for(let lo=0;(lo=no[ao]++)0?co:["plain"],uo=po):(co=appendTypes(co,po.type),po.alias&&(co=appendTypes(co,po.alias)),uo=po.content),typeof uo!="string"){ao+=1,to.push(co),ro.push(uo),no.push(0),oo.push(uo.length);continue}const ho=uo.split(newlineRegex),mo=ho.length;io.push({types:co,content:ho[0]});for(let vo=1;vo{var io,so;const no=ro.target;if(no==null)return;const{scrollTop:oo}=no;(so=(io=this.linenoRef.current)==null?void 0:io.scrollTo)==null||so.call(io,0,oo)});const no=themeToDict(ro.language,ro.theme),oo=this.tokenize(ro.code,ro.language),io=ro.showLineno?`${Math.max(2,String(oo.length).length)*1.1}em`:void 0;this.state={linenoWidth:io,themeDict:no,tokens:oo},this.linenoRef={current:null}}shouldComponentUpdate(ro,no){const oo=this.props,io=this.state;return io.linenoWidth!==no.linenoWidth||io.themeDict!==no.themeDict||io.tokens!==no.tokens||oo.code!==ro.code||oo.codesRef!==ro.codesRef||oo.collapsed!==ro.collapsed||oo.language!==ro.language||oo.maxLines!==ro.maxLines||oo.showLineno!==ro.showLineno||!isEqual(oo.theme,ro.theme)||!isEqual(oo.highlightLinenos,ro.highlightLinenos)}render(){const{linenoRef:ro,onScroll:no}=this,{codesRef:oo,collapsed:io,highlightLinenos:so,language:ao,maxLines:lo,showLineno:uo=!0}=this.props,{linenoWidth:co,tokens:fo}=this.state,po=fo.length,ho=lo>0?Math.min(lo,po):po,mo={...this.state.themeDict.root,backgroundColor:"none",...io?{maxHeight:0}:{maxHeight:`calc(calc(${vars.lineHeightCode} * ${ho+.8}) + 6px)`,minHeight:"100%"}};return React.createElement("div",{className:cx(classes$2.container,ao?`prism-code language-${ao}`:"prism-code"),style:mo},uo&&React.createElement("div",{key:"linenos",className:classes$2.lineno,style:{width:co},ref:ro},React.createElement(HighlightLinenos,{countOfLines:po,highlightLinenos:so})),React.createElement("div",{key:"codes",ref:oo,className:classes$2.codes,onScroll:no},React.createElement("div",{className:classes$2.codeWrapper},fo.map((vo,bo)=>{const xo=so.includes(bo+1),_o=this.getLineProps({line:vo});return React.createElement("div",{..._o,key:bo,className:cx(classes$2.line,classes$2.codeLine,xo&&classes$2.highlightLine,_o.className)},vo.map((So,Eo)=>React.createElement("span",{...this.getTokenProps({token:So}),key:Eo})))}))))}componentDidMount(){var ro,no;(no=(ro=this.props).onLinenoWidthChange)==null||no.call(ro,this.state.linenoWidth)}componentDidUpdate(ro,no){var ao,lo;const oo=this.props,io=this.state,so=oo.language!==ro.language||!isEqual(oo.theme,ro.theme)?themeToDict(oo.language,oo.theme):io.themeDict;if(oo.code!==ro.code||oo.language!==ro.language||so!==no.themeDict){const uo=this.tokenize(oo.code,oo.language),co=oo.showLineno?`${Math.max(2,String(uo.length).length)*1.1}em`:void 0;this.setState({linenoWidth:co,themeDict:so,tokens:uo})}io.linenoWidth!==no.linenoWidth&&((lo=(ao=this.props).onLinenoWidthChange)==null||lo.call(ao,io.linenoWidth))}tokenize(ro,no){const oo=no?Prism.languages[no]:void 0;if(oo){const io={code:ro,grammar:oo,language:no,tokens:[]};return Prism.hooks.run("before-tokenize",io),io.tokens=Prism.tokenize(io.code,io.grammar),Prism.hooks.run("after-tokenize",io),normalizeTokens(io.tokens)}else return normalizeTokens([ro])}getLineProps(ro){const{themeDict:no}=this.state,{key:oo,className:io,style:so,line:ao,...lo}=ro,uo={...lo,className:"token-line",style:void 0,key:void 0};return no!==void 0&&(uo.style=no.plain),so!==void 0&&(uo.style=uo.style!==void 0?{...uo.style,...so}:so),oo!==void 0&&(uo.key=oo),io&&(uo.className+=` ${io}`),uo}getStyleForToken({types:ro,empty:no}){const{themeDict:oo}=this.state,io=ro.length;if(oo===void 0)return;if(io===1&&ro[0]==="plain")return no?{display:"inline-block"}:void 0;if(io===1&&!no)return oo[ro[0]];const so=no?{display:"inline-block"}:{};for(const ao of ro){const lo=oo[ao];Object.assign(so,lo)}return so}getTokenProps(ro){const{key:no,className:oo,style:io,token:so,...ao}=ro,lo={...ao,className:`token ${so.types.join(" ")}`,children:so.content,style:this.getStyleForToken(so),key:void 0};return io!==void 0&&(lo.style=lo.style!==void 0?{...lo.style,...io}:io),no!==void 0&&(lo.key=no),oo&&(lo.className+=` ${oo}`),lo}}Ws(HighlightContent,"displayName","HighlightContent"),Ws(HighlightContent,"propTypes",{code:PropTypes.string.isRequired,codesRef:PropTypes.any,collapsed:PropTypes.bool.isRequired,language:PropTypes.string.isRequired,maxLines:PropTypes.number.isRequired,showLineno:PropTypes.bool.isRequired,theme:PropTypes.object.isRequired,highlightLinenos:PropTypes.array.isRequired,onLinenoWidthChange:PropTypes.func});class CodeHighlighter extends React.PureComponent{render(){const{lang:to,value:ro,darken:no=!0,highlightLinenos:oo=[],maxLines:io=-1,collapsed:so=!1,showLineNo:ao=!0,codesRef:lo,onLinenoWidthChange:uo}=this.props,co=this.props.theme??(no?vscDarkTheme:vscLightTheme);return React.createElement(HighlightContent,{code:ro,codesRef:lo,collapsed:so,highlightLinenos:oo,language:to??"",maxLines:io,showLineno:ao,theme:co,onLinenoWidthChange:uo})}}Ws(CodeHighlighter,"displayName","YozoraCodeHighlighter"),Ws(CodeHighlighter,"propTypes",{codesRef:PropTypes.any,collapsed:PropTypes.bool,darken:PropTypes.bool,highlightLinenos:PropTypes.arrayOf(PropTypes.number),lang:PropTypes.string,maxLines:PropTypes.number,onLinenoWidthChange:PropTypes.func,showLineNo:PropTypes.bool,theme:PropTypes.any,value:PropTypes.string.isRequired});const CopyButton=eo=>{const{className:to,delay:ro=1500,calcContentForCopy:no}=eo,[oo,io]=React.useState(0),so=useStyles$h(),ao=oo!==0,lo=()=>{if(oo===0){io(1);try{const uo=no();copy$2(uo),io(2)}catch{io(3)}}};return React.useEffect(()=>{if(oo===2||oo===3){const uo=setTimeout(()=>io(0),ro);return()=>{uo&&clearTimeout(uo)}}},[oo,ro]),jsxRuntimeExports.jsx(Button$2,{appearance:"transparent",className:mergeClasses(so.copyButton,to),disabled:ao,as:"button",icon:oo===0?jsxRuntimeExports.jsx(Copy20Regular,{}):jsxRuntimeExports.jsx(CopyArrowRight20Regular,{}),onClick:lo})},useStyles$h=makeStyles({copyButton:{cursor:"pointer"}});class CodeRendererInner extends React.PureComponent{constructor(){super(...arguments),this.calcContentForCopy=()=>this.props.value}render(){const{calcContentForCopy:to}=this,{darken:ro,lang:no,value:oo,preferCodeWrap:io,showCodeLineno:so}=this.props;return jsxRuntimeExports.jsxs("code",{className:codeCls,"data-wrap":io,children:[jsxRuntimeExports.jsx(CodeHighlighter,{lang:no,value:oo,collapsed:!1,showLineNo:so&&!io,darken:ro}),jsxRuntimeExports.jsx("div",{className:copyBtnCls,children:jsxRuntimeExports.jsx(CopyButton,{calcContentForCopy:to})})]})}}const copyBtnCls=mergeStyles$1({position:"absolute",right:"4px",top:"4px",display:"none"}),codeCls=mergeStyles$1(astClasses.code,{position:"relative",display:"block",boxSizing:"border-box",borderRadius:"4px",margin:"0px 0px 1.25em 0px",backgroundColor:"var(--colorBgCode)",[`&:hover > .${copyBtnCls}`]:{display:"inline-block"},'&&[data-wrap="true"] > div':{whiteSpace:"pre-wrap",wordBreak:"keep-all"}}),CodeRenderer=eo=>{const{lang:to}=eo,ro=eo.value.replace(/[\r\n]+$/,""),{viewmodel:no}=useNodeRendererContext(),oo=useStateValue(no.preferCodeWrap$),io=useStateValue(no.showCodeLineno$),ao=useStateValue(no.themeScheme$)==="darken";return jsxRuntimeExports.jsx(CodeRendererInner,{darken:ao,lang:to??"text",value:ro,preferCodeWrap:oo,showCodeLineno:io})};class DeleteRenderer extends React.Component{shouldComponentUpdate(to){return this.props.children!==to.children}render(){const to=this.props.children;return jsxRuntimeExports.jsx("del",{className:cls$9,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:to})})}}const cls$9=mergeStyles$1(astClasses.delete,{marginRight:"4px",color:"var(--colorDelete)",fontStyle:"italic",textDecoration:"line-through"});class EmphasisRenderer extends React.Component{shouldComponentUpdate(to){return this.props.children!==to.children}render(){const to=this.props.children;return jsxRuntimeExports.jsx("em",{className:cls$8,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:to})})}}const cls$8=mergeStyles$1(astClasses.emphasis,{fontStyle:"italic",margin:"0 6px 0 2px"});class HeadingRenderer extends React.Component{shouldComponentUpdate(to){const ro=this.props;return ro.depth!==to.depth||ro.identifier!==to.identifier||ro.children!==to.children||ro.linkIcon!==to.linkIcon}render(){const{depth:to,identifier:ro,children:no,linkIcon:oo="¶"}=this.props,io=ro==null?void 0:encodeURIComponent(ro),so="h"+to,ao=so,lo=mergeStyles$1(astClasses.heading,classes$1.heading,classes$1[so]);return jsxRuntimeExports.jsxs(ao,{id:io,className:lo,children:[jsxRuntimeExports.jsx("p",{className:classes$1.content,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:no})}),ro&&jsxRuntimeExports.jsx("a",{className:classes$1.anchor,href:"#"+io,children:oo})]})}}const anchorCls=mergeStyles$1({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"}}),classes$1=mergeStyleSets({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 .${anchorCls}`]:{opacity:.8,color:"var(--colorLinkActive)"},[`&&:hover .${anchorCls}`]:{opacity:.8,color:"var(--colorLinkHover)"}},anchor:anchorCls,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 ImageRendererInner extends React.Component{shouldComponentUpdate(to){const ro=this.props;return ro.src!==to.src||ro.alt!==to.alt||ro.title!==to.title||ro.srcSet!==to.srcSet||ro.sizes!==to.sizes||ro.loading!==to.loading||ro.className!==to.className}render(){const{src:to,alt:ro,title:no,srcSet:oo,sizes:io,loading:so,className:ao}=this.props;return jsxRuntimeExports.jsxs("figure",{className:`${ao} ${cls$7}`,children:[jsxRuntimeExports.jsx("img",{alt:ro,src:to,title:no,srcSet:oo,sizes:io,loading:so}),no&&jsxRuntimeExports.jsx("figcaption",{children:no})]})}}const cls$7=mergeStyles$1({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)"}}),ImageRenderer=eo=>{const{url:to,alt:ro,title:no,srcSet:oo,sizes:io,loading:so}=eo;return jsxRuntimeExports.jsx(ImageRendererInner,{alt:ro,src:to,title:no,srcSet:oo,sizes:io,loading:so,className:astClasses.image})},ImageReferenceRenderer=eo=>{const{viewmodel:to}=useNodeRendererContext(),ro=useStateValue(to.definitionMap$),{alt:no,srcSet:oo,sizes:io,loading:so}=eo,ao=ro[eo.identifier],lo=(ao==null?void 0:ao.url)??"",uo=ao==null?void 0:ao.title;return jsxRuntimeExports.jsx(ImageRendererInner,{alt:no,src:lo,title:uo,srcSet:oo,sizes:io,loading:so,className:astClasses.imageReference})};class InlineCodeRenderer extends React.Component{shouldComponentUpdate(to){return this.props.value!==to.value}render(){return jsxRuntimeExports.jsx("code",{className:cls$6,children:this.props.value})}}const cls$6=mergeStyles$1(astClasses.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 LinkRendererInner extends React.Component{shouldComponentUpdate(to){const ro=this.props;return ro.url!==to.url||ro.title!==to.title||ro.childNodes!==to.childNodes||ro.className!==to.className}render(){const{url:to,title:ro,childNodes:no,className:oo}=this.props;return jsxRuntimeExports.jsx("a",{className:mergeStyles$1(cls$5,oo),href:to,title:ro,rel:"noopener, noreferrer",target:"_blank",children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:no})})}}const cls$5=mergeStyles$1({padding:"0.2rem 0",color:"var(--colorLink)",textDecoration:"none",background:"linear-gradient(90deg, hsla(358deg, 100%, 62%, 0.8), hsla(048deg, 100%, 50%, 0.8), hsla(196deg, 100%, 53%, 0.8))",backgroundSize:"0 3px",backgroundRepeat:"no-repeat",backgroundPosition:"50% 100%",transition:"all 0.3s ease-in-out","&:active":{color:"var(--colorLinkActive)"},"&&:hover":{color:"var(--colorLinkHover)",backgroundSize:"100% 3px",backgroundPositionX:0},"&:visited":{color:"var(--colorLinkVisited)"}}),LinkRenderer=eo=>{const{url:to,title:ro,children:no}=eo;return jsxRuntimeExports.jsx(LinkRendererInner,{url:to,title:ro,childNodes:no,className:astClasses.link})},LinkReferenceRenderer=eo=>{const{viewmodel:to}=useNodeRendererContext(),no=useStateValue(to.definitionMap$)[eo.identifier],oo=(no==null?void 0:no.url)??"",io=no==null?void 0:no.title;return jsxRuntimeExports.jsx(LinkRendererInner,{url:oo,title:io,childNodes:eo.children,className:astClasses.linkReference})};class ListRenderer extends React.Component{shouldComponentUpdate(to){const ro=this.props;return ro.ordered!==to.ordered||ro.orderType!==to.orderType||ro.start!==to.start||ro.children!==to.children}render(){const{ordered:to,orderType:ro,start:no,children:oo}=this.props;return to?jsxRuntimeExports.jsx("ol",{className:cls$4,type:ro,start:no,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:oo})}):jsxRuntimeExports.jsx("ul",{className:cls$4,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:oo})})}}const cls$4=mergeStyles$1(astClasses.list,{padding:"0px",margin:"0 0 1em 2em",lineHeight:"2","> :last-child":{marginBottom:"0px"}});class ListItemRenderer extends React.Component{shouldComponentUpdate(to){return this.props.children!==to.children}render(){const to=this.props.children;return jsxRuntimeExports.jsx("li",{className:cls$3,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:to})})}}const cls$3=mergeStyles$1(astClasses.listItem,{position:"relative",padding:0,margin:0,"> :last-child":{marginBottom:0}});class ParagraphRenderer extends React.Component{shouldComponentUpdate(to){return this.props.children!==to.children}render(){const to=this.props.children;return to.some(no=>no.type===ImageType$1||no.type===ImageReferenceType)?jsxRuntimeExports.jsx("div",{className:paragraphDisplayCls,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:to})}):jsxRuntimeExports.jsx("p",{className:paragraphCls,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:to})})}}const paragraphCls=mergeStyles$1(astClasses.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}}),paragraphDisplayCls=mergeStyles$1(paragraphCls,{display:"flex",alignItems:"center",justifyContent:"center",padding:"1rem 0",margin:0});class StrongRenderer extends React.Component{shouldComponentUpdate(to){return this.props.children!==to.children}render(){const to=this.props.children;return jsxRuntimeExports.jsx("strong",{className:cls$2,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:to})})}}const cls$2=mergeStyles$1(astClasses.strong,{fontWeight:600});class TableRenderer extends React.Component{shouldComponentUpdate(to){const ro=this.props;return!isEqual(ro.columns,to.columns)||!isEqual(ro.children,to.children)}render(){const{columns:to,children:ro}=this.props,no=to.map(so=>so.align??void 0),[oo,...io]=ro.map(so=>so.children.map((ao,lo)=>jsxRuntimeExports.jsx(NodesRenderer,{nodes:ao.children},lo)));return jsxRuntimeExports.jsxs("table",{className:cls$1,children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsx("tr",{children:oo.map((so,ao)=>jsxRuntimeExports.jsx(Th,{align:no[ao],children:so},ao))})}),jsxRuntimeExports.jsx("tbody",{children:io.map((so,ao)=>jsxRuntimeExports.jsx("tr",{children:so.map((lo,uo)=>jsxRuntimeExports.jsx("td",{align:no[uo],children:lo},uo))},ao))})]})}}class Th extends React.Component{constructor(to){super(to),this.ref={current:null}}shouldComponentUpdate(to){const ro=this.props;return ro.align!==to.align||ro.children!==to.children}render(){const{align:to,children:ro}=this.props;return jsxRuntimeExports.jsx("th",{ref:this.ref,align:to,children:ro})}componentDidMount(){const to=this.ref.current;to&&to.setAttribute("title",to.innerText)}componentDidUpdate(){const to=this.ref.current;to&&to.setAttribute("title",to.innerText)}}const cls$1=mergeStyles$1(astClasses.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 TextRenderer extends React.Component{shouldComponentUpdate(to){return this.props.value!==to.value}render(){return jsxRuntimeExports.jsx(React.Fragment,{children:this.props.value})}}class ThematicBreakRenderer extends React.Component{shouldComponentUpdate(){return!1}render(){return jsxRuntimeExports.jsx("hr",{className:cls})}}const cls=mergeStyles$1(astClasses.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 buildNodeRendererMap(eo){if(eo==null)return defaultNodeRendererMap;let to=!1;const ro={};for(const[no,oo]of Object.entries(eo))oo&&oo!==defaultNodeRendererMap[no]&&(to=!0,ro[no]=oo);return to?{...defaultNodeRendererMap,...ro}:defaultNodeRendererMap}const defaultNodeRendererMap={[BlockquoteType]:BlockquoteRenderer,[BreakType]:BreakRenderer,[CodeType]:CodeRenderer,[DefinitionType]:()=>null,[DeleteType]:DeleteRenderer,[EmphasisType]:EmphasisRenderer,[HeadingType]:HeadingRenderer,[HtmlType]:()=>null,[ImageType$1]:ImageRenderer,[ImageReferenceType]:ImageReferenceRenderer,[InlineCodeType]:InlineCodeRenderer,[LinkType]:LinkRenderer,[LinkReferenceType]:LinkReferenceRenderer,[ListType]:ListRenderer,[ListItemType]:ListItemRenderer,[ParagraphType$1]:ParagraphRenderer,[StrongType]:StrongRenderer,[TableType]:TableRenderer,[TextType$1]:TextRenderer,[ThematicBreakType]:ThematicBreakRenderer,_fallback:function eo(to,ro){return console.warn(`Cannot find render for \`${to.type}\` type node with key \`${ro}\`:`,to),null}},ReactMarkdown=eo=>{const{presetDefinitionMap:to,customizedRendererMap:ro,preferCodeWrap:no=!1,showCodeLineno:oo=!0,text:io,themeScheme:so="lighten",className:ao,style:lo}=eo,uo=React.useMemo(()=>parser.parse(io),[io]),co=React.useMemo(()=>calcDefinitionMap(uo).definitionMap,[uo]),[fo]=React.useState(()=>new ReactMarkdownViewModel({definitionMap:{...to,...co},rendererMap:buildNodeRendererMap(ro),preferCodeWrap:no,showCodeLineno:oo,themeScheme:so})),po=React.useMemo(()=>({viewmodel:fo}),[fo]),ho=mergeClasses(rootCls,so==="darken"&&astClasses.rootDarken,ao);return React.useEffect(()=>{fo.preferCodeWrap$.next(no)},[fo,no]),React.useEffect(()=>{fo.showCodeLineno$.next(oo)},[fo,oo]),React.useEffect(()=>{fo.themeScheme$.next(so)},[fo,so]),jsxRuntimeExports.jsx("div",{className:ho,style:lo,children:jsxRuntimeExports.jsx(NodeRendererContextType.Provider,{value:po,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:uo.children})})})},rootCls=mergeStyles$1(astClasses.root,{wordBreak:"break-all",userSelect:"unset",[astClasses.listItem]:{[`> ${astClasses.list}`]:{marginLeft:"1.2em"}},"> :last-child":{marginBottom:0}}),BasicViewer=({styles:eo,showEmpty:to,emptyRender:ro,previewRender:no,rawRender:oo,headerRender:io})=>{const so=useClasses$j(),[ao,lo]=reactExports.useState("preview"),uo=reactExports.useCallback(fo=>{lo(fo)},[]),co=useLocStrings();return to?ro?ro():jsxRuntimeExports.jsx(MessageBar,{intent:"info",children:co["No content"]}):jsxRuntimeExports.jsxs("div",{className:eo==null?void 0:eo.root,children:[oo&&jsxRuntimeExports.jsxs("div",{className:so.header,children:[jsxRuntimeExports.jsx("div",{style:{flex:1,overflow:"hidden"},children:io==null?void 0:io()}),jsxRuntimeExports.jsx("div",{className:so.groupWrapper,children:jsxRuntimeExports.jsxs("div",{className:so.buttonGroup,children:[jsxRuntimeExports.jsx(Button$2,{value:"preview",size:"small",appearance:ao==="preview"?void 0:"transparent",onClick:()=>uo("preview"),children:co.Preview}),jsxRuntimeExports.jsx(Button$2,{value:"raw",size:"small",appearance:ao==="raw"?void 0:"transparent",onClick:()=>uo("raw"),children:co.Raw})]})})]}),ao==="preview"||!oo?no():null,ao==="raw"&&oo?oo():null]})},useClasses$j=makeStyles({header:{display:"flex",alignItems:"center",marginBottom:"12px"},groupWrapper:{display:"flex",flexDirection:"row-reverse"},buttonGroup:{display:"inline-flex",...shorthands.borderRadius("5px"),backgroundColor:tokens.colorNeutralBackground5}}),MarkdownViewer=({content:eo})=>{const to=useStyles$g();return jsxRuntimeExports.jsx(BasicViewer,{styles:to,showEmpty:!eo,previewRender:()=>jsxRuntimeExports.jsx(ReactMarkdown,{text:`${eo}`}),rawRender:()=>jsxRuntimeExports.jsx("div",{style:{marginTop:6},children:`${eo}`})})},useStyles$g=makeStyles({root:{wordBreak:"break-all",whiteSpace:"break-spaces",...shorthands.overflow("auto")}}),EmbeddingNodeInfo=()=>{var lo,uo,co;const eo=useSelectedSpan(),to=((lo=eo==null?void 0:eo.attributes)==null?void 0:lo["llm.response.model"])??((uo=eo==null?void 0:eo.attributes)==null?void 0:uo["embedding.model"]),ro=useLocStrings(),[no,oo]=reactExports.useState(ViewStatus.loading),io=useLoadSpanEvents(eo,BuildInEventName["embedding.embeddings"]),so=useSpanEventsWithPayload(eo,BuildInEventName["embedding.embeddings"]);let ao=JSON.parse(((co=eo==null?void 0:eo.attributes)==null?void 0:co["embedding.embeddings"])??"[]")??[];return so.length>0&&(ao=so.map(fo=>(fo==null?void 0:fo.attributes)??[]).flat()),reactExports.useEffect(()=>{io({onCompleted:fo=>{oo(fo?ViewStatus.error:ViewStatus.loaded)}})},[]),no===ViewStatus.loading?jsxRuntimeExports.jsx("div",{style:{marginTop:"30vh"},children:jsxRuntimeExports.jsx(Spinner,{size:"tiny"})}):no===ViewStatus.error?jsxRuntimeExports.jsx("div",{style:{marginTop:"30vh",textAlign:"center"},children:jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{oo(ViewStatus.loading),io({onCompleted:fo=>{oo(fo?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})}):jsxRuntimeExports.jsxs(Card,{children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("span",{children:to})}),ao.map((fo,po)=>jsxRuntimeExports.jsxs(Card,{children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("i",{children:ro.Embedded_text})}),fo["embedding.text"]?jsxRuntimeExports.jsx(MarkdownViewer,{content:fo["embedding.text"]}):null]},po))]})},CollapsibleTextArea=({children:eo})=>{const[to,ro]=reactExports.useState(!0),no=useClasses$i();return jsxRuntimeExports.jsxs("div",{className:no.wrapper,children:[jsxRuntimeExports.jsx(Button$2,{icon:to?jsxRuntimeExports.jsx(TextWrapOff16Regular,{}):jsxRuntimeExports.jsx(TextWrap16Regular,{}),onClick:()=>ro(!to),size:"small"}),jsxRuntimeExports.jsx("pre",{className:`${to&&no.wrap} ${no.pre}`,children:eo})]})},useClasses$i=makeStyles({wrapper:{width:"95%",height:"100%",paddingLeft:tokens.spacingHorizontalM,color:tokens.colorNeutralForeground1,display:"flex",flexDirection:"column"},wrap:{wordBreak:"break-all",whiteSpace:"pre-wrap"},pre:{marginTop:0}}),ErrorsTab=()=>{const eo=useClasses$h(),to=useSelectedSpan(),ro=useSpanEventsWithPayload(to,BuildInEventName.exception),no=useIsDark(),oo=useLocStrings(),[io,so]=reactExports.useState(ViewStatus.loading),ao=useLoadSpanEvents(to,BuildInEventName.exception);return reactExports.useEffect(()=>{ao({onCompleted:lo=>{so(lo?ViewStatus.error:ViewStatus.loaded)}})},[]),ro.length===0?jsxRuntimeExports.jsxs("div",{className:eo.emptyWrapper,children:[jsxRuntimeExports.jsx(ShieldCheckmark24Regular,{}),jsxRuntimeExports.jsxs(Text$1,{className:eo.emptyText,children:[" ",oo.No_Exception_found]})]}):io===ViewStatus.loading?jsxRuntimeExports.jsx("div",{className:eo.emptyWrapper,children:jsxRuntimeExports.jsx(Spinner,{size:"tiny"})}):io===ViewStatus.error?jsxRuntimeExports.jsx("div",{className:eo.emptyWrapper,children:jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{so(ViewStatus.loading),ao({onCompleted:lo=>{so(lo?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ro.map((lo,uo)=>jsxRuntimeExports.jsx(Card,{className:eo.wrapper,children:jsxRuntimeExports.jsx(JsonViewer,{src:lo,collapseStringsAfterLength:1e4,theme:"vscode",dark:no,customizeNode:({node:co,indexOrName:fo})=>{if(fo==="exception.message"||fo==="exception.stacktrace")return jsxRuntimeExports.jsx(CollapsibleTextArea,{children:co})}})},uo))})},useClasses$h=makeStyles({wrapper:{marginBottom:tokens.spacingVerticalM},emptyWrapper:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%"},emptyText:{paddingTop:tokens.spacingVerticalM}}),useEvaluationTracesListRow=eo=>{const[to,ro]=reactExports.useState([]),no=reactExports.useMemo(()=>{const ao={};return eo.forEach(lo=>{var uo;(uo=lo==null?void 0:lo.context)!=null&&uo.span_id&&(ao[lo.context.span_id]={...lo,children:[],depth:0})}),eo.forEach(lo=>{var uo;if(lo.parent_id&&((uo=lo==null?void 0:lo.context)!=null&&uo.span_id)&&lo.parent_id!==""){const co=ao[lo.parent_id],fo=ao[lo.context.span_id];fo.depth=co.depth+1,co.children.push(fo)}}),Object.values(ao).filter(lo=>!lo.parent_id)},[eo]),oo=reactExports.useCallback(ao=>{if(to.includes(ao)){const uo=findRowById(ao,no);if(!uo)return;const fo=(uo.children?findAllDescendants(uo):[]).map(ho=>{var mo;return(mo=ho==null?void 0:ho.context)==null?void 0:mo.span_id}).filter(ho=>ho!==void 0),po=to.filter(ho=>ho!==ao).filter(ho=>!fo.includes(ho));ro(po)}else ro([...to,ao])},[to,no]),io=reactExports.useMemo(()=>{const ao=lo=>lo.reduce((uo,co)=>{var ho,mo;const po=((ho=co==null?void 0:co.context)!=null&&ho.span_id?to.includes((mo=co==null?void 0:co.context)==null?void 0:mo.span_id):!1)?ao(co.children):[];return[...uo,co,...po]},[]);return ao(no)},[to,no]),so=reactExports.useCallback(ao=>ao?to.includes(ao):!1,[to]);return{rows:io,toggleSubRows:oo,isRowExpanded:so}},findAllDescendants=eo=>{let to=[...eo.children];return eo.children.forEach(ro=>{to=[...to,...findAllDescendants(ro)]}),to},findRowById=(eo,to)=>{var ro;for(const no of to){if(((ro=no==null?void 0:no.context)==null?void 0:ro.span_id)===eo)return no;const oo=findRowById(eo,no.children);if(oo)return oo}return null},CellExpander=({isExpanded:eo=!1,onToggle:to})=>{const ro=useClasses$g();return jsxRuntimeExports.jsx("div",{className:ro.wrapper,onClick:()=>to&&to(!eo),children:eo?jsxRuntimeExports.jsx(ChevronDown16Filled,{}):jsxRuntimeExports.jsx(ChevronRight16Filled,{})})},useClasses$g=makeStyles({wrapper:{cursor:"pointer",display:"flex"}}),UNDEFINED_VALUE_PLACEHOLDER="N/A",TRACE_POLLING_GAP=6e4,RUNNING_TRACE_POLLING_GAP=3e4,SPAN_POLLING_GAP=3e4,LOCAL_URL_PREFIX="http://localhost:63082";function KindText({kind:eo}){return jsxRuntimeExports.jsx(Badge$2,{appearance:"outline",size:"medium",children:eo||UNDEFINED_VALUE_PLACEHOLDER})}function TimeText({time:eo}){const to=timeFormat(eo);return jsxRuntimeExports.jsx("time",{children:to})}const CellWrapper=({children:eo})=>{const to=useClasses$f();return jsxRuntimeExports.jsx("div",{className:to.cellWrapper,children:eo})},TextCellWrapper=({children:eo})=>{const to=useClasses$f();return jsxRuntimeExports.jsx("div",{className:to.textCellWrapper,children:jsxRuntimeExports.jsx("p",{className:to.textCellP,children:eo})})},CellSkeleton=({height:eo})=>{const to=useClasses$f();return jsxRuntimeExports.jsx(Skeleton,{className:to.textCellWrapper,children:jsxRuntimeExports.jsx(SkeletonItem,{style:{height:`${eo??20}px`}})})},useClasses$f=makeStyles({cellWrapper:{display:"flex",flexDirection:"row",alignItems:"center",height:"100%"},textCellWrapper:{display:"flex",flexDirection:"row",alignItems:"center",height:"100%",width:"100%"},textCellP:{wordWrap:"break-word",maxWidth:"100%",lineHeight:tokens.lineHeightBase200,fontSize:tokens.fontSizeBase300,maxHeight:"100%",whiteSpace:"normal",...shorthands.padding(tokens.spacingVerticalS,tokens.spacingHorizontalXS)}}),isValidJson=eo=>{if(typeof eo=="string")return!1;try{return JSON.stringify(eo),!0}catch{return!1}},TraceListJsonCell=({jsonObject:eo,isViewDetailEnabled:to=!1})=>{const ro=isValidJson(eo);return jsxRuntimeExports.jsx(CellWrapper,{children:ro?jsxRuntimeExports.jsx(TraceListObjectCell,{object:eo,isViewDetailEnabled:to}):jsxRuntimeExports.jsx(TextCellWrapper,{children:formatText(String(eo))})})},TraceListObjectCell=({object:eo,isViewDetailEnabled:to})=>{const ro=useIsDark();return to?jsxRuntimeExports.jsxs(Dialog,{children:[jsxRuntimeExports.jsx(DialogTrigger,{children:jsxRuntimeExports.jsx("div",{style:{overflow:"hidden",height:"100%",width:"100%",marginTop:"12px",lineHeight:"16px"},children:jsxRuntimeExports.jsx(JsonViewer,{src:eo,enableClipboard:!1,collapsed:1,dark:ro,theme:"vscode"})})}),jsxRuntimeExports.jsx(DialogSurface,{children:jsxRuntimeExports.jsx("div",{style:{height:"800px",width:"800ppx",marginTop:"12px",lineHeight:"16px",overflow:"auto"},children:jsxRuntimeExports.jsx(JsonViewer,{src:eo,enableClipboard:!0,collapseStringsAfterLength:200,dark:ro,theme:"vscode"})})})]}):jsxRuntimeExports.jsx("div",{style:{overflow:"hidden",height:"100%",width:"100%",marginTop:"12px",lineHeight:"16px"},children:jsxRuntimeExports.jsx(JsonViewer,{src:eo,enableClipboard:!1,collapseStringsAfterLength:50,collapsed:1,dark:ro,theme:"vscode"})})},MAX_LENGTH=80;function formatText(eo){return eo.length>MAX_LENGTH?`${eo.slice(0,MAX_LENGTH)}...`:eo}const useClasses$e=makeStyles({grid:{},row:{cursor:"pointer"},nameCell:{color:tokens.colorBrandForeground1,fontWeight:tokens.fontWeightSemibold,":hover":{...shorthands.textDecoration("underline")}},kindCell:{display:"flex",alignItems:"center",justifyContent:"flex-start",height:"100%",...shorthands.gap("4px")}}),EvaluationTracesList=({evaluationSpans:eo,className:to})=>{const ro=useClasses$e(),no=useIsDark(),{rows:oo,toggleSubRows:io,isRowExpanded:so}=useEvaluationTracesListRow(eo),ao=useLocStrings(),lo=useSetSelectedEvaluationTraceId();return jsxRuntimeExports.jsx(DataGrid$1$1,{className:`${mergeStyles$1(ro.grid,to)} ${no?"rdg-dark":"rdg-light"}`,rowClass:()=>ro.row,columns:[{key:"kind",name:ao.Kind,minWidth:150,maxWidth:300,renderCell:({row:uo})=>{var fo,po,ho;const co=((fo=uo==null?void 0:uo.children)==null?void 0:fo.length)>0;return jsxRuntimeExports.jsxs("div",{className:ro.kindCell,style:{paddingLeft:uo.depth*16+(co?0:20)},children:[co&&jsxRuntimeExports.jsx(CellExpander,{isExpanded:so((po=uo==null?void 0:uo.context)==null?void 0:po.span_id),onToggle:()=>{var mo,vo;(mo=uo==null?void 0:uo.context)!=null&&mo.span_id&&io((vo=uo==null?void 0:uo.context)==null?void 0:vo.span_id)}}),jsxRuntimeExports.jsx(KindText,{kind:(ho=uo.attributes)==null?void 0:ho.span_type})]})}},{key:"name",name:ao.Name,minWidth:150,maxWidth:300,renderCell:({row:uo})=>jsxRuntimeExports.jsx(Tooltip,{content:uo.name??"",relationship:"label",children:jsxRuntimeExports.jsx(Link$1,{className:ro.nameCell,title:uo.name,onClick:()=>{var co;lo((co=uo.context)==null?void 0:co.trace_id)},children:uo.name})})},{key:"input",name:ao.Input,minWidth:200,renderCell:({row:uo})=>{var co;return jsxRuntimeExports.jsx(TraceListJsonCell,{isViewDetailEnabled:!0,jsonObject:JSON.parse(((co=uo.attributes)==null?void 0:co.inputs)??"{}")})}},{key:"output",name:ao.Output,minWidth:200,renderCell:({row:uo})=>{var co;return jsxRuntimeExports.jsx(TraceListJsonCell,{isViewDetailEnabled:!0,jsonObject:JSON.parse(((co=uo.attributes)==null?void 0:co.output)??"{}")})}},{key:"start_time",name:ao.Start_time,minWidth:150,renderCell:({row:uo})=>jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(TimeText,{time:uo.start_time})})},{key:"end_time",name:ao.End_time,minWidth:150,renderCell:({row:uo})=>jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(TimeText,{time:uo.end_time})})},{key:"latency",name:ao.Latency,minWidth:120,renderCell:({row:uo})=>jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(LatencyText,{startTimeISOString:uo.start_time,endTimeISOString:uo.end_time})})},{key:"total_tokens",name:ao.Total_tokens,minWidth:120,renderCell:({row:uo})=>{var co;return jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(TokenText,{token:Number.parseInt(((co=uo.attributes)==null?void 0:co["__computed__.cumulative_token_count.total"])??"0")})})}},{key:"status",name:ao.Status,minWidth:120,renderCell:({row:uo})=>{var co;return jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(StatusText,{statusCode:(co=uo.status)==null?void 0:co.status_code})})}}],rows:oo,headerRowHeight:26,rowHeight:80,defaultColumnOptions:{resizable:!0}})},EvaluationsTab=()=>{var lo,uo,co;const eo=useClasses$d(),to=useEvaluationSpansOfSelectedSpan(),[ro,no]=reactExports.useState((lo=to[0])==null?void 0:lo.evaluationName),oo=((uo=to.find(fo=>fo.evaluationName===ro))==null?void 0:uo.evaluationTraces)??[],io=useSelectedTrace(),so=(io==null?void 0:io.evaluations)??{},ao=((co=so[ro??""])==null?void 0:co.outputs)??{};return jsxRuntimeExports.jsxs(Card,{style:{height:"100%"},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx(TabList,{selectedValue:ro,onTabSelect:(fo,po)=>{no(po.value)},children:to.map(fo=>jsxRuntimeExports.jsx(Tab$1,{value:fo.evaluationName,children:fo.evaluationName},fo.evaluationName))})}),jsxRuntimeExports.jsxs("div",{className:eo.wrapper,children:[ro&&so[ro]&&Object.keys(ao).map(fo=>{const po=ao[fo];return po?jsxRuntimeExports.jsx(MetricTag,{tag:{name:fo,value:po}},fo):null}),jsxRuntimeExports.jsx(EvaluationTracesList,{evaluationSpans:oo,className:eo.grid})]})]})},useClasses$d=makeStyles({wrapper:{display:"flex",flexDirection:"column",height:"100%",...shorthands.gap("8px")},grid:{flexGrow:1}}),LLMNodeInvocationParametersTab=({invocationParameters:eo})=>{const to=useIsDark();return jsxRuntimeExports.jsx(JsonViewer,{src:eo,theme:"vscode",dark:to})};var ChatMessageCategory=(eo=>(eo.System="system",eo.Error="error",eo.Chatbot="chatbot",eo.User="user",eo))(ChatMessageCategory||{}),ChatMessageType=(eo=>(eo.Message="message",eo.SessionSplit="session-split",eo))(ChatMessageType||{}),CopyStatus=(eo=>(eo[eo.PENDING=0]="PENDING",eo[eo.COPYING=1]="COPYING",eo[eo.COPIED=2]="COPIED",eo[eo.FAILED=3]="FAILED",eo))(CopyStatus||{}),ChatboxLocator=(eo=>(eo.MessageBubble="chatbox-message-bubble",eo.MessageContent="chatbox-message-content",eo.MessageList="chatbox-message-list",eo.MessageActionBar="chatbox-message-action-bar",eo))(ChatboxLocator||{}),ChatboxSelector=(eo=>(eo.MessageBubble='[data-chatbox-locator="chatbox-message-bubble"]',eo.MessageContent='[data-chatbox-locator="chatbox-message-content"]',eo.MessageList='[data-chatbox-locator="chatbox-message-list"]',eo.MessageActionBar='[data-chatbox-locator="chatbox-message-action-bar"]',eo))(ChatboxSelector||{});const defaultLocStrings$1={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 ChatboxViewModel{constructor(to){this.calcContentForCopy=fo=>this.calcContentForCopy$.getSnapshot()(fo),this.monitorInputContentChange=fo=>this.inputContentChangeTick$.subscribeStateChange(fo),this.notifyInputContentChange=()=>{this.inputContentChangeTick$.setState(fo=>fo+1)},this.sendMessage=fo=>{const po=this.editorRef.current;if(!po){console.log("!!!editorRef is not mounted.");return}const ho=fo??po.getContent(),mo=this.sendMessage$.getSnapshot(),bo=this.makeUserMessage$.getSnapshot()(ho);this.messages$.setState(xo=>[...xo,bo]),po.clear(),this.isOthersTyping$.next(!0),mo(ho,this,bo).then(xo=>{xo!==void 0&&this.messages$.setState(_o=>[..._o,xo])}).finally(()=>{this.isOthersTyping$.next(!1)})},this.setCalcContentForCopy=fo=>{this.calcContentForCopy$.next(fo)},this.setMakeUserMessage=fo=>{this.makeUserMessage$.next(fo)},this.setSendMessage=fo=>{this.sendMessage$.next(fo)},this.sessionSplit=fo=>{const po={id:uuid_1.v4(),type:ChatMessageType.SessionSplit,history:[{category:ChatMessageCategory.System,from:"system",content:fo??"",timestamp:new Date().toISOString()}]};return this.messages$.setState(ho=>[...ho,po]),po};const{alias:ro="",initialDisabled:no=!1,initialMessages:oo=[],locStrings:io=defaultLocStrings$1,calcContentForCopy:so=fo=>typeof fo.content=="string"?fo.content:JSON.stringify(fo.content),makeUserMessage:ao=fo=>({id:uuid_1.v4(),type:ChatMessageType.Message,history:[{category:ChatMessageCategory.User,from:this.alias$.getSnapshot(),timestamp:new Date().toISOString(),content:fo}]}),sendMessage:lo=async fo=>({id:uuid_1.v4(),type:ChatMessageType.Message,history:[{category:ChatMessageCategory.Chatbot,from:"chatbot",timestamp:new Date().toISOString(),content:fo}]})}=to;this.editorRef={current:null};const uo=new State(0),co=Computed.fromObservables([uo],()=>{var fo;return(fo=this.editorRef.current)==null?void 0:fo.isEmpty()});this.alias$=new State(ro),this.disabled$=new State(no),this.inputContentChangeTick$=uo,this.isEditorEmpty$=co,this.isOthersTyping$=new State(!1),this.locStrings$=new State(io),this.messages$=new State(oo),this.calcContentForCopy$=new State(so),this.makeUserMessage$=new State(ao),this.sendMessage$=new State(lo)}}const viewmodel=new ChatboxViewModel({sendMessage:()=>Promise.resolve({id:Date.now(),type:ChatMessageType.Message,history:[{category:ChatMessageCategory.System,from:"system",timestamp:new Date().toISOString(),content:"sendMessage not implemented!"}]})});React.createContext({viewmodel});function useEventCallback$1(eo){const to=reactExports.useRef(eo);return reactExports.useLayoutEffect(()=>{to.current=eo}),reactExports.useCallback((...ro)=>{const no=to.current;return no(...ro)},[])}function useCopyAction(eo,to){const[ro,no]=React.useState(CopyStatus.PENDING),oo=useEventCallback$3(so=>{if(ro===CopyStatus.PENDING){no(CopyStatus.COPYING);try{const ao=to(so);copy$2(ao),no(CopyStatus.COPIED)}catch{no(CopyStatus.FAILED)}}});return React.useEffect(()=>{if(ro===CopyStatus.COPIED||ro===CopyStatus.FAILED){let so=setTimeout(()=>{so=void 0,no(CopyStatus.PENDING)},1500);return()=>{so&&clearTimeout(so)}}},[ro]),React.useMemo(()=>({key:"copy",group:2,icon:ro===CopyStatus.PENDING?jsxRuntimeExports.jsx(Copy20Regular,{}):jsxRuntimeExports.jsx(CopyArrowRight20Regular,{}),tooltip:jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:eo.CopyToClipboard}),disabled:ro!==CopyStatus.PENDING,onClick:oo,condition:so=>so.category===ChatMessageCategory.Chatbot||so.category===ChatMessageCategory.User||so.category===ChatMessageCategory.Error}),[eo,ro,oo])}makeStyles({copyButton:{cursor:"pointer"}});const defaultUploadPopoverLocStrings={Add:"Add",AddAnImage:"Add an image",PasteImageOrLinkHere:"Paste image or link here",UploadFromThisDevice:"Upload from this device"},ImageView=eo=>{const{src:to,alt:ro,loading:no=!1,width:oo,height:io,styles:so}=eo;return to?no?jsxRuntimeExports.jsx("div",{children:"Loading..."}):jsxRuntimeExports.jsx("div",{className:so==null?void 0:so.root,children:jsxRuntimeExports.jsx("img",{className:so==null?void 0:so.image,src:to,alt:ro,width:oo,height:io})}):jsxRuntimeExports.jsx("div",{children:"This image can not be previewed."})},ImageViewModal=eo=>{const{src:to,alt:ro,visible:no,loading:oo=!1,width:io,height:so,onDismiss:ao}=eo,lo=useStyles$f(),uo=jsxRuntimeExports.jsxs("div",{className:lo.container,children:[jsxRuntimeExports.jsxs("div",{className:lo.header,children:[jsxRuntimeExports.jsx("h2",{className:lo.heading,children:"Preview"}),jsxRuntimeExports.jsx(Button$2,{as:"button",appearance:"transparent",icon:jsxRuntimeExports.jsx(Dismiss24Regular,{}),className:lo.dismissBtn,onClick:ao})]}),jsxRuntimeExports.jsx("div",{className:lo.main,children:jsxRuntimeExports.jsx(ImageView,{src:to,alt:ro,loading:oo,width:io,height:so,styles:{image:lo.image}})})]});return jsxRuntimeExports.jsx(Modal,{isOpen:no,isBlocking:!1,onDismiss:ao,children:uo})},useStyles$f=makeStyles({container:{display:"flex",flexDirection:"column",flexWrap:"nowrap",...shorthands.padding("16px")},header:{...shorthands.flex(0,0,"auto"),display:"flex",flexDirection:"row",flexWrap:"nowrap",justifyContent:"space-between",marginBottom:"20px"},heading:{...shorthands.margin(0),fontWeight:FontWeights.semibold,fontSize:"inherit"},dismissBtn:{"&&":{fontSize:"16px",lineHeight:"16px",height:"16px",width:"16px",color:tokens.colorNeutralStroke1}},main:{...shorthands.overflow("auto"),display:"flex",justifyContent:"center",alignItems:"center"},image:{width:"auto",height:"auto",maxWidth:"60vw",maxHeight:"60vh"}}),IMAGE_WIDTH="48px",MASK_SELECTOR_CLASS_NAME="__MASK_SELECTOR_CLASS_NAME__",UploadPopoverImagePreview=eo=>{const{image:to,alt:ro,isReadonly:no,onClickDelete:oo}=eo,[io,so]=React.useState(!1),ao=useStyles$e(),lo=React.useMemo(()=>{if(to)return typeof to=="string"?to:URL.createObjectURL(to)},[to]),uo=React.useCallback(()=>{so(fo=>!fo)},[]),co=lo||"";return jsxRuntimeExports.jsxs("div",{className:mergeClasses(ao.root,no?ao.readonlyRoot:void 0),children:[jsxRuntimeExports.jsxs("div",{className:ao.imageContainer,children:[jsxRuntimeExports.jsx("img",{decoding:"async",className:ao.image,src:co,alt:ro}),jsxRuntimeExports.jsx("div",{"aria-hidden":!0,className:mergeClasses(ao.mask,MASK_SELECTOR_CLASS_NAME),onClick:uo,role:"button",children:jsxRuntimeExports.jsx(ZoomIn20Regular,{})})]}),!no&&jsxRuntimeExports.jsx(Button$2,{as:"button",className:ao.closeButton,icon:jsxRuntimeExports.jsx(Dismiss20Regular,{}),onClick:oo}),jsxRuntimeExports.jsx(ImageViewModal,{src:co,alt:ro||"",visible:io,onDismiss:uo})]})},useStyles$e=makeStyles({root:{boxSizing:"border-box",display:"flex",height:"32px",width:"80px",...shorthands.border("1px","solid",tokens.colorNeutralStroke2),...shorthands.borderRadius("4px")},readonlyRoot:{width:"48px"},imageContainer:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",width:IMAGE_WIDTH,[`:hover .${MASK_SELECTOR_CLASS_NAME}`]:{visibility:"visible"}},image:{maxWidth:"100%",maxHeight:"100%",width:"auto",height:"auto"},mask:{visibility:"hidden",cursor:"pointer",position:"absolute",top:0,left:0,width:`calc(${IMAGE_WIDTH} - 2px)`,height:"100%",backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",color:tokens.colorNeutralForegroundStaticInverted,...shorthands.borderRadius("4px",0,0,"4px")},closeButton:{width:"32px",...shorthands.border(0)}}),UploadPopoverTrigger=React.forwardRef((eo,to)=>jsxRuntimeExports.jsx(Button$2,{...eo,ref:to,as:"button",appearance:"transparent",size:"medium",icon:jsxRuntimeExports.jsx(Attach16Regular,{})}));UploadPopoverTrigger.displayName="UploadPopoverTrigger";const mergeStyleSlots=(eo,...to)=>{const ro={...eo};for(const no of Object.keys(eo))ro[no]=mergeClasses(eo[no],...to.map(oo=>oo==null?void 0:oo[no]));return ro},UploadPopover=React.forwardRef(({isUploading:eo,disabled:to,trigger:ro=jsxRuntimeExports.jsx(UploadPopoverTrigger,{}),locStrings:no=defaultUploadPopoverLocStrings,styles:oo,events:io,onUpload:so,onRenderImagePreview:ao},lo)=>{const uo=mergeStyleSlots(useStyles$d(),oo),{onDelete:co,onInputBlur:fo,onPaste:po,onLocalUpload:ho}=io??{};React.useImperativeHandle(lo,()=>({open(){vo(!0)},close(){vo(!1)},reset:()=>{wo()},retrieve:()=>_o}));const[mo,vo]=React.useState(!1),[bo,xo]=React.useState(""),[_o,So]=React.useState(void 0),Eo=React.useRef(null),ko=React.useCallback((Bo,Mo)=>{vo(Mo.open||!1)},[]),wo=React.useCallback(()=>{xo(""),So(void 0),Eo.current&&(Eo.current.value="")},[]),Co=React.useCallback(Bo=>{const Mo=Bo[0];So(Mo),po==null||po(Mo)},[po]),Ro=React.useCallback(Bo=>{Bo.clipboardData.files&&Co&&Co(Bo.clipboardData.files)},[Co]),Ao=React.useCallback(()=>{fo==null||fo(bo),So(bo)},[bo,fo]),Io=React.useCallback(()=>{_o&&so(_o)},[_o,so]),$o=React.useMemo(()=>ao?ao({cachedImage:_o,customerInputContent:bo,isReadonly:to||eo||!1}):jsxRuntimeExports.jsx(UploadPopoverImagePreview,{image:_o||bo,alt:bo||"",isReadonly:eo,onClickDelete:()=>{wo(),co==null||co()}}),[bo,_o,wo,to,eo,co,ao]);return jsxRuntimeExports.jsxs(Popover,{positioning:"above-end",open:mo,onOpenChange:ko,children:[jsxRuntimeExports.jsx(PopoverTrigger,{disableButtonEnhancement:!0,children:ro}),jsxRuntimeExports.jsxs(PopoverSurface,{className:uo.attachUploadPopover,children:[jsxRuntimeExports.jsxs("div",{className:uo.attachUploadHeader,children:[jsxRuntimeExports.jsx("span",{children:no.AddAnImage}),jsxRuntimeExports.jsx(Button$2,{as:"button",disabled:to,appearance:"transparent",icon:jsxRuntimeExports.jsx(Dismiss24Regular,{}),onClick:()=>{vo(!1)}})]}),jsxRuntimeExports.jsxs("div",{className:uo.attachUploadInputWrapper,children:[_o?$o:jsxRuntimeExports.jsx(Input,{className:uo.attachUploadInput,value:bo,disabled:to,placeholder:no.PasteImageOrLinkHere,onChange:(Bo,Mo)=>{So(void 0),xo(Mo.value)},onPaste:Ro,onBlur:Ao}),jsxRuntimeExports.jsx(Button$2,{as:"button",disabled:to||eo||!_o&&!bo,className:uo.addButton,onClick:Io,children:eo?jsxRuntimeExports.jsx(Spinner,{size:"tiny"}):no.Add})]}),jsxRuntimeExports.jsx("input",{tabIndex:-1,"aria-hidden":!0,ref:Eo,disabled:to,className:uo.invisibleFileInput,onChange:Bo=>{var Ho;const Mo=(Ho=Bo.target.files)==null?void 0:Ho[0];Mo&&(ho==null||ho(Mo)),So(Mo)},type:"file",accept:"image/*"}),jsxRuntimeExports.jsx("div",{className:uo.triggerUploadButton,children:jsxRuntimeExports.jsx(Button$2,{as:"button",disabled:to,appearance:"transparent",icon:jsxRuntimeExports.jsx(ArrowUpload24Regular,{}),onClick:()=>{var Bo;(Bo=Eo.current)==null||Bo.click()},children:no.UploadFromThisDevice})})]})]})});UploadPopover.displayName="UploadPopover";const useStyles$d=makeStyles({attachUploadPopover:{width:"400px",backgroundColor:tokens.colorNeutralBackground1,...shorthands.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"},invisibleFileInput:{display:"none"},triggerUploadButton:{marginTop:"8px",display:"flex",justifyContent:"space-between"}});function DefaultMessageContentRenderer(eo){const{content:to,className:ro}=eo,no=useStyles$c(),oo=mergeClasses(no.content,ro);if(typeof to=="string")return jsxRuntimeExports.jsx("p",{className:oo,children:to});const io=JSON.stringify(to,null,2);return jsxRuntimeExports.jsx("pre",{className:oo,children:io})}DefaultMessageContentRenderer.displayName="DefaultMessageContentRenderer";const useStyles$c=makeStyles({content:{...shorthands.overflow("auto"),wordBreak:"break-all",whiteSpace:"break-spaces"}});function DefaultMessageErrorRenderer(eo){const{error:to,locStrings:ro,className:no}=eo,[oo,io]=React.useState(!1),so=useStyles$b(),ao=mergeClasses(so.errorMessageDetail,!oo&&so.errorMessageDetailHidden,no);return jsxRuntimeExports.jsxs(React.Fragment,{children:[jsxRuntimeExports.jsx("p",{children:jsxRuntimeExports.jsx(Link$1,{onClick:()=>io(lo=>!lo),children:oo?ro.MessageError_HideDetail:ro.MessageError_ShowDetail})}),jsxRuntimeExports.jsx("p",{className:ao,children:to})]})}DefaultMessageErrorRenderer.displayName="DefaultMessageErrorRenderer";const useStyles$b=makeStyles({errorMessageDetail:{...shorthands.margin("0","0","0","0"),wordBreak:"break-word",whiteSpace:"break-spaces"},errorMessageDetailHidden:{display:"none"}}),useToolbarDefaultActions=()=>React.useMemo(()=>[],[]);function DefaultMessageActionBarRenderer(eo){const{useMessageActions:to=useToolbarDefaultActions,data:ro,className:no}=eo,oo=to(ro),io=useStyles$a(),so=React.useMemo(()=>{const uo=oo.filter(fo=>!fo.condition||fo.condition(ro)).sort((fo,po)=>fo.group-po.group),co=[];for(let fo=0,po;fo0))return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const lo=[];for(let uo=0;uobo(ro)},po)},po))}uo+1{ro>0&&oo(ro-1)},ao=()=>{ro=jo?Ho:""+Array(jo+1-Fo.length).join(Oo)+Ho},Eo={s:So,z:function(Ho){var jo=-Ho.utcOffset(),Oo=Math.abs(jo),Fo=Math.floor(Oo/60),Go=Oo%60;return(jo<=0?"+":"-")+So(Fo,2,"0")+":"+So(Go,2,"0")},m:function Ho(jo,Oo){if(jo.date()1)return Ho(Xo[0])}else{var Zo=jo.name;wo[Zo]=jo,Go=Zo}return!Fo&&Go&&(ko=Go),Go||!Fo&&ko},Io=function(Ho,jo){if(Ro(Ho))return Ho.clone();var Oo=typeof jo=="object"?jo:{};return Oo.date=Ho,Oo.args=arguments,new Bo(Oo)},$o=Eo;$o.l=Ao,$o.i=Ro,$o.w=function(Ho,jo){return Io(Ho,{locale:jo.$L,utc:jo.$u,x:jo.$x,$offset:jo.$offset})};var Bo=function(){function Ho(Oo){this.$L=Ao(Oo.locale,null,!0),this.parse(Oo),this.$x=this.$x||Oo.x||{},this[Co]=!0}var jo=Ho.prototype;return jo.parse=function(Oo){this.$d=function(Fo){var Go=Fo.date,qo=Fo.utc;if(Go===null)return new Date(NaN);if($o.u(Go))return new Date;if(Go instanceof Date)return new Date(Go);if(typeof Go=="string"&&!/Z$/i.test(Go)){var Xo=Go.match(bo);if(Xo){var Zo=Xo[2]-1||0,Qo=(Xo[7]||"0").substring(0,3);return qo?new Date(Date.UTC(Xo[1],Zo,Xo[3]||1,Xo[4]||0,Xo[5]||0,Xo[6]||0,Qo)):new Date(Xo[1],Zo,Xo[3]||1,Xo[4]||0,Xo[5]||0,Xo[6]||0,Qo)}}return new Date(Go)}(Oo),this.init()},jo.init=function(){var Oo=this.$d;this.$y=Oo.getFullYear(),this.$M=Oo.getMonth(),this.$D=Oo.getDate(),this.$W=Oo.getDay(),this.$H=Oo.getHours(),this.$m=Oo.getMinutes(),this.$s=Oo.getSeconds(),this.$ms=Oo.getMilliseconds()},jo.$utils=function(){return $o},jo.isValid=function(){return this.$d.toString()!==vo},jo.isSame=function(Oo,Fo){var Go=Io(Oo);return this.startOf(Fo)<=Go&&Go<=this.endOf(Fo)},jo.isAfter=function(Oo,Fo){return Io(Oo){const{duration:to,tokens:ro,locStrings:no,className:oo}=eo,io=to.toFixed(2).replace(/\.?0*$/,"");return jsxRuntimeExports.jsxs("div",{className:oo,children:[ro>0&&jsxRuntimeExports.jsxs(React.Fragment,{children:[`${no.MessageStatus_TokensDesc}: `,jsxRuntimeExports.jsx("b",{children:ro}),` ${no.MessageStatus_TokensUint}, `]}),`${ro>0?no.MessageStatus_TimeSpentDesc:no.MessageStatus_TimeSpentDscCapitalized}: `,jsxRuntimeExports.jsx("b",{children:io}),` ${no.MessageStatus_TimeSpent_Unit}`]})};DefaultMessageStatusRenderer.displayName="DefaultMessageStatusRenderer";const EMPTY_CONTEXTUAL_MENU_ITEMS$1=[],defaultUseContextualMenuItems$1=eo=>EMPTY_CONTEXTUAL_MENU_ITEMS$1;function DefaultMessageBubbleRenderer(eo){const{MessageAvatarRenderer:to,MessageContentRenderer:ro=DefaultMessageContentRenderer,MessageErrorRenderer:no=DefaultMessageErrorRenderer,MessageSenderRenderer:oo=DefaultMessageSenderRenderer,MessagePaginationRenderer:io=DefaultMessagePaginationRenderer,MessageActionBarRenderer:so=DefaultMessageActionBarRenderer,MessageStatusRenderer:ao=DefaultMessageStatusRenderer,useMessageContextualMenuItems:lo=defaultUseContextualMenuItems$1,useMessageActions:uo,initialPage:co=-1,locStrings:fo,message:po,className:ho}=eo,mo=useStyles$8(),[vo,bo]=React.useState((co%po.history.length+po.history.length)%po.history.length),[xo,_o]=React.useState(!1),So=React.useRef(null),Eo=React.useRef(null),ko=React.useCallback(()=>{_o(!1)},[]),wo=React.useCallback($o=>{const Bo=So.current,Mo=Eo.current;if(Bo&&Mo){const Ho=$o.clientX,jo=$o.clientY,Oo=Bo.getBoundingClientRect(),Fo=Oo.left+window.scrollX,Go=Oo.top+window.scrollY,qo=Ho-Fo,Xo=jo-Go;Mo.style.left=`${qo}px`,Mo.style.top=`${Xo}px`}},[]),Co=React.useCallback($o=>{$o.preventDefault(),wo($o),_o(!0)},[]),Ro=po.history[vo],Ao=Ro.category===ChatMessageCategory.User?"right":"left",Io=lo(Ro);return React.useEffect(()=>{const $o=()=>{_o(!1)};return document.addEventListener("mousedown",$o),()=>document.removeEventListener("mousedown",$o)},[]),jsxRuntimeExports.jsx("div",{className:mo.container,"data-chatbox-locator":ChatboxLocator.MessageBubble,"data-position":Ao,children:jsxRuntimeExports.jsxs("div",{className:mergeClasses(mo.message,ho),"data-position":Ao,children:[jsxRuntimeExports.jsx("div",{className:mo.avatar,children:to&&jsxRuntimeExports.jsx(to,{data:Ro,position:Ao})}),jsxRuntimeExports.jsxs("div",{className:mo.main,children:[jsxRuntimeExports.jsx("div",{className:mo.sender,children:jsxRuntimeExports.jsx(oo,{data:Ro,position:Ao})}),jsxRuntimeExports.jsxs("div",{ref:So,className:mo.content,"data-category":Ro.category,"data-chatbox-locator":ChatboxLocator.MessageContent,onContextMenu:Co,onClick:wo,children:[jsxRuntimeExports.jsx(ro,{content:Ro.content,className:mo.contentMain}),Ro.error&&jsxRuntimeExports.jsx(no,{error:Ro.error,locStrings:fo,className:mo.error}),typeof Ro.duration=="number"&&typeof Ro.tokens=="number"&&jsxRuntimeExports.jsx(ao,{duration:Ro.duration,tokens:Ro.tokens,locStrings:fo,className:mo.status}),po.history.length>1&&jsxRuntimeExports.jsx(io,{className:mo.pagination,message:po,current:vo,setCurrent:bo}),jsxRuntimeExports.jsx("div",{ref:Eo,className:mo.contentMenuAnchor}),Io.length>0&&jsxRuntimeExports.jsx(ContextualMenu,{items:Io,hidden:!xo,target:Eo,onItemClick:ko,onDismiss:ko,className:mo.contextualMenu}),jsxRuntimeExports.jsx("div",{className:mo.actionBar,"data-chatbox-locator":ChatboxLocator.MessageActionBar,children:jsxRuntimeExports.jsx(so,{data:Ro,locStrings:fo,useMessageActions:uo})})]})]})]})})}DefaultMessageBubbleRenderer.displayName="DefaultMessageBubbleRenderer";const useStyles$8=makeStyles({container:{...shorthands.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:{...shorthands.flex(0,0,"auto")},main:{...shorthands.flex(1,1,"auto"),display:"flex",flexDirection:"column",width:"100%"},sender:{...shorthands.flex(0,0,"auto")},content:{...shorthands.flex(1,1,"auto"),...shorthands.borderRadius("4px"),position:"relative",boxSizing:"border-box",minWidth:"48px",wordBreak:"break-word",lineHeight:"22px","> p":{...shorthands.margin(0)},[`&:hover > ${ChatboxSelector.MessageActionBar}`]:{display:"flex",visibility:"visible"},[`&&[data-category="${ChatMessageCategory.System}"]`]:{color:tokens.colorNeutralForeground4},[`&&[data-category="${ChatMessageCategory.Error}"]`]:{backgroundColor:tokens.colorPaletteRedBackground2,color:tokens.colorNeutralForeground1},[`&&[data-category="${ChatMessageCategory.Chatbot}"]`]:{backgroundColor:tokens.colorNeutralBackground4,color:tokens.colorNeutralForeground1},[`&&[data-category="${ChatMessageCategory.User}"]`]:{backgroundColor:tokens.colorBrandBackground2,color:tokens.colorNeutralForeground1}},contentMain:{...shorthands.padding("12px","20px","12px","12px")},contextualMenu:{width:"auto",minWidth:"180px"},contentMenuAnchor:{position:"absolute",top:"0px",left:"0px"},error:{...shorthands.borderTop("1px","solid",tokens.colorPaletteDarkRedBorderActive),marginTop:"8px !important",paddingTop:"8px"},pagination:{},status:{...shorthands.borderTop("1px","solid",tokens.colorNeutralStroke1),...shorthands.padding("0px","20px","0px","12px"),fontSize:"12px",fontStyle:"italic"},actionBar:{position:"absolute",right:"0px",top:"-32px",display:"none",justifyContent:"space-between"}});function DefaultSessionSplitRenderer(eo){const{locStrings:to,className:ro}=eo,no=useStyles$7();return jsxRuntimeExports.jsx("div",{className:mergeClasses(no.sessionSplit,ro),children:jsxRuntimeExports.jsxs("span",{children:["--- ",to.SessionSplit_Desc," ---"]})})}DefaultSessionSplitRenderer.displayName="DefaultSessionSplitRenderer";const useStyles$7=makeStyles({sessionSplit:{display:"flex",justifyContent:"center",height:"24px",color:tokens.colorNeutralForeground4}});makeStyles({hintTyping:{...shorthands.overflow("hidden"),width:"1px",height:"1px"},typingDots:{...shorthands.transition("opacity","0.1s"),display:"flex",alignItems:"center",height:"22.5px"},typingDot:{...shorthands.borderRadius("50%"),...shorthands.margin("0","0","0","6px"),display:"inline-block",width:"6px",height:"6px",backgroundColor:tokens.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)":{...shorthands.margin("0px")},"&:nth-child(2)":{animationDelay:"0.18s"},"&:nth-child(3)":{animationDelay:"0.36s"}}});makeStyles({toolbar:{display:"flex",justifyContent:"flex-end"}});makeStyles({input:{...shorthands.border("1px","solid",tokens.colorNeutralBackground5),...shorthands.borderRadius("4px"),boxSizing:"border-box",display:"grid",gridTemplateRows:"1fr auto"},editor:{boxSizing:"border-box"},editorInner:{...shorthands.border("0px"),boxSizing:"border-box"},editorToolbar:{boxSizing:"border-box",display:"flex",alignItems:"flex-end",justifyContent:"flex-end",height:"100%"}});function MessageListRenderer(eo){const{MessageAvatarRenderer:to,MessageContentRenderer:ro,MessageErrorRenderer:no,MessageSenderRenderer:oo,MessageBubbleRenderer:io=DefaultMessageBubbleRenderer,SessionSplitRenderer:so=DefaultSessionSplitRenderer,className:ao,bubbleClassName:lo,sessionSplitClassName:uo,locStrings:co,messages:fo,useMessageContextualMenuItems:po,useMessageActions:ho}=eo,mo=useStyles$6();return jsxRuntimeExports.jsx("div",{className:mergeClasses(mo.container,ao),"data-chatbox-locator":ChatboxLocator.MessageList,children:fo.map(vo=>{switch(vo.type){case ChatMessageType.Message:return jsxRuntimeExports.jsx(io,{MessageAvatarRenderer:to,MessageContentRenderer:ro,MessageErrorRenderer:no,MessageSenderRenderer:oo,locStrings:co,message:vo,className:lo,useMessageContextualMenuItems:po,useMessageActions:ho},vo.id);case ChatMessageType.SessionSplit:return jsxRuntimeExports.jsx(so,{locStrings:co,className:uo},vo.id);default:return jsxRuntimeExports.jsx(React.Fragment,{},vo.id)}})})}MessageListRenderer.displayName="MessageListRenderer";const useStyles$6=makeStyles({container:{boxSizing:"border-box"}}),rv=class rv extends React.PureComponent{render(){const{elements:to,deltaH:ro,deltaW:no,scaleH:oo,scaleW:io,className:so,elementClassName:ao}=this.props;return jsxRuntimeExports.jsx("div",{className:so,children:to.map((lo,uo)=>{const co=(lo.top-ro)*oo,fo=(lo.left-no)*io,po=lo.height*oo,ho=lo.width*io,mo={top:co,left:fo,height:po,width:ho};return lo.backgroundColor&&(mo.backgroundColor=lo.backgroundColor),jsxRuntimeExports.jsx("div",{className:ao,style:mo},uo)})})}};rv.displayName="MinimapOverview";let MinimapOverview=rv;const MinimapViewport=eo=>{const{scaleH:to,sourceRootRef:ro,sourceQuerySelector:no,className:oo}=eo,[io,so]=React.useState(0),[ao,lo]=React.useState(0),uo=useStyles$5();return React.useLayoutEffect(()=>{var ho,mo;const co=(mo=(ho=ro.current)==null?void 0:ho.querySelector(no))==null?void 0:mo.parentElement;if(!co)return()=>{};const{height:fo}=co.getBoundingClientRect();lo(fo);const po=()=>{so(co.scrollTop||0)};return co.addEventListener("scroll",po),()=>co.removeEventListener("scroll",po)},[ro.current]),jsxRuntimeExports.jsx("div",{className:mergeClasses(uo.viewport,oo),style:{position:"absolute",top:io*to,height:`${ao*to}px`}})};MinimapViewport.displayName="MinimapViewport";const useStyles$5=makeStyles({viewport:{display:"block",width:"100%",left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.15)"}}),Minimap=eo=>{const{SCROLL_DELTA_THRESHOLD:to=5,syncScale:ro=!0,sourceRootRef:no,sourceQuerySelector:oo,sourceElementQuerySelector:io,className:so,overviewClassName:ao,overviewElementClassName:lo,viewportClassName:uo,style:co}=eo,[fo,po]=React.useState([]),[ho,mo]=React.useState(0),[vo,bo]=React.useState(0),[xo,_o]=React.useState(0),[So,Eo]=React.useState(0),[ko,wo]=React.useState(0),[Co,Ro]=React.useState(0),[Ao,Io]=React.useState(0),[$o,Bo]=React.useState(0),Mo=So<=0?0:vo/So||.1,Ho=xo<=0?0:ro?Math.max(1/xo,Math.min(Mo,(ho-10)/xo||.1)):Math.max(1/xo,(ho-10)/xo||.1),jo=React.useRef(null),Oo=React.useRef(null),Fo=React.useRef(!1),Go=useEventCallback$1(Ts=>{var Os,As;if(Ts.preventDefault(),Ts.stopPropagation(),Fo.current=!0,!Oo.current)return;const Rs=(As=(Os=no.current)==null?void 0:Os.querySelector(oo))==null?void 0:As.parentElement;if(Rs){const Jo=(Ts.clientY-Oo.current.getBoundingClientRect().top)/Ho;Math.abs(Rs.scrollTop-Jo)>to&&(Rs.scrollTop=Jo)}}),qo=useEventCallback$1(Ts=>{var Os,As;if(Ts.preventDefault(),Ts.stopPropagation(),!Fo.current||!Oo.current)return;const Rs=(As=(Os=no.current)==null?void 0:Os.querySelector(oo))==null?void 0:As.parentElement;if(Rs){const Jo=(Ts.clientY-Oo.current.getBoundingClientRect().top)/Ho;Math.abs(Rs.scrollTop-Jo)>to&&(Rs.scrollTop=Jo)}}),Xo=React.useCallback(Ts=>{const Rs=Ts.querySelector(oo);if(!Rs)return;const Os=Rs.querySelectorAll(io),As=[];for(let Jo=0;Jo{const Ts=()=>{Fo.current=!1};return document.addEventListener("mouseup",Ts),()=>document.removeEventListener("mouseup",Ts)},[]),React.useLayoutEffect(()=>{const Ts=jo.current;if(!Ts)return;const{height:Rs,width:Os}=Ts.getBoundingClientRect();mo(Rs),bo(Os)},[]),React.useLayoutEffect(()=>{const Ts=no.current;if(!Ts)return()=>{};Xo(Ts);const Rs=new MutationObserver(Os=>{for(const As of Os)As.type==="childList"&&Xo(Ts)});return Rs.observe(Ts,{childList:!0,subtree:!0}),()=>{Rs.disconnect()}},[no.current,Xo]);const Zo=useStyles$4(),Qo=xo+ko-Ao,xs=So+Co-$o;return jsxRuntimeExports.jsx("div",{ref:jo,className:mergeClasses(Zo.container,so),style:co,children:jsxRuntimeExports.jsxs("div",{ref:Oo,className:Zo.minimap,onMouseDown:Go,onMouseMove:qo,children:[jsxRuntimeExports.jsx(MinimapOverview,{elements:fo,deltaH:Qo,deltaW:xs,scaleH:Ho,scaleW:Mo,className:mergeClasses(Zo.overview,ao),elementClassName:mergeClasses(Zo.minimapElement,lo)}),jsxRuntimeExports.jsx(MinimapViewport,{scaleH:Ho,sourceRootRef:no,sourceQuerySelector:oo,className:uo})]})})};Minimap.displayName="Minimap";const useStyles$4=makeStyles({container:{height:"100%",width:"100%",...shorthands.overflow("hidden")},minimap:{position:"relative",width:"100%",height:"100%"},overview:{},minimapElement:{position:"absolute",backgroundColor:"#c292f9"}});makeStyles({editor:{...shorthands.padding("8px"),...shorthands.border("1px","solid",tokens.colorNeutralBackground5),...shorthands.borderRadius("4px"),boxSizing:"border-box",display:"block",width:"100%",userSelect:"none",position:"relative",'&[data-disabled="true"]':{backgroundColor:tokens.colorNeutralBackgroundDisabled}},textarea:{...shorthands.padding("0px"),...shorthands.overflow("hidden","auto"),...shorthands.borderWidth(0),...shorthands.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:tokens.colorNeutralForeground1,userSelect:"text"}});function e$1(eo){return{}}const t$3={},n$2={},r$1={},i$2={},s$2={},o$5={},l$3={},c$5={},u$5={},a$4={},f$4={},d$4={},h$3={},g$6={},_$5={},p$4={},y$4={},m$5={},x$5={},v$3={},T$3={},S$4={},k$2={},C$4={},b$2={},N$3={},w$3={},E$4={},P$3={},D$2={},I$1={},O$2={},A$3={},L$2={},F$1={},M$3={},W={},z$1={},B$2={},R$2={},K$2={},J={},U={},V={},$$1={};var H$1=function(eo){const to=new URLSearchParams;to.append("code",eo);for(let ro=1;roOe;try{Vi(eo,()=>{const oo=fi()||function(po){return po.getEditorState().read(()=>{const ho=fi();return ho!==null?ho.clone():null})}(eo),io=new Map,so=eo.getRootElement(),ao=eo._editorState,lo=eo._blockCursorElement;let uo=!1,co="";for(let po=0;po0){let Eo=0;for(let ko=0;ko0)for(const[po,ho]of io)if(qi(ho)){const mo=ho.getChildrenKeys();let vo=po.firstChild;for(let bo=0;bo0){for(let po=0;po{Be(eo,to,ro)})}function Je(eo,to){const ro=eo.__mode,no=eo.__format,oo=eo.__style,io=to.__mode,so=to.__format,ao=to.__style;return!(ro!==null&&ro!==io||no!==null&&no!==so||oo!==null&&oo!==ao)}function Ue(eo,to){const ro=eo.mergeWithSibling(to),no=Oi()._normalizedNodes;return no.add(eo.__key),no.add(to.__key),ro}function Ve(eo){let to,ro,no=eo;if(no.__text!==""||!no.isSimpleText()||no.isUnmergeable()){for(;(to=no.getPreviousSibling())!==null&&Br(to)&&to.isSimpleText()&&!to.isUnmergeable();){if(to.__text!==""){if(Je(to,no)){no=Ue(to,no);break}break}to.remove()}for(;(ro=no.getNextSibling())!==null&&Br(ro)&&ro.isSimpleText()&&!ro.isUnmergeable();){if(ro.__text!==""){if(Je(no,ro)){no=Ue(no,ro);break}break}ro.remove()}}else no.remove()}function $e(eo){return He(eo.anchor),He(eo.focus),eo}function He(eo){for(;eo.type==="element";){const to=eo.getNode(),ro=eo.offset;let no,oo;if(ro===to.getChildrenSize()?(no=to.getChildAtIndex(ro-1),oo=!0):(no=to.getChildAtIndex(ro),oo=!1),Br(no)){eo.set(no.__key,oo?no.getTextContentSize():0,"text");break}if(!qi(no))break;eo.set(no.__key,oo?no.getChildrenSize():0,"element")}}let je=1;const qe=typeof queueMicrotask=="function"?queueMicrotask:eo=>{Promise.resolve().then(eo)};function Qe(eo){const to=document.activeElement;if(to===null)return!1;const ro=to.nodeName;return Hi(at$1(eo))&&(ro==="INPUT"||ro==="TEXTAREA"||to.contentEditable==="true"&&to.__lexicalEditor==null)}function Xe(eo,to,ro){const no=eo.getRootElement();try{return no!==null&&no.contains(to)&&no.contains(ro)&&to!==null&&!Qe(to)&&Ye(to)===eo}catch{return!1}}function Ye(eo){let to=eo;for(;to!=null;){const ro=to.__lexicalEditor;if(ro!=null)return ro;to=Jt(to)}return null}function Ze(eo){return eo.isToken()||eo.isSegmented()}function Ge(eo){return eo.nodeType===se}function et(eo){let to=eo;for(;to!=null;){if(Ge(to))return to;to=to.firstChild}return null}function tt(eo,to,ro){const no=be[to];if(ro!==null&&(eo&no)==(ro&no))return eo;let oo=eo^no;return to==="subscript"?oo&=~be.superscript:to==="superscript"&&(oo&=~be.subscript),oo}function nt(eo){return Br(eo)||vr(eo)||Hi(eo)}function rt(eo,to){if(to!=null)return void(eo.__key=to);Pi(),Di();const ro=Oi(),no=Ii(),oo=""+je++;no._nodeMap.set(oo,eo),qi(eo)?ro._dirtyElements.set(oo,!0):ro._dirtyLeaves.add(oo),ro._cloneNotNeeded.add(oo),ro._dirtyType=le,eo.__key=oo}function it(eo){const to=eo.getParent();if(to!==null){const ro=eo.getWritable(),no=to.getWritable(),oo=eo.getPreviousSibling(),io=eo.getNextSibling();if(oo===null)if(io!==null){const so=io.getWritable();no.__first=io.__key,so.__prev=null}else no.__first=null;else{const so=oo.getWritable();if(io!==null){const ao=io.getWritable();ao.__prev=so.__key,so.__next=ao.__key}else so.__next=null;ro.__prev=null}if(io===null)if(oo!==null){const so=oo.getWritable();no.__last=oo.__key,so.__next=null}else no.__last=null;else{const so=io.getWritable();if(oo!==null){const ao=oo.getWritable();ao.__next=so.__key,so.__prev=ao.__key}else so.__prev=null;ro.__next=null}no.__size--,ro.__parent=null}}function st$1(eo){Di();const to=eo.getLatest(),ro=to.__parent,no=Ii(),oo=Oi(),io=no._nodeMap,so=oo._dirtyElements;ro!==null&&function(lo,uo,co){let fo=lo;for(;fo!==null;){if(co.has(fo))return;const po=uo.get(fo);if(po===void 0)break;co.set(fo,!1),fo=po.__parent}}(ro,io,so);const ao=to.__key;oo._dirtyType=le,qi(eo)?so.set(ao,!0):oo._dirtyLeaves.add(ao)}function ot(eo){Pi();const to=Oi(),ro=to._compositionKey;if(eo!==ro){if(to._compositionKey=eo,ro!==null){const no=ct$1(ro);no!==null&&no.getWritable()}if(eo!==null){const no=ct$1(eo);no!==null&&no.getWritable()}}}function lt$1(){return Ei()?null:Oi()._compositionKey}function ct$1(eo,to){const ro=(to||Ii())._nodeMap.get(eo);return ro===void 0?null:ro}function ut$1(eo,to){const ro=eo[`__lexicalKey_${Oi()._key}`];return ro!==void 0?ct$1(ro,to):null}function at$1(eo,to){let ro=eo;for(;ro!=null;){const no=ut$1(ro,to);if(no!==null)return no;ro=Jt(ro)}return null}function ft$1(eo){const to=eo._decorators,ro=Object.assign({},to);return eo._pendingDecorators=ro,ro}function dt$1(eo){return eo.read(()=>ht$1().getTextContent())}function ht$1(){return gt$1(Ii())}function gt$1(eo){return eo._nodeMap.get("root")}function _t(eo){Pi();const to=Ii();eo!==null&&(eo.dirty=!0,eo.setCachedNodes(null)),to._selection=eo}function pt$1(eo){const to=Oi(),ro=function(no,oo){let io=no;for(;io!=null;){const so=io[`__lexicalKey_${oo._key}`];if(so!==void 0)return so;io=Jt(io)}return null}(eo,to);return ro===null?eo===to.getRootElement()?ct$1("root"):null:ct$1(ro)}function yt$1(eo,to){return to?eo.getTextContentSize():0}function mt$1(eo){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(eo)}function xt$1(eo){const to=[];let ro=eo;for(;ro!==null;)to.push(ro),ro=ro._parentEditor;return to}function vt$1(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function Tt(eo){return eo.nodeType===se?eo.nodeValue:null}function St(eo,to,ro){const no=nn(to._window);if(no===null)return;const oo=no.anchorNode;let{anchorOffset:io,focusOffset:so}=no;if(oo!==null){let ao=Tt(oo);const lo=at$1(oo);if(ao!==null&&Br(lo)){if(ao===me&&ro){const uo=ro.length;ao=ro,io=uo,so=uo}ao!==null&&kt(lo,ao,io,so,eo)}}}function kt(eo,to,ro,no,oo){let io=eo;if(io.isAttached()&&(oo||!io.isDirty())){const so=io.isComposing();let ao=to;(so||oo)&&to[to.length-1]===me&&(ao=to.slice(0,-1));const lo=io.getTextContent();if(oo||ao!==lo){if(ao===""){if(ot(null),Z||G||re)io.remove();else{const vo=Oi();setTimeout(()=>{vo.update(()=>{io.isAttached()&&io.remove()})},20)}return}const uo=io.getParent(),co=di(),fo=io.getTextContentSize(),po=lt$1(),ho=io.getKey();if(io.isToken()||po!==null&&ho===po&&!so||Xr(co)&&(uo!==null&&!uo.canInsertTextBefore()&&co.anchor.offset===0||co.anchor.key===eo.__key&&co.anchor.offset===0&&!io.canInsertTextBefore()&&!so||co.focus.key===eo.__key&&co.focus.offset===fo&&!io.canInsertTextAfter()&&!so))return void io.markDirty();const mo=fi();if(!Xr(mo)||ro===null||no===null)return void io.setTextContent(ao);if(mo.setTextNodeRange(io,ro,io,no),io.isSegmented()){const vo=zr(io.getTextContent());io.replace(vo),io=vo}io.setTextContent(ao)}}}function Ct$1(eo,to){if(to.isSegmented())return!0;if(!eo.isCollapsed())return!1;const ro=eo.anchor.offset,no=to.getParentOrThrow(),oo=to.isToken();return ro===0?!to.canInsertTextBefore()||!no.canInsertTextBefore()||oo||function(io){const so=io.getPreviousSibling();return(Br(so)||qi(so)&&so.isInline())&&!so.canInsertTextAfter()}(to):ro===to.getTextContentSize()&&(!to.canInsertTextAfter()||!no.canInsertTextAfter()||oo)}function bt(eo){return eo===37}function Nt$1(eo){return eo===39}function wt$1(eo,to){return Q?eo:to}function Et$1(eo){return eo===13}function Pt$1(eo){return eo===8}function Dt$1(eo){return eo===46}function It(eo,to,ro){return eo===65&&wt$1(to,ro)}function Ot$1(){const eo=ht$1();_t($e(eo.select(0,eo.getChildrenSize())))}function At$1(eo,to){eo.__lexicalClassNameCache===void 0&&(eo.__lexicalClassNameCache={});const ro=eo.__lexicalClassNameCache,no=ro[to];if(no!==void 0)return no;const oo=eo[to];if(typeof oo=="string"){const io=Ie(oo);return ro[to]=io,io}return oo}function Lt(eo,to,ro,no,oo){if(ro.size===0)return;const io=no.__type,so=no.__key,ao=to.get(io);ao===void 0&&H$1(33,io);const lo=ao.klass;let uo=eo.get(lo);uo===void 0&&(uo=new Map,eo.set(lo,uo));const co=uo.get(so),fo=co==="destroyed"&&oo==="created";(co===void 0||fo)&&uo.set(so,fo?"updated":oo)}function Ft(eo){const to=Ii(),ro=to._readOnly,no=eo.getType(),oo=to._nodeMap,io=[];for(const[,so]of oo)so instanceof eo&&so.__type===no&&(ro||so.isAttached())&&io.push(so);return io}function Mt(eo,to,ro){const no=eo.getParent();let oo=ro,io=eo;return no!==null&&(to&&ro===0?(oo=io.getIndexWithinParent(),io=no):to||ro!==io.getChildrenSize()||(oo=io.getIndexWithinParent()+1,io=no)),io.getChildAtIndex(to?oo-1:oo)}function Wt(eo,to){const ro=eo.offset;if(eo.type==="element")return Mt(eo.getNode(),to,ro);{const no=eo.getNode();if(to&&ro===0||!to&&ro===no.getTextContentSize()){const oo=to?no.getPreviousSibling():no.getNextSibling();return oo===null?Mt(no.getParentOrThrow(),to,no.getIndexWithinParent()+(to?0:1)):oo}}return null}function zt(eo){const to=Ht(eo).event,ro=to&&to.inputType;return ro==="insertFromPaste"||ro==="insertFromPasteAsQuotation"}function Bt(eo,to,ro){return Ki(eo,to,ro)}function Rt(eo){return!Yi(eo)&&!eo.isLastChild()&&!eo.isInline()}function Kt(eo,to){const ro=eo._keyToDOMMap.get(to);return ro===void 0&&H$1(75,to),ro}function Jt(eo){const to=eo.assignedSlot||eo.parentElement;return to!==null&&to.nodeType===11?to.host:to}function Ut(eo){return Oi()._updateTags.has(eo)}function Vt(eo){Pi(),Oi()._updateTags.add(eo)}function $t(eo,to){let ro=eo.getParent();for(;ro!==null;){if(ro.is(to))return!0;ro=ro.getParent()}return!1}function Ht(eo){const to=eo._window;return to===null&&H$1(78),to}function jt(eo){return qi(eo)&&eo.isInline()||Hi(eo)&&eo.isInline()}function qt(eo){let to=eo.getParentOrThrow();for(;to!==null;){if(Qt(to))return to;to=to.getParentOrThrow()}return to}function Qt(eo){return Yi(eo)||qi(eo)&&eo.isShadowRoot()}function Xt(eo){const to=eo.constructor.clone(eo);return rt(to,null),to}function Yt(eo){const to=Oi(),ro=eo.constructor.getType(),no=to._nodes.get(ro);no===void 0&&H$1(97);const oo=no.replace;if(oo!==null){const io=oo(eo);return io instanceof eo.constructor||H$1(98),io}return eo}function Zt(eo,to){!Yi(eo.getParent())||qi(to)||Hi(to)||H$1(99)}function Gt(eo){return(Hi(eo)||qi(eo)&&!eo.canBeEmpty())&&!eo.isInline()}function en(eo,to,ro){ro.style.removeProperty("caret-color"),to._blockCursorElement=null;const no=eo.parentElement;no!==null&&no.removeChild(eo)}function tn(eo,to,ro){let no=eo._blockCursorElement;if(Xr(ro)&&ro.isCollapsed()&&ro.anchor.type==="element"&&to.contains(document.activeElement)){const oo=ro.anchor,io=oo.getNode(),so=oo.offset;let ao=!1,lo=null;if(so===io.getChildrenSize())Gt(io.getChildAtIndex(so-1))&&(ao=!0);else{const uo=io.getChildAtIndex(so);if(Gt(uo)){const co=uo.getPreviousSibling();(co===null||Gt(co))&&(ao=!0,lo=eo.getElementByKey(uo.__key))}}if(ao){const uo=eo.getElementByKey(io.__key);return no===null&&(eo._blockCursorElement=no=function(co){const fo=co.theme,po=document.createElement("div");po.contentEditable="false",po.setAttribute("data-lexical-cursor","true");let ho=fo.blockCursor;if(ho!==void 0){if(typeof ho=="string"){const mo=Ie(ho);ho=fo.blockCursor=mo}ho!==void 0&&po.classList.add(...ho)}return po}(eo._config)),to.style.caretColor="transparent",void(lo===null?uo.appendChild(no):uo.insertBefore(no,lo))}}no!==null&&en(no,eo,to)}function nn(eo){return j?(eo||window).getSelection():null}function rn(eo,to){let ro=eo.getChildAtIndex(to);ro==null&&(ro=eo),Qt(eo)&&H$1(102);const no=so=>{const ao=so.getParentOrThrow(),lo=Qt(ao),uo=so!==ro||lo?Xt(so):so;if(lo)return qi(so)&&qi(uo)||H$1(133),so.insertAfter(uo),[so,uo,uo];{const[co,fo,po]=no(ao),ho=so.getNextSiblings();return po.append(uo,...ho),[co,fo,uo]}},[oo,io]=no(ro);return[oo,io]}function sn(eo){return on(eo)&&eo.tagName==="A"}function on(eo){return eo.nodeType===1}function ln(eo){if(Hi(eo)&&!eo.isInline())return!0;if(!qi(eo)||Qt(eo))return!1;const to=eo.getFirstChild(),ro=to===null||vr(to)||Br(to)||to.isInline();return!eo.isInline()&&eo.canBeEmpty()!==!1&&ro}function cn(eo,to){let ro=eo;for(;ro!==null&&ro.getParent()!==null&&!to(ro);)ro=ro.getParentOrThrow();return to(ro)?ro:null}function un(){return Oi()}function an(eo,to,ro,no,oo,io){let so=eo.getFirstChild();for(;so!==null;){const ao=so.__key;so.__parent===to&&(qi(so)&&an(so,ao,ro,no,oo,io),ro.has(ao)||io.delete(ao),oo.push(ao)),so=so.getNextSibling()}}let fn,dn,hn,gn,_n,pn,yn,mn,xn,vn,Tn="",Sn="",kn="",Cn=!1,bn=!1,Nn=null;function wn(eo,to){const ro=yn.get(eo);if(to!==null){const no=Vn(eo);no.parentNode===to&&to.removeChild(no)}if(mn.has(eo)||dn._keyToDOMMap.delete(eo),qi(ro)){const no=Bn(ro,yn);En(no,0,no.length-1,null)}ro!==void 0&&Lt(vn,hn,gn,ro,"destroyed")}function En(eo,to,ro,no){let oo=to;for(;oo<=ro;++oo){const io=eo[oo];io!==void 0&&wn(io,no)}}function Pn(eo,to){eo.setProperty("text-align",to)}const Dn="40px";function In(eo,to){const ro=fn.theme.indent;if(typeof ro=="string"){const oo=eo.classList.contains(ro);to>0&&!oo?eo.classList.add(ro):to<1&&oo&&eo.classList.remove(ro)}const no=getComputedStyle(eo).getPropertyValue("--lexical-indent-base-value")||Dn;eo.style.setProperty("padding-inline-start",to===0?"":`calc(${to} * ${no})`)}function On(eo,to){const ro=eo.style;to===0?Pn(ro,""):to===de?Pn(ro,"left"):to===he?Pn(ro,"center"):to===ge?Pn(ro,"right"):to===_e?Pn(ro,"justify"):to===pe?Pn(ro,"start"):to===ye&&Pn(ro,"end")}function An(eo,to,ro){const no=mn.get(eo);no===void 0&&H$1(60);const oo=no.createDOM(fn,dn);if(function(io,so,ao){const lo=ao._keyToDOMMap;so["__lexicalKey_"+ao._key]=io,lo.set(io,so)}(eo,oo,dn),Br(no)?oo.setAttribute("data-lexical-text","true"):Hi(no)&&oo.setAttribute("data-lexical-decorator","true"),qi(no)){const io=no.__indent,so=no.__size;if(io!==0&&In(oo,io),so!==0){const lo=so-1;(function(uo,co,fo,po){const ho=Sn;Sn="",Ln(uo,fo,0,co,po,null),Wn(fo,po),Sn=ho})(Bn(no,mn),lo,no,oo)}const ao=no.__format;ao!==0&&On(oo,ao),no.isInline()||Mn(null,no,oo),Rt(no)&&(Tn+=xe,kn+=xe)}else{const io=no.getTextContent();if(Hi(no)){const so=no.decorate(dn,fn);so!==null&&Kn(eo,so),oo.contentEditable="false"}else Br(no)&&(no.isDirectionless()||(Sn+=io));Tn+=io,kn+=io}if(to!==null)if(ro!=null)to.insertBefore(oo,ro);else{const io=to.__lexicalLineBreak;io!=null?to.insertBefore(oo,io):to.appendChild(oo)}return Lt(vn,hn,gn,no,"created"),oo}function Ln(eo,to,ro,no,oo,io){const so=Tn;Tn="";let ao=ro;for(;ao<=no;++ao)An(eo[ao],oo,io);Rt(to)&&(Tn+=xe),oo.__lexicalTextContent=Tn,Tn=so+Tn}function Fn(eo,to){const ro=to.get(eo);return vr(ro)||Hi(ro)&&ro.isInline()}function Mn(eo,to,ro){const no=eo!==null&&(eo.__size===0||Fn(eo.__last,yn)),oo=to.__size===0||Fn(to.__last,mn);if(no){if(!oo){const io=ro.__lexicalLineBreak;io!=null&&ro.removeChild(io),ro.__lexicalLineBreak=null}}else if(oo){const io=document.createElement("br");ro.__lexicalLineBreak=io,ro.appendChild(io)}}function Wn(eo,to){const ro=to.__lexicalDirTextContent,no=to.__lexicalDir;if(ro!==Sn||no!==Nn){const io=Sn==="",so=io?Nn:(oo=Sn,ke.test(oo)?"rtl":Ce.test(oo)?"ltr":null);if(so!==no){const ao=to.classList,lo=fn.theme;let uo=no!==null?lo[no]:void 0,co=so!==null?lo[so]:void 0;if(uo!==void 0){if(typeof uo=="string"){const fo=Ie(uo);uo=lo[no]=fo}ao.remove(...uo)}if(so===null||io&&so==="ltr")to.removeAttribute("dir");else{if(co!==void 0){if(typeof co=="string"){const fo=Ie(co);co=lo[so]=fo}co!==void 0&&ao.add(...co)}to.dir=so}bn||(eo.getWritable().__dir=so)}Nn=so,to.__lexicalDirTextContent=Sn,to.__lexicalDir=so}var oo}function zn(eo,to,ro){const no=Sn;Sn="",function(oo,io,so){const ao=Tn,lo=oo.__size,uo=io.__size;if(Tn="",lo===1&&uo===1){const co=oo.__first,fo=io.__first;if(co===fo)Rn(co,so);else{const po=Vn(co),ho=An(fo,null,null);so.replaceChild(ho,po),wn(co,null)}}else{const co=Bn(oo,yn),fo=Bn(io,mn);if(lo===0)uo!==0&&Ln(fo,io,0,uo-1,so,null);else if(uo===0){if(lo!==0){const po=so.__lexicalLineBreak==null;En(co,0,lo-1,po?null:so),po&&(so.textContent="")}}else(function(po,ho,mo,vo,bo,xo){const _o=vo-1,So=bo-1;let Eo,ko,wo=(Ao=xo,Ao.firstChild),Co=0,Ro=0;for(var Ao;Co<=_o&&Ro<=So;){const Bo=ho[Co],Mo=mo[Ro];if(Bo===Mo)wo=Jn(Rn(Mo,xo)),Co++,Ro++;else{Eo===void 0&&(Eo=new Set(ho)),ko===void 0&&(ko=new Set(mo));const Ho=ko.has(Bo),jo=Eo.has(Mo);if(Ho)if(jo){const Oo=Kt(dn,Mo);Oo===wo?wo=Jn(Rn(Mo,xo)):(wo!=null?xo.insertBefore(Oo,wo):xo.appendChild(Oo),Rn(Mo,xo)),Co++,Ro++}else An(Mo,xo,wo),Ro++;else wo=Jn(Vn(Bo)),wn(Bo,xo),Co++}}const Io=Co>_o,$o=Ro>So;if(Io&&!$o){const Bo=mo[So+1];Ln(mo,po,Ro,So,xo,Bo===void 0?null:dn.getElementByKey(Bo))}else $o&&!Io&&En(ho,Co,_o,xo)})(io,co,fo,lo,uo,so)}Rt(io)&&(Tn+=xe),so.__lexicalTextContent=Tn,Tn=ao+Tn}(eo,to,ro),Wn(to,ro),Sn=no}function Bn(eo,to){const ro=[];let no=eo.__first;for(;no!==null;){const oo=to.get(no);oo===void 0&&H$1(101),ro.push(no),no=oo.__next}return ro}function Rn(eo,to){const ro=yn.get(eo);let no=mn.get(eo);ro!==void 0&&no!==void 0||H$1(61);const oo=Cn||pn.has(eo)||_n.has(eo),io=Kt(dn,eo);if(ro===no&&!oo){if(qi(ro)){const so=io.__lexicalTextContent;so!==void 0&&(Tn+=so,kn+=so);const ao=io.__lexicalDirTextContent;ao!==void 0&&(Sn+=ao)}else{const so=ro.getTextContent();Br(ro)&&!ro.isDirectionless()&&(Sn+=so),kn+=so,Tn+=so}return io}if(ro!==no&&oo&&Lt(vn,hn,gn,no,"updated"),no.updateDOM(ro,io,fn)){const so=An(eo,null,null);return to===null&&H$1(62),to.replaceChild(so,io),wn(eo,null),so}if(qi(ro)&&qi(no)){const so=no.__indent;so!==ro.__indent&&In(io,so);const ao=no.__format;ao!==ro.__format&&On(io,ao),oo&&(zn(ro,no,io),Yi(no)||no.isInline()||Mn(ro,no,io)),Rt(no)&&(Tn+=xe,kn+=xe)}else{const so=no.getTextContent();if(Hi(no)){const ao=no.decorate(dn,fn);ao!==null&&Kn(eo,ao)}else Br(no)&&!no.isDirectionless()&&(Sn+=so);Tn+=so,kn+=so}if(!bn&&Yi(no)&&no.__cachedText!==kn){const so=no.getWritable();so.__cachedText=kn,no=so}return io}function Kn(eo,to){let ro=dn._pendingDecorators;const no=dn._decorators;if(ro===null){if(no[eo]===to)return;ro=ft$1(dn)}ro[eo]=to}function Jn(eo){let to=eo.nextSibling;return to!==null&&to===dn._blockCursorElement&&(to=to.nextSibling),to}function Un(eo,to,ro,no,oo,io){Tn="",kn="",Sn="",Cn=no===ce,Nn=null,dn=ro,fn=ro._config,hn=ro._nodes,gn=dn._listeners.mutation,_n=oo,pn=io,yn=eo._nodeMap,mn=to._nodeMap,bn=to._readOnly,xn=new Map(ro._keyToDOMMap);const so=new Map;return vn=so,Rn("root",null),dn=void 0,hn=void 0,_n=void 0,pn=void 0,yn=void 0,mn=void 0,fn=void 0,xn=void 0,vn=void 0,so}function Vn(eo){const to=xn.get(eo);return to===void 0&&H$1(75,eo),to}const $n=Object.freeze({}),Hn=30,jn=[["keydown",function(eo,to){if(qn=eo.timeStamp,Qn=eo.keyCode,to.isComposing())return;const{keyCode:ro,shiftKey:no,ctrlKey:oo,metaKey:io,altKey:so}=eo;Bt(to,_$5,eo)||(function(ao,lo,uo,co){return Nt$1(ao)&&!lo&&!co&&!uo}(ro,oo,so,io)?Bt(to,p$4,eo):function(ao,lo,uo,co,fo){return Nt$1(ao)&&!co&&!uo&&(lo||fo)}(ro,oo,no,so,io)?Bt(to,y$4,eo):function(ao,lo,uo,co){return bt(ao)&&!lo&&!co&&!uo}(ro,oo,so,io)?Bt(to,m$5,eo):function(ao,lo,uo,co,fo){return bt(ao)&&!co&&!uo&&(lo||fo)}(ro,oo,no,so,io)?Bt(to,x$5,eo):function(ao,lo,uo){return function(co){return co===38}(ao)&&!lo&&!uo}(ro,oo,io)?Bt(to,v$3,eo):function(ao,lo,uo){return function(co){return co===40}(ao)&&!lo&&!uo}(ro,oo,io)?Bt(to,T$3,eo):function(ao,lo){return Et$1(ao)&&lo}(ro,no)?(tr=!0,Bt(to,S$4,eo)):function(ao){return ao===32}(ro)?Bt(to,k$2,eo):function(ao,lo){return Q&&lo&&ao===79}(ro,oo)?(eo.preventDefault(),tr=!0,Bt(to,s$2,!0)):function(ao,lo){return Et$1(ao)&&!lo}(ro,no)?(tr=!1,Bt(to,S$4,eo)):function(ao,lo,uo,co){return Q?!lo&&!uo&&(Pt$1(ao)||ao===72&&co):!(co||lo||uo)&&Pt$1(ao)}(ro,so,io,oo)?Pt$1(ro)?Bt(to,C$4,eo):(eo.preventDefault(),Bt(to,i$2,!0)):function(ao){return ao===27}(ro)?Bt(to,b$2,eo):function(ao,lo,uo,co,fo){return Q?!(uo||co||fo)&&(Dt$1(ao)||ao===68&&lo):!(lo||co||fo)&&Dt$1(ao)}(ro,oo,no,so,io)?Dt$1(ro)?Bt(to,N$3,eo):(eo.preventDefault(),Bt(to,i$2,!1)):function(ao,lo,uo){return Pt$1(ao)&&(Q?lo:uo)}(ro,so,oo)?(eo.preventDefault(),Bt(to,a$4,!0)):function(ao,lo,uo){return Dt$1(ao)&&(Q?lo:uo)}(ro,so,oo)?(eo.preventDefault(),Bt(to,a$4,!1)):function(ao,lo){return Q&&lo&&Pt$1(ao)}(ro,io)?(eo.preventDefault(),Bt(to,f$4,!0)):function(ao,lo){return Q&&lo&&Dt$1(ao)}(ro,io)?(eo.preventDefault(),Bt(to,f$4,!1)):function(ao,lo,uo,co){return ao===66&&!lo&&wt$1(uo,co)}(ro,so,io,oo)?(eo.preventDefault(),Bt(to,d$4,"bold")):function(ao,lo,uo,co){return ao===85&&!lo&&wt$1(uo,co)}(ro,so,io,oo)?(eo.preventDefault(),Bt(to,d$4,"underline")):function(ao,lo,uo,co){return ao===73&&!lo&&wt$1(uo,co)}(ro,so,io,oo)?(eo.preventDefault(),Bt(to,d$4,"italic")):function(ao,lo,uo,co){return ao===9&&!lo&&!uo&&!co}(ro,so,oo,io)?Bt(to,w$3,eo):function(ao,lo,uo,co){return ao===90&&!lo&&wt$1(uo,co)}(ro,no,io,oo)?(eo.preventDefault(),Bt(to,h$3,void 0)):function(ao,lo,uo,co){return Q?ao===90&&uo&&lo:ao===89&&co||ao===90&&co&&lo}(ro,no,io,oo)?(eo.preventDefault(),Bt(to,g$6,void 0)):Zr(to._editorState._selection)?function(ao,lo,uo,co){return!lo&&ao===67&&(Q?uo:co)}(ro,no,io,oo)?(eo.preventDefault(),Bt(to,M$3,eo)):function(ao,lo,uo,co){return!lo&&ao===88&&(Q?uo:co)}(ro,no,io,oo)?(eo.preventDefault(),Bt(to,W,eo)):It(ro,io,oo)&&(eo.preventDefault(),Bt(to,z$1,eo)):!X&&It(ro,io,oo)&&(eo.preventDefault(),Bt(to,z$1,eo)),function(ao,lo,uo,co){return ao||lo||uo||co}(oo,no,so,io)&&Bt(to,$$1,eo))}],["pointerdown",function(eo,to){const ro=eo.target,no=eo.pointerType;ro instanceof Node&&no!=="touch"&&Vi(to,()=>{Hi(at$1(ro))||(er=!0)})}],["compositionstart",function(eo,to){Vi(to,()=>{const ro=fi();if(Xr(ro)&&!to.isComposing()){const no=ro.anchor,oo=ro.anchor.getNode();ot(no.key),(eo.timeStamp{cr(to,eo.data)})}],["input",function(eo,to){eo.stopPropagation(),Vi(to,()=>{const ro=fi(),no=eo.data,oo=lr(eo);if(no!=null&&Xr(ro)&&ir(ro,oo,no,eo.timeStamp,!1)){nr&&(cr(to,no),nr=!1);const io=ro.anchor,so=io.getNode(),ao=nn(to._window);if(ao===null)return;const lo=io.offset;Y&&!ro.isCollapsed()&&Br(so)&&ao.anchorNode!==null&&so.getTextContent().slice(0,lo)+no+so.getTextContent().slice(lo+ro.focus.offset)===Tt(ao.anchorNode)||Bt(to,l$3,no);const uo=no.length;X&&uo>1&&eo.inputType==="insertCompositionText"&&!to.isComposing()&&(ro.anchor.offset-=uo),Z||G||re||!to.isComposing()||(qn=0,ot(null))}else St(!1,to,no!==null?no:void 0),nr&&(cr(to,no||void 0),nr=!1);Pi(),Re(Oi())}),Yn=null}],["click",function(eo,to){Vi(to,()=>{const ro=fi(),no=nn(to._window),oo=di();if(no){if(Xr(ro)){const io=ro.anchor,so=io.getNode();io.type==="element"&&io.offset===0&&ro.isCollapsed()&&!Yi(so)&&ht$1().getChildrenSize()===1&&so.getTopLevelElementOrThrow().isEmpty()&&oo!==null&&ro.is(oo)?(no.removeAllRanges(),ro.dirty=!0):eo.detail===3&&!ro.isCollapsed()&&so!==ro.focus.getNode()&&(qi(so)?so.select(0):so.getParentOrThrow().select(0))}else if(eo.pointerType==="touch"){const io=no.anchorNode;if(io!==null){const so=io.nodeType;(so===ie||so===se)&&_t(ai(oo,no,to,eo))}}}Bt(to,r$1,eo)})}],["cut",$n],["copy",$n],["dragstart",$n],["dragover",$n],["dragend",$n],["paste",$n],["focus",$n],["blur",$n],["drop",$n]];Y&&jn.push(["beforeinput",(eo,to)=>function(ro,no){const oo=ro.inputType,io=lr(ro);oo==="deleteCompositionText"||X&&zt(no)||oo!=="insertCompositionText"&&Vi(no,()=>{const so=fi();if(oo==="deleteContentBackward"){if(so===null){const ho=di();if(!Xr(ho))return;_t(ho.clone())}if(Xr(so)){const ho=so.anchor.key===so.focus.key;if(ao=ro.timeStamp,Qn===229&&ao{Vi(no,()=>{ot(null)})},Hn),Xr(so)){const mo=so.anchor.getNode();mo.markDirty(),so.format=mo.getFormat(),Br(mo)||H$1(142),so.style=mo.getStyle()}}else{ot(null),ro.preventDefault();const mo=so.anchor.getNode().getTextContent(),vo=so.anchor.offset===0&&so.focus.offset===mo.length;ne&&ho&&!vo||Bt(no,i$2,!0)}return}}var ao;if(!Xr(so))return;const lo=ro.data;Yn!==null&&St(!1,no,Yn),so.dirty&&Yn===null||!so.isCollapsed()||Yi(so.anchor.getNode())||io===null||so.applyDOMRange(io),Yn=null;const uo=so.anchor,co=so.focus,fo=uo.getNode(),po=co.getNode();if(oo!=="insertText"&&oo!=="insertTranspose")switch(ro.preventDefault(),oo){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":Bt(no,l$3,ro);break;case"insertFromComposition":ot(null),Bt(no,l$3,ro);break;case"insertLineBreak":ot(null),Bt(no,s$2,!1);break;case"insertParagraph":ot(null),tr&&!G?(tr=!1,Bt(no,s$2,!1)):Bt(no,o$5,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":Bt(no,c$5,ro);break;case"deleteByComposition":(function(ho,mo){return ho!==mo||qi(ho)||qi(mo)||!ho.isToken()||!mo.isToken()})(fo,po)&&Bt(no,u$5,ro);break;case"deleteByDrag":case"deleteByCut":Bt(no,u$5,ro);break;case"deleteContent":Bt(no,i$2,!1);break;case"deleteWordBackward":Bt(no,a$4,!0);break;case"deleteWordForward":Bt(no,a$4,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":Bt(no,f$4,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":Bt(no,f$4,!1);break;case"formatStrikeThrough":Bt(no,d$4,"strikethrough");break;case"formatBold":Bt(no,d$4,"bold");break;case"formatItalic":Bt(no,d$4,"italic");break;case"formatUnderline":Bt(no,d$4,"underline");break;case"historyUndo":Bt(no,h$3,void 0);break;case"historyRedo":Bt(no,g$6,void 0)}else{if(lo===` -`)ro.preventDefault(),Bt(no,s$2,!1);else if(lo===xe)ro.preventDefault(),Bt(no,o$5,void 0);else if(lo==null&&ro.dataTransfer){const ho=ro.dataTransfer.getData("text/plain");ro.preventDefault(),so.insertRawText(ho)}else lo!=null&&ir(so,io,lo,ro.timeStamp,!0)?(ro.preventDefault(),Bt(no,l$3,lo)):Yn=lo;Xn=ro.timeStamp}})}(eo,to)]);let qn=0,Qn=0,Xn=0,Yn=null;const Zn=new WeakMap;let Gn=!1,er=!1,tr=!1,nr=!1,rr=[0,"",0,"root",0];function ir(eo,to,ro,no,oo){const io=eo.anchor,so=eo.focus,ao=io.getNode(),lo=Oi(),uo=nn(lo._window),co=uo!==null?uo.anchorNode:null,fo=io.key,po=lo.getElementByKey(fo),ho=ro.length;return fo!==so.key||!Br(ao)||(!oo&&(!Y||Xn1||(oo||!Y)&&po!==null&&!ao.isComposing()&&co!==et(po)||uo!==null&&to!==null&&(!to.collapsed||to.startContainer!==uo.anchorNode||to.startOffset!==uo.anchorOffset)||ao.getFormat()!==eo.format||ao.getStyle()!==eo.style||Ct$1(eo,ao)}function sr(eo,to){return eo!==null&&eo.nodeValue!==null&&eo.nodeType===se&&to!==0&&to!==eo.nodeValue.length}function or(eo,to,ro){const{anchorNode:no,anchorOffset:oo,focusNode:io,focusOffset:so}=eo;Gn&&(Gn=!1,sr(no,oo)&&sr(io,so))||Vi(to,()=>{if(!ro)return void _t(null);if(!Xe(to,no,io))return;const ao=fi();if(Xr(ao)){const lo=ao.anchor,uo=lo.getNode();if(ao.isCollapsed()){eo.type==="Range"&&eo.anchorNode===eo.focusNode&&(ao.dirty=!0);const co=Ht(to).event,fo=co?co.timeStamp:performance.now(),[po,ho,mo,vo,bo]=rr,xo=ht$1(),_o=to.isComposing()===!1&&xo.getTextContent()==="";fo{const uo=di(),co=ro.anchorNode;if(co===null)return;const fo=co.nodeType;fo!==ie&&fo!==se||_t(ai(uo,ro,no,eo))}));const oo=xt$1(no),io=oo[oo.length-1],so=io._key,ao=ar.get(so),lo=ao||io;lo!==no&&or(ro,lo,!1),or(ro,no,!0),no!==io?ar.set(so,no):ao&&ar.delete(so)}function dr(eo){eo._lexicalHandled=!0}function hr(eo){return eo._lexicalHandled===!0}function gr(eo){const to=eo.ownerDocument,ro=Zn.get(to);if(ro===void 0)throw Error("Root element not registered");Zn.set(to,ro-1),ro===1&&to.removeEventListener("selectionchange",fr);const no=eo.__lexicalEditor;no!=null&&(function(io){if(io._parentEditor!==null){const so=xt$1(io),ao=so[so.length-1]._key;ar.get(ao)===io&&ar.delete(ao)}else ar.delete(io._key)}(no),eo.__lexicalEditor=null);const oo=ur(eo);for(let io=0;iooo.__key===this.__key);return(Br(this)||!Xr(ro)||ro.anchor.type!=="element"||ro.focus.type!=="element"||ro.anchor.key!==ro.focus.key||ro.anchor.offset!==ro.focus.offset)&&no}getKey(){return this.__key}getIndexWithinParent(){const to=this.getParent();if(to===null)return-1;let ro=to.getFirstChild(),no=0;for(;ro!==null;){if(this.is(ro))return no;no++,ro=ro.getNextSibling()}return-1}getParent(){const to=this.getLatest().__parent;return to===null?null:ct$1(to)}getParentOrThrow(){const to=this.getParent();return to===null&&H$1(66,this.__key),to}getTopLevelElement(){let to=this;for(;to!==null;){const ro=to.getParent();if(Qt(ro))return qi(to)||H$1(138),to;to=ro}return null}getTopLevelElementOrThrow(){const to=this.getTopLevelElement();return to===null&&H$1(67,this.__key),to}getParents(){const to=[];let ro=this.getParent();for(;ro!==null;)to.push(ro),ro=ro.getParent();return to}getParentKeys(){const to=[];let ro=this.getParent();for(;ro!==null;)to.push(ro.__key),ro=ro.getParent();return to}getPreviousSibling(){const to=this.getLatest().__prev;return to===null?null:ct$1(to)}getPreviousSiblings(){const to=[],ro=this.getParent();if(ro===null)return to;let no=ro.getFirstChild();for(;no!==null&&!no.is(this);)to.push(no),no=no.getNextSibling();return to}getNextSibling(){const to=this.getLatest().__next;return to===null?null:ct$1(to)}getNextSiblings(){const to=[];let ro=this.getNextSibling();for(;ro!==null;)to.push(ro),ro=ro.getNextSibling();return to}getCommonAncestor(to){const ro=this.getParents(),no=to.getParents();qi(this)&&ro.unshift(this),qi(to)&&no.unshift(to);const oo=ro.length,io=no.length;if(oo===0||io===0||ro[oo-1]!==no[io-1])return null;const so=new Set(no);for(let ao=0;ao{ao.append(vo)})),Xr(no)){_t(no);const vo=no.anchor,bo=no.focus;vo.key===io&&Hr(vo,ao),bo.key===io&&Hr(bo,ao)}return lt$1()===io&&ot(so),ao}insertAfter(to,ro=!0){Pi(),Zt(this,to);const no=this.getWritable(),oo=to.getWritable(),io=oo.getParent(),so=fi();let ao=!1,lo=!1;if(io!==null){const ho=to.getIndexWithinParent();if(it(oo),Xr(so)){const mo=io.__key,vo=so.anchor,bo=so.focus;ao=vo.type==="element"&&vo.key===mo&&vo.offset===ho+1,lo=bo.type==="element"&&bo.key===mo&&bo.offset===ho+1}}const uo=this.getNextSibling(),co=this.getParentOrThrow().getWritable(),fo=oo.__key,po=no.__next;if(uo===null?co.__last=fo:uo.getWritable().__prev=fo,co.__size++,no.__next=fo,oo.__next=po,oo.__prev=no.__key,oo.__parent=no.__parent,ro&&Xr(so)){const ho=this.getIndexWithinParent();hi(so,co,ho+1);const mo=co.__key;ao&&so.anchor.set(mo,ho+2,"element"),lo&&so.focus.set(mo,ho+2,"element")}return to}insertBefore(to,ro=!0){Pi(),Zt(this,to);const no=this.getWritable(),oo=to.getWritable(),io=oo.__key;it(oo);const so=this.getPreviousSibling(),ao=this.getParentOrThrow().getWritable(),lo=no.__prev,uo=this.getIndexWithinParent();so===null?ao.__first=io:so.getWritable().__next=io,ao.__size++,no.__prev=io,oo.__prev=lo,oo.__next=no.__key,oo.__parent=no.__parent;const co=fi();return ro&&Xr(co)&&hi(co,this.getParentOrThrow(),uo),to}isParentRequired(){return!1}createParentElementNode(){return rs()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(to,ro){Pi();const no=this.getPreviousSibling(),oo=this.getParentOrThrow();if(no===null)return oo.select(0,0);if(qi(no))return no.select();if(!Br(no)){const io=no.getIndexWithinParent()+1;return oo.select(io,io)}return no.select(to,ro)}selectNext(to,ro){Pi();const no=this.getNextSibling(),oo=this.getParentOrThrow();if(no===null)return oo.select();if(qi(no))return no.select(0,0);if(!Br(no)){const io=no.getIndexWithinParent();return oo.select(io,io)}return no.select(to,ro)}markDirty(){this.getWritable()}}class yr extends pr{static getType(){return"linebreak"}static clone(to){return new yr(to.__key)}constructor(to){super(to)}getTextContent(){return` -`}createDOM(){return document.createElement("br")}updateDOM(){return!1}static importDOM(){return{br:to=>function(ro){const no=ro.parentElement;if(no!==null){const oo=no.firstChild;if(oo===ro||oo.nextSibling===ro&&Tr(oo)){const io=no.lastChild;if(io===ro||io.previousSibling===ro&&Tr(io))return!0}}return!1}(to)?null:{conversion:mr,priority:0}}}static importJSON(to){return xr()}exportJSON(){return{type:"linebreak",version:1}}}function mr(eo){return{node:xr()}}function xr(){return Yt(new yr)}function vr(eo){return eo instanceof yr}function Tr(eo){return eo.nodeType===se&&/^( |\t|\r?\n)+$/.test(eo.textContent||"")}function Sr(eo,to){return 16&to?"code":128&to?"mark":32&to?"sub":64&to?"sup":null}function kr(eo,to){return 1&to?"strong":2&to?"em":"span"}function Cr(eo,to,ro,no,oo){const io=no.classList;let so=At$1(oo,"base");so!==void 0&&io.add(...so),so=At$1(oo,"underlineStrikethrough");let ao=!1;const lo=to&ae&&to&ue;so!==void 0&&(ro&ae&&ro&ue?(ao=!0,lo||io.add(...so)):lo&&io.remove(...so));for(const uo in be){const co=be[uo];if(so=At$1(oo,uo),so!==void 0)if(ro&co){if(ao&&(uo==="underline"||uo==="strikethrough")){to&co&&io.remove(...so);continue}(!(to&co)||lo&&uo==="underline"||uo==="strikethrough")&&io.add(...so)}else to&co&&io.remove(...so)}}function br(eo,to,ro){const no=to.firstChild,oo=ro.isComposing(),io=eo+(oo?me:"");if(no==null)to.textContent=io;else{const so=no.nodeValue;if(so!==io)if(oo||X){const[ao,lo,uo]=function(co,fo){const po=co.length,ho=fo.length;let mo=0,vo=0;for(;mo({conversion:Ar,priority:0}),b:()=>({conversion:Dr,priority:0}),code:()=>({conversion:Wr,priority:0}),em:()=>({conversion:Wr,priority:0}),i:()=>({conversion:Wr,priority:0}),s:()=>({conversion:Wr,priority:0}),span:()=>({conversion:Pr,priority:0}),strong:()=>({conversion:Wr,priority:0}),sub:()=>({conversion:Wr,priority:0}),sup:()=>({conversion:Wr,priority:0}),u:()=>({conversion:Wr,priority:0})}}static importJSON(to){const ro=zr(to.text);return ro.setFormat(to.format),ro.setDetail(to.detail),ro.setMode(to.mode),ro.setStyle(to.style),ro}exportDOM(to){let{element:ro}=super.exportDOM(to);return ro!==null&&on(ro)||H$1(132),ro.style.whiteSpace="pre-wrap",this.hasFormat("bold")&&(ro=wr(ro,"b")),this.hasFormat("italic")&&(ro=wr(ro,"i")),this.hasFormat("strikethrough")&&(ro=wr(ro,"s")),this.hasFormat("underline")&&(ro=wr(ro,"u")),{element:ro}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),type:"text",version:1}}selectionTransform(to,ro){}setFormat(to){const ro=this.getWritable();return ro.__format=typeof to=="string"?be[to]:to,ro}setDetail(to){const ro=this.getWritable();return ro.__detail=typeof to=="string"?Ne[to]:to,ro}setStyle(to){const ro=this.getWritable();return ro.__style=to,ro}toggleFormat(to){const ro=tt(this.getFormat(),to,null);return this.setFormat(ro)}toggleDirectionless(){const to=this.getWritable();return to.__detail^=1,to}toggleUnmergeable(){const to=this.getWritable();return to.__detail^=2,to}setMode(to){const ro=Pe[to];if(this.__mode===ro)return this;const no=this.getWritable();return no.__mode=ro,no}setTextContent(to){if(this.__text===to)return this;const ro=this.getWritable();return ro.__text=to,ro}select(to,ro){Pi();let no=to,oo=ro;const io=fi(),so=this.getTextContent(),ao=this.__key;if(typeof so=="string"){const lo=so.length;no===void 0&&(no=lo),oo===void 0&&(oo=lo)}else no=0,oo=0;if(!Xr(io))return li(ao,no,ao,oo,"text","text");{const lo=lt$1();lo!==io.anchor.key&&lo!==io.focus.key||ot(ao),io.setTextNodeRange(this,no,this,oo)}return io}selectStart(){return this.select(0,0)}selectEnd(){const to=this.getTextContentSize();return this.select(to,to)}spliceText(to,ro,no,oo){const io=this.getWritable(),so=io.__text,ao=no.length;let lo=to;lo<0&&(lo=ao+lo,lo<0&&(lo=0));const uo=fi();if(oo&&Xr(uo)){const fo=to+ao;uo.setTextNodeRange(io,fo,io,fo)}const co=so.slice(0,lo)+no+so.slice(lo+ro);return io.__text=co,io}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...to){Pi();const ro=this.getLatest(),no=ro.getTextContent(),oo=ro.__key,io=lt$1(),so=new Set(to),ao=[],lo=no.length;let uo="";for(let Co=0;CoEo&&Mo.offset<=Bo&&(Mo.key=$o,Mo.offset-=Eo,_o.dirty=!0),Ho.key===oo&&Ho.type==="text"&&Ho.offset>Eo&&Ho.offset<=Bo&&(Ho.key=$o,Ho.offset-=Eo,_o.dirty=!0)}io===oo&&ot($o),Eo=Bo,So.push(Io)}(function(Co){const Ro=Co.getPreviousSibling(),Ao=Co.getNextSibling();Ro!==null&&st$1(Ro),Ao!==null&&st$1(Ao)})(this);const ko=po.getWritable(),wo=this.getIndexWithinParent();return xo?(ko.splice(wo,0,So),this.remove()):ko.splice(wo,1,So),Xr(_o)&&hi(_o,po,wo,co-1),So}mergeWithSibling(to){const ro=to===this.getPreviousSibling();ro||to===this.getNextSibling()||H$1(50);const no=this.__key,oo=to.__key,io=this.__text,so=io.length;lt$1()===oo&&ot(no);const ao=fi();if(Xr(ao)){const fo=ao.anchor,po=ao.focus;fo!==null&&fo.key===oo&&(pi(fo,ro,no,to,so),ao.dirty=!0),po!==null&&po.key===oo&&(pi(po,ro,no,to,so),ao.dirty=!0)}const lo=to.__text,uo=ro?lo+io:io+lo;this.setTextContent(uo);const co=this.getWritable();return to.remove(),co}isTextEntity(){return!1}}function Pr(eo){const to=eo,ro=to.style.fontWeight==="700",no=to.style.textDecoration==="line-through",oo=to.style.fontStyle==="italic",io=to.style.textDecoration==="underline",so=to.style.verticalAlign;return{forChild:ao=>(Br(ao)&&(ro&&ao.toggleFormat("bold"),no&&ao.toggleFormat("strikethrough"),oo&&ao.toggleFormat("italic"),io&&ao.toggleFormat("underline"),so==="sub"&&ao.toggleFormat("subscript"),so==="super"&&ao.toggleFormat("superscript")),ao),node:null}}function Dr(eo){const to=eo.style.fontWeight==="normal";return{forChild:ro=>(Br(ro)&&!to&&ro.toggleFormat("bold"),ro),node:null}}const Ir=new WeakMap;function Or(eo){return eo.nodeName==="PRE"||eo.nodeType===ie&&eo.style!==void 0&&eo.style.whiteSpace!==void 0&&eo.style.whiteSpace.startsWith("pre")}function Ar(eo){const to=eo;eo.parentElement===null&&H$1(129);let ro=to.textContent||"";if(function(no){let oo,io=no.parentNode;const so=[no];for(;io!==null&&(oo=Ir.get(io))===void 0&&!Or(io);)so.push(io),io=io.parentNode;const ao=oo===void 0?io:oo;for(let lo=0;lo0){/[ \t\n]$/.test(io)&&(ro=ro.slice(1)),oo=!1;break}}oo&&(ro=ro.slice(1))}if(ro[ro.length-1]===" "){let no=to,oo=!0;for(;no!==null&&(no=Fr(no,!0))!==null;)if((no.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){oo=!1;break}oo&&(ro=ro.slice(0,ro.length-1))}return ro===""?{node:null}:{node:zr(ro)}}const Lr=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 Fr(eo,to){let ro=eo;for(;;){let no;for(;(no=to?ro.nextSibling:ro.previousSibling)===null;){const io=ro.parentElement;if(io===null)return null;ro=io}if(ro=no,ro.nodeType===ie){const io=ro.style.display;if(io===""&&ro.nodeName.match(Lr)===null||io!==""&&!io.startsWith("inline"))return null}let oo=ro;for(;(oo=to?ro.firstChild:ro.lastChild)!==null;)ro=oo;if(ro.nodeType===se)return ro;if(ro.nodeName==="BR")return null}}const Mr={code:"code",em:"italic",i:"italic",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Wr(eo){const to=Mr[eo.nodeName.toLowerCase()];return to===void 0?{node:null}:{forChild:ro=>(Br(ro)&&!ro.hasFormat(to)&&ro.toggleFormat(to),ro),node:null}}function zr(eo=""){return Yt(new Er(eo))}function Br(eo){return eo instanceof Er}class Rr extends Er{static getType(){return"tab"}static clone(to){const ro=new Rr(to.__key);return ro.__text=to.__text,ro.__format=to.__format,ro.__style=to.__style,ro}constructor(to){super(" ",to),this.__detail=2}static importDOM(){return null}static importJSON(to){const ro=Kr();return ro.setFormat(to.format),ro.setStyle(to.style),ro}exportJSON(){return{...super.exportJSON(),type:"tab",version:1}}setTextContent(to){H$1(126)}setDetail(to){H$1(127)}setMode(to){H$1(128)}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Kr(){return Yt(new Rr)}function Jr(eo){return eo instanceof Rr}class Ur{constructor(to,ro,no){this._selection=null,this.key=to,this.offset=ro,this.type=no}is(to){return this.key===to.key&&this.offset===to.offset&&this.type===to.type}isBefore(to){let ro=this.getNode(),no=to.getNode();const oo=this.offset,io=to.offset;if(qi(ro)){const so=ro.getDescendantByIndex(oo);ro=so??ro}if(qi(no)){const so=no.getDescendantByIndex(io);no=so??no}return ro===no?ooio&&(no=io)}else if(!qi(to)){const io=to.getNextSibling();if(Br(io))ro=io.__key,no=0,oo="text";else{const so=to.getParent();so&&(ro=so.__key,no=to.getIndexWithinParent()+1)}}eo.set(ro,no,oo)}function Hr(eo,to){if(qi(to)){const ro=to.getLastDescendant();qi(ro)||Br(ro)?$r(eo,ro):$r(eo,to)}else $r(eo,to)}function jr(eo,to,ro,no){const oo=eo.getNode(),io=oo.getChildAtIndex(eo.offset),so=zr(),ao=Yi(oo)?rs().append(so):so;so.setFormat(ro),so.setStyle(no),io===null?oo.append(ao):io.insertBefore(ao),eo.is(to)&&to.set(so.__key,0,"text"),eo.set(so.__key,0,"text")}function qr(eo,to,ro,no){eo.key=to,eo.offset=ro,eo.type=no}class Qr{constructor(to){this._cachedNodes=null,this._nodes=to,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(to){this._cachedNodes=to}is(to){if(!Zr(to))return!1;const ro=this._nodes,no=to._nodes;return ro.size===no.size&&Array.from(ro).every(oo=>no.has(oo))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(to){this.dirty=!0,this._nodes.add(to),this._cachedNodes=null}delete(to){this.dirty=!0,this._nodes.delete(to),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(to){return this._nodes.has(to)}clone(){return new Qr(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(to){}insertText(){}insertNodes(to){const ro=this.getNodes(),no=ro.length,oo=ro[no-1];let io;if(Br(oo))io=oo.select();else{const so=oo.getIndexWithinParent()+1;io=oo.getParentOrThrow().select(so,so)}io.insertNodes(to);for(let so=0;so0?[]:[ao]:ao.getNodesBetween(lo),Ei()||(this._cachedNodes=fo),fo}setTextNodeRange(to,ro,no,oo){qr(this.anchor,to.__key,ro,"text"),qr(this.focus,no.__key,oo,"text"),this._cachedNodes=null,this.dirty=!0}getTextContent(){const to=this.getNodes();if(to.length===0)return"";const ro=to[0],no=to[to.length-1],oo=this.anchor,io=this.focus,so=oo.isBefore(io),[ao,lo]=ei(this);let uo="",co=!0;for(let fo=0;fo=0;Ro--){const Ao=Eo[Ro];if(Ao.is(po)||qi(Ao)&&Ao.isParentOf(po))break;Ao.isAttached()&&(!ko.has(Ao)||Ao.is(So)?wo||Co.insertAfter(Ao,!1):Ao.remove())}if(!wo){let Ro=_o,Ao=null;for(;Ro!==null;){const Io=Ro.getChildren(),$o=Io.length;($o===0||Io[$o-1].is(Ao))&&(bo.delete(Ro.__key),Ao=Ro),Ro=Ro.getParent()}}if(po.isToken())if(co===ho)po.select();else{const Ro=zr(to);Ro.select(),po.replace(Ro)}else po=po.spliceText(co,ho-co,to,!0),po.getTextContent()===""?po.remove():po.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=to.length);for(let Ro=1;Ro0&&(bo!==vo.getTextContentSize()&&([vo]=vo.splitText(bo)),vo.setFormat(xo));for(let _o=co+1;_o(qi(mo)||Hi(mo))&&!mo.isInline())){qi(ro)||H$1(135);const mo=vi(this);return ro.splice(mo,0,to),void no.selectEnd()}const oo=function(mo){const vo=rs();let bo=null;for(let xo=0;xo"__value"in mo&&"__checked"in mo,lo=!qi(ro)||!ro.isEmpty()?this.insertParagraph():null,uo=so[so.length-1];let co=so[0];var fo;qi(fo=co)&&ln(fo)&&!fo.isEmpty()&&qi(ro)&&(!ro.isEmpty()||ao(ro))&&(qi(ro)||H$1(135),ro.append(...co.getChildren()),co=so[1]),co&&function(mo,vo,bo){const xo=bo||vo.getParentOrThrow().getLastChild();let _o=vo;const So=[vo];for(;_o!==xo;)_o.getNextSibling()||H$1(140),_o=_o.getNextSibling(),So.push(_o);let Eo=mo;for(const ko of So)Eo=Eo.insertAfter(ko)}(ro,co);const po=cn(io,ln);lo&&qi(po)&&(ao(lo)||ln(uo))&&(po.append(...lo.getChildren()),lo.remove()),qi(ro)&&ro.isEmpty()&&ro.remove(),io.selectEnd();const ho=qi(ro)?ro.getLastChild():null;vr(ho)&&po!==ro&&ho.remove()}insertParagraph(){if(this.anchor.key==="root"){const so=rs();return ht$1().splice(this.anchor.offset,0,[so]),so.select(),so}const to=vi(this),ro=cn(this.anchor.getNode(),ln);qi(ro)||H$1(136);const no=ro.getChildAtIndex(to),oo=no?[no,...no.getNextSiblings()]:[],io=ro.insertNewAfter(this,!1);return io?(io.append(...oo),io.selectStart(),io):null}insertLineBreak(to){const ro=xr();if(this.insertNodes([ro]),to){const no=ro.getParentOrThrow(),oo=ro.getIndexWithinParent();no.select(oo,oo)}}extract(){const to=this.getNodes(),ro=to.length,no=ro-1,oo=this.anchor,io=this.focus;let so=to[0],ao=to[no];const[lo,uo]=ei(this);if(ro===0)return[];if(ro===1){if(Br(so)&&!this.isCollapsed()){const fo=lo>uo?uo:lo,po=lo>uo?lo:uo,ho=so.splitText(fo,po),mo=fo===0?ho[0]:ho[1];return mo!=null?[mo]:[]}return[so]}const co=oo.isBefore(io);if(Br(so)){const fo=co?lo:uo;fo===so.getTextContentSize()?to.shift():fo!==0&&([,so]=so.splitText(fo),to[0]=so)}if(Br(ao)){const fo=ao.getTextContent().length,po=co?uo:lo;po===0?to.pop():po!==fo&&([ao]=ao.splitText(po),to[no]=ao)}return to}modify(to,ro,no){const oo=this.focus,io=this.anchor,so=to==="move",ao=Wt(oo,ro);if(Hi(ao)&&!ao.isIsolated()){if(so&&ao.isKeyboardSelectable()){const ho=ui();return ho.add(ao.__key),void _t(ho)}const po=ro?ao.getPreviousSibling():ao.getNextSibling();if(Br(po)){const ho=po.__key,mo=ro?po.getTextContent().length:0;return oo.set(ho,mo,"text"),void(so&&io.set(ho,mo,"text"))}{const ho=ao.getParentOrThrow();let mo,vo;return qi(po)?(vo=po.__key,mo=ro?po.getChildrenSize():0):(mo=ao.getIndexWithinParent(),vo=ho.__key,ro||mo++),oo.set(vo,mo,"element"),void(so&&io.set(vo,mo,"element"))}}const lo=Oi(),uo=nn(lo._window);if(!uo)return;const co=lo._blockCursorElement,fo=lo._rootElement;if(fo===null||co===null||!qi(ao)||ao.isInline()||ao.canBeEmpty()||en(co,lo,fo),function(po,ho,mo,vo){po.modify(ho,mo,vo)}(uo,to,ro?"backward":"forward",no),uo.rangeCount>0){const po=uo.getRangeAt(0),ho=this.anchor.getNode(),mo=Yi(ho)?ho:qt(ho);if(this.applyDOMRange(po),this.dirty=!0,!so){const vo=this.getNodes(),bo=[];let xo=!1;for(let _o=0;_o0)if(ro){const _o=bo[0];qi(_o)?_o.selectStart():_o.getParentOrThrow().selectStart()}else{const _o=bo[bo.length-1];qi(_o)?_o.selectEnd():_o.getParentOrThrow().selectEnd()}uo.anchorNode===po.startContainer&&uo.anchorOffset===po.startOffset||function(_o){const So=_o.focus,Eo=_o.anchor,ko=Eo.key,wo=Eo.offset,Co=Eo.type;qr(Eo,So.key,So.offset,So.type),qr(So,ko,wo,Co),_o._cachedNodes=null}(this)}}}forwardDeletion(to,ro,no){if(!no&&(to.type==="element"&&qi(ro)&&to.offset===ro.getChildrenSize()||to.type==="text"&&to.offset===ro.getTextContentSize())){const oo=ro.getParent(),io=ro.getNextSibling()||(oo===null?null:oo.getNextSibling());if(qi(io)&&io.isShadowRoot())return!0}return!1}deleteCharacter(to){const ro=this.isCollapsed();if(this.isCollapsed()){const no=this.anchor;let oo=no.getNode();if(this.forwardDeletion(no,oo,to))return;const io=this.focus,so=Wt(io,to);if(Hi(so)&&!so.isIsolated()){if(so.isKeyboardSelectable()&&qi(oo)&&oo.getChildrenSize()===0){oo.remove();const ao=ui();ao.add(so.__key),_t(ao)}else so.remove(),Oi().dispatchCommand(t$3,void 0);return}if(!to&&qi(so)&&qi(oo)&&oo.isEmpty())return oo.remove(),void so.selectStart();if(this.modify("extend",to,"character"),this.isCollapsed()){if(to&&no.offset===0&&(no.type==="element"?no.getNode():no.getNode().getParentOrThrow()).collapseAtStart(this))return}else{const ao=io.type==="text"?io.getNode():null;if(oo=no.type==="text"?no.getNode():null,ao!==null&&ao.isSegmented()){const lo=io.offset,uo=ao.getTextContentSize();if(ao.is(oo)||to&&lo!==uo||!to&&lo!==0)return void ti(ao,to,lo)}else if(oo!==null&&oo.isSegmented()){const lo=no.offset,uo=oo.getTextContentSize();if(oo.is(ao)||to&&lo!==0||!to&&lo!==uo)return void ti(oo,to,lo)}(function(lo,uo){const co=lo.anchor,fo=lo.focus,po=co.getNode(),ho=fo.getNode();if(po===ho&&co.type==="text"&&fo.type==="text"){const mo=co.offset,vo=fo.offset,bo=moro||co){oo.splice(uo,1),co&&(ao=void 0);break}}const lo=oo.join("").trim();lo===""?no.remove():(no.setTextContent(lo),no.select(ao,ao))}function ni(eo,to,ro,no){let oo,io=to;if(eo.nodeType===ie){let so=!1;const ao=eo.childNodes,lo=ao.length;io===lo&&(so=!0,io=lo-1);let uo=ao[io],co=!1;if(uo===no._blockCursorElement?(uo=ao[io+1],co=!0):no._blockCursorElement!==null&&io--,oo=pt$1(uo),Br(oo))io=yt$1(oo,so);else{let fo=pt$1(eo);if(fo===null)return null;if(qi(fo)){let po=fo.getChildAtIndex(io);if(qi(po)&&function(ho,mo,vo){const bo=ho.getParent();return vo===null||bo===null||!bo.canBeEmpty()||bo!==vo.getNode()}(po,0,ro)){const ho=so?po.getLastDescendant():po.getFirstDescendant();ho===null?(fo=po,io=0):(po=ho,fo=qi(po)?po:po.getParentOrThrow())}Br(po)?(oo=po,fo=null,io=yt$1(po,so)):po!==fo&&so&&!co&&io++}else{const po=fo.getIndexWithinParent();io=to===0&&Hi(fo)&&pt$1(eo)===fo?po:po+1,fo=fo.getParentOrThrow()}if(qi(fo))return Vr(fo.__key,io,"element")}}else oo=pt$1(eo);return Br(oo)?Vr(oo.__key,io,"text"):null}function ri(eo,to,ro){const no=eo.offset,oo=eo.getNode();if(no===0){const io=oo.getPreviousSibling(),so=oo.getParent();if(to){if((ro||!to)&&io===null&&qi(so)&&so.isInline()){const ao=so.getPreviousSibling();Br(ao)&&(eo.key=ao.__key,eo.offset=ao.getTextContent().length)}}else qi(io)&&!ro&&io.isInline()?(eo.key=io.__key,eo.offset=io.getChildrenSize(),eo.type="element"):Br(io)&&(eo.key=io.__key,eo.offset=io.getTextContent().length)}else if(no===oo.getTextContent().length){const io=oo.getNextSibling(),so=oo.getParent();if(to&&qi(io)&&io.isInline())eo.key=io.__key,eo.offset=0,eo.type="element";else if((ro||to)&&io===null&&qi(so)&&so.isInline()&&!so.canInsertTextAfter()){const ao=so.getNextSibling();Br(ao)&&(eo.key=ao.__key,eo.offset=0)}}}function ii(eo,to,ro){if(eo.type==="text"&&to.type==="text"){const no=eo.isBefore(to),oo=eo.is(to);ri(eo,no,oo),ri(to,!no,oo),oo&&(to.key=eo.key,to.offset=eo.offset,to.type=eo.type);const io=Oi();if(io.isComposing()&&io._compositionKey!==eo.key&&Xr(ro)){const so=ro.anchor,ao=ro.focus;qr(eo,so.key,so.offset,so.type),qr(to,ao.key,ao.offset,ao.type)}}}function si(eo,to,ro,no,oo,io){if(eo===null||ro===null||!Xe(oo,eo,ro))return null;const so=ni(eo,to,Xr(io)?io.anchor:null,oo);if(so===null)return null;const ao=ni(ro,no,Xr(io)?io.focus:null,oo);if(ao===null)return null;if(so.type==="element"&&ao.type==="element"){const lo=pt$1(eo),uo=pt$1(ro);if(Hi(lo)&&Hi(uo))return null}return ii(so,ao,io),[so,ao]}function oi(eo){return qi(eo)&&!eo.isInline()}function li(eo,to,ro,no,oo,io){const so=Ii(),ao=new Yr(Vr(eo,to,oo),Vr(ro,no,io),0,"");return ao.dirty=!0,so._selection=ao,ao}function ci(){const eo=Vr("root",0,"element"),to=Vr("root",0,"element");return new Yr(eo,to,0,"")}function ui(){return new Qr(new Set)}function ai(eo,to,ro,no){const oo=ro._window;if(oo===null)return null;const io=no||oo.event,so=io?io.type:void 0,ao=so==="selectionchange",lo=!Ae&&(ao||so==="beforeinput"||so==="compositionstart"||so==="compositionend"||so==="click"&&io&&io.detail===3||so==="drop"||so===void 0);let uo,co,fo,po;if(Xr(eo)&&!lo)return eo.clone();if(to===null)return null;if(uo=to.anchorNode,co=to.focusNode,fo=to.anchorOffset,po=to.focusOffset,ao&&Xr(eo)&&!Xe(ro,uo,co))return eo.clone();const ho=si(uo,fo,co,po,ro,eo);if(ho===null)return null;const[mo,vo]=ho;return new Yr(mo,vo,Xr(eo)?eo.format:0,Xr(eo)?eo.style:"")}function fi(){return Ii()._selection}function di(){return Oi()._editorState._selection}function hi(eo,to,ro,no=1){const oo=eo.anchor,io=eo.focus,so=oo.getNode(),ao=io.getNode();if(!to.is(so)&&!to.is(ao))return;const lo=to.__key;if(eo.isCollapsed()){const uo=oo.offset;if(ro<=uo&&no>0||ro0||ro0||ro=ao,uo=lo?io.getChildAtIndex(ao-1):io.getChildAtIndex(ro);if(Br(uo)){let co=0;lo&&(co=uo.getTextContentSize()),to.set(uo.__key,co,"text"),no.set(uo.__key,co,"text")}}else{if(qi(io)){const ao=io.getChildrenSize(),lo=ro>=ao,uo=lo?io.getChildAtIndex(ao-1):io.getChildAtIndex(ro);if(Br(uo)){let co=0;lo&&(co=uo.getTextContentSize()),to.set(uo.__key,co,"text")}}if(qi(so)){const ao=so.getChildrenSize(),lo=oo>=ao,uo=lo?so.getChildAtIndex(ao-1):so.getChildAtIndex(oo);if(Br(uo)){let co=0;lo&&(co=uo.getTextContentSize()),no.set(uo.__key,co,"text")}}}}function _i(eo,to,ro,no,oo){let io=null,so=0,ao=null;no!==null?(io=no.__key,Br(no)?(so=no.getTextContentSize(),ao="text"):qi(no)&&(so=no.getChildrenSize(),ao="element")):oo!==null&&(io=oo.__key,Br(oo)?ao="text":qi(oo)&&(ao="element")),io!==null&&ao!==null?eo.set(io,so,ao):(so=to.getIndexWithinParent(),so===-1&&(so=ro.getChildrenSize()),eo.set(ro.__key,so,"element"))}function pi(eo,to,ro,no,oo){eo.type==="text"?(eo.key=ro,to||(eo.offset+=oo)):eo.offset>no.getIndexWithinParent()&&(eo.offset-=1)}function yi(eo,to,ro,no,oo,io,so){const ao=no.anchorNode,lo=no.focusNode,uo=no.anchorOffset,co=no.focusOffset,fo=document.activeElement;if(oo.has("collaboration")&&fo!==io||fo!==null&&Qe(fo))return;if(!Xr(to))return void(eo!==null&&Xe(ro,ao,lo)&&no.removeAllRanges());const po=to.anchor,ho=to.focus,mo=po.key,vo=ho.key,bo=Kt(ro,mo),xo=Kt(ro,vo),_o=po.offset,So=ho.offset,Eo=to.format,ko=to.style,wo=to.isCollapsed();let Co=bo,Ro=xo,Ao=!1;if(po.type==="text"){Co=et(bo);const jo=po.getNode();Ao=jo.getFormat()!==Eo||jo.getStyle()!==ko}else Xr(eo)&&eo.anchor.type==="text"&&(Ao=!0);var Io,$o,Bo,Mo,Ho;if(ho.type==="text"&&(Ro=et(xo)),Co!==null&&Ro!==null&&(wo&&(eo===null||Ao||Xr(eo)&&(eo.format!==Eo||eo.style!==ko))&&(Io=Eo,$o=ko,Bo=_o,Mo=mo,Ho=performance.now(),rr=[Io,$o,Bo,Mo,Ho]),uo!==_o||co!==So||ao!==Co||lo!==Ro||no.type==="Range"&&wo||(fo!==null&&io.contains(fo)||io.focus({preventScroll:!0}),po.type==="element"))){try{no.setBaseAndExtent(Co,_o,Ro,So)}catch{}if(!oo.has("skip-scroll-into-view")&&to.isCollapsed()&&io!==null&&io===document.activeElement){const jo=to instanceof Yr&&to.anchor.type==="element"?Co.childNodes[_o]||null:no.rangeCount>0?no.getRangeAt(0):null;if(jo!==null){let Oo;if(jo instanceof Text){const Fo=document.createRange();Fo.selectNode(jo),Oo=Fo.getBoundingClientRect()}else Oo=jo.getBoundingClientRect();(function(Fo,Go,qo){const Xo=qo.ownerDocument,Zo=Xo.defaultView;if(Zo===null)return;let{top:Qo,bottom:xs}=Go,Ts=0,Rs=0,Os=qo;for(;Os!==null;){const As=Os===Xo.body;if(As)Ts=0,Rs=Ht(Fo).innerHeight;else{const Jo=Os.getBoundingClientRect();Ts=Jo.top,Rs=Jo.bottom}let Ds=0;if(QoRs&&(Ds=xs-Rs),Ds!==0)if(As)Zo.scrollBy(0,Ds);else{const Jo=Os.scrollTop;Os.scrollTop+=Ds;const Cs=Os.scrollTop-Jo;Qo-=Cs,xs-=Cs}if(As)break;Os=Jt(Os)}})(ro,Oo,io)}}Gn=!0}}function mi(eo){let to=fi()||di();to===null&&(to=ht$1().selectEnd()),to.insertNodes(eo)}function xi(){const eo=fi();return eo===null?"":eo.getTextContent()}function vi(eo){eo.isCollapsed()||eo.removeText();const to=eo.anchor;let ro=to.getNode(),no=to.offset;for(;!ln(ro);)[ro,no]=Ti(ro,no);return no}function Ti(eo,to){const ro=eo.getParent();if(!ro){const oo=rs();return ht$1().append(oo),oo.select(),[ht$1(),0]}if(Br(eo)){const oo=eo.splitText(to);if(oo.length===0)return[ro,eo.getIndexWithinParent()];const io=to===0?0:1;return[ro,oo[0].getIndexWithinParent()+io]}if(!qi(eo)||to===0)return[ro,eo.getIndexWithinParent()];const no=eo.getChildAtIndex(to);if(no){const oo=new Yr(Vr(eo.__key,to,"element"),Vr(eo.__key,to,"element"),0,""),io=eo.insertNewAfter(oo);io&&io.append(no,...no.getNextSiblings())}return[ro,eo.getIndexWithinParent()+1]}let Si=null,ki=null,Ci=!1,bi=!1,Ni=0;const wi={characterData:!0,childList:!0,subtree:!0};function Ei(){return Ci||Si!==null&&Si._readOnly}function Pi(){Ci&&H$1(13)}function Di(){Ni>99&&H$1(14)}function Ii(){return Si===null&&H$1(15),Si}function Oi(){return ki===null&&H$1(16),ki}function Ai(){return ki}function Li(eo,to,ro){const no=to.__type,oo=function(ao,lo){const uo=ao._nodes.get(lo);return uo===void 0&&H$1(30,lo),uo}(eo,no);let io=ro.get(no);io===void 0&&(io=Array.from(oo.transforms),ro.set(no,io));const so=io.length;for(let ao=0;ao{oo=Ki(eo,to,ro)}),oo}const no=xt$1(eo);for(let oo=4;oo>=0;oo--)for(let io=0;io0||Bo>0;){if(Io>0){So._dirtyLeaves=new Set;for(const Mo of Ao){const Ho=wo.get(Mo);Br(Ho)&&Ho.isAttached()&&Ho.isSimpleText()&&!Ho.isUnmergeable()&&Ve(Ho),Ho!==void 0&&Fi(Ho,Co)&&Li(So,Ho,Ro),Eo.add(Mo)}if(Ao=So._dirtyLeaves,Io=Ao.size,Io>0){Ni++;continue}}So._dirtyLeaves=new Set,So._dirtyElements=new Map;for(const Mo of $o){const Ho=Mo[0],jo=Mo[1];if(Ho!=="root"&&!jo)continue;const Oo=wo.get(Ho);Oo!==void 0&&Fi(Oo,Co)&&Li(So,Oo,Ro),ko.set(Ho,jo)}Ao=So._dirtyLeaves,Io=Ao.size,$o=So._dirtyElements,Bo=$o.size,Ni++}So._dirtyLeaves=Eo,So._dirtyElements=ko}(uo,eo),Ji(eo),function(_o,So,Eo,ko){const wo=_o._nodeMap,Co=So._nodeMap,Ro=[];for(const[Ao]of ko){const Io=Co.get(Ao);Io!==void 0&&(Io.isAttached()||(qi(Io)&&an(Io,Ao,wo,Co,Ro,ko),wo.has(Ao)||ko.delete(Ao),Ro.push(Ao)))}for(const Ao of Ro)Co.delete(Ao);for(const Ao of Eo){const Io=Co.get(Ao);Io===void 0||Io.isAttached()||(wo.has(Ao)||Eo.delete(Ao),Co.delete(Ao))}}(lo,uo,eo._dirtyLeaves,eo._dirtyElements)),bo!==eo._compositionKey&&(uo._flushSync=!0);const xo=uo._selection;if(Xr(xo)){const _o=uo._nodeMap,So=xo.anchor.key,Eo=xo.focus.key;_o.get(So)!==void 0&&_o.get(Eo)!==void 0||H$1(19)}else Zr(xo)&&xo._nodes.size===0&&(uo._selection=null)}catch(bo){return bo instanceof Error&&eo._onError(bo),eo._pendingEditorState=lo,eo._dirtyType=ce,eo._cloneNotNeeded.clear(),eo._dirtyLeaves=new Set,eo._dirtyElements.clear(),void Bi(eo)}finally{Si=fo,Ci=po,ki=ho,eo._updating=mo,Ni=0}eo._dirtyType!==oe||function(bo,xo){const _o=xo.getEditorState()._selection,So=bo._selection;if(So!==null){if(So.dirty||!So.is(_o))return!0}else if(_o!==null)return!0;return!1}(uo,eo)?uo._flushSync?(uo._flushSync=!1,Bi(eo)):co&&qe(()=>{Bi(eo)}):(uo._flushSync=!1,co&&(no.clear(),eo._deferred=[],eo._pendingEditorState=null))}function Vi(eo,to,ro){eo._updating?eo._updates.push([to,ro]):Ui(eo,to,ro)}class $i extends pr{constructor(to){super(to)}decorate(to,ro){H$1(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Hi(eo){return eo instanceof $i}class ji extends pr{constructor(to){super(to),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 to=this.getFormat();return Ee[to]||""}getIndent(){return this.getLatest().__indent}getChildren(){const to=[];let ro=this.getFirstChild();for(;ro!==null;)to.push(ro),ro=ro.getNextSibling();return to}getChildrenKeys(){const to=[];let ro=this.getFirstChild();for(;ro!==null;)to.push(ro.__key),ro=ro.getNextSibling();return to}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const to=Oi()._dirtyElements;return to!==null&&to.has(this.__key)}isLastChild(){const to=this.getLatest(),ro=this.getParentOrThrow().getLastChild();return ro!==null&&ro.is(to)}getAllTextNodes(){const to=[];let ro=this.getFirstChild();for(;ro!==null;){if(Br(ro)&&to.push(ro),qi(ro)){const no=ro.getAllTextNodes();to.push(...no)}ro=ro.getNextSibling()}return to}getFirstDescendant(){let to=this.getFirstChild();for(;qi(to);){const ro=to.getFirstChild();if(ro===null)break;to=ro}return to}getLastDescendant(){let to=this.getLastChild();for(;qi(to);){const ro=to.getLastChild();if(ro===null)break;to=ro}return to}getDescendantByIndex(to){const ro=this.getChildren(),no=ro.length;if(to>=no){const io=ro[no-1];return qi(io)&&io.getLastDescendant()||io||null}const oo=ro[to];return qi(oo)&&oo.getFirstDescendant()||oo||null}getFirstChild(){const to=this.getLatest().__first;return to===null?null:ct$1(to)}getFirstChildOrThrow(){const to=this.getFirstChild();return to===null&&H$1(45,this.__key),to}getLastChild(){const to=this.getLatest().__last;return to===null?null:ct$1(to)}getLastChildOrThrow(){const to=this.getLastChild();return to===null&&H$1(96,this.__key),to}getChildAtIndex(to){const ro=this.getChildrenSize();let no,oo;if(to=to;){if(oo===to)return no;no=no.getPreviousSibling(),oo--}return null}getTextContent(){let to="";const ro=this.getChildren(),no=ro.length;for(let oo=0;ooro.remove()),to}append(...to){return this.splice(this.getChildrenSize(),0,to)}setDirection(to){const ro=this.getWritable();return ro.__dir=to,ro}setFormat(to){return this.getWritable().__format=to!==""?we[to]:0,this}setIndent(to){return this.getWritable().__indent=to,this}splice(to,ro,no){const oo=no.length,io=this.getChildrenSize(),so=this.getWritable(),ao=so.__key,lo=[],uo=[],co=this.getChildAtIndex(to+ro);let fo=null,po=io-ro+oo;if(to!==0)if(to===io)fo=this.getLastChild();else{const mo=this.getChildAtIndex(to);mo!==null&&(fo=mo.getPreviousSibling())}if(ro>0){let mo=fo===null?this.getFirstChild():fo.getNextSibling();for(let vo=0;vo({root:Gi(ht$1())}))}}class ts extends ji{static getType(){return"paragraph"}static clone(to){return new ts(to.__key)}createDOM(to){const ro=document.createElement("p"),no=At$1(to.theme,"paragraph");return no!==void 0&&ro.classList.add(...no),ro}updateDOM(to,ro,no){return!1}static importDOM(){return{p:to=>({conversion:ns,priority:0})}}exportDOM(to){const{element:ro}=super.exportDOM(to);if(ro&&on(ro)){this.isEmpty()&&ro.append(document.createElement("br"));const no=this.getFormatType();ro.style.textAlign=no;const oo=this.getDirection();oo&&(ro.dir=oo);const io=this.getIndent();io>0&&(ro.style.textIndent=20*io+"px")}return{element:ro}}static importJSON(to){const ro=rs();return ro.setFormat(to.format),ro.setIndent(to.indent),ro.setDirection(to.direction),ro}exportJSON(){return{...super.exportJSON(),type:"paragraph",version:1}}insertNewAfter(to,ro){const no=rs(),oo=this.getDirection();return no.setDirection(oo),this.insertAfter(no,ro),no}collapseAtStart(){const to=this.getChildren();if(to.length===0||Br(to[0])&&to[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 ns(eo){const to=rs();if(eo.style){to.setFormat(eo.style.textAlign);const ro=parseInt(eo.style.textIndent,10)/20;ro>0&&to.setIndent(ro)}return{node:to}}function rs(){return Yt(new ts)}function is(eo){return eo instanceof ts}const ss=0,os=1,ls=2,cs=3,us=4;function as(eo,to,ro,no){const oo=eo._keyToDOMMap;oo.clear(),eo._editorState=Zi(),eo._pendingEditorState=no,eo._compositionKey=null,eo._dirtyType=oe,eo._cloneNotNeeded.clear(),eo._dirtyLeaves=new Set,eo._dirtyElements.clear(),eo._normalizedNodes=new Set,eo._updateTags=new Set,eo._updates=[],eo._blockCursorElement=null;const io=eo._observer;io!==null&&(io.disconnect(),eo._observer=null),to!==null&&(to.textContent=""),ro!==null&&(ro.textContent="",oo.set("root",ro))}function fs(eo){const to=eo||{},ro=Ai(),no=to.theme||{},oo=eo===void 0?ro:to.parentEditor||null,io=to.disableEvents||!1,so=Zi(),ao=to.namespace||(oo!==null?oo._config.namespace:vt$1()),lo=to.editorState,uo=[Xi,Er,yr,Rr,ts,...to.nodes||[]],{onError:co,html:fo}=to,po=to.editable===void 0||to.editable;let ho;if(eo===void 0&&ro!==null)ho=ro._nodes;else{ho=new Map;for(let vo=0;vo{Object.keys(Eo).forEach(ko=>{let wo=xo.get(ko);wo===void 0&&(wo=[],xo.set(ko,wo)),wo.push(Eo[ko])})};return vo.forEach(Eo=>{const ko=Eo.klass.importDOM;if(ko==null||_o.has(ko))return;_o.add(ko);const wo=ko.call(Eo.klass);wo!==null&&So(wo)}),bo&&So(bo),xo}(ho,fo?fo.import:void 0),po);return lo!==void 0&&(mo._pendingEditorState=lo,mo._dirtyType=ce),mo}class ds{constructor(to,ro,no,oo,io,so,ao){this._parentEditor=ro,this._rootElement=null,this._editorState=to,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=oo,this._nodes=no,this._decorators={},this._pendingDecorators=null,this._dirtyType=oe,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=vt$1(),this._onError=io,this._htmlConversions=so,this._editable=ao,this._headless=ro!==null&&ro._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(to){const ro=this._listeners.update;return ro.add(to),()=>{ro.delete(to)}}registerEditableListener(to){const ro=this._listeners.editable;return ro.add(to),()=>{ro.delete(to)}}registerDecoratorListener(to){const ro=this._listeners.decorator;return ro.add(to),()=>{ro.delete(to)}}registerTextContentListener(to){const ro=this._listeners.textcontent;return ro.add(to),()=>{ro.delete(to)}}registerRootListener(to){const ro=this._listeners.root;return to(this._rootElement,null),ro.add(to),()=>{to(null,this._rootElement),ro.delete(to)}}registerCommand(to,ro,no){no===void 0&&H$1(35);const oo=this._commands;oo.has(to)||oo.set(to,[new Set,new Set,new Set,new Set,new Set]);const io=oo.get(to);io===void 0&&H$1(36,String(to));const so=io[no];return so.add(ro),()=>{so.delete(ro),io.every(ao=>ao.size===0)&&oo.delete(to)}}registerMutationListener(to,ro){this._nodes.get(to.getType())===void 0&&H$1(37,to.name);const no=this._listeners.mutation;return no.set(ro,to),()=>{no.delete(ro)}}registerNodeTransformToKlass(to,ro){const no=to.getType(),oo=this._nodes.get(no);return oo===void 0&&H$1(37,to.name),oo.transforms.add(ro),oo}registerNodeTransform(to,ro){const no=this.registerNodeTransformToKlass(to,ro),oo=[no],io=no.replaceWithKlass;if(io!=null){const lo=this.registerNodeTransformToKlass(io,ro);oo.push(lo)}var so,ao;return so=this,ao=to.getType(),Vi(so,()=>{const lo=Ii();if(lo.isEmpty())return;if(ao==="root")return void ht$1().markDirty();const uo=lo._nodeMap;for(const[,co]of uo)co.markDirty()},so._pendingEditorState===null?{tag:"history-merge"}:void 0),()=>{oo.forEach(lo=>lo.transforms.delete(ro))}}hasNode(to){return this._nodes.has(to.getType())}hasNodes(to){return to.every(this.hasNode.bind(this))}dispatchCommand(to,ro){return Bt(this,to,ro)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(to){const ro=this._rootElement;if(to!==ro){const no=At$1(this._config.theme,"root"),oo=this._pendingEditorState||this._editorState;if(this._rootElement=to,as(this,ro,to,oo),ro!==null&&(this._config.disableEvents||gr(ro),no!=null&&ro.classList.remove(...no)),to!==null){const io=function(ao){const lo=ao.ownerDocument;return lo&&lo.defaultView||null}(to),so=to.style;so.userSelect="text",so.whiteSpace="pre-wrap",so.wordBreak="break-word",to.setAttribute("data-lexical-editor","true"),this._window=io,this._dirtyType=ce,Ke(this),this._updateTags.add("history-merge"),Bi(this),this._config.disableEvents||function(ao,lo){const uo=ao.ownerDocument,co=Zn.get(uo);co===void 0&&uo.addEventListener("selectionchange",fr),Zn.set(uo,co||1),ao.__lexicalEditor=lo;const fo=ur(ao);for(let po=0;po{hr(bo)||(dr(bo),(lo.isEditable()||ho==="click")&&mo(bo,lo))}:bo=>{if(!hr(bo)&&(dr(bo),lo.isEditable()))switch(ho){case"cut":return Bt(lo,W,bo);case"copy":return Bt(lo,M$3,bo);case"paste":return Bt(lo,c$5,bo);case"dragstart":return Bt(lo,A$3,bo);case"dragover":return Bt(lo,L$2,bo);case"dragend":return Bt(lo,F$1,bo);case"focus":return Bt(lo,U,bo);case"blur":return Bt(lo,V,bo);case"drop":return Bt(lo,I$1,bo)}};ao.addEventListener(ho,vo),fo.push(()=>{ao.removeEventListener(ho,vo)})}}(to,this),no!=null&&to.classList.add(...no)}else this._editorState=oo,this._pendingEditorState=null,this._window=null;Ri("root",this,!1,to,ro)}}getElementByKey(to){return this._keyToDOMMap.get(to)||null}getEditorState(){return this._editorState}setEditorState(to,ro){to.isEmpty()&&H$1(38),Re(this);const no=this._pendingEditorState,oo=this._updateTags,io=ro!==void 0?ro.tag:null;no===null||no.isEmpty()||(io!=null&&oo.add(io),Bi(this)),this._pendingEditorState=to,this._dirtyType=ce,this._dirtyElements.set("root",!1),this._compositionKey=null,io!=null&&oo.add(io),Bi(this)}parseEditorState(to,ro){return function(no,oo,io){const so=Zi(),ao=Si,lo=Ci,uo=ki,co=oo._dirtyElements,fo=oo._dirtyLeaves,po=oo._cloneNotNeeded,ho=oo._dirtyType;oo._dirtyElements=new Map,oo._dirtyLeaves=new Set,oo._cloneNotNeeded=new Set,oo._dirtyType=0,Si=so,Ci=!1,ki=oo;try{const mo=oo._nodes;Wi(no.root,mo),io&&io(),so._readOnly=!0}catch(mo){mo instanceof Error&&oo._onError(mo)}finally{oo._dirtyElements=co,oo._dirtyLeaves=fo,oo._cloneNotNeeded=po,oo._dirtyType=ho,Si=ao,Ci=lo,ki=uo}return so}(typeof to=="string"?JSON.parse(to):to,this,ro)}update(to,ro){Vi(this,to,ro)}focus(to,ro={}){const no=this._rootElement;no!==null&&(no.setAttribute("autocapitalize","off"),Vi(this,()=>{const oo=fi(),io=ht$1();oo!==null?oo.dirty=!0:io.getChildrenSize()!==0&&(ro.defaultSelection==="rootStart"?io.selectStart():io.selectEnd())},{onUpdate:()=>{no.removeAttribute("autocapitalize"),to&&to()},tag:"focus"}),this._pendingEditorState===null&&no.removeAttribute("autocapitalize"))}blur(){const to=this._rootElement;to!==null&&to.blur();const ro=nn(this._window);ro!==null&&ro.removeAllRanges()}isEditable(){return this._editable}setEditable(to){this._editable!==to&&(this._editable=to,Ri("editable",this,!0,to))}toJSON(){return{editorState:this._editorState.toJSON()}}}const modProd$i=Object.freeze(Object.defineProperty({__proto__:null,$addUpdateTag:Vt,$applyNodeReplacement:Yt,$copyNode:Xt,$createLineBreakNode:xr,$createNodeSelection:ui,$createParagraphNode:rs,$createPoint:Vr,$createRangeSelection:ci,$createTabNode:Kr,$createTextNode:zr,$getAdjacentNode:Wt,$getCharacterOffsets:ei,$getEditor:un,$getNearestNodeFromDOMNode:at$1,$getNearestRootOrShadowRoot:qt,$getNodeByKey:ct$1,$getPreviousSelection:di,$getRoot:ht$1,$getSelection:fi,$getTextContent:xi,$hasAncestor:$t,$hasUpdateTag:Ut,$insertNodes:mi,$isBlockElementNode:oi,$isDecoratorNode:Hi,$isElementNode:qi,$isInlineElementOrDecoratorNode:jt,$isLeafNode:nt,$isLineBreakNode:vr,$isNodeSelection:Zr,$isParagraphNode:is,$isRangeSelection:Xr,$isRootNode:Yi,$isRootOrShadowRoot:Qt,$isTabNode:Jr,$isTextNode:Br,$nodesOfType:Ft,$normalizeSelection__EXPERIMENTAL:$e,$parseSerializedNode:Mi,$selectAll:Ot$1,$setCompositionKey:ot,$setSelection:_t,$splitNode:rn,BLUR_COMMAND:V,CAN_REDO_COMMAND:K$2,CAN_UNDO_COMMAND:J,CLEAR_EDITOR_COMMAND:B$2,CLEAR_HISTORY_COMMAND:R$2,CLICK_COMMAND:r$1,COMMAND_PRIORITY_CRITICAL:us,COMMAND_PRIORITY_EDITOR:ss,COMMAND_PRIORITY_HIGH:cs,COMMAND_PRIORITY_LOW:os,COMMAND_PRIORITY_NORMAL:ls,CONTROLLED_TEXT_INSERTION_COMMAND:l$3,COPY_COMMAND:M$3,CUT_COMMAND:W,DELETE_CHARACTER_COMMAND:i$2,DELETE_LINE_COMMAND:f$4,DELETE_WORD_COMMAND:a$4,DRAGEND_COMMAND:F$1,DRAGOVER_COMMAND:L$2,DRAGSTART_COMMAND:A$3,DROP_COMMAND:I$1,DecoratorNode:$i,ElementNode:ji,FOCUS_COMMAND:U,FORMAT_ELEMENT_COMMAND:O$2,FORMAT_TEXT_COMMAND:d$4,INDENT_CONTENT_COMMAND:P$3,INSERT_LINE_BREAK_COMMAND:s$2,INSERT_PARAGRAPH_COMMAND:o$5,INSERT_TAB_COMMAND:E$4,KEY_ARROW_DOWN_COMMAND:T$3,KEY_ARROW_LEFT_COMMAND:m$5,KEY_ARROW_RIGHT_COMMAND:p$4,KEY_ARROW_UP_COMMAND:v$3,KEY_BACKSPACE_COMMAND:C$4,KEY_DELETE_COMMAND:N$3,KEY_DOWN_COMMAND:_$5,KEY_ENTER_COMMAND:S$4,KEY_ESCAPE_COMMAND:b$2,KEY_MODIFIER_COMMAND:$$1,KEY_SPACE_COMMAND:k$2,KEY_TAB_COMMAND:w$3,LineBreakNode:yr,MOVE_TO_END:y$4,MOVE_TO_START:x$5,OUTDENT_CONTENT_COMMAND:D$2,PASTE_COMMAND:c$5,ParagraphNode:ts,REDO_COMMAND:g$6,REMOVE_TEXT_COMMAND:u$5,RootNode:Xi,SELECTION_CHANGE_COMMAND:t$3,SELECTION_INSERT_CLIPBOARD_NODES_COMMAND:n$2,SELECT_ALL_COMMAND:z$1,TabNode:Rr,TextNode:Er,UNDO_COMMAND:h$3,createCommand:e$1,createEditor:fs,getNearestEditorFromDOMNode:Ye,isCurrentlyReadOnlyMode:Ei,isHTMLAnchorElement:sn,isHTMLElement:on,isSelectionCapturedInDecoratorInput:Qe,isSelectionWithinEditor:Xe},Symbol.toStringTag,{value:"Module"})),mod$i=modProd$i,$applyNodeReplacement=mod$i.$applyNodeReplacement,$copyNode=mod$i.$copyNode,$createNodeSelection=mod$i.$createNodeSelection,$createParagraphNode=mod$i.$createParagraphNode,$createRangeSelection=mod$i.$createRangeSelection,$createTabNode=mod$i.$createTabNode,$createTextNode=mod$i.$createTextNode,$getAdjacentNode=mod$i.$getAdjacentNode,$getCharacterOffsets=mod$i.$getCharacterOffsets,$getNearestNodeFromDOMNode=mod$i.$getNearestNodeFromDOMNode,$getNodeByKey=mod$i.$getNodeByKey,$getPreviousSelection=mod$i.$getPreviousSelection,$getRoot=mod$i.$getRoot,$getSelection=mod$i.$getSelection,$hasAncestor=mod$i.$hasAncestor,$insertNodes=mod$i.$insertNodes,$isDecoratorNode=mod$i.$isDecoratorNode,$isElementNode=mod$i.$isElementNode,$isLeafNode=mod$i.$isLeafNode,$isLineBreakNode=mod$i.$isLineBreakNode,$isNodeSelection=mod$i.$isNodeSelection,$isParagraphNode=mod$i.$isParagraphNode,$isRangeSelection=mod$i.$isRangeSelection,$isRootNode=mod$i.$isRootNode,$isRootOrShadowRoot=mod$i.$isRootOrShadowRoot,$isTextNode=mod$i.$isTextNode,$normalizeSelection__EXPERIMENTAL=mod$i.$normalizeSelection__EXPERIMENTAL,$parseSerializedNode=mod$i.$parseSerializedNode,$selectAll=mod$i.$selectAll,$setSelection=mod$i.$setSelection,$splitNode=mod$i.$splitNode,CAN_REDO_COMMAND=mod$i.CAN_REDO_COMMAND,CAN_UNDO_COMMAND=mod$i.CAN_UNDO_COMMAND,CLEAR_EDITOR_COMMAND=mod$i.CLEAR_EDITOR_COMMAND,CLEAR_HISTORY_COMMAND=mod$i.CLEAR_HISTORY_COMMAND,CLICK_COMMAND=mod$i.CLICK_COMMAND,COMMAND_PRIORITY_CRITICAL=mod$i.COMMAND_PRIORITY_CRITICAL,COMMAND_PRIORITY_EDITOR=mod$i.COMMAND_PRIORITY_EDITOR,COMMAND_PRIORITY_HIGH=mod$i.COMMAND_PRIORITY_HIGH,COMMAND_PRIORITY_LOW=mod$i.COMMAND_PRIORITY_LOW,CONTROLLED_TEXT_INSERTION_COMMAND=mod$i.CONTROLLED_TEXT_INSERTION_COMMAND,COPY_COMMAND=mod$i.COPY_COMMAND,CUT_COMMAND=mod$i.CUT_COMMAND,DELETE_CHARACTER_COMMAND=mod$i.DELETE_CHARACTER_COMMAND,DELETE_LINE_COMMAND=mod$i.DELETE_LINE_COMMAND,DELETE_WORD_COMMAND=mod$i.DELETE_WORD_COMMAND,DRAGOVER_COMMAND=mod$i.DRAGOVER_COMMAND,DRAGSTART_COMMAND=mod$i.DRAGSTART_COMMAND,DROP_COMMAND=mod$i.DROP_COMMAND,DecoratorNode=mod$i.DecoratorNode,ElementNode=mod$i.ElementNode,FORMAT_ELEMENT_COMMAND=mod$i.FORMAT_ELEMENT_COMMAND,FORMAT_TEXT_COMMAND=mod$i.FORMAT_TEXT_COMMAND,INDENT_CONTENT_COMMAND=mod$i.INDENT_CONTENT_COMMAND,INSERT_LINE_BREAK_COMMAND=mod$i.INSERT_LINE_BREAK_COMMAND,INSERT_PARAGRAPH_COMMAND=mod$i.INSERT_PARAGRAPH_COMMAND,INSERT_TAB_COMMAND=mod$i.INSERT_TAB_COMMAND,KEY_ARROW_DOWN_COMMAND=mod$i.KEY_ARROW_DOWN_COMMAND,KEY_ARROW_LEFT_COMMAND=mod$i.KEY_ARROW_LEFT_COMMAND,KEY_ARROW_RIGHT_COMMAND=mod$i.KEY_ARROW_RIGHT_COMMAND,KEY_ARROW_UP_COMMAND=mod$i.KEY_ARROW_UP_COMMAND,KEY_BACKSPACE_COMMAND=mod$i.KEY_BACKSPACE_COMMAND,KEY_DELETE_COMMAND=mod$i.KEY_DELETE_COMMAND,KEY_ENTER_COMMAND=mod$i.KEY_ENTER_COMMAND,KEY_ESCAPE_COMMAND=mod$i.KEY_ESCAPE_COMMAND,LineBreakNode=mod$i.LineBreakNode,OUTDENT_CONTENT_COMMAND=mod$i.OUTDENT_CONTENT_COMMAND,PASTE_COMMAND=mod$i.PASTE_COMMAND,ParagraphNode=mod$i.ParagraphNode,REDO_COMMAND=mod$i.REDO_COMMAND,REMOVE_TEXT_COMMAND=mod$i.REMOVE_TEXT_COMMAND,RootNode=mod$i.RootNode,SELECTION_CHANGE_COMMAND=mod$i.SELECTION_CHANGE_COMMAND,SELECTION_INSERT_CLIPBOARD_NODES_COMMAND=mod$i.SELECTION_INSERT_CLIPBOARD_NODES_COMMAND,SELECT_ALL_COMMAND=mod$i.SELECT_ALL_COMMAND,TextNode=mod$i.TextNode,UNDO_COMMAND=mod$i.UNDO_COMMAND,createCommand=mod$i.createCommand,createEditor=mod$i.createEditor,isHTMLAnchorElement$1=mod$i.isHTMLAnchorElement,isHTMLElement$2=mod$i.isHTMLElement,isSelectionCapturedInDecoratorInput=mod$i.isSelectionCapturedInDecoratorInput,isSelectionWithinEditor=mod$i.isSelectionWithinEditor,m$4=new Map;function _$4(eo){let to=eo;for(;to!=null;){if(to.nodeType===Node.TEXT_NODE)return to;to=to.firstChild}return null}function y$3(eo){const to=eo.parentNode;if(to==null)throw new Error("Should never happen");return[to,Array.from(to.childNodes).indexOf(eo)]}function T$2(eo,to,ro,no,oo){const io=to.getKey(),so=no.getKey(),ao=document.createRange();let lo=eo.getElementByKey(io),uo=eo.getElementByKey(so),co=ro,fo=oo;if($isTextNode(to)&&(lo=_$4(lo)),$isTextNode(no)&&(uo=_$4(uo)),to===void 0||no===void 0||lo===null||uo===null)return null;lo.nodeName==="BR"&&([lo,co]=y$3(lo)),uo.nodeName==="BR"&&([uo,fo]=y$3(uo));const po=lo.firstChild;lo===uo&&po!=null&&po.nodeName==="BR"&&co===0&&fo===0&&(fo=1);try{ao.setStart(lo,co),ao.setEnd(uo,fo)}catch{return null}return!ao.collapsed||co===fo&&io===so||(ao.setStart(uo,fo),ao.setEnd(lo,co)),ao}function x$4(eo,to){const ro=eo.getRootElement();if(ro===null)return[];const no=ro.getBoundingClientRect(),oo=getComputedStyle(ro),io=parseFloat(oo.paddingLeft)+parseFloat(oo.paddingRight),so=Array.from(to.getClientRects());let ao,lo=so.length;so.sort((uo,co)=>{const fo=uo.top-co.top;return Math.abs(fo)<=3?uo.left-co.left:fo});for(let uo=0;uoco.top&&ao.left+ao.width>co.left,po=co.width+io===no.width;fo||po?(so.splice(uo--,1),lo--):ao=co}return so}function S$3(eo){const to={},ro=eo.split(";");for(const no of ro)if(no!==""){const[oo,io]=no.split(/:([^]+)/);oo&&io&&(to[oo.trim()]=io.trim())}return to}function N$2(eo){let to=m$4.get(eo);return to===void 0&&(to=S$3(eo),m$4.set(eo,to)),to}function E$3(eo){const to=eo.constructor.clone(eo);return to.__parent=eo.__parent,to.__next=eo.__next,to.__prev=eo.__prev,$isElementNode(eo)&&$isElementNode(to)?(no=eo,(ro=to).__first=no.__first,ro.__last=no.__last,ro.__size=no.__size,ro.__format=no.__format,ro.__indent=no.__indent,ro.__dir=no.__dir,ro):$isTextNode(eo)&&$isTextNode(to)?function(oo,io){return oo.__format=io.__format,oo.__style=io.__style,oo.__mode=io.__mode,oo.__detail=io.__detail,oo}(to,eo):to;var ro,no}function v$2(eo,to){const ro=eo.getStartEndPoints();if(to.isSelected(eo)&&!to.isSegmented()&&!to.isToken()&&ro!==null){const[no,oo]=ro,io=eo.isBackward(),so=no.getNode(),ao=oo.getNode(),lo=to.is(so),uo=to.is(ao);if(lo||uo){const[co,fo]=$getCharacterOffsets(eo),po=so.is(ao),ho=to.is(io?ao:so),mo=to.is(io?so:ao);let vo,bo=0;return po?(bo=co>fo?fo:co,vo=co>fo?co:fo):ho?(bo=io?fo:co,vo=void 0):mo&&(bo=0,vo=io?co:fo),to.__text=to.__text.slice(bo,vo),to}}return to}function C$3(eo){if(eo.type==="text")return eo.offset===eo.getNode().getTextContentSize();const to=eo.getNode();if(!$isElementNode(to))throw Error("isAtNodeEnd: node must be a TextNode or ElementNode");return eo.offset===to.getChildrenSize()}function w$2(eo,to,ro){let no=to.getNode(),oo=ro;if($isElementNode(no)){const io=no.getDescendantByIndex(to.offset);io!==null&&(no=io)}for(;oo>0&&no!==null;){if($isElementNode(no)){const uo=no.getLastDescendant();uo!==null&&(no=uo)}let io=no.getPreviousSibling(),so=0;if(io===null){let uo=no.getParentOrThrow(),co=uo.getPreviousSibling();for(;co===null;){if(uo=uo.getParent(),uo===null){io=null;break}co=uo.getPreviousSibling()}uo!==null&&(so=uo.isInline()?0:2,io=co)}let ao=no.getTextContent();ao===""&&$isElementNode(no)&&!no.isInline()&&(ao=` - -`);const lo=ao.length;if(!$isTextNode(no)||oo>=lo){const uo=no.getParent();no.remove(),uo==null||uo.getChildrenSize()!==0||$isRootNode(uo)||uo.remove(),oo-=lo+so,no=io}else{const uo=no.getKey(),co=eo.getEditorState().read(()=>{const ho=$getNodeByKey(uo);return $isTextNode(ho)&&ho.isSimpleText()?ho.getTextContent():null}),fo=lo-oo,po=ao.slice(0,fo);if(co!==null&&co!==ao){const ho=$getPreviousSelection();let mo=no;if(no.isSimpleText())no.setTextContent(co);else{const vo=$createTextNode(co);no.replace(vo),mo=vo}if($isRangeSelection(ho)&&ho.isCollapsed()){const vo=ho.anchor.offset;mo.select(vo,vo)}}else if(no.isSimpleText()){const ho=to.key===uo;let mo=to.offset;mo(ao instanceof Function?io[so]=ao(ro[so]):ao===null?delete io[so]:io[so]=ao,io),{...ro}),oo=function(io){let so="";for(const ao in io)ao&&(so+=`${ao}: ${io[ao]};`);return so}(no);eo.setStyle(oo),m$4.set(oo,no)}function I(eo,to){const ro=eo.getNodes(),no=ro.length,oo=eo.getStartEndPoints();if(oo===null)return;const[io,so]=oo,ao=no-1;let lo=ro[0],uo=ro[ao];if(eo.isCollapsed()&&$isRangeSelection(eo))return void F(eo,to);const co=lo.getTextContent().length,fo=so.offset;let po=io.offset;const ho=io.isBefore(so);let mo=ho?po:fo,vo=ho?fo:po;const bo=ho?io.type:so.type,xo=ho?so.type:io.type,_o=ho?so.key:io.key;if($isTextNode(lo)&&mo===co){const So=lo.getNextSibling();$isTextNode(So)&&(po=0,mo=0,lo=So)}if(ro.length===1){if($isTextNode(lo)&&lo.canHaveFormat()){if(mo=bo==="element"?0:po>fo?fo:po,vo=xo==="element"?co:po>fo?po:fo,mo===vo)return;if(mo===0&&vo===co)F(lo,to),lo.select(mo,vo);else{const So=lo.splitText(mo,vo),Eo=mo===0?So[0]:So[1];F(Eo,to),Eo.select(0,vo-mo)}}}else{if($isTextNode(lo)&&mofo.append(po)),ro&&(fo=ro.append(fo)),void uo.replace(fo)}let ao=null,lo=[];for(let uo=0;uo{_o.append(So),fo.add(So.getKey()),$isElementNode(So)&&So.getChildrenKeys().forEach(Eo=>fo.add(Eo))}),O$1(bo)}}else if(co.has(vo.getKey())){if(!$isElementNode(vo))throw Error("Expected node in emptyElements to be an ElementNode");const xo=no();xo.setFormat(vo.getFormatType()),xo.setIndent(vo.getIndent()),ao.push(xo),vo.remove(!0)}}if(oo!==null)for(let mo=0;mo=0;mo--){const vo=ao[mo];lo.insertAfter(vo)}else{const mo=lo.getFirstChild();if($isElementNode(mo)&&(lo=mo),mo===null)if(oo)lo.append(oo);else for(let vo=0;vo=0;mo--){const vo=ao[mo];lo.insertAfter(vo),po=vo}const ho=$getPreviousSelection();$isRangeSelection(ho)&&b$1(ho.anchor)&&b$1(ho.focus)?$setSelection(ho.clone()):po!==null?po.selectEnd():eo.dirty=!0}function z(eo,to){const ro=$getAdjacentNode(eo.focus,to);return $isDecoratorNode(ro)&&!ro.isIsolated()||$isElementNode(ro)&&!ro.isInline()&&!ro.canBeEmpty()}function A$2(eo,to,ro,no){eo.modify(to?"extend":"move",ro,no)}function R$1(eo){const to=eo.anchor.getNode();return($isRootNode(to)?to:to.getParentOrThrow()).getDirection()==="rtl"}function D$1(eo,to,ro){const no=R$1(eo);A$2(eo,to,ro?!no:no,"character")}function L$1(eo){const to=eo.anchor,ro=eo.focus,no=to.getNode().getTopLevelElementOrThrow().getParentOrThrow();let oo=no.getFirstDescendant(),io=no.getLastDescendant(),so="element",ao="element",lo=0;$isTextNode(oo)?so="text":$isElementNode(oo)||oo===null||(oo=oo.getParentOrThrow()),$isTextNode(io)?(ao="text",lo=io.getTextContentSize()):$isElementNode(io)||io===null||(io=io.getParentOrThrow()),oo&&io&&(to.set(oo.getKey(),0,so),ro.set(io.getKey(),lo,ao))}function H(eo,to,ro){const no=N$2(eo.getStyle());return no!==null&&no[to]||ro}function M$2(eo,to,ro=""){let no=null;const oo=eo.getNodes(),io=eo.anchor,so=eo.focus,ao=eo.isBackward(),lo=ao?so.offset:io.offset,uo=ao?so.getNode():io.getNode();if(eo.isCollapsed()&&eo.style!==""){const co=N$2(eo.style);if(co!==null&&to in co)return co[to]}for(let co=0;co{eo.forEach(to=>to())}}function m$3(eo){return`${eo}px`}const E$2={attributes:!0,characterData:!0,childList:!0,subtree:!0};function x$3(eo,to,ro){let no=null,oo=null,io=null,so=[];const ao=document.createElement("div");function lo(){if(no===null)throw Error("Unexpected null rootDOMNode");if(oo===null)throw Error("Unexpected null parentDOMNode");const{left:fo,top:po}=no.getBoundingClientRect(),ho=oo,mo=createRectsFromDOMRange(eo,to);ao.isConnected||ho.append(ao);let vo=!1;for(let bo=0;bomo.length;)so.pop();vo&&ro(so)}function uo(){oo=null,no=null,io!==null&&io.disconnect(),io=null,ao.remove();for(const fo of so)fo.remove();so=[]}const co=eo.registerRootListener(function fo(){const po=eo.getRootElement();if(po===null)return uo();const ho=po.parentElement;if(!(ho instanceof HTMLElement))return uo();uo(),no=po,oo=ho,io=new MutationObserver(mo=>{const vo=eo.getRootElement(),bo=vo&&vo.parentElement;if(vo!==no||bo!==oo)return fo();for(const xo of mo)if(!ao.contains(xo.target))return lo()}),io.observe(ho,E$2),lo()});return()=>{co(),uo()}}function y$2(eo,to){let ro=null,no=null,oo=null,io=null,so=()=>{};function ao(lo){lo.read(()=>{const uo=$getSelection();if(!$isRangeSelection(uo))return ro=null,no=null,oo=null,io=null,so(),void(so=()=>{});const{anchor:co,focus:fo}=uo,po=co.getNode(),ho=po.getKey(),mo=co.offset,vo=fo.getNode(),bo=vo.getKey(),xo=fo.offset,_o=eo.getElementByKey(ho),So=eo.getElementByKey(bo),Eo=ro===null||_o===null||mo!==no||ho!==ro.getKey()||po!==ro&&(!(ro instanceof TextNode)||po.updateDOM(ro,_o,eo._config)),ko=oo===null||So===null||xo!==io||bo!==oo.getKey()||vo!==oo&&(!(oo instanceof TextNode)||vo.updateDOM(oo,So,eo._config));if(Eo||ko){const wo=eo.getElementByKey(co.getNode().getKey()),Co=eo.getElementByKey(fo.getNode().getKey());if(wo!==null&&Co!==null&&wo.tagName==="SPAN"&&Co.tagName==="SPAN"){const Ro=document.createRange();let Ao,Io,$o,Bo;fo.isBefore(co)?(Ao=Co,Io=fo.offset,$o=wo,Bo=co.offset):(Ao=wo,Io=co.offset,$o=Co,Bo=fo.offset);const Mo=Ao.firstChild;if(Mo===null)throw Error("Expected text node to be first child of span");const Ho=$o.firstChild;if(Ho===null)throw Error("Expected text node to be first child of span");Ro.setStart(Mo,Io),Ro.setEnd(Ho,Bo),so(),so=x$3(eo,Ro,jo=>{for(const Oo of jo){const Fo=Oo.style;Fo.background!=="Highlight"&&(Fo.background="Highlight"),Fo.color!=="HighlightText"&&(Fo.color="HighlightText"),Fo.zIndex!=="-1"&&(Fo.zIndex="-1"),Fo.pointerEvents!=="none"&&(Fo.pointerEvents="none"),Fo.marginTop!==m$3(-1.5)&&(Fo.marginTop=m$3(-1.5)),Fo.paddingTop!==m$3(4)&&(Fo.paddingTop=m$3(4)),Fo.paddingBottom!==m$3(0)&&(Fo.paddingBottom=m$3(0))}to!==void 0&&to(jo)})}}ro=po,no=mo,oo=vo,io=xo})}return ao(eo.getEditorState()),h$2(eo.registerUpdateListener(({editorState:lo})=>ao(lo)),so,()=>{so()})}function v$1(eo,...to){const ro=p$3(...to);ro.length>0&&eo.classList.add(...ro)}function N$1(eo,...to){const ro=p$3(...to);ro.length>0&&eo.classList.remove(...ro)}function w$1(eo,to){for(const ro of to)if(eo.type.startsWith(ro))return!0;return!1}function L(eo,to){const ro=eo[Symbol.iterator]();return new Promise((no,oo)=>{const io=[],so=()=>{const{done:ao,value:lo}=ro.next();if(ao)return no(io);const uo=new FileReader;uo.addEventListener("error",oo),uo.addEventListener("load",()=>{const co=uo.result;typeof co=="string"&&io.push({file:lo,result:co}),so()}),w$1(lo,to)?uo.readAsDataURL(lo):so()};so()})}function T$1(eo,to){const ro=[],no=(eo||$getRoot()).getLatest(),oo=to||($isElementNode(no)?no.getLastDescendant():no);let io=no,so=function(ao){let lo=ao,uo=0;for(;(lo=lo.getParent())!==null;)uo++;return uo}(io);for(;io!==null&&!io.is(oo);)if(ro.push({depth:so,node:io}),$isElementNode(io)&&io.getChildrenSize()>0)io=io.getFirstChild(),so++;else{let ao=null;for(;ao===null&&io!==null;)ao=io.getNextSibling(),ao===null?(io=io.getParent(),so--):io=ao}return io!==null&&io.is(oo)&&ro.push({depth:so,node:io}),ro}function b(eo,to){let ro=eo;for(;ro!=null;){if(ro instanceof to)return ro;ro=ro.getParent()}return null}function S$2(eo){const to=_$3(eo,ro=>$isElementNode(ro)&&!ro.isInline());return $isElementNode(to)||g$5(4,eo.__key),to}const _$3=(eo,to)=>{let ro=eo;for(;ro!==$getRoot()&&ro!=null;){if(to(ro))return ro;ro=ro.getParent()}return null};function B(eo,to,ro,no){const oo=io=>io instanceof to;return eo.registerNodeTransform(to,io=>{const so=(ao=>{const lo=ao.getChildren();for(let fo=0;fo0&&(so+=1,no.splitText(oo))):(io=no,so=oo);const[,ao]=$splitNode(io,so);ao.insertBefore(eo),ao.selectStart()}}else{if(to!=null){const no=to.getNodes();no[no.length-1].getTopLevelElementOrThrow().insertAfter(eo)}else $getRoot().append(eo);const ro=$createParagraphNode();eo.insertAfter(ro),ro.select()}return eo.getLatest()}function A$1(eo,to){const ro=to();return eo.replace(ro),ro.append(eo),ro}function C$2(eo,to){return eo!==null&&Object.getPrototypeOf(eo).constructor.name===to.name}function K(eo,to){const ro=[];for(let no=0;no({conversion:a$3,priority:1})}}static importJSON(to){const ro=g$4(to.url,{rel:to.rel,target:to.target,title:to.title});return ro.setFormat(to.format),ro.setIndent(to.indent),ro.setDirection(to.direction),ro}sanitizeUrl(to){try{const ro=new URL(to);if(!o$4.has(ro.protocol))return"about:blank"}catch{return to}return to}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(to){this.getWritable().__url=to}getTarget(){return this.getLatest().__target}setTarget(to){this.getWritable().__target=to}getRel(){return this.getLatest().__rel}setRel(to){this.getWritable().__rel=to}getTitle(){return this.getLatest().__title}setTitle(to){this.getWritable().__title=to}insertNewAfter(to,ro=!0){const no=g$4(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(no,ro),no}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(to,ro,no){if(!$isRangeSelection(ro))return!1;const oo=ro.anchor.getNode(),io=ro.focus.getNode();return this.isParentOf(oo)&&this.isParentOf(io)&&ro.getTextContent().length>0}};function a$3(eo){let to=null;if(isHTMLAnchorElement(eo)){const ro=eo.textContent;(ro!==null&&ro!==""||eo.children.length>0)&&(to=g$4(eo.getAttribute("href")||"",{rel:eo.getAttribute("rel"),target:eo.getAttribute("target"),title:eo.getAttribute("title")}))}return{node:to}}function g$4(eo,to){return $applyNodeReplacement(new _$2(eo,to))}function c$4(eo){return eo instanceof _$2}let h$1=class c_ extends _$2{static getType(){return"autolink"}static clone(to){return new c_(to.__url,{rel:to.__rel,target:to.__target,title:to.__title},to.__key)}static importJSON(to){const ro=f$3(to.url,{rel:to.rel,target:to.target,title:to.title});return ro.setFormat(to.format),ro.setIndent(to.indent),ro.setDirection(to.direction),ro}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),type:"autolink",version:1}}insertNewAfter(to,ro=!0){const no=this.getParentOrThrow().insertNewAfter(to,ro);if($isElementNode(no)){const oo=f$3(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return no.append(oo),oo}return null}};function f$3(eo,to){return $applyNodeReplacement(new h$1(eo,to))}function p$2(eo){return eo instanceof h$1}const d$3=createCommand("TOGGLE_LINK_COMMAND");function m$2(eo,to={}){const{target:ro,title:no}=to,oo=to.rel===void 0?"noreferrer":to.rel,io=$getSelection();if(!$isRangeSelection(io))return;const so=io.extract();if(eo===null)so.forEach(ao=>{const lo=ao.getParent();if(c$4(lo)){const uo=lo.getChildren();for(let co=0;co{const co=uo.getParent();if(co!==lo&&co!==null&&(!$isElementNode(uo)||uo.isInline())){if(c$4(co))return lo=co,co.setURL(eo),ro!==void 0&&co.setTarget(ro),oo!==null&&lo.setRel(oo),void(no!==void 0&&lo.setTitle(no));if(co.is(ao)||(ao=co,lo=g$4(eo,{rel:oo,target:ro,title:no}),c$4(co)?uo.getPreviousSibling()===null?co.insertBefore(lo):co.insertAfter(lo):uo.insertBefore(lo)),c$4(uo)){if(uo.is(lo))return;if(lo!==null){const fo=uo.getChildren();for(let po=0;po{const{theme:no,namespace:oo,editor__DEPRECATED:io,nodes:so,onError:ao,editorState:lo,html:uo}=eo,co=createLexicalComposerContext(null,no);let fo=io||null;if(fo===null){const po=createEditor({editable:eo.editable,html:uo,namespace:oo,nodes:so,onError:ho=>ao(ho,po),theme:no});(function(ho,mo){if(mo!==null){if(mo===void 0)ho.update(()=>{const vo=$getRoot();if(vo.isEmpty()){const bo=$createParagraphNode();vo.append(bo);const xo=d$2?document.activeElement:null;($getSelection()!==null||xo!==null&&xo===ho.getRootElement())&&bo.select()}},u$4);else if(mo!==null)switch(typeof mo){case"string":{const vo=ho.parseEditorState(mo);ho.setEditorState(vo,u$4);break}case"object":ho.setEditorState(mo,u$4);break;case"function":ho.update(()=>{$getRoot().isEmpty()&&mo(ho)},u$4)}}})(po,lo),fo=po}return[fo,co]},[]);return m$1(()=>{const no=eo.editable,[oo]=ro;oo.setEditable(no===void 0||no)},[]),reactExports.createElement(LexicalComposerContext.Provider,{value:ro},to)}const modProd$d=Object.freeze(Object.defineProperty({__proto__:null,LexicalComposer:f$2},Symbol.toStringTag,{value:"Module"})),mod$d=modProd$d,LexicalComposer=mod$d.LexicalComposer;function n$1(){return n$1=Object.assign?Object.assign.bind():function(eo){for(var to=1;to{Co&&Co.ownerDocument&&Co.ownerDocument.defaultView&&So.setRootElement(Co)},[So]);return d$1(()=>(ko(So.isEditable()),So.registerEditableListener(Co=>{ko(Co)})),[So]),reactExports.createElement("div",n$1({},_o,{"aria-activedescendant":Eo?eo:void 0,"aria-autocomplete":Eo?to:"none","aria-controls":Eo?ro:void 0,"aria-describedby":no,"aria-expanded":Eo&&ho==="combobox"?!!oo:void 0,"aria-label":io,"aria-labelledby":so,"aria-multiline":ao,"aria-owns":Eo?lo:void 0,"aria-readonly":!Eo||void 0,"aria-required":uo,autoCapitalize:co,className:fo,contentEditable:Eo,"data-testid":xo,id:po,ref:wo,role:ho,spellCheck:mo,style:vo,tabIndex:bo}))}const modProd$c=Object.freeze(Object.defineProperty({__proto__:null,ContentEditable:l$1},Symbol.toStringTag,{value:"Module"})),mod$c=modProd$c,ContentEditable=mod$c.ContentEditable;function e(eo,to){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ro,no){return ro.__proto__=no,ro},e(eo,to)}var t$1={error:null},o$2=function(eo){var to,ro;function no(){for(var io,so=arguments.length,ao=new Array(so),lo=0;lo1){const xo=to._nodeMap,_o=xo.get(io.anchor.key),So=xo.get(so.anchor.key);return _o&&So&&!eo._nodeMap.has(_o.__key)&&$isTextNode(_o)&&_o.__text.length===1&&io.anchor.offset===1?m:p$1}const lo=ao[0],uo=eo._nodeMap.get(lo.__key);if(!$isTextNode(uo)||!$isTextNode(lo)||uo.__mode!==lo.__mode)return p$1;const co=uo.__text,fo=lo.__text;if(co===fo)return p$1;const po=io.anchor,ho=so.anchor;if(po.key!==ho.key||po.type!=="text")return p$1;const mo=po.offset,vo=ho.offset,bo=fo.length-co.length;return bo===1&&vo===mo-1?m:bo===-1&&vo===mo+1?g$3:bo===-1&&vo===mo?y$1:p$1}function k(eo,to){let ro=Date.now(),no=p$1;return(oo,io,so,ao,lo,uo)=>{const co=Date.now();if(uo.has("historic"))return no=p$1,ro=co,f$1;const fo=S$1(oo,io,ao,lo,eo.isComposing()),po=(()=>{const ho=so===null||so.editor===eo,mo=uo.has("history-push");if(!mo&&ho&&uo.has("history-merge"))return l;if(oo===null)return _$1;const vo=io._selection;return ao.size>0||lo.size>0?mo===!1&&fo!==p$1&&fo===no&&co{const po=to.current,ho=to.redoStack,mo=to.undoStack,vo=po===null?null:po.editorState;if(po!==null&&ao===vo)return;const bo=no(lo,ao,po,uo,co,fo);if(bo===_$1)ho.length!==0&&(to.redoStack=[],eo.dispatchCommand(CAN_REDO_COMMAND,!1)),po!==null&&(mo.push({...po}),eo.dispatchCommand(CAN_UNDO_COMMAND,!0));else if(bo===f$1)return;to.current={editor:eo,editorState:ao}},io=mergeRegister(eo.registerCommand(UNDO_COMMAND,()=>(function(ao,lo){const uo=lo.redoStack,co=lo.undoStack;if(co.length!==0){const fo=lo.current,po=co.pop();fo!==null&&(uo.push(fo),ao.dispatchCommand(CAN_REDO_COMMAND,!0)),co.length===0&&ao.dispatchCommand(CAN_UNDO_COMMAND,!1),lo.current=po||null,po&&po.editor.setEditorState(po.editorState,{tag:"historic"})}}(eo,to),!0),COMMAND_PRIORITY_EDITOR),eo.registerCommand(REDO_COMMAND,()=>(function(ao,lo){const uo=lo.redoStack,co=lo.undoStack;if(uo.length!==0){const fo=lo.current;fo!==null&&(co.push(fo),ao.dispatchCommand(CAN_UNDO_COMMAND,!0));const po=uo.pop();uo.length===0&&ao.dispatchCommand(CAN_REDO_COMMAND,!1),lo.current=po||null,po&&po.editor.setEditorState(po.editorState,{tag:"historic"})}}(eo,to),!0),COMMAND_PRIORITY_EDITOR),eo.registerCommand(CLEAR_EDITOR_COMMAND,()=>(C$1(to),!1),COMMAND_PRIORITY_EDITOR),eo.registerCommand(CLEAR_HISTORY_COMMAND,()=>(C$1(to),eo.dispatchCommand(CAN_REDO_COMMAND,!1),eo.dispatchCommand(CAN_UNDO_COMMAND,!1),!0),COMMAND_PRIORITY_EDITOR),eo.registerUpdateListener(oo)),so=eo.registerUpdateListener(oo);return()=>{io(),so()}}function M(){return{current:null,redoStack:[],undoStack:[]}}const modProd$a=Object.freeze(Object.defineProperty({__proto__:null,createEmptyHistoryState:M,registerHistory:x$2},Symbol.toStringTag,{value:"Module"})),mod$a=modProd$a,createEmptyHistoryState=mod$a.createEmptyHistoryState,registerHistory=mod$a.registerHistory;function c$3({externalHistoryState:eo}){const[to]=useLexicalComposerContext();return function(ro,no,oo=1e3){const io=reactExports.useMemo(()=>no||createEmptyHistoryState(),[no]);reactExports.useEffect(()=>registerHistory(ro,io,oo),[oo,ro,io])}(to,eo),null}const modProd$9=Object.freeze(Object.defineProperty({__proto__:null,HistoryPlugin:c$3,createEmptyHistoryState},Symbol.toStringTag,{value:"Module"})),mod$9=modProd$9,HistoryPlugin=mod$9.HistoryPlugin;var o$1=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?reactExports.useLayoutEffect:reactExports.useEffect;function i$1({ignoreHistoryMergeTagChange:eo=!0,ignoreSelectionChange:to=!1,onChange:ro}){const[no]=useLexicalComposerContext();return o$1(()=>{if(ro)return no.registerUpdateListener(({editorState:oo,dirtyElements:io,dirtyLeaves:so,prevEditorState:ao,tags:lo})=>{to&&io.size===0&&so.size===0||eo&&lo.has("history-merge")||ao.isEmpty()||ro(oo,no,lo)})},[no,eo,to,ro]),null}const modProd$8=Object.freeze(Object.defineProperty({__proto__:null,OnChangePlugin:i$1},Symbol.toStringTag,{value:"Module"})),mod$8=modProd$8,OnChangePlugin=mod$8.OnChangePlugin;var u$3=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?reactExports.useLayoutEffect:reactExports.useEffect;function c$2(eo){return{initialValueFn:()=>eo.isEditable(),subscribe:to=>eo.registerEditableListener(to)}}function a$2(){return function(eo){const[to]=useLexicalComposerContext(),ro=reactExports.useMemo(()=>eo(to),[to,eo]),no=reactExports.useRef(ro.initialValueFn()),[oo,io]=reactExports.useState(no.current);return u$3(()=>{const{initialValueFn:so,subscribe:ao}=ro,lo=so();return no.current!==lo&&(no.current=lo,io(lo)),ao(uo=>{no.current=uo,io(uo)})},[ro,eo]),oo}(c$2)}const modProd$7=Object.freeze(Object.defineProperty({__proto__:null,default:a$2},Symbol.toStringTag,{value:"Module"})),mod$7=modProd$7,t=mod$7.default;function s$1(eo,to){let ro=eo.getFirstChild(),no=0;e:for(;ro!==null;){if($isElementNode(ro)){const so=ro.getFirstChild();if(so!==null){ro=so;continue}}else if($isTextNode(ro)){const so=ro.getTextContentSize();if(no+so>to)return{node:ro,offset:to-no};no+=so}const oo=ro.getNextSibling();if(oo!==null){ro=oo;continue}let io=ro.getParent();for(;io!==null;){const so=io.getNextSibling();if(so!==null){ro=so;continue e}io=io.getParent()}break}return null}function u$2(eo,to=!0){if(eo)return!1;let ro=c$1();return to&&(ro=ro.trim()),ro===""}function f(eo,to){return()=>u$2(eo,to)}function c$1(){return $getRoot().getTextContent()}function g$2(eo){if(!u$2(eo,!1))return!1;const to=$getRoot().getChildren(),ro=to.length;if(ro>1)return!1;for(let no=0;nog$2(eo)}function a$1(eo,to,ro,no){const oo=so=>so instanceof ro,io=so=>{const ao=$createTextNode(so.getTextContent());ao.setFormat(so.getFormat()),so.replace(ao)};return[eo.registerNodeTransform(TextNode,so=>{if(!so.isSimpleText())return;const ao=so.getPreviousSibling();let lo,uo=so.getTextContent(),co=so;if($isTextNode(ao)){const fo=ao.getTextContent(),po=to(fo+uo);if(oo(ao)){if(po===null||(ho=>ho.getLatest().__mode)(ao)!==0)return void io(ao);{const ho=po.end-fo.length;if(ho>0){const mo=fo+uo.slice(0,ho);if(ao.select(),ao.setTextContent(mo),ho===uo.length)so.remove();else{const vo=uo.slice(ho);so.setTextContent(vo)}return}}}else if(po===null||po.start{const ao=so.getTextContent(),lo=to(ao);if(lo===null||lo.start!==0)return void io(so);if(ao.length>lo.end)return void so.splitText(lo.end);const uo=so.getPreviousSibling();$isTextNode(uo)&&uo.isTextEntity()&&(io(uo),io(so));const co=so.getNextSibling();$isTextNode(co)&&co.isTextEntity()&&(io(co),oo(so)&&io(so))})]}const modProd$6=Object.freeze(Object.defineProperty({__proto__:null,$canShowPlaceholder:g$2,$canShowPlaceholderCurry:x$1,$findTextIntersectionFromCharacters:s$1,$isRootTextContentEmpty:u$2,$isRootTextContentEmptyCurry:f,$rootTextContent:c$1,registerLexicalTextEntity:a$1},Symbol.toStringTag,{value:"Module"})),mod$6=modProd$6,$canShowPlaceholderCurry=mod$6.$canShowPlaceholderCurry;function o(eo){const to=window.location.origin,ro=no=>{if(no.origin!==to)return;const oo=eo.getRootElement();if(document.activeElement!==oo)return;const io=no.data;if(typeof io=="string"){let so;try{so=JSON.parse(io)}catch{return}if(so&&so.protocol==="nuanria_messaging"&&so.type==="request"){const ao=so.payload;if(ao&&ao.functionId==="makeChanges"){const lo=ao.args;if(lo){const[uo,co,fo,po,ho,mo]=lo;eo.update(()=>{const vo=$getSelection();if($isRangeSelection(vo)){const bo=vo.anchor;let xo=bo.getNode(),_o=0,So=0;if($isTextNode(xo)&&uo>=0&&co>=0&&(_o=uo,So=uo+co,vo.setTextNodeRange(xo,_o,xo,So)),_o===So&&fo===""||(vo.insertRawText(fo),xo=bo.getNode()),$isTextNode(xo)){_o=po,So=po+ho;const Eo=xo.getTextContentSize();_o=_o>Eo?Eo:_o,So=So>Eo?Eo:So,vo.setTextNodeRange(xo,_o,xo,So)}no.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",ro,!0),()=>{window.removeEventListener("message",ro,!0)}}const modProd$5=Object.freeze(Object.defineProperty({__proto__:null,registerDragonSupport:o},Symbol.toStringTag,{value:"Module"})),mod$5=modProd$5,registerDragonSupport=mod$5.registerDragonSupport;function i(eo,to){const ro=to.body?to.body.childNodes:[];let no=[];for(let oo=0;oo"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 ro=document.createElement("div"),no=$getRoot().getChildren();for(let oo=0;oow?(eo||window).getSelection():null;function v(eo){const to=$getSelection();if(to==null)throw Error("Expected valid LexicalSelection");return $isRangeSelection(to)&&to.isCollapsed()||to.getNodes().length===0?"":$generateHtmlFromNodes(eo,to)}function D(eo){const to=$getSelection();if(to==null)throw Error("Expected valid LexicalSelection");return $isRangeSelection(to)&&to.isCollapsed()||to.getNodes().length===0?null:JSON.stringify(T(eo,to))}function C(eo,to){const ro=eo.getData("text/plain")||eo.getData("text/uri-list");ro!=null&&to.insertRawText(ro)}function E$1(eo,to,ro){const no=eo.getData("application/x-lexical-editor");if(no)try{const so=JSON.parse(no);if(so.namespace===ro._config.namespace&&Array.isArray(so.nodes))return N(ro,_(so.nodes),to)}catch{}const oo=eo.getData("text/html");if(oo)try{const so=new DOMParser().parseFromString(oo,"text/html");return N(ro,$generateNodesFromDOM(ro,so),to)}catch{}const io=eo.getData("text/plain")||eo.getData("text/uri-list");if(io!=null)if($isRangeSelection(to)){const so=io.split(/(\r?\n|\t)/);so[so.length-1]===""&&so.pop();for(let ao=0;ao0?lo.text=uo:oo=!1}for(let uo=0;uo{eo.update(()=>{ao(P(eo,to))})});const ro=eo.getRootElement(),no=eo._window==null?window.document:eo._window.document,oo=y(eo._window);if(ro===null||oo===null)return!1;const io=no.createElement("span");io.style.cssText="position: fixed; top: -1000px;",io.append(no.createTextNode("#")),ro.append(io);const so=new Range;return so.setStart(io,0),so.setEnd(io,1),oo.removeAllRanges(),oo.addRange(so),new Promise((ao,lo)=>{const uo=eo.registerCommand(COPY_COMMAND,co=>(objectKlassEquals(co,ClipboardEvent)&&(uo(),A!==null&&(window.clearTimeout(A),A=null),ao(P(eo,co))),!0),COMMAND_PRIORITY_CRITICAL);A=window.setTimeout(()=>{uo(),A=null,ao(!1)},50),no.execCommand("copy"),io.remove()})}function P(eo,to){const ro=y(eo._window);if(!ro)return!1;const no=ro.anchorNode,oo=ro.focusNode;if(no!==null&&oo!==null&&!isSelectionWithinEditor(eo,no,oo))return!1;to.preventDefault();const io=to.clipboardData,so=$getSelection();if(io===null||so===null)return!1;const ao=v(eo),lo=D(eo);let uo="";return so!==null&&(uo=so.getTextContent()),ao!==null&&io.setData("text/html",ao),lo!==null&&io.setData("application/x-lexical-editor",lo),io.setData("text/plain",uo),!0}const modProd$3=Object.freeze(Object.defineProperty({__proto__:null,$generateJSONFromSelectedNodes:T,$generateNodesFromSerializedNodes:_,$getHtmlContent:v,$getLexicalContent:D,$insertDataTransferForPlainText:C,$insertDataTransferForRichText:E$1,$insertGeneratedNodes:N,copyToClipboard:R},Symbol.toStringTag,{value:"Module"})),mod$3=modProd$3,$insertDataTransferForRichText=mod$3.$insertDataTransferForRichText,copyToClipboard=mod$3.copyToClipboard;function st(eo,to){if(document.caretRangeFromPoint!==void 0){const ro=document.caretRangeFromPoint(eo,to);return ro===null?null:{node:ro.startContainer,offset:ro.startOffset}}if(document.caretPositionFromPoint!=="undefined"){const ro=document.caretPositionFromPoint(eo,to);return ro===null?null:{node:ro.offsetNode,offset:ro.offset}}return null}const at=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,ct=at&&"documentMode"in document?document.documentMode:null,ut=!(!at||!("InputEvent"in window)||ct)&&"getTargetRanges"in new window.InputEvent("input"),lt=at&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),dt=at&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,mt=at&&/^(?=.*Chrome).*/i.test(navigator.userAgent),ft=at&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!mt,gt=createCommand("DRAG_DROP_PASTE_FILE");class pt extends ElementNode{static getType(){return"quote"}static clone(to){return new pt(to.__key)}constructor(to){super(to)}createDOM(to){const ro=document.createElement("blockquote");return addClassNamesToElement(ro,to.theme.quote),ro}updateDOM(to,ro){return!1}static importDOM(){return{blockquote:to=>({conversion:xt,priority:0})}}exportDOM(to){const{element:ro}=super.exportDOM(to);if(ro&&isHTMLElement$1(ro)){this.isEmpty()&&ro.append(document.createElement("br"));const no=this.getFormatType();ro.style.textAlign=no;const oo=this.getDirection();oo&&(ro.dir=oo)}return{element:ro}}static importJSON(to){const ro=ht();return ro.setFormat(to.format),ro.setIndent(to.indent),ro.setDirection(to.direction),ro}exportJSON(){return{...super.exportJSON(),type:"quote"}}insertNewAfter(to,ro){const no=$createParagraphNode(),oo=this.getDirection();return no.setDirection(oo),this.insertAfter(no,ro),no}collapseAtStart(){const to=$createParagraphNode();return this.getChildren().forEach(ro=>to.append(ro)),this.replace(to),!0}}function ht(){return $applyNodeReplacement(new pt)}function vt(eo){return eo instanceof pt}class Ct extends ElementNode{static getType(){return"heading"}static clone(to){return new Ct(to.__tag,to.__key)}constructor(to,ro){super(ro),this.__tag=to}getTag(){return this.__tag}createDOM(to){const ro=this.__tag,no=document.createElement(ro),oo=to.theme.heading;if(oo!==void 0){const io=oo[ro];addClassNamesToElement(no,io)}return no}updateDOM(to,ro){return!1}static importDOM(){return{h1:to=>({conversion:Dt,priority:0}),h2:to=>({conversion:Dt,priority:0}),h3:to=>({conversion:Dt,priority:0}),h4:to=>({conversion:Dt,priority:0}),h5:to=>({conversion:Dt,priority:0}),h6:to=>({conversion:Dt,priority:0}),p:to=>{const ro=to.firstChild;return ro!==null&&yt(ro)?{conversion:()=>({node:null}),priority:3}:null},span:to=>yt(to)?{conversion:ro=>({node:wt("h1")}),priority:3}:null}}exportDOM(to){const{element:ro}=super.exportDOM(to);if(ro&&isHTMLElement$1(ro)){this.isEmpty()&&ro.append(document.createElement("br"));const no=this.getFormatType();ro.style.textAlign=no;const oo=this.getDirection();oo&&(ro.dir=oo)}return{element:ro}}static importJSON(to){const ro=wt(to.tag);return ro.setFormat(to.format),ro.setIndent(to.indent),ro.setDirection(to.direction),ro}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),type:"heading",version:1}}insertNewAfter(to,ro=!0){const no=to?to.anchor.offset:0,oo=no!==this.getTextContentSize()&&to?wt(this.getTag()):$createParagraphNode(),io=this.getDirection();if(oo.setDirection(io),this.insertAfter(oo,ro),no===0&&!this.isEmpty()&&to){const so=$createParagraphNode();so.select(),this.replace(so,!0)}return oo}collapseAtStart(){const to=this.isEmpty()?$createParagraphNode():wt(this.getTag());return this.getChildren().forEach(ro=>to.append(ro)),this.replace(to),!0}extractWithChild(){return!0}}function yt(eo){return eo.nodeName.toLowerCase()==="span"&&eo.style.fontSize==="26pt"}function Dt(eo){const to=eo.nodeName.toLowerCase();let ro=null;return to!=="h1"&&to!=="h2"&&to!=="h3"&&to!=="h4"&&to!=="h5"&&to!=="h6"||(ro=wt(to),eo.style!==null&&ro.setFormat(eo.style.textAlign)),{node:ro}}function xt(eo){const to=ht();return eo.style!==null&&to.setFormat(eo.style.textAlign),{node:to}}function wt(eo){return $applyNodeReplacement(new Ct(eo))}function Et(eo){return eo instanceof Ct}function Nt(eo){let to=null;if(objectKlassEquals(eo,DragEvent)?to=eo.dataTransfer:objectKlassEquals(eo,ClipboardEvent)&&(to=eo.clipboardData),to===null)return[!1,[],!1];const ro=to.types,no=ro.includes("Files"),oo=ro.includes("text/html")||ro.includes("text/plain");return[no,Array.from(to.files),oo]}function At(eo){const to=$getSelection();if(!$isRangeSelection(to))return!1;const ro=new Set,no=to.getNodes();for(let oo=0;oo0}function Pt(eo){const to=$getNearestNodeFromDOMNode(eo);return $isDecoratorNode(to)}function Ot(eo){return mergeRegister(eo.registerCommand(CLICK_COMMAND,to=>{const ro=$getSelection();return!!$isNodeSelection(ro)&&(ro.clear(),!0)},0),eo.registerCommand(DELETE_CHARACTER_COMMAND,to=>{const ro=$getSelection();return!!$isRangeSelection(ro)&&(ro.deleteCharacter(to),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(DELETE_WORD_COMMAND,to=>{const ro=$getSelection();return!!$isRangeSelection(ro)&&(ro.deleteWord(to),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(DELETE_LINE_COMMAND,to=>{const ro=$getSelection();return!!$isRangeSelection(ro)&&(ro.deleteLine(to),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(CONTROLLED_TEXT_INSERTION_COMMAND,to=>{const ro=$getSelection();if(typeof to=="string")ro!==null&&ro.insertText(to);else{if(ro===null)return!1;const no=to.dataTransfer;if(no!=null)$insertDataTransferForRichText(no,ro,eo);else if($isRangeSelection(ro)){const oo=to.data;return oo&&ro.insertText(oo),!0}}return!0},COMMAND_PRIORITY_EDITOR),eo.registerCommand(REMOVE_TEXT_COMMAND,()=>{const to=$getSelection();return!!$isRangeSelection(to)&&(to.removeText(),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(FORMAT_TEXT_COMMAND,to=>{const ro=$getSelection();return!!$isRangeSelection(ro)&&(ro.formatText(to),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(FORMAT_ELEMENT_COMMAND,to=>{const ro=$getSelection();if(!$isRangeSelection(ro)&&!$isNodeSelection(ro))return!1;const no=ro.getNodes();for(const oo of no){const io=$findMatchingParent(oo,so=>$isElementNode(so)&&!so.isInline());io!==null&&io.setFormat(to)}return!0},COMMAND_PRIORITY_EDITOR),eo.registerCommand(INSERT_LINE_BREAK_COMMAND,to=>{const ro=$getSelection();return!!$isRangeSelection(ro)&&(ro.insertLineBreak(to),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(INSERT_PARAGRAPH_COMMAND,()=>{const to=$getSelection();return!!$isRangeSelection(to)&&(to.insertParagraph(),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(INSERT_TAB_COMMAND,()=>($insertNodes([$createTabNode()]),!0),COMMAND_PRIORITY_EDITOR),eo.registerCommand(INDENT_CONTENT_COMMAND,()=>At(to=>{const ro=to.getIndent();to.setIndent(ro+1)}),COMMAND_PRIORITY_EDITOR),eo.registerCommand(OUTDENT_CONTENT_COMMAND,()=>At(to=>{const ro=to.getIndent();ro>0&&to.setIndent(ro-1)}),COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_ARROW_UP_COMMAND,to=>{const ro=$getSelection();if($isNodeSelection(ro)&&!Pt(to.target)){const no=ro.getNodes();if(no.length>0)return no[0].selectPrevious(),!0}else if($isRangeSelection(ro)){const no=$getAdjacentNode(ro.focus,!0);if(!to.shiftKey&&$isDecoratorNode(no)&&!no.isIsolated()&&!no.isInline())return no.selectPrevious(),to.preventDefault(),!0}return!1},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_ARROW_DOWN_COMMAND,to=>{const ro=$getSelection();if($isNodeSelection(ro)){const no=ro.getNodes();if(no.length>0)return no[0].selectNext(0,0),!0}else if($isRangeSelection(ro)){if(function(oo){const io=oo.focus;return io.key==="root"&&io.offset===$getRoot().getChildrenSize()}(ro))return to.preventDefault(),!0;const no=$getAdjacentNode(ro.focus,!1);if(!to.shiftKey&&$isDecoratorNode(no)&&!no.isIsolated()&&!no.isInline())return no.selectNext(),to.preventDefault(),!0}return!1},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_ARROW_LEFT_COMMAND,to=>{const ro=$getSelection();if($isNodeSelection(ro)){const no=ro.getNodes();if(no.length>0)return to.preventDefault(),no[0].selectPrevious(),!0}if(!$isRangeSelection(ro))return!1;if($shouldOverrideDefaultCharacterSelection(ro,!0)){const no=to.shiftKey;return to.preventDefault(),$moveCharacter(ro,no,!0),!0}return!1},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_ARROW_RIGHT_COMMAND,to=>{const ro=$getSelection();if($isNodeSelection(ro)&&!Pt(to.target)){const oo=ro.getNodes();if(oo.length>0)return to.preventDefault(),oo[0].selectNext(0,0),!0}if(!$isRangeSelection(ro))return!1;const no=to.shiftKey;return!!$shouldOverrideDefaultCharacterSelection(ro,!1)&&(to.preventDefault(),$moveCharacter(ro,no,!1),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_BACKSPACE_COMMAND,to=>{if(Pt(to.target))return!1;const ro=$getSelection();if(!$isRangeSelection(ro))return!1;to.preventDefault();const{anchor:no}=ro,oo=no.getNode();return ro.isCollapsed()&&no.offset===0&&!$isRootNode(oo)&&$getNearestBlockElementAncestorOrThrow(oo).getIndent()>0?eo.dispatchCommand(OUTDENT_CONTENT_COMMAND,void 0):eo.dispatchCommand(DELETE_CHARACTER_COMMAND,!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_DELETE_COMMAND,to=>{if(Pt(to.target))return!1;const ro=$getSelection();return!!$isRangeSelection(ro)&&(to.preventDefault(),eo.dispatchCommand(DELETE_CHARACTER_COMMAND,!1))},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_ENTER_COMMAND,to=>{const ro=$getSelection();if(!$isRangeSelection(ro))return!1;if(to!==null){if((dt||lt||ft)&&ut)return!1;if(to.preventDefault(),to.shiftKey)return eo.dispatchCommand(INSERT_LINE_BREAK_COMMAND,!1)}return eo.dispatchCommand(INSERT_PARAGRAPH_COMMAND,void 0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_ESCAPE_COMMAND,()=>{const to=$getSelection();return!!$isRangeSelection(to)&&(eo.blur(),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(DROP_COMMAND,to=>{const[,ro]=Nt(to);if(ro.length>0){const oo=st(to.clientX,to.clientY);if(oo!==null){const{offset:io,node:so}=oo,ao=$getNearestNodeFromDOMNode(so);if(ao!==null){const lo=$createRangeSelection();if($isTextNode(ao))lo.anchor.set(ao.getKey(),io,"text"),lo.focus.set(ao.getKey(),io,"text");else{const co=ao.getParentOrThrow().getKey(),fo=ao.getIndexWithinParent()+1;lo.anchor.set(co,fo,"element"),lo.focus.set(co,fo,"element")}const uo=$normalizeSelection__EXPERIMENTAL(lo);$setSelection(uo)}eo.dispatchCommand(gt,ro)}return to.preventDefault(),!0}const no=$getSelection();return!!$isRangeSelection(no)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(DRAGSTART_COMMAND,to=>{const[ro]=Nt(to),no=$getSelection();return!(ro&&!$isRangeSelection(no))},COMMAND_PRIORITY_EDITOR),eo.registerCommand(DRAGOVER_COMMAND,to=>{const[ro]=Nt(to),no=$getSelection();if(ro&&!$isRangeSelection(no))return!1;const oo=st(to.clientX,to.clientY);if(oo!==null){const io=$getNearestNodeFromDOMNode(oo.node);$isDecoratorNode(io)&&to.preventDefault()}return!0},COMMAND_PRIORITY_EDITOR),eo.registerCommand(SELECT_ALL_COMMAND,()=>($selectAll(),!0),COMMAND_PRIORITY_EDITOR),eo.registerCommand(COPY_COMMAND,to=>(copyToClipboard(eo,objectKlassEquals(to,ClipboardEvent)?to:null),!0),COMMAND_PRIORITY_EDITOR),eo.registerCommand(CUT_COMMAND,to=>(async function(ro,no){await copyToClipboard(no,objectKlassEquals(ro,ClipboardEvent)?ro:null),no.update(()=>{const oo=$getSelection();$isRangeSelection(oo)?oo.removeText():$isNodeSelection(oo)&&oo.getNodes().forEach(io=>io.remove())})}(to,eo),!0),COMMAND_PRIORITY_EDITOR),eo.registerCommand(PASTE_COMMAND,to=>{const[,ro,no]=Nt(to);return ro.length>0&&!no?(eo.dispatchCommand(gt,ro),!0):isSelectionCapturedInDecoratorInput(to.target)?!1:$getSelection()!==null&&(function(oo,io){oo.preventDefault(),io.update(()=>{const so=$getSelection(),ao=objectKlassEquals(oo,InputEvent)||objectKlassEquals(oo,KeyboardEvent)?null:oo.clipboardData;ao!=null&&so!==null&&$insertDataTransferForRichText(ao,so,io)},{tag:"paste"})}(to,eo),!0)},COMMAND_PRIORITY_EDITOR))}const modProd$2=Object.freeze(Object.defineProperty({__proto__:null,$createHeadingNode:wt,$createQuoteNode:ht,$isHeadingNode:Et,$isQuoteNode:vt,DRAG_DROP_PASTE:gt,HeadingNode:Ct,QuoteNode:pt,eventFiles:Nt,registerRichText:Ot},Symbol.toStringTag,{value:"Module"})),mod$2=modProd$2,DRAG_DROP_PASTE=mod$2.DRAG_DROP_PASTE,eventFiles=mod$2.eventFiles,registerRichText=mod$2.registerRichText;var p=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?reactExports.useLayoutEffect:reactExports.useEffect;function E(eo){return eo.getEditorState().read($canShowPlaceholderCurry(eo.isComposing()))}function x({contentEditable:eo,placeholder:to,ErrorBoundary:ro}){const[no]=useLexicalComposerContext(),oo=function(io,so){const[ao,lo]=reactExports.useState(()=>io.getDecorators());return p(()=>io.registerDecoratorListener(uo=>{reactDomExports.flushSync(()=>{lo(uo)})}),[io]),reactExports.useEffect(()=>{lo(io.getDecorators())},[io]),reactExports.useMemo(()=>{const uo=[],co=Object.keys(ao);for(let fo=0;foio._onError(vo)},reactExports.createElement(reactExports.Suspense,{fallback:null},ao[po])),mo=io.getElementByKey(po);mo!==null&&uo.push(reactDomExports.createPortal(ho,mo,po))}return uo},[so,ao,io])}(no,ro);return function(io){p(()=>mergeRegister(registerRichText(io),registerDragonSupport(io)),[io])}(no),reactExports.createElement(reactExports.Fragment,null,eo,reactExports.createElement(g,{content:to}),oo)}function g({content:eo}){const[to]=useLexicalComposerContext(),ro=function(oo){const[io,so]=reactExports.useState(()=>E(oo));return p(()=>{function ao(){const lo=E(oo);so(lo)}return ao(),mergeRegister(oo.registerUpdateListener(()=>{ao()}),oo.registerEditableListener(()=>{ao()}))},[oo]),io}(to),no=t();return ro?typeof eo=="function"?eo(no):eo:null}const modProd$1=Object.freeze(Object.defineProperty({__proto__:null,RichTextPlugin:x},Symbol.toStringTag,{value:"Module"})),mod$1=modProd$1,RichTextPlugin=mod$1.RichTextPlugin;var RichEditorContentType=(eo=>(eo.IMAGE="image",eo.TEXT="text",eo))(RichEditorContentType||{});const FAKE_PROTOCOL="fake:",CAN_USE_DOM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function d(eo,to){return eo.getEditorState().read(()=>{const ro=$getNodeByKey(to);return ro!==null&&ro.isSelected()})}function u(eo){const[to]=useLexicalComposerContext(),[ro,no]=reactExports.useState(()=>d(to,eo));return reactExports.useEffect(()=>{let oo=!0;const io=to.registerUpdateListener(()=>{oo&&no(d(to,eo))});return()=>{oo=!1,io()}},[to,eo]),[ro,reactExports.useCallback(oo=>{to.update(()=>{let io=$getSelection();$isNodeSelection(io)||(io=$createNodeSelection(),$setSelection(io)),$isNodeSelection(io)&&(oo?io.add(eo):io.delete(eo))})},[to,eo]),reactExports.useCallback(()=>{to.update(()=>{const oo=$getSelection();$isNodeSelection(oo)&&oo.clear()})},[to])]}const modProd=Object.freeze(Object.defineProperty({__proto__:null,useLexicalNodeSelection:u},Symbol.toStringTag,{value:"Module"})),mod=modProd,useLexicalNodeSelection=mod.useLexicalNodeSelection;function useEventCallback(eo){const to=reactExports.useRef(eo);return reactExports.useLayoutEffect(()=>{to.current=eo}),reactExports.useCallback((...ro)=>{const no=to.current;return no(...ro)},[])}const INSERT_IMAGE_COMMAND=createCommand("INSERT_IMAGE_COMMAND"),INSERT_MULTIPLE_NODES_COMMAND=createCommand("INSERT_MULTIPLE_NODES_COMMAND"),RIGHT_CLICK_IMAGE_COMMAND=createCommand("RIGHT_CLICK_IMAGE_COMMAND");class RichEditorViewModel extends ViewModel{constructor(to){super(),this.editor$=new State(void 0),this.maxHeight$=new State(void 0),this.resolveUrlByPath$=new State(void 0),this.resolveUrlByFile$=new State(void 0),this._resetEditorState=to.resetEditorState,this._replaceImageSrc=to.replaceImageSrc,this._extractEditorData=to.extractEditorData}get requiredEditor(){const to=this.editor$.getSnapshot();if(!to)throw new Error("[RichEditor] editor is not prepared.");return to}focus(){this.requiredEditor.focus()}getContent(){const ro=this.requiredEditor.getEditorState();return this._extractEditorData(ro)}insert(to){this.requiredEditor.dispatchCommand(INSERT_MULTIPLE_NODES_COMMAND,{nodes:to})}isEmpty(){return this.requiredEditor.getEditorState().read(()=>{const oo=$getRoot(),io=oo.getFirstChild();return io?oo.getChildrenSize()===1&&io instanceof ElementNode?io.isEmpty():!1:!0})}replaceImageSrc(to,ro){const no=this.editor$.getSnapshot();if(!no)throw new Error("[RichEditor] editor is not prepared.");this._replaceImageSrc(no,to,ro)}reset(to){const ro=this.requiredEditor;this._resetEditorState(to)(ro)}async resolveUrlByFile(to){const ro=this.resolveUrlByFile$.getSnapshot();return ro?ro(to):""}async resolveUrlByPath(to){if(to.startsWith(FAKE_PROTOCOL))return to;const ro=this.resolveUrlByPath$.getSnapshot();return(ro==null?void 0:ro(to))??to}}const RichEditorContextType=reactExports.createContext({viewmodel:new RichEditorViewModel({extractEditorData:()=>[],resetEditorState:()=>()=>{},replaceImageSrc:()=>{}})}),useRichEditorContext=()=>{const eo=reactExports.useContext(RichEditorContextType),to=reactExports.useContext(LexicalComposerContext),ro=(to==null?void 0:to[0])??void 0;return ro&&eo.viewmodel.editor$.next(ro),eo},useAutoResize=()=>{const[eo]=useLexicalComposerContext(),{viewmodel:to}=useRichEditorContext(),ro=useStateValue(to.maxHeight$);return useEventCallback(()=>{if(ro===void 0)return;const oo=eo==null?void 0:eo.getRootElement();if(oo){oo.style.height="24px";const io=Math.min(ro,oo.scrollHeight);oo.style.height=`${io}px`}})},imageCache=new Set;function useSuspenseImage(eo){imageCache.has(eo)||new Promise(to=>{const ro=new Image;ro.src=eo,ro.onload=()=>{imageCache.add(eo),to(null)}})}function LazyImage({alt:eo,className:to,imageRef:ro,src:no,width:oo,height:io,maxWidth:so,onLoad:ao}){return useSuspenseImage(no),jsxRuntimeExports.jsx("img",{className:to||void 0,src:no,alt:eo,ref:ro,style:{height:io,maxWidth:so,width:oo,border:"1px solid #E5E5E5"},draggable:!1,onLoad:ao})}const ImageComponent=eo=>{const{viewmodel:to}=useRichEditorContext(),ro=useAutoResize(),{src:no,alt:oo,nodeKey:io,width:so,height:ao,maxWidth:lo,isImageNode:uo}=eo,[co,fo]=reactExports.useState(no),po=reactExports.useRef(null),ho=reactExports.useRef(null),[mo,vo,bo]=useLexicalNodeSelection(io),[xo]=useLexicalComposerContext(),[_o,So]=reactExports.useState(null),Eo=reactExports.useRef(null),ko=reactExports.useCallback(jo=>{if(mo&&$isNodeSelection($getSelection())){jo.preventDefault();const Fo=$getNodeByKey(io);uo(Fo)&&Fo.remove()}return!1},[mo,io,uo]),wo=reactExports.useCallback(jo=>{const Oo=$getSelection(),Fo=ho.current;return mo&&$isNodeSelection(Oo)&&Oo.getNodes().length===1&&Fo!==null&&Fo!==document.activeElement?(jo.preventDefault(),Fo.focus(),!0):!1},[mo]),Co=reactExports.useCallback(jo=>jo.target===po.current?(jo.preventDefault(),!0):!1,[]),Ro=reactExports.useCallback(jo=>ho.current===jo.target?($setSelection(null),xo.update(()=>{vo(!0);const Oo=xo.getRootElement();Oo!==null&&Oo.focus()}),!0):!1,[xo,vo]),Ao=reactExports.useCallback(jo=>{const Oo=jo;return Oo.target===po.current?(Oo.shiftKey?vo(!mo):(bo(),vo(!0)),!0):!1},[mo,vo,bo]),Io=reactExports.useCallback(jo=>{xo.getEditorState().read(()=>{const Oo=$getSelection();jo.target.tagName==="IMG"&&$isRangeSelection(Oo)&&Oo.getNodes().length===1&&xo.dispatchCommand(RIGHT_CLICK_IMAGE_COMMAND,jo)})},[xo]);reactExports.useEffect(()=>{let jo=!1;return to.resolveUrlByPath(no).then(Oo=>{jo||fo(Oo)}),()=>{jo=!0}},[to,no]),reactExports.useEffect(()=>{let jo=!0;const Oo=xo.getRootElement(),Fo=mergeRegister(xo.registerUpdateListener(({editorState:Go})=>{jo&&So(Go.read($getSelection))}),xo.registerCommand(SELECTION_CHANGE_COMMAND,(Go,qo)=>(Eo.current=qo,!1),COMMAND_PRIORITY_LOW),xo.registerCommand(CLICK_COMMAND,Ao,COMMAND_PRIORITY_LOW),xo.registerCommand(RIGHT_CLICK_IMAGE_COMMAND,Ao,COMMAND_PRIORITY_LOW),xo.registerCommand(DRAGSTART_COMMAND,Co,COMMAND_PRIORITY_LOW),xo.registerCommand(KEY_DELETE_COMMAND,ko,COMMAND_PRIORITY_LOW),xo.registerCommand(KEY_BACKSPACE_COMMAND,ko,COMMAND_PRIORITY_LOW),xo.registerCommand(KEY_ENTER_COMMAND,wo,COMMAND_PRIORITY_LOW),xo.registerCommand(KEY_ESCAPE_COMMAND,Ro,COMMAND_PRIORITY_LOW));return Oo==null||Oo.addEventListener("contextmenu",Io),()=>{jo=!1,Fo(),Oo==null||Oo.removeEventListener("contextmenu",Io)}},[xo,mo,io,bo,ko,Co,wo,Ro,Ao,Io,vo]);const $o=mo&&$isNodeSelection(_o),Mo=mo?`focused ${$isNodeSelection(_o)?"draggable":""}`:void 0,Ho=(co.startsWith(FAKE_PROTOCOL)?co.slice(FAKE_PROTOCOL.length):co).replace(/#[\s\S]*$/,"");return jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:null,children:jsxRuntimeExports.jsx("div",{draggable:$o,children:jsxRuntimeExports.jsx(LazyImage,{className:Mo,src:Ho,alt:oo,imageRef:po,width:so,height:ao,maxWidth:lo,onLoad:ro})})})};class ImageNode extends DecoratorNode{constructor(to,ro,no,oo,io,so){super(so),this.src=to,this.alt=ro,this.maxWidth=no,this.width=oo||"inherit",this.height=io||"inherit"}static getType(){return RichEditorContentType.IMAGE}static clone(to){return new ImageNode(to.src,to.alt,to.maxWidth,to.width,to.height,to.__key)}static importDOM(){return{img:to=>({conversion:convertImageElement,priority:0})}}static importJSON(to){const{alt:ro,height:no,width:oo,maxWidth:io,src:so}=to;return $createImageNode({alt:ro,height:no,maxWidth:io,src:so,width:oo})}exportDOM(){const to=document.createElement("img");return to.setAttribute("src",this.src),to.setAttribute("alt",this.alt),to.setAttribute("width",this.width.toString()),to.setAttribute("height",this.height.toString()),{element:to}}exportJSON(){return{alt:this.getAltText(),height:this.height==="inherit"?0:this.height,maxWidth:this.maxWidth,src:this.getSrc(),type:RichEditorContentType.IMAGE,version:1,width:this.width==="inherit"?0:this.width}}setWidthAndHeight(to,ro){const no=this.getWritable();no.width=to,no.height=ro}createDOM(to){const ro=document.createElement("span"),oo=to.theme.image;return oo!==void 0&&(ro.className=oo),ro}updateDOM(){return!1}getSrc(){return this.src}getAltText(){return this.alt}decorate(){return jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:null,children:jsxRuntimeExports.jsx(ImageComponent,{src:this.src,alt:this.alt,width:this.width,height:this.height,maxWidth:this.maxWidth,nodeKey:this.getKey(),isImageNode:$isImageNode})})}}function $createImageNode({alt:eo,height:to,maxWidth:ro=240,src:no,width:oo,key:io}){return $applyNodeReplacement(new ImageNode(no,eo,ro,oo,to,io))}function $isImageNode(eo){return eo instanceof ImageNode}function convertImageElement(eo){if(eo instanceof HTMLImageElement){const{alt:to,src:ro,width:no,height:oo}=eo;return ro.startsWith("blob:")?null:{node:$createImageNode({alt:to,height:oo,src:ro,width:no})}}return null}const CommandPlugin=()=>{const[eo]=useLexicalComposerContext();return React.useLayoutEffect(()=>mergeRegister(eo.registerCommand(INSERT_MULTIPLE_NODES_COMMAND,to=>{const{nodes:ro}=to;if(ro.length===1&&ro[0].type===RichEditorContentType.TEXT){const io=ro[0];return eo.update(()=>{const so=$getSelection();so&&so.insertRawText(io.value)}),!0}let no;const oo=[];for(const io of ro)switch(io.type){case RichEditorContentType.TEXT:{const so=$createTextNode(io.value),ao=$createParagraphNode();no=so,ao.append(so),oo.push(ao);break}case RichEditorContentType.IMAGE:{const so=$createImageNode(io),ao=$createParagraphNode();no=so,ao.append(so),oo.push(ao);break}}return oo.length<=0||($insertNodes(oo),no&&$isRootOrShadowRoot(no.getParentOrThrow())&&no.selectEnd()),!0},COMMAND_PRIORITY_EDITOR)),[eo]),jsxRuntimeExports.jsx(React.Fragment,{})};CommandPlugin.displayName="CommandPlugin";const ACCEPTABLE_IMAGE_TYPES=["image/","image/heic","image/heif","image/gif","image/webp"],DragDropPastePlugin=()=>{const[eo]=useLexicalComposerContext(),{viewmodel:to}=useRichEditorContext();return reactExports.useLayoutEffect(()=>eo.registerCommand(DRAG_DROP_PASTE,ro=>{return no(),!0;async function no(){for(const oo of ro)if(isMimeType(oo,ACCEPTABLE_IMAGE_TYPES)){const io=oo.name,so=await to.resolveUrlByFile(oo);eo.dispatchCommand(INSERT_IMAGE_COMMAND,{alt:io,src:so})}}},COMMAND_PRIORITY_LOW),[eo,to]),jsxRuntimeExports.jsx(reactExports.Fragment,{})};DragDropPastePlugin.displayName="DragDropPastePlugin";class Point{constructor(to,ro){this._x=to,this._y=ro}get x(){return this._x}get y(){return this._y}equals(to){return this.x===to.x&&this.y===to.y}calcDeltaXTo(to){return this.x-to.x}calcDeltaYTo(to){return this.y-to.y}calcHorizontalDistanceTo(to){return Math.abs(this.calcDeltaXTo(to))}calcVerticalDistance(to){return Math.abs(this.calcDeltaYTo(to))}calcDistanceTo(to){const ro=this.calcDeltaXTo(to)**2,no=this.calcDeltaYTo(to)**2;return Math.sqrt(ro+no)}}function isPoint(eo){return eo instanceof Point}class Rect{constructor(to,ro,no,oo){const[io,so]=ro<=oo?[ro,oo]:[oo,ro],[ao,lo]=to<=no?[to,no]:[no,to];this._top=io,this._right=lo,this._left=ao,this._bottom=so}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(to,ro,no,oo){return new Rect(to,ro,no,oo)}static fromLWTH(to,ro,no,oo){return new Rect(to,no,to+ro,no+oo)}static fromPoints(to,ro){const{y:no,x:oo}=to,{y:io,x:so}=ro;return Rect.fromLTRB(oo,no,so,io)}static fromDOM(to){const{top:ro,width:no,left:oo,height:io}=to.getBoundingClientRect();return Rect.fromLWTH(oo,no,ro,io)}equals(to){return to.top===this._top&&to.bottom===this._bottom&&to.left===this._left&&to.right===this._right}contains(to){if(isPoint(to)){const{x:ro,y:no}=to,oo=nothis._bottom,so=rothis._right;return{reason:{isOnBottomSide:io,isOnLeftSide:so,isOnRightSide:ao,isOnTopSide:oo},result:!oo&&!io&&!so&&!ao}}else{const{top:ro,left:no,bottom:oo,right:io}=to;return ro>=this._top&&ro<=this._bottom&&oo>=this._top&&oo<=this._bottom&&no>=this._left&&no<=this._right&&io>=this._left&&io<=this._right}}intersectsWith(to){const{left:ro,top:no,width:oo,height:io}=to,{left:so,top:ao,width:lo,height:uo}=this,co=ro+oo>=so+lo?ro+oo:so+lo,fo=no+io>=ao+uo?no+io:ao+uo,po=ro<=so?ro:so,ho=no<=ao?no:ao;return co-po<=oo+lo&&fo-ho<=io+uo}generateNewRect({left:to=this.left,top:ro=this.top,right:no=this.right,bottom:oo=this.bottom}){return new Rect(to,ro,no,oo)}}const SPACE=4,TARGET_LINE_HALF_HEIGHT=2,DRAGGABLE_BLOCK_MENU_CLASSNAME="draggable-block-menu",DRAG_DATA_FORMAT="application/x-lexical-drag-block",TEXT_BOX_HORIZONTAL_PADDING=28,Downward=1,Upward=-1,Indeterminate=0,DraggableBlockPlugin=eo=>{const{anchorElem:to=document.body}=eo,[ro]=useLexicalComposerContext();return useDraggableBlockMenu(ro,to,ro._editable)};DraggableBlockPlugin.displayName="DraggableBlockPlugin";let prevIndex=1/0;function getCurrentIndex(eo){return eo===0?1/0:prevIndex>=0&&prevIndex$getRoot().getChildrenKeys())}function getCollapsedMargins(eo){const to=(lo,uo)=>lo?parseFloat(window.getComputedStyle(lo)[uo]):0,{marginTop:ro,marginBottom:no}=window.getComputedStyle(eo),oo=to(eo.previousElementSibling,"marginBottom"),io=to(eo.nextElementSibling,"marginTop"),so=Math.max(parseFloat(ro),oo);return{marginBottom:Math.max(parseFloat(no),io),marginTop:so}}function getBlockElement(eo,to,ro,no=!1){const oo=eo.getBoundingClientRect(),io=getTopLevelNodeKeys(to);let so=null;return to.getEditorState().read(()=>{if(no){const uo=to.getElementByKey(io[0]),co=to.getElementByKey(io[io.length-1]),fo=uo==null?void 0:uo.getBoundingClientRect(),po=co==null?void 0:co.getBoundingClientRect();if(fo&&po&&(ro.ypo.bottom&&(so=co),so))return}let ao=getCurrentIndex(io.length),lo=Indeterminate;for(;ao>=0&&ao{no.transform=ro})}function setTargetLine(eo,to,ro,no){const{top:oo,height:io}=to.getBoundingClientRect(),{top:so,width:ao}=no.getBoundingClientRect(),{marginTop:lo,marginBottom:uo}=getCollapsedMargins(to);let co=oo;ro>=oo?co+=io+uo/2:co-=lo/2;const fo=co-so-TARGET_LINE_HALF_HEIGHT,po=TEXT_BOX_HORIZONTAL_PADDING-SPACE,ho=eo.style;ho.transform=`translate(${po}px, ${fo}px)`,ho.width=`${ao-(TEXT_BOX_HORIZONTAL_PADDING-SPACE)*2}px`,ho.opacity=".4"}function hideTargetLine(eo){const to=eo==null?void 0:eo.style;to&&(to.opacity="0",to.transform="translate(-10000px, -10000px)")}function useDraggableBlockMenu(eo,to,ro){const no=to.parentElement,oo=reactExports.useRef(null),io=reactExports.useRef(null),so=reactExports.useRef(!1),[ao,lo]=reactExports.useState(null);reactExports.useLayoutEffect(()=>{function fo(ho){const mo=ho.target;if(!isHTMLElement(mo)){lo(null);return}if(isOnMenu(mo))return;const vo=getBlockElement(to,eo,ho);lo(vo)}function po(){lo(null)}return no==null||no.addEventListener("mousemove",fo),no==null||no.addEventListener("mouseleave",po),()=>{no==null||no.removeEventListener("mousemove",fo),no==null||no.removeEventListener("mouseleave",po)}},[no,to,eo]),reactExports.useEffect(()=>{oo.current&&setMenuPosition(ao,oo.current,to)},[to,ao]),reactExports.useEffect(()=>{function fo(ho){if(!so.current)return!1;const[mo]=eventFiles(ho);if(mo)return!1;const{pageY:vo,target:bo}=ho;if(!isHTMLElement(bo))return!1;const xo=getBlockElement(to,eo,ho,!0),_o=io.current;return xo===null||_o===null?!1:(setTargetLine(_o,xo,vo,to),ho.preventDefault(),!0)}function po(ho){if(!so.current)return!1;const[mo]=eventFiles(ho);if(mo)return!1;const{target:vo,dataTransfer:bo,pageY:xo}=ho,_o=(bo==null?void 0:bo.getData(DRAG_DATA_FORMAT))||"",So=$getNodeByKey(_o);if(!So||!isHTMLElement(vo))return!1;const Eo=getBlockElement(to,eo,ho,!0);if(!Eo)return!1;const ko=$getNearestNodeFromDOMNode(Eo);if(!ko)return!1;if(ko===So)return!0;const wo=Eo.getBoundingClientRect().top;return xo>=wo?ko.insertAfter(So):ko.insertBefore(So),lo(null),!0}return mergeRegister(eo.registerCommand(DRAGOVER_COMMAND,ho=>fo(ho),COMMAND_PRIORITY_LOW),eo.registerCommand(DROP_COMMAND,ho=>po(ho),COMMAND_PRIORITY_HIGH))},[to,eo]);const uo=fo=>{const po=fo.dataTransfer;if(!po||!ao)return;setDragImage(po,ao);let ho="";eo.update(()=>{const mo=$getNearestNodeFromDOMNode(ao);mo&&(ho=mo.getKey())}),so.current=!0,po.setData(DRAG_DATA_FORMAT,ho)},co=()=>{so.current=!1,hideTargetLine(io.current)};return reactDomExports.createPortal(jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"icon draggable-block-menu",role:"button",ref:oo,draggable:!0,onDragStart:uo,onDragEnd:co,children:jsxRuntimeExports.jsx("div",{className:ro?"icon":""})}),jsxRuntimeExports.jsx("div",{className:"draggable-block-target-line",ref:io})]}),to)}const EditablePlugin=eo=>{const{editable:to}=eo,[ro]=useLexicalComposerContext();return reactExports.useEffect(()=>{ro.setEditable(to)},[ro,to]),jsxRuntimeExports.jsx(reactExports.Fragment,{})};EditablePlugin.displayName="EditablePlugin";const ImagesPlugin=()=>{const[eo]=useLexicalComposerContext();return reactExports.useLayoutEffect(()=>{if(!eo.hasNodes([ImageNode]))throw new Error("[RichEditor] ImagesPlugin: ImageNode not registered on editor");return mergeRegister(eo.registerCommand(INSERT_IMAGE_COMMAND,onInsertImage,COMMAND_PRIORITY_EDITOR),eo.registerCommand(DRAGSTART_COMMAND,onDragStart,COMMAND_PRIORITY_HIGH),eo.registerCommand(DRAGOVER_COMMAND,onDragover,COMMAND_PRIORITY_LOW),eo.registerCommand(DROP_COMMAND,to=>onDrop(to,eo),COMMAND_PRIORITY_HIGH))},[eo]),jsxRuntimeExports.jsx(reactExports.Fragment,{})};ImagesPlugin.displayName="ImagesPlugin";let _transparentImage;const getTransparentImage=()=>{if(_transparentImage===void 0){const eo="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";_transparentImage=document.createElement("img"),_transparentImage.src=eo}return _transparentImage};function onInsertImage(eo){const to=$createImageNode(eo);return $insertNodes([to]),$isRootOrShadowRoot(to.getParentOrThrow())&&$wrapNodeInElement(to,$createParagraphNode).selectEnd(),!0}function onDragStart(eo){const to=getImageNodeInSelection();if(!to)return!1;const ro=eo.dataTransfer;if(!ro)return!1;const no=getTransparentImage();return ro.setData("text/plain","_"),ro.setDragImage(no,0,0),ro.setData("application/x-lexical-drag",JSON.stringify({type:RichEditorContentType.IMAGE,data:{alt:to.alt,height:to.height,key:to.getKey(),maxWidth:to.maxWidth,src:to.src,width:to.width}})),!0}function onDragover(eo){return getImageNodeInSelection()?(canDropImage(eo)||eo.preventDefault(),!0):!1}function onDrop(eo,to){const ro=getImageNodeInSelection();if(!ro)return!1;const no=getDragImageData(eo);if(!no)return!1;if(eo.preventDefault(),canDropImage(eo)){const oo=getDragSelection(eo);ro.remove();const io=$createRangeSelection();oo!=null&&io.applyDOMRange(oo),$setSelection(io),to.dispatchCommand(INSERT_IMAGE_COMMAND,no)}return!0}function getImageNodeInSelection(){const eo=$getSelection();if(!$isNodeSelection(eo))return null;const ro=eo.getNodes()[0];return $isImageNode(ro)?ro:null}function getDragImageData(eo){var ro;const to=(ro=eo.dataTransfer)==null?void 0:ro.getData("application/x-lexical-drag");if(!to)return null;try{const{type:no,data:oo}=JSON.parse(to);return no===RichEditorContentType.IMAGE?oo:null}catch{return null}}function canDropImage(eo){const to=eo.target;return!!(to&&to instanceof HTMLElement&&!to.closest("code, span.editor-image")&&to.parentElement&&to.parentElement.closest("div.ContentEditable__root"))}const getDOMSelection=eo=>CAN_USE_DOM?(eo||window).getSelection():null;function getDragSelection(eo){const to=eo,ro=to.target,no=ro==null?null:ro.nodeType===9?ro.defaultView:ro.ownerDocument.defaultView,oo=getDOMSelection(no);let io;if(document.caretRangeFromPoint)io=document.caretRangeFromPoint(to.clientX,to.clientY);else if(to.rangeParent&&oo!==null)oo.collapse(to.rangeParent,to.rangeOffset||0),io=oo.getRangeAt(0);else throw Error("[RichEditor] ImagesPlugin: Cannot get the selection when dragging");return io}const OnKeyDownPlugin=eo=>{const[to]=useLexicalComposerContext(),ro=reactExports.useRef(eo.onKeyDown);return reactExports.useLayoutEffect(()=>{const no=oo=>{var io;(io=ro.current)==null||io.call(ro,oo)};return to.registerRootListener((oo,io)=>{io!==null&&io.removeEventListener("keydown",no),oo!==null&&oo.addEventListener("keydown",no)})},[to]),jsxRuntimeExports.jsx(reactExports.Fragment,{})};OnKeyDownPlugin.displayName="OnKeyDownPlugin";const PlainContentPastePlugin=()=>{const[eo]=useLexicalComposerContext();return reactExports.useLayoutEffect(()=>mergeRegister(eo.registerUpdateListener(to=>{to.tags.has("paste")&&eo.update(()=>{to.dirtyLeaves.forEach(ro=>{const no=$getNodeByKey(ro);if($isTextNode(no)){const oo=$copyNode(no);oo.setFormat(0),oo.setStyle(""),no.replace(oo)}})})}),eo.registerNodeTransform(TextNode,to=>{const ro=to.getParentOrThrow();if($isLinkNode(ro)){const no=$createTextNode(ro.__url);ro.insertBefore(no),ro.remove()}})),[eo]),jsxRuntimeExports.jsx(reactExports.Fragment,{})};PlainContentPastePlugin.displayName="PlainContentPastePlugin";const resetEditorState=eo=>to=>{to.update(()=>{const ro=$getRoot();ro.clear();for(const no of eo)if(no!=null){if(typeof no=="string"){const oo=$createTextNode(no),io=$createParagraphNode();io.append(oo),ro.append(io);continue}if(typeof no=="object"){switch(no.type){case RichEditorContentType.IMAGE:{const oo=$createImageNode({alt:no.alt,src:no.src}),io=$createParagraphNode();io.append(oo),ro.append(io);break}case RichEditorContentType.TEXT:{const oo=$createTextNode(no.value),io=$createParagraphNode();io.append(oo),ro.append(io);break}default:throw console.log("item:",no),new TypeError(`[resetEditorState] unknown rich-editor content type: ${no.type}`)}continue}console.error("[resetEditorState] unknown rich-editor data:",no)}})},RootType=RootNode.getType(),ParagraphType=ParagraphNode.getType(),TextType=TextNode.getType(),ImageType=ImageNode.getType(),LineBreakType=LineBreakNode.getType(),extractEditorData=eo=>{const to=eo.toJSON(),ro=[];for(const oo of to.root.children)no(oo);return ro;function no(oo){switch(oo.type){case ImageType:{const{src:io,alt:so}=oo;if(io.startsWith(FAKE_PROTOCOL)){const ao=ro[ro.length-1];(ao==null?void 0:ao.type)===RichEditorContentType.TEXT&&(ao.value+=` -`);break}ro.push({type:RichEditorContentType.IMAGE,src:io,alt:so});break}case LineBreakType:{const io=ro[ro.length-1];(io==null?void 0:io.type)===RichEditorContentType.TEXT&&(io.value+=` -`);break}case ParagraphType:{const io=oo.children;for(const so of io)no(so);break}case TextType:{const io=oo.text,so=ro[ro.length-1];(so==null?void 0:so.type)===RichEditorContentType.TEXT?so.value+=io:ro.push({type:RichEditorContentType.TEXT,value:io});break}default:throw new TypeError(`[RichEditor] [extractEditorData] Unknown node.type: (${oo.type})`)}}},replaceImageSrc=(eo,to,ro)=>{eo.update(()=>{const no=$getRoot();oo(no);function oo(io){switch(io.getType()){case RootType:case ParagraphType:for(const so of io.getChildren())oo(so);break;case ImageType:{const so=io;if(so.getSrc()===to){const ao=$createImageNode({alt:so.getAltText(),src:ro});so.replace(ao)}break}}}})};class RichEditor extends reactExports.Component{constructor(to){super(to),this.state={floatingAnchorElem:null};const{editable:ro=!0,initialContent:no}=this.props;this.initialConfig={namespace:"react-simple-rich-editor",theme:{ltr:"ltr",rtl:"rtl",placeholder:classes.editorPlaceholder,paragraph:classes.editorParagraph},nodes:[ImageNode,LinkNode],editable:ro,editorState:no?resetEditorState(no):null,onError:oo=>{console.error(oo)}},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:to,onKeyDown:ro,onFocus:no,onBlur:oo,onChange:io,onEditorInputWrapperRef:so}=this,{editable:ao=!0,placeholder:lo="Enter some text...",pluginsBeforeRichEditors:uo=[],pluginsAfterRichEditors:co=[]}=this.props,{floatingAnchorElem:fo}=this.state,po=mergeStyles$1(classes.editorContainer,this.props.editorContainerCls),ho=mergeStyles$1(classes.editorInput,this.props.editorInputCls),mo=mergeStyles$1(classes.editorInputBox,this.props.editorInputBoxCls),vo=mergeStyles$1(classes.editorPlaceholder,this.props.editorPlaceholderCls),bo=jsxRuntimeExports.jsx("div",{ref:so,className:mo,children:jsxRuntimeExports.jsx(ContentEditable,{onFocus:no,onBlur:oo,className:ho})});return jsxRuntimeExports.jsxs(LexicalComposer,{initialConfig:to,children:[jsxRuntimeExports.jsx(EditablePlugin,{editable:ao}),jsxRuntimeExports.jsx(CommandPlugin,{}),jsxRuntimeExports.jsxs("div",{className:po,children:[uo,jsxRuntimeExports.jsx(RichTextPlugin,{contentEditable:bo,placeholder:jsxRuntimeExports.jsx("div",{className:vo,children:lo}),ErrorBoundary:LexicalErrorBoundary}),co,jsxRuntimeExports.jsx(OnKeyDownPlugin,{onKeyDown:ro}),jsxRuntimeExports.jsx(OnChangePlugin,{onChange:io}),jsxRuntimeExports.jsx(DragDropPastePlugin,{}),jsxRuntimeExports.jsx(PlainContentPastePlugin,{}),jsxRuntimeExports.jsx(ImagesPlugin,{}),jsxRuntimeExports.jsx(HistoryPlugin,{}),fo&&jsxRuntimeExports.jsx(DraggableBlockPlugin,{anchorElem:fo})]})]})}onKeyDown(to){var ro,no;(no=(ro=this.props).onKeyDown)==null||no.call(ro,to)}onFocus(to){var ro,no;(no=(ro=this.props).onFocus)==null||no.call(ro,to)}onBlur(to){var ro,no;(no=(ro=this.props).onBlur)==null||no.call(ro,to)}onChange(to){var ro,no;(no=(ro=this.props).onChange)==null||no.call(ro,to)}onEditorInputWrapperRef(to){to!==null&&this.setState({floatingAnchorElem:to})}}const classes=mergeStyleSets({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"}}),ReactRichEditor=reactExports.forwardRef((eo,to)=>{const[ro]=reactExports.useState(()=>new RichEditorViewModel({extractEditorData,replaceImageSrc,resetEditorState})),no=reactExports.useMemo(()=>({viewmodel:ro}),[ro]);return ro.resolveUrlByFile$.next(eo.resolveUrlByFile),ro.resolveUrlByPath$.next(eo.resolveUrlByPath),reactExports.useImperativeHandle(to,()=>({focus:()=>{no.viewmodel.focus()},getContent:()=>no.viewmodel.getContent(),insert:oo=>{no.viewmodel.insert(oo)},isEmpty:()=>no.viewmodel.isEmpty(),replaceImageSrc:(oo,io)=>{no.viewmodel.replaceImageSrc(oo,io)},reset:oo=>{no.viewmodel.reset(oo)}})),jsxRuntimeExports.jsx(RichEditorContextType.Provider,{value:no,children:jsxRuntimeExports.jsx(RichEditor,{...eo})})});ReactRichEditor.displayName="ReactRichEditor";makeStyles({editor:{...shorthands.padding("8px"),...shorthands.border("1px","solid",tokens.colorNeutralBackground5),...shorthands.borderRadius("4px"),boxSizing:"border-box",display:"block",width:"100%",userSelect:"none",position:"relative"}});makeStyles({chatbox:{...shorthands.borderRadius("8px"),display:"flex",flexDirection:"column",alignItems:"stretch",backgroundColor:tokens.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:tokens.colorNeutralBackground1Hover},"::-webkit-scrollbar-thumb":{backgroundColor:tokens.colorScrollbarOverlay,...shorthands.border("1px","solid",tokens.colorNeutralBackground1),...shorthands.borderRadius("9999px")},"::-webkit-scrollbar-thumb:hover":{backgroundColor:tokens.colorNeutralForeground1Static},"::-webkit-scrollbar-track":{...shorthands.borderRadius("9999px"),backgroundColor:"transparent"}},header:{...shorthands.flex(0,0,"auto")},main:{...shorthands.flex(1,1,"auto"),...shorthands.overflow("hidden","auto")},footer:{...shorthands.flex(0,0,"auto")}});makeStyles({header:{},topbar:{...shorthands.padding("0px","16px"),...shorthands.borderBottom("1px","solid",tokens.colorNeutralBackground5),boxSizing:"border-box",display:"flex",justifyContent:"space-between",alignItems:"center",height:"48px"},toolbarTitle:{display:"flex",alignItems:"center",columnGap:"2px"},toolbarActionButton:{color:tokens.colorNeutralForeground2}});makeStyles({main:{...shorthands.padding("0","16px"),...shorthands.overflow("hidden","auto"),height:"100%"}});makeStyles({footer:{...shorthands.padding("16px"),boxSizing:"border-box"},footerContainer:{display:"flex"},leftToolbar:{...shorthands.flex(0,0,"auto")},editor:{...shorthands.flex(1),boxSizing:"border-box"},validation:{boxSizing:"border-box"},validationInner:{...shorthands.border("1px","solid",tokens.colorNeutralBackground5),...shorthands.borderRadius("4px"),...shorthands.margin("8px","0px"),...shorthands.padding("2px","8px"),backgroundColor:tokens.colorStatusWarningBackground1,color:tokens.colorStatusWarningForeground1}});const capitalizeFirstLetter=eo=>eo.charAt(0).toUpperCase()+eo.slice(1),getSenderNameByLLMMessage=eo=>eo.role&&eo.name?`${eo.role}: ${eo.name}`:eo.role?eo.role:eo.name?eo.name:"user",defaultCalcContentForCopy=eo=>JSON.stringify(eo.content),messageRoleToCategory=eo=>{switch(eo){case"system":return ChatMessageCategory.System;case"user":return ChatMessageCategory.User;default:return ChatMessageCategory.Chatbot}},EMPTY_CONTEXTUAL_MENU_ITEMS=[],defaultUseContextualMenuItems=eo=>EMPTY_CONTEXTUAL_MENU_ITEMS;function LLMNodeMessageBubbleRenderer(eo){const{MessageAvatarRenderer:to,MessageContentRenderer:ro=DefaultMessageContentRenderer,MessageErrorRenderer:no=DefaultMessageErrorRenderer,MessageSenderRenderer:oo=DefaultMessageSenderRenderer,MessagePaginationRenderer:io=DefaultMessagePaginationRenderer,MessageActionBarRenderer:so=DefaultMessageActionBarRenderer,MessageStatusRenderer:ao=DefaultMessageStatusRenderer,useMessageContextualMenuItems:lo=defaultUseContextualMenuItems,useMessageActions:uo,initialPage:co=-1,locStrings:fo,message:po,className:ho}=eo,mo=useStyles$3(),[vo,bo]=React.useState((co%po.history.length+po.history.length)%po.history.length),[xo,_o]=React.useState(!1),So=React.useRef(null),Eo=React.useRef(null),ko=React.useCallback(()=>{_o(!1)},[]),wo=React.useCallback($o=>{const Bo=So.current,Mo=Eo.current;if(Bo&&Mo){const Ho=$o.clientX,jo=$o.clientY,Oo=Bo.getBoundingClientRect(),Fo=Oo.left+window.scrollX,Go=Oo.top+window.scrollY,qo=Ho-Fo,Xo=jo-Go;Mo.style.left=`${qo}px`,Mo.style.top=`${Xo}px`}},[]),Co=React.useCallback($o=>{$o.preventDefault(),wo($o),_o(!0)},[wo]),Ro=po.history[vo],Ao="left",Io=lo(Ro);return React.useEffect(()=>{const $o=()=>{_o(!1)};return document.addEventListener("mousedown",$o),()=>document.removeEventListener("mousedown",$o)},[]),jsxRuntimeExports.jsx("div",{className:mo.container,"data-chatbox-locator":ChatboxLocator.MessageBubble,"data-position":Ao,children:jsxRuntimeExports.jsx("div",{className:mergeClasses(mo.message,ho),"data-position":Ao,children:jsxRuntimeExports.jsxs("div",{className:mo.main,children:[jsxRuntimeExports.jsxs("div",{className:mo.heading,children:[jsxRuntimeExports.jsx("div",{className:mo.avatar,children:to&&jsxRuntimeExports.jsx(to,{data:Ro,position:Ao})}),jsxRuntimeExports.jsx("div",{className:mo.sender,children:jsxRuntimeExports.jsx(oo,{data:Ro,position:Ao})})]}),jsxRuntimeExports.jsxs("div",{ref:So,className:mo.content,"data-category":Ro.category,"data-chatbox-locator":ChatboxLocator.MessageContent,onContextMenu:Co,onClick:wo,children:[jsxRuntimeExports.jsx(ro,{content:Ro.content,className:mo.contentMain}),Ro.error&&jsxRuntimeExports.jsx(no,{error:Ro.error,locStrings:fo,className:mo.error}),typeof Ro.duration=="number"&&typeof Ro.tokens=="number"&&jsxRuntimeExports.jsx(ao,{duration:Ro.duration,tokens:Ro.tokens,locStrings:fo,className:mo.status}),po.history.length>1&&jsxRuntimeExports.jsx(io,{className:mo.pagination,message:po,current:vo,setCurrent:bo}),jsxRuntimeExports.jsx("div",{ref:Eo,className:mo.contentMenuAnchor}),Io.length>0&&jsxRuntimeExports.jsx(ContextualMenu,{items:Io,hidden:!xo,target:Eo,onItemClick:ko,onDismiss:ko,className:mo.contextualMenu}),jsxRuntimeExports.jsx("div",{className:mo.actionBar,"data-chatbox-locator":ChatboxLocator.MessageActionBar,children:jsxRuntimeExports.jsx(so,{data:Ro,locStrings:fo,useMessageActions:uo})})]})]})})})}LLMNodeMessageBubbleRenderer.displayName="LLMNodeMessageBubbleRenderer";const useStyles$3=makeStyles({container:{...shorthands.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"},width:"calc(100% - 8px)",marginBottom:"18px"},heading:{display:"flex",alignContent:"center"},avatar:{...shorthands.flex(0,0,"auto")},main:{...shorthands.flex(1,1,"auto"),display:"flex",flexDirection:"column",width:"100%"},sender:{...shorthands.flex(0,0,"auto"),fontSize:"16px",fontWeight:600,lineHeight:"22px"},content:{...shorthands.flex(1,1,"auto"),...shorthands.borderRadius("4px"),position:"relative",boxSizing:"border-box",minWidth:"48px",wordBreak:"break-word",lineHeight:"22px","> p":{...shorthands.margin(0)},[`&:hover > ${ChatboxSelector.MessageActionBar}`]:{display:"flex",visibility:"visible"},[`&&[data-category="${ChatMessageCategory.System}"]`]:{color:tokens.colorNeutralForeground4},[`&&[data-category="${ChatMessageCategory.Error}"]`]:{backgroundColor:tokens.colorPaletteRedBackground2,color:tokens.colorNeutralForeground1},[`&&[data-category="${ChatMessageCategory.Chatbot}"]`]:{backgroundColor:tokens.colorNeutralBackground4,color:tokens.colorNeutralForeground1},[`&&[data-category="${ChatMessageCategory.User}"]`]:{backgroundColor:tokens.colorBrandBackground2,color:tokens.colorNeutralForeground1}},contentMain:{...shorthands.padding("12px","20px","12px","12px")},contextualMenu:{width:"auto",minWidth:"180px"},contentMenuAnchor:{position:"absolute",top:"0px",left:"0px"},error:{...shorthands.borderTop("1px","solid",tokens.colorPaletteDarkRedBorderActive),marginTop:"8px !important",paddingTop:"8px"},pagination:{},status:{...shorthands.borderTop("1px","solid",tokens.colorNeutralStroke1),...shorthands.padding("0px","20px","0px","12px"),fontSize:"12px",fontStyle:"italic"},actionBar:{position:"absolute",right:"0px",top:"-32px",display:"none",justifyContent:"space-between"}});function MessageSenderRenderer(eo){const{data:to,position:ro,className:no}=eo,oo=useStyles$2(),{name:io,role:so}=to.content[0],ao={user:"success",assistant:"brand",system:"informative"};return jsxRuntimeExports.jsxs("div",{className:mergeClasses(oo.container,no),"data-position":ro,children:[io&&jsxRuntimeExports.jsx("span",{className:oo.name,"data-position":ro,"data-category":to.category,children:io}),so&&jsxRuntimeExports.jsx(Badge$2,{className:oo.role,color:ao[so],children:so})]})}MessageSenderRenderer.displayName="MessageSenderRenderer";const useStyles$2=makeStyles({container:{display:"flex",flexWrap:"nowrap",alignItems:"center",justifyContent:"flex-start",color:tokens.colorNeutralForeground3},name:{...shorthands.margin("0px","0px","0px","6px"),fontSize:"16px",lineHeight:"22px"},role:{marginLeft:"6px"}}),OpenAIIcon=({styles:eo})=>jsxRuntimeExports.jsxs("svg",{fill:"currentColor",width:"20px",height:"20px",viewBox:"0 0 2048 2048",role:"img",xmlns:"http://www.w3.org/2000/svg",style:eo,children:[jsxRuntimeExports.jsx("title",{children:"OpenAI icon"}),jsxRuntimeExports.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"})]});var RichContentType=(eo=>(eo.TEXT="text",eo.IMAGE_URL="image_url",eo.IMAGE_FILE="image_file",eo))(RichContentType||{});const useClasses$c=makeStyles({header:{display:"flex",alignItems:"center"},paramKey:{fontSize:"14px",fontWeight:600,lineHeight:"20px",marginRight:"4px"},type:{fontSize:"13px",marginLeft:"10px",lineHeight:"20px",color:tokens.colorNeutralForeground3},description:{fontSize:"14px",lineHeight:"21px"},required:{color:tokens.colorPaletteRedForeground1,marginLeft:"10px"},optional:{color:tokens.colorPaletteGreenForeground1,marginLeft:"10px"},sectionTitle:{fontSize:"12px",color:tokens.colorNeutralForeground3}}),FunctionParameterRow=({paramKey:eo,paramSchema:to,isRequired:ro})=>{const{type:no,description:oo,properties:io,required:so,enum:ao}=to,lo=useClasses$c();return jsxRuntimeExports.jsxs(Card,{appearance:"outline",children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsxs("div",{className:lo.header,children:[jsxRuntimeExports.jsx("div",{className:lo.paramKey,children:eo}),jsxRuntimeExports.jsx("div",{className:lo.type,children:no}),ro?jsxRuntimeExports.jsx("div",{className:lo.required,children:"Required"}):jsxRuntimeExports.jsx("div",{className:lo.optional,children:"Optional"})]})}),oo&&jsxRuntimeExports.jsx("div",{className:lo.description,children:oo}),io&&jsxRuntimeExports.jsx(Accordion,{collapsible:!0,children:jsxRuntimeExports.jsxs(AccordionItem,{value:"properties",children:[jsxRuntimeExports.jsx(AccordionHeader,{children:jsxRuntimeExports.jsx("div",{className:lo.sectionTitle,children:"Properties"})}),jsxRuntimeExports.jsx(AccordionPanel,{children:Object.keys(io).map(uo=>jsxRuntimeExports.jsx(FunctionParameterRow,{paramKey:uo,paramSchema:io[uo],isRequired:so==null?void 0:so.includes(uo)},uo))})]})}),ao&&jsxRuntimeExports.jsx(Accordion,{collapsible:!0,children:jsxRuntimeExports.jsxs(AccordionItem,{value:"enum",children:[jsxRuntimeExports.jsx(AccordionHeader,{children:jsxRuntimeExports.jsx("div",{className:lo.sectionTitle,children:"Possible values"})}),jsxRuntimeExports.jsx(AccordionPanel,{children:ao.map(uo=>jsxRuntimeExports.jsx("div",{children:uo},uo))})]})})]})},useClasses$b=makeStyles({root:{...shorthands.padding("8px")},header:{fontSize:"24px",fontWeight:700,lineHeight:"30px"},parametersTitle:{fontSize:"20px",fontWeight:700,lineHeight:"28px"}}),LLMNodeToolCard=({tool:eo})=>{var ro;const to=useClasses$b();return jsxRuntimeExports.jsx("div",{className:to.root,children:jsxRuntimeExports.jsxs(Card,{children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{className:to.header,children:eo.function.name})}),eo.function.description&&jsxRuntimeExports.jsx("div",{children:eo.function.description}),eo.function.parameters&&jsxRuntimeExports.jsx("div",{className:to.parametersTitle,children:"Parameters"}),Object.keys(((ro=eo.function.parameters)==null?void 0:ro.properties)||{}).map(no=>{var io,so,ao,lo;const oo=(so=(io=eo.function.parameters)==null?void 0:io.properties)==null?void 0:so[no];return oo?jsxRuntimeExports.jsx(FunctionParameterRow,{paramKey:no,paramSchema:oo,isRequired:(lo=(ao=eo.function.parameters)==null?void 0:ao.required)==null?void 0:lo.includes(no)},no):null})]})})},RichTextChatboxMessageContent=eo=>{const{content:to,className:ro}=eo,no=to.map(co=>co.function_call).filter(Boolean),oo=to.reduce((co,fo)=>fo.tool_calls?[...co,...fo.tool_calls]:co,[]),io=to.reduce((co,fo)=>fo.tools?[...co,...fo.tools]:co,[]),so=reactExports.useMemo(()=>to.map(co=>weaveRichNodesIntoMarkup(co.content??"")).join(` - -`),[to]),ao=useStyles$1(),lo=mergeClasses(ao.content,ro,"rich-text-chatbox-message-content"),uo=useLocStrings();return jsxRuntimeExports.jsxs("div",{className:lo,children:[jsxRuntimeExports.jsx(ReactMarkdown,{text:so}),no.length>0&&jsxRuntimeExports.jsx("h3",{children:uo.Function_Calls}),no.map(co=>jsxRuntimeExports.jsx(JsonNodeCard,{title:(co==null?void 0:co.name)??"Function call",src:co==null?void 0:co.arguments},co==null?void 0:co.name)),oo.length>0&&jsxRuntimeExports.jsx("h3",{children:uo.Tool_Calls}),oo.map(co=>{const fo=io.find(po=>po.function.name===co.function.name);return jsxRuntimeExports.jsxs(Card,{style:{marginBottom:8},children:[jsxRuntimeExports.jsx(CardHeader,{header:fo?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("span",{children:["[",co.type,"]"]}),jsxRuntimeExports.jsxs(Popover,{children:[jsxRuntimeExports.jsx(PopoverTrigger,{children:jsxRuntimeExports.jsx("div",{className:ao.popoverTrigger,children:co.function.name})}),jsxRuntimeExports.jsx(PopoverSurface,{children:jsxRuntimeExports.jsx(LLMNodeToolCard,{tool:fo})})]})]}):`[${co.type}] ${co.function.name}`}),jsxRuntimeExports.jsx(JsonNodeCard,{title:uo.Arguments,src:co.function.arguments})]},co.id)})]})},useStyles$1=makeStyles({content:{...shorthands.overflow("auto"),wordBreak:"break-all",whiteSpace:"break-spaces"},popoverTrigger:{cursor:"pointer",marginLeft:"4px",color:tokens.colorBrandBackground,...shorthands.textDecoration("underline")}});function weaveRichNodesIntoMarkup(eo){if(typeof eo=="string")return eo;return Array.isArray(eo)?eo.map(to).filter(Boolean).join(` - -`):new Error("content type is not supported");function to(ro){var no,oo,io,so;switch(ro.type){case RichContentType.TEXT:return ro.text??"";case RichContentType.IMAGE_URL:return`![${(no=ro.image_url)==null?void 0:no.url}](${(oo=ro.image_url)==null?void 0:oo.url})`;case RichContentType.IMAGE_FILE:return`![${(io=ro.image_file)==null?void 0:io.path}](${(so=ro.image_file)==null?void 0:so.path})`;default:return""}}}const useAvatarStyles=makeStyles({avatar:{}}),useMessagesContainerStyles=makeStyles({messagesContainer:{display:"flex",height:"100%",width:"100%"},minimap:{boxSizing:"border-box",height:"100%",width:"8px"},minimapInner:{boxSizing:"border-box",width:"8px",...shorthands.border("1px","solid","rgba(0, 0, 128, 0.15)")}}),LLMNodeMessagesList=eo=>{const to=useSelectedSpan(),ro=useMessagesContainerStyles(),no=reactExports.useRef(null),oo=ChatboxSelector.MessageList,io=ChatboxSelector.MessageContent,so=eo.messages.map((ao,lo)=>({id:lo,type:ChatMessageType.Message,history:[{content:[{content:ao.content??"",name:ao.name,role:ao.role,timestamp:ao.timestamp,function_call:ao.function_call,tool_calls:ao.tool_calls,tools:ao.tools}],category:messageRoleToCategory(ao.role),from:capitalizeFirstLetter(getSenderNameByLLMMessage(ao)),timestamp:ao.role==="assistant"?to==null?void 0:to.start_time:to==null?void 0:to.end_time}]}));return reactExports.useEffect(()=>{const ao=document.querySelectorAll(".rich-text-chatbox-message-content"),lo=ao[ao.length-1];lo&&lo.scrollIntoView({block:"end"})},[]),jsxRuntimeExports.jsxs("div",{className:ro.messagesContainer,children:[jsxRuntimeExports.jsx(ChatboxMessageList,{locStrings:defaultLocStrings$1,messages:so,calcContentForCopy:defaultCalcContentForCopy,containerRef:no}),jsxRuntimeExports.jsx("div",{className:ro.minimap,children:jsxRuntimeExports.jsx(Minimap,{className:ro.minimapInner,syncScale:!1,sourceRootRef:no,sourceQuerySelector:oo,sourceElementQuerySelector:io})})]})},MessageAvatarRenderer=({data:eo,className:to})=>{const ro=useAvatarStyles();return eo.category===ChatMessageCategory.System?jsxRuntimeExports.jsx("div",{className:mergeClasses(ro.avatar,to),children:jsxRuntimeExports.jsx(Alert24Regular,{})}):eo.category===ChatMessageCategory.User?jsxRuntimeExports.jsx("div",{className:mergeClasses(ro.avatar,to),children:jsxRuntimeExports.jsx(Person24Regular,{})}):eo.category===ChatMessageCategory.Chatbot?jsxRuntimeExports.jsx("div",{className:mergeClasses(ro.avatar,to),children:jsxRuntimeExports.jsx(OpenAIIcon,{})}):null};function ChatboxMessageList(eo){const{locStrings:to,messages:ro,calcContentForCopy:no,containerRef:oo}=eo,io=useCopyAction(to,no),so=reactExports.useCallback(()=>[io],[io]),ao=useStyles();return jsxRuntimeExports.jsx("div",{ref:oo,className:ao.main,children:jsxRuntimeExports.jsx(MessageListRenderer,{locStrings:to,messages:ro,MessageAvatarRenderer,MessageContentRenderer:RichTextChatboxMessageContent,MessageSenderRenderer,MessageBubbleRenderer:LLMNodeMessageBubbleRenderer,useMessageActions:so})})}ChatboxMessageList.displayName="ChatboxMessageList";const useStyles=makeStyles({main:{...shorthands.padding("0","6px"),...shorthands.overflow("auto"),...shorthands.flex(1),height:"100%"}}),getVariableHoverMarkdown=eo=>{let to="";return typeof eo=="string"?to=eo:to=JSON.stringify(eo),to},useLLMJinjaEditorMount=eo=>reactExports.useCallback(ro=>{const no=Object.keys(eo),oo=ro.getModel();no.forEach(io=>{const so=oo==null?void 0:oo.findMatches(`[^.](${io})\\s*(%|\\})`,!1,!0,!1,null,!1);so==null||so.forEach(ao=>{ro.createDecorationsCollection([{range:{...ao.range,startColumn:ao.range.startColumn+1,endColumn:ao.range.endColumn-1},options:{isWholeLine:!1,inlineClassName:"llm-variable-highlight",hoverMessage:{value:getVariableHoverMarkdown(eo[io])}}}])})})},[eo]),useMessageCardClasses=makeStyles({card:{...shorthands.borderRadius("8px"),...shorthands.borderColor(tokens.colorNeutralStroke1),...shorthands.borderWidth("1px"),...shorthands.borderStyle("solid"),...shorthands.padding("16px"),...shorthands.margin("16px")}}),useClasses$a=makeStyles({root:{height:"100%",display:"flex",flexDirection:"column",...shorthands.overflow("auto")},title:{fontSize:"14px",lineHeight:"20px",fontStyle:"italic",fontWeight:400,color:tokens.colorNeutralForeground1},card:{flexGrow:1,...shorthands.padding("0px"),...shorthands.margin("0px")}}),LLMNodePromptTemplateTab=({promptTemplate:eo,templateVariables:to})=>{const ro=useClasses$a(),no=useMessageCardClasses(),io=useIsDark()?"vs-dark":"light",so=useLLMJinjaEditorMount(to);return jsxRuntimeExports.jsx("div",{className:ro.root,children:jsxRuntimeExports.jsx(Card,{className:mergeClasses(no.card,ro.card),children:jsxRuntimeExports.jsx(JinjaSyntaxHighlighter,{value:eo,theme:io,onMount:so})})})},LLMNodeTools=({tools:eo})=>jsxRuntimeExports.jsx("div",{children:eo.map((to,ro)=>jsxRuntimeExports.jsx(LLMNodeToolCard,{tool:to},ro))}),useLLMNodeClasses=makeStyles({root:{height:"100%",display:"flex"},header:{display:"flex",width:"100%",justifyContent:"space-between"},content:{...shorthands.overflow("auto")}}),LLMNodeInfo=({item:eo})=>{var _o,So,Eo;const to=useSelectedSpan(),ro=useParentSpanOfSelectedSpan(),no=ro==null?void 0:ro.attributes,oo=JSON.parse(((_o=to==null?void 0:to.attributes)==null?void 0:_o.inputs)??"{}"),[io,so]=reactExports.useState(ViewStatus.loading),ao=useLoadSpanEvents(ro,BuildInEventName["prompt.template"]),lo=useSpanEventsWithPayload(ro,BuildInEventName["prompt.template"])[0],uo=lo?(So=lo.attributes)==null?void 0:So["prompt.template"]:no==null?void 0:no["prompt.template"],co=lo?(Eo=lo.attributes)==null?void 0:Eo["prompt.variables"]:JSON.parse((no==null?void 0:no["prompt.variables"])??"{}"),fo=Object.keys(co??{}),po={},{inputMessages:ho,outputMessages:mo,tools:vo}=useMessagesOfSelectedSpan();Object.keys(oo).forEach(ko=>{ko!=="messages"&&(fo.includes(ko)||(po[ko]=oo[ko]))});const bo=[...ho,...mo],xo=useLLMNodeClasses();return reactExports.useEffect(()=>{eo==="promptTemplate"&&ao({onCompleted:ko=>{so(ko?ViewStatus.error:ViewStatus.loaded)}})},[eo]),eo==="raw"?jsxRuntimeExports.jsx(DefaultNodeInfo,{}):eo==="promptTemplate"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[io===ViewStatus.loading&&jsxRuntimeExports.jsx(Spinner,{size:"tiny",style:{marginTop:"30vh"}}),io===ViewStatus.loaded&&uo&&jsxRuntimeExports.jsx(LLMNodePromptTemplateTab,{promptTemplate:uo,templateVariables:co}),io===ViewStatus.error&&jsxRuntimeExports.jsx("div",{style:{marginTop:"30vh",textAlign:"center"},children:jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{so(ViewStatus.loading),ao({onCompleted:ko=>{so(ko?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})})]}):jsxRuntimeExports.jsx(Card,{className:xo.root,children:jsxRuntimeExports.jsxs("div",{className:xo.content,children:[eo==="messages"&&jsxRuntimeExports.jsx(LLMNodeMessagesList,{messages:bo}),eo==="llmParameters"&&jsxRuntimeExports.jsx(LLMNodeInvocationParametersTab,{invocationParameters:po}),eo==="tools"&&jsxRuntimeExports.jsx(LLMNodeTools,{tools:vo})]})})},getMimeTypeFromContentType=eo=>{var ro;return(ro=/^\s*([^;\s]*)(?:;|\s|$)/.exec(eo))==null?void 0:ro[1].toLowerCase()},NodeHttpCard=({type:eo})=>{const to=useLocStrings(),ro=useSelectedSpan(),no=React.useMemo(()=>parseHttpSpanAttributes(ro),[ro]);if(!no)return null;const{urlFull:oo}=no,io=parseInt(no.status_code);let so;io>=200&&io<300?so="success":io>=400?so="danger":so="warning";const ao=jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[no.status_code!==void 0?jsxRuntimeExports.jsxs(Badge$2,{appearance:"outline",color:so,children:[to.Status," ",jsxRuntimeExports.jsx("span",{style:{marginLeft:4},children:no.status_code})]}):null,jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:no.method}),jsxRuntimeExports.jsx("span",{style:{marginRight:8,wordBreak:"break-all"},children:oo})]}),lo=eo==="response"?no.response:no.request;return jsxRuntimeExports.jsx(Card,{style:{marginBottom:12},children:jsxRuntimeExports.jsx(NodeHttpItem,{type:eo,header:ao,data:lo})})},NodeHttpItem=({type:eo,header:to,data:ro})=>{const no=useLocStrings(),{headers:oo,body:io}=ro,so=JSON.stringify(ro),ao=eo==="response",lo=ao?"Response":"Request";let uo;if(io)if(ao){const co=getMimeTypeFromContentType(oo["content-type"]);uo=jsxRuntimeExports.jsx(HttpResponseContent,{mimeType:co,body:io})}else uo=jsxRuntimeExports.jsx(JsonNodeCard,{wrapperStyle:{background:tokens.colorNeutralBackground2},src:io,title:no[`${lo} Body`]});return jsxRuntimeExports.jsx(BasicViewer,{showEmpty:!1,previewRender:()=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(JsonNodeCard,{wrapperStyle:{background:tokens.colorNeutralBackground2},src:oo,title:no[`${lo} Headers`]}),uo]}),rawRender:()=>jsxRuntimeExports.jsx(Card,{style:{wordBreak:"break-all"},children:so}),headerRender:to?()=>to:void 0})},HttpResponseContent=({mimeType:eo,body:to=""})=>{const ro=useLocStrings();return eo!=null&&eo.includes("json")?jsxRuntimeExports.jsx(JsonNodeCard,{wrapperStyle:{background:tokens.colorNeutralBackground2},src:to,title:ro["Response Body"]}):eo==="text/event-stream"?jsxRuntimeExports.jsxs(Card,{style:{marginBottom:12,background:tokens.colorNeutralBackground2},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:ro["Response Body"]})})}),to.split("data:").filter(no=>!!no).map((no,oo)=>jsxRuntimeExports.jsxs("div",{children:["data: ",no]},`${no}-${oo}`))]}):jsxRuntimeExports.jsxs(Card,{style:{marginBottom:12,background:tokens.colorNeutralBackground2},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:ro["Response Body"]})})}),jsxRuntimeExports.jsx("div",{style:{wordBreak:"break-all"},children:to})]})},NodeRawCard=()=>{const eo=useSelectedSpan(),to=useSpanEventsLoadStatus(),ro=useLocStrings(),[,no]=reactExports.useReducer(oo=>oo+1,0);return jsxRuntimeExports.jsx(JsonNodeCard,{title:ro.Raw_JSON,src:eo,jsonViewerProps:{customizeNode:({depth:oo,indexOrName:io,node:so})=>{var lo,uo;if(oo===3&&typeof io=="number"&&typeof so.name=="string"&&typeof so.timestamp=="string"&&typeof so.attributes=="object"){const co=`${(lo=eo==null?void 0:eo.context)==null?void 0:lo.span_id}__${(uo=eo==null?void 0:eo.external_event_data_uris)==null?void 0:uo[io]}`;return to.get(co)==="success"?void 0:jsxRuntimeExports.jsx(NodeEventItem,{name:so.name,index:io,timestamp:so.timestamp,forceUpdate:no})}}}})},NodeEventItem=({index:eo,name:to,timestamp:ro,forceUpdate:no})=>{const oo=useSelectedSpan(),io=useLocStrings(),so=useLoadSpanEvents(oo,to,eo),[ao,lo]=reactExports.useState(ViewStatus.hidden);if(ao===ViewStatus.loaded){no();return}let uo=io.load_all;return ao===ViewStatus.loading?uo=io.loading:ao===ViewStatus.error&&(uo=io["Failed to load, click to try again"]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"{"}),jsxRuntimeExports.jsxs("div",{style:{paddingLeft:"1em"},children:[jsxRuntimeExports.jsx("span",{style:{color:"var(--json-property)"},children:"name:"}),jsxRuntimeExports.jsx("span",{style:{color:"var(--json-string)"},children:` "${to}",`})]}),jsxRuntimeExports.jsxs("div",{style:{paddingLeft:"1em"},children:[jsxRuntimeExports.jsx("span",{style:{color:"var(--json-property)"},children:"timestamp:"}),jsxRuntimeExports.jsx("span",{style:{color:"var(--json-string)"},children:` "${ro}",`})]}),jsxRuntimeExports.jsx("div",{style:{paddingLeft:"1em"},children:jsxRuntimeExports.jsxs(Button$2,{size:"small",appearance:"transparent",style:{padding:0,color:"rgb(163, 190, 233)",justifyContent:"flex-start"},onClick:()=>{lo(ViewStatus.loading),so({onCompleted:co=>{lo(co?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})},children:["... ",uo]})}),jsxRuntimeExports.jsx("span",{children:"}"})]})},RetrievalNodeInfo=()=>{const eo=useSelectedSpan(),to=useLocStrings(),[ro,no]=reactExports.useState(ViewStatus.loading),oo=useLoadSpanEvents(eo,BuildInEventName["retrieval.documents"]),io=useSpanEventsWithPayload(eo,BuildInEventName["retrieval.documents"]),so=(eo==null?void 0:eo.attributes)??{};let ao=[];if(io.length>0)ao=io.map(ho=>ho.attributes).flat();else if(typeof so["retrieval.documents"]=="string")try{ao=JSON.parse(so["retrieval.documents"])}catch{ao=[]}const[lo,uo]=reactExports.useState(ViewStatus.loading),co=useLoadSpanEvents(eo,BuildInEventName["retrieval.query"]),fo=useSpanEventsWithPayload(eo,BuildInEventName["retrieval.query"]);let po=so["retrieval.query"];return fo.length>0&&(po=fo.map(ho=>ho.attributes).join(` -`)),reactExports.useEffect(()=>{oo({onCompleted:ho=>{no(ho?ViewStatus.error:ViewStatus.loaded)}}),co({onCompleted:ho=>{uo(ho?ViewStatus.error:ViewStatus.loaded)}})},[]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Card,{style:{marginBottom:12},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:to.Query})})}),lo===ViewStatus.loading&&jsxRuntimeExports.jsx(Spinner,{size:"tiny"}),lo===ViewStatus.loaded&&(po??""),lo===ViewStatus.error&&jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{uo(ViewStatus.loading),co({onCompleted:ho=>{uo(ho?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})]}),jsxRuntimeExports.jsxs(Card,{style:{marginBottom:12},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:to.Documents})})}),ro===ViewStatus.loading&&jsxRuntimeExports.jsx(Spinner,{size:"tiny"}),ro===ViewStatus.loaded&&jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ao.map(ho=>jsxRuntimeExports.jsx(Document$1,{document:ho},ho["document.id"]))}),ro===ViewStatus.error&&jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{no(ViewStatus.loading),oo({onCompleted:ho=>{no(ho?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})]})]})},Document$1=({document:eo})=>{const to=useRetrievalNodeDetailClasses(),[ro,no]=reactExports.useState(["content"]),oo=reactExports.useCallback((so,ao)=>{no(ao.openItems)},[]),io=useLocStrings();return jsxRuntimeExports.jsxs(Card,{style:{background:tokens.colorNeutralBackground2},children:[jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",columnGap:6},children:[jsxRuntimeExports.jsx(Document16Regular,{}),jsxRuntimeExports.jsx("div",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:jsxRuntimeExports.jsx(Tooltip,{content:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:"id"})," ",eo["document.id"]]}),relationship:"description",children:jsxRuntimeExports.jsxs("span",{children:[io.document," ",eo["document.id"]]})})}),jsxRuntimeExports.jsx(Tooltip,{content:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:io.score})," ",eo["document.score"]]}),relationship:"description",children:jsxRuntimeExports.jsxs(Badge$2,{appearance:"outline",children:["score ",floatFormatter(eo["document.score"])]})})]}),jsxRuntimeExports.jsx(Divider$2,{}),jsxRuntimeExports.jsx(Card,{style:{background:tokens.colorNeutralBackground3},children:jsxRuntimeExports.jsx(Accordion,{openItems:ro,onToggle:oo,collapsible:!0,multiple:!0,children:jsxRuntimeExports.jsxs(AccordionItem,{value:"content",children:[jsxRuntimeExports.jsx(AccordionHeader,{className:to.accordionHeader,children:io.content}),jsxRuntimeExports.jsx(AccordionPanel,{children:jsxRuntimeExports.jsx(MarkdownViewer,{content:eo["document.content"]})})]})})}),jsxRuntimeExports.jsx(JsonNodeCard,{title:"metadata",src:eo["document.metadata"],wrapperStyle:{background:tokens.colorNeutralBackground3}})]})};function SpanType({span:eo,showText:to=!0,className:ro}){const no=useClasses$9(),{color:oo,backgroundColor:io,borderColor:so,icon:ao,text:lo}=reactExports.useMemo(()=>(eo==null?void 0:eo.toLocaleLowerCase())==="flow"?{color:tokens.colorBrandForeground2,backgroundColor:tokens.colorBrandBackground2,borderColor:tokens.colorBrandStroke2,icon:jsxRuntimeExports.jsx(Flow16Regular,{}),text:"Flow"}:(eo==null?void 0:eo.toLocaleLowerCase())==="function"||(eo==null?void 0:eo.toLocaleLowerCase())==="tool"?{color:tokens.colorPaletteBerryForeground2,backgroundColor:tokens.colorPaletteBerryBackground1,borderColor:tokens.colorPaletteBerryBorder1,icon:jsxRuntimeExports.jsx(HexagonThree16Regular,{}),text:"Function"}:(eo==null?void 0:eo.toLocaleLowerCase())==="retrieval"?{color:tokens.colorPaletteDarkOrangeForeground2,backgroundColor:tokens.colorPaletteDarkOrangeBackground1,borderColor:tokens.colorPaletteDarkOrangeBorder1,icon:jsxRuntimeExports.jsx(BranchRequest16Regular,{}),text:"Retrieval"}:(eo==null?void 0:eo.toLocaleLowerCase())==="embedding"?{color:tokens.colorPaletteLightGreenForeground2,backgroundColor:tokens.colorPaletteLightGreenBackground1,borderColor:tokens.colorPaletteLightGreenBorder1,icon:jsxRuntimeExports.jsx(FlowchartRegular,{}),text:"Embedding"}:(eo==null?void 0:eo.toLocaleLowerCase())==="llm"?{color:tokens.colorPaletteMarigoldForeground2,backgroundColor:tokens.colorPaletteMarigoldBackground1,borderColor:tokens.colorPaletteMarigoldBorder1,icon:jsxRuntimeExports.jsx(OpenAIIcon,{styles:{height:"16px",width:"16px"}}),text:"LLM"}:(eo==null?void 0:eo.toLocaleLowerCase())==="network"?{color:tokens.colorPaletteRedForeground2,backgroundColor:tokens.colorPaletteRedBackground1,borderColor:tokens.colorPaletteRedBorder1,icon:jsxRuntimeExports.jsx(Link16Regular,{}),text:"Network"}:{color:tokens.colorPaletteYellowForeground2,backgroundColor:tokens.colorPaletteYellowBackground1,borderColor:tokens.colorPaletteYellowBorder1,icon:jsxRuntimeExports.jsx(QuestionCircle16Regular,{}),text:"Unknown"},[eo]);return jsxRuntimeExports.jsx(Badge$2,{appearance:"filled",size:"large",className:mergeClasses(no.root,ro),icon:ao,style:{color:oo,backgroundColor:io,borderColor:so},children:to&&lo})}const useClasses$9=makeStyles({root:{height:"24px",...shorthands.padding("0","6px")}}),NodeDetail=({emptyTip:eo=jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"No Data"})})=>{var So,Eo,ko,wo,Co;const to=useNodeDetailClasses(),ro=useSelectedSpan(),no=useEvaluationSpansOfSelectedSpan(),oo=useRootSpanIdOfSelectedSpans(),io=useLocStrings(),so=getSpanType(ro),ao=reactExports.useMemo(()=>{var Ro;return oo===((Ro=ro==null?void 0:ro.context)==null?void 0:Ro.span_id)},[oo,ro]),lo=reactExports.useMemo(()=>(so==null?void 0:so.toLowerCase())==="http",[so]),uo=reactExports.useMemo(()=>(so==null?void 0:so.toLowerCase())==="llm",[so]),co=reactExports.useMemo(()=>{const Ro=so==null?void 0:so.toLowerCase();let Ao="Input_&_Output";return Ro==="retrieval"?Ao="Retrieval":Ro==="embedding"&&(Ao="Embedding"),Ao},[so]),fo=[...uo?[{key:"llm_conversations",name:io.Conversations}]:[],...lo?[{key:"response",name:io.Response},{key:"request",name:io.Request}]:[{key:"info",name:io[`${co}`]}],{key:"raw",name:io.Raw_JSON},...uo?[{key:"llm_template",name:io.Prompt_Template},{key:"llm_params",name:io.LLM_Parameters},{key:"llm_tools",name:io.Tools}]:[],...ao?[{key:"evaluations",name:io.Metrics}]:[],{key:"error",name:io.Exception}];let po="info";uo?po="llm_conversations":lo&&(po="response");const[ho,mo]=reactExports.useState(po),vo=(So=ro==null?void 0:ro.events)==null?void 0:So.filter(Ro=>Ro.name===BuildInEventName.exception),bo=(vo==null?void 0:vo.length)??0,xo=no.length??0,_o=(Eo=ro==null?void 0:ro.attributes)!=null&&Eo.inputs?safelyParseJson((ko=ro==null?void 0:ro.attributes)==null?void 0:ko.inputs).model:void 0;return ro?jsxRuntimeExports.jsxs("div",{className:to.wrapper,children:[jsxRuntimeExports.jsxs("div",{className:to.header,children:[so&&jsxRuntimeExports.jsx(SpanType,{span:so,showText:!1,className:to.headerSpan})," ",jsxRuntimeExports.jsx(Tooltip,{content:ro.name??"",relationship:"label",children:jsxRuntimeExports.jsx("div",{className:to.headerTitle,children:`${ro.name}`})}),jsxRuntimeExports.jsxs("div",{className:to.headerRight,children:[_o&&jsxRuntimeExports.jsx("div",{className:to.headerModalName,children:_o}),jsxRuntimeExports.jsx(NodeToken,{span:ro,size:UISize.small}),jsxRuntimeExports.jsx(LatencyText,{startTimeISOString:ro.start_time,endTimeISOString:ro.end_time,size:UISize.small})]})]}),jsxRuntimeExports.jsx(Divider$2,{className:to.headerDivider}),((Co=(wo=ro==null?void 0:ro.status)==null?void 0:wo.status_code)==null?void 0:Co.toLowerCase())==="error"&&jsxRuntimeExports.jsx(MessageBar,{intent:"error",onClick:()=>{mo("error")},style:{cursor:"pointer"},children:jsxRuntimeExports.jsxs(MessageBarBody,{children:[jsxRuntimeExports.jsxs(MessageBarTitle,{children:[" ",io.Error]}),ro.status.message]})}),jsxRuntimeExports.jsx(TabList,{selectedValue:ho,onTabSelect:(Ro,Ao)=>{mo(Ao.value)},children:fo.map(Ro=>jsxRuntimeExports.jsxs(Tab$1,{value:Ro.key,style:{flexShrink:1},children:[Ro.name,Ro.key==="evaluations"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[" ",jsxRuntimeExports.jsx(CounterBadge,{appearance:"filled",color:"informative",count:xo,size:"small",showZero:!0})]}),Ro.key==="error"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[" ",jsxRuntimeExports.jsx(CounterBadge,{appearance:"filled",color:bo>0?"danger":"informative",count:bo,size:"small",showZero:!0})]})]},Ro.key))}),jsxRuntimeExports.jsx(Divider$2,{className:to.tabDivider}),jsxRuntimeExports.jsxs("div",{className:to.content,children:[uo&&ho==="llm_conversations"&&jsxRuntimeExports.jsx(LLMNodeInfo,{item:"messages"}),!lo&&ho==="info"&&jsxRuntimeExports.jsx(NodeInfoCard,{}),lo&&ho==="response"&&jsxRuntimeExports.jsx(NodeHttpCard,{type:"response"}),lo&&ho==="request"&&jsxRuntimeExports.jsx(NodeHttpCard,{type:"request"}),ho==="raw"&&jsxRuntimeExports.jsx(NodeRawCard,{}),uo&&ho==="llm_template"&&jsxRuntimeExports.jsx(LLMNodeInfo,{item:"promptTemplate"}),uo&&ho==="llm_params"&&jsxRuntimeExports.jsx(LLMNodeInfo,{item:"llmParameters"}),uo&&ho==="llm_tools"&&jsxRuntimeExports.jsx(LLMNodeInfo,{item:"tools"}),ao&&ho==="evaluations"&&jsxRuntimeExports.jsx(EvaluationsTab,{}),ho==="error"&&jsxRuntimeExports.jsx(ErrorsTab,{})]})]}):eo},NodeInfoCard=()=>{const eo=useSelectedSpan(),to=getSpanType(eo);switch(to==null?void 0:to.toLowerCase()){case"llm":return jsxRuntimeExports.jsx(LLMNodeInfo,{item:"raw"});case"retrieval":return jsxRuntimeExports.jsx(RetrievalNodeInfo,{});case"embedding":return jsxRuntimeExports.jsx(EmbeddingNodeInfo,{});default:return jsxRuntimeExports.jsx(DefaultNodeInfo,{})}},SpansTreeContext=reactExports.createContext({parentIdLookUp:new Map,collapsedSpanIds:Set$1(),setCollapsedSpanIds:()=>{}}),useIsLeafSpan=eo=>{var no;const ro=reactExports.useContext(SpansTreeContext).parentIdLookUp;return!ro.get(eo)||((no=ro.get(eo))==null?void 0:no.length)===0},useToggleCollapse=()=>{const{setCollapsedSpanIds:eo}=reactExports.useContext(SpansTreeContext);return reactExports.useCallback(to=>{eo(ro=>ro.has(to)?ro.delete(to):ro.add(to))},[eo])},useIsCollapsed=eo=>reactExports.useContext(SpansTreeContext).collapsedSpanIds.has(eo),useClasses$8=makeStyles({root:{height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"flex-start",flexWrap:"nowrap",cursor:"pointer",boxSizing:"border-box",position:"relative",...shorthands.padding("6px","8px"),...shorthands.gap("6px")},toggleButton:{marginLeft:"-6px",marginRight:"-2px"},spanName:{...shorthands.flex(0,1,"auto"),fontSize:"14px",color:tokens.colorNeutralForeground1,...shorthands.overflow("hidden"),textOverflow:"ellipsis",whiteSpace:"nowrap",marginRight:"4px"},lastInputMessage:{...shorthands.margin("0px","0px","0px","4px"),fontSize:"12px",color:tokens.colorNeutralForeground2},lastInputMessageLabel:shorthands.margin("0px","4px","0px","0px"),right:{display:"flex",flexWrap:"nowrap",justifyContent:"flex-end",marginLeft:"auto",...shorthands.flex(0,1,"auto"),...shorthands.padding("0px","10px","0px","0px"),...shorthands.gap(tokens.spacingHorizontalXS)},selectedBar:{position:"absolute",backgroundColor:"#1372ED",width:"3px",height:"24px",left:"0px",...shorthands.borderRadius("3px")}}),TreeNode=({node:eo,span:to})=>{var po,ho,mo,vo,bo,xo;const ro=getSpanType(to),no=bitset.has(GraphNodeStatus.Selected)(eo.status),oo=bitset.has(GraphNodeStatus.Activated)(eo.status),io=useClasses$8(),so=useIsLeafSpan(((po=to.context)==null?void 0:po.span_id)??""),ao=useIsCollapsed(((ho=to.context)==null?void 0:ho.span_id)??""),lo=useToggleCollapse(),uo=tokens.colorNeutralStroke2;let co=tokens.colorNeutralBackground1;no&&(co=tokens.colorNeutralBackground1Selected),oo&&(co=tokens.colorNeutralBackground1Hover);const fo=reactExports.useCallback(_o=>{var So;_o.preventDefault(),_o.stopPropagation(),lo(((So=to.context)==null?void 0:So.span_id)??"")},[(mo=to.context)==null?void 0:mo.span_id,lo]);return jsxRuntimeExports.jsx("foreignObject",{x:eo.x,y:eo.y,width:TREE_NODE_WIDTH,height:TREE_NODE_HEIGHT,style:{borderRadius:tokens.borderRadiusXLarge,border:`1px solid ${uo}`,backgroundColor:co,boxShadow:"0px 1px 2px 0px rgba(0, 0, 0, 0.05)"},children:jsxRuntimeExports.jsxs("div",{className:io.root,children:[no&&jsxRuntimeExports.jsx("div",{className:io.selectedBar}),!so&&jsxRuntimeExports.jsx(Button$2,{size:"small",className:io.toggleButton,onClick:fo,appearance:"transparent",icon:ao?jsxRuntimeExports.jsx(ChevronRight20Regular,{}):jsxRuntimeExports.jsx(ChevronDown20Regular,{})}),ro&&jsxRuntimeExports.jsx(SpanType,{span:ro}),jsxRuntimeExports.jsx(Tooltip,{content:to.name??"",relationship:"label",children:jsxRuntimeExports.jsx("div",{className:io.spanName,children:`${to.name}`})}),jsxRuntimeExports.jsxs("div",{className:io.right,children:[((bo=(vo=to==null?void 0:to.status)==null?void 0:vo.status_code)==null?void 0:bo.toLowerCase())==="error"&&jsxRuntimeExports.jsx(StatusText,{statusCode:(xo=to.status)==null?void 0:xo.status_code,tooltipContent:to.status.message,size:UISize.extraSmall}),jsxRuntimeExports.jsx(NodeToken,{span:to,size:UISize.extraSmall}),jsxRuntimeExports.jsx(LatencyText,{startTimeISOString:to.start_time,endTimeISOString:to.end_time,size:UISize.extraSmall})]})]})})};class NodeConfig{constructor(to){this.options=to}render(to){const ro=this.options.spans.find(no=>{var oo;return((oo=no==null?void 0:no.context)==null?void 0:oo.span_id)===to.model.id});return ro?jsxRuntimeExports.jsx(TreeNode,{node:to.model,span:ro}):null}getMinHeight(){return 0}getMinWidth(){return 0}}const TreeView=()=>{const[eo,to]=reactExports.useState(new Map),[ro,no]=reactExports.useState(Set$1()),oo=useSpansOfSelectedTrace(),io=useSetSelectedSpanId(),so=useSelectedSpanId(),ao=po=>(ho,mo)=>(mo&&mo.type===GraphNodeEvent.Click&&io(mo.node.id),po(ho,mo)),lo=GraphConfigBuilder.default().registerNode(()=>new NodeConfig({spans:oo})).registerPort(()=>new PortConfig).registerEdge(()=>new EdgeConfig).build(),uo=new Set;uo.add(GraphFeatures.ClickNodeToSelect),uo.add(GraphFeatures.CanvasVerticalScrollable),uo.add(GraphFeatures.LimitBoundary),uo.add(GraphFeatures.InvisibleScrollbar);const[co,fo]=useGraphReducer({data:GraphModel.empty(),settings:{features:uo,graphConfig:lo,canvasBoundaryPadding:{top:0,bottom:TREE_NODE_HEIGHT}}},ao);return reactExports.useEffect(()=>{const{graph:po,rootIds:ho,parentIdLookUp:mo}=spansToGraphModel(oo,{collapsedSpanIds:ro});to(mo),fo({type:GraphCanvasEvent.SetData,data:po.selectNodes(vo=>vo.id===ho[0])}),io(ho[0])},[]),reactExports.useEffect(()=>{const{graph:po,rootIds:ho,parentIdLookUp:mo}=spansToGraphModel(oo,{collapsedSpanIds:ro});to(mo),fo({type:GraphCanvasEvent.SetData,data:po.selectNodes(vo=>vo.id===ho[0])})},[ro]),reactExports.useEffect(()=>{so&&fo({type:GraphNodeEvent.Select,nodes:[so]})},[so]),jsxRuntimeExports.jsx(SpansTreeContext.Provider,{value:{parentIdLookUp:eo,collapsedSpanIds:ro,setCollapsedSpanIds:no},children:jsxRuntimeExports.jsx(TreeGraph,{state:co,dispatch:fo})})},TraceDetail=()=>{const eo=useClasses$7(),to=useSelectedSpanId(),ro=reactExports.useRef(null),no=useTraceDetailRefreshKey(),oo=useIsGanttChartOpen(),io=useTraceDetailViewStatus(),so=useTraceDetailLoadingComponent(),ao=useTraceDetailErrorComponent(),lo=useLocStrings();return reactExports.useEffect(()=>{var uo;oo&&((uo=ro.current)==null||uo.updateSize({height:400,width:"100%"}))},[oo]),io===ViewStatus.error?jsxRuntimeExports.jsx(ao,{}):io===ViewStatus.loading?jsxRuntimeExports.jsx(so,{}):io===ViewStatus.hidden?null:jsxRuntimeExports.jsxs("div",{className:eo.root,children:[jsxRuntimeExports.jsx("div",{className:eo.container,children:jsxRuntimeExports.jsxs("div",{className:eo.content,children:[jsxRuntimeExports.jsx(Resizable,{enable:{right:!0},minWidth:100,maxWidth:"60%",defaultSize:{width:TREE_NODE_WIDTH+2*TREE_NODE_INDENT+32,height:"100%"},handleComponent:{right:jsxRuntimeExports.jsx("div",{className:eo.resizeBar})},children:jsxRuntimeExports.jsx("div",{className:eo.leftPane,children:jsxRuntimeExports.jsx(TreeView,{},no)})}),jsxRuntimeExports.jsx("div",{className:eo.rightPane,children:jsxRuntimeExports.jsx(NodeDetail,{emptyTip:jsxRuntimeExports.jsx(MessageBar,{intent:"error",children:lo.No_span_data})},no)},`${to}`)]})}),oo&&jsxRuntimeExports.jsx("div",{className:eo.bottomPane,children:jsxRuntimeExports.jsx(Resizable,{ref:ro,className:eo.ganttContainer,defaultSize:{height:0,width:"100%"},enable:{top:!0},handleComponent:{top:jsxRuntimeExports.jsx("div",{className:eo.resizeBarBottom})},children:jsxRuntimeExports.jsx(GanttView,{},no)})})]})},useClasses$7=makeStyles({root:{width:"100%",height:"100%"},container:{display:"flex",flexDirection:"column",height:"100%",width:"100%"},summary:{display:"flex",alignItems:"stretch",height:"48px",width:"100%",...shorthands.margin("16px"),...shorthands.gap("1rem")},content:{...shorthands.flex(1),display:"flex"},leftPane:{height:"100%",...shorthands.margin("16px",0,0,"16px")},rightPane:{position:"relative",width:"100%",height:"100%",...shorthands.flex(1),...shorthands.overflow("hidden")},bottomPane:{position:"absolute",backgroundColor:tokens.colorNeutralBackground1,bottom:0,width:"100%"},ganttContainer:{...shorthands.padding("16px")},resizeBar:{position:"absolute",top:0,bottom:0,right:"5px",width:"6px",backgroundColor:tokens.colorNeutralBackground3,"::before":{content:"''",position:"absolute",top:"50%",right:"1px",marginTop:"-12px",height:"24px",width:"1px",backgroundColor:tokens.colorNeutralBackground3Pressed},"::after":{content:"''",position:"absolute",top:"50%",left:"1px",marginTop:"-12px",height:"24px",width:"1px",backgroundColor:tokens.colorNeutralBackground3Pressed}},resizeBarBottom:{position:"absolute",left:0,right:0,bottom:"5px",height:"6px",backgroundColor:tokens.colorNeutralBackground3,"::before":{content:"''",position:"absolute",left:"50%",bottom:"1px",marginLeft:"-12px",width:"24px",height:"1px",backgroundColor:tokens.colorNeutralBackground3Pressed},"::after":{content:"''",position:"absolute",left:"50%",top:"1px",marginLeft:"-12px",width:"24px",height:"1px",backgroundColor:tokens.colorNeutralBackground3Pressed}}}),TraceFilter=()=>{const eo=useClasses$6(),to=useTableColumnNames(),[ro,no]=[useTableHiddenColumnKeys(),useSetTableHiddenColumnKeys()],oo=useTraceListShowMetrics(),io=reactExports.useMemo(()=>[...to.normalColumns,...to.evaluationColumns].filter(lo=>!ro.includes(lo.key)).map(lo=>lo.key),[ro,to]),so=(ao,lo)=>{const{optionValue:uo}=lo;uo&&no(ro.includes(uo)?ro.filter(co=>co!==uo):[...ro,uo])};return jsxRuntimeExports.jsxs("div",{className:eo.wrapper,children:[jsxRuntimeExports.jsx(Input,{className:eo.filter,disabled:!0,placeholder:"NOT implement yet"}),jsxRuntimeExports.jsx(Combobox,{multiselect:!0,placeholder:"Columns Filter",selectedOptions:io,onOptionSelect:so,children:jsxRuntimeExports.jsxs("div",{className:eo.popUp,children:[jsxRuntimeExports.jsx(OptionGroup,{label:"Trace Info",children:to.normalColumns.map(ao=>jsxRuntimeExports.jsx(Option$2,{value:ao.key,children:ao.name},ao.key))}),oo&&jsxRuntimeExports.jsx(OptionGroup,{label:"Metrics",children:to.evaluationColumns.map(ao=>jsxRuntimeExports.jsx(Option$2,{value:ao.key,text:"123"+ao.name,children:jsxRuntimeExports.jsx(Tooltip,{relationship:"label",content:ao.name,children:jsxRuntimeExports.jsx("span",{className:eo.optionText,children:ao.name})})},ao.key))})]})})]})},useClasses$6=makeStyles({wrapper:{display:"flex",...shorthands.gap("1rem"),...shorthands.margin(tokens.spacingVerticalM)},filter:{flexGrow:1},popUp:{overflowX:"hidden"},optionText:{display:"block",width:"90%",...shorthands.overflow("hidden"),textOverflow:"ellipsis",whiteSpace:"nowrap"}}),useDebugFunctions=()=>{const eo=useGetAllTraces(),to=useGetAllSpans(),ro=useSelectedTrace(),no=useSpansOfSelectedTrace();reactExports.useEffect(()=>{window.printTracesAndSpans=()=>{const oo=eo();console.log("traces",oo);const io=to();console.log("spans",io)},window.printSelectedTrace=()=>{console.log("selectedTrace",ro)},window.printSpansOfSelectedTrace=()=>{console.log("spansOfSelectedTrace",no)}},[eo,to,ro,no])},useOnClickTraceRow=()=>{const eo=useSetSelectedTraceId();return reactExports.useCallback((to,ro)=>{eo(to==null?void 0:to.trace_id)},[eo])};function useResolvedElement(eo,to){var ro=reactExports.useRef(null),no=reactExports.useRef(null);no.current=to;var oo=reactExports.useRef(null);reactExports.useEffect(function(){io()});var io=reactExports.useCallback(function(){var so=oo.current,ao=no.current,lo=so||(ao?ao instanceof Element?ao:ao.current:null);ro.current&&ro.current.element===lo&&ro.current.subscriber===eo||(ro.current&&ro.current.cleanup&&ro.current.cleanup(),ro.current={element:lo,subscriber:eo,cleanup:lo?eo(lo):void 0})},[eo]);return reactExports.useEffect(function(){return function(){ro.current&&ro.current.cleanup&&(ro.current.cleanup(),ro.current=null)}},[]),reactExports.useCallback(function(so){oo.current=so,io()},[io])}function extractSize(eo,to,ro){return eo[to]?eo[to][0]?eo[to][0][ro]:eo[to][ro]:to==="contentBoxSize"?eo.contentRect[ro==="inlineSize"?"width":"height"]:void 0}function useResizeObserver(eo){eo===void 0&&(eo={});var to=eo.onResize,ro=reactExports.useRef(void 0);ro.current=to;var no=eo.round||Math.round,oo=reactExports.useRef(),io=reactExports.useState({width:void 0,height:void 0}),so=io[0],ao=io[1],lo=reactExports.useRef(!1);reactExports.useEffect(function(){return lo.current=!1,function(){lo.current=!0}},[]);var uo=reactExports.useRef({width:void 0,height:void 0}),co=useResolvedElement(reactExports.useCallback(function(fo){return(!oo.current||oo.current.box!==eo.box||oo.current.round!==no)&&(oo.current={box:eo.box,round:no,instance:new ResizeObserver(function(po){var ho=po[0],mo=eo.box==="border-box"?"borderBoxSize":eo.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",vo=extractSize(ho,mo,"inlineSize"),bo=extractSize(ho,mo,"blockSize"),xo=vo?no(vo):void 0,_o=bo?no(bo):void 0;if(uo.current.width!==xo||uo.current.height!==_o){var So={width:xo,height:_o};uo.current.width=xo,uo.current.height=_o,ro.current?ro.current(So):lo.current||ao(So)}})}),oo.current.instance.observe(fo,{box:eo.box}),function(){oo.current&&oo.current.instance.unobserve(fo)}},[eo.box,no]),eo.ref);return reactExports.useMemo(function(){return{ref:co,width:so.width,height:so.height}},[co,so.width,so.height])}const genStatusChecker=eo=>to=>to===void 0?!1:to.toLowerCase()===eo.toLowerCase(),checkStatus=(eo,to)=>eo===void 0?!1:eo.toLowerCase()===to.toLowerCase(),useTraceListRows=()=>{const eo=useTraces();return reactExports.useMemo(()=>eo.map(to=>convertToTraceListRow(to)),[eo])},BASIC_WIDTH=200,getColumnChildrenCount=eo=>eo.children?eo==null?void 0:eo.children.reduce((to,ro)=>to+getColumnChildrenCount(ro),0):eo.minWidth??BASIC_WIDTH,useTraceListColumns=()=>{const{ref:eo,width:to}=useResizeObserver(),ro=useClasses$5(),no=useTraceListRows(),oo=useOnClickTraceRow(),io=useSetTableColumnNames(),so=useTableHiddenColumnKeys(),ao=useLocStrings(),lo=useTraceListColumnModifier(),uo=useSortableColumns(),co=reactExports.useMemo(()=>genStatusChecker("running"),[]),[fo,po]=React.useState([]);return reactExports.useEffect(()=>{const ho=[{key:"kind",name:ao.Kind,minWidth:120,maxWidth:200,renderCell:({row:Ao})=>co(Ao.status)?jsxRuntimeExports.jsx(CellSkeleton,{}):jsxRuntimeExports.jsx(KindText,{kind:Ao.kind})},{key:"name",name:ao.Name,minWidth:150,maxWidth:300,renderCell:({row:Ao})=>co(Ao.status)?jsxRuntimeExports.jsx(CellSkeleton,{}):jsxRuntimeExports.jsx(Tooltip,{content:Ao.name??"",relationship:"label",children:jsxRuntimeExports.jsx("span",{className:ro.nameCell,title:Ao.name,onClick:()=>{oo(Ao,"name")},children:Ao.name})})},{key:"input",name:ao.Input,minWidth:300,renderCell:({row:Ao})=>co(Ao.status)?jsxRuntimeExports.jsx(CellSkeleton,{height:40}):jsxRuntimeExports.jsx(TraceListJsonCell,{jsonObject:Ao.inputs})},{key:"output",name:ao.Output,minWidth:300,renderCell:({row:Ao})=>co(Ao.status)?jsxRuntimeExports.jsx(CellSkeleton,{height:40}):jsxRuntimeExports.jsx(TraceListJsonCell,{jsonObject:Ao.outputs})},{key:"start_time",name:ao.Start_time,minWidth:150,maxWidth:300,renderCell:({row:Ao})=>jsxRuntimeExports.jsx(TextCellWrapper,{children:jsxRuntimeExports.jsx(TimeText,{time:Ao.start_time})})},{key:"end_time",name:ao.End_time,minWidth:150,maxWidth:300,renderCell:({row:Ao})=>co(Ao.status)?jsxRuntimeExports.jsx(CellSkeleton,{height:40}):jsxRuntimeExports.jsx(TextCellWrapper,{children:jsxRuntimeExports.jsx(TimeText,{time:Ao.end_time})})},{key:"latency",name:ao.Latency,minWidth:120,renderCell:({row:Ao})=>co(Ao.status)?jsxRuntimeExports.jsx(CellSkeleton,{}):jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(LatencyText,{startTimeISOString:Ao.start_time,endTimeISOString:Ao.end_time})})},{key:"total_tokens",name:ao.Total_tokens,minWidth:120,renderCell:({row:Ao})=>co(Ao.status)?jsxRuntimeExports.jsx(CellSkeleton,{}):jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(SummaryToken,{trace:Ao})})},{key:"status",name:ao.Status,minWidth:120,renderCell:({row:Ao})=>jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(StatusText,{statusCode:Ao.status})})}],mo=[];no.forEach(Ao=>{Object.entries(Ao.evaluations??{}).forEach(([Io])=>{!mo.includes(Io)&&Io&&mo.push(Io)})});const vo=mo.map(Ao=>{const Io=[],$o=[];return no.forEach(Bo=>{var jo;const Mo=(jo=Bo.evaluations)==null?void 0:jo[Ao];if(!Mo||!Mo.outputs)return;const Ho=Mo.outputs;Object.keys(Ho).forEach(Oo=>{const Fo=Ho[Oo];!Io.includes(Oo)&&Fo!==null&&(Io.push(Oo),$o.push({key:`evaluation-${Ao}-${Oo}-value`,name:Oo,renderCell:({row:Go})=>{var Zo,Qo,xs;if(co(Go.status))return jsxRuntimeExports.jsx(CellSkeleton,{});let qo;const Xo=(xs=(Qo=(Zo=Go==null?void 0:Go.evaluations)==null?void 0:Zo[Ao])==null?void 0:Qo.outputs)==null?void 0:xs[Oo];return Xo===void 0?qo="N/A":typeof Xo=="number"?qo=formatNumber(Xo):qo=`${Xo}`,qo}}))})}),{name:Ao,key:`evaluation-${Ao}`,children:$o}});let bo=[...ho,{key:"evaluations",name:"Metrics",minWidth:450,children:vo}];bo=lo?lo(bo,no):bo;const xo=bo.filter(Ao=>Ao.key!=="evaluations"),_o=bo.find(Ao=>Ao.key==="evaluations");io({normalColumns:xo.map(Ao=>({name:Ao.name,key:Ao.key})).filter(Ao=>!UN_FILTERABLE_COLUMNS.includes(Ao.name)),evaluationColumns:_o.children.map(Ao=>({name:Ao.name,key:Ao.key}))});const So=xo.filter(Ao=>!so.includes(Ao.key)),Eo={..._o,children:_o.children.filter(Ao=>!so.includes(Ao.key))},ko=[...So,Eo],wo=bo.reduce((Ao,Io)=>Ao+getColumnChildrenCount(Io),0),Co=Ao=>{if(Ao.children)return{...Ao,children:Ao.children.map(Co)};const Io=Ao.minWidth??BASIC_WIDTH,$o=to?(to-24)/wo*Io:200;return{...Ao,width:$o,minWidth:$o}},Ro=ko.map(Co).map(Ao=>{const Io=Ao.key;return Io?{...Ao,key:Ao.key,sortable:!!(Io&&uo.includes(Io))}:Ao});po(Ro)},[no,oo,ro.nameCell,lo,so,ao,io,uo,to,co]),{columns:fo,ref:eo}},useClasses$5=makeStyles({typeBadge:{...shorthands.padding(tokens.spacingVerticalXXS,tokens.spacingHorizontalS)},latencyWrapper:{display:"flex",flexDirection:"row",alignItems:"center",justifyItems:"center","> svg":{marginRight:"5px"}},nameCell:{color:tokens.colorBrandForeground1,fontWeight:tokens.fontWeightSemibold,":hover":{...shorthands.textDecoration("underline")}}}),UN_FILTERABLE_COLUMNS=["Kind","Name"];function TraceList({onRowClick:eo,className:to}){const ro=useClasses$4(),no=useTraceListRows(),{columns:oo,ref:io}=useTraceListColumns(),so=useTraceListViewStatus(),ao=useTraceListLoadingComponent(),lo=useTraceListErrorComponent(),uo=useIsDark();useDebugFunctions();const co=useSortColumn(),fo=useSetSortColumn(),po=co?[co]:[],ho=useOnClickTraceRow(),mo=reactExports.useCallback(vo=>{const{row:bo,column:xo}=vo;ho(bo,xo.key),eo==null||eo(bo)},[ho,eo]);return so===ViewStatus.error?jsxRuntimeExports.jsx(lo,{}):so===ViewStatus.loading?jsxRuntimeExports.jsx(ao,{}):jsxRuntimeExports.jsx("div",{ref:io,className:ro.root,children:jsxRuntimeExports.jsx(DataGrid$1$1,{className:`${ro.grid} ${to??""} ${uo?"rdg-dark":"rdg-light"}`,renderers:{noRowsFallback:jsxRuntimeExports.jsxs("div",{style:{textAlign:"center",gridColumn:"1/-1",display:"flex",alignItems:"center",justifyContent:"center"},children:[jsxRuntimeExports.jsx(TextBulletListSquareWarning24Regular,{}),jsxRuntimeExports.jsx(Text$1,{style:{paddingLeft:"1rem"},children:"No traces found."})]})},rowClass:()=>ro.row,columns:oo,rows:no,headerRowHeight:26,rowHeight:80,onCellClick:mo,defaultColumnOptions:{resizable:!0},sortColumns:po,onSortColumnsChange:vo=>{var bo;fo((bo=vo.slice(-1))==null?void 0:bo[0])}})})}const useClasses$4=makeStyles({root:{display:"flex",flexDirection:"column",flexGrow:1},grid:{},row:{cursor:"pointer"}}),DefaultDetailContainer=({isOpen:eo,setIsOpen:to,header:ro=null,content:no})=>jsxRuntimeExports.jsxs(OverlayDrawer,{position:"end",style:{width:"calc(100% - 48px)"},open:eo,onOpenChange:(oo,io)=>to(io.open),children:[ro,jsxRuntimeExports.jsx("div",{style:{width:"100%",height:"calc(100vh - 40px)"},children:no})]});makeStyles({wrapper:{display:"flex",flexDirection:"column",height:"100%"},divider:{flexGrow:0,...shorthands.margin("16px",0)},grid:{flexGrow:1}});makeStyles({wrapper:{display:"flex",flexDirection:"column",justifyContent:"space-between",...shorthands.flex(0,0,"auto")},horizontal:{flexDirection:"row",alignItems:"center",...shorthands.flex(0,0,"auto")},title:{color:tokens.colorNeutralForeground2,marginBottom:tokens.spacingVerticalXS},data:{color:tokens.colorNeutralForeground1},tagsWrapper:{display:"flex",flexDirection:"row",...shorthands.gap("0.5rem")},tagsWrapperHorizontal:{flexDirection:"column"},timeWrapper:{display:"flex",flexDirection:"row",alignItems:"center",justifyItems:"center","> svg":{marginRight:"5px"}},scoreWrapper:{display:"flex",flexDirection:"row",alignItems:"center","> :first-child":{marginRight:"8px"}}});const defaultLocStrings=new Proxy({},{get:(eo,to)=>to.replace(/_/g," ")}),RegistryWrapper=createRegistry({name:"TraceView"}),Provider=({isDark:eo=!1,viewModel:to,children:ro,locStrings:no=defaultLocStrings,TraceListLoading:oo,TraceListError:io,TraceDetailLoading:so,TraceDetailError:ao})=>{const lo=React.useCallback(uo=>{uo.register(TraceViewModelToken,{useValue:to}),oo&&uo.register(traceListLoadingInjectionToken,{useValue:oo}),io&&uo.register(traceListErrorInjectionToken,{useValue:io}),so&&uo.register(traceDetailLoadingInjectionToken,{useValue:so}),ao&&uo.register(traceDetailErrorInjectionToken,{useValue:ao}),no&&uo.register(locStringsInjectionToken,{useValue:no})},[]);return jsxRuntimeExports.jsx(TraceViewThemeContext.Provider,{value:eo,children:jsxRuntimeExports.jsx(RegistryWrapper,{onInitialize:lo,children:ro})})},ThemeContext=reactExports.createContext({});ThemeContext.displayName="ThemeContext";const ThemeContextProvider=({children:eo})=>{const[to,ro]=reactExports.useState("light");return reactExports.useEffect(()=>{const no=window.matchMedia("(prefers-color-scheme: dark)");ro(no.matches?"dark":"light");const oo=io=>{ro(io.matches?"dark":"light")};return no.addEventListener("change",oo),()=>{no.removeEventListener("change",oo)}},[]),jsxRuntimeExports.jsx(ThemeContext.Provider,{value:{theme:to,setTheme:ro},children:eo})},token="%[a-f0-9]{2}",singleMatcher=new RegExp("("+token+")|([^%]+?)","gi"),multiMatcher=new RegExp("("+token+")+","gi");function decodeComponents(eo,to){try{return[decodeURIComponent(eo.join(""))]}catch{}if(eo.length===1)return eo;to=to||1;const ro=eo.slice(0,to),no=eo.slice(to);return Array.prototype.concat.call([],decodeComponents(ro),decodeComponents(no))}function decode$1(eo){try{return decodeURIComponent(eo)}catch{let to=eo.match(singleMatcher)||[];for(let ro=1;roeo==null,strictUriEncode=eo=>encodeURIComponent(eo).replaceAll(/[!'()*]/g,to=>`%${to.charCodeAt(0).toString(16).toUpperCase()}`),encodeFragmentIdentifier=Symbol("encodeFragmentIdentifier");function encoderForArrayFormat(eo){switch(eo.arrayFormat){case"index":return to=>(ro,no)=>{const oo=ro.length;return no===void 0||eo.skipNull&&no===null||eo.skipEmptyString&&no===""?ro:no===null?[...ro,[encode(to,eo),"[",oo,"]"].join("")]:[...ro,[encode(to,eo),"[",encode(oo,eo),"]=",encode(no,eo)].join("")]};case"bracket":return to=>(ro,no)=>no===void 0||eo.skipNull&&no===null||eo.skipEmptyString&&no===""?ro:no===null?[...ro,[encode(to,eo),"[]"].join("")]:[...ro,[encode(to,eo),"[]=",encode(no,eo)].join("")];case"colon-list-separator":return to=>(ro,no)=>no===void 0||eo.skipNull&&no===null||eo.skipEmptyString&&no===""?ro:no===null?[...ro,[encode(to,eo),":list="].join("")]:[...ro,[encode(to,eo),":list=",encode(no,eo)].join("")];case"comma":case"separator":case"bracket-separator":{const to=eo.arrayFormat==="bracket-separator"?"[]=":"=";return ro=>(no,oo)=>oo===void 0||eo.skipNull&&oo===null||eo.skipEmptyString&&oo===""?no:(oo=oo===null?"":oo,no.length===0?[[encode(ro,eo),to,encode(oo,eo)].join("")]:[[no,encode(oo,eo)].join(eo.arrayFormatSeparator)])}default:return to=>(ro,no)=>no===void 0||eo.skipNull&&no===null||eo.skipEmptyString&&no===""?ro:no===null?[...ro,encode(to,eo)]:[...ro,[encode(to,eo),"=",encode(no,eo)].join("")]}}function parserForArrayFormat(eo){let to;switch(eo.arrayFormat){case"index":return(ro,no,oo)=>{if(to=/\[(\d*)]$/.exec(ro),ro=ro.replace(/\[\d*]$/,""),!to){oo[ro]=no;return}oo[ro]===void 0&&(oo[ro]={}),oo[ro][to[1]]=no};case"bracket":return(ro,no,oo)=>{if(to=/(\[])$/.exec(ro),ro=ro.replace(/\[]$/,""),!to){oo[ro]=no;return}if(oo[ro]===void 0){oo[ro]=[no];return}oo[ro]=[...oo[ro],no]};case"colon-list-separator":return(ro,no,oo)=>{if(to=/(:list)$/.exec(ro),ro=ro.replace(/:list$/,""),!to){oo[ro]=no;return}if(oo[ro]===void 0){oo[ro]=[no];return}oo[ro]=[...oo[ro],no]};case"comma":case"separator":return(ro,no,oo)=>{const io=typeof no=="string"&&no.includes(eo.arrayFormatSeparator),so=typeof no=="string"&&!io&&decode(no,eo).includes(eo.arrayFormatSeparator);no=so?decode(no,eo):no;const ao=io||so?no.split(eo.arrayFormatSeparator).map(lo=>decode(lo,eo)):no===null?no:decode(no,eo);oo[ro]=ao};case"bracket-separator":return(ro,no,oo)=>{const io=/(\[])$/.test(ro);if(ro=ro.replace(/\[]$/,""),!io){oo[ro]=no&&decode(no,eo);return}const so=no===null?[]:no.split(eo.arrayFormatSeparator).map(ao=>decode(ao,eo));if(oo[ro]===void 0){oo[ro]=so;return}oo[ro]=[...oo[ro],...so]};default:return(ro,no,oo)=>{if(oo[ro]===void 0){oo[ro]=no;return}oo[ro]=[...[oo[ro]].flat(),no]}}}function validateArrayFormatSeparator(eo){if(typeof eo!="string"||eo.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function encode(eo,to){return to.encode?to.strict?strictUriEncode(eo):encodeURIComponent(eo):eo}function decode(eo,to){return to.decode?decodeUriComponent(eo):eo}function keysSorter(eo){return Array.isArray(eo)?eo.sort():typeof eo=="object"?keysSorter(Object.keys(eo)).sort((to,ro)=>Number(to)-Number(ro)).map(to=>eo[to]):eo}function removeHash(eo){const to=eo.indexOf("#");return to!==-1&&(eo=eo.slice(0,to)),eo}function getHash(eo){let to="";const ro=eo.indexOf("#");return ro!==-1&&(to=eo.slice(ro)),to}function parseValue(eo,to){return to.parseNumbers&&!Number.isNaN(Number(eo))&&typeof eo=="string"&&eo.trim()!==""?eo=Number(eo):to.parseBooleans&&eo!==null&&(eo.toLowerCase()==="true"||eo.toLowerCase()==="false")&&(eo=eo.toLowerCase()==="true"),eo}function extract(eo){eo=removeHash(eo);const to=eo.indexOf("?");return to===-1?"":eo.slice(to+1)}function parse(eo,to){to={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...to},validateArrayFormatSeparator(to.arrayFormatSeparator);const ro=parserForArrayFormat(to),no=Object.create(null);if(typeof eo!="string"||(eo=eo.trim().replace(/^[?#&]/,""),!eo))return no;for(const oo of eo.split("&")){if(oo==="")continue;const io=to.decode?oo.replaceAll("+"," "):oo;let[so,ao]=splitOnFirst(io,"=");so===void 0&&(so=io),ao=ao===void 0?null:["comma","separator","bracket-separator"].includes(to.arrayFormat)?ao:decode(ao,to),ro(decode(so,to),ao,no)}for(const[oo,io]of Object.entries(no))if(typeof io=="object"&&io!==null)for(const[so,ao]of Object.entries(io))io[so]=parseValue(ao,to);else no[oo]=parseValue(io,to);return to.sort===!1?no:(to.sort===!0?Object.keys(no).sort():Object.keys(no).sort(to.sort)).reduce((oo,io)=>{const so=no[io];return oo[io]=so&&typeof so=="object"&&!Array.isArray(so)?keysSorter(so):so,oo},Object.create(null))}function stringify(eo,to){if(!eo)return"";to={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...to},validateArrayFormatSeparator(to.arrayFormatSeparator);const ro=so=>to.skipNull&&isNullOrUndefined(eo[so])||to.skipEmptyString&&eo[so]==="",no=encoderForArrayFormat(to),oo={};for(const[so,ao]of Object.entries(eo))ro(so)||(oo[so]=ao);const io=Object.keys(oo);return to.sort!==!1&&io.sort(to.sort),io.map(so=>{const ao=eo[so];return ao===void 0?"":ao===null?encode(so,to):Array.isArray(ao)?ao.length===0&&to.arrayFormat==="bracket-separator"?encode(so,to)+"[]":ao.reduce(no(so),[]).join("&"):encode(so,to)+"="+encode(ao,to)}).filter(so=>so.length>0).join("&")}function parseUrl(eo,to){var oo;to={decode:!0,...to};let[ro,no]=splitOnFirst(eo,"#");return ro===void 0&&(ro=eo),{url:((oo=ro==null?void 0:ro.split("?"))==null?void 0:oo[0])??"",query:parse(extract(eo),to),...to&&to.parseFragmentIdentifier&&no?{fragmentIdentifier:decode(no,to)}:{}}}function stringifyUrl(eo,to){to={encode:!0,strict:!0,[encodeFragmentIdentifier]:!0,...to};const ro=removeHash(eo.url).split("?")[0]||"",no=extract(eo.url),oo={...parse(no,{sort:!1}),...eo.query};let io=stringify(oo,to);io&&(io=`?${io}`);let so=getHash(eo.url);if(typeof eo.fragmentIdentifier=="string"){const ao=new URL(ro);ao.hash=eo.fragmentIdentifier,so=to[encodeFragmentIdentifier]?ao.hash:`#${eo.fragmentIdentifier}`}return`${ro}${io}${so}`}function pick(eo,to,ro){ro={parseFragmentIdentifier:!0,[encodeFragmentIdentifier]:!1,...ro};const{url:no,query:oo,fragmentIdentifier:io}=parseUrl(eo,ro);return stringifyUrl({url:no,query:includeKeys(oo,to),fragmentIdentifier:io},ro)}function exclude(eo,to,ro){const no=Array.isArray(to)?oo=>!to.includes(oo):(oo,io)=>!to(oo,io);return pick(eo,no,ro)}const queryString=Object.freeze(Object.defineProperty({__proto__:null,exclude,extract,parse,parseUrl,pick,stringify,stringifyUrl},Symbol.toStringTag,{value:"Module"}));function useHashObject(){const[eo,to]=reactExports.useState(()=>queryString.parse(window.location.hash.substring(1))),ro=reactExports.useCallback(no=>{to(oo=>{const io={...oo,...no},so=queryString.stringify(io);return window.location.hash=so,io})},[]);return reactExports.useEffect(()=>{const no=()=>{to(queryString.parse(window.location.hash.substring(1)))};return window.addEventListener("hashchange",no),()=>window.removeEventListener("hashchange",no)},[]),[eo,ro]}function genLocalUrlParamsWithHash(eo){return isNotNullOrUndefined(eo)?isNotNullOrUndefined(eo.session)?`session=${eo.session}`:isNotNullOrUndefined(eo.experiment)?`experiment=${eo.experiment}`:isNotNullOrUndefined(eo.run)?`run=${eo.run}`:isNotNullOrUndefined(eo.trace)?`trace_ids=${eo.trace}`:"":""}function isNotNullOrUndefined(eo){return eo!=null}const getSummariesSignature=eo=>eo.flatMap(no=>[`${no.line_run_id}_${no.status}`,...Object.values(no.evaluations??[]).map(oo=>`${oo.trace_id}_${oo.status}`)]).sort().join(","),useLocalFetchSummaries=(eo,to)=>{const ro=useTraceViewModel(),[no,oo]=reactExports.useState(!0),io=useLocalFetchSummariesFunc(eo);reactExports.useEffect(()=>{no&&ro.setTraceListStatus(ViewStatus.loading),io().finally(()=>{no&&(oo(!1),ro.setTraceListStatus(ViewStatus.loaded))});let so;return to&&(so=setInterval(io,TRACE_POLLING_GAP)),()=>{so&&clearInterval(so)}},[eo,to])},useLocalFetchSummary=()=>{const eo=useTraceViewModel();return reactExports.useCallback(async ro=>fetch(`${LOCAL_URL_PREFIX}/v1.0/LineRuns/list?trace_ids=${ro}`).then(no=>no.json()).then(no=>{no&&(eo.appendTraces(no),eo.setTraceListStatus(ViewStatus.loaded))}).catch(no=>{eo.setTraceListStatus(ViewStatus.error),eo.appendTraces([]),console.error("Error:",no)}),[eo])},useLocalFetchSummariesFunc=eo=>{const to=useTraceViewModel(),[ro,no]=reactExports.useState(void 0);return async()=>{const io=genLocalUrlParamsWithHash(eo),so=io!==""?`?${io}`:"";return fetch(`${LOCAL_URL_PREFIX}/v1.0/LineRuns/list${so}`).then(ao=>ao.json()).then(ao=>{if(!ao&&Array.isArray(ao))throw new Error("No new traces");const lo=getSummariesSignature(ao);(ro===void 0||lo!==ro)&&(no(lo),to.traces$.clear(),to.appendTraces(ao))}).catch(ao=>{to.setTraceListStatus(ViewStatus.error),to.appendTraces([]),console.error("Error:",ao)})}},useLocalRefreshTraces=eo=>{const to=useTraceViewModel(),ro=useLocalFetchSummariesFunc(eo);return reactExports.useCallback(()=>{to.setTraceListStatus(ViewStatus.loading),ro().then(()=>{to.setTraceListStatus(ViewStatus.loaded)})},[ro,to])},useLocalFetchRunningTraces=()=>{const eo=useTraces(),to=useLocalFetchSummary(),ro=eo.filter(no=>checkStatus(no.status,"running")).map(no=>no.trace_id).filter(no=>no!==void 0);reactExports.useEffect(()=>{let no;return ro.length>0&&(no=setInterval(()=>{ro.forEach(oo=>to(oo))},RUNNING_TRACE_POLLING_GAP)),()=>{no&&clearInterval(no)}},[to,ro])},useLocalTraceDetailDidOpen=eo=>{const to=useTraceViewModel(),ro=useLocalFetchSummary(),no=useFetchLocalSpans();return reactExports.useCallback(async io=>{if(!io)return;let so=to.getTraceById(io);so||(await ro(io),so=to.getTraceById(io));const ao=[io,...Object.values((so==null?void 0:so.evaluations)??[]).map(lo=>lo.trace_id)].filter(lo=>lo!==void 0);eo({uiTraceId:io}),to.setTraceDetailStatus(ViewStatus.loading),no(ao)},[to])},useLocalOnTraceDetailClose=eo=>reactExports.useCallback(()=>{eo({uiTraceId:void 0})},[eo]),useFetchLocalSpans=()=>{const eo=useTraceViewModel();return reactExports.useCallback(ro=>{fetch(`${LOCAL_URL_PREFIX}/v1.0/Spans/list?trace_ids=${ro.join(",")}&lazy_load=${eo.isLazyLoadSpan}`).then(no=>no.json()).then(no=>{eo.appendSpans(no),eo.setTraceDetailStatus(ViewStatus.loaded)}).catch(no=>{console.error("Error:",no),eo.setTraceDetailStatus(ViewStatus.error)})},[eo])},useLocalOnRefreshSpans=()=>{const eo=useLocalFetchSummary(),to=useFetchLocalSpans();return reactExports.useCallback((no,oo)=>{const io=[no,...Object.values((oo==null?void 0:oo.evaluations)??[]).map(so=>so.trace_id)].filter(so=>so!==void 0);eo(no),to(io)},[to,eo])},fetchSpanEvent=eo=>fetch(`${LOCAL_URL_PREFIX}/v1.0/Spans/Event/${eo}`).then(to=>to.json()).then(to=>({status:"success",data:to.attributes.payload})).catch(to=>({status:"error",error:to})),ThemeSwitcher=({style:eo,labelName:to})=>{const ro=useLocStrings(),{theme:no,setTheme:oo}=reactExports.useContext(ThemeContext);return jsxRuntimeExports.jsx(Switch,{label:to||ro["Dark Theme"],labelPosition:"before",checked:no==="dark",onChange:(io,so)=>oo(so.checked?"dark":"light"),style:eo})},LocalCommonHeader=({isStreaming:eo,onIsStreamingChange:to,streamLabelName:ro,slot:no,showRefresh:oo=!1})=>{const io=useClasses$3(),so=useLocStrings(),ao=useTraceViewModel();return jsxRuntimeExports.jsxs("div",{className:io.root,children:[jsxRuntimeExports.jsxs("div",{className:io.wrapper,children:[jsxRuntimeExports.jsx("div",{className:io.main}),oo&&jsxRuntimeExports.jsx(Tooltip,{content:so["Refresh Data"],relationship:"description",children:jsxRuntimeExports.jsx(Button$2,{appearance:"subtle","aria-label":"Refresh",icon:jsxRuntimeExports.jsx(ArrowClockwise16Regular,{}),onClick:()=>ao.refreshTraces()})}),jsxRuntimeExports.jsx(StreamSwitcher,{isStreaming:eo,onIsStreamingChange:to,labelName:ro}),jsxRuntimeExports.jsx(ThemeSwitcher,{})]}),no]})},useClasses$3=makeStyles({root:{display:"flex",flexDirection:"column",width:"100%"},wrapper:{display:"flex",...shorthands.padding(tokens.spacingVerticalXXS,tokens.spacingHorizontalL)},main:{...shorthands.flex(1)}}),LocalOverallMetric=({hash:eo})=>{var ao;const[[to,ro],no]=reactExports.useState([void 0,void 0]),oo=useClasses$2(),io=useTraces(),so=(()=>{if(isNotNullOrUndefined(eo.run)){const lo=eo.run.split(",");if(lo.length===1)return lo[0]}})();return reactExports.useEffect(()=>{so&&Promise.allSettled([fetch(`${LOCAL_URL_PREFIX}/v1.0/Runs/${so}`).then(lo=>lo.json()),fetch(`${LOCAL_URL_PREFIX}/v1.0/Runs/${so}/metrics`).then(lo=>lo.json())]).then(lo=>{lo.some(uo=>uo.status==="rejected")?no([void 0,void 0]):no(lo.map(uo=>uo.value))})},[so]),so&&to&&ro?jsxRuntimeExports.jsxs("div",{className:oo.wrapper,children:[jsxRuntimeExports.jsx("div",{className:oo.title,children:so}),jsxRuntimeExports.jsxs("div",{className:oo.blockListWrapper,children:[jsxRuntimeExports.jsx(InfoBlock,{title:"Total traces:",value:io.length}),isNotNullOrUndefined(to.status)&&jsxRuntimeExports.jsx(InfoBlock,{title:"Status:",value:to.status,slot:jsxRuntimeExports.jsx(StatusText,{statusCode:to.status,showText:!0,size:UISize.small})}),isNotNullOrUndefined(to==null?void 0:to.created_on)&&jsxRuntimeExports.jsx(InfoBlock,{title:"Create on:",value:timeFormat(to.created_on)}),((ao=to==null?void 0:to.properties)==null?void 0:ao.system_metrics)&&jsxRuntimeExports.jsx(SystemMetrics,{systemMetrics:to.properties.system_metrics}),isNotNullOrUndefined(ro)&&Object.keys(ro).length>0&&jsxRuntimeExports.jsx(Metrics,{metrics:ro})]})]}):null},InfoBlock=({title:eo,slot:to,value:ro})=>{const no=useClasses$2();return jsxRuntimeExports.jsxs("div",{className:no.blockWrapper,children:[jsxRuntimeExports.jsx("div",{className:no.blockTitle,children:eo}),to||jsxRuntimeExports.jsx("div",{className:no.blockValue,children:ro.toString()})]})},SYSTEM_METRICS_NAME_MAP={completion_tokens:"Completion tokens",duration:"Duration",prompt_tokens:"Prompt tokens",total_tokens:"Total tokens"},SystemMetrics=({systemMetrics:eo})=>{const to=useClasses$2();return jsxRuntimeExports.jsx(InfoBlock,{title:"System metrics:",slot:jsxRuntimeExports.jsxs("div",{className:to.metricsWrapper,children:[jsxRuntimeExports.jsx("div",{className:to.metricsItemRow,children:["prompt_tokens","total_tokens"].map(ro=>jsxRuntimeExports.jsx("span",{className:to.metricsItem,children:`${SYSTEM_METRICS_NAME_MAP[ro]}: ${eo[ro].toString()}`},ro))}),jsxRuntimeExports.jsx("div",{className:to.metricsItemRow,children:["completion_tokens","duration"].map(ro=>jsxRuntimeExports.jsx("span",{className:to.metricsItem,children:`${SYSTEM_METRICS_NAME_MAP[ro]}: ${eo[ro].toString()}`},ro))})]})})},Metrics=({metrics:eo})=>{const to=useClasses$2();return jsxRuntimeExports.jsx(InfoBlock,{title:"Metrics:",slot:jsxRuntimeExports.jsx("div",{className:to.metricsItemColumn,children:Object.entries(eo).map(([ro,no])=>jsxRuntimeExports.jsx("span",{className:to.metricsItem,children:`${ro}: ${no.toString()}`},ro))})})},useClasses$2=makeStyles({wrapper:{display:"flex",flexDirection:"column",boxSizing:"border-box",...shorthands.gap("6px"),...shorthands.borderRadius("4px"),...shorthands.margin("0","24px"),...shorthands.padding("16px"),...shorthands.border("1px","solid",tokens.colorNeutralStroke2)},title:{fontSize:"16px",fontWeight:600,lineHeight:"22px"},blockListWrapper:{display:"flex",...shorthands.gap("24px")},blockWrapper:{display:"flex",flexDirection:"column",...shorthands.gap("4px")},blockTitle:{fontSize:"12px",fontWeight:"600",lineHeight:"16px"},blockValue:{fontSize:"14px",lineHeight:"20px",fontWeight:"400"},metricsWrapper:{display:"flex",flexDirection:"column",...shorthands.gap("8px")},metricsItemRow:{display:"flex",...shorthands.gap("8px")},metricsItemColumn:{display:"flex",flexDirection:"column",...shorthands.gap("8px")},metricsItem:{fontSize:"12px",lineHeight:"16px",fontWeight:"400",...shorthands.padding("4px","8px"),...shorthands.borderRadius("4px"),...shorthands.border("1px","solid",tokens.colorNeutralStroke1)}}),LocalTraceView=eo=>{const{viewModel:to,isDark:ro}=eo;return jsxRuntimeExports.jsx(Provider,{viewModel:to,isDark:ro,children:jsxRuntimeExports.jsx(TraceViewContent,{...eo})})},TraceViewContent=({hash:eo,setHash:to})=>{const ro=useClasses$1(),no=useIsTraceDetailOpen(),oo=useSetIsTraceDetailOpen(),io=useTraceViewModel(),[so,ao]=reactExports.useState(!1),[lo,uo]=React.useState(!1),[co,fo]=React.useState(!1),po=useSelectedTrace(),ho=useLocalFetchSummary(),mo=useFetchLocalSpans();useLocalFetchSummaries(eo,so),useLocalFetchRunningTraces();const vo=useLocalTraceDetailDidOpen(to),bo=useLocalOnTraceDetailClose(to),xo=useLocalRefreshTraces(eo),_o=useLocalOnRefreshSpans();return reactExports.useEffect(()=>{io.traceDetailDidOpen(vo),io.traceDetailDidClose(bo),io.setOnRefreshTraces(xo),io.onRefreshSpans(_o)},[_o,xo,bo,vo,io]),reactExports.useEffect(()=>{let So;return lo&&no&&po&&co&&(So=setInterval(()=>{const Eo=[po==null?void 0:po.trace_id,...Object.values((po==null?void 0:po.evaluations)??[]).map(ko=>ko.trace_id)].filter(ko=>ko!==void 0);mo(Eo),po.trace_id&&ho(po.trace_id)},SPAN_POLLING_GAP)),()=>{So&&clearInterval(So)}},[co,po,no,io,lo,ho,mo]),reactExports.useEffect(()=>{no&&po&&(checkStatus(po.status,"Running")?uo(!0):uo(!1))},[ho,no,po]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:ro.wrapper,children:[jsxRuntimeExports.jsx(LocalCommonHeader,{isStreaming:so,onIsStreamingChange:ao,showRefresh:!0,slot:jsxRuntimeExports.jsx(LocalOverallMetric,{hash:eo})}),jsxRuntimeExports.jsx(TraceFilter,{}),jsxRuntimeExports.jsx(TraceList,{className:ro.grid,onRowClick:()=>{oo(!0)}})]}),jsxRuntimeExports.jsx(DefaultDetailContainer,{isOpen:no,setIsOpen:oo,header:jsxRuntimeExports.jsx(TraceDetailHeader,{setIsTraceDetailOpen:oo,showStreamSwitch:lo,isStreaming:co,onIsStreamingChange:fo}),content:jsxRuntimeExports.jsx(TraceDetail,{})})]})},useClasses$1=makeStyles({header:{display:"flex",width:"100%"},wrapper:{display:"flex",flexDirection:"column",height:"100%"},divider:{flexGrow:0,...shorthands.margin("16px",0)},grid:{flexGrow:1}});window.TraceView_Version="20240329.3-main";const TraceViewApp=()=>{const[eo,to]=useHashObject(),ro=useClasses(),no=React.useMemo(()=>new TraceViewModel({spanConfig:{fetchSpanEvent}}),[]);return reactExports.useEffect(()=>{isNotNullOrUndefined(eo.uiTraceId)&&no.setTraceDetailOpen(!0,eo.uiTraceId)},[no,eo.uiTraceId]),jsxRuntimeExports.jsx(ThemeContextProvider,{children:jsxRuntimeExports.jsx(ThemeContext.Consumer,{children:({theme:oo})=>{const io=oo==="dark";return jsxRuntimeExports.jsxs(FluentProvider,{theme:io?webDarkTheme:webLightTheme,style:{height:"100%",width:"100%"},children:[jsxRuntimeExports.jsx("style",{dangerouslySetInnerHTML:{__html:` - html, - body { - height: 100%; - width: 100%; - padding: 0; - margin: 0; - box-sizing: border-box; - overflow: hidden; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", - "Droid Sans", "Helvetica Neue", sans-serif; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - } - - #root { - height: 100%; - width: 100%; - display: flex; - } - `}}),jsxRuntimeExports.jsx("div",{className:ro.wrapper,children:jsxRuntimeExports.jsx(LocalTraceView,{viewModel:no,hash:eo,setHash:to,isDark:io})})]})}})})},useClasses=makeStyles({wrapper:{display:"flex",flexDirection:"column",height:"100%"}});client.createRoot(document.getElementById("root")).render(jsxRuntimeExports.jsx(TraceViewApp,{}))});export default KA(); diff --git a/src/promptflow-devkit/promptflow/_sdk/_service/static/index.html b/src/promptflow-devkit/promptflow/_sdk/_service/static/index.html index 01d2a80b782..f61929b7841 100644 --- a/src/promptflow-devkit/promptflow/_sdk/_service/static/index.html +++ b/src/promptflow-devkit/promptflow/_sdk/_service/static/index.html @@ -7,7 +7,7 @@ Trace View - +