UNPKG

@fluent-windows/core

Version:

React components that inspired by Microsoft's Fluent Design System.

1 lines 996 kB
!function(e,p){"object"==typeof exports&&"undefined"!=typeof module?p(exports,require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","react-dom"],p):p((e=e||self).FluentUI={},e.React,e.ReactDOM)}(this,(function(e,p,l){"use strict";var r="default"in p?p.default:p,t="default"in l?l.default:l;function n(e){return(n="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 h(e,p,l){return p in e?Object.defineProperty(e,p,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[p]=l,e}function o(){return(o=Object.assign||function(e){for(var p=1;p<arguments.length;p++){var l=arguments[p];for(var r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r])}return e}).apply(this,arguments)}function i(e,p){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);p&&(r=r.filter((function(p){return Object.getOwnPropertyDescriptor(e,p).enumerable}))),l.push.apply(l,r)}return l}function s(e){for(var p=1;p<arguments.length;p++){var l=null!=arguments[p]?arguments[p]:{};p%2?i(l,!0).forEach((function(p){h(e,p,l[p])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):i(l).forEach((function(p){Object.defineProperty(e,p,Object.getOwnPropertyDescriptor(l,p))}))}return e}function a(e,p){if(null==e)return{};var l,r,t=function(e,p){if(null==e)return{};var l,r,t={},n=Object.keys(e);for(r=0;r<n.length;r++)l=n[r],p.indexOf(l)>=0||(t[l]=e[l]);return t}(e,p);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)l=n[r],p.indexOf(l)>=0||Object.prototype.propertyIsEnumerable.call(e,l)&&(t[l]=e[l])}return t}function d(e,p){return function(e){if(Array.isArray(e))return e}(e)||function(e,p){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var l=[],r=!0,t=!1,n=void 0;try{for(var h,o=e[Symbol.iterator]();!(r=(h=o.next()).done)&&(l.push(h.value),!p||l.length!==p);r=!0);}catch(e){t=!0,n=e}finally{try{r||null==o.return||o.return()}finally{if(t)throw n}}return l}(e,p)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function v(e){return function(e){if(Array.isArray(e)){for(var p=0,l=new Array(e.length);p<e.length;p++)l[p]=e[p];return l}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function w(e,p){return e(p={exports:{}},p.exports),p.exports}var g=w((function(e){!function(){var p={}.hasOwnProperty;function l(){for(var e=[],r=0;r<arguments.length;r++){var t=arguments[r];if(t){var n=typeof t;if("string"===n||"number"===n)e.push(t);else if(Array.isArray(t)&&t.length){var h=l.apply(null,t);h&&e.push(h)}else if("object"===n)for(var o in t)p.call(t,o)&&t[o]&&e.push(o)}}return e.join(" ")}e.exports?(l.default=l,e.exports=l):window.classNames=l}()}));function y(){return(y=Object.assign||function(e){for(var p=1;p<arguments.length;p++){var l=arguments[p];for(var r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r])}return e}).apply(this,arguments)}function z(e,p){e.prototype=Object.create(p.prototype),e.prototype.constructor=e,e.__proto__=p}function m(e,p){if(null==e)return{};var l,r,t={},n=Object.keys(e);for(r=0;r<n.length;r++)l=n[r],p.indexOf(l)>=0||(t[l]=e[l]);return t}var u=w((function(e,p){Object.defineProperty(p,"__esModule",{value:!0});var l="function"==typeof Symbol&&Symbol.for,r=l?Symbol.for("react.element"):60103,t=l?Symbol.for("react.portal"):60106,n=l?Symbol.for("react.fragment"):60107,h=l?Symbol.for("react.strict_mode"):60108,o=l?Symbol.for("react.profiler"):60114,i=l?Symbol.for("react.provider"):60109,s=l?Symbol.for("react.context"):60110,a=l?Symbol.for("react.async_mode"):60111,d=l?Symbol.for("react.concurrent_mode"):60111,v=l?Symbol.for("react.forward_ref"):60112,c=l?Symbol.for("react.suspense"):60113,w=l?Symbol.for("react.suspense_list"):60120,g=l?Symbol.for("react.memo"):60115,y=l?Symbol.for("react.lazy"):60116,z=l?Symbol.for("react.fundamental"):60117,m=l?Symbol.for("react.responder"):60118;function u(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case r:switch(e=e.type){case a:case d:case n:case o:case h:case c:return e;default:switch(e=e&&e.$$typeof){case s:case v:case i:return e;default:return p}}case y:case g:case t:return p}}}function f(e){return u(e)===d}p.typeOf=u,p.AsyncMode=a,p.ConcurrentMode=d,p.ContextConsumer=s,p.ContextProvider=i,p.Element=r,p.ForwardRef=v,p.Fragment=n,p.Lazy=y,p.Memo=g,p.Portal=t,p.Profiler=o,p.StrictMode=h,p.Suspense=c,p.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===d||e===o||e===h||e===c||e===w||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===g||e.$$typeof===i||e.$$typeof===s||e.$$typeof===v||e.$$typeof===z||e.$$typeof===m)},p.isAsyncMode=function(e){return f(e)||u(e)===a},p.isConcurrentMode=f,p.isContextConsumer=function(e){return u(e)===s},p.isContextProvider=function(e){return u(e)===i},p.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},p.isForwardRef=function(e){return u(e)===v},p.isFragment=function(e){return u(e)===n},p.isLazy=function(e){return u(e)===y},p.isMemo=function(e){return u(e)===g},p.isPortal=function(e){return u(e)===t},p.isProfiler=function(e){return u(e)===o},p.isStrictMode=function(e){return u(e)===h},p.isSuspense=function(e){return u(e)===c}}));c(u);u.typeOf,u.AsyncMode,u.ConcurrentMode,u.ContextConsumer,u.ContextProvider,u.Element,u.ForwardRef,u.Fragment,u.Lazy,u.Memo,u.Portal,u.Profiler,u.StrictMode,u.Suspense,u.isValidElementType,u.isAsyncMode,u.isConcurrentMode,u.isContextConsumer,u.isContextProvider,u.isElement,u.isForwardRef,u.isFragment,u.isLazy,u.isMemo,u.isPortal,u.isProfiler,u.isStrictMode,u.isSuspense;var f=w((function(e,p){}));c(f);f.typeOf,f.AsyncMode,f.ConcurrentMode,f.ContextConsumer,f.ContextProvider,f.Element,f.ForwardRef,f.Fragment,f.Lazy,f.Memo,f.Portal,f.Profiler,f.StrictMode,f.Suspense,f.isValidElementType,f.isAsyncMode,f.isConcurrentMode,f.isContextConsumer,f.isContextProvider,f.isElement,f.isForwardRef,f.isFragment,f.isLazy,f.isMemo,f.isPortal,f.isProfiler,f.isStrictMode,f.isSuspense;var H=w((function(e){e.exports=u})),M=(H.ForwardRef,H.isLazy,H.isMemo,H.isValidElementType,H.isElement,{childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0}),x={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},V={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},L={};function B(e){return H.isMemo(e)?V:L[e.$$typeof]||M}L[H.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var b=Object.defineProperty,A=Object.getOwnPropertyNames,C=Object.getOwnPropertySymbols,F=Object.getOwnPropertyDescriptor,S=Object.getPrototypeOf,k=Object.prototype;var R=function e(p,l,r){if("string"!=typeof l){if(k){var t=S(l);t&&t!==k&&e(p,t,r)}var n=A(l);C&&(n=n.concat(C(l)));for(var h=B(p),o=B(l),i=0;i<n.length;++i){var s=n[i];if(!(x[s]||r&&r[s]||o&&o[s]||h&&h[s])){var a=F(l,s);try{b(p,s,a)}catch(e){}}}return p}return p},E=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;function N(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var O=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var p={},l=0;l<10;l++)p["_"+String.fromCharCode(l)]=l;if("0123456789"!==Object.getOwnPropertyNames(p).map((function(e){return p[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,p){for(var l,r,t=N(e),n=1;n<arguments.length;n++){for(var h in l=Object(arguments[n]))P.call(l,h)&&(t[h]=l[h]);if(E){r=E(l);for(var o=0;o<r.length;o++)T.call(l,r[o])&&(t[r[o]]=l[r[o]])}}return t},D="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";Function.call.bind(Object.prototype.hasOwnProperty);function j(){}function W(){}W.resetWarningCache=j;var I=w((function(e){e.exports=function(){function e(e,p,l,r,t,n){if(n!==D){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}function p(){return e}e.isRequired=e;var l={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:p,element:e,elementType:e,instanceOf:p,node:e,objectOf:p,oneOf:p,oneOfType:p,shape:p,exact:p,checkPropTypes:W,resetWarningCache:j};return l.PropTypes=l,l}()})),q=I.array,U=I.bool,G=I.func,Y=I.number,X=I.object,Q=I.string,$=(I.symbol,I.any),J=I.arrayOf,Z=I.element,_=(I.elementType,I.instanceOf,I.node),K=(I.objectOf,I.oneOf),ee=I.oneOfType;I.shape,I.exact;function pe(e,p,l){return p in e?Object.defineProperty(e,p,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[p]=l,e}function le(){return(le=Object.assign||function(e){for(var p=1;p<arguments.length;p++){var l=arguments[p];for(var r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r])}return e}).apply(this,arguments)}function re(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function te(e){return function(p){var l,t;function n(){for(var l,t=arguments.length,n=new Array(t),h=0;h<t;h++)n[h]=arguments[h];return pe(re(re(l=p.call.apply(p,[this].concat(n))||this)),"cachedTheme",void 0),pe(re(re(l)),"lastOuterTheme",void 0),pe(re(re(l)),"lastTheme",void 0),pe(re(re(l)),"renderProvider",(function(p){var t=l.props.children;return r.createElement(e.Provider,{value:l.getTheme(p)},t)})),l}t=p,(l=n).prototype=Object.create(t.prototype),l.prototype.constructor=l,l.__proto__=t;var h=n.prototype;return h.getTheme=function(e){if(this.props.theme!==this.lastTheme||e!==this.lastOuterTheme||!this.cachedTheme)if(this.lastOuterTheme=e,this.lastTheme=this.props.theme,"function"==typeof this.lastTheme){var p=this.props.theme;this.cachedTheme=p(e)}else{var l=this.props.theme;this.cachedTheme=e?le({},e,l):l}return this.cachedTheme},h.render=function(){return this.props.children?r.createElement(e.Consumer,null,this.renderProvider):null},n}(r.Component)}function ne(e){return function(p){var l=r.forwardRef((function(l,t){return r.createElement(e.Consumer,null,(function(e){return r.createElement(p,le({theme:e,ref:t},l))}))}));return R(l,p),l}}function he(e){return function(){return r.useContext(e)}}c(w((function(e,p){Object.defineProperty(p,"__esModule",{value:!0}),p.default=function(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}})));var oe=p.createContext();var ie,se={context:ie=oe,withTheme:ne(ie),useTheme:he(ie),ThemeProvider:te(ie)},ae=se.withTheme,de=se.ThemeProvider,ve="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},ce="object"===("undefined"==typeof window?"undefined":ve(window))&&"object"===("undefined"==typeof document?"undefined":ve(document))&&9===document.nodeType;function we(e,p){for(var l=0;l<p.length;l++){var r=p[l];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ge(e,p,l){return p&&we(e.prototype,p),l&&we(e,l),e}function ye(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var ze={}.constructor;function me(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(me);if(e.constructor!==ze)return e;var p={};for(var l in e)p[l]=me(e[l]);return p}function ue(e,p,l){void 0===e&&(e="unnamed");var r=l.jss,t=me(p),n=r.plugins.onCreateRule(e,t,l);return n||(e[0],null)}var fe=function(e,p){for(var l="",r=0;r<e.length&&"!important"!==e[r];r++)l&&(l+=p),l+=e[r];return l};function He(e,p){if(void 0===p&&(p=!1),!Array.isArray(e))return e;var l="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)l&&(l+=", "),l+=fe(e[r]," ");else l=fe(e,", ");return p||"!important"!==e[e.length-1]||(l+=" !important"),l}function Me(e,p){for(var l="",r=0;r<p;r++)l+=" ";return l+e}function xe(e,p,l){void 0===l&&(l={});var r="";if(!p)return r;var t=l.indent,n=void 0===t?0:t,h=p.fallbacks;if(e&&n++,h)if(Array.isArray(h))for(var o=0;o<h.length;o++){var i=h[o];for(var s in i){var a=i[s];null!=a&&(r&&(r+="\n"),r+=""+Me(s+": "+He(a)+";",n))}}else for(var d in h){var v=h[d];null!=v&&(r&&(r+="\n"),r+=""+Me(d+": "+He(v)+";",n))}for(var c in p){var w=p[c];null!=w&&"fallbacks"!==c&&(r&&(r+="\n"),r+=""+Me(c+": "+He(w)+";",n))}return(r||l.allowEmpty)&&e?(r&&(r="\n"+r+"\n"),Me(e+" {"+r,--n)+Me("}",n)):r}var Ve=/([[\].#*$><+~=|^:(),"'`\s])/g,Le="undefined"!=typeof CSS&&CSS.escape,Be=function(e){return Le?Le(e):e.replace(Ve,"\\$1")},be=function(){function e(e,p,l){this.type="style",this.key=void 0,this.isProcessed=!1,this.style=void 0,this.renderer=void 0,this.renderable=void 0,this.options=void 0;var r=l.sheet,t=l.Renderer;this.key=e,this.options=l,this.style=p,r?this.renderer=r.renderer:t&&(this.renderer=new t)}return e.prototype.prop=function(e,p,l){if(void 0===p)return this.style[e];var r=!!l&&l.force;if(!r&&this.style[e]===p)return this;var t=p;l&&!1===l.process||(t=this.options.jss.plugins.onChangeValue(p,e,this));var n=null==t||!1===t,h=e in this.style;if(n&&!h&&!r)return this;var o=n&&h;if(o?delete this.style[e]:this.style[e]=t,this.renderable&&this.renderer)return o?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,t),this;var i=this.options.sheet;return i&&i.attached,this},e}(),Ae=function(e){function p(p,l,r){var t;(t=e.call(this,p,l,r)||this).selectorText=void 0,t.id=void 0,t.renderable=void 0;var n=r.selector,h=r.scoped,o=r.sheet,i=r.generateId;return n?t.selectorText=n:!1!==h&&(t.id=i(ye(ye(t)),o),t.selectorText="."+Be(t.id)),t}z(p,e);var l=p.prototype;return l.applyTo=function(e){var p=this.renderer;if(p){var l=this.toJSON();for(var r in l)p.setProperty(e,r,l[r])}return this},l.toJSON=function(){var e={};for(var p in this.style){var l=this.style[p];"object"!=typeof l?e[p]=l:Array.isArray(l)&&(e[p]=He(l))}return e},l.toString=function(e){var p=this.options.sheet,l=!!p&&p.options.link?y({},e,{allowEmpty:!0}):e;return xe(this.selectorText,this.style,l)},ge(p,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var p=this.renderer,l=this.renderable;if(l&&p)p.setSelector(l,e)||p.replaceRule(l,this)}},get:function(){return this.selectorText}}]),p}(be),Ce={onCreateRule:function(e,p,l){return"@"===e[0]||l.parent&&"keyframes"===l.parent.type?null:new Ae(e,p,l)}},Fe={indent:1,children:!0},Se=/@([\w-]+)/,ke=function(){function e(e,p,l){this.type="conditional",this.at=void 0,this.key=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e;var r=e.match(Se);for(var t in this.at=r?r[1]:"unknown",this.options=l,this.rules=new ep(y({},l,{parent:this})),p)this.rules.add(t,p[t]);this.rules.process()}var p=e.prototype;return p.getRule=function(e){return this.rules.get(e)},p.indexOf=function(e){return this.rules.indexOf(e)},p.addRule=function(e,p,l){var r=this.rules.add(e,p,l);return r?(this.options.jss.plugins.onProcessRule(r),r):null},p.toString=function(e){if(void 0===e&&(e=Fe),null==e.indent&&(e.indent=Fe.indent),null==e.children&&(e.children=Fe.children),!1===e.children)return this.key+" {}";var p=this.rules.toString(e);return p?this.key+" {\n"+p+"\n}":""},e}(),Re=/@media|@supports\s+/,Ee={onCreateRule:function(e,p,l){return Re.test(e)?new ke(e,p,l):null}},Pe={indent:1,children:!0},Te=/@keyframes\s+([\w-]+)/,Ne=function(){function e(e,p,l){this.type="keyframes",this.at="@keyframes",this.key=void 0,this.name=void 0,this.id=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0;var r=e.match(Te);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=l;var t=l.scoped,n=l.sheet,h=l.generateId;for(var o in this.id=!1===t?this.name:Be(h(this,n)),this.rules=new ep(y({},l,{parent:this})),p)this.rules.add(o,p[o],y({},l,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){if(void 0===e&&(e=Pe),null==e.indent&&(e.indent=Pe.indent),null==e.children&&(e.children=Pe.children),!1===e.children)return this.at+" "+this.id+" {}";var p=this.rules.toString(e);return p&&(p="\n"+p+"\n"),this.at+" "+this.id+" {"+p+"}"},e}(),Oe=/@keyframes\s+/,De=/\$([\w-]+)/g,je=function(e,p){return"string"==typeof e?e.replace(De,(function(e,l){return l in p?p[l]:e})):e},We=function(e,p,l){var r=e[p],t=je(r,l);t!==r&&(e[p]=t)},Ie={onCreateRule:function(e,p,l){return"string"==typeof e&&Oe.test(e)?new Ne(e,p,l):null},onProcessStyle:function(e,p,l){return"style"===p.type&&l?("animation-name"in e&&We(e,"animation-name",l.keyframes),"animation"in e&&We(e,"animation",l.keyframes),e):e},onChangeValue:function(e,p,l){var r=l.options.sheet;if(!r)return e;switch(p){case"animation":case"animation-name":return je(e,r.keyframes);default:return e}}},qe=function(e){function p(){for(var p,l=arguments.length,r=new Array(l),t=0;t<l;t++)r[t]=arguments[t];return(p=e.call.apply(e,[this].concat(r))||this).renderable=void 0,p}return z(p,e),p.prototype.toString=function(e){var p=this.options.sheet,l=!!p&&p.options.link?y({},e,{allowEmpty:!0}):e;return xe(this.key,this.style,l)},p}(be),Ue={onCreateRule:function(e,p,l){return l.parent&&"keyframes"===l.parent.type?new qe(e,p,l):null}},Ge=function(){function e(e,p,l){this.type="font-face",this.at="@font-face",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=p,this.options=l}return e.prototype.toString=function(e){if(Array.isArray(this.style)){for(var p="",l=0;l<this.style.length;l++)p+=xe(this.key,this.style[l]),this.style[l+1]&&(p+="\n");return p}return xe(this.key,this.style,e)},e}(),Ye={onCreateRule:function(e,p,l){return"@font-face"===e?new Ge(e,p,l):null}},Xe=function(){function e(e,p,l){this.type="viewport",this.at="@viewport",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=p,this.options=l}return e.prototype.toString=function(e){return xe(this.key,this.style,e)},e}(),Qe={onCreateRule:function(e,p,l){return"@viewport"===e||"@-ms-viewport"===e?new Xe(e,p,l):null}},$e=function(){function e(e,p,l){this.type="simple",this.key=void 0,this.value=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.value=p,this.options=l}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var p="",l=0;l<this.value.length;l++)p+=this.key+" "+this.value[l]+";",this.value[l+1]&&(p+="\n");return p}return this.key+" "+this.value+";"},e}(),Je={"@charset":!0,"@import":!0,"@namespace":!0},Ze=[Ce,Ee,Ie,Ue,Ye,Qe,{onCreateRule:function(e,p,l){return e in Je?new $e(e,p,l):null}}],_e={process:!0},Ke={force:!0,process:!0},ep=function(){function e(e){this.map={},this.raw={},this.index=[],this.options=void 0,this.classes=void 0,this.keyframes=void 0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var p=e.prototype;return p.add=function(e,p,l){var r=this.options,t=r.parent,n=r.sheet,h=r.jss,o=r.Renderer,i=r.generateId,s=r.scoped,a=y({classes:this.classes,parent:t,sheet:n,jss:h,Renderer:o,generateId:i,scoped:s},l);this.raw[e]=p,e in this.classes&&(a.selector="."+Be(this.classes[e]));var d=ue(e,p,a);if(!d)return null;this.register(d);var v=void 0===a.index?this.index.length:a.index;return this.index.splice(v,0,d),d},p.get=function(e){return this.map[e]},p.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.indexOf(e),1)},p.indexOf=function(e){return this.index.indexOf(e)},p.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},p.register=function(e){this.map[e.key]=e,e instanceof Ae?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Ne&&this.keyframes&&(this.keyframes[e.name]=e.id)},p.unregister=function(e){delete this.map[e.key],e instanceof Ae?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Ne&&delete this.keyframes[e.name]},p.update=function(){var e,p,l;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],p=arguments.length<=1?void 0:arguments[1],l=arguments.length<=2?void 0:arguments[2]):(p=arguments.length<=0?void 0:arguments[0],l=arguments.length<=1?void 0:arguments[1],e=null),e)this.onUpdate(p,this.get(e),l);else for(var r=0;r<this.index.length;r++)this.onUpdate(p,this.index[r],l)},p.onUpdate=function(p,l,r){void 0===r&&(r=_e);var t=this.options,n=t.jss.plugins,h=t.sheet;if(l.rules instanceof e)l.rules.update(p,r);else{var o=l,i=o.style;if(n.onUpdate(p,l,h,r),r.process&&i&&i!==o.style){for(var s in n.onProcessStyle(o.style,o,h),o.style){var a=o.style[s];a!==i[s]&&o.prop(s,a,Ke)}for(var d in i){var v=o.style[d],c=i[d];null==v&&v!==c&&o.prop(d,null,Ke)}}}},p.toString=function(e){for(var p="",l=this.options.sheet,r=!!l&&l.options.link,t=0;t<this.index.length;t++){var n=this.index[t].toString(e);(n||r)&&(p&&(p+="\n"),p+=n)}return p},e}(),pp=function(){function e(e,p){for(var l in this.options=void 0,this.deployed=void 0,this.attached=void 0,this.rules=void 0,this.renderer=void 0,this.classes=void 0,this.keyframes=void 0,this.queue=void 0,this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=y({},p,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),p.Renderer&&(this.renderer=new p.Renderer(this)),this.rules=new ep(this.options),e)this.rules.add(l,e[l]);this.rules.process()}var p=e.prototype;return p.attach=function(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},p.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},p.addRule=function(e,p,l){var r=this.queue;this.attached&&!r&&(this.queue=[]);var t=this.rules.add(e,p,l);return t?(this.options.jss.plugins.onProcessRule(t),this.attached?this.deployed?(r?r.push(t):(this.insertRule(t),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),t):t:(this.deployed=!1,t)):null},p.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},p.addRules=function(e,p){var l=[];for(var r in e){var t=this.addRule(r,e[r],p);t&&l.push(t)}return l},p.getRule=function(e){return this.rules.get(e)},p.deleteRule=function(e){var p=this.rules.get(e);return!!p&&(this.rules.remove(p),!(this.attached&&p.renderable&&this.renderer)||this.renderer.deleteRule(p.renderable))},p.indexOf=function(e){return this.rules.indexOf(e)},p.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},p.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},p.toString=function(e){return this.rules.toString(e)},e}(),lp=function(){function e(){this.plugins={internal:[],external:[]},this.registry=void 0}var p=e.prototype;return p.onCreateRule=function(e,p,l){for(var r=0;r<this.registry.onCreateRule.length;r++){var t=this.registry.onCreateRule[r](e,p,l);if(t)return t}return null},p.onProcessRule=function(e){if(!e.isProcessed){for(var p=e.options.sheet,l=0;l<this.registry.onProcessRule.length;l++)this.registry.onProcessRule[l](e,p);e.style&&this.onProcessStyle(e.style,e,p),e.isProcessed=!0}},p.onProcessStyle=function(e,p,l){for(var r=0;r<this.registry.onProcessStyle.length;r++)p.style=this.registry.onProcessStyle[r](p.style,p,l)},p.onProcessSheet=function(e){for(var p=0;p<this.registry.onProcessSheet.length;p++)this.registry.onProcessSheet[p](e)},p.onUpdate=function(e,p,l,r){for(var t=0;t<this.registry.onUpdate.length;t++)this.registry.onUpdate[t](e,p,l,r)},p.onChangeValue=function(e,p,l){for(var r=e,t=0;t<this.registry.onChangeValue.length;t++)r=this.registry.onChangeValue[t](r,p,l);return r},p.use=function(e,p){void 0===p&&(p={queue:"external"});var l=this.plugins[p.queue];-1===l.indexOf(e)&&(l.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,p){for(var l in p)l in e&&e[l].push(p[l]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),rp=function(){function e(){this.registry=[]}var p=e.prototype;return p.add=function(e){var p=this.registry,l=e.options.index;if(-1===p.indexOf(e))if(0===p.length||l>=this.index)p.push(e);else for(var r=0;r<p.length;r++)if(p[r].options.index>l)return void p.splice(r,0,e)},p.reset=function(){this.registry=[]},p.remove=function(e){var p=this.registry.indexOf(e);this.registry.splice(p,1)},p.toString=function(e){for(var p=void 0===e?{}:e,l=p.attached,r=m(p,["attached"]),t="",n=0;n<this.registry.length;n++){var h=this.registry[n];null!=l&&h.attached!==l||(t&&(t+="\n"),t+=h.toString(r))}return t},ge(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),tp=new rp,np="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),hp="2f1acc6c3a606b082e5eef5e54414ffb";null==np[hp]&&(np[hp]=0);var op=np[hp]++,ip=function(e){void 0===e&&(e={});var p=0;return function(l,r){p+=1;var t="",n="";return r&&(r.options.classNamePrefix&&(n=r.options.classNamePrefix),null!=r.options.jss.id&&(t=String(r.options.jss.id))),e.minify?""+(n||"c")+op+t+p:n+l.key+"-"+op+(t?"-"+t:"")+"-"+p}},sp=function(e){var p;return function(){return p||(p=e()),p}};function ap(e,p){try{return e.attributeStyleMap?e.attributeStyleMap.get(p):e.style.getPropertyValue(p)}catch(e){return""}}function dp(e,p,l){try{var r=l;if(Array.isArray(l)&&(r=He(l,!0),"!important"===l[l.length-1]))return e.style.setProperty(p,r,"important"),!0;e.attributeStyleMap?e.attributeStyleMap.set(p,r):e.style.setProperty(p,r)}catch(e){return!1}return!0}function vp(e,p){try{e.attributeStyleMap?e.attributeStyleMap.delete(p):e.style.removeProperty(p)}catch(e){}}function cp(e,p){return e.selectorText=p,e.selectorText===p}var wp=sp((function(){return document.querySelector("head")}));function gp(e){var p=tp.registry;if(p.length>0){var l=function(e,p){for(var l=0;l<e.length;l++){var r=e[l];if(r.attached&&r.options.index>p.index&&r.options.insertionPoint===p.insertionPoint)return r}return null}(p,e);if(l&&l.renderer)return{parent:l.renderer.element.parentNode,node:l.renderer.element};if((l=function(e,p){for(var l=e.length-1;l>=0;l--){var r=e[l];if(r.attached&&r.options.insertionPoint===p.insertionPoint)return r}return null}(p,e))&&l.renderer)return{parent:l.renderer.element.parentNode,node:l.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var t=function(e){for(var p=wp(),l=0;l<p.childNodes.length;l++){var r=p.childNodes[l];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(t)return{parent:t.parentNode,node:t.nextSibling}}return!1}var yp=sp((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),zp=function(e,p,l){var r=e.cssRules.length;(void 0===l||l>r)&&(l=r);try{if("insertRule"in e)e.insertRule(p,l);else if("appendRule"in e){e.appendRule(p)}}catch(e){return!1}return e.cssRules[l]},mp=function(){var e=document.createElement("style");return e.textContent="\n",e},up=function(){function e(e){this.getPropertyValue=ap,this.setProperty=dp,this.removeProperty=vp,this.setSelector=cp,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,e&&tp.add(e),this.sheet=e;var p=this.sheet?this.sheet.options:{},l=p.media,r=p.meta,t=p.element;this.element=t||mp(),this.element.setAttribute("data-jss",""),l&&this.element.setAttribute("media",l),r&&this.element.setAttribute("data-meta",r);var n=yp();n&&this.element.setAttribute("nonce",n)}var p=e.prototype;return p.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,p){var l=p.insertionPoint,r=gp(p);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(l&&"number"==typeof l.nodeType){var t=l,n=t.parentNode;n&&n.insertBefore(e,t.nextSibling)}else wp().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},p.detach=function(){var e=this.element.parentNode;e&&e.removeChild(this.element)},p.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},p.insertRules=function(e,p){for(var l=0;l<e.index.length;l++)this.insertRule(e.index[l],l,p)},p.insertRule=function(e,p,l){if(void 0===l&&(l=this.element.sheet),e.rules){var r=e,t=l;return("conditional"!==e.type&&"keyframes"!==e.type||!1!==(t=zp(l,r.toString({children:!1}),p)))&&(this.insertRules(r.rules,t),t)}if(e.renderable&&e.renderable.parentStyleSheet===this.element.sheet)return e.renderable;var n=e.toString();if(!n)return!1;var h=zp(l,n,p);return!1!==h&&(this.hasInsertedRules=!0,e.renderable=h,h)},p.deleteRule=function(e){var p=this.element.sheet,l=this.indexOf(e);return-1!==l&&(p.deleteRule(l),!0)},p.indexOf=function(e){for(var p=this.element.sheet.cssRules,l=0;l<p.length;l++)if(e===p[l])return l;return-1},p.replaceRule=function(e,p){var l=this.indexOf(e);return-1!==l&&(this.element.sheet.deleteRule(l),this.insertRule(p,l))},p.getRules=function(){return this.element.sheet.cssRules},e}(),fp=0,Hp=function(){function e(e){this.id=fp++,this.version="10.0.0",this.plugins=new lp,this.options={id:{minify:!1},createGenerateId:ip,Renderer:ce?up:null,plugins:[]},this.generateId=ip({minify:!1});for(var p=0;p<Ze.length;p++)this.plugins.use(Ze[p],{queue:"internal"});this.setup(e)}var p=e.prototype;return p.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=y({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},p.createStyleSheet=function(e,p){void 0===p&&(p={});var l=p.index;"number"!=typeof l&&(l=0===tp.index?0:tp.index+1);var r=new pp(e,y({},p,{jss:this,generateId:p.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:l}));return this.plugins.onProcessSheet(r),r},p.removeStyleSheet=function(e){return e.detach(),tp.remove(e),this},p.createRule=function(e,p,l){if(void 0===p&&(p={}),void 0===l&&(l={}),"object"==typeof e)return this.createRule(void 0,e,p);var r=y({},l,{jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var t=ue(e,p,r);return t&&this.plugins.onProcessRule(t),t},p.use=function(){for(var e=this,p=arguments.length,l=new Array(p),r=0;r<p;r++)l[r]=arguments[r];return l.forEach((function(p){e.plugins.use(p)})),this},e}();var Mp=function(){function e(){this.length=0,this.sheets=new WeakMap}var p=e.prototype;return p.get=function(e){var p=this.sheets.get(e);return p&&p.sheet},p.add=function(e,p){this.sheets.has(e)||(this.length++,this.sheets.set(e,{sheet:p,refs:0}))},p.manage=function(e){var p=this.sheets.get(e);if(p)return 0===p.refs&&p.sheet.attach(),p.refs++,p.sheet},p.unmanage=function(e){var p=this.sheets.get(e);p&&p.refs>0&&(p.refs--,0===p.refs&&p.sheet.detach())},ge(e,[{key:"size",get:function(){return this.length}}]),e}(),xp="undefined"!=typeof CSS&&CSS&&"number"in CSS,Vp=function(e){return new Hp(e)},Lp=Vp(),Bp=Date.now(),bp="fnValues"+Bp,Ap="fnStyle"+ ++Bp;var Cp=function(e){var p,l=e.Symbol;return"function"==typeof l?l.observable?p=l.observable:(p=l("observable"),l.observable=p):p="@@observable",p}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof module?module:Function("return this")()),Fp=function(e){return e&&e[Cp]&&e===e[Cp]()};var Sp=/;\n/,kp=function(e){"string"==typeof e.style&&(e.style=function(e){for(var p={},l=e.split(Sp),r=0;r<l.length;r++){var t=(l[r]||"").trim();if(t){var n=t.indexOf(":");if(-1!==n){var h=t.substr(0,n).trim(),o=t.substr(n+1).trim();p[h]=o}}}return p}(e.style))};var Rp="@global",Ep="@global ",Pp=function(){function e(e,p,l){for(var r in this.type="global",this.at=Rp,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=e,this.options=l,this.rules=new ep(y({},l,{parent:this})),p)this.rules.add(r,p[r]);this.rules.process()}var p=e.prototype;return p.getRule=function(e){return this.rules.get(e)},p.addRule=function(e,p,l){var r=this.rules.add(e,p,l);return this.options.jss.plugins.onProcessRule(r),r},p.indexOf=function(e){return this.rules.indexOf(e)},p.toString=function(){return this.rules.toString()},e}(),Tp=function(){function e(e,p,l){this.type="global",this.at=Rp,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=e,this.options=l;var r=e.substr(Ep.length);this.rule=l.jss.createRule(r,p,y({},l,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Np=/\s*,\s*/g;function Op(e,p){for(var l=e.split(Np),r="",t=0;t<l.length;t++)r+=p+" "+l[t].trim(),l[t+1]&&(r+=", ");return r}function Dp(){return{onCreateRule:function(e,p,l){if(!e)return null;if(e===Rp)return new Pp(e,p,l);if("@"===e[0]&&e.substr(0,Ep.length)===Ep)return new Tp(e,p,l);var r=l.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(l.scoped=!1),!1===l.scoped&&(l.selector=e),null},onProcessRule:function(e){"style"===e.type&&(function(e){var p=e.options,l=e.style,r=l?l[Rp]:null;if(r){for(var t in r)p.sheet.addRule(t,r[t],y({},p,{selector:Op(t,e.selector)}));delete l[Rp]}}(e),function(e){var p=e.options,l=e.style;for(var r in l)if("@"===r[0]&&r.substr(0,Rp.length)===Rp){var t=Op(r.substr(Rp.length),e.selector);p.sheet.addRule(t,l[r],y({},p,{selector:t})),delete l[r]}}(e))}}}var jp=function(e){return e&&"object"==typeof e&&!Array.isArray(e)},Wp="extendCurrValue"+Date.now();function Ip(e,p,l,r){return void 0===r&&(r={}),function(e,p,l,r){if("string"!==typeof e.extend)if(Array.isArray(e.extend))for(var t=0;t<e.extend.length;t++)Ip(e.extend[t],p,l,r);else for(var n in e.extend)"extend"!==n?jp(e.extend[n])?(n in r||(r[n]={}),Ip(e.extend[n],p,l,r[n])):r[n]=e.extend[n]:Ip(e.extend.extend,p,l,r);else{if(!l)return;var h=l.getRule(e.extend);if(!h)return;if(h===p)return;var o=h.options.parent;o&&Ip(o.rules.raw[e.extend],p,l,r)}}(e,p,l,r),function(e,p,l,r){for(var t in e)"extend"!==t&&(jp(r[t])&&jp(e[t])?Ip(e[t],p,l,r[t]):jp(e[t])?r[t]=Ip(e[t],p,l):r[t]=e[t])}(e,p,l,r),r}var qp=/\s*,\s*/g,Up=/&/g,Gp=/\$([\w-]+)/g;function Yp(){function e(e,p){return function(l,r){var t=e.getRule(r)||p&&p.getRule(r);return t?(t=t).selector:r}}function p(e,p){for(var l=p.split(qp),r=e.split(qp),t="",n=0;n<l.length;n++)for(var h=l[n],o=0;o<r.length;o++){var i=r[o];t&&(t+=", "),t+=-1!==i.indexOf("&")?i.replace(Up,h):h+" "+i}return t}function l(e,p,l){if(l)return y({},l,{index:l.index+1});var r=e.options.nestingLevel;return r=void 0===r?1:r+1,y({},e.options,{nestingLevel:r,index:p.indexOf(e)+1})}return{onProcessStyle:function(r,t,n){if("style"!==t.type)return r;var h,o,i=t,s=i.options.parent;for(var a in r){var d=-1!==a.indexOf("&"),v="@"===a[0];if(d||v){if(h=l(i,s,h),d){var c=p(a,i.selector);o||(o=e(s,n)),c=c.replace(Gp,o),s.addRule(c,r[a],y({},h,{selector:c}))}else v&&s.addRule(a,{},h).addRule(i.key,r[a],{selector:i.selector});delete r[a]}}return r}}}function Xp(){return{onProcessStyle:function(e,p){return"composes"in e?(function e(p,l){if(!l)return!0;if(Array.isArray(l)){for(var r=0;r<l.length;r++){if(!e(p,l[r]))return!1}return!0}if(l.indexOf(" ")>-1)return e(p,l.split(" "));var t=p.options.parent;if("$"===l[0]){var n=t.getRule(l.substr(1));return!!n&&(n!==p&&(t.classes[p.key]+=" "+t.classes[n.key],!0))}return t.classes[p.key]+=" "+l,!0}(p,e.composes),delete e.composes,e):e}}}var Qp=/[A-Z]/g,$p=/^ms-/,Jp={};function Zp(e){return"-"+e.toLowerCase()}function _p(e){if(Jp.hasOwnProperty(e))return Jp[e];var p=e.replace(Qp,Zp);return Jp[e]=$p.test(p)?"-"+p:p}function Kp(e){var p={};for(var l in e){p[0===l.indexOf("--")?l:_p(l)]=e[l]}return e.fallbacks&&(Array.isArray(e.fallbacks)?p.fallbacks=e.fallbacks.map(Kp):p.fallbacks=Kp(e.fallbacks)),p}var el=xp&&CSS?CSS.px:"px",pl=xp&&CSS?CSS.ms:"ms",ll=xp&&CSS?CSS.percent:"%";function rl(e){var p=/(-[a-z])/g,l=function(e){return e[1].toUpperCase()},r={};for(var t in e)r[t]=e[t],r[t.replace(p,l)]=e[t];return r}var tl=rl({"animation-delay":pl,"animation-duration":pl,"background-position":el,"background-position-x":el,"background-position-y":el,"background-size":el,border:el,"border-bottom":el,"border-bottom-left-radius":el,"border-bottom-right-radius":el,"border-bottom-width":el,"border-left":el,"border-left-width":el,"border-radius":el,"border-right":el,"border-right-width":el,"border-top":el,"border-top-left-radius":el,"border-top-right-radius":el,"border-top-width":el,"border-width":el,margin:el,"margin-bottom":el,"margin-left":el,"margin-right":el,"margin-top":el,padding:el,"padding-bottom":el,"padding-left":el,"padding-right":el,"padding-top":el,"mask-position-x":el,"mask-position-y":el,"mask-size":el,height:el,width:el,"min-height":el,"max-height":el,"min-width":el,"max-width":el,bottom:el,left:el,top:el,right:el,"box-shadow":el,"text-shadow":el,"column-gap":el,"column-rule":el,"column-rule-width":el,"column-width":el,"font-size":el,"font-size-delta":el,"letter-spacing":el,"text-indent":el,"text-stroke":el,"text-stroke-width":el,"word-spacing":el,motion:el,"motion-offset":el,outline:el,"outline-offset":el,"outline-width":el,perspective:el,"perspective-origin-x":ll,"perspective-origin-y":ll,"transform-origin":ll,"transform-origin-x":ll,"transform-origin-y":ll,"transform-origin-z":ll,"transition-delay":pl,"transition-duration":pl,"vertical-align":el,"flex-basis":el,"shape-margin":el,size:el,grid:el,"grid-gap":el,"grid-row-gap":el,"grid-column-gap":el,"grid-template-rows":el,"grid-template-columns":el,"grid-auto-rows":el,"grid-auto-columns":el,"box-shadow-x":el,"box-shadow-y":el,"box-shadow-blur":el,"box-shadow-spread":el,"font-line-height":el,"text-shadow-x":el,"text-shadow-y":el,"text-shadow-blur":el});function nl(e,p,l){if(!p)return p;if(Array.isArray(p))for(var r=0;r<p.length;r++)p[r]=nl(e,p[r],l);else if("object"==typeof p)if("fallbacks"===e)for(var t in p)p[t]=nl(t,p[t],l);else for(var n in p)p[n]=nl(e+"-"+n,p[n],l);else if("number"==typeof p)return l[e]?""+p+l[e]:tl[e]?"function"==typeof tl[e]?tl[e](p).toString():""+p+tl[e]:p.toString();return p}function hl(e){void 0===e&&(e={});var p=rl(e);return{onProcessStyle:function(e,l){if("style"!==l.type)return e;for(var r in e)e[r]=nl(r,e[r],p);return e},onChangeValue:function(e,l){return nl(l,e,p)}}}var ol={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},il={position:!0,size:!0},sl={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},al={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},"border-bottom":{width:"border-bottom-width",style:"border-bottom-style",color:"border-bottom-color"},"border-top":{width:"border-top-width",style:"border-top-style",color:"border-top-color"},"border-left":{width:"border-left-width",style:"border-left-style",color:"border-left-color"},"border-right":{width:"border-right-width",style:"border-right-style",color:"border-right-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}};function dl(e,p,l,r){return null==l[p]?e:0===e.length?[]:Array.isArray(e[0])?dl(e[0],p,l,r):"object"==typeof e[0]?function(e,p,l){return e.map((function(e){return vl(e,p,l,!1,!0)}))}(e,p,r):[e]}function vl(e,p,l,r,t){if(!sl[p]&&!al[p])return[];var n=[];if(al[p]&&(e=function(e,p,l,r){for(var t in l){var n=l[t];if(void 0!==e[t]&&(r||!p.prop(n))){var h,o=cl((h={},h[n]=e[t],h),p)[n];r?p.style.fallbacks[n]=o:p.style[n]=o}delete e[t]}return e}(e,l,al[p],r)),Object.keys(e).length)for(var h in sl[p])e[h]?Array.isArray(e[h])?n.push(null===il[h]?e[h]:e[h].join(" ")):n.push(e[h]):null!=sl[p][h]&&n.push(sl[p][h]);return!n.length||t?n:[n]}function cl(e,p,l){for(var r in e){var t=e[r];if(Array.isArray(t)){if(!Array.isArray(t[0])){if("fallbacks"===r){for(var n=0;n<e.fallbacks.length;n++)e.fallbacks[n]=cl(e.fallbacks[n],p,!0);continue}e[r]=dl(t,r,ol,p),e[r].length||delete e[r]}}else if("object"==typeof t){if("fallbacks"===r){e.fallbacks=cl(e.fallbacks,p,!0);continue}e[r]=vl(t,r,p,l),e[r].length||delete e[r]}else""===e[r]&&delete e[r]}return e}function wl(e){return function(e){if(Array.isArray(e)){for(var p=0,l=new Array(e.length);p<e.length;p++)l[p]=e[p];return l}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var gl="",yl="",zl="",ml="",ul=ce&&"ontouchstart"in document.documentElement;if(ce){var fl={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Hl=document.createElement("p").style;for(var Ml in fl)if(Ml+"Transform"in Hl){gl=Ml,yl=fl[Ml];break}"Webkit"===gl&&"msHyphens"in Hl&&(gl="ms",yl=fl.ms,ml="edge"),"Webkit"===gl&&"-apple-trailing-word"in Hl&&(zl="apple")}var xl={js:gl,css:yl,vendor:zl,browser:ml,isTouch:ul};var Vl={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===xl.js?"-webkit-"+e:xl.css+e)}},Ll=/[-\s]+(.)?/g;function Bl(e,p){return p?p.toUpperCase():""}function bl(e){return e.replace(Ll,Bl)}function Al(e){return bl("-"+e)}var Cl,Fl={supportedProperty:function(e,p){return!!/^break-/.test(e)&&("Webkit"===xl.js?"WebkitColumn"+Al(e)in p&&xl.css+"column-"+e:"Moz"===xl.js&&("page"+Al(e)in p&&"page-"+e))}},Sl={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===xl.js?xl.css+"print-"+e:e)}},kl={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Rl=Object.keys(kl),El=function(e){return xl.css+e},Pl={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Tl=[Vl,Sl,{noPrefill:["mask"],supportedProperty:function(e,p){if(!/^mask/.test(e))return!1;if("Webkit"===xl.js){if(bl("mask-image")in p)return e;if(xl.js+Al("mask-image")in p)return xl.css+e}return e}},{noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==xl.vendor||xl.isTouch?e:xl.css+e)}},{noPrefill:["transform"],supportedProperty:function(e,p,l){return"transform"===e&&(l.transform?e:xl.css+e)}},{noPrefill:["transition"],supportedProperty:function(e,p,l){return"transition"===e&&(l.transition?e:xl.css+e)}},{noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===xl.js||"ms"===xl.js?xl.css+e:e)}},Fl,{supportedProperty:function(e,p){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===xl.js)return e;var l=e.replace("-inline","");return xl.js+Al(l)in p&&xl.css+l}},{supportedProperty:function(e,p){return bl(e)in p&&e}},{supportedProperty:function(e,p){var l=Al(e);return"-"===e[0]?e:"-"===e[0]&&"-"===e[1]?e:xl.js+l in p?xl.css+e:"Webkit"!==xl.js&&"Webkit"+l in p&&"-webkit-"+e}},{supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===xl.js?""+xl.css+e:e)}},{supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===xl.js?xl.css+"scroll-chaining":e)}},{supportedProperty:function(e,p){var l=Pl[e];return!!l&&(xl.js+Al(l)in p&&xl.css+l)}},{supportedProperty:function(e,p,l){var r=l.multiple;if(Rl.indexOf(e)>-1){var t=kl[e];if(!Array.isArray(t))return xl.js+Al(t)in p&&xl.css+t;if(!r)return!1;for(var n=0;n<t.length;n++)if(!(xl.js+Al(t[0])in p))return!1;return t.map(El)}return!1}}],Nl=Tl.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Ol=Tl.filter((function(e){return e.noPrefill})).reduce((function(e,p){return e.push.apply(e,wl(p.noPrefill)),e}),[]),Dl={};if(ce){Cl=document.createElement("p");var jl=window.getComputedStyle(document.documentElement,"");for(var Wl in jl)isNaN(Wl)||(Dl[jl[Wl]]=jl[Wl]);Ol.forEach((function(e){return delete Dl[e]}))}function Il(e,p){if(void 0===p&&(p={}),!Cl)return e;if(null!=Dl[e])return Dl[e];"transition"!==e&&"transform"!==e||(p[e]=e in Cl.style);for(var l=0;l<Nl.length&&(Dl[e]=Nl[l](e,Cl.style,p),!Dl[e]);l++);try{Cl.style[e]=""}catch(e){return!1}return Dl[e]}var ql,Ul={},Gl={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Yl=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Xl(e,p,l){return"var"===p?"var":"all"===p?"all":"all"===l?", all":p?Il(p):", "+Il(l)}function Ql(e,p){var l=p;if(!ql||"content"===e)return p;if("string"!=typeof l||!isNaN(parseInt(l,10)))return l;var r=e+l;if(null!=Ul[r])return Ul[r];try{ql.style[e]=l}catch(e){return Ul[r]=!1,!1}if(Gl[e])l=l.replace(Yl,Xl);else if(""===ql.style[e]&&("-ms-flex"===(l=xl.css+l)&&(ql.style[e]="-ms-flexbox"),ql.style[e]=l,""===ql.style[e]))return Ul[r]=!1,!1;return ql.style[e]="",Ul[r]=l,Ul[r]}function $l(){function e(p){for(var l in p){var r=p[l];if("fallbacks"===l&&Array.isArray(r))p[l]=r.map(e);else{var t=!1,n=Il(l);n&&n!==l&&(t=!0);var h=!1,o=Ql(n,He(r));o&&o!==r&&(h=!0),(t||h)&&(t&&delete p[l],p[n||l]=o||r)}}return p}return{onProcessRule:function(e){if("keyframes"===e.type){var p=e;p.at=function(e){return"-"===e[1]?e:"ms"===xl.js?e:"@"+xl.css+"keyframes"+e.substr(10)}(p.at)}},onProcessStyle:function(p,l){return"style"!==l.type?p:e(p)},onChangeValue:function(e,p){return Ql(p,He(e))||e}}}function Jl(){var e=function(e,p){return e.length===p.length?e>p?1:-1:e.length-p.length};return{onProcessStyle:function(p,l){if("style"!==l.type)return p;for(var r={},t=Object.keys(p).sort(e),n=0;n<t.length;n++)r[t[n]]=p[t[n]];return r}}}ce&&(ql=document.createElement("p"));var Zl=function(e){return void 0===e&&(e={}),{plugins:[{onCreateRule:function(e,p,l){if("function"!=typeof p)return null;var r=ue(e,{},l);return r[Ap]=p,r},onProcessStyle:function(e,p){if(bp in p||Ap in p)return e;var l={};for(var r in e){var t=e[r];"function"==typeof t&&(delete e[r],l[r]=t)}return p[bp]=l,e},onUpdate:function(e,p,l,r){var t=p,n=t[Ap];n&&(t.style=n(e)||{});var h=t[bp];if(h)for(var o in h)t.prop(o,h[o](e),r)}},(p=e.observable,{onCreateRule:function(e,l,r){if(!Fp(l))return null;var t=l,n=ue(e,{},r);return t.subscribe((function(e){for(var l in e)n.prop(l,e[l],p)})),n},onProcessRule:function(e){if(!e||"style"===e.type){var l=e,r=l.style,t=function(e){var t=r[e];if(!Fp(t))return"continue";delete r[e],t.subscribe({next:function(r){l.prop(e,r,p)}})};for(var n in r)