From 6520ee005cbb06cdaf603bc5739124c3c1c4aa96 Mon Sep 17 00:00:00 2001 From: kasperg Date: Mon, 15 Jan 2024 08:06:00 +0000 Subject: [PATCH] deploy: dfaec777957185f42299949e7a6f0b2f43f55f70 --- ...er.bundle.js => 176.35cf388528e6b5ae76b6.manager.bundle.js | 4 ++-- ... => 176.35cf388528e6b5ae76b6.manager.bundle.js.LICENSE.txt | 0 39.84d2a66a.iframe.bundle.js => 39.1eb82b7d.iframe.bundle.js | 4 ++-- ...js.LICENSE.txt => 39.1eb82b7d.iframe.bundle.js.LICENSE.txt | 0 ...6cdb7dea.iframe.bundle.js => 748.1339b427.iframe.bundle.js | 4 ++-- ...s.LICENSE.txt => 748.1339b427.iframe.bundle.js.LICENSE.txt | 0 iframe.html | 2 +- index.html | 2 +- project.json | 2 +- ...iframe.bundle.js => runtime~main.e0062308.iframe.bundle.js | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) rename 176.6c62b62f6afc0133fa9d.manager.bundle.js => 176.35cf388528e6b5ae76b6.manager.bundle.js (88%) rename 176.6c62b62f6afc0133fa9d.manager.bundle.js.LICENSE.txt => 176.35cf388528e6b5ae76b6.manager.bundle.js.LICENSE.txt (100%) rename 39.84d2a66a.iframe.bundle.js => 39.1eb82b7d.iframe.bundle.js (91%) rename 39.84d2a66a.iframe.bundle.js.LICENSE.txt => 39.1eb82b7d.iframe.bundle.js.LICENSE.txt (100%) rename 748.6cdb7dea.iframe.bundle.js => 748.1339b427.iframe.bundle.js (81%) rename 748.6cdb7dea.iframe.bundle.js.LICENSE.txt => 748.1339b427.iframe.bundle.js.LICENSE.txt (100%) rename runtime~main.6bb59eaf.iframe.bundle.js => runtime~main.e0062308.iframe.bundle.js (99%) diff --git a/176.6c62b62f6afc0133fa9d.manager.bundle.js b/176.35cf388528e6b5ae76b6.manager.bundle.js similarity index 88% rename from 176.6c62b62f6afc0133fa9d.manager.bundle.js rename to 176.35cf388528e6b5ae76b6.manager.bundle.js index 4df9a9ab9a..f8de01fc98 100644 --- a/176.6c62b62f6afc0133fa9d.manager.bundle.js +++ b/176.35cf388528e6b5ae76b6.manager.bundle.js @@ -1,2 +1,2 @@ -/*! For license information please see 176.6c62b62f6afc0133fa9d.manager.bundle.js.LICENSE.txt */ -(globalThis.webpackChunk_danskernesdigitalebibliotek_dpl_react=globalThis.webpackChunk_danskernesdigitalebibliotek_dpl_react||[]).push([[176],{879:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{RS:()=>EVENT_ID,Sz:()=>PARAM_KEY,ZY:()=>ADDON_ID,im:()=>PANEL_ID});var PARAM_KEY="actions",ADDON_ID="storybook/actions",PANEL_ID="".concat(ADDON_ID,"/panel"),EVENT_ID="".concat(ADDON_ID,"/action-event")},41785:(module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{EVENT_ID:()=>constants.RS});var constants=__webpack_require__(879),v4=(__webpack_require__(88052),__webpack_require__(64043),__webpack_require__(34284),__webpack_require__(99474),__webpack_require__(81919),__webpack_require__(60429),__webpack_require__(50886),__webpack_require__(59749),__webpack_require__(86544),__webpack_require__(60228),__webpack_require__(84254),__webpack_require__(752),__webpack_require__(21694),__webpack_require__(76265),__webpack_require__(98130)),v4_default=__webpack_require__.n(v4),esm=__webpack_require__(93518),config={depth:10,clearOnStoryChange:!0,limit:50};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};__webpack_require__(47522),__webpack_require__(69358),__webpack_require__(89730),__webpack_require__(77049);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]:{},actionOptions=Object.assign({},config,options);return function actionHandler(){for(var channel=esm.KP.getChannel(),id=v4_default()(),_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,count:0,data:{name,args:normalizedArgs},options:Object.assign({},actionOptions,{maxDepth:5+(actionOptions.depth||3),allowFunction:actionOptions.allowFunction||!1})};channel.emit(constants.RS,actionDisplayToEmit)}}(namesObject[name],options)})),actionsObject},browser=(__webpack_require__(41830),__webpack_require__(94927)),browser_default=__webpack_require__.n(browser);browser_default()((function(){}),"decorate.* is no longer supported as of Storybook 6.0."),__webpack_require__(36585),__webpack_require__(22462),__webpack_require__(34338);var global_window=__webpack_require__(58908),window_default=__webpack_require__.n(global_window),dist_esm=(__webpack_require__(51090),__webpack_require__(19649),__webpack_require__(76801),__webpack_require__(43843),__webpack_require__(23827));var globalWindow=window_default().window;var areDepsEqual=function areDepsEqual(deps,nextDeps){return deps.length===nextDeps.length&&deps.every((function(dep,i){return dep===nextDeps[i]}))},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)||dist_esm.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,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&&dist_esm.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&&dist_esm.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&&dist_esm.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&&areDepsEqual(deps,_hook2.deps)||(callback(_hook2),_hook2.deps=deps),_hook2}throw invalidHooksError()}(name,(function(hook){hook.memoizedState=nextCreate()}),deps);return _useHook.memoizedState}function useEffect(create,deps){var hooks=getHooksContextOrThrow(),effect=useMemoLike("useEffect",(function(){return{create}}),deps);hooks.currentEffects.includes(effect)||hooks.currentEffects.push(effect)}var withActions_templateObject,ts_dedent_esm=__webpack_require__(18464);function withActions_toConsumableArray(arr){return function withActions_arrayWithoutHoles(arr){if(Array.isArray(arr))return withActions_arrayLikeToArray(arr)}(arr)||function withActions_iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||withActions_unsupportedIterableToArray(arr)||function withActions_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 withActions_slicedToArray(arr,i){return function withActions_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function withActions_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)||withActions_unsupportedIterableToArray(arr,i)||function withActions_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 withActions_unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return withActions_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)?withActions_arrayLikeToArray(o,minLen):void 0}}function withActions_arrayLikeToArray(arr,len){(null==len||len>arr.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,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];useEffect((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 "]))));!function makeDecorator(_ref){var name=_ref.name,parameterName=_ref.parameterName,wrapper=_ref.wrapper,_ref$skipIfNoParamete=_ref.skipIfNoParametersOrOptions,skipIfNoParametersOrOptions=void 0!==_ref$skipIfNoParamete&&_ref$skipIfNoParamete,decorator=function decorator(options){return function(storyFn,context){var parameters=context.parameters&&context.parameters[parameterName];return parameters&¶meters.disable?storyFn(context):!skipIfNoParametersOrOptions||options||parameters?wrapper(storyFn,context,{options,parameters}):storyFn(context)}}}({name:"withActions",parameterName:constants.Sz,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(withActions_toConsumableArray(parameters.handles))),getStory(context)}});(module=__webpack_require__.hmd(module))&&module.hot},31037:(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__(59749),__webpack_require__(86544),__webpack_require__(60228),__webpack_require__(84254),__webpack_require__(752),__webpack_require__(21694),__webpack_require__(76265),__webpack_require__(89730),__webpack_require__(34284),__webpack_require__(77049),__webpack_require__(64043);var react=__webpack_require__(67294),esm=__webpack_require__(93518),types=__webpack_require__(65943),dist_esm=__webpack_require__(50114),fast_deep_equal=(__webpack_require__(88052),__webpack_require__(30050),__webpack_require__(64063)),fast_deep_equal_default=__webpack_require__.n(fast_deep_equal),theming_dist_esm=(__webpack_require__(69358),__webpack_require__(60429),__webpack_require__(50886),__webpack_require__(21765)),prop_types=__webpack_require__(45697),prop_types_default=__webpack_require__.n(prop_types),is_dom=__webpack_require__(7689),is_dom_default=__webpack_require__.n(is_dom);function unwrapExports(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}function createCommonjsModule(fn,module){return fn(module={exports:{}},module.exports),module.exports}var react_inspector_extends=unwrapExports(createCommonjsModule((function(module){function _extends(){return module.exports=_extends=Object.assign||function(target){for(var i=1;i=0||(target[key]=source[key]);return target},module.exports.default=module.exports,module.exports.__esModule=!0}));unwrapExports(objectWithoutPropertiesLoose);var _objectWithoutProperties=unwrapExports(createCommonjsModule((function(module){module.exports=function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=objectWithoutPropertiesLoose(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},module.exports.default=module.exports,module.exports.__esModule=!0}))),themes=Object.freeze({__proto__:null,chromeDark:{BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},chromeLight:{BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"}}),arrayWithHoles=createCommonjsModule((function(module){module.exports=function _arrayWithHoles(arr){if(Array.isArray(arr))return arr},module.exports.default=module.exports,module.exports.__esModule=!0}));unwrapExports(arrayWithHoles);var iterableToArrayLimit=createCommonjsModule((function(module){module.exports=function _iterableToArrayLimit(arr,i){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(arr)){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}},module.exports.default=module.exports,module.exports.__esModule=!0}));unwrapExports(iterableToArrayLimit);var arrayLikeToArray=createCommonjsModule((function(module){module.exports=function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel}},catch:function(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry)}return thrown}}throw new Error("illegal catch attempt")},delegateYield:function(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName,nextLoc},"next"===this.method&&(this.arg=undefined$1),ContinueSentinel}},exports}(module.exports);try{regeneratorRuntime=runtime}catch(accidentalStrictMode){Function("r","regeneratorRuntime = r")(runtime)}})),arrayWithoutHoles=createCommonjsModule((function(module){module.exports=function _arrayWithoutHoles(arr){if(Array.isArray(arr))return arrayLikeToArray(arr)},module.exports.default=module.exports,module.exports.__esModule=!0}));unwrapExports(arrayWithoutHoles);var iterableToArray=createCommonjsModule((function(module){module.exports=function _iterableToArray(iter){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(iter))return Array.from(iter)},module.exports.default=module.exports,module.exports.__esModule=!0}));unwrapExports(iterableToArray);var nonIterableSpread=createCommonjsModule((function(module){module.exports=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.")},module.exports.default=module.exports,module.exports.__esModule=!0}));unwrapExports(nonIterableSpread);var _toConsumableArray=unwrapExports(createCommonjsModule((function(module){module.exports=function _toConsumableArray(arr){return arrayWithoutHoles(arr)||iterableToArray(arr)||unsupportedIterableToArray(arr)||nonIterableSpread()},module.exports.default=module.exports,module.exports.__esModule=!0}))),_defineProperty=unwrapExports(createCommonjsModule((function(module){module.exports=function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj},module.exports.default=module.exports,module.exports.__esModule=!0}))),ExpandedPathsContext=(0,react.createContext)([{},function(){}]),unselectable={WebkitTouchCallout:"none",WebkitUserSelect:"none",KhtmlUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",OUserSelect:"none",userSelect:"none"};function ownKeys$7(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$7(target){for(var i=1;i0?{transition:"transform ".concat(theme.ARROW_ANIMATION_DURATION," ease 0s")}:{}),unselectable),expanded:{WebkitTransform:"rotateZ(90deg)",MozTransform:"rotateZ(90deg)",transform:"rotateZ(90deg)"},collapsed:{WebkitTransform:"rotateZ(0deg)",MozTransform:"rotateZ(0deg)",transform:"rotateZ(0deg)"}},treeNodeChildNodesContainer:{margin:0,paddingLeft:theme.TREENODE_PADDING_LEFT}},TableInspector:{base:{color:theme.BASE_COLOR,position:"relative",border:"1px solid ".concat(theme.TABLE_BORDER_COLOR),fontFamily:theme.BASE_FONT_FAMILY,fontSize:theme.BASE_FONT_SIZE,lineHeight:"120%",boxSizing:"border-box",cursor:"default"}},TableInspectorHeaderContainer:{base:{top:0,height:"17px",left:0,right:0,overflowX:"hidden"},table:{tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",height:"100%",width:"100%",margin:0}},TableInspectorDataContainer:{tr:{display:"table-row"},td:{boxSizing:"border-box",border:"none",height:"16px",verticalAlign:"top",padding:"1px 4px",WebkitUserSelect:"text",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px"},div:{position:"static",top:"17px",bottom:0,overflowY:"overlay",transform:"translateZ(0)",left:0,right:0,overflowX:"hidden"},table:{positon:"static",left:0,top:0,right:0,bottom:0,borderTop:"0 none transparent",margin:0,backgroundImage:theme.TABLE_DATA_BACKGROUND_IMAGE,backgroundSize:theme.TABLE_DATA_BACKGROUND_SIZE,tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",width:"100%",fontSize:theme.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorTH:{base:{position:"relative",height:"auto",textAlign:"left",backgroundColor:theme.TABLE_TH_BACKGROUND_COLOR,borderBottom:"1px solid ".concat(theme.TABLE_BORDER_COLOR),fontWeight:"normal",verticalAlign:"middle",padding:"0 4px",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px",":hover":{backgroundColor:theme.TABLE_TH_HOVER_COLOR}},div:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",fontSize:theme.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorLeftBorder:{none:{borderLeft:"none"},solid:{borderLeft:"1px solid ".concat(theme.TABLE_BORDER_COLOR)}},TableInspectorSortIcon:_objectSpread$7({display:"block",marginRight:3,width:8,height:7,marginTop:-7,color:theme.TABLE_SORT_ICON_COLOR,fontSize:12},unselectable)}},ThemeContext=(0,react.createContext)(base(themes.chromeLight)),useStyles=function useStyles(baseStylesKey){return(0,react.useContext)(ThemeContext)[baseStylesKey]},themeAcceptor=function themeAcceptor(WrappedComponent){var ThemeAcceptor=function ThemeAcceptor(_ref){var _ref$theme=_ref.theme,theme=void 0===_ref$theme?"chromeLight":_ref$theme,restProps=_objectWithoutProperties(_ref,["theme"]),themeStyles=(0,react.useMemo)((function(){switch(Object.prototype.toString.call(theme)){case"[object String]":return base(themes[theme]);case"[object Object]":return base(theme);default:return base(themes.chromeLight)}}),[theme]);return react.createElement(ThemeContext.Provider,{value:themeStyles},react.createElement(WrappedComponent,restProps))};return ThemeAcceptor.propTypes={theme:prop_types_default().oneOfType([prop_types_default().string,prop_types_default().object])},ThemeAcceptor};function ownKeys$6(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$6(target){for(var i=1;i0?react.createElement(Arrow,{expanded,styles:styles.treeNodeArrow}):shouldShowPlaceholder&&react.createElement("span",{style:styles.treeNodePlaceholder}," "),react.createElement(NodeRenderer,props)),react.createElement("ol",{role:"group",style:styles.treeNodeChildNodesContainer},expanded?children:void 0))}));function ownKeys$5(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 _createForOfIteratorHelper$1(o,allowArrayLike){var it;if("undefined"==typeof Symbol||null==o[Symbol.iterator]){if(Array.isArray(o)||(it=function _unsupportedIterableToArray$1(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray$1(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$1(o,minLen)}(o))||allowArrayLike&&o&&"number"==typeof o.length){it&&(o=it);var i=0,F=function F(){};return{s:F,n:function n(){return 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 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$1(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0,nodeRenderer},props),expanded?_toConsumableArray(dataIterator(data)).map((function(_ref){var name=_ref.name,data=_ref.data,renderNodeProps=_objectWithoutProperties(_ref,["name","data"]);return react.createElement(ConnectedTreeNode,react_inspector_extends({name,data,depth:depth+1,path:"".concat(path,".").concat(name),key:name,dataIterator,nodeRenderer},renderNodeProps))})):null)}));ConnectedTreeNode.propTypes={name:prop_types_default().string,data:prop_types_default().any,dataIterator:prop_types_default().func,depth:prop_types_default().number,expanded:prop_types_default().bool,nodeRenderer:prop_types_default().func};var TreeView=(0,react.memo)((function(_ref2){var name=_ref2.name,data=_ref2.data,dataIterator=_ref2.dataIterator,nodeRenderer=_ref2.nodeRenderer,expandPaths=_ref2.expandPaths,expandLevel=_ref2.expandLevel,styles=useStyles("TreeView"),stateAndSetter=(0,react.useState)({}),setExpandedPaths=_slicedToArray(stateAndSetter,2)[1];return(0,react.useLayoutEffect)((function(){return setExpandedPaths((function(prevExpandedPaths){return getExpandedPaths(data,dataIterator,expandPaths,expandLevel,prevExpandedPaths)}))}),[data,dataIterator,expandPaths,expandLevel]),react.createElement(ExpandedPathsContext.Provider,{value:stateAndSetter},react.createElement("ol",{role:"tree",style:styles.treeViewOutline},react.createElement(ConnectedTreeNode,{name,data,dataIterator,depth:0,path:DEFAULT_ROOT_PATH,nodeRenderer})))}));function ownKeys$3(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$3(target){for(var i=1;imaxProperties&&previewArray.push(react.createElement("span",{key:"ellipsis"},"…"));var arrayLength=object.length;return react.createElement(react.Fragment,null,react.createElement("span",{style:styles.objectDescription},0===arrayLength?"":"(".concat(arrayLength,") ")),react.createElement("span",{style:styles.preview},"[",intersperse(previewArray,", "),"]"))}var _maxProperties=styles.objectMaxProperties,propertyNodes=[];for(var propertyName in object)if(react_inspector_hasOwnProperty.call(object,propertyName)){var ellipsis=void 0;propertyNodes.length===_maxProperties-1&&Object.keys(object).length>_maxProperties&&(ellipsis=react.createElement("span",{key:"ellipsis"},"…"));var propertyValue=getPropertyValue(object,propertyName);if(propertyNodes.push(react.createElement("span",{key:propertyName},react.createElement(ObjectName,{name:propertyName||'""'}),": ",react.createElement(ObjectValue,{object:propertyValue}),ellipsis)),ellipsis)break}var objectConstructorName=object.constructor?object.constructor.name:"Object";return react.createElement(react.Fragment,null,react.createElement("span",{style:styles.objectDescription},"Object"===objectConstructorName?"":"".concat(objectConstructorName," ")),react.createElement("span",{style:styles.preview},"{",intersperse(propertyNodes,", "),"}"))},ObjectRootLabel=function ObjectRootLabel(_ref){var name=_ref.name,data=_ref.data;return"string"==typeof name?react.createElement("span",null,react.createElement(ObjectName,{name}),react.createElement("span",null,": "),react.createElement(ObjectPreview,{data})):react.createElement(ObjectPreview,{data})},ObjectLabel=function ObjectLabel(_ref){var name=_ref.name,data=_ref.data,_ref$isNonenumerable=_ref.isNonenumerable,isNonenumerable=void 0!==_ref$isNonenumerable&&_ref$isNonenumerable,object=data;return react.createElement("span",null,"string"==typeof name?react.createElement(ObjectName,{name,dimmed:isNonenumerable}):react.createElement(ObjectPreview,{data:name}),react.createElement("span",null,": "),react.createElement(ObjectValue,{object}))};function _createForOfIteratorHelper(o,allowArrayLike){var it;if("undefined"==typeof Symbol||null==o[Symbol.iterator]){if(Array.isArray(o)||(it=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)}(o))||allowArrayLike&&o&&"number"==typeof o.length){it&&(o=it);var i=0,F=function F(){};return{s:F,n:function n(){return 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 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);i=0?k=n:(k=len+n)<0&&(k=0);kv2?1:0};if(type1===type2)result=lt(v1,v2);else{var order={string:0,number:1,object:2,symbol:3,boolean:4,undefined:5,function:6};result=lt(order[type1],order[type2])}return ascending||(result=-result),result}}((function(item){return item[0]}),sortAscending)).map((function(item){return item[1]}));rowHeaders=sortedRowIndexes.map((function(i){return rowHeaders[i]})),rowsData=sortedRowIndexes.map((function(i){return rowsData[i]}))}return react.createElement("div",{style:styles.base},react.createElement(HeaderContainer,{columns:colHeaders,sorted,sortIndexColumn,sortColumn,sortAscending,onTHClick:handleTHClick,onIndexTHClick:handleIndexTHClick}),react.createElement(DataContainer,{rows:rowHeaders,columns:colHeaders,rowsData}))};TableInspector.propTypes={data:prop_types_default().oneOfType([prop_types_default().array,prop_types_default().object]),columns:prop_types_default().array};var TableInspector$1=themeAcceptor(TableInspector),shouldInline=function shouldInline(data){return 0===data.childNodes.length||1===data.childNodes.length&&data.childNodes[0].nodeType===Node.TEXT_NODE&&data.textContent.length<80},OpenTag=function OpenTag(_ref){var tagName=_ref.tagName,attributes=_ref.attributes,styles=_ref.styles;return react.createElement("span",{style:styles.base},"<",react.createElement("span",{style:styles.tagName},tagName),function(){if(attributes){for(var attributeNodes=[],i=0;i")},CloseTag=function CloseTag(_ref2){var tagName=_ref2.tagName,_ref2$isChildNode=_ref2.isChildNode,isChildNode=void 0!==_ref2$isChildNode&&_ref2$isChildNode,styles=_ref2.styles;return react.createElement("span",{style:react_inspector_extends({},styles.base,isChildNode&&styles.offsetLeft)},"")},nameByNodeType={1:"ELEMENT_NODE",3:"TEXT_NODE",7:"PROCESSING_INSTRUCTION_NODE",8:"COMMENT_NODE",9:"DOCUMENT_NODE",10:"DOCUMENT_TYPE_NODE",11:"DOCUMENT_FRAGMENT_NODE"},DOMNodePreview=function DOMNodePreview(_ref3){var isCloseTag=_ref3.isCloseTag,data=_ref3.data,expanded=_ref3.expanded,styles=useStyles("DOMNodePreview");if(isCloseTag)return react.createElement(CloseTag,{styles:styles.htmlCloseTag,isChildNode:!0,tagName:data.tagName});switch(data.nodeType){case Node.ELEMENT_NODE:return react.createElement("span",null,react.createElement(OpenTag,{tagName:data.tagName,attributes:data.attributes,styles:styles.htmlOpenTag}),shouldInline(data)?data.textContent:!expanded&&"…",!expanded&&react.createElement(CloseTag,{tagName:data.tagName,styles:styles.htmlCloseTag}));case Node.TEXT_NODE:return react.createElement("span",null,data.textContent);case Node.CDATA_SECTION_NODE:return react.createElement("span",null,"");case Node.COMMENT_NODE:return react.createElement("span",{style:styles.htmlComment},"\x3c!--",data.textContent,"--\x3e");case Node.PROCESSING_INSTRUCTION_NODE:return react.createElement("span",null,data.nodeName);case Node.DOCUMENT_TYPE_NODE:return react.createElement("span",{style:styles.htmlDoctype},"");case Node.DOCUMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:return react.createElement("span",null,data.nodeName);default:return react.createElement("span",null,nameByNodeType[data.nodeType])}};DOMNodePreview.propTypes={isCloseTag:prop_types_default().bool,name:prop_types_default().string,data:prop_types_default().object.isRequired,expanded:prop_types_default().bool.isRequired};var domIterator=regenerator.mark((function domIterator(data){var i,node;return regenerator.wrap((function domIterator$(_context){for(;;)switch(_context.prev=_context.next){case 0:if(!data||!data.childNodes){_context.next=17;break}if(!shouldInline(data)){_context.next=4;break}return _context.abrupt("return");case 4:i=0;case 5:if(!(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}}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)}var reduceHexValue$1=function reduceHexValue(value){return 7===value.length&&value[1]===value[2]&&value[3]===value[4]&&value[5]===value[6]?"#"+value[1]+value[3]+value[5]:value};function numberToHex(value){var hex=value.toString(16);return 1===hex.length?"0"+hex:hex}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)}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 opacify(amount,color){if("transparent"===color)return color;var parsedColor=parseToRgb(color);return rgba(extends_extends({},parsedColor,{alpha:guard(0,1,(100*("number"==typeof parsedColor.alpha?parsedColor.alpha:1)+100*parseFloat(amount))/100)}))}var curriedOpacify$1=curry(opacify);var Action=theming_dist_esm.zo.div({display:"flex",padding:0,borderLeft:"5px solid transparent",borderBottom:"1px solid transparent",transition:"all 0.1s",alignItems:"flex-start",whiteSpace:"pre"}),Counter=theming_dist_esm.zo.div((function(_ref){var theme=_ref.theme;return{backgroundColor:curriedOpacify$1(.5,theme.appBorderColor),color:theme.color.inverseText,fontSize:theme.typography.size.s1,fontWeight:theme.typography.weight.bold,lineHeight:1,padding:"1px 5px",borderRadius:20,margin:"2px 0px"}})),InspectorContainer=theming_dist_esm.zo.div({flex:1,padding:"0 0 0 5px"}),_excluded=["theme"];function ActionLogger_extends(){return ActionLogger_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 Wrapper=(0,theming_dist_esm.zo)((function(_ref){var children=_ref.children,className=_ref.className;return react.createElement(index_2a91f2bc.S,{horizontal:!0,vertical:!0,className},children)}))({margin:0,padding:"10px 5px 20px"}),ThemedInspector=(0,theming_dist_esm.Zz)((function(_ref2){var theme=_ref2.theme,props=ActionLogger_objectWithoutProperties(_ref2,_excluded);return react.createElement(react_inspector,ActionLogger_extends({theme:theme.addonActionsTheme||"chromeLight"},props))})),ActionLogger_ActionLogger=function ActionLogger(_ref3){var actions=_ref3.actions,onClear=_ref3.onClear;return react.createElement(react.Fragment,null,react.createElement(Wrapper,{title:"actionslogger"},actions.map((function(action){return react.createElement(Action,{key:action.id},action.count>1&&react.createElement(Counter,null,action.count),react.createElement(InspectorContainer,null,react.createElement(ThemedInspector,{sortObjectKeys:!0,showNonenumerable:!1,name:action.data.name,data:action.data.args||action.data})))}))),react.createElement(index_2a91f2bc.A,{actionItems:[{title:"Clear",onClick:onClear}]}))},addon_actions_dist_esm=__webpack_require__(41785);function ActionLogger_typeof(obj){return ActionLogger_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},ActionLogger_typeof(obj)}function ActionLogger_toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return ActionLogger_arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function ActionLogger_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return ActionLogger_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 ActionLogger_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 ActionLogger_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&actions[0].options.clearOnStoryChange&&_this.clearActions()},_this.addAction=function(action){_this.setState((function(prevState){var actions=ActionLogger_toConsumableArray(prevState.actions),previous=actions.length&&actions[0];return previous&&function safeDeepEqual(a,b){try{return fast_deep_equal_default()(a,b)}catch(e){return!1}}(previous.data,action.data)?previous.count++:(action.count=1,actions.unshift(action)),{actions:actions.slice(0,action.options.limit)}}))},_this.clearActions=function(){_this.setState({actions:[]})},_this.state={actions:[]},_this}return function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(ActionLogger,[{key:"componentDidMount",value:function componentDidMount(){this.mounted=!0;var api=this.props.api;api.on(addon_actions_dist_esm.EVENT_ID,this.addAction),api.on(dist_esm.STORY_CHANGED,this.handleStoryChange)}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.mounted=!1;var api=this.props.api;api.off(dist_esm.STORY_CHANGED,this.handleStoryChange),api.off(addon_actions_dist_esm.EVENT_ID,this.addAction)}},{key:"render",value:function render(){var _this$state$actions=this.state.actions,actions=void 0===_this$state$actions?[]:_this$state$actions,active=this.props.active,props={actions,onClear:this.clearActions};return active?react.createElement(ActionLogger_ActionLogger,props):null}}]),ActionLogger}(react.Component),constants=__webpack_require__(879);function manager_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 manager_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return manager_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 manager_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 manager_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i{"use strict";__webpack_require__(64043),__webpack_require__(22462);var react=__webpack_require__(67294),esm=__webpack_require__(93518),types=__webpack_require__(65943),ADDON_ID="storybook/background",PARAM_KEY="backgrounds",memoizerific=("".concat(ADDON_ID,"/update"),__webpack_require__(50886),__webpack_require__(34284),__webpack_require__(34338),__webpack_require__(752),__webpack_require__(60228),__webpack_require__(76265),__webpack_require__(60429),__webpack_require__(59749),__webpack_require__(86544),__webpack_require__(84254),__webpack_require__(21694),__webpack_require__(77049),__webpack_require__(89730),__webpack_require__(52326)),memoizerific_default=__webpack_require__.n(memoizerific),dist_esm=__webpack_require__(19482),global_window=(__webpack_require__(19649),__webpack_require__(57267),__webpack_require__(58908)),window_default=__webpack_require__.n(global_window),LOGLEVEL=window_default().LOGLEVEL,console=window_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;for(argArray.push(args[0].replace(startTagRe,"%c").replace(/<\/span>/gi,"%c"));reResultArray=startTagRe.exec(args[0]);)argArray.push(reResultArray[2]),argArray.push("");for(var j=1;j1&&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(", ");logger.warn((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 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"};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 _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 _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);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i{"use strict";__webpack_require__(38077),__webpack_require__(60228),__webpack_require__(86466);var react=__webpack_require__(67294),esm=__webpack_require__(93518),types=__webpack_require__(65943),index_2a91f2bc=__webpack_require__(53540),dist_esm=__webpack_require__(19482);__webpack_require__(65137),__webpack_require__(36585),__webpack_require__(60429),__webpack_require__(59749),__webpack_require__(86544),__webpack_require__(84254),__webpack_require__(752),__webpack_require__(21694),__webpack_require__(76265),__webpack_require__(89730),__webpack_require__(34284),__webpack_require__(77049),__webpack_require__(64043);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{"use strict";__webpack_require__(34338);var SourceType,esm=__webpack_require__(93518),types=__webpack_require__(65943),PANEL_ID="".concat("storybook/docs","/panel");"".concat("storybook/docs","/snippet-rendered");!function(SourceType){SourceType.AUTO="auto",SourceType.CODE="code",SourceType.DYNAMIC="dynamic"}(SourceType||(SourceType={})),esm.KP.register("storybook/docs",(function(){esm.KP.add(PANEL_ID,{type:types.V.TAB,title:"Docs",route:function route(_ref){var storyId=_ref.storyId,refId=_ref.refId;return refId?"/docs/".concat(refId,"_").concat(storyId):"/docs/".concat(storyId)},match:function match(_ref2){return"docs"===_ref2.viewMode},render:function render(){return null}})}))},10165:(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";var react=__webpack_require__(67294),esm=__webpack_require__(93518),types=__webpack_require__(65943),ADDON_ID="storybook/measure-addon",TOOL_ID="".concat(ADDON_ID,"/tool"),dist_esm=("".concat(ADDON_ID,"/result"),"".concat(ADDON_ID,"/request"),"".concat(ADDON_ID,"/clear"),__webpack_require__(59749),__webpack_require__(86544),__webpack_require__(60228),__webpack_require__(84254),__webpack_require__(752),__webpack_require__(21694),__webpack_require__(76265),__webpack_require__(89730),__webpack_require__(34284),__webpack_require__(77049),__webpack_require__(64043),__webpack_require__(19482)),index_2a91f2bc=__webpack_require__(53540);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{"use strict";__webpack_require__(64043),__webpack_require__(22462);var react=__webpack_require__(67294),esm=__webpack_require__(93518),types=__webpack_require__(65943),ADDON_ID="storybook/outline",dist_esm=(__webpack_require__(59749),__webpack_require__(86544),__webpack_require__(60228),__webpack_require__(84254),__webpack_require__(752),__webpack_require__(21694),__webpack_require__(76265),__webpack_require__(89730),__webpack_require__(34284),__webpack_require__(77049),__webpack_require__(19482)),index_2a91f2bc=__webpack_require__(53540);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{"use strict";var react=__webpack_require__(67294),esm=__webpack_require__(93518),types=__webpack_require__(65943),dist_esm=(__webpack_require__(38077),__webpack_require__(60228),__webpack_require__(69358),__webpack_require__(50886),__webpack_require__(60429),__webpack_require__(19482)),index_2a91f2bc=__webpack_require__(53540),ToolbarMenuButton=(__webpack_require__(34284),__webpack_require__(59749),__webpack_require__(86544),__webpack_require__(84254),__webpack_require__(752),__webpack_require__(21694),__webpack_require__(76265),__webpack_require__(89730),__webpack_require__(77049),__webpack_require__(64043),function ToolbarMenuButton(_ref){var active=_ref.active,title=_ref.title,icon=_ref.icon,description=_ref.description,onClick=_ref.onClick;return react.createElement(index_2a91f2bc.ai,{active,title:description,onClick},icon&&react.createElement(index_2a91f2bc.I,{icon}),title?" ".concat(title):null)}),disallowedCycleableItemTypes=(__webpack_require__(76801),["reset"]),ADDON_ID=(__webpack_require__(35666),__webpack_require__(73964),"addon-toolbars");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)}var registerShortcuts=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(api,id,shortcuts){return regeneratorRuntime.wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:if(!shortcuts||!shortcuts.next){_context.next=3;break}return _context.next=3,api.setAddonShortcut(ADDON_ID,{label:shortcuts.next.label,defaultShortcut:shortcuts.next.keys,actionName:"".concat(id,":next"),action:shortcuts.next.action});case 3:if(!shortcuts||!shortcuts.previous){_context.next=6;break}return _context.next=6,api.setAddonShortcut(ADDON_ID,{label:shortcuts.previous.label,defaultShortcut:shortcuts.previous.keys,actionName:"".concat(id,":previous"),action:shortcuts.previous.action});case 6:if(!shortcuts||!shortcuts.reset){_context.next=9;break}return _context.next=9,api.setAddonShortcut(ADDON_ID,{label:shortcuts.reset.label,defaultShortcut:shortcuts.reset.keys,actionName:"".concat(id,":reset"),action:shortcuts.reset.action});case 9:case"end":return _context.stop()}}),_callee)})));return function registerShortcuts(_x,_x2,_x3){return _ref.apply(this,arguments)}}();function _extends(){return _extends=Object.assign||function(target){for(var i=1;iarr.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-1?indexOf:0,newCurrentIndex=0===currentIndex?values.length-1:currentIndex-1,newCurrent=cycleValues.current[newCurrentIndex];updateGlobals(_defineProperty({},id,newCurrent))}),[cycleValues,currentValue,updateGlobals]);return(0,react.useEffect)((function(){shortcuts&®isterShortcuts(api,id,{next:Object.assign({},shortcuts.next,{action:setNext}),previous:Object.assign({},shortcuts.previous,{action:setPrevious}),reset:Object.assign({},shortcuts.reset,{action:reset})})}),[api,id,shortcuts,setNext,setPrevious,reset]),(0,react.useEffect)((function(){cycleValues.current=function createCycleValueArray(items){return items.filter((function(item){return!disallowedCycleableItemTypes.includes(item.type)})).map((function(item){return item.value}))}(items)}),[]),react.createElement(Component,_extends({cycleValues:cycleValues.current},props))}}((function(_ref){var id=_ref.id,name=_ref.name,description=_ref.description,_ref$toolbar=_ref.toolbar,_icon=_ref$toolbar.icon,items=_ref$toolbar.items,_title=_ref$toolbar.title,showName=_ref$toolbar.showName,preventDynamicIcon=_ref$toolbar.preventDynamicIcon,dynamicTitle=_ref$toolbar.dynamicTitle,_useGlobals2=ToolbarMenuList_slicedToArray((0,dist_esm.kO)(),2),globals=_useGlobals2[0],updateGlobals=_useGlobals2[1],currentValue=globals[id],hasGlobalValue=!!currentValue,icon=_icon,title=_title;preventDynamicIcon||(icon=function getSelectedIcon(_ref2){var currentValue=_ref2.currentValue,items=_ref2.items,selectedItem=getSelectedItem({currentValue,items});return null==selectedItem?void 0:selectedItem.icon}({currentValue,items})||icon),showName&&!title?(title=name,console.warn("`showName` is deprecated as `name` will stop having dual purposes in the future. Please specify a `title` in `globalTypes` instead.")):showName||icon||title||(title=name,console.warn('Using the `name` "'.concat(name,'" as toolbar title for backward compatibility. `name` will stop having dual purposes in the future. Please specify either a `title` or an `icon` in `globalTypes` instead.'))),dynamicTitle&&(title=function getSelectedTitle(_ref3){var currentValue=_ref3.currentValue,items=_ref3.items,selectedItem=getSelectedItem({currentValue,items});return null==selectedItem?void 0:selectedItem.title}({currentValue,items})||title);var handleItemClick=(0,react.useCallback)((function(value){updateGlobals(function ToolbarMenuList_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}({},id,value))}),[currentValue,updateGlobals]);return react.createElement(index_2a91f2bc.W,{placement:"top",trigger:"click",tooltip:function tooltip(_ref2){var onHide=_ref2.onHide,links=items.filter((function(_ref3){var shouldReturn=!0;return"reset"!==_ref3.type||currentValue||(shouldReturn=!1),shouldReturn})).map((function(item){var listItem=function ToolbarMenuListItem(_ref){var left=_ref.left,right=_ref.right,title=_ref.title,value=_ref.value,icon=_ref.icon,hideIcon=_ref.hideIcon,onClick=_ref.onClick,currentValue=_ref.currentValue,Icon=react.createElement(index_2a91f2bc.I,{style:{opacity:1},icon}),hasContent=left||right||title,Item={id:value,active:currentValue===value,onClick};return left&&(Item.left=left),right&&(Item.right=right),title&&(Item.title=title),icon&&!hideIcon&&(hasContent&&!right?Item.right=Icon:hasContent&&!left?Item.left=Icon:hasContent||(Item.right=Icon)),Item}(Object.assign({},item,{currentValue,onClick:function onClick(){handleItemClick(item.value),onHide()}}));return listItem}));return react.createElement(index_2a91f2bc.ad,{links})},closeOnClick:!0},react.createElement(ToolbarMenuButton,{active:hasGlobalValue,description,icon,title}))})),defaultItemValues={type:"item",value:""};function ToolbarManager_extends(){return ToolbarManager_extends=Object.assign||function(target){for(var i=1;i{"use strict";var react=__webpack_require__(67294),esm=__webpack_require__(93518),types=__webpack_require__(65943),ADDON_ID="storybook/viewport",memoizerific=("".concat(ADDON_ID,"/update"),"".concat(ADDON_ID,"/configure"),"".concat(ADDON_ID,"/setStoryDefaultViewport"),"".concat(ADDON_ID,"/viewportChanged"),__webpack_require__(59749),__webpack_require__(86544),__webpack_require__(84254),__webpack_require__(752),__webpack_require__(21694),__webpack_require__(76265),__webpack_require__(77049),__webpack_require__(89730),__webpack_require__(34338),__webpack_require__(50886),__webpack_require__(36585),__webpack_require__(34284),__webpack_require__(60429),__webpack_require__(38077),__webpack_require__(60228),__webpack_require__(95682),__webpack_require__(25728),__webpack_require__(69358),__webpack_require__(64043),__webpack_require__(57267),__webpack_require__(52326)),memoizerific_default=__webpack_require__.n(memoizerific),dist_esm=__webpack_require__(21765),index_2a91f2bc=__webpack_require__(53540),api_dist_esm=__webpack_require__(19482);__webpack_require__(73964),__webpack_require__(35666);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)}var getCurrentViewportIndex=function getCurrentViewportIndex(viewportsKeys,current){return viewportsKeys.indexOf(current)},getNextViewport=function getNextViewport(viewportsKeys,current){var currentViewportIndex=getCurrentViewportIndex(viewportsKeys,current);return currentViewportIndex===viewportsKeys.length-1?viewportsKeys[0]:viewportsKeys[currentViewportIndex+1]},getPreviousViewport=function getPreviousViewport(viewportsKeys,current){var currentViewportIndex=getCurrentViewportIndex(viewportsKeys,current);return currentViewportIndex<1?viewportsKeys[viewportsKeys.length-1]:viewportsKeys[currentViewportIndex-1]},registerShortcuts=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(api,setState,viewportsKeys){return regeneratorRuntime.wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=2,api.setAddonShortcut(ADDON_ID,{label:"Previous viewport",defaultShortcut:["shift","V"],actionName:"previous",action:function action(){var _api$getAddonState=api.getAddonState(ADDON_ID),selected=_api$getAddonState.selected,isRotated=_api$getAddonState.isRotated;setState({selected:getPreviousViewport(viewportsKeys,selected),isRotated})}});case 2:return _context.next=4,api.setAddonShortcut(ADDON_ID,{label:"Next viewport",defaultShortcut:["V"],actionName:"next",action:function action(){var _api$getAddonState2=api.getAddonState(ADDON_ID),selected=_api$getAddonState2.selected,isRotated=_api$getAddonState2.isRotated;setState({selected:getNextViewport(viewportsKeys,selected),isRotated})}});case 4:return _context.next=6,api.setAddonShortcut(ADDON_ID,{label:"Reset viewport",defaultShortcut:["alt","V"],actionName:"reset",action:function action(){var isRotated=api.getAddonState(ADDON_ID).isRotated;setState({selected:"reset",isRotated})}});case 6:case"end":return _context.stop()}}),_callee)})));return function registerShortcuts(_x,_x2,_x3){return _ref.apply(this,arguments)}}(),MINIMAL_VIEWPORTS={mobile1:{name:"Small mobile",styles:{height:"568px",width:"320px"},type:"mobile"},mobile2:{name:"Large mobile",styles:{height:"896px",width:"414px"},type:"mobile"},tablet:{name:"Tablet",styles:{height:"1112px",width:"834px"},type:"tablet"}},_excluded=["name"],_excluded2=["width","height"];function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{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}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 _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 _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{"use strict";__webpack_require__.d(__webpack_exports__,{$:()=>Channel,Z:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__(41830),__webpack_require__(89730),__webpack_require__(60228),__webpack_require__(12826),__webpack_require__(40088),__webpack_require__(69358),__webpack_require__(38077),__webpack_require__(47522);var _templateObject,util_deprecate__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(94927),util_deprecate__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(util_deprecate__WEBPACK_IMPORTED_MODULE_8__),ts_dedent__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(18464);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;!function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Channel),this.isAsync=void 0,this.sender=function generateRandomId(){return Math.random().toString(16).slice(2)}(),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=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\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,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}();const __WEBPACK_DEFAULT_EXPORT__=Channel},23827:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{IC:()=>pretty,IH:()=>once,kg:()=>logger});__webpack_require__(34338),__webpack_require__(752),__webpack_require__(60228),__webpack_require__(19649),__webpack_require__(21694),__webpack_require__(76265),__webpack_require__(64043),__webpack_require__(57267);var global__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(58908),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;for(argArray.push(args[0].replace(startTagRe,"%c").replace(/<\/span>/gi,"%c"));reResultArray=startTagRe.exec(args[0]);)argArray.push(reResultArray[2]),argArray.push("");for(var j=1;j{"use strict";__webpack_require__(35666),__webpack_require__(6477),__webpack_require__(79946)},85519:(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";var _templateObject,global_window=__webpack_require__(58908),window_default=__webpack_require__.n(global_window),react=(__webpack_require__(35666),__webpack_require__(78832),__webpack_require__(60228),__webpack_require__(47522),__webpack_require__(69358),__webpack_require__(81919),__webpack_require__(59749),__webpack_require__(86544),__webpack_require__(60429),__webpack_require__(79997),__webpack_require__(50886),__webpack_require__(6203),__webpack_require__(64043),__webpack_require__(9873),__webpack_require__(34284),__webpack_require__(84254),__webpack_require__(752),__webpack_require__(21694),__webpack_require__(76265),__webpack_require__(52003),__webpack_require__(12826),__webpack_require__(56646),__webpack_require__(19649),__webpack_require__(69365),__webpack_require__(25847),__webpack_require__(22462),__webpack_require__(57267),__webpack_require__(38077),__webpack_require__(34338),__webpack_require__(76801),__webpack_require__(43843),__webpack_require__(62506),__webpack_require__(89730),__webpack_require__(28436),__webpack_require__(99474),__webpack_require__(88052),__webpack_require__(30050),__webpack_require__(73964),__webpack_require__(41830),__webpack_require__(51090),__webpack_require__(77049),__webpack_require__(95682),__webpack_require__(86466),__webpack_require__(97389),__webpack_require__(62795),__webpack_require__(13383),__webpack_require__(97895),__webpack_require__(25728),__webpack_require__(36585),__webpack_require__(38320),__webpack_require__(59588),__webpack_require__(268),__webpack_require__(39772),__webpack_require__(66793),__webpack_require__(7629),__webpack_require__(77509),__webpack_require__(61514),__webpack_require__(53584),__webpack_require__(79288),__webpack_require__(65137),__webpack_require__(28607),__webpack_require__(36664),__webpack_require__(55980),__webpack_require__(79943),__webpack_require__(96089),__webpack_require__(18539),__webpack_require__(48690),__webpack_require__(45385),__webpack_require__(85552),__webpack_require__(31803),__webpack_require__(91565),__webpack_require__(67987),__webpack_require__(49365),__webpack_require__(80677),__webpack_require__(18118),__webpack_require__(41165),__webpack_require__(71522),__webpack_require__(79976),__webpack_require__(4797),__webpack_require__(7300),__webpack_require__(93356),__webpack_require__(62533),__webpack_require__(99724),__webpack_require__(99901),__webpack_require__(89503),__webpack_require__(29068),__webpack_require__(70292),__webpack_require__(55304),__webpack_require__(89988),__webpack_require__(854),__webpack_require__(30938),__webpack_require__(75679),__webpack_require__(18557),__webpack_require__(50414),__webpack_require__(43792),__webpack_require__(37960),__webpack_require__(2918),__webpack_require__(16386),__webpack_require__(76101),__webpack_require__(67294)),react_dom=__webpack_require__(73935),esm=__webpack_require__(23541),dist_esm=__webpack_require__(19482),theming_dist_esm=__webpack_require__(21765),index_2a91f2bc=__webpack_require__(53540),client_logger_dist_esm=__webpack_require__(23827),core_events_dist_esm=__webpack_require__(50114),types=__webpack_require__(65943),addons_dist_esm=__webpack_require__(93518),util=__webpack_require__(89539),util_default=__webpack_require__.n(util),semver=__webpack_require__(94339),semver_default=__webpack_require__.n(semver),process=__webpack_require__(34155);function _defineProperty2(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray2(arr)}(arr)||_iterableToArray(arr)||_unsupportedIterableToArray2(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 _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}function _slicedToArray2(arr,i){return _arrayWithHoles2(arr)||function _iterableToArrayLimit2(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)||_unsupportedIterableToArray2(arr,i)||_nonIterableRest2()}function _nonIterableRest2(){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 _unsupportedIterableToArray2(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray2(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)?_arrayLikeToArray2(o,minLen):void 0}}function _arrayLikeToArray2(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(i[r]=t[r]);return i}var l$2={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},p$2={rel:["amphtml","canonical","alternate"]},f$2={type:["application/ld+json"]},d$2={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},h$2=Object.keys(l$2).map((function(t){return l$2[t]})),m$2={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},y$2=Object.keys(m$2).reduce((function(t,e){return t[m$2[e]]=e,t}),{}),T$1=function T$1(t,e){for(var r=t.length-1;r>=0;r-=1){var n=t[r];if(Object.prototype.hasOwnProperty.call(n,e))return n[e]}return null},g$2=function g$2(t){var e=T$1(t,l$2.TITLE),r=T$1(t,"titleTemplate");if(Array.isArray(e)&&(e=e.join("")),r&&e)return r.replace(/%s/g,(function(){return e}));var n=T$1(t,"defaultTitle");return e||n||void 0},b$2=function b$2(t){return T$1(t,"onChangeClientState")||function(){}},v$2=function v$2(t,e){return e.filter((function(e){return void 0!==e[t]})).map((function(e){return e[t]})).reduce((function(t,e){return a$1({},t,e)}),{})},A$2=function A$2(t,e){return e.filter((function(t){return void 0!==t[l$2.BASE]})).map((function(t){return t[l$2.BASE]})).reverse().reduce((function(e,r){if(!e.length)for(var n=Object.keys(r),i=0;i/g,">").replace(/"/g,""").replace(/'/g,"'")},x$2=function x$2(t){return Object.keys(t).reduce((function(e,r){var n=void 0!==t[r]?r+'="'+t[r]+'"':""+r;return e?e+" "+n:n}),"")},L$1=function L$1(t,e){return void 0===e&&(e={}),Object.keys(t).reduce((function(e,r){return e[m$2[r]||r]=t[r],e}),e)},j$1=function j$1(e,r){return r.map((function(r,n){var i,o=((i={key:n})["data-rh"]=!0,i);return Object.keys(r).forEach((function(t){var e=m$2[t]||t;"innerHTML"===e||"cssText"===e?o.dangerouslySetInnerHTML={__html:r.innerHTML||r.cssText}:o[e]=r[t]})),react.createElement(e,o)}))},M$1=function M$1(e,r,n){switch(e){case l$2.TITLE:return{toComponent:function toComponent(){return n=r.titleAttributes,(i={key:e=r.title})["data-rh"]=!0,o=L$1(n,i),[react.createElement(l$2.TITLE,o,e)];var e,n,i,o},toString:function toString(){return function(t,e,r,n){var i=x$2(r),o=S$1(e);return i?"<"+t+' data-rh="true" '+i+">"+w$2(o,n)+"":"<"+t+' data-rh="true">'+w$2(o,n)+""}(e,r.title,r.titleAttributes,n)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function toComponent(){return L$1(r)},toString:function toString(){return x$2(r)}};default:return{toComponent:function toComponent(){return j$1(e,r)},toString:function toString(){return function(t,e,r){return e.reduce((function(e,n){var i=Object.keys(n).filter((function(t){return!("innerHTML"===t||"cssText"===t)})).reduce((function(t,e){var i=void 0===n[e]?e:e+'="'+w$2(n[e],r)+'"';return t?t+" "+i:i}),""),o=n.innerHTML||n.cssText||"",a=-1===P$1.indexOf(t);return e+"<"+t+' data-rh="true" '+i+(a?"/>":">"+o+"")}),"")}(e,r,n)}}}},k$2=function k$2(t){var e=t.baseTag,r=t.bodyAttributes,n=t.encode,i=t.htmlAttributes,o=t.noscriptTags,a=t.styleTags,s=t.title,c=void 0===s?"":s,u=t.titleAttributes,h=t.linkTags,m=t.metaTags,y=t.scriptTags,T={toComponent:function toComponent(){},toString:function toString(){return""}};if(t.prioritizeSeoTags){var g=function(t){var e=t.linkTags,r=t.scriptTags,n=t.encode,i=E$2(t.metaTags,d$2),o=E$2(e,p$2),a=E$2(r,f$2);return{priorityMethods:{toComponent:function toComponent(){return[].concat(j$1(l$2.META,i.priority),j$1(l$2.LINK,o.priority),j$1(l$2.SCRIPT,a.priority))},toString:function toString(){return M$1(l$2.META,i.priority,n)+" "+M$1(l$2.LINK,o.priority,n)+" "+M$1(l$2.SCRIPT,a.priority,n)}},metaTags:i.default,linkTags:o.default,scriptTags:a.default}}(t);T=g.priorityMethods,h=g.linkTags,m=g.metaTags,y=g.scriptTags}return{priority:T,base:M$1(l$2.BASE,e,n),bodyAttributes:M$1("bodyAttributes",r,n),htmlAttributes:M$1("htmlAttributes",i,n),link:M$1(l$2.LINK,h,n),meta:M$1(l$2.META,m,n),noscript:M$1(l$2.NOSCRIPT,o,n),script:M$1(l$2.SCRIPT,y,n),style:M$1(l$2.STYLE,a,n),title:M$1(l$2.TITLE,{title:c,titleAttributes:u},n)}},H$2=[],N$1=function N$1(t,e){var r=this;void 0===e&&(e="undefined"!=typeof document),this.instances=[],this.value={setHelmet:function setHelmet(t){r.context.helmet=t},helmetInstances:{get:function get(){return r.canUseDOM?H$2:r.instances},add:function add(t){(r.canUseDOM?H$2:r.instances).push(t)},remove:function remove(t){var e=(r.canUseDOM?H$2:r.instances).indexOf(t);(r.canUseDOM?H$2:r.instances).splice(e,1)}}},this.context=t,this.canUseDOM=e,e||(t.helmet=k$2({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},R$1=react.createContext({}),D$2=PropTypes.shape({setHelmet:PropTypes.func,helmetInstances:PropTypes.shape({get:PropTypes.func,add:PropTypes.func,remove:PropTypes.func})}),U$1="undefined"!=typeof document,q$2=function(e){function r(t){var n;return(n=e.call(this,t)||this).helmetData=new N$1(n.props.context,r.canUseDOM),n}return s$1(r,e),r.prototype.render=function(){return react.createElement(R$1.Provider,{value:this.helmetData.value},this.props.children)},r}(react.Component);q$2.canUseDOM=U$1,q$2.propTypes={context:PropTypes.shape({helmet:PropTypes.shape()}),children:PropTypes.node.isRequired},q$2.defaultProps={context:{}},q$2.displayName="HelmetProvider";var Y$1=function Y$1(t,e){var r,n=document.head||document.querySelector(l$2.HEAD),i=n.querySelectorAll(t+"[data-rh]"),o=[].slice.call(i),a=[];return e&&e.length&&e.forEach((function(e){var n=document.createElement(t);for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&("innerHTML"===i?n.innerHTML=e.innerHTML:"cssText"===i?n.styleSheet?n.styleSheet.cssText=e.cssText:n.appendChild(document.createTextNode(e.cssText)):n.setAttribute(i,void 0===e[i]?"":e[i]));n.setAttribute("data-rh","true"),o.some((function(t,e){return r=e,n.isEqualNode(t)}))?o.splice(r,1):a.push(n)})),o.forEach((function(t){return t.parentNode.removeChild(t)})),a.forEach((function(t){return n.appendChild(t)})),{oldTags:o,newTags:a}},B$2=function B$2(t,e){var r=document.getElementsByTagName(t)[0];if(r){for(var n=r.getAttribute("data-rh"),i=n?n.split(","):[],o=[].concat(i),a=Object.keys(e),s=0;s=0;p-=1)r.removeAttribute(o[p]);i.length===o.length?r.removeAttribute("data-rh"):r.getAttribute("data-rh")!==a.join(",")&&r.setAttribute("data-rh",a.join(","))}},K$1=function K$1(t,e){var r=t.baseTag,n=t.htmlAttributes,i=t.linkTags,o=t.metaTags,a=t.noscriptTags,s=t.onChangeClientState,c=t.scriptTags,u=t.styleTags,p=t.title,f=t.titleAttributes;B$2(l$2.BODY,t.bodyAttributes),B$2(l$2.HTML,n),function(t,e){void 0!==t&&document.title!==t&&(document.title=S$1(t)),B$2(l$2.TITLE,e)}(p,f);var d={baseTag:Y$1(l$2.BASE,r),linkTags:Y$1(l$2.LINK,i),metaTags:Y$1(l$2.META,o),noscriptTags:Y$1(l$2.NOSCRIPT,a),scriptTags:Y$1(l$2.SCRIPT,c),styleTags:Y$1(l$2.STYLE,u)},h={},m={};Object.keys(d).forEach((function(t){var e=d[t],r=e.newTags,n=e.oldTags;r.length&&(h[t]=r),n.length&&(m[t]=d[t].oldTags)})),e&&e(),s(t,h,m)},_$1=null,z$2=function(t){function e(){for(var e,r=arguments.length,n=new Array(r),i=0;i elements are self-closing and can not contain children. Refer to our API for more information.")}},o.flattenArrayTypeChildren=function(t){var e,r=t.child,n=t.arrayTypeChildren;return a$1({},n,((e={})[r.type]=[].concat(n[r.type]||[],[a$1({},t.newChildProps,this.mapNestedChildrenToProps(r,t.nestedChildren))]),e))},o.mapObjectTypeChildren=function(t){var e,r,n=t.child,i=t.newProps,o=t.newChildProps,s=t.nestedChildren;switch(n.type){case l$2.TITLE:return a$1({},i,((e={})[n.type]=s,e.titleAttributes=a$1({},o),e));case l$2.BODY:return a$1({},i,{bodyAttributes:a$1({},o)});case l$2.HTML:return a$1({},i,{htmlAttributes:a$1({},o)});default:return a$1({},i,((r={})[n.type]=a$1({},o),r))}},o.mapArrayTypeChildrenToProps=function(t,e){var r=a$1({},e);return Object.keys(t).forEach((function(e){var n;r=a$1({},r,((n={})[e]=t[e],n))})),r},o.warnOnInvalidChildren=function(t,e){return invariant_1(h$2.some((function(e){return t.type===e})),"function"==typeof t.type?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+h$2.join(", ")+" are allowed. Helmet does not support rendering <"+t.type+"> elements. Refer to our API for more information."),invariant_1(!e||"string"==typeof e||Array.isArray(e)&&!e.some((function(t){return"string"!=typeof t})),"Helmet expects a string as a child of <"+t.type+">. Did you forget to wrap your children in braces? ( <"+t.type+">{``} ) Refer to our API for more information."),!0},o.mapChildrenToProps=function(e,r){var n=this,i={};return react.Children.forEach(e,(function(t){if(t&&t.props){var e=t.props,o=e.children,a=u$2(e,F$2),s=Object.keys(a).reduce((function(t,e){return t[y$2[e]||e]=a[e],t}),{}),c=t.type;switch("symbol"==_typeof2(c)?c=c.toString():n.warnOnInvalidChildren(t,o),c){case l$2.FRAGMENT:r=n.mapChildrenToProps(o,r);break;case l$2.LINK:case l$2.META:case l$2.NOSCRIPT:case l$2.SCRIPT:case l$2.STYLE:i=n.flattenArrayTypeChildren({child:t,arrayTypeChildren:i,newChildProps:s,nestedChildren:o});break;default:r=n.mapObjectTypeChildren({child:t,newProps:r,newChildProps:s,nestedChildren:o})}}})),this.mapArrayTypeChildrenToProps(i,r)},o.render=function(){var e=this.props,r=e.children,n=u$2(e,G$2),i=a$1({},n),o=n.helmetData;return r&&(i=this.mapChildrenToProps(r,i)),!o||o instanceof N$1||(o=new N$1(o.context,o.instances)),o?react.createElement(z$2,a$1({},i,{context:o.value,helmetData:void 0})):react.createElement(R$1.Consumer,null,(function(e){return react.createElement(z$2,a$1({},i,{context:e}))}))},r}(react.Component);W$1.propTypes={base:PropTypes.object,bodyAttributes:PropTypes.object,children:PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node),PropTypes.node]),defaultTitle:PropTypes.string,defer:PropTypes.bool,encodeSpecialCharacters:PropTypes.bool,htmlAttributes:PropTypes.object,link:PropTypes.arrayOf(PropTypes.object),meta:PropTypes.arrayOf(PropTypes.object),noscript:PropTypes.arrayOf(PropTypes.object),onChangeClientState:PropTypes.func,script:PropTypes.arrayOf(PropTypes.object),style:PropTypes.arrayOf(PropTypes.object),title:PropTypes.string,titleAttributes:PropTypes.object,titleTemplate:PropTypes.string,prioritizeSeoTags:PropTypes.bool,helmetData:PropTypes.object},W$1.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},W$1.displayName="Helmet";var cjs$1={};function throttle$1(delay,noTrailing,callback,debounceMode){var timeoutID,cancelled=!1,lastExec=0;function clearExistingTimeout(){timeoutID&&clearTimeout(timeoutID)}function wrapper(){for(var _len=arguments.length,arguments_=new Array(_len),_key=0;_key<_len;_key++)arguments_[_key]=arguments[_key];var self=this,elapsed=Date.now()-lastExec;function exec(){lastExec=Date.now(),callback.apply(self,arguments_)}cancelled||(debounceMode&&!timeoutID&&exec(),clearExistingTimeout(),void 0===debounceMode&&elapsed>delay?exec():!0!==noTrailing&&(timeoutID=setTimeout(debounceMode?function clear(){timeoutID=void 0}:exec,void 0===debounceMode?delay-elapsed:delay)))}return"boolean"!=typeof noTrailing&&(debounceMode=callback,callback=noTrailing,noTrailing=void 0),wrapper.cancel=function cancel(){clearExistingTimeout(),cancelled=!0},wrapper}Object.defineProperty(cjs$1,"__esModule",{value:!0}),cjs$1.debounce=function debounce$3(delay,atBegin,callback){return void 0===callback?throttle$1(delay,atBegin,!1):throttle$1(delay,callback,!1!==atBegin)},cjs$1.throttle=throttle$1;var collectionUtils={exports:{}};(collectionUtils.exports={}).forEach=function(collection,callback){for(var i=0;i4?v:undefined}();return version===ieVersion},detector.isLegacyOpera=function(){return!!window.opera};var utils$5={exports:{}};(utils$5.exports={}).getOption=function getOption$1(options,name,defaultValue){var value=options[name];if(null==value&&void 0!==defaultValue)return defaultValue;return value};var utils$3=utils$5.exports;function Batch(){var batch={},size=0,topLevel=0,bottomLevel=0;return{add:function add(level,fn){fn||(fn=level,level=0),level>topLevel?topLevel=level:level div::-webkit-scrollbar { "+buildCssTextString(["display: none"])+" }\n\n",style+="."+containerAnimationActiveClass+" { "+buildCssTextString(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+containerAnimationClass,"animation-name: "+containerAnimationClass])+" }\n",style+="@-webkit-keyframes "+containerAnimationClass+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",injectStyle(style+="@keyframes "+containerAnimationClass+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(targetDocument,"erd_scroll_detection_scrollbar_style",detectionContainerClass)}function buildCssTextString(rules){var seperator=options.important?" !important; ":"; ";return(rules.join(seperator)+seperator).trim()}function addEvent(el,name,cb){if(el.addEventListener)el.addEventListener(name,cb);else{if(!el.attachEvent)return reporter.error("[scroll] Don't know how to add event listeners.");el.attachEvent("on"+name,cb)}}function removeEvent(el,name,cb){if(el.removeEventListener)el.removeEventListener(name,cb);else{if(!el.detachEvent)return reporter.error("[scroll] Don't know how to remove event listeners.");el.detachEvent("on"+name,cb)}}function getExpandElement(element){return getState(element).container.childNodes[0].childNodes[0].childNodes[0]}function getShrinkElement(element){return getState(element).container.childNodes[0].childNodes[0].childNodes[1]}return initDocument(window.document),{makeDetectable:function makeDetectable(options,element,callback){function debug(){if(options.debug){var args=Array.prototype.slice.call(arguments);if(args.unshift(idHandler.get(element),"Scroll: "),reporter.log.apply)reporter.log.apply(null,args);else 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}function _assertThisInitialized$3(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _createSuper$1(Derived){var hasNativeReflectConstruct=function _isNativeReflectConstruct$2(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function _createSuperInternal(){var result,Super=_getPrototypeOf$2(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf$2(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return function _possibleConstructorReturn$1(self,call){if(call&&("object"===_typeof2(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$3(self)}(this,result)}}var instances={};var _excluded$1=["explicitRef","className","style","size","disablePlaceholder","onSize"],defaultConfig={monitorWidth:!0,monitorHeight:!1,refreshRate:16,refreshMode:"throttle",noPlaceholder:!1,resizeDetectorStrategy:"scroll"};function getDisplayName(WrappedComponent){return WrappedComponent.displayName||WrappedComponent.name||"Component"}var ReferenceWrapper=function(_Component){_inherits$1(ReferenceWrapper,_Component);var _super=_createSuper$1(ReferenceWrapper);function ReferenceWrapper(){return _classCallCheck$1(this,ReferenceWrapper),_super.apply(this,arguments)}return _createClass$1(ReferenceWrapper,[{key:"render",value:function render(){return React$1.Children.only(this.props.children)}}]),ReferenceWrapper}(React$1.Component);function Placeholder$1(_ref){var className=_ref.className,style=_ref.style,phProps={};return className||style?(className&&(phProps.className=className),style&&(phProps.style=style)):phProps.style={width:"100%",height:"100%"},React__default.default.createElement("div",phProps)}_defineProperty$2(ReferenceWrapper,"displayName","SizeMeReferenceWrapper"),Placeholder$1.displayName="SizeMePlaceholder";function withSize(){var config=arguments.length>0&&void 0!==arguments[0]?arguments[0]:defaultConfig,_config$monitorWidth=config.monitorWidth,monitorWidth=void 0===_config$monitorWidth?defaultConfig.monitorWidth:_config$monitorWidth,_config$monitorHeight=config.monitorHeight,monitorHeight=void 0===_config$monitorHeight?defaultConfig.monitorHeight:_config$monitorHeight,_config$refreshRate=config.refreshRate,refreshRate=void 0===_config$refreshRate?defaultConfig.refreshRate:_config$refreshRate,_config$refreshMode=config.refreshMode,refreshMode=void 0===_config$refreshMode?defaultConfig.refreshMode:_config$refreshMode,_config$noPlaceholder=config.noPlaceholder,noPlaceholder=void 0===_config$noPlaceholder?defaultConfig.noPlaceholder:_config$noPlaceholder,_config$resizeDetecto=config.resizeDetectorStrategy,resizeDetectorStrategy=void 0===_config$resizeDetecto?defaultConfig.resizeDetectorStrategy:_config$resizeDetecto;invariant__default.default(monitorWidth||monitorHeight,'You have to monitor at least one of the width or height when using "sizeMe"'),invariant__default.default(refreshRate>=16,"It is highly recommended that you don't put your refreshRate lower than 16 as this may cause layout thrashing."),invariant__default.default("throttle"===refreshMode||"debounce"===refreshMode,'The refreshMode should have a value of "throttle" or "debounce"');var refreshDelayStrategy="throttle"===refreshMode?throttleDebounce.throttle:throttleDebounce.debounce;return function WrapComponent(WrappedComponent){var SizeMeRenderWrapper=function renderWrapper(WrappedComponent){function SizeMeRenderer(props){var explicitRef=props.explicitRef,className=props.className,style=props.style,size=props.size,disablePlaceholder=props.disablePlaceholder;props.onSize;var restProps=_objectWithoutProperties(props,_excluded$1),renderPlaceholder=(null==size||null==size.width&&null==size.height)&&!disablePlaceholder,renderProps={className,style};null!=size&&(renderProps.size=size);var toRender=renderPlaceholder?React__default.default.createElement(Placeholder$1,{className,style}):React__default.default.createElement(WrappedComponent,_extends$2({},renderProps,restProps));return React__default.default.createElement(ReferenceWrapper,{ref:explicitRef},toRender)}return SizeMeRenderer.displayName="SizeMeRenderer(".concat(getDisplayName(WrappedComponent),")"),SizeMeRenderer}(WrappedComponent),SizeAwareComponent=function(_React$Component){_inherits$1(SizeAwareComponent,_React$Component);var _super2=_createSuper$1(SizeAwareComponent);function SizeAwareComponent(){var _this;_classCallCheck$1(this,SizeAwareComponent);for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return _defineProperty$2(_assertThisInitialized$3(_this=_super2.call.apply(_super2,[this].concat(args))),"domEl",null),_defineProperty$2(_assertThisInitialized$3(_this),"state",{width:void 0,height:void 0}),_defineProperty$2(_assertThisInitialized$3(_this),"uninstall",(function(){if(_this.domEl){try{_this.detector.uninstall(_this.domEl)}catch(err){console.warn("react-sizeme: an error occurred whilst stopping to listen to node size changes")}_this.domEl=null}})),_defineProperty$2(_assertThisInitialized$3(_this),"determineStrategy",(function(props){props.onSize?(_this.callbackState||(_this.callbackState=_objectSpread2({},_this.state)),_this.strategy="callback"):_this.strategy="render"})),_defineProperty$2(_assertThisInitialized$3(_this),"strategisedSetState",(function(state){"callback"===_this.strategy&&(_this.callbackState=state,_this.props.onSize(state)),_this.setState(state)})),_defineProperty$2(_assertThisInitialized$3(_this),"strategisedGetState",(function(){return"callback"===_this.strategy?_this.callbackState:_this.state})),_defineProperty$2(_assertThisInitialized$3(_this),"refCallback",(function(element){_this.element=element})),_defineProperty$2(_assertThisInitialized$3(_this),"hasSizeChanged",(function(current,next){var c=current,n=next;return monitorWidth&&c.width!==n.width||monitorHeight&&c.height!==n.height})),_defineProperty$2(_assertThisInitialized$3(_this),"checkIfSizeChanged",refreshDelayStrategy(refreshRate,(function(el){var _el$getBoundingClient=el.getBoundingClientRect(),width=_el$getBoundingClient.width,height=_el$getBoundingClient.height,next={width:monitorWidth?width:null,height:monitorHeight?height:null};_this.hasSizeChanged(_this.strategisedGetState(),next)&&_this.strategisedSetState(next)}))),_this}return _createClass$1(SizeAwareComponent,[{key:"componentDidMount",value:function componentDidMount(){this.detector=function resizeDetector(){var strategy=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scroll";return instances[strategy]||(instances[strategy]=createResizeDetector__default.default({strategy})),instances[strategy]}(resizeDetectorStrategy),this.determineStrategy(this.props),this.handleDOMNode()}},{key:"componentDidUpdate",value:function componentDidUpdate(){this.determineStrategy(this.props),this.handleDOMNode()}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.hasSizeChanged=function(){},this.checkIfSizeChanged=function(){},this.uninstall()}},{key:"handleDOMNode",value:function handleDOMNode(){var found=this.element&&ReactDOM__default.default.findDOMNode(this.element);found?this.domEl?(this.domEl.isSameNode&&!this.domEl.isSameNode(found)||this.domEl!==found)&&(this.uninstall(),this.domEl=found,this.detector.listenTo(this.domEl,this.checkIfSizeChanged)):(this.domEl=found,this.detector.listenTo(this.domEl,this.checkIfSizeChanged)):this.uninstall()}},{key:"render",value:function render(){var disablePlaceholder=withSize.enableSSRBehaviour||withSize.noPlaceholders||noPlaceholder||"callback"===this.strategy,size=_objectSpread2({},this.state);return React__default.default.createElement(SizeMeRenderWrapper,_extends$2({explicitRef:this.refCallback,size:"callback"===this.strategy?null:size,disablePlaceholder},this.props))}}]),SizeAwareComponent}(React__default.default.Component);return _defineProperty$2(SizeAwareComponent,"displayName","SizeMe(".concat(getDisplayName(WrappedComponent),")")),SizeAwareComponent.WrappedComponent=WrappedComponent,SizeAwareComponent}}withSize.enableSSRBehaviour=!1,withSize.noPlaceholders=!1;var _excluded=["children","render"],_excluded2=["children","render"],_excluded3=["children","render"],SizeMe=function(_Component){_inherits$1(SizeMe,_Component);var _super=_createSuper$1(SizeMe);function SizeMe(props){var _this;_classCallCheck$1(this,SizeMe),_defineProperty$2(_assertThisInitialized$3(_this=_super.call(this,props)),"createComponent",(function(config){_this.SizeAware=withSize(config)((function(_ref){return _ref.children}))})),_defineProperty$2(_assertThisInitialized$3(_this),"onSize",(function(size){return _this.setState({size})})),props.children,props.render;var sizeMeConfig=_objectWithoutProperties(props,_excluded);return _this.createComponent(sizeMeConfig),_this.state={size:{width:void 0,height:void 0}},_this}return _createClass$1(SizeMe,[{key:"componentDidUpdate",value:function componentDidUpdate(prevProps){var _this$props=this.props;_this$props.children,_this$props.render;var currentSizeMeConfig=_objectWithoutProperties(_this$props,_excluded2);prevProps.children,prevProps.render;var prevSizeMeConfig=_objectWithoutProperties(prevProps,_excluded3);isShallowEqual__default.default(currentSizeMeConfig,prevSizeMeConfig)||this.createComponent(currentSizeMeConfig)}},{key:"render",value:function render(){var SizeAware=this.SizeAware,render=this.props.children||this.props.render;return React__default.default.createElement(SizeAware,{onSize:this.onSize},render({size:this.state.size}))}}]),SizeMe}(React$1.Component);_defineProperty$2(SizeMe,"defaultProps",{children:void 0,render:void 0}),withSize.SizeMe=SizeMe,withSize.withSize=withSize;var reactSizeme=withSize,Root$2=theming_dist_esm.zo.div({position:"fixed",left:0,top:0,width:"100vw",height:"100vh",overflow:"hidden"}),SIDEBAR=dist_esm.w0.SIDEBAR,CANVAS=dist_esm.w0.CANVAS,ADDONS=dist_esm.w0.ADDONS,Pane$1=theming_dist_esm.zo.div({transition:"transform .2s ease",position:"absolute",top:0,height:"100%",overflow:"auto"},(function(_ref14){var theme=_ref14.theme;return{background:theme.background.content,"&:nth-of-type(1)":{borderRight:"1px solid ".concat(theme.appBorderColor)},"&:nth-of-type(3)":{borderLeft:"1px solid ".concat(theme.appBorderColor)}}}),(function(_ref15){switch(_ref15.index){case 0:return{width:"80vw",transform:"translateX(-80vw)",left:0};case 1:return{width:"100%",transform:"translateX(0) scale(1)",left:0};case 2:return{width:"80vw",transform:"translateX(80vw)",right:0};default:return{}}}),(function(_ref16){var active=_ref16.active,index=_ref16.index;switch(!0){case 0===index&&active===SIDEBAR:return{transform:"translateX(-0px)"};case 1===index&&active===SIDEBAR:return{transform:"translateX(40vw) translateY(-42.5vh) translateY(40px) scale(0.2)"};case 1===index&&active===ADDONS:return{transform:"translateX(-40vw) translateY(-42.5vh) translateY(40px) scale(0.2)"};case 2===index&&active===ADDONS:return{transform:"translateX(0px)"};default:return{}}})),Panels=react.memo((function(_ref17){var children=_ref17.children,active=_ref17.active,isFullscreen=_ref17.isFullscreen;return react.createElement(PanelsContainer,{isFullscreen},react.Children.toArray(children).map((function(item,index){return react.createElement(Pane$1,{key:index,index,active},item)})))}));Panels.displayName="Panels";var PanelsContainer=theming_dist_esm.zo.div({position:"fixed",top:0,left:0,width:"100vw"},(function(_ref18){return{height:_ref18.isFullscreen?"100vh":"calc(100% - 40px)"}})),Bar$1=theming_dist_esm.zo.nav({position:"fixed",bottom:0,left:0,width:"100vw",height:40,display:"flex",boxShadow:"0 1px 5px 0 rgba(0, 0, 0, 0.1)","& > *":{flex:1}},(function(_ref19){return{background:_ref19.theme.barBg}})),Mobile=function(_Component2){_inherits2(Mobile,_Component2);var _super3=_createSuper2(Mobile);function Mobile(props){var _this8;_classCallCheck2(this,Mobile),_this8=_super3.call(this,props);var options=props.options;return _this8.state={active:options.isFullscreen?CANVAS:options.initialActive||SIDEBAR},_this8}return _createClass2(Mobile,[{key:"render",value:function render(){var _this9=this,_this$props3=this.props,Sidebar=_this$props3.Sidebar,Preview=_this$props3.Preview,Panel=_this$props3.Panel,Notifications=_this$props3.Notifications,pages=_this$props3.pages,viewMode=_this$props3.viewMode,options=_this$props3.options,docsOnly=_this$props3.docsOnly,active=this.state.active;return react.createElement(Root$2,null,react.createElement(Notifications,{placement:{position:"fixed",bottom:60,left:20,right:20}}),react.createElement(Panels,{active,isFullscreen:options.isFullscreen},react.createElement(Sidebar,null),react.createElement("div",null,react.createElement("div",{hidden:!viewMode},react.createElement(Preview,{showToolbar:options.showToolbar,id:"main",viewMode})),pages.map((function(_ref20){var key=_ref20.key,Route=_ref20.route,Content=_ref20.render;return react.createElement(Route,{key},react.createElement(Content,null))}))),react.createElement(Panel,{hidden:!viewMode})),!options.isFullscreen&&react.createElement(Bar$1,null,react.createElement(index_2a91f2bc.aj,{onClick:function onClick(){return _this9.setState({active:SIDEBAR})},active:active===SIDEBAR},"Sidebar"),react.createElement(index_2a91f2bc.aj,{onClick:function onClick(){return _this9.setState({active:CANVAS})},active:active===CANVAS},viewMode?"Canvas":null,pages.map((function(_ref21){var key=_ref21.key,Route=_ref21.route;return react.createElement(Route,{key},key)}))),viewMode&&!docsOnly?react.createElement(index_2a91f2bc.aj,{onClick:function onClick(){return _this9.setState({active:ADDONS})},active:active===ADDONS},"Addons"):null))}}]),Mobile}(react.Component),_assign=function __assign(){return _assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i_.length(this._area)&&(m--,i--)}return fill||this},keys:function keys(fillList){return this.each((function(k,v,list){list.push(k)}),fillList||[])},get:function get(key,alt){var fn,s=_.get(this._area,this._in(key));return"function"==typeof alt&&(fn=alt,alt=null),null!==s?_.parse(s,fn):null!=alt?alt:s},getAll:function getAll(fillObj){return this.each((function(k,v,all){all[k]=v}),fillObj||{})},transact:function transact(key,fn,alt){var val=this.get(key,alt),ret=fn(val);return this.set(key,void 0===ret?val:ret),this},set:function set(key,data,overwrite){var replacer,d=this.get(key);return null!=d&&!1===overwrite?data:("boolean"!=typeof overwrite&&(replacer=overwrite),_.set(this._area,this._in(key),_.stringify(data,replacer))||d)},setAll:function setAll(data,overwrite){var changed,val;for(var key in data)val=data[key],this.set(key,val,overwrite)!==val&&(changed=!0);return changed},add:function add(key,data,replacer){var d=this.get(key);if(d instanceof Array)data=d.concat(data);else if(null!==d){var type=_typeof2(d);if(type===_typeof2(data)&&"object"===type){for(var k in data)d[k]=data[k];data=d}else data=d+data}return _.set(this._area,this._in(key),_.stringify(data,replacer)),data},remove:function remove(key,alt){var d=this.get(key,alt);return _.remove(this._area,this._in(key)),d},clear:function clear(){return this._ns?this.each((function(k){_.remove(this._area,this._in(k))}),1):_.clear(this._area),this},clearAll:function clearAll(){var area=this._area;for(var id in _.areas)_.areas.hasOwnProperty(id)&&(this._area=_.areas[id],this.clear());return this._area=area,this},_in:function _in(k){return"string"!=typeof k&&(k=_.stringify(k)),this._ns?this._ns+k:k},_out:function _out(k){return this._ns?k&&0===k.indexOf(this._ns)?k.substring(this._ns.length):void 0:k}},storage:function storage(name){return _.inherit(_.storageAPI,{items:{},name})},storageAPI:{length:0,has:function has(k){return this.items.hasOwnProperty(k)},key:function key(i){var c=0;for(var k in this.items)if(this.has(k)&&i===c++)return k},setItem:function setItem(k,v){this.has(k)||this.length++,this.items[k]=v},removeItem:function removeItem(k){this.has(k)&&(delete this.items[k],this.length--)},getItem:function getItem(k){return this.has(k)?this.items[k]:null},clear:function clear(){for(var k in this.items)this.removeItem(k)}}},store=_.Store("local",function(){try{return localStorage}catch(e){}}());store.local=store,store._=_,store.area("session",function(){try{return sessionStorage}catch(e){}}()),store.area("page",_.storage("page")),"function"==typeof define&&void 0!==define.amd?define("store2",[],(function(){return store})):module.exports?module.exports=store:(window.store&&(_.conflict=window.store),window.store=store)}(commonjsGlobal,commonjsGlobal&&commonjsGlobal.define);var store$4=store2.exports;var isObject_1=function isObject$a(value){var type=_typeof2(value);return null!=value&&("object"==type||"function"==type)},freeGlobal="object"==_typeof2(commonjsGlobal)&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,freeSelf="object"==("undefined"==typeof self?"undefined":_typeof2(self))&&self&&self.Object===Object&&self,root$2=freeGlobal||freeSelf||Function("return this")(),root$1=root$2,now_1=function now$1(){return root$1.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},_Symbol=root$2.Symbol,Symbol$3=_Symbol,objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty,nativeObjectToString$1=objectProto$1.toString,symToStringTag$1=Symbol$3?Symbol$3.toStringTag:void 0;var _getRawTag=function getRawTag$1(value){var isOwn=hasOwnProperty$1.call(value,symToStringTag$1),tag=value[symToStringTag$1];try{value[symToStringTag$1]=void 0;var unmasked=!0}catch(e){}var result=nativeObjectToString$1.call(value);return unmasked&&(isOwn?value[symToStringTag$1]=tag:delete value[symToStringTag$1]),result},nativeObjectToString=Object.prototype.toString;var getRawTag=_getRawTag,objectToString$2=function objectToString$3(value){return nativeObjectToString.call(value)},symToStringTag=_Symbol?_Symbol.toStringTag:void 0;var baseGetTag=function baseGetTag$1(value){return null==value?void 0===value?"[object Undefined]":"[object Null]":symToStringTag&&symToStringTag in Object(value)?getRawTag(value):objectToString$2(value)},isObjectLike=function isObjectLike$1(value){return null!=value&&"object"==_typeof2(value)};var baseTrim=_baseTrim,isObject$9=isObject_1,isSymbol$4=function isSymbol$5(value){return"symbol"==_typeof2(value)||isObjectLike(value)&&"[object Symbol]"==baseGetTag(value)},reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;var isObject$8=isObject_1,now=now_1,toNumber=function toNumber$1(value){if("number"==typeof value)return value;if(isSymbol$4(value))return NaN;if(isObject$9(value)){var other="function"==typeof value.valueOf?value.valueOf():value;value=isObject$9(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},nativeMax=Math.max,nativeMin=Math.min;var debounce_1=function debounce$2(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 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 function leadingEdge(time){return lastInvokeTime=time,timerId=setTimeout(timerExpired,wait),leading?invokeFunc(time):result}(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$8(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};function Similar(){return this.list=[],this.lastItem=void 0,this.size=0,this}Similar.prototype.get=function(key){var index;return this.lastItem&&this.isEqual(this.lastItem.key,key)?this.lastItem.val:(index=this.indexOf(key))>=0?(this.lastItem=this.list[index],this.list[index].val):void 0},Similar.prototype.set=function(key,val){var index;return this.lastItem&&this.isEqual(this.lastItem.key,key)?(this.lastItem.val=val,this):(index=this.indexOf(key))>=0?(this.lastItem=this.list[index],this.list[index].val=val,this):(this.lastItem={key,val},this.list.push(this.lastItem),this.size++,this)},Similar.prototype.delete=function(key){var index;if(this.lastItem&&this.isEqual(this.lastItem.key,key)&&(this.lastItem=void 0),(index=this.indexOf(key))>=0)return this.size--,this.list.splice(index,1)[0]},Similar.prototype.has=function(key){var index;return!(!this.lastItem||!this.isEqual(this.lastItem.key,key))||(index=this.indexOf(key))>=0&&(this.lastItem=this.list[index],!0)},Similar.prototype.forEach=function(callback,thisArg){var i;for(i=0;i0&&(lruPath[argsLengthMinusOne]={cacheItem:currentCache,arg:arguments[argsLengthMinusOne]},isMemoized?function moveToMostRecentLru(lru,lruPath){var isMatch,i,ii,lruLen=lru.length,lruPathLen=lruPath.length;for(i=0;ilimit&&function removeCachedResult(removedLru){var tmp,i,removedLruLen=removedLru.length,currentLru=removedLru[removedLruLen-1];for(currentLru.cacheItem.delete(currentLru.arg),i=removedLruLen-2;i>=0&&(!(tmp=(currentLru=removedLru[i]).cacheItem.get(currentLru.arg))||!tmp.size);i--)currentLru.cacheItem.delete(currentLru.arg)}(lru.shift())),memoizerific.wasMemoized=isMemoized,memoizerific.numArgs=argsLengthMinusOne+1,fnResult};return memoizerific.limit=limit,memoizerific.wasMemoized=!1,memoizerific.cache=cache,memoizerific.lru=lru,memoizerific}};function isEqual(val1,val2){return val1===val2||val1!=val1&&val2!=val2}var write=memoizerific(1)((function(changes){try{store$4.local.set("storybook-layout",changes)}catch(e){console.error(e)}})),set$1=debounce_1(write,500),cjs={exports:{}},Draggable$2={};function toVal(mix){var k,y,str="";if("string"==typeof mix||"number"==typeof mix)str+=mix;else if("object"===_typeof2(mix))if(Array.isArray(mix))for(k=0;k0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";var style=null===(_window$document=window.document)||void 0===_window$document||null===(_window$document$docu=_window$document.documentElement)||void 0===_window$document$docu?void 0:_window$document$docu.style;if(!style)return"";if(prop in style)return"";for(var i=0;i: Unmounted during event!");return node}var DraggableCore$2={},log$1={};function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}Object.defineProperty(log$1,"__esModule",{value:!0}),log$1.default=function log(){},Object.defineProperty(DraggableCore$2,"__esModule",{value:!0}),DraggableCore$2.default=void 0;var React=function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(react),_propTypes=_interopRequireDefault(propTypes.exports),_reactDom=_interopRequireDefault(react_dom),_domFns=domFns,_positionFns=positionFns,_shims=shims,_log=_interopRequireDefault(log$1);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}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 not mounted on DragStart!");var ownerDocument=thisNode.ownerDocument;if(!(_this.props.disabled||!(e.target instanceof ownerDocument.defaultView.Node)||_this.props.handle&&!(0,_domFns.matchesSelectorAndParentsTo)(e.target,_this.props.handle,thisNode)||_this.props.cancel&&(0,_domFns.matchesSelectorAndParentsTo)(e.target,_this.props.cancel,thisNode))){"touchstart"===e.type&&e.preventDefault();var touchIdentifier=(0,_domFns.getTouchIdentifier)(e);_this.setState({touchIdentifier});var position=(0,_positionFns.getControlPosition)(e,touchIdentifier,_assertThisInitialized$2(_this));if(null!=position){var x=position.x,y=position.y,coreEvent=(0,_positionFns.createCoreData)(_assertThisInitialized$2(_this),x,y);(0,_log.default)("DraggableCore: handleDragStart: %j",coreEvent),(0,_log.default)("calling",_this.props.onStart),!1!==_this.props.onStart(e,coreEvent)&&!1!==_this.mounted&&(_this.props.enableUserSelectHack&&(0,_domFns.addUserSelectStyles)(ownerDocument),_this.setState({dragging:!0,lastX:x,lastY:y}),(0,_domFns.addEvent)(ownerDocument,dragEventFor.move,_this.handleDrag),(0,_domFns.addEvent)(ownerDocument,dragEventFor.stop,_this.handleDragStop))}}})),_defineProperty(_assertThisInitialized$2(_this),"handleDrag",(function(e){var position=(0,_positionFns.getControlPosition)(e,_this.state.touchIdentifier,_assertThisInitialized$2(_this));if(null!=position){var x=position.x,y=position.y;if(Array.isArray(_this.props.grid)){var deltaX=x-_this.state.lastX,deltaY=y-_this.state.lastY,_snapToGrid2=_slicedToArray((0,_positionFns.snapToGrid)(_this.props.grid,deltaX,deltaY),2);if(deltaX=_snapToGrid2[0],deltaY=_snapToGrid2[1],!deltaX&&!deltaY)return;x=_this.state.lastX+deltaX,y=_this.state.lastY+deltaY}var coreEvent=(0,_positionFns.createCoreData)(_assertThisInitialized$2(_this),x,y);if((0,_log.default)("DraggableCore: handleDrag: %j",coreEvent),!1!==_this.props.onDrag(e,coreEvent)&&!1!==_this.mounted)_this.setState({lastX:x,lastY:y});else try{_this.handleDragStop(new MouseEvent("mouseup"))}catch(err){var event=document.createEvent("MouseEvents");event.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),_this.handleDragStop(event)}}})),_defineProperty(_assertThisInitialized$2(_this),"handleDragStop",(function(e){if(_this.state.dragging){var position=(0,_positionFns.getControlPosition)(e,_this.state.touchIdentifier,_assertThisInitialized$2(_this));if(null!=position){var x=position.x,y=position.y,coreEvent=(0,_positionFns.createCoreData)(_assertThisInitialized$2(_this),x,y);if(!1===_this.props.onStop(e,coreEvent)||!1===_this.mounted)return!1;var thisNode=_this.findDOMNode();thisNode&&_this.props.enableUserSelectHack&&(0,_domFns.removeUserSelectStyles)(thisNode.ownerDocument),(0,_log.default)("DraggableCore: handleDragStop: %j",coreEvent),_this.setState({dragging:!1,lastX:NaN,lastY:NaN}),thisNode&&((0,_log.default)("DraggableCore: Removing handlers"),(0,_domFns.removeEvent)(thisNode.ownerDocument,dragEventFor.move,_this.handleDrag),(0,_domFns.removeEvent)(thisNode.ownerDocument,dragEventFor.stop,_this.handleDragStop))}}})),_defineProperty(_assertThisInitialized$2(_this),"onMouseDown",(function(e){return dragEventFor=eventsFor_mouse,_this.handleDragStart(e)})),_defineProperty(_assertThisInitialized$2(_this),"onMouseUp",(function(e){return dragEventFor=eventsFor_mouse,_this.handleDragStop(e)})),_defineProperty(_assertThisInitialized$2(_this),"onTouchStart",(function(e){return dragEventFor=eventsFor_touch,_this.handleDragStart(e)})),_defineProperty(_assertThisInitialized$2(_this),"onTouchEnd",(function(e){return dragEventFor=eventsFor_touch,_this.handleDragStop(e)})),_this}return function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}(DraggableCore,[{key:"componentDidMount",value:function componentDidMount(){this.mounted=!0;var thisNode=this.findDOMNode();thisNode&&(0,_domFns.addEvent)(thisNode,eventsFor_touch.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.mounted=!1;var thisNode=this.findDOMNode();if(thisNode){var ownerDocument=thisNode.ownerDocument;(0,_domFns.removeEvent)(ownerDocument,eventsFor_mouse.move,this.handleDrag),(0,_domFns.removeEvent)(ownerDocument,eventsFor_touch.move,this.handleDrag),(0,_domFns.removeEvent)(ownerDocument,eventsFor_mouse.stop,this.handleDragStop),(0,_domFns.removeEvent)(ownerDocument,eventsFor_touch.stop,this.handleDragStop),(0,_domFns.removeEvent)(thisNode,eventsFor_touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,_domFns.removeUserSelectStyles)(ownerDocument)}}},{key:"findDOMNode",value:function findDOMNode(){var _this$props$nodeRef$c,_this$props,_this$props$nodeRef;return null!==(_this$props$nodeRef$c=null===(_this$props=this.props)||void 0===_this$props||null===(_this$props$nodeRef=_this$props.nodeRef)||void 0===_this$props$nodeRef?void 0:_this$props$nodeRef.current)&&void 0!==_this$props$nodeRef$c?_this$props$nodeRef$c:_reactDom.default.findDOMNode(this)}},{key:"render",value:function render(){return React.cloneElement(React.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}]),DraggableCore}(React.Component);DraggableCore$2.default=DraggableCore$1,_defineProperty(DraggableCore$1,"displayName","DraggableCore"),_defineProperty(DraggableCore$1,"propTypes",{allowAnyClick:_propTypes.default.bool,disabled:_propTypes.default.bool,enableUserSelectHack:_propTypes.default.bool,offsetParent:function offsetParent(props,propName){if(props[propName]&&1!==props[propName].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:_propTypes.default.arrayOf(_propTypes.default.number),handle:_propTypes.default.string,cancel:_propTypes.default.string,nodeRef:_propTypes.default.object,onStart:_propTypes.default.func,onDrag:_propTypes.default.func,onStop:_propTypes.default.func,onMouseDown:_propTypes.default.func,scale:_propTypes.default.number,className:_shims.dontSetMe,style:_shims.dontSetMe,transform:_shims.dontSetMe}),_defineProperty(DraggableCore$1,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function onStart(){},onDrag:function onDrag(){},onStop:function onStop(){},onMouseDown:function onMouseDown(){},scale:1}),function(exports){function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"DraggableCore",{enumerable:!0,get:function get(){return _DraggableCore.default}}),exports.default=void 0;var React=function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(react),_propTypes=_interopRequireDefault(propTypes.exports),_reactDom=_interopRequireDefault(react_dom),_clsx2=_interopRequireDefault(require$$3),_domFns=domFns,_positionFns=positionFns,_shims=shims,_DraggableCore=_interopRequireDefault(DraggableCore$2),_log=_interopRequireDefault(log$1),_excluded=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _extends(){return _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}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;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),_this}return function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}(Draggable,[{key:"componentDidMount",value:function componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function findDOMNode(){var _this$props$nodeRef$c,_this$props,_this$props$nodeRef;return null!==(_this$props$nodeRef$c=null===(_this$props=this.props)||void 0===_this$props||null===(_this$props$nodeRef=_this$props.nodeRef)||void 0===_this$props$nodeRef?void 0:_this$props$nodeRef.current)&&void 0!==_this$props$nodeRef$c?_this$props$nodeRef$c:_reactDom.default.findDOMNode(this)}},{key:"render",value:function render(){var _clsx,_this$props2=this.props;_this$props2.axis,_this$props2.bounds;var children=_this$props2.children,defaultPosition=_this$props2.defaultPosition,defaultClassName=_this$props2.defaultClassName,defaultClassNameDragging=_this$props2.defaultClassNameDragging,defaultClassNameDragged=_this$props2.defaultClassNameDragged,position=_this$props2.position,positionOffset=_this$props2.positionOffset;_this$props2.scale;var draggableCoreProps=_objectWithoutProperties(_this$props2,_excluded),style={},svgTransform=null,draggable=!Boolean(position)||this.state.dragging,validPosition=position||defaultPosition,transformOpts={x:(0,_positionFns.canDragX)(this)&&draggable?this.state.x:validPosition.x,y:(0,_positionFns.canDragY)(this)&&draggable?this.state.y:validPosition.y};this.state.isElementSVG?svgTransform=(0,_domFns.createSVGTransform)(transformOpts,positionOffset):style=(0,_domFns.createCSSTransform)(transformOpts,positionOffset);var className=(0,_clsx2.default)(children.props.className||"",defaultClassName,(_defineProperty(_clsx={},defaultClassNameDragging,this.state.dragging),_defineProperty(_clsx,defaultClassNameDragged,this.state.dragged),_clsx));return React.createElement(_DraggableCore.default,_extends({},draggableCoreProps,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),React.cloneElement(React.Children.only(children),{className,style:_objectSpread(_objectSpread({},children.props.style),style),transform:svgTransform}))}}],[{key:"getDerivedStateFromProps",value:function getDerivedStateFromProps(_ref,_ref2){var position=_ref.position,prevPropsPosition=_ref2.prevPropsPosition;return!position||prevPropsPosition&&position.x===prevPropsPosition.x&&position.y===prevPropsPosition.y?null:((0,_log.default)("Draggable: getDerivedStateFromProps %j",{position,prevPropsPosition}),{x:position.x,y:position.y,prevPropsPosition:_objectSpread({},position)})}}]),Draggable}(React.Component);exports.default=Draggable,_defineProperty(Draggable,"displayName","Draggable"),_defineProperty(Draggable,"propTypes",_objectSpread(_objectSpread({},_DraggableCore.default.propTypes),{},{axis:_propTypes.default.oneOf(["both","x","y","none"]),bounds:_propTypes.default.oneOfType([_propTypes.default.shape({left:_propTypes.default.number,right:_propTypes.default.number,top:_propTypes.default.number,bottom:_propTypes.default.number}),_propTypes.default.string,_propTypes.default.oneOf([!1])]),defaultClassName:_propTypes.default.string,defaultClassNameDragging:_propTypes.default.string,defaultClassNameDragged:_propTypes.default.string,defaultPosition:_propTypes.default.shape({x:_propTypes.default.number,y:_propTypes.default.number}),positionOffset:_propTypes.default.shape({x:_propTypes.default.oneOfType([_propTypes.default.number,_propTypes.default.string]),y:_propTypes.default.oneOfType([_propTypes.default.number,_propTypes.default.string])}),position:_propTypes.default.shape({x:_propTypes.default.number,y:_propTypes.default.number}),className:_shims.dontSetMe,style:_shims.dontSetMe,transform:_shims.dontSetMe})),_defineProperty(Draggable,"defaultProps",_objectSpread(_objectSpread({},_DraggableCore.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))}(Draggable$2);var Draggable=Draggable$2.default,DraggableCore=Draggable$2.DraggableCore;cjs.exports=Draggable,cjs.exports.default=Draggable,cjs.exports.DraggableCore=DraggableCore;var Draggable$1=cjs.exports,Handle=theming_dist_esm.zo.div((function(_ref22){var theme=_ref22.theme;return{zIndex:10,position:"absolute",top:0,left:0,display:"flex",justifyContent:"center",alignItems:"center",color:_ref22.isDragging?theme.color.secondary:theme.appBorderColor,overflow:"hidden",transition:"color 0.2s linear, background-position 0.2s linear, background-size 0.2s linear, background 0.2s linear","&:hover":{color:theme.color.secondary}}}),(function(_ref23){return{cursor:"x"===_ref23.axis?"col-resize":"row-resize"}}),(function(_ref24){var theme=_ref24.theme;return"x"===_ref24.axis?{height:"100%",width:theme.layoutMargin,marginLeft:0}:{height:theme.layoutMargin,width:"100%",marginTop:0}}),(function(_ref25){var axis=_ref25.axis,isDragging=_ref25.isDragging;if("y"===axis){var style={backgroundImage:"radial-gradient(at center center,rgba(0,0,0,0.2) 0%,transparent 70%,transparent 100%)",backgroundSize:"100% 50px",backgroundPosition:"50% 0",backgroundRepeat:"no-repeat"};return isDragging?style:Object.assign(Object.assign({},style),{backgroundPosition:"50% 10px","&:hover":style})}if("x"===axis){var _style={backgroundImage:"radial-gradient(at center center,rgba(0,0,0,0.2) 0%,transparent 70%,transparent 100%)",backgroundSize:"50px 100%",backgroundPosition:"0 50%",backgroundRepeat:"no-repeat"};return isDragging?_style:Object.assign(Object.assign({},_style),{backgroundPosition:"10px 50%","&:hover":_style})}return{}})),Pane=theming_dist_esm.zo.div({position:"absolute",boxSizing:"border-box",top:0,left:0,width:"100%",height:"100%"},(function(_ref26){return _ref26.hidden?{opacity:0}:{opacity:1}}),(function(_ref27){return _ref27.top?{zIndex:9}:{}}),(function(_ref28){var border=_ref28.border,theme=_ref28.theme;switch(border){case"left":return{borderLeft:"1px solid ".concat(theme.appBorderColor)};case"right":return{borderRight:"1px solid ".concat(theme.appBorderColor)};case"top":return{borderTop:"1px solid ".concat(theme.appBorderColor)};case"bottom":return{borderBottom:"1px solid ".concat(theme.appBorderColor)};default:return{}}}),(function(_ref29){return _ref29.animate?{transition:["width","height","top","left","background","opacity","transform"].map((function(p){return"".concat(p," 0.1s ease-out")})).join(",")}:{}})),Paper=theming_dist_esm.zo.div({position:"absolute",top:0,left:0,width:"100%",height:"100%"},(function(_ref30){var isFullscreen=_ref30.isFullscreen,theme=_ref30.theme;return isFullscreen?{boxShadow:"none",borderRadius:0}:{borderRadius:theme.appBorderRadius,overflow:"hidden",boxShadow:"0 1px 5px 0 rgba(0, 0, 0, 0.1)"}})),Sidebar$2=function Sidebar$2(_a){var _a$hidden=_a.hidden,hidden=void 0!==_a$hidden&&_a$hidden,children=_a.children,_a$position=_a.position,position=void 0===_a$position?void 0:_a$position,props=__rest(_a,["hidden","children","position"]);return hidden?null:react.createElement(Pane,Object.assign({style:position},props),children)},Main$1=function Main$1(_a){var _a$isFullscreen=_a.isFullscreen,isFullscreen=void 0!==_a$isFullscreen&&_a$isFullscreen,children=_a.children,_a$position2=_a.position,position=void 0===_a$position2?void 0:_a$position2,props=__rest(_a,["isFullscreen","children","position"]);return react.createElement(Pane,Object.assign({style:position,top:!0},props,{role:"main"}),react.createElement(Paper,{isFullscreen},children))},Preview$1=function Preview$1(_a){var _a$hidden2=_a.hidden,hidden=void 0!==_a$hidden2&&_a$hidden2,children=_a.children,_a$position3=_a.position,position=void 0===_a$position3?void 0:_a$position3,props=__rest(_a,["hidden","children","position"]);return react.createElement(Pane,Object.assign({style:position,top:!0,hidden},props),children)},Panel$1=function Panel$1(_a){var _a$hidden3=_a.hidden,hidden=void 0!==_a$hidden3&&_a$hidden3,children=_a.children,_a$position4=_a.position,position=void 0===_a$position4?void 0:_a$position4,_a$align=_a.align,align=void 0===_a$align?"right":_a$align,props=__rest(_a,["hidden","children","position","align"]);return react.createElement(Pane,Object.assign({style:position,hidden},props,{border:"bottom"===align?"top":"left"}),children)},HoverBlocker=theming_dist_esm.zo.div({position:"absolute",left:0,top:0,zIndex:15,height:"100vh",width:"100vw"}),getPreviewPosition=function getPreviewPosition(_ref31){var panelPosition=_ref31.panelPosition,isPanelHidden=_ref31.isPanelHidden,isNavHidden=_ref31.isNavHidden,isFullscreen=_ref31.isFullscreen,bounds=_ref31.bounds,resizerPanel=_ref31.resizerPanel,resizerNav=_ref31.resizerNav,margin=_ref31.margin;if(isFullscreen||isPanelHidden)return{};var navX=isNavHidden?0:resizerNav.x,panelX=resizerPanel.x,panelY=resizerPanel.y;return"bottom"===panelPosition?{height:panelY-margin,left:0,top:0,width:bounds.width-navX-2*margin}:{height:bounds.height-2*margin,left:0,top:0,width:panelX-navX-margin}},getMainPosition=function getMainPosition(_ref32){var bounds=_ref32.bounds,resizerNav=_ref32.resizerNav,isNavHidden=_ref32.isNavHidden,isFullscreen=_ref32.isFullscreen,margin=_ref32.margin;if(isFullscreen)return{};var navX=isNavHidden?0:resizerNav.x;return{height:bounds.height-2*margin,left:navX+margin,top:margin,width:bounds.width-navX-2*margin}},getPanelPosition=function getPanelPosition(_ref33){var isPanelBottom=_ref33.isPanelBottom,isPanelHidden=_ref33.isPanelHidden,isNavHidden=_ref33.isNavHidden,bounds=_ref33.bounds,resizerPanel=_ref33.resizerPanel,resizerNav=_ref33.resizerNav,margin=_ref33.margin,navX=isNavHidden?0:resizerNav.x,panelX=resizerPanel.x,panelY=resizerPanel.y;return isPanelBottom&&isPanelHidden?{height:bounds.height-panelY-margin,left:0,top:panelY-margin,width:bounds.width-navX-2*margin}:!isPanelBottom&&isPanelHidden?{height:bounds.height-2*margin,left:panelX-navX-margin,top:0,width:bounds.width-panelX-margin}:isPanelBottom?{height:bounds.height-panelY-margin,left:0,top:panelY-margin,width:bounds.width-navX-2*margin}:{height:bounds.height-2*margin,left:panelX-navX-margin,top:0,width:bounds.width-panelX-margin}},Layout=function(_Component3){_inherits2(Layout,_Component3);var _super4=_createSuper2(Layout);function Layout(props){var _this10;_classCallCheck2(this,Layout),(_this10=_super4.call(this,props)).resizeNav=function(e,data){data.deltaX&&_this10.setState({resizerNav:{x:data.x,y:data.y}})},_this10.resizePanel=function(e,data){var options=_this10.props.options;(data.deltaY&&"bottom"===options.panelPosition||data.deltaX&&"right"===options.panelPosition)&&_this10.setState({resizerPanel:{x:data.x,y:data.y}})},_this10.setDragNav=function(){_this10.setState({isDragging:"nav"})},_this10.setDragPanel=function(){_this10.setState({isDragging:"panel"})},_this10.unsetDrag=function(){_this10.setState({isDragging:!1})};var bounds=props.bounds,options=props.options,_get$=function get$2(){try{return store$4.local.get("storybook-layout")||!1}catch(e){return console.error(e),!1}}(),resizerNav=_get$.resizerNav,resizerPanel=_get$.resizerPanel;return _this10.state={isDragging:!1,resizerNav:resizerNav||{x:220,y:0},resizerPanel:resizerPanel||("bottom"===options.panelPosition?{x:0,y:Math.round(.6*bounds.height)}:{x:bounds.width-400,y:0})},_this10}return _createClass2(Layout,[{key:"componentDidUpdate",value:function componentDidUpdate(prevProps,prevState){var _this$state=this.state,resizerPanel=_this$state.resizerPanel,resizerNav=_this$state.resizerNav;set$1({resizerPanel,resizerNav});var _prevProps$bounds=prevProps.bounds,prevWidth=_prevProps$bounds.width,prevHeight=_prevProps$bounds.height,_this$props4=this.props,bounds=_this$props4.bounds,options=_this$props4.options,width=bounds.width,height=bounds.height;width===prevWidth&&height===prevHeight||("bottom"===options.panelPosition?this.setState({resizerPanel:{x:prevState.resizerPanel.x,y:prevState.resizerPanel.y-(prevHeight-height)}}):this.setState({resizerPanel:{x:prevState.resizerPanel.x-(prevWidth-width),y:prevState.resizerPanel.y}}))}},{key:"render",value:function render(){var _this$props5=this.props,children=_this$props5.children,bounds=_this$props5.bounds,options=_this$props5.options,theme=_this$props5.theme,viewMode=_this$props5.viewMode,docsOnly=_this$props5.docsOnly,panelCount=_this$props5.panelCount,_this$state2=this.state,isDragging=_this$state2.isDragging,resizerNav=_this$state2.resizerNav,resizerPanel=_this$state2.resizerPanel,margin=theme.layoutMargin,isNavHidden=options.isFullscreen||!options.showNav,isPanelHidden=options.isFullscreen||!options.showPanel||docsOnly||"story"!==viewMode||0===panelCount,isFullscreen=options.isFullscreen||isNavHidden&&isPanelHidden,showToolbar=options.showToolbar,panelPosition=options.panelPosition,isPanelBottom="bottom"===panelPosition,isPanelRight="right"===panelPosition,panelX=resizerPanel.x,navX=resizerNav.x;return bounds?react.createElement(react.Fragment,null,isNavHidden?null:react.createElement(Draggable$1,{axis:"x",position:resizerNav,bounds:{left:200,top:0,right:isPanelRight&&!isPanelHidden?panelX-200:bounds.width-200,bottom:0},onStart:this.setDragNav,onDrag:this.resizeNav,onStop:this.unsetDrag},react.createElement(Handle,{axis:"x",isDragging:"nav"===isDragging})),isPanelHidden?null:react.createElement(Draggable$1,{axis:isPanelBottom?"y":"x",position:resizerPanel,bounds:isPanelBottom?{left:0,top:200,right:0,bottom:bounds.height-200}:{left:isNavHidden?200:navX+200,top:0,right:bounds.width-200,bottom:0},onStart:this.setDragPanel,onDrag:this.resizePanel,onStop:this.unsetDrag},react.createElement(Handle,{isDragging:"panel"===isDragging,style:isPanelBottom?{left:navX+margin,width:bounds.width-navX-2*margin,marginTop:-margin}:{marginLeft:-margin},axis:isPanelBottom?"y":"x"})),isDragging?react.createElement(HoverBlocker,null):null,children({mainProps:{viewMode,animate:!isDragging,isFullscreen,position:getMainPosition({bounds,resizerNav,isNavHidden,isFullscreen,margin})},previewProps:{viewMode,docsOnly,animate:!isDragging,isFullscreen,showToolbar,position:getPreviewPosition({isFullscreen,isNavHidden,isPanelHidden,resizerNav,resizerPanel,bounds,panelPosition,margin})},navProps:{viewMode,animate:!isDragging,hidden:isNavHidden,position:{height:bounds.height,left:0,top:0,width:navX+margin}},panelProps:{viewMode,animate:!isDragging,align:options.panelPosition,hidden:isPanelHidden,position:getPanelPosition({isPanelBottom,isPanelHidden,isNavHidden,bounds,resizerPanel,resizerNav,margin})}})):null}}],[{key:"getDerivedStateFromProps",value:function getDerivedStateFromProps(props,state){var bounds=props.bounds,options=props.options,resizerPanel=state.resizerPanel,resizerNav=state.resizerNav,isNavHidden=options.isFullscreen||!options.showNav,isPanelHidden=options.isFullscreen||!options.showPanel,panelPosition=options.panelPosition,isPanelRight="right"===panelPosition,isPanelBottom="bottom"===panelPosition,navX=resizerNav.x,panelX=resizerPanel.x,panelY=resizerPanel.y,mutation={};if(!isNavHidden){var minMainWidth=200+(!isPanelHidden&&isPanelRight?200:0),maxNavX=bounds.width-minMainWidth;navX>maxNavX?mutation.resizerNav={x:maxNavX,y:0}:(navX<200||maxNavX<200)&&(mutation.resizerNav={x:200,y:0})}if(isPanelRight&&!isPanelHidden){var maxPanelX=bounds.width-200,minPanelX=navX+200;panelX>maxPanelX||0===panelX?mutation.resizerPanel={x:maxPanelX,y:0}:panelXbounds.height-200||0===panelY)&&(mutation.resizerPanel={x:0,y:bounds.height-200}));return mutation.resizerPanel||mutation.resizerNav?Object.assign(Object.assign({},state),mutation):state}}]),Layout}(react.Component);Layout.defaultProps={viewMode:void 0,docsOnly:!1};var ThemedLayout=(0,theming_dist_esm.Zz)(Layout),Desktop=Object.assign(react.memo((function(_ref34){var Panel=_ref34.Panel,Sidebar=_ref34.Sidebar,Preview=_ref34.Preview,Notifications=_ref34.Notifications,pages=_ref34.pages,options=_ref34.options,_ref34$viewMode=_ref34.viewMode,viewMode=void 0===_ref34$viewMode?void 0:_ref34$viewMode,_ref34$width=_ref34.width,width=void 0===_ref34$width?0:_ref34$width,_ref34$height=_ref34.height,height=void 0===_ref34$height?0:_ref34$height,panelCount=_ref34.panelCount,_ref34$docsOnly=_ref34.docsOnly,docsOnly=void 0!==_ref34$docsOnly&&_ref34$docsOnly;return react.createElement(react.Fragment,null,react.createElement(Notifications,{placement:{position:"fixed",bottom:20,left:20}}),width&&height?react.createElement(ThemedLayout,{options,bounds:{width,height,top:0,left:0},viewMode,docsOnly:!!docsOnly,panelCount},(function(_ref35){var navProps=_ref35.navProps,mainProps=_ref35.mainProps,panelProps=_ref35.panelProps,previewProps=_ref35.previewProps;return react.createElement(react.Fragment,null,react.createElement(Sidebar$2,Object.assign({},navProps),react.createElement(Sidebar,null)),react.createElement(Main$1,Object.assign({},mainProps,{isFullscreen:!!mainProps.isFullscreen}),react.createElement(Preview$1,Object.assign({},previewProps,{hidden:"settings"===viewMode}),react.createElement(Preview,{id:"main"})),react.createElement(Panel$1,Object.assign({},panelProps,{hidden:"story"!==viewMode||docsOnly}),react.createElement(Panel,null)),pages.map((function(_ref36){var key=_ref36.key,Route=_ref36.route,Content=_ref36.render;return react.createElement(Route,{key},react.createElement(Content,null))}))))})):react.createElement("div",{title:JSON.stringify({width,height})}))})),{displayName:"DesktopLayout"}),StorybookLogoStyled=(0,theming_dist_esm.zo)(index_2a91f2bc.aq)({width:"auto",height:"22px !important",display:"block"}),Img$1=theming_dist_esm.zo.img({width:"auto",height:"auto",display:"block",maxWidth:"100%"}),LogoLink=theming_dist_esm.zo.a((function(_ref37){return{display:"inline-block",height:"100%",margin:"-3px -4px",padding:"2px 3px",border:"1px solid transparent",borderRadius:3,color:"inherit",textDecoration:"none","&:focus":{outline:0,borderColor:_ref37.theme.color.secondary}}})),Brand=(0,theming_dist_esm.Zz)((function(_ref38){var _theme$brand=_ref38.theme.brand,_theme$brand$title=_theme$brand.title,title=void 0===_theme$brand$title?"Storybook":_theme$brand$title,_theme$brand$url=_theme$brand.url,url=void 0===_theme$brand$url?"./":_theme$brand$url,image=_theme$brand.image,targetValue=_theme$brand.target||("./"===url?"":"_blank");if(null===image)return null===title?null:url?react.createElement(LogoLink,{href:url,target:targetValue,dangerouslySetInnerHTML:{__html:title}}):react.createElement("div",{dangerouslySetInnerHTML:{__html:title}});var logo=image?react.createElement(Img$1,{src:image,alt:title}):react.createElement(StorybookLogoStyled,{alt:title});return url?react.createElement(LogoLink,{title,href:url,target:targetValue},logo):react.createElement("div",null,logo)})),sharedStyles={height:10,width:10,marginLeft:-5,marginRight:-5,display:"block"},Icon=(0,theming_dist_esm.zo)(index_2a91f2bc.I)(sharedStyles,(function(_ref39){return{color:_ref39.theme.color.secondary}})),Img=theming_dist_esm.zo.img(sharedStyles),Placeholder=theming_dist_esm.zo.div(sharedStyles),MenuItemIcon=function MenuItemIcon(_ref40){var icon=_ref40.icon,imgSrc=_ref40.imgSrc;return icon?react.createElement(Icon,{icon}):imgSrc?react.createElement(Img,{src:imgSrc,alt:"image"}):react.createElement(Placeholder,null)},MenuButton=(0,theming_dist_esm.zo)(index_2a91f2bc.aa)((function(_ref41){var highlighted=_ref41.highlighted,theme=_ref41.theme;return Object.assign({position:"relative",overflow:"visible",padding:7,transition:"none","&:focus":{background:theme.barBg,boxShadow:"none"},"&:focus:before":{content:'""',position:"absolute",top:0,bottom:0,left:0,right:0,borderRadius:"100%",border:"1px solid ".concat(theme.color.secondary)}},highlighted&&{"&:after":{content:'""',position:"absolute",top:0,right:0,width:8,height:8,borderRadius:8,background:theme.color.positive}})})),SidebarMenuList=function SidebarMenuList(_ref42){var menu=_ref42.menu,onHide=_ref42.onHide,links=(0,react.useMemo)((function(){return menu.map((function(_a){var _onClick=_a.onClick,rest=__rest(_a,["onClick"]);return Object.assign(Object.assign({},rest),{onClick:function onClick(event,item){_onClick&&_onClick(event,item),onHide()}})}))}),[menu]);return react.createElement(index_2a91f2bc.ad,{links})},SidebarMenu=function SidebarMenu(_ref43){var isHighlighted=_ref43.isHighlighted,menu=_ref43.menu;return react.createElement(index_2a91f2bc.W,{placement:"top",trigger:"click",closeOnClick:!0,tooltip:function tooltip(_ref44){var onHide=_ref44.onHide;return react.createElement(SidebarMenuList,{onHide,menu})}},react.createElement(MenuButton,{outline:!0,small:!0,containsIcon:!0,highlighted:isHighlighted,title:"Shortcuts"},react.createElement(index_2a91f2bc.I,{icon:"ellipsis"})))},BrandArea=theming_dist_esm.zo.div((function(_ref45){var theme=_ref45.theme;return{fontSize:theme.typography.size.s2,fontWeight:theme.typography.weight.bold,color:theme.color.defaultText,marginRight:20,display:"flex",width:"100%",alignItems:"center",minHeight:22,"& > *":{maxWidth:"100%",height:"auto",display:"block",flex:"1 1 auto"}}})),HeadingWrapper=theming_dist_esm.zo.div({display:"flex",alignItems:"center",justifyContent:"space-between",position:"relative",minHeight:28}),SkipToCanvasLink=(0,theming_dist_esm.zo)(index_2a91f2bc.aa)((function(_ref46){return{display:"none","@media (min-width: 600px)":{display:"block",position:"absolute",width:"100%",padding:"10px 15px",fontSize:_ref46.theme.typography.size.s1,zIndex:1,transform:"translate(0,-100px)","&:focus":{transform:"translate(0)"}}}})),Heading=function Heading(_a){var _a$menuHighlighted=_a.menuHighlighted,menuHighlighted=void 0!==_a$menuHighlighted&&_a$menuHighlighted,menu=_a.menu,skipLinkHref=_a.skipLinkHref,props=__rest(_a,["menuHighlighted","menu","skipLinkHref"]);return react.createElement(HeadingWrapper,Object.assign({},props),skipLinkHref&&react.createElement(SkipToCanvasLink,{secondary:!0,isLink:!0,tabIndex:0,href:skipLinkHref},"Skip to canvas"),react.createElement(BrandArea,null,react.createElement(Brand,null)),react.createElement(SidebarMenu,{menu,isHighlighted:menuHighlighted}))},DEFAULT_REF_ID="storybook_internal",collapseAllStories=function collapseAllStories(stories){var componentIdToLeafId={},componentsFlattened=Object.values(stories).filter((function(item){return!(item.isLeaf&&stories[item.parent].isComponent)})).map((function(item){var id=item.id,isComponent=item.isComponent,children=item.children,rest=__rest(item,["id","isComponent","children"]);if(!isComponent)return item;var nonLeafChildren=[],leafChildren=[];if(children.forEach((function(child){return(stories[child].isLeaf?leafChildren:nonLeafChildren).push(child)})),0===leafChildren.length)return item;var leafId=leafChildren[0],component=Object.assign(Object.assign({args:{}},rest),{id:leafId,kind:stories[leafId].kind,isRoot:!1,isLeaf:!0,isComponent:!0,children:[]});if(componentIdToLeafId[id]=leafId,0!==nonLeafChildren.length)throw new Error("Unexpected '".concat(item.id,"': ").concat(JSON.stringify({isComponent,nonLeafChildren})));return component})),childrenRewritten=componentsFlattened.map((function(item){if(item.isLeaf)return item;var children=item.children,rest=__rest(item,["children"]),rewritten=children.map((function(child){return componentIdToLeafId[child]||child}));return Object.assign({children:rewritten},rest)})),result={};return childrenRewritten.forEach((function(item){result[item.id]=item})),result},collapseDocsOnlyStories=function collapseDocsOnlyStories(storiesHash){var componentIdToLeafId={},docsOnlyComponentsCollapsed=Object.values(storiesHash).filter((function(item){return!(item.isLeaf&&item.parameters&&item.parameters.docsOnly)||(componentIdToLeafId[item.parent]=item.id,!1)})).map((function(item){var isComponent=item.isComponent,children=item.children,id=item.id;if(isComponent&&1===children.length){var leafId=componentIdToLeafId[id];if(leafId)return Object.assign(Object.assign({args:{}},item),{id:leafId,isLeaf:!0,children:[]})}if(children){var rewritten=children.map((function(child){return componentIdToLeafId[child]||child}));return Object.assign(Object.assign({},item),{children:rewritten})}return item})),result={};return docsOnlyComponentsCollapsed.forEach((function(item){result[item.id]=item})),result};function _extends$1(){return _extends$1=Object.assign||function(target){for(var 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}}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)}var reduceHexValue$1=function reduceHexValue(value){return 7===value.length&&value[1]===value[2]&&value[3]===value[4]&&value[5]===value[6]?"#"+value[1]+value[3]+value[5]:value};function numberToHex(value){var hex=value.toString(16);return 1===hex.length?"0"+hex:hex}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"===_typeof2(value)&&void 0===green&&void 0===blue)return reduceHexValue$1("#"+numberToHex(value.red)+numberToHex(value.green)+numberToHex(value.blue));throw new PolishedError(6)}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 transparentize(amount,color){if("transparent"===color)return color;var lowerBoundary,upperBoundary,value,parsedColor=parseToRgb(color),alpha="number"==typeof parsedColor.alpha?parsedColor.alpha:1;return 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"===_typeof2(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)}(_extends$1({},parsedColor,{alpha:(lowerBoundary=0,upperBoundary=1,value=+(100*alpha-100*parseFloat(amount)).toFixed(2)/100,Math.max(lowerBoundary,Math.min(upperBoundary,value)))}))}var curriedTransparentize$1=curry(transparentize),LOADER_SEQUENCE=[0,0,1,1,2,3,3,3,1,1,1,2,2,2,3],Loadingitem=theming_dist_esm.zo.div({cursor:"progress",fontSize:13,height:"16px",marginTop:4,marginBottom:4,alignItems:"center",overflow:"hidden"},(function(_ref47){var _ref47$depth=_ref47.depth,depth=void 0===_ref47$depth?0:_ref47$depth;return{marginLeft:15*depth,maxWidth:85-5*depth}}),(function(_ref48){return _ref48.theme.animation.inlineGlow}),(function(_ref49){return{background:_ref49.theme.appBorderColor}})),Contained=theming_dist_esm.zo.div({display:"flex",flexDirection:"column",paddingLeft:20,paddingRight:20}),Loader=function Loader(_ref50){var size=_ref50.size,repeats=Math.ceil(size/LOADER_SEQUENCE.length),sequence=Array.from(Array(repeats)).fill(LOADER_SEQUENCE).flat().slice(0,size);return react.createElement(react.Fragment,null,sequence.map((function(depth,index){return react.createElement(Loadingitem,{depth,key:index})})))},globalWindow$3=window_1.window,document$9=window_1.document,TextStyle=theming_dist_esm.zo.div((function(_ref51){return{fontSize:_ref51.theme.typography.size.s2-1,lineHeight:"20px",margin:0}})),Text=theming_dist_esm.zo.div((function(_ref52){var theme=_ref52.theme;return{fontSize:theme.typography.size.s2-1,lineHeight:"20px",margin:0,code:{fontSize:theme.typography.size.s1},ul:{paddingLeft:20,marginTop:8,marginBottom:8}}})),ErrorDisplay=theming_dist_esm.zo.pre({width:420,boxSizing:"border-box",borderRadius:8,overflow:"auto",whiteSpace:"pre"},(function(_ref53){return{color:_ref53.theme.color.dark}})),ErrorName=theming_dist_esm.zo.strong((function(_ref54){return{color:_ref54.theme.color.orange}})),ErrorImportant=theming_dist_esm.zo.strong((function(_ref55){return{color:_ref55.theme.color.ancillary,textDecoration:"underline"}})),ErrorDetail=theming_dist_esm.zo.em((function(_ref56){return{color:_ref56.theme.color.mediumdark}})),firstLineRegex=/(Error): (.*)\n/,linesRegex=/at (?:(.*) )?\(?(.+)\)?/,ErrorFormatter=function ErrorFormatter(_ref57){var error=_ref57.error;if(!error)return react.createElement(react.Fragment,null,"This error has no stack or message");if(!error.stack)return react.createElement(react.Fragment,null,error.message||"This error has no stack or message");var input=error.stack.toString(),match=input.match(firstLineRegex);if(!match)return react.createElement(react.Fragment,null,input);var _match=_slicedToArray2(match,3),type=_match[1],name=_match[2],_rawLines$map$filter=input.split(/\n/).slice(1).map((function(line){var r=line.match(linesRegex);return r?{name:r[1],location:r[2].replace(document$9.location.origin,"")}:null})).filter(Boolean),lines=function _toArray(arr){return _arrayWithHoles2(arr)||_iterableToArray(arr)||_unsupportedIterableToArray2(arr)||_nonIterableRest2()}(_rawLines$map$filter).slice(1);return react.createElement(react.Fragment,null,react.createElement("span",null,type),": ",react.createElement(ErrorName,null,name),react.createElement("br",null),lines.map((function(l,i){return l.name?react.createElement(react.Fragment,{key:i}," ","at ",react.createElement(ErrorImportant,null,l.name)," (",react.createElement(ErrorDetail,null,l.location),")",react.createElement("br",null)):react.createElement(react.Fragment,{key:i}," ","at ",react.createElement(ErrorDetail,null,l.location),react.createElement("br",null))})))},AuthBlock=function AuthBlock(_ref58){var loginUrl=_ref58.loginUrl,id=_ref58.id,_useState2=_slicedToArray2((0,react.useState)(!1),2),isAuthAttempted=_useState2[0],setAuthAttempted=_useState2[1],refresh=(0,react.useCallback)((function(){globalWindow$3.document.location.reload()}),[]),open=(0,react.useCallback)((function(e){e.preventDefault();var childWindow=globalWindow$3.open(loginUrl,"storybook_auth_".concat(id),"resizable,scrollbars"),timer=setInterval((function(){childWindow?childWindow.closed&&(clearInterval(timer),setAuthAttempted(!0)):(client_logger_dist_esm.kg.error("unable to access loginUrl window"),clearInterval(timer))}),1e3)}),[]);return react.createElement(Contained,null,react.createElement(index_2a91f2bc.a7,null,isAuthAttempted?react.createElement(react.Fragment,null,react.createElement(Text,null,"Authentication on ",react.createElement("strong",null,loginUrl)," concluded. Refresh the page to fetch this Storybook."),react.createElement("div",null,react.createElement(index_2a91f2bc.aa,{small:!0,gray:!0,onClick:refresh},react.createElement(index_2a91f2bc.I,{icon:"sync"}),"Refresh now"))):react.createElement(react.Fragment,null,react.createElement(Text,null,"Sign in to browse this Storybook."),react.createElement("div",null,react.createElement(index_2a91f2bc.aa,{small:!0,gray:!0,onClick:open},react.createElement(index_2a91f2bc.I,{icon:"lock"}),"Sign in")))))},ErrorBlock=function ErrorBlock(_ref59){var error=_ref59.error;return react.createElement(Contained,null,react.createElement(index_2a91f2bc.a7,null,react.createElement(TextStyle,null,"Oh no! Something went wrong loading this Storybook.",react.createElement("br",null),react.createElement(index_2a91f2bc.W,{trigger:"click",closeOnClick:!1,tooltip:react.createElement(ErrorDisplay,null,react.createElement(ErrorFormatter,{error}))},react.createElement(index_2a91f2bc.a4,{isButton:!0},"View error ",react.createElement(index_2a91f2bc.I,{icon:"arrowdown"})))," ",react.createElement(index_2a91f2bc.a4,{withArrow:!0,href:"https://storybook.js.org/docs",cancel:!1,target:"_blank"},"View docs"))))},FlexSpaced=(0,theming_dist_esm.zo)(index_2a91f2bc.a7)({display:"flex"}),WideSpaced=(0,theming_dist_esm.zo)(index_2a91f2bc.a7)({flex:1}),EmptyBlock=function EmptyBlock(_ref60){var isMain=_ref60.isMain;return react.createElement(Contained,null,react.createElement(FlexSpaced,{col:1},react.createElement(WideSpaced,null,react.createElement(Text,null,isMain?react.createElement(react.Fragment,null,"Oh no! Your Storybook is empty. Possible reasons why:",react.createElement("ul",null,react.createElement("li",null,"The glob specified in ",react.createElement("code",null,"main.js")," isn't correct."),react.createElement("li",null,"No stories are defined in your story files."))," "):react.createElement(react.Fragment,null,"Yikes! Something went wrong loading these stories.")))))},LoaderBlock=function LoaderBlock(_ref61){var isMain=_ref61.isMain;return react.createElement(Contained,null,react.createElement(Loader,{size:isMain?17:5}))},document$8=window_1.document,globalWindow$2=window_1.window,IndicatorPlacement=theming_dist_esm.zo.aside((function(_ref62){return{height:16,display:"flex",alignItems:"center","& > * + *":{marginLeft:_ref62.theme.layoutMargin}}})),IndicatorClickTarget=theming_dist_esm.zo.button((function(_ref63){var theme=_ref63.theme;return{height:20,width:20,padding:0,margin:0,display:"flex",alignItems:"center",justifyContent:"center",background:"transparent",outline:"none",border:"1px solid transparent",borderRadius:"100%",cursor:"pointer",color:"light"===theme.base?curriedTransparentize$1(.3,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText),"&:hover":{color:theme.barSelectedColor},"&:focus":{color:theme.barSelectedColor,borderColor:theme.color.secondary},svg:{height:10,width:10,transition:"all 150ms ease-out",color:"inherit"}}})),MessageTitle=theming_dist_esm.zo.span((function(_ref64){return{fontWeight:_ref64.theme.typography.weight.bold}})),Message$1=theming_dist_esm.zo.a((function(_ref65){var theme=_ref65.theme;return{textDecoration:"none",lineHeight:"16px",padding:15,display:"flex",flexDirection:"row",alignItems:"flex-start",color:theme.color.defaultText,"&:not(:last-child)":{borderBottom:"1px solid ".concat(theme.appBorderColor)},"&:hover":{background:theme.background.hoverable,color:theme.color.darker},"&:link":{color:theme.color.darker},"&:active":{color:theme.color.darker},"&:focus":{color:theme.color.darker},"& > *":{flex:1},"& > svg":{marginTop:3,width:16,height:16,marginRight:10,flex:"unset"}}})),MessageWrapper=theming_dist_esm.zo.div({width:280,boxSizing:"border-box",borderRadius:8,overflow:"hidden"}),BlueIcon=(0,theming_dist_esm.zo)(index_2a91f2bc.I)((function(_ref66){return{color:_ref66.theme.color.secondary}})),YellowIcon=(0,theming_dist_esm.zo)(index_2a91f2bc.I)((function(_ref67){return{color:_ref67.theme.color.gold}})),RedIcon=(0,theming_dist_esm.zo)(index_2a91f2bc.I)((function(_ref68){return{color:_ref68.theme.color.negative}})),GreenIcon=(0,theming_dist_esm.zo)(index_2a91f2bc.I)((function(_ref69){return{color:_ref69.theme.color.green}})),Version=theming_dist_esm.zo.div((function(_ref70){var theme=_ref70.theme;return{display:"flex",alignItems:"center",fontSize:theme.typography.size.s1,fontWeight:theme.typography.weight.regular,color:"light"===theme.base?curriedTransparentize$1(.3,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText),"& > * + *":{marginLeft:4},svg:{height:10,width:10}}})),CurrentVersion=function CurrentVersion(_ref71){var url=_ref71.url,versions=_ref71.versions,currentVersionId=(0,react.useMemo)((function(){var c=Object.entries(versions).find((function(_ref72){var _ref73=_slicedToArray2(_ref72,2);_ref73[0];return _ref73[1]===url}));return c&&c[0]?c[0]:"current"}),[url,versions]);return react.createElement(Version,null,react.createElement("span",null,currentVersionId),react.createElement(index_2a91f2bc.I,{icon:"chevrondown"}))},RefIndicator=react.memo((0,react.forwardRef)((function(_a,forwardedRef){var state=_a.state,ref=__rest(_a,["state"]),api=(0,dist_esm.Uo)(),list=(0,react.useMemo)((function(){return Object.values(ref.stories||{})}),[ref.stories]),componentCount=(0,react.useMemo)((function(){return list.filter((function(v){return v.isComponent})).length}),[list]),leafCount=(0,react.useMemo)((function(){return list.filter((function(v){return v.isLeaf})).length}),[list]),changeVersion=(0,react.useCallback)((function(event,item){event.preventDefault(),api.changeRefVersion(ref.id,item.href)}),[]);return react.createElement(IndicatorPlacement,{ref:forwardedRef},react.createElement(index_2a91f2bc.W,{placement:"bottom-start",trigger:"click",tooltip:react.createElement(MessageWrapper,null,react.createElement(index_2a91f2bc.a7,{row:0},"loading"===state&&react.createElement(LoadingMessage,{url:ref.url}),("error"===state||"empty"===state)&&react.createElement(ErrorOccurredMessage,{url:ref.url}),"ready"===state&&react.createElement(ReadyMessage,Object.assign({},{url:ref.url,componentCount,leafCount})),"auth"===state&&react.createElement(LoginRequiredMessage,Object.assign({},ref)),"auto-inject"===ref.type&&"error"!==state&&react.createElement(PerformanceDegradedMessage,null),"loading"!==state&&react.createElement(ReadDocsMessage,null)))},react.createElement(IndicatorClickTarget,{"data-action":"toggle-indicator","aria-label":"toggle indicator"},react.createElement(index_2a91f2bc.I,{icon:"globe"}))),ref.versions&&Object.keys(ref.versions).length?react.createElement(index_2a91f2bc.W,{placement:"bottom-start",trigger:"click",tooltip:react.createElement(index_2a91f2bc.ad,{links:Object.entries(ref.versions).map((function(_ref74){var _ref75=_slicedToArray2(_ref74,2),id=_ref75[0],href=_ref75[1];return{left:href===ref.url?react.createElement(MenuItemIcon,{icon:"check"}):react.createElement("span",null),id,title:id,href,onClick:changeVersion}}))})},react.createElement(CurrentVersion,{url:ref.url,versions:ref.versions})):null)}))),ReadyMessage=function ReadyMessage(_ref76){var url=_ref76.url,componentCount=_ref76.componentCount,leafCount=_ref76.leafCount;return react.createElement(Message$1,{href:url.replace(/\/?$/,"/index.html"),target:"_blank"},react.createElement(BlueIcon,{icon:"globe"}),react.createElement("div",null,react.createElement(MessageTitle,null,"View external Storybook"),react.createElement("div",null,"Explore ",componentCount," components and ",leafCount," stories in a new browser tab.")))},LoginRequiredMessage=function LoginRequiredMessage(_ref77){var loginUrl=_ref77.loginUrl,id=_ref77.id,open=(0,react.useCallback)((function(e){e.preventDefault();var childWindow=globalWindow$2.open(loginUrl,"storybook_auth_".concat(id),"resizable,scrollbars"),timer=setInterval((function(){childWindow?childWindow.closed&&(clearInterval(timer),document$8.location.reload()):clearInterval(timer)}),1e3)}),[]);return react.createElement(Message$1,{onClick:open},react.createElement(YellowIcon,{icon:"lock"}),react.createElement("div",null,react.createElement(MessageTitle,null,"Log in required"),react.createElement("div",null,"You need to authenticate to view this Storybook's components.")))},ReadDocsMessage=function ReadDocsMessage(){return react.createElement(Message$1,{href:"https://storybook.js.org",target:"_blank"},react.createElement(GreenIcon,{icon:"document"}),react.createElement("div",null,react.createElement(MessageTitle,null,"Read Composition docs"),react.createElement("div",null,"Learn how to combine multiple Storybooks into one.")))},ErrorOccurredMessage=function ErrorOccurredMessage(_ref78){var url=_ref78.url;return react.createElement(Message$1,{href:url.replace(/\/?$/,"/index.html"),target:"_blank"},react.createElement(RedIcon,{icon:"alert"}),react.createElement("div",null,react.createElement(MessageTitle,null,"Something went wrong"),react.createElement("div",null,"This external Storybook didn't load. Debug it in a new tab now.")))},LoadingMessage=function LoadingMessage(_ref79){var url=_ref79.url;return react.createElement(Message$1,{href:url.replace(/\/?$/,"/index.html"),target:"_blank"},react.createElement(BlueIcon,{icon:"time"}),react.createElement("div",null,react.createElement(MessageTitle,null,"Please wait"),react.createElement("div",null,"This Storybook is loading.")))},PerformanceDegradedMessage=function PerformanceDegradedMessage(){return react.createElement(Message$1,{href:"https://storybook.js.org/docs",target:"_blank"},react.createElement(YellowIcon,{icon:"lightning"}),react.createElement("div",null,react.createElement(MessageTitle,null,"Reduce lag"),react.createElement("div",null,"Learn how to speed up Composition performance.")))},DOCS_MODE$4=window_1.DOCS_MODE,CollapseIcon=theming_dist_esm.zo.span((function(_ref80){var theme=_ref80.theme,isExpanded=_ref80.isExpanded;return{display:"inline-block",width:0,height:0,marginTop:6,marginLeft:8,marginRight:5,color:curriedTransparentize$1(.4,theme.color.mediumdark),borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid",transform:isExpanded?"rotateZ(90deg)":"none",transition:"transform .1s ease-out"}})),iconColors={light:{document:DOCS_MODE$4?"secondary":"#ff8300",bookmarkhollow:"seafoam",component:"secondary",folder:"ultraviolet"},dark:{document:DOCS_MODE$4?"secondary":"gold",bookmarkhollow:"seafoam",component:"secondary",folder:"primary"}},isColor=function isColor(theme,color){return color in theme.color},TypeIcon=(0,theming_dist_esm.zo)(index_2a91f2bc.I)({width:12,height:12,padding:1,marginTop:3,marginRight:5,flex:"0 0 auto"},(function(_ref81){var theme=_ref81.theme,icon=_ref81.icon,_ref81$symbol=_ref81.symbol,symbol=void 0===_ref81$symbol?icon:_ref81$symbol,color=("dark"===theme.base?iconColors.dark:iconColors.light)[symbol];return{color:isColor(theme,color)?theme.color[color]:color}})),BranchNode=theming_dist_esm.zo.button((function(_ref82){var theme=_ref82.theme,_ref82$depth=_ref82.depth,depth=void 0===_ref82$depth?0:_ref82$depth,_ref82$isExpandable=_ref82.isExpandable;return{width:"100%",border:"none",cursor:"pointer",display:"flex",alignItems:"start",textAlign:"left",padding:3,paddingLeft:"".concat((void 0!==_ref82$isExpandable&&_ref82$isExpandable?2:18)+16*depth,"px"),color:"inherit",fontSize:"".concat(theme.typography.size.s2-1,"px"),background:"transparent","&:hover, &:focus":{background:theme.background.hoverable,outline:"none"}}})),LeafNode=theming_dist_esm.zo.a((function(_ref83){var theme=_ref83.theme,_ref83$depth=_ref83.depth;return{cursor:"pointer",display:"flex",alignItems:"start",padding:3,paddingLeft:"".concat(18+16*(void 0===_ref83$depth?0:_ref83$depth),"px"),fontSize:"".concat(theme.typography.size.s2-1,"px"),textDecoration:"none",color:theme.color.defaultText,background:"transparent","&:hover, &:focus":{outline:"none",background:theme.background.hoverable},'&[data-selected="true"]':{color:theme.color.lightest,background:theme.color.secondary,fontWeight:theme.typography.weight.bold,"&:hover, &:focus":{background:theme.color.secondary},svg:{color:theme.color.lightest}}}})),Path=theming_dist_esm.zo.span((function(_ref84){var theme=_ref84.theme;return{display:"grid",justifyContent:"start",gridAutoColumns:"auto",gridAutoFlow:"column",color:theme.textMutedColor,fontSize:"".concat(theme.typography.size.s1-1,"px"),"& > span":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},"& > span + span":{position:"relative",marginLeft:4,paddingLeft:7,"&:before":{content:"'/'",position:"absolute",left:0}}}})),RootNode=theming_dist_esm.zo.div((function(_ref85){var theme=_ref85.theme;return{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 20px",marginTop:16,marginBottom:4,fontSize:"".concat(theme.typography.size.s1-1,"px"),fontWeight:theme.typography.weight.black,lineHeight:"16px",minHeight:20,letterSpacing:"0.35em",textTransform:"uppercase",color:theme.color.mediumdark}})),GroupNode=react.memo((function(_a){var children=_a.children,_a$isExpanded=_a.isExpanded,isExpanded=void 0!==_a$isExpanded&&_a$isExpanded,_a$isExpandable=_a.isExpandable,isExpandable=void 0!==_a$isExpandable&&_a$isExpandable,props=__rest(_a,["children","isExpanded","isExpandable"]);return react.createElement(BranchNode,Object.assign({isExpandable,tabIndex:-1},props),isExpandable?react.createElement(CollapseIcon,{isExpanded}):null,react.createElement(TypeIcon,{symbol:"folder",color:"primary"}),children)})),ComponentNode=react.memo((function(_a){_a.theme;var children=_a.children,isExpanded=_a.isExpanded,isExpandable=_a.isExpandable,props=(_a.isSelected,__rest(_a,["theme","children","isExpanded","isExpandable","isSelected"]));return react.createElement(BranchNode,Object.assign({isExpandable,tabIndex:-1},props),isExpandable&&react.createElement(CollapseIcon,{isExpanded}),react.createElement(TypeIcon,{symbol:"component",color:"secondary"}),children)})),DocumentNode=react.memo((function(_a){_a.theme;var children=_a.children,props=__rest(_a,["theme","children"]);return react.createElement(LeafNode,Object.assign({tabIndex:-1},props),react.createElement(TypeIcon,{symbol:"document"}),children)})),StoryNode=react.memo((function(_a){_a.theme;var children=_a.children,props=__rest(_a,["theme","children"]);return react.createElement(LeafNode,Object.assign({tabIndex:-1},props),react.createElement(TypeIcon,{symbol:"bookmarkhollow"}),children)})),debounce$1=debounce_1,isObject$7=isObject_1;var throttle_1=function throttle(func,wait,options){var leading=!0,trailing=!0;if("function"!=typeof func)throw new TypeError("Expected a function");return isObject$7(options)&&(leading="leading"in options?!!options.leading:leading,trailing="trailing"in options?!!options.trailing:trailing),debounce$1(func,wait,{leading,maxWait:wait,trailing})},codeToKeyMap={Space:" ",Slash:"/",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown",Escape:"Escape",Enter:"Enter"},allFalse={alt:!1,ctrl:!1,meta:!1,shift:!1},matchesModifiers=function matchesModifiers(modifiers,event){var _ref86=!1===modifiers?allFalse:modifiers,alt=_ref86.alt,ctrl=_ref86.ctrl,meta=_ref86.meta,shift=_ref86.shift;return("boolean"!=typeof alt||alt===event.altKey)&&(("boolean"!=typeof ctrl||ctrl===event.ctrlKey)&&(("boolean"!=typeof meta||meta===event.metaKey)&&("boolean"!=typeof shift||shift===event.shiftKey)))},matchesKeyCode=function matchesKeyCode(code,event){return event.code?event.code===code:event.key===codeToKeyMap[code]},document$7=window_1.document,globalWindow$1=window_1.window,DOCS_MODE$3=window_1.DOCS_MODE,createId=function createId(itemId,refId){return refId&&refId!==DEFAULT_REF_ID?"".concat(refId,"_").concat(itemId):itemId},getLink=function getLink(itemId,refId){var type=DOCS_MODE$3?"docs":"story";return"".concat(document$7.location.pathname,"?path=/").concat(type,"/").concat(createId(itemId,refId))},get$1=memoizerific(1e3)((function(id,dataset){return dataset[id]})),getParent=memoizerific(1e3)((function(id,dataset){var item=get$1(id,dataset);return item&&!(0,dist_esm.C_)(item)?get$1(item.parent,dataset):void 0})),getParents=memoizerific(1e3)((function(id,dataset){var parent=getParent(id,dataset);return parent?[parent].concat(_toConsumableArray(getParents(parent.id,dataset))):[]})),getAncestorIds=memoizerific(1e3)((function(data,id){return getParents(id,data).map((function(item){return item.id}))})),getDescendantIds=memoizerific(1e3)((function(data,id,skipLeafs){var _ref87$children=(data[id]||{}).children;return(void 0===_ref87$children?[]:_ref87$children).reduce((function(acc,childId){return!data[childId]||skipLeafs&&data[childId].isLeaf||acc.push.apply(acc,[childId].concat(_toConsumableArray(getDescendantIds(data,childId,skipLeafs)))),acc}),[])}));function getPath(item,ref){var parent=!(0,dist_esm.C_)(item)&&item.parent?ref.stories[item.parent]:null;return parent?[].concat(_toConsumableArray(getPath(parent,ref)),[parent.name]):ref.id===DEFAULT_REF_ID?[]:[ref.title||ref.id]}var searchItem=function searchItem(item,ref){return Object.assign(Object.assign({},item),{refId:ref.id,path:getPath(item,ref)})};var scrollIntoView$1=function scrollIntoView$1(element){var center=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(element){var _element$getBoundingC=element.getBoundingClientRect(),top=_element$getBoundingC.top,bottom=_element$getBoundingC.bottom;top>=0&&bottom<=(globalWindow$1.innerHeight||document$7.documentElement.clientHeight)||element.scrollIntoView({block:center?"center":"nearest"})}},isAncestor=function isAncestor(element,maybeAncestor){return!(!element||!maybeAncestor)&&(element===maybeAncestor||isAncestor(element.parentElement,maybeAncestor))},removeNoiseFromName=function removeNoiseFromName(storyName){return storyName.replaceAll(/(\s|-|_)/gi,"")},document$6=window_1.document,initializeExpanded=function initializeExpanded(_ref88){var _a,_b,refId=_ref88.refId,data=_ref88.data,initialExpanded=_ref88.initialExpanded,highlightedRef=_ref88.highlightedRef,rootIds=_ref88.rootIds,highlightedAncestors=(null===(_a=highlightedRef.current)||void 0===_a?void 0:_a.refId)===refId?getAncestorIds(data,null===(_b=highlightedRef.current)||void 0===_b?void 0:_b.itemId):[];return[].concat(_toConsumableArray(rootIds),_toConsumableArray(highlightedAncestors)).reduce((function(acc,id){return Object.assign(acc,_defineProperty2({},id,!(id in initialExpanded)||initialExpanded[id]))}),{})},noop$2=function noop$2(){},Action=theming_dist_esm.zo.button((function(_ref92){var theme=_ref92.theme;return{display:"inline-flex",alignItems:"center",justifyContent:"center",width:20,height:20,margin:0,marginLeft:"auto",padding:0,outline:0,lineHeight:"normal",background:"none",border:"1px solid transparent",borderRadius:"100%",cursor:"pointer",transition:"all 150ms ease-out",color:"light"===theme.base?curriedTransparentize$1(.3,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText),"&:hover":{color:theme.color.secondary},"&:focus":{color:theme.color.secondary,borderColor:theme.color.secondary,"&:not(:focus-visible)":{borderColor:"transparent"}},svg:{width:10,height:10}}})),CollapseButton$1=theming_dist_esm.zo.button((function(_ref93){var theme=_ref93.theme;return{background:"transparent",border:"none",outline:"none",boxSizing:"content-box",cursor:"pointer",position:"relative",textAlign:"left",lineHeight:"normal",font:"inherit",color:"inherit",letterSpacing:"inherit",textTransform:"inherit",display:"flex",flex:"0 1 auto",padding:"3px 10px 1px 1px",margin:0,marginLeft:-19,overflow:"hidden",borderRadius:26,transition:"color 150ms, box-shadow 150ms","span:first-of-type":{marginTop:4,marginRight:7},"&:focus":{boxShadow:"0 0 0 1px ".concat(theme.color.secondary),color:theme.color.secondary,"span:first-of-type":{color:theme.color.secondary},"&:not(:focus-visible)":{boxShadow:"none"}}}})),LeafNodeStyleWrapper=theming_dist_esm.zo.div((function(_ref94){_ref94.theme;return{position:"relative"}})),SkipToContentLink=(0,theming_dist_esm.zo)(index_2a91f2bc.aa)((function(_ref95){_ref95.theme;return{display:"none","@media (min-width: 600px)":{display:"block",zIndex:-1,position:"absolute",top:1,right:20,height:"20px",fontSize:"10px",padding:"5px 10px","&:focus":{background:"white",zIndex:1}}}})),Node=react.memo((function(_ref96){var _a,_b,_c,item=_ref96.item,refId=_ref96.refId,isOrphan=_ref96.isOrphan,isDisplayed=_ref96.isDisplayed,isSelected=_ref96.isSelected,isFullyExpanded=_ref96.isFullyExpanded,setFullyExpanded=_ref96.setFullyExpanded,isExpanded=_ref96.isExpanded,setExpanded=_ref96.setExpanded,onSelectStoryId=_ref96.onSelectStoryId;if(!isDisplayed)return null;var id=createId(item.id,refId);if((0,dist_esm.zK)(item)){var _LeafNode=item.isComponent?DocumentNode:StoryNode;return react.createElement(LeafNodeStyleWrapper,null,react.createElement(_LeafNode,{key:id,id,className:"sidebar-item","data-ref-id":refId,"data-item-id":item.id,"data-parent-id":item.parent,"data-nodetype":item.isComponent?"document":"story","data-selected":isSelected,"data-highlightable":isDisplayed,depth:isOrphan?item.depth:item.depth-1,href:getLink(item.id,refId),onClick:function onClick(event){event.preventDefault(),onSelectStoryId(item.id)}},(null===(_a=item.renderLabel)||void 0===_a?void 0:_a.call(item,item))||item.name),isSelected&&react.createElement(SkipToContentLink,{secondary:!0,outline:!0,isLink:!0,href:"#storybook-preview-wrapper"},"Skip to canvas"))}if((0,dist_esm.C_)(item))return react.createElement(RootNode,{key:id,id,className:"sidebar-subheading","data-ref-id":refId,"data-item-id":item.id,"data-nodetype":"root","aria-expanded":isExpanded},react.createElement(CollapseButton$1,{type:"button","data-action":"collapse-root",onClick:function onClick(event){event.preventDefault(),setExpanded({ids:[item.id],value:!isExpanded})}},react.createElement(CollapseIcon,{isExpanded}),(null===(_b=item.renderLabel)||void 0===_b?void 0:_b.call(item,item))||item.name),isExpanded&&react.createElement(Action,{type:"button",className:"sidebar-subheading-action","aria-label":"expand","data-action":"expand-all","data-expanded":isFullyExpanded,onClick:function onClick(event){event.preventDefault(),setFullyExpanded()}},react.createElement(index_2a91f2bc.I,{icon:isFullyExpanded?"collapse":"expandalt"})));var BranchNode=item.isComponent?ComponentNode:GroupNode;return react.createElement(BranchNode,{key:id,id,className:"sidebar-item","data-ref-id":refId,"data-item-id":item.id,"data-parent-id":item.parent,"data-nodetype":item.isComponent?"component":"group","data-highlightable":isDisplayed,"aria-controls":item.children&&item.children[0],"aria-expanded":isExpanded,depth:isOrphan?item.depth:item.depth-1,isComponent:item.isComponent,isExpandable:item.children&&item.children.length>0,isExpanded,onClick:function onClick(event){event.preventDefault(),setExpanded({ids:[item.id],value:!isExpanded}),item.isComponent&&!isExpanded&&onSelectStoryId(item.id)}},(null===(_c=item.renderLabel)||void 0===_c?void 0:_c.call(item,item))||item.name)})),Root$1=react.memo((function(_a){var setExpanded=_a.setExpanded,isFullyExpanded=_a.isFullyExpanded,expandableDescendants=_a.expandableDescendants,props=__rest(_a,["setExpanded","isFullyExpanded","expandableDescendants"]),setFullyExpanded=(0,react.useCallback)((function(){return setExpanded({ids:expandableDescendants,value:!isFullyExpanded})}),[setExpanded,isFullyExpanded,expandableDescendants]);return react.createElement(Node,Object.assign({},props,{setExpanded,isFullyExpanded,setFullyExpanded}))})),Container$4=theming_dist_esm.zo.div((function(props){return{marginTop:props.hasOrphans?20:0,marginBottom:20}})),Tree=react.memo((function(_ref97){var isBrowsing=_ref97.isBrowsing,isMain=_ref97.isMain,refId=_ref97.refId,data=_ref97.data,highlightedRef=_ref97.highlightedRef,setHighlightedItemId=_ref97.setHighlightedItemId,selectedStoryId=_ref97.selectedStoryId,onSelectStoryId=_ref97.onSelectStoryId,containerRef=(0,react.useRef)(null),_useMemo=(0,react.useMemo)((function(){return Object.keys(data).reduce((function(acc,id){var item=data[id];return(0,dist_esm.C_)(item)?acc[0].push(id):item.parent||acc[1].push(id),(0,dist_esm.C_)(item)&&item.startCollapsed&&(acc[2][id]=!1),acc}),[[],[],{}])}),[data]),_useMemo2=_slicedToArray2(_useMemo,3),rootIds=_useMemo2[0],orphanIds=_useMemo2[1],initialExpanded=_useMemo2[2],_useMemo3=(0,react.useMemo)((function(){return orphanIds.concat(rootIds).reduce((function(acc,nodeId){var _acc$orphansFirst,descendantIds=getDescendantIds(data,nodeId,!1);return(_acc$orphansFirst=acc.orphansFirst).push.apply(_acc$orphansFirst,[nodeId].concat(_toConsumableArray(descendantIds))),acc.expandableDescendants[nodeId]=descendantIds.filter((function(d){return!data[d].isLeaf})),acc}),{orphansFirst:[],expandableDescendants:{}})}),[data,rootIds,orphanIds]),orphansFirst=_useMemo3.orphansFirst,expandableDescendants=_useMemo3.expandableDescendants,singleStoryComponentIds=(0,react.useMemo)((function(){return orphansFirst.filter((function(nodeId){var _data$nodeId=data[nodeId],_data$nodeId$children=_data$nodeId.children,children=void 0===_data$nodeId$children?[]:_data$nodeId$children,isComponent=_data$nodeId.isComponent,isLeaf=_data$nodeId.isLeaf,name=_data$nodeId.name;return!isLeaf&&isComponent&&1===children.length&&(0,dist_esm.zK)(data[children[0]])&&function isStoryHoistable(storyName,componentName){return removeNoiseFromName(storyName)===removeNoiseFromName(componentName)}(data[children[0]].name,name)}))}),[data,orphansFirst]),collapsedItems=(0,react.useMemo)((function(){return orphansFirst.filter((function(id){return!singleStoryComponentIds.includes(id)}))}),[orphanIds,orphansFirst,singleStoryComponentIds]),collapsedData=(0,react.useMemo)((function(){return singleStoryComponentIds.reduce((function(acc,id){var _data$id=data[id],children=_data$id.children,parent=_data$id.parent,childId=_slicedToArray2(children,1)[0];if(parent){var siblings=_toConsumableArray(data[parent].children);siblings[siblings.indexOf(id)]=childId,acc[parent]=Object.assign(Object.assign({},data[parent]),{children:siblings})}return acc[childId]=Object.assign(Object.assign({},data[childId]),{parent,depth:data[childId].depth-1}),acc}),Object.assign({},data))}),[data]),ancestry=(0,react.useMemo)((function(){return collapsedItems.reduce((function(acc,id){return Object.assign(acc,_defineProperty2({},id,getAncestorIds(collapsedData,id)))}),{})}),[collapsedItems,collapsedData]),_useExpanded=function useExpanded(_ref89){var containerRef=_ref89.containerRef,isBrowsing=_ref89.isBrowsing,refId=_ref89.refId,data=_ref89.data,initialExpanded=_ref89.initialExpanded,rootIds=_ref89.rootIds,highlightedRef=_ref89.highlightedRef,setHighlightedItemId=_ref89.setHighlightedItemId,selectedStoryId=_ref89.selectedStoryId,onSelectStoryId=_ref89.onSelectStoryId,api=(0,dist_esm.Uo)(),_useReducer=(0,react.useReducer)((function(state,_ref90){var ids=_ref90.ids,value=_ref90.value;return ids.reduce((function(acc,id){return Object.assign(acc,_defineProperty2({},id,value))}),Object.assign({},state))}),{refId,data,highlightedRef,rootIds,initialExpanded},initializeExpanded),_useReducer2=_slicedToArray2(_useReducer,2),expanded=_useReducer2[0],setExpanded=_useReducer2[1],getElementByDataItemId=(0,react.useCallback)((function(id){var _a;return null===(_a=containerRef.current)||void 0===_a?void 0:_a.querySelector('[data-item-id="'.concat(id,'"]'))}),[containerRef]),highlightElement=(0,react.useCallback)((function(element){setHighlightedItemId(element.getAttribute("data-item-id")),scrollIntoView$1(element)}),[setHighlightedItemId]),updateExpanded=(0,react.useCallback)((function(_ref91){var _a,ids=_ref91.ids,value=_ref91.value;if(setExpanded({ids,value}),1===ids.length){var element=null===(_a=containerRef.current)||void 0===_a?void 0:_a.querySelector('[data-item-id="'.concat(ids[0],'"][data-ref-id="').concat(refId,'"]'));element&&highlightElement(element)}}),[containerRef,highlightElement,refId]);(0,react.useEffect)((function(){setExpanded({ids:getAncestorIds(data,selectedStoryId),value:!0})}),[data,selectedStoryId]);var collapseAll=(0,react.useCallback)((function(){var ids=Object.keys(data).filter((function(id){return!rootIds.includes(id)}));setExpanded({ids,value:!1})}),[data,rootIds]),expandAll=(0,react.useCallback)((function(){setExpanded({ids:Object.keys(data),value:!0})}),[data]);return(0,react.useEffect)((function(){return api?(api.on(core_events_dist_esm.STORIES_COLLAPSE_ALL,collapseAll),api.on(core_events_dist_esm.STORIES_EXPAND_ALL,expandAll),function(){api.off(core_events_dist_esm.STORIES_COLLAPSE_ALL,collapseAll),api.off(core_events_dist_esm.STORIES_EXPAND_ALL,expandAll)}):noop$2}),[api,collapseAll,expandAll]),(0,react.useEffect)((function(){var menuElement=document$6.getElementById("storybook-explorer-menu"),navigateTree=throttle_1((function(event){var _a,_b,highlightedItemId=(null===(_a=highlightedRef.current)||void 0===_a?void 0:_a.refId)===refId&&(null===(_b=highlightedRef.current)||void 0===_b?void 0:_b.itemId);if(isBrowsing&&containerRef.current&&highlightedItemId&&!event.repeat&&matchesModifiers(!1,event)){var isEnter=matchesKeyCode("Enter",event),isSpace=matchesKeyCode("Space",event),isArrowLeft=matchesKeyCode("ArrowLeft",event),isArrowRight=matchesKeyCode("ArrowRight",event);if(isEnter||isSpace||isArrowLeft||isArrowRight){var highlightedElement=getElementByDataItemId(highlightedItemId);if(highlightedElement&&highlightedElement.getAttribute("data-ref-id")===refId){var target=event.target;if(isAncestor(menuElement,target)||isAncestor(target,menuElement)){if(target.hasAttribute("data-action")){if(isEnter||isSpace)return;target.blur()}var type=highlightedElement.getAttribute("data-nodetype");(isEnter||isSpace)&&["component","story","document"].includes(type)&&onSelectStoryId(highlightedItemId);var isExpanded=highlightedElement.getAttribute("aria-expanded");if(isArrowLeft){if("true"===isExpanded)return void setExpanded({ids:[highlightedItemId],value:!1});var parentId=highlightedElement.getAttribute("data-parent-id"),parentElement=parentId&&getElementByDataItemId(parentId);return parentElement&&"true"===parentElement.getAttribute("data-highlightable")?void highlightElement(parentElement):void setExpanded({ids:getDescendantIds(data,highlightedItemId,!0),value:!1})}isArrowRight&&("false"===isExpanded?updateExpanded({ids:[highlightedItemId],value:!0}):"true"===isExpanded&&updateExpanded({ids:getDescendantIds(data,highlightedItemId,!0),value:!0}))}}}}}),60);return document$6.addEventListener("keydown",navigateTree),function(){return document$6.removeEventListener("keydown",navigateTree)}}),[containerRef,isBrowsing,refId,data,highlightedRef,setHighlightedItemId,onSelectStoryId]),[expanded,updateExpanded]}({containerRef,isBrowsing,refId,data:collapsedData,initialExpanded,rootIds,highlightedRef,setHighlightedItemId,selectedStoryId,onSelectStoryId}),_useExpanded2=_slicedToArray2(_useExpanded,2),expanded=_useExpanded2[0],setExpanded=_useExpanded2[1];return react.createElement(Container$4,{ref:containerRef,hasOrphans:isMain&&orphanIds.length>0},collapsedItems.map((function(itemId){var item=collapsedData[itemId],id=createId(itemId,refId);if((0,dist_esm.C_)(item)){var descendants=expandableDescendants[item.id],isFullyExpanded=descendants.every((function(d){return expanded[d]}));return react.createElement(Root$1,{key:id,item,refId,isOrphan:!1,isDisplayed:!0,isSelected:selectedStoryId===itemId,isExpanded:!!expanded[itemId],setExpanded,isFullyExpanded,expandableDescendants:descendants,onSelectStoryId})}var isDisplayed=!item.parent||ancestry[itemId].every((function(a){return expanded[a]}));return react.createElement(Node,{key:id,item,refId,isOrphan:orphanIds.some((function(oid){return itemId===oid||itemId.startsWith("".concat(oid,"-"))})),isDisplayed,isSelected:selectedStoryId===itemId,isExpanded:!!expanded[itemId],setExpanded,onSelectStoryId})})))})),Wrapper=theming_dist_esm.zo.div((function(_ref98){return{position:"relative",marginLeft:-20,marginRight:-20,marginTop:_ref98.isMain?void 0:0}})),RefHead=theming_dist_esm.zo.div((function(_ref99){var theme=_ref99.theme;return{fontWeight:theme.typography.weight.black,fontSize:theme.typography.size.s2-1,textDecoration:"none",lineHeight:"16px",display:"flex",alignItems:"center",justifyContent:"space-between",background:"transparent",width:"100%",marginTop:20,paddingTop:16,borderTop:"1px solid ".concat(theme.appBorderColor),color:"light"===theme.base?theme.color.defaultText:curriedTransparentize$1(.2,theme.color.defaultText)}})),RefTitle=theming_dist_esm.zo.span((function(_ref100){_ref100.theme;return{display:"block",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,overflow:"hidden",marginLeft:2}})),CollapseButton=theming_dist_esm.zo.button((function(_ref101){var theme=_ref101.theme;return{background:"transparent",border:"1px solid transparent",borderRadius:26,outline:"none",boxSizing:"content-box",cursor:"pointer",position:"relative",textAlign:"left",lineHeight:"normal",font:"inherit",color:"inherit",display:"flex",padding:3,paddingLeft:1,paddingRight:12,margin:0,marginLeft:-20,overflow:"hidden","span:first-of-type":{marginTop:5},"&:focus":{borderColor:theme.color.secondary,"span:first-of-type":{borderLeftColor:theme.color.secondary}}}})),Ref=react.memo((function(props){var api=(0,dist_esm.Uo)(),stories=props.stories,refId=props.id,_props$title=props.title,title=void 0===_props$title?refId:_props$title,isLoadingMain=props.isLoading,isBrowsing=props.isBrowsing,selectedStoryId=props.selectedStoryId,highlightedRef=props.highlightedRef,setHighlighted=props.setHighlighted,loginUrl=props.loginUrl,type=props.type,_props$expanded=props.expanded,expanded=void 0===_props$expanded||_props$expanded,ready=props.ready,error=props.error,length=(0,react.useMemo)((function(){return stories?Object.keys(stories).length:0}),[stories]),indicatorRef=(0,react.useRef)(null),isMain=refId===DEFAULT_REF_ID,isLoading=isLoadingMain||"auto-inject"===type&&!ready||"unknown"===type,state=function getStateType(isLoading,isAuthRequired,isError,isEmpty){switch(!0){case isAuthRequired:return"auth";case isError:return"error";case isLoading:return"loading";case isEmpty:return"empty";default:return"ready"}}(isLoading,!!loginUrl&&0===length,!!error,!isLoading&&0===length),_useState4=_slicedToArray2((0,react.useState)(expanded),2),isExpanded=_useState4[0],setExpanded=_useState4[1],handleClick=(0,react.useCallback)((function(){return setExpanded((function(value){return!value}))}),[setExpanded]),setHighlightedItemId=(0,react.useCallback)((function(itemId){return setHighlighted({itemId,refId})}),[setHighlighted]),onSelectStoryId=(0,react.useCallback)((function(storyId){return api&&api.selectStory(storyId,void 0,{ref:!isMain&&refId})}),[api,isMain,refId]);return react.createElement(react.Fragment,null,isMain||react.createElement(RefHead,{"aria-label":"".concat(isExpanded?"Hide":"Show"," ").concat(title," stories"),"aria-expanded":isExpanded},react.createElement(CollapseButton,{"data-action":"collapse-ref",onClick:handleClick},react.createElement(CollapseIcon,{isExpanded}),react.createElement(RefTitle,{title},title)),react.createElement(RefIndicator,Object.assign({},props,{state,ref:indicatorRef}))),isExpanded&&react.createElement(Wrapper,{"data-title":title,isMain},"auth"===state&&react.createElement(AuthBlock,{id:refId,loginUrl}),"error"===state&&react.createElement(ErrorBlock,{error}),"loading"===state&&react.createElement(LoaderBlock,{isMain}),"empty"===state&&react.createElement(EmptyBlock,{isMain}),"ready"===state&&react.createElement(Tree,{isBrowsing,isMain,refId,data:stories,selectedStoryId,onSelectStoryId,highlightedRef,setHighlightedItemId})))})),document$5=window_1.document,globalWindow=window_1.window,fromSelection=function fromSelection(selection){return selection?{itemId:selection.storyId,refId:selection.refId}:null},HighlightStyles=function HighlightStyles(_ref103){var refId=_ref103.refId,itemId=_ref103.itemId;return react.createElement(theming_dist_esm.xB,{styles:function styles(_ref104){var _dataRefId$conca,color=_ref104.color,background=curriedTransparentize$1(.85,color.secondary);return _defineProperty2({},'[data-ref-id="'.concat(refId,'"][data-item-id="').concat(itemId,'"]:not([data-selected="true"])'),(_defineProperty2(_dataRefId$conca={},'&[data-nodetype="component"], &[data-nodetype="group"]',{background,"&:hover, &:focus":{background}}),_defineProperty2(_dataRefId$conca,'&[data-nodetype="story"], &[data-nodetype="document"]',{color:color.defaultText,background,"&:hover, &:focus":{background}}),_dataRefId$conca))}})},Explorer=react.memo((function(_ref106){var isLoading=_ref106.isLoading,isBrowsing=_ref106.isBrowsing,dataset=_ref106.dataset,selected=_ref106.selected,containerRef=(0,react.useRef)(null),_useHighlighted=function useHighlighted(_ref102){var containerRef=_ref102.containerRef,isLoading=_ref102.isLoading,isBrowsing=_ref102.isBrowsing,dataset=_ref102.dataset,selected=_ref102.selected,initialHighlight=fromSelection(selected),highlightedRef=(0,react.useRef)(initialHighlight),_useState6=_slicedToArray2((0,react.useState)(initialHighlight),2),highlighted=_useState6[0],setHighlighted=_useState6[1],updateHighlighted=(0,react.useCallback)((function(highlight){highlightedRef.current=highlight,setHighlighted(highlight)}),[highlightedRef]),highlightElement=(0,react.useCallback)((function(element){var center=arguments.length>1&&void 0!==arguments[1]&&arguments[1],itemId=element.getAttribute("data-item-id"),refId=element.getAttribute("data-ref-id");itemId&&refId&&(updateHighlighted({itemId,refId}),scrollIntoView$1(element,center))}),[updateHighlighted]);return(0,react.useEffect)((function(){var highlight=fromSelection(selected);if(updateHighlighted(highlight),highlight){var itemId=highlight.itemId,refId=highlight.refId;setTimeout((function(){var _a;scrollIntoView$1(null===(_a=containerRef.current)||void 0===_a?void 0:_a.querySelector('[data-item-id="'.concat(itemId,'"][data-ref-id="').concat(refId,'"]')),!0)}),0)}}),[dataset,highlightedRef,containerRef,selected]),(0,react.useEffect)((function(){var lastRequestId,menuElement=document$5.getElementById("storybook-explorer-menu"),navigateTree=function navigateTree(event){if(!isLoading&&isBrowsing&&containerRef.current&&matchesModifiers(!1,event)){var isArrowUp=matchesKeyCode("ArrowUp",event),isArrowDown=matchesKeyCode("ArrowDown",event);if(isArrowUp||isArrowDown){event.preventDefault();var requestId=globalWindow.requestAnimationFrame((function(){globalWindow.cancelAnimationFrame(lastRequestId),lastRequestId=requestId;var target=event.target;if(isAncestor(menuElement,target)||isAncestor(target,menuElement)){target.hasAttribute("data-action")&&target.blur();var highlightable=Array.from(containerRef.current.querySelectorAll("[data-highlightable=true]")),currentIndex=highlightable.findIndex((function(el){var _a,_b;return el.getAttribute("data-item-id")===(null===(_a=highlightedRef.current)||void 0===_a?void 0:_a.itemId)&&el.getAttribute("data-ref-id")===(null===(_b=highlightedRef.current)||void 0===_b?void 0:_b.refId)})),nextIndex=function cycle(array,index,delta){var next=index+delta%array.length;return next<0&&(next=array.length+next),next>=array.length&&(next-=array.length),next}(highlightable,currentIndex,isArrowUp?-1:1),didRunAround=isArrowUp?nextIndex===highlightable.length-1:0===nextIndex;highlightElement(highlightable[nextIndex],didRunAround)}}))}}};return document$5.addEventListener("keydown",navigateTree),function(){return document$5.removeEventListener("keydown",navigateTree)}}),[isLoading,isBrowsing,highlightedRef,highlightElement]),[highlighted,updateHighlighted,highlightedRef]}({containerRef,isLoading,isBrowsing,dataset,selected}),_useHighlighted2=_slicedToArray2(_useHighlighted,3),highlighted=_useHighlighted2[0],setHighlighted=_useHighlighted2[1],highlightedRef=_useHighlighted2[2];return react.createElement("div",{ref:containerRef,id:"storybook-explorer-tree","data-highlighted-ref-id":null==highlighted?void 0:highlighted.refId,"data-highlighted-item-id":null==highlighted?void 0:highlighted.itemId},highlighted&&react.createElement(HighlightStyles,Object.assign({},highlighted)),dataset.entries.map((function(_ref107){var _ref108=_slicedToArray2(_ref107,2),refId=_ref108[0],ref=_ref108[1];return react.createElement(Ref,Object.assign({},ref,{key:refId,isLoading,isBrowsing,selectedStoryId:(null==selected?void 0:selected.refId)===ref.id?selected.storyId:null,highlightedRef,setHighlighted}))})))}));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}function _extends(){return _extends=Object.assign||function(target){for(var i=1;ie||o>t&&l=e&&d>=n?o-t-r:l>e&&dn?l-e+i:0}reactIs_production_min.ContextConsumer=h$1,reactIs_production_min.ContextProvider=z$1,reactIs_production_min.Element=A$1,reactIs_production_min.ForwardRef=B$1,reactIs_production_min.Fragment=C$1,reactIs_production_min.Lazy=D$1,reactIs_production_min.Memo=E$1,reactIs_production_min.Portal=F$1,reactIs_production_min.Profiler=G$1,reactIs_production_min.StrictMode=H$1,reactIs_production_min.Suspense=I$1,reactIs_production_min.isAsyncMode=function(){return!1},reactIs_production_min.isConcurrentMode=function(){return!1},reactIs_production_min.isContextConsumer=function(a){return y$1(a)===h$1},reactIs_production_min.isContextProvider=function(a){return y$1(a)===g$1},reactIs_production_min.isElement=function(a){return"object"===_typeof2(a)&&null!==a&&a.$$typeof===b$1},reactIs_production_min.isForwardRef=function(a){return y$1(a)===k$1},reactIs_production_min.isFragment=function(a){return y$1(a)===d$1},reactIs_production_min.isLazy=function(a){return y$1(a)===p$1},reactIs_production_min.isMemo=function(a){return y$1(a)===n$2},reactIs_production_min.isPortal=function(a){return y$1(a)===c$1},reactIs_production_min.isProfiler=function(a){return y$1(a)===f$1},reactIs_production_min.isStrictMode=function(a){return y$1(a)===e$2},reactIs_production_min.isSuspense=function(a){return y$1(a)===l$1},reactIs_production_min.isValidElementType=function(a){return"string"==typeof a||"function"==typeof a||a===d$1||a===f$1||a===v$1||a===e$2||a===l$1||a===m$1||a===w$1||"object"===_typeof2(a)&&null!==a&&(a.$$typeof===p$1||a.$$typeof===n$2||a.$$typeof===g$1||a.$$typeof===h$1||a.$$typeof===k$1||a.$$typeof===u$1||a.$$typeof===q$1||a[0]===r$2)},reactIs_production_min.typeOf=y$1,reactIs.exports=reactIs_production_min;var idCounter=0;function cbToCb(cb){return"function"==typeof cb?cb:noop$1}function noop$1(){}function scrollIntoView(node,menuNode){if(node){var actions=function computeScrollIntoView(e,i){var o=window,l=i.scrollMode,d=i.block,u=i.inline,h=i.boundary,a=i.skipOverflowHiddenElements,c="function"==typeof h?h:function(t){return t!==h};if(!t(e))throw new TypeError("Invalid target");for(var f=document.scrollingElement||document.documentElement,s=[],p=e;t(p)&&c(p);){if((p=p.parentElement)===f){s.push(p);break}null!=p&&p===document.body&&n$1(p)&&!n$1(document.documentElement)||null!=p&&n$1(p,a)&&s.push(p)}for(var m=o.visualViewport?o.visualViewport.width:innerWidth,g=o.visualViewport?o.visualViewport.height:innerHeight,w=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,W=e.getBoundingClientRect(),b=W.height,H=W.width,y=W.top,E=W.right,M=W.bottom,V=W.left,x="start"===d||"nearest"===d?y:"end"===d?M:y+b/2,I="center"===u?V+H/2:"end"===u?E:V,C=[],T=0;T=0&&V>=0&&M<=g&&E<=m&&y>=R&&M<=Y&&V>=L&&E<=X)return C;var S=getComputedStyle(k),j=parseInt(S.borderLeftWidth,10),q=parseInt(S.borderTopWidth,10),z=parseInt(S.borderRightWidth,10),A=parseInt(S.borderBottomWidth,10),F=0,G=0,J="offsetWidth"in k?k.offsetWidth-k.clientWidth-j-z:0,K="offsetHeight"in k?k.offsetHeight-k.clientHeight-q-A:0;if(f===k)F="start"===d?x:"end"===d?x-g:"nearest"===d?r$1(v,v+g,g,q,A,v+x,v+x+b,b):x-g/2,G="start"===u?I:"center"===u?I-m/2:"end"===u?I-m:r$1(w,w+m,m,j,z,w+I,w+I+H,H),F=Math.max(0,F+v),G=Math.max(0,G+w);else{F="start"===d?x-R-q:"end"===d?x-Y+A+K:"nearest"===d?r$1(R,Y,D,q,A+K,x,x+b,b):x-(R+D/2)+K/2,G="start"===u?I-L-j:"center"===u?I-(L+O/2)+J/2:"end"===u?I-X+z+J:r$1(L,X,O,j,z+J,I,I+H,H);var N=k.scrollLeft,P=k.scrollTop;x+=P-(F=Math.max(0,Math.min(P+F,k.scrollHeight-D+K))),I+=N-(G=Math.max(0,Math.min(N+G,k.scrollWidth-O+J)))}C.push({el:k,top:F,left:G})}return C}(node,{boundary:menuNode,block:"nearest",scrollMode:"if-needed"});actions.forEach((function(_ref){var el=_ref.el,top=_ref.top,left=_ref.left;el.scrollTop=top,el.scrollLeft=left}))}}function isOrContainsNode(parent,child,environment){return parent===child||child instanceof environment.Node&&parent.contains&&parent.contains(child)}function debounce(fn,time){var timeoutId;function cancel(){timeoutId&&clearTimeout(timeoutId)}function wrapper(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];cancel(),timeoutId=setTimeout((function(){timeoutId=null,fn.apply(void 0,args)}),time)}return wrapper.cancel=cancel,wrapper}function callAllEventHandlers(){for(var _len2=arguments.length,fns=new Array(_len2),_key2=0;_key2<_len2;_key2++)fns[_key2]=arguments[_key2];return function(event){for(var _len3=arguments.length,args=new Array(_len3>1?_len3-1:0),_key3=1;_key3<_len3;_key3++)args[_key3-1]=arguments[_key3];return fns.some((function(fn){return fn&&fn.apply(void 0,[event].concat(args)),event.preventDownshiftDefault||event.hasOwnProperty("nativeEvent")&&event.nativeEvent.preventDownshiftDefault}))}}function handleRefs(){for(var _len4=arguments.length,refs=new Array(_len4),_key4=0;_key4<_len4;_key4++)refs[_key4]=arguments[_key4];return function(node){refs.forEach((function(ref){"function"==typeof ref?ref(node):ref&&(ref.current=node)}))}}function getA11yStatusMessage$1(_ref2){var isOpen=_ref2.isOpen,resultCount=_ref2.resultCount,previousResultCount=_ref2.previousResultCount;return isOpen?resultCount?resultCount!==previousResultCount?resultCount+" result"+(1===resultCount?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function unwrapArray(arg,defaultValue){return!(arg=Array.isArray(arg)?arg[0]:arg)&&defaultValue?defaultValue:arg}function isDOMElement(element){return"string"==typeof element.type}function getElementProps(element){return element.props}var stateKeys=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function pickState(state){void 0===state&&(state={});var result={};return stateKeys.forEach((function(k){state.hasOwnProperty(k)&&(result[k]=state[k])})),result}function isControlledProp(props,key){return void 0!==props[key]}function normalizeArrowKey(event){var key=event.key,keyCode=event.keyCode;return keyCode>=37&&keyCode<=40&&0!==key.indexOf("Arrow")?"Arrow"+key:key}function getNextWrappingIndex(moveAmount,baseIndex,itemCount,getItemNodeFromIndex,circular){if(void 0===circular&&(circular=!0),0===itemCount)return-1;var itemsLastIndex=itemCount-1;("number"!=typeof baseIndex||baseIndex<0||baseIndex>=itemCount)&&(baseIndex=moveAmount>0?-1:itemsLastIndex+1);var newIndex=baseIndex+moveAmount;newIndex<0?newIndex=circular?itemsLastIndex:0:newIndex>itemsLastIndex&&(newIndex=circular?0:itemsLastIndex);var nonDisabledNewIndex=getNextNonDisabledIndex(moveAmount,newIndex,itemCount,getItemNodeFromIndex,circular);return-1===nonDisabledNewIndex?baseIndex>=itemCount?-1:baseIndex:nonDisabledNewIndex}function getNextNonDisabledIndex(moveAmount,baseIndex,itemCount,getItemNodeFromIndex,circular){var currentElementNode=getItemNodeFromIndex(baseIndex);if(!currentElementNode||!currentElementNode.hasAttribute("disabled"))return baseIndex;if(moveAmount>0){for(var index=baseIndex+1;index=0;_index--)if(!getItemNodeFromIndex(_index).hasAttribute("disabled"))return _index;return circular?moveAmount>0?getNextNonDisabledIndex(1,0,itemCount,getItemNodeFromIndex,!1):getNextNonDisabledIndex(-1,itemCount-1,itemCount,getItemNodeFromIndex,!1):-1}function targetWithinDownshift(target,downshiftElements,environment,checkActiveElement){return void 0===checkActiveElement&&(checkActiveElement=!0),downshiftElements.some((function(contextNode){return contextNode&&(isOrContainsNode(contextNode,target,environment)||checkActiveElement&&isOrContainsNode(contextNode,environment.document.activeElement,environment))}))}var cleanupStatus=debounce((function(documentProp){getStatusDiv(documentProp).textContent=""}),500);function setStatus(status,documentProp){var div=getStatusDiv(documentProp);status&&(div.textContent=status,cleanupStatus(documentProp))}function getStatusDiv(documentProp){void 0===documentProp&&(documentProp=document);var statusDiv=documentProp.getElementById("a11y-status-message");return statusDiv||((statusDiv=documentProp.createElement("div")).setAttribute("id","a11y-status-message"),statusDiv.setAttribute("role","status"),statusDiv.setAttribute("aria-live","polite"),statusDiv.setAttribute("aria-relevant","additions text"),Object.assign(statusDiv.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),documentProp.body.appendChild(statusDiv),statusDiv)}var stateChangeTypes$3=Object.freeze({__proto__:null,unknown:0,mouseUp:1,itemMouseEnter:2,keyDownArrowUp:3,keyDownArrowDown:4,keyDownEscape:5,keyDownEnter:6,keyDownHome:7,keyDownEnd:8,clickItem:9,blurInput:10,changeInput:11,keyDownSpaceButton:12,clickButton:13,blurButton:14,controlledPropUpdatedSelectedItem:15,touchEnd:16}),_excluded$4=["refKey","ref"],_excluded2$3=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],_excluded3$2=["onKeyDown","onBlur","onChange","onInput","onChangeText"],_excluded4$1=["refKey","ref"],_excluded5$1=["onMouseMove","onMouseDown","onClick","onPress","index","item"],Downshift=function(){var Downshift=function(_Component){function Downshift(_props){var _this;(_this=_Component.call(this,_props)||this).id=_this.props.id||"downshift-"+function generateId(){return String(idCounter++)}(),_this.menuId=_this.props.menuId||_this.id+"-menu",_this.labelId=_this.props.labelId||_this.id+"-label",_this.inputId=_this.props.inputId||_this.id+"-input",_this.getItemId=_this.props.getItemId||function(index){return _this.id+"-item-"+index},_this.input=null,_this.items=[],_this.itemCount=null,_this.previousResultCount=0,_this.timeoutIds=[],_this.internalSetTimeout=function(fn,time){var id=setTimeout((function(){_this.timeoutIds=_this.timeoutIds.filter((function(i){return i!==id})),fn()}),time);_this.timeoutIds.push(id)},_this.setItemCount=function(count){_this.itemCount=count},_this.unsetItemCount=function(){_this.itemCount=null},_this.setHighlightedIndex=function(highlightedIndex,otherStateToSet){void 0===highlightedIndex&&(highlightedIndex=_this.props.defaultHighlightedIndex),void 0===otherStateToSet&&(otherStateToSet={}),otherStateToSet=pickState(otherStateToSet),_this.internalSetState(_extends({highlightedIndex},otherStateToSet))},_this.clearSelection=function(cb){_this.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:_this.props.defaultHighlightedIndex,isOpen:_this.props.defaultIsOpen},cb)},_this.selectItem=function(item,otherStateToSet,cb){otherStateToSet=pickState(otherStateToSet),_this.internalSetState(_extends({isOpen:_this.props.defaultIsOpen,highlightedIndex:_this.props.defaultHighlightedIndex,selectedItem:item,inputValue:_this.props.itemToString(item)},otherStateToSet),cb)},_this.selectItemAtIndex=function(itemIndex,otherStateToSet,cb){var item=_this.items[itemIndex];null!=item&&_this.selectItem(item,otherStateToSet,cb)},_this.selectHighlightedItem=function(otherStateToSet,cb){return _this.selectItemAtIndex(_this.getState().highlightedIndex,otherStateToSet,cb)},_this.internalSetState=function(stateToSet,cb){var isItemSelected,onChangeArg,onStateChangeArg={},isStateToSetFunction="function"==typeof stateToSet;return!isStateToSetFunction&&stateToSet.hasOwnProperty("inputValue")&&_this.props.onInputValueChange(stateToSet.inputValue,_extends({},_this.getStateAndHelpers(),stateToSet)),_this.setState((function(state){state=_this.getState(state);var newStateToSet=isStateToSetFunction?stateToSet(state):stateToSet;newStateToSet=_this.props.stateReducer(state,newStateToSet),isItemSelected=newStateToSet.hasOwnProperty("selectedItem");var nextState={},nextFullState={};return isItemSelected&&newStateToSet.selectedItem!==state.selectedItem&&(onChangeArg=newStateToSet.selectedItem),newStateToSet.type=newStateToSet.type||0,Object.keys(newStateToSet).forEach((function(key){state[key]!==newStateToSet[key]&&(onStateChangeArg[key]=newStateToSet[key]),"type"!==key&&(nextFullState[key]=newStateToSet[key],isControlledProp(_this.props,key)||(nextState[key]=newStateToSet[key]))})),isStateToSetFunction&&newStateToSet.hasOwnProperty("inputValue")&&_this.props.onInputValueChange(newStateToSet.inputValue,_extends({},_this.getStateAndHelpers(),newStateToSet)),nextState}),(function(){cbToCb(cb)(),Object.keys(onStateChangeArg).length>1&&_this.props.onStateChange(onStateChangeArg,_this.getStateAndHelpers()),isItemSelected&&_this.props.onSelect(stateToSet.selectedItem,_this.getStateAndHelpers()),void 0!==onChangeArg&&_this.props.onChange(onChangeArg,_this.getStateAndHelpers()),_this.props.onUserAction(onStateChangeArg,_this.getStateAndHelpers())}))},_this.rootRef=function(node){return _this._rootNode=node},_this.getRootProps=function(_temp,_temp2){var _extends2,_ref=void 0===_temp?{}:_temp,_ref$refKey=_ref.refKey,refKey=void 0===_ref$refKey?"ref":_ref$refKey,ref=_ref.ref,rest=_objectWithoutPropertiesLoose(_ref,_excluded$4),_ref2$suppressRefErro=(void 0===_temp2?{}:_temp2).suppressRefError,suppressRefError=void 0!==_ref2$suppressRefErro&&_ref2$suppressRefErro;_this.getRootProps.called=!0,_this.getRootProps.refKey=refKey,_this.getRootProps.suppressRefError=suppressRefError;var isOpen=_this.getState().isOpen;return _extends(((_extends2={})[refKey]=handleRefs(ref,_this.rootRef),_extends2.role="combobox",_extends2["aria-expanded"]=isOpen,_extends2["aria-haspopup"]="listbox",_extends2["aria-owns"]=isOpen?_this.menuId:null,_extends2["aria-labelledby"]=_this.labelId,_extends2),rest)},_this.keyDownHandlers={ArrowDown:function ArrowDown(event){var _this2=this;if(event.preventDefault(),this.getState().isOpen){var amount=event.shiftKey?5:1;this.moveHighlightedIndex(amount,{type:4})}else this.internalSetState({isOpen:!0,type:4},(function(){var itemCount=_this2.getItemCount();if(itemCount>0){var nextHighlightedIndex=getNextWrappingIndex(1,_this2.getState().highlightedIndex,itemCount,(function(index){return _this2.getItemNodeFromIndex(index)}));_this2.setHighlightedIndex(nextHighlightedIndex,{type:4})}}))},ArrowUp:function ArrowUp(event){var _this3=this;if(event.preventDefault(),this.getState().isOpen){var amount=event.shiftKey?-5:-1;this.moveHighlightedIndex(amount,{type:3})}else this.internalSetState({isOpen:!0,type:3},(function(){var itemCount=_this3.getItemCount();if(itemCount>0){var nextHighlightedIndex=getNextWrappingIndex(-1,_this3.getState().highlightedIndex,itemCount,(function(index){return _this3.getItemNodeFromIndex(index)}));_this3.setHighlightedIndex(nextHighlightedIndex,{type:3})}}))},Enter:function Enter(event){if(229!==event.which){var _this$getState2=this.getState(),isOpen=_this$getState2.isOpen,highlightedIndex=_this$getState2.highlightedIndex;if(isOpen&&null!=highlightedIndex){event.preventDefault();var item=this.items[highlightedIndex],itemNode=this.getItemNodeFromIndex(highlightedIndex);if(null==item||itemNode&&itemNode.hasAttribute("disabled"))return;this.selectHighlightedItem({type:6})}}},Escape:function Escape(event){event.preventDefault(),this.reset(_extends({type:5},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},_this.buttonKeyDownHandlers=_extends({},_this.keyDownHandlers,{" ":function _(event){event.preventDefault(),this.toggleMenu({type:12})}}),_this.inputKeyDownHandlers=_extends({},_this.keyDownHandlers,{Home:function Home(event){var _this4=this,isOpen=this.getState().isOpen;if(isOpen){event.preventDefault();var itemCount=this.getItemCount();if(!(itemCount<=0)&&isOpen){var newHighlightedIndex=getNextNonDisabledIndex(1,0,itemCount,(function(index){return _this4.getItemNodeFromIndex(index)}),!1);this.setHighlightedIndex(newHighlightedIndex,{type:7})}}},End:function End(event){var _this5=this,isOpen=this.getState().isOpen;if(isOpen){event.preventDefault();var itemCount=this.getItemCount();if(!(itemCount<=0)&&isOpen){var newHighlightedIndex=getNextNonDisabledIndex(-1,itemCount-1,itemCount,(function(index){return _this5.getItemNodeFromIndex(index)}),!1);this.setHighlightedIndex(newHighlightedIndex,{type:8})}}}}),_this.getToggleButtonProps=function(_temp3){var _ref3=void 0===_temp3?{}:_temp3,onClick=_ref3.onClick;_ref3.onPress;var onKeyDown=_ref3.onKeyDown,onKeyUp=_ref3.onKeyUp,onBlur=_ref3.onBlur,rest=_objectWithoutPropertiesLoose(_ref3,_excluded2$3),isOpen=_this.getState().isOpen,enabledEventHandlers={onClick:callAllEventHandlers(onClick,_this.buttonHandleClick),onKeyDown:callAllEventHandlers(onKeyDown,_this.buttonHandleKeyDown),onKeyUp:callAllEventHandlers(onKeyUp,_this.buttonHandleKeyUp),onBlur:callAllEventHandlers(onBlur,_this.buttonHandleBlur)};return _extends({type:"button",role:"button","aria-label":isOpen?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},rest.disabled?{}:enabledEventHandlers,rest)},_this.buttonHandleKeyUp=function(event){event.preventDefault()},_this.buttonHandleKeyDown=function(event){var key=normalizeArrowKey(event);_this.buttonKeyDownHandlers[key]&&_this.buttonKeyDownHandlers[key].call(_assertThisInitialized(_this),event)},_this.buttonHandleClick=function(event){event.preventDefault(),_this.props.environment.document.activeElement===_this.props.environment.document.body&&event.target.focus(),_this.internalSetTimeout((function(){return _this.toggleMenu({type:13})}))},_this.buttonHandleBlur=function(event){var blurTarget=event.target;_this.internalSetTimeout((function(){_this.isMouseDown||null!=_this.props.environment.document.activeElement&&_this.props.environment.document.activeElement.id===_this.inputId||_this.props.environment.document.activeElement===blurTarget||_this.reset({type:14})}))},_this.getLabelProps=function(props){return _extends({htmlFor:_this.inputId,id:_this.labelId},props)},_this.getInputProps=function(_temp4){var _ref4=void 0===_temp4?{}:_temp4,onKeyDown=_ref4.onKeyDown,onBlur=_ref4.onBlur,onChange=_ref4.onChange,onInput=_ref4.onInput;_ref4.onChangeText;var rest=_objectWithoutPropertiesLoose(_ref4,_excluded3$2),eventHandlers={};var _eventHandlers,_this$getState6=_this.getState(),inputValue=_this$getState6.inputValue,isOpen=_this$getState6.isOpen,highlightedIndex=_this$getState6.highlightedIndex;rest.disabled||((_eventHandlers={}).onChange=callAllEventHandlers(onChange,onInput,_this.inputHandleChange),_eventHandlers.onKeyDown=callAllEventHandlers(onKeyDown,_this.inputHandleKeyDown),_eventHandlers.onBlur=callAllEventHandlers(onBlur,_this.inputHandleBlur),eventHandlers=_eventHandlers);return _extends({"aria-autocomplete":"list","aria-activedescendant":isOpen&&"number"==typeof highlightedIndex&&highlightedIndex>=0?_this.getItemId(highlightedIndex):null,"aria-controls":isOpen?_this.menuId:null,"aria-labelledby":_this.labelId,autoComplete:"off",value:inputValue,id:_this.inputId},eventHandlers,rest)},_this.inputHandleKeyDown=function(event){var key=normalizeArrowKey(event);key&&_this.inputKeyDownHandlers[key]&&_this.inputKeyDownHandlers[key].call(_assertThisInitialized(_this),event)},_this.inputHandleChange=function(event){_this.internalSetState({type:11,isOpen:!0,inputValue:event.target.value,highlightedIndex:_this.props.defaultHighlightedIndex})},_this.inputHandleBlur=function(){_this.internalSetTimeout((function(){var downshiftButtonIsActive=_this.props.environment.document&&!!_this.props.environment.document.activeElement&&!!_this.props.environment.document.activeElement.dataset&&_this.props.environment.document.activeElement.dataset.toggle&&_this._rootNode&&_this._rootNode.contains(_this.props.environment.document.activeElement);_this.isMouseDown||downshiftButtonIsActive||_this.reset({type:10})}))},_this.menuRef=function(node){_this._menuNode=node},_this.getMenuProps=function(_temp5,_temp6){var _extends3,_ref5=void 0===_temp5?{}:_temp5,_ref5$refKey=_ref5.refKey,refKey=void 0===_ref5$refKey?"ref":_ref5$refKey,ref=_ref5.ref,props=_objectWithoutPropertiesLoose(_ref5,_excluded4$1),_ref6$suppressRefErro=(void 0===_temp6?{}:_temp6).suppressRefError,suppressRefError=void 0!==_ref6$suppressRefErro&&_ref6$suppressRefErro;return _this.getMenuProps.called=!0,_this.getMenuProps.refKey=refKey,_this.getMenuProps.suppressRefError=suppressRefError,_extends(((_extends3={})[refKey]=handleRefs(ref,_this.menuRef),_extends3.role="listbox",_extends3["aria-labelledby"]=props&&props["aria-label"]?null:_this.labelId,_extends3.id=_this.menuId,_extends3),props)},_this.getItemProps=function(_temp7){var _enabledEventHandlers,_ref7=void 0===_temp7?{}:_temp7,onMouseMove=_ref7.onMouseMove,onMouseDown=_ref7.onMouseDown,onClick=_ref7.onClick;_ref7.onPress;var index=_ref7.index,_ref7$item=_ref7.item,item=void 0===_ref7$item?void 0:_ref7$item,rest=_objectWithoutPropertiesLoose(_ref7,_excluded5$1);void 0===index?(_this.items.push(item),index=_this.items.indexOf(item)):_this.items[index]=item;var customClickHandler=onClick,enabledEventHandlers=((_enabledEventHandlers={onMouseMove:callAllEventHandlers(onMouseMove,(function(){index!==_this.getState().highlightedIndex&&(_this.setHighlightedIndex(index,{type:2}),_this.avoidScrolling=!0,_this.internalSetTimeout((function(){return _this.avoidScrolling=!1}),250))})),onMouseDown:callAllEventHandlers(onMouseDown,(function(event){event.preventDefault()}))}).onClick=callAllEventHandlers(customClickHandler,(function(){_this.selectItemAtIndex(index,{type:9})})),_enabledEventHandlers),eventHandlers=rest.disabled?{onMouseDown:enabledEventHandlers.onMouseDown}:enabledEventHandlers;return _extends({id:_this.getItemId(index),role:"option","aria-selected":_this.getState().highlightedIndex===index},eventHandlers,rest)},_this.clearItems=function(){_this.items=[]},_this.reset=function(otherStateToSet,cb){void 0===otherStateToSet&&(otherStateToSet={}),otherStateToSet=pickState(otherStateToSet),_this.internalSetState((function(_ref8){var selectedItem=_ref8.selectedItem;return _extends({isOpen:_this.props.defaultIsOpen,highlightedIndex:_this.props.defaultHighlightedIndex,inputValue:_this.props.itemToString(selectedItem)},otherStateToSet)}),cb)},_this.toggleMenu=function(otherStateToSet,cb){void 0===otherStateToSet&&(otherStateToSet={}),otherStateToSet=pickState(otherStateToSet),_this.internalSetState((function(_ref9){var isOpen=_ref9.isOpen;return _extends({isOpen:!isOpen},isOpen&&{highlightedIndex:_this.props.defaultHighlightedIndex},otherStateToSet)}),(function(){var _this$getState7=_this.getState(),isOpen=_this$getState7.isOpen,highlightedIndex=_this$getState7.highlightedIndex;isOpen&&_this.getItemCount()>0&&"number"==typeof highlightedIndex&&_this.setHighlightedIndex(highlightedIndex,otherStateToSet),cbToCb(cb)()}))},_this.openMenu=function(cb){_this.internalSetState({isOpen:!0},cb)},_this.closeMenu=function(cb){_this.internalSetState({isOpen:!1},cb)},_this.updateStatus=debounce((function(){var state=_this.getState(),item=_this.items[state.highlightedIndex],resultCount=_this.getItemCount(),status=_this.props.getA11yStatusMessage(_extends({itemToString:_this.props.itemToString,previousResultCount:_this.previousResultCount,resultCount,highlightedItem:item},state));_this.previousResultCount=resultCount,setStatus(status,_this.props.environment.document)}),200);var _this$props=_this.props,defaultHighlightedIndex=_this$props.defaultHighlightedIndex,_this$props$initialHi=_this$props.initialHighlightedIndex,_highlightedIndex=void 0===_this$props$initialHi?defaultHighlightedIndex:_this$props$initialHi,defaultIsOpen=_this$props.defaultIsOpen,_this$props$initialIs=_this$props.initialIsOpen,_isOpen=void 0===_this$props$initialIs?defaultIsOpen:_this$props$initialIs,_this$props$initialIn=_this$props.initialInputValue,_inputValue=void 0===_this$props$initialIn?"":_this$props$initialIn,_this$props$initialSe=_this$props.initialSelectedItem,_selectedItem=void 0===_this$props$initialSe?null:_this$props$initialSe,_state=_this.getState({highlightedIndex:_highlightedIndex,isOpen:_isOpen,inputValue:_inputValue,selectedItem:_selectedItem});return null!=_state.selectedItem&&void 0===_this.props.initialInputValue&&(_state.inputValue=_this.props.itemToString(_state.selectedItem)),_this.state=_state,_this}!function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,_setPrototypeOf(subClass,superClass)}(Downshift,_Component);var _proto=Downshift.prototype;return _proto.internalClearTimeouts=function internalClearTimeouts(){this.timeoutIds.forEach((function(id){clearTimeout(id)})),this.timeoutIds=[]},_proto.getState=function getState$1(stateToMerge){return void 0===stateToMerge&&(stateToMerge=this.state),function getState(state,props){return Object.keys(state).reduce((function(prevState,key){return prevState[key]=isControlledProp(props,key)?props[key]:state[key],prevState}),{})}(stateToMerge,this.props)},_proto.getItemCount=function getItemCount(){var itemCount=this.items.length;return null!=this.itemCount?itemCount=this.itemCount:void 0!==this.props.itemCount&&(itemCount=this.props.itemCount),itemCount},_proto.getItemNodeFromIndex=function getItemNodeFromIndex(index){return this.props.environment.document.getElementById(this.getItemId(index))},_proto.scrollHighlightedItemIntoView=function scrollHighlightedItemIntoView(){var node=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(node,this._menuNode)},_proto.moveHighlightedIndex=function moveHighlightedIndex(amount,otherStateToSet){var _this6=this,itemCount=this.getItemCount(),highlightedIndex=this.getState().highlightedIndex;if(itemCount>0){var nextHighlightedIndex=getNextWrappingIndex(amount,highlightedIndex,itemCount,(function(index){return _this6.getItemNodeFromIndex(index)}));this.setHighlightedIndex(nextHighlightedIndex,otherStateToSet)}},_proto.getStateAndHelpers=function getStateAndHelpers(){var _this$getState9=this.getState(),highlightedIndex=_this$getState9.highlightedIndex,inputValue=_this$getState9.inputValue,selectedItem=_this$getState9.selectedItem,isOpen=_this$getState9.isOpen,itemToString=this.props.itemToString,id=this.id,getRootProps=this.getRootProps,getToggleButtonProps=this.getToggleButtonProps,getLabelProps=this.getLabelProps,getMenuProps=this.getMenuProps,getInputProps=this.getInputProps,getItemProps=this.getItemProps,openMenu=this.openMenu,closeMenu=this.closeMenu,toggleMenu=this.toggleMenu,selectItem=this.selectItem,selectItemAtIndex=this.selectItemAtIndex,selectHighlightedItem=this.selectHighlightedItem,setHighlightedIndex=this.setHighlightedIndex,clearSelection=this.clearSelection,clearItems=this.clearItems;return{getRootProps,getToggleButtonProps,getLabelProps,getMenuProps,getInputProps,getItemProps,reset:this.reset,openMenu,closeMenu,toggleMenu,selectItem,selectItemAtIndex,selectHighlightedItem,setHighlightedIndex,clearSelection,clearItems,setItemCount:this.setItemCount,unsetItemCount:this.unsetItemCount,setState:this.internalSetState,itemToString,id,highlightedIndex,inputValue,isOpen,selectedItem}},_proto.componentDidMount=function componentDidMount(){var _this7=this;var onMouseDown=function onMouseDown(){_this7.isMouseDown=!0},onMouseUp=function onMouseUp(event){_this7.isMouseDown=!1,!targetWithinDownshift(event.target,[_this7._rootNode,_this7._menuNode],_this7.props.environment)&&_this7.getState().isOpen&&_this7.reset({type:1},(function(){return _this7.props.onOuterClick(_this7.getStateAndHelpers())}))},onTouchStart=function onTouchStart(){_this7.isTouchMove=!1},onTouchMove=function onTouchMove(){_this7.isTouchMove=!0},onTouchEnd=function onTouchEnd(event){var contextWithinDownshift=targetWithinDownshift(event.target,[_this7._rootNode,_this7._menuNode],_this7.props.environment,!1);_this7.isTouchMove||contextWithinDownshift||!_this7.getState().isOpen||_this7.reset({type:16},(function(){return _this7.props.onOuterClick(_this7.getStateAndHelpers())}))},environment=this.props.environment;environment.addEventListener("mousedown",onMouseDown),environment.addEventListener("mouseup",onMouseUp),environment.addEventListener("touchstart",onTouchStart),environment.addEventListener("touchmove",onTouchMove),environment.addEventListener("touchend",onTouchEnd),this.cleanup=function(){_this7.internalClearTimeouts(),_this7.updateStatus.cancel(),environment.removeEventListener("mousedown",onMouseDown),environment.removeEventListener("mouseup",onMouseUp),environment.removeEventListener("touchstart",onTouchStart),environment.removeEventListener("touchmove",onTouchMove),environment.removeEventListener("touchend",onTouchEnd)}},_proto.shouldScroll=function shouldScroll(prevState,prevProps){var currentHighlightedIndex=(void 0===this.props.highlightedIndex?this.getState():this.props).highlightedIndex,prevHighlightedIndex=(void 0===prevProps.highlightedIndex?prevState:prevProps).highlightedIndex;return currentHighlightedIndex&&this.getState().isOpen&&!prevState.isOpen||currentHighlightedIndex!==prevHighlightedIndex},_proto.componentDidUpdate=function componentDidUpdate(prevProps,prevState){isControlledProp(this.props,"selectedItem")&&this.props.selectedItemChanged(prevProps.selectedItem,this.props.selectedItem)&&this.internalSetState({type:15,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(prevState,prevProps)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},_proto.componentWillUnmount=function componentWillUnmount(){this.cleanup()},_proto.render=function render(){var children=unwrapArray(this.props.children,noop$1);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var element=unwrapArray(children(this.getStateAndHelpers()));return element?this.getRootProps.called||this.props.suppressRefError?element:isDOMElement(element)?(0,react.cloneElement)(element,this.getRootProps(getElementProps(element))):void 0:null},Downshift}(react.Component);return Downshift.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:getA11yStatusMessage$1,itemToString:function itemToString(i){return null==i?"":String(i)},onStateChange:noop$1,onInputValueChange:noop$1,onUserAction:noop$1,onChange:noop$1,onSelect:noop$1,onOuterClick:noop$1,selectedItemChanged:function selectedItemChanged(prevItem,item){return prevItem!==item},environment:"undefined"==typeof window?{}:window,stateReducer:function stateReducer(state,stateToSet){return stateToSet},suppressRefError:!1,scrollIntoView},Downshift.stateChangeTypes=stateChangeTypes$3,Downshift}(),Downshift$1=Downshift;debounce((function(getA11yMessage,document){setStatus(getA11yMessage(),document)}),200);var defaultProps$3={itemToString:function itemToString(item){return item?String(item):""},stateReducer:function stateReducer(s,a){return a.changes},getA11ySelectionMessage:function getA11ySelectionMessage(selectionParameters){var selectedItem=selectionParameters.selectedItem,itemToStringLocal=selectionParameters.itemToString;return selectedItem?itemToStringLocal(selectedItem)+" has been selected.":""},scrollIntoView,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};PropTypes.array.isRequired,PropTypes.func,PropTypes.func,PropTypes.func,PropTypes.bool,PropTypes.number,PropTypes.number,PropTypes.number,PropTypes.bool,PropTypes.bool,PropTypes.bool,PropTypes.any,PropTypes.any,PropTypes.any,PropTypes.string,PropTypes.string,PropTypes.string,PropTypes.func,PropTypes.string,PropTypes.func,PropTypes.func,PropTypes.func,PropTypes.func,PropTypes.func,PropTypes.shape({addEventListener:PropTypes.func,removeEventListener:PropTypes.func,document:PropTypes.shape({getElementById:PropTypes.func,activeElement:PropTypes.any,body:PropTypes.any})}),_assign(_assign({},defaultProps$3),{getA11yStatusMessage:function getA11yStatusMessage(_a){var isOpen=_a.isOpen,resultCount=_a.resultCount,previousResultCount=_a.previousResultCount;return isOpen?resultCount?resultCount!==previousResultCount?resultCount+" result"+(1===resultCount?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.":"":"No results are available.":""}}),PropTypes.array.isRequired,PropTypes.func,PropTypes.func,PropTypes.func,PropTypes.bool,PropTypes.number,PropTypes.number,PropTypes.number,PropTypes.bool,PropTypes.bool,PropTypes.bool,PropTypes.any,PropTypes.any,PropTypes.any,PropTypes.string,PropTypes.string,PropTypes.string,PropTypes.string,PropTypes.string,PropTypes.string,PropTypes.func,PropTypes.string,PropTypes.string,PropTypes.func,PropTypes.func,PropTypes.func,PropTypes.func,PropTypes.func,PropTypes.func,PropTypes.shape({addEventListener:PropTypes.func,removeEventListener:PropTypes.func,document:PropTypes.shape({getElementById:PropTypes.func,activeElement:PropTypes.any,body:PropTypes.any})}),_extends({},defaultProps$3,{getA11yStatusMessage:getA11yStatusMessage$1,circularNavigation:!0}),PropTypes.array,PropTypes.array,PropTypes.array,PropTypes.func,PropTypes.func,PropTypes.func,PropTypes.number,PropTypes.number,PropTypes.number,PropTypes.func,PropTypes.func,PropTypes.string,PropTypes.string,PropTypes.shape({addEventListener:PropTypes.func,removeEventListener:PropTypes.func,document:PropTypes.shape({getElementById:PropTypes.func,activeElement:PropTypes.any,body:PropTypes.any})});var fuse={exports:{}};!function(module,exports){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"==_typeof2(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=0)}([function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==_typeof2(Symbol.iterator)?function(e){return _typeof2(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof2(e)})(e)}function o(e,t){for(var r=0;r1)throw new Error('"weight" property in key must bein the range of [0, 1)');this._keyWeights[l]=u,a+=u}if(a>1)throw new Error("Total of weights cannot exceed 1")}}},{key:"search",value:function value(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{limit:!1};this._log('---------\nSearch pattern: "'.concat(e,'"'));var r=this._prepareSearchers(e),n=r.tokenSearchers,o=r.fullSearcher,i=this._search(n,o);return this._computeScore(i),this.options.shouldSort&&this._sort(i),t.limit&&"number"==typeof t.limit&&(i=i.slice(0,t.limit)),this._format(i)}},{key:"_prepareSearchers",value:function value(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=[];if(this.options.tokenize)for(var r=e.split(this.options.tokenSeparator),n=0,o=r.length;n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=this.list,n={},o=[];if("string"==typeof r[0]){for(var i=0,a=r.length;i-1&&(C=(C+h)/2),r._log("Score average:",C);var j=!r.options.tokenize||!r.options.matchAllTokens||l>=u.length;if(r._log("\nCheck Matches: ".concat(j)),(s||v.isMatch)&&j){var P={key:n,arrayIndex:t,value:o,score:C};r.options.includeMatches&&(P.matchedIndices=v.matchedIndices);var I=p[a];I?I.output.push(P):(p[a]={item:i,output:[P]},g.push(p[a]))}}else if(c(o))for(var F=0,T=o.length;F0?Number.EPSILON:l.score;c*=Math.pow(v,f)}i.score=c,this._log(i)}}},{key:"_sort",value:function value(e){this._log("\n\nSorting...."),e.sort(this.options.sortFn)}},{key:"_format",value:function value(e){var t=[];if(this.options.verbose){var r=[];this._log("\n\nOutput:\n\n",JSON.stringify(e,(function(e,t){if("object"===n(t)&&null!==t){if(-1!==r.indexOf(t))return;r.push(t)}return t}),2)),r=null}var o=[];this.options.includeMatches&&o.push((function(e,t){var r=e.output;t.matches=[];for(var n=0,o=r.length;n-1&&(a.arrayIndex=i.arrayIndex),t.matches.push(a)}}})),this.options.includeScore&&o.push((function(e,t){t.score=e.score}));for(var i=0,a=e.length;ic)return o(e,this.pattern,h);var l=this.options,u=l.location,f=l.distance,v=l.threshold,p=l.findAllMatches,d=l.minMatchCharLength;return i(e,this.pattern,this.patternAlphabet,{location:u,distance:f,threshold:v,findAllMatches:p,minMatchCharLength:d,includeMatches:n})}}])&&n(e.prototype,r),e}();e.exports=s},function(e,t){var r=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;e.exports=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/ +/g,o=new RegExp(t.replace(r,"\\$&").replace(n,"|")),i=e.match(o),a=!!i,s=[];if(a)for(var c=0,h=i.length;c=T;E-=1){var W=E-1,K=r[e.charAt(W)];if(K&&(M[W]=1),z[E]=(z[E+1]<<1|1)&K,0!==P&&(z[E]|=(A[E+1]|A[E])<<1|1|A[E+1]),z[E]&j&&(O=n(t,{errors:P,currentLocation:W,expectedLocation:m,distance:h}))<=b){if(b=O,(S=W)<=m)break;T=Math.max(1,2*m-S)}}if(n(t,{errors:P+1,currentLocation:m,expectedLocation:m,distance:h})>b)break;A=z}var $={isMatch:S>=0,score:0===O?.001:O};return y&&($.matchedIndices=o(M,d)),$}},function(e,t){e.exports=function(e,t){var r=t.errors,n=void 0===r?0:r,o=t.currentLocation,i=void 0===o?0:o,a=t.expectedLocation,s=void 0===a?0:a,c=t.distance,h=void 0===c?100:c,l=n/e.length,u=Math.abs(s-i);return h?l+u/h:u?1:l}},function(e,t){e.exports=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=[],n=-1,o=-1,i=0,a=e.length;i=t&&r.push([n,o]),n=-1)}return e[i-1]&&i-n>=t&&r.push([n,i-1]),r}},function(e,t){e.exports=function(e){for(var t={},r=e.length,n=0;n50&&!allComponents&&results.push({showAll:function showAll(){return showAllComponents(!0)},totalCount:distinctResults.length,moreCount:distinctResults.length-50})),results}),[allComponents,fuse]),stateReducer=(0,react.useCallback)((function(state,changes){switch(changes.type){case Downshift$1.stateChangeTypes.blurInput:return Object.assign(Object.assign({},changes),{inputValue:state.inputValue,isOpen:state.inputValue&&!state.selectedItem,selectedItem:null});case Downshift$1.stateChangeTypes.mouseUp:return{};case Downshift$1.stateChangeTypes.keyDownEscape:return state.inputValue?Object.assign(Object.assign({},changes),{inputValue:"",isOpen:!0,selectedItem:null}):(inputRef.current.blur(),Object.assign(Object.assign({},changes),{isOpen:!1,selectedItem:null}));case Downshift$1.stateChangeTypes.clickItem:case Downshift$1.stateChangeTypes.keyDownEnter:if(function isSearchResult(x){return!(!x||!x.item)}(changes.selectedItem)){var _changes$selectedItem=changes.selectedItem.item,_id=_changes$selectedItem.id,refId=_changes$selectedItem.refId;return selectStory(_id,refId),Object.assign(Object.assign({},changes),{inputValue:state.inputValue,isOpen:!1})}return isExpandType(changes.selectedItem)?(changes.selectedItem.showAll(),{}):isClearType(changes.selectedItem)?(changes.selectedItem.clearLastViewed(),inputRef.current.blur(),{isOpen:!1}):isCloseType(changes.selectedItem)?(inputRef.current.blur(),{isOpen:!1}):changes;case Downshift$1.stateChangeTypes.changeInput:return showAllComponents(!1),changes;default:return changes}}),[inputRef,selectStory,showAllComponents]);return react.createElement(Downshift$1,{initialInputValue:initialQuery,stateReducer,itemToString:function itemToString(result){var _a;return(null===(_a=null==result?void 0:result.item)||void 0===_a?void 0:_a.name)||""}},(function(_ref118){var isOpen=_ref118.isOpen,openMenu=_ref118.openMenu,closeMenu=_ref118.closeMenu,inputValue=_ref118.inputValue,clearSelection=_ref118.clearSelection,getInputProps=_ref118.getInputProps,getItemProps=_ref118.getItemProps,getLabelProps=_ref118.getLabelProps,getMenuProps=_ref118.getMenuProps,getRootProps=_ref118.getRootProps,highlightedIndex=_ref118.highlightedIndex,input=inputValue?inputValue.trim():"",results=input?getResults(input):[],lastViewed=!input&&getLastViewed();lastViewed&&lastViewed.length&&(results=lastViewed.reduce((function(acc,_ref119){var storyId=_ref119.storyId,refId=_ref119.refId,data=dataset.hash[refId];if(data&&data.stories&&data.stories[storyId]){var story=data.stories[storyId],item=!story.isLeaf||story.isComponent||story.isRoot?story:data.stories[story.parent];acc.some((function(res){return res.item.refId===refId&&res.item.id===item.id}))||acc.push({item:searchItem(item,dataset.hash[refId]),matches:[],score:0})}return acc}),[]),results.push({closeMenu}),results.length>0&&results.push({clearLastViewed}));var inputProps=getInputProps({id:"storybook-explorer-searchfield",ref:inputRef,required:!0,type:"search",placeholder:inputPlaceholder,onFocus:function onFocus(){openMenu(),setPlaceholder("Type to find...")},onBlur:function onBlur(){return setPlaceholder("Find components")}});return react.createElement(react.Fragment,null,react.createElement(ScreenReaderLabel,Object.assign({},getLabelProps()),"Search for components"),react.createElement(SearchField,Object.assign({},getRootProps({refKey:""},{suppressRefError:!0}),{className:"search-field"}),react.createElement(SearchIcon,{icon:"search"}),react.createElement(Input$1,Object.assign({},inputProps)),enableShortcuts&&react.createElement(FocusKey,null,"/"),react.createElement(ClearIcon,{icon:"cross",onClick:function onClick(){return clearSelection()}})),react.createElement(FocusContainer,{tabIndex:0,id:"storybook-explorer-menu"},children({query:input,results,isBrowsing:!isOpen&&document$4.activeElement!==inputRef.current,closeMenu,getMenuProps,getItemProps,highlightedIndex})))}))})),document$3=window_1.document,DOCS_MODE$2=window_1.DOCS_MODE,ResultsList=theming_dist_esm.zo.ol({listStyle:"none",margin:0,marginLeft:-20,marginRight:-20,padding:0}),ResultRow=theming_dist_esm.zo.li((function(_ref120){var theme=_ref120.theme;return{display:"block",margin:0,padding:0,background:_ref120.isHighlighted?theme.background.hoverable:"transparent",cursor:"pointer","a:hover, button:hover":{background:"transparent"}}})),NoResults=theming_dist_esm.zo.div((function(_ref121){var theme=_ref121.theme;return{marginTop:20,textAlign:"center",fontSize:"".concat(theme.typography.size.s2-1,"px"),lineHeight:"18px",color:theme.color.defaultText,small:{color:theme.barTextColor,fontSize:"".concat(theme.typography.size.s1,"px")}}})),Mark=theming_dist_esm.zo.mark((function(_ref122){return{background:"transparent",color:_ref122.theme.color.secondary}})),ActionRow=(0,theming_dist_esm.zo)(ResultRow)({display:"flex",padding:"6px 19px",alignItems:"center"}),BackActionRow=(0,theming_dist_esm.zo)(ActionRow)({marginTop:8}),ActionLabel=theming_dist_esm.zo.span((function(_ref123){var theme=_ref123.theme;return{flexGrow:1,color:theme.color.mediumdark,fontSize:"".concat(theme.typography.size.s1,"px")}})),ActionIcon=(0,theming_dist_esm.zo)(index_2a91f2bc.I)((function(_ref124){return{display:"inline-block",width:10,height:10,marginRight:6,color:_ref124.theme.color.mediumdark}})),ActionKey=theming_dist_esm.zo.code((function(_ref125){return{minWidth:16,height:16,lineHeight:"17px",textAlign:"center",fontSize:"11px",background:"rgba(0,0,0,0.1)",color:_ref125.theme.textMutedColor,borderRadius:2,userSelect:"none",pointerEvents:"none"}})),Highlight=react.memo((function(_ref126){var children=_ref126.children,match=_ref126.match;if(!match)return react.createElement(react.Fragment,null,children);var value=match.value,result=match.indices.reduce((function(_ref127,_ref128,index,_ref129){var cursor=_ref127.cursor,nodes=_ref127.nodes,_ref130=_slicedToArray2(_ref128,2),start=_ref130[0],end=_ref130[1],length=_ref129.length;return nodes.push(react.createElement("span",{key:"".concat(index,"-0")},value.slice(cursor,start))),nodes.push(react.createElement(Mark,{key:"".concat(index,"-1")},value.slice(start,end+1))),index===length-1&&nodes.push(react.createElement("span",{key:"".concat(index,"-2")},value.slice(end+1))),{cursor:end+1,nodes}}),{cursor:0,nodes:[]}).nodes;return react.createElement(react.Fragment,null,result)})),Result=react.memo((function(_a){var item=_a.item,matches=_a.matches,onClick=(_a.icon,_a.onClick),props=__rest(_a,["item","matches","icon","onClick"]),click=(0,react.useCallback)((function(event){event.preventDefault(),onClick(event)}),[onClick]),nameMatch=matches.find((function(match){return"name"===match.key})),pathMatches=matches.filter((function(match){return"path"===match.key})),label=react.createElement("div",{className:"search-result-item--label"},react.createElement("strong",null,react.createElement(Highlight,{match:nameMatch},item.name)),react.createElement(Path,null,item.path.map((function(group,index){return react.createElement("span",{key:index},react.createElement(Highlight,{match:pathMatches.find((function(match){return match.arrayIndex===index}))},group))})))),title="".concat(item.path.join(" / ")," / ").concat(item.name);if(DOCS_MODE$2)return react.createElement(ResultRow,Object.assign({},props),react.createElement(DocumentNode,{depth:0,onClick:click,href:getLink(item.id,item.refId),title},label));var TreeNode=item.isComponent?ComponentNode:StoryNode;return react.createElement(ResultRow,Object.assign({},props),react.createElement(TreeNode,{isExpanded:!1,depth:0,onClick,title},label))})),SearchResults=react.memo((function(_ref131){var query=_ref131.query,results=_ref131.results,closeMenu=_ref131.closeMenu,getMenuProps=_ref131.getMenuProps,getItemProps=_ref131.getItemProps,highlightedIndex=_ref131.highlightedIndex,_ref131$isLoading=_ref131.isLoading,isLoading=void 0!==_ref131$isLoading&&_ref131$isLoading,_ref131$enableShortcu=_ref131.enableShortcuts,enableShortcuts=void 0===_ref131$enableShortcu||_ref131$enableShortcu;return(0,react.useEffect)((function(){var handleEscape=function handleEscape(event){if(enableShortcuts&&!isLoading&&!event.repeat&&matchesModifiers(!1,event)&&matchesKeyCode("Escape",event)){var target=event.target;if("storybook-explorer-searchfield"===(null==target?void 0:target.id))return;event.preventDefault(),closeMenu()}};return document$3.addEventListener("keydown",handleEscape),function(){return document$3.removeEventListener("keydown",handleEscape)}}),[enableShortcuts,isLoading]),react.createElement(ResultsList,Object.assign({},getMenuProps()),results.length>0&&!query&&react.createElement("li",null,react.createElement(RootNode,{className:"search-result-recentlyOpened"},"Recently opened")),0===results.length&&query&&react.createElement("li",null,react.createElement(NoResults,null,react.createElement("strong",null,"No components found"),react.createElement("br",null),react.createElement("small",null,"Find components by name or path."))),results.map((function(result,index){if(isCloseType(result))return react.createElement(BackActionRow,Object.assign({},result,getItemProps({key:index,index,item:result}),{isHighlighted:highlightedIndex===index,className:"search-result-back"}),react.createElement(ActionIcon,{icon:"arrowleft"}),react.createElement(ActionLabel,null,"Back to components"),react.createElement(ActionKey,null,"ESC"));if(isClearType(result))return react.createElement(ActionRow,Object.assign({},result,getItemProps({key:index,index,item:result}),{isHighlighted:highlightedIndex===index,className:"search-result-clearHistory"}),react.createElement(ActionIcon,{icon:"trash"}),react.createElement(ActionLabel,null,"Clear history"));if(isExpandType(result))return react.createElement(ActionRow,Object.assign({},result,getItemProps({key:index,index,item:result}),{isHighlighted:highlightedIndex===index,className:"search-result-more"}),react.createElement(ActionIcon,{icon:"plus"}),react.createElement(ActionLabel,null,"Show ",result.moreCount," more results"));var item=result.item,key="".concat(item.refId,"::").concat(item.id);return react.createElement(Result,Object.assign({},result,getItemProps({key,index,item:result}),{isHighlighted:highlightedIndex===index,className:"search-result-item"}))})))})),save=debounce_1((function(value){return store$4.set("lastViewedStoryIds",value)}),1e3),DOCS_MODE$1=window_1.DOCS_MODE,Container$3=theming_dist_esm.zo.nav({position:"absolute",zIndex:1,left:0,top:0,bottom:0,right:0,width:"100%",height:"100%"}),StyledSpaced=(0,theming_dist_esm.zo)(index_2a91f2bc.a7)({paddingBottom:"2.5rem"}),CustomScrollArea=(0,theming_dist_esm.zo)(index_2a91f2bc.S)({"&&&&& .os-scrollbar-handle:before":{left:-12},"&&&&& .os-scrollbar-vertical":{right:5},padding:20}),Swap=react.memo((function(_ref133){var children=_ref133.children,condition=_ref133.condition,_React$2$Children$toA2=_slicedToArray2(react.Children.toArray(children),2),a=_React$2$Children$toA2[0],b=_React$2$Children$toA2[1];return react.createElement(react.Fragment,null,react.createElement("div",{style:{display:condition?"block":"none"}},a),react.createElement("div",{style:{display:condition?"none":"block"}},b))})),Sidebar$1=react.memo((function(_ref134){var _ref134$storyId=_ref134.storyId,storyId=void 0===_ref134$storyId?null:_ref134$storyId,_ref134$refId=_ref134.refId,refId=void 0===_ref134$refId?DEFAULT_REF_ID:_ref134$refId,storiesHash=_ref134.stories,storiesConfigured=_ref134.storiesConfigured,storiesFailed=_ref134.storiesFailed,menu=_ref134.menu,_ref134$menuHighlight=_ref134.menuHighlighted,menuHighlighted=void 0!==_ref134$menuHighlight&&_ref134$menuHighlight,_ref134$enableShortcu=_ref134.enableShortcuts,enableShortcuts=void 0===_ref134$enableShortcu||_ref134$enableShortcu,_ref134$refs=_ref134.refs,refs=void 0===_ref134$refs?{}:_ref134$refs,collapseFn=DOCS_MODE$1?collapseAllStories:collapseDocsOnlyStories,selected=(0,react.useMemo)((function(){return storyId&&{storyId,refId}}),[storyId,refId]),stories=(0,react.useMemo)((function(){return collapseFn(storiesHash)}),[DOCS_MODE$1,storiesHash]),adaptedRefs=(0,react.useMemo)((function(){return Object.entries(refs).reduce((function(acc,_ref135){var _ref136=_slicedToArray2(_ref135,2),id=_ref136[0],ref=_ref136[1];return ref.stories?acc[id]=Object.assign(Object.assign({},ref),{stories:collapseFn(ref.stories)}):acc[id]=ref,acc}),{})}),[DOCS_MODE$1,refs]),dataset=function useCombination(stories,ready,error,refs){var hash=(0,react.useMemo)((function(){return Object.assign(_defineProperty2({},DEFAULT_REF_ID,{stories,title:null,id:DEFAULT_REF_ID,url:"iframe.html",ready,error}),refs)}),[refs,stories]);return(0,react.useMemo)((function(){return{hash,entries:Object.entries(hash)}}),[hash])}(stories,storiesConfigured,storiesFailed,adaptedRefs),isLoading=!dataset.hash[DEFAULT_REF_ID].ready,lastViewedProps=function useLastViewed(selection){var initialLastViewedStoryIds=(0,react.useMemo)((function(){var items=store$4.get("lastViewedStoryIds");return items&&Array.isArray(items)&&items.some((function(item){return"object"===_typeof2(item)&&item.storyId&&item.refId}))?items:[]}),[store$4]),lastViewedRef=(0,react.useRef)(initialLastViewedStoryIds),updateLastViewed=(0,react.useCallback)((function(story){var items=lastViewedRef.current,index=items.findIndex((function(_ref132){var storyId=_ref132.storyId,refId=_ref132.refId;return storyId===story.storyId&&refId===story.refId}));0!==index&&(lastViewedRef.current=-1===index?[story].concat(_toConsumableArray(items)):[story].concat(_toConsumableArray(items.slice(0,index)),_toConsumableArray(items.slice(index+1))),save(lastViewedRef.current))}),[lastViewedRef]);return(0,react.useEffect)((function(){selection&&updateLastViewed(selection)}),[selection]),{getLastViewed:(0,react.useCallback)((function(){return lastViewedRef.current}),[lastViewedRef]),clearLastViewed:(0,react.useCallback)((function(){lastViewedRef.current=lastViewedRef.current.slice(0,1),save(lastViewedRef.current)}),[lastViewedRef])}}(selected);return react.createElement(Container$3,{className:"container sidebar-container"},react.createElement(CustomScrollArea,{vertical:!0},react.createElement(StyledSpaced,{row:1.6},react.createElement(Heading,{className:"sidebar-header",menuHighlighted,menu,skipLinkHref:"#storybook-preview-wrapper"}),react.createElement(Search,Object.assign({dataset,isLoading,enableShortcuts},lastViewedProps),(function(_ref137){var query=_ref137.query,results=_ref137.results,isBrowsing=_ref137.isBrowsing,closeMenu=_ref137.closeMenu,getMenuProps=_ref137.getMenuProps,getItemProps=_ref137.getItemProps,highlightedIndex=_ref137.highlightedIndex;return react.createElement(Swap,{condition:isBrowsing},react.createElement(Explorer,{dataset,selected,isLoading,isBrowsing}),react.createElement(SearchResults,{query,results,closeMenu,getMenuProps,getItemProps,highlightedIndex,enableShortcuts,isLoading}))})))))})),check=function check(it){return it&&it.Math==Math&&it},global$s=check("object"==("undefined"==typeof globalThis?"undefined":_typeof2(globalThis))&&globalThis)||check("object"==("undefined"==typeof window?"undefined":_typeof2(window))&&window)||check("object"==("undefined"==typeof self?"undefined":_typeof2(self))&&self)||check("object"==_typeof2(commonjsGlobal)&&commonjsGlobal)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor={},fails$e=function fails$e(exec){try{return!!exec()}catch(error){return!0}},descriptors=!fails$e((function(){return 7!=Object.defineProperty({},1,{get:function get(){return 7}})[1]})),functionBindNative=!fails$e((function(){var test=function(){}.bind();return"function"!=typeof test||test.hasOwnProperty("prototype")})),NATIVE_BIND$2=functionBindNative,call$7=Function.prototype.call,functionCall=NATIVE_BIND$2?call$7.bind(call$7):function(){return call$7.apply(call$7,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$1&&!$propertyIsEnumerable.call({1:2},1);objectPropertyIsEnumerable.f=NASHORN_BUG?function propertyIsEnumerable(V){var descriptor=getOwnPropertyDescriptor$1(this,V);return!!descriptor&&descriptor.enumerable}:$propertyIsEnumerable;var match,version,createPropertyDescriptor$2=function createPropertyDescriptor$2(bitmap,value){return{enumerable:!(1&bitmap),configurable:!(2&bitmap),writable:!(4&bitmap),value}},NATIVE_BIND$1=functionBindNative,FunctionPrototype$1=Function.prototype,bind$4=FunctionPrototype$1.bind,call$6=FunctionPrototype$1.call,uncurryThis$g=NATIVE_BIND$1&&bind$4.bind(call$6,call$6),functionUncurryThis=NATIVE_BIND$1?function(fn){return fn&&uncurryThis$g(fn)}:function(fn){return fn&&function(){return call$6.apply(fn,arguments)}},uncurryThis$f=functionUncurryThis,toString$6=uncurryThis$f({}.toString),stringSlice$2=uncurryThis$f("".slice),classofRaw$1=function classofRaw$1(it){return stringSlice$2(toString$6(it),8,-1)},uncurryThis$e=functionUncurryThis,fails$b=fails$e,classof$6=classofRaw$1,Object$4=global$s.Object,split$1=uncurryThis$e("".split),indexedObject=fails$b((function(){return!Object$4("z").propertyIsEnumerable(0)}))?function(it){return"String"==classof$6(it)?split$1(it,""):Object$4(it)}:Object$4,TypeError$8=global$s.TypeError,requireObjectCoercible$4=function requireObjectCoercible$4(it){if(null==it)throw TypeError$8("Can't call method on "+it);return it},IndexedObject$2=indexedObject,requireObjectCoercible$3=requireObjectCoercible$4,toIndexedObject$5=function toIndexedObject$5(it){return IndexedObject$2(requireObjectCoercible$3(it))},isCallable$c=function isCallable$c(argument){return"function"==typeof argument},isCallable$b=isCallable$c,isObject$6=function isObject$6(it){return"object"==_typeof2(it)?null!==it:isCallable$b(it)},global$p=global$s,isCallable$a=isCallable$c,getBuiltIn$5=function getBuiltIn$5(namespace,method){return arguments.length<2?function aFunction(argument){return isCallable$a(argument)?argument:void 0}(global$p[namespace]):global$p[namespace]&&global$p[namespace][method]},objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),global$o=global$s,userAgent=getBuiltIn$5("navigator","userAgent")||"",process$1=global$o.process,Deno=global$o.Deno,versions=process$1&&process$1.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]);var engineV8Version=version,V8_VERSION$1=engineV8Version,fails$a=fails$e,nativeSymbol=!!Object.getOwnPropertySymbols&&!fails$a((function(){var symbol=Symbol();return!String(symbol)||!(Object(symbol)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1&&V8_VERSION$1<41})),useSymbolAsUid=nativeSymbol&&!Symbol.sham&&"symbol"==_typeof2(Symbol.iterator),getBuiltIn$3=getBuiltIn$5,isCallable$9=isCallable$c,esm_isPrototypeOf=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,Object$3=global$s.Object,isSymbol$3=USE_SYMBOL_AS_UID$1?function(it){return"symbol"==_typeof2(it)}:function(it){var $Symbol=getBuiltIn$3("Symbol");return isCallable$9($Symbol)&&esm_isPrototypeOf($Symbol.prototype,Object$3(it))},String$3=global$s.String,isCallable$8=isCallable$c,tryToString=function tryToString$1(argument){try{return String$3(argument)}catch(error){return"Object"}},TypeError$7=global$s.TypeError,aCallable$2=function aCallable$2(argument){if(isCallable$8(argument))return argument;throw TypeError$7(tryToString(argument)+" is not a function")},aCallable$1=aCallable$2,getMethod$2=function getMethod$2(V,P){var func=V[P];return null==func?void 0:aCallable$1(func)},call$5=functionCall,isCallable$7=isCallable$c,isObject$5=isObject$6,TypeError$6=global$s.TypeError,shared$4={exports:{}},global$j=global$s,defineProperty=Object.defineProperty,setGlobal$3=function setGlobal$3(key,value){try{defineProperty(global$j,key,{value,configurable:!0,writable:!0})}catch(error){global$j[key]=value}return value},setGlobal$2=setGlobal$3,sharedStore=global$s["__core-js_shared__"]||setGlobal$2("__core-js_shared__",{}),store$2=sharedStore;(shared$4.exports=function(key,value){return store$2[key]||(store$2[key]=void 0!==value?value:{})})("versions",[]).push({version:"3.21.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"});var requireObjectCoercible$2=requireObjectCoercible$4,Object$2=global$s.Object,toObject$2=function toObject$2(argument){return Object$2(requireObjectCoercible$2(argument))},toObject$1=toObject$2,esm_hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function hasOwn(it,key){return esm_hasOwnProperty(toObject$1(it),key)},uncurryThis$b=functionUncurryThis,id=0,postfix=Math.random(),toString$5=uncurryThis$b(1..toString),uid$2=function uid$2(key){return"Symbol("+(void 0===key?"":key)+")_"+toString$5(++id+postfix,36)},global$g=global$s,shared$3=shared$4.exports,hasOwn$8=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL=nativeSymbol,USE_SYMBOL_AS_UID=useSymbolAsUid,WellKnownSymbolsStore=shared$3("wks"),Symbol$1=global$g.Symbol,symbolFor=Symbol$1&&Symbol$1.for,createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid$1,wellKnownSymbol$7=function wellKnownSymbol$7(name){if(!hasOwn$8(WellKnownSymbolsStore,name)||!NATIVE_SYMBOL&&"string"!=typeof WellKnownSymbolsStore[name]){var description="Symbol."+name;NATIVE_SYMBOL&&hasOwn$8(Symbol$1,name)?WellKnownSymbolsStore[name]=Symbol$1[name]:WellKnownSymbolsStore[name]=USE_SYMBOL_AS_UID&&symbolFor?symbolFor(description):createWellKnownSymbol(description)}return WellKnownSymbolsStore[name]},call$4=functionCall,isObject$4=isObject$6,isSymbol$2=isSymbol$3,getMethod$1=getMethod$2,ordinaryToPrimitive=function ordinaryToPrimitive$1(input,pref){var fn,val;if("string"===pref&&isCallable$7(fn=input.toString)&&!isObject$5(val=call$5(fn,input)))return val;if(isCallable$7(fn=input.valueOf)&&!isObject$5(val=call$5(fn,input)))return val;if("string"!==pref&&isCallable$7(fn=input.toString)&&!isObject$5(val=call$5(fn,input)))return val;throw TypeError$6("Can't convert object to primitive value")},wellKnownSymbol$6=wellKnownSymbol$7,TypeError$5=global$s.TypeError,TO_PRIMITIVE=wellKnownSymbol$6("toPrimitive"),toPrimitive=function toPrimitive$1(input,pref){if(!isObject$4(input)||isSymbol$2(input))return input;var result,exoticToPrim=getMethod$1(input,TO_PRIMITIVE);if(exoticToPrim){if(void 0===pref&&(pref="default"),result=call$4(exoticToPrim,input,pref),!isObject$4(result)||isSymbol$2(result))return result;throw TypeError$5("Can't convert object to primitive value")}return void 0===pref&&(pref="number"),ordinaryToPrimitive(input,pref)},isSymbol$1=isSymbol$3,toPropertyKey$2=function toPropertyKey$2(argument){var key=toPrimitive(argument,"string");return isSymbol$1(key)?key:key+""},isObject$3=isObject$6,document$2=global$s.document,EXISTS$1=isObject$3(document$2)&&isObject$3(document$2.createElement),documentCreateElement$1=function documentCreateElement$1(it){return EXISTS$1?document$2.createElement(it):{}},createElement=documentCreateElement$1,ie8DomDefine=!descriptors&&!fails$e((function(){return 7!=Object.defineProperty(createElement("div"),"a",{get:function get(){return 7}}).a})),DESCRIPTORS$5=descriptors,call$3=functionCall,propertyIsEnumerableModule=objectPropertyIsEnumerable,createPropertyDescriptor$1=createPropertyDescriptor$2,toIndexedObject$4=toIndexedObject$5,toPropertyKey$1=toPropertyKey$2,hasOwn$7=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor.f=DESCRIPTORS$5?$getOwnPropertyDescriptor$1:function getOwnPropertyDescriptor(O,P){if(O=toIndexedObject$4(O),P=toPropertyKey$1(P),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(O,P)}catch(error){}if(hasOwn$7(O,P))return createPropertyDescriptor$1(!call$3(propertyIsEnumerableModule.f,O,P),O[P])};var objectDefineProperty={},v8PrototypeDefineBug=descriptors&&fails$e((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),global$d=global$s,isObject$2=isObject$6,String$2=global$d.String,TypeError$4=global$d.TypeError,anObject$7=function anObject$7(argument){if(isObject$2(argument))return argument;throw TypeError$4(String$2(argument)+" is not an object")},DESCRIPTORS$3=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$6=anObject$7,toPropertyKey=toPropertyKey$2,TypeError$3=global$s.TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;objectDefineProperty.f=DESCRIPTORS$3?V8_PROTOTYPE_DEFINE_BUG$1?function defineProperty(O,P,Attributes){if(anObject$6(O),P=toPropertyKey(P),anObject$6(Attributes),"function"==typeof O&&"prototype"===P&&"value"in Attributes&&"writable"in Attributes&&!Attributes.writable){var current=$getOwnPropertyDescriptor(O,P);current&¤t.writable&&(O[P]=Attributes.value,Attributes={configurable:"configurable"in Attributes?Attributes.configurable:current.configurable,enumerable:"enumerable"in Attributes?Attributes.enumerable:current.enumerable,writable:!1})}return $defineProperty(O,P,Attributes)}:$defineProperty:function defineProperty(O,P,Attributes){if(anObject$6(O),P=toPropertyKey(P),anObject$6(Attributes),IE8_DOM_DEFINE)try{return $defineProperty(O,P,Attributes)}catch(error){}if("get"in Attributes||"set"in Attributes)throw TypeError$3("Accessors not supported");return"value"in Attributes&&(O[P]=Attributes.value),O};var definePropertyModule$3=objectDefineProperty,createPropertyDescriptor=createPropertyDescriptor$2,createNonEnumerableProperty$4=descriptors?function(object,key,value){return definePropertyModule$3.f(object,key,createPropertyDescriptor(1,value))}:function(object,key,value){return object[key]=value,object},redefine$3={exports:{}},isCallable$6=isCallable$c,store$1=sharedStore,functionToString$1=functionUncurryThis(Function.toString);isCallable$6(store$1.inspectSource)||(store$1.inspectSource=function(it){return functionToString$1(it)});var set,get,has$4,inspectSource$3=store$1.inspectSource,isCallable$5=isCallable$c,inspectSource$2=inspectSource$3,WeakMap$2=global$s.WeakMap,nativeWeakMap=isCallable$5(WeakMap$2)&&/native code/.test(inspectSource$2(WeakMap$2)),shared$2=shared$4.exports,uid=uid$2,keys=shared$2("keys"),sharedKey$2=function sharedKey$2(key){return keys[key]||(keys[key]=uid(key))},hiddenKeys$4={},NATIVE_WEAK_MAP=nativeWeakMap,global$a=global$s,uncurryThis$9=functionUncurryThis,isObject$1=isObject$6,createNonEnumerableProperty$3=createNonEnumerableProperty$4,hasOwn$6=hasOwnProperty_1,shared$1=sharedStore,sharedKey$1=sharedKey$2,hiddenKeys$3=hiddenKeys$4,TypeError$2=global$a.TypeError,WeakMap$1=global$a.WeakMap;if(NATIVE_WEAK_MAP||shared$1.state){var store=shared$1.state||(shared$1.state=new WeakMap$1),wmget=uncurryThis$9(store.get),wmhas=uncurryThis$9(store.has),wmset=uncurryThis$9(store.set);set=function set(it,metadata){if(wmhas(store,it))throw new TypeError$2("Object already initialized");return metadata.facade=it,wmset(store,it,metadata),metadata},get=function get(it){return wmget(store,it)||{}},has$4=function has$4(it){return wmhas(store,it)}}else{var STATE=sharedKey$1("state");hiddenKeys$3[STATE]=!0,set=function set(it,metadata){if(hasOwn$6(it,STATE))throw new TypeError$2("Object already initialized");return metadata.facade=it,createNonEnumerableProperty$3(it,STATE,metadata),metadata},get=function get(it){return hasOwn$6(it,STATE)?it[STATE]:{}},has$4=function has$4(it){return hasOwn$6(it,STATE)}}var internalState={set,get,has:has$4,enforce:function enforce(it){return has$4(it)?get(it):set(it,{})},getterFor:function getterFor(TYPE){return function(it){var state;if(!isObject$1(it)||(state=get(it)).type!==TYPE)throw TypeError$2("Incompatible receiver, "+TYPE+" required");return state}}},DESCRIPTORS$1=descriptors,hasOwn$5=hasOwnProperty_1,FunctionPrototype=Function.prototype,getDescriptor=DESCRIPTORS$1&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$5(FunctionPrototype,"name"),PROPER=EXISTS&&"something"===function something(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$1||DESCRIPTORS$1&&getDescriptor(FunctionPrototype,"name").configurable),global$9=global$s,isCallable$4=isCallable$c,hasOwn$4=hasOwnProperty_1,createNonEnumerableProperty$2=createNonEnumerableProperty$4,setGlobal$1=setGlobal$3,inspectSource$1=inspectSource$3,CONFIGURABLE_FUNCTION_NAME={EXISTS,PROPER,CONFIGURABLE}.CONFIGURABLE,getInternalState$1=internalState.get,enforceInternalState=internalState.enforce,TEMPLATE=String(String).split("String");(redefine$3.exports=function(O,key,value,options){var state,unsafe=!!options&&!!options.unsafe,simple=!!options&&!!options.enumerable,noTargetGet=!!options&&!!options.noTargetGet,name=options&&void 0!==options.name?options.name:key;isCallable$4(value)&&("Symbol("===String(name).slice(0,7)&&(name="["+String(name).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!hasOwn$4(value,"name")||CONFIGURABLE_FUNCTION_NAME&&value.name!==name)&&createNonEnumerableProperty$2(value,"name",name),(state=enforceInternalState(value)).source||(state.source=TEMPLATE.join("string"==typeof name?name:""))),O!==global$9?(unsafe?!noTargetGet&&O[key]&&(simple=!0):delete O[key],simple?O[key]=value:createNonEnumerableProperty$2(O,key,value)):simple?O[key]=value:setGlobal$1(key,value)})(Function.prototype,"toString",(function toString(){return isCallable$4(this)&&getInternalState$1(this).source||inspectSource$1(this)}));var objectGetOwnPropertyNames={},ceil=Math.ceil,floor=Math.floor,toIntegerOrInfinity$3=function toIntegerOrInfinity$3(argument){var number=+argument;return number!=number||0===number?0:(number>0?floor:ceil)(number)},toIntegerOrInfinity$2=toIntegerOrInfinity$3,max=Math.max,min$1=Math.min,toIntegerOrInfinity$1=toIntegerOrInfinity$3,min=Math.min,toLength$2=function toLength$2(argument){return argument>0?min(toIntegerOrInfinity$1(argument),9007199254740991):0},toLength$1=toLength$2,lengthOfArrayLike$2=function lengthOfArrayLike$2(obj){return toLength$1(obj.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex=function toAbsoluteIndex$1(index,length){var integer=toIntegerOrInfinity$2(index);return integer<0?max(integer+length,0):min$1(integer,length)},lengthOfArrayLike$1=lengthOfArrayLike$2,createMethod$2=function createMethod$2(IS_INCLUDES){return function($this,el,fromIndex){var value,O=toIndexedObject$3($this),length=lengthOfArrayLike$1(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}},arrayIncludes={includes:createMethod$2(!0),indexOf:createMethod$2(!1)},hasOwn$3=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf$2=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push$2=functionUncurryThis([].push),objectKeysInternal=function objectKeysInternal(object,names){var key,O=toIndexedObject$2(object),i=0,result=[];for(key in O)!hasOwn$3(hiddenKeys$2,key)&&hasOwn$3(O,key)&&push$2(result,key);for(;names.length>i;)hasOwn$3(O,key=names[i++])&&(~indexOf$2(result,key)||push$2(result,key));return result},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,hiddenKeys$1=enumBugKeys$3.concat("length","prototype");objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function getOwnPropertyNames(O){return internalObjectKeys$1(O,hiddenKeys$1)};var objectGetOwnPropertySymbols={};objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols;var getBuiltIn$2=getBuiltIn$5,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,anObject$5=anObject$7,concat=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$2("Reflect","ownKeys")||function ownKeys(it){var keys=getOwnPropertyNamesModule.f(anObject$5(it)),getOwnPropertySymbols=getOwnPropertySymbolsModule.f;return getOwnPropertySymbols?concat(keys,getOwnPropertySymbols(it)):keys},hasOwn$2=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$2=objectDefineProperty,fails$7=fails$e,isCallable$3=isCallable$c,replacement=/#|\.prototype\./,isForced$1=function isForced$1(feature,detection){var value=data[normalize(feature)];return value==POLYFILL||value!=NATIVE&&(isCallable$3(detection)?fails$7(detection):!!detection)},normalize=isForced$1.normalize=function(string){return String(string).replace(replacement,".").toLowerCase()},data=isForced$1.data={},NATIVE=isForced$1.NATIVE="N",POLYFILL=isForced$1.POLYFILL="P",isForced_1=isForced$1,global$8=global$s,getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$1=createNonEnumerableProperty$4,redefine$2=redefine$3.exports,setGlobal=setGlobal$3,copyConstructorProperties=function copyConstructorProperties$1(target,source,exceptions){for(var keys=ownKeys(source),defineProperty=definePropertyModule$2.f,getOwnPropertyDescriptor=getOwnPropertyDescriptorModule.f,i=0;iindex;)definePropertyModule$1.f(O,key=keys[index++],props[key]);return O};var activeXDocument,html$1=getBuiltIn$5("document","documentElement"),anObject$2=anObject$7,definePropertiesModule=objectDefineProperties,enumBugKeys=enumBugKeys$3,hiddenKeys=hiddenKeys$4,html=html$1,documentCreateElement=documentCreateElement$1,IE_PROTO=sharedKey$2("IE_PROTO"),EmptyConstructor=function EmptyConstructor(){},scriptTag=function scriptTag(content){return" \ No newline at end of file + window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/*.dev.@(jsx|tsx)","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.dev\\.(jsx|tsx))$"}]; \ No newline at end of file diff --git a/index.html b/index.html index f317b194b8..88febf9366 100644 --- a/index.html +++ b/index.html @@ -56,4 +56,4 @@ - window['DOCS_MODE'] = false; \ No newline at end of file + window['DOCS_MODE'] = false; \ No newline at end of file diff --git a/project.json b/project.json index 15f8d1d65c..5f50a4570c 100644 --- a/project.json +++ b/project.json @@ -1 +1 @@ -{"generatedAt":1705305310540,"builder":{"name":"webpack5"},"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"packageManager":{"type":"yarn","version":"1.22.21"},"typescriptOptions":{"check":true,"checkOptions":{},"reactDocgen":"react-docgen-typescript","reactDocgenTypescriptOptions":{"shouldExtractLiteralValuesFromEnum":true}},"storybookVersion":"^6.5.0-beta.7","language":"typescript","storybookPackages":{"@storybook/builder-webpack5":{"version":"6.5.0-beta.7"},"@storybook/manager-webpack5":{"version":"6.5.0-beta.7"},"@storybook/react":{"version":"6.5.0-beta.7"}},"framework":{"name":"react"},"addons":{"@storybook/addon-essentials":{"version":"6.5.10"},"@storybook/addon-queryparams":{"version":"6.2.9"},"@storybook/preset-typescript":{"version":"3.0.0"},"@storybook/addon-postcss":{"options":{"postcssLoaderOptions":{}},"version":"2.0.0"}}} +{"generatedAt":1705305905064,"builder":{"name":"webpack5"},"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"packageManager":{"type":"yarn","version":"1.22.21"},"typescriptOptions":{"check":true,"checkOptions":{},"reactDocgen":"react-docgen-typescript","reactDocgenTypescriptOptions":{"shouldExtractLiteralValuesFromEnum":true}},"storybookVersion":"^6.5.0-beta.7","language":"typescript","storybookPackages":{"@storybook/builder-webpack5":{"version":"6.5.0-beta.7"},"@storybook/manager-webpack5":{"version":"6.5.0-beta.7"},"@storybook/react":{"version":"6.5.0-beta.7"}},"framework":{"name":"react"},"addons":{"@storybook/addon-essentials":{"version":"6.5.10"},"@storybook/addon-queryparams":{"version":"6.2.9"},"@storybook/preset-typescript":{"version":"3.0.0"},"@storybook/addon-postcss":{"options":{"postcssLoaderOptions":{}},"version":"2.0.0"}}} diff --git a/runtime~main.6bb59eaf.iframe.bundle.js b/runtime~main.e0062308.iframe.bundle.js similarity index 99% rename from runtime~main.6bb59eaf.iframe.bundle.js rename to runtime~main.e0062308.iframe.bundle.js index e23866167c..a117fe74f2 100644 --- a/runtime~main.6bb59eaf.iframe.bundle.js +++ b/runtime~main.e0062308.iframe.bundle.js @@ -1 +1 @@ -(()=>{"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__,__webpack_require__.amdO={},deferred=[],__webpack_require__.O=(result,chunkIds,fn,priority)=>{if(!chunkIds){var notFulfilled=1/0;for(i=0;i=priority)&&Object.keys(__webpack_require__.O).every((key=>__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=module=>{var getter=module&&module.__esModule?()=>module.default:()=>module;return __webpack_require__.d(getter,{a:getter}),getter},getProto=Object.getPrototypeOf?obj=>Object.getPrototypeOf(obj):obj=>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((key=>def[key]=()=>value[key]));return def.default=()=>value,__webpack_require__.d(ns,def),ns},__webpack_require__.d=(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=chunkId=>Promise.all(Object.keys(__webpack_require__.f).reduce(((promises,key)=>(__webpack_require__.f[key](chunkId,promises),promises)),[])),__webpack_require__.u=chunkId=>chunkId+"."+{39:"84d2a66a",244:"f05108b7",366:"5c1606b0",426:"008a22e1",440:"65830c08",465:"8c805e71",690:"603273c7",701:"1fdc43f4",745:"0346d830"}[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=module=>((module=Object.create(module)).children||(module.children=[]),Object.defineProperty(module,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+module.id)}}),module),__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),inProgress={},__webpack_require__.l=(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{script.onerror=script.onload=null,clearTimeout(timeout);var doneFns=inProgress[url];if(delete inProgress[url],script.parentNode&&script.parentNode.removeChild(script),doneFns&&doneFns.forEach((fn=>fn(event))),prev)return prev(event)},timeout=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:script}),12e4);script.onerror=onScriptComplete.bind(null,script.onerror),script.onload=onScriptComplete.bind(null,script.onload),needAttach&&document.head.appendChild(script)}},__webpack_require__.r=exports=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.nmd=module=>(module.paths=[],module.children||(module.children=[]),module),__webpack_require__.p="",(()=>{__webpack_require__.b=document.baseURI||self.location.href;var installedChunks={303:0};__webpack_require__.f.j=(chunkId,promises)=>{var installedChunkData=__webpack_require__.o(installedChunks,chunkId)?installedChunks[chunkId]:void 0;if(0!==installedChunkData)if(installedChunkData)promises.push(installedChunkData[2]);else if(303!=chunkId){var promise=new Promise(((resolve,reject)=>installedChunkData=installedChunks[chunkId]=[resolve,reject]));promises.push(installedChunkData[2]=promise);var url=__webpack_require__.p+__webpack_require__.u(chunkId),error=new Error;__webpack_require__.l(url,(event=>{if(__webpack_require__.o(installedChunks,chunkId)&&(0!==(installedChunkData=installedChunks[chunkId])&&(installedChunks[chunkId]=void 0),installedChunkData)){var errorType=event&&("load"===event.type?"missing":event.type),realSrc=event&&event.target&&event.target.src;error.message="Loading chunk "+chunkId+" failed.\n("+errorType+": "+realSrc+")",error.name="ChunkLoadError",error.type=errorType,error.request=realSrc,installedChunkData[1](error)}}),"chunk-"+chunkId,chunkId)}else installedChunks[chunkId]=0},__webpack_require__.O.j=chunkId=>0===installedChunks[chunkId];var webpackJsonpCallback=(parentChunkLoadingFunction,data)=>{var moduleId,chunkId,[chunkIds,moreModules,runtime]=data,i=0;if(chunkIds.some((id=>0!==installedChunks[id]))){for(moduleId in moreModules)__webpack_require__.o(moreModules,moduleId)&&(__webpack_require__.m[moduleId]=moreModules[moduleId]);if(runtime)var result=runtime(__webpack_require__)}for(parentChunkLoadingFunction&&parentChunkLoadingFunction(data);i{"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__,__webpack_require__.amdO={},deferred=[],__webpack_require__.O=(result,chunkIds,fn,priority)=>{if(!chunkIds){var notFulfilled=1/0;for(i=0;i=priority)&&Object.keys(__webpack_require__.O).every((key=>__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=module=>{var getter=module&&module.__esModule?()=>module.default:()=>module;return __webpack_require__.d(getter,{a:getter}),getter},getProto=Object.getPrototypeOf?obj=>Object.getPrototypeOf(obj):obj=>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((key=>def[key]=()=>value[key]));return def.default=()=>value,__webpack_require__.d(ns,def),ns},__webpack_require__.d=(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=chunkId=>Promise.all(Object.keys(__webpack_require__.f).reduce(((promises,key)=>(__webpack_require__.f[key](chunkId,promises),promises)),[])),__webpack_require__.u=chunkId=>chunkId+"."+{39:"1eb82b7d",244:"f05108b7",366:"5c1606b0",426:"008a22e1",440:"65830c08",465:"8c805e71",690:"603273c7",701:"1fdc43f4",745:"0346d830"}[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=module=>((module=Object.create(module)).children||(module.children=[]),Object.defineProperty(module,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+module.id)}}),module),__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),inProgress={},__webpack_require__.l=(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{script.onerror=script.onload=null,clearTimeout(timeout);var doneFns=inProgress[url];if(delete inProgress[url],script.parentNode&&script.parentNode.removeChild(script),doneFns&&doneFns.forEach((fn=>fn(event))),prev)return prev(event)},timeout=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:script}),12e4);script.onerror=onScriptComplete.bind(null,script.onerror),script.onload=onScriptComplete.bind(null,script.onload),needAttach&&document.head.appendChild(script)}},__webpack_require__.r=exports=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.nmd=module=>(module.paths=[],module.children||(module.children=[]),module),__webpack_require__.p="",(()=>{__webpack_require__.b=document.baseURI||self.location.href;var installedChunks={303:0};__webpack_require__.f.j=(chunkId,promises)=>{var installedChunkData=__webpack_require__.o(installedChunks,chunkId)?installedChunks[chunkId]:void 0;if(0!==installedChunkData)if(installedChunkData)promises.push(installedChunkData[2]);else if(303!=chunkId){var promise=new Promise(((resolve,reject)=>installedChunkData=installedChunks[chunkId]=[resolve,reject]));promises.push(installedChunkData[2]=promise);var url=__webpack_require__.p+__webpack_require__.u(chunkId),error=new Error;__webpack_require__.l(url,(event=>{if(__webpack_require__.o(installedChunks,chunkId)&&(0!==(installedChunkData=installedChunks[chunkId])&&(installedChunks[chunkId]=void 0),installedChunkData)){var errorType=event&&("load"===event.type?"missing":event.type),realSrc=event&&event.target&&event.target.src;error.message="Loading chunk "+chunkId+" failed.\n("+errorType+": "+realSrc+")",error.name="ChunkLoadError",error.type=errorType,error.request=realSrc,installedChunkData[1](error)}}),"chunk-"+chunkId,chunkId)}else installedChunks[chunkId]=0},__webpack_require__.O.j=chunkId=>0===installedChunks[chunkId];var webpackJsonpCallback=(parentChunkLoadingFunction,data)=>{var moduleId,chunkId,[chunkIds,moreModules,runtime]=data,i=0;if(chunkIds.some((id=>0!==installedChunks[id]))){for(moduleId in moreModules)__webpack_require__.o(moreModules,moduleId)&&(__webpack_require__.m[moduleId]=moreModules[moduleId]);if(runtime)var result=runtime(__webpack_require__)}for(parentChunkLoadingFunction&&parentChunkLoadingFunction(data);i