From 103799c0768d761741b92edc12aad23866835010 Mon Sep 17 00:00:00 2001 From: Alejo Fernandez Date: Mon, 6 Jun 2022 09:06:05 -0300 Subject: [PATCH] fix: render template using same html structure as the live version #409 (#443) --- internal/branding/data/storybook/iframe.html | 2 +- .../branding/data/storybook/main.5b0973b0.iframe.bundle.js | 1 - .../branding/data/storybook/main.8608e200.iframe.bundle.js | 1 + ...frame.bundle.js => vendors~main.158ec492.iframe.bundle.js} | 4 ++-- ...txt => vendors~main.158ec492.iframe.bundle.js.LICENSE.txt} | 0 .../data/storybook/vendors~main.158ec492.iframe.bundle.js.map | 1 + .../data/storybook/vendors~main.b882fa95.iframe.bundle.js.map | 1 - 7 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 internal/branding/data/storybook/main.5b0973b0.iframe.bundle.js create mode 100644 internal/branding/data/storybook/main.8608e200.iframe.bundle.js rename internal/branding/data/storybook/{vendors~main.b882fa95.iframe.bundle.js => vendors~main.158ec492.iframe.bundle.js} (99%) rename internal/branding/data/storybook/{vendors~main.b882fa95.iframe.bundle.js.LICENSE.txt => vendors~main.158ec492.iframe.bundle.js.LICENSE.txt} (100%) create mode 100644 internal/branding/data/storybook/vendors~main.158ec492.iframe.bundle.js.map delete mode 100644 internal/branding/data/storybook/vendors~main.b882fa95.iframe.bundle.js.map diff --git a/internal/branding/data/storybook/iframe.html b/internal/branding/data/storybook/iframe.html index abe3ca48d..21e345c08 100644 --- a/internal/branding/data/storybook/iframe.html +++ b/internal/branding/data/storybook/iframe.html @@ -132,4 +132,4 @@ - window['FRAMEWORK_OPTIONS'] = {}; \ No newline at end of file + window['FRAMEWORK_OPTIONS'] = {}; \ No newline at end of file diff --git a/internal/branding/data/storybook/main.5b0973b0.iframe.bundle.js b/internal/branding/data/storybook/main.5b0973b0.iframe.bundle.js deleted file mode 100644 index 69e19bbb8..000000000 --- a/internal/branding/data/storybook/main.5b0973b0.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{320:function(module,exports,__webpack_require__){__webpack_require__(321),__webpack_require__(476),__webpack_require__(477),__webpack_require__(664),__webpack_require__(665),module.exports=__webpack_require__(632)},388:function(module,exports){},477:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);__webpack_require__(246)},632:function(module,exports,__webpack_require__){"use strict";(function(module){(0,__webpack_require__(246).configure)([__webpack_require__(633),__webpack_require__(634)],module,!1)}).call(this,__webpack_require__(194)(module))},633:function(module,exports){function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=function(){return[]},webpackEmptyContext.resolve=webpackEmptyContext,module.exports=webpackEmptyContext,webpackEmptyContext.id=633},634:function(module,exports,__webpack_require__){var map={"./stories/ul.stories.js":635};function webpackContext(req){var id=webpackContextResolve(req);return __webpack_require__(id)}function webpackContextResolve(req){if(!__webpack_require__.o(map,req)){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}return map[req]}webpackContext.keys=function webpackContextKeys(){return Object.keys(map)},webpackContext.resolve=webpackContextResolve,module.exports=webpackContext,webpackContext.id=634},635:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"prompts",(function(){return prompts}));__webpack_require__(78),__webpack_require__(60),__webpack_require__(35),__webpack_require__(28),__webpack_require__(636),__webpack_require__(29),__webpack_require__(80),__webpack_require__(21),__webpack_require__(128),__webpack_require__(637),__webpack_require__(134);function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var Liquid=__webpack_require__(638).Liquid,axios=__webpack_require__(639),auth0Plugin=__webpack_require__(657).auth0Plugin,FakeFileSystem=__webpack_require__(658),headTemplate=__webpack_require__(659),widgets=__webpack_require__(660),clients=window.CLIENTS,applicationOptions=clients.map((function(client){return _defineProperty({},client.name,client.id)})).reduce((function(accum,value){return accum=Object.assign({},accum,value)}),{});applicationOptions=Object.keys(applicationOptions).sort().reduce((function(acc,key){return Object.assign({},acc,_defineProperty({},key,applicationOptions[key]))}),{}),__webpack_exports__.default={title:"Universal Login",argTypes:{Application:{control:{type:"select",options:applicationOptions}},PromptName:{control:{type:"select",options:["login","mfa","signup"]}},PrimaryColor:{control:{type:"color",presetColors:["#7600d6","#F3F4F6"]}},PageBackgroundColor:{control:{type:"color",presetColors:["#F3F4F6","#7600d6"]}},LogoURL:{control:{type:"text"}}},loaders:[function(){var _ref3=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(_ref2){var args;return regeneratorRuntime.wrap((function _callee2$(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return args=_ref2.args,_ref2.argTypes,_context2.next=3,new Promise(function(){var _ref4=_asyncToGenerator(regeneratorRuntime.mark((function _callee(resolve){var template,ffs,engine,tpl;return regeneratorRuntime.wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=2,axios.get("/dynamic/template");case 2:template=_context.sent,ffs=new FakeFileSystem,engine=new Liquid({extname:".liquid",dynamicPartials:!1,fs:ffs}),ffs.addFiles({head:headTemplate,widget:widgets[args.PromptName||"login"]}),engine.plugin(auth0Plugin),tpl=engine.parse(template.data),engine.render(tpl,{prompt:{name:args.PromptName||"login"},branding:{colors:{page_background:args.PageBackgroundColor,primary:args.PrimaryColor},logo_url:args.LogoURL},application:clients.find((function(client){return client.id===args.Application})),tenantName:window.TENANT_NAME}).then((function(result){resolve(result)}));case 9:case"end":return _context.stop()}}),_callee)})));return function(_x2){return _ref4.apply(this,arguments)}}());case 3:return _context2.t0=_context2.sent,_context2.abrupt("return",{HTML:_context2.t0});case 5:case"end":return _context2.stop()}}),_callee2)})));return function(_x){return _ref3.apply(this,arguments)}}()]};var prompts=function prompts(args,_ref5){return _ref5.loaded.HTML};prompts.args={PromptName:"login",PrimaryColor:window.PRIMARY_COLOR,PageBackgroundColor:window.BACKGROUND_COLOR,LogoURL:window.LOGO_URL,Application:(clients.find((function(c){return"All Applications"===c.name}))||{}).id},function triggerAutoRefresh(){var errorRetryCounter=0;!function longPoll(){var xhr=new XMLHttpRequest;xhr.ontimeout=function(){setTimeout(longPoll,0)},xhr.onload=function(){4===xhr.readyState&&(200===xhr.status?(errorRetryCounter=0,function refreshOnChanged(){window.location.reload()}()):(errorRetryCounter++,setTimeout(longPoll,0)))},xhr.onerror=function(){errorRetryCounter++,setTimeout(longPoll,0)},errorRetryCounter>=5||(xhr.open("GET","/dynamic/events",!0),xhr.timeout=45e3,xhr.send(null))}()}()},657:function(module,exports,__webpack_require__){"use strict";__webpack_require__(134),__webpack_require__(18),__webpack_require__(43),__webpack_require__(42),__webpack_require__(61),__webpack_require__(35),__webpack_require__(180),__webpack_require__(179),__webpack_require__(52),Object.defineProperty(exports,"__esModule",{value:!0}),exports.auth0Plugin=function auth0Plugin(){var originalIncludeTag=this.tags.get("include"),originalParse=originalIncludeTag.parse,originalRender=originalIncludeTag.render;void 0!==originalParse&&this.registerTag("auth0",{parse:function parse(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];var token=args[0];return":"===token.args[0]&&(token.args=token.args.substr(1)),originalParse.call.apply(originalParse,[this].concat(args))},render:regeneratorRuntime.mark((function render(){var _len2,args,_key2,_args=arguments;return regeneratorRuntime.wrap((function render$(_context){for(;;)switch(_context.prev=_context.next){case 0:for(_context.prev=0,_len2=_args.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++)args[_key2]=_args[_key2];return _context.delegateYield(originalRender.call.apply(originalRender,[this].concat(args)),"t0",3);case 3:_context.next=9;break;case 5:throw _context.prev=5,_context.t1=_context.catch(0),"AssertionError"===_context.t1.name&&_context.t1.message.startsWith("illegal filename")&&(_context.t1.message=_context.t1.message.replace("filename","auth0 section").replace(/:\".+\"/,"")),_context.t1;case 9:case"end":return _context.stop()}}),render,this,[[0,5]])}))})}},658:function(module,exports,__webpack_require__){function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,FakeFileSystem),this.files=files}var _readFile,_exists;return function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}(FakeFileSystem,[{key:"exists",value:(_exists=_asyncToGenerator(regeneratorRuntime.mark((function _callee(){return regeneratorRuntime.wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.abrupt("return",this.existsSync());case 1:case"end":return _context.stop()}}),_callee,this)}))),function exists(){return _exists.apply(this,arguments)})},{key:"readFile",value:(_readFile=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(file){return regeneratorRuntime.wrap((function _callee2$(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return _context2.abrupt("return",this.readFileSync(file));case 1:case"end":return _context2.stop()}}),_callee2,this)}))),function readFile(_x){return _readFile.apply(this,arguments)})},{key:"existsSync",value:function existsSync(){return!0}},{key:"readFileSync",value:function readFileSync(file){var _a;return null!==(_a=this.files[file])&&void 0!==_a?_a:""}},{key:"resolve",value:function resolve(_root,filename){return filename}},{key:"addFiles",value:function addFiles(newFiles){this.files=Object.assign(Object.assign({},this.files),newFiles)}}]),FakeFileSystem}();module.exports=FakeFileSystem},659:function(module,exports){module.exports='\n\n\n'},660:function(module,exports,__webpack_require__){var login=__webpack_require__(661),signup=__webpack_require__(662),mfa=__webpack_require__(663);module.exports={login:login,signup:signup,mfa:mfa}},661:function(module,exports){module.exports='\n
\n
\n
\n
\n
\n
\n \n {% if application.logo_url %} \n {{ tenantName }}\n {% else %}\n {{ tenantName }}\n {% endif %}\n

Welcome

\n
\n

Log in to {{ tenantName }} to continue to {{ application.name }}.

\n
\n
\n
\n
\n
\n
\n
\n \n\n \n\n
\n Email address\n
\n
\n\n
\n \n\n \n\n
\n Password\n
\n\n \n
\n
\n
\n

\n Forgot\n password?\n

\n
\n \n
\n
\n
\n

Don\'t have an account?\n Sign\n up\n

\n
\n
\n
\n
\n
\n
\n
'},662:function(module,exports){module.exports='
\n
\n
\n
\n
\n
\n \n {% if application.logo_url %} \n {{ tenantName }}\n {% else %}\n {{ tenantName }}\n {% endif %}\n

Welcome

\n
\n

Sign Up to {{ tenantName }} to continue to {{ application.name }}.

\n
\n
\n
\n
\n
\n \n \n
\n
\n \n \n
\n Email address\n
\n
\n
\n \n \n
\n Password\n
\n \n
\n
\n
\n
\n
    \n
  • \n
    \n Your password must contain:\n
      \n
    • \n At least 8 characters\n
    • \n
    • \n At least 3 of the following:\n
      \n
        \n
      • \n Lower case letters (a-z)\n
      • \n
      • \n Upper case letters (A-Z)\n
      • \n
      • \n Numbers (0-9)\n
      • \n
      • \n Special characters (ex. !@#)\n
      • \n
      \n
      \n
    • \n
    \n
    \n
  • \n
\n
\n
\n
\n
\n \n
\n
\n
\n

Already have an account?\n Log\n in\n

\n
\n
\n
\n
\n
\n
\n
'},663:function(module,exports){module.exports='
\n
\n
\n
\n
\n
\n \n {% if application.logo_url %} \n {{ tenantName }}\n {% else %}\n {{ tenantName }}\n {% endif %}\n

Secure Your Account

\n
\n

In order to continue, install the Auth0 Guardian app via the app store from\n your mobile device.

\n
\n
\n \n
\n
\n
\n
\n
'},665:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var preview_namespaceObject={};__webpack_require__.r(preview_namespaceObject),__webpack_require__.d(preview_namespaceObject,"parameters",(function(){return parameters}));__webpack_require__(29),__webpack_require__(89),__webpack_require__(67),__webpack_require__(629),__webpack_require__(44),__webpack_require__(45),__webpack_require__(630),__webpack_require__(631),__webpack_require__(134);var client_api=__webpack_require__(666),esm=__webpack_require__(2),parameters={actions:{argTypesRegex:"^on[A-Z].*"}};function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}Object.keys(preview_namespaceObject).forEach((function(key){var value=preview_namespaceObject[key];switch(key){case"args":case"argTypes":return esm.a.warn("Invalid args/argTypes in config, ignoring.",JSON.stringify(value));case"decorators":return value.forEach((function(decorator){return Object(client_api.b)(decorator,!1)}));case"loaders":return value.forEach((function(loader){return Object(client_api.c)(loader,!1)}));case"parameters":return Object(client_api.d)(function _objectSpread(target){for(var i=1;i");resolve(html)}));case 9:case"end":return _context.stop()}}),_callee)})));return function(_x2){return _ref4.apply(this,arguments)}}());case 3:return _context2.t0=_context2.sent,_context2.abrupt("return",{HTML:_context2.t0});case 5:case"end":return _context2.stop()}}),_callee2)})));return function(_x){return _ref3.apply(this,arguments)}}()]};var prompts=function prompts(args,_ref5){return _ref5.loaded.HTML};prompts.args={PromptName:"login",PrimaryColor:window.PRIMARY_COLOR,PageBackgroundColor:window.BACKGROUND_COLOR,LogoURL:window.LOGO_URL,Application:(clients.find((function(c){return"All Applications"===c.name}))||{}).id},function triggerAutoRefresh(){var errorRetryCounter=0;!function longPoll(){var xhr=new XMLHttpRequest;xhr.ontimeout=function(){setTimeout(longPoll,0)},xhr.onload=function(){4===xhr.readyState&&(200===xhr.status?(errorRetryCounter=0,function refreshOnChanged(){window.location.reload()}()):(errorRetryCounter++,setTimeout(longPoll,0)))},xhr.onerror=function(){errorRetryCounter++,setTimeout(longPoll,0)},errorRetryCounter>=5||(xhr.open("GET","/dynamic/events",!0),xhr.timeout=45e3,xhr.send(null))}()}()},657:function(module,exports,__webpack_require__){"use strict";__webpack_require__(134),__webpack_require__(18),__webpack_require__(43),__webpack_require__(42),__webpack_require__(61),__webpack_require__(35),__webpack_require__(180),__webpack_require__(179),__webpack_require__(52),Object.defineProperty(exports,"__esModule",{value:!0}),exports.auth0Plugin=function auth0Plugin(){var originalIncludeTag=this.tags.get("include"),originalParse=originalIncludeTag.parse,originalRender=originalIncludeTag.render;void 0!==originalParse&&this.registerTag("auth0",{parse:function parse(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];var token=args[0];return":"===token.args[0]&&(token.args=token.args.substr(1)),originalParse.call.apply(originalParse,[this].concat(args))},render:regeneratorRuntime.mark((function render(){var _len2,args,_key2,_args=arguments;return regeneratorRuntime.wrap((function render$(_context){for(;;)switch(_context.prev=_context.next){case 0:for(_context.prev=0,_len2=_args.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++)args[_key2]=_args[_key2];return _context.delegateYield(originalRender.call.apply(originalRender,[this].concat(args)),"t0",3);case 3:_context.next=9;break;case 5:throw _context.prev=5,_context.t1=_context.catch(0),"AssertionError"===_context.t1.name&&_context.t1.message.startsWith("illegal filename")&&(_context.t1.message=_context.t1.message.replace("filename","auth0 section").replace(/:\".+\"/,"")),_context.t1;case 9:case"end":return _context.stop()}}),render,this,[[0,5]])}))})}},658:function(module,exports,__webpack_require__){function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,FakeFileSystem),this.files=files}var _readFile,_exists;return function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}(FakeFileSystem,[{key:"exists",value:(_exists=_asyncToGenerator(regeneratorRuntime.mark((function _callee(){return regeneratorRuntime.wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.abrupt("return",this.existsSync());case 1:case"end":return _context.stop()}}),_callee,this)}))),function exists(){return _exists.apply(this,arguments)})},{key:"readFile",value:(_readFile=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(file){return regeneratorRuntime.wrap((function _callee2$(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return _context2.abrupt("return",this.readFileSync(file));case 1:case"end":return _context2.stop()}}),_callee2,this)}))),function readFile(_x){return _readFile.apply(this,arguments)})},{key:"existsSync",value:function existsSync(){return!0}},{key:"readFileSync",value:function readFileSync(file){var _a;return null!==(_a=this.files[file])&&void 0!==_a?_a:""}},{key:"resolve",value:function resolve(_root,filename){return filename}},{key:"addFiles",value:function addFiles(newFiles){this.files=Object.assign(Object.assign({},this.files),newFiles)}}]),FakeFileSystem}();module.exports=FakeFileSystem},659:function(module,exports){module.exports='\n\n'},660:function(module,exports,__webpack_require__){var login=__webpack_require__(661),signup=__webpack_require__(662),mfa=__webpack_require__(663);module.exports={login:login,signup:signup,mfa:mfa}},661:function(module,exports){module.exports='
  • Alerts

  • Dev Keys

    One or more of your connections are currently using Auth0 development keys and should not be used in production.

    Learn More
{{ tenantName }}

Welcome

Log in to {{ tenantName }} to continue to {{ application.name }}.

Forgot password?

Don\'t have an account? Sign up

'},662:function(module,exports){module.exports='
{{ tenantName }}

Welcome

Sign Up to {{ tenantName }} to continue to {{ application.name }}.

Already have an account? Log in

'},663:function(module,exports){module.exports='
{{ tenantName }}

Secure Your Account

In order to continue, install the Auth0 Guardian app via the app store from your mobile device.

'},665:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var preview_namespaceObject={};__webpack_require__.r(preview_namespaceObject),__webpack_require__.d(preview_namespaceObject,"parameters",(function(){return parameters}));__webpack_require__(29),__webpack_require__(89),__webpack_require__(67),__webpack_require__(629),__webpack_require__(44),__webpack_require__(45),__webpack_require__(630),__webpack_require__(631),__webpack_require__(134);var client_api=__webpack_require__(666),esm=__webpack_require__(2),parameters={actions:{argTypesRegex:"^on[A-Z].*"}};function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}Object.keys(preview_namespaceObject).forEach((function(key){var value=preview_namespaceObject[key];switch(key){case"args":case"argTypes":return esm.a.warn("Invalid args/argTypes in config, ignoring.",JSON.stringify(value));case"decorators":return value.forEach((function(decorator){return Object(client_api.b)(decorator,!1)}));case"loaders":return value.forEach((function(loader){return Object(client_api.c)(loader,!1)}));case"parameters":return Object(client_api.d)(function _objectSpread(target){for(var i=1;i1&&"boolean"!=typeof allowMissing)throw new $TypeError('"allowMissing" argument must be a boolean');var parts=stringToPath(name),intrinsicBaseName=parts.length>0?parts[0]:"",intrinsic=getBaseIntrinsic("%"+intrinsicBaseName+"%",allowMissing),intrinsicRealName=intrinsic.name,value=intrinsic.value,skipFurtherCaching=!1,alias=intrinsic.alias;alias&&(intrinsicBaseName=alias[0],$spliceApply(parts,$concat([0,1],alias)));for(var i=1,isOwn=!0;i=parts.length){var desc=$gOPD(value,part);value=(isOwn=!!desc)&&"get"in desc&&!("originalValue"in desc.get)?desc.get:value[part]}else isOwn=hasOwn(value,part),value=value[part];isOwn&&!skipFurtherCaching&&(INTRINSICS[intrinsicRealName]=value)}}return value}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return logger})),__webpack_require__.d(__webpack_exports__,"b",(function(){return once})),__webpack_require__.d(__webpack_exports__,"c",(function(){return pretty}));__webpack_require__(18),__webpack_require__(42),__webpack_require__(21),__webpack_require__(52),__webpack_require__(95),__webpack_require__(43),__webpack_require__(179),__webpack_require__(61);var global__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(0),levels={trace:1,debug:2,info:3,warn:4,error:5,silent:10},currentLogLevelString=global__WEBPACK_IMPORTED_MODULE_8__.LOGLEVEL,currentLogLevelNumber=levels[currentLogLevelString]||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&&global__WEBPACK_IMPORTED_MODULE_8__.console.trace.apply(global__WEBPACK_IMPORTED_MODULE_8__.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&&global__WEBPACK_IMPORTED_MODULE_8__.console.debug.apply(global__WEBPACK_IMPORTED_MODULE_8__.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&&global__WEBPACK_IMPORTED_MODULE_8__.console.info.apply(global__WEBPACK_IMPORTED_MODULE_8__.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&&global__WEBPACK_IMPORTED_MODULE_8__.console.warn.apply(global__WEBPACK_IMPORTED_MODULE_8__.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&&global__WEBPACK_IMPORTED_MODULE_8__.console.error.apply(global__WEBPACK_IMPORTED_MODULE_8__.console,[message].concat(rest))},log:function log(message){for(var _len6=arguments.length,rest=new Array(_len6>1?_len6-1:0),_key6=1;_key6<_len6;_key6++)rest[_key6-1]=arguments[_key6];return currentLogLevelNumber1?_len7-1:0),_key7=1;_key7<_len7;_key7++)rest[_key7-1]=arguments[_key7];return logger[type].apply(logger,[message].concat(rest))}}};once.clear=function(){return logged.clear()},once.trace=once("trace"),once.debug=once("debug"),once.info=once("info"),once.warn=once("warn"),once.error=once("error"),once.log=once("log");var pretty=function pretty(type){return function(){for(var argArray=[],_len8=arguments.length,args=new Array(_len8),_key8=0;_key8<_len8;_key8++)args[_key8]=arguments[_key8];if(args.length){var reResultArray,startTagRe=//gi,endTagRe=/<\/span>/gi;for(argArray.push(args[0].replace(startTagRe,"%c").replace(endTagRe,"%c"));reResultArray=startTagRe.exec(args[0]);)argArray.push(reResultArray[2]),argArray.push("");for(var j=1;j-1?callBind(intrinsic):intrinsic}},function(module,exports,__webpack_require__){"use strict";var keys=__webpack_require__(329),hasSymbols="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),toStr=Object.prototype.toString,concat=Array.prototype.concat,origDefineProperty=Object.defineProperty,supportsDescriptors=origDefineProperty&&function(){var obj={};try{for(var _ in origDefineProperty(obj,"x",{enumerable:!1,value:obj}),obj)return!1;return obj.x===obj}catch(e){return!1}}(),defineProperty=function(object,name,value,predicate){var fn;(!(name in object)||"function"==typeof(fn=predicate)&&"[object Function]"===toStr.call(fn)&&predicate())&&(supportsDescriptors?origDefineProperty(object,name,{configurable:!0,enumerable:!1,value:value,writable:!0}):object[name]=value)},defineProperties=function(object,map){var predicates=arguments.length>2?arguments[2]:{},props=keys(map);hasSymbols&&(props=concat.call(props,Object.getOwnPropertySymbols(map)));for(var i=0;i=51||!fails((function(){var array=[];return array[IS_CONCAT_SPREADABLE]=!1,array.concat()[0]!==array})),SPECIES_SUPPORT=arrayMethodHasSpeciesSupport("concat"),isConcatSpreadable=function(O){if(!isObject(O))return!1;var spreadable=O[IS_CONCAT_SPREADABLE];return void 0!==spreadable?!!spreadable:isArray(O)};$({target:"Array",proto:!0,forced:!IS_CONCAT_SPREADABLE_SUPPORT||!SPECIES_SUPPORT},{concat:function concat(arg){var i,k,length,len,E,O=toObject(this),A=arraySpeciesCreate(O,0),n=0;for(i=-1,length=arguments.length;i9007199254740991)throw TypeError("Maximum allowed index exceeded");for(k=0;k=9007199254740991)throw TypeError("Maximum allowed index exceeded");createProperty(A,n++,E)}return A.length=n,A}})},function(module,exports,__webpack_require__){(function(global){function config(name){try{if(!global.localStorage)return!1}catch(_){return!1}var val=global.localStorage[name];return null!=val&&"true"===String(val).toLowerCase()}module.exports=function deprecate(fn,msg){if(config("noDeprecation"))return fn;var warned=!1;return function deprecated(){if(!warned){if(config("throwDeprecation"))throw new Error(msg);config("traceDeprecation")?console.trace(msg):console.warn(msg),warned=!0}return fn.apply(this,arguments)}}}).call(this,__webpack_require__(55))},function(module,exports,__webpack_require__){var DESCRIPTORS=__webpack_require__(15),IE8_DOM_DEFINE=__webpack_require__(236),anObject=__webpack_require__(13),toPrimitive=__webpack_require__(85),$defineProperty=Object.defineProperty;exports.f=DESCRIPTORS?$defineProperty:function defineProperty(O,P,Attributes){if(anObject(O),P=toPrimitive(P,!0),anObject(Attributes),IE8_DOM_DEFINE)try{return $defineProperty(O,P,Attributes)}catch(error){}if("get"in Attributes||"set"in Attributes)throw TypeError("Accessors not supported");return"value"in Attributes&&(O[P]=Attributes.value),O}},function(module,exports,__webpack_require__){var TO_STRING_TAG_SUPPORT=__webpack_require__(163),redefine=__webpack_require__(26),toString=__webpack_require__(454);TO_STRING_TAG_SUPPORT||redefine(Object.prototype,"toString",toString,{unsafe:!0})},function(module,exports,__webpack_require__){"use strict";var bind=__webpack_require__(140);module.exports=bind.call(Function.call,Object.prototype.hasOwnProperty)},function(module,exports,__webpack_require__){"use strict";var $TypeError=__webpack_require__(1)("%TypeError%"),inspect=__webpack_require__(105),IsPropertyKey=__webpack_require__(38),Type=__webpack_require__(6);module.exports=function Get(O,P){if("Object"!==Type(O))throw new $TypeError("Assertion failed: Type(O) is not Object");if(!IsPropertyKey(P))throw new $TypeError("Assertion failed: IsPropertyKey(P) is not true, got "+inspect(P));return O[P]}},function(module,exports,__webpack_require__){"use strict";var bind=__webpack_require__(305),toString=Object.prototype.toString;function isArray(val){return"[object Array]"===toString.call(val)}function isUndefined(val){return void 0===val}function isObject(val){return null!==val&&"object"==typeof val}function isPlainObject(val){if("[object Object]"!==toString.call(val))return!1;var prototype=Object.getPrototypeOf(val);return null===prototype||prototype===Object.prototype}function isFunction(val){return"[object Function]"===toString.call(val)}function forEach(obj,fn){if(null!=obj)if("object"!=typeof obj&&(obj=[obj]),isArray(obj))for(var i=0,l=obj.length;i0?min(toInteger(argument),9007199254740991):0}},function(module,exports,__webpack_require__){var $=__webpack_require__(3),assign=__webpack_require__(251);$({target:"Object",stat:!0,forced:Object.assign!==assign},{assign:assign})},function(module,exports,__webpack_require__){var $=__webpack_require__(3),toObject=__webpack_require__(34),nativeKeys=__webpack_require__(90);$({target:"Object",stat:!0,forced:__webpack_require__(8)((function(){nativeKeys(1)}))},{keys:function keys(it){return nativeKeys(toObject(it))}})},function(module,exports,__webpack_require__){"use strict";var stringify=__webpack_require__(501),parse=__webpack_require__(502),formats=__webpack_require__(173);module.exports={formats:formats,parse:parse,stringify:stringify}},function(module,exports,__webpack_require__){var baseAssignValue=__webpack_require__(282),baseForOwn=__webpack_require__(563),baseIteratee=__webpack_require__(289);module.exports=function mapValues(object,iteratee){var result={};return iteratee=baseIteratee(iteratee,3),baseForOwn(object,(function(value,key,object){baseAssignValue(result,key,iteratee(value,key,object))})),result}},function(module,exports,__webpack_require__){var IndexedObject=__webpack_require__(84),requireObjectCoercible=__webpack_require__(33);module.exports=function(it){return IndexedObject(requireObjectCoercible(it))}},function(module,exports){module.exports=function(it){if(null==it)throw TypeError("Can't call method on "+it);return it}},function(module,exports,__webpack_require__){var requireObjectCoercible=__webpack_require__(33);module.exports=function(argument){return Object(requireObjectCoercible(argument))}},function(module,exports,__webpack_require__){var DESCRIPTORS=__webpack_require__(15),defineProperty=__webpack_require__(20).f,FunctionPrototype=Function.prototype,FunctionPrototypeToString=FunctionPrototype.toString,nameRE=/^\s*function ([^ (]*)/;DESCRIPTORS&&!("name"in FunctionPrototype)&&defineProperty(FunctionPrototype,"name",{configurable:!0,get:function(){try{return FunctionPrototypeToString.call(this).match(nameRE)[1]}catch(error){return""}}})},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isExportStory=function isExportStory(key,_ref){var includeStories=_ref.includeStories,excludeStories=_ref.excludeStories;return"__esModule"!==key&&(!includeStories||matches(key,includeStories))&&(!excludeStories||!matches(key,excludeStories))},exports.parseKind=exports.storyNameFromExport=exports.toId=exports.sanitize=void 0;var _startCase=function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}(__webpack_require__(480));function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){if(!(Symbol.iterator in Object(arr))&&"[object Arguments]"!==Object.prototype.toString.call(arr))return;var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var sanitize=function sanitize(string){return string.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")};exports.sanitize=sanitize;var sanitizeSafe=function sanitizeSafe(string,part){var sanitized=sanitize(string);if(""===sanitized)throw new Error("Invalid ".concat(part," '").concat(string,"', must include alphanumeric characters"));return sanitized};exports.toId=function toId(kind,name){return"".concat(sanitizeSafe(kind,"kind"),"--").concat(sanitizeSafe(name,"name"))};function matches(storyKey,arrayOrRegex){return Array.isArray(arrayOrRegex)?arrayOrRegex.includes(storyKey):storyKey.match(arrayOrRegex)}exports.storyNameFromExport=function storyNameFromExport(key){return(0,_startCase.default)(key)};exports.parseKind=function parseKind(kind,_ref2){var rootSeparator=_ref2.rootSeparator,groupSeparator=_ref2.groupSeparator,_kind$split2=_slicedToArray(kind.split(rootSeparator,2),2),root=_kind$split2[0],remainder=_kind$split2[1];return{root:remainder?root:null,groups:(remainder||kind).split(groupSeparator).filter((function(i){return!!i}))}}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return addons}));__webpack_require__(44),__webpack_require__(28),__webpack_require__(21),__webpack_require__(92),__webpack_require__(80),__webpack_require__(45);var global__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),global__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(global__WEBPACK_IMPORTED_MODULE_6__),_storybook_client_logger__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(2),_types__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(135);var AddonStore=function AddonStore(){var _this=this;!function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,AddonStore),this.loaders={},this.elements={},this.config={},this.channel=void 0,this.promise=void 0,this.resolve=void 0,this.getChannel=function(){if(!_this.channel)throw new Error("Accessing non-existent addons channel, see https://storybook.js.org/basics/faq/#why-is-there-no-addons-channel");return _this.channel},this.ready=function(){return _this.promise},this.hasChannel=function(){return!!_this.channel},this.setChannel=function(channel){_this.channel=channel,_this.resolve()},this.getElements=function(type){return _this.elements[type]||(_this.elements[type]={}),_this.elements[type]},this.addPanel=function(name,options){_this.add(name,Object.assign({type:_types__WEBPACK_IMPORTED_MODULE_8__.a.PANEL},options))},this.add=function(name,addon){var type=addon.type;_this.getElements(type)[name]=Object.assign({id:name},addon)},this.setConfig=function(value){Object.assign(_this.config,value)},this.getConfig=function(){return _this.config},this.register=function(name,registerCallback){_this.loaders[name]&&_storybook_client_logger__WEBPACK_IMPORTED_MODULE_7__.a.warn("".concat(name," was loaded twice, this could have bad side-effects")),_this.loaders[name]=registerCallback},this.loadAddons=function(api){Object.values(_this.loaders).forEach((function(value){return value(api)}))},this.promise=new Promise((function(res){_this.resolve=function(){return res(_this.getChannel())}}))},KEY="__STORYBOOK_ADDONS";var addons=function getAddonsStore(){return global__WEBPACK_IMPORTED_MODULE_6___default.a[KEY]||(global__WEBPACK_IMPORTED_MODULE_6___default.a[KEY]=new AddonStore),global__WEBPACK_IMPORTED_MODULE_6___default.a[KEY]}()},function(module,exports,__webpack_require__){"use strict";module.exports=function IsPropertyKey(argument){return"string"==typeof argument||"symbol"==typeof argument}},function(module,exports,__webpack_require__){var DESCRIPTORS=__webpack_require__(15),definePropertyModule=__webpack_require__(20),createPropertyDescriptor=__webpack_require__(72);module.exports=DESCRIPTORS?function(object,key,value){return definePropertyModule.f(object,key,createPropertyDescriptor(1,value))}:function(object,key,value){return object[key]=value,object}},function(module,exports,__webpack_require__){var set,get,has,NATIVE_WEAK_MAP=__webpack_require__(237),global=__webpack_require__(5),isObject=__webpack_require__(12),createNonEnumerableProperty=__webpack_require__(39),objectHas=__webpack_require__(16),shared=__webpack_require__(157),sharedKey=__webpack_require__(107),hiddenKeys=__webpack_require__(86),WeakMap=global.WeakMap;if(NATIVE_WEAK_MAP){var store=shared.state||(shared.state=new WeakMap),wmget=store.get,wmhas=store.has,wmset=store.set;set=function(it,metadata){return metadata.facade=it,wmset.call(store,it,metadata),metadata},get=function(it){return wmget.call(store,it)||{}},has=function(it){return wmhas.call(store,it)}}else{var STATE=sharedKey("state");hiddenKeys[STATE]=!0,set=function(it,metadata){return metadata.facade=it,createNonEnumerableProperty(it,STATE,metadata),metadata},get=function(it){return objectHas(it,STATE)?it[STATE]:{}},has=function(it){return objectHas(it,STATE)}}module.exports={set:set,get:get,has:has,enforce:function(it){return has(it)?get(it):set(it,{})},getterFor:function(TYPE){return function(it){var state;if(!isObject(it)||(state=get(it)).type!==TYPE)throw TypeError("Incompatible receiver, "+TYPE+" required");return state}}}},function(module,exports,__webpack_require__){var defineProperty=__webpack_require__(20).f,has=__webpack_require__(16),TO_STRING_TAG=__webpack_require__(9)("toStringTag");module.exports=function(it,TAG,STATIC){it&&!has(it=STATIC?it:it.prototype,TO_STRING_TAG)&&defineProperty(it,TO_STRING_TAG,{configurable:!0,value:TAG})}},function(module,exports,__webpack_require__){"use strict";var toIndexedObject=__webpack_require__(32),addToUnscopables=__webpack_require__(124),Iterators=__webpack_require__(94),InternalStateModule=__webpack_require__(40),defineIterator=__webpack_require__(181),setInternalState=InternalStateModule.set,getInternalState=InternalStateModule.getterFor("Array Iterator");module.exports=defineIterator(Array,"Array",(function(iterated,kind){setInternalState(this,{type:"Array Iterator",target:toIndexedObject(iterated),index:0,kind:kind})}),(function(){var state=getInternalState(this),target=state.target,kind=state.kind,index=state.index++;return!target||index>=target.length?(state.target=void 0,{value:void 0,done:!0}):"keys"==kind?{value:index,done:!1}:"values"==kind?{value:target[index],done:!1}:{value:[index,target[index]],done:!1}}),"values"),Iterators.Arguments=Iterators.Array,addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries")},function(module,exports,__webpack_require__){"use strict";var charAt=__webpack_require__(171).charAt,InternalStateModule=__webpack_require__(40),defineIterator=__webpack_require__(181),setInternalState=InternalStateModule.set,getInternalState=InternalStateModule.getterFor("String Iterator");defineIterator(String,"String",(function(iterated){setInternalState(this,{type:"String Iterator",string:String(iterated),index:0})}),(function next(){var point,state=getInternalState(this),string=state.string,index=state.index;return index>=string.length?{value:void 0,done:!0}:(point=charAt(string,index),state.index+=point.length,{value:point,done:!1})}))},function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__(3),forEach=__webpack_require__(271);$({target:"Array",proto:!0,forced:[].forEach!=forEach},{forEach:forEach})},function(module,exports,__webpack_require__){var global=__webpack_require__(5),DOMIterables=__webpack_require__(270),forEach=__webpack_require__(271),createNonEnumerableProperty=__webpack_require__(39);for(var COLLECTION_NAME in DOMIterables){var Collection=global[COLLECTION_NAME],CollectionPrototype=Collection&&Collection.prototype;if(CollectionPrototype&&CollectionPrototype.forEach!==forEach)try{createNonEnumerableProperty(CollectionPrototype,"forEach",forEach)}catch(error){CollectionPrototype.forEach=forEach}}},function(module,exports,__webpack_require__){"use strict";module.exports=__webpack_require__(104)},function(module,exports,__webpack_require__){"use strict";module.exports=__webpack_require__(348)},function(module,exports,__webpack_require__){var DESCRIPTORS=__webpack_require__(15),propertyIsEnumerableModule=__webpack_require__(106),createPropertyDescriptor=__webpack_require__(72),toIndexedObject=__webpack_require__(32),toPrimitive=__webpack_require__(85),has=__webpack_require__(16),IE8_DOM_DEFINE=__webpack_require__(236),$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;exports.f=DESCRIPTORS?$getOwnPropertyDescriptor:function getOwnPropertyDescriptor(O,P){if(O=toIndexedObject(O),P=toPrimitive(P,!0),IE8_DOM_DEFINE)try{return $getOwnPropertyDescriptor(O,P)}catch(error){}if(has(O,P))return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O,P),O[P])}},function(module,exports,__webpack_require__){var bind=__webpack_require__(74),IndexedObject=__webpack_require__(84),toObject=__webpack_require__(34),toLength=__webpack_require__(27),arraySpeciesCreate=__webpack_require__(242),push=[].push,createMethod=function(TYPE){var IS_MAP=1==TYPE,IS_FILTER=2==TYPE,IS_SOME=3==TYPE,IS_EVERY=4==TYPE,IS_FIND_INDEX=6==TYPE,IS_FILTER_OUT=7==TYPE,NO_HOLES=5==TYPE||IS_FIND_INDEX;return function($this,callbackfn,that,specificCreate){for(var value,result,O=toObject($this),self=IndexedObject(O),boundFunction=bind(callbackfn,that,3),length=toLength(self.length),index=0,create=specificCreate||arraySpeciesCreate,target=IS_MAP?create($this,length):IS_FILTER||IS_FILTER_OUT?create($this,0):void 0;length>index;index++)if((NO_HOLES||index in self)&&(result=boundFunction(value=self[index],index,O),TYPE))if(IS_MAP)target[index]=result;else if(result)switch(TYPE){case 3:return!0;case 5:return value;case 6:return index;case 2:push.call(target,value)}else switch(TYPE){case 4:return!1;case 7:push.call(target,value)}return IS_FIND_INDEX?-1:IS_SOME||IS_EVERY?IS_EVERY:target}};module.exports={forEach:createMethod(0),map:createMethod(1),filter:createMethod(2),some:createMethod(3),every:createMethod(4),find:createMethod(5),findIndex:createMethod(6),filterOut:createMethod(7)}},function(module,exports,__webpack_require__){var freeGlobal=__webpack_require__(248),freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")();module.exports=root},function(module,exports){var isArray=Array.isArray;module.exports=isArray},function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__(3),exec=__webpack_require__(168);$({target:"RegExp",proto:!0,forced:/./.exec!==exec},{exec:exec})},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"h",(function(){return storiesOf})),__webpack_require__.d(__webpack_exports__,"c",(function(){return configure})),__webpack_require__.d(__webpack_exports__,"a",(function(){return addDecorator})),__webpack_require__.d(__webpack_exports__,"b",(function(){return addParameters})),__webpack_require__.d(__webpack_exports__,"g",(function(){return setAddon})),__webpack_require__.d(__webpack_exports__,"d",(function(){return forceReRender})),__webpack_require__.d(__webpack_exports__,"e",(function(){return getStorybook})),__webpack_require__.d(__webpack_exports__,"f",(function(){return raw}));__webpack_require__(18);var client=__webpack_require__(314),global_window=__webpack_require__(0);global_window.window.STORYBOOK_ENV="HTML";__webpack_require__(35);var _templateObject,dist=__webpack_require__(7),dist_default=__webpack_require__.n(dist),runScriptTypes=(__webpack_require__(44),__webpack_require__(185),__webpack_require__(81),__webpack_require__(43),__webpack_require__(45),["application/javascript","application/ecmascript","application/x-ecmascript","application/x-javascript","text/ecmascript","text/javascript","text/javascript1.0","text/javascript1.1","text/javascript1.2","text/javascript1.3","text/javascript1.4","text/javascript1.5","text/jscript","text/livescript","text/x-ecmascript","text/x-javascript"]);function simulateDOMContentLoaded(){var DOMContentLoadedEvent=global_window.document.createEvent("Event");DOMContentLoadedEvent.initEvent("DOMContentLoaded",!0,!0),global_window.document.dispatchEvent(DOMContentLoadedEvent)}function simulatePageLoad($container){var $scriptsRoot=global_window.document.getElementById("scripts-root");$scriptsRoot?$scriptsRoot.innerHTML="":(($scriptsRoot=global_window.document.createElement("div")).id="scripts-root",global_window.document.body.appendChild($scriptsRoot));var $scripts=Array.from($container.querySelectorAll("script"));if($scripts.length){var scriptsToExecute=[];$scripts.forEach((function($script){var typeAttr=$script.getAttribute("type");typeAttr&&!runScriptTypes.includes(typeAttr)||scriptsToExecute.push((function(callback){return function insertScript($script,callback,$scriptRoot){var scriptEl=global_window.document.createElement("script");scriptEl.type="text/javascript",$script.src?(scriptEl.onload=callback,scriptEl.onerror=callback,scriptEl.src=$script.src):scriptEl.textContent=$script.innerText,$scriptRoot?$scriptRoot.appendChild(scriptEl):global_window.document.head.appendChild(scriptEl),$script.parentNode.removeChild($script),$script.src||callback()}($script,callback,$scriptsRoot)}))})),scriptsToExecute.length&&function insertScriptsSequentially(scriptsToExecute,callback){var index=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;scriptsToExecute[index]((function(){++index===scriptsToExecute.length?callback():insertScriptsSequentially(scriptsToExecute,callback,index)}))}(scriptsToExecute,simulateDOMContentLoaded,void 0)}else simulateDOMContentLoaded()}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var rootElement=global_window.document.getElementById("root");var framework="html",api=Object(client.start)((function renderMain(_ref){var storyFn=_ref.storyFn,kind=_ref.kind,name=_ref.name,showMain=_ref.showMain,showError=_ref.showError,forceRender=_ref.forceRender,element=storyFn();if(showMain(),"string"==typeof element)rootElement.innerHTML=element,simulatePageLoad(rootElement);else if(element instanceof global_window.Node){if(rootElement.firstChild===element&&!0===forceRender)return;rootElement.innerHTML="",rootElement.appendChild(element),simulateDOMContentLoaded()}else showError({title:'Expecting an HTML snippet or DOM node from the story: "'.concat(name,'" of "').concat(kind,'".'),description:dist_default()(_templateObject||(_templateObject=_taggedTemplateLiteral(['\n Did you forget to return the HTML snippet from the story?\n Use "() => " or when defining the story.\n '])))})})),storiesOf=function storiesOf(kind,m){return api.clientApi.storiesOf(kind,m).addParameters({framework:framework})},configure=function configure(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return api.configure.apply(api,[framework].concat(args))},addDecorator=api.clientApi.addDecorator,addParameters=api.clientApi.addParameters,setAddon=(api.clientApi.clearDecorators,api.clientApi.setAddon),forceReRender=api.forceReRender,getStorybook=api.clientApi.getStorybook,raw=api.clientApi.raw},function(module,exports,__webpack_require__){var baseGetTag=__webpack_require__(76),getPrototype=__webpack_require__(261),isObjectLike=__webpack_require__(77),funcProto=Function.prototype,objectProto=Object.prototype,funcToString=funcProto.toString,hasOwnProperty=objectProto.hasOwnProperty,objectCtorString=funcToString.call(Object);module.exports=function isPlainObject(value){if(!isObjectLike(value)||"[object Object]"!=baseGetTag(value))return!1;var proto=getPrototype(value);if(null===proto)return!0;var Ctor=hasOwnProperty.call(proto,"constructor")&&proto.constructor;return"function"==typeof Ctor&&Ctor instanceof Ctor&&funcToString.call(Ctor)==objectCtorString}},function(module,exports){var g;g=function(){return this}();try{g=g||new Function("return this")()}catch(e){"object"==typeof window&&(g=window)}module.exports=g},function(module,exports,__webpack_require__){"use strict";var MAX_SAFE_INTEGER=__webpack_require__(143),ToInteger=__webpack_require__(141);module.exports=function ToLength(argument){var len=ToInteger(argument);return len<=0?0:len>MAX_SAFE_INTEGER?MAX_SAFE_INTEGER:len}},function(module,exports,__webpack_require__){"use strict";var GetIntrinsic=__webpack_require__(1),$String=GetIntrinsic("%String%"),$TypeError=GetIntrinsic("%TypeError%");module.exports=function ToString(argument){if("symbol"==typeof argument)throw new $TypeError("Cannot convert a Symbol value to a string");return $String(argument)}},function(module,exports,__webpack_require__){"use strict";var GetIntrinsic=__webpack_require__(1),callBound=__webpack_require__(10),$TypeError=GetIntrinsic("%TypeError%"),IsArray=__webpack_require__(62),$apply=GetIntrinsic("%Reflect.apply%",!0)||callBound("%Function.prototype.apply%");module.exports=function Call(F,V){var argumentsList=arguments.length>2?arguments[2]:[];if(!IsArray(argumentsList))throw new $TypeError("Assertion failed: optional `argumentsList`, if provided, must be a List");return $apply(F,V,argumentsList)}},function(module,exports){module.exports=!1},function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__(3),$map=__webpack_require__(49).map;$({target:"Array",proto:!0,forced:!__webpack_require__(116)("map")},{map:function map(callbackfn){return $map(this,callbackfn,arguments.length>1?arguments[1]:void 0)}})},function(module,exports,__webpack_require__){var global=__webpack_require__(5),DOMIterables=__webpack_require__(270),ArrayIteratorMethods=__webpack_require__(42),createNonEnumerableProperty=__webpack_require__(39),wellKnownSymbol=__webpack_require__(9),ITERATOR=wellKnownSymbol("iterator"),TO_STRING_TAG=wellKnownSymbol("toStringTag"),ArrayValues=ArrayIteratorMethods.values;for(var COLLECTION_NAME in DOMIterables){var Collection=global[COLLECTION_NAME],CollectionPrototype=Collection&&Collection.prototype;if(CollectionPrototype){if(CollectionPrototype[ITERATOR]!==ArrayValues)try{createNonEnumerableProperty(CollectionPrototype,ITERATOR,ArrayValues)}catch(error){CollectionPrototype[ITERATOR]=ArrayValues}if(CollectionPrototype[TO_STRING_TAG]||createNonEnumerableProperty(CollectionPrototype,TO_STRING_TAG,COLLECTION_NAME),DOMIterables[COLLECTION_NAME])for(var METHOD_NAME in ArrayIteratorMethods)if(CollectionPrototype[METHOD_NAME]!==ArrayIteratorMethods[METHOD_NAME])try{createNonEnumerableProperty(CollectionPrototype,METHOD_NAME,ArrayIteratorMethods[METHOD_NAME])}catch(error){CollectionPrototype[METHOD_NAME]=ArrayIteratorMethods[METHOD_NAME]}}}},function(module,exports,__webpack_require__){"use strict";var $Array=__webpack_require__(1)("%Array%"),toStr=!$Array.isArray&&__webpack_require__(10)("Object.prototype.toString");module.exports=$Array.isArray||function IsArray(argument){return"[object Array]"===toStr(argument)}},function(module,exports,__webpack_require__){"use strict";var ES5Type=__webpack_require__(212);module.exports=function Type(x){return"symbol"==typeof x?"Symbol":ES5Type(x)}},function(module,exports){var toString={}.toString;module.exports=function(it){return toString.call(it).slice(8,-1)}},function(module,exports,__webpack_require__){var path=__webpack_require__(158),global=__webpack_require__(5),aFunction=function(variable){return"function"==typeof variable?variable:void 0};module.exports=function(namespace,method){return arguments.length<2?aFunction(path[namespace])||aFunction(global[namespace]):path[namespace]&&path[namespace][method]||global[namespace]&&global[namespace][method]}},function(module,exports,__webpack_require__){"use strict";var fails=__webpack_require__(8);module.exports=function(METHOD_NAME,argument){var method=[][METHOD_NAME];return!!method&&fails((function(){method.call(null,argument||function(){throw 1},1)}))}},function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__(3),$filter=__webpack_require__(49).filter;$({target:"Array",proto:!0,forced:!__webpack_require__(116)("filter")},{filter:function filter(callbackfn){return $filter(this,callbackfn,arguments.length>1?arguments[1]:void 0)}})},function(module,exports,__webpack_require__){var baseIsNative=__webpack_require__(542),getValue=__webpack_require__(545);module.exports=function getNative(object,key){var value=getValue(object,key);return baseIsNative(value)?value:void 0}},function(module,exports,__webpack_require__){"use strict";module.exports=Number.isNaN||function isNaN(a){return a!=a}},function(module,exports,__webpack_require__){"use strict";var $Object=__webpack_require__(1)("%Object%"),RequireObjectCoercible=__webpack_require__(47);module.exports=function ToObject(value){return RequireObjectCoercible(value),$Object(value)}},function(module,exports,__webpack_require__){"use strict";var GetIntrinsic=__webpack_require__(1),$TypeError=GetIntrinsic("%TypeError%"),$SyntaxError=GetIntrinsic("%SyntaxError%"),has=__webpack_require__(22),predicates={"Property Descriptor":function isPropertyDescriptor(Type,Desc){if("Object"!==Type(Desc))return!1;var allowed={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var key in Desc)if(has(Desc,key)&&!allowed[key])return!1;var isData=has(Desc,"[[Value]]"),IsAccessor=has(Desc,"[[Get]]")||has(Desc,"[[Set]]");if(isData&&IsAccessor)throw new $TypeError("Property Descriptors may not be both accessor and data descriptors");return!0}};module.exports=function assertRecord(Type,recordType,argumentName,value){var predicate=predicates[recordType];if("function"!=typeof predicate)throw new $SyntaxError("unknown record type: "+recordType);if(!predicate(Type,value))throw new $TypeError(argumentName+" must be a "+recordType)}},function(module,exports){module.exports=function(bitmap,value){return{enumerable:!(1&bitmap),configurable:!(2&bitmap),writable:!(4&bitmap),value:value}}},function(module,exports,__webpack_require__){var activeXDocument,anObject=__webpack_require__(13),defineProperties=__webpack_require__(165),enumBugKeys=__webpack_require__(160),hiddenKeys=__webpack_require__(86),html=__webpack_require__(244),documentCreateElement=__webpack_require__(154),sharedKey=__webpack_require__(107),IE_PROTO=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(content){return"