@rinzai/zen 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/zen.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(R,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],_):(R=typeof globalThis<"u"?globalThis:R||self,_(R.Zen={},R.React))})(this,function(R,_){"use strict";var P={},Pe={get exports(){return P},set exports(p){P=p}},A={};/**
1
+ (function(G,J){typeof exports=="object"&&typeof module<"u"?J(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],J):(G=typeof globalThis<"u"?globalThis:G||self,J(G.Zen={},G.React))})(this,function(G,J){"use strict";var H={},Fr={get exports(){return H},set exports(e){H=e}},ne={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Q;function we(){if(Q)return A;Q=1;var p=_,h=Symbol.for("react.element"),T=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,w=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,j={key:!0,ref:!0,__self:!0,__source:!0};function W(O,l,x){var v,b={},C=null,M=null;x!==void 0&&(C=""+x),l.key!==void 0&&(C=""+l.key),l.ref!==void 0&&(M=l.ref);for(v in l)m.call(l,v)&&!j.hasOwnProperty(v)&&(b[v]=l[v]);if(O&&O.defaultProps)for(v in l=O.defaultProps,l)b[v]===void 0&&(b[v]=l[v]);return{$$typeof:h,type:O,key:C,ref:M,props:b,_owner:w.current}}return A.Fragment=T,A.jsx=W,A.jsxs=W,A}var I={};/**
9
+ */var ze;function Vr(){if(ze)return ne;ze=1;var e=J,r=Symbol.for("react.element"),n=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function d(f,l,p){var u,v={},R=null,P=null;p!==void 0&&(R=""+p),l.key!==void 0&&(R=""+l.key),l.ref!==void 0&&(P=l.ref);for(u in l)a.call(l,u)&&!s.hasOwnProperty(u)&&(v[u]=l[u]);if(f&&f.defaultProps)for(u in l=f.defaultProps,l)v[u]===void 0&&(v[u]=l[u]);return{$$typeof:r,type:f,key:R,ref:P,props:v,_owner:o.current}}return ne.Fragment=n,ne.jsx=d,ne.jsxs=d,ne}var ae={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,14 +14,37 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var ee;function je(){return ee||(ee=1,process.env.NODE_ENV!=="production"&&function(){var p=_,h=Symbol.for("react.element"),T=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),W=Symbol.for("react.provider"),O=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),te=Symbol.iterator,ke="@@iterator";function De(e){if(e===null||typeof e!="object")return null;var r=te&&e[te]||e[ke];return typeof r=="function"?r:null}var k=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function c(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Fe("error",e,t)}}function Fe(e,r,t){{var n=k.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var u=t.map(function(i){return String(i)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var Ae=!1,Ie=!1,We=!1,Ye=!1,Le=!1,ne;ne=Symbol.for("react.module.reference");function Me(e){return!!(typeof e=="string"||typeof e=="function"||e===m||e===j||Le||e===w||e===x||e===v||Ye||e===M||Ae||Ie||We||typeof e=="object"&&e!==null&&(e.$$typeof===C||e.$$typeof===b||e.$$typeof===W||e.$$typeof===O||e.$$typeof===l||e.$$typeof===ne||e.getModuleId!==void 0))}function $e(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function ae(e){return e.displayName||"Context"}function y(e){if(e==null)return null;if(typeof e.tag=="number"&&c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case m:return"Fragment";case T:return"Portal";case j:return"Profiler";case w:return"StrictMode";case x:return"Suspense";case v:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case O:var r=e;return ae(r)+".Consumer";case W:var t=e;return ae(t._context)+".Provider";case l:return $e(e,e.render,"ForwardRef");case b:var n=e.displayName||null;return n!==null?n:y(e.type)||"Memo";case C:{var o=e,u=o._payload,i=o._init;try{return y(i(u))}catch{return null}}}return null}var S=Object.assign,Y=0,ie,oe,ue,se,fe,le,ce;function de(){}de.__reactDisabledLog=!0;function Ne(){{if(Y===0){ie=console.log,oe=console.info,ue=console.warn,se=console.error,fe=console.group,le=console.groupCollapsed,ce=console.groupEnd;var e={configurable:!0,enumerable:!0,value:de,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Y++}}function Ve(){{if(Y--,Y===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:S({},e,{value:ie}),info:S({},e,{value:oe}),warn:S({},e,{value:ue}),error:S({},e,{value:se}),group:S({},e,{value:fe}),groupCollapsed:S({},e,{value:le}),groupEnd:S({},e,{value:ce})})}Y<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=k.ReactCurrentDispatcher,q;function $(e,r,t){{if(q===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);q=n&&n[1]||""}return`
18
- `+q+e}}var G=!1,N;{var Ue=typeof WeakMap=="function"?WeakMap:Map;N=new Ue}function ve(e,r){if(!e||G)return"";{var t=N.get(e);if(t!==void 0)return t}var n;G=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=J.current,J.current=null,Ne();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(E){n=E}Reflect.construct(e,[],i)}else{try{i.call()}catch(E){n=E}e.call(i.prototype)}}else{try{throw Error()}catch(E){n=E}e()}}catch(E){if(E&&n&&typeof E.stack=="string"){for(var a=E.stack.split(`
19
- `),d=n.stack.split(`
20
- `),s=a.length-1,f=d.length-1;s>=1&&f>=0&&a[s]!==d[f];)f--;for(;s>=1&&f>=0;s--,f--)if(a[s]!==d[f]){if(s!==1||f!==1)do if(s--,f--,f<0||a[s]!==d[f]){var g=`
21
- `+a[s].replace(" at new "," at ");return e.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",e.displayName)),typeof e=="function"&&N.set(e,g),g}while(s>=1&&f>=0);break}}}finally{G=!1,J.current=u,Ve(),Error.prepareStackTrace=o}var F=e?e.displayName||e.name:"",Se=F?$(F):"";return typeof e=="function"&&N.set(e,Se),Se}function Be(e,r,t){return ve(e,!1)}function Je(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function V(e,r,t){if(e==null)return"";if(typeof e=="function")return ve(e,Je(e));if(typeof e=="string")return $(e);switch(e){case x:return $("Suspense");case v:return $("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case l:return Be(e.render);case b:return V(e.type,r,t);case C:{var n=e,o=n._payload,u=n._init;try{return V(u(o),r,t)}catch{}}}return""}var U=Object.prototype.hasOwnProperty,pe={},ge=k.ReactDebugCurrentFrame;function B(e){if(e){var r=e._owner,t=V(e.type,e._source,r?r.type:null);ge.setExtraStackFrame(t)}else ge.setExtraStackFrame(null)}function qe(e,r,t,n,o){{var u=Function.call.bind(U);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var d=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(B(o),c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),B(null)),a instanceof Error&&!(a.message in pe)&&(pe[a.message]=!0,B(o),c("Failed %s type: %s",t,a.message),B(null))}}}var Ge=Array.isArray;function H(e){return Ge(e)}function He(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function ze(e){try{return he(e),!1}catch{return!0}}function he(e){return""+e}function be(e){if(ze(e))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",He(e)),he(e)}var L=k.ReactCurrentOwner,Ke={key:!0,ref:!0,__self:!0,__source:!0},ye,Ee,z;z={};function Xe(e){if(U.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Ze(e){if(U.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Qe(e,r){if(typeof e.ref=="string"&&L.current&&r&&L.current.stateNode!==r){var t=y(L.current.type);z[t]||(c('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',y(L.current.type),e.ref),z[t]=!0)}}function er(e,r){{var t=function(){ye||(ye=!0,c("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function rr(e,r){{var t=function(){Ee||(Ee=!0,c("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var tr=function(e,r,t,n,o,u,i){var a={$$typeof:h,type:e,key:r,ref:t,props:i,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function nr(e,r,t,n,o){{var u,i={},a=null,d=null;t!==void 0&&(be(t),a=""+t),Ze(r)&&(be(r.key),a=""+r.key),Xe(r)&&(d=r.ref,Qe(r,o));for(u in r)U.call(r,u)&&!Ke.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)i[u]===void 0&&(i[u]=s[u])}if(a||d){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&er(i,f),d&&rr(i,f)}return tr(e,a,d,o,n,L.current,i)}}var K=k.ReactCurrentOwner,Re=k.ReactDebugCurrentFrame;function D(e){if(e){var r=e._owner,t=V(e.type,e._source,r?r.type:null);Re.setExtraStackFrame(t)}else Re.setExtraStackFrame(null)}var X;X=!1;function Z(e){return typeof e=="object"&&e!==null&&e.$$typeof===h}function me(){{if(K.current){var e=y(K.current.type);if(e)return`
17
+ */var Ge;function Mr(){return Ge||(Ge=1,process.env.NODE_ENV!=="production"&&function(){var e=J,r=Symbol.for("react.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),f=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),k=Symbol.iterator,g="@@iterator";function A(t){if(t===null||typeof t!="object")return null;var i=k&&t[k]||t[g];return typeof i=="function"?i:null}var _=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(t){{for(var i=arguments.length,c=new Array(i>1?i-1:0),h=1;h<i;h++)c[h-1]=arguments[h];V("error",t,c)}}function V(t,i,c){{var h=_.ReactDebugCurrentFrame,w=h.getStackAddendum();w!==""&&(i+="%s",c=c.concat([w]));var S=c.map(function(y){return String(y)});S.unshift("Warning: "+i),Function.prototype.apply.call(console[t],console,S)}}var K=!1,Y=!1,M=!1,O=!1,Mt=!1,pr;pr=Symbol.for("react.module.reference");function Wt(t){return!!(typeof t=="string"||typeof t=="function"||t===a||t===s||Mt||t===o||t===p||t===u||O||t===P||K||Y||M||typeof t=="object"&&t!==null&&(t.$$typeof===R||t.$$typeof===v||t.$$typeof===d||t.$$typeof===f||t.$$typeof===l||t.$$typeof===pr||t.getModuleId!==void 0))}function Lt(t,i,c){var h=t.displayName;if(h)return h;var w=i.displayName||i.name||"";return w!==""?c+"("+w+")":c}function hr(t){return t.displayName||"Context"}function B(t){if(t==null)return null;if(typeof t.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case a:return"Fragment";case n:return"Portal";case s:return"Profiler";case o:return"StrictMode";case p:return"Suspense";case u:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case f:var i=t;return hr(i)+".Consumer";case d:var c=t;return hr(c._context)+".Provider";case l:return Lt(t,t.render,"ForwardRef");case v:var h=t.displayName||null;return h!==null?h:B(t.type)||"Memo";case R:{var w=t,S=w._payload,y=w._init;try{return B(y(S))}catch{return null}}}return null}var Z=Object.assign,fe=0,vr,mr,gr,yr,br,Er,wr;function xr(){}xr.__reactDisabledLog=!0;function Yt(){{if(fe===0){vr=console.log,mr=console.info,gr=console.warn,yr=console.error,br=console.group,Er=console.groupCollapsed,wr=console.groupEnd;var t={configurable:!0,enumerable:!0,value:xr,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}fe++}}function Ut(){{if(fe--,fe===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Z({},t,{value:vr}),info:Z({},t,{value:mr}),warn:Z({},t,{value:gr}),error:Z({},t,{value:yr}),group:Z({},t,{value:br}),groupCollapsed:Z({},t,{value:Er}),groupEnd:Z({},t,{value:wr})})}fe<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ie=_.ReactCurrentDispatcher,Fe;function we(t,i,c){{if(Fe===void 0)try{throw Error()}catch(w){var h=w.stack.trim().match(/\n( *(at )?)/);Fe=h&&h[1]||""}return`
18
+ `+Fe+t}}var Ve=!1,xe;{var zt=typeof WeakMap=="function"?WeakMap:Map;xe=new zt}function Rr(t,i){if(!t||Ve)return"";{var c=xe.get(t);if(c!==void 0)return c}var h;Ve=!0;var w=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var S;S=Ie.current,Ie.current=null,Yt();try{if(i){var y=function(){throw Error()};if(Object.defineProperty(y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(y,[])}catch(q){h=q}Reflect.construct(t,[],y)}else{try{y.call()}catch(q){h=q}t.call(y.prototype)}}else{try{throw Error()}catch(q){h=q}t()}}catch(q){if(q&&h&&typeof q.stack=="string"){for(var m=q.stack.split(`
19
+ `),D=h.stack.split(`
20
+ `),C=m.length-1,N=D.length-1;C>=1&&N>=0&&m[C]!==D[N];)N--;for(;C>=1&&N>=0;C--,N--)if(m[C]!==D[N]){if(C!==1||N!==1)do if(C--,N--,N<0||m[C]!==D[N]){var W=`
21
+ `+m[C].replace(" at new "," at ");return t.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",t.displayName)),typeof t=="function"&&xe.set(t,W),W}while(C>=1&&N>=0);break}}}finally{Ve=!1,Ie.current=S,Ut(),Error.prepareStackTrace=w}var te=t?t.displayName||t.name:"",Ir=te?we(te):"";return typeof t=="function"&&xe.set(t,Ir),Ir}function Gt(t,i,c){return Rr(t,!1)}function Bt(t){var i=t.prototype;return!!(i&&i.isReactComponent)}function Re(t,i,c){if(t==null)return"";if(typeof t=="function")return Rr(t,Bt(t));if(typeof t=="string")return we(t);switch(t){case p:return we("Suspense");case u:return we("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case l:return Gt(t.render);case v:return Re(t.type,i,c);case R:{var h=t,w=h._payload,S=h._init;try{return Re(S(w),i,c)}catch{}}}return""}var _e=Object.prototype.hasOwnProperty,_r={},Sr=_.ReactDebugCurrentFrame;function Se(t){if(t){var i=t._owner,c=Re(t.type,t._source,i?i.type:null);Sr.setExtraStackFrame(c)}else Sr.setExtraStackFrame(null)}function qt(t,i,c,h,w){{var S=Function.call.bind(_e);for(var y in t)if(S(t,y)){var m=void 0;try{if(typeof t[y]!="function"){var D=Error((h||"React class")+": "+c+" type `"+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw D.name="Invariant Violation",D}m=t[y](i,y,h,c,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(C){m=C}m&&!(m instanceof Error)&&(Se(w),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",h||"React class",c,y,typeof m),Se(null)),m instanceof Error&&!(m.message in _r)&&(_r[m.message]=!0,Se(w),b("Failed %s type: %s",c,m.message),Se(null))}}}var Jt=Array.isArray;function Me(t){return Jt(t)}function Ht(t){{var i=typeof Symbol=="function"&&Symbol.toStringTag,c=i&&t[Symbol.toStringTag]||t.constructor.name||"Object";return c}}function Kt(t){try{return Or(t),!1}catch{return!0}}function Or(t){return""+t}function Cr(t){if(Kt(t))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ht(t)),Or(t)}var le=_.ReactCurrentOwner,Zt={key:!0,ref:!0,__self:!0,__source:!0},Tr,kr,We;We={};function Xt(t){if(_e.call(t,"ref")){var i=Object.getOwnPropertyDescriptor(t,"ref").get;if(i&&i.isReactWarning)return!1}return t.ref!==void 0}function Qt(t){if(_e.call(t,"key")){var i=Object.getOwnPropertyDescriptor(t,"key").get;if(i&&i.isReactWarning)return!1}return t.key!==void 0}function en(t,i){if(typeof t.ref=="string"&&le.current&&i&&le.current.stateNode!==i){var c=B(le.current.type);We[c]||(b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',B(le.current.type),t.ref),We[c]=!0)}}function rn(t,i){{var c=function(){Tr||(Tr=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",i))};c.isReactWarning=!0,Object.defineProperty(t,"key",{get:c,configurable:!0})}}function tn(t,i){{var c=function(){kr||(kr=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",i))};c.isReactWarning=!0,Object.defineProperty(t,"ref",{get:c,configurable:!0})}}var nn=function(t,i,c,h,w,S,y){var m={$$typeof:r,type:t,key:i,ref:c,props:y,_owner:S};return m._store={},Object.defineProperty(m._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(m,"_self",{configurable:!1,enumerable:!1,writable:!1,value:h}),Object.defineProperty(m,"_source",{configurable:!1,enumerable:!1,writable:!1,value:w}),Object.freeze&&(Object.freeze(m.props),Object.freeze(m)),m};function an(t,i,c,h,w){{var S,y={},m=null,D=null;c!==void 0&&(Cr(c),m=""+c),Qt(i)&&(Cr(i.key),m=""+i.key),Xt(i)&&(D=i.ref,en(i,w));for(S in i)_e.call(i,S)&&!Zt.hasOwnProperty(S)&&(y[S]=i[S]);if(t&&t.defaultProps){var C=t.defaultProps;for(S in C)y[S]===void 0&&(y[S]=C[S])}if(m||D){var N=typeof t=="function"?t.displayName||t.name||"Unknown":t;m&&rn(y,N),D&&tn(y,N)}return nn(t,m,D,w,h,le.current,y)}}var Le=_.ReactCurrentOwner,Nr=_.ReactDebugCurrentFrame;function re(t){if(t){var i=t._owner,c=Re(t.type,t._source,i?i.type:null);Nr.setExtraStackFrame(c)}else Nr.setExtraStackFrame(null)}var Ye;Ye=!1;function Ue(t){return typeof t=="object"&&t!==null&&t.$$typeof===r}function Pr(){{if(Le.current){var t=B(Le.current.type);if(t)return`
22
22
 
23
- Check the render method of \``+e+"`."}return""}}function ar(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
23
+ Check the render method of \``+t+"`."}return""}}function on(t){{if(t!==void 0){var i=t.fileName.replace(/^.*[\\\/]/,""),c=t.lineNumber;return`
24
24
 
25
- Check your code at `+r+":"+t+"."}return""}}var _e={};function ir(e){{var r=me();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
25
+ Check your code at `+i+":"+c+"."}return""}}var Ar={};function sn(t){{var i=Pr();if(!i){var c=typeof t=="string"?t:t.displayName||t.name;c&&(i=`
26
26
 
27
- Check the top-level render call using <`+t+">.")}return r}}function Te(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ir(r);if(_e[t])return;_e[t]=!0;var n="";e&&e._owner&&e._owner!==K.current&&(n=" It was passed a child from "+y(e._owner.type)+"."),D(e),c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),D(null)}}function Oe(e,r){{if(typeof e!="object")return;if(H(e))for(var t=0;t<e.length;t++){var n=e[t];Z(n)&&Te(n,r)}else if(Z(e))e._store&&(e._store.validated=!0);else if(e){var o=De(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)Z(i.value)&&Te(i.value,r)}}}function or(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===l||r.$$typeof===b))t=r.propTypes;else return;if(t){var n=y(r);qe(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!X){X=!0;var o=y(r);c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ur(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){D(e),c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),D(null);break}}e.ref!==null&&(D(e),c("Invalid attribute `ref` supplied to `React.Fragment`."),D(null))}}function Ce(e,r,t,n,o,u){{var i=Me(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var d=ar(o);d?a+=d:a+=me();var s;e===null?s="null":H(e)?s="array":e!==void 0&&e.$$typeof===h?(s="<"+(y(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var f=nr(e,r,t,o,u);if(f==null)return f;if(i){var g=r.children;if(g!==void 0)if(n)if(H(g)){for(var F=0;F<g.length;F++)Oe(g[F],e);Object.freeze&&Object.freeze(g)}else c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Oe(g,e)}return e===m?ur(f):or(f),f}}function sr(e,r,t){return Ce(e,r,t,!0)}function fr(e,r,t){return Ce(e,r,t,!1)}var lr=fr,cr=sr;I.Fragment=m,I.jsx=lr,I.jsxs=cr}()),I}(function(p){process.env.NODE_ENV==="production"?p.exports=we():p.exports=je()})(Pe);const dr="",re=_.forwardRef(({tag:p,children:h,visible:T=!0,...m},w)=>{const j=p||"div";return T?P.jsx(j,{ref:w,...m,children:h}):P.jsx(P.Fragment,{})}),xe=({...p})=>{const{children:h,...T}=p;return P.jsx(re,{tag:"div",...T,children:h})};R.Container=xe,R.HTML=re,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
27
+ Check the top-level render call using <`+c+">.")}return i}}function $r(t,i){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var c=sn(i);if(Ar[c])return;Ar[c]=!0;var h="";t&&t._owner&&t._owner!==Le.current&&(h=" It was passed a child from "+B(t._owner.type)+"."),re(t),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',c,h),re(null)}}function jr(t,i){{if(typeof t!="object")return;if(Me(t))for(var c=0;c<t.length;c++){var h=t[c];Ue(h)&&$r(h,i)}else if(Ue(t))t._store&&(t._store.validated=!0);else if(t){var w=A(t);if(typeof w=="function"&&w!==t.entries)for(var S=w.call(t),y;!(y=S.next()).done;)Ue(y.value)&&$r(y.value,i)}}}function cn(t){{var i=t.type;if(i==null||typeof i=="string")return;var c;if(typeof i=="function")c=i.propTypes;else if(typeof i=="object"&&(i.$$typeof===l||i.$$typeof===v))c=i.propTypes;else return;if(c){var h=B(i);qt(c,t.props,"prop",h,t)}else if(i.PropTypes!==void 0&&!Ye){Ye=!0;var w=B(i);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",w||"Unknown")}typeof i.getDefaultProps=="function"&&!i.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function un(t){{for(var i=Object.keys(t.props),c=0;c<i.length;c++){var h=i[c];if(h!=="children"&&h!=="key"){re(t),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",h),re(null);break}}t.ref!==null&&(re(t),b("Invalid attribute `ref` supplied to `React.Fragment`."),re(null))}}function Dr(t,i,c,h,w,S){{var y=Wt(t);if(!y){var m="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(m+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var D=on(w);D?m+=D:m+=Pr();var C;t===null?C="null":Me(t)?C="array":t!==void 0&&t.$$typeof===r?(C="<"+(B(t.type)||"Unknown")+" />",m=" Did you accidentally export a JSX literal instead of a component?"):C=typeof t,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",C,m)}var N=an(t,i,c,w,S);if(N==null)return N;if(y){var W=i.children;if(W!==void 0)if(h)if(Me(W)){for(var te=0;te<W.length;te++)jr(W[te],t);Object.freeze&&Object.freeze(W)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else jr(W,t)}return t===a?un(N):cn(N),N}}function fn(t,i,c){return Dr(t,i,c,!0)}function ln(t,i,c){return Dr(t,i,c,!1)}var dn=ln,pn=fn;ae.Fragment=a,ae.jsx=dn,ae.jsxs=pn}()),ae}(function(e){process.env.NODE_ENV==="production"?e.exports=Vr():e.exports=Mr()})(Fr);const hn="",Oe=J.forwardRef(({tag:e,children:r,visible:n=!0,...a},o)=>{const s=e||"div";return n?H.jsx(s,{ref:o,...a,children:r}):H.jsx(H.Fragment,{})}),Wr=({...e})=>{const{children:r,...n}=e;return H.jsx(Oe,{tag:"div",...n,children:r})};function Lr(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}function Yr(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),e.nonce!==void 0&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var Ur=function(){function e(n){var a=this;this._insertTag=function(o){var s;a.tags.length===0?a.insertionPoint?s=a.insertionPoint.nextSibling:a.prepend?s=a.container.firstChild:s=a.before:s=a.tags[a.tags.length-1].nextSibling,a.container.insertBefore(o,s),a.tags.push(o)},this.isSpeedy=n.speedy===void 0?process.env.NODE_ENV==="production":n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var r=e.prototype;return r.hydrate=function(a){a.forEach(this._insertTag)},r.insert=function(a){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Yr(this));var o=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var s=a.charCodeAt(0)===64&&a.charCodeAt(1)===105;s&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
28
+ `+a+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!s}if(this.isSpeedy){var d=Lr(o);try{d.insertRule(a,d.cssRules.length)}catch(f){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(a)&&console.error('There was a problem inserting the following rule: "'+a+'"',f)}}else o.appendChild(document.createTextNode(a));this.ctr++},r.flush=function(){this.tags.forEach(function(a){return a.parentNode&&a.parentNode.removeChild(a)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),j="-ms-",de="-moz-",E="-webkit-",Ce="comm",Te="rule",ke="decl",zr="@import",Be="@keyframes",Gr=Math.abs,pe=String.fromCharCode,Br=Object.assign;function qr(e,r){return $(e,0)^45?(((r<<2^$(e,0))<<2^$(e,1))<<2^$(e,2))<<2^$(e,3):0}function qe(e){return e.trim()}function Jr(e,r){return(e=r.exec(e))?e[0]:e}function x(e,r,n){return e.replace(r,n)}function Ne(e,r){return e.indexOf(r)}function $(e,r){return e.charCodeAt(r)|0}function ie(e,r,n){return e.slice(r,n)}function U(e){return e.length}function Pe(e){return e.length}function he(e,r){return r.push(e),e}function Hr(e,r){return e.map(r).join("")}var ve=1,X=1,Je=0,I=0,T=0,Q="";function me(e,r,n,a,o,s,d){return{value:e,root:r,parent:n,type:a,props:o,children:s,line:ve,column:X,length:d,return:""}}function oe(e,r){return Br(me("",null,null,"",null,null,0),e,{length:-e.length},r)}function Kr(){return T}function Zr(){return T=I>0?$(Q,--I):0,X--,T===10&&(X=1,ve--),T}function F(){return T=I<Je?$(Q,I++):0,X++,T===10&&(X=1,ve++),T}function z(){return $(Q,I)}function ge(){return I}function se(e,r){return ie(Q,e,r)}function ce(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function He(e){return ve=X=1,Je=U(Q=e),I=0,[]}function Ke(e){return Q="",e}function ye(e){return qe(se(I-1,Ae(e===91?e+2:e===40?e+1:e)))}function Xr(e){for(;(T=z())&&T<33;)F();return ce(e)>2||ce(T)>3?"":" "}function Qr(e,r){for(;--r&&F()&&!(T<48||T>102||T>57&&T<65||T>70&&T<97););return se(e,ge()+(r<6&&z()==32&&F()==32))}function Ae(e){for(;F();)switch(T){case e:return I;case 34:case 39:e!==34&&e!==39&&Ae(T);break;case 40:e===41&&Ae(e);break;case 92:F();break}return I}function et(e,r){for(;F()&&e+T!==47+10;)if(e+T===42+42&&z()===47)break;return"/*"+se(r,I-1)+"*"+pe(e===47?e:F())}function rt(e){for(;!ce(z());)F();return se(e,I)}function tt(e){return Ke(be("",null,null,null,[""],e=He(e),0,[0],e))}function be(e,r,n,a,o,s,d,f,l){for(var p=0,u=0,v=d,R=0,P=0,k=0,g=1,A=1,_=1,b=0,V="",K=o,Y=s,M=a,O=V;A;)switch(k=b,b=F()){case 40:if(k!=108&&$(O,v-1)==58){Ne(O+=x(ye(b),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:O+=ye(b);break;case 9:case 10:case 13:case 32:O+=Xr(k);break;case 92:O+=Qr(ge()-1,7);continue;case 47:switch(z()){case 42:case 47:he(nt(et(F(),ge()),r,n),l);break;default:O+="/"}break;case 123*g:f[p++]=U(O)*_;case 125*g:case 59:case 0:switch(b){case 0:case 125:A=0;case 59+u:P>0&&U(O)-v&&he(P>32?Xe(O+";",a,n,v-1):Xe(x(O," ","")+";",a,n,v-2),l);break;case 59:O+=";";default:if(he(M=Ze(O,r,n,p,u,o,f,V,K=[],Y=[],v),s),b===123)if(u===0)be(O,r,M,M,K,s,v,f,Y);else switch(R===99&&$(O,3)===110?100:R){case 100:case 109:case 115:be(e,M,M,a&&he(Ze(e,M,M,0,0,o,f,V,o,K=[],v),Y),o,Y,v,f,a?K:Y);break;default:be(O,M,M,M,[""],Y,0,f,Y)}}p=u=P=0,g=_=1,V=O="",v=d;break;case 58:v=1+U(O),P=k;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&Zr()==125)continue}switch(O+=pe(b),b*g){case 38:_=u>0?1:(O+="\f",-1);break;case 44:f[p++]=(U(O)-1)*_,_=1;break;case 64:z()===45&&(O+=ye(F())),R=z(),u=v=U(V=O+=rt(ge())),b++;break;case 45:k===45&&U(O)==2&&(g=0)}}return s}function Ze(e,r,n,a,o,s,d,f,l,p,u){for(var v=o-1,R=o===0?s:[""],P=Pe(R),k=0,g=0,A=0;k<a;++k)for(var _=0,b=ie(e,v+1,v=Gr(g=d[k])),V=e;_<P;++_)(V=qe(g>0?R[_]+" "+b:x(b,/&\f/g,R[_])))&&(l[A++]=V);return me(e,r,n,o===0?Te:f,l,p,u)}function nt(e,r,n){return me(e,r,n,Ce,pe(Kr()),ie(e,2,-2),0)}function Xe(e,r,n,a){return me(e,r,n,ke,ie(e,0,a),ie(e,a+1,-1),a)}function ee(e,r){for(var n="",a=Pe(e),o=0;o<a;o++)n+=r(e[o],o,e,r)||"";return n}function at(e,r,n,a){switch(e.type){case zr:case ke:return e.return=e.return||e.value;case Ce:return"";case Be:return e.return=e.value+"{"+ee(e.children,a)+"}";case Te:e.value=e.props.join(",")}return U(n=ee(e.children,a))?e.return=e.value+"{"+n+"}":""}function it(e){var r=Pe(e);return function(n,a,o,s){for(var d="",f=0;f<r;f++)d+=e[f](n,a,o,s)||"";return d}}function ot(e){return function(r){r.root||(r=r.return)&&e(r)}}function st(e){var r=Object.create(null);return function(n){return r[n]===void 0&&(r[n]=e(n)),r[n]}}var ct=function(r,n,a){for(var o=0,s=0;o=s,s=z(),o===38&&s===12&&(n[a]=1),!ce(s);)F();return se(r,I)},ut=function(r,n){var a=-1,o=44;do switch(ce(o)){case 0:o===38&&z()===12&&(n[a]=1),r[a]+=ct(I-1,n,a);break;case 2:r[a]+=ye(o);break;case 4:if(o===44){r[++a]=z()===58?"&\f":"",n[a]=r[a].length;break}default:r[a]+=pe(o)}while(o=F());return r},ft=function(r,n){return Ke(ut(He(r),n))},Qe=new WeakMap,lt=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var n=r.value,a=r.parent,o=r.column===a.column&&r.line===a.line;a.type!=="rule";)if(a=a.parent,!a)return;if(!(r.props.length===1&&n.charCodeAt(0)!==58&&!Qe.get(a))&&!o){Qe.set(r,!0);for(var s=[],d=ft(n,s),f=a.props,l=0,p=0;l<d.length;l++)for(var u=0;u<f.length;u++,p++)r.props[p]=s[l]?d[l].replace(/&\f/g,f[u]):f[u]+" "+d[l]}}},dt=function(r){if(r.type==="decl"){var n=r.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(r.return="",r.value="")}},pt="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",ht=function(r){return r.type==="comm"&&r.children.indexOf(pt)>-1},vt=function(r){return function(n,a,o){if(!(n.type!=="rule"||r.compat)){var s=n.value.match(/(:first|:nth|:nth-last)-child/g);if(s){for(var d=n.parent===o[0],f=d?o[0].children:o,l=f.length-1;l>=0;l--){var p=f[l];if(p.line<n.line)break;if(p.column<n.column){if(ht(p))return;break}}s.forEach(function(u){console.error('The pseudo class "'+u+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+u.split("-child")[0]+'-of-type".')})}}}},er=function(r){return r.type.charCodeAt(1)===105&&r.type.charCodeAt(0)===64},mt=function(r,n){for(var a=r-1;a>=0;a--)if(!er(n[a]))return!0;return!1},rr=function(r){r.type="",r.value="",r.return="",r.children="",r.props=""},gt=function(r,n,a){er(r)&&(r.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),rr(r)):mt(n,a)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),rr(r)))};function tr(e,r){switch(qr(e,r)){case 5103:return E+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return E+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return E+e+de+e+j+e+e;case 6828:case 4268:return E+e+j+e+e;case 6165:return E+e+j+"flex-"+e+e;case 5187:return E+e+x(e,/(\w+).+(:[^]+)/,E+"box-$1$2"+j+"flex-$1$2")+e;case 5443:return E+e+j+"flex-item-"+x(e,/flex-|-self/,"")+e;case 4675:return E+e+j+"flex-line-pack"+x(e,/align-content|flex-|-self/,"")+e;case 5548:return E+e+j+x(e,"shrink","negative")+e;case 5292:return E+e+j+x(e,"basis","preferred-size")+e;case 6060:return E+"box-"+x(e,"-grow","")+E+e+j+x(e,"grow","positive")+e;case 4554:return E+x(e,/([^-])(transform)/g,"$1"+E+"$2")+e;case 6187:return x(x(x(e,/(zoom-|grab)/,E+"$1"),/(image-set)/,E+"$1"),e,"")+e;case 5495:case 3959:return x(e,/(image-set\([^]*)/,E+"$1$`$1");case 4968:return x(x(e,/(.+:)(flex-)?(.*)/,E+"box-pack:$3"+j+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+E+e+e;case 4095:case 3583:case 4068:case 2532:return x(e,/(.+)-inline(.+)/,E+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(U(e)-1-r>6)switch($(e,r+1)){case 109:if($(e,r+4)!==45)break;case 102:return x(e,/(.+:)(.+)-([^]+)/,"$1"+E+"$2-$3$1"+de+($(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~Ne(e,"stretch")?tr(x(e,"stretch","fill-available"),r)+e:e}break;case 4949:if($(e,r+1)!==115)break;case 6444:switch($(e,U(e)-3-(~Ne(e,"!important")&&10))){case 107:return x(e,":",":"+E)+e;case 101:return x(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+E+($(e,14)===45?"inline-":"")+"box$3$1"+E+"$2$3$1"+j+"$2box$3")+e}break;case 5936:switch($(e,r+11)){case 114:return E+e+j+x(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return E+e+j+x(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return E+e+j+x(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return E+e+j+e+e}return e}var yt=function(r,n,a,o){if(r.length>-1&&!r.return)switch(r.type){case ke:r.return=tr(r.value,r.length);break;case Be:return ee([oe(r,{value:x(r.value,"@","@"+E)})],o);case Te:if(r.length)return Hr(r.props,function(s){switch(Jr(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ee([oe(r,{props:[x(s,/:(read-\w+)/,":"+de+"$1")]})],o);case"::placeholder":return ee([oe(r,{props:[x(s,/:(plac\w+)/,":"+E+"input-$1")]}),oe(r,{props:[x(s,/:(plac\w+)/,":"+de+"$1")]}),oe(r,{props:[x(s,/:(plac\w+)/,j+"input-$1")]})],o)}return""})}},bt=[yt],Et=function(r){var n=r.key;if(process.env.NODE_ENV!=="production"&&!n)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
29
+ If multiple caches share the same key they might "fight" for each other's style elements.`);if(n==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(g){var A=g.getAttribute("data-emotion");A.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=r.stylisPlugins||bt;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var s={},d,f=[];d=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var A=g.getAttribute("data-emotion").split(" "),_=1;_<A.length;_++)s[A[_]]=!0;f.push(g)});var l,p=[lt,dt];process.env.NODE_ENV!=="production"&&p.push(vt({get compat(){return k.compat}}),gt);{var u,v=[at,process.env.NODE_ENV!=="production"?function(g){g.root||(g.return?u.insert(g.return):g.value&&g.type!==Ce&&u.insert(g.value+"{}"))}:ot(function(g){u.insert(g)})],R=it(p.concat(o,v)),P=function(A){return ee(tt(A),R)};l=function(A,_,b,V){u=b,process.env.NODE_ENV!=="production"&&_.map!==void 0&&(u={insert:function(Y){b.insert(Y+_.map)}}),P(A?A+"{"+_.styles+"}":_.styles),V&&(k.inserted[_.name]=!0)}}var k={key:n,sheet:new Ur({key:n,container:d,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:s,registered:{},insert:l};return k.sheet.hydrate(f),k};function wt(e){for(var r=0,n,a=0,o=e.length;o>=4;++a,o-=4)n=e.charCodeAt(a)&255|(e.charCodeAt(++a)&255)<<8|(e.charCodeAt(++a)&255)<<16|(e.charCodeAt(++a)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,r=(n&65535)*1540483477+((n>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(o){case 3:r^=(e.charCodeAt(a+2)&255)<<16;case 2:r^=(e.charCodeAt(a+1)&255)<<8;case 1:r^=e.charCodeAt(a)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var xt={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},nr=`You have illegal escape sequence in your template literal, most likely inside content's property value.
30
+ Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
31
+ You can read more about this here:
32
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Rt="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",_t=/[A-Z]|^ms/g,ar=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$e=function(r){return r.charCodeAt(1)===45},ir=function(r){return r!=null&&typeof r!="boolean"},je=st(function(e){return $e(e)?e:e.replace(_t,"-$&").toLowerCase()}),Ee=function(r,n){switch(r){case"animation":case"animationName":if(typeof n=="string")return n.replace(ar,function(a,o,s){return L={name:o,styles:s,next:L},o})}return xt[r]!==1&&!$e(r)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var St=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Ot=["normal","none","initial","inherit","unset"],Ct=Ee,Tt=/^-ms-/,kt=/-(.)/g,or={};Ee=function(r,n){if(r==="content"&&(typeof n!="string"||Ot.indexOf(n)===-1&&!St.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var a=Ct(r,n);return a!==""&&!$e(r)&&r.indexOf("-")!==-1&&or[r]===void 0&&(or[r]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+r.replace(Tt,"ms-").replace(kt,function(o,s){return s.toUpperCase()})+"?")),a}}var sr="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ue(e,r,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(sr);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return L={name:n.name,styles:n.styles,next:L},n.name;if(n.styles!==void 0){var a=n.next;if(a!==void 0)for(;a!==void 0;)L={name:a.name,styles:a.styles,next:L},a=a.next;var o=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(o+=n.map),o}return Nt(e,r,n)}case"function":{if(e!==void 0){var s=L,d=n(e);return L=s,ue(e,r,d)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var f=[],l=n.replace(ar,function(u,v,R){var P="animation"+f.length;return f.push("const "+P+" = keyframes`"+R.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+P+"}"});f.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(f,["`"+l+"`"]).join(`
33
+ `)+`
34
+
35
+ You should wrap it with \`css\` like this:
36
+
37
+ `+("css`"+l+"`"))}break}if(r==null)return n;var p=r[n];return p!==void 0?p:n}function Nt(e,r,n){var a="";if(Array.isArray(n))for(var o=0;o<n.length;o++)a+=ue(e,r,n[o])+";";else for(var s in n){var d=n[s];if(typeof d!="object")r!=null&&r[d]!==void 0?a+=s+"{"+r[d]+"}":ir(d)&&(a+=je(s)+":"+Ee(s,d)+";");else{if(s==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(sr);if(Array.isArray(d)&&typeof d[0]=="string"&&(r==null||r[d[0]]===void 0))for(var f=0;f<d.length;f++)ir(d[f])&&(a+=je(s)+":"+Ee(s,d[f])+";");else{var l=ue(e,r,d);switch(s){case"animation":case"animationName":{a+=je(s)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&s==="undefined"&&console.error(Rt),a+=s+"{"+l+"}"}}}}return a}var cr=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ur;process.env.NODE_ENV!=="production"&&(ur=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var L,De=function(r,n,a){if(r.length===1&&typeof r[0]=="object"&&r[0]!==null&&r[0].styles!==void 0)return r[0];var o=!0,s="";L=void 0;var d=r[0];d==null||d.raw===void 0?(o=!1,s+=ue(a,n,d)):(process.env.NODE_ENV!=="production"&&d[0]===void 0&&console.error(nr),s+=d[0]);for(var f=1;f<r.length;f++)s+=ue(a,n,r[f]),o&&(process.env.NODE_ENV!=="production"&&d[f]===void 0&&console.error(nr),s+=d[f]);var l;process.env.NODE_ENV!=="production"&&(s=s.replace(ur,function(R){return l=R,""})),cr.lastIndex=0;for(var p="",u;(u=cr.exec(s))!==null;)p+="-"+u[1];var v=wt(s)+p;return process.env.NODE_ENV!=="production"?{name:v,styles:s,map:l,next:L,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:v,styles:s,next:L}},Pt=!0;function fr(e,r,n){var a="";return n.split(" ").forEach(function(o){e[o]!==void 0?r.push(e[o]+";"):a+=o+" "}),a}var At=function(r,n,a){var o=r.key+"-"+n.name;(a===!1||Pt===!1)&&r.registered[o]===void 0&&(r.registered[o]=n.styles)},$t=function(r,n,a){At(r,n,a);var o=r.key+"-"+n.name;if(r.inserted[n.name]===void 0){var s=n;do r.insert(n===s?"."+o:"",s,r.sheet,!0),s=s.next;while(s!==void 0)}};function lr(e,r){if(e.inserted[r.name]===void 0)return e.insert("",r,e.sheet,!0)}function dr(e,r,n){var a=[],o=fr(e,a,n);return a.length<2?n:o+r(a)}var jt=function(r){var n=Et(r);n.sheet.speedy=function(f){if(process.env.NODE_ENV!=="production"&&this.ctr!==0)throw new Error("speedy must be changed before any rules are inserted");this.isSpeedy=f},n.compat=!0;var a=function(){for(var l=arguments.length,p=new Array(l),u=0;u<l;u++)p[u]=arguments[u];var v=De(p,n.registered,void 0);return $t(n,v,!1),n.key+"-"+v.name},o=function(){for(var l=arguments.length,p=new Array(l),u=0;u<l;u++)p[u]=arguments[u];var v=De(p,n.registered),R="animation-"+v.name;return lr(n,{name:v.name,styles:"@keyframes "+R+"{"+v.styles+"}"}),R},s=function(){for(var l=arguments.length,p=new Array(l),u=0;u<l;u++)p[u]=arguments[u];var v=De(p,n.registered);lr(n,v)},d=function(){for(var l=arguments.length,p=new Array(l),u=0;u<l;u++)p[u]=arguments[u];return dr(n.registered,a,Dt(p))};return{css:a,cx:d,injectGlobal:s,keyframes:o,hydrate:function(l){l.forEach(function(p){n.inserted[p]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:fr.bind(null,n.registered),merge:dr.bind(null,n.registered,a)}},Dt=function e(r){for(var n="",a=0;a<r.length;a++){var o=r[a];if(o!=null){var s=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))s=e(o);else{s="";for(var d in o)o[d]&&d&&(s&&(s+=" "),s+=d)}break}default:s=o}s&&(n&&(n+=" "),n+=s)}}return n},It=jt({key:"css"}),Ft=It.css;const Vt=({...e})=>{let{children:r,as:n,size:a,weight:o,className:s,lineHeight:d,color:f,textAlign:l,textDecoration:p,textOverflow:u,textTransform:v,whiteSpace:R,wordBreak:P,wordWrap:k,fontFamily:g,...A}=e;return a??(a="1rem"),o??(o=400),d??(d=1.5),f??(f="black"),l??(l="left"),p??(p="none"),u??(u="clip"),v??(v="none"),R??(R="normal"),P??(P="normal"),k??(k="normal"),g??(g="inherit"),H.jsx(Oe,{tag:n,className:`${s} ${Ft`
38
+ font-size: ${a};
39
+ font-weight: ${o};
40
+ line-height: ${d};
41
+ color: ${f};
42
+ text-align: ${l};
43
+ text-decoration: ${p};
44
+ text-overflow: ${u};
45
+ text-transform: ${v};
46
+ white-space: ${R};
47
+ word-break: ${P};
48
+ word-wrap: ${k};
49
+ font-family: ${g};
50
+ `}`,...A,children:r})};G.Container=Wr,G.HTML=Oe,G.Text=Vt,Object.defineProperty(G,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rinzai/zen",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -28,6 +28,7 @@
28
28
  "react-dom": "^18.2.0"
29
29
  },
30
30
  "devDependencies": {
31
+ "@emotion/css": "^11.10.5",
31
32
  "@storybook/addon-essentials": "^7.0.0-beta.15",
32
33
  "@storybook/addon-interactions": "^7.0.0-beta.15",
33
34
  "@storybook/addon-links": "^7.0.0-beta.15",