From 9c80619913d12121e71ebde0f710e56cfde4285e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 1 Aug 2023 19:11:35 +0000 Subject: [PATCH] Deploy to GitHub pages --- 142.b6e828d3.iframe.bundle.js | 2 + 142.b6e828d3.iframe.bundle.js.LICENSE.txt | 12 + 142.f4445b1b27f02bb3e539.manager.bundle.js | 2 + ...27f02bb3e539.manager.bundle.js.LICENSE.txt | 12 + 273.ca7ffb36.iframe.bundle.js | 2 + 273.ca7ffb36.iframe.bundle.js.LICENSE.txt | 14 + 295.105d7adb34001ffba876.manager.bundle.js | 1 + 32.5a523614.iframe.bundle.js | 1 + 32.f16e99762ce98448603a.manager.bundle.js | 1 + 363.76863f4e4594442b5775.manager.bundle.js | 586 ++++++++++++++++++ ...4594442b5775.manager.bundle.js.LICENSE.txt | 23 + 469.b371aafd.iframe.bundle.js | 2 + 469.b371aafd.iframe.bundle.js.LICENSE.txt | 84 +++ 551.1b86c3ef.iframe.bundle.js | 1 + 551.4032c9106b582d98c348.manager.bundle.js | 1 + 566.6d7b1501.iframe.bundle.js | 2 + 566.6d7b1501.iframe.bundle.js.LICENSE.txt | 31 + 566.c56f68487233c522dc9c.manager.bundle.js | 2 + ...7233c522dc9c.manager.bundle.js.LICENSE.txt | 31 + 691.1b37110a.iframe.bundle.js | 2 + 691.1b37110a.iframe.bundle.js.LICENSE.txt | 8 + 691.d2e613629298ef60e5f0.manager.bundle.js | 2 + ...9298ef60e5f0.manager.bundle.js.LICENSE.txt | 8 + 701.5e9b25cc.iframe.bundle.js | 1 + 725.8c3f9d2da8f5ad9f4d1a.manager.bundle.js | 1 + 725.b36b62ec.iframe.bundle.js | 1 + 745.3bb3b26b.iframe.bundle.js | 1 + 813.176e50e2fd27f9bd06fc.manager.bundle.js | 2 + ...fd27f9bd06fc.manager.bundle.js.LICENSE.txt | 97 +++ 899.ba1ab77c.iframe.bundle.js | 2 + 899.ba1ab77c.iframe.bundle.js.LICENSE.txt | 11 + favicon.ico | Bin 0 -> 32988 bytes iframe.html | 364 +++++++++++ index.html | 59 ++ main.1ccdb3ec.iframe.bundle.js | 562 +++++++++++++++++ main.1ccdb3ec.iframe.bundle.js.map | 1 + main.ff6065fba24f0803656c.manager.bundle.js | 1 + project.json | 1 + ...ain.7de207ecde598294e9b7.manager.bundle.js | 1 + runtime~main.ce89570c.iframe.bundle.js | 1 + 40 files changed, 1936 insertions(+) create mode 100644 142.b6e828d3.iframe.bundle.js create mode 100644 142.b6e828d3.iframe.bundle.js.LICENSE.txt create mode 100644 142.f4445b1b27f02bb3e539.manager.bundle.js create mode 100644 142.f4445b1b27f02bb3e539.manager.bundle.js.LICENSE.txt create mode 100644 273.ca7ffb36.iframe.bundle.js create mode 100644 273.ca7ffb36.iframe.bundle.js.LICENSE.txt create mode 100644 295.105d7adb34001ffba876.manager.bundle.js create mode 100644 32.5a523614.iframe.bundle.js create mode 100644 32.f16e99762ce98448603a.manager.bundle.js create mode 100644 363.76863f4e4594442b5775.manager.bundle.js create mode 100644 363.76863f4e4594442b5775.manager.bundle.js.LICENSE.txt create mode 100644 469.b371aafd.iframe.bundle.js create mode 100644 469.b371aafd.iframe.bundle.js.LICENSE.txt create mode 100644 551.1b86c3ef.iframe.bundle.js create mode 100644 551.4032c9106b582d98c348.manager.bundle.js create mode 100644 566.6d7b1501.iframe.bundle.js create mode 100644 566.6d7b1501.iframe.bundle.js.LICENSE.txt create mode 100644 566.c56f68487233c522dc9c.manager.bundle.js create mode 100644 566.c56f68487233c522dc9c.manager.bundle.js.LICENSE.txt create mode 100644 691.1b37110a.iframe.bundle.js create mode 100644 691.1b37110a.iframe.bundle.js.LICENSE.txt create mode 100644 691.d2e613629298ef60e5f0.manager.bundle.js create mode 100644 691.d2e613629298ef60e5f0.manager.bundle.js.LICENSE.txt create mode 100644 701.5e9b25cc.iframe.bundle.js create mode 100644 725.8c3f9d2da8f5ad9f4d1a.manager.bundle.js create mode 100644 725.b36b62ec.iframe.bundle.js create mode 100644 745.3bb3b26b.iframe.bundle.js create mode 100644 813.176e50e2fd27f9bd06fc.manager.bundle.js create mode 100644 813.176e50e2fd27f9bd06fc.manager.bundle.js.LICENSE.txt create mode 100644 899.ba1ab77c.iframe.bundle.js create mode 100644 899.ba1ab77c.iframe.bundle.js.LICENSE.txt create mode 100644 favicon.ico create mode 100644 iframe.html create mode 100644 index.html create mode 100644 main.1ccdb3ec.iframe.bundle.js create mode 100644 main.1ccdb3ec.iframe.bundle.js.map create mode 100644 main.ff6065fba24f0803656c.manager.bundle.js create mode 100644 project.json create mode 100644 runtime~main.7de207ecde598294e9b7.manager.bundle.js create mode 100644 runtime~main.ce89570c.iframe.bundle.js diff --git a/142.b6e828d3.iframe.bundle.js b/142.b6e828d3.iframe.bundle.js new file mode 100644 index 000000000..45e13f28e --- /dev/null +++ b/142.b6e828d3.iframe.bundle.js @@ -0,0 +1,2 @@ +/*! For license information please see 142.b6e828d3.iframe.bundle.js.LICENSE.txt */ +"use strict";(self.webpackChunk_headstorm_foundry_react_ui=self.webpackChunk_headstorm_foundry_react_ui||[]).push([[142],{"./node_modules/@storybook/components/dist/esm/OverlayScrollbars-26c4a78d.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{OverlayScrollbarsComponent:function(){return OverlayScrollbarsComponent},default:function(){return OverlayScrollbarsComponent}});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.string.split.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.match.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.splice.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.find.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.number.to-fixed.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var _index_b45716e8_js__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/@storybook/components/dist/esm/index-b45716e8.js"),react__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/react/index.js");__webpack_require__("./node_modules/memoizerific/memoizerific.js"),__webpack_require__("./node_modules/@storybook/csf/dist/index.js"),__webpack_require__("./node_modules/qs/lib/index.js");function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}var module,global,OverlayScrollbars$1={exports:{}};module=OverlayScrollbars$1,global="undefined"!=typeof window?window:_index_b45716e8_js__WEBPACK_IMPORTED_MODULE_26__.c,module.exports=function(window,document,undefined$1){var _targets,_instancePropertyString,_easingsMath,PLUGINNAME="OverlayScrollbars",TYPES={o:"object",f:"function",a:"array",s:"string",b:"boolean",n:"number",u:"undefined",z:"null"},LEXICON={c:"class",s:"style",i:"id",l:"length",p:"prototype",ti:"tabindex",oH:"offsetHeight",cH:"clientHeight",sH:"scrollHeight",oW:"offsetWidth",cW:"clientWidth",sW:"scrollWidth",hOP:"hasOwnProperty",bCR:"getBoundingClientRect"},VENDORS=function(){var jsCache={},cssCache={},cssPrefixes=["-webkit-","-moz-","-o-","-ms-"],jsPrefixes=["WebKit","Moz","O","MS"];function firstLetterToUpper(str){return str.charAt(0).toUpperCase()+str.slice(1)}return{_cssPrefixes:cssPrefixes,_jsPrefixes:jsPrefixes,_cssProperty:function _cssProperty(name){var result=cssCache[name];if(cssCache[LEXICON.hOP](name))return result;for(var resultPossibilities,v,currVendorWithoutDashes,uppercasedName=firstLetterToUpper(name),elmStyle=document.createElement("div")[LEXICON.s],i=0;i0&&length-1 in obj)}function stripAndCollapse(value){return(value.match(_rnothtmlwhite)||[]).join(_strSpace)}function matches(elem,selector){for(var nodeList=(elem.parentNode||document).querySelectorAll(selector)||[],i=nodeList[LEXICON.l];i--;)if(nodeList[i]==elem)return!0;return!1}function insertAdjacentElement(el,strategy,child){if(COMPATIBILITY.isA(child))for(var i=0;i0?(nextAnim=animObj.q[0],_animate(animObj.el,nextAnim.props,nextAnim.duration,nextAnim.easing,nextAnim.complete,!0)):(index=inArray(animObj,_animations))>-1&&_animations.splice(index,1)}function setAnimationValue(el,prop,value){prop===_strScrollLeft||prop===_strScrollTop?el[prop]=value:setCSSVal(el,prop,value)}function _animate(el,props,options,easing,complete,guaranteedNext){var key,animObj,progress,step,specialEasing,duration,hasOptions=isPlainObject(options),from={},to={},i=0;for(hasOptions?(easing=options.easing,progress=options.progress,step=options.step,specialEasing=options.specialEasing,complete=options.complete,duration=options.duration):duration=options,specialEasing=specialEasing||{},duration=duration||400,easing=easing||"swing",guaranteedNext=guaranteedNext||!1;i<_animations[LEXICON.l];i++)if(_animations[i].el===el){animObj=_animations[i];break}for(key in animObj||(animObj={el:el,q:[]},_animations.push(animObj)),props)from[key]=key===_strScrollLeft||key===_strScrollTop?el[key]:FakejQuery(el).css(key);for(key in from)from[key]!==props[key]&&props[key]!==undefined$1&&(to[key]=props[key]);if(isEmptyObject(to))guaranteedNext&&startNextAnimationInQ(animObj);else{var timeNow,end,percent,fromVal,toVal,easedVal,timeStart,_frame,elapsed,qPos=guaranteedNext?0:inArray(qObj,animObj.q),qObj={props:to,duration:hasOptions?options:duration,easing:easing,complete:complete};if(-1===qPos&&(qPos=animObj.q[LEXICON.l],animObj.q.push(qObj)),0===qPos)if(duration>0)timeStart=COMPATIBILITY.now(),_frame=function frame(){for(key in timeNow=COMPATIBILITY.now(),elapsed=timeNow-timeStart,end=qObj.stop||elapsed>=duration,percent=1-(MATH.max(0,timeStart+duration-timeNow)/duration||0),to)fromVal=parseFloat(from[key]),toVal=parseFloat(to[key]),easedVal=(toVal-fromVal)*EASING[specialEasing[key]||easing](percent,percent*duration,0,1,duration)+fromVal,setAnimationValue(el,key,easedVal),isFunction(step)&&step(easedVal,{elem:el,prop:key,start:fromVal,now:easedVal,end:toVal,pos:percent,options:{easing:easing,speacialEasing:specialEasing,duration:duration,complete:complete,step:step},startTime:timeStart});isFunction(progress)&&progress({},percent,MATH.max(0,duration-elapsed)),end?(startNextAnimationInQ(animObj),isFunction(complete)&&complete()):qObj.frame=COMPATIBILITY.rAF()(_frame)},qObj.frame=COMPATIBILITY.rAF()(_frame);else{for(key in to)setAnimationValue(el,key,to[key]);startNextAnimationInQ(animObj)}}}function _stop(el,clearQ,jumpToEnd){for(var animObj,qObj,key,i=0;i<_animations[LEXICON.l];i++)if((animObj=_animations[i]).el===el){if(animObj.q[LEXICON.l]>0){if((qObj=animObj.q[0]).stop=!0,COMPATIBILITY.cAF()(qObj.frame),animObj.q.splice(0,1),jumpToEnd)for(key in qObj.props)setAnimationValue(el,key,qObj.props[key]);clearQ?animObj.q=[]:startNextAnimationInQ(animObj,!1)}break}}function elementIsVisible(el){return!!(el[LEXICON.oW]||el[LEXICON.oH]||el.getClientRects()[LEXICON.l])}function FakejQuery(selector){if(0===arguments[LEXICON.l])return this;var elms,el,base=new FakejQuery,elements=selector,i=0;if(_type(selector)==TYPES.s)for(elements=[],"<"===selector.charAt(0)?((el=document.createElement("div")).innerHTML=selector,elms=el.children):elms=document.querySelectorAll(selector);i0;)deepest=deepest.childNodes[0];for(i=0;nodes[LEXICON.l]-i;deepest.firstChild===nodes[0]&&i++)deepest.appendChild(nodes[i]);var nextSibling=previousSibling?previousSibling.nextSibling:parent.firstChild;return parent.insertBefore(wrapper,nextSibling),this},wrapInner:function wrapInner(wrapperHTML){return this.each((function(){var el=FakejQuery(this),contents=el.contents();contents[LEXICON.l]?contents.wrapAll(wrapperHTML):el.append(wrapperHTML)}))},wrap:function wrap(wrapperHTML){return this.each((function(){FakejQuery(this).wrapAll(wrapperHTML)}))},css:function css(styles,val){var el,key,cptStyle,getCptStyle=window.getComputedStyle;return _type(styles)==TYPES.s?val===undefined$1?(el=this[0],cptStyle=getCptStyle?getCptStyle(el,null):el.currentStyle[styles],getCptStyle?null!=cptStyle?cptStyle.getPropertyValue(styles):el[LEXICON.s][styles]:cptStyle):this.each((function(){setCSSVal(this,styles,val)})):this.each((function(){for(key in styles)setCSSVal(this,key,styles[key])}))},hasClass:function hasClass(className){for(var elem,classList,i=0,classNamePrepared=_strSpace+className+_strSpace;elem=this[i++];){if((classList=elem.classList)&&classList.contains(className))return!0;if(1===elem.nodeType&&(_strSpace+stripAndCollapse(elem.className+_strEmpty)+_strSpace).indexOf(classNamePrepared)>-1)return!0}return!1},addClass:function addClass(className){var classes,elem,cur,curValue,clazz,finalValue,supportClassList,elmClassList,i=0,v=0;if(className)for(classes=className.match(_rnothtmlwhite)||[];elem=this[i++];)if(elmClassList=elem.classList,supportClassList===undefined$1&&(supportClassList=elmClassList!==undefined$1),supportClassList)for(;clazz=classes[v++];)elmClassList.add(clazz);else if(curValue=elem.className+_strEmpty,cur=1===elem.nodeType&&_strSpace+stripAndCollapse(curValue)+_strSpace){for(;clazz=classes[v++];)cur.indexOf(_strSpace+clazz+_strSpace)<0&&(cur+=clazz+_strSpace);curValue!==(finalValue=stripAndCollapse(cur))&&(elem.className=finalValue)}return this},removeClass:function removeClass(className){var classes,elem,cur,curValue,clazz,finalValue,supportClassList,elmClassList,i=0,v=0;if(className)for(classes=className.match(_rnothtmlwhite)||[];elem=this[i++];)if(elmClassList=elem.classList,supportClassList===undefined$1&&(supportClassList=elmClassList!==undefined$1),supportClassList)for(;clazz=classes[v++];)elmClassList.remove(clazz);else if(curValue=elem.className+_strEmpty,cur=1===elem.nodeType&&_strSpace+stripAndCollapse(curValue)+_strSpace){for(;clazz=classes[v++];)for(;cur.indexOf(_strSpace+clazz+_strSpace)>-1;)cur=cur.replace(_strSpace+clazz+_strSpace,_strSpace);curValue!==(finalValue=stripAndCollapse(cur))&&(elem.className=finalValue)}return this},hide:function hide(){return this.each((function(){this[LEXICON.s].display="none"}))},show:function show(){return this.each((function(){this[LEXICON.s].display="block"}))},attr:function attr(attrName,value){for(var el,i=0;el=this[i++];){if(value===undefined$1)return el.getAttribute(attrName);el.setAttribute(attrName,value)}return this},removeAttr:function removeAttr(attrName){return this.each((function(){this.removeAttribute(attrName)}))},offset:function offset(){var rect=this[0][LEXICON.bCR](),scrollLeft=window.pageXOffset||document.documentElement[_strScrollLeft],scrollTop=window.pageYOffset||document.documentElement[_strScrollTop];return{top:rect.top+scrollTop,left:rect.left+scrollLeft}},position:function position(){var el=this[0];return{top:el.offsetTop,left:el.offsetLeft}},scrollLeft:function scrollLeft(value){for(var el,i=0;el=this[i++];){if(value===undefined$1)return el[_strScrollLeft];el[_strScrollLeft]=value}return this},scrollTop:function scrollTop(value){for(var el,i=0;el=this[i++];){if(value===undefined$1)return el[_strScrollTop];el[_strScrollTop]=value}return this},val:function val(value){var el=this[0];return value?(el.value=value,this):el.value},first:function first(){return this.eq(0)},last:function last(){return this.eq(-1)},eq:function eq(index){return FakejQuery(this[index>=0?index:this[LEXICON.l]+index])},find:function find(selector){var i,children=[];return this.each((function(){var ch=this.querySelectorAll(selector);for(i=0;i-1){if(!(argLen>1))return _targets[index][_instancePropertyString];delete target[_instancePropertyString],_targets.splice(index,1)}}}),PLUGIN=function(){var _plugin,_pluginsGlobals,_pluginsAutoUpdateLoop,type,possibleTemplateTypes,restrictedStringsSplit,restrictedStringsPossibilitiesSplit,classNameAllowedValues,numberAllowedValues,booleanNullAllowedValues,booleanTrueTemplate,booleanFalseTemplate,callbackTemplate,overflowBehaviorAllowedValues,optionsDefaultsAndTemplate,convert,_pluginsExtensions=[],_pluginsOptions=(type=COMPATIBILITY.type,possibleTemplateTypes=[TYPES.b,TYPES.n,TYPES.s,TYPES.a,TYPES.o,TYPES.f,TYPES.z],restrictedStringsSplit=" ",restrictedStringsPossibilitiesSplit=":",classNameAllowedValues=[TYPES.z,TYPES.s],numberAllowedValues=TYPES.n,booleanNullAllowedValues=[TYPES.z,TYPES.b],booleanTrueTemplate=[!0,TYPES.b],booleanFalseTemplate=[!1,TYPES.b],callbackTemplate=[null,[TYPES.z,TYPES.f]],overflowBehaviorAllowedValues="v-h:visible-hidden v-s:visible-scroll s:scroll h:hidden",optionsDefaultsAndTemplate={className:["os-theme-dark",classNameAllowedValues],resize:["none","n:none b:both h:horizontal v:vertical"],sizeAutoCapable:booleanTrueTemplate,clipAlways:booleanTrueTemplate,normalizeRTL:booleanTrueTemplate,paddingAbsolute:booleanFalseTemplate,autoUpdate:[null,booleanNullAllowedValues],autoUpdateInterval:[33,numberAllowedValues],updateOnLoad:[["img"],[TYPES.s,TYPES.a,TYPES.z]],nativeScrollbarsOverlaid:{showNativeScrollbars:booleanFalseTemplate,initialize:booleanTrueTemplate},overflowBehavior:{x:["scroll",overflowBehaviorAllowedValues],y:["scroll",overflowBehaviorAllowedValues]},scrollbars:{visibility:["auto","v:visible h:hidden a:auto"],autoHide:["never","n:never s:scroll l:leave m:move"],autoHideDelay:[800,numberAllowedValues],dragScrolling:booleanTrueTemplate,clickScrolling:booleanFalseTemplate,touchSupport:booleanTrueTemplate,snapHandle:booleanFalseTemplate},textarea:{dynWidth:booleanFalseTemplate,dynHeight:booleanFalseTemplate,inheritedAttrs:[["style","class"],[TYPES.s,TYPES.a,TYPES.z]]},callbacks:{onInitialized:callbackTemplate,onInitializationWithdrawn:callbackTemplate,onDestroyed:callbackTemplate,onScrollStart:callbackTemplate,onScroll:callbackTemplate,onScrollStop:callbackTemplate,onOverflowChanged:callbackTemplate,onOverflowAmountChanged:callbackTemplate,onDirectionChanged:callbackTemplate,onContentSizeChanged:callbackTemplate,onHostSizeChanged:callbackTemplate,onUpdated:callbackTemplate}},{_defaults:(convert=function convert(template){return function recursive(obj){var key,val,valType;for(key in obj)obj[LEXICON.hOP](key)&&(val=obj[key],(valType=type(val))==TYPES.a?obj[key]=val[template?1:0]:valType==TYPES.o&&(obj[key]=recursive(val)));return obj}(FRAMEWORK.extend(!0,{},optionsDefaultsAndTemplate))})(),_template:convert(!0),_validate:function _validate(obj,template,writeErrors,diffObj){var validatedOptions={},validatedOptionsPrepared={},objectCopy=FRAMEWORK.extend(!0,{},obj),inArray=FRAMEWORK.inArray,isEmptyObj=FRAMEWORK.isEmptyObject,checkObjectProps=function checkObjectProps(data,template,diffData,validatedOptions,validatedOptionsPrepared,prevPropName){for(var prop in template)if(template[LEXICON.hOP](prop)&&data[LEXICON.hOP](prop)){var restrictedStringValuesSplit,restrictedStringValuesPossibilitiesSplit,isRestrictedValue,mainPossibility,currType,i,v,j,isValid=!1,isDiff=!1,templateValue=template[prop],templateValueType=type(templateValue),templateIsComplex=templateValueType==TYPES.o,templateTypes=COMPATIBILITY.isA(templateValue)?templateValue:[templateValue],dataDiffValue=diffData[prop],dataValue=data[prop],dataValueType=type(dataValue),propPrefix=prevPropName?prevPropName+".":"",error='The option "'+propPrefix+prop+"\" wasn't set, because",errorPossibleTypes=[],errorRestrictedStrings=[];if(dataDiffValue=dataDiffValue===undefined$1?{}:dataDiffValue,templateIsComplex&&dataValueType==TYPES.o)validatedOptions[prop]={},validatedOptionsPrepared[prop]={},checkObjectProps(dataValue,templateValue,dataDiffValue,validatedOptions[prop],validatedOptionsPrepared[prop],propPrefix+prop),FRAMEWORK.each([data,validatedOptions,validatedOptionsPrepared],(function(index,value){isEmptyObj(value[prop])&&delete value[prop]}));else if(!templateIsComplex){for(i=0;i0?"\r\nValid strings are: [ "+errorRestrictedStrings.join(", ").split(restrictedStringsPossibilitiesSplit).join(", ")+" ].":"")),delete data[prop]}}};return checkObjectProps(objectCopy,template,diffObj||{},validatedOptions,validatedOptionsPrepared),!isEmptyObj(objectCopy)&&writeErrors&&console.warn("The following options are discarded due to invalidity:\r\n"+window.JSON.stringify(objectCopy,null,2)),{_default:validatedOptions,_prepared:validatedOptionsPrepared}}});function initOverlayScrollbarsStatics(){_pluginsGlobals||(_pluginsGlobals=new OverlayScrollbarsGlobals(_pluginsOptions._defaults)),_pluginsAutoUpdateLoop||(_pluginsAutoUpdateLoop=new OverlayScrollbarsAutoUpdateLoop(_pluginsGlobals))}function OverlayScrollbarsGlobals(defaultOptions){var _base=this,strOverflow="overflow",strHidden="hidden",strScroll="scroll",bodyElement=FRAMEWORK("body"),scrollbarDummyElement=FRAMEWORK('
'),scrollbarDummyElement0=scrollbarDummyElement[0],dummyContainerChild=FRAMEWORK(scrollbarDummyElement.children("div").eq(0));bodyElement.append(scrollbarDummyElement),scrollbarDummyElement.hide().show();var nativeScrollbarSize=calcNativeScrollbarSize(scrollbarDummyElement0),nativeScrollbarIsOverlaid={x:0===nativeScrollbarSize.x,y:0===nativeScrollbarSize.y},msie=function(){var result,ua=window.navigator.userAgent,strIndexOf="indexOf",strSubString="substring",msie=ua[strIndexOf]("MSIE "),trident=ua[strIndexOf]("Trident/"),edge=ua[strIndexOf]("Edge/"),rv=ua[strIndexOf]("rv:"),parseIntFunc=parseInt;return msie>0?result=parseIntFunc(ua[strSubString](msie+5,ua[strIndexOf](".",msie)),10):trident>0?result=parseIntFunc(ua[strSubString](rv+3,ua[strIndexOf](".",rv)),10):edge>0&&(result=parseIntFunc(ua[strSubString](edge+5,ua[strIndexOf](".",edge)),10)),result}();function calcNativeScrollbarSize(measureElement){return{x:measureElement[LEXICON.oH]-measureElement[LEXICON.cH],y:measureElement[LEXICON.oW]-measureElement[LEXICON.cW]}}FRAMEWORK.extend(_base,{defaultOptions:defaultOptions,msie:msie,autoUpdateLoop:!1,autoUpdateRecommended:!COMPATIBILITY.mO(),nativeScrollbarSize:nativeScrollbarSize,nativeScrollbarIsOverlaid:nativeScrollbarIsOverlaid,nativeScrollbarStyling:function(){var result=!1;scrollbarDummyElement.addClass("os-viewport-native-scrollbars-invisible");try{result="none"===scrollbarDummyElement.css("scrollbar-width")&&(msie>9||!msie)||"none"===window.getComputedStyle(scrollbarDummyElement0,"::-webkit-scrollbar").getPropertyValue("display")}catch(ex){}return result}(),overlayScrollbarDummySize:{x:30,y:30},cssCalc:VENDORS._cssPropertyValue("width","calc","(1px)")||null,restrictedMeasuring:function(){scrollbarDummyElement.css(strOverflow,strHidden);var scrollSize={w:scrollbarDummyElement0[LEXICON.sW],h:scrollbarDummyElement0[LEXICON.sH]};scrollbarDummyElement.css(strOverflow,"visible");var scrollSize2={w:scrollbarDummyElement0[LEXICON.sW],h:scrollbarDummyElement0[LEXICON.sH]};return scrollSize.w-scrollSize2.w!=0||scrollSize.h-scrollSize2.h!=0}(),rtlScrollBehavior:function(){scrollbarDummyElement.css({"overflow-y":strHidden,"overflow-x":strScroll,direction:"rtl"}).scrollLeft(0);var dummyContainerOffset=scrollbarDummyElement.offset(),dummyContainerChildOffset=dummyContainerChild.offset();scrollbarDummyElement.scrollLeft(-999);var dummyContainerChildOffsetAfterScroll=dummyContainerChild.offset();return{i:dummyContainerOffset.left===dummyContainerChildOffset.left,n:dummyContainerChildOffset.left!==dummyContainerChildOffsetAfterScroll.left}}(),supportTransform:!!VENDORS._cssProperty("transform"),supportTransition:!!VENDORS._cssProperty("transition"),supportPassiveEvents:function(){var supportsPassive=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function get(){supportsPassive=!0}}))}catch(e){}return supportsPassive}(),supportResizeObserver:!!COMPATIBILITY.rO(),supportMutationObserver:!!COMPATIBILITY.mO()}),scrollbarDummyElement.removeAttr(LEXICON.s).remove(),function(){if(!nativeScrollbarIsOverlaid.x||!nativeScrollbarIsOverlaid.y){var abs=MATH.abs,windowWidth=COMPATIBILITY.wW(),windowHeight=COMPATIBILITY.wH(),windowDpr=getWindowDPR(),onResize=function onResize(){if(INSTANCES().length>0){var newW=COMPATIBILITY.wW(),newH=COMPATIBILITY.wH(),deltaW=newW-windowWidth,deltaH=newH-windowHeight;if(0===deltaW&&0===deltaH)return;var newScrollbarSize,deltaWRatio=MATH.round(newW/(windowWidth/100)),deltaHRatio=MATH.round(newH/(windowHeight/100)),absDeltaW=abs(deltaW),absDeltaH=abs(deltaH),absDeltaWRatio=abs(deltaWRatio),absDeltaHRatio=abs(deltaHRatio),newDPR=getWindowDPR(),deltaIsBigger=absDeltaW>2&&absDeltaH>2,difference=!differenceIsBiggerThanOne(absDeltaWRatio,absDeltaHRatio),isZoom=deltaIsBigger&&difference&&newDPR!==windowDpr&&windowDpr>0,oldScrollbarSize=_base.nativeScrollbarSize;isZoom&&(bodyElement.append(scrollbarDummyElement),newScrollbarSize=_base.nativeScrollbarSize=calcNativeScrollbarSize(scrollbarDummyElement[0]),scrollbarDummyElement.remove(),oldScrollbarSize.x===newScrollbarSize.x&&oldScrollbarSize.y===newScrollbarSize.y||FRAMEWORK.each(INSTANCES(),(function(){INSTANCES(this)&&INSTANCES(this).update("zoom")}))),windowWidth=newW,windowHeight=newH,windowDpr=newDPR}};FRAMEWORK(window).on("resize",onResize)}function differenceIsBiggerThanOne(valOne,valTwo){var absValOne=abs(valOne),absValTwo=abs(valTwo);return!(absValOne===absValTwo||absValOne+1===absValTwo||absValOne-1===absValTwo)}function getWindowDPR(){var dDPI=window.screen.deviceXDPI||0,sDPI=window.screen.logicalXDPI||1;return window.devicePixelRatio||dDPI/sDPI}}()}function OverlayScrollbarsAutoUpdateLoop(globals){var _loopID,_base=this,_inArray=FRAMEWORK.inArray,_getNow=COMPATIBILITY.now,_strAutoUpdate="autoUpdate",_strAutoUpdateInterval=_strAutoUpdate+"Interval",_strLength=LEXICON.l,_loopingInstances=[],_loopingInstancesIntervalCache=[],_loopIsActive=!1,_loopIntervalDefault=33,_loopInterval=_loopIntervalDefault,_loopTimeOld=_getNow(),loop=function loop(){if(_loopingInstances[_strLength]>0&&_loopIsActive){_loopID=COMPATIBILITY.rAF()((function(){loop()}));var lowestInterval,instance,instanceOptions,instanceAutoUpdateAllowed,instanceAutoUpdateInterval,now,timeNew=_getNow(),timeDelta=timeNew-_loopTimeOld;if(timeDelta>_loopInterval){_loopTimeOld=timeNew-timeDelta%_loopInterval,lowestInterval=_loopIntervalDefault;for(var i=0;i<_loopingInstances[_strLength];i++)(instance=_loopingInstances[i])!==undefined$1&&(instanceAutoUpdateAllowed=(instanceOptions=instance.options())[_strAutoUpdate],instanceAutoUpdateInterval=MATH.max(1,instanceOptions[_strAutoUpdateInterval]),now=_getNow(),(!0===instanceAutoUpdateAllowed||null===instanceAutoUpdateAllowed)&&now-_loopingInstancesIntervalCache[i]>instanceAutoUpdateInterval&&(instance.update("auto"),_loopingInstancesIntervalCache[i]=new Date(now+=instanceAutoUpdateInterval)),lowestInterval=MATH.max(1,MATH.min(lowestInterval,instanceAutoUpdateInterval)));_loopInterval=lowestInterval}}else _loopInterval=_loopIntervalDefault};_base.add=function(instance){-1===_inArray(instance,_loopingInstances)&&(_loopingInstances.push(instance),_loopingInstancesIntervalCache.push(_getNow()),_loopingInstances[_strLength]>0&&!_loopIsActive&&(_loopIsActive=!0,globals.autoUpdateLoop=_loopIsActive,loop()))},_base.remove=function(instance){var index=_inArray(instance,_loopingInstances);index>-1&&(_loopingInstancesIntervalCache.splice(index,1),_loopingInstances.splice(index,1),0===_loopingInstances[_strLength]&&_loopIsActive&&(_loopIsActive=!1,globals.autoUpdateLoop=_loopIsActive,_loopID!==undefined$1&&(COMPATIBILITY.cAF()(_loopID),_loopID=-1)))}}function OverlayScrollbarsInstance(pluginTargetElement,options,extensions,globals,autoUpdateLoop){var type=COMPATIBILITY.type,inArray=FRAMEWORK.inArray,each=FRAMEWORK.each,_base=new _plugin,_frameworkProto=FRAMEWORK[LEXICON.p];if(isHTMLElement(pluginTargetElement)){if(INSTANCES(pluginTargetElement)){var inst=INSTANCES(pluginTargetElement);return inst.options(options),inst}var _nativeScrollbarIsOverlaid,_overlayScrollbarDummySize,_rtlScrollBehavior,_autoUpdateRecommended,_msieVersion,_nativeScrollbarStyling,_cssCalc,_nativeScrollbarSize,_supportTransition,_supportTransform,_supportPassiveEvents,_supportResizeObserver,_supportMutationObserver,_initialized,_destroyed,_isTextarea,_isBody,_documentMixed,_domExists,_isBorderBox,_sizeAutoObserverAdded,_paddingX,_paddingY,_borderX,_borderY,_marginX,_marginY,_isRTL,_sleeping,_defaultOptions,_currentOptions,_currentPreparedOptions,_lastUpdateTime,_swallowedUpdateTimeout,_windowElement,_documentElement,_htmlElement,_bodyElement,_targetElement,_hostElement,_sizeAutoObserverElement,_sizeObserverElement,_paddingElement,_viewportElement,_contentElement,_contentArrangeElement,_contentGlueElement,_textareaCoverElement,_scrollbarCornerElement,_scrollbarHorizontalElement,_scrollbarHorizontalTrackElement,_scrollbarHorizontalHandleElement,_scrollbarVerticalElement,_scrollbarVerticalTrackElement,_scrollbarVerticalHandleElement,_windowElementNative,_documentElementNative,_targetElementNative,_hostElementNative,_sizeAutoObserverElementNative,_sizeObserverElementNative,_paddingElementNative,_viewportElementNative,_contentElementNative,_hostSizeCache,_contentScrollSizeCache,_arrangeContentSizeCache,_hasOverflowCache,_hideOverflowCache,_widthAutoCache,_heightAutoCache,_cssBoxSizingCache,_cssPaddingCache,_cssBorderCache,_cssMarginCache,_cssDirectionCache,_cssDirectionDetectedCache,_paddingAbsoluteCache,_clipAlwaysCache,_contentGlueSizeCache,_overflowBehaviorCache,_overflowAmountCache,_ignoreOverlayScrollbarHidingCache,_autoUpdateCache,_sizeAutoCapableCache,_contentElementScrollSizeChangeDetectedCache,_hostElementSizeChangeDetectedCache,_scrollbarsVisibilityCache,_scrollbarsAutoHideCache,_scrollbarsClickScrollingCache,_scrollbarsDragScrollingCache,_resizeCache,_normalizeRTLCache,_classNameCache,_oldClassName,_textareaAutoWrappingCache,_textareaInfoCache,_textareaSizeCache,_textareaDynHeightCache,_textareaDynWidthCache,_bodyMinSizeCache,_mutationObserverHost,_mutationObserverContent,_mutationObserverHostCallback,_mutationObserverContentCallback,_mutationObserversConnected,_textareaHasFocus,_scrollbarsAutoHideTimeoutId,_scrollbarsAutoHideMoveTimeoutId,_scrollbarsAutoHideDelay,_scrollbarsAutoHideNever,_scrollbarsAutoHideScroll,_scrollbarsAutoHideMove,_scrollbarsAutoHideLeave,_scrollbarsHandleHovered,_scrollbarsHandlesDefineScrollPos,_resizeNone,_resizeBoth,_resizeHorizontal,_resizeVertical,_contentBorderSize={},_scrollHorizontalInfo={},_scrollVerticalInfo={},_viewportSize={},_nativeScrollbarMinSize={},_strMinusHidden="-hidden",_strMarginMinus="margin-",_strPaddingMinus="padding-",_strBorderMinus="border-",_strTop="top",_strRight="right",_strBottom="bottom",_strLeft="left",_strMinMinus="min-",_strMaxMinus="max-",_strWidth="width",_strHeight="height",_strFloat="float",_strEmpty="",_strAuto="auto",_strSync="sync",_strScroll="scroll",_strHundredPercent="100%",_strX="x",_strY="y",_strDot=".",_strSpace=" ",_strScrollbar="scrollbar",_strMinusHorizontal="-horizontal",_strMinusVertical="-vertical",_strScrollLeft=_strScroll+"Left",_strScrollTop=_strScroll+"Top",_strMouseTouchDownEvent="mousedown touchstart",_strMouseTouchUpEvent="mouseup touchend touchcancel",_strMouseTouchMoveEvent="mousemove touchmove",_strMouseEnter="mouseenter",_strMouseLeave="mouseleave",_strKeyDownEvent="keydown",_strKeyUpEvent="keyup",_strSelectStartEvent="selectstart",_strTransitionEndEvent="transitionend webkitTransitionEnd oTransitionEnd",_strResizeObserverProperty="__overlayScrollbarsRO__",_cassNamesPrefix="os-",_classNameHTMLElement=_cassNamesPrefix+"html",_classNameHostElement=_cassNamesPrefix+"host",_classNameHostElementForeign=_classNameHostElement+"-foreign",_classNameHostTextareaElement=_classNameHostElement+"-textarea",_classNameHostScrollbarHorizontalHidden=_classNameHostElement+"-"+_strScrollbar+_strMinusHorizontal+_strMinusHidden,_classNameHostScrollbarVerticalHidden=_classNameHostElement+"-"+_strScrollbar+_strMinusVertical+_strMinusHidden,_classNameHostTransition=_classNameHostElement+"-transition",_classNameHostRTL=_classNameHostElement+"-rtl",_classNameHostResizeDisabled=_classNameHostElement+"-resize-disabled",_classNameHostScrolling=_classNameHostElement+"-scrolling",_classNameHostOverflow=_classNameHostElement+"-overflow",_classNameHostOverflowX=(_classNameHostOverflow=_classNameHostElement+"-overflow")+"-x",_classNameHostOverflowY=_classNameHostOverflow+"-y",_classNameTextareaElement=_cassNamesPrefix+"textarea",_classNameTextareaCoverElement=_classNameTextareaElement+"-cover",_classNamePaddingElement=_cassNamesPrefix+"padding",_classNameViewportElement=_cassNamesPrefix+"viewport",_classNameViewportNativeScrollbarsInvisible=_classNameViewportElement+"-native-scrollbars-invisible",_classNameViewportNativeScrollbarsOverlaid=_classNameViewportElement+"-native-scrollbars-overlaid",_classNameContentElement=_cassNamesPrefix+"content",_classNameContentArrangeElement=_cassNamesPrefix+"content-arrange",_classNameContentGlueElement=_cassNamesPrefix+"content-glue",_classNameSizeAutoObserverElement=_cassNamesPrefix+"size-auto-observer",_classNameResizeObserverElement=_cassNamesPrefix+"resize-observer",_classNameResizeObserverItemElement=_cassNamesPrefix+"resize-observer-item",_classNameResizeObserverItemFinalElement=_classNameResizeObserverItemElement+"-final",_classNameTextInherit=_cassNamesPrefix+"text-inherit",_classNameScrollbar=_cassNamesPrefix+_strScrollbar,_classNameScrollbarTrack=_classNameScrollbar+"-track",_classNameScrollbarTrackOff=_classNameScrollbarTrack+"-off",_classNameScrollbarHandle=_classNameScrollbar+"-handle",_classNameScrollbarHandleOff=_classNameScrollbarHandle+"-off",_classNameScrollbarUnusable=_classNameScrollbar+"-unusable",_classNameScrollbarAutoHidden=_classNameScrollbar+"-"+_strAuto+_strMinusHidden,_classNameScrollbarCorner=_classNameScrollbar+"-corner",_classNameScrollbarCornerResize=_classNameScrollbarCorner+"-resize",_classNameScrollbarCornerResizeB=_classNameScrollbarCornerResize+"-both",_classNameScrollbarCornerResizeH=_classNameScrollbarCornerResize+_strMinusHorizontal,_classNameScrollbarCornerResizeV=_classNameScrollbarCornerResize+_strMinusVertical,_classNameScrollbarHorizontal=_classNameScrollbar+_strMinusHorizontal,_classNameScrollbarVertical=_classNameScrollbar+_strMinusVertical,_classNameDragging=_cassNamesPrefix+"dragging",_classNameThemeNone=_cassNamesPrefix+"theme-none",_classNamesDynamicDestroy=[_classNameViewportNativeScrollbarsInvisible,_classNameViewportNativeScrollbarsOverlaid,_classNameScrollbarTrackOff,_classNameScrollbarHandleOff,_classNameScrollbarUnusable,_classNameScrollbarAutoHidden,_classNameScrollbarCornerResize,_classNameScrollbarCornerResizeB,_classNameScrollbarCornerResizeH,_classNameScrollbarCornerResizeV,_classNameDragging].join(_strSpace),_callbacksInitQeueue=[],_viewportAttrsFromTarget=[LEXICON.ti],_extensions={},_extensionsPrivateMethods="added removed on contract",_swallowedUpdateHints={},_swallowUpdateLag=42,_updateOnLoadEventName="load",_updateOnLoadElms=[],_updateAutoCache={},_mutationObserverAttrsTextarea=["wrap","cols","rows"],_mutationObserverAttrsHost=[LEXICON.i,LEXICON.c,LEXICON.s,"open"].concat(_viewportAttrsFromTarget),_destroyEvents=[];return _base.sleep=function(){_sleeping=!0},_base.update=function(force){var attrsChanged,contentSizeC,doUpdateAuto,mutHost,mutContent;if(!_destroyed)return type(force)==TYPES.s?force===_strAuto?(attrsChanged=meaningfulAttrsChanged(),contentSizeC=updateAutoContentSizeChanged(),(doUpdateAuto=attrsChanged||contentSizeC)&&update({_contentSizeChanged:contentSizeC,_changedOptions:_initialized?undefined$1:_currentPreparedOptions})):force===_strSync?_mutationObserversConnected?(mutHost=_mutationObserverHostCallback(_mutationObserverHost.takeRecords()),mutContent=_mutationObserverContentCallback(_mutationObserverContent.takeRecords())):mutHost=_base.update(_strAuto):"zoom"===force&&update({_hostSizeChanged:!0,_contentSizeChanged:!0}):(force=_sleeping||force,_sleeping=!1,_base.update(_strSync)&&!force||update({_force:force})),updateElementsOnLoad(),doUpdateAuto||mutHost||mutContent},_base.options=function(newOptions,value){var changedOps,option={};if(FRAMEWORK.isEmptyObject(newOptions)||!FRAMEWORK.isPlainObject(newOptions)){if(type(newOptions)!=TYPES.s)return _currentOptions;if(!(arguments.length>1))return getObjectPropVal(_currentOptions,newOptions);setObjectPropVal(option,newOptions,value),changedOps=setOptions(option)}else changedOps=setOptions(newOptions);FRAMEWORK.isEmptyObject(changedOps)||update({_changedOptions:changedOps})},_base.destroy=function(){if(!_destroyed){for(var extName in autoUpdateLoop.remove(_base),disconnectMutationObservers(),setupResizeObserver(_sizeObserverElement),setupResizeObserver(_sizeAutoObserverElement),_extensions)_base.removeExt(extName);for(;_destroyEvents[LEXICON.l]>0;)_destroyEvents.pop()();setupHostMouseTouchEvents(!0),_contentGlueElement&&remove(_contentGlueElement),_contentArrangeElement&&remove(_contentArrangeElement),_sizeAutoObserverAdded&&remove(_sizeAutoObserverElement),setupScrollbarsDOM(!0),setupScrollbarCornerDOM(!0),setupStructureDOM(!0);for(var i=0;i<_updateOnLoadElms[LEXICON.l];i++)FRAMEWORK(_updateOnLoadElms[i]).off(_updateOnLoadEventName,updateOnLoadCallback);_updateOnLoadElms=undefined$1,_destroyed=!0,_sleeping=!0,INSTANCES(pluginTargetElement,0),dispatchCallback("onDestroyed")}},_base.scroll=function(coordinates,duration,easing,complete){if(0===arguments.length||coordinates===undefined$1){var infoX=_scrollHorizontalInfo,infoY=_scrollVerticalInfo,normalizeInvert=_normalizeRTLCache&&_isRTL&&_rtlScrollBehavior.i,normalizeNegate=_normalizeRTLCache&&_isRTL&&_rtlScrollBehavior.n,scrollX=infoX._currentScroll,scrollXRatio=infoX._currentScrollRatio,maxScrollX=infoX._maxScroll;return scrollXRatio=normalizeInvert?1-scrollXRatio:scrollXRatio,scrollX=normalizeInvert?maxScrollX-scrollX:scrollX,maxScrollX*=normalizeNegate?-1:1,{position:{x:scrollX*=normalizeNegate?-1:1,y:infoY._currentScroll},ratio:{x:scrollXRatio,y:infoY._currentScrollRatio},max:{x:maxScrollX,y:infoY._maxScroll},handleOffset:{x:infoX._handleOffset,y:infoY._handleOffset},handleLength:{x:infoX._handleLength,y:infoY._handleLength},handleLengthRatio:{x:infoX._handleLengthRatio,y:infoY._handleLengthRatio},trackLength:{x:infoX._trackLength,y:infoY._trackLength},snappedHandleOffset:{x:infoX._snappedHandleOffset,y:infoY._snappedHandleOffset},isRTL:_isRTL,isRTLNormalized:_normalizeRTLCache}}_base.update(_strSync);var i,doScrollLeft,doScrollTop,animationOptions,settingsAxis,settingsScroll,settingsBlock,settingsMargin,finalElement,normalizeRTL=_normalizeRTLCache,coordinatesXAxisProps=[_strX,_strLeft,"l"],coordinatesYAxisProps=[_strY,_strTop,"t"],coordinatesOperators=["+=","-=","*=","/="],durationIsObject=type(duration)==TYPES.o,completeCallback=durationIsObject?duration.complete:complete,finalScroll={},specialEasing={},strEnd="end",strBegin="begin",strCenter="center",strNearest="nearest",strAlways="always",strNever="never",strIfNeeded="ifneeded",strLength=LEXICON.l,elementObjSettingsAxisValues=[_strX,_strY,"xy","yx"],elementObjSettingsBlockValues=[strBegin,strEnd,strCenter,strNearest],elementObjSettingsScrollValues=[strAlways,strNever,strIfNeeded],coordinatesIsElementObj=coordinates[LEXICON.hOP]("el"),possibleElement=coordinatesIsElementObj?coordinates.el:coordinates,possibleElementIsJQuery=!!(possibleElement instanceof FRAMEWORK||JQUERY)&&possibleElement instanceof JQUERY,possibleElementIsHTMLElement=!possibleElementIsJQuery&&isHTMLElement(possibleElement),updateScrollbarInfos=function updateScrollbarInfos(){doScrollLeft&&refreshScrollbarHandleOffset(!0),doScrollTop&&refreshScrollbarHandleOffset(!1)},proxyCompleteCallback=type(completeCallback)!=TYPES.f?undefined$1:function(){updateScrollbarInfos(),completeCallback()};function checkSettingsStringValue(currValue,allowedValues){for(i=0;i2&&(possibleOperator=rawScroll.substr(0,2),inArray(possibleOperator,coordinatesOperators)>-1&&(operator=possibleOperator)),rawScroll=(rawScroll=operator?rawScroll.substr(2):rawScroll)[strReplace](/min/g,0)[strReplace](//g,(normalizeShortcuts?"-":_strEmpty)+_strHundredPercent)[strReplace](/px/g,_strEmpty)[strReplace](/%/g,mult+maxScroll*(isRTLisX&&_rtlScrollBehavior.n?-1:1)/100)[strReplace](/vw/g,mult+_viewportSize.w)[strReplace](/vh/g,mult+_viewportSize.h),amount=parseToZeroOrNumber(isNaN(rawScroll)?parseToZeroOrNumber(evalFunc(rawScroll),!0).toFixed():rawScroll)):amount=rawScroll,amount!==undefined$1&&!isNaN(amount)&&type(amount)==TYPES.n){var normalizeIsRTLisX=normalizeRTL&&isRTLisX,operatorCurrScroll=currScroll*(normalizeIsRTLisX&&_rtlScrollBehavior.n?-1:1),invert=normalizeIsRTLisX&&_rtlScrollBehavior.i,negate=normalizeIsRTLisX&&_rtlScrollBehavior.n;switch(operatorCurrScroll=invert?maxScroll-operatorCurrScroll:operatorCurrScroll,operator){case"+=":finalValue=operatorCurrScroll+amount;break;case"-=":finalValue=operatorCurrScroll-amount;break;case"*=":finalValue=operatorCurrScroll*amount;break;case"/=":finalValue=operatorCurrScroll/amount;break;default:finalValue=amount}finalValue=invert?maxScroll-finalValue:finalValue,finalValue*=negate?-1:1,finalValue=isRTLisX&&_rtlScrollBehavior.n?MATH.min(0,MATH.max(maxScroll,finalValue)):MATH.max(0,MATH.min(maxScroll,finalValue))}return finalValue===currScroll?undefined$1:finalValue}function getPerAxisValue(value,valueInternalType,defaultValue,allowedValues){var valueArrLength,valueArrItem,resultDefault=[defaultValue,defaultValue],valueType=type(value);if(valueType==valueInternalType)value=[value,value];else if(valueType==TYPES.a){if((valueArrLength=value[strLength])>2||valueArrLength<1)value=resultDefault;else for(1===valueArrLength&&(value[1]=defaultValue),i=0;i0){margin=marginType==TYPES.n||marginType==TYPES.b?generateMargin([margin,margin,margin,margin]):marginType==TYPES.a?2===(marginLength=margin[strLength])?generateMargin([margin[0],margin[1],margin[0],margin[1]]):marginLength>=4?generateMargin(margin):marginDefault:marginType==TYPES.o?generateMargin([margin[_strTop],margin[_strRight],margin[_strBottom],margin[_strLeft]]):marginDefault,settingsAxis=checkSettingsStringValue(axis,elementObjSettingsAxisValues)?axis:"xy",settingsScroll=getPerAxisValue(scroll,TYPES.s,strAlways,elementObjSettingsScrollValues),settingsBlock=getPerAxisValue(block,TYPES.s,strBegin,elementObjSettingsBlockValues),settingsMargin=margin;var viewportScroll={l:_scrollHorizontalInfo._currentScroll,t:_scrollVerticalInfo._currentScroll},viewportOffset=_paddingElement.offset(),elementOffset=finalElement.offset(),doNotScroll={x:settingsScroll.x==strNever||settingsAxis==_strY,y:settingsScroll.y==strNever||settingsAxis==_strX};elementOffset[_strTop]-=settingsMargin[0],elementOffset[_strLeft]-=settingsMargin[3];var elementScrollCoordinates={x:MATH.round(elementOffset[_strLeft]-viewportOffset[_strLeft]+viewportScroll.l),y:MATH.round(elementOffset[_strTop]-viewportOffset[_strTop]+viewportScroll.t)};if(_isRTL&&(_rtlScrollBehavior.n||_rtlScrollBehavior.i||(elementScrollCoordinates.x=MATH.round(viewportOffset[_strLeft]-elementOffset[_strLeft]+viewportScroll.l)),_rtlScrollBehavior.n&&normalizeRTL&&(elementScrollCoordinates.x*=-1),_rtlScrollBehavior.i&&normalizeRTL&&(elementScrollCoordinates.x=MATH.round(viewportOffset[_strLeft]-elementOffset[_strLeft]+(_scrollHorizontalInfo._maxScroll-viewportScroll.l)))),settingsBlock.x!=strBegin||settingsBlock.y!=strBegin||settingsScroll.x==strIfNeeded||settingsScroll.y==strIfNeeded||_isRTL){var measuringElm=finalElement[0],rawElementSize=_supportTransform?measuringElm[LEXICON.bCR]():{width:measuringElm[LEXICON.oW],height:measuringElm[LEXICON.oH]},elementSize={w:rawElementSize[_strWidth]+settingsMargin[3]+settingsMargin[1],h:rawElementSize[_strHeight]+settingsMargin[0]+settingsMargin[2]},finalizeBlock=function finalizeBlock(isX){var vars=getScrollbarVars(isX),wh=vars._w_h,lt=vars._left_top,xy=vars._x_y,blockIsEnd=settingsBlock[xy]==(isX&&_isRTL?strBegin:strEnd),blockIsCenter=settingsBlock[xy]==strCenter,blockIsNearest=settingsBlock[xy]==strNearest,scrollNever=settingsScroll[xy]==strNever,scrollIfNeeded=settingsScroll[xy]==strIfNeeded,vpSize=_viewportSize[wh],vpOffset=viewportOffset[lt],elSize=elementSize[wh],elOffset=elementOffset[lt],divide=blockIsCenter?2:1,elementCenterOffset=elOffset+elSize/2,viewportCenterOffset=vpOffset+vpSize/2,isInView=elSize<=vpSize&&elOffset>=vpOffset&&elOffset+elSize<=vpOffset+vpSize;scrollNever?doNotScroll[xy]=!0:doNotScroll[xy]||((blockIsNearest||scrollIfNeeded)&&(doNotScroll[xy]=!!scrollIfNeeded&&isInView,blockIsEnd=elSizeviewportCenterOffset:elementCenterOffset0||durationIsObject)?durationIsObject?(duration.complete=proxyCompleteCallback,_viewportElement.animate(finalScroll,duration)):(animationOptions={duration:duration,complete:proxyCompleteCallback},COMPATIBILITY.isA(easing)||FRAMEWORK.isPlainObject(easing)?(specialEasing[_strScrollLeft]=easing[0]||easing.x,specialEasing[_strScrollTop]=easing[1]||easing.y,animationOptions.specialEasing=specialEasing):animationOptions.easing=easing,_viewportElement.animate(finalScroll,animationOptions)):(doScrollLeft&&_viewportElement[_strScrollLeft](finalScroll[_strScrollLeft]),doScrollTop&&_viewportElement[_strScrollTop](finalScroll[_strScrollTop]),updateScrollbarInfos())},_base.scrollStop=function(param1,param2,param3){return _viewportElement.stop(param1,param2,param3),_base},_base.getElements=function(elementName){var obj={target:_targetElementNative,host:_hostElementNative,padding:_paddingElementNative,viewport:_viewportElementNative,content:_contentElementNative,scrollbarHorizontal:{scrollbar:_scrollbarHorizontalElement[0],track:_scrollbarHorizontalTrackElement[0],handle:_scrollbarHorizontalHandleElement[0]},scrollbarVertical:{scrollbar:_scrollbarVerticalElement[0],track:_scrollbarVerticalTrackElement[0],handle:_scrollbarVerticalHandleElement[0]},scrollbarCorner:_scrollbarCornerElement[0]};return type(elementName)==TYPES.s?getObjectPropVal(obj,elementName):obj},_base.getState=function(stateProperty){function prepare(obj){if(!FRAMEWORK.isPlainObject(obj))return obj;var extended=extendDeep({},obj),changePropertyName=function changePropertyName(from,to){extended[LEXICON.hOP](from)&&(extended[to]=extended[from],delete extended[from])};return changePropertyName("w",_strWidth),changePropertyName("h",_strHeight),delete extended.c,extended}var obj={destroyed:!!prepare(_destroyed),sleeping:!!prepare(_sleeping),autoUpdate:prepare(!_mutationObserversConnected),widthAuto:prepare(_widthAutoCache),heightAuto:prepare(_heightAutoCache),padding:prepare(_cssPaddingCache),overflowAmount:prepare(_overflowAmountCache),hideOverflow:prepare(_hideOverflowCache),hasOverflow:prepare(_hasOverflowCache),contentScrollSize:prepare(_contentScrollSizeCache),viewportSize:prepare(_viewportSize),hostSize:prepare(_hostSizeCache),documentMixed:prepare(_documentMixed)};return type(stateProperty)==TYPES.s?getObjectPropVal(obj,stateProperty):obj},_base.ext=function(extName){var result,privateMethods=_extensionsPrivateMethods.split(" "),i=0;if(type(extName)==TYPES.s){if(_extensions[LEXICON.hOP](extName))for(result=extendDeep({},_extensions[extName]);i9||!_autoUpdateRecommended){targetElement.prepend(generateDiv(_classNameResizeObserverElement,generateDiv({c:_classNameResizeObserverItemElement,dir:"ltr"},generateDiv(_classNameResizeObserverItemElement,generateDiv(_classNameResizeObserverItemFinalElement))+generateDiv(_classNameResizeObserverItemElement,generateDiv({c:_classNameResizeObserverItemFinalElement,style:"width: 200%; height: 200%"})))));var isDirty,rAFId,currWidth,currHeight,observerElement=targetElement[0][strChildNodes][0][strChildNodes][0],shrinkElement=FRAMEWORK(observerElement[strChildNodes][1]),expandElement=FRAMEWORK(observerElement[strChildNodes][0]),expandElementChild=FRAMEWORK(expandElement[0][strChildNodes][0]),widthCache=observerElement[LEXICON.oW],heightCache=observerElement[LEXICON.oH],factor=2,nativeScrollbarSize=globals.nativeScrollbarSize,reset=function reset(){expandElement[_strScrollLeft](constScroll)[_strScrollTop](constScroll),shrinkElement[_strScrollLeft](constScroll)[_strScrollTop](constScroll)},onResized=function onResized(){rAFId=0,isDirty&&(widthCache=currWidth,heightCache=currHeight,callback())},onScroll=function onScroll(event){return currWidth=observerElement[LEXICON.oW],currHeight=observerElement[LEXICON.oH],isDirty=currWidth!=widthCache||currHeight!=heightCache,event&&isDirty&&!rAFId?(COMPATIBILITY.cAF()(rAFId),rAFId=COMPATIBILITY.rAF()(onResized)):event||onResized(),reset(),event&&(COMPATIBILITY.prvD(event),COMPATIBILITY.stpP(event)),!1},expandChildCSS={},observerElementCSS={};setTopRightBottomLeft(observerElementCSS,_strEmpty,[-(nativeScrollbarSize.y+1)*factor,nativeScrollbarSize.x*-factor,nativeScrollbarSize.y*-factor,-(nativeScrollbarSize.x+1)*factor]),FRAMEWORK(observerElement).css(observerElementCSS),expandElement.on(_strScroll,onScroll),shrinkElement.on(_strScroll,onScroll),targetElement.on(strAnimationStartEvent,(function(){onScroll(!1)})),expandChildCSS[_strWidth]=constScroll,expandChildCSS[_strHeight]=constScroll,expandElementChild.css(expandChildCSS),reset()}else{var attachEvent=_documentElementNative.attachEvent,isIE=_msieVersion!==undefined$1;if(attachEvent)targetElement.prepend(generateDiv(_classNameResizeObserverElement)),findFirst(targetElement,_strDot+_classNameResizeObserverElement)[0].attachEvent("onresize",callback);else{var obj=_documentElementNative.createElement(TYPES.o);obj.setAttribute(LEXICON.ti,"-1"),obj.setAttribute(LEXICON.c,_classNameResizeObserverElement),obj.onload=function(){var wnd=this.contentDocument.defaultView;wnd.addEventListener("resize",callback),wnd.document.documentElement.style.display="none"},obj.type="text/html",isIE&&targetElement.prepend(obj),obj.data="about:blank",isIE||targetElement.prepend(obj),targetElement.on(strAnimationStartEvent,callback)}}if(targetElement[0]===_sizeObserverElementNative){var directionChanged=function directionChanged(){var dir=_hostElement.css("direction"),css={},scrollLeftValue=0,result=!1;return dir!==_cssDirectionDetectedCache&&("ltr"===dir?(css[_strLeft]=0,css[_strRight]=_strAuto,scrollLeftValue=constScroll):(css[_strLeft]=_strAuto,css[_strRight]=0,scrollLeftValue=_rtlScrollBehavior.n?-constScroll:_rtlScrollBehavior.i?0:constScroll),_sizeObserverElement.children().eq(0).css(css),_sizeObserverElement[_strScrollLeft](scrollLeftValue)[_strScrollTop](constScroll),_cssDirectionDetectedCache=dir,result=!0),result};directionChanged(),addDestroyEventListener(targetElement,_strScroll,(function(event){return directionChanged()&&update(),COMPATIBILITY.prvD(event),COMPATIBILITY.stpP(event),!1}))}}else if(_supportResizeObserver){var element,resizeObserverObj=(element=targetElement.contents()[0])[_strResizeObserverProperty];resizeObserverObj&&(resizeObserverObj.disconnect(),delete element[_strResizeObserverProperty])}else remove(targetElement.children(_strDot+_classNameResizeObserverElement).eq(0))}}function createMutationObservers(){if(_supportMutationObserver){var mutationTarget,mutationAttrName,mutationIsClass,oldMutationVal,newClassVal,hostClassNameRegex,contentTimeout,now,sizeAuto,action,mutationObserverContentLag=11,mutationObserver=COMPATIBILITY.mO(),contentLastUpdate=COMPATIBILITY.now();_mutationObserverContentCallback=function _mutationObserverContentCallback(mutations){var doUpdate=!1;return _initialized&&!_sleeping&&(each(mutations,(function(){return!(doUpdate=isUnknownMutation(this))})),doUpdate&&(now=COMPATIBILITY.now(),sizeAuto=_heightAutoCache||_widthAutoCache,action=function action(){_destroyed||(contentLastUpdate=now,_isTextarea&&textareaUpdate(),sizeAuto?update():_base.update(_strAuto))},clearTimeout(contentTimeout),mutationObserverContentLag<=0||now-contentLastUpdate>mutationObserverContentLag||!sizeAuto?action():contentTimeout=setTimeout(action,mutationObserverContentLag))),doUpdate},_mutationObserverHost=new mutationObserver(_mutationObserverHostCallback=function _mutationObserverHostCallback(mutations){var mutation,doUpdate=!1,doUpdateForce=!1,mutatedAttrs=[];return _initialized&&!_sleeping&&(each(mutations,(function(){mutationTarget=(mutation=this).target,mutationAttrName=mutation.attributeName,mutationIsClass=mutationAttrName===LEXICON.c,oldMutationVal=mutation.oldValue,newClassVal=mutationTarget.className,_domExists&&mutationIsClass&&!doUpdateForce&&oldMutationVal.indexOf(_classNameHostElementForeign)>-1&&newClassVal.indexOf(_classNameHostElementForeign)<0&&(hostClassNameRegex=createHostClassNameRegExp(!0),_hostElementNative.className=newClassVal.split(_strSpace).concat(oldMutationVal.split(_strSpace).filter((function(name){return name.match(hostClassNameRegex)}))).join(_strSpace),doUpdate=doUpdateForce=!0),doUpdate||(doUpdate=mutationIsClass?hostClassNamesChanged(oldMutationVal,newClassVal):mutationAttrName!==LEXICON.s||oldMutationVal!==mutationTarget[LEXICON.s].cssText),mutatedAttrs.push(mutationAttrName)})),updateViewportAttrsFromTarget(mutatedAttrs),doUpdate&&_base.update(doUpdateForce||_strAuto)),doUpdate}),_mutationObserverContent=new mutationObserver(_mutationObserverContentCallback)}}function connectMutationObservers(){_supportMutationObserver&&!_mutationObserversConnected&&(_mutationObserverHost.observe(_hostElementNative,{attributes:!0,attributeOldValue:!0,attributeFilter:_mutationObserverAttrsHost}),_mutationObserverContent.observe(_isTextarea?_targetElementNative:_contentElementNative,{attributes:!0,attributeOldValue:!0,subtree:!_isTextarea,childList:!_isTextarea,characterData:!_isTextarea,attributeFilter:_isTextarea?_mutationObserverAttrsTextarea:_mutationObserverAttrsHost}),_mutationObserversConnected=!0)}function disconnectMutationObservers(){_supportMutationObserver&&_mutationObserversConnected&&(_mutationObserverHost.disconnect(),_mutationObserverContent.disconnect(),_mutationObserversConnected=!1)}function hostOnResized(){if(!_sleeping){var changed,hostSize={w:_sizeObserverElementNative[LEXICON.sW],h:_sizeObserverElementNative[LEXICON.sH]};changed=checkCache(hostSize,_hostElementSizeChangeDetectedCache),_hostElementSizeChangeDetectedCache=hostSize,changed&&update({_hostSizeChanged:!0})}}function hostOnMouseEnter(){_scrollbarsAutoHideLeave&&refreshScrollbarsAutoHide(!0)}function hostOnMouseLeave(){_scrollbarsAutoHideLeave&&!_bodyElement.hasClass(_classNameDragging)&&refreshScrollbarsAutoHide(!1)}function hostOnMouseMove(){_scrollbarsAutoHideMove&&(refreshScrollbarsAutoHide(!0),clearTimeout(_scrollbarsAutoHideMoveTimeoutId),_scrollbarsAutoHideMoveTimeoutId=setTimeout((function(){_scrollbarsAutoHideMove&&!_destroyed&&refreshScrollbarsAutoHide(!1)}),100))}function documentOnSelectStart(event){return COMPATIBILITY.prvD(event),!1}function updateOnLoadCallback(event){var elm=FRAMEWORK(event.target);eachUpdateOnLoad((function(i,updateOnLoadSelector){elm.is(updateOnLoadSelector)&&update({_contentSizeChanged:!0})}))}function setupHostMouseTouchEvents(destroy){destroy||setupHostMouseTouchEvents(!0),setupResponsiveEventListener(_hostElement,_strMouseTouchMoveEvent.split(_strSpace)[0],hostOnMouseMove,!_scrollbarsAutoHideMove||destroy,!0),setupResponsiveEventListener(_hostElement,[_strMouseEnter,_strMouseLeave],[hostOnMouseEnter,hostOnMouseLeave],!_scrollbarsAutoHideLeave||destroy,!0),_initialized||destroy||_hostElement.one("mouseover",hostOnMouseEnter)}function bodyMinSizeChanged(){var bodyMinSize={};return _isBody&&_contentArrangeElement&&(bodyMinSize.w=parseToZeroOrNumber(_contentArrangeElement.css(_strMinMinus+_strWidth)),bodyMinSize.h=parseToZeroOrNumber(_contentArrangeElement.css(_strMinMinus+_strHeight)),bodyMinSize.c=checkCache(bodyMinSize,_bodyMinSizeCache),bodyMinSize.f=!0),_bodyMinSizeCache=bodyMinSize,!!bodyMinSize.c}function hostClassNamesChanged(oldClassNames,newClassNames){var i,regex,currClasses=_typeof(newClassNames)==TYPES.s?newClassNames.split(_strSpace):[],diff=getArrayDifferences(_typeof(oldClassNames)==TYPES.s?oldClassNames.split(_strSpace):[],currClasses),idx=inArray(_classNameThemeNone,diff);if(idx>-1&&diff.splice(idx,1),diff[LEXICON.l]>0)for(regex=createHostClassNameRegExp(!0,!0),i=0;i0}}function isSizeAffectingCSSProperty(propertyName){if(!_initialized)return!0;var flexGrow="flex-grow",flexShrink="flex-shrink",flexBasis="flex-basis",affectingPropsX=[_strWidth,_strMinMinus+_strWidth,_strMaxMinus+_strWidth,_strMarginMinus+_strLeft,_strMarginMinus+_strRight,_strLeft,_strRight,"font-weight","word-spacing",flexGrow,flexShrink,flexBasis],affectingPropsXContentBox=[_strPaddingMinus+_strLeft,_strPaddingMinus+_strRight,_strBorderMinus+_strLeft+_strWidth,_strBorderMinus+_strRight+_strWidth],affectingPropsY=[_strHeight,_strMinMinus+_strHeight,_strMaxMinus+_strHeight,_strMarginMinus+_strTop,_strMarginMinus+_strBottom,_strTop,_strBottom,"line-height",flexGrow,flexShrink,flexBasis],affectingPropsYContentBox=[_strPaddingMinus+_strTop,_strPaddingMinus+_strBottom,_strBorderMinus+_strTop+_strWidth,_strBorderMinus+_strBottom+_strWidth],_strS="s",_strVS="v-s",checkX=_overflowBehaviorCache.x===_strS||_overflowBehaviorCache.x===_strVS,sizeIsAffected=!1,checkPropertyName=function checkPropertyName(arr,name){for(var i=0;i-1){var targetAttr=_targetElement.attr(attr);type(targetAttr)==TYPES.s?_viewportElement.attr(attr,targetAttr):_viewportElement.removeAttr(attr)}}))}function textareaUpdate(){if(!_sleeping){var origWidth,width,origHeight,height,wrapAttrOff=!_textareaAutoWrappingCache,minWidth=_viewportSize.w,minHeight=_viewportSize.h,css={},doMeasure=_widthAutoCache||wrapAttrOff;return css[_strMinMinus+_strWidth]=_strEmpty,css[_strMinMinus+_strHeight]=_strEmpty,css[_strWidth]=_strAuto,_targetElement.css(css),origWidth=_targetElementNative[LEXICON.oW],width=doMeasure?MATH.max(origWidth,_targetElementNative[LEXICON.sW]-1):1,css[_strWidth]=_widthAutoCache?_strAuto:_strHundredPercent,css[_strMinMinus+_strWidth]=_strHundredPercent,css[_strHeight]=_strAuto,_targetElement.css(css),origHeight=_targetElementNative[LEXICON.oH],height=MATH.max(origHeight,_targetElementNative[LEXICON.sH]-1),css[_strWidth]=width,css[_strHeight]=height,_textareaCoverElement.css(css),css[_strMinMinus+_strWidth]=minWidth,css[_strMinMinus+_strHeight]=minHeight,_targetElement.css(css),{_originalWidth:origWidth,_originalHeight:origHeight,_dynamicWidth:width,_dynamicHeight:height}}}function update(updateHints){clearTimeout(_swallowedUpdateTimeout),updateHints=updateHints||{},_swallowedUpdateHints._hostSizeChanged|=updateHints._hostSizeChanged,_swallowedUpdateHints._contentSizeChanged|=updateHints._contentSizeChanged,_swallowedUpdateHints._force|=updateHints._force;var displayIsHidden,now=COMPATIBILITY.now(),hostSizeChanged=!!_swallowedUpdateHints._hostSizeChanged,contentSizeChanged=!!_swallowedUpdateHints._contentSizeChanged,force=!!_swallowedUpdateHints._force,changedOptions=updateHints._changedOptions,swallow=_initialized&&!_destroyed&&!force&&!changedOptions&&now-_lastUpdateTime<_swallowUpdateLag&&!_heightAutoCache&&!_widthAutoCache;if(swallow&&(_swallowedUpdateTimeout=setTimeout(update,_swallowUpdateLag)),!(_destroyed||swallow||_sleeping&&!changedOptions||_initialized&&!force&&(displayIsHidden=_hostElement.is(":hidden"))||"inline"===_hostElement.css("display"))){_lastUpdateTime=now,_swallowedUpdateHints={},!_nativeScrollbarStyling||_nativeScrollbarIsOverlaid.x&&_nativeScrollbarIsOverlaid.y?_nativeScrollbarSize=extendDeep({},globals.nativeScrollbarSize):(_nativeScrollbarSize.x=0,_nativeScrollbarSize.y=0),_nativeScrollbarMinSize={x:3*(_nativeScrollbarSize.x+(_nativeScrollbarIsOverlaid.x?0:3)),y:3*(_nativeScrollbarSize.y+(_nativeScrollbarIsOverlaid.y?0:3))},changedOptions=changedOptions||{};var checkCacheAutoForce=function checkCacheAutoForce(){return checkCache.apply(this,[].slice.call(arguments).concat([force]))},currScroll={x:_viewportElement[_strScrollLeft](),y:_viewportElement[_strScrollTop]()},currentPreparedOptionsScrollbars=_currentPreparedOptions.scrollbars,currentPreparedOptionsTextarea=_currentPreparedOptions.textarea,scrollbarsVisibility=currentPreparedOptionsScrollbars.visibility,scrollbarsVisibilityChanged=checkCacheAutoForce(scrollbarsVisibility,_scrollbarsVisibilityCache),scrollbarsAutoHide=currentPreparedOptionsScrollbars.autoHide,scrollbarsAutoHideChanged=checkCacheAutoForce(scrollbarsAutoHide,_scrollbarsAutoHideCache),scrollbarsClickScrolling=currentPreparedOptionsScrollbars.clickScrolling,scrollbarsClickScrollingChanged=checkCacheAutoForce(scrollbarsClickScrolling,_scrollbarsClickScrollingCache),scrollbarsDragScrolling=currentPreparedOptionsScrollbars.dragScrolling,scrollbarsDragScrollingChanged=checkCacheAutoForce(scrollbarsDragScrolling,_scrollbarsDragScrollingCache),className=_currentPreparedOptions.className,classNameChanged=checkCacheAutoForce(className,_classNameCache),resize=_currentPreparedOptions.resize,resizeChanged=checkCacheAutoForce(resize,_resizeCache)&&!_isBody,paddingAbsolute=_currentPreparedOptions.paddingAbsolute,paddingAbsoluteChanged=checkCacheAutoForce(paddingAbsolute,_paddingAbsoluteCache),clipAlways=_currentPreparedOptions.clipAlways,clipAlwaysChanged=checkCacheAutoForce(clipAlways,_clipAlwaysCache),sizeAutoCapable=_currentPreparedOptions.sizeAutoCapable&&!_isBody,sizeAutoCapableChanged=checkCacheAutoForce(sizeAutoCapable,_sizeAutoCapableCache),ignoreOverlayScrollbarHiding=_currentPreparedOptions.nativeScrollbarsOverlaid.showNativeScrollbars,ignoreOverlayScrollbarHidingChanged=checkCacheAutoForce(ignoreOverlayScrollbarHiding,_ignoreOverlayScrollbarHidingCache),autoUpdate=_currentPreparedOptions.autoUpdate,autoUpdateChanged=checkCacheAutoForce(autoUpdate,_autoUpdateCache),overflowBehavior=_currentPreparedOptions.overflowBehavior,overflowBehaviorChanged=checkCacheAutoForce(overflowBehavior,_overflowBehaviorCache,force),textareaDynWidth=currentPreparedOptionsTextarea.dynWidth,textareaDynWidthChanged=checkCacheAutoForce(_textareaDynWidthCache,textareaDynWidth),textareaDynHeight=currentPreparedOptionsTextarea.dynHeight,textareaDynHeightChanged=checkCacheAutoForce(_textareaDynHeightCache,textareaDynHeight);if(_scrollbarsAutoHideNever="n"===scrollbarsAutoHide,_scrollbarsAutoHideScroll="s"===scrollbarsAutoHide,_scrollbarsAutoHideMove="m"===scrollbarsAutoHide,_scrollbarsAutoHideLeave="l"===scrollbarsAutoHide,_scrollbarsAutoHideDelay=currentPreparedOptionsScrollbars.autoHideDelay,_oldClassName=_classNameCache,_resizeNone="n"===resize,_resizeBoth="b"===resize,_resizeHorizontal="h"===resize,_resizeVertical="v"===resize,_normalizeRTLCache=_currentPreparedOptions.normalizeRTL,ignoreOverlayScrollbarHiding=ignoreOverlayScrollbarHiding&&_nativeScrollbarIsOverlaid.x&&_nativeScrollbarIsOverlaid.y,_scrollbarsVisibilityCache=scrollbarsVisibility,_scrollbarsAutoHideCache=scrollbarsAutoHide,_scrollbarsClickScrollingCache=scrollbarsClickScrolling,_scrollbarsDragScrollingCache=scrollbarsDragScrolling,_classNameCache=className,_resizeCache=resize,_paddingAbsoluteCache=paddingAbsolute,_clipAlwaysCache=clipAlways,_sizeAutoCapableCache=sizeAutoCapable,_ignoreOverlayScrollbarHidingCache=ignoreOverlayScrollbarHiding,_autoUpdateCache=autoUpdate,_overflowBehaviorCache=extendDeep({},overflowBehavior),_textareaDynWidthCache=textareaDynWidth,_textareaDynHeightCache=textareaDynHeight,_hasOverflowCache=_hasOverflowCache||{x:!1,y:!1},classNameChanged&&(removeClass(_hostElement,_oldClassName+_strSpace+_classNameThemeNone),addClass(_hostElement,className!==undefined$1&&null!==className&&className.length>0?className:_classNameThemeNone)),autoUpdateChanged&&(!0===autoUpdate||null===autoUpdate&&_autoUpdateRecommended?(disconnectMutationObservers(),autoUpdateLoop.add(_base)):(autoUpdateLoop.remove(_base),connectMutationObservers())),sizeAutoCapableChanged)if(sizeAutoCapable)if(_contentGlueElement?_contentGlueElement.show():(_contentGlueElement=FRAMEWORK(generateDiv(_classNameContentGlueElement)),_paddingElement.before(_contentGlueElement)),_sizeAutoObserverAdded)_sizeAutoObserverElement.show();else{_sizeAutoObserverElement=FRAMEWORK(generateDiv(_classNameSizeAutoObserverElement)),_sizeAutoObserverElementNative=_sizeAutoObserverElement[0],_contentGlueElement.before(_sizeAutoObserverElement);var oldSize={w:-1,h:-1};setupResizeObserver(_sizeAutoObserverElement,(function(){var newSize={w:_sizeAutoObserverElementNative[LEXICON.oW],h:_sizeAutoObserverElementNative[LEXICON.oH]};checkCache(newSize,oldSize)&&(_initialized&&_heightAutoCache&&newSize.h>0||_widthAutoCache&&newSize.w>0||_initialized&&!_heightAutoCache&&0===newSize.h||!_widthAutoCache&&0===newSize.w)&&update(),oldSize=newSize})),_sizeAutoObserverAdded=!0,null!==_cssCalc&&_sizeAutoObserverElement.css(_strHeight,_cssCalc+"(100% + 1px)")}else _sizeAutoObserverAdded&&_sizeAutoObserverElement.hide(),_contentGlueElement&&_contentGlueElement.hide();force&&(_sizeObserverElement.find("*").trigger(_strScroll),_sizeAutoObserverAdded&&_sizeAutoObserverElement.find("*").trigger(_strScroll)),displayIsHidden=displayIsHidden===undefined$1?_hostElement.is(":hidden"):displayIsHidden;var sizeAutoObserverElementBCRect,textareaAutoWrapping=!!_isTextarea&&"off"!==_targetElement.attr("wrap"),textareaAutoWrappingChanged=checkCacheAutoForce(textareaAutoWrapping,_textareaAutoWrappingCache),cssDirection=_hostElement.css("direction"),cssDirectionChanged=checkCacheAutoForce(cssDirection,_cssDirectionCache),boxSizing=_hostElement.css("box-sizing"),boxSizingChanged=checkCacheAutoForce(boxSizing,_cssBoxSizingCache),padding=getTopRightBottomLeftHost(_strPaddingMinus);try{sizeAutoObserverElementBCRect=_sizeAutoObserverAdded?_sizeAutoObserverElementNative[LEXICON.bCR]():null}catch(ex){return}_isBorderBox="border-box"===boxSizing;var isRTLLeft=(_isRTL="rtl"===cssDirection)?_strLeft:_strRight,isRTLRight=_isRTL?_strRight:_strLeft,widthAutoResizeDetection=!1,widthAutoObserverDetection=!(!_sizeAutoObserverAdded||"none"===_hostElement.css(_strFloat))&&0===MATH.round(sizeAutoObserverElementBCRect.right-sizeAutoObserverElementBCRect.left)&&(!!paddingAbsolute||_hostElementNative[LEXICON.cW]-_paddingX>0);if(sizeAutoCapable&&!widthAutoObserverDetection){var tmpCurrHostWidth=_hostElementNative[LEXICON.oW],tmpCurrContentGlueWidth=_contentGlueElement.css(_strWidth);_contentGlueElement.css(_strWidth,_strAuto);var tmpNewHostWidth=_hostElementNative[LEXICON.oW];_contentGlueElement.css(_strWidth,tmpCurrContentGlueWidth),(widthAutoResizeDetection=tmpCurrHostWidth!==tmpNewHostWidth)||(_contentGlueElement.css(_strWidth,tmpCurrHostWidth+1),tmpNewHostWidth=_hostElementNative[LEXICON.oW],_contentGlueElement.css(_strWidth,tmpCurrContentGlueWidth),widthAutoResizeDetection=tmpCurrHostWidth!==tmpNewHostWidth)}var widthAuto=(widthAutoObserverDetection||widthAutoResizeDetection)&&sizeAutoCapable&&!displayIsHidden,widthAutoChanged=checkCacheAutoForce(widthAuto,_widthAutoCache),wasWidthAuto=!widthAuto&&_widthAutoCache,heightAuto=!(!_sizeAutoObserverAdded||!sizeAutoCapable||displayIsHidden)&&0===MATH.round(sizeAutoObserverElementBCRect.bottom-sizeAutoObserverElementBCRect.top),heightAutoChanged=checkCacheAutoForce(heightAuto,_heightAutoCache),wasHeightAuto=!heightAuto&&_heightAutoCache,border=getTopRightBottomLeftHost(_strBorderMinus,"-"+_strWidth,!(widthAuto&&_isBorderBox||!_isBorderBox),!(heightAuto&&_isBorderBox||!_isBorderBox)),margin=getTopRightBottomLeftHost(_strMarginMinus),contentElementCSS={},contentGlueElementCSS={},getHostSize=function getHostSize(){return{w:_hostElementNative[LEXICON.cW],h:_hostElementNative[LEXICON.cH]}},getViewportSize=function getViewportSize(){return{w:_paddingElementNative[LEXICON.oW]+MATH.max(0,_contentElementNative[LEXICON.cW]-_contentElementNative[LEXICON.sW]),h:_paddingElementNative[LEXICON.oH]+MATH.max(0,_contentElementNative[LEXICON.cH]-_contentElementNative[LEXICON.sH])}},paddingAbsoluteX=_paddingX=padding.l+padding.r,paddingAbsoluteY=_paddingY=padding.t+padding.b;if(paddingAbsoluteX*=paddingAbsolute?1:0,paddingAbsoluteY*=paddingAbsolute?1:0,padding.c=checkCacheAutoForce(padding,_cssPaddingCache),_borderX=border.l+border.r,_borderY=border.t+border.b,border.c=checkCacheAutoForce(border,_cssBorderCache),_marginX=margin.l+margin.r,_marginY=margin.t+margin.b,margin.c=checkCacheAutoForce(margin,_cssMarginCache),_textareaAutoWrappingCache=textareaAutoWrapping,_cssDirectionCache=cssDirection,_cssBoxSizingCache=boxSizing,_widthAutoCache=widthAuto,_heightAutoCache=heightAuto,_cssPaddingCache=padding,_cssBorderCache=border,_cssMarginCache=margin,cssDirectionChanged&&_sizeAutoObserverAdded&&_sizeAutoObserverElement.css(_strFloat,isRTLRight),padding.c||cssDirectionChanged||paddingAbsoluteChanged||widthAutoChanged||heightAutoChanged||boxSizingChanged||sizeAutoCapableChanged){var paddingElementCSS={},textareaCSS={},paddingValues=[padding.t,padding.r,padding.b,padding.l];setTopRightBottomLeft(contentGlueElementCSS,_strMarginMinus,[-padding.t,-padding.r,-padding.b,-padding.l]),paddingAbsolute?(setTopRightBottomLeft(paddingElementCSS,_strEmpty,paddingValues),setTopRightBottomLeft(_isTextarea?textareaCSS:contentElementCSS,_strPaddingMinus)):(setTopRightBottomLeft(paddingElementCSS,_strEmpty),setTopRightBottomLeft(_isTextarea?textareaCSS:contentElementCSS,_strPaddingMinus,paddingValues)),_paddingElement.css(paddingElementCSS),_targetElement.css(textareaCSS)}_viewportSize=getViewportSize();var textareaSize=!!_isTextarea&&textareaUpdate(),textareaSizeChanged=_isTextarea&&checkCacheAutoForce(textareaSize,_textareaSizeCache),textareaDynOrigSize=_isTextarea&&textareaSize?{w:textareaDynWidth?textareaSize._dynamicWidth:textareaSize._originalWidth,h:textareaDynHeight?textareaSize._dynamicHeight:textareaSize._originalHeight}:{};if(_textareaSizeCache=textareaSize,heightAuto&&(heightAutoChanged||paddingAbsoluteChanged||boxSizingChanged||padding.c||border.c)?contentElementCSS[_strHeight]=_strAuto:(heightAutoChanged||paddingAbsoluteChanged)&&(contentElementCSS[_strHeight]=_strHundredPercent),widthAuto&&(widthAutoChanged||paddingAbsoluteChanged||boxSizingChanged||padding.c||border.c||cssDirectionChanged)?(contentElementCSS[_strWidth]=_strAuto,contentGlueElementCSS[_strMaxMinus+_strWidth]=_strHundredPercent):(widthAutoChanged||paddingAbsoluteChanged)&&(contentElementCSS[_strWidth]=_strHundredPercent,contentElementCSS[_strFloat]=_strEmpty,contentGlueElementCSS[_strMaxMinus+_strWidth]=_strEmpty),widthAuto?(contentGlueElementCSS[_strWidth]=_strAuto,contentElementCSS[_strWidth]=VENDORS._cssPropertyValue(_strWidth,"max-content intrinsic")||_strAuto,contentElementCSS[_strFloat]=isRTLRight):contentGlueElementCSS[_strWidth]=_strEmpty,contentGlueElementCSS[_strHeight]=heightAuto?textareaDynOrigSize.h||_contentElementNative[LEXICON.cH]:_strEmpty,sizeAutoCapable&&_contentGlueElement.css(contentGlueElementCSS),_contentElement.css(contentElementCSS),contentElementCSS={},contentGlueElementCSS={},hostSizeChanged||contentSizeChanged||textareaSizeChanged||cssDirectionChanged||boxSizingChanged||paddingAbsoluteChanged||widthAutoChanged||widthAuto||heightAutoChanged||heightAuto||ignoreOverlayScrollbarHidingChanged||overflowBehaviorChanged||clipAlwaysChanged||resizeChanged||scrollbarsVisibilityChanged||scrollbarsAutoHideChanged||scrollbarsDragScrollingChanged||scrollbarsClickScrollingChanged||textareaDynWidthChanged||textareaDynHeightChanged||textareaAutoWrappingChanged){var strOverflow="overflow",strOverflowX=strOverflow+"-x",strOverflowY=strOverflow+"-y",strHidden="hidden",strVisible="visible";if(!_nativeScrollbarStyling){var viewportElementResetCSS={},resetXTmp=_hasOverflowCache.y&&_hideOverflowCache.ys&&!ignoreOverlayScrollbarHiding?_nativeScrollbarIsOverlaid.y?_viewportElement.css(isRTLLeft):-_nativeScrollbarSize.y:0,resetBottomTmp=_hasOverflowCache.x&&_hideOverflowCache.xs&&!ignoreOverlayScrollbarHiding?_nativeScrollbarIsOverlaid.x?_viewportElement.css(_strBottom):-_nativeScrollbarSize.x:0;setTopRightBottomLeft(viewportElementResetCSS,_strEmpty),_viewportElement.css(viewportElementResetCSS)}var contentMeasureElement=getContentMeasureElement(),contentSize={w:textareaDynOrigSize.w||contentMeasureElement[LEXICON.cW],h:textareaDynOrigSize.h||contentMeasureElement[LEXICON.cH]},scrollSize={w:contentMeasureElement[LEXICON.sW],h:contentMeasureElement[LEXICON.sH]};_nativeScrollbarStyling||(viewportElementResetCSS[_strBottom]=wasHeightAuto?_strEmpty:resetBottomTmp,viewportElementResetCSS[isRTLLeft]=wasWidthAuto?_strEmpty:resetXTmp,_viewportElement.css(viewportElementResetCSS)),_viewportSize=getViewportSize();var hostSize=getHostSize(),hostAbsoluteRectSize={w:hostSize.w-_marginX-_borderX-(_isBorderBox?0:_paddingX),h:hostSize.h-_marginY-_borderY-(_isBorderBox?0:_paddingY)},contentGlueSize={w:MATH.max((widthAuto?contentSize.w:scrollSize.w)+paddingAbsoluteX,hostAbsoluteRectSize.w),h:MATH.max((heightAuto?contentSize.h:scrollSize.h)+paddingAbsoluteY,hostAbsoluteRectSize.h)};if(contentGlueSize.c=checkCacheAutoForce(contentGlueSize,_contentGlueSizeCache),_contentGlueSizeCache=contentGlueSize,sizeAutoCapable){(contentGlueSize.c||heightAuto||widthAuto)&&(contentGlueElementCSS[_strWidth]=contentGlueSize.w,contentGlueElementCSS[_strHeight]=contentGlueSize.h,_isTextarea||(contentSize={w:contentMeasureElement[LEXICON.cW],h:contentMeasureElement[LEXICON.cH]}));var textareaCoverCSS={},setContentGlueElementCSSfunction=function setContentGlueElementCSSfunction(horizontal){var scrollbarVars=getScrollbarVars(horizontal),wh=scrollbarVars._w_h,strWH=scrollbarVars._width_height,autoSize=horizontal?widthAuto:heightAuto,borderSize=horizontal?_borderX:_borderY,paddingSize=horizontal?_paddingX:_paddingY,marginSize=horizontal?_marginX:_marginY,viewportSize=_viewportSize[wh]-borderSize-marginSize-(_isBorderBox?0:paddingSize);(!autoSize||!autoSize&&border.c)&&(contentGlueElementCSS[strWH]=hostAbsoluteRectSize[wh]-1),!(autoSize&&contentSize[wh]0&&(contentGlueElementCSS[strWH]=MATH.max(1,contentGlueElementCSS[strWH]))};setContentGlueElementCSSfunction(!0),setContentGlueElementCSSfunction(!1),_isTextarea&&_textareaCoverElement.css(textareaCoverCSS),_contentGlueElement.css(contentGlueElementCSS)}widthAuto&&(contentElementCSS[_strWidth]=_strHundredPercent),!widthAuto||_isBorderBox||_mutationObserversConnected||(contentElementCSS[_strFloat]="none"),_contentElement.css(contentElementCSS),contentElementCSS={};var contentScrollSize={w:contentMeasureElement[LEXICON.sW],h:contentMeasureElement[LEXICON.sH]};contentScrollSize.c=contentSizeChanged=checkCacheAutoForce(contentScrollSize,_contentScrollSizeCache),_contentScrollSizeCache=contentScrollSize,_viewportSize=getViewportSize(),hostSizeChanged=checkCacheAutoForce(hostSize=getHostSize(),_hostSizeCache),_hostSizeCache=hostSize;var hideOverflowForceTextarea=_isTextarea&&(0===_viewportSize.w||0===_viewportSize.h),previousOverflowAmount=_overflowAmountCache,overflowBehaviorIsVS={},overflowBehaviorIsVH={},overflowBehaviorIsS={},overflowAmount={},hasOverflow={},hideOverflow={},canScroll={},viewportRect=_paddingElementNative[LEXICON.bCR](),setOverflowVariables=function setOverflowVariables(horizontal){var scrollbarVars=getScrollbarVars(horizontal),xyI=getScrollbarVars(!horizontal)._x_y,xy=scrollbarVars._x_y,wh=scrollbarVars._w_h,widthHeight=scrollbarVars._width_height,scrollMax=_strScroll+scrollbarVars._Left_Top+"Max",fractionalOverflowAmount=viewportRect[widthHeight]?MATH.abs(viewportRect[widthHeight]-_viewportSize[wh]):0,checkFractionalOverflowAmount=previousOverflowAmount&&previousOverflowAmount[xy]>0&&0===_viewportElementNative[scrollMax];overflowBehaviorIsVS[xy]="v-s"===overflowBehavior[xy],overflowBehaviorIsVH[xy]="v-h"===overflowBehavior[xy],overflowBehaviorIsS[xy]="s"===overflowBehavior[xy],overflowAmount[xy]=MATH.max(0,MATH.round(100*(contentScrollSize[wh]-_viewportSize[wh]))/100),overflowAmount[xy]*=hideOverflowForceTextarea||checkFractionalOverflowAmount&&fractionalOverflowAmount>0&&fractionalOverflowAmount<1?0:1,hasOverflow[xy]=overflowAmount[xy]>0,hideOverflow[xy]=overflowBehaviorIsVS[xy]||overflowBehaviorIsVH[xy]?hasOverflow[xyI]&&!overflowBehaviorIsVS[xyI]&&!overflowBehaviorIsVH[xyI]:hasOverflow[xy],hideOverflow[xy+"s"]=!!hideOverflow[xy]&&(overflowBehaviorIsS[xy]||overflowBehaviorIsVS[xy]),canScroll[xy]=hasOverflow[xy]&&hideOverflow[xy+"s"]};if(setOverflowVariables(!0),setOverflowVariables(!1),overflowAmount.c=checkCacheAutoForce(overflowAmount,_overflowAmountCache),_overflowAmountCache=overflowAmount,hasOverflow.c=checkCacheAutoForce(hasOverflow,_hasOverflowCache),_hasOverflowCache=hasOverflow,hideOverflow.c=checkCacheAutoForce(hideOverflow,_hideOverflowCache),_hideOverflowCache=hideOverflow,_nativeScrollbarIsOverlaid.x||_nativeScrollbarIsOverlaid.y){var setContentElementCSS,borderDesign="px solid transparent",contentArrangeElementCSS={},arrangeContent={},arrangeChanged=force;(hasOverflow.x||hasOverflow.y)&&(arrangeContent.w=_nativeScrollbarIsOverlaid.y&&hasOverflow.y?contentScrollSize.w+_overlayScrollbarDummySize.y:_strEmpty,arrangeContent.h=_nativeScrollbarIsOverlaid.x&&hasOverflow.x?contentScrollSize.h+_overlayScrollbarDummySize.x:_strEmpty,arrangeChanged=checkCacheAutoForce(arrangeContent,_arrangeContentSizeCache),_arrangeContentSizeCache=arrangeContent),(hasOverflow.c||hideOverflow.c||contentScrollSize.c||cssDirectionChanged||widthAutoChanged||heightAutoChanged||widthAuto||heightAuto||ignoreOverlayScrollbarHidingChanged)&&(contentElementCSS[_strMarginMinus+isRTLRight]=contentElementCSS[_strBorderMinus+isRTLRight]=_strEmpty,setContentElementCSS=function setContentElementCSS(horizontal){var scrollbarVars=getScrollbarVars(horizontal),scrollbarVarsInverted=getScrollbarVars(!horizontal),xy=scrollbarVars._x_y,strDirection=horizontal?_strBottom:isRTLLeft,invertedAutoSize=horizontal?heightAuto:widthAuto;_nativeScrollbarIsOverlaid[xy]&&hasOverflow[xy]&&hideOverflow[xy+"s"]?(contentElementCSS[_strMarginMinus+strDirection]=invertedAutoSize?ignoreOverlayScrollbarHiding?_strEmpty:_overlayScrollbarDummySize[xy]:_strEmpty,contentElementCSS[_strBorderMinus+strDirection]=horizontal&&invertedAutoSize||ignoreOverlayScrollbarHiding?_strEmpty:_overlayScrollbarDummySize[xy]+borderDesign):(arrangeContent[scrollbarVarsInverted._w_h]=contentElementCSS[_strMarginMinus+strDirection]=contentElementCSS[_strBorderMinus+strDirection]=_strEmpty,arrangeChanged=!0)},_nativeScrollbarStyling?addRemoveClass(_viewportElement,_classNameViewportNativeScrollbarsInvisible,!ignoreOverlayScrollbarHiding):(setContentElementCSS(!0),setContentElementCSS(!1))),ignoreOverlayScrollbarHiding&&(arrangeContent.w=arrangeContent.h=_strEmpty,arrangeChanged=!0),arrangeChanged&&!_nativeScrollbarStyling&&(contentArrangeElementCSS[_strWidth]=hideOverflow.y?arrangeContent.w:_strEmpty,contentArrangeElementCSS[_strHeight]=hideOverflow.x?arrangeContent.h:_strEmpty,_contentArrangeElement||(_contentArrangeElement=FRAMEWORK(generateDiv(_classNameContentArrangeElement)),_viewportElement.prepend(_contentArrangeElement)),_contentArrangeElement.css(contentArrangeElementCSS)),_contentElement.css(contentElementCSS)}var setViewportCSS,viewportElementCSS={};if(paddingElementCSS={},(hostSizeChanged||hasOverflow.c||hideOverflow.c||contentScrollSize.c||overflowBehaviorChanged||boxSizingChanged||ignoreOverlayScrollbarHidingChanged||cssDirectionChanged||clipAlwaysChanged||heightAutoChanged)&&(viewportElementCSS[isRTLRight]=_strEmpty,(setViewportCSS=function setViewportCSS(horizontal){var scrollbarVars=getScrollbarVars(horizontal),scrollbarVarsInverted=getScrollbarVars(!horizontal),xy=scrollbarVars._x_y,XY=scrollbarVars._X_Y,strDirection=horizontal?_strBottom:isRTLLeft,reset=function reset(){viewportElementCSS[strDirection]=_strEmpty,_contentBorderSize[scrollbarVarsInverted._w_h]=0};hasOverflow[xy]&&hideOverflow[xy+"s"]?(viewportElementCSS[strOverflow+XY]=_strScroll,ignoreOverlayScrollbarHiding||_nativeScrollbarStyling?reset():(viewportElementCSS[strDirection]=-(_nativeScrollbarIsOverlaid[xy]?_overlayScrollbarDummySize[xy]:_nativeScrollbarSize[xy]),_contentBorderSize[scrollbarVarsInverted._w_h]=_nativeScrollbarIsOverlaid[xy]?_overlayScrollbarDummySize[scrollbarVarsInverted._x_y]:0)):(viewportElementCSS[strOverflow+XY]=_strEmpty,reset())})(!0),setViewportCSS(!1),!_nativeScrollbarStyling&&(_viewportSize.h<_nativeScrollbarMinSize.x||_viewportSize.w<_nativeScrollbarMinSize.y)&&(hasOverflow.x&&hideOverflow.x&&!_nativeScrollbarIsOverlaid.x||hasOverflow.y&&hideOverflow.y&&!_nativeScrollbarIsOverlaid.y)?(viewportElementCSS[_strPaddingMinus+_strTop]=_nativeScrollbarMinSize.x,viewportElementCSS[_strMarginMinus+_strTop]=-_nativeScrollbarMinSize.x,viewportElementCSS[_strPaddingMinus+isRTLRight]=_nativeScrollbarMinSize.y,viewportElementCSS[_strMarginMinus+isRTLRight]=-_nativeScrollbarMinSize.y):viewportElementCSS[_strPaddingMinus+_strTop]=viewportElementCSS[_strMarginMinus+_strTop]=viewportElementCSS[_strPaddingMinus+isRTLRight]=viewportElementCSS[_strMarginMinus+isRTLRight]=_strEmpty,viewportElementCSS[_strPaddingMinus+isRTLLeft]=viewportElementCSS[_strMarginMinus+isRTLLeft]=_strEmpty,hasOverflow.x&&hideOverflow.x||hasOverflow.y&&hideOverflow.y||hideOverflowForceTextarea?_isTextarea&&hideOverflowForceTextarea&&(paddingElementCSS[strOverflowX]=paddingElementCSS[strOverflowY]=strHidden):(!clipAlways||overflowBehaviorIsVH.x||overflowBehaviorIsVS.x||overflowBehaviorIsVH.y||overflowBehaviorIsVS.y)&&(_isTextarea&&(paddingElementCSS[strOverflowX]=paddingElementCSS[strOverflowY]=_strEmpty),viewportElementCSS[strOverflowX]=viewportElementCSS[strOverflowY]=strVisible),_paddingElement.css(paddingElementCSS),_viewportElement.css(viewportElementCSS),viewportElementCSS={},(hasOverflow.c||boxSizingChanged||widthAutoChanged||heightAutoChanged)&&(!_nativeScrollbarIsOverlaid.x||!_nativeScrollbarIsOverlaid.y))){var elementStyle=_contentElementNative[LEXICON.s];elementStyle.webkitTransform="scale(1)",elementStyle.display="run-in",elementStyle.display=_strEmpty,elementStyle.webkitTransform=_strEmpty}if(contentElementCSS={},cssDirectionChanged||widthAutoChanged||heightAutoChanged)if(_isRTL&&widthAuto){var floatTmp=_contentElement.css(_strFloat),posLeftWithoutFloat=MATH.round(_contentElement.css(_strFloat,_strEmpty).css(_strLeft,_strEmpty).position().left);_contentElement.css(_strFloat,floatTmp),posLeftWithoutFloat!==MATH.round(_contentElement.position().left)&&(contentElementCSS[_strLeft]=posLeftWithoutFloat)}else contentElementCSS[_strLeft]=_strEmpty;if(_contentElement.css(contentElementCSS),_isTextarea&&contentSizeChanged){var textareaInfo=getTextareaInfo();if(textareaInfo){var textareaRowsChanged=_textareaInfoCache===undefined$1||textareaInfo._rows!==_textareaInfoCache._rows,cursorRow=textareaInfo._cursorRow,cursorCol=textareaInfo._cursorColumn,widestRow=textareaInfo._widestRow,lastRow=textareaInfo._rows,lastCol=textareaInfo._columns,cursorIsLastPosition=textareaInfo._cursorPosition>=textareaInfo._cursorMax&&_textareaHasFocus,textareaScrollAmount={x:textareaAutoWrapping||cursorCol!==lastCol||cursorRow!==widestRow?-1:_overflowAmountCache.x,y:(textareaAutoWrapping?cursorIsLastPosition||textareaRowsChanged&&previousOverflowAmount&&currScroll.y===previousOverflowAmount.y:(cursorIsLastPosition||textareaRowsChanged)&&cursorRow===lastRow)?_overflowAmountCache.y:-1};currScroll.x=textareaScrollAmount.x>-1?_isRTL&&_normalizeRTLCache&&_rtlScrollBehavior.i?0:textareaScrollAmount.x:currScroll.x,currScroll.y=textareaScrollAmount.y>-1?textareaScrollAmount.y:currScroll.y}_textareaInfoCache=textareaInfo}_isRTL&&_rtlScrollBehavior.i&&_nativeScrollbarIsOverlaid.y&&hasOverflow.x&&_normalizeRTLCache&&(currScroll.x+=_contentBorderSize.w||0),widthAuto&&_hostElement[_strScrollLeft](0),heightAuto&&_hostElement[_strScrollTop](0),_viewportElement[_strScrollLeft](currScroll.x)[_strScrollTop](currScroll.y);var scrollbarsVisibilityVisible="v"===scrollbarsVisibility,scrollbarsVisibilityHidden="h"===scrollbarsVisibility,scrollbarsVisibilityAuto="a"===scrollbarsVisibility,refreshScrollbarsVisibility=function refreshScrollbarsVisibility(showX,showY){showY=showY===undefined$1?showX:showY,refreshScrollbarAppearance(!0,showX,canScroll.x),refreshScrollbarAppearance(!1,showY,canScroll.y)};addRemoveClass(_hostElement,_classNameHostOverflow,hideOverflow.x||hideOverflow.y),addRemoveClass(_hostElement,_classNameHostOverflowX,hideOverflow.x),addRemoveClass(_hostElement,_classNameHostOverflowY,hideOverflow.y),cssDirectionChanged&&!_isBody&&addRemoveClass(_hostElement,_classNameHostRTL,_isRTL),_isBody&&addClass(_hostElement,_classNameHostResizeDisabled),resizeChanged&&(addRemoveClass(_hostElement,_classNameHostResizeDisabled,_resizeNone),addRemoveClass(_scrollbarCornerElement,_classNameScrollbarCornerResize,!_resizeNone),addRemoveClass(_scrollbarCornerElement,_classNameScrollbarCornerResizeB,_resizeBoth),addRemoveClass(_scrollbarCornerElement,_classNameScrollbarCornerResizeH,_resizeHorizontal),addRemoveClass(_scrollbarCornerElement,_classNameScrollbarCornerResizeV,_resizeVertical)),(scrollbarsVisibilityChanged||overflowBehaviorChanged||hideOverflow.c||hasOverflow.c||ignoreOverlayScrollbarHidingChanged)&&(ignoreOverlayScrollbarHiding?ignoreOverlayScrollbarHidingChanged&&(removeClass(_hostElement,_classNameHostScrolling),ignoreOverlayScrollbarHiding&&refreshScrollbarsVisibility(!1)):scrollbarsVisibilityAuto?refreshScrollbarsVisibility(canScroll.x,canScroll.y):scrollbarsVisibilityVisible?refreshScrollbarsVisibility(!0):scrollbarsVisibilityHidden&&refreshScrollbarsVisibility(!1)),(scrollbarsAutoHideChanged||ignoreOverlayScrollbarHidingChanged)&&(setupHostMouseTouchEvents(!_scrollbarsAutoHideLeave&&!_scrollbarsAutoHideMove),refreshScrollbarsAutoHide(_scrollbarsAutoHideNever,!_scrollbarsAutoHideNever)),(hostSizeChanged||overflowAmount.c||heightAutoChanged||widthAutoChanged||resizeChanged||boxSizingChanged||paddingAbsoluteChanged||ignoreOverlayScrollbarHidingChanged||cssDirectionChanged)&&(refreshScrollbarHandleLength(!0),refreshScrollbarHandleOffset(!0),refreshScrollbarHandleLength(!1),refreshScrollbarHandleOffset(!1)),scrollbarsClickScrollingChanged&&refreshScrollbarsInteractive(!0,scrollbarsClickScrolling),scrollbarsDragScrollingChanged&&refreshScrollbarsInteractive(!1,scrollbarsDragScrolling),dispatchCallback("onDirectionChanged",{isRTL:_isRTL,dir:cssDirection},cssDirectionChanged),dispatchCallback("onHostSizeChanged",{width:_hostSizeCache.w,height:_hostSizeCache.h},hostSizeChanged),dispatchCallback("onContentSizeChanged",{width:_contentScrollSizeCache.w,height:_contentScrollSizeCache.h},contentSizeChanged),dispatchCallback("onOverflowChanged",{x:hasOverflow.x,y:hasOverflow.y,xScrollable:hideOverflow.xs,yScrollable:hideOverflow.ys,clipped:hideOverflow.x||hideOverflow.y},hasOverflow.c||hideOverflow.c),dispatchCallback("onOverflowAmountChanged",{x:overflowAmount.x,y:overflowAmount.y},overflowAmount.c)}_isBody&&_bodyMinSizeCache&&(_hasOverflowCache.c||_bodyMinSizeCache.c)&&(_bodyMinSizeCache.f||bodyMinSizeChanged(),_nativeScrollbarIsOverlaid.y&&_hasOverflowCache.x&&_contentElement.css(_strMinMinus+_strWidth,_bodyMinSizeCache.w+_overlayScrollbarDummySize.y),_nativeScrollbarIsOverlaid.x&&_hasOverflowCache.y&&_contentElement.css(_strMinMinus+_strHeight,_bodyMinSizeCache.h+_overlayScrollbarDummySize.x),_bodyMinSizeCache.c=!1),_initialized&&changedOptions.updateOnLoad&&updateElementsOnLoad(),dispatchCallback("onUpdated",{forced:force})}}function updateElementsOnLoad(){_isTextarea||eachUpdateOnLoad((function(i,updateOnLoadSelector){_contentElement.find(updateOnLoadSelector).each((function(i,el){COMPATIBILITY.inA(el,_updateOnLoadElms)<0&&(_updateOnLoadElms.push(el),FRAMEWORK(el).off(_updateOnLoadEventName,updateOnLoadCallback).on(_updateOnLoadEventName,updateOnLoadCallback))}))}))}function setOptions(newOptions){var validatedOpts=_pluginsOptions._validate(newOptions,_pluginsOptions._template,!0,_currentOptions);return _currentOptions=extendDeep({},_currentOptions,validatedOpts._default),_currentPreparedOptions=extendDeep({},_currentPreparedOptions,validatedOpts._prepared),validatedOpts._prepared}function setupStructureDOM(destroy){var strParent="parent",classNameResizeObserverHost="os-resize-observer-host",classNameTextareaElementFull=_classNameTextareaElement+_strSpace+_classNameTextInherit,textareaClass=_isTextarea?_strSpace+_classNameTextInherit:_strEmpty,adoptAttrs=_currentPreparedOptions.textarea.inheritedAttrs,adoptAttrsMap={},applyAdoptedAttrs=function applyAdoptedAttrs(){var applyAdoptedAttrsElm=destroy?_targetElement:_hostElement;each(adoptAttrsMap,(function(key,value){type(value)==TYPES.s&&(key==LEXICON.c?applyAdoptedAttrsElm.addClass(value):applyAdoptedAttrsElm.attr(key,value))}))},hostElementClassNames=[_classNameHostElement,_classNameHostElementForeign,_classNameHostTextareaElement,_classNameHostResizeDisabled,_classNameHostRTL,_classNameHostScrollbarHorizontalHidden,_classNameHostScrollbarVerticalHidden,_classNameHostTransition,_classNameHostScrolling,_classNameHostOverflow,_classNameHostOverflowX,_classNameHostOverflowY,_classNameThemeNone,_classNameTextareaElement,_classNameTextInherit,_classNameCache].join(_strSpace),hostElementCSS={};_hostElement=_hostElement||(_isTextarea?_domExists?_targetElement[strParent]()[strParent]()[strParent]()[strParent]():FRAMEWORK(generateDiv(_classNameHostTextareaElement)):_targetElement),_contentElement=_contentElement||selectOrGenerateDivByClass(_classNameContentElement+textareaClass),_viewportElement=_viewportElement||selectOrGenerateDivByClass(_classNameViewportElement+textareaClass),_paddingElement=_paddingElement||selectOrGenerateDivByClass(_classNamePaddingElement+textareaClass),_sizeObserverElement=_sizeObserverElement||selectOrGenerateDivByClass(classNameResizeObserverHost),_textareaCoverElement=_textareaCoverElement||(_isTextarea?selectOrGenerateDivByClass(_classNameTextareaCoverElement):undefined$1),_domExists&&addClass(_hostElement,_classNameHostElementForeign),destroy&&removeClass(_hostElement,hostElementClassNames),adoptAttrs=type(adoptAttrs)==TYPES.s?adoptAttrs.split(_strSpace):adoptAttrs,COMPATIBILITY.isA(adoptAttrs)&&_isTextarea&&each(adoptAttrs,(function(i,v){type(v)==TYPES.s&&(adoptAttrsMap[v]=destroy?_hostElement.attr(v):_targetElement.attr(v))})),destroy?(_domExists&&_initialized?(_sizeObserverElement.children().remove(),each([_paddingElement,_viewportElement,_contentElement,_textareaCoverElement],(function(i,elm){elm&&removeClass(elm.removeAttr(LEXICON.s),_classNamesDynamicDestroy)})),addClass(_hostElement,_isTextarea?_classNameHostTextareaElement:_classNameHostElement)):(remove(_sizeObserverElement),_contentElement.contents().unwrap().unwrap().unwrap(),_isTextarea&&(_targetElement.unwrap(),remove(_hostElement),remove(_textareaCoverElement),applyAdoptedAttrs())),_isTextarea&&_targetElement.removeAttr(LEXICON.s),_isBody&&removeClass(_htmlElement,_classNameHTMLElement)):(_isTextarea&&(_currentPreparedOptions.sizeAutoCapable||(hostElementCSS[_strWidth]=_targetElement.css(_strWidth),hostElementCSS[_strHeight]=_targetElement.css(_strHeight)),_domExists||_targetElement.addClass(_classNameTextInherit).wrap(_hostElement),_hostElement=_targetElement[strParent]().css(hostElementCSS)),_domExists||(addClass(_targetElement,_isTextarea?classNameTextareaElementFull:_classNameHostElement),_hostElement.wrapInner(_contentElement).wrapInner(_viewportElement).wrapInner(_paddingElement).prepend(_sizeObserverElement),_contentElement=findFirst(_hostElement,_strDot+_classNameContentElement),_viewportElement=findFirst(_hostElement,_strDot+_classNameViewportElement),_paddingElement=findFirst(_hostElement,_strDot+_classNamePaddingElement),_isTextarea&&(_contentElement.prepend(_textareaCoverElement),applyAdoptedAttrs())),_nativeScrollbarStyling&&addClass(_viewportElement,_classNameViewportNativeScrollbarsInvisible),_nativeScrollbarIsOverlaid.x&&_nativeScrollbarIsOverlaid.y&&addClass(_viewportElement,_classNameViewportNativeScrollbarsOverlaid),_isBody&&addClass(_htmlElement,_classNameHTMLElement),_sizeObserverElementNative=_sizeObserverElement[0],_hostElementNative=_hostElement[0],_paddingElementNative=_paddingElement[0],_viewportElementNative=_viewportElement[0],_contentElementNative=_contentElement[0],updateViewportAttrsFromTarget())}function setupStructureEvents(){var textareaUpdateIntervalID,scrollStopTimeoutId,textareaKeyDownRestrictedKeyCodes=[112,113,114,115,116,117,118,119,120,121,123,33,34,37,38,39,40,16,17,18,19,20,144],textareaKeyDownKeyCodesList=[],scrollStopDelay=175,strFocus="focus";function updateTextarea(doClearInterval){textareaUpdate(),_base.update(_strAuto),doClearInterval&&_autoUpdateRecommended&&clearInterval(textareaUpdateIntervalID)}function textareaOnScroll(event){return _targetElement[_strScrollLeft](_rtlScrollBehavior.i&&_normalizeRTLCache?9999999:0),_targetElement[_strScrollTop](0),COMPATIBILITY.prvD(event),COMPATIBILITY.stpP(event),!1}function textareaOnDrop(event){setTimeout((function(){_destroyed||updateTextarea()}),50)}function textareaOnFocus(){_textareaHasFocus=!0,addClass(_hostElement,strFocus)}function textareaOnFocusout(){_textareaHasFocus=!1,textareaKeyDownKeyCodesList=[],removeClass(_hostElement,strFocus),updateTextarea(!0)}function textareaOnKeyDown(event){var keyCode=event.keyCode;inArray(keyCode,textareaKeyDownRestrictedKeyCodes)<0&&(textareaKeyDownKeyCodesList[LEXICON.l]||(updateTextarea(),textareaUpdateIntervalID=setInterval(updateTextarea,1e3/60)),inArray(keyCode,textareaKeyDownKeyCodesList)<0&&textareaKeyDownKeyCodesList.push(keyCode))}function textareaOnKeyUp(event){var keyCode=event.keyCode,index=inArray(keyCode,textareaKeyDownKeyCodesList);inArray(keyCode,textareaKeyDownRestrictedKeyCodes)<0&&(index>-1&&textareaKeyDownKeyCodesList.splice(index,1),textareaKeyDownKeyCodesList[LEXICON.l]||updateTextarea(!0))}function contentOnTransitionEnd(event){!0!==_autoUpdateCache&&isSizeAffectingCSSProperty((event=event.originalEvent||event).propertyName)&&_base.update(_strAuto)}function viewportOnScroll(event){_sleeping||(scrollStopTimeoutId!==undefined$1?clearTimeout(scrollStopTimeoutId):((_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove)&&refreshScrollbarsAutoHide(!0),nativeOverlayScrollbarsAreActive()||addClass(_hostElement,_classNameHostScrolling),dispatchCallback("onScrollStart",event)),_scrollbarsHandlesDefineScrollPos||(refreshScrollbarHandleOffset(!0),refreshScrollbarHandleOffset(!1)),dispatchCallback("onScroll",event),scrollStopTimeoutId=setTimeout((function(){_destroyed||(clearTimeout(scrollStopTimeoutId),scrollStopTimeoutId=undefined$1,(_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove)&&refreshScrollbarsAutoHide(!1),nativeOverlayScrollbarsAreActive()||removeClass(_hostElement,_classNameHostScrolling),dispatchCallback("onScrollStop",event))}),scrollStopDelay))}_isTextarea?(_msieVersion>9||!_autoUpdateRecommended?addDestroyEventListener(_targetElement,"input",updateTextarea):addDestroyEventListener(_targetElement,[_strKeyDownEvent,_strKeyUpEvent],[textareaOnKeyDown,textareaOnKeyUp]),addDestroyEventListener(_targetElement,[_strScroll,"drop",strFocus,strFocus+"out"],[textareaOnScroll,textareaOnDrop,textareaOnFocus,textareaOnFocusout])):addDestroyEventListener(_contentElement,_strTransitionEndEvent,contentOnTransitionEnd),addDestroyEventListener(_viewportElement,_strScroll,viewportOnScroll,!0)}function setupScrollbarsDOM(destroy){var horizontalElements,verticalElements,selectOrGenerateScrollbarDOM=function selectOrGenerateScrollbarDOM(isHorizontal){var scrollbar=selectOrGenerateDivByClass(_classNameScrollbar+_strSpace+(isHorizontal?_classNameScrollbarHorizontal:_classNameScrollbarVertical),!0),track=selectOrGenerateDivByClass(_classNameScrollbarTrack,scrollbar),handle=selectOrGenerateDivByClass(_classNameScrollbarHandle,scrollbar);return _domExists||destroy||(scrollbar.append(track),track.append(handle)),{_scrollbar:scrollbar,_track:track,_handle:handle}};function resetScrollbarDOM(isHorizontal){var scrollbarVars=getScrollbarVars(isHorizontal),scrollbar=scrollbarVars._scrollbar,track=scrollbarVars._track,handle=scrollbarVars._handle;_domExists&&_initialized?each([scrollbar,track,handle],(function(i,elm){removeClass(elm.removeAttr(LEXICON.s),_classNamesDynamicDestroy)})):remove(scrollbar||selectOrGenerateScrollbarDOM(isHorizontal)._scrollbar)}destroy?(resetScrollbarDOM(!0),resetScrollbarDOM()):(horizontalElements=selectOrGenerateScrollbarDOM(!0),verticalElements=selectOrGenerateScrollbarDOM(),_scrollbarHorizontalElement=horizontalElements._scrollbar,_scrollbarHorizontalTrackElement=horizontalElements._track,_scrollbarHorizontalHandleElement=horizontalElements._handle,_scrollbarVerticalElement=verticalElements._scrollbar,_scrollbarVerticalTrackElement=verticalElements._track,_scrollbarVerticalHandleElement=verticalElements._handle,_domExists||(_paddingElement.after(_scrollbarVerticalElement),_paddingElement.after(_scrollbarHorizontalElement)))}function setupScrollbarEvents(isHorizontal){var trackTimeout,mouseDownScroll,mouseDownOffset,mouseDownInvertedScale,scrollbarVars=getScrollbarVars(isHorizontal),scrollbarVarsInfo=scrollbarVars._info,insideIFrame=_windowElementNative.top!==_windowElementNative,xy=scrollbarVars._x_y,XY=scrollbarVars._X_Y,scroll=_strScroll+scrollbarVars._Left_Top,strActive="active",strSnapHandle="snapHandle",strClickEvent="click",scrollDurationFactor=1,increaseDecreaseScrollAmountKeyCodes=[16,17];function getPointerPosition(event){return _msieVersion&&insideIFrame?event["screen"+XY]:COMPATIBILITY.page(event)[xy]}function getPreparedScrollbarsOption(name){return _currentPreparedOptions.scrollbars[name]}function increaseTrackScrollAmount(){scrollDurationFactor=.5}function decreaseTrackScrollAmount(){scrollDurationFactor=1}function stopClickEventPropagation(event){COMPATIBILITY.stpP(event)}function documentKeyDown(event){inArray(event.keyCode,increaseDecreaseScrollAmountKeyCodes)>-1&&increaseTrackScrollAmount()}function documentKeyUp(event){inArray(event.keyCode,increaseDecreaseScrollAmountKeyCodes)>-1&&decreaseTrackScrollAmount()}function onMouseTouchDownContinue(event){var isTouchEvent=(event.originalEvent||event).touches!==undefined$1;return!(_sleeping||_destroyed||nativeOverlayScrollbarsAreActive()||!_scrollbarsDragScrollingCache||isTouchEvent&&!getPreparedScrollbarsOption("touchSupport"))&&(1===COMPATIBILITY.mBtn(event)||isTouchEvent)}function documentDragMove(event){if(onMouseTouchDownContinue(event)){var trackLength=scrollbarVarsInfo._trackLength,handleLength=scrollbarVarsInfo._handleLength,scrollDelta=scrollbarVarsInfo._maxScroll*((getPointerPosition(event)-mouseDownOffset)*mouseDownInvertedScale/(trackLength-handleLength));scrollDelta=isFinite(scrollDelta)?scrollDelta:0,_isRTL&&isHorizontal&&!_rtlScrollBehavior.i&&(scrollDelta*=-1),_viewportElement[scroll](MATH.round(mouseDownScroll+scrollDelta)),_scrollbarsHandlesDefineScrollPos&&refreshScrollbarHandleOffset(isHorizontal,mouseDownScroll+scrollDelta),_supportPassiveEvents||COMPATIBILITY.prvD(event)}else documentMouseTouchUp(event)}function documentMouseTouchUp(event){if(event=event||event.originalEvent,setupResponsiveEventListener(_documentElement,[_strMouseTouchMoveEvent,_strMouseTouchUpEvent,_strKeyDownEvent,_strKeyUpEvent,_strSelectStartEvent],[documentDragMove,documentMouseTouchUp,documentKeyDown,documentKeyUp,documentOnSelectStart],!0),COMPATIBILITY.rAF()((function(){setupResponsiveEventListener(_documentElement,strClickEvent,stopClickEventPropagation,!0,{_capture:!0})})),_scrollbarsHandlesDefineScrollPos&&refreshScrollbarHandleOffset(isHorizontal,!0),_scrollbarsHandlesDefineScrollPos=!1,removeClass(_bodyElement,_classNameDragging),removeClass(scrollbarVars._handle,strActive),removeClass(scrollbarVars._track,strActive),removeClass(scrollbarVars._scrollbar,strActive),mouseDownScroll=undefined$1,mouseDownOffset=undefined$1,mouseDownInvertedScale=1,decreaseTrackScrollAmount(),trackTimeout!==undefined$1&&(_base.scrollStop(),clearTimeout(trackTimeout),trackTimeout=undefined$1),event){var rect=_hostElementNative[LEXICON.bCR]();event.clientX>=rect.left&&event.clientX<=rect.right&&event.clientY>=rect.top&&event.clientY<=rect.bottom||hostOnMouseLeave(),(_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove)&&refreshScrollbarsAutoHide(!1)}}function onHandleMouseTouchDown(event){onMouseTouchDownContinue(event)&&onHandleMouseTouchDownAction(event)}function onHandleMouseTouchDownAction(event){mouseDownScroll=_viewportElement[scroll](),mouseDownScroll=isNaN(mouseDownScroll)?0:mouseDownScroll,(_isRTL&&isHorizontal&&!_rtlScrollBehavior.n||!_isRTL)&&(mouseDownScroll=mouseDownScroll<0?0:mouseDownScroll),mouseDownInvertedScale=getHostElementInvertedScale()[xy],mouseDownOffset=getPointerPosition(event),_scrollbarsHandlesDefineScrollPos=!getPreparedScrollbarsOption(strSnapHandle),addClass(_bodyElement,_classNameDragging),addClass(scrollbarVars._handle,strActive),addClass(scrollbarVars._scrollbar,strActive),setupResponsiveEventListener(_documentElement,[_strMouseTouchMoveEvent,_strMouseTouchUpEvent,_strSelectStartEvent],[documentDragMove,documentMouseTouchUp,documentOnSelectStart]),COMPATIBILITY.rAF()((function(){setupResponsiveEventListener(_documentElement,strClickEvent,stopClickEventPropagation,!1,{_capture:!0})})),!_msieVersion&&_documentMixed||COMPATIBILITY.prvD(event),COMPATIBILITY.stpP(event)}function onTrackMouseTouchDown(event){if(onMouseTouchDownContinue(event)){var decreaseScroll,handleToViewportRatio=scrollbarVars._info._handleLength/Math.round(MATH.min(1,_viewportSize[scrollbarVars._w_h]/_contentScrollSizeCache[scrollbarVars._w_h])*scrollbarVars._info._trackLength),scrollDistance=MATH.round(_viewportSize[scrollbarVars._w_h]*handleToViewportRatio),scrollBaseDuration=270*handleToViewportRatio,scrollFirstIterationDelay=400*handleToViewportRatio,trackOffset=scrollbarVars._track.offset()[scrollbarVars._left_top],ctrlKey=event.ctrlKey,instantScroll=event.shiftKey,instantScrollTransition=instantScroll&&ctrlKey,isFirstIteration=!0,easing="linear",scrollActionFinsished=function scrollActionFinsished(transition){_scrollbarsHandlesDefineScrollPos&&refreshScrollbarHandleOffset(isHorizontal,transition)},scrollActionInstantFinished=function scrollActionInstantFinished(){scrollActionFinsished(),onHandleMouseTouchDownAction(event)},scrollAction=function scrollAction(){if(!_destroyed){var mouseOffset=(mouseDownOffset-trackOffset)*mouseDownInvertedScale,handleOffset=scrollbarVarsInfo._handleOffset,trackLength=scrollbarVarsInfo._trackLength,handleLength=scrollbarVarsInfo._handleLength,scrollRange=scrollbarVarsInfo._maxScroll,currScroll=scrollbarVarsInfo._currentScroll,scrollDuration=scrollBaseDuration*scrollDurationFactor,timeoutDelay=isFirstIteration?MATH.max(scrollFirstIterationDelay,scrollDuration):scrollDuration,instantScrollPosition=scrollRange*((mouseOffset-handleLength/2)/(trackLength-handleLength)),rtlIsNormal=_isRTL&&isHorizontal&&(!_rtlScrollBehavior.i&&!_rtlScrollBehavior.n||_normalizeRTLCache),decreaseScrollCondition=rtlIsNormal?handleOffsetmouseOffset,scrollObj={},animationObj={easing:easing,step:function step(now){_scrollbarsHandlesDefineScrollPos&&(_viewportElement[scroll](now),refreshScrollbarHandleOffset(isHorizontal,now))}};instantScrollPosition=isFinite(instantScrollPosition)?instantScrollPosition:0,instantScrollPosition=_isRTL&&isHorizontal&&!_rtlScrollBehavior.i?scrollRange-instantScrollPosition:instantScrollPosition,instantScroll?(_viewportElement[scroll](instantScrollPosition),instantScrollTransition?(instantScrollPosition=_viewportElement[scroll](),_viewportElement[scroll](currScroll),instantScrollPosition=rtlIsNormal&&_rtlScrollBehavior.i?scrollRange-instantScrollPosition:instantScrollPosition,instantScrollPosition=rtlIsNormal&&_rtlScrollBehavior.n?-instantScrollPosition:instantScrollPosition,scrollObj[xy]=instantScrollPosition,_base.scroll(scrollObj,extendDeep(animationObj,{duration:130,complete:scrollActionInstantFinished}))):scrollActionInstantFinished()):(decreaseScroll=isFirstIteration?decreaseScrollCondition:decreaseScroll,(rtlIsNormal?decreaseScroll?handleOffset+handleLength>=mouseOffset:handleOffset<=mouseOffset:decreaseScroll?handleOffset<=mouseOffset:handleOffset+handleLength>=mouseOffset)?(clearTimeout(trackTimeout),_base.scrollStop(),trackTimeout=undefined$1,scrollActionFinsished(!0)):(trackTimeout=setTimeout(scrollAction,timeoutDelay),scrollObj[xy]=(decreaseScroll?"-=":"+=")+scrollDistance,_base.scroll(scrollObj,extendDeep(animationObj,{duration:scrollDuration}))),isFirstIteration=!1)}};ctrlKey&&increaseTrackScrollAmount(),mouseDownInvertedScale=getHostElementInvertedScale()[xy],mouseDownOffset=COMPATIBILITY.page(event)[xy],_scrollbarsHandlesDefineScrollPos=!getPreparedScrollbarsOption(strSnapHandle),addClass(_bodyElement,_classNameDragging),addClass(scrollbarVars._track,strActive),addClass(scrollbarVars._scrollbar,strActive),setupResponsiveEventListener(_documentElement,[_strMouseTouchUpEvent,_strKeyDownEvent,_strKeyUpEvent,_strSelectStartEvent],[documentMouseTouchUp,documentKeyDown,documentKeyUp,documentOnSelectStart]),scrollAction(),COMPATIBILITY.prvD(event),COMPATIBILITY.stpP(event)}}function onTrackMouseTouchEnter(event){_scrollbarsHandleHovered=!0,(_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove)&&refreshScrollbarsAutoHide(!0)}function onTrackMouseTouchLeave(event){_scrollbarsHandleHovered=!1,(_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove)&&refreshScrollbarsAutoHide(!1)}function onScrollbarMouseTouchDown(event){COMPATIBILITY.stpP(event)}addDestroyEventListener(scrollbarVars._handle,_strMouseTouchDownEvent,onHandleMouseTouchDown),addDestroyEventListener(scrollbarVars._track,[_strMouseTouchDownEvent,_strMouseEnter,_strMouseLeave],[onTrackMouseTouchDown,onTrackMouseTouchEnter,onTrackMouseTouchLeave]),addDestroyEventListener(scrollbarVars._scrollbar,_strMouseTouchDownEvent,onScrollbarMouseTouchDown),_supportTransition&&addDestroyEventListener(scrollbarVars._scrollbar,_strTransitionEndEvent,(function(event){event.target===scrollbarVars._scrollbar[0]&&(refreshScrollbarHandleLength(isHorizontal),refreshScrollbarHandleOffset(isHorizontal))}))}function refreshScrollbarAppearance(isHorizontal,shallBeVisible,canScroll){var scrollbarElement=isHorizontal?_scrollbarHorizontalElement:_scrollbarVerticalElement;addRemoveClass(_hostElement,isHorizontal?_classNameHostScrollbarHorizontalHidden:_classNameHostScrollbarVerticalHidden,!shallBeVisible),addRemoveClass(scrollbarElement,_classNameScrollbarUnusable,!canScroll)}function refreshScrollbarsAutoHide(shallBeVisible,delayfree){if(clearTimeout(_scrollbarsAutoHideTimeoutId),shallBeVisible)removeClass(_scrollbarHorizontalElement,_classNameScrollbarAutoHidden),removeClass(_scrollbarVerticalElement,_classNameScrollbarAutoHidden);else{var anyActive,strActive="active",hide=function hide(){_scrollbarsHandleHovered||_destroyed||(!(anyActive=_scrollbarHorizontalHandleElement.hasClass(strActive)||_scrollbarVerticalHandleElement.hasClass(strActive))&&(_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove||_scrollbarsAutoHideLeave)&&addClass(_scrollbarHorizontalElement,_classNameScrollbarAutoHidden),!anyActive&&(_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove||_scrollbarsAutoHideLeave)&&addClass(_scrollbarVerticalElement,_classNameScrollbarAutoHidden))};_scrollbarsAutoHideDelay>0&&!0!==delayfree?_scrollbarsAutoHideTimeoutId=setTimeout(hide,_scrollbarsAutoHideDelay):hide()}}function refreshScrollbarHandleLength(isHorizontal){var handleCSS={},scrollbarVars=getScrollbarVars(isHorizontal),scrollbarVarsInfo=scrollbarVars._info,digit=1e6,handleRatio=MATH.min(1,_viewportSize[scrollbarVars._w_h]/_contentScrollSizeCache[scrollbarVars._w_h]);handleCSS[scrollbarVars._width_height]=MATH.floor(100*handleRatio*digit)/digit+"%",nativeOverlayScrollbarsAreActive()||scrollbarVars._handle.css(handleCSS),scrollbarVarsInfo._handleLength=scrollbarVars._handle[0]["offset"+scrollbarVars._Width_Height],scrollbarVarsInfo._handleLengthRatio=handleRatio}function refreshScrollbarHandleOffset(isHorizontal,scrollOrTransition){var transformOffset,translateValue,transition=type(scrollOrTransition)==TYPES.b,transitionDuration=250,isRTLisHorizontal=_isRTL&&isHorizontal,scrollbarVars=getScrollbarVars(isHorizontal),scrollbarVarsInfo=scrollbarVars._info,strTranslateBrace="translate(",strTransform=VENDORS._cssProperty("transform"),strTransition=VENDORS._cssProperty("transition"),nativeScroll=isHorizontal?_viewportElement[_strScrollLeft]():_viewportElement[_strScrollTop](),currentScroll=scrollOrTransition===undefined$1||transition?nativeScroll:scrollOrTransition,handleLength=scrollbarVarsInfo._handleLength,trackLength=scrollbarVars._track[0]["offset"+scrollbarVars._Width_Height],handleTrackDiff=trackLength-handleLength,handleCSS={},maxScroll=(_viewportElementNative[_strScroll+scrollbarVars._Width_Height]-_viewportElementNative["client"+scrollbarVars._Width_Height])*(_rtlScrollBehavior.n&&isRTLisHorizontal?-1:1),getScrollRatio=function getScrollRatio(base){return isNaN(base/maxScroll)?0:MATH.max(0,MATH.min(1,base/maxScroll))},getHandleOffset=function getHandleOffset(scrollRatio){var offset=handleTrackDiff*scrollRatio;return offset=isNaN(offset)?0:offset,offset=isRTLisHorizontal&&!_rtlScrollBehavior.i?trackLength-handleLength-offset:offset,offset=MATH.max(0,offset)},scrollRatio=getScrollRatio(nativeScroll),handleOffset=getHandleOffset(getScrollRatio(currentScroll)),snappedHandleOffset=getHandleOffset(scrollRatio);scrollbarVarsInfo._maxScroll=maxScroll,scrollbarVarsInfo._currentScroll=nativeScroll,scrollbarVarsInfo._currentScrollRatio=scrollRatio,_supportTransform?(transformOffset=isRTLisHorizontal?-(trackLength-handleLength-handleOffset):handleOffset,translateValue=isHorizontal?strTranslateBrace+transformOffset+"px, 0)":strTranslateBrace+"0, "+transformOffset+"px)",handleCSS[strTransform]=translateValue,_supportTransition&&(handleCSS[strTransition]=transition&&MATH.abs(handleOffset-scrollbarVarsInfo._handleOffset)>1?getCSSTransitionString(scrollbarVars._handle)+", "+(strTransform+_strSpace+transitionDuration)+"ms":_strEmpty)):handleCSS[scrollbarVars._left_top]=handleOffset,nativeOverlayScrollbarsAreActive()||(scrollbarVars._handle.css(handleCSS),_supportTransform&&_supportTransition&&transition&&scrollbarVars._handle.one(_strTransitionEndEvent,(function(){_destroyed||scrollbarVars._handle.css(strTransition,_strEmpty)}))),scrollbarVarsInfo._handleOffset=handleOffset,scrollbarVarsInfo._snappedHandleOffset=snappedHandleOffset,scrollbarVarsInfo._trackLength=trackLength}function refreshScrollbarsInteractive(isTrack,value){var action=value?"removeClass":"addClass",element2=isTrack?_scrollbarVerticalTrackElement:_scrollbarVerticalHandleElement,className=isTrack?_classNameScrollbarTrackOff:_classNameScrollbarHandleOff;(isTrack?_scrollbarHorizontalTrackElement:_scrollbarHorizontalHandleElement)[action](className),element2[action](className)}function getScrollbarVars(isHorizontal){return{_width_height:isHorizontal?_strWidth:_strHeight,_Width_Height:isHorizontal?"Width":"Height",_left_top:isHorizontal?_strLeft:_strTop,_Left_Top:isHorizontal?"Left":"Top",_x_y:isHorizontal?_strX:_strY,_X_Y:isHorizontal?"X":"Y",_w_h:isHorizontal?"w":"h",_l_t:isHorizontal?"l":"t",_track:isHorizontal?_scrollbarHorizontalTrackElement:_scrollbarVerticalTrackElement,_handle:isHorizontal?_scrollbarHorizontalHandleElement:_scrollbarVerticalHandleElement,_scrollbar:isHorizontal?_scrollbarHorizontalElement:_scrollbarVerticalElement,_info:isHorizontal?_scrollHorizontalInfo:_scrollVerticalInfo}}function setupScrollbarCornerDOM(destroy){_scrollbarCornerElement=_scrollbarCornerElement||selectOrGenerateDivByClass(_classNameScrollbarCorner,!0),destroy?_domExists&&_initialized?removeClass(_scrollbarCornerElement.removeAttr(LEXICON.s),_classNamesDynamicDestroy):remove(_scrollbarCornerElement):_domExists||_hostElement.append(_scrollbarCornerElement)}function setupScrollbarCornerEvents(){var reconnectMutationObserver,insideIFrame=_windowElementNative.top!==_windowElementNative,mouseDownPosition={},mouseDownSize={},mouseDownInvertedScale={};function documentDragMove(event){if(onMouseTouchDownContinue(event)){var pageOffset=getCoordinates(event),hostElementCSS={};(_resizeHorizontal||_resizeBoth)&&(hostElementCSS[_strWidth]=mouseDownSize.w+(pageOffset.x-mouseDownPosition.x)*mouseDownInvertedScale.x),(_resizeVertical||_resizeBoth)&&(hostElementCSS[_strHeight]=mouseDownSize.h+(pageOffset.y-mouseDownPosition.y)*mouseDownInvertedScale.y),_hostElement.css(hostElementCSS),COMPATIBILITY.stpP(event)}else documentMouseTouchUp(event)}function documentMouseTouchUp(event){var eventIsTrusted=event!==undefined$1;setupResponsiveEventListener(_documentElement,[_strSelectStartEvent,_strMouseTouchMoveEvent,_strMouseTouchUpEvent],[documentOnSelectStart,documentDragMove,documentMouseTouchUp],!0),removeClass(_bodyElement,_classNameDragging),_scrollbarCornerElement.releaseCapture&&_scrollbarCornerElement.releaseCapture(),eventIsTrusted&&(reconnectMutationObserver&&connectMutationObservers(),_base.update(_strAuto)),reconnectMutationObserver=!1}function onMouseTouchDownContinue(event){var isTouchEvent=(event.originalEvent||event).touches!==undefined$1;return!_sleeping&&!_destroyed&&(1===COMPATIBILITY.mBtn(event)||isTouchEvent)}function getCoordinates(event){return _msieVersion&&insideIFrame?{x:event.screenX,y:event.screenY}:COMPATIBILITY.page(event)}addDestroyEventListener(_scrollbarCornerElement,_strMouseTouchDownEvent,(function(event){onMouseTouchDownContinue(event)&&!_resizeNone&&(_mutationObserversConnected&&(reconnectMutationObserver=!0,disconnectMutationObservers()),mouseDownPosition=getCoordinates(event),mouseDownSize.w=_hostElementNative[LEXICON.oW]-(_isBorderBox?0:_paddingX),mouseDownSize.h=_hostElementNative[LEXICON.oH]-(_isBorderBox?0:_paddingY),mouseDownInvertedScale=getHostElementInvertedScale(),setupResponsiveEventListener(_documentElement,[_strSelectStartEvent,_strMouseTouchMoveEvent,_strMouseTouchUpEvent],[documentOnSelectStart,documentDragMove,documentMouseTouchUp]),addClass(_bodyElement,_classNameDragging),_scrollbarCornerElement.setCapture&&_scrollbarCornerElement.setCapture(),COMPATIBILITY.prvD(event),COMPATIBILITY.stpP(event))}))}function dispatchCallback(name,args,dependent){if(!1!==dependent)if(_initialized){var ext,callback=_currentPreparedOptions.callbacks[name],extensionOnName=name;"on"===extensionOnName.substr(0,2)&&(extensionOnName=extensionOnName.substr(2,1).toLowerCase()+extensionOnName.substr(3)),type(callback)==TYPES.f&&callback.call(_base,args),each(_extensions,(function(){type((ext=this).on)==TYPES.f&&ext.on(extensionOnName,args)}))}else _destroyed||_callbacksInitQeueue.push({n:name,a:args})}function setTopRightBottomLeft(targetCSSObject,prefix,values){values=values||[_strEmpty,_strEmpty,_strEmpty,_strEmpty],targetCSSObject[(prefix=prefix||_strEmpty)+_strTop]=values[0],targetCSSObject[prefix+_strRight]=values[1],targetCSSObject[prefix+_strBottom]=values[2],targetCSSObject[prefix+_strLeft]=values[3]}function getTopRightBottomLeftHost(prefix,suffix,zeroX,zeroY){return suffix=suffix||_strEmpty,prefix=prefix||_strEmpty,{t:zeroY?0:parseToZeroOrNumber(_hostElement.css(prefix+_strTop+suffix)),r:zeroX?0:parseToZeroOrNumber(_hostElement.css(prefix+_strRight+suffix)),b:zeroY?0:parseToZeroOrNumber(_hostElement.css(prefix+_strBottom+suffix)),l:zeroX?0:parseToZeroOrNumber(_hostElement.css(prefix+_strLeft+suffix))}}function getCSSTransitionString(element){var transitionStr=VENDORS._cssProperty("transition"),assembledValue=element.css(transitionStr);if(assembledValue)return assembledValue;for(var strResult,valueArray,j,regExpString="\\s*(([^,(]+(\\(.+?\\))?)+)[\\s,]*",regExpMain=new RegExp(regExpString),regExpValidate=new RegExp("^("+regExpString+")+$"),properties="property duration timing-function delay".split(" "),result=[],i=0,splitCssStyleByComma=function splitCssStyleByComma(str){if(strResult=[],!str.match(regExpValidate))return str;for(;str.match(regExpMain);)strResult.push(RegExp.$1),str=str.replace(regExpMain,_strEmpty);return strResult};itextareaLastCol&&(widestRow=i+1,textareaLastCol=rowCols);return{_cursorRow:cursorRow,_cursorColumn:cursorCol,_rows:textareaLastRow,_columns:textareaLastCol,_widestRow:widestRow,_cursorPosition:textareaCursorPosition,_cursorMax:textareaLength}}}function nativeOverlayScrollbarsAreActive(){return _ignoreOverlayScrollbarHidingCache&&_nativeScrollbarIsOverlaid.x&&_nativeScrollbarIsOverlaid.y}function getContentMeasureElement(){return _isTextarea?_textareaCoverElement[0]:_contentElementNative}function generateDiv(classesOrAttrs,content){return"
"+(content||_strEmpty)+"
"}function selectOrGenerateDivByClass(className,selectParentOrOnlyChildren){var onlyChildren=type(selectParentOrOnlyChildren)==TYPES.b,selectParent=onlyChildren?_hostElement:selectParentOrOnlyChildren||_hostElement;return _domExists&&!selectParent[LEXICON.l]?null:_domExists?selectParent[onlyChildren?"children":"find"](_strDot+className.replace(/\s/g,_strDot)).eq(0):FRAMEWORK(generateDiv(className))}function getObjectPropVal(obj,path){for(var val,splits=path.split(_strDot),i=0;i0&&(optsIsPlainObj?FRAMEWORK.each(pluginTargetElements,(function(i,v){(inst=v)!==undefined$1&&arr.push(OverlayScrollbarsInstance(inst,options,extensions,_pluginsGlobals,_pluginsAutoUpdateLoop))})):FRAMEWORK.each(pluginTargetElements,(function(i,v){inst=INSTANCES(v),("!"===options&&_plugin.valid(inst)||COMPATIBILITY.type(options)==TYPES.f&&options(v,inst)||options===undefined$1)&&arr.push(inst)})),result=1===arr[LEXICON.l]?arr[0]:arr),result):optsIsPlainObj||!options?result:arr},_plugin.globals=function(){initOverlayScrollbarsStatics();var globals=FRAMEWORK.extend(!0,{},_pluginsGlobals);return delete globals.msie,globals},_plugin.defaultOptions=function(newDefaultOptions){initOverlayScrollbarsStatics();var currDefaultOptions=_pluginsGlobals.defaultOptions;if(newDefaultOptions===undefined$1)return FRAMEWORK.extend(!0,{},currDefaultOptions);_pluginsGlobals.defaultOptions=FRAMEWORK.extend(!0,{},currDefaultOptions,_pluginsOptions._validate(newDefaultOptions,_pluginsOptions._template,!0,currDefaultOptions)._default)},_plugin.valid=function(osInstance){return osInstance instanceof _plugin&&!osInstance.getState().destroyed},_plugin.extension=function(extensionName,extension,defaultOptions){var extNameTypeString=COMPATIBILITY.type(extensionName)==TYPES.s,argLen=arguments[LEXICON.l],i=0;if(argLen<1||!extNameTypeString)return FRAMEWORK.extend(!0,{length:_pluginsExtensions[LEXICON.l]},_pluginsExtensions);if(extNameTypeString)if(COMPATIBILITY.type(extension)==TYPES.f)_pluginsExtensions.push({name:extensionName,extensionFactory:extension,defaultOptions:defaultOptions});else for(;i<_pluginsExtensions[LEXICON.l];i++)if(_pluginsExtensions[i].name===extensionName){if(!(argLen>1))return FRAMEWORK.extend(!0,{},_pluginsExtensions[i]);_pluginsExtensions.splice(i,1)}},_plugin}();return JQUERY&&JQUERY.fn&&(JQUERY.fn.overlayScrollbars=function(options,extensions){var _elements=this;return JQUERY.isPlainObject(options)?(JQUERY.each(_elements,(function(){PLUGIN(this,options,extensions)})),_elements):PLUGIN(_elements,options)}),PLUGIN}(global,global.document,void 0);var OverlayScrollbars=OverlayScrollbars$1.exports,OverlayScrollbarsComponent=function OverlayScrollbarsComponent(_a){var _a$options=_a.options,options=void 0===_a$options?{}:_a$options,extensions=_a.extensions,className=_a.className,children=_a.children,rest=(0,_index_b45716e8_js__WEBPACK_IMPORTED_MODULE_26__.a)(_a,["options","extensions","className","children"]),osTargetRef=(0,react__WEBPACK_IMPORTED_MODULE_22__.useRef)(),osInstance=(0,react__WEBPACK_IMPORTED_MODULE_22__.useRef)();return(0,react__WEBPACK_IMPORTED_MODULE_22__.useEffect)((function(){return osInstance.current=OverlayScrollbars(osTargetRef.current,options,extensions),mergeHostClassNames(osInstance.current,className),function(){OverlayScrollbars.valid(osInstance.current)&&(osInstance.current.destroy(),osInstance.current=null)}}),[]),(0,react__WEBPACK_IMPORTED_MODULE_22__.useEffect)((function(){OverlayScrollbars.valid(osInstance.current)&&osInstance.current.options(options)}),[options]),(0,react__WEBPACK_IMPORTED_MODULE_22__.useEffect)((function(){OverlayScrollbars.valid(osInstance.current)&&mergeHostClassNames(osInstance.current,className)}),[className]),react__WEBPACK_IMPORTED_MODULE_22__.createElement("div",Object.assign({className:"os-host"},rest,{ref:osTargetRef}),react__WEBPACK_IMPORTED_MODULE_22__.createElement("div",{className:"os-resize-observer-host"}),react__WEBPACK_IMPORTED_MODULE_22__.createElement("div",{className:"os-padding"},react__WEBPACK_IMPORTED_MODULE_22__.createElement("div",{className:"os-viewport"},react__WEBPACK_IMPORTED_MODULE_22__.createElement("div",{className:"os-content"},children))),react__WEBPACK_IMPORTED_MODULE_22__.createElement("div",{className:"os-scrollbar os-scrollbar-horizontal "},react__WEBPACK_IMPORTED_MODULE_22__.createElement("div",{className:"os-scrollbar-track"},react__WEBPACK_IMPORTED_MODULE_22__.createElement("div",{className:"os-scrollbar-handle"}))),react__WEBPACK_IMPORTED_MODULE_22__.createElement("div",{className:"os-scrollbar os-scrollbar-vertical"},react__WEBPACK_IMPORTED_MODULE_22__.createElement("div",{className:"os-scrollbar-track"},react__WEBPACK_IMPORTED_MODULE_22__.createElement("div",{className:"os-scrollbar-handle"}))),react__WEBPACK_IMPORTED_MODULE_22__.createElement("div",{className:"os-scrollbar-corner"}))};function mergeHostClassNames(osInstance,className){if(OverlayScrollbars.valid(osInstance)){var host=osInstance.getElements().host,regex=new RegExp("(^os-host([-_].+|)$)|".concat(osInstance.options().className.replace(/\s/g,"$|"),"$"),"g"),osClassNames=host.className.split(" ").filter((function(name){return name.match(regex)})).join(" ");host.className="".concat(osClassNames," ").concat(className||"")}}}}]); \ No newline at end of file diff --git a/142.b6e828d3.iframe.bundle.js.LICENSE.txt b/142.b6e828d3.iframe.bundle.js.LICENSE.txt new file mode 100644 index 000000000..cfda1d61d --- /dev/null +++ b/142.b6e828d3.iframe.bundle.js.LICENSE.txt @@ -0,0 +1,12 @@ +/*! + * OverlayScrollbars + * https://github.com/KingSora/OverlayScrollbars + * + * Version: 1.13.0 + * + * Copyright KingSora | Rene Haas. + * https://github.com/KingSora + * + * Released under the MIT license. + * Date: 02.08.2020 + */ diff --git a/142.f4445b1b27f02bb3e539.manager.bundle.js b/142.f4445b1b27f02bb3e539.manager.bundle.js new file mode 100644 index 000000000..34c48e30f --- /dev/null +++ b/142.f4445b1b27f02bb3e539.manager.bundle.js @@ -0,0 +1,2 @@ +/*! For license information please see 142.f4445b1b27f02bb3e539.manager.bundle.js.LICENSE.txt */ +"use strict";(self.webpackChunk_headstorm_foundry_react_ui=self.webpackChunk_headstorm_foundry_react_ui||[]).push([[142],{43142:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{OverlayScrollbarsComponent:function(){return OverlayScrollbarsComponent},default:function(){return OverlayScrollbarsComponent}});__webpack_require__(47042),__webpack_require__(74916),__webpack_require__(15306),__webpack_require__(23123),__webpack_require__(92222),__webpack_require__(41539),__webpack_require__(39714),__webpack_require__(4723),__webpack_require__(69600),__webpack_require__(40561),__webpack_require__(57327),__webpack_require__(69826),__webpack_require__(24603),__webpack_require__(56977),__webpack_require__(68309),__webpack_require__(19601),__webpack_require__(82526),__webpack_require__(41817),__webpack_require__(32165),__webpack_require__(66992),__webpack_require__(78783),__webpack_require__(33948);var _index_b45716e8_js__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__(72857),react__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(67294);__webpack_require__(52326),__webpack_require__(35032),__webpack_require__(80129);function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}var module,global,OverlayScrollbars$1={exports:{}};module=OverlayScrollbars$1,global="undefined"!=typeof window?window:_index_b45716e8_js__WEBPACK_IMPORTED_MODULE_26__.c,module.exports=function(window,document,undefined$1){var _targets,_instancePropertyString,_easingsMath,PLUGINNAME="OverlayScrollbars",TYPES={o:"object",f:"function",a:"array",s:"string",b:"boolean",n:"number",u:"undefined",z:"null"},LEXICON={c:"class",s:"style",i:"id",l:"length",p:"prototype",ti:"tabindex",oH:"offsetHeight",cH:"clientHeight",sH:"scrollHeight",oW:"offsetWidth",cW:"clientWidth",sW:"scrollWidth",hOP:"hasOwnProperty",bCR:"getBoundingClientRect"},VENDORS=function(){var jsCache={},cssCache={},cssPrefixes=["-webkit-","-moz-","-o-","-ms-"],jsPrefixes=["WebKit","Moz","O","MS"];function firstLetterToUpper(str){return str.charAt(0).toUpperCase()+str.slice(1)}return{_cssPrefixes:cssPrefixes,_jsPrefixes:jsPrefixes,_cssProperty:function _cssProperty(name){var result=cssCache[name];if(cssCache[LEXICON.hOP](name))return result;for(var resultPossibilities,v,currVendorWithoutDashes,uppercasedName=firstLetterToUpper(name),elmStyle=document.createElement("div")[LEXICON.s],i=0;i0&&length-1 in obj)}function stripAndCollapse(value){return(value.match(_rnothtmlwhite)||[]).join(_strSpace)}function matches(elem,selector){for(var nodeList=(elem.parentNode||document).querySelectorAll(selector)||[],i=nodeList[LEXICON.l];i--;)if(nodeList[i]==elem)return!0;return!1}function insertAdjacentElement(el,strategy,child){if(COMPATIBILITY.isA(child))for(var i=0;i0?(nextAnim=animObj.q[0],_animate(animObj.el,nextAnim.props,nextAnim.duration,nextAnim.easing,nextAnim.complete,!0)):(index=inArray(animObj,_animations))>-1&&_animations.splice(index,1)}function setAnimationValue(el,prop,value){prop===_strScrollLeft||prop===_strScrollTop?el[prop]=value:setCSSVal(el,prop,value)}function _animate(el,props,options,easing,complete,guaranteedNext){var key,animObj,progress,step,specialEasing,duration,hasOptions=isPlainObject(options),from={},to={},i=0;for(hasOptions?(easing=options.easing,progress=options.progress,step=options.step,specialEasing=options.specialEasing,complete=options.complete,duration=options.duration):duration=options,specialEasing=specialEasing||{},duration=duration||400,easing=easing||"swing",guaranteedNext=guaranteedNext||!1;i<_animations[LEXICON.l];i++)if(_animations[i].el===el){animObj=_animations[i];break}for(key in animObj||(animObj={el:el,q:[]},_animations.push(animObj)),props)from[key]=key===_strScrollLeft||key===_strScrollTop?el[key]:FakejQuery(el).css(key);for(key in from)from[key]!==props[key]&&props[key]!==undefined$1&&(to[key]=props[key]);if(isEmptyObject(to))guaranteedNext&&startNextAnimationInQ(animObj);else{var timeNow,end,percent,fromVal,toVal,easedVal,timeStart,_frame,elapsed,qPos=guaranteedNext?0:inArray(qObj,animObj.q),qObj={props:to,duration:hasOptions?options:duration,easing:easing,complete:complete};if(-1===qPos&&(qPos=animObj.q[LEXICON.l],animObj.q.push(qObj)),0===qPos)if(duration>0)timeStart=COMPATIBILITY.now(),_frame=function frame(){for(key in timeNow=COMPATIBILITY.now(),elapsed=timeNow-timeStart,end=qObj.stop||elapsed>=duration,percent=1-(MATH.max(0,timeStart+duration-timeNow)/duration||0),to)fromVal=parseFloat(from[key]),toVal=parseFloat(to[key]),easedVal=(toVal-fromVal)*EASING[specialEasing[key]||easing](percent,percent*duration,0,1,duration)+fromVal,setAnimationValue(el,key,easedVal),isFunction(step)&&step(easedVal,{elem:el,prop:key,start:fromVal,now:easedVal,end:toVal,pos:percent,options:{easing:easing,speacialEasing:specialEasing,duration:duration,complete:complete,step:step},startTime:timeStart});isFunction(progress)&&progress({},percent,MATH.max(0,duration-elapsed)),end?(startNextAnimationInQ(animObj),isFunction(complete)&&complete()):qObj.frame=COMPATIBILITY.rAF()(_frame)},qObj.frame=COMPATIBILITY.rAF()(_frame);else{for(key in to)setAnimationValue(el,key,to[key]);startNextAnimationInQ(animObj)}}}function _stop(el,clearQ,jumpToEnd){for(var animObj,qObj,key,i=0;i<_animations[LEXICON.l];i++)if((animObj=_animations[i]).el===el){if(animObj.q[LEXICON.l]>0){if((qObj=animObj.q[0]).stop=!0,COMPATIBILITY.cAF()(qObj.frame),animObj.q.splice(0,1),jumpToEnd)for(key in qObj.props)setAnimationValue(el,key,qObj.props[key]);clearQ?animObj.q=[]:startNextAnimationInQ(animObj,!1)}break}}function elementIsVisible(el){return!!(el[LEXICON.oW]||el[LEXICON.oH]||el.getClientRects()[LEXICON.l])}function FakejQuery(selector){if(0===arguments[LEXICON.l])return this;var elms,el,base=new FakejQuery,elements=selector,i=0;if(_type(selector)==TYPES.s)for(elements=[],"<"===selector.charAt(0)?((el=document.createElement("div")).innerHTML=selector,elms=el.children):elms=document.querySelectorAll(selector);i0;)deepest=deepest.childNodes[0];for(i=0;nodes[LEXICON.l]-i;deepest.firstChild===nodes[0]&&i++)deepest.appendChild(nodes[i]);var nextSibling=previousSibling?previousSibling.nextSibling:parent.firstChild;return parent.insertBefore(wrapper,nextSibling),this},wrapInner:function wrapInner(wrapperHTML){return this.each((function(){var el=FakejQuery(this),contents=el.contents();contents[LEXICON.l]?contents.wrapAll(wrapperHTML):el.append(wrapperHTML)}))},wrap:function wrap(wrapperHTML){return this.each((function(){FakejQuery(this).wrapAll(wrapperHTML)}))},css:function css(styles,val){var el,key,cptStyle,getCptStyle=window.getComputedStyle;return _type(styles)==TYPES.s?val===undefined$1?(el=this[0],cptStyle=getCptStyle?getCptStyle(el,null):el.currentStyle[styles],getCptStyle?null!=cptStyle?cptStyle.getPropertyValue(styles):el[LEXICON.s][styles]:cptStyle):this.each((function(){setCSSVal(this,styles,val)})):this.each((function(){for(key in styles)setCSSVal(this,key,styles[key])}))},hasClass:function hasClass(className){for(var elem,classList,i=0,classNamePrepared=_strSpace+className+_strSpace;elem=this[i++];){if((classList=elem.classList)&&classList.contains(className))return!0;if(1===elem.nodeType&&(_strSpace+stripAndCollapse(elem.className+_strEmpty)+_strSpace).indexOf(classNamePrepared)>-1)return!0}return!1},addClass:function addClass(className){var classes,elem,cur,curValue,clazz,finalValue,supportClassList,elmClassList,i=0,v=0;if(className)for(classes=className.match(_rnothtmlwhite)||[];elem=this[i++];)if(elmClassList=elem.classList,supportClassList===undefined$1&&(supportClassList=elmClassList!==undefined$1),supportClassList)for(;clazz=classes[v++];)elmClassList.add(clazz);else if(curValue=elem.className+_strEmpty,cur=1===elem.nodeType&&_strSpace+stripAndCollapse(curValue)+_strSpace){for(;clazz=classes[v++];)cur.indexOf(_strSpace+clazz+_strSpace)<0&&(cur+=clazz+_strSpace);curValue!==(finalValue=stripAndCollapse(cur))&&(elem.className=finalValue)}return this},removeClass:function removeClass(className){var classes,elem,cur,curValue,clazz,finalValue,supportClassList,elmClassList,i=0,v=0;if(className)for(classes=className.match(_rnothtmlwhite)||[];elem=this[i++];)if(elmClassList=elem.classList,supportClassList===undefined$1&&(supportClassList=elmClassList!==undefined$1),supportClassList)for(;clazz=classes[v++];)elmClassList.remove(clazz);else if(curValue=elem.className+_strEmpty,cur=1===elem.nodeType&&_strSpace+stripAndCollapse(curValue)+_strSpace){for(;clazz=classes[v++];)for(;cur.indexOf(_strSpace+clazz+_strSpace)>-1;)cur=cur.replace(_strSpace+clazz+_strSpace,_strSpace);curValue!==(finalValue=stripAndCollapse(cur))&&(elem.className=finalValue)}return this},hide:function hide(){return this.each((function(){this[LEXICON.s].display="none"}))},show:function show(){return this.each((function(){this[LEXICON.s].display="block"}))},attr:function attr(attrName,value){for(var el,i=0;el=this[i++];){if(value===undefined$1)return el.getAttribute(attrName);el.setAttribute(attrName,value)}return this},removeAttr:function removeAttr(attrName){return this.each((function(){this.removeAttribute(attrName)}))},offset:function offset(){var rect=this[0][LEXICON.bCR](),scrollLeft=window.pageXOffset||document.documentElement[_strScrollLeft],scrollTop=window.pageYOffset||document.documentElement[_strScrollTop];return{top:rect.top+scrollTop,left:rect.left+scrollLeft}},position:function position(){var el=this[0];return{top:el.offsetTop,left:el.offsetLeft}},scrollLeft:function scrollLeft(value){for(var el,i=0;el=this[i++];){if(value===undefined$1)return el[_strScrollLeft];el[_strScrollLeft]=value}return this},scrollTop:function scrollTop(value){for(var el,i=0;el=this[i++];){if(value===undefined$1)return el[_strScrollTop];el[_strScrollTop]=value}return this},val:function val(value){var el=this[0];return value?(el.value=value,this):el.value},first:function first(){return this.eq(0)},last:function last(){return this.eq(-1)},eq:function eq(index){return FakejQuery(this[index>=0?index:this[LEXICON.l]+index])},find:function find(selector){var i,children=[];return this.each((function(){var ch=this.querySelectorAll(selector);for(i=0;i-1){if(!(argLen>1))return _targets[index][_instancePropertyString];delete target[_instancePropertyString],_targets.splice(index,1)}}}),PLUGIN=function(){var _plugin,_pluginsGlobals,_pluginsAutoUpdateLoop,type,possibleTemplateTypes,restrictedStringsSplit,restrictedStringsPossibilitiesSplit,classNameAllowedValues,numberAllowedValues,booleanNullAllowedValues,booleanTrueTemplate,booleanFalseTemplate,callbackTemplate,overflowBehaviorAllowedValues,optionsDefaultsAndTemplate,convert,_pluginsExtensions=[],_pluginsOptions=(type=COMPATIBILITY.type,possibleTemplateTypes=[TYPES.b,TYPES.n,TYPES.s,TYPES.a,TYPES.o,TYPES.f,TYPES.z],restrictedStringsSplit=" ",restrictedStringsPossibilitiesSplit=":",classNameAllowedValues=[TYPES.z,TYPES.s],numberAllowedValues=TYPES.n,booleanNullAllowedValues=[TYPES.z,TYPES.b],booleanTrueTemplate=[!0,TYPES.b],booleanFalseTemplate=[!1,TYPES.b],callbackTemplate=[null,[TYPES.z,TYPES.f]],overflowBehaviorAllowedValues="v-h:visible-hidden v-s:visible-scroll s:scroll h:hidden",optionsDefaultsAndTemplate={className:["os-theme-dark",classNameAllowedValues],resize:["none","n:none b:both h:horizontal v:vertical"],sizeAutoCapable:booleanTrueTemplate,clipAlways:booleanTrueTemplate,normalizeRTL:booleanTrueTemplate,paddingAbsolute:booleanFalseTemplate,autoUpdate:[null,booleanNullAllowedValues],autoUpdateInterval:[33,numberAllowedValues],updateOnLoad:[["img"],[TYPES.s,TYPES.a,TYPES.z]],nativeScrollbarsOverlaid:{showNativeScrollbars:booleanFalseTemplate,initialize:booleanTrueTemplate},overflowBehavior:{x:["scroll",overflowBehaviorAllowedValues],y:["scroll",overflowBehaviorAllowedValues]},scrollbars:{visibility:["auto","v:visible h:hidden a:auto"],autoHide:["never","n:never s:scroll l:leave m:move"],autoHideDelay:[800,numberAllowedValues],dragScrolling:booleanTrueTemplate,clickScrolling:booleanFalseTemplate,touchSupport:booleanTrueTemplate,snapHandle:booleanFalseTemplate},textarea:{dynWidth:booleanFalseTemplate,dynHeight:booleanFalseTemplate,inheritedAttrs:[["style","class"],[TYPES.s,TYPES.a,TYPES.z]]},callbacks:{onInitialized:callbackTemplate,onInitializationWithdrawn:callbackTemplate,onDestroyed:callbackTemplate,onScrollStart:callbackTemplate,onScroll:callbackTemplate,onScrollStop:callbackTemplate,onOverflowChanged:callbackTemplate,onOverflowAmountChanged:callbackTemplate,onDirectionChanged:callbackTemplate,onContentSizeChanged:callbackTemplate,onHostSizeChanged:callbackTemplate,onUpdated:callbackTemplate}},{_defaults:(convert=function convert(template){return function recursive(obj){var key,val,valType;for(key in obj)obj[LEXICON.hOP](key)&&(val=obj[key],(valType=type(val))==TYPES.a?obj[key]=val[template?1:0]:valType==TYPES.o&&(obj[key]=recursive(val)));return obj}(FRAMEWORK.extend(!0,{},optionsDefaultsAndTemplate))})(),_template:convert(!0),_validate:function _validate(obj,template,writeErrors,diffObj){var validatedOptions={},validatedOptionsPrepared={},objectCopy=FRAMEWORK.extend(!0,{},obj),inArray=FRAMEWORK.inArray,isEmptyObj=FRAMEWORK.isEmptyObject,checkObjectProps=function checkObjectProps(data,template,diffData,validatedOptions,validatedOptionsPrepared,prevPropName){for(var prop in template)if(template[LEXICON.hOP](prop)&&data[LEXICON.hOP](prop)){var restrictedStringValuesSplit,restrictedStringValuesPossibilitiesSplit,isRestrictedValue,mainPossibility,currType,i,v,j,isValid=!1,isDiff=!1,templateValue=template[prop],templateValueType=type(templateValue),templateIsComplex=templateValueType==TYPES.o,templateTypes=COMPATIBILITY.isA(templateValue)?templateValue:[templateValue],dataDiffValue=diffData[prop],dataValue=data[prop],dataValueType=type(dataValue),propPrefix=prevPropName?prevPropName+".":"",error='The option "'+propPrefix+prop+"\" wasn't set, because",errorPossibleTypes=[],errorRestrictedStrings=[];if(dataDiffValue=dataDiffValue===undefined$1?{}:dataDiffValue,templateIsComplex&&dataValueType==TYPES.o)validatedOptions[prop]={},validatedOptionsPrepared[prop]={},checkObjectProps(dataValue,templateValue,dataDiffValue,validatedOptions[prop],validatedOptionsPrepared[prop],propPrefix+prop),FRAMEWORK.each([data,validatedOptions,validatedOptionsPrepared],(function(index,value){isEmptyObj(value[prop])&&delete value[prop]}));else if(!templateIsComplex){for(i=0;i0?"\r\nValid strings are: [ "+errorRestrictedStrings.join(", ").split(restrictedStringsPossibilitiesSplit).join(", ")+" ].":"")),delete data[prop]}}};return checkObjectProps(objectCopy,template,diffObj||{},validatedOptions,validatedOptionsPrepared),!isEmptyObj(objectCopy)&&writeErrors&&console.warn("The following options are discarded due to invalidity:\r\n"+window.JSON.stringify(objectCopy,null,2)),{_default:validatedOptions,_prepared:validatedOptionsPrepared}}});function initOverlayScrollbarsStatics(){_pluginsGlobals||(_pluginsGlobals=new OverlayScrollbarsGlobals(_pluginsOptions._defaults)),_pluginsAutoUpdateLoop||(_pluginsAutoUpdateLoop=new OverlayScrollbarsAutoUpdateLoop(_pluginsGlobals))}function OverlayScrollbarsGlobals(defaultOptions){var _base=this,strOverflow="overflow",strHidden="hidden",strScroll="scroll",bodyElement=FRAMEWORK("body"),scrollbarDummyElement=FRAMEWORK('
'),scrollbarDummyElement0=scrollbarDummyElement[0],dummyContainerChild=FRAMEWORK(scrollbarDummyElement.children("div").eq(0));bodyElement.append(scrollbarDummyElement),scrollbarDummyElement.hide().show();var nativeScrollbarSize=calcNativeScrollbarSize(scrollbarDummyElement0),nativeScrollbarIsOverlaid={x:0===nativeScrollbarSize.x,y:0===nativeScrollbarSize.y},msie=function(){var result,ua=window.navigator.userAgent,strIndexOf="indexOf",strSubString="substring",msie=ua[strIndexOf]("MSIE "),trident=ua[strIndexOf]("Trident/"),edge=ua[strIndexOf]("Edge/"),rv=ua[strIndexOf]("rv:"),parseIntFunc=parseInt;return msie>0?result=parseIntFunc(ua[strSubString](msie+5,ua[strIndexOf](".",msie)),10):trident>0?result=parseIntFunc(ua[strSubString](rv+3,ua[strIndexOf](".",rv)),10):edge>0&&(result=parseIntFunc(ua[strSubString](edge+5,ua[strIndexOf](".",edge)),10)),result}();function calcNativeScrollbarSize(measureElement){return{x:measureElement[LEXICON.oH]-measureElement[LEXICON.cH],y:measureElement[LEXICON.oW]-measureElement[LEXICON.cW]}}FRAMEWORK.extend(_base,{defaultOptions:defaultOptions,msie:msie,autoUpdateLoop:!1,autoUpdateRecommended:!COMPATIBILITY.mO(),nativeScrollbarSize:nativeScrollbarSize,nativeScrollbarIsOverlaid:nativeScrollbarIsOverlaid,nativeScrollbarStyling:function(){var result=!1;scrollbarDummyElement.addClass("os-viewport-native-scrollbars-invisible");try{result="none"===scrollbarDummyElement.css("scrollbar-width")&&(msie>9||!msie)||"none"===window.getComputedStyle(scrollbarDummyElement0,"::-webkit-scrollbar").getPropertyValue("display")}catch(ex){}return result}(),overlayScrollbarDummySize:{x:30,y:30},cssCalc:VENDORS._cssPropertyValue("width","calc","(1px)")||null,restrictedMeasuring:function(){scrollbarDummyElement.css(strOverflow,strHidden);var scrollSize={w:scrollbarDummyElement0[LEXICON.sW],h:scrollbarDummyElement0[LEXICON.sH]};scrollbarDummyElement.css(strOverflow,"visible");var scrollSize2={w:scrollbarDummyElement0[LEXICON.sW],h:scrollbarDummyElement0[LEXICON.sH]};return scrollSize.w-scrollSize2.w!=0||scrollSize.h-scrollSize2.h!=0}(),rtlScrollBehavior:function(){scrollbarDummyElement.css({"overflow-y":strHidden,"overflow-x":strScroll,direction:"rtl"}).scrollLeft(0);var dummyContainerOffset=scrollbarDummyElement.offset(),dummyContainerChildOffset=dummyContainerChild.offset();scrollbarDummyElement.scrollLeft(-999);var dummyContainerChildOffsetAfterScroll=dummyContainerChild.offset();return{i:dummyContainerOffset.left===dummyContainerChildOffset.left,n:dummyContainerChildOffset.left!==dummyContainerChildOffsetAfterScroll.left}}(),supportTransform:!!VENDORS._cssProperty("transform"),supportTransition:!!VENDORS._cssProperty("transition"),supportPassiveEvents:function(){var supportsPassive=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function get(){supportsPassive=!0}}))}catch(e){}return supportsPassive}(),supportResizeObserver:!!COMPATIBILITY.rO(),supportMutationObserver:!!COMPATIBILITY.mO()}),scrollbarDummyElement.removeAttr(LEXICON.s).remove(),function(){if(!nativeScrollbarIsOverlaid.x||!nativeScrollbarIsOverlaid.y){var abs=MATH.abs,windowWidth=COMPATIBILITY.wW(),windowHeight=COMPATIBILITY.wH(),windowDpr=getWindowDPR(),onResize=function onResize(){if(INSTANCES().length>0){var newW=COMPATIBILITY.wW(),newH=COMPATIBILITY.wH(),deltaW=newW-windowWidth,deltaH=newH-windowHeight;if(0===deltaW&&0===deltaH)return;var newScrollbarSize,deltaWRatio=MATH.round(newW/(windowWidth/100)),deltaHRatio=MATH.round(newH/(windowHeight/100)),absDeltaW=abs(deltaW),absDeltaH=abs(deltaH),absDeltaWRatio=abs(deltaWRatio),absDeltaHRatio=abs(deltaHRatio),newDPR=getWindowDPR(),deltaIsBigger=absDeltaW>2&&absDeltaH>2,difference=!differenceIsBiggerThanOne(absDeltaWRatio,absDeltaHRatio),isZoom=deltaIsBigger&&difference&&newDPR!==windowDpr&&windowDpr>0,oldScrollbarSize=_base.nativeScrollbarSize;isZoom&&(bodyElement.append(scrollbarDummyElement),newScrollbarSize=_base.nativeScrollbarSize=calcNativeScrollbarSize(scrollbarDummyElement[0]),scrollbarDummyElement.remove(),oldScrollbarSize.x===newScrollbarSize.x&&oldScrollbarSize.y===newScrollbarSize.y||FRAMEWORK.each(INSTANCES(),(function(){INSTANCES(this)&&INSTANCES(this).update("zoom")}))),windowWidth=newW,windowHeight=newH,windowDpr=newDPR}};FRAMEWORK(window).on("resize",onResize)}function differenceIsBiggerThanOne(valOne,valTwo){var absValOne=abs(valOne),absValTwo=abs(valTwo);return!(absValOne===absValTwo||absValOne+1===absValTwo||absValOne-1===absValTwo)}function getWindowDPR(){var dDPI=window.screen.deviceXDPI||0,sDPI=window.screen.logicalXDPI||1;return window.devicePixelRatio||dDPI/sDPI}}()}function OverlayScrollbarsAutoUpdateLoop(globals){var _loopID,_base=this,_inArray=FRAMEWORK.inArray,_getNow=COMPATIBILITY.now,_strAutoUpdate="autoUpdate",_strAutoUpdateInterval=_strAutoUpdate+"Interval",_strLength=LEXICON.l,_loopingInstances=[],_loopingInstancesIntervalCache=[],_loopIsActive=!1,_loopIntervalDefault=33,_loopInterval=_loopIntervalDefault,_loopTimeOld=_getNow(),loop=function loop(){if(_loopingInstances[_strLength]>0&&_loopIsActive){_loopID=COMPATIBILITY.rAF()((function(){loop()}));var lowestInterval,instance,instanceOptions,instanceAutoUpdateAllowed,instanceAutoUpdateInterval,now,timeNew=_getNow(),timeDelta=timeNew-_loopTimeOld;if(timeDelta>_loopInterval){_loopTimeOld=timeNew-timeDelta%_loopInterval,lowestInterval=_loopIntervalDefault;for(var i=0;i<_loopingInstances[_strLength];i++)(instance=_loopingInstances[i])!==undefined$1&&(instanceAutoUpdateAllowed=(instanceOptions=instance.options())[_strAutoUpdate],instanceAutoUpdateInterval=MATH.max(1,instanceOptions[_strAutoUpdateInterval]),now=_getNow(),(!0===instanceAutoUpdateAllowed||null===instanceAutoUpdateAllowed)&&now-_loopingInstancesIntervalCache[i]>instanceAutoUpdateInterval&&(instance.update("auto"),_loopingInstancesIntervalCache[i]=new Date(now+=instanceAutoUpdateInterval)),lowestInterval=MATH.max(1,MATH.min(lowestInterval,instanceAutoUpdateInterval)));_loopInterval=lowestInterval}}else _loopInterval=_loopIntervalDefault};_base.add=function(instance){-1===_inArray(instance,_loopingInstances)&&(_loopingInstances.push(instance),_loopingInstancesIntervalCache.push(_getNow()),_loopingInstances[_strLength]>0&&!_loopIsActive&&(_loopIsActive=!0,globals.autoUpdateLoop=_loopIsActive,loop()))},_base.remove=function(instance){var index=_inArray(instance,_loopingInstances);index>-1&&(_loopingInstancesIntervalCache.splice(index,1),_loopingInstances.splice(index,1),0===_loopingInstances[_strLength]&&_loopIsActive&&(_loopIsActive=!1,globals.autoUpdateLoop=_loopIsActive,_loopID!==undefined$1&&(COMPATIBILITY.cAF()(_loopID),_loopID=-1)))}}function OverlayScrollbarsInstance(pluginTargetElement,options,extensions,globals,autoUpdateLoop){var type=COMPATIBILITY.type,inArray=FRAMEWORK.inArray,each=FRAMEWORK.each,_base=new _plugin,_frameworkProto=FRAMEWORK[LEXICON.p];if(isHTMLElement(pluginTargetElement)){if(INSTANCES(pluginTargetElement)){var inst=INSTANCES(pluginTargetElement);return inst.options(options),inst}var _nativeScrollbarIsOverlaid,_overlayScrollbarDummySize,_rtlScrollBehavior,_autoUpdateRecommended,_msieVersion,_nativeScrollbarStyling,_cssCalc,_nativeScrollbarSize,_supportTransition,_supportTransform,_supportPassiveEvents,_supportResizeObserver,_supportMutationObserver,_initialized,_destroyed,_isTextarea,_isBody,_documentMixed,_domExists,_isBorderBox,_sizeAutoObserverAdded,_paddingX,_paddingY,_borderX,_borderY,_marginX,_marginY,_isRTL,_sleeping,_defaultOptions,_currentOptions,_currentPreparedOptions,_lastUpdateTime,_swallowedUpdateTimeout,_windowElement,_documentElement,_htmlElement,_bodyElement,_targetElement,_hostElement,_sizeAutoObserverElement,_sizeObserverElement,_paddingElement,_viewportElement,_contentElement,_contentArrangeElement,_contentGlueElement,_textareaCoverElement,_scrollbarCornerElement,_scrollbarHorizontalElement,_scrollbarHorizontalTrackElement,_scrollbarHorizontalHandleElement,_scrollbarVerticalElement,_scrollbarVerticalTrackElement,_scrollbarVerticalHandleElement,_windowElementNative,_documentElementNative,_targetElementNative,_hostElementNative,_sizeAutoObserverElementNative,_sizeObserverElementNative,_paddingElementNative,_viewportElementNative,_contentElementNative,_hostSizeCache,_contentScrollSizeCache,_arrangeContentSizeCache,_hasOverflowCache,_hideOverflowCache,_widthAutoCache,_heightAutoCache,_cssBoxSizingCache,_cssPaddingCache,_cssBorderCache,_cssMarginCache,_cssDirectionCache,_cssDirectionDetectedCache,_paddingAbsoluteCache,_clipAlwaysCache,_contentGlueSizeCache,_overflowBehaviorCache,_overflowAmountCache,_ignoreOverlayScrollbarHidingCache,_autoUpdateCache,_sizeAutoCapableCache,_contentElementScrollSizeChangeDetectedCache,_hostElementSizeChangeDetectedCache,_scrollbarsVisibilityCache,_scrollbarsAutoHideCache,_scrollbarsClickScrollingCache,_scrollbarsDragScrollingCache,_resizeCache,_normalizeRTLCache,_classNameCache,_oldClassName,_textareaAutoWrappingCache,_textareaInfoCache,_textareaSizeCache,_textareaDynHeightCache,_textareaDynWidthCache,_bodyMinSizeCache,_mutationObserverHost,_mutationObserverContent,_mutationObserverHostCallback,_mutationObserverContentCallback,_mutationObserversConnected,_textareaHasFocus,_scrollbarsAutoHideTimeoutId,_scrollbarsAutoHideMoveTimeoutId,_scrollbarsAutoHideDelay,_scrollbarsAutoHideNever,_scrollbarsAutoHideScroll,_scrollbarsAutoHideMove,_scrollbarsAutoHideLeave,_scrollbarsHandleHovered,_scrollbarsHandlesDefineScrollPos,_resizeNone,_resizeBoth,_resizeHorizontal,_resizeVertical,_contentBorderSize={},_scrollHorizontalInfo={},_scrollVerticalInfo={},_viewportSize={},_nativeScrollbarMinSize={},_strMinusHidden="-hidden",_strMarginMinus="margin-",_strPaddingMinus="padding-",_strBorderMinus="border-",_strTop="top",_strRight="right",_strBottom="bottom",_strLeft="left",_strMinMinus="min-",_strMaxMinus="max-",_strWidth="width",_strHeight="height",_strFloat="float",_strEmpty="",_strAuto="auto",_strSync="sync",_strScroll="scroll",_strHundredPercent="100%",_strX="x",_strY="y",_strDot=".",_strSpace=" ",_strScrollbar="scrollbar",_strMinusHorizontal="-horizontal",_strMinusVertical="-vertical",_strScrollLeft=_strScroll+"Left",_strScrollTop=_strScroll+"Top",_strMouseTouchDownEvent="mousedown touchstart",_strMouseTouchUpEvent="mouseup touchend touchcancel",_strMouseTouchMoveEvent="mousemove touchmove",_strMouseEnter="mouseenter",_strMouseLeave="mouseleave",_strKeyDownEvent="keydown",_strKeyUpEvent="keyup",_strSelectStartEvent="selectstart",_strTransitionEndEvent="transitionend webkitTransitionEnd oTransitionEnd",_strResizeObserverProperty="__overlayScrollbarsRO__",_cassNamesPrefix="os-",_classNameHTMLElement=_cassNamesPrefix+"html",_classNameHostElement=_cassNamesPrefix+"host",_classNameHostElementForeign=_classNameHostElement+"-foreign",_classNameHostTextareaElement=_classNameHostElement+"-textarea",_classNameHostScrollbarHorizontalHidden=_classNameHostElement+"-"+_strScrollbar+_strMinusHorizontal+_strMinusHidden,_classNameHostScrollbarVerticalHidden=_classNameHostElement+"-"+_strScrollbar+_strMinusVertical+_strMinusHidden,_classNameHostTransition=_classNameHostElement+"-transition",_classNameHostRTL=_classNameHostElement+"-rtl",_classNameHostResizeDisabled=_classNameHostElement+"-resize-disabled",_classNameHostScrolling=_classNameHostElement+"-scrolling",_classNameHostOverflow=_classNameHostElement+"-overflow",_classNameHostOverflowX=(_classNameHostOverflow=_classNameHostElement+"-overflow")+"-x",_classNameHostOverflowY=_classNameHostOverflow+"-y",_classNameTextareaElement=_cassNamesPrefix+"textarea",_classNameTextareaCoverElement=_classNameTextareaElement+"-cover",_classNamePaddingElement=_cassNamesPrefix+"padding",_classNameViewportElement=_cassNamesPrefix+"viewport",_classNameViewportNativeScrollbarsInvisible=_classNameViewportElement+"-native-scrollbars-invisible",_classNameViewportNativeScrollbarsOverlaid=_classNameViewportElement+"-native-scrollbars-overlaid",_classNameContentElement=_cassNamesPrefix+"content",_classNameContentArrangeElement=_cassNamesPrefix+"content-arrange",_classNameContentGlueElement=_cassNamesPrefix+"content-glue",_classNameSizeAutoObserverElement=_cassNamesPrefix+"size-auto-observer",_classNameResizeObserverElement=_cassNamesPrefix+"resize-observer",_classNameResizeObserverItemElement=_cassNamesPrefix+"resize-observer-item",_classNameResizeObserverItemFinalElement=_classNameResizeObserverItemElement+"-final",_classNameTextInherit=_cassNamesPrefix+"text-inherit",_classNameScrollbar=_cassNamesPrefix+_strScrollbar,_classNameScrollbarTrack=_classNameScrollbar+"-track",_classNameScrollbarTrackOff=_classNameScrollbarTrack+"-off",_classNameScrollbarHandle=_classNameScrollbar+"-handle",_classNameScrollbarHandleOff=_classNameScrollbarHandle+"-off",_classNameScrollbarUnusable=_classNameScrollbar+"-unusable",_classNameScrollbarAutoHidden=_classNameScrollbar+"-"+_strAuto+_strMinusHidden,_classNameScrollbarCorner=_classNameScrollbar+"-corner",_classNameScrollbarCornerResize=_classNameScrollbarCorner+"-resize",_classNameScrollbarCornerResizeB=_classNameScrollbarCornerResize+"-both",_classNameScrollbarCornerResizeH=_classNameScrollbarCornerResize+_strMinusHorizontal,_classNameScrollbarCornerResizeV=_classNameScrollbarCornerResize+_strMinusVertical,_classNameScrollbarHorizontal=_classNameScrollbar+_strMinusHorizontal,_classNameScrollbarVertical=_classNameScrollbar+_strMinusVertical,_classNameDragging=_cassNamesPrefix+"dragging",_classNameThemeNone=_cassNamesPrefix+"theme-none",_classNamesDynamicDestroy=[_classNameViewportNativeScrollbarsInvisible,_classNameViewportNativeScrollbarsOverlaid,_classNameScrollbarTrackOff,_classNameScrollbarHandleOff,_classNameScrollbarUnusable,_classNameScrollbarAutoHidden,_classNameScrollbarCornerResize,_classNameScrollbarCornerResizeB,_classNameScrollbarCornerResizeH,_classNameScrollbarCornerResizeV,_classNameDragging].join(_strSpace),_callbacksInitQeueue=[],_viewportAttrsFromTarget=[LEXICON.ti],_extensions={},_extensionsPrivateMethods="added removed on contract",_swallowedUpdateHints={},_swallowUpdateLag=42,_updateOnLoadEventName="load",_updateOnLoadElms=[],_updateAutoCache={},_mutationObserverAttrsTextarea=["wrap","cols","rows"],_mutationObserverAttrsHost=[LEXICON.i,LEXICON.c,LEXICON.s,"open"].concat(_viewportAttrsFromTarget),_destroyEvents=[];return _base.sleep=function(){_sleeping=!0},_base.update=function(force){var attrsChanged,contentSizeC,doUpdateAuto,mutHost,mutContent;if(!_destroyed)return type(force)==TYPES.s?force===_strAuto?(attrsChanged=meaningfulAttrsChanged(),contentSizeC=updateAutoContentSizeChanged(),(doUpdateAuto=attrsChanged||contentSizeC)&&update({_contentSizeChanged:contentSizeC,_changedOptions:_initialized?undefined$1:_currentPreparedOptions})):force===_strSync?_mutationObserversConnected?(mutHost=_mutationObserverHostCallback(_mutationObserverHost.takeRecords()),mutContent=_mutationObserverContentCallback(_mutationObserverContent.takeRecords())):mutHost=_base.update(_strAuto):"zoom"===force&&update({_hostSizeChanged:!0,_contentSizeChanged:!0}):(force=_sleeping||force,_sleeping=!1,_base.update(_strSync)&&!force||update({_force:force})),updateElementsOnLoad(),doUpdateAuto||mutHost||mutContent},_base.options=function(newOptions,value){var changedOps,option={};if(FRAMEWORK.isEmptyObject(newOptions)||!FRAMEWORK.isPlainObject(newOptions)){if(type(newOptions)!=TYPES.s)return _currentOptions;if(!(arguments.length>1))return getObjectPropVal(_currentOptions,newOptions);setObjectPropVal(option,newOptions,value),changedOps=setOptions(option)}else changedOps=setOptions(newOptions);FRAMEWORK.isEmptyObject(changedOps)||update({_changedOptions:changedOps})},_base.destroy=function(){if(!_destroyed){for(var extName in autoUpdateLoop.remove(_base),disconnectMutationObservers(),setupResizeObserver(_sizeObserverElement),setupResizeObserver(_sizeAutoObserverElement),_extensions)_base.removeExt(extName);for(;_destroyEvents[LEXICON.l]>0;)_destroyEvents.pop()();setupHostMouseTouchEvents(!0),_contentGlueElement&&remove(_contentGlueElement),_contentArrangeElement&&remove(_contentArrangeElement),_sizeAutoObserverAdded&&remove(_sizeAutoObserverElement),setupScrollbarsDOM(!0),setupScrollbarCornerDOM(!0),setupStructureDOM(!0);for(var i=0;i<_updateOnLoadElms[LEXICON.l];i++)FRAMEWORK(_updateOnLoadElms[i]).off(_updateOnLoadEventName,updateOnLoadCallback);_updateOnLoadElms=undefined$1,_destroyed=!0,_sleeping=!0,INSTANCES(pluginTargetElement,0),dispatchCallback("onDestroyed")}},_base.scroll=function(coordinates,duration,easing,complete){if(0===arguments.length||coordinates===undefined$1){var infoX=_scrollHorizontalInfo,infoY=_scrollVerticalInfo,normalizeInvert=_normalizeRTLCache&&_isRTL&&_rtlScrollBehavior.i,normalizeNegate=_normalizeRTLCache&&_isRTL&&_rtlScrollBehavior.n,scrollX=infoX._currentScroll,scrollXRatio=infoX._currentScrollRatio,maxScrollX=infoX._maxScroll;return scrollXRatio=normalizeInvert?1-scrollXRatio:scrollXRatio,scrollX=normalizeInvert?maxScrollX-scrollX:scrollX,maxScrollX*=normalizeNegate?-1:1,{position:{x:scrollX*=normalizeNegate?-1:1,y:infoY._currentScroll},ratio:{x:scrollXRatio,y:infoY._currentScrollRatio},max:{x:maxScrollX,y:infoY._maxScroll},handleOffset:{x:infoX._handleOffset,y:infoY._handleOffset},handleLength:{x:infoX._handleLength,y:infoY._handleLength},handleLengthRatio:{x:infoX._handleLengthRatio,y:infoY._handleLengthRatio},trackLength:{x:infoX._trackLength,y:infoY._trackLength},snappedHandleOffset:{x:infoX._snappedHandleOffset,y:infoY._snappedHandleOffset},isRTL:_isRTL,isRTLNormalized:_normalizeRTLCache}}_base.update(_strSync);var i,doScrollLeft,doScrollTop,animationOptions,settingsAxis,settingsScroll,settingsBlock,settingsMargin,finalElement,normalizeRTL=_normalizeRTLCache,coordinatesXAxisProps=[_strX,_strLeft,"l"],coordinatesYAxisProps=[_strY,_strTop,"t"],coordinatesOperators=["+=","-=","*=","/="],durationIsObject=type(duration)==TYPES.o,completeCallback=durationIsObject?duration.complete:complete,finalScroll={},specialEasing={},strEnd="end",strBegin="begin",strCenter="center",strNearest="nearest",strAlways="always",strNever="never",strIfNeeded="ifneeded",strLength=LEXICON.l,elementObjSettingsAxisValues=[_strX,_strY,"xy","yx"],elementObjSettingsBlockValues=[strBegin,strEnd,strCenter,strNearest],elementObjSettingsScrollValues=[strAlways,strNever,strIfNeeded],coordinatesIsElementObj=coordinates[LEXICON.hOP]("el"),possibleElement=coordinatesIsElementObj?coordinates.el:coordinates,possibleElementIsJQuery=!!(possibleElement instanceof FRAMEWORK||JQUERY)&&possibleElement instanceof JQUERY,possibleElementIsHTMLElement=!possibleElementIsJQuery&&isHTMLElement(possibleElement),updateScrollbarInfos=function updateScrollbarInfos(){doScrollLeft&&refreshScrollbarHandleOffset(!0),doScrollTop&&refreshScrollbarHandleOffset(!1)},proxyCompleteCallback=type(completeCallback)!=TYPES.f?undefined$1:function(){updateScrollbarInfos(),completeCallback()};function checkSettingsStringValue(currValue,allowedValues){for(i=0;i2&&(possibleOperator=rawScroll.substr(0,2),inArray(possibleOperator,coordinatesOperators)>-1&&(operator=possibleOperator)),rawScroll=(rawScroll=operator?rawScroll.substr(2):rawScroll)[strReplace](/min/g,0)[strReplace](//g,(normalizeShortcuts?"-":_strEmpty)+_strHundredPercent)[strReplace](/px/g,_strEmpty)[strReplace](/%/g,mult+maxScroll*(isRTLisX&&_rtlScrollBehavior.n?-1:1)/100)[strReplace](/vw/g,mult+_viewportSize.w)[strReplace](/vh/g,mult+_viewportSize.h),amount=parseToZeroOrNumber(isNaN(rawScroll)?parseToZeroOrNumber(evalFunc(rawScroll),!0).toFixed():rawScroll)):amount=rawScroll,amount!==undefined$1&&!isNaN(amount)&&type(amount)==TYPES.n){var normalizeIsRTLisX=normalizeRTL&&isRTLisX,operatorCurrScroll=currScroll*(normalizeIsRTLisX&&_rtlScrollBehavior.n?-1:1),invert=normalizeIsRTLisX&&_rtlScrollBehavior.i,negate=normalizeIsRTLisX&&_rtlScrollBehavior.n;switch(operatorCurrScroll=invert?maxScroll-operatorCurrScroll:operatorCurrScroll,operator){case"+=":finalValue=operatorCurrScroll+amount;break;case"-=":finalValue=operatorCurrScroll-amount;break;case"*=":finalValue=operatorCurrScroll*amount;break;case"/=":finalValue=operatorCurrScroll/amount;break;default:finalValue=amount}finalValue=invert?maxScroll-finalValue:finalValue,finalValue*=negate?-1:1,finalValue=isRTLisX&&_rtlScrollBehavior.n?MATH.min(0,MATH.max(maxScroll,finalValue)):MATH.max(0,MATH.min(maxScroll,finalValue))}return finalValue===currScroll?undefined$1:finalValue}function getPerAxisValue(value,valueInternalType,defaultValue,allowedValues){var valueArrLength,valueArrItem,resultDefault=[defaultValue,defaultValue],valueType=type(value);if(valueType==valueInternalType)value=[value,value];else if(valueType==TYPES.a){if((valueArrLength=value[strLength])>2||valueArrLength<1)value=resultDefault;else for(1===valueArrLength&&(value[1]=defaultValue),i=0;i0){margin=marginType==TYPES.n||marginType==TYPES.b?generateMargin([margin,margin,margin,margin]):marginType==TYPES.a?2===(marginLength=margin[strLength])?generateMargin([margin[0],margin[1],margin[0],margin[1]]):marginLength>=4?generateMargin(margin):marginDefault:marginType==TYPES.o?generateMargin([margin[_strTop],margin[_strRight],margin[_strBottom],margin[_strLeft]]):marginDefault,settingsAxis=checkSettingsStringValue(axis,elementObjSettingsAxisValues)?axis:"xy",settingsScroll=getPerAxisValue(scroll,TYPES.s,strAlways,elementObjSettingsScrollValues),settingsBlock=getPerAxisValue(block,TYPES.s,strBegin,elementObjSettingsBlockValues),settingsMargin=margin;var viewportScroll={l:_scrollHorizontalInfo._currentScroll,t:_scrollVerticalInfo._currentScroll},viewportOffset=_paddingElement.offset(),elementOffset=finalElement.offset(),doNotScroll={x:settingsScroll.x==strNever||settingsAxis==_strY,y:settingsScroll.y==strNever||settingsAxis==_strX};elementOffset[_strTop]-=settingsMargin[0],elementOffset[_strLeft]-=settingsMargin[3];var elementScrollCoordinates={x:MATH.round(elementOffset[_strLeft]-viewportOffset[_strLeft]+viewportScroll.l),y:MATH.round(elementOffset[_strTop]-viewportOffset[_strTop]+viewportScroll.t)};if(_isRTL&&(_rtlScrollBehavior.n||_rtlScrollBehavior.i||(elementScrollCoordinates.x=MATH.round(viewportOffset[_strLeft]-elementOffset[_strLeft]+viewportScroll.l)),_rtlScrollBehavior.n&&normalizeRTL&&(elementScrollCoordinates.x*=-1),_rtlScrollBehavior.i&&normalizeRTL&&(elementScrollCoordinates.x=MATH.round(viewportOffset[_strLeft]-elementOffset[_strLeft]+(_scrollHorizontalInfo._maxScroll-viewportScroll.l)))),settingsBlock.x!=strBegin||settingsBlock.y!=strBegin||settingsScroll.x==strIfNeeded||settingsScroll.y==strIfNeeded||_isRTL){var measuringElm=finalElement[0],rawElementSize=_supportTransform?measuringElm[LEXICON.bCR]():{width:measuringElm[LEXICON.oW],height:measuringElm[LEXICON.oH]},elementSize={w:rawElementSize[_strWidth]+settingsMargin[3]+settingsMargin[1],h:rawElementSize[_strHeight]+settingsMargin[0]+settingsMargin[2]},finalizeBlock=function finalizeBlock(isX){var vars=getScrollbarVars(isX),wh=vars._w_h,lt=vars._left_top,xy=vars._x_y,blockIsEnd=settingsBlock[xy]==(isX&&_isRTL?strBegin:strEnd),blockIsCenter=settingsBlock[xy]==strCenter,blockIsNearest=settingsBlock[xy]==strNearest,scrollNever=settingsScroll[xy]==strNever,scrollIfNeeded=settingsScroll[xy]==strIfNeeded,vpSize=_viewportSize[wh],vpOffset=viewportOffset[lt],elSize=elementSize[wh],elOffset=elementOffset[lt],divide=blockIsCenter?2:1,elementCenterOffset=elOffset+elSize/2,viewportCenterOffset=vpOffset+vpSize/2,isInView=elSize<=vpSize&&elOffset>=vpOffset&&elOffset+elSize<=vpOffset+vpSize;scrollNever?doNotScroll[xy]=!0:doNotScroll[xy]||((blockIsNearest||scrollIfNeeded)&&(doNotScroll[xy]=!!scrollIfNeeded&&isInView,blockIsEnd=elSizeviewportCenterOffset:elementCenterOffset0||durationIsObject)?durationIsObject?(duration.complete=proxyCompleteCallback,_viewportElement.animate(finalScroll,duration)):(animationOptions={duration:duration,complete:proxyCompleteCallback},COMPATIBILITY.isA(easing)||FRAMEWORK.isPlainObject(easing)?(specialEasing[_strScrollLeft]=easing[0]||easing.x,specialEasing[_strScrollTop]=easing[1]||easing.y,animationOptions.specialEasing=specialEasing):animationOptions.easing=easing,_viewportElement.animate(finalScroll,animationOptions)):(doScrollLeft&&_viewportElement[_strScrollLeft](finalScroll[_strScrollLeft]),doScrollTop&&_viewportElement[_strScrollTop](finalScroll[_strScrollTop]),updateScrollbarInfos())},_base.scrollStop=function(param1,param2,param3){return _viewportElement.stop(param1,param2,param3),_base},_base.getElements=function(elementName){var obj={target:_targetElementNative,host:_hostElementNative,padding:_paddingElementNative,viewport:_viewportElementNative,content:_contentElementNative,scrollbarHorizontal:{scrollbar:_scrollbarHorizontalElement[0],track:_scrollbarHorizontalTrackElement[0],handle:_scrollbarHorizontalHandleElement[0]},scrollbarVertical:{scrollbar:_scrollbarVerticalElement[0],track:_scrollbarVerticalTrackElement[0],handle:_scrollbarVerticalHandleElement[0]},scrollbarCorner:_scrollbarCornerElement[0]};return type(elementName)==TYPES.s?getObjectPropVal(obj,elementName):obj},_base.getState=function(stateProperty){function prepare(obj){if(!FRAMEWORK.isPlainObject(obj))return obj;var extended=extendDeep({},obj),changePropertyName=function changePropertyName(from,to){extended[LEXICON.hOP](from)&&(extended[to]=extended[from],delete extended[from])};return changePropertyName("w",_strWidth),changePropertyName("h",_strHeight),delete extended.c,extended}var obj={destroyed:!!prepare(_destroyed),sleeping:!!prepare(_sleeping),autoUpdate:prepare(!_mutationObserversConnected),widthAuto:prepare(_widthAutoCache),heightAuto:prepare(_heightAutoCache),padding:prepare(_cssPaddingCache),overflowAmount:prepare(_overflowAmountCache),hideOverflow:prepare(_hideOverflowCache),hasOverflow:prepare(_hasOverflowCache),contentScrollSize:prepare(_contentScrollSizeCache),viewportSize:prepare(_viewportSize),hostSize:prepare(_hostSizeCache),documentMixed:prepare(_documentMixed)};return type(stateProperty)==TYPES.s?getObjectPropVal(obj,stateProperty):obj},_base.ext=function(extName){var result,privateMethods=_extensionsPrivateMethods.split(" "),i=0;if(type(extName)==TYPES.s){if(_extensions[LEXICON.hOP](extName))for(result=extendDeep({},_extensions[extName]);i9||!_autoUpdateRecommended){targetElement.prepend(generateDiv(_classNameResizeObserverElement,generateDiv({c:_classNameResizeObserverItemElement,dir:"ltr"},generateDiv(_classNameResizeObserverItemElement,generateDiv(_classNameResizeObserverItemFinalElement))+generateDiv(_classNameResizeObserverItemElement,generateDiv({c:_classNameResizeObserverItemFinalElement,style:"width: 200%; height: 200%"})))));var isDirty,rAFId,currWidth,currHeight,observerElement=targetElement[0][strChildNodes][0][strChildNodes][0],shrinkElement=FRAMEWORK(observerElement[strChildNodes][1]),expandElement=FRAMEWORK(observerElement[strChildNodes][0]),expandElementChild=FRAMEWORK(expandElement[0][strChildNodes][0]),widthCache=observerElement[LEXICON.oW],heightCache=observerElement[LEXICON.oH],factor=2,nativeScrollbarSize=globals.nativeScrollbarSize,reset=function reset(){expandElement[_strScrollLeft](constScroll)[_strScrollTop](constScroll),shrinkElement[_strScrollLeft](constScroll)[_strScrollTop](constScroll)},onResized=function onResized(){rAFId=0,isDirty&&(widthCache=currWidth,heightCache=currHeight,callback())},onScroll=function onScroll(event){return currWidth=observerElement[LEXICON.oW],currHeight=observerElement[LEXICON.oH],isDirty=currWidth!=widthCache||currHeight!=heightCache,event&&isDirty&&!rAFId?(COMPATIBILITY.cAF()(rAFId),rAFId=COMPATIBILITY.rAF()(onResized)):event||onResized(),reset(),event&&(COMPATIBILITY.prvD(event),COMPATIBILITY.stpP(event)),!1},expandChildCSS={},observerElementCSS={};setTopRightBottomLeft(observerElementCSS,_strEmpty,[-(nativeScrollbarSize.y+1)*factor,nativeScrollbarSize.x*-factor,nativeScrollbarSize.y*-factor,-(nativeScrollbarSize.x+1)*factor]),FRAMEWORK(observerElement).css(observerElementCSS),expandElement.on(_strScroll,onScroll),shrinkElement.on(_strScroll,onScroll),targetElement.on(strAnimationStartEvent,(function(){onScroll(!1)})),expandChildCSS[_strWidth]=constScroll,expandChildCSS[_strHeight]=constScroll,expandElementChild.css(expandChildCSS),reset()}else{var attachEvent=_documentElementNative.attachEvent,isIE=_msieVersion!==undefined$1;if(attachEvent)targetElement.prepend(generateDiv(_classNameResizeObserverElement)),findFirst(targetElement,_strDot+_classNameResizeObserverElement)[0].attachEvent("onresize",callback);else{var obj=_documentElementNative.createElement(TYPES.o);obj.setAttribute(LEXICON.ti,"-1"),obj.setAttribute(LEXICON.c,_classNameResizeObserverElement),obj.onload=function(){var wnd=this.contentDocument.defaultView;wnd.addEventListener("resize",callback),wnd.document.documentElement.style.display="none"},obj.type="text/html",isIE&&targetElement.prepend(obj),obj.data="about:blank",isIE||targetElement.prepend(obj),targetElement.on(strAnimationStartEvent,callback)}}if(targetElement[0]===_sizeObserverElementNative){var directionChanged=function directionChanged(){var dir=_hostElement.css("direction"),css={},scrollLeftValue=0,result=!1;return dir!==_cssDirectionDetectedCache&&("ltr"===dir?(css[_strLeft]=0,css[_strRight]=_strAuto,scrollLeftValue=constScroll):(css[_strLeft]=_strAuto,css[_strRight]=0,scrollLeftValue=_rtlScrollBehavior.n?-constScroll:_rtlScrollBehavior.i?0:constScroll),_sizeObserverElement.children().eq(0).css(css),_sizeObserverElement[_strScrollLeft](scrollLeftValue)[_strScrollTop](constScroll),_cssDirectionDetectedCache=dir,result=!0),result};directionChanged(),addDestroyEventListener(targetElement,_strScroll,(function(event){return directionChanged()&&update(),COMPATIBILITY.prvD(event),COMPATIBILITY.stpP(event),!1}))}}else if(_supportResizeObserver){var element,resizeObserverObj=(element=targetElement.contents()[0])[_strResizeObserverProperty];resizeObserverObj&&(resizeObserverObj.disconnect(),delete element[_strResizeObserverProperty])}else remove(targetElement.children(_strDot+_classNameResizeObserverElement).eq(0))}}function createMutationObservers(){if(_supportMutationObserver){var mutationTarget,mutationAttrName,mutationIsClass,oldMutationVal,newClassVal,hostClassNameRegex,contentTimeout,now,sizeAuto,action,mutationObserverContentLag=11,mutationObserver=COMPATIBILITY.mO(),contentLastUpdate=COMPATIBILITY.now();_mutationObserverContentCallback=function _mutationObserverContentCallback(mutations){var doUpdate=!1;return _initialized&&!_sleeping&&(each(mutations,(function(){return!(doUpdate=isUnknownMutation(this))})),doUpdate&&(now=COMPATIBILITY.now(),sizeAuto=_heightAutoCache||_widthAutoCache,action=function action(){_destroyed||(contentLastUpdate=now,_isTextarea&&textareaUpdate(),sizeAuto?update():_base.update(_strAuto))},clearTimeout(contentTimeout),mutationObserverContentLag<=0||now-contentLastUpdate>mutationObserverContentLag||!sizeAuto?action():contentTimeout=setTimeout(action,mutationObserverContentLag))),doUpdate},_mutationObserverHost=new mutationObserver(_mutationObserverHostCallback=function _mutationObserverHostCallback(mutations){var mutation,doUpdate=!1,doUpdateForce=!1,mutatedAttrs=[];return _initialized&&!_sleeping&&(each(mutations,(function(){mutationTarget=(mutation=this).target,mutationAttrName=mutation.attributeName,mutationIsClass=mutationAttrName===LEXICON.c,oldMutationVal=mutation.oldValue,newClassVal=mutationTarget.className,_domExists&&mutationIsClass&&!doUpdateForce&&oldMutationVal.indexOf(_classNameHostElementForeign)>-1&&newClassVal.indexOf(_classNameHostElementForeign)<0&&(hostClassNameRegex=createHostClassNameRegExp(!0),_hostElementNative.className=newClassVal.split(_strSpace).concat(oldMutationVal.split(_strSpace).filter((function(name){return name.match(hostClassNameRegex)}))).join(_strSpace),doUpdate=doUpdateForce=!0),doUpdate||(doUpdate=mutationIsClass?hostClassNamesChanged(oldMutationVal,newClassVal):mutationAttrName!==LEXICON.s||oldMutationVal!==mutationTarget[LEXICON.s].cssText),mutatedAttrs.push(mutationAttrName)})),updateViewportAttrsFromTarget(mutatedAttrs),doUpdate&&_base.update(doUpdateForce||_strAuto)),doUpdate}),_mutationObserverContent=new mutationObserver(_mutationObserverContentCallback)}}function connectMutationObservers(){_supportMutationObserver&&!_mutationObserversConnected&&(_mutationObserverHost.observe(_hostElementNative,{attributes:!0,attributeOldValue:!0,attributeFilter:_mutationObserverAttrsHost}),_mutationObserverContent.observe(_isTextarea?_targetElementNative:_contentElementNative,{attributes:!0,attributeOldValue:!0,subtree:!_isTextarea,childList:!_isTextarea,characterData:!_isTextarea,attributeFilter:_isTextarea?_mutationObserverAttrsTextarea:_mutationObserverAttrsHost}),_mutationObserversConnected=!0)}function disconnectMutationObservers(){_supportMutationObserver&&_mutationObserversConnected&&(_mutationObserverHost.disconnect(),_mutationObserverContent.disconnect(),_mutationObserversConnected=!1)}function hostOnResized(){if(!_sleeping){var changed,hostSize={w:_sizeObserverElementNative[LEXICON.sW],h:_sizeObserverElementNative[LEXICON.sH]};changed=checkCache(hostSize,_hostElementSizeChangeDetectedCache),_hostElementSizeChangeDetectedCache=hostSize,changed&&update({_hostSizeChanged:!0})}}function hostOnMouseEnter(){_scrollbarsAutoHideLeave&&refreshScrollbarsAutoHide(!0)}function hostOnMouseLeave(){_scrollbarsAutoHideLeave&&!_bodyElement.hasClass(_classNameDragging)&&refreshScrollbarsAutoHide(!1)}function hostOnMouseMove(){_scrollbarsAutoHideMove&&(refreshScrollbarsAutoHide(!0),clearTimeout(_scrollbarsAutoHideMoveTimeoutId),_scrollbarsAutoHideMoveTimeoutId=setTimeout((function(){_scrollbarsAutoHideMove&&!_destroyed&&refreshScrollbarsAutoHide(!1)}),100))}function documentOnSelectStart(event){return COMPATIBILITY.prvD(event),!1}function updateOnLoadCallback(event){var elm=FRAMEWORK(event.target);eachUpdateOnLoad((function(i,updateOnLoadSelector){elm.is(updateOnLoadSelector)&&update({_contentSizeChanged:!0})}))}function setupHostMouseTouchEvents(destroy){destroy||setupHostMouseTouchEvents(!0),setupResponsiveEventListener(_hostElement,_strMouseTouchMoveEvent.split(_strSpace)[0],hostOnMouseMove,!_scrollbarsAutoHideMove||destroy,!0),setupResponsiveEventListener(_hostElement,[_strMouseEnter,_strMouseLeave],[hostOnMouseEnter,hostOnMouseLeave],!_scrollbarsAutoHideLeave||destroy,!0),_initialized||destroy||_hostElement.one("mouseover",hostOnMouseEnter)}function bodyMinSizeChanged(){var bodyMinSize={};return _isBody&&_contentArrangeElement&&(bodyMinSize.w=parseToZeroOrNumber(_contentArrangeElement.css(_strMinMinus+_strWidth)),bodyMinSize.h=parseToZeroOrNumber(_contentArrangeElement.css(_strMinMinus+_strHeight)),bodyMinSize.c=checkCache(bodyMinSize,_bodyMinSizeCache),bodyMinSize.f=!0),_bodyMinSizeCache=bodyMinSize,!!bodyMinSize.c}function hostClassNamesChanged(oldClassNames,newClassNames){var i,regex,currClasses=_typeof(newClassNames)==TYPES.s?newClassNames.split(_strSpace):[],diff=getArrayDifferences(_typeof(oldClassNames)==TYPES.s?oldClassNames.split(_strSpace):[],currClasses),idx=inArray(_classNameThemeNone,diff);if(idx>-1&&diff.splice(idx,1),diff[LEXICON.l]>0)for(regex=createHostClassNameRegExp(!0,!0),i=0;i0}}function isSizeAffectingCSSProperty(propertyName){if(!_initialized)return!0;var flexGrow="flex-grow",flexShrink="flex-shrink",flexBasis="flex-basis",affectingPropsX=[_strWidth,_strMinMinus+_strWidth,_strMaxMinus+_strWidth,_strMarginMinus+_strLeft,_strMarginMinus+_strRight,_strLeft,_strRight,"font-weight","word-spacing",flexGrow,flexShrink,flexBasis],affectingPropsXContentBox=[_strPaddingMinus+_strLeft,_strPaddingMinus+_strRight,_strBorderMinus+_strLeft+_strWidth,_strBorderMinus+_strRight+_strWidth],affectingPropsY=[_strHeight,_strMinMinus+_strHeight,_strMaxMinus+_strHeight,_strMarginMinus+_strTop,_strMarginMinus+_strBottom,_strTop,_strBottom,"line-height",flexGrow,flexShrink,flexBasis],affectingPropsYContentBox=[_strPaddingMinus+_strTop,_strPaddingMinus+_strBottom,_strBorderMinus+_strTop+_strWidth,_strBorderMinus+_strBottom+_strWidth],_strS="s",_strVS="v-s",checkX=_overflowBehaviorCache.x===_strS||_overflowBehaviorCache.x===_strVS,sizeIsAffected=!1,checkPropertyName=function checkPropertyName(arr,name){for(var i=0;i-1){var targetAttr=_targetElement.attr(attr);type(targetAttr)==TYPES.s?_viewportElement.attr(attr,targetAttr):_viewportElement.removeAttr(attr)}}))}function textareaUpdate(){if(!_sleeping){var origWidth,width,origHeight,height,wrapAttrOff=!_textareaAutoWrappingCache,minWidth=_viewportSize.w,minHeight=_viewportSize.h,css={},doMeasure=_widthAutoCache||wrapAttrOff;return css[_strMinMinus+_strWidth]=_strEmpty,css[_strMinMinus+_strHeight]=_strEmpty,css[_strWidth]=_strAuto,_targetElement.css(css),origWidth=_targetElementNative[LEXICON.oW],width=doMeasure?MATH.max(origWidth,_targetElementNative[LEXICON.sW]-1):1,css[_strWidth]=_widthAutoCache?_strAuto:_strHundredPercent,css[_strMinMinus+_strWidth]=_strHundredPercent,css[_strHeight]=_strAuto,_targetElement.css(css),origHeight=_targetElementNative[LEXICON.oH],height=MATH.max(origHeight,_targetElementNative[LEXICON.sH]-1),css[_strWidth]=width,css[_strHeight]=height,_textareaCoverElement.css(css),css[_strMinMinus+_strWidth]=minWidth,css[_strMinMinus+_strHeight]=minHeight,_targetElement.css(css),{_originalWidth:origWidth,_originalHeight:origHeight,_dynamicWidth:width,_dynamicHeight:height}}}function update(updateHints){clearTimeout(_swallowedUpdateTimeout),updateHints=updateHints||{},_swallowedUpdateHints._hostSizeChanged|=updateHints._hostSizeChanged,_swallowedUpdateHints._contentSizeChanged|=updateHints._contentSizeChanged,_swallowedUpdateHints._force|=updateHints._force;var displayIsHidden,now=COMPATIBILITY.now(),hostSizeChanged=!!_swallowedUpdateHints._hostSizeChanged,contentSizeChanged=!!_swallowedUpdateHints._contentSizeChanged,force=!!_swallowedUpdateHints._force,changedOptions=updateHints._changedOptions,swallow=_initialized&&!_destroyed&&!force&&!changedOptions&&now-_lastUpdateTime<_swallowUpdateLag&&!_heightAutoCache&&!_widthAutoCache;if(swallow&&(_swallowedUpdateTimeout=setTimeout(update,_swallowUpdateLag)),!(_destroyed||swallow||_sleeping&&!changedOptions||_initialized&&!force&&(displayIsHidden=_hostElement.is(":hidden"))||"inline"===_hostElement.css("display"))){_lastUpdateTime=now,_swallowedUpdateHints={},!_nativeScrollbarStyling||_nativeScrollbarIsOverlaid.x&&_nativeScrollbarIsOverlaid.y?_nativeScrollbarSize=extendDeep({},globals.nativeScrollbarSize):(_nativeScrollbarSize.x=0,_nativeScrollbarSize.y=0),_nativeScrollbarMinSize={x:3*(_nativeScrollbarSize.x+(_nativeScrollbarIsOverlaid.x?0:3)),y:3*(_nativeScrollbarSize.y+(_nativeScrollbarIsOverlaid.y?0:3))},changedOptions=changedOptions||{};var checkCacheAutoForce=function checkCacheAutoForce(){return checkCache.apply(this,[].slice.call(arguments).concat([force]))},currScroll={x:_viewportElement[_strScrollLeft](),y:_viewportElement[_strScrollTop]()},currentPreparedOptionsScrollbars=_currentPreparedOptions.scrollbars,currentPreparedOptionsTextarea=_currentPreparedOptions.textarea,scrollbarsVisibility=currentPreparedOptionsScrollbars.visibility,scrollbarsVisibilityChanged=checkCacheAutoForce(scrollbarsVisibility,_scrollbarsVisibilityCache),scrollbarsAutoHide=currentPreparedOptionsScrollbars.autoHide,scrollbarsAutoHideChanged=checkCacheAutoForce(scrollbarsAutoHide,_scrollbarsAutoHideCache),scrollbarsClickScrolling=currentPreparedOptionsScrollbars.clickScrolling,scrollbarsClickScrollingChanged=checkCacheAutoForce(scrollbarsClickScrolling,_scrollbarsClickScrollingCache),scrollbarsDragScrolling=currentPreparedOptionsScrollbars.dragScrolling,scrollbarsDragScrollingChanged=checkCacheAutoForce(scrollbarsDragScrolling,_scrollbarsDragScrollingCache),className=_currentPreparedOptions.className,classNameChanged=checkCacheAutoForce(className,_classNameCache),resize=_currentPreparedOptions.resize,resizeChanged=checkCacheAutoForce(resize,_resizeCache)&&!_isBody,paddingAbsolute=_currentPreparedOptions.paddingAbsolute,paddingAbsoluteChanged=checkCacheAutoForce(paddingAbsolute,_paddingAbsoluteCache),clipAlways=_currentPreparedOptions.clipAlways,clipAlwaysChanged=checkCacheAutoForce(clipAlways,_clipAlwaysCache),sizeAutoCapable=_currentPreparedOptions.sizeAutoCapable&&!_isBody,sizeAutoCapableChanged=checkCacheAutoForce(sizeAutoCapable,_sizeAutoCapableCache),ignoreOverlayScrollbarHiding=_currentPreparedOptions.nativeScrollbarsOverlaid.showNativeScrollbars,ignoreOverlayScrollbarHidingChanged=checkCacheAutoForce(ignoreOverlayScrollbarHiding,_ignoreOverlayScrollbarHidingCache),autoUpdate=_currentPreparedOptions.autoUpdate,autoUpdateChanged=checkCacheAutoForce(autoUpdate,_autoUpdateCache),overflowBehavior=_currentPreparedOptions.overflowBehavior,overflowBehaviorChanged=checkCacheAutoForce(overflowBehavior,_overflowBehaviorCache,force),textareaDynWidth=currentPreparedOptionsTextarea.dynWidth,textareaDynWidthChanged=checkCacheAutoForce(_textareaDynWidthCache,textareaDynWidth),textareaDynHeight=currentPreparedOptionsTextarea.dynHeight,textareaDynHeightChanged=checkCacheAutoForce(_textareaDynHeightCache,textareaDynHeight);if(_scrollbarsAutoHideNever="n"===scrollbarsAutoHide,_scrollbarsAutoHideScroll="s"===scrollbarsAutoHide,_scrollbarsAutoHideMove="m"===scrollbarsAutoHide,_scrollbarsAutoHideLeave="l"===scrollbarsAutoHide,_scrollbarsAutoHideDelay=currentPreparedOptionsScrollbars.autoHideDelay,_oldClassName=_classNameCache,_resizeNone="n"===resize,_resizeBoth="b"===resize,_resizeHorizontal="h"===resize,_resizeVertical="v"===resize,_normalizeRTLCache=_currentPreparedOptions.normalizeRTL,ignoreOverlayScrollbarHiding=ignoreOverlayScrollbarHiding&&_nativeScrollbarIsOverlaid.x&&_nativeScrollbarIsOverlaid.y,_scrollbarsVisibilityCache=scrollbarsVisibility,_scrollbarsAutoHideCache=scrollbarsAutoHide,_scrollbarsClickScrollingCache=scrollbarsClickScrolling,_scrollbarsDragScrollingCache=scrollbarsDragScrolling,_classNameCache=className,_resizeCache=resize,_paddingAbsoluteCache=paddingAbsolute,_clipAlwaysCache=clipAlways,_sizeAutoCapableCache=sizeAutoCapable,_ignoreOverlayScrollbarHidingCache=ignoreOverlayScrollbarHiding,_autoUpdateCache=autoUpdate,_overflowBehaviorCache=extendDeep({},overflowBehavior),_textareaDynWidthCache=textareaDynWidth,_textareaDynHeightCache=textareaDynHeight,_hasOverflowCache=_hasOverflowCache||{x:!1,y:!1},classNameChanged&&(removeClass(_hostElement,_oldClassName+_strSpace+_classNameThemeNone),addClass(_hostElement,className!==undefined$1&&null!==className&&className.length>0?className:_classNameThemeNone)),autoUpdateChanged&&(!0===autoUpdate||null===autoUpdate&&_autoUpdateRecommended?(disconnectMutationObservers(),autoUpdateLoop.add(_base)):(autoUpdateLoop.remove(_base),connectMutationObservers())),sizeAutoCapableChanged)if(sizeAutoCapable)if(_contentGlueElement?_contentGlueElement.show():(_contentGlueElement=FRAMEWORK(generateDiv(_classNameContentGlueElement)),_paddingElement.before(_contentGlueElement)),_sizeAutoObserverAdded)_sizeAutoObserverElement.show();else{_sizeAutoObserverElement=FRAMEWORK(generateDiv(_classNameSizeAutoObserverElement)),_sizeAutoObserverElementNative=_sizeAutoObserverElement[0],_contentGlueElement.before(_sizeAutoObserverElement);var oldSize={w:-1,h:-1};setupResizeObserver(_sizeAutoObserverElement,(function(){var newSize={w:_sizeAutoObserverElementNative[LEXICON.oW],h:_sizeAutoObserverElementNative[LEXICON.oH]};checkCache(newSize,oldSize)&&(_initialized&&_heightAutoCache&&newSize.h>0||_widthAutoCache&&newSize.w>0||_initialized&&!_heightAutoCache&&0===newSize.h||!_widthAutoCache&&0===newSize.w)&&update(),oldSize=newSize})),_sizeAutoObserverAdded=!0,null!==_cssCalc&&_sizeAutoObserverElement.css(_strHeight,_cssCalc+"(100% + 1px)")}else _sizeAutoObserverAdded&&_sizeAutoObserverElement.hide(),_contentGlueElement&&_contentGlueElement.hide();force&&(_sizeObserverElement.find("*").trigger(_strScroll),_sizeAutoObserverAdded&&_sizeAutoObserverElement.find("*").trigger(_strScroll)),displayIsHidden=displayIsHidden===undefined$1?_hostElement.is(":hidden"):displayIsHidden;var sizeAutoObserverElementBCRect,textareaAutoWrapping=!!_isTextarea&&"off"!==_targetElement.attr("wrap"),textareaAutoWrappingChanged=checkCacheAutoForce(textareaAutoWrapping,_textareaAutoWrappingCache),cssDirection=_hostElement.css("direction"),cssDirectionChanged=checkCacheAutoForce(cssDirection,_cssDirectionCache),boxSizing=_hostElement.css("box-sizing"),boxSizingChanged=checkCacheAutoForce(boxSizing,_cssBoxSizingCache),padding=getTopRightBottomLeftHost(_strPaddingMinus);try{sizeAutoObserverElementBCRect=_sizeAutoObserverAdded?_sizeAutoObserverElementNative[LEXICON.bCR]():null}catch(ex){return}_isBorderBox="border-box"===boxSizing;var isRTLLeft=(_isRTL="rtl"===cssDirection)?_strLeft:_strRight,isRTLRight=_isRTL?_strRight:_strLeft,widthAutoResizeDetection=!1,widthAutoObserverDetection=!(!_sizeAutoObserverAdded||"none"===_hostElement.css(_strFloat))&&0===MATH.round(sizeAutoObserverElementBCRect.right-sizeAutoObserverElementBCRect.left)&&(!!paddingAbsolute||_hostElementNative[LEXICON.cW]-_paddingX>0);if(sizeAutoCapable&&!widthAutoObserverDetection){var tmpCurrHostWidth=_hostElementNative[LEXICON.oW],tmpCurrContentGlueWidth=_contentGlueElement.css(_strWidth);_contentGlueElement.css(_strWidth,_strAuto);var tmpNewHostWidth=_hostElementNative[LEXICON.oW];_contentGlueElement.css(_strWidth,tmpCurrContentGlueWidth),(widthAutoResizeDetection=tmpCurrHostWidth!==tmpNewHostWidth)||(_contentGlueElement.css(_strWidth,tmpCurrHostWidth+1),tmpNewHostWidth=_hostElementNative[LEXICON.oW],_contentGlueElement.css(_strWidth,tmpCurrContentGlueWidth),widthAutoResizeDetection=tmpCurrHostWidth!==tmpNewHostWidth)}var widthAuto=(widthAutoObserverDetection||widthAutoResizeDetection)&&sizeAutoCapable&&!displayIsHidden,widthAutoChanged=checkCacheAutoForce(widthAuto,_widthAutoCache),wasWidthAuto=!widthAuto&&_widthAutoCache,heightAuto=!(!_sizeAutoObserverAdded||!sizeAutoCapable||displayIsHidden)&&0===MATH.round(sizeAutoObserverElementBCRect.bottom-sizeAutoObserverElementBCRect.top),heightAutoChanged=checkCacheAutoForce(heightAuto,_heightAutoCache),wasHeightAuto=!heightAuto&&_heightAutoCache,border=getTopRightBottomLeftHost(_strBorderMinus,"-"+_strWidth,!(widthAuto&&_isBorderBox||!_isBorderBox),!(heightAuto&&_isBorderBox||!_isBorderBox)),margin=getTopRightBottomLeftHost(_strMarginMinus),contentElementCSS={},contentGlueElementCSS={},getHostSize=function getHostSize(){return{w:_hostElementNative[LEXICON.cW],h:_hostElementNative[LEXICON.cH]}},getViewportSize=function getViewportSize(){return{w:_paddingElementNative[LEXICON.oW]+MATH.max(0,_contentElementNative[LEXICON.cW]-_contentElementNative[LEXICON.sW]),h:_paddingElementNative[LEXICON.oH]+MATH.max(0,_contentElementNative[LEXICON.cH]-_contentElementNative[LEXICON.sH])}},paddingAbsoluteX=_paddingX=padding.l+padding.r,paddingAbsoluteY=_paddingY=padding.t+padding.b;if(paddingAbsoluteX*=paddingAbsolute?1:0,paddingAbsoluteY*=paddingAbsolute?1:0,padding.c=checkCacheAutoForce(padding,_cssPaddingCache),_borderX=border.l+border.r,_borderY=border.t+border.b,border.c=checkCacheAutoForce(border,_cssBorderCache),_marginX=margin.l+margin.r,_marginY=margin.t+margin.b,margin.c=checkCacheAutoForce(margin,_cssMarginCache),_textareaAutoWrappingCache=textareaAutoWrapping,_cssDirectionCache=cssDirection,_cssBoxSizingCache=boxSizing,_widthAutoCache=widthAuto,_heightAutoCache=heightAuto,_cssPaddingCache=padding,_cssBorderCache=border,_cssMarginCache=margin,cssDirectionChanged&&_sizeAutoObserverAdded&&_sizeAutoObserverElement.css(_strFloat,isRTLRight),padding.c||cssDirectionChanged||paddingAbsoluteChanged||widthAutoChanged||heightAutoChanged||boxSizingChanged||sizeAutoCapableChanged){var paddingElementCSS={},textareaCSS={},paddingValues=[padding.t,padding.r,padding.b,padding.l];setTopRightBottomLeft(contentGlueElementCSS,_strMarginMinus,[-padding.t,-padding.r,-padding.b,-padding.l]),paddingAbsolute?(setTopRightBottomLeft(paddingElementCSS,_strEmpty,paddingValues),setTopRightBottomLeft(_isTextarea?textareaCSS:contentElementCSS,_strPaddingMinus)):(setTopRightBottomLeft(paddingElementCSS,_strEmpty),setTopRightBottomLeft(_isTextarea?textareaCSS:contentElementCSS,_strPaddingMinus,paddingValues)),_paddingElement.css(paddingElementCSS),_targetElement.css(textareaCSS)}_viewportSize=getViewportSize();var textareaSize=!!_isTextarea&&textareaUpdate(),textareaSizeChanged=_isTextarea&&checkCacheAutoForce(textareaSize,_textareaSizeCache),textareaDynOrigSize=_isTextarea&&textareaSize?{w:textareaDynWidth?textareaSize._dynamicWidth:textareaSize._originalWidth,h:textareaDynHeight?textareaSize._dynamicHeight:textareaSize._originalHeight}:{};if(_textareaSizeCache=textareaSize,heightAuto&&(heightAutoChanged||paddingAbsoluteChanged||boxSizingChanged||padding.c||border.c)?contentElementCSS[_strHeight]=_strAuto:(heightAutoChanged||paddingAbsoluteChanged)&&(contentElementCSS[_strHeight]=_strHundredPercent),widthAuto&&(widthAutoChanged||paddingAbsoluteChanged||boxSizingChanged||padding.c||border.c||cssDirectionChanged)?(contentElementCSS[_strWidth]=_strAuto,contentGlueElementCSS[_strMaxMinus+_strWidth]=_strHundredPercent):(widthAutoChanged||paddingAbsoluteChanged)&&(contentElementCSS[_strWidth]=_strHundredPercent,contentElementCSS[_strFloat]=_strEmpty,contentGlueElementCSS[_strMaxMinus+_strWidth]=_strEmpty),widthAuto?(contentGlueElementCSS[_strWidth]=_strAuto,contentElementCSS[_strWidth]=VENDORS._cssPropertyValue(_strWidth,"max-content intrinsic")||_strAuto,contentElementCSS[_strFloat]=isRTLRight):contentGlueElementCSS[_strWidth]=_strEmpty,contentGlueElementCSS[_strHeight]=heightAuto?textareaDynOrigSize.h||_contentElementNative[LEXICON.cH]:_strEmpty,sizeAutoCapable&&_contentGlueElement.css(contentGlueElementCSS),_contentElement.css(contentElementCSS),contentElementCSS={},contentGlueElementCSS={},hostSizeChanged||contentSizeChanged||textareaSizeChanged||cssDirectionChanged||boxSizingChanged||paddingAbsoluteChanged||widthAutoChanged||widthAuto||heightAutoChanged||heightAuto||ignoreOverlayScrollbarHidingChanged||overflowBehaviorChanged||clipAlwaysChanged||resizeChanged||scrollbarsVisibilityChanged||scrollbarsAutoHideChanged||scrollbarsDragScrollingChanged||scrollbarsClickScrollingChanged||textareaDynWidthChanged||textareaDynHeightChanged||textareaAutoWrappingChanged){var strOverflow="overflow",strOverflowX=strOverflow+"-x",strOverflowY=strOverflow+"-y",strHidden="hidden",strVisible="visible";if(!_nativeScrollbarStyling){var viewportElementResetCSS={},resetXTmp=_hasOverflowCache.y&&_hideOverflowCache.ys&&!ignoreOverlayScrollbarHiding?_nativeScrollbarIsOverlaid.y?_viewportElement.css(isRTLLeft):-_nativeScrollbarSize.y:0,resetBottomTmp=_hasOverflowCache.x&&_hideOverflowCache.xs&&!ignoreOverlayScrollbarHiding?_nativeScrollbarIsOverlaid.x?_viewportElement.css(_strBottom):-_nativeScrollbarSize.x:0;setTopRightBottomLeft(viewportElementResetCSS,_strEmpty),_viewportElement.css(viewportElementResetCSS)}var contentMeasureElement=getContentMeasureElement(),contentSize={w:textareaDynOrigSize.w||contentMeasureElement[LEXICON.cW],h:textareaDynOrigSize.h||contentMeasureElement[LEXICON.cH]},scrollSize={w:contentMeasureElement[LEXICON.sW],h:contentMeasureElement[LEXICON.sH]};_nativeScrollbarStyling||(viewportElementResetCSS[_strBottom]=wasHeightAuto?_strEmpty:resetBottomTmp,viewportElementResetCSS[isRTLLeft]=wasWidthAuto?_strEmpty:resetXTmp,_viewportElement.css(viewportElementResetCSS)),_viewportSize=getViewportSize();var hostSize=getHostSize(),hostAbsoluteRectSize={w:hostSize.w-_marginX-_borderX-(_isBorderBox?0:_paddingX),h:hostSize.h-_marginY-_borderY-(_isBorderBox?0:_paddingY)},contentGlueSize={w:MATH.max((widthAuto?contentSize.w:scrollSize.w)+paddingAbsoluteX,hostAbsoluteRectSize.w),h:MATH.max((heightAuto?contentSize.h:scrollSize.h)+paddingAbsoluteY,hostAbsoluteRectSize.h)};if(contentGlueSize.c=checkCacheAutoForce(contentGlueSize,_contentGlueSizeCache),_contentGlueSizeCache=contentGlueSize,sizeAutoCapable){(contentGlueSize.c||heightAuto||widthAuto)&&(contentGlueElementCSS[_strWidth]=contentGlueSize.w,contentGlueElementCSS[_strHeight]=contentGlueSize.h,_isTextarea||(contentSize={w:contentMeasureElement[LEXICON.cW],h:contentMeasureElement[LEXICON.cH]}));var textareaCoverCSS={},setContentGlueElementCSSfunction=function setContentGlueElementCSSfunction(horizontal){var scrollbarVars=getScrollbarVars(horizontal),wh=scrollbarVars._w_h,strWH=scrollbarVars._width_height,autoSize=horizontal?widthAuto:heightAuto,borderSize=horizontal?_borderX:_borderY,paddingSize=horizontal?_paddingX:_paddingY,marginSize=horizontal?_marginX:_marginY,viewportSize=_viewportSize[wh]-borderSize-marginSize-(_isBorderBox?0:paddingSize);(!autoSize||!autoSize&&border.c)&&(contentGlueElementCSS[strWH]=hostAbsoluteRectSize[wh]-1),!(autoSize&&contentSize[wh]0&&(contentGlueElementCSS[strWH]=MATH.max(1,contentGlueElementCSS[strWH]))};setContentGlueElementCSSfunction(!0),setContentGlueElementCSSfunction(!1),_isTextarea&&_textareaCoverElement.css(textareaCoverCSS),_contentGlueElement.css(contentGlueElementCSS)}widthAuto&&(contentElementCSS[_strWidth]=_strHundredPercent),!widthAuto||_isBorderBox||_mutationObserversConnected||(contentElementCSS[_strFloat]="none"),_contentElement.css(contentElementCSS),contentElementCSS={};var contentScrollSize={w:contentMeasureElement[LEXICON.sW],h:contentMeasureElement[LEXICON.sH]};contentScrollSize.c=contentSizeChanged=checkCacheAutoForce(contentScrollSize,_contentScrollSizeCache),_contentScrollSizeCache=contentScrollSize,_viewportSize=getViewportSize(),hostSizeChanged=checkCacheAutoForce(hostSize=getHostSize(),_hostSizeCache),_hostSizeCache=hostSize;var hideOverflowForceTextarea=_isTextarea&&(0===_viewportSize.w||0===_viewportSize.h),previousOverflowAmount=_overflowAmountCache,overflowBehaviorIsVS={},overflowBehaviorIsVH={},overflowBehaviorIsS={},overflowAmount={},hasOverflow={},hideOverflow={},canScroll={},viewportRect=_paddingElementNative[LEXICON.bCR](),setOverflowVariables=function setOverflowVariables(horizontal){var scrollbarVars=getScrollbarVars(horizontal),xyI=getScrollbarVars(!horizontal)._x_y,xy=scrollbarVars._x_y,wh=scrollbarVars._w_h,widthHeight=scrollbarVars._width_height,scrollMax=_strScroll+scrollbarVars._Left_Top+"Max",fractionalOverflowAmount=viewportRect[widthHeight]?MATH.abs(viewportRect[widthHeight]-_viewportSize[wh]):0,checkFractionalOverflowAmount=previousOverflowAmount&&previousOverflowAmount[xy]>0&&0===_viewportElementNative[scrollMax];overflowBehaviorIsVS[xy]="v-s"===overflowBehavior[xy],overflowBehaviorIsVH[xy]="v-h"===overflowBehavior[xy],overflowBehaviorIsS[xy]="s"===overflowBehavior[xy],overflowAmount[xy]=MATH.max(0,MATH.round(100*(contentScrollSize[wh]-_viewportSize[wh]))/100),overflowAmount[xy]*=hideOverflowForceTextarea||checkFractionalOverflowAmount&&fractionalOverflowAmount>0&&fractionalOverflowAmount<1?0:1,hasOverflow[xy]=overflowAmount[xy]>0,hideOverflow[xy]=overflowBehaviorIsVS[xy]||overflowBehaviorIsVH[xy]?hasOverflow[xyI]&&!overflowBehaviorIsVS[xyI]&&!overflowBehaviorIsVH[xyI]:hasOverflow[xy],hideOverflow[xy+"s"]=!!hideOverflow[xy]&&(overflowBehaviorIsS[xy]||overflowBehaviorIsVS[xy]),canScroll[xy]=hasOverflow[xy]&&hideOverflow[xy+"s"]};if(setOverflowVariables(!0),setOverflowVariables(!1),overflowAmount.c=checkCacheAutoForce(overflowAmount,_overflowAmountCache),_overflowAmountCache=overflowAmount,hasOverflow.c=checkCacheAutoForce(hasOverflow,_hasOverflowCache),_hasOverflowCache=hasOverflow,hideOverflow.c=checkCacheAutoForce(hideOverflow,_hideOverflowCache),_hideOverflowCache=hideOverflow,_nativeScrollbarIsOverlaid.x||_nativeScrollbarIsOverlaid.y){var setContentElementCSS,borderDesign="px solid transparent",contentArrangeElementCSS={},arrangeContent={},arrangeChanged=force;(hasOverflow.x||hasOverflow.y)&&(arrangeContent.w=_nativeScrollbarIsOverlaid.y&&hasOverflow.y?contentScrollSize.w+_overlayScrollbarDummySize.y:_strEmpty,arrangeContent.h=_nativeScrollbarIsOverlaid.x&&hasOverflow.x?contentScrollSize.h+_overlayScrollbarDummySize.x:_strEmpty,arrangeChanged=checkCacheAutoForce(arrangeContent,_arrangeContentSizeCache),_arrangeContentSizeCache=arrangeContent),(hasOverflow.c||hideOverflow.c||contentScrollSize.c||cssDirectionChanged||widthAutoChanged||heightAutoChanged||widthAuto||heightAuto||ignoreOverlayScrollbarHidingChanged)&&(contentElementCSS[_strMarginMinus+isRTLRight]=contentElementCSS[_strBorderMinus+isRTLRight]=_strEmpty,setContentElementCSS=function setContentElementCSS(horizontal){var scrollbarVars=getScrollbarVars(horizontal),scrollbarVarsInverted=getScrollbarVars(!horizontal),xy=scrollbarVars._x_y,strDirection=horizontal?_strBottom:isRTLLeft,invertedAutoSize=horizontal?heightAuto:widthAuto;_nativeScrollbarIsOverlaid[xy]&&hasOverflow[xy]&&hideOverflow[xy+"s"]?(contentElementCSS[_strMarginMinus+strDirection]=invertedAutoSize?ignoreOverlayScrollbarHiding?_strEmpty:_overlayScrollbarDummySize[xy]:_strEmpty,contentElementCSS[_strBorderMinus+strDirection]=horizontal&&invertedAutoSize||ignoreOverlayScrollbarHiding?_strEmpty:_overlayScrollbarDummySize[xy]+borderDesign):(arrangeContent[scrollbarVarsInverted._w_h]=contentElementCSS[_strMarginMinus+strDirection]=contentElementCSS[_strBorderMinus+strDirection]=_strEmpty,arrangeChanged=!0)},_nativeScrollbarStyling?addRemoveClass(_viewportElement,_classNameViewportNativeScrollbarsInvisible,!ignoreOverlayScrollbarHiding):(setContentElementCSS(!0),setContentElementCSS(!1))),ignoreOverlayScrollbarHiding&&(arrangeContent.w=arrangeContent.h=_strEmpty,arrangeChanged=!0),arrangeChanged&&!_nativeScrollbarStyling&&(contentArrangeElementCSS[_strWidth]=hideOverflow.y?arrangeContent.w:_strEmpty,contentArrangeElementCSS[_strHeight]=hideOverflow.x?arrangeContent.h:_strEmpty,_contentArrangeElement||(_contentArrangeElement=FRAMEWORK(generateDiv(_classNameContentArrangeElement)),_viewportElement.prepend(_contentArrangeElement)),_contentArrangeElement.css(contentArrangeElementCSS)),_contentElement.css(contentElementCSS)}var setViewportCSS,viewportElementCSS={};if(paddingElementCSS={},(hostSizeChanged||hasOverflow.c||hideOverflow.c||contentScrollSize.c||overflowBehaviorChanged||boxSizingChanged||ignoreOverlayScrollbarHidingChanged||cssDirectionChanged||clipAlwaysChanged||heightAutoChanged)&&(viewportElementCSS[isRTLRight]=_strEmpty,(setViewportCSS=function setViewportCSS(horizontal){var scrollbarVars=getScrollbarVars(horizontal),scrollbarVarsInverted=getScrollbarVars(!horizontal),xy=scrollbarVars._x_y,XY=scrollbarVars._X_Y,strDirection=horizontal?_strBottom:isRTLLeft,reset=function reset(){viewportElementCSS[strDirection]=_strEmpty,_contentBorderSize[scrollbarVarsInverted._w_h]=0};hasOverflow[xy]&&hideOverflow[xy+"s"]?(viewportElementCSS[strOverflow+XY]=_strScroll,ignoreOverlayScrollbarHiding||_nativeScrollbarStyling?reset():(viewportElementCSS[strDirection]=-(_nativeScrollbarIsOverlaid[xy]?_overlayScrollbarDummySize[xy]:_nativeScrollbarSize[xy]),_contentBorderSize[scrollbarVarsInverted._w_h]=_nativeScrollbarIsOverlaid[xy]?_overlayScrollbarDummySize[scrollbarVarsInverted._x_y]:0)):(viewportElementCSS[strOverflow+XY]=_strEmpty,reset())})(!0),setViewportCSS(!1),!_nativeScrollbarStyling&&(_viewportSize.h<_nativeScrollbarMinSize.x||_viewportSize.w<_nativeScrollbarMinSize.y)&&(hasOverflow.x&&hideOverflow.x&&!_nativeScrollbarIsOverlaid.x||hasOverflow.y&&hideOverflow.y&&!_nativeScrollbarIsOverlaid.y)?(viewportElementCSS[_strPaddingMinus+_strTop]=_nativeScrollbarMinSize.x,viewportElementCSS[_strMarginMinus+_strTop]=-_nativeScrollbarMinSize.x,viewportElementCSS[_strPaddingMinus+isRTLRight]=_nativeScrollbarMinSize.y,viewportElementCSS[_strMarginMinus+isRTLRight]=-_nativeScrollbarMinSize.y):viewportElementCSS[_strPaddingMinus+_strTop]=viewportElementCSS[_strMarginMinus+_strTop]=viewportElementCSS[_strPaddingMinus+isRTLRight]=viewportElementCSS[_strMarginMinus+isRTLRight]=_strEmpty,viewportElementCSS[_strPaddingMinus+isRTLLeft]=viewportElementCSS[_strMarginMinus+isRTLLeft]=_strEmpty,hasOverflow.x&&hideOverflow.x||hasOverflow.y&&hideOverflow.y||hideOverflowForceTextarea?_isTextarea&&hideOverflowForceTextarea&&(paddingElementCSS[strOverflowX]=paddingElementCSS[strOverflowY]=strHidden):(!clipAlways||overflowBehaviorIsVH.x||overflowBehaviorIsVS.x||overflowBehaviorIsVH.y||overflowBehaviorIsVS.y)&&(_isTextarea&&(paddingElementCSS[strOverflowX]=paddingElementCSS[strOverflowY]=_strEmpty),viewportElementCSS[strOverflowX]=viewportElementCSS[strOverflowY]=strVisible),_paddingElement.css(paddingElementCSS),_viewportElement.css(viewportElementCSS),viewportElementCSS={},(hasOverflow.c||boxSizingChanged||widthAutoChanged||heightAutoChanged)&&(!_nativeScrollbarIsOverlaid.x||!_nativeScrollbarIsOverlaid.y))){var elementStyle=_contentElementNative[LEXICON.s];elementStyle.webkitTransform="scale(1)",elementStyle.display="run-in",elementStyle.display=_strEmpty,elementStyle.webkitTransform=_strEmpty}if(contentElementCSS={},cssDirectionChanged||widthAutoChanged||heightAutoChanged)if(_isRTL&&widthAuto){var floatTmp=_contentElement.css(_strFloat),posLeftWithoutFloat=MATH.round(_contentElement.css(_strFloat,_strEmpty).css(_strLeft,_strEmpty).position().left);_contentElement.css(_strFloat,floatTmp),posLeftWithoutFloat!==MATH.round(_contentElement.position().left)&&(contentElementCSS[_strLeft]=posLeftWithoutFloat)}else contentElementCSS[_strLeft]=_strEmpty;if(_contentElement.css(contentElementCSS),_isTextarea&&contentSizeChanged){var textareaInfo=getTextareaInfo();if(textareaInfo){var textareaRowsChanged=_textareaInfoCache===undefined$1||textareaInfo._rows!==_textareaInfoCache._rows,cursorRow=textareaInfo._cursorRow,cursorCol=textareaInfo._cursorColumn,widestRow=textareaInfo._widestRow,lastRow=textareaInfo._rows,lastCol=textareaInfo._columns,cursorIsLastPosition=textareaInfo._cursorPosition>=textareaInfo._cursorMax&&_textareaHasFocus,textareaScrollAmount={x:textareaAutoWrapping||cursorCol!==lastCol||cursorRow!==widestRow?-1:_overflowAmountCache.x,y:(textareaAutoWrapping?cursorIsLastPosition||textareaRowsChanged&&previousOverflowAmount&&currScroll.y===previousOverflowAmount.y:(cursorIsLastPosition||textareaRowsChanged)&&cursorRow===lastRow)?_overflowAmountCache.y:-1};currScroll.x=textareaScrollAmount.x>-1?_isRTL&&_normalizeRTLCache&&_rtlScrollBehavior.i?0:textareaScrollAmount.x:currScroll.x,currScroll.y=textareaScrollAmount.y>-1?textareaScrollAmount.y:currScroll.y}_textareaInfoCache=textareaInfo}_isRTL&&_rtlScrollBehavior.i&&_nativeScrollbarIsOverlaid.y&&hasOverflow.x&&_normalizeRTLCache&&(currScroll.x+=_contentBorderSize.w||0),widthAuto&&_hostElement[_strScrollLeft](0),heightAuto&&_hostElement[_strScrollTop](0),_viewportElement[_strScrollLeft](currScroll.x)[_strScrollTop](currScroll.y);var scrollbarsVisibilityVisible="v"===scrollbarsVisibility,scrollbarsVisibilityHidden="h"===scrollbarsVisibility,scrollbarsVisibilityAuto="a"===scrollbarsVisibility,refreshScrollbarsVisibility=function refreshScrollbarsVisibility(showX,showY){showY=showY===undefined$1?showX:showY,refreshScrollbarAppearance(!0,showX,canScroll.x),refreshScrollbarAppearance(!1,showY,canScroll.y)};addRemoveClass(_hostElement,_classNameHostOverflow,hideOverflow.x||hideOverflow.y),addRemoveClass(_hostElement,_classNameHostOverflowX,hideOverflow.x),addRemoveClass(_hostElement,_classNameHostOverflowY,hideOverflow.y),cssDirectionChanged&&!_isBody&&addRemoveClass(_hostElement,_classNameHostRTL,_isRTL),_isBody&&addClass(_hostElement,_classNameHostResizeDisabled),resizeChanged&&(addRemoveClass(_hostElement,_classNameHostResizeDisabled,_resizeNone),addRemoveClass(_scrollbarCornerElement,_classNameScrollbarCornerResize,!_resizeNone),addRemoveClass(_scrollbarCornerElement,_classNameScrollbarCornerResizeB,_resizeBoth),addRemoveClass(_scrollbarCornerElement,_classNameScrollbarCornerResizeH,_resizeHorizontal),addRemoveClass(_scrollbarCornerElement,_classNameScrollbarCornerResizeV,_resizeVertical)),(scrollbarsVisibilityChanged||overflowBehaviorChanged||hideOverflow.c||hasOverflow.c||ignoreOverlayScrollbarHidingChanged)&&(ignoreOverlayScrollbarHiding?ignoreOverlayScrollbarHidingChanged&&(removeClass(_hostElement,_classNameHostScrolling),ignoreOverlayScrollbarHiding&&refreshScrollbarsVisibility(!1)):scrollbarsVisibilityAuto?refreshScrollbarsVisibility(canScroll.x,canScroll.y):scrollbarsVisibilityVisible?refreshScrollbarsVisibility(!0):scrollbarsVisibilityHidden&&refreshScrollbarsVisibility(!1)),(scrollbarsAutoHideChanged||ignoreOverlayScrollbarHidingChanged)&&(setupHostMouseTouchEvents(!_scrollbarsAutoHideLeave&&!_scrollbarsAutoHideMove),refreshScrollbarsAutoHide(_scrollbarsAutoHideNever,!_scrollbarsAutoHideNever)),(hostSizeChanged||overflowAmount.c||heightAutoChanged||widthAutoChanged||resizeChanged||boxSizingChanged||paddingAbsoluteChanged||ignoreOverlayScrollbarHidingChanged||cssDirectionChanged)&&(refreshScrollbarHandleLength(!0),refreshScrollbarHandleOffset(!0),refreshScrollbarHandleLength(!1),refreshScrollbarHandleOffset(!1)),scrollbarsClickScrollingChanged&&refreshScrollbarsInteractive(!0,scrollbarsClickScrolling),scrollbarsDragScrollingChanged&&refreshScrollbarsInteractive(!1,scrollbarsDragScrolling),dispatchCallback("onDirectionChanged",{isRTL:_isRTL,dir:cssDirection},cssDirectionChanged),dispatchCallback("onHostSizeChanged",{width:_hostSizeCache.w,height:_hostSizeCache.h},hostSizeChanged),dispatchCallback("onContentSizeChanged",{width:_contentScrollSizeCache.w,height:_contentScrollSizeCache.h},contentSizeChanged),dispatchCallback("onOverflowChanged",{x:hasOverflow.x,y:hasOverflow.y,xScrollable:hideOverflow.xs,yScrollable:hideOverflow.ys,clipped:hideOverflow.x||hideOverflow.y},hasOverflow.c||hideOverflow.c),dispatchCallback("onOverflowAmountChanged",{x:overflowAmount.x,y:overflowAmount.y},overflowAmount.c)}_isBody&&_bodyMinSizeCache&&(_hasOverflowCache.c||_bodyMinSizeCache.c)&&(_bodyMinSizeCache.f||bodyMinSizeChanged(),_nativeScrollbarIsOverlaid.y&&_hasOverflowCache.x&&_contentElement.css(_strMinMinus+_strWidth,_bodyMinSizeCache.w+_overlayScrollbarDummySize.y),_nativeScrollbarIsOverlaid.x&&_hasOverflowCache.y&&_contentElement.css(_strMinMinus+_strHeight,_bodyMinSizeCache.h+_overlayScrollbarDummySize.x),_bodyMinSizeCache.c=!1),_initialized&&changedOptions.updateOnLoad&&updateElementsOnLoad(),dispatchCallback("onUpdated",{forced:force})}}function updateElementsOnLoad(){_isTextarea||eachUpdateOnLoad((function(i,updateOnLoadSelector){_contentElement.find(updateOnLoadSelector).each((function(i,el){COMPATIBILITY.inA(el,_updateOnLoadElms)<0&&(_updateOnLoadElms.push(el),FRAMEWORK(el).off(_updateOnLoadEventName,updateOnLoadCallback).on(_updateOnLoadEventName,updateOnLoadCallback))}))}))}function setOptions(newOptions){var validatedOpts=_pluginsOptions._validate(newOptions,_pluginsOptions._template,!0,_currentOptions);return _currentOptions=extendDeep({},_currentOptions,validatedOpts._default),_currentPreparedOptions=extendDeep({},_currentPreparedOptions,validatedOpts._prepared),validatedOpts._prepared}function setupStructureDOM(destroy){var strParent="parent",classNameResizeObserverHost="os-resize-observer-host",classNameTextareaElementFull=_classNameTextareaElement+_strSpace+_classNameTextInherit,textareaClass=_isTextarea?_strSpace+_classNameTextInherit:_strEmpty,adoptAttrs=_currentPreparedOptions.textarea.inheritedAttrs,adoptAttrsMap={},applyAdoptedAttrs=function applyAdoptedAttrs(){var applyAdoptedAttrsElm=destroy?_targetElement:_hostElement;each(adoptAttrsMap,(function(key,value){type(value)==TYPES.s&&(key==LEXICON.c?applyAdoptedAttrsElm.addClass(value):applyAdoptedAttrsElm.attr(key,value))}))},hostElementClassNames=[_classNameHostElement,_classNameHostElementForeign,_classNameHostTextareaElement,_classNameHostResizeDisabled,_classNameHostRTL,_classNameHostScrollbarHorizontalHidden,_classNameHostScrollbarVerticalHidden,_classNameHostTransition,_classNameHostScrolling,_classNameHostOverflow,_classNameHostOverflowX,_classNameHostOverflowY,_classNameThemeNone,_classNameTextareaElement,_classNameTextInherit,_classNameCache].join(_strSpace),hostElementCSS={};_hostElement=_hostElement||(_isTextarea?_domExists?_targetElement[strParent]()[strParent]()[strParent]()[strParent]():FRAMEWORK(generateDiv(_classNameHostTextareaElement)):_targetElement),_contentElement=_contentElement||selectOrGenerateDivByClass(_classNameContentElement+textareaClass),_viewportElement=_viewportElement||selectOrGenerateDivByClass(_classNameViewportElement+textareaClass),_paddingElement=_paddingElement||selectOrGenerateDivByClass(_classNamePaddingElement+textareaClass),_sizeObserverElement=_sizeObserverElement||selectOrGenerateDivByClass(classNameResizeObserverHost),_textareaCoverElement=_textareaCoverElement||(_isTextarea?selectOrGenerateDivByClass(_classNameTextareaCoverElement):undefined$1),_domExists&&addClass(_hostElement,_classNameHostElementForeign),destroy&&removeClass(_hostElement,hostElementClassNames),adoptAttrs=type(adoptAttrs)==TYPES.s?adoptAttrs.split(_strSpace):adoptAttrs,COMPATIBILITY.isA(adoptAttrs)&&_isTextarea&&each(adoptAttrs,(function(i,v){type(v)==TYPES.s&&(adoptAttrsMap[v]=destroy?_hostElement.attr(v):_targetElement.attr(v))})),destroy?(_domExists&&_initialized?(_sizeObserverElement.children().remove(),each([_paddingElement,_viewportElement,_contentElement,_textareaCoverElement],(function(i,elm){elm&&removeClass(elm.removeAttr(LEXICON.s),_classNamesDynamicDestroy)})),addClass(_hostElement,_isTextarea?_classNameHostTextareaElement:_classNameHostElement)):(remove(_sizeObserverElement),_contentElement.contents().unwrap().unwrap().unwrap(),_isTextarea&&(_targetElement.unwrap(),remove(_hostElement),remove(_textareaCoverElement),applyAdoptedAttrs())),_isTextarea&&_targetElement.removeAttr(LEXICON.s),_isBody&&removeClass(_htmlElement,_classNameHTMLElement)):(_isTextarea&&(_currentPreparedOptions.sizeAutoCapable||(hostElementCSS[_strWidth]=_targetElement.css(_strWidth),hostElementCSS[_strHeight]=_targetElement.css(_strHeight)),_domExists||_targetElement.addClass(_classNameTextInherit).wrap(_hostElement),_hostElement=_targetElement[strParent]().css(hostElementCSS)),_domExists||(addClass(_targetElement,_isTextarea?classNameTextareaElementFull:_classNameHostElement),_hostElement.wrapInner(_contentElement).wrapInner(_viewportElement).wrapInner(_paddingElement).prepend(_sizeObserverElement),_contentElement=findFirst(_hostElement,_strDot+_classNameContentElement),_viewportElement=findFirst(_hostElement,_strDot+_classNameViewportElement),_paddingElement=findFirst(_hostElement,_strDot+_classNamePaddingElement),_isTextarea&&(_contentElement.prepend(_textareaCoverElement),applyAdoptedAttrs())),_nativeScrollbarStyling&&addClass(_viewportElement,_classNameViewportNativeScrollbarsInvisible),_nativeScrollbarIsOverlaid.x&&_nativeScrollbarIsOverlaid.y&&addClass(_viewportElement,_classNameViewportNativeScrollbarsOverlaid),_isBody&&addClass(_htmlElement,_classNameHTMLElement),_sizeObserverElementNative=_sizeObserverElement[0],_hostElementNative=_hostElement[0],_paddingElementNative=_paddingElement[0],_viewportElementNative=_viewportElement[0],_contentElementNative=_contentElement[0],updateViewportAttrsFromTarget())}function setupStructureEvents(){var textareaUpdateIntervalID,scrollStopTimeoutId,textareaKeyDownRestrictedKeyCodes=[112,113,114,115,116,117,118,119,120,121,123,33,34,37,38,39,40,16,17,18,19,20,144],textareaKeyDownKeyCodesList=[],scrollStopDelay=175,strFocus="focus";function updateTextarea(doClearInterval){textareaUpdate(),_base.update(_strAuto),doClearInterval&&_autoUpdateRecommended&&clearInterval(textareaUpdateIntervalID)}function textareaOnScroll(event){return _targetElement[_strScrollLeft](_rtlScrollBehavior.i&&_normalizeRTLCache?9999999:0),_targetElement[_strScrollTop](0),COMPATIBILITY.prvD(event),COMPATIBILITY.stpP(event),!1}function textareaOnDrop(event){setTimeout((function(){_destroyed||updateTextarea()}),50)}function textareaOnFocus(){_textareaHasFocus=!0,addClass(_hostElement,strFocus)}function textareaOnFocusout(){_textareaHasFocus=!1,textareaKeyDownKeyCodesList=[],removeClass(_hostElement,strFocus),updateTextarea(!0)}function textareaOnKeyDown(event){var keyCode=event.keyCode;inArray(keyCode,textareaKeyDownRestrictedKeyCodes)<0&&(textareaKeyDownKeyCodesList[LEXICON.l]||(updateTextarea(),textareaUpdateIntervalID=setInterval(updateTextarea,1e3/60)),inArray(keyCode,textareaKeyDownKeyCodesList)<0&&textareaKeyDownKeyCodesList.push(keyCode))}function textareaOnKeyUp(event){var keyCode=event.keyCode,index=inArray(keyCode,textareaKeyDownKeyCodesList);inArray(keyCode,textareaKeyDownRestrictedKeyCodes)<0&&(index>-1&&textareaKeyDownKeyCodesList.splice(index,1),textareaKeyDownKeyCodesList[LEXICON.l]||updateTextarea(!0))}function contentOnTransitionEnd(event){!0!==_autoUpdateCache&&isSizeAffectingCSSProperty((event=event.originalEvent||event).propertyName)&&_base.update(_strAuto)}function viewportOnScroll(event){_sleeping||(scrollStopTimeoutId!==undefined$1?clearTimeout(scrollStopTimeoutId):((_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove)&&refreshScrollbarsAutoHide(!0),nativeOverlayScrollbarsAreActive()||addClass(_hostElement,_classNameHostScrolling),dispatchCallback("onScrollStart",event)),_scrollbarsHandlesDefineScrollPos||(refreshScrollbarHandleOffset(!0),refreshScrollbarHandleOffset(!1)),dispatchCallback("onScroll",event),scrollStopTimeoutId=setTimeout((function(){_destroyed||(clearTimeout(scrollStopTimeoutId),scrollStopTimeoutId=undefined$1,(_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove)&&refreshScrollbarsAutoHide(!1),nativeOverlayScrollbarsAreActive()||removeClass(_hostElement,_classNameHostScrolling),dispatchCallback("onScrollStop",event))}),scrollStopDelay))}_isTextarea?(_msieVersion>9||!_autoUpdateRecommended?addDestroyEventListener(_targetElement,"input",updateTextarea):addDestroyEventListener(_targetElement,[_strKeyDownEvent,_strKeyUpEvent],[textareaOnKeyDown,textareaOnKeyUp]),addDestroyEventListener(_targetElement,[_strScroll,"drop",strFocus,strFocus+"out"],[textareaOnScroll,textareaOnDrop,textareaOnFocus,textareaOnFocusout])):addDestroyEventListener(_contentElement,_strTransitionEndEvent,contentOnTransitionEnd),addDestroyEventListener(_viewportElement,_strScroll,viewportOnScroll,!0)}function setupScrollbarsDOM(destroy){var horizontalElements,verticalElements,selectOrGenerateScrollbarDOM=function selectOrGenerateScrollbarDOM(isHorizontal){var scrollbar=selectOrGenerateDivByClass(_classNameScrollbar+_strSpace+(isHorizontal?_classNameScrollbarHorizontal:_classNameScrollbarVertical),!0),track=selectOrGenerateDivByClass(_classNameScrollbarTrack,scrollbar),handle=selectOrGenerateDivByClass(_classNameScrollbarHandle,scrollbar);return _domExists||destroy||(scrollbar.append(track),track.append(handle)),{_scrollbar:scrollbar,_track:track,_handle:handle}};function resetScrollbarDOM(isHorizontal){var scrollbarVars=getScrollbarVars(isHorizontal),scrollbar=scrollbarVars._scrollbar,track=scrollbarVars._track,handle=scrollbarVars._handle;_domExists&&_initialized?each([scrollbar,track,handle],(function(i,elm){removeClass(elm.removeAttr(LEXICON.s),_classNamesDynamicDestroy)})):remove(scrollbar||selectOrGenerateScrollbarDOM(isHorizontal)._scrollbar)}destroy?(resetScrollbarDOM(!0),resetScrollbarDOM()):(horizontalElements=selectOrGenerateScrollbarDOM(!0),verticalElements=selectOrGenerateScrollbarDOM(),_scrollbarHorizontalElement=horizontalElements._scrollbar,_scrollbarHorizontalTrackElement=horizontalElements._track,_scrollbarHorizontalHandleElement=horizontalElements._handle,_scrollbarVerticalElement=verticalElements._scrollbar,_scrollbarVerticalTrackElement=verticalElements._track,_scrollbarVerticalHandleElement=verticalElements._handle,_domExists||(_paddingElement.after(_scrollbarVerticalElement),_paddingElement.after(_scrollbarHorizontalElement)))}function setupScrollbarEvents(isHorizontal){var trackTimeout,mouseDownScroll,mouseDownOffset,mouseDownInvertedScale,scrollbarVars=getScrollbarVars(isHorizontal),scrollbarVarsInfo=scrollbarVars._info,insideIFrame=_windowElementNative.top!==_windowElementNative,xy=scrollbarVars._x_y,XY=scrollbarVars._X_Y,scroll=_strScroll+scrollbarVars._Left_Top,strActive="active",strSnapHandle="snapHandle",strClickEvent="click",scrollDurationFactor=1,increaseDecreaseScrollAmountKeyCodes=[16,17];function getPointerPosition(event){return _msieVersion&&insideIFrame?event["screen"+XY]:COMPATIBILITY.page(event)[xy]}function getPreparedScrollbarsOption(name){return _currentPreparedOptions.scrollbars[name]}function increaseTrackScrollAmount(){scrollDurationFactor=.5}function decreaseTrackScrollAmount(){scrollDurationFactor=1}function stopClickEventPropagation(event){COMPATIBILITY.stpP(event)}function documentKeyDown(event){inArray(event.keyCode,increaseDecreaseScrollAmountKeyCodes)>-1&&increaseTrackScrollAmount()}function documentKeyUp(event){inArray(event.keyCode,increaseDecreaseScrollAmountKeyCodes)>-1&&decreaseTrackScrollAmount()}function onMouseTouchDownContinue(event){var isTouchEvent=(event.originalEvent||event).touches!==undefined$1;return!(_sleeping||_destroyed||nativeOverlayScrollbarsAreActive()||!_scrollbarsDragScrollingCache||isTouchEvent&&!getPreparedScrollbarsOption("touchSupport"))&&(1===COMPATIBILITY.mBtn(event)||isTouchEvent)}function documentDragMove(event){if(onMouseTouchDownContinue(event)){var trackLength=scrollbarVarsInfo._trackLength,handleLength=scrollbarVarsInfo._handleLength,scrollDelta=scrollbarVarsInfo._maxScroll*((getPointerPosition(event)-mouseDownOffset)*mouseDownInvertedScale/(trackLength-handleLength));scrollDelta=isFinite(scrollDelta)?scrollDelta:0,_isRTL&&isHorizontal&&!_rtlScrollBehavior.i&&(scrollDelta*=-1),_viewportElement[scroll](MATH.round(mouseDownScroll+scrollDelta)),_scrollbarsHandlesDefineScrollPos&&refreshScrollbarHandleOffset(isHorizontal,mouseDownScroll+scrollDelta),_supportPassiveEvents||COMPATIBILITY.prvD(event)}else documentMouseTouchUp(event)}function documentMouseTouchUp(event){if(event=event||event.originalEvent,setupResponsiveEventListener(_documentElement,[_strMouseTouchMoveEvent,_strMouseTouchUpEvent,_strKeyDownEvent,_strKeyUpEvent,_strSelectStartEvent],[documentDragMove,documentMouseTouchUp,documentKeyDown,documentKeyUp,documentOnSelectStart],!0),COMPATIBILITY.rAF()((function(){setupResponsiveEventListener(_documentElement,strClickEvent,stopClickEventPropagation,!0,{_capture:!0})})),_scrollbarsHandlesDefineScrollPos&&refreshScrollbarHandleOffset(isHorizontal,!0),_scrollbarsHandlesDefineScrollPos=!1,removeClass(_bodyElement,_classNameDragging),removeClass(scrollbarVars._handle,strActive),removeClass(scrollbarVars._track,strActive),removeClass(scrollbarVars._scrollbar,strActive),mouseDownScroll=undefined$1,mouseDownOffset=undefined$1,mouseDownInvertedScale=1,decreaseTrackScrollAmount(),trackTimeout!==undefined$1&&(_base.scrollStop(),clearTimeout(trackTimeout),trackTimeout=undefined$1),event){var rect=_hostElementNative[LEXICON.bCR]();event.clientX>=rect.left&&event.clientX<=rect.right&&event.clientY>=rect.top&&event.clientY<=rect.bottom||hostOnMouseLeave(),(_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove)&&refreshScrollbarsAutoHide(!1)}}function onHandleMouseTouchDown(event){onMouseTouchDownContinue(event)&&onHandleMouseTouchDownAction(event)}function onHandleMouseTouchDownAction(event){mouseDownScroll=_viewportElement[scroll](),mouseDownScroll=isNaN(mouseDownScroll)?0:mouseDownScroll,(_isRTL&&isHorizontal&&!_rtlScrollBehavior.n||!_isRTL)&&(mouseDownScroll=mouseDownScroll<0?0:mouseDownScroll),mouseDownInvertedScale=getHostElementInvertedScale()[xy],mouseDownOffset=getPointerPosition(event),_scrollbarsHandlesDefineScrollPos=!getPreparedScrollbarsOption(strSnapHandle),addClass(_bodyElement,_classNameDragging),addClass(scrollbarVars._handle,strActive),addClass(scrollbarVars._scrollbar,strActive),setupResponsiveEventListener(_documentElement,[_strMouseTouchMoveEvent,_strMouseTouchUpEvent,_strSelectStartEvent],[documentDragMove,documentMouseTouchUp,documentOnSelectStart]),COMPATIBILITY.rAF()((function(){setupResponsiveEventListener(_documentElement,strClickEvent,stopClickEventPropagation,!1,{_capture:!0})})),!_msieVersion&&_documentMixed||COMPATIBILITY.prvD(event),COMPATIBILITY.stpP(event)}function onTrackMouseTouchDown(event){if(onMouseTouchDownContinue(event)){var decreaseScroll,handleToViewportRatio=scrollbarVars._info._handleLength/Math.round(MATH.min(1,_viewportSize[scrollbarVars._w_h]/_contentScrollSizeCache[scrollbarVars._w_h])*scrollbarVars._info._trackLength),scrollDistance=MATH.round(_viewportSize[scrollbarVars._w_h]*handleToViewportRatio),scrollBaseDuration=270*handleToViewportRatio,scrollFirstIterationDelay=400*handleToViewportRatio,trackOffset=scrollbarVars._track.offset()[scrollbarVars._left_top],ctrlKey=event.ctrlKey,instantScroll=event.shiftKey,instantScrollTransition=instantScroll&&ctrlKey,isFirstIteration=!0,easing="linear",scrollActionFinsished=function scrollActionFinsished(transition){_scrollbarsHandlesDefineScrollPos&&refreshScrollbarHandleOffset(isHorizontal,transition)},scrollActionInstantFinished=function scrollActionInstantFinished(){scrollActionFinsished(),onHandleMouseTouchDownAction(event)},scrollAction=function scrollAction(){if(!_destroyed){var mouseOffset=(mouseDownOffset-trackOffset)*mouseDownInvertedScale,handleOffset=scrollbarVarsInfo._handleOffset,trackLength=scrollbarVarsInfo._trackLength,handleLength=scrollbarVarsInfo._handleLength,scrollRange=scrollbarVarsInfo._maxScroll,currScroll=scrollbarVarsInfo._currentScroll,scrollDuration=scrollBaseDuration*scrollDurationFactor,timeoutDelay=isFirstIteration?MATH.max(scrollFirstIterationDelay,scrollDuration):scrollDuration,instantScrollPosition=scrollRange*((mouseOffset-handleLength/2)/(trackLength-handleLength)),rtlIsNormal=_isRTL&&isHorizontal&&(!_rtlScrollBehavior.i&&!_rtlScrollBehavior.n||_normalizeRTLCache),decreaseScrollCondition=rtlIsNormal?handleOffsetmouseOffset,scrollObj={},animationObj={easing:easing,step:function step(now){_scrollbarsHandlesDefineScrollPos&&(_viewportElement[scroll](now),refreshScrollbarHandleOffset(isHorizontal,now))}};instantScrollPosition=isFinite(instantScrollPosition)?instantScrollPosition:0,instantScrollPosition=_isRTL&&isHorizontal&&!_rtlScrollBehavior.i?scrollRange-instantScrollPosition:instantScrollPosition,instantScroll?(_viewportElement[scroll](instantScrollPosition),instantScrollTransition?(instantScrollPosition=_viewportElement[scroll](),_viewportElement[scroll](currScroll),instantScrollPosition=rtlIsNormal&&_rtlScrollBehavior.i?scrollRange-instantScrollPosition:instantScrollPosition,instantScrollPosition=rtlIsNormal&&_rtlScrollBehavior.n?-instantScrollPosition:instantScrollPosition,scrollObj[xy]=instantScrollPosition,_base.scroll(scrollObj,extendDeep(animationObj,{duration:130,complete:scrollActionInstantFinished}))):scrollActionInstantFinished()):(decreaseScroll=isFirstIteration?decreaseScrollCondition:decreaseScroll,(rtlIsNormal?decreaseScroll?handleOffset+handleLength>=mouseOffset:handleOffset<=mouseOffset:decreaseScroll?handleOffset<=mouseOffset:handleOffset+handleLength>=mouseOffset)?(clearTimeout(trackTimeout),_base.scrollStop(),trackTimeout=undefined$1,scrollActionFinsished(!0)):(trackTimeout=setTimeout(scrollAction,timeoutDelay),scrollObj[xy]=(decreaseScroll?"-=":"+=")+scrollDistance,_base.scroll(scrollObj,extendDeep(animationObj,{duration:scrollDuration}))),isFirstIteration=!1)}};ctrlKey&&increaseTrackScrollAmount(),mouseDownInvertedScale=getHostElementInvertedScale()[xy],mouseDownOffset=COMPATIBILITY.page(event)[xy],_scrollbarsHandlesDefineScrollPos=!getPreparedScrollbarsOption(strSnapHandle),addClass(_bodyElement,_classNameDragging),addClass(scrollbarVars._track,strActive),addClass(scrollbarVars._scrollbar,strActive),setupResponsiveEventListener(_documentElement,[_strMouseTouchUpEvent,_strKeyDownEvent,_strKeyUpEvent,_strSelectStartEvent],[documentMouseTouchUp,documentKeyDown,documentKeyUp,documentOnSelectStart]),scrollAction(),COMPATIBILITY.prvD(event),COMPATIBILITY.stpP(event)}}function onTrackMouseTouchEnter(event){_scrollbarsHandleHovered=!0,(_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove)&&refreshScrollbarsAutoHide(!0)}function onTrackMouseTouchLeave(event){_scrollbarsHandleHovered=!1,(_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove)&&refreshScrollbarsAutoHide(!1)}function onScrollbarMouseTouchDown(event){COMPATIBILITY.stpP(event)}addDestroyEventListener(scrollbarVars._handle,_strMouseTouchDownEvent,onHandleMouseTouchDown),addDestroyEventListener(scrollbarVars._track,[_strMouseTouchDownEvent,_strMouseEnter,_strMouseLeave],[onTrackMouseTouchDown,onTrackMouseTouchEnter,onTrackMouseTouchLeave]),addDestroyEventListener(scrollbarVars._scrollbar,_strMouseTouchDownEvent,onScrollbarMouseTouchDown),_supportTransition&&addDestroyEventListener(scrollbarVars._scrollbar,_strTransitionEndEvent,(function(event){event.target===scrollbarVars._scrollbar[0]&&(refreshScrollbarHandleLength(isHorizontal),refreshScrollbarHandleOffset(isHorizontal))}))}function refreshScrollbarAppearance(isHorizontal,shallBeVisible,canScroll){var scrollbarElement=isHorizontal?_scrollbarHorizontalElement:_scrollbarVerticalElement;addRemoveClass(_hostElement,isHorizontal?_classNameHostScrollbarHorizontalHidden:_classNameHostScrollbarVerticalHidden,!shallBeVisible),addRemoveClass(scrollbarElement,_classNameScrollbarUnusable,!canScroll)}function refreshScrollbarsAutoHide(shallBeVisible,delayfree){if(clearTimeout(_scrollbarsAutoHideTimeoutId),shallBeVisible)removeClass(_scrollbarHorizontalElement,_classNameScrollbarAutoHidden),removeClass(_scrollbarVerticalElement,_classNameScrollbarAutoHidden);else{var anyActive,strActive="active",hide=function hide(){_scrollbarsHandleHovered||_destroyed||(!(anyActive=_scrollbarHorizontalHandleElement.hasClass(strActive)||_scrollbarVerticalHandleElement.hasClass(strActive))&&(_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove||_scrollbarsAutoHideLeave)&&addClass(_scrollbarHorizontalElement,_classNameScrollbarAutoHidden),!anyActive&&(_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove||_scrollbarsAutoHideLeave)&&addClass(_scrollbarVerticalElement,_classNameScrollbarAutoHidden))};_scrollbarsAutoHideDelay>0&&!0!==delayfree?_scrollbarsAutoHideTimeoutId=setTimeout(hide,_scrollbarsAutoHideDelay):hide()}}function refreshScrollbarHandleLength(isHorizontal){var handleCSS={},scrollbarVars=getScrollbarVars(isHorizontal),scrollbarVarsInfo=scrollbarVars._info,digit=1e6,handleRatio=MATH.min(1,_viewportSize[scrollbarVars._w_h]/_contentScrollSizeCache[scrollbarVars._w_h]);handleCSS[scrollbarVars._width_height]=MATH.floor(100*handleRatio*digit)/digit+"%",nativeOverlayScrollbarsAreActive()||scrollbarVars._handle.css(handleCSS),scrollbarVarsInfo._handleLength=scrollbarVars._handle[0]["offset"+scrollbarVars._Width_Height],scrollbarVarsInfo._handleLengthRatio=handleRatio}function refreshScrollbarHandleOffset(isHorizontal,scrollOrTransition){var transformOffset,translateValue,transition=type(scrollOrTransition)==TYPES.b,transitionDuration=250,isRTLisHorizontal=_isRTL&&isHorizontal,scrollbarVars=getScrollbarVars(isHorizontal),scrollbarVarsInfo=scrollbarVars._info,strTranslateBrace="translate(",strTransform=VENDORS._cssProperty("transform"),strTransition=VENDORS._cssProperty("transition"),nativeScroll=isHorizontal?_viewportElement[_strScrollLeft]():_viewportElement[_strScrollTop](),currentScroll=scrollOrTransition===undefined$1||transition?nativeScroll:scrollOrTransition,handleLength=scrollbarVarsInfo._handleLength,trackLength=scrollbarVars._track[0]["offset"+scrollbarVars._Width_Height],handleTrackDiff=trackLength-handleLength,handleCSS={},maxScroll=(_viewportElementNative[_strScroll+scrollbarVars._Width_Height]-_viewportElementNative["client"+scrollbarVars._Width_Height])*(_rtlScrollBehavior.n&&isRTLisHorizontal?-1:1),getScrollRatio=function getScrollRatio(base){return isNaN(base/maxScroll)?0:MATH.max(0,MATH.min(1,base/maxScroll))},getHandleOffset=function getHandleOffset(scrollRatio){var offset=handleTrackDiff*scrollRatio;return offset=isNaN(offset)?0:offset,offset=isRTLisHorizontal&&!_rtlScrollBehavior.i?trackLength-handleLength-offset:offset,offset=MATH.max(0,offset)},scrollRatio=getScrollRatio(nativeScroll),handleOffset=getHandleOffset(getScrollRatio(currentScroll)),snappedHandleOffset=getHandleOffset(scrollRatio);scrollbarVarsInfo._maxScroll=maxScroll,scrollbarVarsInfo._currentScroll=nativeScroll,scrollbarVarsInfo._currentScrollRatio=scrollRatio,_supportTransform?(transformOffset=isRTLisHorizontal?-(trackLength-handleLength-handleOffset):handleOffset,translateValue=isHorizontal?strTranslateBrace+transformOffset+"px, 0)":strTranslateBrace+"0, "+transformOffset+"px)",handleCSS[strTransform]=translateValue,_supportTransition&&(handleCSS[strTransition]=transition&&MATH.abs(handleOffset-scrollbarVarsInfo._handleOffset)>1?getCSSTransitionString(scrollbarVars._handle)+", "+(strTransform+_strSpace+transitionDuration)+"ms":_strEmpty)):handleCSS[scrollbarVars._left_top]=handleOffset,nativeOverlayScrollbarsAreActive()||(scrollbarVars._handle.css(handleCSS),_supportTransform&&_supportTransition&&transition&&scrollbarVars._handle.one(_strTransitionEndEvent,(function(){_destroyed||scrollbarVars._handle.css(strTransition,_strEmpty)}))),scrollbarVarsInfo._handleOffset=handleOffset,scrollbarVarsInfo._snappedHandleOffset=snappedHandleOffset,scrollbarVarsInfo._trackLength=trackLength}function refreshScrollbarsInteractive(isTrack,value){var action=value?"removeClass":"addClass",element2=isTrack?_scrollbarVerticalTrackElement:_scrollbarVerticalHandleElement,className=isTrack?_classNameScrollbarTrackOff:_classNameScrollbarHandleOff;(isTrack?_scrollbarHorizontalTrackElement:_scrollbarHorizontalHandleElement)[action](className),element2[action](className)}function getScrollbarVars(isHorizontal){return{_width_height:isHorizontal?_strWidth:_strHeight,_Width_Height:isHorizontal?"Width":"Height",_left_top:isHorizontal?_strLeft:_strTop,_Left_Top:isHorizontal?"Left":"Top",_x_y:isHorizontal?_strX:_strY,_X_Y:isHorizontal?"X":"Y",_w_h:isHorizontal?"w":"h",_l_t:isHorizontal?"l":"t",_track:isHorizontal?_scrollbarHorizontalTrackElement:_scrollbarVerticalTrackElement,_handle:isHorizontal?_scrollbarHorizontalHandleElement:_scrollbarVerticalHandleElement,_scrollbar:isHorizontal?_scrollbarHorizontalElement:_scrollbarVerticalElement,_info:isHorizontal?_scrollHorizontalInfo:_scrollVerticalInfo}}function setupScrollbarCornerDOM(destroy){_scrollbarCornerElement=_scrollbarCornerElement||selectOrGenerateDivByClass(_classNameScrollbarCorner,!0),destroy?_domExists&&_initialized?removeClass(_scrollbarCornerElement.removeAttr(LEXICON.s),_classNamesDynamicDestroy):remove(_scrollbarCornerElement):_domExists||_hostElement.append(_scrollbarCornerElement)}function setupScrollbarCornerEvents(){var reconnectMutationObserver,insideIFrame=_windowElementNative.top!==_windowElementNative,mouseDownPosition={},mouseDownSize={},mouseDownInvertedScale={};function documentDragMove(event){if(onMouseTouchDownContinue(event)){var pageOffset=getCoordinates(event),hostElementCSS={};(_resizeHorizontal||_resizeBoth)&&(hostElementCSS[_strWidth]=mouseDownSize.w+(pageOffset.x-mouseDownPosition.x)*mouseDownInvertedScale.x),(_resizeVertical||_resizeBoth)&&(hostElementCSS[_strHeight]=mouseDownSize.h+(pageOffset.y-mouseDownPosition.y)*mouseDownInvertedScale.y),_hostElement.css(hostElementCSS),COMPATIBILITY.stpP(event)}else documentMouseTouchUp(event)}function documentMouseTouchUp(event){var eventIsTrusted=event!==undefined$1;setupResponsiveEventListener(_documentElement,[_strSelectStartEvent,_strMouseTouchMoveEvent,_strMouseTouchUpEvent],[documentOnSelectStart,documentDragMove,documentMouseTouchUp],!0),removeClass(_bodyElement,_classNameDragging),_scrollbarCornerElement.releaseCapture&&_scrollbarCornerElement.releaseCapture(),eventIsTrusted&&(reconnectMutationObserver&&connectMutationObservers(),_base.update(_strAuto)),reconnectMutationObserver=!1}function onMouseTouchDownContinue(event){var isTouchEvent=(event.originalEvent||event).touches!==undefined$1;return!_sleeping&&!_destroyed&&(1===COMPATIBILITY.mBtn(event)||isTouchEvent)}function getCoordinates(event){return _msieVersion&&insideIFrame?{x:event.screenX,y:event.screenY}:COMPATIBILITY.page(event)}addDestroyEventListener(_scrollbarCornerElement,_strMouseTouchDownEvent,(function(event){onMouseTouchDownContinue(event)&&!_resizeNone&&(_mutationObserversConnected&&(reconnectMutationObserver=!0,disconnectMutationObservers()),mouseDownPosition=getCoordinates(event),mouseDownSize.w=_hostElementNative[LEXICON.oW]-(_isBorderBox?0:_paddingX),mouseDownSize.h=_hostElementNative[LEXICON.oH]-(_isBorderBox?0:_paddingY),mouseDownInvertedScale=getHostElementInvertedScale(),setupResponsiveEventListener(_documentElement,[_strSelectStartEvent,_strMouseTouchMoveEvent,_strMouseTouchUpEvent],[documentOnSelectStart,documentDragMove,documentMouseTouchUp]),addClass(_bodyElement,_classNameDragging),_scrollbarCornerElement.setCapture&&_scrollbarCornerElement.setCapture(),COMPATIBILITY.prvD(event),COMPATIBILITY.stpP(event))}))}function dispatchCallback(name,args,dependent){if(!1!==dependent)if(_initialized){var ext,callback=_currentPreparedOptions.callbacks[name],extensionOnName=name;"on"===extensionOnName.substr(0,2)&&(extensionOnName=extensionOnName.substr(2,1).toLowerCase()+extensionOnName.substr(3)),type(callback)==TYPES.f&&callback.call(_base,args),each(_extensions,(function(){type((ext=this).on)==TYPES.f&&ext.on(extensionOnName,args)}))}else _destroyed||_callbacksInitQeueue.push({n:name,a:args})}function setTopRightBottomLeft(targetCSSObject,prefix,values){values=values||[_strEmpty,_strEmpty,_strEmpty,_strEmpty],targetCSSObject[(prefix=prefix||_strEmpty)+_strTop]=values[0],targetCSSObject[prefix+_strRight]=values[1],targetCSSObject[prefix+_strBottom]=values[2],targetCSSObject[prefix+_strLeft]=values[3]}function getTopRightBottomLeftHost(prefix,suffix,zeroX,zeroY){return suffix=suffix||_strEmpty,prefix=prefix||_strEmpty,{t:zeroY?0:parseToZeroOrNumber(_hostElement.css(prefix+_strTop+suffix)),r:zeroX?0:parseToZeroOrNumber(_hostElement.css(prefix+_strRight+suffix)),b:zeroY?0:parseToZeroOrNumber(_hostElement.css(prefix+_strBottom+suffix)),l:zeroX?0:parseToZeroOrNumber(_hostElement.css(prefix+_strLeft+suffix))}}function getCSSTransitionString(element){var transitionStr=VENDORS._cssProperty("transition"),assembledValue=element.css(transitionStr);if(assembledValue)return assembledValue;for(var strResult,valueArray,j,regExpString="\\s*(([^,(]+(\\(.+?\\))?)+)[\\s,]*",regExpMain=new RegExp(regExpString),regExpValidate=new RegExp("^("+regExpString+")+$"),properties="property duration timing-function delay".split(" "),result=[],i=0,splitCssStyleByComma=function splitCssStyleByComma(str){if(strResult=[],!str.match(regExpValidate))return str;for(;str.match(regExpMain);)strResult.push(RegExp.$1),str=str.replace(regExpMain,_strEmpty);return strResult};itextareaLastCol&&(widestRow=i+1,textareaLastCol=rowCols);return{_cursorRow:cursorRow,_cursorColumn:cursorCol,_rows:textareaLastRow,_columns:textareaLastCol,_widestRow:widestRow,_cursorPosition:textareaCursorPosition,_cursorMax:textareaLength}}}function nativeOverlayScrollbarsAreActive(){return _ignoreOverlayScrollbarHidingCache&&_nativeScrollbarIsOverlaid.x&&_nativeScrollbarIsOverlaid.y}function getContentMeasureElement(){return _isTextarea?_textareaCoverElement[0]:_contentElementNative}function generateDiv(classesOrAttrs,content){return"
"+(content||_strEmpty)+"
"}function selectOrGenerateDivByClass(className,selectParentOrOnlyChildren){var onlyChildren=type(selectParentOrOnlyChildren)==TYPES.b,selectParent=onlyChildren?_hostElement:selectParentOrOnlyChildren||_hostElement;return _domExists&&!selectParent[LEXICON.l]?null:_domExists?selectParent[onlyChildren?"children":"find"](_strDot+className.replace(/\s/g,_strDot)).eq(0):FRAMEWORK(generateDiv(className))}function getObjectPropVal(obj,path){for(var val,splits=path.split(_strDot),i=0;i0&&(optsIsPlainObj?FRAMEWORK.each(pluginTargetElements,(function(i,v){(inst=v)!==undefined$1&&arr.push(OverlayScrollbarsInstance(inst,options,extensions,_pluginsGlobals,_pluginsAutoUpdateLoop))})):FRAMEWORK.each(pluginTargetElements,(function(i,v){inst=INSTANCES(v),("!"===options&&_plugin.valid(inst)||COMPATIBILITY.type(options)==TYPES.f&&options(v,inst)||options===undefined$1)&&arr.push(inst)})),result=1===arr[LEXICON.l]?arr[0]:arr),result):optsIsPlainObj||!options?result:arr},_plugin.globals=function(){initOverlayScrollbarsStatics();var globals=FRAMEWORK.extend(!0,{},_pluginsGlobals);return delete globals.msie,globals},_plugin.defaultOptions=function(newDefaultOptions){initOverlayScrollbarsStatics();var currDefaultOptions=_pluginsGlobals.defaultOptions;if(newDefaultOptions===undefined$1)return FRAMEWORK.extend(!0,{},currDefaultOptions);_pluginsGlobals.defaultOptions=FRAMEWORK.extend(!0,{},currDefaultOptions,_pluginsOptions._validate(newDefaultOptions,_pluginsOptions._template,!0,currDefaultOptions)._default)},_plugin.valid=function(osInstance){return osInstance instanceof _plugin&&!osInstance.getState().destroyed},_plugin.extension=function(extensionName,extension,defaultOptions){var extNameTypeString=COMPATIBILITY.type(extensionName)==TYPES.s,argLen=arguments[LEXICON.l],i=0;if(argLen<1||!extNameTypeString)return FRAMEWORK.extend(!0,{length:_pluginsExtensions[LEXICON.l]},_pluginsExtensions);if(extNameTypeString)if(COMPATIBILITY.type(extension)==TYPES.f)_pluginsExtensions.push({name:extensionName,extensionFactory:extension,defaultOptions:defaultOptions});else for(;i<_pluginsExtensions[LEXICON.l];i++)if(_pluginsExtensions[i].name===extensionName){if(!(argLen>1))return FRAMEWORK.extend(!0,{},_pluginsExtensions[i]);_pluginsExtensions.splice(i,1)}},_plugin}();return JQUERY&&JQUERY.fn&&(JQUERY.fn.overlayScrollbars=function(options,extensions){var _elements=this;return JQUERY.isPlainObject(options)?(JQUERY.each(_elements,(function(){PLUGIN(this,options,extensions)})),_elements):PLUGIN(_elements,options)}),PLUGIN}(global,global.document,void 0);var OverlayScrollbars=OverlayScrollbars$1.exports,OverlayScrollbarsComponent=function OverlayScrollbarsComponent(_a){var _a$options=_a.options,options=void 0===_a$options?{}:_a$options,extensions=_a.extensions,className=_a.className,children=_a.children,rest=(0,_index_b45716e8_js__WEBPACK_IMPORTED_MODULE_26__.a)(_a,["options","extensions","className","children"]),osTargetRef=(0,react__WEBPACK_IMPORTED_MODULE_22__.useRef)(),osInstance=(0,react__WEBPACK_IMPORTED_MODULE_22__.useRef)();return(0,react__WEBPACK_IMPORTED_MODULE_22__.useEffect)((function(){return osInstance.current=OverlayScrollbars(osTargetRef.current,options,extensions),mergeHostClassNames(osInstance.current,className),function(){OverlayScrollbars.valid(osInstance.current)&&(osInstance.current.destroy(),osInstance.current=null)}}),[]),(0,react__WEBPACK_IMPORTED_MODULE_22__.useEffect)((function(){OverlayScrollbars.valid(osInstance.current)&&osInstance.current.options(options)}),[options]),(0,react__WEBPACK_IMPORTED_MODULE_22__.useEffect)((function(){OverlayScrollbars.valid(osInstance.current)&&mergeHostClassNames(osInstance.current,className)}),[className]),react__WEBPACK_IMPORTED_MODULE_22__.createElement("div",Object.assign({className:"os-host"},rest,{ref:osTargetRef}),react__WEBPACK_IMPORTED_MODULE_22__.createElement("div",{className:"os-resize-observer-host"}),react__WEBPACK_IMPORTED_MODULE_22__.createElement("div",{className:"os-padding"},react__WEBPACK_IMPORTED_MODULE_22__.createElement("div",{className:"os-viewport"},react__WEBPACK_IMPORTED_MODULE_22__.createElement("div",{className:"os-content"},children))),react__WEBPACK_IMPORTED_MODULE_22__.createElement("div",{className:"os-scrollbar os-scrollbar-horizontal "},react__WEBPACK_IMPORTED_MODULE_22__.createElement("div",{className:"os-scrollbar-track"},react__WEBPACK_IMPORTED_MODULE_22__.createElement("div",{className:"os-scrollbar-handle"}))),react__WEBPACK_IMPORTED_MODULE_22__.createElement("div",{className:"os-scrollbar os-scrollbar-vertical"},react__WEBPACK_IMPORTED_MODULE_22__.createElement("div",{className:"os-scrollbar-track"},react__WEBPACK_IMPORTED_MODULE_22__.createElement("div",{className:"os-scrollbar-handle"}))),react__WEBPACK_IMPORTED_MODULE_22__.createElement("div",{className:"os-scrollbar-corner"}))};function mergeHostClassNames(osInstance,className){if(OverlayScrollbars.valid(osInstance)){var host=osInstance.getElements().host,regex=new RegExp("(^os-host([-_].+|)$)|".concat(osInstance.options().className.replace(/\s/g,"$|"),"$"),"g"),osClassNames=host.className.split(" ").filter((function(name){return name.match(regex)})).join(" ");host.className="".concat(osClassNames," ").concat(className||"")}}}}]); \ No newline at end of file diff --git a/142.f4445b1b27f02bb3e539.manager.bundle.js.LICENSE.txt b/142.f4445b1b27f02bb3e539.manager.bundle.js.LICENSE.txt new file mode 100644 index 000000000..cfda1d61d --- /dev/null +++ b/142.f4445b1b27f02bb3e539.manager.bundle.js.LICENSE.txt @@ -0,0 +1,12 @@ +/*! + * OverlayScrollbars + * https://github.com/KingSora/OverlayScrollbars + * + * Version: 1.13.0 + * + * Copyright KingSora | Rene Haas. + * https://github.com/KingSora + * + * Released under the MIT license. + * Date: 02.08.2020 + */ diff --git a/273.ca7ffb36.iframe.bundle.js b/273.ca7ffb36.iframe.bundle.js new file mode 100644 index 000000000..efc16d2d5 --- /dev/null +++ b/273.ca7ffb36.iframe.bundle.js @@ -0,0 +1,2 @@ +/*! For license information please see 273.ca7ffb36.iframe.bundle.js.LICENSE.txt */ +(self.webpackChunk_headstorm_foundry_react_ui=self.webpackChunk_headstorm_foundry_react_ui||[]).push([[273],{"./node_modules/@storybook/addon-docs/dist/esm/blocks/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AddContext:function(){return AddContext},Anchor:function(){return Anchor},AnchorMdx:function(){return AnchorMdx},ArgsTable:function(){return ArgsTable},CURRENT_SELECTION:function(){return CURRENT_SELECTION},Canvas:function(){return Canvas},CodeOrSourceMdx:function(){return CodeOrSourceMdx},ColorItem:function(){return index_b45716e8.aP},ColorPalette:function(){return index_b45716e8.aQ},ComponentsTable:function(){return ComponentsTable},Description:function(){return DescriptionContainer},DescriptionType:function(){return DescriptionType},DocsContainer:function(){return DocsContainer},DocsContext:function(){return DocsContext},DocsPage:function(){return DocsPage},DocsStory:function(){return DocsStory},HeaderMdx:function(){return HeaderMdx},HeadersMdx:function(){return HeadersMdx},Heading:function(){return Heading},IconGallery:function(){return index_b45716e8.aS},IconItem:function(){return index_b45716e8.aR},Meta:function(){return Meta},PRIMARY_STORY:function(){return PRIMARY_STORY},Preview:function(){return Preview},Primary:function(){return Primary},Props:function(){return Props},Source:function(){return Source},SourceContainer:function(){return SourceContainer},SourceContext:function(){return SourceContext},SourceState:function(){return SourceState},Stories:function(){return Stories},Story:function(){return Story},StoryTable:function(){return StoryTable},Subheading:function(){return Subheading},Subtitle:function(){return Subtitle},Title:function(){return Title},Typeset:function(){return index_b45716e8.aO},Wrapper:function(){return Wrapper},anchorBlockIdFromId:function(){return anchorBlockIdFromId},assertIsFn:function(){return assertIsFn},extractComponentArgTypes:function(){return extractComponentArgTypes},extractTitle:function(){return extractTitle},getComponent:function(){return getComponent},getDescriptionProps:function(){return getDescriptionProps},getSourceProps:function(){return getSourceProps},getStoryId:function(){return getStoryId},getStoryProps:function(){return getStoryProps},lookupStoryId:function(){return lookupStoryId},storyBlockIdFromId:function(){return storyBlockIdFromId}});var index_b45716e8=__webpack_require__("./node_modules/@storybook/components/dist/esm/index-b45716e8.js"),react=__webpack_require__("./node_modules/react/index.js"),anchorBlockIdFromId=function anchorBlockIdFromId(storyId){return"anchor--".concat(storyId)},Anchor=function Anchor(_ref){var storyId=_ref.storyId,children=_ref.children;return react.createElement("div",{id:anchorBlockIdFromId(storyId)},children)},mapValues=(__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.array.sort.js"),__webpack_require__("./node_modules/core-js/modules/es.array.find.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.object.values.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/lodash/mapValues.js")),mapValues_default=__webpack_require__.n(mapValues),esm=__webpack_require__("./node_modules/@storybook/addons/dist/esm/index.js"),filterArgTypes=__webpack_require__("./node_modules/@storybook/store/dist/esm/filterArgTypes.js"),dist_esm=__webpack_require__("./node_modules/@storybook/core-events/dist/esm/index.js"),global_window=__webpack_require__("./node_modules/global/window.js"),window_default=__webpack_require__.n(global_window);global_window.window&&void 0===global_window.window.__DOCS_CONTEXT__&&(global_window.window.__DOCS_CONTEXT__=(0,react.createContext)({}),global_window.window.__DOCS_CONTEXT__.displayName="DocsContext");var DocsContext=global_window.window?global_window.window.__DOCS_CONTEXT__:(0,react.createContext)({}),CURRENT_SELECTION=".",PRIMARY_STORY="^",getComponentName=(__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.string.split.js"),function getComponentName(component){if(component)return"string"==typeof component?component.includes("-")?function titleCase(str){return str.split("-").map((function(part){return part.charAt(0).toUpperCase()+part.slice(1)})).join("")}(component):component:component.__docgenInfo&&component.__docgenInfo.displayName?component.__docgenInfo.displayName:component.name});function scrollToElement(element){var block=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"start";element.scrollIntoView({behavior:"smooth",block:block,inline:"nearest"})}__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _objectSpread2(target){for(var i=1;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var MDXContext=react.createContext({}),useMDXComponents=function useMDXComponents(components){var contextComponents=react.useContext(MDXContext),allComponents=contextComponents;return components&&(allComponents=function isFunction(obj){return"function"==typeof obj}(components)?components(contextComponents):_objectSpread2(_objectSpread2({},contextComponents),components)),allComponents},MDXProvider=function MDXProvider(props){var allComponents=useMDXComponents(props.components);return react.createElement(MDXContext.Provider,{value:allComponents},props.children)},DEFAULTS={inlineCode:"code",wrapper:function wrapper(_ref){var children=_ref.children;return react.createElement(react.Fragment,{},children)}},MDXCreateElement=react.forwardRef((function(props,ref){var propComponents=props.components,mdxType=props.mdxType,originalType=props.originalType,parentName=props.parentName,etc=_objectWithoutProperties(props,["components","mdxType","originalType","parentName"]),components=useMDXComponents(propComponents),type=mdxType,Component=components["".concat(parentName,".").concat(type)]||components[type]||DEFAULTS[type]||originalType;return propComponents?react.createElement(Component,_objectSpread2(_objectSpread2({ref:ref},etc),{},{components:propComponents})):react.createElement(Component,_objectSpread2({ref:ref},etc))}));MDXCreateElement.displayName="MDXCreateElement";var dist=__webpack_require__("./node_modules/@storybook/csf/dist/index.js");__webpack_require__("./node_modules/regenerator-runtime/runtime.js");function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i"}})))}Promise.all([storyFnRan,rendered]).then((function(){channel.emit(dist_esm.default.STORY_RENDERED,storyId)}))}return react.createElement("div",{id:storyBlockIdFromId(story.id)},react.createElement(MDXProvider,{components:index_b45716e8.C},react.createElement(index_b45716e8.aL,storyProps)))};function ArgsTable_extends(){return ArgsTable_extends=Object.assign||function(target){for(var i=1;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&void 0!==arguments[0]?arguments[0]:{},_ref3=arguments.length>1?arguments[1]:void 0,id=_ref3.id,storyById=_ref3.storyById,_ref4=props,of=_ref4.of,_ref5=props,story=_ref5.story,_storyById2=storyById(id),component=_storyById2.component;if(isShortcut(of)||isShortcut(story))return component||null;if(!of)throw new Error(index_b45716e8.aC.NO_COMPONENT);return of},addComponentTabs=function addComponentTabs(tabs,components,context,include,exclude,sort){return Object.assign({},tabs,mapValues_default()(components,(function(comp){return{rows:extractComponentArgTypes(comp,context,include,exclude),sort:sort}})))},StoryTable=function StoryTable(props){var context=(0,react.useContext)(DocsContext),currentId=context.id,componentStories=context.componentStories,storyName=props.story,component=props.component,subcomponents=props.subcomponents,showComponent=props.showComponent,include=props.include,exclude=props.exclude,sort=props.sort;try{var storyId;switch(storyName){case CURRENT_SELECTION:storyId=currentId;break;case PRIMARY_STORY:storyId=componentStories()[0].id;break;default:storyId=lookupStoryId(storyName,context)}var story=useStory(storyId,context),_useArgs=function useArgs(storyId,context){var channel=esm.KP.getChannel(),storyContext=getContext(storyId,context),_useState2=ArgsTable_slicedToArray((0,react.useState)(storyContext.args),2),args=_useState2[0],setArgs=_useState2[1];return(0,react.useEffect)((function(){var cb=function cb(changed){changed.storyId===storyId&&setArgs(changed.args)};return channel.on(dist_esm.default.STORY_ARGS_UPDATED,cb),function(){return channel.off(dist_esm.default.STORY_ARGS_UPDATED,cb)}}),[storyId]),[args,(0,react.useCallback)((function(updatedArgs){return channel.emit(dist_esm.default.UPDATE_STORY_ARGS,{storyId:storyId,updatedArgs:updatedArgs})}),[storyId]),(0,react.useCallback)((function(argNames){return channel.emit(dist_esm.default.RESET_STORY_ARGS,{storyId:storyId,argNames:argNames})}),[storyId])]}(storyId,context),_useArgs2=ArgsTable_slicedToArray(_useArgs,3),args=_useArgs2[0],updateArgs=_useArgs2[1],resetArgs=_useArgs2[2],_useGlobals=function useGlobals(storyId,context){var channel=esm.KP.getChannel(),storyContext=getContext(storyId,context),_useState4=ArgsTable_slicedToArray((0,react.useState)(storyContext.globals),2),globals=_useState4[0],setGlobals=_useState4[1];return(0,react.useEffect)((function(){var cb=function cb(changed){setGlobals(changed.globals)};return channel.on(dist_esm.default.GLOBALS_UPDATED,cb),function(){return channel.off(dist_esm.default.GLOBALS_UPDATED,cb)}}),[]),[globals]}(storyId,context),globals=ArgsTable_slicedToArray(_useGlobals,1)[0];if(!story)return react.createElement(index_b45716e8.aE,{isLoading:!0,updateArgs:updateArgs,resetArgs:resetArgs});var argTypes=(0,filterArgTypes.h)(story.argTypes,include,exclude),mainLabel=getComponentName(component)||"Story",tabs=ArgsTable_defineProperty({},mainLabel,{rows:argTypes,args:args,globals:globals,updateArgs:updateArgs,resetArgs:resetArgs}),storyHasArgsWithControls=argTypes&&Object.values(argTypes).find((function(v){return!(null==v||!v.control)}));if(storyHasArgsWithControls||(updateArgs=null,resetArgs=null,tabs={}),!component||storyHasArgsWithControls&&!showComponent||(tabs=addComponentTabs(tabs,ArgsTable_defineProperty({},mainLabel,component),context,include,exclude)),subcomponents){if(Array.isArray(subcomponents))throw new Error("Unexpected subcomponents array. Expected an object whose keys are tab labels and whose values are components.");tabs=addComponentTabs(tabs,subcomponents,context,include,exclude)}return react.createElement(index_b45716e8.aF,{tabs:tabs,sort:sort})}catch(err){return react.createElement(index_b45716e8.aE,{error:err.message})}},ComponentsTable=function ComponentsTable(props){var context=(0,react.useContext)(DocsContext),components=props.components,include=props.include,exclude=props.exclude,sort=props.sort,tabs=addComponentTabs({},components,context,include,exclude);return react.createElement(index_b45716e8.aF,{tabs:tabs,sort:sort})},ArgsTable=function ArgsTable(props){var context=(0,react.useContext)(DocsContext),id=context.id,_storyById3=(0,context.storyById)(id),controls=_storyById3.parameters.controls,subcomponents=_storyById3.subcomponents,_ref6=props,include=_ref6.include,exclude=_ref6.exclude,components=_ref6.components,sortProp=_ref6.sort,storyName=props.story,sort=sortProp||(null==controls?void 0:controls.sort),main=getComponent(props,context);if(storyName)return react.createElement(StoryTable,ArgsTable_extends({},props,{component:main,subcomponents:subcomponents,sort:sort}));if(!components&&!subcomponents){var mainProps;try{mainProps={rows:extractComponentArgTypes(main,context,include,exclude)}}catch(err){mainProps={error:err.message}}return react.createElement(index_b45716e8.aE,ArgsTable_extends({},mainProps,{sort:sort}))}if(components)return react.createElement(ComponentsTable,ArgsTable_extends({},props,{components:components,sort:sort}));var mainLabel=getComponentName(main);return react.createElement(ComponentsTable,ArgsTable_extends({},props,{components:Object.assign(ArgsTable_defineProperty({},mainLabel,main),subcomponents),sort:sort}))};ArgsTable.defaultProps={of:CURRENT_SELECTION};__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js");var SourceType,fast_deep_equal=__webpack_require__("./node_modules/fast-deep-equal/index.js"),fast_deep_equal_default=__webpack_require__.n(fast_deep_equal),SNIPPET_RENDERED=("".concat("storybook/docs","/panel"),"".concat("storybook/docs","/snippet-rendered"));function SourceContainer_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function SourceContainer_slicedToArray(arr,i){return function SourceContainer_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function SourceContainer_iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function SourceContainer_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return SourceContainer_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return SourceContainer_arrayLikeToArray(o,minLen)}(arr,i)||function SourceContainer_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function SourceContainer_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i2&&void 0!==arguments[2]&&arguments[2];sources[id]&&sources[id].code===newSource||setSources((function(current){var newSources=Object.assign({},current,SourceContainer_defineProperty({},id,{code:newSource,format:format}));return fast_deep_equal_default()(current,newSources)?current:newSources}))};return channel.on(SNIPPET_RENDERED,handleSnippetRendered),function(){return channel.off(SNIPPET_RENDERED,handleSnippetRendered)}}),[]),react.createElement(SourceContext.Provider,{value:{sources:sources}},children)},esm_parameters=(__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/@storybook/store/dist/esm/parameters.js"));function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return enhanceSource_arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function enhanceSource_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return enhanceSource_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return enhanceSource_arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function enhanceSource_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var DescriptionType,Canvas=function Canvas(props){var _getPreviewProps=function getPreviewProps(_ref,docsContext,sourceContext){var withSource=_ref.withSource,mdxSource=_ref.mdxSource,children=_ref.children,props=Canvas_objectWithoutProperties(_ref,_excluded),mdxComponentAnnotations=docsContext.mdxComponentAnnotations,mdxStoryNameToKey=docsContext.mdxStoryNameToKey,sourceState=withSource,isLoading=!1;if(sourceState===SourceState.NONE)return{isLoading:isLoading,previewProps:props};if(mdxSource)return{isLoading:isLoading,previewProps:Object.assign({},props,{withSource:getSourceProps({code:decodeURI(mdxSource)},docsContext,sourceContext)})};var targetIds=(Array.isArray(children)?children:[children]).filter((function(c){return c.props&&(c.props.id||c.props.name)})).map((function(s){return s.props.id||(0,dist.toId)(mdxComponentAnnotations.id||mdxComponentAnnotations.title,(0,dist.storyNameFromExport)(mdxStoryNameToKey[s.props.name]))})),sourceProps=getSourceProps({ids:targetIds},docsContext,sourceContext);return sourceState||(sourceState=sourceProps.state),{isLoading:isLoading=useStories(targetIds.map((function(targetId){return targetId===CURRENT_SELECTION?docsContext.id:targetId})),docsContext).some((function(s){return!s})),previewProps:Object.assign({},props,{withSource:sourceProps,isExpanded:sourceState===SourceState.OPEN})}}(props,(0,react.useContext)(DocsContext),(0,react.useContext)(SourceContext)),isLoading=_getPreviewProps.isLoading,previewProps=_getPreviewProps.previewProps,children=props.children;return isLoading?react.createElement(index_b45716e8.aA,null):react.createElement(MDXProvider,{components:index_b45716e8.C},react.createElement(index_b45716e8.az,previewProps,children))},string=(__webpack_require__("./node_modules/core-js/modules/es.string.trim.js"),__webpack_require__("./node_modules/@storybook/docs-tools/dist/esm/argTypes/docgen/utils/string.js"));!function(DescriptionType){DescriptionType.INFO="info",DescriptionType.NOTES="notes",DescriptionType.DOCGEN="docgen",DescriptionType.LEGACY_5_2="legacy-5.2",DescriptionType.AUTO="auto"}(DescriptionType||(DescriptionType={}));var getNotes=function getNotes(notes){return notes&&("string"==typeof notes?notes:(0,string.B)(notes.markdown)||(0,string.B)(notes.text))},getInfo=function getInfo(info){return info&&("string"==typeof info?info:(0,string.B)(info.text))},noDescription=function noDescription(component){return null},getDescriptionProps=function getDescriptionProps(_ref,_ref2){var of=_ref.of,type=_ref.type,markdown=_ref.markdown,children=_ref.children,id=_ref2.id,_storyById=(0,_ref2.storyById)(id),component=_storyById.component,parameters=_storyById.parameters;if(children||markdown)return{markdown:children||markdown};var notes=parameters.notes,info=parameters.info,_ref3=parameters.docs||{},_ref3$extractComponen=_ref3.extractComponentDescription,extractComponentDescription=void 0===_ref3$extractComponen?noDescription:_ref3$extractComponen,description=_ref3.description,target=of===CURRENT_SELECTION?component:of,componentDescriptionParameter=null==description?void 0:description.component;if(componentDescriptionParameter)return{markdown:componentDescriptionParameter};switch(type){case DescriptionType.INFO:return{markdown:getInfo(info)};case DescriptionType.NOTES:return{markdown:getNotes(notes)};case DescriptionType.LEGACY_5_2:return{markdown:"\n".concat(getNotes(notes)||getInfo(info)||"","\n\n").concat(extractComponentDescription(target)||"","\n").trim()};case DescriptionType.DOCGEN:case DescriptionType.AUTO:default:return{markdown:extractComponentDescription(target,Object.assign({component:component},parameters))}}},DescriptionContainer=function DescriptionContainer(props){var context=(0,react.useContext)(DocsContext),markdown=getDescriptionProps(props,context).markdown;return markdown?react.createElement(index_b45716e8.at,{markdown:markdown}):null};DescriptionContainer.defaultProps={of:"."};var STORY_KIND_PATH_SEPARATOR=/\s*\/\s*/,extractTitle=function extractTitle(_ref){var title=_ref.title,groups=title.trim().split(STORY_KIND_PATH_SEPARATOR);return groups&&groups[groups.length-1]||title},Title=function Title(_ref2){var children=_ref2.children,context=(0,react.useContext)(DocsContext),text=children;return text||(text=extractTitle(context)),text?react.createElement(index_b45716e8.au,{className:"sbdocs-title"},text):null},Subtitle=function Subtitle(_ref){var children=_ref.children,_useContext=(0,react.useContext)(DocsContext),id=_useContext.id,parameters=(0,_useContext.storyById)(id).parameters,text=children;return text||(text=null==parameters?void 0:parameters.componentSubtitle),text?react.createElement(index_b45716e8.av,{className:"sbdocs-subtitle"},text):null},browser=(__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/util-deprecate/browser.js")),browser_default=__webpack_require__.n(browser),ts_dedent_esm=__webpack_require__("./node_modules/ts-dedent/esm/index.js"),theming_dist_esm=(__webpack_require__("./node_modules/core-js/modules/es.string.match.js"),__webpack_require__("./node_modules/core-js/modules/es.string.starts-with.js"),__webpack_require__("./node_modules/@storybook/theming/dist/esm/index.js")),mdx_excluded=["children"],_excluded2=["className","children"],_excluded3=["href","target","children"],_excluded4=["as","id","children"],_excluded5=["as","id","children"];function mdx_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function mdx_extends(){return mdx_extends=Object.assign||function(target){for(var i=1;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var mdx_document=window_default().document,assertIsFn=function assertIsFn(val){if("function"!=typeof val)throw new Error("Expected story function, got: ".concat(val));return val},AddContext=function AddContext(props){var children=props.children,rest=mdx_objectWithoutProperties(props,mdx_excluded),parentContext=react.useContext(DocsContext);return react.createElement(DocsContext.Provider,{value:Object.assign({},parentContext,rest)},children)},CodeOrSourceMdx=function CodeOrSourceMdx(_ref){var className=_ref.className,children=_ref.children,rest=mdx_objectWithoutProperties(_ref,_excluded2);if("string"!=typeof className&&("string"!=typeof children||!children.match(/[\n\r]/g)))return react.createElement(index_b45716e8.G,null,children);var language=className&&className.split("-");return react.createElement(index_b45716e8.aI,mdx_extends({language:language&&language[1]||"plaintext",format:!1,code:children},rest))};function mdx_navigate(url){esm.KP.getChannel().emit(dist_esm.NAVIGATE_URL,url)}var _templateObject,A=index_b45716e8.B.a,AnchorInPage=function AnchorInPage(_ref2){var hash=_ref2.hash,children=_ref2.children;return react.createElement(A,{href:hash,target:"_self",onClick:function onClick(event){var id=hash.substring(1);mdx_document.getElementById(id)&&mdx_navigate(hash)}},children)},AnchorMdx=function AnchorMdx(props){var href=props.href,target=props.target,children=props.children,rest=mdx_objectWithoutProperties(props,_excluded3);if(href){if(href.startsWith("#"))return react.createElement(AnchorInPage,{hash:href},children);if("_blank"!==target&&!href.startsWith("https://"))return react.createElement(A,mdx_extends({href:href,onClick:function onClick(event){event.preventDefault(),mdx_navigate(event.currentTarget.getAttribute("href"))},target:target},rest),children)}return react.createElement(A,props)},SUPPORTED_MDX_HEADERS=["h1","h2","h3","h4","h5","h6"],OcticonHeaders=SUPPORTED_MDX_HEADERS.reduce((function(acc,headerType){return Object.assign({},acc,mdx_defineProperty({},headerType,(0,theming_dist_esm.zo)(index_b45716e8.B[headerType])({"& svg":{visibility:"hidden"},"&:hover svg":{visibility:"visible"}})))}),{}),OcticonAnchor=theming_dist_esm.zo.a((function(){return{float:"left",paddingRight:"4px",marginLeft:"-20px",color:"inherit"}})),HeaderWithOcticonAnchor=function HeaderWithOcticonAnchor(_ref3){var as=_ref3.as,id=_ref3.id,children=_ref3.children,rest=mdx_objectWithoutProperties(_ref3,_excluded4),OcticonHeader=OcticonHeaders[as],hash="#".concat(id);return react.createElement(OcticonHeader,mdx_extends({id:id},rest),react.createElement(OcticonAnchor,{"aria-hidden":"true",href:hash,tabIndex:-1,target:"_self",onClick:function onClick(event){mdx_document.getElementById(id)&&mdx_navigate(hash)}},react.createElement("svg",{viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16","aria-hidden":"true",fill:"currentColor"},react.createElement("path",{fillRule:"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}))),children)},HeaderMdx=function HeaderMdx(props){var as=props.as,id=props.id,children=props.children,rest=mdx_objectWithoutProperties(props,_excluded5);if(id)return react.createElement(HeaderWithOcticonAnchor,mdx_extends({as:as,id:id},rest),children);var Header=index_b45716e8.B[as];return react.createElement(Header,props)},HeadersMdx=SUPPORTED_MDX_HEADERS.reduce((function(acc,headerType){return Object.assign({},acc,mdx_defineProperty({},headerType,(function(props){return react.createElement(HeaderMdx,mdx_extends({as:headerType},props))})))}),{}),Subheading=function Subheading(_ref){var children=_ref.children;if(_ref.disableAnchor||"string"!=typeof children)return react.createElement(index_b45716e8.M,null,children);var tagID=children.toLowerCase().replace(/[^a-z0-9]/gi,"-");return react.createElement(HeaderMdx,{as:"h3",id:tagID},children)};var warnStoryDescription=browser_default()((function(){}),(0,ts_dedent_esm.C)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n Deprecated parameter: docs.storyDescription => docs.description.story\n \n https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#docs-description-parameter\n "])))),DocsStory=function DocsStory(_ref){var description,_docs$description,id=_ref.id,name=_ref.name,_ref$expanded=_ref.expanded,expanded=void 0===_ref$expanded||_ref$expanded,_ref$withToolbar=_ref.withToolbar,withToolbar=void 0!==_ref$withToolbar&&_ref$withToolbar,_ref$parameters=_ref.parameters,parameters=void 0===_ref$parameters?{}:_ref$parameters,docs=parameters.docs;expanded&&docs&&((description=null===(_docs$description=docs.description)||void 0===_docs$description?void 0:_docs$description.story)||(description=docs.storyDescription)&&warnStoryDescription());var subheading=expanded&&name;return react.createElement(Anchor,{storyId:id},subheading&&react.createElement(Subheading,null,subheading),description&&react.createElement(DescriptionContainer,{markdown:description}),react.createElement(Canvas,{withToolbar:withToolbar},react.createElement(Story,{id:id,parameters:parameters})))};function Primary_extends(){return Primary_extends=Object.assign||function(target){for(var i=1;i docs.theme\n\n https://github.com/storybookjs/storybook/blob/next/addons/docs/docs/theming.md#storybook-theming\n"])))),DocsContainer=function DocsContainer(_ref){var context=_ref.context,children=_ref.children,storyId=context.id,_storyById$parameters=(0,context.storyById)(storyId).parameters,_storyById$parameters2=_storyById$parameters.options,options=void 0===_storyById$parameters2?{}:_storyById$parameters2,_storyById$parameters3=_storyById$parameters.docs,docs=void 0===_storyById$parameters3?{}:_storyById$parameters3,themeVars=docs.theme;!themeVars&&options.theme&&(warnOptionsTheme(),themeVars=options.theme);var theme=(0,theming_dist_esm.zx)(themeVars),allComponents=Object.assign({},defaultComponents,docs.components);return(0,react.useEffect)((function(){var url;try{url=new URL(globalWindow.parent.location)}catch(err){return}if(url.hash){var element=DocsContainer_document.getElementById(url.hash.substring(1));element&&setTimeout((function(){scrollToElement(element)}),200)}else{var _element=DocsContainer_document.getElementById(anchorBlockIdFromId(storyId))||DocsContainer_document.getElementById(storyBlockIdFromId(storyId));if(_element){var allStories=_element.parentElement.querySelectorAll('[id|="anchor-"]'),scrollTarget=_element;allStories&&allStories[0]===_element&&(scrollTarget=DocsContainer_document.getElementById("docs-root")),setTimeout((function(){scrollToElement(scrollTarget,"start")}),200)}}}),[storyId]),react.createElement(DocsContext.Provider,{value:context},react.createElement(SourceContainer,null,react.createElement(theming_dist_esm.f6,{theme:theme},react.createElement(MDXProvider,{components:allComponents},react.createElement(index_b45716e8.ax,{className:"sbdocs sbdocs-wrapper"},react.createElement(index_b45716e8.aw,{className:"sbdocs sbdocs-content"},children))))))},Meta_document=window_default().document;var Preview_templateObject,Meta=function Meta(){return"docs"===new URL(Meta_document.location).searchParams.get("viewMode")?function renderAnchor(){var context=(0,react.useContext)(DocsContext),anchorId=function getFirstStoryId(docsContext){var stories=docsContext.componentStories();return stories.length>0?stories[0].id:null}(context)||context.id;return react.createElement(Anchor,{storyId:anchorId})}():null};var Props_templateObject,Preview=browser_default()((function(props){return react.createElement(Canvas,props)}),(0,ts_dedent_esm.C)(Preview_templateObject||(Preview_templateObject=function Preview_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n Preview doc block has been renamed to Canvas.\n\n https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#previewprops-renamed\n "]))));var Props=browser_default()((function(props){return react.createElement(ArgsTable,props)}),(0,ts_dedent_esm.C)(Props_templateObject||(Props_templateObject=function Props_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n Props doc block has been renamed to ArgsTable.\n\n https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#previewprops-renamed\n "]))));Props.defaultProps={of:CURRENT_SELECTION};var Wrapper=function Wrapper(_ref){var children=_ref.children;return react.createElement("div",{style:{fontFamily:"sans-serif"}},children)}},"./node_modules/@storybook/components/dist/esm/index-b45716e8.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{A:function(){return ActionBar},B:function(){return components},C:function(){return resetComponents},F:function(){return Form},G:function(){return Code},I:function(){return Icons},L:function(){return H2},M:function(){return H3},S:function(){return ScrollArea},T:function(){return TooltipNote},W:function(){return WithTooltip},_:function(){return __awaiter},a:function(){return __rest},aA:function(){return PreviewSkeleton},aC:function(){return ArgsTableError},aE:function(){return ArgsTable},aF:function(){return TabbedArgsTable},aH:function(){return SourceError},aI:function(){return Source},aL:function(){return Story},aM:function(){return StorySkeleton},aO:function(){return Typeset},aP:function(){return ColorItem},aQ:function(){return ColorPalette},aR:function(){return IconItem},aS:function(){return IconGallery},at:function(){return Description$1},au:function(){return Title},av:function(){return Subtitle},aw:function(){return DocsContent},ax:function(){return DocsWrapper},az:function(){return Preview},b:function(){return basePlacements},c:function(){return commonjsGlobal},d:function(){return dedent},e:function(){return bottom},f:function(){return end},g:function(){return getDefaultExportFromCjs},h:function(){return clippingParents},i:function(){return reference},j:function(){return variationPlacements},k:function(){return placements},l:function(){return left},m:function(){return auto},n:function(){return modifierPhases},o:function(){return _extends},p:function(){return popper},q:function(){return _objectWithoutPropertiesLoose},r:function(){return right},s:function(){return start},t:function(){return top},u:function(){return _root},v:function(){return viewport},w:function(){return window_1},x:function(){return isObject_1},y:function(){return isSymbol_1},z:function(){return getControlId}});var core_js_modules_es_object_freeze_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),core_js_modules_es_object_freeze_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_object_freeze_js__WEBPACK_IMPORTED_MODULE_0__),regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/regenerator-runtime/runtime.js"),regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/core-js/modules/es.promise.js"),core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_7__),core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_8__),core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/core-js/modules/es.object.get-prototype-of.js"),core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_9__),core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_10__),core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/core-js/modules/es.reflect.construct.js"),core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_11__),core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_12__),core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/core-js/modules/es.map.js"),core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_13__),core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_14__),core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_15__),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_16__),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_17___default=__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_17__),core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/core-js/modules/es.string.match.js"),core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_18___default=__webpack_require__.n(core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_18__),core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/core-js/modules/es.number.to-fixed.js"),core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_19___default=__webpack_require__.n(core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_19__),core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_20___default=__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_20__),core_js_modules_es_string_bold_js__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/core-js/modules/es.string.bold.js"),core_js_modules_es_string_bold_js__WEBPACK_IMPORTED_MODULE_21___default=__webpack_require__.n(core_js_modules_es_string_bold_js__WEBPACK_IMPORTED_MODULE_21__),core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_22___default=__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_22__),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_23___default=__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_23__),core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_24___default=__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_24__),core_js_modules_esnext_global_this_js__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/core-js/modules/esnext.global-this.js"),core_js_modules_esnext_global_this_js__WEBPACK_IMPORTED_MODULE_25___default=__webpack_require__.n(core_js_modules_esnext_global_this_js__WEBPACK_IMPORTED_MODULE_25__),core_js_modules_es_string_small_js__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/core-js/modules/es.string.small.js"),core_js_modules_es_string_small_js__WEBPACK_IMPORTED_MODULE_26___default=__webpack_require__.n(core_js_modules_es_string_small_js__WEBPACK_IMPORTED_MODULE_26__),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_27___default=__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_27__),core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./node_modules/core-js/modules/es.regexp.constructor.js"),core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_28___default=__webpack_require__.n(core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_28__),core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./node_modules/core-js/modules/es.string.trim.js"),core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_29___default=__webpack_require__.n(core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_29__),core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./node_modules/core-js/modules/es.string.split.js"),core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_30___default=__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_30__),core_js_modules_es_string_ends_with_js__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./node_modules/core-js/modules/es.string.ends-with.js"),core_js_modules_es_string_ends_with_js__WEBPACK_IMPORTED_MODULE_31___default=__webpack_require__.n(core_js_modules_es_string_ends_with_js__WEBPACK_IMPORTED_MODULE_31__),core_js_modules_es_string_trim_end_js__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("./node_modules/core-js/modules/es.string.trim-end.js"),core_js_modules_es_string_trim_end_js__WEBPACK_IMPORTED_MODULE_32___default=__webpack_require__.n(core_js_modules_es_string_trim_end_js__WEBPACK_IMPORTED_MODULE_32__),core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__("./node_modules/core-js/modules/es.array.sort.js"),core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_33___default=__webpack_require__.n(core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_33__),core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__("./node_modules/core-js/modules/es.array.splice.js"),core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_34___default=__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_34__),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_35___default=__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_35__),core_js_modules_es_array_buffer_constructor_js__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__("./node_modules/core-js/modules/es.array-buffer.constructor.js"),core_js_modules_es_array_buffer_constructor_js__WEBPACK_IMPORTED_MODULE_36___default=__webpack_require__.n(core_js_modules_es_array_buffer_constructor_js__WEBPACK_IMPORTED_MODULE_36__),core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_37___default=__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_37__),core_js_modules_es_number_is_nan_js__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__("./node_modules/core-js/modules/es.number.is-nan.js"),core_js_modules_es_number_is_nan_js__WEBPACK_IMPORTED_MODULE_38___default=__webpack_require__.n(core_js_modules_es_number_is_nan_js__WEBPACK_IMPORTED_MODULE_38__),core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_39__=__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_39___default=__webpack_require__.n(core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_39__),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_40__=__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_40___default=__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_40__),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_41__=__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_41___default=__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_41__),core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_42__=__webpack_require__("./node_modules/core-js/modules/es.array.find.js"),core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_42___default=__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_42__),core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_43__=__webpack_require__("./node_modules/core-js/modules/es.object.entries.js"),core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_43___default=__webpack_require__.n(core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_43__),core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_44__=__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_44___default=__webpack_require__.n(core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_44__),core_js_modules_es_string_repeat_js__WEBPACK_IMPORTED_MODULE_45__=__webpack_require__("./node_modules/core-js/modules/es.string.repeat.js"),core_js_modules_es_string_repeat_js__WEBPACK_IMPORTED_MODULE_45___default=__webpack_require__.n(core_js_modules_es_string_repeat_js__WEBPACK_IMPORTED_MODULE_45__),core_js_modules_es_object_get_own_property_names_js__WEBPACK_IMPORTED_MODULE_46__=__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-names.js"),core_js_modules_es_object_get_own_property_names_js__WEBPACK_IMPORTED_MODULE_46___default=__webpack_require__.n(core_js_modules_es_object_get_own_property_names_js__WEBPACK_IMPORTED_MODULE_46__),core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_47__=__webpack_require__("./node_modules/core-js/modules/es.string.starts-with.js"),core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_47___default=__webpack_require__.n(core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_47__),core_js_modules_web_url_js__WEBPACK_IMPORTED_MODULE_48__=__webpack_require__("./node_modules/core-js/modules/web.url.js"),core_js_modules_web_url_js__WEBPACK_IMPORTED_MODULE_48___default=__webpack_require__.n(core_js_modules_web_url_js__WEBPACK_IMPORTED_MODULE_48__),core_js_modules_web_url_search_params_js__WEBPACK_IMPORTED_MODULE_49__=__webpack_require__("./node_modules/core-js/modules/web.url-search-params.js"),core_js_modules_web_url_search_params_js__WEBPACK_IMPORTED_MODULE_49___default=__webpack_require__.n(core_js_modules_web_url_search_params_js__WEBPACK_IMPORTED_MODULE_49__),core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_50__=__webpack_require__("./node_modules/core-js/modules/es.object.values.js"),core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_50___default=__webpack_require__.n(core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_50__),react__WEBPACK_IMPORTED_MODULE_51__=__webpack_require__("./node_modules/react/index.js"),_storybook_theming__WEBPACK_IMPORTED_MODULE_55__=__webpack_require__("./node_modules/@storybook/theming/dist/esm/index.js"),memoizerific__WEBPACK_IMPORTED_MODULE_52__=__webpack_require__("./node_modules/memoizerific/memoizerific.js"),memoizerific__WEBPACK_IMPORTED_MODULE_52___default=__webpack_require__.n(memoizerific__WEBPACK_IMPORTED_MODULE_52__),_storybook_csf__WEBPACK_IMPORTED_MODULE_53__=__webpack_require__("./node_modules/@storybook/csf/dist/index.js"),_storybook_csf__WEBPACK_IMPORTED_MODULE_53___default=__webpack_require__.n(_storybook_csf__WEBPACK_IMPORTED_MODULE_53__),qs__WEBPACK_IMPORTED_MODULE_54__=__webpack_require__("./node_modules/qs/lib/index.js"),qs__WEBPACK_IMPORTED_MODULE_54___default=__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_54__),_storybook_client_logger__WEBPACK_IMPORTED_MODULE_56__=__webpack_require__("./node_modules/@storybook/client-logger/dist/esm/index.js"),_templateObject,_templateObject2,_templateObject3,_templateObject4;function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0&&huePrime<1?(red=chroma,green=secondComponent):huePrime>=1&&huePrime<2?(red=secondComponent,green=chroma):huePrime>=2&&huePrime<3?(green=chroma,blue=secondComponent):huePrime>=3&&huePrime<4?(green=secondComponent,blue=chroma):huePrime>=4&&huePrime<5?(red=secondComponent,blue=chroma):huePrime>=5&&huePrime<6&&(red=chroma,blue=secondComponent);var lightnessModification=lightness-chroma/2;return convert(red+lightnessModification,green+lightnessModification,blue+lightnessModification)}var namedColorMap={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function nameToHex(color){if("string"!=typeof color)return color;var normalizedColorName=color.toLowerCase();return namedColorMap[normalizedColorName]?"#"+namedColorMap[normalizedColorName]:color}var hexRegex=/^#[a-fA-F0-9]{6}$/,hexRgbaRegex=/^#[a-fA-F0-9]{8}$/,reducedHexRegex=/^#[a-fA-F0-9]{3}$/,reducedRgbaHexRegex=/^#[a-fA-F0-9]{4}$/,rgbRegex=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,rgbaRegex=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,hslRegex=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,hslaRegex=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function parseToRgb(color){if("string"!=typeof color)throw new PolishedError(3);var normalizedColor=nameToHex(color);if(normalizedColor.match(hexRegex))return{red:parseInt(""+normalizedColor[1]+normalizedColor[2],16),green:parseInt(""+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(""+normalizedColor[5]+normalizedColor[6],16)};if(normalizedColor.match(hexRgbaRegex)){var alpha=parseFloat((parseInt(""+normalizedColor[7]+normalizedColor[8],16)/255).toFixed(2));return{red:parseInt(""+normalizedColor[1]+normalizedColor[2],16),green:parseInt(""+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(""+normalizedColor[5]+normalizedColor[6],16),alpha:alpha}}if(normalizedColor.match(reducedHexRegex))return{red:parseInt(""+normalizedColor[1]+normalizedColor[1],16),green:parseInt(""+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(""+normalizedColor[3]+normalizedColor[3],16)};if(normalizedColor.match(reducedRgbaHexRegex)){var _alpha=parseFloat((parseInt(""+normalizedColor[4]+normalizedColor[4],16)/255).toFixed(2));return{red:parseInt(""+normalizedColor[1]+normalizedColor[1],16),green:parseInt(""+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(""+normalizedColor[3]+normalizedColor[3],16),alpha:_alpha}}var rgbMatched=rgbRegex.exec(normalizedColor);if(rgbMatched)return{red:parseInt(""+rgbMatched[1],10),green:parseInt(""+rgbMatched[2],10),blue:parseInt(""+rgbMatched[3],10)};var rgbaMatched=rgbaRegex.exec(normalizedColor.substring(0,50));if(rgbaMatched)return{red:parseInt(""+rgbaMatched[1],10),green:parseInt(""+rgbaMatched[2],10),blue:parseInt(""+rgbaMatched[3],10),alpha:parseFloat(""+rgbaMatched[4])>1?parseFloat(""+rgbaMatched[4])/100:parseFloat(""+rgbaMatched[4])};var hslMatched=hslRegex.exec(normalizedColor);if(hslMatched){var rgbColorString="rgb("+hslToRgb(parseInt(""+hslMatched[1],10),parseInt(""+hslMatched[2],10)/100,parseInt(""+hslMatched[3],10)/100)+")",hslRgbMatched=rgbRegex.exec(rgbColorString);if(!hslRgbMatched)throw new PolishedError(4,normalizedColor,rgbColorString);return{red:parseInt(""+hslRgbMatched[1],10),green:parseInt(""+hslRgbMatched[2],10),blue:parseInt(""+hslRgbMatched[3],10)}}var hslaMatched=hslaRegex.exec(normalizedColor.substring(0,50));if(hslaMatched){var _rgbColorString="rgb("+hslToRgb(parseInt(""+hslaMatched[1],10),parseInt(""+hslaMatched[2],10)/100,parseInt(""+hslaMatched[3],10)/100)+")",_hslRgbMatched=rgbRegex.exec(_rgbColorString);if(!_hslRgbMatched)throw new PolishedError(4,normalizedColor,_rgbColorString);return{red:parseInt(""+_hslRgbMatched[1],10),green:parseInt(""+_hslRgbMatched[2],10),blue:parseInt(""+_hslRgbMatched[3],10),alpha:parseFloat(""+hslaMatched[4])>1?parseFloat(""+hslaMatched[4])/100:parseFloat(""+hslaMatched[4])}}throw new PolishedError(5)}function rgbToHsl(color){var hue,red=color.red/255,green=color.green/255,blue=color.blue/255,max=Math.max(red,green,blue),min=Math.min(red,green,blue),lightness=(max+min)/2;if(max===min)return void 0!==color.alpha?{hue:0,saturation:0,lightness:lightness,alpha:color.alpha}:{hue:0,saturation:0,lightness:lightness};var delta=max-min,saturation=lightness>.5?delta/(2-max-min):delta/(max+min);switch(max){case red:hue=(green-blue)/delta+(green=1?hslToHex(value,saturation,lightness):"rgba("+hslToRgb(value,saturation,lightness)+","+alpha+")";if("object"===_typeof(value)&&void 0===saturation&&void 0===lightness&&void 0===alpha)return value.alpha>=1?hslToHex(value.hue,value.saturation,value.lightness):"rgba("+hslToRgb(value.hue,value.saturation,value.lightness)+","+value.alpha+")";throw new PolishedError(2)}function rgb(value,green,blue){if("number"==typeof value&&"number"==typeof green&&"number"==typeof blue)return reduceHexValue$1("#"+numberToHex(value)+numberToHex(green)+numberToHex(blue));if("object"===_typeof(value)&&void 0===green&&void 0===blue)return reduceHexValue$1("#"+numberToHex(value.red)+numberToHex(value.green)+numberToHex(value.blue));throw new PolishedError(6)}function rgba(firstValue,secondValue,thirdValue,fourthValue){if("string"==typeof firstValue&&"number"==typeof secondValue){var rgbValue=parseToRgb(firstValue);return"rgba("+rgbValue.red+","+rgbValue.green+","+rgbValue.blue+","+secondValue+")"}if("number"==typeof firstValue&&"number"==typeof secondValue&&"number"==typeof thirdValue&&"number"==typeof fourthValue)return fourthValue>=1?rgb(firstValue,secondValue,thirdValue):"rgba("+firstValue+","+secondValue+","+thirdValue+","+fourthValue+")";if("object"===_typeof(firstValue)&&void 0===secondValue&&void 0===thirdValue&&void 0===fourthValue)return firstValue.alpha>=1?rgb(firstValue.red,firstValue.green,firstValue.blue):"rgba("+firstValue.red+","+firstValue.green+","+firstValue.blue+","+firstValue.alpha+")";throw new PolishedError(7)}var isRgb=function isRgb(color){return"number"==typeof color.red&&"number"==typeof color.green&&"number"==typeof color.blue&&("number"!=typeof color.alpha||void 0===color.alpha)},isRgba=function isRgba(color){return"number"==typeof color.red&&"number"==typeof color.green&&"number"==typeof color.blue&&"number"==typeof color.alpha},isHsl=function isHsl(color){return"number"==typeof color.hue&&"number"==typeof color.saturation&&"number"==typeof color.lightness&&("number"!=typeof color.alpha||void 0===color.alpha)},isHsla=function isHsla(color){return"number"==typeof color.hue&&"number"==typeof color.saturation&&"number"==typeof color.lightness&&"number"==typeof color.alpha};function toColorString(color){if("object"!==_typeof(color))throw new PolishedError(8);if(isRgba(color))return rgba(color);if(isRgb(color))return rgb(color);if(isHsla(color))return hsla(color);if(isHsl(color))return hsl(color);throw new PolishedError(8)}function curried(f,length,acc){return function fn(){var combined=acc.concat(Array.prototype.slice.call(arguments));return combined.length>=length?f.apply(this,combined):curried(f,length,combined)}}function curry(f){return curried(f,f.length,[])}function guard(lowerBoundary,upperBoundary,value){return Math.max(lowerBoundary,Math.min(upperBoundary,value))}function darken(amount,color){if("transparent"===color)return color;var hslColor=parseToHsl(color);return toColorString(_extends$1({},hslColor,{lightness:guard(0,1,hslColor.lightness-parseFloat(amount))}))}var curriedDarken=curry(darken),curriedDarken$1=curriedDarken;function lighten(amount,color){if("transparent"===color)return color;var hslColor=parseToHsl(color);return toColorString(_extends$1({},hslColor,{lightness:guard(0,1,hslColor.lightness+parseFloat(amount))}))}var curriedLighten=curry(lighten),curriedLighten$1=curriedLighten;function opacify(amount,color){if("transparent"===color)return color;var parsedColor=parseToRgb(color);return rgba(_extends$1({},parsedColor,{alpha:guard(0,1,(100*("number"==typeof parsedColor.alpha?parsedColor.alpha:1)+100*parseFloat(amount))/100)}))}var curriedOpacify=curry(opacify),curriedOpacify$1=curriedOpacify;function transparentize(amount,color){if("transparent"===color)return color;var parsedColor=parseToRgb(color);return rgba(_extends$1({},parsedColor,{alpha:guard(0,1,+(100*("number"==typeof parsedColor.alpha?parsedColor.alpha:1)-100*parseFloat(amount)).toFixed(2)/100)}))}var curriedTransparentize=curry(transparentize),curriedTransparentize$1=curriedTransparentize,headerCommon=function headerCommon(_ref2){return{margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:_ref2.theme.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}}},codeCommon=function codeCommon(_ref3){var theme=_ref3.theme;return{lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:theme.typography.size.s2-1,border:"light"===theme.base?"1px solid ".concat(theme.color.mediumlight):"1px solid ".concat(theme.color.darker),color:"light"===theme.base?curriedTransparentize$1(.1,theme.color.defaultText):curriedTransparentize$1(.3,theme.color.defaultText),backgroundColor:"light"===theme.base?theme.color.lighter:theme.color.border}},withReset=function withReset(_ref4){var theme=_ref4.theme;return{fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}},withMargin={margin:"16px 0"},Link$1=function Link$1(_a){var input=_a.href,children=_a.children,props=__rest(_a,["href","children"]),isStorybookPath=/^\//.test(input),isAnchorUrl=/^#.*/.test(input),href=isStorybookPath?"?path=".concat(input):input,target=isAnchorUrl?"_self":"_top";return react__WEBPACK_IMPORTED_MODULE_51__.createElement("a",Object.assign({href:href,target:target},props),children)},A$2=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)(Link$1)(withReset,(function(_ref5){return{fontSize:"inherit",lineHeight:"24px",color:_ref5.theme.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}}})),Blockquote=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.blockquote(withReset,withMargin,(function(_ref6){var theme=_ref6.theme;return{borderLeft:"4px solid ".concat(theme.color.medium),padding:"0 15px",color:theme.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}}})),Wrapper$8=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div(withReset,(function(_ref7){var theme=_ref7.theme;return{backgroundColor:"light"===theme.base?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:theme.appBorderRadius,border:"1px dashed ".concat(theme.appBorderColor),display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:curriedTransparentize$1(.3,theme.color.defaultText),fontSize:theme.typography.size.s2}})),EmptyBlock=function EmptyBlock(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Wrapper$8,Object.assign({},props,{className:"docblock-emptyblock"}))},LazySyntaxHighlighter=(0,react__WEBPACK_IMPORTED_MODULE_51__.lazy)((function(){return __webpack_require__.e(691).then(__webpack_require__.bind(__webpack_require__,"./node_modules/@storybook/components/dist/esm/syntaxhighlighter-82dea71a.js"))})),LazySyntaxHighlighterWithFormatter=(0,react__WEBPACK_IMPORTED_MODULE_51__.lazy)((function(){return __awaiter(void 0,void 0,void 0,regeneratorRuntime.mark((function _callee(){var _yield$Promise$all,_yield$Promise$all2,SyntaxHighlighter,formatter;return regeneratorRuntime.wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=2,Promise.all([__webpack_require__.e(691).then(__webpack_require__.bind(__webpack_require__,"./node_modules/@storybook/components/dist/esm/syntaxhighlighter-82dea71a.js")),__webpack_require__.e(566).then(__webpack_require__.bind(__webpack_require__,"./node_modules/@storybook/components/dist/esm/formatter-9dc562d4.js"))]);case 2:return _yield$Promise$all=_context.sent,_yield$Promise$all2=_slicedToArray(_yield$Promise$all,2),SyntaxHighlighter=_yield$Promise$all2[0].SyntaxHighlighter,formatter=_yield$Promise$all2[1].formatter,_context.abrupt("return",{default:function _default(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(SyntaxHighlighter,Object.assign({},props,{formatter:formatter}))}});case 7:case"end":return _context.stop()}}),_callee)})))})),SyntaxHighlighter=function SyntaxHighlighter(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_51__.createElement("div",null)},!1!==props.format?react__WEBPACK_IMPORTED_MODULE_51__.createElement(LazySyntaxHighlighterWithFormatter,Object.assign({},props)):react__WEBPACK_IMPORTED_MODULE_51__.createElement(LazySyntaxHighlighter,Object.assign({},props)))},StyledSyntaxHighlighter=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)(SyntaxHighlighter)((function(_ref8){var theme=_ref8.theme;return{fontSize:"".concat(theme.typography.size.s2-1,"px"),lineHeight:"19px",margin:"25px 0 40px",borderRadius:theme.appBorderRadius,boxShadow:"light"===theme.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}}})),SourceError;!function(SourceError){SourceError.NO_STORY="There’s no story here.",SourceError.SOURCE_UNAVAILABLE="Oh no! The source is not available."}(SourceError||(SourceError={}));var SourceSkeletonWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref9){var theme=_ref9.theme;return{background:theme.background.content,borderRadius:theme.appBorderRadius,border:"1px solid ".concat(theme.appBorderColor),boxShadow:"light"===theme.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"}})),SourceSkeletonPlaceholder=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref10){var theme=_ref10.theme;return _defineProperty2({animation:"".concat(theme.animation.glow," 1.5s ease-in-out infinite"),background:theme.appBorderColor,height:17,marginTop:1,width:"60%"},"&:first-child",{margin:0})})),SourceSkeleton=function SourceSkeleton(){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(SourceSkeletonWrapper,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(SourceSkeletonPlaceholder,null),react__WEBPACK_IMPORTED_MODULE_51__.createElement(SourceSkeletonPlaceholder,{style:{width:"80%"}}),react__WEBPACK_IMPORTED_MODULE_51__.createElement(SourceSkeletonPlaceholder,{style:{width:"30%"}}),react__WEBPACK_IMPORTED_MODULE_51__.createElement(SourceSkeletonPlaceholder,{style:{width:"80%"}}))},Source=function Source(props){var isLoading=props.isLoading,error=props.error;if(isLoading)return react__WEBPACK_IMPORTED_MODULE_51__.createElement(SourceSkeleton,null);if(error)return react__WEBPACK_IMPORTED_MODULE_51__.createElement(EmptyBlock,null,error);var _a=props,language=_a.language,code=_a.code,dark=_a.dark,format=_a.format,rest=__rest(_a,["language","code","dark","format"]),syntaxHighlighter=react__WEBPACK_IMPORTED_MODULE_51__.createElement(StyledSyntaxHighlighter,Object.assign({bordered:!0,copyable:!0,format:format,language:language,className:"docblock-source"},rest),code);if(void 0===dark)return syntaxHighlighter;var overrideTheme=dark?_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.np.dark:_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.np.light;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.f6,{theme:(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.OQ)(overrideTheme)},syntaxHighlighter)};Source.defaultProps={format:!1};var isReactChildString=function isReactChildString(child){return"string"==typeof child},isInlineCodeRegex=/[\n\r]/g,DefaultCodeBlock=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.code((function(_ref12){return{fontFamily:_ref12.theme.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"}}),codeCommon),Code=function Code(_a){var _b,className=_a.className,children=_a.children,props=__rest(_a,["className","children"]),language=(className||"").match(/lang-(\S+)/),childrenArray=react__WEBPACK_IMPORTED_MODULE_51__.Children.toArray(children);return!childrenArray.filter(isReactChildString).some((function(child){return child.match(isInlineCodeRegex)}))?react__WEBPACK_IMPORTED_MODULE_51__.createElement(DefaultCodeBlock,Object.assign({},props,{className:className}),childrenArray):react__WEBPACK_IMPORTED_MODULE_51__.createElement(StyledSyntaxHighlighter,Object.assign({bordered:!0,copyable:!0,language:null!==(_b=null==language?void 0:language[1])&&void 0!==_b?_b:"plaintext",format:!1},props),children)},Div=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div(withReset),DL=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.dl(withReset,Object.assign(Object.assign({},withMargin),{padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}})),H1=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.h1(withReset,headerCommon,(function(_ref13){var theme=_ref13.theme;return{fontSize:"".concat(theme.typography.size.l1,"px"),fontWeight:theme.typography.weight.black}})),H2=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.h2(withReset,headerCommon,(function(_ref14){var theme=_ref14.theme;return{fontSize:"".concat(theme.typography.size.m2,"px"),paddingBottom:4,borderBottom:"1px solid ".concat(theme.appBorderColor)}})),H3=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.h3(withReset,headerCommon,(function(_ref15){var theme=_ref15.theme;return{fontSize:"".concat(theme.typography.size.m1,"px")}})),H4=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.h4(withReset,headerCommon,(function(_ref16){var theme=_ref16.theme;return{fontSize:"".concat(theme.typography.size.s3,"px")}})),H5=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.h5(withReset,headerCommon,(function(_ref17){var theme=_ref17.theme;return{fontSize:"".concat(theme.typography.size.s2,"px")}})),H6=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.h6(withReset,headerCommon,(function(_ref18){var theme=_ref18.theme;return{fontSize:"".concat(theme.typography.size.s2,"px"),color:theme.color.dark}})),HR=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.hr((function(_ref19){var theme=_ref19.theme;return{border:"0 none",borderTop:"1px solid ".concat(theme.appBorderColor),height:4,padding:0}})),Img=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.img({maxWidth:"100%"}),LI=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.li(withReset,(function(_ref20){var theme=_ref20.theme;return{fontSize:theme.typography.size.s2,color:theme.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":codeCommon({theme:theme})}})),listCommon$1={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},OL=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.ol(withReset,withMargin,Object.assign(Object.assign({},listCommon$1),{listStyle:"decimal"})),P$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.p(withReset,withMargin,(function(_ref21){var theme=_ref21.theme;return{fontSize:theme.typography.size.s2,lineHeight:"24px",color:theme.color.defaultText,"& code":codeCommon({theme:theme})}})),Pre=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.pre(withReset,withMargin,(function(_ref22){return{fontFamily:_ref22.theme.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}}})),Span=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.span(withReset,(function(_ref23){var theme=_ref23.theme;return{"&.frame":{display:"block",overflow:"hidden","& > span":{border:"1px solid ".concat(theme.color.medium),display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:theme.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}}})),Table$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.table(withReset,withMargin,(function(_ref24){var theme=_ref24.theme;return{fontSize:theme.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:"1px solid ".concat(theme.appBorderColor),backgroundColor:theme.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:"dark"===theme.base?theme.color.darker:theme.color.lighter},"& tr th":{fontWeight:"bold",color:theme.color.defaultText,border:"1px solid ".concat(theme.appBorderColor),margin:0,padding:"6px 13px"},"& tr td":{border:"1px solid ".concat(theme.appBorderColor),color:theme.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}}})),TT=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.title(codeCommon),listCommon={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},UL=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.ul(withReset,withMargin,Object.assign(Object.assign({},listCommon),{listStyle:"disc"})),ResetWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div(withReset),components$1={h1:function h1(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(H1,Object.assign({},nameSpaceClassNames(props,"h1")))},h2:function h2(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(H2,Object.assign({},nameSpaceClassNames(props,"h2")))},h3:function h3(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(H3,Object.assign({},nameSpaceClassNames(props,"h3")))},h4:function h4(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(H4,Object.assign({},nameSpaceClassNames(props,"h4")))},h5:function h5(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(H5,Object.assign({},nameSpaceClassNames(props,"h5")))},h6:function h6(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(H6,Object.assign({},nameSpaceClassNames(props,"h6")))},pre:function pre(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Pre,Object.assign({},nameSpaceClassNames(props,"pre")))},a:function a(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(A$2,Object.assign({},nameSpaceClassNames(props,"a")))},hr:function hr(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(HR,Object.assign({},nameSpaceClassNames(props,"hr")))},dl:function dl(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(DL,Object.assign({},nameSpaceClassNames(props,"dl")))},blockquote:function blockquote(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Blockquote,Object.assign({},nameSpaceClassNames(props,"blockquote")))},table:function table(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Table$1,Object.assign({},nameSpaceClassNames(props,"table")))},img:function img(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Img,Object.assign({},nameSpaceClassNames(props,"img")))},div:function div(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Div,Object.assign({},nameSpaceClassNames(props,"div")))},span:function span(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Span,Object.assign({},nameSpaceClassNames(props,"span")))},li:function li(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(LI,Object.assign({},nameSpaceClassNames(props,"li")))},ul:function ul(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(UL,Object.assign({},nameSpaceClassNames(props,"ul")))},ol:function ol(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(OL,Object.assign({},nameSpaceClassNames(props,"ol")))},p:function p(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(P$1,Object.assign({},nameSpaceClassNames(props,"p")))},code:function code(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Code,Object.assign({},nameSpaceClassNames(props,"code")))},tt:function tt(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(TT,Object.assign({},nameSpaceClassNames(props,"tt")))},resetwrapper:function resetwrapper(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(ResetWrapper,Object.assign({},nameSpaceClassNames(props,"resetwrapper")))}},BadgeWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref25){return{display:"inline-block",fontSize:11,lineHeight:"12px",alignSelf:"center",padding:"4px 12px",borderRadius:"3em",fontWeight:_ref25.theme.typography.weight.bold}}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},(function(_ref26){var theme=_ref26.theme;switch(_ref26.status){case"critical":return{color:theme.color.critical,background:theme.background.critical};case"negative":return{color:theme.color.negative,background:theme.background.negative};case"warning":return{color:theme.color.warning,background:theme.background.warning};case"neutral":return{color:theme.color.dark,background:theme.color.mediumlight};case"positive":return{color:theme.color.positive,background:theme.background.positive};default:return{}}})),Badge=function Badge(_a){var props=__rest(_a,[]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(BadgeWrapper,Object.assign({},props))},icons={mobile:"M648 64h-272c-66.274 0-120 53.726-120 120v656c0 66.274 53.726 120 120 120h272c66.274 0 120-53.726 120-120v-656c0-66.274-53.726-120-120-120zM376 144h272c22.056 0 40 17.944 40 40v495.968h-352v-495.968c0-22.056 17.946-40 40-40zM648 880h-272c-22.054 0-40-17.944-40-40v-80.032h352v80.032c0 22.056-17.944 40-40 40zM544.034 819.962c0 17.676-14.33 32.002-32.004 32.002-17.67 0-32-14.326-32-32.002 0-17.672 14.33-31.998 32-31.998 17.674-0 32.004 14.326 32.004 31.998z",watch:"M736.172 108.030c0-11.044-8.956-20-20-20h-408.282c-11.044 0-20 8.956-20 20 0 11.046 8.956 20 20 20h408.282c11.044 0 20-8.954 20-20zM736.172 50.37c0-11.044-8.956-20-20-20h-408.282c-11.044 0-20 8.956-20 20s8.956 20 20 20h408.282c11.044 0 20-8.956 20-20zM736.172 973.692c0-11.044-8.956-20-20-20h-408.282c-11.044 0-20 8.956-20 20s8.956 20 20 20h408.282c11.044 0 20-8.956 20-20zM736.172 916.030c0-11.044-8.956-20-20-20h-408.282c-11.044 0-20 8.956-20 20 0 11.046 8.956 20 20 20h408.282c11.044 0 20-8.954 20-20zM717.53 228c18.904 0 34.286 15.14 34.286 33.75v500.502c0 18.61-15.38 33.75-34.286 33.75h-411.43c-18.904 0-34.286-15.14-34.286-33.75v-500.502c0-18.61 15.38-33.75 34.286-33.75h411.43zM717.53 148h-411.43c-63.118 0-114.286 50.928-114.286 113.75v500.502c0 62.822 51.166 113.75 114.286 113.75h411.43c63.118 0 114.286-50.926 114.286-113.75v-500.502c-0.002-62.822-51.168-113.75-114.286-113.75v0zM680.036 511.53c0 22.090-17.91 40-40 40h-128.004c-5.384 0-10.508-1.078-15.196-3.006-0.124-0.048-0.254-0.086-0.376-0.132-0.61-0.262-1.188-0.57-1.782-0.86-0.572-0.276-1.16-0.528-1.718-0.828-0.204-0.112-0.39-0.246-0.594-0.364-0.918-0.514-1.832-1.050-2.704-1.64-0.086-0.058-0.164-0.128-0.254-0.188-10.492-7.21-17.382-19.284-17.382-32.98v-151.5c0-22.094 17.91-40 40.004-40 22.088 0 40 17.906 40 40v111.498h88c22.094-0.002 40.002 17.91 40.006 40z",tablet:"M200.022 927.988h624.018c1.38 0 2.746-0.072 4.090-0.208 20.168-2.050 35.91-19.080 35.91-39.792v-751.916c0-22.092-17.91-40-40-40h-624.018c-22.098 0-40 17.908-40 40v751.916c0 22.094 17.906 40 40 40zM512.002 878.206c-17.674 0-32.004-14.328-32.004-31.998 0-17.678 14.33-32.002 32.004-32.002 17.67 0 32 14.324 32 32.002 0 17.67-14.33 31.998-32 31.998zM240.022 176.078h544.018v591.902h-544.018v-591.902z",browser:"M920.004 128h-816.008c-1.38 0-2.746 0.070-4.090 0.208-20.168 2.048-35.91 19.080-35.91 39.792v688c0 22.090 17.91 40 40 40h816.008c22.098 0 40-17.91 40-40v-688c-0-22.094-17.906-40-40-40zM368 177.78c17.674 0 32.004 14.328 32.004 31.998 0 17.676-14.33 32.002-32.004 32.002-17.67 0-32-14.326-32-32.002 0-17.67 14.33-31.998 32-31.998zM272 177.78c17.674 0 32.004 14.328 32.004 31.998 0 17.676-14.33 32.002-32.004 32.002-17.67 0-32-14.326-32-32.002 0-17.67 14.33-31.998 32-31.998zM176 177.78c17.674 0 32.004 14.328 32.004 31.998 0 17.676-14.33 32.002-32.004 32.002-17.67 0-32-14.326-32-32.002 0-17.67 14.33-31.998 32-31.998zM880.004 815.996h-736.008v-527.988h736.008v527.988z",sidebar:"M920.032 127.858h-816c-22.092 0-40 17.908-40 40v688c0 22.092 17.908 40 40 40h316.578c1.13 0.096 2.266 0.172 3.422 0.172s2.292-0.078 3.424-0.172h492.576c22.092 0 40-17.908 40-40v-688c0-22.092-17.908-40-40-40zM144.032 207.858h240v608h-240v-608zM880.032 815.858h-416v-608h416v608zM198.734 288.030c0-17.674 14.328-32 32.002-32h66.396c17.672 0 32 14.326 32 32 0 17.676-14.324 32-32 32h-66.398c-17.674 0-32-14.326-32-32zM198.734 416.030c0-17.674 14.328-32 32.002-32h66.396c17.672 0 32 14.326 32 32 0 17.676-14.324 32-32 32h-66.398c-17.674 0-32-14.326-32-32zM198.734 544.030c0-17.674 14.328-32 32.002-32h66.396c17.672 0 32 14.326 32 32 0 17.676-14.324 32-32 32h-66.398c-17.674 0-32-14.326-32-32z",sidebaralt:"M64 167.944v688c0 22.092 17.908 40 40 40h816c22.092 0 40-17.908 40-40v-688c0-22.092-17.908-40-40-40h-816c-22.092 0-40 17.908-40 40zM880 815.944h-240v-608h240v608zM144 207.944h416v608h-416v-608zM793.296 320.118h-66.398c-17.676 0-32-14.324-32-32 0-17.674 14.328-32 32-32h66.396c17.674 0 32.002 14.326 32.002 32 0 17.672-14.324 32-32 32zM793.296 448.118h-66.398c-17.676 0-32-14.324-32-32 0-17.674 14.328-32 32-32h66.396c17.674 0 32.002 14.326 32.002 32 0 17.672-14.324 32-32 32zM793.296 576.118h-66.398c-17.676 0-32-14.324-32-32 0-17.674 14.328-32 32-32h66.396c17.674 0 32.002 14.326 32.002 32 0 17.672-14.324 32-32 32z",bottombar:"M85 121h854c24 0 42 18 42 41v700c0 23-18 41-42 41H608a44 44 0 0 1-7 0H85c-24 0-42-18-42-41V162c0-23 18-41 42-41zm41 535v165h772V656H126zm0-82h772V202H126v372zm185 197h-69c-19 0-34-14-34-32s15-33 34-33h69c19 0 34 15 34 33s-15 32-34 32zm236 0h-70c-18 0-33-14-33-32s15-33 33-33h70c18 0 33 15 33 33s-15 32-33 32zm235 0h-70c-18 0-33-14-33-32s15-33 33-33h70c18 0 33 15 33 33s-15 32-33 32z",useralt:"M533 960a850 850 0 0 0 386-92v-19c0-117-242-223-306-234-20-3-21-58-21-58s59-58 72-137c35 0 56-84 21-113 2-31 45-243-173-243S337 276 338 307c-34 29-13 113 22 113 13 79 72 137 72 137s-1 55-21 58c-64 11-301 115-306 231a855 855 0 0 0 428 114z",user:"M814 805a525 525 0 00-217-116c-17-3-17-50-17-50s50-49 61-116c29 0 48-71 18-96 1-26 38-206-147-206S364 401 365 427c-30 25-11 96 18 96 11 67 61 116 61 116s0 47-17 50c-39 6-154 53-217 116a418 418 0 015-590 418 418 0 01594 0 418 418 0 015 590M512 0a512 512 0 100 1024A512 512 0 00512 0",useradd:"M87 859c-30-12-59-27-87-43 5-105 221-200 279-210 19-3 19-53 19-53s-54-53-65-125c-32 0-51-76-20-103-1-28-40-221 158-221 199 0 160 193 158 221 32 27 12 103-19 103-12 72-66 125-66 125s1 50 19 53c59 10 279 107 279 213v18a781 781 0 0 1-655 22zm892-565h-91v-90a45 45 0 1 0-91 0v90h-91a45 45 0 1 0 0 91h91v91a45 45 0 1 0 91 0v-91h91a45 45 0 1 0 0-91z",users:"M360 128c193 0 155 182 154 208 31 25 12 97-19 97-11 67-64 118-64 118s1 47 19 50c57 9 271 100 271 200v16a771 771 0 0 1-637 21c-29-11-57-25-84-40 4-99 215-189 271-197 18-3 18-50 18-50s-52-51-63-118c-31 0-50-72-19-97-1-26-40-208 153-208zm416 66c133 0 107 125 106 144 21 17 8 66-13 66-8 47-44 81-44 81s0 33 12 34c40 6 187 69 187 138v46c-80 27-163 41-249 41l-9-1c-16-31-44-61-83-90a546 546 0 0 0-111-64c47-38 117-66 143-70 12-1 12-34 12-34s-36-34-43-81c-21 0-34-49-13-66-1-19-27-144 105-144z",profile:"M761 631c0-13-10-23-22-23H285c-12 0-22 10-22 23 0 12 10 23 22 23h454c12 0 22-11 22-23zm0 100c0-12-10-22-22-22H285c-12 0-22 10-22 22 0 13 10 23 22 23h454c12 0 22-10 22-23zm0 101c0-13-10-23-22-23H285c-12 0-22 10-22 23s10 23 22 23h454c12 0 22-10 22-23zM832 0c59 0 107 49 107 109v807c-1 60-49 108-107 108H130c-25 0-45-20-45-46V46a45 45 0 0 1 45-46h702zm0 91H174v842h658c10 0 18-9 18-18V110c0-10-8-19-18-19zM384 532l-39-20c2-49 100-93 126-97 8-1 8-25 8-25s-24-24-29-57c-14 0-23-35-9-48-1-13-18-102 71-102s72 89 71 102c14 13 5 48-9 48-5 33-29 57-29 57s0 24 8 25c27 4 126 49 126 98v8a346 346 0 0 1-295 11z",bookmark:"M772 1012L511 761l-260 251a49 49 0 0 1-52 10c-18-7-29-24-29-43V132c0-25 21-46 47-46h588c26 0 47 21 47 46v847c0 19-11 36-29 43a49 49 0 0 1-51-10z",bookmarkhollow:"M772 1012L511 761l-260 251a49 49 0 0 1-52 10c-18-7-29-24-29-43V132c0-25 21-46 47-46h588c26 0 47 21 47 46v847c0 19-11 36-29 43a49 49 0 0 1-51-10zM545 664l213 205V181H265v688l213-205c9-9 21-14 33-14s24 5 34 14z",book:"M896.054 159.774c-0.122-52.914-43.048-95.774-95.992-95.774h-632.004c-1.754 0-3.468 0.154-5.164 0.372-19.644 2.54-34.836 19.292-34.836 39.628v816c0 22.094 17.91 40 40 40h632.004c52.642 0 95.368-42.378 95.968-94.88h0.036v-705.332l-0.012-0.014zM368.062 144h80v271.922l-11.728-11.718c-15.62-15.606-40.924-15.606-56.542 0l-11.728 11.718v-271.922zM816.036 864.204c-0.1 8.712-7.268 15.796-15.972 15.796h-592.004v-736h80.004v368.426c0 16.176 9.742 30.758 24.684 36.954 14.944 6.192 32.146 2.778 43.586-8.656l51.728-51.68 51.728 51.68c7.652 7.644 17.876 11.708 28.28 11.708 5.156 0 10.356-1 15.306-3.050 14.944-6.196 24.684-20.778 24.684-36.954v-368.428h272c8.796 0 15.972 7.16 15.992 15.958l-0.016 704.246z",repository:"M856.020 159.804c-0.122-52.916-43.048-95.774-95.992-95.774h-591.968c-1.754 0-3.468 0.154-5.164 0.37-19.644 2.54-34.836 19.292-34.836 39.63v784.584c0 22.094 17.91 40 40 40h151.972v63.594c0 10.876 6.548 20.682 16.598 24.844 10.046 4.164 21.612 1.87 29.304-5.818l34.78-34.748 34.78 34.748c5.144 5.14 12.020 7.87 19.014 7.87 3.466 0 6.962-0.672 10.292-2.052 10.048-4.164 16.598-13.968 16.598-24.844v-63.594h278.63c52.642 0 95.368-42.38 95.968-94.882h0.036v-673.916l-0.012-0.012zM776.020 159.988l-0.014 504.628h-519.974v-520.584h503.996c8.796-0 15.972 7.158 15.992 15.956zM760.028 848.616h-278.63v-56h-161.366v56h-111.972v-104h567.944l-0.002 88.204c-0.102 8.71-7.27 15.796-15.974 15.796zM320.032 240.396c0-17.67 14.328-31.998 31.998-31.998s32.002 14.326 32.002 31.998c0 17.674-14.332 32-32.002 32-17.672-0.002-31.998-14.326-31.998-32zM320.032 349.79c0-17.67 14.328-31.998 31.998-31.998s32.002 14.328 32.002 31.998c0 17.676-14.332 32-32.002 32-17.672 0-31.998-14.324-31.998-32zM320.032 459.188c0-17.67 14.328-32 31.998-32s32.002 14.328 32.002 32c0 17.674-14.332 31.998-32.002 31.998-17.672 0-31.998-14.324-31.998-31.998zM384.032 568.582c0 17.674-14.332 31.998-32.002 31.998s-31.998-14.324-31.998-31.998c0-17.67 14.328-32 31.998-32 17.67 0.002 32.002 14.33 32.002 32z",star:"M763.972 919.5c-6.368 0-12.758-1.518-18.61-4.596l-233.358-122.688-233.37 122.688c-13.476 7.090-29.808 5.904-42.124-3.042-12.318-8.95-18.486-24.118-15.912-39.124l44.57-259.856-188.792-184.028c-10.904-10.626-14.828-26.524-10.124-41.004s17.222-25.034 32.292-27.222l260.906-37.912 116.686-236.42c6.738-13.652 20.644-22.296 35.87-22.296v0c15.226 0 29.13 8.644 35.87 22.298l116.674 236.418 260.906 37.912c15.068 2.19 27.586 12.742 32.292 27.222s0.782 30.376-10.124 41.004l-188.792 184.028 44.24 257.93c0.62 2.796 0.946 5.704 0.946 8.688 0 22.054-17.848 39.942-39.888 40-0.054 0-0.106 0-0.158 0z",starhollow:"M763.972 919.5c-6.368 0-12.758-1.518-18.61-4.596l-233.358-122.688-233.37 122.688c-13.476 7.090-29.808 5.904-42.124-3.042-12.318-8.95-18.486-24.118-15.912-39.124l44.57-259.856-188.792-184.028c-10.904-10.626-14.828-26.524-10.124-41.004s17.222-25.034 32.292-27.222l260.906-37.912 116.686-236.42c6.738-13.652 20.644-22.296 35.87-22.296v0c15.226 0 29.13 8.644 35.87 22.298l116.674 236.418 260.906 37.912c15.068 2.19 27.586 12.742 32.292 27.222s0.782 30.376-10.124 41.004l-188.792 184.028 44.24 257.93c0.62 2.796 0.946 5.704 0.946 8.688 0 22.054-17.848 39.942-39.888 40-0.054 0-0.106 0-0.158 0zM190.256 428.144l145.812 142.13c9.428 9.192 13.73 22.432 11.504 35.406l-34.424 200.7 180.244-94.758c11.654-6.13 25.576-6.126 37.226 0l180.232 94.756-34.422-200.698c-2.226-12.974 2.076-26.214 11.504-35.406l145.812-142.13-201.51-29.282c-13.030-1.892-24.292-10.076-30.118-21.882l-90.114-182.596-90.122 182.598c-5.826 11.804-17.090 19.988-30.118 21.88l-201.506 29.282z",circle:"M1024 512A512 512 0 110 512a512 512 0 011024 0z",circlehollow:"M1024 512A512 512 0 100 512a512 512 0 001024 0zM215 809a418 418 0 010-594 418 418 0 01594 0 418 418 0 010 594 418 418 0 01-594 0z",heart:"M895.032 194.328c-20.906-21.070-46.492-37.316-76.682-48.938-30.104-11.71-63.986-17.39-101.474-17.39-19.55 0-38.744 2.882-57.584 9.094-18.472 6.062-36.584 14.242-54.072 24.246-17.476 9.828-34.056 21.276-49.916 33.898-16.038 12.8-30.456 25.572-43.346 38.664-13.52-13.092-28.026-25.864-43.616-38.664-15.684-12.624-32.080-24.070-49.382-33.898-17.214-10.004-35.414-18.184-54.704-24.246-19.104-6.21-38.568-9.094-58.034-9.094-37.126 0-70.56 5.68-100.48 17.39-29.732 11.622-55.328 27.868-76.328 48.938-20.994 21.094-37.214 46.962-48.478 77.328-11.174 30.544-16.942 64.5-16.942 101.812 0 21.628 3.068 43.078 9.19 64.53 6.308 21.096 14.416 41.986 24.876 61.642 10.446 19.656 22.702 38.488 36.584 56.59 13.88 18.124 28.388 34.516 43.344 49.58l305.766 305.112c8.466 7.558 18.11 11.444 28.204 11.444 10.726 0 19.914-3.884 27.308-11.444l305.934-304.226c14.78-14.772 29.382-31.368 43.166-49.378 14.058-18.212 26.314-37.222 37.042-57.23 10.9-19.924 19.192-40.638 25.406-62 6.218-21.188 9.198-42.61 9.198-64.618 0-37.312-5.592-71.268-16.582-101.812-11.264-30.366-27.22-56.236-48.398-77.33z",hearthollow:"M716.876 208c27.708 0 52.092 4.020 72.47 11.948l0.132 0.052 0.13 0.050c19.866 7.644 35.774 17.664 48.632 30.624l0.166 0.168 0.17 0.168c12.586 12.536 22.304 28.27 29.706 48.094 7.782 21.786 11.726 46.798 11.726 74.364 0 14.658-1.95 28.426-5.958 42.086l-0.028 0.092-0.026 0.092c-4.866 16.72-11.006 31.752-18.776 45.952l-0.162 0.298-0.16 0.296c-8.81 16.434-18.58 31.532-29.864 46.148l-0.204 0.264c-11.316 14.786-23.48 28.708-36.154 41.378l-277.122 275.574-276.94-276.35c-13.32-13.43-25.248-27.074-36.488-41.75-11.386-14.848-21.284-30.136-29.444-45.49-7.206-13.54-13.494-29.17-18.7-46.472-4.030-14.264-5.988-28.044-5.988-42.116 0-27.36 4.042-52.314 12.016-74.176 7.214-19.378 17.344-35.708 30.066-48.492 12.998-13.042 28.958-23.148 48.826-30.914 20.436-8 43.764-11.886 71.32-11.886 11.536 0 22.738 1.742 33.298 5.174l0.374 0.122 0.376 0.12c13.116 4.122 26.066 9.874 38.494 17.094l0.34 0.2 0.344 0.196c12.736 7.234 25.308 15.876 38.43 26.412 14.486 11.906 27.060 23.048 38.428 34.056l56.994 55.192 55.662-56.532c10.324-10.484 22.18-21.040 36.242-32.264 13.382-10.646 26.216-19.38 39.228-26.698l0.256-0.144 0.254-0.144c13.008-7.442 26.228-13.386 39.294-17.676l0.050-0.016 0.050-0.018c10.354-3.414 20.998-5.076 32.54-5.076zM716.876 128c-19.55 0-38.744 2.882-57.584 9.094-18.472 6.062-36.584 14.242-54.072 24.246-17.476 9.828-34.056 21.276-49.916 33.898-16.038 12.8-30.456 25.572-43.346 38.664-13.52-13.092-28.026-25.864-43.616-38.664-15.684-12.624-32.080-24.070-49.382-33.898-17.214-10.004-35.414-18.184-54.704-24.246-19.104-6.21-38.568-9.094-58.034-9.094-37.126 0-70.56 5.68-100.48 17.39-29.732 11.622-55.328 27.868-76.328 48.938-20.994 21.094-37.214 46.962-48.478 77.328-11.174 30.544-16.942 64.5-16.942 101.812 0 21.628 3.068 43.078 9.19 64.53 6.308 21.096 14.416 41.986 24.876 61.642 10.446 19.656 22.702 38.488 36.584 56.59 13.88 18.124 28.388 34.516 43.344 49.58l305.766 305.112c8.466 7.558 18.11 11.444 28.204 11.444 10.726 0 19.914-3.884 27.308-11.444l305.934-304.226c14.78-14.772 29.382-31.368 43.166-49.378 14.058-18.212 26.314-37.222 37.042-57.23 10.9-19.924 19.192-40.638 25.406-62 6.218-21.188 9.198-42.61 9.198-64.618 0-37.312-5.592-71.268-16.582-101.812-11.262-30.366-27.216-56.234-48.396-77.328-20.906-21.070-46.492-37.316-76.682-48.938-30.106-11.712-63.988-17.392-101.476-17.392v0z",facehappy:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm248 493.7c15.2 0 28.7 7.5 37 19l2.6 3.9a46 46 0 015.8 18l.3 4.9c0 6.6-1.4 13-4 18.7l-2.1 4.1A329 329 0 01232 663l-5.5-9.3a46 46 0 01-2-41.2l2-4.2v-.2a45.6 45.6 0 0176.7-4l2.5 4a237.9 237.9 0 00410 7.7l4.5-7.7a46 46 0 0139.7-22.9zM329.7 292.6a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2zm365.2 0a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2z",facesad:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm1.1 449.2a329 329 0 01281.1 157.7l5.5 9.2a46 46 0 012 41.3l-2 4.1v.3a45.6 45.6 0 01-76.7 4l-2.6-4a238 238 0 00-410-7.7l-4.5 7.7a46 46 0 01-76.6 4l-2.6-4a46 46 0 01-5.9-18l-.2-5c0-6.6 1.4-12.9 4-18.6l2.1-4.2a329 329 0 01286.4-166.8zm-183.4-248a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2zm365.2 0a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2z",faceneutral:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm248 521.2a45.7 45.7 0 014.7 91.2l-4.7.2H266.3a45.7 45.7 0 01-4.7-91.2l4.7-.2H760zm-430.3-320a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2zm365.2 0a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2z",lock:"M896.032 915.53v-467.498c0-19.102-13.402-35.052-31.31-39.026-0.21-0.046-0.414-0.12-0.628-0.162-0.444-0.090-0.904-0.13-1.354-0.208-2.186-0.37-4.416-0.606-6.708-0.606h-55.902l0.002-55.85h0.020c0-159.14-129.010-288.15-288.15-288.15-159.128 0-288.13 128.992-288.15 288.118v55.884h-54.852c-20.71 0-37.746 15.742-39.792 35.91-0.136 1.344-0.208 2.708-0.208 4.090v463.332c-0.618 2.792-0.968 5.688-0.968 8.668 0 22.094 17.91 40 40 40h688.27c22.092 0 40-17.91 40-40-0.002-1.524-0.104-3.024-0.27-4.502zM209 488.032h607.032v392h-607.032v-392zM303.85 352.182c0-114.776 93.376-208.15 208.15-208.15 114.59 0 207.842 93.074 208.142 207.596 0 0.084-0.012 0.164-0.012 0.248v56.156h-416.284l0.004-55.85zM552.164 691.858l-0.002 58.188c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.906-40-40v-57.974c-14.704-11.726-24.134-29.782-24.134-50.048 0-35.346 28.654-64 64-64s64 28.654 64 64c0 20.142-9.318 38.104-23.868 49.836z",unlock:"M896.032 915.53v-467.498c0-1.988-0.194-3.926-0.472-5.834-0.11-0.744-0.192-1.498-0.34-2.226-1.524-7.44-5.136-14.1-10.164-19.408-0.252-0.266-0.48-0.554-0.738-0.814-0.496-0.494-1.036-0.944-1.554-1.412-0.43-0.386-0.84-0.8-1.288-1.17-0.292-0.24-0.608-0.446-0.904-0.676-2.506-1.954-5.244-3.616-8.176-4.934-0.744-0.334-1.504-0.632-2.27-0.922-4.39-1.656-9.124-2.604-14.094-2.604h-552.184l0.002-55.85c0-114.776 93.376-208.15 208.15-208.15 86.038 0 160.034 52.474 191.7 127.096 0.012 0.028 0.030 0.044 0.042 0.072 5.978 14.566 20.284 24.832 37.006 24.832 22.090 0 40-17.906 40-40 0-4.71-0.86-9.21-2.354-13.41-0.182-0.694-0.42-1.438-0.782-2.292-43.666-103.582-146.14-176.296-265.612-176.296-159.128 0-288.13 128.994-288.15 288.12v55.882h-54.85c-20.71 0-37.746 15.742-39.792 35.91-0.136 1.344-0.208 2.708-0.208 4.090v463.332c-0.618 2.794-0.968 5.688-0.968 8.668 0 22.094 17.91 40 40 40h688.27c22.092 0 40-17.91 40-40-0.002-1.528-0.104-3.028-0.27-4.506zM209 488.032h607.032v392h-607.032v-392zM552.164 691.86l-0.002 58.186c0.004 22.088-17.906 39.996-39.996 40-22.094 0-40.004-17.908-40-40v-57.976c-14.702-11.726-24.134-29.782-24.134-50.048 0-35.346 28.654-64 64-64s64 28.654 64 64c0 20.142-9.318 38.102-23.868 49.838z",key:"M768.032 320.032c0 35.346-28.654 64-64 64s-64-28.654-64-64 28.654-64 64-64 64 28.654 64 64zM960.032 353.092c0 159.062-128.946 288.010-288.008 288.010-35.306 0-69.124-6.368-100.38-17.996l-27.736 27.738-0.002 54.464c0 0.016 0.002 0.028 0.002 0.040 0 11.046-4.478 21.046-11.716 28.29-6.334 6.332-14.784 10.55-24.196 11.508-1.346 0.136-2.708 0.208-4.090 0.208h-71.748l-0.002 71.96c0 0.012 0.002 0.040 0.002 0.040 0 11.046-4.478 21.046-11.716 28.286-6.334 6.336-14.784 10.554-24.196 11.508-1.346 0.136-2.708 0.208-4.090 0.208h-71.996l-0.002 62.684c0 22.094-17.908 40-40 40-0.022 0-0.042 0-0.062 0-0.022 0-0.042 0-0.064 0h-175.996c-13.76 0-25.888-6.95-33.086-17.524-4.362-6.406-6.916-14.14-6.916-22.476v-112c0-0.664 0.066-1.308 0.1-1.964 0.032-0.618 0.034-1.234 0.092-1.852 0.11-1.148 0.288-2.278 0.492-3.398 0.024-0.128 0.034-0.258 0.058-0.386 1.614-8.378 5.848-15.808 11.808-21.446l325.456-325.458c-11.642-31.274-18.020-65.11-18.020-100.44 0-159.060 128.946-288.006 288.006-288.006 159.060-0.004 288.006 128.942 288.006 288.002zM880.032 353.092c0-114.696-93.312-208.006-208.008-208.006s-208.006 93.31-208.006 208.006c0 43.208 13.246 83.376 35.884 116.668l-57.36 57.362c-0.136-0.184-0.27-0.368-0.408-0.546l-298.102 298.106-0.002 55.356h96.124v-62.684c0-0.708 0.070-1.394 0.106-2.094 0.036-0.664 0.036-1.336 0.102-1.992 0.132-1.316 0.334-2.61 0.592-3.882 0.006-0.028 0.008-0.058 0.014-0.090 0.258-1.262 0.58-2.5 0.956-3.714 0.012-0.040 0.018-0.078 0.030-0.118 4.676-15.032 17.976-26.262 34.114-27.902 1.344-0.136 2.708-0.208 4.090-0.208h71.998v-67.64c-0.156-1.434-0.248-2.882-0.248-4.36 0-22.094 17.908-40 40-40h71.998v-30.692c0-0.148 0.020-0.29 0.022-0.438 0.008-10.226 3.912-20.45 11.714-28.254l55.99-55.988c1.982-1.984 4.124-3.71 6.38-5.188l18.68-18.684c33.030 22.090 72.702 34.992 115.332 34.992 114.694-0 208.008-93.314 208.008-208.010z",arrowleftalt:"M107.854 539.924l282.834 283.272c15.594 15.65 40.92 15.692 56.568 0.1 15.648-15.594 15.694-40.92 0.1-56.568l-214.838-215.040h655.412c22.092 0 40-17.908 40-40s-17.908-40-40-40h-655l214.75-214.61c15.64-15.602 15.672-40.928 0.070-56.568-7.814-7.834-18.066-11.752-28.32-11.75-10.22 0-20.442 3.892-28.25 11.68l-283.242 282.93c-15.634 15.594-15.672 40.91-0.084 56.554z",arrowrightalt:"M916.266 483.792l-282.834-283.272c-15.594-15.65-40.92-15.692-56.568-0.1-15.648 15.594-15.694 40.92-0.1 56.568l214.838 215.040h-655.412c-22.092 0-40 17.908-40 40s17.908 40 40 40h655l-214.748 214.61c-15.64 15.602-15.672 40.928-0.070 56.568 7.814 7.834 18.066 11.752 28.32 11.75 10.22 0 20.442-3.892 28.25-11.68l283.242-282.93c15.632-15.596 15.67-40.91 0.082-56.554z",sync:"M135.6 442.5a41 41 0 0130 12l94.9 94.6c16 16 16 42 0 58s-42.1 16-58.2 0l-30.1-30a341.9 341.9 0 0095 178.6c65.3 65 152 101 244.3 101 92.3 0 179-36 244.3-101a345 345 0 0066.8-93.6 41.1 41.1 0 0174.3 35v.2l-.1.2-5.2 10.3a427.8 427.8 0 01-380 230.9A427.5 427.5 0 0190.1 585.8l-20 20c-16 16-42 16-58.2 0a41 41 0 010-58l93.6-93.3a41 41 0 0130-12zm376-357.2c208.9 0 382.8 149.5 420.1 347.1l22-22c16.1-16 42.2-16 58.2 0s16 42 0 58l-93.5 93.4a41 41 0 01-30 12 41 41 0 01-30-12L763.5 467a41 41 0 010-58c16-16 42.1-16 58.2 0l26.8 26.8a342 342 0 00-92.7-167.6c-65.3-65-152-101-244.3-101-92.3 0-179 36-244.2 101a345.2 345.2 0 00-66.9 93.6 41.1 41.1 0 01-74.3-35v-.2l.2-.2c.7-1.7.2-.8 5.1-10.3A427.8 427.8 0 01511.5 85.3z",reply:"M679.496 431.738c-0.414-0.062-0.834-0.102-1.266-0.102h-477.482l171.506-171.504c15.622-15.622 15.622-40.95-0.002-56.57-15.62-15.624-40.948-15.624-56.568 0l-239.734 239.732c-0.958 0.956-1.868 1.958-2.724 3.006-0.328 0.402-1.884 2.482-2.324 3.138-0.36 0.54-1.696 2.77-2.008 3.352-0.308 0.58-1.424 2.936-1.676 3.544-0.036 0.086-0.468 1.268-0.648 1.774-0.23 0.636-0.474 1.266-0.672 1.918-0.186 0.612-0.818 3.13-0.95 3.788-0.148 0.748-0.522 3.318-0.574 3.862-0.262 2.642-0.262 5.3 0 7.942 0.044 0.448 0.412 3.032 0.58 3.874 0.112 0.556 0.74 3.088 0.958 3.808 0.158 0.524 1.036 2.992 1.328 3.7 0.192 0.458 1.298 2.828 1.688 3.552 0.208 0.386 0.446 0.75 0.666 1.126 0.436 0.752 1.844 2.888 2.084 3.224 0.52 0.724 4.262 5.074 4.29 5.098l239.718 239.72c15.62 15.618 40.948 15.618 56.57 0 15.62-15.624 15.622-40.948 0-56.57l-171.516-171.514h471.296c114.52 0.084 207.688 93.124 207.988 207.594 0 0.084-0.012 0.164-0.012 0.248v95.876c-0.004 22.094 17.906 40.002 40 40 22.090-0.002 40-17.91 39.996-39.998l0.004-95.57h0.020c0-156.594-124.914-284.012-280.536-288.048z",undo:"M230 301h480a240 240 0 1 1 0 481H235c-23 0-42-20-42-43 0-24 19-43 42-43h475a155 155 0 0 0 0-310H228l3 3 65 65a45 45 0 0 1-65 64L90 376a45 45 0 0 1 0-64l142-142a45 45 0 1 1 64 65l-63 62-3 4z",transfer:"M916.25 348.726l-125 124.688c-7.808 7.79-18.032 11.68-28.25 11.68-10.254 0.002-20.506-3.918-28.32-11.75-15.602-15.64-15.57-40.966 0.070-56.568l56.508-56.368h-655.258c-22.092 0-40-17.908-40-40s17.908-40 40-40h655.672l-57.006-57.206c-15.594-15.646-15.548-40.972 0.1-56.566s40.972-15.55 56.568 0.098l125 125.438c15.588 15.644 15.548 40.958-0.084 56.554zM107.666 731.892l125 125.438c15.596 15.648 40.92 15.692 56.568 0.098s15.694-40.92 0.1-56.566l-57.006-57.206h655.672c22.092 0 40-17.908 40-40s-17.908-40-40-40h-655.258l56.508-56.368c15.64-15.602 15.672-40.928 0.070-56.568-7.814-7.832-18.066-11.752-28.32-11.75-10.218 0-20.442 3.89-28.25 11.68l-125 124.688c-15.632 15.596-15.672 40.91-0.084 56.554z",redirect:"M913.852 702.796c-15.594-15.648-40.922-15.694-56.57-0.1l-57.204 57.006v-451.424c0-0.372-0.028-0.736-0.074-1.098-0.458-99.016-80.86-179.15-179.988-179.15-99.412 0-180 80.592-180 180 0 0.084 0.004 0.166 0.004 0.248h-0.004v343.504h-0.006c0 0.082 0.006 0.164 0.006 0.248 0 55.14-44.86 100-100 100s-100-44.86-100-100c0-0.084 0.006-0.166 0.006-0.248h-0.002v-483.752c0-22.092-17.91-40-40-40s-40.004 17.908-40.004 40v483.752c0 0.018 0.002 0.036 0.002 0.054 0 0.064-0.002 0.128-0.002 0.194 0 99.408 80.59 180 180 180 99.412 0 180-80.592 180-180 0-0.084-0.004-0.166-0.004-0.248h0.004v-343.504h0.008c0-0.082-0.008-0.164-0.008-0.248 0-55.138 44.86-100 100-100s100 44.862 100 100c0 0.084-0.008 0.166-0.008 0.248h0.070v451.008l-56.368-56.506c-15.602-15.642-40.93-15.67-56.566-0.070-7.836 7.814-11.754 18.066-11.754 28.32 0 10.218 3.894 20.442 11.68 28.252l124.692 125c15.594 15.632 40.91 15.67 56.554 0.084l125.434-125c15.652-15.598 15.692-40.92 0.102-56.57z",expand:"M433.4 578.8l6.2 5.2a44.8 44.8 0 010 63.3L238.4 849.1h100.3a44.8 44.8 0 018 88.8l-8 .8H130l-6.2-.5 2.7.3h-.3a44.7 44.7 0 01-24.8-10.2l-.3-.3-.3-.2-.3-.4-.3-.2-.3-.2v-.2h-.1l-.2-.1a45.7 45.7 0 01-13.5-24.8l-.3-1.7a45 45 0 01-.5-5.3V685.7a44.8 44.8 0 0189-8.1l.6 8 .1 100L376.3 584a44.8 44.8 0 0157.1-5.2zm157.2 0a44.8 44.8 0 0157.1 5.2L849 785.7v-100l.8-8.1a44.8 44.8 0 0188.9 8V895a45 45 0 01-.5 5.3l-.3 1.7a38.6 38.6 0 01-2.8 9.4 43.4 43.4 0 01-9.6 14.2l-4.7 4.2 2-1.7.7-.6-.3.4a44.1 44.1 0 01-4.4 3.3l-.6.4a45.8 45.8 0 01-20.4 7h-.3.9l1.8-.3-6.2.5H685.3l-8-.8a44.8 44.8 0 018-88.8h100.3L584.4 647.3a44.8 44.8 0 010-63.3zM98.5 925.5l1.3 1.3.1.2.6.4a45 45 0 002 1.7l.7.6-4.7-4.2zM893.9 85.3h.9-.8l6.2.5a45 45 0 00-1.8-.2l-.9-.1h-1l-.5-.1h-1.2 2.7l.3.1a44.7 44.7 0 0125.4 10.7l.3.3v.1l.3.2.3.2v.2h.1l.2.1.6.6.5.6A45.6 45.6 0 01938 122l.3 1.7c.3 1.8.4 3.6.5 5.3v209.2a44.8 44.8 0 01-89 8.1l-.6-8-.1-100L647.7 440a44.8 44.8 0 01-57.1 5.2l-6.2-5.2a44.8 44.8 0 010-63.3l201.2-201.8H685.3a44.8 44.8 0 01-8-88.8l8-.8H894h-.1zm-555.2 0l8 .8a44.8 44.8 0 01-8 88.8H238.4l201.2 201.8a44.8 44.8 0 010 63.3l-6.2 5.2a44.8 44.8 0 01-57.1-5.2L175 238.3v100l-.8 8.1a44.8 44.8 0 01-88.9-8V129c0-1.7.2-3.5.5-5.3l.3-1.7a38.6 38.6 0 012.8-9.4 43.4 43.4 0 019.6-14.2l4.7-4.2-2 1.7.2-.3a43.7 43.7 0 0124.8-10.2h1.3l.3-.1h2.3-.1 208.7zm582 9l4.8 4.2-1.3-1.3-.1-.2-.5-.4h-.1l-.6-.6-1.4-1.1-.7-.6zm-790.7-9h-2l-.5.1h-1l-.9.2c-.6 0-1.2 0-1.8.2l6.2-.5z",expandalt:"M479.7 13.4L205.4 287.6a45.7 45.7 0 1064.7 64.7l242-242 241.8 241.9a45.7 45.7 0 1064.7-64.7L544.4 13.4a45.6 45.6 0 00-64.7 0M512 1024a45.6 45.6 0 01-32.3-13.4L205.4 736.5a45.7 45.7 0 1164.7-64.7l241.8 241.8 242-241.9a45.7 45.7 0 1164.7 64.7l-274.3 274.2c-9 9-20.7 13.4-32.4 13.4",collapse:"M479.7 411L205.4 136.6a45.7 45.7 0 1164.7-64.6L512 314 753.9 72.2a45.7 45.7 0 1164.7 64.6L544.4 411a45.6 45.6 0 01-64.7 0M512 598.3a45.6 45.6 0 00-32.3 13.4L205.4 885.8a45.7 45.7 0 1064.7 64.7l241.8-241.8 242 242a45.7 45.7 0 1064.7-64.7L544.3 611.7c-9-8.9-20.7-13.4-32.4-13.4",grow:"M541.146 448.384c-1.694-0.216-3.408-0.37-5.162-0.37h-367.968c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v368.032c0 22.094 17.91 40 40 40h367.968c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-368.036c0-20.34-15.192-37.094-34.838-39.632zM208.016 816.046v-288.032h287.968v288.032h-287.968zM736.032 856.046c0 22.090-17.908 40-40 40-22.090 0-40-17.908-40-40v-487.902l-488.016 0.002c-22.090 0-40-17.91-40-40s17.908-40.002 40-40.002h528.016c1.754 0 3.468 0.152 5.162 0.37 19.646 2.538 34.838 19.292 34.838 39.63v527.902zM896.032 168.030v688.004c-0.002 22.088-17.91 39.996-40 39.996s-40.002-17.908-40.002-40c0 0 0.002-304.026 0.002-304.040v-343.96h-343.96c-0.014 0-304.040 0.002-304.040 0.002-22.090 0-40-17.91-40-40s17.908-40.002 40-40.002h688c1.754 0 3.468 0.152 5.162 0.37 19.646 2.536 34.838 19.29 34.838 39.63z",arrowleft:"M257.93 511.976c0-10.236 3.902-20.47 11.71-28.282l344.098-344.158c15.622-15.624 40.946-15.624 56.57-0.006 15.622 15.622 15.624 40.948 0.004 56.568l-315.82 315.876 315.868 315.922c15.618 15.624 15.618 40.952-0.004 56.568-15.622 15.62-40.95 15.618-56.57-0.006l-344.146-344.202c-7.808-7.81-11.71-18.044-11.71-28.28z",arrowup:"M512.024 256c10.236 0 20.47 3.904 28.282 11.712l344.154 344.098c15.624 15.62 15.624 40.946 0.006 56.57-15.622 15.622-40.948 15.624-56.568 0.004l-315.876-315.82-315.922 315.868c-15.624 15.618-40.952 15.618-56.568-0.004-15.62-15.624-15.618-40.95 0.006-56.57l344.204-344.144c7.81-7.81 18.046-11.714 28.282-11.714z",arrowdown:"M511.976 768.002c-10.236 0-20.47-3.904-28.282-11.712l-344.154-344.098c-15.624-15.62-15.624-40.946-0.006-56.57 15.622-15.622 40.948-15.624 56.568-0.004l315.876 315.82 315.922-315.868c15.624-15.618 40.952-15.616 56.568 0.004 15.62 15.624 15.618 40.95-0.006 56.57l-344.204 344.144c-7.81 7.81-18.046 11.714-28.282 11.714z",arrowright:"M768.072 514.022c0 10.236-3.904 20.47-11.712 28.282l-344.098 344.156c-15.62 15.624-40.946 15.624-56.568 0.006-15.622-15.622-15.624-40.948-0.006-56.568l315.82-315.876-315.868-315.922c-15.618-15.624-15.618-40.952 0.004-56.568 15.624-15.62 40.95-15.618 56.57 0.006l344.144 344.204c7.81 7.81 11.714 18.044 11.714 28.28z",chevrondown:"M511.976 833c-10.236 0-20.47-3.904-28.282-11.712l-471.934-471.874c-15.624-15.62-15.624-40.946-0.006-56.57 15.622-15.622 40.948-15.624 56.568-0.004l443.652 443.598 443.61-443.556c15.624-15.618 40.952-15.616 56.568 0.004 15.62 15.624 15.618 40.95-0.006 56.57l-471.89 471.832c-7.808 7.808-18.044 11.712-28.28 11.712z",back:"M512 932.6c-112.3 0-218-43.8-297.4-123.2A417.8 417.8 0 0191.4 512c0-112.3 43.8-218 123.2-297.4A417.8 417.8 0 01512 91.4c112.3 0 218 43.8 297.4 123.2A417.8 417.8 0 01932.6 512c0 112.3-43.8 218-123.2 297.4A417.8 417.8 0 01512 932.6zm0 91.4A512 512 0 10512 0a512 512 0 000 1024zM232.7 542.5l142.8 143.3a45.7 45.7 0 0064.8-64.5L375 555.9h383.7a45.7 45.7 0 000-91.4H375.6l64.6-64.4a45.7 45.7 0 10-64.6-64.8L232.8 477.8a45.7 45.7 0 00-.1 64.6z",download:"M543.8 791.3a45.7 45.7 0 01-64.6 0l-142.5-143a45.6 45.6 0 010-64.6 45.7 45.7 0 0164.7 0l64.5 64.7V265.2a45.7 45.7 0 1191.4 0v383.6l65.4-65.1a45.7 45.7 0 1164.5 64.8L543.8 791.3zM1024 512A512 512 0 110 512a512 512 0 011024 0zm-91.4 0c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512z",upload:"M480.2 232.7a45.7 45.7 0 0164.6 0l142.5 143a45.6 45.6 0 010 64.6 45.7 45.7 0 01-64.7 0L558 375.5v383.2a45.7 45.7 0 11-91.4 0V375.2l-65.4 65.1a45.7 45.7 0 11-64.5-64.8l143.4-142.8zM0 512a512 512 0 111024 0A512 512 0 010 512zm91.4 0c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512z",proceed:"M791.3 480.2L648.5 336.8a45.7 45.7 0 10-64.8 64.5l65.1 65.4H265.2a45.7 45.7 0 100 91.4h383.2l-64.6 64.5a45.7 45.7 0 0064.6 64.7l142.8-142.5a45.7 45.7 0 00.1-64.6M512 0a512 512 0 100 1024A512 512 0 00512 0m0 91.4c112.3 0 218 43.8 297.4 123.2A417.8 417.8 0 01932.6 512c0 112.3-43.8 218-123.2 297.4A417.8 417.8 0 01512 932.6c-112.3 0-218-43.8-297.4-123.2A417.8 417.8 0 0191.4 512c0-112.3 43.8-218 123.2-297.4A417.8 417.8 0 01512 91.4",info:"M874.04 149.96c199.95 199.95 199.95 524.14 0 724.08-199.95 199.95-524.13 199.95-724.08 0-199.95-199.95-199.95-524.13 0-724.08 199.95-199.95 524.13-199.95 724.08 0zM512 91.43c-112.34 0-217.95 43.75-297.39 123.18-79.43 79.44-123.18 185.05-123.18 297.4 0 112.33 43.75 217.94 123.18 297.38 79.44 79.43 185.05 123.18 297.4 123.18 112.33 0 217.94-43.75 297.38-123.18C888.82 729.95 932.57 624.34 932.57 512c0-112.34-43.75-217.95-123.18-297.39C729.95 135.18 624.34 91.43 512 91.43zm1.14 318.96a45.73 45.73 0 00-45.11 38.3l-.6 7.42v274.28a45.71 45.71 0 0090.83 7.42l.6-7.42V456.11a45.72 45.72 0 00-45.72-45.72zm0-162.25a45.72 45.72 0 100 91.44 45.72 45.72 0 000-91.44z",question:"M874.04 149.96c199.95 199.95 199.95 524.13 0 724.08-199.95 199.95-524.13 199.95-724.08 0-199.95-199.95-199.95-524.13 0-724.08 199.95-199.95 524.13-199.95 724.08 0zM512 91.43c-112.34 0-217.95 43.75-297.39 123.18-79.43 79.44-123.18 185.05-123.18 297.4 0 112.33 43.75 217.95 123.18 297.38 79.44 79.43 185.05 123.18 297.4 123.18 112.33 0 217.94-43.75 297.38-123.18C888.82 729.96 932.57 624.34 932.57 512c0-112.34-43.75-217.95-123.18-297.39C729.95 135.18 624.34 91.43 512 91.43zm1.14 640.9a45.72 45.72 0 100 91.43 45.72 45.72 0 000-91.44zm-1.14-549c-111.3 0-201.52 90.22-201.52 201.52a45.71 45.71 0 0090.84 7.41l.6-7.47c.03-60.68 49.4-110.03 110.08-110.03 60.7 0 110.1 49.38 110.1 110.09 0 60.7-49.4 110.09-110.1 110.09v.17a45.68 45.68 0 00-44.57 45.65v100.58a45.7 45.7 0 1091.42 0v-60.46c88.7-21.12 154.67-100.87 154.67-196.03 0-111.3-90.22-201.52-201.52-201.52z",support:"M512 932.57c-87.57 0-171.05-26.59-241.23-75.93l106-106a273.98 273.98 0 00135.26 35.62c46.7 0 93.41-11.88 135.22-35.6l105.98 105.98c-70.19 49.34-153.66 75.93-241.23 75.93m-344.64-661.8l105.97 105.98c-47.44 83.63-47.43 186.86.02 270.49L167.36 753.22C118.02 683.04 91.43 599.56 91.43 512c0-87.57 26.59-171.05 75.93-241.23m585.87-103.41L647.29 273.3a273.95 273.95 0 00-135.26-35.61c-46.74 0-93.47 11.9-135.3 35.63L270.77 167.36C340.96 118.02 424.43 91.43 512 91.43s171.05 26.59 241.23 75.93m-370.5 473.91c-71.3-71.3-71.3-187.3 0-258.6a181.7 181.7 0 01129.3-53.55h.02c48.83 0 94.74 19.02 129.28 53.56 71.29 71.29 71.29 187.3 0 258.6a181.66 181.66 0 01-129.3 53.55 181.67 181.67 0 01-129.3-53.56m473.91 111.95L750.68 647.27c47.48-83.65 47.48-186.91.02-270.56l105.94-105.94c49.34 70.18 75.93 153.66 75.93 241.23s-26.59 171.04-75.93 241.22m17.4-603.26c-199.95-199.95-524.13-199.95-724.08 0-199.95 199.95-199.95 524.13 0 724.08 199.95 199.95 524.13 199.95 724.08 0 199.95-199.95 199.95-524.13 0-724.08",alert:"M511.998 623.846c-22.090 0-40-17.906-40-40v-208c0-22.090 17.91-40 40-40v0c22.090 0 40.004 17.91 40.004 40v208c0 22.094-17.914 40-40.004 40v0zM511.998 743.846c22.090 0 40.004-17.906 40.004-40v0c0-22.090-17.914-40-40.004-40v0c-22.090 0-40 17.91-40 40v0c0 22.094 17.91 40 40 40v0zM512.142 211.808l-340.074 589.028h680.148l-340.074-589.028zM512.142 92.51c14.5 0 29 9.526 40 28.58l398.638 690.462c22 38.106 4 69.282-40 69.282h-797.278c-44 0-62-31.176-40-69.282l398.638-690.462c11.002-19.052 25.502-28.58 40.002-28.58v0z",bell:"M901.344 760.018l-57.644-77.648c-7.906-7.906-11.77-38.284-11.71-48.646h0.042v-200.588h-0.364c-6.878-148.106-114.428-269.902-255.792-298.528 0.208-2.1 0.318-4.228 0.318-6.384 0-35.452-28.738-64.194-64.194-64.194-35.458 0-64.194 28.742-64.194 64.194 0 2.19 0.112 4.352 0.326 6.486-141.128 28.802-248.446 150.488-255.316 298.426h-0.364v200.588h0.042c0.058 10.362-3.804 40.74-11.71 48.646l-57.644 77.648c-8.802 8.802-16.35 18.978-16.35 32.208 0 22.092 17.908 40 40 40h255.876c-0.814 5.412-1.28 10.936-1.28 16.576 0 61.43 49.794 111.23 111.23 111.23 61.432 0 111.228-49.8 111.228-111.23 0-5.638-0.464-11.164-1.282-16.576h255.128c22.092 0 40-17.908 40-40 0.004-13.23-7.542-23.404-16.346-32.208zM272.732 436.848c2.862-61.602 29.032-119.104 73.69-161.91 44.786-42.93 103.628-66.62 165.692-66.706h0.26c62.062 0.086 120.906 23.776 165.692 66.706 44.658 42.806 70.828 100.308 73.69 161.91l0.278 5.962v149.384h-479.58v-149.384l0.278-5.962zM543.846 848.8c0 17.22-14.010 31.23-31.228 31.23-17.22 0-31.23-14.010-31.23-31.23 0-6.096 1.784-11.768 4.82-16.576h52.818c3.038 4.81 4.82 10.482 4.82 16.576zM512.484 752.226h-283.922l14.572-19.63c12.064-14.542 20.078-33.27 24.982-58.158 0.146-0.742 0.276-1.496 0.416-2.244h487.42c0.138 0.748 0.268 1.5 0.414 2.244 4.904 24.888 12.918 43.616 24.982 58.158l14.572 19.63h-283.436z",rss:"M256.094 865.048c0 53.020-42.972 96-96 96-53.020 0-96-42.98-96-96 0-53.016 42.98-96 96-96s96 42.984 96 96zM510.020 918.352c-0.018-0.172-0.042-0.344-0.050-0.52-0.054-0.676-0.124-1.34-0.214-2.004-10.582-105.644-57.866-200.46-128.894-271.536v0c-71.074-71.054-165.906-118.352-271.564-128.934-0.664-0.090-1.33-0.16-2.006-0.214-0.174-0.016-0.348-0.040-0.52-0.054-0.254-0.024-0.5-0.024-0.742-0.008-0.64-0.032-1.278-0.098-1.922-0.098-22.098 0-40 17.908-40 40 0 20.582 15.542 37.516 35.536 39.738 0.042 0.004 0.066 0.036 0.106 0.040 84.82 8.098 163.514 45.024 224.542 106.042v0c61.036 61.036 97.964 139.738 106.070 224.574 0.004 0.040 0.036 0.070 0.042 0.106 2.222 19.988 19.156 35.536 39.736 35.536 22.092 0 40-17.902 40-40 0-0.644-0.066-1.282-0.098-1.922 0-0.246 0-0.492-0.022-0.746zM734.688 918.45c-0.004-0.090-0.018-0.186-0.024-0.276-0.040-0.544-0.058-1.102-0.124-1.638-10.972-167.816-83.558-318.804-195.33-430.616h0.002c-111.812-111.788-262.81-184.384-430.644-195.36-0.542-0.060-1.094-0.084-1.642-0.122-0.092-0.008-0.182-0.016-0.272-0.022-0.020-0.002-0.042 0.004-0.054 0.004-0.836-0.052-1.664-0.124-2.512-0.124-22.092 0-40 17.908-40 40 0 21.036 16.246 38.24 36.874 39.842 0.046 0.008 0.078 0.038 0.128 0.042 66.876 4.086 131.786 19.292 193.406 45.358 70.472 29.81 133.78 72.494 188.166 126.874v0c54.394 54.396 97.090 117.71 126.902 188.204 26.064 61.624 41.274 126.532 45.362 193.408 0.004 0.052 0.036 0.080 0.042 0.13 1.604 20.624 18.802 36.87 39.844 36.87 22.090 0 40-17.904 40-40 0-0.85-0.074-1.678-0.126-2.514-0.002-0.024 0.006-0.040 0.002-0.060zM959.126 920.556c-0.002-0.094 0.008-0.164 0.004-0.262-10.342-231.204-108.314-439.604-261.486-592.796v-0.002c-153.2-153.19-361.61-251.174-592.828-261.518-0.096-0.004-0.168 0.006-0.262 0.004-0.176-0.004-0.348-0.030-0.524-0.030-22.098 0-40 17.91-40 40 0 20.988 16.168 38.164 36.716 39.834 0.184 0.042 0.356 0.086 0.566 0.098 97.040 4.314 191.186 25.538 280.376 63.258 97.14 41.090 184.406 99.928 259.368 174.876v0c74.96 74.964 133.81 162.24 174.908 259.398 37.718 89.19 58.946 183.336 63.26 280.376 0.010 0.208 0.052 0.38 0.096 0.562 1.67 20.552 18.848 36.72 39.834 36.72 22.092 0 40-17.906 40-40-0-0.17-0.024-0.342-0.028-0.518z",edit:"M948.56 263.376c12.704-12.708 15.072-31.836 7.11-46.936-1.84-3.524-4.232-6.832-7.192-9.792-0.286-0.286-0.594-0.528-0.886-0.8l-129.318-128.634c-0.048-0.048-0.088-0.106-0.138-0.154-7.812-7.812-18.050-11.716-28.292-11.714-10.242-0.004-20.484 3.902-28.296 11.714-0.064 0.066-0.12 0.136-0.184 0.204l-636.168 636.168c-5.868 5.134-10.21 11.958-12.298 19.748l-47.606 177.664c-3.7 13.804 0.248 28.534 10.352 38.638 7.602 7.6 17.816 11.714 28.288 11.714 3.452 0 6.93-0.446 10.352-1.364l177.664-47.606c7.296-1.956 13.732-5.904 18.74-11.216l521.486-521.484c1.126-0.904 2.222-1.87 3.268-2.914 1.042-1.044 2.006-2.138 2.91-3.264l107.75-107.748c0.836-0.71 1.668-1.432 2.458-2.224zM806.9 291.66l-73.592-73.202 56.61-56.61 73.594 73.2-56.612 56.612zM281.566 816.996l-73.4-73.4 468.572-468.568 73.594 73.202-468.766 468.766zM160.496 864.628l11.742-43.822 32.080 32.080-43.822 11.742z",paintbrush:"M946.58 293.66c12.704-12.708 15.072-31.836 7.108-46.938-1.838-3.524-4.23-6.83-7.19-9.79-0.282-0.282-0.588-0.52-0.876-0.792l-129.338-128.654c-0.046-0.046-0.084-0.098-0.13-0.144-7.814-7.812-18.056-11.718-28.296-11.714-10.24 0-20.48 3.906-28.292 11.714-0.064 0.066-0.12 0.138-0.184 0.206l-557.048 557.048c-2.194 2.192-4.042 4.59-5.622 7.11-70.624 87.486-17.922 195.43-174.738 239.554 0 0 64.758 18.11 144.33 18.11 74.374 0 161.678-15.824 221.23-77.020 0.394-0.364 0.808-0.696 1.192-1.078l1.734-1.734c0.852-0.798 1.678-1.578 2.504-2.426 0.348-0.356 0.668-0.728 1.010-1.086l168.756-168.756c1.126-0.906 2.224-1.872 3.272-2.918 1.044-1.044 2.008-2.14 2.914-3.266l375.212-375.212c0.834-0.706 1.664-1.424 2.452-2.214zM537.462 589.402l-73.594-73.206 324.068-324.064 73.594 73.2-324.068 324.070zM388.178 667.684c-13.288-13.632-28.584-23.974-44.78-31.016l63.902-63.902 73.596 73.204-64.246 64.248c-6.498-15.23-15.964-29.698-28.472-42.534zM229.848 791.928c8.294-30.346 14.852-54.332 32.416-73.862 0.83-0.864 2.664-2.702 4.26-4.286 8.030-6.792 17.534-8.246 24.198-8.246 14.386 0 29.026 6.554 40.162 17.98 19.592 20.106 21.934 49.238 5.596 66.874l-1.712 1.712c-0.798 0.752-1.612 1.524-2.462 2.354l-0.86 0.84-0.834 0.864c-30.666 31.79-75.914 45.424-118.104 50.542 7.53-18.888 12.598-37.426 17.34-54.772z",close:"M150 150a512 512 0 11724 724 512 512 0 01-724-724zm69.3 64.2A418.5 418.5 0 0095.9 512a418.5 418.5 0 00123.4 297.8A418.5 418.5 0 00517 933.2 418.5 418.5 0 00815 809.8 418.5 418.5 0 00938.4 512 418.5 418.5 0 00815 214.2 418.5 418.5 0 00517 90.8a418.5 418.5 0 00-297.8 123.4zM655 304a46 46 0 0165 65L577 512l143 143a46 46 0 11-65 65L512 577 369 720a46 46 0 11-65-65l143-143-143-143a46 46 0 0165-65l143 143 143-143z",closeAlt:"M586.7 512L936 861.4a52.8 52.8 0 0 1-74.6 74.7L512 586.7 162.6 936A52.8 52.8 0 0 1 88 861.4L437.3 512 88 162.6A52.8 52.8 0 1 1 162.6 88L512 437.3 861.4 88a52.8 52.8 0 1 1 74.7 74.7L586.7 512z",trash:"M919.5 225.208h-215.5v-120.080c0-20.344-15.192-37.096-34.836-39.632-1.696-0.216-3.41-0.372-5.164-0.372h-304.004c-1.754 0-3.468 0.152-5.164 0.372-19.644 2.54-34.836 19.292-34.836 39.628v120.084h-215.996c-22.090 0-40 17.912-40 40.002 0 22.092 17.91 40 40 40h27.216l53.916 615.914h0.214c0 22.092 17.91 40 40 40h573.372c22.094 0 40-17.91 40-40h0.148l53.916-615.914h26.716c22.090 0 40-17.91 40-40s-17.908-40.002-39.998-40.002zM399.996 145.126h224.004v80.082h-224.004v-80.082zM762.062 881.124h-500.124l-50.414-575.912h600.954l-50.416 575.912zM632.004 697.124v-240c-0.004-22.092 17.906-40.002 40-40.002 22.090 0.002 40 17.908 40 40.002l-0.004 240.002c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.906-40-40zM311.996 697.124v-240c-0.004-22.092 17.906-40.002 40-40.002 22.090 0.002 40 17.908 40 40.002l-0.004 240.002c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.906-40-40zM472 697.124v-240c-0.004-22.092 17.906-40.002 40-40.002 22.090 0.002 40 17.908 40 40.002l-0.004 240.002c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.906-40-40z",cross:"M1013.286 955.716l-443.72-443.716 443.718-443.718c15.622-15.622 15.62-40.948-0.004-56.566-15.618-15.622-40.942-15.622-56.562 0l-443.716 443.718-443.72-443.718c-15.62-15.624-40.946-15.622-56.566 0-15.622 15.62-15.622 40.944 0 56.566l443.722 443.718-443.722 443.722c-15.622 15.618-15.62 40.942 0 56.56s40.948 15.622 56.566 0l443.72-443.718 443.722 443.718c15.618 15.624 40.942 15.622 56.56 0 15.62-15.618 15.622-40.944 0.002-56.566z",delete:"M874 150A512 512 0 10150 874 512 512 0 00874 150zm-659.4 64.6A417.8 417.8 0 01512 91.4c97 0 188.9 32.6 263.3 92.6L184 775.3A417.4 417.4 0 0191.4 512c0-112.4 43.7-218 123.2-297.4zm594.8 594.8A417.8 417.8 0 01512 932.6c-97 0-189-32.7-263.3-92.6L840 248.7A417.4 417.4 0 01932.6 512c0 112.3-43.8 218-123.2 297.4z",add:"M512-.2a512 512 0 110 1024 512 512 0 010-1024zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 511.8c0 112.4 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.4c112.3 0 218-43.8 297.4-123.2a417.8 417.8 0 00123.2-297.4c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.2zm1.1 129.2a45.7 45.7 0 0145.7 45.7v201.1H760a45.7 45.7 0 010 91.5H558.8v201.1a45.7 45.7 0 11-91.4 0V558.7H266.3a45.7 45.7 0 110-91.5h201.1V266.1a45.7 45.7 0 0145.7-45.7z",subtract:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm4 94A418 418 0 0094 515a418 418 0 00422 422 418 418 0 00421-422A418 418 0 00516 94zm244 372a46 46 0 010 92H264a46 46 0 110-92z",plus:"M921.002 473h-368.008v-368.004c0.002-22.090-17.906-39.996-39.996-39.996-22.088 0-39.998 17.91-39.998 40v368h-368.002c-22.094 0-40 17.908-39.998 40-0.002 22.090 17.904 39.996 39.996 39.996l368.004-0.002v368.010c0 22.094 17.908 40 40 39.996 22.090 0.004 39.996-17.902 39.996-39.996v-368.010h368.010c22.090 0.002 39.994-17.906 39.994-39.996-0-22.088-17.908-39.998-39.998-39.998z",document:"M764 1c12 0 24 4 32 13l129 132c9 8 13 20 13 31v802c0 24-20 44-45 44H131c-25 0-45-20-45-44V45c0-24 20-44 45-44h633zm-48 89H175v844h674l-1-707h-87c-22 0-40-15-44-36v-8l-1-93zm-16 584a45 45 0 0 1 8 89H324a45 45 0 0 1-8-88l8-1h376zm0-187a45 45 0 0 1 8 89l-8 1H324a45 45 0 0 1-8-89l8-1h376zm0-186a45 45 0 0 1 8 88l-8 1H324a45 45 0 0 1-8-89h384z",folder:"M571 274h327c23 0 41 18 41 41v488c0 22-18 40-41 40H126c-23 0-41-18-41-40V242c0-34 27-61 61-61h317c18 0 35 7 47 21l61 72zm-119-8H170v492h684V359H531l-79-93z",component:"M171 469h298V171H246c-42 0-75 33-75 75v223zm0 86v223c0 42 33 75 75 75h223V555H171zm682-86V246c0-42-33-75-75-75H555v298h298zm0 86H555v298h223c42 0 75-33 75-75V555zM256 85h512c94 0 171 77 171 171v512c0 94-77 171-171 171H256c-94 0-171-77-171-171V256c0-94 77-171 171-171z",calendar:"M920.036 160.030h-112.004v-72c0-22.092-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v72.004h-432v-72c0-22.092-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v72.004h-112.004c-1.38 0-2.746 0.070-4.090 0.208-20.168 2.046-35.91 19.080-35.91 39.792v688c0 22.090 17.91 40 40 40h816.008c22.098 0 40-17.91 40-40v-688c0-22.094-17.908-40-40-40zM356.032 848.026h-212.004v-142.662h212.004v142.662zM356.032 665.364h-212.004v-162.664h212.004v162.664zM356.032 462.7h-212.004v-142.662h212.004v142.662zM628.032 848.026h-232v-142.662h232v142.662zM628.032 665.364h-232v-162.664h232v162.664zM628.032 462.7h-232v-142.662h232v142.662zM880.036 848.026h-212.004v-142.662h212.004v142.662zM880.036 665.364h-212.004v-162.664h212.004v162.664zM880.036 462.7h-212.004v-142.662h212.004v142.662z",graphline:"M820.536 489.23c-15.624 15.618-40.954 15.618-56.57 0l-42.006-42.002-169.898 169.9c-7.822 7.82-18.076 11.722-28.326 11.712-10.248 0.008-20.496-3.894-28.314-11.712l-96.178-96.182-140.67 140.674c-15.624 15.622-40.954 15.618-56.57-0.004-15.624-15.618-15.624-40.946 0-56.566l168.946-168.946c7.812-7.816 18.058-11.72 28.3-11.716 10.238-0.002 20.476 3.904 28.29 11.716l96.204 96.204 168.91-168.91c0.33-0.356 0.626-0.73 0.972-1.076 7.824-7.824 18.084-11.726 28.34-11.712 10.252-0.012 20.508 3.892 28.332 11.714 0.346 0.346 0.64 0.72 0.972 1.074l69.266 69.266c15.62 15.618 15.616 40.942 0 56.566zM880 144h-736v736h736v-736zM920 64c22.092 0 40 17.908 40 40v816c0 22.092-17.908 40-40 40h-816c-22.092 0-40-17.908-40-40v-816c0-22.092 17.908-40 40-40h816z",docchart:"M919.938 128h-816.008c-1.38 0-2.746 0.070-4.090 0.208-20.168 2.046-35.91 19.080-35.91 39.792v688c0 22.090 17.91 40 40 40h816.008c22.098 0 40-17.91 40-40v-688c0-22.094-17.906-40-40-40zM395.934 470.67h232v162.664h-232v-162.664zM355.934 633.334h-212.004v-162.664h212.004v162.664zM395.934 430.67v-142.662h232v142.662h-232zM667.934 470.67h212.004v162.664h-212.004v-162.664zM667.934 430.67v-142.662h212.004v142.662h-212.004zM355.934 288.008v142.662h-212.004v-142.662h212.004zM143.93 673.334h212.004v142.662h-212.004v-142.662zM395.934 673.334h232v142.662h-232v-142.662zM667.934 673.334h212.004v142.662h-212.004v-142.662z",doclist:"M919.938 128h-816.008c-1.38 0-2.746 0.070-4.090 0.208-20.168 2.046-35.91 19.080-35.91 39.792v688c0 22.090 17.91 40 40 40h816.008c22.098 0 40-17.91 40-40v-688c-0-22.094-17.906-40-40-40zM143.93 288.008h736.008v527.988h-736.008v-527.988zM248 400.004c0-22.090 17.91-40 40-40h448c22.094 0 40 17.906 40 40 0 22.090-17.906 40-40 40h-448c-22.090 0-40-17.91-40-40zM776 552.002c0 22.094-17.906 40-40 40h-448c-22.090 0-40-17.906-40-40 0-22.090 17.91-40 40-40h448c22.094 0 40 17.91 40 40zM776 704c0 22.094-17.906 40-40 40h-448c-22.090 0-40-17.906-40-40 0-22.090 17.91-40 40-40h448c22.094 0 40 17.91 40 40z",category:"M925.224 256.37c-1.694-0.216-3.408-0.37-5.162-0.37h-816c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v624c0 22.094 17.91 40 40 40h816c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-624.004c0-20.342-15.19-37.096-34.838-39.632zM144.062 880v-544h736v544h-736zM896.11 180c0 11.044-8.954 20-20 20h-728.032c-11.046 0-20-8.956-20-20v0c0-11.046 8.954-20 20-20h728.032c11.046 0 20 8.954 20 20v0zM832.094 84c0 11.044-8.954 20-20 20h-600c-11.046 0-20-8.956-20-20v0c0-11.046 8.954-20 20-20h600c11.046 0 20 8.954 20 20v0z",grid:"M437.162 552.368c-1.694-0.216-3.408-0.37-5.162-0.37h-263.978c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v264.040c0 22.094 17.91 40 40 40h263.978c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-264.044c0-20.34-15.19-37.094-34.838-39.632zM208.022 816.038v-184.040h183.978v184.040h-183.978zM437.162 128.4c-1.694-0.216-3.408-0.37-5.162-0.37h-263.978c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v263.968c0 22.094 17.91 40 40 40h263.978c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-263.972c0-20.342-15.19-37.096-34.838-39.632zM208.022 392v-183.968h183.978v183.968h-183.978zM861.212 552.368c-1.694-0.216-3.408-0.37-5.162-0.37h-264.050c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v264.040c0 22.094 17.91 40 40 40h264.048c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-264.044c0.002-20.34-15.19-37.094-34.836-39.632zM632 816.038v-184.040h184.048v184.040h-184.048zM861.212 128.4c-1.694-0.216-3.408-0.37-5.162-0.37h-264.050c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v263.968c0 22.094 17.91 40 40 40h264.048c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-263.972c0.002-20.342-15.19-37.096-34.836-39.632zM632 392v-183.968h184.048v183.968h-184.048z",copy:"M960.132 210.186c0-0.444-0.050-0.874-0.066-1.312-0.024-0.684-0.044-1.366-0.104-2.046-0.060-0.74-0.158-1.468-0.26-2.198-0.080-0.564-0.156-1.128-0.258-1.692-0.146-0.792-0.328-1.566-0.518-2.34-0.124-0.508-0.244-1.014-0.39-1.518-0.224-0.784-0.488-1.548-0.76-2.312-0.176-0.49-0.344-0.98-0.538-1.466-0.302-0.754-0.642-1.486-0.988-2.216-0.224-0.472-0.436-0.946-0.68-1.41-0.398-0.762-0.838-1.496-1.284-2.228-0.242-0.396-0.466-0.798-0.722-1.19-0.608-0.924-1.262-1.81-1.942-2.678-0.132-0.168-0.248-0.346-0.382-0.512-0.98-1.212-2.028-2.364-3.14-3.454l-104.020-104.9c-3.714-3.714-7.988-6.518-12.542-8.464-0.088-0.040-0.174-0.084-0.262-0.122-0.994-0.418-2.006-0.774-3.024-1.108-0.242-0.080-0.474-0.176-0.72-0.252-0.942-0.288-1.894-0.516-2.854-0.732-0.334-0.076-0.658-0.176-0.996-0.244-0.998-0.2-2.004-0.336-3.010-0.458-0.306-0.038-0.606-0.1-0.912-0.13-1.322-0.13-2.65-0.204-3.976-0.204h-391.784c-1.754 0-3.468 0.152-5.162 0.372-19.646 2.538-34.838 19.29-34.838 39.628v145.516h-279.874c-1.754 0-3.468 0.152-5.162 0.372-19.646 2.538-34.838 19.29-34.838 39.628v628.28c0 22.094 17.91 40 40 40h496.118c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 2.084-3.466 2.128-3.548 2.992-5.612 4.704-12.010 4.704-18.808 0 0 0 0 0-0.004v-145.518h279.874c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 2.084-3.466 2.128-3.548 2.992-5.612 4.704-12.010 4.704-18.808 0 0 0 0 0-0.004v-521.828c0.008-0.23-0.016-0.458-0.014-0.688 0.002-0.202 0.028-0.39 0.028-0.584zM144.124 878.792v-548.278h311.752v65.186c0 22.090 17.91 40 40 40h64.366v443.092h-416.118zM640.244 693.278v-296.31c0.006-0.23-0.018-0.458-0.014-0.688 0.004-0.196 0.030-0.382 0.030-0.578 0-0.444-0.052-0.874-0.066-1.312-0.024-0.684-0.044-1.366-0.104-2.046-0.062-0.74-0.16-1.468-0.262-2.198-0.078-0.564-0.152-1.128-0.258-1.692-0.144-0.792-0.324-1.566-0.516-2.34-0.124-0.508-0.246-1.014-0.39-1.518-0.226-0.784-0.488-1.548-0.76-2.312-0.174-0.49-0.342-0.98-0.538-1.466-0.302-0.754-0.64-1.486-0.988-2.216-0.222-0.472-0.438-0.946-0.68-1.41-0.398-0.762-0.838-1.496-1.284-2.228-0.242-0.396-0.466-0.798-0.724-1.19-0.606-0.924-1.262-1.81-1.942-2.678-0.13-0.168-0.246-0.346-0.382-0.512-0.978-1.212-2.028-2.364-3.138-3.454l-104.020-104.9c-3.714-3.714-7.988-6.518-12.542-8.464-0.088-0.040-0.172-0.084-0.262-0.122-0.994-0.418-2.004-0.774-3.024-1.108-0.242-0.080-0.476-0.176-0.72-0.252-0.942-0.288-1.896-0.516-2.854-0.732-0.334-0.076-0.658-0.176-0.996-0.244-0.998-0.2-2.004-0.336-3.012-0.458-0.304-0.038-0.602-0.1-0.91-0.13-1.322-0.13-2.648-0.204-3.976-0.204h-31.916v-105.516h311.752v65.186c0 22.090 17.91 40 40 40h64.366v443.092h-239.87z",certificate:"M832.032 384.032c0-176.728-143.266-320-320-320s-320 143.272-320 320c0 104.662 50.25 197.584 127.938 255.966v311.5c0 16.174 9.74 30.756 24.682 36.952 4.954 2.052 10.152 3.050 15.31 3.050 10.402 0 20.626-4.060 28.276-11.702l123.726-123.58 123.772 123.332c11.452 11.412 28.644 14.804 43.574 8.608 14.93-6.2 24.66-20.776 24.66-36.942v-311.124c77.756-58.376 128.062-151.342 128.062-256.060zM272.032 384.032c0-64.106 24.964-124.374 70.292-169.706 45.33-45.33 105.6-70.294 169.708-70.294s124.376 24.964 169.708 70.294c45.33 45.332 70.292 105.6 70.292 169.706s-24.964 124.376-70.292 169.704c-45.33 45.33-105.6 70.294-169.708 70.294s-124.376-24.964-169.708-70.294c-45.328-45.328-70.292-105.598-70.292-169.704zM623.968 854.89l-83.804-83.508c-15.622-15.564-40.898-15.552-56.502 0.034l-83.694 83.594v-171.17c34.878 13.042 72.632 20.192 112.062 20.192 39.382 0 77.094-7.13 111.938-20.142v171z",print:"M925.922 304.496c-1.698-0.218-3.41-0.37-5.166-0.37h-88.64v-93.548c0.006-0.21-0.016-0.422-0.014-0.634 0.004-0.212 0.036-0.416 0.036-0.63 0-0.478-0.054-0.942-0.074-1.416-0.024-0.636-0.042-1.27-0.094-1.906-0.066-0.776-0.168-1.54-0.276-2.302-0.074-0.534-0.146-1.066-0.242-1.596-0.15-0.82-0.338-1.624-0.538-2.424-0.12-0.48-0.23-0.958-0.37-1.436-0.234-0.812-0.506-1.608-0.792-2.398-0.164-0.462-0.322-0.924-0.504-1.38-0.318-0.788-0.668-1.552-1.036-2.316-0.208-0.436-0.406-0.88-0.628-1.312-0.424-0.802-0.88-1.574-1.352-2.344-0.218-0.358-0.422-0.724-0.656-1.078-0.636-0.972-1.324-1.91-2.042-2.82-0.098-0.124-0.182-0.252-0.282-0.376-0.988-1.224-2.048-2.388-3.172-3.488l-104.004-104.882c-3.696-3.696-7.948-6.486-12.466-8.432-0.122-0.050-0.224-0.11-0.344-0.16-0.974-0.41-1.966-0.756-2.962-1.084-0.262-0.086-0.512-0.19-0.78-0.272-0.926-0.284-1.87-0.506-2.812-0.722-0.346-0.080-0.684-0.182-1.034-0.252-0.988-0.198-1.988-0.334-2.988-0.456-0.31-0.040-0.618-0.102-0.93-0.134-1.324-0.132-2.652-0.204-3.978-0.204h-455.67c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.29-34.838 39.63v200h-87.356c-1.754 0-3.468 0.152-5.164 0.37-19.644 2.538-34.836 19.29-34.836 39.63v320c0 22.094 17.91 40 40 40h87.368v216c0 22.094 17.91 40 40 40h560.006c13.81 0 25.982-6.996 33.17-17.636 0.102-0.146 0.184-0.306 0.282-0.458 0.612-0.922 1.2-1.86 1.722-2.836 0.046-0.082 0.080-0.17 0.124-0.254 2.994-5.612 4.704-12.008 4.704-18.808 0 0 0 0 0-0.004v-216h88.624c13.808 0 25.982-6.996 33.168-17.636 0.104-0.148 0.186-0.308 0.286-0.458 0.612-0.922 1.198-1.862 1.72-2.836 0.046-0.082 0.082-0.172 0.124-0.256 2.994-5.61 4.702-12.008 4.702-18.806 0 0 0 0 0-0.004v-320c0-20.344-15.186-37.096-34.834-39.636zM272.116 144.128h375.634v65.186c0 1.38 0.070 2.746 0.208 4.090 2.048 20.168 19.080 35.91 39.792 35.91h64.366v54.812h-480v-159.998zM272.124 880.126v-327.998h480.006v327.998zM880.756 384.128v239.998h-48.624v-111.998c0-20.34-15.19-37.092-34.836-39.63-1.694-0.218-565.17-0.372-565.17-0.372-1.754 0-3.468 0.152-5.162 0.372-19.646 2.538-34.838 19.29-34.838 39.628v112h-47.368v-239.998zM664.124 608.126c22.092 0 40 17.908 40 40s-17.908 40-40 40h-304c-22.092 0-40-17.908-40-40s17.908-40 40-40h304zM704.124 784.126c0 22.092-17.908 40-40 40h-304c-22.092 0-40-17.908-40-40s17.908-40 40-40h304c22.092 0 40 17.908 40 40z",listunordered:"M961 233c0 22.090-17.908 40-40 40h-607.996c-22.090 0-40-17.908-40-40v0c0-22.090 17.908-40.002 40-40.002h607.996c22.092 0 40 17.912 40 40.002v0zM961 793c0-22.090-17.908-40.002-40-40.002h-607.996c-22.092 0-40 17.912-40 40.002v0c0 22.092 17.91 40 40 40h607.996c22.092 0 40-17.91 40-40v0zM961 606.332c0-22.090-17.908-40-40-40h-607.996c-22.092 0-40 17.91-40 40v0c0 22.094 17.91 40 40 40h607.996c22.092 0 40-17.91 40-40v0zM961 419.668c0-22.090-17.908-40.004-40-40.004h-607.996c-22.092 0-40 17.914-40 40.004v0c0 22.090 17.91 40 40 40h607.996c22.092-0 40-17.91 40-40v0zM129 168.998c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zM129 728.998c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zM129 542.332c-35.346 0-64 28.652-64 64 0 35.344 28.654 64 64 64s64-28.656 64-64c0-35.348-28.654-64-64-64zM129 355.664c-35.346 0-64 28.656-64 64 0 35.348 28.654 64 64 64s64-28.652 64-64c0-35.344-28.654-64-64-64z",graphbar:"M324.832 513c22.090 0 40 17.91 40 40v304c0 22.090-17.906 40-40 40v0c-22.090 0-40-17.906-40-40v-304c0-22.090 17.91-40 40-40v0zM884.832 128.998c-22.090 0-40 17.906-40 40v688.002c0 22.094 17.91 40 40 40v0c22.094 0 40-17.91 40-40v-688.002c0-22.094-17.91-40-40-40v0zM698.164 256.998c-22.090 0-40 17.91-40 40v560.002c0 22.094 17.91 40 40 40v0c22.094 0 40-17.91 40-40v-560.002c0-22.090-17.91-40-40-40v0zM511.5 384.998c-22.090 0-40.004 17.91-40.004 40v432.002c0 22.094 17.914 40 40.004 40v0c22.090 0 40-17.91 40-40v-432.002c0-22.090-17.91-40-40-40v0zM139.168 641c-22.090 0-40 17.91-40 40v176c0 22.094 17.91 40 40 40v0c22.094 0 40-17.91 40-40v-176c0-22.090-17.91-40-40-40v0z",menu:"M960 232c0 22.092-17.908 40-40.002 40h-815.996c-22.092 0-40-17.908-40-40v0c0-22.090 17.908-40 40-40h815.998c22.092 0 40 17.91 40 40v0zM768 416c0 22.090-17.908 40-40 40h-624c-22.090 0-40-17.908-40-40v0c0-22.090 17.908-40.002 40-40.002h624c22.092 0.002 40 17.914 40 40.002v0zM832 608c0 22.092-17.906 40.002-40 40.002h-688c-22.090 0-40-17.91-40-40.002v0c0-22.090 17.908-40 40-40h688c22.094 0 40 17.912 40 40v0zM576 792c0 22.094-17.91 40-40.002 40h-431.998c-22.090 0-40-17.906-40-40v0c0-22.094 17.908-40.002 40-40.002h432c22.094 0.002 40 17.912 40 40.002v0z",filter:"M962.030 168.032c0 22.092-17.908 40-40.002 40h-815.996c-22.092 0-40-17.908-40-40v0c0-22.090 17.908-40 40-40h815.998c22.092 0 40 17.908 40 40v0zM770 544.034c0 22.090-17.908 40-40 40h-432c-22.090 0-40-17.908-40-40v0c0-22.090 17.908-40.002 40-40.002h432c22.090 0 40 17.912 40 40.002v0zM642.030 728.032c0 22.094-17.91 40-40.002 40h-175.998c-22.090 0-40-17.906-40-40v0c0-22.094 17.908-40.002 40-40.002h176c22.094 0.002 40 17.91 40 40.002v0zM866 352.030c0 22.092-17.906 40.002-40 40.002h-624c-22.090 0-40-17.91-40-40.002v0c0-22.090 17.908-40 40-40h624c22.092 0 40 17.91 40 40v0zM512.030 928.034c22.090 0 40.004-17.906 40.004-40v0c0-22.090-17.914-40-40.004-40v0c-22.090 0-40 17.91-40 40v0c0 22.092 17.91 40 40 40v0z",ellipsis:"M184 393c66.274 0 120 53.73 120 120s-53.726 120-120 120c-66.286 0-120-53.73-120-120s53.714-120 120-120zM512 393c66.272 0 120 53.73 120 120s-53.728 120-120 120c-66.286 0-120-53.73-120-120s53.714-120 120-120zM840 393c66.272 0 120 53.73 120 120s-53.728 120-120 120c-66.286 0-120-53.73-120-120s53.714-120 120-120z",cog:"M512 288a224 224 0 0 0 0 448h2a225 225 0 0 0 52-7 47 47 0 0 0-23-90 130 130 0 0 1-31 3 131 131 0 1 1 127-101v1a47 47 0 1 0 91 19 224 224 0 0 0-218-273zM409 0c-67 14-131 40-186 77v98c0 13-6 25-15 33-8 9-20 15-33 15H77C40 278 14 341 0 409l69 68c9 10 14 22 13 34 1 13-4 25-13 34L0 614c14 68 41 132 78 188h97c13 0 25 6 33 15 9 8 15 20 15 33v97c55 37 119 63 187 77l68-69a46 46 0 0 1 36-13c11 0 23 4 32 13l69 69c68-14 131-40 186-77v-98c0-13 6-25 15-34 8-8 20-14 33-14h98c37-56 63-119 77-186l-69-70c-10-9-14-21-14-34 0-12 4-24 14-34l69-69c-14-67-40-129-77-184h-98c-13 0-25-6-33-15-9-8-15-20-15-33V77C746 40 683 14 615 0l-69 69a46 46 0 0 1-35 14c-11 0-23-5-33-14L409 0zm-28 103l32 32c26 26 61 41 98 41h3c37 0 72-15 98-41l32-31c22 7 43 16 64 26v46c0 37 15 73 42 99 26 27 62 42 99 42h45c11 20 19 41 26 63l-31 31c-26 27-41 63-41 100 0 38 15 74 41 100l32 32c-8 22-17 44-27 65h-45c-37 0-73 15-99 42-27 26-42 62-42 99v44c-21 11-42 20-65 27l-31-31c-26-26-61-41-98-41h-3c-37 0-72 15-98 41l-32 32c-22-8-44-17-65-28v-43c0-37-15-73-42-99-26-27-62-42-99-42h-44c-11-21-20-44-28-67l32-31c26-26 41-62 40-100 1-37-14-73-40-100l-31-30c7-23 16-44 26-65h45c37 0 73-15 99-42 27-26 42-62 42-99v-45c21-10 43-19 65-27z",wrench:"M959.438 274.25c0-22.090-17.914-40-40.004-40-11.16 0-21.242 4.582-28.496 11.954l-60.152 60.148c-15.622 15.622-40.946 15.618-56.566-0.004l-56.57-56.566c-15.622-15.622-15.622-40.95 0-56.57l59.55-59.546c7.75-7.292 12.614-17.618 12.614-29.102 0-22.090-17.914-40-40.004-40-1.598 0-3.164 0.122-4.71 0.304-0.012 0-0.020-0.008-0.032-0.004-94.958 11.586-168.504 92.492-168.504 190.574 0 23.528 4.238 46.058 11.98 66.886l-503.078 503.074c-1.496 1.496-2.8 3.102-4.012 4.758-10.914 13.676-17.454 30.992-17.454 49.848 0 44.188 35.818 79.996 79.996 79.996 18.906 0 36.27-6.574 49.964-17.54 1.614-1.188 3.18-2.464 4.64-3.926l503.078-503.078c20.828 7.742 43.36 11.98 66.882 11.98 97.988 0 178.828-73.402 190.54-168.222v-0.012c0.2-1.628 0.338-3.272 0.338-4.952zM151.996 912c-22.090 0-40-17.906-40-40 0-22.090 17.91-40 40-40s40.004 17.91 40.004 40c0 22.094-17.914 40-40.004 40z",nut:"M512 286a229 229 0 0 0-233 226c0 124 104 225 233 225h2a240 240 0 0 0 54-7c21-5 35-24 35-45a48 48 0 0 0-59-45 139 139 0 0 1-32 3c-75 0-136-59-136-131 0-73 61-132 136-132a134 134 0 0 1 132 161v1l-2 9c0 26 22 47 49 47a48 48 0 0 0 47-37c4-16 6-33 6-49 0-125-104-226-232-226m0-286c-16 0-33 4-47 12L90 223a91 91 0 0 0-47 79v420c0 33 18 63 47 79l375 211a96 96 0 0 0 94 0l375-211c29-16 47-46 47-79V302c0-33-18-63-47-79L559 12c-14-8-31-12-47-12m0 91l375 211v420L512 933 137 722V302L512 91",camera:"M925.164 208.372c-1.694-0.218-3.408-0.372-5.162-0.372h-471.968v-39.962c0-20.344-15.192-37.096-34.836-39.63-1.696-0.218-3.41-0.374-5.164-0.374h-176.004c-1.754 0-3.468 0.152-5.164 0.374-19.644 2.538-34.836 19.29-34.836 39.626v39.966h-88.032c-1.754 0-3.468 0.152-5.162 0.372-19.646 2.536-34.838 19.29-34.838 39.628v528c0 22.094 17.91 40 40 40h816.004c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.46 0.612-0.922 1.2-1.86 1.722-2.836 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-528.004c-0-20.342-15.192-37.096-34.838-39.63zM880.002 736h-736.004v-448h736.004v448zM512 402.522c60.368 0 109.478 49.112 109.478 109.478s-49.112 109.478-109.478 109.478-109.478-49.112-109.478-109.478 49.11-109.478 109.478-109.478zM512 322.522c-104.644 0-189.478 84.832-189.478 189.478 0 104.644 84.834 189.478 189.478 189.478 104.646 0 189.478-84.834 189.478-189.478 0-104.646-84.832-189.478-189.478-189.478v0z",eye:"M1008.714 490.522c-9.002-12.594-223.276-308.808-496.684-308.808-273.444 0-487.682 296.214-496.684 308.808l-15.316 21.49 15.316 21.466c9.002 12.618 223.24 308.808 496.684 308.808 273.408 0 487.682-296.19 496.684-308.808l15.316-21.466-15.316-21.49zM807.68 631.688c-46 39.142-92.558 70.064-138.382 91.904-53.874 25.676-106.786 38.694-157.266 38.694-50.49 0-103.406-13.018-157.282-38.696-45.826-21.838-92.382-52.758-138.378-91.902-53.708-45.706-94.302-92.122-116.61-119.672 22.36-27.602 63.028-74.094 116.612-119.696 45.996-39.146 92.554-70.068 138.378-91.908 53.876-25.678 106.792-38.698 157.28-38.698 50.48 0 103.39 13.020 157.264 38.696 45.824 21.842 92.382 52.764 138.382 91.91 53.602 45.614 94.264 92.098 116.624 119.696-22.306 27.544-62.898 73.954-116.622 119.672zM692.032 512.036c0 99.41-80.588 180-180 180s-180-80.59-180-180c0-99.406 80.588-179.998 180-179.998s180 80.59 180 179.998z",eyeclose:"M75.744 948.314c-15.62-15.62-15.62-40.948 0-56.564l816-816c15.626-15.624 40.95-15.624 56.57 0 15.624 15.62 15.626 40.946 0.004 56.57l-816 815.994c-15.62 15.62-40.95 15.62-56.572 0zM332.032 512.034c0 20.104 3.296 39.434 9.376 57.484l228.104-228.106c-18.050-6.080-37.38-9.376-57.48-9.376-99.412-0.004-180 80.588-180 179.996zM692.032 512.034c0-20.1-3.3-39.432-9.38-57.484l-228.106 228.11c18.052 6.080 37.384 9.376 57.488 9.376 99.412 0 180-80.59 180-180zM1008.716 490.522c-4.98-6.968-72.86-100.8-178.81-183.22l-57.040 57.040c11.624 8.8 23.24 18.128 34.814 27.98 53.6 45.614 94.264 92.1 116.624 119.696-22.304 27.544-62.896 73.954-116.62 119.672-46 39.14-92.56 70.064-138.384 91.904-53.872 25.676-106.786 38.694-157.266 38.694-37.448 0-76.234-7.18-115.76-21.36l-61.486 61.49c54.786 24.22 114.45 39.87 177.248 39.87 273.41 0 487.684-296.19 496.686-308.808l15.316-21.468-15.316-21.49zM216.372 631.69c-53.708-45.706-94.3-92.12-116.61-119.672 22.36-27.6 63.028-74.094 116.612-119.696 46-39.146 92.554-70.068 138.38-91.908 53.874-25.68 106.79-38.7 157.28-38.7 37.46 0 76.264 7.188 115.8 21.38l61.484-61.484c-54.796-24.236-114.474-39.896-177.286-39.896-273.446 0-487.684 296.214-496.686 308.808l-15.316 21.49 15.314 21.466c4.98 6.984 72.866 100.84 178.84 183.26l57.040-57.040c-11.64-8.806-23.264-18.144-34.854-28.008z",photo:"M920 64h-816c-22.092 0-40 17.91-40 40v816c0 22.094 17.908 40 40 40h816c22.092 0 40-17.906 40-40v-816c0-22.090-17.908-40-40-40zM880 144v449.782l-235.39-235.392c-7.502-7.5-17.676-11.714-28.286-11.714s-20.784 4.214-28.286 11.716l-169.804 169.804-40.958-40.958c-15.622-15.622-40.95-15.622-56.57 0l-176.708 176.708v-519.946h736.002zM144 880v-102.914l204.992-204.994 215.972 215.974c7.81 7.81 18.048 11.714 28.286 11.714s20.474-3.904 28.286-11.714c15.62-15.622 15.62-40.95 0-56.57l-146.732-146.73 141.522-141.524 263.676 263.68v173.078h-736.002zM356.174 400.542c52.466 0 95-42.536 95-95s-42.534-95-95-95-95 42.536-95 95 42.534 95 95 95zM356.174 250.542c30.326 0 55 24.672 55 55s-24.674 55-55 55-55-24.672-55-55 24.674-55 55-55z",video:"M926.050 273.364c-9.556 0-20.574 3.8-32.278 11.812l-189.738 129.894v-151.068c0-20.342-15.192-37.094-34.838-39.63-1.694-0.218-3.408-0.372-5.162-0.372h-560.002c-1.754 0-3.468 0.152-5.162 0.372-19.646 2.538-34.838 19.29-34.838 39.628v496.002c0 22.092 17.91 40 40 40h560.004c13.808 0 25.98-6.998 33.168-17.638 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.922 1.2-1.862 1.722-2.836 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.612 4.704-12.010 4.704-18.81v-151.066l189.738 129.886c11.706 8.012 22.718 11.812 32.278 11.812 20.092 0 33.736-16.806 33.736-46.622v-384.032c0-29.816-13.644-46.62-33.738-46.62zM624.036 720h-480.004v-415.998h480.004v415.998zM879.788 632.3l-175.728-120.296 175.728-120.302v240.598zM240.688 663.534c-22.090 0-40-17.906-40-40v0c0-22.090 17.91-40 40-40v0c22.090 0 40.004 17.91 40.004 40v0c0 22.092-17.914 40-40.004 40v0z",speaker:"M692.070 580.856c18.156-18.156 28.152-42.266 28.152-67.89-0.008-25.622-10.002-49.726-28.148-67.872-8.476-8.478-18.308-15.188-29-19.922-0.222-0.098-0.408-0.22-0.566-0.364-13.294-6.5-22.476-20.116-22.476-35.914 0-22.090 17.91-40 40-40 5.774 0 11.246 1.248 16.204 3.45 0.016 0.006 0.026 0.008 0.040 0.016 19.292 8.656 37.036 20.832 52.368 36.164 33.254 33.254 51.574 77.446 51.58 124.43 0.006 46.996-18.31 91.204-51.58 124.472-15.064 15.062-32.45 27.074-51.344 35.7-0.154 0.070-0.286 0.112-0.434 0.176-5.124 2.382-10.812 3.75-16.832 3.75-22.090 0-40-17.906-40-40 0-16.196 9.644-30.112 23.488-36.402 0.156-0.11 0.32-0.216 0.516-0.304 10.314-4.712 19.81-11.268 28.032-19.49zM861.778 275.386c-47.824-47.824-107.946-79.588-173.204-92.242-0.356-0.078-0.712-0.146-1.072-0.214-0.060-0.012-0.124-0.026-0.186-0.038-0.506-0.096-0.976-0.162-1.422-0.208-1.918-0.282-3.868-0.476-5.864-0.476-22.090 0-40 17.91-40 40 0 19.024 13.292 34.91 31.084 38.968 0.352 0.128 0.728 0.244 1.162 0.326 48.7 9.268 95.226 32.748 132.934 70.452 99.972 99.972 100.054 261.984-0.002 362.040-37.684 37.684-84.152 61.14-132.788 70.426-0.084 0.016-0.144 0.046-0.224 0.066-18.338 3.644-32.166 19.816-32.166 39.222 0 22.094 17.91 40 40 40 2.776 0 5.484-0.286 8.102-0.822 0.094-0.018 0.172-0.018 0.27-0.038 65.32-12.626 125.496-44.406 173.376-92.286 131.008-131.008 131.008-344.172 0-475.176zM525.988 159.516v704.968c0 22.090-17.906 40-40 40-12.73 0-24.046-5.966-31.374-15.234l-51.056-61.722v0.216l-122.14-147.666h-177.386c-22.090 0-40-17.906-40-40v0 0-256c0-5.22 1.030-10.194 2.85-14.766 0.104-0.266 0.184-0.542 0.294-0.804 0.39-0.924 0.844-1.812 1.3-2.702 0.134-0.26 0.242-0.538 0.382-0.794 0.246-0.456 0.54-0.878 0.804-1.324 6.972-11.726 19.734-19.61 34.368-19.61h177.386l173.13-209.238c7.324-9.316 18.67-15.324 31.44-15.324 22.092-0 40.002 17.91 40.002 40zM445.988 270.826l-126.708 153.252h-175.248v176h175.248l19.832 23.998h0.17l106.708 129.112v-482.362z",phone:"M742.52 960c-76.266 0-163.184-32.364-258.338-96.194-73.798-49.504-136.41-106.904-175.938-146.34-43.282-43.222-105.612-111.376-156.842-190.682-66.576-103.062-95.348-196.038-85.518-276.344 8.952-73.326 50.674-134.292 120.664-176.304 10.95-6.63 23.76-10.134 37.054-10.134 32.752 0 71.124 23.354 120.764 73.494 36.434 36.802 70.108 79.22 89.472 106.644 46.698 66.176 60.686 107.352 48.286 142.136-12.638 35.538-35.534 55.704-52.25 70.428-5.662 5.006-9.95 8.854-13.070 12.262 4.040 7.542 11.744 19.868 26.054 37.476 42.388 52.076 90.548 89.024 111.972 100.874 3.308-2.96 7.11-7.168 12.352-13.152 14.87-16.81 35.062-39.636 70.482-52.28 7.978-2.842 16.498-4.276 25.35-4.276 44.172 0 108.804 44.078 155.246 81.056 45.834 36.494 103.292 90.498 127.104 132.612 22.602 39.596 14.982 68.64 4.596 86.006-48.138 80.296-119.862 122.718-207.44 122.718zM224.758 144.53c-47.558 29.426-73.566 67.28-79.468 115.618-7.494 61.224 17.17 136.326 73.308 223.226 49.902 77.252 112.994 144.35 146.16 177.472 30.296 30.222 91.906 88.17 163.988 136.524 81.738 54.83 153.662 82.63 213.772 82.63 58.618 0 103.506-26.526 137.138-81.076-0.47-1.536-1.532-4.062-3.854-8.132-14.584-25.794-57.006-69.202-105.642-108.156-58.776-47.074-96.708-63.894-106.756-64.982-15.348 5.826-25.020 16.758-36.178 29.372-12.542 14.318-28.31 32.316-55.476 41.528l-6.25 2.12h-6.598c-8.704 0-31.826 0-86.73-43.378-32.196-25.438-64.65-57.534-91.38-90.374-35.712-43.942-51.41-77.764-46.674-100.548l0.55-2.642 0.9-2.546c9.19-26 26.284-41.118 41.364-54.458 12.726-11.208 23.698-20.874 29.494-36.378-0.606-4.398-5.076-23.488-37.948-70.072-15.882-22.494-45.746-60.376-77.614-93.084-39.93-40.986-60.106-50.546-66.106-52.664z",flag:"M168 960.060c-22.092 0-40-17.908-40-40v-816.36c0-22.092 17.908-40 40-40h687.698c16.178 0 30.764 9.746 36.956 24.694 6.192 14.946 2.77 32.15-8.67 43.59l-188.918 188.922 189.218 189.216c11.44 11.442 14.862 28.646 8.67 43.592-6.192 14.948-20.776 24.694-36.956 24.694h-647.998v341.654c0 22.090-17.908 39.998-40 39.998zM208 498.406h551.428l-149.218-149.216c-15.622-15.622-15.622-40.95 0-56.568l148.918-148.922h-551.128v354.706z",pin:"M512 959.916c-13.36 0-25.84-6.672-33.262-17.782l-242.080-362.324c-0.12-0.176-0.236-0.356-0.354-0.536-36.394-54.5-55.63-118.042-55.63-183.804 0-182.696 148.632-331.324 331.326-331.324 182.696 0 331.328 148.628 331.328 331.324 0 60.71-16.554 119.98-47.906 171.652-0.758 1.528-1.618 3.016-2.578 4.45l-5.786 8.664c-0.054 0.082-0.112 0.164-0.168 0.246-0.042 0.070-0.104 0.16-0.148 0.23l-241.484 361.426c-7.422 11.106-19.898 17.778-33.258 17.778zM303.458 535.784l0.026 0.040c0.038 0.054 0.158 0.238 0.194 0.292l208.324 311.796 212.374-317.86c0.376-0.696 0.778-1.382 1.198-2.062 24.7-39.708 37.758-85.532 37.758-132.52 0-138.582-112.746-251.324-251.328-251.324s-251.326 112.742-251.326 251.324c0 50.054 14.674 98.39 42.432 139.782 0.114 0.176 0.232 0.356 0.348 0.532zM512 304.4c49.98 0 90.64 40.66 90.64 90.64 0 49.976-40.66 90.636-90.64 90.636s-90.64-40.66-90.64-90.636c0-49.98 40.66-90.64 90.64-90.64zM512 224.4c-94.242 0-170.64 76.398-170.64 170.64s76.398 170.636 170.64 170.636 170.64-76.394 170.64-170.636-76.398-170.64-170.64-170.64v0z",compass:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm242.4 178.1a22.9 22.9 0 012.9 28.9L574.9 571.7l-3.2 3.2-273.3 182.4a22.9 22.9 0 01-31.7-31.7l181-271.6c1.7-2.5 3.8-4.6 6.3-6.3l271.6-181c9-6 21.1-4.9 28.8 2.8zM483.2 483.3l-115 172.4 172.5-115-57.5-57.4z",globe:"M533.6 1.6a144.2 144.2 0 00-43.2 0A511.7 511.7 0 000 512.6 511.7 511.7 0 00512 1024c282.8 0 512-229 512-511.4a511.7 511.7 0 00-490.4-511zM930 467H749c-3.6-105.7-20-204.7-47.2-282.5a494.4 494.4 0 00-24.2-58.2 419.3 419.3 0 01131.8 89.3A416.7 416.7 0 01930.2 467zM512 931.5c-75.3 0-137.3-163.3-145.4-373.3h290.8c-8.1 210-70.1 373.3-145.4 373.3zM366.5 467c7.4-200.2 63.7-358.5 134-374.3a406.8 406.8 0 0123 0c70.3 15.9 126.6 174.1 134 374.3h-291zM214.6 215.5A420.7 420.7 0 01346.4 126c-8.7 17.7-16.9 37.1-24.2 58.2-27.1 78-43.6 177-47.2 282.5H94a416.7 416.7 0 01120.7-251.3zM93.9 558.2H275c3.8 104.8 20.2 203 47 280.3a488.6 488.6 0 0025.8 61 420.4 420.4 0 01-133.3-89.9A416.7 416.7 0 0193.9 558.2zm715.5 251.4a420.4 420.4 0 01-133.3 90c9.3-18.4 18-38.8 25.7-61.1 27-77.4 43.3-175.5 47-280.3h181.3a416.7 416.7 0 01-120.7 251.4z",location:"M1024 512a512 512 0 10-512.1 512C643 1024 774 974 874 874s150-231 150-362zM809.4 809.4a417.4 417.4 0 01-251.7 120.7v-153a45.7 45.7 0 00-91.5 0v153a417 417 0 01-251.6-120.7A417.7 417.7 0 0194 557.7h153a45.7 45.7 0 000-91.5h-153a417.3 417.3 0 01120.7-251.6A417.5 417.5 0 01466.2 93.8v153a45.7 45.7 0 0091.4 0v-153a417.4 417.4 0 01251.8 120.7A417.5 417.5 0 01930 466.2H777a45.7 45.7 0 000 91.4h153a417.3 417.3 0 01-120.7 251.7v.1z",search:"M218 670a318 318 0 0 1 0-451 316 316 0 0 1 451 0 318 318 0 0 1 0 451 316 316 0 0 1-451 0m750 240L756 698a402 402 0 1 0-59 60l212 212c16 16 42 16 59 0 16-17 16-43 0-60",zoom:"M220 670a316 316 0 0 1 0-450 316 316 0 0 1 450 0 316 316 0 0 1 0 450 316 316 0 0 1-450 0zm749 240L757 698a402 402 0 1 0-59 59l212 212a42 42 0 0 0 59-59zM487 604a42 42 0 0 1-84 0V487H286a42 42 0 1 1 0-84h117V286a42 42 0 1 1 84 0v117h117a42 42 0 0 1 0 84H487v117z",zoomout:"M757 698a402 402 0 1 0-59 59l212 212a42 42 0 0 0 59-59L757 698zM126 445a316 316 0 0 1 319-319 316 316 0 0 1 318 319 316 316 0 0 1-318 318 316 316 0 0 1-319-318zm160 42a42 42 0 1 1 0-84h318a42 42 0 0 1 0 84H286z",zoomreset:"M148 560a318 318 0 0 0 522 110 316 316 0 0 0 0-450 316 316 0 0 0-450 0c-11 11-21 22-30 34v4h47c25 0 46 21 46 46s-21 45-46 45H90c-13 0-25-6-33-14-9-9-14-20-14-33V156c0-25 20-45 45-45s45 20 45 45v32l1 1a401 401 0 0 1 623 509l212 212a42 42 0 0 1-59 59L698 757A401 401 0 0 1 65 570a42 42 0 0 1 83-10z",timer:"M571.5 0a42.7 42.7 0 010 85.3h-16.7l-.2 53.1a441.6 441.6 0 01221.2 84.9l44.7-44.6a42.7 42.7 0 0160.3 60.3l-41.5 41.5a443.8 443.8 0 11-370-142l.1-53.2H452A42.7 42.7 0 01452 0h119.5zM512 221.7a356 356 0 00-253.5 105 356 356 0 00-105 253.5 356 356 0 00105 253.5 356 356 0 00253.5 105 356 356 0 00253.5-105 356.2 356.2 0 00105-253.5 356 356 0 00-105-253.5 356 356 0 00-253.5-105zm-.1 52.7a42.7 42.7 0 0142.6 42.6v206.6a68.2 68.2 0 0125.3 47.3l.2 5.8a68.2 68.2 0 11-110.8-53.4V317a42.7 42.7 0 0142.7-42.6z",time:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm0 54.9a45.7 45.7 0 0145.7 45.7v280H759a45.7 45.7 0 010 91.4H512c-6.1 0-12-1.2-17.4-3.4l-.4-.2-2-1c-.7-.3-1.4-.5-2-.9l-.7-.4-3-1.9-.4-.2c-12-8.2-19.8-22-19.8-37.7V192a45.7 45.7 0 0145.7-45.7z",lightning:"M320.022 1022.644c-7.408 0-14.852-2.052-21.44-6.238-15.292-9.714-22.144-28.494-16.706-45.774l115.186-365.908-214.552-52.57c-14.714-3.606-26.128-15.214-29.486-29.988-3.356-14.772 1.92-30.174 13.632-39.786l576-472.662c14.458-11.864 35.208-12.126 49.962-0.626 14.752 11.496 19.568 31.682 11.594 48.602l-171.202 363.256 208.648 51.756c14.29 3.544 25.476 14.652 29.124 28.914s-0.834 29.376-11.668 39.344l-512 471.112c-7.586 6.984-17.308 10.568-27.092 10.568zM279.236 493.49l178.314 43.69c10.74 2.632 19.912 9.59 25.336 19.226s6.62 21.086 3.298 31.636l-83.030 263.76 347.066-319.352-183.82-45.596c-11.63-2.884-21.356-10.832-26.498-21.656-5.144-10.822-5.164-23.382-0.054-34.22l116.31-246.788-376.922 309.3z",lightningoff:"M310 374L76 150a37 37 0 0 1 0-54c15-14 41-14 56 0l816 778c16 15 16 39 0 54a41 41 0 0 1-56 0L666 712l-57-54-242-230-57-54zm-32 28l57 54-44 38 115 29 78 76-75 254 169-165 57 54-279 271c-8 7-17 11-26 11-7 0-14-2-20-6a41 41 0 0 1-16-46l109-367-203-52c-14-4-25-16-28-30-4-15 1-31 13-40l93-81zm124-108L731 9c13-12 33-12 47-1 14 12 19 32 11 49L627 421l198 52c13 4 24 15 27 29 4 14-1 29-11 39l-89 87-56-54 42-41-118-31-80-76 109-242-190 165-57-55z",dashboard:"M512 85.3a512 512 0 01361 875c-99.5-44-225-70.4-361.6-70.4-136.1 0-261.4 26.2-360.8 70A512 512 0 01512 85.4zm0 91.5c-112.4 0-218 43.7-297.4 123.1A417.8 417.8 0 0091.4 597.3c0 93 30 181.5 85.5 254.2 101-34.8 215.3-53 334.5-53 119.6 0 234.2 18.3 335.5 53.4a417.3 417.3 0 0085.7-254.6c0-112.3-43.8-218-123.2-297.4a417.5 417.5 0 00-275-122.6l-22.4-.5zm219.7 115.7a45.7 45.7 0 0116.7 62.4L580.4 646c6.5 17.1 6.7 36.6-.6 54.3l-4.3 8.7A73.1 73.1 0 11501.3 600l168-291a45.7 45.7 0 0162.4-16.6z",hourglass:"M511.926 801.946c-22.090 0-40-17.906-40-40v0c0-22.090 17.91-40 40-40v0c22.090 0 40.004 17.91 40.004 40v0c0 22.094-17.914 40-40.004 40v0zM831.682 915.242c0.192 1.582 0.318 3.186 0.318 4.82 0 22.090-17.908 40-40 40h-560c-22.092 0-40-17.914-40-40 0-2.438 0.252-4.812 0.67-7.128 2.36-53.636 18.034-105.7 45.852-151.554 0.734-1.476 1.562-2.912 2.492-4.296l5.582-8.364c0.054-0.080 0.11-0.158 0.164-0.238 0.042-0.068 0.098-0.156 0.144-0.222l157.704-236.036-158.5-237.228c-0.116-0.17-0.23-0.342-0.34-0.516-32.842-49.178-51.11-105.994-53.368-165.044-0.238-1.762-0.402-3.546-0.402-5.374 0-22.090 17.908-40 40-40h560c22.092 0 40 17.914 40 40 0 2.056-0.204 4.064-0.504 6.038-2.194 54.020-17.886 106.48-45.894 152.648-0.734 1.472-1.562 2.91-2.492 4.294l-5.582 8.366c-0.054 0.078-0.11 0.156-0.164 0.236-0.042 0.068-0.098 0.154-0.144 0.222l-157.734 236.082 158.468 237.182c0.116 0.168 0.23 0.344 0.34 0.516 32.946 49.33 51.226 106.346 53.39 165.596zM749.958 144.060h-475.99c6.138 31.304 18.384 61.124 36.354 87.916 0.118 0.17 0.23 0.344 0.342 0.514l0.024 0.038c0.036 0.054 0.15 0.23 0.186 0.284l54.286 81.25h293.596l58.196-87.1c0.366-0.67 0.75-1.334 1.154-1.99 15.492-24.916 26.228-52.324 31.852-80.912zM497.528 512.178l-0.032 0.046 14.426 21.592 93.378-139.756h-186.692l78.92 118.118zM305.96 799.156c-15.498 24.91-26.234 52.318-31.856 80.906h476.052c-6.138-31.304-18.384-61.122-36.354-87.918-0.118-0.168-0.23-0.344-0.342-0.512l-0.024-0.040c-0.036-0.050-0.15-0.23-0.186-0.282l-140.242-209.902-28.98 43.374c-7.166 10.72-19.21 17.162-32.11 17.162-12.896 0-24.942-6.442-32.11-17.166l-28.76-43.044-143.938 215.428c-0.36 0.674-0.744 1.338-1.15 1.994z",play:"M878.78 477.856l-591.884-341.722c-9.464-5.464-18.426-8.050-26.386-8.048-19.516 0.002-33.002 15.546-33.002 42.338v683.446c0 26.792 13.482 42.338 33.002 42.338 7.96 0 16.924-2.586 26.386-8.048l591.884-341.722c32.664-18.864 32.664-49.724 0-68.582z",playnext:"M222 136l513 342 12 10V192a64 64 0 01128 0v640a64 64 0 01-128 0V536l-12 10-513 342c-8 5-16 8-23 8-17 0-28-16-28-42V170c0-26 11-42 28-42 7 0 15 3 23 8z",playback:"M823 136L311 478l-12 10V192a64 64 0 00-128 0v640a64 64 0 10128 0V536l12 10 512 342c8 5 16 8 23 8 17 0 29-16 29-42V170c0-26-12-42-29-42-7 0-15 3-23 8z",stop:"M1024 512A512 512 0 100 512a512 512 0 001024 0zM215 809a418 418 0 010-594 418 418 0 01594 0 418 418 0 010 594 418 418 0 01-594 0zm471-78H338c-25 0-45-20-45-45V338c0-25 20-45 45-45h348c25 0 45 20 45 45v348c0 25-20 45-45 45z",stopalt:"M894 85H130c-25 0-45 20-45 45v764c0 25 20 45 45 45h764c25 0 45-20 45-45V130c0-25-20-45-45-45z",rewind:"m631.8 642.6 345 245.4c7.7 5.4 15 8 21.4 8 15.9 0 26.8-15.5 26.8-42.3V170.3c0-26.8-11-42.3-26.8-42.3-6.4 0-13.7 2.6-21.4 8l-345 245.4v-211c0-26.9-10.9-42.4-26.8-42.4-6.4 0-13.7 2.6-21.4 8L129 459.4V192a64 64 0 0 0-128 0v640a64 64 0 0 0 128 0V564.6L583.6 888c7.7 5.4 15 8 21.4 8 15.9 0 26.8-15.5 26.8-42.3v-211Z",fastforward:"M398.2 386.4 53.2 141c-7.7-5.4-15-8-21.4-8C15.9 133 5 148.5 5 175.3v683.4C5 885.5 16 901 31.8 901c6.4 0 13.7-2.6 21.4-8l345-245.4v211c0 26.9 11 42.4 26.8 42.4 6.4 0 13.7-2.6 21.4-8L901 569.6V837a64 64 0 0 0 128 0V197a64 64 0 0 0-128 0v267.4L446.4 141c-7.7-5.4-15-8-21.4-8-15.9 0-26.8 15.5-26.8 42.3v211Z",email:"M960.032 268.004c0.748-10.040-2.246-20.364-9.226-28.684-5.984-7.132-13.938-11.62-22.394-13.394-0.13-0.026-0.268-0.066-0.396-0.092-1.082-0.22-2.172-0.376-3.272-0.5-0.25-0.032-0.492-0.080-0.742-0.102-1.028-0.096-2.052-0.136-3.090-0.156-0.292-0.002-0.582-0.042-0.876-0.042h-816.008c-21.416 0-38.848 16.844-39.898 38-0.034 0.628-0.092 1.256-0.096 1.89 0 0.034-0.006 0.074-0.006 0.114 0 0.050 0.008 0.102 0.008 0.152v495.692c0 0.054-0.008 0.106-0.008 0.156 0 22.090 17.91 40 40 40h816.004c13.808 0 25.98-6.996 33.17-17.636 0.1-0.148 0.182-0.312 0.28-0.458 0.606-0.93 1.196-1.868 1.722-2.84 0.046-0.082 0.080-0.172 0.124-0.258 2.992-5.604 4.704-12.008 4.704-18.804v0 0-493.038zM144.032 350.156l339.946 281.188c6.568 6.434 14.918 10.168 23.564 11.122 0.16 0.024 0.32 0.050 0.48 0.066 0.838 0.082 1.676 0.114 2.518 0.14 0.496 0.020 0.994 0.058 1.492 0.058s0.996-0.042 1.492-0.058c0.842-0.028 1.68-0.058 2.518-0.14 0.16-0.016 0.32-0.042 0.48-0.066 8.646-0.958 16.996-4.688 23.564-11.122l339.946-281.206v370.894h-736v-370.876zM215.066 305.030h593.91l-296.946 245.422-296.964-245.422z",link:"M743.52 529.234c5.616-5.616 83.048-83.046 88.462-88.46 30.944-32.778 47.97-75.636 47.97-120.792 0-47.048-18.304-91.26-51.542-124.484-33.228-33.22-77.43-51.516-124.458-51.516-45.024 0-87.792 16.94-120.536 47.72l-104.458 104.456c-30.792 32.738-47.734 75.512-47.734 120.548 0 41.916 14.576 81.544 41.248 113.196 3.264 3.876 6.666 7.664 10.292 11.29 4.258 4.258 8.704 8.262 13.304 12.022 0.054 0.080 0.096 0.152 0.148 0.232 9.572 7.308 15.778 18.804 15.778 31.776 0 22.094-17.914 40-40.004 40-8.542 0-16.442-2.696-22.938-7.26-2.746-1.93-20.622-17.43-30.35-28.050-0.008-0.010-0.018-0.018-0.026-0.028-4.992-5.432-13.234-15.23-18.552-22.65s-16.556-25.872-17.036-26.736c-0.7-1.262-2.974-5.526-3.422-6.39-0.69-1.334-6.118-12.67-6.114-12.67-14.342-31.96-22.332-67.4-22.332-104.728 0-60.826 21.198-116.648 56.58-160.544 0.252-0.314 4.61-5.594 6.594-7.866 0.304-0.35 5.038-5.636 7.16-7.874 0.252-0.268 105.86-105.874 106.128-106.126 45.902-43.584 107.958-70.314 176.264-70.314 141.382 0 255.998 114.5 255.998 256 0 68.516-26.882 130.688-70.652 176.61-0.144 0.148-109.854 109.546-112.090 111.528-0.958 0.848-5.072 4.352-5.072 4.352-6.448 5.434-13.132 10.592-20.1 15.378 0.412-6.836 0.644-13.702 0.644-20.6 0-26.46-3.108-52.206-8.918-76.918l-0.236-1.102zM616.144 767.82c35.382-43.896 56.58-99.718 56.58-160.544 0-37.328-7.99-72.768-22.332-104.728 0.004 0 0.006-0.002 0.010-0.004-0.258-0.576-0.538-1.14-0.8-1.714-0.686-1.498-2.894-6.112-3.296-6.93-0.668-1.344-2.952-5.732-3.386-6.604-3.48-6.982-8.708-15.126-9.49-16.366-0.498-0.792-0.996-1.58-1.502-2.364-0.834-1.29-15.364-22.066-26.656-34.466-0.008-0.010-0.018-0.018-0.026-0.028-7.056-8.448-24.932-24.198-30.35-28.050-6.47-4.602-14.396-7.26-22.938-7.26-22.090 0-40.004 17.906-40.004 40 0 12.97 6.206 24.466 15.778 31.776 0.052 0.080 0.094 0.152 0.148 0.232 4.602 3.76 20.334 19.434 23.598 23.31 26.672 31.65 41.248 71.28 41.248 113.196 0 45.038-16.944 87.81-47.734 120.548l-104.458 104.456c-32.742 30.782-75.512 47.72-120.536 47.72-47.028 0-91.228-18.294-124.458-51.516-33.236-33.224-51.542-77.436-51.542-124.484 0-45.154 17.028-88.014 47.97-120.792 5.414-5.414 40.812-40.812 68.958-68.958 7.176-7.176 13.888-13.886 19.504-19.502v-0.002c-0.356-1.562-0.246-1.096-0.246-1.096-5.81-24.712-8.918-50.458-8.918-76.918 0-6.898 0.232-13.764 0.644-20.6-6.966 4.788-20.1 15.33-20.1 15.33-0.734 0.62-9.518 8.388-11.68 10.45-0.16 0.154-105.338 105.33-105.482 105.478-43.77 45.922-70.652 108.094-70.652 176.61 0 141.5 114.616 256 255.998 256 68.306 0 130.362-26.73 176.264-70.314 0.27-0.254 105.876-105.86 106.128-106.126 0.004-0.002 13.506-15.426 13.758-15.74z",paperclip:"M824.25 369.354c68.146-70.452 67.478-182.784-2.094-252.354-70.296-70.296-184.266-70.296-254.558 0-0.014 0.012-0.028 0.026-0.042 0.042-0.004 0.002-0.006 0.004-0.010 0.008l-433.144 433.142c-0.036 0.036-0.074 0.068-0.11 0.106-0.054 0.052-0.106 0.11-0.16 0.162l-2.668 2.67c-0.286 0.286-0.528 0.596-0.8 0.888-43.028 44.88-66.664 103.616-66.664 165.986 0 64.106 24.962 124.376 70.292 169.704 45.328 45.33 105.598 70.292 169.706 70.292 50.612 0 98.822-15.57 139.186-44.428 4.932-1.952 9.556-4.906 13.544-8.894l16.802-16.802c0.056-0.056 0.116-0.112 0.172-0.168 0.038-0.038 0.074-0.076 0.112-0.116l289.010-289.014c15.622-15.618 15.62-40.942 0-56.56s-40.948-15.62-56.566 0l-289.124 289.122c-62.482 62.484-163.792 62.484-226.274 0-62.484-62.482-62.484-163.79 0-226.272h-0.002l433.134-433.12c0.058-0.060 0.112-0.122 0.172-0.18 38.99-38.99 102.43-38.99 141.42 0 38.992 38.99 38.99 102.432 0 141.422-0.058 0.060-0.122 0.114-0.18 0.17l0.006 0.006-280.536 280.534c-0.002-0.002-0.002-0.004-0.004-0.006l-79.978 79.98c-0.010 0.010-0.016 0.020-0.028 0.028-0.008 0.012-0.018 0.018-0.028 0.028l-0.064 0.062c-15.622 15.624-40.944 15.624-56.562 0-15.624-15.62-15.624-40.944-0.002-56.566l0.062-0.062c0.010-0.010 0.018-0.020 0.028-0.028 0.008-0.012 0.020-0.018 0.028-0.028l79.98-79.978c-0.002-0.002-0.004-0.002-0.006-0.004l136.508-136.512c15.622-15.62 15.62-40.944-0.002-56.562-15.618-15.62-40.946-15.62-56.564 0l-219.342 219.344c-1.284 1.284-2.42 2.652-3.494 4.052-40.4 47.148-38.316 118.184 6.322 162.824 44.64 44.638 115.674 46.722 162.82 6.324 1.402-1.072 2.772-2.21 4.054-3.494l2.83-2.832c0.002 0 0.002 0 0.002 0s0 0 0 0l360.54-360.54c0.058-0.056 0.12-0.114 0.18-0.172 0.050-0.050 0.098-0.106 0.15-0.158l0.994-0.994c0.34-0.338 0.63-0.702 0.952-1.052z",box:"M960.016 408.080c0-0.672-0.046-1.342-0.078-2.014-0.032-0.594-0.044-1.19-0.102-1.782-0.068-0.726-0.186-1.448-0.294-2.17-0.080-0.54-0.144-1.080-0.248-1.616-0.138-0.724-0.326-1.442-0.506-2.16-0.134-0.534-0.252-1.070-0.408-1.6-0.196-0.662-0.436-1.314-0.668-1.968-0.204-0.582-0.396-1.166-0.628-1.74-0.226-0.56-0.494-1.11-0.75-1.662-0.3-0.656-0.598-1.312-0.934-1.954-0.242-0.454-0.514-0.894-0.774-1.342-0.414-0.716-0.83-1.43-1.292-2.124-0.256-0.382-0.538-0.752-0.806-1.128-0.514-0.716-1.036-1.428-1.602-2.116-0.090-0.11-0.162-0.226-0.254-0.336-0.244-0.292-0.516-0.542-0.768-0.826-0.534-0.6-1.068-1.198-1.644-1.772-0.48-0.478-0.982-0.924-1.48-1.376-0.354-0.316-0.674-0.658-1.040-0.964l-405.788-335.666c-6.568-6.436-14.918-10.166-23.564-11.124-0.16-0.022-0.32-0.050-0.48-0.066-0.838-0.082-1.676-0.11-2.518-0.14-0.496-0.020-0.994-0.058-1.492-0.058s-0.996 0.040-1.492 0.058c-0.842 0.028-1.68 0.058-2.518 0.14-0.16 0.016-0.32 0.044-0.48 0.066-8.646 0.956-16.996 4.688-23.564 11.124l-405.662 335.542c-7.13 5.982-11.616 13.93-13.392 22.382-0.032 0.14-0.070 0.278-0.1 0.42-0.212 1.072-0.37 2.152-0.494 3.238-0.032 0.258-0.078 0.51-0.106 0.77-0.086 0.89-0.114 1.786-0.138 2.68-0.014 0.39-0.052 0.78-0.054 1.17 0 0.040-0.006 0.074-0.006 0.114v204.856c-0.958 12.434 3.854 25.128 14.134 33.754l405.662 335.54c6.568 6.438 14.918 10.168 23.564 11.124 0.16 0.020 0.32 0.050 0.48 0.066 0.838 0.082 1.676 0.114 2.518 0.14 0.496 0.020 0.994 0.058 1.492 0.058 0.054 0 0.11-0.008 0.162-0.008 0.042 0 0.084 0.008 0.126 0.008 0.342 0 0.672-0.042 1.012-0.050 0.062-0.004 0.126-0.008 0.192-0.008 0.134-0.004 0.27-0.020 0.402-0.024 10.602-0.422 20.136-4.938 27.054-12.046l404.526-334.624c0.084-0.066 0.166-0.136 0.248-0.204l0.12-0.098c0.17-0.144 0.314-0.304 0.48-0.45 0.814-0.704 1.614-1.43 2.37-2.2 0.296-0.3 0.562-0.624 0.85-0.934 0.602-0.652 1.2-1.308 1.756-2 0.3-0.372 0.566-0.758 0.852-1.136 0.504-0.672 1.002-1.344 1.462-2.046 0.242-0.368 0.458-0.75 0.686-1.124 0.458-0.754 0.908-1.508 1.316-2.292 0.164-0.312 0.304-0.636 0.46-0.954 0.426-0.872 0.832-1.746 1.196-2.652 0.092-0.23 0.168-0.464 0.256-0.696 0.376-0.996 0.728-2 1.026-3.032 0.042-0.148 0.074-0.296 0.114-0.442 0.306-1.102 0.578-2.218 0.79-3.356 0.016-0.082 0.024-0.164 0.038-0.246 0.212-1.184 0.382-2.378 0.49-3.598v0c0.1-1.156 0.176-2.32 0.176-3.5v-204.86c0.024-0.318 0.022-0.638 0.040-0.958 0.026-0.668 0.074-1.338 0.074-2.008zM143.89 493.202l328.14 271.42v103.902l-328.14-271.18v-104.142zM552.032 764.402l327.868-271.212v103.88l-327.868 270.972v-103.64zM511.898 122.66l345.348 285.42-345.348 285.42-345.374-285.42 345.374-285.42z",structure:"M954.324 833.3c0.208-0.558 0.388-1.128 0.586-1.692 0.3-0.868 0.608-1.734 0.882-2.61 0.234-0.746 0.444-1.5 0.66-2.25 0.212-0.734 0.432-1.464 0.624-2.204 0.204-0.766 0.378-1.54 0.562-2.308 0.18-0.766 0.366-1.528 0.528-2.292 0.146-0.692 0.272-1.386 0.402-2.082 0.168-0.89 0.332-1.778 0.476-2.668 0.090-0.566 0.164-1.136 0.244-1.704 0.148-1.058 0.29-2.118 0.404-3.18 0.042-0.422 0.080-0.852 0.12-1.274 0.118-1.23 0.212-2.46 0.282-3.696 0.018-0.304 0.030-0.606 0.042-0.906 0.062-1.36 0.098-2.718 0.104-4.082 0-0.114 0.008-0.226 0.008-0.34 0-0.128-0.010-0.258-0.010-0.39-0.006-1.368-0.042-2.734-0.104-4.102-0.014-0.296-0.030-0.594-0.044-0.89-0.070-1.246-0.166-2.492-0.284-3.738-0.042-0.434-0.084-0.864-0.128-1.292-0.116-1.050-0.25-2.098-0.4-3.144-0.088-0.628-0.18-1.258-0.282-1.882-0.13-0.8-0.276-1.598-0.428-2.394-0.162-0.868-0.332-1.73-0.518-2.594-0.116-0.524-0.24-1.046-0.364-1.57-0.264-1.128-0.542-2.25-0.846-3.36-0.070-0.254-0.144-0.504-0.214-0.754-11.38-40.382-48.464-69.996-92.488-69.996-3.066 0-6.096 0.16-9.088 0.442l-264.576-458.262c21.080-29.698 24.3-70.13 4.9-103.732-12.596-21.816-32.458-36.812-54.764-43.724-0.062-0.020-0.124-0.036-0.186-0.054-1.394-0.43-2.798-0.83-4.21-1.196-0.296-0.076-0.596-0.142-0.894-0.216-1.208-0.3-2.422-0.586-3.642-0.84-0.384-0.082-0.774-0.148-1.16-0.224-1.168-0.228-2.338-0.444-3.514-0.626-0.384-0.060-0.776-0.112-1.162-0.168-1.208-0.174-2.416-0.332-3.63-0.46-0.35-0.038-0.7-0.066-1.048-0.1-1.27-0.12-2.54-0.218-3.814-0.29-0.32-0.018-0.642-0.032-0.964-0.044-1.294-0.058-2.594-0.094-3.892-0.1-0.166 0-0.328-0.012-0.492-0.012-0.19 0-0.376 0.014-0.564 0.014-1.21 0.008-2.42 0.040-3.63 0.092-0.494 0.022-0.986 0.046-1.478 0.074-0.992 0.060-1.986 0.136-2.978 0.226-0.722 0.064-1.442 0.134-2.16 0.214-0.696 0.080-1.392 0.17-2.090 0.266-1.014 0.136-2.026 0.286-3.032 0.452-0.352 0.060-0.704 0.124-1.054 0.19-44.97 8.028-79.122 47.302-79.122 94.582 0 20.756 6.602 39.958 17.79 55.67l-264.58 458.26c-2.954-0.274-5.94-0.434-8.962-0.434-53.078 0-96.11 43.032-96.11 96.11 0 53.082 43.032 96.11 96.11 96.11 38.8 0 72.208-23.004 87.386-56.11l529.202-0.004c0.138 0.304 0.292 0.606 0.436 0.91 0.226 0.48 0.456 0.958 0.69 1.434 0.474 0.968 0.966 1.93 1.476 2.882 0.214 0.402 0.432 0.8 0.65 1.2 0.314 0.566 0.604 1.14 0.93 1.708 0.284 0.488 0.59 0.958 0.88 1.442 0.122 0.2 0.244 0.398 0.37 0.602 27.086 44.372 84.766 59.278 130.040 33.136 18.864-10.89 32.624-27.214 40.478-45.852 0.054-0.132 0.104-0.266 0.158-0.398 0.518-1.248 1.020-2.506 1.486-3.776zM238.414 744.282l264.542-458.204c0.424 0.042 0.85 0.064 1.276 0.098 0.668 0.056 1.334 0.112 2.004 0.152 0.652 0.040 1.306 0.066 1.96 0.092 1.122 0.046 2.244 0.076 3.368 0.084 0.146 0.002 0.292 0.012 0.438 0.012 0.168 0 0.334-0.012 0.502-0.014 1.436-0.004 2.874-0.040 4.31-0.108 0.088-0.006 0.176-0.010 0.262-0.014 1.376-0.070 2.75-0.168 4.124-0.296l264.596 458.298c-3.48 4.894-6.514 10.122-9.042 15.636h-529.226c-2.546-5.55-5.602-10.814-9.114-15.736z",cpu:"M392.016 672.016h240.032c22.092 0 40-17.908 40-40v-240.032c0-22.092-17.908-40-40-40h-240.032c-22.092 0-40 17.908-40 40v240.032c0 22.092 17.908 40 40 40zM432.016 431.984h160.032v160.032h-160.032v-160.032zM864.032 424h71.98c22.094 0 40.004-17.906 40.004-40 0-22.092-17.906-40-40-40h-71.984v-143.968c0-22.092-17.908-40-40-40h-144v-72.012c0-22.094-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v72.016h-176v-72.012c0-22.094-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v72.016h-144c-22.092 0-40 17.908-40 40v143.968h-71.984c-22.094 0-40 17.908-40 40s17.91 40 40 40h71.984v176h-71.984c-22.094 0-40 17.908-40 40s17.91 40 40 40h71.984v144.030c0 22.092 17.908 40 40 40h144v71.954c0 22.094 17.906 40 40 40s40-17.91 40-40v-71.954h176v71.954c0 22.094 17.906 40 40 40s40-17.91 40-40v-71.954h144c22.092 0 40-17.908 40-40v-144.030h71.98c22.094 0 40.004-17.906 40.004-40 0-22.092-17.906-40-40-40h-71.984v-176zM784.032 784.032h-143.692c-0.104 0-0.204-0.016-0.308-0.016s-0.206 0.016-0.308 0.016h-127.382c-0.104 0-0.204-0.016-0.308-0.016s-0.206 0.016-0.308 0.016h-127.382c-0.104 0-0.204-0.016-0.308-0.016s-0.206 0.016-0.308 0.016h-143.696v-544h544v544z",memory:"M320.032 416.032v-152.968c0-22.094 17.91-40 40-40 22.094 0 40 17.91 40 40.004v152.964c0 22.090-17.906 40-40 40s-40-17.908-40-40zM512 456.032c22.094 0 40-17.91 40-40v-152.964c0-22.094-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v152.968c0 22.092 17.908 40 40 40zM664.032 456.032c22.094 0 40-17.91 40-40v-82.996c0-22.094-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v83c0 22.092 17.906 40 40 40zM864.018 316.616v603.418c0 0.004 0 0.004 0 0.004 0 6.798-1.71 13.198-4.704 18.808-0.044 0.084-0.078 0.172-0.124 0.254-0.524 0.976-1.112 1.914-1.722 2.836-0.098 0.15-0.18 0.312-0.282 0.46-7.188 10.638-19.36 17.634-33.168 17.634h-623.99c-22.090 0-40-17.908-40-40v-343.574c-0.002-0.142-0.022-0.282-0.022-0.426 0-0.142 0.020-0.282 0.022-0.426v-471.574c0-20.34 15.192-37.092 34.838-39.63 1.694-0.216 3.408-0.37 5.162-0.37l411.254 0.052c10.594-0.286 21.282 3.58 29.368 11.668l211.672 212.206c7.906 7.908 11.792 18.298 11.696 28.66zM240.026 144.034v391.998h543.99v-203.27l-188.252-188.728h-355.738zM784.016 880.032v-264h-543.99v264h543.99z",database:"M895.95 221.364c-3.414-87.32-173.972-157.672-383.918-157.672s-380.504 70.352-383.918 157.672h-0.082v578.328c0 88.552 171.918 160.338 384 160.338s384-71.786 384-160.338v-578.328h-0.082zM798.412 430.578c-15.6 11.386-37.69 22.346-63.882 31.696-60.984 21.77-140.002 33.758-222.498 33.758s-161.514-11.988-222.498-33.758c-26.192-9.348-48.282-20.308-63.88-31.696-8.706-6.352-13.646-11.608-16.122-14.874v-92.9c70.29 37.478 179.654 61.566 302.5 61.566s232.21-24.088 302.5-61.566v92.9c-2.476 3.266-7.416 8.522-16.12 14.874zM814.532 514.464v93.24c-2.474 3.266-7.416 8.522-16.12 14.874-15.6 11.386-37.69 22.346-63.882 31.696-60.984 21.77-140.002 33.758-222.498 33.758s-161.514-11.988-222.498-33.758c-26.192-9.348-48.282-20.308-63.88-31.696-8.706-6.352-13.646-11.608-16.122-14.874v-93.24c70.29 37.48 179.654 61.566 302.5 61.566s232.21-24.086 302.5-61.566zM225.652 209.146c15.6-11.386 37.69-22.346 63.88-31.696 60.984-21.77 140.002-33.758 222.498-33.758s161.514 11.988 222.498 33.758c26.192 9.348 48.282 20.308 63.882 31.696 8.704 6.352 13.646 11.608 16.12 14.874v0.026c-2.474 3.266-7.416 8.522-16.12 14.874-15.6 11.386-37.69 22.346-63.882 31.696-60.984 21.77-140.002 33.758-222.498 33.758s-161.514-11.988-222.498-33.758c-26.192-9.348-48.282-20.308-63.88-31.696-8.706-6.352-13.646-11.608-16.122-14.874v-0.026c2.476-3.268 7.418-8.524 16.122-14.874zM798.412 814.578c-15.6 11.386-37.69 22.346-63.882 31.696-60.984 21.77-140.002 33.758-222.498 33.758s-161.514-11.988-222.498-33.758c-26.192-9.348-48.282-20.308-63.88-31.696-8.714-6.36-13.66-11.62-16.13-14.886h0.010v-93.228c70.29 37.48 179.654 61.566 302.5 61.566s232.21-24.086 302.5-61.566v93.228h0.010c-2.474 3.266-7.42 8.526-16.132 14.886z",power:"M320 118.3a45.7 45.7 0 0122.5 85.6 384.6 384.6 0 00-120.8 93.4A380.9 380.9 0 00128 548.6c0 102.5 39.9 199 112.4 271.5A381.5 381.5 0 00512 932.5c102.5 0 199-39.9 271.5-112.4a381.5 381.5 0 00112.4-271.5c0-98.1-36.5-190.6-103.1-262l-2-2-9.4-9.5a384.2 384.2 0 00-100-71.2 45.6 45.6 0 0139.6-82.2l.6.3h.2l.1.1h.1l2 1 4 2 1.9 1 3.5 1.9a480.6 480.6 0 0144.9 27l2 1.3v-.3.1a475.4 475.4 0 11-545.3 6.2l3.6-2.6v.1a471.4 471.4 0 0151.7-31.7l3.7-2 1.4-.7.3-.2 6.4-3.1.1-.1h.1l.7-.3c5.2-2.1 11-3.4 17-3.4zM511.8 0c25 0 45.3 20 45.7 45v421.3a45.7 45.7 0 01-91.4.7V45.7A45.7 45.7 0 01511.9 0z",outbox:"M960.062 616v304c0 1.382-0.070 2.746-0.208 4.090-2.046 20.172-19.080 35.91-39.792 35.91h-816c-22.090 0-40-17.906-40-40v-304c0-22.090 17.91-40 40-40s40 17.91 40 40v264h736v-264c0-22.090 17.91-40 40-40s40 17.912 40 40zM664.732 200.168l-124.41-124.41c-0.014-0.014-0.024-0.028-0.038-0.042-3.57-3.57-7.664-6.284-12.018-8.222-5.316-2.368-11.028-3.54-16.742-3.47-0.14-0.002-0.276-0.020-0.414-0.020-13.552 0-25.512 6.756-32.748 17.072l-119.1 119.092c-15.622 15.62-15.618 40.948 0.002 56.57 15.622 15.62 40.95 15.62 56.568 0l55.276-55.276v462.54c0 22.094 17.912 40 40.002 40 22.092 0 40-17.91 40-40v-464.314l57.052 57.052c15.622 15.624 40.948 15.62 56.568 0 15.628-15.624 15.628-40.952 0.002-56.572z",share:"M896.006 920c0 22.090-17.91 40-40 40h-688.006c-22.090 0-40-17.906-40-40v-549.922c-0.838-3.224-1.33-6.588-1.33-10.072 0-22.090 17.908-40.004 40-40.004h178.66c22.092 0.004 40 17.914 40 40.004 0 22.088-17.908 40-40 40h-137.33v479.996h607.998v-479.996h-138.658c-22.090 0-40-17.912-40-40 0-22.090 17.906-40.004 40-40.004h178.658c22.090 0 40 17.91 40 40v559.844c0 0.050 0.008 0.102 0.008 0.154zM665.622 200.168l-124.452-124.45c-8.042-8.042-18.65-11.912-29.186-11.674-1.612-0.034-3.222 0-4.828 0.16-0.558 0.054-1.098 0.16-1.648 0.238-0.742 0.104-1.484 0.192-2.218 0.338-0.656 0.13-1.29 0.31-1.934 0.472-0.622 0.154-1.244 0.292-1.86 0.476-0.64 0.196-1.258 0.436-1.886 0.66-0.602 0.216-1.208 0.414-1.802 0.66-0.598 0.248-1.17 0.54-1.754 0.814-0.598 0.282-1.202 0.546-1.788 0.86-0.578 0.312-1.13 0.664-1.694 1-0.552 0.332-1.116 0.644-1.654 1.006-0.67 0.448-1.3 0.942-1.942 1.426-0.394 0.302-0.806 0.576-1.196 0.894-1.046 0.858-2.052 1.768-3.008 2.726l-124.398 124.39c-15.622 15.62-15.618 40.948 0.002 56.57 15.622 15.62 40.95 15.62 56.568 0l56.164-56.166v439.426c0 22.094 17.912 40 40.002 40 22.092 0 40-17.91 40-40v-441.202l57.942 57.942c15.622 15.624 40.948 15.62 56.568 0 15.626-15.618 15.626-40.946 0.002-56.566z",button:"M644.634 802.32c-4.558 5.434-10.254 9.328-16.446 11.672l0.008 0.024-45.628 16.606 27.54 75.66c7.554 20.756-3.148 43.71-23.906 51.266s-43.714-3.146-51.27-23.906l-27.54-75.656-47.63 17.29c-6.020 1.956-12.586 2.518-19.254 1.342-21.75-3.836-36.282-24.582-32.45-46.34l30.57-173.328c2.55-14.476 12.61-25.714 25.458-30.508 0.292-0.118 0.586-0.23 0.878-0.34 0.238-0.084 0.476-0.168 0.718-0.246 12.942-4.624 27.91-2.492 39.196 6.98l134.824 113.13c16.932 14.2 19.144 39.432 4.932 56.354zM960.002 664v-368.082c0-22.092-17.908-40-40-40h-816c-22.092 0-40 17.908-40 40l-0.292 368.238c0 22.092 17.908 40 40 40h240.292c22.092 0 40-17.908 40-40s-17.908-40-40-40h-200.292l0.292-288.238h736v288.082h-200c-22.092 0-40 17.908-40 40s17.908 40 40 40h240c22.092 0 40-17.908 40-40z",form:"M948.362 178.828l-471.082 470.086c-0.24 0.25-0.45 0.52-0.698 0.77-7.82 7.82-18.070 11.722-28.32 11.712-10.25 0.010-20.504-3.892-28.324-11.712-0.262-0.262-0.48-0.546-0.734-0.812l-221.736-221.738c-15.624-15.622-15.624-40.95 0-56.566 15.618-15.622 40.946-15.624 56.57 0l194.224 194.222 443.53-442.528c15.622-15.618 40.95-15.618 56.57 0 15.62 15.62 15.62 40.946 0 56.566zM98.372 128.448c-18.926 0-34.266 15.342-34.266 34.268v699.032c0 18.926 15.34 34.266 34.266 34.266h699.032c18.926 0 34.266-15.34 34.266-34.266v-430.588c0 0 0.002-1.184 0.002-1.788 0-22.090-17.914-40-40.004-40s-40 17.91-40 40c0 0.288 0.002 386.64 0.002 386.64h-607.562v-607.564h600.002c22.090-0.002 40.002-17.906 40.002-40 0-22.090-17.914-40-40.004-40z",check:"M948.598 199.75c-15.622-15.618-40.95-15.618-56.57 0l-535.644 535.644-224.060-224.062c-15.624-15.624-40.954-15.62-56.57 0-15.624 15.62-15.624 40.948 0 56.568l251.574 251.574c0.252 0.266 0.472 0.55 0.734 0.812 7.82 7.82 18.072 11.724 28.322 11.714 10.25 0.010 20.502-3.894 28.322-11.714 0.248-0.248 0.456-0.518 0.698-0.77l563.196-563.202c15.618-15.618 15.618-40.94-0.002-56.564z",batchaccept:"M684 277L271 772l-1 1a40 40 0 0 1-56 5l-1-1L14 610a40 40 0 1 1 52-61l169 142 387-465a40 40 0 0 1 62 51zm340 234c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zm0-216c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zm0 432c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40z",batchdeny:"M1024 512c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zm0-216c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zm0 432c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zM625 236c16 15 16 41 0 56L406 512l220 220a40 40 0 1 1-57 57L349 568 129 788a40 40 0 1 1-57-56l220-220L73 292a40 40 0 0 1 56-57l220 220 219-219c16-16 41-16 57 0z",home:"M948.12 483.624l-407.814-407.754c-7.812-7.808-18.046-11.712-28.282-11.712-10.238 0-20.472 3.904-28.282 11.712l-407.92 407.86c-15.624 15.622-15.624 40.948-0.006 56.57s40.944 15.622 56.568 0.004l19.616-19.612v366.708c0 22.090 17.91 40 40 40h190.696c0.416 0.014 0.82 0.062 1.238 0.062 11.054 0 21.060-4.484 28.3-11.734 7.266-7.244 11.766-17.262 11.766-28.332 0-0.418-0.050-0.822-0.062-1.238v-263.204h176.060v263.934c0 22.090 17.91 40 40 40l191.876 0.124c2.292 0 4.524-0.236 6.708-0.608 0.45-0.074 0.91-0.116 1.356-0.206 0.21-0.044 0.414-0.116 0.628-0.162 17.906-3.972 31.308-19.924 31.308-39.026v-366.492l19.682 19.68c15.622 15.62 40.948 15.616 56.568-0.006s15.618-40.948-0.004-56.568zM791.876 448.272v398.71l-111.874-0.074v-263.876c0-0.020-0.002-0.042-0.002-0.062 0-0.006 0-0.014 0-0.022 0-22.090-17.91-40-40-40h-254.002c-0.556 0-1.1 0.060-1.65 0.084-0.14-0.002-0.274-0.022-0.414-0.022-22.090 0-40 17.91-40 40v264.382h-111.934v-399.392c0-2.286-0.234-4.512-0.604-6.694l280.626-280.584 280.514 280.472c-0.412 2.302-0.66 4.658-0.66 7.078z",admin:"M919.596 847.534h-88.414v-467.716l88.75-0.044c13.688-0.132 26.958-7.25 34.294-19.96 11.044-19.13 4.49-43.596-14.642-54.64l-407.904-235.676c-0.44-0.254-0.894-0.45-1.34-0.684-0.542-0.29-1.084-0.578-1.638-0.84-0.696-0.328-1.4-0.62-2.108-0.904-0.478-0.194-0.954-0.388-1.44-0.56-0.78-0.282-1.564-0.524-2.352-0.754-0.442-0.126-0.878-0.256-1.324-0.37-0.808-0.206-1.618-0.376-2.43-0.528-0.468-0.088-0.934-0.174-1.404-0.246-0.768-0.116-1.534-0.204-2.302-0.274-0.554-0.052-1.108-0.096-1.664-0.124-0.672-0.034-1.34-0.044-2.012-0.044-0.67 0-1.338 0.012-2.010 0.044-0.556 0.030-1.11 0.072-1.664 0.124-0.77 0.070-1.536 0.158-2.302 0.274-0.468 0.072-0.938 0.158-1.402 0.246-0.814 0.152-1.624 0.322-2.432 0.528-0.444 0.114-0.882 0.242-1.322 0.37-0.79 0.23-1.574 0.472-2.356 0.754-0.484 0.172-0.958 0.368-1.438 0.56-0.708 0.286-1.41 0.576-2.11 0.904-0.554 0.262-1.094 0.55-1.636 0.84-0.446 0.234-0.9 0.43-1.34 0.684l-407.906 235.672c-19.128 11.044-25.686 35.51-14.64 54.64 7.34 12.71 20.606 19.828 34.292 19.96v0.044h89.842v467.716h-89.474c-22.090 0-40 17.91-40 40s17.91 40 40 40h128.276c0.402 0.012 0.794 0.060 1.2 0.060s0.796-0.048 1.2-0.060h183.602c0.402 0.012 0.794 0.060 1.2 0.060s0.796-0.048 1.2-0.060h183.602c0.402 0.012 0.794 0.060 1.2 0.060s0.796-0.048 1.2-0.060h313.154c22.098 0 40-17.91 40-40-0.006-22.090-17.914-39.996-40.006-39.996zM751.182 847.534h-105.94v-467.716h105.94v467.716zM252.93 299.816l258.736-149.486 258.738 149.486h-517.474zM565.242 379.816v467.716h-106v-467.716h106zM273.242 379.816h106v467.716h-106v-467.716z",paragraph:"M728.032 96.032h-116.98c-0.026 0-0.050-0.004-0.076-0.004s-0.050 0.004-0.076 0.004h-199.848c-0.026 0-0.050-0.004-0.076-0.004s-0.050 0.004-0.076 0.004h-31.924c-123.712 0-224 100.292-224 224 0 121.032 95.994 219.628 216 223.842v344.158c0 22.092 17.91 40 40 40 22.086 0 40-17.908 40-40v-712h120v712c0 22.092 17.91 40 40 40 22.086 0 40-17.908 40-40v-712h77.056c22.094 0 40-17.91 40-40 0-22.092-17.91-40-40-40z",basket:"M632.254 695.604v-112.016c-0.004-22.092 17.906-40.002 40-40.002 22.090 0.002 40 17.908 40 40.002l-0.004 112.018c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.904-40-40zM352.246 735.604c22.090-0.002 40-17.91 39.996-39.998l0.004-112.018c0-22.094-17.91-40-40-40.002-22.094 0-40.004 17.91-40 40.002v112.016c-0.004 22.096 17.906 40.002 40 40zM512.25 735.604c22.090-0.002 40-17.91 39.996-39.998l0.004-112.018c0-22.094-17.91-40-40-40.002-22.094 0-40.004 17.91-40 40.002v112.016c-0.004 22.096 17.906 40.002 40 40zM950.3 397.424c-7.596-8.686-18.574-13.67-30.114-13.67h-313.284c0.87 5.196 1.346 10.524 1.346 15.966 0 24.608-9.27 47.044-24.494 64.034h290.684l-47.318 351.376-629.908-0.030-47.502-351.346h291.034c-15.224-16.988-24.494-39.426-24.494-64.034 0-5.444 0.476-10.772 1.346-15.966h-313.66c-11.542 0-22.524 4.986-30.12 13.678-7.596 8.694-11.066 20.242-9.52 31.682l51.614 381.742 0.050 0.042c5.832 47.424 46.222 84.158 95.222 84.172l0.054 0.034 601.816-0.034c0.042 0 0.082 0.002 0.124 0.002 49.414 0 90.090-37.34 95.396-85.336l51.258-380.64c1.54-11.44-1.934-22.984-9.53-31.672zM805.492 105.34c-15.622-15.622-40.95-15.624-56.572 0.004l-230.684 230.684c-2.052-0.2-4.132-0.306-6.236-0.306-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64c0-2.652-0.18-5.262-0.494-7.83l229.986-229.98c15.622-15.624 15.616-40.95-0-56.572z",credit:"M376.188 672.062h-112.124c-22.092 0-40-17.908-40-40s17.908-40 40-40h112.124c22.092 0 40 17.908 40 40s-17.908 40-40 40zM960 232.002v560c0 6.8-1.708 13.2-4.704 18.81-0.044 0.082-0.078 0.172-0.124 0.254-0.524 0.974-1.112 1.914-1.722 2.836-0.098 0.15-0.18 0.31-0.282 0.458-7.188 10.64-19.36 17.638-33.168 17.638h-816c-22.090 0-40-17.908-40-40v-559.998c0-20.34 15.192-37.092 34.838-39.628 1.694-0.218 3.408-0.372 5.162-0.372h816c1.754 0 3.468 0.152 5.162 0.372 19.646 2.536 34.838 19.288 34.838 39.63zM144 272.002v80.030h736v-80.030h-736zM880 751.998v-239.966h-736v239.966h736z",shield:"M875.146 148.994c-0.064-0.040-0.116-0.094-0.184-0.132-92.714-52.39-221.036-84.83-362.846-84.83-138.512 0-270.346 34.356-362.51 84.618-0.606 0.33-1.138 0.658-1.608 0.986-11.954 6.918-20.016 19.81-20.016 34.614v451.4c0 12.7 5.938 23.996 15.166 31.32l340.538 281.676c6.568 6.434 14.918 10.168 23.564 11.122 0.16 0.024 0.32 0.050 0.48 0.066 0.838 0.082 1.676 0.114 2.518 0.14 0.496 0.020 0.994 0.058 1.492 0.058s0.996-0.040 1.492-0.058c0.842-0.032 1.68-0.058 2.518-0.14 0.16-0.016 0.32-0.042 0.48-0.066 8.646-0.958 16.996-4.688 23.564-11.122l339.36-280.718c10.326-7.23 17.094-19.2 17.094-32.762v-450.918c0.002-15.254-8.54-28.506-21.102-35.254zM207.984 208.212c36.292-18.168 77.668-32.854 123.356-43.722 57.062-13.576 117.884-20.458 180.778-20.458s123.714 6.882 180.778 20.458c30.186 7.182 58.474 16.040 84.674 26.456l-490.846 490.848-78.738-65.070v-408.512zM511.742 867.75l-163.078-134.77 467.586-467.584v350.69l-304.508 251.664z",beaker:"M848.64 790.56l-208.638-361.374v-252.062h24c22.092 0 40-17.908 40-40s-17.908-40-40-40h-304.002c-22.092 0-40 17.908-40 40s17.908 40 40 40h24v252.066l-208.636 361.37c-44 76.208-8 138.564 80 138.564h513.278c87.998 0 123.998-62.354 79.998-138.564zM464 177.124h96.002l-0.070 273.376 63.872 110.628h-223.678c35.932-62.268 63.872-110.684 63.876-110.692v-273.312zM768.64 849.124h-513.278c-8.28 0-14.186-0.976-17.968-2 1.004-3.792 3.112-9.394 7.25-16.564 0 0 54.598-94.614 109.316-189.436l316.026-0.002 109.374 189.44c4.138 7.168 6.246 12.77 7.25 16.562-3.784 1.024-9.69 2-17.97 2z",thumbsup:"M256.972 768.004c0-8.67-3.156-16.158-9.484-22.534-6.332-6.34-13.836-9.484-22.504-9.458-8.682 0-16.188 3.172-22.516 9.458-6.33 6.344-9.488 13.84-9.488 22.534 0 8.692 3.158 16.186 9.488 22.532 6.328 6.286 13.834 9.458 22.516 9.458 8.668 0.028 16.172-3.118 22.504-9.458 6.328-6.376 9.484-13.868 9.484-22.532zM832.948 480.010c0-17.004-6.478-31.908-19.468-44.734-13.014-12.82-27.834-19.25-44.512-19.276h-175.97c0-19.328 7.98-45.904 24.004-79.724 15.968-33.826 23.978-60.568 23.978-80.256 0-32.646-5.332-56.808-15.994-72.48-10.664-15.664-31.988-23.484-63.98-23.484-8.696 8.64-15.012 22.828-19.032 42.486-4.020 19.69-9.102 40.606-15.254 62.752-6.168 22.172-16.080 40.382-29.762 54.738-7.344 7.68-20.168 22.832-38.5 45.496-1.326 1.67-5.164 6.65-11.512 15.010-6.342 8.342-11.594 15.178-15.762 20.508-4.156 5.308-9.91 12.386-17.252 21.218-7.328 8.862-14 16.186-19.988 22.038-5.986 5.794-12.412 11.73-19.26 17.744-6.852 5.984-13.508 10.5-19.99 13.48-6.478 3.010-12.4 4.484-17.756 4.512h-15.982v320.010h15.982c4.332 0 9.596 0.492 15.774 1.504 6.168 1.012 11.676 2.080 16.488 3.258 4.812 1.144 11.154 2.98 19.002 5.466 7.862 2.512 13.702 4.424 17.502 5.74 3.812 1.31 9.732 3.422 17.756 6.238 8.026 2.842 12.866 4.586 14.506 5.272 70.324 24.334 127.304 36.504 170.996 36.504h60.482c64.006 0 96.024-27.836 96.024-83.478 0-8.664-0.848-18.016-2.514-27.996 10.004-5.334 17.936-14.084 23.758-26.276 5.824-12.172 8.724-24.416 8.778-36.746 0-12.366-3.008-23.844-9.024-34.51 17.664-16.682 26.524-36.496 26.524-59.496 0-8.308-1.696-17.554-5.032-27.72-3.336-10.202-7.492-18.104-12.468-23.762 10.636-0.328 19.55-8.15 26.714-23.486 7.192-15.34 10.744-28.82 10.744-40.496v-0.054zM896.984 479.516c0 29.638-8.204 56.816-24.5 81.506 2.98 10.994 4.484 22.476 4.484 34.482 0 25.674-6.344 49.68-19.004 71.99 1.012 7 1.506 14.164 1.506 21.488 0 33.688-10.008 63.354-29.968 89.026 0.326 46.32-13.834 82.904-42.518 109.756-28.682 26.848-66.522 40.246-113.496 40.246h-64.528c-31.99 0-63.542-3.746-94.742-11.268-31.168-7.492-67.246-18.402-108.23-32.758-38.662-13.312-61.656-19.956-68.984-19.956h-143.996c-17.664 0-32.742-6.292-45.252-18.784-12.508-12.5-18.756-27.588-18.756-45.254v-319.982c0-17.666 6.248-32.728 18.756-45.226 12.51-12.52 27.588-18.784 45.252-18.784h136.998c12.002-8.010 34.818-33.822 68.478-77.484 19.33-24.99 37.168-46.344 53.508-64.008 7.996-8.314 13.918-22.586 17.744-42.766 3.828-20.178 8.912-41.232 15.256-63.24 6.36-21.984 16.68-40.002 30.994-53.998 13.002-12.362 28.012-18.514 45.018-18.514 27.998 0 53.152 5.414 75.464 16.242 22.31 10.828 39.316 27.748 50.964 50.77 11.704 23.002 17.5 53.978 17.5 92.962 0 31.008-7.984 63-23.98 96.028h88.014c34.67 0 64.634 12.628 89.956 37.98 25.346 25.346 38.008 55.144 38.008 89.49l0.054 0.056z",mirror:"M857 127.778h-688c-22.092 0-40 17.91-40 40v688c0 22.090 17.908 40 40 40h688c22.094 0 40-17.91 40-40v-688c0-22.092-17.906-40-40-40zM817 815.778h-608v-1.086l606.914-606.914h1.086v608z",switchalt:"M923.946 63.418h-631.232c-20.268 0-36.7 16.432-36.7 36.7v155.286h-155.284c-20.268 0-36.7 16.432-36.7 36.7v631.23c0 20.268 16.43 36.7 36.7 36.7h631.23c20.272 0 36.7-16.432 36.7-36.7v-155.286h155.286c20.272 0 36.7-16.432 36.7-36.7v-631.23c-0.002-20.268-16.43-36.7-36.7-36.7zM688.66 880.032h-544.628v-544.628h111.984v395.946c0 20.268 16.43 36.7 36.7 36.7h395.944v111.982zM688.66 688.046h-352.644v-352.644h352.644v352.644zM880.644 688.046h-111.984v-395.946c0-20.268-16.428-36.7-36.7-36.7h-395.944v-111.984h544.628v544.63z",commit:"M984.032 472h-186.808c-19.474-140.12-139.74-248-285.222-248s-265.748 107.88-285.222 248h-186.746c-22.092 0-40 17.912-40 40.002 0 22.092 17.91 40 40 40h186.746c19.476 140.122 139.74 247.998 285.222 247.998s265.746-107.876 285.222-247.998h186.808c22.092 0 40-17.91 40-40s-17.908-40.002-40-40.002zM512 720c-114.692 0-208-93.308-208-208s93.308-208 208-208 208 93.308 208 208-93.308 208-208 208z",branch:"M861.968 312.032c0-66.168-53.832-120-120-120s-120 53.832-120 120c0 50.55 31.436 93.87 75.77 111.516-5.384 20.352-15.71 39.68-29.844 54.92-28.828 31.092-72.202 46.858-128.91 46.858-77.162 0-129.12 26.162-162.984 55.12V297.15c46.556-16.512 80-60.974 80-113.12 0-66.168-53.832-120-120-120s-120 53.832-120 120c0 52.146 33.444 96.608 80 113.12v429.762c-46.556 16.512-80 60.974-80 113.12 0 66.168 53.832 120 120 120s120-53.832 120-120c0-50.926-31.902-94.514-76.758-111.908 5.222-26.17 16.578-51.154 32.558-70.432 28.8-34.746 71.592-52.364 127.184-52.364 99.498 0 156.922-39.408 187.574-72.466 27.402-29.554 45.708-67.194 52.48-106.716 48.078-15.66 82.93-60.882 82.93-114.114zM336 144.032c22.056 0 40 17.944 40 40s-17.944 40-40 40-40-17.944-40-40 17.944-40 40-40zm0 736c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.944 40-40 40zm405.968-528c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.942 40-40 40z",merge:"M776.306 456.032c-51.602 0-95.696 32.744-112.612 78.542-69.674-6.072-141.482-31.012-197.386-69.306-46.266-31.69-100.392-85.728-111.792-168.92 45.4-17.12 77.79-60.998 77.79-112.314 0-66.168-53.832-120-120-120s-120 53.832-120 120c0 52.146 33.444 96.608 80 113.12v429.762c-46.556 16.512-80 60.974-80 113.12 0 66.168 53.832 120 120 120s120-53.832 120-120c0-52.146-33.444-96.608-80-113.12V471.444c19.622 21.888 42.618 41.898 68.792 59.828 68.422 46.868 156.64 77.042 241.646 83.462 16.14 47.23 60.932 81.3 113.56 81.3 66.168 0 120-53.832 120-120s-53.83-120.002-119.998-120.002zm-464-312c22.056 0 40 17.944 40 40s-17.944 40-40 40-40-17.944-40-40 17.942-40 40-40zm0 736c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.944 40-40 40zm464-264c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.944 40-40 40z",pullrequest:"M631 157c104 1 171 52 171 166v397a123 123 0 1 1-82 0V323c0-63-27-83-90-84h-24l22 23a41 41 0 1 1-58 58l-93-93a41 41 0 0 1 1-58l93-93a41 41 0 1 1 58 58l-23 23h25zM222 314a123 123 0 1 1 82 0v406a123 123 0 1 1-82 0V314zm41 564a41 41 0 1 0 0-82 41 41 0 0 0 0 82zm0-639a41 41 0 1 0 0-83 41 41 0 0 0 0 83zm498 639a41 41 0 1 0 0-82 41 41 0 0 0 0 82z",chromatic:"M512 0a512 512 0 110 1024A512 512 0 01512 0zM368 452v284a144 144 0 00274 59c-10-4-20-8-29-14l-111-64c-6-3-10-10-10-16V523l-124-71zm454 89c-8 7-17 13-26 18L551 701l81 46 1 1a144 144 0 00189-207zm-493-89l-81 47h-1a143 143 0 00-52 196 144 144 0 00137 71c-2-10-3-21-3-32V452zm375-195l-12 1c2 10 3 21 3 32v128c0 7-4 13-10 17l-154 88v144l245-142 2-1a144 144 0 00-74-267zm-384 0c-51 0-99 28-125 72-28 49-25 109 7 154 8-7 17-13 26-18l111-64a20 20 0 0120 0l153 88 124-71-244-141-1-1c-22-12-46-19-71-19zm192-111c-57 0-107 33-130 83 10 4 19 8 29 14l245 141v-96c-2-79-66-142-144-142z",twitter:"M960 233.114c-32.946 14.616-68.41 24.5-105.598 28.942 37.954-22.762 67.098-58.774 80.856-101.688-35.52 21.054-74.894 36.368-116.726 44.598-33.542-35.724-81.316-58.038-134.204-58.038-101.496 0-183.796 82.292-183.796 183.814 0 14.424 1.628 28.45 4.758 41.89-152.75-7.668-288.22-80.872-378.876-192.072-15.822 27.15-24.898 58.706-24.898 92.42 0 63.776 32.458 120.034 81.782 153.010-30.116-0.944-58.458-9.212-83.262-22.982-0.028 0.75-0.028 1.546-0.028 2.324 0 89.070 63.356 163.334 147.438 180.256-15.426 4.186-31.664 6.426-48.442 6.426-11.836 0-23.35-1.146-34.574-3.28 23.406 73.006 91.286 126.16 171.726 127.632-62.914 49.324-142.18 78.696-228.314 78.696-14.828 0-29.448-0.876-43.842-2.568 81.33 52.138 177.96 82.574 281.786 82.574 338.11 0 523-280.104 523-523.014 0-7.986-0.164-15.914-0.542-23.778 35.952-25.96 67.124-58.318 91.756-95.162z",google:"M799.094 79.996c0 0-200.938 0-267.936 0-120.126 0-233.188 91.004-233.188 196.434 0 107.692 81.904 194.624 204.124 194.624 8.496 0 16.75-0.148 24.812-0.74-7.942 15.186-13.594 32.286-13.594 50.022 0 29.974 16.094 54.226 36.466 74.042-15.376 0-30.248 0.438-46.438 0.438-148.782 0.036-263.312 94.784-263.312 193.056 0 96.758 125.534 157.312 274.312 157.312 169.656 0 263.312-96.25 263.312-193.024 0-77.6-22.908-124.062-93.686-174.156-24.216-17.128-70.534-58.812-70.534-83.32 0-28.69 8.19-42.868 51.406-76.624 44.346-34.63 75.688-83.302 75.688-139.944 0-67.372-30-133.058-86.374-154.746h85l59.942-43.374zM701.504 735.438c2.092 8.992 3.276 18.226 3.276 27.624 0 78.226-50.374 139.304-194.934 139.304-102.874 0-177.124-65.078-177.124-143.304 0-76.622 92.122-140.434 194.934-139.32 24.004 0.254 46.376 4.136 66.69 10.702 55.812 38.834 95.874 60.808 107.158 104.994zM536.844 443.782c-69-2.094-134.624-77.212-146.564-167.876-11.874-90.664 34.378-160.030 103.442-157.97 68.996 2.060 134.594 74.818 146.53 165.432 11.906 90.696-34.408 162.508-103.408 160.414z",gdrive:"M465.926 641.356l-149.328 258.708h494.074l149.328-258.708h-494.074zM917.704 567.988l-256.33-444.048h-298.686l256.356 444.048h298.66zM320.236 197.442l-256.236 443.914 149.36 258.708 256.23-443.914-149.354-258.708z",youtube:"M704.010 511.988c0-12.332-5.038-21.358-15.042-26.992l-255.982-159.99c-10.344-6.666-21.178-6.998-32.51-1.008-10.988 5.984-16.492 15.312-16.492 28.002v320c0 12.69 5.504 22.018 16.492 28.002 5.332 2.678 10.516 3.996 15.506 3.996 6.668 0 12.334-1.644 17.004-4.98l255.982-160.014c10.004-5.69 15.042-14.684 15.042-26.992v-0.024zM960 511.988c0 31.99-0.164 56.98-0.488 75.032-0.334 17.99-1.754 40.738-4.27 68.25-2.516 27.504-6.262 52.058-11.27 73.742-5.332 24.338-16.84 44.85-34.504 61.496-17.64 16.63-38.306 26.308-61.96 28.988-73.992 8.342-185.824 12.526-335.508 12.526-149.668 0-261.5-4.184-335.5-12.526-23.662-2.656-44.414-12.302-62.242-28.988-17.834-16.678-29.412-37.182-34.744-61.496-4.672-21.684-8.258-46.238-10.756-73.742-2.508-27.512-3.928-50.26-4.254-68.25-0.342-18.050-0.504-43.042-0.504-75.032 0-31.998 0.162-57.010 0.504-75.008 0.326-18.022 1.746-40.768 4.254-68.28 2.498-27.474 6.262-52.082 11.252-73.744 5.34-24.336 16.842-44.842 34.504-61.496 17.648-16.654 38.324-26.332 61.986-29.010 74-8.312 185.832-12.472 335.5-12.472 149.684 0 261.516 4.16 335.508 12.472 23.654 2.678 44.406 12.356 62.232 29.010 17.826 16.678 29.422 37.16 34.73 61.496 4.702 21.662 8.256 46.27 10.772 73.744 2.516 27.512 3.936 50.258 4.27 68.28 0.324 17.998 0.488 43.010 0.488 75.008z",facebook:"M582.52 960h-167.88v-448h-112v-154.396l112-0.052-0.166-90.948c-0.036-125.974 34.12-202.604 182.484-202.604h123.542v154.424h-77.19c-57.782 0-60.566 21.56-60.566 61.85l-0.218 77.278h138.854l-16.376 154.394-122.36 0.052-0.124 448.002z",medium:"M0 0v1024h1024v-1024h-1024zM850.708 242.614l-54.918 52.655c-3.858 2.965-6.321 7.581-6.321 12.772 0 0.933 0.080 1.847 0.232 2.736l-0.014-0.095v386.883c-0.139 0.794-0.219 1.708-0.219 2.641 0 5.191 2.462 9.807 6.283 12.744l0.038 0.028 53.637 52.655v11.558h-269.774v-11.558l55.559-53.936c5.461-5.456 5.461-7.068 5.461-15.413v-312.719l-154.477 392.344h-20.874l-179.851-392.344v262.947c-0.209 1.465-0.329 3.156-0.329 4.875 0 9.848 3.924 18.78 10.293 25.317l-0.008-0.008 72.258 87.649v11.558h-204.895v-11.558l72.263-87.649c6.070-6.284 9.81-14.852 9.81-24.293 0-2.081-0.182-4.12-0.53-6.101l0.031 0.21v-304.044c0.086-0.804 0.135-1.737 0.135-2.682 0-7.844-3.389-14.896-8.782-19.773l-0.023-0.021-64.234-77.378v-11.558h199.438l154.157 338.083 135.53-338.083h190.123v11.558z",graphql:"M576 849a85 85 0 0 0-125-2L253 733l1-3h517l2 5-197 114zM451 177l2 2-258 448-3-1V398a85 85 0 0 0 61-107l198-114zm321 114a85 85 0 0 0 61 107v228l-3 1-258-448 2-2 198 114zM254 689a85 85 0 0 0-24-42l259-447a86 86 0 0 0 47 0l259 448a85 85 0 0 0-24 41H254zm643-54c-7-4-15-7-23-9V398a86 86 0 1 0-82-142L595 142a85 85 0 1 0-165 0L233 256a85 85 0 1 0-82 142v228a85 85 0 1 0 82 142l197 114a85 85 0 1 0 164-2l196-114a86 86 0 1 0 107-131z",redux:"M359.016 943.608c-23.82 5.948-47.642 8.322-71.512 8.322-88.208 0-168.084-36.982-207.444-96.534-52.432-79.882-70.296-249.182 102.538-374.356 3.586 19.078 10.746 45.292 15.492 60.834-22.656 16.652-58.39 50.064-81.046 95.324-32.19 63.184-28.61 126.404 9.54 184.798 26.194 39.304 67.926 63.176 121.564 70.34 65.598 8.332 131.154-3.582 194.332-36.94 92.998-48.898 155.014-107.282 195.49-187.162-10.702-10.75-17.818-26.248-19.074-44.15-1.168-36.942 27.45-67.922 64.388-69.132h2.418c35.73 0 65.55 28.61 66.714 64.384 1.206 35.73-24.986 65.546-59.548 69.132-65.6 134.686-181.254 225.312-333.852 255.14zM902.646 540.622c-90.59-106.072-224.11-164.488-376.708-164.488h-19.072c-10.744-21.444-33.402-35.752-58.388-35.752h-2.418c-36.944 1.186-65.548 32.192-64.392 69.13 1.216 35.774 30.99 64.394 66.81 64.394h2.328c26.242-1.208 48.894-17.892 58.434-40.542h21.45c90.624 0 176.46 26.234 253.968 77.482 59.55 39.36 102.49 90.576 126.356 152.596 20.24 50.052 19.074 98.952-2.42 140.64-33.356 63.228-89.37 97.794-163.292 97.794-47.69 0-92.998-14.33-116.822-25.082-13.118 11.958-36.984 31.028-53.64 42.944 51.226 23.87 103.7 36.94 153.762 36.94 114.446 0 199.070-63.132 231.268-126.362 34.562-69.13 32.188-188.326-57.224-289.694zM297.046 708.706c1.21 35.828 30.984 64.394 66.764 64.394h2.368c36.992-1.168 65.556-32.15 64.39-69.132-1.162-35.732-30.984-64.394-66.758-64.394h-2.376c-2.418 0-5.958 0-8.332 1.208-48.89-81.090-69.132-169.27-62.014-264.648 4.792-71.528 28.616-133.516 70.346-184.766 34.568-44.106 101.326-65.57 146.598-66.758 126.402-2.396 180.044 154.968 183.576 218.144 15.542 3.584 41.734 11.936 59.644 17.892-14.328-193.118-133.526-293.266-247.97-293.266-107.28 0-206.236 77.484-245.552 191.932-54.848 152.596-19.070 299.212 47.644 414.826-5.912 8.374-9.494 21.498-8.328 34.568z",github:"M214.6 809.4A417.8 417.8 0 0191.4 512c0-112.3 43.8-218 123.2-297.4A417.8 417.8 0 01512 91.4c112.3 0 218 43.8 297.4 123.2A417.8 417.8 0 01932.6 512c0 112.3-43.8 218-123.2 297.4-49 49-108 84.3-172.2 104.3v-74.4c0-39.5-13.6-68.6-40.7-87.2a354 354 0 0091.9-19.6c15.8-5.6 30-12.2 42.6-19.9a177.8 177.8 0 0036.3-29.8 175 175 0 0029.1-41.7 228 228 0 0018.6-55.9c4.6-21.7 6.9-45.6 6.9-71.7 0-50.7-16.5-93.8-49.5-129.4 15-39.2 13.4-81.8-4.9-127.9l-12.2-1.4c-8.5-1-23.8 2.6-45.8 10.8-22 8.1-46.8 21.5-74.3 40.1a450.9 450.9 0 00-121-16.1 442 442 0 00-120.5 16.1 419.6 419.6 0 00-49.3-29.1c-15.5-7.7-27.9-13-37.2-15.7a127.6 127.6 0 00-41.4-5.6c-2.3.3-4 .6-4.9 1-18.3 46.3-20 89-4.9 127.8a183.5 183.5 0 00-49.5 129.4c0 26.1 2.3 50 6.9 71.7a228.3 228.3 0 0018.6 56 175 175 0 0029.1 41.6 177.9 177.9 0 0036.3 29.8 223.4 223.4 0 0042.6 19.9A353.2 353.2 0 00432 752c-26.8 18.3-40.2 47.3-40.2 87.2v75.9a418.4 418.4 0 01-177-105.8M512 0a512 512 0 100 1024A512 512 0 00512 0",bitbucket:"M362.3 395l53 276.5h195.4l34-198.4h283l-74.4 457a30 30 0 01-29.7 25.3H210.7a41 41 0 01-40-34.2l-127.6-775a30 30 0 0130-34.9l877.8.2a30 30 0 0130 34.8L940.5 395H362.3z",gitlab:"M186.9 75a18.7 18.7 0 0135.6 0l108.8 333.4h361.4L512 961.8 331.3 408.4H78.1zM78.1 408.5L512 961.8 36.8 618.2a37.1 37.1 0 01-13.6-41.6L78 408.4zm867.8 0l55 168.2c5 15.3-.5 32.1-13.7 41.6L512 961.8l434-553.4zM837.1 75l108.8 333.3H692.7L801.5 75a18.7 18.7 0 0135.6 0z",azuredevops:"M0,378.6 L95.8,252 L454.4,106.2 L454.4,1 L768.8,231 L126.6,355.8 L126.6,706.8 L0,670.2 L0,378.6 Z M1024,188.8 L1024,814 L778.6,1023 L381.8,892.6 L381.8,1023 L126.6,706.6 L769,783.2 L769,231 L1024,188.8 Z",discord:"M371 147c-14 0-126 3-245 91 0 0-126 227-126 507 0 0 74 126 268 132l58-71c-111-34-153-103-153-103l24 15 4 2 8 4a668 668 0 0 0 420 68 629 629 0 0 0 228-89s-44 71-159 103l58 71c194-7 268-133 268-132 0-280-126-507-126-507-126-94-246-91-246-91l-12 14a576 576 0 0 1 218 110 729 729 0 0 0-441-81l-15 1c-31 4-105 14-199 56-33 14-52 24-52 24s72-69 230-114l-9-10h-1zm-23 323c50 0 91 43 90 97 0 53-40 96-90 96-49 0-89-43-89-96 0-54 39-97 89-97zm321 0c49 0 89 43 89 97 0 53-39 96-89 96s-90-43-90-96c0-54 40-97 90-97z",contrast:"M368 713h79l266-266v-79L368 713zm192 0h153V560L560 713zm98-402h-79L311 579v79l347-347zm-192 0H311v155l155-155zm467 402V91H311v128h452c23 0 42 19 42 42v452h128zM713 933V805H261c-23 0-42-19-42-42V311H91v622h622zM982 0c23 0 42 19 42 42v721c0 23-19 42-42 42H805v177c0 23-19 42-42 42H42c-23 0-42-19-42-42V261c0-23 19-42 42-42h177V42c0-23 19-42 42-42h721z",unfold:"M512 645l8 1c21 4 37 22 37 44v181l52-52 6-6a45 45 0 0 1 58 69l-129 129-7 5a45 45 0 0 1-57-5L351 882l-5-6a45 45 0 0 1 5-57l7-6c17-12 41-10 57 6l52 52V690l1-8c4-21 22-37 44-37zM337 275a45 45 0 1 1 0 90H229l91 102h382l91-102H685a45 45 0 1 1 0-90h208c39 0 59 46 34 75L782 512l145 162c25 29 5 75-34 75H685a45 45 0 1 1 0-90h108l-91-102H320l-91 102h108a45 45 0 1 1 0 90H129c-38 0-59-46-33-75l144-162L96 350c-24-27-8-69 26-74l7-1h208zM537 8l7 6 129 129a45 45 0 0 1-58 68l-6-5-52-52v181c0 22-16 40-37 44h-8c-22 0-40-15-44-36l-1-8V153l-52 53a45 45 0 0 1-57 5l-7-5a45 45 0 0 1-5-57l5-6L480 14c16-16 40-18 57-6z",sharealt:"M130 85h332a45 45 0 0 1 8 89l-8 1H175v674h674V557a45 45 0 0 1 89-8l1 8v337c0 22-16 40-37 44l-8 1H130c-22 0-40-16-44-37l-1-8V130c0-22 16-40 37-44l8-1h332-332zm555 0h210l5 1-6-1a45 45 0 0 1 32 13l-5-4 3 3 2 1a46 46 0 0 1 12 24v2l1 5v209a45 45 0 0 1-89 8l-1-8V238L544 544a45 45 0 0 1-57 5l-7-5a45 45 0 0 1 0-64l306-305H685a45 45 0 0 1-8-89l8-1h209-209z",accessibility:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 89.6a422.4 422.4 0 100 844.8 422.4 422.4 0 000-844.8zm262.2 250a40.9 40.9 0 01-27.5 49.3l-169.1 50.7c-8.2 2.7-15.1 11-13.7 20.5 1.3 27.4 1.5 76.5 7 98.4 12.9 59 82.4 214.4 91 233.6a56 56 0 014.9 19 40 40 0 01-40 40c-18 0-30.3-12.7-38.2-28.4A34096 34096 0 01510.9 664l-77.7 165.7-1.3 2.1a40 40 0 01-69.3-39.7c8.6-19 78-174.5 90.8-233.6 5.5-21.9 6-71 7.3-98.4a21 21 0 00-13.7-20.5l-169.1-50.7a40.7 40.7 0 01-27.5-50.7c6.9-20.5 30.2-30.1 50.9-24.6 0 0 154.6 49.3 209.6 49.3s213.8-50.7 213.8-50.7c20.6-5.5 44 6.8 49.5 27.4zm-264-171.2a76.7 76.7 0 110 153.4c-42.6 0-77-34.2-77-76.7 0-41 34.4-76.7 77-76.7z",accessibilityalt:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm262.2 339.6c-5.5-20.6-28.9-32.9-49.5-27.4 0 0-158.8 50.7-213.8 50.7s-209.6-49.3-209.6-49.3c-20.7-5.5-44 4-51 24.6A40.7 40.7 0 00278 389l169 50.7a21 21 0 0113.8 20.5c-1.3 27.4-1.8 76.5-7.3 98.4-12.9 59.1-82.2 214.5-90.8 233.6a40 40 0 1070.6 37.5L511 664a34096 34096 0 0077.7 158.7c7.9 15.7 20.2 28.4 38.2 28.4a40 40 0 0040-40 56 56 0 00-4.8-19c-8.7-19.2-78.2-174.5-91.1-233.6-5.5-21.9-5.7-71-7-98.4-1.4-9.6 5.5-17.8 13.7-20.5l169.1-50.7a40.9 40.9 0 0027.5-49.3zm-264-171.2c-42.6 0-77 35.6-77 76.7a76.7 76.7 0 0077 76.7 76.7 76.7 0 100-153.4z",markup:"M1010.6 479.7L736.4 205.4a45.7 45.7 0 10-64.7 64.6l242 242L671.7 754a45.7 45.7 0 1064.7 64.6l274.1-274.2a45.6 45.6 0 000-64.6M0 511.9c0-11.7 4.5-23.4 13.4-32.3l274.1-274.2a45.7 45.7 0 1164.7 64.6L110.4 512l241.9 241.9a45.7 45.7 0 01-64.7 64.6L13.4 544.2C4.4 535.3 0 523.6 0 512",outline:"M180.1 714.3V844h129.6v94.8h-180c-24.2 0-44-19.5-44.4-43.7V714.3h94.8zM619.3 844v94.8H404.7v-94.8h214.6zm319.4-129.6v180c0 24.2-19.5 44-43.7 44.4H714.3v-94.8H844V714.3h94.8zm0-309.6v214.6h-94.8V404.7h94.8zm-758.6 0v214.6H85.3V404.7h94.8zm331.9 34a73.2 73.2 0 110 146.4 73.2 73.2 0 010-146.3zM894.2 85.4c24.3 0 44 19.5 44.5 43.7V309.7h-94.8V180H714.3V85.3h180zm-584.5 0v94.8H180v129.6H85.3v-180c0-24.2 19.5-44 43.7-44.4H309.7zm309.6 0v94.8H404.7V85.3h214.6z",verified:"M719 66l30 56c12 23 35 40 61 44l62 11c45 8 76 51 70 96l-9 63c-4 26 5 52 23 71l44 46c32 33 32 85 0 118l-44 46a85 85 0 00-23 71l9 63c6 45-25 88-70 96l-62 11c-26 4-49 21-61 44l-30 56a85 85 0 01-113 36l-57-27a85 85 0 00-74 0l-57 27c-42 21-92 4-113-36l-30-56a85 85 0 00-61-44l-62-11c-45-8-76-51-70-96l9-63c4-26-5-52-23-71l-44-46a85 85 0 010-118l44-46c18-19 27-45 23-71l-9-63c-6-45 25-88 70-96l62-11c26-4 49-21 61-44l30-56c21-40 71-57 113-36l57 27c23 12 51 12 74 0l57-27c42-21 92-4 113 36zm70 258a46 46 0 00-59 5L437 622 294 480l-6-5a46 46 0 00-59 69l175 175 6 5c18 13 43 11 59-5l326-325 4-6c13-18 12-43-4-59z",comment:"M936 85l6 1c22 3 39 21 39 44v709c0 8-2 15-5 21l-2 4c-9 12-23 20-38 20H427l-131 127c-9 9-21 13-34 13-25 0-46-20-46-45v-95H88c-25 0-45-20-45-45V130a45 45 0 0145-45zm-46 89H134v620h756V174zM768 544c25 0 46 20 46 44 0 25-21 45-46 45H256c-25 0-46-20-46-45 0-24 21-44 46-44zm0-208c25 0 46 20 46 44 0 25-21 45-46 45H256c-25 0-46-20-46-45 0-24 21-44 46-44z",commentadd:"M937 85l6 1c23 3 40 21 40 44v711c0 7-2 14-5 21l-3 4c-8 12-22 19-38 19H428l-131 128c-9 9-22 13-35 13-25 0-45-20-45-45v-96H89c-26 0-46-20-46-44V130a45 45 0 0146-45zm-45 90H134v621h758V175zm-379 97c22 0 40 18 40 40v134h132a40 40 0 010 81H553v132a40 40 0 11-80 0V527H341a40 40 0 110-81h132V312c0-22 18-40 40-40z",requestchange:"M937 85l6 1c23 3 40 21 40 44v711c0 7-2 14-5 21l-3 4c-8 12-22 19-38 19H428l-131 128c-9 9-22 13-35 13-25 0-45-20-45-45v-96H89c-26 0-46-20-46-44V130a45 45 0 0146-45zm-45 90H134v621h758V175zM585 310c18-18 47-18 65 0l143 144c18 17 18 46 0 64L650 661a46 46 0 01-65 0 46 46 0 010-65l65-64H266a46 46 0 110-92h384l-65-65a46 46 0 010-65z",comments:"M978.3 92.2a45 45 0 0145.7 44.6v535.6a45.2 45.2 0 01-45.7 44.6h-125v122c0 7.7-2 14.8-5.5 21.3l-2.3 3.7a46.1 46.1 0 01-38 19.6H298.8L168 1011a47 47 0 01-34.3 13.1c-25.2 0-45.7-20-45.7-44.6v-95.8H45.7c-25.2 0-45.7-20-45.7-44.5V303.4A45 45 0 0145.7 259h125v-122a45 45 0 0139.8-44.3c1.3-.1 257.2-.3 767.8-.4zM761.9 348H91.4v446.5H762V348zm-125 264c25.3 0 45.8 20 45.8 44.6A45.2 45.2 0 01637 701H216.4c-25.3 0-45.7-20-45.7-44.5a45.2 45.2 0 0145.7-44.6H637zm295.7-430.7H262V259h505.1l46.3.4a45 45 0 0139.8 44.2v324.3h79.3V181.3zM637 441.3c25.2 0 45.7 20 45.7 44.6a45.2 45.2 0 01-45.7 44.6H216.4c-25.3 0-45.7-20-45.7-44.6a45.2 45.2 0 0145.7-44.5H637z",ruler:"M83 110c-22 0-40 18-40 40v176a40 40 0 0080 0v-49h778v49a40 40 0 0080 0V150a40 40 0 10-80 0v49H123v-49c0-22-18-40-40-40zm40 458v266h778V568h-63v115a40 40 0 11-80 0V568h-63v46a40 40 0 11-80 0v-46h-63v115a40 40 0 11-80 0V568h-63v46a40 40 0 11-80 0v-46h-63v115a40 40 0 11-80 0V568h-63zm103-80h691c36 0 64 28 64 64v298c0 36-28 64-64 64H107c-36 0-64-28-64-64V552c0-36 28-64 64-64h119z"},Svg=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.svg({shapeRendering:"inherit",transform:"translate3d(0,0,0)"},(function(_ref27){return _ref27.inline?{display:"inline-block"}:{display:"block"}}));Svg.displayName="Svg";var Path=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.path({fill:"currentColor"}),Icons=(0,react__WEBPACK_IMPORTED_MODULE_51__.memo)((function(_a){var icon=_a.icon,symbol=_a.symbol,props=__rest(_a,["icon","symbol"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Svg,Object.assign({viewBox:"0 0 1024 1024"},props),symbol?react__WEBPACK_IMPORTED_MODULE_51__.createElement("use",{xlinkHref:"#icon--".concat(symbol)}):react__WEBPACK_IMPORTED_MODULE_51__.createElement(Path,{d:icons[icon]}))})),Symbols=(0,react__WEBPACK_IMPORTED_MODULE_51__.memo)((function(_ref28){var _ref28$icons=_ref28.icons,keys=void 0===_ref28$icons?Object.keys(icons):_ref28$icons;return react__WEBPACK_IMPORTED_MODULE_51__.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:{position:"absolute",width:0,height:0},"data-chromatic":"ignore"},keys.map((function(key){return react__WEBPACK_IMPORTED_MODULE_51__.createElement("symbol",{id:"icon--".concat(key),key:key},react__WEBPACK_IMPORTED_MODULE_51__.createElement(Path,{d:icons[key]}))})))})),LEFT_BUTTON=0,isPlainLeftClick=function isPlainLeftClick(e){return!(e.button!==LEFT_BUTTON||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)},cancelled=function cancelled(e,cb){isPlainLeftClick(e)&&(e.preventDefault(),cb(e))},LinkInner=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.span((function(_ref29){return _ref29.withArrow?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{}}),(function(_ref30){return _ref30.containsIcon?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}})),A$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.a((function(_ref31){var theme=_ref31.theme;return{display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:theme.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:curriedDarken$1(.07,theme.color.secondary),"svg path":{fill:curriedDarken$1(.07,theme.color.secondary)}},"&:active":{color:curriedDarken$1(.1,theme.color.secondary),"svg path":{fill:curriedDarken$1(.1,theme.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:theme.color.secondary}}}}),(function(_ref32){var colors,theme=_ref32.theme,secondary=_ref32.secondary,tertiary=_ref32.tertiary;return secondary&&(colors=[theme.color.mediumdark,theme.color.dark,theme.color.darker]),tertiary&&(colors=[theme.color.dark,theme.color.darkest,theme.color.mediumdark]),colors?{color:colors[0],"svg path":{fill:colors[0]},"&:hover":{color:colors[1],"svg path":{fill:colors[1]}},"&:active":{color:colors[2],"svg path":{fill:colors[2]}}}:{}}),(function(_ref33){return _ref33.nochrome?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{}}),(function(_ref34){var theme=_ref34.theme;return _ref34.inverse?{color:theme.color.lightest,"svg path":{fill:theme.color.lightest},"&:hover":{color:theme.color.lighter,"svg path":{fill:theme.color.lighter}},"&:active":{color:theme.color.light,"svg path":{fill:theme.color.light}}}:{}}),(function(_ref35){return _ref35.isButton?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{}})),Link=function Link(_a){var cancel=_a.cancel,children=_a.children,onClick=_a.onClick,withArrow=_a.withArrow,containsIcon=_a.containsIcon,className=_a.className,rest=__rest(_a,["cancel","children","onClick","withArrow","containsIcon","className"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(A$1,Object.assign({},rest,{onClick:onClick&&cancel?function(e){return cancelled(e,onClick)}:onClick,className:className}),react__WEBPACK_IMPORTED_MODULE_51__.createElement(LinkInner,{withArrow:withArrow,containsIcon:containsIcon},children,withArrow&&react__WEBPACK_IMPORTED_MODULE_51__.createElement(Icons,{icon:"arrowright"})))};Link.defaultProps={cancel:!0,className:void 0,style:void 0,onClick:void 0,withArrow:!1,containsIcon:!1};var DocumentWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref36){var theme=_ref36.theme;return{fontSize:"".concat(theme.typography.size.s2,"px"),lineHeight:"1.6",h1:{fontSize:"".concat(theme.typography.size.l1,"px"),fontWeight:theme.typography.weight.black},h2:{fontSize:"".concat(theme.typography.size.m2,"px"),borderBottom:"1px solid ".concat(theme.appBorderColor)},h3:{fontSize:"".concat(theme.typography.size.m1,"px")},h4:{fontSize:"".concat(theme.typography.size.s3,"px")},h5:{fontSize:"".concat(theme.typography.size.s2,"px")},h6:{fontSize:"".concat(theme.typography.size.s2,"px"),color:theme.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:theme.color.secondary,textDecoration:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:"1px solid ".concat(theme.appBorderColor),height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:"4px solid ".concat(theme.color.medium),padding:"0 15px",color:theme.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:"1px solid ".concat(theme.appBorderColor),backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:"1px solid ".concat(theme.appBorderColor),textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:"1px solid ".concat(theme.appBorderColor),textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:theme.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:"1px solid ".concat(theme.color.medium),display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:theme.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:"1px solid ".concat(theme.color.mediumlight),backgroundColor:theme.color.lighter,borderRadius:3,color:"dark"===theme.base&&theme.color.darkest}}})),Container$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref37){return{position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",background:_ref37.theme.background.content,zIndex:1}})),ActionButton=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.button((function(_ref38){var theme=_ref38.theme;return{margin:0,border:"0 none",padding:"4px 10px",cursor:"pointer",display:"flex",alignItems:"center",color:theme.color.defaultText,background:theme.background.content,fontSize:12,lineHeight:"16px",fontFamily:theme.typography.fonts.base,fontWeight:theme.typography.weight.bold,borderTop:"1px solid ".concat(theme.appBorderColor),borderLeft:"1px solid ".concat(theme.appBorderColor),marginLeft:-1,borderRadius:"4px 0 0 0","&:not(:last-child)":{borderRight:"1px solid ".concat(theme.appBorderColor)},"& + *":{borderLeft:"1px solid ".concat(theme.appBorderColor),borderRadius:0},"&:focus":{boxShadow:"".concat(theme.color.secondary," 0 -3px 0 0 inset"),outline:"0 none"}}}),(function(_ref39){return _ref39.disabled&&{cursor:"not-allowed",opacity:.5}}));ActionButton.displayName="ActionButton";var ActionBar=function ActionBar(_a){var actionItems=_a.actionItems,props=__rest(_a,["actionItems"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Container$1,Object.assign({},props),actionItems.map((function(_ref40,index){var title=_ref40.title,className=_ref40.className,onClick=_ref40.onClick,disabled=_ref40.disabled;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(ActionButton,{key:index,className:className,onClick:onClick,disabled:disabled},title)})))},toNumber=function toNumber(input){return"number"==typeof input?input:Number(input)},Container=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref41){var theme=_ref41.theme,col=_ref41.col,_ref41$row=_ref41.row,row=void 0===_ref41$row?1:_ref41$row;return col?_defineProperty2({display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:col*theme.layoutMargin,verticalAlign:"inherit"}},"& > *:first-child",{marginLeft:0}):_defineProperty2({"& > *":{marginTop:row*theme.layoutMargin}},"& > *:first-child",{marginTop:0})}),(function(_ref44){var theme=_ref44.theme,outer=_ref44.outer,col=_ref44.col,row=_ref44.row;switch(!0){case!(!outer||!col):return{marginLeft:outer*theme.layoutMargin,marginRight:outer*theme.layoutMargin};case!(!outer||!row):return{marginTop:outer*theme.layoutMargin,marginBottom:outer*theme.layoutMargin};default:return{}}})),Spaced=function Spaced(_a){var col=_a.col,row=_a.row,outer=_a.outer,children=_a.children,rest=__rest(_a,["col","row","outer","children"]),outerAmount=toNumber("number"!=typeof outer&&outer?col||row:outer);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Container,Object.assign({col:col,row:row,outer:outerAmount},rest),children)},Title$3=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref45){return{fontWeight:_ref45.theme.typography.weight.bold}})),Desc$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div(),Message$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref46){var theme=_ref46.theme;return{padding:30,textAlign:"center",color:theme.color.defaultText,fontSize:theme.typography.size.s2-1}})),Placeholder=function Placeholder(_a){var children=_a.children,props=__rest(_a,["children"]),_Children$toArray2=_slicedToArray(react__WEBPACK_IMPORTED_MODULE_51__.Children.toArray(children),2),title=_Children$toArray2[0],desc=_Children$toArray2[1];return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Message$1,Object.assign({},props),react__WEBPACK_IMPORTED_MODULE_51__.createElement(Title$3,null,title),desc&&react__WEBPACK_IMPORTED_MODULE_51__.createElement(Desc$1,null,desc))},GlobalScrollAreaStyles=(0,react__WEBPACK_IMPORTED_MODULE_51__.lazy)((function(){return __webpack_require__.e(551).then(__webpack_require__.bind(__webpack_require__,"./node_modules/@storybook/components/dist/esm/GlobalScrollAreaStyles-8793ce4a.js"))})),OverlayScrollbars=(0,react__WEBPACK_IMPORTED_MODULE_51__.lazy)((function(){return __webpack_require__.e(142).then(__webpack_require__.bind(__webpack_require__,"./node_modules/@storybook/components/dist/esm/OverlayScrollbars-26c4a78d.js"))})),Scroller=function Scroller(_a){var props=__rest(_a,["horizontal","vertical"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_51__.createElement("div",Object.assign({},props))},react__WEBPACK_IMPORTED_MODULE_51__.createElement(GlobalScrollAreaStyles,null),react__WEBPACK_IMPORTED_MODULE_51__.createElement(OverlayScrollbars,Object.assign({options:{scrollbars:{autoHide:"leave"}}},props)))},ScrollArea=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)(Scroller)((function(_ref47){return _ref47.vertical?{overflowY:"auto",height:"100%"}:{overflowY:"hidden"}}),(function(_ref48){return _ref48.horizontal?{overflowX:"auto",width:"100%"}:{overflowX:"hidden"}}));ScrollArea.defaultProps={horizontal:!1,vertical:!1};var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{},win;function getDefaultExportFromCjs(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}win="undefined"!=typeof window?window:void 0!==commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:{};var window_1=win,globalWindow$2=window_1.window;function browserSupportsCssZoom(){try{return void 0!==globalWindow$2.document.implementation.createHTMLDocument("").body.style.zoom}catch(error){return!1}}var ZoomElementWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref49){var _ref49$scale=_ref49.scale,scale=void 0===_ref49$scale?1:_ref49$scale,height=_ref49.height;return browserSupportsCssZoom()?{"> *":{zoom:1/scale}}:{height:height+50,transformOrigin:"top left",transform:"scale(".concat(1/scale,")")}}));function ZoomElement(_ref50){var scale=_ref50.scale,children=_ref50.children,componentWrapperRef=(0,react__WEBPACK_IMPORTED_MODULE_51__.useRef)(null),_useState2=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(0),2),height=_useState2[0],setHeight=_useState2[1];return(0,react__WEBPACK_IMPORTED_MODULE_51__.useEffect)((function(){componentWrapperRef.current&&setHeight(componentWrapperRef.current.getBoundingClientRect().height)}),[scale,componentWrapperRef.current]),react__WEBPACK_IMPORTED_MODULE_51__.createElement(ZoomElementWrapper,{scale:scale,height:height},react__WEBPACK_IMPORTED_MODULE_51__.createElement("div",{ref:componentWrapperRef,className:"innerZoomElementWrapper"},children))}var ZoomIFrame=function(_Component){_inherits(ZoomIFrame,_Component);var _super=_createSuper(ZoomIFrame);function ZoomIFrame(){var _this2;return _classCallCheck(this,ZoomIFrame),(_this2=_super.apply(this,arguments)).iframe=null,_this2}return _createClass(ZoomIFrame,[{key:"componentDidMount",value:function componentDidMount(){var iFrameRef=this.props.iFrameRef;this.iframe=iFrameRef.current}},{key:"shouldComponentUpdate",value:function shouldComponentUpdate(nextProps){var _this$props=this.props,scale=_this$props.scale,active=_this$props.active;return scale!==nextProps.scale&&this.setIframeInnerZoom(nextProps.scale),active!==nextProps.active&&this.iframe.setAttribute("data-is-storybook",nextProps.active?"true":"false"),nextProps.children.props.src!==this.props.children.props.src}},{key:"setIframeInnerZoom",value:function setIframeInnerZoom(scale){try{browserSupportsCssZoom()?Object.assign(this.iframe.contentDocument.body.style,{zoom:1/scale}):Object.assign(this.iframe.contentDocument.body.style,{width:"".concat(100*scale,"%"),height:"".concat(100*scale,"%"),transform:"scale(".concat(1/scale,")"),transformOrigin:"top left"})}catch(e){this.setIframeZoom(scale)}}},{key:"setIframeZoom",value:function setIframeZoom(scale){Object.assign(this.iframe.style,{width:"".concat(100*scale,"%"),height:"".concat(100*scale,"%"),transform:"scale(".concat(1/scale,")"),transformOrigin:"top left"})}},{key:"render",value:function render(){return this.props.children}}]),ZoomIFrame}(react__WEBPACK_IMPORTED_MODULE_51__.Component),Zoom$1={Element:ZoomElement,IFrame:ZoomIFrame},ButtonWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.button((function(_ref51){var small=_ref51.small,theme=_ref51.theme;return{border:0,borderRadius:"3em",cursor:"pointer",display:"inline-block",overflow:"hidden",padding:small?"8px 16px":"13px 20px",position:"relative",textAlign:"center",textDecoration:"none",transition:"all 150ms ease-out",transform:"translate3d(0,0,0)",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:1,margin:0,background:"transparent",fontSize:"".concat(small?theme.typography.size.s1:theme.typography.size.s2-1,"px"),fontWeight:theme.typography.weight.bold,lineHeight:"1",svg:{display:"inline-block",height:small?14:16,width:small?14:16,verticalAlign:"top",marginRight:small?4:6,marginTop:small?-1:-2,marginBottom:small?-1:-2,pointerEvents:"none",path:{fill:"currentColor"}}}}),(function(_ref52){return _ref52.disabled?{cursor:"not-allowed !important",opacity:.5,"&:hover":{transform:"none"}}:{}}),(function(_ref53){var containsIcon=_ref53.containsIcon,small=_ref53.small;return containsIcon?Object.assign({svg:{display:"block",margin:0}},small?{padding:9}:{padding:12}):{}}),(function(_ref54){var color,theme=_ref54.theme,primary=_ref54.primary,secondary=_ref54.secondary,gray=_ref54.gray;return gray?color=theme.color.medium:secondary?color=theme.color.secondary:primary&&(color=theme.color.primary),color?{background:color,color:gray?theme.color.darkest:theme.color.lightest,"&:hover":{background:curriedDarken$1(.05,color)},"&:active":{boxShadow:"rgba(0, 0, 0, 0.1) 0 0 0 3em inset"},"&:focus":{boxShadow:"".concat(rgba(color,1)," 0 1px 9px 2px"),outline:"none"},"&:focus:hover":{boxShadow:"".concat(rgba(color,.2)," 0 8px 18px 0px")}}:{}}),(function(_ref55){var theme=_ref55.theme,tertiary=_ref55.tertiary,inForm=_ref55.inForm,small=_ref55.small;return tertiary?Object.assign(Object.assign({background:"light"===theme.base?curriedDarken$1(.02,theme.input.background):curriedLighten$1(.02,theme.input.background),color:theme.input.color,boxShadow:"".concat(theme.input.border," 0 0 0 1px inset"),borderRadius:theme.input.borderRadius},inForm&&small?{padding:"10px 16px"}:{}),{"&:hover":Object.assign({background:"light"===theme.base?curriedDarken$1(.05,theme.input.background):curriedLighten$1(.05,theme.input.background)},inForm?{}:{boxShadow:"rgba(0,0,0,.2) 0 2px 6px 0, rgba(0,0,0,.1) 0 0 0 1px inset"}),"&:active":{background:theme.input.background},"&:focus":{boxShadow:"".concat(rgba(theme.color.secondary,1)," 0 0 0 1px inset"),outline:"none"}}):{}}),(function(_ref56){var theme=_ref56.theme;return _ref56.outline?{boxShadow:"".concat(curriedTransparentize$1(.8,theme.color.defaultText)," 0 0 0 1px inset"),color:curriedTransparentize$1(.3,theme.color.defaultText),background:"transparent","&:hover, &:focus":{boxShadow:"".concat(curriedTransparentize$1(.5,theme.color.defaultText)," 0 0 0 1px inset"),outline:"none"},"&:active":{boxShadow:"".concat(curriedTransparentize$1(.5,theme.color.defaultText)," 0 0 0 2px inset"),color:curriedTransparentize$1(0,theme.color.defaultText)}}:{}}),(function(_ref57){var theme=_ref57.theme,outline=_ref57.outline,primary=_ref57.primary,color=theme.color.primary;return outline&&primary?{boxShadow:"".concat(color," 0 0 0 1px inset"),color:color,"svg path":{fill:color},"&:hover":{boxShadow:"".concat(color," 0 0 0 1px inset"),background:"transparent"},"&:active":{background:color,boxShadow:"".concat(color," 0 0 0 1px inset"),color:theme.color.tertiary},"&:focus":{boxShadow:"".concat(color," 0 0 0 1px inset, ").concat(rgba(color,.4)," 0 1px 9px 2px"),outline:"none"},"&:focus:hover":{boxShadow:"".concat(color," 0 0 0 1px inset, ").concat(rgba(color,.2)," 0 8px 18px 0px")}}:{}}),(function(_ref58){var color,theme=_ref58.theme,outline=_ref58.outline,primary=_ref58.primary;return _ref58.secondary?color=theme.color.secondary:primary&&(color=theme.color.primary),outline&&color?{boxShadow:"".concat(color," 0 0 0 1px inset"),color:color,"svg path":{fill:color},"&:hover":{boxShadow:"".concat(color," 0 0 0 1px inset"),background:"transparent"},"&:active":{background:color,boxShadow:"".concat(color," 0 0 0 1px inset"),color:theme.color.tertiary},"&:focus":{boxShadow:"".concat(color," 0 0 0 1px inset, ").concat(rgba(color,.4)," 0 1px 9px 2px"),outline:"none"},"&:focus:hover":{boxShadow:"".concat(color," 0 0 0 1px inset, ").concat(rgba(color,.2)," 0 8px 18px 0px")}}:{}})),ButtonLink=ButtonWrapper.withComponent("a"),Button$2=Object.assign((0,react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)((function(_a,ref){var isLink=_a.isLink,children=_a.children,props=__rest(_a,["isLink","children"]);return isLink?react__WEBPACK_IMPORTED_MODULE_51__.createElement(ButtonLink,Object.assign({},props,{ref:ref}),children):react__WEBPACK_IMPORTED_MODULE_51__.createElement(ButtonWrapper,Object.assign({},props,{ref:ref}),children)})),{defaultProps:{isLink:!1}}),Wrapper$7=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.label((function(_ref59){var theme=_ref59.theme;return{display:"flex",borderBottom:"1px solid ".concat(theme.appBorderColor),margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}}})),Label$4=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.span((function(_ref60){return{minWidth:100,fontWeight:_ref60.theme.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"}})),Field=function Field(_a){var label=_a.label,children=_a.children,props=__rest(_a,["label","children"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Wrapper$7,Object.assign({},props),label?react__WEBPACK_IMPORTED_MODULE_51__.createElement(Label$4,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement("span",null,label)):null,children)};function _extends(){return _extends=Object.assign||function(target){for(var i=1;i=0||(target[key]=source[key]);return target}Field.defaultProps={label:void 0};var index$1="undefined"!=typeof document?react__WEBPACK_IMPORTED_MODULE_51__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_51__.useEffect,useLatest=function useLatest(value){var ref=(0,react__WEBPACK_IMPORTED_MODULE_51__.useRef)(value);return index$1((function(){ref.current=value})),ref},updateRef=function updateRef(ref,value){"function"!=typeof ref?ref.current=value:ref(value)},useComposedRef=function useComposedRef(libRef,userRef){var prevUserRef=(0,react__WEBPACK_IMPORTED_MODULE_51__.useRef)();return(0,react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(instance){libRef.current=instance,prevUserRef.current&&updateRef(prevUserRef.current,null),prevUserRef.current=userRef,userRef&&updateRef(userRef,instance)}),[userRef])},HIDDEN_TEXTAREA_STYLE={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},forceHiddenStyles=function forceHiddenStyles(node){Object.keys(HIDDEN_TEXTAREA_STYLE).forEach((function(key){node.style.setProperty(key,HIDDEN_TEXTAREA_STYLE[key],"important")}))},hiddenTextarea=null,getHeight=function getHeight(node,sizingData){var height=node.scrollHeight;return"border-box"===sizingData.sizingStyle.boxSizing?height+sizingData.borderSize:height-sizingData.paddingSize};function calculateNodeHeight(sizingData,value,minRows,maxRows){void 0===minRows&&(minRows=1),void 0===maxRows&&(maxRows=1/0),hiddenTextarea||((hiddenTextarea=document.createElement("textarea")).setAttribute("tabindex","-1"),hiddenTextarea.setAttribute("aria-hidden","true"),forceHiddenStyles(hiddenTextarea)),null===hiddenTextarea.parentNode&&document.body.appendChild(hiddenTextarea);var paddingSize=sizingData.paddingSize,borderSize=sizingData.borderSize,sizingStyle=sizingData.sizingStyle,boxSizing=sizingStyle.boxSizing;Object.keys(sizingStyle).forEach((function(_key){var key=_key;hiddenTextarea.style[key]=sizingStyle[key]})),forceHiddenStyles(hiddenTextarea),hiddenTextarea.value=value;var height=getHeight(hiddenTextarea,sizingData);hiddenTextarea.value="x";var rowHeight=hiddenTextarea.scrollHeight-paddingSize,minHeight=rowHeight*minRows;"border-box"===boxSizing&&(minHeight=minHeight+paddingSize+borderSize),height=Math.max(minHeight,height);var maxHeight=rowHeight*maxRows;return"border-box"===boxSizing&&(maxHeight=maxHeight+paddingSize+borderSize),[height=Math.min(maxHeight,height),rowHeight]}var noop$2=function noop(){},pick=function pick(props,obj){return props.reduce((function(acc,prop){return acc[prop]=obj[prop],acc}),{})},SIZING_STYLE=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],isIE="undefined"!=typeof document&&!!document.documentElement.currentStyle,getSizingData=function getSizingData(node){var style=window.getComputedStyle(node);if(null===style)return null;var sizingStyle=pick(SIZING_STYLE,style),boxSizing=sizingStyle.boxSizing;return""===boxSizing?null:(isIE&&"border-box"===boxSizing&&(sizingStyle.width=parseFloat(sizingStyle.width)+parseFloat(sizingStyle.borderRightWidth)+parseFloat(sizingStyle.borderLeftWidth)+parseFloat(sizingStyle.paddingRight)+parseFloat(sizingStyle.paddingLeft)+"px"),{sizingStyle:sizingStyle,paddingSize:parseFloat(sizingStyle.paddingBottom)+parseFloat(sizingStyle.paddingTop),borderSize:parseFloat(sizingStyle.borderBottomWidth)+parseFloat(sizingStyle.borderTopWidth)})},useWindowResizeListener=function useWindowResizeListener(listener){var latestListener=useLatest(listener);(0,react__WEBPACK_IMPORTED_MODULE_51__.useLayoutEffect)((function(){var handler=function handler(event){latestListener.current(event)};return window.addEventListener("resize",handler),function(){window.removeEventListener("resize",handler)}}),[])},TextareaAutosize=function TextareaAutosize(_ref,userRef){var cacheMeasurements=_ref.cacheMeasurements,maxRows=_ref.maxRows,minRows=_ref.minRows,_ref$onChange=_ref.onChange,onChange=void 0===_ref$onChange?noop$2:_ref$onChange,_ref$onHeightChange=_ref.onHeightChange,onHeightChange=void 0===_ref$onHeightChange?noop$2:_ref$onHeightChange,props=_objectWithoutPropertiesLoose(_ref,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]);var isControlled=void 0!==props.value,libRef=(0,react__WEBPACK_IMPORTED_MODULE_51__.useRef)(null),ref=useComposedRef(libRef,userRef),heightRef=(0,react__WEBPACK_IMPORTED_MODULE_51__.useRef)(0),measurementsCacheRef=(0,react__WEBPACK_IMPORTED_MODULE_51__.useRef)(),resizeTextarea=function resizeTextarea(){var node=libRef.current,nodeSizingData=cacheMeasurements&&measurementsCacheRef.current?measurementsCacheRef.current:getSizingData(node);if(nodeSizingData){measurementsCacheRef.current=nodeSizingData;var _calculateNodeHeight=calculateNodeHeight(nodeSizingData,node.value||node.placeholder||"x",minRows,maxRows),height=_calculateNodeHeight[0],rowHeight=_calculateNodeHeight[1];heightRef.current!==height&&(heightRef.current=height,node.style.setProperty("height",height+"px","important"),onHeightChange(height,{rowHeight:rowHeight}))}};return"undefined"!=typeof document&&((0,react__WEBPACK_IMPORTED_MODULE_51__.useLayoutEffect)(resizeTextarea),useWindowResizeListener(resizeTextarea)),(0,react__WEBPACK_IMPORTED_MODULE_51__.createElement)("textarea",_extends({},props,{onChange:function handleChange(event){isControlled||resizeTextarea(),onChange(event)},ref:ref}))},index=(0,react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)(TextareaAutosize),TextareaAutoResize=index,styleResets$1={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},styles=function styles(_ref61){var theme=_ref61.theme;return Object.assign(Object.assign({},styleResets$1),{transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:theme.input.color||"inherit",background:theme.input.background,boxShadow:"".concat(theme.input.border," 0 0 0 1px inset"),borderRadius:theme.input.borderRadius,fontSize:theme.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px","&:focus":{boxShadow:"".concat(theme.color.secondary," 0 0 0 1px inset"),outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 3em ".concat(theme.color.lightest," inset")},"::placeholder":{color:theme.color.mediumdark}})},sizes=function sizes(_ref62){switch(_ref62.size){case"100%":return{width:"100%"};case"flex":return{flex:1};default:return{display:"inline"}}},alignment=function alignment(_ref63){switch(_ref63.align){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};default:return{textAlign:"left"}}},validation=function validation(_ref64){var valid=_ref64.valid,theme=_ref64.theme;switch(valid){case"valid":return{boxShadow:"".concat(theme.color.positive," 0 0 0 1px inset !important")};case"error":return{boxShadow:"".concat(theme.color.negative," 0 0 0 1px inset !important")};case"warn":return{boxShadow:"".concat(theme.color.warning," 0 0 0 1px inset")};default:return{}}},Input$1=Object.assign((0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)((0,react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)((function(_a,ref){var props=__rest(_a,["size","valid","align"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement("input",Object.assign({},props,{ref:ref}))})))(styles,sizes,alignment,validation,{minHeight:32}),{displayName:"Input"}),Select=Object.assign((0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)((0,react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)((function(_a,ref){var props=__rest(_a,["size","valid","align"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement("select",Object.assign({},props,{ref:ref}))})))(styles,sizes,validation,{height:32,userSelect:"none",paddingRight:20,appearance:"menulist"}),{displayName:"Select"}),Textarea=Object.assign((0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)((0,react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)((function(_a,ref){var props=__rest(_a,["size","valid","align"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(TextareaAutoResize,Object.assign({},props,{ref:ref}))})))(styles,sizes,alignment,validation,(function(_ref65){var _ref65$height=_ref65.height;return{overflow:"visible",maxHeight:void 0===_ref65$height?400:_ref65$height}})),{displayName:"Textarea"}),ButtonStyled=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)((0,react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)((function(_a,ref){var props=__rest(_a,["size","valid","align"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Button$2,Object.assign({},props,{ref:ref}))})))(sizes,validation,{userSelect:"none",overflow:"visible",zIndex:2,"&:hover":{transform:"none"}}),Button$1=Object.assign((0,react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)((function(props,ref){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(ButtonStyled,Object.assign({},props,{tertiary:!0,small:!0,inForm:!0},{ref:ref}))})),{displayName:"Button"}),Form=Object.assign(_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.form({boxSizing:"border-box",width:"100%"}),{Field:Field,Input:Input$1,Select:Select,Textarea:Textarea,Button:Button$1}),LazyWithTooltip=(0,react__WEBPACK_IMPORTED_MODULE_51__.lazy)((function(){return __webpack_require__.e(725).then(__webpack_require__.bind(__webpack_require__,"./node_modules/@storybook/components/dist/esm/WithTooltip-508b8277.js")).then((function(mod){return{default:mod.WithTooltip}}))})),WithTooltip=function WithTooltip(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_51__.createElement("div",null)},react__WEBPACK_IMPORTED_MODULE_51__.createElement(LazyWithTooltip,Object.assign({},props)))},LazyWithTooltipPure=(0,react__WEBPACK_IMPORTED_MODULE_51__.lazy)((function(){return __webpack_require__.e(725).then(__webpack_require__.bind(__webpack_require__,"./node_modules/@storybook/components/dist/esm/WithTooltip-508b8277.js")).then((function(mod){return{default:mod.WithTooltipPure}}))})),WithTooltipPure=function WithTooltipPure(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_51__.createElement("div",null)},react__WEBPACK_IMPORTED_MODULE_51__.createElement(LazyWithTooltipPure,Object.assign({},props)))},Title$2=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref66){return{fontWeight:_ref66.theme.typography.weight.black}})),Desc=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.span(),Links=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref67){return{marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:_ref67.theme.typography.weight.black}}})),Message=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref68){return{color:_ref68.theme.textColor,lineHeight:"18px"}})),MessageWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({padding:15,width:280,boxSizing:"border-box"}),TooltipMessage=function TooltipMessage(_ref69){var title=_ref69.title,desc=_ref69.desc,links=_ref69.links;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(MessageWrapper,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(Message,null,title&&react__WEBPACK_IMPORTED_MODULE_51__.createElement(Title$2,null,title),desc&&react__WEBPACK_IMPORTED_MODULE_51__.createElement(Desc,null,desc)),links&&react__WEBPACK_IMPORTED_MODULE_51__.createElement(Links,null,links.map((function(_a){var linkTitle=_a.title,other=__rest(_a,["title"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Link,Object.assign({},other,{key:linkTitle}),linkTitle)}))))};TooltipMessage.defaultProps={title:null,desc:null,links:null};var Note=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref70){var theme=_ref70.theme;return{padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:theme.typography.weight.bold,color:theme.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:"light"===theme.base?"rgba(60, 60, 60, 0.9)":"rgba(20, 20, 20, 0.85)",margin:6}})),TooltipNote=function TooltipNote(_a){var note=_a.note,props=__rest(_a,["note"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Note,Object.assign({},props),note)},Title$1=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)((function(_a){var rest=__rest(_a,["active","loading","disabled"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement("span",Object.assign({},rest))}))((function(_ref71){var theme=_ref71.theme;return{color:theme.color.defaultText,fontWeight:theme.typography.weight.regular}}),(function(_ref72){var active=_ref72.active,theme=_ref72.theme;return active?{color:theme.color.primary,fontWeight:theme.typography.weight.bold}:{}}),(function(_ref73){var loading=_ref73.loading,theme=_ref73.theme;return loading?Object.assign({display:"inline-block",flex:"none"},theme.animation.inlineGlow):{}}),(function(_ref74){var disabled=_ref74.disabled,theme=_ref74.theme;return disabled?{color:curriedTransparentize$1(.7,theme.color.defaultText)}:{}})),Right=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.span({"& svg":{transition:"all 200ms ease-out",opacity:0,height:12,width:12,margin:"3px 0",verticalAlign:"top"},"& path":{fill:"inherit"}},(function(_ref75){var active=_ref75.active,theme=_ref75.theme;return active?{"& svg":{opacity:1},"& path":{fill:theme.color.primary}}:{}})),Center=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.span({flex:1,textAlign:"left",display:"inline-flex","& > * + *":{paddingLeft:10}}),CenterText=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.span({flex:1,textAlign:"center"},(function(_ref76){var active=_ref76.active,theme=_ref76.theme;return active?{color:theme.color.primary}:{}}),(function(_ref77){var theme=_ref77.theme;return _ref77.disabled?{color:theme.color.mediumdark}:{}})),Left=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.span((function(_ref78){var active=_ref78.active,theme=_ref78.theme;return active?{"& svg":{opacity:1},"& path":{fill:theme.color.primary}}:{}})),Item$3=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.a((function(_ref79){var theme=_ref79.theme;return{fontSize:theme.typography.size.s1,transition:"all 150ms ease-out",color:curriedTransparentize$1(.5,theme.color.defaultText),textDecoration:"none",cursor:"pointer",justifyContent:"space-between",lineHeight:"18px",padding:"7px 15px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:hover":{background:theme.background.hoverable},"&:hover svg":{opacity:1}}}),(function(_ref80){return _ref80.disabled?{cursor:"not-allowed"}:{}})),getItemProps=memoizerific__WEBPACK_IMPORTED_MODULE_52___default()(100)((function(onClick,href,LinkWrapper){var result={};return onClick&&Object.assign(result,{onClick:onClick}),href&&Object.assign(result,{href:href}),LinkWrapper&&href&&Object.assign(result,{to:href,as:LinkWrapper}),result})),ListItem=function ListItem(_a){var loading=_a.loading,left=_a.left,title=_a.title,center=_a.center,right=_a.right,active=_a.active,disabled=_a.disabled,href=_a.href,onClick=_a.onClick,LinkWrapper=_a.LinkWrapper,rest=__rest(_a,["loading","left","title","center","right","active","disabled","href","onClick","LinkWrapper"]),itemProps=getItemProps(onClick,href,LinkWrapper),commonProps={active:active,disabled:disabled};return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Item$3,Object.assign({},commonProps,rest,itemProps),left&&react__WEBPACK_IMPORTED_MODULE_51__.createElement(Left,Object.assign({},commonProps),left),title||center?react__WEBPACK_IMPORTED_MODULE_51__.createElement(Center,null,title&&react__WEBPACK_IMPORTED_MODULE_51__.createElement(Title$1,Object.assign({},commonProps,{loading:loading}),title),center&&react__WEBPACK_IMPORTED_MODULE_51__.createElement(CenterText,Object.assign({},commonProps),center)):null,right&&react__WEBPACK_IMPORTED_MODULE_51__.createElement(Right,Object.assign({},commonProps),right))};ListItem.defaultProps={loading:!1,left:null,title:react__WEBPACK_IMPORTED_MODULE_51__.createElement("span",null,"Loading state"),center:null,right:null,active:!1,disabled:!1,href:null,LinkWrapper:null,onClick:null};var List$2=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:432},(function(_ref81){return{borderRadius:2*_ref81.theme.appBorderRadius}})),Item$2=function Item$2(props){var LinkWrapper=props.LinkWrapper,onClickFromProps=props.onClick,rest=__rest(props,["LinkWrapper","onClick"]),title=rest.title,href=rest.href,active=rest.active,onClick=(0,react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(event){onClickFromProps(event,rest)}),[onClickFromProps]),hasOnClick=!!onClickFromProps;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(ListItem,Object.assign({title:title,active:active,href:href,LinkWrapper:LinkWrapper},rest,hasOnClick?{onClick:onClick}:{}))},TooltipLinkList=function TooltipLinkList(_ref82){var links=_ref82.links,LinkWrapper=_ref82.LinkWrapper;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(List$2,null,links.map((function(_a){var isGatsby=_a.isGatsby,p=__rest(_a,["isGatsby"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Item$2,Object.assign({key:p.id,LinkWrapper:isGatsby?LinkWrapper:null},p))})))};TooltipLinkList.defaultProps={LinkWrapper:ListItem.defaultProps.LinkWrapper};var Side=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",flexShrink:0,marginLeft:3,marginRight:3},(function(_ref83){return _ref83.left?{"& > *":{marginLeft:4}}:{}}),(function(_ref84){return _ref84.right?{marginLeft:30,"& > *":{marginRight:4}}:{}}));Side.displayName="Side";var Bar$1=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)((function(_ref85){var children=_ref85.children,className=_ref85.className;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(ScrollArea,{horizontal:!0,vertical:!1,className:className},children)}))((function(_ref86){return{color:_ref86.theme.barTextColor,width:"100%",height:40,flexShrink:0,overflow:"auto",overflowY:"hidden"}}),(function(_ref87){var theme=_ref87.theme;return _ref87.border?{boxShadow:"".concat(theme.appBorderColor," 0 -1px 0 0 inset"),background:theme.barBg}:{}}));Bar$1.displayName="Bar";var BarInner=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref88){return{display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:_ref88.bgColor||""}})),FlexBar=function FlexBar(_a){var children=_a.children,backgroundColor=_a.backgroundColor,rest=__rest(_a,["children","backgroundColor"]),_Children$toArray4=_slicedToArray(react__WEBPACK_IMPORTED_MODULE_51__.Children.toArray(children),2),left=_Children$toArray4[0],right=_Children$toArray4[1];return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Bar$1,Object.assign({},rest),react__WEBPACK_IMPORTED_MODULE_51__.createElement(BarInner,{bgColor:backgroundColor},react__WEBPACK_IMPORTED_MODULE_51__.createElement(Side,{left:!0},left),right?react__WEBPACK_IMPORTED_MODULE_51__.createElement(Side,{right:!0},right):null))};FlexBar.displayName="FlexBar";var top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce((function(acc,placement){return acc.concat([placement+"-"+start,placement+"-"+end])}),[]),placements=[].concat(basePlacements,[auto]).reduce((function(acc,placement){return acc.concat([placement,placement+"-"+start,placement+"-"+end])}),[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite],ButtonOrLink=function ButtonOrLink(_a){var children=_a.children,restProps=__rest(_a,["children"]);return null!=restProps.href?react__WEBPACK_IMPORTED_MODULE_51__.createElement("a",Object.assign({},restProps),children):react__WEBPACK_IMPORTED_MODULE_51__.createElement("button",Object.assign({type:"button"},restProps),children)},TabButton=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)(ButtonOrLink,{shouldForwardProp:_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.R_})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"}},(function(_ref89){return{padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:_ref89.theme.color.secondary}}}),(function(_ref90){var active=_ref90.active,textColor=_ref90.textColor,theme=_ref90.theme;return active?{color:textColor||theme.barSelectedColor,borderBottomColor:theme.barSelectedColor}:{color:textColor||theme.barTextColor,borderBottomColor:"transparent"}}));TabButton.displayName="TabButton";var IconButton=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)(ButtonOrLink,{shouldForwardProp:_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.R_})((function(){return{alignItems:"center",background:"transparent",border:"none",borderRadius:4,color:"inherit",cursor:"pointer",display:"inline-flex",fontSize:13,fontWeight:"bold",height:28,justifyContent:"center",marginTop:6,padding:"8px 7px","& > svg":{width:14}}}),(function(_ref91){var active=_ref91.active,theme=_ref91.theme;return active?{backgroundColor:theme.background.hoverable,color:theme.color.secondary}:{}}),(function(_ref92){var disabled=_ref92.disabled,theme=_ref92.theme;return disabled?{opacity:.5,cursor:"not-allowed"}:{"&:hover, &:focus-visible":{background:curriedTransparentize$1(.88,theme.color.secondary),color:theme.color.secondary},"&:focus-visible":{outline:auto},"&:focus:not(:focus-visible)":{outline:"none"}}}));IconButton.displayName="IconButton";var IconPlaceholder=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref93){var theme=_ref93.theme;return{width:14,height:14,backgroundColor:theme.appBorderColor,animation:"".concat(theme.animation.glow," 1.5s ease-in-out infinite")}})),IconButtonSkeletonWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(){return{marginTop:6,padding:7,height:28}})),IconButtonSkeleton=function IconButtonSkeleton(){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(IconButtonSkeletonWrapper,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(IconPlaceholder,null))},Wrapper$6=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref94){var theme=_ref94.theme;return _ref94.bordered?{backgroundClip:"padding-box",border:"1px solid ".concat(theme.appBorderColor),borderRadius:theme.appBorderRadius,overflow:"hidden",boxSizing:"border-box"}:{}}),(function(_ref95){return _ref95.absolute?{width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column"}:{display:"block"}})),TabBar=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({overflow:"hidden","&:first-of-type":{marginLeft:-3}}),Content=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({display:"block",position:"relative"},(function(_ref96){var theme=_ref96.theme;return{fontSize:theme.typography.size.s2-1,background:theme.background.content}}),(function(_ref97){var bordered=_ref97.bordered,theme=_ref97.theme;return bordered?{borderRadius:"0 0 ".concat(theme.appBorderRadius-1,"px ").concat(theme.appBorderRadius-1,"px")}:{}}),(function(_ref98){var absolute=_ref98.absolute,bordered=_ref98.bordered;return absolute?_defineProperty2({height:"calc(100% - ".concat(bordered?42:40,"px)"),position:"absolute",left:0+(bordered?1:0),right:0+(bordered?1:0),bottom:0+(bordered?1:0),top:40+(bordered?1:0),overflow:"auto"},"& > *:first-child",{position:"absolute",left:0+(bordered?1:0),right:0+(bordered?1:0),bottom:0+(bordered?1:0),top:0+(bordered?1:0),height:"calc(100% - ".concat(bordered?2:0,"px)"),overflow:"auto"}):{}})),VisuallyHidden=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref100){return _ref100.active?{display:"block"}:{display:"none"}})),TabWrapper=function TabWrapper(_ref101){var active=_ref101.active,render=_ref101.render,children=_ref101.children;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(VisuallyHidden,{active:active},render?render():children)},childrenToList=function childrenToList(children,selected){return react__WEBPACK_IMPORTED_MODULE_51__.Children.toArray(children).map((function(_ref102,index){var _ref102$props=_ref102.props,title=_ref102$props.title,id=_ref102$props.id,color=_ref102$props.color,childrenOfChild=_ref102$props.children,content=Array.isArray(childrenOfChild)?childrenOfChild[0]:childrenOfChild;return{active:selected?id===selected:0===index,title:title,id:id,color:color,render:"function"==typeof content?content:function(_ref103){var active=_ref103.active,key=_ref103.key;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(VisuallyHidden,{key:key,active:active,role:"tabpanel"},content)}}}))},Tabs=(0,react__WEBPACK_IMPORTED_MODULE_51__.memo)((function(_ref104){var children=_ref104.children,selected=_ref104.selected,actions=_ref104.actions,absolute=_ref104.absolute,bordered=_ref104.bordered,tools=_ref104.tools,backgroundColor=_ref104.backgroundColor,htmlId=_ref104.id,list=childrenToList(children,selected);return list.length?react__WEBPACK_IMPORTED_MODULE_51__.createElement(Wrapper$6,{absolute:absolute,bordered:bordered,id:htmlId},react__WEBPACK_IMPORTED_MODULE_51__.createElement(FlexBar,{border:!0,backgroundColor:backgroundColor},react__WEBPACK_IMPORTED_MODULE_51__.createElement(TabBar,{role:"tablist"},list.map((function(_ref105){var title=_ref105.title,id=_ref105.id,active=_ref105.active,color=_ref105.color,tabTitle="function"==typeof title?title():title;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(TabButton,{id:"tabbutton-".concat((0,_storybook_csf__WEBPACK_IMPORTED_MODULE_53__.sanitize)(tabTitle)),className:"tabbutton ".concat(active?"tabbutton-active":""),type:"button",key:id,active:active,textColor:color,onClick:function onClick(e){e.preventDefault(),actions.onSelect(id)},role:"tab"},tabTitle)}))),tools?react__WEBPACK_IMPORTED_MODULE_51__.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,null,tools):null),react__WEBPACK_IMPORTED_MODULE_51__.createElement(Content,{id:"panel-tab-content",bordered:bordered,absolute:absolute},list.map((function(_ref106){var id=_ref106.id,active=_ref106.active;return(0,_ref106.render)({key:id,active:active})})))):react__WEBPACK_IMPORTED_MODULE_51__.createElement(Placeholder,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,{key:"title"},"Nothing found"))}));Tabs.displayName="Tabs",Tabs.defaultProps={id:null,children:null,tools:null,selected:null,absolute:!1,bordered:!1};var TabsState=function(_Component2){_inherits(TabsState,_Component2);var _super2=_createSuper(TabsState);function TabsState(props){var _this3;return _classCallCheck(this,TabsState),(_this3=_super2.call(this,props)).handlers={onSelect:function onSelect(id){return _this3.setState({selected:id})}},_this3.state={selected:props.initial},_this3}return _createClass(TabsState,[{key:"render",value:function render(){var _this$props2=this.props,_this$props2$bordered=_this$props2.bordered,bordered=void 0!==_this$props2$bordered&&_this$props2$bordered,_this$props2$absolute=_this$props2.absolute,absolute=void 0!==_this$props2$absolute&&_this$props2$absolute,children=_this$props2.children,backgroundColor=_this$props2.backgroundColor,selected=this.state.selected;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Tabs,{bordered:bordered,absolute:absolute,selected:selected,backgroundColor:backgroundColor,actions:this.handlers},children)}}]),TabsState}(react__WEBPACK_IMPORTED_MODULE_51__.Component);TabsState.defaultProps={children:[],initial:null,absolute:!1,bordered:!1,backgroundColor:""};var Separator=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.span((function(_ref107){return{width:1,height:20,background:_ref107.theme.appBorderColor,marginTop:10,marginLeft:6,marginRight:2}}),(function(_ref108){return _ref108.force?{}:{"& + &":{display:"none"}}}));Separator.displayName="Separator";var interleaveSeparators=function interleaveSeparators(list){return list.reduce((function(acc,item,index){return item?react__WEBPACK_IMPORTED_MODULE_51__.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,{key:item.id||item.key||"f-".concat(index)},acc,index>0?react__WEBPACK_IMPORTED_MODULE_51__.createElement(Separator,{key:"s-".concat(index)}):null,item.render()||item):acc}),null)},usePrevious=function usePrevious(value){var ref=(0,react__WEBPACK_IMPORTED_MODULE_51__.useRef)();return(0,react__WEBPACK_IMPORTED_MODULE_51__.useEffect)((function(){ref.current=value}),[value]),ref.current},useUpdate=function useUpdate(update,value){var previousValue=usePrevious(value);return update?value:previousValue},AddonPanel=function AddonPanel(_ref109){var active=_ref109.active,children=_ref109.children;return react__WEBPACK_IMPORTED_MODULE_51__.createElement("div",{hidden:!active,style:{transform:"translateX(0px)"}},useUpdate(active,children))},StorybookLogo=function StorybookLogo(_a){var alt=_a.alt,props=__rest(_a,["alt"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement("svg",Object.assign({width:"200px",height:"40px",viewBox:"0 0 200 40"},props,{role:"img"}),alt?react__WEBPACK_IMPORTED_MODULE_51__.createElement("title",null,alt):null,react__WEBPACK_IMPORTED_MODULE_51__.createElement("defs",null,react__WEBPACK_IMPORTED_MODULE_51__.createElement("path",{d:"M1.2 36.9L0 3.9c0-1.1.8-2 1.9-2.1l28-1.8a2 2 0 0 1 2.2 1.9 2 2 0 0 1 0 .1v36a2 2 0 0 1-2 2 2 2 0 0 1-.1 0L3.2 38.8a2 2 0 0 1-2-2z",id:"a"})),react__WEBPACK_IMPORTED_MODULE_51__.createElement("g",{fill:"none",fillRule:"evenodd"},react__WEBPACK_IMPORTED_MODULE_51__.createElement("path",{d:"M53.3 31.7c-1.7 0-3.4-.3-5-.7-1.5-.5-2.8-1.1-3.9-2l1.6-3.5c2.2 1.5 4.6 2.3 7.3 2.3 1.5 0 2.5-.2 3.3-.7.7-.5 1.1-1 1.1-1.9 0-.7-.3-1.3-1-1.7s-2-.8-3.7-1.2c-2-.4-3.6-.9-4.8-1.5-1.1-.5-2-1.2-2.6-2-.5-1-.8-2-.8-3.2 0-1.4.4-2.6 1.2-3.6.7-1.1 1.8-2 3.2-2.6 1.3-.6 2.9-.9 4.7-.9 1.6 0 3.1.3 4.6.7 1.5.5 2.7 1.1 3.5 2l-1.6 3.5c-2-1.5-4.2-2.3-6.5-2.3-1.3 0-2.3.2-3 .8-.8.5-1.2 1.1-1.2 2 0 .5.2 1 .5 1.3.2.3.7.6 1.4.9l2.9.8c2.9.6 5 1.4 6.2 2.4a5 5 0 0 1 2 4.2 6 6 0 0 1-2.5 5c-1.7 1.2-4 1.9-7 1.9zm21-3.6l1.4-.1-.2 3.5-1.9.1c-2.4 0-4.1-.5-5.2-1.5-1.1-1-1.6-2.7-1.6-4.8v-6h-3v-3.6h3V11h4.8v4.6h4v3.6h-4v6c0 1.8.9 2.8 2.6 2.8zm11.1 3.5c-1.6 0-3-.3-4.3-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.3-1 1.7 0 3.2.3 4.4 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.4 1zm0-3.6c2.4 0 3.6-1.6 3.6-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.6-1c-2.3 0-3.5 1.4-3.5 4.4 0 3 1.2 4.6 3.5 4.6zm21.7-8.8l-2.7.3c-1.3.2-2.3.5-2.8 1.2-.6.6-.9 1.4-.9 2.5v8.2H96V15.7h4.6v2.6c.8-1.8 2.5-2.8 5-3h1.3l.3 4zm14-3.5h4.8L116.4 37h-4.9l3-6.6-6.4-14.8h5l4 10 4-10zm16-.4c1.4 0 2.6.3 3.6 1 1 .6 1.9 1.6 2.5 2.8.6 1.2.9 2.7.9 4.3 0 1.6-.3 3-1 4.3a6.9 6.9 0 0 1-2.4 2.9c-1 .7-2.2 1-3.6 1-1 0-2-.2-3-.7-.8-.4-1.5-1-2-1.9v2.4h-4.7V8.8h4.8v9c.5-.8 1.2-1.4 2-1.9.9-.4 1.8-.6 3-.6zM135.7 28c1.1 0 2-.4 2.6-1.2.6-.8 1-2 1-3.4 0-1.5-.4-2.5-1-3.3s-1.5-1.1-2.6-1.1-2 .3-2.6 1.1c-.6.8-1 2-1 3.3 0 1.5.4 2.6 1 3.4.6.8 1.5 1.2 2.6 1.2zm18.9 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.3 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm18 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.4 1a7 7 0 0 1 2.9 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm27.4 3.4h-6l-6-7v7h-4.8V8.8h4.9v13.6l5.8-6.7h5.7l-6.6 7.5 7 8.2z",fill:"currentColor"}),react__WEBPACK_IMPORTED_MODULE_51__.createElement("mask",{id:"b",fill:"#fff"},react__WEBPACK_IMPORTED_MODULE_51__.createElement("use",{xlinkHref:"#a"})),react__WEBPACK_IMPORTED_MODULE_51__.createElement("use",{fill:"#FF4785",fillRule:"nonzero",xlinkHref:"#a"}),react__WEBPACK_IMPORTED_MODULE_51__.createElement("path",{d:"M23.7 5L24 .2l3.9-.3.1 4.8a.3.3 0 0 1-.5.2L26 3.8l-1.7 1.4a.3.3 0 0 1-.5-.3zm-5 10c0 .9 5.3.5 6 0 0-5.4-2.8-8.2-8-8.2-5.3 0-8.2 2.8-8.2 7.1 0 7.4 10 7.6 10 11.6 0 1.2-.5 1.9-1.8 1.9-1.6 0-2.2-.9-2.1-3.6 0-.6-6.1-.8-6.3 0-.5 6.7 3.7 8.6 8.5 8.6 4.6 0 8.3-2.5 8.3-7 0-7.9-10.2-7.7-10.2-11.6 0-1.6 1.2-1.8 2-1.8.6 0 2 0 1.9 3z",fill:"#FFF",fillRule:"nonzero",mask:"url(#b)"})))},StorybookIcon=function StorybookIcon(_a){var props=__rest(_a,[]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement("svg",Object.assign({viewBox:"0 0 64 64"},props),react__WEBPACK_IMPORTED_MODULE_51__.createElement("title",null,"Storybook icon"),react__WEBPACK_IMPORTED_MODULE_51__.createElement("g",{id:"Artboard",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},react__WEBPACK_IMPORTED_MODULE_51__.createElement("path",{d:"M8.04798541,58.7875918 L6.07908839,6.32540407 C6.01406344,4.5927838 7.34257463,3.12440831 9.07303814,3.01625434 L53.6958037,0.227331489 C55.457209,0.117243658 56.974354,1.45590096 57.0844418,3.21730626 C57.0885895,3.28366922 57.0906648,3.35014546 57.0906648,3.41663791 L57.0906648,60.5834697 C57.0906648,62.3483119 55.6599776,63.7789992 53.8951354,63.7789992 C53.847325,63.7789992 53.7995207,63.7779262 53.7517585,63.775781 L11.0978899,61.8600599 C9.43669044,61.7854501 8.11034889,60.4492961 8.04798541,58.7875918 Z",id:"path-1",fill:"#FF4785",fillRule:"nonzero"}),react__WEBPACK_IMPORTED_MODULE_51__.createElement("path",{d:"M35.9095005,24.1768792 C35.9095005,25.420127 44.2838488,24.8242707 45.4080313,23.9509748 C45.4080313,15.4847538 40.8652557,11.0358878 32.5466666,11.0358878 C24.2280775,11.0358878 19.5673077,15.553972 19.5673077,22.3311017 C19.5673077,34.1346028 35.4965208,34.3605071 35.4965208,40.7987804 C35.4965208,42.606015 34.6115646,43.6790606 32.6646607,43.6790606 C30.127786,43.6790606 29.1248356,42.3834613 29.2428298,37.9783269 C29.2428298,37.0226907 19.5673077,36.7247626 19.2723223,37.9783269 C18.5211693,48.6535354 25.1720308,51.7326752 32.7826549,51.7326752 C40.1572906,51.7326752 45.939005,47.8018145 45.939005,40.6858282 C45.939005,28.035186 29.7738035,28.3740425 29.7738035,22.1051974 C29.7738035,19.5637737 31.6617103,19.2249173 32.7826549,19.2249173 C33.9625966,19.2249173 36.0864917,19.4328883 35.9095005,24.1768792 Z",id:"path9_fill-path",fill:"#FFFFFF",fillRule:"nonzero"}),react__WEBPACK_IMPORTED_MODULE_51__.createElement("path",{d:"M44.0461638,0.830433986 L50.1874092,0.446606143 L50.443532,7.7810017 C50.4527198,8.04410717 50.2468789,8.26484453 49.9837734,8.27403237 C49.871115,8.27796649 49.7607078,8.24184808 49.6721567,8.17209069 L47.3089847,6.3104681 L44.5110468,8.43287463 C44.3012992,8.591981 44.0022839,8.55092814 43.8431776,8.34118051 C43.7762017,8.25288717 43.742082,8.14401677 43.7466857,8.03329059 L44.0461638,0.830433986 Z",id:"Path",fill:"#FFFFFF"})))};function e(){return(e=Object.assign||function(t){for(var e=1;e",lt:"<",nbsp:" ",quot:"“"},a=["style","script"],u=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,i=/mailto:/i,l=/\n{2,}$/,s=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,_2=/^ *> ?/gm,f=/^ {2,}\n/,d=/^(?:( *[-*_]) *){3,}(?:\n *)+\n/,p=/^\s*(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n *)+\n?/,g=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,m=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,y=/^(?:\n *)*\n/,h=/\r\n?/g,k=/^\[\^([^\]]+)](:.*)\n/,x=/^\[\^([^\]]+)]/,v=/\f/g,b=/^\s*?\[(x|\s)\]/,S=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,$=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,w=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,z=/&([a-z]+);/g,E=/^)/,A=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,R=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,I=/^\{.*\}$/,M=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,O=/^<([^ >]+@[^ >]+)>/,B=/^<([^ >]+:\/[^ >]+)>/,L=/ *\n+$/,T=/(?:^|\n)( *)$/,j=/-([a-z])?/gi,C=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,D=/^\[([^\]]*)\]:\s*(\S+)\s*("([^"]*)")?/,N=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Z=/^\[([^\]]*)\] ?\[([^\]]*)\]/,F=/(\[|\])/g,P=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,G=/\t/g,H=/^ *\| */,q=/(^ *\||\| *$)/g,U=/ *$/,V=/^ *:-+: *$/,W=/^ *:-+ *$/,Q=/^ *-+: *$/,X=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,J=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,K=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,Y=/^\\([^0-9A-Za-z\s])/,tt=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,et=/^\n+/,nt=/^([ \t]*)/,rt=/\\([^0-9A-Z\s])/gi,ot=new RegExp("^( *)((?:[*+-]|\\d+\\.)) +"),ct=new RegExp("^( *)((?:[*+-]|\\d+\\.)) +[^\\n]*(?:\\n(?!\\1(?:[*+-]|\\d+\\.) )[^\\n]*)*(\\n|$)","gm"),at=new RegExp("^( *)((?:[*+-]|\\d+\\.)) [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1(?:[*+-]|\\d+\\.) (?!(?:[*+-]|\\d+\\.) ))\\n*|\\s*\\n*$)"),ut="(?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*",it=new RegExp("^\\[("+ut+")\\]\\(\\s*?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),lt=new RegExp("^!\\[("+ut+")\\]\\(\\s*?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),st=[s,g,p,S,$,E,ct,at,C],_t=[].concat(st,[/^[^\n]+(?: \n|\n{2,})/,w,R]);function ft(t){return t.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function dt(t){return Q.test(t)?"right":V.test(t)?"center":W.test(t)?"left":null}function pt(t,e,n){var r=n.t;n.t=!0;var o=e(t.trim(),n);n.t=r;var c=[[]];return o.forEach((function(t,e){"tableSeparator"===t.type?0!==e&&e!==o.length-1&&c.push([]):("text"!==t.type||null!=o[e+1]&&"tableSeparator"!==o[e+1].type||(t.content=t.content.replace(U,"")),c[c.length-1].push(t))})),c}function gt(t,e,n){n.o=!0;var r=pt(t[1],e,n),o=t[2].replace(q,"").split("|").map(dt),c=function(t,e,n){return t.trim().split("\n").map((function(t){return pt(t,e,n)}))}(t[3],e,n);return n.o=!1,{align:o,cells:c,header:r,type:"table"}}function mt(t,e){return null==t.align[e]?{}:{textAlign:t.align[e]}}function yt(t){return function(e,n){return n.o?t.exec(e):null}}function ht(t){return function(e,n){return n.o||n.u?t.exec(e):null}}function kt(t){return function(e,n){return n.o||n.u?null:t.exec(e)}}function xt(t){return function(e){return t.exec(e)}}function vt(t,e,n){if(e.o||e.u)return null;if(n&&!n.endsWith("\n"))return null;var r="";t.split("\n").every((function(t){return!st.some((function(e){return e.test(t)}))&&(r+=t+"\n",t.trim())}));var o=r.trimEnd();return""==o?null:[r,o]}function bt(t){try{if(decodeURIComponent(t).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data):/i))return null}catch(t){return null}return t}function St(t){return t.replace(rt,"$1")}function $t(t,e,n){var r=n.o||!1,o=n.u||!1;n.o=!0,n.u=!0;var c=t(e,n);return n.o=r,n.u=o,c}function wt(t,e,n){var r=n.o||!1,o=n.u||!1;n.o=!1,n.u=!0;var c=t(e,n);return n.o=r,n.u=o,c}function zt(t,e,n){return n.o=!1,t(e+"\n\n",n)}var Et=function Et(t,e,n){return{content:$t(e,t[1],n)}},Ot,t;function At(){return{}}function Rt(){return null}function It(){for(var _len3=arguments.length,t=new Array(_len3),_key3=0;_key3<_len3;_key3++)t[_key3]=arguments[_key3];return t.filter(Boolean).join(" ")}function Mt(t,e,n){for(var r=t,o=e.split(".");o.length&&void 0!==(r=r[o[0]]);)o.shift();return r||n}function Bt(r){var q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};q.overrides=q.overrides||{},q.slugify=q.slugify||ft,q.namedCodesToUnicode=q.namedCodesToUnicode?e({},c,q.namedCodesToUnicode):c;var U=q.createElement||react__WEBPACK_IMPORTED_MODULE_51__.createElement;function V(t,n){for(var o=Mt(q.overrides,"".concat(t,".props"),{}),_len4=arguments.length,r=new Array(_len4>2?_len4-2:0),_key4=2;_key4<_len4;_key4++)r[_key4-2]=arguments[_key4];return U.apply(void 0,[function(t,e){var n=Mt(e,t);return n?"function"==typeof n||"object"==_typeof(n)&&"render"in n?n:Mt(e,"".concat(t,".component"),t):t}(t,q.overrides),e({},n,o,{className:It(null==n?void 0:n.className,o.className)||void 0})].concat(r))}function W(e){var n=!1;q.forceInline?n=!0:q.forceBlock||(n=!1===P.test(e));for(var r=pt(dt(n?e:"".concat(e.trimEnd().replace(et,""),"\n\n"),{o:n}));"string"==typeof r[r.length-1]&&!r[r.length-1].trim();)r.pop();if(null===q.wrapper)return r;var c,o=q.wrapper||(n?"span":"div");if(r.length>1||q.forceWrapper)c=r;else{if(1===r.length)return"string"==typeof(c=r[0])?V("span",{key:"outer"},c):c;c=null}return react__WEBPACK_IMPORTED_MODULE_51__.createElement(o,{key:"outer"},c)}function Q(e){var r=e.match(u);return r?r.reduce((function(e,r,c){var t,a=r.indexOf("=");if(-1!==a){var _u=(t=r.slice(0,a),-1!==t.indexOf("-")&&null===t.match(A)&&(t=t.replace(j,(function(t,e){return e.toUpperCase()}))),t).trim(),_i2=function(t){return t?(n.test(t.charAt(0))&&(t=t.substr(1)),n.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""}(r.slice(a+1).trim()),_l=o[_u]||_u,_s2=e[_l]=function(t,e){return"style"===t?e.split(/;\s?/).reduce((function(t,e){var n=e.slice(0,e.indexOf(":"));return t[n.replace(/(-[a-z])/g,(function(t){return t[1].toUpperCase()}))]=e.slice(n.length+1).trim(),t}),{}):"href"===t?bt(e):(e.match(I)&&(e=e.slice(1,e.length-1)),"true"===e||"false"!==e&&e)}(_u,_i2);"string"==typeof _s2&&(w.test(_s2)||R.test(_s2))&&(e[_l]=react__WEBPACK_IMPORTED_MODULE_51__.cloneElement(W(_s2.trim()),{key:c}))}else"style"!==r&&(e[o[r]||r]=!0);return e}),{}):void 0}var rt=[],ut={},st={blockQuote:{i:kt(s),l:Ot.HIGH,_:function _(t,e,n){return{content:e(t[0].replace(_2,""),n)}},p:function p(t,e,n){return V("blockquote",{key:n.g},e(t.content,n))}},breakLine:{i:xt(f),l:Ot.HIGH,_:At,p:function p(t,e,n){return V("br",{key:n.g})}},breakThematic:{i:kt(d),l:Ot.HIGH,_:At,p:function p(t,e,n){return V("hr",{key:n.g})}},codeBlock:{i:kt(g),l:Ot.MAX,_:function _(t){return{content:t[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),lang:void 0}},p:function p(t,e,n){return V("pre",{key:n.g},V("code",{className:t.lang?"lang-".concat(t.lang):""},t.content))}},codeFenced:{i:kt(p),l:Ot.MAX,_:function _(t){return{content:t[3],lang:t[2]||void 0,type:"codeBlock"}}},codeInline:{i:ht(m),l:Ot.LOW,_:function _(t){return{content:t[2]}},p:function p(t,e,n){return V("code",{key:n.g},t.content)}},footnote:{i:kt(k),l:Ot.MAX,_:function _(t){return rt.push({footnote:t[2],identifier:t[1]}),{}},p:Rt},footnoteReference:{i:yt(x),l:Ot.HIGH,_:function _(t){return{content:t[1],target:"#".concat(q.slugify(t[1]))}},p:function p(t,e,n){return V("a",{key:n.g,href:bt(t.target)},V("sup",{key:n.g},t.content))}},gfmTask:{i:yt(b),l:Ot.HIGH,_:function _(t){return{completed:"x"===t[1].toLowerCase()}},p:function p(t,e,n){return V("input",{checked:t.completed,key:n.g,readOnly:!0,type:"checkbox"})}},heading:{i:kt(S),l:Ot.HIGH,_:function _(t,e,n){return{content:$t(e,t[2],n),id:q.slugify(t[2]),level:t[1].length}},p:function p(t,e,n){return t.tag="h".concat(t.level),V(t.tag,{id:t.id,key:n.g},e(t.content,n))}},headingSetext:{i:kt($),l:Ot.MAX,_:function _(t,e,n){return{content:$t(e,t[1],n),level:"="===t[2]?1:2,type:"heading"}}},htmlComment:{i:xt(E),l:Ot.HIGH,_:function _(){return{}},p:Rt},image:{i:ht(lt),l:Ot.HIGH,_:function _(t){return{alt:t[1],target:St(t[2]),title:t[3]}},p:function p(t,e,n){return V("img",{key:n.g,alt:t.alt||void 0,title:t.title||void 0,src:bt(t.target)})}},link:{i:yt(it),l:Ot.LOW,_:function _(t,e,n){return{content:wt(e,t[1],n),target:St(t[2]),title:t[3]}},p:function p(t,e,n){return V("a",{key:n.g,href:bt(t.target),title:t.title},e(t.content,n))}},linkAngleBraceStyleDetector:{i:yt(B),l:Ot.MAX,_:function _(t){return{content:[{content:t[1],type:"text"}],target:t[1],type:"link"}}},linkBareUrlDetector:{i:function i(t,e){return e.m?null:yt(M)(t,e)},l:Ot.MAX,_:function _(t){return{content:[{content:t[1],type:"text"}],target:t[1],title:void 0,type:"link"}}},linkMailtoDetector:{i:yt(O),l:Ot.MAX,_:function _(t){var e=t[1],n=t[1];return i.test(n)||(n="mailto:"+n),{content:[{content:e.replace("mailto:",""),type:"text"}],target:n,type:"link"}}},list:{i:function i(t,e,n){var r=T.exec(n);return!r||!e.h&&e.o?null:at.exec(t=r[1]+t)},l:Ot.HIGH,_:function _(t,e,n){var r=t[2],o=r.length>1,c=o?+r:void 0,a=t[0].replace(l,"\n").match(ct),u=!1;return{items:a.map((function(t,r){var o=ot.exec(t)[0].length,c=new RegExp("^ {1,"+o+"}","gm"),i=t.replace(c,"").replace(ot,""),l=r===a.length-1,s=-1!==i.indexOf("\n\n")||l&&u;u=s;var d,_=n.o,f=n.h;n.h=!0,s?(n.o=!1,d=i.replace(L,"\n\n")):(n.o=!0,d=i.replace(L,""));var p=e(d,n);return n.o=_,n.h=f,p})),ordered:o,start:c}},p:function p(t,e,n){return V(t.ordered?"ol":"ul",{key:n.g,start:t.start},t.items.map((function(t,r){return V("li",{key:r},e(t,n))})))}},newlineCoalescer:{i:kt(y),l:Ot.LOW,_:At,p:function p(){return"\n"}},paragraph:{i:vt,l:Ot.LOW,_:Et,p:function p(t,e,n){return V("p",{key:n.g},e(t.content,n))}},ref:{i:yt(D),l:Ot.MAX,_:function _(t){return ut[t[1]]={target:t[2],title:t[4]},{}},p:Rt},refImage:{i:ht(N),l:Ot.MAX,_:function _(t){return{alt:t[1]||void 0,ref:t[2]}},p:function p(t,e,n){return V("img",{key:n.g,alt:t.alt,src:bt(ut[t.ref].target),title:ut[t.ref].title})}},refLink:{i:yt(Z),l:Ot.MAX,_:function _(t,e,n){return{content:e(t[1],n),fallbackContent:e(t[0].replace(F,"\\$1"),n),ref:t[2]}},p:function p(t,e,n){return ut[t.ref]?V("a",{key:n.g,href:bt(ut[t.ref].target),title:ut[t.ref].title},e(t.content,n)):V("span",{key:n.g},e(t.fallbackContent,n))}},table:{i:kt(C),l:Ot.HIGH,_:gt,p:function p(t,e,n){return V("table",{key:n.g},V("thead",null,V("tr",null,t.header.map((function(r,o){return V("th",{key:o,style:mt(t,o)},e(r,n))})))),V("tbody",null,t.cells.map((function(r,o){return V("tr",{key:o},r.map((function(r,o){return V("td",{key:o,style:mt(t,o)},e(r,n))})))}))))}},tableSeparator:{i:function i(t,e){return e.t?H.exec(t):null},l:Ot.HIGH,_:function _(){return{type:"tableSeparator"}},p:function p(){return" | "}},text:{i:xt(tt),l:Ot.MIN,_:function _(t){return{content:t[0].replace(z,(function(t,e){return q.namedCodesToUnicode[e]?q.namedCodesToUnicode[e]:t}))}},p:function p(t){return t.content}},textBolded:{i:ht(X),l:Ot.MED,_:function _(t,e,n){return{content:e(t[2],n)}},p:function p(t,e,n){return V("strong",{key:n.g},e(t.content,n))}},textEmphasized:{i:ht(J),l:Ot.LOW,_:function _(t,e,n){return{content:e(t[2],n)}},p:function p(t,e,n){return V("em",{key:n.g},e(t.content,n))}},textEscaped:{i:ht(Y),l:Ot.HIGH,_:function _(t){return{content:t[1],type:"text"}}},textStrikethroughed:{i:ht(K),l:Ot.LOW,_:Et,p:function p(t,e,n){return V("del",{key:n.g},e(t.content,n))}}};!0!==q.disableParsingRawHTML&&(st.htmlBlock={i:xt(w),l:Ot.HIGH,_:function _(t,e,n){var i,r=_slicedToArray(t[3].match(nt),2)[1],o=new RegExp("^".concat(r),"gm"),c=t[3].replace(o,""),u=(i=c,_t.some((function(t){return t.test(i)}))?zt:$t),l=t[1].toLowerCase(),s=-1!==a.indexOf(l);n.m=n.m||"a"===l;var _=s?t[3]:u(e,c,n);return n.m=!1,{attrs:Q(t[2]),content:_,noInnerParse:s,tag:s?l:t[1]}},p:function p(t,n,r){return V(t.tag,e({key:r.g},t.attrs),t.noInnerParse?t.content:n(t.content,r))}},st.htmlSelfClosing={i:xt(R),l:Ot.HIGH,_:function _(t){return{attrs:Q(t[2]||""),tag:t[1]}},p:function p(t,n,r){return V(t.tag,e({},t.attrs,{key:r.g}))}});var t,Bt,dt=function(t){var e=Object.keys(t);function n(r,o){for(var c=[],a="";r;)for(var _u2=0;_u21&&void 0!==arguments[1]?arguments[1]:{};if(Array.isArray(e)){for(var _r=n.g,_o=[],_c=!1,_r2=0;_r2=0||(o[n]=t[n]);return o}(e,r);return react__WEBPACK_IMPORTED_MODULE_51__.cloneElement(Bt(n,o),c)},Description$1=function Description$1(_ref110){var markdown=_ref110.markdown;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(ResetWrapper,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(Markdown,{options:{forceBlock:!0,overrides:components$1}},markdown))},breakpoint=600,Title=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.h1(withReset,(function(_ref111){var theme=_ref111.theme;return _defineProperty2({color:theme.color.defaultText,fontSize:theme.typography.size.m3,fontWeight:theme.typography.weight.black,lineHeight:"32px"},"@media (min-width: ".concat(breakpoint,"px)"),{fontSize:theme.typography.size.l1,lineHeight:"36px",marginBottom:".5rem"})})),Subtitle=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.h2(withReset,(function(_ref113){var _ref114,theme=_ref113.theme;return _defineProperty2(_ref114={fontWeight:theme.typography.weight.regular,fontSize:theme.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15},"@media (min-width: ".concat(breakpoint,"px)"),{fontSize:theme.typography.size.m1,lineHeight:"28px",marginBottom:24}),_defineProperty2(_ref114,"color",curriedTransparentize$1(.25,theme.color.defaultText)),_ref114})),DocsContent=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({maxWidth:1e3,width:"100%"}),DocsWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref115){return _defineProperty2({background:_ref115.theme.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box"},"@media (min-width: ".concat(breakpoint,"px)"),{})})),DocsPageWrapper=function DocsPageWrapper(_ref117){var children=_ref117.children;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(DocsWrapper,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(DocsContent,null,children))},getBlockBackgroundStyle=function getBlockBackgroundStyle(theme){return{borderRadius:theme.appBorderRadius,background:theme.background.content,boxShadow:"light"===theme.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:"1px solid ".concat(theme.appBorderColor)}},getStoryHref=function getStoryHref(baseUrl,storyId){var additionalParams=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},_baseUrl$split=baseUrl.split("?"),_baseUrl$split2=_slicedToArray(_baseUrl$split,2),url=_baseUrl$split2[0],paramsStr=_baseUrl$split2[1],params=paramsStr?Object.assign(Object.assign(Object.assign({},qs__WEBPACK_IMPORTED_MODULE_54___default().parse(paramsStr)),additionalParams),{id:storyId}):Object.assign(Object.assign({},additionalParams),{id:storyId});return"".concat(url).concat(qs__WEBPACK_IMPORTED_MODULE_54___default().stringify(params,{addQueryPrefix:!0,encode:!1}))},Zoom=function Zoom(_ref118){var zoom=_ref118.zoom,resetZoom=_ref118.resetZoom;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(IconButton,{key:"zoomin",onClick:function onClick(e){e.preventDefault(),zoom(.8)},title:"Zoom in"},react__WEBPACK_IMPORTED_MODULE_51__.createElement(Icons,{icon:"zoom"})),react__WEBPACK_IMPORTED_MODULE_51__.createElement(IconButton,{key:"zoomout",onClick:function onClick(e){e.preventDefault(),zoom(1.25)},title:"Zoom out"},react__WEBPACK_IMPORTED_MODULE_51__.createElement(Icons,{icon:"zoomout"})),react__WEBPACK_IMPORTED_MODULE_51__.createElement(IconButton,{key:"zoomreset",onClick:function onClick(e){e.preventDefault(),resetZoom()},title:"Reset zoom"},react__WEBPACK_IMPORTED_MODULE_51__.createElement(Icons,{icon:"zoomreset"})))},Eject=function Eject(_ref119){var baseUrl=_ref119.baseUrl,storyId=_ref119.storyId;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(IconButton,{key:"opener",href:getStoryHref(baseUrl,storyId),target:"_blank",title:"Open canvas in new tab"},react__WEBPACK_IMPORTED_MODULE_51__.createElement(Icons,{icon:"share"}))},Bar=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)(FlexBar)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),Toolbar=function Toolbar(_a){var isLoading=_a.isLoading,storyId=_a.storyId,baseUrl=_a.baseUrl,zoom=_a.zoom,resetZoom=_a.resetZoom,rest=__rest(_a,["isLoading","storyId","baseUrl","zoom","resetZoom"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Bar,Object.assign({},rest),react__WEBPACK_IMPORTED_MODULE_51__.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,{key:"left"},isLoading?[1,2,3].map((function(key){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(IconButtonSkeleton,{key:key})})):react__WEBPACK_IMPORTED_MODULE_51__.createElement(Zoom,Object.assign({},{zoom:zoom,resetZoom:resetZoom}))),react__WEBPACK_IMPORTED_MODULE_51__.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,{key:"right"},storyId&&(isLoading?react__WEBPACK_IMPORTED_MODULE_51__.createElement(IconButtonSkeleton,null):react__WEBPACK_IMPORTED_MODULE_51__.createElement(Eject,Object.assign({},{storyId:storyId,baseUrl:baseUrl})))))},ZoomContext=(0,react__WEBPACK_IMPORTED_MODULE_51__.createContext)({scale:1}),globalWindow$1=window_1.window,IFrame=function(_Component3){_inherits(IFrame,_Component3);var _super3=_createSuper(IFrame);function IFrame(){var _this4;return _classCallCheck(this,IFrame),(_this4=_super3.apply(this,arguments)).iframe=null,_this4}return _createClass(IFrame,[{key:"componentDidMount",value:function componentDidMount(){var id=this.props.id;this.iframe=globalWindow$1.document.getElementById(id)}},{key:"shouldComponentUpdate",value:function shouldComponentUpdate(nextProps){var scale=nextProps.scale;return scale!==this.props.scale&&this.setIframeBodyStyle({width:"".concat(100*scale,"%"),height:"".concat(100*scale,"%"),transform:"scale(".concat(1/scale,")"),transformOrigin:"top left"}),!1}},{key:"setIframeBodyStyle",value:function setIframeBodyStyle(style){return Object.assign(this.iframe.contentDocument.body.style,style)}},{key:"render",value:function render(){var _a=this.props,id=_a.id,title=_a.title,src=_a.src,allowFullScreen=_a.allowFullScreen,rest=(_a.scale,__rest(_a,["id","title","src","allowFullScreen","scale"]));return react__WEBPACK_IMPORTED_MODULE_51__.createElement("iframe",Object.assign({id:id,title:title,src:src,allowFullScreen:allowFullScreen,loading:"lazy"},rest))}}]),IFrame}(react__WEBPACK_IMPORTED_MODULE_51__.Component),rotate360=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.F4)(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\tfrom {\n\t\ttransform: rotate(0deg);\n\t}\n\tto {\n\t\ttransform: rotate(360deg);\n\t}\n"]))),EventSource=window_1.EventSource,CONFIG_TYPE=window_1.CONFIG_TYPE,LoaderWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref120){var _ref120$size=_ref120.size,size=void 0===_ref120$size?32:_ref120$size;return{borderRadius:"50%",cursor:"progress",display:"inline-block",overflow:"hidden",position:"absolute",transition:"all 200ms ease-out",verticalAlign:"top",top:"50%",left:"50%",marginTop:-size/2,marginLeft:-size/2,height:size,width:size,zIndex:4,borderWidth:2,borderStyle:"solid",borderColor:"rgba(97, 97, 97, 0.29)",borderTopColor:"rgb(100,100,100)",animation:"".concat(rotate360," 0.7s linear infinite"),mixBlendMode:"difference"}})),ProgressWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}),ProgressTrack=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref121){var theme=_ref121.theme;return{position:"relative",width:"80%",marginBottom:"0.75rem",maxWidth:300,height:5,borderRadius:5,background:curriedTransparentize$1(.8,theme.color.secondary),overflow:"hidden",cursor:"progress"}})),ProgressBar=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref122){return{position:"absolute",top:0,left:0,height:"100%",background:_ref122.theme.color.secondary}})),ProgressMessage=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref123){var theme=_ref123.theme;return{minHeight:"2em",fontSize:"".concat(theme.typography.size.s1,"px"),color:theme.barTextColor}})),ErrorIcon=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)(Icons)((function(_ref124){return{width:20,height:20,marginBottom:"0.5rem",color:_ref124.theme.color.mediumdark}})),ellipsis=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.F4)(_templateObject2||(_templateObject2=_taggedTemplateLiteral(['\n from { content: "..." }\n 33% { content: "." }\n 66% { content: ".." }\n to { content: "..." }\n']))),Ellipsis=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.span({"&::after":{content:"'...'",animation:"".concat(ellipsis," 1s linear infinite"),animationDelay:"1s",display:"inline-block",width:"1em",height:"auto"}}),PureLoader=function PureLoader(_a){var progress=_a.progress,error=_a.error,size=_a.size,props=__rest(_a,["progress","error","size"]);if(error)return react__WEBPACK_IMPORTED_MODULE_51__.createElement(ProgressWrapper,Object.assign({"aria-label":error.toString(),"aria-live":"polite",role:"status"},props),react__WEBPACK_IMPORTED_MODULE_51__.createElement(ErrorIcon,{icon:"lightningoff"}),react__WEBPACK_IMPORTED_MODULE_51__.createElement(ProgressMessage,null,error.message));if(progress){var _value=progress.value,modules=progress.modules,message=progress.message;return modules&&(message+=" ".concat(modules.complete," / ").concat(modules.total," modules")),react__WEBPACK_IMPORTED_MODULE_51__.createElement(ProgressWrapper,Object.assign({"aria-label":"Content is loading...","aria-live":"polite","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":100*_value,"aria-valuetext":message,role:"progressbar"},props),react__WEBPACK_IMPORTED_MODULE_51__.createElement(ProgressTrack,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(ProgressBar,{style:{width:"".concat(100*_value,"%")}})),react__WEBPACK_IMPORTED_MODULE_51__.createElement(ProgressMessage,null,message,_value<1&&react__WEBPACK_IMPORTED_MODULE_51__.createElement(Ellipsis,{key:message})))}return react__WEBPACK_IMPORTED_MODULE_51__.createElement(LoaderWrapper,Object.assign({"aria-label":"Content is loading...","aria-live":"polite",role:"status",size:size},props))},Loader=function Loader(props){var _useState4=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(void 0),2),progress=_useState4[0],setProgress=_useState4[1],_useState6=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(void 0),2),error=_useState6[0],setError=_useState6[1];return(0,react__WEBPACK_IMPORTED_MODULE_51__.useEffect)((function(){if("DEVELOPMENT"===CONFIG_TYPE&&EventSource){var lastProgress,eventSource=new EventSource("/progress");return eventSource.onmessage=function(event){try{lastProgress=JSON.parse(event.data),setProgress(lastProgress)}catch(e){setError(e),eventSource.close()}},eventSource.onerror=function(){lastProgress&&1!==lastProgress.value&&setError(new Error("Connection closed")),eventSource.close()},function(){return eventSource.close()}}}),[]),react__WEBPACK_IMPORTED_MODULE_51__.createElement(PureLoader,Object.assign({progress:progress,error:error},props))},PREVIEW_URL=window_1.PREVIEW_URL,BASE_URL=PREVIEW_URL||"iframe.html",StoryError;!function(StoryError){StoryError.NO_STORY="No component or story to display"}(StoryError||(StoryError={}));var MISSING_STORY=function MISSING_STORY(id){return id?'Story "'.concat(id,"\" doesn't exist."):StoryError.NO_STORY},InlineStory=function InlineStory(_ref125){var storyFn=_ref125.storyFn,height=_ref125.height,id=_ref125.id;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,null,height?react__WEBPACK_IMPORTED_MODULE_51__.createElement("style",null,"#story--".concat(id," { min-height: ").concat(height,"; transform: translateZ(0); overflow: auto }")):null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,null,storyFn?(0,react__WEBPACK_IMPORTED_MODULE_51__.createElement)(storyFn):react__WEBPACK_IMPORTED_MODULE_51__.createElement(EmptyBlock,null,MISSING_STORY(id))))},IFrameStory=function IFrameStory(_ref126){var id=_ref126.id,title=_ref126.title,_ref126$height=_ref126.height,height=void 0===_ref126$height?"500px":_ref126$height;return react__WEBPACK_IMPORTED_MODULE_51__.createElement("div",{style:{width:"100%",height:height}},react__WEBPACK_IMPORTED_MODULE_51__.createElement(ZoomContext.Consumer,null,(function(_ref127){var scale=_ref127.scale;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(IFrame,{key:"iframe",id:"iframe--".concat(id),title:title,src:getStoryHref(BASE_URL,id,{viewMode:"story"}),allowFullScreen:!0,scale:scale,style:{width:"100%",height:"100%",border:"0 none"}})})))},Story=function Story(_a){_a.children;var error=_a.error,inline=_a.inline,props=__rest(_a,["children","error","inline"]),id=props.id,title=props.title,height=props.height;return error?react__WEBPACK_IMPORTED_MODULE_51__.createElement(EmptyBlock,null,error):inline?react__WEBPACK_IMPORTED_MODULE_51__.createElement(InlineStory,Object.assign({},props)):react__WEBPACK_IMPORTED_MODULE_51__.createElement(IFrameStory,{id:id,title:title,height:height})},StorySkeleton=function StorySkeleton(){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Loader,null)},ChildrenContainer=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref128){var isColumn=_ref128.isColumn,columns=_ref128.columns,layout=_ref128.layout;return{display:isColumn||!columns?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:isColumn?"column":"row","& .innerZoomElementWrapper > *":isColumn?{width:"fullscreen"!==layout?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:"fullscreen"!==layout?"calc(100% - 20px)":"100%",display:"inline-block"}}}),(function(_ref129){var _ref129$layout=_ref129.layout,layout=void 0===_ref129$layout?"padded":_ref129$layout;return"centered"===layout||"padded"===layout?{padding:"30px 20px",margin:-10,"& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{}}),(function(_ref130){var _ref130$layout=_ref130.layout;return"centered"===(void 0===_ref130$layout?"padded":_ref130$layout)?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{}}),(function(_ref131){var columns=_ref131.columns;return columns&&columns>1?{".innerZoomElementWrapper > *":{minWidth:"calc(100% / ".concat(columns," - 20px)")}}:{}})),StyledSource=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)(Source)((function(_ref132){var theme=_ref132.theme;return{margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:theme.appBorderRadius,borderBottomRightRadius:theme.appBorderRadius,border:"none",background:"light"===theme.base?"rgba(0, 0, 0, 0.85)":curriedDarken$1(.05,theme.background.content),color:theme.color.lightest,button:{background:"light"===theme.base?"rgba(0, 0, 0, 0.85)":curriedDarken$1(.05,theme.background.content)}}})),PreviewContainer=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref133){var theme=_ref133.theme,withSource=_ref133.withSource,isExpanded=_ref133.isExpanded;return Object.assign(Object.assign({position:"relative",overflow:"hidden",margin:"25px 0 40px"},getBlockBackgroundStyle(theme)),{borderBottomLeftRadius:withSource&&isExpanded&&0,borderBottomRightRadius:withSource&&isExpanded&&0,borderBottomWidth:isExpanded&&0})}),(function(_ref134){return _ref134.withToolbar&&{paddingTop:40}})),getSource=function getSource(withSource,expanded,setExpanded){switch(!0){case!(!withSource||!withSource.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:function onClick(){return setExpanded(!1)}}};case expanded:return{source:react__WEBPACK_IMPORTED_MODULE_51__.createElement(StyledSource,Object.assign({},withSource,{dark:!0})),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:function onClick(){return setExpanded(!1)}}};default:return{source:react__WEBPACK_IMPORTED_MODULE_51__.createElement(StyledSource,Object.assign({},withSource,{dark:!0})),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:function onClick(){return setExpanded(!0)}}}}};function getStoryId(children){if(1===react__WEBPACK_IMPORTED_MODULE_51__.Children.count(children)){var elt=children;if(elt.props)return elt.props.id}return null}var PositionedToolbar=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)(Toolbar)({position:"absolute",top:0,left:0,right:0,height:40}),Relative=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({overflow:"hidden",position:"relative"}),getLayout=function getLayout(children){return children.reduce((function(result,c){return result||("string"==typeof c||"number"==typeof c?"padded":c.props&&c.props.parameters&&c.props.parameters.layout||"padded")}),void 0)},Preview=function Preview(_a){var isLoading=_a.isLoading,isColumn=_a.isColumn,columns=_a.columns,children=_a.children,withSource=_a.withSource,_a$withToolbar=_a.withToolbar,withToolbar=void 0!==_a$withToolbar&&_a$withToolbar,_a$isExpanded=_a.isExpanded,isExpanded=void 0!==_a$isExpanded&&_a$isExpanded,additionalActions=_a.additionalActions,className=_a.className,props=__rest(_a,["isLoading","isColumn","columns","children","withSource","withToolbar","isExpanded","additionalActions","className"]),_useState8=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(isExpanded),2),expanded=_useState8[0],setExpanded=_useState8[1],_getSource=getSource(withSource,expanded,setExpanded),source=_getSource.source,actionItem=_getSource.actionItem,_useState10=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(1),2),scale=_useState10[0],setScale=_useState10[1],previewClasses=[className].concat(["sbdocs","sbdocs-preview"]),defaultActionItems=withSource?[actionItem]:[],_useState12=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(additionalActions?_toConsumableArray(additionalActions):[]),2),additionalActionItems=_useState12[0],setAdditionalActionItems=_useState12[1],actionItems=[].concat(defaultActionItems,_toConsumableArray(additionalActionItems)),layout=getLayout(1===react__WEBPACK_IMPORTED_MODULE_51__.Children.count(children)?[children]:children),globalWindow=window_1.window,copyToClipboard=(0,react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(text){return __awaiter(void 0,void 0,void 0,regeneratorRuntime.mark((function _callee2(){var _yield$import;return regeneratorRuntime.wrap((function _callee2$(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return _context2.next=2,__webpack_require__.e(691).then(__webpack_require__.bind(__webpack_require__,"./node_modules/@storybook/components/dist/esm/syntaxhighlighter-82dea71a.js"));case 2:_yield$import=_context2.sent,(0,_yield$import.createCopyToClipboardFunction)();case 5:case"end":return _context2.stop()}}),_callee2)})))}),[]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(PreviewContainer,Object.assign({},{withSource:withSource,withToolbar:withToolbar},props,{className:previewClasses.join(" ")}),withToolbar&&react__WEBPACK_IMPORTED_MODULE_51__.createElement(PositionedToolbar,{isLoading:isLoading,border:!0,zoom:function zoom(z){return setScale(scale*z)},resetZoom:function resetZoom(){return setScale(1)},storyId:getStoryId(children),baseUrl:"./iframe.html"}),react__WEBPACK_IMPORTED_MODULE_51__.createElement(ZoomContext.Provider,{value:{scale:scale}},react__WEBPACK_IMPORTED_MODULE_51__.createElement(Relative,{className:"docs-story",onCopyCapture:withSource&&function onCopyCapture(e){e.preventDefault(),0===additionalActionItems.filter((function(item){return"Copied"===item.title})).length&©ToClipboard(source.props.code).then((function(){setAdditionalActionItems([].concat(_toConsumableArray(additionalActionItems),[{title:"Copied",onClick:function onClick(){}}])),globalWindow.setTimeout((function(){return setAdditionalActionItems(additionalActionItems.filter((function(item){return"Copied"!==item.title})))}),1500)}))}},react__WEBPACK_IMPORTED_MODULE_51__.createElement(ChildrenContainer,{isColumn:isColumn||!Array.isArray(children),columns:columns,layout:layout},react__WEBPACK_IMPORTED_MODULE_51__.createElement(Zoom$1.Element,{scale:scale},Array.isArray(children)?children.map((function(child,i){return react__WEBPACK_IMPORTED_MODULE_51__.createElement("div",{key:i},child)})):react__WEBPACK_IMPORTED_MODULE_51__.createElement("div",null,children))),react__WEBPACK_IMPORTED_MODULE_51__.createElement(ActionBar,{actionItems:actionItems}))),withSource&&expanded&&source)},StyledPreview=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)(Preview)((function(){return{".docs-story":{paddingTop:32,paddingBottom:40}}})),PreviewSkeleton=function PreviewSkeleton(){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(StyledPreview,{isLoading:!0,withToolbar:!0},react__WEBPACK_IMPORTED_MODULE_51__.createElement(StorySkeleton,null))};function arrayMap$2(array,iteratee){for(var index=-1,length=null==array?0:array.length,result=Array(length);++index-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(key,value){var data=this.__data__,index=assocIndexOf(data,key);return index<0?(++this.size,data.push([key,value])):data[index][1]=value,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++indexarrLength))return!1;var arrStacked=stack.get(array),othStacked=stack.get(other);if(arrStacked&&othStacked)return arrStacked==other&&othStacked==array;var index=-1,result=!0,seen=bitmask&COMPARE_UNORDERED_FLAG$3?new SetCache$1:void 0;for(stack.set(array,other),stack.set(other,array);++index-1&&value%1==0&&value-1&&value%1==0&&value<=MAX_SAFE_INTEGER}var isLength_1=isLength$3,baseGetTag$2=_baseGetTag,isLength$2=isLength_1,isObjectLike$4=isObjectLike_1,argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$1="[object Error]",funcTag$1="[object Function]",mapTag$4="[object Map]",numberTag$2="[object Number]",objectTag$3="[object Object]",regexpTag$2="[object RegExp]",setTag$4="[object Set]",stringTag$2="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};function baseIsTypedArray$1(value){return isObjectLike$4(value)&&isLength$2(value.length)&&!!typedArrayTags[baseGetTag$2(value)]}typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0,typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$2]=typedArrayTags[boolTag$2]=typedArrayTags[dataViewTag$3]=typedArrayTags[dateTag$2]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$4]=typedArrayTags[numberTag$2]=typedArrayTags[objectTag$3]=typedArrayTags[regexpTag$2]=typedArrayTags[setTag$4]=typedArrayTags[stringTag$2]=typedArrayTags[weakMapTag$2]=!1;var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$3(func){return function(value){return func(value)}}var _baseUnary=baseUnary$3,_nodeUtil={exports:{}};!function(module,exports){var freeGlobal=_freeGlobal,freeExports=exports&&!exports.nodeType&&exports,freeModule=freeExports&&module&&!module.nodeType&&module,freeProcess=freeModule&&freeModule.exports===freeExports&&freeGlobal.process,nodeUtil=function(){try{var types=freeModule&&freeModule.require&&freeModule.require("util").types;return types||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch(e){}}();module.exports=nodeUtil}(_nodeUtil,_nodeUtil.exports);var baseIsTypedArray=_baseIsTypedArray,baseUnary$2=_baseUnary,nodeUtil$2=_nodeUtil.exports,nodeIsTypedArray=nodeUtil$2&&nodeUtil$2.isTypedArray,isTypedArray$2=nodeIsTypedArray?baseUnary$2(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$2,baseTimes=_baseTimes,isArguments$1=isArguments_1,isArray$7=isArray_1,isBuffer$2=isBuffer$3.exports,isIndex$2=_isIndex,isTypedArray$1=isTypedArray_1,objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty;function arrayLikeKeys$2(value,inherited){var isArr=isArray$7(value),isArg=!isArr&&isArguments$1(value),isBuff=!isArr&&!isArg&&isBuffer$2(value),isType=!isArr&&!isArg&&!isBuff&&isTypedArray$1(value),skipIndexes=isArr||isArg||isBuff||isType,result=skipIndexes?baseTimes(value.length,String):[],length=result.length;for(var key in value)!inherited&&!hasOwnProperty$6.call(value,key)||skipIndexes&&("length"==key||isBuff&&("offset"==key||"parent"==key)||isType&&("buffer"==key||"byteLength"==key||"byteOffset"==key)||isIndex$2(key,length))||result.push(key);return result}var _arrayLikeKeys=arrayLikeKeys$2,objectProto$6=Object.prototype;function isPrototype$3(value){var Ctor=value&&value.constructor;return value===("function"==typeof Ctor&&Ctor.prototype||objectProto$6)}var _isPrototype=isPrototype$3;function overArg$2(func,transform){return function(arg){return func(transform(arg))}}var _overArg=overArg$2,overArg$1=_overArg,nativeKeys$1=overArg$1(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$2=_isPrototype,nativeKeys=_nativeKeys,objectProto$5=Object.prototype,hasOwnProperty$5=objectProto$5.hasOwnProperty;function baseKeys$1(object){if(!isPrototype$2(object))return nativeKeys(object);var result=[];for(var key in Object(object))hasOwnProperty$5.call(object,key)&&"constructor"!=key&&result.push(key);return result}var _baseKeys=baseKeys$1,isFunction=isFunction_1,isLength$1=isLength_1;function isArrayLike$2(value){return null!=value&&isLength$1(value.length)&&!isFunction(value)}var isArrayLike_1=isArrayLike$2,arrayLikeKeys$1=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike$1=isArrayLike_1;function keys$4(object){return isArrayLike$1(object)?arrayLikeKeys$1(object):baseKeys(object)}var keys_1=keys$4,baseGetAllKeys$1=_baseGetAllKeys,getSymbols$2=_getSymbols,keys$3=keys_1;function getAllKeys$2(object){return baseGetAllKeys$1(object,keys$3,getSymbols$2)}var _getAllKeys=getAllKeys$2,getAllKeys$1=_getAllKeys,COMPARE_PARTIAL_FLAG$3=1,objectProto$4=Object.prototype,hasOwnProperty$4=objectProto$4.hasOwnProperty;function equalObjects$1(object,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG$3,objProps=getAllKeys$1(object),objLength=objProps.length;if(objLength!=getAllKeys$1(other).length&&!isPartial)return!1;for(var index=objLength;index--;){var key=objProps[index];if(!(isPartial?key in other:hasOwnProperty$4.call(other,key)))return!1}var objStacked=stack.get(object),othStacked=stack.get(other);if(objStacked&&othStacked)return objStacked==other&&othStacked==object;var result=!0;stack.set(object,other),stack.set(other,object);for(var skipCtor=isPartial;++index-1}var _arrayIncludes=arrayIncludes$1;function arrayIncludesWith$1(array,value,comparator){for(var index=-1,length=null==array?0:array.length;++index=LARGE_ARRAY_SIZE){var set=iteratee?null:createSet(array);if(set)return setToArray(set);isCommon=!1,includes=cacheHas,seen=new SetCache}else seen=iteratee?[]:result;outer:for(;++index1&&void 0!==arguments[1])||arguments[1],items=summaryItems;return isExpanded||(items=summaryItems.slice(0,ITEMS_BEFORE_EXPANSION)),items.map((function(item){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(ArgText,{key:item,text:""===item?'""':item})}))},ArgSummary=function ArgSummary(_ref143){var value=_ref143.value,initialExpandedArgs=_ref143.initialExpandedArgs,summary=value.summary,detail=value.detail,_useState14=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(!1),2),isOpen=_useState14[0],setIsOpen=_useState14[1],_useState16=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(initialExpandedArgs||!1),2),isExpanded=_useState16[0],setIsExpanded=_useState16[1];if(null==summary)return null;var summaryAsString="function"==typeof summary.toString?summary.toString():summary;if(null==detail){if(/[(){}[\]<>]/.test(summaryAsString))return react__WEBPACK_IMPORTED_MODULE_51__.createElement(ArgText,{text:summaryAsString});var summaryItems=getSummaryItems(summaryAsString),itemsCount=summaryItems.length;return itemsCount>ITEMS_BEFORE_EXPANSION?react__WEBPACK_IMPORTED_MODULE_51__.createElement(Summary,{isExpanded:isExpanded},renderSummaryItems(summaryItems,isExpanded),react__WEBPACK_IMPORTED_MODULE_51__.createElement(ExpandButton,{onClick:function onClick(){return setIsExpanded(!isExpanded)}},isExpanded?"Show less...":"Show ".concat(itemsCount-ITEMS_BEFORE_EXPANSION," more..."))):react__WEBPACK_IMPORTED_MODULE_51__.createElement(Summary,null,renderSummaryItems(summaryItems))}return react__WEBPACK_IMPORTED_MODULE_51__.createElement(WithTooltipPure,{closeOnClick:!0,trigger:"click",placement:"bottom",tooltipShown:isOpen,onVisibilityChange:function onVisibilityChange(isVisible){setIsOpen(isVisible)},tooltip:react__WEBPACK_IMPORTED_MODULE_51__.createElement(Detail,{width:calculateDetailWidth(detail)},react__WEBPACK_IMPORTED_MODULE_51__.createElement(SyntaxHighlighter,{language:"jsx",format:!1},detail))},react__WEBPACK_IMPORTED_MODULE_51__.createElement(Expandable,{className:"sbdocs-expandable"},react__WEBPACK_IMPORTED_MODULE_51__.createElement("span",null,summaryAsString),react__WEBPACK_IMPORTED_MODULE_51__.createElement(ArrowIcon,{icon:isOpen?"arrowup":"arrowdown"})))},ArgValue=function ArgValue(_ref144){var value=_ref144.value,initialExpandedArgs=_ref144.initialExpandedArgs;return null==value?react__WEBPACK_IMPORTED_MODULE_51__.createElement(EmptyArg,null):react__WEBPACK_IMPORTED_MODULE_51__.createElement(ArgSummary,{value:value,initialExpandedArgs:initialExpandedArgs})},getControlId=function getControlId(value){return"control-".concat(value.replace(/\s+/g,"-"))},getControlSetterButtonId=function getControlSetterButtonId(value){return"set-".concat(value.replace(/\s+/g,"-"))},Label$3=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.label((function(_ref145){var theme=_ref145.theme;return{lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:"".concat(curriedOpacify$1(.05,theme.appBorderColor)),borderRadius:"3em",padding:1,input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:"".concat(theme.color.secondary," 0 0 0 1px inset !important")}},span:{textAlign:"center",fontSize:theme.typography.size.s1,fontWeight:theme.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:curriedTransparentize$1(.4,theme.color.defaultText),background:"transparent","&:hover":{boxShadow:"".concat(curriedOpacify$1(.3,theme.appBorderColor)," 0 0 0 1px inset")},"&:active":{boxShadow:"".concat(curriedOpacify$1(.05,theme.appBorderColor)," 0 0 0 2px inset"),color:curriedOpacify$1(1,theme.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:theme.background.app,boxShadow:"".concat(curriedOpacify$1(.1,theme.appBorderColor)," 0 0 2px"),color:theme.color.defaultText,padding:"7px 15px"}}})),parse$2=function parse$2(value){return"true"===value},BooleanControl=function BooleanControl(_ref146){var name=_ref146.name,value=_ref146.value,_onChange=_ref146.onChange,onBlur=_ref146.onBlur,onFocus=_ref146.onFocus,onSetFalse=(0,react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(){return _onChange(!1)}),[_onChange]);if(void 0===value)return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Form.Button,{id:getControlSetterButtonId(name),onClick:onSetFalse},"Set boolean");var parsedValue="string"==typeof value?parse$2(value):value;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Label$3,{htmlFor:name,title:parsedValue?"Change to false":"Change to true"},react__WEBPACK_IMPORTED_MODULE_51__.createElement("input",Object.assign({id:getControlId(name),type:"checkbox",onChange:function onChange(e){return _onChange(e.target.checked)},checked:parsedValue},{name:name,onBlur:onBlur,onFocus:onFocus})),react__WEBPACK_IMPORTED_MODULE_51__.createElement("span",null,"False"),react__WEBPACK_IMPORTED_MODULE_51__.createElement("span",null,"True"))},parseDate=function parseDate(value){var _value$split2=_slicedToArray(value.split("-"),3),year=_value$split2[0],month=_value$split2[1],day=_value$split2[2],result=new Date;return result.setFullYear(parseInt(year,10),parseInt(month,10)-1,parseInt(day,10)),result},parseTime=function parseTime(value){var _value$split4=_slicedToArray(value.split(":"),2),hours=_value$split4[0],minutes=_value$split4[1],result=new Date;return result.setHours(parseInt(hours,10)),result.setMinutes(parseInt(minutes,10)),result},formatDate=function formatDate(value){var date=new Date(value),year="000".concat(date.getFullYear()).slice(-4),month="0".concat(date.getMonth()+1).slice(-2),day="0".concat(date.getDate()).slice(-2);return"".concat(year,"-").concat(month,"-").concat(day)},formatTime=function formatTime(value){var date=new Date(value),hours="0".concat(date.getHours()).slice(-2),minutes="0".concat(date.getMinutes()).slice(-2);return"".concat(hours,":").concat(minutes)},FlexSpaced=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref147){return{flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:"light"===_ref147.theme.base?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}}})),DateControl=function DateControl(_ref148){var name=_ref148.name,value=_ref148.value,onChange=_ref148.onChange,onFocus=_ref148.onFocus,onBlur=_ref148.onBlur,_useState18=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(!0),2),valid=_useState18[0],setValid=_useState18[1],dateRef=(0,react__WEBPACK_IMPORTED_MODULE_51__.useRef)(),timeRef=(0,react__WEBPACK_IMPORTED_MODULE_51__.useRef)();(0,react__WEBPACK_IMPORTED_MODULE_51__.useEffect)((function(){!1!==valid&&(dateRef&&dateRef.current&&(dateRef.current.value=formatDate(value)),timeRef&&timeRef.current&&(timeRef.current.value=formatTime(value)))}),[value]);var controlId=getControlId(name);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(FlexSpaced,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(Form.Input,Object.assign({type:"date",max:"9999-12-31",ref:dateRef,id:"".concat(controlId,"-date"),name:"".concat(controlId,"-date"),onChange:function onDateChange(e){var parsed=parseDate(e.target.value),result=new Date(value);result.setFullYear(parsed.getFullYear(),parsed.getMonth(),parsed.getDate());var time=result.getTime();time&&onChange(time),setValid(!!time)}},{onFocus:onFocus,onBlur:onBlur})),react__WEBPACK_IMPORTED_MODULE_51__.createElement(Form.Input,Object.assign({type:"time",id:"".concat(controlId,"-time"),name:"".concat(controlId,"-time"),ref:timeRef,onChange:function onTimeChange(e){var parsed=parseTime(e.target.value),result=new Date(value);result.setHours(parsed.getHours()),result.setMinutes(parsed.getMinutes());var time=result.getTime();time&&onChange(time),setValid(!!time)}},{onFocus:onFocus,onBlur:onBlur})),valid?null:react__WEBPACK_IMPORTED_MODULE_51__.createElement("div",null,"invalid"))},Wrapper$5=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.label({display:"flex"}),parse$1=function parse$1(value){var result=parseFloat(value);return Number.isNaN(result)?void 0:result},format=function format(value){return null!=value?String(value):""},NumberControl=function NumberControl(_ref149){var name=_ref149.name,value=_ref149.value,onChange=_ref149.onChange,min=_ref149.min,max=_ref149.max,step=_ref149.step,onBlur=_ref149.onBlur,onFocus=_ref149.onFocus,_useState20=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)("number"==typeof value?value:""),2),inputValue=_useState20[0],setInputValue=_useState20[1],_useState22=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(!1),2),forceVisible=_useState22[0],setForceVisible=_useState22[1],_useState24=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(null),2),parseError=_useState24[0],setParseError=_useState24[1],handleChange=(0,react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(event){setInputValue(event.target.value);var result=parseFloat(event.target.value);Number.isNaN(result)?setParseError(new Error("'".concat(event.target.value,"' is not a number"))):(onChange(result),setParseError(null))}),[onChange,setParseError]),onForceVisible=(0,react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(){setInputValue("0"),onChange(0),setForceVisible(!0)}),[setForceVisible]),htmlElRef=(0,react__WEBPACK_IMPORTED_MODULE_51__.useRef)(null);return(0,react__WEBPACK_IMPORTED_MODULE_51__.useEffect)((function(){forceVisible&&htmlElRef.current&&htmlElRef.current.select()}),[forceVisible]),(0,react__WEBPACK_IMPORTED_MODULE_51__.useEffect)((function(){inputValue!==("number"==typeof value?value:"")&&setInputValue(value)}),[value]),forceVisible||void 0!==value?react__WEBPACK_IMPORTED_MODULE_51__.createElement(Wrapper$5,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(Form.Input,Object.assign({ref:htmlElRef,id:getControlId(name),type:"number",onChange:handleChange,size:"flex",placeholder:"Edit number...",value:inputValue,valid:parseError?"error":null,autoFocus:forceVisible},{name:name,min:min,max:max,step:step,onFocus:onFocus,onBlur:onBlur}))):react__WEBPACK_IMPORTED_MODULE_51__.createElement(Form.Button,{id:getControlSetterButtonId(name),onClick:onForceVisible},"Set number")};function dedent(templ){for(var values=[],_i=1;_i .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:theme.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:theme.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:theme.background.app,borderColor:theme.color.border}}})),Button=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.button((function(_ref164){var theme=_ref164.theme,primary=_ref164.primary;return{border:0,height:20,margin:1,borderRadius:4,background:primary?theme.color.secondary:"transparent",color:primary?theme.color.lightest:theme.color.dark,fontWeight:primary?"bold":"normal",cursor:"pointer",order:primary?"initial":9}})),ActionIcon=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)(Icons)((function(_ref165){var theme=_ref165.theme,icon=_ref165.icon,disabled=_ref165.disabled;return{display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:disabled?"not-allowed":"pointer",color:theme.color.mediumdark,"&:hover":disabled?{}:{color:"subtract"===icon?theme.color.negative:theme.color.ancillary},"svg + &":{marginLeft:0}}})),Input=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.input((function(_ref166){var theme=_ref166.theme,placeholder=_ref166.placeholder;return{outline:0,margin:placeholder?1:"1px 0",padding:"3px 4px",color:theme.color.defaultText,background:theme.background.app,border:"1px solid ".concat(theme.color.border),borderRadius:4,lineHeight:"14px",width:"Key"===placeholder?80:120,"&:focus":{border:"1px solid ".concat(theme.color.secondary)}}})),RawButton=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)(IconButton)((function(_ref167){var theme=_ref167.theme;return{position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:theme.background.bar,border:"1px solid ".concat(theme.color.border),borderRadius:3,color:theme.color.mediumdark,fontSize:"9px",fontWeight:"bold",span:{marginLeft:3,marginTop:1}}})),RawInput=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)(Form.Textarea)((function(_ref168){var theme=_ref168.theme;return{flex:1,padding:"7px 6px",fontFamily:theme.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:theme.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}}})),ENTER_EVENT={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},dispatchEnterKey=function dispatchEnterKey(event){event.currentTarget.dispatchEvent(new globalWindow.KeyboardEvent("keydown",ENTER_EVENT))},selectValue=function selectValue(event){event.currentTarget.select()},getCustomStyleFunction=function getCustomStyleFunction(theme){return function(){return{name:{color:theme.color.secondary},collapsed:{color:theme.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}}},ObjectControl=function ObjectControl(_ref169){var name=_ref169.name,value=_ref169.value,onChange=_ref169.onChange,theme=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.Fg)(),data=(0,react__WEBPACK_IMPORTED_MODULE_51__.useMemo)((function(){return value&&cloneDeep_1(value)}),[value]),hasData=null!=data,_useState28=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(!hasData),2),showRaw=_useState28[0],setShowRaw=_useState28[1],_useState30=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(null),2),parseError=_useState30[0],setParseError=_useState30[1],updateRaw=(0,react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(raw){try{raw&&onChange(JSON.parse(raw)),setParseError(void 0)}catch(e){setParseError(e)}}),[onChange]),_useState32=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(!1),2),forceVisible=_useState32[0],setForceVisible=_useState32[1],onForceVisible=(0,react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(){onChange({}),setForceVisible(!0)}),[setForceVisible]),htmlElRef=(0,react__WEBPACK_IMPORTED_MODULE_51__.useRef)(null);if((0,react__WEBPACK_IMPORTED_MODULE_51__.useEffect)((function(){forceVisible&&htmlElRef.current&&htmlElRef.current.select()}),[forceVisible]),!hasData)return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Form.Button,{id:getControlSetterButtonId(name),onClick:onForceVisible},"Set object");var rawJSONForm=react__WEBPACK_IMPORTED_MODULE_51__.createElement(RawInput,{ref:htmlElRef,id:getControlId(name),name:name,defaultValue:null===value?"":JSON.stringify(value,null,2),onBlur:function onBlur(event){return updateRaw(event.target.value)},placeholder:"Edit JSON string...",autoFocus:forceVisible,valid:parseError?"error":null});return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Wrapper$2,null,["Object","Array"].includes(getObjectType(data))&&react__WEBPACK_IMPORTED_MODULE_51__.createElement(RawButton,{onClick:function onClick(){return setShowRaw((function(v){return!v}))}},react__WEBPACK_IMPORTED_MODULE_51__.createElement(Icons,{icon:showRaw?"eyeclose":"eye"}),react__WEBPACK_IMPORTED_MODULE_51__.createElement("span",null,"RAW")),showRaw?rawJSONForm:react__WEBPACK_IMPORTED_MODULE_51__.createElement(JsonTree,{data:data,rootName:name,onFullyUpdate:onChange,getStyle:getCustomStyleFunction(theme),cancelButtonElement:react__WEBPACK_IMPORTED_MODULE_51__.createElement(Button,{type:"button"},"Cancel"),editButtonElement:react__WEBPACK_IMPORTED_MODULE_51__.createElement(Button,{type:"submit"},"Save"),addButtonElement:react__WEBPACK_IMPORTED_MODULE_51__.createElement(Button,{type:"submit",primary:!0},"Save"),plusMenuElement:react__WEBPACK_IMPORTED_MODULE_51__.createElement(ActionIcon,{icon:"add"}),minusMenuElement:react__WEBPACK_IMPORTED_MODULE_51__.createElement(ActionIcon,{icon:"subtract"}),inputElement:function inputElement(_,__,___,key){return key?react__WEBPACK_IMPORTED_MODULE_51__.createElement(Input,{onFocus:selectValue,onBlur:dispatchEnterKey}):react__WEBPACK_IMPORTED_MODULE_51__.createElement(Input,null)},fallback:rawJSONForm}))},RangeInput=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.input((function(_ref170){var theme=_ref170.theme,min=_ref170.min,max=_ref170.max,value=_ref170.value;return{"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:"light"===theme.base?"linear-gradient(to right, \n ".concat(theme.color.green," 0%, ").concat(theme.color.green," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedDarken$1(.02,theme.input.background)," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedDarken$1(.02,theme.input.background)," 100%)"):"linear-gradient(to right, \n ".concat(theme.color.green," 0%, ").concat(theme.color.green," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedLighten$1(.02,theme.input.background)," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedLighten$1(.02,theme.input.background)," 100%)"),boxShadow:"".concat(theme.appBorderColor," 0 0 0 1px inset"),borderRadius:6,width:"100%",height:6,cursor:"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:"1px solid ".concat(rgba(theme.appBorderColor,.2)),borderRadius:"50px",boxShadow:"0 1px 3px 0px ".concat(rgba(theme.appBorderColor,.2)),cursor:"grab",appearance:"none",background:"".concat(theme.input.background),transition:"all 150ms ease-out","&:hover":{background:"".concat(curriedDarken$1(.05,theme.input.background)),transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:"".concat(theme.input.background),transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:rgba(theme.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:theme.color.secondary,boxShadow:"0 0px 5px 0px ".concat(theme.color.secondary)}},"&::-moz-range-track":{background:"light"===theme.base?"linear-gradient(to right, \n ".concat(theme.color.green," 0%, ").concat(theme.color.green," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedDarken$1(.02,theme.input.background)," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedDarken$1(.02,theme.input.background)," 100%)"):"linear-gradient(to right, \n ".concat(theme.color.green," 0%, ").concat(theme.color.green," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedLighten$1(.02,theme.input.background)," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedLighten$1(.02,theme.input.background)," 100%)"),boxShadow:"".concat(theme.appBorderColor," 0 0 0 1px inset"),borderRadius:6,width:"100%",height:6,cursor:"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:"1px solid ".concat(rgba(theme.color.border,.2)),borderRadius:"50px",boxShadow:"0 1px 3px 0px ".concat(rgba(theme.color.border,.2)),cursor:"grab",background:"".concat(theme.input.background),transition:"all 150ms ease-out","&:hover":{background:"".concat(curriedDarken$1(.05,theme.input.background)),transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:"".concat(theme.input.background),transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:"light"===theme.base?"linear-gradient(to right, \n ".concat(theme.color.green," 0%, ").concat(theme.color.green," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedDarken$1(.02,theme.input.background)," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedDarken$1(.02,theme.input.background)," 100%)"):"linear-gradient(to right, \n ".concat(theme.color.green," 0%, ").concat(theme.color.green," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedLighten$1(.02,theme.input.background)," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedLighten$1(.02,theme.input.background)," 100%)"),boxShadow:"".concat(theme.appBorderColor," 0 0 0 1px inset"),color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:"".concat(theme.input.background),border:"1px solid ".concat(rgba(theme.appBorderColor,.2)),borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}}})),RangeLabel=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),RangeWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({display:"flex",alignItems:"center",width:"100%"});function getNumberOfDecimalPlaces(number){var match=number.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return match?Math.max(0,(match[1]?match[1].length:0)-(match[2]?+match[2]:0)):0}var RangeControl=function RangeControl(_ref171){var name=_ref171.name,value=_ref171.value,onChange=_ref171.onChange,_ref171$min=_ref171.min,min=void 0===_ref171$min?0:_ref171$min,_ref171$max=_ref171.max,max=void 0===_ref171$max?100:_ref171$max,_ref171$step=_ref171.step,step=void 0===_ref171$step?1:_ref171$step,onBlur=_ref171.onBlur,onFocus=_ref171.onFocus,hasValue=void 0!==value,numberOFDecimalsPlaces=(0,react__WEBPACK_IMPORTED_MODULE_51__.useMemo)((function(){return getNumberOfDecimalPlaces(step)}),[step]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(RangeWrapper,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(RangeLabel,null,min),react__WEBPACK_IMPORTED_MODULE_51__.createElement(RangeInput,Object.assign({id:getControlId(name),type:"range",onChange:function handleChange(event){onChange(parse$1(event.target.value))}},{name:name,value:value,min:min,max:max,step:step,onFocus:onFocus,onBlur:onBlur})),react__WEBPACK_IMPORTED_MODULE_51__.createElement(RangeLabel,null,"".concat(hasValue?value.toFixed(numberOFDecimalsPlaces):"--")," / ",max))},Wrapper$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.label({display:"flex"}),TextControl=function TextControl(_ref172){var name=_ref172.name,value=_ref172.value,onChange=_ref172.onChange,onFocus=_ref172.onFocus,onBlur=_ref172.onBlur,_useState34=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(!1),2),forceVisible=_useState34[0],setForceVisible=_useState34[1],onForceVisible=(0,react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(){onChange(""),setForceVisible(!0)}),[setForceVisible]);if(void 0===value)return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Form.Button,{id:getControlSetterButtonId(name),onClick:onForceVisible},"Set string");var isValid="string"==typeof value;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Wrapper$1,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(Form.Textarea,Object.assign({id:getControlId(name),onChange:function handleChange(event){onChange(event.target.value)},size:"flex",placeholder:"Edit string...",autoFocus:forceVisible,valid:isValid?null:"error"},{name:name,value:isValid?value:"",onFocus:onFocus,onBlur:onBlur})))},FileInput=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)(Form.Input)({padding:10});function revokeOldUrls(urls){urls.forEach((function(url){url.startsWith("blob:")&&URL.revokeObjectURL(url)}))}var FilesControl=function FilesControl(_ref173){var onChange=_ref173.onChange,name=_ref173.name,_ref173$accept=_ref173.accept,accept=void 0===_ref173$accept?"image/*":_ref173$accept,value=_ref173.value;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(FileInput,{id:getControlId(name),type:"file",name:name,multiple:!0,onChange:function handleFileChange(e){if(e.target.files){var fileUrls=Array.from(e.target.files).map((function(file){return URL.createObjectURL(file)}));onChange(fileUrls),revokeOldUrls(value)}},accept:accept,size:"flex"})},LazyColorControl=(0,react__WEBPACK_IMPORTED_MODULE_51__.lazy)((function(){return __webpack_require__.e(32).then(__webpack_require__.bind(__webpack_require__,"./node_modules/@storybook/components/dist/esm/Color-3c22bb81.js"))})),ColorControl=function ColorControl(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_51__.createElement("div",null)},react__WEBPACK_IMPORTED_MODULE_51__.createElement(LazyColorControl,Object.assign({},props)))},Controls={array:ObjectControl,object:ObjectControl,boolean:BooleanControl,color:ColorControl,date:DateControl,number:NumberControl,check:OptionsControl,"inline-check":OptionsControl,radio:OptionsControl,"inline-radio":OptionsControl,select:OptionsControl,"multi-select":OptionsControl,range:RangeControl,text:TextControl,file:FilesControl},NoControl=function NoControl(){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,null,"-")},ArgControl=function ArgControl(_ref174){var row=_ref174.row,arg=_ref174.arg,updateArgs=_ref174.updateArgs,key=row.key,control=row.control,_useState36=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(!1),2),isFocused=_useState36[0],setFocused=_useState36[1],_useState38=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)({value:arg}),2),boxedValue=_useState38[0],setBoxedValue=_useState38[1];(0,react__WEBPACK_IMPORTED_MODULE_51__.useEffect)((function(){isFocused||setBoxedValue({value:arg})}),[isFocused,arg]);var onChange=(0,react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(argVal){return setBoxedValue({value:argVal}),updateArgs(_defineProperty2({},key,argVal)),argVal}),[updateArgs,key]),onBlur=(0,react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(){return setFocused(!1)}),[]),onFocus=(0,react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(){return setFocused(!0)}),[]);if(!control||control.disable)return react__WEBPACK_IMPORTED_MODULE_51__.createElement(NoControl,null);var props={name:key,argType:row,value:boxedValue.value,onChange:onChange,onBlur:onBlur,onFocus:onFocus},Control=Controls[control.type]||NoControl;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Control,Object.assign({},props,control,{controlType:control.type}))},Name=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.span({fontWeight:"bold"}),Required=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.span((function(_ref175){var theme=_ref175.theme;return{color:theme.color.negative,fontFamily:theme.typography.fonts.mono,cursor:"help"}})),Description=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref176){var theme=_ref176.theme;return{"&&":{p:{margin:"0 0 10px 0"},a:{color:theme.color.secondary}},code:Object.assign(Object.assign({},codeCommon({theme:theme})),{fontSize:12,fontFamily:theme.typography.fonts.mono}),"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}}})),Type=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref177){var theme=_ref177.theme,hasDescription=_ref177.hasDescription;return{color:"light"===theme.base?curriedTransparentize$1(.1,theme.color.defaultText):curriedTransparentize$1(.2,theme.color.defaultText),marginTop:hasDescription?4:0}})),TypeWithJsDoc=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref178){var theme=_ref178.theme,hasDescription=_ref178.hasDescription;return{color:"light"===theme.base?curriedTransparentize$1(.1,theme.color.defaultText):curriedTransparentize$1(.2,theme.color.defaultText),marginTop:hasDescription?12:0,marginBottom:12}})),StyledTd$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.td((function(_ref179){_ref179.theme;return{paddingLeft:_ref179.expandable?"40px !important":"20px !important"}})),ArgRow=function ArgRow(props){var _a,row=props.row,updateArgs=props.updateArgs,compact=props.compact,expandable=props.expandable,initialExpandedArgs=props.initialExpandedArgs,name=row.name,description=row.description,table=row.table||{},type=table.type||row.type,defaultValue=table.defaultValue||row.defaultValue,required=null===(_a=row.type)||void 0===_a?void 0:_a.required,hasDescription=null!=description&&""!==description;return react__WEBPACK_IMPORTED_MODULE_51__.createElement("tr",null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(StyledTd$1,{expandable:expandable},react__WEBPACK_IMPORTED_MODULE_51__.createElement(Name,null,name),required?react__WEBPACK_IMPORTED_MODULE_51__.createElement(Required,{title:"Required"},"*"):null),compact?null:react__WEBPACK_IMPORTED_MODULE_51__.createElement("td",null,hasDescription&&react__WEBPACK_IMPORTED_MODULE_51__.createElement(Description,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(Markdown,null,description)),null!=table.jsDocTags?react__WEBPACK_IMPORTED_MODULE_51__.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(TypeWithJsDoc,{hasDescription:hasDescription},react__WEBPACK_IMPORTED_MODULE_51__.createElement(ArgValue,{value:type,initialExpandedArgs:initialExpandedArgs})),react__WEBPACK_IMPORTED_MODULE_51__.createElement(ArgJsDoc,{tags:table.jsDocTags})):react__WEBPACK_IMPORTED_MODULE_51__.createElement(Type,{hasDescription:hasDescription},react__WEBPACK_IMPORTED_MODULE_51__.createElement(ArgValue,{value:type,initialExpandedArgs:initialExpandedArgs}))),compact?null:react__WEBPACK_IMPORTED_MODULE_51__.createElement("td",null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(ArgValue,{value:defaultValue,initialExpandedArgs:initialExpandedArgs})),updateArgs?react__WEBPACK_IMPORTED_MODULE_51__.createElement("td",null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(ArgControl,Object.assign({},props))):null)},ExpanderIcon=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)(Icons)((function(_ref180){var theme=_ref180.theme;return{marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:"light"===theme.base?curriedTransparentize$1(.25,theme.color.defaultText):curriedTransparentize$1(.3,theme.color.defaultText),border:"none",display:"inline-block"}})),FlexWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.span((function(_ref181){_ref181.theme;return{display:"flex",lineHeight:"20px",alignItems:"center"}})),Section=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.td((function(_ref182){var theme=_ref182.theme;return{position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:theme.typography.weight.black,fontSize:theme.typography.size.s1-1,color:"light"===theme.base?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText),background:"".concat(theme.background.app," !important"),"& ~ td":{background:"".concat(theme.background.app," !important")}}})),Subsection=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.td((function(_ref183){var theme=_ref183.theme;return{position:"relative",fontWeight:theme.typography.weight.bold,fontSize:theme.typography.size.s2-1,background:theme.background.content}})),StyledTd=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.td((function(_ref184){_ref184.theme;return{position:"relative"}})),StyledTr=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.tr((function(_ref185){var theme=_ref185.theme;return{"&:hover > td":{backgroundColor:"".concat(theme.background.hoverable," !important"),boxShadow:"".concat(theme.color.mediumlight," 0 - 1px 0 0 inset"),cursor:"row-resize"}}})),ClickIntercept=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.button((function(){return{background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"}})),SectionRow=function SectionRow(_ref186){var _ref186$level=_ref186.level,level=void 0===_ref186$level?"section":_ref186$level,label=_ref186.label,children=_ref186.children,_ref186$initialExpand=_ref186.initialExpanded,initialExpanded=void 0===_ref186$initialExpand||_ref186$initialExpand,_ref186$colSpan=_ref186.colSpan,colSpan=void 0===_ref186$colSpan?3:_ref186$colSpan,_useState40=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(initialExpanded),2),expanded=_useState40[0],setExpanded=_useState40[1],Level="subsection"===level?Subsection:Section,itemCount=(null==children?void 0:children.length)||0,caption="subsection"===level?"".concat(itemCount," item").concat(1!==itemCount?"s":""):"",icon=expanded?"arrowdown":"arrowright",helperText="".concat(expanded?"Hide":"Show"," ").concat("subsection"===level?itemCount:label," item").concat(1!==itemCount?"s":"");return react__WEBPACK_IMPORTED_MODULE_51__.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(StyledTr,{title:helperText},react__WEBPACK_IMPORTED_MODULE_51__.createElement(Level,{colSpan:1},react__WEBPACK_IMPORTED_MODULE_51__.createElement(ClickIntercept,{onClick:function onClick(e){return setExpanded(!expanded)},tabIndex:0},helperText),react__WEBPACK_IMPORTED_MODULE_51__.createElement(FlexWrapper,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(ExpanderIcon,{icon:icon}),label)),react__WEBPACK_IMPORTED_MODULE_51__.createElement(StyledTd,{colSpan:colSpan-1},react__WEBPACK_IMPORTED_MODULE_51__.createElement(ClickIntercept,{onClick:function onClick(e){return setExpanded(!expanded)},tabIndex:-1,style:{outline:"none"}},helperText),expanded?null:caption)),expanded?children:null)},TableWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.table((function(_ref187){var _trFirstChild,_trLastChild,_3,theme=_ref187.theme,compact=_ref187.compact,inAddonPanel=_ref187.inAddonPanel;return{"&&":(_3={borderCollapse:"collapse",borderSpacing:0,color:theme.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:theme.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:inAddonPanel?0:25,marginBottom:inAddonPanel?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":Object.assign({},compact?null:{width:"35%"}),"td:nth-of-type(3)":Object.assign({},compact?null:{width:"15%"}),"th:last-of-type, td:last-of-type":Object.assign({paddingRight:20},compact?null:{width:"25%"}),th:{color:"light"===theme.base?curriedTransparentize$1(.25,theme.color.defaultText):curriedTransparentize$1(.45,theme.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:inAddonPanel?0:1,marginRight:inAddonPanel?0:1},_defineProperty2(_3,"tr:first-child",(_trFirstChild={},_defineProperty2(_trFirstChild,"td:first-child, th:first-child",{borderTopLeftRadius:inAddonPanel?0:theme.appBorderRadius}),_defineProperty2(_trFirstChild,"td:last-child, th:last-child",{borderTopRightRadius:inAddonPanel?0:theme.appBorderRadius}),_trFirstChild)),_defineProperty2(_3,"tr:last-child",(_trLastChild={},_defineProperty2(_trLastChild,"td:first-child, th:first-child",{borderBottomLeftRadius:inAddonPanel?0:theme.appBorderRadius}),_defineProperty2(_trLastChild,"td:last-child, th:last-child",{borderBottomRightRadius:inAddonPanel?0:theme.appBorderRadius}),_trLastChild)),_defineProperty2(_3,"tbody",{boxShadow:!inAddonPanel&&("light"===theme.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 1px,\n ".concat(curriedTransparentize$1(.035,theme.appBorderColor)," 0 0 0 1px"):"rgba(0, 0, 0, 0.20) 0 2px 5px 1px,\n ".concat(curriedOpacify$1(.05,theme.appBorderColor)," 0 0 0 1px")),borderRadius:theme.appBorderRadius,"@media not all and (min-resolution:.001dpcm)":{"@supports (-webkit-appearance:none)":Object.assign(Object.assign({borderWidth:1,borderStyle:"solid"},inAddonPanel&&{borderColor:"transparent"}),!inAddonPanel&&{borderColor:"light"===theme.base?curriedTransparentize$1(.035,theme.appBorderColor):curriedOpacify$1(.05,theme.appBorderColor)})},tr:Object.assign({background:"transparent",overflow:"hidden"},inAddonPanel?{borderTopWidth:1,borderTopStyle:"solid",borderTopColor:"light"===theme.base?curriedDarken$1(.1,theme.background.content):curriedLighten$1(.05,theme.background.content)}:_defineProperty2({},"&:not(:first-child)",{borderTopWidth:1,borderTopStyle:"solid",borderTopColor:"light"===theme.base?curriedDarken$1(.1,theme.background.content):curriedLighten$1(.05,theme.background.content)})),td:{background:theme.background.content}}),_3)}}),(function(_ref189){var isLoading=_ref189.isLoading,theme=_ref189.theme;return isLoading?{"th span, td span, td button":{display:"inline",backgroundColor:theme.appBorderColor,animation:"".concat(theme.animation.glow," 1.5s ease-in-out infinite"),color:"transparent",boxShadow:"none",borderRadius:0}}:{}})),ResetButton=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.button((function(_ref190){var theme=_ref190.theme;return{border:0,borderRadius:"3em",cursor:"pointer",display:"inline-block",overflow:"hidden",padding:"3px 8px",transition:"all 150ms ease-out",verticalAlign:"top",userSelect:"none",margin:0,backgroundColor:"light"===theme.base?"#EAF3FC":theme.color.border,boxShadow:"light"===theme.base?"".concat(theme.color.border," 0 0 0 1px inset"):"".concat(theme.color.darker," 0 0 0 1px inset"),color:theme.color.secondary,"&:hover":{background:"light"===theme.base?curriedDarken$1(.03,"#EAF3FC"):curriedOpacify$1(.1,theme.color.border)},"&:focus":{boxShadow:"".concat(theme.color.secondary," 0 0 0 1px inset"),outline:"none"},svg:{display:"block",height:14,width:14}}})),ControlHeadingWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.span({display:"flex",justifyContent:"space-between"}),ArgsTableError;!function(ArgsTableError){ArgsTableError.NO_COMPONENT="No component found.",ArgsTableError.ARGS_UNSUPPORTED="Args unsupported. See Args documentation for your framework."}(ArgsTableError||(ArgsTableError={}));var sortFns={alpha:function alpha(a,b){return a.name.localeCompare(b.name)},requiredFirst:function requiredFirst(a,b){var _a,_b;return Number(!!(null===(_a=b.type)||void 0===_a?void 0:_a.required))-Number(!!(null===(_b=a.type)||void 0===_b?void 0:_b.required))||a.name.localeCompare(b.name)},none:void 0},rowLoadingData=function rowLoadingData(key){return{key:key,name:"propertyName",description:"This is a short description",control:{type:"text"},table:{type:{summary:"summary"},defaultValue:{summary:"defaultValue"}}}},argsTableLoadingData={rows:{row1:rowLoadingData("row1"),row2:rowLoadingData("row2"),row3:rowLoadingData("row3")}},groupRows=function groupRows(rows,sort){var sections={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!rows)return sections;Object.entries(rows).forEach((function(_ref191){var _ref192=_slicedToArray(_ref191,2),key=_ref192[0],row=_ref192[1],_ref193=(null==row?void 0:row.table)||{},category=_ref193.category,subcategory=_ref193.subcategory;if(category){var section=sections.sections[category]||{ungrouped:[],subsections:{}};if(subcategory){var subsection=section.subsections[subcategory]||[];subsection.push(Object.assign({key:key},row)),section.subsections[subcategory]=subsection}else section.ungrouped.push(Object.assign({key:key},row));sections.sections[category]=section}else if(subcategory){var _subsection=sections.ungroupedSubsections[subcategory]||[];_subsection.push(Object.assign({key:key},row)),sections.ungroupedSubsections[subcategory]=_subsection}else sections.ungrouped.push(Object.assign({key:key},row))}));var sortFn=sortFns[sort],sortSubsection=function sortSubsection(record){return sortFn?Object.keys(record).reduce((function(acc,cur){return Object.assign(Object.assign({},acc),_defineProperty2({},cur,record[cur].sort(sortFn)))}),{}):record};return{ungrouped:sections.ungrouped.sort(sortFn),ungroupedSubsections:sortSubsection(sections.ungroupedSubsections),sections:Object.keys(sections.sections).reduce((function(acc,cur){return Object.assign(Object.assign({},acc),_defineProperty2({},cur,{ungrouped:sections.sections[cur].ungrouped.sort(sortFn),subsections:sortSubsection(sections.sections[cur].subsections)}))}),{})}},safeIncludeConditionalArg=function safeIncludeConditionalArg(row,args,globals){try{return(0,_storybook_csf__WEBPACK_IMPORTED_MODULE_53__.includeConditionalArg)(row,args,globals)}catch(err){return _storybook_client_logger__WEBPACK_IMPORTED_MODULE_56__.IH.warn(err.message),!1}},ArgsTable=function ArgsTable(props){if("error"in props)return react__WEBPACK_IMPORTED_MODULE_51__.createElement(EmptyBlock,null,props.error," ",react__WEBPACK_IMPORTED_MODULE_51__.createElement(Link,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},"Read the docs"));var updateArgs=props.updateArgs,resetArgs=props.resetArgs,compact=props.compact,inAddonPanel=props.inAddonPanel,initialExpandedArgs=props.initialExpandedArgs,_props$sort=props.sort,sort=void 0===_props$sort?"none":_props$sort,isLoading="isLoading"in props,_ref194="rows"in props?props:argsTableLoadingData,rows=_ref194.rows,args=_ref194.args,globals=_ref194.globals,groups=groupRows(pickBy_1(rows,(function(row){var _a;return!(null===(_a=null==row?void 0:row.table)||void 0===_a?void 0:_a.disable)&&safeIncludeConditionalArg(row,args||{},globals||{})})),sort);if(0===groups.ungrouped.length&&0===Object.entries(groups.sections).length&&0===Object.entries(groups.ungroupedSubsections).length)return react__WEBPACK_IMPORTED_MODULE_51__.createElement(EmptyBlock,null,"No inputs found for this component. ",react__WEBPACK_IMPORTED_MODULE_51__.createElement(Link,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},"Read the docs"));var colSpan=1;updateArgs&&(colSpan+=1),compact||(colSpan+=2);var expandable=Object.keys(groups.sections).length>0,common={updateArgs:updateArgs,compact:compact,inAddonPanel:inAddonPanel,initialExpandedArgs:initialExpandedArgs};return react__WEBPACK_IMPORTED_MODULE_51__.createElement(ResetWrapper,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(TableWrapper,Object.assign({"aria-hidden":isLoading},{compact:compact,inAddonPanel:inAddonPanel,isLoading:isLoading},{className:"docblock-argstable"}),react__WEBPACK_IMPORTED_MODULE_51__.createElement("thead",{className:"docblock-argstable-head"},react__WEBPACK_IMPORTED_MODULE_51__.createElement("tr",null,react__WEBPACK_IMPORTED_MODULE_51__.createElement("th",null,react__WEBPACK_IMPORTED_MODULE_51__.createElement("span",null,"Name")),compact?null:react__WEBPACK_IMPORTED_MODULE_51__.createElement("th",null,react__WEBPACK_IMPORTED_MODULE_51__.createElement("span",null,"Description")),compact?null:react__WEBPACK_IMPORTED_MODULE_51__.createElement("th",null,react__WEBPACK_IMPORTED_MODULE_51__.createElement("span",null,"Default")),updateArgs?react__WEBPACK_IMPORTED_MODULE_51__.createElement("th",null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(ControlHeadingWrapper,null,"Control"," ",!isLoading&&resetArgs&&react__WEBPACK_IMPORTED_MODULE_51__.createElement(ResetButton,{onClick:function onClick(){return resetArgs()},title:"Reset controls"},react__WEBPACK_IMPORTED_MODULE_51__.createElement(Icons,{icon:"undo","aria-hidden":!0})))):null)),react__WEBPACK_IMPORTED_MODULE_51__.createElement("tbody",{className:"docblock-argstable-body"},groups.ungrouped.map((function(row){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(ArgRow,Object.assign({key:row.key,row:row,arg:args&&args[row.key]},common))})),Object.entries(groups.ungroupedSubsections).map((function(_ref195){var _ref196=_slicedToArray(_ref195,2),subcategory=_ref196[0],subsection=_ref196[1];return react__WEBPACK_IMPORTED_MODULE_51__.createElement(SectionRow,{key:subcategory,label:subcategory,level:"subsection",colSpan:colSpan},subsection.map((function(row){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(ArgRow,Object.assign({key:row.key,row:row,arg:args&&args[row.key],expandable:expandable},common))})))})),Object.entries(groups.sections).map((function(_ref197){var _ref198=_slicedToArray(_ref197,2),category=_ref198[0],section=_ref198[1];return react__WEBPACK_IMPORTED_MODULE_51__.createElement(SectionRow,{key:category,label:category,level:"section",colSpan:colSpan},section.ungrouped.map((function(row){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(ArgRow,Object.assign({key:row.key,row:row,arg:args&&args[row.key]},common))})),Object.entries(section.subsections).map((function(_ref199){var _ref200=_slicedToArray(_ref199,2),subcategory=_ref200[0],subsection=_ref200[1];return react__WEBPACK_IMPORTED_MODULE_51__.createElement(SectionRow,{key:subcategory,label:subcategory,level:"subsection",colSpan:colSpan},subsection.map((function(row){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(ArgRow,Object.assign({key:row.key,row:row,arg:args&&args[row.key],expandable:expandable},common))})))})))})))))},TabbedArgsTable=function TabbedArgsTable(_a){var tabs=_a.tabs,props=__rest(_a,["tabs"]),entries=Object.entries(tabs);return 1===entries.length?react__WEBPACK_IMPORTED_MODULE_51__.createElement(ArgsTable,Object.assign({},entries[0][1],props)):react__WEBPACK_IMPORTED_MODULE_51__.createElement(TabsState,null,entries.map((function(entry){var _entry=_slicedToArray(entry,2),label=_entry[0],table=_entry[1],id="prop_table_div_".concat(label);return react__WEBPACK_IMPORTED_MODULE_51__.createElement("div",{key:id,id:id,title:label},(function(_ref201){return _ref201.active?react__WEBPACK_IMPORTED_MODULE_51__.createElement(ArgsTable,Object.assign({key:"prop_table_".concat(label)},table,props)):null}))})))},NoControlsWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref202){var theme=_ref202.theme;return{background:theme.background.warning,color:theme.color.darkest,padding:"10px 15px",lineHeight:"20px",boxShadow:"".concat(theme.appBorderColor," 0 -1px 0 0 inset")}})),NoControlsWarning=function NoControlsWarning(){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(NoControlsWrapper,null,"This story is not configured to handle controls."," ",react__WEBPACK_IMPORTED_MODULE_51__.createElement(Link,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",cancel:!1,withArrow:!0},"Learn how to add controls"))},Label=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref203){var theme=_ref203.theme;return{marginRight:30,fontSize:"".concat(theme.typography.size.s1,"px"),color:"light"===theme.base?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText)}})),Sample=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),TypeSpecimen=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}}),Wrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div(withReset,(function(_ref204){var theme=_ref204.theme;return Object.assign(Object.assign({},getBlockBackgroundStyle(theme)),{margin:"25px 0 40px",padding:"30px 20px"})})),Typeset=function Typeset(_a){var fontFamily=_a.fontFamily,fontSizes=_a.fontSizes,fontWeight=_a.fontWeight,sampleText=_a.sampleText,props=__rest(_a,["fontFamily","fontSizes","fontWeight","sampleText"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Wrapper,Object.assign({},props,{className:"docblock-typeset"}),fontSizes.map((function(size){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(TypeSpecimen,{key:size},react__WEBPACK_IMPORTED_MODULE_51__.createElement(Label,null,size),react__WEBPACK_IMPORTED_MODULE_51__.createElement(Sample,{style:{fontFamily:fontFamily,fontSize:size,fontWeight:fontWeight,lineHeight:1.2}},sampleText||"Was he a beast if music could move him so?"))})))},ItemTitle=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref205){var theme=_ref205.theme;return{fontWeight:theme.typography.weight.bold,color:theme.color.defaultText}})),ItemSubtitle=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref206){var theme=_ref206.theme;return{color:"light"===theme.base?curriedTransparentize$1(.2,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText)}})),ItemDescription=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5}),SwatchLabel=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref207){var theme=_ref207.theme;return{flex:1,textAlign:"center",fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,lineHeight:1,overflow:"hidden",color:"light"===theme.base?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}})),SwatchLabels=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({display:"flex",flexDirection:"row"}),Swatch=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref208){return{position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:_ref208.background,content:'""'}}})),SwatchColors=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref209){var theme=_ref209.theme;return Object.assign(Object.assign({},getBlockBackgroundStyle(theme)),{display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"})})),SwatchSpecimen=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30}),Swatches=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({flex:1,display:"flex",flexDirection:"row"}),Item$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({display:"flex",alignItems:"flex-start"}),ListName=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({flex:"0 0 30%"}),ListSwatches=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({flex:1}),ListHeading=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref210){var theme=_ref210.theme;return{display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:theme.typography.weight.bold,color:"light"===theme.base?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText)}})),List$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref211){return{fontSize:_ref211.theme.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}}));function renderSwatch(color,index){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Swatch,{key:"".concat(color,"-").concat(index),title:color,background:color})}function renderSwatchLabel(color,index,colorDescription){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(SwatchLabel,{key:"".concat(color,"-").concat(index),title:color},react__WEBPACK_IMPORTED_MODULE_51__.createElement("div",null,color,colorDescription&&react__WEBPACK_IMPORTED_MODULE_51__.createElement("span",null,colorDescription)))}function renderSwatchSpecimen(colors){return Array.isArray(colors)?react__WEBPACK_IMPORTED_MODULE_51__.createElement(SwatchSpecimen,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(SwatchColors,null,colors.map((function(color,index){return renderSwatch(color,index)}))),react__WEBPACK_IMPORTED_MODULE_51__.createElement(SwatchLabels,null,colors.map((function(color,index){return renderSwatchLabel(color,index)})))):react__WEBPACK_IMPORTED_MODULE_51__.createElement(SwatchSpecimen,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(SwatchColors,null,Object.values(colors).map((function(color,index){return renderSwatch(color,index)}))),react__WEBPACK_IMPORTED_MODULE_51__.createElement(SwatchLabels,null,Object.keys(colors).map((function(color,index){return renderSwatchLabel(color,index,colors[color])}))))}var ColorItem=function ColorItem(_ref212){var title=_ref212.title,subtitle=_ref212.subtitle,colors=_ref212.colors;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Item$1,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(ItemDescription,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(ItemTitle,null,title),react__WEBPACK_IMPORTED_MODULE_51__.createElement(ItemSubtitle,null,subtitle)),react__WEBPACK_IMPORTED_MODULE_51__.createElement(Swatches,null,renderSwatchSpecimen(colors)))},ColorPalette=function ColorPalette(_a){var children=_a.children,props=__rest(_a,["children"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(ResetWrapper,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(List$1,Object.assign({},props,{className:"docblock-colorpalette"}),react__WEBPACK_IMPORTED_MODULE_51__.createElement(ListHeading,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(ListName,null,"Name"),react__WEBPACK_IMPORTED_MODULE_51__.createElement(ListSwatches,null,"Swatches")),children))},ItemLabel=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref213){var theme=_ref213.theme;return{fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s2,color:theme.color.defaultText,marginLeft:10,lineHeight:1.2}})),ItemSpecimen=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref214){var theme=_ref214.theme;return Object.assign(Object.assign({},getBlockBackgroundStyle(theme)),{overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}})})),Item=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"}),List=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({display:"flex",flexFlow:"row wrap"}),IconItem=function IconItem(_ref215){var name=_ref215.name,children=_ref215.children;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Item,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(ItemSpecimen,null,children),react__WEBPACK_IMPORTED_MODULE_51__.createElement(ItemLabel,null,name))},IconGallery=function IconGallery(_a){var children=_a.children,props=__rest(_a,["children"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(ResetWrapper,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(List,Object.assign({},props,{className:"docblock-icongallery"}),children))},components=components$1,resetComponents={};Object.keys(components$1).forEach((function(key){resetComponents[key]=(0,react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)((function(props,ref){return(0,react__WEBPACK_IMPORTED_MODULE_51__.createElement)(key,Object.assign(Object.assign({},props),{ref:ref}))}))}))},"./node_modules/@storybook/theming/dist/esm/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_37___namespace_cache;__webpack_require__.d(__webpack_exports__,{$n:function(){return lightenColor},F4:function(){return keyframes},Fg:function(){return useTheme},OQ:function(){return convert},R_:function(){return isPropValid},_j:function(){return darkenColor},f6:function(){return ThemeProvider},np:function(){return themes},xB:function(){return Global},zo:function(){return styled},zx:function(){return ensure}});__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.string.trim.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.weak-map.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.match.js"),__webpack_require__("./node_modules/core-js/modules/es.string.split.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/esnext.global-this.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-names.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.set.js"),__webpack_require__("./node_modules/core-js/modules/es.reflect.construct.js"),__webpack_require__("./node_modules/core-js/modules/es.map.js"),__webpack_require__("./node_modules/core-js/modules/es.number.to-fixed.js"),__webpack_require__("./node_modules/core-js/modules/es.string.bold.js"),__webpack_require__("./node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var _templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,react__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__("./node_modules/react/index.js"),memoizerific__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__("./node_modules/memoizerific/memoizerific.js"),memoizerific__WEBPACK_IMPORTED_MODULE_38___default=__webpack_require__.n(memoizerific__WEBPACK_IMPORTED_MODULE_38__),_storybook_client_logger__WEBPACK_IMPORTED_MODULE_39__=__webpack_require__("./node_modules/@storybook/client-logger/dist/esm/index.js");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0?charat(characters,--position):0,column--,10===character&&(column=1,line--),character}function next(){return character=position2||token(character)>3?"":" "}function escaping(index,count){for(;--count&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(index,caret()+(count<6&&32==peek()&&32==next()))}function delimiter(type){for(;next();)switch(character){case type:return position;case 34:case 39:34!==type&&39!==type&&delimiter(character);break;case 40:41===type&&delimiter(type);break;case 92:next()}return position}function commenter(type,index){for(;next()&&type+character!==57&&(type+character!==84||47!==peek()););return"/*"+slice(index,position-1)+"*"+from(47===type?type:next())}function identifier(index){for(;!token(peek());)next();return slice(index,position)}function compile(value){return dealloc(parse("",null,null,null,[""],value=alloc(value),0,[0],value))}function parse(value,root,parent,rule,rules,rulesets,pseudo,points,declarations){for(var index=0,offset=0,length=pseudo,atrule=0,property=0,previous=0,variable=1,scanning=1,ampersand=1,character=0,type="",props=rules,children=rulesets,reference=rule,characters=type;scanning;)switch(previous=character,character=next()){case 40:if(108!=previous&&58==characters.charCodeAt(length-1)){-1!=indexof(characters+=replace(delimit(character),"&","&\f"),"&\f")&&(ampersand=-1);break}case 34:case 39:case 91:characters+=delimit(character);break;case 9:case 10:case 13:case 32:characters+=whitespace(previous);break;case 92:characters+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),root,parent),declarations);break;default:characters+="/"}break;case 123*variable:points[index++]=strlen(characters)*ampersand;case 125*variable:case 59:case 0:switch(character){case 0:case 125:scanning=0;case 59+offset:property>0&&strlen(characters)-length&&append(property>32?declaration(characters+";",rule,parent,length-1):declaration(replace(characters," ","")+";",rule,parent,length-2),declarations);break;case 59:characters+=";";default:if(append(reference=ruleset(characters,root,parent,index,offset,rules,points,type,props=[],children=[],length),rulesets),123===character)if(0===offset)parse(characters,root,reference,reference,props,rulesets,length,points,children);else switch(atrule){case 100:case 109:case 115:parse(value,reference,reference,rule&&append(ruleset(value,reference,reference,0,0,rules,points,type,rules,props=[],length),children),rules,children,length,points,rule?props:children);break;default:parse(characters,reference,reference,reference,[""],children,0,points,children)}}index=offset=property=0,variable=ampersand=1,type=characters="",length=pseudo;break;case 58:length=1+strlen(characters),property=previous;default:if(variable<1)if(123==character)--variable;else if(125==character&&0==variable++&&125==prev())continue;switch(characters+=from(character),character*variable){case 38:ampersand=offset>0?1:(characters+="\f",-1);break;case 44:points[index++]=(strlen(characters)-1)*ampersand,ampersand=1;break;case 64:45===peek()&&(characters+=delimit(next())),atrule=peek(),offset=length=strlen(type=characters+=identifier(caret())),character++;break;case 45:45===previous&&2==strlen(characters)&&(variable=0)}}return rulesets}function ruleset(value,root,parent,index,offset,rules,points,type,props,children,length){for(var post=offset-1,rule=0===offset?rules:[""],size=sizeof(rule),i=0,j=0,k=0;i0?rule[x]+" "+y:replace(y,/&\f/g,rule[x])))&&(props[k++]=z);return node(value,root,parent,0===offset?"rule":type,props,children,length)}function comment(value,root,parent){return node(value,root,parent,"comm",from(function char(){return character}()),substr(value,2,-2),0)}function declaration(value,root,parent,length){return node(value,root,parent,"decl",substr(value,0,length),substr(value,length+1,-1),length)}function prefix(value,length){switch(function hash(value,length){return(((length<<2^charat(value,0))<<2^charat(value,1))<<2^charat(value,2))<<2^charat(value,3)}(value,length)){case 5103:return WEBKIT+"print-"+value+value;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return WEBKIT+value+value;case 5349:case 4246:case 4810:case 6968:case 2756:return WEBKIT+value+MOZ+value+MS+value+value;case 6828:case 4268:return WEBKIT+value+MS+value+value;case 6165:return WEBKIT+value+MS+"flex-"+value+value;case 5187:return WEBKIT+value+replace(value,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+value;case 5443:return WEBKIT+value+MS+"flex-item-"+replace(value,/flex-|-self/,"")+value;case 4675:return WEBKIT+value+MS+"flex-line-pack"+replace(value,/align-content|flex-|-self/,"")+value;case 5548:return WEBKIT+value+MS+replace(value,"shrink","negative")+value;case 5292:return WEBKIT+value+MS+replace(value,"basis","preferred-size")+value;case 6060:return WEBKIT+"box-"+replace(value,"-grow","")+WEBKIT+value+MS+replace(value,"grow","positive")+value;case 4554:return WEBKIT+replace(value,/([^-])(transform)/g,"$1-webkit-$2")+value;case 6187:return replace(replace(replace(value,/(zoom-|grab)/,WEBKIT+"$1"),/(image-set)/,WEBKIT+"$1"),value,"")+value;case 5495:case 3959:return replace(value,/(image-set\([^]*)/,WEBKIT+"$1$`$1");case 4968:return replace(replace(value,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+WEBKIT+value+value;case 4095:case 3583:case 4068:case 2532:return replace(value,/(.+)-inline(.+)/,WEBKIT+"$1$2")+value;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(strlen(value)-1-length>6)switch(charat(value,length+1)){case 109:if(45!==charat(value,length+4))break;case 102:return replace(value,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+MOZ+(108==charat(value,length+3)?"$3":"$2-$3"))+value;case 115:return~indexof(value,"stretch")?prefix(replace(value,"stretch","fill-available"),length)+value:value}break;case 4949:if(115!==charat(value,length+1))break;case 6444:switch(charat(value,strlen(value)-3-(~indexof(value,"!important")&&10))){case 107:return replace(value,":",":"+WEBKIT)+value;case 101:return replace(value,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(45===charat(value,14)?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+value}break;case 5936:switch(charat(value,length+11)){case 114:return WEBKIT+value+MS+replace(value,/[svh]\w+-[tblr]{2}/,"tb")+value;case 108:return WEBKIT+value+MS+replace(value,/[svh]\w+-[tblr]{2}/,"tb-rl")+value;case 45:return WEBKIT+value+MS+replace(value,/[svh]\w+-[tblr]{2}/,"lr")+value}return WEBKIT+value+MS+value+value}return value}function serialize(children,callback){for(var output="",length=sizeof(children),i=0;i-1&&!element.return)switch(element.type){case"decl":element.return=prefix(element.value,element.length);break;case"@keyframes":return serialize([copy(element,{value:replace(element.value,"@","@"+WEBKIT)})],callback);case"rule":if(element.length)return function combine(array,callback){return array.map(callback).join("")}(element.props,(function(value){switch(function match(value,pattern){return(value=pattern.exec(value))?value[0]:value}(value,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(element,{props:[replace(value,/:(read-\w+)/,":-moz-$1")]})],callback);case"::placeholder":return serialize([copy(element,{props:[replace(value,/:(plac\w+)/,":-webkit-input-$1")]}),copy(element,{props:[replace(value,/:(plac\w+)/,":-moz-$1")]}),copy(element,{props:[replace(value,/:(plac\w+)/,MS+"input-$1")]})],callback)}return""}))}}],createCache=function createCache(options){var key=options.key;if(isBrowser$6&&"css"===key){var ssrStyles=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(ssrStyles,(function(node){-1!==node.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(node),node.setAttribute("data-s",""))}))}var stylisPlugins=options.stylisPlugins||defaultStylisPlugins;var container,_insert,inserted={},nodesToHydrate=[];isBrowser$6&&(container=options.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+key+' "]'),(function(node){for(var attrib=node.getAttribute("data-emotion").split(" "),i=1;i=4;++i,len-=4)k=1540483477*(65535&(k=255&str.charCodeAt(i)|(255&str.charCodeAt(++i))<<8|(255&str.charCodeAt(++i))<<16|(255&str.charCodeAt(++i))<<24))+(59797*(k>>>16)<<16),h=1540483477*(65535&(k^=k>>>24))+(59797*(k>>>16)<<16)^1540483477*(65535&h)+(59797*(h>>>16)<<16);switch(len){case 3:h^=(255&str.charCodeAt(i+2))<<16;case 2:h^=(255&str.charCodeAt(i+1))<<8;case 1:h=1540483477*(65535&(h^=255&str.charCodeAt(i)))+(59797*(h>>>16)<<16)}return(((h=1540483477*(65535&(h^=h>>>13))+(59797*(h>>>16)<<16))^h>>>15)>>>0).toString(36)}var unitlessKeys={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hyphenateRegex$1=/[A-Z]|^ms/g,animationRegex$1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty$1=function isCustomProperty(property){return 45===property.charCodeAt(1)},isProcessableValue$1=function isProcessableValue(value){return null!=value&&"boolean"!=typeof value},processStyleName$1=memoize((function(styleName){return isCustomProperty$1(styleName)?styleName:styleName.replace(hyphenateRegex$1,"-$&").toLowerCase()})),processStyleValue$1=function processStyleValue(key,value){switch(key){case"animation":case"animationName":if("string"==typeof value)return value.replace(animationRegex$1,(function(match,p1,p2){return cursor$1={name:p1,styles:p2,next:cursor$1},p1}))}return 1===unitlessKeys[key]||isCustomProperty$1(key)||"number"!=typeof value||0===value?value:value+"px"};function handleInterpolation$1(mergedProps,registered,interpolation){if(null==interpolation)return"";if(void 0!==interpolation.__emotion_styles)return interpolation;switch(_typeof(interpolation)){case"boolean":return"";case"object":if(1===interpolation.anim)return cursor$1={name:interpolation.name,styles:interpolation.styles,next:cursor$1},interpolation.name;if(void 0!==interpolation.styles){var next=interpolation.next;if(void 0!==next)for(;void 0!==next;)cursor$1={name:next.name,styles:next.styles,next:cursor$1},next=next.next;return interpolation.styles+";"}return function createStringFromObject$1(mergedProps,registered,obj){var string="";if(Array.isArray(obj))for(var i=0;i96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function composeShouldForwardProps(tag,options,isReal){var shouldForwardProp;if(options){var optionsShouldForwardProp=options.shouldForwardProp;shouldForwardProp=tag.__emotion_forwardProp&&optionsShouldForwardProp?function(propName){return tag.__emotion_forwardProp(propName)&&optionsShouldForwardProp(propName)}:optionsShouldForwardProp}return"function"!=typeof shouldForwardProp&&isReal&&(shouldForwardProp=tag.__emotion_forwardProp),shouldForwardProp},isBrowser="undefined"!=typeof document,useInsertionEffect=(react__WEBPACK_IMPORTED_MODULE_37___namespace_cache||(react__WEBPACK_IMPORTED_MODULE_37___namespace_cache=__webpack_require__.t(react__WEBPACK_IMPORTED_MODULE_37__,2))).useInsertionEffect?(react__WEBPACK_IMPORTED_MODULE_37___namespace_cache||(react__WEBPACK_IMPORTED_MODULE_37___namespace_cache=__webpack_require__.t(react__WEBPACK_IMPORTED_MODULE_37__,2))).useInsertionEffect:function useInsertionEffect(create){create()};var isBrowser$1="undefined"!=typeof document,Insertion=function Insertion(_ref){var cache=_ref.cache,serialized=_ref.serialized,isStringTag=_ref.isStringTag;registerStyles(cache,serialized,isStringTag);var rules=function useInsertionEffectMaybe(create){if(!isBrowser)return create();useInsertionEffect(create)}((function(){return function insertStyles(cache,serialized,isStringTag){registerStyles(cache,serialized,isStringTag);var className=cache.key+"-"+serialized.name;if(void 0===cache.inserted[serialized.name]){var stylesForSSR="",current=serialized;do{var maybeStyles=cache.insert(serialized===current?"."+className:"",current,cache.sheet,!0);isBrowser$2||void 0===maybeStyles||(stylesForSSR+=maybeStyles),current=current.next}while(void 0!==current);if(!isBrowser$2&&0!==stylesForSSR.length)return stylesForSSR}}(cache,serialized,isStringTag)}));if(!isBrowser$1&&void 0!==rules){for(var _ref2,serializedNames=serialized.name,next=serialized.next;void 0!==next;)serializedNames+=" "+next.name,next=next.next;return(0,react__WEBPACK_IMPORTED_MODULE_37__.createElement)("style",((_ref2={})["data-emotion"]=cache.key+" "+serializedNames,_ref2.dangerouslySetInnerHTML={__html:rules},_ref2.nonce=cache.sheet.nonce,_ref2))}return null},newStyled=function createStyled(tag,options){var identifierName,targetClassName,isReal=tag.__emotion_real===tag,baseTag=isReal&&tag.__emotion_base||tag;void 0!==options&&(identifierName=options.label,targetClassName=options.target);var shouldForwardProp=composeShouldForwardProps(tag,options,isReal),defaultShouldForwardProp=shouldForwardProp||getDefaultShouldForwardProp(baseTag),shouldUseAs=!defaultShouldForwardProp("as");return function(){var args=arguments,styles=isReal&&void 0!==tag.__emotion_styles?tag.__emotion_styles.slice(0):[];if(void 0!==identifierName&&styles.push("label:"+identifierName+";"),null==args[0]||void 0===args[0].raw)styles.push.apply(styles,args);else{0,styles.push(args[0][0]);for(var len=args.length,i=1;i=0&&huePrime<1?(red=chroma,green=secondComponent):huePrime>=1&&huePrime<2?(red=secondComponent,green=chroma):huePrime>=2&&huePrime<3?(green=chroma,blue=secondComponent):huePrime>=3&&huePrime<4?(green=secondComponent,blue=chroma):huePrime>=4&&huePrime<5?(red=secondComponent,blue=chroma):huePrime>=5&&huePrime<6&&(red=chroma,blue=secondComponent);var lightnessModification=lightness-chroma/2;return convert(red+lightnessModification,green+lightnessModification,blue+lightnessModification)}var namedColorMap={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var hexRegex=/^#[a-fA-F0-9]{6}$/,hexRgbaRegex=/^#[a-fA-F0-9]{8}$/,reducedHexRegex=/^#[a-fA-F0-9]{3}$/,reducedRgbaHexRegex=/^#[a-fA-F0-9]{4}$/,rgbRegex=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,rgbaRegex=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,hslRegex=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,hslaRegex=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function parseToRgb(color){if("string"!=typeof color)throw new PolishedError(3);var normalizedColor=function nameToHex(color){if("string"!=typeof color)return color;var normalizedColorName=color.toLowerCase();return namedColorMap[normalizedColorName]?"#"+namedColorMap[normalizedColorName]:color}(color);if(normalizedColor.match(hexRegex))return{red:parseInt(""+normalizedColor[1]+normalizedColor[2],16),green:parseInt(""+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(""+normalizedColor[5]+normalizedColor[6],16)};if(normalizedColor.match(hexRgbaRegex)){var alpha=parseFloat((parseInt(""+normalizedColor[7]+normalizedColor[8],16)/255).toFixed(2));return{red:parseInt(""+normalizedColor[1]+normalizedColor[2],16),green:parseInt(""+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(""+normalizedColor[5]+normalizedColor[6],16),alpha:alpha}}if(normalizedColor.match(reducedHexRegex))return{red:parseInt(""+normalizedColor[1]+normalizedColor[1],16),green:parseInt(""+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(""+normalizedColor[3]+normalizedColor[3],16)};if(normalizedColor.match(reducedRgbaHexRegex)){var _alpha=parseFloat((parseInt(""+normalizedColor[4]+normalizedColor[4],16)/255).toFixed(2));return{red:parseInt(""+normalizedColor[1]+normalizedColor[1],16),green:parseInt(""+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(""+normalizedColor[3]+normalizedColor[3],16),alpha:_alpha}}var rgbMatched=rgbRegex.exec(normalizedColor);if(rgbMatched)return{red:parseInt(""+rgbMatched[1],10),green:parseInt(""+rgbMatched[2],10),blue:parseInt(""+rgbMatched[3],10)};var rgbaMatched=rgbaRegex.exec(normalizedColor.substring(0,50));if(rgbaMatched)return{red:parseInt(""+rgbaMatched[1],10),green:parseInt(""+rgbaMatched[2],10),blue:parseInt(""+rgbaMatched[3],10),alpha:parseFloat(""+rgbaMatched[4])>1?parseFloat(""+rgbaMatched[4])/100:parseFloat(""+rgbaMatched[4])};var hslMatched=hslRegex.exec(normalizedColor);if(hslMatched){var rgbColorString="rgb("+hslToRgb(parseInt(""+hslMatched[1],10),parseInt(""+hslMatched[2],10)/100,parseInt(""+hslMatched[3],10)/100)+")",hslRgbMatched=rgbRegex.exec(rgbColorString);if(!hslRgbMatched)throw new PolishedError(4,normalizedColor,rgbColorString);return{red:parseInt(""+hslRgbMatched[1],10),green:parseInt(""+hslRgbMatched[2],10),blue:parseInt(""+hslRgbMatched[3],10)}}var hslaMatched=hslaRegex.exec(normalizedColor.substring(0,50));if(hslaMatched){var _rgbColorString="rgb("+hslToRgb(parseInt(""+hslaMatched[1],10),parseInt(""+hslaMatched[2],10)/100,parseInt(""+hslaMatched[3],10)/100)+")",_hslRgbMatched=rgbRegex.exec(_rgbColorString);if(!_hslRgbMatched)throw new PolishedError(4,normalizedColor,_rgbColorString);return{red:parseInt(""+_hslRgbMatched[1],10),green:parseInt(""+_hslRgbMatched[2],10),blue:parseInt(""+_hslRgbMatched[3],10),alpha:parseFloat(""+hslaMatched[4])>1?parseFloat(""+hslaMatched[4])/100:parseFloat(""+hslaMatched[4])}}throw new PolishedError(5)}function parseToHsl(color){return function rgbToHsl(color){var hue,red=color.red/255,green=color.green/255,blue=color.blue/255,max=Math.max(red,green,blue),min=Math.min(red,green,blue),lightness=(max+min)/2;if(max===min)return void 0!==color.alpha?{hue:0,saturation:0,lightness:lightness,alpha:color.alpha}:{hue:0,saturation:0,lightness:lightness};var delta=max-min,saturation=lightness>.5?delta/(2-max-min):delta/(max+min);switch(max){case red:hue=(green-blue)/delta+(green=1?rgb(firstValue,secondValue,thirdValue):"rgba("+firstValue+","+secondValue+","+thirdValue+","+fourthValue+")";if("object"===_typeof(firstValue)&&void 0===secondValue&&void 0===thirdValue&&void 0===fourthValue)return firstValue.alpha>=1?rgb(firstValue.red,firstValue.green,firstValue.blue):"rgba("+firstValue.red+","+firstValue.green+","+firstValue.blue+","+firstValue.alpha+")";throw new PolishedError(7)}function toColorString(color){if("object"!==_typeof(color))throw new PolishedError(8);if(function isRgba(color){return"number"==typeof color.red&&"number"==typeof color.green&&"number"==typeof color.blue&&"number"==typeof color.alpha}(color))return rgba(color);if(function isRgb(color){return"number"==typeof color.red&&"number"==typeof color.green&&"number"==typeof color.blue&&("number"!=typeof color.alpha||void 0===color.alpha)}(color))return rgb(color);if(function isHsla(color){return"number"==typeof color.hue&&"number"==typeof color.saturation&&"number"==typeof color.lightness&&"number"==typeof color.alpha}(color))return function hsla(value,saturation,lightness,alpha){if("number"==typeof value&&"number"==typeof saturation&&"number"==typeof lightness&&"number"==typeof alpha)return alpha>=1?hslToHex(value,saturation,lightness):"rgba("+hslToRgb(value,saturation,lightness)+","+alpha+")";if("object"===_typeof(value)&&void 0===saturation&&void 0===lightness&&void 0===alpha)return value.alpha>=1?hslToHex(value.hue,value.saturation,value.lightness):"rgba("+hslToRgb(value.hue,value.saturation,value.lightness)+","+value.alpha+")";throw new PolishedError(2)}(color);if(function isHsl(color){return"number"==typeof color.hue&&"number"==typeof color.saturation&&"number"==typeof color.lightness&&("number"!=typeof color.alpha||void 0===color.alpha)}(color))return function hsl(value,saturation,lightness){if("number"==typeof value&&"number"==typeof saturation&&"number"==typeof lightness)return hslToHex(value,saturation,lightness);if("object"===_typeof(value)&&void 0===saturation&&void 0===lightness)return hslToHex(value.hue,value.saturation,value.lightness);throw new PolishedError(1)}(color);throw new PolishedError(8)}function curried(f,length,acc){return function fn(){var combined=acc.concat(Array.prototype.slice.call(arguments));return combined.length>=length?f.apply(this,combined):curried(f,length,combined)}}function curry(f){return curried(f,f.length,[])}function guard(lowerBoundary,upperBoundary,value){return Math.max(lowerBoundary,Math.min(upperBoundary,value))}function darken(amount,color){if("transparent"===color)return color;var hslColor=parseToHsl(color);return toColorString(_extends({},hslColor,{lightness:guard(0,1,hslColor.lightness-parseFloat(amount))}))}var curriedDarken$1=curry(darken);function lighten(amount,color){if("transparent"===color)return color;var hslColor=parseToHsl(color);return toColorString(_extends({},hslColor,{lightness:guard(0,1,hslColor.lightness+parseFloat(amount))}))}var curriedLighten$1=curry(lighten);function opacify(amount,color){if("transparent"===color)return color;var parsedColor=parseToRgb(color);return rgba(_extends({},parsedColor,{alpha:guard(0,1,(100*("number"==typeof parsedColor.alpha?parsedColor.alpha:1)+100*parseFloat(amount))/100)}))}var curriedOpacify$1=curry(opacify);function transparentize(amount,color){if("transparent"===color)return color;var parsedColor=parseToRgb(color);return rgba(_extends({},parsedColor,{alpha:guard(0,1,+(100*("number"==typeof parsedColor.alpha?parsedColor.alpha:1)-100*parseFloat(amount)).toFixed(2)/100)}))}var color_secondary="#1EA7FD",color_tertiary="#FAFBFC",color_ancillary="#22a699",color_orange="#FC521F",color_gold="#FFAE00",color_green="#66BF3C",color_seafoam="#37D5D3",color_purple="#6F2CAC",color_ultraviolet="#2A0481",color_lightest="#FFFFFF",color_lighter="#F8F8F8",color_light="#F3F3F3",color_mediumlight="#EEEEEE",color_medium="#DDDDDD",color_mediumdark="#999999",color_dark="#666666",color_darker="#444444",color_darkest="#333333",color_border="rgba(0,0,0,.1)",color_positive="#66BF3C",color_negative="#FF4400",color_warning="#E69D00",color_critical="#FFFFFF",background={app:"#F6F9FC",bar:"#FFFFFF",content:color_lightest,gridCellSize:10,hoverable:curry(transparentize)(.93,color_secondary),positive:"#E1FFD4",negative:"#FEDED2",warning:"#FFF5CF",critical:"#FF4400"},typography={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700,black:900},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},createReset=memoizerific__WEBPACK_IMPORTED_MODULE_38___default()(1)((function(_ref3){var typography=_ref3.typography;return{body:{fontFamily:typography.fonts.base,fontSize:typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:typography.weight.regular,margin:0,padding:0},"button, input, textarea, select":{fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, strong":{fontWeight:typography.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}}})),theme$1=(memoizerific__WEBPACK_IMPORTED_MODULE_38___default()(1)((function(_ref4){var color=_ref4.color,background=_ref4.background,typography=_ref4.typography,resetStyles=createReset({typography:typography});return Object.assign(Object.assign({},resetStyles),{body:Object.assign(Object.assign({},resetStyles.body),{color:color.defaultText,background:background.app,overflow:"hidden"}),hr:Object.assign(Object.assign({},resetStyles.hr),{borderTop:"1px solid ".concat(color.border)})})})),{base:"light",colorPrimary:"#FF4785",colorSecondary:"#1EA7FD",appBg:background.app,appContentBg:color_lightest,appBorderColor:color_border,appBorderRadius:4,fontBase:typography.fonts.base,fontCode:typography.fonts.mono,textColor:color_darkest,textInverseColor:color_lightest,textMutedColor:color_dark,barTextColor:color_mediumdark,barSelectedColor:color_secondary,barBg:color_lightest,inputBg:color_lightest,inputBorder:color_border,inputTextColor:color_darkest,inputBorderRadius:4}),theme={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#1EA7FD",appBg:"#2f2f2f",appContentBg:color_darkest,appBorderColor:"rgba(255,255,255,.1)",appBorderRadius:4,fontBase:typography.fonts.base,fontCode:typography.fonts.mono,textColor:color_lightest,textInverseColor:color_darkest,textMutedColor:color_mediumdark,barTextColor:"#999999",barSelectedColor:color_secondary,barBg:color_darkest,inputBg:"#3f3f3f",inputBorder:"rgba(0,0,0,.3)",inputTextColor:color_lightest,inputBorderRadius:4},globalWindow=("undefined"!=typeof window?window:void 0!==commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:{}).window,colorFactory=function colorFactory(type){return function(color){if(!function isColorString(color){return"string"==typeof color||(_storybook_client_logger__WEBPACK_IMPORTED_MODULE_39__.kg.warn("Color passed to theme object should be a string. Instead "+"".concat(color,"(").concat(_typeof(color),") was passed.")),!1)}(color))return color;if(!function isValidColorForPolished(color){return!/(gradient|var|calc)/.test(color)}(color))return color;try{return function applyPolished(type,color){return"darken"===type?rgba("".concat(curriedDarken$1(1,color)),.95):"lighten"===type?rgba("".concat(curriedLighten$1(1,color)),.95):color}(type,color)}catch(error){return color}}},lightenColor=colorFactory("lighten"),darkenColor=colorFactory("darken"),getPreferredColorScheme=function getPreferredColorScheme(){return globalWindow&&globalWindow.matchMedia&&globalWindow.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"},themes={light:theme$1,dark:theme,normal:theme$1};getPreferredColorScheme();function __rest(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i0&&void 0!==arguments[0]?arguments[0]:themes[getPreferredColorScheme()],base=inherit.base,colorSecondary=(inherit.colorPrimary,inherit.colorSecondary),appBg=inherit.appBg,appContentBg=inherit.appContentBg,appBorderColor=inherit.appBorderColor,appBorderRadius=inherit.appBorderRadius,fontBase=inherit.fontBase,fontCode=inherit.fontCode,textColor=inherit.textColor,barTextColor=(inherit.textInverseColor,inherit.barTextColor),barSelectedColor=inherit.barSelectedColor,barBg=inherit.barBg,inputBg=inherit.inputBg,inputBorder=inherit.inputBorder,inputTextColor=inherit.inputTextColor,inputBorderRadius=inherit.inputBorderRadius,brandTitle=inherit.brandTitle,brandUrl=inherit.brandUrl,brandImage=inherit.brandImage,brandTarget=inherit.brandTarget,gridCellSize=inherit.gridCellSize,rest=__rest(inherit,["base","colorPrimary","colorSecondary","appBg","appContentBg","appBorderColor","appBorderRadius","fontBase","fontCode","textColor","textInverseColor","barTextColor","barSelectedColor","barBg","inputBg","inputBorder","inputTextColor","inputBorderRadius","brandTitle","brandUrl","brandImage","brandTarget","gridCellSize"]);return Object.assign(Object.assign({},rest||{}),{base:base,color:createColors(inherit),background:{app:appBg,bar:barBg,content:appContentBg,gridCellSize:gridCellSize||background.gridCellSize,hoverable:background.hoverable,positive:background.positive,negative:background.negative,warning:background.warning,critical:background.critical},typography:{fonts:{base:fontBase,mono:fontCode},weight:typography.weight,size:typography.size},animation:animation,easing:easing,input:{border:inputBorder,background:inputBg,color:inputTextColor,borderRadius:inputBorderRadius},layoutMargin:10,appBorderColor:appBorderColor,appBorderRadius:appBorderRadius,barTextColor:barTextColor,barSelectedColor:barSelectedColor||colorSecondary,barBg:barBg,brand:{title:brandTitle,url:brandUrl,image:brandImage||(brandTitle?null:void 0),target:brandTarget},code:create({colors:"light"===base?lightSyntaxColors:darkSyntaxColors,mono:fontCode}),addonActionsTheme:Object.assign(Object.assign({},"light"===base?chromeLight:chromeDark),{BASE_FONT_FAMILY:fontCode,BASE_FONT_SIZE:typography.size.s2-1,BASE_LINE_HEIGHT:"18px",BASE_BACKGROUND_COLOR:"transparent",BASE_COLOR:textColor,ARROW_COLOR:curriedOpacify$1(.2,appBorderColor),ARROW_MARGIN_RIGHT:4,ARROW_FONT_SIZE:8,TREENODE_FONT_FAMILY:fontCode,TREENODE_FONT_SIZE:typography.size.s2-1,TREENODE_LINE_HEIGHT:"18px",TREENODE_PADDING_LEFT:12})})},isObject=function isObject(o){return null!=o&&"object"===_typeof(o)},deletedDiff=function deletedDiff(lhs,rhs){if(lhs===rhs||!isObject(lhs)||!isObject(rhs))return{};var l=lhs,r=rhs;return Object.keys(l).reduce((function(acc,key){if(function hasOwnProperty(o){for(var _Object$prototype$has,_len3=arguments.length,args=new Array(_len3>1?_len3-1:0),_key3=1;_key3<_len3;_key3++)args[_key3-1]=arguments[_key3];return(_Object$prototype$has=Object.prototype.hasOwnProperty).call.apply(_Object$prototype$has,[o].concat(args))}(r,key)){var difference=deletedDiff(l[key],r[key]);return isObject(difference)&&function isEmpty(o){return 0===Object.keys(o).length}(difference)||(acc[key]=difference),acc}return acc[key]=void 0,acc}),{})};var ensure=function ensure(input){if(!input)return convert(theme$1);var missing=deletedDiff(theme$1,input);return Object.keys(missing).length&&_storybook_client_logger__WEBPACK_IMPORTED_MODULE_39__.kg.warn(function dedent(templ){for(var values=[],_i=1;_i>8&255]},packInt32=function(number){return[255&number,number>>8&255,number>>16&255,number>>24&255]},unpackInt32=function(buffer){return buffer[3]<<24|buffer[2]<<16|buffer[1]<<8|buffer[0]},packFloat32=function(number){return packIEEE754(number,23,4)},packFloat64=function(number){return packIEEE754(number,52,8)},addGetter=function(Constructor,key){defineProperty(Constructor.prototype,key,{get:function(){return getInternalState(this)[key]}})},get=function(view,count,index,isLittleEndian){var intIndex=toIndex(index),store=getInternalState(view);if(intIndex+count>store.byteLength)throw RangeError("Wrong index");var bytes=getInternalState(store.buffer).bytes,start=intIndex+store.byteOffset,pack=arraySlice(bytes,start,start+count);return isLittleEndian?pack:reverse(pack)},set=function(view,count,index,conversion,value,isLittleEndian){var intIndex=toIndex(index),store=getInternalState(view);if(intIndex+count>store.byteLength)throw RangeError("Wrong index");for(var bytes=getInternalState(store.buffer).bytes,start=intIndex+store.byteOffset,pack=conversion(+value),i=0;ij;)(key=keys[j++])in $ArrayBuffer||createNonEnumerableProperty($ArrayBuffer,key,NativeArrayBuffer[key]);ArrayBufferPrototype.constructor=$ArrayBuffer}setPrototypeOf&&getPrototypeOf(DataViewPrototype)!==ObjectPrototype&&setPrototypeOf(DataViewPrototype,ObjectPrototype);var testView=new $DataView(new $ArrayBuffer(2)),$setInt8=uncurryThis(DataViewPrototype.setInt8);testView.setInt8(0,2147483648),testView.setInt8(1,2147483649),!testView.getInt8(0)&&testView.getInt8(1)||defineBuiltIns(DataViewPrototype,{setInt8:function setInt8(byteOffset,value){$setInt8(this,byteOffset,value<<24>>24)},setUint8:function setUint8(byteOffset,value){$setInt8(this,byteOffset,value<<24>>24)}},{unsafe:!0})}else ArrayBufferPrototype=($ArrayBuffer=function ArrayBuffer(length){anInstance(this,ArrayBufferPrototype);var byteLength=toIndex(length);setInternalState(this,{bytes:fill(Array(byteLength),0),byteLength:byteLength}),DESCRIPTORS||(this.byteLength=byteLength)}).prototype,DataViewPrototype=($DataView=function DataView(buffer,byteOffset,byteLength){anInstance(this,DataViewPrototype),anInstance(buffer,ArrayBufferPrototype);var bufferLength=getInternalState(buffer).byteLength,offset=toIntegerOrInfinity(byteOffset);if(offset<0||offset>bufferLength)throw RangeError("Wrong offset");if(offset+(byteLength=void 0===byteLength?bufferLength-offset:toLength(byteLength))>bufferLength)throw RangeError("Wrong length");setInternalState(this,{buffer:buffer,byteLength:byteLength,byteOffset:offset}),DESCRIPTORS||(this.buffer=buffer,this.byteLength=byteLength,this.byteOffset=offset)}).prototype,DESCRIPTORS&&(addGetter($ArrayBuffer,"byteLength"),addGetter($DataView,"buffer"),addGetter($DataView,"byteLength"),addGetter($DataView,"byteOffset")),defineBuiltIns(DataViewPrototype,{getInt8:function getInt8(byteOffset){return get(this,1,byteOffset)[0]<<24>>24},getUint8:function getUint8(byteOffset){return get(this,1,byteOffset)[0]},getInt16:function getInt16(byteOffset){var bytes=get(this,2,byteOffset,arguments.length>1?arguments[1]:void 0);return(bytes[1]<<8|bytes[0])<<16>>16},getUint16:function getUint16(byteOffset){var bytes=get(this,2,byteOffset,arguments.length>1?arguments[1]:void 0);return bytes[1]<<8|bytes[0]},getInt32:function getInt32(byteOffset){return unpackInt32(get(this,4,byteOffset,arguments.length>1?arguments[1]:void 0))},getUint32:function getUint32(byteOffset){return unpackInt32(get(this,4,byteOffset,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function getFloat32(byteOffset){return unpackIEEE754(get(this,4,byteOffset,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function getFloat64(byteOffset){return unpackIEEE754(get(this,8,byteOffset,arguments.length>1?arguments[1]:void 0),52)},setInt8:function setInt8(byteOffset,value){set(this,1,byteOffset,packInt8,value)},setUint8:function setUint8(byteOffset,value){set(this,1,byteOffset,packInt8,value)},setInt16:function setInt16(byteOffset,value){set(this,2,byteOffset,packInt16,value,arguments.length>2?arguments[2]:void 0)},setUint16:function setUint16(byteOffset,value){set(this,2,byteOffset,packInt16,value,arguments.length>2?arguments[2]:void 0)},setInt32:function setInt32(byteOffset,value){set(this,4,byteOffset,packInt32,value,arguments.length>2?arguments[2]:void 0)},setUint32:function setUint32(byteOffset,value){set(this,4,byteOffset,packInt32,value,arguments.length>2?arguments[2]:void 0)},setFloat32:function setFloat32(byteOffset,value){set(this,4,byteOffset,packFloat32,value,arguments.length>2?arguments[2]:void 0)},setFloat64:function setFloat64(byteOffset,value){set(this,8,byteOffset,packFloat64,value,arguments.length>2?arguments[2]:void 0)}});setToStringTag($ArrayBuffer,"ArrayBuffer"),setToStringTag($DataView,"DataView"),module.exports={ArrayBuffer:$ArrayBuffer,DataView:$DataView}},"./node_modules/core-js/internals/create-html.js":function(module,__unused_webpack_exports,__webpack_require__){var uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js"),requireObjectCoercible=__webpack_require__("./node_modules/core-js/internals/require-object-coercible.js"),toString=__webpack_require__("./node_modules/core-js/internals/to-string.js"),quot=/"/g,replace=uncurryThis("".replace);module.exports=function(string,tag,attribute,value){var S=toString(requireObjectCoercible(string)),p1="<"+tag;return""!==attribute&&(p1+=" "+attribute+'="'+replace(toString(value),quot,""")+'"'),p1+">"+S+""}},"./node_modules/core-js/internals/ieee754.js":function(module){var $Array=Array,abs=Math.abs,pow=Math.pow,floor=Math.floor,log=Math.log,LN2=Math.LN2;module.exports={pack:function(number,mantissaLength,bytes){var exponent,mantissa,c,buffer=$Array(bytes),exponentLength=8*bytes-mantissaLength-1,eMax=(1<>1,rt=23===mantissaLength?pow(2,-24)-pow(2,-77):0,sign=number<0||0===number&&1/number<0?1:0,index=0;for((number=abs(number))!=number||number===1/0?(mantissa=number!=number?1:0,exponent=eMax):(exponent=floor(log(number)/LN2),number*(c=pow(2,-exponent))<1&&(exponent--,c*=2),(number+=exponent+eBias>=1?rt/c:rt*pow(2,1-eBias))*c>=2&&(exponent++,c/=2),exponent+eBias>=eMax?(mantissa=0,exponent=eMax):exponent+eBias>=1?(mantissa=(number*c-1)*pow(2,mantissaLength),exponent+=eBias):(mantissa=number*pow(2,eBias-1)*pow(2,mantissaLength),exponent=0));mantissaLength>=8;)buffer[index++]=255&mantissa,mantissa/=256,mantissaLength-=8;for(exponent=exponent<0;)buffer[index++]=255&exponent,exponent/=256,exponentLength-=8;return buffer[--index]|=128*sign,buffer},unpack:function(buffer,mantissaLength){var mantissa,bytes=buffer.length,exponentLength=8*bytes-mantissaLength-1,eMax=(1<>1,nBits=exponentLength-7,index=bytes-1,sign=buffer[index--],exponent=127&sign;for(sign>>=7;nBits>0;)exponent=256*exponent+buffer[index--],nBits-=8;for(mantissa=exponent&(1<<-nBits)-1,exponent>>=-nBits,nBits+=mantissaLength;nBits>0;)mantissa=256*mantissa+buffer[index--],nBits-=8;if(0===exponent)exponent=1-eBias;else{if(exponent===eMax)return mantissa?NaN:sign?-1/0:1/0;mantissa+=pow(2,mantissaLength),exponent-=eBias}return(sign?-1:1)*mantissa*pow(2,exponent-mantissaLength)}}},"./node_modules/core-js/internals/string-html-forced.js":function(module,__unused_webpack_exports,__webpack_require__){var fails=__webpack_require__("./node_modules/core-js/internals/fails.js");module.exports=function(METHOD_NAME){return fails((function(){var test=""[METHOD_NAME]('"');return test!==test.toLowerCase()||test.split('"').length>3}))}},"./node_modules/core-js/internals/string-trim-end.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";var $trimEnd=__webpack_require__("./node_modules/core-js/internals/string-trim.js").end,forcedStringTrimMethod=__webpack_require__("./node_modules/core-js/internals/string-trim-forced.js");module.exports=forcedStringTrimMethod("trimEnd")?function trimEnd(){return $trimEnd(this)}:"".trimEnd},"./node_modules/core-js/internals/to-index.js":function(module,__unused_webpack_exports,__webpack_require__){var toIntegerOrInfinity=__webpack_require__("./node_modules/core-js/internals/to-integer-or-infinity.js"),toLength=__webpack_require__("./node_modules/core-js/internals/to-length.js"),$RangeError=RangeError;module.exports=function(it){if(void 0===it)return 0;var number=toIntegerOrInfinity(it),length=toLength(number);if(number!==length)throw $RangeError("Wrong length or index");return length}},"./node_modules/core-js/modules/es.array-buffer.constructor.js":function(__unused_webpack_module,__unused_webpack_exports,__webpack_require__){"use strict";var $=__webpack_require__("./node_modules/core-js/internals/export.js"),global=__webpack_require__("./node_modules/core-js/internals/global.js"),arrayBufferModule=__webpack_require__("./node_modules/core-js/internals/array-buffer.js"),setSpecies=__webpack_require__("./node_modules/core-js/internals/set-species.js"),ArrayBuffer=arrayBufferModule.ArrayBuffer;$({global:!0,constructor:!0,forced:global.ArrayBuffer!==ArrayBuffer},{ArrayBuffer:ArrayBuffer}),setSpecies("ArrayBuffer")},"./node_modules/core-js/modules/es.array.splice.js":function(__unused_webpack_module,__unused_webpack_exports,__webpack_require__){"use strict";var $=__webpack_require__("./node_modules/core-js/internals/export.js"),toObject=__webpack_require__("./node_modules/core-js/internals/to-object.js"),toAbsoluteIndex=__webpack_require__("./node_modules/core-js/internals/to-absolute-index.js"),toIntegerOrInfinity=__webpack_require__("./node_modules/core-js/internals/to-integer-or-infinity.js"),lengthOfArrayLike=__webpack_require__("./node_modules/core-js/internals/length-of-array-like.js"),doesNotExceedSafeInteger=__webpack_require__("./node_modules/core-js/internals/does-not-exceed-safe-integer.js"),arraySpeciesCreate=__webpack_require__("./node_modules/core-js/internals/array-species-create.js"),createProperty=__webpack_require__("./node_modules/core-js/internals/create-property.js"),deletePropertyOrThrow=__webpack_require__("./node_modules/core-js/internals/delete-property-or-throw.js"),HAS_SPECIES_SUPPORT=__webpack_require__("./node_modules/core-js/internals/array-method-has-species-support.js")("splice"),max=Math.max,min=Math.min;$({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT},{splice:function splice(start,deleteCount){var insertCount,actualDeleteCount,A,k,from,to,O=toObject(this),len=lengthOfArrayLike(O),actualStart=toAbsoluteIndex(start,len),argumentsLength=arguments.length;for(0===argumentsLength?insertCount=actualDeleteCount=0:1===argumentsLength?(insertCount=0,actualDeleteCount=len-actualStart):(insertCount=argumentsLength-2,actualDeleteCount=min(max(toIntegerOrInfinity(deleteCount),0),len-actualStart)),doesNotExceedSafeInteger(len+insertCount-actualDeleteCount),A=arraySpeciesCreate(O,actualDeleteCount),k=0;klen-actualDeleteCount+insertCount;k--)deletePropertyOrThrow(O,k-1)}else if(insertCount>actualDeleteCount)for(k=len-actualDeleteCount;k>actualStart;k--)to=k+insertCount-1,(from=k+actualDeleteCount-1)in O?O[to]=O[from]:deletePropertyOrThrow(O,to);for(k=0;karr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(o[t]=e[t]);return o}function i(e){var t=(0,react__WEBPACK_IMPORTED_MODULE_26__.useRef)(e),n=(0,react__WEBPACK_IMPORTED_MODULE_26__.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var s=function s(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=1),e>t?t:e0:_e.buttons>0)&&m.current?g(d(m.current,_e,b.current)):t(!1)},r=function r(){return t(!1)};function t(t){var n=_.current,o=v(m.current),a=t?o.addEventListener:o.removeEventListener;a(n?"touchmove":"mousemove",e),a(n?"touchend":"mouseup",r)}return[function(e){var r=e.nativeEvent,n=m.current;if(n&&(h(r),!function(e,r){return r&&!f(e)}(r,_.current)&&n)){if(f(r)){_.current=!0;var o=r.changedTouches||[];o.length&&(b.current=o[0].identifier)}n.focus(),g(d(n,r,b.current)),t(!0)}},function(e){var r=e.which||e.keyCode;r<37||r>40||(e.preventDefault(),p({left:39===r?.05:37===r?-.05:0,top:40===r?.05:38===r?-.05:0}))},t]}),[p,g]),C=x[0],E=x[1],H=x[2];return(0,react__WEBPACK_IMPORTED_MODULE_26__.useEffect)((function(){return H}),[H]),react__WEBPACK_IMPORTED_MODULE_26__.createElement("div",u({},s,{onTouchStart:C,onMouseDown:C,className:"react-colorful__interactive",ref:m,onKeyDown:E,tabIndex:0,role:"slider"}))})),g=function g(e){return e.filter(Boolean).join(" ")},p=function p(r){var t=r.color,n=r.left,o=r.top,a=void 0===o?.5:o,l=g(["react-colorful__pointer",r.className]);return react__WEBPACK_IMPORTED_MODULE_26__.createElement("div",{className:l,style:{top:100*a+"%",left:100*n+"%"}},react__WEBPACK_IMPORTED_MODULE_26__.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},b=function b(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=Math.pow(10,r)),Math.round(t*e)/t},_={grad:.9,turn:360,rad:360/(2*Math.PI)},x=function x(e){return"#"===e[0]&&(e=e.substr(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:1}:{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:1}},C=function C(e,r){return void 0===r&&(r="deg"),Number(e)*(_[r]||1)},M=function M(e){var r=e.s,t=e.l;return{h:e.h,s:(r*=(t<50?t:100-t)/100)>0?2*r/(t+r)*100:0,v:t+r,a:e.a}},N=function N(e){var r=e.s,t=e.v,n=e.a,o=(200-r)*t/100;return{h:b(e.h),s:b(o>0&&o<200?r*t/100/(o<=100?o:200-o)*100:0),l:b(o/2),a:b(n,2)}},w=function w(e){var r=N(e);return"hsl("+r.h+", "+r.s+"%, "+r.l+"%)"},y=function y(e){var r=N(e);return"hsla("+r.h+", "+r.s+"%, "+r.l+"%, "+r.a+")"},q=function q(e){var r=e.h,t=e.s,n=e.v,o=e.a;r=r/360*6,t/=100,n/=100;var a=Math.floor(r),l=n*(1-t),u=n*(1-(r-a)*t),c=n*(1-(1-r+a)*t),i=a%6;return{r:b(255*[n,u,l,l,c,n][i]),g:b(255*[c,n,n,u,l,l][i]),b:b(255*[l,l,c,n,n,u][i]),a:b(o,2)}},z=function z(e){var r=e.toString(16);return r.length<2?"0"+r:r},B=function B(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=Math.max(r,t,n),l=a-Math.min(r,t,n),u=l?a===r?(t-n)/l:a===t?2+(n-r)/l:4+(r-t)/l:0;return{h:b(60*(u<0?u+6:u)),s:b(a?l/a*100:0),v:b(a/255*100),a:o}},K=react__WEBPACK_IMPORTED_MODULE_26__.memo((function(r){var t=r.hue,n=r.onChange,o=g(["react-colorful__hue",r.className]);return react__WEBPACK_IMPORTED_MODULE_26__.createElement("div",{className:o},react__WEBPACK_IMPORTED_MODULE_26__.createElement(m,{onMove:function onMove(e){n({h:360*e.left})},onKey:function onKey(e){n({h:s(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuetext":b(t)},react__WEBPACK_IMPORTED_MODULE_26__.createElement(p,{className:"react-colorful__hue-pointer",left:t/360,color:w({h:t,s:100,v:100,a:1})})))})),L=react__WEBPACK_IMPORTED_MODULE_26__.memo((function(r){var t=r.hsva,n=r.onChange,o={backgroundColor:w({h:t.h,s:100,v:100,a:1})};return react__WEBPACK_IMPORTED_MODULE_26__.createElement("div",{className:"react-colorful__saturation",style:o},react__WEBPACK_IMPORTED_MODULE_26__.createElement(m,{onMove:function onMove(e){n({s:100*e.left,v:100-100*e.top})},onKey:function onKey(e){n({s:s(t.s+100*e.left,0,100),v:s(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+b(t.s)+"%, Brightness "+b(t.v)+"%"},react__WEBPACK_IMPORTED_MODULE_26__.createElement(p,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:w(t)})))})),A=function A(e,r){if(e===r)return!0;for(var t in e)if(e[t]!==r[t])return!1;return!0},S=function S(e,r){return e.replace(/\s/g,"")===r.replace(/\s/g,"")};function T(e,t,l){var u=i(l),c=(0,react__WEBPACK_IMPORTED_MODULE_26__.useState)((function(){return e.toHsva(t)})),s=c[0],f=c[1],v=(0,react__WEBPACK_IMPORTED_MODULE_26__.useRef)({color:t,hsva:s});(0,react__WEBPACK_IMPORTED_MODULE_26__.useEffect)((function(){if(!e.equal(t,v.current.color)){var r=e.toHsva(t);v.current={hsva:r,color:t},f(r)}}),[t,e]),(0,react__WEBPACK_IMPORTED_MODULE_26__.useEffect)((function(){var r;A(s,v.current.hsva)||e.equal(r=e.fromHsva(s),v.current.color)||(v.current={hsva:s,color:r},u(r))}),[s,e,u]);var d=(0,react__WEBPACK_IMPORTED_MODULE_26__.useCallback)((function(e){f((function(r){return Object.assign({},r,e)}))}),[]);return[s,d]}for(var P="undefined"!=typeof window?react__WEBPACK_IMPORTED_MODULE_26__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_26__.useEffect,R=new Map,V=function V(e){P((function(){var r=e.current?e.current.ownerDocument:document;if(void 0!==r&&!R.has(r)){var t=r.createElement("style");t.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',R.set(r,t);var n=function X(){return __webpack_require__.nc}();n&&t.setAttribute("nonce",n),r.head.appendChild(t)}}),[])},$=function $(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=c(t,["className","colorModel","color","onChange"]),f=(0,react__WEBPACK_IMPORTED_MODULE_26__.useRef)(null);V(f);var v=T(o,l,i),d=v[0],h=v[1],m=g(["react-colorful",n]);return react__WEBPACK_IMPORTED_MODULE_26__.createElement("div",u({},s,{ref:f,className:m}),react__WEBPACK_IMPORTED_MODULE_26__.createElement(L,{hsva:d,onChange:h}),react__WEBPACK_IMPORTED_MODULE_26__.createElement(K,{hue:d.h,onChange:h,className:"react-colorful__last-control"}))},G={defaultColor:"000",toHsva:function toHsva(e){return B(x(e))},fromHsva:function fromHsva(e){return t=(r=q(e)).g,n=r.b,"#"+z(r.r)+z(t)+z(n);var r,t,n},equal:function equal(e,r){return e.toLowerCase()===r.toLowerCase()||A(x(e),x(r))}},Q=function Q(r){var t=r.className,n=r.hsva,o=r.onChange,a={backgroundImage:"linear-gradient(90deg, "+y(Object.assign({},n,{a:0}))+", "+y(Object.assign({},n,{a:1}))+")"},l=g(["react-colorful__alpha",t]);return react__WEBPACK_IMPORTED_MODULE_26__.createElement("div",{className:l},react__WEBPACK_IMPORTED_MODULE_26__.createElement("div",{className:"react-colorful__alpha-gradient",style:a}),react__WEBPACK_IMPORTED_MODULE_26__.createElement(m,{onMove:function onMove(e){o({a:e.left})},onKey:function onKey(e){o({a:s(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":b(100*n.a)+"%"},react__WEBPACK_IMPORTED_MODULE_26__.createElement(p,{className:"react-colorful__alpha-pointer",left:n.a,color:y(n)})))},U=function U(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=c(t,["className","colorModel","color","onChange"]),f=(0,react__WEBPACK_IMPORTED_MODULE_26__.useRef)(null);V(f);var v=T(o,l,i),d=v[0],h=v[1],m=g(["react-colorful",n]);return react__WEBPACK_IMPORTED_MODULE_26__.createElement("div",u({},s,{ref:f,className:m}),react__WEBPACK_IMPORTED_MODULE_26__.createElement(L,{hsva:d,onChange:h}),react__WEBPACK_IMPORTED_MODULE_26__.createElement(K,{hue:d.h,onChange:h}),react__WEBPACK_IMPORTED_MODULE_26__.createElement(Q,{hsva:d,onChange:h,className:"react-colorful__last-control"}))},ee={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:function E(e){var r=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?M({h:C(r[1],r[2]),s:Number(r[3]),l:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},fromHsva:y,equal:S},ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:function I(e){var r=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?B({r:Number(r[1])/(r[2]?100/255:1),g:Number(r[3])/(r[4]?100/255:1),b:Number(r[5])/(r[6]?100/255:1),a:void 0===r[7]?1:Number(r[7])/(r[8]?100:1)}):{h:0,s:0,v:0,a:1}},fromHsva:function fromHsva(e){var r=q(e);return"rgba("+r.r+", "+r.g+", "+r.b+", "+r.a+")"},equal:S},cssKeywords={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},reverseKeywords={},_i=0,_Object$keys=Object.keys(cssKeywords);_i<_Object$keys.length;_i++){var key=_Object$keys[_i];reverseKeywords[cssKeywords[key]]=key}for(var convert$1={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},conversions$2=convert$1,_i2=0,_Object$keys2=Object.keys(convert$1);_i2<_Object$keys2.length;_i2++){var model=_Object$keys2[_i2];if(!("channels"in convert$1[model]))throw new Error("missing channels property: "+model);if(!("labels"in convert$1[model]))throw new Error("missing channel labels property: "+model);if(convert$1[model].labels.length!==convert$1[model].channels)throw new Error("channel and label counts mismatch: "+model);var _convert$1$model=convert$1[model],channels=_convert$1$model.channels,labels=_convert$1$model.labels;delete convert$1[model].channels,delete convert$1[model].labels,Object.defineProperty(convert$1[model],"channels",{value:channels}),Object.defineProperty(convert$1[model],"labels",{value:labels})}function comparativeDistance(x,y){return Math.pow(x[0]-y[0],2)+Math.pow(x[1]-y[1],2)+Math.pow(x[2]-y[2],2)}convert$1.rgb.hsl=function(rgb){var h,r=rgb[0]/255,g=rgb[1]/255,b=rgb[2]/255,min=Math.min(r,g,b),max=Math.max(r,g,b),delta=max-min;max===min?h=0:r===max?h=(g-b)/delta:g===max?h=2+(b-r)/delta:b===max&&(h=4+(r-g)/delta),(h=Math.min(60*h,360))<0&&(h+=360);var l=(min+max)/2;return[h,100*(max===min?0:l<=.5?delta/(max+min):delta/(2-max-min)),100*l]},convert$1.rgb.hsv=function(rgb){var rdif,gdif,bdif,h,s,r=rgb[0]/255,g=rgb[1]/255,b=rgb[2]/255,v=Math.max(r,g,b),diff=v-Math.min(r,g,b),diffc=function diffc(c){return(v-c)/6/diff+.5};return 0===diff?(h=0,s=0):(s=diff/v,rdif=diffc(r),gdif=diffc(g),bdif=diffc(b),r===v?h=bdif-gdif:g===v?h=1/3+rdif-bdif:b===v&&(h=2/3+gdif-rdif),h<0?h+=1:h>1&&(h-=1)),[360*h,100*s,100*v]},convert$1.rgb.hwb=function(rgb){var r=rgb[0],g=rgb[1],b=rgb[2];return[convert$1.rgb.hsl(rgb)[0],100*(1/255*Math.min(r,Math.min(g,b))),100*(b=1-1/255*Math.max(r,Math.max(g,b)))]},convert$1.rgb.cmyk=function(rgb){var r=rgb[0]/255,g=rgb[1]/255,b=rgb[2]/255,k=Math.min(1-r,1-g,1-b);return[100*((1-r-k)/(1-k)||0),100*((1-g-k)/(1-k)||0),100*((1-b-k)/(1-k)||0),100*k]},convert$1.rgb.keyword=function(rgb){var reversed=reverseKeywords[rgb];if(reversed)return reversed;for(var currentClosestKeyword,currentClosestDistance=1/0,_i3=0,_Object$keys3=Object.keys(cssKeywords);_i3<_Object$keys3.length;_i3++){var keyword=_Object$keys3[_i3],distance=comparativeDistance(rgb,cssKeywords[keyword]);distance.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.3576*(g=g>.04045?Math.pow((g+.055)/1.055,2.4):g/12.92)+.1805*(b=b>.04045?Math.pow((b+.055)/1.055,2.4):b/12.92)),100*(.2126*r+.7152*g+.0722*b),100*(.0193*r+.1192*g+.9505*b)]},convert$1.rgb.lab=function(rgb){var xyz=convert$1.rgb.xyz(rgb),x=xyz[0],y=xyz[1],z=xyz[2];return y/=100,z/=108.883,x=(x/=95.047)>.008856?Math.pow(x,1/3):7.787*x+16/116,[116*(y=y>.008856?Math.pow(y,1/3):7.787*y+16/116)-16,500*(x-y),200*(y-(z=z>.008856?Math.pow(z,1/3):7.787*z+16/116))]},convert$1.hsl.rgb=function(hsl){var t2,t3,val,h=hsl[0]/360,s=hsl[1]/100,l=hsl[2]/100;if(0===s)return[val=255*l,val,val];for(var t1=2*l-(t2=l<.5?l*(1+s):l+s-l*s),rgb=[0,0,0],_i4=0;_i4<3;_i4++)(t3=h+1/3*-(_i4-1))<0&&t3++,t3>1&&t3--,val=6*t3<1?t1+6*(t2-t1)*t3:2*t3<1?t2:3*t3<2?t1+(t2-t1)*(2/3-t3)*6:t1,rgb[_i4]=255*val;return rgb},convert$1.hsl.hsv=function(hsl){var h=hsl[0],s=hsl[1]/100,l=hsl[2]/100,smin=s,lmin=Math.max(l,.01);return s*=(l*=2)<=1?l:2-l,smin*=lmin<=1?lmin:2-lmin,[h,100*(0===l?2*smin/(lmin+smin):2*s/(l+s)),100*((l+s)/2)]},convert$1.hsv.rgb=function(hsv){var h=hsv[0]/60,s=hsv[1]/100,v=hsv[2]/100,hi=Math.floor(h)%6,f=h-Math.floor(h),p=255*v*(1-s),q=255*v*(1-s*f),t=255*v*(1-s*(1-f));switch(v*=255,hi){case 0:return[v,t,p];case 1:return[q,v,p];case 2:return[p,v,t];case 3:return[p,q,v];case 4:return[t,p,v];case 5:return[v,p,q]}},convert$1.hsv.hsl=function(hsv){var sl,l,h=hsv[0],s=hsv[1]/100,v=hsv[2]/100,vmin=Math.max(v,.01);l=(2-s)*v;var lmin=(2-s)*vmin;return sl=s*vmin,[h,100*(sl=(sl/=lmin<=1?lmin:2-lmin)||0),100*(l/=2)]},convert$1.hwb.rgb=function(hwb){var f,h=hwb[0]/360,wh=hwb[1]/100,bl=hwb[2]/100,ratio=wh+bl;ratio>1&&(wh/=ratio,bl/=ratio);var i=Math.floor(6*h),v=1-bl;f=6*h-i,0!=(1&i)&&(f=1-f);var r,g,b,n=wh+f*(v-wh);switch(i){default:case 6:case 0:r=v,g=n,b=wh;break;case 1:r=n,g=v,b=wh;break;case 2:r=wh,g=v,b=n;break;case 3:r=wh,g=n,b=v;break;case 4:r=n,g=wh,b=v;break;case 5:r=v,g=wh,b=n}return[255*r,255*g,255*b]},convert$1.cmyk.rgb=function(cmyk){var c=cmyk[0]/100,m=cmyk[1]/100,y=cmyk[2]/100,k=cmyk[3]/100;return[255*(1-Math.min(1,c*(1-k)+k)),255*(1-Math.min(1,m*(1-k)+k)),255*(1-Math.min(1,y*(1-k)+k))]},convert$1.xyz.rgb=function(xyz){var r,g,b,x=xyz[0]/100,y=xyz[1]/100,z=xyz[2]/100;return g=-.9689*x+1.8758*y+.0415*z,b=.0557*x+-.204*y+1.057*z,r=(r=3.2406*x+-1.5372*y+-.4986*z)>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,g=g>.0031308?1.055*Math.pow(g,1/2.4)-.055:12.92*g,b=b>.0031308?1.055*Math.pow(b,1/2.4)-.055:12.92*b,[255*(r=Math.min(Math.max(0,r),1)),255*(g=Math.min(Math.max(0,g),1)),255*(b=Math.min(Math.max(0,b),1))]},convert$1.xyz.lab=function(xyz){var x=xyz[0],y=xyz[1],z=xyz[2];return y/=100,z/=108.883,x=(x/=95.047)>.008856?Math.pow(x,1/3):7.787*x+16/116,[116*(y=y>.008856?Math.pow(y,1/3):7.787*y+16/116)-16,500*(x-y),200*(y-(z=z>.008856?Math.pow(z,1/3):7.787*z+16/116))]},convert$1.lab.xyz=function(lab){var x,y,z,l=lab[0];x=lab[1]/500+(y=(l+16)/116),z=y-lab[2]/200;var y2=Math.pow(y,3),x2=Math.pow(x,3),z2=Math.pow(z,3);return y=y2>.008856?y2:(y-16/116)/7.787,x=x2>.008856?x2:(x-16/116)/7.787,z=z2>.008856?z2:(z-16/116)/7.787,[x*=95.047,y*=100,z*=108.883]},convert$1.lab.lch=function(lab){var h,l=lab[0],a=lab[1],b=lab[2];return(h=360*Math.atan2(b,a)/2/Math.PI)<0&&(h+=360),[l,Math.sqrt(a*a+b*b),h]},convert$1.lch.lab=function(lch){var l=lch[0],c=lch[1],hr=lch[2]/360*2*Math.PI;return[l,c*Math.cos(hr),c*Math.sin(hr)]},convert$1.rgb.ansi16=function(args){var saturation=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,_args=_slicedToArray(args,3),r=_args[0],g=_args[1],b=_args[2],value=null===saturation?convert$1.rgb.hsv(args)[2]:saturation;if(0===(value=Math.round(value/50)))return 30;var ansi=30+(Math.round(b/255)<<2|Math.round(g/255)<<1|Math.round(r/255));return 2===value&&(ansi+=60),ansi},convert$1.hsv.ansi16=function(args){return convert$1.rgb.ansi16(convert$1.hsv.rgb(args),args[2])},convert$1.rgb.ansi256=function(args){var r=args[0],g=args[1],b=args[2];return r===g&&g===b?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(g/255*5)+Math.round(b/255*5)},convert$1.ansi16.rgb=function(args){var color=args%10;if(0===color||7===color)return args>50&&(color+=3.5),[color=color/10.5*255,color,color];var mult=.5*(1+~~(args>50));return[(1&color)*mult*255,(color>>1&1)*mult*255,(color>>2&1)*mult*255]},convert$1.ansi256.rgb=function(args){if(args>=232){var _c=10*(args-232)+8;return[_c,_c,_c]}var rem;return args-=16,[Math.floor(args/36)/5*255,Math.floor((rem=args%36)/6)/5*255,rem%6/5*255]},convert$1.rgb.hex=function(args){var string=(((255&Math.round(args[0]))<<16)+((255&Math.round(args[1]))<<8)+(255&Math.round(args[2]))).toString(16).toUpperCase();return"000000".substring(string.length)+string},convert$1.hex.rgb=function(args){var match=args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!match)return[0,0,0];var colorString=match[0];3===match[0].length&&(colorString=colorString.split("").map((function(char){return char+char})).join(""));var integer=parseInt(colorString,16);return[integer>>16&255,integer>>8&255,255&integer]},convert$1.rgb.hcg=function(rgb){var hue,r=rgb[0]/255,g=rgb[1]/255,b=rgb[2]/255,max=Math.max(Math.max(r,g),b),min=Math.min(Math.min(r,g),b),chroma=max-min;return hue=chroma<=0?0:max===r?(g-b)/chroma%6:max===g?2+(b-r)/chroma:4+(r-g)/chroma,hue/=6,[360*(hue%=1),100*chroma,100*(chroma<1?min/(1-chroma):0)]},convert$1.hsl.hcg=function(hsl){var s=hsl[1]/100,l=hsl[2]/100,c=l<.5?2*s*l:2*s*(1-l),f=0;return c<1&&(f=(l-.5*c)/(1-c)),[hsl[0],100*c,100*f]},convert$1.hsv.hcg=function(hsv){var s=hsv[1]/100,v=hsv[2]/100,c=s*v,f=0;return c<1&&(f=(v-c)/(1-c)),[hsv[0],100*c,100*f]},convert$1.hcg.rgb=function(hcg){var h=hcg[0]/360,c=hcg[1]/100,g=hcg[2]/100;if(0===c)return[255*g,255*g,255*g];var mg,pure=[0,0,0],hi=h%1*6,v=hi%1,w=1-v;switch(Math.floor(hi)){case 0:pure[0]=1,pure[1]=v,pure[2]=0;break;case 1:pure[0]=w,pure[1]=1,pure[2]=0;break;case 2:pure[0]=0,pure[1]=1,pure[2]=v;break;case 3:pure[0]=0,pure[1]=w,pure[2]=1;break;case 4:pure[0]=v,pure[1]=0,pure[2]=1;break;default:pure[0]=1,pure[1]=0,pure[2]=w}return mg=(1-c)*g,[255*(c*pure[0]+mg),255*(c*pure[1]+mg),255*(c*pure[2]+mg)]},convert$1.hcg.hsv=function(hcg){var c=hcg[1]/100,v=c+hcg[2]/100*(1-c),f=0;return v>0&&(f=c/v),[hcg[0],100*f,100*v]},convert$1.hcg.hsl=function(hcg){var c=hcg[1]/100,l=hcg[2]/100*(1-c)+.5*c,s=0;return l>0&&l<.5?s=c/(2*l):l>=.5&&l<1&&(s=c/(2*(1-l))),[hcg[0],100*s,100*l]},convert$1.hcg.hwb=function(hcg){var c=hcg[1]/100,v=c+hcg[2]/100*(1-c);return[hcg[0],100*(v-c),100*(1-v)]},convert$1.hwb.hcg=function(hwb){var w=hwb[1]/100,v=1-hwb[2]/100,c=v-w,g=0;return c<1&&(g=(v-c)/(1-c)),[hwb[0],100*c,100*g]},convert$1.apple.rgb=function(apple){return[apple[0]/65535*255,apple[1]/65535*255,apple[2]/65535*255]},convert$1.rgb.apple=function(rgb){return[rgb[0]/255*65535,rgb[1]/255*65535,rgb[2]/255*65535]},convert$1.gray.rgb=function(args){return[args[0]/100*255,args[0]/100*255,args[0]/100*255]},convert$1.gray.hsl=function(args){return[0,0,args[0]]},convert$1.gray.hsv=convert$1.gray.hsl,convert$1.gray.hwb=function(gray){return[0,100,gray[0]]},convert$1.gray.cmyk=function(gray){return[0,0,0,gray[0]]},convert$1.gray.lab=function(gray){return[gray[0],0,0]},convert$1.gray.hex=function(gray){var val=255&Math.round(gray[0]/100*255),string=((val<<16)+(val<<8)+val).toString(16).toUpperCase();return"000000".substring(string.length)+string},convert$1.rgb.gray=function(rgb){return[(rgb[0]+rgb[1]+rgb[2])/3/255*100]};var conversions$1=conversions$2;function deriveBFS(fromModel){var graph=function buildGraph(){for(var graph={},models=Object.keys(conversions$1),len=models.length,_i5=0;_i51&&(args=arg0);var result=fn(args);if("object"===_typeof(result))for(var len=result.length,_i8=0;_i81&&(args=arg0),fn(args))};return"conversion"in fn&&(wrappedFn.conversion=fn.conversion),wrappedFn}(fn)}))}));var colorConvert=convert,root=_index_b45716e8_js__WEBPACK_IMPORTED_MODULE_30__.u,now_1=function now$1(){return root.Date.now()},reWhitespace=/\s/;var trimmedEndIndex=function trimmedEndIndex$1(string){for(var index=string.length;index--&&reWhitespace.test(string.charAt(index)););return index},reTrimStart=/^\s+/;var baseTrim=function baseTrim$1(string){return string?string.slice(0,trimmedEndIndex(string)+1).replace(reTrimStart,""):string},isObject$2=_index_b45716e8_js__WEBPACK_IMPORTED_MODULE_30__.x,isSymbol=_index_b45716e8_js__WEBPACK_IMPORTED_MODULE_30__.y,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;var toNumber_1=function toNumber$1(value){if("number"==typeof value)return value;if(isSymbol(value))return NaN;if(isObject$2(value)){var other="function"==typeof value.valueOf?value.valueOf():value;value=isObject$2(other)?other+"":other}if("string"!=typeof value)return 0===value?value:+value;value=baseTrim(value);var isBinary=reIsBinary.test(value);return isBinary||reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NaN:+value},isObject$1=_index_b45716e8_js__WEBPACK_IMPORTED_MODULE_30__.x,now=now_1,toNumber=toNumber_1,nativeMax=Math.max,nativeMin=Math.min;var debounce_1=function debounce$1(func,wait,options){var lastArgs,lastThis,maxWait,result,timerId,lastCallTime,lastInvokeTime=0,leading=!1,maxing=!1,trailing=!0;if("function"!=typeof func)throw new TypeError("Expected a function");function invokeFunc(time){var args=lastArgs,thisArg=lastThis;return lastArgs=lastThis=void 0,lastInvokeTime=time,result=func.apply(thisArg,args)}function leadingEdge(time){return lastInvokeTime=time,timerId=setTimeout(timerExpired,wait),leading?invokeFunc(time):result}function shouldInvoke(time){var timeSinceLastCall=time-lastCallTime;return void 0===lastCallTime||timeSinceLastCall>=wait||timeSinceLastCall<0||maxing&&time-lastInvokeTime>=maxWait}function timerExpired(){var time=now();if(shouldInvoke(time))return trailingEdge(time);timerId=setTimeout(timerExpired,function remainingWait(time){var timeWaiting=wait-(time-lastCallTime);return maxing?nativeMin(timeWaiting,maxWait-(time-lastInvokeTime)):timeWaiting}(time))}function trailingEdge(time){return timerId=void 0,trailing&&lastArgs?invokeFunc(time):(lastArgs=lastThis=void 0,result)}function debounced(){var time=now(),isInvoking=shouldInvoke(time);if(lastArgs=arguments,lastThis=this,lastCallTime=time,isInvoking){if(void 0===timerId)return leadingEdge(lastCallTime);if(maxing)return clearTimeout(timerId),timerId=setTimeout(timerExpired,wait),invokeFunc(lastCallTime)}return void 0===timerId&&(timerId=setTimeout(timerExpired,wait)),result}return wait=toNumber(wait)||0,isObject$1(options)&&(leading=!!options.leading,maxWait=(maxing="maxWait"in options)?nativeMax(toNumber(options.maxWait)||0,wait):maxWait,trailing="trailing"in options?!!options.trailing:trailing),debounced.cancel=function cancel(){void 0!==timerId&&clearTimeout(timerId),lastInvokeTime=0,lastArgs=lastCallTime=lastThis=timerId=void 0},debounced.flush=function flush(){return void 0===timerId?result:trailingEdge(now())},debounced},debounce=debounce_1,isObject=_index_b45716e8_js__WEBPACK_IMPORTED_MODULE_30__.x;var ColorSpace,throttle_1=function throttle(func,wait,options){var leading=!0,trailing=!0;if("function"!=typeof func)throw new TypeError("Expected a function");return isObject(options)&&(leading="leading"in options?!!options.leading:leading,trailing="trailing"in options?!!options.trailing:trailing),debounce(func,wait,{leading:leading,maxWait:wait,trailing:trailing})},Wrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_31__.zo.div({position:"relative",maxWidth:250}),PickerTooltip=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_31__.zo)(_index_b45716e8_js__WEBPACK_IMPORTED_MODULE_30__.W)({position:"absolute",zIndex:1,top:4,left:4}),TooltipContent=_storybook_theming__WEBPACK_IMPORTED_MODULE_31__.zo.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Note=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_31__.zo)(_index_b45716e8_js__WEBPACK_IMPORTED_MODULE_30__.T)((function(_ref){return{fontFamily:_ref.theme.typography.fonts.base}})),Swatches=_storybook_theming__WEBPACK_IMPORTED_MODULE_31__.zo.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),SwatchColor=_storybook_theming__WEBPACK_IMPORTED_MODULE_31__.zo.div((function(_ref2){var theme=_ref2.theme;return{width:16,height:16,boxShadow:_ref2.active?"".concat(theme.appBorderColor," 0 0 0 1px inset, ").concat(theme.color.mediumdark,"50 0 0 0 4px"):"".concat(theme.appBorderColor," 0 0 0 1px inset"),borderRadius:theme.appBorderRadius}})),Swatch=function Swatch(_a){var value=_a.value,active=_a.active,onClick=_a.onClick,style=_a.style,props=(0,_index_b45716e8_js__WEBPACK_IMPORTED_MODULE_30__.a)(_a,["value","active","onClick","style"]),backgroundImage="linear-gradient(".concat(value,", ").concat(value,"), ").concat('url(\'data:image/svg+xml;charset=utf-8,\')',", linear-gradient(#fff, #fff)");return react__WEBPACK_IMPORTED_MODULE_26__.createElement(SwatchColor,Object.assign({},props,{active:active,onClick:onClick},{style:Object.assign(Object.assign({},style),{backgroundImage:backgroundImage})}))},Input=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_31__.zo)(_index_b45716e8_js__WEBPACK_IMPORTED_MODULE_30__.F.Input)((function(_ref3){return{width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:_ref3.theme.typography.fonts.base}})),ToggleIcon=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_31__.zo)(_index_b45716e8_js__WEBPACK_IMPORTED_MODULE_30__.I)((function(_ref4){return{position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:_ref4.theme.input.color}}));!function(ColorSpace){ColorSpace.RGB="rgb",ColorSpace.HSL="hsl",ColorSpace.HEX="hex"}(ColorSpace||(ColorSpace={}));var COLOR_SPACES=Object.values(ColorSpace),COLOR_REGEXP=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,RGB_REGEXP=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,HSL_REGEXP=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,HEX_REGEXP=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,SHORTHEX_REGEXP=/^\s*#?([0-9a-f]{3})\s*$/i,ColorPicker=(_defineProperty(_ColorPicker={},ColorSpace.HEX,(function J(r){return react__WEBPACK_IMPORTED_MODULE_26__.createElement($,u({},r,{colorModel:G}))})),_defineProperty(_ColorPicker,ColorSpace.RGB,(function pe(r){return react__WEBPACK_IMPORTED_MODULE_26__.createElement(U,u({},r,{colorModel:ge}))})),_defineProperty(_ColorPicker,ColorSpace.HSL,(function re(r){return react__WEBPACK_IMPORTED_MODULE_26__.createElement(U,u({},r,{colorModel:ee}))})),_ColorPicker),fallbackColor=(_defineProperty(_fallbackColor={},ColorSpace.HEX,"transparent"),_defineProperty(_fallbackColor,ColorSpace.RGB,"rgba(0, 0, 0, 0)"),_defineProperty(_fallbackColor,ColorSpace.HSL,"hsla(0, 0%, 0%, 0)"),_fallbackColor),stringToArgs=function stringToArgs(value){var match=null==value?void 0:value.match(COLOR_REGEXP);if(!match)return[0,0,0,1];var _match=_slicedToArray(match,5),x=_match[1],y=_match[2],z=_match[3],_match$=_match[4];return[x,y,z,void 0===_match$?1:_match$].map(Number)},parseValue=function parseValue(value){var _ref11;if(value){var valid=!0;if(RGB_REGEXP.test(value)){var _ref7,_stringToArgs2=_slicedToArray(stringToArgs(value),4),r=_stringToArgs2[0],_g=_stringToArgs2[1],_b=_stringToArgs2[2],a=_stringToArgs2[3],_ref6=_slicedToArray(colorConvert.rgb.hsl([r,_g,_b])||[0,0,0],3),_h=_ref6[0],_s2=_ref6[1],l=_ref6[2];return _defineProperty(_ref7={valid:valid,value:value,keyword:colorConvert.rgb.keyword([r,_g,_b]),colorSpace:ColorSpace.RGB},ColorSpace.RGB,value),_defineProperty(_ref7,ColorSpace.HSL,"hsla(".concat(_h,", ").concat(_s2,"%, ").concat(l,"%, ").concat(a,")")),_defineProperty(_ref7,ColorSpace.HEX,"#".concat(colorConvert.rgb.hex([r,_g,_b]).toLowerCase())),_ref7}if(HSL_REGEXP.test(value)){var _ref10,_stringToArgs4=_slicedToArray(stringToArgs(value),4),_h2=_stringToArgs4[0],_s3=_stringToArgs4[1],_l=_stringToArgs4[2],_a2=_stringToArgs4[3],_ref9=_slicedToArray(colorConvert.hsl.rgb([_h2,_s3,_l])||[0,0,0],3),_r=_ref9[0],_g2=_ref9[1],_b2=_ref9[2];return _defineProperty(_ref10={valid:valid,value:value,keyword:colorConvert.hsl.keyword([_h2,_s3,_l]),colorSpace:ColorSpace.HSL},ColorSpace.RGB,"rgba(".concat(_r,", ").concat(_g2,", ").concat(_b2,", ").concat(_a2,")")),_defineProperty(_ref10,ColorSpace.HSL,value),_defineProperty(_ref10,ColorSpace.HEX,"#".concat(colorConvert.hsl.hex([_h2,_s3,_l]).toLowerCase())),_ref10}var plain=value.replace("#",""),rgb=colorConvert.keyword.rgb(plain)||colorConvert.hex.rgb(plain),hsl=colorConvert.rgb.hsl(rgb),mapped=value;if(/[^#a-f0-9]/i.test(value)?mapped=plain:HEX_REGEXP.test(value)&&(mapped="#".concat(plain)),mapped.startsWith("#"))valid=HEX_REGEXP.test(mapped);else try{colorConvert.keyword.hex(mapped)}catch(e){valid=!1}return _defineProperty(_ref11={valid:valid,value:mapped,keyword:colorConvert.rgb.keyword(rgb),colorSpace:ColorSpace.HEX},ColorSpace.RGB,"rgba(".concat(rgb[0],", ").concat(rgb[1],", ").concat(rgb[2],", 1)")),_defineProperty(_ref11,ColorSpace.HSL,"hsla(".concat(hsl[0],", ").concat(hsl[1],"%, ").concat(hsl[2],"%, 1)")),_defineProperty(_ref11,ColorSpace.HEX,mapped),_ref11}},useColorInput=function useColorInput(initialValue,onChange){var _useState2=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_26__.useState)(initialValue||""),2),value=_useState2[0],setValue=_useState2[1],_useState4=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_26__.useState)((function(){return parseValue(value)})),2),color=_useState4[0],setColor=_useState4[1],_useState6=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_26__.useState)((null==color?void 0:color.colorSpace)||ColorSpace.HEX),2),colorSpace=_useState6[0],setColorSpace=_useState6[1];(0,react__WEBPACK_IMPORTED_MODULE_26__.useEffect)((function(){void 0===initialValue&&(setValue(""),setColor(void 0),setColorSpace(ColorSpace.HEX))}),[initialValue]);var realValue=(0,react__WEBPACK_IMPORTED_MODULE_26__.useMemo)((function(){return function getRealValue(value,color,colorSpace){if(!value||!(null==color?void 0:color.valid))return fallbackColor[colorSpace];if(colorSpace!==ColorSpace.HEX)return(null==color?void 0:color[colorSpace])||fallbackColor[colorSpace];if(!color.hex.startsWith("#"))try{return"#".concat(colorConvert.keyword.hex(color.hex))}catch(e){return fallbackColor.hex}var short=color.hex.match(SHORTHEX_REGEXP);if(!short)return HEX_REGEXP.test(color.hex)?color.hex:fallbackColor.hex;var _short$1$split2=_slicedToArray(short[1].split(""),3),r=_short$1$split2[0],g=_short$1$split2[1],b=_short$1$split2[2];return"#".concat(r).concat(r).concat(g).concat(g).concat(b).concat(b)}(value,color,colorSpace).toLowerCase()}),[value,color,colorSpace]),updateValue=(0,react__WEBPACK_IMPORTED_MODULE_26__.useCallback)((function(update){var parsed=parseValue(update);setValue((null==parsed?void 0:parsed.value)||update||""),parsed&&(setColor(parsed),setColorSpace(parsed.colorSpace),onChange(parsed.value))}),[onChange]),cycleColorSpace=(0,react__WEBPACK_IMPORTED_MODULE_26__.useCallback)((function(){var next=COLOR_SPACES.indexOf(colorSpace)+1;next>=COLOR_SPACES.length&&(next=0),setColorSpace(COLOR_SPACES[next]);var update=(null==color?void 0:color[COLOR_SPACES[next]])||"";setValue(update),onChange(update)}),[color,colorSpace,onChange]);return{value:value,realValue:realValue,updateValue:updateValue,color:color,colorSpace:colorSpace,cycleColorSpace:cycleColorSpace}},id=function id(value){return value.replace(/\s*/,"").toLowerCase()},ColorControl=function ColorControl(_ref12){var name=_ref12.name,initialValue=_ref12.value,onChange=_ref12.onChange,onFocus=_ref12.onFocus,onBlur=_ref12.onBlur,presetColors=_ref12.presetColors,startOpen=_ref12.startOpen,_useColorInput=useColorInput(initialValue,throttle_1(onChange,200)),value=_useColorInput.value,realValue=_useColorInput.realValue,updateValue=_useColorInput.updateValue,color=_useColorInput.color,colorSpace=_useColorInput.colorSpace,cycleColorSpace=_useColorInput.cycleColorSpace,_usePresets=function usePresets(presetColors,currentColor,colorSpace){var _useState8=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_26__.useState)((null==currentColor?void 0:currentColor.valid)?[currentColor]:[]),2),selectedColors=_useState8[0],setSelectedColors=_useState8[1];(0,react__WEBPACK_IMPORTED_MODULE_26__.useEffect)((function(){void 0===currentColor&&setSelectedColors([])}),[currentColor]);var presets=(0,react__WEBPACK_IMPORTED_MODULE_26__.useMemo)((function(){return(presetColors||[]).map((function(preset){return"string"==typeof preset?parseValue(preset):preset.title?Object.assign(Object.assign({},parseValue(preset.color)),{keyword:preset.title}):parseValue(preset.color)})).concat(selectedColors).filter(Boolean).slice(-27)}),[presetColors,selectedColors]),addPreset=(0,react__WEBPACK_IMPORTED_MODULE_26__.useCallback)((function(color){(null==color?void 0:color.valid)&&(presets.some((function(preset){return id(preset[colorSpace])===id(color[colorSpace])}))||setSelectedColors((function(arr){return arr.concat(color)})))}),[colorSpace,presets]);return{presets:presets,addPreset:addPreset}}(presetColors,color,colorSpace),presets=_usePresets.presets,addPreset=_usePresets.addPreset,Picker=ColorPicker[colorSpace];return react__WEBPACK_IMPORTED_MODULE_26__.createElement(Wrapper,null,react__WEBPACK_IMPORTED_MODULE_26__.createElement(PickerTooltip,{trigger:"click",startOpen:startOpen,closeOnClick:!0,onVisibilityChange:function onVisibilityChange(){return addPreset(color)},tooltip:react__WEBPACK_IMPORTED_MODULE_26__.createElement(TooltipContent,null,react__WEBPACK_IMPORTED_MODULE_26__.createElement(Picker,Object.assign({color:"transparent"===realValue?"#000000":realValue},{onChange:updateValue,onFocus:onFocus,onBlur:onBlur})),presets.length>0&&react__WEBPACK_IMPORTED_MODULE_26__.createElement(Swatches,null,presets.map((function(preset,index){return react__WEBPACK_IMPORTED_MODULE_26__.createElement(_index_b45716e8_js__WEBPACK_IMPORTED_MODULE_30__.W,{key:"".concat(preset.value,"-").concat(index),hasChrome:!1,tooltip:react__WEBPACK_IMPORTED_MODULE_26__.createElement(Note,{note:preset.keyword||preset.value})},react__WEBPACK_IMPORTED_MODULE_26__.createElement(Swatch,{value:preset[colorSpace],active:color&&id(preset[colorSpace])===id(color[colorSpace]),onClick:function onClick(){return updateValue(preset.value)}}))}))))},react__WEBPACK_IMPORTED_MODULE_26__.createElement(Swatch,{value:realValue,style:{margin:4}})),react__WEBPACK_IMPORTED_MODULE_26__.createElement(Input,{id:(0,_index_b45716e8_js__WEBPACK_IMPORTED_MODULE_30__.z)(name),value:value,onChange:function onChange(e){return updateValue(e.target.value)},onFocus:function onFocus(e){return e.target.select()},placeholder:"Choose color..."}),value?react__WEBPACK_IMPORTED_MODULE_26__.createElement(ToggleIcon,{icon:"markup",onClick:cycleColorSpace}):null)}}}]); \ No newline at end of file diff --git a/32.f16e99762ce98448603a.manager.bundle.js b/32.f16e99762ce98448603a.manager.bundle.js new file mode 100644 index 000000000..54c322be0 --- /dev/null +++ b/32.f16e99762ce98448603a.manager.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_headstorm_foundry_react_ui=self.webpackChunk_headstorm_foundry_react_ui||[]).push([[32],{31032:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ColorControl:function(){return ColorControl},default:function(){return ColorControl}});__webpack_require__(19601),__webpack_require__(47941),__webpack_require__(69600),__webpack_require__(57327),__webpack_require__(41539),__webpack_require__(9653),__webpack_require__(74916),__webpack_require__(39714),__webpack_require__(15306),__webpack_require__(66992),__webpack_require__(51532),__webpack_require__(78783),__webpack_require__(33948),__webpack_require__(4723),__webpack_require__(21249),__webpack_require__(23123),__webpack_require__(54747),__webpack_require__(47042),__webpack_require__(92222),__webpack_require__(26833),__webpack_require__(23157),__webpack_require__(68309),__webpack_require__(82526),__webpack_require__(41817),__webpack_require__(32165),__webpack_require__(91038);var _ColorPicker,_fallbackColor,_index_b45716e8_js__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__(72857),react__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__(67294),_storybook_theming__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__(65316);__webpack_require__(52326),__webpack_require__(35032),__webpack_require__(80129);function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(o[t]=e[t]);return o}function i(e){var t=(0,react__WEBPACK_IMPORTED_MODULE_26__.useRef)(e),n=(0,react__WEBPACK_IMPORTED_MODULE_26__.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var s=function s(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=1),e>t?t:e0:_e.buttons>0)&&m.current?g(d(m.current,_e,b.current)):t(!1)},r=function r(){return t(!1)};function t(t){var n=_.current,o=v(m.current),a=t?o.addEventListener:o.removeEventListener;a(n?"touchmove":"mousemove",e),a(n?"touchend":"mouseup",r)}return[function(e){var r=e.nativeEvent,n=m.current;if(n&&(h(r),!function(e,r){return r&&!f(e)}(r,_.current)&&n)){if(f(r)){_.current=!0;var o=r.changedTouches||[];o.length&&(b.current=o[0].identifier)}n.focus(),g(d(n,r,b.current)),t(!0)}},function(e){var r=e.which||e.keyCode;r<37||r>40||(e.preventDefault(),p({left:39===r?.05:37===r?-.05:0,top:40===r?.05:38===r?-.05:0}))},t]}),[p,g]),C=x[0],E=x[1],H=x[2];return(0,react__WEBPACK_IMPORTED_MODULE_26__.useEffect)((function(){return H}),[H]),react__WEBPACK_IMPORTED_MODULE_26__.createElement("div",u({},s,{onTouchStart:C,onMouseDown:C,className:"react-colorful__interactive",ref:m,onKeyDown:E,tabIndex:0,role:"slider"}))})),g=function g(e){return e.filter(Boolean).join(" ")},p=function p(r){var t=r.color,n=r.left,o=r.top,a=void 0===o?.5:o,l=g(["react-colorful__pointer",r.className]);return react__WEBPACK_IMPORTED_MODULE_26__.createElement("div",{className:l,style:{top:100*a+"%",left:100*n+"%"}},react__WEBPACK_IMPORTED_MODULE_26__.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},b=function b(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=Math.pow(10,r)),Math.round(t*e)/t},_={grad:.9,turn:360,rad:360/(2*Math.PI)},x=function x(e){return"#"===e[0]&&(e=e.substr(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:1}:{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:1}},C=function C(e,r){return void 0===r&&(r="deg"),Number(e)*(_[r]||1)},M=function M(e){var r=e.s,t=e.l;return{h:e.h,s:(r*=(t<50?t:100-t)/100)>0?2*r/(t+r)*100:0,v:t+r,a:e.a}},N=function N(e){var r=e.s,t=e.v,n=e.a,o=(200-r)*t/100;return{h:b(e.h),s:b(o>0&&o<200?r*t/100/(o<=100?o:200-o)*100:0),l:b(o/2),a:b(n,2)}},w=function w(e){var r=N(e);return"hsl("+r.h+", "+r.s+"%, "+r.l+"%)"},y=function y(e){var r=N(e);return"hsla("+r.h+", "+r.s+"%, "+r.l+"%, "+r.a+")"},q=function q(e){var r=e.h,t=e.s,n=e.v,o=e.a;r=r/360*6,t/=100,n/=100;var a=Math.floor(r),l=n*(1-t),u=n*(1-(r-a)*t),c=n*(1-(1-r+a)*t),i=a%6;return{r:b(255*[n,u,l,l,c,n][i]),g:b(255*[c,n,n,u,l,l][i]),b:b(255*[l,l,c,n,n,u][i]),a:b(o,2)}},z=function z(e){var r=e.toString(16);return r.length<2?"0"+r:r},B=function B(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=Math.max(r,t,n),l=a-Math.min(r,t,n),u=l?a===r?(t-n)/l:a===t?2+(n-r)/l:4+(r-t)/l:0;return{h:b(60*(u<0?u+6:u)),s:b(a?l/a*100:0),v:b(a/255*100),a:o}},K=react__WEBPACK_IMPORTED_MODULE_26__.memo((function(r){var t=r.hue,n=r.onChange,o=g(["react-colorful__hue",r.className]);return react__WEBPACK_IMPORTED_MODULE_26__.createElement("div",{className:o},react__WEBPACK_IMPORTED_MODULE_26__.createElement(m,{onMove:function onMove(e){n({h:360*e.left})},onKey:function onKey(e){n({h:s(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuetext":b(t)},react__WEBPACK_IMPORTED_MODULE_26__.createElement(p,{className:"react-colorful__hue-pointer",left:t/360,color:w({h:t,s:100,v:100,a:1})})))})),L=react__WEBPACK_IMPORTED_MODULE_26__.memo((function(r){var t=r.hsva,n=r.onChange,o={backgroundColor:w({h:t.h,s:100,v:100,a:1})};return react__WEBPACK_IMPORTED_MODULE_26__.createElement("div",{className:"react-colorful__saturation",style:o},react__WEBPACK_IMPORTED_MODULE_26__.createElement(m,{onMove:function onMove(e){n({s:100*e.left,v:100-100*e.top})},onKey:function onKey(e){n({s:s(t.s+100*e.left,0,100),v:s(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+b(t.s)+"%, Brightness "+b(t.v)+"%"},react__WEBPACK_IMPORTED_MODULE_26__.createElement(p,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:w(t)})))})),A=function A(e,r){if(e===r)return!0;for(var t in e)if(e[t]!==r[t])return!1;return!0},S=function S(e,r){return e.replace(/\s/g,"")===r.replace(/\s/g,"")};function T(e,t,l){var u=i(l),c=(0,react__WEBPACK_IMPORTED_MODULE_26__.useState)((function(){return e.toHsva(t)})),s=c[0],f=c[1],v=(0,react__WEBPACK_IMPORTED_MODULE_26__.useRef)({color:t,hsva:s});(0,react__WEBPACK_IMPORTED_MODULE_26__.useEffect)((function(){if(!e.equal(t,v.current.color)){var r=e.toHsva(t);v.current={hsva:r,color:t},f(r)}}),[t,e]),(0,react__WEBPACK_IMPORTED_MODULE_26__.useEffect)((function(){var r;A(s,v.current.hsva)||e.equal(r=e.fromHsva(s),v.current.color)||(v.current={hsva:s,color:r},u(r))}),[s,e,u]);var d=(0,react__WEBPACK_IMPORTED_MODULE_26__.useCallback)((function(e){f((function(r){return Object.assign({},r,e)}))}),[]);return[s,d]}for(var P="undefined"!=typeof window?react__WEBPACK_IMPORTED_MODULE_26__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_26__.useEffect,R=new Map,V=function V(e){P((function(){var r=e.current?e.current.ownerDocument:document;if(void 0!==r&&!R.has(r)){var t=r.createElement("style");t.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',R.set(r,t);var n=function X(){return __webpack_require__.nc}();n&&t.setAttribute("nonce",n),r.head.appendChild(t)}}),[])},$=function $(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=c(t,["className","colorModel","color","onChange"]),f=(0,react__WEBPACK_IMPORTED_MODULE_26__.useRef)(null);V(f);var v=T(o,l,i),d=v[0],h=v[1],m=g(["react-colorful",n]);return react__WEBPACK_IMPORTED_MODULE_26__.createElement("div",u({},s,{ref:f,className:m}),react__WEBPACK_IMPORTED_MODULE_26__.createElement(L,{hsva:d,onChange:h}),react__WEBPACK_IMPORTED_MODULE_26__.createElement(K,{hue:d.h,onChange:h,className:"react-colorful__last-control"}))},G={defaultColor:"000",toHsva:function toHsva(e){return B(x(e))},fromHsva:function fromHsva(e){return t=(r=q(e)).g,n=r.b,"#"+z(r.r)+z(t)+z(n);var r,t,n},equal:function equal(e,r){return e.toLowerCase()===r.toLowerCase()||A(x(e),x(r))}},Q=function Q(r){var t=r.className,n=r.hsva,o=r.onChange,a={backgroundImage:"linear-gradient(90deg, "+y(Object.assign({},n,{a:0}))+", "+y(Object.assign({},n,{a:1}))+")"},l=g(["react-colorful__alpha",t]);return react__WEBPACK_IMPORTED_MODULE_26__.createElement("div",{className:l},react__WEBPACK_IMPORTED_MODULE_26__.createElement("div",{className:"react-colorful__alpha-gradient",style:a}),react__WEBPACK_IMPORTED_MODULE_26__.createElement(m,{onMove:function onMove(e){o({a:e.left})},onKey:function onKey(e){o({a:s(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":b(100*n.a)+"%"},react__WEBPACK_IMPORTED_MODULE_26__.createElement(p,{className:"react-colorful__alpha-pointer",left:n.a,color:y(n)})))},U=function U(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=c(t,["className","colorModel","color","onChange"]),f=(0,react__WEBPACK_IMPORTED_MODULE_26__.useRef)(null);V(f);var v=T(o,l,i),d=v[0],h=v[1],m=g(["react-colorful",n]);return react__WEBPACK_IMPORTED_MODULE_26__.createElement("div",u({},s,{ref:f,className:m}),react__WEBPACK_IMPORTED_MODULE_26__.createElement(L,{hsva:d,onChange:h}),react__WEBPACK_IMPORTED_MODULE_26__.createElement(K,{hue:d.h,onChange:h}),react__WEBPACK_IMPORTED_MODULE_26__.createElement(Q,{hsva:d,onChange:h,className:"react-colorful__last-control"}))},ee={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:function E(e){var r=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?M({h:C(r[1],r[2]),s:Number(r[3]),l:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},fromHsva:y,equal:S},ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:function I(e){var r=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?B({r:Number(r[1])/(r[2]?100/255:1),g:Number(r[3])/(r[4]?100/255:1),b:Number(r[5])/(r[6]?100/255:1),a:void 0===r[7]?1:Number(r[7])/(r[8]?100:1)}):{h:0,s:0,v:0,a:1}},fromHsva:function fromHsva(e){var r=q(e);return"rgba("+r.r+", "+r.g+", "+r.b+", "+r.a+")"},equal:S},cssKeywords={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},reverseKeywords={},_i=0,_Object$keys=Object.keys(cssKeywords);_i<_Object$keys.length;_i++){var key=_Object$keys[_i];reverseKeywords[cssKeywords[key]]=key}for(var convert$1={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},conversions$2=convert$1,_i2=0,_Object$keys2=Object.keys(convert$1);_i2<_Object$keys2.length;_i2++){var model=_Object$keys2[_i2];if(!("channels"in convert$1[model]))throw new Error("missing channels property: "+model);if(!("labels"in convert$1[model]))throw new Error("missing channel labels property: "+model);if(convert$1[model].labels.length!==convert$1[model].channels)throw new Error("channel and label counts mismatch: "+model);var _convert$1$model=convert$1[model],channels=_convert$1$model.channels,labels=_convert$1$model.labels;delete convert$1[model].channels,delete convert$1[model].labels,Object.defineProperty(convert$1[model],"channels",{value:channels}),Object.defineProperty(convert$1[model],"labels",{value:labels})}function comparativeDistance(x,y){return Math.pow(x[0]-y[0],2)+Math.pow(x[1]-y[1],2)+Math.pow(x[2]-y[2],2)}convert$1.rgb.hsl=function(rgb){var h,r=rgb[0]/255,g=rgb[1]/255,b=rgb[2]/255,min=Math.min(r,g,b),max=Math.max(r,g,b),delta=max-min;max===min?h=0:r===max?h=(g-b)/delta:g===max?h=2+(b-r)/delta:b===max&&(h=4+(r-g)/delta),(h=Math.min(60*h,360))<0&&(h+=360);var l=(min+max)/2;return[h,100*(max===min?0:l<=.5?delta/(max+min):delta/(2-max-min)),100*l]},convert$1.rgb.hsv=function(rgb){var rdif,gdif,bdif,h,s,r=rgb[0]/255,g=rgb[1]/255,b=rgb[2]/255,v=Math.max(r,g,b),diff=v-Math.min(r,g,b),diffc=function diffc(c){return(v-c)/6/diff+.5};return 0===diff?(h=0,s=0):(s=diff/v,rdif=diffc(r),gdif=diffc(g),bdif=diffc(b),r===v?h=bdif-gdif:g===v?h=1/3+rdif-bdif:b===v&&(h=2/3+gdif-rdif),h<0?h+=1:h>1&&(h-=1)),[360*h,100*s,100*v]},convert$1.rgb.hwb=function(rgb){var r=rgb[0],g=rgb[1],b=rgb[2];return[convert$1.rgb.hsl(rgb)[0],100*(1/255*Math.min(r,Math.min(g,b))),100*(b=1-1/255*Math.max(r,Math.max(g,b)))]},convert$1.rgb.cmyk=function(rgb){var r=rgb[0]/255,g=rgb[1]/255,b=rgb[2]/255,k=Math.min(1-r,1-g,1-b);return[100*((1-r-k)/(1-k)||0),100*((1-g-k)/(1-k)||0),100*((1-b-k)/(1-k)||0),100*k]},convert$1.rgb.keyword=function(rgb){var reversed=reverseKeywords[rgb];if(reversed)return reversed;for(var currentClosestKeyword,currentClosestDistance=1/0,_i3=0,_Object$keys3=Object.keys(cssKeywords);_i3<_Object$keys3.length;_i3++){var keyword=_Object$keys3[_i3],distance=comparativeDistance(rgb,cssKeywords[keyword]);distance.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.3576*(g=g>.04045?Math.pow((g+.055)/1.055,2.4):g/12.92)+.1805*(b=b>.04045?Math.pow((b+.055)/1.055,2.4):b/12.92)),100*(.2126*r+.7152*g+.0722*b),100*(.0193*r+.1192*g+.9505*b)]},convert$1.rgb.lab=function(rgb){var xyz=convert$1.rgb.xyz(rgb),x=xyz[0],y=xyz[1],z=xyz[2];return y/=100,z/=108.883,x=(x/=95.047)>.008856?Math.pow(x,1/3):7.787*x+16/116,[116*(y=y>.008856?Math.pow(y,1/3):7.787*y+16/116)-16,500*(x-y),200*(y-(z=z>.008856?Math.pow(z,1/3):7.787*z+16/116))]},convert$1.hsl.rgb=function(hsl){var t2,t3,val,h=hsl[0]/360,s=hsl[1]/100,l=hsl[2]/100;if(0===s)return[val=255*l,val,val];for(var t1=2*l-(t2=l<.5?l*(1+s):l+s-l*s),rgb=[0,0,0],_i4=0;_i4<3;_i4++)(t3=h+1/3*-(_i4-1))<0&&t3++,t3>1&&t3--,val=6*t3<1?t1+6*(t2-t1)*t3:2*t3<1?t2:3*t3<2?t1+(t2-t1)*(2/3-t3)*6:t1,rgb[_i4]=255*val;return rgb},convert$1.hsl.hsv=function(hsl){var h=hsl[0],s=hsl[1]/100,l=hsl[2]/100,smin=s,lmin=Math.max(l,.01);return s*=(l*=2)<=1?l:2-l,smin*=lmin<=1?lmin:2-lmin,[h,100*(0===l?2*smin/(lmin+smin):2*s/(l+s)),100*((l+s)/2)]},convert$1.hsv.rgb=function(hsv){var h=hsv[0]/60,s=hsv[1]/100,v=hsv[2]/100,hi=Math.floor(h)%6,f=h-Math.floor(h),p=255*v*(1-s),q=255*v*(1-s*f),t=255*v*(1-s*(1-f));switch(v*=255,hi){case 0:return[v,t,p];case 1:return[q,v,p];case 2:return[p,v,t];case 3:return[p,q,v];case 4:return[t,p,v];case 5:return[v,p,q]}},convert$1.hsv.hsl=function(hsv){var sl,l,h=hsv[0],s=hsv[1]/100,v=hsv[2]/100,vmin=Math.max(v,.01);l=(2-s)*v;var lmin=(2-s)*vmin;return sl=s*vmin,[h,100*(sl=(sl/=lmin<=1?lmin:2-lmin)||0),100*(l/=2)]},convert$1.hwb.rgb=function(hwb){var f,h=hwb[0]/360,wh=hwb[1]/100,bl=hwb[2]/100,ratio=wh+bl;ratio>1&&(wh/=ratio,bl/=ratio);var i=Math.floor(6*h),v=1-bl;f=6*h-i,0!=(1&i)&&(f=1-f);var r,g,b,n=wh+f*(v-wh);switch(i){default:case 6:case 0:r=v,g=n,b=wh;break;case 1:r=n,g=v,b=wh;break;case 2:r=wh,g=v,b=n;break;case 3:r=wh,g=n,b=v;break;case 4:r=n,g=wh,b=v;break;case 5:r=v,g=wh,b=n}return[255*r,255*g,255*b]},convert$1.cmyk.rgb=function(cmyk){var c=cmyk[0]/100,m=cmyk[1]/100,y=cmyk[2]/100,k=cmyk[3]/100;return[255*(1-Math.min(1,c*(1-k)+k)),255*(1-Math.min(1,m*(1-k)+k)),255*(1-Math.min(1,y*(1-k)+k))]},convert$1.xyz.rgb=function(xyz){var r,g,b,x=xyz[0]/100,y=xyz[1]/100,z=xyz[2]/100;return g=-.9689*x+1.8758*y+.0415*z,b=.0557*x+-.204*y+1.057*z,r=(r=3.2406*x+-1.5372*y+-.4986*z)>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,g=g>.0031308?1.055*Math.pow(g,1/2.4)-.055:12.92*g,b=b>.0031308?1.055*Math.pow(b,1/2.4)-.055:12.92*b,[255*(r=Math.min(Math.max(0,r),1)),255*(g=Math.min(Math.max(0,g),1)),255*(b=Math.min(Math.max(0,b),1))]},convert$1.xyz.lab=function(xyz){var x=xyz[0],y=xyz[1],z=xyz[2];return y/=100,z/=108.883,x=(x/=95.047)>.008856?Math.pow(x,1/3):7.787*x+16/116,[116*(y=y>.008856?Math.pow(y,1/3):7.787*y+16/116)-16,500*(x-y),200*(y-(z=z>.008856?Math.pow(z,1/3):7.787*z+16/116))]},convert$1.lab.xyz=function(lab){var x,y,z,l=lab[0];x=lab[1]/500+(y=(l+16)/116),z=y-lab[2]/200;var y2=Math.pow(y,3),x2=Math.pow(x,3),z2=Math.pow(z,3);return y=y2>.008856?y2:(y-16/116)/7.787,x=x2>.008856?x2:(x-16/116)/7.787,z=z2>.008856?z2:(z-16/116)/7.787,[x*=95.047,y*=100,z*=108.883]},convert$1.lab.lch=function(lab){var h,l=lab[0],a=lab[1],b=lab[2];return(h=360*Math.atan2(b,a)/2/Math.PI)<0&&(h+=360),[l,Math.sqrt(a*a+b*b),h]},convert$1.lch.lab=function(lch){var l=lch[0],c=lch[1],hr=lch[2]/360*2*Math.PI;return[l,c*Math.cos(hr),c*Math.sin(hr)]},convert$1.rgb.ansi16=function(args){var saturation=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,_args=_slicedToArray(args,3),r=_args[0],g=_args[1],b=_args[2],value=null===saturation?convert$1.rgb.hsv(args)[2]:saturation;if(0===(value=Math.round(value/50)))return 30;var ansi=30+(Math.round(b/255)<<2|Math.round(g/255)<<1|Math.round(r/255));return 2===value&&(ansi+=60),ansi},convert$1.hsv.ansi16=function(args){return convert$1.rgb.ansi16(convert$1.hsv.rgb(args),args[2])},convert$1.rgb.ansi256=function(args){var r=args[0],g=args[1],b=args[2];return r===g&&g===b?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(g/255*5)+Math.round(b/255*5)},convert$1.ansi16.rgb=function(args){var color=args%10;if(0===color||7===color)return args>50&&(color+=3.5),[color=color/10.5*255,color,color];var mult=.5*(1+~~(args>50));return[(1&color)*mult*255,(color>>1&1)*mult*255,(color>>2&1)*mult*255]},convert$1.ansi256.rgb=function(args){if(args>=232){var _c=10*(args-232)+8;return[_c,_c,_c]}var rem;return args-=16,[Math.floor(args/36)/5*255,Math.floor((rem=args%36)/6)/5*255,rem%6/5*255]},convert$1.rgb.hex=function(args){var string=(((255&Math.round(args[0]))<<16)+((255&Math.round(args[1]))<<8)+(255&Math.round(args[2]))).toString(16).toUpperCase();return"000000".substring(string.length)+string},convert$1.hex.rgb=function(args){var match=args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!match)return[0,0,0];var colorString=match[0];3===match[0].length&&(colorString=colorString.split("").map((function(char){return char+char})).join(""));var integer=parseInt(colorString,16);return[integer>>16&255,integer>>8&255,255&integer]},convert$1.rgb.hcg=function(rgb){var hue,r=rgb[0]/255,g=rgb[1]/255,b=rgb[2]/255,max=Math.max(Math.max(r,g),b),min=Math.min(Math.min(r,g),b),chroma=max-min;return hue=chroma<=0?0:max===r?(g-b)/chroma%6:max===g?2+(b-r)/chroma:4+(r-g)/chroma,hue/=6,[360*(hue%=1),100*chroma,100*(chroma<1?min/(1-chroma):0)]},convert$1.hsl.hcg=function(hsl){var s=hsl[1]/100,l=hsl[2]/100,c=l<.5?2*s*l:2*s*(1-l),f=0;return c<1&&(f=(l-.5*c)/(1-c)),[hsl[0],100*c,100*f]},convert$1.hsv.hcg=function(hsv){var s=hsv[1]/100,v=hsv[2]/100,c=s*v,f=0;return c<1&&(f=(v-c)/(1-c)),[hsv[0],100*c,100*f]},convert$1.hcg.rgb=function(hcg){var h=hcg[0]/360,c=hcg[1]/100,g=hcg[2]/100;if(0===c)return[255*g,255*g,255*g];var mg,pure=[0,0,0],hi=h%1*6,v=hi%1,w=1-v;switch(Math.floor(hi)){case 0:pure[0]=1,pure[1]=v,pure[2]=0;break;case 1:pure[0]=w,pure[1]=1,pure[2]=0;break;case 2:pure[0]=0,pure[1]=1,pure[2]=v;break;case 3:pure[0]=0,pure[1]=w,pure[2]=1;break;case 4:pure[0]=v,pure[1]=0,pure[2]=1;break;default:pure[0]=1,pure[1]=0,pure[2]=w}return mg=(1-c)*g,[255*(c*pure[0]+mg),255*(c*pure[1]+mg),255*(c*pure[2]+mg)]},convert$1.hcg.hsv=function(hcg){var c=hcg[1]/100,v=c+hcg[2]/100*(1-c),f=0;return v>0&&(f=c/v),[hcg[0],100*f,100*v]},convert$1.hcg.hsl=function(hcg){var c=hcg[1]/100,l=hcg[2]/100*(1-c)+.5*c,s=0;return l>0&&l<.5?s=c/(2*l):l>=.5&&l<1&&(s=c/(2*(1-l))),[hcg[0],100*s,100*l]},convert$1.hcg.hwb=function(hcg){var c=hcg[1]/100,v=c+hcg[2]/100*(1-c);return[hcg[0],100*(v-c),100*(1-v)]},convert$1.hwb.hcg=function(hwb){var w=hwb[1]/100,v=1-hwb[2]/100,c=v-w,g=0;return c<1&&(g=(v-c)/(1-c)),[hwb[0],100*c,100*g]},convert$1.apple.rgb=function(apple){return[apple[0]/65535*255,apple[1]/65535*255,apple[2]/65535*255]},convert$1.rgb.apple=function(rgb){return[rgb[0]/255*65535,rgb[1]/255*65535,rgb[2]/255*65535]},convert$1.gray.rgb=function(args){return[args[0]/100*255,args[0]/100*255,args[0]/100*255]},convert$1.gray.hsl=function(args){return[0,0,args[0]]},convert$1.gray.hsv=convert$1.gray.hsl,convert$1.gray.hwb=function(gray){return[0,100,gray[0]]},convert$1.gray.cmyk=function(gray){return[0,0,0,gray[0]]},convert$1.gray.lab=function(gray){return[gray[0],0,0]},convert$1.gray.hex=function(gray){var val=255&Math.round(gray[0]/100*255),string=((val<<16)+(val<<8)+val).toString(16).toUpperCase();return"000000".substring(string.length)+string},convert$1.rgb.gray=function(rgb){return[(rgb[0]+rgb[1]+rgb[2])/3/255*100]};var conversions$1=conversions$2;function deriveBFS(fromModel){var graph=function buildGraph(){for(var graph={},models=Object.keys(conversions$1),len=models.length,_i5=0;_i51&&(args=arg0);var result=fn(args);if("object"===_typeof(result))for(var len=result.length,_i8=0;_i81&&(args=arg0),fn(args))};return"conversion"in fn&&(wrappedFn.conversion=fn.conversion),wrappedFn}(fn)}))}));var colorConvert=convert,root=_index_b45716e8_js__WEBPACK_IMPORTED_MODULE_30__.u,now_1=function now$1(){return root.Date.now()},reWhitespace=/\s/;var trimmedEndIndex=function trimmedEndIndex$1(string){for(var index=string.length;index--&&reWhitespace.test(string.charAt(index)););return index},reTrimStart=/^\s+/;var baseTrim=function baseTrim$1(string){return string?string.slice(0,trimmedEndIndex(string)+1).replace(reTrimStart,""):string},isObject$2=_index_b45716e8_js__WEBPACK_IMPORTED_MODULE_30__.x,isSymbol=_index_b45716e8_js__WEBPACK_IMPORTED_MODULE_30__.y,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;var toNumber_1=function toNumber$1(value){if("number"==typeof value)return value;if(isSymbol(value))return NaN;if(isObject$2(value)){var other="function"==typeof value.valueOf?value.valueOf():value;value=isObject$2(other)?other+"":other}if("string"!=typeof value)return 0===value?value:+value;value=baseTrim(value);var isBinary=reIsBinary.test(value);return isBinary||reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NaN:+value},isObject$1=_index_b45716e8_js__WEBPACK_IMPORTED_MODULE_30__.x,now=now_1,toNumber=toNumber_1,nativeMax=Math.max,nativeMin=Math.min;var debounce_1=function debounce$1(func,wait,options){var lastArgs,lastThis,maxWait,result,timerId,lastCallTime,lastInvokeTime=0,leading=!1,maxing=!1,trailing=!0;if("function"!=typeof func)throw new TypeError("Expected a function");function invokeFunc(time){var args=lastArgs,thisArg=lastThis;return lastArgs=lastThis=void 0,lastInvokeTime=time,result=func.apply(thisArg,args)}function leadingEdge(time){return lastInvokeTime=time,timerId=setTimeout(timerExpired,wait),leading?invokeFunc(time):result}function shouldInvoke(time){var timeSinceLastCall=time-lastCallTime;return void 0===lastCallTime||timeSinceLastCall>=wait||timeSinceLastCall<0||maxing&&time-lastInvokeTime>=maxWait}function timerExpired(){var time=now();if(shouldInvoke(time))return trailingEdge(time);timerId=setTimeout(timerExpired,function remainingWait(time){var timeWaiting=wait-(time-lastCallTime);return maxing?nativeMin(timeWaiting,maxWait-(time-lastInvokeTime)):timeWaiting}(time))}function trailingEdge(time){return timerId=void 0,trailing&&lastArgs?invokeFunc(time):(lastArgs=lastThis=void 0,result)}function debounced(){var time=now(),isInvoking=shouldInvoke(time);if(lastArgs=arguments,lastThis=this,lastCallTime=time,isInvoking){if(void 0===timerId)return leadingEdge(lastCallTime);if(maxing)return clearTimeout(timerId),timerId=setTimeout(timerExpired,wait),invokeFunc(lastCallTime)}return void 0===timerId&&(timerId=setTimeout(timerExpired,wait)),result}return wait=toNumber(wait)||0,isObject$1(options)&&(leading=!!options.leading,maxWait=(maxing="maxWait"in options)?nativeMax(toNumber(options.maxWait)||0,wait):maxWait,trailing="trailing"in options?!!options.trailing:trailing),debounced.cancel=function cancel(){void 0!==timerId&&clearTimeout(timerId),lastInvokeTime=0,lastArgs=lastCallTime=lastThis=timerId=void 0},debounced.flush=function flush(){return void 0===timerId?result:trailingEdge(now())},debounced},debounce=debounce_1,isObject=_index_b45716e8_js__WEBPACK_IMPORTED_MODULE_30__.x;var ColorSpace,throttle_1=function throttle(func,wait,options){var leading=!0,trailing=!0;if("function"!=typeof func)throw new TypeError("Expected a function");return isObject(options)&&(leading="leading"in options?!!options.leading:leading,trailing="trailing"in options?!!options.trailing:trailing),debounce(func,wait,{leading:leading,maxWait:wait,trailing:trailing})},Wrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_31__.zo.div({position:"relative",maxWidth:250}),PickerTooltip=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_31__.zo)(_index_b45716e8_js__WEBPACK_IMPORTED_MODULE_30__.W)({position:"absolute",zIndex:1,top:4,left:4}),TooltipContent=_storybook_theming__WEBPACK_IMPORTED_MODULE_31__.zo.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Note=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_31__.zo)(_index_b45716e8_js__WEBPACK_IMPORTED_MODULE_30__.T)((function(_ref){return{fontFamily:_ref.theme.typography.fonts.base}})),Swatches=_storybook_theming__WEBPACK_IMPORTED_MODULE_31__.zo.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),SwatchColor=_storybook_theming__WEBPACK_IMPORTED_MODULE_31__.zo.div((function(_ref2){var theme=_ref2.theme;return{width:16,height:16,boxShadow:_ref2.active?"".concat(theme.appBorderColor," 0 0 0 1px inset, ").concat(theme.color.mediumdark,"50 0 0 0 4px"):"".concat(theme.appBorderColor," 0 0 0 1px inset"),borderRadius:theme.appBorderRadius}})),Swatch=function Swatch(_a){var value=_a.value,active=_a.active,onClick=_a.onClick,style=_a.style,props=(0,_index_b45716e8_js__WEBPACK_IMPORTED_MODULE_30__.a)(_a,["value","active","onClick","style"]),backgroundImage="linear-gradient(".concat(value,", ").concat(value,"), ").concat('url(\'data:image/svg+xml;charset=utf-8,\')',", linear-gradient(#fff, #fff)");return react__WEBPACK_IMPORTED_MODULE_26__.createElement(SwatchColor,Object.assign({},props,{active:active,onClick:onClick},{style:Object.assign(Object.assign({},style),{backgroundImage:backgroundImage})}))},Input=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_31__.zo)(_index_b45716e8_js__WEBPACK_IMPORTED_MODULE_30__.F.Input)((function(_ref3){return{width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:_ref3.theme.typography.fonts.base}})),ToggleIcon=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_31__.zo)(_index_b45716e8_js__WEBPACK_IMPORTED_MODULE_30__.I)((function(_ref4){return{position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:_ref4.theme.input.color}}));!function(ColorSpace){ColorSpace.RGB="rgb",ColorSpace.HSL="hsl",ColorSpace.HEX="hex"}(ColorSpace||(ColorSpace={}));var COLOR_SPACES=Object.values(ColorSpace),COLOR_REGEXP=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,RGB_REGEXP=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,HSL_REGEXP=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,HEX_REGEXP=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,SHORTHEX_REGEXP=/^\s*#?([0-9a-f]{3})\s*$/i,ColorPicker=(_defineProperty(_ColorPicker={},ColorSpace.HEX,(function J(r){return react__WEBPACK_IMPORTED_MODULE_26__.createElement($,u({},r,{colorModel:G}))})),_defineProperty(_ColorPicker,ColorSpace.RGB,(function pe(r){return react__WEBPACK_IMPORTED_MODULE_26__.createElement(U,u({},r,{colorModel:ge}))})),_defineProperty(_ColorPicker,ColorSpace.HSL,(function re(r){return react__WEBPACK_IMPORTED_MODULE_26__.createElement(U,u({},r,{colorModel:ee}))})),_ColorPicker),fallbackColor=(_defineProperty(_fallbackColor={},ColorSpace.HEX,"transparent"),_defineProperty(_fallbackColor,ColorSpace.RGB,"rgba(0, 0, 0, 0)"),_defineProperty(_fallbackColor,ColorSpace.HSL,"hsla(0, 0%, 0%, 0)"),_fallbackColor),stringToArgs=function stringToArgs(value){var match=null==value?void 0:value.match(COLOR_REGEXP);if(!match)return[0,0,0,1];var _match=_slicedToArray(match,5),x=_match[1],y=_match[2],z=_match[3],_match$=_match[4];return[x,y,z,void 0===_match$?1:_match$].map(Number)},parseValue=function parseValue(value){var _ref11;if(value){var valid=!0;if(RGB_REGEXP.test(value)){var _ref7,_stringToArgs2=_slicedToArray(stringToArgs(value),4),r=_stringToArgs2[0],_g=_stringToArgs2[1],_b=_stringToArgs2[2],a=_stringToArgs2[3],_ref6=_slicedToArray(colorConvert.rgb.hsl([r,_g,_b])||[0,0,0],3),_h=_ref6[0],_s2=_ref6[1],l=_ref6[2];return _defineProperty(_ref7={valid:valid,value:value,keyword:colorConvert.rgb.keyword([r,_g,_b]),colorSpace:ColorSpace.RGB},ColorSpace.RGB,value),_defineProperty(_ref7,ColorSpace.HSL,"hsla(".concat(_h,", ").concat(_s2,"%, ").concat(l,"%, ").concat(a,")")),_defineProperty(_ref7,ColorSpace.HEX,"#".concat(colorConvert.rgb.hex([r,_g,_b]).toLowerCase())),_ref7}if(HSL_REGEXP.test(value)){var _ref10,_stringToArgs4=_slicedToArray(stringToArgs(value),4),_h2=_stringToArgs4[0],_s3=_stringToArgs4[1],_l=_stringToArgs4[2],_a2=_stringToArgs4[3],_ref9=_slicedToArray(colorConvert.hsl.rgb([_h2,_s3,_l])||[0,0,0],3),_r=_ref9[0],_g2=_ref9[1],_b2=_ref9[2];return _defineProperty(_ref10={valid:valid,value:value,keyword:colorConvert.hsl.keyword([_h2,_s3,_l]),colorSpace:ColorSpace.HSL},ColorSpace.RGB,"rgba(".concat(_r,", ").concat(_g2,", ").concat(_b2,", ").concat(_a2,")")),_defineProperty(_ref10,ColorSpace.HSL,value),_defineProperty(_ref10,ColorSpace.HEX,"#".concat(colorConvert.hsl.hex([_h2,_s3,_l]).toLowerCase())),_ref10}var plain=value.replace("#",""),rgb=colorConvert.keyword.rgb(plain)||colorConvert.hex.rgb(plain),hsl=colorConvert.rgb.hsl(rgb),mapped=value;if(/[^#a-f0-9]/i.test(value)?mapped=plain:HEX_REGEXP.test(value)&&(mapped="#".concat(plain)),mapped.startsWith("#"))valid=HEX_REGEXP.test(mapped);else try{colorConvert.keyword.hex(mapped)}catch(e){valid=!1}return _defineProperty(_ref11={valid:valid,value:mapped,keyword:colorConvert.rgb.keyword(rgb),colorSpace:ColorSpace.HEX},ColorSpace.RGB,"rgba(".concat(rgb[0],", ").concat(rgb[1],", ").concat(rgb[2],", 1)")),_defineProperty(_ref11,ColorSpace.HSL,"hsla(".concat(hsl[0],", ").concat(hsl[1],"%, ").concat(hsl[2],"%, 1)")),_defineProperty(_ref11,ColorSpace.HEX,mapped),_ref11}},useColorInput=function useColorInput(initialValue,onChange){var _useState2=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_26__.useState)(initialValue||""),2),value=_useState2[0],setValue=_useState2[1],_useState4=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_26__.useState)((function(){return parseValue(value)})),2),color=_useState4[0],setColor=_useState4[1],_useState6=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_26__.useState)((null==color?void 0:color.colorSpace)||ColorSpace.HEX),2),colorSpace=_useState6[0],setColorSpace=_useState6[1];(0,react__WEBPACK_IMPORTED_MODULE_26__.useEffect)((function(){void 0===initialValue&&(setValue(""),setColor(void 0),setColorSpace(ColorSpace.HEX))}),[initialValue]);var realValue=(0,react__WEBPACK_IMPORTED_MODULE_26__.useMemo)((function(){return function getRealValue(value,color,colorSpace){if(!value||!(null==color?void 0:color.valid))return fallbackColor[colorSpace];if(colorSpace!==ColorSpace.HEX)return(null==color?void 0:color[colorSpace])||fallbackColor[colorSpace];if(!color.hex.startsWith("#"))try{return"#".concat(colorConvert.keyword.hex(color.hex))}catch(e){return fallbackColor.hex}var short=color.hex.match(SHORTHEX_REGEXP);if(!short)return HEX_REGEXP.test(color.hex)?color.hex:fallbackColor.hex;var _short$1$split2=_slicedToArray(short[1].split(""),3),r=_short$1$split2[0],g=_short$1$split2[1],b=_short$1$split2[2];return"#".concat(r).concat(r).concat(g).concat(g).concat(b).concat(b)}(value,color,colorSpace).toLowerCase()}),[value,color,colorSpace]),updateValue=(0,react__WEBPACK_IMPORTED_MODULE_26__.useCallback)((function(update){var parsed=parseValue(update);setValue((null==parsed?void 0:parsed.value)||update||""),parsed&&(setColor(parsed),setColorSpace(parsed.colorSpace),onChange(parsed.value))}),[onChange]),cycleColorSpace=(0,react__WEBPACK_IMPORTED_MODULE_26__.useCallback)((function(){var next=COLOR_SPACES.indexOf(colorSpace)+1;next>=COLOR_SPACES.length&&(next=0),setColorSpace(COLOR_SPACES[next]);var update=(null==color?void 0:color[COLOR_SPACES[next]])||"";setValue(update),onChange(update)}),[color,colorSpace,onChange]);return{value:value,realValue:realValue,updateValue:updateValue,color:color,colorSpace:colorSpace,cycleColorSpace:cycleColorSpace}},id=function id(value){return value.replace(/\s*/,"").toLowerCase()},ColorControl=function ColorControl(_ref12){var name=_ref12.name,initialValue=_ref12.value,onChange=_ref12.onChange,onFocus=_ref12.onFocus,onBlur=_ref12.onBlur,presetColors=_ref12.presetColors,startOpen=_ref12.startOpen,_useColorInput=useColorInput(initialValue,throttle_1(onChange,200)),value=_useColorInput.value,realValue=_useColorInput.realValue,updateValue=_useColorInput.updateValue,color=_useColorInput.color,colorSpace=_useColorInput.colorSpace,cycleColorSpace=_useColorInput.cycleColorSpace,_usePresets=function usePresets(presetColors,currentColor,colorSpace){var _useState8=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_26__.useState)((null==currentColor?void 0:currentColor.valid)?[currentColor]:[]),2),selectedColors=_useState8[0],setSelectedColors=_useState8[1];(0,react__WEBPACK_IMPORTED_MODULE_26__.useEffect)((function(){void 0===currentColor&&setSelectedColors([])}),[currentColor]);var presets=(0,react__WEBPACK_IMPORTED_MODULE_26__.useMemo)((function(){return(presetColors||[]).map((function(preset){return"string"==typeof preset?parseValue(preset):preset.title?Object.assign(Object.assign({},parseValue(preset.color)),{keyword:preset.title}):parseValue(preset.color)})).concat(selectedColors).filter(Boolean).slice(-27)}),[presetColors,selectedColors]),addPreset=(0,react__WEBPACK_IMPORTED_MODULE_26__.useCallback)((function(color){(null==color?void 0:color.valid)&&(presets.some((function(preset){return id(preset[colorSpace])===id(color[colorSpace])}))||setSelectedColors((function(arr){return arr.concat(color)})))}),[colorSpace,presets]);return{presets:presets,addPreset:addPreset}}(presetColors,color,colorSpace),presets=_usePresets.presets,addPreset=_usePresets.addPreset,Picker=ColorPicker[colorSpace];return react__WEBPACK_IMPORTED_MODULE_26__.createElement(Wrapper,null,react__WEBPACK_IMPORTED_MODULE_26__.createElement(PickerTooltip,{trigger:"click",startOpen:startOpen,closeOnClick:!0,onVisibilityChange:function onVisibilityChange(){return addPreset(color)},tooltip:react__WEBPACK_IMPORTED_MODULE_26__.createElement(TooltipContent,null,react__WEBPACK_IMPORTED_MODULE_26__.createElement(Picker,Object.assign({color:"transparent"===realValue?"#000000":realValue},{onChange:updateValue,onFocus:onFocus,onBlur:onBlur})),presets.length>0&&react__WEBPACK_IMPORTED_MODULE_26__.createElement(Swatches,null,presets.map((function(preset,index){return react__WEBPACK_IMPORTED_MODULE_26__.createElement(_index_b45716e8_js__WEBPACK_IMPORTED_MODULE_30__.W,{key:"".concat(preset.value,"-").concat(index),hasChrome:!1,tooltip:react__WEBPACK_IMPORTED_MODULE_26__.createElement(Note,{note:preset.keyword||preset.value})},react__WEBPACK_IMPORTED_MODULE_26__.createElement(Swatch,{value:preset[colorSpace],active:color&&id(preset[colorSpace])===id(color[colorSpace]),onClick:function onClick(){return updateValue(preset.value)}}))}))))},react__WEBPACK_IMPORTED_MODULE_26__.createElement(Swatch,{value:realValue,style:{margin:4}})),react__WEBPACK_IMPORTED_MODULE_26__.createElement(Input,{id:(0,_index_b45716e8_js__WEBPACK_IMPORTED_MODULE_30__.z)(name),value:value,onChange:function onChange(e){return updateValue(e.target.value)},onFocus:function onFocus(e){return e.target.select()},placeholder:"Choose color..."}),value?react__WEBPACK_IMPORTED_MODULE_26__.createElement(ToggleIcon,{icon:"markup",onClick:cycleColorSpace}):null)}}}]); \ No newline at end of file diff --git a/363.76863f4e4594442b5775.manager.bundle.js b/363.76863f4e4594442b5775.manager.bundle.js new file mode 100644 index 000000000..38ad4c2f9 --- /dev/null +++ b/363.76863f4e4594442b5775.manager.bundle.js @@ -0,0 +1,586 @@ +/*! For license information please see 363.76863f4e4594442b5775.manager.bundle.js.LICENSE.txt */ +"use strict";(self.webpackChunk_headstorm_foundry_react_ui=self.webpackChunk_headstorm_foundry_react_ui||[]).push([[363],{5363:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Figspec:function(){return Figspec},default:function(){return components_Figspec}});var react=__webpack_require__(67294),react_namespaceObject=__webpack_require__.t(react,2);const css_tag_t=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,css_tag_e=Symbol(),n=new Map;class s{constructor(t,n){if(this._$cssResult$=!0,n!==css_tag_e)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let e=n.get(this.cssText);return css_tag_t&&void 0===e&&(n.set(this.cssText,e=new CSSStyleSheet),e.replaceSync(this.cssText)),e}toString(){return this.cssText}}const r=(t,...n)=>{const o=1===t.length?t[0]:n.reduce(((e,n,s)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[s+1]),t[0]);return new s(o,css_tag_e)},S=css_tag_t?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return(t=>new s("string"==typeof t?t:t+"",css_tag_e))(e)})(t):t;var reactive_element_s;const reactive_element_e=window.trustedTypes,reactive_element_r=reactive_element_e?reactive_element_e.emptyScript:"",h=window.reactiveElementPolyfillSupport,reactive_element_o={toAttribute(t,i){switch(i){case Boolean:t=t?reactive_element_r:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let s=t;switch(i){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},reactive_element_n=(t,i)=>i!==t&&(i==i||t==t),l={attribute:!0,type:String,converter:reactive_element_o,reflect:!1,hasChanged:reactive_element_n};class a extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var i;null!==(i=this.l)&&void 0!==i||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,s)=>{const e=this._$Eh(s,i);void 0!==e&&(this._$Eu.set(e,s),t.push(e))})),t}static createProperty(t,i=l){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const s="symbol"==typeof t?Symbol():"__"+t,e=this.getPropertyDescriptor(t,s,i);void 0!==e&&Object.defineProperty(this.prototype,t,e)}}static getPropertyDescriptor(t,i,s){return{get(){return this[i]},set(e){const r=this[t];this[i]=e,this.requestUpdate(t,r,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||l}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const s of i)this.createProperty(s,t[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(i){const s=[];if(Array.isArray(i)){const e=new Set(i.flat(1/0).reverse());for(const i of e)s.unshift(S(i))}else void 0!==i&&s.push(S(i));return s}static _$Eh(t,i){const s=i.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var i,s;(null!==(i=this._$Eg)&&void 0!==i?i:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(s=t.hostConnected)||void 0===s||s.call(t))}removeController(t){var i;null===(i=this._$Eg)||void 0===i||i.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Et.set(i,this[i]),delete this[i])}))}createRenderRoot(){var t;const s=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((e,n)=>{css_tag_t?e.adoptedStyleSheets=n.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):n.forEach((t=>{const n=document.createElement("style"),s=window.litNonce;void 0!==s&&n.setAttribute("nonce",s),n.textContent=t.cssText,e.appendChild(n)}))})(s,this.constructor.elementStyles),s}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}))}attributeChangedCallback(t,i,s){this._$AK(t,s)}_$ES(t,i,s=l){var e,r;const h=this.constructor._$Eh(t,s);if(void 0!==h&&!0===s.reflect){const n=(null!==(r=null===(e=s.converter)||void 0===e?void 0:e.toAttribute)&&void 0!==r?r:reactive_element_o.toAttribute)(i,s.type);this._$Ei=t,null==n?this.removeAttribute(h):this.setAttribute(h,n),this._$Ei=null}}_$AK(t,i){var s,e,r;const h=this.constructor,n=h._$Eu.get(t);if(void 0!==n&&this._$Ei!==n){const t=h.getPropertyOptions(n),l=t.converter,a=null!==(r=null!==(e=null===(s=l)||void 0===s?void 0:s.fromAttribute)&&void 0!==e?e:"function"==typeof l?l:null)&&void 0!==r?r:reactive_element_o.fromAttribute;this._$Ei=n,this[n]=a(i,t.type),this._$Ei=null}}requestUpdate(t,i,s){let e=!0;void 0!==t&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||reactive_element_n)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===s.reflect&&this._$Ei!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,s))):e=!1),!this.isUpdatePending&&e&&(this._$Ep=this._$E_())}async _$E_(){this.isUpdatePending=!0;try{await this._$Ep}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach(((t,i)=>this[i]=t)),this._$Et=void 0);let i=!1;const s=this._$AL;try{i=this.shouldUpdate(s),i?(this.willUpdate(s),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(s)):this._$EU()}catch(t){throw i=!1,this._$EU(),t}i&&this._$AE(s)}willUpdate(t){}_$AE(t){var i;null===(i=this._$Eg)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,i)=>this._$ES(i,this[i],t))),this._$EC=void 0),this._$EU()}updated(t){}firstUpdated(t){}}var lit_html_t;a.finalized=!0,a.elementProperties=new Map,a.elementStyles=[],a.shadowRootOptions={mode:"open"},null==h||h({ReactiveElement:a}),(null!==(reactive_element_s=globalThis.reactiveElementVersions)&&void 0!==reactive_element_s?reactive_element_s:globalThis.reactiveElementVersions=[]).push("1.3.2");const lit_html_i=globalThis.trustedTypes,lit_html_s=lit_html_i?lit_html_i.createPolicy("lit-html",{createHTML:t=>t}):void 0,lit_html_e=`lit$${(Math.random()+"").slice(9)}$`,lit_html_o="?"+lit_html_e,lit_html_n=`<${lit_html_o}>`,lit_html_l=document,lit_html_h=(t="")=>lit_html_l.createComment(t),lit_html_r=t=>null===t||"object"!=typeof t&&"function"!=typeof t,d=Array.isArray,u=t=>{var i;return d(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])},c=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,lit_html_a=/>/g,f=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,_=/'/g,m=/"/g,g=/^(?:script|style|textarea|title)$/i,p=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),$=p(1),lit_html_y=p(2),b=Symbol.for("lit-noChange"),w=Symbol.for("lit-nothing"),T=new WeakMap,A=lit_html_l.createTreeWalker(lit_html_l,129,null,!1),C=(t,i)=>{const o=t.length-1,l=[];let h,r=2===i?"":"",d=c;for(let i=0;i"===u[0]?(d=null!=h?h:c,p=-1):void 0===u[1]?p=-2:(p=d.lastIndex-u[2].length,o=u[1],d=void 0===u[3]?f:'"'===u[3]?m:_):d===m||d===_?d=f:d===v||d===lit_html_a?d=c:(d=f,h=void 0);const y=d===f&&t[i+1].startsWith("/>")?" ":"";r+=d===c?s+lit_html_n:p>=0?(l.push(o),s.slice(0,p)+"$lit$"+s.slice(p)+lit_html_e+y):s+lit_html_e+(-2===p?(l.push(void 0),i):y)}const u=r+(t[o]||"")+(2===i?"":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==lit_html_s?lit_html_s.createHTML(u):u,l]};class E{constructor({strings:t,_$litType$:s},n){let l;this.parts=[];let r=0,d=0;const u=t.length-1,c=this.parts,[v,a]=C(t,s);if(this.el=E.createElement(v,n),A.currentNode=this.el.content,2===s){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(l=A.nextNode())&&c.length0){l.textContent=lit_html_i?lit_html_i.emptyScript:"";for(let i=0;i2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=w}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,s,e){const o=this.strings;let n=!1;if(void 0===o)t=P(this,t,i,0),n=!lit_html_r(t)||t!==this._$AH&&t!==b,n&&(this._$AH=t);else{const e=t;let l,h;for(t=o[0],l=0;l{var e,o;const n=null!==(e=null==s?void 0:s.renderBefore)&&void 0!==e?e:i;let l=n._$litPart$;if(void 0===l){const t=null!==(o=null==s?void 0:s.renderBefore)&&void 0!==o?o:null;n._$litPart$=l=new N(i.insertBefore(lit_html_h(),t),t,void 0,null!=s?s:{})}return l._$AI(t),l})(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return b}}lit_element_s.finalized=!0,lit_element_s._$litElement$=!0,null===(lit_element_l=globalThis.litElementHydrateSupport)||void 0===lit_element_l||lit_element_l.call(globalThis,{LitElement:lit_element_s});const lit_element_n=globalThis.litElementPolyfillSupport;null==lit_element_n||lit_element_n({LitElement:lit_element_s});(null!==(lit_element_o=globalThis.litElementVersions)&&void 0!==lit_element_o?lit_element_o:globalThis.litElementVersions=[]).push("3.2.0");const property_i=(i,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(n){n.createProperty(e.key,i)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(n){n.createProperty(e.key,i)}};function property_e(e){return(n,t)=>void 0!==t?((i,e,n)=>{e.constructor.createProperty(n,i)})(e,n,t):property_i(e,n)}var query_assigned_elements_n;null===(query_assigned_elements_n=window.HTMLSlotElement)||void 0===query_assigned_elements_n||query_assigned_elements_n.prototype.assignedElements;const ErrorMessage=({title:title,children:children})=>$` +
+
+ Error${title} + ${children} +
+
+`,ErrorMessage_styles=r` + .error-background { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + + background: var(--error-bg); + color: var(--error-fg); + } + + .error-container { + max-width: 800px; + margin: auto; + padding: 1em; + } + + .error-badge { + display: inline-block; + font-size: 0.8em; + padding: 0.2em 0.5em; + margin-inline-end: 0.5em; + + background: var(--error-color); + border-radius: 2px; + color: var(--error-bg); + text-transform: uppercase; + } + + .error-title { + display: block; + font-size: 1.2em; + + font-weight: bold; + text-transform: capitalize; + } + + .error-description { + display: block; + margin-block-start: 1em; + } +`,directive_t_ATTRIBUTE=1;const style_map_i=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class directive_i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}{constructor(t){var e;if(super(t),t.type!==directive_t_ATTRIBUTE||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,r)=>{const s=t[r];return null==s?e:e+`${r=r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`}),"")}update(e,[r]){const{style:s}=e.element;if(void 0===this.ct){this.ct=new Set;for(const t in r)this.ct.add(t);return this.render(r)}this.ct.forEach((t=>{null==r[t]&&(this.ct.delete(t),t.includes("-")?s.removeProperty(t):s[t]="")}));for(const t in r){const e=r[t];null!=e&&(this.ct.add(t),t.includes("-")?s.setProperty(t,e):s[t]=e)}return b}});function absRect(rect){return{top:rect.y,right:rect.x+rect.width,bottom:rect.y+rect.height,left:rect.x}}function round(n){return Math.round(100*n)/100}function extendStyles(left,right){return[...stylesToArray(left),...stylesToArray(right)]}function stylesToArray(styles){return styles?styles instanceof Array?styles:[styles]:[]}var __decorate=function(decorators,target,key,desc){var d,c=arguments.length,r=c<3?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r};const NodeSelectableMixin=superClass=>{class NodeSelectable extends superClass{constructor(...args){super(...args),this.selectedNode=null}updated(changedProperties){super.updated(changedProperties),changedProperties.has("selectedNode")&&this.dispatchEvent(new CustomEvent("nodeselect",{detail:{selectedNode:this.selectedNode}}))}}return __decorate([property_e({attribute:!1})],NodeSelectable.prototype,"selectedNode",void 0),NodeSelectable};function shouldSkipEvent(ev){return 0===ev.touches.length||ev.touches.length>2}const TouchGestureMixin=superClass=>class CTouchGesture extends superClass{constructor(...args){super(...args),this.previousTouches=null,this.addEventListener("touchstart",(ev=>{shouldSkipEvent(ev)||(ev.preventDefault(),this.previousTouches=ev.touches)})),this.addEventListener("touchend",(ev=>{shouldSkipEvent(ev)||(ev.preventDefault(),this.previousTouches=null)})),this.addEventListener("touchcancel",(ev=>{shouldSkipEvent(ev)||(ev.preventDefault(),this.previousTouches=null)})),this.addEventListener("touchmove",(ev=>{if(shouldSkipEvent(ev))return;const previousTouches=Array.from(this.previousTouches||[]),currentTouches=Array.from(ev.touches);this.previousTouches=ev.touches,currentTouches.length===previousTouches.length&¤tTouches.every((t=>previousTouches.some((pt=>pt.identifier===t.identifier))))&&(1!==currentTouches.length?this.onTouchPinch(function getDistance(a,b){return Math.sqrt(Math.pow(a.x-b.x,2)+Math.pow(a.y-b.y,2))}({x:currentTouches[0].pageX,y:currentTouches[0].pageY},{x:previousTouches[0].pageX,y:previousTouches[0].pageY})):this.onTouchPan({x:currentTouches[0].pageX-previousTouches[0].pageX,y:currentTouches[0].pageY-previousTouches[0].pageY}))}))}get isTouching(){return!!(this.previousTouches&&this.previousTouches.length>0)}onTouchPan(delta){}onTouchPinch(delta){}};var PositionedMixin_decorate=function(decorators,target,key,desc){var d,c=arguments.length,r=c<3?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__classPrivateFieldGet=function(receiver,privateMap){if(!privateMap.has(receiver))throw new TypeError("attempted to get private field on non-instance");return privateMap.get(receiver)},__classPrivateFieldSet=function(receiver,privateMap,value){if(!privateMap.has(receiver))throw new TypeError("attempted to set private field on non-instance");return privateMap.set(receiver,value),value};const PositionedMixin=superClass=>{var _isDragModeOn,_movePanel,_keyDown,_keyUp,_listenToKeyboardEvents;class Positioned extends(TouchGestureMixin(superClass)){constructor(...args){super(...args),this.panX=0,this.panY=0,this.scale=1,this.zoomSpeed=500,this.panSpeed=500,_isDragModeOn.set(this,!1),_movePanel.set(this,((shiftX,shiftY)=>{this.panX+=shiftX/this.scale/window.devicePixelRatio,this.panY+=shiftY/this.scale/window.devicePixelRatio})),_keyDown.set(this,(event=>{"Space"!==event.code||__classPrivateFieldGet(this,_isDragModeOn)||(__classPrivateFieldSet(this,_isDragModeOn,!0),document.body.style.cursor="grab")})),_keyUp.set(this,(event=>{"Space"===event.code&&__classPrivateFieldGet(this,_isDragModeOn)&&(__classPrivateFieldSet(this,_isDragModeOn,!1),document.body.style.cursor="auto")})),_listenToKeyboardEvents.set(this,(()=>{document.addEventListener("keyup",__classPrivateFieldGet(this,_keyUp)),document.addEventListener("keydown",__classPrivateFieldGet(this,_keyDown))})),this.addEventListener("wheel",(ev=>{if(this.isMovable)if(ev.preventDefault(),ev.ctrlKey){let{deltaY:deltaY}=ev;1===ev.deltaMode&&(deltaY*=15);const prevScale=this.scale;this.scale*=1-deltaY/(.5*(1e3-this.zoomSpeed));const offsetX=ev.offsetX-this.offsetWidth/2,offsetY=ev.offsetY-this.offsetHeight/2;this.panX+=offsetX/this.scale-offsetX/prevScale,this.panY+=offsetY/this.scale-offsetY/prevScale}else{const speed=.002*this.panSpeed;this.panX-=ev.deltaX*speed/this.scale,this.panY-=ev.deltaY*speed/this.scale}}),{passive:!1});let gestureStartScale=1;this.addEventListener("gesturestart",(ev=>{ev.preventDefault(),gestureStartScale=this.scale})),this.addEventListener("gesturechange",(_ev=>{const ev=_ev;ev.preventDefault(),this.scale=gestureStartScale*ev.scale})),this.addEventListener("pointermove",(ev=>{4&ev.buttons&&(ev.preventDefault(),__classPrivateFieldGet(this,_movePanel).call(this,ev.movementX,ev.movementY))})),__classPrivateFieldGet(this,_listenToKeyboardEvents).call(this),this.onmousedown=()=>{__classPrivateFieldGet(this,_isDragModeOn)&&(document.body.style.cursor="grabbing",this.onmousemove=({movementX:movementX,movementY:movementY})=>{__classPrivateFieldGet(this,_movePanel).call(this,movementX,movementY)},this.onmouseup=()=>{document.body.style.cursor="grab",this.onmousemove=null,this.onmouseup=null})}}get isMovable(){return!0}get canvasTransform(){return[`scale(${this.scale})`,`translate(${this.panX}px, ${this.panY}px)`]}disconnectedCallback(){document.removeEventListener("keyup",__classPrivateFieldGet(this,_keyUp)),document.removeEventListener("keydown",__classPrivateFieldGet(this,_keyDown)),super.disconnectedCallback()}updated(changedProperties){super.updated(changedProperties),changedProperties.has("scale")&&this.dispatchEvent(new CustomEvent("scalechange",{detail:{scale:this.scale}})),(changedProperties.has("panX")||changedProperties.has("panY"))&&this.dispatchEvent(new CustomEvent("positionchange",{detail:{x:this.panX,y:this.panY}}))}onTouchPan(delta){this.panX+=delta.x/this.scale,this.panY+=delta.y/this.scale}onTouchPinch(delta){this.scale*=1-delta/1e3}}return _isDragModeOn=new WeakMap,_movePanel=new WeakMap,_keyDown=new WeakMap,_keyUp=new WeakMap,_listenToKeyboardEvents=new WeakMap,PositionedMixin_decorate([property_e({attribute:!1})],Positioned.prototype,"panX",void 0),PositionedMixin_decorate([property_e({attribute:!1})],Positioned.prototype,"panY",void 0),PositionedMixin_decorate([property_e({attribute:!1})],Positioned.prototype,"scale",void 0),PositionedMixin_decorate([property_e({type:Number,attribute:"zoom-speed"})],Positioned.prototype,"zoomSpeed",void 0),PositionedMixin_decorate([property_e({type:Number,attribute:"pan-speed"})],Positioned.prototype,"panSpeed",void 0),Positioned},guidesCache=new Map,Guides=({node:node,distanceTo:distanceTo,reverseScale:reverseScale,fontSize:fontSize})=>{const combinedId=node.id+"\n"+distanceTo.id;let guides=guidesCache.get(combinedId);return guides||(guides=function getDistanceGuides(selected,compared){const a=absRect(selected),b=absRect(compared),isYIntersecting=!(a.top>b.bottom||a.bottomb.right||a.rightb.right,isABelow=a.top>b.bottom,selectedCenter={x:selected.x+selected.width/2,y:selected.y+selected.height/2};return[isXIntersecting?null:{points:[{x:isALeft?a.left:a.right,y:selectedCenter.y},{x:isALeft?b.right:b.left,y:selectedCenter.y}],bisector:isYIntersecting?void 0:[{x:isALeft?b.right:b.left,y:selectedCenter.y},{x:isALeft?b.right:b.left,y:isABelow?b.bottom:b.top}]},isYIntersecting?null:{points:[{y:isABelow?a.top:a.bottom,x:selectedCenter.x},{y:isABelow?b.bottom:b.top,x:selectedCenter.x}],bisector:isXIntersecting?void 0:[{y:isABelow?b.bottom:b.top,x:selectedCenter.x},{y:isABelow?b.bottom:b.top,x:isALeft?b.right:b.left}]}].filter((x=>!!x))}(node.absoluteBoundingBox,distanceTo.absoluteBoundingBox),guidesCache.set(combinedId,guides)),[...guides.map((guide=>(({guide:guide,reverseScale:reverseScale})=>{const xLength=Math.abs(guide.points[0].x-guide.points[1].x),yLength=Math.abs(guide.points[0].y-guide.points[1].y);return 0===xLength&&0===yLength?null:lit_html_y` + + + ${guide.bisector&&lit_html_y` + + `} + `})({guide:guide,reverseScale:reverseScale}))),...guides.map((guide=>(({guide:guide,reverseScale:reverseScale,fontSize:fontSize})=>{const xLength=Math.abs(guide.points[0].x-guide.points[1].x),yLength=Math.abs(guide.points[0].y-guide.points[1].y);if(0===xLength&&0===yLength)return null;const text=round(Math.max(xLength,yLength)).toString(10),width=text.length*fontSize*.5,startMargin=.25*fontSize,vPadding=.25*fontSize,hPadding=.5*fontSize,x=xLength>yLength?(guide.points[0].x+guide.points[1].x)/2-width/2:guide.points[0].x,y=xLength>yLength?guide.points[0].y:(guide.points[0].y+guide.points[1].y)/2-fontSize/2,transform=[`scale(${reverseScale})`,xLength>yLength?`translate(0, ${startMargin+vPadding})`:`translate(${startMargin+hPadding}, 0)`].join(" "),cx=x+width/2,transformOrigin=xLength>yLength?`${cx} ${y}`:`${x} ${y+fontSize/2}`;return lit_html_y` + + + + + ${text} + + + `})({guide:guide,reverseScale:reverseScale,fontSize:fontSize})))]},DistanceGuide_styles=r` + .distance-line { + shape-rendering: geometricPrecision; + fill: none; + opacity: 0; + } + + .distance-tooltip { + opacity: 0; + } + + .guide:hover ~ .distance-line, + .guide:hover ~ .distance-tooltip { + opacity: 1; + } +`,CopyIcon=({onClick:onClick=(()=>{})})=>lit_html_y` + + + +`,extractColorStyle=color=>0===color.a?"transparent":color.a<1?`rgba(${rgbToIntArray(color).join(", ")}, ${color.a.toFixed(2)})`:rgbToHex(color);class Gradient{constructor(data){this.gradientHandles={start:data.gradientHandlePositions[0],end:data.gradientHandlePositions[1]},this.colors=data.gradientStops,this.colorObjects=this.createColorObjects(this.colors),this.angle=this.calculateAngle(this.gradientHandles.start,this.gradientHandles.end)}get cssGradientArray(){return this.colorObjects.map(((color,index)=>color+" "+this.floatToPercent(this.colors[index].position)))}get cssColor(){const cssGradientArray=this.cssGradientArray;return cssGradientArray.unshift(this.angle+"deg"),`linear-gradient(${cssGradientArray.join(", ")})`}createColorObjects(colors){return colors.map((({color:color})=>extractColorStyle(color)))}floatToPercent(value){return(value*=100).toFixed(0)+"%"}calculateAngle(startHandle,endHandle){const radians=Math.atan(this.calculateGradient(startHandle,endHandle));return parseInt(this.radToDeg(radians).toFixed(1))}calculateGradient(startHandle,endHandle){return(endHandle.y-startHandle.y)/(endHandle.x-startHandle.x)*-1}radToDeg(radian){return 180*radian/Math.PI}}class NodeStyles{constructor(node){var _a,_b,_c;if(this.hasPadding=!1,this.height=`${Math.trunc(node.absoluteBoundingBox.height)}px`,this.width=`${Math.trunc(node.absoluteBoundingBox.width)}px`,(node.horizontalPadding||node.verticalPadding)&&(this.hasPadding=!0,this.horizontalPadding=`${node.horizontalPadding}px`,this.verticalPadding=`${node.verticalPadding}px`),node.style&&(this.fontFamily=node.style.fontFamily,this.fontPostScriptName=null===(_a=node.style.fontPostScriptName)||void 0===_a?void 0:_a.replace("-"," "),this.fontWeight=node.style.fontWeight,this.fontSize=`${Math.ceil(node.style.fontSize)}px`,this.lineHeight=`${Math.trunc(node.style.lineHeightPx)}px`),node.rectangleCornerRadii&&(this.borderRadius=node.rectangleCornerRadii.filter((radius=>radius===node.cornerRadius)).length<4?`${node.rectangleCornerRadii.join("px ")}px`:`${node.cornerRadius}px`),node.backgroundColor||node.backgroundColor){const color=node.backgroundColor||(null===(_b=node.background)||void 0===_b?void 0:_b[0].color);this.background=extractColorStyle(color)}const fillColor=null===(_c=node.fills)||void 0===_c?void 0:_c[0];if(fillColor&&!1!==fillColor.visible&&("TEXT"===node.type?this.color=extractColorStyle(fillColor.color):fillColor.type.includes("GRADIENT")?this.backgroundImage=new Gradient(fillColor).cssColor:"SOLID"===fillColor.type&&(this.background=extractColorStyle(fillColor.color))),node.strokes&&node.strokes.length>0&&(this.borderColor=extractColorStyle(node.strokes[0].color),this.border=`${node.strokeWeight}px solid ${this.borderColor}`),node.effects&&node.effects.length>0){const{offset:offset,radius:radius,color:color}=node.effects[0];this.boxShadowColor=extractColorStyle(color),this.boxShadow=`${(null==offset?void 0:offset.x)||0}px ${(null==offset?void 0:offset.y)||0}px 0 ${radius} ${this.boxShadowColor}`}}getStyles(){return[this.height&&{property:"height",value:this.height},this.width&&{property:"width",value:this.width},this.fontFamily&&{property:"font-family",value:this.fontFamily},this.fontSize&&{property:"font-size",value:this.fontSize},this.fontWeight&&{property:"font-weight",value:this.fontWeight},this.lineHeight&&{property:"line-height",value:this.lineHeight},this.borderRadius&&{property:"border-radius",value:this.borderRadius},this.backgroundImage&&{property:"background-image",value:this.backgroundImage},this.boxShadow&&{property:"box-shadow",value:this.boxShadow,color:this.boxShadowColor},this.border&&{property:"border",value:this.border,color:this.borderColor},this.background&&{property:"background",value:this.background,color:this.background},this.color&&{property:"color",value:this.color,color:this.color}].filter(Boolean)}getStyleSheet(){return this.getStyles().map(getStyleRule).join("\n")}}const rgbToIntArray=color=>[Math.trunc(255*color.r),Math.trunc(255*color.g),Math.trunc(255*color.b)],rgbToHex=color=>{const[r,g,b]=rgbToIntArray(color);return"#"+((1<<24)+(r<<16)+(g<<8)+b).toString(16).slice(1)},getStyleRule=({property:property,value:value})=>`${property}: ${value};`;var __awaiter=function(thisArg,_arguments,P,generator){return new(P||(P=Promise))((function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):function adopt(value){return value instanceof P?value:new P((function(resolve){resolve(value)}))}(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())}))};const copy=text=>__awaiter(void 0,void 0,void 0,(function*(){yield navigator.clipboard.writeText(text)})),View=({node:node,onClose:onClose})=>{if(!node)return null;const nodeStyles=new NodeStyles(node),stopPropagation=ev=>ev.stopPropagation();return $` +
+
+
+

${node.name}

+ ${(({onClick:onClick=(()=>{})})=>lit_html_y` + + + +`)({onClick:onClose})} +
+
+
+

+ W: ${nodeStyles.width} +

+

+ H: ${nodeStyles.height} +

+
+ ${nodeStyles.fontPostScriptName?$`

+ Font: + ${nodeStyles.fontPostScriptName} +

`:null} +
+
+ ${nodeStyles.hasPadding?$`
+

Layout

+ ${nodeStyles.horizontalPadding&&$`

+ ${lit_html_y` + + + + + +`} ${nodeStyles.horizontalPadding} +

`} + ${nodeStyles.verticalPadding&&$`

+ ${lit_html_y` + + + + + +`} ${nodeStyles.verticalPadding} +

`} +
`:null} + ${node.characters?$`
+
+

Content

+ ${CopyIcon({onClick:()=>copy(node.characters)})} +
+

+ ${node.characters} +

+
`:null} + ${StylesSection(nodeStyles)} +
+ `},StylesSection=nodeStyles=>{const styles=nodeStyles.getStyles();return $`
+
+

CSS

+ ${CopyIcon({onClick:()=>copy(nodeStyles.getStyleSheet())})} +
+
+ ${styles.map(CSSProperty)} +
+
`},CSSProperty=cssProperty=>{const{property:property,value:value,color:color}=cssProperty;let coloredSquare=null;switch(property){case"background":case"fill":case"border":case"box-shadow":case"color":coloredSquare=$``;break;case"background-image":coloredSquare=$``}return $`
copy(getStyleRule(cssProperty))}> + ${property}:${coloredSquare}${value}; +
`},InspectorView_styles=r` + .inspector-view { + height: 100%; + width: 300px; + position: absolute; + right: 0; + background: white; + border-left: 1px solid #ccc; + overflow-y: auto; + z-index: calc(var(--z-index) + 2); + } + + .inspector-view h4 { + font-size: 16px; + margin: 0; + } + + .style-section { + margin-bottom: 12px; + } + + .title-section { + display: flex; + align-items: center; + } + + .code-section { + padding: 8px; + background: #f3f3f3; + font-family: monospace; + } + + .title-section svg { + cursor: pointer; + margin-left: auto; + } + + .inspector-section { + padding: 16px; + border-bottom: 1px solid #eee; + } + + .properties-overview { + font-family: monospace; + color: #518785; + } + + .properties-overview p span { + color: #121212; + } + + .inspector-property { + display: flex; + align-items: center; + margin-bottom: 0; + } + + .inspector-property span { + color: #b3b3b3; + margin-right: 4px; + } + + .inspector-property svg { + margin-right: 8px; + } + + .css-property { + margin: 8px; + transition: background-color ease-in-out 100ms; + } + + .css-property:hover { + cursor: pointer; + background-color: #e8e8e8; + } + + .css-value { + color: #518785; + margin-left: 4px; + } + + .color-preview { + display: inline-block; + width: 12px; + height: 12px; + border: 1px solid #ccc; + margin-left: 4px; + vertical-align: middle; + } + + .selectable-content { + cursor: text; + user-select: text; + } +`,Outline=({node:node,selected:selected=!1,computedThickness:computedThickness,onClick:onClick})=>{const{x:x,y:y,width:width,height:height}=node.absoluteBoundingBox,radius="cornerRadius"in node&&node.cornerRadius?{topLeft:node.cornerRadius,topRight:node.cornerRadius,bottomRight:node.cornerRadius,bottomLeft:node.cornerRadius}:"rectangleCornerRadii"in node&&node.rectangleCornerRadii?{topLeft:node.rectangleCornerRadii[0],topRight:node.rectangleCornerRadii[1],bottomRight:node.rectangleCornerRadii[2],bottomLeft:node.rectangleCornerRadii[3]}:{topLeft:0,topRight:0,bottomRight:0,bottomLeft:0},shift=computedThickness/2,lineTo=(x,y)=>`L${x},${y}`,arcTo=(r,x,y)=>`A${r},${r} 0 0 1 ${x},${y}`,boxPath=[((x,y)=>`M${x},${y}`)(radius.topLeft+shift,shift),lineTo(width-radius.topRight,shift),arcTo(radius.topRight-shift,width-shift,radius.topRight),lineTo(width-shift,height-radius.bottomRight),arcTo(radius.bottomRight-shift,width-radius.bottomRight,height-shift),lineTo(radius.bottomLeft,height-shift),arcTo(radius.bottomLeft-shift,shift,height-radius.bottomLeft),lineTo(shift,radius.topLeft),arcTo(radius.topLeft-shift,radius.topLeft,shift),"Z"].join(" ");return lit_html_y` + + `},Node_styles=r` + .guide { + /* + * SVGs cannot be pixel perfect, especially floating values. + * Since many platform renders them visually incorrectly (probably they + * are following the spec), it's safe to set overflow to visible. + * Cropped borders are hard to visible and ugly. + */ + overflow: visible; + + pointer-events: all; + + opacity: 0; + } + .guide:hover { + opacity: 1; + } + .guide[data-selected] { + opacity: 1; + stroke: var(--guide-selected-color); + } + + .tooltip { + position: absolute; + padding: 0.25em 0.5em; + font-size: var(--guide-tooltip-font-size); + + color: var(--guide-selected-tooltip-fg); + background-color: var(--guide-selected-tooltip-bg); + border-radius: 2px; + pointer-events: none; + z-index: calc(var(--z-index) + 1); + + transform-origin: top center; + } +`,DAY=864e5,intervals=[{gte:31536e6,divisor:31536e6,unit:"year"},{gte:2592e6,divisor:2592e6,unit:"month"},{gte:6048e5,divisor:6048e5,unit:"week"},{gte:DAY,divisor:DAY,unit:"day"},{gte:36e5,divisor:36e5,unit:"hour"},{gte:6e4,divisor:6e4,unit:"minute"},{gte:3e4,divisor:1e3,unit:"seconds"},{gte:0,divisor:1,text:"just now"}],getTime=targetDate=>("object"==typeof targetDate?targetDate:new Date(targetDate)).getTime(),Footer_styles=r` + .figma-footer { + flex: 0; + z-index: calc(var(--z-index) + 1); + border-top: 1px solid #ccc; + min-height: 48px; + padding: 0 16px; + text-decoration: none; + display: flex; + flex-direction: row; + justify-content: start; + align-items: center; + background-color: #fff; + overflow-x: auto; + cursor: pointer; + font-size: 12px; + color: rgba(0, 0, 0, 0.8); + } + + .figma-footer--icon { + margin-right: 12px; + } + + .figma-footer--title { + font-weight: 600; + margin-right: 4px; + + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + + .figma-footer--timestamp { + white-space: nowrap; + overflow: hidden; + } +`,Footer=metadata=>{if(!metadata||!metadata.link||void 0===metadata.link||"undefined"===metadata.link)return null;const{link:link,timestamp:timestamp,fileName:fileName}=metadata;return $` + ${lit_html_y` + + + +`} + ${fileName} + + Edited ${((date,nowDate=Date.now(),rft=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}))=>{const diff=getTime(nowDate)-getTime(date),diffAbs=Math.abs(diff);for(const interval of intervals)if(diffAbs>=interval.gte){const x=Math.round(Math.abs(diff)/interval.divisor),isInFuture=diff<0,intervalUnit=interval.unit;return intervalUnit?rft.format(isInFuture?x:-x,intervalUnit):interval.text}})(timestamp)} + + `};var ViewerMixin_decorate=function(decorators,target,key,desc){var d,c=arguments.length,r=c<3?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},ViewerMixin_classPrivateFieldGet=function(receiver,privateMap){if(!privateMap.has(receiver))throw new TypeError("attempted to get private field on non-instance");return privateMap.get(receiver)},ViewerMixin_classPrivateFieldSet=function(receiver,privateMap,value){if(!privateMap.has(receiver))throw new TypeError("attempted to set private field on non-instance");return privateMap.set(receiver,value),value};const ViewerMixin=superClass=>{var _canvasSize,_effectMargins,_flattenedNodes,_handleNodeClick,_getNodeById;class Viewer extends(NodeSelectableMixin(PositionedMixin(superClass))){constructor(...args){super(...args),this.zoomMargin=50,this.link="",_canvasSize.set(this,void 0),_effectMargins.set(this,void 0),_flattenedNodes.set(this,void 0),_handleNodeClick.set(this,(node=>ev=>{ev.preventDefault(),ev.stopPropagation(),this.selectedNode=node})),_getNodeById.set(this,(id=>{var _a,_b;return null!==(_b=null===(_a=ViewerMixin_classPrivateFieldGet(this,_flattenedNodes))||void 0===_a?void 0:_a.find((n=>n.id===id)))&&void 0!==_b?_b:null}))}static get styles(){return extendStyles(super.styles,[r` + :host { + --default-error-bg: #fff; + --default-error-fg: #333; + + --bg: var(--figspec-viewer-bg, #e5e5e5); + --z-index: var(--figspec-viewer-z-index, 0); + --error-bg: var(--figspec-viewer-error-bg, var(--default-error-bg)); + --error-fg: var(--figspec-viewer-error-fg, var(--default-error-fg)); + --error-color: var(--figspec-viewer-error-color, tomato); + + --guide-thickness: var(--figspec-viewer-guide-thickness, 1.5px); + --guide-color: var(--figspec-viewer-guide-color, tomato); + --guide-selected-color: var( + --figspec-viewer-guide-selected-color, + dodgerblue + ); + --guide-tooltip-fg: var(--figspec-viewer-guide-tooltip-fg, white); + --guide-selected-tooltip-fg: var( + --figspec-viewer-guide-selected-tooltip-fg, + white + ); + --guide-tooltip-bg: var( + --figspec-viewer-guide-tooltip-bg, + var(--guide-color) + ); + --guide-selected-tooltip-bg: var( + --figspec-viewer-guide-selected-tooltip-bg, + var(--guide-selected-color) + ); + --guide-tooltip-font-size: var( + --figspec-viewer-guide-tooltip-font-size, + 12px + ); + + position: relative; + display: block; + + background-color: var(--bg); + user-select: none; + overflow: hidden; + z-index: var(--z-index); + } + + @media (prefers-color-scheme: dark) { + :host { + --default-error-bg: #222; + --default-error-fg: #fff; + } + } + + .spec-canvas-wrapper { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + display: flex; + flex-direction: column-reverse; + } + + .canvas { + position: absolute; + top: 50%; + left: 50%; + flex: 1; + } + + .rendered-image { + position: absolute; + top: 0; + left: 0; + } + + .guides { + position: absolute; + + overflow: visible; + stroke: var(--guide-color); + fill: var(--guide-color); + pointer-events: none; + z-index: calc(var(--z-index) + 2); + } + `,Node_styles,ErrorMessage_styles,DistanceGuide_styles,InspectorView_styles,Footer_styles])}get __images(){return{}}deselectNode(){this.selectedNode=null}get error(){return ViewerMixin_classPrivateFieldGet(this,_canvasSize)&&ViewerMixin_classPrivateFieldGet(this,_flattenedNodes)?null:ErrorMessage({title:"Error",children:"Please call `__updateTree/1` method with a valid parameter."})}render(){if(this.error)return this.error instanceof Error?ErrorMessage({title:this.error.name||"Error",children:this.error.message}):"string"==typeof this.error?ErrorMessage({title:"Error",children:this.error}):this.error;const canvasSize=ViewerMixin_classPrivateFieldGet(this,_canvasSize),reverseScale=1/this.scale,guideThickness=`calc(var(--guide-thickness) * ${reverseScale})`,computedGuideThickness=parseFloat(getComputedStyle(this).getPropertyValue("--guide-thickness")),computedGuideTooltipFontSize=parseFloat(getComputedStyle(this).getPropertyValue("--guide-tooltip-font-size"));return $` +
+
+ ${Object.entries(this.__images).map((([nodeId,uri])=>{var _a;const node=ViewerMixin_classPrivateFieldGet(this,_getNodeById).call(this,nodeId);if(!node||!("absoluteBoundingBox"in node)||!(null===(_a=ViewerMixin_classPrivateFieldGet(this,_effectMargins))||void 0===_a?void 0:_a[node.id]))return null;const margin=ViewerMixin_classPrivateFieldGet(this,_effectMargins)[node.id];return $` + + `}))} + ${this.selectedNode&&(({nodeSize:{x:x,y:y,width:width,height:height},offsetX:offsetX,offsetY:offsetY,reverseScale:reverseScale})=>$` +
+ ${round(width)} x ${round(height)} +
+ `)({nodeSize:this.selectedNode.absoluteBoundingBox,offsetX:-canvasSize.x,offsetY:-canvasSize.y,reverseScale:reverseScale})} + ${lit_html_y` + + ${this.selectedNode&&Outline({node:this.selectedNode,selected:!0,computedThickness:computedGuideThickness*reverseScale})} + + ${ViewerMixin_classPrivateFieldGet(this,_flattenedNodes).map((node=>{var _a;return node.id===(null===(_a=this.selectedNode)||void 0===_a?void 0:_a.id)?null:lit_html_y` + + ${Outline({node:node,computedThickness:computedGuideThickness*reverseScale,onClick:ViewerMixin_classPrivateFieldGet(this,_handleNodeClick).call(this,node)})} + ${this.selectedNode&&Guides({node:node,distanceTo:this.selectedNode,reverseScale:reverseScale,fontSize:computedGuideTooltipFontSize})} + + `}))} + + `} +
+ ${View({node:this.selectedNode,onClose:this.deselectNode})} + ${Footer(this.getMetadata())} +
+ `}getMetadata(){}connectedCallback(){super.connectedCallback(),this.resetZoom()}updated(changedProperties){super.updated(changedProperties)}__updateTree(node){if("CANVAS"!==node.type&&"FRAME"!==node.type&&"COMPONENT"!==node.type&&"COMPONENT_SET"!==node.type)throw new Error("Cannot update node tree: Top level node MUST be one of CANVAS, FRAME, COMPONENT, or COMPONENT_SET");ViewerMixin_classPrivateFieldSet(this,_canvasSize,"CANVAS"===node.type?function getCanvasSize(node){const left=[],right=[],top=[],bottom=[];for(const child of node.children){if("FRAME"!==child.type&&"COMPONENT"!==child.type)continue;const{x:x,y:y,width:width,height:height}=child.absoluteBoundingBox;left.push(x),right.push(x+width),top.push(y),bottom.push(y+height)}const minX=Math.min(...left),minY=Math.min(...top);return{x:minX,y:minY,width:Math.abs(Math.max(...right)-minX),height:Math.abs(Math.min(...bottom)-minY)}}(node):node.absoluteBoundingBox),ViewerMixin_classPrivateFieldSet(this,_flattenedNodes,flattenNode(node)),this.requestUpdate()}__updateEffectMargins(){if(!this.__images)return;const containers=Object.keys(this.__images).map(ViewerMixin_classPrivateFieldGet(this,_getNodeById)).filter((n=>!!n));ViewerMixin_classPrivateFieldSet(this,_effectMargins,containers.reduce(((margin,node)=>"absoluteBoundingBox"in node?Object.assign(Object.assign({},margin),{[node.id]:getEffectMargin(node,flattenNode(node))}):margin),{})),this.requestUpdate()}resetZoom(){if(ViewerMixin_classPrivateFieldGet(this,_canvasSize)){const{width:width,height:height}=ViewerMixin_classPrivateFieldGet(this,_canvasSize),{width:elementWidth,height:elementHeight}=this.getBoundingClientRect(),wDiff=elementWidth/(width+2*this.zoomMargin),hDiff=elementHeight/(height+2*this.zoomMargin);this.scale=Math.min(wDiff,hDiff,1)}}}return _canvasSize=new WeakMap,_effectMargins=new WeakMap,_flattenedNodes=new WeakMap,_handleNodeClick=new WeakMap,_getNodeById=new WeakMap,ViewerMixin_decorate([property_e({type:Number,attribute:"zoom-margin"})],Viewer.prototype,"zoomMargin",void 0),ViewerMixin_decorate([property_e({type:String,attribute:"link"})],Viewer.prototype,"link",void 0),Viewer};function getEffectMargin(container,nodes){const points=nodes.map((node=>{if(!("effects"in node))return{top:node.absoluteBoundingBox.y,right:node.absoluteBoundingBox.x+node.absoluteBoundingBox.width,bottom:node.absoluteBoundingBox.y+node.absoluteBoundingBox.height,left:node.absoluteBoundingBox.x};const blurRadiuses=node.effects.filter((effect=>effect.visible&&"LAYER_BLUR"===effect.type)).map((effect=>effect.radius)),shadowMargins=node.effects.filter((effect=>effect.visible&&"DROP_SHADOW"===effect.type&&!!effect.offset)).map((effect=>({left:effect.radius-effect.offset.x,top:effect.radius-effect.offset.y,right:effect.radius+effect.offset.x,bottom:effect.radius+effect.offset.y}))),margin_top=Math.max(0,...blurRadiuses,...shadowMargins.map((margin=>margin.top))),margin_right=Math.max(0,...blurRadiuses,...shadowMargins.map((margin=>margin.right))),margin_bottom=Math.max(0,...blurRadiuses,...shadowMargins.map((margin=>margin.bottom))),margin_left=Math.max(0,...blurRadiuses,...shadowMargins.map((margin=>margin.left)));return{top:node.absoluteBoundingBox.y-margin_top,right:node.absoluteBoundingBox.x+node.absoluteBoundingBox.width+margin_right,bottom:node.absoluteBoundingBox.y+node.absoluteBoundingBox.height+margin_bottom,left:node.absoluteBoundingBox.x-margin_left}})),bounds_top=Math.min(...points.map((p=>p.top))),bounds_right=Math.max(...points.map((p=>p.right))),bounds_bottom=Math.max(...points.map((p=>p.bottom))),bounds_left=Math.min(...points.map((p=>p.left)));return{top:container.absoluteBoundingBox.y-bounds_top,right:bounds_right-container.absoluteBoundingBox.x-container.absoluteBoundingBox.width,bottom:bounds_bottom-container.absoluteBoundingBox.y-container.absoluteBoundingBox.height,left:container.absoluteBoundingBox.x-bounds_left}}function flattenNode(node,depth=0){return"absoluteBoundingBox"in node?"children"in node&&0!==node.children.length?[Object.assign(Object.assign({},node),{depth:depth}),...node.children.map((child=>flattenNode(child,depth+1))).flat()]:[Object.assign(Object.assign({},node),{depth:depth})]:node.children.map((child=>flattenNode(child,depth+1))).flat()}var FigspecFrameViewer_decorate=function(decorators,target,key,desc){var d,c=arguments.length,r=c<3?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r};class FigspecFrameViewer extends(ViewerMixin(lit_element_s)){constructor(){super(...arguments),this.nodes=null,this.renderedImage=null}get isMovable(){return!!(this.nodes&&this.renderedImage&&this.documentNode)}get documentNode(){if(!this.nodes)return null;const documentNode=Object.values(this.nodes.nodes)[0];return documentNode&&"absoluteBoundingBox"in documentNode.document?documentNode.document:null}get __images(){return this.documentNode&&this.renderedImage?{[this.documentNode.id]:this.renderedImage}:{}}get error(){return this.nodes&&this.renderedImage?this.documentNode?super.error?super.error:void 0:ErrorMessage({title:"Parameter Error",children:$` + Document node is empty or does not have size. + `}):ErrorMessage({title:"Parameter error",children:$` + Both nodes and rendered-image are required. + `})}getMetadata(){return{fileName:this.nodes.name,timestamp:this.nodes.lastModified,link:this.link}}connectedCallback(){super.connectedCallback(),this.documentNode&&(this.__updateTree(this.documentNode),this.__updateEffectMargins(),this.resetZoom())}updated(changedProperties){if(super.updated(changedProperties),changedProperties.has("nodes")){if(!this.documentNode)return;this.__updateTree(this.documentNode),this.resetZoom()}changedProperties.has("renderedImage")&&this.__updateEffectMargins()}}FigspecFrameViewer_decorate([property_e({type:Object})],FigspecFrameViewer.prototype,"nodes",void 0),FigspecFrameViewer_decorate([property_e({type:String,attribute:"rendered-image"})],FigspecFrameViewer.prototype,"renderedImage",void 0);var _selectFirstPage,_handlePageChange,FigspecFileViewer_decorate=function(decorators,target,key,desc){var d,c=arguments.length,r=c<3?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},FigspecFileViewer_classPrivateFieldGet=function(receiver,privateMap){if(!privateMap.has(receiver))throw new TypeError("attempted to get private field on non-instance");return privateMap.get(receiver)};class FigspecFileViewer extends(ViewerMixin(lit_element_s)){constructor(){super(...arguments),this.documentNode=null,this.renderedImages=null,this.selectedPage=null,_selectFirstPage.set(this,(()=>{var _a;this.documentNode?this.selectedPage=null!==(_a=this.documentNode.document.children.filter((c=>"CANVAS"===c.type))[0])&&void 0!==_a?_a:null:this.selectedPage=null})),_handlePageChange.set(this,(ev=>{var _a,_b;const target=ev.currentTarget;this.selectedPage=null!==(_b=null===(_a=this.documentNode)||void 0===_a?void 0:_a.document.children.find((c=>c.id===target.value)))&&void 0!==_b?_b:null,this.selectedPage&&(this.__updateTree(this.selectedPage),this.resetZoom(),this.__updateEffectMargins(),this.panX=0,this.panY=0)}))}get isMovable(){return!(!this.renderedImages||!this.documentNode)}get __images(){return this.renderedImages||{}}get error(){return this.documentNode&&this.renderedImages?super.error?super.error:void 0:ErrorMessage({title:"Parameter error",children:$` + Both document-node and rendered-images are + required. + `})}static get styles(){return extendStyles(super.styles,[r` + :host { + --figspec-control-bg-default: #fcfcfc; + --figspec-control-fg-default: #333; + + --control-bg: var( + --figspec-control-bg, + var(--figspec-control-bg-default) + ); + --control-fg: var( + --figspec-control-bg, + var(--figspec-control-fg-default) + ); + --control-shadow: var( + --figspec-control-shadow, + 0 2px 4px rgba(0, 0, 0, 0.3) + ); + --padding: var(--figspec-control-padding, 8px 16px); + + display: flex; + flex-direction: column; + } + + @media (prefers-color-scheme: dark) { + :host { + --figspec-control-bg-default: #222; + --figspec-control-fg-default: #fff; + } + } + + .controls { + flex-shrink: 0; + padding: var(--padding); + + background-color: var(--control-bg); + box-shadow: var(--control-shadow); + color: var(--control-fg); + z-index: 1; + } + + .view { + position: relative; + flex-grow: 1; + flex-shrink: 1; + } + `])}render(){var _a;return $` +
+ +
+ +
${super.render()}
+ `}getMetadata(){return{fileName:this.documentNode.name,timestamp:this.documentNode.lastModified,link:this.link}}connectedCallback(){super.connectedCallback(),this.documentNode&&(FigspecFileViewer_classPrivateFieldGet(this,_selectFirstPage).call(this),this.selectedPage&&(this.__updateTree(this.selectedPage),this.resetZoom()))}updated(changedProperties){super.updated(changedProperties),changedProperties.has("documentNode")&&(FigspecFileViewer_classPrivateFieldGet(this,_selectFirstPage).call(this),this.selectedPage&&(this.__updateTree(this.selectedPage),this.resetZoom())),changedProperties.has("renderedImages")&&this.__updateEffectMargins()}}_selectFirstPage=new WeakMap,_handlePageChange=new WeakMap,FigspecFileViewer_decorate([property_e({type:Object,attribute:"document-node"})],FigspecFileViewer.prototype,"documentNode",void 0),FigspecFileViewer_decorate([property_e({type:Object,attribute:"rendered-images"})],FigspecFileViewer.prototype,"renderedImages",void 0),customElements.get("figspec-file-viewer")||customElements.define("figspec-file-viewer",FigspecFileViewer),customElements.get("figspec-frame-viewer")||customElements.define("figspec-frame-viewer",FigspecFrameViewer);const create_component_t=new Set(["children","localName","ref","style","className"]),create_component_e=new WeakMap,create_component_n=(t,n,s,o,i)=>{const l=null==i?void 0:i[n];void 0!==l?s!==o&&((t,n,s)=>{let o=create_component_e.get(t);void 0===o&&create_component_e.set(t,o=new Map);let i=o.get(n);void 0!==s?void 0===i?(o.set(n,i={handleEvent:s}),t.addEventListener(n,i)):i.handleEvent=s:void 0!==i&&(o.delete(n),t.removeEventListener(n,i))})(t,l,s):t[n]=s},create_component_s=(e,s,o,i,l)=>{const c=e.Component,r=e.createElement,d=new Set(Object.keys(null!=i?i:{}));for(const e in o.prototype)e in HTMLElement.prototype||(create_component_t.has(e)?console.warn(`${s} contains property ${e} which is a React reserved property. It will be used by React and not set on the element.`):d.add(e));class h extends c{constructor(){super(...arguments),this.t=null}o(t){if(null!==this.t)for(const e in this.i)create_component_n(this.t,e,this.props[e],t?t[e]:void 0,i)}componentDidMount(){this.o()}componentDidUpdate(t){this.o(t)}render(){const t=this.props.l;void 0!==this.h&&this.u===t||(this.h=e=>{null===this.t&&(this.t=e),null!==t&&((t,e)=>{"function"==typeof t?t(e):t.current=e})(t,e),this.u=t});const e={ref:this.h};this.i={};for(const[t,n]of Object.entries(this.props))"__forwardedRef"!==t&&(d.has(t)?this.i[t]=n:e["className"===t?"class":t]=n);return r(s,e)}}h.displayName=null!=l?l:o.name;const a=e.forwardRef(((t,e)=>r(h,{...t,l:e},null==t?void 0:t.children)));return a.displayName=h.displayName,a},es2015_FigspecFrameViewer=create_component_s(react_namespaceObject,"figspec-frame-viewer",FigspecFrameViewer,{onNodeSelect:"nodeselect",onPositionChange:"positionchange",onScaleChange:"scalechange"}),es2015_FigspecFileViewer=create_component_s(react_namespaceObject,"figspec-file-viewer",FigspecFileViewer,{onNodeSelect:"nodeselect",onPositionChange:"positionchange",onScaleChange:"scalechange"});var index_b45716e8=__webpack_require__(72857),esm=__webpack_require__(65316),Figma=__webpack_require__(38570),process=__webpack_require__(34155),__makeTemplateObject=function(cooked,raw){return Object.defineProperty?Object.defineProperty(cooked,"raw",{value:raw}):cooked.raw=raw,cooked},__assign=function(){return __assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i0&&t[t.length-1])||6!==op[0]&&2!==op[0])){_=0;continue}if(3===op[0]&&(!t||op[1]>t[0]&&op[1]depth?ro.activeTargets.push(ot):ro.skippedTargets.push(ot))}))}))},process=function(){var event,depth=0;for(gatherActiveObservationsAtDepth(depth);resizeObservers.some((function(ro){return ro.activeTargets.length>0}));)depth=broadcastActiveObservations(),gatherActiveObservationsAtDepth(depth);return resizeObservers.some((function(ro){return ro.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?event=new ErrorEvent("error",{message:msg}):((event=document.createEvent("Event")).initEvent("error",!1,!1),event.message=msg),window.dispatchEvent(event)),depth>0},callbacks=[],queueMicroTask=function(callback){if(!trigger){var toggle_1=0,el_1=document.createTextNode("");new MutationObserver((function(){return callbacks.splice(0).forEach((function(cb){return cb()}))})).observe(el_1,{characterData:!0}),trigger=function(){el_1.textContent=""+(toggle_1?toggle_1--:toggle_1++)}}callbacks.push(callback),trigger()},watching=0,observerConfig={attributes:!0,characterData:!0,childList:!0,subtree:!0},events=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],time=function(timeout){return void 0===timeout&&(timeout=0),Date.now()+timeout},scheduled=!1,scheduler=new(function(){function Scheduler(){var _this=this;this.stopped=!0,this.listener=function(){return _this.schedule()}}return Scheduler.prototype.run=function(timeout){var _this=this;if(void 0===timeout&&(timeout=250),!scheduled){scheduled=!0;var cb,until=time(timeout);cb=function(){var elementsHaveResized=!1;try{elementsHaveResized=process()}finally{if(scheduled=!1,timeout=until-time(),!watching)return;elementsHaveResized?_this.run(1e3):timeout>0?_this.run(timeout):_this.start()}},queueMicroTask((function ResizeObserver(){requestAnimationFrame(cb)}))}},Scheduler.prototype.schedule=function(){this.stop(),this.run()},Scheduler.prototype.observe=function(){var _this=this,cb=function(){return _this.observer&&_this.observer.observe(document.body,observerConfig)};document.body?cb():global.addEventListener("DOMContentLoaded",cb)},Scheduler.prototype.start=function(){var _this=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),events.forEach((function(name){return global.addEventListener(name,_this.listener,!0)})))},Scheduler.prototype.stop=function(){var _this=this;this.stopped||(this.observer&&this.observer.disconnect(),events.forEach((function(name){return global.removeEventListener(name,_this.listener,!0)})),this.stopped=!0)},Scheduler}()),updateCount=function(n){!watching&&n>0&&scheduler.start(),!(watching+=n)&&scheduler.stop()},ResizeObservation=function(){function ResizeObservation(target,observedBox){this.target=target,this.observedBox=observedBox||ResizeObserverBoxOptions.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return ResizeObservation.prototype.isActive=function(){var target,size=calculateBoxSize(this.target,this.observedBox,!0);return target=this.target,isSVG(target)||function(target){switch(target.tagName){case"INPUT":if("image"!==target.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(target)||"inline"!==getComputedStyle(target).display||(this.lastReportedSize=size),this.lastReportedSize.inlineSize!==size.inlineSize||this.lastReportedSize.blockSize!==size.blockSize},ResizeObservation}(),ResizeObserverDetail=function ResizeObserverDetail(resizeObserver,callback){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=resizeObserver,this.callback=callback},observerMap=new WeakMap,getObservationIndex=function(observationTargets,target){for(var i=0;i=0&&(lastObservation&&resizeObservers.splice(resizeObservers.indexOf(detail),1),detail.observationTargets.splice(index,1),updateCount(-1))},ResizeObserverController.disconnect=function(resizeObserver){var _this=this,detail=observerMap.get(resizeObserver);detail.observationTargets.slice().forEach((function(ot){return _this.unobserve(resizeObserver,ot.target)})),detail.activeTargets.splice(0,detail.activeTargets.length)},ResizeObserverController}(),ResizeObserver=function(){function ResizeObserver(callback){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof callback)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ResizeObserverController.connect(this,callback)}return ResizeObserver.prototype.observe=function(target,options){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!isElement(target))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ResizeObserverController.observe(this,target,options)},ResizeObserver.prototype.unobserve=function(target){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!isElement(target))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ResizeObserverController.unobserve(this,target)},ResizeObserver.prototype.disconnect=function(){ResizeObserverController.disconnect(this)},ResizeObserver.toString=function(){return"function ResizeObserver () { [polyfill code] }"},ResizeObserver}()},"./node_modules/@mdi/js/mdi.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{AD$:function(){return mdiAsterisk},CEZ:function(){return mdiLoading},CW:function(){return mdiChevronDown},DDS:function(){return mdiChevronDoubleRight},Eqf:function(){return mdiCheckboxBlank},MzE:function(){return mdiMenuUp},NN1:function(){return mdiSend},Np8:function(){return mdiMessage},QYt:function(){return mdiArrowRightBold},SXi:function(){return mdiDotsVertical},TM2:function(){return mdiLeaf},UHA:function(){return mdiMinus},Waq:function(){return mdiChevronUp},YKm:function(){return mdiCheckBold},dYk:function(){return mdiArrowDown},fZG:function(){return mdiAlignVerticalCenter},gvn:function(){return mdiAlertDecagramOutline},iW9:function(){return mdiMenuDown},ilk:function(){return mdiOfficeBuilding},jcD:function(){return mdiRefresh},oL1:function(){return mdiCheck},r5M:function(){return mdiClose},rI3:function(){return mdiAccount},uUK:function(){return mdiAccountCircleOutline},yIv:function(){return mdiPhone},z6n:function(){return mdiScooter},zrb:function(){return mdiChevronRight}});var mdiAccount="M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",mdiAccountCircleOutline="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7.07,18.28C7.5,17.38 10.12,16.5 12,16.5C13.88,16.5 16.5,17.38 16.93,18.28C15.57,19.36 13.86,20 12,20C10.14,20 8.43,19.36 7.07,18.28M18.36,16.83C16.93,15.09 13.46,14.5 12,14.5C10.54,14.5 7.07,15.09 5.64,16.83C4.62,15.5 4,13.82 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,13.82 19.38,15.5 18.36,16.83M12,6C10.06,6 8.5,7.56 8.5,9.5C8.5,11.44 10.06,13 12,13C13.94,13 15.5,11.44 15.5,9.5C15.5,7.56 13.94,6 12,6M12,11A1.5,1.5 0 0,1 10.5,9.5A1.5,1.5 0 0,1 12,8A1.5,1.5 0 0,1 13.5,9.5A1.5,1.5 0 0,1 12,11Z",mdiAlertDecagramOutline="M23,12L20.56,14.78L20.9,18.46L17.29,19.28L15.4,22.46L12,21L8.6,22.47L6.71,19.29L3.1,18.47L3.44,14.78L1,12L3.44,9.21L3.1,5.53L6.71,4.72L8.6,1.54L12,3L15.4,1.54L17.29,4.72L20.9,5.54L20.56,9.22L23,12M20.33,12L18.5,9.89L18.74,7.1L16,6.5L14.58,4.07L12,5.18L9.42,4.07L8,6.5L5.26,7.09L5.5,9.88L3.67,12L5.5,14.1L5.26,16.9L8,17.5L9.42,19.93L12,18.81L14.58,19.92L16,17.5L18.74,16.89L18.5,14.1L20.33,12M11,15H13V17H11V15M11,7H13V13H11V7",mdiAlignVerticalCenter="M5 20V13H2V11H5V4H11V11H13V7H19V11H22V13H19V17H13V13H11V20H5Z",mdiArrowDown="M11,4H13V16L18.5,10.5L19.92,11.92L12,19.84L4.08,11.92L5.5,10.5L11,16V4Z",mdiArrowRightBold="M4,15V9H12V4.16L19.84,12L12,19.84V15H4Z",mdiAsterisk="M10,2H14L13.21,9.91L19.66,5.27L21.66,8.73L14.42,12L21.66,15.27L19.66,18.73L13.21,14.09L14,22H10L10.79,14.09L4.34,18.73L2.34,15.27L9.58,12L2.34,8.73L4.34,5.27L10.79,9.91L10,2Z",mdiCheck="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",mdiCheckBold="M9,20.42L2.79,14.21L5.62,11.38L9,14.77L18.88,4.88L21.71,7.71L9,20.42Z",mdiCheckboxBlank="M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z",mdiChevronDoubleRight="M5.59,7.41L7,6L13,12L7,18L5.59,16.59L10.17,12L5.59,7.41M11.59,7.41L13,6L19,12L13,18L11.59,16.59L16.17,12L11.59,7.41Z",mdiChevronDown="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",mdiChevronRight="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",mdiChevronUp="M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z",mdiClose="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",mdiDotsVertical="M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z",mdiLeaf="M17,8C8,10 5.9,16.17 3.82,21.34L5.71,22L6.66,19.7C7.14,19.87 7.64,20 8,20C19,20 22,3 22,3C21,5 14,5.25 9,6.25C4,7.25 2,11.5 2,13.5C2,15.5 3.75,17.25 3.75,17.25C7,8 17,8 17,8Z",mdiLoading="M12,4V2A10,10 0 0,0 2,12H4A8,8 0 0,1 12,4Z",mdiMenuDown="M7,10L12,15L17,10H7Z",mdiMenuUp="M7,15L12,10L17,15H7Z",mdiMessage="M20,2H4A2,2 0 0,0 2,4V22L6,18H20A2,2 0 0,0 22,16V4C22,2.89 21.1,2 20,2Z",mdiMinus="M19,13H5V11H19V13Z",mdiOfficeBuilding="M5,3V21H11V17.5H13V21H19V3H5M7,5H9V7H7V5M11,5H13V7H11V5M15,5H17V7H15V5M7,9H9V11H7V9M11,9H13V11H11V9M15,9H17V11H15V9M7,13H9V15H7V13M11,13H13V15H11V13M15,13H17V15H15V13M7,17H9V19H7V17M15,17H17V19H15V17Z",mdiPhone="M6.62,10.79C8.06,13.62 10.38,15.94 13.21,17.38L15.41,15.18C15.69,14.9 16.08,14.82 16.43,14.93C17.55,15.3 18.75,15.5 20,15.5A1,1 0 0,1 21,16.5V20A1,1 0 0,1 20,21A17,17 0 0,1 3,4A1,1 0 0,1 4,3H7.5A1,1 0 0,1 8.5,4C8.5,5.25 8.7,6.45 9.07,7.57C9.18,7.92 9.1,8.31 8.82,8.59L6.62,10.79Z",mdiRefresh="M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z",mdiScooter="M7.82 19H15V18C15 15.79 16.79 14 19 14H19.74L17.84 5.56C17.63 4.65 16.82 4 15.89 4H12V6H15.89L17.29 12.25H17.28C15.12 12.9 13.47 14.73 13.09 17H7.82C7.34 15.66 5.96 14.76 4.4 15.06C3.22 15.29 2.27 16.26 2.05 17.44C1.7 19.34 3.16 21 5 21C6.3 21 7.4 20.16 7.82 19M5 19C4.45 19 4 18.55 4 18S4.45 17 5 17 6 17.45 6 18 5.55 19 5 19M19 15C17.34 15 16 16.34 16 18S17.34 21 19 21 22 19.66 22 18 20.66 15 19 15M19 19C18.45 19 18 18.55 18 18S18.45 17 19 17 20 17.45 20 18 19.55 19 19 19Z",mdiSend="M2,21L23,12L2,3V10L17,12L2,14V21Z"},"./node_modules/@mdi/react/Icon.js":function(module,__unused_webpack_exports,__webpack_require__){module.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2)}([function(e,t){e.exports=__webpack_require__("./node_modules/prop-types/index.js")},function(e,t){e.exports=__webpack_require__("./node_modules/react/index.js")},function(e,t,r){"use strict";r.r(t);var n=r(1),o=r(0),l=function(){return(l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&(S.transform=q.join(" "),S.transformOrigin="center",_&&(C=n.createElement("g",{style:S},M,n.createElement("rect",{width:"24",height:"24",fill:"transparent"}))));var I,N=C,R=!0===E||"number"!=typeof E?2:E,B=!_&&(h||O);if(R<0&&(B=!B),E&&(N=n.createElement("g",{style:{animation:"spin"+(B?"-inverse":"")+" linear "+Math.abs(R)+"s infinite",transformOrigin:"center"}},C,!(h||O||0!==j)&&n.createElement("rect",{width:"24",height:"24",fill:"transparent"}))),_)return N;var X,Y="icon_labelledby_"+l,A="icon_describedby_"+l;if(a)I=c?Y+" "+A:Y;else if(X="presentation",c)throw new Error("title attribute required when description is set");return n.createElement("svg",u({ref:t,viewBox:"0 0 24 24",style:S,role:X,"aria-labelledby":I},k),a&&n.createElement("title",{id:Y},a),c&&n.createElement("desc",{id:A},c),!_&&E&&(B?n.createElement("style",null,"@keyframes spin-inverse { to { transform: rotate(-360deg) } }"):n.createElement("style",null,"@keyframes spin { to { transform: rotate(360deg) } }")),N)}));d.displayName="Icon",d.propTypes={path:o.string.isRequired,size:o.oneOfType([o.number,o.string]),color:o.string,horizontal:o.bool,vertical:o.bool,rotate:o.number,spin:o.oneOfType([o.bool,o.number]),style:o.object,inStack:o.bool,className:o.string},d.defaultProps={size:null,color:"currentColor",horizontal:!1,vertical:!1,rotate:0,spin:!1},t.default=d}])},"./node_modules/@react-aria/checkbox/dist/module.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{O:function(){return $406796ff087fe49b$export$e375f10ce42261c5}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_react_aria_toggle__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@react-aria/toggle/dist/module.js"),_react_aria_utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@react-aria/utils/dist/module.js"),_react_aria_label__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@react-aria/label/dist/module.js"),_react_stately_toggle__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@react-stately/toggle/dist/module.js");function $parcel$export(e,n,v,s){Object.defineProperty(e,n,{get:v,set:s,enumerable:!0,configurable:!0})}function $406796ff087fe49b$export$e375f10ce42261c5(props,state,inputRef){let{inputProps:inputProps}=(0,_react_aria_toggle__WEBPACK_IMPORTED_MODULE_1__.O)(props,state,inputRef),{isSelected:isSelected}=state,{isIndeterminate:isIndeterminate}=props;return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{inputRef.current&&(inputRef.current.indeterminate=isIndeterminate)})),{inputProps:{...inputProps,checked:isSelected,"aria-checked":isIndeterminate?"mixed":isSelected}}}$parcel$export({},"useCheckbox",(()=>$406796ff087fe49b$export$e375f10ce42261c5));$parcel$export({},"useCheckboxGroup",(()=>$1e9fce0cfacc738b$export$49ff6f28c54f1cbe));const $1ae600c947479353$export$31440636951aa68c=new WeakMap;function $1e9fce0cfacc738b$export$49ff6f28c54f1cbe(props,state){let{isDisabled:isDisabled,name:name}=props,{labelProps:labelProps,fieldProps:fieldProps}=(0,_react_aria_label__WEBPACK_IMPORTED_MODULE_2__.N)({...props,labelElementType:"span"}),domProps=(0,_react_aria_utils__WEBPACK_IMPORTED_MODULE_3__.zL)(props,{labelable:!0});return $1ae600c947479353$export$31440636951aa68c.set(state,name),{groupProps:(0,_react_aria_utils__WEBPACK_IMPORTED_MODULE_3__.dG)(domProps,{role:"group","aria-disabled":isDisabled||void 0,...fieldProps}),labelProps:labelProps}}function $fba3e38d5ca8983f$export$353b32fc6898d37d(props,state,inputRef){const toggleState=(0,_react_stately_toggle__WEBPACK_IMPORTED_MODULE_4__.l)({isReadOnly:props.isReadOnly||state.isReadOnly,isSelected:state.isSelected(props.value),onChange(isSelected){isSelected?state.addValue(props.value):state.removeValue(props.value),props.onChange&&props.onChange(isSelected)}});let{inputProps:inputProps}=$406796ff087fe49b$export$e375f10ce42261c5({...props,isReadOnly:props.isReadOnly||state.isReadOnly,isDisabled:props.isDisabled||state.isDisabled,name:props.name||$1ae600c947479353$export$31440636951aa68c.get(state)},toggleState,inputRef);return{inputProps:inputProps}}$parcel$export({},"useCheckboxGroupItem",(()=>$fba3e38d5ca8983f$export$353b32fc6898d37d))},"./node_modules/@react-aria/label/dist/module.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{N:function(){return $d191a55c9702f145$export$8467354a121f1b9f}});var _react_aria_utils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@react-aria/utils/dist/module.js");function $parcel$export(e,n,v,s){Object.defineProperty(e,n,{get:v,set:s,enumerable:!0,configurable:!0})}$parcel$export({},"useField",(()=>$2baaea4c71418dea$export$294aa081a6c6f55d));function $d191a55c9702f145$export$8467354a121f1b9f(props){let{id:id,label:label,"aria-labelledby":ariaLabelledby,"aria-label":ariaLabel,labelElementType:labelElementType="label"}=props;id=(0,_react_aria_utils__WEBPACK_IMPORTED_MODULE_0__.Me)(id);let labelId=(0,_react_aria_utils__WEBPACK_IMPORTED_MODULE_0__.Me)(),labelProps={};return label?(ariaLabelledby=ariaLabelledby?`${ariaLabelledby} ${labelId}`:labelId,labelProps={id:labelId,htmlFor:"label"===labelElementType?id:void 0}):ariaLabelledby||ariaLabel||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:labelProps,fieldProps:(0,_react_aria_utils__WEBPACK_IMPORTED_MODULE_0__.bE)({id:id,"aria-label":ariaLabel,"aria-labelledby":ariaLabelledby})}}function $2baaea4c71418dea$export$294aa081a6c6f55d(props){let{description:description,errorMessage:errorMessage,validationState:validationState}=props,{labelProps:labelProps,fieldProps:fieldProps}=$d191a55c9702f145$export$8467354a121f1b9f(props),descriptionId=(0,_react_aria_utils__WEBPACK_IMPORTED_MODULE_0__.mp)([Boolean(description),Boolean(errorMessage),validationState]),errorMessageId=(0,_react_aria_utils__WEBPACK_IMPORTED_MODULE_0__.mp)([Boolean(description),Boolean(errorMessage),validationState]);return fieldProps=(0,_react_aria_utils__WEBPACK_IMPORTED_MODULE_0__.dG)(fieldProps,{"aria-describedby":[descriptionId,errorMessageId,props["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:labelProps,fieldProps:fieldProps,descriptionProps:{id:descriptionId},errorMessageProps:{id:errorMessageId}}}$parcel$export({},"useLabel",(()=>$d191a55c9702f145$export$8467354a121f1b9f))},"./node_modules/@react-aria/separator/dist/module.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{z:function(){return $f4b273590fab9f93$export$52210f68a14655d0}});var _react_aria_utils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@react-aria/utils/dist/module.js");function $f4b273590fab9f93$export$52210f68a14655d0(props){let ariaOrientation,domProps=(0,_react_aria_utils__WEBPACK_IMPORTED_MODULE_0__.zL)(props,{labelable:!0});return"vertical"===props.orientation&&(ariaOrientation="vertical"),"hr"!==props.elementType?{separatorProps:{...domProps,role:"separator","aria-orientation":ariaOrientation}}:{separatorProps:domProps}}!function $parcel$export(e,n,v,s){Object.defineProperty(e,n,{get:v,set:s,enumerable:!0,configurable:!0})}({},"useSeparator",(()=>$f4b273590fab9f93$export$52210f68a14655d0))},"./node_modules/@react-aria/switch/dist/module.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{h:function(){return $b418ec0c85c52f27$export$d853f7095ae95f88}});var _react_aria_toggle__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@react-aria/toggle/dist/module.js");function $b418ec0c85c52f27$export$d853f7095ae95f88(props,state,ref){let{inputProps:inputProps}=(0,_react_aria_toggle__WEBPACK_IMPORTED_MODULE_0__.O)(props,state,ref),{isSelected:isSelected}=state;return{inputProps:{...inputProps,role:"switch",checked:isSelected,"aria-checked":isSelected}}}!function $parcel$export(e,n,v,s){Object.defineProperty(e,n,{get:v,set:s,enumerable:!0,configurable:!0})}({},"useSwitch",(()=>$b418ec0c85c52f27$export$d853f7095ae95f88))},"./node_modules/@react-aria/toggle/dist/module.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{O:function(){return $d2c8e2b0480f3f34$export$cbe85ee05b554577}});var dist_module=__webpack_require__("./node_modules/@react-aria/utils/dist/module.js"),react=__webpack_require__("./node_modules/react/index.js");function $parcel$export(e,n,v,s){Object.defineProperty(e,n,{get:v,set:s,enumerable:!0,configurable:!0})}$parcel$export({},"Pressable",(()=>$3b117e43dc0ca95d$export$27c701ed9e449e99));$parcel$export({},"usePress",(()=>$f6c31cce2adf654f$export$45712eceda6fad21));let $14c0b72509d70225$var$state="default",$14c0b72509d70225$var$savedUserSelect="",$14c0b72509d70225$var$modifiedElementMap=new WeakMap;function $14c0b72509d70225$export$16a4697467175487(target){(0,dist_module.gn)()?("default"===$14c0b72509d70225$var$state&&($14c0b72509d70225$var$savedUserSelect=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),$14c0b72509d70225$var$state="disabled"):target&&($14c0b72509d70225$var$modifiedElementMap.set(target,target.style.userSelect),target.style.userSelect="none")}function $14c0b72509d70225$export$b0d6fa1ab32e3295(target){if((0,dist_module.gn)()){if("disabled"!==$14c0b72509d70225$var$state)return;$14c0b72509d70225$var$state="restoring",setTimeout((()=>{(0,dist_module.QB)((()=>{"restoring"===$14c0b72509d70225$var$state&&("none"===document.documentElement.style.webkitUserSelect&&(document.documentElement.style.webkitUserSelect=$14c0b72509d70225$var$savedUserSelect||""),$14c0b72509d70225$var$savedUserSelect="",$14c0b72509d70225$var$state="default")}))}),300)}else if(target&&$14c0b72509d70225$var$modifiedElementMap.has(target)){let targetOldUserSelect=$14c0b72509d70225$var$modifiedElementMap.get(target);"none"===target.style.userSelect&&(target.style.userSelect=targetOldUserSelect),""===target.getAttribute("style")&&target.removeAttribute("style"),$14c0b72509d70225$var$modifiedElementMap.delete(target)}}function $8a9cb279dc87e130$export$60278871457622de(event){return!(0!==event.mozInputSource||!event.isTrusted)||0===event.detail&&!event.pointerType}class $8a9cb279dc87e130$export$905e7fc544a71f36{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(type,nativeEvent){this.nativeEvent=nativeEvent,this.target=nativeEvent.target,this.currentTarget=nativeEvent.currentTarget,this.relatedTarget=nativeEvent.relatedTarget,this.bubbles=nativeEvent.bubbles,this.cancelable=nativeEvent.cancelable,this.defaultPrevented=nativeEvent.defaultPrevented,this.eventPhase=nativeEvent.eventPhase,this.isTrusted=nativeEvent.isTrusted,this.timeStamp=nativeEvent.timeStamp,this.type=type}}function $8a9cb279dc87e130$export$715c682d09d639cc(onBlur){let stateRef=(0,react.useRef)({isFocused:!1,onBlur:onBlur,observer:null});return stateRef.current.onBlur=onBlur,(0,dist_module.bt)((()=>{const state=stateRef.current;return()=>{state.observer&&(state.observer.disconnect(),state.observer=null)}}),[]),(0,react.useCallback)((e1=>{if(e1.target instanceof HTMLButtonElement||e1.target instanceof HTMLInputElement||e1.target instanceof HTMLTextAreaElement||e1.target instanceof HTMLSelectElement){stateRef.current.isFocused=!0;let target=e1.target,onBlurHandler=e=>{var _current,ref;stateRef.current.isFocused=!1,target.disabled&&(null===(ref=(_current=stateRef.current).onBlur)||void 0===ref||ref.call(_current,new $8a9cb279dc87e130$export$905e7fc544a71f36("blur",e))),stateRef.current.observer&&(stateRef.current.observer.disconnect(),stateRef.current.observer=null)};target.addEventListener("focusout",onBlurHandler,{once:!0}),stateRef.current.observer=new MutationObserver((()=>{stateRef.current.isFocused&&target.disabled&&(stateRef.current.observer.disconnect(),target.dispatchEvent(new FocusEvent("blur")),target.dispatchEvent(new FocusEvent("focusout",{bubbles:!0})))})),stateRef.current.observer.observe(target,{attributes:!0,attributeFilter:["disabled"]})}}),[])}const $ae1eeba8b9eafd08$export$5165eccb35aaadb5=react.createContext(null);function $f6c31cce2adf654f$export$45712eceda6fad21(props){let{onPress:onPress1,onPressChange:onPressChange1,onPressStart:onPressStart1,onPressEnd:onPressEnd1,onPressUp:onPressUp1,isDisabled:isDisabled1,isPressed:isPressedProp,preventFocusOnPress:preventFocusOnPress,shouldCancelOnPointerExit:shouldCancelOnPointerExit,allowTextSelectionOnPress:allowTextSelectionOnPress,ref:_,...domProps}=function $f6c31cce2adf654f$var$usePressResponderContext(props){let context=(0,react.useContext)($ae1eeba8b9eafd08$export$5165eccb35aaadb5);if(context){let{register:register,...contextProps}=context;props=(0,dist_module.dG)(contextProps,props),register()}return(0,dist_module.lE)(context,props.ref),props}(props),propsRef=(0,react.useRef)(null);propsRef.current={onPress:onPress1,onPressChange:onPressChange1,onPressStart:onPressStart1,onPressEnd:onPressEnd1,onPressUp:onPressUp1,isDisabled:isDisabled1,shouldCancelOnPointerExit:shouldCancelOnPointerExit};let[isPressed,setPressed]=(0,react.useState)(!1),ref=(0,react.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:addGlobalListener,removeAllGlobalListeners:removeAllGlobalListeners}=(0,dist_module.xi)(),pressProps1=(0,react.useMemo)((()=>{let state=ref.current,triggerPressStart=(originalEvent,pointerType)=>{let{onPressStart:onPressStart,onPressChange:onPressChange,isDisabled:isDisabled}=propsRef.current;isDisabled||state.didFirePressStart||(onPressStart&&onPressStart({type:"pressstart",pointerType:pointerType,target:originalEvent.currentTarget,shiftKey:originalEvent.shiftKey,metaKey:originalEvent.metaKey,ctrlKey:originalEvent.ctrlKey,altKey:originalEvent.altKey}),onPressChange&&onPressChange(!0),state.didFirePressStart=!0,setPressed(!0))},triggerPressEnd=(originalEvent,pointerType,wasPressed=!0)=>{let{onPressEnd:onPressEnd,onPressChange:onPressChange,onPress:onPress,isDisabled:isDisabled}=propsRef.current;state.didFirePressStart&&(state.ignoreClickAfterPress=!0,state.didFirePressStart=!1,onPressEnd&&onPressEnd({type:"pressend",pointerType:pointerType,target:originalEvent.currentTarget,shiftKey:originalEvent.shiftKey,metaKey:originalEvent.metaKey,ctrlKey:originalEvent.ctrlKey,altKey:originalEvent.altKey}),onPressChange&&onPressChange(!1),setPressed(!1),onPress&&wasPressed&&!isDisabled&&onPress({type:"press",pointerType:pointerType,target:originalEvent.currentTarget,shiftKey:originalEvent.shiftKey,metaKey:originalEvent.metaKey,ctrlKey:originalEvent.ctrlKey,altKey:originalEvent.altKey}))},triggerPressUp=(originalEvent,pointerType)=>{let{onPressUp:onPressUp,isDisabled:isDisabled}=propsRef.current;isDisabled||onPressUp&&onPressUp({type:"pressup",pointerType:pointerType,target:originalEvent.currentTarget,shiftKey:originalEvent.shiftKey,metaKey:originalEvent.metaKey,ctrlKey:originalEvent.ctrlKey,altKey:originalEvent.altKey})},cancel=e=>{state.isPressed&&(state.isOverTarget&&triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target,e),state.pointerType,!1),state.isPressed=!1,state.isOverTarget=!1,state.activePointerId=null,state.pointerType=null,removeAllGlobalListeners(),allowTextSelectionOnPress||$14c0b72509d70225$export$b0d6fa1ab32e3295(state.target))},pressProps={onKeyDown(e){$f6c31cce2adf654f$var$isValidKeyboardEvent(e.nativeEvent)&&e.currentTarget.contains(e.target)&&($f6c31cce2adf654f$var$shouldPreventDefaultKeyboard(e.target)&&e.preventDefault(),e.stopPropagation(),state.isPressed||e.repeat||(state.target=e.currentTarget,state.isPressed=!0,triggerPressStart(e,"keyboard"),addGlobalListener(document,"keyup",onKeyUp,!1)))},onKeyUp(e){$f6c31cce2adf654f$var$isValidKeyboardEvent(e.nativeEvent)&&!e.repeat&&e.currentTarget.contains(e.target)&&triggerPressUp($f6c31cce2adf654f$var$createEvent(state.target,e),"keyboard")},onClick(e){e&&!e.currentTarget.contains(e.target)||e&&0===e.button&&(e.stopPropagation(),isDisabled1&&e.preventDefault(),state.ignoreClickAfterPress||state.ignoreEmulatedMouseEvents||"virtual"!==state.pointerType&&!$8a9cb279dc87e130$export$60278871457622de(e.nativeEvent)||(isDisabled1||preventFocusOnPress||(0,dist_module.Ao)(e.currentTarget),triggerPressStart(e,"virtual"),triggerPressUp(e,"virtual"),triggerPressEnd(e,"virtual")),state.ignoreEmulatedMouseEvents=!1,state.ignoreClickAfterPress=!1)}},onKeyUp=e=>{if(state.isPressed&&$f6c31cce2adf654f$var$isValidKeyboardEvent(e)){$f6c31cce2adf654f$var$shouldPreventDefaultKeyboard(e.target)&&e.preventDefault(),e.stopPropagation(),state.isPressed=!1;let target=e.target;triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target,e),"keyboard",state.target.contains(target)),removeAllGlobalListeners(),(state.target.contains(target)&&$f6c31cce2adf654f$var$isHTMLAnchorLink(state.target)||"link"===state.target.getAttribute("role"))&&state.target.click()}};if("undefined"!=typeof PointerEvent){pressProps.onPointerDown=e=>{0===e.button&&e.currentTarget.contains(e.target)&&(!function $f6c31cce2adf654f$var$isVirtualPointerEvent(event){return 0===event.width&&0===event.height||1===event.width&&1===event.height&&0===event.pressure&&0===event.detail&&"mouse"===event.pointerType}(e.nativeEvent)?($f6c31cce2adf654f$var$shouldPreventDefault(e.currentTarget)&&e.preventDefault(),state.pointerType=e.pointerType,e.stopPropagation(),state.isPressed||(state.isPressed=!0,state.isOverTarget=!0,state.activePointerId=e.pointerId,state.target=e.currentTarget,isDisabled1||preventFocusOnPress||(0,dist_module.Ao)(e.currentTarget),allowTextSelectionOnPress||$14c0b72509d70225$export$16a4697467175487(state.target),triggerPressStart(e,state.pointerType),addGlobalListener(document,"pointermove",onPointerMove,!1),addGlobalListener(document,"pointerup",onPointerUp,!1),addGlobalListener(document,"pointercancel",onPointerCancel,!1))):state.pointerType="virtual")},pressProps.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&($f6c31cce2adf654f$var$shouldPreventDefault(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},pressProps.onPointerUp=e=>{e.currentTarget.contains(e.target)&&"virtual"!==state.pointerType&&0===e.button&&$f6c31cce2adf654f$var$isOverTarget(e,e.currentTarget)&&triggerPressUp(e,state.pointerType||e.pointerType)};let onPointerMove=e=>{e.pointerId===state.activePointerId&&($f6c31cce2adf654f$var$isOverTarget(e,state.target)?state.isOverTarget||(state.isOverTarget=!0,triggerPressStart($f6c31cce2adf654f$var$createEvent(state.target,e),state.pointerType)):state.isOverTarget&&(state.isOverTarget=!1,triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target,e),state.pointerType,!1),propsRef.current.shouldCancelOnPointerExit&&cancel(e)))},onPointerUp=e=>{e.pointerId===state.activePointerId&&state.isPressed&&0===e.button&&($f6c31cce2adf654f$var$isOverTarget(e,state.target)?triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target,e),state.pointerType):state.isOverTarget&&triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target,e),state.pointerType,!1),state.isPressed=!1,state.isOverTarget=!1,state.activePointerId=null,state.pointerType=null,removeAllGlobalListeners(),allowTextSelectionOnPress||$14c0b72509d70225$export$b0d6fa1ab32e3295(state.target))},onPointerCancel=e=>{cancel(e)};pressProps.onDragStart=e=>{e.currentTarget.contains(e.target)&&cancel(e)}}else{pressProps.onMouseDown=e=>{0===e.button&&e.currentTarget.contains(e.target)&&($f6c31cce2adf654f$var$shouldPreventDefault(e.currentTarget)&&e.preventDefault(),e.stopPropagation(),state.ignoreEmulatedMouseEvents||(state.isPressed=!0,state.isOverTarget=!0,state.target=e.currentTarget,state.pointerType=$8a9cb279dc87e130$export$60278871457622de(e.nativeEvent)?"virtual":"mouse",isDisabled1||preventFocusOnPress||(0,dist_module.Ao)(e.currentTarget),triggerPressStart(e,state.pointerType),addGlobalListener(document,"mouseup",onMouseUp,!1)))},pressProps.onMouseEnter=e=>{e.currentTarget.contains(e.target)&&(e.stopPropagation(),state.isPressed&&!state.ignoreEmulatedMouseEvents&&(state.isOverTarget=!0,triggerPressStart(e,state.pointerType)))},pressProps.onMouseLeave=e=>{e.currentTarget.contains(e.target)&&(e.stopPropagation(),state.isPressed&&!state.ignoreEmulatedMouseEvents&&(state.isOverTarget=!1,triggerPressEnd(e,state.pointerType,!1),propsRef.current.shouldCancelOnPointerExit&&cancel(e)))},pressProps.onMouseUp=e=>{e.currentTarget.contains(e.target)&&(state.ignoreEmulatedMouseEvents||0!==e.button||triggerPressUp(e,state.pointerType))};let onMouseUp=e=>{0===e.button&&(state.isPressed=!1,removeAllGlobalListeners(),state.ignoreEmulatedMouseEvents?state.ignoreEmulatedMouseEvents=!1:($f6c31cce2adf654f$var$isOverTarget(e,state.target)?triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target,e),state.pointerType):state.isOverTarget&&triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target,e),state.pointerType,!1),state.isOverTarget=!1))};pressProps.onTouchStart=e=>{if(!e.currentTarget.contains(e.target))return;e.stopPropagation();let touch=function $f6c31cce2adf654f$var$getTouchFromEvent(event){const{targetTouches:targetTouches}=event;return targetTouches.length>0?targetTouches[0]:null}(e.nativeEvent);touch&&(state.activePointerId=touch.identifier,state.ignoreEmulatedMouseEvents=!0,state.isOverTarget=!0,state.isPressed=!0,state.target=e.currentTarget,state.pointerType="touch",isDisabled1||preventFocusOnPress||(0,dist_module.Ao)(e.currentTarget),allowTextSelectionOnPress||$14c0b72509d70225$export$16a4697467175487(state.target),triggerPressStart(e,state.pointerType),addGlobalListener(window,"scroll",onScroll,!0))},pressProps.onTouchMove=e=>{if(!e.currentTarget.contains(e.target))return;if(e.stopPropagation(),!state.isPressed)return;let touch=$f6c31cce2adf654f$var$getTouchById(e.nativeEvent,state.activePointerId);touch&&$f6c31cce2adf654f$var$isOverTarget(touch,e.currentTarget)?state.isOverTarget||(state.isOverTarget=!0,triggerPressStart(e,state.pointerType)):state.isOverTarget&&(state.isOverTarget=!1,triggerPressEnd(e,state.pointerType,!1),propsRef.current.shouldCancelOnPointerExit&&cancel(e))},pressProps.onTouchEnd=e=>{if(!e.currentTarget.contains(e.target))return;if(e.stopPropagation(),!state.isPressed)return;let touch=$f6c31cce2adf654f$var$getTouchById(e.nativeEvent,state.activePointerId);touch&&$f6c31cce2adf654f$var$isOverTarget(touch,e.currentTarget)?(triggerPressUp(e,state.pointerType),triggerPressEnd(e,state.pointerType)):state.isOverTarget&&triggerPressEnd(e,state.pointerType,!1),state.isPressed=!1,state.activePointerId=null,state.isOverTarget=!1,state.ignoreEmulatedMouseEvents=!0,allowTextSelectionOnPress||$14c0b72509d70225$export$b0d6fa1ab32e3295(state.target),removeAllGlobalListeners()},pressProps.onTouchCancel=e=>{e.currentTarget.contains(e.target)&&(e.stopPropagation(),state.isPressed&&cancel(e))};let onScroll=e=>{state.isPressed&&e.target.contains(state.target)&&cancel({currentTarget:state.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};pressProps.onDragStart=e=>{e.currentTarget.contains(e.target)&&cancel(e)}}return pressProps}),[addGlobalListener,isDisabled1,preventFocusOnPress,removeAllGlobalListeners,allowTextSelectionOnPress]);return(0,react.useEffect)((()=>()=>{allowTextSelectionOnPress||$14c0b72509d70225$export$b0d6fa1ab32e3295(ref.current.target)}),[allowTextSelectionOnPress]),{isPressed:isPressedProp||isPressed,pressProps:(0,dist_module.dG)(domProps,pressProps1)}}function $f6c31cce2adf654f$var$isHTMLAnchorLink(target){return"A"===target.tagName&&target.hasAttribute("href")}function $f6c31cce2adf654f$var$isValidKeyboardEvent(event){const{key:key,code:code,target:target}=event,element=target,{tagName:tagName,isContentEditable:isContentEditable}=element,role=element.getAttribute("role");return!("Enter"!==key&&" "!==key&&"Spacebar"!==key&&"Space"!==code||"INPUT"===tagName||"TEXTAREA"===tagName||!0===isContentEditable||$f6c31cce2adf654f$var$isHTMLAnchorLink(element)&&("button"!==role||"Enter"===key)||"link"===role&&"Enter"!==key)}function $f6c31cce2adf654f$var$getTouchById(event,pointerId){const changedTouches=event.changedTouches;for(let i=0;ib.right||b.left>a.right||a.top>b.bottom||b.top>a.bottom)}(rect,pointRect)}function $f6c31cce2adf654f$var$shouldPreventDefault(target){return!target.draggable}function $f6c31cce2adf654f$var$shouldPreventDefaultKeyboard(target){return!(("INPUT"===target.tagName||"BUTTON"===target.tagName)&&"submit"===target.type)}$ae1eeba8b9eafd08$export$5165eccb35aaadb5.displayName="PressResponderContext";const $3b117e43dc0ca95d$export$27c701ed9e449e99=react.forwardRef((({children:children,...props},ref)=>{let newRef=(0,react.useRef)();ref=null!=ref?ref:newRef;let{pressProps:pressProps}=$f6c31cce2adf654f$export$45712eceda6fad21({...props,ref:ref}),child=react.Children.only(children);return react.cloneElement(child,{ref:ref,...(0,dist_module.dG)(child.props,pressProps)})}));$parcel$export({},"PressResponder",(()=>$f1ab8c75478c6f73$export$3351871ee4b288b8));const $f1ab8c75478c6f73$export$3351871ee4b288b8=react.forwardRef((({children:children,...props},ref)=>{let isRegistered=(0,react.useRef)(!1),prevContext=(0,react.useContext)($ae1eeba8b9eafd08$export$5165eccb35aaadb5),context=(0,dist_module.dG)(prevContext||{},{...props,ref:ref||(null==prevContext?void 0:prevContext.ref),register(){isRegistered.current=!0,prevContext&&prevContext.register()}});return(0,dist_module.lE)(prevContext,ref),(0,react.useEffect)((()=>{isRegistered.current||console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with component.")}),[]),react.createElement($ae1eeba8b9eafd08$export$5165eccb35aaadb5.Provider,{value:context},children)}));function $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props){let{isDisabled:isDisabled,onFocus:onFocusProp,onBlur:onBlurProp,onFocusChange:onFocusChange}=props;const onBlur=(0,react.useCallback)((e=>{if(e.target===e.currentTarget)return onBlurProp&&onBlurProp(e),onFocusChange&&onFocusChange(!1),!0}),[onBlurProp,onFocusChange]),onSyntheticFocus=$8a9cb279dc87e130$export$715c682d09d639cc(onBlur),onFocus=(0,react.useCallback)((e=>{e.target===e.currentTarget&&(onFocusProp&&onFocusProp(e),onFocusChange&&onFocusChange(!0),onSyntheticFocus(e))}),[onFocusChange,onFocusProp,onSyntheticFocus]);return{focusProps:{onFocus:!isDisabled&&(onFocusProp||onFocusChange||onBlurProp)?onFocus:void 0,onBlur:isDisabled||!onBlurProp&&!onFocusChange?null:onBlur}}}$parcel$export({},"useFocus",(()=>$a1ea59d68270f0dd$export$f8168d8dd8fd66e6));var $507fabe10e71c6fb$exports={};$parcel$export($507fabe10e71c6fb$exports,"isFocusVisible",(()=>$507fabe10e71c6fb$export$b9b3dfddab17db27)),$parcel$export($507fabe10e71c6fb$exports,"getInteractionModality",(()=>$507fabe10e71c6fb$export$630ff653c5ada6a9)),$parcel$export($507fabe10e71c6fb$exports,"setInteractionModality",(()=>$507fabe10e71c6fb$export$8397ddfc504fdb9a)),$parcel$export($507fabe10e71c6fb$exports,"useInteractionModality",(()=>$507fabe10e71c6fb$export$98e20ec92f614cfe)),$parcel$export($507fabe10e71c6fb$exports,"useFocusVisible",(()=>$507fabe10e71c6fb$export$ffd9e5021c1fb2d6)),$parcel$export($507fabe10e71c6fb$exports,"useFocusVisibleListener",(()=>$507fabe10e71c6fb$export$ec71b4b83ac08ec3));let $507fabe10e71c6fb$var$currentModality=null,$507fabe10e71c6fb$var$changeHandlers=new Set,$507fabe10e71c6fb$var$hasSetupGlobalListeners=!1,$507fabe10e71c6fb$var$hasEventBeforeFocus=!1,$507fabe10e71c6fb$var$hasBlurredWindowRecently=!1;const $507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS={Tab:!0,Escape:!0};function $507fabe10e71c6fb$var$triggerChangeHandlers(modality,e){for(let handler of $507fabe10e71c6fb$var$changeHandlers)handler(modality,e)}function $507fabe10e71c6fb$var$handleKeyboardEvent(e){$507fabe10e71c6fb$var$hasEventBeforeFocus=!0,function $507fabe10e71c6fb$var$isValidKey(e){return!(e.metaKey||!(0,dist_module.V5)()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&($507fabe10e71c6fb$var$currentModality="keyboard",$507fabe10e71c6fb$var$triggerChangeHandlers("keyboard",e))}function $507fabe10e71c6fb$var$handlePointerEvent(e){$507fabe10e71c6fb$var$currentModality="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||($507fabe10e71c6fb$var$hasEventBeforeFocus=!0,$507fabe10e71c6fb$var$triggerChangeHandlers("pointer",e))}function $507fabe10e71c6fb$var$handleClickEvent(e){$8a9cb279dc87e130$export$60278871457622de(e)&&($507fabe10e71c6fb$var$hasEventBeforeFocus=!0,$507fabe10e71c6fb$var$currentModality="virtual")}function $507fabe10e71c6fb$var$handleFocusEvent(e){e.target!==window&&e.target!==document&&($507fabe10e71c6fb$var$hasEventBeforeFocus||$507fabe10e71c6fb$var$hasBlurredWindowRecently||($507fabe10e71c6fb$var$currentModality="virtual",$507fabe10e71c6fb$var$triggerChangeHandlers("virtual",e)),$507fabe10e71c6fb$var$hasEventBeforeFocus=!1,$507fabe10e71c6fb$var$hasBlurredWindowRecently=!1)}function $507fabe10e71c6fb$var$handleWindowBlur(){$507fabe10e71c6fb$var$hasEventBeforeFocus=!1,$507fabe10e71c6fb$var$hasBlurredWindowRecently=!0}function $507fabe10e71c6fb$var$setupGlobalFocusEvents(){if("undefined"==typeof window||$507fabe10e71c6fb$var$hasSetupGlobalListeners)return;let focus=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){$507fabe10e71c6fb$var$hasEventBeforeFocus=!0,focus.apply(this,arguments)},document.addEventListener("keydown",$507fabe10e71c6fb$var$handleKeyboardEvent,!0),document.addEventListener("keyup",$507fabe10e71c6fb$var$handleKeyboardEvent,!0),document.addEventListener("click",$507fabe10e71c6fb$var$handleClickEvent,!0),window.addEventListener("focus",$507fabe10e71c6fb$var$handleFocusEvent,!0),window.addEventListener("blur",$507fabe10e71c6fb$var$handleWindowBlur,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",$507fabe10e71c6fb$var$handlePointerEvent,!0),document.addEventListener("pointermove",$507fabe10e71c6fb$var$handlePointerEvent,!0),document.addEventListener("pointerup",$507fabe10e71c6fb$var$handlePointerEvent,!0)):(document.addEventListener("mousedown",$507fabe10e71c6fb$var$handlePointerEvent,!0),document.addEventListener("mousemove",$507fabe10e71c6fb$var$handlePointerEvent,!0),document.addEventListener("mouseup",$507fabe10e71c6fb$var$handlePointerEvent,!0)),$507fabe10e71c6fb$var$hasSetupGlobalListeners=!0}function $507fabe10e71c6fb$export$b9b3dfddab17db27(){return"pointer"!==$507fabe10e71c6fb$var$currentModality}function $507fabe10e71c6fb$export$630ff653c5ada6a9(){return $507fabe10e71c6fb$var$currentModality}function $507fabe10e71c6fb$export$8397ddfc504fdb9a(modality){$507fabe10e71c6fb$var$currentModality=modality,$507fabe10e71c6fb$var$triggerChangeHandlers(modality,null)}function $507fabe10e71c6fb$export$98e20ec92f614cfe(){$507fabe10e71c6fb$var$setupGlobalFocusEvents();let[modality,setModality]=(0,react.useState)($507fabe10e71c6fb$var$currentModality);return(0,react.useEffect)((()=>{let handler=()=>{setModality($507fabe10e71c6fb$var$currentModality)};return $507fabe10e71c6fb$var$changeHandlers.add(handler),()=>{$507fabe10e71c6fb$var$changeHandlers.delete(handler)}}),[]),modality}function $507fabe10e71c6fb$export$ffd9e5021c1fb2d6(props={}){let{isTextInput:isTextInput,autoFocus:autoFocus}=props,[isFocusVisibleState,setFocusVisible]=(0,react.useState)(autoFocus||$507fabe10e71c6fb$export$b9b3dfddab17db27());return $507fabe10e71c6fb$export$ec71b4b83ac08ec3(($507fabe10e71c6fb$export$b9b3dfddab17db27=>{setFocusVisible($507fabe10e71c6fb$export$b9b3dfddab17db27)}),[isTextInput],{isTextInput:isTextInput}),{isFocusVisible:isFocusVisibleState}}function $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn,deps,opts){$507fabe10e71c6fb$var$setupGlobalFocusEvents(),(0,react.useEffect)((()=>{let handler=(modality,e)=>{(function $507fabe10e71c6fb$var$isKeyboardFocusEvent(isTextInput,modality,e){return!(isTextInput&&"keyboard"===modality&&e instanceof KeyboardEvent&&!$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS[e.key])})(null==opts?void 0:opts.isTextInput,modality,e)&&fn($507fabe10e71c6fb$export$b9b3dfddab17db27())};return $507fabe10e71c6fb$var$changeHandlers.add(handler),()=>{$507fabe10e71c6fb$var$changeHandlers.delete(handler)}}),deps)}"undefined"!=typeof document&&("loading"!==document.readyState?$507fabe10e71c6fb$var$setupGlobalFocusEvents():document.addEventListener("DOMContentLoaded",$507fabe10e71c6fb$var$setupGlobalFocusEvents));function $9ab94262bd0047c7$export$420e68273165f4ec(props){let{isDisabled:isDisabled,onBlurWithin:onBlurWithin,onFocusWithin:onFocusWithin,onFocusWithinChange:onFocusWithinChange}=props,state=(0,react.useRef)({isFocusWithin:!1}),onBlur=(0,react.useCallback)((e=>{state.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(state.current.isFocusWithin=!1,onBlurWithin&&onBlurWithin(e),onFocusWithinChange&&onFocusWithinChange(!1))}),[onBlurWithin,onFocusWithinChange,state]),onSyntheticFocus=$8a9cb279dc87e130$export$715c682d09d639cc(onBlur),onFocus=(0,react.useCallback)((e=>{state.current.isFocusWithin||(onFocusWithin&&onFocusWithin(e),onFocusWithinChange&&onFocusWithinChange(!0),state.current.isFocusWithin=!0,onSyntheticFocus(e))}),[onFocusWithin,onFocusWithinChange,onSyntheticFocus]);return isDisabled?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:onFocus,onBlur:onBlur}}}$parcel$export({},"useFocusWithin",(()=>$9ab94262bd0047c7$export$420e68273165f4ec));$parcel$export({},"useHover",(()=>$6179b936705e76d3$export$ae780daf29e6d456));let $6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents=!1,$6179b936705e76d3$var$hoverCount=0;function $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents(){$6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents=!0,setTimeout((()=>{$6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents=!1}),50)}function $6179b936705e76d3$var$handleGlobalPointerEvent(e){"touch"===e.pointerType&&$6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents()}function $6179b936705e76d3$var$setupGlobalTouchEvents(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",$6179b936705e76d3$var$handleGlobalPointerEvent):document.addEventListener("touchend",$6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents),$6179b936705e76d3$var$hoverCount++,()=>{$6179b936705e76d3$var$hoverCount--,$6179b936705e76d3$var$hoverCount>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",$6179b936705e76d3$var$handleGlobalPointerEvent):document.removeEventListener("touchend",$6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents))}}function $6179b936705e76d3$export$ae780daf29e6d456(props){let{onHoverStart:onHoverStart,onHoverChange:onHoverChange,onHoverEnd:onHoverEnd,isDisabled:isDisabled}=props,[isHovered,setHovered]=(0,react.useState)(!1),state=(0,react.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,react.useEffect)($6179b936705e76d3$var$setupGlobalTouchEvents,[]);let{hoverProps:hoverProps1,triggerHoverEnd:triggerHoverEnd1}=(0,react.useMemo)((()=>{let triggerHoverStart=(event,pointerType)=>{if(state.pointerType=pointerType,isDisabled||"touch"===pointerType||state.isHovered||!event.currentTarget.contains(event.target))return;state.isHovered=!0;let target=event.currentTarget;state.target=target,onHoverStart&&onHoverStart({type:"hoverstart",target:target,pointerType:pointerType}),onHoverChange&&onHoverChange(!0),setHovered(!0)},triggerHoverEnd=(event,pointerType)=>{if(state.pointerType="",state.target=null,"touch"===pointerType||!state.isHovered)return;state.isHovered=!1;let target=event.currentTarget;onHoverEnd&&onHoverEnd({type:"hoverend",target:target,pointerType:pointerType}),onHoverChange&&onHoverChange(!1),setHovered(!1)},hoverProps={};return"undefined"!=typeof PointerEvent?(hoverProps.onPointerEnter=e=>{$6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents&&"mouse"===e.pointerType||triggerHoverStart(e,e.pointerType)},hoverProps.onPointerLeave=e=>{!isDisabled&&e.currentTarget.contains(e.target)&&triggerHoverEnd(e,e.pointerType)}):(hoverProps.onTouchStart=()=>{state.ignoreEmulatedMouseEvents=!0},hoverProps.onMouseEnter=e=>{state.ignoreEmulatedMouseEvents||$6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents||triggerHoverStart(e,"mouse"),state.ignoreEmulatedMouseEvents=!1},hoverProps.onMouseLeave=e=>{!isDisabled&&e.currentTarget.contains(e.target)&&triggerHoverEnd(e,"mouse")}),{hoverProps:hoverProps,triggerHoverEnd:triggerHoverEnd}}),[onHoverStart,onHoverChange,onHoverEnd,isDisabled,state]);return(0,react.useEffect)((()=>{isDisabled&&triggerHoverEnd1({currentTarget:state.target},state.pointerType)}),[isDisabled]),{hoverProps:hoverProps1,isHovered:isHovered}}function $e0b6e0b68ec7f50f$export$872b660ac5a1ff98(props){let{ref:ref,onInteractOutside:onInteractOutside,isDisabled:isDisabled,onInteractOutsideStart:onInteractOutsideStart}=props,state=(0,react.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1,onInteractOutside:onInteractOutside,onInteractOutsideStart:onInteractOutsideStart}).current;state.onInteractOutside=onInteractOutside,state.onInteractOutsideStart=onInteractOutsideStart,(0,react.useEffect)((()=>{if(isDisabled)return;let onPointerDown=e=>{$e0b6e0b68ec7f50f$var$isValidEvent(e,ref)&&state.onInteractOutside&&(state.onInteractOutsideStart&&state.onInteractOutsideStart(e),state.isPointerDown=!0)};if("undefined"!=typeof PointerEvent){let onPointerUp=e=>{state.isPointerDown&&state.onInteractOutside&&$e0b6e0b68ec7f50f$var$isValidEvent(e,ref)&&(state.isPointerDown=!1,state.onInteractOutside(e))};return document.addEventListener("pointerdown",onPointerDown,!0),document.addEventListener("pointerup",onPointerUp,!0),()=>{document.removeEventListener("pointerdown",onPointerDown,!0),document.removeEventListener("pointerup",onPointerUp,!0)}}{let onMouseUp=e=>{state.ignoreEmulatedMouseEvents?state.ignoreEmulatedMouseEvents=!1:state.isPointerDown&&state.onInteractOutside&&$e0b6e0b68ec7f50f$var$isValidEvent(e,ref)&&(state.isPointerDown=!1,state.onInteractOutside(e))},onTouchEnd=e=>{state.ignoreEmulatedMouseEvents=!0,state.onInteractOutside&&state.isPointerDown&&$e0b6e0b68ec7f50f$var$isValidEvent(e,ref)&&(state.isPointerDown=!1,state.onInteractOutside(e))};return document.addEventListener("mousedown",onPointerDown,!0),document.addEventListener("mouseup",onMouseUp,!0),document.addEventListener("touchstart",onPointerDown,!0),document.addEventListener("touchend",onTouchEnd,!0),()=>{document.removeEventListener("mousedown",onPointerDown,!0),document.removeEventListener("mouseup",onMouseUp,!0),document.removeEventListener("touchstart",onPointerDown,!0),document.removeEventListener("touchend",onTouchEnd,!0)}}}),[ref,state,isDisabled])}function $e0b6e0b68ec7f50f$var$isValidEvent(event,ref){if(event.button>0)return!1;if(event.target){const ownerDocument=event.target.ownerDocument;if(!ownerDocument||!ownerDocument.documentElement.contains(event.target))return!1}return ref.current&&!ref.current.contains(event.target)}$parcel$export({},"useInteractOutside",(()=>$e0b6e0b68ec7f50f$export$872b660ac5a1ff98));function $93925083ecbb358c$export$48d1ea6320830260(handler){if(!handler)return;let shouldStopPropagation=!0;return e=>{let event={...e,preventDefault(){e.preventDefault()},isDefaultPrevented:()=>e.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){shouldStopPropagation=!1}};handler(event),shouldStopPropagation&&e.stopPropagation()}}function $46d819fcbaf35654$export$8f71654801c2f7cd(props){return{keyboardProps:props.isDisabled?{}:{onKeyDown:$93925083ecbb358c$export$48d1ea6320830260(props.onKeyDown),onKeyUp:$93925083ecbb358c$export$48d1ea6320830260(props.onKeyUp)}}}$parcel$export({},"useKeyboard",(()=>$46d819fcbaf35654$export$8f71654801c2f7cd));function $e8a7022cf87cba2a$export$36da96379f79f245(props){let{onMoveStart:onMoveStart,onMove:onMove,onMoveEnd:onMoveEnd}=props,state=(0,react.useRef)({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:addGlobalListener,removeGlobalListener:removeGlobalListener}=(0,dist_module.xi)();return{moveProps:(0,react.useMemo)((()=>{let moveProps={},start=()=>{$14c0b72509d70225$export$16a4697467175487(),state.current.didMove=!1},move=(originalEvent,pointerType,deltaX,deltaY)=>{0===deltaX&&0===deltaY||(state.current.didMove||(state.current.didMove=!0,null==onMoveStart||onMoveStart({type:"movestart",pointerType:pointerType,shiftKey:originalEvent.shiftKey,metaKey:originalEvent.metaKey,ctrlKey:originalEvent.ctrlKey,altKey:originalEvent.altKey})),onMove({type:"move",pointerType:pointerType,deltaX:deltaX,deltaY:deltaY,shiftKey:originalEvent.shiftKey,metaKey:originalEvent.metaKey,ctrlKey:originalEvent.ctrlKey,altKey:originalEvent.altKey}))},end=(originalEvent,pointerType)=>{$14c0b72509d70225$export$b0d6fa1ab32e3295(),state.current.didMove&&(null==onMoveEnd||onMoveEnd({type:"moveend",pointerType:pointerType,shiftKey:originalEvent.shiftKey,metaKey:originalEvent.metaKey,ctrlKey:originalEvent.ctrlKey,altKey:originalEvent.altKey}))};if("undefined"==typeof PointerEvent){let onMouseMove=e=>{0===e.button&&(move(e,"mouse",e.pageX-state.current.lastPosition.pageX,e.pageY-state.current.lastPosition.pageY),state.current.lastPosition={pageX:e.pageX,pageY:e.pageY})},onMouseUp=e=>{0===e.button&&(end(e,"mouse"),removeGlobalListener(window,"mousemove",onMouseMove,!1),removeGlobalListener(window,"mouseup",onMouseUp,!1))};moveProps.onMouseDown=e=>{0===e.button&&(start(),e.stopPropagation(),e.preventDefault(),state.current.lastPosition={pageX:e.pageX,pageY:e.pageY},addGlobalListener(window,"mousemove",onMouseMove,!1),addGlobalListener(window,"mouseup",onMouseUp,!1))};let onTouchMove=e=>{let touch=[...e.changedTouches].findIndex((({identifier:identifier})=>identifier===state.current.id));if(touch>=0){let{pageX:pageX,pageY:pageY}=e.changedTouches[touch];move(e,"touch",pageX-state.current.lastPosition.pageX,pageY-state.current.lastPosition.pageY),state.current.lastPosition={pageX:pageX,pageY:pageY}}},onTouchEnd=e=>{[...e.changedTouches].findIndex((({identifier:identifier})=>identifier===state.current.id))>=0&&(end(e,"touch"),state.current.id=null,removeGlobalListener(window,"touchmove",onTouchMove),removeGlobalListener(window,"touchend",onTouchEnd),removeGlobalListener(window,"touchcancel",onTouchEnd))};moveProps.onTouchStart=e=>{if(0===e.changedTouches.length||null!=state.current.id)return;let{pageX:pageX,pageY:pageY,identifier:identifier}=e.changedTouches[0];start(),e.stopPropagation(),e.preventDefault(),state.current.lastPosition={pageX:pageX,pageY:pageY},state.current.id=identifier,addGlobalListener(window,"touchmove",onTouchMove,!1),addGlobalListener(window,"touchend",onTouchEnd,!1),addGlobalListener(window,"touchcancel",onTouchEnd,!1)}}else{let onPointerMove=e=>{if(e.pointerId===state.current.id){let pointerType=e.pointerType||"mouse";move(e,pointerType,e.pageX-state.current.lastPosition.pageX,e.pageY-state.current.lastPosition.pageY),state.current.lastPosition={pageX:e.pageX,pageY:e.pageY}}},onPointerUp=e=>{if(e.pointerId===state.current.id){let pointerType=e.pointerType||"mouse";end(e,pointerType),state.current.id=null,removeGlobalListener(window,"pointermove",onPointerMove,!1),removeGlobalListener(window,"pointerup",onPointerUp,!1),removeGlobalListener(window,"pointercancel",onPointerUp,!1)}};moveProps.onPointerDown=e=>{0===e.button&&null==state.current.id&&(start(),e.stopPropagation(),e.preventDefault(),state.current.lastPosition={pageX:e.pageX,pageY:e.pageY},state.current.id=e.pointerId,addGlobalListener(window,"pointermove",onPointerMove,!1),addGlobalListener(window,"pointerup",onPointerUp,!1),addGlobalListener(window,"pointercancel",onPointerUp,!1))}}let triggerKeyboardMove=(e,deltaX,deltaY)=>{start(),move(e,"keyboard",deltaX,deltaY),end(e,"keyboard")};return moveProps.onKeyDown=e=>{switch(e.key){case"Left":case"ArrowLeft":e.preventDefault(),e.stopPropagation(),triggerKeyboardMove(e,-1,0);break;case"Right":case"ArrowRight":e.preventDefault(),e.stopPropagation(),triggerKeyboardMove(e,1,0);break;case"Up":case"ArrowUp":e.preventDefault(),e.stopPropagation(),triggerKeyboardMove(e,0,-1);break;case"Down":case"ArrowDown":e.preventDefault(),e.stopPropagation(),triggerKeyboardMove(e,0,1)}},moveProps}),[state,onMoveStart,onMove,onMoveEnd,addGlobalListener,removeGlobalListener])}}$parcel$export({},"useMove",(()=>$e8a7022cf87cba2a$export$36da96379f79f245));function $7d0a636d7a4dcefd$export$2123ff2b87c81ca(props,ref){let{onScroll:onScroll,isDisabled:isDisabled}=props,onScrollHandler=(0,react.useCallback)((e=>{e.ctrlKey||(e.preventDefault(),e.stopPropagation(),onScroll&&onScroll({deltaX:e.deltaX,deltaY:e.deltaY}))}),[onScroll]);(0,dist_module.zX)(ref,"wheel",isDisabled?null:onScrollHandler)}$parcel$export({},"useScrollWheel",(()=>$7d0a636d7a4dcefd$export$2123ff2b87c81ca));$parcel$export({},"useLongPress",(()=>$8a26561d2877236e$export$c24ed0104d07eab9));const $8a26561d2877236e$var$DEFAULT_THRESHOLD=500;function $8a26561d2877236e$export$c24ed0104d07eab9(props){let{isDisabled:isDisabled,onLongPressStart:onLongPressStart,onLongPressEnd:onLongPressEnd,onLongPress:onLongPress,threshold:threshold=$8a26561d2877236e$var$DEFAULT_THRESHOLD,accessibilityDescription:accessibilityDescription}=props;const timeRef=(0,react.useRef)(null);let{addGlobalListener:addGlobalListener,removeGlobalListener:removeGlobalListener}=(0,dist_module.xi)(),{pressProps:pressProps}=$f6c31cce2adf654f$export$45712eceda6fad21({isDisabled:isDisabled,onPressStart(e1){if(("mouse"===e1.pointerType||"touch"===e1.pointerType)&&(onLongPressStart&&onLongPressStart({...e1,type:"longpressstart"}),timeRef.current=setTimeout((()=>{e1.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),onLongPress&&onLongPress({...e1,type:"longpress"}),timeRef.current=null}),threshold),"touch"===e1.pointerType)){let onContextMenu=e=>{e.preventDefault()};addGlobalListener(e1.target,"contextmenu",onContextMenu,{once:!0}),addGlobalListener(window,"pointerup",(()=>{setTimeout((()=>{removeGlobalListener(e1.target,"contextmenu",onContextMenu)}),30)}),{once:!0})}},onPressEnd(e){timeRef.current&&clearTimeout(timeRef.current),!onLongPressEnd||"mouse"!==e.pointerType&&"touch"!==e.pointerType||onLongPressEnd({...e,type:"longpressend"})}}),descriptionProps=(0,dist_module.PK)(onLongPress&&!isDisabled?accessibilityDescription:null);return{longPressProps:(0,dist_module.dG)(pressProps,descriptionProps)}}var clsx_m=__webpack_require__("./node_modules/clsx/dist/clsx.m.js");function module_$parcel$export(e,n,v,s){Object.defineProperty(e,n,{get:v,set:s,enumerable:!0,configurable:!0})}var $9bf71ea28793e738$exports={};module_$parcel$export($9bf71ea28793e738$exports,"FocusScope",(()=>$9bf71ea28793e738$export$20e40289641fbbb6)),module_$parcel$export($9bf71ea28793e738$exports,"useFocusManager",(()=>$9bf71ea28793e738$export$10c5169755ce7bd7)),module_$parcel$export($9bf71ea28793e738$exports,"getFocusableTreeWalker",(()=>$9bf71ea28793e738$export$2d6ec8fc375ceafa)),module_$parcel$export($9bf71ea28793e738$exports,"createFocusManager",(()=>$9bf71ea28793e738$export$c5251b9e124bf29));function $6a99195332edec8b$export$80f3e147d781571c(element){if("virtual"===$507fabe10e71c6fb$export$630ff653c5ada6a9()){let lastFocusedElement=document.activeElement;(0,dist_module.QB)((()=>{document.activeElement===lastFocusedElement&&document.contains(element)&&(0,dist_module.Ao)(element)}))}else(0,dist_module.Ao)(element)}function $645f2e67b85a24c9$export$e989c0fffaa6b27a(element,childElement){return"#comment"!==element.nodeName&&function $645f2e67b85a24c9$var$isStyleVisible(element){if(!(element instanceof HTMLElement||element instanceof SVGElement))return!1;let{display:display,visibility:visibility}=element.style,isVisible="none"!==display&&"hidden"!==visibility&&"collapse"!==visibility;if(isVisible){const{getComputedStyle:getComputedStyle}=element.ownerDocument.defaultView;let{display:computedDisplay,visibility:computedVisibility}=getComputedStyle(element);isVisible="none"!==computedDisplay&&"hidden"!==computedVisibility&&"collapse"!==computedVisibility}return isVisible}(element)&&function $645f2e67b85a24c9$var$isAttributeVisible(element,childElement){return!element.hasAttribute("hidden")&&("DETAILS"!==element.nodeName||!childElement||"SUMMARY"===childElement.nodeName||element.hasAttribute("open"))}(element,childElement)&&(!element.parentElement||$645f2e67b85a24c9$export$e989c0fffaa6b27a(element.parentElement,element))}module_$parcel$export({},"focusSafely",(()=>$6a99195332edec8b$export$80f3e147d781571c));const $9bf71ea28793e738$var$FocusContext=react.createContext(null);let $9bf71ea28793e738$var$activeScope=null,$9bf71ea28793e738$var$scopes=new Map;function $9bf71ea28793e738$export$20e40289641fbbb6(props){let{children:children,contain:contain,restoreFocus:restoreFocus,autoFocus:autoFocus}=props,startRef=(0,react.useRef)(),endRef=(0,react.useRef)(),scopeRef=(0,react.useRef)([]),ctx=(0,react.useContext)($9bf71ea28793e738$var$FocusContext),parentScope=null==ctx?void 0:ctx.scopeRef;(0,dist_module.bt)((()=>{let node=startRef.current.nextSibling,nodes=[];for(;node&&node!==endRef.current;)nodes.push(node),node=node.nextSibling;scopeRef.current=nodes}),[children,parentScope]),(0,dist_module.bt)((()=>($9bf71ea28793e738$var$scopes.set(scopeRef,parentScope),()=>{scopeRef!==$9bf71ea28793e738$var$activeScope&&!$9bf71ea28793e738$var$isAncestorScope(scopeRef,$9bf71ea28793e738$var$activeScope)||parentScope&&!$9bf71ea28793e738$var$scopes.has(parentScope)||($9bf71ea28793e738$var$activeScope=parentScope),$9bf71ea28793e738$var$scopes.delete(scopeRef)})),[scopeRef,parentScope]),function $9bf71ea28793e738$var$useFocusContainment(scopeRef,contain){let focusedNode=(0,react.useRef)(),raf=(0,react.useRef)(null);(0,dist_module.bt)((()=>{let scope1=scopeRef.current;if(!contain)return;let onKeyDown=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||scopeRef!==$9bf71ea28793e738$var$activeScope)return;let focusedElement=document.activeElement,scope=scopeRef.current;if(!$9bf71ea28793e738$var$isElementInScope(focusedElement,scope))return;let walker=$9bf71ea28793e738$export$2d6ec8fc375ceafa($9bf71ea28793e738$var$getScopeRoot(scope),{tabbable:!0},scope);walker.currentNode=focusedElement;let nextElement=e.shiftKey?walker.previousNode():walker.nextNode();nextElement||(walker.currentNode=e.shiftKey?scope[scope.length-1].nextElementSibling:scope[0].previousElementSibling,nextElement=e.shiftKey?walker.previousNode():walker.nextNode()),e.preventDefault(),nextElement&&$9bf71ea28793e738$var$focusElement(nextElement,!0)},onFocus=e=>{!$9bf71ea28793e738$var$activeScope||$9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope,scopeRef)?($9bf71ea28793e738$var$activeScope=scopeRef,focusedNode.current=e.target):scopeRef!==$9bf71ea28793e738$var$activeScope||$9bf71ea28793e738$var$isElementInChildScope(e.target,scopeRef)?scopeRef===$9bf71ea28793e738$var$activeScope&&(focusedNode.current=e.target):focusedNode.current?focusedNode.current.focus():$9bf71ea28793e738$var$activeScope&&$9bf71ea28793e738$var$focusFirstInScope($9bf71ea28793e738$var$activeScope.current)},onBlur=e=>{raf.current=requestAnimationFrame((()=>{scopeRef!==$9bf71ea28793e738$var$activeScope||$9bf71ea28793e738$var$isElementInChildScope(document.activeElement,scopeRef)||($9bf71ea28793e738$var$activeScope=scopeRef,focusedNode.current=e.target,focusedNode.current.focus())}))};return document.addEventListener("keydown",onKeyDown,!1),document.addEventListener("focusin",onFocus,!1),scope1.forEach((element=>element.addEventListener("focusin",onFocus,!1))),scope1.forEach((element=>element.addEventListener("focusout",onBlur,!1))),()=>{document.removeEventListener("keydown",onKeyDown,!1),document.removeEventListener("focusin",onFocus,!1),scope1.forEach((element=>element.removeEventListener("focusin",onFocus,!1))),scope1.forEach((element=>element.removeEventListener("focusout",onBlur,!1)))}}),[scopeRef,contain]),(0,react.useEffect)((()=>()=>cancelAnimationFrame(raf.current)),[raf])}(scopeRef,contain),function $9bf71ea28793e738$var$useRestoreFocus(scopeRef,restoreFocus,contain){const nodeToRestoreRef=(0,react.useRef)("undefined"!=typeof document?document.activeElement:null);(0,dist_module.bt)((()=>{let nodeToRestore=nodeToRestoreRef.current;if(!restoreFocus)return;let onKeyDown=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey)return;let focusedElement=document.activeElement;if(!$9bf71ea28793e738$var$isElementInScope(focusedElement,scopeRef.current))return;let walker=$9bf71ea28793e738$export$2d6ec8fc375ceafa(document.body,{tabbable:!0});walker.currentNode=focusedElement;let nextElement=e.shiftKey?walker.previousNode():walker.nextNode();if(document.body.contains(nodeToRestore)&&nodeToRestore!==document.body||(nodeToRestore=null),(!nextElement||!$9bf71ea28793e738$var$isElementInScope(nextElement,scopeRef.current))&&nodeToRestore){walker.currentNode=nodeToRestore;do{nextElement=e.shiftKey?walker.previousNode():walker.nextNode()}while($9bf71ea28793e738$var$isElementInScope(nextElement,scopeRef.current));e.preventDefault(),e.stopPropagation(),nextElement?$9bf71ea28793e738$var$focusElement(nextElement,!0):!function $9bf71ea28793e738$var$isElementInAnyScope(element){for(let scope of $9bf71ea28793e738$var$scopes.keys())if($9bf71ea28793e738$var$isElementInScope(element,scope.current))return!0;return!1}(nodeToRestore)?focusedElement.blur():$9bf71ea28793e738$var$focusElement(nodeToRestore,!0)}};return contain||document.addEventListener("keydown",onKeyDown,!0),()=>{contain||document.removeEventListener("keydown",onKeyDown,!0),restoreFocus&&nodeToRestore&&$9bf71ea28793e738$var$isElementInScope(document.activeElement,scopeRef.current)&&requestAnimationFrame((()=>{document.body.contains(nodeToRestore)&&$9bf71ea28793e738$var$focusElement(nodeToRestore)}))}}),[scopeRef,restoreFocus,contain])}(scopeRef,restoreFocus,contain),function $9bf71ea28793e738$var$useAutoFocus(scopeRef,autoFocus){const autoFocusRef=react.useRef(autoFocus);(0,react.useEffect)((()=>{autoFocusRef.current&&($9bf71ea28793e738$var$activeScope=scopeRef,$9bf71ea28793e738$var$isElementInScope(document.activeElement,$9bf71ea28793e738$var$activeScope.current)||$9bf71ea28793e738$var$focusFirstInScope(scopeRef.current)),autoFocusRef.current=!1}),[])}(scopeRef,autoFocus);let focusManager=function $9bf71ea28793e738$var$createFocusManagerForScope(scopeRef){return{focusNext(opts={}){let scope=scopeRef.current,{from:from,tabbable:tabbable,wrap:wrap}=opts,node=from||document.activeElement,sentinel=scope[0].previousElementSibling,walker=$9bf71ea28793e738$export$2d6ec8fc375ceafa($9bf71ea28793e738$var$getScopeRoot(scope),{tabbable:tabbable},scope);walker.currentNode=$9bf71ea28793e738$var$isElementInScope(node,scope)?node:sentinel;let nextNode=walker.nextNode();return!nextNode&&wrap&&(walker.currentNode=sentinel,nextNode=walker.nextNode()),nextNode&&$9bf71ea28793e738$var$focusElement(nextNode,!0),nextNode},focusPrevious(opts={}){let scope=scopeRef.current,{from:from,tabbable:tabbable,wrap:wrap}=opts,node=from||document.activeElement,sentinel=scope[scope.length-1].nextElementSibling,walker=$9bf71ea28793e738$export$2d6ec8fc375ceafa($9bf71ea28793e738$var$getScopeRoot(scope),{tabbable:tabbable},scope);walker.currentNode=$9bf71ea28793e738$var$isElementInScope(node,scope)?node:sentinel;let previousNode=walker.previousNode();return!previousNode&&wrap&&(walker.currentNode=sentinel,previousNode=walker.previousNode()),previousNode&&$9bf71ea28793e738$var$focusElement(previousNode,!0),previousNode},focusFirst(opts={}){let scope=scopeRef.current,{tabbable:tabbable}=opts,walker=$9bf71ea28793e738$export$2d6ec8fc375ceafa($9bf71ea28793e738$var$getScopeRoot(scope),{tabbable:tabbable},scope);walker.currentNode=scope[0].previousElementSibling;let nextNode=walker.nextNode();return nextNode&&$9bf71ea28793e738$var$focusElement(nextNode,!0),nextNode},focusLast(opts={}){let scope=scopeRef.current,{tabbable:tabbable}=opts,walker=$9bf71ea28793e738$export$2d6ec8fc375ceafa($9bf71ea28793e738$var$getScopeRoot(scope),{tabbable:tabbable},scope);walker.currentNode=scope[scope.length-1].nextElementSibling;let previousNode=walker.previousNode();return previousNode&&$9bf71ea28793e738$var$focusElement(previousNode,!0),previousNode}}}(scopeRef);return react.createElement($9bf71ea28793e738$var$FocusContext.Provider,{value:{scopeRef:scopeRef,focusManager:focusManager}},react.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:startRef}),children,react.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:endRef}))}function $9bf71ea28793e738$export$10c5169755ce7bd7(){var ref;return null===(ref=(0,react.useContext)($9bf71ea28793e738$var$FocusContext))||void 0===ref?void 0:ref.focusManager}const $9bf71ea28793e738$var$focusableElements=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],$9bf71ea28793e738$var$FOCUSABLE_ELEMENT_SELECTOR=$9bf71ea28793e738$var$focusableElements.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";$9bf71ea28793e738$var$focusableElements.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const $9bf71ea28793e738$var$TABBABLE_ELEMENT_SELECTOR=$9bf71ea28793e738$var$focusableElements.join(':not([hidden]):not([tabindex="-1"]),');function $9bf71ea28793e738$var$getScopeRoot(scope){return scope[0].parentElement}function $9bf71ea28793e738$var$isElementInScope(element,scope){return scope.some((node=>node.contains(element)))}function $9bf71ea28793e738$var$isElementInChildScope(element,scope){for(let s of $9bf71ea28793e738$var$scopes.keys())if((s===scope||$9bf71ea28793e738$var$isAncestorScope(scope,s))&&$9bf71ea28793e738$var$isElementInScope(element,s.current))return!0;return!1}function $9bf71ea28793e738$var$isAncestorScope(ancestor,scope){let parent=$9bf71ea28793e738$var$scopes.get(scope);return!!parent&&(parent===ancestor||$9bf71ea28793e738$var$isAncestorScope(ancestor,parent))}function $9bf71ea28793e738$var$focusElement(element,scroll=!1){if(null==element||scroll){if(null!=element)try{element.focus()}catch(err1){}}else try{$6a99195332edec8b$export$80f3e147d781571c(element)}catch(err){}}function $9bf71ea28793e738$var$focusFirstInScope(scope){let sentinel=scope[0].previousElementSibling,walker=$9bf71ea28793e738$export$2d6ec8fc375ceafa($9bf71ea28793e738$var$getScopeRoot(scope),{tabbable:!0},scope);walker.currentNode=sentinel,$9bf71ea28793e738$var$focusElement(walker.nextNode())}function $9bf71ea28793e738$export$2d6ec8fc375ceafa(root,opts,scope){let selector=(null==opts?void 0:opts.tabbable)?$9bf71ea28793e738$var$TABBABLE_ELEMENT_SELECTOR:$9bf71ea28793e738$var$FOCUSABLE_ELEMENT_SELECTOR,walker=document.createTreeWalker(root,NodeFilter.SHOW_ELEMENT,{acceptNode(node){var ref;return(null==opts||null===(ref=opts.from)||void 0===ref?void 0:ref.contains(node))?NodeFilter.FILTER_REJECT:!node.matches(selector)||!$645f2e67b85a24c9$export$e989c0fffaa6b27a(node)||scope&&!$9bf71ea28793e738$var$isElementInScope(node,scope)||(null==opts?void 0:opts.accept)&&!opts.accept(node)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});return(null==opts?void 0:opts.from)&&(walker.currentNode=opts.from),walker}function $9bf71ea28793e738$export$c5251b9e124bf29(ref,defaultOptions={}){return{focusNext(opts={}){let root=ref.current;if(!root)return;let{from:from,tabbable:tabbable=defaultOptions.tabbable,wrap:wrap=defaultOptions.wrap,accept:accept=defaultOptions.accept}=opts,node=from||document.activeElement,walker=$9bf71ea28793e738$export$2d6ec8fc375ceafa(root,{tabbable:tabbable,accept:accept});root.contains(node)&&(walker.currentNode=node);let nextNode=walker.nextNode();return!nextNode&&wrap&&(walker.currentNode=root,nextNode=walker.nextNode()),nextNode&&$9bf71ea28793e738$var$focusElement(nextNode,!0),nextNode},focusPrevious(opts=defaultOptions){let root=ref.current;if(!root)return;let{from:from,tabbable:tabbable=defaultOptions.tabbable,wrap:wrap=defaultOptions.wrap,accept:accept=defaultOptions.accept}=opts,node=from||document.activeElement,walker=$9bf71ea28793e738$export$2d6ec8fc375ceafa(root,{tabbable:tabbable,accept:accept});if(!root.contains(node)){let next=$9bf71ea28793e738$var$last(walker);return next&&$9bf71ea28793e738$var$focusElement(next,!0),next}walker.currentNode=node;let previousNode=walker.previousNode();return!previousNode&&wrap&&(walker.currentNode=root,previousNode=$9bf71ea28793e738$var$last(walker)),previousNode&&$9bf71ea28793e738$var$focusElement(previousNode,!0),previousNode},focusFirst(opts=defaultOptions){let root=ref.current;if(!root)return;let{tabbable:tabbable=defaultOptions.tabbable,accept:accept=defaultOptions.accept}=opts,nextNode=$9bf71ea28793e738$export$2d6ec8fc375ceafa(root,{tabbable:tabbable,accept:accept}).nextNode();return nextNode&&$9bf71ea28793e738$var$focusElement(nextNode,!0),nextNode},focusLast(opts=defaultOptions){let root=ref.current;if(!root)return;let{tabbable:tabbable=defaultOptions.tabbable,accept:accept=defaultOptions.accept}=opts,next=$9bf71ea28793e738$var$last($9bf71ea28793e738$export$2d6ec8fc375ceafa(root,{tabbable:tabbable,accept:accept}));return next&&$9bf71ea28793e738$var$focusElement(next,!0),next}}}function $9bf71ea28793e738$var$last(walker){let next,last;do{last=walker.lastChild(),last&&(next=last)}while(last);return next}module_$parcel$export({},"FocusRing",(()=>$907718708eab68af$export$1a38b4ad7f578e1d));function $f7dceffc5ad7768b$export$4e328f61c538687f(props={}){let{autoFocus:autoFocus=!1,isTextInput:isTextInput,within:within}=props,state=(0,react.useRef)({isFocused:!1,isFocusVisible:autoFocus||$507fabe10e71c6fb$export$b9b3dfddab17db27()}),[isFocused1,setFocused]=(0,react.useState)(!1),[isFocusVisibleState,setFocusVisible]=(0,react.useState)((()=>state.current.isFocused&&state.current.isFocusVisible)),updateState=(0,react.useCallback)((()=>setFocusVisible(state.current.isFocused&&state.current.isFocusVisible)),[]),onFocusChange=(0,react.useCallback)((isFocused=>{state.current.isFocused=isFocused,setFocused(isFocused),updateState()}),[updateState]);$507fabe10e71c6fb$export$ec71b4b83ac08ec3((isFocusVisible=>{state.current.isFocusVisible=isFocusVisible,updateState()}),[],{isTextInput:isTextInput});let{focusProps:focusProps}=$a1ea59d68270f0dd$export$f8168d8dd8fd66e6({isDisabled:within,onFocusChange:onFocusChange}),{focusWithinProps:focusWithinProps}=$9ab94262bd0047c7$export$420e68273165f4ec({isDisabled:!within,onFocusWithinChange:onFocusChange});return{isFocused:isFocused1,isFocusVisible:state.current.isFocused&&isFocusVisibleState,focusProps:within?focusWithinProps:focusProps}}function $907718708eab68af$export$1a38b4ad7f578e1d(props){let{children:children,focusClass:focusClass,focusRingClass:focusRingClass}=props,{isFocused:isFocused,isFocusVisible:isFocusVisible,focusProps:focusProps}=$f7dceffc5ad7768b$export$4e328f61c538687f(props),child=react.Children.only(children);return react.cloneElement(child,(0,dist_module.dG)(child.props,{...focusProps,className:(0,clsx_m.Z)({[focusClass||""]:isFocused,[focusRingClass||""]:isFocusVisible})}))}module_$parcel$export({},"useFocusRing",(()=>$f7dceffc5ad7768b$export$4e328f61c538687f));var $e6afbd83fe6ebbd2$exports={};module_$parcel$export($e6afbd83fe6ebbd2$exports,"FocusableProvider",(()=>$e6afbd83fe6ebbd2$export$13f3202a3e5ddd5)),module_$parcel$export($e6afbd83fe6ebbd2$exports,"useFocusable",(()=>$e6afbd83fe6ebbd2$export$4c014de7c8940b4c));let $e6afbd83fe6ebbd2$var$FocusableContext=react.createContext(null);function $e6afbd83fe6ebbd2$var$FocusableProvider(props,ref){let{children:children,...otherProps}=props,context={...otherProps,ref:ref};return react.createElement($e6afbd83fe6ebbd2$var$FocusableContext.Provider,{value:context},children)}let $e6afbd83fe6ebbd2$export$13f3202a3e5ddd5=react.forwardRef($e6afbd83fe6ebbd2$var$FocusableProvider);function $e6afbd83fe6ebbd2$export$4c014de7c8940b4c(props,domRef){let{focusProps:focusProps}=$a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props),{keyboardProps:keyboardProps}=$46d819fcbaf35654$export$8f71654801c2f7cd(props),interactions=(0,dist_module.dG)(focusProps,keyboardProps),domProps=function $e6afbd83fe6ebbd2$var$useFocusableContext(ref){let context=(0,react.useContext)($e6afbd83fe6ebbd2$var$FocusableContext)||{};(0,dist_module.lE)(context,ref);let{ref:_,...otherProps}=context;return otherProps}(domRef),interactionProps=props.isDisabled?{}:domProps,autoFocusRef=(0,react.useRef)(props.autoFocus);return(0,react.useEffect)((()=>{autoFocusRef.current&&domRef.current&&$6a99195332edec8b$export$80f3e147d781571c(domRef.current),autoFocusRef.current=!1}),[domRef]),{focusableProps:(0,dist_module.dG)({...interactions,tabIndex:props.excludeFromTabOrder&&!props.isDisabled?-1:void 0},interactionProps)}}function $d2c8e2b0480f3f34$export$cbe85ee05b554577(props,state,ref){let{isDisabled:isDisabled=!1,isRequired:isRequired,isReadOnly:isReadOnly,value:value,name:name,children:children,"aria-label":ariaLabel,"aria-labelledby":ariaLabelledby,validationState:validationState="valid"}=props;null!=children||(null!=ariaLabel||null!=ariaLabelledby)||console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:pressProps}=$f6c31cce2adf654f$export$45712eceda6fad21({isDisabled:isDisabled}),{focusableProps:focusableProps}=$e6afbd83fe6ebbd2$export$4c014de7c8940b4c(props,ref),interactions=(0,dist_module.dG)(pressProps,focusableProps),domProps=(0,dist_module.zL)(props,{labelable:!0});return{inputProps:(0,dist_module.dG)(domProps,{"aria-invalid":"invalid"===validationState||void 0,"aria-errormessage":props["aria-errormessage"],"aria-controls":props["aria-controls"],"aria-readonly":isReadOnly||void 0,"aria-required":isRequired||void 0,onChange:e=>{e.stopPropagation(),state.setSelected(e.target.checked)},disabled:isDisabled,value:value,name:name,type:"checkbox",...interactions})}}!function dist_module_$parcel$export(e,n,v,s){Object.defineProperty(e,n,{get:v,set:s,enumerable:!0,configurable:!0})}({},"useToggle",(()=>$d2c8e2b0480f3f34$export$cbe85ee05b554577))},"./node_modules/@react-aria/utils/dist/module.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{zL:function(){return $65484d02dcb7eb3e$export$457c3d6518dd4c6f},Ao:function(){return $7215afc6de606d6b$export$de79e2c695e052f3},gn:function(){return $c87311424ea30a05$export$fedb369cb70207f1},V5:function(){return $c87311424ea30a05$export$9ac100e40613ea10},dG:function(){return $3ef42575df84b30b$export$9d1611c77c2fe928},QB:function(){return $bbed8b41f857bcc0$export$24490316f764c430},PK:function(){return $ef06256079686ba0$export$f8aeda7b10753fa1},zX:function(){return $e9faafb641e167db$export$90fc3a17d93f704c},xi:function(){return $03deb23ff14920c4$export$4eaf04e54aa8eed6},Me:function(){return $bdb11010cef70236$export$f680877a34711e37},bE:function(){return $313b98861ee5dd6c$export$d6875122194c7b44},bt:function(){return $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c},mp:function(){return $bdb11010cef70236$export$b4cc09c592e8fdb8},lE:function(){return $e7801be82b4b2a53$export$4debdb1a3f0fa79e}});var react=__webpack_require__("./node_modules/react/index.js");function $parcel$export(e,n,v,s){Object.defineProperty(e,n,{get:v,set:s,enumerable:!0,configurable:!0})}var $704cf1d3b684cc5c$exports={};$parcel$export($704cf1d3b684cc5c$exports,"SSRProvider",(()=>$704cf1d3b684cc5c$export$9f8ac96af4b1b2ae)),$parcel$export($704cf1d3b684cc5c$exports,"useSSRSafeId",(()=>$704cf1d3b684cc5c$export$619500959fc48b26)),$parcel$export($704cf1d3b684cc5c$exports,"useIsSSR",(()=>$704cf1d3b684cc5c$export$535bd6ca7f90a273));const $704cf1d3b684cc5c$var$defaultContext={prefix:String(Math.round(1e10*Math.random())),current:0},$704cf1d3b684cc5c$var$SSRContext=react.createContext($704cf1d3b684cc5c$var$defaultContext);function $704cf1d3b684cc5c$export$9f8ac96af4b1b2ae(props){let cur=(0,react.useContext)($704cf1d3b684cc5c$var$SSRContext),value=(0,react.useMemo)((()=>({prefix:cur===$704cf1d3b684cc5c$var$defaultContext?"":`${cur.prefix}-${++cur.current}`,current:0})),[cur]);return react.createElement($704cf1d3b684cc5c$var$SSRContext.Provider,{value:value},props.children)}let $704cf1d3b684cc5c$var$canUseDOM=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function $704cf1d3b684cc5c$export$619500959fc48b26(defaultId){let ctx=(0,react.useContext)($704cf1d3b684cc5c$var$SSRContext);return ctx!==$704cf1d3b684cc5c$var$defaultContext||$704cf1d3b684cc5c$var$canUseDOM||console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server."),(0,react.useMemo)((()=>defaultId||`react-aria${ctx.prefix}-${++ctx.current}`),[defaultId])}function $704cf1d3b684cc5c$export$535bd6ca7f90a273(){let isInSSRContext=(0,react.useContext)($704cf1d3b684cc5c$var$SSRContext)!==$704cf1d3b684cc5c$var$defaultContext,[isSSR,setIsSSR]=(0,react.useState)(isInSSRContext);return"undefined"!=typeof window&&isInSSRContext&&(0,react.useLayoutEffect)((()=>{setIsSSR(!1)}),[]),isSSR}var clsx_m=__webpack_require__("./node_modules/clsx/dist/clsx.m.js"),dist_module=__webpack_require__("./node_modules/@react-stately/utils/dist/module.js");function module_$parcel$export(e,n,v,s){Object.defineProperty(e,n,{get:v,set:s,enumerable:!0,configurable:!0})}var $bdb11010cef70236$exports={};module_$parcel$export($bdb11010cef70236$exports,"useId",(()=>$bdb11010cef70236$export$f680877a34711e37)),module_$parcel$export($bdb11010cef70236$exports,"mergeIds",(()=>$bdb11010cef70236$export$cd8c9cb68f842629)),module_$parcel$export($bdb11010cef70236$exports,"useSlotId",(()=>$bdb11010cef70236$export$b4cc09c592e8fdb8));module_$parcel$export({},"useLayoutEffect",(()=>$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c));const $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c="undefined"!=typeof window?react.useLayoutEffect:()=>{};let $bdb11010cef70236$var$idsUpdaterMap=new Map;function $bdb11010cef70236$export$f680877a34711e37(defaultId){let[value,setValue]=(0,react.useState)(defaultId),nextId=(0,react.useRef)(null),res=$704cf1d3b684cc5c$export$619500959fc48b26(value),updateValue=(0,react.useCallback)((val=>{nextId.current=val}),[]);return $bdb11010cef70236$var$idsUpdaterMap.set(res,updateValue),$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c((()=>{let r=res;return()=>{$bdb11010cef70236$var$idsUpdaterMap.delete(r)}}),[res]),(0,react.useEffect)((()=>{let newId=nextId.current;newId&&(nextId.current=null,setValue(newId))})),res}function $bdb11010cef70236$export$cd8c9cb68f842629(idA,idB){if(idA===idB)return idA;let setIdA=$bdb11010cef70236$var$idsUpdaterMap.get(idA);if(setIdA)return setIdA(idB),idB;let setIdB=$bdb11010cef70236$var$idsUpdaterMap.get(idB);return setIdB?(setIdB(idA),idA):idB}function $bdb11010cef70236$export$b4cc09c592e8fdb8(depArray=[]){let id=$bdb11010cef70236$export$f680877a34711e37(),[resolvedId,setResolvedId]=$1dbecbe27a04f9af$export$14d238f342723f25(id),updateId=(0,react.useCallback)((()=>{setResolvedId((function*(){yield id,yield document.getElementById(id)?id:null}))}),[id,setResolvedId]);return $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(updateId,[id,updateId,...depArray]),resolvedId}function $ff5963eb1fccf552$export$e08e3b67e392101e(...callbacks){return(...args)=>{for(let callback of callbacks)"function"==typeof callback&&callback(...args)}}module_$parcel$export({},"chain",(()=>$ff5963eb1fccf552$export$e08e3b67e392101e));function $3ef42575df84b30b$export$9d1611c77c2fe928(...args){let result={...args[0]};for(let i=1;i=65&&key.charCodeAt(2)<=90?result[key]=$ff5963eb1fccf552$export$e08e3b67e392101e(a,b):"className"!==key&&"UNSAFE_className"!==key||"string"!=typeof a||"string"!=typeof b?"id"===key&&a&&b?result.id=$bdb11010cef70236$export$cd8c9cb68f842629(a,b):result[key]=void 0!==b?b:a:result[key]=(0,clsx_m.Z)(a,b)}}return result}module_$parcel$export({},"mergeProps",(()=>$3ef42575df84b30b$export$9d1611c77c2fe928));function $5dc95899b306f630$export$c9058316764c140e(...refs){return value=>{for(let ref of refs)"function"==typeof ref?ref(value):null!=ref&&(ref.current=value)}}module_$parcel$export({},"mergeRefs",(()=>$5dc95899b306f630$export$c9058316764c140e));module_$parcel$export({},"filterDOMProps",(()=>$65484d02dcb7eb3e$export$457c3d6518dd4c6f));const $65484d02dcb7eb3e$var$DOMPropNames=new Set(["id"]),$65484d02dcb7eb3e$var$labelablePropNames=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),$65484d02dcb7eb3e$var$propRe=/^(data-.*)$/;function $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props,opts={}){let{labelable:labelable,propNames:propNames}=opts,filteredProps={};for(const prop in props)Object.prototype.hasOwnProperty.call(props,prop)&&($65484d02dcb7eb3e$var$DOMPropNames.has(prop)||labelable&&$65484d02dcb7eb3e$var$labelablePropNames.has(prop)||(null==propNames?void 0:propNames.has(prop))||$65484d02dcb7eb3e$var$propRe.test(prop))&&(filteredProps[prop]=props[prop]);return filteredProps}function $7215afc6de606d6b$export$de79e2c695e052f3(element){if(function $7215afc6de606d6b$var$supportsPreventScroll(){if(null==$7215afc6de606d6b$var$supportsPreventScrollCached){$7215afc6de606d6b$var$supportsPreventScrollCached=!1;try{document.createElement("div").focus({get preventScroll(){return $7215afc6de606d6b$var$supportsPreventScrollCached=!0,!0}})}catch(e){}}return $7215afc6de606d6b$var$supportsPreventScrollCached}())element.focus({preventScroll:!0});else{let scrollableElements=function $7215afc6de606d6b$var$getScrollableElements(element){var parent=element.parentNode,scrollableElements=[],rootScrollingElement=document.scrollingElement||document.documentElement;for(;parent instanceof HTMLElement&&parent!==rootScrollingElement;)(parent.offsetHeight$7215afc6de606d6b$export$de79e2c695e052f3));let $7215afc6de606d6b$var$supportsPreventScrollCached=null;function $ab71dadb03a6fb2e$export$622cea445a1c5b7d(element,reverse,orientation="horizontal"){let rect=element.getBoundingClientRect();return reverse?"horizontal"===orientation?rect.right:rect.bottom:"horizontal"===orientation?rect.left:rect.top}module_$parcel$export({},"getOffset",(()=>$ab71dadb03a6fb2e$export$622cea445a1c5b7d));var $103b0e103f1b5952$exports={};module_$parcel$export($103b0e103f1b5952$exports,"clamp",(()=>dist_module.uZ)),module_$parcel$export($103b0e103f1b5952$exports,"snapValueToStep",(()=>dist_module.N4));module_$parcel$export({},"runAfterTransition",(()=>$bbed8b41f857bcc0$export$24490316f764c430));let $bbed8b41f857bcc0$var$transitionsByElement=new Map,$bbed8b41f857bcc0$var$transitionCallbacks=new Set;function $bbed8b41f857bcc0$var$setupGlobalEvents(){if("undefined"==typeof window)return;let onTransitionEnd=e=>{let properties=$bbed8b41f857bcc0$var$transitionsByElement.get(e.target);if(properties&&(properties.delete(e.propertyName),0===properties.size&&(e.target.removeEventListener("transitioncancel",onTransitionEnd),$bbed8b41f857bcc0$var$transitionsByElement.delete(e.target)),0===$bbed8b41f857bcc0$var$transitionsByElement.size)){for(let cb of $bbed8b41f857bcc0$var$transitionCallbacks)cb();$bbed8b41f857bcc0$var$transitionCallbacks.clear()}};document.body.addEventListener("transitionrun",(e=>{let transitions=$bbed8b41f857bcc0$var$transitionsByElement.get(e.target);transitions||(transitions=new Set,$bbed8b41f857bcc0$var$transitionsByElement.set(e.target,transitions),e.target.addEventListener("transitioncancel",onTransitionEnd)),transitions.add(e.propertyName)})),document.body.addEventListener("transitionend",onTransitionEnd)}function $bbed8b41f857bcc0$export$24490316f764c430(fn){requestAnimationFrame((()=>{0===$bbed8b41f857bcc0$var$transitionsByElement.size?fn():$bbed8b41f857bcc0$var$transitionCallbacks.add(fn)}))}"undefined"!=typeof document&&("loading"!==document.readyState?$bbed8b41f857bcc0$var$setupGlobalEvents():document.addEventListener("DOMContentLoaded",$bbed8b41f857bcc0$var$setupGlobalEvents));module_$parcel$export({},"useDrag1D",(()=>$9cc09df9fd7676be$export$7bbed75feba39706));const $9cc09df9fd7676be$var$draggingElements=[];function $9cc09df9fd7676be$export$7bbed75feba39706(props){console.warn("useDrag1D is deprecated, please use `useMove` instead https://react-spectrum.adobe.com/react-aria/useMove.html");let{containerRef:containerRef,reverse:reverse,orientation:orientation,onHover:onHover,onDrag:onDrag,onPositionChange:onPositionChange,onIncrement:onIncrement,onDecrement:onDecrement,onIncrementToMax:onIncrementToMax,onDecrementToMin:onDecrementToMin,onCollapseToggle:onCollapseToggle}=props,getNextOffset=e=>{let containerOffset=$ab71dadb03a6fb2e$export$622cea445a1c5b7d(containerRef.current,reverse,orientation),mouseOffset=(e=>"horizontal"===orientation?e.clientX:e.clientY)(e);return reverse?containerOffset-mouseOffset:mouseOffset-containerOffset},dragging=(0,react.useRef)(!1),prevPosition=(0,react.useRef)(0),handlers=(0,react.useRef)({onPositionChange:onPositionChange,onDrag:onDrag});handlers.current.onDrag=onDrag,handlers.current.onPositionChange=onPositionChange;let onMouseDragged=e=>{e.preventDefault();let nextOffset=getNextOffset(e);dragging.current||(dragging.current=!0,handlers.current.onDrag&&handlers.current.onDrag(!0),handlers.current.onPositionChange&&handlers.current.onPositionChange(nextOffset)),prevPosition.current!==nextOffset&&(prevPosition.current=nextOffset,onPositionChange&&onPositionChange(nextOffset))},onMouseUp=e=>{const target=e.target;dragging.current=!1;let nextOffset=getNextOffset(e);handlers.current.onDrag&&handlers.current.onDrag(!1),handlers.current.onPositionChange&&handlers.current.onPositionChange(nextOffset),$9cc09df9fd7676be$var$draggingElements.splice($9cc09df9fd7676be$var$draggingElements.indexOf(target),1),window.removeEventListener("mouseup",onMouseUp,!1),window.removeEventListener("mousemove",onMouseDragged,!1)};return{onMouseDown:e=>{const target=e.currentTarget;$9cc09df9fd7676be$var$draggingElements.some((elt=>target.contains(elt)))||($9cc09df9fd7676be$var$draggingElements.push(target),window.addEventListener("mousemove",onMouseDragged,!1),window.addEventListener("mouseup",onMouseUp,!1))},onMouseEnter:()=>{onHover&&onHover(!0)},onMouseOut:()=>{onHover&&onHover(!1)},onKeyDown:e=>{switch(e.key){case"Left":case"ArrowLeft":"horizontal"===orientation&&(e.preventDefault(),onDecrement&&!reverse?onDecrement():onIncrement&&reverse&&onIncrement());break;case"Up":case"ArrowUp":"vertical"===orientation&&(e.preventDefault(),onDecrement&&!reverse?onDecrement():onIncrement&&reverse&&onIncrement());break;case"Right":case"ArrowRight":"horizontal"===orientation&&(e.preventDefault(),onIncrement&&!reverse?onIncrement():onDecrement&&reverse&&onDecrement());break;case"Down":case"ArrowDown":"vertical"===orientation&&(e.preventDefault(),onIncrement&&!reverse?onIncrement():onDecrement&&reverse&&onDecrement());break;case"Home":e.preventDefault(),onDecrementToMin&&onDecrementToMin();break;case"End":e.preventDefault(),onIncrementToMax&&onIncrementToMax();break;case"Enter":e.preventDefault(),onCollapseToggle&&onCollapseToggle()}}}}function $03deb23ff14920c4$export$4eaf04e54aa8eed6(){let globalListeners=(0,react.useRef)(new Map),addGlobalListener=(0,react.useCallback)(((eventTarget,type,listener,options)=>{let fn=(null==options?void 0:options.once)?(...args)=>{globalListeners.current.delete(listener),listener(...args)}:listener;globalListeners.current.set(listener,{type:type,eventTarget:eventTarget,fn:fn,options:options}),eventTarget.addEventListener(type,listener,options)}),[]),removeGlobalListener=(0,react.useCallback)(((eventTarget,type,listener,options)=>{var ref;let fn=(null===(ref=globalListeners.current.get(listener))||void 0===ref?void 0:ref.fn)||listener;eventTarget.removeEventListener(type,fn,options),globalListeners.current.delete(listener)}),[]),removeAllGlobalListeners=(0,react.useCallback)((()=>{globalListeners.current.forEach(((value,key)=>{removeGlobalListener(value.eventTarget,value.type,key,value.options)}))}),[removeGlobalListener]);return(0,react.useEffect)((()=>removeAllGlobalListeners),[removeAllGlobalListeners]),{addGlobalListener:addGlobalListener,removeGlobalListener:removeGlobalListener,removeAllGlobalListeners:removeAllGlobalListeners}}module_$parcel$export({},"useGlobalListeners",(()=>$03deb23ff14920c4$export$4eaf04e54aa8eed6));function $313b98861ee5dd6c$export$d6875122194c7b44(props,defaultLabel){let{id:id,"aria-label":label,"aria-labelledby":labelledBy}=props;if(id=$bdb11010cef70236$export$f680877a34711e37(id),labelledBy&&label){let ids=new Set([...labelledBy.trim().split(/\s+/),id]);labelledBy=[...ids].join(" ")}else labelledBy&&(labelledBy=labelledBy.trim().split(/\s+/).join(" "));return label||labelledBy||!defaultLabel||(label=defaultLabel),{id:id,"aria-label":label,"aria-labelledby":labelledBy}}module_$parcel$export({},"useLabels",(()=>$313b98861ee5dd6c$export$d6875122194c7b44));function $df56164dff5785e2$export$4338b53315abf666(forwardedRef){const objRef=(0,react.useRef)();return $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c((()=>{forwardedRef&&("function"==typeof forwardedRef?forwardedRef(objRef.current):forwardedRef.current=objRef.current)}),[forwardedRef]),objRef}module_$parcel$export({},"useObjectRef",(()=>$df56164dff5785e2$export$4338b53315abf666));function $4f58c5f72bcf79f7$export$496315a1608d9602(effect,dependencies){const isInitialMount=(0,react.useRef)(!0);(0,react.useEffect)((()=>{isInitialMount.current?isInitialMount.current=!1:effect()}),dependencies)}module_$parcel$export({},"useUpdateEffect",(()=>$4f58c5f72bcf79f7$export$496315a1608d9602));function $9daab02d461809db$export$683480f191c0e3ea(options){const{ref:ref,onResize:onResize}=options;(0,react.useEffect)((()=>{let element=null==ref?void 0:ref.current;if(element){if(function $9daab02d461809db$var$hasResizeObserver(){return void 0!==window.ResizeObserver}()){const resizeObserverInstance=new window.ResizeObserver((entries=>{entries.length&&onResize()}));return resizeObserverInstance.observe(element),()=>{element&&resizeObserverInstance.unobserve(element)}}return window.addEventListener("resize",onResize,!1),()=>{window.removeEventListener("resize",onResize,!1)}}}),[onResize,ref])}module_$parcel$export({},"useResizeObserver",(()=>$9daab02d461809db$export$683480f191c0e3ea));function $e7801be82b4b2a53$export$4debdb1a3f0fa79e(context,ref){$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c((()=>{if(context&&context.ref&&ref)return context.ref.current=ref.current,()=>{context.ref.current=null}}),[context,ref])}module_$parcel$export({},"useSyncRef",(()=>$e7801be82b4b2a53$export$4debdb1a3f0fa79e));function $62d8ded9296f3872$export$cfa2225e87938781(node){for(;node&&!$62d8ded9296f3872$var$isScrollable(node);)node=node.parentElement;return node||document.scrollingElement||document.documentElement}function $62d8ded9296f3872$var$isScrollable(node){let style=window.getComputedStyle(node);return/(auto|scroll)/.test(style.overflow+style.overflowX+style.overflowY)}module_$parcel$export({},"getScrollParent",(()=>$62d8ded9296f3872$export$cfa2225e87938781));module_$parcel$export({},"useViewportSize",(()=>$5df64b3807dc15ee$export$d699905dd57c73ca));let $5df64b3807dc15ee$var$visualViewport="undefined"!=typeof window&&window.visualViewport;function $5df64b3807dc15ee$export$d699905dd57c73ca(){let[size1,setSize]=(0,react.useState)((()=>$5df64b3807dc15ee$var$getViewportSize()));return(0,react.useEffect)((()=>{let onResize=()=>{setSize((size=>{let newSize=$5df64b3807dc15ee$var$getViewportSize();return newSize.width===size.width&&newSize.height===size.height?size:newSize}))};return $5df64b3807dc15ee$var$visualViewport?$5df64b3807dc15ee$var$visualViewport.addEventListener("resize",onResize):window.addEventListener("resize",onResize),()=>{$5df64b3807dc15ee$var$visualViewport?$5df64b3807dc15ee$var$visualViewport.removeEventListener("resize",onResize):window.removeEventListener("resize",onResize)}}),[]),size1}function $5df64b3807dc15ee$var$getViewportSize(){return{width:(null==$5df64b3807dc15ee$var$visualViewport?void 0:$5df64b3807dc15ee$var$visualViewport.width)||window.innerWidth,height:(null==$5df64b3807dc15ee$var$visualViewport?void 0:$5df64b3807dc15ee$var$visualViewport.height)||window.innerHeight}}module_$parcel$export({},"useDescription",(()=>$ef06256079686ba0$export$f8aeda7b10753fa1));let $ef06256079686ba0$var$descriptionId=0;const $ef06256079686ba0$var$descriptionNodes=new Map;function $ef06256079686ba0$export$f8aeda7b10753fa1(description){let[id1,setId]=(0,react.useState)(null);return $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c((()=>{if(!description)return;let desc=$ef06256079686ba0$var$descriptionNodes.get(description);if(desc)setId(desc.element.id);else{let id="react-aria-description-"+$ef06256079686ba0$var$descriptionId++;setId(id);let node=document.createElement("div");node.id=id,node.style.display="none",node.textContent=description,document.body.appendChild(node),desc={refCount:0,element:node},$ef06256079686ba0$var$descriptionNodes.set(description,desc)}return desc.refCount++,()=>{0==--desc.refCount&&(desc.element.remove(),$ef06256079686ba0$var$descriptionNodes.delete(description))}}),[description]),{"aria-describedby":description?id1:void 0}}var $c87311424ea30a05$exports={};function $c87311424ea30a05$var$testUserAgent(re){var ref;return"undefined"!=typeof window&&null!=window.navigator&&((null===(ref=window.navigator.userAgentData)||void 0===ref?void 0:ref.brands.some((brand=>re.test(brand.brand))))||re.test(window.navigator.userAgent))}function $c87311424ea30a05$var$testPlatform(re){return"undefined"!=typeof window&&null!=window.navigator&&re.test((window.navigator.userAgentData||window.navigator).platform)}function $c87311424ea30a05$export$9ac100e40613ea10(){return $c87311424ea30a05$var$testPlatform(/^Mac/i)}function $c87311424ea30a05$export$186c6964ca17d99(){return $c87311424ea30a05$var$testPlatform(/^iPhone/i)}function $c87311424ea30a05$export$7bef049ce92e4224(){return $c87311424ea30a05$var$testPlatform(/^iPad/i)||$c87311424ea30a05$export$9ac100e40613ea10()&&navigator.maxTouchPoints>1}function $c87311424ea30a05$export$fedb369cb70207f1(){return $c87311424ea30a05$export$186c6964ca17d99()||$c87311424ea30a05$export$7bef049ce92e4224()}function $c87311424ea30a05$export$e1865c3bedcd822b(){return $c87311424ea30a05$export$9ac100e40613ea10()||$c87311424ea30a05$export$fedb369cb70207f1()}function $c87311424ea30a05$export$78551043582a6a98(){return $c87311424ea30a05$var$testUserAgent(/AppleWebKit/i)&&!$c87311424ea30a05$export$6446a186d09e379e()}function $c87311424ea30a05$export$6446a186d09e379e(){return $c87311424ea30a05$var$testUserAgent(/Chrome/i)}function $c87311424ea30a05$export$a11b0059900ceec8(){return $c87311424ea30a05$var$testUserAgent(/Android/i)}module_$parcel$export($c87311424ea30a05$exports,"isMac",(()=>$c87311424ea30a05$export$9ac100e40613ea10)),module_$parcel$export($c87311424ea30a05$exports,"isIPhone",(()=>$c87311424ea30a05$export$186c6964ca17d99)),module_$parcel$export($c87311424ea30a05$exports,"isIPad",(()=>$c87311424ea30a05$export$7bef049ce92e4224)),module_$parcel$export($c87311424ea30a05$exports,"isIOS",(()=>$c87311424ea30a05$export$fedb369cb70207f1)),module_$parcel$export($c87311424ea30a05$exports,"isAppleDevice",(()=>$c87311424ea30a05$export$e1865c3bedcd822b)),module_$parcel$export($c87311424ea30a05$exports,"isWebKit",(()=>$c87311424ea30a05$export$78551043582a6a98)),module_$parcel$export($c87311424ea30a05$exports,"isChrome",(()=>$c87311424ea30a05$export$6446a186d09e379e)),module_$parcel$export($c87311424ea30a05$exports,"isAndroid",(()=>$c87311424ea30a05$export$a11b0059900ceec8));function $e9faafb641e167db$export$90fc3a17d93f704c(ref,event,handler1,options){let handlerRef=(0,react.useRef)(handler1);handlerRef.current=handler1;let isDisabled=null==handler1;(0,react.useEffect)((()=>{if(isDisabled)return;let element=ref.current,handler=e=>handlerRef.current.call(this,e);return element.addEventListener(event,handler,options),()=>{element.removeEventListener(event,handler,options)}}),[ref,event,options,isDisabled])}module_$parcel$export({},"useEvent",(()=>$e9faafb641e167db$export$90fc3a17d93f704c));function $1dbecbe27a04f9af$export$14d238f342723f25(defaultValue){let[value,setValue]=(0,react.useState)(defaultValue),valueRef=(0,react.useRef)(value),effect=(0,react.useRef)(null);valueRef.current=value;let nextRef=(0,react.useRef)(null);nextRef.current=()=>{let newValue=effect.current.next();newValue.done?effect.current=null:value===newValue.value?nextRef.current():setValue(newValue.value)},$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c((()=>{effect.current&&nextRef.current()}));let queue=(0,react.useCallback)((fn=>{effect.current=fn(valueRef.current),nextRef.current()}),[effect,nextRef]);return[value,queue]}module_$parcel$export({},"useValueEffect",(()=>$1dbecbe27a04f9af$export$14d238f342723f25));function $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollView,element){let offsetX=$2f04cbc44ee30ce0$var$relativeOffset(scrollView,element,"left"),offsetY=$2f04cbc44ee30ce0$var$relativeOffset(scrollView,element,"top"),width=element.offsetWidth,height=element.offsetHeight,x=scrollView.scrollLeft,y=scrollView.scrollTop,maxX=x+scrollView.offsetWidth,maxY=y+scrollView.offsetHeight;offsetX<=x?x=offsetX:offsetX+width>maxX&&(x+=offsetX+width-maxX),offsetY<=y?y=offsetY:offsetY+height>maxY&&(y+=offsetY+height-maxY),scrollView.scrollLeft=x,scrollView.scrollTop=y}function $2f04cbc44ee30ce0$var$relativeOffset(ancestor,child,axis){const prop="left"===axis?"offsetLeft":"offsetTop";let sum=0;for(;child.offsetParent&&(sum+=child[prop],child.offsetParent!==ancestor);){if(child.offsetParent.contains(ancestor)){sum-=ancestor[prop];break}child=child.offsetParent}return sum}module_$parcel$export({},"scrollIntoView",(()=>$2f04cbc44ee30ce0$export$53a0910f038337bd))},"./node_modules/@react-spring/animated/dist/react-spring-animated.esm.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{He:function(){return getPayload},Ld:function(){return createHost},eC:function(){return AnimatedString},f3:function(){return setAnimated},iG:function(){return AnimatedValue},rS:function(){return AnimatedObject},sb:function(){return getAnimatedType},ys:function(){return getAnimated}});var _react_spring_shared__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@react-spring/shared/dist/react-spring-shared.esm.js"),react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js");const $node=Symbol.for("Animated:node"),getAnimated=owner=>owner&&owner[$node],setAnimated=(owner,node)=>(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.dE)(owner,$node,node),getPayload=owner=>owner&&owner[$node]&&owner[$node].getPayload();class Animated{constructor(){this.payload=void 0,setAnimated(this,this)}getPayload(){return this.payload||[]}}class AnimatedValue extends Animated{constructor(_value){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=_value,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.num(this._value)&&(this.lastPosition=this._value)}static create(value){return new AnimatedValue(value)}getPayload(){return[this]}getValue(){return this._value}setValue(value,step){return _react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.num(value)&&(this.lastPosition=value,step&&(value=Math.round(value/step)*step,this.done&&(this.lastPosition=value))),this._value!==value&&(this._value=value,!0)}reset(){const{done:done}=this;this.done=!1,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,done&&(this.lastVelocity=null),this.v0=null)}}class AnimatedString extends AnimatedValue{constructor(value){super(0),this._string=null,this._toString=void 0,this._toString=(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.mD)({output:[value,value]})}static create(value){return new AnimatedString(value)}getValue(){let value=this._string;return null==value?this._string=this._toString(this._value):value}setValue(value){if(_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.str(value)){if(value==this._string)return!1;this._string=value,this._value=1}else{if(!super.setValue(value))return!1;this._string=null}return!0}reset(goal){goal&&(this._toString=(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.mD)({output:[this.getValue(),goal]})),this._value=0,super.reset()}}const TreeContext={dependencies:null};class AnimatedObject extends Animated{constructor(source){super(),this.source=source,this.setValue(source)}getValue(animated){const values={};return(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.rU)(this.source,((source,key)=>{var value;(value=source)&&value[$node]===value?values[key]=source.getValue(animated):(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.j$)(source)?values[key]=(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.je)(source):animated||(values[key]=source)})),values}setValue(source){this.source=source,this.payload=this._makePayload(source)}reset(){this.payload&&(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)(this.payload,(node=>node.reset()))}_makePayload(source){if(source){const payload=new Set;return(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.rU)(source,this._addToPayload,payload),Array.from(payload)}}_addToPayload(source){TreeContext.dependencies&&(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.j$)(source)&&TreeContext.dependencies.add(source);const payload=getPayload(source);payload&&(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)(payload,(node=>this.add(node)))}}class AnimatedArray extends AnimatedObject{constructor(source){super(source)}static create(source){return new AnimatedArray(source)}getValue(){return this.source.map((node=>node.getValue()))}setValue(source){const payload=this.getPayload();return source.length==payload.length?payload.map(((node,i)=>node.setValue(source[i]))).some(Boolean):(super.setValue(source.map(makeAnimated)),!0)}}function makeAnimated(value){return((0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.Df)(value)?AnimatedString:AnimatedValue).create(value)}function getAnimatedType(value){const parentNode=getAnimated(value);return parentNode?parentNode.constructor:_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.arr(value)?AnimatedArray:(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.Df)(value)?AnimatedString:AnimatedValue}function _extends(){return _extends=Object.assign||function(target){for(var i=1;i{const hasInstance=!_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.fun(Component)||Component.prototype&&Component.prototype.isReactComponent;return(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(((givenProps,givenRef)=>{const instanceRef=(0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null),ref=hasInstance&&(0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((value=>{instanceRef.current=function updateRef(ref,value){ref&&(_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.fun(ref)?ref(value):ref.current=value);return value}(givenRef,value)}),[givenRef]),[props,deps]=function getAnimatedState(props,host){const dependencies=new Set;TreeContext.dependencies=dependencies,props.style&&(props=_extends({},props,{style:host.createAnimatedStyle(props.style)}));return props=new AnimatedObject(props),TreeContext.dependencies=null,[props,dependencies]}(givenProps,host),forceUpdate=(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.NW)(),callback=()=>{const instance=instanceRef.current;if(hasInstance&&!instance)return;!1===(!!instance&&host.applyAnimatedValues(instance,props.getValue(!0)))&&forceUpdate()},observer=new PropsObserver(callback,deps),observerRef=(0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)();(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.bt)((()=>(observerRef.current=observer,(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)(deps,(dep=>(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.UI)(dep,observer))),()=>{observerRef.current&&((0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)(observerRef.current.deps,(dep=>(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.iL)(dep,observerRef.current))),_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.Wn.cancel(observerRef.current.update))}))),(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(callback,[]),(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.tf)((()=>()=>{const observer=observerRef.current;(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)(observer.deps,(dep=>(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.iL)(dep,observer)))}));const usedProps=host.getComponentProps(props.getValue());return react__WEBPACK_IMPORTED_MODULE_1__.createElement(Component,_extends({},usedProps,{ref:ref}))}))};class PropsObserver{constructor(update,deps){this.update=update,this.deps=deps}eventObserved(event){"change"==event.type&&_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.Wn.write(this.update)}}const cacheKey=Symbol.for("AnimatedComponent"),createHost=(components,{applyAnimatedValues:_applyAnimatedValues=(()=>!1),createAnimatedStyle:_createAnimatedStyle=(style=>new AnimatedObject(style)),getComponentProps:_getComponentProps=(props=>props)}={})=>{const hostConfig={applyAnimatedValues:_applyAnimatedValues,createAnimatedStyle:_createAnimatedStyle,getComponentProps:_getComponentProps},animated=Component=>{const displayName=getDisplayName(Component)||"Anonymous";return(Component=_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.str(Component)?animated[Component]||(animated[Component]=withAnimated(Component,hostConfig)):Component[cacheKey]||(Component[cacheKey]=withAnimated(Component,hostConfig))).displayName=`Animated(${displayName})`,Component};return(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.rU)(components,((Component,key)=>{_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.arr(components)&&(key=getDisplayName(Component)),animated[key]=animated(Component)})),{animated:animated}},getDisplayName=arg=>_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.str(arg)?arg:arg&&_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.str(arg.displayName)?arg.displayName:_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.fun(arg)&&arg.name||null},"./node_modules/@react-spring/core/dist/react-spring-core.esm.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Globals:function(){return _react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.OH},useSpring:function(){return useSpring},useTransition:function(){return useTransition}});var _react_spring_shared__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@react-spring/shared/dist/react-spring-shared.esm.js"),react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js"),_react_spring_animated__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@react-spring/animated/dist/react-spring-animated.esm.js");function _extends(){return _extends=Object.assign||function(target){for(var i=1;i!0===value||!!(key&&value&&(_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.fun(value)?value(key):(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.qo)(value).includes(key))),resolveProp=(prop,key)=>_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.obj(prop)?key&&prop[key]:prop,getDefaultProp=(props,key)=>!0===props.default?props[key]:props.default?props.default[key]:void 0,noopTransform=value=>value,getDefaultProps=(props,transform=noopTransform)=>{let keys=DEFAULT_PROPS;props.default&&!0!==props.default&&(props=props.default,keys=Object.keys(props));const defaults={};for(const key of keys){const value=transform(props[key],key);_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(value)||(defaults[key]=value)}return defaults},DEFAULT_PROPS=["config","onProps","onStart","onChange","onPause","onResume","onRest"],RESERVED_PROPS={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function inferTo(props){const to=function getForwardProps(props){const forward={};let count=0;if((0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.rU)(props,((value,prop)=>{RESERVED_PROPS[prop]||(forward[prop]=value,count++)})),count)return forward}(props);if(to){const out={to:to};return(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.rU)(props,((val,key)=>key in to||(out[key]=val))),out}return _extends({},props)}function computeGoal(value){return value=(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.je)(value),_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.arr(value)?value.map(computeGoal):(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.Df)(value)?_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.OH.createStringInterpolator({range:[0,1],output:[value,value]})(1):value}function hasProps(props){for(const _ in props)return!0;return!1}function isAsyncTo(to){return _react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.fun(to)||_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.arr(to)&&_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.obj(to[0])}function detachRefs(ctrl,ref){var _ctrl$ref;null==(_ctrl$ref=ctrl.ref)||_ctrl$ref.delete(ctrl),null==ref||ref.delete(ctrl)}function replaceRef(ctrl,ref){var _ctrl$ref2;ref&&ctrl.ref!==ref&&(null==(_ctrl$ref2=ctrl.ref)||_ctrl$ref2.delete(ctrl),ref.add(ctrl),ctrl.ref=ref)}const c1=1.70158,c2=1.525*c1,c4=2*Math.PI/3,c5=2*Math.PI/4.5,bounceOut=x=>{const n1=7.5625,d1=2.75;return x<1/d1?n1*x*x:x<2/d1?n1*(x-=1.5/d1)*x+.75:x<2.5/d1?n1*(x-=2.25/d1)*x+.9375:n1*(x-=2.625/d1)*x+.984375},defaults=_extends({},{tension:170,friction:26},{mass:1,damping:1,easing:{linear:x=>x,easeInQuad:x=>x*x,easeOutQuad:x=>1-(1-x)*(1-x),easeInOutQuad:x=>x<.5?2*x*x:1-Math.pow(-2*x+2,2)/2,easeInCubic:x=>x*x*x,easeOutCubic:x=>1-Math.pow(1-x,3),easeInOutCubic:x=>x<.5?4*x*x*x:1-Math.pow(-2*x+2,3)/2,easeInQuart:x=>x*x*x*x,easeOutQuart:x=>1-Math.pow(1-x,4),easeInOutQuart:x=>x<.5?8*x*x*x*x:1-Math.pow(-2*x+2,4)/2,easeInQuint:x=>x*x*x*x*x,easeOutQuint:x=>1-Math.pow(1-x,5),easeInOutQuint:x=>x<.5?16*x*x*x*x*x:1-Math.pow(-2*x+2,5)/2,easeInSine:x=>1-Math.cos(x*Math.PI/2),easeOutSine:x=>Math.sin(x*Math.PI/2),easeInOutSine:x=>-(Math.cos(Math.PI*x)-1)/2,easeInExpo:x=>0===x?0:Math.pow(2,10*x-10),easeOutExpo:x=>1===x?1:1-Math.pow(2,-10*x),easeInOutExpo:x=>0===x?0:1===x?1:x<.5?Math.pow(2,20*x-10)/2:(2-Math.pow(2,-20*x+10))/2,easeInCirc:x=>1-Math.sqrt(1-Math.pow(x,2)),easeOutCirc:x=>Math.sqrt(1-Math.pow(x-1,2)),easeInOutCirc:x=>x<.5?(1-Math.sqrt(1-Math.pow(2*x,2)))/2:(Math.sqrt(1-Math.pow(-2*x+2,2))+1)/2,easeInBack:x=>2.70158*x*x*x-c1*x*x,easeOutBack:x=>1+2.70158*Math.pow(x-1,3)+c1*Math.pow(x-1,2),easeInOutBack:x=>x<.5?Math.pow(2*x,2)*(7.189819*x-c2)/2:(Math.pow(2*x-2,2)*((c2+1)*(2*x-2)+c2)+2)/2,easeInElastic:x=>0===x?0:1===x?1:-Math.pow(2,10*x-10)*Math.sin((10*x-10.75)*c4),easeOutElastic:x=>0===x?0:1===x?1:Math.pow(2,-10*x)*Math.sin((10*x-.75)*c4)+1,easeInOutElastic:x=>0===x?0:1===x?1:x<.5?-Math.pow(2,20*x-10)*Math.sin((20*x-11.125)*c5)/2:Math.pow(2,-20*x+10)*Math.sin((20*x-11.125)*c5)/2+1,easeInBounce:x=>1-bounceOut(1-x),easeOutBounce:bounceOut,easeInOutBounce:x=>x<.5?(1-bounceOut(1-2*x))/2:(1+bounceOut(2*x-1))/2}.linear,clamp:!1});class AnimationConfig{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,defaults)}}function sanitizeConfig(config,props){if(_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(props.decay)){const isTensionConfig=!_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(props.tension)||!_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(props.friction);!isTensionConfig&&_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(props.frequency)&&_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(props.damping)&&_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(props.mass)||(config.duration=void 0,config.decay=void 0),isTensionConfig&&(config.frequency=void 0)}else config.duration=void 0}const emptyArray=[];class Animation{constructor(){this.changed=!1,this.values=emptyArray,this.toValues=null,this.fromValues=emptyArray,this.to=void 0,this.from=void 0,this.config=new AnimationConfig,this.immediate=!1}}function scheduleProps(callId,{key:key,props:props,defaultProps:defaultProps,state:state,actions:actions}){return new Promise(((resolve,reject)=>{var _props$cancel;let delay,timeout,cancel=matchProp(null!=(_props$cancel=props.cancel)?_props$cancel:null==defaultProps?void 0:defaultProps.cancel,key);if(cancel)onStart();else{_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(props.pause)||(state.paused=matchProp(props.pause,key));let pause=null==defaultProps?void 0:defaultProps.pause;!0!==pause&&(pause=state.paused||matchProp(pause,key)),delay=callProp(props.delay||0,key),pause?(state.resumeQueue.add(onResume),actions.pause()):(actions.resume(),onResume())}function onPause(){state.resumeQueue.add(onResume),state.timeouts.delete(timeout),timeout.cancel(),delay=timeout.time-_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.Wn.now()}function onResume(){delay>0&&!_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.OH.skipAnimation?(state.delayed=!0,timeout=_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.Wn.setTimeout(onStart,delay),state.pauseQueue.add(onPause),state.timeouts.add(timeout)):onStart()}function onStart(){state.delayed&&(state.delayed=!1),state.pauseQueue.delete(onPause),state.timeouts.delete(timeout),callId<=(state.cancelId||0)&&(cancel=!0);try{actions.start(_extends({},props,{callId:callId,cancel:cancel}),resolve)}catch(err){reject(err)}}}))}const getCombinedResult=(target,results)=>1==results.length?results[0]:results.some((result=>result.cancelled))?getCancelledResult(target.get()):results.every((result=>result.noop))?getNoopResult(target.get()):getFinishedResult(target.get(),results.every((result=>result.finished))),getNoopResult=value=>({value:value,noop:!0,finished:!0,cancelled:!1}),getFinishedResult=(value,finished,cancelled=!1)=>({value:value,finished:finished,cancelled:cancelled}),getCancelledResult=value=>({value:value,cancelled:!0,finished:!1});function runAsync(to,props,state,target){const{callId:callId,parentId:parentId,onRest:onRest}=props,{asyncTo:prevTo,promise:prevPromise}=state;return parentId||to!==prevTo||props.reset?state.promise=(async()=>{state.asyncId=callId,state.asyncTo=to;const defaultProps=getDefaultProps(props,((value,key)=>"onRest"===key?void 0:value));let preventBail,bail;const bailPromise=new Promise(((resolve,reject)=>(preventBail=resolve,bail=reject))),bailIfEnded=bailSignal=>{const bailResult=callId<=(state.cancelId||0)&&getCancelledResult(target)||callId!==state.asyncId&&getFinishedResult(target,!1);if(bailResult)throw bailSignal.result=bailResult,bail(bailSignal),bailSignal},animate=(arg1,arg2)=>{const bailSignal=new BailSignal,skipAnimationSignal=new SkipAniamtionSignal;return(async()=>{if(_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.OH.skipAnimation)throw stopAsync(state),skipAnimationSignal.result=getFinishedResult(target,!1),bail(skipAnimationSignal),skipAnimationSignal;bailIfEnded(bailSignal);const props=_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.obj(arg1)?_extends({},arg1):_extends({},arg2,{to:arg1});props.parentId=callId,(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.rU)(defaultProps,((value,key)=>{_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(props[key])&&(props[key]=value)}));const result=await target.start(props);return bailIfEnded(bailSignal),state.paused&&await new Promise((resume=>{state.resumeQueue.add(resume)})),result})()};let result;if(_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.OH.skipAnimation)return stopAsync(state),getFinishedResult(target,!1);try{let animating;animating=_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.arr(to)?(async queue=>{for(const props of queue)await animate(props)})(to):Promise.resolve(to(animate,target.stop.bind(target))),await Promise.all([animating.then(preventBail),bailPromise]),result=getFinishedResult(target.get(),!0,!1)}catch(err){if(err instanceof BailSignal)result=err.result;else{if(!(err instanceof SkipAniamtionSignal))throw err;result=err.result}}finally{callId==state.asyncId&&(state.asyncId=parentId,state.asyncTo=parentId?prevTo:void 0,state.promise=parentId?prevPromise:void 0)}return _react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.fun(onRest)&&_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.Wn.batchedUpdates((()=>{onRest(result,target,target.item)})),result})():prevPromise}function stopAsync(state,cancelId){(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.yl)(state.timeouts,(t=>t.cancel())),state.pauseQueue.clear(),state.resumeQueue.clear(),state.asyncId=state.asyncTo=state.promise=void 0,cancelId&&(state.cancelId=cancelId)}class BailSignal extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class SkipAniamtionSignal extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const isFrameValue=value=>value instanceof FrameValue;let nextId$1=1;class FrameValue extends _react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.B0{constructor(...args){super(...args),this.id=nextId$1++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(priority){this._priority!=priority&&(this._priority=priority,this._onPriorityChange(priority))}get(){const node=(0,_react_spring_animated__WEBPACK_IMPORTED_MODULE_2__.ys)(this);return node&&node.getValue()}to(...args){return _react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.OH.to(this,args)}interpolate(...args){return(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.LW)(),_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.OH.to(this,args)}toJSON(){return this.get()}observerAdded(count){1==count&&this._attach()}observerRemoved(count){0==count&&this._detach()}_attach(){}_detach(){}_onChange(value,idle=!1){(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.k0)(this,{type:"change",parent:this,value:value,idle:idle})}_onPriorityChange(priority){this.idle||_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.fT.sort(this),(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.k0)(this,{type:"priority",parent:this,priority:priority})}}const $P=Symbol.for("SpringPhase"),hasAnimated=target=>(1&target[$P])>0,isAnimating=target=>(2&target[$P])>0,isPaused=target=>(4&target[$P])>0,setActiveBit=(target,active)=>active?target[$P]|=3:target[$P]&=-3,setPausedBit=(target,paused)=>paused?target[$P]|=4:target[$P]&=-5;class SpringValue extends FrameValue{constructor(arg1,arg2){if(super(),this.key=void 0,this.animation=new Animation,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(arg1)||!_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(arg2)){const props=_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.obj(arg1)?_extends({},arg1):_extends({},arg2,{from:arg1});_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(props.default)&&(props.default=!0),this.start(props)}}get idle(){return!(isAnimating(this)||this._state.asyncTo)||isPaused(this)}get goal(){return(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.je)(this.animation.to)}get velocity(){const node=(0,_react_spring_animated__WEBPACK_IMPORTED_MODULE_2__.ys)(this);return node instanceof _react_spring_animated__WEBPACK_IMPORTED_MODULE_2__.iG?node.lastVelocity||0:node.getPayload().map((node=>node.lastVelocity||0))}get hasAnimated(){return hasAnimated(this)}get isAnimating(){return isAnimating(this)}get isPaused(){return isPaused(this)}get isDelayed(){return this._state.delayed}advance(dt){let idle=!0,changed=!1;const anim=this.animation;let{config:config,toValues:toValues}=anim;const payload=(0,_react_spring_animated__WEBPACK_IMPORTED_MODULE_2__.He)(anim.to);!payload&&(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.j$)(anim.to)&&(toValues=(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.qo)((0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.je)(anim.to))),anim.values.forEach(((node,i)=>{if(node.done)return;const to=node.constructor==_react_spring_animated__WEBPACK_IMPORTED_MODULE_2__.eC?1:payload?payload[i].lastPosition:toValues[i];let finished=anim.immediate,position=to;if(!finished){if(position=node.lastPosition,config.tension<=0)return void(node.done=!0);let elapsed=node.elapsedTime+=dt;const from=anim.fromValues[i],v0=null!=node.v0?node.v0:node.v0=_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.arr(config.velocity)?config.velocity[i]:config.velocity;let velocity;if(_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(config.duration))if(config.decay){const decay=!0===config.decay?.998:config.decay,e=Math.exp(-(1-decay)*elapsed);position=from+v0/(1-decay)*(1-e),finished=Math.abs(node.lastPosition-position)<.1,velocity=v0*e}else{velocity=null==node.lastVelocity?v0:node.lastVelocity;const precision=config.precision||(from==to?.005:Math.min(1,.001*Math.abs(to-from))),restVelocity=config.restVelocity||precision/10,bounceFactor=config.clamp?0:config.bounce,canBounce=!_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(bounceFactor),isGrowing=from==to?node.v0>0:fromrestVelocity,isMoving||(finished=Math.abs(to-position)<=precision,!finished));++n){canBounce&&(isBouncing=position==to||position>to==isGrowing,isBouncing&&(velocity=-velocity*bounceFactor,position=to));velocity+=(1e-6*-config.tension*(position-to)+.001*-config.friction*velocity)/config.mass*step,position+=velocity*step}}else{let p=1;config.duration>0&&(this._memoizedDuration!==config.duration&&(this._memoizedDuration=config.duration,node.durationProgress>0&&(node.elapsedTime=config.duration*node.durationProgress,elapsed=node.elapsedTime+=dt)),p=(config.progress||0)+elapsed/this._memoizedDuration,p=p>1?1:p<0?0:p,node.durationProgress=p),position=from+config.easing(p)*(to-from),velocity=(position-node.lastPosition)/dt,finished=1==p}node.lastVelocity=velocity,Number.isNaN(position)&&(console.warn("Got NaN while animating:",this),finished=!0)}payload&&!payload[i].done&&(finished=!1),finished?node.done=!0:idle=!1,node.setValue(position,config.round)&&(changed=!0)}));const node=(0,_react_spring_animated__WEBPACK_IMPORTED_MODULE_2__.ys)(this),currVal=node.getValue();if(idle){const finalVal=(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.je)(anim.to);currVal===finalVal&&!changed||config.decay?changed&&config.decay&&this._onChange(currVal):(node.setValue(finalVal),this._onChange(finalVal)),this._stop()}else changed&&this._onChange(currVal)}set(value){return _react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.Wn.batchedUpdates((()=>{this._stop(),this._focus(value),this._set(value)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(isAnimating(this)){const{to:to,config:config}=this.animation;_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.Wn.batchedUpdates((()=>{this._onStart(),config.decay||this._set(to,!1),this._stop()}))}return this}update(props){return(this.queue||(this.queue=[])).push(props),this}start(to,arg2){let queue;return _react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(to)?(queue=this.queue||[],this.queue=[]):queue=[_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.obj(to)?to:_extends({},arg2,{to:to})],Promise.all(queue.map((props=>this._update(props)))).then((results=>getCombinedResult(this,results)))}stop(cancel){const{to:to}=this.animation;return this._focus(this.get()),stopAsync(this._state,cancel&&this._lastCallId),_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.Wn.batchedUpdates((()=>this._stop(to,cancel))),this}reset(){this._update({reset:!0})}eventObserved(event){"change"==event.type?this._start():"priority"==event.type&&(this.priority=event.priority+1)}_prepareNode(props){const key=this.key||"";let{to:to,from:from}=props;to=_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.obj(to)?to[key]:to,(null==to||isAsyncTo(to))&&(to=void 0),from=_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.obj(from)?from[key]:from,null==from&&(from=void 0);const range={to:to,from:from};return hasAnimated(this)||(props.reverse&&([to,from]=[from,to]),from=(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.je)(from),_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(from)?(0,_react_spring_animated__WEBPACK_IMPORTED_MODULE_2__.ys)(this)||this._set(to):this._set(from)),range}_update(_ref,isLoop){let props=_extends({},_ref);const{key:key,defaultProps:defaultProps}=this;props.default&&Object.assign(defaultProps,getDefaultProps(props,((value,prop)=>/^on/.test(prop)?resolveProp(value,key):value))),mergeActiveFn(this,props,"onProps"),sendEvent(this,"onProps",props,this);const range=this._prepareNode(props);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const state=this._state;return scheduleProps(++this._lastCallId,{key:key,props:props,defaultProps:defaultProps,state:state,actions:{pause:()=>{isPaused(this)||(setPausedBit(this,!0),(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.bl)(state.pauseQueue),sendEvent(this,"onPause",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},resume:()=>{isPaused(this)&&(setPausedBit(this,!1),isAnimating(this)&&this._resume(),(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.bl)(state.resumeQueue),sendEvent(this,"onResume",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},start:this._merge.bind(this,range)}}).then((result=>{if(props.loop&&result.finished&&(!isLoop||!result.noop)){const nextProps=createLoopUpdate(props);if(nextProps)return this._update(nextProps,!0)}return result}))}_merge(range,props,resolve){if(props.cancel)return this.stop(!0),resolve(getCancelledResult(this));const hasToProp=!_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(range.to),hasFromProp=!_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(range.from);if(hasToProp||hasFromProp){if(!(props.callId>this._lastToId))return resolve(getCancelledResult(this));this._lastToId=props.callId}const{key:key,defaultProps:defaultProps,animation:anim}=this,{to:prevTo,from:prevFrom}=anim;let{to:to=prevTo,from:from=prevFrom}=range;!hasFromProp||hasToProp||props.default&&!_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(to)||(to=from),props.reverse&&([to,from]=[from,to]);const hasFromChanged=!(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.Xy)(from,prevFrom);hasFromChanged&&(anim.from=from),from=(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.je)(from);const hasToChanged=!(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.Xy)(to,prevTo);hasToChanged&&this._focus(to);const hasAsyncTo=isAsyncTo(props.to),{config:config}=anim,{decay:decay,velocity:velocity}=config;(hasToProp||hasFromProp)&&(config.velocity=0),props.config&&!hasAsyncTo&&function mergeConfig(config,newConfig,defaultConfig){defaultConfig&&(sanitizeConfig(defaultConfig=_extends({},defaultConfig),newConfig),newConfig=_extends({},defaultConfig,newConfig)),sanitizeConfig(config,newConfig),Object.assign(config,newConfig);for(const key in defaults)null==config[key]&&(config[key]=defaults[key]);let{mass:mass,frequency:frequency,damping:damping}=config;return _react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(frequency)||(frequency<.01&&(frequency=.01),damping<0&&(damping=0),config.tension=Math.pow(2*Math.PI/frequency,2)*mass,config.friction=4*Math.PI*damping*mass/frequency),config}(config,callProp(props.config,key),props.config!==defaultProps.config?callProp(defaultProps.config,key):void 0);let node=(0,_react_spring_animated__WEBPACK_IMPORTED_MODULE_2__.ys)(this);if(!node||_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(to))return resolve(getFinishedResult(this,!0));const reset=_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(props.reset)?hasFromProp&&!props.default:!_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(from)&&matchProp(props.reset,key),value=reset?from:this.get(),goal=computeGoal(to),isAnimatable=_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.num(goal)||_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.arr(goal)||(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.Df)(goal),immediate=!hasAsyncTo&&(!isAnimatable||matchProp(defaultProps.immediate||props.immediate,key));if(hasToChanged){const nodeType=(0,_react_spring_animated__WEBPACK_IMPORTED_MODULE_2__.sb)(to);if(nodeType!==node.constructor){if(!immediate)throw Error(`Cannot animate between ${node.constructor.name} and ${nodeType.name}, as the "to" prop suggests`);node=this._set(goal)}}const goalType=node.constructor;let started=(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.j$)(to),finished=!1;if(!started){const hasValueChanged=reset||!hasAnimated(this)&&hasFromChanged;(hasToChanged||hasValueChanged)&&(finished=(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.Xy)(computeGoal(value),goal),started=!finished),((0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.Xy)(anim.immediate,immediate)||immediate)&&(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.Xy)(config.decay,decay)&&(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.Xy)(config.velocity,velocity)||(started=!0)}if(finished&&isAnimating(this)&&(anim.changed&&!reset?started=!0:started||this._stop(prevTo)),!hasAsyncTo&&((started||(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.j$)(prevTo))&&(anim.values=node.getPayload(),anim.toValues=(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.j$)(to)?null:goalType==_react_spring_animated__WEBPACK_IMPORTED_MODULE_2__.eC?[1]:(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.qo)(goal)),anim.immediate!=immediate&&(anim.immediate=immediate,immediate||reset||this._set(prevTo)),started)){const{onRest:onRest}=anim;(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)(ACTIVE_EVENTS,(type=>mergeActiveFn(this,props,type)));const result=getFinishedResult(this,checkFinished(this,prevTo));(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.bl)(this._pendingCalls,result),this._pendingCalls.add(resolve),anim.changed&&_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.Wn.batchedUpdates((()=>{anim.changed=!reset,null==onRest||onRest(result,this),reset?callProp(defaultProps.onRest,result):null==anim.onStart||anim.onStart(result,this)}))}reset&&this._set(value),hasAsyncTo?resolve(runAsync(props.to,props,this._state,this)):started?this._start():isAnimating(this)&&!hasToChanged?this._pendingCalls.add(resolve):resolve(getNoopResult(value))}_focus(value){const anim=this.animation;value!==anim.to&&((0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.Ll)(this)&&this._detach(),anim.to=value,(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.Ll)(this)&&this._attach())}_attach(){let priority=0;const{to:to}=this.animation;(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.j$)(to)&&((0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.UI)(to,this),isFrameValue(to)&&(priority=to.priority+1)),this.priority=priority}_detach(){const{to:to}=this.animation;(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.j$)(to)&&(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.iL)(to,this)}_set(arg,idle=!0){const value=(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.je)(arg);if(!_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(value)){const oldNode=(0,_react_spring_animated__WEBPACK_IMPORTED_MODULE_2__.ys)(this);if(!oldNode||!(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.Xy)(value,oldNode.getValue())){const nodeType=(0,_react_spring_animated__WEBPACK_IMPORTED_MODULE_2__.sb)(value);oldNode&&oldNode.constructor==nodeType?oldNode.setValue(value):(0,_react_spring_animated__WEBPACK_IMPORTED_MODULE_2__.f3)(this,nodeType.create(value)),oldNode&&_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.Wn.batchedUpdates((()=>{this._onChange(value,idle)}))}}return(0,_react_spring_animated__WEBPACK_IMPORTED_MODULE_2__.ys)(this)}_onStart(){const anim=this.animation;anim.changed||(anim.changed=!0,sendEvent(this,"onStart",getFinishedResult(this,checkFinished(this,anim.to)),this))}_onChange(value,idle){idle||(this._onStart(),callProp(this.animation.onChange,value,this)),callProp(this.defaultProps.onChange,value,this),super._onChange(value,idle)}_start(){const anim=this.animation;(0,_react_spring_animated__WEBPACK_IMPORTED_MODULE_2__.ys)(this).reset((0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.je)(anim.to)),anim.immediate||(anim.fromValues=anim.values.map((node=>node.lastPosition))),isAnimating(this)||(setActiveBit(this,!0),isPaused(this)||this._resume())}_resume(){_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.OH.skipAnimation?this.finish():_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.fT.start(this)}_stop(goal,cancel){if(isAnimating(this)){setActiveBit(this,!1);const anim=this.animation;(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)(anim.values,(node=>{node.done=!0})),anim.toValues&&(anim.onChange=anim.onPause=anim.onResume=void 0),(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.k0)(this,{type:"idle",parent:this});const result=cancel?getCancelledResult(this.get()):getFinishedResult(this.get(),checkFinished(this,null!=goal?goal:anim.to));(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.bl)(this._pendingCalls,result),anim.changed&&(anim.changed=!1,sendEvent(this,"onRest",result,this))}}}function checkFinished(target,to){const goal=computeGoal(to),value=computeGoal(target.get());return(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.Xy)(value,goal)}function createLoopUpdate(props,loop=props.loop,to=props.to){let loopRet=callProp(loop);if(loopRet){const overrides=!0!==loopRet&&inferTo(loopRet),reverse=(overrides||props).reverse,reset=!overrides||overrides.reset;return createUpdate(_extends({},props,{loop:loop,default:!1,pause:void 0,to:!reverse||isAsyncTo(to)?to:void 0,from:reset?props.from:void 0,reset:reset},overrides))}}function createUpdate(props){const{to:to,from:from}=props=inferTo(props),keys=new Set;return _react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.obj(to)&&findDefined(to,keys),_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.obj(from)&&findDefined(from,keys),props.keys=keys.size?Array.from(keys):null,props}function declareUpdate(props){const update=createUpdate(props);return _react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(update.default)&&(update.default=getDefaultProps(update)),update}function findDefined(values,keys){(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.rU)(values,((value,key)=>null!=value&&keys.add(key)))}const ACTIVE_EVENTS=["onStart","onRest","onChange","onPause","onResume"];function mergeActiveFn(target,props,type){target.animation[type]=props[type]!==getDefaultProp(props,type)?resolveProp(props[type],target.key):void 0}function sendEvent(target,type,...args){var _target$animation$typ,_target$animation,_target$defaultProps$,_target$defaultProps;null==(_target$animation$typ=(_target$animation=target.animation)[type])||_target$animation$typ.call(_target$animation,...args),null==(_target$defaultProps$=(_target$defaultProps=target.defaultProps)[type])||_target$defaultProps$.call(_target$defaultProps,...args)}const BATCHED_EVENTS=["onStart","onChange","onRest"];let nextId=1;class Controller{constructor(props,flush){this.id=nextId++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),flush&&(this._flush=flush),props&&this.start(_extends({default:!0},props))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((spring=>spring.idle&&!spring.isDelayed&&!spring.isPaused))}get item(){return this._item}set item(item){this._item=item}get(){const values={};return this.each(((spring,key)=>values[key]=spring.get())),values}set(values){for(const key in values){const value=values[key];_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(value)||this.springs[key].set(value)}}update(props){return props&&this.queue.push(createUpdate(props)),this}start(props){let{queue:queue}=this;return props?queue=(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.qo)(props).map(createUpdate):this.queue=[],this._flush?this._flush(this,queue):(prepareKeys(this,queue),flushUpdateQueue(this,queue))}stop(arg,keys){if(arg!==!!arg&&(keys=arg),keys){const springs=this.springs;(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)((0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.qo)(keys),(key=>springs[key].stop(!!arg)))}else stopAsync(this._state,this._lastAsyncId),this.each((spring=>spring.stop(!!arg)));return this}pause(keys){if(_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(keys))this.start({pause:!0});else{const springs=this.springs;(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)((0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.qo)(keys),(key=>springs[key].pause()))}return this}resume(keys){if(_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(keys))this.start({pause:!1});else{const springs=this.springs;(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)((0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.qo)(keys),(key=>springs[key].resume()))}return this}each(iterator){(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.rU)(this.springs,iterator)}_onFrame(){const{onStart:onStart,onChange:onChange,onRest:onRest}=this._events,active=this._active.size>0,changed=this._changed.size>0;(active&&!this._started||changed&&!this._started)&&(this._started=!0,(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.yl)(onStart,(([onStart,result])=>{result.value=this.get(),onStart(result,this,this._item)})));const idle=!active&&this._started,values=changed||idle&&onRest.size?this.get():null;changed&&onChange.size&&(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.yl)(onChange,(([onChange,result])=>{result.value=values,onChange(result,this,this._item)})),idle&&(this._started=!1,(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.yl)(onRest,(([onRest,result])=>{result.value=values,onRest(result,this,this._item)})))}eventObserved(event){if("change"==event.type)this._changed.add(event.parent),event.idle||this._active.add(event.parent);else{if("idle"!=event.type)return;this._active.delete(event.parent)}_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.Wn.onFrame(this._onFrame)}}function flushUpdateQueue(ctrl,queue){return Promise.all(queue.map((props=>flushUpdate(ctrl,props)))).then((results=>getCombinedResult(ctrl,results)))}async function flushUpdate(ctrl,props,isLoop){const{keys:keys,to:to,from:from,loop:loop,onRest:onRest,onResolve:onResolve}=props,defaults=_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.obj(props.default)&&props.default;loop&&(props.loop=!1),!1===to&&(props.to=null),!1===from&&(props.from=null);const asyncTo=_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.arr(to)||_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.fun(to)?to:void 0;asyncTo?(props.to=void 0,props.onRest=void 0,defaults&&(defaults.onRest=void 0)):(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)(BATCHED_EVENTS,(key=>{const handler=props[key];if(_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.fun(handler)){const queue=ctrl._events[key];props[key]=({finished:finished,cancelled:cancelled})=>{const result=queue.get(handler);result?(finished||(result.finished=!1),cancelled&&(result.cancelled=!0)):queue.set(handler,{value:null,finished:finished||!1,cancelled:cancelled||!1})},defaults&&(defaults[key]=props[key])}}));const state=ctrl._state;props.pause===!state.paused?(state.paused=props.pause,(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.bl)(props.pause?state.pauseQueue:state.resumeQueue)):state.paused&&(props.pause=!0);const promises=(keys||Object.keys(ctrl.springs)).map((key=>ctrl.springs[key].start(props))),cancel=!0===props.cancel||!0===getDefaultProp(props,"cancel");(asyncTo||cancel&&state.asyncId)&&promises.push(scheduleProps(++ctrl._lastAsyncId,{props:props,state:state,actions:{pause:_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.ZT,resume:_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.ZT,start(props,resolve){cancel?(stopAsync(state,ctrl._lastAsyncId),resolve(getCancelledResult(ctrl))):(props.onRest=onRest,resolve(runAsync(asyncTo,props,state,ctrl)))}}})),state.paused&&await new Promise((resume=>{state.resumeQueue.add(resume)}));const result=getCombinedResult(ctrl,await Promise.all(promises));if(loop&&result.finished&&(!isLoop||!result.noop)){const nextProps=createLoopUpdate(props,loop,to);if(nextProps)return prepareKeys(ctrl,[nextProps]),flushUpdate(ctrl,nextProps,!0)}return onResolve&&_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.Wn.batchedUpdates((()=>onResolve(result,ctrl,ctrl.item))),result}function getSprings(ctrl,props){const springs=_extends({},ctrl.springs);return props&&(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)((0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.qo)(props),(props=>{_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(props.keys)&&(props=createUpdate(props)),_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.obj(props.to)||(props=_extends({},props,{to:void 0})),prepareSprings(springs,props,(key=>createSpring(key)))})),setSprings(ctrl,springs),springs}function setSprings(ctrl,springs){(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.rU)(springs,((spring,key)=>{ctrl.springs[key]||(ctrl.springs[key]=spring,(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.UI)(spring,ctrl))}))}function createSpring(key,observer){const spring=new SpringValue;return spring.key=key,observer&&(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.UI)(spring,observer),spring}function prepareSprings(springs,props,create){props.keys&&(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)(props.keys,(key=>{(springs[key]||(springs[key]=create(key)))._prepareNode(props)}))}function prepareKeys(ctrl,queue){(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)(queue,(props=>{prepareSprings(ctrl.springs,props,(key=>createSpring(key,ctrl)))}))}function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}const _excluded$3=["children"],SpringContext=_ref=>{let{children:children}=_ref,props=_objectWithoutPropertiesLoose(_ref,_excluded$3);const inherited=(0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(ctx),pause=props.pause||!!inherited.pause,immediate=props.immediate||!!inherited.immediate;props=(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.Pr)((()=>({pause:pause,immediate:immediate})),[pause,immediate]);const{Provider:Provider}=ctx;return react__WEBPACK_IMPORTED_MODULE_1__.createElement(Provider,{value:props},children)},ctx=function makeContext(target,init){return Object.assign(target,react__WEBPACK_IMPORTED_MODULE_1__.createContext(init)),target.Provider._context=target,target.Consumer._context=target,target}(SpringContext,{});SpringContext.Provider=ctx.Provider,SpringContext.Consumer=ctx.Consumer;const SpringRef=()=>{const current=[],SpringRef=function SpringRef(props){(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.ZR)();const results=[];return(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)(current,((ctrl,i)=>{if(_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(props))results.push(ctrl.start());else{const update=_getProps(props,ctrl,i);update&&results.push(ctrl.start(update))}})),results};SpringRef.current=current,SpringRef.add=function(ctrl){current.includes(ctrl)||current.push(ctrl)},SpringRef.delete=function(ctrl){const i=current.indexOf(ctrl);~i&¤t.splice(i,1)},SpringRef.pause=function(){return(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)(current,(ctrl=>ctrl.pause(...arguments))),this},SpringRef.resume=function(){return(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)(current,(ctrl=>ctrl.resume(...arguments))),this},SpringRef.set=function(values){(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)(current,(ctrl=>ctrl.set(values)))},SpringRef.start=function(props){const results=[];return(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)(current,((ctrl,i)=>{if(_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(props))results.push(ctrl.start());else{const update=this._getProps(props,ctrl,i);update&&results.push(ctrl.start(update))}})),results},SpringRef.stop=function(){return(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)(current,(ctrl=>ctrl.stop(...arguments))),this},SpringRef.update=function(props){return(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)(current,((ctrl,i)=>ctrl.update(this._getProps(props,ctrl,i)))),this};const _getProps=function _getProps(arg,ctrl,index){return _react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.fun(arg)?arg(index,ctrl):arg};return SpringRef._getProps=_getProps,SpringRef};function useSprings(length,props,deps){const propsFn=_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.fun(props)&&props;propsFn&&!deps&&(deps=[]);const ref=(0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)((()=>propsFn||3==arguments.length?SpringRef():void 0),[]),layoutId=(0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(0),forceUpdate=(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.NW)(),state=(0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)((()=>({ctrls:[],queue:[],flush(ctrl,updates){const springs=getSprings(ctrl,updates);return layoutId.current>0&&!state.queue.length&&!Object.keys(springs).some((key=>!ctrl.springs[key]))?flushUpdateQueue(ctrl,updates):new Promise((resolve=>{setSprings(ctrl,springs),state.queue.push((()=>{resolve(flushUpdateQueue(ctrl,updates))})),forceUpdate()}))}})),[]),ctrls=(0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)([...state.ctrls]),updates=[],prevLength=(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.zH)(length)||0;function declareUpdates(startIndex,endIndex){for(let i=startIndex;i{(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)(ctrls.current.slice(length,prevLength),(ctrl=>{detachRefs(ctrl,ref),ctrl.stop(!0)})),ctrls.current.length=length,declareUpdates(prevLength,length)}),[length]),(0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)((()=>{declareUpdates(0,Math.min(prevLength,length))}),deps);const springs=ctrls.current.map(((ctrl,i)=>getSprings(ctrl,updates[i]))),context=(0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(SpringContext),prevContext=(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.zH)(context),hasContext=context!==prevContext&&hasProps(context);(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.bt)((()=>{layoutId.current++,state.ctrls=ctrls.current;const{queue:queue}=state;queue.length&&(state.queue=[],(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)(queue,(cb=>cb()))),(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)(ctrls.current,((ctrl,i)=>{null==ref||ref.add(ctrl),hasContext&&ctrl.start({default:context});const update=updates[i];update&&(replaceRef(ctrl,update.ref),ctrl.ref?ctrl.queue.push(update):ctrl.start(update))}))})),(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.tf)((()=>()=>{(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)(state.ctrls,(ctrl=>ctrl.stop(!0)))}));const values=springs.map((x=>_extends({},x)));return ref?[values,ref]:values}function useSpring(props,deps){const isFn=_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.fun(props),[[values],ref]=useSprings(1,isFn?props:[props],isFn?deps||[]:deps);return isFn||2==arguments.length?[values,ref]:values}let TransitionPhase;function useTransition(data,props,deps){const propsFn=_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.fun(props)&&props,{reset:reset,sort:sort,trail:trail=0,expires:expires=!0,exitBeforeEnter:exitBeforeEnter=!1,onDestroyed:onDestroyed,ref:propsRef,config:propsConfig}=propsFn?propsFn():props,ref=(0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)((()=>propsFn||3==arguments.length?SpringRef():void 0),[]),items=(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.qo)(data),transitions=[],usedTransitions=(0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null),prevTransitions=reset?null:usedTransitions.current;(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.bt)((()=>{usedTransitions.current=transitions})),(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.tf)((()=>((0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)(usedTransitions.current,(t=>{var _t$ctrl$ref;null==(_t$ctrl$ref=t.ctrl.ref)||_t$ctrl$ref.add(t.ctrl);const change=changes.get(t);change&&t.ctrl.start(change.payload)})),()=>{(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)(usedTransitions.current,(t=>{t.expired&&clearTimeout(t.expirationId),detachRefs(t.ctrl,ref),t.ctrl.stop(!0)}))})));const keys=getKeys(items,propsFn?propsFn():props,prevTransitions),expired=reset&&usedTransitions.current||[];(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.bt)((()=>(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)(expired,(({ctrl:ctrl,item:item,key:key})=>{detachRefs(ctrl,ref),callProp(onDestroyed,item,key)}))));const reused=[];if(prevTransitions&&(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)(prevTransitions,((t,i)=>{t.expired?(clearTimeout(t.expirationId),expired.push(t)):~(i=reused[i]=keys.indexOf(t.key))&&(transitions[i]=t)})),(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)(items,((item,i)=>{transitions[i]||(transitions[i]={key:keys[i],item:item,phase:TransitionPhase.MOUNT,ctrl:new Controller},transitions[i].ctrl.item=item)})),reused.length){let i=-1;const{leave:leave}=propsFn?propsFn():props;(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)(reused,((keyIndex,prevIndex)=>{const t=prevTransitions[prevIndex];~keyIndex?(i=transitions.indexOf(t),transitions[i]=_extends({},t,{item:items[keyIndex]})):leave&&transitions.splice(++i,0,t)}))}_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.fun(sort)&&transitions.sort(((a,b)=>sort(a.item,b.item)));let delay=-trail;const forceUpdate=(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.NW)(),defaultProps=getDefaultProps(props),changes=new Map,exitingTransitions=(0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(new Map),forceChange=(0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(!1);(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)(transitions,((t,i)=>{const key=t.key,prevPhase=t.phase,p=propsFn?propsFn():props;let to,phase,propsDelay=callProp(p.delay||0,key);if(prevPhase==TransitionPhase.MOUNT)to=p.enter,phase=TransitionPhase.ENTER;else{const isLeave=keys.indexOf(key)<0;if(prevPhase!=TransitionPhase.LEAVE)if(isLeave)to=p.leave,phase=TransitionPhase.LEAVE;else{if(!(to=p.update))return;phase=TransitionPhase.UPDATE}else{if(isLeave)return;to=p.enter,phase=TransitionPhase.ENTER}}if(to=callProp(to,t.item,i),to=_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.obj(to)?inferTo(to):{to:to},!to.config){const config=propsConfig||defaultProps.config;to.config=callProp(config,t.item,i,phase)}delay+=trail;const payload=_extends({},defaultProps,{delay:propsDelay+delay,ref:propsRef,immediate:p.immediate,reset:!1},to);if(phase==TransitionPhase.ENTER&&_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(payload.from)){const _p=propsFn?propsFn():props,from=_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(_p.initial)||prevTransitions?_p.from:_p.initial;payload.from=callProp(from,t.item,i)}const{onResolve:onResolve}=payload;payload.onResolve=result=>{callProp(onResolve,result);const transitions=usedTransitions.current,t=transitions.find((t=>t.key===key));if(t&&(!result.cancelled||t.phase==TransitionPhase.UPDATE)&&t.ctrl.idle){const idle=transitions.every((t=>t.ctrl.idle));if(t.phase==TransitionPhase.LEAVE){const expiry=callProp(expires,t.item);if(!1!==expiry){const expiryMs=!0===expiry?0:expiry;if(t.expired=!0,!idle&&expiryMs>0)return void(expiryMs<=2147483647&&(t.expirationId=setTimeout(forceUpdate,expiryMs)))}}idle&&transitions.some((t=>t.expired))&&(exitingTransitions.current.delete(t),exitBeforeEnter&&(forceChange.current=!0),forceUpdate())}};const springs=getSprings(t.ctrl,payload);phase===TransitionPhase.LEAVE&&exitBeforeEnter?exitingTransitions.current.set(t,{phase:phase,springs:springs,payload:payload}):changes.set(t,{phase:phase,springs:springs,payload:payload})}));const context=(0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(SpringContext),prevContext=(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.zH)(context),hasContext=context!==prevContext&&hasProps(context);(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.bt)((()=>{hasContext&&(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)(transitions,(t=>{t.ctrl.start({default:context})}))}),[context]),(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)(changes,((_,t)=>{if(exitingTransitions.current.size){const ind=transitions.findIndex((state=>state.key===t.key));transitions.splice(ind,1)}})),(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.bt)((()=>{(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)(exitingTransitions.current.size?exitingTransitions.current:changes,(({phase:phase,payload:payload},t)=>{const{ctrl:ctrl}=t;t.phase=phase,null==ref||ref.add(ctrl),hasContext&&phase==TransitionPhase.ENTER&&ctrl.start({default:context}),payload&&(replaceRef(ctrl,payload.ref),ctrl.ref&&!forceChange.current?ctrl.update(payload):(ctrl.start(payload),forceChange.current&&(forceChange.current=!1)))}))}),reset?void 0:deps);const renderTransitions=render=>react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment,null,transitions.map(((t,i)=>{const{springs:springs}=changes.get(t)||t.ctrl,elem=render(_extends({},springs),t.item,t,i);return elem&&elem.type?react__WEBPACK_IMPORTED_MODULE_1__.createElement(elem.type,_extends({},elem.props,{key:_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.str(t.key)||_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.num(t.key)?t.key:t.ctrl.id,ref:elem.ref})):elem})));return ref?[renderTransitions,ref]:renderTransitions}!function(TransitionPhase){TransitionPhase.MOUNT="mount",TransitionPhase.ENTER="enter",TransitionPhase.UPDATE="update",TransitionPhase.LEAVE="leave"}(TransitionPhase||(TransitionPhase={}));let nextKey=1;function getKeys(items,{key:key,keys:keys=key},prevTransitions){if(null===keys){const reused=new Set;return items.map((item=>{const t=prevTransitions&&prevTransitions.find((t=>t.item===item&&t.phase!==TransitionPhase.LEAVE&&!reused.has(t)));return t?(reused.add(t),t.key):nextKey++}))}return _react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.und(keys)?items:_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.fun(keys)?items.map(keys):(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.qo)(keys)}class Interpolation extends FrameValue{constructor(source,args){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=source,this.calc=(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.mD)(...args);const value=this._get(),nodeType=(0,_react_spring_animated__WEBPACK_IMPORTED_MODULE_2__.sb)(value);(0,_react_spring_animated__WEBPACK_IMPORTED_MODULE_2__.f3)(this,nodeType.create(value))}advance(_dt){const value=this._get(),oldValue=this.get();(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.Xy)(value,oldValue)||((0,_react_spring_animated__WEBPACK_IMPORTED_MODULE_2__.ys)(this).setValue(value),this._onChange(value,this.idle)),!this.idle&&checkIdle(this._active)&&becomeIdle(this)}_get(){const inputs=_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.is.arr(this.source)?this.source.map(_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.je):(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.qo)((0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.je)(this.source));return this.calc(...inputs)}_start(){this.idle&&!checkIdle(this._active)&&(this.idle=!1,(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)((0,_react_spring_animated__WEBPACK_IMPORTED_MODULE_2__.He)(this),(node=>{node.done=!1})),_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.OH.skipAnimation?(_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.Wn.batchedUpdates((()=>this.advance())),becomeIdle(this)):_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.fT.start(this))}_attach(){let priority=1;(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)((0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.qo)(this.source),(source=>{(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.j$)(source)&&(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.UI)(source,this),isFrameValue(source)&&(source.idle||this._active.add(source),priority=Math.max(priority,source.priority+1))})),this.priority=priority,this._start()}_detach(){(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)((0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.qo)(this.source),(source=>{(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.j$)(source)&&(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.iL)(source,this)})),this._active.clear(),becomeIdle(this)}eventObserved(event){"change"==event.type?event.idle?this.advance():(this._active.add(event.parent),this._start()):"idle"==event.type?this._active.delete(event.parent):"priority"==event.type&&(this.priority=(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.qo)(this.source).reduce(((highest,parent)=>Math.max(highest,(isFrameValue(parent)?parent.priority:0)+1)),0))}}function isIdle(source){return!1!==source.idle}function checkIdle(active){return!active.size||Array.from(active).every(isIdle)}function becomeIdle(self){self.idle||(self.idle=!0,(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.S6)((0,_react_spring_animated__WEBPACK_IMPORTED_MODULE_2__.He)(self),(node=>{node.done=!0})),(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.k0)(self,{type:"idle",parent:self}))}_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.OH.assign({createStringInterpolator:_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.qS,to:(source,args)=>new Interpolation(source,args)});_react_spring_shared__WEBPACK_IMPORTED_MODULE_0__.fT.advance},"./node_modules/@react-spring/shared/dist/react-spring-shared.esm.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{B0:function(){return FluidValue},OH:function(){return globals},UI:function(){return addFluidObserver},k0:function(){return callFluidObservers},O9:function(){return colors},mD:function(){return createInterpolator},qS:function(){return createStringInterpolator},dE:function(){return defineHidden},ZR:function(){return deprecateDirectCall},LW:function(){return deprecateInterpolate},S6:function(){return each},rU:function(){return eachProp},yl:function(){return flush},bl:function(){return flushCalls},fT:function(){return frameLoop},Ll:function(){return getFluidObservers},je:function(){return getFluidValue},j$:function(){return hasFluidValue},is:function(){return is},Df:function(){return isAnimatedString},Xy:function(){return isEqual},ZT:function(){return noop},Wn:function(){return raf},iL:function(){return removeFluidObserver},qo:function(){return toArray},NW:function(){return useForceUpdate},bt:function(){return useLayoutEffect},Pr:function(){return useMemoOne},tf:function(){return useOnce},zH:function(){return usePrev}});let updateQueue=makeQueue();const raf=fn=>schedule(fn,updateQueue);let writeQueue=makeQueue();raf.write=fn=>schedule(fn,writeQueue);let onStartQueue=makeQueue();raf.onStart=fn=>schedule(fn,onStartQueue);let onFrameQueue=makeQueue();raf.onFrame=fn=>schedule(fn,onFrameQueue);let onFinishQueue=makeQueue();raf.onFinish=fn=>schedule(fn,onFinishQueue);let timeouts=[];raf.setTimeout=(handler,ms)=>{let time=raf.now()+ms,cancel=()=>{let i=timeouts.findIndex((t=>t.cancel==cancel));~i&&timeouts.splice(i,1),pendingCount-=~i?1:0},timeout={time:time,handler:handler,cancel:cancel};return timeouts.splice(findTimeout(time),0,timeout),pendingCount+=1,start(),timeout};let findTimeout=time=>~(~timeouts.findIndex((t=>t.time>time))||~timeouts.length);raf.cancel=fn=>{onStartQueue.delete(fn),onFrameQueue.delete(fn),updateQueue.delete(fn),writeQueue.delete(fn),onFinishQueue.delete(fn)},raf.sync=fn=>{sync=!0,raf.batchedUpdates(fn),sync=!1},raf.throttle=fn=>{let lastArgs;function queuedFn(){try{fn(...lastArgs)}finally{lastArgs=null}}function throttled(...args){lastArgs=args,raf.onStart(queuedFn)}return throttled.handler=fn,throttled.cancel=()=>{onStartQueue.delete(queuedFn),lastArgs=null},throttled};let nativeRaf="undefined"!=typeof window?window.requestAnimationFrame:()=>{};raf.use=impl=>nativeRaf=impl,raf.now="undefined"!=typeof performance?()=>performance.now():Date.now,raf.batchedUpdates=fn=>fn(),raf.catch=console.error,raf.frameLoop="always",raf.advance=()=>{"demand"!==raf.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):update()};let ts=-1,pendingCount=0,sync=!1;function schedule(fn,queue){sync?(queue.delete(fn),fn(0)):(queue.add(fn),start())}function start(){ts<0&&(ts=0,"demand"!==raf.frameLoop&&nativeRaf(loop))}function loop(){~ts&&(nativeRaf(loop),raf.batchedUpdates(update))}function update(){let prevTs=ts;ts=raf.now();let count=findTimeout(ts);count&&(eachSafely(timeouts.splice(0,count),(t=>t.handler())),pendingCount-=count),onStartQueue.flush(),updateQueue.flush(prevTs?Math.min(64,ts-prevTs):16.667),onFrameQueue.flush(),writeQueue.flush(),onFinishQueue.flush(),pendingCount||function stop(){ts=-1}()}function makeQueue(){let next=new Set,current=next;return{add(fn){pendingCount+=current!=next||next.has(fn)?0:1,next.add(fn)},delete:fn=>(pendingCount-=current==next&&next.has(fn)?1:0,next.delete(fn)),flush(arg){current.size&&(next=new Set,pendingCount-=current.size,eachSafely(current,(fn=>fn(arg)&&next.add(fn))),pendingCount+=next.size,current=next)}}}function eachSafely(values,each){values.forEach((value=>{try{each(value)}catch(e){raf.catch(e)}}))}var react=__webpack_require__("./node_modules/react/index.js");function noop(){}const defineHidden=(obj,key,value)=>Object.defineProperty(obj,key,{value:value,writable:!0,configurable:!0}),is={arr:Array.isArray,obj:a=>!!a&&"Object"===a.constructor.name,fun:a=>"function"==typeof a,str:a=>"string"==typeof a,num:a=>"number"==typeof a,und:a=>void 0===a};function isEqual(a,b){if(is.arr(a)){if(!is.arr(b)||a.length!==b.length)return!1;for(let i=0;iobj.forEach(fn);function eachProp(obj,fn,ctx){if(is.arr(obj))for(let i=0;iis.und(a)?[]:is.arr(a)?a:[a];function flush(queue,iterator){if(queue.size){const items=Array.from(queue);queue.clear(),each(items,iterator)}}const flushCalls=(queue,...args)=>flush(queue,(fn=>fn(...args))),isSSR=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let createStringInterpolator$1,to,colors$1=null,skipAnimation=!1,willAdvance=noop;var globals=Object.freeze({__proto__:null,get createStringInterpolator(){return createStringInterpolator$1},get to(){return to},get colors(){return colors$1},get skipAnimation(){return skipAnimation},get willAdvance(){return willAdvance},assign:globals=>{globals.to&&(to=globals.to),globals.now&&(raf.now=globals.now),void 0!==globals.colors&&(colors$1=globals.colors),null!=globals.skipAnimation&&(skipAnimation=globals.skipAnimation),globals.createStringInterpolator&&(createStringInterpolator$1=globals.createStringInterpolator),globals.requestAnimationFrame&&raf.use(globals.requestAnimationFrame),globals.batchedUpdates&&(raf.batchedUpdates=globals.batchedUpdates),globals.willAdvance&&(willAdvance=globals.willAdvance),globals.frameLoop&&(raf.frameLoop=globals.frameLoop)}});const startQueue=new Set;let currentFrame=[],prevFrame=[],priority=0;const frameLoop={get idle(){return!startQueue.size&&!currentFrame.length},start(animation){priority>animation.priority?(startQueue.add(animation),raf.onStart(flushStartQueue)):(startSafely(animation),raf(advance))},advance:advance,sort(animation){if(priority)raf.onFrame((()=>frameLoop.sort(animation)));else{const prevIndex=currentFrame.indexOf(animation);~prevIndex&&(currentFrame.splice(prevIndex,1),startUnsafely(animation))}},clear(){currentFrame=[],startQueue.clear()}};function flushStartQueue(){startQueue.forEach(startSafely),startQueue.clear(),raf(advance)}function startSafely(animation){currentFrame.includes(animation)||startUnsafely(animation)}function startUnsafely(animation){currentFrame.splice(function findIndex(arr,test){const index=arr.findIndex(test);return index<0?arr.length:index}(currentFrame,(other=>other.priority>animation.priority)),0,animation)}function advance(dt){const nextFrame=prevFrame;for(let i=0;i0}const colors={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},NUMBER="[-+]?\\d*\\.?\\d+";function call(...parts){return"\\(\\s*("+parts.join(")\\s*,\\s*(")+")\\s*\\)"}const rgb=new RegExp("rgb"+call(NUMBER,NUMBER,NUMBER)),rgba=new RegExp("rgba"+call(NUMBER,NUMBER,NUMBER,NUMBER)),hsl=new RegExp("hsl"+call(NUMBER,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla=new RegExp("hsla"+call(NUMBER,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",NUMBER)),hex3=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6=/^#([0-9a-fA-F]{6})$/,hex8=/^#([0-9a-fA-F]{8})$/;function hue2rgb(p,q,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?p+6*(q-p)*t:t<.5?q:t<2/3?p+(q-p)*(2/3-t)*6:p}function hslToRgb(h,s,l){const q=l<.5?l*(1+s):l+s-l*s,p=2*l-q,r=hue2rgb(p,q,h+1/3),g=hue2rgb(p,q,h),b=hue2rgb(p,q,h-1/3);return Math.round(255*r)<<24|Math.round(255*g)<<16|Math.round(255*b)<<8}function parse255(str){const int=parseInt(str,10);return int<0?0:int>255?255:int}function parse360(str){return(parseFloat(str)%360+360)%360/360}function parse1(str){const num=parseFloat(str);return num<0?0:num>1?255:Math.round(255*num)}function parsePercentage(str){const int=parseFloat(str);return int<0?0:int>100?1:int/100}function colorToRgba(input){let int32Color=function normalizeColor(color){let match;return"number"==typeof color?color>>>0===color&&color>=0&&color<=4294967295?color:null:(match=hex6.exec(color))?parseInt(match[1]+"ff",16)>>>0:colors$1&&void 0!==colors$1[color]?colors$1[color]:(match=rgb.exec(color))?(parse255(match[1])<<24|parse255(match[2])<<16|parse255(match[3])<<8|255)>>>0:(match=rgba.exec(color))?(parse255(match[1])<<24|parse255(match[2])<<16|parse255(match[3])<<8|parse1(match[4]))>>>0:(match=hex3.exec(color))?parseInt(match[1]+match[1]+match[2]+match[2]+match[3]+match[3]+"ff",16)>>>0:(match=hex8.exec(color))?parseInt(match[1],16)>>>0:(match=hex4.exec(color))?parseInt(match[1]+match[1]+match[2]+match[2]+match[3]+match[3]+match[4]+match[4],16)>>>0:(match=hsl.exec(color))?(255|hslToRgb(parse360(match[1]),parsePercentage(match[2]),parsePercentage(match[3])))>>>0:(match=hsla.exec(color))?(hslToRgb(parse360(match[1]),parsePercentage(match[2]),parsePercentage(match[3]))|parse1(match[4]))>>>0:null}(input);return null===int32Color?input:(int32Color=int32Color||0,`rgba(${(4278190080&int32Color)>>>24}, ${(16711680&int32Color)>>>16}, ${(65280&int32Color)>>>8}, ${(255&int32Color)/255})`)}const createInterpolator=(range,output,extrapolate)=>{if(is.fun(range))return range;if(is.arr(range))return createInterpolator({range:range,output:output,extrapolate:extrapolate});if(is.str(range.output[0]))return createStringInterpolator$1(range);const config=range,outputRange=config.output,inputRange=config.range||[0,1],extrapolateLeft=config.extrapolateLeft||config.extrapolate||"extend",extrapolateRight=config.extrapolateRight||config.extrapolate||"extend",easing=config.easing||(t=>t);return input=>{const range=function findRange(input,inputRange){for(var i=1;i=input);++i);return i-1}(input,inputRange);return function interpolate(input,inputMin,inputMax,outputMin,outputMax,easing,extrapolateLeft,extrapolateRight,map){let result=map?map(input):input;if(resultinputMax){if("identity"===extrapolateRight)return result;"clamp"===extrapolateRight&&(result=inputMax)}if(outputMin===outputMax)return outputMin;if(inputMin===inputMax)return input<=inputMin?outputMin:outputMax;inputMin===-1/0?result=-result:inputMax===1/0?result-=inputMin:result=(result-inputMin)/(inputMax-inputMin);result=easing(result),outputMin===-1/0?result=-result:outputMax===1/0?result+=outputMin:result=result*(outputMax-outputMin)+outputMin;return result}(input,inputRange[range],inputRange[range+1],outputRange[range],outputRange[range+1],easing,extrapolateLeft,extrapolateRight,config.map)}};function _extends(){return _extends=Object.assign||function(target){for(var i=1;iBoolean(arg&&arg[$get]),getFluidValue=arg=>arg&&arg[$get]?arg[$get]():arg,getFluidObservers=target=>target[$observers]||null;function callFluidObservers(target,event){let observers=target[$observers];observers&&observers.forEach((observer=>{!function callFluidObserver(observer,event){observer.eventObserved?observer.eventObserved(event):observer(event)}(observer,event)}))}class FluidValue{constructor(get){if(this[$get]=void 0,this[$observers]=void 0,!get&&!(get=this.get))throw Error("Unknown getter");setFluidGetter(this,get)}}const setFluidGetter=(target,get)=>setHidden(target,$get,get);function addFluidObserver(target,observer){if(target[$get]){let observers=target[$observers];observers||setHidden(target,$observers,observers=new Set),observers.has(observer)||(observers.add(observer),target.observerAdded&&target.observerAdded(observers.size,observer))}return observer}function removeFluidObserver(target,observer){let observers=target[$observers];if(observers&&observers.has(observer)){const count=observers.size-1;count?observers.delete(observer):target[$observers]=null,target.observerRemoved&&target.observerRemoved(count,observer)}}const setHidden=(target,key,value)=>Object.defineProperty(target,key,{value:value,writable:!0,configurable:!0}),numberRegex=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,colorRegex=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,unitRegex=new RegExp(`(${numberRegex.source})(%|[a-z]+)`,"i"),rgbaRegex=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,cssVariableRegex=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,variableToRgba=input=>{const[token,fallback]=parseCSSVariable(input);if(!token||isSSR())return input;const value=window.getComputedStyle(document.documentElement).getPropertyValue(token);if(value)return value.trim();if(fallback&&fallback.startsWith("--")){const _value=window.getComputedStyle(document.documentElement).getPropertyValue(fallback);return _value||input}return fallback&&cssVariableRegex.test(fallback)?variableToRgba(fallback):fallback||input},parseCSSVariable=current=>{const match=cssVariableRegex.exec(current);if(!match)return[,];const[,token,fallback]=match;return[token,fallback]};let namedColorRegex;const rgbaRound=(_,p1,p2,p3,p4)=>`rgba(${Math.round(p1)}, ${Math.round(p2)}, ${Math.round(p3)}, ${p4})`,createStringInterpolator=config=>{namedColorRegex||(namedColorRegex=colors$1?new RegExp(`(${Object.keys(colors$1).join("|")})(?!\\w)`,"g"):/^\b$/);const output=config.output.map((value=>getFluidValue(value).replace(cssVariableRegex,variableToRgba).replace(colorRegex,colorToRgba).replace(namedColorRegex,colorToRgba))),keyframes=output.map((value=>value.match(numberRegex).map(Number))),interpolators=keyframes[0].map(((_,i)=>keyframes.map((values=>{if(!(i in values))throw Error('The arity of each "output" value must be equal');return values[i]})))).map((output=>createInterpolator(_extends({},config,{output:output}))));return input=>{var _output$find;const missingUnit=!unitRegex.test(output[0])&&(null==(_output$find=output.find((value=>unitRegex.test(value))))?void 0:_output$find.replace(numberRegex,""));let i=0;return output[0].replace(numberRegex,(()=>`${interpolators[i++](input)}${missingUnit||""}`)).replace(rgbaRegex,rgbaRound)}},prefix="react-spring: ",once=fn=>{const func=fn;let called=!1;if("function"!=typeof func)throw new TypeError(`${prefix}once requires a function parameter`);return(...args)=>{called||(func(...args),called=!0)}},warnInterpolate=once(console.warn);function deprecateInterpolate(){warnInterpolate(`${prefix}The "interpolate" function is deprecated in v9 (use "to" instead)`)}const warnDirectCall=once(console.warn);function deprecateDirectCall(){warnDirectCall(`${prefix}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function isAnimatedString(value){return is.str(value)&&("#"==value[0]||/\d/.test(value)||!isSSR()&&cssVariableRegex.test(value)||value in(colors$1||{}))}const useLayoutEffect="undefined"!=typeof window&&window.document&&window.document.createElement?react.useLayoutEffect:react.useEffect;function useForceUpdate(){const update=(0,react.useState)()[1],isMounted=(()=>{const isMounted=(0,react.useRef)(!1);return useLayoutEffect((()=>(isMounted.current=!0,()=>{isMounted.current=!1})),[]),isMounted})();return()=>{isMounted.current&&update(Math.random())}}function useMemoOne(getResult,inputs){const[initial]=(0,react.useState)((()=>({inputs:inputs,result:getResult()}))),committed=(0,react.useRef)(),prevCache=committed.current;let cache=prevCache;if(cache){Boolean(inputs&&cache.inputs&&function areInputsEqual(next,prev){if(next.length!==prev.length)return!1;for(let i=0;i{committed.current=cache,prevCache==initial&&(initial.inputs=initial.result=void 0)}),[cache]),cache.result}const useOnce=effect=>(0,react.useEffect)(effect,emptyDeps),emptyDeps=[];function usePrev(value){const prevRef=(0,react.useRef)();return(0,react.useEffect)((()=>{prevRef.current=value})),prevRef.current}},"./node_modules/@react-spring/web/dist/react-spring-web.esm.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{a:function(){return animated},animated:function(){return animated},useSpring:function(){return _react_spring_core__WEBPACK_IMPORTED_MODULE_0__.useSpring},useTransition:function(){return _react_spring_core__WEBPACK_IMPORTED_MODULE_0__.useTransition}});var _react_spring_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@react-spring/core/dist/react-spring-core.esm.js"),react_dom__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react-dom/index.js"),_react_spring_shared__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@react-spring/shared/dist/react-spring-shared.esm.js"),_react_spring_animated__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@react-spring/animated/dist/react-spring-animated.esm.js");function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}const _excluded$2=["style","children","scrollTop","scrollLeft"],isCustomPropRE=/^--/;function dangerousStyleValue(name,value){return null==value||"boolean"==typeof value||""===value?"":"number"!=typeof value||0===value||isCustomPropRE.test(name)||isUnitlessNumber.hasOwnProperty(name)&&isUnitlessNumber[name]?(""+value).trim():value+"px"}const attributeCache={};let isUnitlessNumber={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const prefixes=["Webkit","Ms","Moz","O"];isUnitlessNumber=Object.keys(isUnitlessNumber).reduce(((acc,prop)=>(prefixes.forEach((prefix=>acc[((prefix,key)=>prefix+key.charAt(0).toUpperCase()+key.substring(1))(prefix,prop)]=acc[prop])),acc)),isUnitlessNumber);const _excluded$1=["x","y","z"],domTransforms=/^(matrix|translate|scale|rotate|skew)/,pxTransforms=/^(translate)/,degTransforms=/^(rotate|skew)/,addUnit=(value,unit)=>_react_spring_shared__WEBPACK_IMPORTED_MODULE_2__.is.num(value)&&0!==value?value+unit:value,isValueIdentity=(value,id)=>_react_spring_shared__WEBPACK_IMPORTED_MODULE_2__.is.arr(value)?value.every((v=>isValueIdentity(v,id))):_react_spring_shared__WEBPACK_IMPORTED_MODULE_2__.is.num(value)?value===id:parseFloat(value)===id;class AnimatedStyle extends _react_spring_animated__WEBPACK_IMPORTED_MODULE_3__.rS{constructor(_ref){let{x:x,y:y,z:z}=_ref,style=_objectWithoutPropertiesLoose(_ref,_excluded$1);const inputs=[],transforms=[];(x||y||z)&&(inputs.push([x||0,y||0,z||0]),transforms.push((xyz=>[`translate3d(${xyz.map((v=>addUnit(v,"px"))).join(",")})`,isValueIdentity(xyz,0)]))),(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_2__.rU)(style,((value,key)=>{if("transform"===key)inputs.push([value||""]),transforms.push((transform=>[transform,""===transform]));else if(domTransforms.test(key)){if(delete style[key],_react_spring_shared__WEBPACK_IMPORTED_MODULE_2__.is.und(value))return;const unit=pxTransforms.test(key)?"px":degTransforms.test(key)?"deg":"";inputs.push((0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_2__.qo)(value)),transforms.push("rotate3d"===key?([x,y,z,deg])=>[`rotate3d(${x},${y},${z},${addUnit(deg,unit)})`,isValueIdentity(deg,0)]:input=>[`${key}(${input.map((v=>addUnit(v,unit))).join(",")})`,isValueIdentity(input,key.startsWith("scale")?1:0)])}})),inputs.length&&(style.transform=new FluidTransform(inputs,transforms)),super(style)}}class FluidTransform extends _react_spring_shared__WEBPACK_IMPORTED_MODULE_2__.B0{constructor(inputs,transforms){super(),this._value=null,this.inputs=inputs,this.transforms=transforms}get(){return this._value||(this._value=this._get())}_get(){let transform="",identity=!0;return(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_2__.S6)(this.inputs,((input,i)=>{const arg1=(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_2__.je)(input[0]),[t,id]=this.transforms[i](_react_spring_shared__WEBPACK_IMPORTED_MODULE_2__.is.arr(arg1)?arg1:input.map(_react_spring_shared__WEBPACK_IMPORTED_MODULE_2__.je));transform+=" "+t,identity=identity&&id})),identity?"none":transform}observerAdded(count){1==count&&(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_2__.S6)(this.inputs,(input=>(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_2__.S6)(input,(value=>(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_2__.j$)(value)&&(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_2__.UI)(value,this)))))}observerRemoved(count){0==count&&(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_2__.S6)(this.inputs,(input=>(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_2__.S6)(input,(value=>(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_2__.j$)(value)&&(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_2__.iL)(value,this)))))}eventObserved(event){"change"==event.type&&(this._value=null),(0,_react_spring_shared__WEBPACK_IMPORTED_MODULE_2__.k0)(this,event)}}const _excluded=["scrollTop","scrollLeft"];_react_spring_core__WEBPACK_IMPORTED_MODULE_0__.Globals.assign({batchedUpdates:react_dom__WEBPACK_IMPORTED_MODULE_1__.unstable_batchedUpdates,createStringInterpolator:_react_spring_shared__WEBPACK_IMPORTED_MODULE_2__.qS,colors:_react_spring_shared__WEBPACK_IMPORTED_MODULE_2__.O9});const animated=(0,_react_spring_animated__WEBPACK_IMPORTED_MODULE_3__.Ld)(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function applyAnimatedValues(instance,props){if(!instance.nodeType||!instance.setAttribute)return!1;const isFilterElement="filter"===instance.nodeName||instance.parentNode&&"filter"===instance.parentNode.nodeName,_ref=props,{style:style,children:children,scrollTop:scrollTop,scrollLeft:scrollLeft}=_ref,attributes=_objectWithoutPropertiesLoose(_ref,_excluded$2),values=Object.values(attributes),names=Object.keys(attributes).map((name=>isFilterElement||instance.hasAttribute(name)?name:attributeCache[name]||(attributeCache[name]=name.replace(/([A-Z])/g,(n=>"-"+n.toLowerCase())))));void 0!==children&&(instance.textContent=children);for(let name in style)if(style.hasOwnProperty(name)){const value=dangerousStyleValue(name,style[name]);isCustomPropRE.test(name)?instance.style.setProperty(name,value):instance.style[name]=value}names.forEach(((name,i)=>{instance.setAttribute(name,values[i])})),void 0!==scrollTop&&(instance.scrollTop=scrollTop),void 0!==scrollLeft&&(instance.scrollLeft=scrollLeft)},createAnimatedStyle:style=>new AnimatedStyle(style),getComponentProps:_ref=>_objectWithoutPropertiesLoose(_ref,_excluded)}).animated},"./node_modules/@react-stately/toggle/dist/module.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{l:function(){return $3017fa7ffdddec74$export$8042c6c013fd5226}});var _react_stately_utils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@react-stately/utils/dist/module.js");function $3017fa7ffdddec74$export$8042c6c013fd5226(props={}){let{isReadOnly:isReadOnly}=props,[isSelected,setSelected]=(0,_react_stately_utils__WEBPACK_IMPORTED_MODULE_0__.zk)(props.isSelected,props.defaultSelected||!1,props.onChange);return{isSelected:isSelected,setSelected:function updateSelected(value){isReadOnly||setSelected(value)},toggle:function toggleState(){isReadOnly||setSelected(!isSelected)}}}},"./node_modules/@react-stately/utils/dist/module.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{N4:function(){return $9446cca9a3875146$export$cb6e0bb50bc19463},uZ:function(){return $9446cca9a3875146$export$7d15b64cf5a3a4c4},zk:function(){return $458b0a5536c1a7cf$export$40bfa8c7b0832715}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function $458b0a5536c1a7cf$export$40bfa8c7b0832715(value,defaultValue,onChange){let[stateValue,setStateValue]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(value||defaultValue),ref=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(void 0!==value),wasControlled=ref.current,isControlled=void 0!==value,stateRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(stateValue);wasControlled!==isControlled&&console.warn(`WARN: A component changed from ${wasControlled?"controlled":"uncontrolled"} to ${isControlled?"controlled":"uncontrolled"}.`),ref.current=isControlled;let setValue=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(((value,...args)=>{let onChangeCaller=(value,...onChangeArgs)=>{onChange&&(Object.is(stateRef.current,value)||onChange(value,...onChangeArgs)),isControlled||(stateRef.current=value)};if("function"==typeof value){console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),setStateValue(((oldValue,...functionArgs)=>{let interceptedValue=value(isControlled?stateRef.current:oldValue,...functionArgs);return onChangeCaller(interceptedValue,...args),isControlled?oldValue:interceptedValue}))}else isControlled||setStateValue(value),onChangeCaller(value,...args)}),[isControlled,onChange]);return isControlled?stateRef.current=value:value=stateValue,[value,setValue]}function $9446cca9a3875146$export$7d15b64cf5a3a4c4(value,min=-1/0,max=1/0){return Math.min(Math.max(value,min),max)}function $9446cca9a3875146$export$cb6e0bb50bc19463(value,min,max,step){let remainder=(value-(isNaN(min)?0:min))%step,snappedValue=2*Math.abs(remainder)>=step?value+Math.sign(remainder)*(step-Math.abs(remainder)):value-remainder;isNaN(min)?!isNaN(max)&&snappedValue>max&&(snappedValue=Math.floor(max/step)*step):snappedValuemax&&(snappedValue=min+Math.floor((max-min)/step)*step);let string=step.toString(),index=string.indexOf("."),precision=index>=0?string.length-index:0;if(precision>0){let pow=Math.pow(10,precision);snappedValue=Math.round(snappedValue*pow)/pow}return snappedValue}},"./node_modules/@storybook/addon-a11y/dist/esm/a11yHighlight.js":function(module,__unused_webpack___webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.set.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var global_window=__webpack_require__("./node_modules/global/window.js"),window_default=__webpack_require__.n(global_window),esm=__webpack_require__("./node_modules/@storybook/addons/dist/esm/index.js"),dist_esm=__webpack_require__("./node_modules/@storybook/core-events/dist/esm/index.js"),constants=__webpack_require__("./node_modules/@storybook/addon-a11y/dist/esm/constants.js");module=__webpack_require__.hmd(module);var a11yHighlight_document=window_default().document;module&&module.hot;var channel=esm.KP.getChannel(),resetHighlight=function resetHighlight(){var id=constants.w_,sheetToBeRemoved=a11yHighlight_document.getElementById(id);sheetToBeRemoved&&sheetToBeRemoved.parentNode.removeChild(sheetToBeRemoved)};channel.on(dist_esm.STORY_CHANGED,resetHighlight),channel.on(constants.FP.HIGHLIGHT,(function highlight(infos){var id=constants.w_;resetHighlight();var elements=Array.from(new Set(infos.elements)),sheet=a11yHighlight_document.createElement("style");sheet.setAttribute("id",id),sheet.innerHTML=elements.map((function(target){return"".concat(target,"{\n ").concat(function highlightStyle(color){return"\n outline: 2px dashed ".concat(color,";\n outline-offset: 2px;\n box-shadow: 0 0 0 6px rgba(255,255,255,0.6);\n")}(infos.color),"\n }")})).join(" "),a11yHighlight_document.head.appendChild(sheet)}))},"./node_modules/@storybook/addon-a11y/dist/esm/a11yRunner.js":function(module,__unused_webpack___webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/regenerator-runtime/runtime.js");var global__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/global/window.js"),global__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(global__WEBPACK_IMPORTED_MODULE_3__),_storybook_addons__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@storybook/addons/dist/esm/index.js"),_constants__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@storybook/addon-a11y/dist/esm/constants.js");function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}module=__webpack_require__.hmd(module);var document=global__WEBPACK_IMPORTED_MODULE_3___default().document,globalWindow=global__WEBPACK_IMPORTED_MODULE_3___default().window;module&&module.hot;var activeStoryId,channel=_storybook_addons__WEBPACK_IMPORTED_MODULE_5__.KP.getChannel(),active=!1,handleRequest=function(){var _ref=_asyncToGenerator(regeneratorRuntime.mark((function _callee(storyId){var _yield$getParams;return regeneratorRuntime.wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=2,getParams(storyId);case 2:if(_yield$getParams=_context.sent,_yield$getParams.manual){_context.next=7;break}return _context.next=7,run(storyId);case 7:case"end":return _context.stop()}}),_callee)})));return function handleRequest(_x){return _ref.apply(this,arguments)}}(),run=function(){var _ref2=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(storyId){var input,axe,_input$element,element,config,_input$options,options,htmlElement,result;return regeneratorRuntime.wrap((function _callee2$(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return activeStoryId=storyId,_context2.prev=1,_context2.next=4,getParams(storyId);case 4:if(input=_context2.sent,active){_context2.next=19;break}return active=!0,channel.emit(_constants__WEBPACK_IMPORTED_MODULE_4__.FP.RUNNING),_context2.next=10,__webpack_require__.e(899).then(__webpack_require__.t.bind(__webpack_require__,"./node_modules/@storybook/addon-a11y/node_modules/axe-core/axe.js",23));case 10:return axe=_context2.sent.default,_input$element=input.element,element=void 0===_input$element?"#root":_input$element,config=input.config,_input$options=input.options,options=void 0===_input$options?{}:_input$options,htmlElement=document.querySelector(element),axe.reset(),config&&axe.configure(config),_context2.next=17,axe.run(htmlElement,options);case 17:result=_context2.sent,activeStoryId===storyId?channel.emit(_constants__WEBPACK_IMPORTED_MODULE_4__.FP.RESULT,result):(active=!1,run(activeStoryId));case 19:_context2.next=24;break;case 21:_context2.prev=21,_context2.t0=_context2.catch(1),channel.emit(_constants__WEBPACK_IMPORTED_MODULE_4__.FP.ERROR,_context2.t0);case 24:return _context2.prev=24,active=!1,_context2.finish(24);case 27:case"end":return _context2.stop()}}),_callee2,null,[[1,21,24,27]])})));return function run(_x2){return _ref2.apply(this,arguments)}}(),getParams=function(){var _ref3=_asyncToGenerator(regeneratorRuntime.mark((function _callee3(storyId){var _ref4,parameters;return regeneratorRuntime.wrap((function _callee3$(_context3){for(;;)switch(_context3.prev=_context3.next){case 0:return _context3.next=2,globalWindow.__STORYBOOK_STORY_STORE__.loadStory({storyId:storyId});case 2:if(_context3.t0=_context3.sent,_context3.t0){_context3.next=5;break}_context3.t0={};case 5:return _ref4=_context3.t0,parameters=_ref4.parameters,_context3.abrupt("return",parameters.a11y||{config:{},options:{restoreScroll:!0}});case 8:case"end":return _context3.stop()}}),_callee3)})));return function getParams(_x3){return _ref3.apply(this,arguments)}}();channel.on(_constants__WEBPACK_IMPORTED_MODULE_4__.FP.REQUEST,handleRequest),channel.on(_constants__WEBPACK_IMPORTED_MODULE_4__.FP.MANUAL,run)},"./node_modules/@storybook/addon-a11y/dist/esm/constants.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{FP:function(){return EVENTS},w_:function(){return HIGHLIGHT_STYLE_ID}});var ADDON_ID="storybook/a11y",HIGHLIGHT_STYLE_ID=("".concat(ADDON_ID,"/panel"),"a11yHighlight"),EVENTS={RESULT:"".concat(ADDON_ID,"/result"),REQUEST:"".concat(ADDON_ID,"/request"),RUNNING:"".concat(ADDON_ID,"/running"),ERROR:"".concat(ADDON_ID,"/error"),MANUAL:"".concat(ADDON_ID,"/manual"),HIGHLIGHT:"".concat(ADDON_ID,"/highlight")}},"./node_modules/@storybook/addon-a11y/preview.js-generated-config-entry.js":function(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__){"use strict";var addon_a11y_preview_namespaceObject={};__webpack_require__.r(addon_a11y_preview_namespaceObject);var ClientApi=__webpack_require__("./node_modules/@storybook/client-api/dist/esm/ClientApi.js");__webpack_require__("./node_modules/@storybook/addon-a11y/dist/esm/a11yRunner.js"),__webpack_require__("./node_modules/@storybook/addon-a11y/dist/esm/a11yHighlight.js");function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}Object.keys(addon_a11y_preview_namespaceObject).forEach((function(key){var value=addon_a11y_preview_namespaceObject[key];switch(key){case"args":return(0,ClientApi.uc)(value);case"argTypes":return(0,ClientApi.v9)(value);case"decorators":return value.forEach((function(decorator){return(0,ClientApi.$9)(decorator,!1)}));case"loaders":return value.forEach((function(loader){return(0,ClientApi.HZ)(loader,!1)}));case"parameters":return(0,ClientApi.h1)(function _objectSpread(target){for(var i=1;i0&&void 0!==arguments[0]?arguments[0]:{};Object.assign(config,options)};function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}var findProto=function findProto(obj,callback){var proto=Object.getPrototypeOf(obj);return!proto||callback(proto)?proto:findProto(proto,callback)},isReactSyntheticEvent=function isReactSyntheticEvent(e){return Boolean("object"===_typeof(e)&&e&&findProto(e,(function(proto){return/^Synthetic(?:Base)?Event$/.test(proto.constructor.name)}))&&"function"==typeof e.persist)},serializeArg=function serializeArg(a){if(isReactSyntheticEvent(a)){var e=Object.create(a.constructor.prototype,Object.getOwnPropertyDescriptors(a));e.persist();var viewDescriptor=Object.getOwnPropertyDescriptor(e,"view"),view=null==viewDescriptor?void 0:viewDescriptor.value;return"object"===_typeof(view)&&"Window"===(null==view?void 0:view.constructor.name)&&Object.defineProperty(e,"view",Object.assign({},viewDescriptor,{value:Object.create(view.constructor.prototype)})),e}return a};function action(name){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},actionOptions=Object.assign({},config,options),handler=function actionHandler(){for(var channel=esm.KP.getChannel(),id=v4_default()(),minDepth=5,_len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];var serializedArgs=args.map(serializeArg),normalizedArgs=args.length>1?serializedArgs:serializedArgs[0],actionDisplayToEmit={id:id,count:0,data:{name:name,args:normalizedArgs},options:Object.assign({},actionOptions,{maxDepth:minDepth+(actionOptions.depth||3),allowFunction:actionOptions.allowFunction||!1})};channel.emit(EVENT_ID,actionDisplayToEmit)};return handler}__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1?_len-1:0),_key=1;_key<_len;_key++)handles[_key-1]=arguments[_key];var actionsObject=actionsFn.apply(void 0,handles);return Object.entries(actionsObject).map((function(_ref){var _ref2=withActions_slicedToArray(_ref,2),key=_ref2[0],action=_ref2[1],_key$match2=withActions_slicedToArray(key.match(delegateEventSplitter),3),eventName=(_key$match2[0],_key$match2[1]),selector=_key$match2[2];return{eventName:eventName,handler:function handler(e){selector&&!hasMatchInAncestry(e.target,selector)||action(e)}}}))},applyEventHandlers=browser_default()((function(actionsFn){for(var _len2=arguments.length,handles=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)handles[_key2-1]=arguments[_key2];(0,hooks.d4)((function(){if(null!=root){var handlers=createHandlers.apply(void 0,[actionsFn].concat(handles));return handlers.forEach((function(_ref3){var eventName=_ref3.eventName,handler=_ref3.handler;return root.addEventListener(eventName,handler)})),function(){return handlers.forEach((function(_ref4){var eventName=_ref4.eventName,handler=_ref4.handler;return root.removeEventListener(eventName,handler)}))}}}),[root,actionsFn,handles])}),(0,ts_dedent_esm.C)(withActions_templateObject||(withActions_templateObject=function withActions_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n withActions(options) is deprecated, please configure addon-actions using the addParameter api:\n\n addParameters({\n actions: {\n handles: options\n },\n });\n "])))),withActions=(0,make_decorator.h)({name:"withActions",parameterName:"actions",skipIfNoParametersOrOptions:!0,wrapper:function wrapper(getStory,context,_ref5){var parameters=_ref5.parameters,options=_ref5.options;return function applyDeprecatedOptions(actionsFn,options){options&&applyEventHandlers(actionsFn,options)}(actions,options),parameters&¶meters.handles&&applyEventHandlers.apply(void 0,[actions].concat(_toConsumableArray(parameters.handles))),getStory(context)}});(module=__webpack_require__.hmd(module))&&module.hot},"./node_modules/@storybook/addon-actions/dist/esm/models/DecoratorFunction.js":function(){},"./node_modules/@storybook/addon-actions/dist/esm/models/HandlerFunction.js":function(){},"./node_modules/@storybook/addon-actions/dist/esm/models/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _DecoratorFunction__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@storybook/addon-actions/dist/esm/models/DecoratorFunction.js");__webpack_require__.o(_DecoratorFunction__WEBPACK_IMPORTED_MODULE_0__,"action")&&__webpack_require__.d(__webpack_exports__,{action:function(){return _DecoratorFunction__WEBPACK_IMPORTED_MODULE_0__.action}}),__webpack_require__.o(_DecoratorFunction__WEBPACK_IMPORTED_MODULE_0__,"configureActions")&&__webpack_require__.d(__webpack_exports__,{configureActions:function(){return _DecoratorFunction__WEBPACK_IMPORTED_MODULE_0__.configureActions}}),__webpack_require__.o(_DecoratorFunction__WEBPACK_IMPORTED_MODULE_0__,"withActions")&&__webpack_require__.d(__webpack_exports__,{withActions:function(){return _DecoratorFunction__WEBPACK_IMPORTED_MODULE_0__.withActions}});var _HandlerFunction__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@storybook/addon-actions/dist/esm/models/HandlerFunction.js");__webpack_require__.o(_HandlerFunction__WEBPACK_IMPORTED_MODULE_1__,"action")&&__webpack_require__.d(__webpack_exports__,{action:function(){return _HandlerFunction__WEBPACK_IMPORTED_MODULE_1__.action}}),__webpack_require__.o(_HandlerFunction__WEBPACK_IMPORTED_MODULE_1__,"configureActions")&&__webpack_require__.d(__webpack_exports__,{configureActions:function(){return _HandlerFunction__WEBPACK_IMPORTED_MODULE_1__.configureActions}}),__webpack_require__.o(_HandlerFunction__WEBPACK_IMPORTED_MODULE_1__,"withActions")&&__webpack_require__.d(__webpack_exports__,{withActions:function(){return _HandlerFunction__WEBPACK_IMPORTED_MODULE_1__.withActions}})},"./node_modules/@storybook/addon-actions/preview.js-generated-config-entry.js":function(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__){"use strict";var addon_actions_preview_namespaceObject={};__webpack_require__.r(addon_actions_preview_namespaceObject),__webpack_require__.d(addon_actions_preview_namespaceObject,{argsEnhancers:function(){return argsEnhancers},decorators:function(){return decorators}});var ClientApi=__webpack_require__("./node_modules/@storybook/client-api/dist/esm/ClientApi.js"),esm=__webpack_require__("./node_modules/@storybook/addon-actions/dist/esm/index.js"),decorators=[esm.withActions];__webpack_require__("./node_modules/core-js/modules/es.regexp.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1&&void 0!==arguments[1]?arguments[1]:[],defaultName=arguments.length>2?arguments[2]:void 0;if("transparent"===currentSelectedValue)return"transparent";if(backgrounds.find((function(background){return background.value===currentSelectedValue})))return currentSelectedValue;var defaultBackground=backgrounds.find((function(background){return background.name===defaultName}));if(defaultBackground)return defaultBackground.value;if(defaultName){var availableColors=backgrounds.map((function(background){return background.name})).join(", ");dist_esm.kg.warn((0,esm.C)(_templateObject||(_templateObject=_taggedTemplateLiteral(['\n Backgrounds Addon: could not find the default color "','".\n These are the available colors for your story based on your configuration:\n ',".\n "])),defaultName,availableColors))}return"transparent"}(globalsBackgroundColor,backgroundsConfig.values,backgroundsConfig.default)}),[backgroundsConfig,globalsBackgroundColor]),isActive=(0,hooks.Ye)((function(){return selectedBackgroundColor&&"transparent"!==selectedBackgroundColor}),[selectedBackgroundColor]),selector="docs"===context.viewMode?"#anchor--".concat(context.id," .docs-story"):".sb-show-main",backgroundStyles=(0,hooks.Ye)((function(){return"\n ".concat(selector," {\n background: ").concat(selectedBackgroundColor," !important;\n ").concat(function isReduceMotionEnabled(){return helpers_window.matchMedia("(prefers-reduced-motion: reduce)").matches}()?"":"transition: background-color 0.3s;","\n }\n ")}),[selectedBackgroundColor,selector]);return(0,hooks.d4)((function(){var selectorId="docs"===context.viewMode?"addon-backgrounds-docs-".concat(context.id):"addon-backgrounds-color";isActive?function addBackgroundStyle(selector,css,storyId){var existingStyle=helpers_document.getElementById(selector);if(existingStyle)existingStyle.innerHTML!==css&&(existingStyle.innerHTML=css);else{var style=helpers_document.createElement("style");style.setAttribute("id",selector),style.innerHTML=css;var gridStyleSelector="addon-backgrounds-grid".concat(storyId?"-docs-".concat(storyId):""),existingGridStyle=helpers_document.getElementById(gridStyleSelector);existingGridStyle?existingGridStyle.parentElement.insertBefore(style,existingGridStyle):helpers_document.head.appendChild(style)}}(selectorId,backgroundStyles,"docs"===context.viewMode?context.id:null):clearStyles(selectorId)}),[isActive,backgroundStyles,context]),StoryFn()}],parameters={backgrounds:{grid:{cellSize:20,opacity:.5,cellAmount:5},values:[{name:"light",value:"#F8F8F8"},{name:"dark",value:"#333333"}]}};function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}Object.keys(addon_backgrounds_preview_namespaceObject).forEach((function(key){var value=addon_backgrounds_preview_namespaceObject[key];switch(key){case"args":return(0,ClientApi.uc)(value);case"argTypes":return(0,ClientApi.v9)(value);case"decorators":return value.forEach((function(decorator){return(0,ClientApi.$9)(decorator,!1)}));case"loaders":return value.forEach((function(loader){return(0,ClientApi.HZ)(loader,!1)}));case"parameters":return(0,ClientApi.h1)(function _objectSpread(target){for(var i=1;i4&&void 0!==arguments[4]&&arguments[4],_positionCoordinate=positionCoordinate(position,measurements),x=_positionCoordinate.x,y=_positionCoordinate.y,_offset=offset(type,position,measurements,7,external),offsetX=_offset.offsetX,offsetY=_offset.offsetY;x+=offsetX,y+=offsetY;var _configureText=configureText(context,text),w=_configureText.w,h=_configureText.h;if(prevRect&&collide({x:x,y:y,w:w,h:h},prevRect)){var adjusted=overlapAdjustment(position,{x:x,y:y,w:w,h:h},prevRect);x=adjusted.x,y=adjusted.y}return textWithRect(context,type,{x:x,y:y,w:w,h:h},text)}(context,measurements,l,rects[idx-1],external);rects[idx]=rect}))}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iMath.abs(windowExtremities_right-extremities.right)?"left":"right",y:distances_top>distances_bottom?"top":"bottom"}}function drawBoxModel(element){return function(context){if(element&&context){var measurements=function measureElement(element){var style=window_default().getComputedStyle(element),_element$getBoundingC=element.getBoundingClientRect(),top=_element$getBoundingC.top,left=_element$getBoundingC.left,right=_element$getBoundingC.right,bottom=_element$getBoundingC.bottom,width=_element$getBoundingC.width,height=_element$getBoundingC.height,marginTop=style.marginTop,marginBottom=style.marginBottom,marginLeft=style.marginLeft,marginRight=style.marginRight,paddingTop=style.paddingTop,paddingBottom=style.paddingBottom,paddingLeft=style.paddingLeft,paddingRight=style.paddingRight,borderBottomWidth=style.borderBottomWidth,borderTopWidth=style.borderTopWidth,borderLeftWidth=style.borderLeftWidth,borderRightWidth=style.borderRightWidth;top+=window_default().window.scrollY,left+=window_default().window.scrollX,bottom+=window_default().window.scrollY,right+=window_default().window.scrollX;var margin={top:pxToNumber(marginTop),bottom:pxToNumber(marginBottom),left:pxToNumber(marginLeft),right:pxToNumber(marginRight)},padding={top:pxToNumber(paddingTop),bottom:pxToNumber(paddingBottom),left:pxToNumber(paddingLeft),right:pxToNumber(paddingRight)},border={top:pxToNumber(borderTopWidth),bottom:pxToNumber(borderBottomWidth),left:pxToNumber(borderLeftWidth),right:pxToNumber(borderRightWidth)},extremities={top:top-margin.top,bottom:bottom+margin.bottom,left:left-margin.left,right:right+margin.right};return{margin:margin,padding:padding,border:border,top:top,left:left,bottom:bottom,right:right,width:width,height:height,extremities:extremities,floatingAlignment:floatingAlignment(extremities)}}(element),marginLabels=function drawMargin(context,_ref){var margin=_ref.margin,width=_ref.width,height=_ref.height,top=_ref.top,left=_ref.left,bottom=_ref.bottom,right=_ref.right,marginHeight=height+margin.bottom+margin.top;return context.fillStyle=visualizer_colors_margin,context.fillRect(left,top-margin.top,width,margin.top),context.fillRect(right,top-margin.top,margin.right,marginHeight),context.fillRect(left,bottom,width,margin.bottom),context.fillRect(left-margin.left,top-margin.top,margin.left,marginHeight),filterZeroValues([{type:"margin",text:round(margin.top),position:"top"},{type:"margin",text:round(margin.right),position:"right"},{type:"margin",text:round(margin.bottom),position:"bottom"},{type:"margin",text:round(margin.left),position:"left"}])}(context,measurements),paddingLabels=function drawPadding(context,_ref2){var padding=_ref2.padding,border=_ref2.border,width=_ref2.width,height=_ref2.height,top=_ref2.top,left=_ref2.left,bottom=_ref2.bottom,right=_ref2.right,paddingWidth=width-border.left-border.right,paddingHeight=height-padding.top-padding.bottom-border.top-border.bottom;return context.fillStyle=visualizer_colors_padding,context.fillRect(left+border.left,top+border.top,paddingWidth,padding.top),context.fillRect(right-padding.right-border.right,top+padding.top+border.top,padding.right,paddingHeight),context.fillRect(left+border.left,bottom-padding.bottom-border.bottom,paddingWidth,padding.bottom),context.fillRect(left+border.left,top+padding.top+border.top,padding.left,paddingHeight),filterZeroValues([{type:"padding",text:padding.top,position:"top"},{type:"padding",text:padding.right,position:"right"},{type:"padding",text:padding.bottom,position:"bottom"},{type:"padding",text:padding.left,position:"left"}])}(context,measurements),borderLabels=function drawBorder(context,_ref3){var border=_ref3.border,width=_ref3.width,height=_ref3.height,top=_ref3.top,left=_ref3.left,bottom=_ref3.bottom,right=_ref3.right,borderHeight=height-border.top-border.bottom;return context.fillStyle=visualizer_colors_border,context.fillRect(left,top,width,border.top),context.fillRect(left,bottom-border.bottom,width,border.bottom),context.fillRect(left,top+border.top,border.left,borderHeight),context.fillRect(right-border.right,top+border.top,border.right,borderHeight),filterZeroValues([{type:"border",text:border.top,position:"top"},{type:"border",text:border.right,position:"right"},{type:"border",text:border.bottom,position:"bottom"},{type:"border",text:border.left,position:"left"}])}(context,measurements),contentLabels=function drawContent(context,_ref4){var padding=_ref4.padding,border=_ref4.border,width=_ref4.width,height=_ref4.height,top=_ref4.top,left=_ref4.left,contentWidth=width-border.left-border.right-padding.left-padding.right,contentHeight=height-padding.top-padding.bottom-border.top-border.bottom;return context.fillStyle=visualizer_colors_content,context.fillRect(left+border.left+padding.left,top+border.top+padding.top,contentWidth,contentHeight),[{type:"content",position:"center",text:"".concat(round(contentWidth)," x ").concat(round(contentHeight))}]}(context,measurements),externalLabels=measurements.width<=90||measurements.height<=30;!function labelStacks(context,measurements,labels,externalLabels){var stacks=labels.reduce((function(acc,l){return Object.prototype.hasOwnProperty.call(acc,l.position)||(acc[l.position]=[]),acc[l.position].push(l),acc}),{});stacks.top&&drawStack(context,measurements,stacks.top,externalLabels),stacks.right&&drawStack(context,measurements,stacks.right,externalLabels),stacks.bottom&&drawStack(context,measurements,stacks.bottom,externalLabels),stacks.left&&drawStack(context,measurements,stacks.left,externalLabels),stacks.center&&drawStack(context,measurements,stacks.center,externalLabels)}(context,measurements,[].concat(_toConsumableArray(contentLabels),_toConsumableArray(paddingLabels),_toConsumableArray(borderLabels),_toConsumableArray(marginLabels)),externalLabels)}}}function drawSelectedElement(element){!function draw(callback){clear(),callback(state.context)}(drawBoxModel(element))}var nodeAtPointerRef,pointer={x:0,y:0};function findAndDrawElement(x,y){nodeAtPointerRef=function deepElementFromPoint(x,y){var element=window_default().document.elementFromPoint(x,y);return function crawlShadows(node){if(node&&node.shadowRoot){var nestedElement=node.shadowRoot.elementFromPoint(x,y);return node.isEqualNode(nestedElement)?node:nestedElement.shadowRoot?crawlShadows(nestedElement):nestedElement}return node}(element)||element}(x,y),drawSelectedElement(nodeAtPointerRef)}var ADDON_ID="storybook/measure-addon";"".concat(ADDON_ID,"/tool"),"".concat(ADDON_ID,"/result"),"".concat(ADDON_ID,"/request"),"".concat(ADDON_ID,"/clear");var decorators=[function withMeasure(StoryFn,context){var measureEnabled=context.globals.measureEnabled;return(0,hooks.d4)((function(){var onMouseMove=function onMouseMove(event){window.requestAnimationFrame((function(){event.stopPropagation(),pointer.x=event.clientX,pointer.y=event.clientY}))};return document.addEventListener("mousemove",onMouseMove),function(){document.removeEventListener("mousemove",onMouseMove)}}),[]),(0,hooks.d4)((function(){var onResize=function onResize(){window.requestAnimationFrame((function(){!function rescale(){setCanvasWidthAndHeight(state.canvas,state.context,{width:0,height:0});var _getDocumentWidthAndH2=getDocumentWidthAndHeight(),width=_getDocumentWidthAndH2.width,height=_getDocumentWidthAndH2.height;setCanvasWidthAndHeight(state.canvas,state.context,{width:width,height:height}),state.width=width,state.height=height}()}))};return measureEnabled&&(document.addEventListener("mouseover",(function onMouseOver(event){window.requestAnimationFrame((function(){event.stopPropagation(),findAndDrawElement(event.clientX,event.clientY)}))})),init(),window.addEventListener("resize",onResize),findAndDrawElement(pointer.x,pointer.y)),function(){window.removeEventListener("resize",onResize),function destroy(){state.canvas&&(clear(),state.canvas.parentNode.removeChild(state.canvas),state={})}()}}),[measureEnabled]),StoryFn()}],globals=function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}({},"measureEnabled",!1);function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function preview_js_generated_config_entry_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}Object.keys(addon_measure_preview_namespaceObject).forEach((function(key){var value=addon_measure_preview_namespaceObject[key];switch(key){case"args":return(0,ClientApi.uc)(value);case"argTypes":return(0,ClientApi.v9)(value);case"decorators":return value.forEach((function(decorator){return(0,ClientApi.$9)(decorator,!1)}));case"loaders":return value.forEach((function(loader){return(0,ClientApi.HZ)(loader,!1)}));case"parameters":return(0,ClientApi.h1)(function _objectSpread(target){for(var i=1;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i25)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return hooks.addRenderListeners(),result}}},invalidHooksError=function invalidHooksError(){return new Error("Storybook preview hooks can only be called inside decorators and story functions.")};function getHooksContextOrNull(){return globalWindow.STORYBOOK_HOOKS_CONTEXT||null}function getHooksContextOrThrow(){var hooks=getHooksContextOrNull();if(null==hooks)throw invalidHooksError();return hooks}function useMemoLike(name,nextCreate,deps){var _useHook=function useHook(name,callback,deps){var hooks=getHooksContextOrThrow();if("MOUNT"===hooks.currentPhase){null==deps||Array.isArray(deps)||_storybook_client_logger__WEBPACK_IMPORTED_MODULE_23__.kg.warn("".concat(name," received a final argument that is not an array (instead, received ").concat(deps,"). When specified, the final argument must be an array."));var _hook={name:name,deps:deps};return hooks.currentHooks.push(_hook),callback(_hook),_hook}if("UPDATE"===hooks.currentPhase){var _hook2=hooks.getNextHook();if(null==_hook2)throw new Error("Rendered more hooks than during the previous render.");return _hook2.name!==name&&_storybook_client_logger__WEBPACK_IMPORTED_MODULE_23__.kg.warn("Storybook has detected a change in the order of Hooks".concat(hooks.currentDecoratorName?" called by ".concat(hooks.currentDecoratorName):"",". This will lead to bugs and errors if not fixed.")),null!=deps&&null==_hook2.deps&&_storybook_client_logger__WEBPACK_IMPORTED_MODULE_23__.kg.warn("".concat(name," received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.")),null!=deps&&null!=_hook2.deps&&deps.length!==_hook2.deps.length&&_storybook_client_logger__WEBPACK_IMPORTED_MODULE_23__.kg.warn("The final argument passed to ".concat(name," changed size between renders. The order and size of this array must remain constant.\nPrevious: ").concat(_hook2.deps,"\nIncoming: ").concat(deps)),null!=deps&&null!=_hook2.deps&&function areDepsEqual(deps,nextDeps){return deps.length===nextDeps.length&&deps.every((function(dep,i){return dep===nextDeps[i]}))}(deps,_hook2.deps)||(callback(_hook2),_hook2.deps=deps),_hook2}throw invalidHooksError()}(name,(function(hook){hook.memoizedState=nextCreate()}),deps);return _useHook.memoizedState}function useMemo(nextCreate,deps){return useMemoLike("useMemo",nextCreate,deps)}function useCallback(callback,deps){return useMemoLike("useCallback",(function(){return callback}),deps)}function useEffect(create,deps){var hooks=getHooksContextOrThrow(),effect=useMemoLike("useEffect",(function(){return{create:create}}),deps);hooks.currentEffects.includes(effect)||hooks.currentEffects.push(effect)}function useStoryContext(){var currentContext=getHooksContextOrThrow().currentContext;if(null==currentContext)throw invalidHooksError();return currentContext}function useArgs(){var channel=_index__WEBPACK_IMPORTED_MODULE_21__.KP.getChannel(),_useStoryContext2=useStoryContext(),storyId=_useStoryContext2.id;return[_useStoryContext2.args,useCallback((function(updatedArgs){return channel.emit(_storybook_core_events__WEBPACK_IMPORTED_MODULE_22__.UPDATE_STORY_ARGS,{storyId:storyId,updatedArgs:updatedArgs})}),[channel,storyId]),useCallback((function(argNames){return channel.emit(_storybook_core_events__WEBPACK_IMPORTED_MODULE_22__.RESET_STORY_ARGS,{storyId:storyId,argNames:argNames})}),[channel,storyId])]}},"./node_modules/@storybook/addons/dist/esm/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{KP:function(){return addons}});__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.values.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js");var global_window=__webpack_require__("./node_modules/global/window.js"),window_default=__webpack_require__.n(global_window),esm=__webpack_require__("./node_modules/@storybook/client-logger/dist/esm/index.js"),dist_esm=__webpack_require__("./node_modules/@storybook/channels/dist/esm/index.js");var types;__webpack_require__("./node_modules/core-js/modules/es.array.find.js");function _defineProperties(target,props){for(var i=0;i1)return args.length>1?decorator(args).apply(void 0,arguments):decorator.apply(void 0,args).apply(void 0,arguments);throw new Error("Passing stories directly into ".concat(name,"() is not allowed,\n instead use addDecorator(").concat(name,") and pass options with the '").concat(parameterName,"' parameter"))}}}},"./node_modules/@storybook/channels/dist/esm/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/web.immediate.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js");var _templateObject,util_deprecate__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/util-deprecate/browser.js"),util_deprecate__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(util_deprecate__WEBPACK_IMPORTED_MODULE_8__),ts_dedent__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/ts-dedent/esm/index.js");function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},transport=_ref.transport,_ref$async=_ref.async,async=void 0!==_ref$async&&_ref$async;_classCallCheck(this,Channel),this.isAsync=void 0,this.sender=generateRandomId(),this.events={},this.data={},this.transport=void 0,this.addPeerListener=util_deprecate__WEBPACK_IMPORTED_MODULE_8___default()((function(eventName,listener){_this.addListener(eventName,listener)}),(0,ts_dedent__WEBPACK_IMPORTED_MODULE_9__.C)(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n channel.addPeerListener is deprecated\n "])))),this.isAsync=async,transport&&(this.transport=transport,this.transport.setHandler((function(event){return _this.handleEvent(event)})))}return function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(Channel,[{key:"hasTransport",get:function get(){return!!this.transport}},{key:"addListener",value:function addListener(eventName,listener){this.events[eventName]=this.events[eventName]||[],this.events[eventName].push(listener)}},{key:"emit",value:function emit(eventName){for(var _this2=this,_len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];var event={type:eventName,args:args,from:this.sender},options={};args.length>=1&&args[0]&&args[0].options&&(options=args[0].options);var handler=function handler(){_this2.transport&&_this2.transport.send(event,options),_this2.handleEvent(event)};this.isAsync?setImmediate(handler):handler()}},{key:"last",value:function last(eventName){return this.data[eventName]}},{key:"eventNames",value:function eventNames(){return Object.keys(this.events)}},{key:"listenerCount",value:function listenerCount(eventName){var listeners=this.listeners(eventName);return listeners?listeners.length:0}},{key:"listeners",value:function listeners(eventName){var listeners=this.events[eventName];return listeners||void 0}},{key:"once",value:function once(eventName,listener){var onceListener=this.onceListener(eventName,listener);this.addListener(eventName,onceListener)}},{key:"removeAllListeners",value:function removeAllListeners(eventName){eventName?this.events[eventName]&&delete this.events[eventName]:this.events={}}},{key:"removeListener",value:function removeListener(eventName,listener){var listeners=this.listeners(eventName);listeners&&(this.events[eventName]=listeners.filter((function(l){return l!==listener})))}},{key:"on",value:function on(eventName,listener){this.addListener(eventName,listener)}},{key:"off",value:function off(eventName,listener){this.removeListener(eventName,listener)}},{key:"handleEvent",value:function handleEvent(event){var listeners=this.listeners(event.type);listeners&&listeners.length&&listeners.forEach((function(fn){fn.apply(event,event.args)})),this.data[event.type]=event.args}},{key:"onceListener",value:function onceListener(eventName,listener){var _this3=this,onceListener=function onceListener(){return _this3.removeListener(eventName,onceListener),listener.apply(void 0,arguments)};return onceListener}}]),Channel}();__webpack_exports__.Z=Channel},"./node_modules/@storybook/client-api/dist/esm/ClientApi.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{ti:function(){return ClientApi},v9:function(){return addArgTypes},My:function(){return addArgTypesEnhancer},uc:function(){return addArgs},_C:function(){return addArgsEnhancer},$9:function(){return addDecorator},HZ:function(){return addLoader},h1:function(){return addParameters},$P:function(){return setGlobalRender}});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.set.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.values.js");var browser=__webpack_require__("./node_modules/util-deprecate/browser.js"),browser_default=__webpack_require__.n(browser),esm=__webpack_require__("./node_modules/ts-dedent/esm/index.js"),global_window=__webpack_require__("./node_modules/global/window.js"),window_default=__webpack_require__.n(global_window),dist_esm=__webpack_require__("./node_modules/@storybook/client-logger/dist/esm/index.js"),dist=__webpack_require__("./node_modules/@storybook/csf/dist/index.js"),esm_parameters=__webpack_require__("./node_modules/@storybook/store/dist/esm/parameters.js"),normalizeInputTypes=__webpack_require__("./node_modules/@storybook/store/dist/esm/csf/normalizeInputTypes.js"),synchronous_promise=(__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/synchronous-promise/index.js")),stable=__webpack_require__("./node_modules/stable/stable.js"),stable_default=__webpack_require__.n(stable),STORY_KIND_PATH_SEPARATOR=(__webpack_require__("./node_modules/core-js/modules/es.string.split.js"),__webpack_require__("./node_modules/core-js/modules/es.string.trim.js"),/\s*\/\s*/);var autoTitle_templateObject,sortStoriesCommon=function sortStoriesCommon(stories,storySortParameter,fileNameOrder){var sortFn;storySortParameter?(sortFn="function"==typeof storySortParameter?storySortParameter:function storySort(){var options=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(a,b){if(a.title===b.title&&!options.includeNames)return 0;var method=options.method||"configure",order=options.order||[],storyTitleA=a.title.trim().split(STORY_KIND_PATH_SEPARATOR),storyTitleB=b.title.trim().split(STORY_KIND_PATH_SEPARATOR);options.includeNames&&(storyTitleA.push(a.name),storyTitleB.push(b.name));for(var depth=0;storyTitleA[depth]||storyTitleB[depth];){if(!storyTitleA[depth])return-1;if(!storyTitleB[depth])return 1;var nameA=storyTitleA[depth],nameB=storyTitleB[depth];if(nameA!==nameB){var indexA=order.indexOf(nameA),indexB=order.indexOf(nameB),indexWildcard=order.indexOf("*");return-1!==indexA||-1!==indexB?(-1===indexA&&(indexA=-1!==indexWildcard?indexWildcard:order.length),-1===indexB&&(indexB=-1!==indexWildcard?indexWildcard:order.length),indexA-indexB):"configure"===method?0:nameA.localeCompare(nameB,options.locales?options.locales:void 0,{numeric:!0,sensitivity:"accent"})}var index=order.indexOf(nameA);order=-1!==index&&Array.isArray(order[index+1])?order[index+1]:[],depth+=1}return 0}}(storySortParameter),stable_default().inplace(stories,sortFn)):stable_default().inplace(stories,(function(s1,s2){return fileNameOrder.indexOf(s1.importPath)-fileNameOrder.indexOf(s2.importPath)}));return stories},toIndexEntry=function toIndexEntry(story){return{id:story.id,title:story.title,name:story.name,importPath:story.parameters.fileName}},slash=(__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/slash/index.js")),slash_default=__webpack_require__.n(slash);function _toArray(arr){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0?last.substr(0,dotIndex):last;parts[parts.length-1]=stripped;var _parts2=_toArray(parts),first=_parts2[0],rest=_parts2.slice(1);return""===first&&(parts=rest),parts}(path))).join("/")}return titlePrefix?slash_default()(pathJoin([titlePrefix,userTitle])):userTitle}},_excluded=["default","__namedExportsOrder"];function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function _slicedToArray(arr,i){return function StoryStoreFacade_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function StoryStoreFacade_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return StoryStoreFacade_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return StoryStoreFacade_arrayLikeToArray(o,minLen)}(arr,i)||function StoryStoreFacade_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function StoryStoreFacade_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i ","\n \n Are you using a V7-style sort function in V6 compatibility mode?\n \n More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#v7-style-story-sort\n "])),storySortParameter,err.message));throw err}return{v:3,stories:sortedV7.reduce((function(acc,s){return acc[s.id]=_this2.stories[s.id],acc}),{})}}},{key:"clearFilenameExports",value:function clearFilenameExports(fileName){var _this3=this;this.csfExports[fileName]&&(Object.entries(this.stories).forEach((function(_ref3){var _ref4=_slicedToArray(_ref3,2),id=_ref4[0];_ref4[1].importPath===fileName&&delete _this3.stories[id]})),this.csfExports[fileName]={})}},{key:"addStoriesFromExports",value:function addStoriesFromExports(fileName,fileExports){var _this4=this;if(this.csfExports[fileName]!==fileExports){this.clearFilenameExports(fileName);var defaultExport=fileExports.default,__namedExportsOrder=fileExports.__namedExportsOrder,namedExports=_objectWithoutProperties(fileExports,_excluded),_ref5=defaultExport||{},componentId=_ref5.id,title=_ref5.title,specifiers=(window_default().STORIES||[]).map((function(specifier){return Object.assign({},specifier,{importPathMatcher:new RegExp(specifier.importPathMatcher)})}));if(title=function userOrAutoTitle(fileName,storiesEntries,userTitle){for(var i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function ClientApi_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function ClientApi_defineProperties(target,props){for(var i=0;i1&&void 0!==arguments[1])||arguments[1];checkMethod("addDecorator",deprecationWarning),singleton.addDecorator(decorator)},addParameters=function addParameters(parameters){var deprecationWarning=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];checkMethod("addParameters",deprecationWarning),singleton.addParameters(parameters)},addLoader=function addLoader(loader){var deprecationWarning=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];checkMethod("addLoader",deprecationWarning),singleton.addLoader(loader)},addArgs=function addArgs(args){checkMethod("addArgs",!1),singleton.addArgs(args)},addArgTypes=function addArgTypes(argTypes){checkMethod("addArgTypes",!1),singleton.addArgTypes(argTypes)},addArgsEnhancer=function addArgsEnhancer(enhancer){checkMethod("addArgsEnhancer",!1),singleton.addArgsEnhancer(enhancer)},addArgTypesEnhancer=function addArgTypesEnhancer(enhancer){checkMethod("addArgTypesEnhancer",!1),singleton.addArgTypesEnhancer(enhancer)},setGlobalRender=function setGlobalRender(render){checkMethod("setGlobalRender",!1),singleton.facade.projectAnnotations.render=render},invalidStoryTypes=new Set(["string","number","boolean","symbol"]),ClientApi=function(){function ClientApi(){var _this=this,_ref=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},storyStore=_ref.storyStore;ClientApi_classCallCheck(this,ClientApi),this.facade=void 0,this.storyStore=void 0,this.addons=void 0,this.onImportFnChanged=void 0,this.lastFileName=0,this.setAddon=browser_default()((function(addon){_this.addons=Object.assign({},_this.addons,addon)}),(0,esm.C)(_templateObject3||(_templateObject3=ClientApi_taggedTemplateLiteral(["\n `setAddon` is deprecated and will be removed in Storybook 7.0.\n\n https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-setaddon\n "],["\n \\`setAddon\\` is deprecated and will be removed in Storybook 7.0.\n\n https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-setaddon\n "])))),this.addDecorator=function(decorator){_this.facade.projectAnnotations.decorators.push(decorator)},this.clearDecorators=browser_default()((function(){_this.facade.projectAnnotations.decorators=[]}),(0,esm.C)(_templateObject4||(_templateObject4=ClientApi_taggedTemplateLiteral(["\n `clearDecorators` is deprecated and will be removed in Storybook 7.0.\n\n https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-cleardecorators\n "],["\n \\`clearDecorators\\` is deprecated and will be removed in Storybook 7.0.\n\n https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-cleardecorators\n "])))),this.addParameters=function(_ref2){var globals=_ref2.globals,globalTypes=_ref2.globalTypes,parameters=ClientApi_objectWithoutProperties(_ref2,ClientApi_excluded);_this.facade.projectAnnotations.parameters=(0,esm_parameters.f)(_this.facade.projectAnnotations.parameters,parameters),globals&&(_this.facade.projectAnnotations.globals=Object.assign({},_this.facade.projectAnnotations.globals,globals)),globalTypes&&(_this.facade.projectAnnotations.globalTypes=Object.assign({},_this.facade.projectAnnotations.globalTypes,(0,normalizeInputTypes.x)(globalTypes)))},this.addLoader=function(loader){_this.facade.projectAnnotations.loaders.push(loader)},this.addArgs=function(args){_this.facade.projectAnnotations.args=Object.assign({},_this.facade.projectAnnotations.args,args)},this.addArgTypes=function(argTypes){_this.facade.projectAnnotations.argTypes=Object.assign({},_this.facade.projectAnnotations.argTypes,(0,normalizeInputTypes.x)(argTypes))},this.addArgsEnhancer=function(enhancer){_this.facade.projectAnnotations.argsEnhancers.push(enhancer)},this.addArgTypesEnhancer=function(enhancer){_this.facade.projectAnnotations.argTypesEnhancers.push(enhancer)},this.storiesOf=function(kind,m){if(!kind&&"string"!=typeof kind)throw new Error("Invalid or missing kind provided for stories, should be a string");if(m||dist_esm.kg.warn("Missing 'module' parameter for story with a kind of '".concat(kind,"'. It will break your HMR")),m){var proto=Object.getPrototypeOf(m);proto.exports&&proto.exports.default&&dist_esm.kg.error("Illegal mix of CSF default export and storiesOf calls in a single file: ".concat(proto.i))}for(var baseFilename=m&&m.id?"".concat(m.id):(_this.lastFileName++).toString(),fileName=baseFilename,i=1;_this.facade.csfExports[fileName]&&Object.keys(_this.facade.csfExports[fileName]).length>0;)i+=1,fileName="".concat(baseFilename,"-").concat(i);m&&m.hot&&m.hot.accept&&(m.hot.accept(),m.hot.dispose((function(){_this.facade.clearFilenameExports(fileName),setTimeout((function(){var _this$onImportFnChang;null===(_this$onImportFnChang=_this.onImportFnChanged)||void 0===_this$onImportFnChang||_this$onImportFnChang.call(_this,{importFn:_this.importFn.bind(_this)})}),0)})));var hasAdded=!1,api={kind:kind.toString(),add:function add(){return api},addDecorator:function addDecorator(){return api},addLoader:function addLoader(){return api},addParameters:function addParameters(){return api}};Object.keys(_this.addons).forEach((function(name){var addon=_this.addons[name];api[name]=function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return addon.apply(api,args),api}}));var meta={id:(0,dist.sanitize)(kind),title:kind,decorators:[],loaders:[],parameters:{}};_this.facade.csfExports[fileName]={default:meta};var counter=0;return api.add=function(storyName,storyFn){var parameters=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(hasAdded=!0,"string"!=typeof storyName)throw new Error('Invalid or missing storyName provided for a "'.concat(kind,'" story.'));if(!storyFn||Array.isArray(storyFn)||invalidStoryTypes.has(_typeof(storyFn)))throw new Error('Cannot load story "'.concat(storyName,'" in "').concat(kind,'" due to invalid format. Storybook expected a function/object but received ').concat(_typeof(storyFn)," instead."));var decorators=parameters.decorators,loaders=parameters.loaders,component=parameters.component,args=parameters.args,argTypes=parameters.argTypes,storyParameters=ClientApi_objectWithoutProperties(parameters,_excluded2),storyId=parameters.__id||(0,dist.toId)(kind,storyName),csfExports=_this.facade.csfExports[fileName];return csfExports["story".concat(counter)]={name:storyName,parameters:Object.assign({fileName:fileName,__id:storyId},storyParameters),decorators:decorators,loaders:loaders,args:args,argTypes:argTypes,component:component,render:storyFn},counter+=1,_this.facade.stories[storyId]={id:storyId,title:csfExports.default.title,name:storyName,importPath:fileName},api},api.addDecorator=function(decorator){if(hasAdded)throw new Error("You cannot add a decorator after the first story for a kind.\nRead more here: https://github.com/storybookjs/storybook/blob/master/MIGRATION.md#can-no-longer-add-decoratorsparameters-after-stories");return meta.decorators.push(decorator),api},api.addLoader=function(loader){if(hasAdded)throw new Error("You cannot add a loader after the first story for a kind.");return meta.loaders.push(loader),api},api.addParameters=function(_ref3){var component=_ref3.component,args=_ref3.args,argTypes=_ref3.argTypes,parameters=ClientApi_objectWithoutProperties(_ref3,_excluded3);if(hasAdded)throw new Error("You cannot add parameters after the first story for a kind.\nRead more here: https://github.com/storybookjs/storybook/blob/master/MIGRATION.md#can-no-longer-add-decoratorsparameters-after-stories");return meta.parameters=(0,esm_parameters.f)(meta.parameters,parameters),component&&(meta.component=component),args&&(meta.args=Object.assign({},meta.args,args)),argTypes&&(meta.argTypes=Object.assign({},meta.argTypes,argTypes)),api},api},this.getStorybook=function(){var stories=_this.storyStore.storyIndex.stories,kinds={};return Object.entries(stories).forEach((function(_ref4){var _ref5=ClientApi_slicedToArray(_ref4,2),storyId=_ref5[0],_ref5$=_ref5[1],title=_ref5$.title,name=_ref5$.name,importPath=_ref5$.importPath;kinds[title]||(kinds[title]={kind:title,fileName:importPath,stories:[]});var storyFn=_this.storyStore.fromId(storyId).storyFn;kinds[title].stories.push({name:name,render:storyFn})})),Object.values(kinds)},this.raw=function(){return _this.storyStore.raw()},this.facade=new StoryStoreFacade,this.addons={},this.storyStore=storyStore,singleton=this}return function ClientApi_createClass(Constructor,protoProps,staticProps){return protoProps&&ClientApi_defineProperties(Constructor.prototype,protoProps),staticProps&&ClientApi_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(ClientApi,[{key:"importFn",value:function importFn(path){return this.facade.importFn(path)}},{key:"getStoryIndex",value:function getStoryIndex(){if(!this.storyStore)throw new Error("Cannot get story index before setting storyStore");return this.facade.getStoryIndex(this.storyStore)}},{key:"_storyStore",get:function get(){return this.storyStore}}]),ClientApi}()},"./node_modules/@storybook/client-logger/dist/esm/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{IC:function(){return pretty},IH:function(){return once},kg:function(){return logger}});__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.set.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js");var global__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/global/window.js"),global__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(global__WEBPACK_IMPORTED_MODULE_8__),LOGLEVEL=global__WEBPACK_IMPORTED_MODULE_8___default().LOGLEVEL,console=global__WEBPACK_IMPORTED_MODULE_8___default().console,levels={trace:1,debug:2,info:3,warn:4,error:5,silent:10},currentLogLevelNumber=levels[LOGLEVEL]||levels.info,logger={trace:function trace(message){for(var _len=arguments.length,rest=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)rest[_key-1]=arguments[_key];return currentLogLevelNumber<=levels.trace&&console.trace.apply(console,[message].concat(rest))},debug:function debug(message){for(var _len2=arguments.length,rest=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)rest[_key2-1]=arguments[_key2];return currentLogLevelNumber<=levels.debug&&console.debug.apply(console,[message].concat(rest))},info:function info(message){for(var _len3=arguments.length,rest=new Array(_len3>1?_len3-1:0),_key3=1;_key3<_len3;_key3++)rest[_key3-1]=arguments[_key3];return currentLogLevelNumber<=levels.info&&console.info.apply(console,[message].concat(rest))},warn:function warn(message){for(var _len4=arguments.length,rest=new Array(_len4>1?_len4-1:0),_key4=1;_key4<_len4;_key4++)rest[_key4-1]=arguments[_key4];return currentLogLevelNumber<=levels.warn&&console.warn.apply(console,[message].concat(rest))},error:function error(message){for(var _len5=arguments.length,rest=new Array(_len5>1?_len5-1:0),_key5=1;_key5<_len5;_key5++)rest[_key5-1]=arguments[_key5];return currentLogLevelNumber<=levels.error&&console.error.apply(console,[message].concat(rest))},log:function log(message){for(var _len6=arguments.length,rest=new Array(_len6>1?_len6-1:0),_key6=1;_key6<_len6;_key6++)rest[_key6-1]=arguments[_key6];return currentLogLevelNumber1?_len7-1:0),_key7=1;_key7<_len7;_key7++)rest[_key7-1]=arguments[_key7];return logger[type].apply(logger,[message].concat(rest))}}};once.clear=function(){return logged.clear()},once.trace=once("trace"),once.debug=once("debug"),once.info=once("info"),once.warn=once("warn"),once.error=once("error"),once.log=once("log");var pretty=function pretty(type){return function(){for(var argArray=[],_len8=arguments.length,args=new Array(_len8),_key8=0;_key8<_len8;_key8++)args[_key8]=arguments[_key8];if(args.length){var reResultArray,startTagRe=//gi,endTagRe=/<\/span>/gi;for(argArray.push(args[0].replace(startTagRe,"%c").replace(endTagRe,"%c"));reResultArray=startTagRe.exec(args[0]);)argArray.push(reResultArray[2]),argArray.push("");for(var j=1;j1)throw new Error("Invalid conditional test ".concat(JSON.stringify({exists:exists,eq:eq,neq:neq})));if(void 0!==eq)return(0,_isEqual.default)(value,eq);if(void 0!==neq)return!(0,_isEqual.default)(value,neq);if(void 0!==exists){var valueExists=void 0!==value;return exists?valueExists:!valueExists}return void 0===truthy||truthy?!!value:!value};exports.testValue=testValue;exports.includeConditionalArg=function includeConditionalArg(argType,args,globals){if(!argType.if)return!0;var _ref2=argType.if,arg=_ref2.arg,global=_ref2.global;if(1!==count([arg,global]))throw new Error("Invalid conditional value ".concat(JSON.stringify({arg:arg,global:global})));var value=arg?args[arg]:globals[global];return testValue(argType.if,value)}},"./node_modules/@storybook/csf/dist/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={sanitize:!0,toId:!0,storyNameFromExport:!0,isExportStory:!0,parseKind:!0,includeConditionalArg:!0};exports.isExportStory=function isExportStory(key,_ref){var includeStories=_ref.includeStories,excludeStories=_ref.excludeStories;return"__esModule"!==key&&(!includeStories||matches(key,includeStories))&&(!excludeStories||!matches(key,excludeStories))},Object.defineProperty(exports,"includeConditionalArg",{enumerable:!0,get:function get(){return _includeConditionalArg.includeConditionalArg}}),exports.parseKind=exports.storyNameFromExport=exports.toId=exports.sanitize=void 0;var _startCase=function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}(__webpack_require__("./node_modules/lodash/startCase.js")),_includeConditionalArg=__webpack_require__("./node_modules/@storybook/csf/dist/includeConditionalArg.js"),_story=__webpack_require__("./node_modules/@storybook/csf/dist/story.js");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(arr)))return;var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")};exports.sanitize=sanitize;var sanitizeSafe=function sanitizeSafe(string,part){var sanitized=sanitize(string);if(""===sanitized)throw new Error("Invalid ".concat(part," '").concat(string,"', must include alphanumeric characters"));return sanitized};exports.toId=function toId(kind,name){return"".concat(sanitizeSafe(kind,"kind")).concat(name?"--".concat(sanitizeSafe(name,"name")):"")};function matches(storyKey,arrayOrRegex){return Array.isArray(arrayOrRegex)?arrayOrRegex.includes(storyKey):storyKey.match(arrayOrRegex)}exports.storyNameFromExport=function storyNameFromExport(key){return(0,_startCase.default)(key)};exports.parseKind=function parseKind(kind,_ref2){var rootSeparator=_ref2.rootSeparator,groupSeparator=_ref2.groupSeparator,_kind$split2=_slicedToArray(kind.split(rootSeparator,2),2),root=_kind$split2[0],remainder=_kind$split2[1];return{root:remainder?root:null,groups:(remainder||kind).split(groupSeparator).filter((function(i){return!!i}))}}},"./node_modules/@storybook/csf/dist/story.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _SBType=__webpack_require__("./node_modules/@storybook/csf/dist/SBType.js");Object.keys(_SBType).forEach((function(key){"default"!==key&&"__esModule"!==key&&Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _SBType[key]}})}))},"./node_modules/@storybook/docs-tools/dist/esm/argTypes/docgen/utils/string.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{B:function(){return str}});var str=function str(obj){if(!obj)return"";if("string"==typeof obj)return obj;throw new Error("Description: expected string, got: ".concat(JSON.stringify(obj)))}},"./node_modules/@storybook/react/dist/esm/client/docs/config-generated-config-entry.js":function(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__){"use strict";var config_namespaceObject={};__webpack_require__.r(config_namespaceObject),__webpack_require__.d(config_namespaceObject,{argTypesEnhancers:function(){return argTypesEnhancers},decorators:function(){return decorators},parameters:function(){return config_parameters}});var ClientApi=__webpack_require__("./node_modules/@storybook/client-api/dist/esm/ClientApi.js"),doctrine=(__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/doctrine/lib/doctrine.js"));function containsJsDoc(value){return null!=value&&value.includes("@")}function parse(content,tags){var ast;try{ast=doctrine.parse(content,{tags:tags,sloppy:!0})}catch(e){throw console.error(e),new Error("Cannot parse JSDoc tags.")}return ast}var TypeSystem,DEFAULT_OPTIONS={tags:["param","arg","argument","returns","ignore"]};function extractJsDocTags(ast){for(var extractedTags={params:null,returns:null,ignore:!1},i=0;i90}function isTooLongForDefaultValueSummary(value){return value.length>50}function createSummaryValue(summary,detail){return summary===detail?{summary:summary}:{summary:summary,detail:detail}}var FlowTypesType;function generateUnionElement(_ref){var name=_ref.name,value=_ref.value,elements=_ref.elements,raw=_ref.raw;return null!=value?value:null!=elements?elements.map(generateUnionElement).join(" | "):null!=raw?raw:name}function generateSignature(flowType){return"object"===flowType.type?function generateObjectSignature(_ref4){var type=_ref4.type,raw=_ref4.raw;return null!=raw?isTooLongForTypeSummary(raw)?createSummaryValue(type,raw):createSummaryValue(raw):createSummaryValue(type)}(flowType):function generateFuncSignature(_ref3){var type=_ref3.type,raw=_ref3.raw;return createSummaryValue(null!=raw?raw:type)}(flowType)}function createType(type){if(null==type)return null;switch(type.name){case FlowTypesType.UNION:return function generateUnion(_ref2){var name=_ref2.name,raw=_ref2.raw,elements=_ref2.elements;return createSummaryValue(null!=elements?elements.map(generateUnionElement).join(" | "):null!=raw?raw.replace(/^\|\s*/,""):name)}(type);case FlowTypesType.SIGNATURE:return generateSignature(type);default:return function generateDefault(_ref5){var name=_ref5.name,raw=_ref5.raw;return null!=raw?isTooLongForTypeSummary(raw)?createSummaryValue(name,raw):createSummaryValue(raw):createSummaryValue(name)}(type)}}!function(FlowTypesType){FlowTypesType.UNION="union",FlowTypesType.SIGNATURE="signature"}(FlowTypesType||(FlowTypesType={}));var BLACKLIST=["null","undefined"];function isDefaultValueBlacklisted(value){return BLACKLIST.some((function(x){return x===value}))}function createDefaultValue(defaultValue,type){if(null!=defaultValue){var value=defaultValue.value;if(!isDefaultValueBlacklisted(value))return isTooLongForDefaultValueSummary(value)?createSummaryValue(type.name,value):createSummaryValue(value)}return null}function createType_createType(_ref){var tsType=_ref.tsType,required=_ref.required;return null==tsType?null:createSummaryValue(required?tsType.name:tsType.name.replace(" | undefined",""))}function createDefaultValue_createDefaultValue(_ref){var defaultValue=_ref.defaultValue;if(null!=defaultValue){var value=defaultValue.value;if(!isDefaultValueBlacklisted(value))return createSummaryValue(value)}return null}__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js");var convert_convert=function convert(type){var name=type.name,raw=type.raw,base={};switch(void 0!==raw&&(base.raw=raw),type.name){case"string":case"number":case"symbol":case"boolean":return Object.assign({},base,{name:name});case"Array":return Object.assign({},base,{name:"array",value:type.elements.map(convert)});case"signature":return Object.assign({},base,function convertSig(type){switch(type.type){case"function":return{name:"function"};case"object":var values={};return type.signature.properties.forEach((function(prop){values[prop.key]=convert_convert(prop.value)})),{name:"object",value:values};default:throw new Error("Unknown: ".concat(type))}}(type));case"union":case"intersection":return Object.assign({},base,{name:name,value:type.elements.map(convert)});default:return Object.assign({},base,{name:"other",value:name})}},isLiteral=function isLiteral(type){return"literal"===type.name},toEnumOption=function toEnumOption(element){return element.value.replace(/['|"]/g,"")},flow_convert_convert=function convert(type){var name=type.name,raw=type.raw,base={};switch(void 0!==raw&&(base.raw=raw),type.name){case"literal":return Object.assign({},base,{name:"other",value:type.value});case"string":case"number":case"symbol":case"boolean":return Object.assign({},base,{name:name});case"Array":return Object.assign({},base,{name:"array",value:type.elements.map(convert)});case"signature":return Object.assign({},base,function convertSig(type){switch(type.type){case"function":return{name:"function"};case"object":var values={};return type.signature.properties.forEach((function(prop){values[prop.key]=flow_convert_convert(prop.value)})),{name:"object",value:values};default:throw new Error("Unknown: ".concat(type))}}(type));case"union":return type.elements.every(isLiteral)?Object.assign({},base,{name:"enum",value:type.elements.map(toEnumOption)}):Object.assign({},base,{name:name,value:type.elements.map(convert)});case"intersection":return Object.assign({},base,{name:name,value:type.elements.map(convert)});default:return Object.assign({},base,{name:"other",value:name})}},mapValues=(__webpack_require__("./node_modules/core-js/modules/es.number.is-nan.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.string.split.js"),__webpack_require__("./node_modules/lodash/mapValues.js")),mapValues_default=__webpack_require__.n(mapValues),QUOTE_REGEX=/^['"]|['"]$/g,SIGNATURE_REGEXP=/^\(.*\) => /,proptypes_convert_convert=function convert(type){var name=type.name,raw=type.raw,computed=type.computed,value=type.value,base={};switch(void 0!==raw&&(base.raw=raw),name){case"enum":var _values=computed?value:value.map((function(v){var trimmedValue=function trimQuotes(str){return str.replace(QUOTE_REGEX,"")}(v.value);return function includesQuotes(str){return QUOTE_REGEX.test(str)}(v.value)||Number.isNaN(Number(trimmedValue))?trimmedValue:Number(trimmedValue)}));return Object.assign({},base,{name:name,value:_values});case"string":case"number":case"symbol":case"object":return Object.assign({},base,{name:name});case"func":return Object.assign({},base,{name:"function"});case"bool":case"boolean":return Object.assign({},base,{name:"boolean"});case"arrayOf":case"array":return Object.assign({},base,{name:"array",value:value&&convert(value)});case"objectOf":return Object.assign({},base,{name:name,value:convert(value)});case"shape":case"exact":var values=mapValues_default()(value,(function(field){return convert(field)}));return Object.assign({},base,{name:"object",value:values});case"union":return Object.assign({},base,{name:"union",value:value.map((function(v){return convert(v)}))});default:if((null==name?void 0:name.indexOf("|"))>0)try{var literalValues=name.split("|").map((function(v){return JSON.parse(v)}));return Object.assign({},base,{name:"enum",value:literalValues})}catch(err){}var otherVal=value?"".concat(name,"(").concat(value,")"):name,otherName=SIGNATURE_REGEXP.test(name)?"function":"other";return Object.assign({},base,{name:otherName,value:otherVal})}},convert=function convert(docgenInfo){var type=docgenInfo.type,tsType=docgenInfo.tsType,flowType=docgenInfo.flowType;return null!=type?proptypes_convert_convert(type):null!=tsType?convert_convert(tsType):null!=flowType?flow_convert_convert(flowType):null};function createPropDef_createType(type){return null!=type?createSummaryValue(type.name):null}function createPropDef_createDefaultValue(defaultValue,type){if(null!=defaultValue){var value=defaultValue.value;if(!isDefaultValueBlacklisted(value))return function isReactDocgenTypescript(defaultValue){var computed=defaultValue.computed,func=defaultValue.func;return void 0===computed&&void 0===func}(defaultValue)&&function isStringValued(type){return!!type&&("string"===type.name||"enum"===type.name&&Array.isArray(type.value)&&type.value.every((function(_ref){var tv=_ref.value;return"string"==typeof tv&&'"'===tv[0]&&'"'===tv[tv.length-1]})))}(type)?createSummaryValue(JSON.stringify(value)):createSummaryValue(value)}return null}function createBasicPropDef(name,type,docgenInfo){var description=docgenInfo.description,required=docgenInfo.required,defaultValue=docgenInfo.defaultValue;return{name:name,type:createPropDef_createType(type),required:required,description:description,defaultValue:createPropDef_createDefaultValue(defaultValue,type)}}function applyJsDocResult(propDef,jsDocParsingResult){if(jsDocParsingResult.includesJsDoc){var description=jsDocParsingResult.description,extractedTags=jsDocParsingResult.extractedTags;null!=description&&(propDef.description=jsDocParsingResult.description);var hasParams=null!=extractedTags.params,hasReturns=null!=extractedTags.returns&&null!=extractedTags.returns.type;(hasParams||hasReturns)&&(propDef.jsDocTags={params:hasParams&&extractedTags.params.map((function(x){return{name:x.getPrettyName(),description:x.description}})),returns:hasReturns&&{description:extractedTags.returns.description}})}return propDef}var javaScriptFactory=function javaScriptFactory(propName,docgenInfo,jsDocParsingResult){var propDef=createBasicPropDef(propName,docgenInfo.type,docgenInfo);return propDef.sbType=convert(docgenInfo),applyJsDocResult(propDef,jsDocParsingResult)},tsFactory=function tsFactory(propName,docgenInfo,jsDocParsingResult){var propDef=function createTsPropDef(propName,docgenInfo){var description=docgenInfo.description,required=docgenInfo.required;return{name:propName,type:createType_createType(docgenInfo),required:required,description:description,defaultValue:createDefaultValue_createDefaultValue(docgenInfo)}}(propName,docgenInfo);return propDef.sbType=convert(docgenInfo),applyJsDocResult(propDef,jsDocParsingResult)},flowFactory=function flowFactory(propName,docgenInfo,jsDocParsingResult){var propDef=function createFlowPropDef(propName,docgenInfo){var flowType=docgenInfo.flowType,description=docgenInfo.description,required=docgenInfo.required,defaultValue=docgenInfo.defaultValue;return{name:propName,type:createType(flowType),required:required,description:description,defaultValue:createDefaultValue(defaultValue,flowType)}}(propName,docgenInfo);return propDef.sbType=convert(docgenInfo),applyJsDocResult(propDef,jsDocParsingResult)},unknownFactory=function unknownFactory(propName,docgenInfo,jsDocParsingResult){return applyJsDocResult(createBasicPropDef(propName,{name:"unknown"},docgenInfo),jsDocParsingResult)},getPropDefFactory=function getPropDefFactory(typeSystem){switch(typeSystem){case TypeSystem.JAVASCRIPT:return javaScriptFactory;case TypeSystem.TYPESCRIPT:return tsFactory;case TypeSystem.FLOW:return flowFactory;default:return unknownFactory}},getTypeSystem=function getTypeSystem(docgenInfo){return null!=docgenInfo.type?TypeSystem.JAVASCRIPT:null!=docgenInfo.flowType?TypeSystem.FLOW:null!=docgenInfo.tsType?TypeSystem.TYPESCRIPT:TypeSystem.UNKNOWN},extractComponentProps=function extractComponentProps(component,section){var docgenSection=getDocgenSection(component,section);return function isValidDocgenSection(docgenSection){return null!=docgenSection&&Object.keys(docgenSection).length>0}(docgenSection)?Array.isArray(docgenSection)?function extractComponentSectionArray(docgenSection){var typeSystem=getTypeSystem(docgenSection[0]),createPropDef=getPropDefFactory(typeSystem);return docgenSection.map((function(item){var _item$type,sanitizedItem=item;return null!==(_item$type=item.type)&&void 0!==_item$type&&_item$type.elements&&(sanitizedItem=Object.assign({},item,{type:Object.assign({},item.type,{value:item.type.elements})})),extractProp(sanitizedItem.name,sanitizedItem,typeSystem,createPropDef)}))}(docgenSection):function extractComponentSectionObject(docgenSection){var docgenPropsKeys=Object.keys(docgenSection),typeSystem=getTypeSystem(docgenSection[docgenPropsKeys[0]]),createPropDef=getPropDefFactory(typeSystem);return docgenPropsKeys.map((function(propName){var docgenInfo=docgenSection[propName];return null!=docgenInfo?extractProp(propName,docgenInfo,typeSystem,createPropDef):null})).filter(Boolean)}(docgenSection):[]};function extractProp(propName,docgenInfo,typeSystem,createPropDef){var jsDocParsingResult=function parseJsDoc(value){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:DEFAULT_OPTIONS;if(!containsJsDoc(value))return{includesJsDoc:!1,ignore:!1};var jsDocAst=parse(value,options.tags),extractedTags=extractJsDocTags(jsDocAst);return extractedTags.ignore?{includesJsDoc:!0,ignore:!0}:{includesJsDoc:!0,ignore:!1,description:jsDocAst.description,extractedTags:extractedTags}}(docgenInfo.description);return jsDocParsingResult.includesJsDoc&&jsDocParsingResult.ignore?null:{propDef:createPropDef(propName,docgenInfo,jsDocParsingResult),jsDocTags:jsDocParsingResult.extractedTags,docgenInfo:docgenInfo,typeSystem:typeSystem}}var parameters=__webpack_require__("./node_modules/@storybook/store/dist/esm/parameters.js"),prop_types=(__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.map.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/prop-types/index.js")),prop_types_default=__webpack_require__.n(prop_types);function generateFuncSignature_generateFuncSignature(params,returns){var hasParams=null!=params,hasReturns=null!=returns;if(!hasParams&&!hasReturns)return"";var funcParts=[];if(hasParams){var funcParams=params.map((function(x){var prettyName=x.getPrettyName(),typeName=x.getTypeName();return null!=typeName?"".concat(prettyName,": ").concat(typeName):prettyName}));funcParts.push("(".concat(funcParams.join(", "),")"))}else funcParts.push("()");return hasReturns&&funcParts.push("=> ".concat(returns.getTypeName())),funcParts.join(" ")}function generateShortFuncSignature(params,returns){var hasParams=null!=params,hasReturns=null!=returns;if(!hasParams&&!hasReturns)return"";var funcParts=[];return hasParams?funcParts.push("( ... )"):funcParts.push("()"),hasReturns&&funcParts.push("=> ".concat(returns.getTypeName())),funcParts.join(" ")}var html_tags=__webpack_require__("./node_modules/html-tags/index.js");function isHtmlTag(tagName){return html_tags.includes(tagName.toLowerCase())}__webpack_require__("./node_modules/core-js/modules/es.string.ends-with.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.string.starts-with.js");var escodegen=__webpack_require__("./node_modules/escodegen/escodegen.js"),esm=__webpack_require__("./node_modules/ts-dedent/esm/index.js"),BASIC_OPTIONS={format:{indent:{style:" "},semicolons:!1}},COMPACT_OPTIONS=Object.assign({},BASIC_OPTIONS,{format:{newline:""}}),PRETTY_OPTIONS=Object.assign({},BASIC_OPTIONS);function generateCode(ast){var compact=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,escodegen.R_)(ast,compact?COMPACT_OPTIONS:PRETTY_OPTIONS)}function generateObjectCode(ast){var compact=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return compact?generateCompactObjectCode(ast):generateCode(ast)}function generateCompactObjectCode(ast){var result=generateCode(ast,!0);return result.endsWith(" }")||(result="".concat(result.slice(0,-1)," }")),result}function generateArrayCode(ast){var compact=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return compact?generateCompactArrayCode(ast):generateMultilineArrayCode(ast)}function generateMultilineArrayCode(ast){var result=generateCode(ast);return result.endsWith(" }]")&&(result=(0,esm.C)(result)),result}function generateCompactArrayCode(ast){var result=generateCode(ast,!0);return result.startsWith("[ ")&&(result=result.replace("[ ","[")),result}var InspectionType,isMemo=function isMemo(component){return component.$$typeof===Symbol.for("react.memo")};!function(InspectionType){InspectionType.IDENTIFIER="Identifier",InspectionType.LITERAL="Literal",InspectionType.OBJECT="Object",InspectionType.ARRAY="Array",InspectionType.FUNCTION="Function",InspectionType.CLASS="Class",InspectionType.ELEMENT="Element",InspectionType.UNKNOWN="Unknown"}(InspectionType||(InspectionType={}));var acorn=__webpack_require__("./node_modules/@storybook/react/node_modules/acorn/dist/acorn.mjs"),acorn_jsx=__webpack_require__("./node_modules/@storybook/react/node_modules/acorn-jsx/index.js"),acorn_jsx_default=__webpack_require__.n(acorn_jsx);function simple(node,visitors,baseVisitor,state,override){baseVisitor||(baseVisitor=base),function c(node,st,override){var type=override||node.type,found=visitors[type];baseVisitor[type](node,st,c),found&&found(node,st)}(node,state,override)}Object.create;function skipThrough(node,st,c){c(node,st)}function ignore(_node,_st,_c){}var base={};base.Program=base.BlockStatement=function(node,st,c){for(var i=0,list=node.body;i1&&void 0!==arguments[1]&&arguments[1];return cleanPropTypes(generateObjectCode(ast,compact))}function prettyArray(ast){var compact=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return cleanPropTypes(generateCode(ast,compact))}function generateTypeFromString(value,originalTypeName){var short,compact,full,_inspectValue=inspectValue(value),inferredType=_inspectValue.inferredType,ast=_inspectValue.ast,type=inferredType.type;switch(type){case InspectionType.IDENTIFIER:case InspectionType.LITERAL:short=value,compact=value;break;case InspectionType.OBJECT:short="object",compact=1===inferredType.depth?prettyObject(ast,!0):null,full=prettyObject(ast);break;case InspectionType.ELEMENT:var identifier=inferredType.identifier;short=null==identifier||isHtmlTag(identifier)?"element":identifier,compact=1===splitIntoLines(value).length?value:null,full=value;break;case InspectionType.ARRAY:short="array",compact=inferredType.depth<=2?prettyArray(ast,!0):null,full=prettyArray(ast);break;default:short=function getCaptionForInspectionType(type){switch(type){case InspectionType.OBJECT:return"object";case InspectionType.ARRAY:return"array";case InspectionType.CLASS:return"class";case InspectionType.FUNCTION:return"func";case InspectionType.ELEMENT:return"element";default:return"custom"}}(type),compact=1===splitIntoLines(value).length?value:null,full=value}return createTypeDef({name:originalTypeName,short:short,compact:compact,full:full,inferredType:type})}function objectOf(of){return"objectOf(".concat(of,")")}function generateEnum(type){if(Array.isArray(type.value)){var values=type.value.reduce((function(acc,v){var _generateEnumValue=function generateEnumValue(_ref7){var value=_ref7.value;return _ref7.computed?generateTypeFromString(value,"enumvalue"):createTypeDef({name:"enumvalue",short:value,compact:value})}(v),short=_generateEnumValue.short,compact=_generateEnumValue.compact,full=_generateEnumValue.full;return acc.short.push(short),acc.compact.push(compact),acc.full.push(full),acc}),{short:[],compact:[],full:[]});return createTypeDef({name:PropTypesType.ENUM,short:values.short.join(" | "),compact:values.compact.every((function(x){return null!=x}))?values.compact.join(" | "):null,full:values.full.join(" | ")})}return createTypeDef({name:PropTypesType.ENUM,short:type.value,compact:type.value})}function braceAfter(of){return"".concat(of,"[]")}function braceAround(of){return"[".concat(of,"]")}function createArrayOfObjectTypeDef(short,compact,full){return createTypeDef({name:PropTypesType.ARRAYOF,short:braceAfter(short),compact:null!=compact?braceAround(compact):null,full:braceAround(full)})}function generateType(type,extractedProp){try{switch(type.name){case PropTypesType.CUSTOM:return function generateCustom(_ref5){var raw=_ref5.raw;return null!=raw?generateTypeFromString(raw,PropTypesType.CUSTOM):createTypeDef({name:PropTypesType.CUSTOM,short:"custom",compact:"custom"})}(type);case PropTypesType.FUNC:return function generateFunc(extractedProp){var jsDocTags=extractedProp.jsDocTags;return null==jsDocTags||null==jsDocTags.params&&null==jsDocTags.returns?createTypeDef({name:PropTypesType.FUNC,short:"func",compact:"func"}):createTypeDef({name:PropTypesType.FUNC,short:generateShortFuncSignature(jsDocTags.params,jsDocTags.returns),compact:null,full:generateFuncSignature_generateFuncSignature(jsDocTags.params,jsDocTags.returns)})}(extractedProp);case PropTypesType.SHAPE:return function generateShape(type,extractedProp){var fields=Object.keys(type.value).map((function(key){return"".concat(key,": ").concat(generateType(type.value[key],extractedProp).full)})).join(", "),_inspectValue2=inspectValue("{ ".concat(fields," }")),inferredType=_inspectValue2.inferredType,ast=_inspectValue2.ast,depth=inferredType.depth;return createTypeDef({name:PropTypesType.SHAPE,short:"object",compact:1===depth&&ast?prettyObject(ast,!0):null,full:ast?prettyObject(ast):null})}(type,extractedProp);case PropTypesType.INSTANCEOF:return createTypeDef({name:PropTypesType.INSTANCEOF,short:type.value,compact:type.value});case PropTypesType.OBJECTOF:return function generateObjectOf(type,extractedProp){var _generateType=generateType(type.value,extractedProp),short=_generateType.short,compact=_generateType.compact,full=_generateType.full;return createTypeDef({name:PropTypesType.OBJECTOF,short:objectOf(short),compact:null!=compact?objectOf(compact):null,full:objectOf(full)})}(type,extractedProp);case PropTypesType.UNION:return function createType_generateUnion(type,extractedProp){if(Array.isArray(type.value)){var values=type.value.reduce((function(acc,v){var _generateType2=generateType(v,extractedProp),short=_generateType2.short,compact=_generateType2.compact,full=_generateType2.full;return acc.short.push(short),acc.compact.push(compact),acc.full.push(full),acc}),{short:[],compact:[],full:[]});return createTypeDef({name:PropTypesType.UNION,short:values.short.join(" | "),compact:values.compact.every((function(x){return null!=x}))?values.compact.join(" | "):null,full:values.full.join(" | ")})}return createTypeDef({name:PropTypesType.UNION,short:type.value,compact:null})}(type,extractedProp);case PropTypesType.ENUM:return generateEnum(type);case PropTypesType.ARRAYOF:return function generateArray(type,extractedProp){var _generateType3=generateType(type.value,extractedProp),name=_generateType3.name,short=_generateType3.short,compact=_generateType3.compact,full=_generateType3.full,inferredType=_generateType3.inferredType;if(name===PropTypesType.CUSTOM){if(inferredType===InspectionType.OBJECT)return createArrayOfObjectTypeDef(short,compact,full)}else if(name===PropTypesType.SHAPE)return createArrayOfObjectTypeDef(short,compact,full);return createTypeDef({name:PropTypesType.ARRAYOF,short:braceAfter(short),compact:braceAfter(short)})}(type,extractedProp);default:return createTypeDef({name:type.name,short:type.name,compact:type.name})}}catch(e){console.error(e)}return createTypeDef({name:"unknown",short:"unknown",compact:"unknown"})}function generateObject(_ref){var inferredType=_ref.inferredType,ast=_ref.ast;if(1===inferredType.depth){var compactObject=generateObjectCode(ast,!0);if(!isTooLongForDefaultValueSummary(compactObject))return createSummaryValue(compactObject)}return createSummaryValue("object",generateObjectCode(ast))}function generateArray_generateArray(_ref){var inferredType=_ref.inferredType,ast=_ref.ast;if(inferredType.depth<=2){var compactArray=generateArrayCode(ast,!0);if(!isTooLongForDefaultValueSummary(compactArray))return createSummaryValue(compactArray)}return createSummaryValue("array",generateArrayCode(ast))}function getPrettyIdentifier(inferredType){var type=inferredType.type,identifier=inferredType.identifier;switch(type){case InspectionType.FUNCTION:return getPrettyFuncIdentifier(identifier,inferredType.hasParams);case InspectionType.ELEMENT:return getPrettyElementIdentifier(identifier);default:return identifier}}function getPrettyFuncIdentifier(identifier,hasArguments){return"".concat(identifier,hasArguments?"( ... )":"()")}function getPrettyElementIdentifier(identifier){return"<".concat(identifier," />")}function defaultValues_createDefaultValue_createDefaultValue(defaultValue){try{var inspectionResult=inspectValue(defaultValue);switch(inspectionResult.inferredType.type){case InspectionType.OBJECT:return generateObject(inspectionResult);case InspectionType.FUNCTION:return function createDefaultValue_generateFunc(_ref){var inferredType=_ref.inferredType,ast=_ref.ast;if(null!=inferredType.identifier)return createSummaryValue(getPrettyIdentifier(inferredType),generateCode(ast));var prettyCaption=generateCode(ast,!0);return isTooLongForDefaultValueSummary(prettyCaption)?createSummaryValue("func",generateCode(ast)):createSummaryValue(prettyCaption)}(inspectionResult);case InspectionType.ELEMENT:return function generateElement(defaultValue,inspectionResult){var inferredType=inspectionResult.inferredType,identifier=inferredType.identifier;return null==identifier||isHtmlTag(identifier)?isTooLongForDefaultValueSummary(defaultValue)?createSummaryValue("element",defaultValue):createSummaryValue(defaultValue):createSummaryValue(getPrettyIdentifier(inferredType),defaultValue)}(defaultValue,inspectionResult);case InspectionType.ARRAY:return generateArray_generateArray(inspectionResult);default:return null}}catch(e){console.error(e)}return null}!function(PropTypesType){PropTypesType.CUSTOM="custom",PropTypesType.ANY="any",PropTypesType.FUNC="func",PropTypesType.SHAPE="shape",PropTypesType.OBJECT="object",PropTypesType.INSTANCEOF="instanceOf",PropTypesType.OBJECTOF="objectOf",PropTypesType.UNION="union",PropTypesType.ENUM="enum",PropTypesType.ARRAYOF="arrayOf",PropTypesType.ELEMENT="element",PropTypesType.ELEMENTTYPE="elementType",PropTypesType.NODE="node"}(PropTypesType||(PropTypesType={}));__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js");var isPlainObject=__webpack_require__("./node_modules/lodash/isPlainObject.js"),isPlainObject_default=__webpack_require__.n(isPlainObject),isFunction=__webpack_require__("./node_modules/lodash/isFunction.js"),isFunction_default=__webpack_require__.n(isFunction),isString=__webpack_require__("./node_modules/lodash/isString.js"),isString_default=__webpack_require__.n(isString),cjs=__webpack_require__("./node_modules/react-element-to-jsx-string/dist/cjs/index.js");function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function isReactElement(element){return null!=element.$$typeof}function extractFunctionName(func,propName){var name=func.name;return""!==name&&"anonymous"!==name&&name!==propName?name:null}var DEFAULT_TYPE_RESOLVERS={string:function stringResolver(rawDefaultProp){return createSummaryValue(JSON.stringify(rawDefaultProp))},object:function objectResolver(rawDefaultProp){return isReactElement(rawDefaultProp)&&null!=rawDefaultProp.type?function generateReactObject(rawDefaultProp){var type=rawDefaultProp.type,displayName=type.displayName,jsx=(0,cjs.ZP)(rawDefaultProp,{});if(null!=displayName)return createSummaryValue(getPrettyElementIdentifier(displayName),jsx);if(isString_default()(type)&&isHtmlTag(type)){var jsxSummary=(0,cjs.ZP)(rawDefaultProp,{tabStop:0}).replace(/\r?\n|\r/g,"");if(!isTooLongForDefaultValueSummary(jsxSummary))return createSummaryValue(jsxSummary)}return createSummaryValue("element",jsx)}(rawDefaultProp):isPlainObject_default()(rawDefaultProp)?generateObject(inspectValue(JSON.stringify(rawDefaultProp))):Array.isArray(rawDefaultProp)?generateArray_generateArray(inspectValue(JSON.stringify(rawDefaultProp))):createSummaryValue("object")},function:function functionResolver(rawDefaultProp,propDef){var inspectionResult,isElement=!1;if(isFunction_default()(rawDefaultProp.render))isElement=!0;else if(null!=rawDefaultProp.prototype&&isFunction_default()(rawDefaultProp.prototype.render))isElement=!0;else{var innerElement;try{var _ref=(inspectionResult=inspectValue(rawDefaultProp.toString())).inferredType,hasParams=_ref.hasParams,params=_ref.params;hasParams?1===params.length&&"ObjectPattern"===params[0].type&&(innerElement=rawDefaultProp({})):innerElement=rawDefaultProp(),null!=innerElement&&isReactElement(innerElement)&&(isElement=!0)}catch(e){}}var funcName=extractFunctionName(rawDefaultProp,propDef.name);return null!=funcName?isElement?createSummaryValue(getPrettyElementIdentifier(funcName)):(null!=inspectionResult&&(inspectionResult=inspectValue(rawDefaultProp.toString())),createSummaryValue(getPrettyFuncIdentifier(funcName,inspectionResult.inferredType.hasParams))):createSummaryValue(isElement?"element":"func")},default:function defaultResolver(rawDefaultProp){return createSummaryValue(rawDefaultProp.toString())}};function createDefaultValueFromRawDefaultProp(rawDefaultProp,propDef){var typeResolvers=arguments.length>2&&void 0!==arguments[2]?arguments[2]:DEFAULT_TYPE_RESOLVERS;try{switch(_typeof(rawDefaultProp)){case"string":return typeResolvers.string(rawDefaultProp,propDef);case"object":return typeResolvers.object(rawDefaultProp,propDef);case"function":return typeResolvers.function(rawDefaultProp,propDef);default:return typeResolvers.default(rawDefaultProp,propDef)}}catch(e){console.error(e)}return null}__webpack_require__("./node_modules/core-js/modules/es.array.find.js");var rawDefaultPropTypeResolvers=function createTypeResolvers(){var customResolvers=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({},DEFAULT_TYPE_RESOLVERS,customResolvers)}({function:function funcResolver(rawDefaultProp,_ref){var name=_ref.name,type=_ref.type,isElement="element"===type.summary||"elementType"===type.summary,funcName=extractFunctionName(rawDefaultProp,name);return createSummaryValue(null!=funcName?isElement?getPrettyElementIdentifier(funcName):getPrettyFuncIdentifier(funcName,inspectValue(rawDefaultProp.toString()).inferredType.hasParams):isElement?"element":"func")}});function enhancePropTypesProp(extractedProp,rawDefaultProp){var propDef=extractedProp.propDef,newtype=function propTypes_createType_createType(extractedProp){var type=extractedProp.docgenInfo.type;if(null==type)return null;try{switch(type.name){case PropTypesType.CUSTOM:case PropTypesType.SHAPE:case PropTypesType.INSTANCEOF:case PropTypesType.OBJECTOF:case PropTypesType.UNION:case PropTypesType.ENUM:case PropTypesType.ARRAYOF:var _generateType4=generateType(type,extractedProp),short=_generateType4.short,compact=_generateType4.compact,full=_generateType4.full;return null==compact||isTooLongForTypeSummary(compact)?createSummaryValue(short,full):createSummaryValue(compact);case PropTypesType.FUNC:var detail,_generateType5=generateType(type,extractedProp),_short=_generateType5.short,_full=_generateType5.full,summary=_short;return _full.length<150?summary=_full:detail=function toMultilineSignature(signature){return signature.replace(/,/g,",\r\n")}(_full),createSummaryValue(summary,detail);default:return null}}catch(e){console.error(e)}return null}(extractedProp);null!=newtype&&(propDef.type=newtype);var defaultValue=extractedProp.docgenInfo.defaultValue;if(null!=defaultValue&&null!=defaultValue.value){var newDefaultValue=defaultValues_createDefaultValue_createDefaultValue(defaultValue.value);null!=newDefaultValue&&(propDef.defaultValue=newDefaultValue)}else if(null!=rawDefaultProp){var _newDefaultValue=createDefaultValueFromRawDefaultProp(rawDefaultProp,propDef,rawDefaultPropTypeResolvers);null!=_newDefaultValue&&(propDef.defaultValue=_newDefaultValue)}return propDef}function enhancePropTypesProps(extractedProps,component){var rawDefaultProps=null!=component.defaultProps?component.defaultProps:{};return function keepOriginalDefinitionOrder(extractedProps,component){var propTypes=component.propTypes;return null!=propTypes?Object.keys(propTypes).map((function(x){return extractedProps.find((function(y){return y.name===x}))})).filter((function(x){return x})):extractedProps}(extractedProps.map((function(x){return enhancePropTypesProp(x,rawDefaultProps[x.propDef.name])})),component)}function enhanceTypeScriptProps(extractedProps){return extractedProps.map((function(prop){return function enhanceTypeScriptProp(extractedProp,rawDefaultProp){var propDef=extractedProp.propDef,defaultValue=extractedProp.docgenInfo.defaultValue;if(null!=defaultValue&&null!=defaultValue.value){var newDefaultValue=defaultValues_createDefaultValue_createDefaultValue(defaultValue.value);null!=newDefaultValue&&(propDef.defaultValue=newDefaultValue)}else if(null!=rawDefaultProp){var _newDefaultValue=createDefaultValueFromRawDefaultProp(rawDefaultProp,propDef);null!=_newDefaultValue&&(propDef.defaultValue=_newDefaultValue)}return propDef}(prop)}))}var propTypesMap=new Map;function getPropDefs(component,section){var processedComponent=component;hasDocgen(component)||component.propTypes||!isMemo(component)||(processedComponent=component.type);var extractedProps=extractComponentProps(processedComponent,section);if(0===extractedProps.length)return[];switch(extractedProps[0].typeSystem){case TypeSystem.JAVASCRIPT:return enhancePropTypesProps(extractedProps,component);case TypeSystem.TYPESCRIPT:return enhanceTypeScriptProps(extractedProps);default:return extractedProps.map((function(x){return x.propDef}))}}Object.keys(prop_types_default()).forEach((function(typeName){var type=prop_types_default()[typeName];propTypesMap.set(type,typeName),propTypesMap.set(type.isRequired,typeName)}));__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.match.js");var SourceType,react=__webpack_require__("./node_modules/react/index.js"),browser=__webpack_require__("./node_modules/util-deprecate/browser.js"),browser_default=__webpack_require__.n(browser),dist_esm=__webpack_require__("./node_modules/@storybook/addons/dist/esm/index.js"),hooks=__webpack_require__("./node_modules/@storybook/addons/dist/esm/hooks.js"),SNIPPET_RENDERED=("".concat("storybook/docs","/panel"),"".concat("storybook/docs","/snippet-rendered"));!function(SourceType){SourceType.AUTO="auto",SourceType.CODE="code",SourceType.DYNAMIC="dynamic"}(SourceType||(SourceType={}));var _templateObject,client_logger_dist_esm=__webpack_require__("./node_modules/@storybook/client-logger/dist/esm/index.js"),_excluded=["mdxType","originalType","children"];function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var applyBeforeRender=function applyBeforeRender(domString,options){return"function"!=typeof options.onBeforeRender?domString:browser_default()(options.onBeforeRender,(0,esm.C)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n StoryFn.parameters.jsx.onBeforeRender was deprecated.\n Prefer StoryFn.parameters.jsx.transformSource instead.\n See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-onbeforerender for details.\n "]))))(domString)},renderJsx=function renderJsx(code,options){if(void 0===code)return client_logger_dist_esm.kg.warn("Too many skip or undefined component"),null;for(var renderedJSX=code,Type=renderedJSX.type,i=0;i1)return client_logger_dist_esm.kg.warn("Trying to skip an array of elements"),null;void 0===renderedJSX.props.children?(client_logger_dist_esm.kg.warn("Not enough children to skip elements."),"function"==typeof renderedJSX.type&&""===renderedJSX.type.name&&(renderedJSX=react.createElement(Type,renderedJSX.props))):renderedJSX="function"==typeof renderedJSX.props.children?renderedJSX.props.children():renderedJSX.props.children}var displayNameDefaults="string"==typeof options.displayName?{showFunctions:!0,displayName:function displayName(){return options.displayName}}:{displayName:function displayName(el){return el.type.displayName||getDocgenSection(el.type,"displayName")||("_default"!==el.type.name?el.type.name:null)||("function"==typeof el.type?"No Display Name":null)||(function isForwardRef(component){return component.$$typeof===Symbol.for("react.forward_ref")}(el.type)?el.type.render.name:null)||(isMemo(el.type)?el.type.type.name:null)||el.type}},filterDefaults={filterProps:function filterProps(value,key){return void 0!==value}},opts=Object.assign({},displayNameDefaults,filterDefaults,options),result=react.Children.map(code,(function(c){var child="number"==typeof c?c.toString():c,string=applyBeforeRender((0,cjs.ZP)(child,opts),options);if(string.indexOf(""")>-1){var matches=string.match(/\S+=\\"([^"]*)\\"/g);matches&&matches.forEach((function(match){string=string.replace(match,match.replace(/"/g,"'"))}))}return string})).join("\n");return result.replace(/function\s+noRefCheck\(\)\s+\{\}/,"() => {}")},defaultOpts={skip:0,showFunctions:!1,enableBeautify:!0,showDefaultProps:!1},mdxToJsx=function mdxToJsx(node){if(!function isMdx(node){var _node$type,_node$props;return"MDXCreateElement"===(null===(_node$type=node.type)||void 0===_node$type?void 0:_node$type.displayName)&&!(null===(_node$props=node.props)||void 0===_node$props||!_node$props.mdxType)}(node))return node;var _node$props2=node.props,originalType=(_node$props2.mdxType,_node$props2.originalType),children=_node$props2.children,rest=_objectWithoutProperties(_node$props2,_excluded),jsxChildren=[];children&&(jsxChildren=(Array.isArray(children)?children:[children]).map(mdxToJsx));return react.createElement.apply(void 0,[originalType,rest].concat(_toConsumableArray(jsxChildren)))},config_parameters={docs:{inlineStories:!0,prepareForInline:function prepareForInline(storyFn){return storyFn()},extractArgTypes:function extractArgTypes(component){if(component){var _extractProps=function extractProps(component){return{rows:getPropDefs(component,"props")}}(component),rows=_extractProps.rows;if(rows)return rows.reduce((function(acc,row){var name=row.name,description=row.description,type=row.type,sbType=row.sbType,defaultSummary=row.defaultValue,jsDocTags=row.jsDocTags,required=row.required;return acc[name]={name:name,description:description,type:Object.assign({required:required},sbType),table:{type:type,jsDocTags:jsDocTags,defaultValue:defaultSummary}},acc}),{})}return null},extractComponentDescription:function extractComponentDescription(component){return null!=component&&function getDocgenDescription(component){return hasDocgen(component)&&(0,string.B)(component.__docgenInfo.description)}(component)}}},decorators=[function jsxDecorator(storyFn,context){var _context$parameters$d2,_context$parameters$d3,channel=dist_esm.KP.getChannel(),skip=function skipJsxRender(context){var _context$parameters$d,sourceParams=null==context||null===(_context$parameters$d=context.parameters.docs)||void 0===_context$parameters$d?void 0:_context$parameters$d.source,isArgsStory=null==context?void 0:context.parameters.__isArgsStory;return(null==sourceParams?void 0:sourceParams.type)!==SourceType.DYNAMIC&&(!isArgsStory||(null==sourceParams?void 0:sourceParams.code)||(null==sourceParams?void 0:sourceParams.type)===SourceType.CODE)}(context),story=storyFn(),jsx="";if((0,hooks.d4)((function(){skip||channel.emit(SNIPPET_RENDERED,(context||{}).id,jsx)})),skip)return story;var options=Object.assign({},defaultOpts,(null==context?void 0:context.parameters.jsx)||{}),storyJsx=null!=context&&null!==(_context$parameters$d2=context.parameters.docs)&&void 0!==_context$parameters$d2&&null!==(_context$parameters$d3=_context$parameters$d2.source)&&void 0!==_context$parameters$d3&&_context$parameters$d3.excludeDecorators?context.originalStoryFn(context.args,context):story,sourceJsx=mdxToJsx(storyJsx),rendered=renderJsx(sourceJsx,options);return rendered&&(jsx=function applyTransformSource(domString,options,context){return"function"!=typeof options.transformSource?domString:options.transformSource(domString,context)}(rendered,options,context)),story}],argTypesEnhancers=[function enhanceArgTypes(context){var component=context.component,userArgTypes=context.argTypes,_context$parameters$d=context.parameters.docs,extractArgTypes=(void 0===_context$parameters$d?{}:_context$parameters$d).extractArgTypes,extractedArgTypes=extractArgTypes&&component?extractArgTypes(component):{};return extractedArgTypes?(0,parameters.f)(extractedArgTypes,userArgTypes):userArgTypes}];function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}Object.keys(config_namespaceObject).forEach((function(key){var value=config_namespaceObject[key];switch(key){case"args":return(0,ClientApi.uc)(value);case"argTypes":return(0,ClientApi.v9)(value);case"decorators":return value.forEach((function(decorator){return(0,ClientApi.$9)(decorator,!1)}));case"loaders":return value.forEach((function(loader){return(0,ClientApi.HZ)(loader,!1)}));case"parameters":return(0,ClientApi.h1)(function _objectSpread(target){for(var i=1;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&void 0!==arguments[0]?arguments[0]:{v:3,stories:{}},stories=_ref.stories;_classCallCheck(this,StoryIndexStore),this.channel=void 0,this.stories=void 0,this.stories=stories}return function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(StoryIndexStore,[{key:"storyIdFromSpecifier",value:function storyIdFromSpecifier(specifier){var storyIds=Object.keys(this.stories);if("*"===specifier)return storyIds[0];if("string"==typeof specifier)return storyIds.indexOf(specifier)>=0?specifier:storyIds.find((function(storyId){return storyId.startsWith(specifier)}));var name=specifier.name,title=specifier.title,match=Object.entries(this.stories).find((function(_ref2){var _ref3=_slicedToArray(_ref2,2),story=(_ref3[0],_ref3[1]);return story.name===name&&story.title===title}));return match&&match[0]}},{key:"storyIdToEntry",value:function storyIdToEntry(storyId){var storyEntry=this.stories[storyId];if(!storyEntry)throw new Error((0,esm.C)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["Couldn't find story matching '","' after HMR.\n - Did you remove it from your CSF file?\n - Are you sure a story with that id exists?\n - Please check your stories field of your main.js config.\n - Also check the browser console and terminal for error messages."])),storyId));return storyEntry}}]),StoryIndexStore}(),fast_deep_equal=(__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.find-index.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.fill.js"),__webpack_require__("./node_modules/fast-deep-equal/index.js")),fast_deep_equal_default=__webpack_require__.n(fast_deep_equal),dist_esm=__webpack_require__("./node_modules/@storybook/client-logger/dist/esm/index.js"),isPlainObject=__webpack_require__("./node_modules/lodash/isPlainObject.js"),isPlainObject_default=__webpack_require__.n(isPlainObject);function args_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return args_arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||args_unsupportedIterableToArray(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function args_slicedToArray(arr,i){return function args_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function args_iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||args_unsupportedIterableToArray(arr,i)||function args_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function args_unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return args_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?args_arrayLikeToArray(o,minLen):void 0}}function args_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=value.length?res:res.concat(new Array(value.length-update.length).fill(void 0))}return isPlainObject_default()(value)&&isPlainObject_default()(update)?Object.keys(Object.assign({},value,update)).reduce((function(acc,key){var diff=deepDiff(null==value?void 0:value[key],null==update?void 0:update[key]);return diff===DEEPLY_EQUAL?acc:Object.assign(acc,_defineProperty({},key,diff))}),{}):update};function groupArgsByTarget(_ref7){var args=_ref7.args,argTypes=_ref7.argTypes,groupedArgs={};return Object.entries(args).forEach((function(_ref8){var _ref9=args_slicedToArray(_ref8,2),name=_ref9[0],value=_ref9[1],_ref10$target=(argTypes[name]||{}).target,target=void 0===_ref10$target?"":_ref10$target;groupedArgs[target]=groupedArgs[target]||{},groupedArgs[target][name]=value})),groupedArgs}function ArgsStore_defineProperties(target,props){for(var i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&void 0!==arguments[0]?arguments[0]:{};return Object.entries(argTypes).reduce((function(acc,_ref){var _ref2=getValuesFromArgTypes_slicedToArray(_ref,2),arg=_ref2[0],defaultValue=_ref2[1].defaultValue;return void 0!==defaultValue&&(acc[arg]=defaultValue),acc}),{})};function GlobalsStore_slicedToArray(arr,i){return function GlobalsStore_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function GlobalsStore_iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||GlobalsStore_unsupportedIterableToArray(arr,i)||function GlobalsStore_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function GlobalsStore_toConsumableArray(arr){return function GlobalsStore_arrayWithoutHoles(arr){if(Array.isArray(arr))return GlobalsStore_arrayLikeToArray(arr)}(arr)||function GlobalsStore_iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||GlobalsStore_unsupportedIterableToArray(arr)||function GlobalsStore_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function GlobalsStore_unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return GlobalsStore_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?GlobalsStore_arrayLikeToArray(o,minLen):void 0}}function GlobalsStore_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i StoryFn.storyName\n- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)\nSee https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.\n"]))),deprecatedStoryAnnotationWarning=browser_default()((function(){}),deprecatedStoryAnnotation);function normalizeStory(key,storyAnnotations,meta){var userStoryFn,storyObject;"function"==typeof storyAnnotations?(userStoryFn=storyAnnotations,storyObject=storyAnnotations):storyObject=storyAnnotations;var story=storyObject.story;story&&(dist_esm.kg.debug("deprecated story",story),deprecatedStoryAnnotationWarning());var exportName=(0,dist.storyNameFromExport)(key),name="function"!=typeof storyObject&&storyObject.name||storyObject.storyName||(null==story?void 0:story.name)||exportName,decorators=[].concat(normalizeStory_toConsumableArray(storyObject.decorators||[]),normalizeStory_toConsumableArray((null==story?void 0:story.decorators)||[])),parameters=Object.assign({},null==story?void 0:story.parameters,storyObject.parameters),args=Object.assign({},null==story?void 0:story.args,storyObject.args),argTypes=Object.assign({},null==story?void 0:story.argTypes,storyObject.argTypes),loaders=[].concat(normalizeStory_toConsumableArray(storyObject.loaders||[]),normalizeStory_toConsumableArray((null==story?void 0:story.loaders)||[])),_storyObject2=storyObject,render=_storyObject2.render,play=_storyObject2.play,id=parameters.__id||(0,dist.toId)(meta.id||meta.title,exportName);return Object.assign({id:id,name:name,decorators:decorators,parameters:parameters,args:args,argTypes:(0,normalizeInputTypes.x)(argTypes),loaders:loaders},render&&{render:render},userStoryFn&&{userStoryFn:userStoryFn},play&&{play:play})}function normalizeComponentAnnotations(defaultExport){var title=arguments.length>1&&void 0!==arguments[1]?arguments[1]:defaultExport.title,importPath=arguments.length>2?arguments[2]:void 0,id=defaultExport.id,argTypes=defaultExport.argTypes;return Object.assign({id:(0,dist.sanitize)(id||title)},defaultExport,{title:title},argTypes&&{argTypes:(0,normalizeInputTypes.x)(argTypes)},{parameters:Object.assign({fileName:importPath},defaultExport.parameters)})}var _excluded=["default","__namedExportsOrder"];function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var checkDisallowedParameters=function checkDisallowedParameters(parameters){parameters&&(function checkGlobals(parameters){var globals=parameters.globals,globalTypes=parameters.globalTypes;(globals||globalTypes)&&dist_esm.kg.error("Global args/argTypes can only be set globally",JSON.stringify({globals:globals,globalTypes:globalTypes}))}(parameters),function checkStorySort(parameters){var options=parameters.options;null!=options&&options.storySort&&dist_esm.kg.error("The storySort option parameter can only be set globally")}(parameters))};function processCSFFile(moduleExports,importPath,title){var defaultExport=moduleExports.default,namedExports=(moduleExports.__namedExportsOrder,_objectWithoutProperties(moduleExports,_excluded)),meta=normalizeComponentAnnotations(defaultExport,title,importPath);checkDisallowedParameters(meta.parameters);var csfFile={meta:meta,stories:{}};return Object.keys(namedExports).forEach((function(key){if((0,dist.isExportStory)(key,meta)){var storyMeta=normalizeStory(key,namedExports[key],meta);checkDisallowedParameters(storyMeta.parameters),csfFile.stories[storyMeta.id]=storyMeta}})),csfFile}var prepareStory_templateObject,esm_parameters=__webpack_require__("./node_modules/@storybook/store/dist/esm/parameters.js"),hooks=__webpack_require__("./node_modules/@storybook/addons/dist/esm/hooks.js"),decorators_excluded=["componentId","title","kind","id","name","story","parameters","initialArgs","argTypes"];function decorators_objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function decorators_objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function defaultDecorateStory(storyFn,decorators){var contextStore={},bindWithContext=function bindWithContext(decoratedStoryFn){return function(update){return contextStore.value=Object.assign({},contextStore.value,function sanitizeStoryContextUpdate(){var _ref=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _ref.componentId,_ref.title,_ref.kind,_ref.id,_ref.name,_ref.story,_ref.parameters,_ref.initialArgs,_ref.argTypes,decorators_objectWithoutProperties(_ref,decorators_excluded)}(update)),decoratedStoryFn(contextStore.value)}},decoratedWithContextStore=decorators.reduce((function(story,decorator){return function decorateStory(storyFn,decorator,bindWithContext){var boundStoryFunction=bindWithContext(storyFn);return function(context){return decorator(boundStoryFunction,context)}}(story,decorator,bindWithContext)}),storyFn);return function(context){return contextStore.value=context,decoratedWithContextStore(context)}}function prepareStory_slicedToArray(arr,i){return function prepareStory_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function prepareStory_iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||prepareStory_unsupportedIterableToArray(arr,i)||function prepareStory_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function prepareStory_toConsumableArray(arr){return function prepareStory_arrayWithoutHoles(arr){if(Array.isArray(arr))return prepareStory_arrayLikeToArray(arr)}(arr)||function prepareStory_iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||prepareStory_unsupportedIterableToArray(arr)||function prepareStory_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function prepareStory_unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return prepareStory_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?prepareStory_arrayLikeToArray(o,minLen):void 0}}function prepareStory_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0;var passedArgs=Object.assign({},projectAnnotations.args,componentAnnotations.args,storyAnnotations.args),contextForEnhancers={componentId:componentAnnotations.id,title:title,kind:title,id:id,name:name,story:name,component:componentAnnotations.component,subcomponents:componentAnnotations.subcomponents,parameters:parameters,initialArgs:passedArgs,argTypes:passedArgTypes};contextForEnhancers.argTypes=argTypesEnhancers.reduce((function(accumulatedArgTypes,enhancer){return enhancer(Object.assign({},contextForEnhancers,{argTypes:accumulatedArgTypes}))}),contextForEnhancers.argTypes);var defaultArgs=getValuesFromArgTypes(contextForEnhancers.argTypes);Object.keys(defaultArgs).length>0&&argTypeDefaultValueWarning();var initialArgsBeforeEnhancers=Object.assign({},defaultArgs,passedArgs);contextForEnhancers.initialArgs=argsEnhancers.reduce((function(accumulatedArgs,enhancer){return Object.assign({},accumulatedArgs,enhancer(Object.assign({},contextForEnhancers,{initialArgs:accumulatedArgs})))}),initialArgsBeforeEnhancers),null!==(_global$FEATURES=window_default().FEATURES)&&void 0!==_global$FEATURES&&_global$FEATURES.breakingChangesV7||(contextForEnhancers.parameters=Object.assign({},contextForEnhancers.parameters,{__id:id,globals:projectAnnotations.globals,globalTypes:projectAnnotations.globalTypes,args:contextForEnhancers.initialArgs,argTypes:contextForEnhancers.argTypes}));var applyLoaders=function(){var _ref=function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}(regeneratorRuntime.mark((function _callee(context){var loadResults,loaded;return regeneratorRuntime.wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=2,Promise.all(loaders.map((function(loader){return loader(context)})));case 2:return loadResults=_context.sent,loaded=Object.assign.apply(Object,[{}].concat(prepareStory_toConsumableArray(loadResults))),_context.abrupt("return",Object.assign({},context,{loaded:loaded}));case 5:case"end":return _context.stop()}}),_callee)})));return function applyLoaders(_x){return _ref.apply(this,arguments)}}(),undecoratedStoryFn=function undecoratedStoryFn(context){var mappedArgs=Object.entries(context.args).reduce((function(acc,_ref2){var _context$argTypes$key,_ref3=prepareStory_slicedToArray(_ref2,2),key=_ref3[0],val=_ref3[1],mapping=null===(_context$argTypes$key=context.argTypes[key])||void 0===_context$argTypes$key?void 0:_context$argTypes$key.mapping;return acc[key]=mapping&&val in mapping?mapping[val]:val,acc}),{}),includedArgs=Object.entries(mappedArgs).reduce((function(acc,_ref4){var _ref5=prepareStory_slicedToArray(_ref4,2),key=_ref5[0],val=_ref5[1],argType=context.argTypes[key]||{};return(0,dist.includeConditionalArg)(argType,mappedArgs,context.globals)&&(acc[key]=val),acc}),{}),includedContext=Object.assign({},context,{args:includedArgs}),_context$parameters$p=context.parameters.passArgsFirst;return void 0===_context$parameters$p||_context$parameters$p?render(includedContext.args,includedContext):render(includedContext)},decoratedStoryFn=(0,hooks.DM)(applyDecorators)(undecoratedStoryFn,decorators),playFunction=storyAnnotations.play;return Object.freeze(Object.assign({},contextForEnhancers,{originalStoryFn:render,undecoratedStoryFn:undecoratedStoryFn,unboundStoryFn:function unboundStoryFn(context){var _global$FEATURES2,finalContext=context;if(null!==(_global$FEATURES2=window_default().FEATURES)&&void 0!==_global$FEATURES2&&_global$FEATURES2.argTypeTargetsV7){var argsByTarget=groupArgsByTarget(Object.assign({args:context.args},context));finalContext=Object.assign({},context,{allArgs:context.args,argsByTarget:argsByTarget,args:argsByTarget[""]||{}})}return decoratedStoryFn(finalContext)},applyLoaders:applyLoaders,playFunction:playFunction}))}function inferArgTypes_typeof(obj){return inferArgTypes_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},inferArgTypes_typeof(obj)}var inferType=function inferType(value,name,visited){var type=inferArgTypes_typeof(value);switch(type){case"boolean":case"string":case"number":case"function":case"symbol":return{name:type}}return value?visited.has(value)?(dist_esm.kg.warn((0,esm.C)(inferArgTypes_templateObject||(inferArgTypes_templateObject=function inferArgTypes_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n We've detected a cycle in arg '","'. Args should be JSON-serializable.\n\n Consider using the mapping feature or fully custom args:\n - Mapping: https://storybook.js.org/docs/react/writing-stories/args#mapping-to-complex-arg-values\n - Custom args: https://storybook.js.org/docs/react/essentials/controls#fully-custom-args\n "])),name)),{name:"other",value:"cyclic object"}):(visited.add(value),Array.isArray(value)?{name:"array",value:value.length>0?inferType(value[0],name,new Set(visited)):{name:"other",value:"unknown"}}:{name:"object",value:mapValues_default()(value,(function(field){return inferType(field,name,new Set(visited))}))}):{name:"object",value:{}}},inferArgTypes=function inferArgTypes(context){var id=context.id,_context$argTypes=context.argTypes,userArgTypes=void 0===_context$argTypes?{}:_context$argTypes,_context$initialArgs=context.initialArgs,initialArgs=void 0===_context$initialArgs?{}:_context$initialArgs,argTypes=mapValues_default()(initialArgs,(function(arg,key){return{name:key,type:inferType(arg,"".concat(id,".").concat(key),new Set)}})),userArgTypesNames=mapValues_default()(userArgTypes,(function(argType,key){return{name:key}}));return(0,esm_parameters.f)(argTypes,userArgTypesNames,userArgTypes)};inferArgTypes.secondPass=!0;var filterArgTypes=__webpack_require__("./node_modules/@storybook/store/dist/esm/filterArgTypes.js"),inferControls=function inferControls(context){var argTypes=context.argTypes,_context$parameters=context.parameters,__isArgsStory=_context$parameters.__isArgsStory,_context$parameters$c=_context$parameters.controls,_context$parameters$c2=(_context$parameters$c=void 0===_context$parameters$c?{}:_context$parameters$c).include,include=void 0===_context$parameters$c2?null:_context$parameters$c2,_context$parameters$c3=_context$parameters$c.exclude,exclude=void 0===_context$parameters$c3?null:_context$parameters$c3,_context$parameters$c4=_context$parameters$c.matchers,matchers=void 0===_context$parameters$c4?{}:_context$parameters$c4;if(!__isArgsStory)return argTypes;var filteredArgTypes=(0,filterArgTypes.h)(argTypes,include,exclude),withControls=mapValues_default()(filteredArgTypes,(function(argType,name){return(null==argType?void 0:argType.type)&&function inferControl(argType,name,matchers){var type=argType.type,options=argType.options;if(type||options){if(matchers.color&&matchers.color.test(name)){var controlType=argType.type.name;if("string"===controlType)return{control:{type:"color"}};dist_esm.kg.warn('Addon controls: Control of type color only supports string, received "'.concat(controlType,'" instead'))}if(matchers.date&&matchers.date.test(name))return{control:{type:"date"}};switch(type.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":var value=type.value;return{control:{type:(null==value?void 0:value.length)<=5?"radio":"select"},options:value};case"function":case"symbol":return null;default:return{control:{type:options?"select":"object"}}}}}(argType,name,matchers)}));return(0,esm_parameters.f)(withControls,filteredArgTypes)};inferControls.secondPass=!0;var normalizeProjectAnnotations_excluded=["argTypes","globalTypes","argTypesEnhancers"];function normalizeProjectAnnotations_toConsumableArray(arr){return function normalizeProjectAnnotations_arrayWithoutHoles(arr){if(Array.isArray(arr))return normalizeProjectAnnotations_arrayLikeToArray(arr)}(arr)||function normalizeProjectAnnotations_iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function normalizeProjectAnnotations_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return normalizeProjectAnnotations_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return normalizeProjectAnnotations_arrayLikeToArray(o,minLen)}(arr)||function normalizeProjectAnnotations_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function normalizeProjectAnnotations_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function normalizeProjectAnnotations(_ref){var argTypes=_ref.argTypes,globalTypes=_ref.globalTypes,argTypesEnhancers=_ref.argTypesEnhancers,annotations=normalizeProjectAnnotations_objectWithoutProperties(_ref,normalizeProjectAnnotations_excluded);return Object.assign({},argTypes&&{argTypes:(0,normalizeInputTypes.x)(argTypes)},globalTypes&&{globalTypes:(0,normalizeInputTypes.x)(globalTypes)},{argTypesEnhancers:[].concat(normalizeProjectAnnotations_toConsumableArray(argTypesEnhancers||[]),[inferArgTypes,inferControls])},annotations)}function StoryStore_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function StoryStore_slicedToArray(arr,i){return function StoryStore_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function StoryStore_iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function StoryStore_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return StoryStore_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return StoryStore_arrayLikeToArray(o,minLen)}(arr,i)||function StoryStore_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function StoryStore_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&void 0!==arguments[0]?arguments[0]:{includeDocsOnly:!1};if(!this.cachedCSFFiles)throw new Error("Cannot call extract() unless you call cacheAllCSFFiles() first.");return Object.entries(this.storyIndex.stories).reduce((function(acc,_ref11){var _ref12=StoryStore_slicedToArray(_ref11,2),storyId=_ref12[0],importPath=_ref12[1].importPath,csfFile=_this6.cachedCSFFiles[importPath],story=_this6.storyFromCSFFile({storyId:storyId,csfFile:csfFile});return!options.includeDocsOnly&&story.parameters.docsOnly||(acc[storyId]=Object.entries(story).reduce((function(storyAcc,_ref13){var _ref14=StoryStore_slicedToArray(_ref13,2),key=_ref14[0],value=_ref14[1];return"function"==typeof value?storyAcc:Array.isArray(value)?Object.assign(storyAcc,StoryStore_defineProperty({},key,value.slice().sort())):Object.assign(storyAcc,StoryStore_defineProperty({},key,value))}),{args:story.initialArgs})),acc}),{})}},{key:"getSetStoriesPayload",value:function getSetStoriesPayload(){var stories=this.extract({includeDocsOnly:!0}),kindParameters=Object.values(stories).reduce((function(acc,_ref15){return acc[_ref15.title]={},acc}),{});return{v:2,globals:this.globals.get(),globalParameters:{},kindParameters:kindParameters,stories:stories}}},{key:"raw",value:function raw(){var _this7=this;return Object.values(this.extract()).map((function(_ref16){var id=_ref16.id;return _this7.fromId(id)}))}},{key:"fromId",value:function fromId(storyId){var importPath,_this8=this;if(!this.cachedCSFFiles)throw new Error("Cannot call fromId/raw() unless you call cacheAllCSFFiles() first.");try{importPath=this.storyIndex.storyIdToEntry(storyId).importPath}catch(err){return null}var csfFile=this.cachedCSFFiles[importPath],story=this.storyFromCSFFile({storyId:storyId,csfFile:csfFile});return Object.assign({},story,{storyFn:function storyFn(update){var context=Object.assign({},_this8.getStoryContext(story),{viewMode:"story"});return story.unboundStoryFn(Object.assign({},context,update))}})}}]),StoryStore}(),core_events_dist_esm=(__webpack_require__("./node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/es.reflect.construct.js"),__webpack_require__("./node_modules/core-js/modules/es.reflect.get.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/@storybook/core-events/dist/esm/index.js")),addons_dist_esm=__webpack_require__("./node_modules/@storybook/addons/dist/esm/index.js");function StoryRender_asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function StoryRender_asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){StoryRender_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){StoryRender_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}function StoryRender_defineProperties(target,props){for(var i=0;i0&&void 0!==_args9[0]?_args9[0]:{},_ref2$initial=_ref2.initial,initial=void 0!==_ref2$initial&&_ref2$initial,_ref2$forceRemount=_ref2.forceRemount,forceRemount=void 0!==_ref2$forceRemount&&_ref2$forceRemount,this.story){_context9.next=3;break}throw new Error("cannot render when not prepared");case 3:return _this$story=this.story,id=_this$story.id,componentId=_this$story.componentId,title=_this$story.title,name=_this$story.name,applyLoaders=_this$story.applyLoaders,unboundStoryFn=_this$story.unboundStoryFn,playFunction=_this$story.playFunction,forceRemount&&!initial&&(this.cancelRender(),this.abortController=createController()),abortSignal=this.abortController.signal,_context9.prev=6,_context9.next=9,this.runPhase(abortSignal,"loading",StoryRender_asyncToGenerator(regeneratorRuntime.mark((function _callee5(){return regeneratorRuntime.wrap((function _callee5$(_context5){for(;;)switch(_context5.prev=_context5.next){case 0:return _context5.next=2,applyLoaders(Object.assign({},_this2.context(),{viewMode:_this2.viewMode}));case 2:loadedContext=_context5.sent;case 3:case"end":return _context5.stop()}}),_callee5)}))));case 9:if(!abortSignal.aborted){_context9.next=11;break}return _context9.abrupt("return");case 11:return renderStoryContext=Object.assign({},loadedContext,this.context(),{abortSignal:abortSignal,canvasElement:this.canvasElement}),_renderContext=Object.assign({componentId:componentId,title:title,kind:title,id:id,name:name,story:name},this.callbacks,{forceRemount:forceRemount||this.notYetRendered,storyContext:renderStoryContext,storyFn:function storyFn(){return unboundStoryFn(renderStoryContext)},unboundStoryFn:unboundStoryFn}),_context9.next=15,this.runPhase(abortSignal,"rendering",StoryRender_asyncToGenerator(regeneratorRuntime.mark((function _callee6(){return regeneratorRuntime.wrap((function _callee6$(_context6){for(;;)switch(_context6.prev=_context6.next){case 0:return _context6.abrupt("return",_this2.renderToScreen(_renderContext,_this2.canvasElement));case 1:case"end":return _context6.stop()}}),_callee6)}))));case 15:if(this.notYetRendered=!1,!abortSignal.aborted){_context9.next=18;break}return _context9.abrupt("return");case 18:if(!forceRemount||!playFunction){_context9.next=27;break}return this.disableKeyListeners=!0,_context9.next=22,this.runPhase(abortSignal,"playing",StoryRender_asyncToGenerator(regeneratorRuntime.mark((function _callee7(){return regeneratorRuntime.wrap((function _callee7$(_context7){for(;;)switch(_context7.prev=_context7.next){case 0:return _context7.abrupt("return",playFunction(_renderContext.storyContext));case 1:case"end":return _context7.stop()}}),_callee7)}))));case 22:return _context9.next=24,this.runPhase(abortSignal,"played");case 24:if(this.disableKeyListeners=!1,!abortSignal.aborted){_context9.next=27;break}return _context9.abrupt("return");case 27:return _context9.next=29,this.runPhase(abortSignal,"completed",StoryRender_asyncToGenerator(regeneratorRuntime.mark((function _callee8(){return regeneratorRuntime.wrap((function _callee8$(_context8){for(;;)switch(_context8.prev=_context8.next){case 0:return _context8.abrupt("return",_this2.channel.emit(core_events_dist_esm.STORY_RENDERED,id));case 1:case"end":return _context8.stop()}}),_callee8)}))));case 29:_context9.next=34;break;case 31:_context9.prev=31,_context9.t0=_context9.catch(6),this.callbacks.showException(_context9.t0);case 34:case"end":return _context9.stop()}}),_callee9,this,[[6,31]])}))),function render(){return _render.apply(this,arguments)})},{key:"rerender",value:(_rerender=StoryRender_asyncToGenerator(regeneratorRuntime.mark((function _callee10(){return regeneratorRuntime.wrap((function _callee10$(_context10){for(;;)switch(_context10.prev=_context10.next){case 0:return _context10.abrupt("return",this.render());case 1:case"end":return _context10.stop()}}),_callee10,this)}))),function rerender(){return _rerender.apply(this,arguments)})},{key:"remount",value:(_remount=StoryRender_asyncToGenerator(regeneratorRuntime.mark((function _callee11(){return regeneratorRuntime.wrap((function _callee11$(_context11){for(;;)switch(_context11.prev=_context11.next){case 0:return _context11.abrupt("return",this.render({forceRemount:!0}));case 1:case"end":return _context11.stop()}}),_callee11,this)}))),function remount(){return _remount.apply(this,arguments)})},{key:"cancelRender",value:function cancelRender(){this.abortController.abort()}},{key:"teardown",value:(_teardown=StoryRender_asyncToGenerator(regeneratorRuntime.mark((function _callee12(){var i,_args12=arguments;return regeneratorRuntime.wrap((function _callee12$(_context12){for(;;)switch(_context12.prev=_context12.next){case 0:_args12.length>0&&void 0!==_args12[0]&&_args12[0],this.cancelRender(),this.story&&this.store.cleanupStory(this.story),i=0;case 4:if(!(i<3)){_context12.next=12;break}if(this.isPending()){_context12.next=7;break}return _context12.abrupt("return");case 7:return _context12.next=9,new Promise((function(resolve){return setTimeout(resolve,0)}));case 9:i+=1,_context12.next=4;break;case 12:return window_default().window.location.reload(),_context12.next=15,new Promise((function(){}));case 15:case"end":return _context12.stop()}}),_callee12,this)}))),function teardown(){return _teardown.apply(this,arguments)})}]),StoryRender}();function Preview_toConsumableArray(arr){return function Preview_arrayWithoutHoles(arr){if(Array.isArray(arr))return Preview_arrayLikeToArray(arr)}(arr)||function Preview_iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function Preview_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return Preview_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Preview_arrayLikeToArray(o,minLen)}(arr)||function Preview_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Preview_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1&&void 0!==_args12[1]?_args12[1]:{},viewModeChanged=_ref9.viewModeChanged,this.storyRenders=this.storyRenders.filter((function(r){return r!==render})),_context12.next=4,null==render?void 0:render.teardown({viewModeChanged:viewModeChanged});case 4:case"end":return _context12.stop()}}),_callee12,this)}))),function teardownRender(_x7){return _teardownRender.apply(this,arguments)})},{key:"extract",value:(_extract=Preview_asyncToGenerator(regeneratorRuntime.mark((function _callee13(options){var _global$FEATURES4;return regeneratorRuntime.wrap((function _callee13$(_context13){for(;;)switch(_context13.prev=_context13.next){case 0:if(!this.previewEntryError){_context13.next=2;break}throw this.previewEntryError;case 2:if(this.storyStore.projectAnnotations){_context13.next=4;break}throw new Error((0,esm.C)(Preview_templateObject2||(Preview_templateObject2=Preview_taggedTemplateLiteral(["Failed to initialize Storybook.\n \n Do you have an error in your `preview.js`? Check your Storybook's browser console for errors."],["Failed to initialize Storybook.\n \n Do you have an error in your \\`preview.js\\`? Check your Storybook's browser console for errors."]))));case 4:if(null===(_global$FEATURES4=window_default().FEATURES)||void 0===_global$FEATURES4||!_global$FEATURES4.storyStoreV7){_context13.next=7;break}return _context13.next=7,this.storyStore.cacheAllCSFFiles();case 7:return _context13.abrupt("return",this.storyStore.extract(options));case 8:case"end":return _context13.stop()}}),_callee13,this)}))),function extract(_x8){return _extract.apply(this,arguments)})},{key:"inlineStoryCallbacks",value:function inlineStoryCallbacks(storyId){return{showMain:function showMain(){},showError:function showError(err){return dist_esm.kg.error("Error rendering docs story (".concat(storyId,")"),err)},showException:function showException(err){return dist_esm.kg.error("Error rendering docs story (".concat(storyId,")"),err)}}}},{key:"renderPreviewEntryError",value:function renderPreviewEntryError(reason,err){this.previewEntryError=err,dist_esm.kg.error(reason),dist_esm.kg.error(err),this.channel.emit(core_events_dist_esm.CONFIG_ERROR,err)}}]),Preview}(),lib=(__webpack_require__("./node_modules/core-js/modules/es.string.match.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js"),__webpack_require__("./node_modules/qs/lib/index.js")),lib_default=__webpack_require__.n(lib);__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.ends-with.js"),__webpack_require__("./node_modules/core-js/modules/es.string.split.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js");function parseArgsParam_slicedToArray(arr,i){return function parseArgsParam_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function parseArgsParam_iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function parseArgsParam_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return parseArgsParam_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return parseArgsParam_arrayLikeToArray(o,minLen)}(arr,i)||function parseArgsParam_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function parseArgsParam_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&void 0!==arguments[0]?arguments[0]:"",value=arguments.length>1?arguments[1]:void 0;return null!==key&&(!(""===key||!VALIDATION_REGEXP.test(key))&&(null==value||(value instanceof Date||("number"==typeof value||"boolean"==typeof value||("string"==typeof value?VALIDATION_REGEXP.test(value)||NUMBER_REGEXP.test(value)||HEX_REGEXP.test(value)||COLOR_REGEXP.test(value):Array.isArray(value)?value.every((function(v){return validateArgs(key,v)})):!!isPlainObject_default()(value)&&Object.entries(value).every((function(_ref){var _ref2=parseArgsParam_slicedToArray(_ref,2),k=_ref2[0],v=_ref2[1];return validateArgs(k,v)})))))))},QS_OPTIONS={delimiter:";",allowDots:!0,allowSparse:!0,decoder:function(_decoder){function decoder(_x,_x2,_x3,_x4){return _decoder.apply(this,arguments)}return decoder.toString=function(){return _decoder.toString()},decoder}((function(str,defaultDecoder,charset,type){if("value"===type&&str.startsWith("!")){if("!undefined"===str)return;if("!null"===str)return null;if(str.startsWith("!date(")&&str.endsWith(")"))return new Date(str.slice(6,-1));if(str.startsWith("!hex(")&&str.endsWith(")"))return"#".concat(str.slice(5,-1));var color=str.slice(1).match(COLOR_REGEXP);if(color)return str.startsWith("!rgba")?"".concat(color[1],"(").concat(color[2],", ").concat(color[3],", ").concat(color[4],", ").concat(color[5],")"):str.startsWith("!hsla")?"".concat(color[1],"(").concat(color[2],", ").concat(color[3],"%, ").concat(color[4],"%, ").concat(color[5],")"):str.startsWith("!rgb")?"".concat(color[1],"(").concat(color[2],", ").concat(color[3],", ").concat(color[4],")"):"".concat(color[1],"(").concat(color[2],", ").concat(color[3],"%, ").concat(color[4],"%)")}return"value"===type&&NUMBER_REGEXP.test(str)?Number(str):defaultDecoder(str,defaultDecoder,charset)}))},parseArgsParam=function parseArgsParam(argsString){var parts=argsString.split(";").map((function(part){return part.replace("=","~").replace(":","=")}));return Object.entries(lib_default().parse(parts.join(";"),QS_OPTIONS)).reduce((function(acc,_ref3){var _ref4=parseArgsParam_slicedToArray(_ref3,2),key=_ref4[0],value=_ref4[1];return validateArgs(key,value)?Object.assign(acc,function parseArgsParam_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}({},key,value)):(dist_esm.IH.warn((0,esm.C)(parseArgsParam_templateObject||(parseArgsParam_templateObject=function parseArgsParam_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n Omitted potentially unsafe URL args.\n\n More info: https://storybook.js.org/docs/react/writing-stories/args#setting-args-through-the-url\n "])))),acc)}),{})},UrlStore_excluded=["path","selectedKind","selectedStory"];function UrlStore_defineProperties(target,props){for(var i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var UrlStore_history=window_default().history,UrlStore_document=window_default().document;var WebView_templateObject,getQueryString=function getQueryString(_ref){var selection=_ref.selection,extraParams=_ref.extraParams,_document$location$se=UrlStore_document.location.search,search=void 0===_document$location$se?"":_document$location$se,_qs$parse=lib_default().parse(search,{ignoreQueryPrefix:!0}),rest=(_qs$parse.path,_qs$parse.selectedKind,_qs$parse.selectedStory,UrlStore_objectWithoutProperties(_qs$parse,UrlStore_excluded));return lib_default().stringify(Object.assign({},rest,extraParams,selection&&{id:selection.storyId,viewMode:selection.viewMode}),{encode:!1,addQueryPrefix:!0})},getFirstString=function getFirstString(v){return"string"==typeof v?v:Array.isArray(v)?getFirstString(v[0]):function isObject(val){return null!=val&&"object"===UrlStore_typeof(val)&&!1===Array.isArray(val)}(v)?getFirstString(Object.values(v)):void 0},deprecatedLegacyQuery=browser_default()((function(){return 0}),"URL formats with `selectedKind` and `selectedName` query parameters are deprecated.\nUse `id=$storyId` instead.\nSee https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#new-url-structure"),getSelectionSpecifierFromPath=function getSelectionSpecifierFromPath(){var query=lib_default().parse(UrlStore_document.location.search,{ignoreQueryPrefix:!0}),args="string"==typeof query.args?parseArgsParam(query.args):void 0,globals="string"==typeof query.globals?parseArgsParam(query.globals):void 0,viewMode=getFirstString(query.viewMode);"string"==typeof viewMode&&viewMode.match(/docs|story/)||(viewMode="story");var path=getFirstString(query.path),storyId=path?function pathToId(path){var match=(path||"").match(/^\/story\/(.+)/);if(!match)throw new Error("Invalid path '".concat(path,"', must start with '/story/'"));return match[1]}(path):getFirstString(query.id);if(storyId)return{storySpecifier:storyId,args:args,globals:globals,viewMode:viewMode};var title=getFirstString(query.selectedKind),name=getFirstString(query.selectedStory);return title&&name?(deprecatedLegacyQuery(),{storySpecifier:{title:title,name:name},args:args,globals:globals,viewMode:viewMode}):null},UrlStore=function(){function UrlStore(){!function UrlStore_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,UrlStore),this.selectionSpecifier=void 0,this.selection=void 0,this.selectionSpecifier=getSelectionSpecifierFromPath()}return function UrlStore_createClass(Constructor,protoProps,staticProps){return protoProps&&UrlStore_defineProperties(Constructor.prototype,protoProps),staticProps&&UrlStore_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(UrlStore,[{key:"setSelection",value:function setSelection(selection){this.selection=selection,function setPath(selection){if(selection){var query=getQueryString({selection:selection}),_document$location$ha=UrlStore_document.location.hash,hash=void 0===_document$location$ha?"":_document$location$ha;UrlStore_document.title=selection.storyId,UrlStore_history.replaceState({},"","".concat(UrlStore_document.location.pathname).concat(query).concat(hash))}}(this.selection)}},{key:"setQueryParams",value:function setQueryParams(queryParams){var query=getQueryString({extraParams:queryParams}),_document$location$ha2=UrlStore_document.location.hash,hash=void 0===_document$location$ha2?"":_document$location$ha2;UrlStore_history.replaceState({},"","".concat(UrlStore_document.location.pathname).concat(query).concat(hash))}}]),UrlStore}(),ansi_to_html=__webpack_require__("./node_modules/ansi-to-html/lib/ansi_to_html.js"),ansi_to_html_default=__webpack_require__.n(ansi_to_html);function WebView_slicedToArray(arr,i){return function WebView_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function WebView_iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function WebView_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return WebView_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return WebView_arrayLikeToArray(o,minLen)}(arr,i)||function WebView_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function WebView_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&void 0!==arguments[0]?arguments[0]:"padded";if("none"===layout)return WebView_document.body.classList.remove(this.currentLayoutClass),void(this.currentLayoutClass=null);this.checkIfLayoutExists(layout);var layoutClass=layoutClassMap[layout];WebView_document.body.classList.remove(this.currentLayoutClass),WebView_document.body.classList.add(layoutClass),this.currentLayoutClass=layoutClass}},{key:"checkIfLayoutExists",value:function checkIfLayoutExists(layout){layoutClassMap[layout]||dist_esm.kg.warn((0,esm.C)(WebView_templateObject||(WebView_templateObject=function WebView_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["The desired layout: "," is not a valid option.\n The possible options are: ",", none."])),layout,Object.keys(layoutClassMap).join(", ")))}},{key:"showMode",value:function showMode(mode){clearTimeout(this.preparingTimeout),Object.keys(Mode).forEach((function(otherMode){otherMode===mode?WebView_document.body.classList.add(classes[otherMode]):WebView_document.body.classList.remove(classes[otherMode])}))}},{key:"showErrorDisplay",value:function showErrorDisplay(_ref){var _ref$message=_ref.message,message=void 0===_ref$message?"":_ref$message,_ref$stack=_ref.stack,header=message,detail=void 0===_ref$stack?"":_ref$stack,parts=message.split("\n");parts.length>1&&(header=WebView_slicedToArray(parts,1)[0],detail=parts.slice(1).join("\n"));WebView_document.getElementById("error-message").innerHTML=ansiConverter.toHtml(header),WebView_document.getElementById("error-stack").innerHTML=ansiConverter.toHtml(detail),this.showMode(Mode.ERROR)}},{key:"showNoPreview",value:function showNoPreview(){var _this$storyRoot,_this$docsRoot;this.testing||(this.showMode(Mode.NOPREVIEW),null===(_this$storyRoot=this.storyRoot())||void 0===_this$storyRoot||_this$storyRoot.setAttribute("hidden","true"),null===(_this$docsRoot=this.docsRoot())||void 0===_this$docsRoot||_this$docsRoot.setAttribute("hidden","true"))}},{key:"showPreparingStory",value:function showPreparingStory(){var _this=this,_ref2=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref2$immediate=_ref2.immediate,immediate=void 0!==_ref2$immediate&&_ref2$immediate;clearTimeout(this.preparingTimeout),immediate?this.showMode(Mode.PREPARING_STORY):this.preparingTimeout=setTimeout((function(){return _this.showMode(Mode.PREPARING_STORY)}),100)}},{key:"showPreparingDocs",value:function showPreparingDocs(){var _this2=this;clearTimeout(this.preparingTimeout),this.preparingTimeout=setTimeout((function(){return _this2.showMode(Mode.PREPARING_DOCS)}),100)}},{key:"showMain",value:function showMain(){this.showMode(Mode.MAIN)}},{key:"showDocs",value:function showDocs(){this.storyRoot().setAttribute("hidden","true"),this.docsRoot().removeAttribute("hidden")}},{key:"showStory",value:function showStory(){this.docsRoot().setAttribute("hidden","true"),this.storyRoot().removeAttribute("hidden")}},{key:"showStoryDuringRender",value:function showStoryDuringRender(){WebView_document.body.classList.add(classes.MAIN)}}]),WebView}();function DocsRender_asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function DocsRender_asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){DocsRender_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){DocsRender_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}function DocsRender_defineProperties(target,props){for(var i=0;i0&&void 0!==_args4[0]?_args4[0]:{}).viewModeChanged&&this.canvasElement){_context4.next=3;break}return _context4.abrupt("return");case 3:return _context4.next=5,__webpack_require__.e(701).then(__webpack_require__.bind(__webpack_require__,"./node_modules/@storybook/preview-web/dist/esm/renderDocs.js"));case 5:_context4.sent.unmountDocs(this.canvasElement);case 7:case"end":return _context4.stop()}}),_callee4,this)}))),function teardown(){return _teardown.apply(this,arguments)})}],[{key:"fromStoryRender",value:function fromStoryRender(storyRender){return new DocsRender(storyRender.channel,storyRender.store,storyRender.id,storyRender.story)}}]),DocsRender}();function PreviewWeb_typeof(obj){return PreviewWeb_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},PreviewWeb_typeof(obj)}function PreviewWeb_asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function PreviewWeb_asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){PreviewWeb_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){PreviewWeb_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}function PreviewWeb_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}function PreviewWeb_defineProperties(target,props){for(var i=0;i0&&void 0!==_args8[0]?_args8[0]:{},persistedArgs=_ref6.persistedArgs,selection=this.urlStore.selection){_context8.next=4;break}throw new Error("Cannot render story as no selection was made");case 4:if(storyId=selection.storyId,storyIdChanged=(null===(_this$currentSelectio=this.currentSelection)||void 0===_this$currentSelectio?void 0:_this$currentSelectio.storyId)!==storyId,viewModeChanged=(null===(_this$currentSelectio2=this.currentSelection)||void 0===_this$currentSelectio2?void 0:_this$currentSelectio2.viewMode)!==selection.viewMode,"story"===selection.viewMode?this.view.showPreparingStory({immediate:viewModeChanged}):this.view.showPreparingDocs(),lastSelection=this.currentSelection,lastRender=this.currentRender,null===(_lastRender=lastRender)||void 0===_lastRender||!_lastRender.isPreparing()){_context8.next=14;break}return _context8.next=13,this.teardownRender(lastRender);case 13:lastRender=null;case 14:return storyRender=new StoryRender(this.channel,this.storyStore,(function(){return _this5.view.showStoryDuringRender(),_this5.renderToDOM.apply(_this5,arguments)}),this.mainStoryCallbacks(storyId),storyId,"story"),this.currentSelection=selection,this.currentRender=storyRender,_context8.prev=17,_context8.next=20,storyRender.prepare();case 20:_context8.next=29;break;case 22:if(_context8.prev=22,_context8.t0=_context8.catch(17),_context8.t0===PREPARE_ABORTED){_context8.next=28;break}return _context8.next=27,this.teardownRender(lastRender);case 27:this.renderStoryLoadingException(storyId,_context8.t0);case 28:return _context8.abrupt("return");case 29:if(implementationChanged=!storyIdChanged&&!storyRender.isEqual(lastRender),persistedArgs&&this.storyStore.args.updateFromPersisted(storyRender.story,persistedArgs),_storyRender$context=storyRender.context(),parameters=_storyRender$context.parameters,initialArgs=_storyRender$context.initialArgs,argTypes=_storyRender$context.argTypes,args=_storyRender$context.args,!lastRender||storyIdChanged||implementationChanged||viewModeChanged){_context8.next=37;break}return this.currentRender=lastRender,this.channel.emit(core_events_dist_esm.STORY_UNCHANGED,storyId),this.view.showMain(),_context8.abrupt("return");case 37:return _context8.next=39,this.teardownRender(lastRender,{viewModeChanged:viewModeChanged});case 39:lastSelection&&(storyIdChanged||viewModeChanged)&&this.channel.emit(core_events_dist_esm.STORY_CHANGED,storyId),null!==(_global$FEATURES3=window_default().FEATURES)&&void 0!==_global$FEATURES3&&_global$FEATURES3.storyStoreV7&&this.channel.emit(core_events_dist_esm.STORY_PREPARED,{id:storyId,parameters:parameters,initialArgs:initialArgs,argTypes:argTypes,args:args}),(implementationChanged||persistedArgs)&&this.channel.emit(core_events_dist_esm.STORY_ARGS_UPDATED,{storyId:storyId,args:args}),"docs"===selection.viewMode||parameters.docsOnly?(this.currentRender=DocsRender.fromStoryRender(storyRender),this.currentRender.renderToElement(this.view.prepareForDocs(),this.renderStoryToElement.bind(this))):(this.storyRenders.push(storyRender),this.currentRender.renderToElement(this.view.prepareForStory(storyRender.story)));case 43:case"end":return _context8.stop()}}),_callee8,this,[[17,22]])}))),function renderSelection(){return _renderSelection.apply(this,arguments)})},{key:"renderStoryToElement",value:function renderStoryToElement(story,element){var _this6=this,render=new StoryRender(this.channel,this.storyStore,this.renderToDOM,this.inlineStoryCallbacks(story.id),story.id,"docs",story);return render.renderToElement(element),this.storyRenders.push(render),PreviewWeb_asyncToGenerator(regeneratorRuntime.mark((function _callee9(){return regeneratorRuntime.wrap((function _callee9$(_context9){for(;;)switch(_context9.prev=_context9.next){case 0:return _context9.next=2,_this6.teardownRender(render);case 2:case"end":return _context9.stop()}}),_callee9)})))}},{key:"teardownRender",value:(_teardownRender=PreviewWeb_asyncToGenerator(regeneratorRuntime.mark((function _callee10(render){var _ref8,viewModeChanged,_args10=arguments;return regeneratorRuntime.wrap((function _callee10$(_context10){for(;;)switch(_context10.prev=_context10.next){case 0:return _ref8=_args10.length>1&&void 0!==_args10[1]?_args10[1]:{},viewModeChanged=_ref8.viewModeChanged,this.storyRenders=this.storyRenders.filter((function(r){return r!==render})),_context10.next=4,null==render?void 0:render.teardown({viewModeChanged:viewModeChanged});case 4:case"end":return _context10.stop()}}),_callee10,this)}))),function teardownRender(_x6){return _teardownRender.apply(this,arguments)})},{key:"extract",value:(_extract=PreviewWeb_asyncToGenerator(regeneratorRuntime.mark((function _callee11(options){var _global$FEATURES4;return regeneratorRuntime.wrap((function _callee11$(_context11){for(;;)switch(_context11.prev=_context11.next){case 0:if(!this.previewEntryError){_context11.next=2;break}throw this.previewEntryError;case 2:if(this.storyStore.projectAnnotations){_context11.next=4;break}throw new Error((0,esm.C)(_templateObject4||(_templateObject4=PreviewWeb_taggedTemplateLiteral(["Failed to initialize Storybook.\n \n Do you have an error in your `preview.js`? Check your Storybook's browser console for errors."],["Failed to initialize Storybook.\n \n Do you have an error in your \\`preview.js\\`? Check your Storybook's browser console for errors."]))));case 4:if(null===(_global$FEATURES4=window_default().FEATURES)||void 0===_global$FEATURES4||!_global$FEATURES4.storyStoreV7){_context11.next=7;break}return _context11.next=7,this.storyStore.cacheAllCSFFiles();case 7:return _context11.abrupt("return",this.storyStore.extract(options));case 8:case"end":return _context11.stop()}}),_callee11,this)}))),function extract(_x7){return _extract.apply(this,arguments)})},{key:"mainStoryCallbacks",value:function mainStoryCallbacks(storyId){var _this7=this;return{showMain:function showMain(){return _this7.view.showMain()},showError:function showError(err){return _this7.renderError(storyId,err)},showException:function showException(err){return _this7.renderException(storyId,err)}}}},{key:"inlineStoryCallbacks",value:function inlineStoryCallbacks(storyId){return{showMain:function showMain(){},showError:function showError(err){return dist_esm.kg.error("Error rendering docs story (".concat(storyId,")"),err)},showException:function showException(err){return dist_esm.kg.error("Error rendering docs story (".concat(storyId,")"),err)}}}},{key:"renderPreviewEntryError",value:function renderPreviewEntryError(reason,err){_get(_getPrototypeOf(PreviewWeb.prototype),"renderPreviewEntryError",this).call(this,reason,err),this.view.showErrorDisplay(err)}},{key:"renderMissingStory",value:function renderMissingStory(){this.view.showNoPreview(),this.channel.emit(core_events_dist_esm.STORY_MISSING)}},{key:"renderStoryLoadingException",value:function renderStoryLoadingException(storySpecifier,err){dist_esm.kg.error("Unable to load story '".concat(storySpecifier,"':")),dist_esm.kg.error(err),this.view.showErrorDisplay(err),this.channel.emit(core_events_dist_esm.STORY_MISSING,storySpecifier)}},{key:"renderException",value:function renderException(storyId,err){this.channel.emit(core_events_dist_esm.STORY_THREW_EXCEPTION,err),this.channel.emit(core_events_dist_esm.STORY_RENDER_PHASE_CHANGED,{newPhase:"errored",storyId:storyId}),err!==core_events_dist_esm.IGNORED_EXCEPTION&&(this.view.showErrorDisplay(err),dist_esm.kg.error("Error rendering story '".concat(storyId,"':")),dist_esm.kg.error(err))}},{key:"renderError",value:function renderError(storyId,_ref9){var title=_ref9.title,description=_ref9.description;dist_esm.kg.error("Error rendering story ".concat(title,": ").concat(description)),this.channel.emit(core_events_dist_esm.STORY_ERRORED,{title:title,description:description}),this.channel.emit(core_events_dist_esm.STORY_RENDER_PHASE_CHANGED,{newPhase:"errored",storyId:storyId}),this.view.showErrorDisplay({message:title,stack:description})}}]),PreviewWeb}(Preview),channels_dist_esm=(__webpack_require__("./node_modules/core-js/modules/es.object.from-entries.js"),__webpack_require__("./node_modules/core-js/modules/es.number.is-integer.js"),__webpack_require__("./node_modules/core-js/modules/web.url.js"),__webpack_require__("./node_modules/core-js/modules/web.url-search-params.js"),__webpack_require__("./node_modules/@storybook/channels/dist/esm/index.js")),telejson_dist_esm=__webpack_require__("./node_modules/telejson/dist/esm/index.js");function esm_toConsumableArray(arr){return function esm_arrayWithoutHoles(arr){if(Array.isArray(arr))return esm_arrayLikeToArray(arr)}(arr)||esm_iterableToArray(arr)||esm_unsupportedIterableToArray(arr)||function esm_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function esm_iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}function esm_slicedToArray(arr,i){return esm_arrayWithHoles(arr)||function esm_iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||esm_unsupportedIterableToArray(arr,i)||esm_nonIterableRest()}function esm_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function esm_unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return esm_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?esm_arrayLikeToArray(o,minLen):void 0}}function esm_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i manager ':' preview ',eventString=Object.values(core_events_dist_esm).includes(event.type)?''.concat(event.type,""):''.concat(event.type,"");if(refId&&(event.refId=refId),event.source="preview"===this.config.page?rawEvent.origin:getEventSourceUrl(rawEvent),!event.source)return void dist_esm.IC.error("".concat(pageString," received ").concat(eventString," but was unable to determine the source of the event"));var message="".concat(pageString," received ").concat(eventString," (").concat(data.length,")");dist_esm.IC.debug.apply(dist_esm.IC,[esm_location.origin!==event.source?message:"".concat(message,' (on ').concat(esm_location.origin," from ").concat(event.source,")")].concat(esm_toConsumableArray(event.args))),this.handler(event)}}catch(error){dist_esm.kg.error(error)}}}]),PostmsgTransport}(),getEventSourceUrl=function getEventSourceUrl(event){var _frames$filter=esm_toConsumableArray(esm_document.querySelectorAll("iframe[data-is-storybook]")).filter((function(element){try{return element.contentWindow===event.source}catch(err){}var origin,src=element.getAttribute("src");try{origin=new URL(src,esm_document.location).origin}catch(err){return!1}return origin===event.origin})),_frames$filter2=function _toArray(arr){return esm_arrayWithHoles(arr)||esm_iterableToArray(arr)||esm_unsupportedIterableToArray(arr)||esm_nonIterableRest()}(_frames$filter),frame=_frames$filter2[0],remainder=_frames$filter2.slice(1);if(frame&&0===remainder.length){var src=frame.getAttribute("src"),_URL2=new URL(src,esm_document.location),protocol=_URL2.protocol,host=_URL2.host,pathname=_URL2.pathname;return"".concat(protocol,"//").concat(host).concat(pathname)}return remainder.length>0&&dist_esm.kg.error("found multiple candidates for event source"),null};function createChannel(_ref5){var page=_ref5.page,transport=new PostmsgTransport({page:page});return new channels_dist_esm.Z({transport:transport})}__webpack_require__("./node_modules/core-js/modules/es.map.js");function executeLoadable_slicedToArray(arr,i){return function executeLoadable_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function executeLoadable_iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function executeLoadable_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return executeLoadable_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return executeLoadable_arrayLikeToArray(o,minLen)}(arr,i)||function executeLoadable_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function executeLoadable_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1&&void 0!==arguments[1]?arguments[1]:{},decorateStory=_ref.decorateStory,render=_ref.render;if(start_globalWindow&&(start_globalWindow.IS_STORYBOOK=!0),null!=FEATURES&&FEATURES.storyStoreV7)return{forceReRender:removedApi("forceReRender"),getStorybook:removedApi("getStorybook"),configure:removedApi("configure"),clientApi:{addDecorator:removedApi("clientApi.addDecorator"),addParameters:removedApi("clientApi.addParameters"),clearDecorators:removedApi("clientApi.clearDecorators"),addLoader:removedApi("clientApi.addLoader"),setAddon:removedApi("clientApi.setAddon"),getStorybook:removedApi("clientApi.getStorybook"),storiesOf:removedApi("clientApi.storiesOf"),raw:removedApi("raw")}};var channel=createChannel({page:"preview"});addons_dist_esm.KP.setChannel(channel);var clientApi=new ClientApi.ti,preview=new PreviewWeb,initialized=!1,importFn=function importFn(path){return clientApi.importFn(path)};function onStoriesChanged(){var storyIndex=clientApi.getStoryIndex();preview.onStoriesChanged({storyIndex:storyIndex,importFn:importFn})}return clientApi.onImportFnChanged=onStoriesChanged,clientApi.storyStore=preview.storyStore,start_globalWindow&&(start_globalWindow.__STORYBOOK_CLIENT_API__=clientApi,start_globalWindow.__STORYBOOK_ADDONS_CHANNEL__=channel,start_globalWindow.__STORYBOOK_PREVIEW__=preview,start_globalWindow.__STORYBOOK_STORY_STORE__=preview.storyStore),{forceReRender:function forceReRender(){return channel.emit(core_events_dist_esm.default.FORCE_RE_RENDER)},getStorybook:function getStorybook(){return[]},raw:function raw(){},clientApi:clientApi,configure:function configure(framework,loadable,m){var showDeprecationWarning=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];showDeprecationWarning&&configureDeprecationWarning(),clientApi.addParameters({framework:framework});var getProjectAnnotations=function getProjectAnnotations(){var _executeLoadableForCh=executeLoadableForChanges(loadable,m),added=_executeLoadableForCh.added,removed=_executeLoadableForCh.removed;return Array.from(added.entries()).forEach((function(_ref2){var _ref3=start_slicedToArray(_ref2,2),fileName=_ref3[0],fileExports=_ref3[1];return clientApi.facade.addStoriesFromExports(fileName,fileExports)})),Array.from(removed.entries()).forEach((function(_ref4){var fileName=start_slicedToArray(_ref4,1)[0];return clientApi.facade.clearFilenameExports(fileName)})),Object.assign({render:render},clientApi.facade.projectAnnotations,{renderToDOM:renderToDOM,applyDecorators:decorateStory})};initialized?(getProjectAnnotations(),onStoriesChanged()):(preview.initialize({getStoryIndex:function getStoryIndex(){return clientApi.getStoryIndex()},importFn:importFn,getProjectAnnotations:getProjectAnnotations}),initialized=!0)}}}dist.toId,ClientApi.ti;var globals_globalWindow=window_default().window;globals_globalWindow&&(globals_globalWindow.STORYBOOK_ENV="react");var render=__webpack_require__("./node_modules/@storybook/react/dist/esm/client/preview/render.js"),framework="react",api=start(render.A,{render:render.s}),storiesOf=function storiesOf(kind,m){return api.clientApi.storiesOf(kind,m).addParameters({framework:framework})},configure=function configure(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return api.configure.apply(api,[framework].concat(args))},addDecorator=api.clientApi.addDecorator,addParameters=api.clientApi.addParameters,setAddon=(api.clientApi.clearDecorators,api.clientApi.setAddon),forceReRender=api.forceReRender,getStorybook=api.clientApi.getStorybook,raw=api.clientApi.raw;function composeConfigs_toConsumableArray(arr){return function composeConfigs_arrayWithoutHoles(arr){if(Array.isArray(arr))return composeConfigs_arrayLikeToArray(arr)}(arr)||function composeConfigs_iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function composeConfigs_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return composeConfigs_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return composeConfigs_arrayLikeToArray(o,minLen)}(arr)||function composeConfigs_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function composeConfigs_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var GLOBAL_STORYBOOK_PROJECT_ANNOTATIONS={};function setProjectAnnotations(projectAnnotations){GLOBAL_STORYBOOK_PROJECT_ANNOTATIONS=Array.isArray(projectAnnotations)?function composeConfigs(moduleExportList){var allArgTypeEnhancers=getArrayField(moduleExportList,"argTypesEnhancers");return{parameters:esm_parameters.f.apply(void 0,composeConfigs_toConsumableArray(getField(moduleExportList,"parameters"))),decorators:getArrayField(moduleExportList,"decorators"),args:getObjectField(moduleExportList,"args"),argsEnhancers:getArrayField(moduleExportList,"argsEnhancers"),argTypes:getObjectField(moduleExportList,"argTypes"),argTypesEnhancers:[].concat(composeConfigs_toConsumableArray(allArgTypeEnhancers.filter((function(e){return!e.secondPass}))),composeConfigs_toConsumableArray(allArgTypeEnhancers.filter((function(e){return e.secondPass})))),globals:getObjectField(moduleExportList,"globals"),globalTypes:getObjectField(moduleExportList,"globalTypes"),loaders:getArrayField(moduleExportList,"loaders"),render:getSingletonField(moduleExportList,"render"),renderToDOM:getSingletonField(moduleExportList,"renderToDOM"),applyDecorators:getSingletonField(moduleExportList,"applyDecorators")}}(projectAnnotations):projectAnnotations}function composeStories(storiesImport,globalConfig,composeStoryFn){var meta=storiesImport.default,stories=(storiesImport.__esModule,storiesImport.__namedExportsOrder,testing_utils_objectWithoutProperties(storiesImport,testing_utils_excluded));return Object.entries(stories).reduce((function(storiesMap,_ref){var _ref2=testing_utils_slicedToArray(_ref,2),exportsName=_ref2[0],story=_ref2[1];return(0,dist.isExportStory)(exportsName,meta)?Object.assign(storiesMap,function testing_utils_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}({},exportsName,composeStoryFn(story,meta,globalConfig,exportsName))):storiesMap}),{})}function testing_setProjectAnnotations(projectAnnotations){setProjectAnnotations(projectAnnotations)}function setGlobalConfig(projectAnnotations){dist_esm.IH.warn("setGlobalConfig is deprecated. Use setProjectAnnotations instead."),testing_setProjectAnnotations(projectAnnotations)}var defaultProjectAnnotations={render:render.s};function testing_composeStory(story,componentAnnotations,projectAnnotations,exportsName){return function composeStory(storyAnnotations,componentAnnotations){var _componentAnnotations,_storyAnnotations$sto,projectAnnotations=arguments.length>2&&void 0!==arguments[2]?arguments[2]:GLOBAL_STORYBOOK_PROJECT_ANNOTATIONS,defaultConfig=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},exportsName=arguments.length>4?arguments[4]:void 0;if(void 0===storyAnnotations)throw new Error("Expected a story but received undefined.");componentAnnotations.title=null!==(_componentAnnotations=componentAnnotations.title)&&void 0!==_componentAnnotations?_componentAnnotations:"ComposedStory";var normalizedComponentAnnotations=normalizeComponentAnnotations(componentAnnotations),storyName=exportsName||storyAnnotations.storyName||(null===(_storyAnnotations$sto=storyAnnotations.story)||void 0===_storyAnnotations$sto?void 0:_storyAnnotations$sto.name)||storyAnnotations.name,normalizedStory=normalizeStory(storyName,storyAnnotations,normalizedComponentAnnotations),normalizedProjectAnnotations=normalizeProjectAnnotations(Object.assign({},projectAnnotations,defaultConfig)),story=prepareStory(normalizedStory,normalizedComponentAnnotations,normalizedProjectAnnotations),defaultGlobals=getValuesFromArgTypes(projectAnnotations.globalTypes),composedStory=function composedStory(extraArgs){var context=Object.assign({},story,{hooks:new hooks.c8,globals:defaultGlobals,args:Object.assign({},story.initialArgs,extraArgs)});return story.unboundStoryFn(context)};return composedStory.storyName=storyName,composedStory.args=story.initialArgs,composedStory.play=story.playFunction,composedStory.parameters=story.parameters,composedStory}(story,componentAnnotations,projectAnnotations,defaultProjectAnnotations,exportsName)}function testing_composeStories(csfExports,projectAnnotations){return composeStories(csfExports,projectAnnotations,testing_composeStory)}(module=__webpack_require__.hmd(module))&&module.hot},"./node_modules/@storybook/react/dist/esm/client/preview/config-generated-config-entry.js":function(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__){"use strict";var config_namespaceObject={};__webpack_require__.r(config_namespaceObject),__webpack_require__.d(config_namespaceObject,{parameters:function(){return parameters},render:function(){return render.s},renderToDOM:function(){return render.A}});var ClientApi=__webpack_require__("./node_modules/@storybook/client-api/dist/esm/ClientApi.js"),render=__webpack_require__("./node_modules/@storybook/react/dist/esm/client/preview/render.js"),parameters={framework:"react"};function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}Object.keys(config_namespaceObject).forEach((function(key){var value=config_namespaceObject[key];switch(key){case"args":return(0,ClientApi.uc)(value);case"argTypes":return(0,ClientApi.v9)(value);case"decorators":return value.forEach((function(decorator){return(0,ClientApi.$9)(decorator,!1)}));case"loaders":return value.forEach((function(loader){return(0,ClientApi.HZ)(loader,!1)}));case"parameters":return(0,ClientApi.h1)(function _objectSpread(target){for(var i=1;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var normalizeInputType=function normalizeInputType(inputType,key){var type=inputType.type,control=inputType.control,rest=_objectWithoutProperties(inputType,_excluded),normalized=Object.assign({name:key},rest);return type&&(normalized.type=function normalizeType(type){return"string"==typeof type?{name:type}:type}(type)),control?normalized.control=function normalizeControl(control){return"string"==typeof control?{type:control}:control}(control):!1===control&&(normalized.control={disable:!0}),normalized},normalizeInputTypes=function normalizeInputTypes(inputTypes){return lodash_mapValues__WEBPACK_IMPORTED_MODULE_3___default()(inputTypes,normalizeInputType)}},"./node_modules/@storybook/store/dist/esm/filterArgTypes.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{h:function(){return filterArgTypes}});__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.match.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var lodash_pickBy__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/lodash/pickBy.js"),lodash_pickBy__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(lodash_pickBy__WEBPACK_IMPORTED_MODULE_5__),matches=function matches(name,descriptor){return Array.isArray(descriptor)?descriptor.includes(name):name.match(descriptor)},filterArgTypes=function filterArgTypes(argTypes,include,exclude){return include||exclude?argTypes&&lodash_pickBy__WEBPACK_IMPORTED_MODULE_5___default()(argTypes,(function(argType,key){var name=argType.name||key;return(!include||matches(name,include))&&(!exclude||!matches(name,exclude))})):argTypes}},"./node_modules/@storybook/store/dist/esm/parameters.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{f:function(){return combineParameters}});__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js");var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/lodash/isPlainObject.js"),lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_16__);function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||_unsupportedIterableToArray(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||_unsupportedIterableToArray(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function e(_e){throw _e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var it,err,normalCompletion=!0,didErr=!1;return{s:function s(){it=o[Symbol.iterator]()},n:function n(){var step=it.next();return normalCompletion=step.done,step},e:function e(_e2){didErr=!0,err=_e2},f:function f(){try{normalCompletion||null==it.return||it.return()}finally{if(didErr)throw err}}}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0?40*red+55:0,g=green>0?40*green+55:0,b=blue>0?40*blue+55:0;colors[16+36*red+6*green+blue]=function toColorHexString(ref){var _step,results=[],_iterator=_createForOfIteratorHelper(ref);try{for(_iterator.s();!(_step=_iterator.n()).done;){var r=_step.value;results.push(toHexString(r))}}catch(err){_iterator.e(err)}finally{_iterator.f()}return"#"+results.join("")}([r,g,b])}(red,green,blue,colors)}))}))})),range(0,23).forEach((function(gray){var c=gray+232,l=toHexString(10*gray+8);colors[c]="#"+l+l+l})),colors}()};function toHexString(num){for(var str=num.toString(16);str.length<2;)str="0"+str;return str}function generateOutput(stack,token,data,options){var result;return"text"===token?result=function pushText(text,options){if(options.escapeXML)return entities.encodeXML(text);return text}(data,options):"display"===token?result=function handleDisplay(stack,code,options){code=parseInt(code,10);var result,codeMap={"-1":function _(){return"
"},0:function _(){return stack.length&&resetStyles(stack)},1:function _(){return pushTag(stack,"b")},3:function _(){return pushTag(stack,"i")},4:function _(){return pushTag(stack,"u")},8:function _(){return pushStyle(stack,"display:none")},9:function _(){return pushTag(stack,"strike")},22:function _(){return pushStyle(stack,"font-weight:normal;text-decoration:none;font-style:normal")},23:function _(){return closeTag(stack,"i")},24:function _(){return closeTag(stack,"u")},39:function _(){return pushForegroundColor(stack,options.fg)},49:function _(){return pushBackgroundColor(stack,options.bg)},53:function _(){return pushStyle(stack,"text-decoration:overline")}};codeMap[code]?result=codeMap[code]():4"})).join("")}function range(low,high){for(var results=[],j=low;j<=high;j++)results.push(j);return results}function categoryForCode(code){var result=null;return 0===(code=parseInt(code,10))?result="all":1===code?result="bold":2")}function pushStyle(stack,style){return pushTag(stack,"span",style)}function pushForegroundColor(stack,color){return pushTag(stack,"span","color:"+color)}function pushBackgroundColor(stack,color){return pushTag(stack,"span","background-color:"+color)}function closeTag(stack,style){var last;if(stack.slice(-1)[0]===style&&(last=stack.pop()),last)return""}var Filter=function(){function Filter(options){!function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Filter),(options=options||{}).colors&&(options.colors=Object.assign({},defaults.colors,options.colors)),this.options=Object.assign({},defaults,options),this.stack=[],this.stickyStack=[]}return function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}(Filter,[{key:"toHtml",value:function toHtml(input){var _this=this;input="string"==typeof input?[input]:input;var stack=this.stack,options=this.options,buf=[];return this.stickyStack.forEach((function(element){var output=generateOutput(stack,element.token,element.data,options);output&&buf.push(output)})),function tokenize(text,options,callback){var ansiMatch=!1;function remove(){return""}function newline(m){return options.newline?callback("display",-1):callback("text",m),""}var tokens=[{pattern:/^\x08+/,sub:remove},{pattern:/^\x1b\[[012]?K/,sub:remove},{pattern:/^\x1b\[\(B/,sub:remove},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:function rgb(m){return callback("rgb",m),""}},{pattern:/^\x1b\[38;5;(\d+)m/,sub:function removeXterm256(m,g1){return callback("xterm256",g1),""}},{pattern:/^\n/,sub:newline},{pattern:/^\r+\n/,sub:newline},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:function ansiMess(m,g1){ansiMatch=!0,0===g1.trim().length&&(g1="0");var _step2,_iterator2=_createForOfIteratorHelper(g1=g1.trimRight(";").split(";"));try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var g=_step2.value;callback("display",g)}}catch(err){_iterator2.e(err)}finally{_iterator2.f()}return""}},{pattern:/^\x1b\[\d?J/,sub:remove},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:remove},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:remove},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:function realText(m){return callback("text",m),""}}];function process(handler,i){i>3&&ansiMatch||(ansiMatch=!1,text=text.replace(handler.pattern,handler.sub))}var results1=[],length=text.length;outer:for(;length>0;){for(var i=0,o=0,len=tokens.length;o1?ToIntegerOrInfinity(arguments[1]):0;if($indexOf&&!$isNaN(searchElement)&&$isFinite(fromIndex)&&void 0!==searchElement)return $indexOf.apply(this,arguments)>-1;var O=ToObject(this),length=ToLength(O.length);if(0===length)return!1;for(var k=fromIndex>=0?fromIndex:$max(0,length+fromIndex);k0&&void 0!==arguments[0]&&(depthNum=ToIntegerOrInfinity(arguments[0]));var A=ArraySpeciesCreate(O,0);return FlattenIntoArray(A,O,sourceLen,0,depthNum),A}},"./node_modules/array.prototype.flat/polyfill.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";var implementation=__webpack_require__("./node_modules/array.prototype.flat/implementation.js");module.exports=function getPolyfill(){return Array.prototype.flat||implementation}},"./node_modules/array.prototype.flat/shim.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";var define=__webpack_require__("./node_modules/define-properties/index.js"),shimUnscopables=__webpack_require__("./node_modules/es-shim-unscopables/index.js"),getPolyfill=__webpack_require__("./node_modules/array.prototype.flat/polyfill.js");module.exports=function shimFlat(){var polyfill=getPolyfill();return define(Array.prototype,{flat:polyfill},{flat:function(){return Array.prototype.flat!==polyfill}}),shimUnscopables("flat"),polyfill}},"./node_modules/array.prototype.flatmap/auto.js":function(__unused_webpack_module,__unused_webpack_exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/array.prototype.flatmap/shim.js")()},"./node_modules/array.prototype.flatmap/implementation.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";var ArraySpeciesCreate=__webpack_require__("./node_modules/es-abstract/2021/ArraySpeciesCreate.js"),FlattenIntoArray=__webpack_require__("./node_modules/es-abstract/2021/FlattenIntoArray.js"),Get=__webpack_require__("./node_modules/es-abstract/2021/Get.js"),IsCallable=__webpack_require__("./node_modules/es-abstract/2021/IsCallable.js"),ToLength=__webpack_require__("./node_modules/es-abstract/2021/ToLength.js"),ToObject=__webpack_require__("./node_modules/es-abstract/2021/ToObject.js");module.exports=function flatMap(mapperFunction){var T,O=ToObject(this),sourceLen=ToLength(Get(O,"length"));if(!IsCallable(mapperFunction))throw new TypeError("mapperFunction must be a function");arguments.length>1&&(T=arguments[1]);var A=ArraySpeciesCreate(O,0);return FlattenIntoArray(A,O,sourceLen,0,1,mapperFunction,T),A}},"./node_modules/array.prototype.flatmap/polyfill.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";var implementation=__webpack_require__("./node_modules/array.prototype.flatmap/implementation.js");module.exports=function getPolyfill(){return Array.prototype.flatMap||implementation}},"./node_modules/array.prototype.flatmap/shim.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";var define=__webpack_require__("./node_modules/define-properties/index.js"),shimUnscopables=__webpack_require__("./node_modules/es-shim-unscopables/index.js"),getPolyfill=__webpack_require__("./node_modules/array.prototype.flatmap/polyfill.js");module.exports=function shimFlatMap(){var polyfill=getPolyfill();return define(Array.prototype,{flatMap:polyfill},{flatMap:function(){return Array.prototype.flatMap!==polyfill}}),shimUnscopables("flatMap"),polyfill}},"./node_modules/array.prototype.map/implementation.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";var ArraySpeciesCreate=__webpack_require__("./node_modules/es-abstract/2021/ArraySpeciesCreate.js"),Call=__webpack_require__("./node_modules/es-abstract/2021/Call.js"),CreateDataPropertyOrThrow=__webpack_require__("./node_modules/es-abstract/2021/CreateDataPropertyOrThrow.js"),Get=__webpack_require__("./node_modules/es-abstract/2021/Get.js"),HasProperty=__webpack_require__("./node_modules/es-abstract/2021/HasProperty.js"),IsCallable=__webpack_require__("./node_modules/es-abstract/2021/IsCallable.js"),ToUint32=__webpack_require__("./node_modules/es-abstract/2021/ToUint32.js"),ToObject=__webpack_require__("./node_modules/es-abstract/2021/ToObject.js"),ToString=__webpack_require__("./node_modules/es-abstract/2021/ToString.js"),callBound=__webpack_require__("./node_modules/call-bind/callBound.js"),isString=__webpack_require__("./node_modules/is-string/index.js"),boxedString=Object("a"),splitString="a"!==boxedString[0]||!(0 in boxedString),strSplit=callBound("String.prototype.split");module.exports=function map(callbackfn){var T,O=ToObject(this),self=splitString&&isString(O)?strSplit(O,""):O,len=ToUint32(self.length);if(!IsCallable(callbackfn))throw new TypeError("Array.prototype.map callback must be a function");arguments.length>1&&(T=arguments[1]);for(var A=ArraySpeciesCreate(O,len),k=0;k1)accumulator=arguments[1];else{for(kPresent=!1;!kPresent&&k=0;i--)if(ka[i]!==kb[i])return!1;for(i=ka.length-1;i>=0;i--)if(!_deepEqual(a[key=ka[i]],b[key],strict,actualVisitedObjects))return!1;return!0}(actual,expected,strict,memos))}return strict?actual===expected:actual==expected}function isArguments(object){return"[object Arguments]"==Object.prototype.toString.call(object)}function expectedException(actual,expected){if(!actual||!expected)return!1;if("[object RegExp]"==Object.prototype.toString.call(expected))return expected.test(actual);try{if(actual instanceof expected)return!0}catch(e){}return!Error.isPrototypeOf(expected)&&!0===expected.call({},actual)}function _throws(shouldThrow,block,expected,message){var actual;if("function"!=typeof block)throw new TypeError('"block" argument must be a function');"string"==typeof expected&&(message=expected,expected=null),actual=function _tryBlock(block){var error;try{block()}catch(e){error=e}return error}(block),message=(expected&&expected.name?" ("+expected.name+").":".")+(message?" "+message:"."),shouldThrow&&!actual&&fail(actual,expected,"Missing expected exception"+message);var userProvidedMessage="string"==typeof message,isUnexpectedException=!shouldThrow&&actual&&!expected;if((!shouldThrow&&util.isError(actual)&&userProvidedMessage&&expectedException(actual,expected)||isUnexpectedException)&&fail(actual,expected,"Got unwanted exception"+message),shouldThrow&&actual&&expected&&!expectedException(actual,expected)||!shouldThrow&&actual)throw actual}assert.AssertionError=function AssertionError(options){this.name="AssertionError",this.actual=options.actual,this.expected=options.expected,this.operator=options.operator,options.message?(this.message=options.message,this.generatedMessage=!1):(this.message=function getMessage(self){return truncate(inspect(self.actual),128)+" "+self.operator+" "+truncate(inspect(self.expected),128)}(this),this.generatedMessage=!0);var stackStartFunction=options.stackStartFunction||fail;if(Error.captureStackTrace)Error.captureStackTrace(this,stackStartFunction);else{var err=new Error;if(err.stack){var out=err.stack,fn_name=getName(stackStartFunction),idx=out.indexOf("\n"+fn_name);if(idx>=0){var next_line=out.indexOf("\n",idx+1);out=out.substring(next_line+1)}this.stack=out}}},util.inherits(assert.AssertionError,Error),assert.fail=fail,assert.ok=ok,assert.equal=function equal(actual,expected,message){actual!=expected&&fail(actual,expected,message,"==",assert.equal)},assert.notEqual=function notEqual(actual,expected,message){actual==expected&&fail(actual,expected,message,"!=",assert.notEqual)},assert.deepEqual=function deepEqual(actual,expected,message){_deepEqual(actual,expected,!1)||fail(actual,expected,message,"deepEqual",assert.deepEqual)},assert.deepStrictEqual=function deepStrictEqual(actual,expected,message){_deepEqual(actual,expected,!0)||fail(actual,expected,message,"deepStrictEqual",assert.deepStrictEqual)},assert.notDeepEqual=function notDeepEqual(actual,expected,message){_deepEqual(actual,expected,!1)&&fail(actual,expected,message,"notDeepEqual",assert.notDeepEqual)},assert.notDeepStrictEqual=function notDeepStrictEqual(actual,expected,message){_deepEqual(actual,expected,!0)&&fail(actual,expected,message,"notDeepStrictEqual",notDeepStrictEqual)},assert.strictEqual=function strictEqual(actual,expected,message){actual!==expected&&fail(actual,expected,message,"===",assert.strictEqual)},assert.notStrictEqual=function notStrictEqual(actual,expected,message){actual===expected&&fail(actual,expected,message,"!==",assert.notStrictEqual)},assert.throws=function(block,error,message){_throws(!0,block,error,message)},assert.doesNotThrow=function(block,error,message){_throws(!1,block,error,message)},assert.ifError=function(err){if(err)throw err},assert.strict=objectAssign((function strict(value,message){value||fail(value,!0,message,"==",strict)}),assert,{equal:assert.strictEqual,deepEqual:assert.deepStrictEqual,notEqual:assert.notStrictEqual,notDeepEqual:assert.notDeepStrictEqual}),assert.strict.strict=assert.strict;var objectKeys=Object.keys||function(obj){var keys=[];for(var key in obj)hasOwn.call(obj,key)&&keys.push(key);return keys}},"./node_modules/assert/node_modules/inherits/inherits_browser.js":function(module){"function"==typeof Object.create?module.exports=function inherits(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})}:module.exports=function inherits(ctor,superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype,ctor.prototype=new TempCtor,ctor.prototype.constructor=ctor}},"./node_modules/assert/node_modules/util/support/isBufferBrowser.js":function(module){module.exports=function isBuffer(arg){return arg&&"object"==typeof arg&&"function"==typeof arg.copy&&"function"==typeof arg.fill&&"function"==typeof arg.readUInt8}},"./node_modules/assert/node_modules/util/util.js":function(__unused_webpack_module,exports,__webpack_require__){var process=__webpack_require__("./node_modules/process/browser.js"),formatRegExp=/%[sdj%]/g;exports.format=function(f){if(!isString(f)){for(var objects=[],i=0;i=len)return x;switch(x){case"%s":return String(args[i++]);case"%d":return Number(args[i++]);case"%j":try{return JSON.stringify(args[i++])}catch(_){return"[Circular]"}default:return x}})),x=args[i];i=3&&(ctx.depth=arguments[2]),arguments.length>=4&&(ctx.colors=arguments[3]),isBoolean(opts)?ctx.showHidden=opts:opts&&exports._extend(ctx,opts),isUndefined(ctx.showHidden)&&(ctx.showHidden=!1),isUndefined(ctx.depth)&&(ctx.depth=2),isUndefined(ctx.colors)&&(ctx.colors=!1),isUndefined(ctx.customInspect)&&(ctx.customInspect=!0),ctx.colors&&(ctx.stylize=stylizeWithColor),formatValue(ctx,obj,ctx.depth)}function stylizeWithColor(str,styleType){var style=inspect.styles[styleType];return style?"["+inspect.colors[style][0]+"m"+str+"["+inspect.colors[style][1]+"m":str}function stylizeNoColor(str,styleType){return str}function formatValue(ctx,value,recurseTimes){if(ctx.customInspect&&value&&isFunction(value.inspect)&&value.inspect!==exports.inspect&&(!value.constructor||value.constructor.prototype!==value)){var ret=value.inspect(recurseTimes,ctx);return isString(ret)||(ret=formatValue(ctx,ret,recurseTimes)),ret}var primitive=function formatPrimitive(ctx,value){if(isUndefined(value))return ctx.stylize("undefined","undefined");if(isString(value)){var simple="'"+JSON.stringify(value).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ctx.stylize(simple,"string")}if(isNumber(value))return ctx.stylize(""+value,"number");if(isBoolean(value))return ctx.stylize(""+value,"boolean");if(isNull(value))return ctx.stylize("null","null")}(ctx,value);if(primitive)return primitive;var keys=Object.keys(value),visibleKeys=function arrayToHash(array){var hash={};return array.forEach((function(val,idx){hash[val]=!0})),hash}(keys);if(ctx.showHidden&&(keys=Object.getOwnPropertyNames(value)),isError(value)&&(keys.indexOf("message")>=0||keys.indexOf("description")>=0))return formatError(value);if(0===keys.length){if(isFunction(value)){var name=value.name?": "+value.name:"";return ctx.stylize("[Function"+name+"]","special")}if(isRegExp(value))return ctx.stylize(RegExp.prototype.toString.call(value),"regexp");if(isDate(value))return ctx.stylize(Date.prototype.toString.call(value),"date");if(isError(value))return formatError(value)}var output,base="",array=!1,braces=["{","}"];(isArray(value)&&(array=!0,braces=["[","]"]),isFunction(value))&&(base=" [Function"+(value.name?": "+value.name:"")+"]");return isRegExp(value)&&(base=" "+RegExp.prototype.toString.call(value)),isDate(value)&&(base=" "+Date.prototype.toUTCString.call(value)),isError(value)&&(base=" "+formatError(value)),0!==keys.length||array&&0!=value.length?recurseTimes<0?isRegExp(value)?ctx.stylize(RegExp.prototype.toString.call(value),"regexp"):ctx.stylize("[Object]","special"):(ctx.seen.push(value),output=array?function formatArray(ctx,value,recurseTimes,visibleKeys,keys){for(var output=[],i=0,l=value.length;i=0&&0,prev+cur.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return braces[0]+(""===base?"":base+"\n ")+" "+output.join(",\n ")+" "+braces[1];return braces[0]+base+" "+output.join(", ")+" "+braces[1]}(output,base,braces)):braces[0]+base+braces[1]}function formatError(value){return"["+Error.prototype.toString.call(value)+"]"}function formatProperty(ctx,value,recurseTimes,visibleKeys,key,array){var name,str,desc;if((desc=Object.getOwnPropertyDescriptor(value,key)||{value:value[key]}).get?str=desc.set?ctx.stylize("[Getter/Setter]","special"):ctx.stylize("[Getter]","special"):desc.set&&(str=ctx.stylize("[Setter]","special")),hasOwnProperty(visibleKeys,key)||(name="["+key+"]"),str||(ctx.seen.indexOf(desc.value)<0?(str=isNull(recurseTimes)?formatValue(ctx,desc.value,null):formatValue(ctx,desc.value,recurseTimes-1)).indexOf("\n")>-1&&(str=array?str.split("\n").map((function(line){return" "+line})).join("\n").substr(2):"\n"+str.split("\n").map((function(line){return" "+line})).join("\n")):str=ctx.stylize("[Circular]","special")),isUndefined(name)){if(array&&key.match(/^\d+$/))return str;(name=JSON.stringify(""+key)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(name=name.substr(1,name.length-2),name=ctx.stylize(name,"name")):(name=name.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),name=ctx.stylize(name,"string"))}return name+": "+str}function isArray(ar){return Array.isArray(ar)}function isBoolean(arg){return"boolean"==typeof arg}function isNull(arg){return null===arg}function isNumber(arg){return"number"==typeof arg}function isString(arg){return"string"==typeof arg}function isUndefined(arg){return void 0===arg}function isRegExp(re){return isObject(re)&&"[object RegExp]"===objectToString(re)}function isObject(arg){return"object"==typeof arg&&null!==arg}function isDate(d){return isObject(d)&&"[object Date]"===objectToString(d)}function isError(e){return isObject(e)&&("[object Error]"===objectToString(e)||e instanceof Error)}function isFunction(arg){return"function"==typeof arg}function objectToString(o){return Object.prototype.toString.call(o)}function pad(n){return n<10?"0"+n.toString(10):n.toString(10)}exports.debuglog=function(set){if(isUndefined(debugEnviron)&&(debugEnviron=process.env.NODE_DEBUG||""),set=set.toUpperCase(),!debugs[set])if(new RegExp("\\b"+set+"\\b","i").test(debugEnviron)){var pid=process.pid;debugs[set]=function(){var msg=exports.format.apply(exports,arguments);console.error("%s %d: %s",set,pid,msg)}}else debugs[set]=function(){};return debugs[set]},exports.inspect=inspect,inspect.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},inspect.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},exports.isArray=isArray,exports.isBoolean=isBoolean,exports.isNull=isNull,exports.isNullOrUndefined=function isNullOrUndefined(arg){return null==arg},exports.isNumber=isNumber,exports.isString=isString,exports.isSymbol=function isSymbol(arg){return"symbol"==typeof arg},exports.isUndefined=isUndefined,exports.isRegExp=isRegExp,exports.isObject=isObject,exports.isDate=isDate,exports.isError=isError,exports.isFunction=isFunction,exports.isPrimitive=function isPrimitive(arg){return null===arg||"boolean"==typeof arg||"number"==typeof arg||"string"==typeof arg||"symbol"==typeof arg||void 0===arg},exports.isBuffer=__webpack_require__("./node_modules/assert/node_modules/util/support/isBufferBrowser.js");var months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function timestamp(){var d=new Date,time=[pad(d.getHours()),pad(d.getMinutes()),pad(d.getSeconds())].join(":");return[d.getDate(),months[d.getMonth()],time].join(" ")}function hasOwnProperty(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}exports.log=function(){console.log("%s - %s",timestamp(),exports.format.apply(exports,arguments))},exports.inherits=__webpack_require__("./node_modules/assert/node_modules/inherits/inherits_browser.js"),exports._extend=function(origin,add){if(!add||!isObject(add))return origin;for(var keys=Object.keys(add),i=keys.length;i--;)origin[keys[i]]=add[keys[i]];return origin}},"./node_modules/@storybook/react/node_modules/acorn-jsx/index.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i...",!0,!0),tokContexts={tc_oTag:tc_oTag,tc_cTag:tc_cTag,tc_expr:tc_expr},tokTypes={jsxName:new TokenType("jsxName"),jsxText:new TokenType("jsxText",{beforeExpr:!0}),jsxTagStart:new TokenType("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new TokenType("jsxTagEnd")};tokTypes.jsxTagStart.updateContext=function(){this.context.push(tc_expr),this.context.push(tc_oTag),this.exprAllowed=!1},tokTypes.jsxTagEnd.updateContext=function(prevType){var out=this.context.pop();out===tc_oTag&&prevType===tt.slash||out===tc_cTag?(this.context.pop(),this.exprAllowed=this.curContext()===tc_expr):this.exprAllowed=!0},acornJsx={tokContexts:tokContexts,tokTypes:tokTypes},acornJsxMap.set(acorn,acornJsx)}return acornJsx}function getQualifiedJSXName(object){return object?"JSXIdentifier"===object.type?object.name:"JSXNamespacedName"===object.type?object.namespace.name+":"+object.name.name:"JSXMemberExpression"===object.type?getQualifiedJSXName(object.object)+"."+getQualifiedJSXName(object.property):void 0:object}module.exports=function(options){return options=options||{},function(Parser){return function plugin(options,Parser){var acorn=Parser.acorn||__webpack_require__("./node_modules/@storybook/react/node_modules/acorn/dist/acorn.mjs"),acornJsx=getJsxTokens(acorn),tt=acorn.tokTypes,tok=acornJsx.tokTypes,tokContexts=acorn.tokContexts,tc_oTag=acornJsx.tokContexts.tc_oTag,tc_cTag=acornJsx.tokContexts.tc_cTag,tc_expr=acornJsx.tokContexts.tc_expr,isNewLine=acorn.isNewLine,isIdentifierStart=acorn.isIdentifierStart,isIdentifierChar=acorn.isIdentifierChar;return function(_Parser){!function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(_class,_Parser);var _super=_createSuper(_class);function _class(){return _classCallCheck(this,_class),_super.apply(this,arguments)}return function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(_class,[{key:"jsx_readToken",value:function jsx_readToken(){for(var out="",chunkStart=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");var ch=this.input.charCodeAt(this.pos);switch(ch){case 60:case 123:return this.pos===this.start?60===ch&&this.exprAllowed?(++this.pos,this.finishToken(tok.jsxTagStart)):this.getTokenFromCode(ch):(out+=this.input.slice(chunkStart,this.pos),this.finishToken(tok.jsxText,out));case 38:out+=this.input.slice(chunkStart,this.pos),out+=this.jsx_readEntity(),chunkStart=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(62===ch?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:isNewLine(ch)?(out+=this.input.slice(chunkStart,this.pos),out+=this.jsx_readNewLine(!0),chunkStart=this.pos):++this.pos}}}},{key:"jsx_readNewLine",value:function jsx_readNewLine(normalizeCRLF){var out,ch=this.input.charCodeAt(this.pos);return++this.pos,13===ch&&10===this.input.charCodeAt(this.pos)?(++this.pos,out=normalizeCRLF?"\n":"\r\n"):out=String.fromCharCode(ch),this.options.locations&&(++this.curLine,this.lineStart=this.pos),out}},{key:"jsx_readString",value:function jsx_readString(quote){for(var out="",chunkStart=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var ch=this.input.charCodeAt(this.pos);if(ch===quote)break;38===ch?(out+=this.input.slice(chunkStart,this.pos),out+=this.jsx_readEntity(),chunkStart=this.pos):isNewLine(ch)?(out+=this.input.slice(chunkStart,this.pos),out+=this.jsx_readNewLine(!1),chunkStart=this.pos):++this.pos}return out+=this.input.slice(chunkStart,this.pos++),this.finishToken(tt.string,out)}},{key:"jsx_readEntity",value:function jsx_readEntity(){var entity,str="",count=0,ch=this.input[this.pos];"&"!==ch&&this.raise(this.pos,"Entity must start with an ampersand");for(var startPos=++this.pos;this.pos")}var fragmentOrElement=openingElement.name?"Element":"Fragment";return node["opening"+fragmentOrElement]=openingElement,node["closing"+fragmentOrElement]=closingElement,node.children=children,this.type===tt.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(node,"JSX"+fragmentOrElement)}},{key:"jsx_parseText",value:function jsx_parseText(){var node=this.parseLiteral(this.value);return node.type="JSXText",node}},{key:"jsx_parseElement",value:function jsx_parseElement(){var startPos=this.start,startLoc=this.startLoc;return this.next(),this.jsx_parseElementAt(startPos,startLoc)}},{key:"parseExprAtom",value:function parseExprAtom(refShortHandDefaultPos){return this.type===tok.jsxText?this.jsx_parseText():this.type===tok.jsxTagStart?this.jsx_parseElement():_get(_getPrototypeOf(_class.prototype),"parseExprAtom",this).call(this,refShortHandDefaultPos)}},{key:"readToken",value:function readToken(code){var context=this.curContext();if(context===tc_expr)return this.jsx_readToken();if(context===tc_oTag||context===tc_cTag){if(isIdentifierStart(code))return this.jsx_readWord();if(62==code)return++this.pos,this.finishToken(tok.jsxTagEnd);if((34===code||39===code)&&context==tc_oTag)return this.jsx_readString(code)}return 60===code&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(tok.jsxTagStart)):_get(_getPrototypeOf(_class.prototype),"readToken",this).call(this,code)}},{key:"updateContext",value:function updateContext(prevType){if(this.type==tt.braceL){var curContext=this.curContext();curContext==tc_oTag?this.context.push(tokContexts.b_expr):curContext==tc_expr?this.context.push(tokContexts.b_tmpl):_get(_getPrototypeOf(_class.prototype),"updateContext",this).call(this,prevType),this.exprAllowed=!0}else{if(this.type!==tt.slash||prevType!==tok.jsxTagStart)return _get(_getPrototypeOf(_class.prototype),"updateContext",this).call(this,prevType);this.context.length-=2,this.context.push(tc_cTag),this.exprAllowed=!1}}}],[{key:"acornJsx",get:function get(){return acornJsx}}]),_class}(Parser)}({allowNamespaces:!1!==options.allowNamespaces,allowNamespacedObjects:!!options.allowNamespacedObjects},Parser)}},Object.defineProperty(module.exports,"tokTypes",{get:function get_tokTypes(){return getJsxTokens(__webpack_require__("./node_modules/@storybook/react/node_modules/acorn/dist/acorn.mjs")).tokTypes},configurable:!0,enumerable:!0})},"./node_modules/@storybook/react/node_modules/acorn-jsx/xhtml.js":function(module){"use strict";module.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}},"./node_modules/slash/index.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),module.exports=function(path){var isExtendedLengthPath=/^\\\\\?\\/.test(path),hasNonAscii=/[^\u0000-\u0080]+/.test(path);return isExtendedLengthPath||hasNonAscii?path:path.replace(/\\/g,"/")}},"./node_modules/call-bind/callBound.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";var GetIntrinsic=__webpack_require__("./node_modules/get-intrinsic/index.js"),callBind=__webpack_require__("./node_modules/call-bind/index.js"),$indexOf=callBind(GetIntrinsic("String.prototype.indexOf"));module.exports=function callBoundIntrinsic(name,allowMissing){var intrinsic=GetIntrinsic(name,!!allowMissing);return"function"==typeof intrinsic&&$indexOf(name,".prototype.")>-1?callBind(intrinsic):intrinsic}},"./node_modules/call-bind/index.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";var bind=__webpack_require__("./node_modules/function-bind/index.js"),GetIntrinsic=__webpack_require__("./node_modules/get-intrinsic/index.js"),$apply=GetIntrinsic("%Function.prototype.apply%"),$call=GetIntrinsic("%Function.prototype.call%"),$reflectApply=GetIntrinsic("%Reflect.apply%",!0)||bind.call($call,$apply),$gOPD=GetIntrinsic("%Object.getOwnPropertyDescriptor%",!0),$defineProperty=GetIntrinsic("%Object.defineProperty%",!0),$max=GetIntrinsic("%Math.max%");if($defineProperty)try{$defineProperty({},"a",{value:1})}catch(e){$defineProperty=null}module.exports=function callBind(originalFunction){var func=$reflectApply(bind,$call,arguments);if($gOPD&&$defineProperty){var desc=$gOPD(func,"length");desc.configurable&&$defineProperty(func,"length",{value:1+$max(0,originalFunction.length-(arguments.length-1))})}return func};var applyBind=function applyBind(){return $reflectApply(bind,$apply,arguments)};$defineProperty?$defineProperty(module.exports,"apply",{value:applyBind}):module.exports.apply=applyBind},"./node_modules/clsx/dist/clsx.m.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function toVal(mix){var k,y,str="";if("string"==typeof mix||"number"==typeof mix)str+=mix;else if("object"==typeof mix)if(Array.isArray(mix))for(k=0;k1?arguments[1]:void 0,length),end=argumentsLength>2?arguments[2]:void 0,endPos=void 0===end?length:toAbsoluteIndex(end,length);endPos>index;)O[index++]=value;return O}},"./node_modules/core-js/internals/array-for-each.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";var $forEach=__webpack_require__("./node_modules/core-js/internals/array-iteration.js").forEach,STRICT_METHOD=__webpack_require__("./node_modules/core-js/internals/array-method-is-strict.js")("forEach");module.exports=STRICT_METHOD?[].forEach:function forEach(callbackfn){return $forEach(this,callbackfn,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-from.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";var bind=__webpack_require__("./node_modules/core-js/internals/function-bind-context.js"),call=__webpack_require__("./node_modules/core-js/internals/function-call.js"),toObject=__webpack_require__("./node_modules/core-js/internals/to-object.js"),callWithSafeIterationClosing=__webpack_require__("./node_modules/core-js/internals/call-with-safe-iteration-closing.js"),isArrayIteratorMethod=__webpack_require__("./node_modules/core-js/internals/is-array-iterator-method.js"),isConstructor=__webpack_require__("./node_modules/core-js/internals/is-constructor.js"),lengthOfArrayLike=__webpack_require__("./node_modules/core-js/internals/length-of-array-like.js"),createProperty=__webpack_require__("./node_modules/core-js/internals/create-property.js"),getIterator=__webpack_require__("./node_modules/core-js/internals/get-iterator.js"),getIteratorMethod=__webpack_require__("./node_modules/core-js/internals/get-iterator-method.js"),$Array=Array;module.exports=function from(arrayLike){var O=toObject(arrayLike),IS_CONSTRUCTOR=isConstructor(this),argumentsLength=arguments.length,mapfn=argumentsLength>1?arguments[1]:void 0,mapping=void 0!==mapfn;mapping&&(mapfn=bind(mapfn,argumentsLength>2?arguments[2]:void 0));var length,result,step,iterator,next,value,iteratorMethod=getIteratorMethod(O),index=0;if(!iteratorMethod||this===$Array&&isArrayIteratorMethod(iteratorMethod))for(length=lengthOfArrayLike(O),result=IS_CONSTRUCTOR?new this(length):$Array(length);length>index;index++)value=mapping?mapfn(O[index],index):O[index],createProperty(result,index,value);else for(next=(iterator=getIterator(O,iteratorMethod)).next,result=IS_CONSTRUCTOR?new this:[];!(step=call(next,iterator)).done;index++)value=mapping?callWithSafeIterationClosing(iterator,mapfn,[step.value,index],!0):step.value,createProperty(result,index,value);return result.length=index,result}},"./node_modules/core-js/internals/array-includes.js":function(module,__unused_webpack_exports,__webpack_require__){var toIndexedObject=__webpack_require__("./node_modules/core-js/internals/to-indexed-object.js"),toAbsoluteIndex=__webpack_require__("./node_modules/core-js/internals/to-absolute-index.js"),lengthOfArrayLike=__webpack_require__("./node_modules/core-js/internals/length-of-array-like.js"),createMethod=function(IS_INCLUDES){return function($this,el,fromIndex){var value,O=toIndexedObject($this),length=lengthOfArrayLike(O),index=toAbsoluteIndex(fromIndex,length);if(IS_INCLUDES&&el!=el){for(;length>index;)if((value=O[index++])!=value)return!0}else for(;length>index;index++)if((IS_INCLUDES||index in O)&&O[index]===el)return IS_INCLUDES||index||0;return!IS_INCLUDES&&-1}};module.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(module,__unused_webpack_exports,__webpack_require__){var bind=__webpack_require__("./node_modules/core-js/internals/function-bind-context.js"),uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js"),IndexedObject=__webpack_require__("./node_modules/core-js/internals/indexed-object.js"),toObject=__webpack_require__("./node_modules/core-js/internals/to-object.js"),lengthOfArrayLike=__webpack_require__("./node_modules/core-js/internals/length-of-array-like.js"),arraySpeciesCreate=__webpack_require__("./node_modules/core-js/internals/array-species-create.js"),push=uncurryThis([].push),createMethod=function(TYPE){var IS_MAP=1==TYPE,IS_FILTER=2==TYPE,IS_SOME=3==TYPE,IS_EVERY=4==TYPE,IS_FIND_INDEX=6==TYPE,IS_FILTER_REJECT=7==TYPE,NO_HOLES=5==TYPE||IS_FIND_INDEX;return function($this,callbackfn,that,specificCreate){for(var value,result,O=toObject($this),self=IndexedObject(O),boundFunction=bind(callbackfn,that),length=lengthOfArrayLike(self),index=0,create=specificCreate||arraySpeciesCreate,target=IS_MAP?create($this,length):IS_FILTER||IS_FILTER_REJECT?create($this,0):void 0;length>index;index++)if((NO_HOLES||index in self)&&(result=boundFunction(value=self[index],index,O),TYPE))if(IS_MAP)target[index]=result;else if(result)switch(TYPE){case 3:return!0;case 5:return value;case 6:return index;case 2:push(target,value)}else switch(TYPE){case 4:return!1;case 7:push(target,value)}return IS_FIND_INDEX?-1:IS_SOME||IS_EVERY?IS_EVERY:target}};module.exports={forEach:createMethod(0),map:createMethod(1),filter:createMethod(2),some:createMethod(3),every:createMethod(4),find:createMethod(5),findIndex:createMethod(6),filterReject:createMethod(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(module,__unused_webpack_exports,__webpack_require__){var fails=__webpack_require__("./node_modules/core-js/internals/fails.js"),wellKnownSymbol=__webpack_require__("./node_modules/core-js/internals/well-known-symbol.js"),V8_VERSION=__webpack_require__("./node_modules/core-js/internals/engine-v8-version.js"),SPECIES=wellKnownSymbol("species");module.exports=function(METHOD_NAME){return V8_VERSION>=51||!fails((function(){var array=[];return(array.constructor={})[SPECIES]=function(){return{foo:1}},1!==array[METHOD_NAME](Boolean).foo}))}},"./node_modules/core-js/internals/array-method-is-strict.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";var fails=__webpack_require__("./node_modules/core-js/internals/fails.js");module.exports=function(METHOD_NAME,argument){var method=[][METHOD_NAME];return!!method&&fails((function(){method.call(null,argument||function(){return 1},1)}))}},"./node_modules/core-js/internals/array-slice-simple.js":function(module,__unused_webpack_exports,__webpack_require__){var toAbsoluteIndex=__webpack_require__("./node_modules/core-js/internals/to-absolute-index.js"),lengthOfArrayLike=__webpack_require__("./node_modules/core-js/internals/length-of-array-like.js"),createProperty=__webpack_require__("./node_modules/core-js/internals/create-property.js"),$Array=Array,max=Math.max;module.exports=function(O,start,end){for(var length=lengthOfArrayLike(O),k=toAbsoluteIndex(start,length),fin=toAbsoluteIndex(void 0===end?length:end,length),result=$Array(max(fin-k,0)),n=0;k0;)array[j]=array[--j];j!==i++&&(array[j]=element)}return array},merge=function(array,left,right,comparefn){for(var llength=left.length,rlength=right.length,lindex=0,rindex=0;lindex1?arguments[1]:void 0);entry=entry?entry.next:state.first;)for(boundFunction(entry.value,entry.key,this);entry&&entry.removed;)entry=entry.previous},has:function has(key){return!!getEntry(this,key)}}),defineBuiltIns(Prototype,IS_MAP?{get:function get(key){var entry=getEntry(this,key);return entry&&entry.value},set:function set(key,value){return define(this,0===key?0:key,value)}}:{add:function add(value){return define(this,value=0===value?0:value,value)}}),DESCRIPTORS&&defineProperty(Prototype,"size",{get:function(){return getInternalState(this).size}}),Constructor},setStrong:function(Constructor,CONSTRUCTOR_NAME,IS_MAP){var ITERATOR_NAME=CONSTRUCTOR_NAME+" Iterator",getInternalCollectionState=internalStateGetterFor(CONSTRUCTOR_NAME),getInternalIteratorState=internalStateGetterFor(ITERATOR_NAME);defineIterator(Constructor,CONSTRUCTOR_NAME,(function(iterated,kind){setInternalState(this,{type:ITERATOR_NAME,target:iterated,state:getInternalCollectionState(iterated),kind:kind,last:void 0})}),(function(){for(var state=getInternalIteratorState(this),kind=state.kind,entry=state.last;entry&&entry.removed;)entry=entry.previous;return state.target&&(state.last=entry=entry?entry.next:state.state.first)?"keys"==kind?{value:entry.key,done:!1}:"values"==kind?{value:entry.value,done:!1}:{value:[entry.key,entry.value],done:!1}:(state.target=void 0,{value:void 0,done:!0})}),IS_MAP?"entries":"values",!IS_MAP,!0),setSpecies(CONSTRUCTOR_NAME)}}},"./node_modules/core-js/internals/collection-weak.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";var uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js"),defineBuiltIns=__webpack_require__("./node_modules/core-js/internals/define-built-ins.js"),getWeakData=__webpack_require__("./node_modules/core-js/internals/internal-metadata.js").getWeakData,anObject=__webpack_require__("./node_modules/core-js/internals/an-object.js"),isObject=__webpack_require__("./node_modules/core-js/internals/is-object.js"),anInstance=__webpack_require__("./node_modules/core-js/internals/an-instance.js"),iterate=__webpack_require__("./node_modules/core-js/internals/iterate.js"),ArrayIterationModule=__webpack_require__("./node_modules/core-js/internals/array-iteration.js"),hasOwn=__webpack_require__("./node_modules/core-js/internals/has-own-property.js"),InternalStateModule=__webpack_require__("./node_modules/core-js/internals/internal-state.js"),setInternalState=InternalStateModule.set,internalStateGetterFor=InternalStateModule.getterFor,find=ArrayIterationModule.find,findIndex=ArrayIterationModule.findIndex,splice=uncurryThis([].splice),id=0,uncaughtFrozenStore=function(store){return store.frozen||(store.frozen=new UncaughtFrozenStore)},UncaughtFrozenStore=function(){this.entries=[]},findUncaughtFrozen=function(store,key){return find(store.entries,(function(it){return it[0]===key}))};UncaughtFrozenStore.prototype={get:function(key){var entry=findUncaughtFrozen(this,key);if(entry)return entry[1]},has:function(key){return!!findUncaughtFrozen(this,key)},set:function(key,value){var entry=findUncaughtFrozen(this,key);entry?entry[1]=value:this.entries.push([key,value])},delete:function(key){var index=findIndex(this.entries,(function(it){return it[0]===key}));return~index&&splice(this.entries,index,1),!!~index}},module.exports={getConstructor:function(wrapper,CONSTRUCTOR_NAME,IS_MAP,ADDER){var Constructor=wrapper((function(that,iterable){anInstance(that,Prototype),setInternalState(that,{type:CONSTRUCTOR_NAME,id:id++,frozen:void 0}),null!=iterable&&iterate(iterable,that[ADDER],{that:that,AS_ENTRIES:IS_MAP})})),Prototype=Constructor.prototype,getInternalState=internalStateGetterFor(CONSTRUCTOR_NAME),define=function(that,key,value){var state=getInternalState(that),data=getWeakData(anObject(key),!0);return!0===data?uncaughtFrozenStore(state).set(key,value):data[state.id]=value,that};return defineBuiltIns(Prototype,{delete:function(key){var state=getInternalState(this);if(!isObject(key))return!1;var data=getWeakData(key);return!0===data?uncaughtFrozenStore(state).delete(key):data&&hasOwn(data,state.id)&&delete data[state.id]},has:function has(key){var state=getInternalState(this);if(!isObject(key))return!1;var data=getWeakData(key);return!0===data?uncaughtFrozenStore(state).has(key):data&&hasOwn(data,state.id)}}),defineBuiltIns(Prototype,IS_MAP?{get:function get(key){var state=getInternalState(this);if(isObject(key)){var data=getWeakData(key);return!0===data?uncaughtFrozenStore(state).get(key):data?data[state.id]:void 0}},set:function set(key,value){return define(this,key,value)}}:{add:function add(value){return define(this,value,!0)}}),Constructor}}},"./node_modules/core-js/internals/collection.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";var $=__webpack_require__("./node_modules/core-js/internals/export.js"),global=__webpack_require__("./node_modules/core-js/internals/global.js"),uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js"),isForced=__webpack_require__("./node_modules/core-js/internals/is-forced.js"),defineBuiltIn=__webpack_require__("./node_modules/core-js/internals/define-built-in.js"),InternalMetadataModule=__webpack_require__("./node_modules/core-js/internals/internal-metadata.js"),iterate=__webpack_require__("./node_modules/core-js/internals/iterate.js"),anInstance=__webpack_require__("./node_modules/core-js/internals/an-instance.js"),isCallable=__webpack_require__("./node_modules/core-js/internals/is-callable.js"),isObject=__webpack_require__("./node_modules/core-js/internals/is-object.js"),fails=__webpack_require__("./node_modules/core-js/internals/fails.js"),checkCorrectnessOfIteration=__webpack_require__("./node_modules/core-js/internals/check-correctness-of-iteration.js"),setToStringTag=__webpack_require__("./node_modules/core-js/internals/set-to-string-tag.js"),inheritIfRequired=__webpack_require__("./node_modules/core-js/internals/inherit-if-required.js");module.exports=function(CONSTRUCTOR_NAME,wrapper,common){var IS_MAP=-1!==CONSTRUCTOR_NAME.indexOf("Map"),IS_WEAK=-1!==CONSTRUCTOR_NAME.indexOf("Weak"),ADDER=IS_MAP?"set":"add",NativeConstructor=global[CONSTRUCTOR_NAME],NativePrototype=NativeConstructor&&NativeConstructor.prototype,Constructor=NativeConstructor,exported={},fixMethod=function(KEY){var uncurriedNativeMethod=uncurryThis(NativePrototype[KEY]);defineBuiltIn(NativePrototype,KEY,"add"==KEY?function add(value){return uncurriedNativeMethod(this,0===value?0:value),this}:"delete"==KEY?function(key){return!(IS_WEAK&&!isObject(key))&&uncurriedNativeMethod(this,0===key?0:key)}:"get"==KEY?function get(key){return IS_WEAK&&!isObject(key)?void 0:uncurriedNativeMethod(this,0===key?0:key)}:"has"==KEY?function has(key){return!(IS_WEAK&&!isObject(key))&&uncurriedNativeMethod(this,0===key?0:key)}:function set(key,value){return uncurriedNativeMethod(this,0===key?0:key,value),this})};if(isForced(CONSTRUCTOR_NAME,!isCallable(NativeConstructor)||!(IS_WEAK||NativePrototype.forEach&&!fails((function(){(new NativeConstructor).entries().next()})))))Constructor=common.getConstructor(wrapper,CONSTRUCTOR_NAME,IS_MAP,ADDER),InternalMetadataModule.enable();else if(isForced(CONSTRUCTOR_NAME,!0)){var instance=new Constructor,HASNT_CHAINING=instance[ADDER](IS_WEAK?{}:-0,1)!=instance,THROWS_ON_PRIMITIVES=fails((function(){instance.has(1)})),ACCEPT_ITERABLES=checkCorrectnessOfIteration((function(iterable){new NativeConstructor(iterable)})),BUGGY_ZERO=!IS_WEAK&&fails((function(){for(var $instance=new NativeConstructor,index=5;index--;)$instance[ADDER](index,index);return!$instance.has(-0)}));ACCEPT_ITERABLES||((Constructor=wrapper((function(dummy,iterable){anInstance(dummy,NativePrototype);var that=inheritIfRequired(new NativeConstructor,dummy,Constructor);return null!=iterable&&iterate(iterable,that[ADDER],{that:that,AS_ENTRIES:IS_MAP}),that}))).prototype=NativePrototype,NativePrototype.constructor=Constructor),(THROWS_ON_PRIMITIVES||BUGGY_ZERO)&&(fixMethod("delete"),fixMethod("has"),IS_MAP&&fixMethod("get")),(BUGGY_ZERO||HASNT_CHAINING)&&fixMethod(ADDER),IS_WEAK&&NativePrototype.clear&&delete NativePrototype.clear}return exported[CONSTRUCTOR_NAME]=Constructor,$({global:!0,constructor:!0,forced:Constructor!=NativeConstructor},exported),setToStringTag(Constructor,CONSTRUCTOR_NAME),IS_WEAK||common.setStrong(Constructor,CONSTRUCTOR_NAME,IS_MAP),Constructor}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(module,__unused_webpack_exports,__webpack_require__){var hasOwn=__webpack_require__("./node_modules/core-js/internals/has-own-property.js"),ownKeys=__webpack_require__("./node_modules/core-js/internals/own-keys.js"),getOwnPropertyDescriptorModule=__webpack_require__("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),definePropertyModule=__webpack_require__("./node_modules/core-js/internals/object-define-property.js");module.exports=function(target,source,exceptions){for(var keys=ownKeys(source),defineProperty=definePropertyModule.f,getOwnPropertyDescriptor=getOwnPropertyDescriptorModule.f,i=0;i9007199254740991)throw $TypeError("Maximum allowed index exceeded");return it}},"./node_modules/core-js/internals/dom-iterables.js":function(module){module.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js/internals/dom-token-list-prototype.js":function(module,__unused_webpack_exports,__webpack_require__){var classList=__webpack_require__("./node_modules/core-js/internals/document-create-element.js")("span").classList,DOMTokenListPrototype=classList&&classList.constructor&&classList.constructor.prototype;module.exports=DOMTokenListPrototype===Object.prototype?void 0:DOMTokenListPrototype},"./node_modules/core-js/internals/engine-ff-version.js":function(module,__unused_webpack_exports,__webpack_require__){var firefox=__webpack_require__("./node_modules/core-js/internals/engine-user-agent.js").match(/firefox\/(\d+)/i);module.exports=!!firefox&&+firefox[1]},"./node_modules/core-js/internals/engine-is-browser.js":function(module){module.exports="object"==typeof window&&"object"!=typeof Deno},"./node_modules/core-js/internals/engine-is-ie-or-edge.js":function(module,__unused_webpack_exports,__webpack_require__){var UA=__webpack_require__("./node_modules/core-js/internals/engine-user-agent.js");module.exports=/MSIE|Trident/.test(UA)},"./node_modules/core-js/internals/engine-is-ios-pebble.js":function(module,__unused_webpack_exports,__webpack_require__){var userAgent=__webpack_require__("./node_modules/core-js/internals/engine-user-agent.js"),global=__webpack_require__("./node_modules/core-js/internals/global.js");module.exports=/ipad|iphone|ipod/i.test(userAgent)&&void 0!==global.Pebble},"./node_modules/core-js/internals/engine-is-ios.js":function(module,__unused_webpack_exports,__webpack_require__){var userAgent=__webpack_require__("./node_modules/core-js/internals/engine-user-agent.js");module.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent)},"./node_modules/core-js/internals/engine-is-node.js":function(module,__unused_webpack_exports,__webpack_require__){var classof=__webpack_require__("./node_modules/core-js/internals/classof-raw.js"),global=__webpack_require__("./node_modules/core-js/internals/global.js");module.exports="process"==classof(global.process)},"./node_modules/core-js/internals/engine-is-webos-webkit.js":function(module,__unused_webpack_exports,__webpack_require__){var userAgent=__webpack_require__("./node_modules/core-js/internals/engine-user-agent.js");module.exports=/web0s(?!.*chrome)/i.test(userAgent)},"./node_modules/core-js/internals/engine-user-agent.js":function(module,__unused_webpack_exports,__webpack_require__){var getBuiltIn=__webpack_require__("./node_modules/core-js/internals/get-built-in.js");module.exports=getBuiltIn("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(module,__unused_webpack_exports,__webpack_require__){var match,version,global=__webpack_require__("./node_modules/core-js/internals/global.js"),userAgent=__webpack_require__("./node_modules/core-js/internals/engine-user-agent.js"),process=global.process,Deno=global.Deno,versions=process&&process.versions||Deno&&Deno.version,v8=versions&&versions.v8;v8&&(version=(match=v8.split("."))[0]>0&&match[0]<4?1:+(match[0]+match[1])),!version&&userAgent&&(!(match=userAgent.match(/Edge\/(\d+)/))||match[1]>=74)&&(match=userAgent.match(/Chrome\/(\d+)/))&&(version=+match[1]),module.exports=version},"./node_modules/core-js/internals/engine-webkit-version.js":function(module,__unused_webpack_exports,__webpack_require__){var webkit=__webpack_require__("./node_modules/core-js/internals/engine-user-agent.js").match(/AppleWebKit\/(\d+)\./);module.exports=!!webkit&&+webkit[1]},"./node_modules/core-js/internals/enum-bug-keys.js":function(module){module.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(module,__unused_webpack_exports,__webpack_require__){var global=__webpack_require__("./node_modules/core-js/internals/global.js"),getOwnPropertyDescriptor=__webpack_require__("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,createNonEnumerableProperty=__webpack_require__("./node_modules/core-js/internals/create-non-enumerable-property.js"),defineBuiltIn=__webpack_require__("./node_modules/core-js/internals/define-built-in.js"),defineGlobalProperty=__webpack_require__("./node_modules/core-js/internals/define-global-property.js"),copyConstructorProperties=__webpack_require__("./node_modules/core-js/internals/copy-constructor-properties.js"),isForced=__webpack_require__("./node_modules/core-js/internals/is-forced.js");module.exports=function(options,source){var target,key,targetProperty,sourceProperty,descriptor,TARGET=options.target,GLOBAL=options.global,STATIC=options.stat;if(target=GLOBAL?global:STATIC?global[TARGET]||defineGlobalProperty(TARGET,{}):(global[TARGET]||{}).prototype)for(key in source){if(sourceProperty=source[key],targetProperty=options.dontCallGetSet?(descriptor=getOwnPropertyDescriptor(target,key))&&descriptor.value:target[key],!isForced(GLOBAL?key:TARGET+(STATIC?".":"#")+key,options.forced)&&void 0!==targetProperty){if(typeof sourceProperty==typeof targetProperty)continue;copyConstructorProperties(sourceProperty,targetProperty)}(options.sham||targetProperty&&targetProperty.sham)&&createNonEnumerableProperty(sourceProperty,"sham",!0),defineBuiltIn(target,key,sourceProperty,options)}}},"./node_modules/core-js/internals/fails.js":function(module){module.exports=function(exec){try{return!!exec()}catch(error){return!0}}},"./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js");var uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js"),defineBuiltIn=__webpack_require__("./node_modules/core-js/internals/define-built-in.js"),regexpExec=__webpack_require__("./node_modules/core-js/internals/regexp-exec.js"),fails=__webpack_require__("./node_modules/core-js/internals/fails.js"),wellKnownSymbol=__webpack_require__("./node_modules/core-js/internals/well-known-symbol.js"),createNonEnumerableProperty=__webpack_require__("./node_modules/core-js/internals/create-non-enumerable-property.js"),SPECIES=wellKnownSymbol("species"),RegExpPrototype=RegExp.prototype;module.exports=function(KEY,exec,FORCED,SHAM){var SYMBOL=wellKnownSymbol(KEY),DELEGATES_TO_SYMBOL=!fails((function(){var O={};return O[SYMBOL]=function(){return 7},7!=""[KEY](O)})),DELEGATES_TO_EXEC=DELEGATES_TO_SYMBOL&&!fails((function(){var execCalled=!1,re=/a/;return"split"===KEY&&((re={}).constructor={},re.constructor[SPECIES]=function(){return re},re.flags="",re[SYMBOL]=/./[SYMBOL]),re.exec=function(){return execCalled=!0,null},re[SYMBOL](""),!execCalled}));if(!DELEGATES_TO_SYMBOL||!DELEGATES_TO_EXEC||FORCED){var uncurriedNativeRegExpMethod=uncurryThis(/./[SYMBOL]),methods=exec(SYMBOL,""[KEY],(function(nativeMethod,regexp,str,arg2,forceStringMethod){var uncurriedNativeMethod=uncurryThis(nativeMethod),$exec=regexp.exec;return $exec===regexpExec||$exec===RegExpPrototype.exec?DELEGATES_TO_SYMBOL&&!forceStringMethod?{done:!0,value:uncurriedNativeRegExpMethod(regexp,str,arg2)}:{done:!0,value:uncurriedNativeMethod(str,regexp,arg2)}:{done:!1}}));defineBuiltIn(String.prototype,KEY,methods[0]),defineBuiltIn(RegExpPrototype,SYMBOL,methods[1])}SHAM&&createNonEnumerableProperty(RegExpPrototype[SYMBOL],"sham",!0)}},"./node_modules/core-js/internals/freezing.js":function(module,__unused_webpack_exports,__webpack_require__){var fails=__webpack_require__("./node_modules/core-js/internals/fails.js");module.exports=!fails((function(){return Object.isExtensible(Object.preventExtensions({}))}))},"./node_modules/core-js/internals/function-apply.js":function(module,__unused_webpack_exports,__webpack_require__){var NATIVE_BIND=__webpack_require__("./node_modules/core-js/internals/function-bind-native.js"),FunctionPrototype=Function.prototype,apply=FunctionPrototype.apply,call=FunctionPrototype.call;module.exports="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND?call.bind(apply):function(){return call.apply(apply,arguments)})},"./node_modules/core-js/internals/function-bind-context.js":function(module,__unused_webpack_exports,__webpack_require__){var uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js"),aCallable=__webpack_require__("./node_modules/core-js/internals/a-callable.js"),NATIVE_BIND=__webpack_require__("./node_modules/core-js/internals/function-bind-native.js"),bind=uncurryThis(uncurryThis.bind);module.exports=function(fn,that){return aCallable(fn),void 0===that?fn:NATIVE_BIND?bind(fn,that):function(){return fn.apply(that,arguments)}}},"./node_modules/core-js/internals/function-bind-native.js":function(module,__unused_webpack_exports,__webpack_require__){var fails=__webpack_require__("./node_modules/core-js/internals/fails.js");module.exports=!fails((function(){var test=function(){}.bind();return"function"!=typeof test||test.hasOwnProperty("prototype")}))},"./node_modules/core-js/internals/function-bind.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";var uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js"),aCallable=__webpack_require__("./node_modules/core-js/internals/a-callable.js"),isObject=__webpack_require__("./node_modules/core-js/internals/is-object.js"),hasOwn=__webpack_require__("./node_modules/core-js/internals/has-own-property.js"),arraySlice=__webpack_require__("./node_modules/core-js/internals/array-slice.js"),NATIVE_BIND=__webpack_require__("./node_modules/core-js/internals/function-bind-native.js"),$Function=Function,concat=uncurryThis([].concat),join=uncurryThis([].join),factories={},construct=function(C,argsLength,args){if(!hasOwn(factories,argsLength)){for(var list=[],i=0;i]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&'`]|\d{1,2})/g;module.exports=function(matched,str,position,captures,namedCaptures,replacement){var tailPos=position+matched.length,m=captures.length,symbols=SUBSTITUTION_SYMBOLS_NO_NAMED;return void 0!==namedCaptures&&(namedCaptures=toObject(namedCaptures),symbols=SUBSTITUTION_SYMBOLS),replace(replacement,symbols,(function(match,ch){var capture;switch(charAt(ch,0)){case"$":return"$";case"&":return matched;case"`":return stringSlice(str,0,position);case"'":return stringSlice(str,tailPos);case"<":capture=namedCaptures[stringSlice(ch,1,-1)];break;default:var n=+ch;if(0===n)return match;if(n>m){var f=floor(n/10);return 0===f?match:f<=m?void 0===captures[f-1]?charAt(ch,1):captures[f-1]+charAt(ch,1):match}capture=captures[n-1]}return void 0===capture?"":capture}))}},"./node_modules/core-js/internals/global.js":function(module,__unused_webpack_exports,__webpack_require__){var check=function(it){return it&&it.Math==Math&&it};module.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof __webpack_require__.g&&__webpack_require__.g)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has-own-property.js":function(module,__unused_webpack_exports,__webpack_require__){var uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js"),toObject=__webpack_require__("./node_modules/core-js/internals/to-object.js"),hasOwnProperty=uncurryThis({}.hasOwnProperty);module.exports=Object.hasOwn||function hasOwn(it,key){return hasOwnProperty(toObject(it),key)}},"./node_modules/core-js/internals/hidden-keys.js":function(module){module.exports={}},"./node_modules/core-js/internals/host-report-errors.js":function(module,__unused_webpack_exports,__webpack_require__){var global=__webpack_require__("./node_modules/core-js/internals/global.js");module.exports=function(a,b){var console=global.console;console&&console.error&&(1==arguments.length?console.error(a):console.error(a,b))}},"./node_modules/core-js/internals/html.js":function(module,__unused_webpack_exports,__webpack_require__){var getBuiltIn=__webpack_require__("./node_modules/core-js/internals/get-built-in.js");module.exports=getBuiltIn("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(module,__unused_webpack_exports,__webpack_require__){var DESCRIPTORS=__webpack_require__("./node_modules/core-js/internals/descriptors.js"),fails=__webpack_require__("./node_modules/core-js/internals/fails.js"),createElement=__webpack_require__("./node_modules/core-js/internals/document-create-element.js");module.exports=!DESCRIPTORS&&!fails((function(){return 7!=Object.defineProperty(createElement("div"),"a",{get:function(){return 7}}).a}))},"./node_modules/core-js/internals/indexed-object.js":function(module,__unused_webpack_exports,__webpack_require__){var uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js"),fails=__webpack_require__("./node_modules/core-js/internals/fails.js"),classof=__webpack_require__("./node_modules/core-js/internals/classof-raw.js"),$Object=Object,split=uncurryThis("".split);module.exports=fails((function(){return!$Object("z").propertyIsEnumerable(0)}))?function(it){return"String"==classof(it)?split(it,""):$Object(it)}:$Object},"./node_modules/core-js/internals/inherit-if-required.js":function(module,__unused_webpack_exports,__webpack_require__){var isCallable=__webpack_require__("./node_modules/core-js/internals/is-callable.js"),isObject=__webpack_require__("./node_modules/core-js/internals/is-object.js"),setPrototypeOf=__webpack_require__("./node_modules/core-js/internals/object-set-prototype-of.js");module.exports=function($this,dummy,Wrapper){var NewTarget,NewTargetPrototype;return setPrototypeOf&&isCallable(NewTarget=dummy.constructor)&&NewTarget!==Wrapper&&isObject(NewTargetPrototype=NewTarget.prototype)&&NewTargetPrototype!==Wrapper.prototype&&setPrototypeOf($this,NewTargetPrototype),$this}},"./node_modules/core-js/internals/inspect-source.js":function(module,__unused_webpack_exports,__webpack_require__){var uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js"),isCallable=__webpack_require__("./node_modules/core-js/internals/is-callable.js"),store=__webpack_require__("./node_modules/core-js/internals/shared-store.js"),functionToString=uncurryThis(Function.toString);isCallable(store.inspectSource)||(store.inspectSource=function(it){return functionToString(it)}),module.exports=store.inspectSource},"./node_modules/core-js/internals/internal-metadata.js":function(module,__unused_webpack_exports,__webpack_require__){var $=__webpack_require__("./node_modules/core-js/internals/export.js"),uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js"),hiddenKeys=__webpack_require__("./node_modules/core-js/internals/hidden-keys.js"),isObject=__webpack_require__("./node_modules/core-js/internals/is-object.js"),hasOwn=__webpack_require__("./node_modules/core-js/internals/has-own-property.js"),defineProperty=__webpack_require__("./node_modules/core-js/internals/object-define-property.js").f,getOwnPropertyNamesModule=__webpack_require__("./node_modules/core-js/internals/object-get-own-property-names.js"),getOwnPropertyNamesExternalModule=__webpack_require__("./node_modules/core-js/internals/object-get-own-property-names-external.js"),isExtensible=__webpack_require__("./node_modules/core-js/internals/object-is-extensible.js"),uid=__webpack_require__("./node_modules/core-js/internals/uid.js"),FREEZING=__webpack_require__("./node_modules/core-js/internals/freezing.js"),REQUIRED=!1,METADATA=uid("meta"),id=0,setMetadata=function(it){defineProperty(it,METADATA,{value:{objectID:"O"+id++,weakData:{}}})},meta=module.exports={enable:function(){meta.enable=function(){},REQUIRED=!0;var getOwnPropertyNames=getOwnPropertyNamesModule.f,splice=uncurryThis([].splice),test={};test[METADATA]=1,getOwnPropertyNames(test).length&&(getOwnPropertyNamesModule.f=function(it){for(var result=getOwnPropertyNames(it),i=0,length=result.length;iindex;index++)if((result=callFn(iterable[index]))&&isPrototypeOf(ResultPrototype,result))return result;return new Result(!1)}iterator=getIterator(iterable,iterFn)}for(next=iterator.next;!(step=call(next,iterator)).done;){try{result=callFn(step.value)}catch(error){iteratorClose(iterator,"throw",error)}if("object"==typeof result&&result&&isPrototypeOf(ResultPrototype,result))return result}return new Result(!1)}},"./node_modules/core-js/internals/iterator-close.js":function(module,__unused_webpack_exports,__webpack_require__){var call=__webpack_require__("./node_modules/core-js/internals/function-call.js"),anObject=__webpack_require__("./node_modules/core-js/internals/an-object.js"),getMethod=__webpack_require__("./node_modules/core-js/internals/get-method.js");module.exports=function(iterator,kind,value){var innerResult,innerError;anObject(iterator);try{if(!(innerResult=getMethod(iterator,"return"))){if("throw"===kind)throw value;return value}innerResult=call(innerResult,iterator)}catch(error){innerError=!0,innerResult=error}if("throw"===kind)throw value;if(innerError)throw innerResult;return anObject(innerResult),value}},"./node_modules/core-js/internals/iterators-core.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";var IteratorPrototype,PrototypeOfArrayIteratorPrototype,arrayIterator,fails=__webpack_require__("./node_modules/core-js/internals/fails.js"),isCallable=__webpack_require__("./node_modules/core-js/internals/is-callable.js"),create=__webpack_require__("./node_modules/core-js/internals/object-create.js"),getPrototypeOf=__webpack_require__("./node_modules/core-js/internals/object-get-prototype-of.js"),defineBuiltIn=__webpack_require__("./node_modules/core-js/internals/define-built-in.js"),wellKnownSymbol=__webpack_require__("./node_modules/core-js/internals/well-known-symbol.js"),IS_PURE=__webpack_require__("./node_modules/core-js/internals/is-pure.js"),ITERATOR=wellKnownSymbol("iterator"),BUGGY_SAFARI_ITERATORS=!1;[].keys&&("next"in(arrayIterator=[].keys())?(PrototypeOfArrayIteratorPrototype=getPrototypeOf(getPrototypeOf(arrayIterator)))!==Object.prototype&&(IteratorPrototype=PrototypeOfArrayIteratorPrototype):BUGGY_SAFARI_ITERATORS=!0),null==IteratorPrototype||fails((function(){var test={};return IteratorPrototype[ITERATOR].call(test)!==test}))?IteratorPrototype={}:IS_PURE&&(IteratorPrototype=create(IteratorPrototype)),isCallable(IteratorPrototype[ITERATOR])||defineBuiltIn(IteratorPrototype,ITERATOR,(function(){return this})),module.exports={IteratorPrototype:IteratorPrototype,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS}},"./node_modules/core-js/internals/iterators.js":function(module){module.exports={}},"./node_modules/core-js/internals/length-of-array-like.js":function(module,__unused_webpack_exports,__webpack_require__){var toLength=__webpack_require__("./node_modules/core-js/internals/to-length.js");module.exports=function(obj){return toLength(obj.length)}},"./node_modules/core-js/internals/make-built-in.js":function(module,__unused_webpack_exports,__webpack_require__){var fails=__webpack_require__("./node_modules/core-js/internals/fails.js"),isCallable=__webpack_require__("./node_modules/core-js/internals/is-callable.js"),hasOwn=__webpack_require__("./node_modules/core-js/internals/has-own-property.js"),DESCRIPTORS=__webpack_require__("./node_modules/core-js/internals/descriptors.js"),CONFIGURABLE_FUNCTION_NAME=__webpack_require__("./node_modules/core-js/internals/function-name.js").CONFIGURABLE,inspectSource=__webpack_require__("./node_modules/core-js/internals/inspect-source.js"),InternalStateModule=__webpack_require__("./node_modules/core-js/internals/internal-state.js"),enforceInternalState=InternalStateModule.enforce,getInternalState=InternalStateModule.get,defineProperty=Object.defineProperty,CONFIGURABLE_LENGTH=DESCRIPTORS&&!fails((function(){return 8!==defineProperty((function(){}),"length",{value:8}).length})),TEMPLATE=String(String).split("String"),makeBuiltIn=module.exports=function(value,name,options){"Symbol("===String(name).slice(0,7)&&(name="["+String(name).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),options&&options.getter&&(name="get "+name),options&&options.setter&&(name="set "+name),(!hasOwn(value,"name")||CONFIGURABLE_FUNCTION_NAME&&value.name!==name)&&defineProperty(value,"name",{value:name,configurable:!0}),CONFIGURABLE_LENGTH&&options&&hasOwn(options,"arity")&&value.length!==options.arity&&defineProperty(value,"length",{value:options.arity});try{options&&hasOwn(options,"constructor")&&options.constructor?DESCRIPTORS&&defineProperty(value,"prototype",{writable:!1}):value.prototype&&(value.prototype=void 0)}catch(error){}var state=enforceInternalState(value);return hasOwn(state,"source")||(state.source=TEMPLATE.join("string"==typeof name?name:"")),value};Function.prototype.toString=makeBuiltIn((function toString(){return isCallable(this)&&getInternalState(this).source||inspectSource(this)}),"toString")},"./node_modules/core-js/internals/math-trunc.js":function(module){var ceil=Math.ceil,floor=Math.floor;module.exports=Math.trunc||function trunc(x){var n=+x;return(n>0?floor:ceil)(n)}},"./node_modules/core-js/internals/microtask.js":function(module,__unused_webpack_exports,__webpack_require__){var flush,head,last,notify,toggle,node,promise,then,global=__webpack_require__("./node_modules/core-js/internals/global.js"),bind=__webpack_require__("./node_modules/core-js/internals/function-bind-context.js"),getOwnPropertyDescriptor=__webpack_require__("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,macrotask=__webpack_require__("./node_modules/core-js/internals/task.js").set,IS_IOS=__webpack_require__("./node_modules/core-js/internals/engine-is-ios.js"),IS_IOS_PEBBLE=__webpack_require__("./node_modules/core-js/internals/engine-is-ios-pebble.js"),IS_WEBOS_WEBKIT=__webpack_require__("./node_modules/core-js/internals/engine-is-webos-webkit.js"),IS_NODE=__webpack_require__("./node_modules/core-js/internals/engine-is-node.js"),MutationObserver=global.MutationObserver||global.WebKitMutationObserver,document=global.document,process=global.process,Promise=global.Promise,queueMicrotaskDescriptor=getOwnPropertyDescriptor(global,"queueMicrotask"),queueMicrotask=queueMicrotaskDescriptor&&queueMicrotaskDescriptor.value;queueMicrotask||(flush=function(){var parent,fn;for(IS_NODE&&(parent=process.domain)&&parent.exit();head;){fn=head.fn,head=head.next;try{fn()}catch(error){throw head?notify():last=void 0,error}}last=void 0,parent&&parent.enter()},IS_IOS||IS_NODE||IS_WEBOS_WEBKIT||!MutationObserver||!document?!IS_IOS_PEBBLE&&Promise&&Promise.resolve?((promise=Promise.resolve(void 0)).constructor=Promise,then=bind(promise.then,promise),notify=function(){then(flush)}):IS_NODE?notify=function(){process.nextTick(flush)}:(macrotask=bind(macrotask,global),notify=function(){macrotask(flush)}):(toggle=!0,node=document.createTextNode(""),new MutationObserver(flush).observe(node,{characterData:!0}),notify=function(){node.data=toggle=!toggle})),module.exports=queueMicrotask||function(fn){var task={fn:fn,next:void 0};last&&(last.next=task),head||(head=task,notify()),last=task}},"./node_modules/core-js/internals/native-symbol-registry.js":function(module,__unused_webpack_exports,__webpack_require__){var NATIVE_SYMBOL=__webpack_require__("./node_modules/core-js/internals/native-symbol.js");module.exports=NATIVE_SYMBOL&&!!Symbol.for&&!!Symbol.keyFor},"./node_modules/core-js/internals/native-symbol.js":function(module,__unused_webpack_exports,__webpack_require__){var V8_VERSION=__webpack_require__("./node_modules/core-js/internals/engine-v8-version.js"),fails=__webpack_require__("./node_modules/core-js/internals/fails.js");module.exports=!!Object.getOwnPropertySymbols&&!fails((function(){var symbol=Symbol();return!String(symbol)||!(Object(symbol)instanceof Symbol)||!Symbol.sham&&V8_VERSION&&V8_VERSION<41}))},"./node_modules/core-js/internals/native-url.js":function(module,__unused_webpack_exports,__webpack_require__){var fails=__webpack_require__("./node_modules/core-js/internals/fails.js"),wellKnownSymbol=__webpack_require__("./node_modules/core-js/internals/well-known-symbol.js"),IS_PURE=__webpack_require__("./node_modules/core-js/internals/is-pure.js"),ITERATOR=wellKnownSymbol("iterator");module.exports=!fails((function(){var url=new URL("b?a=1&b=2&c=3","http://a"),searchParams=url.searchParams,result="";return url.pathname="c%20d",searchParams.forEach((function(value,key){searchParams.delete("b"),result+=key+value})),IS_PURE&&!url.toJSON||!searchParams.sort||"http://a/c%20d?a=1&c=3"!==url.href||"3"!==searchParams.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!searchParams[ITERATOR]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==result||"x"!==new URL("http://x",void 0).host}))},"./node_modules/core-js/internals/native-weak-map.js":function(module,__unused_webpack_exports,__webpack_require__){var global=__webpack_require__("./node_modules/core-js/internals/global.js"),isCallable=__webpack_require__("./node_modules/core-js/internals/is-callable.js"),inspectSource=__webpack_require__("./node_modules/core-js/internals/inspect-source.js"),WeakMap=global.WeakMap;module.exports=isCallable(WeakMap)&&/native code/.test(inspectSource(WeakMap))},"./node_modules/core-js/internals/new-promise-capability.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";var aCallable=__webpack_require__("./node_modules/core-js/internals/a-callable.js"),PromiseCapability=function(C){var resolve,reject;this.promise=new C((function($$resolve,$$reject){if(void 0!==resolve||void 0!==reject)throw TypeError("Bad Promise constructor");resolve=$$resolve,reject=$$reject})),this.resolve=aCallable(resolve),this.reject=aCallable(reject)};module.exports.f=function(C){return new PromiseCapability(C)}},"./node_modules/core-js/internals/not-a-regexp.js":function(module,__unused_webpack_exports,__webpack_require__){var isRegExp=__webpack_require__("./node_modules/core-js/internals/is-regexp.js"),$TypeError=TypeError;module.exports=function(it){if(isRegExp(it))throw $TypeError("The method doesn't accept regular expressions");return it}},"./node_modules/core-js/internals/number-parse-int.js":function(module,__unused_webpack_exports,__webpack_require__){var global=__webpack_require__("./node_modules/core-js/internals/global.js"),fails=__webpack_require__("./node_modules/core-js/internals/fails.js"),uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js"),toString=__webpack_require__("./node_modules/core-js/internals/to-string.js"),trim=__webpack_require__("./node_modules/core-js/internals/string-trim.js").trim,whitespaces=__webpack_require__("./node_modules/core-js/internals/whitespaces.js"),$parseInt=global.parseInt,Symbol=global.Symbol,ITERATOR=Symbol&&Symbol.iterator,hex=/^[+-]?0x/i,exec=uncurryThis(hex.exec),FORCED=8!==$parseInt(whitespaces+"08")||22!==$parseInt(whitespaces+"0x16")||ITERATOR&&!fails((function(){$parseInt(Object(ITERATOR))}));module.exports=FORCED?function parseInt(string,radix){var S=trim(toString(string));return $parseInt(S,radix>>>0||(exec(hex,S)?16:10))}:$parseInt},"./node_modules/core-js/internals/object-assign.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";var DESCRIPTORS=__webpack_require__("./node_modules/core-js/internals/descriptors.js"),uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js"),call=__webpack_require__("./node_modules/core-js/internals/function-call.js"),fails=__webpack_require__("./node_modules/core-js/internals/fails.js"),objectKeys=__webpack_require__("./node_modules/core-js/internals/object-keys.js"),getOwnPropertySymbolsModule=__webpack_require__("./node_modules/core-js/internals/object-get-own-property-symbols.js"),propertyIsEnumerableModule=__webpack_require__("./node_modules/core-js/internals/object-property-is-enumerable.js"),toObject=__webpack_require__("./node_modules/core-js/internals/to-object.js"),IndexedObject=__webpack_require__("./node_modules/core-js/internals/indexed-object.js"),$assign=Object.assign,defineProperty=Object.defineProperty,concat=uncurryThis([].concat);module.exports=!$assign||fails((function(){if(DESCRIPTORS&&1!==$assign({b:1},$assign(defineProperty({},"a",{enumerable:!0,get:function(){defineProperty(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var A={},B={},symbol=Symbol();return A[symbol]=7,"abcdefghijklmnopqrst".split("").forEach((function(chr){B[chr]=chr})),7!=$assign({},A)[symbol]||"abcdefghijklmnopqrst"!=objectKeys($assign({},B)).join("")}))?function assign(target,source){for(var T=toObject(target),argumentsLength=arguments.length,index=1,getOwnPropertySymbols=getOwnPropertySymbolsModule.f,propertyIsEnumerable=propertyIsEnumerableModule.f;argumentsLength>index;)for(var key,S=IndexedObject(arguments[index++]),keys=getOwnPropertySymbols?concat(objectKeys(S),getOwnPropertySymbols(S)):objectKeys(S),length=keys.length,j=0;length>j;)key=keys[j++],DESCRIPTORS&&!call(propertyIsEnumerable,S,key)||(T[key]=S[key]);return T}:$assign},"./node_modules/core-js/internals/object-create.js":function(module,__unused_webpack_exports,__webpack_require__){var activeXDocument,anObject=__webpack_require__("./node_modules/core-js/internals/an-object.js"),definePropertiesModule=__webpack_require__("./node_modules/core-js/internals/object-define-properties.js"),enumBugKeys=__webpack_require__("./node_modules/core-js/internals/enum-bug-keys.js"),hiddenKeys=__webpack_require__("./node_modules/core-js/internals/hidden-keys.js"),html=__webpack_require__("./node_modules/core-js/internals/html.js"),documentCreateElement=__webpack_require__("./node_modules/core-js/internals/document-create-element.js"),sharedKey=__webpack_require__("./node_modules/core-js/internals/shared-key.js"),IE_PROTO=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(content){return"

No Preview

Sorry, but you either have no stories or none are selected somehow.

  • Please check the Storybook config.
  • Try reloading the page.

If the problem persists, check the browser console, or the terminal you've run Storybook from.

\ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 000000000..add186940 --- /dev/null +++ b/index.html @@ -0,0 +1,59 @@ +Webpack App
\ No newline at end of file diff --git a/main.1ccdb3ec.iframe.bundle.js b/main.1ccdb3ec.iframe.bundle.js new file mode 100644 index 000000000..c472ef01d --- /dev/null +++ b/main.1ccdb3ec.iframe.bundle.js @@ -0,0 +1,562 @@ +(self.webpackChunk_headstorm_foundry_react_ui=self.webpackChunk_headstorm_foundry_react_ui||[]).push([[179],{"./.storybook/decorators.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:function(){return withFoundryContext}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_src_context__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/context/index.tsx");const withFoundryContext=Story=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_src_context__WEBPACK_IMPORTED_MODULE_1__.qx,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Story,null));try{withFoundryContext.displayName="withFoundryContext",withFoundryContext.__docgenInfo={description:"",displayName:"withFoundryContext",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES[".storybook/decorators.tsx#withFoundryContext"]={docgenInfo:withFoundryContext.__docgenInfo,name:"withFoundryContext",path:".storybook/decorators.tsx#withFoundryContext"})}catch(__react_docgen_typescript_loader_error){}},"./.storybook/preview.ts-generated-config-entry.js":function(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__){"use strict";var preview_namespaceObject={};__webpack_require__.r(preview_namespaceObject),__webpack_require__.d(preview_namespaceObject,{__namedExportsOrder:function(){return __namedExportsOrder},decorators:function(){return preview_decorators},parameters:function(){return parameters}});var ClientApi=__webpack_require__("./node_modules/@storybook/client-api/dist/esm/ClientApi.js"),esm=__webpack_require__("./node_modules/storybook-addon-designs/esm/index.js"),dist_esm=__webpack_require__("./node_modules/@storybook/addon-actions/dist/esm/index.js"),colors=__webpack_require__("./src/enums/colors.ts"),decorators=__webpack_require__("./.storybook/decorators.tsx");(0,dist_esm.configureActions)({depth:3,limit:10});const parameters={actions:{argTypesRegex:"^on[A-Z].*"},controls:{matchers:{color:new RegExp(`color|${Object.keys(colors.Z).join("|")}`,"i"),date:/Date$/},sort:"requiredFirst",exclude:/\w+Props|\w+Ref|Styled\w+$/},decorators:[decorators.u],layout:"centered",backgrounds:{default:"background",values:[{name:"background",value:colors.Z.background},{name:"grayDark",value:colors.Z.grayDark},{name:"grayLight",value:colors.Z.grayLight}]},a11y:{element:"#root",config:{},options:{}}},preview_decorators=[esm.Z6],__namedExportsOrder=["parameters","decorators"];function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}Object.keys(preview_namespaceObject).forEach((function(key){var value=preview_namespaceObject[key];switch(key){case"args":return(0,ClientApi.uc)(value);case"argTypes":return(0,ClientApi.v9)(value);case"decorators":return value.forEach((function(decorator){return(0,ClientApi.$9)(decorator,!1)}));case"loaders":return value.forEach((function(loader){return(0,ClientApi.HZ)(loader,!1)}));case"parameters":return(0,ClientApi.h1)(function _objectSpread(target){for(var i=1;ireact__WEBPACK_IMPORTED_MODULE_0__.createElement(DocContainer,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("h1",null,"Welcome to Headstorm UI"),react__WEBPACK_IMPORTED_MODULE_0__.createElement("p",null,'Headstorm UI is a component library which is in it for the long haul. Unlike other bootstrap libraries, it lets you fully customize and theme every piece of it through a straight-forward API, which means you won\'t have to rip out your components and rewrite them once your app is out of the "POC" phase.'),react__WEBPACK_IMPORTED_MODULE_0__.createElement("p",null,"The components you used in the hackathon will be the same ones you use when you're a fortune 500 megacorp."),react__WEBPACK_IMPORTED_MODULE_0__.createElement(FullWidthImage,{src:"./images/ThemingExample.png",alt:"Theming Example"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(FullWidthImage,{src:"./images/ThemeExampleCode.png",alt:"Theming Example Code"}));__webpack_exports__.default={title:"Appendix",parameters:{controls:{hideNoControlsWarning:!0}}},Appendix.parameters=function _objectSpread(target){for(var i=1;i {\n return (\n \n

Welcome to Headstorm UI

\n

\n Headstorm UI is a component library which is in it for the long haul. Unlike other bootstrap\n libraries, it lets you fully customize and theme every piece of it through a\n straight-forward API, which means you won\'t have to rip out your components and rewrite them\n once your app is out of the "POC" phase.\n

\n

\n The components you used in the hackathon will be the same ones you use when you\'re a fortune\n 500 megacorp.\n

\n \n \n
\n );\n}'}},Appendix.parameters);const __namedExportsOrder=["Appendix"]},"./src/components/Avatar/Avatar.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DefaultAvatar:function(){return DefaultAvatar},LabelAvatar:function(){return LabelAvatar},__namedExportsOrder:function(){return __namedExportsOrder}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_storybook_decorators__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./.storybook/decorators.tsx"),_enums_colors__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/enums/colors.ts"),_Avatar__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/components/Avatar/Avatar.tsx");const _excluded=["children"];function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}const DefaultAvatar=args=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Avatar__WEBPACK_IMPORTED_MODULE_3__.ZP,args);DefaultAvatar.args={placeholder:"AA",children:"",size:10,imgURL:"https://source.unsplash.com/collection/19271953",borderRadiusPercent:50,color:_enums_colors__WEBPACK_IMPORTED_MODULE_2__.Z.grayXlight,isLoading:!1};const LabelContainer=styled_components__WEBPACK_IMPORTED_MODULE_4__.ZP.div` + position: absolute; + bottom: 0; + width: 100%; + background-color: rgba(0, 0, 0, 0.5); + color: white; + padding: 8px 0; + text-align: center; +`,LabelAvatar=_ref=>{let{children:children}=_ref,args=_objectWithoutProperties(_ref,_excluded);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Avatar__WEBPACK_IMPORTED_MODULE_3__.ZP,args,react__WEBPACK_IMPORTED_MODULE_0__.createElement(LabelContainer,null,children))};LabelAvatar.args={placeholder:"JS",children:"John Smith",size:10,imgURL:"https://source.unsplash.com/collection/19271953",borderRadiusPercent:10,color:_enums_colors__WEBPACK_IMPORTED_MODULE_2__.Z.grayXlight,isLoading:!1},__webpack_exports__.default={title:"Avatar",component:_Avatar__WEBPACK_IMPORTED_MODULE_3__.ZP,decorators:[_storybook_decorators__WEBPACK_IMPORTED_MODULE_1__.u],argTypes:{borderRadiusPercent:{control:{type:"range",min:0,max:50,step:1}}}},DefaultAvatar.parameters=_objectSpread({storySource:{source:"(args: AvatarProps) => "}},DefaultAvatar.parameters),LabelAvatar.parameters=_objectSpread({storySource:{source:"({\n children,\n ...args\n}: AvatarProps) => (\n \n {children}\n \n)"}},LabelAvatar.parameters);const __namedExportsOrder=["DefaultAvatar","LabelAvatar"]},"./src/components/Button/Button.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{BasicButton:function(){return BasicButton},__namedExportsOrder:function(){return __namedExportsOrder}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_mdi_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@mdi/js/mdi.js"),_enums_variants__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/enums/variants.ts"),_enums_colors__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/enums/colors.ts"),_enums_feedbackTypes__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/enums/feedbackTypes.ts"),_Button__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/components/Button/Button.tsx");function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}const StyledIconContainer=styled_components__WEBPACK_IMPORTED_MODULE_5__.ZP.div` + z-index: 1; + margin-left: 1em; + transition: transform 0.5s ease; + &:hover { + transform: rotate(180deg); + } +`,BasicButton=args=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_4__.ZP,args);BasicButton.args={variant:_enums_variants__WEBPACK_IMPORTED_MODULE_1__.Z.fill,color:_enums_colors__WEBPACK_IMPORTED_MODULE_2__.Z.primaryDark,disabled:!1,feedbackType:_enums_feedbackTypes__WEBPACK_IMPORTED_MODULE_3__.Z.ripple,isLoading:!1,elevation:1,isProcessing:!1,iconPrefix:"none",iconSuffix:"none",children:"Default text",StyledRightIconContainer:StyledIconContainer,leftIconProps:{size:"1em"},rightIconProps:{size:"1em"}};const iconOptions={options:["none","mdiMessage","mdiSend"],mapping:{none:"",mdiMessage:_mdi_js__WEBPACK_IMPORTED_MODULE_6__.Np8,mdiSend:_mdi_js__WEBPACK_IMPORTED_MODULE_6__.NN1},control:{type:"radio"}};__webpack_exports__.default={title:"Button",component:_Button__WEBPACK_IMPORTED_MODULE_4__.ZP,argTypes:{elevation:{control:{type:"range",min:-5,max:5,step:1}},iconPrefix:iconOptions,iconSuffix:iconOptions},parameters:{design:{type:"figma",url:"https://www.figma.com/file/3r2G00brulOwr9j7F6JF59/Generic-UI-Style?node-id=83%3A2"}}},BasicButton.parameters=function _objectSpread(target){for(var i=1;i \n );\n\n const cancelButton = (\n \n Reset\n \n );\n\n const confirmButton = (\n \n Reset form\n \n );\n\n const abortButton = (\n \n Go back\n \n );\n\n const Header = (\n <>\n \n Edit Your Profile\n \n \n \n );\n\n return (\n <>\n \n \n 0}\n errorMessage="First Name cannot be blank"\n id="firstName"\n />\n \n\n \n\n 13}\n key="age"\n >\n 13}\n id="age"\n type="number"\n />\n \n\n 30}\n >\n 30}\n errorMessage="Write a little more"\n isMultiline\n rows={3}\n cols={25}\n />\n \n\n \n\n \n\n \n\n \n\n \n \n {isModalOpen && (\n \n \n You will lose any unsaved changes, are you sure you would like to reset?\n \n \n )}\n \n );\n}'}},ControlledForm.parameters);const __namedExportsOrder=["ControlledForm"]},"./src/components/Examples/GlobalStyles.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Example:function(){return Example},__namedExportsOrder:function(){return __namedExportsOrder}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@storybook/addon-actions/dist/esm/index.js"),_context__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/context/index.tsx"),_Text__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/components/Text/index.ts"),_Card__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/components/Card/index.ts"),_Button__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/components/Button/index.ts"),_enums_colors__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/enums/colors.ts");function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}const Container=styled_components__WEBPACK_IMPORTED_MODULE_7__.ZP.div` + display: flex; + align-items: center; + flex-direction: column; +`,StyledTextContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_7__.ZP)(_Text__WEBPACK_IMPORTED_MODULE_3__.Z.Container)` + margin-bottom: 1rem; +`,StyledCardContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_7__.ZP)(_Card__WEBPACK_IMPORTED_MODULE_4__.Z.Container)` + margin-bottom: 1rem; +`,Example=({"font-family":fontFamily,primary:primary,grayDark:grayDark})=>{const globalStyles=`\n font-family: ${fontFamily};\n `,colors={primary:primary,grayDark:grayDark};return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_context__WEBPACK_IMPORTED_MODULE_2__.qx,{value:{globalStyles:globalStyles,colors:colors,styleConstants:{paddingSmall:"1rem",paddingLarge:"2rem"},analyticsFunction:(componentType,eventType,eventArgs,dateTime,deviceInfo,currentURL,props)=>{(0,_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_1__.action)(`${componentType} ${eventType}`)(componentType,eventType,eventArgs,dateTime,deviceInfo,currentURL,props)}}},react__WEBPACK_IMPORTED_MODULE_0__.createElement(Container,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Text__WEBPACK_IMPORTED_MODULE_3__.Z,{StyledContainer:StyledTextContainer},"Hello!"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Card__WEBPACK_IMPORTED_MODULE_4__.Z,{StyledContainer:StyledCardContainer,elevation:0,header:"Title"},"These components all have a global set of styles applied to them through React's Context API."),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_5__.Z,{onClick:(0,_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_1__.action)("click button")},"Example button")))};Example.args={"font-family":"Arial",primary:_enums_colors__WEBPACK_IMPORTED_MODULE_6__.Z.primary,grayDark:_enums_colors__WEBPACK_IMPORTED_MODULE_6__.Z.grayDark},__webpack_exports__.default={title:"Global styles",argTypes:{"font-family":{options:["Arial","Times New Roman","Monospace","unset"],mapping:{Arial:"Arial,Roboto,sans-serif","Times New Roman":'"Times New Roman",Times,serif',Monospace:'"Lucida Console",Courier,monospace',unset:"unset"},control:{type:"radio"}}}},Example.parameters=function _objectSpread(target){for(var i=1;i {\n const globalStyles = `\n font-family: ${fontFamily};\n `;\n const colors = {\n primary,\n grayDark,\n };\n const showAnalytics = (\n componentType: string,\n eventType: string,\n eventArgs?: React.ChangeEvent,\n dateTime?: Date,\n deviceInfo?: Record,\n currentURL?: string,\n props?: any,\n ): void => {\n action(`${componentType} ${eventType}`)(\n componentType,\n eventType,\n eventArgs,\n dateTime,\n deviceInfo,\n currentURL,\n props,\n );\n };\n const styleConstants = {\n paddingSmall: '1rem',\n paddingLarge: '2rem',\n };\n return (\n \n \n Hello!\n \n These components all have a global set of styles applied to them through React's Context\n API.\n \n \n \n \n );\n}"}},Example.parameters);const __namedExportsOrder=["Example"]},"./src/components/InteractionFeedback/InteractionFeedback.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Splash:function(){return Splash},__namedExportsOrder:function(){return __namedExportsOrder}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@storybook/addon-actions/dist/esm/index.js"),_InteractionFeedback__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/components/InteractionFeedback/InteractionFeedback.tsx"),_enums_colors__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/enums/colors.ts"),_Text__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/components/Text/index.ts");function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}const InteractionInnerContainer=styled_components__WEBPACK_IMPORTED_MODULE_5__.ZP.div` + height: 100vh; + width: 100vw; + display: flex; + align-items: center; + justify-content: center; +`,Splash=({startingRadius:startingRadius,entranceOpacity:entranceOpacity,endingRadius:endingRadius,exitOpacity:exitOpacity,mass:mass,tension:tension,friction:friction,clamp:clamp,color:color})=>{const transitionProps={from:{r:`${startingRadius}`,opacity:entranceOpacity},enter:{r:`${endingRadius}`,opacity:exitOpacity},config:{mass:mass,tension:tension,friction:friction,clamp:clamp}},interpolationFunctions={r:r=>r.to((val=>`${Math.abs(parseFloat(val)).toFixed(1)}`)),opacity:opacity=>opacity.to((val=>val.toFixed(2)))};return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_InteractionFeedback__WEBPACK_IMPORTED_MODULE_2__.Z,{color:color,interpolationFunctions:interpolationFunctions,transitionProps:transitionProps},react__WEBPACK_IMPORTED_MODULE_0__.createElement(InteractionInnerContainer,{onClick:(0,_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_1__.action)("button-click")},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Text__WEBPACK_IMPORTED_MODULE_4__.Z,null,"Click Anywhere!")))};Splash.args={entranceOpacity:.5,exitOpacity:0,startingRadius:0,endingRadius:100,mass:90,tension:1e3,friction:20,clamp:!0,color:_enums_colors__WEBPACK_IMPORTED_MODULE_3__.Z.grayDark},__webpack_exports__.default={title:"InteractionFeedback",argTypes:{entranceOpacity:{control:{type:"range",min:0,max:1,step:.05,label:"Circle entrance opacity"}},exitOpacity:{control:{type:"range",min:0,max:1,step:.05,label:"Circle exit opacity"}},startingRadius:{control:{type:"range",min:0,max:100,step:1,label:"Starting circle radius"}},endingRadius:{control:{type:"range",min:0,max:100,step:1,label:"Ending circle radius"}},mass:{control:{type:"range",min:1,max:100,step:1}},tension:{control:{type:"range",min:50,max:1e3,step:50}},friction:{control:{type:"range",min:1,max:100,step:1}}},parameters:{design:{type:"figma",url:"https://www.figma.com/file/3r2G00brulOwr9j7F6JF59/Generic-UI-Style?node-id=102%3A88"}}},Splash.parameters=function _objectSpread(target){for(var i=1;i {\n const transitionProps = {\n from: {\n r: `${startingRadius}`,\n opacity: entranceOpacity,\n },\n enter: {\n r: `${endingRadius}`,\n opacity: exitOpacity,\n },\n config: {\n mass,\n tension,\n friction,\n clamp,\n },\n };\n const interpolationFunctions = {\n r: (r: any) => r.to((val: string) => `${Math.abs(parseFloat(val)).toFixed(1)}`),\n opacity: (opacity: any) => opacity.to((val: number) => val.toFixed(2)),\n };\n return (\n \n \n Click Anywhere!\n \n \n );\n}"}},Splash.parameters);const __namedExportsOrder=["Splash"]},"./src/components/Label/Label.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{BasicLabel:function(){return BasicLabel},__namedExportsOrder:function(){return __namedExportsOrder}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_enums_colors__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/enums/colors.ts"),_Label__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/components/Label/Label.tsx"),_TextInput__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/components/TextInput/index.ts");const _excluded=["htmlFor"];function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}const BasicLabel=_ref=>{let{htmlFor:htmlFor}=_ref,args=_objectWithoutProperties(_ref,_excluded);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Label__WEBPACK_IMPORTED_MODULE_2__.ZP,args,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TextInput__WEBPACK_IMPORTED_MODULE_3__.Z,{id:htmlFor,placeholder:"placeholder"}))};BasicLabel.args={labelText:"This is the label text",color:"grayDark",colorValid:"success",colorInvalid:"destructive",isRequired:!1,htmlFor:"default"};const colorOptions={options:Object.keys(_enums_colors__WEBPACK_IMPORTED_MODULE_1__.Z),mapping:_enums_colors__WEBPACK_IMPORTED_MODULE_1__.Z,control:{type:"select"}};__webpack_exports__.default={title:"Label",component:_Label__WEBPACK_IMPORTED_MODULE_2__.ZP,argTypes:{color:colorOptions,colorValid:colorOptions,colorInvalid:colorOptions,isValid:{options:[!0,!1,void 0],control:{type:"select"}}},parameters:{design:{type:"figma",url:"https://www.figma.com/file/3r2G00brulOwr9j7F6JF59/Generic-UI-Style?node-id=102%3A88"}}},BasicLabel.parameters=function _objectSpread(target){for(var i=1;i {\n return (\n \n );\n}'}},BasicLabel.parameters);const __namedExportsOrder=["BasicLabel"]},"./src/components/Modal/Modal.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:function(){return Default},__namedExportsOrder:function(){return __namedExportsOrder}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_enums_colors__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/enums/colors.ts"),_Modal__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/components/Modal/Modal.tsx"),_Button_Button__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/components/Button/Button.tsx"),_Card__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/components/Card/index.ts"),_storybook_decorators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./.storybook/decorators.tsx");const _excluded=["backgroundBlur","onClickOutside function","onClose"];function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}const Background=styled_components__WEBPACK_IMPORTED_MODULE_6__.ZP.div` + background-image: url(https://source.unsplash.com/weekly?landscape); + background-size: cover; + display: flex; + justify-content: center; + align-items: center; + + height: 100vh; + width: 100vw; +`,Default=_ref=>{let{backgroundBlur:backgroundBlur,"onClickOutside function":onClickOutside,onClose:onClose}=_ref,args=_objectWithoutProperties(_ref,_excluded);const[isOpen,setIsOpen]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!0),handleClose=()=>{setIsOpen(!1),onClose()},modalRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(),customCloseButtonClick=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>{modalRef.current&&modalRef.current.close()}),[modalRef]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Background,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Card__WEBPACK_IMPORTED_MODULE_4__.Z,{elevation:1,header:"Use this button to open the modal again"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button_Button__WEBPACK_IMPORTED_MODULE_3__.ZP,{color:_enums_colors__WEBPACK_IMPORTED_MODULE_1__.Z.primaryDark,StyledContainer:_Button_Button__WEBPACK_IMPORTED_MODULE_3__.ZP.Container,onClick:()=>setIsOpen(!0)},"Open modal")),isOpen&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Modal__WEBPACK_IMPORTED_MODULE_2__.Z,_extends({},args,{backgroundBlur:`${backgroundBlur}rem`,onClickOutside:onClickOutside?handleClose:void 0,onClose:handleClose,ref:modalRef}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Card__WEBPACK_IMPORTED_MODULE_4__.Z,{header:"Hello world!",footer:react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button_Button__WEBPACK_IMPORTED_MODULE_3__.ZP,{color:_enums_colors__WEBPACK_IMPORTED_MODULE_1__.Z.primaryDark,onClick:customCloseButtonClick},"Okay..."),elevation:1},"The content of the modal (the card and everything inside it) is customizable. The close × is built-in but can be easily overwritten. It is the very model of a modern major React modal.")))};Default.args={closeButtonAttachment:"inside",backgroundDarkness:.5,backgroundBlur:.5,"onClickOutside function":!0},__webpack_exports__.default={title:"Modal",component:_Modal__WEBPACK_IMPORTED_MODULE_2__.Z,argTypes:{closeButtonAttachment:{options:["inside","outside","corner"],control:{type:"select"}},backgroundDarkness:{control:{type:"range",min:0,max:1,step:.05}},backgroundBlur:{control:{type:"range",min:0,max:5,step:.1}}},decorators:[_storybook_decorators__WEBPACK_IMPORTED_MODULE_5__.u],parameters:{layout:"fullscreen",design:{type:"figma",url:"https://www.figma.com/file/3r2G00brulOwr9j7F6JF59/Generic-UI-Style?node-id=102%3A14"}}},Default.parameters=function _objectSpread(target){for(var i=1;i {\n const [isOpen, setIsOpen] = useState(true);\n\n const handleClose = () => {\n setIsOpen(false);\n onClose();\n };\n\n const modalRef = useRef();\n\n const customCloseButtonClick = useCallback(() => {\n if (modalRef.current) {\n modalRef.current.close();\n }\n }, [modalRef]);\n\n return (\n \n \n setIsOpen(true)}\n >\n Open modal\n \n \n {isOpen && (\n \n \n Okay...\n \n }\n elevation={1}\n >\n The content of the modal (the card and everything inside it) is customizable. The close\n × is built-in but can be easily overwritten. It is the very model of a modern\n major React modal.\n \n \n )}\n \n );\n}'}},Default.parameters);const __namedExportsOrder=["Default"]},"./src/components/Progress/Progress.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{BasicProgress:function(){return BasicProgress},__namedExportsOrder:function(){return __namedExportsOrder}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_Progress__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/components/Progress/Progress.tsx");function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}const BasicProgress=args=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Progress__WEBPACK_IMPORTED_MODULE_1__.ZP,args);__webpack_exports__.default={title:"Progress",component:_Progress__WEBPACK_IMPORTED_MODULE_1__.ZP,parameters:{}},BasicProgress.parameters=function _objectSpread(target){for(var i=1;i "}},BasicProgress.parameters);const __namedExportsOrder=["BasicProgress"]},"./src/components/RangeSlider/RangeSlider.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ColorPicker:function(){return ColorPicker},Default:function(){return Default},Rating:function(){return Rating},__namedExportsOrder:function(){return __namedExportsOrder}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),polished__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/polished/dist/polished.esm.js"),_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@storybook/addon-actions/dist/esm/index.js"),_storybook_decorators__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./.storybook/decorators.tsx"),_enums_fonts__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/enums/fonts.ts"),_enums_colors__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/enums/colors.ts"),_RangeSlider__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/components/RangeSlider/RangeSlider.tsx"),_Card__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/components/Card/index.ts");function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;i{const[val,setVal]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(value);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{setVal(value)}),[value]);const markersSelection=markers,markersArray=[];if("all values"===markersSelection)for(let i=min;i<=max;i++)markersArray.push(markerLabels?{value:i,label:`${i}`}:i);else if("middle value"===markersSelection){const midpoint=(min+max)/2;markersArray.push(markerLabels?{value:midpoint,label:`${midpoint}`}:midpoint)}return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Row,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_RangeSlider__WEBPACK_IMPORTED_MODULE_5__.ZP,{disabled:disabled,readonly:readonly,showDomainLabels:showDomainLabels,showSelectedRange:showSelectedRange,animated:animated,min:min,max:max,debounceInterval:debounceInterval,onChange:newVal=>{(0,_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_1__.action)("onChange")(newVal),setVal(Math.round(newVal))},dragHandleAttachment:dragHandleAttachment,values:[{value:val,label:val}],markers:markersArray}))};Default.args={value:1,min:0,max:5,markers:"none","use marker labels":!1,disabled:!1,readonly:!1,showDomainLabels:!1,showHandleLabels:!0,showSelectedRange:!0,dragHandleAttachment:"value",debounceInterval:10,animated:!0};const Rating=({value:value,disabled:disabled,showDomainLabels:showDomainLabels,showSelectedRange:showSelectedRange,min:min,max:max})=>{const[val,setVal]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(value);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Row,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,"ReactJS:    "),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_RangeSlider__WEBPACK_IMPORTED_MODULE_5__.ZP,{StyledSlideRail:StyledSlideRail,disabled:disabled,showDomainLabels:showDomainLabels,showSelectedRange:showSelectedRange,min:min,max:max,onChange:newVal=>{(0,_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_1__.action)("onChange")(newVal),setVal(Math.round(newVal))},values:[{value:val,label:skillLabels[Math.round(val)],color:skillColors[Math.round(val)]}]}))};Rating.args={value:0,disabled:!1,showDomainLabels:!1,showSelectedRange:!1,min:0,max:5};const ColorPicker=({hue:hue,lightness:lightness,saturation:saturation,disabled:disabled,showDomainLabels:showDomainLabels,debounceInterval:debounceInterval})=>{const[hue_,setHue]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(hue),[sat,setSat]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(saturation),[light,setLight]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(lightness);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{setHue(hue_)}),[hue_]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{setSat(saturation)}),[saturation]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{setLight(lightness)}),[lightness]);const allHues=Array.from({length:360},((_,i)=>i)).map((num=>`hsl(${num}, ${sat}%, ${light}%)`)),allSats=[`hsl(${hue_}, 0%, ${light}%)`,`hsl(${hue_}, 100%, ${light}%`],allLights=[`hsl(${hue_}, ${sat}%, 10%)`,`hsl(${hue_}, ${sat}%, 90%)`];return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Card__WEBPACK_IMPORTED_MODULE_6__.Z,{elevation:2,StyledHeader:_Card__WEBPACK_IMPORTED_MODULE_6__.Z.NoPaddingHeader,header:react__WEBPACK_IMPORTED_MODULE_0__.createElement(ColorPreview,{style:{backgroundColor:`hsl(${hue_},${sat}%,${light}%)`,color:(0,polished__WEBPACK_IMPORTED_MODULE_8__.XV)(`hsl(${hue_},${sat}%,${light}%)`)}},(0,polished__WEBPACK_IMPORTED_MODULE_8__.pW)({hue:hue_,saturation:sat/100,lightness:light/100}))},react__WEBPACK_IMPORTED_MODULE_0__.createElement(Row,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,"H:   "),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_RangeSlider__WEBPACK_IMPORTED_MODULE_5__.ZP,{StyledSlideRail:(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(((props,ref)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_RangeSlider__WEBPACK_IMPORTED_MODULE_5__.$g,_extends({ref:ref},props,{style:{backgroundImage:`linear-gradient(to right, ${allHues.join(", ")})`}})))),disabled:disabled,showDomainLabels:showDomainLabels,showSelectedRange:!1,min:0,max:360,debounceInterval:debounceInterval,onDebounceChange:val=>{(0,_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_1__.action)("onDebounceChange hue")(val),setHue(Math.round(val))},values:[{value:hue_,label:hue_,color:_enums_colors__WEBPACK_IMPORTED_MODULE_4__.Z.grayLight}]})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Row,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,"S:   "),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_RangeSlider__WEBPACK_IMPORTED_MODULE_5__.ZP,{StyledSlideRail:(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(((props,ref)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_RangeSlider__WEBPACK_IMPORTED_MODULE_5__.$g,_extends({ref:ref},props,{style:{backgroundImage:`linear-gradient(to right, ${allSats.join(", ")})`}})))),min:0,max:100,debounceInterval:debounceInterval,onDebounceChange:val=>{(0,_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_1__.action)("onDebounceChange saturation")(val),setSat(Math.round(val))},showDomainLabels:!1,showSelectedRange:!1,values:[{value:sat,label:sat,color:_enums_colors__WEBPACK_IMPORTED_MODULE_4__.Z.grayLight}]})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Row,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,"L:   "),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_RangeSlider__WEBPACK_IMPORTED_MODULE_5__.ZP,{StyledSlideRail:(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(((props,ref)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_RangeSlider__WEBPACK_IMPORTED_MODULE_5__.$g,_extends({ref:ref},props,{style:{backgroundImage:`linear-gradient(to right, ${allLights.join(", ")})`}})))),min:0,max:100,debounceInterval:debounceInterval,onDebounceChange:val=>{(0,_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_1__.action)("onDebounceChange lightness")(val),setLight(Math.round(val))},showDomainLabels:!1,showSelectedRange:!1,values:[{value:light,label:light,color:_enums_colors__WEBPACK_IMPORTED_MODULE_4__.Z.grayLight}]})))};ColorPicker.args={hue:0,saturation:50,lightness:50,disabled:!1,showDomainLabels:!1,debounceInterval:10},__webpack_exports__.default={title:"RangeSlider",argTypes:{value:{control:{type:"range",min:0,max:5,step:1}},min:{control:{type:"range",min:-10,max:10,step:1}},max:{control:{type:"range",min:-10,max:10,step:1}},debounceInterval:{control:{type:"range",min:0,max:100,step:1}},markers:{options:["none","all values","middle value"],control:{type:"radio"}},hue:{control:{type:"range",min:0,max:360,step:1}},saturation:{control:{type:"range",min:0,max:100,step:1}},lightness:{control:{type:"range",min:0,max:100,step:1}},dragHandleAttachment:{control:{type:"radio"},options:["mouse","value"]}},decorators:[_storybook_decorators__WEBPACK_IMPORTED_MODULE_2__.u],parameters:{design:{type:"figma",url:"https://www.figma.com/file/3r2G00brulOwr9j7F6JF59/Generic-UI-Style?node-id=126%3A2"}}},Default.parameters=_objectSpread({storySource:{source:"({\n value,\n markers,\n 'use marker labels': markerLabels,\n disabled,\n showDomainLabels,\n showSelectedRange,\n min,\n max,\n dragHandleAttachment,\n readonly,\n debounceInterval,\n animated,\n}: DefaultProps) => {\n const [val, setVal] = useState(value);\n\n useEffect(() => {\n setVal(value);\n }, [value]);\n\n const markersSelection = markers;\n const markersArray: Array = [];\n if (markersSelection === 'all values') {\n for (let i = min; i <= max; i++) {\n markersArray.push(markerLabels ? { value: i, label: `${i}` } : i);\n }\n } else if (markersSelection === 'middle value') {\n const midpoint = (min + max) / 2;\n markersArray.push(markerLabels ? { value: midpoint, label: `${midpoint}` } : midpoint);\n }\n\n return (\n \n {\n action('onChange')(newVal);\n setVal(Math.round(newVal));\n }}\n dragHandleAttachment={dragHandleAttachment}\n values={[{ value: val, label: val }]}\n markers={markersArray as RangeSliderProps['markers']}\n />\n \n );\n}"}},Default.parameters),Rating.parameters=_objectSpread({storySource:{source:"({\n value,\n disabled,\n showDomainLabels,\n showSelectedRange,\n min,\n max,\n}: RatingProps) => {\n const [val, setVal] = useState(value);\n\n return (\n \n ReactJS:    \n {\n action('onChange')(newVal);\n setVal(Math.round(newVal));\n }}\n values={[\n {\n value: val,\n label: skillLabels[Math.round(val)],\n color: skillColors[Math.round(val)],\n },\n ]}\n />\n \n );\n}"}},Rating.parameters),ColorPicker.parameters=_objectSpread({storySource:{source:"({\n hue,\n lightness,\n saturation,\n disabled,\n showDomainLabels,\n debounceInterval,\n}: ColorPickerProps) => {\n const [hue_, setHue] = useState(hue);\n const [sat, setSat] = useState(saturation);\n const [light, setLight] = useState(lightness);\n\n useEffect(() => {\n setHue(hue_);\n }, [hue_]);\n\n useEffect(() => {\n setSat(saturation);\n }, [saturation]);\n\n useEffect(() => {\n setLight(lightness);\n }, [lightness]);\n\n const allHues = Array.from({ length: 360 }, (_, i) => i).map(\n num => `hsl(${num}, ${sat}%, ${light}%)`,\n );\n const allSats = [`hsl(${hue_}, 0%, ${light}%)`, `hsl(${hue_}, 100%, ${light}%`];\n const allLights = [`hsl(${hue_}, ${sat}%, 10%)`, `hsl(${hue_}, ${sat}%, 90%)`];\n\n return (\n \n {toColorString({\n hue: hue_,\n saturation: sat / 100,\n lightness: light / 100,\n })}\n \n }\n >\n \n H:   \n (\n }\n {...props}\n style={{\n backgroundImage: `linear-gradient(to right, ${allHues.join(', ')})`,\n }}\n />\n ))}\n disabled={disabled}\n showDomainLabels={showDomainLabels}\n showSelectedRange={false}\n min={0}\n max={360}\n debounceInterval={debounceInterval}\n onDebounceChange={val => {\n action('onDebounceChange hue')(val);\n setHue(Math.round(val));\n }}\n values={[\n {\n value: hue_,\n label: hue_,\n color: colors.grayLight,\n },\n ]}\n />\n \n \n S:   \n (\n }\n {...props}\n style={{\n backgroundImage: `linear-gradient(to right, ${allSats.join(', ')})`,\n }}\n />\n ))}\n min={0}\n max={100}\n debounceInterval={debounceInterval}\n onDebounceChange={val => {\n action('onDebounceChange saturation')(val);\n setSat(Math.round(val));\n }}\n showDomainLabels={false}\n showSelectedRange={false}\n values={[\n {\n value: sat,\n label: sat,\n color: colors.grayLight,\n },\n ]}\n />\n \n \n L:   \n (\n \n ))}\n min={0}\n max={100}\n debounceInterval={debounceInterval}\n onDebounceChange={val => {\n action('onDebounceChange lightness')(val);\n setLight(Math.round(val));\n }}\n showDomainLabels={false}\n showSelectedRange={false}\n values={[\n {\n value: light,\n label: light,\n color: colors.grayLight,\n },\n ]}\n />\n \n \n );\n}"}},ColorPicker.parameters);const __namedExportsOrder=["Default","Rating","ColorPicker"]},"./src/components/Skeleton/Skeleton.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{LoadingProfileExample:function(){return LoadingProfileExample},__namedExportsOrder:function(){return __namedExportsOrder}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_mdi_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@mdi/js/mdi.js"),_storybook_decorators__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./.storybook/decorators.tsx"),_enums_colors__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/enums/colors.ts"),_Skeleton__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/components/Skeleton/Skeleton.tsx"),_index__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/index.ts");function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}const HorizontalFlexBody=(0,styled_components__WEBPACK_IMPORTED_MODULE_5__.ZP)(_index__WEBPACK_IMPORTED_MODULE_4__.Zb.Body)` + display: flex; + gap: 1rem; + align-items: flex-start; + flex-flow: row nowrap; +`,PhotoContainer=styled_components__WEBPACK_IMPORTED_MODULE_5__.ZP.div` + border-radius: 50%; + overflow: hidden; +`,ProfilePhoto=styled_components__WEBPACK_IMPORTED_MODULE_5__.ZP.div` + width: 5rem; + height: 5rem; + background-image: url('https://source.unsplash.com/collection/19271953'); + background-size: cover; + background-repeat: no-repeat; +`,ProfileLine=(0,styled_components__WEBPACK_IMPORTED_MODULE_5__.ZP)(_Skeleton__WEBPACK_IMPORTED_MODULE_3__.ZP.Container)` + margin-bottom: 0.5rem; + display: inline-block; +`,Name=(0,styled_components__WEBPACK_IMPORTED_MODULE_5__.ZP)(_index__WEBPACK_IMPORTED_MODULE_4__.xv.Container)` + font-weight: bold; + font-size: 1.125rem; +`,LoadingProfileExample=({isLoading:isLoading,color:color})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_index__WEBPACK_IMPORTED_MODULE_4__.Zb,{StyledBody:HorizontalFlexBody,elevation:0,footer:react__WEBPACK_IMPORTED_MODULE_0__.createElement(_index__WEBPACK_IMPORTED_MODULE_4__.zx,{isLoading:isLoading,onClick:()=>{}},"Add to contacts")},react__WEBPACK_IMPORTED_MODULE_0__.createElement(PhotoContainer,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Skeleton__WEBPACK_IMPORTED_MODULE_3__.ZP,{isLoading:isLoading,color:color},react__WEBPACK_IMPORTED_MODULE_0__.createElement(ProfilePhoto,null))),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Skeleton__WEBPACK_IMPORTED_MODULE_3__.ZP,{isLoading:isLoading,color:color,StyledContainer:ProfileLine},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_index__WEBPACK_IMPORTED_MODULE_4__.xv,{StyledContainer:Name},"Jane Doe")),react__WEBPACK_IMPORTED_MODULE_0__.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Skeleton__WEBPACK_IMPORTED_MODULE_3__.ZP,{isLoading:isLoading,color:color,StyledContainer:ProfileLine},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_index__WEBPACK_IMPORTED_MODULE_4__.xv,null,"Master of Ceremonies")),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_index__WEBPACK_IMPORTED_MODULE_4__.iz,null),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_index__WEBPACK_IMPORTED_MODULE_4__.xv,{color:_enums_colors__WEBPACK_IMPORTED_MODULE_2__.Z.success,isLoading:isLoading,iconPrefix:_mdi_js__WEBPACK_IMPORTED_MODULE_6__.yIv},"214-555-1234")));LoadingProfileExample.args={color:_enums_colors__WEBPACK_IMPORTED_MODULE_2__.Z.grayLight,children:"Default text",isLoading:!0},__webpack_exports__.default={title:"Skeleton",component:_Skeleton__WEBPACK_IMPORTED_MODULE_3__.ZP,decorators:[_storybook_decorators__WEBPACK_IMPORTED_MODULE_1__.u],parameters:{}},LoadingProfileExample.parameters=function _objectSpread(target){for(var i=1;i (\n {}}>\n Add to contacts\n \n }\n >\n \n \n \n \n \n
\n \n Jane Doe\n \n
\n \n Master of Ceremonies\n \n \n \n 214-555-1234\n \n
\n \n)"}},LoadingProfileExample.parameters);const __namedExportsOrder=["LoadingProfileExample"]},"./src/components/Spotlight/Spotlight.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AnimatedSpotlight:function(){return AnimatedSpotlight},__namedExportsOrder:function(){return __namedExportsOrder}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_mdi_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@mdi/js/mdi.js"),styled_components__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_storybook_decorators__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./.storybook/decorators.tsx"),_Spotlight__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/components/Spotlight/Spotlight.tsx"),_index__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/index.ts");function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i{const[currStep,setStep]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(0),[buttonRef,setButtonRef]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(),[cardRef,setCardRef]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(),[menuRef,setMenuRef]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(),[tourStarted,setTour]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),stepOptions=[null,menuRef,cardRef,buttonRef],messages=[{title:"Welcome to the tutorial!",subtitle:"targetElement is null for this part of the tour, so nothing is highlighted!"},{title:"This is a kebab menu.",subtitle:""},{title:"This is the whole card",subtitle:""},{title:"Press this button to restart the tour!",subtitle:"(you already knew that though)"}],lastStep=currStep===stepOptions.length-1;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_index__WEBPACK_IMPORTED_MODULE_3__.Zb,{StyledHeader:Header,containerRef:setCardRef,header:react__WEBPACK_IMPORTED_MODULE_0__.createElement(_index__WEBPACK_IMPORTED_MODULE_3__.zx,{containerRef:setMenuRef,iconSuffix:_mdi_js__WEBPACK_IMPORTED_MODULE_5__.SXi,variant:_index__WEBPACK_IMPORTED_MODULE_3__.oW.text,color:"black"}),footer:react__WEBPACK_IMPORTED_MODULE_0__.createElement(_index__WEBPACK_IMPORTED_MODULE_3__.zx,{onClick:()=>{setTour(!0)},containerRef:setButtonRef,color:_index__WEBPACK_IMPORTED_MODULE_3__.O9.tertiary},"Start tour")},"There are a few items in this card we can talk about!"),tourStarted&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Spotlight__WEBPACK_IMPORTED_MODULE_2__.Z,_extends({},args,{StyledAnnotation:Annotation,targetElement:stepOptions[currStep]}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_index__WEBPACK_IMPORTED_MODULE_3__.xv,{color:"white",containerProps:{as:"h1",style:{fontSize:"2em"}}},messages[currStep].title),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_index__WEBPACK_IMPORTED_MODULE_3__.xv,{color:"white",containerProps:{style:{fontWeight:"700"}}},messages[currStep].subtitle),react__WEBPACK_IMPORTED_MODULE_0__.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_0__.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_index__WEBPACK_IMPORTED_MODULE_3__.zx,{color:_index__WEBPACK_IMPORTED_MODULE_3__.O9.background,iconSuffix:_mdi_js__WEBPACK_IMPORTED_MODULE_5__.DDS,variant:_index__WEBPACK_IMPORTED_MODULE_3__.oW.outline,onClick:()=>{setStep(0),setTour(!1)}},"Skip")," ",react__WEBPACK_IMPORTED_MODULE_0__.createElement(_index__WEBPACK_IMPORTED_MODULE_3__.zx,{StyledContainer:NextButtonContainer,iconSuffix:lastStep?_mdi_js__WEBPACK_IMPORTED_MODULE_5__.YKm:_mdi_js__WEBPACK_IMPORTED_MODULE_5__.QYt,elevation:1,color:lastStep?_index__WEBPACK_IMPORTED_MODULE_3__.O9.secondaryDark:_index__WEBPACK_IMPORTED_MODULE_3__.O9.primaryDark,onClick:()=>{setStep((step=>step>=stepOptions.length-1?(setTour(!1),0):step+1))}},lastStep?"I got it":"Next")))};AnimatedSpotlight.args={padding:12,shape:"rounded box",animateTargetChanges:!0,backgroundDarkness:.3,backgroundBlur:"0.25rem",cornerRadius:12},__webpack_exports__.default={title:"Spotlight",component:_Spotlight__WEBPACK_IMPORTED_MODULE_2__.Z,decorators:[_storybook_decorators__WEBPACK_IMPORTED_MODULE_1__.u],parameters:{}},AnimatedSpotlight.parameters=function _objectSpread(target){for(var i=1;i) => {\n const [currStep, setStep] = useState(0);\n const [buttonRef, setButtonRef] = useState();\n const [cardRef, setCardRef] = useState();\n const [menuRef, setMenuRef] = useState();\n const [tourStarted, setTour] = useState(false);\n\n const stepOptions = [null, menuRef, cardRef, buttonRef];\n const messages = [\n {\n title: 'Welcome to the tutorial!',\n subtitle: 'targetElement is null for this part of the tour, so nothing is highlighted!',\n },\n { title: 'This is a kebab menu.', subtitle: '' },\n { title: 'This is the whole card', subtitle: '' },\n { title: 'Press this button to restart the tour!', subtitle: '(you already knew that though)' },\n ];\n\n const goNext = () => {\n setStep(step => {\n if (step >= stepOptions.length - 1) {\n setTour(false);\n return 0;\n }\n return step + 1;\n });\n };\n\n const lastStep = currStep === stepOptions.length - 1;\n\n return (\n <>\n \n }\n footer={\n {\n setTour(true);\n }}\n \n // @ts-ignore - our ref types don't like getting a set state dispatch function\n containerRef={setButtonRef}\n color={colors.tertiary}\n >\n Start tour\n \n }\n >\n There are a few items in this card we can talk about!\n \n {tourStarted && (\n \n \n {messages[currStep].title}\n \n \n {messages[currStep].subtitle}\n \n
\n
\n {\n setStep(0);\n setTour(false);\n }}\n >\n Skip\n \n  \n {\n goNext();\n }}\n >\n {lastStep ? 'I got it' : 'Next'}\n \n
\n )}\n \n );\n}"}},AnimatedSpotlight.parameters);const __namedExportsOrder=["AnimatedSpotlight"]},"./src/components/Table/Table.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:function(){return Default},Groups:function(){return Groups},__namedExportsOrder:function(){return __namedExportsOrder}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_mdi_react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@mdi/react/Icon.js"),_mdi_react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_mdi_react__WEBPACK_IMPORTED_MODULE_1__),_mdi_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@mdi/js/mdi.js"),faker__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/faker/index.js"),_Table__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/components/Table/Table.tsx"),_Checkbox_Checkbox__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/components/Checkbox/Checkbox.tsx"),_enums_checkboxTypes__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/enums/checkboxTypes.ts");const _excluded=["Selection width","Name width","Title width","Address width","Notes width","Use default expansion column","groupLabelPosition","sortGroups","areGroupsCollapsible","useCustomLabel"];function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;ireact__WEBPACK_IMPORTED_MODULE_0__.createElement(_Checkbox_Checkbox__WEBPACK_IMPORTED_MODULE_4__.ZP,{checked:!isCollapsed,onClick:onClick,checkboxType:_enums_checkboxTypes__WEBPACK_IMPORTED_MODULE_5__.D.check,inputProps:{onChange:()=>{}}}),ActionCellContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.ZP)(_Table__WEBPACK_IMPORTED_MODULE_3__.ZP.Cell)` + cursor: pointer; + user-select: none; + font-size: 1rem; + &:hover { + color: red; + } +`,NoteField=styled_components__WEBPACK_IMPORTED_MODULE_6__.ZP.textarea` + width: 100%; + height: 100%; + border-radius: 2px; + resize: none; +`,generateSampleData=rows=>{const finalData=[];for(let i=0;i{const groupData=[];for(let i=0;i{const[rows,setRows]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(sampleData),sampleColumns={selection:{name:"",headerCellComponent:()=>{const checkRowForSelection=row=>Object.prototype.hasOwnProperty.call(row,"selected")&&row.selected;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Table__WEBPACK_IMPORTED_MODULE_3__.ZP.HeaderCell,{sortable:!0},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Checkbox_Checkbox__WEBPACK_IMPORTED_MODULE_4__.ZP,{checkboxType:rows.filter(checkRowForSelection).length===rows.length?_enums_checkboxTypes__WEBPACK_IMPORTED_MODULE_5__.D.check:_enums_checkboxTypes__WEBPACK_IMPORTED_MODULE_5__.D.neutral,checked:Boolean(rows.filter(checkRowForSelection).length),onClick:e=>(event=>{const currentlyChecked=event.target.checked,newRows=rows.map((row=>_objectSpread(_objectSpread({},row),{},{selected:currentlyChecked})));setRows(newRows)})(e),inputProps:{onChange:()=>{}}}))},width:selectionWidth,cellComponent:({index:index,selected:selected,reachedMinWidth:reachedMinWidth=!1})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Table__WEBPACK_IMPORTED_MODULE_3__.ZP.Cell,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Checkbox_Checkbox__WEBPACK_IMPORTED_MODULE_4__.ZP,{onClick:()=>((index,selected)=>{const newRows=[...rows];newRows[index].selected=!selected,setRows(newRows)})(index,selected),checkboxType:_enums_checkboxTypes__WEBPACK_IMPORTED_MODULE_5__.D.check,checked:selected,inputProps:{onChange:()=>{}}},reachedMinWidth?"Select for download":"")),sortable:!1,footerContent:""},name:{name:"Name",width:nameWidth,footerContent:"NameFooter",sortable:!0},title:{name:"Title",width:titleWidth,footerContent:"TitleFooter"},address:{name:"Address",width:addressWidth,footerContent:"AddressFooter"},notes:{name:"Notes",width:notesWidth,cellComponent:({notes:notes})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Table__WEBPACK_IMPORTED_MODULE_3__.ZP.Cell,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(NoteField,{onChange:()=>{},rows:3,value:notes})),minTableWidth:800,sortable:!0,sortFunction:(a,b)=>a.lengthreact__WEBPACK_IMPORTED_MODULE_0__.createElement(ActionCellContainer,{onClick:()=>{(index=>{const newRows=[...rows];newRows.splice(index,1),setRows(newRows)})(index)}},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mdi_react__WEBPACK_IMPORTED_MODULE_1___default(),{size:"1rem",path:_mdi_js__WEBPACK_IMPORTED_MODULE_7__.r5M}),"  ",reachedMinWidth?"Delete user":""),footerContent:""}};return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Table__WEBPACK_IMPORTED_MODULE_3__.ZP,{columns:sampleColumns,data:rows})};Default.args={"Selection width":"2rem","Name width":"1fr","Title width":"1fr","Address width":"1fr","Notes width":"12rem","Action width":"1rem"};const Groups=_ref=>{let{"Selection width":selectionWidth,"Name width":nameWidth,"Title width":titleWidth,"Address width":addressWidth,"Notes width":notesWidth,"Use default expansion column":useDefaultExpansionColumn,groupLabelPosition:groupLabelPosition,sortGroups:sortGroups,areGroupsCollapsible:areGroupsCollapsible,useCustomLabel:useCustomLabel}=_ref,args=_objectWithoutProperties(_ref,_excluded);const[rows,setRows]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(sampleGroupData),selectAll=event=>{const currentlyChecked=event.target.checked,newRows=[];rows.forEach((group=>{newRows.push(group.map((row=>_objectSpread(_objectSpread({},row),{},{selected:currentlyChecked}))))})),setRows(newRows)},EmptyCell=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Table__WEBPACK_IMPORTED_MODULE_3__.ZP.Cell,null),sampleColumns={selection:{name:"",headerCellComponent:()=>{let totalSelected=0,totalCheckboxesAccumulator=0;rows.forEach((groupRows=>{groupRows.forEach((row=>{row.isGroupLabel||(row.selected&&totalSelected++,totalCheckboxesAccumulator++)}))}));const allChecked=totalSelected===totalCheckboxesAccumulator;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Table__WEBPACK_IMPORTED_MODULE_3__.ZP.HeaderCell,{sortable:!0},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Checkbox_Checkbox__WEBPACK_IMPORTED_MODULE_4__.ZP,{checkboxType:allChecked?_enums_checkboxTypes__WEBPACK_IMPORTED_MODULE_5__.D.check:_enums_checkboxTypes__WEBPACK_IMPORTED_MODULE_5__.D.neutral,checked:Boolean(totalSelected),onClick:selectAll,inputProps:{onChange:()=>{}}}))},width:selectionWidth,cellComponent:({index:index=0,selected:selected,reachedMinWidth:reachedMinWidth=!1,groupIndex:groupIndex=0})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Table__WEBPACK_IMPORTED_MODULE_3__.ZP.Cell,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Checkbox_Checkbox__WEBPACK_IMPORTED_MODULE_4__.ZP,{onClick:()=>((index=0,groupIndex=0,selected)=>{const newRows=[];rows.forEach((grp=>{newRows.push([...grp])})),newRows[groupIndex][index].selected=!selected,setRows(newRows)})(index,groupIndex,selected),checkboxType:_enums_checkboxTypes__WEBPACK_IMPORTED_MODULE_5__.D.check,checked:selected,inputProps:{onChange:()=>{}}},reachedMinWidth?"Select for download":"")),sortable:!1,groupCellComponent:EmptyCell,footerContent:""},name:{name:"Name",width:nameWidth,sortable:!0},title:{name:"Title",width:titleWidth,sortable:!0},address:{name:"Address",width:addressWidth},notes:{name:"Notes",width:notesWidth,cellComponent:({notes:notes})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Table__WEBPACK_IMPORTED_MODULE_3__.ZP.Cell,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(NoteField,{onChange:()=>{},rows:3,value:notes})),minTableWidth:800,sortFunction:(a,b)=>a.length {\n const [rows, setRows] = useState(sampleData);\n\n const onDelete = (index: number) => {\n const newRows = [...rows];\n newRows.splice(index, 1);\n setRows(newRows);\n };\n\n const onSelect = (index: number, selected: boolean) => {\n const newRows = [...rows];\n newRows[index].selected = !selected;\n setRows(newRows);\n };\n\n const selectAll = (event: React.MouseEvent) => {\n const target = event.target as HTMLInputElement;\n const currentlyChecked = target.checked;\n const newRows = rows.map((row: SampleDataType) => ({ ...row, selected: currentlyChecked }));\n setRows(newRows);\n };\n\n const SelectAllCell = () => {\n const checkRowForSelection = (row: SampleDataType) =>\n Object.prototype.hasOwnProperty.call(row, 'selected') && row.selected;\n\n // TODO: don't use pointer-events to control if a column is sortable - it should be checked\n // within the sorting listeners so that `sortable` doesn't need to be passed here just to give\n // it pointer-events\n return (\n \n selectAll(e)}\n inputProps={{ onChange: () => {} }}\n />\n \n );\n };\n\n const SelectionCell = ({\n index,\n selected,\n reachedMinWidth = false,\n }: {\n index: number;\n selected: boolean;\n \n reachedMinWidth?: boolean;\n }) => (\n \n onSelect(index, selected)}\n checkboxType={CheckboxTypes.check}\n checked={selected}\n inputProps={{ onChange: () => {} }}\n >\n {reachedMinWidth ? 'Select for download' : ''}\n \n \n );\n\n const NotesCell = ({ notes }: { notes: string }) => (\n \n {}} rows={3} value={notes} />\n \n );\n\n const ActionCell = ({ index, reachedMinWidth }: { index: number; reachedMinWidth: boolean }) => (\n {\n onDelete(index);\n }}\n >\n \n   \n {reachedMinWidth ? 'Delete user' : ''}\n \n );\n\n const sampleColumns: Columns = {\n selection: {\n name: '',\n headerCellComponent: SelectAllCell,\n width: selectionWidth,\n cellComponent: SelectionCell,\n sortable: false,\n footerContent: '',\n },\n name: {\n name: 'Name',\n width: nameWidth,\n footerContent: 'NameFooter',\n sortable: true,\n },\n title: {\n name: 'Title',\n width: titleWidth,\n footerContent: 'TitleFooter',\n },\n address: {\n name: 'Address',\n width: addressWidth,\n footerContent: 'AddressFooter',\n },\n notes: {\n name: 'Notes',\n width: notesWidth,\n cellComponent: NotesCell,\n minTableWidth: 800,\n sortable: true,\n sortFunction: (a: string, b: string) => a.length < b.length,\n footerContent: 'NotesFooter',\n },\n action: {\n name: '',\n sortable: false,\n width: actionWidth,\n cellComponent: ActionCell,\n footerContent: '',\n },\n };\n\n return ;\n}"}},Default.parameters),Groups.parameters=_objectSpread({storySource:{source:"({\n 'Selection width': selectionWidth,\n 'Name width': nameWidth,\n 'Title width': titleWidth,\n 'Address width': addressWidth,\n 'Notes width': notesWidth,\n 'Use default expansion column': useDefaultExpansionColumn,\n groupLabelPosition,\n sortGroups,\n areGroupsCollapsible,\n useCustomLabel,\n ...args\n}: GroupsProps) => {\n const [rows, setRows] = useState(sampleGroupData);\n\n const onSelect = (index = 0, groupIndex = 0, selected: boolean) => {\n const newRows: SampleDataType[][] = [];\n rows.forEach(grp => {\n newRows.push([...grp]);\n });\n\n newRows[groupIndex][index].selected = !selected;\n setRows(newRows);\n };\n\n const selectAll = (event: React.MouseEvent) => {\n const target = event.target as HTMLInputElement;\n const currentlyChecked = target.checked;\n const newRows: SampleDataType[][] = [];\n rows.forEach(group => {\n newRows.push(\n group.map(row => {\n return { ...row, selected: currentlyChecked };\n }),\n );\n });\n setRows(newRows);\n };\n\n const SelectAllCell = () => {\n let totalSelected = 0;\n let totalCheckboxesAccumulator = 0;\n rows.forEach(groupRows => {\n groupRows.forEach(row => {\n if (row.isGroupLabel) return;\n if (row.selected) totalSelected++;\n totalCheckboxesAccumulator++;\n });\n });\n const allChecked = totalSelected === totalCheckboxesAccumulator;\n\n // TODO: don't use pointer-events to control if a column is sortable - it should be checked\n // within the sorting listeners so that `sortable` doesn't need to be passed here just to give\n // it pointer-events\n return (\n \n {} }}\n />\n \n );\n };\n\n const SelectionCell = ({\n index = 0,\n selected,\n reachedMinWidth = false,\n groupIndex = 0,\n }: {\n \n index?: number;\n selected: boolean;\n \n reachedMinWidth?: boolean;\n \n groupIndex?: number;\n }) => (\n \n onSelect(index, groupIndex, selected)}\n checkboxType={CheckboxTypes.check}\n checked={selected}\n inputProps={{ onChange: () => {} }}\n >\n {reachedMinWidth ? 'Select for download' : ''}\n \n \n );\n\n const EmptyCell = () => ;\n\n interface NotesCellProps {\n notes: string;\n }\n\n const NotesCell: React.FC = ({ notes }) => (\n \n {}} rows={3} value={notes} />\n \n );\n\n const sampleColumns: Columns = {\n selection: {\n name: '',\n headerCellComponent: SelectAllCell,\n width: selectionWidth,\n cellComponent: SelectionCell,\n sortable: false,\n groupCellComponent: EmptyCell,\n footerContent: '',\n },\n name: {\n name: 'Name',\n width: nameWidth,\n sortable: true,\n },\n title: {\n name: 'Title',\n width: titleWidth,\n sortable: true,\n },\n address: {\n name: 'Address',\n width: addressWidth,\n },\n notes: {\n name: 'Notes',\n width: notesWidth,\n cellComponent: NotesCell,\n minTableWidth: 800,\n sortFunction: (a: string, b: string) => a.length < b.length,\n groupCellComponent: EmptyCell,\n },\n };\n\n if (!useDefaultExpansionColumn) {\n sampleColumns[ExpansionIconColumnName] = {\n name: '',\n sortable: false,\n width: args['Expansion Icon width'],\n };\n }\n\n const position = groupLabelPosition;\n\n return (\n \n );\n}"}},Groups.parameters);const __namedExportsOrder=["Default","Groups"]},"./src/components/Tag/Tag.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{BasicTag:function(){return BasicTag},__namedExportsOrder:function(){return __namedExportsOrder}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_mdi_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@mdi/js/mdi.js"),_Tag__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/components/Tag/Tag.tsx"),_enums_colors__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/enums/colors.ts"),_enums_variants__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/enums/variants.ts");function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}const BasicTag=args=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Tag__WEBPACK_IMPORTED_MODULE_1__.Z,args);BasicTag.args={variant:_enums_variants__WEBPACK_IMPORTED_MODULE_3__.Z.outline,color:_enums_colors__WEBPACK_IMPORTED_MODULE_2__.Z.primaryDark,isLoading:!1,elevation:0,isProcessing:!1,iconPrefix:"none",iconSuffix:"none",containerProps:{"data-test-id":`tag-${Math.floor(1e5*Math.random())}`},children:"Default text"};const iconOptions={options:["none","mdiMessage","mdiSend"],mapping:{none:"",mdiMessage:_mdi_js__WEBPACK_IMPORTED_MODULE_4__.Np8,mdiSend:_mdi_js__WEBPACK_IMPORTED_MODULE_4__.NN1},control:{type:"radio"}};__webpack_exports__.default={title:"Tag",component:_Tag__WEBPACK_IMPORTED_MODULE_1__.Z,argTypes:{elevation:{control:{type:"range",min:-5,max:5,step:1}},iconPrefix:iconOptions,iconSuffix:iconOptions},parameters:{design:{type:"figma",url:"https://www.figma.com/file/3r2G00brulOwr9j7F6JF59/Generic-UI-Style?node-id=0%3A1"}}},BasicTag.parameters=function _objectSpread(target){for(var i=1;i "}},BasicTag.parameters);const __namedExportsOrder=["BasicTag"]},"./src/components/Text/Text.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:function(){return Default},__namedExportsOrder:function(){return __namedExportsOrder}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_mdi_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@mdi/js/mdi.js"),_mdi_react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@mdi/react/Icon.js"),_mdi_react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_mdi_react__WEBPACK_IMPORTED_MODULE_1__),_Text__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/components/Text/Text.tsx"),_enums_colors__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/enums/colors.ts");const _excluded=["iconPrefix","iconSuffix"];function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}const options={none:"",mdiAlertDecagramOutline:_mdi_js__WEBPACK_IMPORTED_MODULE_4__.gvn,mdiScooter:_mdi_js__WEBPACK_IMPORTED_MODULE_4__.z6n,mdiAlignVerticalCenter:_mdi_js__WEBPACK_IMPORTED_MODULE_4__.fZG},Default=_ref=>{let{iconPrefix:iconPrefix,iconSuffix:iconSuffix}=_ref,args=_objectWithoutProperties(_ref,_excluded);const getIconPath=path=>path?react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mdi_react__WEBPACK_IMPORTED_MODULE_1___default(),{size:args.size,path:path}):void 0;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Text__WEBPACK_IMPORTED_MODULE_2__.Z,_extends({},args,{iconPrefix:getIconPath(iconPrefix),iconSuffix:getIconPath(iconSuffix)}))};Default.args={size:"1rem",color:_enums_colors__WEBPACK_IMPORTED_MODULE_3__.Z.grayDark,iconPrefix:"mdiComment",iconSuffix:"mdiComment",isProcessing:!1,isLoading:!1,children:"Lorem ipsum dolor sit amet."};const iconOptions={options:Object.keys(options),mapping:options,control:{type:"select"}};__webpack_exports__.default={title:"Text",component:_Text__WEBPACK_IMPORTED_MODULE_2__.Z,argTypes:{iconPrefix:iconOptions,iconSuffix:iconOptions},parameters:{design:{type:"figma",url:"https://www.figma.com/file/3r2G00brulOwr9j7F6JF59/Generic-UI-Style?node-id=83%3A17"}}},Default.parameters=function _objectSpread(target){for(var i=1;i {\n const getIconPath = (path: string) => (path ? : undefined);\n\n return (\n \n );\n}"}},Default.parameters);const __namedExportsOrder=["Default"]},"./src/components/TextInput/TextInput.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{BasicTextInput:function(){return BasicTextInput},UncontrolledTextInput:function(){return UncontrolledTextInput},__namedExportsOrder:function(){return __namedExportsOrder}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@storybook/addon-actions/dist/esm/index.js"),_mdi_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@mdi/js/mdi.js"),_TextInput__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/components/TextInput/TextInput.tsx"),_enums_variants__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/enums/variants.ts");const _excluded=["clearable","onChange","onClear"];function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}const iconOptions={none:"",mdiAccount:_mdi_js__WEBPACK_IMPORTED_MODULE_4__.rI3,mdiOfficeBuilding:_mdi_js__WEBPACK_IMPORTED_MODULE_4__.ilk,mdiPhone:_mdi_js__WEBPACK_IMPORTED_MODULE_4__.yIv},maxLengthOptions={5:5,20:20,100:100,none:void 0},callbacks={onChange:event=>(0,_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_1__.action)("onChange")(event.target.value),debouncedOnChange:event=>(0,_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_1__.action)("debouncedOnChange")(event.target.value),onClear:()=>(0,_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_1__.action)("onClear")(),onFocus:()=>(0,_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_1__.action)("onFocus")(),onBlur:()=>(0,_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_1__.action)("onBlur")(),onInput:event=>(0,_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_1__.action)("onInput")(event.target.value),onKeyPress:event=>(0,_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_1__.action)("onKeyPress")(event.key),onKeyUp:event=>(0,_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_1__.action)("onKeyUp")(event.key),onKeyDown:event=>(0,_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_1__.action)("onKeyDown")(event.key)},BasicTextInput=_ref=>{let{clearable:clearable,onChange:onChange,onClear:onClear}=_ref,args=_objectWithoutProperties(_ref,_excluded);const[inputValue,setInputValue]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(""),onChangeCallback=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((event=>{setInputValue(event.target.value),onChange&&onChange(event)}),[onChange]),onClearCallback=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((event=>{setInputValue(""),onClear&&onClear(event)}),[onClear]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TextInput__WEBPACK_IMPORTED_MODULE_2__.Z,_extends({},args,{value:inputValue,onChange:onChangeCallback,onClear:clearable?onClearCallback:void 0}))};BasicTextInput.args=_objectSpread({"aria-label":"textInput",debounceInterval:150,disabled:!1,placeholder:"Placeholder",iconPrefix:"none",isMultiline:!1,rows:0,cols:0,isValid:!0,errorMessage:"",variant:_enums_variants__WEBPACK_IMPORTED_MODULE_3__.Z.outline,type:"",multiLineIsResizable:!1,showCharacterCount:!0,maxLength:20,allowTextBeyondMaxLength:!1,clearable:!1},callbacks);const UncontrolledTextInput=args=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TextInput__WEBPACK_IMPORTED_MODULE_2__.Z,_extends({},args,{onClear:void 0}));UncontrolledTextInput.args=_objectSpread({},BasicTextInput.args),__webpack_exports__.default={title:"TextInput",argTypes:{iconPrefix:{options:Object.keys(iconOptions),mapping:iconOptions,control:{type:"select"}},maxLength:{options:Object.keys(maxLengthOptions),mapping:maxLengthOptions,control:{type:"select"}},variant:{options:Object.keys(_enums_variants__WEBPACK_IMPORTED_MODULE_3__.Z),mapping:_enums_variants__WEBPACK_IMPORTED_MODULE_3__.Z,control:{type:"radio"}}},parameters:{design:{type:"figma",url:"https://www.figma.com/file/3r2G00brulOwr9j7F6JF59/Generic-UI-Style?node-id=102%3A29"}}},BasicTextInput.parameters=_objectSpread({storySource:{source:"({\n clearable,\n onChange,\n onClear,\n ...args\n}: BasicTextInputProps) => {\n const [inputValue, setInputValue] = useState('');\n\n const onChangeCallback = useCallback(\n event => {\n setInputValue(event.target.value);\n if (onChange) onChange(event);\n },\n [onChange],\n );\n const onClearCallback = useCallback(\n event => {\n setInputValue('');\n if (onClear) onClear(event);\n },\n [onClear],\n );\n\n return (\n \n );\n}"}},BasicTextInput.parameters),UncontrolledTextInput.parameters=_objectSpread({storySource:{source:"(args: TextInputProps) => {\n return ;\n}"}},UncontrolledTextInput.parameters);const __namedExportsOrder=["BasicTextInput","UncontrolledTextInput"]},"./src/components/Toggle/Toggle.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:function(){return Default},Ref:function(){return Ref},__namedExportsOrder:function(){return __namedExportsOrder}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@storybook/addon-actions/dist/esm/index.js"),_storybook_store__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@storybook/addons/dist/esm/hooks.js"),_htmlElements__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/htmlElements/index.tsx"),_Text__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/components/Text/index.ts"),_Toggle__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/components/Toggle/Toggle.tsx"),_enums_variants__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/enums/variants.ts");function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;i{const[hookArgs,updateArgs]=(0,_storybook_store__WEBPACK_IMPORTED_MODULE_6__.D8)();return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("h1",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_htmlElements__WEBPACK_IMPORTED_MODULE_2__.fh,{htmlFor:"big-label"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Toggle__WEBPACK_IMPORTED_MODULE_4__.ZP,_extends({},args,{inputProps:{name:"big-label",id:"big-label"},checked:hookArgs.checked,onToggle:e=>{(0,_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_1__.action)("onToggle")(e),updateArgs({checked:!hookArgs.checked})}})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Text__WEBPACK_IMPORTED_MODULE_3__.Z,null,"  H1"))),react__WEBPACK_IMPORTED_MODULE_0__.createElement("h2",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_htmlElements__WEBPACK_IMPORTED_MODULE_2__.fh,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Toggle__WEBPACK_IMPORTED_MODULE_4__.ZP,_extends({},args,{checked:hookArgs.checked,onToggle:e=>{(0,_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_1__.action)("onToggle")(e),updateArgs({checked:!hookArgs.checked})}})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Text__WEBPACK_IMPORTED_MODULE_3__.Z,null,"  H2"))),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_htmlElements__WEBPACK_IMPORTED_MODULE_2__.fh,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Toggle__WEBPACK_IMPORTED_MODULE_4__.ZP,_extends({},args,{checked:hookArgs.checked,onToggle:e=>{(0,_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_1__.action)("onToggle")(e),updateArgs({checked:!hookArgs.checked})}})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Text__WEBPACK_IMPORTED_MODULE_3__.Z,null,"  Normal")))},Default=Template.bind({});Default.args={checked:!0,disabled:!1,variant:_enums_variants__WEBPACK_IMPORTED_MODULE_5__.Z.fill};const containerRef=react__WEBPACK_IMPORTED_MODULE_0__.createRef(),handleRef=react__WEBPACK_IMPORTED_MODULE_0__.createRef(),Ref=Template.bind({});Ref.args=_objectSpread(_objectSpread({},Default.args),{},{containerRef:containerRef,handleRef:handleRef}),__webpack_exports__.default={title:"Toggle",component:_Toggle__WEBPACK_IMPORTED_MODULE_4__.ZP},Default.parameters=_objectSpread({storySource:{source:"args => {\n \n\n const [hookArgs, updateArgs] = useArgs();\n\n return (\n <>\n

\n \n {\n action('onToggle')(e);\n updateArgs({ checked: !hookArgs.checked });\n }}\n />\n   H1\n \n

\n

\n \n {\n action('onToggle')(e);\n updateArgs({ checked: !hookArgs.checked });\n }}\n />\n   H2\n \n

\n \n {\n action('onToggle')(e);\n updateArgs({ checked: !hookArgs.checked });\n }}\n />\n   Normal\n \n \n );\n}"}},Default.parameters),Ref.parameters=_objectSpread({storySource:{source:"args => {\n \n\n const [hookArgs, updateArgs] = useArgs();\n\n return (\n <>\n

\n \n {\n action('onToggle')(e);\n updateArgs({ checked: !hookArgs.checked });\n }}\n />\n   H1\n \n

\n

\n \n {\n action('onToggle')(e);\n updateArgs({ checked: !hookArgs.checked });\n }}\n />\n   H2\n \n

\n \n {\n action('onToggle')(e);\n updateArgs({ checked: !hookArgs.checked });\n }}\n />\n   Normal\n \n \n );\n}"}},Ref.parameters);const __namedExportsOrder=["Default","Ref"]},"./src/components/Avatar/Avatar.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var styled_components__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),polished__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/polished/dist/polished.esm.js"),_htmlElements__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/htmlElements/index.tsx"),_Skeleton_Skeleton__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/components/Skeleton/Skeleton.tsx"),_context__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/context/index.tsx");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;iimgURL&&!isLoading?`\n border-radius: ${borderRadiusPercent}%;\n overflow: hidden;\n width: ${size}em;\n height: ${size}em;\n background-image: url(${imgURL});\n background-size: cover;\n `:`\n display: flex;\n border-radius: ${borderRadiusPercent}%;\n padding: 1em;\n width: ${size}em;\n height: ${size}em;\n background-color: ${color};\n justify-content: center;\n align-items: center;\n `} +`,AvatarText=(0,styled_components__WEBPACK_IMPORTED_MODULE_4__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_1__.aQ)` + ${({size:size,textColor:textColor})=>`\n color: ${textColor};\n font-size: ${size/3}em; \n font-weight: 600;\n `}; +`,AvatarShimmer=(0,styled_components__WEBPACK_IMPORTED_MODULE_4__.ZP)(_Skeleton_Skeleton__WEBPACK_IMPORTED_MODULE_2__.ZP.Shimmer)` + ${({borderRadiusPercent:borderRadiusPercent})=>`\n border-radius: ${borderRadiusPercent}%;\n `} +`,Avatar=({placeholder:placeholder,children:children,imgURL:imgURL,size:size=1.5,borderRadiusPercent:borderRadiusPercent=50,color:initialColor,isLoading:isLoading=!1,StyledContainer:StyledContainer=AvatarContainer,StyledText:StyledText=AvatarText,StyledShimmer:StyledShimmer=AvatarShimmer,textProps:textProps={},containerProps:containerProps={},shimmerProps:shimmerProps={},containerRef:containerRef,textRef:textRef,shimmerRef:shimmerRef})=>{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_3__.Fg)(),color=initialColor||colors.grayXlight,fontColor=(0,polished__WEBPACK_IMPORTED_MODULE_5__.XV)(color,colors.grayMedium,colors.background),shimmerColor=fontColor===colors.background?(0,polished__WEBPACK_IMPORTED_MODULE_5__.$n)(.2,color):(0,polished__WEBPACK_IMPORTED_MODULE_5__._j)(.2,color);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Skeleton_Skeleton__WEBPACK_IMPORTED_MODULE_2__.ZP,{isLoading:isLoading,color:shimmerColor,StyledContainer:StyledContainer,containerProps:_objectSpread(_objectSpread({size:size,borderRadiusPercent:borderRadiusPercent,imgURL:imgURL,color:color},containerProps),{},{ref:containerRef}),shimmerProps:_objectSpread(_objectSpread({borderRadiusPercent:borderRadiusPercent},shimmerProps),{},{ref:shimmerRef}),StyledShimmer:StyledShimmer},children,imgURL?"":react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledText,_extends({},textProps,{ref:textRef,size:size,textColor:fontColor}),placeholder))};Avatar.Container=AvatarContainer,Avatar.Text=AvatarText,__webpack_exports__.ZP=Avatar;try{AvatarContainer.displayName="AvatarContainer",AvatarContainer.__docgenInfo={description:"",displayName:"AvatarContainer",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Avatar/Avatar.tsx#AvatarContainer"]={docgenInfo:AvatarContainer.__docgenInfo,name:"AvatarContainer",path:"src/components/Avatar/Avatar.tsx#AvatarContainer"})}catch(__react_docgen_typescript_loader_error){}try{AvatarText.displayName="AvatarText",AvatarText.__docgenInfo={description:"",displayName:"AvatarText",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Avatar/Avatar.tsx#AvatarText"]={docgenInfo:AvatarText.__docgenInfo,name:"AvatarText",path:"src/components/Avatar/Avatar.tsx#AvatarText"})}catch(__react_docgen_typescript_loader_error){}try{AvatarShimmer.displayName="AvatarShimmer",AvatarShimmer.__docgenInfo={description:"",displayName:"AvatarShimmer",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Avatar/Avatar.tsx#AvatarShimmer"]={docgenInfo:AvatarShimmer.__docgenInfo,name:"AvatarShimmer",path:"src/components/Avatar/Avatar.tsx#AvatarShimmer"})}catch(__react_docgen_typescript_loader_error){}try{Avatar.displayName="Avatar",Avatar.__docgenInfo={description:"",displayName:"Avatar",props:{placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"ReactNode"}},imgURL:{defaultValue:null,description:"",name:"imgURL",required:!1,type:{name:"string"}},size:{defaultValue:{value:"1.5"},description:"",name:"size",required:!1,type:{name:"number"}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"string"}},borderRadiusPercent:{defaultValue:{value:"50"},description:"",name:"borderRadiusPercent",required:!1,type:{name:"number"}},isLoading:{defaultValue:{value:"false"},description:"",name:"isLoading",required:!1,type:{name:"boolean"}},StyledContainer:{defaultValue:{value:"styled(Skeleton.Container)`\n ${({ size, borderRadiusPercent, imgURL, isLoading, color }: AvatarContainerProps) => {\n if (imgURL && !isLoading) {\n return `\n border-radius: ${borderRadiusPercent}%;\n overflow: hidden;\n width: ${size}em;\n height: ${size}em;\n background-image: url(${imgURL});\n background-size: cover;\n `;\n }\n return `\n display: flex;\n border-radius: ${borderRadiusPercent}%;\n padding: 1em;\n width: ${size}em;\n height: ${size}em;\n background-color: ${color};\n justify-content: center;\n align-items: center;\n `;\n }}\n`"},description:"",name:"StyledContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledText:{defaultValue:{value:"styled(StyledBaseSpan)`\n ${({ size, textColor }: AvatarTextProps) => {\n return `\n color: ${textColor};\n font-size: ${size / 3}em; \n font-weight: 600;\n `;\n }};\n`"},description:"",name:"StyledText",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledShimmer:{defaultValue:{value:"styled(Skeleton.Shimmer)`\n ${({ borderRadiusPercent }: Pick) =>\n `\n border-radius: ${borderRadiusPercent}%;\n `}\n`"},description:"",name:"StyledShimmer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},containerProps:{defaultValue:{value:"{}"},description:"",name:"containerProps",required:!1,type:{name:"Record"}},textProps:{defaultValue:{value:"{}"},description:"",name:"textProps",required:!1,type:{name:"Record"}},shimmerProps:{defaultValue:{value:"{}"},description:"",name:"shimmerProps",required:!1,type:{name:"Record"}},containerRef:{defaultValue:null,description:"",name:"containerRef",required:!1,type:{name:"RefObject"}},textRef:{defaultValue:null,description:"",name:"textRef",required:!1,type:{name:"RefObject"}},shimmerRef:{defaultValue:null,description:"",name:"shimmerRef",required:!1,type:{name:"RefObject"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Avatar/Avatar.tsx#Avatar"]={docgenInfo:Avatar.__docgenInfo,name:"Avatar",path:"src/components/Avatar/Avatar.tsx#Avatar"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Button/Button.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_mdi_react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@mdi/react/Icon.js"),_mdi_react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_mdi_react__WEBPACK_IMPORTED_MODULE_1__),_mdi_js__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/@mdi/js/mdi.js"),styled_components__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),polished__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/polished/dist/polished.esm.js"),_enums_feedbackTypes__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/enums/feedbackTypes.ts"),_enums_timings__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/enums/timings.ts"),_context__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/context/index.tsx"),_enums_variants__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/enums/variants.ts"),_Skeleton_Skeleton__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/components/Skeleton/Skeleton.tsx"),_Progress_Progress__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/components/Progress/Progress.tsx"),_htmlElements__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/htmlElements/index.tsx"),_utils_color__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./src/utils/color.ts"),_utils_styles__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./src/utils/styles.ts"),_InteractionFeedback__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./src/components/InteractionFeedback/index.ts");function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;ireact__WEBPACK_IMPORTED_MODULE_0__.createElement(_Skeleton_Skeleton__WEBPACK_IMPORTED_MODULE_6__.ZP.Container,_extends({ref:ref,as:_htmlElements__WEBPACK_IMPORTED_MODULE_8__.IX},props),props.children))),ButtonContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_12__.ZP)(SkeletonButtonContainer)` + ${({disabled:disabled,elevation:elevation=0,color:color,variant:variant,feedbackType:feedbackType})=>{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_4__.Fg)(),backgroundColor=(0,_utils_color__WEBPACK_IMPORTED_MODULE_9__.q5)(variant,color,colors.transparent),fontColor=(0,_utils_color__WEBPACK_IMPORTED_MODULE_9__.qN)(variant,color,colors.background,colors.grayDark);return`\n -webkit-appearance: none;\n display: inline-flex;\n align-items: baseline;\n position: relative;\n font-size: 1em;\n padding: .75em 1em;\n border-radius: 0.25em;\n transition:\n background-color ${_enums_timings__WEBPACK_IMPORTED_MODULE_3__.Z.fast},\n color ${_enums_timings__WEBPACK_IMPORTED_MODULE_3__.Z.slow},\n outline ${_enums_timings__WEBPACK_IMPORTED_MODULE_3__.Z.slow},\n filter ${_enums_timings__WEBPACK_IMPORTED_MODULE_3__.Z.slow},\n box-shadow ${_enums_timings__WEBPACK_IMPORTED_MODULE_3__.Z.slow};\n ${(0,_utils_styles__WEBPACK_IMPORTED_MODULE_10__.sM)(elevation,colors.shadow)}\n outline: 0 none;\n border: ${variant===_enums_variants__WEBPACK_IMPORTED_MODULE_5__.Z.outline?`1px solid ${color||colors.grayDark}`:"1px solid transparent"};\n cursor: pointer;\n background-color: ${backgroundColor};\n color: ${fontColor};\n user-select: none;\n align-items: center;\n ${disabled?(0,_utils_color__WEBPACK_IMPORTED_MODULE_9__.Am)():""}\n &:hover {\n background-color: ${"transparent"!==backgroundColor?(0,polished__WEBPACK_IMPORTED_MODULE_13__._j)(.05,backgroundColor):"rgba(0, 0, 0, 0.05)"};\n }\n &:focus {\n outline: none;\n box-shadow: 0 0 5px 0.150rem ${colors.tertiaryDark};\n }\n ${feedbackType===_enums_feedbackTypes__WEBPACK_IMPORTED_MODULE_2__.Z.simple?`\n &:active {\n background-color: ${"transparent"!==backgroundColor?(0,polished__WEBPACK_IMPORTED_MODULE_13__._j)(.1,backgroundColor):"rgba(0, 0, 0, 0.1)"};\n }\n `:""}\n `}} +`,IconContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_12__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_8__.xt)` + vertical-align: middle; +`,StyledFeedbackContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_12__.ZP)(_InteractionFeedback__WEBPACK_IMPORTED_MODULE_11__.Z.Container)` + position: absolute; + width: 100%; + height: 100%; + left: 0; + top: 0; +`,StyledFeedbackSVGContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_12__.ZP)(_InteractionFeedback__WEBPACK_IMPORTED_MODULE_11__.Z.SVGContainer)` + border-radius: 0.25em; +`,LeftIconContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_12__.ZP)(IconContainer)` + ${({hasContent:hasContent})=>`\n ${hasContent?"margin-right: 0.75em;":""}\n `} +`,RightIconContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_12__.ZP)(IconContainer)` + ${({hasContent:hasContent})=>`\n ${hasContent?"margin-left: 0.75em;":""}\n `} +`,Button=({StyledContainer:StyledContainer=ButtonContainer,StyledLeftIconContainer:StyledLeftIconContainer=LeftIconContainer,StyledRightIconContainer:StyledRightIconContainer=RightIconContainer,skeletonShimmerProps:skeletonShimmerProps,ProgressBar:ProgressBar,containerProps:containerProps={},interactionFeedbackProps:interactionFeedbackProps,leftIconProps:leftIconProps={},rightIconProps:rightIconProps={},containerRef:containerRef,leftIconContainerRef:leftIconContainerRef,rightIconContainerRef:rightIconContainerRef,iconPrefix:iconPrefix,iconSuffix:iconSuffix,isLoading:isLoading,isProcessing:isProcessing,children:children,elevation:elevation=0,feedbackType:feedbackType=_enums_feedbackTypes__WEBPACK_IMPORTED_MODULE_2__.Z.ripple,variant:variant=_enums_variants__WEBPACK_IMPORTED_MODULE_5__.Z.fill,type:type=ButtonTypes.button,color:color,disabled:disabled=!1,onClick:onClick=(()=>{}),onBlur:onBlur=(()=>{}),onFocus:onFocus=(()=>{}),onMouseDown:onMouseDown=(()=>{}),onMouseUp:onMouseUp=(()=>{}),id:id})=>{const hasContent=Boolean(children),{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_4__.Fg)(),containerColor=color||colors.grayLight,handleEventWithAnalytics=(0,_context__WEBPACK_IMPORTED_MODULE_4__.z$)(),mergedContainerProps=function _objectSpread(target){for(var i=1;ihandleEventWithAnalytics("Button",onClick,"onClick",e,containerProps),onBlur:e=>handleEventWithAnalytics("Button",onBlur,"onBlur",e,containerProps),onFocus:e=>handleEventWithAnalytics("Button",onFocus,"onFocus",e,containerProps),onMouseDown:e=>handleEventWithAnalytics("Button",onMouseDown,"onMouseDown",e,containerProps),onMouseUp:e=>handleEventWithAnalytics("Button",onMouseUp,"onMouseUp",e,containerProps)},containerProps);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledContainer,mergedContainerProps,!isProcessing&&iconPrefix&&("string"==typeof iconPrefix&&""!==iconPrefix?react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledLeftIconContainer,{hasContent:hasContent,ref:leftIconContainerRef},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mdi_react__WEBPACK_IMPORTED_MODULE_1___default(),_extends({path:iconPrefix,size:"1em"},leftIconProps))):react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledLeftIconContainer,{ref:leftIconContainerRef},iconPrefix)),isProcessing&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledLeftIconContainer,{hasContent:hasContent,ref:leftIconContainerRef},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mdi_react__WEBPACK_IMPORTED_MODULE_1___default(),{path:_mdi_js__WEBPACK_IMPORTED_MODULE_14__.CEZ,size:"1em",spin:1})),isLoading&&ProgressBar?react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Progress_Progress__WEBPACK_IMPORTED_MODULE_7__.ZP,null):children,iconSuffix&&("string"==typeof iconSuffix?react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledRightIconContainer,{hasContent:hasContent,ref:rightIconContainerRef},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mdi_react__WEBPACK_IMPORTED_MODULE_1___default(),_extends({path:iconSuffix,size:"1em"},rightIconProps))):react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledRightIconContainer,{hasContent:hasContent,ref:rightIconContainerRef},iconSuffix)),feedbackType===_enums_feedbackTypes__WEBPACK_IMPORTED_MODULE_2__.Z.ripple&&!disabled&&!isLoading&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(_InteractionFeedback__WEBPACK_IMPORTED_MODULE_11__.Z,_extends({StyledContainer:StyledFeedbackContainer,StyledSVGContainer:StyledFeedbackSVGContainer,color:(0,_utils_color__WEBPACK_IMPORTED_MODULE_9__.qN)(variant,containerColor)},interactionFeedbackProps||{})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Skeleton_Skeleton__WEBPACK_IMPORTED_MODULE_6__.ZP.Shimmer,_extends({color:(0,_utils_color__WEBPACK_IMPORTED_MODULE_9__.qN)(variant,containerColor,colors.background,colors.grayDark),isLoading:isLoading},skeletonShimmerProps)))};Button.Container=ButtonContainer,Button.ButtonTypes=ButtonTypes,Button.LeftIconContainer=LeftIconContainer,Button.RightIconContainer=RightIconContainer,__webpack_exports__.ZP=Button;try{ButtonContainer.displayName="ButtonContainer",ButtonContainer.__docgenInfo={description:"",displayName:"ButtonContainer",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Button/Button.tsx#ButtonContainer"]={docgenInfo:ButtonContainer.__docgenInfo,name:"ButtonContainer",path:"src/components/Button/Button.tsx#ButtonContainer"})}catch(__react_docgen_typescript_loader_error){}try{Button.displayName="Button",Button.__docgenInfo={description:"",displayName:"Button",props:{StyledContainer:{defaultValue:{value:"styled(SkeletonButtonContainer)`\n ${({ disabled, elevation = 0, color, variant, feedbackType }: ButtonContainerProps) => {\n const { colors } = useTheme();\n const backgroundColor = getBackgroundColorFromVariant(variant, color, colors.transparent);\n const fontColor = getFontColorFromVariant(variant, color, colors.background, colors.grayDark);\n\n return `\n -webkit-appearance: none;\n display: inline-flex;\n align-items: baseline;\n position: relative;\n font-size: 1em;\n padding: .75em 1em;\n border-radius: 0.25em;\n transition:\n background-color ${timings.fast},\n color ${timings.slow},\n outline ${timings.slow},\n filter ${timings.slow},\n box-shadow ${timings.slow};\n ${getShadowStyle(elevation, colors.shadow)}\n outline: 0 none;\n border: ${\n variant === variants.outline\n ? `1px solid ${color || colors.grayDark}`\n : '1px solid transparent'\n };\n cursor: pointer;\n background-color: ${backgroundColor};\n color: ${fontColor};\n user-select: none;\n align-items: center;\n ${disabled ? disabledStyles() : ''}\n &:hover {\n background-color: ${\n backgroundColor !== 'transparent' ? darken(0.05, backgroundColor) : 'rgba(0, 0, 0, 0.05)'\n };\n }\n &:focus {\n outline: none;\n box-shadow: 0 0 5px 0.150rem ${colors.tertiaryDark};\n }\n ${\n feedbackType === FeedbackTypes.simple\n ? `\n &:active {\n background-color: ${\n backgroundColor !== 'transparent'\n ? darken(0.1, backgroundColor)\n : 'rgba(0, 0, 0, 0.1)'\n };\n }\n `\n : ''\n }\n `;\n }}\n`"},description:"",name:"StyledContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledLeftIconContainer:{defaultValue:{value:"styled(IconContainer)`\n ${({ hasContent }: { hasContent: boolean }) => `\n ${hasContent ? 'margin-right: 0.75em;' : ''}\n `}\n`"},description:"",name:"StyledLeftIconContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledRightIconContainer:{defaultValue:{value:"styled(IconContainer)`\n ${({ hasContent }: { hasContent: boolean }) => `\n ${hasContent ? 'margin-left: 0.75em;' : ''}\n `}\n`"},description:"",name:"StyledRightIconContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},skeletonShimmerProps:{defaultValue:null,description:"",name:"skeletonShimmerProps",required:!1,type:{name:"StyledComponentPropsWithAs | FunctionComponent, any, {}, never, string | ComponentClass | FunctionComponent<...>, string | ... 1 more ... | FunctionComponent<...>>"}},ProgressBar:{defaultValue:null,description:"@deprecated",name:"ProgressBar",required:!1,type:{name:"Element | null"}},containerRef:{defaultValue:null,description:"",name:"containerRef",required:!1,type:{name:"RefObject"}},leftIconContainerRef:{defaultValue:null,description:"",name:"leftIconContainerRef",required:!1,type:{name:"RefObject"}},rightIconContainerRef:{defaultValue:null,description:"",name:"rightIconContainerRef",required:!1,type:{name:"RefObject"}},containerProps:{defaultValue:{value:"{}"},description:"",name:"containerProps",required:!1,type:{name:"Record"}},interactionFeedbackProps:{defaultValue:null,description:"",name:"interactionFeedbackProps",required:!1,type:{name:'Pick'}},leftIconProps:{defaultValue:{value:"{}"},description:"",name:"leftIconProps",required:!1,type:{name:"Record"}},rightIconProps:{defaultValue:{value:"{}"},description:"",name:"rightIconProps",required:!1,type:{name:"Record"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},disabled:{defaultValue:{value:"false"},description:"",name:"disabled",required:!1,type:{name:"boolean"}},elevation:{defaultValue:{value:"0"},description:"",name:"elevation",required:!1,type:{name:"number"}},variant:{defaultValue:{value:"variants.fill"},description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"fill"'},{value:'"outline"'},{value:'"text"'}]}},type:{defaultValue:{value:"ButtonTypes.button"},description:"",name:"type",required:!1,type:{name:"enum",value:[{value:'"button"'},{value:'"reset"'},{value:'"submit"'}]}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"string"}},feedbackType:{defaultValue:{value:"FeedbackTypes.ripple"},description:"",name:"feedbackType",required:!1,type:{name:"enum",value:[{value:'"simple"'},{value:'"ripple"'}]}},iconPrefix:{defaultValue:null,description:"",name:"iconPrefix",required:!1,type:{name:"string | Element"}},iconSuffix:{defaultValue:null,description:"",name:"iconSuffix",required:!1,type:{name:"string | Element"}},isLoading:{defaultValue:null,description:"",name:"isLoading",required:!1,type:{name:"boolean"}},isProcessing:{defaultValue:null,description:"",name:"isProcessing",required:!1,type:{name:"boolean"}},onClick:{defaultValue:{value:"() => {}"},description:"",name:"onClick",required:!1,type:{name:"((event: MouseEvent) => void)"}},onBlur:{defaultValue:{value:"() => {}"},description:"",name:"onBlur",required:!1,type:{name:"((e: FocusEvent) => void)"}},onFocus:{defaultValue:{value:"() => {}"},description:"",name:"onFocus",required:!1,type:{name:"((e: FocusEvent) => void)"}},onMouseDown:{defaultValue:{value:"() => {}"},description:"",name:"onMouseDown",required:!1,type:{name:"((e: MouseEvent) => void)"}},onMouseUp:{defaultValue:{value:"() => {}"},description:"",name:"onMouseUp",required:!1,type:{name:"((e: MouseEvent) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Button/Button.tsx#Button"]={docgenInfo:Button.__docgenInfo,name:"Button",path:"src/components/Button/Button.tsx#Button"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Button/index.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _Button__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/components/Button/Button.tsx");__webpack_exports__.Z=_Button__WEBPACK_IMPORTED_MODULE_0__.ZP},"./src/components/Card/Card.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$_:function(){return Footer},h4:function(){return Header}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),polished__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/polished/dist/polished.esm.js"),_enums_timings__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/enums/timings.ts"),_htmlElements__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/htmlElements/index.tsx"),_context__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/context/index.tsx"),_utils_styles__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/utils/styles.ts"),_InteractionFeedback_InteractionFeedback__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/components/InteractionFeedback/InteractionFeedback.tsx"),_enums_feedbackTypes__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/enums/feedbackTypes.ts");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i{},CardContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_7__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_2__.xt)` + ${({elevation:elevation,feedbackType:feedbackType,isDefaultOnClick:isDefaultOnClick})=>{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_3__.Fg)();return`\n ${isDefaultOnClick?"":"cursor: pointer;"}\n position: relative;\n display: inline-flex;\n flex-flow: column nowrap;\n font-size: 1em;\n border-radius: 0.25rem;\n border: ${elevation?"0px solid transparent":`1px solid ${colors.grayXlight}`};\n transition:\n filter ${_enums_timings__WEBPACK_IMPORTED_MODULE_1__.Z.slow},\n box-shadow ${_enums_timings__WEBPACK_IMPORTED_MODULE_1__.Z.slow},\n border ${_enums_timings__WEBPACK_IMPORTED_MODULE_1__.Z.normal},\n background-color ${_enums_timings__WEBPACK_IMPORTED_MODULE_1__.Z.normal};\n ${(0,_utils_styles__WEBPACK_IMPORTED_MODULE_4__.sM)(elevation,colors.shadow)}\n background-color: ${colors.background};\n ${feedbackType!==_enums_feedbackTypes__WEBPACK_IMPORTED_MODULE_6__.Z.simple||isDefaultOnClick?"":`\n &:active {\n background-color: ${"transparent"!==colors.background?(0,polished__WEBPACK_IMPORTED_MODULE_8__._j)(.1,colors.background):"rgba(0, 0, 0, 0.1)"};\n }\n `}\n `}} +`,Header=(0,styled_components__WEBPACK_IMPORTED_MODULE_7__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_2__.xt)` + ${({hasBody:hasBody,hasFooter:hasFooter})=>{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_3__.Fg)();return`\n padding: 1.5em 1.5em ${hasBody||hasFooter?"0em":""};\n border-radius: 0.25rem 0.25rem 0rem 0rem;\n font-weight: bold;\n color: ${colors.grayDark};\n `}} +`,NoPaddingHeader=(0,styled_components__WEBPACK_IMPORTED_MODULE_7__.ZP)(Header)` + padding: 0; +`,Body=(0,styled_components__WEBPACK_IMPORTED_MODULE_7__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_2__.xt)` + ${()=>{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_3__.Fg)();return`\n padding: 1.5em 1.5em;\n color: ${colors.grayMedium};\n `}} +`,Footer=(0,styled_components__WEBPACK_IMPORTED_MODULE_7__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_2__.xt)` + ${()=>{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_3__.Fg)();return`\n padding: 1em 1.5em;\n display: flex;\n flex-flow: row wrap;\n\n justify-content: flex-end;\n\n color: ${colors.grayLight};\n\n border-radius: 0rem 0rem 0.25rem 0.25rem;\n `}} +`,StyledFeedbackContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_7__.ZP)(_InteractionFeedback_InteractionFeedback__WEBPACK_IMPORTED_MODULE_5__.Z.Container)` + position: absolute; + width: 100%; + height: 100%; + left: 0; + top: 0; +`,Card=({StyledContainer:StyledContainer=CardContainer,StyledHeader:StyledHeader=Header,StyledBody:StyledBody=Body,StyledFooter:StyledFooter=Footer,containerProps:containerProps,headerProps:headerProps,bodyProps:bodyProps,footerProps:footerProps,interactionFeedbackProps:interactionFeedbackProps,containerRef:containerRef,headerRef:headerRef,bodyRef:bodyRef,footerRef:footerRef,interactiveFeedbackRef:interactiveFeedbackRef,onClick:onClick=defaultOnClick,header:header,children:children,footer:footer,elevation:elevation=1,feedbackType:feedbackType=_enums_feedbackTypes__WEBPACK_IMPORTED_MODULE_6__.Z.ripple})=>{const transitionProps=_objectSpread(_objectSpread({},_InteractionFeedback_InteractionFeedback__WEBPACK_IMPORTED_MODULE_5__.Z.defaultTransitionProps),{},{enter:_objectSpread(_objectSpread({},_InteractionFeedback_InteractionFeedback__WEBPACK_IMPORTED_MODULE_5__.Z.defaultTransitionProps),{},{r:300})}),hasHeader=Boolean(header),hasBody=Boolean(children),hasFooter=Boolean(footer),handleEventWithAnalytics=(0,_context__WEBPACK_IMPORTED_MODULE_3__.z$)(),isDefaultOnClick=onClick===defaultOnClick;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledContainer,_extends({onClick:e=>handleEventWithAnalytics("Card",onClick,"onClick",e,containerProps||{name:"Card"}),elevation:elevation,feedbackType:feedbackType,isDefaultOnClick:isDefaultOnClick},containerProps,{ref:containerRef}),header&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledHeader,_extends({hasBody:hasBody,hasFooter:hasFooter,ref:headerRef},headerProps),header),children&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledBody,_extends({hasHeader:hasHeader,hasFooter:hasFooter,ref:bodyRef},bodyProps),children),footer&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledFooter,_extends({hasHeader:hasHeader,hasBody:hasBody,ref:footerRef},footerProps),footer),feedbackType!==_enums_feedbackTypes__WEBPACK_IMPORTED_MODULE_6__.Z.simple&&onClick!==defaultOnClick&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(_InteractionFeedback_InteractionFeedback__WEBPACK_IMPORTED_MODULE_5__.Z,_extends({color:"rgba(0,0,0,0.1)",transitionProps:transitionProps,StyledContainer:StyledFeedbackContainer,containerRef:interactiveFeedbackRef},interactionFeedbackProps)))};Card.Header=Header,Card.NoPaddingHeader=NoPaddingHeader,Card.Footer=Footer,Card.Body=Body,Card.Container=CardContainer,__webpack_exports__.ZP=Card;try{CardContainer.displayName="CardContainer",CardContainer.__docgenInfo={description:"",displayName:"CardContainer",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Card/Card.tsx#CardContainer"]={docgenInfo:CardContainer.__docgenInfo,name:"CardContainer",path:"src/components/Card/Card.tsx#CardContainer"})}catch(__react_docgen_typescript_loader_error){}try{Header.displayName="Header",Header.__docgenInfo={description:"",displayName:"Header",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Card/Card.tsx#Header"]={docgenInfo:Header.__docgenInfo,name:"Header",path:"src/components/Card/Card.tsx#Header"})}catch(__react_docgen_typescript_loader_error){}try{NoPaddingHeader.displayName="NoPaddingHeader",NoPaddingHeader.__docgenInfo={description:"",displayName:"NoPaddingHeader",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Card/Card.tsx#NoPaddingHeader"]={docgenInfo:NoPaddingHeader.__docgenInfo,name:"NoPaddingHeader",path:"src/components/Card/Card.tsx#NoPaddingHeader"})}catch(__react_docgen_typescript_loader_error){}try{Body.displayName="Body",Body.__docgenInfo={description:"",displayName:"Body",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Card/Card.tsx#Body"]={docgenInfo:Body.__docgenInfo,name:"Body",path:"src/components/Card/Card.tsx#Body"})}catch(__react_docgen_typescript_loader_error){}try{Footer.displayName="Footer",Footer.__docgenInfo={description:"",displayName:"Footer",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Card/Card.tsx#Footer"]={docgenInfo:Footer.__docgenInfo,name:"Footer",path:"src/components/Card/Card.tsx#Footer"})}catch(__react_docgen_typescript_loader_error){}try{Card.displayName="Card",Card.__docgenInfo={description:"",displayName:"Card",props:{StyledContainer:{defaultValue:{value:"styled(StyledBaseDiv)`\n ${({ elevation, feedbackType, isDefaultOnClick }: CardContainerProps) => {\n const { colors } = useTheme();\n\n return `\n ${!isDefaultOnClick ? 'cursor: pointer;' : ''}\n position: relative;\n display: inline-flex;\n flex-flow: column nowrap;\n font-size: 1em;\n border-radius: 0.25rem;\n border: ${!elevation ? `1px solid ${colors.grayXlight}` : '0px solid transparent'};\n transition:\n filter ${timings.slow},\n box-shadow ${timings.slow},\n border ${timings.normal},\n background-color ${timings.normal};\n ${getShadowStyle(elevation, colors.shadow)}\n background-color: ${colors.background};\n ${\n feedbackType === FeedbackTypes.simple && !isDefaultOnClick\n ? `\n &:active {\n background-color: ${\n colors.background !== 'transparent'\n ? darken(0.1, colors.background)\n : 'rgba(0, 0, 0, 0.1)'\n };\n }\n `\n : ''\n }\n `;\n }}\n`"},description:"",name:"StyledContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledHeader:{defaultValue:{value:"styled(StyledBaseDiv)`\n ${({ hasBody, hasFooter }) => {\n const { colors } = useTheme();\n\n return `\n padding: 1.5em 1.5em ${hasBody || hasFooter ? '0em' : ''};\n border-radius: 0.25rem 0.25rem 0rem 0rem;\n font-weight: bold;\n color: ${colors.grayDark};\n `;\n }}\n`"},description:"",name:"StyledHeader",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledBody:{defaultValue:{value:"styled(StyledBaseDiv)`\n ${() => {\n const { colors } = useTheme();\n\n return `\n padding: 1.5em 1.5em;\n color: ${colors.grayMedium};\n `;\n }}\n`"},description:"",name:"StyledBody",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledFooter:{defaultValue:{value:"styled(StyledBaseDiv)`\n ${() => {\n const { colors } = useTheme();\n\n return `\n padding: 1em 1.5em;\n display: flex;\n flex-flow: row wrap;\n\n justify-content: flex-end;\n\n color: ${colors.grayLight};\n\n border-radius: 0rem 0rem 0.25rem 0.25rem;\n `;\n }}\n`"},description:"",name:"StyledFooter",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},containerProps:{defaultValue:null,description:"",name:"containerProps",required:!1,type:{name:"Record"}},headerProps:{defaultValue:null,description:"",name:"headerProps",required:!1,type:{name:"Record"}},bodyProps:{defaultValue:null,description:"",name:"bodyProps",required:!1,type:{name:"Record"}},footerProps:{defaultValue:null,description:"",name:"footerProps",required:!1,type:{name:"Record"}},interactionFeedbackProps:{defaultValue:null,description:"",name:"interactionFeedbackProps",required:!1,type:{name:'Pick'}},onClick:{defaultValue:{value:"() => {}"},description:"",name:"onClick",required:!1,type:{name:"((evt: MouseEvent) => void)"}},header:{defaultValue:null,description:"",name:"header",required:!1,type:{name:"ReactNode"}},footer:{defaultValue:null,description:"",name:"footer",required:!1,type:{name:"ReactNode"}},elevation:{defaultValue:{value:"1"},description:"",name:"elevation",required:!1,type:{name:"number"}},disableFeedback:{defaultValue:null,description:"",name:"disableFeedback",required:!1,type:{name:"boolean"}},feedbackType:{defaultValue:{value:"FeedbackTypes.ripple"},description:"",name:"feedbackType",required:!1,type:{name:"enum",value:[{value:'"simple"'},{value:'"ripple"'}]}},containerRef:{defaultValue:null,description:"",name:"containerRef",required:!1,type:{name:"RefObject"}},headerRef:{defaultValue:null,description:"",name:"headerRef",required:!1,type:{name:"RefObject"}},bodyRef:{defaultValue:null,description:"",name:"bodyRef",required:!1,type:{name:"RefObject"}},footerRef:{defaultValue:null,description:"",name:"footerRef",required:!1,type:{name:"RefObject"}},interactiveFeedbackRef:{defaultValue:null,description:"",name:"interactiveFeedbackRef",required:!1,type:{name:"RefObject"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Card/Card.tsx#Card"]={docgenInfo:Card.__docgenInfo,name:"Card",path:"src/components/Card/Card.tsx#Card"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Card/index.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _Card__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/components/Card/Card.tsx");__webpack_exports__.Z=_Card__WEBPACK_IMPORTED_MODULE_0__.ZP},"./src/components/Checkbox/Checkbox.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_mdi_react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@mdi/react/Icon.js"),_mdi_react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_mdi_react__WEBPACK_IMPORTED_MODULE_1__),_mdi_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/@mdi/js/mdi.js"),polished__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/polished/dist/polished.esm.js"),react_aria__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/@react-aria/checkbox/dist/module.js"),_react_stately_toggle__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/@react-stately/toggle/dist/module.js"),_htmlElements__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/htmlElements/index.tsx"),_context__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/context/index.tsx"),_enums_variants__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/enums/variants.ts"),_enums_checkboxTypes__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/enums/checkboxTypes.ts"),_utils_color__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/utils/color.ts"),_utils_refs__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./src/utils/refs.ts");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i`\n display: flex;\n align-items: center;\n cursor: pointer;\n height: 2em;\n font-size: 1em;\n \n ${disabled?(0,_utils_color__WEBPACK_IMPORTED_MODULE_6__.Am)():""}\n `} +`,Box=(0,styled_components__WEBPACK_IMPORTED_MODULE_7__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_2__.xt)` + ${({variant:variant,checked:checked,checkboxType:checkboxType})=>{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_3__.Fg)();let color=colors.grayLight;checkboxType===_enums_checkboxTypes__WEBPACK_IMPORTED_MODULE_5__.Z.check&&checked&&(color=colors.success),checkboxType===_enums_checkboxTypes__WEBPACK_IMPORTED_MODULE_5__.Z.cross&&checked&&(color=colors.destructive);const backgroundColor=variant===_enums_variants__WEBPACK_IMPORTED_MODULE_4__.Z.fill&&checked?color:colors.background;return`\n ${variant===_enums_variants__WEBPACK_IMPORTED_MODULE_4__.Z.outline||variant===_enums_variants__WEBPACK_IMPORTED_MODULE_4__.Z.fill?`border: 1px solid ${color};`:""} \n background-color: ${backgroundColor};\n border-radius: 2px;\n width: 1em;\n height: 1em;\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: visible;\n margin-right: 0.5em;\n &:hover {\n background-color: ${(0,polished__WEBPACK_IMPORTED_MODULE_8__._j)(.05,backgroundColor)}\n }\n `}} +`,CheckboxContainer=styled_components__WEBPACK_IMPORTED_MODULE_7__.ZP.div` + ${()=>{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_3__.Fg)();return`\n display: inline-block;\n vertical-align: middle;\n &:focus-within {\n ${Box} {\n box-shadow: 0 0 5px 0.150rem ${colors.tertiary};\n }\n }\n `}} +`,BaseIcon=(0,styled_components__WEBPACK_IMPORTED_MODULE_7__.ZP)(_mdi_react__WEBPACK_IMPORTED_MODULE_1___default())` + overflow: visible; + height: 1em; + width: 1em; +`,CheckIcon=(0,styled_components__WEBPACK_IMPORTED_MODULE_7__.ZP)(BaseIcon)` + ${({variant:variant})=>{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_3__.Fg)();return`\n color: ${variant===_enums_variants__WEBPACK_IMPORTED_MODULE_4__.Z.fill?colors.background:colors.success};\n `}} +`,CrossIcon=(0,styled_components__WEBPACK_IMPORTED_MODULE_7__.ZP)(BaseIcon)` + ${({variant:variant})=>{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_3__.Fg)();return`\n color: ${variant===_enums_variants__WEBPACK_IMPORTED_MODULE_4__.Z.fill?colors.background:colors.destructive};\n `}} +`,DefaultIcon=(0,styled_components__WEBPACK_IMPORTED_MODULE_7__.ZP)(BaseIcon)` + ${()=>{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_3__.Fg)();return`\n color: ${colors.grayLight}\n `}} +`,NeutralIcon=(0,styled_components__WEBPACK_IMPORTED_MODULE_7__.ZP)(BaseIcon)` + ${({variant:variant})=>{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_3__.Fg)(),color=variant===_enums_variants__WEBPACK_IMPORTED_MODULE_4__.Z.fill?colors.background:colors.grayMedium;return`\n color: ${color};\n path {\n stroke: ${color};\n stroke-width: 2px;\n }\n `}} +`,iconPaths={[_enums_checkboxTypes__WEBPACK_IMPORTED_MODULE_5__.Z.check]:_mdi_js__WEBPACK_IMPORTED_MODULE_9__.oL1,[_enums_checkboxTypes__WEBPACK_IMPORTED_MODULE_5__.Z.cross]:_mdi_js__WEBPACK_IMPORTED_MODULE_9__.r5M,[_enums_checkboxTypes__WEBPACK_IMPORTED_MODULE_5__.Z.neutral]:_mdi_js__WEBPACK_IMPORTED_MODULE_9__.UHA,[_enums_checkboxTypes__WEBPACK_IMPORTED_MODULE_5__.Z.default]:_mdi_js__WEBPACK_IMPORTED_MODULE_9__.Eqf,[_enums_checkboxTypes__WEBPACK_IMPORTED_MODULE_5__.Z.fill]:_mdi_js__WEBPACK_IMPORTED_MODULE_9__.Eqf},iconComponents={[_enums_checkboxTypes__WEBPACK_IMPORTED_MODULE_5__.Z.check]:CheckIcon,[_enums_checkboxTypes__WEBPACK_IMPORTED_MODULE_5__.Z.cross]:CrossIcon,[_enums_checkboxTypes__WEBPACK_IMPORTED_MODULE_5__.Z.neutral]:NeutralIcon,[_enums_checkboxTypes__WEBPACK_IMPORTED_MODULE_5__.Z.default]:DefaultIcon,[_enums_checkboxTypes__WEBPACK_IMPORTED_MODULE_5__.Z.fill]:DefaultIcon},Checkbox=({StyledLabel:StyledLabel=Label,StyledCheckboxContainer:StyledCheckboxContainer=CheckboxContainer,StyledBox:StyledBox=Box,StyledInput:StyledInput=Input,StyledIcon:StyledIcon,labelProps:labelProps={},checkboxContainerProps:checkboxContainerProps={},boxProps:boxProps={},inputProps:inputProps={},iconProps:iconProps={},checkboxType:checkboxType=_enums_checkboxTypes__WEBPACK_IMPORTED_MODULE_5__.Z.check,variant:variant=_enums_variants__WEBPACK_IMPORTED_MODULE_4__.Z.fill,checked:checked=!1,children:children,disabled:disabled=!1,onClick:onClick,containerRef:containerRef,boxRef:boxRef,labelRef:labelRef,inputRef:inputRef})=>{const iconPath=iconPaths[checkboxType],IconComponent=StyledIcon||iconComponents[checkboxType],mergedInputProps=_objectSpread(_objectSpread({isDisabled:disabled,isSelected:checked},inputProps),{},children?{children:children}:{"aria-label":"checkbox"}),state=(0,_react_stately_toggle__WEBPACK_IMPORTED_MODULE_10__.l)(_objectSpread({},mergedInputProps)),internalRef=react__WEBPACK_IMPORTED_MODULE_0__.useRef(),{inputProps:ariaProps}=(0,react_aria__WEBPACK_IMPORTED_MODULE_11__.O)(mergedInputProps,state,internalRef),handleEventWithAnalytics=(0,_context__WEBPACK_IMPORTED_MODULE_3__.z$)();return react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledLabel,_extends({disabled:disabled,"data-test-id":"hsui-Checkbox",ref:labelRef},labelProps),react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledCheckboxContainer,_extends({ref:containerRef},checkboxContainerProps),react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledBox,_extends({checkboxType:checkboxType,checked:checked,variant:variant},boxProps,{ref:boxRef}),checked?react__WEBPACK_IMPORTED_MODULE_0__.createElement(IconComponent,_extends({"aria-hidden":"true","data-test-id":"hsui-Checkbox-Icon",path:iconPath,variant:variant},iconProps)):null),react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledInput,_extends({role:"checkbox"},ariaProps,{"data-test-id":"hsui-Checkbox-Input",onClick:e=>handleEventWithAnalytics("Checkbox",onClick,"onClick",e,checkboxContainerProps),checked:checked,ref:(0,_utils_refs__WEBPACK_IMPORTED_MODULE_12__.l)([inputRef,internalRef])},inputProps))),children)};Checkbox.Label=Label,Checkbox.Box=Box,Checkbox.Input=Input,Checkbox.Container=CheckboxContainer,Checkbox.Types=_enums_checkboxTypes__WEBPACK_IMPORTED_MODULE_5__.Z,Checkbox.CheckIcon=CheckIcon,Checkbox.CrossIcon=CrossIcon,Checkbox.NeutralIcon=NeutralIcon,Checkbox.FillIcon=DefaultIcon,__webpack_exports__.ZP=Checkbox;try{Input.displayName="Input",Input.__docgenInfo={description:"",displayName:"Input",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Checkbox/Checkbox.tsx#Input"]={docgenInfo:Input.__docgenInfo,name:"Input",path:"src/components/Checkbox/Checkbox.tsx#Input"})}catch(__react_docgen_typescript_loader_error){}try{Label.displayName="Label",Label.__docgenInfo={description:"",displayName:"Label",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Checkbox/Checkbox.tsx#Label"]={docgenInfo:Label.__docgenInfo,name:"Label",path:"src/components/Checkbox/Checkbox.tsx#Label"})}catch(__react_docgen_typescript_loader_error){}try{Box.displayName="Box",Box.__docgenInfo={description:"",displayName:"Box",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Checkbox/Checkbox.tsx#Box"]={docgenInfo:Box.__docgenInfo,name:"Box",path:"src/components/Checkbox/Checkbox.tsx#Box"})}catch(__react_docgen_typescript_loader_error){}try{CheckboxContainer.displayName="CheckboxContainer",CheckboxContainer.__docgenInfo={description:"",displayName:"CheckboxContainer",props:{ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Checkbox/Checkbox.tsx#CheckboxContainer"]={docgenInfo:CheckboxContainer.__docgenInfo,name:"CheckboxContainer",path:"src/components/Checkbox/Checkbox.tsx#CheckboxContainer"})}catch(__react_docgen_typescript_loader_error){}try{BaseIcon.displayName="BaseIcon",BaseIcon.__docgenInfo={description:"",displayName:"BaseIcon",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Checkbox/Checkbox.tsx#BaseIcon"]={docgenInfo:BaseIcon.__docgenInfo,name:"BaseIcon",path:"src/components/Checkbox/Checkbox.tsx#BaseIcon"})}catch(__react_docgen_typescript_loader_error){}try{Checkbox.displayName="Checkbox",Checkbox.__docgenInfo={description:"",displayName:"Checkbox",props:{StyledLabel:{defaultValue:{value:"styled(StyledBaseLabel)`\n ${({ disabled }) => {\n return `\n display: flex;\n align-items: center;\n cursor: pointer;\n height: 2em;\n font-size: 1em;\n \n ${disabled ? disabledStyles() : ''}\n `;\n }}\n`"},description:"",name:"StyledLabel",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledCheckboxContainer:{defaultValue:{value:"styled.div`\n ${() => {\n const { colors } = useTheme();\n return `\n display: inline-block;\n vertical-align: middle;\n &:focus-within {\n ${Box} {\n box-shadow: 0 0 5px 0.150rem ${colors.tertiary};\n }\n }\n `;\n }}\n`"},description:"",name:"StyledCheckboxContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledBox:{defaultValue:{value:"styled(StyledBaseDiv)`\n ${({ variant, checked, checkboxType }) => {\n const { colors } = useTheme();\n let color = colors.grayLight;\n if (checkboxType === CheckboxTypes.check && checked) color = colors.success;\n if (checkboxType === CheckboxTypes.cross && checked) color = colors.destructive;\n const backgroundColor = variant === variants.fill && checked ? color : colors.background;\n\n return `\n ${\n variant === variants.outline || variant === variants.fill\n ? `border: 1px solid ${color};`\n : ''\n } \n background-color: ${backgroundColor};\n border-radius: 2px;\n width: 1em;\n height: 1em;\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: visible;\n margin-right: 0.5em;\n &:hover {\n background-color: ${darken(0.05, backgroundColor)}\n }\n `;\n }}\n`"},description:"",name:"StyledBox",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledInput:{defaultValue:{value:"styled(StyledBaseInput).attrs({ type: 'checkbox' })`\n border: 0;\n clip: rect(0 0 0 0);\n clippath: inset(50%);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n`"},description:"",name:"StyledInput",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledIcon:{defaultValue:null,description:"",name:"StyledIcon",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},labelProps:{defaultValue:{value:"{}"},description:"",name:"labelProps",required:!1,type:{name:"Record"}},checkboxContainerProps:{defaultValue:{value:"{}"},description:"",name:"checkboxContainerProps",required:!1,type:{name:"Record"}},boxProps:{defaultValue:{value:"{}"},description:"",name:"boxProps",required:!1,type:{name:"Record"}},inputProps:{defaultValue:{value:"{}"},description:"",name:"inputProps",required:!1,type:{name:"Record"}},iconProps:{defaultValue:{value:"{}"},description:"",name:"iconProps",required:!1,type:{name:"Record"}},checkboxType:{defaultValue:{value:"CheckboxTypes.check"},description:"",name:"checkboxType",required:!1,type:{name:"enum",value:[{value:'"fill"'},{value:'"cross"'},{value:'"check"'},{value:'"default"'},{value:'"neutral"'}]}},variant:{defaultValue:{value:"variants.fill"},description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"fill"'},{value:'"outline"'},{value:'"text"'}]}},checked:{defaultValue:{value:"false"},description:"",name:"checked",required:!1,type:{name:"boolean"}},disabled:{defaultValue:{value:"false"},description:"",name:"disabled",required:!1,type:{name:"boolean"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!0,type:{name:"(event: MouseEvent) => void"}},containerRef:{defaultValue:null,description:"",name:"containerRef",required:!1,type:{name:"RefObject"}},boxRef:{defaultValue:null,description:"",name:"boxRef",required:!1,type:{name:"RefObject"}},labelRef:{defaultValue:null,description:"",name:"labelRef",required:!1,type:{name:"RefObject"}},inputRef:{defaultValue:null,description:"",name:"inputRef",required:!1,type:{name:"RefObject"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Checkbox/Checkbox.tsx#Checkbox"]={docgenInfo:Checkbox.__docgenInfo,name:"Checkbox",path:"src/components/Checkbox/Checkbox.tsx#Checkbox"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Divider/Divider.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),react_aria__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@react-aria/separator/dist/module.js"),_htmlElements__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/htmlElements/index.tsx"),_context__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/context/index.tsx");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_2__.Fg)();return`\n border: none;\n height: ${height};\n width: ${width};\n background-color: ${colors.grayLight};\n `}} +`,DefaultDividerContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_3__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_1__.xt)` + display: flex; + justify-content: center; + margin-top: 10px; + margin-bottom: 10px; +`,Divider=({StyledDivider:StyledDivider=DefaultDivider,StyledDividerContainer:StyledDividerContainer=DefaultDividerContainer,dividerProps:dividerProps={},dividerContainerProps:dividerContainerProps={},width:width="90%",height:height="1px",containerRef:containerRef,dividerRef:dividerRef})=>{const{separatorProps:ariaProps}=(0,react_aria__WEBPACK_IMPORTED_MODULE_4__.z)(dividerProps);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledDividerContainer,_extends({"data-test-id":"hsui-Divider"},dividerContainerProps,{ref:containerRef}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledDivider,_extends({},ariaProps,{width:width,height:height,ref:dividerRef},dividerProps)))};Divider.Container=DefaultDividerContainer,Divider.Divider=DefaultDivider,__webpack_exports__.ZP=Divider;try{DefaultDivider.displayName="DefaultDivider",DefaultDivider.__docgenInfo={description:"",displayName:"DefaultDivider",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Divider/Divider.tsx#DefaultDivider"]={docgenInfo:DefaultDivider.__docgenInfo,name:"DefaultDivider",path:"src/components/Divider/Divider.tsx#DefaultDivider"})}catch(__react_docgen_typescript_loader_error){}try{DefaultDividerContainer.displayName="DefaultDividerContainer",DefaultDividerContainer.__docgenInfo={description:"",displayName:"DefaultDividerContainer",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Divider/Divider.tsx#DefaultDividerContainer"]={docgenInfo:DefaultDividerContainer.__docgenInfo,name:"DefaultDividerContainer",path:"src/components/Divider/Divider.tsx#DefaultDividerContainer"})}catch(__react_docgen_typescript_loader_error){}try{Divider.displayName="Divider",Divider.__docgenInfo={description:"",displayName:"Divider",props:{StyledDivider:{defaultValue:{value:"styled(StyledBaseHR)`\n ${({ width = '90%', height = '1px' }: { width: string; height: string }) => {\n const { colors } = useTheme();\n return `\n border: none;\n height: ${height};\n width: ${width};\n background-color: ${colors.grayLight};\n `;\n }}\n`"},description:"",name:"StyledDivider",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledDividerContainer:{defaultValue:{value:"styled(StyledBaseDiv)`\n display: flex;\n justify-content: center;\n margin-top: 10px;\n margin-bottom: 10px;\n`"},description:"",name:"StyledDividerContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},dividerProps:{defaultValue:{value:"{}"},description:"",name:"dividerProps",required:!1,type:{name:"Record"}},dividerContainerProps:{defaultValue:{value:"{}"},description:"",name:"dividerContainerProps",required:!1,type:{name:"Record"}},width:{defaultValue:{value:"90%"},description:"",name:"width",required:!1,type:{name:"string"}},height:{defaultValue:{value:"1px"},description:"",name:"height",required:!1,type:{name:"string"}},containerRef:{defaultValue:null,description:"",name:"containerRef",required:!1,type:{name:"RefObject"}},dividerRef:{defaultValue:null,description:"",name:"dividerRef",required:!1,type:{name:"RefObject"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Divider/Divider.tsx#Divider"]={docgenInfo:Divider.__docgenInfo,name:"Divider",path:"src/components/Divider/Divider.tsx#Divider"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Divider/index.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _Divider__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/components/Divider/Divider.tsx");__webpack_exports__.Z=_Divider__WEBPACK_IMPORTED_MODULE_0__.ZP},"./src/components/Dropdown/Dropdown.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_mdi_react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@mdi/react/Icon.js"),_mdi_react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_mdi_react__WEBPACK_IMPORTED_MODULE_1__),_mdi_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/@mdi/js/mdi.js"),polished__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/polished/dist/polished.esm.js"),react_virtuoso__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/react-virtuoso/dist/index.m.js"),fuse_js__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/fuse.js/dist/fuse.esm.js"),_context__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/context/index.tsx"),_Button_Button__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/components/Button/Button.tsx"),_enums_variants__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/enums/variants.ts"),_enums_timings__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/enums/timings.ts"),_htmlElements__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/htmlElements/index.tsx"),_Tag_Tag__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/components/Tag/Tag.tsx"),_utils_color__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/utils/color.ts"),_utils_styles__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./src/utils/styles.ts"),_utils_refs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./src/utils/refs.ts"),_TextInput_TextInput__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./src/components/TextInput/TextInput.tsx");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_2__.Fg)();return`\n width: fit-content;\n transition: filter ${_enums_timings__WEBPACK_IMPORTED_MODULE_5__.Z.slow}, box-shadow ${_enums_timings__WEBPACK_IMPORTED_MODULE_5__.Z.slow};\n ${(0,_utils_styles__WEBPACK_IMPORTED_MODULE_9__.sM)(elevation,colors.shadow)}\n position: relative;\n z-index: ${isOpen?"7":"1"};\n `}} +`,ValueContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_11__.ZP)(_Button_Button__WEBPACK_IMPORTED_MODULE_3__.ZP.Container)` + ${({isOpen:isOpen,isOpenedBelow:isOpenedBelow,isHidden:isHidden})=>{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_2__.Fg)(),openedDirection=isOpenedBelow?"bottom":"top";return`\n user-select: none;\n display: flex;\n justify-content: space-between;\n flex-direction: row;\n align-items: center;\n ${isOpen&&!isHidden?`\n border-${openedDirection}: 0px solid transparent;\n border-${openedDirection}-right-radius: 0rem;\n border-${openedDirection}-left-radius: 0rem;\n `:""}\n width: 15em;\n padding: .5em 1em;\n\n &:focus-within {\n outline: none;\n box-shadow: 0 0 5px 0.150rem ${colors.tertiaryDark};\n }\n `}} +`,CloseIconContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_11__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_6__.xt)` + z-index: 1; + display: flex; + align-items: center; +`,ArrowIconContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_11__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_6__.xt)` + height: 1.125em; + z-index: 1; + pointer-events: none; +`,ValueItem=(0,styled_components__WEBPACK_IMPORTED_MODULE_11__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_6__.xt)` + width: 100%; + text-align: left; +`,OptionsContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_11__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_6__.xt)` + ${({color:color,variant:variant,isOpenedBelow:isOpenedBelow,isHidden:isHidden,isVirtual:isVirtual})=>{const direction=isOpenedBelow?"top":"bottom",borderRadii=isOpenedBelow?"0rem 0rem 0.25rem 0.25rem":"0.25rem 0.25rem 0rem 0rem";return`\n background: white;\n position: absolute;\n left: 0px;\n ${isVirtual?"height: 10em;":"max-height: 10em;"}\n overflow-y: auto;\n width: 15em;\n ${variant!==_enums_variants__WEBPACK_IMPORTED_MODULE_4__.Z.text?`\n border: 1px solid ${color};\n `:""}\n z-index: 1000;\n ${direction}: 100%;\n border-${direction}: 0px solid transparent;\n border-radius: ${borderRadii};\n ${isHidden?"visibility: hidden;":""}\n `}} +`,HiddenOptionsContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_11__.ZP)(OptionsContainer)` + ${({isOpenedBelow:isOpenedBelow})=>`\n visibility: hidden;\n ${isOpenedBelow?"top":"bottom"}: 100%;\n `} +`,OptionItem=(0,styled_components__WEBPACK_IMPORTED_MODULE_11__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_6__.xt)` + ${({selected:selected,color:color,variant:variant})=>{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_2__.Fg)(),unselectedBgColor=(0,_utils_color__WEBPACK_IMPORTED_MODULE_8__.q5)(variant,color),selectedBgColor=(0,polished__WEBPACK_IMPORTED_MODULE_12__.H3)(color)>.5?(0,polished__WEBPACK_IMPORTED_MODULE_12__.wj)(.125,color):(0,polished__WEBPACK_IMPORTED_MODULE_12__.nV)(.5,color),backgroundColor=selected?selectedBgColor:unselectedBgColor;return`\n user-select: none;\n padding: 0.5em;\n display: flex;\n align-items: center;\n color: ${selected?(0,polished__WEBPACK_IMPORTED_MODULE_12__.XV)(backgroundColor,colors.background,color,!0):(0,_utils_color__WEBPACK_IMPORTED_MODULE_8__.qN)(variant,color)};\n background-color: ${backgroundColor};\n &:hover {\n background-color: ${"transparent"!==backgroundColor?(0,polished__WEBPACK_IMPORTED_MODULE_12__._j)(.05,backgroundColor):"rgba(0, 0, 0, 0.05)"};\n cursor: pointer;\n outline: none;\n }\n &:focus {\n outline: none;\n background-color: ${"transparent"!==backgroundColor?(0,polished__WEBPACK_IMPORTED_MODULE_12__._j)(.05,backgroundColor):"rgba(0, 0, 0, 0.1)"};\n }\n `}} +`,CheckContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_11__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_6__.xt)` + ${({color:color})=>{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_2__.Fg)(),backgroundColor=(0,polished__WEBPACK_IMPORTED_MODULE_12__.H3)(color)>.5?(0,polished__WEBPACK_IMPORTED_MODULE_12__.wj)(.125,color):(0,polished__WEBPACK_IMPORTED_MODULE_12__.nV)(.5,color);return`\n display: flex;\n align-items: center;\n justify-content: center;\n color: ${(0,polished__WEBPACK_IMPORTED_MODULE_12__.XV)(backgroundColor,colors.background,color,!0)};\n padding-right: 0.2em;\n width: 2em;\n `}} +`,PlaceholderContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_11__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_6__.xt)` + position: absolute; + opacity: 0.8; +`,ValueItemTagContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_11__.ZP)(_Tag_Tag__WEBPACK_IMPORTED_MODULE_7__.Z.Container)` + ${({dropdownVariant:dropdownVariant,tagVariant:tagVariant,dropdownColor:dropdownColor,transparentColor:transparentColor})=>`\n ${tagVariant===_enums_variants__WEBPACK_IMPORTED_MODULE_4__.Z.text?"\n padding: 0;\n line-height: 1;\n margin-top: 0 !important;\n ":""}\n ${(0,_utils_styles__WEBPACK_IMPORTED_MODULE_9__.FO)(dropdownVariant,tagVariant,dropdownColor,transparentColor)}\n `} +`,SearchContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_11__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_6__.xt)``,SearchInput=(0,styled_components__WEBPACK_IMPORTED_MODULE_11__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_6__.O0)` + all: inherit; + text-align: left; +`,ValuesCountContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_11__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_6__.xt)` + ${({variant:variant,color:color,dropdownVariant:dropdownVariant,transparentColor:transparentColor})=>`\n ${(0,_utils_styles__WEBPACK_IMPORTED_MODULE_9__.FO)(dropdownVariant,variant,color,transparentColor)}\n padding: 0.125rem;\n border-radius: 1.5rem;\n `} +`,defaultCallback=()=>{},Dropdown=({StyledContainer:StyledContainer=Container,StyledValueContainer:StyledValueContainer=ValueContainer,StyledValueItem:StyledValueItem=ValueItem,StyledValueItemTagContainer:StyledValueItemTagContainer=ValueItemTagContainer,StyledOptionsContainer:StyledOptionsContainer=OptionsContainer,StyledHiddenOptionsContainer:StyledHiddenOptionsContainer=HiddenOptionsContainer,StyledOptionItem:StyledOptionItem=OptionItem,StyledCheckContainer:StyledCheckContainer=CheckContainer,StyledPlaceholder:StyledPlaceholder=PlaceholderContainer,StyledCloseIconContainer:StyledCloseIconContainer=CloseIconContainer,StyledArrowIconContainer:StyledArrowIconContainer=ArrowIconContainer,StyledSearchContainer:StyledSearchContainer=SearchContainer,StyledSearchInput:StyledSearchInput=SearchInput,StyledValueCountContainer:StyledValueCountContainer=ValuesCountContainer,containerProps:containerProps,valueContainerProps:valueContainerProps,valueItemProps:valueItemProps,optionsContainerProps:optionsContainerProps,optionItemProps:optionItemProps,checkContainerProps:checkContainerProps,placeholderProps:placeholderProps,closeIconProps:closeIconProps,arrowIconProps:arrowIconProps,valueItemTagProps:valueItemTagProps={},searchInputProps:searchInputProps,searchContainerProps:searchContainerProps,valueCountProps:valueCountProps,containerRef:containerRef,optionsContainerRef:optionsContainerRef,hiddenOptionsContainerRef:hiddenOptionsContainerRef,optionItemRef:optionItemRef,valueContainerRef:valueContainerRef,valueItemRef:valueItemRef,valueItemTagRef:valueItemTagRef,checkContainerRef:checkContainerRef,placeholderRef:placeholderRef,closeIconRef:closeIconRef,arrowIconRef:arrowIconRef,searchContainerRef:searchContainerRef,searchInputRef:searchInputRef,valueCountRef:valueCountRef,color:color,elevation:elevation=0,multi:multi=!1,name:name="dropdown",placeholder:placeholder,onBlur:onBlur,onFocus:onFocus,onClear:onClear,onSelect:onSelect,options:options=[],tabIndex:tabIndex=0,variant:variant=_enums_variants__WEBPACK_IMPORTED_MODULE_4__.Z.outline,optionsVariant:optionsVariant=_enums_variants__WEBPACK_IMPORTED_MODULE_4__.Z.outline,rememberScrollPosition:rememberScrollPosition=!0,valueVariant:valueVariant=_enums_variants__WEBPACK_IMPORTED_MODULE_4__.Z.text,valueCountVariant:valueCountVariant=_enums_variants__WEBPACK_IMPORTED_MODULE_4__.Z.outline,values:values=[],shouldStayInView:shouldStayInView=!0,intersectionThreshold:intersectionThreshold=1,intersectionContainer:intersectionContainer=null,intersectionObserverPrecision:intersectionObserverPrecision=100,virtualizeOptions:virtualizeOptions=!0,showValueCount:showValueCount=!1,showSelectedValues:showSelectedValues=!0,clearable:clearable=!0,searchable:searchable=!1,searchFiltersOptions:searchFiltersOptions=!0,onSearchChange:onSearchChange=defaultCallback,onDebouncedSearchChange:onDebouncedSearchChange=defaultCallback})=>{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_2__.Fg)(),defaultedColor=color||colors.grayDark,[isOpen,setIsOpen]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),containerInternalRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),optionsContainerInternalRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),hiddenOptionsContainerInternalRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),[focusWithin,setFocusWithin]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),[focusTimeoutId,setFocusTimeoutId]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(),[searchValue,setSearchValue]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(),scrollPos=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0),[isOpenedBelow,setIsOpenedBelow]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!0),[isHidden,setIsHidden]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!0),[isPageScrollingDown,setIsPageScrollingDown]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),prevIntersectionRatio=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(.5),ticking=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(!1),[scrollIndex,setScrollIndex]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(0),[isOverflowing,setIsOverflowing]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!0),handleEventWithAnalytics=(0,_context__WEBPACK_IMPORTED_MODULE_2__.z$)(),handleOnBlur=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((e=>handleEventWithAnalytics("Dropdown",onBlur||(()=>{}),"onBlur",e,{name:name})),[handleEventWithAnalytics,onBlur,name]),handleOnFocus=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((e=>handleEventWithAnalytics("Dropdown",onFocus||(()=>{}),"onFocus",e,{name:name})),[handleEventWithAnalytics,onFocus,name]),handleOnClear=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((e=>handleEventWithAnalytics("Dropdown",onClear||(()=>{}),"onClear",e,{name:name})),[handleEventWithAnalytics,onClear,name]),isVirtual=virtualizeOptions&&isOverflowing,inputRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),[searchCharacterCount,setSearchCharacterCount]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(0),[filteredOptions,setFilteredOptions]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)([]),stringifiedOptions=JSON.stringify(options);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{setFilteredOptions(options)}),[stringifiedOptions]);const placeholderMergedProps=_objectSpread({StyledContainer:PlaceholderContainer},placeholderProps);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{if(isOpen&&shouldStayInView){const threshold=0;let lastScrollY=window.pageYOffset;const updateScrollDir=()=>{const scrollY=window.pageYOffset;Math.abs(scrollY-lastScrollY)lastScrollY),lastScrollY=scrollY>0?scrollY:0),ticking.current=!1},onPageScroll=()=>{ticking.current||(window.requestAnimationFrame(updateScrollDir),ticking.current=!0)};return window.addEventListener("scroll",onPageScroll),()=>window.removeEventListener("scroll",onPageScroll)}setIsPageScrollingDown(null)}),[isOpen,shouldStayInView]);const intersectOptions=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>({root:intersectionContainer,rootMargin:"0px",threshold:Array.from(Array(intersectionObserverPrecision).keys(),(i=>i/intersectionObserverPrecision))})),[intersectionContainer,intersectionObserverPrecision]),intersectionCallback=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((entries=>{if(shouldStayInView)if(1===entries.length){const[entry]=entries;entry.intersectionRatiodropdown.intersectionRatio&&setIsOpenedBelow((drop=>!drop))}setIsHidden(!1)}),[shouldStayInView,intersectionThreshold,isPageScrollingDown,isOpenedBelow]),intersectObserver=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>new IntersectionObserver(intersectionCallback,intersectOptions)),[intersectOptions,intersectionCallback]),stringifiedFilteredOptions=JSON.stringify(filteredOptions);(0,react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect)((()=>{let timer;return isOpen&&(timer=window.setTimeout((()=>{const optionsContainer=optionsContainerInternalRef.current,hiddenContainer=hiddenOptionsContainerInternalRef.current;if(optionsContainer)if(shouldStayInView){const virtuosoContainer=optionsContainer.firstElementChild,virtuosoScroller=null==virtuosoContainer?void 0:virtuosoContainer.firstElementChild;virtuosoScroller&&virtuosoScroller.clientHeightoptionsContainer.clientHeight);if(optionsContainer&&hiddenContainer){const optionsContainerHeight=optionsContainer.getBoundingClientRect().height;optionsContainerHeight!==hiddenContainer.getBoundingClientRect().height&&(hiddenContainer.style.height=`${optionsContainerHeight}px`),intersectObserver.observe(optionsContainer),intersectObserver.observe(hiddenContainer)}}),0)),()=>{clearTimeout(timer),intersectObserver.disconnect()}}),[intersectObserver,shouldStayInView,isOpen,stringifiedFilteredOptions]);const optionsHash=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>{const hash={};return options.forEach((option=>{hash[option.id]=_objectSpread(_objectSpread({},option),{},{isSelected:values.includes(option.id)})})),hash}),[options,values]),scrollListener=()=>{scrollPos.current=optionsContainerInternalRef.current?optionsContainerInternalRef.current.scrollTop:0},handleBlur=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((e=>{e.preventDefault(),e.persist(),setFocusTimeoutId(window.setTimeout((()=>{const blurredFromButtom=!searchable&&e.target.id===`${name}-dropdown-button`,blurredFromSearch=searchable&&e.target.id===`${name}-search-input`;focusWithin&&(blurredFromButtom||blurredFromSearch)&&(setFocusWithin(!1),setIsOpen(!1),handleOnBlur&&handleOnBlur(e))}),0))}),[handleOnBlur,focusWithin,name,searchable]),handleFocus=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((e=>{e.persist(),window.setTimeout((()=>{var _document$activeEleme,_inputRef$current;(null===(_document$activeEleme=document.activeElement)||void 0===_document$activeEleme?void 0:_document$activeEleme.id)===`${name}-dropdown-button`&&(null==inputRef||null===(_inputRef$current=inputRef.current)||void 0===_inputRef$current||_inputRef$current.focus())}),0),clearTimeout(focusTimeoutId),focusWithin||(setFocusWithin(!0),setIsHidden(!0),setIsOpenedBelow(!0)),setIsOpen(!0),handleOnFocus&&handleOnFocus(e)}),[focusTimeoutId,focusWithin,handleOnFocus,name]),handleOnSelect=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((selected=>handleEventWithAnalytics("Dropdown",onSelect,"onSelect",selected,{name:name})),[handleEventWithAnalytics,onSelect,name]),handleSelect=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((clickedId=>{if(multi){const newValues=optionsHash[clickedId].isSelected?values.filter((val=>val!==clickedId)):[...values,clickedId];handleOnSelect(newValues)}else setIsOpen(!1),setFocusWithin(!1),handleOnSelect([clickedId])}),[handleOnSelect,multi,values,optionsHash]),handleClear=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((e=>{e.preventDefault(),e.nativeEvent.stopImmediatePropagation(),handleOnSelect(multi?[]:void 0),handleOnClear&&handleOnClear(e)}),[multi,handleOnClear,handleOnSelect]),handleMouseDownOnButton=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((e=>{isOpen?handleBlur(e):(setIsHidden(!0),setIsOpenedBelow(!0),handleFocus(e))}),[isOpen,handleBlur,handleFocus]),keyDownHandler=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((({key:key})=>{window.setTimeout((()=>{var _optionToFocus;const focusedElement=document.activeElement;if(!focusedElement)return;let optionToFocus;switch(key){case"Enter":const match=focusedElement.id.match(`${name}-option-(.*)`);match&&handleSelect(match[1]);break;case"ArrowUp":if(focusedElement.id.match(`${name}-option-.*`))if(isVirtual){const row=focusedElement.parentElement,rowPrevSibling=row?row.previousElementSibling:null;rowPrevSibling&&(optionToFocus=rowPrevSibling.firstElementChild)}else optionToFocus=focusedElement.previousElementSibling;break;case"ArrowDown":if(focusedElement.id===`${name}-dropdown-button`){const optionsContainer=null==focusedElement?void 0:focusedElement.nextElementSibling;if(isVirtual){var _virtuosoScroller$fir;const virtuosoContainer=null==optionsContainer?void 0:optionsContainer.firstElementChild,virtuosoScroller=null==virtuosoContainer?void 0:virtuosoContainer.firstElementChild;optionToFocus=null==virtuosoScroller||null===(_virtuosoScroller$fir=virtuosoScroller.firstElementChild)||void 0===_virtuosoScroller$fir?void 0:_virtuosoScroller$fir.firstElementChild}else optionToFocus=null==optionsContainer?void 0:optionsContainer.firstElementChild}else if(focusedElement.id.match(`${name}-option-.*`))if(isVirtual){const row=focusedElement.parentElement,rowNextSibling=row?row.nextElementSibling:null;rowNextSibling&&(optionToFocus=rowNextSibling.firstElementChild)}else optionToFocus=focusedElement.nextElementSibling;else if(focusedElement.id===`${name}-search-input`){const searchInputContainer=focusedElement.parentElement,button=null==searchInputContainer?void 0:searchInputContainer.parentElement,optionsContainer=null==button?void 0:button.nextElementSibling;if(isVirtual){var _virtuosoScroller$fir2;const virtuosoContainer=null==optionsContainer?void 0:optionsContainer.firstElementChild,virtuosoScroller=null==virtuosoContainer?void 0:virtuosoContainer.firstElementChild;optionToFocus=null==virtuosoScroller||null===(_virtuosoScroller$fir2=virtuosoScroller.firstElementChild)||void 0===_virtuosoScroller$fir2?void 0:_virtuosoScroller$fir2.firstElementChild}else optionToFocus=null==optionsContainer?void 0:optionsContainer.firstElementChild}}null===(_optionToFocus=optionToFocus)||void 0===_optionToFocus||_optionToFocus.focus()}),0)}),[handleSelect,isVirtual,name]);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>(window.removeEventListener("keydown",keyDownHandler),window.addEventListener("keydown",keyDownHandler),()=>{window.removeEventListener("keydown",keyDownHandler)})),[keyDownHandler]);const optionsScrollListenerCallbackRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((node=>{node&&rememberScrollPosition&&(node.addEventListener("scroll",scrollListener,!0),scrollPos.current&&(node.scrollTop=scrollPos.current))}),[rememberScrollPosition]),infoIcons=react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,values.length>0&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,showValueCount&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledValueCountContainer,_extends({variant:valueCountVariant,color:defaultedColor,transparentColor:colors.transparent,ref:valueCountRef,dropdownVariant:variant},valueCountProps),values.length),clearable&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledCloseIconContainer,_extends({onMouseDown:e=>e.stopPropagation(),onClick:handleClear,onFocus:e=>e.stopPropagation(),tabIndex:tabIndex,ref:closeIconRef},closeIconProps),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mdi_react__WEBPACK_IMPORTED_MODULE_1___default(),{path:_mdi_js__WEBPACK_IMPORTED_MODULE_13__.r5M,size:"1em"}))),react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledArrowIconContainer,_extends({ref:arrowIconRef},arrowIconProps,{$isOpen:isOpen}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mdi_react__WEBPACK_IMPORTED_MODULE_1___default(),{path:isOpen?_mdi_js__WEBPACK_IMPORTED_MODULE_13__.MzE:_mdi_js__WEBPACK_IMPORTED_MODULE_13__.iW9,size:"1.25em"}))),InternalOptionsContainer=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({children:children},listRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledOptionsContainer,_extends({color:defaultedColor,variant:optionsVariant,isVirtual:isVirtual,role:"listbox",ref:(0,_utils_refs__WEBPACK_IMPORTED_MODULE_14__.l)([optionsContainerRef,optionsContainerInternalRef,listRef]),isOpenedBelow:isOpenedBelow,isHidden:isHidden},optionsContainerProps),children)))),[defaultedColor,isHidden,isOpenedBelow,isVirtual,optionsContainerProps,optionsContainerRef,optionsVariant]),handleSearchChange=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((e=>{setSearchValue(e.target.value),handleEventWithAnalytics("Dropdown",onSearchChange,"onSearchChange",e,{name:name})}),[handleEventWithAnalytics,onSearchChange,name]),optionsToRender=searchable&&searchFiltersOptions?filteredOptions:options,persistPlaceholder=!showSelectedValues&&!focusWithin,blurredEmptyArrEmptySearch=!(0!==searchCharacterCount||values&&values.length||focusWithin);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledContainer,_extends({id:`${name}-container`,elevation:elevation,isOpen:isOpen,onBlur:handleBlur,onFocus:handleFocus,name:name,"aria-label":placeholder,ref:(0,_utils_refs__WEBPACK_IMPORTED_MODULE_14__.l)([containerRef,containerInternalRef]),onMouseDown:handleMouseDownOnButton},containerProps),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button_Button__WEBPACK_IMPORTED_MODULE_3__.ZP,_extends({StyledContainer:StyledValueContainer,id:`${name}-dropdown-button`,color:defaultedColor,onMouseDown:handleMouseDownOnButton,variant:variant,containerRef:valueContainerRef},valueContainerProps,{containerProps:_objectSpread({isOpen:isOpen,isOpenedBelow:isOpenedBelow,isHidden:isHidden},valueContainerProps?valueContainerProps.containerProps:{})}),(blurredEmptyArrEmptySearch||persistPlaceholder)&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledPlaceholder,_extends({ref:placeholderRef,id:`${name}-placeholder`},placeholderMergedProps),placeholder),searchable&&focusWithin&&isOpen?react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TextInput_TextInput__WEBPACK_IMPORTED_MODULE_10__.Z,{id:`${name}-search-input`,containerRef:searchContainerRef,"aria-label":`${name}-search-input`,role:"searchbox",onChange:handleSearchChange,value:searchValue,debouncedOnChange:e=>{handleEventWithAnalytics("Dropdown",onDebouncedSearchChange,"onDebouncedSearchChange",e,{name:name});const searchText=e.target.value;if(setSearchCharacterCount(searchText.length),searchFiltersOptions)if(0===searchText.length)setFilteredOptions(options);else{const result=new fuse_js__WEBPACK_IMPORTED_MODULE_15__.Z(options,{keys:["id","optionValue"]}).search(searchText);setFilteredOptions(result.map((r=>r.item)))}},StyledContainer:StyledSearchContainer,StyledInput:StyledSearchInput,inputRef:(0,_utils_refs__WEBPACK_IMPORTED_MODULE_14__.l)([searchInputRef,inputRef]),autoComplete:"off",inputProps:searchInputProps,containerProps:searchContainerProps}):react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledValueItem,_extends({id:`${name}-value-item`,ref:valueItemRef},valueItemProps),showSelectedValues?values.filter((val=>void 0!==val&&void 0!==optionsHash[val])).map(((val,i,arr)=>void 0!==optionsHash[val]?react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Tag_Tag__WEBPACK_IMPORTED_MODULE_7__.Z,_extends({StyledContainer:StyledValueItemTagContainer,variant:valueVariant,containerRef:valueItemTagRef},valueItemTagProps,{containerProps:_objectSpread({dropdownVariant:variant,tagVariant:valueVariant,dropdownColor:defaultedColor,transparentColor:colors.transparent},valueItemTagProps.containerProps||{}),key:val}),optionsHash[val].optionValue,valueVariant===_enums_variants__WEBPACK_IMPORTED_MODULE_4__.Z.text&&i!==arr.length-1&&","):void 0)):void 0),infoIcons),isOpen&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,isVirtual?react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_virtuoso__WEBPACK_IMPORTED_MODULE_16__.OO,{data:optionsToRender,rangeChanged:range=>setScrollIndex(range.startIndex),initialTopMostItemIndex:rememberScrollPosition&&scrollIndexreact__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledOptionItem,_extends({id:`${name}-option-${option.id}`,key:`${name}-option-${option.id}`,onClick:()=>handleSelect(option.id),tabIndex:-1,color:defaultedColor,variant:optionsVariant,multi:multi,selected:optionsHash[option.id].isSelected,ref:optionItemRef,role:"option"},optionItemProps),multi&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledCheckContainer,_extends({color:defaultedColor,selected:optionsHash[option.id].isSelected,variant:optionsVariant,multi:multi,ref:checkContainerRef},checkContainerProps),optionsHash[option.id].isSelected&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mdi_react__WEBPACK_IMPORTED_MODULE_1___default(),{path:_mdi_js__WEBPACK_IMPORTED_MODULE_13__.oL1,size:"1em"})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_htmlElements__WEBPACK_IMPORTED_MODULE_6__.aQ,null,option.optionValue))}):react__WEBPACK_IMPORTED_MODULE_0__.createElement(InternalOptionsContainer,{ref:optionsScrollListenerCallbackRef},optionsToRender.map((option=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledOptionItem,_extends({id:`${name}-option-${option.id}`,key:`${name}-option-${option.id}`,onClick:()=>handleSelect(option.id),tabIndex:-1,color:defaultedColor,variant:optionsVariant,multi:multi,selected:optionsHash[option.id].isSelected,ref:optionItemRef,role:"option"},optionItemProps),multi&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledCheckContainer,_extends({color:defaultedColor,selected:optionsHash[option.id].isSelected,variant:optionsVariant,multi:multi,ref:checkContainerRef},checkContainerProps),optionsHash[option.id].isSelected&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mdi_react__WEBPACK_IMPORTED_MODULE_1___default(),{path:_mdi_js__WEBPACK_IMPORTED_MODULE_13__.oL1,size:"1em"})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_htmlElements__WEBPACK_IMPORTED_MODULE_6__.aQ,null,option.optionValue))))),shouldStayInView&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledHiddenOptionsContainer,{ref:(0,_utils_refs__WEBPACK_IMPORTED_MODULE_14__.l)([hiddenOptionsContainerInternalRef,hiddenOptionsContainerRef]),isOpenedBelow:!isOpenedBelow})))};Dropdown.Container=Container,Dropdown.OptionsContainer=OptionsContainer,Dropdown.HiddenOptionsContainer=HiddenOptionsContainer,Dropdown.OptionItem=OptionItem,Dropdown.ValueContainer=ValueContainer,Dropdown.ValueItem=ValueItem,Dropdown.ValueItemTagContainer=ValueItemTagContainer,Dropdown.Placeholder=PlaceholderContainer,__webpack_exports__.ZP=Dropdown;try{ValueContainer.displayName="ValueContainer",ValueContainer.__docgenInfo={description:"",displayName:"ValueContainer",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Dropdown/Dropdown.tsx#ValueContainer"]={docgenInfo:ValueContainer.__docgenInfo,name:"ValueContainer",path:"src/components/Dropdown/Dropdown.tsx#ValueContainer"})}catch(__react_docgen_typescript_loader_error){}try{CloseIconContainer.displayName="CloseIconContainer",CloseIconContainer.__docgenInfo={description:"",displayName:"CloseIconContainer",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Dropdown/Dropdown.tsx#CloseIconContainer"]={docgenInfo:CloseIconContainer.__docgenInfo,name:"CloseIconContainer",path:"src/components/Dropdown/Dropdown.tsx#CloseIconContainer"})}catch(__react_docgen_typescript_loader_error){}try{ArrowIconContainer.displayName="ArrowIconContainer",ArrowIconContainer.__docgenInfo={description:"",displayName:"ArrowIconContainer",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Dropdown/Dropdown.tsx#ArrowIconContainer"]={docgenInfo:ArrowIconContainer.__docgenInfo,name:"ArrowIconContainer",path:"src/components/Dropdown/Dropdown.tsx#ArrowIconContainer"})}catch(__react_docgen_typescript_loader_error){}try{Dropdown.displayName="Dropdown",Dropdown.__docgenInfo={description:"",displayName:"Dropdown",props:{StyledContainer:{defaultValue:{value:"styled(StyledBaseDiv)`\n ${({ elevation, isOpen }) => {\n const { colors } = useTheme();\n return `\n width: fit-content;\n transition: filter ${timings.slow}, box-shadow ${timings.slow};\n ${getShadowStyle(elevation, colors.shadow)}\n position: relative;\n z-index: ${isOpen ? '7' : '1'};\n `;\n }}\n`"},description:"",name:"StyledContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledValueContainer:{defaultValue:{value:"styled(Button.Container)`\n ${({ isOpen, isOpenedBelow, isHidden }) => {\n const { colors } = useTheme();\n const openedDirection = isOpenedBelow ? 'bottom' : 'top';\n const openStyle = `\n border-${openedDirection}: 0px solid transparent;\n border-${openedDirection}-right-radius: 0rem;\n border-${openedDirection}-left-radius: 0rem;\n `;\n\n return `\n user-select: none;\n display: flex;\n justify-content: space-between;\n flex-direction: row;\n align-items: center;\n ${isOpen && !isHidden ? openStyle : ''}\n width: 15em;\n padding: .5em 1em;\n\n &:focus-within {\n outline: none;\n box-shadow: 0 0 5px 0.150rem ${colors.tertiaryDark};\n }\n `;\n }}\n`"},description:"",name:"StyledValueContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledValueItem:{defaultValue:{value:"styled(StyledBaseDiv)`\n width: 100%;\n text-align: left;\n`"},description:"",name:"StyledValueItem",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledValueItemTagContainer:{defaultValue:{value:"styled(Tag.Container)`\n ${({\n dropdownVariant,\n tagVariant,\n dropdownColor,\n transparentColor,\n }: {\n dropdownVariant: variants;\n tagVariant: variants;\n dropdownColor: string;\n transparentColor: string;\n }) => `\n ${\n tagVariant === variants.text\n ? `\n padding: 0;\n line-height: 1;\n margin-top: 0 !important;\n `\n : ''\n }\n ${getDropdownTagStyle(dropdownVariant, tagVariant, dropdownColor, transparentColor)}\n `}\n`"},description:"",name:"StyledValueItemTagContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledOptionsContainer:{defaultValue:{value:"styled(StyledBaseDiv)`\n ${({\n color,\n variant,\n isOpenedBelow,\n isHidden,\n isVirtual,\n }: UsefulDropdownState & { isVirtual: boolean }) => {\n const direction = isOpenedBelow ? 'top' : 'bottom';\n const borderRadii = isOpenedBelow ? '0rem 0rem 0.25rem 0.25rem' : '0.25rem 0.25rem 0rem 0rem';\n\n return `\n background: white;\n position: absolute;\n left: 0px;\n ${isVirtual ? 'height: 10em;' : 'max-height: 10em;'}\n overflow-y: auto;\n width: 15em;\n ${\n variant !== variants.text\n ? `\n border: 1px solid ${color};\n `\n : ''\n }\n z-index: 1000;\n ${direction}: 100%;\n border-${direction}: 0px solid transparent;\n border-radius: ${borderRadii};\n ${isHidden ? 'visibility: hidden;' : ''}\n `;\n }}\n`"},description:"",name:"StyledOptionsContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledHiddenOptionsContainer:{defaultValue:{value:"styled(OptionsContainer)`\n ${({ isOpenedBelow }) => {\n const direction = isOpenedBelow ? 'top' : 'bottom';\n\n return `\n visibility: hidden;\n ${direction}: 100%;\n `;\n }}\n`"},description:"",name:"StyledHiddenOptionsContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledOptionItem:{defaultValue:{value:"styled(StyledBaseDiv)`\n ${({ selected, color, variant }: UsefulDropdownState) => {\n const { colors } = useTheme();\n const unselectedBgColor = getBackgroundColorFromVariant(variant, color);\n const selectedBgColor = getLuminance(color) > 0.5 ? shade(0.125, color) : tint(0.5, color);\n const backgroundColor = selected ? selectedBgColor : unselectedBgColor;\n return `\n user-select: none;\n padding: 0.5em;\n display: flex;\n align-items: center;\n color: ${\n selected\n ? readableColor(backgroundColor, colors.background, color, true)\n : getFontColorFromVariant(variant, color)\n };\n background-color: ${backgroundColor};\n &:hover {\n background-color: ${\n backgroundColor !== 'transparent' ? darken(0.05, backgroundColor) : 'rgba(0, 0, 0, 0.05)'\n };\n cursor: pointer;\n outline: none;\n }\n &:focus {\n outline: none;\n background-color: ${\n backgroundColor !== 'transparent' ? darken(0.05, backgroundColor) : 'rgba(0, 0, 0, 0.1)'\n };\n }\n `;\n }}\n`"},description:"",name:"StyledOptionItem",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledCheckContainer:{defaultValue:{value:"styled(StyledBaseDiv)`\n ${({ color }: UsefulDropdownState) => {\n const { colors } = useTheme();\n const backgroundColor = getLuminance(color) > 0.5 ? shade(0.125, color) : tint(0.5, color);\n return `\n display: flex;\n align-items: center;\n justify-content: center;\n color: ${readableColor(backgroundColor, colors.background, color, true)};\n padding-right: 0.2em;\n width: 2em;\n `;\n }}\n`"},description:"",name:"StyledCheckContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledPlaceholder:{defaultValue:{value:"styled(StyledBaseDiv)`\n position: absolute;\n opacity: 0.8;\n`"},description:"",name:"StyledPlaceholder",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledCloseIconContainer:{defaultValue:{value:"styled(StyledBaseDiv)`\n z-index: 1;\n display: flex;\n align-items: center;\n`"},description:"",name:"StyledCloseIconContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledArrowIconContainer:{defaultValue:{value:"styled(StyledBaseDiv)`\n height: 1.125em;\n z-index: 1;\n pointer-events: none;\n`"},description:"",name:"StyledArrowIconContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledSearchInput:{defaultValue:{value:"styled(StyledBaseInput)`\n all: inherit;\n text-align: left;\n`"},description:"",name:"StyledSearchInput",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledSearchContainer:{defaultValue:{value:"styled(StyledBaseDiv)``"},description:"",name:"StyledSearchContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledValueCountContainer:{defaultValue:{value:"styled(StyledBaseDiv)`\n ${({\n variant,\n color,\n dropdownVariant,\n transparentColor,\n }: UsefulDropdownState & { dropdownVariant: variants; transparentColor: string }) => {\n return `\n ${getDropdownTagStyle(dropdownVariant, variant, color, transparentColor)}\n padding: 0.125rem;\n border-radius: 1.5rem;\n `;\n }}\n`"},description:"",name:"StyledValueCountContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},containerProps:{defaultValue:null,description:"",name:"containerProps",required:!1,type:{name:"Record"}},valueContainerProps:{defaultValue:null,description:"",name:"valueContainerProps",required:!1,type:{name:"Record"}},valueItemProps:{defaultValue:null,description:"",name:"valueItemProps",required:!1,type:{name:"Record"}},valueItemTagProps:{defaultValue:{value:"{}"},description:"",name:"valueItemTagProps",required:!1,type:{name:"TagProps"}},optionsContainerProps:{defaultValue:null,description:"",name:"optionsContainerProps",required:!1,type:{name:"Record"}},optionItemProps:{defaultValue:null,description:"",name:"optionItemProps",required:!1,type:{name:"Record"}},checkContainerProps:{defaultValue:null,description:"",name:"checkContainerProps",required:!1,type:{name:"Record"}},placeholderProps:{defaultValue:null,description:"",name:"placeholderProps",required:!1,type:{name:"Record"}},closeIconProps:{defaultValue:null,description:"",name:"closeIconProps",required:!1,type:{name:"Record"}},arrowIconProps:{defaultValue:null,description:"",name:"arrowIconProps",required:!1,type:{name:"Record"}},searchInputProps:{defaultValue:null,description:"",name:"searchInputProps",required:!1,type:{name:"Record"}},searchContainerProps:{defaultValue:null,description:"",name:"searchContainerProps",required:!1,type:{name:"Record"}},valueCountProps:{defaultValue:null,description:"",name:"valueCountProps",required:!1,type:{name:"Record"}},containerRef:{defaultValue:null,description:"",name:"containerRef",required:!1,type:{name:"RefObject"}},optionsContainerRef:{defaultValue:null,description:"",name:"optionsContainerRef",required:!1,type:{name:"RefObject"}},hiddenOptionsContainerRef:{defaultValue:null,description:"",name:"hiddenOptionsContainerRef",required:!1,type:{name:"RefObject"}},optionItemRef:{defaultValue:null,description:"",name:"optionItemRef",required:!1,type:{name:"RefObject"}},valueContainerRef:{defaultValue:null,description:"",name:"valueContainerRef",required:!1,type:{name:"RefObject"}},valueItemRef:{defaultValue:null,description:"",name:"valueItemRef",required:!1,type:{name:"RefObject"}},valueItemTagRef:{defaultValue:null,description:"",name:"valueItemTagRef",required:!1,type:{name:"RefObject"}},checkContainerRef:{defaultValue:null,description:"",name:"checkContainerRef",required:!1,type:{name:"RefObject"}},placeholderRef:{defaultValue:null,description:"",name:"placeholderRef",required:!1,type:{name:"RefObject"}},closeIconRef:{defaultValue:null,description:"",name:"closeIconRef",required:!1,type:{name:"RefObject"}},arrowIconRef:{defaultValue:null,description:"",name:"arrowIconRef",required:!1,type:{name:"RefObject"}},searchContainerRef:{defaultValue:null,description:"",name:"searchContainerRef",required:!1,type:{name:"RefObject"}},searchInputRef:{defaultValue:null,description:"",name:"searchInputRef",required:!1,type:{name:"RefObject"}},valueCountRef:{defaultValue:null,description:"",name:"valueCountRef",required:!1,type:{name:"RefObject"}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"string"}},elevation:{defaultValue:{value:"0"},description:"",name:"elevation",required:!1,type:{name:"number"}},multi:{defaultValue:{value:"false"},description:"",name:"multi",required:!1,type:{name:"boolean"}},name:{defaultValue:{value:"dropdown"},description:"",name:"name",required:!1,type:{name:"string"}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"string"}},componentUUID:{defaultValue:null,description:"",name:"componentUUID",required:!1,type:{name:"string"}},onBlur:{defaultValue:null,description:"",name:"onBlur",required:!1,type:{name:"(() => void)"}},onFocus:{defaultValue:null,description:"",name:"onFocus",required:!1,type:{name:"(() => void)"}},onClear:{defaultValue:null,description:"",name:"onClear",required:!1,type:{name:"(() => void)"}},onSelect:{defaultValue:null,description:"",name:"onSelect",required:!0,type:{name:"(selected?: (string | number)[] | undefined) => void"}},rememberScrollPosition:{defaultValue:{value:"true"},description:"",name:"rememberScrollPosition",required:!1,type:{name:"boolean"}},values:{defaultValue:{value:"[]"},description:"",name:"values",required:!1,type:{name:"(string | number)[]"}},options:{defaultValue:{value:"[]"},description:"",name:"options",required:!1,type:{name:"OptionProps[]"}},tabIndex:{defaultValue:{value:"0"},description:"",name:"tabIndex",required:!1,type:{name:"number"}},variant:{defaultValue:{value:"variants.outline"},description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"fill"'},{value:'"outline"'},{value:'"text"'}]}},optionsVariant:{defaultValue:{value:"variants.outline"},description:"",name:"optionsVariant",required:!1,type:{name:"enum",value:[{value:'"fill"'},{value:'"outline"'},{value:'"text"'}]}},valueVariant:{defaultValue:{value:"variants.text"},description:"",name:"valueVariant",required:!1,type:{name:"enum",value:[{value:'"fill"'},{value:'"outline"'},{value:'"text"'}]}},valueCountVariant:{defaultValue:{value:"variants.outline"},description:"",name:"valueCountVariant",required:!1,type:{name:"enum",value:[{value:'"fill"'},{value:'"outline"'},{value:'"text"'}]}},shouldStayInView:{defaultValue:{value:"true"},description:"",name:"shouldStayInView",required:!1,type:{name:"boolean"}},intersectionThreshold:{defaultValue:{value:"1"},description:"",name:"intersectionThreshold",required:!1,type:{name:"number"}},intersectionContainer:{defaultValue:{value:"null"},description:"",name:"intersectionContainer",required:!1,type:{name:"HTMLElement | null"}},intersectionObserverPrecision:{defaultValue:{value:"100"},description:"",name:"intersectionObserverPrecision",required:!1,type:{name:"number"}},virtualizeOptions:{defaultValue:{value:"true"},description:"",name:"virtualizeOptions",required:!1,type:{name:"boolean"}},showValueCount:{defaultValue:{value:"false"},description:"",name:"showValueCount",required:!1,type:{name:"boolean"}},showSelectedValues:{defaultValue:{value:"true"},description:"",name:"showSelectedValues",required:!1,type:{name:"boolean"}},clearable:{defaultValue:{value:"true"},description:"",name:"clearable",required:!1,type:{name:"boolean"}},searchable:{defaultValue:{value:"false"},description:"",name:"searchable",required:!1,type:{name:"boolean"}},searchFiltersOptions:{defaultValue:{value:"true"},description:"",name:"searchFiltersOptions",required:!1,type:{name:"boolean"}},onSearchChange:{defaultValue:{value:"() => {}"},description:"",name:"onSearchChange",required:!1,type:{name:"(((event: ChangeEvent) => void) & ((event: ChangeEvent) => void))"}},onDebouncedSearchChange:{defaultValue:{value:"() => {}"},description:"",name:"onDebouncedSearchChange",required:!1,type:{name:"((event: ChangeEvent) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Dropdown/Dropdown.tsx#Dropdown"]={docgenInfo:Dropdown.__docgenInfo,name:"Dropdown",path:"src/components/Dropdown/Dropdown.tsx#Dropdown"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Dropdown/index.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _Dropdown__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/components/Dropdown/Dropdown.tsx");__webpack_exports__.Z=_Dropdown__WEBPACK_IMPORTED_MODULE_0__.ZP},"./src/components/InteractionFeedback/InteractionFeedback.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _react_spring_web__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@react-spring/web/dist/react-spring-web.esm.js"),react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),use_resize_observer_polyfilled__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/use-resize-observer/polyfilled.js"),use_resize_observer_polyfilled__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(use_resize_observer_polyfilled__WEBPACK_IMPORTED_MODULE_5__),_utils_math__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/utils/math.ts"),_context__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/context/index.tsx"),_enums_colors__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/enums/colors.ts"),_utils_refs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/utils/refs.ts");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;ir.to((val=>`${Math.abs(parseFloat(val)).toFixed(1)}`)),opacity:opacity=>opacity.to((val=>val.toFixed(2)))},defaultTransitionProps={from:{r:0,opacity:.5},enter:{r:100,opacity:0},config:{mass:90,tension:1e3,friction:20,round:1,clamp:!1}},InteractionFeedback=({StyledContainer:StyledContainer=Container,StyledSVGContainer:StyledSVGContainer=SVGContainer,containerRef:containerRef,SVGContainerRef:SVGContainerRef,containerProps:containerProps={},svgContainerProps:svgContainerProps={},color:color=_enums_colors__WEBPACK_IMPORTED_MODULE_3__.Z.primary,children:children,interpolationFunctions:interpolationFunctions=defaultInterpolationFunctions,transitionProps:transitionProps=_objectSpread({},defaultTransitionProps)})=>{const internalRef=(0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null),{ref:ref,width:width=0,height:height=0}=use_resize_observer_polyfilled__WEBPACK_IMPORTED_MODULE_5___default()(),[animations,setAnimations]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)([]),fragment=(0,_react_spring_web__WEBPACK_IMPORTED_MODULE_0__.useTransition)(animations,_objectSpread({keys:item=>item.id,onRest:item=>setAnimations((a=>a.filter((ani=>ani.id===item.id))))},transitionProps))(((style,item)=>{const circleProps=Object.entries(style).reduce(((acc,[key,val])=>_objectSpread(_objectSpread({},acc),{},{[key]:interpolationFunctions[key]?interpolationFunctions[key](val):val})),{});return react__WEBPACK_IMPORTED_MODULE_1__.createElement(_react_spring_web__WEBPACK_IMPORTED_MODULE_0__.animated.circle,_extends({cx:item.cx,cy:item.cy,fill:color},circleProps))})),mouseDownHandler=(0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((e=>{if(internalRef&&internalRef.current){e.persist();const boundingRect=internalRef.current.getBoundingClientRect(),{clientX:clientX,clientY:clientY}=e,percentX=100*(clientX-boundingRect.left)/boundingRect.width,percentY=100*(clientY-boundingRect.top)/boundingRect.height;setAnimations((a=>[...a,{cx:`${percentX}%`,cy:`${percentY}%`,id:(0,_utils_math__WEBPACK_IMPORTED_MODULE_6__.k)(18)}]))}}),[internalRef]),handleEventWithAnalytics=(0,_context__WEBPACK_IMPORTED_MODULE_2__.z$)();return react__WEBPACK_IMPORTED_MODULE_1__.createElement(StyledContainer,_extends({ref:(0,_utils_refs__WEBPACK_IMPORTED_MODULE_7__.l)([ref,internalRef,containerRef]),onMouseDown:e=>handleEventWithAnalytics("InteractionFeedback",mouseDownHandler,"onMouseDown",e,containerProps)},containerProps),children,react__WEBPACK_IMPORTED_MODULE_1__.createElement(StyledSVGContainer,_extends({width:`${width}px`,height:`${height}px`,viewBox:`0 0 ${width} ${height}`,ref:SVGContainerRef},svgContainerProps),fragment))};InteractionFeedback.Container=Container,InteractionFeedback.SVGContainer=SVGContainer,InteractionFeedback.defaultTransitionProps=defaultTransitionProps,InteractionFeedback.defaultInterpolationFunctions=defaultInterpolationFunctions,__webpack_exports__.Z=InteractionFeedback;try{InteractionFeedback.displayName="InteractionFeedback",InteractionFeedback.__docgenInfo={description:"",displayName:"InteractionFeedback",props:{StyledContainer:{defaultValue:{value:"styled(animated.div)`\n position: relative;\n`"},description:"",name:"StyledContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledSVGContainer:{defaultValue:{value:"styled.svg`\n pointer-events: none;\n position: absolute;\n top: 0;\n left: 0;\n`"},description:"",name:"StyledSVGContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},containerProps:{defaultValue:{value:"{}"},description:"",name:"containerProps",required:!1,type:{name:"Record"}},svgContainerProps:{defaultValue:{value:"{}"},description:"",name:"svgContainerProps",required:!1,type:{name:"Record"}},color:{defaultValue:{value:"colors.primary"},description:"",name:"color",required:!1,type:{name:"string"}},interpolationFunctions:{defaultValue:{value:"{\n r: (r: any) => r.to((val: string) => `${Math.abs(parseFloat(val)).toFixed(1)}`),\n opacity: (opacity: any) => opacity.to((val: number) => val.toFixed(2)),\n}"},description:"",name:"interpolationFunctions",required:!1,type:{name:"Record any>"}},transitionProps:{defaultValue:{value:"{ ...defaultTransitionProps }"},description:"",name:"transitionProps",required:!1,type:{name:"any"}},containerRef:{defaultValue:null,description:"",name:"containerRef",required:!1,type:{name:"RefObject"}},SVGContainerRef:{defaultValue:null,description:"",name:"SVGContainerRef",required:!1,type:{name:"RefObject"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/InteractionFeedback/InteractionFeedback.tsx#InteractionFeedback"]={docgenInfo:InteractionFeedback.__docgenInfo,name:"InteractionFeedback",path:"src/components/InteractionFeedback/InteractionFeedback.tsx#InteractionFeedback"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/InteractionFeedback/index.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _InteractionFeedback__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/components/InteractionFeedback/InteractionFeedback.tsx");__webpack_exports__.Z=_InteractionFeedback__WEBPACK_IMPORTED_MODULE_0__.Z},"./src/components/Label/Label.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_mdi_react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@mdi/react/Icon.js"),_mdi_react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_mdi_react__WEBPACK_IMPORTED_MODULE_1__),_mdi_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@mdi/js/mdi.js"),react_aria__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@react-aria/label/dist/module.js"),_htmlElements__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/htmlElements/index.tsx"),_context__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/context/index.tsx");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_3__.Fg)();return`\n display: inline-flex;\n color: ${color||colors.grayLight};\n margin-bottom: .25em;\n font-size: .75em;\n `}} +`,DefaultStyledTextContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_4__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_2__.xt)``,DefaultStyledLabelContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_4__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_2__.xt)``,DefaultStyledIconContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_4__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_2__.aQ)` + display: inline-flex; + margin-left: 0.25em; +`,Label=({StyledLabelContainer:StyledLabelContainer=DefaultStyledLabelContainer,StyledTextContainer:StyledTextContainer=DefaultStyledTextContainer,StyledLabel:StyledLabel=DefaultStyledLabel,StyledIconContainer:StyledIconContainer=DefaultStyledIconContainer,labelContainerProps:labelContainerProps={},textContainerProps:textContainerProps={},labelProps:labelProps={},iconContainerProps:iconContainerProps={},labelContainerRef:labelContainerRef,textContainerRef:textContainerRef,iconContainerRef:iconContainerRef,labelRef:labelRef,labelText:labelText,color:color,isValid:isValid,colorValid:colorValid,colorInvalid:colorInvalid,htmlFor:htmlFor="default",isRequired:isRequired=!1,children:children})=>{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_3__.Fg)();let shownColor,shownIcon;!0===isValid?(shownColor=colorValid||colors.success,shownIcon=_mdi_js__WEBPACK_IMPORTED_MODULE_5__.YKm):!1===isValid?(shownColor=colorInvalid||colors.destructive,shownIcon=isRequired?_mdi_js__WEBPACK_IMPORTED_MODULE_5__.AD$:""):(shownColor=color||colors.grayLight,shownIcon=isRequired?_mdi_js__WEBPACK_IMPORTED_MODULE_5__.AD$:"");const mergedLabelProps=_objectSpread(_objectSpread({},labelProps),{},labelText?{label:labelText}:{"aria-label":"label"}),{labelProps:ariaProps,fieldProps:ariaFieldProps}=(0,react_aria__WEBPACK_IMPORTED_MODULE_6__.N)(mergedLabelProps),childrenWithAriaProps=react__WEBPACK_IMPORTED_MODULE_0__.Children.map(children,(child=>react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(child)?react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(child,_objectSpread(_objectSpread({},ariaFieldProps),child.props)):child));return react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledLabelContainer,_extends({ref:labelContainerRef},labelContainerProps),react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledTextContainer,_extends({ref:textContainerRef},textContainerProps),react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledLabel,_extends({},ariaProps,{htmlFor:htmlFor,color:shownColor,ref:labelRef},labelProps),labelText),react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledIconContainer,_extends({"aria-hidden":"true",ref:iconContainerRef},iconContainerProps),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mdi_react__WEBPACK_IMPORTED_MODULE_1___default(),{path:shownIcon,size:".75em",color:shownColor}))),1===react__WEBPACK_IMPORTED_MODULE_0__.Children.count(children)?childrenWithAriaProps:children)};Label.LabelContainer=DefaultStyledLabelContainer,Label.TextContainer=DefaultStyledTextContainer,Label.Label=DefaultStyledLabel,Label.IconContainer=DefaultStyledIconContainer,__webpack_exports__.ZP=Label;try{DefaultStyledLabel.displayName="DefaultStyledLabel",DefaultStyledLabel.__docgenInfo={description:"",displayName:"DefaultStyledLabel",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Label/Label.tsx#DefaultStyledLabel"]={docgenInfo:DefaultStyledLabel.__docgenInfo,name:"DefaultStyledLabel",path:"src/components/Label/Label.tsx#DefaultStyledLabel"})}catch(__react_docgen_typescript_loader_error){}try{DefaultStyledTextContainer.displayName="DefaultStyledTextContainer",DefaultStyledTextContainer.__docgenInfo={description:"",displayName:"DefaultStyledTextContainer",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Label/Label.tsx#DefaultStyledTextContainer"]={docgenInfo:DefaultStyledTextContainer.__docgenInfo,name:"DefaultStyledTextContainer",path:"src/components/Label/Label.tsx#DefaultStyledTextContainer"})}catch(__react_docgen_typescript_loader_error){}try{DefaultStyledLabelContainer.displayName="DefaultStyledLabelContainer",DefaultStyledLabelContainer.__docgenInfo={description:"",displayName:"DefaultStyledLabelContainer",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Label/Label.tsx#DefaultStyledLabelContainer"]={docgenInfo:DefaultStyledLabelContainer.__docgenInfo,name:"DefaultStyledLabelContainer",path:"src/components/Label/Label.tsx#DefaultStyledLabelContainer"})}catch(__react_docgen_typescript_loader_error){}try{Label.displayName="Label",Label.__docgenInfo={description:"",displayName:"Label",props:{StyledLabelContainer:{defaultValue:{value:"styled(StyledBaseDiv)``"},description:"",name:"StyledLabelContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledTextContainer:{defaultValue:{value:"styled(StyledBaseDiv)``"},description:"",name:"StyledTextContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledLabel:{defaultValue:{value:"styled(StyledBaseLabel)`\n ${({ color }: { color: string }) => {\n const { colors } = useTheme();\n const labelColor = color || colors.grayLight;\n return `\n display: inline-flex;\n color: ${labelColor};\n margin-bottom: .25em;\n font-size: .75em;\n `;\n }}\n`"},description:"",name:"StyledLabel",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledIconContainer:{defaultValue:{value:"styled(StyledBaseSpan)`\n display: inline-flex;\n margin-left: 0.25em;\n`"},description:"",name:"StyledIconContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},labelContainerProps:{defaultValue:{value:"{}"},description:"",name:"labelContainerProps",required:!1,type:{name:"Record"}},textContainerProps:{defaultValue:{value:"{}"},description:"",name:"textContainerProps",required:!1,type:{name:"Record"}},labelProps:{defaultValue:{value:"{}"},description:"",name:"labelProps",required:!1,type:{name:"Record"}},iconContainerProps:{defaultValue:{value:"{}"},description:"",name:"iconContainerProps",required:!1,type:{name:"Record"}},labelContainerRef:{defaultValue:null,description:"",name:"labelContainerRef",required:!1,type:{name:"RefObject"}},textContainerRef:{defaultValue:null,description:"",name:"textContainerRef",required:!1,type:{name:"RefObject"}},iconContainerRef:{defaultValue:null,description:"",name:"iconContainerRef",required:!1,type:{name:"RefObject"}},labelRef:{defaultValue:null,description:"",name:"labelRef",required:!1,type:{name:"RefObject"}},labelText:{defaultValue:null,description:"",name:"labelText",required:!1,type:{name:"string"}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"string"}},isValid:{defaultValue:null,description:"",name:"isValid",required:!1,type:{name:"boolean"}},colorValid:{defaultValue:null,description:"",name:"colorValid",required:!1,type:{name:"string"}},colorInvalid:{defaultValue:null,description:"",name:"colorInvalid",required:!1,type:{name:"string"}},htmlFor:{defaultValue:{value:"default"},description:"",name:"htmlFor",required:!1,type:{name:"string"}},isRequired:{defaultValue:{value:"false"},description:"",name:"isRequired",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Label/Label.tsx#Label"]={docgenInfo:Label.__docgenInfo,name:"Label",path:"src/components/Label/Label.tsx#Label"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Label/index.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _Label__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/components/Label/Label.tsx");__webpack_exports__.Z=_Label__WEBPACK_IMPORTED_MODULE_0__.ZP},"./src/components/Modal/Modal.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_mdi_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/@mdi/js/mdi.js"),_react_spring_web__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@react-spring/web/dist/react-spring-web.esm.js"),react_portal__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/react-portal/es/PortalCompat.js"),polished__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/polished/dist/polished.esm.js"),_enums_variants__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/enums/variants.ts"),_Button_Button__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/components/Button/Button.tsx"),_htmlElements__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/htmlElements/index.tsx"),_context__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/context/index.tsx");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i{let distance,position,display="inline-flex";switch(closeButtonAttachment){case"inside":distance=".5rem",position="absolute";break;case"outside":distance="-2rem",position="absolute";break;case"corner":distance="1rem",position="fixed";break;case"none":distance="0rem",position="absolute",display="none";break;default:distance="0rem",position="absolute"}return`\n position: ${position};\n top: ${distance};\n right: ${distance};\n z-index: 1011;\n border-radius: 50%;\n padding: .5rem;\n display: ${display};\n `}} +`,Modal=(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((({StyledContainer:StyledContainer=Container,StyledUnderlay:StyledUnderlay=Underlay,StyledCloseButton:StyledCloseButton=CloseButton,StyledCloseButtonContainer:StyledCloseButtonContainer=CloseButtonContainer,containerProps:containerProps={},underlayProps:underlayProps={},closeButtonProps:closeButtonProps={},closeButtonContainerProps:closeButtonContainerProps={},containerRef:containerRef,closeButtonContainerRef:closeButtonContainerRef,underlayRef:underlayRef,animationSpringConfig:animationSpringConfig={},children:children,onClickOutside:onClickOutside,onClose:onClose=(()=>{}),closeButtonAttachment:closeButtonAttachment="inside",backgroundBlur:backgroundBlur="0.5rem",backgroundDarkness:backgroundDarkness=.2},forwardedRef)=>{const{colors:colors,accessibilityPreferences:{prefersReducedMotion:prefersReducedMotion},performanceInfo:{tier:gpuTier}}=(0,_context__WEBPACK_IMPORTED_MODULE_5__.Fg)(),{styles:containerStyles}=containerProps,{styles:underlayStyles}=underlayProps,handleEventWithAnalytics=(0,_context__WEBPACK_IMPORTED_MODULE_5__.z$)(),handleClickOutside=e=>{onClickOutside&&handleEventWithAnalytics("Modal",onClickOutside,"onClickOutside",e,containerProps)},handleEsc=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((e=>handleEventWithAnalytics("Modal",onClickOutside,"onEsc",e,containerProps)),[containerProps,handleEventWithAnalytics,onClickOutside]),handleClose=e=>handleEventWithAnalytics("Modal",onClose,"onClose",e,containerProps),animationPrecision=gpuTier<2?.2:void 0,[springStyles,spring]=(0,_react_spring_web__WEBPACK_IMPORTED_MODULE_1__.useSpring)((()=>({containerTransform:"translate(-50%, -25%)",containerOpacity:0,underlayBackgroundColor:"rgba(0,0,0, 0)",underlayBackdropFilter:"blur(0rem)",config:_objectSpread({immediate:prefersReducedMotion,friction:75,tension:550,mass:5,round:animationPrecision,clamp:!1},animationSpringConfig)})));(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{spring.start({config:{round:animationPrecision}})}),[animationPrecision,spring]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{spring.start({containerTransform:"translate(-50%, -50%)",containerOpacity:1,underlayBackgroundColor:(0,polished__WEBPACK_IMPORTED_MODULE_7__.DZ)(1-backgroundDarkness,colors.black),underlayBackdropFilter:gpuTier<2?"blur(0rem)":`blur(${backgroundBlur})`})}),[backgroundBlur,backgroundDarkness,colors.black,gpuTier,spring]);const animateClose=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(((restFunction,e)=>{spring.start({containerTransform:"translate(-50%, -25%)",containerOpacity:0,underlayBackgroundColor:"rgba(0,0,0, 0)",underlayBackdropFilter:"blur(0rem)",config:{friction:50,clamp:!0},onRest:()=>restFunction(e)})}),[spring]);(0,react__WEBPACK_IMPORTED_MODULE_0__.useImperativeHandle)(forwardedRef,(()=>({close:evt=>animateClose(handleClose,evt)})));const escFunction=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((event=>{"Escape"===event.code&&animateClose(handleEsc,event)}),[animateClose,handleEsc]);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>(document.addEventListener("keydown",escFunction,!1),()=>{document.removeEventListener("keydown",escFunction,!1)})),[escFunction]),react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_portal__WEBPACK_IMPORTED_MODULE_8__.Z,null,"corner"===closeButtonAttachment&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledCloseButton,_extends({StyledContainer:StyledCloseButtonContainer,containerProps:_objectSpread({closeButtonAttachment:closeButtonAttachment},closeButtonContainerProps),iconPrefix:_mdi_js__WEBPACK_IMPORTED_MODULE_9__.r5M,color:colors.background,elevation:1,variant:_enums_variants__WEBPACK_IMPORTED_MODULE_2__.Z.text,onClick:e=>animateClose(handleClose,e)},closeButtonProps)),react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledContainer,_extends({ref:containerRef},containerProps,{style:_objectSpread({transform:springStyles.containerTransform,opacity:springStyles.containerOpacity},containerStyles)}),children,"corner"!==closeButtonAttachment&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledCloseButton,_extends({StyledContainer:StyledCloseButtonContainer,ref:closeButtonContainerRef,containerProps:_objectSpread({closeButtonAttachment:closeButtonAttachment},closeButtonContainerProps),iconPrefix:_mdi_js__WEBPACK_IMPORTED_MODULE_9__.r5M,color:"inside"===closeButtonAttachment?colors.grayDark:colors.background,elevation:"inside"===closeButtonAttachment?0:1,variant:_enums_variants__WEBPACK_IMPORTED_MODULE_2__.Z.text,onClick:e=>animateClose(handleClose,e)},closeButtonProps))),react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledUnderlay,_extends({colors:colors,onClick:e=>{onClickOutside&&animateClose(handleClickOutside,e)},ref:underlayRef},underlayProps,{style:_objectSpread({backdropFilter:springStyles.underlayBackdropFilter,backgroundColor:springStyles.underlayBackgroundColor},underlayStyles)})))}));Modal.Underlay=Underlay,Modal.CloseButtonContainer=CloseButtonContainer,Modal.Container=Container,__webpack_exports__.Z=Modal;try{Modal.displayName="Modal",Modal.__docgenInfo={description:"",displayName:"Modal",props:{StyledContainer:{defaultValue:{value:"styled(AnimatedDiv)`\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n\n z-index: 1010;\n`"},description:"",name:"StyledContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledUnderlay:{defaultValue:{value:"styled(AnimatedDiv)`\n height: 100%;\n width: 100%;\n\n background-color: rgba(0, 0, 0, 0.5);\n\n position: fixed;\n top: 0;\n left: 0;\n\n z-index: 1000;\n`"},description:"",name:"StyledUnderlay",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledCloseButton:{defaultValue:{value:"styled(Button)``"},description:"",name:"StyledCloseButton",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledCloseButtonContainer:{defaultValue:{value:"styled(Button.Container)`\n ${({ closeButtonAttachment }: { closeButtonAttachment: string }) => {\n let distance;\n let position;\n let display = 'inline-flex'; // default display type\n\n switch (closeButtonAttachment) {\n case 'inside':\n distance = '.5rem';\n position = 'absolute';\n break;\n case 'outside':\n distance = '-2rem';\n position = 'absolute';\n break;\n case 'corner':\n distance = '1rem';\n position = 'fixed';\n break;\n case 'none':\n distance = '0rem';\n position = 'absolute';\n display = 'none';\n break;\n default:\n distance = '0rem';\n position = 'absolute';\n break;\n }\n\n return `\n position: ${position};\n top: ${distance};\n right: ${distance};\n z-index: 1011;\n border-radius: 50%;\n padding: .5rem;\n display: ${display};\n `;\n }}\n`"},description:"",name:"StyledCloseButtonContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},containerProps:{defaultValue:{value:"{}"},description:"",name:"containerProps",required:!1,type:{name:"Record"}},underlayProps:{defaultValue:{value:"{}"},description:"",name:"underlayProps",required:!1,type:{name:"Record"}},closeButtonProps:{defaultValue:{value:"{}"},description:"",name:"closeButtonProps",required:!1,type:{name:"Record"}},closeButtonContainerProps:{defaultValue:{value:"{}"},description:"",name:"closeButtonContainerProps",required:!1,type:{name:"Record"}},containerRef:{defaultValue:null,description:"",name:"containerRef",required:!1,type:{name:"RefObject"}},closeButtonContainerRef:{defaultValue:null,description:"",name:"closeButtonContainerRef",required:!1,type:{name:"RefObject"}},underlayRef:{defaultValue:null,description:"",name:"underlayRef",required:!1,type:{name:"RefObject"}},animationSpringConfig:{defaultValue:{value:"{}"},description:"",name:"animationSpringConfig",required:!1,type:{name:"Record"}},onClickOutside:{defaultValue:null,description:"",name:"onClickOutside",required:!1,type:{name:"((e: MouseEvent) => void)"}},onClose:{defaultValue:{value:"() => {}"},description:"",name:"onClose",required:!1,type:{name:"((e: MouseEvent) => void)"}},closeButtonAttachment:{defaultValue:{value:"inside"},description:"",name:"closeButtonAttachment",required:!1,type:{name:"string"}},backgroundBlur:{defaultValue:{value:"0.5rem"},description:"",name:"backgroundBlur",required:!1,type:{name:"string"}},backgroundDarkness:{defaultValue:{value:"0.2"},description:"",name:"backgroundDarkness",required:!1,type:{name:"number"}},style:{defaultValue:null,description:"",name:"style",required:!1,type:{name:"Record"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Modal/Modal.tsx#Modal"]={docgenInfo:Modal.__docgenInfo,name:"Modal",path:"src/components/Modal/Modal.tsx#Modal"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Modal/index.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _Modal__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/components/Modal/Modal.tsx");__webpack_exports__.Z=_Modal__WEBPACK_IMPORTED_MODULE_0__.Z},"./src/components/Progress/Progress.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var styled_components__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_htmlElements__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/htmlElements/index.tsx");const movingGradient=styled_components__WEBPACK_IMPORTED_MODULE_1__.F4` + 0% { background-position: 200% bottom; } + 100% { background-position: 0% bottom; } +`,animation=styled_components__WEBPACK_IMPORTED_MODULE_1__.iv` + ${movingGradient} 8s linear infinite; +`,Progress=(0,styled_components__WEBPACK_IMPORTED_MODULE_1__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_0__.xt)` + ${()=>styled_components__WEBPACK_IMPORTED_MODULE_1__.iv` + background: linear-gradient( + 45deg, + rgba(255, 255, 255, 0.75), + rgba(0, 0, 0, 0.75), + rgba(255, 255, 255, 0.75), + rgba(0, 0, 0, 0.75), + rgba(255, 255, 255, 0.75) + ) + repeat; + background-size: 400% 100%; + width: 6rem; + height: 16px; + border-radius: 9999px; + animation: ${animation}; + line-height: 0; + `} +`;__webpack_exports__.ZP=Progress;try{Progress.displayName="Progress",Progress.__docgenInfo={description:"",displayName:"Progress",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Progress/Progress.tsx#Progress"]={docgenInfo:Progress.__docgenInfo,name:"Progress",path:"src/components/Progress/Progress.tsx#Progress"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/RangeSlider/RangeSlider.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$g:function(){return SlideRail}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),lodash_debounce__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/lodash/debounce.js"),lodash_debounce__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_1__),_react_spring_web__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@react-spring/web/dist/react-spring-web.esm.js"),react_use_gesture__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/react-use-gesture/dist/reactusegesture.esm.js"),react_use_measure__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/react-use-measure/dist/web.js"),_juggle_resize_observer__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@juggle/resize-observer/lib/exports/resize-observer.js"),_enums_fonts__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/enums/fonts.ts"),_utils_math__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/utils/math.ts"),_utils_refs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./src/utils/refs.ts"),_context__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/context/index.tsx"),_htmlElements__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/htmlElements/index.tsx");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i`\n display: flex;\n position: relative;\n height: 1rem;\n width: 100%;\n\n ${_enums_fonts__WEBPACK_IMPORTED_MODULE_4__.Z.body}\n\n user-select: none;\n\n ${beingDragged?"cursor: grabbing;":""}\n\n transition: filter .1s;\n\n ${disabled?"\n filter: grayscale(1) contrast(.5) brightness(1.2);\n pointer-events: none;\n ":""}\n\n \n\n ${showDomainLabels?"\n top: -.5rem;\n margin-top: 1rem;\n ":""};\n\n ${hasHandleLabels?"\n top: -.75rem;\n margin-top: 1.5rem;\n ":""};\n `} +`,DragHandle=(0,styled_components__WEBPACK_IMPORTED_MODULE_7__.ZP)(_react_spring_web__WEBPACK_IMPORTED_MODULE_2__.a.div)` + ${({$beingDragged:$beingDragged=!1,color:color,$readonly:$readonly})=>{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_5__.Fg)(),handleColor=color||colors.primary;return`\n position: absolute;\n \n width: 1rem;\n height: 1rem;\n align-self: center;\n left: -.5rem;\n\n background-color: ${handleColor};\n color: ${handleColor};\n border: .125rem solid ${colors.background};\n border-radius: 50%;\n \n touch-action: none;\n filter: url(#blur);\n cursor: ${$beingDragged?"grabbing":"grab"};\n cursor: ${$readonly?"default":""};\n z-index: 2;\n `}} +`,HandleLabel=styled_components__WEBPACK_IMPORTED_MODULE_7__.ZP.div` + ${({velocity:velocity=0})=>{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_5__.Fg)();return`\n position: absolute;\n bottom: 100%;\n left: 50%;\n transform: translateX(-50%) rotate(${(0,_utils_math__WEBPACK_IMPORTED_MODULE_8__.u)(velocity,-45,45)}deg);\n background-color: ${colors.background};\n border-radius: 4px;\n font-weight: bold;\n white-space: nowrap;\n pointer-events: none;\n z-index: 2;\n `}} +`,SlideRail=styled_components__WEBPACK_IMPORTED_MODULE_7__.ZP.div` + ${()=>{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_5__.Fg)();return`\n position: absolute;\n width: 100%;\n height: 0.25rem;\n\n overflow: hidden;\n align-self: center;\n\n border-radius: 0.125rem;\n background-color: ${colors.grayXlight};\n `}} +`,SelectedRangeRail=(0,styled_components__WEBPACK_IMPORTED_MODULE_7__.ZP)(_react_spring_web__WEBPACK_IMPORTED_MODULE_2__.a.div)` + ${()=>{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_5__.Fg)();return`\n position: absolute;\n top: 0%;\n height: 100%;\n\n background-color: ${colors.primary};\n `}} +`,DomainLabel=styled_components__WEBPACK_IMPORTED_MODULE_7__.ZP.div` + ${({position:position})=>{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_5__.Fg)();return`\n position: absolute;\n bottom: 100%;\n ${position}: 0rem;\n color: ${colors.grayMedium};\n font-size: .5rem;\n `}} +`,Marker=(0,styled_components__WEBPACK_IMPORTED_MODULE_7__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_6__.xt)` + ${({sliderPosition:sliderPosition=0})=>{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_5__.Fg)();return`\n position: absolute;\n text-align: center;\n display: flex;\n justify-content: center;\n height: 1rem;\n width: 2px;\n left: ${sliderPosition}px;\n background-color: ${colors.grayLight};\n `}} +`,MarkerLabel=(0,styled_components__WEBPACK_IMPORTED_MODULE_7__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_6__.xt)` + ${({color:color})=>{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_5__.Fg)();return`\n position: absolute;\n bottom: 100%;\n white-space: nowrap;\n font-size: .375rem;\n color: ${color||colors.grayLight};\n `}} +`,RangeSlider=({StyledContainer:StyledContainer=Container,StyledDragHandle:StyledDragHandle=DragHandle,StyledHandleLabel:StyledHandleLabel=HandleLabel,StyledSlideRail:StyledSlideRail=SlideRail,StyledSelectedRangeRail:StyledSelectedRangeRail=SelectedRangeRail,StyledDomainLabel:StyledDomainLabel=DomainLabel,StyledMarker:StyledMarker=Marker,StyledMarkerLabel:StyledMarkerLabel=MarkerLabel,containerProps:containerProps={},dragHandleProps:dragHandleProps={},handleLabelProps:handleLabelProps={},slideRailProps:slideRailProps={},selectedRangeRailProps:selectedRangeRailProps={},domainLabelProps:domainLabelProps={},markerProps:markerProps={},markerLabelProps:markerLabelProps={},containerRef:containerRef,dragHandleRef:dragHandleRef,slideRailRef:slideRailRef,handleLabelRef:handleLabelRef,selectedRangeRailRef:selectedRangeRailRef,domainLabelRef:domainLabelRef,markerRef:markerRef,markerLabelRef:markerLabelRef,showDomainLabels:showDomainLabels=!0,showSelectedRange:showSelectedRange=!0,showHandleLabels:showHandleLabels=!0,springOnRelease:springOnRelease,animated:animated=!0,debounceInterval:debounceInterval=8,onDrag:onDrag,onChange:onChange,onDebounceChange:onDebounceChange,onRelease:onRelease,disabled:disabled=!1,readonly:readonly=!1,min:min,max:max,values:values,markers:markers=[],testId:testId,dragHandleAttachment:dragHandleAttachment="mouse"})=>{onDrag&&console.warn("From FoundryUI RangerSlider: onDrag callback is deprecated. Instead, use onChange or onDebounceChange."),void 0!==springOnRelease&&(animated=springOnRelease,console.warn("From FoundryUI RangeSlider: springOnRelease is deprecated. Instead, use animated."));const{prefersReducedMotion:prefersReducedMotion}=(0,_context__WEBPACK_IMPORTED_MODULE_5__.O6)(),isInitializing=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(!0),debouncedOnChange=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(lodash_debounce__WEBPACK_IMPORTED_MODULE_1___default()((newVal=>{onDrag&&onDrag(newVal),onDebounceChange&&onDebounceChange(newVal)}),debounceInterval)).current,debouncedOnRelease=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(lodash_debounce__WEBPACK_IMPORTED_MODULE_1___default()((newVal=>onRelease&&onRelease(newVal)),debounceInterval+1)).current,processVal=val=>"number"==typeof val?{value:val,label:void 0,color:void 0}:val,processedValues=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>(null==values?void 0:values.map(processVal))??[]),[values]),processedMarkers=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>(null==markers?void 0:markers.map(processVal))??[]),[markers]),hasHandleLabels=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>null==processedValues?void 0:processedValues.some((val=>null!==val.label&&void 0!==val.label))),[processedValues]),domain=max-min,handleEventWithAnalytics=(0,_context__WEBPACK_IMPORTED_MODULE_5__.z$)(),handleDrag=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((newVal=>{readonly||handleEventWithAnalytics("RangeSlider",(()=>{onChange&&onChange(newVal),debouncedOnChange(newVal)}),"onDrag",{type:"onDrag",newVal:newVal},containerProps)}),[readonly,handleEventWithAnalytics,containerProps,onChange,debouncedOnChange]),valueBuffer=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0),[draggedHandle,setDraggedHandle]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(-1),[ref,sliderBounds]=(0,react_use_measure__WEBPACK_IMPORTED_MODULE_9__.Z)({polyfill:_juggle_resize_observer__WEBPACK_IMPORTED_MODULE_3__.ResizeObserver}),pixelPositions=processedValues.map((val=>val.value/domain*sliderBounds.width)),[{dragHandleX:dragHandleX},springRef]=(0,_react_spring_web__WEBPACK_IMPORTED_MODULE_2__.useSpring)((()=>({to:{dragHandleX:0},friction:13,tension:100}))),handleSlideRailClick=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((e=>{const clickedValue=(e.clientX-sliderBounds.left)/sliderBounds.width*domain;let closestVal,smallestDifference;processedValues.forEach((val=>{const finalVal="number"==typeof val?val:val.value,difference=Math.abs(clickedValue-finalVal);(void 0!==smallestDifference&&difference{if(readonly)return;const delta=deltaX/sliderBounds.width*domain;valueBuffer.current=(0,_utils_math__WEBPACK_IMPORTED_MODULE_8__.u)(delta,min,max),setDraggedHandle(isDragging?0:-1),handleDrag(valueBuffer.current),"mouse"===dragHandleAttachment&&(isDragging?springRef.start({dragHandleX:deltaX,immediate:!0}):springRef.start({dragHandleX:pixelPositions[0],immediate:prefersReducedMotion||!animated}))}),{initial:[(pixelPositions??[0])[0],0],threshold:1,bounds:{left:0,right:sliderBounds.width+4,top:-8,bottom:sliderBounds.height/2+8},rubberband:.1});return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{isInitializing.current&&sliderBounds.width&&springRef.start({dragHandleX:pixelPositions[0],immediate:!0,onResolve:()=>{isInitializing.current=!1}})}),[springRef,sliderBounds,isInitializing,pixelPositions]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{"value"!==dragHandleAttachment&&-1!==draggedHandle||springRef.start({dragHandleX:pixelPositions[0],immediate:prefersReducedMotion||!animated})}),[dragHandleAttachment,springRef,pixelPositions,prefersReducedMotion,sliderBounds,animated,draggedHandle]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>()=>{debouncedOnChange.cancel(),debouncedOnRelease.cancel()}),[debouncedOnChange,debouncedOnRelease]),react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledContainer,_extends({"data-test-id":["hs-ui-range-slider",testId].join("-"),disabled:disabled,readonly:readonly,hasHandleLabels:hasHandleLabels,showHandleLabels:showHandleLabels,showDomainLabels:showDomainLabels,ref:containerRef},containerProps),react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledSlideRail,_extends({ref:(0,_utils_refs__WEBPACK_IMPORTED_MODULE_11__.l)([slideRailRef,ref])},slideRailProps,{onMouseDown:e=>{readonly||handleEventWithAnalytics("RangeSlider",handleSlideRailClick,"onClick",e,containerProps)}}),showSelectedRange&&values&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledSelectedRangeRail,_extends({min:min,max:max,values:processedValues,style:{width:dragHandleX},ref:selectedRangeRailRef},selectedRangeRailProps))),showDomainLabels&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledDomainLabel,_extends({position:"left",ref:domainLabelRef},domainLabelProps),min),react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledDomainLabel,_extends({position:"right"},domainLabelProps),max)),processedValues.map((({value:value,color:color,label:label},i)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledDragHandle,_extends({},bind(),{draggable:!1,$beingDragged:i===draggedHandle,style:{x:dragHandleX},color:color,key:`handle${i}`,ref:dragHandleRef,onMouseUp:()=>debouncedOnRelease(value),$readonly:readonly},dragHandleProps),showHandleLabels&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledHandleLabel,_extends({value:value,ref:handleLabelRef},handleLabelProps),label)))),processedMarkers.map((({value:value,color:color,label:label})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledMarker,_extends({key:`marker-${value}`,id:`marker-${value}`,sliderPosition:value/domain*sliderBounds.width,ref:markerRef},markerProps),react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledMarkerLabel,_extends({color:color,ref:markerLabelRef},markerLabelProps),label)))))};RangeSlider.Container=Container,RangeSlider.DragHandle=DragHandle,RangeSlider.HandleLabel=HandleLabel,RangeSlider.SlideRail=SlideRail,RangeSlider.SelectedRangeRail=SelectedRangeRail,RangeSlider.DomainLabel=DomainLabel,RangeSlider.Marker=Marker,RangeSlider.MarkerLabel=MarkerLabel,__webpack_exports__.ZP=RangeSlider;try{Container.displayName="Container",Container.__docgenInfo={description:"",displayName:"Container",props:{ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},disabled:{defaultValue:{value:"false"},description:"",name:"disabled",required:!1,type:{name:"boolean"}},showDomainLabels:{defaultValue:{value:"true"},description:"",name:"showDomainLabels",required:!1,type:{name:"boolean"}},showHandleLabels:{defaultValue:{value:"true"},description:"",name:"showHandleLabels",required:!1,type:{name:"boolean"}},readonly:{defaultValue:{value:"false"},description:"",name:"readonly",required:!1,type:{name:"boolean"}},beingDragged:{defaultValue:null,description:"",name:"beingDragged",required:!0,type:{name:"boolean"}},hasHandleLabels:{defaultValue:null,description:"",name:"hasHandleLabels",required:!1,type:{name:"boolean"}},theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/RangeSlider/RangeSlider.tsx#Container"]={docgenInfo:Container.__docgenInfo,name:"Container",path:"src/components/RangeSlider/RangeSlider.tsx#Container"})}catch(__react_docgen_typescript_loader_error){}try{DragHandle.displayName="DragHandle",DragHandle.__docgenInfo={description:"",displayName:"DragHandle",props:{ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},scrollTop:{defaultValue:null,description:"",name:"scrollTop",required:!1,type:{name:"number | FluidValue"}},scrollLeft:{defaultValue:null,description:"",name:"scrollLeft",required:!1,type:{name:"number | FluidValue"}},$beingDragged:{defaultValue:null,description:"",name:"$beingDragged",required:!1,type:{name:"boolean"}},$readonly:{defaultValue:null,description:"",name:"$readonly",required:!0,type:{name:"boolean"}},theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/RangeSlider/RangeSlider.tsx#DragHandle"]={docgenInfo:DragHandle.__docgenInfo,name:"DragHandle",path:"src/components/RangeSlider/RangeSlider.tsx#DragHandle"})}catch(__react_docgen_typescript_loader_error){}try{HandleLabel.displayName="HandleLabel",HandleLabel.__docgenInfo={description:"",displayName:"HandleLabel",props:{ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},showHandleLabels:{defaultValue:{value:"true"},description:"",name:"showHandleLabels",required:!1,type:{name:"boolean"}},velocity:{defaultValue:null,description:"",name:"velocity",required:!1,type:{name:"number"}},theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/RangeSlider/RangeSlider.tsx#HandleLabel"]={docgenInfo:HandleLabel.__docgenInfo,name:"HandleLabel",path:"src/components/RangeSlider/RangeSlider.tsx#HandleLabel"})}catch(__react_docgen_typescript_loader_error){}try{SlideRail.displayName="SlideRail",SlideRail.__docgenInfo={description:"",displayName:"SlideRail",props:{ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/RangeSlider/RangeSlider.tsx#SlideRail"]={docgenInfo:SlideRail.__docgenInfo,name:"SlideRail",path:"src/components/RangeSlider/RangeSlider.tsx#SlideRail"})}catch(__react_docgen_typescript_loader_error){}try{SelectedRangeRail.displayName="SelectedRangeRail",SelectedRangeRail.__docgenInfo={description:"",displayName:"SelectedRangeRail",props:{ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},scrollTop:{defaultValue:null,description:"",name:"scrollTop",required:!1,type:{name:"number | FluidValue"}},scrollLeft:{defaultValue:null,description:"",name:"scrollLeft",required:!1,type:{name:"number | FluidValue"}},theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/RangeSlider/RangeSlider.tsx#SelectedRangeRail"]={docgenInfo:SelectedRangeRail.__docgenInfo,name:"SelectedRangeRail",path:"src/components/RangeSlider/RangeSlider.tsx#SelectedRangeRail"})}catch(__react_docgen_typescript_loader_error){}try{DomainLabel.displayName="DomainLabel",DomainLabel.__docgenInfo={description:"",displayName:"DomainLabel",props:{ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},position:{defaultValue:null,description:"",name:"position",required:!0,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'}]}},theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/RangeSlider/RangeSlider.tsx#DomainLabel"]={docgenInfo:DomainLabel.__docgenInfo,name:"DomainLabel",path:"src/components/RangeSlider/RangeSlider.tsx#DomainLabel"})}catch(__react_docgen_typescript_loader_error){}try{Marker.displayName="Marker",Marker.__docgenInfo={description:"",displayName:"Marker",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/RangeSlider/RangeSlider.tsx#Marker"]={docgenInfo:Marker.__docgenInfo,name:"Marker",path:"src/components/RangeSlider/RangeSlider.tsx#Marker"})}catch(__react_docgen_typescript_loader_error){}try{MarkerLabel.displayName="MarkerLabel",MarkerLabel.__docgenInfo={description:"",displayName:"MarkerLabel",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/RangeSlider/RangeSlider.tsx#MarkerLabel"]={docgenInfo:MarkerLabel.__docgenInfo,name:"MarkerLabel",path:"src/components/RangeSlider/RangeSlider.tsx#MarkerLabel"})}catch(__react_docgen_typescript_loader_error){}try{RangeSlider.displayName="RangeSlider",RangeSlider.__docgenInfo={description:"",displayName:"RangeSlider",props:{StyledContainer:{defaultValue:{value:"styled.div`\n ${({ showDomainLabels, hasHandleLabels, disabled, beingDragged = false }: ContainerProps) => `\n display: flex;\n position: relative;\n height: 1rem;\n width: 100%;\n\n ${fonts.body}\n\n user-select: none;\n\n ${beingDragged ? 'cursor: grabbing;' : ''}\n\n transition: filter .1s;\n\n ${\n disabled\n ? `\n filter: grayscale(1) contrast(.5) brightness(1.2);\n pointer-events: none;\n `\n : ''\n }\n\n \n\n ${\n showDomainLabels\n ? `\n top: -.5rem;\n margin-top: 1rem;\n `\n : ''\n };\n\n ${\n hasHandleLabels\n ? `\n top: -.75rem;\n margin-top: 1.5rem;\n `\n : ''\n };\n `}\n`"},description:"",name:"StyledContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledDragHandle:{defaultValue:{value:"styled(a.div)`\n ${({ $beingDragged = false, color, $readonly }: HandleProps) => {\n const { colors } = useTheme();\n const handleColor = color || colors.primary;\n return `\n position: absolute;\n \n width: 1rem;\n height: 1rem;\n align-self: center;\n left: -.5rem;\n\n background-color: ${handleColor};\n color: ${handleColor};\n border: .125rem solid ${colors.background};\n border-radius: 50%;\n \n touch-action: none;\n filter: url(#blur);\n cursor: ${$beingDragged ? 'grabbing' : 'grab'};\n cursor: ${$readonly ? 'default' : ''};\n z-index: 2;\n `;\n }}\n`"},description:"",name:"StyledDragHandle",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledHandleLabel:{defaultValue:{value:"styled.div`\n ${({ velocity = 0 }: HandleLabelProps) => {\n const { colors } = useTheme();\n return `\n position: absolute;\n bottom: 100%;\n left: 50%;\n transform: translateX(-50%) rotate(${clamp(velocity, -45, 45)}deg);\n background-color: ${colors.background};\n border-radius: 4px;\n font-weight: bold;\n white-space: nowrap;\n pointer-events: none;\n z-index: 2;\n `;\n }}\n`"},description:"",name:"StyledHandleLabel",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledSlideRail:{defaultValue:{value:"styled.div`\n ${() => {\n const { colors } = useTheme();\n return `\n position: absolute;\n width: 100%;\n height: 0.25rem;\n\n overflow: hidden;\n align-self: center;\n\n border-radius: 0.125rem;\n background-color: ${colors.grayXlight};\n `;\n }}\n`"},description:"",name:"StyledSlideRail",required:!1,type:{name:"any"}},StyledSelectedRangeRail:{defaultValue:{value:"styled(a.div)`\n ${() => {\n const { colors } = useTheme(); // TODO: don't force the color to be primary\n return `\n position: absolute;\n top: 0%;\n height: 100%;\n\n background-color: ${colors.primary};\n `;\n }}\n`"},description:"",name:"StyledSelectedRangeRail",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledDomainLabel:{defaultValue:{value:"styled.div`\n ${({ position }: DomainLabelProps) => {\n const { colors } = useTheme();\n return `\n position: absolute;\n bottom: 100%;\n ${position}: 0rem;\n color: ${colors.grayMedium};\n font-size: .5rem;\n `;\n }}\n`"},description:"",name:"StyledDomainLabel",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledMarker:{defaultValue:{value:"styled(StyledBaseDiv)`\n ${({ sliderPosition = 0 }) => {\n const { colors } = useTheme();\n return `\n position: absolute;\n text-align: center;\n display: flex;\n justify-content: center;\n height: 1rem;\n width: 2px;\n left: ${sliderPosition}px;\n background-color: ${colors.grayLight};\n `;\n }}\n`"},description:"",name:"StyledMarker",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledMarkerLabel:{defaultValue:{value:"styled(StyledBaseDiv)`\n ${({ color }) => {\n const { colors } = useTheme();\n return `\n position: absolute;\n bottom: 100%;\n white-space: nowrap;\n font-size: .375rem;\n color: ${color || colors.grayLight};\n `;\n }}\n`"},description:"",name:"StyledMarkerLabel",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},containerProps:{defaultValue:{value:"{}"},description:"",name:"containerProps",required:!1,type:{name:"Record"}},dragHandleProps:{defaultValue:{value:"{}"},description:"",name:"dragHandleProps",required:!1,type:{name:"Record"}},handleLabelProps:{defaultValue:{value:"{}"},description:"",name:"handleLabelProps",required:!1,type:{name:"Record"}},slideRailProps:{defaultValue:{value:"{}"},description:"",name:"slideRailProps",required:!1,type:{name:"Record"}},selectedRangeRailProps:{defaultValue:{value:"{}"},description:"",name:"selectedRangeRailProps",required:!1,type:{name:"Record"}},domainLabelProps:{defaultValue:{value:"{}"},description:"",name:"domainLabelProps",required:!1,type:{name:"Record"}},markerProps:{defaultValue:{value:"{}"},description:"",name:"markerProps",required:!1,type:{name:"Record"}},markerLabelProps:{defaultValue:{value:"{}"},description:"",name:"markerLabelProps",required:!1,type:{name:"Record"}},containerRef:{defaultValue:null,description:"",name:"containerRef",required:!1,type:{name:"RefObject"}},dragHandleRef:{defaultValue:null,description:"",name:"dragHandleRef",required:!1,type:{name:"RefObject"}},handleLabelRef:{defaultValue:null,description:"",name:"handleLabelRef",required:!1,type:{name:"RefObject"}},slideRailRef:{defaultValue:null,description:"",name:"slideRailRef",required:!1,type:{name:"RefObject"}},selectedRangeRailRef:{defaultValue:null,description:"",name:"selectedRangeRailRef",required:!1,type:{name:"RefObject"}},domainLabelRef:{defaultValue:null,description:"",name:"domainLabelRef",required:!1,type:{name:"RefObject"}},markerRef:{defaultValue:null,description:"",name:"markerRef",required:!1,type:{name:"RefObject"}},markerLabelRef:{defaultValue:null,description:"",name:"markerLabelRef",required:!1,type:{name:"RefObject"}},showDomainLabels:{defaultValue:{value:"true"},description:"",name:"showDomainLabels",required:!1,type:{name:"boolean"}},showSelectedRange:{defaultValue:{value:"true"},description:"",name:"showSelectedRange",required:!1,type:{name:"boolean"}},showHandleLabels:{defaultValue:{value:"true"},description:"",name:"showHandleLabels",required:!1,type:{name:"boolean"}},animated:{defaultValue:{value:"true"},description:"",name:"animated",required:!1,type:{name:"boolean"}},debounceInterval:{defaultValue:{value:"8"},description:"Debounce interval (in ms) before calling `onDebounceChange`.",name:"debounceInterval",required:!1,type:{name:"number"}},onChange:{defaultValue:null,description:"Called immediately as slider's selection changes.",name:"onChange",required:!1,type:{name:"((val: number) => void)"}},onDebounceChange:{defaultValue:null,description:"Called `debounceInterval` ms after the most recent change of selection.",name:"onDebounceChange",required:!1,type:{name:"((val: number) => void)"}},onRelease:{defaultValue:null,description:"Called when the slider's drag gesture is released",name:"onRelease",required:!1,type:{name:"((val: number) => void)"}},disabled:{defaultValue:{value:"false"},description:"",name:"disabled",required:!1,type:{name:"boolean"}},readonly:{defaultValue:{value:"false"},description:"",name:"readonly",required:!1,type:{name:"boolean"}},min:{defaultValue:null,description:"",name:"min",required:!0,type:{name:"number"}},max:{defaultValue:null,description:"",name:"max",required:!0,type:{name:"number"}},values:{defaultValue:null,description:"",name:"values",required:!0,type:{name:"number[] | ValueProp[]"}},testId:{defaultValue:null,description:"",name:"testId",required:!1,type:{name:"string"}},markers:{defaultValue:{value:"[]"},description:"",name:"markers",required:!1,type:{name:"number[] | ValueProp[]"}},dragHandleAttachment:{defaultValue:{value:"mouse"},description:"Whether the drag handle should follow the passed-in value, or the mouse.",name:"dragHandleAttachment",required:!1,type:{name:"enum",value:[{value:'"value"'},{value:'"mouse"'}]}},springOnRelease:{defaultValue:null,description:"@deprecated",name:"springOnRelease",required:!1,type:{name:"boolean"}},onDrag:{defaultValue:null,description:"@deprecated",name:"onDrag",required:!1,type:{name:"((val: number) => void)"}},motionBlur:{defaultValue:null,description:"@deprecated",name:"motionBlur",required:!1,type:{name:"boolean"}},axisLock:{defaultValue:null,description:"@deprecated",name:"axisLock",required:!1,type:{name:"enum",value:[{value:'""'},{value:'"x"'},{value:'"y"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/RangeSlider/RangeSlider.tsx#RangeSlider"]={docgenInfo:RangeSlider.__docgenInfo,name:"RangeSlider",path:"src/components/RangeSlider/RangeSlider.tsx#RangeSlider"})}catch(__react_docgen_typescript_loader_error){}try{RangeSlider.Container.displayName="RangeSlider.Container",RangeSlider.Container.__docgenInfo={description:"",displayName:"RangeSlider.Container",props:{ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},disabled:{defaultValue:{value:"false"},description:"",name:"disabled",required:!1,type:{name:"boolean"}},showDomainLabels:{defaultValue:{value:"true"},description:"",name:"showDomainLabels",required:!1,type:{name:"boolean"}},showHandleLabels:{defaultValue:{value:"true"},description:"",name:"showHandleLabels",required:!1,type:{name:"boolean"}},readonly:{defaultValue:{value:"false"},description:"",name:"readonly",required:!1,type:{name:"boolean"}},beingDragged:{defaultValue:null,description:"",name:"beingDragged",required:!0,type:{name:"boolean"}},hasHandleLabels:{defaultValue:null,description:"",name:"hasHandleLabels",required:!1,type:{name:"boolean"}},theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/RangeSlider/RangeSlider.tsx#RangeSlider.Container"]={docgenInfo:RangeSlider.Container.__docgenInfo,name:"RangeSlider.Container",path:"src/components/RangeSlider/RangeSlider.tsx#RangeSlider.Container"})}catch(__react_docgen_typescript_loader_error){}try{RangeSlider.DragHandle.displayName="RangeSlider.DragHandle",RangeSlider.DragHandle.__docgenInfo={description:"",displayName:"RangeSlider.DragHandle",props:{ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},scrollTop:{defaultValue:null,description:"",name:"scrollTop",required:!1,type:{name:"number | FluidValue"}},scrollLeft:{defaultValue:null,description:"",name:"scrollLeft",required:!1,type:{name:"number | FluidValue"}},$beingDragged:{defaultValue:null,description:"",name:"$beingDragged",required:!1,type:{name:"boolean"}},$readonly:{defaultValue:null,description:"",name:"$readonly",required:!0,type:{name:"boolean"}},theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/RangeSlider/RangeSlider.tsx#RangeSlider.DragHandle"]={docgenInfo:RangeSlider.DragHandle.__docgenInfo,name:"RangeSlider.DragHandle",path:"src/components/RangeSlider/RangeSlider.tsx#RangeSlider.DragHandle"})}catch(__react_docgen_typescript_loader_error){}try{RangeSlider.HandleLabel.displayName="RangeSlider.HandleLabel",RangeSlider.HandleLabel.__docgenInfo={description:"",displayName:"RangeSlider.HandleLabel",props:{ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},showHandleLabels:{defaultValue:{value:"true"},description:"",name:"showHandleLabels",required:!1,type:{name:"boolean"}},velocity:{defaultValue:null,description:"",name:"velocity",required:!1,type:{name:"number"}},theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/RangeSlider/RangeSlider.tsx#RangeSlider.HandleLabel"]={docgenInfo:RangeSlider.HandleLabel.__docgenInfo,name:"RangeSlider.HandleLabel",path:"src/components/RangeSlider/RangeSlider.tsx#RangeSlider.HandleLabel"})}catch(__react_docgen_typescript_loader_error){}try{RangeSlider.SlideRail.displayName="RangeSlider.SlideRail",RangeSlider.SlideRail.__docgenInfo={description:"",displayName:"RangeSlider.SlideRail",props:{ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/RangeSlider/RangeSlider.tsx#RangeSlider.SlideRail"]={docgenInfo:RangeSlider.SlideRail.__docgenInfo,name:"RangeSlider.SlideRail",path:"src/components/RangeSlider/RangeSlider.tsx#RangeSlider.SlideRail"})}catch(__react_docgen_typescript_loader_error){}try{RangeSlider.SelectedRangeRail.displayName="RangeSlider.SelectedRangeRail",RangeSlider.SelectedRangeRail.__docgenInfo={description:"",displayName:"RangeSlider.SelectedRangeRail",props:{ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},scrollTop:{defaultValue:null,description:"",name:"scrollTop",required:!1,type:{name:"number | FluidValue"}},scrollLeft:{defaultValue:null,description:"",name:"scrollLeft",required:!1,type:{name:"number | FluidValue"}},theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/RangeSlider/RangeSlider.tsx#RangeSlider.SelectedRangeRail"]={docgenInfo:RangeSlider.SelectedRangeRail.__docgenInfo,name:"RangeSlider.SelectedRangeRail",path:"src/components/RangeSlider/RangeSlider.tsx#RangeSlider.SelectedRangeRail"})}catch(__react_docgen_typescript_loader_error){}try{RangeSlider.DomainLabel.displayName="RangeSlider.DomainLabel",RangeSlider.DomainLabel.__docgenInfo={description:"",displayName:"RangeSlider.DomainLabel",props:{ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},position:{defaultValue:null,description:"",name:"position",required:!0,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'}]}},theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/RangeSlider/RangeSlider.tsx#RangeSlider.DomainLabel"]={docgenInfo:RangeSlider.DomainLabel.__docgenInfo,name:"RangeSlider.DomainLabel",path:"src/components/RangeSlider/RangeSlider.tsx#RangeSlider.DomainLabel"})}catch(__react_docgen_typescript_loader_error){}try{RangeSlider.Marker.displayName="RangeSlider.Marker",RangeSlider.Marker.__docgenInfo={description:"",displayName:"RangeSlider.Marker",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/RangeSlider/RangeSlider.tsx#RangeSlider.Marker"]={docgenInfo:RangeSlider.Marker.__docgenInfo,name:"RangeSlider.Marker",path:"src/components/RangeSlider/RangeSlider.tsx#RangeSlider.Marker"})}catch(__react_docgen_typescript_loader_error){}try{RangeSlider.MarkerLabel.displayName="RangeSlider.MarkerLabel",RangeSlider.MarkerLabel.__docgenInfo={description:"",displayName:"RangeSlider.MarkerLabel",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/RangeSlider/RangeSlider.tsx#RangeSlider.MarkerLabel"]={docgenInfo:RangeSlider.MarkerLabel.__docgenInfo,name:"RangeSlider.MarkerLabel",path:"src/components/RangeSlider/RangeSlider.tsx#RangeSlider.MarkerLabel"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Skeleton/Skeleton.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),polished__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/polished/dist/polished.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_context__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/context/index.tsx"),_htmlElements__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/htmlElements/index.tsx");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i{const rgb=(0,polished__WEBPACK_IMPORTED_MODULE_4__.Oq)(color);return styled_components__WEBPACK_IMPORTED_MODULE_3__.iv` + opacity: ${isLoading?1:0}; + + background: linear-gradient( + 90deg, + rgba(${Object.values(rgb).join(", ")}, 0.75), + rgba(${Object.values(rgb).join(", ")}, 0.25), + rgba(${Object.values(rgb).join(", ")}, 0.75) + ) + repeat; + + color: transparent; + user-select: none; + pointer-events: none; + + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + + background-size: 100vw 100vh; + background-attachment: fixed; + border-radius: 0.25rem; + animation: ${animatedShimmer?animation:"none"}; + `}} +`,SkeletonContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_3__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_2__.xt)` + ${({isLoading:isLoading})=>`\n display: block;\n\n position: relative;\n & > * {\n transition: opacity .2s;\n }\n\n ${isLoading?`\n color: transparent !important;\n & > *:not(${SkeletonShimmer}) {\n opacity: 0 !important;\n user-select: none;\n pointer-events: none;\n }\n `:""}\n `} +`,Skeleton=({StyledContainer:StyledContainer=SkeletonContainer,StyledShimmer:StyledShimmer=SkeletonShimmer,containerProps:containerProps,shimmerProps:shimmerProps,containerRef:containerRef,shimmerRef:shimmerRef,children:children,color:color,isLoading:isLoading=!1,animatedShimmer:animatedShimmer=!0})=>{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_1__.Fg)(),{prefersReducedMotion:prefersReducedMotion}=(0,_context__WEBPACK_IMPORTED_MODULE_1__.O6)(),finalColor=color||colors.grayLight,finalAnimationPreference=!prefersReducedMotion&&animatedShimmer;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledContainer,_extends({isLoading:isLoading},containerProps,{ref:containerRef}),children,react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledShimmer,_extends({animatedShimmer:finalAnimationPreference,isLoading:isLoading,color:finalColor},shimmerProps,{ref:shimmerRef})))};Skeleton.Container=SkeletonContainer,Skeleton.Shimmer=SkeletonShimmer,__webpack_exports__.ZP=Skeleton;try{Skeleton.displayName="Skeleton",Skeleton.__docgenInfo={description:"",displayName:"Skeleton",props:{StyledContainer:{defaultValue:{value:"styled(StyledBaseDiv)`\n ${({ isLoading }: { isLoading: boolean }) => `\n display: block;\n\n position: relative;\n & > * {\n transition: opacity .2s;\n }\n\n ${\n isLoading\n ? `\n color: transparent !important;\n & > *:not(${SkeletonShimmer}) {\n opacity: 0 !important;\n user-select: none;\n pointer-events: none;\n }\n `\n : ''\n }\n `}\n`"},description:"",name:"StyledContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledShimmer:{defaultValue:{value:"styled(StyledBaseDiv)`\n ${({ isLoading, color, animatedShimmer }) => {\n const rgb = parseToRgb(color);\n\n return css`\n opacity: ${isLoading ? 1 : 0};\n\n background: linear-gradient(\n 90deg,\n rgba(${Object.values(rgb).join(', ')}, 0.75),\n rgba(${Object.values(rgb).join(', ')}, 0.25),\n rgba(${Object.values(rgb).join(', ')}, 0.75)\n )\n repeat;\n\n color: transparent;\n user-select: none;\n pointer-events: none;\n\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n\n background-size: 100vw 100vh;\n background-attachment: fixed;\n border-radius: 0.25rem;\n animation: ${animatedShimmer ? animation : 'none'};\n `;\n }}\n`"},description:"",name:"StyledShimmer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},containerProps:{defaultValue:null,description:"",name:"containerProps",required:!1,type:{name:"Record"}},shimmerProps:{defaultValue:null,description:"",name:"shimmerProps",required:!1,type:{name:"Record"}},containerRef:{defaultValue:null,description:"",name:"containerRef",required:!1,type:{name:"RefObject"}},shimmerRef:{defaultValue:null,description:"",name:"shimmerRef",required:!1,type:{name:"RefObject"}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"string"}},isLoading:{defaultValue:{value:"false"},description:"",name:"isLoading",required:!1,type:{name:"boolean"}},animatedShimmer:{defaultValue:{value:"true"},description:"",name:"animatedShimmer",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Skeleton/Skeleton.tsx#Skeleton"]={docgenInfo:Skeleton.__docgenInfo,name:"Skeleton",path:"src/components/Skeleton/Skeleton.tsx#Skeleton"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Spotlight/Spotlight.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_react_spring_web__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@react-spring/web/dist/react-spring-web.esm.js"),react_portal__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/react-portal/es/PortalCompat.js"),_utils_hooks__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/utils/hooks.ts"),_context__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/context/index.tsx"),_htmlElements__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/htmlElements/index.tsx");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i{const handleEventWithAnalytics=(0,_context__WEBPACK_IMPORTED_MODULE_3__.z$)(),{width:windowWidth,height:windowHeight,isResizing:isResizing}=(0,_utils_hooks__WEBPACK_IMPORTED_MODULE_2__.Dy)(resizeUpdateInterval),{scrollY:scrollY,isScrolling:isScrolling}=(0,_utils_hooks__WEBPACK_IMPORTED_MODULE_2__.P0)(scrollUpdateInterval),{performanceInfo:{tier:gpuTier},accessibilityPreferences:{prefersReducedMotion:prefersReducedMotion}}=(0,_context__WEBPACK_IMPORTED_MODULE_3__.Fg)(),rect=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>{const defaultVal={x:windowWidth/2,y:windowHeight/2,width:0,height:0,bottom:windowHeight/2,left:windowWidth/2,top:windowHeight/2,right:windowWidth/2};if(targetElement){const bounds=null==targetElement?void 0:targetElement.getBoundingClientRect();if(shape===SpotlightShapes.circular)if(bounds.width>bounds.height){const newHeight=bounds.width;bounds.y-=.5*(newHeight-bounds.height),bounds.height=newHeight}else if(bounds.width({containerOpacity:0,containerFilter:"blur(0rem)",containerBackgroundColor:"rgba(0,0,0,0)",lightPath:finalRectangularPath,circularLightPath:circularPath,annotationTransform:`translate(${rect.x}px, ${rect.y}px) translate(0%, -100%)`,topBlurWidth:windowWidth,topBlurHeight:rect.y-1,bottomBlurY:rect.bottom,bottomBlurWidth:windowWidth,bottomBlurHeight:windowHeight-rect.bottom-1,leftBlurY:rect.y,leftBlurWidth:rect.x,leftBlurHeight:rect.height+2,rightBlurY:rect.y,rightBlurWidth:windowWidth-rect.right,rightBlurHeight:rect.height+2,config:_objectSpread({immediate:!animateTargetChanges||prefersReducedMotion||isScrolling||isResizing,round:gpuTier<2?1:void 0},animationSpringConfig),onRest:onAnimationEnd})));(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{spring.start((()=>({containerOpacity:1,containerFilter:gpuTier<2?"blur(0rem)":`blur(${backgroundBlur})`,containerBackgroundColor:`rgba(0,0,0,${1-backgroundDarkness})`,lightPath:finalRectangularPath,circularLightPath:circularPath,annotationTransform:`translate(${rect.x}px, ${rect.y}px) translate(0%, -100%)`,topBlurWidth:windowWidth,topBlurHeight:rect.y-1,bottomBlurY:rect.bottom,bottomBlurWidth:windowWidth,bottomBlurHeight:windowHeight-rect.bottom-1,leftBlurY:rect.y,leftBlurWidth:rect.x,leftBlurHeight:rect.height+2,rightBlurY:rect.y,rightBlurWidth:windowWidth-rect.right,rightBlurHeight:rect.height+2,onRest:onAnimationEnd})))}),[targetElement,shape,backgroundBlur,backgroundDarkness,padding,cornerRadius,windowWidth,windowHeight,isScrolling,isResizing,spring,finalRectangularPath,circularPath,rect.x,rect.y,rect.bottom,rect.height,rect.right,animateTargetChanges,onAnimationEnd,gpuTier]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_portal__WEBPACK_IMPORTED_MODULE_6__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledContainer,_extends({onClick:evt=>{handleEventWithAnalytics("Spotlight",onClick,"onClick",evt,containerProps)},style:{backgroundColor:containerBackgroundColor},ref:containerRef},containerProps),react__WEBPACK_IMPORTED_MODULE_0__.createElement(BackgroundBlurrer,{style:{backdropFilter:containerFilter,top:0,left:0,width:topBlurWidth,height:topBlurHeight}}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(BackgroundBlurrer,{style:{backdropFilter:containerFilter,top:bottomBlurY,left:0,width:bottomBlurWidth,height:bottomBlurHeight}}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(BackgroundBlurrer,{style:{backdropFilter:containerFilter,top:leftBlurY,left:0,width:leftBlurWidth,height:leftBlurHeight}}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(BackgroundBlurrer,{style:{backdropFilter:containerFilter,top:rightBlurY,right:0,width:rightBlurWidth,height:rightBlurHeight}})),react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{style:{position:"fixed",top:0,left:0},viewBox:`0 0 ${windowWidth} ${windowHeight}`,width:0,height:0},react__WEBPACK_IMPORTED_MODULE_0__.createElement("defs",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("clipPath",{clipRule:"evenodd",id:"foundryMask"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_react_spring_web__WEBPACK_IMPORTED_MODULE_1__.animated.path,{fill:"#FFFFFF",d:shape===SpotlightShapes.circular?circularLightPath:lightPath})))),react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledAnnotation,_extends({style:{transform:annotationTransform},ref:annotationRef},annotationProps),children))};Spotlight.Container=SpotlightContainer,Spotlight.Annotation=Annotation,Spotlight.SpotlightShapes=SpotlightShapes,__webpack_exports__.Z=Spotlight;try{Spotlight.displayName="Spotlight",Spotlight.__docgenInfo={description:"",displayName:"Spotlight",props:{StyledContainer:{defaultValue:{value:"styled(AnimatedDiv)`\n height: 100%;\n width: 100%;\n\n position: fixed;\n top: 0;\n left: 0;\n contain: strict;\n clip-path: url(#foundryMask);\n z-index: 200;\n`"},description:"",name:"StyledContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},containerProps:{defaultValue:null,description:"",name:"containerProps",required:!1,type:{name:"Record"}},containerRef:{defaultValue:null,description:"",name:"containerRef",required:!1,type:{name:"RefObject"}},StyledAnnotation:{defaultValue:{value:"styled(AnimatedDiv)`\n display: inline-block;\n position: fixed;\n top: 0;\n left: 0;\n padding-bottom: 1rem;\n\n z-index: 201;\n\n width: fit-content;\n max-width: 50vw;\n`"},description:"",name:"StyledAnnotation",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},annotationProps:{defaultValue:null,description:"",name:"annotationProps",required:!1,type:{name:"Record"}},annotationRef:{defaultValue:null,description:"",name:"annotationRef",required:!1,type:{name:"RefObject"}},targetElement:{defaultValue:null,description:"",name:"targetElement",required:!1,type:{name:"HTMLElement"}},backgroundBlur:{defaultValue:{value:"0.25rem"},description:"",name:"backgroundBlur",required:!1,type:{name:"string"}},backgroundDarkness:{defaultValue:{value:"0.3"},description:"",name:"backgroundDarkness",required:!1,type:{name:"number"}},shape:{defaultValue:{value:"SpotlightShapes.circular"},description:"",name:"shape",required:!1,type:{name:"enum",value:[{value:'"circular"'},{value:'"round"'},{value:'"box"'},{value:'"rounded box"'}]}},cornerRadius:{defaultValue:{value:"12"},description:"",name:"cornerRadius",required:!1,type:{name:"number"}},padding:{defaultValue:{value:"12"},description:"",name:"padding",required:!1,type:{name:"number"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!1,type:{name:"((e: MouseEvent) => void)"}},animateTargetChanges:{defaultValue:{value:"true"},description:"",name:"animateTargetChanges",required:!1,type:{name:"boolean"}},onAnimationEnd:{defaultValue:null,description:"",name:"onAnimationEnd",required:!1,type:{name:"(() => void)"}},animationSpringConfig:{defaultValue:null,description:"",name:"animationSpringConfig",required:!1,type:{name:"Record"}},resizeUpdateInterval:{defaultValue:{value:"0"},description:"",name:"resizeUpdateInterval",required:!1,type:{name:"number"}},scrollUpdateInterval:{defaultValue:{value:"0"},description:"",name:"scrollUpdateInterval",required:!1,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Spotlight/Spotlight.tsx#Spotlight"]={docgenInfo:Spotlight.__docgenInfo,name:"Spotlight",path:"src/components/Spotlight/Spotlight.tsx#Spotlight"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Table/Table.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{hY:function(){return ExpansionIconColumnName},ZP:function(){return Table_Table}});var react=__webpack_require__("./node_modules/react/index.js"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),polyfilled=__webpack_require__("./node_modules/use-resize-observer/polyfilled.js"),polyfilled_default=__webpack_require__.n(polyfilled),mdi=__webpack_require__("./node_modules/@mdi/js/mdi.js"),Icon=__webpack_require__("./node_modules/@mdi/react/Icon.js"),Icon_default=__webpack_require__.n(Icon),htmlElements=__webpack_require__("./src/htmlElements/index.tsx");let SortDirection;!function(SortDirection){SortDirection[SortDirection.noSort=0]="noSort",SortDirection[SortDirection.ascending=1]="ascending",SortDirection[SortDirection.descending=2]="descending"}(SortDirection||(SortDirection={}));var context=__webpack_require__("./src/context/index.tsx"),refs=__webpack_require__("./src/utils/refs.ts");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i{const{colors:colors}=(0,context.Fg)();return styled_components_browser_esm.iv` + width: ${reachedMinWidth?"100%":"auto"}; + background-color: ${colors.background}; + border-collapse: collapse; + + border-radius: 8px; + overflow: hidden; + `}} +`,Header=(0,styled_components_browser_esm.ZP)(htmlElements.DN)` + ${({columnGap:columnGap,columnWidths:columnWidths})=>{const{colors:colors}=(0,context.Fg)();return styled_components_browser_esm.iv` + display: grid; + grid-template-columns: ${columnWidths}; + padding: 0em 2em; + column-gap: ${columnGap}; + user-select: none; + + background-color: ${colors.primary}; + color: white; + `}} +`,HeaderCell=(0,styled_components_browser_esm.ZP)(htmlElements.zC)` + ${({sortable:sortable})=>styled_components_browser_esm.iv` + display: flex; + flex-flow: row; + cursor: pointer; + padding: 1em 0em 1em 1em; + margin-left: -1em; + + transition: background-color 0.5s; + + ${sortable?"":"pointer-events: none;"} + + &:hover { + background-color: rgba(255, 255, 255, 0.2); + } + `} +`,Footer=(0,styled_components_browser_esm.ZP)(htmlElements.DN)` + ${({columnGap:columnGap,columnWidths:columnWidths})=>{const{colors:colors}=(0,context.Fg)();return styled_components_browser_esm.iv` + display: grid; + grid-template-columns: ${columnWidths}; + padding: 0em 2em; + column-gap: ${columnGap}; + user-select: none; + + background-color: ${colors.grayXlight}; + color: ${colors.black}; + `}} +`,FooterCell=(0,styled_components_browser_esm.ZP)(htmlElements.zC)` + display: flex; + flex-flow: row; + cursor: pointer; + padding: 1em 0em 1em 1em; + margin-left: -1em; + + transition: background-color 0.5s; + &:hover { + background-color: rgba(255, 255, 255, 0.2); + } +`,ResponsiveHeaderCell=(0,styled_components_browser_esm.ZP)(htmlElements.aQ)` + ${({sortable:sortable})=>{const{colors:colors}=(0,context.Fg)();return styled_components_browser_esm.iv` + display: block; + word-break: break-word; + hyphens: auto; + color: ${colors.primary}; + user-select: none; + padding: 0.5em; + cursor: pointer; + margin-right: 0.5em; + background-color: rgba(0, 0, 0, 0.05); + border-radius: 0.5rem; + ${sortable?"":"pointer-events: none;"} + `}} +`,Row=(0,styled_components_browser_esm.ZP)(htmlElements.DN)` + ${({columnGap:columnGap,columnWidths:columnWidths,reachedMinWidth:reachedMinWidth,isCollapsed:isCollapsed=!1})=>{const{colors:colors}=(0,context.Fg)();return styled_components_browser_esm.iv` + display: grid; + grid-template-columns: ${reachedMinWidth?"100%":columnWidths}; + padding: ${reachedMinWidth?"1em":"0em"} 2em; + row-gap: 0.5em; + column-gap: ${columnGap}; + position: relative; + background-color: ${colors.background}; + ${isCollapsed?"height: 0px;":""} + + &:not(:last-child) { + border-bottom: 1px solid rgb(211, 214, 215); + } + + &:before { + content: ''; + z-index: 0; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: rgba(0, 0, 0, 0.2); + opacity: 0; + transition: opacity 0.3s; + + pointer-events: none; + } + &:hover:before { + opacity: 0.3; + } + `}} +`,GroupRow=(0,styled_components_browser_esm.ZP)(Row)` + ${()=>{const{colors:colors}=(0,context.Fg)();return`\n background-color: ${colors.grayXlight};\n `}} +`,Cell=(0,styled_components_browser_esm.ZP)(htmlElements.ZF)` + display: block; + word-break: break-word; + hyphens: auto; + width: unset; + padding: 0.5em 0; +`,SortIcon=(0,styled_components_browser_esm.ZP)(Icon_default())` + ${({$direction:$direction})=>("boolean"==typeof $direction&&console.warn("From FoundryUI Table: Passing a boolean to the `direction` prop on `SortIcon` is deprecated. Use the `Table.SortDirection` enum instead."),styled_components_browser_esm.iv` + margin-left: 1em; + fill: white; + width: 1em; + transition: transform 0.2s, opacity 0.5s; + opacity: ${null===$direction||$direction===SortDirection.noSort?0:1}; + transform: rotate( + ${!0===$direction||$direction===SortDirection.ascending?0:180}deg + ); + `)}; +`,CellContainer=(0,styled_components_browser_esm.ZP)(htmlElements.xt)` + display: flex; + padding: 0.5em 0; +`,defaultCollapsed={},collapsedExpandedIconColumn={name:"",sortable:!1,width:"1em"},onKeyPress=evt=>{"Enter"!==evt.key&&" "!==evt.key||(evt.preventDefault(),evt.target.click())},ExpansionIcon=({isCollapsed:isCollapsed,groupHeaderPosition:groupHeaderPosition,onClick:onClick})=>{const expanded="above"===groupHeaderPosition?mdi.CW:mdi.Waq,path=isCollapsed?mdi.zrb:expanded,handleEventWithAnalytics=(0,context.z$)();return react.createElement(StyledExpansionIconSpan,{tabIndex:0,onClick:e=>handleEventWithAnalytics("ExpansionIcon",onClick,isCollapsed?"expand":"collapse",e,{name:"ExpansionIcon"}),role:"button",onKeyPress:onKeyPress},react.createElement(Icon_default(),{path:path,size:"1em"}))},ExpansionIconColumnName="__EXPANSION_COLUMN__",Table=({columnGap:columnGap="1em",columns:columns,areGroupsCollapsible:areGroupsCollapsible=!1,data:data=[],defaultSort:defaultSort={sortedColumnKey:void 0,direction:SortDirection.noSort},groupHeaderPosition:groupHeaderPosition="above",expansionIconComponent:expansionIconComponent,minWidthBreakpoint:minWidthBreakpoint=640,sortGroups:sortGroups=!1,StyledCell:StyledCell=Cell,StyledContainer:StyledContainer=TableContainer,StyledGroupLabelRow:StyledGroupLabelRow=GroupRow,StyledHeader:StyledHeader=Header,StyledHeaderCell:StyledHeaderCell=HeaderCell,StyledResponsiveHeaderCell:StyledResponsiveHeaderCell=ResponsiveHeaderCell,StyledRow:StyledRow=Row,StyledFooter:StyledFooter=Footer,StyledFooterCell:StyledFooterCell=FooterCell,StyledCellContainer:StyledCellContainer=CellContainer,cellProps:cellProps={},containerProps:containerProps={},groupLabelRowProps:groupLabelRowProps={},headerProps:headerProps={},headerCellProps:headerCellProps={},responsiveHeaderCellProps:responsiveHeaderCellProps={},rowProps:rowProps={},containerRef:containerRef,groupLabelRowRef:groupLabelRowRef,headerRef:headerRef})=>{if(Array.isArray(defaultSort)){let direction;console.warn("From FoundryUI Table: Passing `defaultSort` prop as type [string, boolean] is deprecated. Instead, pass an argument of type `Table.SortState`."),direction=""===defaultSort[0]?SortDirection.noSort:defaultSort[1]?SortDirection.ascending:SortDirection.descending,defaultSort={direction:direction,sortedColumnKey:defaultSort[0]}}const[sortedData,setSortedData]=(0,react.useState)(data),[sortState,setSortState]=(0,react.useState)(defaultSort),[collapsedGroups,setCollapsedGroups]=(0,react.useState)(defaultCollapsed),{ref:ref,width:width=1/0}=polyfilled_default()({box:"border-box"}),usingGroups=data&&data.length>0&&Array.isArray(data[0]),copiedColumns=_objectSpread({},columns);areGroupsCollapsible&&!copiedColumns[ExpansionIconColumnName]&&(copiedColumns[ExpansionIconColumnName]=collapsedExpandedIconColumn);const columnWidths=Object.values(copiedColumns).map((col=>col.minTableWidth&&width<=col.minTableWidth?"0px":col.width||"1fr")).join(" "),compareEntries=(entry1,entry2,column,sortDirection)=>{if(column&&Object.prototype.hasOwnProperty.call(column,"sortFunction")){const customComparison=column.sortFunction(entry1,entry2);return sortDirection===SortDirection.ascending?customComparison?-1:1:customComparison?1:-1}return(sortDirection===SortDirection.ascending?entry1entry2)?-1:1},handleEventWithAnalytics=(0,context.z$)(),handleOnSort=sort=>handleEventWithAnalytics("Table",(()=>(({sortedColumnKey:key,direction:newDirection})=>{if(setSortState({sortedColumnKey:key,direction:newDirection}),setCollapsedGroups(defaultCollapsed),void 0===key||newDirection===SortDirection.noSort)return void setSortedData(data);const localData=[...data];if(Array.isArray(localData[0])){for(let groupIndex=0;groupIndex{group.sort(((row1,row2)=>compareEntries(row1[key],row2[key],copiedColumns[key],newDirection)))})),sortGroups&&localData.sort(((group1,group2)=>compareEntries(group1[0][key],group2[0][key],copiedColumns[key],newDirection)))}else localData.sort(((row1,row2)=>compareEntries(row1[key],row2[key],copiedColumns[key],newDirection)));setSortedData(localData)})(sort)),"onSort",sort,{containerProps:containerProps});(0,react.useEffect)((()=>{handleOnSort(sortState)}),[data]);const getNewSortState=key=>({sortedColumnKey:key,direction:sortState.sortedColumnKey===key?(sortState.direction+1)%3:SortDirection.ascending}),createCell=({RenderedCell:RenderedCell,headerColumnKey:headerColumnKey,breakPointHit:breakPointHit,row:row,index:index,indexModifier:indexModifier=0,CollapseExpandedIcon:CollapseExpandedIcon,groupIndex:groupIndex,isCollapsed:isCollapsed=!1,groupLabelDataString:groupLabelDataString,cellProps:cellPropsInput})=>(!copiedColumns[headerColumnKey].minTableWidth||breakPointHit)&&react.createElement(StyledCellContainer,null,""!==columns[headerColumnKey].name&&width{handleOnSort(getNewSortState(headerColumnKey))},sortable:copiedColumns[headerColumnKey].sortable,isSorted:sortState.sortedColumnKey===headerColumnKey&&sortState.direction!==SortDirection.noSort},responsiveHeaderCellProps),copiedColumns[headerColumnKey].name,react.createElement(SortIcon,{$direction:sortState.sortedColumnKey&&sortState.sortedColumnKey===headerColumnKey?sortState.direction:SortDirection.noSort,path:mdi.dYk})),react.createElement(RenderedCell,_extends({},row,{index:index,groupIndex:groupIndex,reachedMinWidth:width{(key=>{const group=collapsedGroups[key],temp=_objectSpread({},collapsedGroups);group?delete temp[key]:temp[key]=key,setCollapsedGroups(temp)})((groupLabelDataString||JSON.stringify(row))+groupIndex)}}):null)),hasFooter=Object.values(copiedColumns).some((col=>Object.prototype.hasOwnProperty.call(col,"footerContent")&&null!==col.footerContent&&void 0!==col.footerContent&&""!==col.footerContent));return react.createElement(StyledContainer,_extends({ref:(0,refs.l)([ref,containerRef]),reachedMinWidth:widthminWidthBreakpoint&&react.createElement(StyledHeader,_extends({columnGap:columnGap,columnWidths:columnWidths,ref:headerRef},headerProps),Object.keys(copiedColumns).map((headerColumnKey=>{const RenderedHeaderCell=copiedColumns[headerColumnKey].headerCellComponent||StyledHeaderCell,breakpointHit=width>(copiedColumns[headerColumnKey].minTableWidth||1/0);return(!copiedColumns[headerColumnKey].minTableWidth||breakpointHit)&&react.createElement(RenderedHeaderCell,_extends({key:headerColumnKey,onClick:()=>handleOnSort(getNewSortState(headerColumnKey)),sortable:copiedColumns[headerColumnKey].sortable,isSorted:sortState.sortedColumnKey===headerColumnKey&&sortState.direction!==SortDirection.noSort},headerCellProps),copiedColumns[headerColumnKey].name,react.createElement(SortIcon,{$direction:sortState.sortedColumnKey&&sortState.sortedColumnKey===headerColumnKey?sortState.direction:SortDirection.noSort,path:mdi.dYk}))})))),usingGroups?[...sortedData].map(((group,idx)=>{const groupLabelIndex=group.findIndex((grp=>!0===grp.isGroupLabel)),groupCopy=[...group],groupLabelData=groupLabelIndex>=0?groupCopy[groupLabelIndex]:void 0,groupLabelDataString=JSON.stringify(groupLabelData),indexModifier="above"===groupHeaderPosition?1:0,isCollapsed=!!collapsedGroups[groupLabelDataString+idx],rows=groupCopy.map(((row,index)=>{const RenderedRow=row.rowComponent||StyledRow;return index===groupLabelIndex?null:react.createElement(RenderedRow,_extends({columnGap:columnGap,columnWidths:columnWidths,rowNum:index+indexModifier,key:`row${JSON.stringify(row)+index}`,reachedMinWidth:width{const RenderedCell=copiedColumns[headerColumnKey].cellComponent||StyledCell,breakPointHit=width>(copiedColumns[headerColumnKey].minTableWidth||1/0),options={RenderedCell:RenderedCell,headerColumnKey:headerColumnKey,breakPointHit:breakPointHit,row:row,index:index,indexModifier:indexModifier,groupIndex:idx,isCollapsed:isCollapsed};return(!copiedColumns[headerColumnKey].minTableWidth||breakPointHit)&&createCell(options)})))}));if(groupLabelIndex>=0&&rows.splice(groupLabelIndex,1),groupLabelData){const index=0===indexModifier?rows.length:0,RenderedRow=groupLabelData.rowComponent||StyledGroupLabelRow,CollapseExpandedIcon=expansionIconComponent||ExpansionIcon,label=react.createElement(RenderedRow,_extends({columnGap:columnGap,columnWidths:columnWidths,rowNum:index,key:`row${groupLabelDataString}`,reachedMinWidth:width{const RenderedCell=usingGroups?copiedColumns[headerColumnKey].groupCellComponent||copiedColumns[headerColumnKey].cellComponent||StyledCell:copiedColumns[headerColumnKey].cellComponent||StyledCell,breakPointHit=width>(copiedColumns[headerColumnKey].minTableWidth||1/0),options={breakPointHit:breakPointHit,RenderedCell:RenderedCell,headerColumnKey:headerColumnKey,row:groupLabelData,groupLabelDataString:groupLabelDataString,index:index,groupIndex:idx,CollapseExpandedIcon:CollapseExpandedIcon,isCollapsed:isCollapsed,cellProps:cellProps};return(!copiedColumns[headerColumnKey].minTableWidth||breakPointHit)&&createCell(options)})));0===index?rows.splice(0,0,label):rows.push(label)}return react.createElement("tbody",{key:`group${idx}`},rows)})):react.createElement("tbody",null,sortedData.map(((row,index)=>{const RenderedRow=row.rowComponent||StyledRow;return react.createElement(RenderedRow,_extends({columnGap:columnGap,columnWidths:columnWidths,rowNum:index,key:`row${JSON.stringify(row)}`,reachedMinWidth:width{const RenderedCell=copiedColumns[headerColumnKey].cellComponent||StyledCell,breakPointHit=width>(copiedColumns[headerColumnKey].minTableWidth||1/0);return createCell({RenderedCell:RenderedCell,headerColumnKey:headerColumnKey,breakPointHit:breakPointHit,row:row,index:index})})))}))),react.createElement("tfoot",null,width>minWidthBreakpoint&&hasFooter&&react.createElement(StyledFooter,{columnGap:columnGap,columnWidths:columnWidths},Object.keys(copiedColumns).map(((headerColumnKey,index)=>{const RenderedFooterCell=StyledFooterCell,breakpointHit=width>(copiedColumns[headerColumnKey].minTableWidth||1/0);return(!copiedColumns[headerColumnKey].minTableWidth||breakpointHit)&&react.createElement(RenderedFooterCell,{key:`f${index}`},copiedColumns[headerColumnKey].footerContent)})))))};Table.Container=TableContainer,Table.Header=Header,Table.HeaderCell=HeaderCell,Table.Row=Row,Table.GroupRow=GroupRow,Table.Cell=Cell,Table.Title=ResponsiveHeaderCell,Table.ResponsiveHeaderCell=ResponsiveHeaderCell,Table.CellContainer=CellContainer,Table.ExpansionIconColumnName=ExpansionIconColumnName,Table.SortDirection=SortDirection;var Table_Table=Table;try{TableContainer.displayName="TableContainer",TableContainer.__docgenInfo={description:"",displayName:"TableContainer",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Table/Table.tsx#TableContainer"]={docgenInfo:TableContainer.__docgenInfo,name:"TableContainer",path:"src/components/Table/Table.tsx#TableContainer"})}catch(__react_docgen_typescript_loader_error){}try{Header.displayName="Header",Header.__docgenInfo={description:"",displayName:"Header",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Table/Table.tsx#Header"]={docgenInfo:Header.__docgenInfo,name:"Header",path:"src/components/Table/Table.tsx#Header"})}catch(__react_docgen_typescript_loader_error){}try{HeaderCell.displayName="HeaderCell",HeaderCell.__docgenInfo={description:"",displayName:"HeaderCell",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Table/Table.tsx#HeaderCell"]={docgenInfo:HeaderCell.__docgenInfo,name:"HeaderCell",path:"src/components/Table/Table.tsx#HeaderCell"})}catch(__react_docgen_typescript_loader_error){}try{Footer.displayName="Footer",Footer.__docgenInfo={description:"",displayName:"Footer",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Table/Table.tsx#Footer"]={docgenInfo:Footer.__docgenInfo,name:"Footer",path:"src/components/Table/Table.tsx#Footer"})}catch(__react_docgen_typescript_loader_error){}try{FooterCell.displayName="FooterCell",FooterCell.__docgenInfo={description:"",displayName:"FooterCell",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Table/Table.tsx#FooterCell"]={docgenInfo:FooterCell.__docgenInfo,name:"FooterCell",path:"src/components/Table/Table.tsx#FooterCell"})}catch(__react_docgen_typescript_loader_error){}try{ResponsiveHeaderCell.displayName="ResponsiveHeaderCell",ResponsiveHeaderCell.__docgenInfo={description:"",displayName:"ResponsiveHeaderCell",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Table/Table.tsx#ResponsiveHeaderCell"]={docgenInfo:ResponsiveHeaderCell.__docgenInfo,name:"ResponsiveHeaderCell",path:"src/components/Table/Table.tsx#ResponsiveHeaderCell"})}catch(__react_docgen_typescript_loader_error){}try{Row.displayName="Row",Row.__docgenInfo={description:"",displayName:"Row",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Table/Table.tsx#Row"]={docgenInfo:Row.__docgenInfo,name:"Row",path:"src/components/Table/Table.tsx#Row"})}catch(__react_docgen_typescript_loader_error){}try{GroupRow.displayName="GroupRow",GroupRow.__docgenInfo={description:"",displayName:"GroupRow",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Table/Table.tsx#GroupRow"]={docgenInfo:GroupRow.__docgenInfo,name:"GroupRow",path:"src/components/Table/Table.tsx#GroupRow"})}catch(__react_docgen_typescript_loader_error){}try{Cell.displayName="Cell",Cell.__docgenInfo={description:"",displayName:"Cell",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Table/Table.tsx#Cell"]={docgenInfo:Cell.__docgenInfo,name:"Cell",path:"src/components/Table/Table.tsx#Cell"})}catch(__react_docgen_typescript_loader_error){}try{SortIcon.displayName="SortIcon",SortIcon.__docgenInfo={description:"Accepts the `$direction` prop of type `SortDirection`",displayName:"SortIcon",props:{$direction:{defaultValue:null,description:"",name:"$direction",required:!1,type:{name:"boolean | SortDirection | null"}},theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Table/Table.tsx#SortIcon"]={docgenInfo:SortIcon.__docgenInfo,name:"SortIcon",path:"src/components/Table/Table.tsx#SortIcon"})}catch(__react_docgen_typescript_loader_error){}try{Table.displayName="Table",Table.__docgenInfo={description:"",displayName:"Table",props:{areGroupsCollapsible:{defaultValue:{value:"false"},description:"",name:"areGroupsCollapsible",required:!1,type:{name:"boolean"}},columnGap:{defaultValue:{value:"1em"},description:"",name:"columnGap",required:!1,type:{name:"string"}},columns:{defaultValue:null,description:"",name:"columns",required:!0,type:{name:"Record"}},data:{defaultValue:{value:"[]"},description:"",name:"data",required:!1,type:{name:"Record[] | Record[][]"}},defaultSort:{defaultValue:{value:"{ sortedColumnKey: undefined, direction: SortDirection.noSort }"},description:"Controls which field is initially sorted.\nThe `[string, boolean]` type for this prop is deprecated. Instead, use `Table.SortState`.",name:"defaultSort",required:!1,type:{name:"SortState | [string, boolean]"}},groupHeaderPosition:{defaultValue:{value:"above"},description:"",name:"groupHeaderPosition",required:!1,type:{name:"enum",value:[{value:'"above"'},{value:'"below"'}]}},expansionIconComponent:{defaultValue:null,description:"",name:"expansionIconComponent",required:!1,type:{name:"FunctionComponent"}},minWidthBreakpoint:{defaultValue:{value:"640"},description:"The width of the Table (in px) at which the Table collapses into vertical mode.",name:"minWidthBreakpoint",required:!1,type:{name:"number"}},sortGroups:{defaultValue:{value:"false"},description:"",name:"sortGroups",required:!1,type:{name:"boolean"}},StyledCell:{defaultValue:{value:"styled(StyledBaseTD)`\n display: block;\n word-break: break-word;\n hyphens: auto;\n width: unset;\n padding: 0.5em 0;\n`"},description:"",name:"StyledCell",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledContainer:{defaultValue:{value:"styled(StyledBaseTable)`\n ${({ reachedMinWidth }: { reachedMinWidth?: boolean }) => {\n const { colors } = useTheme();\n return css`\n width: ${reachedMinWidth ? '100%' : 'auto'};\n background-color: ${colors.background};\n border-collapse: collapse;\n\n border-radius: 8px;\n overflow: hidden;\n `;\n }}\n`"},description:"",name:"StyledContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledGroupLabelRow:{defaultValue:{value:"styled(Row)`\n ${() => {\n const { colors } = useTheme();\n return `\n background-color: ${colors.grayXlight};\n `;\n }}\n`"},description:"",name:"StyledGroupLabelRow",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledHeader:{defaultValue:{value:"styled(StyledBaseTR)`\n ${({ columnGap, columnWidths }: RowProps) => {\n const { colors } = useTheme();\n return css`\n display: grid;\n grid-template-columns: ${columnWidths};\n padding: 0em 2em;\n column-gap: ${columnGap};\n user-select: none;\n\n background-color: ${colors.primary};\n color: white;\n `;\n }}\n`"},description:"",name:"StyledHeader",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledHeaderCell:{defaultValue:{value:"styled(StyledBaseTH)`\n ${({ sortable }: { sortable: boolean }) => css`\n display: flex;\n flex-flow: row;\n cursor: pointer;\n padding: 1em 0em 1em 1em;\n margin-left: -1em;\n\n transition: background-color 0.5s;\n\n ${sortable ? '' : 'pointer-events: none;'}\n\n &:hover {\n background-color: rgba(255, 255, 255, 0.2);\n }\n `}\n`"},description:"",name:"StyledHeaderCell",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledResponsiveHeaderCell:{defaultValue:{value:"styled(StyledBaseSpan)`\n ${({ sortable }: { sortable: boolean }) => {\n const { colors } = useTheme();\n return css`\n display: block;\n word-break: break-word;\n hyphens: auto;\n color: ${colors.primary};\n user-select: none;\n padding: 0.5em;\n cursor: pointer;\n margin-right: 0.5em;\n background-color: rgba(0, 0, 0, 0.05);\n border-radius: 0.5rem;\n ${sortable ? '' : 'pointer-events: none;'}\n `;\n }}\n`"},description:"Header cells used when the Table is in condensed view\nbased on `minWidthBreakpoint`",name:"StyledResponsiveHeaderCell",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledRow:{defaultValue:{value:"styled(StyledBaseTR)`\n ${({ columnGap, columnWidths, reachedMinWidth, isCollapsed = false }: RowProps) => {\n const { colors } = useTheme();\n return css`\n display: grid;\n grid-template-columns: ${reachedMinWidth ? '100%' : columnWidths};\n padding: ${reachedMinWidth ? '1em' : '0em'} 2em;\n row-gap: 0.5em;\n column-gap: ${columnGap};\n position: relative;\n background-color: ${colors.background};\n ${isCollapsed ? 'height: 0px;' : ''}\n\n &:not(:last-child) {\n border-bottom: 1px solid rgb(211, 214, 215);\n }\n\n &:before {\n content: '';\n z-index: 0;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.2);\n opacity: 0;\n transition: opacity 0.3s;\n\n pointer-events: none;\n }\n &:hover:before {\n opacity: 0.3;\n }\n `;\n }}\n`"},description:"",name:"StyledRow",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledFooter:{defaultValue:{value:"styled(StyledBaseTR)`\n ${({ columnGap, columnWidths }: RowProps) => {\n const { colors } = useTheme();\n return css`\n display: grid;\n grid-template-columns: ${columnWidths};\n padding: 0em 2em;\n column-gap: ${columnGap};\n user-select: none;\n\n background-color: ${colors.grayXlight};\n color: ${colors.black};\n `;\n }}\n`"},description:"",name:"StyledFooter",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledFooterCell:{defaultValue:{value:"styled(StyledBaseTH)`\n display: flex;\n flex-flow: row;\n cursor: pointer;\n padding: 1em 0em 1em 1em;\n margin-left: -1em;\n\n transition: background-color 0.5s;\n &:hover {\n background-color: rgba(255, 255, 255, 0.2);\n }\n`"},description:"",name:"StyledFooterCell",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledCellContainer:{defaultValue:{value:"styled(StyledBaseDiv)`\n display: flex;\n padding: 0.5em 0;\n`"},description:"If in responsive mode (width < `minWidthBreakpoint`), the `CellContainer` contains the `StyledCell`\nand the `StyledResponsiveHeaderCellA `CellContainer` contains the `StyledCell`, as well as the `StyledResponsiveHeaderCell` for each cell\nif width is less than `minWidthBreakpoint`. If width is greater than `minWidthBreakpoint`, then the `CellContainer`\nonly wraps the `StyledCell`.",name:"StyledCellContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},cellProps:{defaultValue:{value:"{}"},description:"",name:"cellProps",required:!1,type:{name:"Record"}},containerProps:{defaultValue:{value:"{}"},description:"",name:"containerProps",required:!1,type:{name:"Record"}},groupLabelRowProps:{defaultValue:{value:"{}"},description:"",name:"groupLabelRowProps",required:!1,type:{name:"Record"}},headerProps:{defaultValue:{value:"{}"},description:"",name:"headerProps",required:!1,type:{name:"Record"}},headerCellProps:{defaultValue:{value:"{}"},description:"",name:"headerCellProps",required:!1,type:{name:"Record"}},responsiveHeaderCellProps:{defaultValue:{value:"{}"},description:"",name:"responsiveHeaderCellProps",required:!1,type:{name:"Record"}},rowProps:{defaultValue:{value:"{}"},description:"",name:"rowProps",required:!1,type:{name:"Record"}},containerRef:{defaultValue:null,description:"",name:"containerRef",required:!1,type:{name:"RefObject"}},groupLabelRowRef:{defaultValue:null,description:"",name:"groupLabelRowRef",required:!1,type:{name:"RefObject"}},headerRef:{defaultValue:null,description:"",name:"headerRef",required:!1,type:{name:"RefObject"}},headerCellRef:{defaultValue:null,description:"@deprecated",name:"headerCellRef",required:!1,type:{name:"RefObject"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Table/Table.tsx#Table"]={docgenInfo:Table.__docgenInfo,name:"Table",path:"src/components/Table/Table.tsx#Table"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Tag/Tag.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_mdi_react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@mdi/react/Icon.js"),_mdi_react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_mdi_react__WEBPACK_IMPORTED_MODULE_1__),_mdi_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/@mdi/js/mdi.js"),styled_components__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_enums_timings__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/enums/timings.ts"),_context__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/context/index.tsx"),_enums_variants__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/enums/variants.ts"),_Progress_Progress__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/components/Progress/Progress.tsx"),_htmlElements__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/htmlElements/index.tsx"),_utils_color__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/utils/color.ts"),_utils_styles__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/utils/styles.ts");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_3__.Fg)(),backgroundColor=(0,_utils_color__WEBPACK_IMPORTED_MODULE_7__.q5)(variant,color,colors.transparent),fontColor=(0,_utils_color__WEBPACK_IMPORTED_MODULE_7__.qN)(variant,color,colors.background,colors.grayDark);return`\n display: inline-flex;\n font-size: 1em;\n padding: .75em 1em;\n border-radius: 0.25em;\n transition:\n background-color ${_enums_timings__WEBPACK_IMPORTED_MODULE_2__.Z.fast},\n color ${_enums_timings__WEBPACK_IMPORTED_MODULE_2__.Z.slow},\n outline ${_enums_timings__WEBPACK_IMPORTED_MODULE_2__.Z.slow},\n filter ${_enums_timings__WEBPACK_IMPORTED_MODULE_2__.Z.slow},\n box-shadow ${_enums_timings__WEBPACK_IMPORTED_MODULE_2__.Z.slow};\n ${(0,_utils_styles__WEBPACK_IMPORTED_MODULE_8__.sM)(elevation,colors.shadow)}\n outline: 0 none;\n border: ${variant===_enums_variants__WEBPACK_IMPORTED_MODULE_4__.Z.outline?`1px solid ${color||colors.grayDark};`:"0 none;"}\n background-color: ${backgroundColor};\n color: ${fontColor};\n align-items: center;\n `}} +`,StyledProgress=(0,styled_components__WEBPACK_IMPORTED_MODULE_9__.ZP)(_Progress_Progress__WEBPACK_IMPORTED_MODULE_5__.ZP)` + width: 5em; + height: 10px; + margin-top: -5px; + margin-bottom: -5px; +`,IconContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_9__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_6__.xt)` + ${({position:position,hasContent:hasContent})=>`\n height: 1em;\n ${hasContent?`margin-${"right"===position?"left":"right"}: 1em;`:""}\n `} +`,Tag=({iconPrefix:iconPrefix,iconSuffix:iconSuffix,isLoading:isLoading,isProcessing:isProcessing,children:children,elevation:elevation=0,variant:variant=_enums_variants__WEBPACK_IMPORTED_MODULE_4__.Z.fill,color:color,id:id,containerProps:containerProps={},iconPrefixContainerProps:iconPrefixContainerProps={},iconSuffixContainerProps:iconSuffixContainerProps={},loadingBarProps:loadingBarProps={},containerRef:containerRef,iconPrefixContainerRef:iconPrefixContainerRef,iconSuffixContainerRef:iconSuffixContainerRef,loadingBarRef:loadingBarRef,StyledContainer:StyledContainer=Container,StyledIconContainer:StyledIconContainer=IconContainer,StyledLoadingBar:StyledLoadingBar=StyledProgress})=>{const hasContent=Boolean(children),{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_3__.Fg)(),mergedContainerProps=function _objectSpread(target){for(var i=1;i"}},iconPrefixContainerProps:{defaultValue:{value:"{}"},description:"",name:"iconPrefixContainerProps",required:!1,type:{name:"Record"}},iconSuffixContainerProps:{defaultValue:{value:"{}"},description:"",name:"iconSuffixContainerProps",required:!1,type:{name:"Record"}},loadingBarProps:{defaultValue:{value:"{}"},description:"",name:"loadingBarProps",required:!1,type:{name:"Record"}},StyledContainer:{defaultValue:{value:"styled(\n StyledBaseSpan,\n)`\n ${({ elevation = 0, color, variant }: TagContainerProps) => {\n const { colors } = useTheme();\n const backgroundColor = getBackgroundColorFromVariant(variant, color, colors.transparent);\n const fontColor = getFontColorFromVariant(variant, color, colors.background, colors.grayDark);\n\n return `\n display: inline-flex;\n font-size: 1em;\n padding: .75em 1em;\n border-radius: 0.25em;\n transition:\n background-color ${timings.fast},\n color ${timings.slow},\n outline ${timings.slow},\n filter ${timings.slow},\n box-shadow ${timings.slow};\n ${getShadowStyle(elevation, colors.shadow)}\n outline: 0 none;\n border: ${variant === variants.outline ? `1px solid ${color || colors.grayDark};` : '0 none;'}\n background-color: ${backgroundColor};\n color: ${fontColor};\n align-items: center;\n `;\n }}\n`"},description:"",name:"StyledContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledIconContainer:{defaultValue:{value:"styled(StyledBaseDiv)`\n ${({ position, hasContent }: IconContainerProps) => {\n return `\n height: 1em;\n ${hasContent ? `margin-${position === 'right' ? 'left' : 'right'}: 1em;` : ''}\n `;\n }}\n`"},description:"",name:"StyledIconContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledLoadingBar:{defaultValue:{value:"styled(Progress)`\n width: 5em;\n height: 10px;\n margin-top: -5px;\n margin-bottom: -5px;\n`"},description:"",name:"StyledLoadingBar",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},containerRef:{defaultValue:null,description:"",name:"containerRef",required:!1,type:{name:"RefObject"}},iconPrefixContainerRef:{defaultValue:null,description:"",name:"iconPrefixContainerRef",required:!1,type:{name:"RefObject"}},iconSuffixContainerRef:{defaultValue:null,description:"",name:"iconSuffixContainerRef",required:!1,type:{name:"RefObject"}},loadingBarRef:{defaultValue:null,description:"",name:"loadingBarRef",required:!1,type:{name:"RefObject"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Tag/Tag.tsx#Tag"]={docgenInfo:Tag.__docgenInfo,name:"Tag",path:"src/components/Tag/Tag.tsx#Tag"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Text/Text.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_mdi_react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@mdi/react/Icon.js"),_mdi_react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_mdi_react__WEBPACK_IMPORTED_MODULE_1__),_mdi_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@mdi/js/mdi.js"),_Skeleton_Skeleton__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/components/Skeleton/Skeleton.tsx"),_htmlElements__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/htmlElements/index.tsx");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i`\n font-size: ${size};\n color: ${color};\n `} +`,StyledSkeletonContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_4__.ZP)(_Skeleton_Skeleton__WEBPACK_IMPORTED_MODULE_2__.ZP.Container)` + display: inline; +`,IconContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_4__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_3__.aQ)` + ${({side:side})=>`\n margin-${"left"===side?"right":"left"}: .5em;\n display: inline-flex;\n vertical-align: middle;\n `} +`,Text=({children:children,color:color,iconPrefix:iconPrefix,iconSuffix:iconSuffix,isLoading:isLoading,isProcessing:isProcessing,size:size="1em",StyledContainer:StyledContainer=TextContainer,StyledIconContainer:StyledIconContainer=IconContainer,containerProps:containerProps={},iconContainerProps:iconContainerProps={},skeletonProps:skeletonProps={},containerRef:containerRef,iconPrefixContainerRef:iconPrefixContainerRef,iconSuffixContainerRef:iconSuffixContainerRef,skeletonRef:skeletonRef,shimmerRef:shimmerRef})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledContainer,_extends({"data-test-id":"hsui-Text",size:size,color:color,ref:containerRef},containerProps),!isProcessing&&iconPrefix&&("string"==typeof iconPrefix&&""!==iconPrefix?react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledIconContainer,_extends({side:"left",ref:iconPrefixContainerRef},iconContainerProps),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mdi_react__WEBPACK_IMPORTED_MODULE_1___default(),{path:iconPrefix,size:size})):react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledIconContainer,_extends({side:"left",size:size,ref:iconPrefixContainerRef},iconContainerProps),iconPrefix)),isProcessing&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledIconContainer,_extends({side:"left",ref:iconPrefixContainerRef},iconContainerProps),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mdi_react__WEBPACK_IMPORTED_MODULE_1___default(),{"aria-hidden":"true",path:_mdi_js__WEBPACK_IMPORTED_MODULE_5__.CEZ,size:size,spin:1})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Skeleton_Skeleton__WEBPACK_IMPORTED_MODULE_2__.ZP,_extends({color:color,isLoading:isLoading,containerRef:skeletonRef,shimmerRef:shimmerRef,StyledContainer:StyledSkeletonContainer},skeletonProps),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_htmlElements__WEBPACK_IMPORTED_MODULE_3__.aQ,null,children)),iconSuffix&&("string"==typeof iconSuffix&&""!==iconSuffix?react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledIconContainer,_extends({side:"right",ref:iconSuffixContainerRef},iconContainerProps),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mdi_react__WEBPACK_IMPORTED_MODULE_1___default(),{path:iconSuffix,size:size})):react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledIconContainer,_extends({side:"right",size:size,ref:iconSuffixContainerRef},iconContainerProps),iconSuffix)));Text.Container=TextContainer,Text.IconContainer=IconContainer,__webpack_exports__.Z=Text;try{TextContainer.displayName="TextContainer",TextContainer.__docgenInfo={description:"",displayName:"TextContainer",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Text/Text.tsx#TextContainer"]={docgenInfo:TextContainer.__docgenInfo,name:"TextContainer",path:"src/components/Text/Text.tsx#TextContainer"})}catch(__react_docgen_typescript_loader_error){}try{Text.displayName="Text",Text.__docgenInfo={description:"",displayName:"Text",props:{color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"string"}},iconPrefix:{defaultValue:null,description:"",name:"iconPrefix",required:!1,type:{name:"string | Element"}},iconSuffix:{defaultValue:null,description:"",name:"iconSuffix",required:!1,type:{name:"string | Element"}},isLoading:{defaultValue:null,description:"",name:"isLoading",required:!1,type:{name:"boolean"}},isProcessing:{defaultValue:null,description:"",name:"isProcessing",required:!1,type:{name:"boolean"}},size:{defaultValue:{value:"1em"},description:"",name:"size",required:!1,type:{name:"string"}},StyledSkeletonContainer:{defaultValue:null,description:"",name:"StyledSkeletonContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledContainer:{defaultValue:{value:"styled(StyledBaseSpan)`\n ${({ size, color }: { size: string; color: string }) => `\n font-size: ${size};\n color: ${color};\n `}\n`"},description:"",name:"StyledContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledIconContainer:{defaultValue:{value:"styled(StyledBaseSpan)`\n ${({ side }: { side: 'left' | 'right' }) => `\n margin-${side === 'left' ? 'right' : 'left'}: .5em;\n display: inline-flex;\n vertical-align: middle;\n `}\n`"},description:"",name:"StyledIconContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},containerProps:{defaultValue:{value:"{}"},description:"",name:"containerProps",required:!1,type:{name:"Record"}},iconContainerProps:{defaultValue:{value:"{}"},description:"",name:"iconContainerProps",required:!1,type:{name:"Record"}},skeletonProps:{defaultValue:{value:"{}"},description:"",name:"skeletonProps",required:!1,type:{name:"Record"}},containerRef:{defaultValue:null,description:"",name:"containerRef",required:!1,type:{name:"RefObject"}},iconPrefixContainerRef:{defaultValue:null,description:"",name:"iconPrefixContainerRef",required:!1,type:{name:"RefObject"}},iconSuffixContainerRef:{defaultValue:null,description:"",name:"iconSuffixContainerRef",required:!1,type:{name:"RefObject"}},skeletonRef:{defaultValue:null,description:"",name:"skeletonRef",required:!1,type:{name:"RefObject"}},shimmerRef:{defaultValue:null,description:"",name:"shimmerRef",required:!1,type:{name:"RefObject"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Text/Text.tsx#Text"]={docgenInfo:Text.__docgenInfo,name:"Text",path:"src/components/Text/Text.tsx#Text"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Text/index.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _Text__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/components/Text/Text.tsx");__webpack_exports__.Z=_Text__WEBPACK_IMPORTED_MODULE_0__.Z},"./src/components/TextInput/TextInput.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_mdi_react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@mdi/react/Icon.js"),_mdi_react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_mdi_react__WEBPACK_IMPORTED_MODULE_1__),lodash_debounce__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/lodash/debounce.js"),lodash_debounce__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_2__),_mdi_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/@mdi/js/mdi.js"),polished__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/polished/dist/polished.esm.js"),_htmlElements__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/htmlElements/index.tsx"),_utils_refs__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./src/utils/refs.ts"),_context__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/context/index.tsx"),_utils_color__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/utils/color.ts"),_enums_variants__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/enums/variants.ts"),_Button__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/components/Button/index.ts");const _excluded=["debouncedOnChange","onClear","clearable","iconPrefix","isValid","isMultiline","errorMessage","variant","debounceInterval","multiLineIsResizable","maxLength","allowTextBeyondMaxLength","showCharacterCount","StyledContainer","StyledInput","StyledIconContainer","StyledClearButtonContainer","StyledErrorContainer","StyledTextArea","StyledCharacterCount","containerProps","inputProps","iconContainerProps","clearButtonContainerProps","errorContainerProps","characterCountProps","containerRef","inputRef","iconContainerRef","clearButtonContainerRef","errorContainerRef","characterCountRef"];function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}const Container=(0,styled_components__WEBPACK_IMPORTED_MODULE_8__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_3__.xt)` + ${({disabled:disabled=!1,isValid:isValid,variant:variant=_enums_variants__WEBPACK_IMPORTED_MODULE_6__.Z.outline})=>{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_4__.Fg)(),borderColor=!1===isValid?colors.destructive:colors.grayMedium;return`\n min-width: 10em;\n position: relative;\n display: flex;\n flex-flow: row;\n align-items: stretch;\n border-radius: 0.25em;\n border: ${variant===_enums_variants__WEBPACK_IMPORTED_MODULE_6__.Z.outline?`1px solid ${borderColor}`:"1px solid transparent"};\n\n &:focus-within {\n outline: none;\n box-shadow: 0 0 5px 0.150rem ${colors.tertiary};\n }\n \n ${variant===_enums_variants__WEBPACK_IMPORTED_MODULE_6__.Z.fill?`border-bottom: 1px solid ${borderColor}; \n border-bottom-left-radius: 0; \n border-bottom-right-radius: 0;`:""}\n background-color: ${variant===_enums_variants__WEBPACK_IMPORTED_MODULE_6__.Z.fill?(0,polished__WEBPACK_IMPORTED_MODULE_9__._j)(.1,colors.background):colors.background};\n ${disabled?(0,_utils_color__WEBPACK_IMPORTED_MODULE_5__.Am)():""}\n `}} +`,TextInputContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_8__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_3__.O0)` + ${()=>{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_4__.Fg)();return`\n border: 0 none;\n flex-grow: 1;\n outline: 0 none;\n font-size: 1em;\n padding: 0.5em;\n background-color: ${colors.transparent};\n `}} +`,TextAreaInputContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_8__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_3__.v_)` + ${({multiLineIsResizable:multiLineIsResizable})=>{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_4__.Fg)();return`\n border: 0 none;\n flex-grow: 1;\n outline: 0 none;\n font-size: 1em;\n min-width: 0px;\n padding: .5em;\n background-color: ${colors.transparent};\n resize: ${multiLineIsResizable?"both":"none"};\n `}} +`,ClearButtonContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_8__.ZP)(_Button__WEBPACK_IMPORTED_MODULE_7__.Z.Container)` + padding: 0.5em; + height: 100%; +`,IconContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_8__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_3__.xt)` + ${()=>{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_4__.Fg)();return`\n padding: 0.5em;\n display: flex;\n align-items: center;\n justify-content: center;\n color: ${colors.grayMedium};\n cursor: text;\n `}} +`,CharacterCount=(0,styled_components__WEBPACK_IMPORTED_MODULE_8__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_3__.xt)` + ${({textIsTooLong:textIsTooLong,isValid:isValid,errorMessage:errorMessage})=>{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_4__.Fg)();return styled_components__WEBPACK_IMPORTED_MODULE_8__.iv` + position: absolute; + top: calc(100% + ${!isValid||errorMessage&&""===errorMessage?"2em":"0.25em"}); + right: 0.25em; + color: ${textIsTooLong?colors.destructive:colors.grayLight}; + `}} +`,ErrorContainer=(0,styled_components__WEBPACK_IMPORTED_MODULE_8__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_3__.xt)` + ${()=>{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_4__.Fg)();return styled_components__WEBPACK_IMPORTED_MODULE_8__.iv` + position: absolute; + top: calc(100% + 0.25em); + color: ${colors.destructive}; + font-size: 0.75em; + `}} +`,defaultCallback=()=>{},TextInput=_ref=>{let{debouncedOnChange:debouncedOnChange=defaultCallback,onClear:onClear,clearable:clearable,iconPrefix:iconPrefix,isValid:isValid=!0,isMultiline:isMultiline,errorMessage:errorMessage,variant:variant=_enums_variants__WEBPACK_IMPORTED_MODULE_6__.Z.outline,debounceInterval:debounceInterval=8,multiLineIsResizable:multiLineIsResizable,maxLength:maxLength,allowTextBeyondMaxLength:allowTextBeyondMaxLength=!1,showCharacterCount:showCharacterCount=!1,StyledContainer:StyledContainer=Container,StyledInput:StyledInput=TextInputContainer,StyledIconContainer:StyledIconContainer=IconContainer,StyledClearButtonContainer:StyledClearButtonContainer=ClearButtonContainer,StyledErrorContainer:StyledErrorContainer=ErrorContainer,StyledTextArea:StyledTextArea=TextAreaInputContainer,StyledCharacterCount:StyledCharacterCount=CharacterCount,containerProps:containerProps={},inputProps:inputProps={},iconContainerProps:iconContainerProps={},clearButtonContainerProps:clearButtonContainerProps={},errorContainerProps:errorContainerProps={},characterCountProps:characterCountProps={},containerRef:containerRef,inputRef:inputRef,iconContainerRef:iconContainerRef,clearButtonContainerRef:clearButtonContainerRef,errorContainerRef:errorContainerRef,characterCountRef:characterCountRef}=_ref,nativeHTMLAttributes=_objectWithoutProperties(_ref,_excluded);const handleEventWithAnalytics=(0,_context__WEBPACK_IMPORTED_MODULE_4__.z$)(),theme=(0,_context__WEBPACK_IMPORTED_MODULE_4__.Fg)(),handleDebouncedOnChange=e=>handleEventWithAnalytics("TextInput",debouncedOnChange,"debouncedOnChange",e,containerProps),debouncedChange=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(lodash_debounce__WEBPACK_IMPORTED_MODULE_2___default()(handleDebouncedOnChange,debounceInterval),[handleDebouncedOnChange,debounceInterval]),internalInputRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),InputComponent=isMultiline?StyledTextArea:StyledInput,[internalValue,setInternalValue]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(nativeHTMLAttributes.value||nativeHTMLAttributes.defaultValue||""),onClearToUse=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((evt=>{void 0===nativeHTMLAttributes.value&&(null!=internalInputRef&&internalInputRef.current&&(internalInputRef.current.value=""),setInternalValue("")),onClear&&onClear(evt)}),[nativeHTMLAttributes.value,onClear]);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{internalValue!==nativeHTMLAttributes.value&&""===nativeHTMLAttributes.value&&setInternalValue("")}),[internalValue,nativeHTMLAttributes.value]),react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledContainer,_extends({disabled:nativeHTMLAttributes.disabled,isValid:isValid,variant:variant,ref:containerRef},containerProps),iconPrefix&&("string"==typeof iconPrefix?react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledIconContainer,_extends({onClick:()=>{var _internalInputRef$cur;return null===(_internalInputRef$cur=internalInputRef.current)||void 0===_internalInputRef$cur?void 0:_internalInputRef$cur.focus()}},iconContainerProps,{ref:iconContainerRef}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mdi_react__WEBPACK_IMPORTED_MODULE_1___default(),{"aria-hidden":"true",size:"1em",path:iconPrefix})):react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledIconContainer,{onClick:()=>{var _internalInputRef$cur2;return null===(_internalInputRef$cur2=internalInputRef.current)||void 0===_internalInputRef$cur2?void 0:_internalInputRef$cur2.focus()}},iconPrefix)),react__WEBPACK_IMPORTED_MODULE_0__.createElement(InputComponent,_extends({type:"text",disabled:!1,cols:10,rows:10,role:"textbox"},nativeHTMLAttributes,{onChange:e=>{e.persist(),maxLength&&maxLength>=0&&(e.target.value=allowTextBeyondMaxLength?e.target.value:e.target.value.slice(0,maxLength)),setInternalValue(e.target.value),nativeHTMLAttributes.onChange&&nativeHTMLAttributes.onChange(e),debouncedChange(e)},multiLineIsResizable:multiLineIsResizable,ref:internalInputRef?(0,_utils_refs__WEBPACK_IMPORTED_MODULE_10__.l)([inputRef,internalInputRef]):null},inputProps)),clearable&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_7__.Z,{StyledContainer:StyledClearButtonContainer,containerRef:clearButtonContainerRef,containerProps:_objectSpread({"aria-label":"Clear",style:{lineHeight:"0"}},clearButtonContainerProps),iconPrefix:_mdi_js__WEBPACK_IMPORTED_MODULE_11__.r5M,leftIconProps:{style:{height:"1em",width:"1em"}},disabled:""===internalValue,onClick:e=>{handleEventWithAnalytics("TextInput",onClearToUse,"onClear",e,containerProps)},color:theme.colors.grayMedium,variant:_enums_variants__WEBPACK_IMPORTED_MODULE_6__.Z.text}),showCharacterCount&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledCharacterCount,_extends({ref:characterCountRef,errorMessage:errorMessage,isValid:isValid,textIsTooLong:!!maxLength&&internalValue.length>maxLength},characterCountProps),internalValue.length," ",void 0!==maxLength?`/ ${maxLength}`:null),!1===isValid&&errorMessage&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledErrorContainer,_extends({ref:errorContainerRef},errorContainerProps),errorMessage))};TextInput.Container=Container,TextInput.ErrorContainer=ErrorContainer,TextInput.Input=TextInputContainer,TextInput.IconContainer=IconContainer,TextInput.ClearButtonContainer=ClearButtonContainer,TextInput.TextArea=TextAreaInputContainer,TextInput.CharacterCount=CharacterCount,__webpack_exports__.Z=TextInput;try{TextInput.displayName="TextInput",TextInput.__docgenInfo={description:"",displayName:"TextInput",props:{iconPrefix:{defaultValue:null,description:"",name:"iconPrefix",required:!1,type:{name:"ReactNode"}},onClear:{defaultValue:null,description:"",name:"onClear",required:!1,type:{name:"((event: SyntheticEvent) => void)"}},clearable:{defaultValue:null,description:"",name:"clearable",required:!1,type:{name:"boolean"}},debouncedOnChange:{defaultValue:{value:"() => {}"},description:"",name:"debouncedOnChange",required:!1,type:{name:"((event: ChangeEvent) => void)"}},isValid:{defaultValue:{value:"true"},description:"",name:"isValid",required:!1,type:{name:"boolean"}},isMultiline:{defaultValue:null,description:"",name:"isMultiline",required:!1,type:{name:"boolean"}},errorMessage:{defaultValue:null,description:"",name:"errorMessage",required:!1,type:{name:"string"}},variant:{defaultValue:{value:"variants.outline"},description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"fill"'},{value:'"outline"'},{value:'"text"'}]}},debounceInterval:{defaultValue:{value:"8"},description:"",name:"debounceInterval",required:!1,type:{name:"number"}},multiLineIsResizable:{defaultValue:null,description:"",name:"multiLineIsResizable",required:!1,type:{name:"boolean"}},allowTextBeyondMaxLength:{defaultValue:{value:"false"},description:"",name:"allowTextBeyondMaxLength",required:!1,type:{name:"boolean"}},showCharacterCount:{defaultValue:{value:"false"},description:"",name:"showCharacterCount",required:!1,type:{name:"boolean"}},StyledContainer:{defaultValue:{value:"styled(StyledBaseDiv)`\n ${({ disabled = false, isValid, variant = variants.outline }: TextInputContainerProps) => {\n const { colors } = useTheme();\n const borderColor = isValid === false ? colors.destructive : colors.grayMedium;\n return `\n min-width: 10em;\n position: relative;\n display: flex;\n flex-flow: row;\n align-items: stretch;\n border-radius: 0.25em;\n border: ${\n variant === variants.outline ? `1px solid ${borderColor}` : '1px solid transparent'\n };\n\n &:focus-within {\n outline: none;\n box-shadow: 0 0 5px 0.150rem ${colors.tertiary};\n }\n \n ${\n variant === variants.fill\n ? `border-bottom: 1px solid ${borderColor}; \n border-bottom-left-radius: 0; \n border-bottom-right-radius: 0;`\n : ''\n }\n background-color: ${\n variant === variants.fill ? darken(0.1, colors.background) : colors.background\n };\n ${disabled ? disabledStyles() : ''}\n `;\n }}\n`"},description:"",name:"StyledContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledInput:{defaultValue:{value:"styled(StyledBaseInput)`\n ${() => {\n const { colors } = useTheme();\n return `\n border: 0 none;\n flex-grow: 1;\n outline: 0 none;\n font-size: 1em;\n padding: 0.5em;\n background-color: ${colors.transparent};\n `;\n }}\n`"},description:"",name:"StyledInput",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledIconContainer:{defaultValue:{value:"styled(StyledBaseDiv)`\n ${() => {\n const { colors } = useTheme();\n return `\n padding: 0.5em;\n display: flex;\n align-items: center;\n justify-content: center;\n color: ${colors.grayMedium};\n cursor: text;\n `;\n }}\n`"},description:"",name:"StyledIconContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledClearButtonContainer:{defaultValue:{value:"styled(Button.Container)`\n padding: 0.5em;\n height: 100%;\n`"},description:"",name:"StyledClearButtonContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledErrorContainer:{defaultValue:{value:"styled(StyledBaseDiv)`\n ${() => {\n const { colors } = useTheme();\n return css`\n position: absolute;\n top: calc(100% + 0.25em);\n color: ${colors.destructive};\n font-size: 0.75em;\n `;\n }}\n`"},description:"",name:"StyledErrorContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledTextArea:{defaultValue:{value:"styled(StyledBaseTextArea)`\n ${({ multiLineIsResizable }: TextInputProps) => {\n const { colors } = useTheme();\n return `\n border: 0 none;\n flex-grow: 1;\n outline: 0 none;\n font-size: 1em;\n min-width: 0px;\n padding: .5em;\n background-color: ${colors.transparent};\n resize: ${multiLineIsResizable ? 'both' : 'none'};\n `;\n }}\n`"},description:"",name:"StyledTextArea",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledCharacterCount:{defaultValue:{value:"styled(StyledBaseDiv)`\n ${({ textIsTooLong, isValid, errorMessage }) => {\n const { colors } = useTheme();\n return css`\n position: absolute;\n top: calc(100% + ${isValid && (!errorMessage || errorMessage !== '') ? '0.25em' : '2em'});\n right: 0.25em;\n color: ${textIsTooLong ? colors.destructive : colors.grayLight};\n `;\n }}\n`"},description:"",name:"StyledCharacterCount",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},containerProps:{defaultValue:{value:"{}"},description:"",name:"containerProps",required:!1,type:{name:"Record"}},inputProps:{defaultValue:{value:"{}"},description:"",name:"inputProps",required:!1,type:{name:"Record"}},iconContainerProps:{defaultValue:{value:"{}"},description:"",name:"iconContainerProps",required:!1,type:{name:"Record"}},clearButtonContainerProps:{defaultValue:{value:"{}"},description:"",name:"clearButtonContainerProps",required:!1,type:{name:"Record"}},errorContainerProps:{defaultValue:{value:"{}"},description:"",name:"errorContainerProps",required:!1,type:{name:"Record"}},characterCountProps:{defaultValue:{value:"{}"},description:"",name:"characterCountProps",required:!1,type:{name:"Record"}},containerRef:{defaultValue:null,description:"",name:"containerRef",required:!1,type:{name:"RefObject"}},inputRef:{defaultValue:null,description:"",name:"inputRef",required:!1,type:{name:"RefObject | ((inst: HTMLInputElement) => void)"}},iconContainerRef:{defaultValue:null,description:"",name:"iconContainerRef",required:!1,type:{name:"RefObject"}},clearButtonContainerRef:{defaultValue:null,description:"",name:"clearButtonContainerRef",required:!1,type:{name:"RefObject"}},errorContainerRef:{defaultValue:null,description:"",name:"errorContainerRef",required:!1,type:{name:"RefObject"}},characterCountRef:{defaultValue:null,description:"",name:"characterCountRef",required:!1,type:{name:"RefObject"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/TextInput/TextInput.tsx#TextInput"]={docgenInfo:TextInput.__docgenInfo,name:"TextInput",path:"src/components/TextInput/TextInput.tsx#TextInput"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/TextInput/index.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _TextInput__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/components/TextInput/TextInput.tsx");__webpack_exports__.Z=_TextInput__WEBPACK_IMPORTED_MODULE_0__.Z},"./src/components/Toggle/Toggle.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),polished__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/polished/dist/polished.esm.js"),react_aria__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/@react-aria/switch/dist/module.js"),_react_stately_toggle__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/@react-stately/toggle/dist/module.js"),_react_spring_web__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@react-spring/web/dist/react-spring-web.esm.js"),react_use_measure__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/react-use-measure/dist/web.js"),_juggle_resize_observer__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@juggle/resize-observer/lib/exports/resize-observer.js"),_htmlElements__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/htmlElements/index.tsx"),_context__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/context/index.tsx"),_enums_variants__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/enums/variants.ts"),_utils_color__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/utils/color.ts"),_utils_refs__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./src/utils/refs.ts");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i`\n ${variant===_enums_variants__WEBPACK_IMPORTED_MODULE_5__.Z.outline||variant===_enums_variants__WEBPACK_IMPORTED_MODULE_5__.Z.text?`border: 1px solid ${color};\n margin-left: -1px;`:""}\n ${variant===_enums_variants__WEBPACK_IMPORTED_MODULE_5__.Z.fill||variant===_enums_variants__WEBPACK_IMPORTED_MODULE_5__.Z.text?`\n background-color: ${color};\n `:""}\n ${variant===_enums_variants__WEBPACK_IMPORTED_MODULE_5__.Z.fill?`\n box-shadow: 0 .125em .125em -.125em ${(0,polished__WEBPACK_IMPORTED_MODULE_8__.DZ)(.3,(0,polished__WEBPACK_IMPORTED_MODULE_8__.ph)(.2,color))}; \n `:""}\n\n position: absolute;\n top: 50%;\n left 0;\n transform: translateY(-50%) translateX(0px - calc(.25em / 2));\n\n border-radius: .5em;\n width: calc(1em - (.25em));\n height: calc(1em - (.25em));\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: visible;\n margin-right: 0.5em;\n `}} +`,Container=(0,styled_components__WEBPACK_IMPORTED_MODULE_7__.ZP)(_htmlElements__WEBPACK_IMPORTED_MODULE_3__.fh)` + ${({color:color,variant:variant,focusRingColor:focusRingColor,disabled:disabled})=>`\n ${variant===_enums_variants__WEBPACK_IMPORTED_MODULE_5__.Z.outline||variant===_enums_variants__WEBPACK_IMPORTED_MODULE_5__.Z.text?`border: 1px solid ${color};`:""}\n ${variant===_enums_variants__WEBPACK_IMPORTED_MODULE_5__.Z.fill?`\n background-color: ${(0,polished__WEBPACK_IMPORTED_MODULE_8__.CD)(.4,color,(0,polished__WEBPACK_IMPORTED_MODULE_8__.XV)(color))};\n box-shadow: 0 .125em .25em -.125em ${(0,polished__WEBPACK_IMPORTED_MODULE_8__.DZ)(.3,(0,polished__WEBPACK_IMPORTED_MODULE_8__.ph)(.2,color))} inset; \n `:""}\n &:hover {\n background-color: ${(0,polished__WEBPACK_IMPORTED_MODULE_8__.CD)(.3,color,(0,polished__WEBPACK_IMPORTED_MODULE_8__.XV)(color))}\n }\n transition: background-color .2s;\n overflow: hidden;\n\n position: relative;\n cursor: pointer;\n border-radius: .75em;\n width: 2em;\n height: 1em;\n display: inline-block;\n vertical-align: top;\n\n &:focus-within {\n ${Handle} {\n box-shadow: 0 0 5px 0.150rem ${focusRingColor};\n }\n }\n\n ${disabled?(0,_utils_color__WEBPACK_IMPORTED_MODULE_6__.Am)():""}\n `} +`,Toggle=({color:color,StyledContainer:StyledContainer=Container,StyledHandle:StyledHandle=Handle,StyledInput:StyledInput=Input,containerProps:containerProps={},handleProps:handleProps={},inputProps:inputProps={},variant:variant=_enums_variants__WEBPACK_IMPORTED_MODULE_5__.Z.fill,checked:checked=!1,disabled:disabled=!1,onToggle:onToggle,containerRef:containerRef,handleRef:handleRef,inputRef:inputRef})=>{const{colors:colors}=(0,_context__WEBPACK_IMPORTED_MODULE_4__.Fg)(),[measurableContainerRef,containerBounds]=(0,react_use_measure__WEBPACK_IMPORTED_MODULE_9__.Z)({polyfill:_juggle_resize_observer__WEBPACK_IMPORTED_MODULE_2__.ResizeObserver}),[measurableHandleRef,handleBounds]=(0,react_use_measure__WEBPACK_IMPORTED_MODULE_9__.Z)({polyfill:_juggle_resize_observer__WEBPACK_IMPORTED_MODULE_2__.ResizeObserver}),mergedInputProps=function _objectSpread(target){for(var i=1;ihandleEventWithAnalytics("Toggle",onToggle,"onToggle",e,containerProps),ref:(0,_utils_refs__WEBPACK_IMPORTED_MODULE_12__.l)([inputRef,internalRef])},inputProps)))};Toggle.Handle=Handle,Toggle.Input=Input,Toggle.Container=Container,__webpack_exports__.ZP=Toggle;try{Input.displayName="Input",Input.__docgenInfo={description:"",displayName:"Input",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Toggle/Toggle.tsx#Input"]={docgenInfo:Input.__docgenInfo,name:"Input",path:"src/components/Toggle/Toggle.tsx#Input"})}catch(__react_docgen_typescript_loader_error){}try{Handle.displayName="Handle",Handle.__docgenInfo={description:"",displayName:"Handle",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Toggle/Toggle.tsx#Handle"]={docgenInfo:Handle.__docgenInfo,name:"Handle",path:"src/components/Toggle/Toggle.tsx#Handle"})}catch(__react_docgen_typescript_loader_error){}try{Container.displayName="Container",Container.__docgenInfo={description:"",displayName:"Container",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"any"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"undefined"}},forwardedAs:{defaultValue:null,description:"",name:"forwardedAs",required:!1,type:{name:"undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Toggle/Toggle.tsx#Container"]={docgenInfo:Container.__docgenInfo,name:"Container",path:"src/components/Toggle/Toggle.tsx#Container"})}catch(__react_docgen_typescript_loader_error){}try{Toggle.displayName="Toggle",Toggle.__docgenInfo={description:"",displayName:"Toggle",props:{color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"string"}},StyledContainer:{defaultValue:{value:"styled(StyledBaseLabel)`\n ${({\n color,\n variant,\n focusRingColor,\n disabled,\n }: {\n color: string;\n variant: variants;\n focusRingColor: string;\n disabled: boolean;\n }) => `\n ${\n variant === variants.outline || variant === variants.text\n ? `border: 1px solid ${color};`\n : ''\n }\n ${\n variant === variants.fill\n ? `\n background-color: ${mix(0.4, color, readableColor(color))};\n box-shadow: 0 .125em .25em -.125em ${transparentize(0.3, setLightness(0.2, color))} inset; \n `\n : ''\n }\n &:hover {\n background-color: ${mix(0.3, color, readableColor(color))}\n }\n transition: background-color .2s;\n overflow: hidden;\n\n position: relative;\n cursor: pointer;\n border-radius: .75em;\n width: 2em;\n height: 1em;\n display: inline-block;\n vertical-align: top;\n\n &:focus-within {\n ${Handle} {\n box-shadow: 0 0 5px 0.150rem ${focusRingColor};\n }\n }\n\n ${disabled ? disabledStyles() : ''}\n `}\n`"},description:"",name:"StyledContainer",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledHandle:{defaultValue:{value:"styled(AnimatedDiv)`\n ${({ variant, color }) => `\n ${\n variant === variants.outline || variant === variants.text\n ? `border: 1px solid ${color};\n margin-left: -1px;`\n : ''\n }\n ${\n variant === variants.fill || variant === variants.text\n ? `\n background-color: ${color};\n `\n : ''\n }\n ${\n variant === variants.fill\n ? `\n box-shadow: 0 .125em .125em -.125em ${transparentize(0.3, setLightness(0.2, color))}; \n `\n : ''\n }\n\n position: absolute;\n top: 50%;\n left 0;\n transform: translateY(-50%) translateX(0px - calc(.25em / 2));\n\n border-radius: .5em;\n width: calc(1em - (.25em));\n height: calc(1em - (.25em));\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: visible;\n margin-right: 0.5em;\n `}}\n`"},description:"",name:"StyledHandle",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledInput:{defaultValue:{value:"styled(StyledBaseInput).attrs({ type: 'checkbox' })`\n border: 0;\n clip: rect(0 0 0 0);\n clippath: inset(50%);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n`"},description:"",name:"StyledInput",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},StyledIcon:{defaultValue:null,description:"",name:"StyledIcon",required:!1,type:{name:"StyledComponentBase | ((props: any) => Element) | FC"}},containerProps:{defaultValue:{value:"{}"},description:"",name:"containerProps",required:!1,type:{name:"Record"}},handleProps:{defaultValue:{value:"{}"},description:"",name:"handleProps",required:!1,type:{name:"Record"}},inputProps:{defaultValue:{value:"{}"},description:"",name:"inputProps",required:!1,type:{name:"Record"}},iconProps:{defaultValue:null,description:"",name:"iconProps",required:!1,type:{name:"Record"}},variant:{defaultValue:{value:"variants.fill"},description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"fill"'},{value:'"outline"'},{value:'"text"'}]}},checked:{defaultValue:{value:"false"},description:"",name:"checked",required:!1,type:{name:"boolean"}},disabled:{defaultValue:{value:"false"},description:"",name:"disabled",required:!1,type:{name:"boolean"}},onToggle:{defaultValue:null,description:"",name:"onToggle",required:!1,type:{name:"((event: MouseEvent) => void)"}},containerRef:{defaultValue:null,description:"",name:"containerRef",required:!1,type:{name:"RefObject"}},handleRef:{defaultValue:null,description:"",name:"handleRef",required:!1,type:{name:"RefObject"}},inputRef:{defaultValue:null,description:"",name:"inputRef",required:!1,type:{name:"RefObject"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Toggle/Toggle.tsx#Toggle"]={docgenInfo:Toggle.__docgenInfo,name:"Toggle",path:"src/components/Toggle/Toggle.tsx#Toggle"})}catch(__react_docgen_typescript_loader_error){}},"./src/context/index.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{qx:function(){return FoundryProvider},O6:function(){return useAccessibilityPreferences},z$:function(){return useAnalytics},Fg:function(){return useTheme},r4:function(){return withGlobalStyle}});var react=__webpack_require__("./node_modules/react/index.js"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),main=__webpack_require__("./node_modules/react-device-detect/main.js"),a11y=__webpack_require__("./src/utils/a11y.ts"),detect_gpu_esm=__webpack_require__("./node_modules/detect-gpu/dist/detect-gpu.esm.js");var fonts=__webpack_require__("./src/enums/fonts.ts"),enums_colors=__webpack_require__("./src/enums/colors.ts");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i({componentType:componentType,eventType:eventType,eventArgs:eventArgs,dateTime:dateTime,deviceInfo:deviceInfo,currentURL:currentURL,name:null!=props&&props.name?props.name:"No name provided",analytics:null!=props&&props.analytics?props.analytics:"No analytics object provided"}),defaultContextValue={globalStyles:defaultGlobalStyles,colors:enums_colors.Z,accessibilityPreferences:{prefersReducedMotion:!0},performanceInfo:{tier:2,type:"BENCHMARK"},analyticsFunction:defaultAnalyticsFunction,styleConstants:{}},FoundryContext=react.createContext(defaultContextValue),FoundryProvider=({value:value=defaultContextValue,children:children})=>{const{globalStyles:globalStyles=defaultGlobalStyles,colors:colors=enums_colors.Z,styleConstants:styleConstants={},analyticsFunction:analyticsFunction=defaultAnalyticsFunction}=value,prefersReducedMotion=(0,a11y.J)(),performanceInfo=(()=>{const[tierResult,setTier]=(0,react.useState)({tier:2,type:"BENCHMARK"});return(0,react.useEffect)((()=>{(0,detect_gpu_esm.M)().then((tier=>setTier(tier)))}),[]),tierResult})(),mergedGlobalStyles=globalStyles===defaultGlobalStyles?globalStyles:`\n ${defaultGlobalStyles}\n ${globalStyles}\n `,mergedColors=_objectSpread(_objectSpread({},enums_colors.Z),colors);return react.createElement(FoundryContext.Provider,{value:{globalStyles:mergedGlobalStyles,colors:mergedColors,analyticsFunction:analyticsFunction,accessibilityPreferences:{prefersReducedMotion:prefersReducedMotion},performanceInfo:performanceInfo,styleConstants:styleConstants}},children)},useTheme=()=>(0,react.useContext)(FoundryContext),useAccessibilityPreferences=()=>{const{accessibilityPreferences:accessibilityPreferences}=(0,react.useContext)(FoundryContext);return accessibilityPreferences},withGlobalStyle=Component=>{const ComponentWithGlobalStyles=(0,styled_components_browser_esm.ZP)(Component)` + ${props=>props.globalStyles} + `;return react.forwardRef(((props,ref)=>{const{globalStyles:globalStyles}=(0,react.useContext)(FoundryContext);return react.createElement(ComponentWithGlobalStyles,_extends({globalStyles:globalStyles},props,{ref:ref}))}))},useAnalytics=()=>{const context=(0,react.useContext)(FoundryContext);return(componentType,eventFunction,eventType,eventArgs,props)=>{void 0!==eventFunction&&eventFunction(eventArgs);const dateTime=new Date,deviceInfo=(0,main.R2)();deviceInfo.innerHeight="undefined"!=typeof window?window.innerHeight:"Server Side Rendering Requires the analytics function to handle window dimensions",deviceInfo.innerWidth="undefined"!=typeof window?window.innerWidth:"Server Side Rendering Requires the analytics function to handle window dimensions";const currURL="undefined"!=typeof window?window.location.href:"Server Side Rendering Requires the analytics function to handle window URL";context.analyticsFunction(componentType,eventType,eventArgs,dateTime,deviceInfo,currURL,props)}};try{FoundryProvider.displayName="FoundryProvider",FoundryProvider.__docgenInfo={description:"",displayName:"FoundryProvider",props:{value:{defaultValue:{value:"{\n globalStyles: defaultGlobalStyles,\n colors: colorsEnum,\n accessibilityPreferences: defaultAccessibilityPreferences,\n performanceInfo: { tier: 2, type: 'BENCHMARK' as TierType },\n analyticsFunction: defaultAnalyticsFunction,\n styleConstants: {},\n // TODO Add Foundry's \"theme\" to items here and pull from the ContextProvider\n}"},description:"",name:"value",required:!1,type:{name:"{ globalStyles?: string; colors?: Record; analyticsFunction?: AnalyticsFunctionType | undefined; styleConstants?: Record<...> | undefined; } | undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/context/index.tsx#FoundryProvider"]={docgenInfo:FoundryProvider.__docgenInfo,name:"FoundryProvider",path:"src/context/index.tsx#FoundryProvider"})}catch(__react_docgen_typescript_loader_error){}try{withGlobalStyle.displayName="withGlobalStyle",withGlobalStyle.__docgenInfo={description:"",displayName:"withGlobalStyle",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/context/index.tsx#withGlobalStyle"]={docgenInfo:withGlobalStyle.__docgenInfo,name:"withGlobalStyle",path:"src/context/index.tsx#withGlobalStyle"})}catch(__react_docgen_typescript_loader_error){}},"./src/enums/checkboxTypes.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";let CheckboxTypes;__webpack_require__.d(__webpack_exports__,{D:function(){return CheckboxTypes}}),function(CheckboxTypes){CheckboxTypes.fill="fill",CheckboxTypes.cross="cross",CheckboxTypes.check="check",CheckboxTypes.default="default",CheckboxTypes.neutral="neutral"}(CheckboxTypes||(CheckboxTypes={})),__webpack_exports__.Z=CheckboxTypes},"./src/enums/colors.ts":function(__unused_webpack_module,__webpack_exports__){"use strict";var colors;!function(colors){colors.background="#fff",colors.primary="#DA4200",colors.primaryDark="#BF3A00",colors.secondary="#7349AC",colors.secondaryDark="#512888",colors.tertiary="#64ACC5",colors.tertiaryDark="#338BAA",colors.black="#000",colors.grayDark="#252D34",colors.grayMedium="#51575D",colors.grayLight="#9FA2A5",colors.grayXlight="#D5D5D5",colors.success="#698F00",colors.destructive="#d00",colors.shadow="#14161F",colors.grayDark25="rgba(211, 214, 215, 0.25)",colors.grayDark50="rgba(211, 214, 215, 0.5)",colors.grayDark75="rgba(211, 214, 215, 0.75)",colors.transparent="transparent"}(colors||(colors={})),__webpack_exports__.Z=colors},"./src/enums/feedbackTypes.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";let FeedbackTypes;!function(FeedbackTypes){FeedbackTypes.simple="simple",FeedbackTypes.ripple="ripple"}(FeedbackTypes||(FeedbackTypes={})),__webpack_exports__.Z=FeedbackTypes},"./src/enums/fonts.ts":function(__unused_webpack_module,__webpack_exports__){"use strict";var fonts;!function(fonts){fonts.body="font-family: Arial, Roboto, sans-serif;"}(fonts||(fonts={})),__webpack_exports__.Z=fonts},"./src/enums/timings.ts":function(__unused_webpack_module,__webpack_exports__){"use strict";var timings;!function(timings){timings.xFast=".1s",timings.fast=".2s",timings.normal=".3s",timings.slow=".5s",timings.xSlow="1s"}(timings||(timings={})),__webpack_exports__.Z=timings},"./src/enums/variants.ts":function(__unused_webpack_module,__webpack_exports__){"use strict";var variants;!function(variants){variants.fill="fill",variants.outline="outline",variants.text="text"}(variants||(variants={})),__webpack_exports__.Z=variants},"./src/htmlElements/index.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{DN:function(){return StyledBaseTR},IX:function(){return StyledBaseButton},O0:function(){return StyledBaseInput},XJ:function(){return AnimatedDiv},ZF:function(){return StyledBaseTD},aQ:function(){return StyledBaseSpan},fh:function(){return StyledBaseLabel},hm:function(){return StyledBaseHR},v_:function(){return StyledBaseTextArea},xt:function(){return StyledBaseDiv},zC:function(){return StyledBaseTH},zE:function(){return StyledBaseTable}});var styled_components__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_react_spring_web__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@react-spring/web/dist/react-spring-web.esm.js"),_context__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/context/index.tsx");const StyledBaseDiv=(0,_context__WEBPACK_IMPORTED_MODULE_1__.r4)(styled_components__WEBPACK_IMPORTED_MODULE_2__.ZP.div``),StyledBaseSpan=(0,_context__WEBPACK_IMPORTED_MODULE_1__.r4)(styled_components__WEBPACK_IMPORTED_MODULE_2__.ZP.span``),StyledBaseButton=(0,_context__WEBPACK_IMPORTED_MODULE_1__.r4)(styled_components__WEBPACK_IMPORTED_MODULE_2__.ZP.button``),StyledBaseInput=(0,_context__WEBPACK_IMPORTED_MODULE_1__.r4)(styled_components__WEBPACK_IMPORTED_MODULE_2__.ZP.input``),StyledBaseLabel=(0,_context__WEBPACK_IMPORTED_MODULE_1__.r4)(styled_components__WEBPACK_IMPORTED_MODULE_2__.ZP.label``),StyledBaseHR=(0,_context__WEBPACK_IMPORTED_MODULE_1__.r4)(styled_components__WEBPACK_IMPORTED_MODULE_2__.ZP.hr``),StyledBaseTable=(0,_context__WEBPACK_IMPORTED_MODULE_1__.r4)(styled_components__WEBPACK_IMPORTED_MODULE_2__.ZP.table``),StyledBaseTH=(0,_context__WEBPACK_IMPORTED_MODULE_1__.r4)(styled_components__WEBPACK_IMPORTED_MODULE_2__.ZP.th``),StyledBaseTD=(0,_context__WEBPACK_IMPORTED_MODULE_1__.r4)(styled_components__WEBPACK_IMPORTED_MODULE_2__.ZP.td``),StyledBaseTR=(0,_context__WEBPACK_IMPORTED_MODULE_1__.r4)(styled_components__WEBPACK_IMPORTED_MODULE_2__.ZP.tr``),StyledBaseTextArea=(0,_context__WEBPACK_IMPORTED_MODULE_1__.r4)(styled_components__WEBPACK_IMPORTED_MODULE_2__.ZP.textarea``),AnimatedDiv=(0,_context__WEBPACK_IMPORTED_MODULE_1__.r4)((0,styled_components__WEBPACK_IMPORTED_MODULE_2__.ZP)(_react_spring_web__WEBPACK_IMPORTED_MODULE_0__.animated.div)``),AnimatedSpan=(0,_context__WEBPACK_IMPORTED_MODULE_1__.r4)((0,styled_components__WEBPACK_IMPORTED_MODULE_2__.ZP)(_react_spring_web__WEBPACK_IMPORTED_MODULE_0__.animated.span)``);try{StyledBaseDiv.displayName="StyledBaseDiv",StyledBaseDiv.__docgenInfo={description:"",displayName:"StyledBaseDiv",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/htmlElements/index.tsx#StyledBaseDiv"]={docgenInfo:StyledBaseDiv.__docgenInfo,name:"StyledBaseDiv",path:"src/htmlElements/index.tsx#StyledBaseDiv"})}catch(__react_docgen_typescript_loader_error){}try{StyledBaseSpan.displayName="StyledBaseSpan",StyledBaseSpan.__docgenInfo={description:"",displayName:"StyledBaseSpan",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/htmlElements/index.tsx#StyledBaseSpan"]={docgenInfo:StyledBaseSpan.__docgenInfo,name:"StyledBaseSpan",path:"src/htmlElements/index.tsx#StyledBaseSpan"})}catch(__react_docgen_typescript_loader_error){}try{StyledBaseButton.displayName="StyledBaseButton",StyledBaseButton.__docgenInfo={description:"",displayName:"StyledBaseButton",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/htmlElements/index.tsx#StyledBaseButton"]={docgenInfo:StyledBaseButton.__docgenInfo,name:"StyledBaseButton",path:"src/htmlElements/index.tsx#StyledBaseButton"})}catch(__react_docgen_typescript_loader_error){}try{StyledBaseInput.displayName="StyledBaseInput",StyledBaseInput.__docgenInfo={description:"",displayName:"StyledBaseInput",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/htmlElements/index.tsx#StyledBaseInput"]={docgenInfo:StyledBaseInput.__docgenInfo,name:"StyledBaseInput",path:"src/htmlElements/index.tsx#StyledBaseInput"})}catch(__react_docgen_typescript_loader_error){}try{StyledBaseLabel.displayName="StyledBaseLabel",StyledBaseLabel.__docgenInfo={description:"",displayName:"StyledBaseLabel",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/htmlElements/index.tsx#StyledBaseLabel"]={docgenInfo:StyledBaseLabel.__docgenInfo,name:"StyledBaseLabel",path:"src/htmlElements/index.tsx#StyledBaseLabel"})}catch(__react_docgen_typescript_loader_error){}try{StyledBaseHR.displayName="StyledBaseHR",StyledBaseHR.__docgenInfo={description:"",displayName:"StyledBaseHR",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/htmlElements/index.tsx#StyledBaseHR"]={docgenInfo:StyledBaseHR.__docgenInfo,name:"StyledBaseHR",path:"src/htmlElements/index.tsx#StyledBaseHR"})}catch(__react_docgen_typescript_loader_error){}try{StyledBaseTable.displayName="StyledBaseTable",StyledBaseTable.__docgenInfo={description:"",displayName:"StyledBaseTable",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/htmlElements/index.tsx#StyledBaseTable"]={docgenInfo:StyledBaseTable.__docgenInfo,name:"StyledBaseTable",path:"src/htmlElements/index.tsx#StyledBaseTable"})}catch(__react_docgen_typescript_loader_error){}try{StyledBaseTH.displayName="StyledBaseTH",StyledBaseTH.__docgenInfo={description:"",displayName:"StyledBaseTH",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/htmlElements/index.tsx#StyledBaseTH"]={docgenInfo:StyledBaseTH.__docgenInfo,name:"StyledBaseTH",path:"src/htmlElements/index.tsx#StyledBaseTH"})}catch(__react_docgen_typescript_loader_error){}try{StyledBaseTD.displayName="StyledBaseTD",StyledBaseTD.__docgenInfo={description:"",displayName:"StyledBaseTD",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/htmlElements/index.tsx#StyledBaseTD"]={docgenInfo:StyledBaseTD.__docgenInfo,name:"StyledBaseTD",path:"src/htmlElements/index.tsx#StyledBaseTD"})}catch(__react_docgen_typescript_loader_error){}try{StyledBaseTR.displayName="StyledBaseTR",StyledBaseTR.__docgenInfo={description:"",displayName:"StyledBaseTR",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/htmlElements/index.tsx#StyledBaseTR"]={docgenInfo:StyledBaseTR.__docgenInfo,name:"StyledBaseTR",path:"src/htmlElements/index.tsx#StyledBaseTR"})}catch(__react_docgen_typescript_loader_error){}try{StyledBaseTextArea.displayName="StyledBaseTextArea",StyledBaseTextArea.__docgenInfo={description:"",displayName:"StyledBaseTextArea",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/htmlElements/index.tsx#StyledBaseTextArea"]={docgenInfo:StyledBaseTextArea.__docgenInfo,name:"StyledBaseTextArea",path:"src/htmlElements/index.tsx#StyledBaseTextArea"})}catch(__react_docgen_typescript_loader_error){}try{AnimatedDiv.displayName="AnimatedDiv",AnimatedDiv.__docgenInfo={description:"",displayName:"AnimatedDiv",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/htmlElements/index.tsx#AnimatedDiv"]={docgenInfo:AnimatedDiv.__docgenInfo,name:"AnimatedDiv",path:"src/htmlElements/index.tsx#AnimatedDiv"})}catch(__react_docgen_typescript_loader_error){}try{AnimatedSpan.displayName="AnimatedSpan",AnimatedSpan.__docgenInfo={description:"",displayName:"AnimatedSpan",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/htmlElements/index.tsx#AnimatedSpan"]={docgenInfo:AnimatedSpan.__docgenInfo,name:"AnimatedSpan",path:"src/htmlElements/index.tsx#AnimatedSpan"})}catch(__react_docgen_typescript_loader_error){}},"./src/index.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{zx:function(){return Button.Z},Zb:function(){return Card.Z},iz:function(){return Divider.Z},xv:function(){return Text.Z},O9:function(){return colors.Z},oW:function(){return variants.Z}});var Button=__webpack_require__("./src/components/Button/index.ts"),Card=__webpack_require__("./src/components/Card/index.ts"),Divider=(__webpack_require__("./src/components/Checkbox/Checkbox.tsx"),__webpack_require__("./src/components/Divider/index.ts")),Text=(__webpack_require__("./src/components/Dropdown/index.ts"),__webpack_require__("./src/components/InteractionFeedback/index.ts"),__webpack_require__("./src/components/Label/index.ts"),__webpack_require__("./src/components/Modal/index.ts"),__webpack_require__("./src/components/RangeSlider/RangeSlider.tsx"),__webpack_require__("./src/components/Spotlight/Spotlight.tsx"),__webpack_require__("./src/components/Table/Table.tsx"),__webpack_require__("./src/components/Tag/Tag.tsx"),__webpack_require__("./src/components/Text/index.ts")),colors=(__webpack_require__("./src/components/TextInput/index.ts"),__webpack_require__("./src/components/Toggle/Toggle.tsx"),__webpack_require__("./src/components/Progress/Progress.tsx"),__webpack_require__("./src/components/Skeleton/Skeleton.tsx"),__webpack_require__("./src/components/Avatar/Avatar.tsx"),__webpack_require__("./src/context/index.tsx"),__webpack_require__("./src/utils/hooks.ts"),__webpack_require__("./src/utils/styles.ts"),__webpack_require__("./src/htmlElements/index.tsx"),__webpack_require__("./src/enums/colors.ts")),variants=(__webpack_require__("./src/enums/timings.ts"),__webpack_require__("./src/enums/fonts.ts"),__webpack_require__("./src/enums/variants.ts"));__webpack_require__("./src/enums/feedbackTypes.ts"),__webpack_require__("./src/enums/checkboxTypes.ts"),__webpack_require__("./src/utils/color.ts"),__webpack_require__("./src/utils/a11y.ts")},"./src/utils/a11y.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{J:function(){return useReducedMotion}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");const useReducedMotion=(defaultVal=!0)=>{const[reducedMotion,setReducedMotion]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(defaultVal),queryChangeHandler=event=>{setReducedMotion(null==event?void 0:event.matches)};return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{const mediaQuery=window.matchMedia("(prefers-reduced-motion: reduce)");if(mediaQuery)return setReducedMotion(mediaQuery.matches),mediaQuery.addEventListener("change",queryChangeHandler),()=>mediaQuery.removeEventListener("change",queryChangeHandler)}),[]),reducedMotion}},"./src/utils/color.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Am:function(){return disabledStyles},q5:function(){return getBackgroundColorFromVariant},qN:function(){return getFontColorFromVariant}});var polished__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/polished/dist/polished.esm.js"),_enums_variants__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/enums/variants.ts"),_enums_colors__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/enums/colors.ts");const getFontColorFromVariant=(variant,color,lightReturnColor=_enums_colors__WEBPACK_IMPORTED_MODULE_1__.Z.background,darkReturnColor=_enums_colors__WEBPACK_IMPORTED_MODULE_1__.Z.grayDark)=>"fill"===variant?(0,polished__WEBPACK_IMPORTED_MODULE_2__.XV)(color,lightReturnColor,darkReturnColor,!0):color,getBackgroundColorFromVariant=(variant,color,transparentColor="transparent")=>{switch(variant){case _enums_variants__WEBPACK_IMPORTED_MODULE_0__.Z.text:case _enums_variants__WEBPACK_IMPORTED_MODULE_0__.Z.outline:return transparentColor;default:return color}},disabledStyles=({grayscale:grayscale=1,contrast:contrast=.5,brightness:brightness=1.2}={})=>`\n filter: grayscale(${grayscale}) contrast(${contrast}) brightness(${brightness});\n pointer-events: none;\n`},"./src/utils/hooks.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Dy:function(){return useWindowSizeObserver},P0:function(){return useScrollObserver}});var lodash_debounce__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/lodash/debounce.js"),lodash_debounce__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_0__),lodash_throttle__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/lodash/throttle.js"),lodash_throttle__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(lodash_throttle__WEBPACK_IMPORTED_MODULE_1__),react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/index.js");const useStateWithPrevious=defaultValue=>{const[currentValue,setInternalCurrentValue]=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(defaultValue),currentValueRef=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(defaultValue),previous=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(defaultValue);(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)((()=>{currentValueRef.current=currentValue}),[currentValue]);return[currentValue,previous.current,value=>{previous.current=currentValueRef.current,currentValueRef.current=value,setInternalCurrentValue(value)}]},useWindowSizeObserver=(reportInterval=0,resizeEndReportDelay=50)=>{const[width,previousWidth,setWidth]=useStateWithPrevious(window.innerWidth),[height,previousHeight,setHeight]=useStateWithPrevious(window.innerHeight),[isResizing,setIsResizing]=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(!1),debouncedEndResize=lodash_debounce__WEBPACK_IMPORTED_MODULE_0___default()((()=>{setWidth(window.innerWidth),setHeight(window.innerHeight),setIsResizing(!1)}),resizeEndReportDelay,{leading:!1,trailing:!0}),updateWindowBounds=(0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)((()=>{setWidth(window.innerWidth),setHeight(window.innerHeight),isResizing||setIsResizing(!0),debouncedEndResize()}),[debouncedEndResize,isResizing,setHeight,setWidth]),throttledResizeHandler=lodash_throttle__WEBPACK_IMPORTED_MODULE_1___default()(updateWindowBounds,reportInterval);return(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)((()=>(window.addEventListener("resize",throttledResizeHandler),()=>{window.removeEventListener("resize",throttledResizeHandler)})),[throttledResizeHandler]),{width:width,height:height,previousWidth:previousWidth,previousHeight:previousHeight,isResizing:isResizing}},useScrollObserver=(reportInterval=0,scrollEndReportDelay=50)=>{const[scrollX,previousScrollX,setScrollX]=useStateWithPrevious(window.scrollX),[scrollY,previousScrollY,setScrollY]=useStateWithPrevious(window.scrollY),[isScrolling,setIsScrolling]=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(!1),debouncedEndScroll=lodash_debounce__WEBPACK_IMPORTED_MODULE_0___default()((()=>{setScrollX(window.scrollX),setScrollY(window.scrollY),setIsScrolling(!1)}),scrollEndReportDelay,{leading:!1,trailing:!0}),updateWindowBounds=(0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)((()=>{setScrollX(window.scrollX),setScrollY(window.scrollY),isScrolling||setIsScrolling(!0),debouncedEndScroll()}),[debouncedEndScroll,isScrolling,setScrollY,setScrollX]),throttledScrollHandler=lodash_throttle__WEBPACK_IMPORTED_MODULE_1___default()(updateWindowBounds,reportInterval);return(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)((()=>(window.addEventListener("scroll",throttledScrollHandler),()=>{window.removeEventListener("scroll",throttledScrollHandler)})),[throttledScrollHandler]),{scrollX:scrollX,scrollY:scrollY,previousScrollX:previousScrollX,previousScrollY:previousScrollY,isScrolling:isScrolling}}},"./src/utils/math.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{k:function(){return randomId},u:function(){return clamp}});const clamp=(val,min,max)=>Math.max(Math.min(val,max),min),randomId=length=>{const alphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let result="";for(let i=0;i{const filteredRefs=refs.filter(Boolean);return inst=>{filteredRefs.forEach((ref=>{"function"==typeof ref?ref(inst):ref&&(ref.current=inst)}))}}},"./src/utils/styles.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{FO:function(){return getDropdownTagStyle},sM:function(){return getShadowStyle}});var polished__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/polished/dist/polished.esm.js"),_enums_variants__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/enums/variants.ts"),_color__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/utils/color.ts");const getShadowStyle=(elevation=0,shadowColor)=>{if(0===elevation)return"contain: layout;";const{red:red,green:green,blue:blue}=(0,polished__WEBPACK_IMPORTED_MODULE_2__.Oq)(shadowColor),{xOffset:xOffset,yOffset:yOffset,blur:blur,opacity:opacity}=((elevation=0)=>{const elevationValues={xOffset:0,yOffset:0,blur:0,opacity:0};if(!elevation)return elevationValues;const isNegative=elevation<0,absVal=Math.abs(elevation),logVal=Math.log10(absVal+1.2589254117941673),preciseOffsetY=isNegative?Math.round(Math.E**(absVal/10)+.1)/16:Math.E**(absVal/16)/16,preciseOpacity=.5-.2*logVal;return elevationValues.xOffset=0,elevationValues.yOffset=Math.round(1e3*preciseOffsetY)/1e3,elevationValues.blur=isNegative?2*absVal/16:.25*absVal,elevationValues.opacity=Math.round(1e3*preciseOpacity)/1e3,elevationValues})(elevation);return`\n contain: layout;\n ${elevation>0?`filter: drop-shadow(${xOffset}rem ${yOffset}rem ${blur}rem rgba(${red}, ${green}, ${blue},${opacity}));`:`box-shadow: inset ${xOffset}rem ${yOffset}rem ${blur}rem rgba(${red}, ${green}, ${blue},${opacity});`}\n `},getDropdownTagStyle=(dropdownVariant,tagVariant,dropdownColor,transparentColor)=>{let backgroundColor="",fontColor="";switch(dropdownVariant){case _enums_variants__WEBPACK_IMPORTED_MODULE_0__.Z.fill:tagVariant===_enums_variants__WEBPACK_IMPORTED_MODULE_0__.Z.text?(backgroundColor=transparentColor,fontColor=(0,_color__WEBPACK_IMPORTED_MODULE_1__.qN)(dropdownVariant,dropdownColor)):tagVariant===_enums_variants__WEBPACK_IMPORTED_MODULE_0__.Z.fill?(backgroundColor=(0,_color__WEBPACK_IMPORTED_MODULE_1__.qN)(dropdownVariant,dropdownColor),fontColor=dropdownColor):(backgroundColor=transparentColor,fontColor=(0,_color__WEBPACK_IMPORTED_MODULE_1__.qN)(dropdownVariant,dropdownColor));break;case _enums_variants__WEBPACK_IMPORTED_MODULE_0__.Z.outline:case _enums_variants__WEBPACK_IMPORTED_MODULE_0__.Z.text:tagVariant===_enums_variants__WEBPACK_IMPORTED_MODULE_0__.Z.text?(backgroundColor=transparentColor,fontColor=dropdownColor):tagVariant===_enums_variants__WEBPACK_IMPORTED_MODULE_0__.Z.fill?(backgroundColor=dropdownColor,fontColor=(0,_color__WEBPACK_IMPORTED_MODULE_1__.qN)(tagVariant,dropdownColor)):(backgroundColor=transparentColor,fontColor=dropdownColor);break;default:backgroundColor=transparentColor,fontColor=dropdownColor}return`\n border: ${tagVariant===_enums_variants__WEBPACK_IMPORTED_MODULE_0__.Z.outline?`1px solid ${fontColor};`:"0 none;"}\n background-color: ${backgroundColor};\n color: ${fontColor};\n margin-right: .25rem;\n margin-top: 1px;\n `}},"./storybook-init-framework-entry.js":function(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./node_modules/@storybook/react/dist/esm/client/index.js")},"./src/components sync recursive ^\\.(?:(?:^%7C\\/%7C(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/)(?%21\\.)(?=.)[^/]*?\\.stories\\.tsx)$":function(module,__unused_webpack_exports,__webpack_require__){var map={"./Appendix/Appendix.stories.tsx":"./src/components/Appendix/Appendix.stories.tsx","./Avatar/Avatar.stories.tsx":"./src/components/Avatar/Avatar.stories.tsx","./Button/Button.stories.tsx":"./src/components/Button/Button.stories.tsx","./Card/Card.stories.tsx":"./src/components/Card/Card.stories.tsx","./Checkbox/Checkbox.stories.tsx":"./src/components/Checkbox/Checkbox.stories.tsx","./Divider/Divider.stories.tsx":"./src/components/Divider/Divider.stories.tsx","./Dropdown/Dropdown.stories.tsx":"./src/components/Dropdown/Dropdown.stories.tsx","./Examples/Form.stories.tsx":"./src/components/Examples/Form.stories.tsx","./Examples/GlobalStyles.stories.tsx":"./src/components/Examples/GlobalStyles.stories.tsx","./InteractionFeedback/InteractionFeedback.stories.tsx":"./src/components/InteractionFeedback/InteractionFeedback.stories.tsx","./Label/Label.stories.tsx":"./src/components/Label/Label.stories.tsx","./Modal/Modal.stories.tsx":"./src/components/Modal/Modal.stories.tsx","./Progress/Progress.stories.tsx":"./src/components/Progress/Progress.stories.tsx","./RangeSlider/RangeSlider.stories.tsx":"./src/components/RangeSlider/RangeSlider.stories.tsx","./Skeleton/Skeleton.stories.tsx":"./src/components/Skeleton/Skeleton.stories.tsx","./Spotlight/Spotlight.stories.tsx":"./src/components/Spotlight/Spotlight.stories.tsx","./Table/Table.stories.tsx":"./src/components/Table/Table.stories.tsx","./Tag/Tag.stories.tsx":"./src/components/Tag/Tag.stories.tsx","./Text/Text.stories.tsx":"./src/components/Text/Text.stories.tsx","./TextInput/TextInput.stories.tsx":"./src/components/TextInput/TextInput.stories.tsx","./Toggle/Toggle.stories.tsx":"./src/components/Toggle/Toggle.stories.tsx"};function webpackContext(req){var id=webpackContextResolve(req);return __webpack_require__(id)}function webpackContextResolve(req){if(!__webpack_require__.o(map,req)){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}return map[req]}webpackContext.keys=function webpackContextKeys(){return Object.keys(map)},webpackContext.resolve=webpackContextResolve,module.exports=webpackContext,webpackContext.id="./src/components sync recursive ^\\.(?:(?:^%7C\\/%7C(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/)(?%21\\.)(?=.)[^/]*?\\.stories\\.tsx)$"},"./src sync recursive ^\\.(?:(?:^%7C\\/%7C(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cmdx))$":function(module){function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=function(){return[]},webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./src sync recursive ^\\.(?:(?:^%7C\\/%7C(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cmdx))$",module.exports=webpackEmptyContext},"?4f7e":function(){},"./generated-stories-entry.cjs":function(module,__unused_webpack_exports,__webpack_require__){"use strict";module=__webpack_require__.nmd(module),(0,__webpack_require__("./node_modules/@storybook/react/dist/esm/client/index.js").configure)([__webpack_require__("./src/components sync recursive ^\\.(?:(?:^%7C\\/%7C(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/)(?%21\\.)(?=.)[^/]*?\\.stories\\.tsx)$"),__webpack_require__("./src sync recursive ^\\.(?:(?:^%7C\\/%7C(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cmdx))$")],module,!1)}},function(__webpack_require__){var __webpack_exec__=function(moduleId){return __webpack_require__(__webpack_require__.s=moduleId)};__webpack_require__.O(0,[469],(function(){return __webpack_exec__("./node_modules/@storybook/core-server/node_modules/@storybook/core-client/dist/esm/globals/polyfills.js"),__webpack_exec__("./node_modules/@storybook/core-server/node_modules/@storybook/core-client/dist/esm/globals/globals.js"),__webpack_exec__("./storybook-init-framework-entry.js"),__webpack_exec__("./node_modules/@storybook/react/dist/esm/client/docs/config-generated-config-entry.js"),__webpack_exec__("./node_modules/@storybook/react/dist/esm/client/preview/config-generated-config-entry.js"),__webpack_exec__("./node_modules/@storybook/addon-links/preview.js-generated-config-entry.js"),__webpack_exec__("./node_modules/@storybook/addon-docs/preview.js-generated-config-entry.js"),__webpack_exec__("./node_modules/@storybook/addon-actions/preview.js-generated-config-entry.js"),__webpack_exec__("./node_modules/@storybook/addon-backgrounds/preview.js-generated-config-entry.js"),__webpack_exec__("./node_modules/@storybook/addon-measure/preview.js-generated-config-entry.js"),__webpack_exec__("./node_modules/@storybook/addon-outline/preview.js-generated-config-entry.js"),__webpack_exec__("./node_modules/@storybook/addon-a11y/preview.js-generated-config-entry.js"),__webpack_exec__("./.storybook/preview.ts-generated-config-entry.js"),__webpack_exec__("./generated-stories-entry.cjs")}));__webpack_require__.O()}]); +//# sourceMappingURL=main.1ccdb3ec.iframe.bundle.js.map \ No newline at end of file diff --git a/main.1ccdb3ec.iframe.bundle.js.map b/main.1ccdb3ec.iframe.bundle.js.map new file mode 100644 index 000000000..c0b40d23e --- /dev/null +++ b/main.1ccdb3ec.iframe.bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"main.1ccdb3ec.iframe.bundle.js","mappings":";;;;AAoBA;;AAKA;;;;;;;;ACWA;;;;;;;ACPA;ACkBA;AAcA;;;;;;;;AAQA;AAGA;AACA;AAGA;ACnDA;AASA;;;ACmFA;;;;;AAOA;;AAIA;;;;ACxGA;;AAGA;;AAUA;;;;;;ACAA;;;;;;;;;ACFA;ACZA;;;;;;;;AAUA;AACA;;;;;;;;;;;AAaA;;AAaA;;;AAGA;AASA;;;;;AC7CA;;;AAKA;;;;;;AAQA;;;AAKA;;;AAKA;;;AC5BA;;;;AAMA;;;AAKA;;;;;;;ACgBA;;;;;AAOA;ACbA;AAwBA;AACA;AASA;AACA;AAMA;ACQA;AA0DA;;AAIA;;;;;;AAQA;;AAIA;AACA;AAKA;AACA;AAKA;AC3JA;AAmCA;AACA;AAYA;;AAIA;AACA;AAUA;AACA;AAiBA;;;;;;AAoCA;;;;;;;;;;;AC7GA;AACA;AAaA;AACA;AA6BA;AACA;AAcA;;;;AAMA;AACA;AAQA;AACA;AAQA;AACA;AAQA;AACA;AAuCA;AC1JA;AAWA;;;;;AAoBA;ACIA;AAaA;AACA;AA4BA;;;;AAMA;;;;AAMA;;;AAKA;AACA;AAiCA;AACA;AAUA;AACA;AAiCA;AACA;AAcA;;;AAKA;AACA;AAwBA;;;AAOA;AACA;AAiGA;;AC7TA;;;;;AAwBA;AC7BA;AAYA;;;AAmCA;;;;;;;;;;;ACxBA;;;;;;;AAUA;AAGA;AA0EA;;;AC9GA;AACA;AAKA;AACA;;;;;;;;;;;;;;AAcA;;;AAKA;ACXA;AA6CA;AACA;AAyBA;AACA;AAiBA;AACA;AAgBA;AACA;AAYA;AACA;AAYA;AACA;AAcA;AACA;AAYA;;;AC5KA;AACA;AAGA;AACA;AAIA;;;;AAIA;AACA;AACA;;;;;;;;;;;;;;;;;AAiBA;;AAKA;AACA;AAuCA;;;;;;;;;;ACpEA;;;AAKA;;;;;;;;;;;AAaA;;ACRA;AACA;AAGA;AACA;;;;;;AASA;AACA;;AAIA;;AAEA;;;AAGA;;;AAMA;AACA;;;;;;;;;AASA;;;;;;AAQA;AACA;;AAIA;;AAEA;;;AAGA;AACA;;AAKA;;;;;;;;;;;AAaA;AACA;;;;AAMA;;;;;;;AAOA;;AAKA;AACA;;AAIA;AACA;;AAEA;;AAEA;AACA;;;;;;;;;;;;;;;;;;;;;;;;AA2BA;AACA;AAQA;;;;;;AASA;AACA;;;;;AAYA;;AAEA;;;AAMA;;;AAOA;AC/JA;AA0BA;;;;;AAOA;AACA;AAQA;ACrFA;AA2BA;;AAIA;AACA;AAWA;ACpBA;AAkCA;AACA;AAaA;AACA;AAeA;;;AAKA;AACA;AAaA;AACA;;AAIA;;AAEA;;AAKA;AACA;;;AAKA;;;AA6CA;;;;;;;;;;;ACnJA;AACA;AAsCA;AACA;AAgDA;ACsCA;AAKA","sources":["webpack://@headstorm/foundry-react-ui/./src/components/Appendix/Appendix.stories.tsx","webpack://@headstorm/foundry-react-ui/./src/components/Avatar/Avatar.stories.tsx","webpack://@headstorm/foundry-react-ui/./src/components/Button/Button.stories.tsx","webpack://@headstorm/foundry-react-ui/./src/components/Card/Card.stories.tsx","webpack://@headstorm/foundry-react-ui/./src/components/Divider/Divider.stories.tsx","webpack://@headstorm/foundry-react-ui/./src/components/Examples/Form.stories.tsx","webpack://@headstorm/foundry-react-ui/./src/components/Examples/GlobalStyles.stories.tsx","webpack://@headstorm/foundry-react-ui/./src/components/InteractionFeedback/InteractionFeedback.stories.tsx","webpack://@headstorm/foundry-react-ui/./src/components/Modal/Modal.stories.tsx","webpack://@headstorm/foundry-react-ui/./src/components/RangeSlider/RangeSlider.stories.tsx","webpack://@headstorm/foundry-react-ui/./src/components/Skeleton/Skeleton.stories.tsx","webpack://@headstorm/foundry-react-ui/./src/components/Spotlight/Spotlight.stories.tsx","webpack://@headstorm/foundry-react-ui/./src/components/Table/Table.stories.tsx","webpack://@headstorm/foundry-react-ui/./src/components/Avatar/Avatar.tsx","webpack://@headstorm/foundry-react-ui/./src/components/Button/Button.tsx","webpack://@headstorm/foundry-react-ui/./src/components/Card/Card.tsx","webpack://@headstorm/foundry-react-ui/./src/components/Checkbox/Checkbox.tsx","webpack://@headstorm/foundry-react-ui/./src/components/Divider/Divider.tsx","webpack://@headstorm/foundry-react-ui/./src/components/Dropdown/Dropdown.tsx","webpack://@headstorm/foundry-react-ui/./src/components/InteractionFeedback/InteractionFeedback.tsx","webpack://@headstorm/foundry-react-ui/./src/components/Label/Label.tsx","webpack://@headstorm/foundry-react-ui/./src/components/Modal/Modal.tsx","webpack://@headstorm/foundry-react-ui/./src/components/Progress/Progress.tsx","webpack://@headstorm/foundry-react-ui/./src/components/RangeSlider/RangeSlider.tsx","webpack://@headstorm/foundry-react-ui/./src/components/Skeleton/Skeleton.tsx","webpack://@headstorm/foundry-react-ui/./src/components/Spotlight/Spotlight.tsx","webpack://@headstorm/foundry-react-ui/./src/components/Table/Table.tsx","webpack://@headstorm/foundry-react-ui/./src/components/Tag/Tag.tsx","webpack://@headstorm/foundry-react-ui/./src/components/Text/Text.tsx","webpack://@headstorm/foundry-react-ui/./src/components/TextInput/TextInput.tsx","webpack://@headstorm/foundry-react-ui/./src/components/Toggle/Toggle.tsx","webpack://@headstorm/foundry-react-ui/./src/context/index.tsx"],"sourcesContent":["\n /* eslint-disable */\n // @ts-nocheck\n // @ts-ignore\n var __STORY__ = \"import React from 'react';\\nimport styled from 'styled-components';\\n\\nimport { Story, Meta } from '@storybook/react';\\n\\nimport { StyledBaseDiv } from '../../htmlElements';\\n\\nconst DocContainer = styled(StyledBaseDiv)`\\n justify-self: flex-start;\\n padding: 2rem;\\n max-width: 60rem;\\n`;\\nconst FullWidthImage = styled.img`\\n width: 100%;\\n`;\\n\\n// TODO: Turn these images into html\\nexport const Appendix: Story = () => {\\n return (\\n \\n

Welcome to Headstorm UI

\\n

\\n Headstorm UI is a component library which is in it for the long haul. Unlike other bootstrap\\n libraries, it lets you fully customize and theme every piece of it through a\\n straight-forward API, which means you won't have to rip out your components and rewrite them\\n once your app is out of the \\\"POC\\\" phase.\\n

\\n

\\n The components you used in the hackathon will be the same ones you use when you're a fortune\\n 500 megacorp.\\n

\\n \\n \\n
\\n );\\n};\\n\\nexport default {\\n title: 'Appendix',\\n parameters: { controls: { hideNoControlsWarning: true } },\\n} as Meta;\\n\";\n // @ts-ignore\n var __LOCATIONS_MAP__ = {\"Appendix\":{\"startLoc\":{\"col\":31,\"line\":18},\"endLoc\":{\"col\":1,\"line\":42},\"startBody\":{\"col\":31,\"line\":18},\"endBody\":{\"col\":1,\"line\":42}}};\n \nimport React from 'react';\nimport styled from 'styled-components';\n\nimport { Story, Meta } from '@storybook/react';\n\nimport { StyledBaseDiv } from '../../htmlElements';\n\nconst DocContainer = styled(StyledBaseDiv)`\n justify-self: flex-start;\n padding: 2rem;\n max-width: 60rem;\n`;\nconst FullWidthImage = styled.img`\n width: 100%;\n`;\n\n// TODO: Turn these images into html\nexport const Appendix: Story = () => {\n return (\n \n

Welcome to Headstorm UI

\n

\n Headstorm UI is a component library which is in it for the long haul. Unlike other bootstrap\n libraries, it lets you fully customize and theme every piece of it through a\n straight-forward API, which means you won't have to rip out your components and rewrite them\n once your app is out of the \"POC\" phase.\n

\n

\n The components you used in the hackathon will be the same ones you use when you're a fortune\n 500 megacorp.\n

\n \n \n
\n );\n};\n\nexport default {\n title: 'Appendix',\n parameters: { controls: { hideNoControlsWarning: true } },\n} as Meta;\n\n\n\nAppendix.parameters = { storySource: { source: \"() => {\\n return (\\n \\n

Welcome to Headstorm UI

\\n

\\n Headstorm UI is a component library which is in it for the long haul. Unlike other bootstrap\\n libraries, it lets you fully customize and theme every piece of it through a\\n straight-forward API, which means you won't have to rip out your components and rewrite them\\n once your app is out of the \\\"POC\\\" phase.\\n

\\n

\\n The components you used in the hackathon will be the same ones you use when you're a fortune\\n 500 megacorp.\\n

\\n \\n \\n
\\n );\\n}\" }, ...Appendix.parameters };","\n /* eslint-disable */\n // @ts-nocheck\n // @ts-ignore\n var __STORY__ = \"import * as React from 'react';\\nimport { Story, Meta } from '@storybook/react';\\nimport styled from 'styled-components';\\nimport { withFoundryContext } from '../../../.storybook/decorators';\\nimport colors from '../../enums/colors';\\nimport Avatar, { AvatarProps } from './Avatar';\\n\\nexport const DefaultAvatar: Story = (args: AvatarProps) => ;\\nDefaultAvatar.args = {\\n placeholder: 'AA',\\n children: '',\\n size: 10,\\n imgURL: 'https://source.unsplash.com/collection/19271953',\\n borderRadiusPercent: 50,\\n color: colors.grayXlight,\\n isLoading: false,\\n};\\n\\nconst LabelContainer = styled.div`\\n position: absolute;\\n bottom: 0;\\n width: 100%;\\n background-color: rgba(0, 0, 0, 0.5);\\n color: white;\\n padding: 8px 0;\\n text-align: center;\\n`;\\n\\nexport const LabelAvatar: Story = ({\\n children,\\n ...args\\n}: AvatarProps) => (\\n \\n {children}\\n \\n);\\n\\nLabelAvatar.args = {\\n placeholder: 'JS',\\n children: 'John Smith',\\n size: 10,\\n imgURL: 'https://source.unsplash.com/collection/19271953',\\n borderRadiusPercent: 10,\\n color: colors.grayXlight,\\n isLoading: false,\\n};\\n\\nexport default {\\n title: 'Avatar',\\n component: Avatar,\\n decorators: [withFoundryContext],\\n argTypes: {\\n borderRadiusPercent: { control: { type: 'range', min: 0, max: 50, step: 1 } },\\n },\\n} as Meta;\\n\";\n // @ts-ignore\n var __LOCATIONS_MAP__ = {\"DefaultAvatar\":{\"startLoc\":{\"col\":49,\"line\":8},\"endLoc\":{\"col\":92,\"line\":8},\"startBody\":{\"col\":49,\"line\":8},\"endBody\":{\"col\":92,\"line\":8}},\"LabelAvatar\":{\"startLoc\":{\"col\":70,\"line\":29},\"endLoc\":{\"col\":1,\"line\":36},\"startBody\":{\"col\":70,\"line\":29},\"endBody\":{\"col\":1,\"line\":36}}};\n \nimport * as React from 'react';\nimport { Story, Meta } from '@storybook/react';\nimport styled from 'styled-components';\nimport { withFoundryContext } from '../../../.storybook/decorators';\nimport colors from '../../enums/colors';\nimport Avatar, { AvatarProps } from './Avatar';\n\nexport const DefaultAvatar: Story = (args: AvatarProps) => ;;\nDefaultAvatar.args = {\n placeholder: 'AA',\n children: '',\n size: 10,\n imgURL: 'https://source.unsplash.com/collection/19271953',\n borderRadiusPercent: 50,\n color: colors.grayXlight,\n isLoading: false,\n};\n\nconst LabelContainer = styled.div`\n position: absolute;\n bottom: 0;\n width: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n color: white;\n padding: 8px 0;\n text-align: center;\n`;\n\nexport const LabelAvatar: Story = ({\n children,\n ...args\n}: AvatarProps) => (\n \n {children}\n \n);\n\nLabelAvatar.args = {\n placeholder: 'JS',\n children: 'John Smith',\n size: 10,\n imgURL: 'https://source.unsplash.com/collection/19271953',\n borderRadiusPercent: 10,\n color: colors.grayXlight,\n isLoading: false,\n};\n\nexport default {\n title: 'Avatar',\n component: Avatar,\n decorators: [withFoundryContext],\n argTypes: {\n borderRadiusPercent: { control: { type: 'range', min: 0, max: 50, step: 1 } },\n },\n} as Meta;\n\n\n\nDefaultAvatar.parameters = { storySource: { source: \"(args: AvatarProps) => \" }, ...DefaultAvatar.parameters };\nLabelAvatar.parameters = { storySource: { source: \"({\\n children,\\n ...args\\n}: AvatarProps) => (\\n \\n {children}\\n \\n)\" }, ...LabelAvatar.parameters };","\n /* eslint-disable */\n // @ts-nocheck\n // @ts-ignore\n var __STORY__ = \"import * as React from 'react';\\nimport styled from 'styled-components';\\n\\nimport { Story, Meta } from '@storybook/react';\\n\\nimport { mdiMessage, mdiSend } from '@mdi/js';\\n\\nimport variants from '../../enums/variants';\\nimport colors from '../../enums/colors';\\nimport FeedbackTypes from '../../enums/feedbackTypes';\\nimport Button, { ButtonProps } from './Button';\\n\\nconst StyledIconContainer = styled.div`\\n z-index: 1;\\n margin-left: 1em;\\n transition: transform 0.5s ease;\\n &:hover {\\n transform: rotate(180deg);\\n }\\n`;\\n\\nexport const BasicButton: Story = args => \\n );\\n\\n const cancelButton = (\\n \\n Reset\\n \\n );\\n\\n const confirmButton = (\\n \\n Reset form\\n \\n );\\n\\n const abortButton = (\\n \\n Go back\\n \\n );\\n\\n const Header = (\\n <>\\n \\n Edit Your Profile\\n \\n \\n \\n );\\n\\n return (\\n <>\\n \\n \\n 0}\\n errorMessage=\\\"First Name cannot be blank\\\"\\n id=\\\"firstName\\\"\\n />\\n \\n\\n \\n\\n 13}\\n key=\\\"age\\\"\\n >\\n 13}\\n id=\\\"age\\\"\\n type=\\\"number\\\"\\n />\\n \\n\\n 30}\\n >\\n 30}\\n errorMessage=\\\"Write a little more\\\"\\n isMultiline\\n rows={3}\\n cols={25}\\n />\\n \\n\\n \\n\\n \\n\\n \\n\\n \\n\\n \\n \\n {isModalOpen && (\\n \\n \\n You will lose any unsaved changes, are you sure you would like to reset?\\n \\n \\n )}\\n \\n );\\n};\\n\\nexport default {\\n title: 'Form Example',\\n parameters: {\\n design: {\\n type: 'figma',\\n url: 'https://www.figma.com/file/3r2G00brulOwr9j7F6JF59/Generic-UI-Style?node-id=0%3A1',\\n },\\n },\\n} as Meta;\\n\";\n // @ts-ignore\n var __LOCATIONS_MAP__ = {\"ControlledForm\":{\"startLoc\":{\"col\":37,\"line\":121},\"endLoc\":{\"col\":1,\"line\":350},\"startBody\":{\"col\":37,\"line\":121},\"endBody\":{\"col\":1,\"line\":350}}};\n \nimport React, { useState } from 'react';\nimport styled from 'styled-components';\nimport { Story, Meta } from '@storybook/react';\nimport { mdiAccountCircleOutline, mdiRefresh } from '@mdi/js';\nimport { name, address, internet, company, phone, commerce, lorem } from 'faker';\nimport TextInput from '../TextInput';\nimport Button from '../Button';\nimport Card from '../Card';\nimport Divider from '../Divider';\nimport Dropdown from '../Dropdown';\nimport Modal from '../Modal';\nimport Text from '../Text';\nimport Label from '../Label';\n\nimport colors from '../../enums/colors';\nimport variants from '../../enums/variants';\nimport Toggle from '../Toggle/Toggle';\n\n// All 50 + DC\nconst stateAbbreviations = [\n 'AL',\n 'AK',\n 'AZ',\n 'AR',\n 'CA',\n 'CO',\n 'CT',\n 'DE',\n 'DC',\n 'FL',\n 'GA',\n 'HI',\n 'ID',\n 'IL',\n 'IN',\n 'IA',\n 'KS',\n 'KY',\n 'LA',\n 'ME',\n 'MD',\n 'MA',\n 'MI',\n 'MN',\n 'MS',\n 'MO',\n 'MT',\n 'NE',\n 'NV',\n 'NH',\n 'NJ',\n 'NM',\n 'NY',\n 'NC',\n 'ND',\n 'OH',\n 'OK',\n 'OR',\n 'PA',\n 'RI',\n 'SC',\n 'SD',\n 'TN',\n 'TX',\n 'UT',\n 'VT',\n 'VA',\n 'WA',\n 'WV',\n 'WI',\n 'WY',\n];\n\ninterface state {\n firstName: string;\n lastName: string;\n title: string;\n city: string;\n state: string;\n phone: string;\n email: string;\n company: string;\n department: string;\n notifications: boolean;\n bio: string;\n age: number;\n}\n\nconst defaultState: state = {\n firstName: name.firstName(),\n lastName: name.lastName(),\n title: name.title(),\n city: address.city(),\n state: address.stateAbbr(),\n phone: phone.phoneNumber(),\n age: Math.ceil(Math.random() * 50 + 18),\n email: internet.email(),\n company: company.companyName(),\n department: commerce.department(),\n notifications: false,\n bio: lorem.paragraph(5),\n};\n\n// Adjusting the style of the footer to help position the buttons added\nconst StyledFooter = styled(Card.Footer)`\n display: flex;\n justify-content: space-between;\n`;\n\nconst StyledBody = styled(Card.Body)`\n display: grid;\n grid-template-columns: 1fr 1fr;\n column-gap: 1rem;\n row-gap: 1.5rem;\n`;\n\nconst ResetButtonContainer = styled(Button.Container)`\n margin-right: 1.5rem;\n`;\n\nexport const ControlledForm: Story = () => {\n const [state, setState] = useState(defaultState);\n const [isSaving, setIsSaving] = useState(false);\n const [isResetting, setIsResetting] = useState(false);\n const [savedState, setSavedState] = useState(defaultState);\n const [isModalOpen, setIsModalOpen] = useState(false);\n\n // By creating a callback function like this, we will create a new callback for each\n // handler on every render, which is not the ideal scenario for maximum performance.\n // To prevent this, use the useCallback helper. We're doing this to shorten the length\n // of the example's source code.\n const createTextInputCallback = (property: string): ((event: any) => void) => {\n return event => {\n setState({ ...state, [property]: event.target.value });\n };\n };\n\n const onSave = () => {\n const newSavedState = { ...state };\n setIsSaving(true);\n\n // Use a setTimeout to simulate a network call\n setTimeout(() => {\n setSavedState(newSavedState);\n setIsSaving(false);\n }, Math.random() * 1000);\n };\n\n const onReset = () => {\n setIsResetting(true);\n setIsModalOpen(false);\n\n // Simulate network call\n setTimeout(() => {\n setIsResetting(false);\n setState({ ...savedState });\n }, Math.random() * 1000 + 500);\n };\n\n const closeModal = () => {\n setIsModalOpen(false);\n };\n\n const openModal = () => {\n setIsModalOpen(true);\n };\n\n const saveButton = (\n \n {isSaving ? 'Saving' : 'Save'}\n \n );\n\n const cancelButton = (\n \n Reset\n \n );\n\n const confirmButton = (\n \n Reset form\n \n );\n\n const abortButton = (\n \n Go back\n \n );\n\n const Header = (\n <>\n \n Edit Your Profile\n \n \n \n );\n\n return (\n <>\n \n \n 0}\n errorMessage=\"First Name cannot be blank\"\n id=\"firstName\"\n />\n \n\n \n\n 13}\n key=\"age\"\n >\n 13}\n id=\"age\"\n type=\"number\"\n />\n \n\n 30}\n >\n 30}\n errorMessage=\"Write a little more\"\n isMultiline\n rows={3}\n cols={25}\n />\n \n\n \n\n \n\n \n\n \n\n \n \n {isModalOpen && (\n \n \n You will lose any unsaved changes, are you sure you would like to reset?\n \n \n )}\n \n );\n};\n\nexport default {\n title: 'Form Example',\n parameters: {\n design: {\n type: 'figma',\n url: 'https://www.figma.com/file/3r2G00brulOwr9j7F6JF59/Generic-UI-Style?node-id=0%3A1',\n },\n },\n} as Meta;\n\n\n\nControlledForm.parameters = { storySource: { source: \"() => {\\n const [state, setState] = useState(defaultState);\\n const [isSaving, setIsSaving] = useState(false);\\n const [isResetting, setIsResetting] = useState(false);\\n const [savedState, setSavedState] = useState(defaultState);\\n const [isModalOpen, setIsModalOpen] = useState(false);\\n\\n // By creating a callback function like this, we will create a new callback for each\\n // handler on every render, which is not the ideal scenario for maximum performance.\\n // To prevent this, use the useCallback helper. We're doing this to shorten the length\\n // of the example's source code.\\n const createTextInputCallback = (property: string): ((event: any) => void) => {\\n return event => {\\n setState({ ...state, [property]: event.target.value });\\n };\\n };\\n\\n const onSave = () => {\\n const newSavedState = { ...state };\\n setIsSaving(true);\\n\\n // Use a setTimeout to simulate a network call\\n setTimeout(() => {\\n setSavedState(newSavedState);\\n setIsSaving(false);\\n }, Math.random() * 1000);\\n };\\n\\n const onReset = () => {\\n setIsResetting(true);\\n setIsModalOpen(false);\\n\\n // Simulate network call\\n setTimeout(() => {\\n setIsResetting(false);\\n setState({ ...savedState });\\n }, Math.random() * 1000 + 500);\\n };\\n\\n const closeModal = () => {\\n setIsModalOpen(false);\\n };\\n\\n const openModal = () => {\\n setIsModalOpen(true);\\n };\\n\\n const saveButton = (\\n \\n {isSaving ? 'Saving' : 'Save'}\\n \\n );\\n\\n const cancelButton = (\\n \\n Reset\\n \\n );\\n\\n const confirmButton = (\\n \\n Reset form\\n \\n );\\n\\n const abortButton = (\\n \\n Go back\\n \\n );\\n\\n const Header = (\\n <>\\n \\n Edit Your Profile\\n \\n \\n \\n );\\n\\n return (\\n <>\\n \\n \\n 0}\\n errorMessage=\\\"First Name cannot be blank\\\"\\n id=\\\"firstName\\\"\\n />\\n \\n\\n \\n\\n 13}\\n key=\\\"age\\\"\\n >\\n 13}\\n id=\\\"age\\\"\\n type=\\\"number\\\"\\n />\\n \\n\\n 30}\\n >\\n 30}\\n errorMessage=\\\"Write a little more\\\"\\n isMultiline\\n rows={3}\\n cols={25}\\n />\\n \\n\\n \\n\\n \\n\\n \\n\\n \\n\\n \\n \\n {isModalOpen && (\\n \\n \\n You will lose any unsaved changes, are you sure you would like to reset?\\n \\n \\n )}\\n \\n );\\n}\" }, ...ControlledForm.parameters };","\n /* eslint-disable */\n // @ts-nocheck\n // @ts-ignore\n var __STORY__ = \"import React from 'react';\\nimport styled from 'styled-components';\\nimport { Story, Meta } from '@storybook/react';\\nimport { action } from '@storybook/addon-actions';\\nimport { FoundryProvider } from '../../context';\\nimport Text from '../Text';\\nimport Card from '../Card';\\nimport Button from '../Button';\\nimport colorsEnum from '../../enums/colors';\\n\\nconst Container = styled.div`\\n display: flex;\\n align-items: center;\\n flex-direction: column;\\n`;\\n\\nconst StyledTextContainer = styled(Text.Container)`\\n margin-bottom: 1rem;\\n`;\\nconst StyledCardContainer = styled(Card.Container)`\\n margin-bottom: 1rem;\\n`;\\n\\ninterface ExampleProps {\\n 'font-family': string;\\n primary: string;\\n grayDark: string;\\n}\\n\\nexport const Example: Story = ({\\n 'font-family': fontFamily,\\n primary,\\n grayDark,\\n}: ExampleProps) => {\\n const globalStyles = `\\n font-family: ${fontFamily};\\n `;\\n const colors = {\\n primary,\\n grayDark,\\n };\\n const showAnalytics = (\\n componentType: string,\\n eventType: string,\\n eventArgs?: React.ChangeEvent,\\n dateTime?: Date,\\n deviceInfo?: Record,\\n currentURL?: string,\\n props?: any,\\n ): void => {\\n action(`${componentType} ${eventType}`)(\\n componentType,\\n eventType,\\n eventArgs,\\n dateTime,\\n deviceInfo,\\n currentURL,\\n props,\\n );\\n };\\n const styleConstants = {\\n paddingSmall: '1rem',\\n paddingLarge: '2rem',\\n };\\n return (\\n \\n \\n Hello!\\n \\n These components all have a global set of styles applied to them through React's Context\\n API.\\n \\n \\n \\n \\n );\\n};\\nExample.args = {\\n 'font-family': 'Arial',\\n primary: colorsEnum.primary,\\n grayDark: colorsEnum.grayDark,\\n} as ExampleProps;\\n\\nexport default {\\n title: 'Global styles',\\n argTypes: {\\n 'font-family': {\\n options: ['Arial', 'Times New Roman', 'Monospace', 'unset'],\\n mapping: {\\n Arial: 'Arial,Roboto,sans-serif',\\n 'Times New Roman': '\\\"Times New Roman\\\",Times,serif',\\n Monospace: '\\\"Lucida Console\\\",Courier,monospace',\\n unset: 'unset',\\n },\\n control: {\\n type: 'radio',\\n },\\n },\\n },\\n} as Meta;\\n\";\n // @ts-ignore\n var __LOCATIONS_MAP__ = {\"Example\":{\"startLoc\":{\"col\":44,\"line\":30},\"endLoc\":{\"col\":1,\"line\":79},\"startBody\":{\"col\":44,\"line\":30},\"endBody\":{\"col\":1,\"line\":79}}};\n \nimport React from 'react';\nimport styled from 'styled-components';\nimport { Story, Meta } from '@storybook/react';\nimport { action } from '@storybook/addon-actions';\nimport { FoundryProvider } from '../../context';\nimport Text from '../Text';\nimport Card from '../Card';\nimport Button from '../Button';\nimport colorsEnum from '../../enums/colors';\n\nconst Container = styled.div`\n display: flex;\n align-items: center;\n flex-direction: column;\n`;\n\nconst StyledTextContainer = styled(Text.Container)`\n margin-bottom: 1rem;\n`;\nconst StyledCardContainer = styled(Card.Container)`\n margin-bottom: 1rem;\n`;\n\ninterface ExampleProps {\n 'font-family': string;\n primary: string;\n grayDark: string;\n}\n\nexport const Example: Story = ({\n 'font-family': fontFamily,\n primary,\n grayDark,\n}: ExampleProps) => {\n const globalStyles = `\n font-family: ${fontFamily};\n `;\n const colors = {\n primary,\n grayDark,\n };\n const showAnalytics = (\n componentType: string,\n eventType: string,\n eventArgs?: React.ChangeEvent,\n dateTime?: Date,\n deviceInfo?: Record,\n currentURL?: string,\n props?: any,\n ): void => {\n action(`${componentType} ${eventType}`)(\n componentType,\n eventType,\n eventArgs,\n dateTime,\n deviceInfo,\n currentURL,\n props,\n );\n };\n const styleConstants = {\n paddingSmall: '1rem',\n paddingLarge: '2rem',\n };\n return (\n \n \n Hello!\n \n These components all have a global set of styles applied to them through React's Context\n API.\n \n \n \n \n );\n};\nExample.args = {\n 'font-family': 'Arial',\n primary: colorsEnum.primary,\n grayDark: colorsEnum.grayDark,\n} as ExampleProps;\n\nexport default {\n title: 'Global styles',\n argTypes: {\n 'font-family': {\n options: ['Arial', 'Times New Roman', 'Monospace', 'unset'],\n mapping: {\n Arial: 'Arial,Roboto,sans-serif',\n 'Times New Roman': '\"Times New Roman\",Times,serif',\n Monospace: '\"Lucida Console\",Courier,monospace',\n unset: 'unset',\n },\n control: {\n type: 'radio',\n },\n },\n },\n} as Meta;\n\n\n\nExample.parameters = { storySource: { source: \"({\\n 'font-family': fontFamily,\\n primary,\\n grayDark,\\n}: ExampleProps) => {\\n const globalStyles = `\\n font-family: ${fontFamily};\\n `;\\n const colors = {\\n primary,\\n grayDark,\\n };\\n const showAnalytics = (\\n componentType: string,\\n eventType: string,\\n eventArgs?: React.ChangeEvent,\\n dateTime?: Date,\\n deviceInfo?: Record,\\n currentURL?: string,\\n props?: any,\\n ): void => {\\n action(`${componentType} ${eventType}`)(\\n componentType,\\n eventType,\\n eventArgs,\\n dateTime,\\n deviceInfo,\\n currentURL,\\n props,\\n );\\n };\\n const styleConstants = {\\n paddingSmall: '1rem',\\n paddingLarge: '2rem',\\n };\\n return (\\n \\n \\n Hello!\\n \\n These components all have a global set of styles applied to them through React's Context\\n API.\\n \\n \\n \\n \\n );\\n}\" }, ...Example.parameters };","\n /* eslint-disable */\n // @ts-nocheck\n // @ts-ignore\n var __STORY__ = \"import React from 'react';\\nimport styled from 'styled-components';\\nimport { Story, Meta } from '@storybook/react';\\nimport { action } from '@storybook/addon-actions';\\n\\nimport InteractionFeedback from './InteractionFeedback';\\nimport colors from '../../enums/colors';\\nimport Text from '../Text';\\n\\nconst InteractionInnerContainer = styled.div`\\n height: 100vh;\\n width: 100vw;\\n display: flex;\\n align-items: center;\\n justify-content: center;\\n`;\\n\\ninterface SplashProps {\\n entranceOpacity: number;\\n exitOpacity: number;\\n startingRadius: number;\\n endingRadius: number;\\n mass: number;\\n tension: number;\\n friction: number;\\n clamp: boolean;\\n color: string;\\n}\\n\\nexport const Splash: Story = ({\\n startingRadius,\\n entranceOpacity,\\n endingRadius,\\n exitOpacity,\\n mass,\\n tension,\\n friction,\\n clamp,\\n color,\\n}: SplashProps) => {\\n const transitionProps = {\\n from: {\\n r: `${startingRadius}`,\\n opacity: entranceOpacity,\\n },\\n enter: {\\n r: `${endingRadius}`,\\n opacity: exitOpacity,\\n },\\n config: {\\n mass,\\n tension,\\n friction,\\n clamp,\\n },\\n };\\n const interpolationFunctions = {\\n r: (r: any) => r.to((val: string) => `${Math.abs(parseFloat(val)).toFixed(1)}`),\\n opacity: (opacity: any) => opacity.to((val: number) => val.toFixed(2)),\\n };\\n return (\\n \\n \\n Click Anywhere!\\n \\n \\n );\\n};\\nSplash.args = {\\n entranceOpacity: 0.5,\\n exitOpacity: 0,\\n startingRadius: 0,\\n endingRadius: 100,\\n mass: 90,\\n tension: 1000,\\n friction: 20,\\n clamp: true,\\n color: colors.grayDark,\\n} as SplashProps;\\n\\nexport default {\\n title: 'InteractionFeedback',\\n argTypes: {\\n entranceOpacity: {\\n control: { type: 'range', min: 0, max: 1, step: 0.05, label: 'Circle entrance opacity' },\\n },\\n exitOpacity: {\\n control: { type: 'range', min: 0, max: 1, step: 0.05, label: 'Circle exit opacity' },\\n },\\n startingRadius: {\\n control: { type: 'range', min: 0, max: 100, step: 1, label: 'Starting circle radius' },\\n },\\n endingRadius: {\\n control: { type: 'range', min: 0, max: 100, step: 1, label: 'Ending circle radius' },\\n },\\n mass: { control: { type: 'range', min: 1, max: 100, step: 1 } },\\n tension: { control: { type: 'range', min: 50, max: 1000, step: 50 } },\\n friction: { control: { type: 'range', min: 1, max: 100, step: 1 } },\\n },\\n parameters: {\\n design: {\\n type: 'figma',\\n url: 'https://www.figma.com/file/3r2G00brulOwr9j7F6JF59/Generic-UI-Style?node-id=102%3A88',\\n },\\n },\\n} as Meta;\\n\";\n // @ts-ignore\n var __LOCATIONS_MAP__ = {\"Splash\":{\"startLoc\":{\"col\":42,\"line\":30},\"endLoc\":{\"col\":1,\"line\":72},\"startBody\":{\"col\":42,\"line\":30},\"endBody\":{\"col\":1,\"line\":72}}};\n \nimport React from 'react';\nimport styled from 'styled-components';\nimport { Story, Meta } from '@storybook/react';\nimport { action } from '@storybook/addon-actions';\n\nimport InteractionFeedback from './InteractionFeedback';\nimport colors from '../../enums/colors';\nimport Text from '../Text';\n\nconst InteractionInnerContainer = styled.div`\n height: 100vh;\n width: 100vw;\n display: flex;\n align-items: center;\n justify-content: center;\n`;\n\ninterface SplashProps {\n entranceOpacity: number;\n exitOpacity: number;\n startingRadius: number;\n endingRadius: number;\n mass: number;\n tension: number;\n friction: number;\n clamp: boolean;\n color: string;\n}\n\nexport const Splash: Story = ({\n startingRadius,\n entranceOpacity,\n endingRadius,\n exitOpacity,\n mass,\n tension,\n friction,\n clamp,\n color,\n}: SplashProps) => {\n const transitionProps = {\n from: {\n r: `${startingRadius}`,\n opacity: entranceOpacity,\n },\n enter: {\n r: `${endingRadius}`,\n opacity: exitOpacity,\n },\n config: {\n mass,\n tension,\n friction,\n clamp,\n },\n };\n const interpolationFunctions = {\n r: (r: any) => r.to((val: string) => `${Math.abs(parseFloat(val)).toFixed(1)}`),\n opacity: (opacity: any) => opacity.to((val: number) => val.toFixed(2)),\n };\n return (\n \n \n Click Anywhere!\n \n \n );\n};\nSplash.args = {\n entranceOpacity: 0.5,\n exitOpacity: 0,\n startingRadius: 0,\n endingRadius: 100,\n mass: 90,\n tension: 1000,\n friction: 20,\n clamp: true,\n color: colors.grayDark,\n} as SplashProps;\n\nexport default {\n title: 'InteractionFeedback',\n argTypes: {\n entranceOpacity: {\n control: { type: 'range', min: 0, max: 1, step: 0.05, label: 'Circle entrance opacity' },\n },\n exitOpacity: {\n control: { type: 'range', min: 0, max: 1, step: 0.05, label: 'Circle exit opacity' },\n },\n startingRadius: {\n control: { type: 'range', min: 0, max: 100, step: 1, label: 'Starting circle radius' },\n },\n endingRadius: {\n control: { type: 'range', min: 0, max: 100, step: 1, label: 'Ending circle radius' },\n },\n mass: { control: { type: 'range', min: 1, max: 100, step: 1 } },\n tension: { control: { type: 'range', min: 50, max: 1000, step: 50 } },\n friction: { control: { type: 'range', min: 1, max: 100, step: 1 } },\n },\n parameters: {\n design: {\n type: 'figma',\n url: 'https://www.figma.com/file/3r2G00brulOwr9j7F6JF59/Generic-UI-Style?node-id=102%3A88',\n },\n },\n} as Meta;\n\n\n\nSplash.parameters = { storySource: { source: \"({\\n startingRadius,\\n entranceOpacity,\\n endingRadius,\\n exitOpacity,\\n mass,\\n tension,\\n friction,\\n clamp,\\n color,\\n}: SplashProps) => {\\n const transitionProps = {\\n from: {\\n r: `${startingRadius}`,\\n opacity: entranceOpacity,\\n },\\n enter: {\\n r: `${endingRadius}`,\\n opacity: exitOpacity,\\n },\\n config: {\\n mass,\\n tension,\\n friction,\\n clamp,\\n },\\n };\\n const interpolationFunctions = {\\n r: (r: any) => r.to((val: string) => `${Math.abs(parseFloat(val)).toFixed(1)}`),\\n opacity: (opacity: any) => opacity.to((val: number) => val.toFixed(2)),\\n };\\n return (\\n \\n \\n Click Anywhere!\\n \\n \\n );\\n}\" }, ...Splash.parameters };","\n /* eslint-disable */\n // @ts-nocheck\n // @ts-ignore\n var __STORY__ = \"import React, { useCallback, useRef, useState } from 'react';\\nimport styled from 'styled-components';\\nimport { Story, Meta } from '@storybook/react';\\n\\nimport colors from '../../enums/colors';\\nimport Modal, { ModalProps, ModalApi } from './Modal';\\nimport Button from '../Button/Button';\\nimport Card from '../Card';\\nimport { withFoundryContext } from '../../../.storybook/decorators';\\n\\nconst Background = styled.div`\\n background-image: url(https://source.unsplash.com/weekly?landscape);\\n background-size: cover;\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n\\n height: 100vh;\\n width: 100vw;\\n`;\\n\\ntype DefaultProps = Omit & {\\n backgroundBlur: number;\\n 'onClickOutside function': boolean;\\n onClose: () => void;\\n};\\n\\nexport const Default: Story = ({\\n backgroundBlur,\\n 'onClickOutside function': onClickOutside,\\n onClose,\\n ...args\\n}: DefaultProps) => {\\n const [isOpen, setIsOpen] = useState(true);\\n\\n const handleClose = () => {\\n setIsOpen(false);\\n onClose();\\n };\\n\\n const modalRef = useRef();\\n\\n const customCloseButtonClick = useCallback(() => {\\n if (modalRef.current) {\\n modalRef.current.close();\\n }\\n }, [modalRef]);\\n\\n return (\\n \\n \\n setIsOpen(true)}\\n >\\n Open modal\\n \\n \\n {isOpen && (\\n \\n \\n Okay...\\n \\n }\\n elevation={1}\\n >\\n The content of the modal (the card and everything inside it) is customizable. The close\\n × is built-in but can be easily overwritten. It is the very model of a modern\\n major React modal.\\n \\n \\n )}\\n \\n );\\n};\\nDefault.args = {\\n closeButtonAttachment: 'inside',\\n backgroundDarkness: 0.5,\\n backgroundBlur: 0.5,\\n 'onClickOutside function': true,\\n};\\n\\nexport default {\\n title: 'Modal',\\n component: Modal,\\n argTypes: {\\n closeButtonAttachment: {\\n options: ['inside', 'outside', 'corner'],\\n control: {\\n type: 'select',\\n },\\n },\\n backgroundDarkness: {\\n control: { type: 'range', min: 0, max: 1, step: 0.05 },\\n },\\n backgroundBlur: {\\n control: { type: 'range', min: 0, max: 5, step: 0.1 },\\n },\\n },\\n decorators: [withFoundryContext],\\n parameters: {\\n layout: 'fullscreen',\\n design: {\\n type: 'figma',\\n url: 'https://www.figma.com/file/3r2G00brulOwr9j7F6JF59/Generic-UI-Style?node-id=102%3A14',\\n },\\n },\\n} as Meta;\\n\";\n // @ts-ignore\n var __LOCATIONS_MAP__ = {\"Default\":{\"startLoc\":{\"col\":44,\"line\":28},\"endLoc\":{\"col\":1,\"line\":85},\"startBody\":{\"col\":44,\"line\":28},\"endBody\":{\"col\":1,\"line\":85}}};\n \nimport React, { useCallback, useRef, useState } from 'react';\nimport styled from 'styled-components';\nimport { Story, Meta } from '@storybook/react';\n\nimport colors from '../../enums/colors';\nimport Modal, { ModalProps, ModalApi } from './Modal';\nimport Button from '../Button/Button';\nimport Card from '../Card';\nimport { withFoundryContext } from '../../../.storybook/decorators';\n\nconst Background = styled.div`\n background-image: url(https://source.unsplash.com/weekly?landscape);\n background-size: cover;\n display: flex;\n justify-content: center;\n align-items: center;\n\n height: 100vh;\n width: 100vw;\n`;\n\ntype DefaultProps = Omit & {\n backgroundBlur: number;\n 'onClickOutside function': boolean;\n onClose: () => void;\n};\n\nexport const Default: Story = ({\n backgroundBlur,\n 'onClickOutside function': onClickOutside,\n onClose,\n ...args\n}: DefaultProps) => {\n const [isOpen, setIsOpen] = useState(true);\n\n const handleClose = () => {\n setIsOpen(false);\n onClose();\n };\n\n const modalRef = useRef();\n\n const customCloseButtonClick = useCallback(() => {\n if (modalRef.current) {\n modalRef.current.close();\n }\n }, [modalRef]);\n\n return (\n \n \n setIsOpen(true)}\n >\n Open modal\n \n \n {isOpen && (\n \n \n Okay...\n \n }\n elevation={1}\n >\n The content of the modal (the card and everything inside it) is customizable. The close\n × is built-in but can be easily overwritten. It is the very model of a modern\n major React modal.\n \n \n )}\n \n );\n};\nDefault.args = {\n closeButtonAttachment: 'inside',\n backgroundDarkness: 0.5,\n backgroundBlur: 0.5,\n 'onClickOutside function': true,\n};\n\nexport default {\n title: 'Modal',\n component: Modal,\n argTypes: {\n closeButtonAttachment: {\n options: ['inside', 'outside', 'corner'],\n control: {\n type: 'select',\n },\n },\n backgroundDarkness: {\n control: { type: 'range', min: 0, max: 1, step: 0.05 },\n },\n backgroundBlur: {\n control: { type: 'range', min: 0, max: 5, step: 0.1 },\n },\n },\n decorators: [withFoundryContext],\n parameters: {\n layout: 'fullscreen',\n design: {\n type: 'figma',\n url: 'https://www.figma.com/file/3r2G00brulOwr9j7F6JF59/Generic-UI-Style?node-id=102%3A14',\n },\n },\n} as Meta;\n\n\n\nDefault.parameters = { storySource: { source: \"({\\n backgroundBlur,\\n 'onClickOutside function': onClickOutside,\\n onClose,\\n ...args\\n}: DefaultProps) => {\\n const [isOpen, setIsOpen] = useState(true);\\n\\n const handleClose = () => {\\n setIsOpen(false);\\n onClose();\\n };\\n\\n const modalRef = useRef();\\n\\n const customCloseButtonClick = useCallback(() => {\\n if (modalRef.current) {\\n modalRef.current.close();\\n }\\n }, [modalRef]);\\n\\n return (\\n \\n \\n setIsOpen(true)}\\n >\\n Open modal\\n \\n \\n {isOpen && (\\n \\n \\n Okay...\\n \\n }\\n elevation={1}\\n >\\n The content of the modal (the card and everything inside it) is customizable. The close\\n × is built-in but can be easily overwritten. It is the very model of a modern\\n major React modal.\\n \\n \\n )}\\n \\n );\\n}\" }, ...Default.parameters };","\n /* eslint-disable */\n // @ts-nocheck\n // @ts-ignore\n var __STORY__ = \"import React, { useState, useEffect, forwardRef } from 'react';\\nimport styled from 'styled-components';\\nimport { Story, Meta } from '@storybook/react';\\nimport { readableColor, toColorString } from 'polished';\\n\\nimport { action } from '@storybook/addon-actions';\\nimport { withFoundryContext } from '../../../.storybook/decorators';\\nimport fonts from '../../enums/fonts';\\nimport colors from '../../enums/colors';\\nimport RangeSlider, { SlideRail } from './RangeSlider';\\nimport { RangeSliderProps, ValueProp } from './types';\\n\\nimport Card from '../Card';\\n\\nconst Row = styled.div`\\n ${fonts.body}\\n display: flex;\\n flex-flow: row nowrap;\\n align-items: center;\\n padding: 0.5em;\\n min-width: 20em;\\n width: 90%;\\n margin: 0 auto;\\n`;\\n\\nconst ColorPreview = styled.div`\\n ${fonts.body}\\n\\n height: 12rem;\\n width: 34rem;\\n transition: color 0.5s;\\n font-size: 5rem;\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n text-transform: uppercase;\\n font-weight: 900;\\n`;\\n\\nconst skillLabels = [\\n 'WhatJS?',\\n \\\"I've used it...\\\",\\n \\\"We're aight\\\",\\n 'I love it',\\n 'I dream in React',\\n 'I am React',\\n];\\n\\nconst skillColors = ['red', 'orangered', 'orange', 'goldenrod', 'yellowgreen', 'forestgreen'];\\n\\nconst StyledSlideRail = styled(SlideRail)`\\n filter: grayscale(0.5) brightness(1.3);\\n border: 0.5px solid ${colors.grayLight};\\n height: 0.5em;\\n border-radius: 0.25rem;\\n background-image: linear-gradient(to right, ${skillColors.join(', ')});\\n`;\\n\\ntype DefaultProps = Omit & {\\n value: number;\\n 'use marker labels': boolean;\\n markers: string;\\n};\\n\\nexport const Default: Story = ({\\n value,\\n markers,\\n 'use marker labels': markerLabels,\\n disabled,\\n showDomainLabels,\\n showSelectedRange,\\n min,\\n max,\\n dragHandleAttachment,\\n readonly,\\n debounceInterval,\\n animated,\\n}: DefaultProps) => {\\n const [val, setVal] = useState(value);\\n\\n useEffect(() => {\\n setVal(value);\\n }, [value]);\\n\\n const markersSelection = markers;\\n const markersArray: Array = [];\\n if (markersSelection === 'all values') {\\n for (let i = min; i <= max; i++) {\\n markersArray.push(markerLabels ? { value: i, label: `${i}` } : i);\\n }\\n } else if (markersSelection === 'middle value') {\\n const midpoint = (min + max) / 2;\\n markersArray.push(markerLabels ? { value: midpoint, label: `${midpoint}` } : midpoint);\\n }\\n\\n return (\\n \\n {\\n action('onChange')(newVal);\\n setVal(Math.round(newVal));\\n }}\\n dragHandleAttachment={dragHandleAttachment}\\n values={[{ value: val, label: val }]}\\n markers={markersArray as RangeSliderProps['markers']}\\n />\\n \\n );\\n};\\nDefault.args = {\\n value: 1,\\n min: 0,\\n max: 5,\\n markers: 'none',\\n 'use marker labels': false,\\n disabled: false,\\n readonly: false,\\n showDomainLabels: false,\\n showHandleLabels: true,\\n showSelectedRange: true,\\n dragHandleAttachment: 'value',\\n debounceInterval: 10,\\n animated: true,\\n};\\n\\ntype RatingProps = Omit & {\\n value: number;\\n};\\n\\nexport const Rating: Story = ({\\n value,\\n disabled,\\n showDomainLabels,\\n showSelectedRange,\\n min,\\n max,\\n}: RatingProps) => {\\n const [val, setVal] = useState(value);\\n\\n return (\\n \\n ReactJS:    \\n {\\n action('onChange')(newVal);\\n setVal(Math.round(newVal));\\n }}\\n values={[\\n {\\n value: val,\\n label: skillLabels[Math.round(val)],\\n color: skillColors[Math.round(val)],\\n },\\n ]}\\n />\\n \\n );\\n};\\nRating.args = {\\n value: 0,\\n disabled: false,\\n showDomainLabels: false,\\n showSelectedRange: false,\\n min: 0,\\n max: 5,\\n};\\n\\ninterface ColorPickerProps {\\n hue: number;\\n lightness: number;\\n saturation: number;\\n disabled: boolean;\\n showDomainLabels: boolean;\\n debounceInterval: number;\\n}\\n\\nexport const ColorPicker: Story = ({\\n hue,\\n lightness,\\n saturation,\\n disabled,\\n showDomainLabels,\\n debounceInterval,\\n}: ColorPickerProps) => {\\n const [hue_, setHue] = useState(hue);\\n const [sat, setSat] = useState(saturation);\\n const [light, setLight] = useState(lightness);\\n\\n useEffect(() => {\\n setHue(hue_);\\n }, [hue_]);\\n\\n useEffect(() => {\\n setSat(saturation);\\n }, [saturation]);\\n\\n useEffect(() => {\\n setLight(lightness);\\n }, [lightness]);\\n\\n const allHues = Array.from({ length: 360 }, (_, i) => i).map(\\n num => `hsl(${num}, ${sat}%, ${light}%)`,\\n );\\n const allSats = [`hsl(${hue_}, 0%, ${light}%)`, `hsl(${hue_}, 100%, ${light}%`];\\n const allLights = [`hsl(${hue_}, ${sat}%, 10%)`, `hsl(${hue_}, ${sat}%, 90%)`];\\n\\n return (\\n \\n {toColorString({\\n hue: hue_,\\n saturation: sat / 100,\\n lightness: light / 100,\\n })}\\n \\n }\\n >\\n \\n H:   \\n (\\n }\\n {...props}\\n style={{\\n backgroundImage: `linear-gradient(to right, ${allHues.join(', ')})`,\\n }}\\n />\\n ))}\\n disabled={disabled}\\n showDomainLabels={showDomainLabels}\\n showSelectedRange={false}\\n min={0}\\n max={360}\\n debounceInterval={debounceInterval}\\n onDebounceChange={val => {\\n action('onDebounceChange hue')(val);\\n setHue(Math.round(val));\\n }}\\n values={[\\n {\\n value: hue_,\\n label: hue_,\\n color: colors.grayLight,\\n },\\n ]}\\n />\\n \\n \\n S:   \\n (\\n }\\n {...props}\\n style={{\\n backgroundImage: `linear-gradient(to right, ${allSats.join(', ')})`,\\n }}\\n />\\n ))}\\n min={0}\\n max={100}\\n debounceInterval={debounceInterval}\\n onDebounceChange={val => {\\n action('onDebounceChange saturation')(val);\\n setSat(Math.round(val));\\n }}\\n showDomainLabels={false}\\n showSelectedRange={false}\\n values={[\\n {\\n value: sat,\\n label: sat,\\n color: colors.grayLight,\\n },\\n ]}\\n />\\n \\n \\n L:   \\n (\\n \\n ))}\\n min={0}\\n max={100}\\n debounceInterval={debounceInterval}\\n onDebounceChange={val => {\\n action('onDebounceChange lightness')(val);\\n setLight(Math.round(val));\\n }}\\n showDomainLabels={false}\\n showSelectedRange={false}\\n values={[\\n {\\n value: light,\\n label: light,\\n color: colors.grayLight,\\n },\\n ]}\\n />\\n \\n \\n );\\n};\\nColorPicker.args = {\\n hue: 0,\\n saturation: 50,\\n lightness: 50,\\n disabled: false,\\n showDomainLabels: false,\\n debounceInterval: 10,\\n};\\n\\nexport default {\\n title: 'RangeSlider',\\n argTypes: {\\n value: {\\n control: {\\n type: 'range',\\n min: 0,\\n max: 5,\\n step: 1,\\n },\\n },\\n min: {\\n control: { type: 'range', min: -10, max: 10, step: 1 },\\n },\\n max: {\\n control: {\\n type: 'range',\\n min: -10,\\n max: 10,\\n step: 1,\\n },\\n },\\n debounceInterval: {\\n control: {\\n type: 'range',\\n min: 0,\\n max: 100,\\n step: 1,\\n },\\n },\\n markers: {\\n options: ['none', 'all values', 'middle value'],\\n control: {\\n type: 'radio',\\n },\\n },\\n hue: {\\n control: {\\n type: 'range',\\n min: 0,\\n max: 360,\\n step: 1,\\n },\\n },\\n saturation: {\\n control: {\\n type: 'range',\\n min: 0,\\n max: 100,\\n step: 1,\\n },\\n },\\n lightness: {\\n control: {\\n type: 'range',\\n min: 0,\\n max: 100,\\n step: 1,\\n },\\n },\\n dragHandleAttachment: {\\n control: {\\n type: 'radio',\\n },\\n options: ['mouse', 'value'],\\n },\\n },\\n decorators: [withFoundryContext],\\n parameters: {\\n design: {\\n type: 'figma',\\n url: 'https://www.figma.com/file/3r2G00brulOwr9j7F6JF59/Generic-UI-Style?node-id=126%3A2',\\n },\\n },\\n} as Meta;\\n\";\n // @ts-ignore\n var __LOCATIONS_MAP__ = {\"Default\":{\"startLoc\":{\"col\":44,\"line\":65},\"endLoc\":{\"col\":1,\"line\":117},\"startBody\":{\"col\":44,\"line\":65},\"endBody\":{\"col\":1,\"line\":117}},\"Rating\":{\"startLoc\":{\"col\":42,\"line\":138},\"endLoc\":{\"col\":1,\"line\":172},\"startBody\":{\"col\":42,\"line\":138},\"endBody\":{\"col\":1,\"line\":172}},\"ColorPicker\":{\"startLoc\":{\"col\":52,\"line\":191},\"endLoc\":{\"col\":1,\"line\":335},\"startBody\":{\"col\":52,\"line\":191},\"endBody\":{\"col\":1,\"line\":335}}};\n \nimport React, { useState, useEffect, forwardRef } from 'react';\nimport styled from 'styled-components';\nimport { Story, Meta } from '@storybook/react';\nimport { readableColor, toColorString } from 'polished';\n\nimport { action } from '@storybook/addon-actions';\nimport { withFoundryContext } from '../../../.storybook/decorators';\nimport fonts from '../../enums/fonts';\nimport colors from '../../enums/colors';\nimport RangeSlider, { SlideRail } from './RangeSlider';\nimport { RangeSliderProps, ValueProp } from './types';\n\nimport Card from '../Card';\n\nconst Row = styled.div`\n ${fonts.body}\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n padding: 0.5em;\n min-width: 20em;\n width: 90%;\n margin: 0 auto;\n`;\n\nconst ColorPreview = styled.div`\n ${fonts.body}\n\n height: 12rem;\n width: 34rem;\n transition: color 0.5s;\n font-size: 5rem;\n display: flex;\n justify-content: center;\n align-items: center;\n text-transform: uppercase;\n font-weight: 900;\n`;\n\nconst skillLabels = [\n 'WhatJS?',\n \"I've used it...\",\n \"We're aight\",\n 'I love it',\n 'I dream in React',\n 'I am React',\n];\n\nconst skillColors = ['red', 'orangered', 'orange', 'goldenrod', 'yellowgreen', 'forestgreen'];\n\nconst StyledSlideRail = styled(SlideRail)`\n filter: grayscale(0.5) brightness(1.3);\n border: 0.5px solid ${colors.grayLight};\n height: 0.5em;\n border-radius: 0.25rem;\n background-image: linear-gradient(to right, ${skillColors.join(', ')});\n`;\n\ntype DefaultProps = Omit & {\n value: number;\n 'use marker labels': boolean;\n markers: string;\n};\n\nexport const Default: Story = ({\n value,\n markers,\n 'use marker labels': markerLabels,\n disabled,\n showDomainLabels,\n showSelectedRange,\n min,\n max,\n dragHandleAttachment,\n readonly,\n debounceInterval,\n animated,\n}: DefaultProps) => {\n const [val, setVal] = useState(value);\n\n useEffect(() => {\n setVal(value);\n }, [value]);\n\n const markersSelection = markers;\n const markersArray: Array = [];\n if (markersSelection === 'all values') {\n for (let i = min; i <= max; i++) {\n markersArray.push(markerLabels ? { value: i, label: `${i}` } : i);\n }\n } else if (markersSelection === 'middle value') {\n const midpoint = (min + max) / 2;\n markersArray.push(markerLabels ? { value: midpoint, label: `${midpoint}` } : midpoint);\n }\n\n return (\n \n {\n action('onChange')(newVal);\n setVal(Math.round(newVal));\n }}\n dragHandleAttachment={dragHandleAttachment}\n values={[{ value: val, label: val }]}\n markers={markersArray as RangeSliderProps['markers']}\n />\n \n );\n};;\nDefault.args = {\n value: 1,\n min: 0,\n max: 5,\n markers: 'none',\n 'use marker labels': false,\n disabled: false,\n readonly: false,\n showDomainLabels: false,\n showHandleLabels: true,\n showSelectedRange: true,\n dragHandleAttachment: 'value',\n debounceInterval: 10,\n animated: true,\n};\n\ntype RatingProps = Omit & {\n value: number;\n};\n\nexport const Rating: Story = ({\n value,\n disabled,\n showDomainLabels,\n showSelectedRange,\n min,\n max,\n}: RatingProps) => {\n const [val, setVal] = useState(value);\n\n return (\n \n ReactJS:    \n {\n action('onChange')(newVal);\n setVal(Math.round(newVal));\n }}\n values={[\n {\n value: val,\n label: skillLabels[Math.round(val)],\n color: skillColors[Math.round(val)],\n },\n ]}\n />\n \n );\n};;\nRating.args = {\n value: 0,\n disabled: false,\n showDomainLabels: false,\n showSelectedRange: false,\n min: 0,\n max: 5,\n};\n\ninterface ColorPickerProps {\n hue: number;\n lightness: number;\n saturation: number;\n disabled: boolean;\n showDomainLabels: boolean;\n debounceInterval: number;\n}\n\nexport const ColorPicker: Story = ({\n hue,\n lightness,\n saturation,\n disabled,\n showDomainLabels,\n debounceInterval,\n}: ColorPickerProps) => {\n const [hue_, setHue] = useState(hue);\n const [sat, setSat] = useState(saturation);\n const [light, setLight] = useState(lightness);\n\n useEffect(() => {\n setHue(hue_);\n }, [hue_]);\n\n useEffect(() => {\n setSat(saturation);\n }, [saturation]);\n\n useEffect(() => {\n setLight(lightness);\n }, [lightness]);\n\n const allHues = Array.from({ length: 360 }, (_, i) => i).map(\n num => `hsl(${num}, ${sat}%, ${light}%)`,\n );\n const allSats = [`hsl(${hue_}, 0%, ${light}%)`, `hsl(${hue_}, 100%, ${light}%`];\n const allLights = [`hsl(${hue_}, ${sat}%, 10%)`, `hsl(${hue_}, ${sat}%, 90%)`];\n\n return (\n \n {toColorString({\n hue: hue_,\n saturation: sat / 100,\n lightness: light / 100,\n })}\n \n }\n >\n \n H:   \n (\n }\n {...props}\n style={{\n backgroundImage: `linear-gradient(to right, ${allHues.join(', ')})`,\n }}\n />\n ))}\n disabled={disabled}\n showDomainLabels={showDomainLabels}\n showSelectedRange={false}\n min={0}\n max={360}\n debounceInterval={debounceInterval}\n onDebounceChange={val => {\n action('onDebounceChange hue')(val);\n setHue(Math.round(val));\n }}\n values={[\n {\n value: hue_,\n label: hue_,\n color: colors.grayLight,\n },\n ]}\n />\n \n \n S:   \n (\n }\n {...props}\n style={{\n backgroundImage: `linear-gradient(to right, ${allSats.join(', ')})`,\n }}\n />\n ))}\n min={0}\n max={100}\n debounceInterval={debounceInterval}\n onDebounceChange={val => {\n action('onDebounceChange saturation')(val);\n setSat(Math.round(val));\n }}\n showDomainLabels={false}\n showSelectedRange={false}\n values={[\n {\n value: sat,\n label: sat,\n color: colors.grayLight,\n },\n ]}\n />\n \n \n L:   \n (\n \n ))}\n min={0}\n max={100}\n debounceInterval={debounceInterval}\n onDebounceChange={val => {\n action('onDebounceChange lightness')(val);\n setLight(Math.round(val));\n }}\n showDomainLabels={false}\n showSelectedRange={false}\n values={[\n {\n value: light,\n label: light,\n color: colors.grayLight,\n },\n ]}\n />\n \n \n );\n};\nColorPicker.args = {\n hue: 0,\n saturation: 50,\n lightness: 50,\n disabled: false,\n showDomainLabels: false,\n debounceInterval: 10,\n};\n\nexport default {\n title: 'RangeSlider',\n argTypes: {\n value: {\n control: {\n type: 'range',\n min: 0,\n max: 5,\n step: 1,\n },\n },\n min: {\n control: { type: 'range', min: -10, max: 10, step: 1 },\n },\n max: {\n control: {\n type: 'range',\n min: -10,\n max: 10,\n step: 1,\n },\n },\n debounceInterval: {\n control: {\n type: 'range',\n min: 0,\n max: 100,\n step: 1,\n },\n },\n markers: {\n options: ['none', 'all values', 'middle value'],\n control: {\n type: 'radio',\n },\n },\n hue: {\n control: {\n type: 'range',\n min: 0,\n max: 360,\n step: 1,\n },\n },\n saturation: {\n control: {\n type: 'range',\n min: 0,\n max: 100,\n step: 1,\n },\n },\n lightness: {\n control: {\n type: 'range',\n min: 0,\n max: 100,\n step: 1,\n },\n },\n dragHandleAttachment: {\n control: {\n type: 'radio',\n },\n options: ['mouse', 'value'],\n },\n },\n decorators: [withFoundryContext],\n parameters: {\n design: {\n type: 'figma',\n url: 'https://www.figma.com/file/3r2G00brulOwr9j7F6JF59/Generic-UI-Style?node-id=126%3A2',\n },\n },\n} as Meta;\n\n\n\nDefault.parameters = { storySource: { source: \"({\\n value,\\n markers,\\n 'use marker labels': markerLabels,\\n disabled,\\n showDomainLabels,\\n showSelectedRange,\\n min,\\n max,\\n dragHandleAttachment,\\n readonly,\\n debounceInterval,\\n animated,\\n}: DefaultProps) => {\\n const [val, setVal] = useState(value);\\n\\n useEffect(() => {\\n setVal(value);\\n }, [value]);\\n\\n const markersSelection = markers;\\n const markersArray: Array = [];\\n if (markersSelection === 'all values') {\\n for (let i = min; i <= max; i++) {\\n markersArray.push(markerLabels ? { value: i, label: `${i}` } : i);\\n }\\n } else if (markersSelection === 'middle value') {\\n const midpoint = (min + max) / 2;\\n markersArray.push(markerLabels ? { value: midpoint, label: `${midpoint}` } : midpoint);\\n }\\n\\n return (\\n \\n {\\n action('onChange')(newVal);\\n setVal(Math.round(newVal));\\n }}\\n dragHandleAttachment={dragHandleAttachment}\\n values={[{ value: val, label: val }]}\\n markers={markersArray as RangeSliderProps['markers']}\\n />\\n \\n );\\n}\" }, ...Default.parameters };\nRating.parameters = { storySource: { source: \"({\\n value,\\n disabled,\\n showDomainLabels,\\n showSelectedRange,\\n min,\\n max,\\n}: RatingProps) => {\\n const [val, setVal] = useState(value);\\n\\n return (\\n \\n ReactJS:    \\n {\\n action('onChange')(newVal);\\n setVal(Math.round(newVal));\\n }}\\n values={[\\n {\\n value: val,\\n label: skillLabels[Math.round(val)],\\n color: skillColors[Math.round(val)],\\n },\\n ]}\\n />\\n \\n );\\n}\" }, ...Rating.parameters };\nColorPicker.parameters = { storySource: { source: \"({\\n hue,\\n lightness,\\n saturation,\\n disabled,\\n showDomainLabels,\\n debounceInterval,\\n}: ColorPickerProps) => {\\n const [hue_, setHue] = useState(hue);\\n const [sat, setSat] = useState(saturation);\\n const [light, setLight] = useState(lightness);\\n\\n useEffect(() => {\\n setHue(hue_);\\n }, [hue_]);\\n\\n useEffect(() => {\\n setSat(saturation);\\n }, [saturation]);\\n\\n useEffect(() => {\\n setLight(lightness);\\n }, [lightness]);\\n\\n const allHues = Array.from({ length: 360 }, (_, i) => i).map(\\n num => `hsl(${num}, ${sat}%, ${light}%)`,\\n );\\n const allSats = [`hsl(${hue_}, 0%, ${light}%)`, `hsl(${hue_}, 100%, ${light}%`];\\n const allLights = [`hsl(${hue_}, ${sat}%, 10%)`, `hsl(${hue_}, ${sat}%, 90%)`];\\n\\n return (\\n \\n {toColorString({\\n hue: hue_,\\n saturation: sat / 100,\\n lightness: light / 100,\\n })}\\n \\n }\\n >\\n \\n H:   \\n (\\n }\\n {...props}\\n style={{\\n backgroundImage: `linear-gradient(to right, ${allHues.join(', ')})`,\\n }}\\n />\\n ))}\\n disabled={disabled}\\n showDomainLabels={showDomainLabels}\\n showSelectedRange={false}\\n min={0}\\n max={360}\\n debounceInterval={debounceInterval}\\n onDebounceChange={val => {\\n action('onDebounceChange hue')(val);\\n setHue(Math.round(val));\\n }}\\n values={[\\n {\\n value: hue_,\\n label: hue_,\\n color: colors.grayLight,\\n },\\n ]}\\n />\\n \\n \\n S:   \\n (\\n }\\n {...props}\\n style={{\\n backgroundImage: `linear-gradient(to right, ${allSats.join(', ')})`,\\n }}\\n />\\n ))}\\n min={0}\\n max={100}\\n debounceInterval={debounceInterval}\\n onDebounceChange={val => {\\n action('onDebounceChange saturation')(val);\\n setSat(Math.round(val));\\n }}\\n showDomainLabels={false}\\n showSelectedRange={false}\\n values={[\\n {\\n value: sat,\\n label: sat,\\n color: colors.grayLight,\\n },\\n ]}\\n />\\n \\n \\n L:   \\n (\\n \\n ))}\\n min={0}\\n max={100}\\n debounceInterval={debounceInterval}\\n onDebounceChange={val => {\\n action('onDebounceChange lightness')(val);\\n setLight(Math.round(val));\\n }}\\n showDomainLabels={false}\\n showSelectedRange={false}\\n values={[\\n {\\n value: light,\\n label: light,\\n color: colors.grayLight,\\n },\\n ]}\\n />\\n \\n \\n );\\n}\" }, ...ColorPicker.parameters };","\n /* eslint-disable */\n // @ts-nocheck\n // @ts-ignore\n var __STORY__ = \"import React from 'react';\\nimport { Story, Meta } from '@storybook/react';\\nimport styled from 'styled-components';\\nimport { mdiPhone } from '@mdi/js';\\n\\nimport { withFoundryContext } from '../../../.storybook/decorators';\\n\\nimport colors from '../../enums/colors';\\n\\nimport Skeleton, { SkeletonProps } from './Skeleton';\\nimport { Button, Card, Divider, Text } from '../../index';\\n\\nconst HorizontalFlexBody = styled(Card.Body)`\\n display: flex;\\n gap: 1rem;\\n align-items: flex-start;\\n flex-flow: row nowrap;\\n`;\\n\\nconst PhotoContainer = styled.div`\\n border-radius: 50%;\\n overflow: hidden;\\n`;\\n\\nconst ProfilePhoto = styled.div`\\n width: 5rem;\\n height: 5rem;\\n background-image: url('https://source.unsplash.com/collection/19271953');\\n background-size: cover;\\n background-repeat: no-repeat;\\n`;\\n\\nconst ProfileLine = styled(Skeleton.Container)`\\n margin-bottom: 0.5rem;\\n display: inline-block;\\n`;\\n\\nconst Name = styled(Text.Container)`\\n font-weight: bold;\\n font-size: 1.125rem;\\n`;\\n\\nexport const LoadingProfileExample: Story = ({ isLoading, color }: SkeletonProps) => (\\n {}}>\\n Add to contacts\\n \\n }\\n >\\n \\n \\n \\n \\n \\n
\\n \\n Jane Doe\\n \\n
\\n \\n Master of Ceremonies\\n \\n \\n \\n 214-555-1234\\n \\n
\\n \\n);\\nLoadingProfileExample.args = {\\n // variant: variants.fill,\\n color: colors.grayLight,\\n children: 'Default text',\\n isLoading: true,\\n};\\n\\nexport default {\\n title: 'Skeleton',\\n component: Skeleton,\\n decorators: [withFoundryContext],\\n parameters: {\\n // { design }, Once we have a design for Skeleton we can link it here\\n },\\n} as Meta;\\n\";\n // @ts-ignore\n var __LOCATIONS_MAP__ = {\"LoadingProfileExample\":{\"startLoc\":{\"col\":44,\"line\":43},\"endLoc\":{\"col\":1,\"line\":72},\"startBody\":{\"col\":44,\"line\":43},\"endBody\":{\"col\":1,\"line\":72}}};\n \nimport React from 'react';\nimport { Story, Meta } from '@storybook/react';\nimport styled from 'styled-components';\nimport { mdiPhone } from '@mdi/js';\n\nimport { withFoundryContext } from '../../../.storybook/decorators';\n\nimport colors from '../../enums/colors';\n\nimport Skeleton, { SkeletonProps } from './Skeleton';\nimport { Button, Card, Divider, Text } from '../../index';\n\nconst HorizontalFlexBody = styled(Card.Body)`\n display: flex;\n gap: 1rem;\n align-items: flex-start;\n flex-flow: row nowrap;\n`;\n\nconst PhotoContainer = styled.div`\n border-radius: 50%;\n overflow: hidden;\n`;\n\nconst ProfilePhoto = styled.div`\n width: 5rem;\n height: 5rem;\n background-image: url('https://source.unsplash.com/collection/19271953');\n background-size: cover;\n background-repeat: no-repeat;\n`;\n\nconst ProfileLine = styled(Skeleton.Container)`\n margin-bottom: 0.5rem;\n display: inline-block;\n`;\n\nconst Name = styled(Text.Container)`\n font-weight: bold;\n font-size: 1.125rem;\n`;\n\nexport const LoadingProfileExample: Story = ({ isLoading, color }: SkeletonProps) => (\n {}}>\n Add to contacts\n \n }\n >\n \n \n \n \n \n
\n \n Jane Doe\n \n
\n \n Master of Ceremonies\n \n \n \n 214-555-1234\n \n
\n \n);\nLoadingProfileExample.args = {\n // variant: variants.fill,\n color: colors.grayLight,\n children: 'Default text',\n isLoading: true,\n};\n\nexport default {\n title: 'Skeleton',\n component: Skeleton,\n decorators: [withFoundryContext],\n parameters: {\n // { design }, Once we have a design for Skeleton we can link it here\n },\n} as Meta;\n\n\n\nLoadingProfileExample.parameters = { storySource: { source: \"({ isLoading, color }: SkeletonProps) => (\\n {}}>\\n Add to contacts\\n \\n }\\n >\\n \\n \\n \\n \\n \\n
\\n \\n Jane Doe\\n \\n
\\n \\n Master of Ceremonies\\n \\n \\n \\n 214-555-1234\\n \\n
\\n \\n)\" }, ...LoadingProfileExample.parameters };","\n /* eslint-disable */\n // @ts-nocheck\n // @ts-ignore\n var __STORY__ = \"import React, { useState } from 'react';\\nimport { Story, Meta } from '@storybook/react';\\nimport { mdiArrowRightBold, mdiCheckBold, mdiChevronDoubleRight, mdiDotsVertical } from '@mdi/js';\\nimport styled from 'styled-components';\\n\\nimport { withFoundryContext } from '../../../.storybook/decorators';\\nimport Spotlight, { SpotlightProps } from './Spotlight';\\nimport { Button, Card, Text, variants, colors } from '../../index';\\n\\nconst Header = styled(Card.NoPaddingHeader)`\\n display: flex;\\n justify-content: flex-end;\\n`;\\n\\nconst Annotation = styled(Spotlight.Annotation)`\\n display: flex;\\n flex-flow: row wrap;\\n max-width: 16rem;\\n`;\\n\\nconst NextButtonContainer = styled(Button.Container)`\\n flex: 1 1 auto;\\n justify-content: center;\\n`;\\n\\nexport const AnimatedSpotlight: Story = (args: Partial) => {\\n const [currStep, setStep] = useState(0);\\n const [buttonRef, setButtonRef] = useState();\\n const [cardRef, setCardRef] = useState();\\n const [menuRef, setMenuRef] = useState();\\n const [tourStarted, setTour] = useState(false);\\n\\n const stepOptions = [null, menuRef, cardRef, buttonRef];\\n const messages = [\\n {\\n title: 'Welcome to the tutorial!',\\n subtitle: 'targetElement is null for this part of the tour, so nothing is highlighted!',\\n },\\n { title: 'This is a kebab menu.', subtitle: '' },\\n { title: 'This is the whole card', subtitle: '' },\\n { title: 'Press this button to restart the tour!', subtitle: '(you already knew that though)' },\\n ];\\n\\n const goNext = () => {\\n setStep(step => {\\n if (step >= stepOptions.length - 1) {\\n setTour(false);\\n return 0;\\n }\\n return step + 1;\\n });\\n };\\n\\n const lastStep = currStep === stepOptions.length - 1;\\n\\n return (\\n <>\\n \\n }\\n footer={\\n {\\n setTour(true);\\n }}\\n \\n // @ts-ignore - our ref types don't like getting a set state dispatch function\\n containerRef={setButtonRef}\\n color={colors.tertiary}\\n >\\n Start tour\\n \\n }\\n >\\n There are a few items in this card we can talk about!\\n \\n {tourStarted && (\\n \\n \\n {messages[currStep].title}\\n \\n \\n {messages[currStep].subtitle}\\n \\n
\\n
\\n {\\n setStep(0);\\n setTour(false);\\n }}\\n >\\n Skip\\n \\n  \\n {\\n goNext();\\n }}\\n >\\n {lastStep ? 'I got it' : 'Next'}\\n \\n
\\n )}\\n \\n );\\n};\\nAnimatedSpotlight.args = {\\n padding: 12,\\n shape: 'rounded box',\\n animateTargetChanges: true,\\n backgroundDarkness: 0.3,\\n backgroundBlur: '0.25rem',\\n cornerRadius: 12,\\n};\\n\\nexport default {\\n title: 'Spotlight',\\n component: Spotlight,\\n decorators: [withFoundryContext],\\n parameters: {\\n // { design }, Once we have a design for Spotlight we can link it here\\n },\\n} as Meta;\\n\";\n // @ts-ignore\n var __LOCATIONS_MAP__ = {\"AnimatedSpotlight\":{\"startLoc\":{\"col\":40,\"line\":26},\"endLoc\":{\"col\":1,\"line\":126},\"startBody\":{\"col\":40,\"line\":26},\"endBody\":{\"col\":1,\"line\":126}}};\n \nimport React, { useState } from 'react';\nimport { Story, Meta } from '@storybook/react';\nimport { mdiArrowRightBold, mdiCheckBold, mdiChevronDoubleRight, mdiDotsVertical } from '@mdi/js';\nimport styled from 'styled-components';\n\nimport { withFoundryContext } from '../../../.storybook/decorators';\nimport Spotlight, { SpotlightProps } from './Spotlight';\nimport { Button, Card, Text, variants, colors } from '../../index';\n\nconst Header = styled(Card.NoPaddingHeader)`\n display: flex;\n justify-content: flex-end;\n`;\n\nconst Annotation = styled(Spotlight.Annotation)`\n display: flex;\n flex-flow: row wrap;\n max-width: 16rem;\n`;\n\nconst NextButtonContainer = styled(Button.Container)`\n flex: 1 1 auto;\n justify-content: center;\n`;\n\nexport const AnimatedSpotlight: Story = (args: Partial) => {\n const [currStep, setStep] = useState(0);\n const [buttonRef, setButtonRef] = useState();\n const [cardRef, setCardRef] = useState();\n const [menuRef, setMenuRef] = useState();\n const [tourStarted, setTour] = useState(false);\n\n const stepOptions = [null, menuRef, cardRef, buttonRef];\n const messages = [\n {\n title: 'Welcome to the tutorial!',\n subtitle: 'targetElement is null for this part of the tour, so nothing is highlighted!',\n },\n { title: 'This is a kebab menu.', subtitle: '' },\n { title: 'This is the whole card', subtitle: '' },\n { title: 'Press this button to restart the tour!', subtitle: '(you already knew that though)' },\n ];\n\n const goNext = () => {\n setStep(step => {\n if (step >= stepOptions.length - 1) {\n setTour(false);\n return 0;\n }\n return step + 1;\n });\n };\n\n const lastStep = currStep === stepOptions.length - 1;\n\n return (\n <>\n \n }\n footer={\n {\n setTour(true);\n }}\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore - our ref types don't like getting a set state dispatch function\n containerRef={setButtonRef}\n color={colors.tertiary}\n >\n Start tour\n \n }\n >\n There are a few items in this card we can talk about!\n \n {tourStarted && (\n \n \n {messages[currStep].title}\n \n \n {messages[currStep].subtitle}\n \n
\n
\n {\n setStep(0);\n setTour(false);\n }}\n >\n Skip\n \n  \n {\n goNext();\n }}\n >\n {lastStep ? 'I got it' : 'Next'}\n \n
\n )}\n \n );\n};\nAnimatedSpotlight.args = {\n padding: 12,\n shape: 'rounded box',\n animateTargetChanges: true,\n backgroundDarkness: 0.3,\n backgroundBlur: '0.25rem',\n cornerRadius: 12,\n};\n\nexport default {\n title: 'Spotlight',\n component: Spotlight,\n decorators: [withFoundryContext],\n parameters: {\n // { design }, Once we have a design for Spotlight we can link it here\n },\n} as Meta;\n\n\n\nAnimatedSpotlight.parameters = { storySource: { source: \"(args: Partial) => {\\n const [currStep, setStep] = useState(0);\\n const [buttonRef, setButtonRef] = useState();\\n const [cardRef, setCardRef] = useState();\\n const [menuRef, setMenuRef] = useState();\\n const [tourStarted, setTour] = useState(false);\\n\\n const stepOptions = [null, menuRef, cardRef, buttonRef];\\n const messages = [\\n {\\n title: 'Welcome to the tutorial!',\\n subtitle: 'targetElement is null for this part of the tour, so nothing is highlighted!',\\n },\\n { title: 'This is a kebab menu.', subtitle: '' },\\n { title: 'This is the whole card', subtitle: '' },\\n { title: 'Press this button to restart the tour!', subtitle: '(you already knew that though)' },\\n ];\\n\\n const goNext = () => {\\n setStep(step => {\\n if (step >= stepOptions.length - 1) {\\n setTour(false);\\n return 0;\\n }\\n return step + 1;\\n });\\n };\\n\\n const lastStep = currStep === stepOptions.length - 1;\\n\\n return (\\n <>\\n \\n }\\n footer={\\n {\\n setTour(true);\\n }}\\n \\n // @ts-ignore - our ref types don't like getting a set state dispatch function\\n containerRef={setButtonRef}\\n color={colors.tertiary}\\n >\\n Start tour\\n \\n }\\n >\\n There are a few items in this card we can talk about!\\n \\n {tourStarted && (\\n \\n \\n {messages[currStep].title}\\n \\n \\n {messages[currStep].subtitle}\\n \\n
\\n
\\n {\\n setStep(0);\\n setTour(false);\\n }}\\n >\\n Skip\\n \\n  \\n {\\n goNext();\\n }}\\n >\\n {lastStep ? 'I got it' : 'Next'}\\n \\n
\\n )}\\n \\n );\\n}\" }, ...AnimatedSpotlight.parameters };","\n /* eslint-disable */\n // @ts-nocheck\n // @ts-ignore\n var __STORY__ = \"import React, { useState } from 'react';\\nimport { Story, Meta } from '@storybook/react';\\n\\nimport styled from 'styled-components';\\nimport Icon from '@mdi/react';\\nimport { mdiClose } from '@mdi/js';\\nimport { name, address, company, commerce } from 'faker';\\n\\nimport Table, { ExpansionIconColumnName } from './Table';\\nimport Checkbox from '../Checkbox/Checkbox';\\nimport { Columns, ExpansionIconProps, RowEntry } from './types';\\nimport { CheckboxTypes } from '../../enums/checkboxTypes';\\n\\ntype SampleDataType = {\\n name?: string;\\n title?: string;\\n address?: string;\\n notes?: string;\\n isGroupLabel?: boolean;\\n selected?: boolean;\\n};\\n\\n// Custom icon used for overriding the default collapse/expand icons\\nconst expansionIconOverride = ({ isCollapsed, onClick }: ExpansionIconProps) => (\\n {} }}\\n />\\n);\\n\\nconst ActionCellContainer = styled(Table.Cell)`\\n cursor: pointer;\\n user-select: none;\\n font-size: 1rem;\\n &:hover {\\n color: red;\\n }\\n`;\\n\\nconst NoteField = styled.textarea`\\n width: 100%;\\n height: 100%;\\n border-radius: 2px;\\n resize: none;\\n`;\\n\\nconst generateSampleData = (rows: number): SampleDataType[] => {\\n const finalData: Array = [];\\n\\n for (let i = 0; i < rows; i += 1) {\\n finalData.push({\\n name: name.findName(),\\n title: name.title(),\\n address: address.streetAddress(),\\n notes: company.catchPhrase(),\\n });\\n }\\n\\n return finalData;\\n};\\n\\nconst generateSampleGroups = (numberOfGroups = 5, groupSize = 5): Array => {\\n const groupData: Array> = [];\\n for (let i = 0; i < numberOfGroups; i++) {\\n const groupRows = generateSampleData(groupSize);\\n // Add group title row\\n groupRows.push({\\n title: `${commerce.department()} Department`,\\n isGroupLabel: true,\\n });\\n\\n groupData.push(groupRows);\\n }\\n return groupData;\\n};\\n\\nconst sampleData = generateSampleData(10);\\nconst sampleGroupData = generateSampleGroups();\\n\\ninterface DefaultProps {\\n 'Selection width': string;\\n 'Name width': string;\\n 'Title width': string;\\n 'Address width': string;\\n 'Notes width': string;\\n 'Action width': string;\\n}\\n\\nexport const Default: Story = ({\\n 'Selection width': selectionWidth,\\n 'Name width': nameWidth,\\n 'Title width': titleWidth,\\n 'Address width': addressWidth,\\n 'Notes width': notesWidth,\\n 'Action width': actionWidth,\\n}: DefaultProps) => {\\n const [rows, setRows] = useState(sampleData);\\n\\n const onDelete = (index: number) => {\\n const newRows = [...rows];\\n newRows.splice(index, 1);\\n setRows(newRows);\\n };\\n\\n const onSelect = (index: number, selected: boolean) => {\\n const newRows = [...rows];\\n newRows[index].selected = !selected;\\n setRows(newRows);\\n };\\n\\n const selectAll = (event: React.MouseEvent) => {\\n const target = event.target as HTMLInputElement;\\n const currentlyChecked = target.checked;\\n const newRows = rows.map((row: SampleDataType) => ({ ...row, selected: currentlyChecked }));\\n setRows(newRows);\\n };\\n\\n const SelectAllCell = () => {\\n const checkRowForSelection = (row: SampleDataType) =>\\n Object.prototype.hasOwnProperty.call(row, 'selected') && row.selected;\\n\\n // TODO: don't use pointer-events to control if a column is sortable - it should be checked\\n // within the sorting listeners so that `sortable` doesn't need to be passed here just to give\\n // it pointer-events\\n return (\\n \\n selectAll(e)}\\n inputProps={{ onChange: () => {} }}\\n />\\n \\n );\\n };\\n\\n const SelectionCell = ({\\n index,\\n selected,\\n reachedMinWidth = false,\\n }: {\\n index: number;\\n selected: boolean;\\n \\n reachedMinWidth?: boolean;\\n }) => (\\n \\n onSelect(index, selected)}\\n checkboxType={CheckboxTypes.check}\\n checked={selected}\\n inputProps={{ onChange: () => {} }}\\n >\\n {reachedMinWidth ? 'Select for download' : ''}\\n \\n \\n );\\n\\n const NotesCell = ({ notes }: { notes: string }) => (\\n \\n {}} rows={3} value={notes} />\\n \\n );\\n\\n const ActionCell = ({ index, reachedMinWidth }: { index: number; reachedMinWidth: boolean }) => (\\n {\\n onDelete(index);\\n }}\\n >\\n \\n   \\n {reachedMinWidth ? 'Delete user' : ''}\\n \\n );\\n\\n const sampleColumns: Columns = {\\n selection: {\\n name: '',\\n headerCellComponent: SelectAllCell,\\n width: selectionWidth,\\n cellComponent: SelectionCell,\\n sortable: false,\\n footerContent: '',\\n },\\n name: {\\n name: 'Name',\\n width: nameWidth,\\n footerContent: 'NameFooter',\\n sortable: true,\\n },\\n title: {\\n name: 'Title',\\n width: titleWidth,\\n footerContent: 'TitleFooter',\\n },\\n address: {\\n name: 'Address',\\n width: addressWidth,\\n footerContent: 'AddressFooter',\\n },\\n notes: {\\n name: 'Notes',\\n width: notesWidth,\\n cellComponent: NotesCell,\\n minTableWidth: 800,\\n sortable: true,\\n sortFunction: (a: string, b: string) => a.length < b.length,\\n footerContent: 'NotesFooter',\\n },\\n action: {\\n name: '',\\n sortable: false,\\n width: actionWidth,\\n cellComponent: ActionCell,\\n footerContent: '',\\n },\\n };\\n\\n return
;\\n};\\nDefault.args = {\\n 'Selection width': '2rem',\\n 'Name width': '1fr',\\n 'Title width': '1fr',\\n 'Address width': '1fr',\\n 'Notes width': '12rem',\\n 'Action width': '1rem',\\n};\\n\\ninterface GroupsProps extends DefaultProps {\\n 'Use default expansion column': boolean;\\n 'Expansion Icon width': string;\\n groupLabelPosition: 'above' | 'below' | undefined;\\n useCustomLabel: boolean;\\n sortGroups: boolean;\\n areGroupsCollapsible: boolean;\\n}\\n\\nexport const Groups: Story = ({\\n 'Selection width': selectionWidth,\\n 'Name width': nameWidth,\\n 'Title width': titleWidth,\\n 'Address width': addressWidth,\\n 'Notes width': notesWidth,\\n 'Use default expansion column': useDefaultExpansionColumn,\\n groupLabelPosition,\\n sortGroups,\\n areGroupsCollapsible,\\n useCustomLabel,\\n ...args\\n}: GroupsProps) => {\\n const [rows, setRows] = useState(sampleGroupData);\\n\\n const onSelect = (index = 0, groupIndex = 0, selected: boolean) => {\\n const newRows: SampleDataType[][] = [];\\n rows.forEach(grp => {\\n newRows.push([...grp]);\\n });\\n\\n newRows[groupIndex][index].selected = !selected;\\n setRows(newRows);\\n };\\n\\n const selectAll = (event: React.MouseEvent) => {\\n const target = event.target as HTMLInputElement;\\n const currentlyChecked = target.checked;\\n const newRows: SampleDataType[][] = [];\\n rows.forEach(group => {\\n newRows.push(\\n group.map(row => {\\n return { ...row, selected: currentlyChecked };\\n }),\\n );\\n });\\n setRows(newRows);\\n };\\n\\n const SelectAllCell = () => {\\n let totalSelected = 0;\\n let totalCheckboxesAccumulator = 0;\\n rows.forEach(groupRows => {\\n groupRows.forEach(row => {\\n if (row.isGroupLabel) return;\\n if (row.selected) totalSelected++;\\n totalCheckboxesAccumulator++;\\n });\\n });\\n const allChecked = totalSelected === totalCheckboxesAccumulator;\\n\\n // TODO: don't use pointer-events to control if a column is sortable - it should be checked\\n // within the sorting listeners so that `sortable` doesn't need to be passed here just to give\\n // it pointer-events\\n return (\\n \\n {} }}\\n />\\n \\n );\\n };\\n\\n const SelectionCell = ({\\n index = 0,\\n selected,\\n reachedMinWidth = false,\\n groupIndex = 0,\\n }: {\\n \\n index?: number;\\n selected: boolean;\\n \\n reachedMinWidth?: boolean;\\n \\n groupIndex?: number;\\n }) => (\\n \\n onSelect(index, groupIndex, selected)}\\n checkboxType={CheckboxTypes.check}\\n checked={selected}\\n inputProps={{ onChange: () => {} }}\\n >\\n {reachedMinWidth ? 'Select for download' : ''}\\n \\n \\n );\\n\\n const EmptyCell = () => ;\\n\\n interface NotesCellProps {\\n notes: string;\\n }\\n\\n const NotesCell: React.FC = ({ notes }) => (\\n \\n {}} rows={3} value={notes} />\\n \\n );\\n\\n const sampleColumns: Columns = {\\n selection: {\\n name: '',\\n headerCellComponent: SelectAllCell,\\n width: selectionWidth,\\n cellComponent: SelectionCell,\\n sortable: false,\\n groupCellComponent: EmptyCell,\\n footerContent: '',\\n },\\n name: {\\n name: 'Name',\\n width: nameWidth,\\n sortable: true,\\n },\\n title: {\\n name: 'Title',\\n width: titleWidth,\\n sortable: true,\\n },\\n address: {\\n name: 'Address',\\n width: addressWidth,\\n },\\n notes: {\\n name: 'Notes',\\n width: notesWidth,\\n cellComponent: NotesCell,\\n minTableWidth: 800,\\n sortFunction: (a: string, b: string) => a.length < b.length,\\n groupCellComponent: EmptyCell,\\n },\\n };\\n\\n if (!useDefaultExpansionColumn) {\\n sampleColumns[ExpansionIconColumnName] = {\\n name: '',\\n sortable: false,\\n width: args['Expansion Icon width'],\\n };\\n }\\n\\n const position = groupLabelPosition;\\n\\n return (\\n \\n );\\n};\\nGroups.args = {\\n ...Default.args,\\n 'Use default expansion column': false,\\n 'Expansion Icon width': '1rem',\\n groupLabelPosition: 'above',\\n useCustomLabel: false,\\n sortGroups: true,\\n areGroupsCollapsible: false,\\n};\\n\\nexport default {\\n title: 'Table',\\n argTypes: {\\n groupLabelPosition: {\\n options: ['above', 'below'],\\n control: {\\n type: 'radio',\\n },\\n },\\n },\\n parameters: {\\n design: {\\n type: 'figma',\\n url: 'https://www.figma.com/file/3r2G00brulOwr9j7F6JF59/Generic-UI-Style?node-id=102%3A86',\\n },\\n },\\n} as Meta;\\n\";\n // @ts-ignore\n var __LOCATIONS_MAP__ = {\"Default\":{\"startLoc\":{\"col\":44,\"line\":91},\"endLoc\":{\"col\":1,\"line\":227},\"startBody\":{\"col\":44,\"line\":91},\"endBody\":{\"col\":1,\"line\":227}},\"Groups\":{\"startLoc\":{\"col\":42,\"line\":246},\"endLoc\":{\"col\":1,\"line\":408},\"startBody\":{\"col\":42,\"line\":246},\"endBody\":{\"col\":1,\"line\":408}}};\n \nimport React, { useState } from 'react';\nimport { Story, Meta } from '@storybook/react';\n\nimport styled from 'styled-components';\nimport Icon from '@mdi/react';\nimport { mdiClose } from '@mdi/js';\nimport { name, address, company, commerce } from 'faker';\n\nimport Table, { ExpansionIconColumnName } from './Table';\nimport Checkbox from '../Checkbox/Checkbox';\nimport { Columns, ExpansionIconProps, RowEntry } from './types';\nimport { CheckboxTypes } from '../../enums/checkboxTypes';\n\ntype SampleDataType = {\n name?: string;\n title?: string;\n address?: string;\n notes?: string;\n isGroupLabel?: boolean;\n selected?: boolean;\n};\n\n// Custom icon used for overriding the default collapse/expand icons\nconst expansionIconOverride = ({ isCollapsed, onClick }: ExpansionIconProps) => (\n {} }}\n />\n);\n\nconst ActionCellContainer = styled(Table.Cell)`\n cursor: pointer;\n user-select: none;\n font-size: 1rem;\n &:hover {\n color: red;\n }\n`;\n\nconst NoteField = styled.textarea`\n width: 100%;\n height: 100%;\n border-radius: 2px;\n resize: none;\n`;\n\nconst generateSampleData = (rows: number): SampleDataType[] => {\n const finalData: Array = [];\n\n for (let i = 0; i < rows; i += 1) {\n finalData.push({\n name: name.findName(),\n title: name.title(),\n address: address.streetAddress(),\n notes: company.catchPhrase(),\n });\n }\n\n return finalData;\n};\n\nconst generateSampleGroups = (numberOfGroups = 5, groupSize = 5): Array => {\n const groupData: Array> = [];\n for (let i = 0; i < numberOfGroups; i++) {\n const groupRows = generateSampleData(groupSize);\n // Add group title row\n groupRows.push({\n title: `${commerce.department()} Department`,\n isGroupLabel: true,\n });\n\n groupData.push(groupRows);\n }\n return groupData;\n};\n\nconst sampleData = generateSampleData(10);\nconst sampleGroupData = generateSampleGroups();\n\ninterface DefaultProps {\n 'Selection width': string;\n 'Name width': string;\n 'Title width': string;\n 'Address width': string;\n 'Notes width': string;\n 'Action width': string;\n}\n\nexport const Default: Story = ({\n 'Selection width': selectionWidth,\n 'Name width': nameWidth,\n 'Title width': titleWidth,\n 'Address width': addressWidth,\n 'Notes width': notesWidth,\n 'Action width': actionWidth,\n}: DefaultProps) => {\n const [rows, setRows] = useState(sampleData);\n\n const onDelete = (index: number) => {\n const newRows = [...rows];\n newRows.splice(index, 1);\n setRows(newRows);\n };\n\n const onSelect = (index: number, selected: boolean) => {\n const newRows = [...rows];\n newRows[index].selected = !selected;\n setRows(newRows);\n };\n\n const selectAll = (event: React.MouseEvent) => {\n const target = event.target as HTMLInputElement;\n const currentlyChecked = target.checked;\n const newRows = rows.map((row: SampleDataType) => ({ ...row, selected: currentlyChecked }));\n setRows(newRows);\n };\n\n const SelectAllCell = () => {\n const checkRowForSelection = (row: SampleDataType) =>\n Object.prototype.hasOwnProperty.call(row, 'selected') && row.selected;\n\n // TODO: don't use pointer-events to control if a column is sortable - it should be checked\n // within the sorting listeners so that `sortable` doesn't need to be passed here just to give\n // it pointer-events\n return (\n \n selectAll(e)}\n inputProps={{ onChange: () => {} }}\n />\n \n );\n };\n\n const SelectionCell = ({\n index,\n selected,\n reachedMinWidth = false,\n }: {\n index: number;\n selected: boolean;\n // eslint-disable-next-line react/require-default-props\n reachedMinWidth?: boolean;\n }) => (\n \n onSelect(index, selected)}\n checkboxType={CheckboxTypes.check}\n checked={selected}\n inputProps={{ onChange: () => {} }}\n >\n {reachedMinWidth ? 'Select for download' : ''}\n \n \n );\n\n const NotesCell = ({ notes }: { notes: string }) => (\n \n {}} rows={3} value={notes} />\n \n );\n\n const ActionCell = ({ index, reachedMinWidth }: { index: number; reachedMinWidth: boolean }) => (\n {\n onDelete(index);\n }}\n >\n \n   \n {reachedMinWidth ? 'Delete user' : ''}\n \n );\n\n const sampleColumns: Columns = {\n selection: {\n name: '',\n headerCellComponent: SelectAllCell,\n width: selectionWidth,\n cellComponent: SelectionCell,\n sortable: false,\n footerContent: '',\n },\n name: {\n name: 'Name',\n width: nameWidth,\n footerContent: 'NameFooter',\n sortable: true,\n },\n title: {\n name: 'Title',\n width: titleWidth,\n footerContent: 'TitleFooter',\n },\n address: {\n name: 'Address',\n width: addressWidth,\n footerContent: 'AddressFooter',\n },\n notes: {\n name: 'Notes',\n width: notesWidth,\n cellComponent: NotesCell,\n minTableWidth: 800,\n sortable: true,\n sortFunction: (a: string, b: string) => a.length < b.length,\n footerContent: 'NotesFooter',\n },\n action: {\n name: '',\n sortable: false,\n width: actionWidth,\n cellComponent: ActionCell,\n footerContent: '',\n },\n };\n\n return
;\n};;\nDefault.args = {\n 'Selection width': '2rem',\n 'Name width': '1fr',\n 'Title width': '1fr',\n 'Address width': '1fr',\n 'Notes width': '12rem',\n 'Action width': '1rem',\n};\n\ninterface GroupsProps extends DefaultProps {\n 'Use default expansion column': boolean;\n 'Expansion Icon width': string;\n groupLabelPosition: 'above' | 'below' | undefined;\n useCustomLabel: boolean;\n sortGroups: boolean;\n areGroupsCollapsible: boolean;\n}\n\nexport const Groups: Story = ({\n 'Selection width': selectionWidth,\n 'Name width': nameWidth,\n 'Title width': titleWidth,\n 'Address width': addressWidth,\n 'Notes width': notesWidth,\n 'Use default expansion column': useDefaultExpansionColumn,\n groupLabelPosition,\n sortGroups,\n areGroupsCollapsible,\n useCustomLabel,\n ...args\n}: GroupsProps) => {\n const [rows, setRows] = useState(sampleGroupData);\n\n const onSelect = (index = 0, groupIndex = 0, selected: boolean) => {\n const newRows: SampleDataType[][] = [];\n rows.forEach(grp => {\n newRows.push([...grp]);\n });\n\n newRows[groupIndex][index].selected = !selected;\n setRows(newRows);\n };\n\n const selectAll = (event: React.MouseEvent) => {\n const target = event.target as HTMLInputElement;\n const currentlyChecked = target.checked;\n const newRows: SampleDataType[][] = [];\n rows.forEach(group => {\n newRows.push(\n group.map(row => {\n return { ...row, selected: currentlyChecked };\n }),\n );\n });\n setRows(newRows);\n };\n\n const SelectAllCell = () => {\n let totalSelected = 0;\n let totalCheckboxesAccumulator = 0;\n rows.forEach(groupRows => {\n groupRows.forEach(row => {\n if (row.isGroupLabel) return;\n if (row.selected) totalSelected++;\n totalCheckboxesAccumulator++;\n });\n });\n const allChecked = totalSelected === totalCheckboxesAccumulator;\n\n // TODO: don't use pointer-events to control if a column is sortable - it should be checked\n // within the sorting listeners so that `sortable` doesn't need to be passed here just to give\n // it pointer-events\n return (\n \n {} }}\n />\n \n );\n };\n\n const SelectionCell = ({\n index = 0,\n selected,\n reachedMinWidth = false,\n groupIndex = 0,\n }: {\n // eslint-disable-next-line react/require-default-props\n index?: number;\n selected: boolean;\n // eslint-disable-next-line react/require-default-props\n reachedMinWidth?: boolean;\n // eslint-disable-next-line react/require-default-props\n groupIndex?: number;\n }) => (\n \n onSelect(index, groupIndex, selected)}\n checkboxType={CheckboxTypes.check}\n checked={selected}\n inputProps={{ onChange: () => {} }}\n >\n {reachedMinWidth ? 'Select for download' : ''}\n \n \n );\n\n const EmptyCell = () => ;\n\n interface NotesCellProps {\n notes: string;\n }\n\n const NotesCell: React.FC = ({ notes }) => (\n \n {}} rows={3} value={notes} />\n \n );\n\n const sampleColumns: Columns = {\n selection: {\n name: '',\n headerCellComponent: SelectAllCell,\n width: selectionWidth,\n cellComponent: SelectionCell,\n sortable: false,\n groupCellComponent: EmptyCell,\n footerContent: '',\n },\n name: {\n name: 'Name',\n width: nameWidth,\n sortable: true,\n },\n title: {\n name: 'Title',\n width: titleWidth,\n sortable: true,\n },\n address: {\n name: 'Address',\n width: addressWidth,\n },\n notes: {\n name: 'Notes',\n width: notesWidth,\n cellComponent: NotesCell,\n minTableWidth: 800,\n sortFunction: (a: string, b: string) => a.length < b.length,\n groupCellComponent: EmptyCell,\n },\n };\n\n if (!useDefaultExpansionColumn) {\n sampleColumns[ExpansionIconColumnName] = {\n name: '',\n sortable: false,\n width: args['Expansion Icon width'],\n };\n }\n\n const position = groupLabelPosition;\n\n return (\n \n );\n};\nGroups.args = {\n ...Default.args,\n 'Use default expansion column': false,\n 'Expansion Icon width': '1rem',\n groupLabelPosition: 'above',\n useCustomLabel: false,\n sortGroups: true,\n areGroupsCollapsible: false,\n};\n\nexport default {\n title: 'Table',\n argTypes: {\n groupLabelPosition: {\n options: ['above', 'below'],\n control: {\n type: 'radio',\n },\n },\n },\n parameters: {\n design: {\n type: 'figma',\n url: 'https://www.figma.com/file/3r2G00brulOwr9j7F6JF59/Generic-UI-Style?node-id=102%3A86',\n },\n },\n} as Meta;\n\n\n\nDefault.parameters = { storySource: { source: \"({\\n 'Selection width': selectionWidth,\\n 'Name width': nameWidth,\\n 'Title width': titleWidth,\\n 'Address width': addressWidth,\\n 'Notes width': notesWidth,\\n 'Action width': actionWidth,\\n}: DefaultProps) => {\\n const [rows, setRows] = useState(sampleData);\\n\\n const onDelete = (index: number) => {\\n const newRows = [...rows];\\n newRows.splice(index, 1);\\n setRows(newRows);\\n };\\n\\n const onSelect = (index: number, selected: boolean) => {\\n const newRows = [...rows];\\n newRows[index].selected = !selected;\\n setRows(newRows);\\n };\\n\\n const selectAll = (event: React.MouseEvent) => {\\n const target = event.target as HTMLInputElement;\\n const currentlyChecked = target.checked;\\n const newRows = rows.map((row: SampleDataType) => ({ ...row, selected: currentlyChecked }));\\n setRows(newRows);\\n };\\n\\n const SelectAllCell = () => {\\n const checkRowForSelection = (row: SampleDataType) =>\\n Object.prototype.hasOwnProperty.call(row, 'selected') && row.selected;\\n\\n // TODO: don't use pointer-events to control if a column is sortable - it should be checked\\n // within the sorting listeners so that `sortable` doesn't need to be passed here just to give\\n // it pointer-events\\n return (\\n \\n selectAll(e)}\\n inputProps={{ onChange: () => {} }}\\n />\\n \\n );\\n };\\n\\n const SelectionCell = ({\\n index,\\n selected,\\n reachedMinWidth = false,\\n }: {\\n index: number;\\n selected: boolean;\\n \\n reachedMinWidth?: boolean;\\n }) => (\\n \\n onSelect(index, selected)}\\n checkboxType={CheckboxTypes.check}\\n checked={selected}\\n inputProps={{ onChange: () => {} }}\\n >\\n {reachedMinWidth ? 'Select for download' : ''}\\n \\n \\n );\\n\\n const NotesCell = ({ notes }: { notes: string }) => (\\n \\n {}} rows={3} value={notes} />\\n \\n );\\n\\n const ActionCell = ({ index, reachedMinWidth }: { index: number; reachedMinWidth: boolean }) => (\\n {\\n onDelete(index);\\n }}\\n >\\n \\n   \\n {reachedMinWidth ? 'Delete user' : ''}\\n \\n );\\n\\n const sampleColumns: Columns = {\\n selection: {\\n name: '',\\n headerCellComponent: SelectAllCell,\\n width: selectionWidth,\\n cellComponent: SelectionCell,\\n sortable: false,\\n footerContent: '',\\n },\\n name: {\\n name: 'Name',\\n width: nameWidth,\\n footerContent: 'NameFooter',\\n sortable: true,\\n },\\n title: {\\n name: 'Title',\\n width: titleWidth,\\n footerContent: 'TitleFooter',\\n },\\n address: {\\n name: 'Address',\\n width: addressWidth,\\n footerContent: 'AddressFooter',\\n },\\n notes: {\\n name: 'Notes',\\n width: notesWidth,\\n cellComponent: NotesCell,\\n minTableWidth: 800,\\n sortable: true,\\n sortFunction: (a: string, b: string) => a.length < b.length,\\n footerContent: 'NotesFooter',\\n },\\n action: {\\n name: '',\\n sortable: false,\\n width: actionWidth,\\n cellComponent: ActionCell,\\n footerContent: '',\\n },\\n };\\n\\n return
;\\n}\" }, ...Default.parameters };\nGroups.parameters = { storySource: { source: \"({\\n 'Selection width': selectionWidth,\\n 'Name width': nameWidth,\\n 'Title width': titleWidth,\\n 'Address width': addressWidth,\\n 'Notes width': notesWidth,\\n 'Use default expansion column': useDefaultExpansionColumn,\\n groupLabelPosition,\\n sortGroups,\\n areGroupsCollapsible,\\n useCustomLabel,\\n ...args\\n}: GroupsProps) => {\\n const [rows, setRows] = useState(sampleGroupData);\\n\\n const onSelect = (index = 0, groupIndex = 0, selected: boolean) => {\\n const newRows: SampleDataType[][] = [];\\n rows.forEach(grp => {\\n newRows.push([...grp]);\\n });\\n\\n newRows[groupIndex][index].selected = !selected;\\n setRows(newRows);\\n };\\n\\n const selectAll = (event: React.MouseEvent) => {\\n const target = event.target as HTMLInputElement;\\n const currentlyChecked = target.checked;\\n const newRows: SampleDataType[][] = [];\\n rows.forEach(group => {\\n newRows.push(\\n group.map(row => {\\n return { ...row, selected: currentlyChecked };\\n }),\\n );\\n });\\n setRows(newRows);\\n };\\n\\n const SelectAllCell = () => {\\n let totalSelected = 0;\\n let totalCheckboxesAccumulator = 0;\\n rows.forEach(groupRows => {\\n groupRows.forEach(row => {\\n if (row.isGroupLabel) return;\\n if (row.selected) totalSelected++;\\n totalCheckboxesAccumulator++;\\n });\\n });\\n const allChecked = totalSelected === totalCheckboxesAccumulator;\\n\\n // TODO: don't use pointer-events to control if a column is sortable - it should be checked\\n // within the sorting listeners so that `sortable` doesn't need to be passed here just to give\\n // it pointer-events\\n return (\\n \\n {} }}\\n />\\n \\n );\\n };\\n\\n const SelectionCell = ({\\n index = 0,\\n selected,\\n reachedMinWidth = false,\\n groupIndex = 0,\\n }: {\\n \\n index?: number;\\n selected: boolean;\\n \\n reachedMinWidth?: boolean;\\n \\n groupIndex?: number;\\n }) => (\\n \\n onSelect(index, groupIndex, selected)}\\n checkboxType={CheckboxTypes.check}\\n checked={selected}\\n inputProps={{ onChange: () => {} }}\\n >\\n {reachedMinWidth ? 'Select for download' : ''}\\n \\n \\n );\\n\\n const EmptyCell = () => ;\\n\\n interface NotesCellProps {\\n notes: string;\\n }\\n\\n const NotesCell: React.FC = ({ notes }) => (\\n \\n {}} rows={3} value={notes} />\\n \\n );\\n\\n const sampleColumns: Columns = {\\n selection: {\\n name: '',\\n headerCellComponent: SelectAllCell,\\n width: selectionWidth,\\n cellComponent: SelectionCell,\\n sortable: false,\\n groupCellComponent: EmptyCell,\\n footerContent: '',\\n },\\n name: {\\n name: 'Name',\\n width: nameWidth,\\n sortable: true,\\n },\\n title: {\\n name: 'Title',\\n width: titleWidth,\\n sortable: true,\\n },\\n address: {\\n name: 'Address',\\n width: addressWidth,\\n },\\n notes: {\\n name: 'Notes',\\n width: notesWidth,\\n cellComponent: NotesCell,\\n minTableWidth: 800,\\n sortFunction: (a: string, b: string) => a.length < b.length,\\n groupCellComponent: EmptyCell,\\n },\\n };\\n\\n if (!useDefaultExpansionColumn) {\\n sampleColumns[ExpansionIconColumnName] = {\\n name: '',\\n sortable: false,\\n width: args['Expansion Icon width'],\\n };\\n }\\n\\n const position = groupLabelPosition;\\n\\n return (\\n \\n );\\n}\" }, ...Groups.parameters };","/* eslint-disable @typescript-eslint/no-non-null-assertion */\nimport styled from 'styled-components';\nimport React, { ReactNode } from 'react';\nimport { darken, lighten, readableColor } from 'polished';\nimport { StyledBaseSpan } from '../../htmlElements';\nimport { SubcomponentPropsType, StyledSubcomponentType } from '../commonTypes';\nimport Skeleton from '../Skeleton/Skeleton';\nimport { useTheme } from '../../context';\n\nexport type AvatarContainerProps = {\n size: number;\n borderRadiusPercent: number;\n imgURL?: string;\n color: string;\n isLoading: boolean;\n};\n\nexport type AvatarTextProps = {\n size: number;\n textColor: string;\n};\n\nexport type AvatarProps = {\n placeholder?: string | ReactNode;\n children?: ReactNode;\n imgURL?: string;\n size?: number;\n color?: string;\n borderRadiusPercent?: number;\n isLoading?: boolean;\n\n StyledContainer?: StyledSubcomponentType;\n StyledText?: StyledSubcomponentType;\n StyledShimmer?: StyledSubcomponentType;\n containerProps?: SubcomponentPropsType;\n textProps?: SubcomponentPropsType;\n shimmerProps?: SubcomponentPropsType;\n containerRef?: React.RefObject;\n textRef?: React.RefObject;\n shimmerRef?: React.RefObject;\n};\n\nexport const AvatarContainer = styled(Skeleton.Container)`\n ${({ size, borderRadiusPercent, imgURL, isLoading, color }: AvatarContainerProps) => {\n if (imgURL && !isLoading) {\n return `\n border-radius: ${borderRadiusPercent}%;\n overflow: hidden;\n width: ${size}em;\n height: ${size}em;\n background-image: url(${imgURL});\n background-size: cover;\n `;\n }\n return `\n display: flex;\n border-radius: ${borderRadiusPercent}%;\n padding: 1em;\n width: ${size}em;\n height: ${size}em;\n background-color: ${color};\n justify-content: center;\n align-items: center;\n `;\n }}\n`;\n\nexport const AvatarText = styled(StyledBaseSpan)`\n ${({ size, textColor }: AvatarTextProps) => {\n return `\n color: ${textColor};\n font-size: ${size / 3}em; \n font-weight: 600;\n `;\n }};\n`;\n\nexport const AvatarShimmer = styled(Skeleton.Shimmer)`\n ${({ borderRadiusPercent }: Pick) =>\n `\n border-radius: ${borderRadiusPercent}%;\n `}\n`;\n\nconst Avatar = ({\n placeholder,\n children,\n imgURL,\n size = 1.5,\n borderRadiusPercent = 50,\n color: initialColor,\n isLoading = false,\n StyledContainer = AvatarContainer,\n StyledText = AvatarText,\n StyledShimmer = AvatarShimmer,\n textProps = {},\n containerProps = {},\n shimmerProps = {},\n containerRef,\n textRef,\n shimmerRef,\n}: AvatarProps): JSX.Element => {\n const { colors } = useTheme();\n const color = initialColor || colors.grayXlight;\n const fontColor = readableColor(color, colors.grayMedium, colors.background);\n const shimmerColor = fontColor === colors.background ? lighten(0.2, color!) : darken(0.2, color!);\n return (\n \n {children}\n {!imgURL ? (\n \n {placeholder}\n \n ) : (\n ''\n )}\n \n );\n};\n\nAvatar.Container = AvatarContainer;\nAvatar.Text = AvatarText;\n\nexport default Avatar;\n","import React, { ComponentProps, PropsWithChildren, ReactNode } from 'react';\nimport UnstyledIcon from '@mdi/react';\nimport { mdiLoading } from '@mdi/js';\nimport styled from 'styled-components';\nimport { darken } from 'polished';\n\nimport FeedbackTypes from '../../enums/feedbackTypes';\nimport timings from '../../enums/timings';\nimport { useAnalytics, useTheme } from '../../context';\nimport variants from '../../enums/variants';\nimport Skeleton from '../Skeleton/Skeleton';\nimport Progress from '../Progress/Progress';\nimport { StyledBaseDiv, StyledBaseButton } from '../../htmlElements';\nimport {\n getFontColorFromVariant,\n getBackgroundColorFromVariant,\n disabledStyles,\n} from '../../utils/color';\nimport { SubcomponentPropsType, StyledSubcomponentType } from '../commonTypes';\nimport { getShadowStyle } from '../../utils/styles';\nimport InteractionFeedback from '../InteractionFeedback';\nimport { InteractionFeedbackProps } from '../InteractionFeedback/InteractionFeedback';\n\nexport type ButtonContainerProps = React.HTMLProps & {\n elevation: number;\n color: string;\n variant: variants;\n type: string;\n disabled: boolean;\n feedbackType: FeedbackTypes;\n isLoading?: boolean;\n};\n\nexport enum ButtonTypes {\n button = 'button',\n reset = 'reset',\n submit = 'submit',\n}\n\nexport type ButtonProps = {\n StyledContainer?: StyledSubcomponentType;\n // TODO: rename these to StyledIconPrefixContainer - etc\n StyledLeftIconContainer?: StyledSubcomponentType;\n StyledRightIconContainer?: StyledSubcomponentType;\n\n skeletonShimmerProps?: ComponentProps;\n /**\n * @deprecated The ProgressBar loading skeleton is being replaced by the Skeleton component - use skeletonShimmerProps to customize the Skeleton wrapping the button.\n */\n ProgressBar?: JSX.Element | null;\n\n containerRef?: React.RefObject;\n // TODO: rename these to iconPrefixContainerRef - etc\n leftIconContainerRef?: React.RefObject;\n rightIconContainerRef?: React.RefObject;\n\n containerProps?: SubcomponentPropsType;\n interactionFeedbackProps?: Omit;\n // TODO: rename these to iconPrefixProps - etc\n leftIconProps?: SubcomponentPropsType;\n rightIconProps?: SubcomponentPropsType;\n\n children?: ReactNode;\n\n id?: string;\n disabled?: boolean;\n elevation?: number;\n variant?: variants;\n type?: ButtonTypes;\n color?: string;\n feedbackType?: FeedbackTypes;\n iconPrefix?: string | JSX.Element;\n iconSuffix?: string | JSX.Element;\n isLoading?: boolean;\n isProcessing?: boolean;\n\n onClick?: React.MouseEventHandler;\n onBlur?: (e: React.FocusEvent) => void;\n onFocus?: (e: React.FocusEvent) => void;\n onMouseDown?: (e: React.MouseEvent) => void;\n onMouseUp?: (e: React.MouseEvent) => void;\n};\n\nconst SkeletonButtonContainer = React.forwardRef(\n (props: PropsWithChildren, ref) => (\n \n {props.children}\n \n ),\n);\n\nexport const ButtonContainer: StyledSubcomponentType = styled(SkeletonButtonContainer)`\n ${({ disabled, elevation = 0, color, variant, feedbackType }: ButtonContainerProps) => {\n const { colors } = useTheme();\n const backgroundColor = getBackgroundColorFromVariant(variant, color, colors.transparent);\n const fontColor = getFontColorFromVariant(variant, color, colors.background, colors.grayDark);\n\n return `\n -webkit-appearance: none;\n display: inline-flex;\n align-items: baseline;\n position: relative;\n font-size: 1em;\n padding: .75em 1em;\n border-radius: 0.25em;\n transition:\n background-color ${timings.fast},\n color ${timings.slow},\n outline ${timings.slow},\n filter ${timings.slow},\n box-shadow ${timings.slow};\n ${getShadowStyle(elevation, colors.shadow)}\n outline: 0 none;\n border: ${\n variant === variants.outline\n ? `1px solid ${color || colors.grayDark}`\n : '1px solid transparent'\n };\n cursor: pointer;\n background-color: ${backgroundColor};\n color: ${fontColor};\n user-select: none;\n align-items: center;\n ${disabled ? disabledStyles() : ''}\n &:hover {\n background-color: ${\n backgroundColor !== 'transparent' ? darken(0.05, backgroundColor) : 'rgba(0, 0, 0, 0.05)'\n };\n }\n &:focus {\n outline: none;\n box-shadow: 0 0 5px 0.150rem ${colors.tertiaryDark};\n }\n ${\n feedbackType === FeedbackTypes.simple\n ? `\n &:active {\n background-color: ${\n backgroundColor !== 'transparent'\n ? darken(0.1, backgroundColor)\n : 'rgba(0, 0, 0, 0.1)'\n };\n }\n `\n : ''\n }\n `;\n }}\n`;\n\nconst IconContainer = styled(StyledBaseDiv)`\n vertical-align: middle;\n`;\n\nconst StyledFeedbackContainer = styled(InteractionFeedback.Container)`\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n`;\n\nconst StyledFeedbackSVGContainer = styled(InteractionFeedback.SVGContainer)`\n border-radius: 0.25em;\n`;\n\nconst LeftIconContainer = styled(IconContainer)`\n ${({ hasContent }: { hasContent: boolean }) => `\n ${hasContent ? 'margin-right: 0.75em;' : ''}\n `}\n`;\n\nconst RightIconContainer = styled(IconContainer)`\n ${({ hasContent }: { hasContent: boolean }) => `\n ${hasContent ? 'margin-left: 0.75em;' : ''}\n `}\n`;\n\nconst Button = ({\n StyledContainer = ButtonContainer,\n StyledLeftIconContainer = LeftIconContainer,\n StyledRightIconContainer = RightIconContainer,\n\n skeletonShimmerProps,\n /**\n * @deprecated The ProgressBar loading skeleton is being replaced by the Skeleton component - use skeletonShimmerProps to customize the Skeleton wrapping the button.\n */\n ProgressBar, // Deprecated\n\n containerProps = {},\n interactionFeedbackProps,\n leftIconProps = {},\n rightIconProps = {},\n\n containerRef,\n leftIconContainerRef,\n rightIconContainerRef,\n\n iconPrefix,\n iconSuffix,\n isLoading,\n isProcessing,\n children,\n elevation = 0,\n feedbackType = FeedbackTypes.ripple,\n variant = variants.fill,\n type = ButtonTypes.button,\n color,\n disabled = false,\n onClick = () => {},\n onBlur = () => {},\n onFocus = () => {},\n onMouseDown = () => {},\n onMouseUp = () => {},\n id,\n}: ButtonProps): JSX.Element | null => {\n const hasContent = Boolean(children);\n const { colors } = useTheme();\n const containerColor = color || colors.grayLight;\n const handleEventWithAnalytics = useAnalytics();\n\n // get everything we expose + anything consumer wants to send to container\n const mergedContainerProps: ButtonContainerProps = {\n id,\n isLoading,\n role: 'button',\n ref: containerRef,\n elevation,\n color: containerColor,\n variant,\n type,\n disabled,\n feedbackType,\n onClick: e => handleEventWithAnalytics('Button', onClick, 'onClick', e, containerProps),\n onBlur: e => handleEventWithAnalytics('Button', onBlur, 'onBlur', e, containerProps),\n onFocus: e => handleEventWithAnalytics('Button', onFocus, 'onFocus', e, containerProps),\n onMouseDown: e =>\n handleEventWithAnalytics('Button', onMouseDown, 'onMouseDown', e, containerProps),\n onMouseUp: e => handleEventWithAnalytics('Button', onMouseUp, 'onMouseUp', e, containerProps),\n ...containerProps,\n };\n\n return (\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-expect-error \"as\" not allowed on StyledSubcomponentType. Passing as prop through containerProps still works.\n \n {!isProcessing &&\n iconPrefix &&\n (typeof iconPrefix === 'string' && iconPrefix !== '' ? (\n \n \n \n ) : (\n {iconPrefix}\n ))}\n {isProcessing && (\n \n \n \n )}\n {isLoading && ProgressBar ? : children}\n {iconSuffix &&\n (typeof iconSuffix === 'string' ? (\n \n \n \n ) : (\n \n {iconSuffix}\n \n ))}\n {feedbackType === FeedbackTypes.ripple && !disabled && !isLoading && (\n \n )}\n \n \n );\n};\n\nButton.Container = ButtonContainer;\nButton.ButtonTypes = ButtonTypes;\nButton.LeftIconContainer = LeftIconContainer;\nButton.RightIconContainer = RightIconContainer;\n\nexport default Button;\n","import React, { ReactNode, MouseEvent } from 'react';\nimport styled from 'styled-components';\nimport { darken } from 'polished';\n\nimport timings from '../../enums/timings';\nimport { StyledBaseDiv } from '../../htmlElements';\nimport { SubcomponentPropsType, StyledSubcomponentType } from '../commonTypes';\nimport { useAnalytics, useTheme } from '../../context';\nimport { getShadowStyle } from '../../utils/styles';\nimport InteractionFeedback, {\n InteractionFeedbackProps,\n} from '../InteractionFeedback/InteractionFeedback';\nimport FeedbackTypes from '../../enums/feedbackTypes';\n\nconst defaultOnClick = () => {};\n\nexport type CardContainerProps = {\n elevation: number;\n feedbackType: FeedbackTypes;\n isDefaultOnClick: boolean;\n};\n\nexport const CardContainer = styled(StyledBaseDiv)`\n ${({ elevation, feedbackType, isDefaultOnClick }: CardContainerProps) => {\n const { colors } = useTheme();\n\n return `\n ${!isDefaultOnClick ? 'cursor: pointer;' : ''}\n position: relative;\n display: inline-flex;\n flex-flow: column nowrap;\n font-size: 1em;\n border-radius: 0.25rem;\n border: ${!elevation ? `1px solid ${colors.grayXlight}` : '0px solid transparent'};\n transition:\n filter ${timings.slow},\n box-shadow ${timings.slow},\n border ${timings.normal},\n background-color ${timings.normal};\n ${getShadowStyle(elevation, colors.shadow)}\n background-color: ${colors.background};\n ${\n feedbackType === FeedbackTypes.simple && !isDefaultOnClick\n ? `\n &:active {\n background-color: ${\n colors.background !== 'transparent'\n ? darken(0.1, colors.background)\n : 'rgba(0, 0, 0, 0.1)'\n };\n }\n `\n : ''\n }\n `;\n }}\n`;\n\nexport const Header = styled(StyledBaseDiv)`\n ${({ hasBody, hasFooter }) => {\n const { colors } = useTheme();\n\n return `\n padding: 1.5em 1.5em ${hasBody || hasFooter ? '0em' : ''};\n border-radius: 0.25rem 0.25rem 0rem 0rem;\n font-weight: bold;\n color: ${colors.grayDark};\n `;\n }}\n`;\n\nexport const NoPaddingHeader = styled(Header)`\n padding: 0;\n`;\n\nexport const Body = styled(StyledBaseDiv)`\n ${() => {\n const { colors } = useTheme();\n\n return `\n padding: 1.5em 1.5em;\n color: ${colors.grayMedium};\n `;\n }}\n`;\n\nexport const Footer = styled(StyledBaseDiv)`\n ${() => {\n const { colors } = useTheme();\n\n return `\n padding: 1em 1.5em;\n display: flex;\n flex-flow: row wrap;\n\n justify-content: flex-end;\n\n color: ${colors.grayLight};\n\n border-radius: 0rem 0rem 0.25rem 0.25rem;\n `;\n }}\n`;\n\nconst StyledFeedbackContainer = styled(InteractionFeedback.Container)`\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n`;\nexport interface CardProps {\n StyledContainer?: StyledSubcomponentType;\n StyledHeader?: StyledSubcomponentType;\n StyledBody?: StyledSubcomponentType;\n StyledFooter?: StyledSubcomponentType;\n\n containerProps?: SubcomponentPropsType;\n headerProps?: SubcomponentPropsType;\n bodyProps?: SubcomponentPropsType;\n footerProps?: SubcomponentPropsType;\n interactionFeedbackProps?: Omit;\n\n onClick?: (evt: MouseEvent) => void;\n\n header?: ReactNode;\n children?: ReactNode;\n footer?: ReactNode;\n\n elevation?: number;\n disableFeedback?: boolean;\n feedbackType?: FeedbackTypes;\n\n containerRef?: React.RefObject;\n headerRef?: React.RefObject;\n bodyRef?: React.RefObject;\n footerRef?: React.RefObject;\n interactiveFeedbackRef?: React.RefObject;\n}\n\nconst Card = ({\n StyledContainer = CardContainer,\n StyledHeader = Header,\n StyledBody = Body,\n StyledFooter = Footer,\n\n containerProps,\n headerProps,\n bodyProps,\n footerProps,\n interactionFeedbackProps,\n\n containerRef,\n headerRef,\n bodyRef,\n footerRef,\n interactiveFeedbackRef,\n\n onClick = defaultOnClick,\n\n header,\n children,\n footer,\n\n elevation = 1,\n feedbackType = FeedbackTypes.ripple,\n}: CardProps): JSX.Element | null => {\n const transitionProps = {\n ...InteractionFeedback.defaultTransitionProps,\n enter: {\n ...InteractionFeedback.defaultTransitionProps,\n r: 300,\n },\n };\n const hasHeader = Boolean(header);\n const hasBody = Boolean(children);\n const hasFooter = Boolean(footer);\n\n const handleEventWithAnalytics = useAnalytics();\n const handleClick = (e: any) =>\n handleEventWithAnalytics('Card', onClick, 'onClick', e, containerProps || { name: 'Card' });\n const isDefaultOnClick = onClick === defaultOnClick;\n\n return (\n \n {header && (\n \n {header}\n \n )}\n {children && (\n \n {children}\n \n )}\n {footer && (\n \n {footer}\n \n )}\n {feedbackType !== FeedbackTypes.simple && onClick !== defaultOnClick && (\n \n )}\n \n );\n};\n\nCard.Header = Header;\nCard.NoPaddingHeader = NoPaddingHeader;\nCard.Footer = Footer;\nCard.Body = Body;\nCard.Container = CardContainer;\n\nexport default Card;\n","import React, { RefObject } from 'react';\nimport styled from 'styled-components';\nimport Icon from '@mdi/react';\nimport { mdiCheck, mdiCheckboxBlank, mdiClose, mdiMinus } from '@mdi/js';\n\nimport { darken } from 'polished';\nimport { useCheckbox } from 'react-aria';\nimport { useToggleState } from '@react-stately/toggle';\nimport { StyledBaseDiv, StyledBaseInput, StyledBaseLabel } from '../../htmlElements';\nimport { SubcomponentPropsType, StyledSubcomponentType } from '../commonTypes';\nimport { useAnalytics, useTheme } from '../../context';\nimport variants from '../../enums/variants';\nimport CheckboxTypes from '../../enums/checkboxTypes';\nimport { disabledStyles } from '../../utils/color';\nimport { mergeRefs } from '../../utils/refs';\n\n// Hide checkbox visually but remain accessible to screen readers.\n// Source: https://polished.js.org/docs/#hidevisually\nexport const Input = styled(StyledBaseInput).attrs({ type: 'checkbox' })`\n border: 0;\n clip: rect(0 0 0 0);\n clippath: inset(50%);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n`;\n\nexport const Label = styled(StyledBaseLabel)`\n ${({ disabled }) => {\n return `\n display: flex;\n align-items: center;\n cursor: pointer;\n height: 2em;\n font-size: 1em;\n \n ${disabled ? disabledStyles() : ''}\n `;\n }}\n`;\n\nexport const Box = styled(StyledBaseDiv)`\n ${({ variant, checked, checkboxType }) => {\n const { colors } = useTheme();\n let color = colors.grayLight;\n if (checkboxType === CheckboxTypes.check && checked) color = colors.success;\n if (checkboxType === CheckboxTypes.cross && checked) color = colors.destructive;\n const backgroundColor = variant === variants.fill && checked ? color : colors.background;\n\n return `\n ${\n variant === variants.outline || variant === variants.fill\n ? `border: 1px solid ${color};`\n : ''\n } \n background-color: ${backgroundColor};\n border-radius: 2px;\n width: 1em;\n height: 1em;\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: visible;\n margin-right: 0.5em;\n &:hover {\n background-color: ${darken(0.05, backgroundColor)}\n }\n `;\n }}\n`;\n\nexport const CheckboxContainer = styled.div`\n ${() => {\n const { colors } = useTheme();\n return `\n display: inline-block;\n vertical-align: middle;\n &:focus-within {\n ${Box} {\n box-shadow: 0 0 5px 0.150rem ${colors.tertiary};\n }\n }\n `;\n }}\n`;\n\nexport const BaseIcon = styled(Icon)`\n overflow: visible;\n height: 1em;\n width: 1em;\n` as StyledSubcomponentType;\n\nconst CheckIcon = styled(BaseIcon)`\n ${({ variant }) => {\n const { colors } = useTheme();\n return `\n color: ${variant === variants.fill ? colors.background : colors.success};\n `;\n }}\n`;\n\nconst CrossIcon = styled(BaseIcon)`\n ${({ variant }) => {\n const { colors } = useTheme();\n return `\n color: ${variant === variants.fill ? colors.background : colors.destructive};\n `;\n }}\n`;\n\nconst DefaultIcon = styled(BaseIcon)`\n ${() => {\n const { colors } = useTheme();\n return `\n color: ${colors.grayLight}\n `;\n }}\n`;\n\nconst NeutralIcon = styled(BaseIcon)`\n ${({ variant }) => {\n const { colors } = useTheme();\n const color = variant === variants.fill ? colors.background : colors.grayMedium;\n return `\n color: ${color};\n path {\n stroke: ${color};\n stroke-width: 2px;\n }\n `;\n }}\n`;\n\nexport interface CheckboxProps {\n StyledLabel?: StyledSubcomponentType;\n StyledCheckboxContainer?: StyledSubcomponentType;\n StyledBox?: StyledSubcomponentType;\n StyledInput?: StyledSubcomponentType;\n StyledIcon?: StyledSubcomponentType;\n\n labelProps?: SubcomponentPropsType;\n checkboxContainerProps?: SubcomponentPropsType;\n boxProps?: SubcomponentPropsType;\n inputProps?: SubcomponentPropsType;\n iconProps?: SubcomponentPropsType;\n\n checkboxType?: CheckboxTypes;\n variant?: variants;\n children?: React.ReactNode;\n checked?: boolean;\n disabled?: boolean;\n onClick: (event: React.MouseEvent) => void;\n\n containerRef?: React.RefObject;\n boxRef?: React.RefObject;\n labelRef?: React.RefObject;\n inputRef?: React.RefObject;\n}\n\nconst iconPaths = {\n [CheckboxTypes.check]: mdiCheck,\n [CheckboxTypes.cross]: mdiClose,\n [CheckboxTypes.neutral]: mdiMinus,\n [CheckboxTypes.default]: mdiCheckboxBlank,\n [CheckboxTypes.fill]: mdiCheckboxBlank,\n};\n\nexport const iconComponents = {\n [CheckboxTypes.check]: CheckIcon,\n [CheckboxTypes.cross]: CrossIcon,\n [CheckboxTypes.neutral]: NeutralIcon,\n [CheckboxTypes.default]: DefaultIcon,\n [CheckboxTypes.fill]: DefaultIcon,\n};\n\nconst Checkbox = ({\n StyledLabel = Label,\n StyledCheckboxContainer = CheckboxContainer,\n StyledBox = Box,\n StyledInput = Input,\n StyledIcon,\n\n labelProps = {},\n checkboxContainerProps = {},\n boxProps = {},\n inputProps = {},\n iconProps = {},\n\n checkboxType = CheckboxTypes.check,\n variant = variants.fill,\n checked = false,\n children,\n disabled = false,\n onClick,\n containerRef,\n boxRef,\n labelRef,\n inputRef,\n}: CheckboxProps): JSX.Element => {\n const iconPath = iconPaths[checkboxType];\n const IconComponent = StyledIcon || iconComponents[checkboxType];\n\n // add aria-label for accessibility if no children elements are provided\n const mergedInputProps = children\n ? { isDisabled: disabled, isSelected: checked, ...inputProps, children }\n : { isDisabled: disabled, isSelected: checked, ...inputProps, 'aria-label': 'checkbox' };\n\n const state = useToggleState({ ...mergedInputProps });\n const internalRef = React.useRef();\n const { inputProps: ariaProps } = useCheckbox(\n mergedInputProps,\n state,\n internalRef as RefObject,\n );\n const handleEventWithAnalytics = useAnalytics();\n const handleClick = (e: any) =>\n handleEventWithAnalytics('Checkbox', onClick, 'onClick', e, checkboxContainerProps);\n\n return (\n \n \n \n {checked ? (\n \n ) : null}\n \n ([inputRef, internalRef])}\n {...inputProps}\n />\n \n {children}\n \n );\n};\n\nCheckbox.Label = Label;\nCheckbox.Box = Box;\nCheckbox.Input = Input;\nCheckbox.Container = CheckboxContainer;\nCheckbox.Types = CheckboxTypes;\nCheckbox.CheckIcon = CheckIcon;\nCheckbox.CrossIcon = CrossIcon;\nCheckbox.NeutralIcon = NeutralIcon;\nCheckbox.FillIcon = DefaultIcon;\nexport default Checkbox;\n","import React from 'react';\nimport styled from 'styled-components';\n\nimport { useSeparator } from 'react-aria';\nimport { StyledBaseDiv, StyledBaseHR } from '../../htmlElements';\nimport { SubcomponentPropsType, StyledSubcomponentType } from '../commonTypes';\nimport { useTheme } from '../../context';\n\nexport const DefaultDivider = styled(StyledBaseHR)`\n ${({ width = '90%', height = '1px' }: { width: string; height: string }) => {\n const { colors } = useTheme();\n return `\n border: none;\n height: ${height};\n width: ${width};\n background-color: ${colors.grayLight};\n `;\n }}\n`;\n\nexport const DefaultDividerContainer = styled(StyledBaseDiv)`\n display: flex;\n justify-content: center;\n margin-top: 10px;\n margin-bottom: 10px;\n`;\n\nexport interface DividerProps {\n StyledDivider?: StyledSubcomponentType;\n StyledDividerContainer?: StyledSubcomponentType;\n dividerProps?: SubcomponentPropsType;\n dividerContainerProps?: SubcomponentPropsType;\n\n width?: string;\n height?: string;\n\n containerRef?: React.RefObject;\n dividerRef?: React.RefObject;\n}\n\nconst Divider = ({\n StyledDivider = DefaultDivider,\n StyledDividerContainer = DefaultDividerContainer,\n dividerProps = {},\n dividerContainerProps = {},\n width = '90%',\n height = '1px',\n containerRef,\n dividerRef,\n}: DividerProps): JSX.Element => {\n const { separatorProps: ariaProps } = useSeparator(dividerProps);\n return (\n \n \n \n );\n};\n\nDivider.Container = DefaultDividerContainer;\nDivider.Divider = DefaultDivider;\nexport default Divider;\n","import React, {\n ReactNode,\n useCallback,\n useEffect,\n useLayoutEffect,\n useMemo,\n useRef,\n useState,\n} from 'react';\nimport styled from 'styled-components';\nimport Icon from '@mdi/react';\nimport { mdiCheck, mdiClose, mdiMenuDown, mdiMenuUp } from '@mdi/js';\nimport { shade, tint, getLuminance, darken, readableColor } from 'polished';\n\nimport { Components, ListRange, Virtuoso } from 'react-virtuoso';\nimport Fuse from 'fuse.js';\nimport { useAnalytics, useTheme } from '../../context';\nimport Button from '../Button/Button';\nimport variants from '../../enums/variants';\nimport timings from '../../enums/timings';\nimport { StyledBaseDiv, StyledBaseSpan, StyledBaseInput } from '../../htmlElements';\nimport Tag, { TagProps } from '../Tag/Tag';\nimport { getFontColorFromVariant, getBackgroundColorFromVariant } from '../../utils/color';\nimport { SubcomponentPropsType, StyledSubcomponentType } from '../commonTypes';\nimport { getShadowStyle, getDropdownTagStyle } from '../../utils/styles';\nimport { mergeRefs } from '../../utils/refs';\nimport TextInput, { TextInputProps } from '../TextInput/TextInput';\n\nexport type OptionProps = {\n id: number | string;\n optionValue: ReactNode;\n isSelected?: boolean;\n};\n\ntype UsefulDropdownState = {\n color: string;\n multi?: boolean;\n selected?: boolean;\n variant: variants;\n isOpenedBelow?: boolean;\n isHidden?: boolean;\n};\n\nconst Container = styled(StyledBaseDiv)`\n ${({ elevation, isOpen }) => {\n const { colors } = useTheme();\n return `\n width: fit-content;\n transition: filter ${timings.slow}, box-shadow ${timings.slow};\n ${getShadowStyle(elevation, colors.shadow)}\n position: relative;\n z-index: ${isOpen ? '7' : '1'};\n `;\n }}\n`;\n\n// TODO - Add constants for width\nexport const ValueContainer = styled(Button.Container)`\n ${({ isOpen, isOpenedBelow, isHidden }) => {\n const { colors } = useTheme();\n const openedDirection = isOpenedBelow ? 'bottom' : 'top';\n const openStyle = `\n border-${openedDirection}: 0px solid transparent;\n border-${openedDirection}-right-radius: 0rem;\n border-${openedDirection}-left-radius: 0rem;\n `;\n\n return `\n user-select: none;\n display: flex;\n justify-content: space-between;\n flex-direction: row;\n align-items: center;\n ${isOpen && !isHidden ? openStyle : ''}\n width: 15em;\n padding: .5em 1em;\n\n &:focus-within {\n outline: none;\n box-shadow: 0 0 5px 0.150rem ${colors.tertiaryDark};\n }\n `;\n }}\n`;\n\n// TODO: Don't use explicit height here - this div is ending up larger than the icon otherwise\nexport const CloseIconContainer = styled(StyledBaseDiv)`\n z-index: 1;\n display: flex;\n align-items: center;\n`;\n\nexport const ArrowIconContainer = styled(StyledBaseDiv)`\n height: 1.125em;\n z-index: 1;\n pointer-events: none;\n`;\n\nconst ValueItem = styled(StyledBaseDiv)`\n width: 100%;\n text-align: left;\n`;\n\nconst OptionsContainer = styled(StyledBaseDiv)`\n ${({\n color,\n variant,\n isOpenedBelow,\n isHidden,\n isVirtual,\n }: UsefulDropdownState & { isVirtual: boolean }) => {\n const direction = isOpenedBelow ? 'top' : 'bottom';\n const borderRadii = isOpenedBelow ? '0rem 0rem 0.25rem 0.25rem' : '0.25rem 0.25rem 0rem 0rem';\n\n return `\n background: white;\n position: absolute;\n left: 0px;\n ${isVirtual ? 'height: 10em;' : 'max-height: 10em;'}\n overflow-y: auto;\n width: 15em;\n ${\n variant !== variants.text\n ? `\n border: 1px solid ${color};\n `\n : ''\n }\n z-index: 1000;\n ${direction}: 100%;\n border-${direction}: 0px solid transparent;\n border-radius: ${borderRadii};\n ${isHidden ? 'visibility: hidden;' : ''}\n `;\n }}\n`;\n\nconst HiddenOptionsContainer = styled(OptionsContainer)`\n ${({ isOpenedBelow }) => {\n const direction = isOpenedBelow ? 'top' : 'bottom';\n\n return `\n visibility: hidden;\n ${direction}: 100%;\n `;\n }}\n`;\n\nconst OptionItem = styled(StyledBaseDiv)`\n ${({ selected, color, variant }: UsefulDropdownState) => {\n const { colors } = useTheme();\n const unselectedBgColor = getBackgroundColorFromVariant(variant, color);\n const selectedBgColor = getLuminance(color) > 0.5 ? shade(0.125, color) : tint(0.5, color);\n const backgroundColor = selected ? selectedBgColor : unselectedBgColor;\n return `\n user-select: none;\n padding: 0.5em;\n display: flex;\n align-items: center;\n color: ${\n selected\n ? readableColor(backgroundColor, colors.background, color, true)\n : getFontColorFromVariant(variant, color)\n };\n background-color: ${backgroundColor};\n &:hover {\n background-color: ${\n backgroundColor !== 'transparent' ? darken(0.05, backgroundColor) : 'rgba(0, 0, 0, 0.05)'\n };\n cursor: pointer;\n outline: none;\n }\n &:focus {\n outline: none;\n background-color: ${\n backgroundColor !== 'transparent' ? darken(0.05, backgroundColor) : 'rgba(0, 0, 0, 0.1)'\n };\n }\n `;\n }}\n`;\n\nconst CheckContainer = styled(StyledBaseDiv)`\n ${({ color }: UsefulDropdownState) => {\n const { colors } = useTheme();\n const backgroundColor = getLuminance(color) > 0.5 ? shade(0.125, color) : tint(0.5, color);\n return `\n display: flex;\n align-items: center;\n justify-content: center;\n color: ${readableColor(backgroundColor, colors.background, color, true)};\n padding-right: 0.2em;\n width: 2em;\n `;\n }}\n`;\n\nconst PlaceholderContainer = styled(StyledBaseDiv)`\n position: absolute;\n opacity: 0.8;\n`;\n\nconst ValueItemTagContainer = styled(Tag.Container)`\n ${({\n dropdownVariant,\n tagVariant,\n dropdownColor,\n transparentColor,\n }: {\n dropdownVariant: variants;\n tagVariant: variants;\n dropdownColor: string;\n transparentColor: string;\n }) => `\n ${\n tagVariant === variants.text\n ? `\n padding: 0;\n line-height: 1;\n margin-top: 0 !important;\n `\n : ''\n }\n ${getDropdownTagStyle(dropdownVariant, tagVariant, dropdownColor, transparentColor)}\n `}\n`;\n\nconst SearchContainer = styled(StyledBaseDiv)``;\n\nconst SearchInput = styled(StyledBaseInput)`\n all: inherit;\n text-align: left;\n`;\n\nconst ValuesCountContainer = styled(StyledBaseDiv)`\n ${({\n variant,\n color,\n dropdownVariant,\n transparentColor,\n }: UsefulDropdownState & { dropdownVariant: variants; transparentColor: string }) => {\n return `\n ${getDropdownTagStyle(dropdownVariant, variant, color, transparentColor)}\n padding: 0.125rem;\n border-radius: 1.5rem;\n `;\n }}\n`;\n\nexport interface DropdownProps {\n StyledContainer?: StyledSubcomponentType;\n StyledValueContainer?: StyledSubcomponentType;\n StyledValueItem?: StyledSubcomponentType;\n StyledValueItemTagContainer?: StyledSubcomponentType;\n StyledOptionsContainer?: StyledSubcomponentType;\n StyledHiddenOptionsContainer?: StyledSubcomponentType;\n StyledOptionItem?: StyledSubcomponentType;\n StyledCheckContainer?: StyledSubcomponentType;\n StyledPlaceholder?: StyledSubcomponentType;\n StyledCloseIconContainer?: StyledSubcomponentType;\n StyledArrowIconContainer?: StyledSubcomponentType;\n StyledSearchInput?: StyledSubcomponentType;\n StyledSearchContainer?: StyledSubcomponentType;\n StyledValueCountContainer?: StyledSubcomponentType;\n\n containerProps?: SubcomponentPropsType;\n valueContainerProps?: SubcomponentPropsType;\n valueItemProps?: SubcomponentPropsType;\n valueItemTagProps?: TagProps;\n optionsContainerProps?: SubcomponentPropsType;\n optionItemProps?: SubcomponentPropsType;\n checkContainerProps?: SubcomponentPropsType;\n placeholderProps?: SubcomponentPropsType;\n closeIconProps?: SubcomponentPropsType;\n arrowIconProps?: SubcomponentPropsType;\n searchInputProps?: SubcomponentPropsType;\n searchContainerProps?: SubcomponentPropsType;\n valueCountProps?: SubcomponentPropsType;\n\n containerRef?: React.RefObject;\n optionsContainerRef?: React.RefObject;\n hiddenOptionsContainerRef?: React.RefObject;\n optionItemRef?: React.RefObject;\n valueContainerRef?: React.RefObject;\n valueItemRef?: React.RefObject;\n valueItemTagRef?: React.RefObject;\n checkContainerRef?: React.RefObject;\n placeholderRef?: React.RefObject;\n closeIconRef?: React.RefObject;\n arrowIconRef?: React.RefObject;\n searchContainerRef?: React.RefObject;\n searchInputRef?: React.RefObject;\n valueCountRef?: React.RefObject;\n\n color?: string;\n elevation?: number;\n multi?: boolean;\n name?: string;\n placeholder?: string;\n\n componentUUID?: string;\n\n onBlur?: () => void;\n onFocus?: () => void;\n onClear?: () => void;\n onSelect: (selected?: Array) => void;\n\n rememberScrollPosition?: boolean;\n\n values?: Array;\n options?: Array;\n tabIndex?: number;\n variant?: variants;\n optionsVariant?: variants;\n valueVariant?: variants;\n valueCountVariant?: variants;\n\n shouldStayInView?: boolean;\n intersectionThreshold?: number;\n intersectionContainer?: HTMLElement | null;\n intersectionObserverPrecision?: number;\n virtualizeOptions?: boolean;\n\n showValueCount?: boolean;\n showSelectedValues?: boolean;\n clearable?: boolean;\n searchable?: boolean;\n searchFiltersOptions?: boolean;\n onSearchChange?: TextInputProps['onChange'];\n onDebouncedSearchChange?: TextInputProps['debouncedOnChange'];\n}\n\nconst defaultCallback = () => {}; // eslint-disable-line @typescript-eslint/no-empty-function\n\nconst Dropdown = ({\n StyledContainer = Container,\n StyledValueContainer = ValueContainer,\n StyledValueItem = ValueItem,\n StyledValueItemTagContainer = ValueItemTagContainer,\n StyledOptionsContainer = OptionsContainer,\n StyledHiddenOptionsContainer = HiddenOptionsContainer,\n StyledOptionItem = OptionItem,\n StyledCheckContainer = CheckContainer,\n StyledPlaceholder = PlaceholderContainer,\n StyledCloseIconContainer = CloseIconContainer,\n StyledArrowIconContainer = ArrowIconContainer,\n StyledSearchContainer = SearchContainer,\n StyledSearchInput = SearchInput,\n StyledValueCountContainer = ValuesCountContainer,\n\n containerProps,\n valueContainerProps,\n valueItemProps,\n optionsContainerProps,\n optionItemProps,\n checkContainerProps,\n placeholderProps,\n closeIconProps,\n arrowIconProps,\n valueItemTagProps = {},\n searchInputProps,\n searchContainerProps,\n valueCountProps,\n\n containerRef,\n optionsContainerRef,\n hiddenOptionsContainerRef,\n optionItemRef,\n valueContainerRef,\n valueItemRef,\n valueItemTagRef,\n checkContainerRef,\n placeholderRef,\n closeIconRef,\n arrowIconRef,\n searchContainerRef,\n searchInputRef,\n valueCountRef,\n\n color,\n elevation = 0,\n multi = false,\n name = 'dropdown',\n placeholder,\n\n onBlur,\n onFocus,\n onClear,\n onSelect,\n options = [],\n tabIndex = 0,\n variant = variants.outline,\n optionsVariant = variants.outline,\n rememberScrollPosition = true,\n valueVariant = variants.text,\n valueCountVariant = variants.outline,\n values = [],\n shouldStayInView = true,\n intersectionThreshold = 1.0,\n intersectionContainer = null,\n intersectionObserverPrecision = 100,\n virtualizeOptions = true,\n\n showValueCount = false,\n showSelectedValues = true,\n clearable = true,\n searchable = false,\n searchFiltersOptions = true,\n onSearchChange = defaultCallback,\n onDebouncedSearchChange = defaultCallback,\n}: DropdownProps): JSX.Element | null => {\n const { colors } = useTheme();\n const defaultedColor = color || colors.grayDark;\n const [isOpen, setIsOpen] = useState(false);\n const containerInternalRef = useRef(null);\n const optionsContainerInternalRef = useRef(null);\n const hiddenOptionsContainerInternalRef = useRef(null);\n\n const [focusWithin, setFocusWithin] = useState(false);\n const [focusTimeoutId, setFocusTimeoutId] = useState();\n\n const [searchValue, setSearchValue] = useState();\n\n const scrollPos = useRef(0);\n\n const [isOpenedBelow, setIsOpenedBelow] = useState(true);\n const [isHidden, setIsHidden] = useState(true);\n const [isPageScrollingDown, setIsPageScrollingDown] = useState(null);\n const prevIntersectionRatio = useRef(0.5);\n const ticking = useRef(false);\n const [scrollIndex, setScrollIndex] = useState(0);\n\n const [isOverflowing, setIsOverflowing] = useState(true);\n\n const handleEventWithAnalytics = useAnalytics();\n\n const handleOnBlur = useCallback(\n (e: any) => handleEventWithAnalytics('Dropdown', onBlur || (() => {}), 'onBlur', e, { name }),\n [handleEventWithAnalytics, onBlur, name],\n );\n const handleOnFocus = useCallback(\n (e: any) => handleEventWithAnalytics('Dropdown', onFocus || (() => {}), 'onFocus', e, { name }),\n [handleEventWithAnalytics, onFocus, name],\n );\n const handleOnClear = useCallback(\n (e: any) => handleEventWithAnalytics('Dropdown', onClear || (() => {}), 'onClear', e, { name }),\n [handleEventWithAnalytics, onClear, name],\n );\n\n const isVirtual = virtualizeOptions && isOverflowing;\n\n const inputRef = useRef(null);\n\n const [searchCharacterCount, setSearchCharacterCount] = useState(0);\n const [filteredOptions, setFilteredOptions] = useState([]);\n const stringifiedOptions = JSON.stringify(options);\n\n useEffect(() => {\n setFilteredOptions(options);\n // empty array of options makes this useEffect loop\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [stringifiedOptions]);\n\n // Merge the default styled container prop and the placeholderProps object to get user styles\n const placeholderMergedProps = {\n StyledContainer: PlaceholderContainer,\n ...placeholderProps,\n };\n\n // effect to determine if user is scrolling up or down\n useEffect(() => {\n if (isOpen && shouldStayInView) {\n const threshold = 0;\n let lastScrollY = window.pageYOffset;\n\n const updateScrollDir = () => {\n const scrollY = window.pageYOffset;\n\n if (Math.abs(scrollY - lastScrollY) < threshold) {\n ticking.current = false;\n return;\n }\n setIsPageScrollingDown(scrollY > lastScrollY);\n\n lastScrollY = scrollY > 0 ? scrollY : 0;\n ticking.current = false;\n };\n\n const onPageScroll = () => {\n if (!ticking.current) {\n window.requestAnimationFrame(updateScrollDir);\n ticking.current = true;\n }\n };\n window.addEventListener('scroll', onPageScroll);\n\n return () => window.removeEventListener('scroll', onPageScroll);\n }\n setIsPageScrollingDown(null);\n }, [isOpen, shouldStayInView]);\n\n const intersectOptions = useMemo(() => {\n const buildThresholdArray = () =>\n Array.from(\n Array(intersectionObserverPrecision).keys(),\n i => i / intersectionObserverPrecision,\n );\n\n return {\n root: intersectionContainer,\n rootMargin: '0px',\n threshold: buildThresholdArray(),\n };\n }, [intersectionContainer, intersectionObserverPrecision]);\n\n const intersectionCallback = useCallback(\n (entries: IntersectionObserverEntry[]) => {\n if (shouldStayInView) {\n if (entries.length === 1) {\n const [entry] = entries;\n if (\n entry.intersectionRatio < intersectionThreshold &&\n entry.target === optionsContainerInternalRef.current\n ) {\n // swap the dropdown to open downward if its hitting the top\n if (\n isPageScrollingDown &&\n !isOpenedBelow &&\n entry.intersectionRatio < prevIntersectionRatio.current\n ) {\n setIsOpenedBelow(true);\n } else if (\n isPageScrollingDown === false &&\n isOpenedBelow &&\n entry.intersectionRatio < prevIntersectionRatio.current\n ) {\n setIsOpenedBelow(false);\n }\n }\n prevIntersectionRatio.current = entry.intersectionRatio;\n } else if (entries.length === 2) {\n const [dropdown, invisibleDrop] = entries;\n // flip the view if the other direction is more visible in viewport\n // and the options container is less than the threshold\n\n if (\n dropdown.intersectionRatio < intersectionThreshold &&\n invisibleDrop.intersectionRatio > dropdown.intersectionRatio\n ) {\n setIsOpenedBelow((drop: boolean) => !drop);\n }\n }\n }\n setIsHidden(false);\n },\n [shouldStayInView, intersectionThreshold, isPageScrollingDown, isOpenedBelow],\n );\n\n const intersectObserver = useMemo(\n () => new IntersectionObserver(intersectionCallback, intersectOptions),\n [intersectOptions, intersectionCallback],\n );\n\n const stringifiedFilteredOptions = JSON.stringify(filteredOptions);\n\n useLayoutEffect(() => {\n let timer: number;\n if (isOpen) {\n // setTimeout ensures this code renders after the initial render\n timer = window.setTimeout(() => {\n const optionsContainer = optionsContainerInternalRef.current;\n const hiddenContainer = hiddenOptionsContainerInternalRef.current;\n\n if (optionsContainer) {\n if (shouldStayInView) {\n const virtuosoContainer = optionsContainer.firstElementChild;\n const virtuosoScroller = virtuosoContainer?.firstElementChild;\n\n if (virtuosoScroller && virtuosoScroller.clientHeight < optionsContainer.clientHeight) {\n setIsOverflowing(false);\n }\n } else {\n setIsOverflowing(optionsContainer.scrollHeight > optionsContainer.clientHeight);\n }\n }\n\n if (optionsContainer && hiddenContainer) {\n const optionsContainerHeight = optionsContainer.getBoundingClientRect().height;\n const hiddenContainerHeight = hiddenContainer.getBoundingClientRect().height;\n\n if (optionsContainerHeight !== hiddenContainerHeight) {\n // height is returned in pixels\n hiddenContainer.style.height = `${optionsContainerHeight}px`;\n }\n\n intersectObserver.observe(optionsContainer);\n intersectObserver.observe(hiddenContainer);\n }\n }, 0);\n }\n\n return () => {\n clearTimeout(timer);\n intersectObserver.disconnect();\n };\n }, [intersectObserver, shouldStayInView, isOpen, stringifiedFilteredOptions]);\n\n const optionsHash: { [key: string]: OptionProps } = useMemo(() => {\n const hash: { [key: string]: OptionProps } = {};\n options.forEach(option => {\n hash[option.id] = { ...option, isSelected: values.includes(option.id) };\n });\n\n return hash;\n }, [options, values]);\n\n const scrollListener = () => {\n scrollPos.current = optionsContainerInternalRef.current\n ? optionsContainerInternalRef.current.scrollTop\n : 0;\n };\n\n const handleBlur = useCallback(\n (e: React.FocusEvent) => {\n e.preventDefault();\n e.persist();\n // when not searchable, blur\n // when searchable, only blur if the event is from the input\n setFocusTimeoutId(\n window.setTimeout(() => {\n const blurredFromButtom = !searchable && e.target.id === `${name}-dropdown-button`;\n const blurredFromSearch = searchable && e.target.id === `${name}-search-input`;\n if (focusWithin && (blurredFromButtom || blurredFromSearch)) {\n setFocusWithin(false);\n setIsOpen(false);\n if (handleOnBlur) {\n handleOnBlur(e);\n }\n }\n }, 0),\n );\n },\n [handleOnBlur, focusWithin, name, searchable],\n );\n\n const handleFocus = useCallback(\n (e: any) => {\n e.persist();\n window.setTimeout(() => {\n if (document.activeElement?.id === `${name}-dropdown-button`) {\n inputRef?.current?.focus();\n }\n }, 0);\n\n clearTimeout(focusTimeoutId);\n\n if (!focusWithin) {\n setFocusWithin(true);\n // make sure there is no dropdown flickering when tabbing into dropdown\n setIsHidden(true);\n setIsOpenedBelow(true);\n }\n\n setIsOpen(true);\n\n if (handleOnFocus) {\n handleOnFocus(e);\n }\n },\n [focusTimeoutId, focusWithin, handleOnFocus, name],\n );\n\n const handleOnSelect = useCallback(\n (selected?: Array) =>\n handleEventWithAnalytics('Dropdown', onSelect, 'onSelect', selected, { name }),\n [handleEventWithAnalytics, onSelect, name],\n );\n\n const handleSelect = useCallback(\n (clickedId: string | number) => {\n if (!multi) {\n setIsOpen(false);\n setFocusWithin(false);\n handleOnSelect([clickedId]);\n } else {\n const previouslySelected = optionsHash[clickedId].isSelected;\n const newValues = previouslySelected\n ? values.filter(val => val !== clickedId)\n : [...values, clickedId];\n handleOnSelect(newValues);\n }\n },\n [handleOnSelect, multi, values, optionsHash],\n );\n\n const handleClear = useCallback(\n (e: React.MouseEvent) => {\n e.preventDefault();\n e.nativeEvent.stopImmediatePropagation();\n handleOnSelect(multi ? [] : undefined);\n if (handleOnClear) {\n handleOnClear(e);\n }\n },\n [multi, handleOnClear, handleOnSelect],\n );\n\n const handleMouseDownOnButton = useCallback(\n (e: React.MouseEvent) => {\n if (isOpen) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore - It's okay if target is null in this case as we want it to close regardless\n handleBlur(e);\n } else {\n setIsHidden(true);\n setIsOpenedBelow(true);\n handleFocus(e);\n }\n },\n [isOpen, handleBlur, handleFocus],\n );\n\n const keyDownHandler = useCallback(\n ({ key }: { key: string }) => {\n // setTimeout(0) needed when responding to key events to push back call\n // to activeElement to after it is updated in the DOM\n window.setTimeout(() => {\n const focusedElement = document.activeElement;\n\n if (!focusedElement) return;\n\n let optionToFocus;\n\n switch (key) {\n case 'Enter':\n const match = focusedElement.id.match(`${name}-option-(.*)`);\n if (match) {\n handleSelect(match[1]);\n }\n break;\n\n case 'ArrowUp':\n if (focusedElement.id.match(`${name}-option-.*`)) {\n if (isVirtual) {\n const row = focusedElement.parentElement;\n const rowPrevSibling = row ? row.previousElementSibling : null;\n if (rowPrevSibling) {\n optionToFocus = rowPrevSibling.firstElementChild;\n }\n } else {\n optionToFocus = focusedElement.previousElementSibling;\n }\n }\n break;\n\n case 'ArrowDown':\n if (focusedElement.id === `${name}-dropdown-button`) {\n const optionsContainer = focusedElement?.nextElementSibling;\n if (isVirtual) {\n const virtuosoContainer = optionsContainer?.firstElementChild;\n const virtuosoScroller = virtuosoContainer?.firstElementChild;\n optionToFocus = virtuosoScroller?.firstElementChild?.firstElementChild;\n } else {\n optionToFocus = optionsContainer?.firstElementChild;\n }\n } else if (focusedElement.id.match(`${name}-option-.*`)) {\n if (isVirtual) {\n const row = focusedElement.parentElement;\n const rowNextSibling = row ? row.nextElementSibling : null;\n if (rowNextSibling) {\n optionToFocus = rowNextSibling.firstElementChild;\n }\n } else {\n optionToFocus = focusedElement.nextElementSibling;\n }\n } else if (focusedElement.id === `${name}-search-input`) {\n const searchInputContainer = focusedElement.parentElement;\n const valueItemContainer = searchInputContainer?.parentElement;\n const button = valueItemContainer;\n const optionsContainer = button?.nextElementSibling;\n if (isVirtual) {\n const virtuosoContainer = optionsContainer?.firstElementChild;\n const virtuosoScroller = virtuosoContainer?.firstElementChild;\n optionToFocus = virtuosoScroller?.firstElementChild?.firstElementChild;\n } else {\n optionToFocus = optionsContainer?.firstElementChild;\n }\n }\n break;\n default:\n break;\n }\n (optionToFocus as HTMLElement)?.focus();\n }, 0);\n },\n [handleSelect, isVirtual, name],\n );\n\n useEffect(() => {\n window.removeEventListener('keydown', keyDownHandler);\n window.addEventListener('keydown', keyDownHandler);\n return () => {\n window.removeEventListener('keydown', keyDownHandler);\n };\n }, [keyDownHandler]);\n\n const optionsScrollListenerCallbackRef = useCallback(\n (node: HTMLElement | null) => {\n if (node && rememberScrollPosition) {\n node.addEventListener('scroll', scrollListener, true);\n\n if (scrollPos.current) {\n node.scrollTop = scrollPos.current;\n }\n }\n },\n [rememberScrollPosition],\n );\n\n const valueCountCloseIconHandler = () => {\n return (\n <>\n {showValueCount && (\n \n {values.length}\n \n )}\n {clearable && (\n e.stopPropagation()}\n onClick={handleClear}\n onFocus={(e: React.FocusEvent) => e.stopPropagation()}\n tabIndex={tabIndex}\n ref={closeIconRef}\n {...closeIconProps}\n >\n \n \n )}\n \n );\n };\n\n const infoIcons = (\n <>\n {values.length > 0 && valueCountCloseIconHandler()}\n \n \n \n \n );\n\n const InternalOptionsContainer = useMemo(\n () =>\n React.forwardRef(\n (\n { children }: { children: React.ReactNode },\n listRef: React.ForwardedRef,\n ) => (\n ([\n optionsContainerRef,\n optionsContainerInternalRef,\n listRef,\n ])}\n isOpenedBelow={isOpenedBelow}\n isHidden={isHidden}\n {...optionsContainerProps}\n >\n {children}\n \n ),\n ),\n [\n defaultedColor,\n isHidden,\n isOpenedBelow,\n isVirtual,\n optionsContainerProps,\n optionsContainerRef,\n optionsVariant,\n ],\n );\n const handleSearchChange = useCallback(\n (e: React.ChangeEvent) => {\n setSearchValue(e.target.value);\n handleEventWithAnalytics('Dropdown', onSearchChange, 'onSearchChange', e, { name });\n },\n [handleEventWithAnalytics, onSearchChange, name],\n );\n\n const handleSearchDebouncedChange = (e: React.ChangeEvent) => {\n handleEventWithAnalytics('Dropdown', onDebouncedSearchChange, 'onDebouncedSearchChange', e, {\n name,\n });\n\n const searchText = e.target.value;\n\n setSearchCharacterCount(searchText.length);\n\n if (searchFiltersOptions) {\n if (searchText.length === 0) {\n setFilteredOptions(options);\n } else {\n const fuse = new Fuse(options, {\n keys: ['id', 'optionValue'],\n });\n\n const result = fuse.search(searchText);\n\n setFilteredOptions(result.map(r => r.item));\n }\n }\n };\n\n const optionsToRender: OptionProps[] =\n searchable && searchFiltersOptions ? filteredOptions : options;\n const persistPlaceholder = !showSelectedValues && !focusWithin;\n const blurredEmptyArrEmptySearch =\n searchCharacterCount === 0 && (!values || !values.length) && !focusWithin;\n return (\n ([containerRef, containerInternalRef])}\n onMouseDown={handleMouseDownOnButton}\n {...containerProps}\n >\n \n {(blurredEmptyArrEmptySearch || persistPlaceholder) && (\n \n {placeholder}\n \n )}\n {searchable && focusWithin && isOpen ? (\n ([searchInputRef, inputRef])}\n autoComplete=\"off\"\n inputProps={searchInputProps}\n containerProps={searchContainerProps}\n />\n ) : (\n \n {showSelectedValues\n ? values\n .filter(val => val !== undefined && optionsHash[val] !== undefined)\n .map((val, i, arr) =>\n optionsHash[val] !== undefined ? (\n \n {optionsHash[val].optionValue}\n {valueVariant === variants.text && i !== arr.length - 1 && ','}\n \n ) : undefined,\n )\n : undefined}\n \n )}\n {infoIcons}\n \n {isOpen && (\n <>\n {isVirtual ? (\n setScrollIndex(range.startIndex)}\n initialTopMostItemIndex={\n rememberScrollPosition && scrollIndex < optionsToRender.length ? scrollIndex : 0\n }\n components={\n {\n Scroller: InternalOptionsContainer,\n } as Components\n }\n itemContent={(_index: number, option: OptionProps) => (\n handleSelect(option.id)}\n tabIndex={-1}\n color={defaultedColor}\n variant={optionsVariant}\n multi={multi}\n selected={optionsHash[option.id].isSelected}\n ref={optionItemRef}\n role=\"option\"\n {...optionItemProps}\n >\n {multi && (\n \n {optionsHash[option.id].isSelected && }\n \n )}\n {option.optionValue}\n \n )}\n />\n ) : (\n \n {optionsToRender.map(option => (\n handleSelect(option.id)}\n tabIndex={-1}\n color={defaultedColor}\n variant={optionsVariant}\n multi={multi}\n selected={optionsHash[option.id].isSelected}\n ref={optionItemRef}\n role=\"option\"\n {...optionItemProps}\n >\n {multi && (\n \n {optionsHash[option.id].isSelected && }\n \n )}\n {option.optionValue}\n \n ))}\n \n )}\n {shouldStayInView && (\n ([\n hiddenOptionsContainerInternalRef,\n hiddenOptionsContainerRef,\n ])}\n // HiddenOptionsContainer opens in the opposite direction of OptionsContainer\n isOpenedBelow={!isOpenedBelow}\n />\n )}\n \n )}\n \n );\n};\n\nDropdown.Container = Container;\nDropdown.OptionsContainer = OptionsContainer;\nDropdown.HiddenOptionsContainer = HiddenOptionsContainer;\nDropdown.OptionItem = OptionItem;\nDropdown.ValueContainer = ValueContainer;\nDropdown.ValueItem = ValueItem;\nDropdown.ValueItemTagContainer = ValueItemTagContainer;\nDropdown.Placeholder = PlaceholderContainer;\n\nexport default Dropdown;\n","import { animated, useTransition } from '@react-spring/web';\nimport React, { useCallback, useRef, useState } from 'react';\nimport styled from 'styled-components';\nimport useResizeObserver from 'use-resize-observer/polyfilled';\nimport { randomId } from '../../utils/math';\n\nimport { useAnalytics } from '../../context';\nimport colors from '../../enums/colors';\nimport { mergeRefs } from '../../utils/refs';\nimport { StyledSubcomponentType, SubcomponentPropsType } from '../commonTypes';\n\nconst Container = styled(animated.div)`\n position: relative;\n`;\n\nconst SVGContainer = styled.svg`\n pointer-events: none;\n position: absolute;\n top: 0;\n left: 0;\n`;\n\ntype Animation = { cx: string; cy: string; id: string };\ntype Transition = { r: string } & Animation;\nexport type InteractionFeedbackProps = {\n StyledContainer?: StyledSubcomponentType;\n StyledSVGContainer?: StyledSubcomponentType;\n containerProps?: SubcomponentPropsType;\n svgContainerProps?: SubcomponentPropsType;\n\n children?: React.ReactNode;\n color?: string;\n interpolationFunctions?: Record any>;\n // TODO add proper type from react-spring\n transitionProps?: any;\n containerRef?: React.RefObject;\n SVGContainerRef?: React.RefObject;\n};\n\nconst defaultInterpolationFunctions = {\n r: (r: any) => r.to((val: string) => `${Math.abs(parseFloat(val)).toFixed(1)}`),\n opacity: (opacity: any) => opacity.to((val: number) => val.toFixed(2)),\n};\nconst defaultTransitionProps = {\n from: {\n r: 0,\n opacity: 0.5,\n },\n enter: {\n r: 100,\n opacity: 0,\n },\n config: {\n mass: 90,\n tension: 1000,\n friction: 20,\n round: 1,\n clamp: false,\n },\n};\nconst InteractionFeedback = ({\n StyledContainer = Container,\n StyledSVGContainer = SVGContainer,\n containerRef,\n SVGContainerRef,\n containerProps = {},\n svgContainerProps = {},\n color = colors.primary,\n\n children,\n interpolationFunctions = defaultInterpolationFunctions,\n transitionProps = { ...defaultTransitionProps },\n}: InteractionFeedbackProps): JSX.Element => {\n const internalRef = useRef(null);\n const { ref, width = 0, height = 0 } = useResizeObserver();\n const [animations, setAnimations] = useState>([]);\n\n const transitions = useTransition(animations, {\n keys: (item: Animation) => item.id,\n onRest: (item: Transition) => setAnimations(a => a.filter(ani => ani.id === item.id)),\n ...transitionProps,\n });\n const fragment = transitions((style, item) => {\n const circleProps = Object.entries(style).reduce((acc, [key, val]) => {\n return {\n ...acc,\n [key]: interpolationFunctions[key] ? interpolationFunctions[key](val) : val,\n };\n }, {});\n return ;\n });\n\n const mouseDownHandler = useCallback(\n (e: React.MouseEvent) => {\n if (internalRef && internalRef.current) {\n e.persist();\n const boundingRect = internalRef.current.getBoundingClientRect();\n const { clientX, clientY } = e;\n const percentX = (100 * (clientX - boundingRect.left)) / boundingRect.width;\n const percentY = (100 * (clientY - boundingRect.top)) / boundingRect.height;\n\n setAnimations(a => [...a, { cx: `${percentX}%`, cy: `${percentY}%`, id: randomId(18) }]);\n }\n },\n [internalRef],\n );\n\n const handleEventWithAnalytics = useAnalytics();\n const handleMouseDown = (e: any) =>\n handleEventWithAnalytics(\n 'InteractionFeedback',\n mouseDownHandler,\n 'onMouseDown',\n e,\n containerProps,\n );\n\n return (\n ([ref, internalRef, containerRef])}\n onMouseDown={handleMouseDown}\n {...containerProps}\n >\n {children}\n \n {fragment}\n \n \n );\n};\n\nInteractionFeedback.Container = Container;\nInteractionFeedback.SVGContainer = SVGContainer;\nInteractionFeedback.defaultTransitionProps = defaultTransitionProps;\nInteractionFeedback.defaultInterpolationFunctions = defaultInterpolationFunctions;\n\nexport default InteractionFeedback;\n","import React from 'react';\nimport styled from 'styled-components';\nimport Icon from '@mdi/react';\nimport { mdiCheckBold, mdiAsterisk } from '@mdi/js';\nimport { useLabel } from 'react-aria';\nimport { StyledBaseDiv, StyledBaseLabel, StyledBaseSpan } from '../../htmlElements';\nimport { SubcomponentPropsType, StyledSubcomponentType } from '../commonTypes';\nimport { useTheme } from '../../context';\n\nexport const DefaultStyledLabel = styled(StyledBaseLabel)`\n ${({ color }: { color: string }) => {\n const { colors } = useTheme();\n const labelColor = color || colors.grayLight;\n return `\n display: inline-flex;\n color: ${labelColor};\n margin-bottom: .25em;\n font-size: .75em;\n `;\n }}\n`;\n\nexport const DefaultStyledTextContainer = styled(StyledBaseDiv)``;\n\nexport const DefaultStyledLabelContainer = styled(StyledBaseDiv)``;\n\nconst DefaultStyledIconContainer = styled(StyledBaseSpan)`\n display: inline-flex;\n margin-left: 0.25em;\n`;\n\nexport interface LabelProps {\n StyledLabelContainer?: StyledSubcomponentType;\n StyledTextContainer?: StyledSubcomponentType;\n StyledLabel?: StyledSubcomponentType;\n StyledIconContainer?: StyledSubcomponentType;\n\n labelContainerProps?: SubcomponentPropsType;\n textContainerProps?: SubcomponentPropsType;\n labelProps?: SubcomponentPropsType;\n iconContainerProps?: SubcomponentPropsType;\n\n labelContainerRef?: React.RefObject;\n textContainerRef?: React.RefObject;\n iconContainerRef?: React.RefObject;\n labelRef?: React.RefObject;\n\n labelText?: string;\n color?: string;\n isValid?: boolean;\n colorValid?: string;\n colorInvalid?: string;\n htmlFor?: string;\n isRequired?: boolean;\n children?: React.ReactNode;\n}\n\nconst Label = ({\n StyledLabelContainer = DefaultStyledLabelContainer,\n StyledTextContainer = DefaultStyledTextContainer,\n StyledLabel = DefaultStyledLabel,\n StyledIconContainer = DefaultStyledIconContainer,\n labelContainerProps = {},\n textContainerProps = {},\n labelProps = {},\n iconContainerProps = {},\n labelContainerRef,\n textContainerRef,\n iconContainerRef,\n labelRef,\n\n labelText,\n color,\n isValid,\n colorValid,\n colorInvalid,\n htmlFor = 'default',\n isRequired = false,\n children,\n}: LabelProps): JSX.Element => {\n const { colors } = useTheme();\n let shownColor: string;\n let shownIcon: string | JSX.Element;\n\n if (isValid === true) {\n shownColor = colorValid || colors.success;\n shownIcon = mdiCheckBold;\n } else if (isValid === false) {\n shownColor = colorInvalid || colors.destructive;\n shownIcon = isRequired ? mdiAsterisk : '';\n } else {\n shownColor = color || colors.grayLight;\n shownIcon = isRequired ? mdiAsterisk : '';\n }\n\n // add aria-label for accessibility if no labelText provided\n const mergedLabelProps = labelText\n ? { ...labelProps, label: labelText }\n : { ...labelProps, 'aria-label': 'label' };\n\n const { labelProps: ariaProps, fieldProps: ariaFieldProps } = useLabel(mergedLabelProps);\n // add aria props to the child component\n const childrenWithAriaProps = React.Children.map(children, child => {\n if (React.isValidElement(child)) {\n // dont overwrite any preexisting props\n return React.cloneElement(child, { ...ariaFieldProps, ...child.props });\n }\n return child;\n });\n\n return (\n \n \n \n {labelText}\n \n \n \n \n \n {/* Only render children with aria props if there is one child */}\n {React.Children.count(children) === 1 ? childrenWithAriaProps : children}\n \n );\n};\n\nLabel.LabelContainer = DefaultStyledLabelContainer;\nLabel.TextContainer = DefaultStyledTextContainer;\nLabel.Label = DefaultStyledLabel;\nLabel.IconContainer = DefaultStyledIconContainer;\n\nexport default Label;\n","import React, {\n forwardRef,\n RefObject,\n ReactNode,\n useEffect,\n useCallback,\n useImperativeHandle,\n} from 'react';\nimport styled from 'styled-components';\nimport { mdiClose } from '@mdi/js';\nimport { useSpring } from '@react-spring/web';\nimport { Portal } from 'react-portal';\nimport { transparentize } from 'polished';\n\nimport variants from '../../enums/variants';\nimport Button from '../Button/Button';\nimport { AnimatedDiv } from '../../htmlElements';\nimport { SubcomponentPropsType, StyledSubcomponentType } from '../commonTypes';\nimport { useAnalytics, useTheme } from '../../context';\n\nconst Underlay = styled(AnimatedDiv)`\n height: 100%;\n width: 100%;\n\n background-color: rgba(0, 0, 0, 0.5);\n\n position: fixed;\n top: 0;\n left: 0;\n\n z-index: 1000;\n`;\n\nconst Container = styled(AnimatedDiv)`\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n\n z-index: 1010;\n`;\n\n// Just so that the types can match a styled component\nconst CloseButton = styled(Button)``;\n\nconst CloseButtonContainer = styled(Button.Container)`\n ${({ closeButtonAttachment }: { closeButtonAttachment: string }) => {\n let distance;\n let position;\n let display = 'inline-flex'; // default display type\n\n switch (closeButtonAttachment) {\n case 'inside':\n distance = '.5rem';\n position = 'absolute';\n break;\n case 'outside':\n distance = '-2rem';\n position = 'absolute';\n break;\n case 'corner':\n distance = '1rem';\n position = 'fixed';\n break;\n case 'none':\n distance = '0rem';\n position = 'absolute';\n display = 'none';\n break;\n default:\n distance = '0rem';\n position = 'absolute';\n break;\n }\n\n return `\n position: ${position};\n top: ${distance};\n right: ${distance};\n z-index: 1011;\n border-radius: 50%;\n padding: .5rem;\n display: ${display};\n `;\n }}\n`;\n\nexport interface ModalProps {\n // TODO: Make string & StyledComponentBase<> its own type, also see about not using `any`\n StyledContainer?: StyledSubcomponentType;\n StyledUnderlay?: StyledSubcomponentType;\n StyledCloseButton?: StyledSubcomponentType;\n StyledCloseButtonContainer?: StyledSubcomponentType;\n\n containerProps?: SubcomponentPropsType;\n underlayProps?: SubcomponentPropsType;\n closeButtonProps?: SubcomponentPropsType;\n closeButtonContainerProps?: SubcomponentPropsType;\n\n containerRef?: RefObject;\n closeButtonContainerRef?: RefObject;\n underlayRef?: RefObject;\n\n animationSpringConfig?: Record;\n\n children: ReactNode;\n\n onClickOutside?: (e: MouseEvent) => void;\n onClose?: (e: MouseEvent) => void;\n\n closeButtonAttachment?: string;\n backgroundBlur?: string;\n backgroundDarkness?: number;\n style?: Record;\n}\n\nexport type ModalApi = {\n close: (evt?: any) => void;\n};\n\nconst Modal = forwardRef(\n (\n {\n StyledContainer = Container,\n StyledUnderlay = Underlay,\n StyledCloseButton = CloseButton,\n StyledCloseButtonContainer = CloseButtonContainer,\n\n containerProps = {},\n underlayProps = {},\n closeButtonProps = {},\n closeButtonContainerProps = {},\n\n containerRef,\n closeButtonContainerRef,\n underlayRef,\n\n animationSpringConfig = {},\n\n children,\n\n onClickOutside,\n onClose = () => {}, // eslint-disable-line @typescript-eslint/no-empty-function\n\n closeButtonAttachment = 'inside',\n backgroundBlur = '0.5rem',\n backgroundDarkness = 0.2,\n }: ModalProps,\n forwardedRef,\n ): JSX.Element => {\n const {\n colors,\n accessibilityPreferences: { prefersReducedMotion },\n performanceInfo: { tier: gpuTier },\n } = useTheme();\n\n const { styles: containerStyles }: { styles?: Record } = containerProps;\n const { styles: underlayStyles }: { styles?: Record } = underlayProps;\n\n const handleEventWithAnalytics = useAnalytics();\n const handleClickOutside = (e: MouseEvent) => {\n if (onClickOutside) {\n handleEventWithAnalytics('Modal', onClickOutside, 'onClickOutside', e, containerProps);\n }\n };\n const handleEsc = useCallback(\n (e: KeyboardEvent) =>\n handleEventWithAnalytics('Modal', onClickOutside, 'onEsc', e, containerProps),\n [containerProps, handleEventWithAnalytics, onClickOutside],\n );\n const handleClose = (e: MouseEvent) =>\n handleEventWithAnalytics('Modal', onClose, 'onClose', e, containerProps);\n\n const animationPrecision = gpuTier < 2 ? 0.2 : undefined;\n\n const [springStyles, spring] = useSpring(() => ({\n containerTransform: 'translate(-50%, -25%)',\n containerOpacity: 0,\n underlayBackgroundColor: 'rgba(0,0,0, 0)',\n underlayBackdropFilter: 'blur(0rem)',\n config: {\n immediate: prefersReducedMotion,\n friction: 75,\n tension: 550,\n mass: 5,\n round: animationPrecision,\n clamp: false,\n ...animationSpringConfig,\n },\n }));\n\n useEffect(() => {\n spring.start({\n config: {\n round: animationPrecision,\n },\n });\n }, [animationPrecision, spring]);\n\n useEffect(() => {\n spring.start({\n containerTransform: 'translate(-50%, -50%)',\n containerOpacity: 1,\n underlayBackgroundColor: transparentize(1 - backgroundDarkness, colors.black),\n underlayBackdropFilter: gpuTier < 2 ? 'blur(0rem)' : `blur(${backgroundBlur})`,\n });\n }, [backgroundBlur, backgroundDarkness, colors.black, gpuTier, spring]);\n\n const animateClose = useCallback(\n (\n restFunction: typeof handleClose | typeof handleClickOutside | typeof handleEsc,\n e?: any,\n ) => {\n spring.start({\n containerTransform: 'translate(-50%, -25%)',\n containerOpacity: 0,\n underlayBackgroundColor: 'rgba(0,0,0, 0)',\n underlayBackdropFilter: 'blur(0rem)',\n config: { friction: 50, clamp: true },\n onRest: () => restFunction(e),\n });\n },\n [spring],\n );\n\n useImperativeHandle(forwardedRef, () => ({\n close: evt => animateClose(handleClose, evt),\n }));\n\n const escFunction = useCallback(\n (event: KeyboardEvent) => {\n if (event.code === 'Escape') {\n animateClose(handleEsc, event);\n }\n },\n [animateClose, handleEsc],\n );\n\n useEffect(() => {\n document.addEventListener('keydown', escFunction, false);\n\n return () => {\n document.removeEventListener('keydown', escFunction, false);\n };\n }, [escFunction]);\n\n return (\n \n {closeButtonAttachment === 'corner' && (\n animateClose(handleClose, e)}\n {...closeButtonProps}\n />\n )}\n \n {children}\n {closeButtonAttachment !== 'corner' && (\n animateClose(handleClose, e)}\n {...closeButtonProps}\n />\n )}\n \n {\n if (onClickOutside) {\n animateClose(handleClickOutside, e);\n }\n }}\n ref={underlayRef}\n {...underlayProps}\n style={{\n backdropFilter: springStyles.underlayBackdropFilter,\n backgroundColor: springStyles.underlayBackgroundColor,\n ...underlayStyles,\n }}\n />\n \n );\n },\n);\n\n// Typescript doesn't like adding properties to React Forward Ref, but it still works\n\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nModal.Underlay = Underlay;\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nModal.CloseButtonContainer = CloseButtonContainer;\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nModal.Container = Container;\n\nexport default Modal;\n","import styled, { keyframes, css } from 'styled-components';\nimport { StyledBaseDiv } from '../../htmlElements';\n\n/* Keyframes for the loading bar gradient */\nexport const movingGradient = keyframes`\n 0% { background-position: 200% bottom; }\n 100% { background-position: 0% bottom; }\n`;\n\n/* Animation to scroll the gradient toward the right */\nexport const animation = css`\n ${movingGradient} 8s linear infinite;\n`;\n\n/* Styled div that represents the scroll bar\n Note: The border-radius 9999px is used to create a pill shape */\nconst Progress = styled(StyledBaseDiv)`\n ${() => css`\n background: linear-gradient(\n 45deg,\n rgba(255, 255, 255, 0.75),\n rgba(0, 0, 0, 0.75),\n rgba(255, 255, 255, 0.75),\n rgba(0, 0, 0, 0.75),\n rgba(255, 255, 255, 0.75)\n )\n repeat;\n background-size: 400% 100%;\n width: 6rem;\n height: 16px;\n border-radius: 9999px;\n animation: ${animation};\n line-height: 0;\n `}\n`;\n\nexport default Progress;\n","import React, { useEffect, useRef, useMemo, useState, useCallback } from 'react';\nimport styled from 'styled-components';\nimport debounce from 'lodash/debounce';\n\nimport { useSpring, a } from '@react-spring/web';\nimport { useDrag } from 'react-use-gesture';\nimport useMeasure from 'react-use-measure';\nimport { ResizeObserver } from '@juggle/resize-observer';\n\nimport fonts from '../../enums/fonts';\nimport { clamp } from '../../utils/math';\nimport { mergeRefs } from '../../utils/refs';\n\nimport {\n ValueProp,\n ContainerProps,\n HandleProps,\n HandleLabelProps,\n RangeSliderProps,\n DomainLabelProps,\n} from './types';\nimport { useAccessibilityPreferences, useAnalytics, useTheme } from '../../context';\nimport { StyledBaseDiv } from '../../htmlElements';\n\nexport const Container = styled.div`\n ${({ showDomainLabels, hasHandleLabels, disabled, beingDragged = false }: ContainerProps) => `\n display: flex;\n position: relative;\n height: 1rem;\n width: 100%;\n\n ${fonts.body}\n\n user-select: none;\n\n ${beingDragged ? 'cursor: grabbing;' : ''}\n\n transition: filter .1s;\n\n ${\n disabled\n ? `\n filter: grayscale(1) contrast(.5) brightness(1.2);\n pointer-events: none;\n `\n : ''\n }\n\n \n\n ${\n showDomainLabels\n ? `\n top: -.5rem;\n margin-top: 1rem;\n `\n : ''\n };\n\n ${\n hasHandleLabels\n ? `\n top: -.75rem;\n margin-top: 1.5rem;\n `\n : ''\n };\n `}\n`;\n\nexport const DragHandle = styled(a.div)`\n ${({ $beingDragged = false, color, $readonly }: HandleProps) => {\n const { colors } = useTheme();\n const handleColor = color || colors.primary;\n return `\n position: absolute;\n \n width: 1rem;\n height: 1rem;\n align-self: center;\n left: -.5rem;\n\n background-color: ${handleColor};\n color: ${handleColor};\n border: .125rem solid ${colors.background};\n border-radius: 50%;\n \n touch-action: none;\n filter: url(#blur);\n cursor: ${$beingDragged ? 'grabbing' : 'grab'};\n cursor: ${$readonly ? 'default' : ''};\n z-index: 2;\n `;\n }}\n`;\n\nexport const HandleLabel = styled.div`\n ${({ velocity = 0 }: HandleLabelProps) => {\n const { colors } = useTheme();\n return `\n position: absolute;\n bottom: 100%;\n left: 50%;\n transform: translateX(-50%) rotate(${clamp(velocity, -45, 45)}deg);\n background-color: ${colors.background};\n border-radius: 4px;\n font-weight: bold;\n white-space: nowrap;\n pointer-events: none;\n z-index: 2;\n `;\n }}\n`;\n\nexport const SlideRail = styled.div`\n ${() => {\n const { colors } = useTheme();\n return `\n position: absolute;\n width: 100%;\n height: 0.25rem;\n\n overflow: hidden;\n align-self: center;\n\n border-radius: 0.125rem;\n background-color: ${colors.grayXlight};\n `;\n }}\n`;\n\nexport const SelectedRangeRail = styled(a.div)`\n ${() => {\n const { colors } = useTheme(); // TODO: don't force the color to be primary\n return `\n position: absolute;\n top: 0%;\n height: 100%;\n\n background-color: ${colors.primary};\n `;\n }}\n`;\n\nexport const DomainLabel = styled.div`\n ${({ position }: DomainLabelProps) => {\n const { colors } = useTheme();\n return `\n position: absolute;\n bottom: 100%;\n ${position}: 0rem;\n color: ${colors.grayMedium};\n font-size: .5rem;\n `;\n }}\n`;\n\nexport const Marker = styled(StyledBaseDiv)`\n ${({ sliderPosition = 0 }) => {\n const { colors } = useTheme();\n return `\n position: absolute;\n text-align: center;\n display: flex;\n justify-content: center;\n height: 1rem;\n width: 2px;\n left: ${sliderPosition}px;\n background-color: ${colors.grayLight};\n `;\n }}\n`;\nexport const MarkerLabel = styled(StyledBaseDiv)`\n ${({ color }) => {\n const { colors } = useTheme();\n return `\n position: absolute;\n bottom: 100%;\n white-space: nowrap;\n font-size: .375rem;\n color: ${color || colors.grayLight};\n `;\n }}\n`;\n\nexport const RangeSlider = ({\n StyledContainer = Container,\n StyledDragHandle = DragHandle,\n StyledHandleLabel = HandleLabel,\n StyledSlideRail = SlideRail,\n StyledSelectedRangeRail = SelectedRangeRail,\n StyledDomainLabel = DomainLabel,\n StyledMarker = Marker,\n StyledMarkerLabel = MarkerLabel,\n\n containerProps = {},\n dragHandleProps = {},\n handleLabelProps = {},\n slideRailProps = {},\n selectedRangeRailProps = {},\n domainLabelProps = {},\n markerProps = {},\n markerLabelProps = {},\n\n containerRef,\n dragHandleRef,\n slideRailRef,\n handleLabelRef,\n selectedRangeRailRef,\n domainLabelRef,\n markerRef,\n markerLabelRef,\n\n showDomainLabels = true,\n showSelectedRange = true,\n showHandleLabels = true,\n\n springOnRelease,\n animated = true,\n\n debounceInterval = 8,\n onDrag,\n onChange,\n onDebounceChange,\n onRelease,\n\n disabled = false,\n readonly = false,\n min,\n max,\n values,\n markers = [],\n testId,\n dragHandleAttachment = 'mouse',\n}: RangeSliderProps): JSX.Element | null => {\n if (onDrag) {\n // eslint-disable-next-line no-console\n console.warn(\n 'From FoundryUI RangerSlider: onDrag callback is deprecated. Instead, use onChange or onDebounceChange.',\n );\n }\n if (springOnRelease !== undefined) {\n animated = springOnRelease;\n // eslint-disable-next-line no-console\n console.warn(\n 'From FoundryUI RangeSlider: springOnRelease is deprecated. Instead, use animated.',\n );\n }\n\n const { prefersReducedMotion } = useAccessibilityPreferences();\n const isInitializing = useRef(true);\n\n const debouncedOnChange = useRef(\n debounce(newVal => {\n if (onDrag) onDrag(newVal);\n if (onDebounceChange) onDebounceChange(newVal);\n }, debounceInterval),\n ).current;\n\n const debouncedOnRelease = useRef(\n // wait an extra ms. onRelease should be called after onChange\n debounce(newVal => onRelease && onRelease(newVal), debounceInterval + 1),\n ).current;\n\n /** Convert passed-in `number` values into `ValueProps` */\n const processVal = (val: number | ValueProp): ValueProp =>\n typeof val === 'number' ? { value: val, label: undefined, color: undefined } : val;\n\n const processedValues: Array = useMemo(\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore expression not callable\n () => values?.map(processVal) ?? [],\n [values],\n );\n\n const processedMarkers: Array = useMemo(\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore expression not callable\n () => markers?.map(processVal) ?? [],\n [markers],\n );\n\n const hasHandleLabels = useMemo(\n () => processedValues?.some(val => val.label !== null && val.label !== undefined),\n [processedValues],\n );\n\n const domain = max - min;\n\n const handleEventWithAnalytics = useAnalytics();\n\n const handleDrag = useCallback(\n (newVal: number) => {\n if (readonly) return;\n\n handleEventWithAnalytics(\n 'RangeSlider',\n () => {\n if (onChange) onChange(newVal);\n debouncedOnChange(newVal);\n },\n 'onDrag',\n { type: 'onDrag', newVal },\n containerProps,\n );\n },\n\n [readonly, handleEventWithAnalytics, containerProps, onChange, debouncedOnChange],\n );\n\n // set the drag value asynchronously at a lower frequency for better performance\n const valueBuffer = useRef(0);\n\n // keep track of which handle is being dragged (if any)\n const [draggedHandle, setDraggedHandle] = useState(-1);\n // get the bounding box of the slider\n\n const [ref, sliderBounds] = useMeasure({ polyfill: ResizeObserver });\n\n const pixelPositions = processedValues.map(val => {\n return (val.value / domain) * sliderBounds.width;\n });\n\n // get the x offset and an animation setter function\n const [{ dragHandleX }, springRef] = useSpring(() => ({\n to: { dragHandleX: 0 },\n friction: 13,\n tension: 100,\n }));\n\n const handleSlideRailClick = useCallback(\n (e: React.MouseEvent) => {\n // Avoiding using another ref here to reduce overhead\n const pixelPosition = e.clientX;\n const positionOnRail = pixelPosition - sliderBounds.left;\n const railPositionRatio = positionOnRail / sliderBounds.width;\n const clickedValue = railPositionRatio * domain;\n\n // variables to find the closest handle\n let closestVal: number | ValueProp | undefined;\n let smallestDifference: number;\n\n // Find the closest handle\n processedValues.forEach(val => {\n const finalVal = typeof val === 'number' ? val : val.value;\n // Get the absolute value of the difference\n const difference = Math.abs(clickedValue - finalVal);\n if (smallestDifference !== undefined && difference < smallestDifference) {\n closestVal = val;\n smallestDifference = difference;\n } else if (smallestDifference === undefined) {\n closestVal = val;\n smallestDifference = difference;\n }\n });\n\n if (closestVal) {\n if (onDrag) onDrag(clickedValue);\n if (onChange) onChange(clickedValue);\n if (onDebounceChange) onDebounceChange(clickedValue);\n if (onRelease) onRelease(clickedValue);\n\n if (slideRailProps.onMouseDown && typeof slideRailProps.onMouseDown === 'function') {\n e.persist();\n slideRailProps.onMouseDown(e);\n }\n }\n },\n [\n slideRailProps,\n sliderBounds,\n onChange,\n onDebounceChange,\n onRelease,\n onDrag,\n domain,\n processedValues,\n ],\n );\n\n const handleSlideRailClickWithAnalytics = (e: any) => {\n if (readonly) return;\n handleEventWithAnalytics('RangeSlider', handleSlideRailClick, 'onClick', e, containerProps);\n };\n\n const bind = useDrag(\n ({ down: isDragging, movement: [deltaX] }) => {\n if (readonly) return;\n\n const delta = (deltaX / sliderBounds.width) * domain;\n valueBuffer.current = clamp(delta, min, max);\n setDraggedHandle(isDragging ? 0 : -1);\n handleDrag(valueBuffer.current);\n\n if (dragHandleAttachment === 'mouse') {\n if (isDragging) {\n // constantly follow mouse during drag\n springRef.start({\n dragHandleX: deltaX,\n immediate: true,\n });\n } else {\n // after drag release, spring to value\n springRef.start({\n dragHandleX: pixelPositions[0],\n immediate: prefersReducedMotion || !animated,\n });\n }\n }\n },\n {\n initial: [(pixelPositions ?? [0])[0], 0],\n threshold: 1,\n bounds: {\n left: 0,\n right: sliderBounds.width + 4,\n top: -8,\n bottom: sliderBounds.height / 2 + 8,\n },\n rubberband: 0.1,\n },\n );\n\n // Once sliderBounds are read, set initial position\n useEffect(() => {\n if (isInitializing.current && sliderBounds.width) {\n springRef.start({\n dragHandleX: pixelPositions[0],\n immediate: true,\n onResolve: () => {\n isInitializing.current = false;\n },\n });\n }\n }, [springRef, sliderBounds, isInitializing, pixelPositions]);\n\n // For snap to value, listen to changes in value and always animate to value. Also listens to clicks\n useEffect(() => {\n if (dragHandleAttachment === 'value' || draggedHandle === -1) {\n springRef.start({\n dragHandleX: pixelPositions[0],\n immediate: prefersReducedMotion || !animated,\n });\n }\n }, [\n dragHandleAttachment,\n springRef,\n pixelPositions,\n prefersReducedMotion,\n sliderBounds,\n animated,\n draggedHandle,\n ]);\n\n // Dispose of debounce timers\n useEffect(() => {\n return () => {\n debouncedOnChange.cancel();\n debouncedOnRelease.cancel();\n };\n }, [debouncedOnChange, debouncedOnRelease]);\n\n return (\n \n ([slideRailRef, ref])}\n {...slideRailProps}\n onMouseDown={handleSlideRailClickWithAnalytics}\n >\n {showSelectedRange && values && (\n \n )}\n \n\n {showDomainLabels && (\n <>\n \n {min}\n \n \n {max}\n \n \n )}\n\n {processedValues.map(({ value, color, label }, i) => (\n debouncedOnRelease(value)}\n $readonly={readonly}\n {...dragHandleProps}\n >\n {showHandleLabels && (\n \n {label}\n \n )}\n \n ))}\n\n {processedMarkers.map(({ value, color, label }) => (\n \n \n {label}\n \n \n ))}\n \n );\n};\n\nRangeSlider.Container = Container;\nRangeSlider.DragHandle = DragHandle;\nRangeSlider.HandleLabel = HandleLabel;\nRangeSlider.SlideRail = SlideRail;\nRangeSlider.SelectedRangeRail = SelectedRangeRail;\nRangeSlider.DomainLabel = DomainLabel;\nRangeSlider.Marker = Marker;\nRangeSlider.MarkerLabel = MarkerLabel;\n\nexport default RangeSlider;\n","import React from 'react';\nimport { parseToRgb } from 'polished';\nimport styled, { keyframes, css } from 'styled-components';\n\nimport { useAccessibilityPreferences, useTheme } from '../../context';\nimport { SubcomponentPropsType, StyledSubcomponentType } from '../commonTypes';\nimport { StyledBaseDiv } from '../../htmlElements';\n\nexport const movingGradient = keyframes`\n 0% { background-position: 0vw bottom; }\n 100% { background-position: 100vw bottom; }\n`;\n\nexport const animation = css`\n ${movingGradient} 2s linear infinite;\n`;\n\nconst SkeletonShimmer = styled(StyledBaseDiv)`\n ${({ isLoading, color, animatedShimmer }) => {\n const rgb = parseToRgb(color);\n\n return css`\n opacity: ${isLoading ? 1 : 0};\n\n background: linear-gradient(\n 90deg,\n rgba(${Object.values(rgb).join(', ')}, 0.75),\n rgba(${Object.values(rgb).join(', ')}, 0.25),\n rgba(${Object.values(rgb).join(', ')}, 0.75)\n )\n repeat;\n\n color: transparent;\n user-select: none;\n pointer-events: none;\n\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n\n background-size: 100vw 100vh;\n background-attachment: fixed;\n border-radius: 0.25rem;\n animation: ${animatedShimmer ? animation : 'none'};\n `;\n }}\n`;\n\nconst SkeletonContainer = styled(StyledBaseDiv)`\n ${({ isLoading }: { isLoading: boolean }) => `\n display: block;\n\n position: relative;\n & > * {\n transition: opacity .2s;\n }\n\n ${\n isLoading\n ? `\n color: transparent !important;\n & > *:not(${SkeletonShimmer}) {\n opacity: 0 !important;\n user-select: none;\n pointer-events: none;\n }\n `\n : ''\n }\n `}\n`;\n\nexport type SkeletonProps = {\n StyledContainer?: StyledSubcomponentType;\n StyledShimmer?: StyledSubcomponentType;\n\n containerProps?: SubcomponentPropsType;\n shimmerProps?: SubcomponentPropsType;\n\n containerRef?: React.RefObject;\n shimmerRef?: React.RefObject;\n\n children?: React.ReactNode;\n color?: string;\n isLoading?: boolean;\n animatedShimmer?: boolean;\n};\n\nconst Skeleton = ({\n StyledContainer = SkeletonContainer,\n StyledShimmer = SkeletonShimmer,\n containerProps,\n shimmerProps,\n containerRef,\n shimmerRef,\n children,\n color,\n isLoading = false,\n animatedShimmer = true,\n}: SkeletonProps): JSX.Element | null => {\n const { colors } = useTheme();\n const { prefersReducedMotion } = useAccessibilityPreferences();\n\n const finalColor = color || colors.grayLight;\n const finalAnimationPreference = !prefersReducedMotion && animatedShimmer;\n\n return (\n \n {children}\n \n \n );\n};\n\nSkeleton.Container = SkeletonContainer;\nSkeleton.Shimmer = SkeletonShimmer;\n\nexport default Skeleton;\n","import React, { useEffect, useMemo } from 'react';\nimport styled from 'styled-components';\nimport { animated, useSpring } from '@react-spring/web';\nimport { Portal } from 'react-portal';\n\nimport { SubcomponentPropsType, StyledSubcomponentType } from '../commonTypes';\nimport { useScrollObserver, useWindowSizeObserver } from '../../utils/hooks';\nimport { useTheme, useAnalytics } from '../../context';\nimport { AnimatedDiv } from '../../htmlElements';\n\nconst SpotlightContainer = styled(AnimatedDiv)`\n height: 100%;\n width: 100%;\n\n position: fixed;\n top: 0;\n left: 0;\n contain: strict;\n clip-path: url(#foundryMask);\n z-index: 200;\n`;\n\nconst BackgroundBlurrer = styled(AnimatedDiv)`\n position: fixed;\n z-index: -1;\n`;\n\nconst Annotation = styled(AnimatedDiv)`\n display: inline-block;\n position: fixed;\n top: 0;\n left: 0;\n padding-bottom: 1rem;\n\n z-index: 201;\n\n width: fit-content;\n max-width: 50vw;\n`;\n\nexport enum SpotlightShapes {\n circular = 'circular',\n round = 'round',\n box = 'box',\n 'roundedBox' = 'rounded box',\n}\n\nexport type SpotlightProps = {\n StyledContainer?: StyledSubcomponentType;\n containerProps?: SubcomponentPropsType;\n containerRef?: React.RefObject;\n\n StyledAnnotation?: StyledSubcomponentType;\n annotationProps?: SubcomponentPropsType;\n annotationRef?: React.RefObject;\n\n children?: React.ReactNode;\n targetElement?: HTMLElement;\n backgroundBlur?: string;\n backgroundDarkness?: number;\n shape?: SpotlightShapes;\n cornerRadius?: number;\n padding?: number;\n onClick?: (e: React.MouseEvent) => void;\n animateTargetChanges?: boolean;\n // onAnimationEnd?: ControllerProps['onRest'];\n onAnimationEnd?: () => void;\n animationSpringConfig?: Record;\n resizeUpdateInterval?: number;\n scrollUpdateInterval?: number;\n};\n\nconst Spotlight = ({\n StyledContainer = SpotlightContainer,\n containerProps,\n containerRef,\n\n StyledAnnotation = Annotation,\n annotationProps,\n annotationRef,\n\n children,\n targetElement,\n backgroundBlur = '0.25rem',\n backgroundDarkness = 0.3,\n shape = SpotlightShapes.circular,\n cornerRadius = 12,\n padding = 12, // 8px === .5rem\n onClick,\n animateTargetChanges = true,\n onAnimationEnd,\n animationSpringConfig,\n resizeUpdateInterval = 0,\n scrollUpdateInterval = 0,\n}: SpotlightProps): JSX.Element | null => {\n const handleEventWithAnalytics = useAnalytics();\n const {\n width: windowWidth,\n height: windowHeight,\n isResizing,\n } = useWindowSizeObserver(resizeUpdateInterval);\n const { scrollY, isScrolling } = useScrollObserver(scrollUpdateInterval);\n const {\n performanceInfo: { tier: gpuTier },\n accessibilityPreferences: { prefersReducedMotion },\n } = useTheme();\n\n const rect = useMemo>(() => {\n const defaultVal = {\n x: windowWidth / 2,\n y: windowHeight / 2,\n width: 0,\n height: 0,\n bottom: windowHeight / 2,\n left: windowWidth / 2,\n top: windowHeight / 2,\n right: windowWidth / 2,\n };\n\n if (targetElement) {\n const bounds = targetElement?.getBoundingClientRect();\n\n if (shape === SpotlightShapes.circular) {\n if (bounds.width > bounds.height) {\n const newHeight = bounds.width;\n bounds.y -= (newHeight - bounds.height) * 0.5;\n bounds.height = newHeight;\n } else if (bounds.width < bounds.height) {\n const newWidth = bounds.height;\n bounds.x -= (newWidth - bounds.width) / 2;\n bounds.width = newWidth;\n }\n }\n\n bounds.x -= padding;\n bounds.y -= padding;\n bounds.width += padding * 2;\n bounds.height += padding * 2;\n return bounds;\n }\n return defaultVal;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [targetElement, padding, windowWidth, windowHeight, shape, scrollY]);\n\n const radii = [Math.min(cornerRadius, rect.width / 2), Math.min(cornerRadius, rect.height / 2)];\n if (shape === SpotlightShapes.round) {\n radii[0] = rect.width / 2;\n radii[1] = rect.height / 2;\n } else if (shape === SpotlightShapes.box) {\n radii[0] = 0;\n radii[1] = 0;\n }\n\n const outerRectPath = `M 0 0 h${windowWidth} v${windowHeight} h-${windowWidth}`;\n const innerShapePath = `\n M ${rect.x} ${rect.y + radii[1]}\n Q ${rect.x} ${rect.y}, ${rect.x + radii[0]} ${rect.y}\n L ${rect.x + rect.width - radii[0]} ${rect.y}\n Q ${rect.x + rect.width} ${rect.y}, ${rect.x + rect.width} ${rect.y + radii[1]}\n L ${rect.x + rect.width} ${rect.y + rect.height - radii[1]}\n Q ${rect.x + rect.width} ${rect.y + rect.height}, ${rect.x + rect.width - radii[0]} ${\n rect.y + rect.height\n }\n L ${rect.x + radii[0]} ${rect.y + rect.height}\n Q ${rect.x} ${rect.y + rect.height}, ${rect.x} ${rect.y + rect.height - radii[1]}\n L ${rect.x} ${rect.y + radii[1]}\n `;\n\n const radius = Math.max(rect.width, rect.height) / 2;\n const circularPath = `${outerRectPath} \n M ${rect.x} ${rect.y + rect.height / 2}\n A ${radius}, ${radius}, 0, 1, 1, ${rect.x} ${rect.y + rect.height / 2 + 1}\n L ${rect.x} ${rect.y + rect.height / 2}\n `;\n const finalRectangularPath = `${outerRectPath} ${innerShapePath}`;\n\n const [\n {\n containerFilter,\n containerBackgroundColor,\n lightPath,\n circularLightPath,\n\n annotationTransform,\n\n topBlurHeight,\n topBlurWidth,\n bottomBlurY,\n bottomBlurHeight,\n bottomBlurWidth,\n leftBlurY,\n leftBlurHeight,\n leftBlurWidth,\n rightBlurY,\n rightBlurHeight,\n rightBlurWidth,\n },\n spring,\n ] = useSpring(() => ({\n containerOpacity: 0,\n containerFilter: 'blur(0rem)',\n containerBackgroundColor: 'rgba(0,0,0,0)',\n\n lightPath: finalRectangularPath,\n circularLightPath: circularPath,\n\n annotationTransform: `translate(${rect.x}px, ${rect.y}px) translate(0%, -100%)`,\n\n topBlurWidth: windowWidth,\n topBlurHeight: rect.y - 1,\n\n bottomBlurY: rect.bottom,\n bottomBlurWidth: windowWidth,\n bottomBlurHeight: windowHeight - rect.bottom - 1,\n\n leftBlurY: rect.y,\n leftBlurWidth: rect.x,\n leftBlurHeight: rect.height + 2,\n\n rightBlurY: rect.y,\n rightBlurWidth: windowWidth - rect.right,\n rightBlurHeight: rect.height + 2,\n config: {\n immediate: !animateTargetChanges || prefersReducedMotion || isScrolling || isResizing,\n round: gpuTier < 2 ? 1 : undefined,\n ...animationSpringConfig,\n },\n onRest: onAnimationEnd,\n }));\n\n useEffect(() => {\n spring.start(() => ({\n containerOpacity: 1,\n containerFilter: gpuTier < 2 ? 'blur(0rem)' : `blur(${backgroundBlur})`,\n containerBackgroundColor: `rgba(0,0,0,${1 - backgroundDarkness})`,\n\n lightPath: finalRectangularPath,\n circularLightPath: circularPath,\n\n annotationTransform: `translate(${rect.x}px, ${rect.y}px) translate(0%, -100%)`,\n\n topBlurWidth: windowWidth,\n topBlurHeight: rect.y - 1,\n\n bottomBlurY: rect.bottom,\n bottomBlurWidth: windowWidth,\n bottomBlurHeight: windowHeight - rect.bottom - 1,\n\n leftBlurY: rect.y,\n leftBlurWidth: rect.x,\n leftBlurHeight: rect.height + 2,\n\n rightBlurY: rect.y,\n rightBlurWidth: windowWidth - rect.right,\n rightBlurHeight: rect.height + 2,\n\n onRest: onAnimationEnd,\n }));\n }, [\n targetElement,\n shape,\n backgroundBlur,\n backgroundDarkness,\n padding,\n cornerRadius,\n windowWidth,\n windowHeight,\n isScrolling,\n isResizing,\n spring,\n finalRectangularPath,\n circularPath,\n rect.x,\n rect.y,\n rect.bottom,\n rect.height,\n rect.right,\n animateTargetChanges,\n onAnimationEnd,\n gpuTier,\n ]);\n\n const handleClick = (evt: React.MouseEvent) => {\n handleEventWithAnalytics('Spotlight', onClick, 'onClick', evt, containerProps);\n };\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {children}\n \n \n );\n};\n\nSpotlight.Container = SpotlightContainer;\nSpotlight.Annotation = Annotation;\nSpotlight.SpotlightShapes = SpotlightShapes;\n\nexport default Spotlight;\n","import React, { useEffect, useState } from 'react';\nimport styled, { css } from 'styled-components';\nimport useResizeObserver from 'use-resize-observer/polyfilled';\nimport { mdiArrowDown, mdiChevronDown, mdiChevronRight, mdiChevronUp } from '@mdi/js';\nimport Icon from '@mdi/react';\nimport {\n StyledBaseDiv,\n StyledBaseSpan,\n StyledBaseTable,\n StyledBaseTD,\n StyledBaseTH,\n StyledBaseTR,\n} from '../../htmlElements';\nimport {\n CellOptions,\n Column,\n InternalExpansionIconProps,\n RowEntry,\n RowProps,\n SortDirection,\n SortState,\n TableProps,\n} from './types';\nimport { useAnalytics, useTheme } from '../../context';\nimport { mergeRefs } from '../../utils/refs';\n\n/** Start of styled components */\n\nconst StyledExpansionIconSpan = styled(StyledBaseSpan)`\n cursor: pointer;\n`;\n\nexport const TableContainer = styled(StyledBaseTable)`\n ${({ reachedMinWidth }: { reachedMinWidth?: boolean }) => {\n const { colors } = useTheme();\n return css`\n width: ${reachedMinWidth ? '100%' : 'auto'};\n background-color: ${colors.background};\n border-collapse: collapse;\n\n border-radius: 8px;\n overflow: hidden;\n `;\n }}\n`;\n\nexport const Header = styled(StyledBaseTR)`\n ${({ columnGap, columnWidths }: RowProps) => {\n const { colors } = useTheme();\n return css`\n display: grid;\n grid-template-columns: ${columnWidths};\n padding: 0em 2em;\n column-gap: ${columnGap};\n user-select: none;\n\n background-color: ${colors.primary};\n color: white;\n `;\n }}\n`;\n\nexport const HeaderCell = styled(StyledBaseTH)`\n ${({ sortable }: { sortable: boolean }) => css`\n display: flex;\n flex-flow: row;\n cursor: pointer;\n padding: 1em 0em 1em 1em;\n margin-left: -1em;\n\n transition: background-color 0.5s;\n\n ${sortable ? '' : 'pointer-events: none;'}\n\n &:hover {\n background-color: rgba(255, 255, 255, 0.2);\n }\n `}\n`;\n\nexport const Footer = styled(StyledBaseTR)`\n ${({ columnGap, columnWidths }: RowProps) => {\n const { colors } = useTheme();\n return css`\n display: grid;\n grid-template-columns: ${columnWidths};\n padding: 0em 2em;\n column-gap: ${columnGap};\n user-select: none;\n\n background-color: ${colors.grayXlight};\n color: ${colors.black};\n `;\n }}\n`;\n\nexport const FooterCell = styled(StyledBaseTH)`\n display: flex;\n flex-flow: row;\n cursor: pointer;\n padding: 1em 0em 1em 1em;\n margin-left: -1em;\n\n transition: background-color 0.5s;\n &:hover {\n background-color: rgba(255, 255, 255, 0.2);\n }\n`;\n\nexport const ResponsiveHeaderCell = styled(StyledBaseSpan)`\n ${({ sortable }: { sortable: boolean }) => {\n const { colors } = useTheme();\n return css`\n display: block;\n word-break: break-word;\n hyphens: auto;\n color: ${colors.primary};\n user-select: none;\n padding: 0.5em;\n cursor: pointer;\n margin-right: 0.5em;\n background-color: rgba(0, 0, 0, 0.05);\n border-radius: 0.5rem;\n ${sortable ? '' : 'pointer-events: none;'}\n `;\n }}\n`;\n\nexport const Row = styled(StyledBaseTR)`\n ${({ columnGap, columnWidths, reachedMinWidth, isCollapsed = false }: RowProps) => {\n const { colors } = useTheme();\n return css`\n display: grid;\n grid-template-columns: ${reachedMinWidth ? '100%' : columnWidths};\n padding: ${reachedMinWidth ? '1em' : '0em'} 2em;\n row-gap: 0.5em;\n column-gap: ${columnGap};\n position: relative;\n background-color: ${colors.background};\n ${isCollapsed ? 'height: 0px;' : ''}\n\n &:not(:last-child) {\n border-bottom: 1px solid rgb(211, 214, 215);\n }\n\n &:before {\n content: '';\n z-index: 0;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.2);\n opacity: 0;\n transition: opacity 0.3s;\n\n pointer-events: none;\n }\n &:hover:before {\n opacity: 0.3;\n }\n `;\n }}\n`;\n\nexport const GroupRow = styled(Row)`\n ${() => {\n const { colors } = useTheme();\n return `\n background-color: ${colors.grayXlight};\n `;\n }}\n`;\n\nexport const Cell = styled(StyledBaseTD)`\n display: block;\n word-break: break-word;\n hyphens: auto;\n width: unset;\n padding: 0.5em 0;\n`;\n\n/** Accepts the `$direction` prop of type `SortDirection` */\nexport const SortIcon = styled(Icon)`\n ${({ $direction }: { $direction?: SortDirection | boolean | null }) => {\n if (typeof $direction === 'boolean') {\n // eslint-disable-next-line no-console\n console.warn(\n 'From FoundryUI Table: Passing a boolean to the `direction` prop on `SortIcon` is deprecated. Use the `Table.SortDirection` enum instead.',\n );\n }\n return css`\n margin-left: 1em;\n fill: white;\n width: 1em;\n transition: transform 0.2s, opacity 0.5s;\n opacity: ${$direction === null || $direction === SortDirection.noSort ? 0 : 1};\n transform: rotate(\n ${$direction === true || $direction === SortDirection.ascending ? 0 : 180}deg\n );\n `;\n }};\n`;\n\nconst CellContainer = styled(StyledBaseDiv)`\n display: flex;\n padding: 0.5em 0;\n`;\n\n/** Start of variables */\n\nconst defaultCollapsed: Record = {};\n\n// Default expansion column added if there isn't one\nconst collapsedExpandedIconColumn = {\n name: '',\n sortable: false,\n width: '1em',\n};\n\n// Keyboard listener required for a11y on the clickable span\nconst onKeyPress = (evt: React.KeyboardEvent) => {\n if (evt.key === 'Enter' || evt.key === ' ') {\n evt.preventDefault();\n (evt.target as any).click();\n }\n};\n\n// Supporting component used for the collapse icon by default in the Table\nconst ExpansionIcon: React.FunctionComponent = ({\n isCollapsed,\n groupHeaderPosition,\n onClick,\n}: InternalExpansionIconProps) => {\n const expanded = groupHeaderPosition === 'above' ? mdiChevronDown : mdiChevronUp;\n const path = isCollapsed ? mdiChevronRight : expanded;\n\n const handleEventWithAnalytics = useAnalytics();\n\n const handleClick = (e: any) =>\n handleEventWithAnalytics('ExpansionIcon', onClick, isCollapsed ? 'expand' : 'collapse', e, {\n name: 'ExpansionIcon',\n });\n\n return (\n \n \n \n );\n};\n\nexport const ExpansionIconColumnName = '__EXPANSION_COLUMN__';\n\n// TODO: Add the table width observer to a container which fills the area, so the table can grow\n// once there is enough room for it to do so (if the table itself isn't full width)\n// TODO: Add window width media query to complement the table width media query API\n\nconst Table = ({\n columnGap = '1em',\n columns,\n areGroupsCollapsible = false,\n data = [],\n defaultSort = { sortedColumnKey: undefined, direction: SortDirection.noSort },\n groupHeaderPosition = 'above',\n expansionIconComponent,\n minWidthBreakpoint = 640,\n sortGroups = false,\n\n StyledCell = Cell,\n StyledContainer = TableContainer,\n StyledGroupLabelRow = GroupRow,\n StyledHeader = Header,\n StyledHeaderCell = HeaderCell,\n StyledResponsiveHeaderCell = ResponsiveHeaderCell,\n StyledRow = Row,\n StyledFooter = Footer,\n StyledFooterCell = FooterCell,\n StyledCellContainer = CellContainer,\n\n cellProps = {},\n containerProps = {},\n groupLabelRowProps = {},\n headerProps = {},\n headerCellProps = {},\n responsiveHeaderCellProps = {},\n rowProps = {},\n\n containerRef,\n groupLabelRowRef,\n headerRef,\n}: TableProps): JSX.Element => {\n // Convert defaultSort argument if provided in the deprecated form [key, bool]\n if (Array.isArray(defaultSort)) {\n // eslint-disable-next-line no-console\n console.warn(\n 'From FoundryUI Table: Passing `defaultSort` prop as type [string, boolean] is deprecated. Instead, pass an argument of type `Table.SortState`.',\n );\n let direction: SortDirection;\n\n if (defaultSort[0] === '') {\n direction = SortDirection.noSort;\n } else {\n direction = defaultSort[1] ? SortDirection.ascending : SortDirection.descending;\n }\n defaultSort = {\n direction,\n sortedColumnKey: defaultSort[0],\n };\n }\n\n const [sortedData, setSortedData] = useState(data);\n const [sortState, setSortState] = useState(defaultSort);\n const [collapsedGroups, setCollapsedGroups] = useState(defaultCollapsed);\n const { ref, width = Infinity } = useResizeObserver({ box: 'border-box' });\n\n const usingGroups: boolean = data && data.length > 0 && Array.isArray(data[0]);\n const copiedColumns = { ...columns }; // Shallow copy so not to manipulate props\n if (areGroupsCollapsible && !copiedColumns[ExpansionIconColumnName]) {\n copiedColumns[ExpansionIconColumnName] = collapsedExpandedIconColumn;\n }\n\n // this builds the string from the columns\n const columnWidths = Object.values(copiedColumns)\n .map((col: Column) => {\n if (col.minTableWidth && width <= col.minTableWidth) {\n return '0px';\n }\n return col.width || '1fr';\n })\n .join(' ');\n\n /**\n * Toggles a group's collapse state\n * @param key\n */\n const toggleGroupCollapse = (key: string) => {\n const group = collapsedGroups[key];\n\n // Make a copy of the dictionary-like object. Because this object\n // doesn't have nested objects, a shallow copy is fine\n const temp = { ...collapsedGroups };\n if (group) {\n delete temp[key];\n } else {\n temp[key] = key;\n }\n\n setCollapsedGroups(temp);\n };\n\n /**\n * A compare function that returns a comparison integer (1 or -1).\n * Used to compare the values at one column key across two different rows when sorting.\n */\n const compareEntries = (\n entry1: any,\n entry2: any,\n column: Column,\n sortDirection: SortDirection,\n ) => {\n // If this column has a sort custom sort function, use it.\n if (column && Object.prototype.hasOwnProperty.call(column, 'sortFunction')) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore Cannot invoke an object which is possibly 'undefined'.ts(2722)\n const customComparison = column.sortFunction(entry1, entry2);\n if (sortDirection === SortDirection.ascending) {\n return customComparison ? -1 : 1;\n }\n return customComparison ? 1 : -1;\n }\n\n // No sort function, use default comparison operator.\n const comparison =\n sortDirection === SortDirection.ascending ? entry1 < entry2 : entry1 > entry2;\n return comparison ? -1 : 1;\n };\n\n /**\n * Sorts the data in the table. If the table is using groups, group contents are sorted.\n * If the group order is chosen to be sorted as well, the group contents are sorted, followed\n * by the sorting of the groups based on the first element in the group\n * @param key\n * @param newDirection\n */\n const onSort = ({ sortedColumnKey: key, direction: newDirection }: SortState) => {\n setSortState({ sortedColumnKey: key, direction: newDirection });\n setCollapsedGroups(defaultCollapsed);\n\n // no sort, reset data to passed-in data prop\n if (key === undefined || newDirection === SortDirection.noSort) {\n setSortedData(data);\n return;\n }\n\n // Shallow copy the data to keep `data` prop un-mutated.\n const localData = [...data];\n\n // If the first element of the data is not an array, then we do not have groups\n if (!Array.isArray(localData[0])) {\n // No groups, sort all data\n localData.sort((row1: any, row2: any) =>\n compareEntries(row1[key], row2[key], copiedColumns[key], newDirection),\n );\n } else {\n // Shallow copy each group\n for (let groupIndex = 0; groupIndex < localData.length; groupIndex++) {\n localData[groupIndex] = [...(localData[groupIndex] as RowEntry[])];\n }\n\n // Sort the content of each group\n (localData as Array>).forEach(group => {\n group.sort((row1: any, row2: any) =>\n compareEntries(row1[key], row2[key], copiedColumns[key], newDirection),\n );\n });\n\n // Sort the groups\n if (sortGroups) {\n (localData as Array>).sort(\n (group1: Array, group2: Array) =>\n compareEntries(group1[0][key], group2[0][key], copiedColumns[key], newDirection),\n );\n }\n }\n\n setSortedData(localData);\n };\n\n const handleEventWithAnalytics = useAnalytics();\n const handleOnSort = (sort: SortState) =>\n handleEventWithAnalytics('Table', () => onSort(sort), 'onSort', sort, { containerProps });\n\n useEffect(() => {\n handleOnSort(sortState);\n }, [data]); // eslint-disable-line react-hooks/exhaustive-deps\n\n const getNewSortState = (key: string): SortState => ({\n sortedColumnKey: key,\n // If we're changing sort state of an already-sorted column, cycle through direction. Otherwise, start at ascending.\n direction:\n sortState.sortedColumnKey === key ? (sortState.direction + 1) % 3 : SortDirection.ascending,\n });\n\n /**\n * Creates a cell to render\n * @param {CellOptions} options - The options used when building a cell\n * @param {any} options.RenderedCell - The component used as the cell\n * @param {string} options.headerColumnKey - The header column key for the cell\n * @param {boolean} options.breakPointHit - If the breakpoint has been hit for width\n * @param {RowEntry} options.row - the data for the row, each cell should be able to the row's data\n * @param {number} options.index - The index of the cell in the row\n * @param {number} options.indexModifier - Used only when creating cells in a group. Used to account for group labels\n * @param {any} options.CollapseExpandedIcon - Component to be used for the collapse icon. Only used for collapsible group label cells\n * @param {number} options.groupIndex - The index of the group. Used only when creating cells as part of a group\n * @param {boolean} options.isCollapsed - Used when creating cells with a CollapseExpandedIcon\n * @param {string} options.groupLabelDataString - The stringified version of the group label row\n * @param {any} options.cellProps - Props to pass through to RenderedCell\n */\n const createCell = ({\n RenderedCell,\n headerColumnKey,\n breakPointHit,\n row,\n index,\n indexModifier = 0,\n CollapseExpandedIcon,\n groupIndex,\n isCollapsed = false,\n groupLabelDataString,\n cellProps: cellPropsInput,\n }: CellOptions): JSX.Element | false => {\n return (\n (!copiedColumns[headerColumnKey].minTableWidth || breakPointHit) && (\n \n {columns[headerColumnKey].name !== '' &&\n width < minWidthBreakpoint &&\n !groupLabelDataString && (\n {\n handleOnSort(getNewSortState(headerColumnKey));\n }}\n sortable={copiedColumns[headerColumnKey].sortable}\n isSorted={\n sortState.sortedColumnKey === headerColumnKey &&\n sortState.direction !== SortDirection.noSort\n }\n {...responsiveHeaderCellProps}\n >\n {copiedColumns[headerColumnKey].name}\n \n \n )}\n\n \n {row && row[headerColumnKey]}\n {CollapseExpandedIcon &&\n usingGroups &&\n areGroupsCollapsible &&\n headerColumnKey === ExpansionIconColumnName ? (\n {\n toggleGroupCollapse((groupLabelDataString || JSON.stringify(row)) + groupIndex);\n }}\n />\n ) : null}\n \n \n )\n );\n };\n\n /**\n * Creates groups to be rendered within the Table.\n */\n const createGroups = () => {\n // Generate groupings - Note that we are making shallow copies of the arrays so that we do not\n // modify the props directly since this is an Array of Arrays.\n return [...(sortedData as Array>)].map(\n (group: Array, idx: number) => {\n const groupLabelIndex: number = group.findIndex(grp => {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n return grp.isGroupLabel === true;\n });\n\n // Copy to avoid manipulating props directly\n const groupCopy = [...group];\n\n // Get the group label data. This is to be used to generate the group 'header'\n const groupLabelData = groupLabelIndex >= 0 ? groupCopy[groupLabelIndex] : undefined;\n\n // Stringify the object one time to save cpu cycles later.\n const groupLabelDataString = JSON.stringify(groupLabelData);\n\n // Get index modifier for creating the rows of the data. Everything group element's index\n // should be increased by 1 for all labels that are above the group\n const indexModifier = groupHeaderPosition === 'above' ? 1 : 0;\n const isCollapsed = !!collapsedGroups[groupLabelDataString + idx];\n\n // Generate the rows for this group\n const rows = groupCopy.map((row: RowEntry, index: number) => {\n const RenderedRow = row.rowComponent || StyledRow;\n if (index === groupLabelIndex) return null;\n\n return (\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore - TS2604: JSX element type does not have any construct or call signatures\n \n {Object.keys(copiedColumns).map(headerColumnKey => {\n const RenderedCell = copiedColumns[headerColumnKey].cellComponent || StyledCell;\n const breakPointHit =\n width > (copiedColumns[headerColumnKey].minTableWidth || Infinity);\n\n const options: CellOptions = {\n RenderedCell,\n headerColumnKey,\n breakPointHit,\n row,\n index,\n indexModifier,\n groupIndex: idx,\n isCollapsed,\n };\n // Declaring each cell of the row\n return (\n (!copiedColumns[headerColumnKey].minTableWidth || breakPointHit) &&\n createCell(options)\n );\n })}\n \n );\n });\n\n // Remove the null entered for group label if it exists\n if (groupLabelIndex >= 0) {\n rows.splice(groupLabelIndex, 1);\n }\n\n // Check to see if a group label should be created and inserted into the row\n if (groupLabelData) {\n const index = indexModifier === 0 ? rows.length : 0;\n const RenderedRow = groupLabelData.rowComponent || StyledGroupLabelRow;\n const CollapseExpandedIcon = expansionIconComponent || ExpansionIcon;\n const label = (\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore - TS2604: JSX element type does not have any construct or call signatures\n \n {Object.keys(copiedColumns).map(headerColumnKey => {\n const RenderedCell = usingGroups\n ? copiedColumns[headerColumnKey].groupCellComponent ||\n copiedColumns[headerColumnKey].cellComponent ||\n StyledCell\n : copiedColumns[headerColumnKey].cellComponent || StyledCell;\n const breakPointHit =\n width > (copiedColumns[headerColumnKey].minTableWidth || Infinity);\n\n const options = {\n breakPointHit,\n RenderedCell,\n headerColumnKey,\n row: groupLabelData,\n groupLabelDataString,\n index,\n groupIndex: idx,\n CollapseExpandedIcon,\n isCollapsed,\n cellProps,\n };\n // Create each cell for the row\n return (\n (!copiedColumns[headerColumnKey].minTableWidth || breakPointHit) &&\n createCell(options)\n );\n })}\n \n );\n\n // Place the group label at the appropriate index to get rendered\n if (index === 0) {\n rows.splice(0, 0, label);\n } else {\n rows.push(label);\n }\n }\n\n return {rows};\n },\n );\n };\n\n /**\n * Generates the rows that appear in the Table\n */\n const createRows = () => {\n // If there are groups, create the groups using special logic\n if (usingGroups) {\n return createGroups();\n }\n\n return (\n \n {(sortedData as Array).map((row: RowEntry, index: number) => {\n // map over the rows\n const RenderedRow = row.rowComponent || StyledRow;\n // Rows.map return\n return (\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore - TS2604: JSX element type does not have any construct or call signatures\n \n {Object.keys(copiedColumns).map(headerColumnKey => {\n const RenderedCell = copiedColumns[headerColumnKey].cellComponent || StyledCell;\n const breakPointHit =\n width > (copiedColumns[headerColumnKey].minTableWidth || Infinity);\n // Create each cell of the row\n return createCell({ RenderedCell, headerColumnKey, breakPointHit, row, index });\n })}\n \n );\n })}\n \n );\n };\n\n const hasFooter = Object.values(copiedColumns)\n // this table has a footer if any of the columns have footerContent\n .some(col => {\n return (\n Object.prototype.hasOwnProperty.call(col, 'footerContent') &&\n col.footerContent !== null && // isn't null\n col.footerContent !== undefined &&\n col.footerContent !== ''\n );\n });\n\n // Table return\n return (\n ([ref, containerRef])}\n reachedMinWidth={width < minWidthBreakpoint}\n {...containerProps}\n >\n \n {width > minWidthBreakpoint && (\n \n {Object.keys(copiedColumns).map((headerColumnKey: string) => {\n const RenderedHeaderCell =\n copiedColumns[headerColumnKey].headerCellComponent || StyledHeaderCell;\n const breakpointHit =\n width > (copiedColumns[headerColumnKey].minTableWidth || Infinity);\n\n // columns.map return\n return (\n (!copiedColumns[headerColumnKey].minTableWidth || breakpointHit) && (\n handleOnSort(getNewSortState(headerColumnKey))}\n sortable={copiedColumns[headerColumnKey].sortable}\n isSorted={\n sortState.sortedColumnKey === headerColumnKey &&\n sortState.direction !== SortDirection.noSort\n }\n {...headerCellProps}\n >\n {copiedColumns[headerColumnKey].name}\n \n \n )\n );\n })}\n \n )}\n \n {createRows()}\n \n {width > minWidthBreakpoint && hasFooter && (\n \n {Object.keys(copiedColumns).map((headerColumnKey: string, index: number) => {\n const RenderedFooterCell = StyledFooterCell;\n const breakpointHit =\n width > (copiedColumns[headerColumnKey].minTableWidth || Infinity);\n return (\n (!copiedColumns[headerColumnKey].minTableWidth || breakpointHit) && (\n \n {copiedColumns[headerColumnKey].footerContent}\n \n )\n );\n })}\n \n )}\n \n \n );\n};\n\nTable.Container = TableContainer;\nTable.Header = Header;\nTable.HeaderCell = HeaderCell;\nTable.Row = Row;\nTable.GroupRow = GroupRow;\nTable.Cell = Cell;\n/**\n * @deprecated use Table.ResponsiveTitle\n */\nTable.Title = ResponsiveHeaderCell;\nTable.ResponsiveHeaderCell = ResponsiveHeaderCell;\nTable.CellContainer = CellContainer;\nTable.ExpansionIconColumnName = ExpansionIconColumnName;\nTable.SortDirection = SortDirection;\n\nexport default Table;\n","import React, { ReactNode } from 'react';\nimport UnstyledIcon from '@mdi/react';\nimport { mdiLoading } from '@mdi/js';\nimport styled, { StyledComponentBase } from 'styled-components';\nimport timings from '../../enums/timings';\nimport { useTheme } from '../../context';\nimport variants from '../../enums/variants';\nimport Progress from '../Progress/Progress';\nimport { StyledBaseDiv, StyledBaseSpan } from '../../htmlElements';\nimport { getFontColorFromVariant, getBackgroundColorFromVariant } from '../../utils/color';\nimport { SubcomponentPropsType, StyledSubcomponentType } from '../commonTypes';\nimport { getShadowStyle } from '../../utils/styles';\n\nexport type TagContainerProps = {\n elevation: number;\n color: string;\n variant: variants;\n type: string;\n disabled: boolean;\n};\n\nexport type IconContainerProps = {\n hasContent: boolean;\n position: 'right' | 'left';\n};\n\nexport type TagProps = {\n iconPrefix?: string | JSX.Element;\n iconSuffix?: string | JSX.Element;\n isLoading?: boolean;\n isProcessing?: boolean;\n children?: ReactNode;\n elevation?: number;\n variant?: variants;\n color?: string;\n id?: string;\n\n containerProps?: SubcomponentPropsType;\n iconPrefixContainerProps?: SubcomponentPropsType;\n iconSuffixContainerProps?: SubcomponentPropsType;\n loadingBarProps?: SubcomponentPropsType;\n StyledContainer?: StyledSubcomponentType;\n StyledIconContainer?: StyledSubcomponentType;\n StyledLoadingBar?: StyledSubcomponentType;\n containerRef?: React.RefObject;\n iconPrefixContainerRef?: React.RefObject;\n iconSuffixContainerRef?: React.RefObject;\n loadingBarRef?: React.RefObject;\n};\n\nexport const Container: string & StyledComponentBase = styled(\n StyledBaseSpan,\n)`\n ${({ elevation = 0, color, variant }: TagContainerProps) => {\n const { colors } = useTheme();\n const backgroundColor = getBackgroundColorFromVariant(variant, color, colors.transparent);\n const fontColor = getFontColorFromVariant(variant, color, colors.background, colors.grayDark);\n\n return `\n display: inline-flex;\n font-size: 1em;\n padding: .75em 1em;\n border-radius: 0.25em;\n transition:\n background-color ${timings.fast},\n color ${timings.slow},\n outline ${timings.slow},\n filter ${timings.slow},\n box-shadow ${timings.slow};\n ${getShadowStyle(elevation, colors.shadow)}\n outline: 0 none;\n border: ${variant === variants.outline ? `1px solid ${color || colors.grayDark};` : '0 none;'}\n background-color: ${backgroundColor};\n color: ${fontColor};\n align-items: center;\n `;\n }}\n`;\n\nconst StyledProgress = styled(Progress)`\n width: 5em;\n height: 10px;\n margin-top: -5px;\n margin-bottom: -5px;\n`;\n\nconst IconContainer = styled(StyledBaseDiv)`\n ${({ position, hasContent }: IconContainerProps) => {\n return `\n height: 1em;\n ${hasContent ? `margin-${position === 'right' ? 'left' : 'right'}: 1em;` : ''}\n `;\n }}\n`;\n\nconst Tag = ({\n iconPrefix,\n iconSuffix,\n isLoading,\n isProcessing,\n children,\n elevation = 0,\n variant = variants.fill,\n color,\n id,\n\n containerProps = {},\n iconPrefixContainerProps = {},\n iconSuffixContainerProps = {},\n loadingBarProps = {},\n\n containerRef,\n iconPrefixContainerRef,\n iconSuffixContainerRef,\n loadingBarRef,\n\n StyledContainer = Container,\n StyledIconContainer = IconContainer,\n StyledLoadingBar = StyledProgress,\n}: TagProps): JSX.Element => {\n const hasContent = Boolean(children);\n const { colors } = useTheme();\n const containerColor = color || colors.grayLight;\n // get everything we expose + anything consumer wants to send to container\n const mergedContainerProps = {\n id,\n elevation,\n color: containerColor,\n variant,\n ...containerProps,\n };\n\n return isLoading ? (\n \n \n \n ) : (\n \n {!isProcessing &&\n iconPrefix &&\n (typeof iconPrefix === 'string' && iconPrefix !== '' ? (\n \n \n \n ) : (\n {iconPrefix}\n ))}\n {isProcessing && (\n \n \n \n )}\n {children}\n\n {iconSuffix &&\n (typeof iconSuffix === 'string' ? (\n \n \n \n ) : (\n \n {iconSuffix}\n \n ))}\n \n );\n};\n\nTag.Container = Container;\nTag.LoadingBar = StyledProgress;\nTag.IconContainer = IconContainer;\nexport default Tag;\n","import React, { ReactNode, RefObject } from 'react';\nimport styled from 'styled-components';\nimport Icon from '@mdi/react';\nimport { mdiLoading } from '@mdi/js';\nimport Skeleton from '../Skeleton/Skeleton';\nimport { StyledBaseSpan } from '../../htmlElements';\nimport { SubcomponentPropsType, StyledSubcomponentType } from '../commonTypes';\n\n/* Default Styled Text Container */\nexport const TextContainer = styled(StyledBaseSpan)`\n ${({ size, color }: { size: string; color: string }) => `\n font-size: ${size};\n color: ${color};\n `}\n`;\n\nexport interface TextProps {\n children?: ReactNode;\n color?: string;\n iconPrefix?: string | JSX.Element;\n iconSuffix?: string | JSX.Element;\n isLoading?: boolean;\n isProcessing?: boolean;\n size?: string;\n StyledSkeletonContainer?: StyledSubcomponentType;\n StyledContainer?: StyledSubcomponentType;\n StyledIconContainer?: StyledSubcomponentType;\n containerProps?: SubcomponentPropsType;\n iconContainerProps?: SubcomponentPropsType;\n skeletonProps?: SubcomponentPropsType;\n containerRef?: RefObject;\n iconPrefixContainerRef?: RefObject;\n iconSuffixContainerRef?: RefObject;\n skeletonRef?: RefObject;\n shimmerRef?: RefObject;\n}\n\nconst StyledSkeletonContainer = styled(Skeleton.Container)`\n display: inline;\n`;\n\nconst IconContainer = styled(StyledBaseSpan)`\n ${({ side }: { side: 'left' | 'right' }) => `\n margin-${side === 'left' ? 'right' : 'left'}: .5em;\n display: inline-flex;\n vertical-align: middle;\n `}\n`;\n\n// TODO: If children are passed in and loading===true,\n// set the children to visibility: none and have the loading bar fill their width\n// that way the end developer can pass \"placeholder\" text for how long the text will probably be\n// when loaded\nconst Text = ({\n children,\n color,\n iconPrefix,\n iconSuffix,\n isLoading,\n isProcessing,\n size = '1em',\n StyledContainer = TextContainer,\n StyledIconContainer = IconContainer,\n containerProps = {},\n iconContainerProps = {},\n skeletonProps = {},\n containerRef,\n iconPrefixContainerRef,\n iconSuffixContainerRef,\n skeletonRef,\n shimmerRef,\n}: TextProps): JSX.Element => (\n \n {!isProcessing &&\n iconPrefix &&\n (typeof iconPrefix === 'string' && iconPrefix !== '' ? (\n \n \n \n ) : (\n \n {iconPrefix}\n \n ))}\n {isProcessing && (\n \n \n \n )}\n \n {children}\n \n\n {iconSuffix &&\n (typeof iconSuffix === 'string' && iconSuffix !== '' ? (\n \n \n \n ) : (\n \n {iconSuffix}\n \n ))}\n \n);\n\nText.Container = TextContainer;\nText.IconContainer = IconContainer;\nexport default Text;\n","import React, {\n ChangeEvent,\n EventHandler,\n ReactNode,\n SyntheticEvent,\n useCallback,\n useState,\n TextareaHTMLAttributes,\n InputHTMLAttributes,\n useRef,\n useEffect,\n} from 'react';\nimport styled, { css } from 'styled-components';\nimport Icon from '@mdi/react';\nimport debounce from 'lodash/debounce';\nimport { mdiClose } from '@mdi/js';\nimport { darken } from 'polished';\n\nimport { StyledBaseDiv, StyledBaseInput, StyledBaseTextArea } from '../../htmlElements';\nimport { SubcomponentPropsType, StyledSubcomponentType } from '../commonTypes';\nimport { mergeRefs } from '../../utils/refs';\nimport { useAnalytics, useTheme } from '../../context';\nimport { disabledStyles } from '../../utils/color';\nimport variants from '../../enums/variants';\nimport Button from '../Button';\n\nexport type TextInputContainerProps = {\n disabled?: boolean;\n isValid?: boolean;\n variant?: variants;\n};\n\nconst Container = styled(StyledBaseDiv)`\n ${({ disabled = false, isValid, variant = variants.outline }: TextInputContainerProps) => {\n const { colors } = useTheme();\n const borderColor = isValid === false ? colors.destructive : colors.grayMedium;\n return `\n min-width: 10em;\n position: relative;\n display: flex;\n flex-flow: row;\n align-items: stretch;\n border-radius: 0.25em;\n border: ${\n variant === variants.outline ? `1px solid ${borderColor}` : '1px solid transparent'\n };\n\n &:focus-within {\n outline: none;\n box-shadow: 0 0 5px 0.150rem ${colors.tertiary};\n }\n \n ${\n variant === variants.fill\n ? `border-bottom: 1px solid ${borderColor}; \n border-bottom-left-radius: 0; \n border-bottom-right-radius: 0;`\n : ''\n }\n background-color: ${\n variant === variants.fill ? darken(0.1, colors.background) : colors.background\n };\n ${disabled ? disabledStyles() : ''}\n `;\n }}\n`;\n\nconst TextInputContainer = styled(StyledBaseInput)`\n ${() => {\n const { colors } = useTheme();\n return `\n border: 0 none;\n flex-grow: 1;\n outline: 0 none;\n font-size: 1em;\n padding: 0.5em;\n background-color: ${colors.transparent};\n `;\n }}\n`;\n\nconst TextAreaInputContainer = styled(StyledBaseTextArea)`\n ${({ multiLineIsResizable }: TextInputProps) => {\n const { colors } = useTheme();\n return `\n border: 0 none;\n flex-grow: 1;\n outline: 0 none;\n font-size: 1em;\n min-width: 0px;\n padding: .5em;\n background-color: ${colors.transparent};\n resize: ${multiLineIsResizable ? 'both' : 'none'};\n `;\n }}\n`;\n\nconst ClearButtonContainer = styled(Button.Container)`\n padding: 0.5em;\n height: 100%;\n`;\n\nconst IconContainer = styled(StyledBaseDiv)`\n ${() => {\n const { colors } = useTheme();\n return `\n padding: 0.5em;\n display: flex;\n align-items: center;\n justify-content: center;\n color: ${colors.grayMedium};\n cursor: text;\n `;\n }}\n`;\n\nconst CharacterCount = styled(StyledBaseDiv)`\n ${({ textIsTooLong, isValid, errorMessage }) => {\n const { colors } = useTheme();\n return css`\n position: absolute;\n top: calc(100% + ${isValid && (!errorMessage || errorMessage !== '') ? '0.25em' : '2em'});\n right: 0.25em;\n color: ${textIsTooLong ? colors.destructive : colors.grayLight};\n `;\n }}\n`;\n\nconst ErrorContainer = styled(StyledBaseDiv)`\n ${() => {\n const { colors } = useTheme();\n return css`\n position: absolute;\n top: calc(100% + 0.25em);\n color: ${colors.destructive};\n font-size: 0.75em;\n `;\n }}\n`;\n\nexport type TextInputProps = InputHTMLAttributes &\n TextareaHTMLAttributes & {\n iconPrefix?: string | ReactNode;\n onClear?: (event: SyntheticEvent) => void;\n clearable?: boolean;\n debouncedOnChange?: EventHandler>;\n isValid?: boolean;\n isMultiline?: boolean;\n errorMessage?: string;\n variant?: variants;\n debounceInterval?: number;\n multiLineIsResizable?: boolean;\n maxLength?: number;\n allowTextBeyondMaxLength?: boolean;\n showCharacterCount?: boolean;\n\n StyledContainer?: StyledSubcomponentType;\n StyledInput?: StyledSubcomponentType;\n StyledIconContainer?: StyledSubcomponentType;\n StyledClearButtonContainer?: StyledSubcomponentType;\n StyledErrorContainer?: StyledSubcomponentType;\n StyledTextArea?: StyledSubcomponentType;\n StyledCharacterCount?: StyledSubcomponentType;\n\n containerProps?: SubcomponentPropsType;\n inputProps?: SubcomponentPropsType;\n iconContainerProps?: SubcomponentPropsType;\n clearButtonContainerProps?: SubcomponentPropsType;\n errorContainerProps?: SubcomponentPropsType;\n characterCountProps?: SubcomponentPropsType;\n\n containerRef?: React.RefObject;\n inputRef?: React.RefObject | ((inst: HTMLInputElement) => void);\n iconContainerRef?: React.RefObject;\n clearButtonContainerRef?: React.RefObject;\n errorContainerRef?: React.RefObject;\n characterCountRef?: React.RefObject;\n };\n\nconst defaultCallback = () => {}; // eslint-disable-line @typescript-eslint/no-empty-function\n\nconst TextInput = ({\n debouncedOnChange = defaultCallback,\n onClear,\n clearable,\n iconPrefix,\n isValid = true,\n isMultiline,\n errorMessage,\n variant = variants.outline,\n debounceInterval = 8,\n multiLineIsResizable,\n maxLength,\n allowTextBeyondMaxLength = false,\n showCharacterCount = false,\n\n StyledContainer = Container,\n StyledInput = TextInputContainer,\n StyledIconContainer = IconContainer,\n StyledClearButtonContainer = ClearButtonContainer,\n StyledErrorContainer = ErrorContainer,\n StyledTextArea = TextAreaInputContainer,\n StyledCharacterCount = CharacterCount,\n\n containerProps = {},\n inputProps = {},\n iconContainerProps = {},\n clearButtonContainerProps = {},\n errorContainerProps = {},\n characterCountProps = {},\n\n containerRef,\n inputRef,\n iconContainerRef,\n clearButtonContainerRef,\n errorContainerRef,\n characterCountRef,\n\n ...nativeHTMLAttributes\n}: TextInputProps): JSX.Element => {\n const handleEventWithAnalytics = useAnalytics();\n const theme = useTheme();\n\n const handleDebouncedOnChange = (e: React.ChangeEvent) =>\n handleEventWithAnalytics(\n 'TextInput',\n debouncedOnChange,\n 'debouncedOnChange',\n e,\n containerProps,\n );\n\n // Debounce the change function using useCallback so that the function is not initialized each time it renders\n const debouncedChange = useCallback(debounce(handleDebouncedOnChange, debounceInterval), [\n handleDebouncedOnChange,\n debounceInterval,\n ]);\n\n const internalInputRef = useRef(null);\n\n const InputComponent: StyledSubcomponentType = isMultiline ? StyledTextArea : StyledInput;\n\n const [internalValue, setInternalValue] = useState(\n nativeHTMLAttributes.value || nativeHTMLAttributes.defaultValue || '',\n );\n\n const onClearToUse = useCallback(\n (evt: SyntheticEvent) => {\n // if this is an uncontrolled input\n if (nativeHTMLAttributes.value === undefined) {\n if (internalInputRef?.current) {\n internalInputRef.current.value = '';\n }\n setInternalValue('');\n }\n if (onClear) {\n onClear(evt);\n }\n },\n [nativeHTMLAttributes.value, onClear],\n );\n\n const handleClear = (e: any) => {\n handleEventWithAnalytics('TextInput', onClearToUse, 'onClear', e, containerProps);\n };\n\n useEffect(() => {\n if (internalValue !== nativeHTMLAttributes.value && nativeHTMLAttributes.value === '') {\n setInternalValue('');\n }\n }, [internalValue, nativeHTMLAttributes.value]);\n\n return (\n \n {iconPrefix &&\n (typeof iconPrefix === 'string' ? (\n internalInputRef.current?.focus()}\n {...iconContainerProps}\n ref={iconContainerRef}\n >\n \n \n ) : (\n internalInputRef.current?.focus()}>\n {iconPrefix}\n \n ))}\n ) => {\n e.persist();\n if (maxLength && maxLength >= 0) {\n e.target.value = allowTextBeyondMaxLength\n ? e.target.value\n : e.target.value.slice(0, maxLength);\n }\n setInternalValue(e.target.value);\n if (nativeHTMLAttributes.onChange) {\n nativeHTMLAttributes.onChange(e);\n }\n debouncedChange(e);\n }}\n multiLineIsResizable={multiLineIsResizable}\n ref={internalInputRef ? mergeRefs([inputRef, internalInputRef]) : null}\n {...inputProps}\n />\n {clearable && (\n \n )}\n {showCharacterCount && (\n maxLength : false}\n {...characterCountProps}\n >\n {(internalValue as string).length} {maxLength !== undefined ? `/ ${maxLength}` : null}\n \n )}\n {isValid === false && errorMessage && (\n \n {errorMessage}\n \n )}\n \n );\n};\n\nTextInput.Container = Container;\nTextInput.ErrorContainer = ErrorContainer;\nTextInput.Input = TextInputContainer;\nTextInput.IconContainer = IconContainer;\nTextInput.ClearButtonContainer = ClearButtonContainer;\nTextInput.TextArea = TextAreaInputContainer;\nTextInput.CharacterCount = CharacterCount;\n\nexport default TextInput;\n","import React, { RefObject } from 'react';\nimport styled from 'styled-components';\n\nimport { setLightness, mix, transparentize, readableColor } from 'polished';\nimport { useSwitch } from 'react-aria';\nimport { useToggleState } from '@react-stately/toggle';\nimport { useSpring } from '@react-spring/web';\nimport useMeasure from 'react-use-measure';\nimport { ResizeObserver } from '@juggle/resize-observer';\n\nimport { AnimatedDiv, StyledBaseInput, StyledBaseLabel } from '../../htmlElements';\nimport { SubcomponentPropsType, StyledSubcomponentType } from '../commonTypes';\nimport { useAnalytics, useTheme } from '../../context';\nimport variants from '../../enums/variants';\nimport { disabledStyles } from '../../utils/color';\nimport { mergeRefs } from '../../utils/refs';\n\n// Hide toggle visually but remain accessible to screen readers.\n// Source: https://polished.js.org/docs/#hidevisually\nexport const Input = styled(StyledBaseInput).attrs({ type: 'checkbox' })`\n border: 0;\n clip: rect(0 0 0 0);\n clippath: inset(50%);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n`;\n\nexport const Handle = styled(AnimatedDiv)`\n ${({ variant, color }) => `\n ${\n variant === variants.outline || variant === variants.text\n ? `border: 1px solid ${color};\n margin-left: -1px;`\n : ''\n }\n ${\n variant === variants.fill || variant === variants.text\n ? `\n background-color: ${color};\n `\n : ''\n }\n ${\n variant === variants.fill\n ? `\n box-shadow: 0 .125em .125em -.125em ${transparentize(0.3, setLightness(0.2, color))}; \n `\n : ''\n }\n\n position: absolute;\n top: 50%;\n left 0;\n transform: translateY(-50%) translateX(0px - calc(.25em / 2));\n\n border-radius: .5em;\n width: calc(1em - (.25em));\n height: calc(1em - (.25em));\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: visible;\n margin-right: 0.5em;\n `}}\n`;\n\nexport const Container = styled(StyledBaseLabel)`\n ${({\n color,\n variant,\n focusRingColor,\n disabled,\n }: {\n color: string;\n variant: variants;\n focusRingColor: string;\n disabled: boolean;\n }) => `\n ${\n variant === variants.outline || variant === variants.text\n ? `border: 1px solid ${color};`\n : ''\n }\n ${\n variant === variants.fill\n ? `\n background-color: ${mix(0.4, color, readableColor(color))};\n box-shadow: 0 .125em .25em -.125em ${transparentize(0.3, setLightness(0.2, color))} inset; \n `\n : ''\n }\n &:hover {\n background-color: ${mix(0.3, color, readableColor(color))}\n }\n transition: background-color .2s;\n overflow: hidden;\n\n position: relative;\n cursor: pointer;\n border-radius: .75em;\n width: 2em;\n height: 1em;\n display: inline-block;\n vertical-align: top;\n\n &:focus-within {\n ${Handle} {\n box-shadow: 0 0 5px 0.150rem ${focusRingColor};\n }\n }\n\n ${disabled ? disabledStyles() : ''}\n `}\n`;\n\nconst Toggle = ({\n color,\n StyledContainer = Container,\n StyledHandle = Handle,\n StyledInput = Input,\n\n containerProps = {},\n handleProps = {},\n inputProps = {},\n\n variant = variants.fill,\n checked = false,\n disabled = false,\n onToggle,\n containerRef,\n handleRef,\n inputRef,\n}: {\n color?: string;\n\n StyledContainer?: StyledSubcomponentType;\n StyledHandle?: StyledSubcomponentType;\n StyledInput?: StyledSubcomponentType;\n StyledIcon?: StyledSubcomponentType;\n\n containerProps?: SubcomponentPropsType;\n handleProps?: SubcomponentPropsType;\n inputProps?: SubcomponentPropsType;\n iconProps?: SubcomponentPropsType;\n\n variant?: variants;\n checked?: boolean;\n disabled?: boolean;\n onToggle?: (event: React.MouseEvent) => void;\n\n containerRef?: React.RefObject;\n handleRef?: React.RefObject;\n inputRef?: React.RefObject;\n}): JSX.Element => {\n const { colors } = useTheme();\n\n const [measurableContainerRef, containerBounds] = useMeasure({ polyfill: ResizeObserver });\n const [measurableHandleRef, handleBounds] = useMeasure({ polyfill: ResizeObserver });\n\n const mergedInputProps = {\n isDisabled: disabled,\n isSelected: checked,\n 'aria-label': 'toggle',\n ...inputProps,\n };\n\n const state = useToggleState(mergedInputProps);\n\n const gutterWidth = (containerBounds.height - handleBounds.height) / 2;\n\n const { transform } = useSpring({\n transform: checked\n ? `translateY(-50%) translateX(${containerBounds.width - handleBounds.width - gutterWidth}px)`\n : `translateY(-50%) translateX(${gutterWidth}px)`,\n config: { tension: 250, friction: 20 },\n });\n\n const internalRef = React.useRef(null);\n const { inputProps: ariaProps } = useSwitch(\n mergedInputProps,\n state,\n internalRef as RefObject,\n );\n const handleEventWithAnalytics = useAnalytics();\n const handleToggle = (e: any) =>\n handleEventWithAnalytics('Toggle', onToggle, 'onToggle', e, containerProps);\n\n return (\n ([containerRef, measurableContainerRef])}\n variant={variant}\n focusRingColor={colors.tertiary}\n disabled={disabled}\n {...containerProps}\n >\n ([handleRef, measurableHandleRef])}\n checked={checked}\n variant={variant}\n {...handleProps}\n />\n ([inputRef, internalRef])}\n {...inputProps}\n />\n \n );\n};\n\nToggle.Handle = Handle;\nToggle.Input = Input;\nToggle.Container = Container;\n\nexport default Toggle;\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport React, { useContext } from 'react';\nimport styled from 'styled-components';\nimport { deviceDetect } from 'react-device-detect';\nimport { TierResult, TierType } from 'detect-gpu';\n\nimport { useReducedMotion } from '../utils/a11y';\nimport { usePerformanceInfo } from '../utils/performance';\nimport fonts from '../enums/fonts';\nimport colorsEnum from '../enums/colors';\nimport { StyledSubcomponentType } from '../components/commonTypes';\n\nexport const defaultGlobalStyles = `\n ${\n process.env.NODE_ENV === 'test'\n ? ''\n : `\n box-sizing: border-box;\n ${fonts.body}\n `\n }\n`;\n\n// in order to let users add their own colors to their theme provider,\n// added generic string keys, which makes the type ambiguous but gives users access to colorsEnum\nexport type FoundryColorsType = Record;\n\nexport type AnalyticsFunctionType = (\n componentType?: string,\n eventType?: string,\n eventArgs?: React.ChangeEvent,\n dateTime?: Date,\n deviceInfo?: Record,\n currentURL?: string,\n props?: any,\n) => any;\n\nexport type AccessibilityPreferences = {\n // TODO: Add to this\n prefersReducedMotion: boolean;\n};\n\nexport const defaultAnalyticsFunction: AnalyticsFunctionType = (\n componentType?: string,\n eventType?: string,\n eventArgs?: any,\n dateTime?: Date,\n deviceInfo?: Record,\n currentURL?: string,\n props?: any,\n): Record => ({\n componentType,\n eventType,\n eventArgs,\n dateTime,\n deviceInfo,\n currentURL,\n name: props?.name ? props.name : 'No name provided',\n analytics: props?.analytics ? props.analytics : 'No analytics object provided',\n});\n\nexport const defaultAccessibilityPreferences: AccessibilityPreferences = {\n prefersReducedMotion: true,\n};\n\nexport type FoundryContextType = {\n globalStyles: string;\n colors: FoundryColorsType;\n analyticsFunction: AnalyticsFunctionType;\n performanceInfo: TierResult;\n accessibilityPreferences: AccessibilityPreferences;\n styleConstants: Record;\n};\n\nconst defaultContextValue = {\n globalStyles: defaultGlobalStyles,\n colors: colorsEnum,\n accessibilityPreferences: defaultAccessibilityPreferences,\n performanceInfo: { tier: 2, type: 'BENCHMARK' as TierType },\n analyticsFunction: defaultAnalyticsFunction,\n styleConstants: {},\n // TODO Add Foundry's \"theme\" to items here and pull from the ContextProvider\n};\n\nexport const FoundryContext = React.createContext(defaultContextValue);\n\nexport const FoundryProvider = ({\n value = defaultContextValue,\n children,\n}: {\n value?: {\n globalStyles?: string;\n colors?: FoundryColorsType;\n analyticsFunction?: AnalyticsFunctionType;\n styleConstants?: Record;\n };\n children: React.ReactNode;\n}): JSX.Element => {\n const {\n globalStyles = defaultGlobalStyles,\n colors = colorsEnum,\n styleConstants = {},\n analyticsFunction = defaultAnalyticsFunction,\n } = value;\n\n // causes a rerender\n const prefersReducedMotion = useReducedMotion();\n // causes a rerender\n const performanceInfo = usePerformanceInfo();\n\n // use the default set of styles, unless we've got something to override\n const mergedGlobalStyles =\n globalStyles === defaultGlobalStyles\n ? globalStyles\n : `\n ${defaultGlobalStyles}\n ${globalStyles}\n `;\n const mergedColors = {\n ...colorsEnum,\n ...colors,\n };\n\n return (\n \n {children}\n \n );\n};\n\nexport const useTheme = (): FoundryContextType => {\n const theme = useContext(FoundryContext);\n return theme;\n};\n\nexport const useColors = (): FoundryColorsType => {\n const { colors } = useContext(FoundryContext);\n return colors;\n};\n\nexport const useAccessibilityPreferences = (): AccessibilityPreferences => {\n const { accessibilityPreferences } = useContext(FoundryContext);\n return accessibilityPreferences;\n};\n\nexport const withGlobalStyle = (\n Component: StyledSubcomponentType,\n): React.ForwardRefExoticComponent => {\n const ComponentWithGlobalStyles = styled(Component)`\n ${props => {\n return props.globalStyles;\n }}\n `;\n\n return React.forwardRef((props: any, ref: any) => {\n const { globalStyles } = useContext(FoundryContext);\n return ;\n });\n};\n\nexport const useAnalytics = (): ((\n componentType: string,\n eventFunction: any,\n eventType: string,\n eventArgs: any,\n props: any,\n) => void) => {\n const context = useContext(FoundryContext);\n return (\n componentType: string,\n eventFunction: any,\n eventType: string,\n eventArgs: any,\n props: any,\n ): void => {\n if (eventFunction !== undefined) {\n eventFunction(eventArgs);\n }\n const dateTime = new Date();\n const deviceInfo: Record = deviceDetect();\n deviceInfo.innerHeight =\n typeof window !== 'undefined'\n ? window.innerHeight\n : 'Server Side Rendering Requires the analytics function to handle window dimensions';\n deviceInfo.innerWidth =\n typeof window !== 'undefined'\n ? window.innerWidth\n : 'Server Side Rendering Requires the analytics function to handle window dimensions';\n\n const currURL =\n typeof window !== 'undefined'\n ? window.location.href\n : 'Server Side Rendering Requires the analytics function to handle window URL';\n\n context.analyticsFunction(\n componentType,\n eventType,\n eventArgs,\n dateTime,\n deviceInfo,\n currURL,\n props,\n );\n };\n};\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/main.ff6065fba24f0803656c.manager.bundle.js b/main.ff6065fba24f0803656c.manager.bundle.js new file mode 100644 index 000000000..30f8d2a78 --- /dev/null +++ b/main.ff6065fba24f0803656c.manager.bundle.js @@ -0,0 +1 @@ +(self.webpackChunk_headstorm_foundry_react_ui=self.webpackChunk_headstorm_foundry_react_ui||[]).push([[179],{35295:function(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__){"use strict";var esm=__webpack_require__(32605),colors_background="#fff",colors_primary="#e75b27",colors_grayDark="#252c35",colors_grayMedium="#51575d",colors_grayLight="#7c8186",colors_grayXlight="#d3d6d7",headstormTheme=(0,__webpack_require__(65316).Ue)({base:"dark",colorPrimary:colors_primary,colorSecondary:colors_grayLight,appBg:colors_grayDark,appContentBg:colors_grayMedium,appBorderColor:colors_grayMedium,appBorderRadius:4,fontBase:'"Arial", "Open Sans", sans-serif',fontCode:"monospace",textColor:colors_background,textInverseColor:colors_primary,barTextColor:colors_grayLight,barSelectedColor:colors_background,barBg:colors_grayDark,inputBg:colors_grayXlight,inputBorder:colors_grayXlight,inputTextColor:colors_grayDark,inputBorderRadius:4,brandTitle:"Headstorm UI",brandUrl:"https://headstorm.com",brandImage:"".concat(".","/Wordmark-Full-transparent.svg")});esm.KP.setConfig({theme:headstormTheme})},24654:function(){}},function(__webpack_require__){var __webpack_exec__=function(moduleId){return __webpack_require__(__webpack_require__.s=moduleId)};__webpack_require__.O(0,[813],(function(){return __webpack_exec__(30091),__webpack_exec__(35295),__webpack_exec__(33735),__webpack_exec__(78295),__webpack_exec__(15887),__webpack_exec__(59288),__webpack_exec__(80048),__webpack_exec__(50213),__webpack_exec__(75259),__webpack_exec__(57464),__webpack_exec__(10165),__webpack_exec__(13457),__webpack_exec__(52165),__webpack_exec__(1498)}));__webpack_require__.O()}]); \ No newline at end of file diff --git a/project.json b/project.json new file mode 100644 index 000000000..ac44fe8f2 --- /dev/null +++ b/project.json @@ -0,0 +1 @@ +{"generatedAt":1690916986799,"builder":{"name":"webpack5"},"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"packageManager":{"type":"yarn","version":"1.22.19"},"storybookVersion":"6.5.9","language":"typescript","storybookPackages":{"@storybook/addon-actions":{"version":"6.5.9"},"@storybook/builder-webpack5":{"version":"6.5.9"},"@storybook/manager-webpack5":{"version":"6.5.9"},"@storybook/preset-create-react-app":{"version":"4.1.2"},"@storybook/react":{"version":"6.5.9"}},"framework":{"name":"react"},"addons":{"@storybook/addon-links":{"version":"6.5.9"},"@storybook/addon-essentials":{"version":"6.5.9"},"@storybook-create-react-app":{"version":null},"storybook-addon-designs":{"version":"6.3.1"},"@storybook/addon-a11y":{"version":"6.5.9"}}} diff --git a/runtime~main.7de207ecde598294e9b7.manager.bundle.js b/runtime~main.7de207ecde598294e9b7.manager.bundle.js new file mode 100644 index 000000000..eacc6b724 --- /dev/null +++ b/runtime~main.7de207ecde598294e9b7.manager.bundle.js @@ -0,0 +1 @@ +!function(){"use strict";var deferred,leafPrototypes,getProto,inProgress,__webpack_modules__={},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(void 0!==cachedModule)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={id:moduleId,loaded:!1,exports:{}};return __webpack_modules__[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.loaded=!0,module.exports}__webpack_require__.m=__webpack_modules__,deferred=[],__webpack_require__.O=function(result,chunkIds,fn,priority){if(!chunkIds){var notFulfilled=1/0;for(i=0;i=priority)&&Object.keys(__webpack_require__.O).every((function(key){return __webpack_require__.O[key](chunkIds[j])}))?chunkIds.splice(j--,1):(fulfilled=!1,priority0&&deferred[i-1][2]>priority;i--)deferred[i]=deferred[i-1];deferred[i]=[chunkIds,fn,priority]},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module.default}:function(){return module};return __webpack_require__.d(getter,{a:getter}),getter},getProto=Object.getPrototypeOf?function(obj){return Object.getPrototypeOf(obj)}:function(obj){return obj.__proto__},__webpack_require__.t=function(value,mode){if(1&mode&&(value=this(value)),8&mode)return value;if("object"==typeof value&&value){if(4&mode&&value.__esModule)return value;if(16&mode&&"function"==typeof value.then)return value}var ns=Object.create(null);__webpack_require__.r(ns);var def={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var current=2&mode&&value;"object"==typeof current&&!~leafPrototypes.indexOf(current);current=getProto(current))Object.getOwnPropertyNames(current).forEach((function(key){def[key]=function(){return value[key]}}));return def.default=function(){return value},__webpack_require__.d(ns,def),ns},__webpack_require__.d=function(exports,definition){for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.f={},__webpack_require__.e=function(chunkId){return Promise.all(Object.keys(__webpack_require__.f).reduce((function(promises,key){return __webpack_require__.f[key](chunkId,promises),promises}),[]))},__webpack_require__.u=function(chunkId){return chunkId+"."+{32:"f16e99762ce98448603a",142:"f4445b1b27f02bb3e539",295:"105d7adb34001ffba876",363:"76863f4e4594442b5775",551:"4032c9106b582d98c348",566:"c56f68487233c522dc9c",691:"d2e613629298ef60e5f0",725:"8c3f9d2da8f5ad9f4d1a"}[chunkId]+".manager.bundle.js"},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.hmd=function(module){return(module=Object.create(module)).children||(module.children=[]),Object.defineProperty(module,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+module.id)}}),module},__webpack_require__.o=function(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)},inProgress={},__webpack_require__.l=function(url,done,key,chunkId){if(inProgress[url])inProgress[url].push(done);else{var script,needAttach;if(void 0!==key)for(var scripts=document.getElementsByTagName("script"),i=0;i=priority)&&Object.keys(__webpack_require__.O).every((function(key){return __webpack_require__.O[key](chunkIds[j])}))?chunkIds.splice(j--,1):(fulfilled=!1,priority0&&deferred[i-1][2]>priority;i--)deferred[i]=deferred[i-1];deferred[i]=[chunkIds,fn,priority]},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module.default}:function(){return module};return __webpack_require__.d(getter,{a:getter}),getter},getProto=Object.getPrototypeOf?function(obj){return Object.getPrototypeOf(obj)}:function(obj){return obj.__proto__},__webpack_require__.t=function(value,mode){if(1&mode&&(value=this(value)),8&mode)return value;if("object"==typeof value&&value){if(4&mode&&value.__esModule)return value;if(16&mode&&"function"==typeof value.then)return value}var ns=Object.create(null);__webpack_require__.r(ns);var def={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var current=2&mode&&value;"object"==typeof current&&!~leafPrototypes.indexOf(current);current=getProto(current))Object.getOwnPropertyNames(current).forEach((function(key){def[key]=function(){return value[key]}}));return def.default=function(){return value},__webpack_require__.d(ns,def),ns},__webpack_require__.d=function(exports,definition){for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.f={},__webpack_require__.e=function(chunkId){return Promise.all(Object.keys(__webpack_require__.f).reduce((function(promises,key){return __webpack_require__.f[key](chunkId,promises),promises}),[]))},__webpack_require__.u=function(chunkId){return chunkId+"."+{32:"5a523614",142:"b6e828d3",273:"ca7ffb36",551:"1b86c3ef",566:"6d7b1501",691:"1b37110a",701:"5e9b25cc",725:"b36b62ec",745:"3bb3b26b",899:"ba1ab77c"}[chunkId]+".iframe.bundle.js"},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.hmd=function(module){return(module=Object.create(module)).children||(module.children=[]),Object.defineProperty(module,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+module.id)}}),module},__webpack_require__.o=function(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)},inProgress={},__webpack_require__.l=function(url,done,key,chunkId){if(inProgress[url])inProgress[url].push(done);else{var script,needAttach;if(void 0!==key)for(var scripts=document.getElementsByTagName("script"),i=0;i