@openfin/workspace 24.0.7 → 24.1.0-alpha.06dbecdb

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
- (()=>{var e={211:(e,r,o)=>{"use strict";o.d(r,{v:()=>$t});var t={};o.r(t),o.d(t,{createNamespacedLocalStorage:()=>c,getItem:()=>s,removeItem:()=>l,setItem:()=>i});var a=o(822),n=o(723);const i=(e,r)=>{localStorage.setItem(`${n.$h}-${e}`,r)},s=e=>localStorage.getItem(`${n.$h}-${e}`),l=e=>localStorage.removeItem(`${n.$h}-${e}`),c=e=>({setItem:(r,o)=>{localStorage.setItem(`${e}-${r}`,o)},getItem:r=>localStorage.getItem(`${e}-${r}`),removeItem:r=>localStorage.removeItem(`${e}-${r}`)});var d=o(516);o(70),o(695),o(79);const u={[d.Palette.brandPrimary]:"#0A76D3",[d.Palette.brandPrimaryActive]:"#0A71C9",[d.Palette.brandPrimaryHover]:"#0B84EB",[d.Palette.brandPrimaryFocused]:d.Color.white,[d.Palette.brandPrimaryText]:d.Color.white,[d.Palette.statusSuccess]:d.Color.functional1,[d.Palette.statusWarning]:d.Color.functional10,[d.Palette.statusCritical]:d.Color.functional7,[d.Palette.statusActive]:d.Color.functional3,[d.Palette.contentBackground1]:"#0A76D3",[d.Palette.contentBackground2]:"#000000",[d.Palette.contentBackground3]:"#000000",[d.Palette.contentBackground4]:"#000000",[d.Palette.contentBackground5]:"#000000",[d.Palette.borderNeutral]:d.Color.silverGray},g={...u,[d.Palette.background1]:d.Color.white,[d.Palette.background2]:d.Color.lightGray1,[d.Palette.background3]:d.Color.lightGray2,[d.Palette.background4]:d.Color.lightGray3,[d.Palette.background5]:d.Color.lightGray4,[d.Palette.background6]:d.Color.lightGray5,[d.Palette.brandSecondary]:d.Color.lightGray4,[d.Palette.brandSecondaryActive]:d.Color.lightGray4Active,[d.Palette.brandSecondaryHover]:d.Color.lightGray4Hover,[d.Palette.brandSecondaryFocused]:d.Color.darkGray5,[d.Palette.brandSecondaryText]:d.Color.darkGray5,[d.Palette.inputBackground]:d.Color.lightGray3,[d.Palette.inputColor]:d.Color.darkGray5,[d.Palette.inputPlaceholder]:d.Color.darkGray2,[d.Palette.inputDisabled]:d.Color.neutralGray,[d.Palette.inputFocused]:d.Color.lightGray5,[d.Palette.inputBorder]:d.Color.neutralGray,[d.Palette.textDefault]:d.Color.darkGray5,[d.Palette.textHelp]:d.Color.darkGray3,[d.Palette.textInactive]:d.Color.neutralGray},h={...u,[d.Palette.background1]:d.Color.darkGray6,[d.Palette.background2]:d.Color.darkGray5,[d.Palette.background3]:d.Color.darkGray4,[d.Palette.background4]:d.Color.darkGray3,[d.Palette.background5]:d.Color.darkGray2,[d.Palette.background6]:d.Color.darkGray1,[d.Palette.brandSecondary]:d.Color.darkGray2,[d.Palette.brandSecondaryActive]:d.Color.darkGray2Active,[d.Palette.brandSecondaryHover]:d.Color.darkGray2Hover,[d.Palette.brandSecondaryFocused]:d.Color.white,[d.Palette.brandSecondaryText]:d.Color.white,[d.Palette.inputBackground]:d.Color.darkGray1,[d.Palette.inputColor]:d.Color.white,[d.Palette.inputPlaceholder]:d.Color.lightGray5,[d.Palette.inputDisabled]:d.Color.neutralGray,[d.Palette.inputFocused]:d.Color.lightGray5,[d.Palette.inputBorder]:d.Color.neutralGray,[d.Palette.textDefault]:d.Color.white,[d.Palette.textHelp]:d.Color.lightGray5,[d.Palette.textInactive]:d.Color.neutralGray},p=(d.Color.darkGray5,d.Color.darkGray5,e=>{const r=e.light.toCSS(),o=e.dark.toCSS();return`:root{${r}}\n [data-scheme="dark"] {\n ${o}\n }\n @media (prefers-color-scheme: dark) {\n [data-scheme="system"] {${o} }\n }\n\n @media (prefers-color-scheme: light) {\n [data-scheme="system"] {${r} }\n }\n `});var f;!function(e){e.CurrentWorkspaceId="currentWorkspaceId",e.LastFocusedBrowserWindow="lastFocusedBrowserWindow",e.MachineName="machineName",e.NewTabPageLayout="NewTabPageLayout",e.NewTabPageSort="NewTabPageSort",e.DockPosition="DockPosition",e.SelectedColorScheme="SelectedColorScheme",e.ThemePaletteSheet="ThemePaletteSheet",e.HasMovedStore="HasMovedStore",e.PageDragState="BrowserPageDragState",e.ThemePaletteDefaultScheme="ThemePaletteDefaultScheme"}(f||(f={}));const b=f,v=e=>{if(!e.includes("#"))throw new Error("Invalid hex value, cannot convert to RGB. Hex value begins with a hashtag.");let r=0,o=0,t=0;if(4===e.length)r=`0x${e[1]}${e[1]}`,o=`0x${e[2]}${e[2]}`,t=`0x${e[3]}${e[3]}`;else{if(7!==e.length)throw new Error("Invalid hex string length, cannot convert to RGB.");r=`0x${e[1]}${e[2]}`,o=`0x${e[3]}${e[4]}`,t=`0x${e[5]}${e[6]}`}return[+r,+o,+t]},m=e=>{const r=e;if(r.startsWith("#")){return{rgb:v(r).join(", "),alpha:1}}const o=r.match(/\d{1,3}(\.\d+)?/g);if(o){const[e,r,t,a]=o;return{rgb:`${e}, ${r}, ${t}`,alpha:void 0!==a?parseFloat(a):1}}return{rgb:v(e).join(", "),alpha:1}};var y,k,w,P,M,x,_,S,C,A,I,T;!function(e){e.Left="Left",e.Right="Right",e.Top="Top",e.Bottom="Bottom"}(y||(y={})),function(e){e.UrlChange="URL_CHANGE",e.ViewAdded="VIEW_ADDED",e.ViewRemoved="VIEW_REMOVED",e.PageContextAdded="PAGE_CONTEXT_ADDED",e.PageContextRemoved="PAGE_CONTEXT_REMOVED"}(k||(k={})),function(e){e.NewWindow="NewWindow",e.NewPage="NewPage",e.SavePage="SavePage",e.SavePageAs="SavePageAs",e.Print="Print",e.PrintAll="PrintAll",e.PrintScreen="PrintScreen",e.CloseWindow="CloseWindow",e.RestoreChanges="RestoreChanges",e.SaveWorkspace="SaveWorkspace",e.SaveWorkspaceAs="SaveWorkspaceAs",e.RenameWorkspace="RenameWorkspace",e.SwitchWorkspace="SwitchWorkspace",e.DeleteWorkspace="DeleteWorkspace",e.Downloads="Downloads",e.OpenStorefront="OpenStorefront",e.ManageDesktopSignals="ManageDesktopSignals",e.FindInPage="FindInPage",e.Appearance="Appearance",e.Quit="Quit",e.Custom="Custom"}(w||(w={})),function(e){e.Light="light",e.Dark="dark",e.System="system"}(P||(P={})),function(e){e.Close="Close",e.Duplicate="Duplicate",e.Rename="Rename",e.Save="Save",e.SaveAs="Save As",e.NewPage="New Page",e.DeletePage="Delete Page",e.SaveWorkspaceAs="SaveWorkspaceAs",e.Refresh="Refresh",e.CloseOthers="Close others",e.Delete="Delete",e.Print="Print",e.PrintAll="PrintAll",e.PrintScreen="PrintScreen",e.ManageDesktopSignals="ManageDesktopSignals",e.AddToChannel="AddToChannel",e.Custom="Custom"}(M||(M={})),function(e){e.Lock="Lock",e.ShowHideTabs="ShowHideTabs",e.AddToChanel="AddToChannel",e.ManageDesktopSignals="ManageDesktopSignals",e.FindInPage="FindInPage",e.Print="Print",e.Pin="Pin"}(x||(x={})),function(e){e.EditName="Edit Name",e.Move="Move",e.Delete="Delete"}(_||(_={})),function(e){e.NewView="NewView",e.DuplicateViews="DuplicateView",e.OpenWithDefaultBrowser="OpenWithDefaultBrowser",e.ReloadViews="ReloadTab",e.CloseViews="CloseTab",e.AddToChannel="AddToChannel",e.RemoveFromChannel="RemoveFromChannel",e.Back="Back",e.Forward="Forward",e.Print="Print",e.PrintAll="PrintAll",e.PrintScreen="PrintScreen",e.Custom="Custom"}(S||(S={})),function(e){e.ShowHideTabs="ShowHideTabs",e.ColorLinking="ColorLinking",e.PresetLayouts="PresetLayouts",e.LockUnlockPage="LockUnlockPage",e.SaveMenu="SaveMenu",e.SavePage="SavePage",e.Download="Download",e.Minimise="Minimise",e.Maximise="Maximise",e.Close="Close",e.Custom="Custom"}(C||(C={})),function(e){e.SavePage="SavePage",e.SaveWorkspace="SaveWorkspace",e.SavePageAs="SavePageAs",e.SaveWorkspaceAs="SaveWorkspaceAs",e.Custom="Custom"}(A||(A={})),function(e){e.Browser="browser",e.Platform="platform"}(I||(I={})),function(e){e.CustomButton="CustomButton",e.StoreCustomButton="StoreCustomButton",e.CustomDropdownItem="CustomDropdownItem",e.GlobalContextMenu="GlobalContextMenu",e.ViewTabContextMenu="ViewTabContextMenu",e.PageTabContextMenu="PageTabContextMenu",e.SaveButtonContextMenu="SaveButtonContextMenu",e.API="API"}(T||(T={}));var E;!function(e){e.SAVE_PAGE="SAVE_PAGE",e.SAVE_WORKSPACE="SAVE_WORKSPACE",e.SAVE_PAGE_AS="SAVE_PAGE_AS",e.SAVE_WORKSPACE_AS="SAVE_WORKSPACE_AS",e.RENAME_PAGE="RENAME_PAGE",e.RENAME_WORKSPACE="RENAME_WORKSPACE"}(E||(E={}));const D=P.Dark,F=e=>Object.entries(e).reduce((e,[r,o])=>`${e}--workspace-palette-${r}: ${o};`,""),$=(e,r)=>{const o=!!e.contentBackground5&&"#000000"!==e.contentBackground5,t=!!e.contentBackground4&&"#000000"!==e.contentBackground4,a=m(e.textDefault),n=m(e.textInactive),i=a.rgb,s=n.rgb,l=a.alpha?parseFloat(a.alpha.toString()):1,c=n.alpha?parseFloat(n.alpha.toString()):1;return{dockExpandedContainerBorderRadius:o&&r?"0":"10px",fillerBackgroundColor:t?e.contentBackground4:"inherit","computed-scrollbar-thumb-alpha":l,"computed-scrollbar-track-alpha":c,"scrollbar-thumb-rgb":i,"scrollbar-track-rgb":s}},R=(e,r,o)=>({selectedTab:"dark"===r?e.background3:e.background1,...$(e,o)});var W={89:(e,r,o)=>{e=o.nmd(e);var t="__lodash_hash_undefined__",a=9007199254740991,n="[object Arguments]",i="[object Function]",s="[object Object]",l=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,d={};d["[object Float32Array]"]=d["[object Float64Array]"]=d["[object Int8Array]"]=d["[object Int16Array]"]=d["[object Int32Array]"]=d["[object Uint8Array]"]=d["[object Uint8ClampedArray]"]=d["[object Uint16Array]"]=d["[object Uint32Array]"]=!0,d[n]=d["[object Array]"]=d["[object ArrayBuffer]"]=d["[object Boolean]"]=d["[object DataView]"]=d["[object Date]"]=d["[object Error]"]=d[i]=d["[object Map]"]=d["[object Number]"]=d[s]=d["[object RegExp]"]=d["[object Set]"]=d["[object String]"]=d["[object WeakMap]"]=!1;var u,g,h,p="object"==typeof o.g&&o.g&&o.g.Object===Object&&o.g,f="object"==typeof self&&self&&self.Object===Object&&self,b=p||f||Function("return this")(),v=r&&!r.nodeType&&r,m=v&&e&&!e.nodeType&&e,y=m&&m.exports===v,k=y&&p.process,w=function(){try{return m&&m.require&&m.require("util").types||k&&k.binding&&k.binding("util")}catch(e){}}(),P=w&&w.isTypedArray,M=Array.prototype,x=Function.prototype,_=Object.prototype,S=b["__core-js_shared__"],C=x.toString,A=_.hasOwnProperty,I=(u=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||""))?"Symbol(src)_1."+u:"",T=_.toString,E=C.call(Object),D=RegExp("^"+C.call(A).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),F=y?b.Buffer:void 0,$=b.Symbol,R=b.Uint8Array,W=(F&&F.allocUnsafe,g=Object.getPrototypeOf,h=Object,function(e){return g(h(e))}),z=Object.create,O=_.propertyIsEnumerable,B=M.splice,j=$?$.toStringTag:void 0,L=function(){try{var e=se(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),G=F?F.isBuffer:void 0,U=Math.max,N=Date.now,q=se(b,"Map"),H=se(Object,"create"),V=function(){function e(){}return function(r){if(!ye(r))return{};if(z)return z(r);e.prototype=r;var o=new e;return e.prototype=void 0,o}}();function Y(e){var r=-1,o=null==e?0:e.length;for(this.clear();++r<o;){var t=e[r];this.set(t[0],t[1])}}function Z(e){var r=-1,o=null==e?0:e.length;for(this.clear();++r<o;){var t=e[r];this.set(t[0],t[1])}}function K(e){var r=-1,o=null==e?0:e.length;for(this.clear();++r<o;){var t=e[r];this.set(t[0],t[1])}}function J(e){var r=this.__data__=new Z(e);this.size=r.size}function Q(e,r,o){(void 0!==o&&!ge(e[r],o)||void 0===o&&!(r in e))&&re(e,r,o)}function X(e,r,o){var t=e[r];A.call(e,r)&&ge(t,o)&&(void 0!==o||r in e)||re(e,r,o)}function ee(e,r){for(var o=e.length;o--;)if(ge(e[o][0],r))return o;return-1}function re(e,r,o){"__proto__"==r&&L?L(e,r,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[r]=o}function oe(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":j&&j in Object(e)?function(e){var r=A.call(e,j),o=e[j];try{e[j]=void 0;var t=!0}catch(e){}var a=T.call(e);return t&&(r?e[j]=o:delete e[j]),a}(e):function(e){return T.call(e)}(e)}function te(e){return ke(e)&&oe(e)==n}function ae(e,r,o,t,a){e!==r&&function(e,r,o){for(var t=-1,a=Object(e),n=o(e),i=n.length;i--;){var s=n[++t];if(!1===r(a[s],s))break}}(r,function(n,i){if(a||(a=new J),ye(n))!function(e,r,o,t,a,n,i){var l=de(e,o),c=de(r,o),d=i.get(c);if(d)Q(e,o,d);else{var u,g,h,p,f,b=n?n(l,c,o+"",e,r,i):void 0,v=void 0===b;if(v){var m=pe(c),y=!m&&be(c),k=!m&&!y&&we(c);b=c,m||y||k?pe(l)?b=l:ke(f=l)&&fe(f)?b=function(e,r){var o=-1,t=e.length;for(r||(r=Array(t));++o<t;)r[o]=e[o];return r}(l):y?(v=!1,b=function(e){return e.slice()}(c)):k?(v=!1,p=new(h=(u=c).buffer).constructor(h.byteLength),new R(p).set(new R(h)),g=p,b=new u.constructor(g,u.byteOffset,u.length)):b=[]:function(e){if(!ke(e)||oe(e)!=s)return!1;var r=W(e);if(null===r)return!0;var o=A.call(r,"constructor")&&r.constructor;return"function"==typeof o&&o instanceof o&&C.call(o)==E}(c)||he(c)?(b=l,he(l)?b=function(e){return function(e,r,o){var t=!o;o||(o={});for(var a=-1,n=r.length;++a<n;){var i=r[a],s=void 0;void 0===s&&(s=e[i]),t?re(o,i,s):X(o,i,s)}return o}(e,Pe(e))}(l):ye(l)&&!ve(l)||(b=function(e){return"function"!=typeof e.constructor||ce(e)?{}:V(W(e))}(c))):v=!1}v&&(i.set(c,b),a(b,c,t,n,i),i.delete(c)),Q(e,o,b)}}(e,r,i,o,ae,t,a);else{var l=t?t(de(e,i),n,i+"",e,r,a):void 0;void 0===l&&(l=n),Q(e,i,l)}},Pe)}Y.prototype.clear=function(){this.__data__=H?H(null):{},this.size=0},Y.prototype.delete=function(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r},Y.prototype.get=function(e){var r=this.__data__;if(H){var o=r[e];return o===t?void 0:o}return A.call(r,e)?r[e]:void 0},Y.prototype.has=function(e){var r=this.__data__;return H?void 0!==r[e]:A.call(r,e)},Y.prototype.set=function(e,r){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=H&&void 0===r?t:r,this},Z.prototype.clear=function(){this.__data__=[],this.size=0},Z.prototype.delete=function(e){var r=this.__data__,o=ee(r,e);return!(o<0||(o==r.length-1?r.pop():B.call(r,o,1),--this.size,0))},Z.prototype.get=function(e){var r=this.__data__,o=ee(r,e);return o<0?void 0:r[o][1]},Z.prototype.has=function(e){return ee(this.__data__,e)>-1},Z.prototype.set=function(e,r){var o=this.__data__,t=ee(o,e);return t<0?(++this.size,o.push([e,r])):o[t][1]=r,this},K.prototype.clear=function(){this.size=0,this.__data__={hash:new Y,map:new(q||Z),string:new Y}},K.prototype.delete=function(e){var r=ie(this,e).delete(e);return this.size-=r?1:0,r},K.prototype.get=function(e){return ie(this,e).get(e)},K.prototype.has=function(e){return ie(this,e).has(e)},K.prototype.set=function(e,r){var o=ie(this,e),t=o.size;return o.set(e,r),this.size+=o.size==t?0:1,this},J.prototype.clear=function(){this.__data__=new Z,this.size=0},J.prototype.delete=function(e){var r=this.__data__,o=r.delete(e);return this.size=r.size,o},J.prototype.get=function(e){return this.__data__.get(e)},J.prototype.has=function(e){return this.__data__.has(e)},J.prototype.set=function(e,r){var o=this.__data__;if(o instanceof Z){var t=o.__data__;if(!q||t.length<199)return t.push([e,r]),this.size=++o.size,this;o=this.__data__=new K(t)}return o.set(e,r),this.size=o.size,this};var ne=L?function(e,r){return L(e,"toString",{configurable:!0,enumerable:!1,value:(o=r,function(){return o}),writable:!0});var o}:_e;function ie(e,r){var o,t,a=e.__data__;return("string"==(t=typeof(o=r))||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==o:null===o)?a["string"==typeof r?"string":"hash"]:a.map}function se(e,r){var o=function(e,r){return null==e?void 0:e[r]}(e,r);return function(e){return!(!ye(e)||function(e){return!!I&&I in e}(e))&&(ve(e)?D:l).test(function(e){if(null!=e){try{return C.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}(o)?o:void 0}function le(e,r){var o=typeof e;return!!(r=null==r?a:r)&&("number"==o||"symbol"!=o&&c.test(e))&&e>-1&&e%1==0&&e<r}function ce(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||_)}function de(e,r){if(("constructor"!==r||"function"!=typeof e[r])&&"__proto__"!=r)return e[r]}var ue=function(e){var r=0,o=0;return function(){var t=N(),a=16-(t-o);if(o=t,a>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}(ne);function ge(e,r){return e===r||e!=e&&r!=r}var he=te(function(){return arguments}())?te:function(e){return ke(e)&&A.call(e,"callee")&&!O.call(e,"callee")},pe=Array.isArray;function fe(e){return null!=e&&me(e.length)&&!ve(e)}var be=G||function(){return!1};function ve(e){if(!ye(e))return!1;var r=oe(e);return r==i||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}function me(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function ye(e){var r=typeof e;return null!=e&&("object"==r||"function"==r)}function ke(e){return null!=e&&"object"==typeof e}var we=P?function(e){return function(r){return e(r)}}(P):function(e){return ke(e)&&me(e.length)&&!!d[oe(e)]};function Pe(e){return fe(e)?function(e){var r=pe(e),o=!r&&he(e),t=!r&&!o&&be(e),a=!r&&!o&&!t&&we(e),n=r||o||t||a,i=n?function(e,r){for(var o=-1,t=Array(e);++o<e;)t[o]=r(o);return t}(e.length,String):[],s=i.length;for(var l in e)n&&("length"==l||t&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||le(l,s))||i.push(l);return i}(e):function(e){if(!ye(e))return function(e){var r=[];if(null!=e)for(var o in Object(e))r.push(o);return r}(e);var r=ce(e),o=[];for(var t in e)("constructor"!=t||!r&&A.call(e,t))&&o.push(t);return o}(e)}var Me,xe=(Me=function(e,r,o){ae(e,r,o)},function(e){return ue(function(e,r,o){return r=U(void 0===r?e.length-1:r,0),function(){for(var t=arguments,a=-1,n=U(t.length-r,0),i=Array(n);++a<n;)i[a]=t[r+a];a=-1;for(var s=Array(r+1);++a<r;)s[a]=t[a];return s[r]=o(i),function(e,r,o){switch(o.length){case 0:return e.call(r);case 1:return e.call(r,o[0]);case 2:return e.call(r,o[0],o[1]);case 3:return e.call(r,o[0],o[1],o[2])}return e.apply(r,o)}(e,this,s)}}(e,void 0,_e),e+"")}(function(e,r){var o=-1,t=r.length,a=t>1?r[t-1]:void 0,n=t>2?r[2]:void 0;for(a=Me.length>3&&"function"==typeof a?(t--,a):void 0,n&&function(e,r,o){if(!ye(o))return!1;var t=typeof r;return!!("number"==t?fe(o)&&le(r,o.length):"string"==t&&r in o)&&ge(o[r],e)}(r[0],r[1],n)&&(a=t<3?void 0:a,t=1),e=Object(e);++o<t;){var i=r[o];i&&Me(e,i,o)}return e}));function _e(e){return e}e.exports=xe},436:(e,r,o)=>{var t,a=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,n=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i="\\ud800-\\udfff",s="\\u2700-\\u27bf",l="a-z\\xdf-\\xf6\\xf8-\\xff",c="A-Z\\xc0-\\xd6\\xd8-\\xde",d="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",u="["+d+"]",g="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",h="\\d+",p="["+s+"]",f="["+l+"]",b="[^"+i+d+h+s+l+c+"]",v="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",y="["+c+"]",k="(?:"+f+"|"+b+")",w="(?:"+y+"|"+b+")",P="(?:['’](?:d|ll|m|re|s|t|ve))?",M="(?:['’](?:D|LL|M|RE|S|T|VE))?",x="(?:"+g+"|\\ud83c[\\udffb-\\udfff])?",_="[\\ufe0e\\ufe0f]?",S=_+x+"(?:\\u200d(?:"+["[^"+i+"]",v,m].join("|")+")"+_+x+")*",C="(?:"+[p,v,m].join("|")+")"+S,A=RegExp("['’]","g"),I=RegExp(g,"g"),T=RegExp([y+"?"+f+"+"+P+"(?="+[u,y,"$"].join("|")+")",w+"+"+M+"(?="+[u,y+k,"$"].join("|")+")",y+"?"+k+"+"+P,y+"+"+M,h,C].join("|"),"g"),E=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,D="object"==typeof o.g&&o.g&&o.g.Object===Object&&o.g,F="object"==typeof self&&self&&self.Object===Object&&self,$=D||F||Function("return this")(),R=(t={À:"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",ſ:"ss"},function(e){return null==t?void 0:t[e]}),W=Object.prototype.toString,z=$.Symbol,O=z?z.prototype:void 0,B=O?O.toString:void 0;function j(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==W.call(e)}(e))return B?B.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}(e)}var L,G=(L=function(e,r,o){return e+(o?"-":"")+r.toLowerCase()},function(e){return function(e,r,o){for(var t=-1,a=e?e.length:0;++t<a;)o=r(o,e[t],t,e);return o}(function(e){return function(e){return E.test(e)}(e=j(e))?function(e){return e.match(T)||[]}(e):function(e){return e.match(a)||[]}(e)}(function(e){return(e=j(e))&&e.replace(n,R).replace(I,"")}(e).replace(A,"")),L,"")});e.exports=G}},z={};function O(e){var r=z[e];if(void 0!==r)return r.exports;var o=z[e]={id:e,loaded:!1,exports:{}};return W[e](o,o.exports,O),o.loaded=!0,o.exports}O.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return O.d(r,{a:r}),r},O.d=(e,r)=>{for(var o in r)O.o(r,o)&&!O.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},O.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),O.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),O.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var B=O(89);O.n(B);JSON.parse('{"brand":{"base":{"dark":"rgba(20, 6, 17, 1)","light":"rgba(255, 255, 255, 1)"},"accent":{"dark":"rgba(255, 214, 210, 1)","light":"rgba(100, 30, 85, 1)"}},"icon":{"symbol":"","wordmark":""},"color":{"role":{"focusRing":"{color.role.transparent.50}","overlay":"rgba(0, 0, 0, 0.75)","background":{"1":"{color.generated.scale.1}","2":"{color.generated.scale.2}","3":"{color.generated.scale.3}","4":"{color.generated.scale.4}","5":"{color.generated.scale.5}","6":"{color.generated.scale.6}","base":"{color.role.background.1}","inverse":"{color.generated.foreground.base}","accent":{"stronger":"{color.generated.accent.stronger}","strong":"{color.generated.accent.strong}","base":"{color.generated.accent.base}","soft":"{color.generated.accent.soft}","softer":"{color.generated.accent.softer}","softest":"{color.generated.accent.softest}"},"positive":{"strong":"{color.generated.positive.strong}","base":"{color.generated.positive.base}","soft":"{color.generated.positive.soft}","stronger":"{color.generated.positive.stronger}","softer":"{color.generated.positive.softer}","softest":"{color.generated.positive.softest}"},"warning":{"strong":"{color.generated.warning.strong}","base":"{color.generated.warning.base}","soft":"{color.generated.warning.soft}","stronger":"{color.generated.warning.stronger}","softer":"{color.generated.warning.softer}","softest":"{color.generated.warning.softest}"},"critical":{"strong":"{color.generated.critical.strong}","base":"{color.generated.critical.base}","soft":"{color.generated.critical.soft}","stronger":"{color.generated.critical.stronger}","softer":"{color.generated.critical.softer}","softest":"{color.generated.critical.softest}"},"informative":{"strong":"{color.generated.informative.strong}","base":"{color.generated.informative.base}","soft":"{color.generated.informative.soft}","stronger":"{color.generated.informative.stronger}","softer":"{color.generated.informative.softer}","softest":"{color.generated.informative.softest}"}},"foreground":{"base":"{color.generated.foreground.base}","soft":"{color.generated.foreground.soft}","softer":"{color.generated.foreground.softer}","onPrimary":"{color.generated.background.base}","inverse":"{color.generated.background.base}","neutral":"{color.generated.foreground.base}","positive":"{color.generated.positive.base}","warning":"{color.generated.warning.base}","critical":"{color.generated.critical.base}","accent":{"stronger":"{color.generated.accent.stronger}","strong":"{color.generated.accent.strong}","base":"{color.generated.accent.base}","soft":"{color.generated.accent.soft}","softer":"{color.generated.accent.softer}","softest":"{color.generated.accent.softest}"},"informative":"{color.generated.informative.base}"},"border":{"1":"{color.generated.scale.1}","2":"{color.generated.scale.2}","3":"{color.generated.scale.3}","4":"{color.generated.scale.4}","5":"{color.generated.scale.5}","6":"{color.generated.scale.6}","base":"{color.generated.scale.5}","strong":"{color.generated.foreground.soft}","stronger":"{color.generated.foreground.softer}","accent":{"stronger":"{color.generated.accent.stronger}","strong":"{color.generated.accent.strong}","base":"{color.generated.accent.base}","soft":"{color.generated.accent.soft}","softer":"{color.generated.accent.softer}","softest":"{color.generated.accent.softest}"},"positive":{"strong":"{color.generated.positive.strong}","base":"{color.generated.positive.base}","soft":"{color.generated.positive.soft}","stronger":"{color.generated.positive.stronger}","softer":"{color.generated.positive.softer}","softest":"{color.generated.positive.softest}"},"warning":{"strong":"{color.generated.warning.strong}","base":"{color.generated.warning.base}","soft":"{color.generated.warning.soft}","stronger":"{color.generated.warning.stronger}","softer":"{color.generated.warning.softer}","softest":"{color.generated.warning.softest}"},"critical":{"strong":"{color.generated.critical.strong}","base":"{color.generated.critical.base}","soft":"{color.generated.critical.soft}","stronger":"{color.generated.critical.stronger}","softer":"{color.generated.critical.softer}","softest":"{color.generated.critical.softest}"}},"identifier":{"blue":"{color.generated.identifier.blue}","pink":"{color.generated.identifier.pink}","indigo":"{color.generated.identifier.indigo}","teal":"{color.generated.identifier.teal}","green":"{color.generated.identifier.green}","orange":"{color.generated.identifier.orange}","red":"{color.generated.identifier.red}","yellow":"{color.generated.identifier.yellow}","gray":"{color.generated.identifier.gray}"},"link":{"default":"{color.generated.accent.base}","hover":"{color.generated.accent.stronger}"},"transparent":{"0":{"_inputs":["{color.role.foreground.base}"],"_transforms":[{"type":"alpha","amount":0.001}]},"8":{"_inputs":["{color.role.foreground.base}"],"_transforms":[{"type":"alpha","amount":0.08}]},"12":{"_inputs":["{color.role.foreground.base}"],"_transforms":[{"type":"alpha","amount":0.12}]},"18":{"_inputs":["{color.role.foreground.base}"],"_transforms":[{"type":"alpha","amount":0.18}]},"32":{"_inputs":["{color.role.foreground.base}"],"_transforms":[{"type":"alpha","amount":0.32}]},"50":{"_inputs":["{color.role.foreground.base}"],"_transforms":[{"type":"alpha","amount":0.5}]}}},"generated":{"scale":{"1":"{color.generated.background.base}","2":{"_inputs":["{color.generated.scale.1}",{"color":"{color.generated.foreground.base}","alpha":0.06}]},"3":{"_inputs":["{color.generated.scale.1}",{"color":"{color.generated.foreground.base}","alpha":0.12}]},"4":{"_inputs":["{color.generated.scale.1}",{"color":"{color.generated.foreground.base}","alpha":0.18}]},"5":{"_inputs":["{color.generated.scale.1}",{"color":"{color.generated.foreground.base}","alpha":0.24}]},"6":{"_inputs":["{color.generated.scale.1}",{"color":"{color.generated.foreground.base}","alpha":0.3}]}},"foreground":{"soft":{"_inputs":["{color.generated.background.base}",{"color":"{color.generated.foreground.base}","alpha":0.75}]},"softer":{"_inputs":["{color.generated.background.base}",{"color":"{color.generated.foreground.base}","alpha":0.6}]}}},"enterprise":{"contextMenu":{"background":"{color.role.background.base}","border":"{color.role.border.base}"},"contextMenuItem":{"divider":"{color.role.border.3}","heading":"{color.role.foreground.soft}","default":{"background":{"default":"{color.role.transparent.0}","hover":"{color.role.background.3}","active":"{color.role.background.3}","focus":"{color.role.background.3}"},"text":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}","active":"{color.role.foreground.base}","focus":"{color.role.foreground.base}"},"icon":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}","active":"{color.role.foreground.base}","focus":"{color.role.foreground.base}"}},"critical":{"background":{"default":"{color.role.transparent.0}","hover":"{color.role.background.critical.softest}","active":"{color.role.background.critical.softest}","focus":"{color.role.background.critical.softest}"},"text":{"default":"{color.role.foreground.critical}","hover":"{color.role.foreground.critical}","active":"{color.role.foreground.critical}","focus":"{color.role.foreground.critical}"},"icon":{"default":"{color.role.foreground.critical}","hover":"{color.role.foreground.critical}","active":"{color.role.foreground.critical}","focus":"{color.role.foreground.critical}"}}},"view":{"border":"{color.role.border.base}"},"viewSplitter":{"default":"{color.role.transparent.0}","hover":"{color.role.background.6}"},"window":{"background":"{color.role.background.base}","border":"{color.role.border.base}","text":{"base":"{color.role.foreground.base}","soft":"{color.role.foreground.soft}"}},"topChrome":{"border":"{color.role.border.base}"},"topTab":{"icon":{"default":"{color.role.foreground.soft}","hover":"{color.role.foreground.accent.base}","selected":"{color.role.foreground.accent.base}"},"text":{"default":"{color.role.foreground.soft}","hover":"{color.role.foreground.base}","selected":"{color.role.foreground.base}"},"overflow":{"start":{"default":"{color.enterprise.topTab.background.default}","hover":"{color.enterprise.topTab.background.hover}","selected":"{color.enterprise.topTab.background.selected}"},"middle":{"default":{"_inputs":["{color.enterprise.topTab.overflow.start.default}"],"_transforms":[{"type":"alpha","amount":0.5}]},"hover":{"_inputs":["{color.enterprise.topTab.overflow.start.hover}"],"_transforms":[{"type":"alpha","amount":0.5}]},"selected":{"_inputs":["{color.enterprise.topTab.overflow.start.selected}"],"_transforms":[{"type":"alpha","amount":0.5}]}},"end":{"default":{"_inputs":["{color.enterprise.topTab.overflow.start.default}"],"_transforms":[{"type":"alpha","amount":0}]},"hover":{"_inputs":["{color.enterprise.topTab.overflow.start.hover}"],"_transforms":[{"type":"alpha","amount":0}]},"selected":{"_inputs":["{color.enterprise.topTab.overflow.start.selected}"],"_transforms":[{"type":"alpha","amount":0}]}}},"unsavedIcon":"{color.role.foreground.base}","loader":"{color.role.foreground.base}"},"viewTab":{"border":{"selected":"{color.role.foreground.base}","dragging":"{color.role.foreground.base}"},"icon":{"default":"{color.role.foreground.soft}","hover":"{color.role.foreground.base}","active":"{color.role.foreground.base}","selected":"{color.role.foreground.base}"},"text":{"default":"{color.role.foreground.soft}","hover":"{color.role.foreground.base}","active":"{color.role.foreground.base}","inactive":"{color.role.foreground.soft}","selected":"{color.role.foreground.base}"},"overflow":{"start":{"default":"{color.enterprise.viewTab.background.default}","hover":"{color.enterprise.viewTab.background.hover}","active":"{color.enterprise.viewTab.background.active}","selected":"{color.enterprise.viewTab.background.selected}"},"middle":{"default":{"_inputs":["{color.enterprise.viewTab.overflow.start.default}"],"_transforms":[{"type":"alpha","amount":0.5}]},"hover":{"_inputs":["{color.enterprise.viewTab.overflow.start.hover}"],"_transforms":[{"type":"alpha","amount":0.5}]},"selected":{"_inputs":["{color.enterprise.viewTab.overflow.start.selected}"],"_transforms":[{"type":"alpha","amount":0.5}]}},"end":{"default":{"_inputs":["{color.enterprise.viewTab.overflow.start.default}"],"_transforms":[{"type":"alpha","amount":0}]},"hover":{"_inputs":["{color.enterprise.viewTab.overflow.start.hover}"],"_transforms":[{"type":"alpha","amount":0}]},"selected":{"_inputs":["{color.enterprise.viewTab.overflow.start.selected}"],"_transforms":[{"type":"alpha","amount":0}]}}},"loader":"{color.role.foreground.base}"},"command":{"default":"{color.role.transparent.0}","hover":"{color.role.background.4}"},"shortcutKey":{"background":"{color.role.background.4}","icon":"{color.role.foreground.base}"},"searchBar":{"border":{"default":"{color.role.border.base}","hover":"{color.role.border.6}","active":"{color.role.border.6}","focus":"{color.role.border.strong}"},"icon":{"default":"{color.role.foreground.base}"},"value":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}","active":"{color.role.foreground.base}","focus":"{color.role.foreground.base}","filled":"{color.role.foreground.base}"},"overflow":{"start":{"default":"{color.enterprise.searchBar.background.default}","hover":"{color.enterprise.searchBar.background.hover}"},"middle":{"default":{"_inputs":["{color.enterprise.searchBar.overflow.start.default}"],"_transforms":[{"type":"alpha","amount":0.5}]},"hover":{"_inputs":["{color.enterprise.searchBar.overflow.start.hover}"],"_transforms":[{"type":"alpha","amount":0.5}]}},"end":{"default":{"_inputs":["{color.enterprise.searchBar.overflow.start.default}"],"_transforms":[{"type":"alpha","amount":0}]},"hover":{"_inputs":["{color.enterprise.searchBar.overflow.start.hover}"],"_transforms":[{"type":"alpha","amount":0}]}}}},"searchMenu":{"background":"{color.role.background.base}","border":"{color.role.border.base}","commandBar":"{color.role.background.2}","banner":"{color.role.background.2}","text":{"base":"{color.role.foreground.base}","soft":"{color.role.foreground.soft}"}},"searchResult":{"icon":"{color.shared.icon.accent}","iconBackground":{"default":"{color.role.background.2}","selected":"{color.role.background.1}"},"heading":"{color.role.foreground.soft}","title":"{color.role.foreground.base}","description":"{color.role.foreground.soft}","link":"{color.role.link.default}","background":{"default":"{color.role.transparent.0}","hover":"{color.role.background.3}","selected":"{color.role.background.4}"}},"progressIndicator":{"container":"{color.role.transparent.18}","fill":"{color.role.foreground.accent.base}"},"sidePanel":{"background":{"_value":"{color.role.background.base}","transparent":{"_inputs":["{color.enterprise.sidePanel.background}"],"_transforms":[{"type":"alpha","amount":0}]}},"border":"{color.role.border.base}","icon":"{color.role.foreground.base}","text":{"base":"{color.role.foreground.base}","soft":"{color.role.foreground.soft}","softer":"{color.role.foreground.softer}"}},"listItem":{"background":{"default":"{color.role.transparent.0}","hover":"{color.role.background.3}"},"text":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}"},"icon":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}"},"iconBackground":{"default":"{color.role.background.3}","hover":"{color.role.background.3}"}},"prompt":{"text":"{color.role.foreground.base}","icon":"{color.role.foreground.base}","iconBackground":"{color.role.background.base}","editBorder":"{color.role.border.base}","background":{"default":"{color.role.background.3}","hover":"{color.role.background.4}"}},"composer":{"background":"{color.role.background.2}","border":"{color.role.border.base}","placeholder":"{color.role.foreground.soft}","text":"{color.role.foreground.base}"},"skeletonLoader":{"background":"{color.role.background.2}","template":{"start":{"_inputs":["{color.role.background.3}"],"_transforms":[{"type":"alpha","amount":0}]},"middle":"{color.role.background.4}","end":{"_inputs":["{color.role.background.3}"],"_transforms":[{"type":"alpha","amount":0}]}}},"searchFilter":{"background":{"default":"{color.role.transparent.0}","hover":"{color.role.background.3}","selected":"{color.role.background.accent.softer}","selectedHover":"{color.role.background.accent.soft}"},"border":{"default":"{color.role.border.3}","hover":"{color.role.border.3}","selected":"{color.role.border.accent.base}","selectedHover":"{color.role.border.accent.base}"},"icon":{"default":"{color.role.foreground.soft}","hover":"{color.role.foreground.soft}","selected":"{color.role.background.accent.base}"},"text":{"default":"{color.role.foreground.soft}","hover":"{color.role.foreground.soft}","selected":"{color.role.background.accent.base}"}},"searchTab":{"background":{"default":"{color.role.transparent.0}","hover":"{color.role.background.4}","selected":"{color.role.transparent.0}"},"icon":{"default":"{color.role.foreground.soft}","hover":"{color.role.foreground.soft}","selected":"{color.role.background.accent.base}"},"text":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}","selected":"{color.role.foreground.base}"},"indicator":{"default":"{color.role.transparent.0}","hover":"{color.role.transparent.0}","selected":"{color.role.background.accent.base}"}},"featuredContentItem":{"background":{"default":"{color.role.background.2}","hover":"{color.role.background.4}","selected":"{color.role.background.4}"},"text":{"default":"{color.role.foreground.base}"}}},"shared":{"overlay":"{color.role.overlay}","focusRing":"{color.role.focusRing}","watermark":"{color.role.transparent.50}","modal":{"background":"{color.role.background.base}","border":"{color.role.border.base}","text":{"base":"{color.role.foreground.base}","soft":"{color.role.foreground.soft}"}},"listItem":{"background":{"default":"{color.role.transparent.0}","hover":"{color.role.background.3}","selected":"{color.role.background.3}"},"text":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}","selected":"{color.role.foreground.base}"},"icon":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}","selected":"{color.role.foreground.base}"},"iconBackground":{"default":"{color.role.background.3}","hover":"{color.role.background.3}","selected":"{color.role.background.3}"}},"card":{"text":{"base":"{color.role.foreground.base}","soft":"{color.role.foreground.soft}"},"background":{"default":"{color.role.background.base}","hover":"{color.role.background.base}","selected":"{color.role.background.base}","loading":"rgba(255, 255, 255, 1)"},"border":{"default":"{color.role.border.3}","hover":"{color.role.border.base}","selected":"{color.role.border.accent.base}"},"shadow":{"default":"{color.role.transparent.8}","hover":"{color.role.transparent.12}"}},"banner":{"positive":{"background":"{color.role.background.positive.soft}","border":"{color.role.border.positive.base}","text":"{color.role.foreground.base}","icon":"{color.role.foreground.positive}"},"warning":{"background":"{color.role.background.warning.strong}","border":"{color.role.border.warning.base}","text":"{color.role.foreground.inverse}","icon":"{color.role.foreground.warning}"},"critical":{"background":"{color.role.background.critical.soft}","border":"{color.role.border.critical.base}","text":"{color.role.foreground.base}","icon":"{color.role.foreground.critical}"}},"button":{"default":{"background":{"default":"{color.role.transparent.0}","hover":"{color.role.transparent.12}","selected":"{color.role.background.accent.softer}","pressed":"{color.role.transparent.18}"},"border":{"default":"{color.role.border.base}","hover":"{color.role.border.base}","pressed":"{color.role.border.base}","selected":"{color.role.border.accent.base}"},"icon":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}","pressed":"{color.role.foreground.base}","selected":"{color.role.foreground.accent.base}"},"text":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}","selected":"{color.role.foreground.accent.base}"},"focusRing":"{color.role.focusRing}"},"primary":{"background":{"default":"{color.role.background.accent.base}","hover":"{color.role.background.accent.strong}","pressed":"{color.role.background.accent.stronger}"},"border":{"default":"{color.role.transparent.0}","hover":"{color.role.transparent.0}","pressed":"{color.role.transparent.0}"},"icon":{"default":"{color.role.foreground.onPrimary}","hover":"{color.role.foreground.onPrimary}","pressed":"{color.role.foreground.onPrimary}"},"text":{"default":"{color.role.foreground.onPrimary}","hover":"{color.role.foreground.onPrimary}"},"focusRing":"{color.role.background.accent.soft}"},"subtle":{"background":{"default":"{color.role.transparent.0}","hover":"{color.role.transparent.12}","pressed":"{color.role.transparent.18}"},"border":{"default":"{color.role.transparent.0}","hover":"{color.role.transparent.0}","pressed":"{color.role.transparent.0}"},"icon":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}","pressed":"{color.role.foreground.base}"},"text":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}"}},"critical":{"background":{"default":"{color.role.background.critical.base}","hover":"{color.role.background.critical.strong}","pressed":"{color.role.background.critical.stronger}"},"border":{"default":"{color.role.transparent.0}","hover":"{color.role.transparent.0}","pressed":"{color.role.transparent.0}"},"icon":{"default":"{color.role.foreground.inverse}","hover":"{color.role.foreground.inverse}","pressed":"{color.role.foreground.inverse}"},"text":{"default":"{color.role.foreground.inverse}","hover":"{color.role.foreground.inverse}"},"focusRing":"{color.role.background.critical.soft}"},"ghost":{"icon":{"default":"{color.role.foreground.base}"},"text":{"default":"{color.role.foreground.base}","hover":"{color.role.background.accent.strong}"},"background":"{color.role.transparent.0}"}},"iconButton":{"ghost":{"icon":{"default":"{color.role.foreground.base}"},"background":"{color.role.transparent.0}"},"primary":{"background":{"default":"{color.role.background.accent.base}","hover":"{color.role.background.accent.strong}"},"border":{"default":"{color.role.transparent.0}","hover":"{color.role.transparent.0}","pressed":"{color.role.transparent.0}"},"icon":{"default":"{color.role.foreground.onPrimary}","hover":"{color.role.foreground.onPrimary}","pressed":"{color.role.foreground.onPrimary}"},"focusRing":"{color.role.background.accent.soft}"},"subtle":{"background":{"default":"{color.role.transparent.0}","hover":"{color.role.transparent.12}","pressed":"{color.role.transparent.18}"},"border":{"default":"{color.role.transparent.0}","hover":"{color.role.transparent.0}","pressed":"{color.role.transparent.0}"},"icon":{"default":"{color.role.foreground.soft}","hover":"{color.role.foreground.soft}","pressed":"{color.role.foreground.soft}"}},"default":{"background":{"default":"{color.role.transparent.0}","hover":"{color.role.transparent.12}","selected":"{color.role.background.accent.softer}","pressed":"{color.role.transparent.18}"},"border":{"default":"{color.role.border.base}","hover":"{color.role.border.base}","pressed":"{color.role.border.base}","selected":"{color.role.border.accent.base}"},"icon":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}","pressed":"{color.role.foreground.base}","selected":"{color.role.foreground.accent.base}"},"focusRing":"{color.role.focusRing}"}},"icon":{"base":"{color.role.foreground.base}","soft":"{color.role.foreground.soft}","error":"{color.role.foreground.critical}","background3":"{color.role.background.3}","background1":"{color.role.background.1}","accent":"{color.role.foreground.accent.base}","border":"{color.role.foreground.base}","accentTransparent":{"_inputs":["{color.shared.icon.accent}"],"_transforms":[{"type":"alpha","amount":0.16}]}},"dock":{"background":"{color.role.background.base}","dragIndicator":"{color.role.foreground.soft}","border":"{color.role.border.base}"},"indicator":{"text":"{color.role.foreground.inverse}","background":{"blue":"{color.role.identifier.blue}","orange":"{color.role.identifier.orange}","indigo":"{color.role.identifier.indigo}","pink":"{color.role.identifier.pink}","yellow":"{color.role.identifier.yellow}","green":"{color.role.identifier.green}","teal":"{color.role.identifier.teal}","red":"{color.role.identifier.red}","expired":"{color.role.background.6}","transparent":"{color.role.transparent.0}"}},"notification":{"background":"{color.role.background.3}","border":"{color.role.border.base}","text":{"base":"{color.role.foreground.base}","soft":"{color.role.foreground.soft}"}},"placementOption":{"text":{"default":"{color.role.foreground.base}"},"backdrop":"{color.role.background.2}","background":{"default":"{color.role.transparent.0}","hover":"{color.role.background.4}","selected":"{color.role.background.6}"},"previewObject":{"default":"{color.role.background.5}","hover":"{color.role.background.accent.base}","selected":"{color.role.background.accent.base}"}},"platformSelector":{"underline":"{color.role.border.base}"},"notificationCenter":{"background":"{color.role.background.base}","border":"{color.role.border.base}","text":{"base":"{color.role.foreground.base}","soft":"{color.role.foreground.soft}"},"icon":{"base":"{color.role.foreground.base}","soft":"{color.role.foreground.soft}"}},"toggle":{"track":{"off":"{color.role.transparent.32}","on":"{color.role.background.accent.base}"},"thumb":{"off":"{color.role.foreground.base}","on":"{color.role.foreground.onPrimary}"}},"colorChannel":{"blue":"{color.role.identifier.blue}","pink":"{color.role.identifier.pink}","indigo":"{color.role.identifier.indigo}","teal":"{color.role.identifier.teal}","green":"{color.role.identifier.green}","orange":"{color.role.identifier.orange}","red":"{color.role.identifier.red}","yellow":"{color.role.identifier.yellow}","gray":"{color.role.identifier.gray}","unlink":"{color.role.foreground.base}","selected":"{color.role.background.base}"},"dropzone":{"border":"{color.role.border.accent.base}","background":{"_inputs":["{color.role.background.accent.base}"],"_transforms":[{"type":"alpha","amount":0.25}]}},"form":{"label":"{color.role.foreground.base}","helpIcon":"{color.role.foreground.soft}","optionalDot":"{color.role.foreground.critical}","background":{"default":"{color.role.transparent.0}","hover":"{color.role.transparent.0}","focus":"{color.role.transparent.0}","filled":"{color.role.transparent.0}","error":"{color.role.transparent.0}","selected":"{color.role.background.accent.base}"},"border":{"default":"{color.role.border.base}","hover":"{color.role.border.6}","focus":"{color.role.border.strong}","filled":"{color.role.border.base}","error":"{color.role.border.critical.base}","selected":"{color.role.border.accent.base}"},"placeholder":{"default":"{color.role.foreground.soft}","hover":"{color.role.foreground.soft}","focus":"{color.role.foreground.soft}"},"icon":{"default":"{color.role.foreground.soft}","focus":"{color.role.foreground.base}","selected":"{color.role.foreground.onPrimary}"},"value":{"default":"{color.role.foreground.soft}","hover":"{color.role.foreground.soft}","focus":"{color.role.foreground.base}","filled":"{color.role.foreground.base}"},"errorMessage":{"background":"{color.role.background.critical.softest}","text":"{color.role.foreground.critical}","icon":"{color.role.foreground.critical}"},"focusRing":"{color.role.border.accent.soft}","hint":"{color.role.foreground.softer}"},"scrollBar":{"area":"{color.role.transparent.32}","bar":"{color.role.transparent.50}"}},"coreui":{"home":{"background":"{color.role.background.2}","border":"{color.role.border.4}"},"homeInput":{"background":{"default":"{color.role.background.4}","hover":"{color.role.background.4}","active":"{color.role.background.4}","focus":"{color.role.background.4}"},"value":{"default":"{color.role.foreground.soft}","hover":"{color.role.foreground.soft}","active":"{color.role.foreground.base}","filled":"{color.role.foreground.base}"},"border":{"active":"{color.role.border.base}","focus":"{color.role.border.base}"}},"homeResult":{"icon":"{color.role.foreground.base}","background":{"default":"{color.role.transparent.0}","hover":"{color.role.background.3}","selected":"{color.role.background.6}","launching":"{color.role.background.6}"},"title":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}","selected":"{color.role.foreground.base}","launching":"{color.role.foreground.base}"},"description":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}","selected":"{color.role.foreground.base}","launching":"{color.role.foreground.base}"}},"homeTemplate":{"background":"{color.role.background.3}","icon":"{color.role.foreground.base}","text":{"base":"{color.role.foreground.base}","soft":"{color.role.foreground.soft}"}},"homeCard":{"background":"{color.role.background.3}"},"homeHotkey":{"background":"{color.role.background.6}","icon":"{color.role.foreground.base}","text":"{color.role.foreground.base}"},"homeText":{"base":"{color.role.foreground.base}","soft":"{color.role.foreground.soft}"},"store":{"background":"{color.role.background.2}"},"storeBanner":{"background":"{color.role.background.accent.base}","button":{"background":{"default":"{color.role.background.base}","hover":"{color.role.background.base}"},"text":{"default":"{color.role.foreground.accent.base}","hover":"{color.role.background.accent.base}"},"icon":{"default":"{color.role.background.accent.base}","hover":"{color.role.background.accent.base}"}},"header":{"title":"{color.role.foreground.onPrimary}","description":"{color.role.foreground.onPrimary}"}},"storeInput":{"background":{"default":"{color.role.background.4}","hover":"{color.role.background.4}","active":"{color.role.background.4}","filled":"{color.role.background.4}","error":"{color.role.background.4}"},"border":{"active":"{color.role.border.base}","focus":"{color.role.border.base}","error":"{color.role.border.critical.base}"},"value":{"default":"{color.role.foreground.soft}","hover":"{color.role.foreground.soft}","active":"{color.role.foreground.soft}","filled":"{color.role.foreground.base}","error":"{color.role.foreground.critical}"},"icon":"{color.role.foreground.base}"},"storeSidebar":{"background":"{color.role.background.3}","header":"{color.role.foreground.base}"},"storeCard":{"background":{"default":"{color.role.transparent.0}","hover":"{color.role.background.4}"},"title":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}"},"description":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}"}},"storeMenuItem":{"text":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}"},"background":{"default":"{color.role.transparent.0}","hover":"{color.role.background.3}"},"category":"{color.role.foreground.soft}"},"storeFooter":{"link":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}"},"tagline":"{color.role.foreground.base}","icon":"{color.role.foreground.base}"},"browser":{"background":"{color.role.background.1}","border":"{color.role.border.base}"},"browserTopBar":{"background":"{color.role.background.2}","border":"{color.role.border.base}"},"browserToolbarIcon":{"default":"{color.role.foreground.base}","focus":"{color.role.foreground.base}","selected":"{color.role.foreground.onPrimary}","active":"{color.role.foreground.base}","hover":"{color.role.foreground.base}","background":{"default":"{color.role.transparent.0}","focus":"{color.role.transparent.0}","selected":"{color.role.background.accent.base}","active":"{color.role.transparent.0}","hover":"{color.role.background.4}"}},"browserViewSplitter":{"default":"{color.role.background.1}","hover":"{color.role.background.3}"},"browserPageTab":{"text":{"default":"{color.role.foreground.base}","selected":"{color.role.background.base}"},"background":{"default":"{color.role.background.4}","selected":"{color.role.background.accent.base}"},"icon":{"default":"{color.role.foreground.base}","selected":"{color.role.foreground.onPrimary}"}},"browserViewTab":{"background":{"default":"{color.role.transparent.0}","hover":"{color.role.background.3}","active":"{color.role.background.2}","focus":"{color.role.background.2}"},"text":{"default":"{color.role.foreground.base}"},"border":{"active":"{color.role.border.5}","focus":"{color.role.border.5}"},"icon":"{color.role.foreground.base}"},"browserView":{"border":{"default":"{color.role.transparent.0}","focus":"{color.role.border.base}","green":"{color.role.identifier.green}","purple":"{color.role.identifier.indigo}","orange":"{color.role.identifier.orange}","red":"{color.role.identifier.red}","pink":"{color.role.identifier.pink}","yellow":"{color.role.identifier.yellow}"},"icon":"{color.role.foreground.base}"}},"admin":{"1":"#ffffff","color":"#ffffff","color2":"#ffffff"},"_utilities":{"green":"{color.role.background.positive.base}","red":"{color.role.background.critical.base}","appBackground1":"{color.role.background.1}","loader":"#e3e1e200","dataViz":{"linePlot":"{color.role.border.accent.base}"},"teamsProfiles":{"text":{"red":"#76213e","green":"#164229","yellow":"#805d0b","orange":"#56392b","purple":"#282155","blue":"#0f3157"},"background":{"red":"#f5d4df","green":"#cfe0d6","yellow":"#fdefca","orange":"#e8ddd9","purple":"#d6d4e9","blue":"#cddaea"}},"appBackground2":"{color.role.background.2}","appBackground3":"{color.role.background.3}"}},"colorPrimitives":{"green":{"50":{"_inputs":["{colorPrimitives.green.500}",{"color":"rgba(255, 255, 255, 0.9)"}]},"100":{"_inputs":["{colorPrimitives.green.500}",{"color":"rgba(255, 255, 255, 0.8)"}]},"200":{"_inputs":["{colorPrimitives.green.500}",{"color":"rgba(255, 255, 255, 0.6)"}]},"300":{"_inputs":["{colorPrimitives.green.500}",{"color":"rgba(255, 255, 255, 0.4)"}]},"400":{"_inputs":["{colorPrimitives.green.500}",{"color":"rgba(255, 255, 255, 0.2)"}]},"500":"{colorPrimitives.green.base}","600":{"_inputs":["{colorPrimitives.green.500}",{"color":"rgba(0, 0, 0, 0.2)"}]},"700":{"_inputs":["{colorPrimitives.green.500}",{"color":"rgba(0, 0, 0, 0.4)"}]},"800":{"_inputs":["{colorPrimitives.green.500}",{"color":"rgba(0, 0, 0, 0.6)"}]},"900":{"_inputs":["{colorPrimitives.green.500}",{"color":"rgba(0, 0, 0, 0.8)"}]}},"blue":{"50":{"_inputs":["{colorPrimitives.blue.500}",{"color":"rgba(255, 255, 255, 0.9)"}]},"100":{"_inputs":["{colorPrimitives.blue.500}",{"color":"rgba(255, 255, 255, 0.8)"}]},"200":{"_inputs":["{colorPrimitives.blue.500}",{"color":"rgba(255, 255, 255, 0.6)"}]},"300":{"_inputs":["{colorPrimitives.blue.500}",{"color":"rgba(255, 255, 255, 0.4)"}]},"400":{"_inputs":["{colorPrimitives.blue.500}",{"color":"rgba(255, 255, 255, 0.2)"}]},"500":"{colorPrimitives.blue.base}","600":{"_inputs":["{colorPrimitives.blue.500}",{"color":"rgba(0, 0, 0, 0.2)"}]},"700":{"_inputs":["{colorPrimitives.blue.500}",{"color":"rgba(0, 0, 0, 0.4)"}]},"800":{"_inputs":["{colorPrimitives.blue.500}",{"color":"rgba(0, 0, 0, 0.6)"}]},"900":{"_inputs":["{colorPrimitives.blue.500}",{"color":"rgba(0, 0, 0, 0.8)"}]}},"indigo":{"50":{"_inputs":["{colorPrimitives.indigo.500}",{"color":"rgba(255, 255, 255, 0.9)"}]},"100":{"_inputs":["{colorPrimitives.indigo.500}",{"color":"rgba(255, 255, 255, 0.8)"}]},"200":{"_inputs":["{colorPrimitives.indigo.500}",{"color":"rgba(255, 255, 255, 0.6)"}]},"300":{"_inputs":["{colorPrimitives.indigo.500}",{"color":"rgba(255, 255, 255, 0.4)"}]},"400":{"_inputs":["{colorPrimitives.indigo.500}",{"color":"rgba(255, 255, 255, 0.2)"}]},"500":"{colorPrimitives.indigo.base}","600":{"_inputs":["{colorPrimitives.indigo.500}",{"color":"rgba(0, 0, 0, 0.2)"}]},"700":{"_inputs":["{colorPrimitives.indigo.500}",{"color":"rgba(0, 0, 0, 0.4)"}]},"800":{"_inputs":["{colorPrimitives.indigo.500}",{"color":"rgba(0, 0, 0, 0.6)"}]},"900":{"_inputs":["{colorPrimitives.indigo.500}",{"color":"rgba(0, 0, 0, 0.8)"}]}},"pink":{"50":{"_inputs":["{colorPrimitives.pink.500}",{"color":"rgba(255, 255, 255, 0.9)"}]},"100":{"_inputs":["{colorPrimitives.pink.500}",{"color":"rgba(255, 255, 255, 0.8)"}]},"200":{"_inputs":["{colorPrimitives.pink.500}",{"color":"rgba(255, 255, 255, 0.6)"}]},"300":{"_inputs":["{colorPrimitives.pink.500}",{"color":"rgba(255, 255, 255, 0.4)"}]},"400":{"_inputs":["{colorPrimitives.pink.500}",{"color":"rgba(255, 255, 255, 0.2)"}]},"500":"{colorPrimitives.pink.base}","600":{"_inputs":["{colorPrimitives.pink.500}",{"color":"rgba(0, 0, 0, 0.2)"}]},"700":{"_inputs":["{colorPrimitives.pink.500}",{"color":"rgba(0, 0, 0, 0.4)"}]},"800":{"_inputs":["{colorPrimitives.pink.500}",{"color":"rgba(0, 0, 0, 0.6)"}]},"900":{"_inputs":["{colorPrimitives.pink.500}",{"color":"rgba(0, 0, 0, 0.8)"}]}},"orange":{"50":{"_inputs":["{colorPrimitives.orange.500}",{"color":"rgba(255, 255, 255, 0.9)"}]},"100":{"_inputs":["{colorPrimitives.orange.500}",{"color":"rgba(255, 255, 255, 0.8)"}]},"200":{"_inputs":["{colorPrimitives.orange.500}",{"color":"rgba(255, 255, 255, 0.6)"}]},"300":{"_inputs":["{colorPrimitives.orange.500}",{"color":"rgba(255, 255, 255, 0.4)"}]},"400":{"_inputs":["{colorPrimitives.orange.500}",{"color":"rgba(255, 255, 255, 0.2)"}]},"500":"{colorPrimitives.orange.base}","600":{"_inputs":["{colorPrimitives.orange.500}",{"color":"rgba(0, 0, 0, 0.2)"}]},"700":{"_inputs":["{colorPrimitives.orange.500}",{"color":"rgba(0, 0, 0, 0.4)"}]},"800":{"_inputs":["{colorPrimitives.orange.500}",{"color":"rgba(0, 0, 0, 0.6)"}]},"900":{"_inputs":["{colorPrimitives.orange.500}",{"color":"rgba(0, 0, 0, 0.8)"}]}},"teal":{"50":{"_inputs":["{colorPrimitives.teal.500}",{"color":"rgba(255, 255, 255, 0.9)"}]},"100":{"_inputs":["{colorPrimitives.teal.500}",{"color":"rgba(255, 255, 255, 0.8)"}]},"200":{"_inputs":["{colorPrimitives.teal.500}",{"color":"rgba(255, 255, 255, 0.6)"}]},"300":{"_inputs":["{colorPrimitives.teal.500}",{"color":"rgba(255, 255, 255, 0.4)"}]},"400":{"_inputs":["{colorPrimitives.teal.500}",{"color":"rgba(255, 255, 255, 0.2)"}]},"500":"{colorPrimitives.teal.base}","600":{"_inputs":["{colorPrimitives.teal.500}",{"color":"rgba(0, 0, 0, 0.2)"}]},"700":{"_inputs":["{colorPrimitives.teal.500}",{"color":"rgba(0, 0, 0, 0.4)"}]},"800":{"_inputs":["{colorPrimitives.teal.500}",{"color":"rgba(0, 0, 0, 0.6)"}]},"900":{"_inputs":["{colorPrimitives.teal.500}",{"color":"rgba(0, 0, 0, 0.8)"}]}},"red":{"50":{"_inputs":["{colorPrimitives.red.500}",{"color":"rgba(255, 255, 255, 0.9)"}]},"100":{"_inputs":["{colorPrimitives.red.500}",{"color":"rgba(255, 255, 255, 0.8)"}]},"200":{"_inputs":["{colorPrimitives.red.500}",{"color":"rgba(255, 255, 255, 0.6)"}]},"300":{"_inputs":["{colorPrimitives.red.500}",{"color":"rgba(255, 255, 255, 0.4)"}]},"400":{"_inputs":["{colorPrimitives.red.500}",{"color":"rgba(255, 255, 255, 0.2)"}]},"500":"{colorPrimitives.red.base}","600":{"_inputs":["{colorPrimitives.red.500}",{"color":"rgba(0, 0, 0, 0.2)"}]},"700":{"_inputs":["{colorPrimitives.red.500}",{"color":"rgba(0, 0, 0, 0.4)"}]},"800":{"_inputs":["{colorPrimitives.red.500}",{"color":"rgba(0, 0, 0, 0.6)"}]},"900":{"_inputs":["{colorPrimitives.red.500}",{"color":"rgba(0, 0, 0, 0.8)"}]}},"yellow":{"50":{"_inputs":["{colorPrimitives.yellow.500}",{"color":"rgba(255, 255, 255, 0.9)"}]},"100":{"_inputs":["{colorPrimitives.yellow.500}",{"color":"rgba(255, 255, 255, 0.8)"}]},"200":{"_inputs":["{colorPrimitives.yellow.500}",{"color":"rgba(255, 255, 255, 0.6)"}]},"300":{"_inputs":["{colorPrimitives.yellow.500}",{"color":"rgba(255, 255, 255, 0.4)"}]},"400":{"_inputs":["{colorPrimitives.yellow.500}",{"color":"rgba(255, 255, 255, 0.2)"}]},"500":"{colorPrimitives.yellow.base}","600":{"_inputs":["{colorPrimitives.yellow.500}",{"color":"rgba(0, 0, 0, 0.2)"}]},"700":{"_inputs":["{colorPrimitives.yellow.500}",{"color":"rgba(0, 0, 0, 0.4)"}]},"800":{"_inputs":["{colorPrimitives.yellow.500}",{"color":"rgba(0, 0, 0, 0.6)"}]},"900":{"_inputs":["{colorPrimitives.yellow.500}",{"color":"rgba(0, 0, 0, 0.8)"}]}},"gray":{"50":{"_inputs":["{colorPrimitives.gray.500}",{"color":"rgba(255, 255, 255, 0.9)"}]},"100":{"_inputs":["{colorPrimitives.gray.500}",{"color":"rgba(255, 255, 255, 0.8)"}]},"200":{"_inputs":["{colorPrimitives.gray.500}",{"color":"rgba(255, 255, 255, 0.6)"}]},"300":{"_inputs":["{colorPrimitives.gray.500}",{"color":"rgba(255, 255, 255, 0.4)"}]},"400":{"_inputs":["{colorPrimitives.gray.500}",{"color":"rgba(255, 255, 255, 0.2)"}]},"500":"{colorPrimitives.gray.base}","600":{"_inputs":["{colorPrimitives.gray.500}",{"color":"rgba(0, 0, 0, 0.2)"}]},"700":{"_inputs":["{colorPrimitives.gray.500}",{"color":"rgba(0, 0, 0, 0.4)"}]},"800":{"_inputs":["{colorPrimitives.gray.500}",{"color":"rgba(0, 0, 0, 0.6)"}]},"900":{"_inputs":["{colorPrimitives.gray.500}",{"color":"rgba(0, 0, 0, 0.8)"}]}}}}'),JSON.parse('{"colorPrimitives":{"green":{"base":"rgba(3, 227, 156, 1)"},"blue":{"base":"rgba(31, 169, 255, 1)"},"indigo":{"base":"rgba(147, 133, 255, 1)"},"pink":{"base":"rgba(240, 163, 222, 1)"},"orange":{"base":"rgba(254, 159, 108, 1)"},"teal":{"base":"rgba(72, 224, 224, 1)"},"red":{"base":"rgba(250, 102, 105, 1)"},"yellow":{"base":"rgba(250, 214, 127, 1)"},"gray":{"base":"rgba(156, 160, 160, 1)"}},"brand":{"accent":{"100":{"_inputs":["{brand.accent.dark}",{"color":"{brand.base.dark}","alpha":0.8}],"_transforms":[{"type":"darken","amount":0.1},{"type":"saturate","amount":0.1}]},"200":{"_inputs":["{brand.accent.dark}",{"color":"{brand.base.dark}","alpha":0.7}],"_transforms":[{"type":"darken","amount":0.1},{"type":"saturate","amount":0.1}]},"300":{"_inputs":["{brand.accent.dark}",{"color":"{brand.base.dark}","alpha":0.6}],"_transforms":[{"type":"darken","amount":0.1},{"type":"saturate","amount":0.1}]},"400":"{brand.accent.dark}","500":{"_inputs":["{brand.accent.dark}",{"color":"{brand.base.light}","alpha":0.4}]},"600":{"_inputs":["{brand.accent.dark}",{"color":"{brand.base.light}","alpha":0.6}]}},"status":{"positive":{"100":{"_inputs":["{brand.status.positive.400}",{"color":"{brand.base.dark}","alpha":0.9}]},"200":{"_inputs":["{brand.status.positive.400}",{"color":"{brand.base.dark}","alpha":0.8}]},"300":{"_inputs":["{brand.status.positive.400}",{"color":"{brand.base.dark}","alpha":0.7}]},"400":"{colorPrimitives.green.500}","500":{"_inputs":["{brand.status.positive.400}",{"color":"{brand.base.light}","alpha":0.4}]},"600":{"_inputs":["{brand.status.positive.400}",{"color":"{brand.base.light}","alpha":0.6}]}},"warning":{"100":{"_inputs":["{brand.status.warning.400}",{"color":"{brand.base.dark}","alpha":0.9}]},"200":{"_inputs":["{brand.status.warning.400}",{"color":"{brand.base.dark}","alpha":0.8}]},"300":{"_inputs":["{brand.status.warning.400}",{"color":"{brand.base.dark}","alpha":0.7}]},"400":"{colorPrimitives.yellow.500}","500":{"_inputs":["{brand.status.warning.400}",{"color":"{brand.base.light}","alpha":0.4}]},"600":{"_inputs":["{brand.status.warning.400}",{"color":"{brand.base.light}","alpha":0.6}]}},"critical":{"100":{"_inputs":["{brand.status.critical.400}",{"color":"{brand.base.dark}","alpha":0.9}]},"200":{"_inputs":["{brand.status.critical.400}",{"color":"{brand.base.dark}","alpha":0.8}]},"300":{"_inputs":["{brand.status.critical.400}",{"color":"{brand.base.dark}","alpha":0.7}]},"400":"{colorPrimitives.red.500}","500":{"_inputs":["{brand.status.critical.400}",{"color":"{brand.base.light}","alpha":0.4}]},"600":{"_inputs":["{brand.status.critical.400}",{"color":"{brand.base.light}","alpha":0.6}]}},"informative":{"100":{"_inputs":["{brand.status.informative.400}",{"color":"{brand.base.dark}","alpha":0.9}]},"200":{"_inputs":["{brand.status.informative.400}",{"color":"{brand.base.dark}","alpha":0.8}]},"300":{"_inputs":["{brand.status.informative.400}",{"color":"{brand.base.dark}","alpha":0.7}]},"400":"{colorPrimitives.blue.500}","500":{"_inputs":["{brand.status.informative.400}",{"color":"{brand.base.light}","alpha":0.4}]},"600":{"_inputs":["{brand.status.informative.400}",{"color":"{brand.base.light}","alpha":0.6}]}}}},"color":{"generated":{"accent":{"stronger":"{brand.accent.600}","strong":"{brand.accent.500}","base":"{brand.accent.400}","soft":"{brand.accent.300}","softer":"{brand.accent.200}","softest":"{brand.accent.100}"},"background":{"base":"{brand.base.dark}"},"foreground":{"base":"{brand.base.light}"},"identifier":{"blue":"{colorPrimitives.blue.500}","pink":"{colorPrimitives.pink.500}","indigo":"{colorPrimitives.indigo.500}","teal":"{colorPrimitives.teal.500}","green":"{colorPrimitives.green.500}","orange":"{colorPrimitives.orange.500}","red":"{colorPrimitives.red.500}","yellow":"{colorPrimitives.yellow.500}","gray":"{colorPrimitives.gray.500}"},"positive":{"strong":"{brand.status.positive.500}","base":"{brand.status.positive.400}","soft":"{brand.status.positive.300}","stronger":"{brand.status.positive.600}","softer":"{brand.status.positive.200}","softest":"{brand.status.positive.100}"},"warning":{"strong":"{brand.status.warning.500}","base":"{brand.status.warning.400}","soft":"{brand.status.warning.300}","stronger":"{brand.status.warning.600}","softer":"{brand.status.warning.200}","softest":"{brand.status.warning.100}"},"critical":{"strong":"{brand.status.critical.500}","base":"{brand.status.critical.400}","soft":"{brand.status.critical.300}","stronger":"{brand.status.critical.600}","softer":"{brand.status.critical.200}","softest":"{brand.status.critical.100}"},"informative":{"strong":"{brand.status.informative.500}","base":"{brand.status.informative.400}","soft":"{brand.status.informative.300}","stronger":"{brand.status.informative.600}","softer":"{brand.status.informative.200}","softest":"{brand.status.informative.100}"}},"shared":{"button":{"ghost":{"icon":{"hover":"{color.role.background.accent.base}","active":"{color.role.background.accent.strong}"},"text":{"pressed":"{color.role.background.accent.strong}"}}},"iconButton":{"ghost":{"icon":{"hover":"{color.role.background.accent.base}","pressed":"{color.role.background.accent.strong}"}}}},"coreui":{"homeInput":{"border":{"default":"{color.role.border.6}","hover":"{color.role.border.6}"}},"storeInput":{"border":{"default":"{color.role.border.4}","hover":"{color.role.border.4}"}}},"role":{"border":{"stronger":"{color.role.foreground.soft}","strong":"{color.role.foreground.softer}"}},"enterprise":{"contextMenuItem":{"default":{"hint":{"default":"{color.role.foreground.soft}","hover":"{color.role.foreground.soft}","active":"{color.role.foreground.soft}","focus":"{color.role.foreground.soft}"}}},"view":{"background":"{color.role.background.3}"},"topChrome":{"background":"{color.role.background.base}"},"logo":{"background":"{brand.accent.dark}","foreground":"{brand.accent.light}"},"topTab":{"background":{"default":"{color.role.background.base}","hover":"{color.role.background.3}","selected":"{color.role.background.3}","dragging":"{color.role.background.3}"}},"viewTab":{"background":{"default":"{color.role.background.3}","hover":"{color.role.background.5}","active":"{color.role.background.5}","selected":"{color.role.background.5}","dragging":"{color.role.background.5}"}},"searchBar":{"background":{"default":"{color.role.background.3}","hover":"{color.role.background.4}","active":"{color.role.background.3}","focus":"{color.role.background.3}"}},"searchResult":{"background":{"hover":"{color.role.background.4}"}}}}}'),JSON.parse('{"colorPrimitives":{"green":{"base":"rgba(1, 126, 86, 1)"},"blue":{"base":"rgba(0, 113, 184, 1)"},"indigo":{"base":"rgba(83, 61, 255, 1)"},"pink":{"base":"rgba(215, 15, 167, 1)"},"orange":{"base":"rgba(208, 74, 1, 1)"},"teal":{"base":"rgba(22, 131, 131, 1)"},"red":{"base":"rgba(206, 8, 10, 1)"},"yellow":{"base":"rgba(155, 111, 3, 1)"},"gray":{"base":"rgba(104, 109, 110, 1)"}},"brand":{"accent":{"100":{"_inputs":["{brand.accent.light}",{"color":"{brand.base.light}","alpha":0.6}],"_transforms":[{"type":"lighten","amount":0.2},{"type":"saturate","amount":0.1}]},"200":{"_inputs":["{brand.accent.light}",{"color":"{brand.base.light}","alpha":0.5}],"_transforms":[{"type":"lighten","amount":0.2},{"type":"saturate","amount":0.1}]},"300":{"_inputs":["{brand.accent.light}",{"color":"{brand.base.light}","alpha":0.6}],"_transforms":[{"type":"darken","amount":0.1},{"type":"saturate","amount":0.1}]},"400":"{brand.accent.light}","500":{"_inputs":["{brand.accent.light}",{"color":"{brand.base.dark}","alpha":0.4}]},"600":{"_inputs":["{brand.accent.light}",{"color":"{brand.base.dark}","alpha":0.6}]}},"status":{"positive":{"100":{"_inputs":["{brand.status.positive.400}",{"color":"{brand.base.light}","alpha":0.9}]},"200":{"_inputs":["{brand.status.positive.400}",{"color":"{brand.base.light}","alpha":0.8}]},"300":{"_inputs":["{brand.status.positive.400}",{"color":"{brand.base.light}","alpha":0.7}]},"400":"{colorPrimitives.green.500}","500":{"_inputs":["{brand.status.positive.400}",{"color":"{brand.base.dark}","alpha":0.4}]},"600":{"_inputs":["{brand.status.positive.400}",{"color":"{brand.base.dark}","alpha":0.6}]}},"warning":{"100":{"_inputs":["{brand.status.warning.400}",{"color":"{brand.base.light}","alpha":0.9}]},"200":{"_inputs":["{brand.status.warning.400}",{"color":"{brand.base.light}","alpha":0.8}]},"300":{"_inputs":["{brand.status.warning.400}",{"color":"{brand.base.light}","alpha":0.7}]},"400":"{colorPrimitives.yellow.500}","500":{"_inputs":["{brand.status.warning.400}",{"color":"{brand.base.dark}","alpha":0.4}]},"600":{"_inputs":["{brand.status.warning.400}",{"color":"{brand.base.dark}","alpha":0.6}]}},"critical":{"100":{"_inputs":["{brand.status.critical.400}",{"color":"{brand.base.light}","alpha":0.9}]},"200":{"_inputs":["{brand.status.critical.400}",{"color":"{brand.base.light}","alpha":0.8}]},"300":{"_inputs":["{brand.status.critical.400}",{"color":"{brand.base.light}","alpha":0.7}]},"400":"{colorPrimitives.red.500}","500":{"_inputs":["{brand.status.critical.400}",{"color":"{brand.base.dark}","alpha":0.4}]},"600":{"_inputs":["{brand.status.critical.400}",{"color":"{brand.base.dark}","alpha":0.6}]}},"informative":{"100":{"_inputs":["{brand.status.informative.400}",{"color":"{brand.base.light}","alpha":0.9}]},"200":{"_inputs":["{brand.status.informative.400}",{"color":"{brand.base.light}","alpha":0.8}]},"300":{"_inputs":["{brand.status.informative.400}",{"color":"{brand.base.light}","alpha":0.7}]},"400":"{colorPrimitives.blue.500}","500":{"_inputs":["{brand.status.informative.400}",{"color":"{brand.base.dark}","alpha":0.4}]},"600":{"_inputs":["{brand.status.informative.400}",{"color":"{brand.base.dark}","alpha":0.6}]}}}},"color":{"generated":{"accent":{"stronger":"{brand.accent.600}","strong":"{brand.accent.500}","base":"{brand.accent.400}","soft":"{brand.accent.300}","softer":"{brand.accent.200}","softest":"{brand.accent.100}"},"background":{"base":"{brand.base.light}"},"foreground":{"base":"{brand.base.dark}"},"identifier":{"blue":"{colorPrimitives.blue.500}","pink":"{colorPrimitives.pink.500}","indigo":"{colorPrimitives.indigo.500}","teal":"{colorPrimitives.teal.500}","green":"{colorPrimitives.green.500}","orange":"{colorPrimitives.orange.500}","red":"{colorPrimitives.red.500}","yellow":"{colorPrimitives.yellow.400}","gray":"{colorPrimitives.gray.500}"},"positive":{"strong":"{brand.status.positive.500}","base":"{brand.status.positive.400}","soft":"{brand.status.positive.300}","stronger":"{brand.status.positive.600}","softer":"{brand.status.positive.200}","softest":"{brand.status.positive.100}"},"warning":{"strong":"{brand.status.warning.500}","base":"{brand.status.warning.400}","soft":"{brand.status.warning.300}","stronger":"{brand.status.warning.600}","softer":"{brand.status.warning.200}","softest":"{brand.status.warning.100}"},"critical":{"strong":"{brand.status.critical.500}","base":"{brand.status.critical.400}","soft":"{brand.status.critical.300}","stronger":"{brand.status.critical.600}","softer":"{brand.status.critical.200}","softest":"{brand.status.critical.100}"},"informative":{"strong":"{brand.status.informative.500}","base":"{brand.status.informative.400}","soft":"{brand.status.informative.300}","stronger":"{brand.status.informative.600}","softer":"{brand.status.informative.200}","softest":"{brand.status.informative.100}"}},"shared":{"button":{"ghost":{"icon":{"hover":"{color.role.background.accent.strong}","active":"{color.role.background.accent.stronger}"},"text":{"pressed":"{color.role.background.accent.stronger}"}}},"iconButton":{"ghost":{"icon":{"hover":"{color.role.background.accent.strong}","pressed":"{color.role.background.accent.stronger}"}}}},"coreui":{"homeInput":{"border":{"default":"{color.role.border.4}","hover":"{color.role.border.4}"}},"storeInput":{"border":{"default":"{color.role.border.6}","hover":"{color.role.border.6}"}}},"role":{"border":{"stronger":"{color.generated.foreground.soft}","strong":"{color.generated.foreground.softer}"}},"enterprise":{"contextMenuItem":{"default":{"hint":{"default":"{color.role.foreground.softer}","hover":"{color.role.foreground.softer}","active":"{color.role.foreground.softer}","focus":"{color.role.foreground.softer}"}}},"view":{"background":"{color.role.background.1}"},"topChrome":{"background":"{color.role.background.2}"},"topTab":{"background":{"default":"{color.role.background.2}","hover":"{color.role.background.1}","selected":"{color.role.background.1}","dragging":"{color.role.background.1}"}},"logo":{"background":"{brand.accent.light}","foreground":"{brand.accent.dark}"},"viewTab":{"background":{"default":"{color.role.background.1}","hover":"{color.role.background.3}","active":"{color.role.background.3}","selected":"{color.role.background.3}","dragging":"{color.role.background.3}"}},"searchBar":{"background":{"default":"{color.role.background.base}","hover":"{color.role.background.3}","active":"{color.role.background.base}","focus":"{color.role.background.base}"}}}}}');var j=O(436);O.n(j);const L=(e,r)=>{if("number"==typeof e)return 3===r?{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|240&e)/255,b:(15&e|e<<4&240)/255}:4===r?{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|240&e)/255,alpha:(15&e|e<<4&240)/255}:6===r?{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(255&e)/255}:8===r?{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(255&e)/255}:void 0},G={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},U=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,N="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",q=`${N}%`,H=`(?:${N}%|${N})`,V=`(?:${N}(deg|grad|rad|turn)|${N})`,Y="\\s*,\\s*",Z=(new RegExp(`^(?:${N}%|${N}|none)$`),new RegExp(`^rgba?\\(\\s*${N}${Y}${N}${Y}${N}\\s*(?:,\\s*${H}\\s*)?\\)$`)),K=new RegExp(`^rgba?\\(\\s*${q}${Y}${q}${Y}${q}\\s*(?:,\\s*${H}\\s*)?\\)$`),J=(e="rgb")=>r=>void 0!==(r=((e,r)=>void 0===e?void 0:"object"!=typeof e?xe(e):void 0!==e.mode?e:r?{...e,mode:r}:void 0)(r,e))?r.mode===e?r:Q[r.mode][e]?Q[r.mode][e](r):"rgb"===e?Q[r.mode].rgb(r):Q.rgb[e](Q[r.mode].rgb(r)):void 0,Q={},X={},ee=[],re={},oe=e=>e,te=e=>(Q[e.mode]={...Q[e.mode],...e.toMode},Object.keys(e.fromMode||{}).forEach(r=>{Q[r]||(Q[r]={}),Q[r][e.mode]=e.fromMode[r]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(r=>{if(void 0===e.ranges[r]&&(e.ranges[r]=[0,1]),!e.interpolate[r])throw new Error(`Missing interpolator for: ${r}`);"function"==typeof e.interpolate[r]&&(e.interpolate[r]={use:e.interpolate[r]}),e.interpolate[r].fixup||(e.interpolate[r].fixup=oe)}),X[e.mode]=e,(e.parse||[]).forEach(r=>{ne(r,e.mode)}),J(e.mode)),ae=e=>X[e],ne=(e,r)=>{if("string"==typeof e){if(!r)throw new Error("'mode' required when 'parser' is a string");re[e]=r}else"function"==typeof e&&ee.indexOf(e)<0&&ee.push(e)},ie=/[^\x00-\x7F]|[a-zA-Z_]/,se=/[^\x00-\x7F]|[-\w]/,le="function",ce="ident",de="number",ue="percentage",ge="none",he="hue",pe="alpha";let fe=0;function be(e){let r=e[fe],o=e[fe+1];return"-"===r||"+"===r?/\d/.test(o)||"."===o&&/\d/.test(e[fe+2]):/\d/.test("."===r?o:r)}function ve(e){if(fe>=e.length)return!1;let r=e[fe];if(ie.test(r))return!0;if("-"===r){if(e.length-fe<2)return!1;let r=e[fe+1];return!("-"!==r&&!ie.test(r))}return!1}const me={deg:1,rad:180/Math.PI,grad:.9,turn:360};function ye(e){let r="";if("-"!==e[fe]&&"+"!==e[fe]||(r+=e[fe++]),r+=ke(e),"."===e[fe]&&/\d/.test(e[fe+1])&&(r+=e[fe++]+ke(e)),"e"!==e[fe]&&"E"!==e[fe]||("-"!==e[fe+1]&&"+"!==e[fe+1]||!/\d/.test(e[fe+2])?/\d/.test(e[fe+1])&&(r+=e[fe++]+ke(e)):r+=e[fe++]+e[fe++]+ke(e)),ve(e)){let o=we(e);return"deg"===o||"rad"===o||"turn"===o||"grad"===o?{type:he,value:r*me[o]}:void 0}return"%"===e[fe]?(fe++,{type:ue,value:+r}):{type:de,value:+r}}function ke(e){let r="";for(;/\d/.test(e[fe]);)r+=e[fe++];return r}function we(e){let r="";for(;fe<e.length&&se.test(e[fe]);)r+=e[fe++];return r}function Pe(e){let r=we(e);return"("===e[fe]?(fe++,{type:le,value:r}):"none"===r?{type:ge,value:void 0}:{type:ce,value:r}}function Me(e,r){const o=[];let t;for(;e._i<e.length;)if(t=e[e._i++],t.type===ge||t.type===de||t.type===pe||t.type===ue||r&&t.type===he)o.push(t);else{if(")"!==t.type)return;if(e._i<e.length)return}if(!(o.length<3||o.length>4)){if(4===o.length){if(o[3].type!==pe)return;o[3]=o[3].value}return 3===o.length&&o.push({type:ge,value:void 0}),o.every(e=>e.type!==pe)?o:void 0}}const xe=e=>{if("string"!=typeof e)return;const r=function(e=""){let r,o=e.trim(),t=[];for(fe=0;fe<o.length;)if(r=o[fe++],"\n"!==r&&"\t"!==r&&" "!==r){if(","===r)return;if(")"!==r){if("+"===r){if(fe--,be(o)){t.push(ye(o));continue}return}if("-"===r){if(fe--,be(o)){t.push(ye(o));continue}if(ve(o)){t.push({type:ce,value:we(o)});continue}return}if("."===r){if(fe--,be(o)){t.push(ye(o));continue}return}if("/"===r){for(;fe<o.length&&("\n"===o[fe]||"\t"===o[fe]||" "===o[fe]);)fe++;let e;if(be(o)&&(e=ye(o),e.type!==he)){t.push({type:pe,value:e});continue}if(ve(o)&&"none"===we(o)){t.push({type:pe,value:{type:ge,value:void 0}});continue}return}if(/\d/.test(r))fe--,t.push(ye(o));else{if(!ie.test(r))return;fe--,t.push(Pe(o))}}else t.push({type:")"})}else for(;fe<o.length&&("\n"===o[fe]||"\t"===o[fe]||" "===o[fe]);)fe++;return t}(e),o=r?function(e){e._i=0;let r=e[e._i++];if(!r||r.type!==le)return;let o=Me(e,!0);return o?(o.unshift(r.value),o):void 0}(r):void 0;let t,a=0,n=ee.length;for(;a<n;)if(void 0!==(t=ee[a++](e,o)))return t;return r?function(e){e._i=0;let r=e[e._i++];if(!r||r.type!==le||"color"!==r.value)return;if(r=e[e._i++],r.type!==ce)return;const o=re[r.value];if(!o)return;const t={mode:o},a=Me(e,!1);if(!a)return;const n=ae(o).channels;for(let e,r,o=0;o<n.length;o++)e=a[o],r=n[o],e.type!==ge&&(t[r]=e.type===de?e.value:e.value/100,"alpha"===r&&(t[r]=Math.max(0,Math.min(1,t[r]))));return t}(r):void 0},_e=(Se=(e,r,o)=>e+o*(r-e),e=>{let r=(e=>{let r=[];for(let o=0;o<e.length-1;o++){let t=e[o],a=e[o+1];void 0===t&&void 0===a?r.push(void 0):void 0!==t&&void 0!==a?r.push([t,a]):r.push(void 0!==t?[t,t]:[a,a])}return r})(e);return e=>{let o=e*r.length,t=e>=1?r.length-1:Math.max(Math.floor(o),0),a=r[t];return void 0===a?void 0:Se(a[0],a[1],o-t)}});var Se;const Ce=e=>{let r=!1,o=e.map(e=>void 0!==e?(r=!0,e):1);return r?o:e},Ae={mode:"rgb",channels:["r","g","b","alpha"],parse:[function(e,r){if(!r||"rgb"!==r[0]&&"rgba"!==r[0])return;const o={mode:"rgb"},[,t,a,n,i]=r;return t.type!==he&&a.type!==he&&n.type!==he?(t.type!==ge&&(o.r=t.type===de?t.value/255:t.value/100),a.type!==ge&&(o.g=a.type===de?a.value/255:a.value/100),n.type!==ge&&(o.b=n.type===de?n.value/255:n.value/100),i.type!==ge&&(o.alpha=Math.min(1,Math.max(0,i.type===de?i.value:i.value/100))),o):void 0},e=>{let r;return(r=e.match(U))?L(parseInt(r[1],16),r[1].length):void 0},e=>{let r,o={mode:"rgb"};if(r=e.match(Z))void 0!==r[1]&&(o.r=r[1]/255),void 0!==r[2]&&(o.g=r[2]/255),void 0!==r[3]&&(o.b=r[3]/255);else{if(!(r=e.match(K)))return;void 0!==r[1]&&(o.r=r[1]/100),void 0!==r[2]&&(o.g=r[2]/100),void 0!==r[3]&&(o.b=r[3]/100)}return void 0!==r[4]?o.alpha=Math.max(0,Math.min(1,r[4]/100)):void 0!==r[5]&&(o.alpha=Math.max(0,Math.min(1,+r[5]))),o},e=>L(G[e.toLowerCase()],6),e=>"transparent"===e?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,"srgb"],serialize:"srgb",interpolate:{r:_e,g:_e,b:_e,alpha:{use:_e,fixup:Ce}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Ie=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),Te=e=>{let r=Ie(e.r),o=Ie(e.g),t=Ie(e.b),a={mode:"xyz65",x:.5766690429101305*r+.1855582379065463*o+.1882286462349947*t,y:.297344975250536*r+.6273635662554661*o+.0752914584939979*t,z:.0270313613864123*r+.0706888525358272*o+.9913375368376386*t};return void 0!==e.alpha&&(a.alpha=e.alpha),a},Ee=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),De=({x:e,y:r,z:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a={mode:"a98",r:Ee(2.0415879038107465*e-.5650069742788597*r-.3447313507783297*o),g:Ee(-.9692436362808798*e+1.8759675015077206*r+.0415550574071756*o),b:Ee(.0134442806320312*e-.1183623922310184*r+1.0151749943912058*o)};return void 0!==t&&(a.alpha=t),a},Fe=(e=0)=>{const r=Math.abs(e);return r<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((r+.055)/1.055,2.4)},$e=({r:e,g:r,b:o,alpha:t})=>{let a={mode:"lrgb",r:Fe(e),g:Fe(r),b:Fe(o)};return void 0!==t&&(a.alpha=t),a},Re=e=>{let{r,g:o,b:t,alpha:a}=$e(e),n={mode:"xyz65",x:.4123907992659593*r+.357584339383878*o+.1804807884018343*t,y:.2126390058715102*r+.715168678767756*o+.0721923153607337*t,z:.0193308187155918*r+.119194779794626*o+.9505321522496607*t};return void 0!==a&&(n.alpha=a),n},We=(e=0)=>{const r=Math.abs(e);return r>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(r,1/2.4)-.055):12.92*e},ze=({r:e,g:r,b:o,alpha:t},a="rgb")=>{let n={mode:a,r:We(e),g:We(r),b:We(o)};return void 0!==t&&(n.alpha=t),n},Oe=({x:e,y:r,z:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a=ze({r:3.2409699419045226*e-1.537383177570094*r-.4986107602930034*o,g:-.9692436362808796*e+1.8759675015077204*r+.0415550574071756*o,b:.0556300796969936*e-.2039769588889765*r+1.0569715142428784*o});return void 0!==t&&(a.alpha=t),a},Be={...Ae,mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>De(Re(e)),xyz65:De},toMode:{rgb:e=>Oe(Te(e)),xyz65:Te}},je=e=>(e%=360)<0?e+360:e,Le=e=>(e=>e.map((r,o,t)=>{if(void 0===r)return r;let a=je(r);return 0===o||void 0===e[o-1]?a:(e=>Math.abs(e)<=180?e:e-360*Math.sign(e))(a-je(t[o-1]))}).reduce((e,r)=>e.length&&void 0!==r&&void 0!==e[e.length-1]?(e.push(r+e[e.length-1]),e):(e.push(r),e),[]))(e),Ge=[-.14861,1.78277,-.29227,-.90649,1.97294,0],Ue=Math.PI/180,Ne=180/Math.PI;let qe=Ge[3]*Ge[4],He=Ge[1]*Ge[4],Ve=Ge[1]*Ge[2]-Ge[0]*Ge[3];const Ye=(e,r)=>{if(void 0===e.h||void 0===r.h||!e.s||!r.s)return 0;let o=je(e.h),t=je(r.h),a=Math.sin((t-o+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*r.s)*a},Ze=(e,r)=>{if(void 0===e.h||void 0===r.h||!e.c||!r.c)return 0;let o=je(e.h),t=je(r.h),a=Math.sin((t-o+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*r.c)*a},Ke=e=>{let r=e.reduce((e,r)=>{if(void 0!==r){let o=r*Math.PI/180;e.sin+=Math.sin(o),e.cos+=Math.cos(o)}return e},{sin:0,cos:0}),o=180*Math.atan2(r.sin,r.cos)/Math.PI;return o<0?360+o:o},Je={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:({r:e,g:r,b:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a=(Ve*o+e*qe-r*He)/(Ve+qe-He),n=o-a,i=(Ge[4]*(r-a)-Ge[2]*n)/Ge[3],s={mode:"cubehelix",l:a,s:0===a||1===a?void 0:Math.sqrt(n*n+i*i)/(Ge[4]*a*(1-a))};return s.s&&(s.h=Math.atan2(i,n)*Ne-120),void 0!==t&&(s.alpha=t),s}},toMode:{rgb:({h:e,s:r,l:o,alpha:t})=>{let a={mode:"rgb"};e=(void 0===e?0:e+120)*Ue,void 0===o&&(o=0);let n=void 0===r?0:r*o*(1-o),i=Math.cos(e),s=Math.sin(e);return a.r=o+n*(Ge[0]*i+Ge[1]*s),a.g=o+n*(Ge[2]*i+Ge[3]*s),a.b=o+n*(Ge[4]*i+Ge[5]*s),void 0!==t&&(a.alpha=t),a}},interpolate:{h:{use:_e,fixup:Le},s:_e,l:_e,alpha:{use:_e,fixup:Ce}},difference:{h:Ye},average:{h:Ke}},Qe=({l:e,a:r,b:o,alpha:t},a="lch")=>{void 0===r&&(r=0),void 0===o&&(o=0);let n=Math.sqrt(r*r+o*o),i={mode:a,l:e,c:n};return n&&(i.h=je(180*Math.atan2(o,r)/Math.PI)),void 0!==t&&(i.alpha=t),i},Xe=({l:e,c:r,h:o,alpha:t},a="lab")=>{void 0===o&&(o=0);let n={mode:a,l:e,a:r?r*Math.cos(o/180*Math.PI):0,b:r?r*Math.sin(o/180*Math.PI):0};return void 0!==t&&(n.alpha=t),n},er=Math.pow(29,3)/Math.pow(3,3),rr=Math.pow(6,3)/Math.pow(29,3),or=.3457/.3585,tr=.2958/.3585,ar=.3127/.329,nr=.3583/.329;Math.pow(29,3),Math.pow(3,3),Math.pow(6,3),Math.pow(29,3);let ir=e=>Math.pow(e,3)>rr?Math.pow(e,3):(116*e-16)/er;const sr=({l:e,a:r,b:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a=(e+16)/116,n=a-o/200,i={mode:"xyz65",x:ir(r/500+a)*ar,y:1*ir(a),z:ir(n)*nr};return void 0!==t&&(i.alpha=t),i},lr=e=>Oe(sr(e)),cr=e=>e>rr?Math.cbrt(e):(er*e+16)/116,dr=({x:e,y:r,z:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a=cr(e/ar),n=cr(r/1),i={mode:"lab65",l:116*n-16,a:500*(a-n),b:200*(n-cr(o/nr))};return void 0!==t&&(i.alpha=t),i},ur=e=>{let r=dr(Re(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},gr=26/180*Math.PI,hr=Math.cos(gr),pr=Math.sin(gr),fr=100/Math.log(1.39),br=({l:e,c:r,h:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a={mode:"lab65",l:(Math.exp(1*e/fr)-1)/.0039},n=(Math.exp(.0435*r*1*1)-1)/.075,i=n*Math.cos(o/180*Math.PI-gr),s=n*Math.sin(o/180*Math.PI-gr);return a.a=i*hr-s/.83*pr,a.b=i*pr+s/.83*hr,void 0!==t&&(a.alpha=t),a},vr=({l:e,a:r,b:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a=r*hr+o*pr,n=.83*(o*hr-r*pr),i=Math.sqrt(a*a+n*n),s={mode:"dlch",l:fr/1*Math.log(1+.0039*e),c:Math.log(1+.075*i)/.0435};return s.c&&(s.h=je((Math.atan2(n,a)+gr)/Math.PI*180)),void 0!==t&&(s.alpha=t),s},mr=e=>br(Qe(e,"dlch")),yr=e=>Xe(vr(e),"dlab"),kr={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:mr,rgb:e=>lr(mr(e))},fromMode:{lab65:yr,rgb:e=>yr(ur(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:_e,a:_e,b:_e,alpha:{use:_e,fixup:Ce}}},wr=kr,Pr={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:br,dlab:e=>Xe(e,"dlab"),rgb:e=>lr(br(e))},fromMode:{lab65:vr,dlab:e=>Qe(e,"dlch"),rgb:e=>vr(ur(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:_e,c:_e,h:{use:_e,fixup:Le},alpha:{use:_e,fixup:Ce}},difference:{h:Ze},average:{h:Ke}},Mr=Pr,xr={mode:"hsi",toMode:{rgb:function({h:e,s:r,i:o,alpha:t}){e=je(void 0!==e?e:0),void 0===r&&(r=0),void 0===o&&(o=0);let a,n=Math.abs(e/60%2-1);switch(Math.floor(e/60)){case 0:a={r:o*(1+r*(3/(2-n)-1)),g:o*(1+r*(3*(1-n)/(2-n)-1)),b:o*(1-r)};break;case 1:a={r:o*(1+r*(3*(1-n)/(2-n)-1)),g:o*(1+r*(3/(2-n)-1)),b:o*(1-r)};break;case 2:a={r:o*(1-r),g:o*(1+r*(3/(2-n)-1)),b:o*(1+r*(3*(1-n)/(2-n)-1))};break;case 3:a={r:o*(1-r),g:o*(1+r*(3*(1-n)/(2-n)-1)),b:o*(1+r*(3/(2-n)-1))};break;case 4:a={r:o*(1+r*(3*(1-n)/(2-n)-1)),g:o*(1-r),b:o*(1+r*(3/(2-n)-1))};break;case 5:a={r:o*(1+r*(3/(2-n)-1)),g:o*(1-r),b:o*(1+r*(3*(1-n)/(2-n)-1))};break;default:a={r:o*(1-r),g:o*(1-r),b:o*(1-r)}}return a.mode="rgb",void 0!==t&&(a.alpha=t),a}},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:function({r:e,g:r,b:o,alpha:t}){void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a=Math.max(e,r,o),n=Math.min(e,r,o),i={mode:"hsi",s:e+r+o===0?0:1-3*n/(e+r+o),i:(e+r+o)/3};return a-n!==0&&(i.h=60*(a===e?(r-o)/(a-n)+6*(r<o):a===r?(o-e)/(a-n)+2:(e-r)/(a-n)+4)),void 0!==t&&(i.alpha=t),i}},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:_e,fixup:Le},s:_e,i:_e,alpha:{use:_e,fixup:Ce}},difference:{h:Ye},average:{h:Ke}},_r=xr,Sr=new RegExp(`^hsla?\\(\\s*${V}${Y}${q}${Y}${q}\\s*(?:,\\s*${H}\\s*)?\\)$`),Cr={mode:"hsl",toMode:{rgb:function({h:e,s:r,l:o,alpha:t}){e=je(void 0!==e?e:0),void 0===r&&(r=0),void 0===o&&(o=0);let a,n=o+r*(o<.5?o:1-o),i=n-2*(n-o)*Math.abs(e/60%2-1);switch(Math.floor(e/60)){case 0:a={r:n,g:i,b:2*o-n};break;case 1:a={r:i,g:n,b:2*o-n};break;case 2:a={r:2*o-n,g:n,b:i};break;case 3:a={r:2*o-n,g:i,b:n};break;case 4:a={r:i,g:2*o-n,b:n};break;case 5:a={r:n,g:2*o-n,b:i};break;default:a={r:2*o-n,g:2*o-n,b:2*o-n}}return a.mode="rgb",void 0!==t&&(a.alpha=t),a}},fromMode:{rgb:function({r:e,g:r,b:o,alpha:t}){void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a=Math.max(e,r,o),n=Math.min(e,r,o),i={mode:"hsl",s:a===n?0:(a-n)/(1-Math.abs(a+n-1)),l:.5*(a+n)};return a-n!==0&&(i.h=60*(a===e?(r-o)/(a-n)+6*(r<o):a===r?(o-e)/(a-n)+2:(e-r)/(a-n)+4)),void 0!==t&&(i.alpha=t),i}},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[function(e,r){if(!r||"hsl"!==r[0]&&"hsla"!==r[0])return;const o={mode:"hsl"},[,t,a,n,i]=r;if(t.type!==ge){if(t.type===ue)return;o.h=t.value}if(a.type!==ge){if(a.type===he)return;o.s=a.value/100}if(n.type!==ge){if(n.type===he)return;o.l=n.value/100}return i.type!==ge&&(o.alpha=Math.min(1,Math.max(0,i.type===de?i.value:i.value/100))),o},e=>{let r=e.match(Sr);if(!r)return;let o={mode:"hsl"};return void 0!==r[3]?o.h=+r[3]:void 0!==r[1]&&void 0!==r[2]&&(o.h=((e,r)=>{switch(r){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return 360*e}})(r[1],r[2])),void 0!==r[4]&&(o.s=Math.min(Math.max(0,r[4]/100),1)),void 0!==r[5]&&(o.l=Math.min(Math.max(0,r[5]/100),1)),void 0!==r[6]?o.alpha=Math.max(0,Math.min(1,r[6]/100)):void 0!==r[7]&&(o.alpha=Math.max(0,Math.min(1,+r[7]))),o}],serialize:e=>`hsl(${void 0!==e.h?e.h:"none"} ${void 0!==e.s?100*e.s+"%":"none"} ${void 0!==e.l?100*e.l+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:_e,fixup:Le},s:_e,l:_e,alpha:{use:_e,fixup:Ce}},difference:{h:Ye},average:{h:Ke}},Ar=Cr;function Ir({h:e,s:r,v:o,alpha:t}){e=je(void 0!==e?e:0),void 0===r&&(r=0),void 0===o&&(o=0);let a,n=Math.abs(e/60%2-1);switch(Math.floor(e/60)){case 0:a={r:o,g:o*(1-r*n),b:o*(1-r)};break;case 1:a={r:o*(1-r*n),g:o,b:o*(1-r)};break;case 2:a={r:o*(1-r),g:o,b:o*(1-r*n)};break;case 3:a={r:o*(1-r),g:o*(1-r*n),b:o};break;case 4:a={r:o*(1-r*n),g:o*(1-r),b:o};break;case 5:a={r:o,g:o*(1-r),b:o*(1-r*n)};break;default:a={r:o*(1-r),g:o*(1-r),b:o*(1-r)}}return a.mode="rgb",void 0!==t&&(a.alpha=t),a}function Tr({r:e,g:r,b:o,alpha:t}){void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a=Math.max(e,r,o),n=Math.min(e,r,o),i={mode:"hsv",s:0===a?0:1-n/a,v:a};return a-n!==0&&(i.h=60*(a===e?(r-o)/(a-n)+6*(r<o):a===r?(o-e)/(a-n)+2:(e-r)/(a-n)+4)),void 0!==t&&(i.alpha=t),i}const Er={mode:"hsv",toMode:{rgb:Ir},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:Tr},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:_e,fixup:Le},s:_e,v:_e,alpha:{use:_e,fixup:Ce}},difference:{h:Ye},average:{h:Ke}},Dr={mode:"hwb",toMode:{rgb:function({h:e,w:r,b:o,alpha:t}){if(void 0===r&&(r=0),void 0===o&&(o=0),r+o>1){let e=r+o;r/=e,o/=e}return Ir({h:e,s:1===o?1:1-r/(1-o),v:1-o,alpha:t})}},fromMode:{rgb:function(e){let r=Tr(e);if(void 0===r)return;let o=void 0!==r.s?r.s:0,t=void 0!==r.v?r.v:0,a={mode:"hwb",w:(1-o)*t,b:1-t};return void 0!==r.h&&(a.h=r.h),void 0!==r.alpha&&(a.alpha=r.alpha),a}},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[function(e,r){if(!r||"hwb"!==r[0])return;const o={mode:"hwb"},[,t,a,n,i]=r;if(t.type!==ge){if(t.type===ue)return;o.h=t.value}if(a.type!==ge){if(a.type===he)return;o.w=a.value/100}if(n.type!==ge){if(n.type===he)return;o.b=n.value/100}return i.type!==ge&&(o.alpha=Math.min(1,Math.max(0,i.type===de?i.value:i.value/100))),o}],serialize:e=>`hwb(${void 0!==e.h?e.h:"none"} ${void 0!==e.w?100*e.w+"%":"none"} ${void 0!==e.b?100*e.b+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:_e,fixup:Le},w:_e,b:_e,alpha:{use:_e,fixup:Ce}},difference:{h:(e,r)=>{if(void 0===e.h||void 0===r.h)return 0;let o=je(e.h),t=je(r.h);return Math.abs(t-o)>180?o-(t-360*Math.sign(t-o)):t-o}},average:{h:Ke}},Fr=Dr,$r=.1593017578125,Rr=78.84375,Wr=.8359375,zr=18.8515625,Or=18.6875;function Br(e){if(e<0)return 0;const r=Math.pow(e,1/Rr);return 1e4*Math.pow(Math.max(0,r-Wr)/(zr-Or*r),1/$r)}function jr(e){if(e<0)return 0;const r=Math.pow(e/1e4,$r);return Math.pow((Wr+zr*r)/(1+Or*r),Rr)}const Lr=e=>Math.max(e/203,0),Gr=({i:e,t:r,p:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);const a=Br(e+.008609037037932761*r+.11102962500302593*o),n=Br(e-.00860903703793275*r-.11102962500302599*o),i=Br(e+.5600313357106791*r-.32062717498731885*o),s={mode:"xyz65",x:Lr(2.070152218389422*a-1.3263473389671556*n+.2066510476294051*i),y:Lr(.3647385209748074*a+.680566024947227*n-.0453045459220346*i),z:Lr(-.049747207535812*a-.0492609666966138*n+1.1880659249923042*i)};return void 0!==t&&(s.alpha=t),s},Ur=(e=0)=>Math.max(203*e,0),Nr=({x:e,y:r,z:o,alpha:t})=>{const a=Ur(e),n=Ur(r),i=Ur(o),s=jr(.3592832590121217*a+.6976051147779502*n-.0358915932320289*i),l=jr(-.1920808463704995*a+1.1004767970374323*n+.0753748658519118*i),c=jr(.0070797844607477*a+.0748396662186366*n+.8433265453898765*i),d={mode:"itp",i:.5*s+.5*l,t:1.61376953125*s-3.323486328125*l+1.709716796875*c,p:4.378173828125*s-4.24560546875*l-.132568359375*c};return void 0!==t&&(d.alpha=t),d},qr={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:Gr,rgb:e=>Oe(Gr(e))},fromMode:{xyz65:Nr,rgb:e=>Nr(Re(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:_e,t:_e,p:_e,alpha:{use:_e,fixup:Ce}}},Hr=e=>{if(e<0)return 0;let r=Math.pow(e/1e4,$r);return Math.pow((Wr+zr*r)/(1+Or*r),134.03437499999998)},Vr=(e=0)=>Math.max(203*e,0),Yr=({x:e,y:r,z:o,alpha:t})=>{e=Vr(e),r=Vr(r);let a=1.15*e-.15*(o=Vr(o)),n=.66*r+.34*e,i=Hr(.41478972*a+.579999*n+.014648*o),s=Hr(-.20151*a+1.120649*n+.0531008*o),l=Hr(-.0166008*a+.2648*n+.6684799*o),c=(i+s)/2,d={mode:"jab",j:.44*c/(1-.56*c)-16295499532821565e-27,a:3.524*i-4.066708*s+.542708*l,b:.199076*i+1.096799*s-1.295875*l};return void 0!==t&&(d.alpha=t),d},Zr=16295499532821565e-27,Kr=e=>{if(e<0)return 0;let r=Math.pow(e,.007460772656268216);return 1e4*Math.pow((Wr-r)/(Or*r-zr),1/$r)},Jr=e=>e/203,Qr=({j:e,a:r,b:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a=(e+Zr)/(.44+.56*(e+Zr)),n=Kr(a+.13860504*r+.058047316*o),i=Kr(a-.13860504*r-.058047316*o),s=Kr(a-.096019242*r-.8118919*o),l={mode:"xyz65",x:Jr(1.661373024652174*n-.914523081304348*i+.23136208173913045*s),y:Jr(-.3250758611844533*n+1.571847026732543*i-.21825383453227928*s),z:Jr(-.090982811*n-.31272829*i+1.5227666*s)};return void 0!==t&&(l.alpha=t),l},Xr=e=>{let r=Yr(Re(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},eo=e=>Oe(Qr(e)),ro={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:Xr,xyz65:Yr},toMode:{rgb:eo,xyz65:Qr},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:_e,a:_e,b:_e,alpha:{use:_e,fixup:Ce}}},oo=({j:e,a:r,b:o,alpha:t})=>{void 0===r&&(r=0),void 0===o&&(o=0);let a=Math.sqrt(r*r+o*o),n={mode:"jch",j:e,c:a};return a&&(n.h=je(180*Math.atan2(o,r)/Math.PI)),void 0!==t&&(n.alpha=t),n},to=({j:e,c:r,h:o,alpha:t})=>{void 0===o&&(o=0);let a={mode:"jab",j:e,a:r?r*Math.cos(o/180*Math.PI):0,b:r?r*Math.sin(o/180*Math.PI):0};return void 0!==t&&(a.alpha=t),a},ao={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:to,rgb:e=>eo(to(e))},fromMode:{rgb:e=>oo(Xr(e)),jab:oo},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:_e,fixup:Le},c:_e,j:_e,alpha:{use:_e,fixup:Ce}},difference:{h:Ze},average:{h:Ke}},no=ao,io=Math.pow(29,3)/Math.pow(3,3),so=Math.pow(6,3)/Math.pow(29,3);let lo=e=>Math.pow(e,3)>so?Math.pow(e,3):(116*e-16)/io;const co=({l:e,a:r,b:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a=(e+16)/116,n=a-o/200,i={mode:"xyz50",x:lo(r/500+a)*or,y:1*lo(a),z:lo(n)*tr};return void 0!==t&&(i.alpha=t),i},uo=({x:e,y:r,z:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a=ze({r:3.1341359569958707*e-1.6173863321612538*r-.4906619460083532*o,g:-.978795502912089*e+1.916254567259524*r+.03344273116131949*o,b:.07195537988411677*e-.2289768264158322*r+1.405386058324125*o});return void 0!==t&&(a.alpha=t),a},go=e=>uo(co(e)),ho=e=>{let{r,g:o,b:t,alpha:a}=$e(e),n={mode:"xyz50",x:.436065742824811*r+.3851514688337912*o+.14307845442264197*t,y:.22249319175623702*r+.7168870538238823*o+.06061979053616537*t,z:.013923904500943465*r+.09708128566574634*o+.7140993584005155*t};return void 0!==a&&(n.alpha=a),n},po=e=>e>so?Math.cbrt(e):(io*e+16)/116,fo=({x:e,y:r,z:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a=po(e/or),n=po(r/1),i={mode:"lab",l:116*n-16,a:500*(a-n),b:200*(n-po(o/tr))};return void 0!==t&&(i.alpha=t),i},bo=e=>{let r=fo(ho(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},vo={mode:"lab",toMode:{xyz50:co,rgb:go},fromMode:{xyz50:fo,rgb:bo},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[function(e,r){if(!r||"lab"!==r[0])return;const o={mode:"lab"},[,t,a,n,i]=r;return t.type!==he&&a.type!==he&&n.type!==he?(t.type!==ge&&(o.l=Math.min(Math.max(0,t.value),100)),a.type!==ge&&(o.a=a.type===de?a.value:125*a.value/100),n.type!==ge&&(o.b=n.type===de?n.value:125*n.value/100),i.type!==ge&&(o.alpha=Math.min(1,Math.max(0,i.type===de?i.value:i.value/100))),o):void 0}],serialize:e=>`lab(${void 0!==e.l?e.l:"none"} ${void 0!==e.a?e.a:"none"} ${void 0!==e.b?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:_e,a:_e,b:_e,alpha:{use:_e,fixup:Ce}}},mo=vo,yo={...mo,mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:sr,rgb:lr},fromMode:{xyz65:dr,rgb:ur},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}},ko={mode:"lch",toMode:{lab:Xe,rgb:e=>go(Xe(e))},fromMode:{rgb:e=>Qe(bo(e)),lab:Qe},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[function(e,r){if(!r||"lch"!==r[0])return;const o={mode:"lch"},[,t,a,n,i]=r;if(t.type!==ge){if(t.type===he)return;o.l=Math.min(Math.max(0,t.value),100)}if(a.type!==ge&&(o.c=Math.max(0,a.type===de?a.value:150*a.value/100)),n.type!==ge){if(n.type===ue)return;o.h=n.value}return i.type!==ge&&(o.alpha=Math.min(1,Math.max(0,i.type===de?i.value:i.value/100))),o}],serialize:e=>`lch(${void 0!==e.l?e.l:"none"} ${void 0!==e.c?e.c:"none"} ${void 0!==e.h?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:_e,fixup:Le},c:_e,l:_e,alpha:{use:_e,fixup:Ce}},difference:{h:Ze},average:{h:Ke}},wo=ko,Po={...wo,mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>Xe(e,"lab65"),rgb:e=>lr(Xe(e,"lab65"))},fromMode:{rgb:e=>Qe(ur(e),"lch65"),lab65:e=>Qe(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}},Mo=Po,xo=({l:e,u:r,v:o,alpha:t})=>{void 0===r&&(r=0),void 0===o&&(o=0);let a=Math.sqrt(r*r+o*o),n={mode:"lchuv",l:e,c:a};return a&&(n.h=je(180*Math.atan2(o,r)/Math.PI)),void 0!==t&&(n.alpha=t),n},_o=({l:e,c:r,h:o,alpha:t})=>{void 0===o&&(o=0);let a={mode:"luv",l:e,u:r?r*Math.cos(o/180*Math.PI):0,v:r?r*Math.sin(o/180*Math.PI):0};return void 0!==t&&(a.alpha=t),a},So=(e,r,o)=>4*e/(e+15*r+3*o),Co=(e,r,o)=>9*r/(e+15*r+3*o),Ao=So(or,1,tr),Io=Co(or,1,tr),To=({x:e,y:r,z:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a=(n=r/1)<=so?io*n:116*Math.cbrt(n)-16;var n;let i=So(e,r,o),s=Co(e,r,o);isFinite(i)&&isFinite(s)?(i=13*a*(i-Ao),s=13*a*(s-Io)):a=i=s=0;let l={mode:"luv",l:a,u:i,v:s};return void 0!==t&&(l.alpha=t),l},Eo=4*(Do=or)/(Do+15+3*tr);var Do;const Fo=({l:e,u:r,v:o,alpha:t})=>{if(void 0===e&&(e=0),0===e)return{mode:"xyz50",x:0,y:0,z:0};void 0===r&&(r=0),void 0===o&&(o=0);let a=r/(13*e)+Eo,n=o/(13*e)+.4880797507034157,i=1*(e<=8?e/io:Math.pow((e+16)/116,3)),s={mode:"xyz50",x:i*(9*a)/(4*n),y:i,z:i*(12-3*a-20*n)/(4*n)};return void 0!==t&&(s.alpha=t),s},$o={mode:"lchuv",toMode:{luv:_o,rgb:e=>uo(Fo(_o(e)))},fromMode:{rgb:e=>xo(To(ho(e))),luv:xo},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:_e,fixup:Le},c:_e,l:_e,alpha:{use:_e,fixup:Ce}},difference:{h:Ze},average:{h:Ke}},Ro=$o,Wo={...Ae,mode:"lrgb",toMode:{rgb:ze},fromMode:{rgb:$e},parse:["srgb-linear"],serialize:"srgb-linear"},zo={mode:"luv",toMode:{xyz50:Fo,rgb:e=>uo(Fo(e))},fromMode:{xyz50:To,rgb:e=>To(ho(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:_e,u:_e,v:_e,alpha:{use:_e,fixup:Ce}}},Oo=zo,Bo=({r:e,g:r,b:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a=Math.cbrt(.412221469470763*e+.5363325372617348*r+.0514459932675022*o),n=Math.cbrt(.2119034958178252*e+.6806995506452344*r+.1073969535369406*o),i=Math.cbrt(.0883024591900564*e+.2817188391361215*r+.6299787016738222*o),s={mode:"oklab",l:.210454268309314*a+.7936177747023054*n-.0040720430116193*i,a:1.9779985324311684*a-2.42859224204858*n+.450593709617411*i,b:.0259040424655478*a+.7827717124575296*n-.8086757549230774*i};return void 0!==t&&(s.alpha=t),s},jo=e=>{let r=Bo($e(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},Lo=({l:e,a:r,b:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a=Math.pow(e+.3963377773761749*r+.2158037573099136*o,3),n=Math.pow(e-.1055613458156586*r-.0638541728258133*o,3),i=Math.pow(e-.0894841775298119*r-1.2914855480194092*o,3),s={mode:"lrgb",r:4.076741636075957*a-3.3077115392580616*n+.2309699031821044*i,g:-1.2684379732850317*a+2.6097573492876887*n-.3413193760026573*i,b:-.0041960761386756*a-.7034186179359362*n+1.7076146940746117*i};return void 0!==t&&(s.alpha=t),s},Go=e=>ze(Lo(e));function Uo(e){const r=.206,o=1.206/1.03;return.5*(o*e-r+Math.sqrt((o*e-r)*(o*e-r)+.12*o*e))}function No(e){return(e*e+.206*e)/(1.206/1.03*(e+.03))}function qo(e,r){let o=function(e,r){let o,t,a,n,i,s,l,c;-1.88170328*e-.80936493*r>1?(o=1.19086277,t=1.76576728,a=.59662641,n=.75515197,i=.56771245,s=4.0767416621,l=-3.3077115913,c=.2309699292):1.81444104*e-1.19445276*r>1?(o=.73956515,t=-.45954404,a=.08285427,n=.1254107,i=.14503204,s=-1.2684380046,l=2.6097574011,c=-.3413193965):(o=1.35733652,t=-.00915799,a=-1.1513021,n=-.50559606,i=.00692167,s=-.0041960863,l=-.7034186147,c=1.707614701);let d=o+t*e+a*r+n*e*e+i*e*r,u=.3963377774*e+.2158037573*r,g=-.1055613458*e-.0638541728*r,h=-.0894841775*e-1.291485548*r;{let e=1+d*u,r=1+d*g,o=1+d*h,t=s*(e*e*e)+l*(r*r*r)+c*(o*o*o),a=s*(3*u*e*e)+l*(3*g*r*r)+c*(3*h*o*o);d-=t*a/(a*a-.5*t*(s*(6*u*u*e)+l*(6*g*g*r)+c*(6*h*h*o)))}return d}(e,r),t=Lo({l:1,a:o*e,b:o*r}),a=Math.cbrt(1/Math.max(t.r,t.g,t.b));return[a,a*o]}function Ho(e,r,o=null){o||(o=qo(e,r));let t=o[0],a=o[1];return[a/t,a/(1-t)]}function Vo(e,r,o){let t=qo(r,o),a=function(e,r,o,t,a,n=null){let i;if(n||(n=qo(e,r)),(o-a)*n[1]-(n[0]-a)*t<=0)i=n[1]*a/(t*n[0]+n[1]*(a-o));else{i=n[1]*(a-1)/(t*(n[0]-1)+n[1]*(a-o));{let n=o-a,s=.3963377774*e+.2158037573*r,l=-.1055613458*e-.0638541728*r,c=-.0894841775*e-1.291485548*r,d=n+t*s,u=n+t*l,g=n+t*c;{let e=a*(1-i)+i*o,r=i*t,n=e+r*s,h=e+r*l,p=e+r*c,f=n*n*n,b=h*h*h,v=p*p*p,m=3*d*n*n,y=3*u*h*h,k=3*g*p*p,w=6*d*d*n,P=6*u*u*h,M=6*g*g*p,x=4.0767416621*f-3.3077115913*b+.2309699292*v-1,_=4.0767416621*m-3.3077115913*y+.2309699292*k,S=_/(_*_-.5*x*(4.0767416621*w-3.3077115913*P+.2309699292*M)),C=-x*S,A=-1.2684380046*f+2.6097574011*b-.3413193965*v-1,I=-1.2684380046*m+2.6097574011*y-.3413193965*k,T=I/(I*I-.5*A*(-1.2684380046*w+2.6097574011*P-.3413193965*M)),E=-A*T,D=-.0041960863*f-.7034186147*b+1.707614701*v-1,F=-.0041960863*m-.7034186147*y+1.707614701*k,$=F/(F*F-.5*D*(-.0041960863*w-.7034186147*P+1.707614701*M)),R=-D*$;C=S>=0?C:1e6,E=T>=0?E:1e6,R=$>=0?R:1e6,i+=Math.min(C,Math.min(E,R))}}}return i}(r,o,e,1,e,t),n=Ho(r,o,t),i=e*(.11516993+1/(7.4477897+4.1590124*o+r*(1.75198401*o-2.19557347+r*(-2.13704948-10.02301043*o+r*(5.38770819*o-4.24894561+4.69891013*r))))),s=(1-e)*(.11239642+1/(1.6132032-.68124379*o+r*(.40370612+.90148123*o+r*(.6122399*o-.27087943+r*(.00299215-.45399568*o-.14661872*r))))),l=a/Math.min(e*n[0],(1-e)*n[1])*.9*Math.sqrt(Math.sqrt(1/(1/(i*i*i*i)+1/(s*s*s*s))));return i=.4*e,s=.8*(1-e),[Math.sqrt(1/(1/(i*i)+1/(s*s))),l,a]}function Yo(e){const r=void 0!==e.l?e.l:0,o=void 0!==e.a?e.a:0,t=void 0!==e.b?e.b:0,a={mode:"okhsl",l:Uo(r)};void 0!==e.alpha&&(a.alpha=e.alpha);let n=Math.sqrt(o*o+t*t);if(!n)return a.s=0,a;let i,[s,l,c]=Vo(r,o/n,t/n);if(n<l){let e=0,r=.8*s;i=(n-e)/(r+(1-r/l)*(n-e))*.8}else{let e=.2*l*l*1.25*1.25/s;i=.8+(n-l)/(e+(1-e/(c-l))*(n-l))*.2}return i&&(a.s=i,a.h=je(180*Math.atan2(t,o)/Math.PI)),a}function Zo(e){let r=void 0!==e.h?e.h:0,o=void 0!==e.s?e.s:0,t=void 0!==e.l?e.l:0;const a={mode:"oklab",l:No(t)};if(void 0!==e.alpha&&(a.alpha=e.alpha),!o||1===t)return a.a=a.b=0,a;let n,i,s,l,c=Math.cos(r/180*Math.PI),d=Math.sin(r/180*Math.PI),[u,g,h]=Vo(a.l,c,d);o<.8?(n=1.25*o,i=0,s=.8*u,l=1-s/g):(n=5*(o-.8),i=g,s=.2*g*g*1.25*1.25/u,l=1-s/(h-g));let p=i+n*s/(1-l*n);return a.a=p*c,a.b=p*d,a}const Ko={...Ar,mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:Yo,rgb:e=>Yo(jo(e))},toMode:{oklab:Zo,rgb:e=>Go(Zo(e))}},Jo=Ko;function Qo(e){let r=void 0!==e.l?e.l:0,o=void 0!==e.a?e.a:0,t=void 0!==e.b?e.b:0,a=Math.sqrt(o*o+t*t),n=a?o/a:1,i=a?t/a:1,[s,l]=Ho(n,i),c=1-.5/s,d=l/(a+r*l),u=d*r,g=d*a,h=No(u),p=g*h/u,f=Lo({l:h,a:n*p,b:i*p}),b=Math.cbrt(1/Math.max(f.r,f.g,f.b,0));r/=b,a=a/b*Uo(r)/r,r=Uo(r);const v={mode:"okhsv",s:a?(.5+l)*g/(.5*l+l*c*g):0,v:r?r/u:0};return v.s&&(v.h=je(180*Math.atan2(t,o)/Math.PI)),void 0!==e.alpha&&(v.alpha=e.alpha),v}function Xo(e){const r={mode:"oklab"};void 0!==e.alpha&&(r.alpha=e.alpha);const o=void 0!==e.h?e.h:0,t=void 0!==e.s?e.s:0,a=void 0!==e.v?e.v:0,n=Math.cos(o/180*Math.PI),i=Math.sin(o/180*Math.PI),[s,l]=Ho(n,i),c=.5,d=1-c/s,u=1-t*c/(c+l-l*d*t),g=t*l*c/(c+l-l*d*t),h=No(u),p=g*h/u,f=Lo({l:h,a:n*p,b:i*p}),b=Math.cbrt(1/Math.max(f.r,f.g,f.b,0)),v=No(a*u),m=g*v/u;return r.l=v*b,r.a=m*n*b,r.b=m*i*b,r}const et={...Er,mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:Qo,rgb:e=>Qo(jo(e))},toMode:{oklab:Xo,rgb:e=>Go(Xo(e))}},rt=et,ot={...mo,mode:"oklab",toMode:{lrgb:Lo,rgb:Go},fromMode:{lrgb:Bo,rgb:jo},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[function(e,r){if(!r||"oklab"!==r[0])return;const o={mode:"oklab"},[,t,a,n,i]=r;return t.type!==he&&a.type!==he&&n.type!==he?(t.type!==ge&&(o.l=Math.min(Math.max(0,t.type===de?t.value:t.value/100),1)),a.type!==ge&&(o.a=a.type===de?a.value:.4*a.value/100),n.type!==ge&&(o.b=n.type===de?n.value:.4*n.value/100),i.type!==ge&&(o.alpha=Math.min(1,Math.max(0,i.type===de?i.value:i.value/100))),o):void 0}],serialize:e=>`oklab(${void 0!==e.l?e.l:"none"} ${void 0!==e.a?e.a:"none"} ${void 0!==e.b?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`},tt=ot,at={...wo,mode:"oklch",toMode:{oklab:e=>Xe(e,"oklab"),rgb:e=>Go(Xe(e,"oklab"))},fromMode:{rgb:e=>Qe(jo(e),"oklch"),oklab:e=>Qe(e,"oklch")},parse:[function(e,r){if(!r||"oklch"!==r[0])return;const o={mode:"oklch"},[,t,a,n,i]=r;if(t.type!==ge){if(t.type===he)return;o.l=Math.min(Math.max(0,t.type===de?t.value:t.value/100),1)}if(a.type!==ge&&(o.c=Math.max(0,a.type===de?a.value:.4*a.value/100)),n.type!==ge){if(n.type===ue)return;o.h=n.value}return i.type!==ge&&(o.alpha=Math.min(1,Math.max(0,i.type===de?i.value:i.value/100))),o}],serialize:e=>`oklch(${void 0!==e.l?e.l:"none"} ${void 0!==e.c?e.c:"none"} ${void 0!==e.h?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}},nt=at,it=e=>{let{r,g:o,b:t,alpha:a}=$e(e),n={mode:"xyz65",x:.486570948648216*r+.265667693169093*o+.1982172852343625*t,y:.2289745640697487*r+.6917385218365062*o+.079286914093745*t,z:0*r+.0451133818589026*o+1.043944368900976*t};return void 0!==a&&(n.alpha=a),n},st=({x:e,y:r,z:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a=ze({r:2.4934969119414263*e-.9313836179191242*r-.402710784450717*o,g:-.8294889695615749*e+1.7626640603183465*r+.0236246858419436*o,b:.0358458302437845*e-.0761723892680418*r+.9568845240076871*o},"p3");return void 0!==t&&(a.alpha=t),a},lt={...Ae,mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>st(Re(e)),xyz65:st},toMode:{rgb:e=>Oe(it(e)),xyz65:it}},ct=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},dt=({x:e,y:r,z:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a={mode:"prophoto",r:ct(1.3457868816471585*e-.2555720873797946*r-.0511018649755453*o),g:ct(-.5446307051249019*e+1.5082477428451466*r+.0205274474364214*o),b:ct(0*e+0*r+1.2119675456389452*o)};return void 0!==t&&(a.alpha=t),a},ut=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},gt=e=>{let r=ut(e.r),o=ut(e.g),t=ut(e.b),a={mode:"xyz50",x:.7977666449006423*r+.1351812974005331*o+.0313477341283922*t,y:.2880748288194013*r+.7118352342418731*o+899369387256e-16*t,z:0*r+0*o+.8251046025104602*t};return void 0!==e.alpha&&(a.alpha=e.alpha),a},ht={...Ae,mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:dt,rgb:e=>dt(ho(e))},toMode:{xyz50:gt,rgb:e=>uo(gt(e))}},pt=1.09929682680944,ft=e=>{const r=Math.abs(e);return r>.018053968510807?(Math.sign(e)||1)*(pt*Math.pow(r,.45)-(pt-1)):4.5*e},bt=({x:e,y:r,z:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a={mode:"rec2020",r:ft(1.7166511879712683*e-.3556707837763925*r-.2533662813736599*o),g:ft(-.6666843518324893*e+1.6164812366349395*r+.0157685458139111*o),b:ft(.0176398574453108*e-.0427706132578085*r+.9421031212354739*o)};return void 0!==t&&(a.alpha=t),a},vt=1.09929682680944,mt=(e=0)=>{let r=Math.abs(e);return r<.08124285829863151?e/4.5:(Math.sign(e)||1)*Math.pow((r+vt-1)/vt,1/.45)},yt=e=>{let r=mt(e.r),o=mt(e.g),t=mt(e.b),a={mode:"xyz65",x:.6369580483012911*r+.1446169035862083*o+.1688809751641721*t,y:.262700212011267*r+.6779980715188708*o+.059301716469862*t,z:0*r+.0280726930490874*o+1.0609850577107909*t};return void 0!==e.alpha&&(a.alpha=e.alpha),a},kt={...Ae,mode:"rec2020",fromMode:{xyz65:bt,rgb:e=>bt(Re(e))},toMode:{xyz65:yt,rgb:e=>Oe(yt(e))},parse:["rec2020"],serialize:"rec2020"},wt=.0037930732552754493,Pt=Math.cbrt(wt),Mt=e=>Math.cbrt(e)-Pt,xt=e=>Math.pow(e+Pt,3),_t={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:({x:e,y:r,b:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);const a=xt(e+r)-wt,n=xt(r-e)-wt,i=xt(o+r)-wt,s=ze({r:11.031566904639861*a-9.866943908131562*n-.16462299650829934*i,g:-3.2541473810744237*a+4.418770377582723*n-.16462299650829934*i,b:-3.6588512867136815*a+2.7129230459360922*n+1.9459282407775895*i});return void 0!==t&&(s.alpha=t),s}},fromMode:{rgb:e=>{const{r,g:o,b:t,alpha:a}=$e(e),n=Mt(.3*r+.622*o+.078*t+wt),i=Mt(.23*r+.692*o+.078*t+wt),s={mode:"xyb",x:(n-i)/2,y:(n+i)/2,b:Mt(.2434226892454782*r+.2047674442449682*o+.5518098665095535*t+wt)-(n+i)/2};return void 0!==a&&(s.alpha=a),s}},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:_e,y:_e,b:_e,alpha:{use:_e,fixup:Ce}}},St={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:uo,lab:fo},fromMode:{rgb:ho,lab:co},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:_e,y:_e,z:_e,alpha:{use:_e,fixup:Ce}}},Ct={mode:"xyz65",toMode:{rgb:Oe,xyz50:e=>{let{x:r,y:o,z:t,alpha:a}=e;void 0===r&&(r=0),void 0===o&&(o=0),void 0===t&&(t=0);let n={mode:"xyz50",x:1.0479298208405488*r+.0229467933410191*o-.0501922295431356*t,y:.0296278156881593*r+.990434484573249*o-.0170738250293851*t,z:-.0092430581525912*r+.0150551448965779*o+.7518742899580008*t};return void 0!==a&&(n.alpha=a),n}},fromMode:{rgb:Re,xyz50:e=>{let{x:r,y:o,z:t,alpha:a}=e;void 0===r&&(r=0),void 0===o&&(o=0),void 0===t&&(t=0);let n={mode:"xyz65",x:.9554734527042182*r-.0230985368742614*o+.0632593086610217*t,y:-.0283697069632081*r+1.0099954580058226*o+.021041398966943*t,z:.0123140016883199*r-.0205076964334779*o+1.3303659366080753*t};return void 0!==a&&(n.alpha=a),n}},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:_e,y:_e,z:_e,alpha:{use:_e,fixup:Ce}}},At={mode:"yiq",toMode:{rgb:({y:e,i:r,q:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);const a={mode:"rgb",r:e+.95608445*r+.6208885*o,g:e-.27137664*r-.6486059*o,b:e-1.10561724*r+1.70250126*o};return void 0!==t&&(a.alpha=t),a}},fromMode:{rgb:({r:e,g:r,b:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);const a={mode:"yiq",y:.29889531*e+.58662247*r+.11448223*o,i:.59597799*e-.2741761*r-.32180189*o,q:.21147017*e-.52261711*r+.31114694*o};return void 0!==t&&(a.alpha=t),a}},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:_e,i:_e,q:_e,alpha:{use:_e,fixup:Ce}}};let It=((e=4)=>r=>"number"==typeof r?((e,r)=>Math.round(e*(r=Math.pow(10,r)))/r)(r,e):r)(2);const Tt=e=>Math.max(0,Math.min(1,e||0)),Et=e=>Math.round(255*Tt(e)),Dt=J("rgb");J("hsl"),te(Be),te(Je),te(wr),te(Mr),te(_r),te(Ar),te(Er),te(Fr),te(qr),te(ro),te(no),te(mo),te(yo),te(wo),te(Mo),te(Ro),te(Wo),te(Oo),te(Jo),te(rt),te(tt),te(nt),te(lt),te(ht),te(kt),te(Ae),te(_t),te(St),te(Ct),te(At),J("rgb");J("rgb");const Ft=new class{constructor(e){this.providerStorage=e,this.setWorkspaceStorageProxy=e=>{this.workspaceStorage=e},this.setRecreateFactory=e=>{this.recreateFactory=e},this.destroyWorkspaceStorageProxy=async()=>{const e=this.workspaceStorage;this.workspaceStorage=void 0,e&&await e.destroy()},this.ensureWorkspaceStorageProxy=async()=>{this.workspaceStorage||this.recreateFactory&&(this.workspaceStorage=await this.recreateFactory())},this.trySynchronizeWorkspaceStorage=async()=>{if(this.workspaceStorage){const e=this.getScheme();this.hasUserPreference()?this.workspaceStorage.setItem(b.SelectedColorScheme,e):e&&this.workspaceStorage.setItem(b.ThemePaletteDefaultScheme,e),this.generatedPalettes&&(this.themePaletteSheet||(this.themePaletteSheet=p(this.generatedPalettes)),this.workspaceStorage.setItem(b.ThemePaletteSheet,this.themePaletteSheet));const r=(e=>{const r="dark"===e;return{inForcedColorsMode:!1,prefersReducedTransparency:!1,shouldUseDarkColors:r,shouldUseDarkColorsForSystemIntegratedUI:r,shouldUseHighContrastColors:!1,shouldUseInvertedColorScheme:!1,themeSource:e}})(e);try{await fin.System.setThemePreferences(r)}catch(e){console.warn("failed to set native theme preferences: ",e)}}},this.setLegacyPalettes=async({light:e,dark:r},o)=>{this.lightPaletteVars=F({...e,...R(e,"light",o)}),this.darkPaletteVars=F({...r,...R(r,"dark",o)})},this.setPalettes=async({light:e,dark:r})=>{this.lightPaletteVars=e,this.darkPaletteVars=r}}hasUserPreference(){return null!==this.providerStorage.getItem(b.SelectedColorScheme)}setScheme(e){this.providerStorage.setItem(b.SelectedColorScheme,e)}setThemeDefaultScheme(e){const r=Object.values(P);r.includes(e)?this.providerStorage.setItem(b.ThemePaletteDefaultScheme,e):console.warn(`Invalid theme default scheme '${e}'. Must be one of: ${r.join(", ")}. Ignoring default.`)}setGeneratedPalettes(e){this.generatedPalettes=e}setThemePaletteSheet(e){this.themePaletteSheet=e,this.providerStorage.setItem(b.ThemePaletteSheet,e)}getScheme(){const e=this.providerStorage.getItem(b.SelectedColorScheme),r=this.providerStorage.getItem(b.ThemePaletteDefaultScheme);return null!==e?e:r??D}getThemePaletteSheet(){return this.themePaletteSheet}getThemePalette(){return{light:this.lightPaletteVars,dark:this.darkPaletteVars}}}(t),$t=()=>(a.Rm.debug("ThemeStorage: getThemeStorageController called"),Ft)},180:(e,r,o)=>{"use strict";o.d(r,{tT:()=>a});o(70),o(326),o(78);var t=o(695);o(79);const a=async e=>{const r=await(0,t.p4)();await r.dispatch("initialize-theme",e)}},248:(e,r,o)=>{"use strict";o.d(r,{H:()=>n});var t=o(438),a=o(786);const n=(e,r)=>{a.A.markStart(`${e}-registration`),(0,t.BY)().once("started",()=>a.A.markAndMeasure("workspace-app-started",`${e}-registration`));const o=fin.Window.wrapSync(r);o.once("initialized",()=>a.A.markAndMeasure(`${e}-window-initialized`,`${e}-registration`)),o.once("shown",()=>{a.A.markAndMeasure(`${e}-show`,`${e}-registration`)})}},834:(e,r,o)=>{"use strict";o.r(r),o.d(r,{CLIAction:()=>S.PK,CLIFilterOptionType:()=>S.oo,CLITemplate:()=>S.fC,deregister:()=>I,hide:()=>E,register:()=>A,show:()=>T});var t=o(723),a=o(786),n=o(277),i=o(70);const s="0",l="2",c="3",d="5",u="6";var g=o(695),h=o(79),p=o(575);var f=o(905);const b=()=>{};function v(e){const r={};let o=[];let t=[];let a=null;let n=f.Zo.Initial;r.getStatus=()=>n,r.getResultBuffer=()=>o,r.setResultBuffer=e=>{o=e,o?.length&&r.onChange()},r.getRevokedBuffer=()=>t,r.setRevokedBuffer=e=>{t=e,t?.length&&r.onChange()},r.setUpdatedContext=e=>{a=e,null!==a&&r.onChange()},r.getUpdatedContext=()=>a,r.onChange=b;const i={};return r.res=i,i.close=()=>{n!==f.Zo.Close&&(n=f.Zo.Close,r.onChange())},i.open=()=>{n!==f.Zo.Open&&(n=f.Zo.Open,r.onChange())},i.respond=o=>{const t=function(e=[],r=[],o="ascending"){const t=[],a=new Map;r.forEach(e=>{if(e.key)return a.set(e.key,e);t.push(e)});let n=e.map(e=>{if(e.key){const r=a.get(e.key);if(r)return a.delete(e.key),r}return e});return n.push(...a.values(),...t),n="ascending"===o?n.sort((e,r)=>(e?.score??1/0)-(r?.score??1/0)):n.sort((e,r)=>(r?.score??1/0)-(e?.score??1/0)),n}(r.getResultBuffer(),o,e);r.setResultBuffer(t)},i.revoke=(...e)=>{const o=new Set(e),t=r.getResultBuffer().filter(({key:e})=>{const r=o.has(e);return r&&o.delete(e),!r});r.setResultBuffer(t),o.size&&(r.getRevokedBuffer().forEach(e=>o.add(e)),r.setRevokedBuffer([...o]))},i.updateContext=e=>{r.setUpdatedContext(e)},r}const m=new Map;async function y(e){const{id:r,providerId:o}=e,t=M.getProviderOrFail(o);let a=m.get(r);a||(a=function(e,r){const o=new Set;let t=!1;return{close:()=>{t=!0;for(const e of o)e()},req:{id:e,...r,context:r?.context||{},onClose:e=>{o.add(e),t&&e()},removeListener:e=>{o.delete(e)}}}}(r,e),m.set(r,a));const n=v(),i=()=>{const e=n.getResultBuffer();n.setResultBuffer([]);const t=n.getRevokedBuffer();n.setRevokedBuffer([]);const a=n.getUpdatedContext();n.setUpdatedContext(null);const i=n.getStatus();!async function(e){(await(0,g.gj)()).dispatch(s,e)}({id:r,providerId:o,results:e,revoked:t,status:i,context:a})};let l=!0,c=!1;n.onChange=()=>{if(l)return l=!1,void i();c||(c=!0,setTimeout(()=>{c=!1,i()},100))};try{const{results:e,context:i}=await t.onUserInput(a.req,n.res),s=n.getStatus();return{id:r,providerId:o,status:s,results:e,context:i}}catch(e){return console.error(`OpenFin/Workspace/Home. Uncaught exception in search provider ${o} for search ${r}`,"This is likely a bug in the implementation of the search provider.",e),{id:r,providerId:o,error:e?.message}}}async function k(){for(const{req:e,close:r}of m.values())r(),m.delete(e.id)}async function w(e,r){const o=M.getProviderOrFail(e.providerId);return e.result.dispatcherIdentity=r,o.onResultDispatch?.(e.result)}function P(e){const r=m.get(e.id);r?.close(),m.delete(e.id)}const M=new p.xM("home"),x=async e=>{await(0,g.YD)();!("skipPlatformInitCheck"in e&&!0===e.skipPlatformInitCheck)&&await(0,h.KZ)(fin.me.identity);M.assertNotAlreadyRegistered(e.id),M.setProvider(e);const r=await(0,g.gj)();return function(e){e.homeChannelActionsRegistered||(e.homeChannelActionsRegistered=!0,e.register(s,y),e.register(u,P),e.register(d,w),e.addDisconnectionListener(k))}(r),r.dispatch(l,{id:e.id,title:e.title,icon:e.icon,clientAPIVersion:t.et,identity:fin.me.identity,scoreOrder:e.scoreOrder,commandCode:e.commandCode,description:e.description,hidden:e.hidden,listTitle:e.listTitle,inputPlaceholder:e.inputPlaceholder,inputLandingPlaceholder:e.inputLandingPlaceholder,logoUrl:e.logoUrl,dispatchFocusEvents:e.dispatchFocusEvents,subHeader:e.subHeader})};var _=o(248),S=o(872);let C;const A=async e=>{if(!e.icon)throw new Error(`${e.id} provider needs to have icon property defined.`);(0,_.H)("home",i.F2);const r=await x(e);return C=new Promise((o,i)=>{try{(0,n.GR)({allowed:!0,componentVersion:r?.workspaceVersion}),t.et,o({...r,clientAPIVersion:t.et,setSearchQuery:async(r,o)=>(await(0,g.YD)()).dispatch("set-search-query",{query:r,providerID:e.id,options:o})})}catch(e){(0,n.GR)({allowed:!1,rejectionCode:e instanceof Error?e.message:"unknown"}),i(e)}finally{a.A.markEndAndMeasure("home-registration")}}),C},I=async e=>{M.deleteProvider(e);const r=await(0,g.gj)();await r.dispatch(c,e)};async function T(){a.A.markStart("home-show"),await C;const e=await(0,g.YD)();await e.dispatch("show-home",void 0)}async function E(){await C;const e=await(0,g.YD)();await e.dispatch("hide-home",void 0)}},575:(e,r,o)=>{"use strict";o.d(r,{xM:()=>s});const t=require("title-case");class a extends Error{constructor(e,r){const o=(0,t.titleCase)(e);super(`${o} Provider. ${o} Provider${r?` with id ${r}`:""} is not currently registered.`)}}class n extends Error{constructor(e,r){const o=(0,t.titleCase)(e);super(`${o} Provider. ${o} Provider${r?` with id ${r}`:""} is already registered. Call \`deregister\` before registering again.`)}}class i extends Error{constructor(e,r){const o=(0,t.titleCase)(e);super(`Failed to get ${o} Provider. ${o} Provider with id ${r} is not currently registered.`)}}class s{constructor(e){this.providersMap=new Map,this.providerType=e}assertNotAlreadyRegistered(e){if(this.hasProvider(e))throw new n(this.providerType,e)}assertRegistered(e){if(!this.hasProvider(e))throw new a(this.providerType,e)}getProvider(e){return this.providersMap.get(e)}hasProvider(e){return this.providersMap.has(e)}setProvider(e){this.providersMap.set(e.id,e)}deleteProvider(e){this.providersMap.delete(e)}getProviderOrFail(e){const r=this.getProvider(e);if(!r)throw new i(this.providerType,e);return r}clearProviders(){this.providersMap.clear()}}},872:(e,r,o)=>{"use strict";var t,a,n;o.d(r,{PK:()=>t,fC:()=>a,oo:()=>n}),function(e){e.Suggestion="suggestion"}(t||(t={})),function(e){e.Contact="Contact",e.Custom="Custom",e.List="List",e.Plain="Plain",e.SimpleText="SimpleText",e.Loading="Loading",e.Error="Error"}(a||(a={})),function(e){e.MultiSelect="MultiSelect"}(n||(n={}))},710:(e,r,o)=>{"use strict";var t,a;o.d(r,{v:()=>t,z:()=>a}),function(e){e.Snapshot="snapshot",e.Manifest="manifest",e.View="view",e.External="external"}(t||(t={})),function(e){e.LandingPage="landingPage",e.AppGrid="appGrid"}(a||(a={}))},598:(e,r,o)=>{"use strict";o.r(r),o.d(r,{AppManifestType:()=>n.v,StorefrontTemplate:()=>n.z,deregister:()=>m,hide:()=>y,register:()=>v,show:()=>k});var t=o(277),a=o(695),n=o(710),i=o(723),s=o(786),l=o(70),c=o(79),d=o(575);let u=!1;async function g(e,r,o){const t=await(0,a.p4)();try{return await t.dispatch(e.action,e.payload)}catch(a){if(a instanceof Error&&-1!==a.toString().indexOf(e.action))return u||console.warn("You are using a newer version of the Workspace client library that is not supported by the currently running workspace provider. Please upgrade the Workspace to version 9.0 or later."),u=!0,await t.dispatch(r.action,r.payload),o;throw a}}const h=new d.xM("storefront"),p=async e=>{await(0,c.KZ)(fin.me.identity);const r=await(0,a.YD)();return h.assertNotAlreadyRegistered(e.id),h.setProvider(e),(e=>{e.storefrontChannelActionsRegistered||(e.storefrontChannelActionsRegistered=!0,e.register("get-storefront-provider-apps",e=>h.getProviderOrFail(e).getApps()),e.register("get-storefront-provider-footer",e=>h.getProviderOrFail(e).getFooter()),e.register("get-storefront-provider-landing-page",e=>h.getProviderOrFail(e).getLandingPage()),e.register("get-storefront-provider-navigation",e=>h.getProviderOrFail(e).getNavigation()),e.register("launch-storefront-provider-app",({id:e,app:r})=>h.getProviderOrFail(e).launchApp(r)))})(r),e.clientAPIVersion=i.et,g({action:"register-provider",payload:{providerType:"storefront",info:e}},{action:"register-storefront-provider",payload:e},{workspaceVersion:"unknown"})};var f=o(248);let b;const v=async e=>{(0,f.H)("store",l.gQ);const r=await p(e);return b=new Promise((o,n)=>{try{(0,t.xt)({allowed:!0,componentVersion:r?.workspaceVersion}),i.et,o({clientAPIVersion:i.et,workspaceVersion:r?.workspaceVersion??"",updateAppCardButtons:async r=>{const o=await(0,a.mQ)();await o.dispatch("update-app-card-button-config",{...r,id:e.id,title:e.title,icon:e.icon,platformIdentity:fin.me.identity})}})}catch(e){(0,t.xt)({allowed:!1,rejectionCode:e instanceof Error?e.message:"unknown"}),n(e)}finally{s.A.markEndAndMeasure("store-registration")}}),b},m=async e=>(await b,h.assertRegistered(e),h.deleteProvider(e),await(0,a.nA)(),g({action:"deregister-provider",payload:{providerType:"storefront",id:e}},{action:"deregister-storefront-provider",payload:e})),y=async()=>(await b,await(0,a.nA)(),g({action:"hide-provider-window",payload:{providerType:"storefront"}},{action:"hide-storefront"})),k=async()=>(s.A.markStart("store-show"),await b,await(0,a.nA)(),g({action:"show-provider-window",payload:{providerType:"storefront"}},{action:"show-storefront"}))},326:(e,r,o)=>{"use strict";o(102),o(70);new Map;var t,a,n,i,s,l;!function(e){e.CloseBrowserWindow="close-browser-window",e.QuitPlatform="quit-platform",e.ClosePage="close-page",e.AddToChannel="add-to-channel",e.RemoveFromChannel="remove-from-channel",e.OpenSaveModalInternal="open-save-modal-internal",e.DuplicatePage="duplicate-page",e.SetSelectedScheme="set-selected-scheme",e.ShowBrowserIndicator="show-browser-indicator",e.SetSelectedLanguage="set-selected-language",e.RefreshBookmarksInternal="refresh-bookmarks",e.GetLayoutsWithSelectedViewsInternal="get-layouts-with-selected-views",e.FocusAndExpandSearchInternal="focus-and-expand-search"}(t||(t={})),function(e){e.GetPages="get-pages",e.GetActivePageForWindow="get-active-page-for-window",e.AttachPagesToWindow="attach-pages-to-window",e.DetachPagesFromWindow="detach-pages-from-window",e.SetActivePageForWindow="set-active-page-for-window",e.RenamePage="rename-page",e.ReorderPagesForWindow="reorder-pages-for-window",e.UpdatePageForWindow="update-page-for-window",e.UpdatePagesWindowOptions="update-pages-window-options",e.IsDetachingPages="is-detaching-pages",e.IsActivePageChanging="is-active-page-changing"}(a||(a={})),function(e){e.GetApps="get-apps",e.GetCuratedContent="get-curated-content",e.GetRecentlyVisited="get-recently-visited",e.GetSearchProviders="get-search-providers"}(n||(n={})),function(e){e.CreateBookmarkNode="create-bookmark-node",e.GetBookmarkNode="get-bookmark-node",e.SearchBookmarkNodes="search-bookmark-nodes",e.UpdateBookmarkNode="update-bookmark-node",e.DeleteBookmarkNode="delete-bookmark-node"}(i||(i={})),function(e){e.UpdateFavoriteEntries="update-favorite-entries",e.UpdateContentMenu="update-content-menu",e.NavigateContentMenu="navigate-content-menu",e.MoreMenuCustomOptionClicked="more-menu-custom-option-clicked",e.RefreshDockCollectionMenu="refresh-dock-collection-menu"}(s||(s={})),function(e){e.SendUpdateVersionModalResponse="send-update-version-modal-response",e.SendIntentResolverModalResponse="send-intent-resolver-modal-response"}(l||(l={}))},78:(e,r,o)=>{"use strict";o(438),o(102),o(70);var t;!function(e){e.UpdatePlatformThemeScheme="update-platform-theme-scheme"}(t||(t={}))},79:(e,r,o)=>{"use strict";var t;o.d(r,{KZ:()=>n}),function(e){e.LaunchApp="launchApp",e.SavePage="savePage",e.GetSavedPage="getSavedPage",e.CreateSavedPage="createSavedPage",e.UpdateSavedPage="updateSavedPage",e.DeleteSavedPage="deleteSavedPage",e.GetSavedPages="getSavedPages",e.CreateSavedPageInternal="createSavedPageInternal",e.UpdateSavedPageInternal="updateSavedPageInternal",e.DeleteSavedPageInternal="deleteSavedPageInternal",e.UpdatePageForWindow="updatePageForWindow",e.AttachPagesToWindow="attachPagesToWindow",e.DetachPagesFromWindow="detachPagesFromWindow",e.ReorderPagesForWindow="reorderPagesForWindow",e.SetActivePage="setActivePage",e.AddPage="addPage",e.AddDefaultPage="addDefaultPage",e.GetAllAttachedPages="getAllAttachedPages",e.GetActivePageIdForWindow="getActivePageIdForWindow",e.GetPagesForWindow="getPagesForWindow",e.GetPageForWindow="getPageForWindow",e.GetSavedPageMetadata="getSavedPageMetadata",e.GetUniquePageTitle="getUniquePageTitle",e.GetLastFocusedBrowserWindow="getLastFocusedBrowserWindow",e.GetPageByViewIdentity="getPageByViewIdentity",e.GetThemes="getThemes",e.GetGeneratedPalettes="getGeneratedPalettes",e.GetThemePaletteSheet="getThemePaletteSheet",e.GetSelectedScheme="getSelectedScheme",e.SetSelectedScheme="setSelectedScheme",e.OpenGlobalContextMenuInternal="openGlobalContextMenuInternal",e.OpenViewTabContextMenuInternal="openViewTabContextMenuInternal",e.OpenPageTabContextMenuInternal="openPageTabContextMenuInternal",e.OpenSaveButtonContextMenuInternal="openSaveButtonContextMenuInternal",e.InvokeCustomActionInternal="invokeCustomActionInternal",e.RequestQuitPlatformDialogInternal="requestQuitPlatformDialogInternal",e.GetSavedWorkspace="getSavedWorkspace",e.CreateSavedWorkspace="createSavedWorkspace",e.UpdateSavedWorkspace="updateSavedWorkspace",e.DeleteSavedWorkspace="deleteSavedWorkspace",e.GetSavedWorkspaces="getSavedWorkspaces",e.GetSavedWorkspacesMetadata="getSavedWorkspacesMetadata",e.SaveWorkspace="saveWorkspace",e.GetCurrentWorkspace="getCurrentWorkspace",e.ApplyWorkspace="applyWorkspace",e.RestoreLastSavedWorkspaceInternal="restoreLastSavedWorkspaceInternal",e.SetActiveWorkspace="setActiveWorkspace",e.IsBrowserInitialized="isBrowserInitialized",e.Analytics="analyticsInternal",e.GetLanguage="getLanguage",e.GetLanguageResourcesInternal="getLanguageResourcesInternal",e.SetLanguage="setLanguage",e.GetDockProviderConfig="getDockProviderConfig",e.SaveDockProviderConfig="saveDockProviderConfig",e.HandleSaveModalOnPageClose="handleSaveModalOnPageClose",e.ShouldPageClose="shouldPageClose",e.ShouldWindowClose="shouldWindowClose",e.CopyPage="copyPage",e.HandlePageChanges="handlePageChanges",e.MarkUnsavedPagesAsSavedInternal="markUnsavedPagesAsSavedInternal",e.TrackRemovedTabInternal="trackRemovedTabInternal",e.RestoreRemovedTabInternal="restoreRemovedTabInternal",e.TrackVisitedSiteInternal="trackVisitedSiteInternal",e.GetRecentlyVisitedSitesInternal="getRecentlyVisitedSitesInternal",e.GetFrequentlyVisitedSitesInternal="getFrequentlyVisitedSitesInternal",e.SearchSitesInternal="searchSitesInternal",e.GetSearchProvidersInternal="getSearchProvidersInternal",e.GetCuratedContentInternal="getCuratedContentInternal",e.HandleRequestNavigationInternal="handleRequestNavigationInternal",e.RefreshBookmarksInternal="refreshBookmarksInternal",e.LaunchBookmarkInternal="launchBookmarkInternal",e.GetNotificationsConfig="getNotificationsConfig",e.UpdateDockFavoritesInternal="updateDockFavoritesInternal",e.UpdateContentMenuInternal="updateContentMenuInternal",e.LaunchDockEntryInternal="launchDockEntryInternal",e.SetDockFavoritesOrderInternal="setDockFavoritesOrderInternal",e.NavigateContentMenuInternal="navigateContentMenuInternal",e.SetDefaultDockButtonsOrderInternal="setDefaultDockButtonsOrderInternal",e.GetDockWorkspacesContextMenuInternal="getDockWorkspacesContextMenuInternal",e.HandleDockWorkspacesMenuResponseInternal="handleDockWorkspacesMenuResponseInternal",e.RefreshDockCollectionMenuInternal="refreshDockCollectionMenuInternal",e.LaunchCollectionInternal="launchCollectionInternal",e.RemoveDockFavoriteInternal="removeDockFavoriteInternal",e.AddDockFavoriteInternal="addDockFavoriteInternal",e.FocusAndExpandSearchInternal="focusAndExpandSearchInternal",e.SendUpdateVersionModalResponseInternal="sendUpdateVersionModalResponseInternal",e.ShowUpdateVersionModalInternal="showUpdateVersionModalInternal",e.ShowApplyAndPublishModalInternal="showApplyAndPublishModalInternal",e.GetNotificationIndicatorColorsInternal="getNotificationIndicatorColorsInternal"}(t||(t={}));const a=async e=>fin.Platform.wrapSync(e).getClient(),n=async e=>{const r=await a(e),o="Target is not a Workspace Platform. Target must call WorkspacePlatform.init";let t;try{t=await r.dispatch("isWorkspacePlatform")}catch(e){throw new Error(o)}if("boolean"==typeof t&&t)return console.warn("You are using an older version of the workspace platform. Please update your workspace platform."),t;if("object"==typeof t&&t.isWorkspacePlatform)return t;throw new Error(o)}},695:(e,r,o)=>{"use strict";o.d(r,{YD:()=>b,gj:()=>g,mQ:()=>f,nA:()=>p,p4:()=>d});var t=o(102),a=o(723),n=o(70),i=o(905),s=o(211),l=o(180);const c=(0,t.A)("__of_workspace_protocol__"),d=c,u=c,g=(0,t.A)(i.BT),h=e=>{const r=new URL(e);return r.searchParams.append("isLaunchedViaLib","true"),r.toString()},p=async()=>{if(!await(0,n.C)(n.xt)){if(a.jw||-1===navigator.userAgent.indexOf("Win"))return void await fin.Application.startFromManifest(h(a.m7));await fin.System.openUrlWithBrowser(h(a.t8))}},f=async()=>(await p(),d()),b=async()=>{const e=(0,s.v)(),r=e.getThemePaletteSheet(),o=e.getScheme(),t=e.getThemePalette();return await p(),await(0,l.tT)({themePaletteSheet:r,selectedScheme:o,themePalette:t}),u()}},905:(e,r,o)=>{"use strict";o.d(r,{BT:()=>t,Zo:()=>n});const t="__search-openfin-browser-home-topic__";var a,n;!function(e){e.Fetching="fetching",e.Fetched="fetched",e.Complete="complete"}(a||(a={})),function(e){e[e.Initial=0]="Initial",e[e.Open=1]="Open",e[e.Close=2]="Close"}(n||(n={}))},438:(e,r,o)=>{"use strict";o.d(r,{BY:()=>l,MW:()=>t});var t,a,n=o(723);!function(e){e.Workspace="openfin-workspace",e.OldWorkspace="openfin-browser"}(t||(t={})),function(e){e.FinProtocol="fin-protocol"}(a||(a={}));n.$h;const i={uuid:t.Workspace},s=e=>{if(!n.cI)throw new Error("getApplication cannot be used in a non OpenFin env. Avoid using this during pre-rendering.");return fin.Application.wrapSync(e)},l=()=>s(i)},102:(e,r,o)=>{"use strict";o.d(r,{A:()=>n});var t=o(723);const a=t.YY&&"complete"!==document.readyState&&new Promise(e=>document.addEventListener("readystatechange",()=>{"complete"===document.readyState&&e()}));function n(e){let r;const o=new Set;return()=>{if(!t.cI)throw new Error("getChannelClient cannot be used outside an OpenFin env. Avoid using this method during pre-rendering.");return r||(r=(async()=>{await a;const n={clientAPIVersion:t.et},i=await fin.InterApplicationBus.Channel.connect(e,{payload:n});return i.onDisconnection(async()=>{o.forEach(e=>e()),o.clear(),console.warn(`disconnected from channel provider ${e}`),r=void 0}),i})().then(e=>(e.addDisconnectionListener=e=>{o.add(e)},e)).catch(o=>{throw r=void 0,new Error(`failed to connect to channel provider ${e}: ${o}`)})),r}}},723:(e,r,o)=>{"use strict";var t;o.d(r,{$h:()=>s,YY:()=>n,cI:()=>a,et:()=>h,jw:()=>c,m7:()=>u,t8:()=>d,vL:()=>l}),function(e){e.Local="local",e.Dev="dev",e.Staging="staging",e.Prod="prod"}(t||(t={}));const a="undefined"!=typeof window&&"undefined"!=typeof fin,n=("undefined"==typeof process||process.env,"undefined"!=typeof window),i=n?window.origin:t.Local,s=a&&fin.me.uuid,l=a&&fin.me.name,c=(a&&fin.me.entityType,"prod"===t.Local),d=(t.Dev,t.Staging,t.Prod,"fins://system-apps/workspace"),u="https://workspace.openfin.co/workspace/24.0.7/app.json",g=e=>e.startsWith("http://")||e.startsWith("https://")?e:i+e,h=(g("https://workspace.openfin.co/workspace/24.0.7"),g("https://workspace.openfin.co/workspace/24.0.7"),"undefined"!=typeof WORKSPACE_DOCS_PLATFORM_URL&&g(WORKSPACE_DOCS_PLATFORM_URL),"undefined"!=typeof WORKSPACE_DOCS_CLIENT_URL&&g(WORKSPACE_DOCS_CLIENT_URL),"24.0.7");"undefined"!=typeof WORKSPACE_BUILD_SHA&&WORKSPACE_BUILD_SHA},822:(e,r,o)=>{"use strict";o.d(r,{Rm:()=>s});let t="undefined"==typeof LOG_STRINGIFY||!0===LOG_STRINGIFY;const a=e=>{try{return JSON.stringify(e,null,2)}catch(r){try{const r=new WeakSet;return JSON.stringify(e,(e,o)=>{if("object"==typeof o&&null!==o){if(r.has(o))return"[Circular Reference]";r.add(o)}return"bigint"==typeof o?`[BigInt: ${o.toString()}]`:"function"==typeof o?`[Function: ${o.name||"anonymous"}]`:"symbol"==typeof o?`[Symbol: ${o.toString()}]`:void 0===o?"[Undefined]":o},2)}catch(r){try{return`[Non-serializable: ${Object.prototype.toString.call(e)}]`}catch{return"[Unable to serialize data]"}}}},n=()=>"undefined"!=typeof window&&"undefined"!=typeof document&&("undefined"!=typeof LOG_DEBUG&&!0===LOG_DEBUG),i=(e,...r)=>{const o=console[e];try{if(t){o(...r.map(e=>"object"==typeof e&&null!==e?a(e):e))}else o(...r)}catch(e){console.error("Error printing stringified log, logging directly",e),o(...r)}},s={debug:(...e)=>{n()&&i("debug",...e)},info:(...e)=>i("info",...e),warn:(...e)=>i("warn",...e),error:(...e)=>i("error",...e),trace:(...e)=>i("trace",...e)}},786:(e,r,o)=>{"use strict";o.d(r,{A:()=>a});const t="of-workspace-";const a=new class{mark(e){performance.mark(`${t}${e}`)}markStart(e){performance.mark(`${t}${e}-start`)}markEnd(e){performance.mark(`${t}${e}-end`)}markEndAndMeasure(e){performance.mark(`${t}${e}-end`);try{return performance.measure(`${t}${e}`,`${t}${e}-start`,`${t}${e}-end`)}catch(e){0}}markAndMeasure(e,r){performance.mark(`${t}${e}`);try{return performance.measure(`${t}${e}-measure`,`${t}${r}-start`,`${t}${e}`)}catch(e){0}}reportWorkspacePerformanceEntries(){return performance.getEntriesByType("measure").filter(e=>e.name.startsWith(t))}reportWorkspacePerformance(){return this.reportWorkspacePerformanceEntries().map(e=>({name:e.name.replace(`${t}`,"").replace("-measure",""),duration:e.duration}))}}},277:(e,r,o)=>{"use strict";o.d(r,{GR:()=>s,ki:()=>c,xt:()=>l});var t,a=o(723),n=o(70);!function(e){e.Browser="Browser",e.Dock="Dock",e.EnterpriseDock="EnterpriseDock",e.Home="Home",e.Notification="Notification",e.Storefront="Storefront",e.Platform="Platform",e.Theming="Theming",e.Microflow="Microflow"}(t||(t={}));const i=async(e,r,o="workspace-licensing")=>{const t={apiVersion:r.apiVersion||a.et,componentName:e,componentVersion:r.componentVersion||a.et,allowed:r.allowed,rejectionCode:r.rejectionCode};fin.System.registerUsage({type:o,data:t})};const s=e=>{n.F2.uuid===n.$p.uuid&&n.F2.name===n.$p.name||i(t.Home,e)},l=e=>{i(t.Storefront,e)},c=e=>{i(t.Dock,e)};new Map},70:(e,r,o)=>{"use strict";o.d(r,{$p:()=>s,C:()=>g,F2:()=>l,T7:()=>c,gQ:()=>d,xt:()=>u});o(78);var t,a=o(438),n=o(723);!function(e){e.Home="openfin-home",e.Dock="openfin-dock",e.Storefront="openfin-storefront",e.HomeInternal="openfin-home-internal",e.BrowserIndicator="openfin-browser-indicator",e.BrowserWindow="internal-generated-window",e.ClassicWindow="internal-generated-classic-window",e.BrowserAddressSearchPrefix="openfin-browser-menu-address-search-",e.DockCompanion="openfin-dock-companion",e.AICompanionPrefix="openfin-ai-companion-",e.AboutPageWindow="here-about-page",e.FindInPageViewPrefix="here-find-in-page-view-",e.BrowserMenu="openfin-browser-menu",e.BrowserSaveMenu="openfin-browser-save-menu",e.DockSaveWorkspaceMenu="openfin-dock3-save-workspace-menu",e.DropdownMenu="openfin-enterprise-dropdown-menu",e.EnterpriseContextMenu="openfin-enterprise-context-menu",e.TabSearchMenu="openfin-browser-tab-search-menu",e.EnterpriseBookmarkDialogWindow="openfin-enterprise-bookmark-dialog",e.ZoomControlsDialog="here-zoom-controls-dialog",e.UpdateVersionModal="here-update-version-modal",e.ApplyAndPublishModal="here-apply-and-publish-modal",e.DesktopSignalsModal="here-desktop-signals-modal",e.IntentsResolverModal="here-intents-resolver-modal"}(t||(t={}));function i(e){if(!n.cI)throw new Error("getOFWindow can only be used in an OpenFin env. Avoid calling this method during pre-rendering.");return fin.Window.wrapSync(e)}const s={name:n.vL,uuid:n.$h};const l={name:t.Home,uuid:a.MW.Workspace},c={name:t.Dock,uuid:a.MW.Workspace},d={name:t.Storefront,uuid:a.MW.Workspace},u={name:a.MW.Workspace,uuid:a.MW.Workspace};const g=e=>i(e).getInfo().then(()=>!0).catch(()=>!1)},516:(e,r)=>{var o={d:(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o:(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};o.r(t),o.d(t,{Color:()=>a,Palette:()=>k,createTheme:()=>se});const a={white:"#FFFFFF",lightGray1:"#FAFBFE",lightGray2:"#F3F5F8",lightGray3:"#ECEEF1",lightGray4:"#DDDFE4",lightGray5:"#C9CBD2",neutralGray:"#7D808A",neutralGray80:"rgba(125,128,138,0.8)",silverGray:"#C0C1C2",darkGray1:"#53565F",darkGray2:"#383A40",darkGray3:"#2F3136",darkGray4:"#24262B",darkGray5:"#1E1F23",darkGray6:"#111214",openFinDarkest:"#3D39CD",openFinDarker:"#4642E0",openFin:"#504CFF",openFinLight:"#5254FB",openFinLighter:"#5C5EFE",openFinLightest:"#6864FF",functional1:"#207735",functional2:"#46C8F1",functional3:"#0A76D3",functional4:"#6CADE5",functional5:"#0A76D3",functional6:"#882BFE",functional7:"#F31818",functional8:"#C93400",functional9:"#FF5E60",functional10:"#F48F00",purple:"var(--color-primitives-indigo-500)",lightblue:"var(--color-primitives-blue-500)",aqua:"var(--color-primitives-teal-500)",yellow:"var(--color-primitives-yellow-500)",salmon:"var(--color-primitives-orange-500)",pink:"var(--color-primitives-pink-500)",lightpink:"var(--color-primitives-pink-500)",white00:"rgba(255,255,255,0.0)",white10:"rgba(255,255,255,0.1)",white20:"rgba(255,255,255,0.2)",white30:"rgba(255,255,255,0.3)",white40:"rgba(255,255,255,0.4)",white50:"rgba(255,255,255,0.5)",white60:"rgba(255,255,255,0.6)",white70:"rgba(255,255,255,0.7)",white80:"rgba(255,255,255,0.8)",white90:"rgba(255,255,255,0.9)",black00:"rgba(0,0,0,0.0)",black10:"rgba(0,0,0,0.1)",black20:"rgba(0,0,0,0.2)",black30:"rgba(0,0,0,0.3)",black40:"rgba(0,0,0,0.4)",black50:"rgba(0,0,0,0.5)",black60:"rgba(0,0,0,0.6)",black70:"rgba(0,0,0,0.7)",black80:"rgba(0,0,0,0.8)",black90:"rgba(0,0,0,0.9)",transparent:"transparent",openFinActive:"#4642FF",openFinHover:"#6965FF",lightGray4Active:"#D7DADF",lightGray4Hover:"#EBECEF",darkGray2Active:"#33353B",darkGray2Hover:"#44464E"},n="xsmall",i="small",s="base",l="large",c="xlarge",d="xxlarge",u="xxxlarge",g="xxxxlarge",h={[n]:4,[i]:8,[s]:12,[l]:16,[c]:20,[d]:24,[u]:32,[g]:48},p={[n]:"4px",[i]:"8px",[s]:"12px",[l]:"16px",[c]:"20px",[d]:"24px",[u]:"32px",[g]:"72px"},f={[n]:"2px",[i]:"4px",[s]:"8px",[l]:"24px",pill:"100vh",round:"50%",none:"0"},b={[s]:"0 4px 4px rgba(0, 0, 0, 0.25)"},v=["Inter","system-ui","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue","sans-serif"].join(","),m={[n]:"8px",[i]:"10px",[s]:"12px",[l]:"14px",[c]:"16px",[d]:"18px",[u]:"20px",[g]:"40px"},y={[n]:p.small,[i]:p.base,[s]:"15px",[l]:p.xlarge,[c]:p.xxlarge,[d]:p.xxxlarge,[u]:p.xxxxlarge,[g]:p.xxxxlarge},k={background1:"background1",background2:"background2",background3:"background3",background4:"background4",background5:"background5",background6:"background6",brandPrimary:"brandPrimary",brandSecondary:"brandSecondary",brandPrimaryActive:"brandPrimaryActive",brandPrimaryHover:"brandPrimaryHover",brandPrimaryFocused:"brandPrimaryFocused",brandPrimaryText:"brandPrimaryText",brandSecondaryActive:"brandSecondaryActive",brandSecondaryHover:"brandSecondaryHover",brandSecondaryFocused:"brandSecondaryFocused",brandSecondaryText:"brandSecondaryText",inputBackground:"inputBackground",inputColor:"inputColor",inputPlaceholder:"inputPlaceholder",inputDisabled:"inputDisabled",inputFocused:"inputFocused",inputBorder:"inputBorder",statusSuccess:"statusSuccess",statusWarning:"statusWarning",statusCritical:"statusCritical",statusActive:"statusActive",textDefault:"textDefault",textHelp:"textHelp",textInactive:"textInactive",borderNeutral:"borderNeutral",contentBackground1:"contentBackground1",contentBackground2:"contentBackground2",contentBackground3:"contentBackground3",contentBackground4:"contentBackground4",contentBackground5:"contentBackground5",linkDefault:"linkDefault",linkHover:"linkHover"};function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var P=/^\s+/,M=/\s+$/;function x(e,r){if(r=r||{},(e=e||"")instanceof x)return e;if(!(this instanceof x))return new x(e,r);var o=function(e){var r,o,t,a={r:0,g:0,b:0},n=1,i=null,s=null,l=null,c=!1,d=!1;return"string"==typeof e&&(e=function(e){e=e.replace(P,"").replace(M,"").toLowerCase();var r,o=!1;if(L[e])e=L[e],o=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(r=ee.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=ee.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=ee.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=ee.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=ee.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=ee.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=ee.hex8.exec(e))?{r:H(r[1]),g:H(r[2]),b:H(r[3]),a:K(r[4]),format:o?"name":"hex8"}:(r=ee.hex6.exec(e))?{r:H(r[1]),g:H(r[2]),b:H(r[3]),format:o?"name":"hex"}:(r=ee.hex4.exec(e))?{r:H(r[1]+""+r[1]),g:H(r[2]+""+r[2]),b:H(r[3]+""+r[3]),a:K(r[4]+""+r[4]),format:o?"name":"hex8"}:!!(r=ee.hex3.exec(e))&&{r:H(r[1]+""+r[1]),g:H(r[2]+""+r[2]),b:H(r[3]+""+r[3]),format:o?"name":"hex"}}(e)),"object"==w(e)&&(re(e.r)&&re(e.g)&&re(e.b)?(r=e.r,o=e.g,t=e.b,a={r:255*N(r,255),g:255*N(o,255),b:255*N(t,255)},c=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):re(e.h)&&re(e.s)&&re(e.v)?(i=Y(e.s),s=Y(e.v),a=function(e,r,o){e=6*N(e,360),r=N(r,100),o=N(o,100);var t=Math.floor(e),a=e-t,n=o*(1-r),i=o*(1-a*r),s=o*(1-(1-a)*r),l=t%6;return{r:255*[o,i,n,n,s,o][l],g:255*[s,o,o,i,n,n][l],b:255*[n,n,s,o,o,i][l]}}(e.h,i,s),c=!0,d="hsv"):re(e.h)&&re(e.s)&&re(e.l)&&(i=Y(e.s),l=Y(e.l),a=function(e,r,o){var t,a,n;function i(e,r,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+6*(r-e)*o:o<.5?r:o<2/3?e+(r-e)*(2/3-o)*6:e}if(e=N(e,360),r=N(r,100),o=N(o,100),0===r)t=a=n=o;else{var s=o<.5?o*(1+r):o+r-o*r,l=2*o-s;t=i(l,s,e+1/3),a=i(l,s,e),n=i(l,s,e-1/3)}return{r:255*t,g:255*a,b:255*n}}(e.h,i,l),c=!0,d="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=U(n),{ok:c,format:e.format||d,r:Math.min(255,Math.max(a.r,0)),g:Math.min(255,Math.max(a.g,0)),b:Math.min(255,Math.max(a.b,0)),a:n}}(e);this._originalInput=e,this._r=o.r,this._g=o.g,this._b=o.b,this._a=o.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||o.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=o.ok}function _(e,r,o){e=N(e,255),r=N(r,255),o=N(o,255);var t,a,n=Math.max(e,r,o),i=Math.min(e,r,o),s=(n+i)/2;if(n==i)t=a=0;else{var l=n-i;switch(a=s>.5?l/(2-n-i):l/(n+i),n){case e:t=(r-o)/l+(r<o?6:0);break;case r:t=(o-e)/l+2;break;case o:t=(e-r)/l+4}t/=6}return{h:t,s:a,l:s}}function S(e,r,o){e=N(e,255),r=N(r,255),o=N(o,255);var t,a,n=Math.max(e,r,o),i=Math.min(e,r,o),s=n,l=n-i;if(a=0===n?0:l/n,n==i)t=0;else{switch(n){case e:t=(r-o)/l+(r<o?6:0);break;case r:t=(o-e)/l+2;break;case o:t=(e-r)/l+4}t/=6}return{h:t,s:a,v:s}}function C(e,r,o,t){var a=[V(Math.round(e).toString(16)),V(Math.round(r).toString(16)),V(Math.round(o).toString(16))];return t&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function A(e,r,o,t){return[V(Z(t)),V(Math.round(e).toString(16)),V(Math.round(r).toString(16)),V(Math.round(o).toString(16))].join("")}function I(e,r){r=0===r?0:r||10;var o=x(e).toHsl();return o.s-=r/100,o.s=q(o.s),x(o)}function T(e,r){r=0===r?0:r||10;var o=x(e).toHsl();return o.s+=r/100,o.s=q(o.s),x(o)}function E(e){return x(e).desaturate(100)}function D(e,r){r=0===r?0:r||10;var o=x(e).toHsl();return o.l+=r/100,o.l=q(o.l),x(o)}function F(e,r){r=0===r?0:r||10;var o=x(e).toRgb();return o.r=Math.max(0,Math.min(255,o.r-Math.round(-r/100*255))),o.g=Math.max(0,Math.min(255,o.g-Math.round(-r/100*255))),o.b=Math.max(0,Math.min(255,o.b-Math.round(-r/100*255))),x(o)}function $(e,r){r=0===r?0:r||10;var o=x(e).toHsl();return o.l-=r/100,o.l=q(o.l),x(o)}function R(e,r){var o=x(e).toHsl(),t=(o.h+r)%360;return o.h=t<0?360+t:t,x(o)}function W(e){var r=x(e).toHsl();return r.h=(r.h+180)%360,x(r)}function z(e,r){if(isNaN(r)||r<=0)throw new Error("Argument to polyad must be a positive number");for(var o=x(e).toHsl(),t=[x(e)],a=360/r,n=1;n<r;n++)t.push(x({h:(o.h+n*a)%360,s:o.s,l:o.l}));return t}function O(e){var r=x(e).toHsl(),o=r.h;return[x(e),x({h:(o+72)%360,s:r.s,l:r.l}),x({h:(o+216)%360,s:r.s,l:r.l})]}function B(e,r,o){r=r||6,o=o||30;var t=x(e).toHsl(),a=360/o,n=[x(e)];for(t.h=(t.h-(a*r>>1)+720)%360;--r;)t.h=(t.h+a)%360,n.push(x(t));return n}function j(e,r){r=r||6;for(var o=x(e).toHsv(),t=o.h,a=o.s,n=o.v,i=[],s=1/r;r--;)i.push(x({h:t,s:a,v:n})),n=(n+s)%1;return i}x.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,r,o,t=this.toRgb();return e=t.r/255,r=t.g/255,o=t.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))},setAlpha:function(e){return this._a=U(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=S(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=S(this._r,this._g,this._b),r=Math.round(360*e.h),o=Math.round(100*e.s),t=Math.round(100*e.v);return 1==this._a?"hsv("+r+", "+o+"%, "+t+"%)":"hsva("+r+", "+o+"%, "+t+"%, "+this._roundA+")"},toHsl:function(){var e=_(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=_(this._r,this._g,this._b),r=Math.round(360*e.h),o=Math.round(100*e.s),t=Math.round(100*e.l);return 1==this._a?"hsl("+r+", "+o+"%, "+t+"%)":"hsla("+r+", "+o+"%, "+t+"%, "+this._roundA+")"},toHex:function(e){return C(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,r,o,t,a){var n=[V(Math.round(e).toString(16)),V(Math.round(r).toString(16)),V(Math.round(o).toString(16)),V(Z(t))];return a&&n[0].charAt(0)==n[0].charAt(1)&&n[1].charAt(0)==n[1].charAt(1)&&n[2].charAt(0)==n[2].charAt(1)&&n[3].charAt(0)==n[3].charAt(1)?n[0].charAt(0)+n[1].charAt(0)+n[2].charAt(0)+n[3].charAt(0):n.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*N(this._r,255))+"%",g:Math.round(100*N(this._g,255))+"%",b:Math.round(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*N(this._r,255))+"%, "+Math.round(100*N(this._g,255))+"%, "+Math.round(100*N(this._b,255))+"%)":"rgba("+Math.round(100*N(this._r,255))+"%, "+Math.round(100*N(this._g,255))+"%, "+Math.round(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(G[C(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var r="#"+A(this._r,this._g,this._b,this._a),o=r,t=this._gradientType?"GradientType = 1, ":"";if(e){var a=x(e);o="#"+A(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+t+"startColorstr="+r+",endColorstr="+o+")"},toString:function(e){var r=!!e;e=e||this._format;var o=!1,t=this._a<1&&this._a>=0;return r||!t||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(o=this.toRgbString()),"prgb"===e&&(o=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(o=this.toHexString()),"hex3"===e&&(o=this.toHexString(!0)),"hex4"===e&&(o=this.toHex8String(!0)),"hex8"===e&&(o=this.toHex8String()),"name"===e&&(o=this.toName()),"hsl"===e&&(o=this.toHslString()),"hsv"===e&&(o=this.toHsvString()),o||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return x(this.toString())},_applyModification:function(e,r){var o=e.apply(null,[this].concat([].slice.call(r)));return this._r=o._r,this._g=o._g,this._b=o._b,this.setAlpha(o._a),this},lighten:function(){return this._applyModification(D,arguments)},brighten:function(){return this._applyModification(F,arguments)},darken:function(){return this._applyModification($,arguments)},desaturate:function(){return this._applyModification(I,arguments)},saturate:function(){return this._applyModification(T,arguments)},greyscale:function(){return this._applyModification(E,arguments)},spin:function(){return this._applyModification(R,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(B,arguments)},complement:function(){return this._applyCombination(W,arguments)},monochromatic:function(){return this._applyCombination(j,arguments)},splitcomplement:function(){return this._applyCombination(O,arguments)},triad:function(){return this._applyCombination(z,[3])},tetrad:function(){return this._applyCombination(z,[4])}},x.fromRatio=function(e,r){if("object"==w(e)){var o={};for(var t in e)e.hasOwnProperty(t)&&(o[t]="a"===t?e[t]:Y(e[t]));e=o}return x(e,r)},x.equals=function(e,r){return!(!e||!r)&&x(e).toRgbString()==x(r).toRgbString()},x.random=function(){return x.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},x.mix=function(e,r,o){o=0===o?0:o||50;var t=x(e).toRgb(),a=x(r).toRgb(),n=o/100;return x({r:(a.r-t.r)*n+t.r,g:(a.g-t.g)*n+t.g,b:(a.b-t.b)*n+t.b,a:(a.a-t.a)*n+t.a})},x.readability=function(e,r){var o=x(e),t=x(r);return(Math.max(o.getLuminance(),t.getLuminance())+.05)/(Math.min(o.getLuminance(),t.getLuminance())+.05)},x.isReadable=function(e,r,o){var t,a,n,i,s,l=x.readability(e,r);switch(a=!1,(n=o,"AA"!==(i=((n=n||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==i&&(i="AA"),"small"!==(s=(n.size||"small").toLowerCase())&&"large"!==s&&(s="small"),t={level:i,size:s}).level+t.size){case"AAsmall":case"AAAlarge":a=l>=4.5;break;case"AAlarge":a=l>=3;break;case"AAAsmall":a=l>=7}return a},x.mostReadable=function(e,r,o){var t,a,n,i,s=null,l=0;a=(o=o||{}).includeFallbackColors,n=o.level,i=o.size;for(var c=0;c<r.length;c++)(t=x.readability(e,r[c]))>l&&(l=t,s=x(r[c]));return x.isReadable(e,s,{level:n,size:i})||!a?s:(o.includeFallbackColors=!1,x.mostReadable(e,["#fff","#000"],o))};var L=x.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},G=x.hexNames=function(e){var r={};for(var o in e)e.hasOwnProperty(o)&&(r[e[o]]=o);return r}(L);function U(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,r){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var o=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(r,Math.max(0,parseFloat(e))),o&&(e=parseInt(e*r,10)/100),Math.abs(e-r)<1e-6?1:e%r/parseFloat(r)}function q(e){return Math.min(1,Math.max(0,e))}function H(e){return parseInt(e,16)}function V(e){return 1==e.length?"0"+e:""+e}function Y(e){return e<=1&&(e=100*e+"%"),e}function Z(e){return Math.round(255*parseFloat(e)).toString(16)}function K(e){return H(e)/255}var J,Q,X,ee=(Q="[\\s|\\(]+("+(J="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+J+")[,|\\s]+("+J+")\\s*\\)?",X="[\\s|\\(]+("+J+")[,|\\s]+("+J+")[,|\\s]+("+J+")[,|\\s]+("+J+")\\s*\\)?",{CSS_UNIT:new RegExp(J),rgb:new RegExp("rgb"+Q),rgba:new RegExp("rgba"+X),hsl:new RegExp("hsl"+Q),hsla:new RegExp("hsla"+X),hsv:new RegExp("hsv"+Q),hsva:new RegExp("hsva"+X),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function re(e){return!!ee.CSS_UNIT.exec(e)}const oe=(e,r,o)=>{if(o&&(o<0||o>100))throw new Error(`${o} must be a number between 0 and 100`);return x(e)[r](o).toString()},te=(e,r)=>oe(e,"lighten",r),ae=(e,r)=>x.mostReadable(e,r).toHexString(),ne={fontFamily:v,fontSize:m,fontWeight:{normal:400,bold:600},lineHeight:{ui:1,heading:1.2,text:1.5},iconSize:y,radius:f,shadow:b,transition:{base:"200ms cubic-bezier(0.16, 1, 0.3, 1)",none:"0ms"},unit:h,px:p},ie=(e,r)=>{return{[`${e}Active`]:(o=r,oe(o,"darken",2)),[`${e}Hover`]:te(r,5),[`${e}Focused`]:ae(r,[a.white,a.darkGray5]),[`${e}Text`]:ae(r,[a.white,a.darkGray5])};var o},se=e=>Object.assign(Object.assign({},ne),{palette:Object.assign(Object.assign(Object.assign({},ie(k.brandPrimary,e.brandPrimary)),ie(k.brandSecondary,e.brandSecondary)),e)});var le=r;for(var ce in t)le[ce]=t[ce];t.__esModule&&Object.defineProperty(le,"__esModule",{value:!0})}},r={};function o(t){var a=r[t];if(void 0!==a)return a.exports;var n=r[t]={exports:{}};return e[t](n,n.exports,o),n.exports}o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};(()=>{"use strict";o.r(t),o.d(t,{ActionTrigger:()=>J,AppManifestType:()=>tr.v,ButtonStyle:()=>rr,CLIAction:()=>oe.PK,CLIFilterOptionType:()=>oe.oo,CLITemplate:()=>oe.fC,ContainerTemplateFragmentNames:()=>Qe,Dock:()=>e,DockButtonNames:()=>u,Home:()=>x,Integrations:()=>r,PresentationTemplateFragmentNames:()=>Xe,SearchTagBackground:()=>X,Storefront:()=>Je,StorefrontTemplate:()=>tr.z,TemplateFragmentTypes:()=>er});var e={};o.r(e),o.d(e,{DockButtonNames:()=>u,deregister:()=>m,minimize:()=>y,register:()=>v,show:()=>k});var r={};o.r(r),o.d(r,{Microsoft365WorkflowIntegration:()=>Ke});var a=o(723),n=o(822),i=o(786),s=o(277),l=o(70),c=o(695),d=o(79);var u,g,h=o(248);(g=u||(u={})).ActionButton="ActionButton",g.DropdownButton="DropdownButton";let p,f;const b=(e=[])=>{const r=e.filter(e=>!!e.id).map(e=>e.id);if(new Set(r).size!==r.length)throw new Error("Dock provider buttons must have unique identifiers if specified.")},v=async e=>{n.Rm.debug("Dock: register() - Dock registration started",e),(0,h.H)("dock",l.T7);const r=await(async e=>{await(0,d.KZ)(fin.me.identity);const r=await(0,c.YD)();if(f)throw new Error("Error using `Dock.register`. A Dock provider for this Workspace Platform is already registered. Call `Dock.deregister` before calling `Dock.register` again.");return f=e,e.clientAPIVersion=a.et,r.dispatch("register-provider",{providerType:"dock",info:e})})(e);return p=new Promise((o,t)=>{try{(e=>{e.workspaceComponents&&!Array.isArray(e.workspaceComponents)&&console.warn("Using the `WorkspaceComponentButtonOptions` type to configure the Workspace Components Buttons is deprecated. Please use `WorkspaceButtonsConfig` instead.")})(e),b(e.buttons),(0,s.ki)({allowed:!0,componentVersion:r?.workspaceVersion}),a.et,o({clientAPIVersion:a.et,workspaceVersion:r?.workspaceVersion??"",updateDockProviderConfig:async r=>{if(!f)throw new Error("Error using `Dock.updateDockProviderConfig`. Dock provider is not registered. Make sure to call `Dock.register` first.");b(r.buttons);const o=await(0,c.YD)();await o.dispatch("update-provider",{providerType:"dock",provider:{...e,workspaceComponents:r.workspaceComponents,buttons:r.buttons,title:r.title,icon:r.icon,disableUserRearrangement:r.disableUserRearrangement,id:e.id}})}})}catch(e){(0,s.ki)({allowed:!1,rejectionCode:e instanceof Error?e.message:"unknown"}),t(e),p=void 0}finally{i.A.markEndAndMeasure("dock-registration")}}),p},m=async()=>{if(await p,!f)throw new Error("Error using `Dock.deregister`. Dock provider is not registered. Call `Dock.register` before calling `Dock.deregister`.");const e=await(0,c.YD)();await e.dispatch("deregister-provider",{providerType:"dock",id:f.id}),f=void 0,p=void 0},y=async()=>{await p,await(0,c.nA)(),await(async e=>(await(0,c.p4)()).dispatch("hide-provider-window",{providerType:e}))("dock")},k=async()=>{i.A.markStart("dock-show"),await p,await(0,c.nA)(),await(async e=>(await(0,c.p4)()).dispatch("show-provider-window",{providerType:e}))("dock")};var w,P,M,x=o(834),_=function(e,r,o,t,a){if("m"===t)throw new TypeError("Private method is not writable");if("a"===t&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof r?e!==r||!a:!r.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===t?a.call(e,o):a?a.value=o:r.set(e,o),o},S=function(e,r,o,t){if("a"===o&&!t)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof r?e!==r||!t:!r.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===o?t:"a"===o?t.call(e):t?t.value:r.get(e)};w=new WeakMap,P=new WeakMap,M=new WeakMap;const C=class{constructor(e){w.set(this,void 0),P.set(this,void 0),M.set(this,void 0),_(this,w,e,"f"),_(this,P,new Map,"f"),_(this,M,[],"f")}get(e){if(S(this,P,"f").has(e))return this.updateQueue(e),S(this,P,"f").get(e)}has(e){return S(this,P,"f").has(e)}put(e,r){if(S(this,P,"f").has(e))S(this,P,"f").set(e,r),this.updateQueue(e);else{if(S(this,M,"f").length===S(this,w,"f")){const e=S(this,M,"f").shift();e&&S(this,P,"f").delete(e)}S(this,P,"f").set(e,r),S(this,M,"f").push(e)}}updateQueue(e){const r=S(this,M,"f").indexOf(e);-1!==r&&(S(this,M,"f").splice(r,1),S(this,M,"f").push(e))}};function A(e){return e&&"object"==typeof e&&!Array.isArray(e)}function I(e,...r){if(!r.length)return e;const o=r.shift();return A(e)&&A(o)&&Object.entries(o).forEach(([r,o])=>{A(o)?(e[r]||(e[r]={}),I(e[r],o)):Array.isArray(o)&&"hotkeys"===r&&Array.isArray(e[r])?e[r]=function(e){if(!e.length||!e.every(A))return e;const r=new Map,o=[];for(const t of e){const e=t.keys||t.id||t.name||JSON.stringify(t);r.has(e)||(r.set(e,!0),o.push(t))}return o}([...e[r],...o]):e[r]=o}),I(e,...r)}var T,E,D,F;(E=T||(T={})).Home="/home/",E.HomeSearch="/home/?deeplink=search",E.HomePagesRename="/home/pages/rename/",E.Dock="/dock/",E.Docs="/provider/docs/",E.Storefront="/storefront/",E.DeprecatedAlert="/provider/deprecated-alert/",E.Analytics="/provider/analytics/",E.Provider="/provider/",(F=D||(D={})).Browser="/browser/",F.BrowserPopupMenu="/popup-menu/",F.BrowserPopupMenuSaveModal="/popup-menu/save-modal/",F.BrowserPopupMenuLayouts="/popup-menu/layouts/layouts/",F.BrowserPopupMenuColorLinking="/popup-menu/color-linking/color-linking/",F.BrowserIndicator="/indicator/",F.BrowserPopupMenuAddressSearchResultsView="/popup-menu/address-search-results-view/",F.ResponseModal="/popup-menu/response-modal/",F.CloseConfirmationModal="/popup-menu/close-confirmation-modal/",F.EnterpriseBrowser="/enterprise/",F.EnterpriseLandingPage="/enterprise/landing/",F.EnterpriseContextMenu="/context-menu/",F.EnterpriseBookmarkDialog="/bookmark-dialog/",F.EnterpriseAboutPage="/popup-menu/about/",F.StorageProxy="/storage-proxy",F.DropdownMenu="/dropdown-menu/",F.TabSearchModal="/popup-menu/tab-search-modal/",F.EnterpriseDock="/dock/",F.ZoomControlsDialog="/zoom-controls-dialog/",F.DesktopSignalsModal="/popup-menu/desktop-signals-modal/",F.IntentsResolverModal="/popup-menu/intents-resolver-modal/",F.FindInPageModal="/popup-menu/find-in-page-modal/";const $="/microsoft-365-integration-assets/",R={IconOpenFinLogo:"/icons/openfinlogo.svg",IconFilter:"/icons/filter.svg",LightStorefront:"/icons/store-icon-light.png",DarkStorefront:"/icons/store-icon-dark.png",CallIconLight:"/icons/call-icon-light.svg",CallIconDark:"/icons/call-icon-dark.svg",ChatIconLight:"/icons/chat-icon-light.svg",ChatIconDark:"/icons/chat-icon-dark.svg",MessageIconLight:"/icons/message-icon-light.svg",MessageIconDark:"/icons/message-icon-dark.svg",Microsoft365Assets:{Microsoft365DocumentIcon:`${$}microsoft-365-document-icon.svg`,Microsoft365ExcelIcon:`${$}microsoft-365-excel-icon.svg`,Microsoft365PowerpointIcon:`${$}microsoft-365-powerpoint-icon.svg`,Microsoft365OutlookIcon:`${$}microsoft-365-outlook-icon.svg`,Microsoft365TeamsIcon:`${$}microsoft-365-teams-icon.svg`,Microsoft365Icon:`${$}microsoft-365-icon.svg`,PDFFileIcon:`${$}pdf-file-icon.svg`},DockIconLight:"/icons/dock-icon-light.png",DockIconDark:"/icons/dock-icon-dark.png"};var W;(W||(W={})).Search="search";var z,O;(O=z||(z={})).Home="/home",O.Browser="/browser",O.Enterprise="/enterprise",O.Provider="/provider",O.Storefront="/storefront",O.Dock="/dock";function B(e){return"/workspace/24.0.7"+e}var j,L,G,U,N,q=function(e,r,o,t,a){if("m"===t)throw new TypeError("Private method is not writable");if("a"===t&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof r?e!==r||!a:!r.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===t?a.call(e,o):a?a.value=o:r.set(e,o),o},H=function(e,r,o,t){if("a"===o&&!t)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof r?e!==r||!t:!r.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===o?t:"a"===o?t.call(e):t?t.value:r.get(e)};L=new WeakMap,G=new WeakMap,U=new WeakMap,j=new WeakSet,N=function(){const e=Array.from(H(this,L,"f").entries()).reduce((e,r)=>!e||r[1].timestamp<e[1].timestamp?r:e,null);return e?e[0]:null};const V=class{constructor(e=3e5,r=100){j.add(this),L.set(this,void 0),G.set(this,void 0),U.set(this,void 0),q(this,L,new Map,"f"),q(this,G,e,"f"),q(this,U,r,"f")}get(e){const r=H(this,L,"f").get(e);if(!r)return null;return Date.now()-r.timestamp<H(this,G,"f")?r.value:(H(this,L,"f").delete(e),null)}put(e,r){if(H(this,L,"f").size>=H(this,U,"f")){const e=H(this,j,"m",N).call(this);null!=e&&H(this,L,"f").delete(e)}H(this,L,"f").set(e,{value:r,timestamp:Date.now()})}remove(e){H(this,L,"f").delete(e)}clear(){H(this,L,"f").clear()}};function Y(){return void 0!==typeof crypto&&"randomUUID"in crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}var Z,K,J,Q,X,ee;(K=Z||(Z={})).Fetching="fetching",K.Fetched="fetched",K.Complete="complete",(Q=J||(J={})).UserAction="user-action",Q.FocusChange="focus-change",Q.Reload="reload",(ee=X||(X={})).Active="active",ee.Default="default";var re,oe=o(872),te=function(e,r,o,t){if("a"===o&&!t)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof r?e!==r||!t:!r.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===o?t:"a"===o?t.call(e):t?t.value:r.get(e)};const ae={};class ne{constructor(e){re.set(this,new Set),this._initializeWorkflows=async(e=this.config)=>{const{workflows:r}=e;for(const e in r){if(!r[e].disableAutoInitialize)try{te(this,re,"f").has(e)?console.warn(`Workflow ${e} already initialized.`):(te(this,re,"f").add(e),await this.initializeWorkflow(e))}catch(r){te(this,re,"f").delete(e),console.error(`Error registering ${e}:`,r)}}};const r=I({},ae,e);this.config=r}async initializeWorkflow(e){te(this,re,"f").add(e)}}re=new WeakMap;const ie=require("@openfin/microsoft365");let se=0;const le={chatMessage:"Chat Message",event:"Event",message:"Email",drive:"Document",contact:"Contact",user:"User",list:"List"},ce={pdf:"PDF",docx:"Word",pptx:"PowerPoint",xlsx:"Excel",onenote:"OneNote"},de={chatMessage:["Chat.Read","ChannelMessage.Read.All"],list:["Sites.Read.All"],event:["Calendars.Read"],message:["Mail.ReadWrite.Shared"],contact:["Contacts.Read.Shared","Mail.ReadWrite.Shared"],user:["User.Read.All","Presence.Read.All"]},ue="MICROSOFT_365_SEARCH_TYPE_FILTER",ge="MICROSOFT_365_SEARCH_FILE_TYPE_FILTER",he="MICROSOFT_365_SEARCH_DEPARTMENT_FILTER",pe="MICROSOFT_365_SEARCH_JOB_TITLE_FILTER",fe="Teams Call",be="Teams Chat",ve="Email",me=(e,r)=>{const o=[],t={item:e.context.selectedFilters?.find(e=>e.id===ue),documentType:e.context.selectedFilters?.find(e=>e.id===ge)},a=[{value:"Document",isSelected:!!t.item?.options?.find(({value:e})=>"File"===e)?.isSelected},{value:"Contact",isSelected:!!t.item?.options?.find(({value:e})=>"Contact"===e)?.isSelected},{value:"Chat Message",isSelected:!!t.item?.options?.find(({value:e})=>"Chat Message"===e)?.isSelected},{value:"Email",isSelected:!!t.item?.options?.find(({value:e})=>"Email"===e)?.isSelected},{value:"Event",isSelected:!!t.item?.options?.find(({value:e})=>"Event"===e)?.isSelected},{value:"List",isSelected:!!t.item?.options?.find(({value:e})=>"List"===e)?.isSelected}];return o.push({id:ue,title:"Type",type:oe.oo.MultiSelect,options:a.filter(e=>r.has(e.value))}),"Document"===t.item?.options?.filter(e=>e.isSelected)?.[0].value&&o.push({id:ge,title:"File Type",type:oe.oo.MultiSelect,options:Object.entries(ce).map(([,e])=>({value:e,isSelected:!!t.documentType?.options?.filter(e=>e.isSelected)?.find(({value:e})=>"File"===e)?.isSelected}))}),o},ye=(e,r)=>{const o=r.context.selectedFilters?.find(e=>e.id===ue)?.options;if(!Array.isArray(o)||!o.find(e=>"Contact"===e.value||"User"===e.value)?.isSelected)return[];const{department:t,jobTitle:a}=e.reduce((e,r)=>(r.department&&e.department.add(r.department),r.jobTitle&&e.jobTitle.add(r.jobTitle),e),{department:new Set,jobTitle:new Set}),n=r.context.selectedFilters?.find(e=>e.id===he),i=Array.from(t).map(e=>({value:e,isSelected:!!n?.options?.find(({value:r})=>r===e)?.isSelected})),s=r.context.selectedFilters?.find(e=>e.id===he),l=Array.from(a).map(e=>({value:e,isSelected:!!s?.options?.find(({value:r})=>r===e)?.isSelected}));return[{id:he,title:"Department",type:oe.oo.MultiSelect,options:i},{id:pe,title:"Job Title",type:oe.oo.MultiSelect,options:l}]},ke=e=>{const r=e.context.selectedFilters?.find(e=>e.id===he),o=Array.isArray(r?.options)?r.options.filter(e=>e.isSelected).map(e=>e.value):[],t=e.context.selectedFilters?.find(e=>e.id===pe);return{department:o,jobTitle:Array.isArray(t?.options)?t.options.filter(e=>e.isSelected).map(e=>e.value):[]}},we=(e,r)=>{const{department:o,jobTitle:t}=r;return e.filter(e=>(!o.length||o.includes(e.department))&&(!t.length||t.includes(e.jobTitle)))},Pe=e=>{const r=Array.isArray(e.context.selectedFilters?.find(e=>e.id===ge)?.options)?e.context.selectedFilters.find(e=>e.id===ge)?.options:[];return{filterFiles:r&&r.some(({isSelected:e})=>e),showWord:r.find(({value:e})=>"Word"===e)?.isSelected,showExcel:r.find(({value:e})=>"Excel"===e)?.isSelected,showPowerPoint:r.find(({value:e})=>"PowerPoint"===e)?.isSelected,showPDF:r.find(({value:e})=>"PDF"===e)?.isSelected,showOneNote:r.find(({value:e})=>"OneNote"===e)?.isSelected}},Me=(e,r)=>{const o=[];return r.showWord&&o.push(".docx"),r.showExcel&&o.push(".xlsx"),r.showPowerPoint&&o.push(".pptx"),r.showPDF&&o.push(".pdf"),r.showOneNote&&o.push(".one"),e.filter(e=>{if(e.file){const r=e.name.substring(e.name.lastIndexOf("."));return o.includes(r)}return!1})},xe=(e="")=>{switch(e.split(".").pop()?.toLowerCase()??""){case"docx":case"doc":return"Microsoft Word";case"xlsx":case"xls":return"Microsoft Excel";case"pptx":case"ppt":return"Microsoft PowerPoint";case"pdf":return"PDF";case"png":case"jpg":case"jpeg":case"gif":return"Image";case"txt":return"Text";default:return"File"}},_e=(e="")=>{switch(e.split(".").pop()?.toLowerCase()??""){case"docx":case"doc":return B(R.Microsoft365Assets.Microsoft365DocumentIcon);case"xlsx":case"xls":return B(R.Microsoft365Assets.Microsoft365ExcelIcon);case"pptx":case"ppt":return B(R.Microsoft365Assets.Microsoft365PowerpointIcon);case"pdf":return B(R.Microsoft365Assets.PDFFileIcon);default:return}},Se=e=>e.replace(/\+/g,"_").replace(/\//g,"-");var Ce,Ae,Ie,Te,Ee,De,Fe,$e,Re,We,ze,Oe,Be,je,Le,Ge,Ue,Ne,qe,He,Ve,Ye=function(e,r,o,t){if("a"===o&&!t)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof r?e!==r||!t:!r.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===o?t:"a"===o?t.call(e):t?t.value:r.get(e)},Ze=function(e,r,o,t,a){if("m"===t)throw new TypeError("Private method is not writable");if("a"===t&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof r?e!==r||!a:!r.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===t?a.call(e,o):a?a.value=o:r.set(e,o),o};class Ke extends ne{constructor(e){const r=I({},{workflows:{search:(se+=1,{homeProvider:{description:"Microsoft 365 search results provider",id:`MS365-${fin.me.identity.uuid}-${se}`,logoUrl:B(R.Microsoft365Assets.Microsoft365Icon),icon:B(R.Microsoft365Assets.Microsoft365Icon),title:"Microsoft 365 Search",inputPlaceholder:"What would you like to search in Microsoft 365 today?",dispatchFocusEvents:!0},microsoftEntityTypeConfig:{message:!0,chatMessage:!0,drive:!0,event:!0,user:!0,contact:!0,list:!0},useTeamsDeepLink:!0})}},e);super(r),Ce.add(this),Ae.set(this,void 0),this.workflowIntegrationName="Microsoft 365",Ie.set(this,void 0),Te.set(this,void 0),Ee.set(this,1),De.set(this,new Set),Fe.set(this,new C(100)),$e.set(this,new V(6e4)),this.connect=async(e=this.config.connect)=>{const{clientId:r,tenantId:o,redirectUri:t}=e,a=this.config.workflows?.search?Object.entries(this.config.workflows?.search?.microsoftEntityTypeConfig??{}).filter(([e,r])=>r).map(([e])=>de[e]).filter(e=>void 0!==e).flat():[];this.config.connect=e,Ze(this,Ae,await(0,ie.connect)(r,o,t,[...new Set(a)]),"f")},Re.set(this,()=>{if(!Ye(this,Ae,"f"))throw new Error("Microsoft365WorkflowIntegration not connected");return Ye(this,Ae,"f")}),je.set(this,async e=>{if(Ze(this,Te,e,"f"),e.data?.item?.id){const r=Ye(this,$e,"f").get(e.data.item.id);if(r)return void Ye(this,Ie,"f").respond([r])}if("user"===e.data?.type)Ye(this,qe,"f").call(this,e)}),Le.set(this,async e=>{await fin.Platform.getCurrentSync().createWindow({layout:{content:[{type:"stack",content:[{type:"component",componentName:"view",componentState:{url:e}}]}]},workspacePlatform:void 0})}),Ge.set(this,async e=>{if(e.data.item.channelIdentity.teamId){const r=new URL(`msteams:/l/channel/${e.data.item.channelIdentity.channelId}/${e.data.item.id}`);return!1===this.config.workflows?.search?.useTeamsDeepLink&&(r.protocol="https:"),r.searchParams.append("context",JSON.stringify({contextType:"channel"})),void await fin.System.openUrlWithBrowser(r.toString())}const r=new URL(`msteams:/l/message/${e.data.item.chatId}/${e.data.item.id}`);!1===this.config.workflows?.search?.useTeamsDeepLink&&(r.protocol="https:"),r.searchParams.append("context",JSON.stringify({contextType:"chat"})),await fin.System.openUrlWithBrowser(r.toString())}),Ue.set(this,async e=>{switch(e.action.name){case fe:{const r=new ie.TeamsConnection(Ye(this,Re,"f").call(this),this.config.workflows?.search?.useTeamsDeepLink);Ye(this,Ce,"m",We).call(this,()=>r.startCall([e.data.item.mail]));break}case ve:{const r=await this.executeApiRequest("/v1.0/me/messages","POST",{toRecipients:[{emailAddress:{address:e.data.item.mail}}]});let o=r.data.webLink;const t=new URL(r.data.webLink);if("/owa/"===t.pathname){const e=t.search.slice(1).split("&").reduce((e,r)=>{const[o,t]=r.split("=");return e[o]=t,e},{});if(e.ItemID){const r=e.ItemID;o=`${t.origin}/mail/deeplink/compose/${r}?ItemID=${r}&exvsurl=1`}}await fin.Platform.getCurrentSync().createView({url:o});break}case be:{const r=Ye(this,Re,"f").call(this),o=new ie.TeamsConnection(r,this.config.workflows?.search?.useTeamsDeepLink);Ye(this,Ce,"m",We).call(this,()=>o.startChat({emailAddresses:[r.currentUser.mail,e.data.item.mail]}));break}default:console.warn("Unhandled user action for result:",e,`Unknown action "${e.action.name}"`)}}),Ne.set(this,async e=>{switch(e.data.type){case"driveItem":Ye(this,Le,"f").call(this,e.data.item.webUrl);break;case"event":{const r=e.data.item,o=await this.executeApiRequest(`/v1.0/me/events/${r.id}`);Ye(this,Le,"f").call(this,o.data.webLink);break}case"chatMessage":Ye(this,Ge,"f").call(this,e);break;case"message":Ye(this,Le,"f").call(this,e.data.item.webLink);break;case"list":{const r=e.data.item,o=await this.executeApiRequest(`/v1.0/sites/${r.parentReference?.siteId}/lists/${r.id}`);Ye(this,Le,"f").call(this,o.data.webUrl);break}case"user":Ye(this,Ue,"f").call(this,e);break;default:console.warn("Unhandled user action for result:",e,`Unknown result type "${e.data.type}"`)}}),qe.set(this,async e=>{let r,o;const t=[],a=e.data.item;Ye(this,Fe,"f").has(a.id)?r=Ye(this,Fe,"f").get(a.id):t.push({id:"contactPhoto",method:"GET",url:`/users/${e.data.item.id}/photo/$value`,headers:{ConsistencyLevel:"eventual"}}),t.push({id:"presence",method:"GET",url:`/users/${e.data.item.id}/presence`});try{const e=await Ye(this,Ce,"m",ze).call(this,t),i=e.data?.responses.find(e=>"contactPhoto"===e.id);i&&200!==i.status&&console.warn("Error fetching user photo",i),i?.body&&200===i?.status&&(r=`data:image/jpeg;base64,${i.body}`,Ye(this,Fe,"f").put(a.id,r));const s=e.data?.responses.find(e=>"presence"===e.id);200!==s.status&&console.warn("Error fetching user presence",s),s?.body&&200===s.status&&(n=s.body,o={available:"available",availableidle:"available",away:"away",berightback:"away",busy:"busy",busyidle:"busy",donotdisturb:"do-not-disturb",offline:"offline",presenceunknown:"offline"}[n.availability?.toLowerCase()])}catch(e){console.error("Error fetching user data",e)}var n;const i=[["Department",a.department||"N/A"],["Email",a.mail||"N/A"],["Work Phone",a.businessPhones?.[0]||"N/A"],["Mobile",a.mobilePhone||"N/A"],["Location",a.officeLocation||"N/A"]],s={...e,template:oe.fC.Contact,templateContent:{name:e.data.item.displayName,title:e.data.item.jobTitle,details:[i],photoUrl:r,onlineStatus:o,buttons:[{type:"button",icon:{light:B(R.CallIconLight),dark:B(R.CallIconDark)},tooltip:"Teams Call",action:fe},{type:"button",icon:{light:B(R.ChatIconLight),dark:B(R.ChatIconDark)},tooltip:"Chat",action:be},{type:"button",icon:{light:B(R.MessageIconLight),dark:B(R.MessageIconDark)},tooltip:"E-mail",action:ve}]}};Ye(this,$e,"f").put(e.data.item.id,s),Ye(this,Ie,"f").respond([s])}),He.set(this,async(e,r)=>{if(Ye(this,Ie,"f")&&Ye(this,Ie,"f").close(),Ze(this,Ie,r,"f"),Ye(this,Ie,"f").open(),e.query.length<Ye(this,Ee,"f"))return{results:[]};const o=encodeURIComponent(e.query),t=[],a=((e,r)=>{const o=Array.isArray(e.context.selectedFilters?.find(e=>e.id===ue)?.options)?e.context.selectedFilters.find(e=>e.id===ue)?.options:[],t=o.every(({isSelected:e})=>!e);return{showDocuments:r.has("Document")&&(t||!!o.find(({value:e})=>"Document"===e)?.isSelected),showContacts:r.has("Contact")&&(t||!!o.find(({value:e})=>"Contact"===e)?.isSelected),showChatMessages:r.has("Chat Message")&&(t||!!o.find(({value:e})=>"Chat Message"===e)?.isSelected),showMessages:r.has("Email")&&(t||!!o.find(({value:e})=>"Email"===e)?.isSelected),showEvents:r.has("Event")&&(t||!!o.find(({value:e})=>"Event"===e)?.isSelected),showLists:r.has("List")&&(t||!!o.find(({value:e})=>"List"===e)?.isSelected)}})(e,Ye(this,De,"f"));if(a.showDocuments){const e=`'${o}'`;t.push({id:"driveItem",method:"GET",url:`/me/drive/root/search(q=${encodeURIComponent(e)})`,headers:{ConsistencyLevel:"eventual"}})}if(a.showEvents&&t.push({id:"event",url:"/search/query",method:"POST",body:{requests:[{entityTypes:["event"],query:{queryString:e.query},from:0,size:10}]},headers:{"Content-Type":"application/json"}}),a.showContacts){const r=`"${e.query}"`;t.push({id:"contact",method:"GET",url:`/me/contacts?$search=${encodeURIComponent(r)}&$top=10`});const o=["displayName","givenName","surname"].map(r=>`"${r}:${e.query}"`).join(" OR ");t.push({id:"user",method:"GET",url:`/users?$search=${encodeURIComponent(o)}&$top=10&$select=id,displayName,department,mail,businessPhones,mobilePhone,officeLocation,jobTitle`,headers:{ConsistencyLevel:"eventual"}})}if(a.showMessages&&t.push({id:"message",method:"GET",url:`/me/messages?$select=sender,subject,bodyPreview,receivedDateTime,webLink&$search=${encodeURIComponent(`"${e.query}"`)}&$top=10`}),a.showChatMessages&&t.push({id:"chatMessage",url:"/search/query",method:"POST",body:{requests:[{entityTypes:["chatMessage"],query:{queryString:e.query},from:0,size:10}]},headers:{"Content-Type":"application/json"}}),a.showLists&&t.push({id:"list",url:"/search/query",method:"POST",body:{requests:[{entityTypes:["list"],query:{queryString:e.query},from:0,size:10}]},headers:{"Content-Type":"application/json"}}),0===t.length)return{results:[]};const{results:n,filters:i}=await Ye(this,Ce,"m",Oe).call(this,t,e);return n.find(e=>e.key===Ye(this,Te,"f")?.key)?.template===oe.fC.Loading&&Ye(this,je,"f").call(this,Ye(this,Te,"f")),{results:n,context:{filters:i}}}),Ve.set(this,async e=>{switch(e.action.trigger){case J.FocusChange:Ye(this,je,"f").call(this,e);break;case J.UserAction:Ye(this,Ne,"f").call(this,e);break;case J.Reload:break;default:console.warn(`Unknown action trigger: ${e.action.trigger}`)}}),this.initializeWorkflow=async e=>{if("search"!==e)throw new Error(`Attempted to initialize unknown workflow: ${e}`);await x.register({...this.config.workflows.search.homeProvider,onUserInput:Ye(this,He,"f"),onResultDispatch:Ye(this,Ve,"f")}),(0,ie.enableLogging)(),await this.connect(),super.initializeWorkflow(e)},Object.entries(r.workflows?.search?.microsoftEntityTypeConfig||{}).filter(([e,r])=>r).forEach(([e])=>{Ye(this,De,"f").add(le[e])})}async executeApiRequest(...e){return Ye(this,Ce,"m",We).call(this,()=>Ye(this,Re,"f").call(this).executeApiRequest(...e))}}Ae=new WeakMap,Ie=new WeakMap,Te=new WeakMap,Ee=new WeakMap,De=new WeakMap,Fe=new WeakMap,$e=new WeakMap,Re=new WeakMap,je=new WeakMap,Le=new WeakMap,Ge=new WeakMap,Ue=new WeakMap,Ne=new WeakMap,qe=new WeakMap,He=new WeakMap,Ve=new WeakMap,Ce=new WeakSet,We=async function(e){try{return await e()}catch(r){if(r instanceof ie.AuthTokenExpiredError)return await this.connect(),e();throw r}},ze=async function(e){return this.executeApiRequest("/v1.0/$batch","POST",{requests:e})},Oe=async function(e,r){try{const o=await Ye(this,Ce,"m",ze).call(this,e);return{filters:[...me(r,Ye(this,De,"f")),...ye(o.data.responses.find(e=>"user"===e.id)?.body?.value||[],r)],results:Ye(this,Ce,"m",Be).call(this,o,r)}}catch(e){return console.warn("Failed to execute Batch API request: ",e),{filters:[],results:[{key:Y(),title:"Error Fetching Search Results",description:"",actions:[],template:oe.fC.Error,templateContent:`Failed to execute Batch API request: ${JSON.stringify(e)}`}]}}},Be=function(e,r){let o=[];for(const t of e.data.responses)if(200===t.status)switch(t.id){case"driveItem":{const e=Pe(r),a=e.filterFiles?Me(t.body.value,e):t.body.value;o.push(...(a||[]).map(e=>({key:e.id??Y(),title:e.name??"",description:e.file?.mimeType??"",label:xe(e.name),icon:_e(e.name),data:{type:"driveItem",item:e},actions:[{name:"Launch"}],template:oe.fC.Plain,templateContent:void 0})));break}case"event":o.push(...t.body?.value?.[0]?.hitsContainers?.[0]?.hits?.filter(e=>e.resource.subject).map(e=>{const r=e.resource,o=Se(e.hitId);return{key:o,title:r.subject??"",label:"Calendar Event",icon:B(R.Microsoft365Assets.Microsoft365OutlookIcon),actions:[{name:"Launch"}],data:{type:"event",item:{...r,id:o}},template:oe.fC.Plain,templateContent:void 0}})||[]);break;case"contact":{const e=ke(r),a=we(t.body.value||[],e);o.push(...(a||[]).map(e=>({key:e.id??Y(),title:e.displayName??"",label:"Outlook contact",icon:B(R.Microsoft365Assets.Microsoft365OutlookIcon),actions:[],data:{type:"contact",item:e},template:oe.fC.Plain,templateContent:void 0})));break}case"user":{const e=ke(r),a=we(t.body.value||[],e);o.push(...(a||[]).map(e=>({key:e.id??Y(),title:e.displayName??"",label:"Teams contact",icon:B(R.Microsoft365Assets.Microsoft365TeamsIcon),actions:[],data:{type:"user",item:e},template:oe.fC.Loading,templateContent:void 0})));break}case"message":o.push(...(t.body.value||[]).map(e=>({key:e.id??Y(),title:`${e.subject??"Untitled Message"}${e.isDraft?" (Draft)":""}`,label:"Email",icon:B(R.Microsoft365Assets.Microsoft365OutlookIcon),actions:[],data:{type:"message",item:e},template:oe.fC.Plain,templateContent:void 0})));break;case"chatMessage":o.push(...t.body?.value?.[0]?.hitsContainers?.[0]?.hits?.map(e=>{const r=e.resource;return{key:r.id??Y(),title:e.summary??"Untitled Message",label:"Chat",icon:B(R.Microsoft365Assets.Microsoft365TeamsIcon),actions:[],data:{type:"chatMessage",item:r},template:oe.fC.Plain,templateContent:void 0}})||[]);break;case"list":o.push(...t.body?.value?.[0]?.hitsContainers?.[0]?.hits?.map(e=>{const r=e.resource,o=Se(e.hitId);return{key:o,title:r.displayName??"Untitled List",label:"List",actions:[{name:"Launch"}],data:{type:"list",item:{...r,id:o}},template:oe.fC.Plain,templateContent:void 0}})||[]);break;default:console.warn(`Unknown batch response id: ${t.id}`,t.body)}else console.warn("Batch API request failed: ",t);return o=o.map(e=>{if(!e.data?.item?.id)return e;const r=Ye(this,$e,"f").get(e.data.item.id);return r?{...e,template:r.template,templateContent:r.templateContent}:e}),o.sort((e,r)=>e.title>r.title?1:-1)};var Je=o(598);const Qe={Container:"Container",Button:"Button",SplitButton:"SplitButton"},Xe={Text:"Text",Image:"Image",List:"List"},er={...Qe,...Xe};var rr,or;(or=rr||(rr={})).Primary="primary",or.Secondary="secondary",or.TextOnly="textOnly";var tr=o(710)})(),module.exports=t})();
1
+ (()=>{var e={211:(e,r,o)=>{"use strict";o.d(r,{v:()=>Rt});var t={};o.r(t),o.d(t,{createNamespacedLocalStorage:()=>c,getItem:()=>s,removeItem:()=>l,setItem:()=>i});var a=o(822),n=o(723);const i=(e,r)=>{localStorage.setItem(`${n.$h}-${e}`,r)},s=e=>localStorage.getItem(`${n.$h}-${e}`),l=e=>localStorage.removeItem(`${n.$h}-${e}`),c=e=>({setItem:(r,o)=>{localStorage.setItem(`${e}-${r}`,o)},getItem:r=>localStorage.getItem(`${e}-${r}`),removeItem:r=>localStorage.removeItem(`${e}-${r}`)});var d=o(516);o(70),o(695),o(79);const u={[d.Palette.brandPrimary]:"#0A76D3",[d.Palette.brandPrimaryActive]:"#0A71C9",[d.Palette.brandPrimaryHover]:"#0B84EB",[d.Palette.brandPrimaryFocused]:d.Color.white,[d.Palette.brandPrimaryText]:d.Color.white,[d.Palette.statusSuccess]:d.Color.functional1,[d.Palette.statusWarning]:d.Color.functional10,[d.Palette.statusCritical]:d.Color.functional7,[d.Palette.statusActive]:d.Color.functional3,[d.Palette.contentBackground1]:"#0A76D3",[d.Palette.contentBackground2]:"#000000",[d.Palette.contentBackground3]:"#000000",[d.Palette.contentBackground4]:"#000000",[d.Palette.contentBackground5]:"#000000",[d.Palette.borderNeutral]:d.Color.silverGray},g={...u,[d.Palette.background1]:d.Color.white,[d.Palette.background2]:d.Color.lightGray1,[d.Palette.background3]:d.Color.lightGray2,[d.Palette.background4]:d.Color.lightGray3,[d.Palette.background5]:d.Color.lightGray4,[d.Palette.background6]:d.Color.lightGray5,[d.Palette.brandSecondary]:d.Color.lightGray4,[d.Palette.brandSecondaryActive]:d.Color.lightGray4Active,[d.Palette.brandSecondaryHover]:d.Color.lightGray4Hover,[d.Palette.brandSecondaryFocused]:d.Color.darkGray5,[d.Palette.brandSecondaryText]:d.Color.darkGray5,[d.Palette.inputBackground]:d.Color.lightGray3,[d.Palette.inputColor]:d.Color.darkGray5,[d.Palette.inputPlaceholder]:d.Color.darkGray2,[d.Palette.inputDisabled]:d.Color.neutralGray,[d.Palette.inputFocused]:d.Color.lightGray5,[d.Palette.inputBorder]:d.Color.neutralGray,[d.Palette.textDefault]:d.Color.darkGray5,[d.Palette.textHelp]:d.Color.darkGray3,[d.Palette.textInactive]:d.Color.neutralGray},h={...u,[d.Palette.background1]:d.Color.darkGray6,[d.Palette.background2]:d.Color.darkGray5,[d.Palette.background3]:d.Color.darkGray4,[d.Palette.background4]:d.Color.darkGray3,[d.Palette.background5]:d.Color.darkGray2,[d.Palette.background6]:d.Color.darkGray1,[d.Palette.brandSecondary]:d.Color.darkGray2,[d.Palette.brandSecondaryActive]:d.Color.darkGray2Active,[d.Palette.brandSecondaryHover]:d.Color.darkGray2Hover,[d.Palette.brandSecondaryFocused]:d.Color.white,[d.Palette.brandSecondaryText]:d.Color.white,[d.Palette.inputBackground]:d.Color.darkGray1,[d.Palette.inputColor]:d.Color.white,[d.Palette.inputPlaceholder]:d.Color.lightGray5,[d.Palette.inputDisabled]:d.Color.neutralGray,[d.Palette.inputFocused]:d.Color.lightGray5,[d.Palette.inputBorder]:d.Color.neutralGray,[d.Palette.textDefault]:d.Color.white,[d.Palette.textHelp]:d.Color.lightGray5,[d.Palette.textInactive]:d.Color.neutralGray},p=(d.Color.darkGray5,d.Color.darkGray5,e=>{const r=e.light.toCSS(),o=e.dark.toCSS();return`:root{${r}}\n [data-scheme="dark"] {\n ${o}\n }\n @media (prefers-color-scheme: dark) {\n [data-scheme="system"] {${o} }\n }\n\n @media (prefers-color-scheme: light) {\n [data-scheme="system"] {${r} }\n }\n `});var f;!function(e){e.CurrentWorkspaceId="currentWorkspaceId",e.LastFocusedBrowserWindow="lastFocusedBrowserWindow",e.MachineName="machineName",e.NewTabPageLayout="NewTabPageLayout",e.NewTabPageSort="NewTabPageSort",e.DockPosition="DockPosition",e.SelectedColorScheme="SelectedColorScheme",e.ThemePaletteSheet="ThemePaletteSheet",e.HasMovedStore="HasMovedStore",e.PageDragState="BrowserPageDragState",e.ThemePaletteDefaultScheme="ThemePaletteDefaultScheme"}(f||(f={}));const b=f,v=e=>{if(!e.includes("#"))throw new Error("Invalid hex value, cannot convert to RGB. Hex value begins with a hashtag.");let r=0,o=0,t=0;if(4===e.length)r=`0x${e[1]}${e[1]}`,o=`0x${e[2]}${e[2]}`,t=`0x${e[3]}${e[3]}`;else{if(7!==e.length)throw new Error("Invalid hex string length, cannot convert to RGB.");r=`0x${e[1]}${e[2]}`,o=`0x${e[3]}${e[4]}`,t=`0x${e[5]}${e[6]}`}return[+r,+o,+t]},m=e=>{const r=e;if(r.startsWith("#")){return{rgb:v(r).join(", "),alpha:1}}const o=r.match(/\d{1,3}(\.\d+)?/g);if(o){const[e,r,t,a]=o;return{rgb:`${e}, ${r}, ${t}`,alpha:void 0!==a?parseFloat(a):1}}return{rgb:v(e).join(", "),alpha:1}};var y,k,w,P,M,x,S,_,C,A,I,T;!function(e){e.Left="Left",e.Right="Right",e.Top="Top",e.Bottom="Bottom"}(y||(y={})),function(e){e.UrlChange="URL_CHANGE",e.ViewAdded="VIEW_ADDED",e.ViewRemoved="VIEW_REMOVED",e.PageContextAdded="PAGE_CONTEXT_ADDED",e.PageContextRemoved="PAGE_CONTEXT_REMOVED"}(k||(k={})),function(e){e.NewWindow="NewWindow",e.NewPage="NewPage",e.SavePage="SavePage",e.SavePageAs="SavePageAs",e.Print="Print",e.PrintAll="PrintAll",e.PrintScreen="PrintScreen",e.CloseWindow="CloseWindow",e.RestoreChanges="RestoreChanges",e.SaveWorkspace="SaveWorkspace",e.SaveWorkspaceAs="SaveWorkspaceAs",e.RenameWorkspace="RenameWorkspace",e.SwitchWorkspace="SwitchWorkspace",e.DeleteWorkspace="DeleteWorkspace",e.Downloads="Downloads",e.OpenStorefront="OpenStorefront",e.ManageDesktopSignals="ManageDesktopSignals",e.FindInPage="FindInPage",e.Appearance="Appearance",e.Quit="Quit",e.Custom="Custom"}(w||(w={})),function(e){e.Light="light",e.Dark="dark",e.System="system"}(P||(P={})),function(e){e.Close="Close",e.Duplicate="Duplicate",e.Rename="Rename",e.Save="Save",e.SaveAs="Save As",e.NewPage="New Page",e.DeletePage="Delete Page",e.SaveWorkspaceAs="SaveWorkspaceAs",e.Refresh="Refresh",e.CloseOthers="Close others",e.Delete="Delete",e.Print="Print",e.PrintAll="PrintAll",e.PrintScreen="PrintScreen",e.ManageDesktopSignals="ManageDesktopSignals",e.AddToChannel="AddToChannel",e.Custom="Custom"}(M||(M={})),function(e){e.Lock="Lock",e.ShowHideTabs="ShowHideTabs",e.AddToChanel="AddToChannel",e.ManageDesktopSignals="ManageDesktopSignals",e.FindInPage="FindInPage",e.Print="Print",e.Pin="Pin"}(x||(x={})),function(e){e.EditName="Edit Name",e.Move="Move",e.Delete="Delete"}(S||(S={})),function(e){e.NewView="NewView",e.DuplicateViews="DuplicateView",e.OpenWithDefaultBrowser="OpenWithDefaultBrowser",e.ReloadViews="ReloadTab",e.CloseViews="CloseTab",e.AddToChannel="AddToChannel",e.RemoveFromChannel="RemoveFromChannel",e.Back="Back",e.Forward="Forward",e.Print="Print",e.PrintAll="PrintAll",e.PrintScreen="PrintScreen",e.Custom="Custom"}(_||(_={})),function(e){e.ShowHideTabs="ShowHideTabs",e.ColorLinking="ColorLinking",e.PresetLayouts="PresetLayouts",e.LockUnlockPage="LockUnlockPage",e.SaveMenu="SaveMenu",e.SavePage="SavePage",e.Download="Download",e.Minimise="Minimise",e.Maximise="Maximise",e.Close="Close",e.Custom="Custom"}(C||(C={})),function(e){e.SavePage="SavePage",e.SaveWorkspace="SaveWorkspace",e.SavePageAs="SavePageAs",e.SaveWorkspaceAs="SaveWorkspaceAs",e.Custom="Custom"}(A||(A={})),function(e){e.Browser="browser",e.Platform="platform"}(I||(I={})),function(e){e.CustomButton="CustomButton",e.StoreCustomButton="StoreCustomButton",e.CustomDropdownItem="CustomDropdownItem",e.GlobalContextMenu="GlobalContextMenu",e.ViewTabContextMenu="ViewTabContextMenu",e.PageTabContextMenu="PageTabContextMenu",e.SaveButtonContextMenu="SaveButtonContextMenu",e.API="API"}(T||(T={}));var E;!function(e){e.SAVE_PAGE="SAVE_PAGE",e.SAVE_WORKSPACE="SAVE_WORKSPACE",e.SAVE_PAGE_AS="SAVE_PAGE_AS",e.SAVE_WORKSPACE_AS="SAVE_WORKSPACE_AS",e.RENAME_PAGE="RENAME_PAGE",e.RENAME_WORKSPACE="RENAME_WORKSPACE"}(E||(E={}));const D=P.Dark,$=(0,a.h)("theme-storage-controller"),F=e=>Object.entries(e).reduce((e,[r,o])=>`${e}--workspace-palette-${r}: ${o};`,""),R=(e,r)=>{const o=!!e.contentBackground5&&"#000000"!==e.contentBackground5,t=!!e.contentBackground4&&"#000000"!==e.contentBackground4,a=m(e.textDefault),n=m(e.textInactive),i=a.rgb,s=n.rgb,l=a.alpha?parseFloat(a.alpha.toString()):1,c=n.alpha?parseFloat(n.alpha.toString()):1;return{dockExpandedContainerBorderRadius:o&&r?"0":"10px",fillerBackgroundColor:t?e.contentBackground4:"inherit","computed-scrollbar-thumb-alpha":l,"computed-scrollbar-track-alpha":c,"scrollbar-thumb-rgb":i,"scrollbar-track-rgb":s}},W=(e,r,o)=>({selectedTab:"dark"===r?e.background3:e.background1,...R(e,o)});var z={89:(e,r,o)=>{e=o.nmd(e);var t="__lodash_hash_undefined__",a=9007199254740991,n="[object Arguments]",i="[object Function]",s="[object Object]",l=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,d={};d["[object Float32Array]"]=d["[object Float64Array]"]=d["[object Int8Array]"]=d["[object Int16Array]"]=d["[object Int32Array]"]=d["[object Uint8Array]"]=d["[object Uint8ClampedArray]"]=d["[object Uint16Array]"]=d["[object Uint32Array]"]=!0,d[n]=d["[object Array]"]=d["[object ArrayBuffer]"]=d["[object Boolean]"]=d["[object DataView]"]=d["[object Date]"]=d["[object Error]"]=d[i]=d["[object Map]"]=d["[object Number]"]=d[s]=d["[object RegExp]"]=d["[object Set]"]=d["[object String]"]=d["[object WeakMap]"]=!1;var u,g,h,p="object"==typeof o.g&&o.g&&o.g.Object===Object&&o.g,f="object"==typeof self&&self&&self.Object===Object&&self,b=p||f||Function("return this")(),v=r&&!r.nodeType&&r,m=v&&e&&!e.nodeType&&e,y=m&&m.exports===v,k=y&&p.process,w=function(){try{return m&&m.require&&m.require("util").types||k&&k.binding&&k.binding("util")}catch(e){}}(),P=w&&w.isTypedArray,M=Array.prototype,x=Function.prototype,S=Object.prototype,_=b["__core-js_shared__"],C=x.toString,A=S.hasOwnProperty,I=(u=/[^.]+$/.exec(_&&_.keys&&_.keys.IE_PROTO||""))?"Symbol(src)_1."+u:"",T=S.toString,E=C.call(Object),D=RegExp("^"+C.call(A).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$=y?b.Buffer:void 0,F=b.Symbol,R=b.Uint8Array,W=($&&$.allocUnsafe,g=Object.getPrototypeOf,h=Object,function(e){return g(h(e))}),z=Object.create,O=S.propertyIsEnumerable,B=M.splice,j=F?F.toStringTag:void 0,L=function(){try{var e=se(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),G=$?$.isBuffer:void 0,U=Math.max,N=Date.now,q=se(b,"Map"),H=se(Object,"create"),V=function(){function e(){}return function(r){if(!ye(r))return{};if(z)return z(r);e.prototype=r;var o=new e;return e.prototype=void 0,o}}();function Y(e){var r=-1,o=null==e?0:e.length;for(this.clear();++r<o;){var t=e[r];this.set(t[0],t[1])}}function Z(e){var r=-1,o=null==e?0:e.length;for(this.clear();++r<o;){var t=e[r];this.set(t[0],t[1])}}function K(e){var r=-1,o=null==e?0:e.length;for(this.clear();++r<o;){var t=e[r];this.set(t[0],t[1])}}function J(e){var r=this.__data__=new Z(e);this.size=r.size}function Q(e,r,o){(void 0!==o&&!ge(e[r],o)||void 0===o&&!(r in e))&&re(e,r,o)}function X(e,r,o){var t=e[r];A.call(e,r)&&ge(t,o)&&(void 0!==o||r in e)||re(e,r,o)}function ee(e,r){for(var o=e.length;o--;)if(ge(e[o][0],r))return o;return-1}function re(e,r,o){"__proto__"==r&&L?L(e,r,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[r]=o}function oe(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":j&&j in Object(e)?function(e){var r=A.call(e,j),o=e[j];try{e[j]=void 0;var t=!0}catch(e){}var a=T.call(e);return t&&(r?e[j]=o:delete e[j]),a}(e):function(e){return T.call(e)}(e)}function te(e){return ke(e)&&oe(e)==n}function ae(e,r,o,t,a){e!==r&&function(e,r,o){for(var t=-1,a=Object(e),n=o(e),i=n.length;i--;){var s=n[++t];if(!1===r(a[s],s))break}}(r,function(n,i){if(a||(a=new J),ye(n))!function(e,r,o,t,a,n,i){var l=de(e,o),c=de(r,o),d=i.get(c);if(d)Q(e,o,d);else{var u,g,h,p,f,b=n?n(l,c,o+"",e,r,i):void 0,v=void 0===b;if(v){var m=pe(c),y=!m&&be(c),k=!m&&!y&&we(c);b=c,m||y||k?pe(l)?b=l:ke(f=l)&&fe(f)?b=function(e,r){var o=-1,t=e.length;for(r||(r=Array(t));++o<t;)r[o]=e[o];return r}(l):y?(v=!1,b=function(e){return e.slice()}(c)):k?(v=!1,p=new(h=(u=c).buffer).constructor(h.byteLength),new R(p).set(new R(h)),g=p,b=new u.constructor(g,u.byteOffset,u.length)):b=[]:function(e){if(!ke(e)||oe(e)!=s)return!1;var r=W(e);if(null===r)return!0;var o=A.call(r,"constructor")&&r.constructor;return"function"==typeof o&&o instanceof o&&C.call(o)==E}(c)||he(c)?(b=l,he(l)?b=function(e){return function(e,r,o){var t=!o;o||(o={});for(var a=-1,n=r.length;++a<n;){var i=r[a],s=void 0;void 0===s&&(s=e[i]),t?re(o,i,s):X(o,i,s)}return o}(e,Pe(e))}(l):ye(l)&&!ve(l)||(b=function(e){return"function"!=typeof e.constructor||ce(e)?{}:V(W(e))}(c))):v=!1}v&&(i.set(c,b),a(b,c,t,n,i),i.delete(c)),Q(e,o,b)}}(e,r,i,o,ae,t,a);else{var l=t?t(de(e,i),n,i+"",e,r,a):void 0;void 0===l&&(l=n),Q(e,i,l)}},Pe)}Y.prototype.clear=function(){this.__data__=H?H(null):{},this.size=0},Y.prototype.delete=function(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r},Y.prototype.get=function(e){var r=this.__data__;if(H){var o=r[e];return o===t?void 0:o}return A.call(r,e)?r[e]:void 0},Y.prototype.has=function(e){var r=this.__data__;return H?void 0!==r[e]:A.call(r,e)},Y.prototype.set=function(e,r){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=H&&void 0===r?t:r,this},Z.prototype.clear=function(){this.__data__=[],this.size=0},Z.prototype.delete=function(e){var r=this.__data__,o=ee(r,e);return!(o<0||(o==r.length-1?r.pop():B.call(r,o,1),--this.size,0))},Z.prototype.get=function(e){var r=this.__data__,o=ee(r,e);return o<0?void 0:r[o][1]},Z.prototype.has=function(e){return ee(this.__data__,e)>-1},Z.prototype.set=function(e,r){var o=this.__data__,t=ee(o,e);return t<0?(++this.size,o.push([e,r])):o[t][1]=r,this},K.prototype.clear=function(){this.size=0,this.__data__={hash:new Y,map:new(q||Z),string:new Y}},K.prototype.delete=function(e){var r=ie(this,e).delete(e);return this.size-=r?1:0,r},K.prototype.get=function(e){return ie(this,e).get(e)},K.prototype.has=function(e){return ie(this,e).has(e)},K.prototype.set=function(e,r){var o=ie(this,e),t=o.size;return o.set(e,r),this.size+=o.size==t?0:1,this},J.prototype.clear=function(){this.__data__=new Z,this.size=0},J.prototype.delete=function(e){var r=this.__data__,o=r.delete(e);return this.size=r.size,o},J.prototype.get=function(e){return this.__data__.get(e)},J.prototype.has=function(e){return this.__data__.has(e)},J.prototype.set=function(e,r){var o=this.__data__;if(o instanceof Z){var t=o.__data__;if(!q||t.length<199)return t.push([e,r]),this.size=++o.size,this;o=this.__data__=new K(t)}return o.set(e,r),this.size=o.size,this};var ne=L?function(e,r){return L(e,"toString",{configurable:!0,enumerable:!1,value:(o=r,function(){return o}),writable:!0});var o}:Se;function ie(e,r){var o,t,a=e.__data__;return("string"==(t=typeof(o=r))||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==o:null===o)?a["string"==typeof r?"string":"hash"]:a.map}function se(e,r){var o=function(e,r){return null==e?void 0:e[r]}(e,r);return function(e){return!(!ye(e)||function(e){return!!I&&I in e}(e))&&(ve(e)?D:l).test(function(e){if(null!=e){try{return C.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}(o)?o:void 0}function le(e,r){var o=typeof e;return!!(r=null==r?a:r)&&("number"==o||"symbol"!=o&&c.test(e))&&e>-1&&e%1==0&&e<r}function ce(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||S)}function de(e,r){if(("constructor"!==r||"function"!=typeof e[r])&&"__proto__"!=r)return e[r]}var ue=function(e){var r=0,o=0;return function(){var t=N(),a=16-(t-o);if(o=t,a>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}(ne);function ge(e,r){return e===r||e!=e&&r!=r}var he=te(function(){return arguments}())?te:function(e){return ke(e)&&A.call(e,"callee")&&!O.call(e,"callee")},pe=Array.isArray;function fe(e){return null!=e&&me(e.length)&&!ve(e)}var be=G||function(){return!1};function ve(e){if(!ye(e))return!1;var r=oe(e);return r==i||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}function me(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function ye(e){var r=typeof e;return null!=e&&("object"==r||"function"==r)}function ke(e){return null!=e&&"object"==typeof e}var we=P?function(e){return function(r){return e(r)}}(P):function(e){return ke(e)&&me(e.length)&&!!d[oe(e)]};function Pe(e){return fe(e)?function(e){var r=pe(e),o=!r&&he(e),t=!r&&!o&&be(e),a=!r&&!o&&!t&&we(e),n=r||o||t||a,i=n?function(e,r){for(var o=-1,t=Array(e);++o<e;)t[o]=r(o);return t}(e.length,String):[],s=i.length;for(var l in e)n&&("length"==l||t&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||le(l,s))||i.push(l);return i}(e):function(e){if(!ye(e))return function(e){var r=[];if(null!=e)for(var o in Object(e))r.push(o);return r}(e);var r=ce(e),o=[];for(var t in e)("constructor"!=t||!r&&A.call(e,t))&&o.push(t);return o}(e)}var Me,xe=(Me=function(e,r,o){ae(e,r,o)},function(e){return ue(function(e,r,o){return r=U(void 0===r?e.length-1:r,0),function(){for(var t=arguments,a=-1,n=U(t.length-r,0),i=Array(n);++a<n;)i[a]=t[r+a];a=-1;for(var s=Array(r+1);++a<r;)s[a]=t[a];return s[r]=o(i),function(e,r,o){switch(o.length){case 0:return e.call(r);case 1:return e.call(r,o[0]);case 2:return e.call(r,o[0],o[1]);case 3:return e.call(r,o[0],o[1],o[2])}return e.apply(r,o)}(e,this,s)}}(e,void 0,Se),e+"")}(function(e,r){var o=-1,t=r.length,a=t>1?r[t-1]:void 0,n=t>2?r[2]:void 0;for(a=Me.length>3&&"function"==typeof a?(t--,a):void 0,n&&function(e,r,o){if(!ye(o))return!1;var t=typeof r;return!!("number"==t?fe(o)&&le(r,o.length):"string"==t&&r in o)&&ge(o[r],e)}(r[0],r[1],n)&&(a=t<3?void 0:a,t=1),e=Object(e);++o<t;){var i=r[o];i&&Me(e,i,o)}return e}));function Se(e){return e}e.exports=xe},436:(e,r,o)=>{var t,a=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,n=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i="\\ud800-\\udfff",s="\\u2700-\\u27bf",l="a-z\\xdf-\\xf6\\xf8-\\xff",c="A-Z\\xc0-\\xd6\\xd8-\\xde",d="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",u="["+d+"]",g="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",h="\\d+",p="["+s+"]",f="["+l+"]",b="[^"+i+d+h+s+l+c+"]",v="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",y="["+c+"]",k="(?:"+f+"|"+b+")",w="(?:"+y+"|"+b+")",P="(?:['’](?:d|ll|m|re|s|t|ve))?",M="(?:['’](?:D|LL|M|RE|S|T|VE))?",x="(?:"+g+"|\\ud83c[\\udffb-\\udfff])?",S="[\\ufe0e\\ufe0f]?",_=S+x+"(?:\\u200d(?:"+["[^"+i+"]",v,m].join("|")+")"+S+x+")*",C="(?:"+[p,v,m].join("|")+")"+_,A=RegExp("['’]","g"),I=RegExp(g,"g"),T=RegExp([y+"?"+f+"+"+P+"(?="+[u,y,"$"].join("|")+")",w+"+"+M+"(?="+[u,y+k,"$"].join("|")+")",y+"?"+k+"+"+P,y+"+"+M,h,C].join("|"),"g"),E=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,D="object"==typeof o.g&&o.g&&o.g.Object===Object&&o.g,$="object"==typeof self&&self&&self.Object===Object&&self,F=D||$||Function("return this")(),R=(t={À:"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",ſ:"ss"},function(e){return null==t?void 0:t[e]}),W=Object.prototype.toString,z=F.Symbol,O=z?z.prototype:void 0,B=O?O.toString:void 0;function j(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==W.call(e)}(e))return B?B.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}(e)}var L,G=(L=function(e,r,o){return e+(o?"-":"")+r.toLowerCase()},function(e){return function(e,r,o){for(var t=-1,a=e?e.length:0;++t<a;)o=r(o,e[t],t,e);return o}(function(e){return function(e){return E.test(e)}(e=j(e))?function(e){return e.match(T)||[]}(e):function(e){return e.match(a)||[]}(e)}(function(e){return(e=j(e))&&e.replace(n,R).replace(I,"")}(e).replace(A,"")),L,"")});e.exports=G}},O={};function B(e){var r=O[e];if(void 0!==r)return r.exports;var o=O[e]={id:e,loaded:!1,exports:{}};return z[e](o,o.exports,B),o.loaded=!0,o.exports}B.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return B.d(r,{a:r}),r},B.d=(e,r)=>{for(var o in r)B.o(r,o)&&!B.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},B.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),B.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),B.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var j=B(89);B.n(j);JSON.parse('{"brand":{"base":{"dark":"rgba(20, 6, 17, 1)","light":"rgba(255, 255, 255, 1)"},"accent":{"dark":"rgba(255, 214, 210, 1)","light":"rgba(100, 30, 85, 1)"}},"icon":{"symbol":"","wordmark":""},"color":{"role":{"focusRing":"{color.role.transparent.50}","overlay":"rgba(0, 0, 0, 0.75)","background":{"1":"{color.generated.scale.1}","2":"{color.generated.scale.2}","3":"{color.generated.scale.3}","4":"{color.generated.scale.4}","5":"{color.generated.scale.5}","6":"{color.generated.scale.6}","base":"{color.role.background.1}","inverse":"{color.generated.foreground.base}","accent":{"stronger":"{color.generated.accent.stronger}","strong":"{color.generated.accent.strong}","base":"{color.generated.accent.base}","soft":"{color.generated.accent.soft}","softer":"{color.generated.accent.softer}","softest":"{color.generated.accent.softest}"},"positive":{"strong":"{color.generated.positive.strong}","base":"{color.generated.positive.base}","soft":"{color.generated.positive.soft}","stronger":"{color.generated.positive.stronger}","softer":"{color.generated.positive.softer}","softest":"{color.generated.positive.softest}"},"warning":{"strong":"{color.generated.warning.strong}","base":"{color.generated.warning.base}","soft":"{color.generated.warning.soft}","stronger":"{color.generated.warning.stronger}","softer":"{color.generated.warning.softer}","softest":"{color.generated.warning.softest}"},"critical":{"strong":"{color.generated.critical.strong}","base":"{color.generated.critical.base}","soft":"{color.generated.critical.soft}","stronger":"{color.generated.critical.stronger}","softer":"{color.generated.critical.softer}","softest":"{color.generated.critical.softest}"},"informative":{"strong":"{color.generated.informative.strong}","base":"{color.generated.informative.base}","soft":"{color.generated.informative.soft}","stronger":"{color.generated.informative.stronger}","softer":"{color.generated.informative.softer}","softest":"{color.generated.informative.softest}"}},"foreground":{"base":"{color.generated.foreground.base}","soft":"{color.generated.foreground.soft}","softer":"{color.generated.foreground.softer}","onPrimary":"{color.generated.background.base}","inverse":"{color.generated.background.base}","neutral":"{color.generated.foreground.base}","positive":"{color.generated.positive.base}","warning":"{color.generated.warning.base}","critical":"{color.generated.critical.base}","accent":{"stronger":"{color.generated.accent.stronger}","strong":"{color.generated.accent.strong}","base":"{color.generated.accent.base}","soft":"{color.generated.accent.soft}","softer":"{color.generated.accent.softer}","softest":"{color.generated.accent.softest}"},"informative":"{color.generated.informative.base}"},"border":{"1":"{color.generated.scale.1}","2":"{color.generated.scale.2}","3":"{color.generated.scale.3}","4":"{color.generated.scale.4}","5":"{color.generated.scale.5}","6":"{color.generated.scale.6}","base":"{color.generated.scale.5}","strong":"{color.generated.foreground.soft}","stronger":"{color.generated.foreground.softer}","accent":{"stronger":"{color.generated.accent.stronger}","strong":"{color.generated.accent.strong}","base":"{color.generated.accent.base}","soft":"{color.generated.accent.soft}","softer":"{color.generated.accent.softer}","softest":"{color.generated.accent.softest}"},"positive":{"strong":"{color.generated.positive.strong}","base":"{color.generated.positive.base}","soft":"{color.generated.positive.soft}","stronger":"{color.generated.positive.stronger}","softer":"{color.generated.positive.softer}","softest":"{color.generated.positive.softest}"},"warning":{"strong":"{color.generated.warning.strong}","base":"{color.generated.warning.base}","soft":"{color.generated.warning.soft}","stronger":"{color.generated.warning.stronger}","softer":"{color.generated.warning.softer}","softest":"{color.generated.warning.softest}"},"critical":{"strong":"{color.generated.critical.strong}","base":"{color.generated.critical.base}","soft":"{color.generated.critical.soft}","stronger":"{color.generated.critical.stronger}","softer":"{color.generated.critical.softer}","softest":"{color.generated.critical.softest}"}},"identifier":{"blue":"{color.generated.identifier.blue}","pink":"{color.generated.identifier.pink}","indigo":"{color.generated.identifier.indigo}","teal":"{color.generated.identifier.teal}","green":"{color.generated.identifier.green}","orange":"{color.generated.identifier.orange}","red":"{color.generated.identifier.red}","yellow":"{color.generated.identifier.yellow}","gray":"{color.generated.identifier.gray}"},"link":{"default":"{color.generated.accent.base}","hover":"{color.generated.accent.stronger}"},"transparent":{"0":{"_inputs":["{color.role.foreground.base}"],"_transforms":[{"type":"alpha","amount":0.001}]},"8":{"_inputs":["{color.role.foreground.base}"],"_transforms":[{"type":"alpha","amount":0.08}]},"12":{"_inputs":["{color.role.foreground.base}"],"_transforms":[{"type":"alpha","amount":0.12}]},"18":{"_inputs":["{color.role.foreground.base}"],"_transforms":[{"type":"alpha","amount":0.18}]},"32":{"_inputs":["{color.role.foreground.base}"],"_transforms":[{"type":"alpha","amount":0.32}]},"50":{"_inputs":["{color.role.foreground.base}"],"_transforms":[{"type":"alpha","amount":0.5}]}}},"generated":{"scale":{"1":"{color.generated.background.base}","2":{"_inputs":["{color.generated.scale.1}",{"color":"{color.generated.foreground.base}","alpha":0.06}]},"3":{"_inputs":["{color.generated.scale.1}",{"color":"{color.generated.foreground.base}","alpha":0.12}]},"4":{"_inputs":["{color.generated.scale.1}",{"color":"{color.generated.foreground.base}","alpha":0.18}]},"5":{"_inputs":["{color.generated.scale.1}",{"color":"{color.generated.foreground.base}","alpha":0.24}]},"6":{"_inputs":["{color.generated.scale.1}",{"color":"{color.generated.foreground.base}","alpha":0.3}]}},"foreground":{"soft":{"_inputs":["{color.generated.background.base}",{"color":"{color.generated.foreground.base}","alpha":0.75}]},"softer":{"_inputs":["{color.generated.background.base}",{"color":"{color.generated.foreground.base}","alpha":0.6}]}}},"enterprise":{"contextMenu":{"background":"{color.role.background.base}","border":"{color.role.border.base}"},"contextMenuItem":{"divider":"{color.role.border.3}","heading":"{color.role.foreground.soft}","default":{"background":{"default":"{color.role.transparent.0}","hover":"{color.role.background.3}","active":"{color.role.background.3}","focus":"{color.role.background.3}"},"text":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}","active":"{color.role.foreground.base}","focus":"{color.role.foreground.base}"},"icon":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}","active":"{color.role.foreground.base}","focus":"{color.role.foreground.base}"}},"critical":{"background":{"default":"{color.role.transparent.0}","hover":"{color.role.background.critical.softest}","active":"{color.role.background.critical.softest}","focus":"{color.role.background.critical.softest}"},"text":{"default":"{color.role.foreground.critical}","hover":"{color.role.foreground.critical}","active":"{color.role.foreground.critical}","focus":"{color.role.foreground.critical}"},"icon":{"default":"{color.role.foreground.critical}","hover":"{color.role.foreground.critical}","active":"{color.role.foreground.critical}","focus":"{color.role.foreground.critical}"}}},"view":{"border":"{color.role.border.base}"},"viewSplitter":{"default":"{color.role.transparent.0}","hover":"{color.role.background.6}"},"window":{"background":"{color.role.background.base}","border":"{color.role.border.base}","text":{"base":"{color.role.foreground.base}","soft":"{color.role.foreground.soft}"}},"topChrome":{"border":"{color.role.border.base}"},"topTab":{"icon":{"default":"{color.role.foreground.soft}","hover":"{color.role.foreground.accent.base}","selected":"{color.role.foreground.accent.base}"},"text":{"default":"{color.role.foreground.soft}","hover":"{color.role.foreground.base}","selected":"{color.role.foreground.base}"},"overflow":{"start":{"default":"{color.enterprise.topTab.background.default}","hover":"{color.enterprise.topTab.background.hover}","selected":"{color.enterprise.topTab.background.selected}"},"middle":{"default":{"_inputs":["{color.enterprise.topTab.overflow.start.default}"],"_transforms":[{"type":"alpha","amount":0.5}]},"hover":{"_inputs":["{color.enterprise.topTab.overflow.start.hover}"],"_transforms":[{"type":"alpha","amount":0.5}]},"selected":{"_inputs":["{color.enterprise.topTab.overflow.start.selected}"],"_transforms":[{"type":"alpha","amount":0.5}]}},"end":{"default":{"_inputs":["{color.enterprise.topTab.overflow.start.default}"],"_transforms":[{"type":"alpha","amount":0}]},"hover":{"_inputs":["{color.enterprise.topTab.overflow.start.hover}"],"_transforms":[{"type":"alpha","amount":0}]},"selected":{"_inputs":["{color.enterprise.topTab.overflow.start.selected}"],"_transforms":[{"type":"alpha","amount":0}]}}},"unsavedIcon":"{color.role.foreground.base}","loader":"{color.role.foreground.base}"},"viewTab":{"border":{"selected":"{color.role.foreground.base}","dragging":"{color.role.foreground.base}"},"icon":{"default":"{color.role.foreground.soft}","hover":"{color.role.foreground.base}","active":"{color.role.foreground.base}","selected":"{color.role.foreground.base}"},"text":{"default":"{color.role.foreground.soft}","hover":"{color.role.foreground.base}","active":"{color.role.foreground.base}","inactive":"{color.role.foreground.soft}","selected":"{color.role.foreground.base}"},"overflow":{"start":{"default":"{color.enterprise.viewTab.background.default}","hover":"{color.enterprise.viewTab.background.hover}","active":"{color.enterprise.viewTab.background.active}","selected":"{color.enterprise.viewTab.background.selected}"},"middle":{"default":{"_inputs":["{color.enterprise.viewTab.overflow.start.default}"],"_transforms":[{"type":"alpha","amount":0.5}]},"hover":{"_inputs":["{color.enterprise.viewTab.overflow.start.hover}"],"_transforms":[{"type":"alpha","amount":0.5}]},"selected":{"_inputs":["{color.enterprise.viewTab.overflow.start.selected}"],"_transforms":[{"type":"alpha","amount":0.5}]}},"end":{"default":{"_inputs":["{color.enterprise.viewTab.overflow.start.default}"],"_transforms":[{"type":"alpha","amount":0}]},"hover":{"_inputs":["{color.enterprise.viewTab.overflow.start.hover}"],"_transforms":[{"type":"alpha","amount":0}]},"selected":{"_inputs":["{color.enterprise.viewTab.overflow.start.selected}"],"_transforms":[{"type":"alpha","amount":0}]}}},"loader":"{color.role.foreground.base}"},"command":{"default":"{color.role.transparent.0}","hover":"{color.role.background.4}"},"shortcutKey":{"background":"{color.role.background.4}","icon":"{color.role.foreground.base}"},"searchBar":{"border":{"default":"{color.role.border.base}","hover":"{color.role.border.6}","active":"{color.role.border.6}","focus":"{color.role.border.strong}"},"icon":{"default":"{color.role.foreground.base}"},"value":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}","active":"{color.role.foreground.base}","focus":"{color.role.foreground.base}","filled":"{color.role.foreground.base}"},"overflow":{"start":{"default":"{color.enterprise.searchBar.background.default}","hover":"{color.enterprise.searchBar.background.hover}"},"middle":{"default":{"_inputs":["{color.enterprise.searchBar.overflow.start.default}"],"_transforms":[{"type":"alpha","amount":0.5}]},"hover":{"_inputs":["{color.enterprise.searchBar.overflow.start.hover}"],"_transforms":[{"type":"alpha","amount":0.5}]}},"end":{"default":{"_inputs":["{color.enterprise.searchBar.overflow.start.default}"],"_transforms":[{"type":"alpha","amount":0}]},"hover":{"_inputs":["{color.enterprise.searchBar.overflow.start.hover}"],"_transforms":[{"type":"alpha","amount":0}]}}}},"searchMenu":{"background":"{color.role.background.base}","border":"{color.role.border.base}","commandBar":"{color.role.background.2}","banner":"{color.role.background.2}","text":{"base":"{color.role.foreground.base}","soft":"{color.role.foreground.soft}"}},"searchResult":{"icon":"{color.shared.icon.accent}","iconBackground":{"default":"{color.role.background.2}","selected":"{color.role.background.1}"},"heading":"{color.role.foreground.soft}","title":"{color.role.foreground.base}","description":"{color.role.foreground.soft}","link":"{color.role.link.default}","background":{"default":"{color.role.transparent.0}","hover":"{color.role.background.3}","selected":"{color.role.background.4}"}},"progressIndicator":{"container":"{color.role.transparent.18}","fill":"{color.role.foreground.accent.base}"},"sidePanel":{"background":{"_value":"{color.role.background.base}","transparent":{"_inputs":["{color.enterprise.sidePanel.background}"],"_transforms":[{"type":"alpha","amount":0}]}},"border":"{color.role.border.base}","icon":"{color.role.foreground.base}","text":{"base":"{color.role.foreground.base}","soft":"{color.role.foreground.soft}","softer":"{color.role.foreground.softer}"}},"listItem":{"background":{"default":"{color.role.transparent.0}","hover":"{color.role.background.3}"},"text":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}"},"icon":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}"},"iconBackground":{"default":"{color.role.background.3}","hover":"{color.role.background.3}"}},"prompt":{"text":"{color.role.foreground.base}","icon":"{color.role.foreground.base}","iconBackground":"{color.role.background.base}","editBorder":"{color.role.border.base}","background":{"default":"{color.role.background.3}","hover":"{color.role.background.4}"}},"composer":{"background":"{color.role.background.2}","border":"{color.role.border.base}","placeholder":"{color.role.foreground.soft}","text":"{color.role.foreground.base}"},"skeletonLoader":{"background":"{color.role.background.2}","template":{"start":{"_inputs":["{color.role.background.3}"],"_transforms":[{"type":"alpha","amount":0}]},"middle":"{color.role.background.4}","end":{"_inputs":["{color.role.background.3}"],"_transforms":[{"type":"alpha","amount":0}]}}},"searchFilter":{"background":{"default":"{color.role.transparent.0}","hover":"{color.role.background.3}","selected":"{color.role.background.accent.softer}","selectedHover":"{color.role.background.accent.soft}"},"border":{"default":"{color.role.border.3}","hover":"{color.role.border.3}","selected":"{color.role.border.accent.base}","selectedHover":"{color.role.border.accent.base}"},"icon":{"default":"{color.role.foreground.soft}","hover":"{color.role.foreground.soft}","selected":"{color.role.background.accent.base}"},"text":{"default":"{color.role.foreground.soft}","hover":"{color.role.foreground.soft}","selected":"{color.role.background.accent.base}"}},"searchTab":{"background":{"default":"{color.role.transparent.0}","hover":"{color.role.background.4}","selected":"{color.role.transparent.0}"},"icon":{"default":"{color.role.foreground.soft}","hover":"{color.role.foreground.soft}","selected":"{color.role.background.accent.base}"},"text":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}","selected":"{color.role.foreground.base}"},"indicator":{"default":"{color.role.transparent.0}","hover":"{color.role.transparent.0}","selected":"{color.role.background.accent.base}"}},"featuredContentItem":{"background":{"default":"{color.role.background.2}","hover":"{color.role.background.4}","selected":"{color.role.background.4}"},"text":{"default":"{color.role.foreground.base}"}}},"shared":{"overlay":"{color.role.overlay}","focusRing":"{color.role.focusRing}","watermark":"{color.role.transparent.50}","modal":{"background":"{color.role.background.base}","border":"{color.role.border.base}","text":{"base":"{color.role.foreground.base}","soft":"{color.role.foreground.soft}"}},"listItem":{"background":{"default":"{color.role.transparent.0}","hover":"{color.role.background.3}","selected":"{color.role.background.3}"},"text":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}","selected":"{color.role.foreground.base}"},"icon":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}","selected":"{color.role.foreground.base}"},"iconBackground":{"default":"{color.role.background.3}","hover":"{color.role.background.3}","selected":"{color.role.background.3}"}},"card":{"text":{"base":"{color.role.foreground.base}","soft":"{color.role.foreground.soft}"},"background":{"default":"{color.role.background.base}","hover":"{color.role.background.base}","selected":"{color.role.background.base}","loading":"rgba(255, 255, 255, 1)"},"border":{"default":"{color.role.border.3}","hover":"{color.role.border.base}","selected":"{color.role.border.accent.base}"},"shadow":{"default":"{color.role.transparent.8}","hover":"{color.role.transparent.12}"}},"banner":{"positive":{"background":"{color.role.background.positive.soft}","border":"{color.role.border.positive.base}","text":"{color.role.foreground.base}","icon":"{color.role.foreground.positive}"},"warning":{"background":"{color.role.background.warning.strong}","border":"{color.role.border.warning.base}","text":"{color.role.foreground.inverse}","icon":"{color.role.foreground.warning}"},"critical":{"background":"{color.role.background.critical.soft}","border":"{color.role.border.critical.base}","text":"{color.role.foreground.base}","icon":"{color.role.foreground.critical}"}},"button":{"default":{"background":{"default":"{color.role.transparent.0}","hover":"{color.role.transparent.12}","selected":"{color.role.background.accent.softer}","pressed":"{color.role.transparent.18}"},"border":{"default":"{color.role.border.base}","hover":"{color.role.border.base}","pressed":"{color.role.border.base}","selected":"{color.role.border.accent.base}"},"icon":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}","pressed":"{color.role.foreground.base}","selected":"{color.role.foreground.accent.base}"},"text":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}","selected":"{color.role.foreground.accent.base}"},"focusRing":"{color.role.focusRing}"},"primary":{"background":{"default":"{color.role.background.accent.base}","hover":"{color.role.background.accent.strong}","pressed":"{color.role.background.accent.stronger}"},"border":{"default":"{color.role.transparent.0}","hover":"{color.role.transparent.0}","pressed":"{color.role.transparent.0}"},"icon":{"default":"{color.role.foreground.onPrimary}","hover":"{color.role.foreground.onPrimary}","pressed":"{color.role.foreground.onPrimary}"},"text":{"default":"{color.role.foreground.onPrimary}","hover":"{color.role.foreground.onPrimary}"},"focusRing":"{color.role.background.accent.soft}"},"subtle":{"background":{"default":"{color.role.transparent.0}","hover":"{color.role.transparent.12}","pressed":"{color.role.transparent.18}"},"border":{"default":"{color.role.transparent.0}","hover":"{color.role.transparent.0}","pressed":"{color.role.transparent.0}"},"icon":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}","pressed":"{color.role.foreground.base}"},"text":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}"}},"critical":{"background":{"default":"{color.role.background.critical.base}","hover":"{color.role.background.critical.strong}","pressed":"{color.role.background.critical.stronger}"},"border":{"default":"{color.role.transparent.0}","hover":"{color.role.transparent.0}","pressed":"{color.role.transparent.0}"},"icon":{"default":"{color.role.foreground.inverse}","hover":"{color.role.foreground.inverse}","pressed":"{color.role.foreground.inverse}"},"text":{"default":"{color.role.foreground.inverse}","hover":"{color.role.foreground.inverse}"},"focusRing":"{color.role.background.critical.soft}"},"ghost":{"icon":{"default":"{color.role.foreground.base}"},"text":{"default":"{color.role.foreground.base}","hover":"{color.role.background.accent.strong}"},"background":"{color.role.transparent.0}"}},"iconButton":{"ghost":{"icon":{"default":"{color.role.foreground.base}"},"background":"{color.role.transparent.0}"},"primary":{"background":{"default":"{color.role.background.accent.base}","hover":"{color.role.background.accent.strong}"},"border":{"default":"{color.role.transparent.0}","hover":"{color.role.transparent.0}","pressed":"{color.role.transparent.0}"},"icon":{"default":"{color.role.foreground.onPrimary}","hover":"{color.role.foreground.onPrimary}","pressed":"{color.role.foreground.onPrimary}"},"focusRing":"{color.role.background.accent.soft}"},"subtle":{"background":{"default":"{color.role.transparent.0}","hover":"{color.role.transparent.12}","pressed":"{color.role.transparent.18}"},"border":{"default":"{color.role.transparent.0}","hover":"{color.role.transparent.0}","pressed":"{color.role.transparent.0}"},"icon":{"default":"{color.role.foreground.soft}","hover":"{color.role.foreground.soft}","pressed":"{color.role.foreground.soft}"}},"default":{"background":{"default":"{color.role.transparent.0}","hover":"{color.role.transparent.12}","selected":"{color.role.background.accent.softer}","pressed":"{color.role.transparent.18}"},"border":{"default":"{color.role.border.base}","hover":"{color.role.border.base}","pressed":"{color.role.border.base}","selected":"{color.role.border.accent.base}"},"icon":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}","pressed":"{color.role.foreground.base}","selected":"{color.role.foreground.accent.base}"},"focusRing":"{color.role.focusRing}"}},"icon":{"base":"{color.role.foreground.base}","soft":"{color.role.foreground.soft}","error":"{color.role.foreground.critical}","background3":"{color.role.background.3}","background1":"{color.role.background.1}","accent":"{color.role.foreground.accent.base}","border":"{color.role.foreground.base}","accentTransparent":{"_inputs":["{color.shared.icon.accent}"],"_transforms":[{"type":"alpha","amount":0.16}]}},"dock":{"background":"{color.role.background.base}","dragIndicator":"{color.role.foreground.soft}","border":"{color.role.border.base}"},"indicator":{"text":"{color.role.foreground.inverse}","background":{"blue":"{color.role.identifier.blue}","orange":"{color.role.identifier.orange}","indigo":"{color.role.identifier.indigo}","pink":"{color.role.identifier.pink}","yellow":"{color.role.identifier.yellow}","green":"{color.role.identifier.green}","teal":"{color.role.identifier.teal}","red":"{color.role.identifier.red}","expired":"{color.role.background.6}","transparent":"{color.role.transparent.0}"}},"notification":{"background":"{color.role.background.3}","border":"{color.role.border.base}","text":{"base":"{color.role.foreground.base}","soft":"{color.role.foreground.soft}"}},"placementOption":{"text":{"default":"{color.role.foreground.base}"},"backdrop":"{color.role.background.2}","background":{"default":"{color.role.transparent.0}","hover":"{color.role.background.4}","selected":"{color.role.background.6}"},"previewObject":{"default":"{color.role.background.5}","hover":"{color.role.background.accent.base}","selected":"{color.role.background.accent.base}"}},"platformSelector":{"underline":"{color.role.border.base}"},"notificationCenter":{"background":"{color.role.background.base}","border":"{color.role.border.base}","text":{"base":"{color.role.foreground.base}","soft":"{color.role.foreground.soft}"},"icon":{"base":"{color.role.foreground.base}","soft":"{color.role.foreground.soft}"}},"toggle":{"track":{"off":"{color.role.transparent.32}","on":"{color.role.background.accent.base}"},"thumb":{"off":"{color.role.foreground.base}","on":"{color.role.foreground.onPrimary}"}},"colorChannel":{"blue":"{color.role.identifier.blue}","pink":"{color.role.identifier.pink}","indigo":"{color.role.identifier.indigo}","teal":"{color.role.identifier.teal}","green":"{color.role.identifier.green}","orange":"{color.role.identifier.orange}","red":"{color.role.identifier.red}","yellow":"{color.role.identifier.yellow}","gray":"{color.role.identifier.gray}","unlink":"{color.role.foreground.base}","selected":"{color.role.background.base}"},"dropzone":{"border":"{color.role.border.accent.base}","background":{"_inputs":["{color.role.background.accent.base}"],"_transforms":[{"type":"alpha","amount":0.25}]}},"form":{"label":"{color.role.foreground.base}","helpIcon":"{color.role.foreground.soft}","optionalDot":"{color.role.foreground.critical}","background":{"default":"{color.role.transparent.0}","hover":"{color.role.transparent.0}","focus":"{color.role.transparent.0}","filled":"{color.role.transparent.0}","error":"{color.role.transparent.0}","selected":"{color.role.background.accent.base}"},"border":{"default":"{color.role.border.base}","hover":"{color.role.border.6}","focus":"{color.role.border.strong}","filled":"{color.role.border.base}","error":"{color.role.border.critical.base}","selected":"{color.role.border.accent.base}"},"placeholder":{"default":"{color.role.foreground.soft}","hover":"{color.role.foreground.soft}","focus":"{color.role.foreground.soft}"},"icon":{"default":"{color.role.foreground.soft}","focus":"{color.role.foreground.base}","selected":"{color.role.foreground.onPrimary}"},"value":{"default":"{color.role.foreground.soft}","hover":"{color.role.foreground.soft}","focus":"{color.role.foreground.base}","filled":"{color.role.foreground.base}"},"errorMessage":{"background":"{color.role.background.critical.softest}","text":"{color.role.foreground.critical}","icon":"{color.role.foreground.critical}"},"focusRing":"{color.role.border.accent.soft}","hint":"{color.role.foreground.softer}"},"scrollBar":{"area":"{color.role.transparent.32}","bar":"{color.role.transparent.50}"}},"coreui":{"home":{"background":"{color.role.background.2}","border":"{color.role.border.4}"},"homeInput":{"background":{"default":"{color.role.background.4}","hover":"{color.role.background.4}","active":"{color.role.background.4}","focus":"{color.role.background.4}"},"value":{"default":"{color.role.foreground.soft}","hover":"{color.role.foreground.soft}","active":"{color.role.foreground.base}","filled":"{color.role.foreground.base}"},"border":{"active":"{color.role.border.base}","focus":"{color.role.border.base}"}},"homeResult":{"icon":"{color.role.foreground.base}","background":{"default":"{color.role.transparent.0}","hover":"{color.role.background.3}","selected":"{color.role.background.6}","launching":"{color.role.background.6}"},"title":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}","selected":"{color.role.foreground.base}","launching":"{color.role.foreground.base}"},"description":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}","selected":"{color.role.foreground.base}","launching":"{color.role.foreground.base}"}},"homeTemplate":{"background":"{color.role.background.3}","icon":"{color.role.foreground.base}","text":{"base":"{color.role.foreground.base}","soft":"{color.role.foreground.soft}"}},"homeCard":{"background":"{color.role.background.3}"},"homeHotkey":{"background":"{color.role.background.6}","icon":"{color.role.foreground.base}","text":"{color.role.foreground.base}"},"homeText":{"base":"{color.role.foreground.base}","soft":"{color.role.foreground.soft}"},"store":{"background":"{color.role.background.2}"},"storeBanner":{"background":"{color.role.background.accent.base}","button":{"background":{"default":"{color.role.background.base}","hover":"{color.role.background.base}"},"text":{"default":"{color.role.foreground.accent.base}","hover":"{color.role.background.accent.base}"},"icon":{"default":"{color.role.background.accent.base}","hover":"{color.role.background.accent.base}"}},"header":{"title":"{color.role.foreground.onPrimary}","description":"{color.role.foreground.onPrimary}"}},"storeInput":{"background":{"default":"{color.role.background.4}","hover":"{color.role.background.4}","active":"{color.role.background.4}","filled":"{color.role.background.4}","error":"{color.role.background.4}"},"border":{"active":"{color.role.border.base}","focus":"{color.role.border.base}","error":"{color.role.border.critical.base}"},"value":{"default":"{color.role.foreground.soft}","hover":"{color.role.foreground.soft}","active":"{color.role.foreground.soft}","filled":"{color.role.foreground.base}","error":"{color.role.foreground.critical}"},"icon":"{color.role.foreground.base}"},"storeSidebar":{"background":"{color.role.background.3}","header":"{color.role.foreground.base}"},"storeCard":{"background":{"default":"{color.role.transparent.0}","hover":"{color.role.background.4}"},"title":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}"},"description":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}"}},"storeMenuItem":{"text":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}"},"background":{"default":"{color.role.transparent.0}","hover":"{color.role.background.3}"},"category":"{color.role.foreground.soft}"},"storeFooter":{"link":{"default":"{color.role.foreground.base}","hover":"{color.role.foreground.base}"},"tagline":"{color.role.foreground.base}","icon":"{color.role.foreground.base}"},"browser":{"background":"{color.role.background.1}","border":"{color.role.border.base}"},"browserTopBar":{"background":"{color.role.background.2}","border":"{color.role.border.base}"},"browserToolbarIcon":{"default":"{color.role.foreground.base}","focus":"{color.role.foreground.base}","selected":"{color.role.foreground.onPrimary}","active":"{color.role.foreground.base}","hover":"{color.role.foreground.base}","background":{"default":"{color.role.transparent.0}","focus":"{color.role.transparent.0}","selected":"{color.role.background.accent.base}","active":"{color.role.transparent.0}","hover":"{color.role.background.4}"}},"browserViewSplitter":{"default":"{color.role.background.1}","hover":"{color.role.background.3}"},"browserPageTab":{"text":{"default":"{color.role.foreground.base}","selected":"{color.role.background.base}"},"background":{"default":"{color.role.background.4}","selected":"{color.role.background.accent.base}"},"icon":{"default":"{color.role.foreground.base}","selected":"{color.role.foreground.onPrimary}"}},"browserViewTab":{"background":{"default":"{color.role.transparent.0}","hover":"{color.role.background.3}","active":"{color.role.background.2}","focus":"{color.role.background.2}"},"text":{"default":"{color.role.foreground.base}"},"border":{"active":"{color.role.border.5}","focus":"{color.role.border.5}"},"icon":"{color.role.foreground.base}"},"browserView":{"border":{"default":"{color.role.transparent.0}","focus":"{color.role.border.base}","green":"{color.role.identifier.green}","purple":"{color.role.identifier.indigo}","orange":"{color.role.identifier.orange}","red":"{color.role.identifier.red}","pink":"{color.role.identifier.pink}","yellow":"{color.role.identifier.yellow}"},"icon":"{color.role.foreground.base}"}},"admin":{"1":"#ffffff","color":"#ffffff","color2":"#ffffff"},"_utilities":{"green":"{color.role.background.positive.base}","red":"{color.role.background.critical.base}","appBackground1":"{color.role.background.1}","loader":"#e3e1e200","dataViz":{"linePlot":"{color.role.border.accent.base}"},"teamsProfiles":{"text":{"red":"#76213e","green":"#164229","yellow":"#805d0b","orange":"#56392b","purple":"#282155","blue":"#0f3157"},"background":{"red":"#f5d4df","green":"#cfe0d6","yellow":"#fdefca","orange":"#e8ddd9","purple":"#d6d4e9","blue":"#cddaea"}},"appBackground2":"{color.role.background.2}","appBackground3":"{color.role.background.3}"}},"colorPrimitives":{"green":{"50":{"_inputs":["{colorPrimitives.green.500}",{"color":"rgba(255, 255, 255, 0.9)"}]},"100":{"_inputs":["{colorPrimitives.green.500}",{"color":"rgba(255, 255, 255, 0.8)"}]},"200":{"_inputs":["{colorPrimitives.green.500}",{"color":"rgba(255, 255, 255, 0.6)"}]},"300":{"_inputs":["{colorPrimitives.green.500}",{"color":"rgba(255, 255, 255, 0.4)"}]},"400":{"_inputs":["{colorPrimitives.green.500}",{"color":"rgba(255, 255, 255, 0.2)"}]},"500":"{colorPrimitives.green.base}","600":{"_inputs":["{colorPrimitives.green.500}",{"color":"rgba(0, 0, 0, 0.2)"}]},"700":{"_inputs":["{colorPrimitives.green.500}",{"color":"rgba(0, 0, 0, 0.4)"}]},"800":{"_inputs":["{colorPrimitives.green.500}",{"color":"rgba(0, 0, 0, 0.6)"}]},"900":{"_inputs":["{colorPrimitives.green.500}",{"color":"rgba(0, 0, 0, 0.8)"}]}},"blue":{"50":{"_inputs":["{colorPrimitives.blue.500}",{"color":"rgba(255, 255, 255, 0.9)"}]},"100":{"_inputs":["{colorPrimitives.blue.500}",{"color":"rgba(255, 255, 255, 0.8)"}]},"200":{"_inputs":["{colorPrimitives.blue.500}",{"color":"rgba(255, 255, 255, 0.6)"}]},"300":{"_inputs":["{colorPrimitives.blue.500}",{"color":"rgba(255, 255, 255, 0.4)"}]},"400":{"_inputs":["{colorPrimitives.blue.500}",{"color":"rgba(255, 255, 255, 0.2)"}]},"500":"{colorPrimitives.blue.base}","600":{"_inputs":["{colorPrimitives.blue.500}",{"color":"rgba(0, 0, 0, 0.2)"}]},"700":{"_inputs":["{colorPrimitives.blue.500}",{"color":"rgba(0, 0, 0, 0.4)"}]},"800":{"_inputs":["{colorPrimitives.blue.500}",{"color":"rgba(0, 0, 0, 0.6)"}]},"900":{"_inputs":["{colorPrimitives.blue.500}",{"color":"rgba(0, 0, 0, 0.8)"}]}},"indigo":{"50":{"_inputs":["{colorPrimitives.indigo.500}",{"color":"rgba(255, 255, 255, 0.9)"}]},"100":{"_inputs":["{colorPrimitives.indigo.500}",{"color":"rgba(255, 255, 255, 0.8)"}]},"200":{"_inputs":["{colorPrimitives.indigo.500}",{"color":"rgba(255, 255, 255, 0.6)"}]},"300":{"_inputs":["{colorPrimitives.indigo.500}",{"color":"rgba(255, 255, 255, 0.4)"}]},"400":{"_inputs":["{colorPrimitives.indigo.500}",{"color":"rgba(255, 255, 255, 0.2)"}]},"500":"{colorPrimitives.indigo.base}","600":{"_inputs":["{colorPrimitives.indigo.500}",{"color":"rgba(0, 0, 0, 0.2)"}]},"700":{"_inputs":["{colorPrimitives.indigo.500}",{"color":"rgba(0, 0, 0, 0.4)"}]},"800":{"_inputs":["{colorPrimitives.indigo.500}",{"color":"rgba(0, 0, 0, 0.6)"}]},"900":{"_inputs":["{colorPrimitives.indigo.500}",{"color":"rgba(0, 0, 0, 0.8)"}]}},"pink":{"50":{"_inputs":["{colorPrimitives.pink.500}",{"color":"rgba(255, 255, 255, 0.9)"}]},"100":{"_inputs":["{colorPrimitives.pink.500}",{"color":"rgba(255, 255, 255, 0.8)"}]},"200":{"_inputs":["{colorPrimitives.pink.500}",{"color":"rgba(255, 255, 255, 0.6)"}]},"300":{"_inputs":["{colorPrimitives.pink.500}",{"color":"rgba(255, 255, 255, 0.4)"}]},"400":{"_inputs":["{colorPrimitives.pink.500}",{"color":"rgba(255, 255, 255, 0.2)"}]},"500":"{colorPrimitives.pink.base}","600":{"_inputs":["{colorPrimitives.pink.500}",{"color":"rgba(0, 0, 0, 0.2)"}]},"700":{"_inputs":["{colorPrimitives.pink.500}",{"color":"rgba(0, 0, 0, 0.4)"}]},"800":{"_inputs":["{colorPrimitives.pink.500}",{"color":"rgba(0, 0, 0, 0.6)"}]},"900":{"_inputs":["{colorPrimitives.pink.500}",{"color":"rgba(0, 0, 0, 0.8)"}]}},"orange":{"50":{"_inputs":["{colorPrimitives.orange.500}",{"color":"rgba(255, 255, 255, 0.9)"}]},"100":{"_inputs":["{colorPrimitives.orange.500}",{"color":"rgba(255, 255, 255, 0.8)"}]},"200":{"_inputs":["{colorPrimitives.orange.500}",{"color":"rgba(255, 255, 255, 0.6)"}]},"300":{"_inputs":["{colorPrimitives.orange.500}",{"color":"rgba(255, 255, 255, 0.4)"}]},"400":{"_inputs":["{colorPrimitives.orange.500}",{"color":"rgba(255, 255, 255, 0.2)"}]},"500":"{colorPrimitives.orange.base}","600":{"_inputs":["{colorPrimitives.orange.500}",{"color":"rgba(0, 0, 0, 0.2)"}]},"700":{"_inputs":["{colorPrimitives.orange.500}",{"color":"rgba(0, 0, 0, 0.4)"}]},"800":{"_inputs":["{colorPrimitives.orange.500}",{"color":"rgba(0, 0, 0, 0.6)"}]},"900":{"_inputs":["{colorPrimitives.orange.500}",{"color":"rgba(0, 0, 0, 0.8)"}]}},"teal":{"50":{"_inputs":["{colorPrimitives.teal.500}",{"color":"rgba(255, 255, 255, 0.9)"}]},"100":{"_inputs":["{colorPrimitives.teal.500}",{"color":"rgba(255, 255, 255, 0.8)"}]},"200":{"_inputs":["{colorPrimitives.teal.500}",{"color":"rgba(255, 255, 255, 0.6)"}]},"300":{"_inputs":["{colorPrimitives.teal.500}",{"color":"rgba(255, 255, 255, 0.4)"}]},"400":{"_inputs":["{colorPrimitives.teal.500}",{"color":"rgba(255, 255, 255, 0.2)"}]},"500":"{colorPrimitives.teal.base}","600":{"_inputs":["{colorPrimitives.teal.500}",{"color":"rgba(0, 0, 0, 0.2)"}]},"700":{"_inputs":["{colorPrimitives.teal.500}",{"color":"rgba(0, 0, 0, 0.4)"}]},"800":{"_inputs":["{colorPrimitives.teal.500}",{"color":"rgba(0, 0, 0, 0.6)"}]},"900":{"_inputs":["{colorPrimitives.teal.500}",{"color":"rgba(0, 0, 0, 0.8)"}]}},"red":{"50":{"_inputs":["{colorPrimitives.red.500}",{"color":"rgba(255, 255, 255, 0.9)"}]},"100":{"_inputs":["{colorPrimitives.red.500}",{"color":"rgba(255, 255, 255, 0.8)"}]},"200":{"_inputs":["{colorPrimitives.red.500}",{"color":"rgba(255, 255, 255, 0.6)"}]},"300":{"_inputs":["{colorPrimitives.red.500}",{"color":"rgba(255, 255, 255, 0.4)"}]},"400":{"_inputs":["{colorPrimitives.red.500}",{"color":"rgba(255, 255, 255, 0.2)"}]},"500":"{colorPrimitives.red.base}","600":{"_inputs":["{colorPrimitives.red.500}",{"color":"rgba(0, 0, 0, 0.2)"}]},"700":{"_inputs":["{colorPrimitives.red.500}",{"color":"rgba(0, 0, 0, 0.4)"}]},"800":{"_inputs":["{colorPrimitives.red.500}",{"color":"rgba(0, 0, 0, 0.6)"}]},"900":{"_inputs":["{colorPrimitives.red.500}",{"color":"rgba(0, 0, 0, 0.8)"}]}},"yellow":{"50":{"_inputs":["{colorPrimitives.yellow.500}",{"color":"rgba(255, 255, 255, 0.9)"}]},"100":{"_inputs":["{colorPrimitives.yellow.500}",{"color":"rgba(255, 255, 255, 0.8)"}]},"200":{"_inputs":["{colorPrimitives.yellow.500}",{"color":"rgba(255, 255, 255, 0.6)"}]},"300":{"_inputs":["{colorPrimitives.yellow.500}",{"color":"rgba(255, 255, 255, 0.4)"}]},"400":{"_inputs":["{colorPrimitives.yellow.500}",{"color":"rgba(255, 255, 255, 0.2)"}]},"500":"{colorPrimitives.yellow.base}","600":{"_inputs":["{colorPrimitives.yellow.500}",{"color":"rgba(0, 0, 0, 0.2)"}]},"700":{"_inputs":["{colorPrimitives.yellow.500}",{"color":"rgba(0, 0, 0, 0.4)"}]},"800":{"_inputs":["{colorPrimitives.yellow.500}",{"color":"rgba(0, 0, 0, 0.6)"}]},"900":{"_inputs":["{colorPrimitives.yellow.500}",{"color":"rgba(0, 0, 0, 0.8)"}]}},"gray":{"50":{"_inputs":["{colorPrimitives.gray.500}",{"color":"rgba(255, 255, 255, 0.9)"}]},"100":{"_inputs":["{colorPrimitives.gray.500}",{"color":"rgba(255, 255, 255, 0.8)"}]},"200":{"_inputs":["{colorPrimitives.gray.500}",{"color":"rgba(255, 255, 255, 0.6)"}]},"300":{"_inputs":["{colorPrimitives.gray.500}",{"color":"rgba(255, 255, 255, 0.4)"}]},"400":{"_inputs":["{colorPrimitives.gray.500}",{"color":"rgba(255, 255, 255, 0.2)"}]},"500":"{colorPrimitives.gray.base}","600":{"_inputs":["{colorPrimitives.gray.500}",{"color":"rgba(0, 0, 0, 0.2)"}]},"700":{"_inputs":["{colorPrimitives.gray.500}",{"color":"rgba(0, 0, 0, 0.4)"}]},"800":{"_inputs":["{colorPrimitives.gray.500}",{"color":"rgba(0, 0, 0, 0.6)"}]},"900":{"_inputs":["{colorPrimitives.gray.500}",{"color":"rgba(0, 0, 0, 0.8)"}]}}}}'),JSON.parse('{"colorPrimitives":{"green":{"base":"rgba(3, 227, 156, 1)"},"blue":{"base":"rgba(31, 169, 255, 1)"},"indigo":{"base":"rgba(147, 133, 255, 1)"},"pink":{"base":"rgba(240, 163, 222, 1)"},"orange":{"base":"rgba(254, 159, 108, 1)"},"teal":{"base":"rgba(72, 224, 224, 1)"},"red":{"base":"rgba(250, 102, 105, 1)"},"yellow":{"base":"rgba(250, 214, 127, 1)"},"gray":{"base":"rgba(156, 160, 160, 1)"}},"brand":{"accent":{"100":{"_inputs":["{brand.accent.dark}",{"color":"{brand.base.dark}","alpha":0.8}],"_transforms":[{"type":"darken","amount":0.1},{"type":"saturate","amount":0.1}]},"200":{"_inputs":["{brand.accent.dark}",{"color":"{brand.base.dark}","alpha":0.7}],"_transforms":[{"type":"darken","amount":0.1},{"type":"saturate","amount":0.1}]},"300":{"_inputs":["{brand.accent.dark}",{"color":"{brand.base.dark}","alpha":0.6}],"_transforms":[{"type":"darken","amount":0.1},{"type":"saturate","amount":0.1}]},"400":"{brand.accent.dark}","500":{"_inputs":["{brand.accent.dark}",{"color":"{brand.base.light}","alpha":0.4}]},"600":{"_inputs":["{brand.accent.dark}",{"color":"{brand.base.light}","alpha":0.6}]}},"status":{"positive":{"100":{"_inputs":["{brand.status.positive.400}",{"color":"{brand.base.dark}","alpha":0.9}]},"200":{"_inputs":["{brand.status.positive.400}",{"color":"{brand.base.dark}","alpha":0.8}]},"300":{"_inputs":["{brand.status.positive.400}",{"color":"{brand.base.dark}","alpha":0.7}]},"400":"{colorPrimitives.green.500}","500":{"_inputs":["{brand.status.positive.400}",{"color":"{brand.base.light}","alpha":0.4}]},"600":{"_inputs":["{brand.status.positive.400}",{"color":"{brand.base.light}","alpha":0.6}]}},"warning":{"100":{"_inputs":["{brand.status.warning.400}",{"color":"{brand.base.dark}","alpha":0.9}]},"200":{"_inputs":["{brand.status.warning.400}",{"color":"{brand.base.dark}","alpha":0.8}]},"300":{"_inputs":["{brand.status.warning.400}",{"color":"{brand.base.dark}","alpha":0.7}]},"400":"{colorPrimitives.yellow.500}","500":{"_inputs":["{brand.status.warning.400}",{"color":"{brand.base.light}","alpha":0.4}]},"600":{"_inputs":["{brand.status.warning.400}",{"color":"{brand.base.light}","alpha":0.6}]}},"critical":{"100":{"_inputs":["{brand.status.critical.400}",{"color":"{brand.base.dark}","alpha":0.9}]},"200":{"_inputs":["{brand.status.critical.400}",{"color":"{brand.base.dark}","alpha":0.8}]},"300":{"_inputs":["{brand.status.critical.400}",{"color":"{brand.base.dark}","alpha":0.7}]},"400":"{colorPrimitives.red.500}","500":{"_inputs":["{brand.status.critical.400}",{"color":"{brand.base.light}","alpha":0.4}]},"600":{"_inputs":["{brand.status.critical.400}",{"color":"{brand.base.light}","alpha":0.6}]}},"informative":{"100":{"_inputs":["{brand.status.informative.400}",{"color":"{brand.base.dark}","alpha":0.9}]},"200":{"_inputs":["{brand.status.informative.400}",{"color":"{brand.base.dark}","alpha":0.8}]},"300":{"_inputs":["{brand.status.informative.400}",{"color":"{brand.base.dark}","alpha":0.7}]},"400":"{colorPrimitives.blue.500}","500":{"_inputs":["{brand.status.informative.400}",{"color":"{brand.base.light}","alpha":0.4}]},"600":{"_inputs":["{brand.status.informative.400}",{"color":"{brand.base.light}","alpha":0.6}]}}}},"color":{"generated":{"accent":{"stronger":"{brand.accent.600}","strong":"{brand.accent.500}","base":"{brand.accent.400}","soft":"{brand.accent.300}","softer":"{brand.accent.200}","softest":"{brand.accent.100}"},"background":{"base":"{brand.base.dark}"},"foreground":{"base":"{brand.base.light}"},"identifier":{"blue":"{colorPrimitives.blue.500}","pink":"{colorPrimitives.pink.500}","indigo":"{colorPrimitives.indigo.500}","teal":"{colorPrimitives.teal.500}","green":"{colorPrimitives.green.500}","orange":"{colorPrimitives.orange.500}","red":"{colorPrimitives.red.500}","yellow":"{colorPrimitives.yellow.500}","gray":"{colorPrimitives.gray.500}"},"positive":{"strong":"{brand.status.positive.500}","base":"{brand.status.positive.400}","soft":"{brand.status.positive.300}","stronger":"{brand.status.positive.600}","softer":"{brand.status.positive.200}","softest":"{brand.status.positive.100}"},"warning":{"strong":"{brand.status.warning.500}","base":"{brand.status.warning.400}","soft":"{brand.status.warning.300}","stronger":"{brand.status.warning.600}","softer":"{brand.status.warning.200}","softest":"{brand.status.warning.100}"},"critical":{"strong":"{brand.status.critical.500}","base":"{brand.status.critical.400}","soft":"{brand.status.critical.300}","stronger":"{brand.status.critical.600}","softer":"{brand.status.critical.200}","softest":"{brand.status.critical.100}"},"informative":{"strong":"{brand.status.informative.500}","base":"{brand.status.informative.400}","soft":"{brand.status.informative.300}","stronger":"{brand.status.informative.600}","softer":"{brand.status.informative.200}","softest":"{brand.status.informative.100}"}},"shared":{"button":{"ghost":{"icon":{"hover":"{color.role.background.accent.base}","active":"{color.role.background.accent.strong}"},"text":{"pressed":"{color.role.background.accent.strong}"}}},"iconButton":{"ghost":{"icon":{"hover":"{color.role.background.accent.base}","pressed":"{color.role.background.accent.strong}"}}}},"coreui":{"homeInput":{"border":{"default":"{color.role.border.6}","hover":"{color.role.border.6}"}},"storeInput":{"border":{"default":"{color.role.border.4}","hover":"{color.role.border.4}"}}},"role":{"border":{"stronger":"{color.role.foreground.soft}","strong":"{color.role.foreground.softer}"}},"enterprise":{"contextMenuItem":{"default":{"hint":{"default":"{color.role.foreground.soft}","hover":"{color.role.foreground.soft}","active":"{color.role.foreground.soft}","focus":"{color.role.foreground.soft}"}}},"view":{"background":"{color.role.background.3}"},"topChrome":{"background":"{color.role.background.base}"},"logo":{"background":"{brand.accent.dark}","foreground":"{brand.accent.light}"},"topTab":{"background":{"default":"{color.role.background.base}","hover":"{color.role.background.3}","selected":"{color.role.background.3}","dragging":"{color.role.background.3}"}},"viewTab":{"background":{"default":"{color.role.background.3}","hover":"{color.role.background.5}","active":"{color.role.background.5}","selected":"{color.role.background.5}","dragging":"{color.role.background.5}"}},"searchBar":{"background":{"default":"{color.role.background.3}","hover":"{color.role.background.4}","active":"{color.role.background.3}","focus":"{color.role.background.3}"}},"searchResult":{"background":{"hover":"{color.role.background.4}"}}}}}'),JSON.parse('{"colorPrimitives":{"green":{"base":"rgba(1, 126, 86, 1)"},"blue":{"base":"rgba(0, 113, 184, 1)"},"indigo":{"base":"rgba(83, 61, 255, 1)"},"pink":{"base":"rgba(215, 15, 167, 1)"},"orange":{"base":"rgba(208, 74, 1, 1)"},"teal":{"base":"rgba(22, 131, 131, 1)"},"red":{"base":"rgba(206, 8, 10, 1)"},"yellow":{"base":"rgba(155, 111, 3, 1)"},"gray":{"base":"rgba(104, 109, 110, 1)"}},"brand":{"accent":{"100":{"_inputs":["{brand.accent.light}",{"color":"{brand.base.light}","alpha":0.6}],"_transforms":[{"type":"lighten","amount":0.2},{"type":"saturate","amount":0.1}]},"200":{"_inputs":["{brand.accent.light}",{"color":"{brand.base.light}","alpha":0.5}],"_transforms":[{"type":"lighten","amount":0.2},{"type":"saturate","amount":0.1}]},"300":{"_inputs":["{brand.accent.light}",{"color":"{brand.base.light}","alpha":0.6}],"_transforms":[{"type":"darken","amount":0.1},{"type":"saturate","amount":0.1}]},"400":"{brand.accent.light}","500":{"_inputs":["{brand.accent.light}",{"color":"{brand.base.dark}","alpha":0.4}]},"600":{"_inputs":["{brand.accent.light}",{"color":"{brand.base.dark}","alpha":0.6}]}},"status":{"positive":{"100":{"_inputs":["{brand.status.positive.400}",{"color":"{brand.base.light}","alpha":0.9}]},"200":{"_inputs":["{brand.status.positive.400}",{"color":"{brand.base.light}","alpha":0.8}]},"300":{"_inputs":["{brand.status.positive.400}",{"color":"{brand.base.light}","alpha":0.7}]},"400":"{colorPrimitives.green.500}","500":{"_inputs":["{brand.status.positive.400}",{"color":"{brand.base.dark}","alpha":0.4}]},"600":{"_inputs":["{brand.status.positive.400}",{"color":"{brand.base.dark}","alpha":0.6}]}},"warning":{"100":{"_inputs":["{brand.status.warning.400}",{"color":"{brand.base.light}","alpha":0.9}]},"200":{"_inputs":["{brand.status.warning.400}",{"color":"{brand.base.light}","alpha":0.8}]},"300":{"_inputs":["{brand.status.warning.400}",{"color":"{brand.base.light}","alpha":0.7}]},"400":"{colorPrimitives.yellow.500}","500":{"_inputs":["{brand.status.warning.400}",{"color":"{brand.base.dark}","alpha":0.4}]},"600":{"_inputs":["{brand.status.warning.400}",{"color":"{brand.base.dark}","alpha":0.6}]}},"critical":{"100":{"_inputs":["{brand.status.critical.400}",{"color":"{brand.base.light}","alpha":0.9}]},"200":{"_inputs":["{brand.status.critical.400}",{"color":"{brand.base.light}","alpha":0.8}]},"300":{"_inputs":["{brand.status.critical.400}",{"color":"{brand.base.light}","alpha":0.7}]},"400":"{colorPrimitives.red.500}","500":{"_inputs":["{brand.status.critical.400}",{"color":"{brand.base.dark}","alpha":0.4}]},"600":{"_inputs":["{brand.status.critical.400}",{"color":"{brand.base.dark}","alpha":0.6}]}},"informative":{"100":{"_inputs":["{brand.status.informative.400}",{"color":"{brand.base.light}","alpha":0.9}]},"200":{"_inputs":["{brand.status.informative.400}",{"color":"{brand.base.light}","alpha":0.8}]},"300":{"_inputs":["{brand.status.informative.400}",{"color":"{brand.base.light}","alpha":0.7}]},"400":"{colorPrimitives.blue.500}","500":{"_inputs":["{brand.status.informative.400}",{"color":"{brand.base.dark}","alpha":0.4}]},"600":{"_inputs":["{brand.status.informative.400}",{"color":"{brand.base.dark}","alpha":0.6}]}}}},"color":{"generated":{"accent":{"stronger":"{brand.accent.600}","strong":"{brand.accent.500}","base":"{brand.accent.400}","soft":"{brand.accent.300}","softer":"{brand.accent.200}","softest":"{brand.accent.100}"},"background":{"base":"{brand.base.light}"},"foreground":{"base":"{brand.base.dark}"},"identifier":{"blue":"{colorPrimitives.blue.500}","pink":"{colorPrimitives.pink.500}","indigo":"{colorPrimitives.indigo.500}","teal":"{colorPrimitives.teal.500}","green":"{colorPrimitives.green.500}","orange":"{colorPrimitives.orange.500}","red":"{colorPrimitives.red.500}","yellow":"{colorPrimitives.yellow.400}","gray":"{colorPrimitives.gray.500}"},"positive":{"strong":"{brand.status.positive.500}","base":"{brand.status.positive.400}","soft":"{brand.status.positive.300}","stronger":"{brand.status.positive.600}","softer":"{brand.status.positive.200}","softest":"{brand.status.positive.100}"},"warning":{"strong":"{brand.status.warning.500}","base":"{brand.status.warning.400}","soft":"{brand.status.warning.300}","stronger":"{brand.status.warning.600}","softer":"{brand.status.warning.200}","softest":"{brand.status.warning.100}"},"critical":{"strong":"{brand.status.critical.500}","base":"{brand.status.critical.400}","soft":"{brand.status.critical.300}","stronger":"{brand.status.critical.600}","softer":"{brand.status.critical.200}","softest":"{brand.status.critical.100}"},"informative":{"strong":"{brand.status.informative.500}","base":"{brand.status.informative.400}","soft":"{brand.status.informative.300}","stronger":"{brand.status.informative.600}","softer":"{brand.status.informative.200}","softest":"{brand.status.informative.100}"}},"shared":{"button":{"ghost":{"icon":{"hover":"{color.role.background.accent.strong}","active":"{color.role.background.accent.stronger}"},"text":{"pressed":"{color.role.background.accent.stronger}"}}},"iconButton":{"ghost":{"icon":{"hover":"{color.role.background.accent.strong}","pressed":"{color.role.background.accent.stronger}"}}}},"coreui":{"homeInput":{"border":{"default":"{color.role.border.4}","hover":"{color.role.border.4}"}},"storeInput":{"border":{"default":"{color.role.border.6}","hover":"{color.role.border.6}"}}},"role":{"border":{"stronger":"{color.generated.foreground.soft}","strong":"{color.generated.foreground.softer}"}},"enterprise":{"contextMenuItem":{"default":{"hint":{"default":"{color.role.foreground.softer}","hover":"{color.role.foreground.softer}","active":"{color.role.foreground.softer}","focus":"{color.role.foreground.softer}"}}},"view":{"background":"{color.role.background.1}"},"topChrome":{"background":"{color.role.background.2}"},"topTab":{"background":{"default":"{color.role.background.2}","hover":"{color.role.background.1}","selected":"{color.role.background.1}","dragging":"{color.role.background.1}"}},"logo":{"background":"{brand.accent.light}","foreground":"{brand.accent.dark}"},"viewTab":{"background":{"default":"{color.role.background.1}","hover":"{color.role.background.3}","active":"{color.role.background.3}","selected":"{color.role.background.3}","dragging":"{color.role.background.3}"}},"searchBar":{"background":{"default":"{color.role.background.base}","hover":"{color.role.background.3}","active":"{color.role.background.base}","focus":"{color.role.background.base}"}}}}}');var L=B(436);B.n(L);const G=(e,r)=>{if("number"==typeof e)return 3===r?{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|240&e)/255,b:(15&e|e<<4&240)/255}:4===r?{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|240&e)/255,alpha:(15&e|e<<4&240)/255}:6===r?{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(255&e)/255}:8===r?{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(255&e)/255}:void 0},U={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},N=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,q="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",H=`${q}%`,V=`(?:${q}%|${q})`,Y=`(?:${q}(deg|grad|rad|turn)|${q})`,Z="\\s*,\\s*",K=(new RegExp(`^(?:${q}%|${q}|none)$`),new RegExp(`^rgba?\\(\\s*${q}${Z}${q}${Z}${q}\\s*(?:,\\s*${V}\\s*)?\\)$`)),J=new RegExp(`^rgba?\\(\\s*${H}${Z}${H}${Z}${H}\\s*(?:,\\s*${V}\\s*)?\\)$`),Q=(e="rgb")=>r=>void 0!==(r=((e,r)=>void 0===e?void 0:"object"!=typeof e?Se(e):void 0!==e.mode?e:r?{...e,mode:r}:void 0)(r,e))?r.mode===e?r:X[r.mode][e]?X[r.mode][e](r):"rgb"===e?X[r.mode].rgb(r):X.rgb[e](X[r.mode].rgb(r)):void 0,X={},ee={},re=[],oe={},te=e=>e,ae=e=>(X[e.mode]={...X[e.mode],...e.toMode},Object.keys(e.fromMode||{}).forEach(r=>{X[r]||(X[r]={}),X[r][e.mode]=e.fromMode[r]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(r=>{if(void 0===e.ranges[r]&&(e.ranges[r]=[0,1]),!e.interpolate[r])throw new Error(`Missing interpolator for: ${r}`);"function"==typeof e.interpolate[r]&&(e.interpolate[r]={use:e.interpolate[r]}),e.interpolate[r].fixup||(e.interpolate[r].fixup=te)}),ee[e.mode]=e,(e.parse||[]).forEach(r=>{ie(r,e.mode)}),Q(e.mode)),ne=e=>ee[e],ie=(e,r)=>{if("string"==typeof e){if(!r)throw new Error("'mode' required when 'parser' is a string");oe[e]=r}else"function"==typeof e&&re.indexOf(e)<0&&re.push(e)},se=/[^\x00-\x7F]|[a-zA-Z_]/,le=/[^\x00-\x7F]|[-\w]/,ce="function",de="ident",ue="number",ge="percentage",he="none",pe="hue",fe="alpha";let be=0;function ve(e){let r=e[be],o=e[be+1];return"-"===r||"+"===r?/\d/.test(o)||"."===o&&/\d/.test(e[be+2]):/\d/.test("."===r?o:r)}function me(e){if(be>=e.length)return!1;let r=e[be];if(se.test(r))return!0;if("-"===r){if(e.length-be<2)return!1;let r=e[be+1];return!("-"!==r&&!se.test(r))}return!1}const ye={deg:1,rad:180/Math.PI,grad:.9,turn:360};function ke(e){let r="";if("-"!==e[be]&&"+"!==e[be]||(r+=e[be++]),r+=we(e),"."===e[be]&&/\d/.test(e[be+1])&&(r+=e[be++]+we(e)),"e"!==e[be]&&"E"!==e[be]||("-"!==e[be+1]&&"+"!==e[be+1]||!/\d/.test(e[be+2])?/\d/.test(e[be+1])&&(r+=e[be++]+we(e)):r+=e[be++]+e[be++]+we(e)),me(e)){let o=Pe(e);return"deg"===o||"rad"===o||"turn"===o||"grad"===o?{type:pe,value:r*ye[o]}:void 0}return"%"===e[be]?(be++,{type:ge,value:+r}):{type:ue,value:+r}}function we(e){let r="";for(;/\d/.test(e[be]);)r+=e[be++];return r}function Pe(e){let r="";for(;be<e.length&&le.test(e[be]);)r+=e[be++];return r}function Me(e){let r=Pe(e);return"("===e[be]?(be++,{type:ce,value:r}):"none"===r?{type:he,value:void 0}:{type:de,value:r}}function xe(e,r){const o=[];let t;for(;e._i<e.length;)if(t=e[e._i++],t.type===he||t.type===ue||t.type===fe||t.type===ge||r&&t.type===pe)o.push(t);else{if(")"!==t.type)return;if(e._i<e.length)return}if(!(o.length<3||o.length>4)){if(4===o.length){if(o[3].type!==fe)return;o[3]=o[3].value}return 3===o.length&&o.push({type:he,value:void 0}),o.every(e=>e.type!==fe)?o:void 0}}const Se=e=>{if("string"!=typeof e)return;const r=function(e=""){let r,o=e.trim(),t=[];for(be=0;be<o.length;)if(r=o[be++],"\n"!==r&&"\t"!==r&&" "!==r){if(","===r)return;if(")"!==r){if("+"===r){if(be--,ve(o)){t.push(ke(o));continue}return}if("-"===r){if(be--,ve(o)){t.push(ke(o));continue}if(me(o)){t.push({type:de,value:Pe(o)});continue}return}if("."===r){if(be--,ve(o)){t.push(ke(o));continue}return}if("/"===r){for(;be<o.length&&("\n"===o[be]||"\t"===o[be]||" "===o[be]);)be++;let e;if(ve(o)&&(e=ke(o),e.type!==pe)){t.push({type:fe,value:e});continue}if(me(o)&&"none"===Pe(o)){t.push({type:fe,value:{type:he,value:void 0}});continue}return}if(/\d/.test(r))be--,t.push(ke(o));else{if(!se.test(r))return;be--,t.push(Me(o))}}else t.push({type:")"})}else for(;be<o.length&&("\n"===o[be]||"\t"===o[be]||" "===o[be]);)be++;return t}(e),o=r?function(e){e._i=0;let r=e[e._i++];if(!r||r.type!==ce)return;let o=xe(e,!0);return o?(o.unshift(r.value),o):void 0}(r):void 0;let t,a=0,n=re.length;for(;a<n;)if(void 0!==(t=re[a++](e,o)))return t;return r?function(e){e._i=0;let r=e[e._i++];if(!r||r.type!==ce||"color"!==r.value)return;if(r=e[e._i++],r.type!==de)return;const o=oe[r.value];if(!o)return;const t={mode:o},a=xe(e,!1);if(!a)return;const n=ne(o).channels;for(let e,r,o=0;o<n.length;o++)e=a[o],r=n[o],e.type!==he&&(t[r]=e.type===ue?e.value:e.value/100,"alpha"===r&&(t[r]=Math.max(0,Math.min(1,t[r]))));return t}(r):void 0},_e=(Ce=(e,r,o)=>e+o*(r-e),e=>{let r=(e=>{let r=[];for(let o=0;o<e.length-1;o++){let t=e[o],a=e[o+1];void 0===t&&void 0===a?r.push(void 0):void 0!==t&&void 0!==a?r.push([t,a]):r.push(void 0!==t?[t,t]:[a,a])}return r})(e);return e=>{let o=e*r.length,t=e>=1?r.length-1:Math.max(Math.floor(o),0),a=r[t];return void 0===a?void 0:Ce(a[0],a[1],o-t)}});var Ce;const Ae=e=>{let r=!1,o=e.map(e=>void 0!==e?(r=!0,e):1);return r?o:e},Ie={mode:"rgb",channels:["r","g","b","alpha"],parse:[function(e,r){if(!r||"rgb"!==r[0]&&"rgba"!==r[0])return;const o={mode:"rgb"},[,t,a,n,i]=r;return t.type!==pe&&a.type!==pe&&n.type!==pe?(t.type!==he&&(o.r=t.type===ue?t.value/255:t.value/100),a.type!==he&&(o.g=a.type===ue?a.value/255:a.value/100),n.type!==he&&(o.b=n.type===ue?n.value/255:n.value/100),i.type!==he&&(o.alpha=Math.min(1,Math.max(0,i.type===ue?i.value:i.value/100))),o):void 0},e=>{let r;return(r=e.match(N))?G(parseInt(r[1],16),r[1].length):void 0},e=>{let r,o={mode:"rgb"};if(r=e.match(K))void 0!==r[1]&&(o.r=r[1]/255),void 0!==r[2]&&(o.g=r[2]/255),void 0!==r[3]&&(o.b=r[3]/255);else{if(!(r=e.match(J)))return;void 0!==r[1]&&(o.r=r[1]/100),void 0!==r[2]&&(o.g=r[2]/100),void 0!==r[3]&&(o.b=r[3]/100)}return void 0!==r[4]?o.alpha=Math.max(0,Math.min(1,r[4]/100)):void 0!==r[5]&&(o.alpha=Math.max(0,Math.min(1,+r[5]))),o},e=>G(U[e.toLowerCase()],6),e=>"transparent"===e?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,"srgb"],serialize:"srgb",interpolate:{r:_e,g:_e,b:_e,alpha:{use:_e,fixup:Ae}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Te=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),Ee=e=>{let r=Te(e.r),o=Te(e.g),t=Te(e.b),a={mode:"xyz65",x:.5766690429101305*r+.1855582379065463*o+.1882286462349947*t,y:.297344975250536*r+.6273635662554661*o+.0752914584939979*t,z:.0270313613864123*r+.0706888525358272*o+.9913375368376386*t};return void 0!==e.alpha&&(a.alpha=e.alpha),a},De=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),$e=({x:e,y:r,z:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a={mode:"a98",r:De(2.0415879038107465*e-.5650069742788597*r-.3447313507783297*o),g:De(-.9692436362808798*e+1.8759675015077206*r+.0415550574071756*o),b:De(.0134442806320312*e-.1183623922310184*r+1.0151749943912058*o)};return void 0!==t&&(a.alpha=t),a},Fe=(e=0)=>{const r=Math.abs(e);return r<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((r+.055)/1.055,2.4)},Re=({r:e,g:r,b:o,alpha:t})=>{let a={mode:"lrgb",r:Fe(e),g:Fe(r),b:Fe(o)};return void 0!==t&&(a.alpha=t),a},We=e=>{let{r,g:o,b:t,alpha:a}=Re(e),n={mode:"xyz65",x:.4123907992659593*r+.357584339383878*o+.1804807884018343*t,y:.2126390058715102*r+.715168678767756*o+.0721923153607337*t,z:.0193308187155918*r+.119194779794626*o+.9505321522496607*t};return void 0!==a&&(n.alpha=a),n},ze=(e=0)=>{const r=Math.abs(e);return r>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(r,1/2.4)-.055):12.92*e},Oe=({r:e,g:r,b:o,alpha:t},a="rgb")=>{let n={mode:a,r:ze(e),g:ze(r),b:ze(o)};return void 0!==t&&(n.alpha=t),n},Be=({x:e,y:r,z:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a=Oe({r:3.2409699419045226*e-1.537383177570094*r-.4986107602930034*o,g:-.9692436362808796*e+1.8759675015077204*r+.0415550574071756*o,b:.0556300796969936*e-.2039769588889765*r+1.0569715142428784*o});return void 0!==t&&(a.alpha=t),a},je={...Ie,mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>$e(We(e)),xyz65:$e},toMode:{rgb:e=>Be(Ee(e)),xyz65:Ee}},Le=e=>(e%=360)<0?e+360:e,Ge=e=>(e=>e.map((r,o,t)=>{if(void 0===r)return r;let a=Le(r);return 0===o||void 0===e[o-1]?a:(e=>Math.abs(e)<=180?e:e-360*Math.sign(e))(a-Le(t[o-1]))}).reduce((e,r)=>e.length&&void 0!==r&&void 0!==e[e.length-1]?(e.push(r+e[e.length-1]),e):(e.push(r),e),[]))(e),Ue=[-.14861,1.78277,-.29227,-.90649,1.97294,0],Ne=Math.PI/180,qe=180/Math.PI;let He=Ue[3]*Ue[4],Ve=Ue[1]*Ue[4],Ye=Ue[1]*Ue[2]-Ue[0]*Ue[3];const Ze=(e,r)=>{if(void 0===e.h||void 0===r.h||!e.s||!r.s)return 0;let o=Le(e.h),t=Le(r.h),a=Math.sin((t-o+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*r.s)*a},Ke=(e,r)=>{if(void 0===e.h||void 0===r.h||!e.c||!r.c)return 0;let o=Le(e.h),t=Le(r.h),a=Math.sin((t-o+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*r.c)*a},Je=e=>{let r=e.reduce((e,r)=>{if(void 0!==r){let o=r*Math.PI/180;e.sin+=Math.sin(o),e.cos+=Math.cos(o)}return e},{sin:0,cos:0}),o=180*Math.atan2(r.sin,r.cos)/Math.PI;return o<0?360+o:o},Qe={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:({r:e,g:r,b:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a=(Ye*o+e*He-r*Ve)/(Ye+He-Ve),n=o-a,i=(Ue[4]*(r-a)-Ue[2]*n)/Ue[3],s={mode:"cubehelix",l:a,s:0===a||1===a?void 0:Math.sqrt(n*n+i*i)/(Ue[4]*a*(1-a))};return s.s&&(s.h=Math.atan2(i,n)*qe-120),void 0!==t&&(s.alpha=t),s}},toMode:{rgb:({h:e,s:r,l:o,alpha:t})=>{let a={mode:"rgb"};e=(void 0===e?0:e+120)*Ne,void 0===o&&(o=0);let n=void 0===r?0:r*o*(1-o),i=Math.cos(e),s=Math.sin(e);return a.r=o+n*(Ue[0]*i+Ue[1]*s),a.g=o+n*(Ue[2]*i+Ue[3]*s),a.b=o+n*(Ue[4]*i+Ue[5]*s),void 0!==t&&(a.alpha=t),a}},interpolate:{h:{use:_e,fixup:Ge},s:_e,l:_e,alpha:{use:_e,fixup:Ae}},difference:{h:Ze},average:{h:Je}},Xe=({l:e,a:r,b:o,alpha:t},a="lch")=>{void 0===r&&(r=0),void 0===o&&(o=0);let n=Math.sqrt(r*r+o*o),i={mode:a,l:e,c:n};return n&&(i.h=Le(180*Math.atan2(o,r)/Math.PI)),void 0!==t&&(i.alpha=t),i},er=({l:e,c:r,h:o,alpha:t},a="lab")=>{void 0===o&&(o=0);let n={mode:a,l:e,a:r?r*Math.cos(o/180*Math.PI):0,b:r?r*Math.sin(o/180*Math.PI):0};return void 0!==t&&(n.alpha=t),n},rr=Math.pow(29,3)/Math.pow(3,3),or=Math.pow(6,3)/Math.pow(29,3),tr=.3457/.3585,ar=.2958/.3585,nr=.3127/.329,ir=.3583/.329;Math.pow(29,3),Math.pow(3,3),Math.pow(6,3),Math.pow(29,3);let sr=e=>Math.pow(e,3)>or?Math.pow(e,3):(116*e-16)/rr;const lr=({l:e,a:r,b:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a=(e+16)/116,n=a-o/200,i={mode:"xyz65",x:sr(r/500+a)*nr,y:1*sr(a),z:sr(n)*ir};return void 0!==t&&(i.alpha=t),i},cr=e=>Be(lr(e)),dr=e=>e>or?Math.cbrt(e):(rr*e+16)/116,ur=({x:e,y:r,z:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a=dr(e/nr),n=dr(r/1),i={mode:"lab65",l:116*n-16,a:500*(a-n),b:200*(n-dr(o/ir))};return void 0!==t&&(i.alpha=t),i},gr=e=>{let r=ur(We(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},hr=26/180*Math.PI,pr=Math.cos(hr),fr=Math.sin(hr),br=100/Math.log(1.39),vr=({l:e,c:r,h:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a={mode:"lab65",l:(Math.exp(1*e/br)-1)/.0039},n=(Math.exp(.0435*r*1*1)-1)/.075,i=n*Math.cos(o/180*Math.PI-hr),s=n*Math.sin(o/180*Math.PI-hr);return a.a=i*pr-s/.83*fr,a.b=i*fr+s/.83*pr,void 0!==t&&(a.alpha=t),a},mr=({l:e,a:r,b:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a=r*pr+o*fr,n=.83*(o*pr-r*fr),i=Math.sqrt(a*a+n*n),s={mode:"dlch",l:br/1*Math.log(1+.0039*e),c:Math.log(1+.075*i)/.0435};return s.c&&(s.h=Le((Math.atan2(n,a)+hr)/Math.PI*180)),void 0!==t&&(s.alpha=t),s},yr=e=>vr(Xe(e,"dlch")),kr=e=>er(mr(e),"dlab"),wr={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:yr,rgb:e=>cr(yr(e))},fromMode:{lab65:kr,rgb:e=>kr(gr(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:_e,a:_e,b:_e,alpha:{use:_e,fixup:Ae}}},Pr=wr,Mr={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:vr,dlab:e=>er(e,"dlab"),rgb:e=>cr(vr(e))},fromMode:{lab65:mr,dlab:e=>Xe(e,"dlch"),rgb:e=>mr(gr(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:_e,c:_e,h:{use:_e,fixup:Ge},alpha:{use:_e,fixup:Ae}},difference:{h:Ke},average:{h:Je}},xr=Mr,Sr={mode:"hsi",toMode:{rgb:function({h:e,s:r,i:o,alpha:t}){e=Le(void 0!==e?e:0),void 0===r&&(r=0),void 0===o&&(o=0);let a,n=Math.abs(e/60%2-1);switch(Math.floor(e/60)){case 0:a={r:o*(1+r*(3/(2-n)-1)),g:o*(1+r*(3*(1-n)/(2-n)-1)),b:o*(1-r)};break;case 1:a={r:o*(1+r*(3*(1-n)/(2-n)-1)),g:o*(1+r*(3/(2-n)-1)),b:o*(1-r)};break;case 2:a={r:o*(1-r),g:o*(1+r*(3/(2-n)-1)),b:o*(1+r*(3*(1-n)/(2-n)-1))};break;case 3:a={r:o*(1-r),g:o*(1+r*(3*(1-n)/(2-n)-1)),b:o*(1+r*(3/(2-n)-1))};break;case 4:a={r:o*(1+r*(3*(1-n)/(2-n)-1)),g:o*(1-r),b:o*(1+r*(3/(2-n)-1))};break;case 5:a={r:o*(1+r*(3/(2-n)-1)),g:o*(1-r),b:o*(1+r*(3*(1-n)/(2-n)-1))};break;default:a={r:o*(1-r),g:o*(1-r),b:o*(1-r)}}return a.mode="rgb",void 0!==t&&(a.alpha=t),a}},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:function({r:e,g:r,b:o,alpha:t}){void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a=Math.max(e,r,o),n=Math.min(e,r,o),i={mode:"hsi",s:e+r+o===0?0:1-3*n/(e+r+o),i:(e+r+o)/3};return a-n!==0&&(i.h=60*(a===e?(r-o)/(a-n)+6*(r<o):a===r?(o-e)/(a-n)+2:(e-r)/(a-n)+4)),void 0!==t&&(i.alpha=t),i}},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:_e,fixup:Ge},s:_e,i:_e,alpha:{use:_e,fixup:Ae}},difference:{h:Ze},average:{h:Je}},_r=Sr,Cr=new RegExp(`^hsla?\\(\\s*${Y}${Z}${H}${Z}${H}\\s*(?:,\\s*${V}\\s*)?\\)$`),Ar={mode:"hsl",toMode:{rgb:function({h:e,s:r,l:o,alpha:t}){e=Le(void 0!==e?e:0),void 0===r&&(r=0),void 0===o&&(o=0);let a,n=o+r*(o<.5?o:1-o),i=n-2*(n-o)*Math.abs(e/60%2-1);switch(Math.floor(e/60)){case 0:a={r:n,g:i,b:2*o-n};break;case 1:a={r:i,g:n,b:2*o-n};break;case 2:a={r:2*o-n,g:n,b:i};break;case 3:a={r:2*o-n,g:i,b:n};break;case 4:a={r:i,g:2*o-n,b:n};break;case 5:a={r:n,g:2*o-n,b:i};break;default:a={r:2*o-n,g:2*o-n,b:2*o-n}}return a.mode="rgb",void 0!==t&&(a.alpha=t),a}},fromMode:{rgb:function({r:e,g:r,b:o,alpha:t}){void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a=Math.max(e,r,o),n=Math.min(e,r,o),i={mode:"hsl",s:a===n?0:(a-n)/(1-Math.abs(a+n-1)),l:.5*(a+n)};return a-n!==0&&(i.h=60*(a===e?(r-o)/(a-n)+6*(r<o):a===r?(o-e)/(a-n)+2:(e-r)/(a-n)+4)),void 0!==t&&(i.alpha=t),i}},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[function(e,r){if(!r||"hsl"!==r[0]&&"hsla"!==r[0])return;const o={mode:"hsl"},[,t,a,n,i]=r;if(t.type!==he){if(t.type===ge)return;o.h=t.value}if(a.type!==he){if(a.type===pe)return;o.s=a.value/100}if(n.type!==he){if(n.type===pe)return;o.l=n.value/100}return i.type!==he&&(o.alpha=Math.min(1,Math.max(0,i.type===ue?i.value:i.value/100))),o},e=>{let r=e.match(Cr);if(!r)return;let o={mode:"hsl"};return void 0!==r[3]?o.h=+r[3]:void 0!==r[1]&&void 0!==r[2]&&(o.h=((e,r)=>{switch(r){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return 360*e}})(r[1],r[2])),void 0!==r[4]&&(o.s=Math.min(Math.max(0,r[4]/100),1)),void 0!==r[5]&&(o.l=Math.min(Math.max(0,r[5]/100),1)),void 0!==r[6]?o.alpha=Math.max(0,Math.min(1,r[6]/100)):void 0!==r[7]&&(o.alpha=Math.max(0,Math.min(1,+r[7]))),o}],serialize:e=>`hsl(${void 0!==e.h?e.h:"none"} ${void 0!==e.s?100*e.s+"%":"none"} ${void 0!==e.l?100*e.l+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:_e,fixup:Ge},s:_e,l:_e,alpha:{use:_e,fixup:Ae}},difference:{h:Ze},average:{h:Je}},Ir=Ar;function Tr({h:e,s:r,v:o,alpha:t}){e=Le(void 0!==e?e:0),void 0===r&&(r=0),void 0===o&&(o=0);let a,n=Math.abs(e/60%2-1);switch(Math.floor(e/60)){case 0:a={r:o,g:o*(1-r*n),b:o*(1-r)};break;case 1:a={r:o*(1-r*n),g:o,b:o*(1-r)};break;case 2:a={r:o*(1-r),g:o,b:o*(1-r*n)};break;case 3:a={r:o*(1-r),g:o*(1-r*n),b:o};break;case 4:a={r:o*(1-r*n),g:o*(1-r),b:o};break;case 5:a={r:o,g:o*(1-r),b:o*(1-r*n)};break;default:a={r:o*(1-r),g:o*(1-r),b:o*(1-r)}}return a.mode="rgb",void 0!==t&&(a.alpha=t),a}function Er({r:e,g:r,b:o,alpha:t}){void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a=Math.max(e,r,o),n=Math.min(e,r,o),i={mode:"hsv",s:0===a?0:1-n/a,v:a};return a-n!==0&&(i.h=60*(a===e?(r-o)/(a-n)+6*(r<o):a===r?(o-e)/(a-n)+2:(e-r)/(a-n)+4)),void 0!==t&&(i.alpha=t),i}const Dr={mode:"hsv",toMode:{rgb:Tr},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:Er},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:_e,fixup:Ge},s:_e,v:_e,alpha:{use:_e,fixup:Ae}},difference:{h:Ze},average:{h:Je}},$r={mode:"hwb",toMode:{rgb:function({h:e,w:r,b:o,alpha:t}){if(void 0===r&&(r=0),void 0===o&&(o=0),r+o>1){let e=r+o;r/=e,o/=e}return Tr({h:e,s:1===o?1:1-r/(1-o),v:1-o,alpha:t})}},fromMode:{rgb:function(e){let r=Er(e);if(void 0===r)return;let o=void 0!==r.s?r.s:0,t=void 0!==r.v?r.v:0,a={mode:"hwb",w:(1-o)*t,b:1-t};return void 0!==r.h&&(a.h=r.h),void 0!==r.alpha&&(a.alpha=r.alpha),a}},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[function(e,r){if(!r||"hwb"!==r[0])return;const o={mode:"hwb"},[,t,a,n,i]=r;if(t.type!==he){if(t.type===ge)return;o.h=t.value}if(a.type!==he){if(a.type===pe)return;o.w=a.value/100}if(n.type!==he){if(n.type===pe)return;o.b=n.value/100}return i.type!==he&&(o.alpha=Math.min(1,Math.max(0,i.type===ue?i.value:i.value/100))),o}],serialize:e=>`hwb(${void 0!==e.h?e.h:"none"} ${void 0!==e.w?100*e.w+"%":"none"} ${void 0!==e.b?100*e.b+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:_e,fixup:Ge},w:_e,b:_e,alpha:{use:_e,fixup:Ae}},difference:{h:(e,r)=>{if(void 0===e.h||void 0===r.h)return 0;let o=Le(e.h),t=Le(r.h);return Math.abs(t-o)>180?o-(t-360*Math.sign(t-o)):t-o}},average:{h:Je}},Fr=$r,Rr=.1593017578125,Wr=78.84375,zr=.8359375,Or=18.8515625,Br=18.6875;function jr(e){if(e<0)return 0;const r=Math.pow(e,1/Wr);return 1e4*Math.pow(Math.max(0,r-zr)/(Or-Br*r),1/Rr)}function Lr(e){if(e<0)return 0;const r=Math.pow(e/1e4,Rr);return Math.pow((zr+Or*r)/(1+Br*r),Wr)}const Gr=e=>Math.max(e/203,0),Ur=({i:e,t:r,p:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);const a=jr(e+.008609037037932761*r+.11102962500302593*o),n=jr(e-.00860903703793275*r-.11102962500302599*o),i=jr(e+.5600313357106791*r-.32062717498731885*o),s={mode:"xyz65",x:Gr(2.070152218389422*a-1.3263473389671556*n+.2066510476294051*i),y:Gr(.3647385209748074*a+.680566024947227*n-.0453045459220346*i),z:Gr(-.049747207535812*a-.0492609666966138*n+1.1880659249923042*i)};return void 0!==t&&(s.alpha=t),s},Nr=(e=0)=>Math.max(203*e,0),qr=({x:e,y:r,z:o,alpha:t})=>{const a=Nr(e),n=Nr(r),i=Nr(o),s=Lr(.3592832590121217*a+.6976051147779502*n-.0358915932320289*i),l=Lr(-.1920808463704995*a+1.1004767970374323*n+.0753748658519118*i),c=Lr(.0070797844607477*a+.0748396662186366*n+.8433265453898765*i),d={mode:"itp",i:.5*s+.5*l,t:1.61376953125*s-3.323486328125*l+1.709716796875*c,p:4.378173828125*s-4.24560546875*l-.132568359375*c};return void 0!==t&&(d.alpha=t),d},Hr={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:Ur,rgb:e=>Be(Ur(e))},fromMode:{xyz65:qr,rgb:e=>qr(We(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:_e,t:_e,p:_e,alpha:{use:_e,fixup:Ae}}},Vr=e=>{if(e<0)return 0;let r=Math.pow(e/1e4,Rr);return Math.pow((zr+Or*r)/(1+Br*r),134.03437499999998)},Yr=(e=0)=>Math.max(203*e,0),Zr=({x:e,y:r,z:o,alpha:t})=>{e=Yr(e),r=Yr(r);let a=1.15*e-.15*(o=Yr(o)),n=.66*r+.34*e,i=Vr(.41478972*a+.579999*n+.014648*o),s=Vr(-.20151*a+1.120649*n+.0531008*o),l=Vr(-.0166008*a+.2648*n+.6684799*o),c=(i+s)/2,d={mode:"jab",j:.44*c/(1-.56*c)-16295499532821565e-27,a:3.524*i-4.066708*s+.542708*l,b:.199076*i+1.096799*s-1.295875*l};return void 0!==t&&(d.alpha=t),d},Kr=16295499532821565e-27,Jr=e=>{if(e<0)return 0;let r=Math.pow(e,.007460772656268216);return 1e4*Math.pow((zr-r)/(Br*r-Or),1/Rr)},Qr=e=>e/203,Xr=({j:e,a:r,b:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a=(e+Kr)/(.44+.56*(e+Kr)),n=Jr(a+.13860504*r+.058047316*o),i=Jr(a-.13860504*r-.058047316*o),s=Jr(a-.096019242*r-.8118919*o),l={mode:"xyz65",x:Qr(1.661373024652174*n-.914523081304348*i+.23136208173913045*s),y:Qr(-.3250758611844533*n+1.571847026732543*i-.21825383453227928*s),z:Qr(-.090982811*n-.31272829*i+1.5227666*s)};return void 0!==t&&(l.alpha=t),l},eo=e=>{let r=Zr(We(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},ro=e=>Be(Xr(e)),oo={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:eo,xyz65:Zr},toMode:{rgb:ro,xyz65:Xr},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:_e,a:_e,b:_e,alpha:{use:_e,fixup:Ae}}},to=({j:e,a:r,b:o,alpha:t})=>{void 0===r&&(r=0),void 0===o&&(o=0);let a=Math.sqrt(r*r+o*o),n={mode:"jch",j:e,c:a};return a&&(n.h=Le(180*Math.atan2(o,r)/Math.PI)),void 0!==t&&(n.alpha=t),n},ao=({j:e,c:r,h:o,alpha:t})=>{void 0===o&&(o=0);let a={mode:"jab",j:e,a:r?r*Math.cos(o/180*Math.PI):0,b:r?r*Math.sin(o/180*Math.PI):0};return void 0!==t&&(a.alpha=t),a},no={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:ao,rgb:e=>ro(ao(e))},fromMode:{rgb:e=>to(eo(e)),jab:to},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:_e,fixup:Ge},c:_e,j:_e,alpha:{use:_e,fixup:Ae}},difference:{h:Ke},average:{h:Je}},io=no,so=Math.pow(29,3)/Math.pow(3,3),lo=Math.pow(6,3)/Math.pow(29,3);let co=e=>Math.pow(e,3)>lo?Math.pow(e,3):(116*e-16)/so;const uo=({l:e,a:r,b:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a=(e+16)/116,n=a-o/200,i={mode:"xyz50",x:co(r/500+a)*tr,y:1*co(a),z:co(n)*ar};return void 0!==t&&(i.alpha=t),i},go=({x:e,y:r,z:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a=Oe({r:3.1341359569958707*e-1.6173863321612538*r-.4906619460083532*o,g:-.978795502912089*e+1.916254567259524*r+.03344273116131949*o,b:.07195537988411677*e-.2289768264158322*r+1.405386058324125*o});return void 0!==t&&(a.alpha=t),a},ho=e=>go(uo(e)),po=e=>{let{r,g:o,b:t,alpha:a}=Re(e),n={mode:"xyz50",x:.436065742824811*r+.3851514688337912*o+.14307845442264197*t,y:.22249319175623702*r+.7168870538238823*o+.06061979053616537*t,z:.013923904500943465*r+.09708128566574634*o+.7140993584005155*t};return void 0!==a&&(n.alpha=a),n},fo=e=>e>lo?Math.cbrt(e):(so*e+16)/116,bo=({x:e,y:r,z:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a=fo(e/tr),n=fo(r/1),i={mode:"lab",l:116*n-16,a:500*(a-n),b:200*(n-fo(o/ar))};return void 0!==t&&(i.alpha=t),i},vo=e=>{let r=bo(po(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},mo={mode:"lab",toMode:{xyz50:uo,rgb:ho},fromMode:{xyz50:bo,rgb:vo},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[function(e,r){if(!r||"lab"!==r[0])return;const o={mode:"lab"},[,t,a,n,i]=r;return t.type!==pe&&a.type!==pe&&n.type!==pe?(t.type!==he&&(o.l=Math.min(Math.max(0,t.value),100)),a.type!==he&&(o.a=a.type===ue?a.value:125*a.value/100),n.type!==he&&(o.b=n.type===ue?n.value:125*n.value/100),i.type!==he&&(o.alpha=Math.min(1,Math.max(0,i.type===ue?i.value:i.value/100))),o):void 0}],serialize:e=>`lab(${void 0!==e.l?e.l:"none"} ${void 0!==e.a?e.a:"none"} ${void 0!==e.b?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:_e,a:_e,b:_e,alpha:{use:_e,fixup:Ae}}},yo=mo,ko={...yo,mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:lr,rgb:cr},fromMode:{xyz65:ur,rgb:gr},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}},wo={mode:"lch",toMode:{lab:er,rgb:e=>ho(er(e))},fromMode:{rgb:e=>Xe(vo(e)),lab:Xe},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[function(e,r){if(!r||"lch"!==r[0])return;const o={mode:"lch"},[,t,a,n,i]=r;if(t.type!==he){if(t.type===pe)return;o.l=Math.min(Math.max(0,t.value),100)}if(a.type!==he&&(o.c=Math.max(0,a.type===ue?a.value:150*a.value/100)),n.type!==he){if(n.type===ge)return;o.h=n.value}return i.type!==he&&(o.alpha=Math.min(1,Math.max(0,i.type===ue?i.value:i.value/100))),o}],serialize:e=>`lch(${void 0!==e.l?e.l:"none"} ${void 0!==e.c?e.c:"none"} ${void 0!==e.h?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:_e,fixup:Ge},c:_e,l:_e,alpha:{use:_e,fixup:Ae}},difference:{h:Ke},average:{h:Je}},Po=wo,Mo={...Po,mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>er(e,"lab65"),rgb:e=>cr(er(e,"lab65"))},fromMode:{rgb:e=>Xe(gr(e),"lch65"),lab65:e=>Xe(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}},xo=Mo,So=({l:e,u:r,v:o,alpha:t})=>{void 0===r&&(r=0),void 0===o&&(o=0);let a=Math.sqrt(r*r+o*o),n={mode:"lchuv",l:e,c:a};return a&&(n.h=Le(180*Math.atan2(o,r)/Math.PI)),void 0!==t&&(n.alpha=t),n},_o=({l:e,c:r,h:o,alpha:t})=>{void 0===o&&(o=0);let a={mode:"luv",l:e,u:r?r*Math.cos(o/180*Math.PI):0,v:r?r*Math.sin(o/180*Math.PI):0};return void 0!==t&&(a.alpha=t),a},Co=(e,r,o)=>4*e/(e+15*r+3*o),Ao=(e,r,o)=>9*r/(e+15*r+3*o),Io=Co(tr,1,ar),To=Ao(tr,1,ar),Eo=({x:e,y:r,z:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a=(n=r/1)<=lo?so*n:116*Math.cbrt(n)-16;var n;let i=Co(e,r,o),s=Ao(e,r,o);isFinite(i)&&isFinite(s)?(i=13*a*(i-Io),s=13*a*(s-To)):a=i=s=0;let l={mode:"luv",l:a,u:i,v:s};return void 0!==t&&(l.alpha=t),l},Do=4*($o=tr)/($o+15+3*ar);var $o;const Fo=({l:e,u:r,v:o,alpha:t})=>{if(void 0===e&&(e=0),0===e)return{mode:"xyz50",x:0,y:0,z:0};void 0===r&&(r=0),void 0===o&&(o=0);let a=r/(13*e)+Do,n=o/(13*e)+.4880797507034157,i=1*(e<=8?e/so:Math.pow((e+16)/116,3)),s={mode:"xyz50",x:i*(9*a)/(4*n),y:i,z:i*(12-3*a-20*n)/(4*n)};return void 0!==t&&(s.alpha=t),s},Ro={mode:"lchuv",toMode:{luv:_o,rgb:e=>go(Fo(_o(e)))},fromMode:{rgb:e=>So(Eo(po(e))),luv:So},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:_e,fixup:Ge},c:_e,l:_e,alpha:{use:_e,fixup:Ae}},difference:{h:Ke},average:{h:Je}},Wo=Ro,zo={...Ie,mode:"lrgb",toMode:{rgb:Oe},fromMode:{rgb:Re},parse:["srgb-linear"],serialize:"srgb-linear"},Oo={mode:"luv",toMode:{xyz50:Fo,rgb:e=>go(Fo(e))},fromMode:{xyz50:Eo,rgb:e=>Eo(po(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:_e,u:_e,v:_e,alpha:{use:_e,fixup:Ae}}},Bo=Oo,jo=({r:e,g:r,b:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a=Math.cbrt(.412221469470763*e+.5363325372617348*r+.0514459932675022*o),n=Math.cbrt(.2119034958178252*e+.6806995506452344*r+.1073969535369406*o),i=Math.cbrt(.0883024591900564*e+.2817188391361215*r+.6299787016738222*o),s={mode:"oklab",l:.210454268309314*a+.7936177747023054*n-.0040720430116193*i,a:1.9779985324311684*a-2.42859224204858*n+.450593709617411*i,b:.0259040424655478*a+.7827717124575296*n-.8086757549230774*i};return void 0!==t&&(s.alpha=t),s},Lo=e=>{let r=jo(Re(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},Go=({l:e,a:r,b:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a=Math.pow(e+.3963377773761749*r+.2158037573099136*o,3),n=Math.pow(e-.1055613458156586*r-.0638541728258133*o,3),i=Math.pow(e-.0894841775298119*r-1.2914855480194092*o,3),s={mode:"lrgb",r:4.076741636075957*a-3.3077115392580616*n+.2309699031821044*i,g:-1.2684379732850317*a+2.6097573492876887*n-.3413193760026573*i,b:-.0041960761386756*a-.7034186179359362*n+1.7076146940746117*i};return void 0!==t&&(s.alpha=t),s},Uo=e=>Oe(Go(e));function No(e){const r=.206,o=1.206/1.03;return.5*(o*e-r+Math.sqrt((o*e-r)*(o*e-r)+.12*o*e))}function qo(e){return(e*e+.206*e)/(1.206/1.03*(e+.03))}function Ho(e,r){let o=function(e,r){let o,t,a,n,i,s,l,c;-1.88170328*e-.80936493*r>1?(o=1.19086277,t=1.76576728,a=.59662641,n=.75515197,i=.56771245,s=4.0767416621,l=-3.3077115913,c=.2309699292):1.81444104*e-1.19445276*r>1?(o=.73956515,t=-.45954404,a=.08285427,n=.1254107,i=.14503204,s=-1.2684380046,l=2.6097574011,c=-.3413193965):(o=1.35733652,t=-.00915799,a=-1.1513021,n=-.50559606,i=.00692167,s=-.0041960863,l=-.7034186147,c=1.707614701);let d=o+t*e+a*r+n*e*e+i*e*r,u=.3963377774*e+.2158037573*r,g=-.1055613458*e-.0638541728*r,h=-.0894841775*e-1.291485548*r;{let e=1+d*u,r=1+d*g,o=1+d*h,t=s*(e*e*e)+l*(r*r*r)+c*(o*o*o),a=s*(3*u*e*e)+l*(3*g*r*r)+c*(3*h*o*o);d-=t*a/(a*a-.5*t*(s*(6*u*u*e)+l*(6*g*g*r)+c*(6*h*h*o)))}return d}(e,r),t=Go({l:1,a:o*e,b:o*r}),a=Math.cbrt(1/Math.max(t.r,t.g,t.b));return[a,a*o]}function Vo(e,r,o=null){o||(o=Ho(e,r));let t=o[0],a=o[1];return[a/t,a/(1-t)]}function Yo(e,r,o){let t=Ho(r,o),a=function(e,r,o,t,a,n=null){let i;if(n||(n=Ho(e,r)),(o-a)*n[1]-(n[0]-a)*t<=0)i=n[1]*a/(t*n[0]+n[1]*(a-o));else{i=n[1]*(a-1)/(t*(n[0]-1)+n[1]*(a-o));{let n=o-a,s=.3963377774*e+.2158037573*r,l=-.1055613458*e-.0638541728*r,c=-.0894841775*e-1.291485548*r,d=n+t*s,u=n+t*l,g=n+t*c;{let e=a*(1-i)+i*o,r=i*t,n=e+r*s,h=e+r*l,p=e+r*c,f=n*n*n,b=h*h*h,v=p*p*p,m=3*d*n*n,y=3*u*h*h,k=3*g*p*p,w=6*d*d*n,P=6*u*u*h,M=6*g*g*p,x=4.0767416621*f-3.3077115913*b+.2309699292*v-1,S=4.0767416621*m-3.3077115913*y+.2309699292*k,_=S/(S*S-.5*x*(4.0767416621*w-3.3077115913*P+.2309699292*M)),C=-x*_,A=-1.2684380046*f+2.6097574011*b-.3413193965*v-1,I=-1.2684380046*m+2.6097574011*y-.3413193965*k,T=I/(I*I-.5*A*(-1.2684380046*w+2.6097574011*P-.3413193965*M)),E=-A*T,D=-.0041960863*f-.7034186147*b+1.707614701*v-1,$=-.0041960863*m-.7034186147*y+1.707614701*k,F=$/($*$-.5*D*(-.0041960863*w-.7034186147*P+1.707614701*M)),R=-D*F;C=_>=0?C:1e6,E=T>=0?E:1e6,R=F>=0?R:1e6,i+=Math.min(C,Math.min(E,R))}}}return i}(r,o,e,1,e,t),n=Vo(r,o,t),i=e*(.11516993+1/(7.4477897+4.1590124*o+r*(1.75198401*o-2.19557347+r*(-2.13704948-10.02301043*o+r*(5.38770819*o-4.24894561+4.69891013*r))))),s=(1-e)*(.11239642+1/(1.6132032-.68124379*o+r*(.40370612+.90148123*o+r*(.6122399*o-.27087943+r*(.00299215-.45399568*o-.14661872*r))))),l=a/Math.min(e*n[0],(1-e)*n[1])*.9*Math.sqrt(Math.sqrt(1/(1/(i*i*i*i)+1/(s*s*s*s))));return i=.4*e,s=.8*(1-e),[Math.sqrt(1/(1/(i*i)+1/(s*s))),l,a]}function Zo(e){const r=void 0!==e.l?e.l:0,o=void 0!==e.a?e.a:0,t=void 0!==e.b?e.b:0,a={mode:"okhsl",l:No(r)};void 0!==e.alpha&&(a.alpha=e.alpha);let n=Math.sqrt(o*o+t*t);if(!n)return a.s=0,a;let i,[s,l,c]=Yo(r,o/n,t/n);if(n<l){let e=0,r=.8*s;i=(n-e)/(r+(1-r/l)*(n-e))*.8}else{let e=.2*l*l*1.25*1.25/s;i=.8+(n-l)/(e+(1-e/(c-l))*(n-l))*.2}return i&&(a.s=i,a.h=Le(180*Math.atan2(t,o)/Math.PI)),a}function Ko(e){let r=void 0!==e.h?e.h:0,o=void 0!==e.s?e.s:0,t=void 0!==e.l?e.l:0;const a={mode:"oklab",l:qo(t)};if(void 0!==e.alpha&&(a.alpha=e.alpha),!o||1===t)return a.a=a.b=0,a;let n,i,s,l,c=Math.cos(r/180*Math.PI),d=Math.sin(r/180*Math.PI),[u,g,h]=Yo(a.l,c,d);o<.8?(n=1.25*o,i=0,s=.8*u,l=1-s/g):(n=5*(o-.8),i=g,s=.2*g*g*1.25*1.25/u,l=1-s/(h-g));let p=i+n*s/(1-l*n);return a.a=p*c,a.b=p*d,a}const Jo={...Ir,mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:Zo,rgb:e=>Zo(Lo(e))},toMode:{oklab:Ko,rgb:e=>Uo(Ko(e))}},Qo=Jo;function Xo(e){let r=void 0!==e.l?e.l:0,o=void 0!==e.a?e.a:0,t=void 0!==e.b?e.b:0,a=Math.sqrt(o*o+t*t),n=a?o/a:1,i=a?t/a:1,[s,l]=Vo(n,i),c=1-.5/s,d=l/(a+r*l),u=d*r,g=d*a,h=qo(u),p=g*h/u,f=Go({l:h,a:n*p,b:i*p}),b=Math.cbrt(1/Math.max(f.r,f.g,f.b,0));r/=b,a=a/b*No(r)/r,r=No(r);const v={mode:"okhsv",s:a?(.5+l)*g/(.5*l+l*c*g):0,v:r?r/u:0};return v.s&&(v.h=Le(180*Math.atan2(t,o)/Math.PI)),void 0!==e.alpha&&(v.alpha=e.alpha),v}function et(e){const r={mode:"oklab"};void 0!==e.alpha&&(r.alpha=e.alpha);const o=void 0!==e.h?e.h:0,t=void 0!==e.s?e.s:0,a=void 0!==e.v?e.v:0,n=Math.cos(o/180*Math.PI),i=Math.sin(o/180*Math.PI),[s,l]=Vo(n,i),c=.5,d=1-c/s,u=1-t*c/(c+l-l*d*t),g=t*l*c/(c+l-l*d*t),h=qo(u),p=g*h/u,f=Go({l:h,a:n*p,b:i*p}),b=Math.cbrt(1/Math.max(f.r,f.g,f.b,0)),v=qo(a*u),m=g*v/u;return r.l=v*b,r.a=m*n*b,r.b=m*i*b,r}const rt={...Dr,mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:Xo,rgb:e=>Xo(Lo(e))},toMode:{oklab:et,rgb:e=>Uo(et(e))}},ot=rt,tt={...yo,mode:"oklab",toMode:{lrgb:Go,rgb:Uo},fromMode:{lrgb:jo,rgb:Lo},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[function(e,r){if(!r||"oklab"!==r[0])return;const o={mode:"oklab"},[,t,a,n,i]=r;return t.type!==pe&&a.type!==pe&&n.type!==pe?(t.type!==he&&(o.l=Math.min(Math.max(0,t.type===ue?t.value:t.value/100),1)),a.type!==he&&(o.a=a.type===ue?a.value:.4*a.value/100),n.type!==he&&(o.b=n.type===ue?n.value:.4*n.value/100),i.type!==he&&(o.alpha=Math.min(1,Math.max(0,i.type===ue?i.value:i.value/100))),o):void 0}],serialize:e=>`oklab(${void 0!==e.l?e.l:"none"} ${void 0!==e.a?e.a:"none"} ${void 0!==e.b?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`},at=tt,nt={...Po,mode:"oklch",toMode:{oklab:e=>er(e,"oklab"),rgb:e=>Uo(er(e,"oklab"))},fromMode:{rgb:e=>Xe(Lo(e),"oklch"),oklab:e=>Xe(e,"oklch")},parse:[function(e,r){if(!r||"oklch"!==r[0])return;const o={mode:"oklch"},[,t,a,n,i]=r;if(t.type!==he){if(t.type===pe)return;o.l=Math.min(Math.max(0,t.type===ue?t.value:t.value/100),1)}if(a.type!==he&&(o.c=Math.max(0,a.type===ue?a.value:.4*a.value/100)),n.type!==he){if(n.type===ge)return;o.h=n.value}return i.type!==he&&(o.alpha=Math.min(1,Math.max(0,i.type===ue?i.value:i.value/100))),o}],serialize:e=>`oklch(${void 0!==e.l?e.l:"none"} ${void 0!==e.c?e.c:"none"} ${void 0!==e.h?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}},it=nt,st=e=>{let{r,g:o,b:t,alpha:a}=Re(e),n={mode:"xyz65",x:.486570948648216*r+.265667693169093*o+.1982172852343625*t,y:.2289745640697487*r+.6917385218365062*o+.079286914093745*t,z:0*r+.0451133818589026*o+1.043944368900976*t};return void 0!==a&&(n.alpha=a),n},lt=({x:e,y:r,z:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a=Oe({r:2.4934969119414263*e-.9313836179191242*r-.402710784450717*o,g:-.8294889695615749*e+1.7626640603183465*r+.0236246858419436*o,b:.0358458302437845*e-.0761723892680418*r+.9568845240076871*o},"p3");return void 0!==t&&(a.alpha=t),a},ct={...Ie,mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>lt(We(e)),xyz65:lt},toMode:{rgb:e=>Be(st(e)),xyz65:st}},dt=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},ut=({x:e,y:r,z:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a={mode:"prophoto",r:dt(1.3457868816471585*e-.2555720873797946*r-.0511018649755453*o),g:dt(-.5446307051249019*e+1.5082477428451466*r+.0205274474364214*o),b:dt(0*e+0*r+1.2119675456389452*o)};return void 0!==t&&(a.alpha=t),a},gt=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},ht=e=>{let r=gt(e.r),o=gt(e.g),t=gt(e.b),a={mode:"xyz50",x:.7977666449006423*r+.1351812974005331*o+.0313477341283922*t,y:.2880748288194013*r+.7118352342418731*o+899369387256e-16*t,z:0*r+0*o+.8251046025104602*t};return void 0!==e.alpha&&(a.alpha=e.alpha),a},pt={...Ie,mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:ut,rgb:e=>ut(po(e))},toMode:{xyz50:ht,rgb:e=>go(ht(e))}},ft=1.09929682680944,bt=e=>{const r=Math.abs(e);return r>.018053968510807?(Math.sign(e)||1)*(ft*Math.pow(r,.45)-(ft-1)):4.5*e},vt=({x:e,y:r,z:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);let a={mode:"rec2020",r:bt(1.7166511879712683*e-.3556707837763925*r-.2533662813736599*o),g:bt(-.6666843518324893*e+1.6164812366349395*r+.0157685458139111*o),b:bt(.0176398574453108*e-.0427706132578085*r+.9421031212354739*o)};return void 0!==t&&(a.alpha=t),a},mt=1.09929682680944,yt=(e=0)=>{let r=Math.abs(e);return r<.08124285829863151?e/4.5:(Math.sign(e)||1)*Math.pow((r+mt-1)/mt,1/.45)},kt=e=>{let r=yt(e.r),o=yt(e.g),t=yt(e.b),a={mode:"xyz65",x:.6369580483012911*r+.1446169035862083*o+.1688809751641721*t,y:.262700212011267*r+.6779980715188708*o+.059301716469862*t,z:0*r+.0280726930490874*o+1.0609850577107909*t};return void 0!==e.alpha&&(a.alpha=e.alpha),a},wt={...Ie,mode:"rec2020",fromMode:{xyz65:vt,rgb:e=>vt(We(e))},toMode:{xyz65:kt,rgb:e=>Be(kt(e))},parse:["rec2020"],serialize:"rec2020"},Pt=.0037930732552754493,Mt=Math.cbrt(Pt),xt=e=>Math.cbrt(e)-Mt,St=e=>Math.pow(e+Mt,3),_t={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:({x:e,y:r,b:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);const a=St(e+r)-Pt,n=St(r-e)-Pt,i=St(o+r)-Pt,s=Oe({r:11.031566904639861*a-9.866943908131562*n-.16462299650829934*i,g:-3.2541473810744237*a+4.418770377582723*n-.16462299650829934*i,b:-3.6588512867136815*a+2.7129230459360922*n+1.9459282407775895*i});return void 0!==t&&(s.alpha=t),s}},fromMode:{rgb:e=>{const{r,g:o,b:t,alpha:a}=Re(e),n=xt(.3*r+.622*o+.078*t+Pt),i=xt(.23*r+.692*o+.078*t+Pt),s={mode:"xyb",x:(n-i)/2,y:(n+i)/2,b:xt(.2434226892454782*r+.2047674442449682*o+.5518098665095535*t+Pt)-(n+i)/2};return void 0!==a&&(s.alpha=a),s}},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:_e,y:_e,b:_e,alpha:{use:_e,fixup:Ae}}},Ct={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:go,lab:bo},fromMode:{rgb:po,lab:uo},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:_e,y:_e,z:_e,alpha:{use:_e,fixup:Ae}}},At={mode:"xyz65",toMode:{rgb:Be,xyz50:e=>{let{x:r,y:o,z:t,alpha:a}=e;void 0===r&&(r=0),void 0===o&&(o=0),void 0===t&&(t=0);let n={mode:"xyz50",x:1.0479298208405488*r+.0229467933410191*o-.0501922295431356*t,y:.0296278156881593*r+.990434484573249*o-.0170738250293851*t,z:-.0092430581525912*r+.0150551448965779*o+.7518742899580008*t};return void 0!==a&&(n.alpha=a),n}},fromMode:{rgb:We,xyz50:e=>{let{x:r,y:o,z:t,alpha:a}=e;void 0===r&&(r=0),void 0===o&&(o=0),void 0===t&&(t=0);let n={mode:"xyz65",x:.9554734527042182*r-.0230985368742614*o+.0632593086610217*t,y:-.0283697069632081*r+1.0099954580058226*o+.021041398966943*t,z:.0123140016883199*r-.0205076964334779*o+1.3303659366080753*t};return void 0!==a&&(n.alpha=a),n}},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:_e,y:_e,z:_e,alpha:{use:_e,fixup:Ae}}},It={mode:"yiq",toMode:{rgb:({y:e,i:r,q:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);const a={mode:"rgb",r:e+.95608445*r+.6208885*o,g:e-.27137664*r-.6486059*o,b:e-1.10561724*r+1.70250126*o};return void 0!==t&&(a.alpha=t),a}},fromMode:{rgb:({r:e,g:r,b:o,alpha:t})=>{void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0);const a={mode:"yiq",y:.29889531*e+.58662247*r+.11448223*o,i:.59597799*e-.2741761*r-.32180189*o,q:.21147017*e-.52261711*r+.31114694*o};return void 0!==t&&(a.alpha=t),a}},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:_e,i:_e,q:_e,alpha:{use:_e,fixup:Ae}}};let Tt=((e=4)=>r=>"number"==typeof r?((e,r)=>Math.round(e*(r=Math.pow(10,r)))/r)(r,e):r)(2);const Et=e=>Math.max(0,Math.min(1,e||0)),Dt=e=>Math.round(255*Et(e)),$t=Q("rgb");Q("hsl"),ae(je),ae(Qe),ae(Pr),ae(xr),ae(_r),ae(Ir),ae(Dr),ae(Fr),ae(Hr),ae(oo),ae(io),ae(yo),ae(ko),ae(Po),ae(xo),ae(Wo),ae(zo),ae(Bo),ae(Qo),ae(ot),ae(at),ae(it),ae(ct),ae(pt),ae(wt),ae(Ie),ae(_t),ae(Ct),ae(At),ae(It),Q("rgb");Q("rgb");const Ft=new class{constructor(e){this.providerStorage=e,this.setWorkspaceStorageProxy=e=>{this.workspaceStorage=e},this.setRecreateFactory=e=>{this.recreateFactory=e},this.destroyWorkspaceStorageProxy=async()=>{const e=this.workspaceStorage;this.workspaceStorage=void 0,e&&await e.destroy()},this.ensureWorkspaceStorageProxy=async()=>{this.workspaceStorage||this.recreateFactory&&($.debug("ensureWorkspaceStorageProxy","Attempting to recreate storage proxy"),await Promise.race([this.recreateFactory().then(e=>this.workspaceStorage=e),new Promise(e=>setTimeout(e,3e3))]),this.workspaceStorage||$.warn("ensureWorkspaceStorageProxy","Failed to recreate storage proxy after 3 seconds, this might result in default schemes not being honored"))},this.trySynchronizeWorkspaceStorage=async()=>{if(this.workspaceStorage){let e;try{e=this.getScheme(),this.hasUserPreference()?this.workspaceStorage.setItem(b.SelectedColorScheme,e):e&&this.workspaceStorage.setItem(b.ThemePaletteDefaultScheme,e),this.generatedPalettes&&(this.themePaletteSheet||(this.themePaletteSheet=p(this.generatedPalettes)),this.workspaceStorage.setItem(b.ThemePaletteSheet,this.themePaletteSheet))}catch(e){return void $.warn("trySynchronizeWorkspaceStorage",`Failed to get scheme: ${e} -> skipping fin.System.setThemePreferences() call.`)}const r=(e=>{const r="dark"===e;return{inForcedColorsMode:!1,prefersReducedTransparency:!1,shouldUseDarkColors:r,shouldUseDarkColorsForSystemIntegratedUI:r,shouldUseHighContrastColors:!1,shouldUseInvertedColorScheme:!1,themeSource:e}})(e);try{await fin.System.setThemePreferences(r)}catch(e){$.warn("trySynchronizeWorkspaceStorage",`Failed to set native theme preferences: ${e}`)}}},this.setLegacyPalettes=async({light:e,dark:r},o)=>{this.lightPaletteVars=F({...e,...W(e,"light",o)}),this.darkPaletteVars=F({...r,...W(r,"dark",o)})},this.setPalettes=async({light:e,dark:r})=>{this.lightPaletteVars=e,this.darkPaletteVars=r}}hasUserPreference(){return null!==this.providerStorage.getItem(b.SelectedColorScheme)}setScheme(e){this.providerStorage.setItem(b.SelectedColorScheme,e)}setThemeDefaultScheme(e){const r=Object.values(P);r.includes(e)?this.providerStorage.setItem(b.ThemePaletteDefaultScheme,e):$.warn("setThemeDefaultScheme",`Invalid theme default scheme '${e}'. Must be one of: ${r.join(", ")}. Ignoring default.`)}setGeneratedPalettes(e){this.generatedPalettes=e}setThemePaletteSheet(e){this.themePaletteSheet=e,this.providerStorage.setItem(b.ThemePaletteSheet,e)}getScheme(){const e=this.providerStorage.getItem(b.SelectedColorScheme),r=this.providerStorage.getItem(b.ThemePaletteDefaultScheme);return null!==e?e:r??D}getThemePaletteSheet(){return this.themePaletteSheet}getThemePalette(){return{light:this.lightPaletteVars,dark:this.darkPaletteVars}}}(t),Rt=()=>(a.Rm.debug("ThemeStorage: getThemeStorageController called"),Ft)},180:(e,r,o)=>{"use strict";o.d(r,{tT:()=>a});o(70),o(326),o(78);var t=o(695);o(79);const a=async e=>{const r=await(0,t.p4)();await r.dispatch("initialize-theme",e)}},248:(e,r,o)=>{"use strict";o.d(r,{H:()=>n});var t=o(438),a=o(786);const n=(e,r)=>{a.A.markStart(`${e}-registration`),(0,t.BY)().once("started",()=>a.A.markAndMeasure("workspace-app-started",`${e}-registration`));const o=fin.Window.wrapSync(r);o.once("initialized",()=>a.A.markAndMeasure(`${e}-window-initialized`,`${e}-registration`)),o.once("shown",()=>{a.A.markAndMeasure(`${e}-show`,`${e}-registration`)})}},834:(e,r,o)=>{"use strict";o.r(r),o.d(r,{CLIAction:()=>_.PK,CLIFilterOptionType:()=>_.oo,CLITemplate:()=>_.fC,deregister:()=>I,hide:()=>E,register:()=>A,show:()=>T});var t=o(723),a=o(786),n=o(277),i=o(70);const s="0",l="2",c="3",d="5",u="6";var g=o(695),h=o(79),p=o(575);var f=o(905);const b=()=>{};function v(e){const r={};let o=[];let t=[];let a=null;let n=f.Zo.Initial;r.getStatus=()=>n,r.getResultBuffer=()=>o,r.setResultBuffer=e=>{o=e,o?.length&&r.onChange()},r.getRevokedBuffer=()=>t,r.setRevokedBuffer=e=>{t=e,t?.length&&r.onChange()},r.setUpdatedContext=e=>{a=e,null!==a&&r.onChange()},r.getUpdatedContext=()=>a,r.onChange=b;const i={};return r.res=i,i.close=()=>{n!==f.Zo.Close&&(n=f.Zo.Close,r.onChange())},i.open=()=>{n!==f.Zo.Open&&(n=f.Zo.Open,r.onChange())},i.respond=o=>{const t=function(e=[],r=[],o="ascending"){const t=[],a=new Map;r.forEach(e=>{if(e.key)return a.set(e.key,e);t.push(e)});let n=e.map(e=>{if(e.key){const r=a.get(e.key);if(r)return a.delete(e.key),r}return e});return n.push(...a.values(),...t),n="ascending"===o?n.sort((e,r)=>(e?.score??1/0)-(r?.score??1/0)):n.sort((e,r)=>(r?.score??1/0)-(e?.score??1/0)),n}(r.getResultBuffer(),o,e);r.setResultBuffer(t)},i.revoke=(...e)=>{const o=new Set(e),t=r.getResultBuffer().filter(({key:e})=>{const r=o.has(e);return r&&o.delete(e),!r});r.setResultBuffer(t),o.size&&(r.getRevokedBuffer().forEach(e=>o.add(e)),r.setRevokedBuffer([...o]))},i.updateContext=e=>{r.setUpdatedContext(e)},r}const m=new Map;async function y(e){const{id:r,providerId:o}=e,t=M.getProviderOrFail(o);let a=m.get(r);a||(a=function(e,r){const o=new Set;let t=!1;return{close:()=>{t=!0;for(const e of o)e()},req:{id:e,...r,context:r?.context||{},onClose:e=>{o.add(e),t&&e()},removeListener:e=>{o.delete(e)}}}}(r,e),m.set(r,a));const n=v(),i=()=>{const e=n.getResultBuffer();n.setResultBuffer([]);const t=n.getRevokedBuffer();n.setRevokedBuffer([]);const a=n.getUpdatedContext();n.setUpdatedContext(null);const i=n.getStatus();!async function(e){(await(0,g.gj)()).dispatch(s,e)}({id:r,providerId:o,results:e,revoked:t,status:i,context:a})};let l=!0,c=!1;n.onChange=()=>{if(l)return l=!1,void i();c||(c=!0,setTimeout(()=>{c=!1,i()},100))};try{const{results:e,context:i}=await t.onUserInput(a.req,n.res),s=n.getStatus();return{id:r,providerId:o,status:s,results:e,context:i}}catch(e){return console.error(`OpenFin/Workspace/Home. Uncaught exception in search provider ${o} for search ${r}`,"This is likely a bug in the implementation of the search provider.",e),{id:r,providerId:o,error:e?.message}}}async function k(){for(const{req:e,close:r}of m.values())r(),m.delete(e.id)}async function w(e,r){const o=M.getProviderOrFail(e.providerId);return e.result.dispatcherIdentity=r,o.onResultDispatch?.(e.result)}function P(e){const r=m.get(e.id);r?.close(),m.delete(e.id)}const M=new p.xM("home"),x=async e=>{await(0,g.YD)();!("skipPlatformInitCheck"in e&&!0===e.skipPlatformInitCheck)&&await(0,h.KZ)(fin.me.identity);M.assertNotAlreadyRegistered(e.id),M.setProvider(e);const r=await(0,g.gj)();return function(e){e.homeChannelActionsRegistered||(e.homeChannelActionsRegistered=!0,e.register(s,y),e.register(u,P),e.register(d,w),e.addDisconnectionListener(k))}(r),r.dispatch(l,{id:e.id,title:e.title,icon:e.icon,clientAPIVersion:t.et,identity:fin.me.identity,scoreOrder:e.scoreOrder,commandCode:e.commandCode,description:e.description,hidden:e.hidden,listTitle:e.listTitle,inputPlaceholder:e.inputPlaceholder,inputLandingPlaceholder:e.inputLandingPlaceholder,logoUrl:e.logoUrl,dispatchFocusEvents:e.dispatchFocusEvents,subHeader:e.subHeader})};var S=o(248),_=o(872);let C;const A=async e=>{if(!e.icon)throw new Error(`${e.id} provider needs to have icon property defined.`);(0,S.H)("home",i.F2);const r=await x(e);return C=new Promise((o,i)=>{try{(0,n.GR)({allowed:!0,componentVersion:r?.workspaceVersion}),t.et,o({...r,clientAPIVersion:t.et,setSearchQuery:async(r,o)=>(await(0,g.YD)()).dispatch("set-search-query",{query:r,providerID:e.id,options:o})})}catch(e){(0,n.GR)({allowed:!1,rejectionCode:e instanceof Error?e.message:"unknown"}),i(e)}finally{a.A.markEndAndMeasure("home-registration")}}),C},I=async e=>{M.deleteProvider(e);const r=await(0,g.gj)();await r.dispatch(c,e)};async function T(){a.A.markStart("home-show"),await C;const e=await(0,g.YD)();await e.dispatch("show-home",void 0)}async function E(){await C;const e=await(0,g.YD)();await e.dispatch("hide-home",void 0)}},575:(e,r,o)=>{"use strict";o.d(r,{xM:()=>s});const t=require("title-case");class a extends Error{constructor(e,r){const o=(0,t.titleCase)(e);super(`${o} Provider. ${o} Provider${r?` with id ${r}`:""} is not currently registered.`)}}class n extends Error{constructor(e,r){const o=(0,t.titleCase)(e);super(`${o} Provider. ${o} Provider${r?` with id ${r}`:""} is already registered. Call \`deregister\` before registering again.`)}}class i extends Error{constructor(e,r){const o=(0,t.titleCase)(e);super(`Failed to get ${o} Provider. ${o} Provider with id ${r} is not currently registered.`)}}class s{constructor(e){this.providersMap=new Map,this.providerType=e}assertNotAlreadyRegistered(e){if(this.hasProvider(e))throw new n(this.providerType,e)}assertRegistered(e){if(!this.hasProvider(e))throw new a(this.providerType,e)}getProvider(e){return this.providersMap.get(e)}hasProvider(e){return this.providersMap.has(e)}setProvider(e){this.providersMap.set(e.id,e)}deleteProvider(e){this.providersMap.delete(e)}getProviderOrFail(e){const r=this.getProvider(e);if(!r)throw new i(this.providerType,e);return r}clearProviders(){this.providersMap.clear()}}},872:(e,r,o)=>{"use strict";var t,a,n;o.d(r,{PK:()=>t,fC:()=>a,oo:()=>n}),function(e){e.Suggestion="suggestion"}(t||(t={})),function(e){e.Contact="Contact",e.Custom="Custom",e.List="List",e.Plain="Plain",e.SimpleText="SimpleText",e.Loading="Loading",e.Error="Error"}(a||(a={})),function(e){e.MultiSelect="MultiSelect"}(n||(n={}))},710:(e,r,o)=>{"use strict";var t,a;o.d(r,{v:()=>t,z:()=>a}),function(e){e.Snapshot="snapshot",e.Manifest="manifest",e.View="view",e.External="external"}(t||(t={})),function(e){e.LandingPage="landingPage",e.AppGrid="appGrid"}(a||(a={}))},598:(e,r,o)=>{"use strict";o.r(r),o.d(r,{AppManifestType:()=>n.v,StorefrontTemplate:()=>n.z,deregister:()=>m,hide:()=>y,register:()=>v,show:()=>k});var t=o(277),a=o(695),n=o(710),i=o(723),s=o(786),l=o(70),c=o(79),d=o(575);let u=!1;async function g(e,r,o){const t=await(0,a.p4)();try{return await t.dispatch(e.action,e.payload)}catch(a){if(a instanceof Error&&-1!==a.toString().indexOf(e.action))return u||console.warn("You are using a newer version of the Workspace client library that is not supported by the currently running workspace provider. Please upgrade the Workspace to version 9.0 or later."),u=!0,await t.dispatch(r.action,r.payload),o;throw a}}const h=new d.xM("storefront"),p=async e=>{await(0,c.KZ)(fin.me.identity);const r=await(0,a.YD)();return h.assertNotAlreadyRegistered(e.id),h.setProvider(e),(e=>{e.storefrontChannelActionsRegistered||(e.storefrontChannelActionsRegistered=!0,e.register("get-storefront-provider-apps",e=>h.getProviderOrFail(e).getApps()),e.register("get-storefront-provider-footer",e=>h.getProviderOrFail(e).getFooter()),e.register("get-storefront-provider-landing-page",e=>h.getProviderOrFail(e).getLandingPage()),e.register("get-storefront-provider-navigation",e=>h.getProviderOrFail(e).getNavigation()),e.register("launch-storefront-provider-app",({id:e,app:r})=>h.getProviderOrFail(e).launchApp(r)))})(r),e.clientAPIVersion=i.et,g({action:"register-provider",payload:{providerType:"storefront",info:e}},{action:"register-storefront-provider",payload:e},{workspaceVersion:"unknown"})};var f=o(248);let b;const v=async e=>{(0,f.H)("store",l.gQ);const r=await p(e);return b=new Promise((o,n)=>{try{(0,t.xt)({allowed:!0,componentVersion:r?.workspaceVersion}),i.et,o({clientAPIVersion:i.et,workspaceVersion:r?.workspaceVersion??"",updateAppCardButtons:async r=>{const o=await(0,a.mQ)();await o.dispatch("update-app-card-button-config",{...r,id:e.id,title:e.title,icon:e.icon,platformIdentity:fin.me.identity})}})}catch(e){(0,t.xt)({allowed:!1,rejectionCode:e instanceof Error?e.message:"unknown"}),n(e)}finally{s.A.markEndAndMeasure("store-registration")}}),b},m=async e=>(await b,h.assertRegistered(e),h.deleteProvider(e),await(0,a.nA)(),g({action:"deregister-provider",payload:{providerType:"storefront",id:e}},{action:"deregister-storefront-provider",payload:e})),y=async()=>(await b,await(0,a.nA)(),g({action:"hide-provider-window",payload:{providerType:"storefront"}},{action:"hide-storefront"})),k=async()=>(s.A.markStart("store-show"),await b,await(0,a.nA)(),g({action:"show-provider-window",payload:{providerType:"storefront"}},{action:"show-storefront"}))},326:(e,r,o)=>{"use strict";o(102),o(70);new Map;var t,a,n,i,s,l;!function(e){e.CloseBrowserWindow="close-browser-window",e.QuitPlatform="quit-platform",e.ClosePage="close-page",e.AddToChannel="add-to-channel",e.RemoveFromChannel="remove-from-channel",e.OpenSaveModalInternal="open-save-modal-internal",e.DuplicatePage="duplicate-page",e.SetSelectedScheme="set-selected-scheme",e.ShowBrowserIndicator="show-browser-indicator",e.SetSelectedLanguage="set-selected-language",e.RefreshBookmarksInternal="refresh-bookmarks",e.GetLayoutsWithSelectedViewsInternal="get-layouts-with-selected-views",e.FocusAndExpandSearchInternal="focus-and-expand-search"}(t||(t={})),function(e){e.GetPages="get-pages",e.GetActivePageForWindow="get-active-page-for-window",e.AttachPagesToWindow="attach-pages-to-window",e.DetachPagesFromWindow="detach-pages-from-window",e.SetActivePageForWindow="set-active-page-for-window",e.RenamePage="rename-page",e.ReorderPagesForWindow="reorder-pages-for-window",e.UpdatePageForWindow="update-page-for-window",e.UpdatePagesWindowOptions="update-pages-window-options",e.IsDetachingPages="is-detaching-pages",e.IsActivePageChanging="is-active-page-changing"}(a||(a={})),function(e){e.GetApps="get-apps",e.GetCuratedContent="get-curated-content",e.GetRecentlyVisited="get-recently-visited",e.GetSearchProviders="get-search-providers"}(n||(n={})),function(e){e.CreateBookmarkNode="create-bookmark-node",e.GetBookmarkNode="get-bookmark-node",e.SearchBookmarkNodes="search-bookmark-nodes",e.UpdateBookmarkNode="update-bookmark-node",e.DeleteBookmarkNode="delete-bookmark-node"}(i||(i={})),function(e){e.UpdateFavoriteEntries="update-favorite-entries",e.UpdateContentMenu="update-content-menu",e.NavigateContentMenu="navigate-content-menu",e.MoreMenuCustomOptionClicked="more-menu-custom-option-clicked",e.RefreshDockCollectionMenu="refresh-dock-collection-menu"}(s||(s={})),function(e){e.SendUpdateVersionModalResponse="send-update-version-modal-response",e.SendIntentResolverModalResponse="send-intent-resolver-modal-response"}(l||(l={}))},78:(e,r,o)=>{"use strict";o(438),o(102),o(70);var t;!function(e){e.UpdatePlatformThemeScheme="update-platform-theme-scheme"}(t||(t={}))},79:(e,r,o)=>{"use strict";var t;o.d(r,{KZ:()=>n}),function(e){e.LaunchApp="launchApp",e.SavePage="savePage",e.GetSavedPage="getSavedPage",e.CreateSavedPage="createSavedPage",e.UpdateSavedPage="updateSavedPage",e.DeleteSavedPage="deleteSavedPage",e.GetSavedPages="getSavedPages",e.CreateSavedPageInternal="createSavedPageInternal",e.UpdateSavedPageInternal="updateSavedPageInternal",e.DeleteSavedPageInternal="deleteSavedPageInternal",e.UpdatePageForWindow="updatePageForWindow",e.AttachPagesToWindow="attachPagesToWindow",e.DetachPagesFromWindow="detachPagesFromWindow",e.ReorderPagesForWindow="reorderPagesForWindow",e.SetActivePage="setActivePage",e.AddPage="addPage",e.AddDefaultPage="addDefaultPage",e.GetAllAttachedPages="getAllAttachedPages",e.GetActivePageIdForWindow="getActivePageIdForWindow",e.GetPagesForWindow="getPagesForWindow",e.GetPageForWindow="getPageForWindow",e.GetSavedPageMetadata="getSavedPageMetadata",e.GetUniquePageTitle="getUniquePageTitle",e.GetLastFocusedBrowserWindow="getLastFocusedBrowserWindow",e.GetPageByViewIdentity="getPageByViewIdentity",e.GetThemes="getThemes",e.GetGeneratedPalettes="getGeneratedPalettes",e.GetThemePaletteSheet="getThemePaletteSheet",e.GetSelectedScheme="getSelectedScheme",e.SetSelectedScheme="setSelectedScheme",e.OpenGlobalContextMenuInternal="openGlobalContextMenuInternal",e.OpenViewTabContextMenuInternal="openViewTabContextMenuInternal",e.OpenPageTabContextMenuInternal="openPageTabContextMenuInternal",e.OpenSaveButtonContextMenuInternal="openSaveButtonContextMenuInternal",e.InvokeCustomActionInternal="invokeCustomActionInternal",e.RequestQuitPlatformDialogInternal="requestQuitPlatformDialogInternal",e.GetSavedWorkspace="getSavedWorkspace",e.CreateSavedWorkspace="createSavedWorkspace",e.UpdateSavedWorkspace="updateSavedWorkspace",e.DeleteSavedWorkspace="deleteSavedWorkspace",e.GetSavedWorkspaces="getSavedWorkspaces",e.GetSavedWorkspacesMetadata="getSavedWorkspacesMetadata",e.SaveWorkspace="saveWorkspace",e.GetCurrentWorkspace="getCurrentWorkspace",e.ApplyWorkspace="applyWorkspace",e.RestoreLastSavedWorkspaceInternal="restoreLastSavedWorkspaceInternal",e.SetActiveWorkspace="setActiveWorkspace",e.IsBrowserInitialized="isBrowserInitialized",e.Analytics="analyticsInternal",e.GetLanguage="getLanguage",e.GetLanguageResourcesInternal="getLanguageResourcesInternal",e.SetLanguage="setLanguage",e.GetDockProviderConfig="getDockProviderConfig",e.SaveDockProviderConfig="saveDockProviderConfig",e.HandleSaveModalOnPageClose="handleSaveModalOnPageClose",e.ShouldPageClose="shouldPageClose",e.ShouldWindowClose="shouldWindowClose",e.CopyPage="copyPage",e.HandlePageChanges="handlePageChanges",e.MarkUnsavedPagesAsSavedInternal="markUnsavedPagesAsSavedInternal",e.TrackRemovedTabInternal="trackRemovedTabInternal",e.RestoreRemovedTabInternal="restoreRemovedTabInternal",e.TrackVisitedSiteInternal="trackVisitedSiteInternal",e.GetRecentlyVisitedSitesInternal="getRecentlyVisitedSitesInternal",e.GetFrequentlyVisitedSitesInternal="getFrequentlyVisitedSitesInternal",e.SearchSitesInternal="searchSitesInternal",e.GetSearchProvidersInternal="getSearchProvidersInternal",e.GetCuratedContentInternal="getCuratedContentInternal",e.HandleRequestNavigationInternal="handleRequestNavigationInternal",e.RefreshBookmarksInternal="refreshBookmarksInternal",e.LaunchBookmarkInternal="launchBookmarkInternal",e.GetNotificationsConfig="getNotificationsConfig",e.UpdateDockFavoritesInternal="updateDockFavoritesInternal",e.UpdateContentMenuInternal="updateContentMenuInternal",e.LaunchDockEntryInternal="launchDockEntryInternal",e.SetDockFavoritesOrderInternal="setDockFavoritesOrderInternal",e.NavigateContentMenuInternal="navigateContentMenuInternal",e.SetDefaultDockButtonsOrderInternal="setDefaultDockButtonsOrderInternal",e.GetDockWorkspacesContextMenuInternal="getDockWorkspacesContextMenuInternal",e.HandleDockWorkspacesMenuResponseInternal="handleDockWorkspacesMenuResponseInternal",e.RefreshDockCollectionMenuInternal="refreshDockCollectionMenuInternal",e.LaunchCollectionInternal="launchCollectionInternal",e.RemoveDockFavoriteInternal="removeDockFavoriteInternal",e.AddDockFavoriteInternal="addDockFavoriteInternal",e.FocusAndExpandSearchInternal="focusAndExpandSearchInternal",e.SendUpdateVersionModalResponseInternal="sendUpdateVersionModalResponseInternal",e.ShowUpdateVersionModalInternal="showUpdateVersionModalInternal",e.ShowApplyAndPublishModalInternal="showApplyAndPublishModalInternal",e.GetNotificationIndicatorColorsInternal="getNotificationIndicatorColorsInternal"}(t||(t={}));const a=async e=>fin.Platform.wrapSync(e).getClient(),n=async e=>{const r=await a(e),o="Target is not a Workspace Platform. Target must call WorkspacePlatform.init";let t;try{t=await r.dispatch("isWorkspacePlatform")}catch(e){throw new Error(o)}if("boolean"==typeof t&&t)return console.warn("You are using an older version of the workspace platform. Please update your workspace platform."),t;if("object"==typeof t&&t.isWorkspacePlatform)return t;throw new Error(o)}},695:(e,r,o)=>{"use strict";o.d(r,{YD:()=>b,gj:()=>g,mQ:()=>f,nA:()=>p,p4:()=>d});var t=o(102),a=o(723),n=o(70),i=o(905),s=o(211),l=o(180);const c=(0,t.A)("__of_workspace_protocol__"),d=c,u=c,g=(0,t.A)(i.BT),h=e=>{const r=new URL(e);return r.searchParams.append("isLaunchedViaLib","true"),r.toString()},p=async()=>{if(!await(0,n.C)(n.xt)){if(a.jw||-1===navigator.userAgent.indexOf("Win"))return void await fin.Application.startFromManifest(h(a.m7));await fin.System.openUrlWithBrowser(h(a.t8))}},f=async()=>(await p(),d()),b=async()=>{const e=(0,s.v)(),r=e.getThemePaletteSheet(),o=e.getScheme(),t=e.getThemePalette();return await p(),await(0,l.tT)({themePaletteSheet:r,selectedScheme:o,themePalette:t}),u()}},905:(e,r,o)=>{"use strict";o.d(r,{BT:()=>t,Zo:()=>n});const t="__search-openfin-browser-home-topic__";var a,n;!function(e){e.Fetching="fetching",e.Fetched="fetched",e.Complete="complete"}(a||(a={})),function(e){e[e.Initial=0]="Initial",e[e.Open=1]="Open",e[e.Close=2]="Close"}(n||(n={}))},438:(e,r,o)=>{"use strict";o.d(r,{BY:()=>l,MW:()=>t});var t,a,n=o(723);!function(e){e.Workspace="openfin-workspace",e.OldWorkspace="openfin-browser"}(t||(t={})),function(e){e.FinProtocol="fin-protocol"}(a||(a={}));n.$h;const i={uuid:t.Workspace},s=e=>{if(!n.cI)throw new Error("getApplication cannot be used in a non OpenFin env. Avoid using this during pre-rendering.");return fin.Application.wrapSync(e)},l=()=>s(i)},102:(e,r,o)=>{"use strict";o.d(r,{A:()=>n});var t=o(723);const a=t.YY&&"complete"!==document.readyState&&new Promise(e=>document.addEventListener("readystatechange",()=>{"complete"===document.readyState&&e()}));function n(e){let r;const o=new Set;return()=>{if(!t.cI)throw new Error("getChannelClient cannot be used outside an OpenFin env. Avoid using this method during pre-rendering.");return r||(r=(async()=>{await a;const n={clientAPIVersion:t.et},i=await fin.InterApplicationBus.Channel.connect(e,{payload:n});return i.onDisconnection(async()=>{o.forEach(e=>e()),o.clear(),console.warn(`disconnected from channel provider ${e}`),r=void 0}),i})().then(e=>(e.addDisconnectionListener=e=>{o.add(e)},e)).catch(o=>{throw r=void 0,new Error(`failed to connect to channel provider ${e}: ${o}`)})),r}}},723:(e,r,o)=>{"use strict";var t;o.d(r,{$h:()=>s,YY:()=>n,cI:()=>a,et:()=>h,jw:()=>c,m7:()=>u,t8:()=>d,vL:()=>l}),function(e){e.Local="local",e.Dev="dev",e.Staging="staging",e.Prod="prod"}(t||(t={}));const a="undefined"!=typeof window&&"undefined"!=typeof fin,n=("undefined"==typeof process||process.env,"undefined"!=typeof window),i=n?window.origin:t.Local,s=a&&fin.me.uuid,l=a&&fin.me.name,c=(a&&fin.me.entityType,"prod"===t.Local),d=(t.Dev,t.Staging,t.Prod,"fins://system-apps/workspace"),u="https://workspace.openfin.co/workspace/24.1.0-alpha.06dbecdb/app.json",g=e=>e.startsWith("http://")||e.startsWith("https://")?e:i+e,h=(g("https://workspace.openfin.co/workspace/24.1.0-alpha.06dbecdb"),g("https://workspace.openfin.co/workspace/24.1.0-alpha.06dbecdb"),"undefined"!=typeof WORKSPACE_DOCS_PLATFORM_URL&&g(WORKSPACE_DOCS_PLATFORM_URL),"undefined"!=typeof WORKSPACE_DOCS_CLIENT_URL&&g(WORKSPACE_DOCS_CLIENT_URL),"24.1.0-alpha.06dbecdb");"undefined"!=typeof WORKSPACE_BUILD_SHA&&WORKSPACE_BUILD_SHA},822:(e,r,o)=>{"use strict";o.d(r,{Rm:()=>c,h:()=>i});let t="undefined"==typeof LOG_STRINGIFY||!0===LOG_STRINGIFY;const a={includeTimestamp:!0,customPrefix:"",stringifyData:void 0},n=e=>{try{return JSON.stringify(e,null,2)}catch(r){try{const r=new WeakSet;return JSON.stringify(e,(e,o)=>{if("object"==typeof o&&null!==o){if(r.has(o))return"[Circular Reference]";r.add(o)}return"bigint"==typeof o?`[BigInt: ${o.toString()}]`:"function"==typeof o?`[Function: ${o.name||"anonymous"}]`:"symbol"==typeof o?`[Symbol: ${o.toString()}]`:void 0===o?"[Undefined]":o},2)}catch(r){try{return`[Non-serializable: ${Object.prototype.toString.call(e)}]`}catch{return"[Unable to serialize data]"}}}},i=(e,r={})=>{const o={...a,...r},i=(a,i,s,l)=>{try{const c=((e,r,o,t)=>{const a=t.includeTimestamp?(new Date).toISOString():"";return`${a?`${a} `:""}${t.customPrefix?`${t.customPrefix} `:""}[${e}][${r}] ${o}`})(e,i,s,o),d=((e,r)=>{if(!e)return;const o="function"==typeof e?e():e;return o?r?n(o):o:void 0})(l,void 0!==r.stringifyData?r.stringifyData:t),u=console[a];void 0!==d?u(c,d):u(c)}catch(r){try{console.error("[Logger Error] Failed to log message:",r),console[a](`[${e}][${i}]`,s,l)}catch(e){}}};return{debug:(e,r,o)=>i("debug",e,r,o),info:(e,r,o)=>i("info",e,r,o),warn:(e,r,o)=>i("warn",e,r,o),error:(e,r,o)=>i("error",e,r,o)}},s=()=>"undefined"!=typeof window&&"undefined"!=typeof document&&("undefined"!=typeof LOG_DEBUG&&!0===LOG_DEBUG),l=(e,...r)=>{const o=console[e];try{if(t){o(...r.map(e=>"object"==typeof e&&null!==e?n(e):e))}else o(...r)}catch(e){console.error("Error printing stringified log, logging directly",e),o(...r)}},c={debug:(...e)=>{s()&&l("debug",...e)},info:(...e)=>l("info",...e),warn:(...e)=>l("warn",...e),error:(...e)=>l("error",...e),trace:(...e)=>l("trace",...e)}},786:(e,r,o)=>{"use strict";o.d(r,{A:()=>a});const t="of-workspace-";const a=new class{mark(e){performance.mark(`${t}${e}`)}markStart(e){performance.mark(`${t}${e}-start`)}markEnd(e){performance.mark(`${t}${e}-end`)}markEndAndMeasure(e){performance.mark(`${t}${e}-end`);try{return performance.measure(`${t}${e}`,`${t}${e}-start`,`${t}${e}-end`)}catch(e){0}}markAndMeasure(e,r){performance.mark(`${t}${e}`);try{return performance.measure(`${t}${e}-measure`,`${t}${r}-start`,`${t}${e}`)}catch(e){0}}reportWorkspacePerformanceEntries(){return performance.getEntriesByType("measure").filter(e=>e.name.startsWith(t))}reportWorkspacePerformance(){return this.reportWorkspacePerformanceEntries().map(e=>({name:e.name.replace(`${t}`,"").replace("-measure",""),duration:e.duration}))}}},277:(e,r,o)=>{"use strict";o.d(r,{GR:()=>s,ki:()=>c,xt:()=>l});var t,a=o(723),n=o(70);!function(e){e.Browser="Browser",e.Dock="Dock",e.EnterpriseDock="EnterpriseDock",e.Home="Home",e.Notification="Notification",e.Storefront="Storefront",e.Platform="Platform",e.Theming="Theming",e.Microflow="Microflow"}(t||(t={}));const i=async(e,r,o="workspace-licensing")=>{const t={apiVersion:r.apiVersion||a.et,componentName:e,componentVersion:r.componentVersion||a.et,allowed:r.allowed,rejectionCode:r.rejectionCode};fin.System.registerUsage({type:o,data:t})};const s=e=>{n.F2.uuid===n.$p.uuid&&n.F2.name===n.$p.name||i(t.Home,e)},l=e=>{i(t.Storefront,e)},c=e=>{i(t.Dock,e)};new Map},70:(e,r,o)=>{"use strict";o.d(r,{$p:()=>s,C:()=>g,F2:()=>l,T7:()=>c,gQ:()=>d,xt:()=>u});o(78);var t,a=o(438),n=o(723);!function(e){e.Home="openfin-home",e.Dock="openfin-dock",e.Storefront="openfin-storefront",e.HomeInternal="openfin-home-internal",e.BrowserIndicator="openfin-browser-indicator",e.BrowserWindow="internal-generated-window",e.ClassicWindow="internal-generated-classic-window",e.BrowserAddressSearchPrefix="openfin-browser-menu-address-search-",e.DockCompanion="openfin-dock-companion",e.AICompanionPrefix="openfin-ai-companion-",e.AboutPageWindow="here-about-page",e.FindInPageViewPrefix="here-find-in-page-view-",e.BrowserMenu="openfin-browser-menu",e.BrowserSaveMenu="openfin-browser-save-menu",e.DockSaveWorkspaceMenu="openfin-dock3-save-workspace-menu",e.DropdownMenu="openfin-enterprise-dropdown-menu",e.EnterpriseContextMenu="openfin-enterprise-context-menu",e.TabSearchMenu="openfin-browser-tab-search-menu",e.EnterpriseBookmarkDialogWindow="openfin-enterprise-bookmark-dialog",e.ZoomControlsDialog="here-zoom-controls-dialog",e.UpdateVersionModal="here-update-version-modal",e.ApplyAndPublishModal="here-apply-and-publish-modal",e.DesktopSignalsModal="here-desktop-signals-modal",e.IntentsResolverModal="here-intents-resolver-modal"}(t||(t={}));function i(e){if(!n.cI)throw new Error("getOFWindow can only be used in an OpenFin env. Avoid calling this method during pre-rendering.");return fin.Window.wrapSync(e)}const s={name:n.vL,uuid:n.$h};const l={name:t.Home,uuid:a.MW.Workspace},c={name:t.Dock,uuid:a.MW.Workspace},d={name:t.Storefront,uuid:a.MW.Workspace},u={name:a.MW.Workspace,uuid:a.MW.Workspace};const g=e=>i(e).getInfo().then(()=>!0).catch(()=>!1)},516:(e,r)=>{var o={d:(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o:(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};o.r(t),o.d(t,{Color:()=>a,Palette:()=>k,createTheme:()=>se});const a={white:"#FFFFFF",lightGray1:"#FAFBFE",lightGray2:"#F3F5F8",lightGray3:"#ECEEF1",lightGray4:"#DDDFE4",lightGray5:"#C9CBD2",neutralGray:"#7D808A",neutralGray80:"rgba(125,128,138,0.8)",silverGray:"#C0C1C2",darkGray1:"#53565F",darkGray2:"#383A40",darkGray3:"#2F3136",darkGray4:"#24262B",darkGray5:"#1E1F23",darkGray6:"#111214",openFinDarkest:"#3D39CD",openFinDarker:"#4642E0",openFin:"#504CFF",openFinLight:"#5254FB",openFinLighter:"#5C5EFE",openFinLightest:"#6864FF",functional1:"#207735",functional2:"#46C8F1",functional3:"#0A76D3",functional4:"#6CADE5",functional5:"#0A76D3",functional6:"#882BFE",functional7:"#F31818",functional8:"#C93400",functional9:"#FF5E60",functional10:"#F48F00",purple:"var(--color-primitives-indigo-500)",lightblue:"var(--color-primitives-blue-500)",aqua:"var(--color-primitives-teal-500)",yellow:"var(--color-primitives-yellow-500)",salmon:"var(--color-primitives-orange-500)",pink:"var(--color-primitives-pink-500)",lightpink:"var(--color-primitives-pink-500)",white00:"rgba(255,255,255,0.0)",white10:"rgba(255,255,255,0.1)",white20:"rgba(255,255,255,0.2)",white30:"rgba(255,255,255,0.3)",white40:"rgba(255,255,255,0.4)",white50:"rgba(255,255,255,0.5)",white60:"rgba(255,255,255,0.6)",white70:"rgba(255,255,255,0.7)",white80:"rgba(255,255,255,0.8)",white90:"rgba(255,255,255,0.9)",black00:"rgba(0,0,0,0.0)",black10:"rgba(0,0,0,0.1)",black20:"rgba(0,0,0,0.2)",black30:"rgba(0,0,0,0.3)",black40:"rgba(0,0,0,0.4)",black50:"rgba(0,0,0,0.5)",black60:"rgba(0,0,0,0.6)",black70:"rgba(0,0,0,0.7)",black80:"rgba(0,0,0,0.8)",black90:"rgba(0,0,0,0.9)",transparent:"transparent",openFinActive:"#4642FF",openFinHover:"#6965FF",lightGray4Active:"#D7DADF",lightGray4Hover:"#EBECEF",darkGray2Active:"#33353B",darkGray2Hover:"#44464E"},n="xsmall",i="small",s="base",l="large",c="xlarge",d="xxlarge",u="xxxlarge",g="xxxxlarge",h={[n]:4,[i]:8,[s]:12,[l]:16,[c]:20,[d]:24,[u]:32,[g]:48},p={[n]:"4px",[i]:"8px",[s]:"12px",[l]:"16px",[c]:"20px",[d]:"24px",[u]:"32px",[g]:"72px"},f={[n]:"2px",[i]:"4px",[s]:"8px",[l]:"24px",pill:"100vh",round:"50%",none:"0"},b={[s]:"0 4px 4px rgba(0, 0, 0, 0.25)"},v=["Inter","system-ui","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue","sans-serif"].join(","),m={[n]:"8px",[i]:"10px",[s]:"12px",[l]:"14px",[c]:"16px",[d]:"18px",[u]:"20px",[g]:"40px"},y={[n]:p.small,[i]:p.base,[s]:"15px",[l]:p.xlarge,[c]:p.xxlarge,[d]:p.xxxlarge,[u]:p.xxxxlarge,[g]:p.xxxxlarge},k={background1:"background1",background2:"background2",background3:"background3",background4:"background4",background5:"background5",background6:"background6",brandPrimary:"brandPrimary",brandSecondary:"brandSecondary",brandPrimaryActive:"brandPrimaryActive",brandPrimaryHover:"brandPrimaryHover",brandPrimaryFocused:"brandPrimaryFocused",brandPrimaryText:"brandPrimaryText",brandSecondaryActive:"brandSecondaryActive",brandSecondaryHover:"brandSecondaryHover",brandSecondaryFocused:"brandSecondaryFocused",brandSecondaryText:"brandSecondaryText",inputBackground:"inputBackground",inputColor:"inputColor",inputPlaceholder:"inputPlaceholder",inputDisabled:"inputDisabled",inputFocused:"inputFocused",inputBorder:"inputBorder",statusSuccess:"statusSuccess",statusWarning:"statusWarning",statusCritical:"statusCritical",statusActive:"statusActive",textDefault:"textDefault",textHelp:"textHelp",textInactive:"textInactive",borderNeutral:"borderNeutral",contentBackground1:"contentBackground1",contentBackground2:"contentBackground2",contentBackground3:"contentBackground3",contentBackground4:"contentBackground4",contentBackground5:"contentBackground5",linkDefault:"linkDefault",linkHover:"linkHover"};function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var P=/^\s+/,M=/\s+$/;function x(e,r){if(r=r||{},(e=e||"")instanceof x)return e;if(!(this instanceof x))return new x(e,r);var o=function(e){var r,o,t,a={r:0,g:0,b:0},n=1,i=null,s=null,l=null,c=!1,d=!1;return"string"==typeof e&&(e=function(e){e=e.replace(P,"").replace(M,"").toLowerCase();var r,o=!1;if(L[e])e=L[e],o=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(r=ee.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=ee.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=ee.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=ee.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=ee.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=ee.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=ee.hex8.exec(e))?{r:H(r[1]),g:H(r[2]),b:H(r[3]),a:K(r[4]),format:o?"name":"hex8"}:(r=ee.hex6.exec(e))?{r:H(r[1]),g:H(r[2]),b:H(r[3]),format:o?"name":"hex"}:(r=ee.hex4.exec(e))?{r:H(r[1]+""+r[1]),g:H(r[2]+""+r[2]),b:H(r[3]+""+r[3]),a:K(r[4]+""+r[4]),format:o?"name":"hex8"}:!!(r=ee.hex3.exec(e))&&{r:H(r[1]+""+r[1]),g:H(r[2]+""+r[2]),b:H(r[3]+""+r[3]),format:o?"name":"hex"}}(e)),"object"==w(e)&&(re(e.r)&&re(e.g)&&re(e.b)?(r=e.r,o=e.g,t=e.b,a={r:255*N(r,255),g:255*N(o,255),b:255*N(t,255)},c=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):re(e.h)&&re(e.s)&&re(e.v)?(i=Y(e.s),s=Y(e.v),a=function(e,r,o){e=6*N(e,360),r=N(r,100),o=N(o,100);var t=Math.floor(e),a=e-t,n=o*(1-r),i=o*(1-a*r),s=o*(1-(1-a)*r),l=t%6;return{r:255*[o,i,n,n,s,o][l],g:255*[s,o,o,i,n,n][l],b:255*[n,n,s,o,o,i][l]}}(e.h,i,s),c=!0,d="hsv"):re(e.h)&&re(e.s)&&re(e.l)&&(i=Y(e.s),l=Y(e.l),a=function(e,r,o){var t,a,n;function i(e,r,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+6*(r-e)*o:o<.5?r:o<2/3?e+(r-e)*(2/3-o)*6:e}if(e=N(e,360),r=N(r,100),o=N(o,100),0===r)t=a=n=o;else{var s=o<.5?o*(1+r):o+r-o*r,l=2*o-s;t=i(l,s,e+1/3),a=i(l,s,e),n=i(l,s,e-1/3)}return{r:255*t,g:255*a,b:255*n}}(e.h,i,l),c=!0,d="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=U(n),{ok:c,format:e.format||d,r:Math.min(255,Math.max(a.r,0)),g:Math.min(255,Math.max(a.g,0)),b:Math.min(255,Math.max(a.b,0)),a:n}}(e);this._originalInput=e,this._r=o.r,this._g=o.g,this._b=o.b,this._a=o.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||o.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=o.ok}function S(e,r,o){e=N(e,255),r=N(r,255),o=N(o,255);var t,a,n=Math.max(e,r,o),i=Math.min(e,r,o),s=(n+i)/2;if(n==i)t=a=0;else{var l=n-i;switch(a=s>.5?l/(2-n-i):l/(n+i),n){case e:t=(r-o)/l+(r<o?6:0);break;case r:t=(o-e)/l+2;break;case o:t=(e-r)/l+4}t/=6}return{h:t,s:a,l:s}}function _(e,r,o){e=N(e,255),r=N(r,255),o=N(o,255);var t,a,n=Math.max(e,r,o),i=Math.min(e,r,o),s=n,l=n-i;if(a=0===n?0:l/n,n==i)t=0;else{switch(n){case e:t=(r-o)/l+(r<o?6:0);break;case r:t=(o-e)/l+2;break;case o:t=(e-r)/l+4}t/=6}return{h:t,s:a,v:s}}function C(e,r,o,t){var a=[V(Math.round(e).toString(16)),V(Math.round(r).toString(16)),V(Math.round(o).toString(16))];return t&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function A(e,r,o,t){return[V(Z(t)),V(Math.round(e).toString(16)),V(Math.round(r).toString(16)),V(Math.round(o).toString(16))].join("")}function I(e,r){r=0===r?0:r||10;var o=x(e).toHsl();return o.s-=r/100,o.s=q(o.s),x(o)}function T(e,r){r=0===r?0:r||10;var o=x(e).toHsl();return o.s+=r/100,o.s=q(o.s),x(o)}function E(e){return x(e).desaturate(100)}function D(e,r){r=0===r?0:r||10;var o=x(e).toHsl();return o.l+=r/100,o.l=q(o.l),x(o)}function $(e,r){r=0===r?0:r||10;var o=x(e).toRgb();return o.r=Math.max(0,Math.min(255,o.r-Math.round(-r/100*255))),o.g=Math.max(0,Math.min(255,o.g-Math.round(-r/100*255))),o.b=Math.max(0,Math.min(255,o.b-Math.round(-r/100*255))),x(o)}function F(e,r){r=0===r?0:r||10;var o=x(e).toHsl();return o.l-=r/100,o.l=q(o.l),x(o)}function R(e,r){var o=x(e).toHsl(),t=(o.h+r)%360;return o.h=t<0?360+t:t,x(o)}function W(e){var r=x(e).toHsl();return r.h=(r.h+180)%360,x(r)}function z(e,r){if(isNaN(r)||r<=0)throw new Error("Argument to polyad must be a positive number");for(var o=x(e).toHsl(),t=[x(e)],a=360/r,n=1;n<r;n++)t.push(x({h:(o.h+n*a)%360,s:o.s,l:o.l}));return t}function O(e){var r=x(e).toHsl(),o=r.h;return[x(e),x({h:(o+72)%360,s:r.s,l:r.l}),x({h:(o+216)%360,s:r.s,l:r.l})]}function B(e,r,o){r=r||6,o=o||30;var t=x(e).toHsl(),a=360/o,n=[x(e)];for(t.h=(t.h-(a*r>>1)+720)%360;--r;)t.h=(t.h+a)%360,n.push(x(t));return n}function j(e,r){r=r||6;for(var o=x(e).toHsv(),t=o.h,a=o.s,n=o.v,i=[],s=1/r;r--;)i.push(x({h:t,s:a,v:n})),n=(n+s)%1;return i}x.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,r,o,t=this.toRgb();return e=t.r/255,r=t.g/255,o=t.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))},setAlpha:function(e){return this._a=U(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=_(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=_(this._r,this._g,this._b),r=Math.round(360*e.h),o=Math.round(100*e.s),t=Math.round(100*e.v);return 1==this._a?"hsv("+r+", "+o+"%, "+t+"%)":"hsva("+r+", "+o+"%, "+t+"%, "+this._roundA+")"},toHsl:function(){var e=S(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=S(this._r,this._g,this._b),r=Math.round(360*e.h),o=Math.round(100*e.s),t=Math.round(100*e.l);return 1==this._a?"hsl("+r+", "+o+"%, "+t+"%)":"hsla("+r+", "+o+"%, "+t+"%, "+this._roundA+")"},toHex:function(e){return C(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,r,o,t,a){var n=[V(Math.round(e).toString(16)),V(Math.round(r).toString(16)),V(Math.round(o).toString(16)),V(Z(t))];return a&&n[0].charAt(0)==n[0].charAt(1)&&n[1].charAt(0)==n[1].charAt(1)&&n[2].charAt(0)==n[2].charAt(1)&&n[3].charAt(0)==n[3].charAt(1)?n[0].charAt(0)+n[1].charAt(0)+n[2].charAt(0)+n[3].charAt(0):n.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*N(this._r,255))+"%",g:Math.round(100*N(this._g,255))+"%",b:Math.round(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*N(this._r,255))+"%, "+Math.round(100*N(this._g,255))+"%, "+Math.round(100*N(this._b,255))+"%)":"rgba("+Math.round(100*N(this._r,255))+"%, "+Math.round(100*N(this._g,255))+"%, "+Math.round(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(G[C(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var r="#"+A(this._r,this._g,this._b,this._a),o=r,t=this._gradientType?"GradientType = 1, ":"";if(e){var a=x(e);o="#"+A(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+t+"startColorstr="+r+",endColorstr="+o+")"},toString:function(e){var r=!!e;e=e||this._format;var o=!1,t=this._a<1&&this._a>=0;return r||!t||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(o=this.toRgbString()),"prgb"===e&&(o=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(o=this.toHexString()),"hex3"===e&&(o=this.toHexString(!0)),"hex4"===e&&(o=this.toHex8String(!0)),"hex8"===e&&(o=this.toHex8String()),"name"===e&&(o=this.toName()),"hsl"===e&&(o=this.toHslString()),"hsv"===e&&(o=this.toHsvString()),o||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return x(this.toString())},_applyModification:function(e,r){var o=e.apply(null,[this].concat([].slice.call(r)));return this._r=o._r,this._g=o._g,this._b=o._b,this.setAlpha(o._a),this},lighten:function(){return this._applyModification(D,arguments)},brighten:function(){return this._applyModification($,arguments)},darken:function(){return this._applyModification(F,arguments)},desaturate:function(){return this._applyModification(I,arguments)},saturate:function(){return this._applyModification(T,arguments)},greyscale:function(){return this._applyModification(E,arguments)},spin:function(){return this._applyModification(R,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(B,arguments)},complement:function(){return this._applyCombination(W,arguments)},monochromatic:function(){return this._applyCombination(j,arguments)},splitcomplement:function(){return this._applyCombination(O,arguments)},triad:function(){return this._applyCombination(z,[3])},tetrad:function(){return this._applyCombination(z,[4])}},x.fromRatio=function(e,r){if("object"==w(e)){var o={};for(var t in e)e.hasOwnProperty(t)&&(o[t]="a"===t?e[t]:Y(e[t]));e=o}return x(e,r)},x.equals=function(e,r){return!(!e||!r)&&x(e).toRgbString()==x(r).toRgbString()},x.random=function(){return x.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},x.mix=function(e,r,o){o=0===o?0:o||50;var t=x(e).toRgb(),a=x(r).toRgb(),n=o/100;return x({r:(a.r-t.r)*n+t.r,g:(a.g-t.g)*n+t.g,b:(a.b-t.b)*n+t.b,a:(a.a-t.a)*n+t.a})},x.readability=function(e,r){var o=x(e),t=x(r);return(Math.max(o.getLuminance(),t.getLuminance())+.05)/(Math.min(o.getLuminance(),t.getLuminance())+.05)},x.isReadable=function(e,r,o){var t,a,n,i,s,l=x.readability(e,r);switch(a=!1,(n=o,"AA"!==(i=((n=n||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==i&&(i="AA"),"small"!==(s=(n.size||"small").toLowerCase())&&"large"!==s&&(s="small"),t={level:i,size:s}).level+t.size){case"AAsmall":case"AAAlarge":a=l>=4.5;break;case"AAlarge":a=l>=3;break;case"AAAsmall":a=l>=7}return a},x.mostReadable=function(e,r,o){var t,a,n,i,s=null,l=0;a=(o=o||{}).includeFallbackColors,n=o.level,i=o.size;for(var c=0;c<r.length;c++)(t=x.readability(e,r[c]))>l&&(l=t,s=x(r[c]));return x.isReadable(e,s,{level:n,size:i})||!a?s:(o.includeFallbackColors=!1,x.mostReadable(e,["#fff","#000"],o))};var L=x.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},G=x.hexNames=function(e){var r={};for(var o in e)e.hasOwnProperty(o)&&(r[e[o]]=o);return r}(L);function U(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,r){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var o=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(r,Math.max(0,parseFloat(e))),o&&(e=parseInt(e*r,10)/100),Math.abs(e-r)<1e-6?1:e%r/parseFloat(r)}function q(e){return Math.min(1,Math.max(0,e))}function H(e){return parseInt(e,16)}function V(e){return 1==e.length?"0"+e:""+e}function Y(e){return e<=1&&(e=100*e+"%"),e}function Z(e){return Math.round(255*parseFloat(e)).toString(16)}function K(e){return H(e)/255}var J,Q,X,ee=(Q="[\\s|\\(]+("+(J="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+J+")[,|\\s]+("+J+")\\s*\\)?",X="[\\s|\\(]+("+J+")[,|\\s]+("+J+")[,|\\s]+("+J+")[,|\\s]+("+J+")\\s*\\)?",{CSS_UNIT:new RegExp(J),rgb:new RegExp("rgb"+Q),rgba:new RegExp("rgba"+X),hsl:new RegExp("hsl"+Q),hsla:new RegExp("hsla"+X),hsv:new RegExp("hsv"+Q),hsva:new RegExp("hsva"+X),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function re(e){return!!ee.CSS_UNIT.exec(e)}const oe=(e,r,o)=>{if(o&&(o<0||o>100))throw new Error(`${o} must be a number between 0 and 100`);return x(e)[r](o).toString()},te=(e,r)=>oe(e,"lighten",r),ae=(e,r)=>x.mostReadable(e,r).toHexString(),ne={fontFamily:v,fontSize:m,fontWeight:{normal:400,bold:600},lineHeight:{ui:1,heading:1.2,text:1.5},iconSize:y,radius:f,shadow:b,transition:{base:"200ms cubic-bezier(0.16, 1, 0.3, 1)",none:"0ms"},unit:h,px:p},ie=(e,r)=>{return{[`${e}Active`]:(o=r,oe(o,"darken",2)),[`${e}Hover`]:te(r,5),[`${e}Focused`]:ae(r,[a.white,a.darkGray5]),[`${e}Text`]:ae(r,[a.white,a.darkGray5])};var o},se=e=>Object.assign(Object.assign({},ne),{palette:Object.assign(Object.assign(Object.assign({},ie(k.brandPrimary,e.brandPrimary)),ie(k.brandSecondary,e.brandSecondary)),e)});var le=r;for(var ce in t)le[ce]=t[ce];t.__esModule&&Object.defineProperty(le,"__esModule",{value:!0})}},r={};function o(t){var a=r[t];if(void 0!==a)return a.exports;var n=r[t]={exports:{}};return e[t](n,n.exports,o),n.exports}o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};(()=>{"use strict";o.r(t),o.d(t,{ActionTrigger:()=>J,AppManifestType:()=>tr.v,ButtonStyle:()=>rr,CLIAction:()=>oe.PK,CLIFilterOptionType:()=>oe.oo,CLITemplate:()=>oe.fC,ContainerTemplateFragmentNames:()=>Qe,Dock:()=>e,DockButtonNames:()=>u,Home:()=>x,Integrations:()=>r,PresentationTemplateFragmentNames:()=>Xe,SearchTagBackground:()=>X,Storefront:()=>Je,StorefrontTemplate:()=>tr.z,TemplateFragmentTypes:()=>er});var e={};o.r(e),o.d(e,{DockButtonNames:()=>u,deregister:()=>m,minimize:()=>y,register:()=>v,show:()=>k});var r={};o.r(r),o.d(r,{Microsoft365WorkflowIntegration:()=>Ke});var a=o(723),n=o(822),i=o(786),s=o(277),l=o(70),c=o(695),d=o(79);var u,g,h=o(248);(g=u||(u={})).ActionButton="ActionButton",g.DropdownButton="DropdownButton";let p,f;const b=(e=[])=>{const r=e.filter(e=>!!e.id).map(e=>e.id);if(new Set(r).size!==r.length)throw new Error("Dock provider buttons must have unique identifiers if specified.")},v=async e=>{n.Rm.debug("Dock: register() - Dock registration started",e),(0,h.H)("dock",l.T7);const r=await(async e=>{await(0,d.KZ)(fin.me.identity);const r=await(0,c.YD)();if(f)throw new Error("Error using `Dock.register`. A Dock provider for this Workspace Platform is already registered. Call `Dock.deregister` before calling `Dock.register` again.");return f=e,e.clientAPIVersion=a.et,r.dispatch("register-provider",{providerType:"dock",info:e})})(e);return p=new Promise((o,t)=>{try{(e=>{e.workspaceComponents&&!Array.isArray(e.workspaceComponents)&&console.warn("Using the `WorkspaceComponentButtonOptions` type to configure the Workspace Components Buttons is deprecated. Please use `WorkspaceButtonsConfig` instead.")})(e),b(e.buttons),(0,s.ki)({allowed:!0,componentVersion:r?.workspaceVersion}),a.et,o({clientAPIVersion:a.et,workspaceVersion:r?.workspaceVersion??"",updateDockProviderConfig:async r=>{if(!f)throw new Error("Error using `Dock.updateDockProviderConfig`. Dock provider is not registered. Make sure to call `Dock.register` first.");b(r.buttons);const o=await(0,c.YD)();await o.dispatch("update-provider",{providerType:"dock",provider:{...e,workspaceComponents:r.workspaceComponents,buttons:r.buttons,title:r.title,icon:r.icon,disableUserRearrangement:r.disableUserRearrangement,id:e.id}})}})}catch(e){(0,s.ki)({allowed:!1,rejectionCode:e instanceof Error?e.message:"unknown"}),t(e),p=void 0}finally{i.A.markEndAndMeasure("dock-registration")}}),p},m=async()=>{if(await p,!f)throw new Error("Error using `Dock.deregister`. Dock provider is not registered. Call `Dock.register` before calling `Dock.deregister`.");const e=await(0,c.YD)();await e.dispatch("deregister-provider",{providerType:"dock",id:f.id}),f=void 0,p=void 0},y=async()=>{await p,await(0,c.nA)(),await(async e=>(await(0,c.p4)()).dispatch("hide-provider-window",{providerType:e}))("dock")},k=async()=>{i.A.markStart("dock-show"),await p,await(0,c.nA)(),await(async e=>(await(0,c.p4)()).dispatch("show-provider-window",{providerType:e}))("dock")};var w,P,M,x=o(834),S=function(e,r,o,t,a){if("m"===t)throw new TypeError("Private method is not writable");if("a"===t&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof r?e!==r||!a:!r.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===t?a.call(e,o):a?a.value=o:r.set(e,o),o},_=function(e,r,o,t){if("a"===o&&!t)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof r?e!==r||!t:!r.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===o?t:"a"===o?t.call(e):t?t.value:r.get(e)};w=new WeakMap,P=new WeakMap,M=new WeakMap;const C=class{constructor(e){w.set(this,void 0),P.set(this,void 0),M.set(this,void 0),S(this,w,e,"f"),S(this,P,new Map,"f"),S(this,M,[],"f")}get(e){if(_(this,P,"f").has(e))return this.updateQueue(e),_(this,P,"f").get(e)}has(e){return _(this,P,"f").has(e)}put(e,r){if(_(this,P,"f").has(e))_(this,P,"f").set(e,r),this.updateQueue(e);else{if(_(this,M,"f").length===_(this,w,"f")){const e=_(this,M,"f").shift();e&&_(this,P,"f").delete(e)}_(this,P,"f").set(e,r),_(this,M,"f").push(e)}}updateQueue(e){const r=_(this,M,"f").indexOf(e);-1!==r&&(_(this,M,"f").splice(r,1),_(this,M,"f").push(e))}};function A(e){return e&&"object"==typeof e&&!Array.isArray(e)}function I(e,...r){if(!r.length)return e;const o=r.shift();return A(e)&&A(o)&&Object.entries(o).forEach(([r,o])=>{A(o)?(e[r]||(e[r]={}),I(e[r],o)):Array.isArray(o)&&"hotkeys"===r&&Array.isArray(e[r])?e[r]=function(e){if(!e.length||!e.every(A))return e;const r=new Map,o=[];for(const t of e){const e=t.keys||t.id||t.name||JSON.stringify(t);r.has(e)||(r.set(e,!0),o.push(t))}return o}([...e[r],...o]):e[r]=o}),I(e,...r)}var T,E,D,$;(E=T||(T={})).Home="/home/",E.HomeSearch="/home/?deeplink=search",E.HomePagesRename="/home/pages/rename/",E.Dock="/dock/",E.Docs="/provider/docs/",E.Storefront="/storefront/",E.DeprecatedAlert="/provider/deprecated-alert/",E.Analytics="/provider/analytics/",E.Provider="/provider/",($=D||(D={})).Browser="/browser/",$.BrowserPopupMenu="/popup-menu/",$.BrowserPopupMenuSaveModal="/popup-menu/save-modal/",$.BrowserPopupMenuLayouts="/popup-menu/layouts/layouts/",$.BrowserPopupMenuColorLinking="/popup-menu/color-linking/color-linking/",$.BrowserIndicator="/indicator/",$.BrowserPopupMenuAddressSearchResultsView="/popup-menu/address-search-results-view/",$.ResponseModal="/popup-menu/response-modal/",$.CloseConfirmationModal="/popup-menu/close-confirmation-modal/",$.EnterpriseBrowser="/enterprise/",$.EnterpriseLandingPage="/enterprise/landing/",$.EnterpriseContextMenu="/context-menu/",$.EnterpriseBookmarkDialog="/bookmark-dialog/",$.EnterpriseAboutPage="/popup-menu/about/",$.StorageProxy="/storage-proxy",$.DropdownMenu="/dropdown-menu/",$.TabSearchModal="/popup-menu/tab-search-modal/",$.EnterpriseDock="/dock/",$.ZoomControlsDialog="/zoom-controls-dialog/",$.DesktopSignalsModal="/popup-menu/desktop-signals-modal/",$.IntentsResolverModal="/popup-menu/intents-resolver-modal/",$.FindInPageModal="/popup-menu/find-in-page-modal/";const F="/microsoft-365-integration-assets/",R={IconOpenFinLogo:"/icons/openfinlogo.svg",IconFilter:"/icons/filter.svg",LightStorefront:"/icons/store-icon-light.png",DarkStorefront:"/icons/store-icon-dark.png",CallIconLight:"/icons/call-icon-light.svg",CallIconDark:"/icons/call-icon-dark.svg",ChatIconLight:"/icons/chat-icon-light.svg",ChatIconDark:"/icons/chat-icon-dark.svg",MessageIconLight:"/icons/message-icon-light.svg",MessageIconDark:"/icons/message-icon-dark.svg",Microsoft365Assets:{Microsoft365DocumentIcon:`${F}microsoft-365-document-icon.svg`,Microsoft365ExcelIcon:`${F}microsoft-365-excel-icon.svg`,Microsoft365PowerpointIcon:`${F}microsoft-365-powerpoint-icon.svg`,Microsoft365OutlookIcon:`${F}microsoft-365-outlook-icon.svg`,Microsoft365TeamsIcon:`${F}microsoft-365-teams-icon.svg`,Microsoft365Icon:`${F}microsoft-365-icon.svg`,PDFFileIcon:`${F}pdf-file-icon.svg`},DockIconLight:"/icons/dock-icon-light.png",DockIconDark:"/icons/dock-icon-dark.png"};var W;(W||(W={})).Search="search";var z,O;(O=z||(z={})).Home="/home",O.Browser="/browser",O.Enterprise="/enterprise",O.Provider="/provider",O.Storefront="/storefront",O.Dock="/dock";function B(e){return"/workspace/24.1.0-alpha.06dbecdb"+e}var j,L,G,U,N,q=function(e,r,o,t,a){if("m"===t)throw new TypeError("Private method is not writable");if("a"===t&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof r?e!==r||!a:!r.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===t?a.call(e,o):a?a.value=o:r.set(e,o),o},H=function(e,r,o,t){if("a"===o&&!t)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof r?e!==r||!t:!r.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===o?t:"a"===o?t.call(e):t?t.value:r.get(e)};L=new WeakMap,G=new WeakMap,U=new WeakMap,j=new WeakSet,N=function(){const e=Array.from(H(this,L,"f").entries()).reduce((e,r)=>!e||r[1].timestamp<e[1].timestamp?r:e,null);return e?e[0]:null};const V=class{constructor(e=3e5,r=100){j.add(this),L.set(this,void 0),G.set(this,void 0),U.set(this,void 0),q(this,L,new Map,"f"),q(this,G,e,"f"),q(this,U,r,"f")}get(e){const r=H(this,L,"f").get(e);if(!r)return null;return Date.now()-r.timestamp<H(this,G,"f")?r.value:(H(this,L,"f").delete(e),null)}put(e,r){if(H(this,L,"f").size>=H(this,U,"f")){const e=H(this,j,"m",N).call(this);null!=e&&H(this,L,"f").delete(e)}H(this,L,"f").set(e,{value:r,timestamp:Date.now()})}remove(e){H(this,L,"f").delete(e)}clear(){H(this,L,"f").clear()}};function Y(){return void 0!==typeof crypto&&"randomUUID"in crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}var Z,K,J,Q,X,ee;(K=Z||(Z={})).Fetching="fetching",K.Fetched="fetched",K.Complete="complete",(Q=J||(J={})).UserAction="user-action",Q.FocusChange="focus-change",Q.Reload="reload",(ee=X||(X={})).Active="active",ee.Default="default";var re,oe=o(872),te=function(e,r,o,t){if("a"===o&&!t)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof r?e!==r||!t:!r.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===o?t:"a"===o?t.call(e):t?t.value:r.get(e)};const ae={};class ne{constructor(e){re.set(this,new Set),this._initializeWorkflows=async(e=this.config)=>{const{workflows:r}=e;for(const e in r){if(!r[e].disableAutoInitialize)try{te(this,re,"f").has(e)?console.warn(`Workflow ${e} already initialized.`):(te(this,re,"f").add(e),await this.initializeWorkflow(e))}catch(r){te(this,re,"f").delete(e),console.error(`Error registering ${e}:`,r)}}};const r=I({},ae,e);this.config=r}async initializeWorkflow(e){te(this,re,"f").add(e)}}re=new WeakMap;const ie=require("@openfin/microsoft365");let se=0;const le={chatMessage:"Chat Message",event:"Event",message:"Email",drive:"Document",contact:"Contact",user:"User",list:"List"},ce={pdf:"PDF",docx:"Word",pptx:"PowerPoint",xlsx:"Excel",onenote:"OneNote"},de={chatMessage:["Chat.Read","ChannelMessage.Read.All"],list:["Sites.Read.All"],event:["Calendars.Read"],message:["Mail.ReadWrite.Shared"],contact:["Contacts.Read.Shared","Mail.ReadWrite.Shared"],user:["User.Read.All","Presence.Read.All"]},ue="MICROSOFT_365_SEARCH_TYPE_FILTER",ge="MICROSOFT_365_SEARCH_FILE_TYPE_FILTER",he="MICROSOFT_365_SEARCH_DEPARTMENT_FILTER",pe="MICROSOFT_365_SEARCH_JOB_TITLE_FILTER",fe="Teams Call",be="Teams Chat",ve="Email",me=(e,r)=>{const o=[],t={item:e.context.selectedFilters?.find(e=>e.id===ue),documentType:e.context.selectedFilters?.find(e=>e.id===ge)},a=[{value:"Document",isSelected:!!t.item?.options?.find(({value:e})=>"File"===e)?.isSelected},{value:"Contact",isSelected:!!t.item?.options?.find(({value:e})=>"Contact"===e)?.isSelected},{value:"Chat Message",isSelected:!!t.item?.options?.find(({value:e})=>"Chat Message"===e)?.isSelected},{value:"Email",isSelected:!!t.item?.options?.find(({value:e})=>"Email"===e)?.isSelected},{value:"Event",isSelected:!!t.item?.options?.find(({value:e})=>"Event"===e)?.isSelected},{value:"List",isSelected:!!t.item?.options?.find(({value:e})=>"List"===e)?.isSelected}];return o.push({id:ue,title:"Type",type:oe.oo.MultiSelect,options:a.filter(e=>r.has(e.value))}),"Document"===t.item?.options?.filter(e=>e.isSelected)?.[0].value&&o.push({id:ge,title:"File Type",type:oe.oo.MultiSelect,options:Object.entries(ce).map(([,e])=>({value:e,isSelected:!!t.documentType?.options?.filter(e=>e.isSelected)?.find(({value:e})=>"File"===e)?.isSelected}))}),o},ye=(e,r)=>{const o=r.context.selectedFilters?.find(e=>e.id===ue)?.options;if(!Array.isArray(o)||!o.find(e=>"Contact"===e.value||"User"===e.value)?.isSelected)return[];const{department:t,jobTitle:a}=e.reduce((e,r)=>(r.department&&e.department.add(r.department),r.jobTitle&&e.jobTitle.add(r.jobTitle),e),{department:new Set,jobTitle:new Set}),n=r.context.selectedFilters?.find(e=>e.id===he),i=Array.from(t).map(e=>({value:e,isSelected:!!n?.options?.find(({value:r})=>r===e)?.isSelected})),s=r.context.selectedFilters?.find(e=>e.id===he),l=Array.from(a).map(e=>({value:e,isSelected:!!s?.options?.find(({value:r})=>r===e)?.isSelected}));return[{id:he,title:"Department",type:oe.oo.MultiSelect,options:i},{id:pe,title:"Job Title",type:oe.oo.MultiSelect,options:l}]},ke=e=>{const r=e.context.selectedFilters?.find(e=>e.id===he),o=Array.isArray(r?.options)?r.options.filter(e=>e.isSelected).map(e=>e.value):[],t=e.context.selectedFilters?.find(e=>e.id===pe);return{department:o,jobTitle:Array.isArray(t?.options)?t.options.filter(e=>e.isSelected).map(e=>e.value):[]}},we=(e,r)=>{const{department:o,jobTitle:t}=r;return e.filter(e=>(!o.length||o.includes(e.department))&&(!t.length||t.includes(e.jobTitle)))},Pe=e=>{const r=Array.isArray(e.context.selectedFilters?.find(e=>e.id===ge)?.options)?e.context.selectedFilters.find(e=>e.id===ge)?.options:[];return{filterFiles:r&&r.some(({isSelected:e})=>e),showWord:r.find(({value:e})=>"Word"===e)?.isSelected,showExcel:r.find(({value:e})=>"Excel"===e)?.isSelected,showPowerPoint:r.find(({value:e})=>"PowerPoint"===e)?.isSelected,showPDF:r.find(({value:e})=>"PDF"===e)?.isSelected,showOneNote:r.find(({value:e})=>"OneNote"===e)?.isSelected}},Me=(e,r)=>{const o=[];return r.showWord&&o.push(".docx"),r.showExcel&&o.push(".xlsx"),r.showPowerPoint&&o.push(".pptx"),r.showPDF&&o.push(".pdf"),r.showOneNote&&o.push(".one"),e.filter(e=>{if(e.file){const r=e.name.substring(e.name.lastIndexOf("."));return o.includes(r)}return!1})},xe=(e="")=>{switch(e.split(".").pop()?.toLowerCase()??""){case"docx":case"doc":return"Microsoft Word";case"xlsx":case"xls":return"Microsoft Excel";case"pptx":case"ppt":return"Microsoft PowerPoint";case"pdf":return"PDF";case"png":case"jpg":case"jpeg":case"gif":return"Image";case"txt":return"Text";default:return"File"}},Se=(e="")=>{switch(e.split(".").pop()?.toLowerCase()??""){case"docx":case"doc":return B(R.Microsoft365Assets.Microsoft365DocumentIcon);case"xlsx":case"xls":return B(R.Microsoft365Assets.Microsoft365ExcelIcon);case"pptx":case"ppt":return B(R.Microsoft365Assets.Microsoft365PowerpointIcon);case"pdf":return B(R.Microsoft365Assets.PDFFileIcon);default:return}},_e=e=>e.replace(/\+/g,"_").replace(/\//g,"-");var Ce,Ae,Ie,Te,Ee,De,$e,Fe,Re,We,ze,Oe,Be,je,Le,Ge,Ue,Ne,qe,He,Ve,Ye=function(e,r,o,t){if("a"===o&&!t)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof r?e!==r||!t:!r.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===o?t:"a"===o?t.call(e):t?t.value:r.get(e)},Ze=function(e,r,o,t,a){if("m"===t)throw new TypeError("Private method is not writable");if("a"===t&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof r?e!==r||!a:!r.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===t?a.call(e,o):a?a.value=o:r.set(e,o),o};class Ke extends ne{constructor(e){const r=I({},{workflows:{search:(se+=1,{homeProvider:{description:"Microsoft 365 search results provider",id:`MS365-${fin.me.identity.uuid}-${se}`,logoUrl:B(R.Microsoft365Assets.Microsoft365Icon),icon:B(R.Microsoft365Assets.Microsoft365Icon),title:"Microsoft 365 Search",inputPlaceholder:"What would you like to search in Microsoft 365 today?",dispatchFocusEvents:!0},microsoftEntityTypeConfig:{message:!0,chatMessage:!0,drive:!0,event:!0,user:!0,contact:!0,list:!0},useTeamsDeepLink:!0})}},e);super(r),Ce.add(this),Ae.set(this,void 0),this.workflowIntegrationName="Microsoft 365",Ie.set(this,void 0),Te.set(this,void 0),Ee.set(this,1),De.set(this,new Set),$e.set(this,new C(100)),Fe.set(this,new V(6e4)),this.connect=async(e=this.config.connect)=>{const{clientId:r,tenantId:o,redirectUri:t}=e,a=this.config.workflows?.search?Object.entries(this.config.workflows?.search?.microsoftEntityTypeConfig??{}).filter(([e,r])=>r).map(([e])=>de[e]).filter(e=>void 0!==e).flat():[];this.config.connect=e,Ze(this,Ae,await(0,ie.connect)(r,o,t,[...new Set(a)]),"f")},Re.set(this,()=>{if(!Ye(this,Ae,"f"))throw new Error("Microsoft365WorkflowIntegration not connected");return Ye(this,Ae,"f")}),je.set(this,async e=>{if(Ze(this,Te,e,"f"),e.data?.item?.id){const r=Ye(this,Fe,"f").get(e.data.item.id);if(r)return void Ye(this,Ie,"f").respond([r])}if("user"===e.data?.type)Ye(this,qe,"f").call(this,e)}),Le.set(this,async e=>{await fin.Platform.getCurrentSync().createWindow({layout:{content:[{type:"stack",content:[{type:"component",componentName:"view",componentState:{url:e}}]}]},workspacePlatform:void 0})}),Ge.set(this,async e=>{if(e.data.item.channelIdentity.teamId){const r=new URL(`msteams:/l/channel/${e.data.item.channelIdentity.channelId}/${e.data.item.id}`);return!1===this.config.workflows?.search?.useTeamsDeepLink&&(r.protocol="https:"),r.searchParams.append("context",JSON.stringify({contextType:"channel"})),void await fin.System.openUrlWithBrowser(r.toString())}const r=new URL(`msteams:/l/message/${e.data.item.chatId}/${e.data.item.id}`);!1===this.config.workflows?.search?.useTeamsDeepLink&&(r.protocol="https:"),r.searchParams.append("context",JSON.stringify({contextType:"chat"})),await fin.System.openUrlWithBrowser(r.toString())}),Ue.set(this,async e=>{switch(e.action.name){case fe:{const r=new ie.TeamsConnection(Ye(this,Re,"f").call(this),this.config.workflows?.search?.useTeamsDeepLink);Ye(this,Ce,"m",We).call(this,()=>r.startCall([e.data.item.mail]));break}case ve:{const r=await this.executeApiRequest("/v1.0/me/messages","POST",{toRecipients:[{emailAddress:{address:e.data.item.mail}}]});let o=r.data.webLink;const t=new URL(r.data.webLink);if("/owa/"===t.pathname){const e=t.search.slice(1).split("&").reduce((e,r)=>{const[o,t]=r.split("=");return e[o]=t,e},{});if(e.ItemID){const r=e.ItemID;o=`${t.origin}/mail/deeplink/compose/${r}?ItemID=${r}&exvsurl=1`}}await fin.Platform.getCurrentSync().createView({url:o});break}case be:{const r=Ye(this,Re,"f").call(this),o=new ie.TeamsConnection(r,this.config.workflows?.search?.useTeamsDeepLink);Ye(this,Ce,"m",We).call(this,()=>o.startChat({emailAddresses:[r.currentUser.mail,e.data.item.mail]}));break}default:console.warn("Unhandled user action for result:",e,`Unknown action "${e.action.name}"`)}}),Ne.set(this,async e=>{switch(e.data.type){case"driveItem":Ye(this,Le,"f").call(this,e.data.item.webUrl);break;case"event":{const r=e.data.item,o=await this.executeApiRequest(`/v1.0/me/events/${r.id}`);Ye(this,Le,"f").call(this,o.data.webLink);break}case"chatMessage":Ye(this,Ge,"f").call(this,e);break;case"message":Ye(this,Le,"f").call(this,e.data.item.webLink);break;case"list":{const r=e.data.item,o=await this.executeApiRequest(`/v1.0/sites/${r.parentReference?.siteId}/lists/${r.id}`);Ye(this,Le,"f").call(this,o.data.webUrl);break}case"user":Ye(this,Ue,"f").call(this,e);break;default:console.warn("Unhandled user action for result:",e,`Unknown result type "${e.data.type}"`)}}),qe.set(this,async e=>{let r,o;const t=[],a=e.data.item;Ye(this,$e,"f").has(a.id)?r=Ye(this,$e,"f").get(a.id):t.push({id:"contactPhoto",method:"GET",url:`/users/${e.data.item.id}/photo/$value`,headers:{ConsistencyLevel:"eventual"}}),t.push({id:"presence",method:"GET",url:`/users/${e.data.item.id}/presence`});try{const e=await Ye(this,Ce,"m",ze).call(this,t),i=e.data?.responses.find(e=>"contactPhoto"===e.id);i&&200!==i.status&&console.warn("Error fetching user photo",i),i?.body&&200===i?.status&&(r=`data:image/jpeg;base64,${i.body}`,Ye(this,$e,"f").put(a.id,r));const s=e.data?.responses.find(e=>"presence"===e.id);200!==s.status&&console.warn("Error fetching user presence",s),s?.body&&200===s.status&&(n=s.body,o={available:"available",availableidle:"available",away:"away",berightback:"away",busy:"busy",busyidle:"busy",donotdisturb:"do-not-disturb",offline:"offline",presenceunknown:"offline"}[n.availability?.toLowerCase()])}catch(e){console.error("Error fetching user data",e)}var n;const i=[["Department",a.department||"N/A"],["Email",a.mail||"N/A"],["Work Phone",a.businessPhones?.[0]||"N/A"],["Mobile",a.mobilePhone||"N/A"],["Location",a.officeLocation||"N/A"]],s={...e,template:oe.fC.Contact,templateContent:{name:e.data.item.displayName,title:e.data.item.jobTitle,details:[i],photoUrl:r,onlineStatus:o,buttons:[{type:"button",icon:{light:B(R.CallIconLight),dark:B(R.CallIconDark)},tooltip:"Teams Call",action:fe},{type:"button",icon:{light:B(R.ChatIconLight),dark:B(R.ChatIconDark)},tooltip:"Chat",action:be},{type:"button",icon:{light:B(R.MessageIconLight),dark:B(R.MessageIconDark)},tooltip:"E-mail",action:ve}]}};Ye(this,Fe,"f").put(e.data.item.id,s),Ye(this,Ie,"f").respond([s])}),He.set(this,async(e,r)=>{if(Ye(this,Ie,"f")&&Ye(this,Ie,"f").close(),Ze(this,Ie,r,"f"),Ye(this,Ie,"f").open(),e.query.length<Ye(this,Ee,"f"))return{results:[]};const o=encodeURIComponent(e.query),t=[],a=((e,r)=>{const o=Array.isArray(e.context.selectedFilters?.find(e=>e.id===ue)?.options)?e.context.selectedFilters.find(e=>e.id===ue)?.options:[],t=o.every(({isSelected:e})=>!e);return{showDocuments:r.has("Document")&&(t||!!o.find(({value:e})=>"Document"===e)?.isSelected),showContacts:r.has("Contact")&&(t||!!o.find(({value:e})=>"Contact"===e)?.isSelected),showChatMessages:r.has("Chat Message")&&(t||!!o.find(({value:e})=>"Chat Message"===e)?.isSelected),showMessages:r.has("Email")&&(t||!!o.find(({value:e})=>"Email"===e)?.isSelected),showEvents:r.has("Event")&&(t||!!o.find(({value:e})=>"Event"===e)?.isSelected),showLists:r.has("List")&&(t||!!o.find(({value:e})=>"List"===e)?.isSelected)}})(e,Ye(this,De,"f"));if(a.showDocuments){const e=`'${o}'`;t.push({id:"driveItem",method:"GET",url:`/me/drive/root/search(q=${encodeURIComponent(e)})`,headers:{ConsistencyLevel:"eventual"}})}if(a.showEvents&&t.push({id:"event",url:"/search/query",method:"POST",body:{requests:[{entityTypes:["event"],query:{queryString:e.query},from:0,size:10}]},headers:{"Content-Type":"application/json"}}),a.showContacts){const r=`"${e.query}"`;t.push({id:"contact",method:"GET",url:`/me/contacts?$search=${encodeURIComponent(r)}&$top=10`});const o=["displayName","givenName","surname"].map(r=>`"${r}:${e.query}"`).join(" OR ");t.push({id:"user",method:"GET",url:`/users?$search=${encodeURIComponent(o)}&$top=10&$select=id,displayName,department,mail,businessPhones,mobilePhone,officeLocation,jobTitle`,headers:{ConsistencyLevel:"eventual"}})}if(a.showMessages&&t.push({id:"message",method:"GET",url:`/me/messages?$select=sender,subject,bodyPreview,receivedDateTime,webLink&$search=${encodeURIComponent(`"${e.query}"`)}&$top=10`}),a.showChatMessages&&t.push({id:"chatMessage",url:"/search/query",method:"POST",body:{requests:[{entityTypes:["chatMessage"],query:{queryString:e.query},from:0,size:10}]},headers:{"Content-Type":"application/json"}}),a.showLists&&t.push({id:"list",url:"/search/query",method:"POST",body:{requests:[{entityTypes:["list"],query:{queryString:e.query},from:0,size:10}]},headers:{"Content-Type":"application/json"}}),0===t.length)return{results:[]};const{results:n,filters:i}=await Ye(this,Ce,"m",Oe).call(this,t,e);return n.find(e=>e.key===Ye(this,Te,"f")?.key)?.template===oe.fC.Loading&&Ye(this,je,"f").call(this,Ye(this,Te,"f")),{results:n,context:{filters:i}}}),Ve.set(this,async e=>{switch(e.action.trigger){case J.FocusChange:Ye(this,je,"f").call(this,e);break;case J.UserAction:Ye(this,Ne,"f").call(this,e);break;case J.Reload:break;default:console.warn(`Unknown action trigger: ${e.action.trigger}`)}}),this.initializeWorkflow=async e=>{if("search"!==e)throw new Error(`Attempted to initialize unknown workflow: ${e}`);await x.register({...this.config.workflows.search.homeProvider,onUserInput:Ye(this,He,"f"),onResultDispatch:Ye(this,Ve,"f")}),(0,ie.enableLogging)(),await this.connect(),super.initializeWorkflow(e)},Object.entries(r.workflows?.search?.microsoftEntityTypeConfig||{}).filter(([e,r])=>r).forEach(([e])=>{Ye(this,De,"f").add(le[e])})}async executeApiRequest(...e){return Ye(this,Ce,"m",We).call(this,()=>Ye(this,Re,"f").call(this).executeApiRequest(...e))}}Ae=new WeakMap,Ie=new WeakMap,Te=new WeakMap,Ee=new WeakMap,De=new WeakMap,$e=new WeakMap,Fe=new WeakMap,Re=new WeakMap,je=new WeakMap,Le=new WeakMap,Ge=new WeakMap,Ue=new WeakMap,Ne=new WeakMap,qe=new WeakMap,He=new WeakMap,Ve=new WeakMap,Ce=new WeakSet,We=async function(e){try{return await e()}catch(r){if(r instanceof ie.AuthTokenExpiredError)return await this.connect(),e();throw r}},ze=async function(e){return this.executeApiRequest("/v1.0/$batch","POST",{requests:e})},Oe=async function(e,r){try{const o=await Ye(this,Ce,"m",ze).call(this,e);return{filters:[...me(r,Ye(this,De,"f")),...ye(o.data.responses.find(e=>"user"===e.id)?.body?.value||[],r)],results:Ye(this,Ce,"m",Be).call(this,o,r)}}catch(e){return console.warn("Failed to execute Batch API request: ",e),{filters:[],results:[{key:Y(),title:"Error Fetching Search Results",description:"",actions:[],template:oe.fC.Error,templateContent:`Failed to execute Batch API request: ${JSON.stringify(e)}`}]}}},Be=function(e,r){let o=[];for(const t of e.data.responses)if(200===t.status)switch(t.id){case"driveItem":{const e=Pe(r),a=e.filterFiles?Me(t.body.value,e):t.body.value;o.push(...(a||[]).map(e=>({key:e.id??Y(),title:e.name??"",description:e.file?.mimeType??"",label:xe(e.name),icon:Se(e.name),data:{type:"driveItem",item:e},actions:[{name:"Launch"}],template:oe.fC.Plain,templateContent:void 0})));break}case"event":o.push(...t.body?.value?.[0]?.hitsContainers?.[0]?.hits?.filter(e=>e.resource.subject).map(e=>{const r=e.resource,o=_e(e.hitId);return{key:o,title:r.subject??"",label:"Calendar Event",icon:B(R.Microsoft365Assets.Microsoft365OutlookIcon),actions:[{name:"Launch"}],data:{type:"event",item:{...r,id:o}},template:oe.fC.Plain,templateContent:void 0}})||[]);break;case"contact":{const e=ke(r),a=we(t.body.value||[],e);o.push(...(a||[]).map(e=>({key:e.id??Y(),title:e.displayName??"",label:"Outlook contact",icon:B(R.Microsoft365Assets.Microsoft365OutlookIcon),actions:[],data:{type:"contact",item:e},template:oe.fC.Plain,templateContent:void 0})));break}case"user":{const e=ke(r),a=we(t.body.value||[],e);o.push(...(a||[]).map(e=>({key:e.id??Y(),title:e.displayName??"",label:"Teams contact",icon:B(R.Microsoft365Assets.Microsoft365TeamsIcon),actions:[],data:{type:"user",item:e},template:oe.fC.Loading,templateContent:void 0})));break}case"message":o.push(...(t.body.value||[]).map(e=>({key:e.id??Y(),title:`${e.subject??"Untitled Message"}${e.isDraft?" (Draft)":""}`,label:"Email",icon:B(R.Microsoft365Assets.Microsoft365OutlookIcon),actions:[],data:{type:"message",item:e},template:oe.fC.Plain,templateContent:void 0})));break;case"chatMessage":o.push(...t.body?.value?.[0]?.hitsContainers?.[0]?.hits?.map(e=>{const r=e.resource;return{key:r.id??Y(),title:e.summary??"Untitled Message",label:"Chat",icon:B(R.Microsoft365Assets.Microsoft365TeamsIcon),actions:[],data:{type:"chatMessage",item:r},template:oe.fC.Plain,templateContent:void 0}})||[]);break;case"list":o.push(...t.body?.value?.[0]?.hitsContainers?.[0]?.hits?.map(e=>{const r=e.resource,o=_e(e.hitId);return{key:o,title:r.displayName??"Untitled List",label:"List",actions:[{name:"Launch"}],data:{type:"list",item:{...r,id:o}},template:oe.fC.Plain,templateContent:void 0}})||[]);break;default:console.warn(`Unknown batch response id: ${t.id}`,t.body)}else console.warn("Batch API request failed: ",t);return o=o.map(e=>{if(!e.data?.item?.id)return e;const r=Ye(this,Fe,"f").get(e.data.item.id);return r?{...e,template:r.template,templateContent:r.templateContent}:e}),o.sort((e,r)=>e.title>r.title?1:-1)};var Je=o(598);const Qe={Container:"Container",Button:"Button",SplitButton:"SplitButton"},Xe={Text:"Text",Image:"Image",List:"List"},er={...Qe,...Xe};var rr,or;(or=rr||(rr={})).Primary="primary",or.Secondary="secondary",or.TextOnly="textOnly";var tr=o(710)})(),module.exports=t})();
2
2
  //# sourceMappingURL=index.js.map