@datadog/druids-test-pkg 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js ADDED
@@ -0,0 +1,39 @@
1
+ /* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0.
2
+ * This product includes software developed at Datadog (https://www.datadoghq.com/).
3
+ * Copyright 2019-Present Datadog, Inc.
4
+ */
5
+
6
+ var Ip=Object.create;var mi=Object.defineProperty;var Np=Object.getOwnPropertyDescriptor;var Dp=Object.getOwnPropertyNames;var Hp=Object.getPrototypeOf,$p=Object.prototype.hasOwnProperty;var zp=(e,t,r)=>t in e?mi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Q=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Bp=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Dp(t))!$p.call(e,n)&&n!==r&&mi(e,n,{get:()=>t[n],enumerable:!(o=Np(t,n))||o.enumerable});return e};var Z=(e,t,r)=>(r=e!=null?Ip(Hp(e)):{},Bp(t||!e||!e.__esModule?mi(r,"default",{value:e,enumerable:!0}):r,e));var Lo=(e,t,r)=>zp(e,typeof t!="symbol"?t+"":t,r);var Ts=Q((ys,Ao)=>{(function(){"use strict";var e=function(f,p){return p=p||"",f.replace(/(^|-)/g,"$1\\u"+p).replace(/,/g,"\\u"+p)},t=e("20-26,28-2F,3A-40,5B-60,7B-7E,A0-BF,D7,F7","00"),r="a-z"+e("DF-F6,F8-FF","00"),o="A-Z"+e("C0-D6,D8-DE","00"),n="A|An|And|As|At|But|By|En|For|If|In|Of|On|Or|The|To|Vs?\\.?|Via",i=function(f,p,h,v){return f=f||t,p=p||r,h=h||o,v=v||n,{capitalize:new RegExp("(^|["+f+"])(["+p+"])","g"),pascal:new RegExp("(^|["+f+"])+(["+p+h+"])","g"),fill:new RegExp("["+f+"]+(.|$)","g"),sentence:new RegExp('(^\\s*|[\\?\\!\\.]+"?\\s+"?|,\\s+")(['+p+"])","g"),improper:new RegExp("\\b("+v+")\\b","g"),relax:new RegExp("([^"+h+"])(["+h+"]*)(["+h+"])(?=[^"+h+"]|$)","g"),upper:new RegExp("^[^"+p+"]+$"),hole:/[^\s]\s[^\s]/,apostrophe:/'/g,room:new RegExp("["+f+"]")}},a=i(),s={re:a,unicodes:e,regexps:i,types:[],up:String.prototype.toUpperCase,low:String.prototype.toLowerCase,cap:function(f){return s.up.call(f.charAt(0))+f.slice(1)},decap:function(f){return s.low.call(f.charAt(0))+f.slice(1)},deapostrophe:function(f){return f.replace(a.apostrophe,"")},fill:function(f,p,h){return p!=null&&(f=f.replace(a.fill,function(v,x){return x?p+x:""})),h&&(f=s.deapostrophe(f)),f},prep:function(f,p,h,v){if(f=f==null?"":f+"",!v&&a.upper.test(f)&&(f=s.low.call(f)),!p&&!a.hole.test(f)){var x=s.fill(f," ");a.hole.test(x)&&(f=x)}return!h&&!a.room.test(f)&&(f=f.replace(a.relax,s.relax)),f},relax:function(f,p,h,v){return p+" "+(h?h+" ":"")+v}},l={_:s,of:function(f){for(var p=0,h=s.types.length;p<h;p++)if(l[s.types[p]].apply(l,arguments)===f)return s.types[p]},flip:function(f){return f.replace(/\w/g,function(p){return(p==s.up.call(p)?s.low:s.up).call(p)})},random:function(f){return f.replace(/\w/g,function(p){return(Math.round(Math.random())?s.up:s.low).call(p)})},type:function(f,p){l[f]=p,s.types.push(f)}},c={lower:function(f,p,h){return s.fill(s.low.call(s.prep(f,p)),p,h)},snake:function(f){return l.lower(f,"_",!0)},constant:function(f){return l.upper(f,"_",!0)},camel:function(f){return s.decap(l.pascal(f))},kebab:function(f){return l.lower(f,"-",!0)},upper:function(f,p,h){return s.fill(s.up.call(s.prep(f,p,!1,!0)),p,h)},capital:function(f,p,h){return s.fill(s.prep(f).replace(a.capitalize,function(v,x,y){return x+s.up.call(y)}),p,h)},header:function(f){return l.capital(f,"-",!0)},pascal:function(f){return s.fill(s.prep(f,!1,!0).replace(a.pascal,function(p,h,v){return s.up.call(v)}),"",!0)},title:function(f){return l.capital(f).replace(a.improper,function(p,h,v,x){return v>0&&v<x.lastIndexOf(" ")?s.low.call(p):p})},sentence:function(f,p,h){return f=l.lower(f).replace(a.sentence,function(v,x,y){return x+s.up.call(y)}),p&&p.forEach(function(v){f=f.replace(new RegExp("\\b"+l.lower(v)+"\\b","g"),s.cap)}),h&&h.forEach(function(v){f=f.replace(new RegExp("(\\b"+l.lower(v)+"\\. +)(\\w)"),function(x,y,g){return y+s.low.call(g)})}),f}};c.squish=c.pascal,l.default=l;for(var u in c)l.type(u,c[u]);var m=typeof m=="function"?m:function(){};m(typeof Ao=="object"&&Ao.exports?Ao.exports=l:this.Case=l)}).call(ys)});var ye=Q((pv,_o)=>{(function(){"use strict";var e={}.hasOwnProperty,t="[native code]";function r(){for(var o=[],n=0;n<arguments.length;n++){var i=arguments[n];if(i){var a=typeof i;if(a==="string"||a==="number")o.push(i);else if(Array.isArray(i)){if(i.length){var s=r.apply(null,i);s&&o.push(s)}}else if(a==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){o.push(i.toString());continue}for(var l in i)e.call(i,l)&&i[l]&&o.push(l)}}}return o.join(" ")}typeof _o<"u"&&_o.exports?(r.default=r,_o.exports=r):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return r}):window.classNames=r})()});var Os=Q((mv,ks)=>{var id=typeof Element<"u",ad=typeof Map=="function",sd=typeof Set=="function",ld=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Ho(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,o,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(o=r;o--!==0;)if(!Ho(e[o],t[o]))return!1;return!0}var i;if(ad&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(o=i.next()).done;)if(!t.has(o.value[0]))return!1;for(i=e.entries();!(o=i.next()).done;)if(!Ho(o.value[1],t.get(o.value[0])))return!1;return!0}if(sd&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(o=i.next()).done;)if(!t.has(o.value[0]))return!1;return!0}if(ld&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(o=r;o--!==0;)if(e[o]!==t[o])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(n=Object.keys(e),r=n.length,r!==Object.keys(t).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;if(id&&e instanceof Element)return!1;for(o=r;o--!==0;)if(!((n[o]==="_owner"||n[o]==="__v"||n[o]==="__o")&&e.$$typeof)&&!Ho(e[n[o]],t[n[o]]))return!1;return!0}return e!==e&&t!==t}ks.exports=function(t,r){try{return Ho(t,r)}catch(o){if((o.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw o}}});var Vi=Q((TT,Sl)=>{var Mm=Array.isArray;Sl.exports=Mm});var Cl=Q((ST,El)=>{var km=/\s/;function Om(e){for(var t=e.length;t--&&km.test(e.charAt(t)););return t}El.exports=Om});var wl=Q((ET,Rl)=>{var Pm=Cl(),Lm=/^\s+/;function Am(e){return e&&e.slice(0,Pm(e)+1).replace(Lm,"")}Rl.exports=Am});var kl=Q((CT,Ml)=>{function _m(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}Ml.exports=_m});var Pl=Q((RT,Ol)=>{var Im=typeof global=="object"&&global&&global.Object===Object&&global;Ol.exports=Im});var Al=Q((wT,Ll)=>{var Nm=Pl(),Dm=typeof self=="object"&&self&&self.Object===Object&&self,Hm=Nm||Dm||Function("return this")();Ll.exports=Hm});var Wi=Q((MT,_l)=>{var $m=Al(),zm=$m.Symbol;_l.exports=zm});var Hl=Q((kT,Dl)=>{var Il=Wi(),Nl=Object.prototype,Bm=Nl.hasOwnProperty,Fm=Nl.toString,io=Il?Il.toStringTag:void 0;function Vm(e){var t=Bm.call(e,io),r=e[io];try{e[io]=void 0;var o=!0}catch{}var n=Fm.call(e);return o&&(t?e[io]=r:delete e[io]),n}Dl.exports=Vm});var zl=Q((OT,$l)=>{var Wm=Object.prototype,jm=Wm.toString;function Gm(e){return jm.call(e)}$l.exports=Gm});var Wl=Q((PT,Vl)=>{var Bl=Wi(),Xm=Hl(),Um=zl(),qm="[object Null]",Km="[object Undefined]",Fl=Bl?Bl.toStringTag:void 0;function Zm(e){return e==null?e===void 0?Km:qm:Fl&&Fl in Object(e)?Xm(e):Um(e)}Vl.exports=Zm});var Gl=Q((LT,jl)=>{function Ym(e){return e!=null&&typeof e=="object"}jl.exports=Ym});var Ul=Q((AT,Xl)=>{var Jm=Wl(),Qm=Gl(),e0="[object Symbol]";function t0(e){return typeof e=="symbol"||Qm(e)&&Jm(e)==e0}Xl.exports=t0});var Yl=Q((_T,Zl)=>{var r0=wl(),ql=kl(),o0=Ul(),Kl=NaN,n0=/^[-+]0x[0-9a-f]+$/i,i0=/^0b[01]+$/i,a0=/^0o[0-7]+$/i,s0=parseInt;function l0(e){if(typeof e=="number")return e;if(o0(e))return Kl;if(ql(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ql(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=r0(e);var r=i0.test(e);return r||a0.test(e)?s0(e.slice(2),r?2:8):n0.test(e)?Kl:+e}Zl.exports=l0});var ef=Q((IT,Ql)=>{var f0=Yl(),Jl=1/0,u0=17976931348623157e292;function c0(e){if(!e)return e===0?e:0;if(e=f0(e),e===Jl||e===-Jl){var t=e<0?-1:1;return t*u0}return e===e?e:0}Ql.exports=c0});var rf=Q((NT,tf)=>{var p0=ef();function d0(e){var t=p0(e),r=t%1;return t===t?r?t-r:t:0}tf.exports=d0});var nf=Q((DT,of)=>{var m0=rf(),h0="Expected a function";function g0(e,t){var r;if(typeof t!="function")throw new TypeError(h0);return e=m0(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=void 0),r}}of.exports=g0});var sf=Q((HT,af)=>{var b0=nf();function v0(e){return b0(2,e)}af.exports=v0});var mf=Q(Y=>{"use strict";var Gi=Symbol.for("react.element"),Xi=Symbol.for("react.portal"),Zo=Symbol.for("react.fragment"),Yo=Symbol.for("react.strict_mode"),Jo=Symbol.for("react.profiler"),Qo=Symbol.for("react.provider"),en=Symbol.for("react.context"),M0=Symbol.for("react.server_context"),tn=Symbol.for("react.forward_ref"),rn=Symbol.for("react.suspense"),on=Symbol.for("react.suspense_list"),nn=Symbol.for("react.memo"),an=Symbol.for("react.lazy"),k0=Symbol.for("react.offscreen"),df;df=Symbol.for("react.module.reference");function qe(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Gi:switch(e=e.type,e){case Zo:case Jo:case Yo:case rn:case on:return e;default:switch(e=e&&e.$$typeof,e){case M0:case en:case tn:case an:case nn:case Qo:return e;default:return t}}case Xi:return t}}}Y.ContextConsumer=en;Y.ContextProvider=Qo;Y.Element=Gi;Y.ForwardRef=tn;Y.Fragment=Zo;Y.Lazy=an;Y.Memo=nn;Y.Portal=Xi;Y.Profiler=Jo;Y.StrictMode=Yo;Y.Suspense=rn;Y.SuspenseList=on;Y.isAsyncMode=function(){return!1};Y.isConcurrentMode=function(){return!1};Y.isContextConsumer=function(e){return qe(e)===en};Y.isContextProvider=function(e){return qe(e)===Qo};Y.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Gi};Y.isForwardRef=function(e){return qe(e)===tn};Y.isFragment=function(e){return qe(e)===Zo};Y.isLazy=function(e){return qe(e)===an};Y.isMemo=function(e){return qe(e)===nn};Y.isPortal=function(e){return qe(e)===Xi};Y.isProfiler=function(e){return qe(e)===Jo};Y.isStrictMode=function(e){return qe(e)===Yo};Y.isSuspense=function(e){return qe(e)===rn};Y.isSuspenseList=function(e){return qe(e)===on};Y.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Zo||e===Jo||e===Yo||e===rn||e===on||e===k0||typeof e=="object"&&e!==null&&(e.$$typeof===an||e.$$typeof===nn||e.$$typeof===Qo||e.$$typeof===en||e.$$typeof===tn||e.$$typeof===df||e.getModuleId!==void 0)};Y.typeOf=qe});var gf=Q((r5,hf)=>{"use strict";hf.exports=mf()});var Lf=Q(()=>{});var yu=Q(ct=>{"use strict";var th=ct&&ct.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var o=Array(e),n=0,t=0;t<r;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,n++)o[n]=i[a];return o};Object.defineProperty(ct,"__esModule",{value:!0});var hu=(function(){function e(t,r,o){this.name=t,this.version=r,this.os=o}return e})();ct.BrowserInfo=hu;var gu=(function(){function e(t){this.version=t,this.name="node",this.os=process.platform}return e})();ct.NodeInfo=gu;var bu=(function(){function e(){this.bot=!0,this.name="bot",this.version=null,this.os=null}return e})();ct.BotInfo=bu;var rh=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,oh=/(nuhk)|(Googlebot)|(Yammybot)|(Openbot)|(Slurp)|(MSNBot)|(Ask Jeeves\/Teoma)|(ia_archiver)/,du=3,nh=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["vivaldi",/Vivaldi\/([0-9\.]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/Edg\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",rh]],mu=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/],["Search Bot",oh]];function ih(e){return e?la(e):typeof navigator<"u"?la(navigator.userAgent):xu()}ct.detect=ih;function la(e){var t=e!==""&&nh.reduce(function(i,a){var s=a[0],l=a[1];if(i)return i;var c=l.exec(e);return!!c&&[s,c]},!1);if(!t)return null;var r=t[0],o=t[1];if(r==="searchbot")return new bu;var n=o[1]&&o[1].split(/[._]/).slice(0,3);return n?n.length<du&&(n=th(n,ah(du-n.length))):n=[],new hu(r,n.join("."),vu(e))}ct.parseUserAgent=la;function vu(e){for(var t=0,r=mu.length;t<r;t++){var o=mu[t],n=o[0],i=o[1],a=i.test(e);if(a)return n}return null}ct.detectOS=vu;function xu(){var e=typeof process<"u"&&process.version;return e?new gu(process.version.slice(1)):null}ct.getNodeVersion=xu;function ah(e){for(var t=[],r=0;r<e;r++)t.push("0");return t}});var Su=Q(()=>{});var wu=Q(()=>{});var up=Q(()=>{});var Rp=Q(()=>{});var ms=Z(Ts()),ci=Z(ye());import*as B from"react";var Es=(function(){if(typeof Map<"u")return Map;function e(t,r){var o=-1;return t.some(function(n,i){return n[0]===r?(o=i,!0):!1}),o}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var o=e(this.__entries__,r),n=this.__entries__[o];return n&&n[1]},t.prototype.set=function(r,o){var n=e(this.__entries__,r);~n?this.__entries__[n][1]=o:this.__entries__.push([r,o])},t.prototype.delete=function(r){var o=this.__entries__,n=e(o,r);~n&&o.splice(n,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,o){o===void 0&&(o=null);for(var n=0,i=this.__entries__;n<i.length;n++){var a=i[n];r.call(o,a[1],a[0])}},t})()})(),hi=typeof window<"u"&&typeof document<"u"&&window.document===document,Io=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),Fp=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Io):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),Vp=2;function Wp(e,t){var r=!1,o=!1,n=0;function i(){r&&(r=!1,e()),o&&s()}function a(){Fp(i)}function s(){var l=Date.now();if(r){if(l-n<Vp)return;o=!0}else r=!0,o=!1,setTimeout(a,t);n=l}return s}var jp=20,Gp=["top","right","bottom","left","width","height","size","weight"],Xp=typeof MutationObserver<"u",Up=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Wp(this.refresh.bind(this),jp)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,o=r.indexOf(t);~o&&r.splice(o,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!hi||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Xp?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!hi||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,o=r===void 0?"":r,n=Gp.some(function(i){return!!~o.indexOf(i)});n&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),Cs=(function(e,t){for(var r=0,o=Object.keys(t);r<o.length;r++){var n=o[r];Object.defineProperty(e,n,{value:t[n],enumerable:!1,writable:!1,configurable:!0})}return e}),Sr=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Io}),Rs=Do(0,0,0,0);function No(e){return parseFloat(e)||0}function Ss(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(o,n){var i=e["border-"+n+"-width"];return o+No(i)},0)}function qp(e){for(var t=["top","right","bottom","left"],r={},o=0,n=t;o<n.length;o++){var i=n[o],a=e["padding-"+i];r[i]=No(a)}return r}function Kp(e){var t=e.getBBox();return Do(0,0,t.width,t.height)}function Zp(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return Rs;var o=Sr(e).getComputedStyle(e),n=qp(o),i=n.left+n.right,a=n.top+n.bottom,s=No(o.width),l=No(o.height);if(o.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=Ss(o,"left","right")+i),Math.round(l+a)!==r&&(l-=Ss(o,"top","bottom")+a)),!Jp(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-r;Math.abs(c)!==1&&(s-=c),Math.abs(u)!==1&&(l-=u)}return Do(n.left,n.top,s,l)}var Yp=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Sr(e).SVGGraphicsElement}:function(e){return e instanceof Sr(e).SVGElement&&typeof e.getBBox=="function"}})();function Jp(e){return e===Sr(e).document.documentElement}function Qp(e){return hi?Yp(e)?Kp(e):Zp(e):Rs}function ed(e){var t=e.x,r=e.y,o=e.width,n=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return Cs(a,{x:t,y:r,width:o,height:n,top:r,right:t+o,bottom:n+r,left:t}),a}function Do(e,t,r,o){return{x:e,y:t,width:r,height:o}}var td=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Do(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Qp(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e})(),rd=(function(){function e(t,r){var o=ed(r);Cs(this,{target:t,contentRect:o})}return e})(),od=(function(){function e(t,r,o){if(this.activeObservations_=[],this.observations_=new Es,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=o}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Sr(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new td(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Sr(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(o){return new rd(o.target,o.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),ws=typeof WeakMap<"u"?new WeakMap:new Es,Ms=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=Up.getInstance(),o=new od(t,r,this);ws.set(this,o)}return e})();["observe","unobserve","disconnect"].forEach(function(e){Ms.prototype[e]=function(){var t;return(t=ws.get(this))[e].apply(t,arguments)}});var nd=(function(){return typeof Io.ResizeObserver<"u"?Io.ResizeObserver:Ms})(),gi=nd;var Ps=Z(Os());import{useMemo as fd,useRef as ud}from"react";var Kr=e=>{let t=ud(e);return fd(()=>{let r=t.current;return(0,Ps.default)(e,r)?r:(t.current=e,e)},[e])};var fe="top",ge="bottom",me="right",ce="left",$o="auto",zt=[fe,ge,me,ce],Ot="start",tr="end",Ls="clippingParents",zo="viewport",Er="popper",As="reference",bi=zt.reduce(function(e,t){return e.concat([t+"-"+Ot,t+"-"+tr])},[]),Bo=[].concat(zt,[$o]).reduce(function(e,t){return e.concat([t,t+"-"+Ot,t+"-"+tr])},[]),cd="beforeRead",pd="read",dd="afterRead",md="beforeMain",hd="main",gd="afterMain",bd="beforeWrite",vd="write",xd="afterWrite",_s=[cd,pd,dd,md,hd,gd,bd,vd,xd];function Te(e){return e?(e.nodeName||"").toLowerCase():null}function ae(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ge(e){var t=ae(e).Element;return e instanceof t||e instanceof Element}function be(e){var t=ae(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Cr(e){if(typeof ShadowRoot>"u")return!1;var t=ae(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function yd(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},n=t.attributes[r]||{},i=t.elements[r];!be(i)||!Te(i)||(Object.assign(i.style,o),Object.keys(n).forEach(function(a){var s=n[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function Td(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(o){var n=t.elements[o],i=t.attributes[o]||{},a=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),s=a.reduce(function(l,c){return l[c]="",l},{});!be(n)||!Te(n)||(Object.assign(n.style,s),Object.keys(i).forEach(function(l){n.removeAttribute(l)}))})}}var Zr={name:"applyStyles",enabled:!0,phase:"write",fn:yd,effect:Td,requires:["computeStyles"]};function Se(e){return e.split("-")[0]}var at=Math.max,rr=Math.min,Pt=Math.round;function Rr(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Yr(){return!/^((?!chrome|android).)*safari/i.test(Rr())}function Xe(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),n=1,i=1;t&&be(e)&&(n=e.offsetWidth>0&&Pt(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Pt(o.height)/e.offsetHeight||1);var a=Ge(e)?ae(e):window,s=a.visualViewport,l=!Yr()&&r,c=(o.left+(l&&s?s.offsetLeft:0))/n,u=(o.top+(l&&s?s.offsetTop:0))/i,m=o.width/n,f=o.height/i;return{width:m,height:f,top:u,right:c+m,bottom:u+f,left:c,x:c,y:u}}function or(e){var t=Xe(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function Jr(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Cr(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Ae(e){return ae(e).getComputedStyle(e)}function vi(e){return["table","td","th"].indexOf(Te(e))>=0}function Me(e){return((Ge(e)?e.ownerDocument:e.document)||window.document).documentElement}function Lt(e){return Te(e)==="html"?e:e.assignedSlot||e.parentNode||(Cr(e)?e.host:null)||Me(e)}function Is(e){return!be(e)||Ae(e).position==="fixed"?null:e.offsetParent}function Sd(e){var t=/firefox/i.test(Rr()),r=/Trident/i.test(Rr());if(r&&be(e)){var o=Ae(e);if(o.position==="fixed")return null}var n=Lt(e);for(Cr(n)&&(n=n.host);be(n)&&["html","body"].indexOf(Te(n))<0;){var i=Ae(n);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return n;n=n.parentNode}return null}function st(e){for(var t=ae(e),r=Is(e);r&&vi(r)&&Ae(r).position==="static";)r=Is(r);return r&&(Te(r)==="html"||Te(r)==="body"&&Ae(r).position==="static")?t:r||Sd(e)||t}function nr(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ir(e,t,r){return at(e,rr(t,r))}function Ns(e,t,r){var o=ir(e,t,r);return o>r?r:o}function Qr(){return{top:0,right:0,bottom:0,left:0}}function eo(e){return Object.assign({},Qr(),e)}function to(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var Ed=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,eo(typeof t!="number"?t:to(t,zt))};function Cd(e){var t,r=e.state,o=e.name,n=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Se(r.placement),l=nr(s),c=[ce,me].indexOf(s)>=0,u=c?"height":"width";if(!(!i||!a)){var m=Ed(n.padding,r),f=or(i),p=l==="y"?fe:ce,h=l==="y"?ge:me,v=r.rects.reference[u]+r.rects.reference[l]-a[l]-r.rects.popper[u],x=a[l]-r.rects.reference[l],y=st(i),g=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,C=v/2-x/2,d=m[p],w=g-f[u]-m[h],S=g/2-f[u]/2+C,P=ir(d,S,w),D=l;r.modifiersData[o]=(t={},t[D]=P,t.centerOffset=P-S,t)}}function Rd(e){var t=e.state,r=e.options,o=r.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||Jr(t.elements.popper,n)&&(t.elements.arrow=n))}var Ds={name:"arrow",enabled:!0,phase:"main",fn:Cd,effect:Rd,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ue(e){return e.split("-")[1]}var wd={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Md(e,t){var r=e.x,o=e.y,n=t.devicePixelRatio||1;return{x:Pt(r*n)/n||0,y:Pt(o*n)/n||0}}function Hs(e){var t,r=e.popper,o=e.popperRect,n=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,m=e.isFixed,f=a.x,p=f===void 0?0:f,h=a.y,v=h===void 0?0:h,x=typeof u=="function"?u({x:p,y:v}):{x:p,y:v};p=x.x,v=x.y;var y=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),C=ce,d=fe,w=window;if(c){var S=st(r),P="clientHeight",D="clientWidth";if(S===ae(r)&&(S=Me(r),Ae(S).position!=="static"&&s==="absolute"&&(P="scrollHeight",D="scrollWidth")),S=S,n===fe||(n===ce||n===me)&&i===tr){d=ge;var I=m&&S===w&&w.visualViewport?w.visualViewport.height:S[P];v-=I-o.height,v*=l?1:-1}if(n===ce||(n===fe||n===ge)&&i===tr){C=me;var O=m&&S===w&&w.visualViewport?w.visualViewport.width:S[D];p-=O-o.width,p*=l?1:-1}}var M=Object.assign({position:s},c&&wd),k=u===!0?Md({x:p,y:v},ae(r)):{x:p,y:v};if(p=k.x,v=k.y,l){var N;return Object.assign({},M,(N={},N[d]=g?"0":"",N[C]=y?"0":"",N.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",N))}return Object.assign({},M,(t={},t[d]=g?v+"px":"",t[C]=y?p+"px":"",t.transform="",t))}function kd(e){var t=e.state,r=e.options,o=r.gpuAcceleration,n=o===void 0?!0:o,i=r.adaptive,a=i===void 0?!0:i,s=r.roundOffsets,l=s===void 0?!0:s,c={placement:Se(t.placement),variation:Ue(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Hs(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Hs(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var $s={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:kd,data:{}};var Fo={passive:!0};function Od(e){var t=e.state,r=e.instance,o=e.options,n=o.scroll,i=n===void 0?!0:n,a=o.resize,s=a===void 0?!0:a,l=ae(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",r.update,Fo)}),s&&l.addEventListener("resize",r.update,Fo),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",r.update,Fo)}),s&&l.removeEventListener("resize",r.update,Fo)}}var zs={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Od,data:{}};var Pd={left:"right",right:"left",bottom:"top",top:"bottom"};function wr(e){return e.replace(/left|right|bottom|top/g,function(t){return Pd[t]})}var Ld={start:"end",end:"start"};function Vo(e){return e.replace(/start|end/g,function(t){return Ld[t]})}function ar(e){var t=ae(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function sr(e){return Xe(Me(e)).left+ar(e).scrollLeft}function xi(e,t){var r=ae(e),o=Me(e),n=r.visualViewport,i=o.clientWidth,a=o.clientHeight,s=0,l=0;if(n){i=n.width,a=n.height;var c=Yr();(c||!c&&t==="fixed")&&(s=n.offsetLeft,l=n.offsetTop)}return{width:i,height:a,x:s+sr(e),y:l}}function yi(e){var t,r=Me(e),o=ar(e),n=(t=e.ownerDocument)==null?void 0:t.body,i=at(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),a=at(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),s=-o.scrollLeft+sr(e),l=-o.scrollTop;return Ae(n||r).direction==="rtl"&&(s+=at(r.clientWidth,n?n.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function lr(e){var t=Ae(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Wo(e){return["html","body","#document"].indexOf(Te(e))>=0?e.ownerDocument.body:be(e)&&lr(e)?e:Wo(Lt(e))}function Bt(e,t){var r;t===void 0&&(t=[]);var o=Wo(e),n=o===((r=e.ownerDocument)==null?void 0:r.body),i=ae(o),a=n?[i].concat(i.visualViewport||[],lr(o)?o:[]):o,s=t.concat(a);return n?s:s.concat(Bt(Lt(a)))}function Mr(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ad(e,t){var r=Xe(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Bs(e,t,r){return t===zo?Mr(xi(e,r)):Ge(t)?Ad(t,r):Mr(yi(Me(e)))}function _d(e){var t=Bt(Lt(e)),r=["absolute","fixed"].indexOf(Ae(e).position)>=0,o=r&&be(e)?st(e):e;return Ge(o)?t.filter(function(n){return Ge(n)&&Jr(n,o)&&Te(n)!=="body"}):[]}function Ti(e,t,r,o){var n=t==="clippingParents"?_d(e):[].concat(t),i=[].concat(n,[r]),a=i[0],s=i.reduce(function(l,c){var u=Bs(e,c,o);return l.top=at(u.top,l.top),l.right=rr(u.right,l.right),l.bottom=rr(u.bottom,l.bottom),l.left=at(u.left,l.left),l},Bs(e,a,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ro(e){var t=e.reference,r=e.element,o=e.placement,n=o?Se(o):null,i=o?Ue(o):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(n){case fe:l={x:a,y:t.y-r.height};break;case ge:l={x:a,y:t.y+t.height};break;case me:l={x:t.x+t.width,y:s};break;case ce:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var c=n?nr(n):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Ot:l[c]=l[c]-(t[u]/2-r[u]/2);break;case tr:l[c]=l[c]+(t[u]/2-r[u]/2);break;default:}}return l}function lt(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=o===void 0?e.placement:o,i=r.strategy,a=i===void 0?e.strategy:i,s=r.boundary,l=s===void 0?Ls:s,c=r.rootBoundary,u=c===void 0?zo:c,m=r.elementContext,f=m===void 0?Er:m,p=r.altBoundary,h=p===void 0?!1:p,v=r.padding,x=v===void 0?0:v,y=eo(typeof x!="number"?x:to(x,zt)),g=f===Er?As:Er,C=e.rects.popper,d=e.elements[h?g:f],w=Ti(Ge(d)?d:d.contextElement||Me(e.elements.popper),l,u,a),S=Xe(e.elements.reference),P=ro({reference:S,element:C,strategy:"absolute",placement:n}),D=Mr(Object.assign({},C,P)),I=f===Er?D:S,O={top:w.top-I.top+y.top,bottom:I.bottom-w.bottom+y.bottom,left:w.left-I.left+y.left,right:I.right-w.right+y.right},M=e.modifiersData.offset;if(f===Er&&M){var k=M[n];Object.keys(O).forEach(function(N){var q=[me,ge].indexOf(N)>=0?1:-1,re=[fe,ge].indexOf(N)>=0?"y":"x";O[N]+=k[re]*q})}return O}function Si(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?Bo:l,u=Ue(o),m=u?s?bi:bi.filter(function(h){return Ue(h)===u}):zt,f=m.filter(function(h){return c.indexOf(h)>=0});f.length===0&&(f=m);var p=f.reduce(function(h,v){return h[v]=lt(e,{placement:v,boundary:n,rootBoundary:i,padding:a})[Se(v)],h},{});return Object.keys(p).sort(function(h,v){return p[h]-p[v]})}function Id(e){if(Se(e)===$o)return[];var t=wr(e);return[Vo(e),t,Vo(t)]}function Nd(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var n=r.mainAxis,i=n===void 0?!0:n,a=r.altAxis,s=a===void 0?!0:a,l=r.fallbackPlacements,c=r.padding,u=r.boundary,m=r.rootBoundary,f=r.altBoundary,p=r.flipVariations,h=p===void 0?!0:p,v=r.allowedAutoPlacements,x=t.options.placement,y=Se(x),g=y===x,C=l||(g||!h?[wr(x)]:Id(x)),d=[x].concat(C).reduce(function(ue,de){return ue.concat(Se(de)===$o?Si(t,{placement:de,boundary:u,rootBoundary:m,padding:c,flipVariations:h,allowedAutoPlacements:v}):de)},[]),w=t.rects.reference,S=t.rects.popper,P=new Map,D=!0,I=d[0],O=0;O<d.length;O++){var M=d[O],k=Se(M),N=Ue(M)===Ot,q=[fe,ge].indexOf(k)>=0,re=q?"width":"height",H=lt(t,{placement:M,boundary:u,rootBoundary:m,altBoundary:f,padding:c}),A=q?N?me:ce:N?ge:fe;w[re]>S[re]&&(A=wr(A));var $=wr(A),ie=[];if(i&&ie.push(H[k]<=0),s&&ie.push(H[A]<=0,H[$]<=0),ie.every(function(ue){return ue})){I=M,D=!1;break}P.set(M,ie)}if(D)for(var oe=h?3:1,ne=function(de){var K=d.find(function(Ie){var Oe=P.get(Ie);if(Oe)return Oe.slice(0,de).every(function(dt){return dt})});if(K)return I=K,"break"},U=oe;U>0;U--){var pe=ne(U);if(pe==="break")break}t.placement!==I&&(t.modifiersData[o]._skip=!0,t.placement=I,t.reset=!0)}}var Fs={name:"flip",enabled:!0,phase:"main",fn:Nd,requiresIfExists:["offset"],data:{_skip:!1}};function Vs(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Ws(e){return[fe,me,ge,ce].some(function(t){return e[t]>=0})}function Dd(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,i=t.modifiersData.preventOverflow,a=lt(t,{elementContext:"reference"}),s=lt(t,{altBoundary:!0}),l=Vs(a,o),c=Vs(s,n,i),u=Ws(l),m=Ws(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":m})}var js={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Dd};function Hd(e,t,r){var o=Se(e),n=[ce,fe].indexOf(o)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*n,[ce,me].indexOf(o)>=0?{x:s,y:a}:{x:a,y:s}}function $d(e){var t=e.state,r=e.options,o=e.name,n=r.offset,i=n===void 0?[0,0]:n,a=Bo.reduce(function(u,m){return u[m]=Hd(m,t.rects,i),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=a}var Gs={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:$d};function zd(e){var t=e.state,r=e.name;t.modifiersData[r]=ro({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Xs={name:"popperOffsets",enabled:!0,phase:"read",fn:zd,data:{}};function Ei(e){return e==="x"?"y":"x"}function Bd(e){var t=e.state,r=e.options,o=e.name,n=r.mainAxis,i=n===void 0?!0:n,a=r.altAxis,s=a===void 0?!1:a,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,m=r.padding,f=r.tether,p=f===void 0?!0:f,h=r.tetherOffset,v=h===void 0?0:h,x=lt(t,{boundary:l,rootBoundary:c,padding:m,altBoundary:u}),y=Se(t.placement),g=Ue(t.placement),C=!g,d=nr(y),w=Ei(d),S=t.modifiersData.popperOffsets,P=t.rects.reference,D=t.rects.popper,I=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,O=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(S){if(i){var N,q=d==="y"?fe:ce,re=d==="y"?ge:me,H=d==="y"?"height":"width",A=S[d],$=A+x[q],ie=A-x[re],oe=p?-D[H]/2:0,ne=g===Ot?P[H]:D[H],U=g===Ot?-D[H]:-P[H],pe=t.elements.arrow,ue=p&&pe?or(pe):{width:0,height:0},de=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Qr(),K=de[q],Ie=de[re],Oe=ir(0,P[H],ue[H]),dt=C?P[H]/2-oe-Oe-K-O.mainAxis:ne-Oe-K-O.mainAxis,Pe=C?-P[H]/2+oe+Oe+Ie+O.mainAxis:U+Oe+Ie+O.mainAxis,Le=t.elements.arrow&&st(t.elements.arrow),Ct=Le?d==="y"?Le.clientTop||0:Le.clientLeft||0:0,ve=(N=M?.[d])!=null?N:0,Dt=A+dt-ve-Ct,Rt=A+Pe-ve,mt=ir(p?rr($,Dt):$,A,p?at(ie,Rt):ie);S[d]=mt,k[d]=mt-A}if(s){var Be,wt=d==="x"?fe:ce,Mt=d==="x"?ge:me,W=S[w],J=w==="y"?"height":"width",Re=W+x[wt],le=W-x[Mt],it=[fe,ce].indexOf(y)!==-1,je=(Be=M?.[w])!=null?Be:0,Ne=it?Re:W-P[J]-D[J]-je+O.altAxis,Fe=it?W+P[J]+D[J]-je-O.altAxis:le,we=p&&it?Ns(Ne,W,Fe):ir(p?Ne:Re,W,p?Fe:le);S[w]=we,k[w]=we-W}t.modifiersData[o]=k}}var Us={name:"preventOverflow",enabled:!0,phase:"main",fn:Bd,requiresIfExists:["offset"]};function Ci(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ri(e){return e===ae(e)||!be(e)?ar(e):Ci(e)}function Fd(e){var t=e.getBoundingClientRect(),r=Pt(t.width)/e.offsetWidth||1,o=Pt(t.height)/e.offsetHeight||1;return r!==1||o!==1}function wi(e,t,r){r===void 0&&(r=!1);var o=be(t),n=be(t)&&Fd(t),i=Me(t),a=Xe(e,n,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!r)&&((Te(t)!=="body"||lr(i))&&(s=Ri(t)),be(t)?(l=Xe(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=sr(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Vd(e){var t=new Map,r=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function n(i){r.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&n(l)}}),o.push(i)}return e.forEach(function(i){r.has(i.name)||n(i)}),o}function Mi(e){var t=Vd(e);return _s.reduce(function(r,o){return r.concat(t.filter(function(n){return n.phase===o}))},[])}function ki(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Oi(e){var t=e.reduce(function(r,o){var n=r[o.name];return r[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,r},{});return Object.keys(t).map(function(r){return t[r]})}var qs={placement:"bottom",modifiers:[],strategy:"absolute"};function Ks(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function Zs(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,o=r===void 0?[]:r,n=t.defaultOptions,i=n===void 0?qs:n;return function(s,l,c){c===void 0&&(c=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},qs,i),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},m=[],f=!1,p={state:u,setOptions:function(y){var g=typeof y=="function"?y(u.options):y;v(),u.options=Object.assign({},i,u.options,g),u.scrollParents={reference:Ge(s)?Bt(s):s.contextElement?Bt(s.contextElement):[],popper:Bt(l)};var C=Mi(Oi([].concat(o,u.options.modifiers)));return u.orderedModifiers=C.filter(function(d){return d.enabled}),h(),p.update()},forceUpdate:function(){if(!f){var y=u.elements,g=y.reference,C=y.popper;if(Ks(g,C)){u.rects={reference:wi(g,st(C),u.options.strategy==="fixed"),popper:or(C)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(O){return u.modifiersData[O.name]=Object.assign({},O.data)});for(var d=0;d<u.orderedModifiers.length;d++){if(u.reset===!0){u.reset=!1,d=-1;continue}var w=u.orderedModifiers[d],S=w.fn,P=w.options,D=P===void 0?{}:P,I=w.name;typeof S=="function"&&(u=S({state:u,options:D,name:I,instance:p})||u)}}}},update:ki(function(){return new Promise(function(x){p.forceUpdate(),x(u)})}),destroy:function(){v(),f=!0}};if(!Ks(s,l))return p;p.setOptions(c).then(function(x){!f&&c.onFirstUpdate&&c.onFirstUpdate(x)});function h(){u.orderedModifiers.forEach(function(x){var y=x.name,g=x.options,C=g===void 0?{}:g,d=x.effect;if(typeof d=="function"){var w=d({state:u,name:y,instance:p,options:C}),S=function(){};m.push(w||S)}})}function v(){m.forEach(function(x){return x()}),m=[]}return p}}var Wd=[zs,Xs,$s,Zr,Gs,Fs,Us,Ds,js],Pi=Zs({defaultModifiers:Wd});var jd="tippy-box",al="tippy-content",Gd="tippy-backdrop",sl="tippy-arrow",ll="tippy-svg-arrow",fr={passive:!0,capture:!0},fl=function(){return document.body};function Li(e,t,r){if(Array.isArray(e)){var o=e[t];return o??(Array.isArray(r)?r[t]:r)}return e}function Hi(e,t){var r={}.toString.call(e);return r.indexOf("[object")===0&&r.indexOf(t+"]")>-1}function ul(e,t){return typeof e=="function"?e.apply(void 0,t):e}function Ys(e,t){if(t===0)return e;var r;return function(o){clearTimeout(r),r=setTimeout(function(){e(o)},t)}}function Xd(e){return e.split(/\s+/).filter(Boolean)}function kr(e){return[].concat(e)}function Js(e,t){e.indexOf(t)===-1&&e.push(t)}function Ud(e){return e.filter(function(t,r){return e.indexOf(t)===r})}function qd(e){return e.split("-")[0]}function Go(e){return[].slice.call(e)}function Qs(e){return Object.keys(e).reduce(function(t,r){return e[r]!==void 0&&(t[r]=e[r]),t},{})}function oo(){return document.createElement("div")}function Xo(e){return["Element","Fragment"].some(function(t){return Hi(e,t)})}function Kd(e){return Hi(e,"NodeList")}function Zd(e){return Hi(e,"MouseEvent")}function Yd(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function Jd(e){return Xo(e)?[e]:Kd(e)?Go(e):Array.isArray(e)?e:Go(document.querySelectorAll(e))}function Ai(e,t){e.forEach(function(r){r&&(r.style.transitionDuration=t+"ms")})}function el(e,t){e.forEach(function(r){r&&r.setAttribute("data-state",t)})}function Qd(e){var t,r=kr(e),o=r[0];return o!=null&&(t=o.ownerDocument)!=null&&t.body?o.ownerDocument:document}function em(e,t){var r=t.clientX,o=t.clientY;return e.every(function(n){var i=n.popperRect,a=n.popperState,s=n.props,l=s.interactiveBorder,c=qd(a.placement),u=a.modifiersData.offset;if(!u)return!0;var m=c==="bottom"?u.top.y:0,f=c==="top"?u.bottom.y:0,p=c==="right"?u.left.x:0,h=c==="left"?u.right.x:0,v=i.top-o+m>l,x=o-i.bottom-f>l,y=i.left-r+p>l,g=r-i.right-h>l;return v||x||y||g})}function _i(e,t,r){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(n){e[o](n,r)})}function tl(e,t){for(var r=t;r;){var o;if(e.contains(r))return!0;r=r.getRootNode==null||(o=r.getRootNode())==null?void 0:o.host}return!1}var gt={isTouch:!1},rl=0;function tm(){gt.isTouch||(gt.isTouch=!0,window.performance&&document.addEventListener("mousemove",cl))}function cl(){var e=performance.now();e-rl<20&&(gt.isTouch=!1,document.removeEventListener("mousemove",cl)),rl=e}function rm(){var e=document.activeElement;if(Yd(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function om(){document.addEventListener("touchstart",tm,fr),window.addEventListener("blur",rm)}var nm=typeof window<"u"&&typeof document<"u",im=nm?!!window.msCrypto:!1;var am={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},sm={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},ft=Object.assign({appendTo:fl,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},am,sm),lm=Object.keys(ft),fm=function(t){var r=Object.keys(t);r.forEach(function(o){ft[o]=t[o]})};function pl(e){var t=e.plugins||[],r=t.reduce(function(o,n){var i=n.name,a=n.defaultValue;if(i){var s;o[i]=e[i]!==void 0?e[i]:(s=ft[i])!=null?s:a}return o},{});return Object.assign({},e,r)}function um(e,t){var r=t?Object.keys(pl(Object.assign({},ft,{plugins:t}))):lm,o=r.reduce(function(n,i){var a=(e.getAttribute("data-tippy-"+i)||"").trim();if(!a)return n;if(i==="content")n[i]=a;else try{n[i]=JSON.parse(a)}catch{n[i]=a}return n},{});return o}function ol(e,t){var r=Object.assign({},t,{content:ul(t.content,[e])},t.ignoreAttributes?{}:um(e,t.plugins));return r.aria=Object.assign({},ft.aria,r.aria),r.aria={expanded:r.aria.expanded==="auto"?t.interactive:r.aria.expanded,content:r.aria.content==="auto"?t.interactive?null:"describedby":r.aria.content},r}var cm=function(){return"innerHTML"};function Ni(e,t){e[cm()]=t}function nl(e){var t=oo();return e===!0?t.className=sl:(t.className=ll,Xo(e)?t.appendChild(e):Ni(t,e)),t}function il(e,t){Xo(t.content)?(Ni(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?Ni(e,t.content):e.textContent=t.content)}function Di(e){var t=e.firstElementChild,r=Go(t.children);return{box:t,content:r.find(function(o){return o.classList.contains(al)}),arrow:r.find(function(o){return o.classList.contains(sl)||o.classList.contains(ll)}),backdrop:r.find(function(o){return o.classList.contains(Gd)})}}function dl(e){var t=oo(),r=oo();r.className=jd,r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var o=oo();o.className=al,o.setAttribute("data-state","hidden"),il(o,e.props),t.appendChild(r),r.appendChild(o),n(e.props,e.props);function n(i,a){var s=Di(t),l=s.box,c=s.content,u=s.arrow;a.theme?l.setAttribute("data-theme",a.theme):l.removeAttribute("data-theme"),typeof a.animation=="string"?l.setAttribute("data-animation",a.animation):l.removeAttribute("data-animation"),a.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?l.setAttribute("role",a.role):l.removeAttribute("role"),(i.content!==a.content||i.allowHTML!==a.allowHTML)&&il(c,e.props),a.arrow?u?i.arrow!==a.arrow&&(l.removeChild(u),l.appendChild(nl(a.arrow))):l.appendChild(nl(a.arrow)):u&&l.removeChild(u)}return{popper:t,onUpdate:n}}dl.$$tippy=!0;var pm=1,jo=[],Ii=[];function dm(e,t){var r=ol(e,Object.assign({},ft,pl(Qs(t)))),o,n,i,a=!1,s=!1,l=!1,c=!1,u,m,f,p=[],h=Ys(Dt,r.interactiveDebounce),v,x=pm++,y=null,g=Ud(r.plugins),C={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},d={id:x,reference:e,popper:oo(),popperInstance:y,props:r,state:C,plugins:g,clearDelayTimeouts:Ne,setProps:Fe,setContent:we,show:Ht,hide:gr,hideWithInteractivity:ko,enable:it,disable:je,unmount:br,destroy:vr};if(!r.render)return d;var w=r.render(d),S=w.popper,P=w.onUpdate;S.setAttribute("data-tippy-root",""),S.id="tippy-"+d.id,d.popper=S,e._tippy=d,S._tippy=d;var D=g.map(function(b){return b.fn(d)}),I=e.hasAttribute("aria-expanded");return Le(),oe(),A(),$("onCreate",[d]),r.showOnCreate&&Re(),S.addEventListener("mouseenter",function(){d.props.interactive&&d.state.isVisible&&d.clearDelayTimeouts()}),S.addEventListener("mouseleave",function(){d.props.interactive&&d.props.trigger.indexOf("mouseenter")>=0&&q().addEventListener("mousemove",h)}),d;function O(){var b=d.props.touch;return Array.isArray(b)?b:[b,0]}function M(){return O()[0]==="hold"}function k(){var b;return!!((b=d.props.render)!=null&&b.$$tippy)}function N(){return v||e}function q(){var b=N().parentNode;return b?Qd(b):document}function re(){return Di(S)}function H(b){return d.state.isMounted&&!d.state.isVisible||gt.isTouch||u&&u.type==="focus"?0:Li(d.props.delay,b?0:1,ft.delay)}function A(b){b===void 0&&(b=!1),S.style.pointerEvents=d.props.interactive&&!b?"":"none",S.style.zIndex=""+d.props.zIndex}function $(b,R,_){if(_===void 0&&(_=!0),D.forEach(function(V){V[b]&&V[b].apply(V,R)}),_){var j;(j=d.props)[b].apply(j,R)}}function ie(){var b=d.props.aria;if(b.content){var R="aria-"+b.content,_=S.id,j=kr(d.props.triggerTarget||e);j.forEach(function(V){var xe=V.getAttribute(R);if(d.state.isVisible)V.setAttribute(R,xe?xe+" "+_:_);else{var De=xe&&xe.replace(_,"").trim();De?V.setAttribute(R,De):V.removeAttribute(R)}})}}function oe(){if(!(I||!d.props.aria.expanded)){var b=kr(d.props.triggerTarget||e);b.forEach(function(R){d.props.interactive?R.setAttribute("aria-expanded",d.state.isVisible&&R===N()?"true":"false"):R.removeAttribute("aria-expanded")})}}function ne(){q().removeEventListener("mousemove",h),jo=jo.filter(function(b){return b!==h})}function U(b){if(!(gt.isTouch&&(l||b.type==="mousedown"))){var R=b.composedPath&&b.composedPath()[0]||b.target;if(!(d.props.interactive&&tl(S,R))){if(kr(d.props.triggerTarget||e).some(function(_){return tl(_,R)})){if(gt.isTouch||d.state.isVisible&&d.props.trigger.indexOf("click")>=0)return}else $("onClickOutside",[d,b]);d.props.hideOnClick===!0&&(d.clearDelayTimeouts(),d.hide(),s=!0,setTimeout(function(){s=!1}),d.state.isMounted||K())}}}function pe(){l=!0}function ue(){l=!1}function de(){var b=q();b.addEventListener("mousedown",U,!0),b.addEventListener("touchend",U,fr),b.addEventListener("touchstart",ue,fr),b.addEventListener("touchmove",pe,fr)}function K(){var b=q();b.removeEventListener("mousedown",U,!0),b.removeEventListener("touchend",U,fr),b.removeEventListener("touchstart",ue,fr),b.removeEventListener("touchmove",pe,fr)}function Ie(b,R){dt(b,function(){!d.state.isVisible&&S.parentNode&&S.parentNode.contains(S)&&R()})}function Oe(b,R){dt(b,R)}function dt(b,R){var _=re().box;function j(V){V.target===_&&(_i(_,"remove",j),R())}if(b===0)return R();_i(_,"remove",m),_i(_,"add",j),m=j}function Pe(b,R,_){_===void 0&&(_=!1);var j=kr(d.props.triggerTarget||e);j.forEach(function(V){V.addEventListener(b,R,_),p.push({node:V,eventType:b,handler:R,options:_})})}function Le(){M()&&(Pe("touchstart",ve,{passive:!0}),Pe("touchend",Rt,{passive:!0})),Xd(d.props.trigger).forEach(function(b){if(b!=="manual")switch(Pe(b,ve),b){case"mouseenter":Pe("mouseleave",Rt);break;case"focus":Pe(im?"focusout":"blur",mt);break;case"focusin":Pe("focusout",mt);break}})}function Ct(){p.forEach(function(b){var R=b.node,_=b.eventType,j=b.handler,V=b.options;R.removeEventListener(_,j,V)}),p=[]}function ve(b){var R,_=!1;if(!(!d.state.isEnabled||Be(b)||s)){var j=((R=u)==null?void 0:R.type)==="focus";u=b,v=b.currentTarget,oe(),!d.state.isVisible&&Zd(b)&&jo.forEach(function(V){return V(b)}),b.type==="click"&&(d.props.trigger.indexOf("mouseenter")<0||a)&&d.props.hideOnClick!==!1&&d.state.isVisible?_=!0:Re(b),b.type==="click"&&(a=!_),_&&!j&&le(b)}}function Dt(b){var R=b.target,_=N().contains(R)||S.contains(R);if(!(b.type==="mousemove"&&_)){var j=J().concat(S).map(function(V){var xe,De=V._tippy,$t=(xe=De.popperInstance)==null?void 0:xe.state;return $t?{popperRect:V.getBoundingClientRect(),popperState:$t,props:r}:null}).filter(Boolean);em(j,b)&&(ne(),le(b))}}function Rt(b){var R=Be(b)||d.props.trigger.indexOf("click")>=0&&a;if(!R){if(d.props.interactive){d.hideWithInteractivity(b);return}le(b)}}function mt(b){d.props.trigger.indexOf("focusin")<0&&b.target!==N()||d.props.interactive&&b.relatedTarget&&S.contains(b.relatedTarget)||le(b)}function Be(b){return gt.isTouch?M()!==b.type.indexOf("touch")>=0:!1}function wt(){Mt();var b=d.props,R=b.popperOptions,_=b.placement,j=b.offset,V=b.getReferenceClientRect,xe=b.moveTransition,De=k()?Di(S).arrow:null,$t=V?{getBoundingClientRect:V,contextElement:V.contextElement||N()}:e,Oo={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(xr){var kt=xr.state;if(k()){var Po=re(),yr=Po.box;["placement","reference-hidden","escaped"].forEach(function(Tr){Tr==="placement"?yr.setAttribute("data-placement",kt.placement):kt.attributes.popper["data-popper-"+Tr]?yr.setAttribute("data-"+Tr,""):yr.removeAttribute("data-"+Tr)}),kt.attributes.popper={}}}},ht=[{name:"offset",options:{offset:j}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!xe}},Oo];k()&&De&&ht.push({name:"arrow",options:{element:De,padding:3}}),ht.push.apply(ht,R?.modifiers||[]),d.popperInstance=Pi($t,S,Object.assign({},R,{placement:_,onFirstUpdate:f,modifiers:ht}))}function Mt(){d.popperInstance&&(d.popperInstance.destroy(),d.popperInstance=null)}function W(){var b=d.props.appendTo,R,_=N();d.props.interactive&&b===fl||b==="parent"?R=_.parentNode:R=ul(b,[_]),R.contains(S)||R.appendChild(S),d.state.isMounted=!0,wt()}function J(){return Go(S.querySelectorAll("[data-tippy-root]"))}function Re(b){d.clearDelayTimeouts(),b&&$("onTrigger",[d,b]),de();var R=H(!0),_=O(),j=_[0],V=_[1];gt.isTouch&&j==="hold"&&V&&(R=V),R?o=setTimeout(function(){d.show()},R):d.show()}function le(b){if(d.clearDelayTimeouts(),$("onUntrigger",[d,b]),!d.state.isVisible){K();return}if(!(d.props.trigger.indexOf("mouseenter")>=0&&d.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(b.type)>=0&&a)){var R=H(!1);R?n=setTimeout(function(){d.state.isVisible&&d.hide()},R):i=requestAnimationFrame(function(){d.hide()})}}function it(){d.state.isEnabled=!0}function je(){d.hide(),d.state.isEnabled=!1}function Ne(){clearTimeout(o),clearTimeout(n),cancelAnimationFrame(i)}function Fe(b){if(!d.state.isDestroyed){$("onBeforeUpdate",[d,b]),Ct();var R=d.props,_=ol(e,Object.assign({},R,Qs(b),{ignoreAttributes:!0}));d.props=_,Le(),R.interactiveDebounce!==_.interactiveDebounce&&(ne(),h=Ys(Dt,_.interactiveDebounce)),R.triggerTarget&&!_.triggerTarget?kr(R.triggerTarget).forEach(function(j){j.removeAttribute("aria-expanded")}):_.triggerTarget&&e.removeAttribute("aria-expanded"),oe(),A(),P&&P(R,_),d.popperInstance&&(wt(),J().forEach(function(j){requestAnimationFrame(j._tippy.popperInstance.forceUpdate)})),$("onAfterUpdate",[d,b])}}function we(b){d.setProps({content:b})}function Ht(){var b=d.state.isVisible,R=d.state.isDestroyed,_=!d.state.isEnabled,j=gt.isTouch&&!d.props.touch,V=Li(d.props.duration,0,ft.duration);if(!(b||R||_||j)&&!N().hasAttribute("disabled")&&($("onShow",[d],!1),d.props.onShow(d)!==!1)){if(d.state.isVisible=!0,k()&&(S.style.visibility="visible"),A(),de(),d.state.isMounted||(S.style.transition="none"),k()){var xe=re(),De=xe.box,$t=xe.content;Ai([De,$t],0)}f=function(){var ht;if(!(!d.state.isVisible||c)){if(c=!0,S.offsetHeight,S.style.transition=d.props.moveTransition,k()&&d.props.animation){var qr=re(),xr=qr.box,kt=qr.content;Ai([xr,kt],V),el([xr,kt],"visible")}ie(),oe(),Js(Ii,d),(ht=d.popperInstance)==null||ht.forceUpdate(),$("onMount",[d]),d.props.animation&&k()&&Oe(V,function(){d.state.isShown=!0,$("onShown",[d])})}},W()}}function gr(){var b=!d.state.isVisible,R=d.state.isDestroyed,_=!d.state.isEnabled,j=Li(d.props.duration,1,ft.duration);if(!(b||R||_)&&($("onHide",[d],!1),d.props.onHide(d)!==!1)){if(d.state.isVisible=!1,d.state.isShown=!1,c=!1,a=!1,k()&&(S.style.visibility="hidden"),ne(),K(),A(!0),k()){var V=re(),xe=V.box,De=V.content;d.props.animation&&(Ai([xe,De],j),el([xe,De],"hidden"))}ie(),oe(),d.props.animation?k()&&Ie(j,d.unmount):d.unmount()}}function ko(b){q().addEventListener("mousemove",h),Js(jo,h),h(b)}function br(){d.state.isVisible&&d.hide(),d.state.isMounted&&(Mt(),J().forEach(function(b){b._tippy.unmount()}),S.parentNode&&S.parentNode.removeChild(S),Ii=Ii.filter(function(b){return b!==d}),d.state.isMounted=!1,$("onHidden",[d]))}function vr(){d.state.isDestroyed||(d.clearDelayTimeouts(),d.unmount(),Ct(),delete e._tippy,d.state.isDestroyed=!0,$("onDestroy",[d]))}}function no(e,t){t===void 0&&(t={});var r=ft.plugins.concat(t.plugins||[]);om();var o=Object.assign({},t,{plugins:r}),n=Jd(e);if(0)var i,a;var s=n.reduce(function(l,c){var u=c&&dm(c,o);return u&&l.push(u),l},[]);return Xo(e)?s[0]:s}no.defaultProps=ft;no.setDefaultProps=fm;no.currentInput=gt;var dT=Object.assign({},Zr,{effect:function(t){var r=t.state,o={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(r.elements.popper.style,o.popper),r.styles=o,r.elements.arrow&&Object.assign(r.elements.arrow.style,o.arrow)}});no.setDefaultProps({render:dl});var ml=no;import Bi,{useLayoutEffect as mm,useEffect as hm,useRef as gm,useState as $i,cloneElement as bl,useMemo as vT,forwardRef as bm}from"react";import{createPortal as vm}from"react-dom";function vl(e,t){if(e==null)return{};var r={},o=Object.keys(e),n,i;for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}var xl=typeof window<"u"&&typeof document<"u";function Fi(e,t){e&&(typeof e=="function"&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function hl(){return xl&&document.createElement("div")}function xm(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}function yl(e,t){if(e===t)return!0;if(typeof e=="object"&&e!=null&&typeof t=="object"&&t!=null){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e)if(t.hasOwnProperty(r)){if(!yl(e[r],t[r]))return!1}else return!1;return!0}else return!1}function ym(e){var t=[];return e.forEach(function(r){t.find(function(o){return yl(r,o)})||t.push(r)}),t}function Tm(e,t){var r,o;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:ym([].concat(((r=e.popperOptions)==null?void 0:r.modifiers)||[],((o=t.popperOptions)==null?void 0:o.modifiers)||[]))})})}var zi=xl?mm:hm;function Sm(e){var t=gm();return t.current||(t.current=typeof e=="function"?e():e),t.current}function gl(e,t,r){r.split(/\s+/).forEach(function(o){o&&e.classList[t](o)})}var Em={name:"className",defaultValue:"",fn:function(t){var r=t.popper.firstElementChild,o=function(){var s;return!!((s=t.props.render)!=null&&s.$$tippy)};function n(){t.props.className&&!o()||gl(r,"add",t.props.className)}function i(){o()&&gl(r,"remove",t.props.className)}return{onCreate:n,onBeforeUpdate:i,onAfterUpdate:n}}};function Cm(e){function t(r){var o=r.children,n=r.content,i=r.visible,a=r.singleton,s=r.render,l=r.reference,c=r.disabled,u=c===void 0?!1:c,m=r.ignoreAttributes,f=m===void 0?!0:m,p=r.__source,h=r.__self,v=vl(r,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"]),x=i!==void 0,y=a!==void 0,g=$i(!1),C=g[0],d=g[1],w=$i({}),S=w[0],P=w[1],D=$i(),I=D[0],O=D[1],M=Sm(function(){return{container:hl(),renders:1}}),k=Object.assign({ignoreAttributes:f},v,{content:M.container});x&&(k.trigger="manual",k.hideOnClick=!1),y&&(u=!0);var N=k,q=k.plugins||[];s&&(N=Object.assign({},k,{plugins:y&&a.data!=null?[].concat(q,[{fn:function(){return{onTrigger:function($,ie){var oe=a.data.children.find(function(ne){var U=ne.instance;return U.reference===ie.currentTarget});$.state.$$activeSingletonInstance=oe.instance,O(oe.content)}}}}]):q,render:function(){return{popper:M.container}}}));var re=[l].concat(o?[o.type]:[]);return zi(function(){var H=l;l&&l.hasOwnProperty("current")&&(H=l.current);var A=e(H||M.ref||hl(),Object.assign({},N,{plugins:[Em].concat(k.plugins||[])}));return M.instance=A,u&&A.disable(),i&&A.show(),y&&a.hook({instance:A,content:n,props:N,setSingletonContent:O}),d(!0),function(){A.destroy(),a?.cleanup(A)}},re),zi(function(){var H;if(M.renders===1){M.renders++;return}var A=M.instance;A.setProps(Tm(A.props,N)),(H=A.popperInstance)==null||H.forceUpdate(),u?A.disable():A.enable(),x&&(i?A.show():A.hide()),y&&a.hook({instance:A,content:n,props:N,setSingletonContent:O})}),zi(function(){var H;if(s){var A=M.instance;A.setProps({popperOptions:Object.assign({},A.props.popperOptions,{modifiers:[].concat((((H=A.props.popperOptions)==null?void 0:H.modifiers)||[]).filter(function($){var ie=$.name;return ie!=="$$tippyReact"}),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(ie){var oe,ne=ie.state,U=(oe=ne.modifiersData)==null?void 0:oe.hide;(S.placement!==ne.placement||S.referenceHidden!==U?.isReferenceHidden||S.escaped!==U?.hasPopperEscaped)&&P({placement:ne.placement,referenceHidden:U?.isReferenceHidden,escaped:U?.hasPopperEscaped}),ne.attributes.popper={}}}])})})}},[S.placement,S.referenceHidden,S.escaped].concat(re)),Bi.createElement(Bi.Fragment,null,o?bl(o,{ref:function(A){M.ref=A,Fi(o.ref,A)}}):null,C&&vm(s?s(xm(S),I,M.instance):n,M.container))}return t}var Rm=(function(e,t){return bm(function(o,n){var i=o.children,a=vl(o,["children"]);return Bi.createElement(e,Object.assign({},t,a),i?bl(i,{ref:function(l){Fi(n,l),Fi(i.ref,l)}}):null)})});var wm=Rm(Cm(ml)),Tl=wm;var pa=Z(ye()),Pu=Z(Vi());import*as F from"react";var yf=Z(ye());import*as fn from"react";var lf=Z(sf());function x0(e){let t=!0,r=!1,o=null,n={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function i(g){return!!(g&&g!==document&&g.nodeName!=="HTML"&&g.nodeName!=="BODY"&&"classList"in g&&"contains"in g.classList)}function a(g){let C=g.type,d=g.tagName;return!!(d=="INPUT"&&n[C]&&!g.readOnly||d=="TEXTAREA"&&!g.readOnly||g.isContentEditable)}function s(g){return g.classList.contains(y0)?g.closest(`.${T0}`):null}function l(g){if(g.classList.contains("focus-visible"))return;g.classList.add("focus-visible"),g.setAttribute("data-focus-visible-added","");let C=s(g);C&&(C.classList.add("focus-visible"),C.setAttribute("data-focus-visible-added",""))}function c(g){if(!g.hasAttribute("data-focus-visible-added"))return;g.classList.remove("focus-visible"),g.removeAttribute("data-focus-visible-added");let C=s(g);C&&(C.classList.remove("focus-visible"),C.removeAttribute("data-focus-visible-added"))}function u(g){g.metaKey||g.altKey||g.ctrlKey||(i(e.activeElement)&&l(e.activeElement),t=!0)}function m(g){t=!1}function f(g){i(g.target)&&(t||a(g.target))&&l(g.target)}function p(g){i(g.target)&&(g.target.classList.contains("focus-visible")||g.target.hasAttribute("data-focus-visible-added"))&&(r=!0,window.clearTimeout(o),o=window.setTimeout(function(){r=!1,window.clearTimeout(o)},100),c(g.target))}function h(g){document.visibilityState=="hidden"&&(r&&(t=!0),v())}function v(){document.addEventListener("mousemove",y),document.addEventListener("mousedown",y),document.addEventListener("mouseup",y),document.addEventListener("pointermove",y),document.addEventListener("pointerdown",y),document.addEventListener("pointerup",y),document.addEventListener("touchmove",y),document.addEventListener("touchstart",y),document.addEventListener("touchend",y)}function x(){document.removeEventListener("mousemove",y),document.removeEventListener("mousedown",y),document.removeEventListener("mouseup",y),document.removeEventListener("pointermove",y),document.removeEventListener("pointerdown",y),document.removeEventListener("pointerup",y),document.removeEventListener("touchmove",y),document.removeEventListener("touchstart",y),document.removeEventListener("touchend",y)}function y(g){g.target&&g.target.nodeName&&g.target.nodeName.toLowerCase()==="html"||(t=!1,x())}document.addEventListener("keydown",u,!0),document.addEventListener("mousedown",m,!0),document.addEventListener("pointerdown",m,!0),document.addEventListener("touchstart",m,!0),document.addEventListener("visibilitychange",h,!0),v(),e.addEventListener("focus",f,!0),e.addEventListener("blur",p,!0),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.host?e.host.setAttribute("data-js-focus-visible",""):e.nodeType===Node.DOCUMENT_NODE&&document.documentElement.classList.add("js-focus-visible")}var ji;try{ji=new CustomEvent("focus-visible-polyfill-ready")}catch{ji=document.createEvent("CustomEvent"),ji.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}var y0="focus-visible-target",T0="focus-visible-ancestor";var Or=(0,lf.default)(()=>x0(document));var pf=Z(ye());var Uo={none:0,minimal:100,short:300,long:500},ff={short:150,long:250};var Ft=["xxs","xs","sm","md","lg","xl","xxl"],uf=["xs","sm","md","lg"],cf={none:0,xxs:2,xs:4,sm:8,md:16,lg:24,xl:32,xxl:48};var YT=[...Ft,"none"],ao="druids_margin",so="druids_padding",qo="druids_lockup",bt="druids_border",S0=["hasBorderX","hasBorderY","hasBorder","hasBorderLeft","hasBorderTop","hasBorderRight","hasBorderBottom"],Ko=e=>e==null?-4:e?1:0;function ke(e,t){let{marginProps:r,paddingProps:o,lockupProps:n,borderProps:i,rest:a}=w0(e),s={},l=a;if(t.includes("margin")){let{marginX:c,marginY:u,margin:m,marginLeft:f,marginTop:p,marginRight:h,marginBottom:v}=r;m&&(s[`${ao}--${m}`]=!0);let x=p===null?null:p||u,y=v===null?null:v||u,g=f===null?null:f||c,C=h===null?null:h||c;(x||y||g||C)&&(s[`${ao}--top-${x}`]=x,s[`${ao}--bottom-${y}`]=y,s[`${ao}--left-${g}`]=g,s[`${ao}--right-${C}`]=C)}else l={...l,...r};if(t.includes("padding")){let{paddingX:c,paddingY:u,padding:m,paddingLeft:f,paddingTop:p,paddingRight:h,paddingBottom:v}=o;m&&(s[`${so}--${m}`]=!0);let x=p===null?null:p||u,y=v===null?null:v||u,g=f===null?null:f||c,C=h===null?null:h||c;(x||y||g||C)&&(s[`${so}--top-${x}`]=x,s[`${so}--bottom-${y}`]=y,s[`${so}--left-${g}`]=g,s[`${so}--right-${C}`]=C)}else l={...l,...o};if(t.includes("lockups")){let{hasLeftLockup:c,hasRightLockup:u,hasTopLockup:m,hasBottomLockup:f,hasFullLockup:p}=n;s[`${qo}--left`]=c||p,s[`${qo}--right`]=u||p,s[`${qo}--top`]=m||p,s[`${qo}--bottom`]=f||p}else l={...l,...n};if(t.includes("border")){let{hasBorder:c,hasBorderX:u=c,hasBorderY:m=c,hasBorderTop:f=m,hasBorderBottom:p=m,hasBorderLeft:h=u,hasBorderRight:v=u}=i,x=Ko(f)+Ko(p)+Ko(h)+Ko(v);x>1&&(s[bt]=!0),(x===0||x===1)&&(s[`${bt}--none`]=!0),(x<0||x===1)&&(s[`${bt}--top`]=f,s[`${bt}--bottom`]=p,s[`${bt}--left`]=h,s[`${bt}--right`]=v),(x<0||x===2||x===3)&&(s[`${bt}--top-none`]=f===!1,s[`${bt}--bottom-none`]=p===!1,s[`${bt}--left-none`]=h===!1,s[`${bt}--right-none`]=v===!1)}else l={...l,...i};return[(0,pf.default)(s),l]}var E0=["marginX","marginY","margin","marginLeft","marginTop","marginRight","marginBottom"],C0=["paddingX","paddingY","padding","paddingLeft","paddingTop","paddingRight","paddingBottom"],R0=["hasLeftLockup","hasRightLockup","hasTopLockup","hasBottomLockup","hasFullLockup"];function w0(e){let t={marginProps:{},paddingProps:{},lockupProps:{},borderProps:{},rest:{}};return Object.keys(e).forEach(r=>{let o=r;if(E0.includes(o)){t.marginProps[o]=e[o];return}let n=r;if(C0.includes(n)){t.paddingProps[n]=e[n];return}let i=r;if(R0.includes(i)){t.lockupProps[i]=e[i];return}let a=r;if(S0.includes(a)){t.borderProps[a]=e[a];return}let s=r;t.rest[s]=e[s]}),t}var bf=Z(ye()),lo=Z(gf());import*as vt from"react";var ut=e=>{let t=vt.isValidElement(e),r=e===null,o=t?e.props:{},n=vt.useRef(o);n.current=o;let i=l=>r?null:vt.cloneElement(e,{...n.current,...l,className:n.current.className||l.className?(0,bf.default)(n.current.className,l.className):void 0,style:l.style||n.current.style?{...n.current.style,...l.style}:void 0}),a=t?e.type:null,s=vt.useCallback(i,[a,r]);return[t||r?s:e,n.current]};var vf=e=>e?typeof e=="string"?!0:(0,lo.isValidElementType)(e)?(0,lo.isForwardRef)(vt.createElement(e)):(0,lo.isForwardRef)(e):!1;import*as xf from"react";var sn=({onClick:e,href:t,isEnabled:r=!0})=>xf.useMemo(()=>r&&t?.[0]==="#"?o=>{let n=document.getElementById(t.substring(1));n&&(setTimeout(()=>{let i=n.id;n.removeAttribute("id"),location.hash=t,n.id=i}),n.scrollIntoView({behavior:"smooth"}),o.preventDefault()),e&&e(o)}:e,[t,r,e]);var ln=e=>{let t={rel:"noopener noreferrer",target:"_blank"};try{e&&new URL(e,window.location.href).hostname===window.location.hostname&&(t.rel="noopener")}catch{}return t};var At="druids_form_action",Tf=({href:e,isDisabled:t,isActive:r,hoverStyle:o,underline:n,cursor:i="default",level:a=o?"default":void 0,as:s=e?"a":"button",type:l=s==="button"?"button":void 0,className:c,onClick:u,children:m,isExternal:f=!1,hasSmoothAnchorLink:p=!1,shouldInherit:h=!1,innerRef:v,dataAttrs:x,ariaAttrs:y,ariaLabel:g,onMouseEnter:C,...d})=>{let[w,S]=ke(d,["margin","padding","lockups"]),[P,{href:D,onClick:I}]=ut(s),O=e||D,k=sn({href:O,onClick:u||I?re=>{I&&I(re),u&&u(re)}:void 0,isEnabled:p}),N=typeof P=="string";fn.useEffect(Or,[]);let q=ln(O);return fn.createElement(P,{...y,...g!==void 0&&{"aria-label":g},"data-dd-action-name":"Action",...x,className:(0,yf.default)(At,{[`${At}--has-${o}-on-hover`]:o,[`${At}--${a}-hover${o==="soft-background"?"-soft":""}`]:a,[`${At}--is-disabled`]:t,[`${At}--is-active`]:r,[`${At}--is-basic`]:N,[`${At}--should-inherit`]:h,[`${At}--underline-${n}`]:n,[`${At}--cursor-${i}`]:i!=="default"},c,w),href:t?void 0:O,onClick:t?void 0:k,onMouseEnter:C,type:l,disabled:s==="button"&&t?!0:void 0,ref:v,...f?q:{},...S},m)};import*as Ke from"react";function un(e){function t(){return P0(e)}function r(o,n=!1){t()?.onReady(()=>{o(t())},n)}return{shimFunction(o){return((...n)=>{r(i=>{let a=i[o];a?.(...n)},o==="init")})},shimGetFunction(o){return(...n)=>{let a=t()[o];return a?.(...n)}},onReady:r,getSdkGlobal(){let o=t();return"init"in o?o:void 0}}}var O0=1e3;function P0(e){if(!globalThis[e]){let t=[],r=!1;globalThis[e]={q:t,onReady(o,n=!1){if(n)t.unshift(o);else if(t.length<O0)t.push(o);else if(!r){let i=`Browser SDK ${e} callback queue limit reached.`;IS_HOT&&(i+=' This is because the Browser SDK is disabled while using hotdog. To enable it, right click on the hotdog icon and check "Enable the Browser SDK while hotdog is active".'),console.warn(i),r=!0}}}}return globalThis[e]}var{shimFunction:fo,shimGetFunction:Ui,onReady:L0}=un("DD_LOGS");var cn=class{log(t,r,o){this.withLogger(n=>n.log(t,r,o))}debug(t,r){this.withLogger(o=>o.debug(t,r))}info(t,r){this.withLogger(o=>o.info(t,r))}warn(t,r){this.withLogger(o=>o.warn(t,r))}error(t,r,o){this.withLogger(n=>n.error(t,r,o))}setHandler(t){this.withLogger(r=>r.setHandler(t))}setLevel(t){this.withLogger(r=>r.setLevel(t))}withLogger(t){L0(r=>{t(this.getLogger(r))})}},qi=class extends cn{constructor(r,o){super();Lo(this,"logger");Lo(this,"name");Lo(this,"configuration");this.name=r,this.configuration=o}getLogger(r){return this.logger||(this.logger=r.createLogger(this.name,this.configuration)),this.logger}},Ki=class extends cn{getLogger(t){return t.logger}},Zi={init:fo("init"),setGlobalContext:fo("setGlobalContext"),setGlobalContextProperty:fo("setGlobalContextProperty"),getGlobalContext:Ui("getGlobalContext"),removeGlobalContextProperty:fo("removeGlobalContextProperty"),clearGlobalContext:fo("clearGlobalContext"),getInternalContext:Ui("getInternalContext"),getInitConfiguration:Ui("getInitConfiguration"),logger:new Ki,createLogger:(e,t)=>new qi(e,t)};var Yi=new Map,Ji=new WeakMap,{shimFunction:te,shimGetFunction:pn,onReady:Sf,getSdkGlobal:A0}=un("DD_RUM"),Ef=new Map;Sf(e=>{Ef.forEach((t,r)=>{e.addFeatureFlagEvaluation(r,t)})});var Qi={init:te("init"),setGlobalContext:te("setGlobalContext"),setGlobalContextProperty:te("setGlobalContextProperty"),getGlobalContext:pn("getGlobalContext"),removeGlobalContextProperty:te("removeGlobalContextProperty"),clearGlobalContext:te("clearGlobalContext"),setViewName:te("setViewName"),setViewContext:te("setViewContext"),setViewContextProperty:te("setViewContextProperty"),addAction:te("addAction"),addError:te("addError"),addTiming:te("addTiming"),setUser:te("setUser"),getUser:pn("getUser"),setUserProperty:te("setUserProperty"),removeUserProperty:te("removeUserProperty"),clearUser:te("clearUser"),setAccount:te("setAccount"),getAccount:te("getAccount"),setAccountProperty:te("setAccountProperty"),removeAccountProperty:te("removeAccountProperty"),clearAccount:te("clearAccount"),getInternalContext:pn("getInternalContext"),getInitConfiguration:pn("getInitConfiguration"),startSessionReplayRecording:te("startSessionReplayRecording"),stopSessionReplayRecording:te("stopSessionReplayRecording"),startView:te("startView"),startFeatureOperation:te("startFeatureOperation"),succeedFeatureOperation:te("succeedFeatureOperation"),failFeatureOperation:te("failFeatureOperation"),addFeatureFlagEvaluation:(e,t)=>{let r=A0();r?r.addFeatureFlagEvaluation(e,t):Ef.set(e,t)},startDurationVital:(e,t={})=>{let r={name:e,startTimestamp:new Date().getTime(),context:t.context,description:t.description},o={__dd_vital_reference:!0};return Yi.set(e,r),Ji.set(o,r),o},stopDurationVital:(e,t={})=>{let r=typeof e=="string"?Yi.get(e):Ji.get(e);if(!r)return;let o=new Date().getTime();Sf(n=>{n.addDurationVital?.(r.name,{context:{...r.context,...t.context},description:t.description??r.description,duration:o-r.startTimestamp,startTime:r.startTimestamp})}),typeof e=="string"?Yi.delete(e):Ji.delete(e)},addDurationVital:te("addDurationVital")};var Cf="designops";var Rf="http",wf="debug";IS_PROD||(wf="warn",Rf="console");var Vt=(e="undefined",t={})=>Zi.createLogger(`${Cf}.${e}`,{handler:Rf,level:wf,context:{team:Cf,component:e,...t}});var _0=Vt("component-warning");function Mf({componentName:e,type:t="misuse",message:r,shouldWarn:o=!0,sampleRate:n=100}){if(!o)return;let a=`\u{1F31E}\u{1F319}\u{1F9D9}\u200D\u2642\uFE0F [DRUIDS Warning] <${e}> ${r}`;if(IS_PROD){if(Math.random()*100>n)return;_0.warn(a,{druids:{component:e,type:t}})}else console.warn(a)}var kf=Ke.createContext(void 0);function ur({componentName:e,type:t="misuse",message:r,shouldWarn:o,sampleRate:n}){let i=Ke.useContext(kf);Ke.useEffect(()=>{if(!o||(Mf({componentName:e,type:t,message:r,shouldWarn:o,sampleRate:n}),!i))return;let a=Symbol(`${e} ${t}`);return i({componentName:e,type:t,message:r,shouldWarn:o,sampleRate:n},a),()=>{i({componentName:e,type:t,message:r,shouldWarn:!1},a)}},[i,e,t,r,o,n])}function Of({componentName:e,type:t="misuse",message:r,shouldWarn:o=!0,sampleRate:n}){let i=Ke.useContext(kf),[a]=Ke.useState(()=>Symbol(`${e} ${t}`));return Ke.useEffect(()=>{if(i)return()=>{i({componentName:"",message:"",shouldWarn:!1},a)}},[i,a]),Ke.useCallback(s=>{let{componentName:l=e,type:c=t,message:u=r,shouldWarn:m=!0,sampleRate:f=n}=s||{},p=o&&m;Mf({componentName:l,type:c,message:u,shouldWarn:p,sampleRate:f}),i&&i({componentName:l,type:c,message:u,shouldWarn:p,sampleRate:f},a)},[e,o,r,t,n,i,a])}var Af=Z(ye());import*as _f from"react";var Pf=Z(ye());import*as Ze from"react";var Pr=({className:e,as:t,children:r,...o})=>{let[n,i]=ke(o,["margin","padding"]),a=(0,Pf.default)(n,e),[s]=ut(t||(Ze.isValidElement(r)?r:Ze.Fragment)),l=Of({componentName:"Spacing"});return!t&&!Ze.isValidElement(r)&&(Ze.Children.count(r)!==1?l({message:`The <Spacing> component was not applied. It accepts only 1 child, but you\u2019re passing in ${Ze.Children.count(r)} children.`}):Ze.isValidElement(r)?l({message:`The <Spacing> component was not applied for unknown reasons. Here are your children:
7
+ ${r}`}):l({message:`The <Spacing> component was not applied. It should wrap a valid React element but here it was wrapping:
8
+ ${r}`})),!t&&r==null?null:Ze.createElement(s,{className:a,...i},!t&&Ze.isValidElement(r)?r.props.children:r)};var ea=Z(Lf()),z5=ea.default.HorizontalSeparator,If=({className:e,margin:t,marginY:r=t??"lg",width:o,...n})=>_f.createElement(Pr,{margin:t,marginY:r,...n,style:o?{width:o}:void 0,as:"hr",className:(0,Af.default)(ea.default.HorizontalSeparator,e)});import Y5 from"react";import I0 from"react";var Nf="druids-theme-root";var uo=I0.createContext(void 0),N0={preference:"light",setPreference:()=>{}};import*as Ye from"react";function ta(){return ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},ta.apply(null,arguments)}var D0=["em","ex","%","px","cm","mm","in","pt","pc","ch","rem","vh","vw","vmin","vmax"],H0=["width","height"],Hf=function(e){return Object.keys(e).reduce(function(t,r){var o=e[r];if(!Array.isArray(o)||o.length<=1)return t;var n,i,a=o[0],s=o[1],l=o[2],c=o.slice(3);if(c.length>0){var u=new Error('The following fields "'+c+'" have been ignored');console.error(u)}if(typeof a!="number"||typeof s!="number")return t;typeof l=="string"?n=l:typeof l=="object"&&(i=l.direction,n=l.unit);var m=Math.min(a,s),f=Math.max(a,s),p=n&&D0.includes(n)?n:"px",h=i&&H0.includes(i)?i:"width";return t[r]=[m,f,p,h],t[r+"Up"]=[m,1/0,p,h],t[r+"Down"]=[0,f,p,h],t},{})},$f={xs:[0,575,"px"],sm:[576,767,"px"],md:[768,991,"px"],lg:[992,1199,"px"],xl:[1200,1/0,"px"]},$0=Ye.createContext(Hf($f)),z0=function(e){var t=e.breakpoints,r=e.children;return Ye.createElement($0.Provider,{value:Hf(ta({},t===void 0?$f:t,e.additionalBreakpoints))},r)};z0.displayName="BreakpointsProvider";var dn=function(e){var t=Ye.useMemo(function(){return matchMedia(e)},[e]),r=Ye.useState(t.matches),o=r[0],n=r[1];return Ye.useLayoutEffect(function(){n(t.matches);var i=function(a){n(a.matches)};return t.addListener(i),function(){t.removeListener(i)}},[t]),o};import gn from"react";import*as Lr from"react";function mn(e,{doesUpdateInRender:t=!1}={}){let[r,o]=Lr.useState(e);return(t?Lr.useMemo:Lr.useEffect)(()=>{o(e)},[e]),[r,o]}import ra from"react";var co=ra.createContext(void 0),zf=ra.createContext(void 0),hn=ra.createContext(void 0);var Ar=()=>{let e=gn.useContext(co),t=gn.useContext(e?hn:uo),r=e?.preference??t?.preference??"light",o=dn(r==="system"?"(prefers-color-scheme: dark)":"not all"),n=gn.useMemo(()=>r==="system"?o?"dark":"light":r==="dark"?"dark":"light",[r,o]),[i,a]=mn(n);return B0({setTheme:a,isLocalThemeContext:!!e}),{theme:i}};function B0({setTheme:e,isLocalThemeContext:t}){gn.useEffect(()=>{if(t)return;if(document.body.classList.contains("dark-mode")||document.body.classList.contains("light-mode")){let n=oa();e(n)}let o=new MutationObserver(()=>{let n=oa();e(n)});return o.observe(document.body,{attributes:!0,attributeFilter:["class"]}),()=>{o.disconnect()}},[e,t])}function vn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)e[o]=r[o]}return e}var F0={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function na(e,t){function r(n,i,a){if(!(typeof document>"u")){a=vn({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in a)a[l]&&(s+="; "+l,a[l]!==!0&&(s+="="+a[l].split(";")[0]));return document.cookie=n+"="+e.write(i,n)+s}}function o(n){if(!(typeof document>"u"||arguments.length&&!n)){for(var i=document.cookie?document.cookie.split("; "):[],a={},s=0;s<i.length;s++){var l=i[s].split("="),c=l.slice(1).join("=");try{var u=decodeURIComponent(l[0]);if(a[u]=e.read(c,u),n===u)break}catch{}}return n?a[n]:a}}return Object.create({set:r,get:o,remove:function(n,i){r(n,"",vn({},i,{expires:-1}))},withAttributes:function(n){return na(this.converter,vn({},this.attributes,n))},withConverter:function(n){return na(vn({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Bf=na(F0,{path:"/"});var yS=Bf.withAttributes({secure:!0,sameSite:"strict"});import*as Ff from"react";var Vf={dark:"dark-mode",light:"light-mode"},_r=Object.fromEntries(Object.entries(Vf).map(([e,t])=>[e,`${Nf} ${t}`])),qS=[..._r.dark.split(" "),..._r.light.split(" ")];var oa=()=>document.body.classList.contains(Vf.dark)?"dark":"light";import{createContext as V0}from"react";var Wf=V0("light");import*as yn from"react";import*as xn from"react";var jf=(e=!1)=>{let t=xn.useRef(e);return xn.useEffect(()=>(t.current=!0,()=>{t.current=!1}),[]),t};var Gf=e=>{let t=jf(!0),[r,o]=yn.useState(e),n=yn.useCallback(i=>{t.current&&o(i)},[t]);return[r,n]};import*as Wt from"react";import*as Ir from"react";var W0=Ir.createContext(void 0),Xf=()=>Ir.useContext(W0);var j0={contentHeader:90,navBackground:100,sidePanel:210,navBackgroundActive:300,navSubmenu:310,popover:1e3,top:1e4},G0=100,X0=0,qf="",Kf=()=>new Map,Uf={[qf]:Kf()},U0=()=>Xf()?.stackId??qf;var Zf=({isEnabled:e,stack:t,legacyElevation:r,eventsToIsolate:o})=>{let{name:n,size:i}=t||{size:0},a=U0(),[s,l]=mn(e),[c,u]=Gf(),m=e||s,f=Wt.useMemo(()=>m?X0++:void 0,[m]),p=Kr(o),h=Wt.useRef(()=>s),v=Wt.useCallback(y=>h.current(y),[]);return Wt.useEffect(()=>{if(!s||f===void 0)return;let y={},g=r?j0[r]:G0,C=Uf[a];C||(C=Kf(),Uf[a]=C);let d=new Set,w=[],S,P=!1;for(let I of C.values()){let{mountCount:O,stackName:M,elevation:k}=I;if(!(O>=f)){if(M){if(M===n){S=k,P=!0;break}if(d.has(M))continue;d.add(M)}w.push(I)}}P||(S=w.sort((I,O)=>O.elevation-I.elevation)[0]?.elevation);let D=P?S:Math.max((S??-1)+1,g)+i;return C.set(y,{elevation:D,mountCount:f,stackName:n,eventsToIsolate:p}),u(D-i),h.current=I=>{if(!s)return!1;if(!p?.includes(I))return!0;let O=C?[...C.entries()]:[];for(let M=O.length-1;M>=0;M--){let[k,N]=O[M];if(k!==y&&N.eventsToIsolate&&N.eventsToIsolate.includes(I)&&N.elevation>D)return!1}return!0},()=>{u(void 0),C&&C.delete(y)}},[s,r,f,u,a,n,i,p]),{style:c?{zIndex:c}:void 0,setIsEnabled:l,shouldAcceptEvent:v}};var q0=(e,t=!1)=>{let r=document.getElementById(e);return r||(r=document.createElement("div"),r.id=e,document.body[t?"prepend":"appendChild"](r)),r},K0="druids_portal",Tn,Yf=()=>((!Tn||!Tn.parentElement)&&(Tn=q0(K0)),Tn);import*as Jf from"react";var ia=(e,t)=>{if(!e)return!1;let r=!1,o=Jf.Children.toArray(e);for(let n=0;n<o.length;n++){let i=o[n];if(r=t(i),r)return r;if(!(!i||!i.props)&&(r=ia(i.props.children,t),r))return r}return r};import*as Sn from"react";function Qf(e){let t=Sn.useRef(void 0);return Sn.useEffect(()=>{t.current=e}),t.current}var eu=Z(ye());import _t from"react";var Z0=e=>e==="dark"?"dark":"light",tu=({children:e,forcedTheme:t,hasWrapper:r=!0,as:o="div",...n})=>{let i=t&&t!=="global",a=_t.useContext(i?zf:co),l=t==="global"||!t&&!a,u=_t.useContext(l?uo:hn)?.preference,m=i?void 0:a&&!l?a.preference:u,f=dn(m==="system"?"(prefers-color-scheme: dark)":"not all"),p=_t.useMemo(()=>{if(i)return Z0(t)},[t,i]),h=_t.useMemo(()=>p||(m==="system"?f?"dark":"light":m==="dark"?"dark":"light"),[p,m,f]),v=_t.useMemo(()=>p?p==="light"?"light":"dark":m??"light",[p,m]),x=_t.useMemo(()=>({preference:v}),[v]),[y]=ut(o);return _t.createElement(Wf.Provider,{value:h},_t.createElement(co.Provider,{value:x},r?_t.createElement(y,{...n,className:(0,eu.default)(t&&_r[h],n.className)},e):e))};var pu=Z(ye());import*as sa from"react";import*as fu from"react";var au=Z(ye());import*as xt from"react";import*as En from"react";var aa=En.createContext({});function He(e,t=Ft){let r=En.useContext(aa);return r&&r.size&&t.includes(r.size)?r.size:e}var ou=Z(ye());import*as nu from"react";var Y0="druids_misc_image";function ru(e){return Array.isArray(e)?e:[e,e]}var iu=({src:e,retinaSrc:t,isHovered:r,className:o,innerRef:n,...i})=>{let[a,s]=ke(i,["margin"]),{theme:l}=Ar(),c=l==="dark",u=ru(e),m=ru(t),f=c?u[1]:u[0],p=c?m[1]:m[0],h=p!==void 0?`${f} 1x, ${p} 2x`:void 0;return nu.createElement("img",{className:(0,ou.default)(Y0,a,o),...s,ref:n,src:f,srcSet:h})};var Cn="druids_icons_icon",J0={danger:"var(--ui-status-danger)",success:"var(--ui-status-success)",warning:"var(--ui-status-warning)"},Q0={inherit:"",icon:"var(--ui-icon)",iconSecondary:"var(--ui-icon-secondary)",text:"var(--ui-text)",knockout:"var(--ui-text-knockout)"},su=({icon:e,title:t,ariaLabel:r,role:o,size:n,isScaledDown:i=!1,className:a,fill:s,level:l,iconVariant:c="inherit",isHovered:u,children:m,dataAttrs:f,style:p,hasInlineCentering:h=!1,...v})=>{let x={},y=He("md"),g=n||y,[C]=ke(v,["margin","padding"]),d=()=>s||(l?J0[l]:c?Q0[c]:""),w={className:(0,au.default)(Cn,`${Cn}--${g}`,{[`${Cn}--is-scaled-down`]:i,[`${Cn}--has-inline-centering`]:h},C,a),style:{...x,...p},"aria-label":r,"aria-hidden":!t&&!r,role:o};return eh(e)?xt.createElement(iu,{...w,title:t,src:e,loading:"lazy"}):typeof e=="function"?xt.createElement(e,{...w}):e?xt.isValidElement(e)?xt.createElement("svg",{...w},t&&xt.createElement("title",null,t),e):xt.createElement("svg",{...w,...f},t&&xt.createElement("title",null,t),m,xt.createElement("use",{xlinkHref:`#${e.id}`,fill:d()})):null},eh=e=>typeof e=="string"||Array.isArray(e);var lu="";var uu=e=>fu.createElement(su,{...e,icon:lu,isScaledDown:!1});var cu=(e,t)=>Ft[Math.min(Ft.length-1,Math.max(0,Ft.indexOf(e)+t))],oE=Object.keys(cf);var cr="druids_nav_link";var Rn=({title:e=null,size:t,children:r,linkType:o="default",isExternal:n=!1,isFullWidth:i=!1,isInline:a=!1,role:s,onClick:l,hasExternalIcon:c=!0,hasSmoothAnchorLink:u=!1,className:m,component:f,download:p,href:h,innerRef:v,ariaAttrs:x,dataAttrs:y,canBeQuiet:g=!0,...C})=>{Or();let d=He("md"),w=t||d,[S,P]=ke(C,["margin"]),D=sn({onClick:l,href:h,isEnabled:u}),[I,{href:O}]=ut(f||"a"),M={href:h??O,className:(0,pu.default)({[`${cr}--is-full-width`]:i,[`${cr}--is-inline`]:a,[`${cr}--is-never-quiet`]:!g},o!=="no-class-names"?[cr,`${cr}--${w}`,`${cr}--${o}`]:[],S,m),onClick:D,role:s||void 0,title:e||void 0,download:p,ref:vf(I)?v:void 0},k=ln(h),N={...P,...M,...y,...x,...n?k:void 0};return sa.createElement(I,{...N},r,n&&c?sa.createElement(uu,{size:cu(w,-1),className:`${cr}__icon`,title:""}):null)};var Mu=Z(ye()),ku=Z(Vi());import*as It from"react";var Eu=Z(ye());import*as Cu from"react";var Tu=Z(yu()),yt=()=>{let e=(0,Tu.detect)();return!!(e&&e.os==="Mac OS")};var pr=Z(Su()),sh=["xs","sm","md","lg"],lh={alt:yt()?"opt":"alt",mod:yt()?"\u2318":"ctrl",cmd:yt()?"\u2318":"ctrl","\u2318":yt()?"\u2318":"ctrl"},fh={alt:yt()?"Option":"Alt",mod:yt()?"\u2318":"Ctrl",cmd:yt()?"\u2318":"Ctrl","\u2318":yt()?"\u2318":"Ctrl"},wn=e=>fh[e.toLowerCase()]||e,fa=({className:e,keycap:t,variant:r="default",size:o,isBorderless:n=!1})=>{let i=He("md",sh),a=o||i,s=t.toLowerCase(),l=["\u2191","\u2193","\u2190","\u2192"].includes(s),c=["mod","cmd","\u2318"].includes(s)&&yt();return Cu.createElement("kbd",{className:(0,Eu.default)(pr.default.Keycap,{[`${pr.default.Keycap}--${a}`]:a},{[`${pr.default.Keycap}--${r}`]:r},c&&pr.default.isCmdKey,l&&pr.default.isArrowKey,n&&pr.default.isBorderless,e),"aria-label":wn(t)},lh[s]||s)};var Ru=Z(ye());import*as po from"react";var Je="druids_typography_text";var Mn=({shouldInherit:e,children:t,size:r,variant:o=e?void 0:"default",weight:n=e?void 0:"normal",isItalic:i=!1,isMonospace:a=!1,hasEllipsis:s=!1,as:l="span",align:c=e?void 0:"left",innerRef:u,className:m,textTransform:f,overflowWrap:p,whiteSpace:h,shouldResetEditorialCopyContext:v,...x})=>{let[y,g]=ke(x,["margin"]),C=He("md"),[d]=ut(l),w=r==="inherit"?void 0:r||C;return po.createElement(aa.Provider,{value:po.useMemo(()=>({size:w}),[w])},po.createElement(d,{className:(0,Ru.default)(Je,{[`${Je}--${w}`]:w,[`${Je}--${o}`]:o,[`${Je}--${n}`]:n,[`${Je}--${c}`]:c,[`${Je}--is-italic`]:i,[`${Je}--is-monospace`]:a,[`${Je}--has-ellipsis`]:s,[`${Je}--ws-${h}`]:h,[`${Je}--${f}`]:f,[`${Je}--ow-${p}`]:p,[`${Je}--not-editorial-copy`]:v},y,m),ref:u,...g},t))};var ua=Z(wu()),uh=["xs","sm","md","lg"],ch={default:"default",secondary:"secondary",tertiary:"tertiary",knockout:"knockout","secondary-knockout":"knockout",disabled:"disabled"},kn=({className:e,variant:t="default",keys:r,size:o,ariaAttrs:n,isBorderless:i=!1})=>{let a=He("md",uh),s=o||a;return It.createElement("span",{className:e,style:{whiteSpace:"nowrap"},...n},r.map((l,c,u)=>It.createElement(It.Fragment,{key:c},(0,ku.default)(l)?l.map((m,f)=>It.createElement(Pr,{key:m,marginLeft:f===0?void 0:"xs"},It.createElement(fa,{variant:t,size:s,keycap:m,isBorderless:i}))):It.createElement(fa,{variant:t,size:s,keycap:l,isBorderless:i}),c!==u.length-1&&It.createElement(Mn,{size:s,isMonospace:!0,variant:ch[t],className:(0,Mu.default)(ua.default.Separator,t==="default"&&ua.default.DefaultColor)},"+"))))};import*as On from"react";var Ou=({tippyInstance:e,isEnabled:t=!0})=>{let r=On.useCallback(i=>{i.key==="Escape"&&e&&(i.preventDefault(),i.stopPropagation(),e.hide())},[e]),o=On.useCallback(()=>{t&&document.addEventListener("keydown",r,!0)},[t,r]),n=On.useCallback(()=>{t&&document.removeEventListener("keydown",r,!0)},[t,r]);return{startListeningToEsc:o,stopListeningToEsc:n}};var da=(e,t,r,o,n)=>{let i=Math.ceil((o+n)/2);if(o>=n){e.style.maxWidth=`${n}px`;return}let a=e.style.maxWidth;if(e.style.maxWidth=`${i}px`,t.scrollWidth>t.clientWidth){e.style.maxWidth=a;return}e.clientHeight>r?da(e,t,r,i+1,n):da(e,t,r,o+1,i)},Nr="druids_dialogs_tooltip",ph={popperOptions:{strategy:"fixed",modifiers:[{name:"preventOverflow",options:{mainAxis:!0,altAxis:!0,rootBoundary:"viewport"}}]},appendTo:Yf,zIndex:1e4},dh=[0,10],ca=F.createContext({content:"",setEnabled:()=>{}}),mh=F.forwardRef((e,t)=>F.createElement(Tf,{...e,innerRef:t})),Lu=({content:e="",placement:t="top",maxWidth:r=300,display:o="inline",delay:n="none",isAnimated:i=!1,shouldShowOnEnabled:a=!1,isOpen:s,className:l,tooltipClassName:c,children:u,shouldMergeNestedTooltips:m,isInteractive:f,isEnabled:p=!0,onShow:h,onHide:v,as:x="div",reference:y,triggerTarget:g,hasHoverEmphasis:C,hasArrow:d=!0,offset:w=dh,shouldLookLikePopover:S=f,maxNumberOfLines:P,shouldBalanceText:D=!P,shortcut:I,shortcutProps:O,getReferenceClientRect:M=null,...k})=>{let N=F.useRef(null),q=F.useRef(null),re=y===void 0&&!C;ur({componentName:"Tooltip",type:"misuse",message:"hasHoverEmphasis requires the Tooltip to add an extra element. So cannot be used with reference",shouldWarn:!!(C&&y)});let H=ia(e,W=>F.isValidElement(W)&&W.type===Rn);ur({componentName:"Tooltip",type:"misuse",message:"Tooltip content should not contain <Link>. Links are not accessible in non-interactive tooltips. Use isInteractive={true} to make the tooltip accessible.",shouldWarn:H&&!f});let A=C?mh:x,[$,ie]=F.useState(),oe=F.useRef(s);oe.current=s;let{startListeningToEsc:ne,stopListeningToEsc:U}=Ou({tippyInstance:$}),pe=F.useCallback(()=>{$&&oe.current!==!0&&$.unmount()},[$]),{content:ue,setEnabled:de}=F.useContext(ca),K=W=>{if(re){let je=N.current,Ne=je?.firstElementChild;if(je&&Ne){q.current=Ne.getAttribute("aria-describedby");let Fe=je.getAttribute("aria-describedby");if(Fe){let we=q.current,Ht=we?[we,Fe].filter(Boolean).join(" "):Fe;Ne.setAttribute("aria-describedby",Ht)}}}let J=W.popper.querySelector(`.${Nr}__tooltip`),Re=J.querySelector(".tippy-content");if(!(J&&Re&&J?.children.length))return;let le=J.style.maxWidth.endsWith("px")?parseInt(J.style.maxWidth,10):void 0;le&&J.clientWidth<le||!D||(da(J,Re,J.clientHeight,0,J.clientWidth+1),W?.popperInstance?.forceUpdate())},{style:Ie,setIsEnabled:Oe}=Zf({legacyElevation:"top",isEnabled:s===!0}),dt=W=>{let J=document.activeElement,Re=N.current,le=J?.closest(`.${Nr}`);if(le&&le!==Re&&Re?.contains(le))return!1;Oe(!0),h&&h(W),de&&de(!1),window.addEventListener("scroll",pe),ne()},Pe=W=>{if(Oe(!1),v&&v(W),de&&de(!0),window.removeEventListener("scroll",pe),U(),re){let Re=N.current?.firstElementChild;if(Re){let le=q.current;le?Re.setAttribute("aria-describedby",le):Re.removeAttribute("aria-describedby")}}},Le=Kr(I),Ct=Kr(O),ve=!!(ue||e||Le)&&p,Dt=Qf(ve),Rt=F.useCallback(W=>{$&&(W&&ve?$.enable():$.disable())},[$,ve]),mt=(0,pa.default)(Nr,l),Be=F.useMemo(()=>{let W=e;P&&e&&(W=F.createElement("div",{className:`${Nr}__cropped-content`,style:{WebkitLineClamp:P}},e));let J=null;return Le&&(J=F.createElement(kn,{variant:S?"default":"knockout",size:"sm",...Ct,keys:Le})),Le&&W?W=F.createElement(F.Fragment,null,W,F.createElement(Pr,{marginLeft:"sm"},J)):Le&&!W&&(W=J),ue&&W?F.createElement(F.Fragment,null,ue,F.createElement(If,{marginY:"xs"}),W):ue||W},[e,ue,P,Le,Ct,S]);document.createRange&&a&&$&&Dt===!1&&ve===!0&&($.enable(),$.show());let wt=F.useMemo(()=>({content:m&&ve?Be:null,setEnabled:Rt}),[Be,Rt,m,ve]);return F.createElement(Tl,{...ph,...Ie,...!(typeof s=="boolean")&&{trigger:"mouseenter focusin"},className:(0,pa.default)(`${Nr}__tooltip`,{[`${Nr}__tooltip--popover`]:S,[_r.dark]:!S},c),content:Be?f?Be:F.createElement(tu,{forcedTheme:"dark",hasWrapper:!1},Be):"",getReferenceClientRect:M,maxWidth:r,visible:s,placement:t,interactive:f,arrow:d,offset:w,onCreate:ie,onShow:dt,onMount:K,onHide:Pe,disabled:!ve,reference:y,triggerTarget:g,delay:(0,Pu.default)(n)?[Uo[n[0]],Uo[n[1]]]:Uo[n],animation:i?"fade":"none",duration:i?ff.short:0},C||y===void 0?F.createElement(A,{ref:W=>{N.current=W},className:mt,style:{display:o},...C?{shouldInherit:!0,underline:"dotted",as:x==="a"?"a":void 0}:{},...k},F.createElement(ca.Provider,{value:wt},u)):F.createElement(ca.Provider,{value:wt},u))};var bh=Z(ye());import*as _u from"react";import{createContext as hh,useContext as gh}from"react";var Au=hh({}),ma=()=>gh(Au);import{createContext as vh,useContext as xh}from"react";var yh=vh({}),Iu=()=>xh(yh);import*as Pn from"react";var Th=(e,t=document)=>e?e instanceof Document?document:e instanceof Window?window:e instanceof HTMLElement?e:e.current||t:t,Nu=(e,t=document)=>{let[r,o]=Pn.useState(null);return Pn.useLayoutEffect(()=>{let n=Th(e,t);n!==r&&o(n)}),r};import*as lp from"react";var Sh=(e,t)=>{if(typeof e=="number"){if(t===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(t===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(t===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(t===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},Ln=Sh;var Eh={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},Du=Eh;var Ch=e=>Ln(Du[e.toLowerCase()],6),Hu=Ch;var Rh=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,wh=e=>{let t;return(t=e.match(Rh))?Ln(parseInt(t[1],16),t[1].length):void 0},$u=wh;var _e="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",O6=`(?:${_e}|none)`,dr=`${_e}%`,P6=`(?:${_e}%|none)`,mo=`(?:${_e}%|${_e})`,Mh=`(?:${_e}%|${_e}|none)`,zu=`(?:${_e}(deg|grad|rad|turn)|${_e})`,L6=`(?:${_e}(deg|grad|rad|turn)|${_e}|none)`,jt="\\s*,\\s*";var A6=new RegExp("^"+Mh+"$");var kh=new RegExp(`^rgba?\\(\\s*${_e}${jt}${_e}${jt}${_e}\\s*(?:,\\s*${mo}\\s*)?\\)$`),Oh=new RegExp(`^rgba?\\(\\s*${dr}${jt}${dr}${jt}${dr}\\s*(?:,\\s*${mo}\\s*)?\\)$`),Ph=e=>{let t={mode:"rgb"},r;if(r=e.match(kh))r[1]!==void 0&&(t.r=r[1]/255),r[2]!==void 0&&(t.g=r[2]/255),r[3]!==void 0&&(t.b=r[3]/255);else if(r=e.match(Oh))r[1]!==void 0&&(t.r=r[1]/100),r[2]!==void 0&&(t.g=r[2]/100),r[3]!==void 0&&(t.b=r[3]/100);else return;return r[4]!==void 0?t.alpha=Math.max(0,Math.min(1,r[4]/100)):r[5]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+r[5]))),t},Bu=Ph;var Lh=(e,t)=>e===void 0?void 0:typeof e!="object"?Vu(e):e.mode!==void 0?e:t?{...e,mode:t}:void 0,Fu=Lh;var Ah=(e="rgb")=>t=>(t=Fu(t,e))!==void 0?t.mode===e?t:pt[t.mode][e]?pt[t.mode][e](t):e==="rgb"?pt[t.mode].rgb(t):pt.rgb[e](pt[t.mode].rgb(t)):void 0,Gt=Ah;var pt={},Wu={},ho=[],ha={},_h=e=>e,G=e=>(pt[e.mode]={...pt[e.mode],...e.toMode},Object.keys(e.fromMode||{}).forEach(t=>{pt[t]||(pt[t]={}),pt[t][e.mode]=e.fromMode[t]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(t=>{if(e.ranges[t]===void 0&&(e.ranges[t]=[0,1]),!e.interpolate[t])throw new Error(`Missing interpolator for: ${t}`);typeof e.interpolate[t]=="function"&&(e.interpolate[t]={use:e.interpolate[t]}),e.interpolate[t].fixup||(e.interpolate[t].fixup=_h)}),Wu[e.mode]=e,(e.parse||[]).forEach(t=>{Ih(t,e.mode)}),Gt(e.mode)),ju=e=>Wu[e],Ih=(e,t)=>{if(typeof e=="string"){if(!t)throw new Error("'mode' required when 'parser' is a string");ha[e]=t}else typeof e=="function"&&ho.indexOf(e)<0&&ho.push(e)};var ga=/[^\x00-\x7F]|[a-zA-Z_]/,Nh=/[^\x00-\x7F]|[-\w]/,T={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},L=0;function An(e){let t=e[L],r=e[L+1];return t==="-"||t==="+"?/\d/.test(r)||r==="."&&/\d/.test(e[L+2]):t==="."?/\d/.test(r):/\d/.test(t)}function ba(e){if(L>=e.length)return!1;let t=e[L];if(ga.test(t))return!0;if(t==="-"){if(e.length-L<2)return!1;let r=e[L+1];return!!(r==="-"||ga.test(r))}return!1}var Dh={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function go(e){let t="";if((e[L]==="-"||e[L]==="+")&&(t+=e[L++]),t+=_n(e),e[L]==="."&&/\d/.test(e[L+1])&&(t+=e[L++]+_n(e)),(e[L]==="e"||e[L]==="E")&&((e[L+1]==="-"||e[L+1]==="+")&&/\d/.test(e[L+2])?t+=e[L++]+e[L++]+_n(e):/\d/.test(e[L+1])&&(t+=e[L++]+_n(e))),ba(e)){let r=In(e);return r==="deg"||r==="rad"||r==="turn"||r==="grad"?{type:T.Hue,value:t*Dh[r]}:void 0}return e[L]==="%"?(L++,{type:T.Percentage,value:+t}):{type:T.Number,value:+t}}function _n(e){let t="";for(;/\d/.test(e[L]);)t+=e[L++];return t}function In(e){let t="";for(;L<e.length&&Nh.test(e[L]);)t+=e[L++];return t}function Hh(e){let t=In(e);return e[L]==="("?(L++,{type:T.Function,value:t}):t==="none"?{type:T.None,value:void 0}:{type:T.Ident,value:t}}function $h(e=""){let t=e.trim(),r=[],o;for(L=0;L<t.length;){if(o=t[L++],o===`
9
+ `||o===" "||o===" "){for(;L<t.length&&(t[L]===`
10
+ `||t[L]===" "||t[L]===" ");)L++;continue}if(o===",")return;if(o===")"){r.push({type:T.ParenClose});continue}if(o==="+"){if(L--,An(t)){r.push(go(t));continue}return}if(o==="-"){if(L--,An(t)){r.push(go(t));continue}if(ba(t)){r.push({type:T.Ident,value:In(t)});continue}return}if(o==="."){if(L--,An(t)){r.push(go(t));continue}return}if(o==="/"){for(;L<t.length&&(t[L]===`
11
+ `||t[L]===" "||t[L]===" ");)L++;let n;if(An(t)&&(n=go(t),n.type!==T.Hue)){r.push({type:T.Alpha,value:n});continue}if(ba(t)&&In(t)==="none"){r.push({type:T.Alpha,value:{type:T.None,value:void 0}});continue}return}if(/\d/.test(o)){L--,r.push(go(t));continue}if(ga.test(o)){L--,r.push(Hh(t));continue}return}return r}function zh(e){e._i=0;let t=e[e._i++];if(!t||t.type!==T.Function||t.value!=="color"||(t=e[e._i++],t.type!==T.Ident))return;let r=ha[t.value];if(!r)return;let o={mode:r},n=Gu(e,!1);if(!n)return;let i=ju(r).channels;for(let a=0,s,l;a<i.length;a++)s=n[a],l=i[a],s.type!==T.None&&(o[l]=s.type===T.Number?s.value:s.value/100,l==="alpha"&&(o[l]=Math.max(0,Math.min(1,o[l]))));return o}function Gu(e,t){let r=[],o;for(;e._i<e.length;){if(o=e[e._i++],o.type===T.None||o.type===T.Number||o.type===T.Alpha||o.type===T.Percentage||t&&o.type===T.Hue){r.push(o);continue}if(o.type===T.ParenClose){if(e._i<e.length)return;continue}return}if(!(r.length<3||r.length>4)){if(r.length===4){if(r[3].type!==T.Alpha)return;r[3]=r[3].value}return r.length===3&&r.push({type:T.None,value:void 0}),r.every(n=>n.type!==T.Alpha)?r:void 0}}function Bh(e,t){e._i=0;let r=e[e._i++];if(!r||r.type!==T.Function)return;let o=Gu(e,t);if(o)return o.unshift(r.value),o}var Fh=e=>{if(typeof e!="string")return;let t=$h(e),r=t?Bh(t,!0):void 0,o,n=0,i=ho.length;for(;n<i;)if((o=ho[n++](e,r))!==void 0)return o;return t?zh(t):void 0},Vu=Fh;function Vh(e,t){if(!t||t[0]!=="rgb"&&t[0]!=="rgba")return;let r={mode:"rgb"},[,o,n,i,a]=t;if(!(o.type===T.Hue||n.type===T.Hue||i.type===T.Hue))return o.type!==T.None&&(r.r=o.type===T.Number?o.value/255:o.value/100),n.type!==T.None&&(r.g=n.type===T.Number?n.value/255:n.value/100),i.type!==T.None&&(r.b=i.type===T.Number?i.value/255:i.value/100),a.type!==T.None&&(r.alpha=Math.min(1,Math.max(0,a.type===T.Number?a.value:a.value/100))),r}var Xu=Vh;var Wh=e=>e==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,Uu=Wh;var qu=(e,t,r)=>e+r*(t-e);var jh=e=>{let t=[];for(let r=0;r<e.length-1;r++){let o=e[r],n=e[r+1];o===void 0&&n===void 0?t.push(void 0):o!==void 0&&n!==void 0?t.push([o,n]):t.push(o!==void 0?[o,o]:[n,n])}return t},Ku=e=>t=>{let r=jh(t);return o=>{let n=o*r.length,i=o>=1?r.length-1:Math.max(Math.floor(n),0),a=r[i];return a===void 0?void 0:e(a[0],a[1],n-i)}};var E=Ku(qu);var z=e=>{let t=!1,r=e.map(o=>o!==void 0?(t=!0,o):1);return t?r:e};var Gh={mode:"rgb",channels:["r","g","b","alpha"],parse:[Xu,$u,Bu,Hu,Uu,"srgb"],serialize:"srgb",interpolate:{r:E,g:E,b:E,alpha:{use:E,fixup:z}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Qe=Gh;var va=(e=0)=>Math.pow(Math.abs(e),2.19921875)*Math.sign(e),Xh=e=>{let t=va(e.r),r=va(e.g),o=va(e.b),n={mode:"xyz65",x:.5766690429101305*t+.1855582379065463*r+.1882286462349947*o,y:.297344975250536*t+.6273635662554661*r+.0752914584939979*o,z:.0270313613864123*t+.0706888525358272*r+.9913375368376386*o};return e.alpha!==void 0&&(n.alpha=e.alpha),n},xa=Xh;var ya=e=>Math.pow(Math.abs(e),.4547069271758437)*Math.sign(e),Uh=({x:e,y:t,z:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"a98",r:ya(e*2.0415879038107465-t*.5650069742788597-.3447313507783297*r),g:ya(e*-.9692436362808798+t*1.8759675015077206+.0415550574071756*r),b:ya(e*.0134442806320312-t*.1183623922310184+1.0151749943912058*r)};return o!==void 0&&(n.alpha=o),n},Ta=Uh;var Sa=(e=0)=>{let t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((t+.055)/1.055,2.4)},qh=({r:e,g:t,b:r,alpha:o})=>{let n={mode:"lrgb",r:Sa(e),g:Sa(t),b:Sa(r)};return o!==void 0&&(n.alpha=o),n},et=qh;var Kh=e=>{let{r:t,g:r,b:o,alpha:n}=et(e),i={mode:"xyz65",x:.4123907992659593*t+.357584339383878*r+.1804807884018343*o,y:.2126390058715102*t+.715168678767756*r+.0721923153607337*o,z:.0193308187155918*t+.119194779794626*r+.9505321522496607*o};return n!==void 0&&(i.alpha=n),i},$e=Kh;var Ea=(e=0)=>{let t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(t,.4166666666666667)-.055):e*12.92},Zh=({r:e,g:t,b:r,alpha:o},n="rgb")=>{let i={mode:n,r:Ea(e),g:Ea(t),b:Ea(r)};return o!==void 0&&(i.alpha=o),i},tt=Zh;var Yh=({x:e,y:t,z:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=tt({r:e*3.2409699419045226-t*1.537383177570094-.4986107602930034*r,g:e*-.9692436362808796+t*1.8759675015077204+.0415550574071756*r,b:e*.0556300796969936-t*.2039769588889765+1.0569715142428784*r});return o!==void 0&&(n.alpha=o),n},ze=Yh;var Jh={...Qe,mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>Ta($e(e)),xyz65:Ta},toMode:{rgb:e=>ze(xa(e)),xyz65:xa}},Zu=Jh;var Qh=e=>(e=e%360)<0?e+360:e,ee=Qh;var eg=(e,t)=>e.map((r,o,n)=>{if(r===void 0)return r;let i=ee(r);return o===0||e[o-1]===void 0?i:t(i-ee(n[o-1]))}).reduce((r,o)=>!r.length||o===void 0||r[r.length-1]===void 0?(r.push(o),r):(r.push(o+r[r.length-1]),r),[]),Ee=e=>eg(e,t=>Math.abs(t)<=180?t:t-360*Math.sign(t));var he=[-.14861,1.78277,-.29227,-.90649,1.97294,0],Yu=Math.PI/180,Ju=180/Math.PI;var Qu=he[3]*he[4],ec=he[1]*he[4],tc=he[1]*he[2]-he[0]*he[3],tg=({r:e,g:t,b:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=(tc*r+e*Qu-t*ec)/(tc+Qu-ec),i=r-n,a=(he[4]*(t-n)-he[2]*i)/he[3],s={mode:"cubehelix",l:n,s:n===0||n===1?void 0:Math.sqrt(i*i+a*a)/(he[4]*n*(1-n))};return s.s&&(s.h=Math.atan2(a,i)*Ju-120),o!==void 0&&(s.alpha=o),s},rc=tg;var rg=({h:e,s:t,l:r,alpha:o})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*Yu,r===void 0&&(r=0);let i=t===void 0?0:t*r*(1-r),a=Math.cos(e),s=Math.sin(e);return n.r=r+i*(he[0]*a+he[1]*s),n.g=r+i*(he[2]*a+he[3]*s),n.b=r+i*(he[4]*a+he[5]*s),o!==void 0&&(n.alpha=o),n},oc=rg;var Xt=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.s||!t.s)return 0;let r=ee(e.h),o=ee(t.h),n=Math.sin((o-r+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*t.s)*n},nc=(e,t)=>{if(e.h===void 0||t.h===void 0)return 0;let r=ee(e.h),o=ee(t.h);return Math.abs(o-r)>180?r-(o-360*Math.sign(o-r)):o-r},Ut=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.c||!t.c)return 0;let r=ee(e.h),o=ee(t.h),n=Math.sin((o-r+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*t.c)*n};var Ce=e=>{let t=e.reduce((o,n)=>{if(n!==void 0){let i=n*Math.PI/180;o.sin+=Math.sin(i),o.cos+=Math.cos(i)}return o},{sin:0,cos:0}),r=Math.atan2(t.sin,t.cos)*180/Math.PI;return r<0?360+r:r};var og={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:rc},toMode:{rgb:oc},interpolate:{h:{use:E,fixup:Ee},s:E,l:E,alpha:{use:E,fixup:z}},difference:{h:Xt},average:{h:Ce}},ic=og;var ng=({l:e,a:t,b:r,alpha:o},n="lch")=>{t===void 0&&(t=0),r===void 0&&(r=0);let i=Math.sqrt(t*t+r*r),a={mode:n,l:e,c:i};return i&&(a.h=ee(Math.atan2(r,t)*180/Math.PI)),o!==void 0&&(a.alpha=o),a},Ve=ng;var ig=({l:e,c:t,h:r,alpha:o},n="lab")=>{r===void 0&&(r=0);let i={mode:n,l:e,a:t?t*Math.cos(r/180*Math.PI):0,b:t?t*Math.sin(r/180*Math.PI):0};return o!==void 0&&(i.alpha=o),i},We=ig;var Nn=Math.pow(29,3)/Math.pow(3,3),Dn=Math.pow(6,3)/Math.pow(29,3);var se={X:.9642956764295677,Y:1,Z:.8251046025104602},qt={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},GC=Math.pow(29,3)/Math.pow(3,3),XC=Math.pow(6,3)/Math.pow(29,3);var Ca=e=>Math.pow(e,3)>Dn?Math.pow(e,3):(116*e-16)/Nn,ag=({l:e,a:t,b:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=(e+16)/116,i=t/500+n,a=n-r/200,s={mode:"xyz65",x:Ca(i)*qt.X,y:Ca(n)*qt.Y,z:Ca(a)*qt.Z};return o!==void 0&&(s.alpha=o),s},Hn=ag;var sg=e=>ze(Hn(e)),Kt=sg;var Ra=e=>e>Dn?Math.cbrt(e):(Nn*e+16)/116,lg=({x:e,y:t,z:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Ra(e/qt.X),i=Ra(t/qt.Y),a=Ra(r/qt.Z),s={mode:"lab65",l:116*i-16,a:500*(n-i),b:200*(i-a)};return o!==void 0&&(s.alpha=o),s},$n=lg;var fg=e=>{let t=$n($e(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Zt=fg;var mr=.14444444444444443*Math.PI,Dr=Math.cos(mr),Hr=Math.sin(mr),zn=100/Math.log(139/100);var ug=({l:e,c:t,h:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"lab65",l:(Math.exp(e*1/zn)-1)/.0039},i=(Math.exp(.0435*t*1*1)-1)/.075,a=i*Math.cos(r/180*Math.PI-mr),s=i*Math.sin(r/180*Math.PI-mr);return n.a=a*Dr-s/.83*Hr,n.b=a*Hr+s/.83*Dr,o!==void 0&&(n.alpha=o),n},vo=ug;var cg=({l:e,a:t,b:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=t*Dr+r*Hr,i=.83*(r*Dr-t*Hr),a=Math.sqrt(n*n+i*i),s={mode:"dlch",l:zn/1*Math.log(1+.0039*e),c:Math.log(1+.075*a)/(.0435*1*1)};return s.c&&(s.h=ee((Math.atan2(i,n)+mr)/Math.PI*180)),o!==void 0&&(s.alpha=o),s},xo=cg;var ac=e=>vo(Ve(e,"dlch")),sc=e=>We(xo(e),"dlab"),pg={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:ac,rgb:e=>Kt(ac(e))},fromMode:{lab65:sc,rgb:e=>sc(Zt(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:z}}},lc=pg;var dg={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:vo,dlab:e=>We(e,"dlab"),rgb:e=>Kt(vo(e))},fromMode:{lab65:xo,dlab:e=>Ve(e,"dlch"),rgb:e=>xo(Zt(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:Ee},alpha:{use:E,fixup:z}},difference:{h:Ut},average:{h:Ce}},fc=dg;function Ma({h:e,s:t,i:r,alpha:o}){e=ee(e!==void 0?e:0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r:r*(1+t*(3/(2-n)-1)),g:r*(1+t*(3*(1-n)/(2-n)-1)),b:r*(1-t)};break;case 1:i={r:r*(1+t*(3*(1-n)/(2-n)-1)),g:r*(1+t*(3/(2-n)-1)),b:r*(1-t)};break;case 2:i={r:r*(1-t),g:r*(1+t*(3/(2-n)-1)),b:r*(1+t*(3*(1-n)/(2-n)-1))};break;case 3:i={r:r*(1-t),g:r*(1+t*(3*(1-n)/(2-n)-1)),b:r*(1+t*(3/(2-n)-1))};break;case 4:i={r:r*(1+t*(3*(1-n)/(2-n)-1)),g:r*(1-t),b:r*(1+t*(3/(2-n)-1))};break;case 5:i={r:r*(1+t*(3/(2-n)-1)),g:r*(1-t),b:r*(1+t*(3*(1-n)/(2-n)-1))};break;default:i={r:r*(1-t),g:r*(1-t),b:r*(1-t)}}return i.mode="rgb",o!==void 0&&(i.alpha=o),i}function ka({r:e,g:t,b:r,alpha:o}){e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.max(e,t,r),i=Math.min(e,t,r),a={mode:"hsi",s:e+t+r===0?0:1-3*i/(e+t+r),i:(e+t+r)/3};return n-i!==0&&(a.h=(n===e?(t-r)/(n-i)+(t<r)*6:n===t?(r-e)/(n-i)+2:(e-t)/(n-i)+4)*60),o!==void 0&&(a.alpha=o),a}var mg={mode:"hsi",toMode:{rgb:Ma},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:ka},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:E,fixup:Ee},s:E,i:E,alpha:{use:E,fixup:z}},difference:{h:Xt},average:{h:Ce}},uc=mg;function Oa({h:e,s:t,l:r,alpha:o}){e=ee(e!==void 0?e:0),t===void 0&&(t=0),r===void 0&&(r=0);let n=r+t*(r<.5?r:1-r),i=n-(n-r)*2*Math.abs(e/60%2-1),a;switch(Math.floor(e/60)){case 0:a={r:n,g:i,b:2*r-n};break;case 1:a={r:i,g:n,b:2*r-n};break;case 2:a={r:2*r-n,g:n,b:i};break;case 3:a={r:2*r-n,g:i,b:n};break;case 4:a={r:i,g:2*r-n,b:n};break;case 5:a={r:n,g:2*r-n,b:i};break;default:a={r:2*r-n,g:2*r-n,b:2*r-n}}return a.mode="rgb",o!==void 0&&(a.alpha=o),a}function Pa({r:e,g:t,b:r,alpha:o}){e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.max(e,t,r),i=Math.min(e,t,r),a={mode:"hsl",s:n===i?0:(n-i)/(1-Math.abs(n+i-1)),l:.5*(n+i)};return n-i!==0&&(a.h=(n===e?(t-r)/(n-i)+(t<r)*6:n===t?(r-e)/(n-i)+2:(e-t)/(n-i)+4)*60),o!==void 0&&(a.alpha=o),a}var hg=(e,t)=>{switch(t){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},cc=hg;var gg=new RegExp(`^hsla?\\(\\s*${zu}${jt}${dr}${jt}${dr}\\s*(?:,\\s*${mo}\\s*)?\\)$`),bg=e=>{let t=e.match(gg);if(!t)return;let r={mode:"hsl"};return t[3]!==void 0?r.h=+t[3]:t[1]!==void 0&&t[2]!==void 0&&(r.h=cc(t[1],t[2])),t[4]!==void 0&&(r.s=Math.min(Math.max(0,t[4]/100),1)),t[5]!==void 0&&(r.l=Math.min(Math.max(0,t[5]/100),1)),t[6]!==void 0?r.alpha=Math.max(0,Math.min(1,t[6]/100)):t[7]!==void 0&&(r.alpha=Math.max(0,Math.min(1,+t[7]))),r},pc=bg;function vg(e,t){if(!t||t[0]!=="hsl"&&t[0]!=="hsla")return;let r={mode:"hsl"},[,o,n,i,a]=t;if(o.type!==T.None){if(o.type===T.Percentage)return;r.h=o.value}if(n.type!==T.None){if(n.type===T.Hue)return;r.s=n.value/100}if(i.type!==T.None){if(i.type===T.Hue)return;r.l=i.value/100}return a.type!==T.None&&(r.alpha=Math.min(1,Math.max(0,a.type===T.Number?a.value:a.value/100))),r}var dc=vg;var xg={mode:"hsl",toMode:{rgb:Oa},fromMode:{rgb:Pa},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[dc,pc],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:E,fixup:Ee},s:E,l:E,alpha:{use:E,fixup:z}},difference:{h:Xt},average:{h:Ce}},Bn=xg;function yo({h:e,s:t,v:r,alpha:o}){e=ee(e!==void 0?e:0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r,g:r*(1-t*n),b:r*(1-t)};break;case 1:i={r:r*(1-t*n),g:r,b:r*(1-t)};break;case 2:i={r:r*(1-t),g:r,b:r*(1-t*n)};break;case 3:i={r:r*(1-t),g:r*(1-t*n),b:r};break;case 4:i={r:r*(1-t*n),g:r*(1-t),b:r};break;case 5:i={r,g:r*(1-t),b:r*(1-t*n)};break;default:i={r:r*(1-t),g:r*(1-t),b:r*(1-t)}}return i.mode="rgb",o!==void 0&&(i.alpha=o),i}function To({r:e,g:t,b:r,alpha:o}){e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.max(e,t,r),i=Math.min(e,t,r),a={mode:"hsv",s:n===0?0:1-i/n,v:n};return n-i!==0&&(a.h=(n===e?(t-r)/(n-i)+(t<r)*6:n===t?(r-e)/(n-i)+2:(e-t)/(n-i)+4)*60),o!==void 0&&(a.alpha=o),a}var yg={mode:"hsv",toMode:{rgb:yo},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:To},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:E,fixup:Ee},s:E,v:E,alpha:{use:E,fixup:z}},difference:{h:Xt},average:{h:Ce}},Fn=yg;function La({h:e,w:t,b:r,alpha:o}){if(t===void 0&&(t=0),r===void 0&&(r=0),t+r>1){let n=t+r;t/=n,r/=n}return yo({h:e,s:r===1?1:1-t/(1-r),v:1-r,alpha:o})}function Aa(e){let t=To(e);if(t===void 0)return;let r=t.s!==void 0?t.s:0,o=t.v!==void 0?t.v:0,n={mode:"hwb",w:(1-r)*o,b:1-o};return t.h!==void 0&&(n.h=t.h),t.alpha!==void 0&&(n.alpha=t.alpha),n}function Tg(e,t){if(!t||t[0]!=="hwb")return;let r={mode:"hwb"},[,o,n,i,a]=t;if(o.type!==T.None){if(o.type===T.Percentage)return;r.h=o.value}if(n.type!==T.None){if(n.type===T.Hue)return;r.w=n.value/100}if(i.type!==T.None){if(i.type===T.Hue)return;r.b=i.value/100}return a.type!==T.None&&(r.alpha=Math.min(1,Math.max(0,a.type===T.Number?a.value:a.value/100))),r}var mc=Tg;var Sg={mode:"hwb",toMode:{rgb:La},fromMode:{rgb:Aa},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[mc],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:E,fixup:Ee},w:E,b:E,alpha:{use:E,fixup:z}},difference:{h:nc},average:{h:Ce}},hc=Sg;var $r=.1593017578125,gc=78.84375,zr=.8359375,Br=18.8515625,Fr=18.6875;function Vn(e){if(e<0)return 0;let t=Math.pow(e,1/gc);return 1e4*Math.pow(Math.max(0,t-zr)/(Br-Fr*t),1/$r)}function Wn(e){if(e<0)return 0;let t=Math.pow(e/1e4,$r);return Math.pow((zr+Br*t)/(1+Fr*t),gc)}var _a=e=>Math.max(e/203,0),Cg=({i:e,t,p:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Vn(e+.008609037037932761*t+.11102962500302593*r),i=Vn(e-.00860903703793275*t-.11102962500302599*r),a=Vn(e+.5600313357106791*t-.32062717498731885*r),s={mode:"xyz65",x:_a(2.070152218389422*n-1.3263473389671556*i+.2066510476294051*a),y:_a(.3647385209748074*n+.680566024947227*i-.0453045459220346*a),z:_a(-.049747207535812*n-.0492609666966138*i+1.1880659249923042*a)};return o!==void 0&&(s.alpha=o),s},Ia=Cg;var Na=(e=0)=>Math.max(e*203,0),Rg=({x:e,y:t,z:r,alpha:o})=>{let n=Na(e),i=Na(t),a=Na(r),s=Wn(.3592832590121217*n+.6976051147779502*i-.0358915932320289*a),l=Wn(-.1920808463704995*n+1.1004767970374323*i+.0753748658519118*a),c=Wn(.0070797844607477*n+.0748396662186366*i+.8433265453898765*a),u=.5*s+.5*l,m=1.61376953125*s-3.323486328125*l+1.709716796875*c,f=4.378173828125*s-4.24560546875*l-.132568359375*c,p={mode:"itp",i:u,t:m,p:f};return o!==void 0&&(p.alpha=o),p},Da=Rg;var wg={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:Ia,rgb:e=>ze(Ia(e))},fromMode:{xyz65:Da,rgb:e=>Da($e(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:E,t:E,p:E,alpha:{use:E,fixup:z}}},bc=wg;var Mg=134.03437499999998,kg=16295499532821565e-27,Ha=e=>{if(e<0)return 0;let t=Math.pow(e/1e4,$r);return Math.pow((zr+Br*t)/(1+Fr*t),Mg)},$a=(e=0)=>Math.max(e*203,0),Og=({x:e,y:t,z:r,alpha:o})=>{e=$a(e),t=$a(t),r=$a(r);let n=1.15*e-.15*r,i=.66*t+.34*e,a=Ha(.41478972*n+.579999*i+.014648*r),s=Ha(-.20151*n+1.120649*i+.0531008*r),l=Ha(-.0166008*n+.2648*i+.6684799*r),c=(a+s)/2,u={mode:"jab",j:.44*c/(1-.56*c)-kg,a:3.524*a-4.066708*s+.542708*l,b:.199076*a+1.096799*s-1.295875*l};return o!==void 0&&(u.alpha=o),u},jn=Og;var Pg=134.03437499999998,vc=16295499532821565e-27,za=e=>{if(e<0)return 0;let t=Math.pow(e,1/Pg);return 1e4*Math.pow((zr-t)/(Fr*t-Br),1/$r)},Ba=e=>e/203,Lg=({j:e,a:t,b:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=(e+vc)/(.44+.56*(e+vc)),i=za(n+.13860504*t+.058047316*r),a=za(n-.13860504*t-.058047316*r),s=za(n-.096019242*t-.8118919*r),l={mode:"xyz65",x:Ba(1.661373024652174*i-.914523081304348*a+.23136208173913045*s),y:Ba(-.3250758611844533*i+1.571847026732543*a-.21825383453227928*s),z:Ba(-.090982811*i-.31272829*a+1.5227666*s)};return o!==void 0&&(l.alpha=o),l},Gn=Lg;var Ag=e=>{let t=jn($e(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Xn=Ag;var _g=e=>ze(Gn(e)),Un=_g;var Ig={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:Xn,xyz65:jn},toMode:{rgb:Un,xyz65:Gn},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:E,a:E,b:E,alpha:{use:E,fixup:z}}},xc=Ig;var Ng=({j:e,a:t,b:r,alpha:o})=>{t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.sqrt(t*t+r*r),i={mode:"jch",j:e,c:n};return n&&(i.h=ee(Math.atan2(r,t)*180/Math.PI)),o!==void 0&&(i.alpha=o),i},Fa=Ng;var Dg=({j:e,c:t,h:r,alpha:o})=>{r===void 0&&(r=0);let n={mode:"jab",j:e,a:t?t*Math.cos(r/180*Math.PI):0,b:t?t*Math.sin(r/180*Math.PI):0};return o!==void 0&&(n.alpha=o),n},Va=Dg;var Hg={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:Va,rgb:e=>Un(Va(e))},fromMode:{rgb:e=>Fa(Xn(e)),jab:Fa},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:E,fixup:Ee},c:E,j:E,alpha:{use:E,fixup:z}},difference:{h:Ut},average:{h:Ce}},yc=Hg;var Yt=Math.pow(29,3)/Math.pow(3,3),Vr=Math.pow(6,3)/Math.pow(29,3);var Wa=e=>Math.pow(e,3)>Vr?Math.pow(e,3):(116*e-16)/Yt,$g=({l:e,a:t,b:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=(e+16)/116,i=t/500+n,a=n-r/200,s={mode:"xyz50",x:Wa(i)*se.X,y:Wa(n)*se.Y,z:Wa(a)*se.Z};return o!==void 0&&(s.alpha=o),s},Wr=$g;var zg=({x:e,y:t,z:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=tt({r:e*3.1341359569958707-t*1.6173863321612538-.4906619460083532*r,g:e*-.978795502912089+t*1.916254567259524+.03344273116131949*r,b:e*.07195537988411677-t*.2289768264158322+1.405386058324125*r});return o!==void 0&&(n.alpha=o),n},Tt=zg;var Bg=e=>Tt(Wr(e)),qn=Bg;var Fg=e=>{let{r:t,g:r,b:o,alpha:n}=et(e),i={mode:"xyz50",x:.436065742824811*t+.3851514688337912*r+.14307845442264197*o,y:.22249319175623702*t+.7168870538238823*r+.06061979053616537*o,z:.013923904500943465*t+.09708128566574634*r+.7140993584005155*o};return n!==void 0&&(i.alpha=n),i},St=Fg;var ja=e=>e>Vr?Math.cbrt(e):(Yt*e+16)/116,Vg=({x:e,y:t,z:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=ja(e/se.X),i=ja(t/se.Y),a=ja(r/se.Z),s={mode:"lab",l:116*i-16,a:500*(n-i),b:200*(i-a)};return o!==void 0&&(s.alpha=o),s},jr=Vg;var Wg=e=>{let t=jr(St(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Kn=Wg;function jg(e,t){if(!t||t[0]!=="lab")return;let r={mode:"lab"},[,o,n,i,a]=t;if(!(o.type===T.Hue||n.type===T.Hue||i.type===T.Hue))return o.type!==T.None&&(r.l=Math.min(Math.max(0,o.value),100)),n.type!==T.None&&(r.a=n.type===T.Number?n.value:n.value*125/100),i.type!==T.None&&(r.b=i.type===T.Number?i.value:i.value*125/100),a.type!==T.None&&(r.alpha=Math.min(1,Math.max(0,a.type===T.Number?a.value:a.value/100))),r}var Tc=jg;var Gg={mode:"lab",toMode:{xyz50:Wr,rgb:qn},fromMode:{xyz50:jr,rgb:Kn},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-100,100],b:[-100,100]},parse:[Tc],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:E,a:E,b:E,alpha:{use:E,fixup:z}}},Gr=Gg;var Xg={...Gr,mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:Hn,rgb:Kt},fromMode:{xyz65:$n,rgb:Zt},ranges:{l:[0,100],a:[-86.182,98.234],b:[-107.86,94.477]}},Sc=Xg;function Ug(e,t){if(!t||t[0]!=="lch")return;let r={mode:"lch"},[,o,n,i,a]=t;if(o.type!==T.None){if(o.type===T.Hue)return;r.l=Math.min(Math.max(0,o.value),100)}if(n.type!==T.None&&(r.c=Math.max(0,n.type===T.Number?n.value:n.value*150/100)),i.type!==T.None){if(i.type===T.Percentage)return;r.h=i.value}return a.type!==T.None&&(r.alpha=Math.min(1,Math.max(0,a.type===T.Number?a.value:a.value/100))),r}var Ec=Ug;var qg={mode:"lch",toMode:{lab:We,rgb:e=>qn(We(e))},fromMode:{rgb:e=>Ve(Kn(e)),lab:Ve},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[Ec],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:E,fixup:Ee},c:E,l:E,alpha:{use:E,fixup:z}},difference:{h:Ut},average:{h:Ce}},Xr=qg;var Kg={...Xr,mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>We(e,"lab65"),rgb:e=>Kt(We(e,"lab65"))},fromMode:{rgb:e=>Ve(Zt(e),"lch65"),lab65:e=>Ve(e,"lch65")},ranges:{l:[0,100],c:[0,133.807],h:[0,360]}},Cc=Kg;var Zg=({l:e,u:t,v:r,alpha:o})=>{t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.sqrt(t*t+r*r),i={mode:"lchuv",l:e,c:n};return n&&(i.h=ee(Math.atan2(r,t)*180/Math.PI)),o!==void 0&&(i.alpha=o),i},Ga=Zg;var Yg=({l:e,c:t,h:r,alpha:o})=>{r===void 0&&(r=0);let n={mode:"luv",l:e,u:t?t*Math.cos(r/180*Math.PI):0,v:t?t*Math.sin(r/180*Math.PI):0};return o!==void 0&&(n.alpha=o),n},Xa=Yg;var Rc=(e,t,r)=>4*e/(e+15*t+3*r),wc=(e,t,r)=>9*t/(e+15*t+3*r),Jg=Rc(se.X,se.Y,se.Z),Qg=wc(se.X,se.Y,se.Z),eb=e=>e<=Vr?Yt*e:116*Math.cbrt(e)-16,tb=({x:e,y:t,z:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=eb(t/se.Y),i=Rc(e,t,r),a=wc(e,t,r);!isFinite(i)||!isFinite(a)?n=i=a=0:(i=13*n*(i-Jg),a=13*n*(a-Qg));let s={mode:"luv",l:n,u:i,v:a};return o!==void 0&&(s.alpha=o),s},So=tb;var rb=(e,t,r)=>4*e/(e+15*t+3*r),ob=(e,t,r)=>9*t/(e+15*t+3*r),nb=rb(se.X,se.Y,se.Z),ib=ob(se.X,se.Y,se.Z),ab=({l:e,u:t,v:r,alpha:o})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};t===void 0&&(t=0),r===void 0&&(r=0);let n=t/(13*e)+nb,i=r/(13*e)+ib,a=se.Y*(e<=8?e/Yt:Math.pow((e+16)/116,3)),s=a*(9*n)/(4*i),l=a*(12-3*n-20*i)/(4*i),c={mode:"xyz50",x:s,y:a,z:l};return o!==void 0&&(c.alpha=o),c},Eo=ab;var sb=e=>Ga(So(St(e))),lb=e=>Tt(Eo(Xa(e))),fb={mode:"lchuv",toMode:{luv:Xa,rgb:lb},fromMode:{rgb:sb,luv:Ga},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:Ee},c:E,l:E,alpha:{use:E,fixup:z}},difference:{h:Ut},average:{h:Ce}},Mc=fb;var ub={...Qe,mode:"lrgb",toMode:{rgb:tt},fromMode:{rgb:et},parse:["srgb-linear"],serialize:"srgb-linear"},kc=ub;var cb={mode:"luv",toMode:{xyz50:Eo,rgb:e=>Tt(Eo(e))},fromMode:{xyz50:So,rgb:e=>So(St(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:z}}},Oc=cb;var pb=({r:e,g:t,b:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.cbrt(.41222147079999993*e+.5363325363*t+.0514459929*r),i=Math.cbrt(.2119034981999999*e+.6806995450999999*t+.1073969566*r),a=Math.cbrt(.08830246189999998*e+.2817188376*t+.6299787005000002*r),s={mode:"oklab",l:.2104542553*n+.793617785*i-.0040720468*a,a:1.9779984951*n-2.428592205*i+.4505937099*a,b:.0259040371*n+.7827717662*i-.808675766*a};return o!==void 0&&(s.alpha=o),s},Zn=pb;var db=e=>{let t=Zn(et(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Jt=db;var mb=({l:e,a:t,b:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.pow(e*.9999999984505198+.39633779217376786*t+.2158037580607588*r,3),i=Math.pow(e*1.0000000088817609-.10556134232365635*t-.06385417477170591*r,3),a=Math.pow(e*1.0000000546724108-.08948418209496575*t-1.2914855378640917*r,3),s={mode:"lrgb",r:4.076741661347994*n-3.307711590408193*i+.230969928729428*a,g:-1.2684380040921763*n+2.6097574006633715*i-.3413193963102197*a,b:-.004196086541837188*n-.7034186144594493*i+1.7076147009309444*a};return o!==void 0&&(s.alpha=o),s},Et=mb;var hb=e=>tt(Et(e)),Qt=hb;function Co(e){let o=1.170873786407767;return .5*(o*e-.206+Math.sqrt((o*e-.206)*(o*e-.206)+4*.03*o*e))}function hr(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function gb(e,t){let r,o,n,i,a,s,l,c;-1.88170328*e-.80936493*t>1?(r=1.19086277,o=1.76576728,n=.59662641,i=.75515197,a=.56771245,s=4.0767416621,l=-3.3077115913,c=.2309699292):1.81444104*e-1.19445276*t>1?(r=.73956515,o=-.45954404,n=.08285427,i=.1254107,a=.14503204,s=-1.2684380046,l=2.6097574011,c=-.3413193965):(r=1.35733652,o=-.00915799,n=-1.1513021,i=-.50559606,a=.00692167,s=-.0041960863,l=-.7034186147,c=1.707614701);let u=r+o*e+n*t+i*e*e+a*e*t,m=.3963377774*e+.2158037573*t,f=-.1055613458*e-.0638541728*t,p=-.0894841775*e-1.291485548*t;{let h=1+u*m,v=1+u*f,x=1+u*p,y=h*h*h,g=v*v*v,C=x*x*x,d=3*m*h*h,w=3*f*v*v,S=3*p*x*x,P=6*m*m*h,D=6*f*f*v,I=6*p*p*x,O=s*y+l*g+c*C,M=s*d+l*w+c*S,k=s*P+l*D+c*I;u=u-O*M/(M*M-.5*O*k)}return u}function Ua(e,t){let r=gb(e,t),o=Et({l:1,a:r*e,b:r*t}),n=Math.cbrt(1/Math.max(o.r,o.g,o.b)),i=n*r;return[n,i]}function bb(e,t,r,o,n,i=null){i||(i=Ua(e,t));let a;if((r-n)*i[1]-(i[0]-n)*o<=0)a=i[1]*n/(o*i[0]+i[1]*(n-r));else{a=i[1]*(n-1)/(o*(i[0]-1)+i[1]*(n-r));{let s=r-n,l=o,c=.3963377774*e+.2158037573*t,u=-.1055613458*e-.0638541728*t,m=-.0894841775*e-1.291485548*t,f=s+l*c,p=s+l*u,h=s+l*m;{let v=n*(1-a)+a*r,x=a*o,y=v+x*c,g=v+x*u,C=v+x*m,d=y*y*y,w=g*g*g,S=C*C*C,P=3*f*y*y,D=3*p*g*g,I=3*h*C*C,O=6*f*f*y,M=6*p*p*g,k=6*h*h*C,N=4.0767416621*d-3.3077115913*w+.2309699292*S-1,q=4.0767416621*P-3.3077115913*D+.2309699292*I,re=4.0767416621*O-3.3077115913*M+.2309699292*k,H=q/(q*q-.5*N*re),A=-N*H,$=-1.2684380046*d+2.6097574011*w-.3413193965*S-1,ie=-1.2684380046*P+2.6097574011*D-.3413193965*I,oe=-1.2684380046*O+2.6097574011*M-.3413193965*k,ne=ie/(ie*ie-.5*$*oe),U=-$*ne,pe=-.0041960863*d-.7034186147*w+1.707614701*S-1,ue=-.0041960863*P-.7034186147*D+1.707614701*I,de=-.0041960863*O-.7034186147*M+1.707614701*k,K=ue/(ue*ue-.5*pe*de),Ie=-pe*K;A=H>=0?A:1e6,U=ne>=0?U:1e6,Ie=K>=0?Ie:1e6,a+=Math.min(A,Math.min(U,Ie))}}}return a}function Ro(e,t,r=null){r||(r=Ua(e,t));let o=r[0],n=r[1];return[n/o,n/(1-o)]}function Yn(e,t,r){let o=Ua(t,r),n=bb(t,r,e,1,e,o),i=Ro(t,r,o),a=.11516993+1/(7.4477897+4.1590124*r+t*(-2.19557347+1.75198401*r+t*(-2.13704948-10.02301043*r+t*(-4.24894561+5.38770819*r+4.69891013*t)))),s=.11239642+1/(1.6132032-.68124379*r+t*(.40370612+.90148123*r+t*(-.27087943+.6122399*r+t*(.00299215-.45399568*r-.14661872*t)))),l=n/Math.min(e*i[0],(1-e)*i[1]),c=e*a,u=(1-e)*s,m=.9*l*Math.sqrt(Math.sqrt(1/(1/(c*c*c*c)+1/(u*u*u*u))));return c=e*.4,u=(1-e)*.8,[Math.sqrt(1/(1/(c*c)+1/(u*u))),m,n]}function Jn(e){let t=e.l!==void 0?e.l:0,r=e.a!==void 0?e.a:0,o=e.b!==void 0?e.b:0,n={mode:"okhsl",l:Co(t)};e.alpha!==void 0&&(n.alpha=e.alpha);let i=Math.sqrt(r*r+o*o);if(!i)return n.s=0,n;let[a,s,l]=Yn(t,r/i,o/i),c;if(i<s){let u=0,m=.8*a,f=1-m/s;c=(i-u)/(m+f*(i-u))*.8}else{let u=s,m=.2*s*s*1.25*1.25/a,f=1-m/(l-s);c=.8+.2*((i-u)/(m+f*(i-u)))}return c&&(n.s=c,n.h=ee(Math.atan2(o,r)*180/Math.PI)),n}function Qn(e){let t=e.h!==void 0?e.h:0,r=e.s!==void 0?e.s:0,o=e.l!==void 0?e.l:0,n={mode:"oklab",l:hr(o)};if(e.alpha!==void 0&&(n.alpha=e.alpha),!r||o===1)return n.a=n.b=0,n;let i=Math.cos(t/180*Math.PI),a=Math.sin(t/180*Math.PI),[s,l,c]=Yn(n.l,i,a),u,m,f,p;r<.8?(u=1.25*r,m=0,f=.8*s,p=1-f/l):(u=5*(r-.8),m=l,f=.2*l*l*1.25*1.25/s,p=1-f/(c-l));let h=m+u*f/(1-p*u);return n.a=h*i,n.b=h*a,n}var vb={...Bn,mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:Jn,rgb:e=>Jn(Jt(e))},toMode:{oklab:Qn,rgb:e=>Qt(Qn(e))}},Pc=vb;function ei(e){let t=e.l!==void 0?e.l:0,r=e.a!==void 0?e.a:0,o=e.b!==void 0?e.b:0,n=Math.sqrt(r*r+o*o),i=n?r/n:1,a=n?o/n:1,[s,l]=Ro(i,a),c=.5,u=1-c/s,m=l/(n+t*l),f=m*t,p=m*n,h=hr(f),v=p*h/f,x=Et({l:h,a:i*v,b:a*v}),y=Math.cbrt(1/Math.max(x.r,x.g,x.b,0));t=t/y,n=n/y*Co(t)/t,t=Co(t);let g={mode:"okhsv",s:n?(c+l)*p/(l*c+l*u*p):0,v:t?t/f:0};return g.s&&(g.h=ee(Math.atan2(o,r)*180/Math.PI)),e.alpha!==void 0&&(g.alpha=e.alpha),g}function ti(e){let t={mode:"oklab"};e.alpha!==void 0&&(t.alpha=e.alpha);let r=e.h!==void 0?e.h:0,o=e.s!==void 0?e.s:0,n=e.v!==void 0?e.v:0,i=Math.cos(r/180*Math.PI),a=Math.sin(r/180*Math.PI),[s,l]=Ro(i,a),c=.5,u=1-c/s,m=1-o*c/(c+l-l*u*o),f=o*l*c/(c+l-l*u*o),p=hr(m),h=f*p/m,v=Et({l:p,a:i*h,b:a*h}),x=Math.cbrt(1/Math.max(v.r,v.g,v.b,0)),y=hr(n*m),g=f*y/m;return t.l=y*x,t.a=g*i*x,t.b=g*a*x,t}var xb={...Fn,mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:ei,rgb:e=>ei(Jt(e))},toMode:{oklab:ti,rgb:e=>Qt(ti(e))}},Lc=xb;function yb(e,t){if(!t||t[0]!=="oklab")return;let r={mode:"oklab"},[,o,n,i,a]=t;if(!(o.type===T.Hue||n.type===T.Hue||i.type===T.Hue))return o.type!==T.None&&(r.l=Math.min(Math.max(0,o.type===T.Number?o.value:o.value/100),1)),n.type!==T.None&&(r.a=n.type===T.Number?n.value:n.value*.4/100),i.type!==T.None&&(r.b=i.type===T.Number?i.value:i.value*.4/100),a.type!==T.None&&(r.alpha=Math.min(1,Math.max(0,a.type===T.Number?a.value:a.value/100))),r}var Ac=yb;var Tb={...Gr,mode:"oklab",toMode:{lrgb:Et,rgb:Qt},fromMode:{lrgb:Zn,rgb:Jt},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[Ac],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`},_c=Tb;function Sb(e,t){if(!t||t[0]!=="oklch")return;let r={mode:"oklch"},[,o,n,i,a]=t;if(o.type!==T.None){if(o.type===T.Hue)return;r.l=Math.min(Math.max(0,o.type===T.Number?o.value:o.value/100),1)}if(n.type!==T.None&&(r.c=Math.max(0,n.type===T.Number?n.value:n.value*.4/100)),i.type!==T.None){if(i.type===T.Percentage)return;r.h=i.value}return a.type!==T.None&&(r.alpha=Math.min(1,Math.max(0,a.type===T.Number?a.value:a.value/100))),r}var Ic=Sb;var Eb={...Xr,mode:"oklch",toMode:{oklab:e=>We(e,"oklab"),rgb:e=>Qt(We(e,"oklab"))},fromMode:{rgb:e=>Ve(Jt(e),"oklch"),oklab:e=>Ve(e,"oklch")},parse:[Ic],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}},Nc=Eb;var Cb=e=>{let{r:t,g:r,b:o,alpha:n}=et(e),i={mode:"xyz65",x:.486570948648216*t+.265667693169093*r+.1982172852343625*o,y:.2289745640697487*t+.6917385218365062*r+.079286914093745*o,z:0*t+.0451133818589026*r+1.043944368900976*o};return n!==void 0&&(i.alpha=n),i},qa=Cb;var Rb=({x:e,y:t,z:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=tt({r:e*2.4934969119414263-t*.9313836179191242-.402710784450717*r,g:e*-.8294889695615749+t*1.7626640603183465+.0236246858419436*r,b:e*.0358458302437845-t*.0761723892680418+.9568845240076871*r},"p3");return o!==void 0&&(n.alpha=o),n},Ka=Rb;var wb={...Qe,mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>Ka($e(e)),xyz65:Ka},toMode:{rgb:e=>ze(qa(e)),xyz65:qa}},Dc=wb;var Za=e=>{let t=Math.abs(e);return t>=.001953125?Math.sign(e)*Math.pow(t,.5555555555555556):16*e},Mb=({x:e,y:t,z:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"prophoto",r:Za(e*1.3457868816471585-t*.2555720873797946-.0511018649755453*r),g:Za(e*-.5446307051249019+t*1.5082477428451466+.0205274474364214*r),b:Za(e*0+t*0+1.2119675456389452*r)};return o!==void 0&&(n.alpha=o),n},Ya=Mb;var Ja=(e=0)=>{let t=Math.abs(e);return t>=.03125?Math.sign(e)*Math.pow(t,1.8):e/16},kb=e=>{let t=Ja(e.r),r=Ja(e.g),o=Ja(e.b),n={mode:"xyz50",x:.7977666449006423*t+.1351812974005331*r+.0313477341283922*o,y:.2880748288194013*t+.7118352342418731*r+899369387256e-16*o,z:0*t+0*r+.8251046025104602*o};return e.alpha!==void 0&&(n.alpha=e.alpha),n},Qa=kb;var Ob={...Qe,mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:Ya,rgb:e=>Ya(St(e))},toMode:{xyz50:Qa,rgb:e=>Tt(Qa(e))}},Hc=Ob;var $c=1.09929682680944,Pb=.018053968510807,es=e=>{let t=Math.abs(e);return t>Pb?(Math.sign(e)||1)*($c*Math.pow(t,.45)-($c-1)):4.5*e},Lb=({x:e,y:t,z:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"rec2020",r:es(e*1.7166511879712683-t*.3556707837763925-.2533662813736599*r),g:es(e*-.6666843518324893+t*1.6164812366349395+.0157685458139111*r),b:es(e*.0176398574453108-t*.0427706132578085+.9421031212354739*r)};return o!==void 0&&(n.alpha=o),n},ts=Lb;var zc=1.09929682680944,Ab=.018053968510807,rs=(e=0)=>{let t=Math.abs(e);return t<Ab*4.5?e/4.5:(Math.sign(e)||1)*Math.pow((t+zc-1)/zc,1/.45)},_b=e=>{let t=rs(e.r),r=rs(e.g),o=rs(e.b),n={mode:"xyz65",x:.6369580483012911*t+.1446169035862083*r+.1688809751641721*o,y:.262700212011267*t+.6779980715188708*r+.059301716469862*o,z:0*t+.0280726930490874*r+1.0609850577107909*o};return e.alpha!==void 0&&(n.alpha=e.alpha),n},os=_b;var Ib={...Qe,mode:"rec2020",fromMode:{xyz65:ts,rgb:e=>ts($e(e))},toMode:{xyz65:os,rgb:e=>ze(os(e))},parse:["rec2020"],serialize:"rec2020"},Bc=Ib;var Nt=.0037930732552754493,ri=Math.cbrt(Nt);var ns=e=>Math.cbrt(e)-ri,Nb=e=>{let{r:t,g:r,b:o,alpha:n}=et(e),i=ns(.3*t+.622*r+.078*o+Nt),a=ns(.23*t+.692*r+.078*o+Nt),s=ns(.2434226892454782*t+.2047674442449682*r+.5518098665095535*o+Nt),l={mode:"xyb",x:(i-a)/2,y:(i+a)/2,b:s-(i+a)/2};return n!==void 0&&(l.alpha=n),l},Fc=Nb;var is=e=>Math.pow(e+ri,3),Db=({x:e,y:t,b:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=is(e+t)-Nt,i=is(t-e)-Nt,a=is(r+t)-Nt,s=tt({r:11.031566904639861*n-9.866943908131562*i-.16462299650829934*a,g:-3.2541473810744237*n+4.418770377582723*i-.16462299650829934*a,b:-3.6588512867136815*n+2.7129230459360922*i+1.9459282407775895*a});return o!==void 0&&(s.alpha=o),s},Vc=Db;var Hb={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:Vc},fromMode:{rgb:Fc},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:E,y:E,b:E,alpha:{use:E,fixup:z}}},Wc=Hb;var $b={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:Tt,lab:jr},fromMode:{rgb:St,lab:Wr},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:z}}},jc=$b;var zb=e=>{let{x:t,y:r,z:o,alpha:n}=e;t===void 0&&(t=0),r===void 0&&(r=0),o===void 0&&(o=0);let i={mode:"xyz50",x:1.0479298208405488*t+.0229467933410191*r-.0501922295431356*o,y:.0296278156881593*t+.990434484573249*r-.0170738250293851*o,z:-.0092430581525912*t+.0150551448965779*r+.7518742899580008*o};return n!==void 0&&(i.alpha=n),i},Gc=zb;var Bb=e=>{let{x:t,y:r,z:o,alpha:n}=e;t===void 0&&(t=0),r===void 0&&(r=0),o===void 0&&(o=0);let i={mode:"xyz65",x:.9554734527042182*t-.0230985368742614*r+.0632593086610217*o,y:-.0283697069632081*t+1.0099954580058226*r+.021041398966943*o,z:.0123140016883199*t-.0205076964334779*r+1.3303659366080753*o};return n!==void 0&&(i.alpha=n),i},Xc=Bb;var Fb={mode:"xyz65",toMode:{rgb:ze,xyz50:Gc},fromMode:{rgb:$e,xyz50:Xc},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:z}}},Uc=Fb;var Vb=({r:e,g:t,b:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"yiq",y:.29889531*e+.58662247*t+.11448223*r,i:.59597799*e-.2741761*t-.32180189*r,q:.21147017*e-.52261711*t+.31114694*r};return o!==void 0&&(n.alpha=o),n},qc=Vb;var Wb=({y:e,i:t,q:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"rgb",r:e+.95608445*t+.6208885*r,g:e-.27137664*t-.6486059*r,b:e-1.10561724*t+1.70250126*r};return o!==void 0&&(n.alpha=o),n},Kc=Wb;var jb={mode:"yiq",toMode:{rgb:Kc},fromMode:{rgb:qc},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:z}}},Zc=jb;var Gb=(e,t)=>Math.round(e*(t=Math.pow(10,t)))/t,Xb=(e=4)=>t=>typeof t=="number"?Gb(t,e):t,Yc=Xb;var Ub=Yc(2),Jc=e=>Math.max(0,Math.min(1,e||0)),as=e=>Math.round(Jc(e)*255),qb=Gt("rgb"),sO=Gt("hsl");var Qc=e=>{if(e===void 0)return;let t=as(e.r),r=as(e.g),o=as(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${t}, ${r}, ${o})`:`rgba(${t}, ${r}, ${o}, ${Ub(Jc(e.alpha))})`};var oi=e=>Qc(qb(e));var UO=G(Zu),qO=G(ic),KO=G(lc),ZO=G(fc),YO=G(uc),JO=G(Bn),QO=G(Fn),eP=G(hc),tP=G(bc),rP=G(xc),oP=G(yc),nP=G(Gr),iP=G(Sc),aP=G(Xr),sP=G(Cc),lP=G(Mc),fP=G(kc),uP=G(Oc),cP=G(Pc),pP=G(Lc),dP=G(_c),mP=G(Nc),hP=G(Dc),gP=G(Hc),bP=G(Bc),vP=G(Qe),xP=G(Wc),yP=G(jc),TP=G(Uc),SP=G(Zc);var ss=/var\(([\w-]+)\)/,Ur=e=>ss.test(e);var ep=Vt("parseColor"),tp=(e,t)=>{let r=t.trim();if(Ur(r)){ep.info("Try to parse CSS variable",{color:r});return}let n=Gt(e)(r);return n||ep.info("Invalid color",{color:r}),n},ni=e=>tp("rgb",e),rp=e=>tp("lch",e);var op=.7,Kb=1/op,np=(e,t,r,o=!1)=>{let n=ni(r);if(!n)return oi({r:0,g:0,b:0,alpha:1,mode:"rgb"});let i=1;if(o){let s=rp(r);s&&(i=Math.exp(-s.l/10)*10+1)}let a=(e==="darker"?op:Kb)**(t*i);return oi({r:n.r*a,g:n.g*a,b:n.b*a,alpha:n.alpha,mode:"rgb"})};var Zb="designops",ls=(e,t)=>Qi.addError(e,Object.assign({team:Zb},t?{druids:t}:void 0));var ip={_comment:["Do not edit directly, this file is generated from:","- packages/druids/ui/tokens/src/semantic/color.tokens.json","- packages/druids/ui/tokens/src/underlying/color.tokens.json","Run `yarn design-tokens:build` to regenerate"],underlying:{"@ui-text--light":"#1c2b34","@ui-text--dark":"#ffffff","@ui-dataviz-blue--light":"#3598ec","@ui-dataviz-blue--dark":"#6b9cc8","@neutral--light":"#ffffff","@neutral--dark":"#1d1c1f","@gray-25--light":"#f9fafb","@gray-25--dark":"#222126","@gray-50--light":"#eff1f5","@gray-50--dark":"#272626","@gray-75--light":"#e2e5ed","@gray-75--dark":"#2c2b2b","@gray-100--light":"#d1d6e6","@gray-100--dark":"#3b393d","@gray-125--light":"#c2c8dd","@gray-125--dark":"#424045","@gray-150--light":"#b4bcd4","@gray-150--dark":"#49474d","@gray-175--light":"#a9b1c7","@gray-175--dark":"#56535a","@gray-200--light":"#9da4b9","@gray-200--dark":"#65626a","@gray-300--light":"#828ba4","@gray-300--dark":"#726e77","@gray-400--light":"#6a7287","@gray-400--dark":"#858387","@gray-500--light":"#585f70","@gray-500--dark":"#a19fa3","@gray-600--light":"#464b59","@gray-600--dark":"#bebbc0","@gray-700--light":"#373b46","@gray-700--dark":"#d4d1d6","@gray-800--light":"#242931","@gray-800--dark":"#e6e4e7","@blue-100--light":"#f3f9fc","@blue-100--dark":"#091222","@blue-200--light":"#eaf6fc","@blue-200--dark":"#09245b","@blue-300--light":"#71b8e7","@blue-300--dark":"#2471bf","@blue-400--light":"#4e91d1","@blue-400--dark":"#3d8bd0","@blue-500--light":"#006bc2","@blue-500--dark":"#579fdd","@blue-600--light":"#0953bf","@blue-600--dark":"#7ab5ea","@blue-700--light":"#0b0f8b","@blue-700--dark":"#a4cef7","@red-100--light":"#fdebed","@red-100--dark":"#2f0a0f","@red-200--light":"#fbd6db","@red-200--dark":"#5e151e","@red-300--light":"#fc9da8","@red-300--dark":"#7c1d29","@red-400--light":"#f66f78","@red-400--dark":"#a62536","@red-500--light":"#eb364b","@red-500--dark":"#d33043","@red-600--light":"#bc2b3c","@red-600--dark":"#eb364b","@red-700--light":"#922c35","@red-700--dark":"#ed4f61","@amber-100--light":"#fff6e3","@amber-100--dark":"#332408","@amber-200--light":"#ffe6a2","@amber-200--dark":"#664811","@amber-300--light":"#fecf60","@amber-300--dark":"#8b6217","@amber-400--light":"#fcc028","@amber-400--dark":"#b27e1e","@amber-500--light":"#f99d02","@amber-500--dark":"#cc9022","@amber-600--light":"#f27c00","@amber-600--dark":"#e5a226","@amber-700--light":"#de5f0c","@amber-700--dark":"#fec866","@yellow-100--light":"#fffbe5","@yellow-100--dark":"#282106","@yellow-200--light":"#fff8d0","@yellow-200--dark":"#463a0d","@yellow-300--light":"#fff5ba","@yellow-300--dark":"#66540f","@yellow-400--light":"#ffec8a","@yellow-400--dark":"#a68716","@yellow-500--light":"#ffdf52","@yellow-500--dark":"#f1c724","@yellow-600--light":"#facc00","@yellow-600--dark":"#ebcf61","@yellow-700--light":"#cc9419","@yellow-700--dark":"#e9d68e","@green-100--light":"#ecf9ef","@green-100--dark":"#0d2714","@green-200--light":"#d9f3e0","@green-200--dark":"#133a1d","@green-300--light":"#96dda2","@green-300--dark":"#1e592c","@green-400--light":"#70d182","@green-400--dark":"#297a3e","@green-500--light":"#41c464","@green-500--dark":"#349c50","@green-600--light":"#39b15d","@green-600--dark":"#40ab5e","@green-700--light":"#2a7e41","@green-700--dark":"#52b76d","@purple-100--light":"#f2ecfc","@purple-100--dark":"#22053e","@purple-200--light":"#e6d6f9","@purple-200--dark":"#320e51","@purple-300--light":"#cbb1ed","@purple-300--dark":"#401a69","@purple-400--light":"#b48fe1","@purple-400--dark":"#561d8c","@purple-500--light":"#9364cd","@purple-500--dark":"#67309e","@purple-600--light":"#632ca6","@purple-600--dark":"#7c3eb9","@purple-700--light":"#451481","@purple-700--dark":"#a26dd8","@pink-100--light":"#fff7fc","@pink-100--dark":"#240015","@pink-200--light":"#fff2fa","@pink-200--dark":"#33001e","@pink-300--light":"#ffe6f5","@pink-300--dark":"#461230","@pink-400--light":"#ffb3e0","@pink-400--dark":"#66003d","@pink-500--light":"#ff0099","@pink-500--dark":"#e50089","@pink-600--light":"#af0069","@pink-600--dark":"#f572b3","@pink-700--light":"#660036","@pink-700--dark":"#ef94c3","@indigo-100--light":"#f0f2ff","@indigo-100--dark":"#080a1a","@indigo-200--light":"#d9deff","@indigo-200--dark":"#1d2140","@indigo-300--light":"#b0b7eb","@indigo-300--dark":"#2e3566","@indigo-400--light":"#8792e0","@indigo-400--dark":"#3f4ca5","@indigo-500--light":"#5e6dd6","@indigo-500--dark":"#5e6dd6","@indigo-600--light":"#3f4ca5","@indigo-600--dark":"#8792e0","@indigo-700--light":"#2e3566","@indigo-700--dark":"#b0b7eb","@indigo-800--light":"#1d2140","@indigo-800--dark":"#d9deff","@indigo-900--light":"#080a1a","@indigo-900--dark":"#f0f2ff","@opacity-ui-text--light":"98%","@opacity-ui-text--dark":"76%","@opacity-ui-text-secondary--light":"68%","@opacity-ui-text-secondary--dark":"51%","@opacity-ui-text-tertiary--light":"50%","@opacity-ui-text-tertiary--dark":"38%","@opacity-ui-text-disabled--light":"35%","@opacity-ui-text-disabled--dark":"24%","@opacity-ui-icon--light":"66%","@opacity-ui-icon--dark":"48%","@opacity-ui-icon-secondary--light":"46%","@opacity-ui-icon-secondary--dark":"34%"},light:{"--ui-background":"#ffffff","--ui-background-secondary":"#f9fafb","--ui-background-tertiary":"#e2e5ed","--ui-background-elevated":"#ffffff","--ui-background-shade":"#464b59","--ui-background-shade-faded":"rgba(55, 59, 70, 0.9)","--ui-border":"#e2e5ed","--ui-border-elevated":"transparent","--ui-placeholder":"rgba(226, 229, 237, 0.5)","--ui-ai-background-primary":"#f0f2ff","--ui-ai-background-secondary":"#d9deff","--ui-text":"rgba(28, 43, 52, 0.98)","--ui-text-secondary":"rgba(28, 43, 52, 0.68)","--ui-text-tertiary":"rgba(28, 43, 52, 0.5)","--ui-text-disabled":"rgba(28, 43, 52, 0.35)","--ui-text-knockout":"#ffffff","--ui-text-on-border":"rgba(28, 43, 52, 0.68)","--ui-icon":"rgba(28, 43, 52, 0.66)","--ui-icon-secondary":"rgba(28, 43, 52, 0.46)","--ui-ai-primary":"#5e6dd6","--ui-interaction-primary":"#006bc2","--ui-interaction-primary-contrast":"#0953bf","--ui-interaction-secondary":"#eaf6fc","--ui-interaction-secondary-contrast":"#d4ecf9","--ui-interaction-callout":"#ff0099","--ui-interaction-callout-contrast":"#fff2fa","--ui-status-danger":"#eb364b","--ui-status-danger-contrast":"#bc2b3c","--ui-status-danger-soft":"#fdebed","--ui-status-warning":"#f99d02","--ui-status-warning-contrast":"#c15800","--ui-status-warning-soft":"#fff6e3","--ui-status-success":"#41c464","--ui-status-success-contrast":"#2a7e41","--ui-status-success-soft":"#ecf9ef","--ui-status-other":"#828ba4","--ui-status-other-contrast":"#585f70","--ui-status-other-soft":"#eff1f5","--ui-status-in-progress":"#9364cd","--ui-status-in-progress-contrast":"#632ca6","--ui-status-in-progress-soft":"#f2ecfc","--ui-dataviz-blue":"#3598ec","--ui-dataviz-graph-axis":"rgba(28, 43, 52, 0.98)","--ui-dataviz-graph-axis-text-underlay":"rgba(255, 255, 255, 0.85)","--ui-dataviz-graph-disabled-series":"#c2c8dd","--ui-brand":"#632ca6","--ui-brand-contrast":"#451481","--ui-shadow-strength":"rgba(36, 41, 49, 0.25)","--ui-important":"#facc00","--ui-important-contrast":"#cc9419","--ui-code-background":"rgba(88, 95, 112, 0.05)","--ui-code-selection-background":"#E2E5ED","--ui-code-text":"#1C2B34","--ui-code-delimiter":"#D97E00","--ui-code-boolean":"#6B37AB","--ui-code-function":"#2C63DB","--ui-code-string":"#038043","--ui-code-keyword":"#E01B73","--ui-code-operator":"#008645","--ui-code-comment":"#6A7287"},dark:{"--ui-background":"#1d1c1f","--ui-background-secondary":"#222126","--ui-background-tertiary":"#3b393d","--ui-background-elevated":"#222126","--ui-background-shade":"#3b393d","--ui-background-shade-faded":"rgba(101, 98, 106, 0.9)","--ui-border":"#3b393d","--ui-border-elevated":"#272626","--ui-placeholder":"rgba(44, 43, 43, 0.75)","--ui-ai-background-primary":"#080a1a","--ui-ai-background-secondary":"#1d2140","--ui-text":"rgba(255, 255, 255, 0.76)","--ui-text-secondary":"rgba(255, 255, 255, 0.51)","--ui-text-tertiary":"rgba(255, 255, 255, 0.38)","--ui-text-disabled":"rgba(255, 255, 255, 0.24)","--ui-text-knockout":"#ffffff","--ui-text-on-border":"rgba(255, 255, 255, 0.51)","--ui-icon":"rgba(255, 255, 255, 0.48)","--ui-icon-secondary":"rgba(255, 255, 255, 0.34)","--ui-ai-primary":"#5e6dd6","--ui-interaction-primary":"#3d8bd0","--ui-interaction-primary-contrast":"#579fdd","--ui-interaction-secondary":"#091222","--ui-interaction-secondary-contrast":"#0e1d36","--ui-interaction-callout":"#e50089","--ui-interaction-callout-contrast":"#33001e","--ui-status-danger":"#d33043","--ui-status-danger-contrast":"#eb364b","--ui-status-danger-soft":"#2f0a0f","--ui-status-warning":"#cc9022","--ui-status-warning-contrast":"#e5a226","--ui-status-warning-soft":"#332408","--ui-status-success":"#349c50","--ui-status-success-contrast":"#52b76d","--ui-status-success-soft":"#0d2714","--ui-status-other":"#65626a","--ui-status-other-contrast":"#858387","--ui-status-other-soft":"#2c2b2b","--ui-status-in-progress":"#67309e","--ui-status-in-progress-contrast":"#7c3eb9","--ui-status-in-progress-soft":"#22053e","--ui-dataviz-blue":"#6b9cc8","--ui-dataviz-graph-axis":"rgba(255, 255, 255, 0.76)","--ui-dataviz-graph-axis-text-underlay":"rgba(29, 28, 31, 0.85)","--ui-dataviz-graph-disabled-series":"#2c2b2b","--ui-brand":"#561d8c","--ui-brand-contrast":"#67309e","--ui-shadow-strength":"rgba(9, 9, 11, 0.88)","--ui-important":"#ebcf61","--ui-important-contrast":"#e9d68e","--ui-code-background":"rgba(255, 255, 255, 0.05)","--ui-code-selection-background":"#3B393D","--ui-code-text":"#E6E6E6","--ui-code-delimiter":"#FEC866","--ui-code-boolean":"#C48CFF","--ui-code-function":"#5BCEFF","--ui-code-string":"#43D698","--ui-code-keyword":"#FF80B6","--ui-code-operator":"#41EBA4","--ui-code-comment":"#8F969A"},lightContrast:{"--ui-border":"#6a7287","--ui-border-elevated":"#9da4b9","--ui-text":"#000","--ui-text-secondary":"#373b46","--ui-text-tertiary":"#6a7287","--ui-text-disabled":"#585f70","--ui-text-on-border":"#FFF","--ui-icon":"#080b0d","--ui-icon-secondary":"#000","--ui-interaction-primary":"#0953bf","--ui-interaction-primary-contrast":"#0b0f8b","--ui-interaction-secondary":"#d4ecf9","--ui-interaction-secondary-contrast":"#c2e5f8","--ui-status-danger":"#922c35","--ui-status-warning":"#de5f0c","--ui-status-success":"#2a7e41","--ui-status-other":"#585f70","--ui-status-in-progress":"#632ca6","--ui-shadow-strength":"rgba(36, 41, 49, 0.5)"},darkContrast:{"--ui-border":"#a19fa3","--ui-border-elevated":"#726e77","--ui-text":"#FFF","--ui-text-secondary":"#e6e4e7","--ui-text-tertiary":"#a19fa3","--ui-text-disabled":"#d4d1d6","--ui-text-on-border":"#000","--ui-icon":"#FFF","--ui-icon-secondary":"#FFF","--ui-interaction-primary":"#2471bf","--ui-interaction-secondary":"#0e1d36","--ui-interaction-secondary-contrast":"#09245b","--ui-status-danger":"#a62536","--ui-status-warning":"#b27e1e","--ui-status-success":"#297a3e","--ui-status-other":"#3b393d","--ui-status-in-progress":"#7c3eb9","--ui-shadow-strength":"rgba(9, 9, 11, 1)"}};var ap=e=>ip.underlying[e];function fs(e){let t=o=>o<=.04045?o/12.92:((o+.055)/1.055)**2.4,r=typeof e=="string"?ni(e):e;return r?r.alpha===0?NaN:.2126*t(r.r)+.7152*t(r.g)+.0722*t(r.b):NaN}function ii(e){return fs(e)>=.45}function sp(e,t=document.body){return getComputedStyle(typeof t=="string"?document.querySelector(t)||document.body:t).getPropertyValue(e).trim()}function us(e){return Array.isArray(e)?e:[e,e]}function Jb(e,t,r,o,n){let i=us(e),a=us(t),s=us(r),l=n==="light",c=l?0:1,u=a[c],m=i[c],f=s[c],p=u,h;if(t&&p){let x=p.match(ss);x?.[1]&&(p=sp(x[1],o||void 0).trim()||p),Ur(p)||(h=np(l?"darker":"brighter",l?.2:.5,p,!0))}let v=m;return e||(v=ap(p&&!Ur(p)&&ii(p)?"@ui-text--light":"@ui-text--dark")),{textColor:t?v:void 0,backgroundColor:p,backgroundHoverColor:h,borderColor:f}}var fp=({ref:e,componentName:t,textColor:r,backgroundColor:o,borderColor:n,isEnabled:i=!0,hasTextHoverOnWhite:a=!1,useBodyForCSSVars:s=!1})=>{let l=Nu(e,null),{theme:c}=Ar();return lp.useMemo(()=>{if(!i)return{};if(!r&&!o)return{};let u=s?document.body:l,m=Jb(r,o,n,u,c),f={};return f[`--${t}-custom-text-color`]=m.textColor,f[`--${t}-custom-background-color`]=m.backgroundColor,f[`--${t}-custom-background-color-hover`]=m.backgroundHoverColor,f[`--${t}-custom-border-color`]=m.borderColor,a&&m.backgroundColor&&fs(m.backgroundColor)===1&&(f[`--${t}-custom-background-color-hover`]=m.backgroundColor,f[`--${t}-custom-text-color-hover`]=`color-mix(in srgb, var(--${t}-custom-text-color) 75%, var(--ui-text))`,f[`--${t}-custom-border-color-hover`]=`color-mix(in srgb, var(--${t}-custom-text-color) 75%, var(--ui-text))`),f},[i,o,t,l,r,c,s,n,a])};var ai=Z(ye());import*as er from"react";var rt=Z(up()),cp=Vt("LoadingIndicator",{component:"LoadingIndicator"}),pp=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),dp=1e4,mp=({size:e,variant:t="default",isAnimated:r=!0,className:o,isKnockout:n,delay:i=0,...a})=>{let[s]=ke(a,["margin"]),l=He("md"),c=e||l,u=i>0;return er.useEffect(()=>{if(IS_TEST||!(Math.random()*100<5))return;let f=Date.now(),p=window.setTimeout(()=>{cp.error("Long loading detected (more than 10s)")},dp);return()=>{window.clearTimeout(p);let h=Date.now()-f;h<dp||cp.info(`LoadingIndicator was displayed for ${h/1e3}s`,{duration:h})}},[]),er.createElement("div",{className:(0,ai.default)(rt.default.LoadingIndicator,t!=="default"&&rt.default[`variant--${t}`],n&&rt.default.isKnockout,u&&rt.default.hasDelay,s,o),role:"progressbar","aria-busy":"true","aria-valuetext":"Loading","aria-label":"Loading",style:u?{"--loading-indicator-delay":`${i}ms`}:void 0},er.createElement("div",{className:(0,ai.default)(rt.default.Rotating,c!=="inherit"&&rt.default[`Rotating--${c}`],!pp&&r&&rt.default.isAnimated)},er.createElement("svg",{className:rt.default.Svg,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},er.createElement("path",{className:rt.default.Background,d:"M16,0C7.16,0,0,7.16,0,16s7.16,16,16,16s16-7.16,16-16S24.84,0,16,0z M16,26.5c-5.799,0-10.5-4.701-10.5-10.5S10.201,5.5,16,5.5S26.5,10.201,26.5,16S21.799,26.5,16,26.5z"}),er.createElement("path",{className:(0,ai.default)(rt.default.Foreground,pp&&r&&rt.default.isAnimated),d:"M16,0v4v1.5c5.799,0,10.5,4.701,10.5,10.5H28h4C32,7.163,24.837,0,16,0z"}))))};var wp=Z(ye());import*as Mp from"react";var ot={willDiscardTrailingZeros:!1,hasThousandsSeparator:!1,shouldFormatInBinary:!1};var cs=1e3,wo=1024,Qb="\xA0";function nt(e,t=e,r,o=2,n){let i=e,a=t,{willDiscardTrailingZeros:s,hasThousandsSeparator:l,shouldFormatInBinary:c}={...ot,...n};if(i===0)return{value:"0",unit:r.get(0)||"",hasInternalSpace:!1};if(a===0)return{value:"0",unit:r.get(0)||"",hasInternalSpace:!1};let u=c?wo:cs,m=Math.floor(Math.log(Math.abs(a))/Math.log(u));a>=cs*wo**m&&a<wo**(m+1)&&(m++,i=wo**m,a=wo**m);let f;if(!r.has(m)){let g=r.keys();m>0?(m=Math.max(...g),f="top"):(m=Math.min(...g),f="bottom")}a*=(cs/u)**m;let p=Math.floor(Math.log10(Math.abs(a)))+1,h=Math.min(o,3*(1+m)-p);if(f){if(f==="top")h=0;else if(h=3*(1+m)-p-2,h>o)return{value:`<${Qb}${10**(-1*o)}`,unit:r.get(m)||"",hasInternalSpace:!1}}h<0?h=0:h>20&&(h=20);let v=i/u**m,x=v.toFixed(h),y=(g,C)=>{ls(C,{category:g,value:i,reference:a,maxDecimals:o,options:n,numberResult:v,precision:h})};if(l)try{x=v.toLocaleString("en-US",{minimumFractionDigits:h,maximumFractionDigits:h})}catch(g){y("hasThousandsSeparator",g),x=v.toLocaleString("en-US")}if(s)try{x=v.toLocaleString("en-US",{minimumFractionDigits:0,maximumFractionDigits:h})}catch(g){y("willDiscardTrailingZeros",g),x=v.toLocaleString("en-US",{minimumFractionDigits:0,maximumFractionDigits:0})}return{value:x,unit:r.get(m)||"",hasInternalSpace:!1}}var ev=new Map([[0,""],[1,"k"],[2,"M"],[3,"G"],[4,"T"],[5,"P"]]);function hp(e,t,r,o){let n={...ot,...o};return nt(e,t,ev,r,n)}var tv=new Map([[0,"B"],[1,"KiB"],[2,"MiB"],[3,"GiB"],[4,"TiB"],[5,"PiB"]]);function gp(e,t,r){return{...nt(e,t,tv,r,{shouldFormatInBinary:!0}),hasInternalSpace:!0}}var rv=new Map([[0,"B"],[1,"KB"],[2,"MB"],[3,"GB"],[4,"TB"],[5,"PB"]]);function bp(e,t,r){return{...nt(e,t,rv,r),hasInternalSpace:!0}}var ov=new Map([[0,"ns"],[1,"\u03BCs"],[2,"ms"],[3,"s"]]),si=60*1e9,li=60*si,Mo=24*li,ps=30*Mo,ds=365*Mo;function vp(e,t,r=2,o){let n={...ot,...o},{willDiscardTrailingZeros:i}=n,a=t;if(a===void 0&&(a=e),a<si)return[{...nt(e,a,ov,r,n),hasInternalSpace:!1}];let s=e,l=s/ds;l>1&&(s-=l*ds);let c=s/ps;c>1&&(s-=c*ps);let u=s/Mo;u>1&&(s-=u*Mo);let m=Math.floor(s/li);s-=m*li;let f=Math.floor(s/si);s-=f*si;let p=Math.floor(s/1e9);return a<li?p===0&&i?[{value:`${f}`,unit:"m",hasInternalSpace:!1}]:[{value:`${f}`,unit:"m",hasInternalSpace:!1},{value:`${p}`,unit:"s",hasInternalSpace:!1}]:a<Mo?f===0&&i?[{value:`${m}`,unit:"h",hasInternalSpace:!1}]:[{value:`${m}`,unit:"h",hasInternalSpace:!1},{value:`${f}`,unit:"m",hasInternalSpace:!1}]:a<ps?[{value:u.toFixed(1),unit:"d",hasInternalSpace:!1}]:a<ds?[{value:c.toFixed(1),unit:"mo",hasInternalSpace:!1}]:[{value:l.toFixed(1),unit:"y",hasInternalSpace:!1}]}var nv=new Map([[-4,"p"],[-3,"n"],[-2,"\u03BC"],[-1,"m"],[0,""],[1,"k"],[2,"M"],[3,"G"],[4,"T"],[5,"P"]]);function fi(e,t,r,o){let n={...ot,...o};return nt(e,t,nv,r,n)}var iv=new Map([[-4,"p"],[-3,"n"],[-2,"\u03BC"],[-1,"m"],[0,""],[1,"K"],[2,"M"],[3,"B"],[4,"T"],[5,"Q"]]);function xp(e,t,r,o){let n={...o,hasThousandsSeparator:!0};return nt(e,t,iv,r,n)}function yp(e,t,r,o){let n={...ot,...o},i=t===void 0?e:t;return i=Math.max(100,Math.abs(i)),fi(e,i,r,n)}var Tp="\xA0",av=Vt("formatRate()");function Sp(e,t=2,r=!1){let n=100*e;if(e===0)return{value:"0",unit:"%",hasInternalSpace:!1};if(e<=1.0005&&e>=.9995)return{value:"100",unit:"%",hasInternalSpace:!1};let i=(a,s)=>{let l=a.toFixed(s);if(r)try{l=a.toLocaleString("en-US",{minimumFractionDigits:0,maximumFractionDigits:s})}catch(c){av.error("Failed to discard trailing zeros",{error:c,value:l}),l=a.toLocaleString("en-US",{minimumFractionDigits:0,maximumFractionDigits:0})}return l};return e>=.1?{value:i(n,Math.min(1,t)),unit:"%",hasInternalSpace:!1}:e>=.01?{value:i(n,Math.min(2,t)),unit:"%",hasInternalSpace:!1}:t===0?{value:`<${Tp}1`,unit:"%",hasInternalSpace:!1}:e>=.001?{value:i(n,Math.min(2,t)),unit:"%",hasInternalSpace:!1}:{value:`<${Tp}0.1`,unit:"%",hasInternalSpace:!1}}function Ep(e,t,r,o,n){let i={...ot,...n};switch(e){case"human":return[xp(t,r,o,n)];case"byte":return[gp(t,r,o)];case"byteDecimal":return[bp(t,r,o)];case"integer":return[yp(t,r,o,i)];case"float":return[fi(t,r,o,i)];case"bigFloat":return[hp(t,r,o,i)];case"duration":return vp(t,r,o,i);case"rate":return[Sp(t,o,i.willDiscardTrailingZeros)]}}var sv=99,Cp=(e=0,t=sv,r)=>{let o=e>t,[n]=Ep("integer",Math.min(e,t),void 0,r);return`${n.value}${n.unit}${o?"+":""}`};var ui=Z(Rp()),lv="druids_pills_feature-status-label",kp=({status:e,isKnockout:t=!1,isDisabled:r=!1,className:o,count:n,maxCount:i,...a})=>Mp.createElement(Mn,{...a,weight:"bold",textTransform:"uppercase",shouldInherit:!0,size:"xs",className:(0,wp.default)(lv,ui.default.FeatureStatusLabel,t&&ui.default.isKnockout,r&&ui.default.isDisabled,o)},[n&&Cp(n,i),e].filter(s=>s!==void 0).join(" "));var X="druids_form_button",fv=e=>e.map(t=>Array.isArray(t)?t.map(wn).join(" "):wn(t)).join(" "),Op=({icon:e,position:t,isScaledDown:r,size:o,hasHoveredState:n,iconProps:i,isSpaced:a})=>e?B.createElement("div",{className:`${X}__icon-wrapper`},B.createElement(e,{title:"",isScaledDown:r,size:o,isHovered:n,...i,className:(0,ci.default)(`${X}__icon`,i?.className,a&&`${X}__icon--position-${t}`)})):null,uv=({className:e,size:t,component:r,href:o,isExternal:n,level:i="default",icon:a=null,iconRight:s=null,isPrimary:l,isBorderless:c,isDangerouslyNaked:u,isNaked:m,isSoft:f,isShade:p,isFullWidth:h,isActive:v,isHovered:x,isLoading:y,isDisabled:g,featureStatus:C,type:d="button",title:w,label:S,isTitleCased:P=!0,canBeQuiet:D=!0,autoFocus:I,iconProps:O,hasEllipsisWithTooltip:M,hasEllipsis:k=M,innerRef:N,ariaAttrs:q,dataAttrs:re,ariaLabel:H=q?.["aria-label"],paddingX:A,paddingLeft:$,paddingRight:ie,customStyle:oe,shortcut:ne,shortcutDisplay:U="tooltip",tooltip:pe,tooltipProps:ue,...de})=>{ur({componentName:"Button",message:"In order to use `customStyle` you must set `level` to `custom`.",shouldWarn:!!(i!=="custom"&&oe)}),ur({componentName:"Button",message:"Don't use `customStyle` with `isBorderless`, `isPrimary`, or `isDangerouslyNaked`.",shouldWarn:!!((c||l||u)&&i==="custom")}),ur({componentName:"Button",message:"Don't use `isBorderless` with `isDangerouslyNaked` or `isNaked`. `isBorderless` will take precedence.",shouldWarn:!!(c&&(u||m))});let K=g||y,[Ie,Oe]=B.useState(!1),[dt,Pe]=B.useState(!1),Le=x||Ie,Ct=B.useRef(null),ve=N||Ct;B.useEffect(()=>{K&&(Oe(!1),Pe(!1))},[K]);let Dt=u||m,[Rt,mt]=ke({...de,...Dt?{paddingX:A,paddingLeft:$,paddingRight:ie}:{}},["margin","padding","lockups"]),{size:Be}=ma(),{isFocused:wt}=Iu(),Mt=l??wt,J=Mt&&!c||c&&(v||dt),Re=He("md",uf),le=Be||t||Re,it=!0;(c||u||m)&&!S&&(it=!1);let je=!!S,Ne=Op({icon:a,position:"left",isScaledDown:it,size:le,hasHoveredState:J,iconProps:O,isSpaced:je}),Fe=Op({icon:s,position:"right",isScaledDown:it,size:le,hasHoveredState:J,iconProps:O,isSpaced:je});y&&(Ne=B.createElement("div",{className:`${X}__icon-wrapper`},B.createElement(mp,{size:le,className:(0,ci.default)(`${X}__loading-indicator`,je&&`${X}__icon--position-left`)})));let we=S;if(S){let di=ms.default.of(S);di!=="constant"&&di!=="upper"&&P&&(we=ms.default.title(S))}let Ht=!S&&!C,gr=Ht&&U==="inline"?"tooltip":U,ko=ne&&gr==="tooltip"||pe||M,br=!!(K&&ko),vr=B.useId();br||(vr=void 0);let b=gr==="inline"&&ne?B.createElement(kn,{className:`${X}__inline-shortcut`,keys:ne,size:le,isBorderless:f||l,ariaAttrs:{"aria-hidden":!0},variant:K?"disabled":"default"}):null,R=B.useRef(null),_=k&&we?B.createElement("span",{id:vr,className:`${X}__content`,ref:R},we,b):br?B.createElement("span",{id:vr},we):B.createElement(B.Fragment,null,we,b),j=fp({ref:ve,componentName:"button",textColor:oe?.textColor,backgroundColor:oe?.backgroundColor,borderColor:oe?.borderColor,isEnabled:i==="custom",hasTextHoverOnWhite:!0}),V=!!(j["--button-custom-background-color"]&&!ii(j["--button-custom-background-color"])),xe=C?B.createElement(kp,{status:C,isKnockout:Mt&&!c&&!u&&!m||p||V,isDisabled:K,className:`${X}__feature-status-label`}):null,De=k&&Ne?B.createElement("span",{className:`${X}__left-spacer`}):null,$t=k&&Fe?B.createElement("span",{className:`${X}__right-spacer`}):null,Oo=k&&xe?B.createElement("span",{className:`${X}__feature-spacer`}):null;Or();let ht=ne&&gr==="inline"?` ${fv(ne)}`:"",qr=!Ht&&k&&(Ne||Fe),xr=!Ht&&k&&Ne&&Fe,kt=!H&&!we&&typeof pe=="string",Po={...q,...re,"aria-label":H??(we?`${we}${ht}`:kt?`${pe}${ht}`:void 0),className:(0,ci.default)(X,`${X}--${le}`,`${X}--${i}`,Rt,{[`${X}--has-icon-only`]:Ht,[`${X}--has-ellipsis`]:k,[`${X}--has-icon-min-width`]:qr,[`${X}--has-two-icons-min-width`]:xr,[`${X}--is-borderless`]:c||p,[`${X}--is-naked`]:(u||m)&&!p&&!c,[`${X}--is-primary`]:Mt,[`${X}--is-soft`]:f,[`${X}--is-shade`]:p,[`${X}--is-full-width`]:h,[`${X}--is-active`]:v,[`${X}--is-hovered`]:Le,[`${X}--is-disabled`]:K,[`${X}--is-never-quiet`]:!D},e),title:w,type:d,disabled:K,autoFocus:I,onPointerEnter:K?void 0:()=>Oe(!0),onPointerLeave:K?void 0:()=>{Oe(!1),Pe(!1)},onPointerDown:K?void 0:()=>Pe(!0),onPointerUp:K?void 0:()=>Pe(!1),onPointerCancel:K?void 0:()=>Pe(!1),style:{...mt.style,...i==="custom"?j:{}},...mt},yr=B.useRef(null),Tr=br?B.createElement("span",{role:"button",tabIndex:0,"aria-label":H,"aria-labelledby":H?void 0:vr,ref:yr,className:`${X}__disabled-tooltip-helper`}):null,hs=B.createElement(B.Fragment,null,Ne,De,_,$t,Fe,Oo,xe,Tr),gs=(o||r)&&!K?B.createElement(Rn,{href:o,component:r,linkType:"no-class-names",isExternal:n,hasExternalIcon:!1,innerRef:ve,...Po},hs):B.createElement("button",{ref:ve,...Po},hs),[Pp,Lp]=B.useState(!1);B.useEffect(function(){let bs=R.current;if(!bs||!M)return;let vs=new gi(Ap=>{for(let xs of Ap){let _p=Math.ceil(xs.contentRect.width)<xs.target.scrollWidth;Lp(_p)}});return vs.observe(bs),()=>{vs.disconnect()}},[M]);let pi=pe;return Pp?pi=B.createElement(B.Fragment,null,B.createElement("div",{"aria-hidden":!0},we),pe):kt&&(pi=B.createElement("div",{className:`${X}__tooltip-content`,"aria-hidden":!0},pe)),ko?B.createElement(Lu,{...ue,shortcut:gr==="tooltip"?ne:void 0,shortcutProps:K?{variant:"disabled"}:void 0,content:pi,reference:br?yr:ve},gs):gs};export{uv as Button};
12
+ /*! Bundled license information:
13
+
14
+ case/dist/Case.js:
15
+ (*! Case - v1.6.2 - 2020-03-24
16
+ * Copyright (c) 2020 Nathan Bubna; Licensed MIT, GPL *)
17
+
18
+ classnames/index.js:
19
+ (*!
20
+ Copyright (c) 2018 Jed Watson.
21
+ Licensed under the MIT License (MIT), see
22
+ http://jedwatson.github.io/classnames
23
+ *)
24
+
25
+ react-is/cjs/react-is.production.min.js:
26
+ (**
27
+ * @license React
28
+ * react-is.production.min.js
29
+ *
30
+ * Copyright (c) Facebook, Inc. and its affiliates.
31
+ *
32
+ * This source code is licensed under the MIT license found in the
33
+ * LICENSE file in the root directory of this source tree.
34
+ *)
35
+
36
+ js-cookie/dist/js.cookie.mjs:
37
+ (*! js-cookie v3.0.5 | MIT *)
38
+ */
39
+ //# sourceMappingURL=index.js.map