@wistia/vhs 2.74.1-beta.4fde312a.f02663b → 2.74.1-beta.c85cf0dd.38fd894
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.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/vhs v2.74.1-beta.
|
|
3
|
+
* @license @wistia/vhs v2.74.1-beta.c85cf0dd.38fd894
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2021-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -9,107 +9,91 @@
|
|
|
9
9
|
|
|
10
10
|
var DM=Object.create;var jl=Object.defineProperty;var SM=Object.getOwnPropertyDescriptor;var EM=Object.getOwnPropertyNames;var PM=Object.getPrototypeOf,TM=Object.prototype.hasOwnProperty;var Z1=(e,t)=>()=>(e&&(t=e(e=0)),t);var Be=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Q1=(e,t)=>{for(var r in t)jl(e,r,{get:t[r],enumerable:!0})},l5=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of EM(t))!TM.call(e,o)&&o!==r&&jl(e,o,{get:()=>t[o],enumerable:!(n=SM(t,o))||n.enumerable});return e};var K=(e,t,r)=>(r=e!=null?DM(PM(e)):{},l5(t||!e||!e.__esModule?jl(r,"default",{value:e,enumerable:!0}):r,e)),AM=e=>l5(jl({},"__esModule",{value:!0}),e);import*as f from"react";var i=Z1(()=>{"use strict"});var Q=Be(U=>{"use strict";i();Object.defineProperty(U,"__esModule",{value:!0});U.hasKey=U.isError=U.isNotVoid=U.isVoid=U.isNotBoolean=U.isBoolean=U.isNotFunction=U.isFunction=U.isNonEmptyArray=U.isEmptyArray=U.isNotArray=U.isArray=U.isNonEmptyRecord=U.isEmptyRecord=U.isNotRecord=U.isRecord=U.isInteger=U.isNaN=U.isNotNumber=U.isNumber=U.isNonEmptyString=U.isEmptyString=U.isNotString=U.isString=U.isNotNil=U.isNil=U.isNotUndefined=U.isUndefined=U.isNotNull=U.isNull=void 0;var RM=e=>e===null;U.isNull=RM;var FM=e=>!(0,U.isNull)(e);U.isNotNull=FM;var BM=e=>e===void 0;U.isUndefined=BM;var OM=e=>!(0,U.isUndefined)(e);U.isNotUndefined=OM;var MM=e=>(0,U.isNull)(e)||(0,U.isUndefined)(e);U.isNil=MM;var IM=e=>!(0,U.isNil)(e);U.isNotNil=IM;var kM=e=>typeof e=="string";U.isString=kM;var NM=e=>!(0,U.isString)(e);U.isNotString=NM;var VM=e=>(0,U.isString)(e)&&e==="";U.isEmptyString=VM;var LM=e=>(0,U.isString)(e)&&!(0,U.isEmptyString)(e);U.isNonEmptyString=LM;var $M=e=>typeof e=="number";U.isNumber=$M;var zM=e=>!(0,U.isNumber)(e);U.isNotNumber=zM;var GM=e=>Number.isNaN(e);U.isNaN=GM;var HM=e=>Number.isInteger(e);U.isInteger=HM;var jM=e=>(0,U.isNotNil)(e)&&typeof e=="object"&&!(e instanceof Array);U.isRecord=jM;var WM=e=>!(0,U.isRecord)(e);U.isNotRecord=WM;var _M=e=>(0,U.isRecord)(e)&&Object.keys(e).length===0;U.isEmptyRecord=_M;var UM=e=>(0,U.isRecord)(e)&&Object.keys(e).length>0;U.isNonEmptyRecord=UM;var KM=e=>(0,U.isNotNil)(e)&&typeof e=="object"&&e instanceof Array;U.isArray=KM;var qM=e=>!(0,U.isArray)(e);U.isNotArray=qM;var XM=e=>(0,U.isArray)(e)&&e.length===0;U.isEmptyArray=XM;var YM=e=>(0,U.isArray)(e)&&e.length>0;U.isNonEmptyArray=YM;var JM=e=>(0,U.isNotNil)(e)&&typeof e=="function";U.isFunction=JM;var ZM=e=>!(0,U.isFunction)(e);U.isNotFunction=ZM;var QM=e=>(0,U.isNotNil)(e)&&typeof e=="boolean";U.isBoolean=QM;var eI=e=>!(0,U.isBoolean)(e);U.isNotBoolean=eI;var tI=e=>e===void 0;U.isVoid=tI;var rI=e=>!(0,U.isVoid)(e);U.isNotVoid=rI;var nI=e=>(0,U.isNotNil)(e)&&e instanceof Error;U.isError=nI;var oI=(e,t)=>(0,U.isNonEmptyRecord)(e)&&t in e;U.hasKey=oI});var u4=Be((xde,Dm)=>{i();var s4=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);s4?(xm=new Uint8Array(16),Dm.exports=function(){return s4(xm),xm}):(wm=new Array(16),Dm.exports=function(){for(var t=0,r;t<16;t++)(t&3)===0&&(r=Math.random()*4294967296),wm[t]=r>>>((t&3)<<3)&255;return wm});var xm,wm});var f4=Be((Dde,c4)=>{i();var l4=[];for(eu=0;eu<256;++eu)l4[eu]=(eu+256).toString(16).substr(1);var eu;function hk(e,t){var r=t||0,n=l4;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")}c4.exports=hk});var d4=Be((Ede,p4)=>{i();var gk=u4(),vk=f4();function yk(e,t,r){var n=t&&r||0;typeof e=="string"&&(t=e==="binary"?new Array(16):null,e=null),e=e||{};var o=e.random||(e.rng||gk)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t)for(var a=0;a<16;++a)t[n+a]=o[a];return t||vk(o)}p4.exports=yk});function B4(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var O4=Z1(()=>{i()});var M4={};Q1(M4,{default:()=>Jk});var Yk,Jk,I4=Z1(()=>{i();O4();Yk=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Jk=B4(function(e){return Yk.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})});var gw=Be((JHe,hw)=>{"use strict";i();var dw=Array.isArray,mw=Object.keys,IW=Object.prototype.hasOwnProperty,kW=typeof Element<"u";function rh(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var r=dw(e),n=dw(t),o,a,s;if(r&&n){if(a=e.length,a!=t.length)return!1;for(o=a;o--!==0;)if(!rh(e[o],t[o]))return!1;return!0}if(r!=n)return!1;var u=e instanceof Date,l=t instanceof Date;if(u!=l)return!1;if(u&&l)return e.getTime()==t.getTime();var c=e instanceof RegExp,p=t instanceof RegExp;if(c!=p)return!1;if(c&&p)return e.toString()==t.toString();var d=mw(e);if(a=d.length,a!==mw(t).length)return!1;for(o=a;o--!==0;)if(!IW.call(t,d[o]))return!1;if(kW&&e instanceof Element&&t instanceof Element)return e===t;for(o=a;o--!==0;)if(s=d[o],!(s==="_owner"&&e.$$typeof)&&!rh(e[s],t[s]))return!1;return!0}return e!==e&&t!==t}hw.exports=function(t,r){try{return rh(t,r)}catch(n){if(n.message&&n.message.match(/stack|recursion/i)||n.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}}});var Aw=Be(Ae=>{"use strict";i();var dt=typeof Symbol=="function"&&Symbol.for,ah=dt?Symbol.for("react.element"):60103,sh=dt?Symbol.for("react.portal"):60106,lp=dt?Symbol.for("react.fragment"):60107,cp=dt?Symbol.for("react.strict_mode"):60108,fp=dt?Symbol.for("react.profiler"):60114,pp=dt?Symbol.for("react.provider"):60109,dp=dt?Symbol.for("react.context"):60110,uh=dt?Symbol.for("react.async_mode"):60111,mp=dt?Symbol.for("react.concurrent_mode"):60111,hp=dt?Symbol.for("react.forward_ref"):60112,gp=dt?Symbol.for("react.suspense"):60113,e_=dt?Symbol.for("react.suspense_list"):60120,vp=dt?Symbol.for("react.memo"):60115,yp=dt?Symbol.for("react.lazy"):60116,t_=dt?Symbol.for("react.block"):60121,r_=dt?Symbol.for("react.fundamental"):60117,n_=dt?Symbol.for("react.responder"):60118,o_=dt?Symbol.for("react.scope"):60119;function dr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ah:switch(e=e.type,e){case uh:case mp:case lp:case fp:case cp:case gp:return e;default:switch(e=e&&e.$$typeof,e){case dp:case hp:case yp:case vp:case pp:return e;default:return t}}case sh:return t}}}function Tw(e){return dr(e)===mp}Ae.AsyncMode=uh;Ae.ConcurrentMode=mp;Ae.ContextConsumer=dp;Ae.ContextProvider=pp;Ae.Element=ah;Ae.ForwardRef=hp;Ae.Fragment=lp;Ae.Lazy=yp;Ae.Memo=vp;Ae.Portal=sh;Ae.Profiler=fp;Ae.StrictMode=cp;Ae.Suspense=gp;Ae.isAsyncMode=function(e){return Tw(e)||dr(e)===uh};Ae.isConcurrentMode=Tw;Ae.isContextConsumer=function(e){return dr(e)===dp};Ae.isContextProvider=function(e){return dr(e)===pp};Ae.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ah};Ae.isForwardRef=function(e){return dr(e)===hp};Ae.isFragment=function(e){return dr(e)===lp};Ae.isLazy=function(e){return dr(e)===yp};Ae.isMemo=function(e){return dr(e)===vp};Ae.isPortal=function(e){return dr(e)===sh};Ae.isProfiler=function(e){return dr(e)===fp};Ae.isStrictMode=function(e){return dr(e)===cp};Ae.isSuspense=function(e){return dr(e)===gp};Ae.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===lp||e===mp||e===fp||e===cp||e===gp||e===e_||typeof e=="object"&&e!==null&&(e.$$typeof===yp||e.$$typeof===vp||e.$$typeof===pp||e.$$typeof===dp||e.$$typeof===hp||e.$$typeof===r_||e.$$typeof===n_||e.$$typeof===o_||e.$$typeof===t_)};Ae.typeOf=dr});var Fw=Be((Hje,Rw)=>{"use strict";i();Rw.exports=Aw()});var Vw=Be((Wje,Nw)=>{"use strict";i();var lh=Fw(),i_={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a_={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s_={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Iw={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ch={};ch[lh.ForwardRef]=s_;ch[lh.Memo]=Iw;function Bw(e){return lh.isMemo(e)?Iw:ch[e.$$typeof]||i_}var u_=Object.defineProperty,l_=Object.getOwnPropertyNames,Ow=Object.getOwnPropertySymbols,c_=Object.getOwnPropertyDescriptor,f_=Object.getPrototypeOf,Mw=Object.prototype;function kw(e,t,r){if(typeof t!="string"){if(Mw){var n=f_(t);n&&n!==Mw&&kw(e,n,r)}var o=l_(t);Ow&&(o=o.concat(Ow(t)));for(var a=Bw(e),s=Bw(t),u=0;u<o.length;++u){var l=o[u];if(!a_[l]&&!(r&&r[l])&&!(s&&s[l])&&!(a&&a[l])){var c=c_(t,l);try{u_(e,l,c)}catch{}}}}return e}Nw.exports=kw});var Dp=Be((d_e,Uw)=>{i();var q_=typeof Element<"u",X_=typeof Map=="function",Y_=typeof Set=="function",J_=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function wp(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,n,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!wp(e[n],t[n]))return!1;return!0}var a;if(X_&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;for(a=e.entries();!(n=a.next()).done;)if(!wp(n.value[1],t.get(n.value[0])))return!1;return!0}if(Y_&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(J_&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(q_&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&e.$$typeof)&&!wp(e[o[n]],t[o[n]]))return!1;return!0}return e!==e&&t!==t}Uw.exports=function(t,r){try{return wp(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}});var _S=Be((Ret,WS)=>{"use strict";i();WS.exports=IY;var HS="\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC",jS="A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u0300-\u0590\u0800-\u1FFF\u200E\u2C00-\uFB1C\uFE00-\uFE6F\uFEFD-\uFFFF",OY=new RegExp("^[^"+jS+"]*["+HS+"]"),MY=new RegExp("^[^"+HS+"]*["+jS+"]");function IY(e){return e=String(e||""),OY.test(e)?"rtl":MY.test(e)?"ltr":"neutral"}});var sd=Be((Bet,US)=>{i();function kY(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}US.exports=kY});var qS=Be((Met,KS)=>{i();var NY=typeof window=="object"&&window&&window.Object===Object&&window;KS.exports=NY});var s2=Be((ket,XS)=>{i();var VY=qS(),LY=typeof self=="object"&&self&&self.Object===Object&&self,$Y=VY||LY||Function("return this")();XS.exports=$Y});var JS=Be((Vet,YS)=>{i();var zY=s2(),GY=function(){return zY.Date.now()};YS.exports=GY});var QS=Be(($et,ZS)=>{i();var HY=/\s/;function jY(e){for(var t=e.length;t--&&HY.test(e.charAt(t)););return t}ZS.exports=jY});var tE=Be((Get,eE)=>{i();var WY=QS(),_Y=/^\s+/;function UY(e){return e&&e.slice(0,WY(e)+1).replace(_Y,"")}eE.exports=UY});var u2=Be((jet,rE)=>{i();var KY=s2(),qY=KY.Symbol;rE.exports=qY});var aE=Be((_et,iE)=>{i();var nE=u2(),oE=Object.prototype,XY=oE.hasOwnProperty,YY=oE.toString,qu=nE?nE.toStringTag:void 0;function JY(e){var t=XY.call(e,qu),r=e[qu];try{e[qu]=void 0;var n=!0}catch{}var o=YY.call(e);return n&&(t?e[qu]=r:delete e[qu]),o}iE.exports=JY});var uE=Be((Ket,sE)=>{i();var ZY=Object.prototype,QY=ZY.toString;function eJ(e){return QY.call(e)}sE.exports=eJ});var pE=Be((Xet,fE)=>{i();var lE=u2(),tJ=aE(),rJ=uE(),nJ="[object Null]",oJ="[object Undefined]",cE=lE?lE.toStringTag:void 0;function iJ(e){return e==null?e===void 0?oJ:nJ:cE&&cE in Object(e)?tJ(e):rJ(e)}fE.exports=iJ});var mE=Be((Jet,dE)=>{i();function aJ(e){return e!=null&&typeof e=="object"}dE.exports=aJ});var gE=Be((Qet,hE)=>{i();var sJ=pE(),uJ=mE(),lJ="[object Symbol]";function cJ(e){return typeof e=="symbol"||uJ(e)&&sJ(e)==lJ}hE.exports=cJ});var CE=Be((ttt,bE)=>{i();var fJ=tE(),vE=sd(),pJ=gE(),yE=NaN,dJ=/^[-+]0x[0-9a-f]+$/i,mJ=/^0b[01]+$/i,hJ=/^0o[0-7]+$/i,gJ=parseInt;function vJ(e){if(typeof e=="number")return e;if(pJ(e))return yE;if(vE(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=vE(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=fJ(e);var r=mJ.test(e);return r||hJ.test(e)?gJ(e.slice(2),r?2:8):dJ.test(e)?yE:+e}bE.exports=vJ});var c2=Be((ntt,wE)=>{i();var yJ=sd(),l2=JS(),xE=CE(),bJ="Expected a function",CJ=Math.max,xJ=Math.min;function wJ(e,t,r){var n,o,a,s,u,l,c=0,p=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(bJ);t=xE(t)||0,yJ(r)&&(p=!!r.leading,d="maxWait"in r,a=d?CJ(xE(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h);function g(D){var P=n,A=o;return n=o=void 0,c=D,s=e.apply(A,P),s}function v(D){return c=D,u=setTimeout(y,t),p?g(D):s}function m(D){var P=D-l,A=D-c,F=t-P;return d?xJ(F,a-A):F}function b(D){var P=D-l,A=D-c;return l===void 0||P>=t||P<0||d&&A>=a}function y(){var D=l2();if(b(D))return x(D);u=setTimeout(y,m(D))}function x(D){return u=void 0,h&&n?g(D):(n=o=void 0,s)}function w(){u!==void 0&&clearTimeout(u),c=0,n=l=o=u=void 0}function S(){return u===void 0?s:x(l2())}function E(){var D=l2(),P=b(D);if(n=arguments,o=this,l=D,P){if(u===void 0)return v(l);if(d)return clearTimeout(u),u=setTimeout(y,t),g(l)}return u===void 0&&(u=setTimeout(y,t)),s}return E.cancel=w,E.flush=S,E}wE.exports=wJ});var SE=Be((itt,DE)=>{i();var DJ=c2(),SJ=sd(),EJ="Expected a function";function PJ(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(EJ);return SJ(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),DJ(e,t,{leading:n,maxWait:t,trailing:o})}DE.exports=PJ});var GP=Be(cn=>{"use strict";i();Object.defineProperty(cn,"__esModule",{value:!0});var cee=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),W2={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},fee={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:cee?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},VP={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222};for(rl=1;rl<20;rl++)VP["f"+rl]=111+rl;var rl;function Sd(e,t,r){t&&!("byKey"in t)&&(r=t,t=null),Array.isArray(e)||(e=[e]);var n=e.map(function(s){return LP(s,t)}),o=function(u){return n.some(function(l){return $P(l,u)})},a=r==null?o:o(r);return a}function pee(e,t){return Sd(e,t)}function dee(e,t){return Sd(e,{byKey:!0},t)}function LP(e,t){var r=t&&t.byKey,n={};e=e.replace("++","+add");var o=e.split("+"),a=o.length;for(var s in W2)n[W2[s]]=!1;var u=!0,l=!1,c=void 0;try{for(var p=o[Symbol.iterator](),d;!(u=(d=p.next()).done);u=!0){var h=d.value,g=h.endsWith("?")&&h.length>1;g&&(h=h.slice(0,-1));var v=_2(h),m=W2[v];(a===1||!m)&&(r?n.key=v:n.which=zP(h)),m&&(n[m]=g?null:!0)}}catch(b){l=!0,c=b}finally{try{!u&&p.return&&p.return()}finally{if(l)throw c}}return n}function $P(e,t){for(var r in e){var n=e[r],o=void 0;if(n!=null&&(r==="key"&&t.key!=null?o=t.key.toLowerCase():r==="which"?o=n===91&&t.which===93?91:t.which:o=t[r],!(o==null&&n===!1)&&o!==n))return!1}return!0}function zP(e){e=_2(e);var t=VP[e]||e.toUpperCase().charCodeAt(0);return t}function _2(e){return e=e.toLowerCase(),e=fee[e]||e,e}cn.default=Sd;cn.isHotkey=Sd;cn.isCodeHotkey=pee;cn.isKeyHotkey=dee;cn.parseHotkey=LP;cn.compareHotkey=$P;cn.toKeyCode=zP;cn.toKeyName=_2});var BT=Be(fn=>{"use strict";i();Object.defineProperty(fn,"__esModule",{value:!0});var $te=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),lg={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},TT={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:$te?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},cg={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222};for(ul=1;ul<20;ul++)cg["f"+ul]=111+ul;var ul;function kd(e,t,r){t&&!("byKey"in t)&&(r=t,t=null),Array.isArray(e)||(e=[e]);var n=e.map(function(s){return AT(s,t)}),o=function(u){return n.some(function(l){return RT(l,u)})},a=r==null?o:o(r);return a}function zte(e,t){return kd(e,t)}function Gte(e,t){return kd(e,{byKey:!0},t)}function AT(e,t){var r=t&&t.byKey,n={};e=e.replace("++","+add");var o=e.split("+"),a=o.length;for(var s in lg)n[lg[s]]=!1;var u=!0,l=!1,c=void 0;try{for(var p=o[Symbol.iterator](),d;!(u=(d=p.next()).done);u=!0){var h=d.value,g=h.endsWith("?")&&h.length>1;g&&(h=h.slice(0,-1));var v=fg(h),m=lg[v];if(h.length>1&&!m&&!TT[h]&&!cg[v])throw new TypeError('Unknown modifier: "'+h+'"');(a===1||!m)&&(r?n.key=v:n.which=FT(h)),m&&(n[m]=g?null:!0)}}catch(b){l=!0,c=b}finally{try{!u&&p.return&&p.return()}finally{if(l)throw c}}return n}function RT(e,t){for(var r in e){var n=e[r],o=void 0;if(n!=null&&(r==="key"&&t.key!=null?o=t.key.toLowerCase():r==="which"?o=n===91&&t.which===93?91:t.which:o=t[r],!(o==null&&n===!1)&&o!==n))return!1}return!0}function FT(e){e=fg(e);var t=cg[e]||e.toUpperCase().charCodeAt(0);return t}function fg(e){return e=e.toLowerCase(),e=TT[e]||e,e}fn.default=kd;fn.isHotkey=kd;fn.isCodeHotkey=zte;fn.isKeyHotkey=Gte;fn.parseHotkey=AT;fn.compareHotkey=RT;fn.toKeyCode=FT;fn.toKeyName=fg});i();i();i();var Hs=async e=>{if(navigator.clipboard)return navigator.clipboard.writeText(e).catch(a=>{throw a instanceof Error?a:new DOMException("The clipboard is not accessible","NotAllowedError")});let t=document.createElement("span");t.textContent=e,t.style.whiteSpace="pre",document.body.appendChild(t);let r=window.getSelection(),n=window.document.createRange();r?.removeAllRanges(),n.selectNode(t),r?.addRange(n);let o=!1;try{o=window.document.execCommand("copy")}catch(a){console.error("error",a)}return r?.removeAllRanges(),window.document.body.removeChild(t),o?Promise.resolve():Promise.reject(new DOMException("The request is not allowed","NotAllowedError"))};i();i();var x5=K(Q());i();i();i();var iI=Math.pow(10,8)*24*60*60*1e3,Que=-iI;var c5=864e5;var aI=3600;var f5=aI*24,ele=f5*7,sI=f5*365.2425,uI=sI/12,tle=uI*3,em=Symbol.for("constructDateFrom");function It(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&em in e?e[em](t):e instanceof Date?new e.constructor(t):new Date(t)}i();function me(e,t){return It(t||e,e)}function tm(e,t,r){let n=me(e,r?.in);return isNaN(t)?It(r?.in||e,NaN):(t&&n.setDate(n.getDate()+t),n)}i();function js(e,t,r){let n=me(e,r?.in);if(isNaN(t))return It(r?.in||e,NaN);if(!t)return n;let o=n.getDate(),a=It(r?.in||e,n.getTime());a.setMonth(n.getMonth()+t+1,0);let s=a.getDate();return o>=s?a:(n.setFullYear(a.getFullYear(),a.getMonth(),o),n)}i();i();function rm(e){let t=me(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}i();function ro(e,...t){let r=It.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}i();function Nr(e,t){let r=me(e,t?.in);return r.setHours(0,0,0,0),r}function Wl(e,t,r){let[n,o]=ro(r?.in,e,t),a=Nr(n),s=Nr(o),u=+a-rm(a),l=+s-rm(s);return Math.round((u-l)/c5)}i();function nm(e,t,r){return js(e,t*12,r)}i();function _l(e,t){let r=+me(e)-+me(t);return r<0?-1:r>0?1:r}i();function ur(e,t,r){let[n,o]=ro(r?.in,e,t);return+Nr(n)==+Nr(o)}i();i();function p5(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Ws(e){return!(!p5(e)&&typeof e!="number"||isNaN(+me(e)))}i();function m5(e,t,r){let[n,o]=ro(r?.in,e,t),a=d5(n,o),s=Math.abs(Wl(n,o));n.setDate(n.getDate()-a*s);let u=+(d5(n,o)===-a),l=a*(s-u);return l===0?0:l}function d5(e,t){let r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}i();function Ji(e,t){let r=me(e,t?.in);return r.setHours(23,59,59,999),r}i();function om(e,t){let r=me(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}i();i();function Ul(e,t){let[r,n]=ro(e,t.start,t.end);return{start:r,end:n}}function h5(e,t){let{start:r,end:n}=Ul(t?.in,e),o=+r>+n,a=o?+r:+n,s=o?n:r;s.setHours(0,0,0,0);let u=t?.step??1;if(!u)return[];u<0&&(u=-u,o=!o);let l=[];for(;+s<=a;)l.push(It(r,s)),s.setDate(s.getDate()+u),s.setHours(0,0,0,0);return o?l.reverse():l}i();function im(e,t){let{start:r,end:n}=Ul(t?.in,e),o=+r>+n,a=o?+r:+n,s=o?n:r;s.setHours(0,0,0,0),s.setDate(1);let u=t?.step??1;if(!u)return[];u<0&&(u=-u,o=!o);let l=[];for(;+s<=a;)l.push(It(r,s)),s.setMonth(s.getMonth()+u);return o?l.reverse():l}i();function _s(e,t){let r=me(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}i();function g5(e,t){return me(e,t?.in).getDay()}i();function am(e,t){let r=me(e,t?.in),n=r.getFullYear(),o=r.getMonth(),a=It(r,0);return a.setFullYear(n,o+1,0),a.setHours(0,0,0,0),a.getDate()}i();function sm(e,t){return me(e,t?.in).getFullYear()}i();function v5(e,t){return+me(e)>+me(t)}i();function Xr(e,t){return+me(e)<+me(t)}i();function um(e,t){return+me(e)==+me(t)}i();function y5(e){return+me(e)>Date.now()}i();function b5(e,t,r){let n=+me(e,r?.in),[o,a]=[+me(t.start,r?.in),+me(t.end,r?.in)].sort((s,u)=>s-u);return n>=o&&n<=a}var w5=1e3,lm=60,Ks=60,C5=30,Cr=["en-US"],xn=Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC",Us=e=>e.toString().padStart(2,"0"),Vr=e=>e instanceof Date,wn=e=>!Vr(e)||e.getTime()===0,D5=(e,{timeZone:t=xn}={})=>{if(!Vr(e)||wn(e))return"";try{return new Intl.DateTimeFormat(Cr,{dateStyle:"medium",timeZone:t}).format(e)}catch(r){return console.error(r),""}},S5=(e,{timeZone:t=xn}={})=>{if(!Vr(e)||wn(e))return"";try{return new Intl.DateTimeFormat(Cr,{year:"numeric",month:"2-digit",day:"2-digit",timeZone:t}).format(e)}catch(r){return console.error(r),""}},E5=(e,{timeZone:t=xn}={})=>{if(!Vr(e)||wn(e))return"";try{let o=new Intl.DateTimeFormat(Cr,{year:"numeric",month:"2-digit",day:"2-digit",timeZone:t}).formatToParts(e).reduce((a,s)=>(a[s.type]=s.value,a),{});return`${o.year}-${o.month}-${o.day}`}catch(r){return console.error(r),""}},P5=(e,{timeZone:t=xn}={})=>{if(!Vr(e)||wn(e))return"";try{return new Intl.DateTimeFormat(Cr,{month:"2-digit",day:"2-digit",timeZone:t}).format(e)}catch(r){return console.error(r),""}},T5=(e,{timeZone:t=xn}={})=>{if(e===null)return"";try{return new Intl.DateTimeFormat(Cr,{weekday:"long",timeZone:t}).format(e)}catch(r){return console.error(r),""}},A5=(e,{timeZone:t=xn}={})=>{if(!Vr(e)||wn(e))return"";try{return new Intl.DateTimeFormat(Cr,{timeStyle:"short",timeZone:t}).format(e)}catch(r){return console.error(r),""}},Kl=(e,{timeZone:t=xn}={})=>{if((0,x5.isNil)(e))return"";let r=new Date(e);if(wn(r))return"";try{return new Intl.DateTimeFormat(Cr,{dateStyle:"medium",timeStyle:"short",timeZone:t}).format(r)}catch(n){return console.error(n),""}},R5=(e,{timeZone:t=xn}={})=>{if(!Vr(e)||wn(e))return"";try{let{year:r,month:n,day:o,hour:a,minute:s,dayPeriod:u}=new Intl.DateTimeFormat(Cr,{month:"long",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",timeZone:t}).formatToParts(e).reduce((l,c)=>(c.type!=="literal"&&(l[c.type]=c.value),l),{});return`${n} ${o}, ${r}, ${a}:${s} ${u}`}catch(r){return console.error(r),""}},F5=(e,{timeZone:t=xn}={})=>{if(!Vr(e)||wn(e))return"";try{return new Intl.DateTimeFormat(Cr,{dateStyle:"long",timeZone:t}).format(e)}catch(r){return console.error(r),""}},B5=(e,{nowAnchor:t=new Date}={})=>{if(wn(e))return"";let r=(t.valueOf()-e.valueOf())/(lm*w5),n=Math.round(r),o=Wl(t,e);return r<0?Kl(e):r<1?"< 1 minute ago":n<2?"1 minute ago":n<=Ks?`${n} minutes ago`:o===0?`Today, ${Intl.DateTimeFormat(Cr,{timeStyle:"short"}).format(e)}`:o===1?`Yesterday, ${Intl.DateTimeFormat(Cr,{timeStyle:"short"}).format(e)}`:e.getFullYear()===t.getFullYear()?Intl.DateTimeFormat(Cr,{day:"numeric",month:"short",hour:"numeric",minute:"2-digit"}).format(e):Kl(e)},O5=e=>{let t=e.getTimezoneOffset()/Ks*-1,r=Math.round(t),n=(t-r)*Ks,o=r>=0?"+":"",a=`${r}`.padStart(2,"0"),s=`${n}`.padStart(2,"0");return`${o}${a}:${s}`},qs=e=>{let t=Math.floor(e/w5),r=Math.floor(t/lm),n=Math.floor(r/Ks),o=t-r*lm,a=r-n*Ks;return{seconds:o,minutes:a,hours:n}},M5=e=>{let{hours:t,minutes:r,seconds:n}=qs(e);return t<1?`${r}:${Us(n)}`:`${t}:${Us(r)}:${Us(n)}`},I5=e=>{let{hours:t,minutes:r,seconds:n}=qs(e);return`${t}:${Us(r)}:${Us(n)}`},cm=e=>Vr(e)?{year:e.getFullYear(),month:e.getMonth(),dayOfMonth:e.getDate(),hours:e.getHours(),minutes:e.getMinutes()}:null,ql=e=>{let{year:t,month:r,dayOfMonth:n,hours:o,minutes:a}=e??{};return t!==void 0&&r!==void 0&&n!==void 0?new Date(t,r,n,o??0,a??0):null},fm=e=>ql(e)?.toISOString()??null,k5=(e,t=!0)=>{let r=e.getMinutes()<=C5,n=r?e.getHours():e.getHours()+1,o=r?C5:0,a={...cm(e),hours:n,minutes:o};return t?fm(a):ql(a)},N5=e=>{let{seconds:t,minutes:r,hours:n}=qs(e),o="PT";return n&&(o+=`${n}H`),r&&(o+=`${r}M`),t&&(o+=`${t}S`),t||r||n||(o+="0S"),o};var qce={isDate:Vr,dateOnlyString:D5,dateOnlyStringNumeric:S5,dateOnlyISOString:E5,monthDayStringNumeric:P5,dayOfWeekString:T5,timeOnlyString:A5,dateTimeString:Kl,dateTimeStringForSentence:R5,dateOnlyStringForSentence:F5,timeAgoString:B5,dateUTCOffset:O5,buildTimeDuration:qs,mediaDurationString:M5,sessionDurationString:I5,dateToDateTime:cm,dateTimeToDate:ql,dateTimeToISO:fm,dateTimeRounded:k5,millisecondsToDurationISOString:N5};i();i();var V5=K(Q());import{css as Tt}from"styled-components";var pm={defaultDarkOne:Tt`
|
|
11
11
|
background-color: #222d66;
|
|
12
|
-
background-image:
|
|
13
|
-
radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
|
|
12
|
+
background-image: radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
|
|
14
13
|
radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
|
|
15
14
|
radial-gradient(farthest-corner at bottom left, #6b84ff, transparent 57%),
|
|
16
15
|
radial-gradient(farthest-corner at top left, #2949e5, transparent 68%);
|
|
17
16
|
`,defaultDarkTwo:Tt`
|
|
18
17
|
background-color: #222d66;
|
|
19
|
-
background-image:
|
|
20
|
-
radial-gradient(farthest-corner at top left, #6b84ff, transparent 100%),
|
|
18
|
+
background-image: radial-gradient(farthest-corner at top left, #6b84ff, transparent 100%),
|
|
21
19
|
radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%),
|
|
22
20
|
radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
|
|
23
21
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
24
22
|
`,defaultLightOne:Tt`
|
|
25
23
|
background-color: #ccd5ff;
|
|
26
|
-
background-image:
|
|
27
|
-
radial-gradient(farthest-corner at bottom right, #ccd5ff, transparent 55%),
|
|
24
|
+
background-image: radial-gradient(farthest-corner at bottom right, #ccd5ff, transparent 55%),
|
|
28
25
|
radial-gradient(farthest-corner at top left, #ccd5ff, transparent 65%),
|
|
29
26
|
radial-gradient(farthest-corner at top right, #6b84ff, transparent 50%),
|
|
30
27
|
radial-gradient(farthest-corner at bottom left, #f7f8ff, transparent 50%);
|
|
31
28
|
`,defaultLightTwo:Tt`
|
|
32
29
|
background-color: #ccd5ff;
|
|
33
|
-
background-image:
|
|
34
|
-
radial-gradient(ellipse at top, #ccd5ff, transparent),
|
|
30
|
+
background-image: radial-gradient(ellipse at top, #ccd5ff, transparent),
|
|
35
31
|
radial-gradient(ellipse at bottom, #6b84ff, transparent);
|
|
36
32
|
`,defaultMidOne:Tt`
|
|
37
33
|
background-color: #6b84ff;
|
|
38
|
-
background-image:
|
|
39
|
-
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%),
|
|
34
|
+
background-image: radial-gradient(farthest-corner at top right, #2949e5, transparent 70%),
|
|
40
35
|
radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
|
|
41
36
|
radial-gradient(farthest-corner at top left, #6b84ff, transparent 80%),
|
|
42
37
|
radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%);
|
|
43
38
|
`,defaultMidTwo:Tt`
|
|
44
39
|
background-color: #6b84ff;
|
|
45
|
-
background-image:
|
|
46
|
-
radial-gradient(ellipse at top, #2949e5, transparent),
|
|
40
|
+
background-image: radial-gradient(ellipse at top, #2949e5, transparent),
|
|
47
41
|
radial-gradient(ellipse at bottom, #ccd5ff, transparent);
|
|
48
42
|
`,green:Tt`
|
|
49
43
|
background-color: #fafffa;
|
|
50
|
-
background-image:
|
|
51
|
-
radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
|
|
44
|
+
background-image: radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
|
|
52
45
|
radial-gradient(farthest-corner at top right, #268713, transparent 50%),
|
|
53
46
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
|
|
54
47
|
radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
|
|
55
48
|
`,greenWithPop:Tt`
|
|
56
49
|
background-color: #fafffa;
|
|
57
|
-
background-image:
|
|
58
|
-
radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
|
|
50
|
+
background-image: radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
|
|
59
51
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 50%),
|
|
60
52
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
|
|
61
53
|
radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
|
|
62
54
|
`,pink:Tt`
|
|
63
55
|
background-color: #fffff0;
|
|
64
|
-
background-image:
|
|
65
|
-
radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 50%),
|
|
56
|
+
background-image: radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 50%),
|
|
66
57
|
radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
|
|
67
58
|
radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
|
|
68
59
|
radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%);
|
|
69
60
|
`,pinkWithPop:Tt`
|
|
70
61
|
background-color: #fffff0;
|
|
71
|
-
background-image:
|
|
72
|
-
radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
|
|
62
|
+
background-image: radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
|
|
73
63
|
radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
|
|
74
64
|
radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%),
|
|
75
65
|
radial-gradient(farthest-corner at bottom left, #2949e5, transparent 50%);
|
|
76
66
|
`,playfulGradientOne:Tt`
|
|
77
67
|
background-color: #f7f8ff;
|
|
78
|
-
background-image:
|
|
79
|
-
radial-gradient(farthest-corner at top left, #d65cff, transparent 68%),
|
|
68
|
+
background-image: radial-gradient(farthest-corner at top left, #d65cff, transparent 68%),
|
|
80
69
|
radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
|
|
81
70
|
radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 57%),
|
|
82
71
|
radial-gradient(farthest-corner at top right, #ffcaba, transparent 70%);
|
|
83
72
|
`,playfulGradientTwo:Tt`
|
|
84
73
|
background-color: #f7f8ff;
|
|
85
|
-
background-image:
|
|
86
|
-
radial-gradient(farthest-corner at top left, #44b62d, transparent 68%),
|
|
74
|
+
background-image: radial-gradient(farthest-corner at top left, #44b62d, transparent 68%),
|
|
87
75
|
radial-gradient(farthest-corner at bottom right, #eff18d, transparent 50%),
|
|
88
76
|
radial-gradient(farthest-corner at bottom left, #ccd5ff, transparent 57%),
|
|
89
77
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
90
78
|
`,purple:Tt`
|
|
91
79
|
background-color: #f2caff;
|
|
92
|
-
background-image:
|
|
93
|
-
radial-gradient(ellipse at 0% 100%, #f9e5ff, transparent 50%),
|
|
80
|
+
background-image: radial-gradient(ellipse at 0% 100%, #f9e5ff, transparent 50%),
|
|
94
81
|
radial-gradient(ellipse at 100% 0%, #e093fa, transparent 70%);
|
|
95
82
|
`,purpleWithPop:Tt`
|
|
96
83
|
background-color: #f2caff;
|
|
97
|
-
background-image:
|
|
98
|
-
radial-gradient(farthest-corner at bottom left, #f2caff, transparent 50%),
|
|
84
|
+
background-image: radial-gradient(farthest-corner at bottom left, #f2caff, transparent 50%),
|
|
99
85
|
radial-gradient(farthest-corner at top left, #d65cff, transparent 65%),
|
|
100
86
|
radial-gradient(farthest-corner at bottom right, #d65cff, transparent 55%),
|
|
101
87
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
102
88
|
`,yellow:Tt`
|
|
103
89
|
background-color: #fffff0;
|
|
104
|
-
background-image:
|
|
105
|
-
radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
|
|
90
|
+
background-image: radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
|
|
106
91
|
radial-gradient(farthest-corner at top right, #bcbf19, transparent 70%),
|
|
107
92
|
radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
|
|
108
93
|
radial-gradient(farthest-corner at bottom right, #e8ec1e, transparent 55%);
|
|
109
94
|
`,yellowWithPop:Tt`
|
|
110
95
|
background-color: #fffff0;
|
|
111
|
-
background-image:
|
|
112
|
-
radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
|
|
96
|
+
background-image: radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
|
|
113
97
|
radial-gradient(farthest-corner at top right, #bcbf19, transparent 70%),
|
|
114
98
|
radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
|
|
115
99
|
radial-gradient(farthest-corner at bottom right, #2949e5, transparent 55%);
|
|
@@ -2742,7 +2726,7 @@ var DM=Object.create;var jl=Object.defineProperty;var SM=Object.getOwnPropertyDe
|
|
|
2742
2726
|
visibility: hidden;
|
|
2743
2727
|
width: calc(100% + 40px);
|
|
2744
2728
|
}
|
|
2745
|
-
`,rM=({align:e="left",buttonVariant:t="secondary",earliestDate:r,latestDate:n,format:o=Zse,fullWidth:a=!1,footerText:s,onChange:u,presets:l=[],range:c={end:new Date,start:new Date},shouldPreventFuture:p=!1,...d})=>{let[h,g]=Gl(c),[v,m]=Gl(!1),[b,y]=Gl(!0),[x,w]=Gl("end"),[S,E]=Gl([]),D=kn();return eM(()=>{g(c)},[c]),eM(()=>{let A=()=>{m(!1),g(c)};return v&&window.addEventListener("click",A),()=>{window.removeEventListener("click",A)}},[v,c,g]),Ki(tue,{"data-testid":"rangeselector-test-identifer",onClick:A=>A.stopPropagation(),children:[Mt(rue,{...d,"data-testid":"trigger",fullWidth:a,icon:Mt(Se,{size:"sm",type:"caret-down"}),iconPosition:"end",inputButtonOverride:t==="input",onClick:()=>m(!v),textAlign:"left",variant:t==="input"?"tertiary":t,children:o(c)}),v?Ki(iue,{align:e,hasPresets:!!l.length,children:[Ki(aue,{children:[!!l.length&&Mt(qd,{"data-testid":"presets",style:{marginBottom:0,borderRight:`1px solid ${D.color.grey400}`,padding:"12px"},variant:"unbulleted",children:l.map(({label:A,value:F,tooltipText:M})=>Mt(Bi,{children:Mt(nue,{"data-testid":A?.replaceAll(" ","_"),isActive:Qse(h,F),onClick:()=>{g(F)},children:Ki(lue,{"data-title":`${A}___`,children:[A," ",M!==void 0?Mt(Jse,{tooltipText:M}):null]})})},A))}),Mt(sue,{children:Ki(eue,{children:[Mt(K1,{earliestDate:r,latestDate:n,onChange:A=>{g(A)},onErrorChange:E,onSelectedRangePartChange:w,range:h,shouldPreventFuture:p,width:"100%"}),Mt(G1,{earliestDate:r,latestDate:n,onChange:A=>{g(A)},onIsValidChange:y,range:h,rangePartToShow:x,shouldPreventFuture:p})]})})]}),Mt(oue,{}),Ki(uue,{children:[Mt("div",{children:s}),Ki(Fo,{align:"right",children:[Mt(nt,{onClick:()=>{g(c),m(!1)},style:{marginLeft:0},variant:"secondary",children:"Cancel"}),Mt(nt,{"data-testid":"apply-button",disabled:!!S.length||!b,onMouseUp:()=>{u&&u(h),m(!1)},children:"Apply"})]})]})]}):null]})};rM.displayName="RangeSelector_VHS";i();i();import i5,{css as cue}from"styled-components";i();i();import Gs from"react";function e5(e){return e&&e.stopPropagation&&e.stopPropagation(),e&&e.preventDefault&&e.preventDefault(),!1}function t5(e){return e==null?[]:Array.isArray(e)?e.slice():[e]}function q1(e){return e!==null&&e.length===1?e[0]:e.slice()}function X1(e){Object.keys(e).forEach(t=>{typeof document<"u"&&document.addEventListener(t,e[t],!1)})}function qi(e,t){return r5(function(r,n){let o=r;return o<=n.min&&(o=n.min),o>=n.max&&(o=n.max),o}(e,t),t)}function r5(e,t){let r=(e-t.min)%t.step,n=e-r;return 2*Math.abs(r)>=t.step&&(n+=r>0?t.step:-t.step),parseFloat(n.toFixed(5))}var n5=function(e){function t(n){var o;(o=e.call(this,n)||this).onKeyUp=()=>{o.onEnd()},o.onMouseUp=()=>{o.onEnd(o.getMouseEventMap())},o.onTouchEnd=u=>{u.preventDefault(),o.onEnd(o.getTouchEventMap())},o.onBlur=()=>{o.setState({index:-1},o.onEnd(o.getKeyDownEventMap()))},o.onMouseMove=u=>{o.setState({pending:!0});let l=o.getMousePosition(u),c=o.getDiffPosition(l[0]),p=o.getValueFromPosition(c);o.move(p)},o.onTouchMove=u=>{if(u.touches.length>1)return;o.setState({pending:!0});let l=o.getTouchPosition(u);if(o.isScrolling===void 0){let d=l[0]-o.startPosition[0],h=l[1]-o.startPosition[1];o.isScrolling=Math.abs(h)>Math.abs(d)}if(o.isScrolling)return void o.setState({index:-1});let c=o.getDiffPosition(l[0]),p=o.getValueFromPosition(c);o.move(p)},o.onKeyDown=u=>{if(!(u.ctrlKey||u.shiftKey||u.altKey||u.metaKey))switch(o.setState({pending:!0}),u.key){case"ArrowLeft":case"ArrowDown":case"Left":case"Down":u.preventDefault(),o.moveDownByStep();break;case"ArrowRight":case"ArrowUp":case"Right":case"Up":u.preventDefault(),o.moveUpByStep();break;case"Home":u.preventDefault(),o.move(o.props.min);break;case"End":u.preventDefault(),o.move(o.props.max);break;case"PageDown":u.preventDefault(),o.moveDownByStep(o.props.pageFn(o.props.step));break;case"PageUp":u.preventDefault(),o.moveUpByStep(o.props.pageFn(o.props.step))}},o.onSliderMouseDown=u=>{if(!o.props.disabled&&u.button!==2){if(o.setState({pending:!0}),!o.props.snapDragDisabled){let l=o.getMousePosition(u);o.forceValueFromPosition(l[0],c=>{o.start(c,l[0]),X1(o.getMouseEventMap())})}e5(u)}},o.onSliderClick=u=>{if(!o.props.disabled&&o.props.onSliderClick&&!o.hasMoved){let l=o.getMousePosition(u),c=qi(o.calcValue(o.calcOffsetFromPosition(l[0])),o.props);o.props.onSliderClick(c)}},o.createOnKeyDown=u=>l=>{o.props.disabled||(o.start(u),X1(o.getKeyDownEventMap()),e5(l))},o.createOnMouseDown=u=>l=>{if(o.props.disabled||l.button===2)return;o.setState({pending:!0});let c=o.getMousePosition(l);o.start(u,c[0]),X1(o.getMouseEventMap()),e5(l)},o.createOnTouchStart=u=>l=>{if(o.props.disabled||l.touches.length>1)return;o.setState({pending:!0});let c=o.getTouchPosition(l);o.startPosition=c,o.isScrolling=void 0,o.start(u,c[0]),X1(o.getTouchEventMap()),function(p){p.stopPropagation&&p.stopPropagation()}(l)},o.handleResize=()=>{let u=window.setTimeout(()=>{o.pendingResizeTimeouts.shift(),o.resize()},0);o.pendingResizeTimeouts.push(u)},o.renderThumb=(u,l)=>{let c=o.props.thumbClassName+" "+o.props.thumbClassName+"-"+l+" "+(o.state.index===l?o.props.thumbActiveClassName:""),p={ref:h=>{o["thumb"+l]=h},key:o.props.thumbClassName+"-"+l,className:c,style:u,onMouseDown:o.createOnMouseDown(l),onTouchStart:o.createOnTouchStart(l),onFocus:o.createOnKeyDown(l),tabIndex:0,role:"slider","aria-orientation":o.props.orientation,"aria-valuenow":o.state.value[l],"aria-valuemin":o.props.min,"aria-valuemax":o.props.max,"aria-label":Array.isArray(o.props.ariaLabel)?o.props.ariaLabel[l]:o.props.ariaLabel,"aria-labelledby":Array.isArray(o.props.ariaLabelledby)?o.props.ariaLabelledby[l]:o.props.ariaLabelledby,"aria-disabled":o.props.disabled},d={index:l,value:q1(o.state.value),valueNow:o.state.value[l]};return o.props.ariaValuetext&&(p["aria-valuetext"]=typeof o.props.ariaValuetext=="string"?o.props.ariaValuetext:o.props.ariaValuetext(d)),o.props.renderThumb(p,d)},o.renderTrack=(u,l,c)=>{let p={key:o.props.trackClassName+"-"+u,className:o.props.trackClassName+" "+o.props.trackClassName+"-"+u,style:o.buildTrackStyle(l,o.state.upperBound-c)},d={index:u,value:q1(o.state.value)};return o.props.renderTrack(p,d)};let a=t5(n.value);a.length||(a=t5(n.defaultValue)),o.pendingResizeTimeouts=[];let s=[];for(let u=0;u<a.length;u+=1)a[u]=qi(a[u],n),s.push(u);return o.resizeObserver=null,o.resizeElementRef=Gs.createRef(),o.state={index:-1,upperBound:0,sliderLength:0,value:a,zIndices:s},o}Yl(t,e);var r=t.prototype;return r.componentDidMount=function(){typeof window<"u"&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.resizeElementRef.current),this.resize())},t.getDerivedStateFromProps=function(n,o){let a=t5(n.value);return a.length?o.pending?null:{value:a.map(s=>qi(s,n))}:null},r.componentDidUpdate=function(){this.state.upperBound===0&&this.resize()},r.componentWillUnmount=function(){this.clearPendingResizeTimeouts(),this.resizeObserver&&this.resizeObserver.disconnect()},r.onEnd=function(n){n&&function(o){Object.keys(o).forEach(a=>{typeof document<"u"&&document.removeEventListener(a,o[a],!1)})}(n),this.hasMoved&&this.fireChangeEvent("onAfterChange"),this.setState({pending:!1}),this.hasMoved=!1},r.getValue=function(){return q1(this.state.value)},r.getClosestIndex=function(n){let o=Number.MAX_VALUE,a=-1,{value:s}=this.state,u=s.length;for(let l=0;l<u;l+=1){let c=this.calcOffset(s[l]),p=Math.abs(n-c);p<o&&(o=p,a=l)}return a},r.getMousePosition=function(n){return[n["page"+this.axisKey()],n["page"+this.orthogonalAxisKey()]]},r.getTouchPosition=function(n){let o=n.touches[0];return[o["page"+this.axisKey()],o["page"+this.orthogonalAxisKey()]]},r.getKeyDownEventMap=function(){return{keydown:this.onKeyDown,keyup:this.onKeyUp,focusout:this.onBlur}},r.getMouseEventMap=function(){return{mousemove:this.onMouseMove,mouseup:this.onMouseUp}},r.getTouchEventMap=function(){return{touchmove:this.onTouchMove,touchend:this.onTouchEnd}},r.getValueFromPosition=function(n){let o=n/(this.state.sliderLength-this.state.thumbSize)*(this.props.max-this.props.min);return qi(this.state.startValue+o,this.props)},r.getDiffPosition=function(n){let o=n-this.state.startPosition;return this.props.invert&&(o*=-1),o},r.resize=function(){let{slider:n,thumb0:o}=this;if(!n||!o)return;let a=this.sizeKey(),s=n.getBoundingClientRect(),u=n[a],l=s[this.posMaxKey()],c=s[this.posMinKey()],p=o.getBoundingClientRect()[a.replace("client","").toLowerCase()],d=u-p,h=Math.abs(l-c);this.state.upperBound===d&&this.state.sliderLength===h&&this.state.thumbSize===p||this.setState({upperBound:d,sliderLength:h,thumbSize:p})},r.calcOffset=function(n){let o=this.props.max-this.props.min;return o===0?0:(n-this.props.min)/o*this.state.upperBound},r.calcValue=function(n){return n/this.state.upperBound*(this.props.max-this.props.min)+this.props.min},r.calcOffsetFromPosition=function(n){let{slider:o}=this,a=o.getBoundingClientRect(),s=a[this.posMaxKey()],u=a[this.posMinKey()],l=n-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?s:u));return this.props.invert&&(l=this.state.sliderLength-l),l-=this.state.thumbSize/2,l},r.forceValueFromPosition=function(n,o){let a=this.calcOffsetFromPosition(n),s=this.getClosestIndex(a),u=qi(this.calcValue(a),this.props),l=this.state.value.slice();l[s]=u;for(let c=0;c<l.length-1;c+=1)if(l[c+1]-l[c]<this.props.minDistance)return;this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0,this.setState({value:l},()=>{o(s),this.fireChangeEvent("onChange")})},r.clearPendingResizeTimeouts=function(){do{let n=this.pendingResizeTimeouts.shift();clearTimeout(n)}while(this.pendingResizeTimeouts.length)},r.start=function(n,o){let a=this["thumb"+n];a&&a.focus();let{zIndices:s}=this.state;s.splice(s.indexOf(n),1),s.push(n),this.setState(u=>({startValue:u.value[n],startPosition:o!==void 0?o:u.startPosition,index:n,zIndices:s}))},r.moveUpByStep=function(n){n===void 0&&(n=this.props.step);let o=this.state.value[this.state.index],a=qi(this.props.invert&&this.props.orientation==="horizontal"?o-n:o+n,this.props);this.move(Math.min(a,this.props.max))},r.moveDownByStep=function(n){n===void 0&&(n=this.props.step);let o=this.state.value[this.state.index],a=qi(this.props.invert&&this.props.orientation==="horizontal"?o+n:o-n,this.props);this.move(Math.max(a,this.props.min))},r.move=function(n){let o=this.state.value.slice(),{index:a}=this.state,{length:s}=o,u=o[a];if(n===u)return;this.hasMoved||this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0;let{pearling:l,max:c,min:p,minDistance:d}=this.props;if(!l){if(a>0){let h=o[a-1];n<h+d&&(n=h+d)}if(a<s-1){let h=o[a+1];n>h-d&&(n=h-d)}}o[a]=n,l&&s>1&&(n>u?(this.pushSucceeding(o,d,a),function(h,g,v,m){for(let b=0;b<h;b+=1){let y=m-b*v;g[h-1-b]>y&&(g[h-1-b]=y)}}(s,o,d,c)):n<u&&(this.pushPreceding(o,d,a),function(h,g,v,m){for(let b=0;b<h;b+=1){let y=m+b*v;g[b]<y&&(g[b]=y)}}(s,o,d,p))),this.setState({value:o},this.fireChangeEvent.bind(this,"onChange"))},r.pushSucceeding=function(n,o,a){let s,u;for(s=a,u=n[s]+o;n[s+1]!==null&&u>n[s+1];s+=1,u=n[s]+o)n[s+1]=r5(u,this.props)},r.pushPreceding=function(n,o,a){for(let s=a,u=n[s]-o;n[s-1]!==null&&u<n[s-1];s-=1,u=n[s]-o)n[s-1]=r5(u,this.props)},r.axisKey=function(){return this.props.orientation==="vertical"?"Y":"X"},r.orthogonalAxisKey=function(){return this.props.orientation==="vertical"?"X":"Y"},r.posMinKey=function(){return this.props.orientation==="vertical"?this.props.invert?"bottom":"top":this.props.invert?"right":"left"},r.posMaxKey=function(){return this.props.orientation==="vertical"?this.props.invert?"top":"bottom":this.props.invert?"left":"right"},r.sizeKey=function(){return this.props.orientation==="vertical"?"clientHeight":"clientWidth"},r.fireChangeEvent=function(n){this.props[n]&&this.props[n](q1(this.state.value),this.state.index)},r.buildThumbStyle=function(n,o){let a={position:"absolute",touchAction:"none",willChange:this.state.index>=0?this.posMinKey():void 0,zIndex:this.state.zIndices.indexOf(o)+1};return a[this.posMinKey()]=n+"px",a},r.buildTrackStyle=function(n,o){let a={position:"absolute",willChange:this.state.index>=0?this.posMinKey()+","+this.posMaxKey():void 0};return a[this.posMinKey()]=n,a[this.posMaxKey()]=o,a},r.buildMarkStyle=function(n){var o;return(o={position:"absolute"})[this.posMinKey()]=n,o},r.renderThumbs=function(n){let{length:o}=n,a=[];for(let u=0;u<o;u+=1)a[u]=this.buildThumbStyle(n[u],u);let s=[];for(let u=0;u<o;u+=1)s[u]=this.renderThumb(a[u],u);return s},r.renderTracks=function(n){let o=[],a=n.length-1;o.push(this.renderTrack(0,0,n[0]));for(let s=0;s<a;s+=1)o.push(this.renderTrack(s+1,n[s],n[s+1]));return o.push(this.renderTrack(a+1,n[a],this.state.upperBound)),o},r.renderMarks=function(){let{marks:n}=this.props,o=this.props.max-this.props.min+1;return typeof n=="boolean"?n=Array.from({length:o}).map((a,s)=>s):typeof n=="number"&&(n=Array.from({length:o}).map((a,s)=>s).filter(a=>a%n==0)),n.map(parseFloat).sort((a,s)=>a-s).map(a=>{let s=this.calcOffset(a),u={key:a,className:this.props.markClassName,style:this.buildMarkStyle(s)};return this.props.renderMark(u)})},r.render=function(){let n=[],{value:o}=this.state,a=o.length;for(let c=0;c<a;c+=1)n[c]=this.calcOffset(o[c],c);let s=this.props.withTracks?this.renderTracks(n):null,u=this.renderThumbs(n),l=this.props.marks?this.renderMarks():null;return Gs.createElement("div",{ref:c=>{this.slider=c,this.resizeElementRef.current=c},style:{position:"relative"},className:this.props.className+(this.props.disabled?" disabled":""),onMouseDown:this.onSliderMouseDown,onClick:this.onSliderClick},s,u,l)},t}(Gs.Component);n5.displayName="ReactSlider",n5.defaultProps={min:0,max:100,step:1,pageFn:e=>10*e,minDistance:0,defaultValue:0,orientation:"horizontal",className:"slider",thumbClassName:"thumb",thumbActiveClassName:"active",trackClassName:"track",markClassName:"mark",withTracks:!0,pearling:!1,disabled:!1,snapDragDisabled:!1,invert:!1,marks:[],renderThumb:e=>Gs.createElement("div",e),renderTrack:e=>Gs.createElement("div",e),renderMark:e=>Gs.createElement("span",e)};var o5=n5;var yt=K(Q());import{jsx as Hl}from"react/jsx-runtime";var nM="4px",fue=cue`
|
|
2729
|
+
`,rM=({align:e="left",buttonVariant:t="secondary",earliestDate:r,latestDate:n,format:o=Zse,fullWidth:a=!1,footerText:s,onChange:u,presets:l=[],range:c={end:new Date,start:new Date},shouldPreventFuture:p=!1,...d})=>{let[h,g]=Gl(c),[v,m]=Gl(!1),[b,y]=Gl(!0),[x,w]=Gl("end"),[S,E]=Gl([]),D=kn();return eM(()=>{g(c)},[c]),eM(()=>{let A=()=>{m(!1),g(c)};return v&&window.addEventListener("click",A),()=>{window.removeEventListener("click",A)}},[v,c,g]),Ki(tue,{"data-testid":"rangeselector-test-identifier",onClick:A=>A.stopPropagation(),children:[Mt(rue,{...d,"data-testid":"trigger",fullWidth:a,icon:Mt(Se,{size:"sm",type:"caret-down"}),iconPosition:"end",inputButtonOverride:t==="input",onClick:()=>m(!v),textAlign:"left",variant:t==="input"?"tertiary":t,children:o(c)}),v?Ki(iue,{align:e,hasPresets:!!l.length,children:[Ki(aue,{children:[!!l.length&&Mt(qd,{"data-testid":"presets",style:{marginBottom:0,borderRight:`1px solid ${D.color.grey400}`,padding:"12px"},variant:"unbulleted",children:l.map(({label:A,value:F,tooltipText:M})=>Mt(Bi,{children:Mt(nue,{"data-testid":A?.replaceAll(" ","_"),isActive:Qse(h,F),onClick:()=>{g(F)},children:Ki(lue,{"data-title":`${A}___`,children:[A," ",M!==void 0?Mt(Jse,{tooltipText:M}):null]})})},A))}),Mt(sue,{children:Ki(eue,{children:[Mt(K1,{earliestDate:r,latestDate:n,onChange:A=>{g(A)},onErrorChange:E,onSelectedRangePartChange:w,range:h,shouldPreventFuture:p,width:"100%"}),Mt(G1,{earliestDate:r,latestDate:n,onChange:A=>{g(A)},onIsValidChange:y,range:h,rangePartToShow:x,shouldPreventFuture:p})]})})]}),Mt(oue,{}),Ki(uue,{children:[Mt("div",{children:s}),Ki(Fo,{align:"right",children:[Mt(nt,{onClick:()=>{g(c),m(!1)},style:{marginLeft:0},variant:"secondary",children:"Cancel"}),Mt(nt,{"data-testid":"apply-button",disabled:!!S.length||!b,onMouseUp:()=>{u&&u(h),m(!1)},children:"Apply"})]})]})]}):null]})};rM.displayName="RangeSelector_VHS";i();i();import i5,{css as cue}from"styled-components";i();i();import Gs from"react";function e5(e){return e&&e.stopPropagation&&e.stopPropagation(),e&&e.preventDefault&&e.preventDefault(),!1}function t5(e){return e==null?[]:Array.isArray(e)?e.slice():[e]}function q1(e){return e!==null&&e.length===1?e[0]:e.slice()}function X1(e){Object.keys(e).forEach(t=>{typeof document<"u"&&document.addEventListener(t,e[t],!1)})}function qi(e,t){return r5(function(r,n){let o=r;return o<=n.min&&(o=n.min),o>=n.max&&(o=n.max),o}(e,t),t)}function r5(e,t){let r=(e-t.min)%t.step,n=e-r;return 2*Math.abs(r)>=t.step&&(n+=r>0?t.step:-t.step),parseFloat(n.toFixed(5))}var n5=function(e){function t(n){var o;(o=e.call(this,n)||this).onKeyUp=()=>{o.onEnd()},o.onMouseUp=()=>{o.onEnd(o.getMouseEventMap())},o.onTouchEnd=u=>{u.preventDefault(),o.onEnd(o.getTouchEventMap())},o.onBlur=()=>{o.setState({index:-1},o.onEnd(o.getKeyDownEventMap()))},o.onMouseMove=u=>{o.setState({pending:!0});let l=o.getMousePosition(u),c=o.getDiffPosition(l[0]),p=o.getValueFromPosition(c);o.move(p)},o.onTouchMove=u=>{if(u.touches.length>1)return;o.setState({pending:!0});let l=o.getTouchPosition(u);if(o.isScrolling===void 0){let d=l[0]-o.startPosition[0],h=l[1]-o.startPosition[1];o.isScrolling=Math.abs(h)>Math.abs(d)}if(o.isScrolling)return void o.setState({index:-1});let c=o.getDiffPosition(l[0]),p=o.getValueFromPosition(c);o.move(p)},o.onKeyDown=u=>{if(!(u.ctrlKey||u.shiftKey||u.altKey||u.metaKey))switch(o.setState({pending:!0}),u.key){case"ArrowLeft":case"ArrowDown":case"Left":case"Down":u.preventDefault(),o.moveDownByStep();break;case"ArrowRight":case"ArrowUp":case"Right":case"Up":u.preventDefault(),o.moveUpByStep();break;case"Home":u.preventDefault(),o.move(o.props.min);break;case"End":u.preventDefault(),o.move(o.props.max);break;case"PageDown":u.preventDefault(),o.moveDownByStep(o.props.pageFn(o.props.step));break;case"PageUp":u.preventDefault(),o.moveUpByStep(o.props.pageFn(o.props.step))}},o.onSliderMouseDown=u=>{if(!o.props.disabled&&u.button!==2){if(o.setState({pending:!0}),!o.props.snapDragDisabled){let l=o.getMousePosition(u);o.forceValueFromPosition(l[0],c=>{o.start(c,l[0]),X1(o.getMouseEventMap())})}e5(u)}},o.onSliderClick=u=>{if(!o.props.disabled&&o.props.onSliderClick&&!o.hasMoved){let l=o.getMousePosition(u),c=qi(o.calcValue(o.calcOffsetFromPosition(l[0])),o.props);o.props.onSliderClick(c)}},o.createOnKeyDown=u=>l=>{o.props.disabled||(o.start(u),X1(o.getKeyDownEventMap()),e5(l))},o.createOnMouseDown=u=>l=>{if(o.props.disabled||l.button===2)return;o.setState({pending:!0});let c=o.getMousePosition(l);o.start(u,c[0]),X1(o.getMouseEventMap()),e5(l)},o.createOnTouchStart=u=>l=>{if(o.props.disabled||l.touches.length>1)return;o.setState({pending:!0});let c=o.getTouchPosition(l);o.startPosition=c,o.isScrolling=void 0,o.start(u,c[0]),X1(o.getTouchEventMap()),function(p){p.stopPropagation&&p.stopPropagation()}(l)},o.handleResize=()=>{let u=window.setTimeout(()=>{o.pendingResizeTimeouts.shift(),o.resize()},0);o.pendingResizeTimeouts.push(u)},o.renderThumb=(u,l)=>{let c=o.props.thumbClassName+" "+o.props.thumbClassName+"-"+l+" "+(o.state.index===l?o.props.thumbActiveClassName:""),p={ref:h=>{o["thumb"+l]=h},key:o.props.thumbClassName+"-"+l,className:c,style:u,onMouseDown:o.createOnMouseDown(l),onTouchStart:o.createOnTouchStart(l),onFocus:o.createOnKeyDown(l),tabIndex:0,role:"slider","aria-orientation":o.props.orientation,"aria-valuenow":o.state.value[l],"aria-valuemin":o.props.min,"aria-valuemax":o.props.max,"aria-label":Array.isArray(o.props.ariaLabel)?o.props.ariaLabel[l]:o.props.ariaLabel,"aria-labelledby":Array.isArray(o.props.ariaLabelledby)?o.props.ariaLabelledby[l]:o.props.ariaLabelledby,"aria-disabled":o.props.disabled},d={index:l,value:q1(o.state.value),valueNow:o.state.value[l]};return o.props.ariaValuetext&&(p["aria-valuetext"]=typeof o.props.ariaValuetext=="string"?o.props.ariaValuetext:o.props.ariaValuetext(d)),o.props.renderThumb(p,d)},o.renderTrack=(u,l,c)=>{let p={key:o.props.trackClassName+"-"+u,className:o.props.trackClassName+" "+o.props.trackClassName+"-"+u,style:o.buildTrackStyle(l,o.state.upperBound-c)},d={index:u,value:q1(o.state.value)};return o.props.renderTrack(p,d)};let a=t5(n.value);a.length||(a=t5(n.defaultValue)),o.pendingResizeTimeouts=[];let s=[];for(let u=0;u<a.length;u+=1)a[u]=qi(a[u],n),s.push(u);return o.resizeObserver=null,o.resizeElementRef=Gs.createRef(),o.state={index:-1,upperBound:0,sliderLength:0,value:a,zIndices:s},o}Yl(t,e);var r=t.prototype;return r.componentDidMount=function(){typeof window<"u"&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.resizeElementRef.current),this.resize())},t.getDerivedStateFromProps=function(n,o){let a=t5(n.value);return a.length?o.pending?null:{value:a.map(s=>qi(s,n))}:null},r.componentDidUpdate=function(){this.state.upperBound===0&&this.resize()},r.componentWillUnmount=function(){this.clearPendingResizeTimeouts(),this.resizeObserver&&this.resizeObserver.disconnect()},r.onEnd=function(n){n&&function(o){Object.keys(o).forEach(a=>{typeof document<"u"&&document.removeEventListener(a,o[a],!1)})}(n),this.hasMoved&&this.fireChangeEvent("onAfterChange"),this.setState({pending:!1}),this.hasMoved=!1},r.getValue=function(){return q1(this.state.value)},r.getClosestIndex=function(n){let o=Number.MAX_VALUE,a=-1,{value:s}=this.state,u=s.length;for(let l=0;l<u;l+=1){let c=this.calcOffset(s[l]),p=Math.abs(n-c);p<o&&(o=p,a=l)}return a},r.getMousePosition=function(n){return[n["page"+this.axisKey()],n["page"+this.orthogonalAxisKey()]]},r.getTouchPosition=function(n){let o=n.touches[0];return[o["page"+this.axisKey()],o["page"+this.orthogonalAxisKey()]]},r.getKeyDownEventMap=function(){return{keydown:this.onKeyDown,keyup:this.onKeyUp,focusout:this.onBlur}},r.getMouseEventMap=function(){return{mousemove:this.onMouseMove,mouseup:this.onMouseUp}},r.getTouchEventMap=function(){return{touchmove:this.onTouchMove,touchend:this.onTouchEnd}},r.getValueFromPosition=function(n){let o=n/(this.state.sliderLength-this.state.thumbSize)*(this.props.max-this.props.min);return qi(this.state.startValue+o,this.props)},r.getDiffPosition=function(n){let o=n-this.state.startPosition;return this.props.invert&&(o*=-1),o},r.resize=function(){let{slider:n,thumb0:o}=this;if(!n||!o)return;let a=this.sizeKey(),s=n.getBoundingClientRect(),u=n[a],l=s[this.posMaxKey()],c=s[this.posMinKey()],p=o.getBoundingClientRect()[a.replace("client","").toLowerCase()],d=u-p,h=Math.abs(l-c);this.state.upperBound===d&&this.state.sliderLength===h&&this.state.thumbSize===p||this.setState({upperBound:d,sliderLength:h,thumbSize:p})},r.calcOffset=function(n){let o=this.props.max-this.props.min;return o===0?0:(n-this.props.min)/o*this.state.upperBound},r.calcValue=function(n){return n/this.state.upperBound*(this.props.max-this.props.min)+this.props.min},r.calcOffsetFromPosition=function(n){let{slider:o}=this,a=o.getBoundingClientRect(),s=a[this.posMaxKey()],u=a[this.posMinKey()],l=n-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?s:u));return this.props.invert&&(l=this.state.sliderLength-l),l-=this.state.thumbSize/2,l},r.forceValueFromPosition=function(n,o){let a=this.calcOffsetFromPosition(n),s=this.getClosestIndex(a),u=qi(this.calcValue(a),this.props),l=this.state.value.slice();l[s]=u;for(let c=0;c<l.length-1;c+=1)if(l[c+1]-l[c]<this.props.minDistance)return;this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0,this.setState({value:l},()=>{o(s),this.fireChangeEvent("onChange")})},r.clearPendingResizeTimeouts=function(){do{let n=this.pendingResizeTimeouts.shift();clearTimeout(n)}while(this.pendingResizeTimeouts.length)},r.start=function(n,o){let a=this["thumb"+n];a&&a.focus();let{zIndices:s}=this.state;s.splice(s.indexOf(n),1),s.push(n),this.setState(u=>({startValue:u.value[n],startPosition:o!==void 0?o:u.startPosition,index:n,zIndices:s}))},r.moveUpByStep=function(n){n===void 0&&(n=this.props.step);let o=this.state.value[this.state.index],a=qi(this.props.invert&&this.props.orientation==="horizontal"?o-n:o+n,this.props);this.move(Math.min(a,this.props.max))},r.moveDownByStep=function(n){n===void 0&&(n=this.props.step);let o=this.state.value[this.state.index],a=qi(this.props.invert&&this.props.orientation==="horizontal"?o+n:o-n,this.props);this.move(Math.max(a,this.props.min))},r.move=function(n){let o=this.state.value.slice(),{index:a}=this.state,{length:s}=o,u=o[a];if(n===u)return;this.hasMoved||this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0;let{pearling:l,max:c,min:p,minDistance:d}=this.props;if(!l){if(a>0){let h=o[a-1];n<h+d&&(n=h+d)}if(a<s-1){let h=o[a+1];n>h-d&&(n=h-d)}}o[a]=n,l&&s>1&&(n>u?(this.pushSucceeding(o,d,a),function(h,g,v,m){for(let b=0;b<h;b+=1){let y=m-b*v;g[h-1-b]>y&&(g[h-1-b]=y)}}(s,o,d,c)):n<u&&(this.pushPreceding(o,d,a),function(h,g,v,m){for(let b=0;b<h;b+=1){let y=m+b*v;g[b]<y&&(g[b]=y)}}(s,o,d,p))),this.setState({value:o},this.fireChangeEvent.bind(this,"onChange"))},r.pushSucceeding=function(n,o,a){let s,u;for(s=a,u=n[s]+o;n[s+1]!==null&&u>n[s+1];s+=1,u=n[s]+o)n[s+1]=r5(u,this.props)},r.pushPreceding=function(n,o,a){for(let s=a,u=n[s]-o;n[s-1]!==null&&u<n[s-1];s-=1,u=n[s]-o)n[s-1]=r5(u,this.props)},r.axisKey=function(){return this.props.orientation==="vertical"?"Y":"X"},r.orthogonalAxisKey=function(){return this.props.orientation==="vertical"?"X":"Y"},r.posMinKey=function(){return this.props.orientation==="vertical"?this.props.invert?"bottom":"top":this.props.invert?"right":"left"},r.posMaxKey=function(){return this.props.orientation==="vertical"?this.props.invert?"top":"bottom":this.props.invert?"left":"right"},r.sizeKey=function(){return this.props.orientation==="vertical"?"clientHeight":"clientWidth"},r.fireChangeEvent=function(n){this.props[n]&&this.props[n](q1(this.state.value),this.state.index)},r.buildThumbStyle=function(n,o){let a={position:"absolute",touchAction:"none",willChange:this.state.index>=0?this.posMinKey():void 0,zIndex:this.state.zIndices.indexOf(o)+1};return a[this.posMinKey()]=n+"px",a},r.buildTrackStyle=function(n,o){let a={position:"absolute",willChange:this.state.index>=0?this.posMinKey()+","+this.posMaxKey():void 0};return a[this.posMinKey()]=n,a[this.posMaxKey()]=o,a},r.buildMarkStyle=function(n){var o;return(o={position:"absolute"})[this.posMinKey()]=n,o},r.renderThumbs=function(n){let{length:o}=n,a=[];for(let u=0;u<o;u+=1)a[u]=this.buildThumbStyle(n[u],u);let s=[];for(let u=0;u<o;u+=1)s[u]=this.renderThumb(a[u],u);return s},r.renderTracks=function(n){let o=[],a=n.length-1;o.push(this.renderTrack(0,0,n[0]));for(let s=0;s<a;s+=1)o.push(this.renderTrack(s+1,n[s],n[s+1]));return o.push(this.renderTrack(a+1,n[a],this.state.upperBound)),o},r.renderMarks=function(){let{marks:n}=this.props,o=this.props.max-this.props.min+1;return typeof n=="boolean"?n=Array.from({length:o}).map((a,s)=>s):typeof n=="number"&&(n=Array.from({length:o}).map((a,s)=>s).filter(a=>a%n==0)),n.map(parseFloat).sort((a,s)=>a-s).map(a=>{let s=this.calcOffset(a),u={key:a,className:this.props.markClassName,style:this.buildMarkStyle(s)};return this.props.renderMark(u)})},r.render=function(){let n=[],{value:o}=this.state,a=o.length;for(let c=0;c<a;c+=1)n[c]=this.calcOffset(o[c],c);let s=this.props.withTracks?this.renderTracks(n):null,u=this.renderThumbs(n),l=this.props.marks?this.renderMarks():null;return Gs.createElement("div",{ref:c=>{this.slider=c,this.resizeElementRef.current=c},style:{position:"relative"},className:this.props.className+(this.props.disabled?" disabled":""),onMouseDown:this.onSliderMouseDown,onClick:this.onSliderClick},s,u,l)},t}(Gs.Component);n5.displayName="ReactSlider",n5.defaultProps={min:0,max:100,step:1,pageFn:e=>10*e,minDistance:0,defaultValue:0,orientation:"horizontal",className:"slider",thumbClassName:"thumb",thumbActiveClassName:"active",trackClassName:"track",markClassName:"mark",withTracks:!0,pearling:!1,disabled:!1,snapDragDisabled:!1,invert:!1,marks:[],renderThumb:e=>Gs.createElement("div",e),renderTrack:e=>Gs.createElement("div",e),renderMark:e=>Gs.createElement("span",e)};var o5=n5;var yt=K(Q());import{jsx as Hl}from"react/jsx-runtime";var nM="4px",fue=cue`
|
|
2746
2730
|
opacity: 0.5;
|
|
2747
2731
|
|
|
2748
2732
|
& * {
|