@patternplate/client
Version:
Universal javascript client application for patternplate
22 lines • 1.37 MB
JavaScript
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=586)}([function(e,t,n){"use strict";e.exports=n(583)},function(e,t,n){"use strict";n.r(t),function(e,r){n.d(t,"css",function(){return ve}),n.d(t,"keyframes",function(){return ot}),n.d(t,"createGlobalStyle",function(){return it}),n.d(t,"isStyledComponent",function(){return A}),n.d(t,"ThemeConsumer",function(){return Ge}),n.d(t,"ThemeContext",function(){return $e}),n.d(t,"ThemeProvider",function(){return Ke}),n.d(t,"withTheme",function(){return st}),n.d(t,"ServerStyleSheet",function(){return Ye}),n.d(t,"StyleSheetManager",function(){return Ze}),n.d(t,"__DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS",function(){return ct});var i=n(64),a=n.n(i),o=n(163),s=n.n(o),c=n(0),u=n.n(c),l=n(162),f=n(36),p=n(167),h=(n(159),n(63),n(161)),d=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},y=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},_=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},w=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},x=function(e){return"object"===(void 0===e?"undefined":g(e))&&e.constructor===Object},k=Object.freeze([]),S=Object.freeze({});function E(e){return"function"==typeof e}function C(e){return e.displayName||e.name||"Component"}function A(e){return e&&"string"==typeof e.styledComponentId}var O=void 0!==e&&e.env.SC_ATTR||"data-styled",T="undefined"!=typeof window&&"HTMLElement"in window,j="boolean"==typeof SC_DISABLE_SPEEDY&&SC_DISABLE_SPEEDY||!1,N={};var I=function(e){function t(n){m(this,t);for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];var o=w(this,e.call(this,"An error occurred. See https://github.com/styled-components/styled-components/blob/master/src/utils/errors.md#"+n+" for more information. "+(i?"Additional arguments: "+i.join(", "):"")));return w(o)}return b(t,e),t}(Error),P=/^[^\S\n]*?\/\* sc-component-id:\s*(\S+)\s+\*\//gm,L=function(e){var t=""+(e||""),n=[];return t.replace(P,function(e,t,r){return n.push({componentId:t,matchIndex:r}),e}),n.map(function(e,r){var i=e.componentId,a=e.matchIndex,o=n[r+1];return{componentId:i,cssFromDOM:o?t.slice(a,o.matchIndex):t.slice(a)}})},R=/^\s*\/\/.*$/gm,M=new a.a({global:!1,cascade:!0,keyframe:!1,prefix:!1,compress:!1,semicolon:!0}),z=new a.a({global:!1,cascade:!0,keyframe:!1,prefix:!0,compress:!1,semicolon:!1}),D=[],B=function(e){if(-2===e){var t=D;return D=[],t}},F=s()(function(e){D.push(e)}),U=void 0,q=void 0,V=void 0,H=function(e,t,n){return t>0&&-1!==n.slice(0,t).indexOf(q)&&n.slice(t-q.length,t)!==q?"."+U:e};z.use([function(e,t,n){2===e&&n.length&&n[0].lastIndexOf(q)>0&&(n[0]=n[0].replace(V,H))},F,B]),M.use([F,B]);function W(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"&",i=e.join("").replace(R,""),a=t&&n?n+" "+t+" { "+i+" }":i;return U=r,q=t,V=new RegExp("\\"+q+"\\b","g"),z(n||!t?"":t,a)}var $=function(){return n.nc},G=function(e,t,n){n&&((e[t]||(e[t]=Object.create(null)))[n]=!0)},K=function(e,t){e[t]=Object.create(null)},Y=function(e){return function(t,n){return void 0!==e[t]&&e[t][n]}},J=function(e){var t="";for(var n in e)t+=Object.keys(e[n]).join(" ")+" ";return t.trim()},X=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets.length,n=0;n<t;n+=1){var r=document.styleSheets[n];if(r.ownerNode===e)return r}throw new I(10)},Z=function(e,t,n){if(!t)return!1;var r=e.cssRules.length;try{e.insertRule(t,n<=r?n:r)}catch(e){return!1}return!0},Q=function(e){return"\n/* sc-component-id: "+e+" */\n"},ee=function(e,t){for(var n=0,r=0;r<=t;r+=1)n+=e[r];return n},te=function(e,t){return function(n){var r=$();return"<style "+[r&&'nonce="'+r+'"',O+'="'+J(t)+'"','data-styled-version="4.1.1"',n].filter(Boolean).join(" ")+">"+e()+"</style>"}},ne=function(e,t){return function(){var n,r=((n={})[O]=J(t),n["data-styled-version"]="4.1.1",n),i=$();return i&&(r.nonce=i),u.a.createElement("style",v({},r,{dangerouslySetInnerHTML:{__html:e()}}))}},re=function(e){return function(){return Object.keys(e)}},ie=function(e){return document.createTextNode(Q(e))},ae=function e(t,n){var r=void 0===t?Object.create(null):t,i=void 0===n?Object.create(null):n,a=function(e){var t=i[e];return void 0!==t?t:i[e]=[""]},o=function(){var e="";for(var t in i){var n=i[t][0];n&&(e+=Q(t)+n)}return e};return{clone:function(){var t=function(e){var t=Object.create(null);for(var n in e)t[n]=v({},e[n]);return t}(r),n=Object.create(null);for(var a in i)n[a]=[i[a][0]];return e(t,n)},css:o,getIds:re(i),hasNameForId:Y(r),insertMarker:a,insertRules:function(e,t,n){a(e)[0]+=t.join(" "),G(r,e,n)},removeRules:function(e){var t=i[e];void 0!==t&&(t[0]="",K(r,e))},sealed:!1,styleTag:null,toElement:ne(o,r),toHTML:te(o,r)}},oe=function(e,t,n,r,i){if(T&&!n){var a=function(e,t,n){var r=document.createElement("style");r.setAttribute(O,""),r.setAttribute("data-styled-version","4.1.1");var i=$();if(i&&r.setAttribute("nonce",i),r.appendChild(document.createTextNode("")),e&&!t)e.appendChild(r);else{if(!t||!e||!t.parentNode)throw new I(6);t.parentNode.insertBefore(r,n?t:t.nextSibling)}return r}(e,t,r);return j?function(e,t){var n=Object.create(null),r=Object.create(null),i=void 0!==t,a=!1,o=function(t){var i=r[t];return void 0!==i?i:(r[t]=ie(t),e.appendChild(r[t]),n[t]=Object.create(null),r[t])},s=function(){var e="";for(var t in r)e+=r[t].data;return e};return{clone:function(){throw new I(5)},css:s,getIds:re(r),hasNameForId:Y(n),insertMarker:o,insertRules:function(e,r,s){for(var c=o(e),u=[],l=r.length,f=0;f<l;f+=1){var p=r[f],h=i;if(h&&-1!==p.indexOf("@import"))u.push(p);else{h=!1;var d=f===l-1?"":" ";c.appendData(""+p+d)}}G(n,e,s),i&&u.length>0&&(a=!0,t().insertRules(e+"-import",u))},removeRules:function(o){var s=r[o];if(void 0!==s){var c=ie(o);e.replaceChild(c,s),r[o]=c,K(n,o),i&&a&&t().removeRules(o+"-import")}},sealed:!1,styleTag:e,toElement:ne(s,n),toHTML:te(s,n)}}(a,i):function(e,t){var n=Object.create(null),r=Object.create(null),i=[],a=void 0!==t,o=!1,s=function(e){var t=r[e];return void 0!==t?t:(r[e]=i.length,i.push(0),K(n,e),r[e])},c=function(){var t=X(e).cssRules,n="";for(var a in r){n+=Q(a);for(var o=r[a],s=ee(i,o),c=s-i[o];c<s;c+=1){var u=t[c];void 0!==u&&(n+=u.cssText)}}return n};return{clone:function(){throw new I(5)},css:c,getIds:re(r),hasNameForId:Y(n),insertMarker:s,insertRules:function(r,c,u){for(var l=s(r),f=X(e),p=ee(i,l),h=0,d=[],g=c.length,m=0;m<g;m+=1){var y=c[m],v=a;v&&-1!==y.indexOf("@import")?d.push(y):Z(f,y,p+h)&&(v=!1,h+=1)}a&&d.length>0&&(o=!0,t().insertRules(r+"-import",d)),i[l]+=h,G(n,r,u)},removeRules:function(s){var c=r[s];if(void 0!==c){var u=i[c];!function(e,t,n){for(var r=t-n,i=t;i>r;i-=1)e.deleteRule(i)}(X(e),ee(i,c)-1,u),i[c]=0,K(n,s),a&&o&&t().removeRules(s+"-import")}},sealed:!1,styleTag:e,toElement:ne(c,n),toHTML:te(c,n)}}(a,i)}return ae()},se=/\s+/,ce=void 0;ce=T?j?40:1e3:-1;var ue=0,le=void 0,fe=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T?document.head:null,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];m(this,e),this.getImportRuleTag=function(){var e=t.importRuleTag;if(void 0!==e)return e;var n=t.tags[0];return t.importRuleTag=oe(t.target,n?n.styleTag:null,t.forceServer,!0)},ue+=1,this.id=ue,this.forceServer=r,this.target=r?null:n,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return e.prototype.rehydrate=function(){if(!T||this.forceServer)return this;var e=[],t=[],n=!1,r=document.querySelectorAll("style["+O+'][data-styled-version="4.1.1"]'),i=r.length;if(!i)return this;for(var a=0;a<i;a+=1){var o=r[a];n||(n=!!o.getAttribute("data-styled-streamed"));for(var s,c=(o.getAttribute(O)||"").trim().split(se),u=c.length,l=0;l<u;l+=1)s=c[l],this.rehydratedNames[s]=!0;t.push.apply(t,L(o.textContent)),e.push(o)}var f=t.length;if(!f)return this;var p=this.makeTag(null);!function(e,t,n){for(var r=0,i=n.length;r<i;r+=1){var a=n[r],o=a.componentId,s=a.cssFromDOM,c=M("",s);e.insertRules(o,c)}for(var u=0,l=t.length;u<l;u+=1){var f=t[u];f.parentNode&&f.parentNode.removeChild(f)}}(p,e,t),this.capacity=Math.max(1,ce-f),this.tags.push(p);for(var h=0;h<f;h+=1)this.tagMap[t[h].componentId]=p;return this},e.reset=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];le=new e(void 0,t).rehydrate()},e.prototype.clone=function(){var t=new e(this.target,this.forceServer);return this.clones.push(t),t.tags=this.tags.map(function(e){for(var n=e.getIds(),r=e.clone(),i=0;i<n.length;i+=1)t.tagMap[n[i]]=r;return r}),t.rehydratedNames=v({},this.rehydratedNames),t.deferred=v({},this.deferred),t},e.prototype.sealAllTags=function(){this.capacity=1,this.tags.forEach(function(e){e.sealed=!0})},e.prototype.makeTag=function(e){var t=e?e.styleTag:null;return oe(this.target,t,this.forceServer,!1,this.getImportRuleTag)},e.prototype.getTagForId=function(e){var t=this.tagMap[e];if(void 0!==t&&!t.sealed)return t;var n=this.tags[this.tags.length-1];return this.capacity-=1,0===this.capacity&&(this.capacity=ce,n=this.makeTag(n),this.tags.push(n)),this.tagMap[e]=n},e.prototype.hasId=function(e){return void 0!==this.tagMap[e]},e.prototype.hasNameForId=function(e,t){if(void 0===this.ignoreRehydratedNames[e]&&this.rehydratedNames[t])return!0;var n=this.tagMap[e];return void 0!==n&&n.hasNameForId(e,t)},e.prototype.deferredInject=function(e,t){if(void 0===this.tagMap[e]){for(var n=this.clones,r=0;r<n.length;r+=1)n[r].deferredInject(e,t);this.getTagForId(e).insertMarker(e),this.deferred[e]=t}},e.prototype.inject=function(e,t,n){for(var r=this.clones,i=0;i<r.length;i+=1)r[i].inject(e,t,n);var a=this.getTagForId(e);if(void 0!==this.deferred[e]){var o=this.deferred[e].concat(t);a.insertRules(e,o,n),this.deferred[e]=void 0}else a.insertRules(e,t,n)},e.prototype.remove=function(e){var t=this.tagMap[e];if(void 0!==t){for(var n=this.clones,r=0;r<n.length;r+=1)n[r].remove(e);t.removeRules(e),this.ignoreRehydratedNames[e]=!0,this.deferred[e]=void 0}},e.prototype.toHTML=function(){return this.tags.map(function(e){return e.toHTML()}).join("")},e.prototype.toReactElements=function(){var e=this.id;return this.tags.map(function(t,n){var r="sc-"+e+"-"+n;return Object(c.cloneElement)(t.toElement(),{key:r})})},y(e,null,[{key:"master",get:function(){return le||(le=(new e).rehydrate())}},{key:"instance",get:function(){return e.master}}]),e}(),pe=function(){function e(t,n){var r=this;m(this,e),this.inject=function(e){e.hasNameForId(r.id,r.name)||e.inject(r.id,r.rules,r.name)},this.toString=function(){throw new I(12,String(r.name))},this.name=t,this.rules=n,this.id="sc-keyframes-"+t}return e.prototype.getName=function(){return this.name},e}(),he=/([A-Z])/g,de=/^ms-/;var ge=function(e){return void 0===e||null===e||!1===e||""===e},me=function e(t,n){var r=Object.keys(t).filter(function(e){return!ge(t[e])}).map(function(n){return x(t[n])?e(t[n],n):n.replace(he,"-$1").toLowerCase().replace(de,"-ms-")+": "+(r=n,null==(i=t[n])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||r in l.a?String(i).trim():i+"px")+";";var r,i}).join(" ");return n?n+" {\n "+r+"\n}":r};function ye(e,t,n){if(Array.isArray(e)){for(var r,i=[],a=0,o=e.length;a<o;a+=1)null!==(r=ye(e[a],t,n))&&(Array.isArray(r)?i.push.apply(i,r):i.push(r));return i}if(ge(e))return null;if(A(e))return"."+e.styledComponentId;if(E(e)){if(t){var s=!1;try{Object(f.isElement)(new e(t))&&(s=!0)}catch(e){}if(s)throw new I(13,C(e));return ye(e(t),t,n)}return e}return e instanceof pe?n?(e.inject(n),e.getName()):e:x(e)?me(e):e.toString()}function ve(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return E(e)||x(e)?ye(d(k,[e].concat(n))):ye(d(e,n))}function be(e){for(var t,n=0|e.length,r=0|n,i=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++i;switch(n){case 3:r^=(255&e.charCodeAt(i+2))<<16;case 2:r^=(255&e.charCodeAt(i+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(i)))+((1540483477*(r>>>16)&65535)<<16)}return((r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16))^r>>>15)>>>0}var _e=52,we=function(e){return String.fromCharCode(e+(e>25?39:97))};function xe(e){var t="",n=void 0;for(n=e;n>_e;n=Math.floor(n/_e))t=we(n%_e)+t;return we(n%_e)+t}function ke(e,t){for(var n=0;n<e.length;n+=1){var r=e[n];if(Array.isArray(r)&&!ke(r,t))return!1;if(E(r)&&!A(r))return!1}return!t.some(function(e){return E(e)||function(e){for(var t in e)if(E(e[t]))return!0;return!1}(e)})}var Se,Ee=!1,Ce=function(e){return xe(be(e))},Ae=function(){function e(t,n,r){m(this,e),this.rules=t,this.isStatic=!Ee&&ke(t,n),this.componentId=r,fe.master.hasId(r)||fe.master.deferredInject(r,[])}return e.prototype.generateAndInjectStyles=function(e,t){var n=this.isStatic,r=this.componentId,i=this.lastClassName;if(T&&n&&"string"==typeof i&&t.hasNameForId(r,i))return i;var a=ye(this.rules,e,t),o=Ce(this.componentId+a.join(""));return t.hasNameForId(r,o)||t.inject(this.componentId,W(a,"."+o,void 0,r),o),this.lastClassName=o,o},e.generateName=function(e){return Ce(e)},e}(),Oe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S,r=!!n&&e.theme===n.theme;return e.theme&&!r?e.theme:t||n.theme},Te=/[[\].#*$><+~=|^:(),"'`-]+/g,je=/(^-|-$)/g;function Ne(e){return e.replace(Te,"-").replace(je,"")}function Ie(e){return"string"==typeof e}var Pe={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Le={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Re=((Se={})[f.ForwardRef]={$$typeof:!0,render:!0},Se),Me=Object.defineProperty,ze=Object.getOwnPropertyNames,De=Object.getOwnPropertySymbols,Be=void 0===De?function(){return[]}:De,Fe=Object.getOwnPropertyDescriptor,Ue=Object.getPrototypeOf,qe=Object.prototype,Ve=Array.prototype;function He(e,t,n){if("string"!=typeof t){var r=Ue(t);r&&r!==qe&&He(e,r,n);for(var i=Ve.concat(ze(t),Be(t)),a=Re[e.$$typeof]||Pe,o=Re[t.$$typeof]||Pe,s=i.length,c=void 0,u=void 0;s--;)if(u=i[s],!(Le[u]||n&&n[u]||o&&o[u]||a&&a[u])&&(c=Fe(t,u)))try{Me(e,u,c)}catch(e){}return e}return e}var We=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}},$e=Object(c.createContext)(),Ge=$e.Consumer,Ke=function(e){function t(n){m(this,t);var r=w(this,e.call(this,n));return r.getContext=Object(p.a)(r.getContext.bind(r)),r.renderInner=r.renderInner.bind(r),r}return b(t,e),t.prototype.render=function(){return this.props.children?u.a.createElement($e.Consumer,null,this.renderInner):null},t.prototype.renderInner=function(e){var t=this.getContext(this.props.theme,e);return u.a.createElement($e.Provider,{value:t},u.a.Children.only(this.props.children))},t.prototype.getTheme=function(e,t){if(E(e))return e(t);if(null===e||Array.isArray(e)||"object"!==(void 0===e?"undefined":g(e)))throw new I(8);return v({},t,e)},t.prototype.getContext=function(e,t){return this.getTheme(e,t)},t}(c.Component),Ye=function(){function e(){m(this,e),this.masterSheet=fe.master,this.instance=this.masterSheet.clone(),this.sealed=!1}return e.prototype.seal=function(){if(!this.sealed){var e=this.masterSheet.clones.indexOf(this.instance);this.masterSheet.clones.splice(e,1),this.sealed=!0}},e.prototype.collectStyles=function(e){if(this.sealed)throw new I(2);return u.a.createElement(Ze,{sheet:this.instance},e)},e.prototype.getStyleTags=function(){return this.seal(),this.instance.toHTML()},e.prototype.getStyleElement=function(){return this.seal(),this.instance.toReactElements()},e.prototype.interleaveWithNodeStream=function(e){throw new I(3)},e}(),Je=Object(c.createContext)(),Xe=Je.Consumer,Ze=function(e){function t(n){m(this,t);var r=w(this,e.call(this,n));return r.getContext=Object(p.a)(r.getContext),r}return b(t,e),t.prototype.getContext=function(e,t){if(e)return e;if(t)return new fe(t);throw new I(4)},t.prototype.render=function(){var e=this.props,t=e.children,n=e.sheet,r=e.target;return u.a.createElement(Je.Provider,{value:this.getContext(n,r)},t)},t}(c.Component),Qe=(new Set,{});We(function(){return console.warn('The "innerRef" API has been removed in styled-components v4 in favor of React 16 ref forwarding, use "ref" instead like a typical component.')}),We(function(e,t){return console.warn('Functions as object-form attrs({}) keys are now deprecated and will be removed in a future version of styled-components. Switch to the new attrs(props => ({})) syntax instead for easier and more powerful composition. The attrs key in question is "'+e+'" on component "'+t+'".')}),We(function(e,t){return console.warn("It looks like you've used a non styled-component as the value for the \""+e+'" prop in an object-form attrs constructor of "'+t+"\".\nYou should use the new function-form attrs constructor which avoids this issue: attrs(props => ({ yourStuff }))\nTo continue using the deprecated object syntax, you'll need to wrap your component prop in a function to make it available inside the styled component (you'll still get the deprecation warning though.)\nFor example, { "+e+": () => InnerComponent } instead of { "+e+": InnerComponent }")});var et=function(e){function t(){m(this,t);var n=w(this,e.call(this));return n.attrs={},n.renderOuter=n.renderOuter.bind(n),n.renderInner=n.renderInner.bind(n),n}return b(t,e),t.prototype.render=function(){return u.a.createElement(Xe,null,this.renderOuter)},t.prototype.renderOuter=function(e){return this.styleSheet=e,this.props.forwardedClass.componentStyle.isStatic?this.renderInner():u.a.createElement(Ge,null,this.renderInner)},t.prototype.renderInner=function(e){var t=this.props.forwardedClass,n=t.componentStyle,r=t.defaultProps,i=t.styledComponentId,a=t.target,o=void 0;o=n.isStatic?this.generateAndInjectStyles(S,this.props,this.styleSheet):void 0!==e?this.generateAndInjectStyles(Oe(this.props,e,r),this.props,this.styleSheet):this.generateAndInjectStyles(this.props.theme||S,this.props,this.styleSheet);var s=this.props.as||this.attrs.as||a,u=Ie(s),l={},f=v({},this.attrs,this.props),p=void 0;for(p in f)"forwardedClass"!==p&&"as"!==p&&("forwardedRef"===p?l.ref=f[p]:u&&!Object(h.a)(p)||(l[p]=f[p]));return this.props.style&&this.attrs.style&&(l.style=v({},this.attrs.style,this.props.style)),l.className=[this.props.className,i,this.attrs.className,o].filter(Boolean).join(" "),Object(c.createElement)(s,l)},t.prototype.buildExecutionContext=function(e,t,n){var r=this,i=v({},t,{theme:e});return n.length?(this.attrs={},n.forEach(function(e){var n,a=e,o=!1,s=void 0,c=void 0;for(c in E(a)&&(a=a(t),o=!0),a)s=a[c],o||!E(s)||(n=s)&&n.prototype&&n.prototype.isReactComponent||A(s)||(s=s(i)),r.attrs[c]=s,i[c]=s}),i):i},t.prototype.generateAndInjectStyles=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:fe.master,r=t.forwardedClass,i=r.attrs,a=r.componentStyle;r.warnTooManyClasses;return a.isStatic&&!i.length?a.generateAndInjectStyles(S,n):a.generateAndInjectStyles(this.buildExecutionContext(e,t,i),n)},t}(c.Component);function tt(e,t,n){var r=A(e),i=!Ie(e),a=t.displayName,o=void 0===a?function(e){return Ie(e)?"styled."+e:"Styled("+C(e)+")"}(e):a,s=t.componentId,c=void 0===s?function(e,t,n){var r="string"!=typeof t?"sc":Ne(t),i=(Qe[r]||0)+1;Qe[r]=i;var a=r+"-"+e.generateName(r+i);return n?n+"-"+a:a}(Ae,t.displayName,t.parentComponentId):s,l=t.ParentComponent,f=void 0===l?et:l,p=t.attrs,h=void 0===p?k:p,d=t.displayName&&t.componentId?Ne(t.displayName)+"-"+t.componentId:t.componentId||c,g=r&&e.attrs?Array.prototype.concat(e.attrs,h).filter(Boolean):h,m=new Ae(r?e.componentStyle.rules.concat(n):n,g,d),y=u.a.forwardRef(function(e,t){return u.a.createElement(f,v({},e,{forwardedClass:y,forwardedRef:t}))});return y.attrs=g,y.componentStyle=m,y.displayName=o,y.styledComponentId=d,y.target=r?e.target:e,y.withComponent=function(e){var r=t.componentId,i=_(t,["componentId"]),a=r&&r+"-"+(Ie(e)?e:Ne(C(e)));return tt(e,v({},i,{attrs:g,componentId:a,ParentComponent:f}),n)},y.toString=function(){return"."+y.styledComponentId},i&&He(y,e,{attrs:!0,componentStyle:!0,displayName:!0,styledComponentId:!0,target:!0,withComponent:!0}),y}var nt=function(e){return function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S;if(!Object(f.isValidElementType)(n))throw new I(1,String(n));var i=function(){return t(n,r,ve.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,n,v({},r,i))},i.attrs=function(i){return e(t,n,v({},r,{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},i}(tt,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){nt[e]=nt(e)});var rt=function(){function e(t,n){m(this,e),this.rules=t,this.componentId=n,this.isStatic=ke(t,k),fe.master.hasId(n)||fe.master.deferredInject(n,[])}return e.prototype.createStyles=function(e,t){var n=W(ye(this.rules,e,t),"");t.inject(this.componentId,n)},e.prototype.removeStyles=function(e){var t=this.componentId;e.hasId(t)&&e.remove(t)},e.prototype.renderStyles=function(e,t){this.removeStyles(t),this.createStyles(e,t)},e}();function it(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=ve.apply(void 0,[e].concat(n)),a="sc-global-"+be(JSON.stringify(i)),o=new rt(i,a),s=function(e){function t(){m(this,t);var n=w(this,e.call(this)),r=n.constructor,i=r.globalStyle,a=r.styledComponentId;return T&&(window.scCGSHMRCache[a]=(window.scCGSHMRCache[a]||0)+1),n.state={globalStyle:i,styledComponentId:a},n}return b(t,e),t.prototype.componentDidMount=function(){0},t.prototype.componentWillUnmount=function(){window.scCGSHMRCache[this.state.styledComponentId]&&(window.scCGSHMRCache[this.state.styledComponentId]-=1),0===window.scCGSHMRCache[this.state.styledComponentId]&&this.state.globalStyle.removeStyles(this.styleSheet)},t.prototype.render=function(){var e=this;return u.a.createElement(Xe,null,function(t){e.styleSheet=t||fe.master;var n=e.state.globalStyle;return n.isStatic?(n.renderStyles(N,e.styleSheet),null):u.a.createElement(Ge,null,function(t){var r=e.constructor.defaultProps,i=v({},e.props);return void 0!==t&&(i.theme=Oe(e.props,t,r)),n.renderStyles(i,e.styleSheet),null})})},t}(u.a.Component);return s.defaultProps={suppressMultiMountWarning:!1},s.globalStyle=o,s.styledComponentId=a,s}T&&(window.scCGSHMRCache={});var at=function(e){return e.replace(/\s|\\n/g,"")};function ot(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=ve.apply(void 0,[e].concat(n)),a=xe(be(at(JSON.stringify(i))));return new pe(a,W(i,a,"@keyframes"))}var st=function(e){var t=u.a.forwardRef(function(t,n){return u.a.createElement(Ge,null,function(r){var i=e.defaultProps,a=Oe(t,r,i);return u.a.createElement(e,v({},t,{theme:a,ref:n}))})});return He(t,e),t.displayName="WithTheme("+C(e)+")",t},ct={StyleSheet:fe};t.default=nt}.call(this,n(25),n(573)(e))},function(e,t,n){"use strict";e.exports=function(e){return i.test("number"==typeof e?r(e):e.charAt(0))};var r=String.fromCharCode,i=/\s/},function(e,t,n){"use strict";var r=n(62);e.exports=function(e,t,n){return null!=n||"object"==typeof t&&!Array.isArray(t)||(n=t,t={}),r({},t,{type:String(e)},null!=n&&(Array.isArray(n)?{children:n}:{value:String(n)}))}},function(e,t,n){"use strict";
/*!
* repeat-string <https://github.com/jonschlinkert/repeat-string>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/var r,i="";e.exports=function(e,t){if("string"!=typeof e)throw new TypeError("expected a string");if(1===t)return e;if(2===t)return e+e;var n=e.length*t;if(r!==e||void 0===r)r=e,i="";else if(i.length>=n)return i.substr(0,n);for(;n>i.length&&t>1;)1&t&&(i+=e),t>>=1,e+=e;return i=(i+=e).substr(0,n)}},function(e,t){e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var i in r)n.call(r,i)&&(e[i]=r[i])}return e};var n=Object.prototype.hasOwnProperty},function(e,t){(t=e.exports=function(e){return e.replace(/^\s*|\s*$/g,"")}).left=function(e){return e.replace(/^\s*/,"")},t.right=function(e){return e.replace(/\s*$/,"")}},function(e,t,n){"use strict";e.exports=function(e,t){var n,a,o=t.children||[],s=o.length,c=[],u=-1;for(;++u<s;)(n=i(e,o[u],t))&&(u&&"break"===o[u-1].type&&(n.value&&(n.value=r.left(n.value)),(a=n.children&&n.children[0])&&a.value&&(a.value=r.left(a.value))),c=c.concat(n));return c};var r=n(6),i=n(109)},function(e,t,n){"use strict";e.exports=function(e,t){var n,a,o=t.children||[],s=o.length,c=[],u=-1;for(;++u<s;)(n=i(e,o[u],t))&&(u&&"break"===o[u-1].type&&(n.value&&(n.value=r.left(n.value)),(a=n.children&&n.children[0])&&a.value&&(a.value=r.left(a.value))),c=c.concat(n));return c};var r=n(6),i=n(129)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(329))},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(327))},function(e,t,n){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return(i="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=n(0),s=n(1).default,c=n(11).Link,u=n(9).Icon,l=n(15).Text,f=n(19).default,p=function(e){return e.children},h=function(e){return e.children},d=function(){};var g=s(f(["onClickOutside","enabled"])("div")).withConfig({displayName:"search__StyledFormBox"})(["width:100%;height:100%;border-radius:10px;pointer-events:all;overflow:hidden;margin:",";opacity:",";"],function(e){return e.inline?"calc(12.5vh - 30px) 0 60px 0":"0"},function(e){return e.inline&&e.enabled?"0":"1"}),m=s.form.withConfig({displayName:"search__StyledForm"})(["display:flex;flex-direction:column;position:relative;z-index:2;width:100%;max-height:",";",""],"55vh",function(e){return z(e)}),y=s.div.withConfig({displayName:"search__StyledSearchFieldBox"})(["position:relative;z-index:1;flex:0 0 auto;"]),v=s.div.withConfig({displayName:"search__StyledResults"})(["position:relative;z-index:1;flex:1 1 auto;display:flex;flex-direction:row;max-height:calc("," - "," - ",");"],"55vh","80px","30px"),b=s.div.withConfig({displayName:"search__StyledResultPreview"})(["flex:1 1 60%;overflow:scroll;-webkit-touch-scroll:auto;"]),_=s.div.withConfig({displayName:"search__StyledResultList"})(["flex:1 0 40%;overflow:scroll;-webkit-touch-scroll:auto;border-right:1px solid ",";"],function(e){return e.theme.colors.border}),w=s(l).withConfig({displayName:"search__StyledResultHeading"})(["box-sizing:border-box;position:-webkit-sticky;position:sticky;z-index:1;top:0;margin:0;font-size:14px;padding:3px 15px;border-width:1px 0;border-style:solid;border-color:",";color:",";background:",";"],function(e){return e.theme.colors.border},function(e){return e.theme.colors.color},function(e){return e.theme.colors.background}),x=(s(f(["active"])(u)).withConfig({displayName:"search__StyledIcon"})(["flex:0 0 auto;fill:",";margin-right:10px;"],function(e){return e.active?e.theme.colors.active:e.theme.colors.color}),f(["active"])(c)),k=s(x).withConfig({displayName:"search__StyledPreviewLink"})(["position:absolute;right:15px;top:50%;transform:translateY(-50%);text-decoration:none;color:",";opacity:0;&:hover{color:",";text-decoration:underline;}"],function(e){return e.theme.colors.border},function(e){return e.theme.colors.color}),S=s(x).withConfig({displayName:"search__StyledResultLink"})(["display:flex;align-items:center;width:100%;padding:10px 15px;&:link,&:visited,&:active{color:",";text-decoration:none;}"],function(e){return e.active?e.theme.colors.active:e.theme.colors.color}),E=s(l).withConfig({displayName:"search__StyledResultLinkText"})(["line-height:20px;color:",";text-decoration:none;"],function(e){return e.active?e.theme.colors.active:e.theme.colors.color}),C=s.div.withConfig({displayName:"search__StyledResult"})(["position:relative;box-sizing:border-box;display:flex;align-items:center;&:hover{mask-image:linear-gradient( to left,rgba(0,0,0,0) 75px,rgba(0,0,0,1) 125px);-webkit-mask-image:linear-gradient( to left,rgba(0,0,0,0) 75px,rgba(0,0,0,1) 125px);}&:hover{opacity:1;}"]),A=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(n=function(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a)))).getRef=n.getRef.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),n}var n,r,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Component),n=t,(r=[{key:"getRef",value:function(e){this.ref=e}},{key:"componentWillUpdate",value:function(e){e.active&&this.ref&&this.props.onScrollRequest({target:this.ref})}},{key:"render",value:function(){var e=this.props;return o.createElement(C,{ref:this.getRef,active:e.active,title:"Navigation to pattern ".concat(e.name),"data-id":e.id},o.createElement(S,{active:e.active,href:e.href,query:{"search-enabled":!1}},o.createElement(E,{active:e.active,size:"l"},e.name)),o.createElement(k,{active:e.active,query:{"search-preview":e.index}},o.createElement(l,{active:e.active,size:"s"},'"Preview"')))}}])&&a(n.prototype,r),s&&a(n,s),t}();A.defaultProps={onScrollRequest:function(){}};var O=s.input.attrs({type:"submit"}).withConfig({displayName:"search__HiddenSubmit"})(["display:none;"]),T=s(c).withConfig({displayName:"search__StyledClose"})(["font-size:0;line-height:0;"]),j=s(u).withConfig({displayName:"search__StyledCloseIcon"})(["fill:",";"],function(e){return e.theme.colors.color});var N=s.div.withConfig({displayName:"search__StyledSearchLegend"})(["display:flex;align-items:center;height:30px;position:relative;box-sizing:border-box;width:100%;padding:0 15px;border:1px solid ",";color:",";",";"],function(e){return e.theme.colors.border},function(e){return e.theme.colors.border},function(e){return z(e)}),I=s.div.withConfig({displayName:"search__StyledSearchLegendBox"})(["display:flex;overflow:scroll;-webkit-overflow-scrolling:touch;width:100%;position:relative;z-index:1;::-webkit-scrollbar{display:none;}"]),P=s(l).withConfig({displayName:"search__StyledField"})(["padding:0 10px;color:",";&:first-child{padding-left:0;}}"],function(e){return e.theme.colors.color}),L=s(P).withConfig({displayName:"search__StyledLegendName"})(["padding-right:20px;font-weight:bold;color:",";position:relative;z-index:1;"],function(e){return e.theme.colors.color}),R=s(c).withConfig({displayName:"search__StyledFieldLink"})(["white-space:nowrap;&:link,&:active,&:visited,&:hover{color:",""],function(e){return e.theme.colors.color});function M(e){return o.createElement(N,{className:e.className},e.name&&o.createElement(L,null,e.name),o.createElement(I,null,(e.items||[]).map(function(e){switch(e.type){case"field":default:return o.createElement(P,{key:e.key},o.createElement(R,{title:e.description,query:{search:"".concat(e.value)}},e.key))}})))}function z(e){return"\n\t\t&::before {\n\t\t\tcontent: '';\n\t\t\tposition: absolute;\n\t\t\tz-index: 0;\n\t\t\ttop: 0;\n\t\t\tright: 0;\n\t\t\tbottom: 0;\n\t\t\tleft: 0;\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tbackground: ".concat(e.theme.colors.background,";\n\t\t\topacity: 0.975;\n\t\t}\n\t")}e.exports.default=function(e){var t=o.Children.toArray(e.children),n=t.filter(function(e){return e.type===_}),r=t.filter(function(e){return e.type===b}),i=t.filter(function(e){return e.type===p}),a=t.filter(function(e){return e.type===h});return o.createElement(g,{enabled:e.enabled,inline:e.inline,onClickOutside:e.inline||!e.enabled?d:e.onClickOutside,onClick:e.inline&&!e.enabled?e.onFocus:d,value:e.value},o.createElement(m,{onSubmit:e.onSubmit,method:"GET"},o.createElement(y,{onClick:e.inline?e.onClick:d},i,a,o.createElement(O,null),o.createElement(M,e.legend)),o.createElement(v,null,n,r)))},e.exports.SearchResult=A,e.exports.SearchResultList=_,e.exports.SearchResultHeading=w,e.exports.SearchResultPreview=b,e.exports.SearchFieldSlot=p,e.exports.PassThroughSlot=h,e.exports.Close=function(e){var t=e.clears?"Clear":"Close",n=e.clears?{search:null}:{"search-enabled":null};return o.createElement(T,{query:n,title:"".concat(t," search ").concat(e.shortcut.toString())},o.createElement(j,{size:"m",symbol:"close"}),t)}},function(e,t,n){var r=n(84),i=n(294),a=n(293),o={regexp:'and(\\s|\\(|\\)|"|$)',escaped:!0,modifiers:"i",lexer:r.generateCutLexer("and",3),syntaxer:i.andSyntaxer,priority:4,checker:["endBlock",null]},s={regexp:'or(\\s|\\(|\\)|"|$)',escaped:!0,modifiers:"i",lexer:r.generateCutLexer("or",2),syntaxer:i.orSyntaxer,priority:5,checker:["endBlock",null]},c={regexp:"\\(",escaped:!0,lexer:r.generateCutLexer("startBlock",1),syntaxer:i.blockSyntaxer,priority:0,postFunction:a.blockPostTreatment,checker:["endBlock",null]},u={regexp:"\\)",escaped:!0,lexer:r.generateCutLexer("endBlock",1)},l={regexp:'"?.*',lexer:r.stringLexer([c,u]),syntaxer:i.stringSyntaxer,priority:0};e.exports={and:o,or:s,startBlock:c,endBlock:u,string:l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(379))},function(e,t,n){"use strict";var r={};function i(e,t,n){var a,o,s,c,u,l="";for("string"!=typeof t&&(n=t,t=i.defaultChars),void 0===n&&(n=!0),u=function(e){var t,n,i=r[e];if(i)return i;for(i=r[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?i.push(n):i.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)i[e.charCodeAt(t)]=e[t];return i}(t),a=0,o=e.length;a<o;a++)if(s=e.charCodeAt(a),n&&37===s&&a+2<o&&/^[0-9a-f]{2}$/i.test(e.slice(a+1,a+3)))l+=e.slice(a,a+3),a+=2;else if(s<128)l+=u[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&a+1<o&&(c=e.charCodeAt(a+1))>=56320&&c<=57343){l+=encodeURIComponent(e[a]+e[a+1]),a++;continue}l+="%EF%BF%BD"}else l+=encodeURIComponent(e[a]);return l}i.defaultChars=";/?:@&=+$,-_.!~*'()#",i.componentChars="-_.!~*'()",e.exports=i},function(e,t,n){"use strict";var r=n(151),i=n(59),a=n(150),o=n(12),s=n(58),c=n(57);e.exports=function(e,t){var n,o,s={};t||(t={});for(o in E)n=t[o],s[o]=null===n||void 0===n?E[o]:n;(s.position.indent||s.position.start)&&(s.indent=s.position.indent||[],s.position=s.position.start);return function(e,t){var n,o,s,E,D,B,F,V,H,W,$,G,K,Y,J,X,Z,Q,ee=t.additional,te=t.nonTerminated,ne=t.text,re=t.reference,ie=t.warning,ae=t.textContext,oe=t.referenceContext,se=t.warningContext,ce=t.position,ue=t.indent||[],le=e.length,fe=0,pe=-1,he=ce.column||1,de=ce.line||1,ge=k,me=[];J=ve(),F=ie?function(e,t){var n=ve();n.column+=t,n.offset+=t,ie.call(se,U[e],n,e)}:f,fe--,le++;for(;++fe<le;)if(E===y&&(he=ue[pe]||1),(E=be(fe))!==d)E===y&&(de++,pe++,he=0),E?(ge+=E,he++):_e();else{if((B=be(fe+1))===S||B===y||B===h||B===_||B===w||B===d||B===k||ee&&B===ee){ge+=E,he++;continue}for($=G=fe+1,Q=G,B!==g?K=C:(Q=++$,(B=be(Q))===v||B===b?(K=A,Q=++$):K=O),n=k,W=k,s=k,Y=j[K],Q--;++Q<le&&(B=be(Q),Y(B));)s+=B,K===C&&u.call(i,s)&&(n=s,W=i[s]);(o=be(Q)===m)&&(Q++,K===C&&u.call(r,s)&&(n=s,W=r[s])),Z=1+Q-G,(o||te)&&(s?K===C?(o&&!W?F(R,1):(n!==s&&(Q=$+n.length,Z=1+Q-$,o=!1),o||(V=n?N:P,t.attribute?(B=be(Q))===x?(F(V,Z),W=null):c(B)?W=null:F(V,Z):F(V,Z))),D=W):(o||F(I,Z),D=parseInt(s,T[K]),(ye=D)>=55296&&ye<=57343||ye>1114111?(F(z,Z),D=p):D in a?(F(M,Z),D=a[D]):(H=k,q(D)&&F(M,Z),D>65535&&(H+=l((D-=65536)>>>10|55296),D=56320|1023&D),D=H+l(D))):K!==C&&F(L,Z)),D?(_e(),J=ve(),fe=Q-1,he+=Q-G+1,me.push(D),(X=ve()).offset++,re&&re.call(oe,D,{start:J,end:X},e.slice(G-1,Q)),J=X):(s=e.slice(G-1,Q),ge+=s,he+=s.length,fe=Q-1)}var ye;return me.join(k);function ve(){return{line:de,column:he,offset:fe+(ce.offset||0)}}function be(t){return e.charAt(t)}function _e(){ge&&(me.push(ge),ne&&ne.call(ae,ge,{start:J,end:ve()}),ge=k)}}(e,s)};var u={}.hasOwnProperty,l=String.fromCharCode,f=Function.prototype,p="�",h="\f",d="&",g="#",m=";",y="\n",v="x",b="X",_=" ",w="<",x="=",k="",S="\t",E={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},C="named",A="hexadecimal",O="decimal",T={};T[A]=16,T[O]=10;var j={};j[C]=c,j[O]=o,j[A]=s;var N=1,I=2,P=3,L=4,R=5,M=6,z=7,D="Numeric character references",B=" must be terminated by a semicolon",F=" cannot be empty",U={};function q(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}U[N]="Named character references"+B,U[I]=D+B,U[P]="Named character references"+F,U[L]=D+F,U[R]="Named character references must be known",U[M]=D+" cannot be disallowed",U[z]=D+" cannot be outside the permissible Unicode range"},function(e,t,n){"use strict";e.exports=function(e){var t="";return function e(n){if("string"==typeof n||"number"==typeof n)t+=n;else if(Array.isArray(n))n.forEach(function(t){return e(t)});else if(n&&n.props){var r=n.props.children;Array.isArray(r)?r.forEach(function(t){return e(t)}):e(r)}}(e),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cleanProps=void 0;var r,i=n(0),a=(r=i)&&r.__esModule?r:{default:r};var o=t.cleanProps=function(e){return function(t){var n={};for(var r in t)e.includes(r)||(n[r]=t[r]);return n}};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=o(e);return function(e){return function(n){var r="string"==typeof e,i=r&&n.is||e,o=r?t(n):n;return r&&(o.is=null),a.default.createElement(i,o)}}}},function(e,t,n){"use strict";e.exports=function(e,t){var n=[],i=-1,a=e.length;t&&n.push(r("text","\n"));for(;++i<a;)i&&n.push(r("text","\n")),n.push(e[i]);t&&0!==e.length&&n.push(r("text","\n"));return n};var r=n(3)},function(e,t,n){"use strict";var r=n(119),i=n(121),a=n(118);e.exports=function(e){var t,n,o=e.space,s=e.mustUseProperty||[],c=e.attributes||{},u=e.properties,l=e.transform,f={},p={};for(t in u)n=new a(t,l(c,t),u[t],o),-1!==s.indexOf(t)&&(n.mustUseProperty=!0),f[t]=n,p[r(t)]=t,p[r(n.attribute)]=t;return new i(f,p,o)}},function(e,t,n){"use strict";e.exports=function(e,t){var n=[],i=-1,a=e.length;t&&n.push(r("text","\n"));for(;++i<a;)i&&n.push(r("text","\n")),n.push(e[i]);t&&0!==e.length&&n.push(r("text","\n"));return n};var r=n(3)},function(e,t,n){"use strict";e.exports=function(e){var t=String(e),n=t.length;for(;t.charAt(--n)===r;);return t.slice(0,n+1)};var r="\n"},function(e,t,n){"use strict";e.exports=function(e,t,n,r){"function"==typeof t&&(r=n,n=t,t=null);function i(e,a,o){var s;return a=a||(o?0:null),t&&e.type!==t||(s=n(e,a,o||null)),e.children&&!1!==s?function(e,t){var n,a=r?-1:1,o=e.length,s=(r?o:-1)+a;for(;s>-1&&s<o;){if((n=e[s])&&!1===i(n,s,t))return!1;s+=a}return!0}(e.children,e):s}i(e)}},function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var c,u=[],l=!1,f=-1;function p(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&h())}function h(){if(!l){var e=s(p);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f<t;)c&&c[f].run();f=-1,t=u.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new d(e,t)),1!==u.length||l||s(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(45),i=n(101),a=n(100);e.exports=function(e){var t,n,o=e.space,s=e.mustUseProperty||[],c=e.attributes||{},u=e.properties,l=e.transform,f={},p={};for(t in u)n=new a(t,l(c,t),u[t],o),-1!==s.indexOf(t)&&(n.mustUseProperty=!0),f[t]=n,p[r(t)]=t,p[r(n.attribute)]=t;return new i(f,p,o)}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";e.exports=function(e,t){var n=t||{};function a(t){var n=a.invalid,o=a.handlers;return t&&i.call(t,e)&&(n=i.call(o,t[e])?o[t[e]]:a.unknown),(n||r).apply(this,arguments)}return a.handlers=n.handlers||{},a.invalid=n.invalid,a.unknown=n.unknown,a};var r=Function.prototype,i={}.hasOwnProperty},function(e,t,n){"use strict";var r=0;function i(){return Math.pow(2,++r)}t.boolean=i(),t.booleanish=i(),t.overloadedBoolean=i(),t.number=i(),t.spaceSeparated=i(),t.commaSeparated=i(),t.commaOrSpaceSeparated=i()},function(e,t,n){"use strict";var r=t;function i(e){return function(t){var n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:isNaN(n.offset)?null:n.offset}}}r.start=i("start"),r.end=i("end")},function(e,t,n){"use strict";e.exports=function(e,t){var n,r,i=0,a=0;if("string"!=typeof t||1!==t.length)throw new Error("Expected character");e=String(e),n=r=e.indexOf(t);for(;-1!==r;)i++,r===n?i>a&&(a=i):i=1,n=r+1,r=e.indexOf(t,n);return a}},function(e,t,n){"use strict";e.exports=function(e){return String(e).replace(/\s+/g," ")}},function(e,t,n){"use strict";e.exports=o;var r=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],i=r.concat(["~","|"]),a=i.concat(["\n",'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);function o(e){var t=e||{};return t.commonmark?a:t.gfm?i:r}o.default=r,o.gfm=i,o.commonmark=a},function(e,t,n){"use strict";
/**
* @author Titus Wormer
* @copyright 2016 Titus Wormer
* @license MIT
* @module state-toggle
* @fileoverview Enter/exit a state.
*/e.exports=function(e,t,n){return function(){var r=n||this,i=r[e];return r[e]=!t,function(){r[e]=i}}}},function(e,t,n){"use strict";
/**
* @author Titus Wormer
* @copyright 2015 Titus Wormer
* @license MIT
* @module unherit
* @fileoverview Create a custom constructor which can be modified
* without affecting the original class.
*/var r=n(5),i=n(559);e.exports=function(e){var t,n,a;for(n in i(s,e),i(o,s),t=s.prototype)(a=t[n])&&"object"==typeof a&&(t[n]="concat"in a?a.concat():r(a));return s;function o(t){return e.apply(this,t)}function s(){return this instanceof s?e.apply(this,arguments):new o(arguments)}}},function(e,t,n){"use strict";e.exports=n(572)},function(e,t,n){"use strict";e.exports=function(e){var t=-1===e.indexOf('"')?'"':"'";return t+e+t}},function(e,t,n){"use strict";var r=n(135);e.exports=function(e,t){if(t||0===e.length||i.test(e)||r(e,"(")!==r(e,")"))return"<"+e+">";return e};var i=/\s/},function(e,t,n){"use strict";var r=n(32);e.exports=function(e){return r(e).toLowerCase()}},function(e,t,n){"use strict";e.exports=function(e,t,n,r){var i,a,o,s,c,u,l=["pedantic","commonmark"],f=l.length,p=e.length,h=-1;for(;++h<p;){for(i=e[h],a=i[1]||{},o=i[0],s=-1,u=!1;++s<f;)if(void 0!==a[c=l[s]]&&a[c]!==n.options[c]){u=!0;break}if(!u&&t[o].apply(n,r))return!0}return!1}},function(e,t,n){var r=n(0),i=n(1).default,a=n(9).Icon,o=n(11).Link,s=n(78),c=n(51),u=s().use(c);e.exports=function(e){return r.createElement(h,{"data-toggle-name":e.name,"data-trigger-name":e.name,"data-toggle-enabled":e.enabled,visible:e.visible,highlight:e.highlight},r.createElement(f,{highlight:e.highlight,enabled:e.enabled,size:e.size},r.createElement(d,{highlight:e.highlight,title:"".concat(e.enabled?"Close":"Expand"," ").concat(e.children," list"),query:(t={},n="".concat(e.name,"-enabled"),i=!e.enabled,n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t)},r.createElement(p,{enabled:e.enabled},r.createElement(a,{symbol:"arrow-right"})),u.processSync(e.children).contents)));var t,n,i};var l={S:.9,M:1},f=i.div.withConfig({displayName:"navigation-label__StyledLabel"})(["box-sizing:border-box;padding:10px 10px;display:flex;align-items:center;font-family:",";font-size:","px;color:",";background-color:",";border-style:solid;border-top-color:",";border-bottom-color:",";border-width:","px 0;width:100%;"],function(e){return e.theme.fonts.default},function(e){var t=e.size,n=e.theme;return l[t]*n.fonts.fontSize},function(e){return e.theme.colors.color},function(e){var t=e.enabled,n=e.theme;return t?n.colors.backgroundTertiary:n.colors.background},function(e){var t=e.enabled,n=e.theme;return t?n.colors.backgroundSecondary:n.colors.border},function(e){return e.enabled?"transparent":e.theme.colors.border},function(e){return e.highlight?1:0}),p=i.span.withConfig({displayName:"navigation-label__StyledLabelIcon"})(["margin-right:10px;transform-origin:center;transform:rotate(","deg);"],function(e){return e.enabled?90:0}),h=i.div.withConfig({displayName:"navigation-label__StyledLabelContainer"})(["display:",';position:sticky;top:-1px;left:0;&[data-toggle-enabled="true"]{',"{background-color:",";border-top-color:",";border-bottom-color:transparent;}",'{transform:rotate(90deg);}}&[data-toggle-enabled="false"]{',"{background-color:",";border-top-color:",";border-bottom-color:",";}","{transform:rotate(0);}}"],function(e){return e.visible?"block":"none"},f,function(e){return e.theme.colors.backgroundTertiary},function(e){return e.theme.colors.backgroundSecondary},p,f,function(e){return e.theme.colors.background},function(e){return e.theme.colors.border},function(e){return e.them