New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ws-ui/condfmt

Package Overview
Dependencies
Maintainers
7
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ws-ui/condfmt - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

16

dist/index.cjs.js

@@ -1,2 +0,2 @@

"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ce=require("react");function vr(t,...a){const u=a,c=(...y)=>{u.push(...y)},f=y=>{let m=-1;const b=v=>{if(v===m)throw new Error("next() called multiple times");m=v;const T=u[v];return T?T.run(y,()=>b(v+1),{push:c,execute:f}):t};return b(0)};return{push:c,execute:f}}var Q={exports:{}},N={};/**
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ce=require("react");function fr(r,...a){const i=a,c=(...y)=>{i.push(...y)},d=y=>{let g=-1;const b=v=>{if(v===g)throw new Error("next() called multiple times");g=v;const T=i[v];return T?T.run(y,()=>b(v+1),{push:c,execute:d}):r};return b(0)};return{push:c,execute:d}}var Q={exports:{}},N={};/**
* @license React

@@ -9,3 +9,3 @@ * react-jsx-runtime.production.min.js

* LICENSE file in the root directory of this source tree.
*/var je;function pr(){if(je)return N;je=1;var t=Ce,a=Symbol.for("react.element"),u=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,f=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,y={key:!0,ref:!0,__self:!0,__source:!0};function m(b,v,T){var E,j={},C=null,Y=null;T!==void 0&&(C=""+T),v.key!==void 0&&(C=""+v.key),v.ref!==void 0&&(Y=v.ref);for(E in v)c.call(v,E)&&!y.hasOwnProperty(E)&&(j[E]=v[E]);if(b&&b.defaultProps)for(E in v=b.defaultProps,v)j[E]===void 0&&(j[E]=v[E]);return{$$typeof:a,type:b,key:C,ref:Y,props:j,_owner:f.current}}return N.Fragment=u,N.jsx=m,N.jsxs=m,N}var W={};/**
*/var je;function dr(){if(je)return N;je=1;var r=Ce,a=Symbol.for("react.element"),i=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,d=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,y={key:!0,ref:!0,__self:!0,__source:!0};function g(b,v,T){var E,j={},P=null,Y=null;T!==void 0&&(P=""+T),v.key!==void 0&&(P=""+v.key),v.ref!==void 0&&(Y=v.ref);for(E in v)c.call(v,E)&&!y.hasOwnProperty(E)&&(j[E]=v[E]);if(b&&b.defaultProps)for(E in v=b.defaultProps,v)j[E]===void 0&&(j[E]=v[E]);return{$$typeof:a,type:b,key:P,ref:Y,props:j,_owner:d.current}}return N.Fragment=i,N.jsx=g,N.jsxs=g,N}var W={};/**
* @license React

@@ -18,11 +18,11 @@ * react-jsx-runtime.development.js

* LICENSE file in the root directory of this source tree.
*/var Oe;function hr(){return Oe||(Oe=1,process.env.NODE_ENV!=="production"&&function(){var t=Ce,a=Symbol.for("react.element"),u=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),b=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),Y=Symbol.for("react.offscreen"),ee=Symbol.iterator,De="@@iterator";function $e(e){if(e===null||typeof e!="object")return null;var r=ee&&e[ee]||e[De];return typeof r=="function"?r:null}var k=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(e){{for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];Fe("error",e,n)}}function Fe(e,r,n){{var o=k.ReactDebugCurrentFrame,l=o.getStackAddendum();l!==""&&(r+="%s",n=n.concat([l]));var d=n.map(function(s){return String(s)});d.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,d)}}var Ae=!1,Ie=!1,Ne=!1,We=!1,Ye=!1,re;re=Symbol.for("react.module.reference");function Le(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===y||Ye||e===f||e===T||e===E||We||e===Y||Ae||Ie||Ne||typeof e=="object"&&e!==null&&(e.$$typeof===C||e.$$typeof===j||e.$$typeof===m||e.$$typeof===b||e.$$typeof===v||e.$$typeof===re||e.getModuleId!==void 0))}function Ve(e,r,n){var o=e.displayName;if(o)return o;var l=r.displayName||r.name||"";return l!==""?n+"("+l+")":n}function te(e){return e.displayName||"Context"}function O(e){if(e==null)return null;if(typeof e.tag=="number"&&R("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 c:return"Fragment";case u:return"Portal";case y:return"Profiler";case f:return"StrictMode";case T:return"Suspense";case E:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case b:var r=e;return te(r)+".Consumer";case m:var n=e;return te(n._context)+".Provider";case v:return Ve(e,e.render,"ForwardRef");case j:var o=e.displayName||null;return o!==null?o:O(e.type)||"Memo";case C:{var l=e,d=l._payload,s=l._init;try{return O(s(d))}catch{return null}}}return null}var w=Object.assign,A=0,ne,ae,oe,ie,se,ue,ce;function le(){}le.__reactDisabledLog=!0;function Me(){{if(A===0){ne=console.log,ae=console.info,oe=console.warn,ie=console.error,se=console.group,ue=console.groupCollapsed,ce=console.groupEnd;var e={configurable:!0,enumerable:!0,value:le,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}A++}}function Ue(){{if(A--,A===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:w({},e,{value:ne}),info:w({},e,{value:ae}),warn:w({},e,{value:oe}),error:w({},e,{value:ie}),group:w({},e,{value:se}),groupCollapsed:w({},e,{value:ue}),groupEnd:w({},e,{value:ce})})}A<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var q=k.ReactCurrentDispatcher,B;function L(e,r,n){{if(B===void 0)try{throw Error()}catch(l){var o=l.stack.trim().match(/\n( *(at )?)/);B=o&&o[1]||""}return`
`+B+e}}var G=!1,V;{var Je=typeof WeakMap=="function"?WeakMap:Map;V=new Je}function fe(e,r){if(!e||G)return"";{var n=V.get(e);if(n!==void 0)return n}var o;G=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var d;d=q.current,q.current=null,Me();try{if(r){var s=function(){throw Error()};if(Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(x){o=x}Reflect.construct(e,[],s)}else{try{s.call()}catch(x){o=x}e.call(s.prototype)}}else{try{throw Error()}catch(x){o=x}e()}}catch(x){if(x&&o&&typeof x.stack=="string"){for(var i=x.stack.split(`
*/var xe;function pr(){return xe||(xe=1,process.env.NODE_ENV!=="production"&&function(){var r=Ce,a=Symbol.for("react.element"),i=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),b=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),Y=Symbol.for("react.offscreen"),ee=Symbol.iterator,Pe="@@iterator";function $e(e){if(e===null||typeof e!="object")return null;var t=ee&&e[ee]||e[Pe];return typeof t=="function"?t:null}var D=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];De("error",e,n)}}function De(e,t,n){{var o=D.ReactDebugCurrentFrame,l=o.getStackAddendum();l!==""&&(t+="%s",n=n.concat([l]));var p=n.map(function(u){return String(u)});p.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,p)}}var ke=!1,Fe=!1,Ae=!1,Ie=!1,Ne=!1,re;re=Symbol.for("react.module.reference");function We(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===y||Ne||e===d||e===T||e===E||Ie||e===Y||ke||Fe||Ae||typeof e=="object"&&e!==null&&(e.$$typeof===P||e.$$typeof===j||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===re||e.getModuleId!==void 0))}function Ye(e,t,n){var o=e.displayName;if(o)return o;var l=t.displayName||t.name||"";return l!==""?n+"("+l+")":n}function te(e){return e.displayName||"Context"}function x(e){if(e==null)return null;if(typeof e.tag=="number"&&R("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 c:return"Fragment";case i:return"Portal";case y:return"Profiler";case d:return"StrictMode";case T:return"Suspense";case E:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case b:var t=e;return te(t)+".Consumer";case g:var n=e;return te(n._context)+".Provider";case v:return Ye(e,e.render,"ForwardRef");case j:var o=e.displayName||null;return o!==null?o:x(e.type)||"Memo";case P:{var l=e,p=l._payload,u=l._init;try{return x(u(p))}catch{return null}}}return null}var $=Object.assign,A=0,ne,ae,oe,ie,se,ue,ce;function le(){}le.__reactDisabledLog=!0;function Le(){{if(A===0){ne=console.log,ae=console.info,oe=console.warn,ie=console.error,se=console.group,ue=console.groupCollapsed,ce=console.groupEnd;var e={configurable:!0,enumerable:!0,value:le,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}A++}}function Ve(){{if(A--,A===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:$({},e,{value:ne}),info:$({},e,{value:ae}),warn:$({},e,{value:oe}),error:$({},e,{value:ie}),group:$({},e,{value:se}),groupCollapsed:$({},e,{value:ue}),groupEnd:$({},e,{value:ce})})}A<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var q=D.ReactCurrentDispatcher,B;function L(e,t,n){{if(B===void 0)try{throw Error()}catch(l){var o=l.stack.trim().match(/\n( *(at )?)/);B=o&&o[1]||""}return`
`+B+e}}var H=!1,V;{var Je=typeof WeakMap=="function"?WeakMap:Map;V=new Je}function fe(e,t){if(!e||H)return"";{var n=V.get(e);if(n!==void 0)return n}var o;H=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=q.current,q.current=null,Le();try{if(t){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(O){o=O}Reflect.construct(e,[],u)}else{try{u.call()}catch(O){o=O}e.call(u.prototype)}}else{try{throw Error()}catch(O){o=O}e()}}catch(O){if(O&&o&&typeof O.stack=="string"){for(var s=O.stack.split(`
`),_=o.stack.split(`
`),p=i.length-1,h=_.length-1;p>=1&&h>=0&&i[p]!==_[h];)h--;for(;p>=1&&h>=0;p--,h--)if(i[p]!==_[h]){if(p!==1||h!==1)do if(p--,h--,h<0||i[p]!==_[h]){var S=`
`+i[p].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),typeof e=="function"&&V.set(e,S),S}while(p>=1&&h>=0);break}}}finally{G=!1,q.current=d,Ue(),Error.prepareStackTrace=l}var $=e?e.displayName||e.name:"",Te=$?L($):"";return typeof e=="function"&&V.set(e,Te),Te}function qe(e,r,n){return fe(e,!1)}function Be(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function M(e,r,n){if(e==null)return"";if(typeof e=="function")return fe(e,Be(e));if(typeof e=="string")return L(e);switch(e){case T:return L("Suspense");case E:return L("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case v:return qe(e.render);case j:return M(e.type,r,n);case C:{var o=e,l=o._payload,d=o._init;try{return M(d(l),r,n)}catch{}}}return""}var U=Object.prototype.hasOwnProperty,de={},ve=k.ReactDebugCurrentFrame;function J(e){if(e){var r=e._owner,n=M(e.type,e._source,r?r.type:null);ve.setExtraStackFrame(n)}else ve.setExtraStackFrame(null)}function Ge(e,r,n,o,l){{var d=Function.call.bind(U);for(var s in e)if(d(e,s)){var i=void 0;try{if(typeof e[s]!="function"){var _=Error((o||"React class")+": "+n+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _.name="Invariant Violation",_}i=e[s](r,s,o,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(p){i=p}i&&!(i instanceof Error)&&(J(l),R("%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).",o||"React class",n,s,typeof i),J(null)),i instanceof Error&&!(i.message in de)&&(de[i.message]=!0,J(l),R("Failed %s type: %s",n,i.message),J(null))}}}var ze=Array.isArray;function z(e){return ze(e)}function He(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,n=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function Ke(e){try{return pe(e),!1}catch{return!0}}function pe(e){return""+e}function he(e){if(Ke(e))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",He(e)),pe(e)}var I=k.ReactCurrentOwner,Xe={key:!0,ref:!0,__self:!0,__source:!0},ge,me,H;H={};function Ze(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 Qe(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 er(e,r){if(typeof e.ref=="string"&&I.current&&r&&I.current.stateNode!==r){var n=O(I.current.type);H[n]||(R('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',O(I.current.type),e.ref),H[n]=!0)}}function rr(e,r){{var n=function(){ge||(ge=!0,R("%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))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function tr(e,r){{var n=function(){me||(me=!0,R("%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))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var nr=function(e,r,n,o,l,d,s){var i={$$typeof:a,type:e,key:r,ref:n,props:s,_owner:d};return i._store={},Object.defineProperty(i._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(i,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(i,"_source",{configurable:!1,enumerable:!1,writable:!1,value:l}),Object.freeze&&(Object.freeze(i.props),Object.freeze(i)),i};function ar(e,r,n,o,l){{var d,s={},i=null,_=null;n!==void 0&&(he(n),i=""+n),Qe(r)&&(he(r.key),i=""+r.key),Ze(r)&&(_=r.ref,er(r,l));for(d in r)U.call(r,d)&&!Xe.hasOwnProperty(d)&&(s[d]=r[d]);if(e&&e.defaultProps){var p=e.defaultProps;for(d in p)s[d]===void 0&&(s[d]=p[d])}if(i||_){var h=typeof e=="function"?e.displayName||e.name||"Unknown":e;i&&rr(s,h),_&&tr(s,h)}return nr(e,i,_,l,o,I.current,s)}}var K=k.ReactCurrentOwner,ye=k.ReactDebugCurrentFrame;function D(e){if(e){var r=e._owner,n=M(e.type,e._source,r?r.type:null);ye.setExtraStackFrame(n)}else ye.setExtraStackFrame(null)}var X;X=!1;function Z(e){return typeof e=="object"&&e!==null&&e.$$typeof===a}function be(){{if(K.current){var e=O(K.current.type);if(e)return`
`),h=s.length-1,m=_.length-1;h>=1&&m>=0&&s[h]!==_[m];)m--;for(;h>=1&&m>=0;h--,m--)if(s[h]!==_[m]){if(h!==1||m!==1)do if(h--,m--,m<0||s[h]!==_[m]){var S=`
`+s[h].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),typeof e=="function"&&V.set(e,S),S}while(h>=1&&m>=0);break}}}finally{H=!1,q.current=p,Ve(),Error.prepareStackTrace=l}var F=e?e.displayName||e.name:"",Te=F?L(F):"";return typeof e=="function"&&V.set(e,Te),Te}function Me(e,t,n){return fe(e,!1)}function Ue(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function J(e,t,n){if(e==null)return"";if(typeof e=="function")return fe(e,Ue(e));if(typeof e=="string")return L(e);switch(e){case T:return L("Suspense");case E:return L("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case v:return Me(e.render);case j:return J(e.type,t,n);case P:{var o=e,l=o._payload,p=o._init;try{return J(p(l),t,n)}catch{}}}return""}var M=Object.prototype.hasOwnProperty,de={},pe=D.ReactDebugCurrentFrame;function U(e){if(e){var t=e._owner,n=J(e.type,e._source,t?t.type:null);pe.setExtraStackFrame(n)}else pe.setExtraStackFrame(null)}function qe(e,t,n,o,l){{var p=Function.call.bind(M);for(var u in e)if(p(e,u)){var s=void 0;try{if(typeof e[u]!="function"){var _=Error((o||"React class")+": "+n+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _.name="Invariant Violation",_}s=e[u](t,u,o,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(h){s=h}s&&!(s instanceof Error)&&(U(l),R("%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).",o||"React class",n,u,typeof s),U(null)),s instanceof Error&&!(s.message in de)&&(de[s.message]=!0,U(l),R("Failed %s type: %s",n,s.message),U(null))}}}var Be=Array.isArray;function G(e){return Be(e)}function He(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function Ge(e){try{return ve(e),!1}catch{return!0}}function ve(e){return""+e}function he(e){if(Ge(e))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",He(e)),ve(e)}var I=D.ReactCurrentOwner,ze={key:!0,ref:!0,__self:!0,__source:!0},ye,ge,z;z={};function Ke(e){if(M.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Xe(e){if(M.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Ze(e,t){if(typeof e.ref=="string"&&I.current&&t&&I.current.stateNode!==t){var n=x(I.current.type);z[n]||(R('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',x(I.current.type),e.ref),z[n]=!0)}}function Qe(e,t){{var n=function(){ye||(ye=!0,R("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function er(e,t){{var n=function(){ge||(ge=!0,R("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var rr=function(e,t,n,o,l,p,u){var s={$$typeof:a,type:e,key:t,ref:n,props:u,_owner:p};return s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:l}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function tr(e,t,n,o,l){{var p,u={},s=null,_=null;n!==void 0&&(he(n),s=""+n),Xe(t)&&(he(t.key),s=""+t.key),Ke(t)&&(_=t.ref,Ze(t,l));for(p in t)M.call(t,p)&&!ze.hasOwnProperty(p)&&(u[p]=t[p]);if(e&&e.defaultProps){var h=e.defaultProps;for(p in h)u[p]===void 0&&(u[p]=h[p])}if(s||_){var m=typeof e=="function"?e.displayName||e.name||"Unknown":e;s&&Qe(u,m),_&&er(u,m)}return rr(e,s,_,l,o,I.current,u)}}var K=D.ReactCurrentOwner,me=D.ReactDebugCurrentFrame;function k(e){if(e){var t=e._owner,n=J(e.type,e._source,t?t.type:null);me.setExtraStackFrame(n)}else me.setExtraStackFrame(null)}var X;X=!1;function Z(e){return typeof e=="object"&&e!==null&&e.$$typeof===a}function be(){{if(K.current){var e=x(K.current.type);if(e)return`
Check the render method of \``+e+"`."}return""}}function or(e){return""}var Re={};function ir(e){{var r=be();if(!r){var n=typeof e=="string"?e:e.displayName||e.name;n&&(r=`
Check the render method of \``+e+"`."}return""}}function nr(e){return""}var Re={};function ar(e){{var t=be();if(!t){var n=typeof e=="string"?e:e.displayName||e.name;n&&(t=`
Check the top-level render call using <`+n+">.")}return r}}function _e(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=ir(r);if(Re[n])return;Re[n]=!0;var o="";e&&e._owner&&e._owner!==K.current&&(o=" It was passed a child from "+O(e._owner.type)+"."),D(e),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,o),D(null)}}function Ee(e,r){{if(typeof e!="object")return;if(z(e))for(var n=0;n<e.length;n++){var o=e[n];Z(o)&&_e(o,r)}else if(Z(e))e._store&&(e._store.validated=!0);else if(e){var l=$e(e);if(typeof l=="function"&&l!==e.entries)for(var d=l.call(e),s;!(s=d.next()).done;)Z(s.value)&&_e(s.value,r)}}}function sr(e){{var r=e.type;if(r==null||typeof r=="string")return;var n;if(typeof r=="function")n=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===v||r.$$typeof===j))n=r.propTypes;else return;if(n){var o=O(r);Ge(n,e.props,"prop",o,e)}else if(r.PropTypes!==void 0&&!X){X=!0;var l=O(r);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",l||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&R("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),n=0;n<r.length;n++){var o=r[n];if(o!=="children"&&o!=="key"){D(e),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),D(null);break}}e.ref!==null&&(D(e),R("Invalid attribute `ref` supplied to `React.Fragment`."),D(null))}}function Se(e,r,n,o,l,d){{var s=Le(e);if(!s){var i="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(i+=" 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 _=or();_?i+=_:i+=be();var p;e===null?p="null":z(e)?p="array":e!==void 0&&e.$$typeof===a?(p="<"+(O(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):p=typeof e,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",p,i)}var h=ar(e,r,n,l,d);if(h==null)return h;if(s){var S=r.children;if(S!==void 0)if(o)if(z(S)){for(var $=0;$<S.length;$++)Ee(S[$],e);Object.freeze&&Object.freeze(S)}else R("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 Ee(S,e)}return e===c?ur(h):sr(h),h}}function cr(e,r,n){return Se(e,r,n,!0)}function lr(e,r,n){return Se(e,r,n,!1)}var fr=lr,dr=cr;W.Fragment=c,W.jsx=fr,W.jsxs=dr}()),W}process.env.NODE_ENV==="production"?Q.exports=pr():Q.exports=hr();var g=Q.exports;const gr=["#CCCCCC","#68CD99","#FDB100","#D0ACEF","#659CF9"];function we(t){return t==null}function mr(t=0,a=gr){return a[t%a.length]}const P=(t,a="",u="string")=>{let c=!1,f=t;if(!we(t))switch(u){case"number":f=Number(t);break;case"boolean":f=t&&t!=="false";break;case"string":f=t,c=!0;break;case"date":f=`Date("${new Date(t).toISOString()}")`;break;case"object":case"array":try{f=JSON.parse(t),f=`${u==="array"?"Array":"Object"}(${JSON.stringify(f)})`}catch{f="Invalid JSON"}break;default:f=t;break}const y=c?JSON.stringify(f):String(f);return a?`${a}(${y})`:y};function F(t){switch(t){case"eq":return"==";case"neq":return"!=";case"gt":return">";case"gte":return">=";case"lt":return"<";case"lte":return"<=";case"or":return"||";case"and":return"&&";default:return t}}function yr(t,a){const{condition:u,opts:c}=t,{depth:f=0,colors:y}=c,m=mr(f,y);return g.jsx("ul",{style:{padding:0,color:m},children:u.conditions.map((b,v)=>g.jsxs("li",{style:{display:"flex"},children:[v>0?g.jsx("span",{style:{marginRight:4},children:F(u.op)}):g.jsx("span",{style:{paddingLeft:f>0?0:24}}),g.jsx("div",{children:a.execute({condition:b,opts:{...c,depth:f+1}})})]},b.id))})}const br="_condfmt_1gu85_8",Rr="_op_1gu85_13",xe={condfmt:br,op:Rr},_r=({ctx:t,pipeline:a})=>{const{condition:u,opts:c}=t,{depth:f=0,render:y=({children:m})=>m}=c;return g.jsxs("ul",{className:xe.condfmt,children:[g.jsx("span",{className:xe.op,children:g.jsx(y,{opts:c,condition:u,children:F(u.op)})}),u.conditions.map(m=>{const b=a.execute({condition:m,opts:{...c,depth:f+1}});return g.jsx("li",{children:b},m.id)})]})},Er={name:"combination",run(t,a,u){if(t.condition.type!=="combination")return a();switch(t.opts.formatter){case"text":return yr(t,u);case"jsx":return g.jsx(_r,{ctx:t,pipeline:u})}}};function Sr(t){const{condition:a}=t;return`${P(a.path,"DataSource")} ${F(a.op)} ${P(a.value,a.valueType==="datasource"?"DataSource":"",a.dataType)}`}const Tr=({condition:t,opts:a})=>{const{render:u=({children:c})=>c}=a;return g.jsxs(u,{opts:a,condition:t,children:[P(t.path,"DataSource"),g.jsx("span",{style:{padding:"0 0.25rem"},children:F(t.op)}),P(t.value,t.valueType==="datasource"?"DataSource":"",t.dataType)]})},jr={name:"datasource",run(t,a){if(t.condition.type!=="datasource")return a();switch(t.opts.formatter){case"text":return Sr(t);default:return g.jsx(Tr,{...t})}}};function Pe(t){const{condition:a}=t;return`Has a Privilege ${F(a.op)} ${a.valueType==="datasource"?`DataSource(${JSON.stringify(a.value)})`:JSON.stringify(a.value)}`}const Or=({condition:t,opts:a})=>{const{render:u=({children:c})=>c}=a;return g.jsx(u,{opts:a,condition:t,children:Pe({condition:t,opts:a})})},xr={name:"privilege",run(t,a){if(t.condition.type!=="privilege")return a();switch(t.opts.formatter){case"text":return Pe(t);case"jsx":return g.jsx(Or,{...t})}}};function Cr(t){var u,c;const{condition:a}=t;return P((c=(u=t.opts.refs)==null?void 0:u[a.ref])==null?void 0:c.name,"Ref")}const wr=({condition:t,opts:a})=>{var f,y,m,b;const{render:u=({children:v})=>v}=a,c=P((y=(f=a.refs)==null?void 0:f[t.ref])==null?void 0:y.name);return g.jsxs(u,{opts:a,condition:t,children:["Ref(",we((b=(m=a.refs)==null?void 0:m[t.ref])==null?void 0:b.name)?c:g.jsx(u,{opts:a,condition:{...t,spot:"reference:value"},children:c}),")"]})},Pr={name:"reference",run(t,a){if(t.condition.type!=="reference")return a();switch(t.opts.formatter){case"text":return Cr(t);case"jsx":return g.jsx(wr,{...t})}}};function ke(t){const{condition:a}=t;return`Has a ${a.type==="parentState"?"ParentState":"CurrentState"} ${F(a.op)} ${P(a.value,a.valueType==="datasource"?"DataSource":"")}`}const kr=({condition:t,opts:a})=>{const{render:u=({children:c})=>c}=a;return g.jsx(u,{opts:a,condition:t,children:ke({condition:t,opts:a})})},Dr={name:"state",run(t,a){if(!["parentState","currentState"].includes(t.condition.type))return a();switch(t.opts.formatter){case"text":return ke(t);case"jsx":return g.jsx(kr,{...t})}}},$r=vr(null,Er,jr,xr,Dr,Pr).execute;exports.format=$r;
Check the top-level render call using <`+n+">.")}return t}}function _e(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=ar(t);if(Re[n])return;Re[n]=!0;var o="";e&&e._owner&&e._owner!==K.current&&(o=" It was passed a child from "+x(e._owner.type)+"."),k(e),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,o),k(null)}}function Ee(e,t){{if(typeof e!="object")return;if(G(e))for(var n=0;n<e.length;n++){var o=e[n];Z(o)&&_e(o,t)}else if(Z(e))e._store&&(e._store.validated=!0);else if(e){var l=$e(e);if(typeof l=="function"&&l!==e.entries)for(var p=l.call(e),u;!(u=p.next()).done;)Z(u.value)&&_e(u.value,t)}}}function or(e){{var t=e.type;if(t==null||typeof t=="string")return;var n;if(typeof t=="function")n=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===v||t.$$typeof===j))n=t.propTypes;else return;if(n){var o=x(t);qe(n,e.props,"prop",o,e)}else if(t.PropTypes!==void 0&&!X){X=!0;var l=x(t);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",l||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ir(e){{for(var t=Object.keys(e.props),n=0;n<t.length;n++){var o=t[n];if(o!=="children"&&o!=="key"){k(e),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),k(null);break}}e.ref!==null&&(k(e),R("Invalid attribute `ref` supplied to `React.Fragment`."),k(null))}}function Se(e,t,n,o,l,p){{var u=We(e);if(!u){var s="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(s+=" 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 _=nr();_?s+=_:s+=be();var h;e===null?h="null":G(e)?h="array":e!==void 0&&e.$$typeof===a?(h="<"+(x(e.type)||"Unknown")+" />",s=" Did you accidentally export a JSX literal instead of a component?"):h=typeof e,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",h,s)}var m=tr(e,t,n,l,p);if(m==null)return m;if(u){var S=t.children;if(S!==void 0)if(o)if(G(S)){for(var F=0;F<S.length;F++)Ee(S[F],e);Object.freeze&&Object.freeze(S)}else R("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 Ee(S,e)}return e===c?ir(m):or(m),m}}function sr(e,t,n){return Se(e,t,n,!0)}function ur(e,t,n){return Se(e,t,n,!1)}var cr=ur,lr=sr;W.Fragment=c,W.jsx=cr,W.jsxs=lr}()),W}process.env.NODE_ENV==="production"?Q.exports=dr():Q.exports=pr();var f=Q.exports;const vr=["#CCCCCC","#68CD99","#FDB100","#D0ACEF","#659CF9"];function we(r){return r==null}function hr(r=0,a=vr){return a[r%a.length]}const C=(r,a="",i="string")=>{let c=!1,d=r;if(!we(r))switch(i){case"number":d=Number(r);break;case"boolean":d=r&&r!=="false";break;case"string":d=r,c=!0;break;case"date":d=`Date("${new Date(r).toISOString()}")`;break;case"object":case"array":try{d=JSON.parse(r),d=`${i==="array"?"Array":"Object"}(${JSON.stringify(d)})`}catch{d="Invalid JSON"}break;default:d=r;break}const y=c?JSON.stringify(d):String(d);return a?`${a}(${y})`:y};function w(r){switch(r){case"eq":return"==";case"neq":return"!=";case"gt":return">";case"gte":return">=";case"lt":return"<";case"lte":return"<=";case"or":return"||";case"and":return"&&";default:return r}}function yr(r,a){const{condition:i,opts:c}=r,{depth:d=0,colors:y}=c,g=hr(d,y);return f.jsx("ul",{style:{padding:0,color:g},children:i.conditions.map((b,v)=>f.jsxs("li",{style:{display:"flex"},children:[v>0?f.jsx("span",{style:{marginRight:4},children:w(i.op)}):f.jsx("span",{style:{paddingLeft:d>0?0:24}}),f.jsx("div",{children:a.execute({condition:b,opts:{...c,depth:d+1}})})]},b.id))})}const gr="_condfmt_1gu85_8",mr="_op_1gu85_13",Oe={condfmt:gr,op:mr},br=({ctx:r,pipeline:a})=>{const{condition:i,opts:c}=r,{depth:d=0,render:y=({children:g})=>g}=c;return f.jsx(y,{opts:c,condition:{...i,spot:"root"},children:f.jsxs("ul",{className:Oe.condfmt,children:[f.jsx("span",{className:Oe.op,children:f.jsx(y,{opts:c,condition:{...i,spot:"op"},children:w(i.op)})}),i.conditions.map(g=>{const b=a.execute({condition:g,opts:{...c,depth:d+1}});return f.jsx("li",{children:f.jsx(y,{opts:c,condition:{...i,spot:`child:${g.type}`},children:b})},g.id)})]})})},Rr={name:"combination",run(r,a,i){if(r.condition.type!=="combination")return a();switch(r.opts.formatter){case"text":return yr(r,i);case"jsx":return f.jsx(br,{ctx:r,pipeline:i})}}};function _r(r){const{condition:a}=r;return`${C(a.path,"DataSource")} ${w(a.op)} ${C(a.value,a.valueType==="datasource"?"DataSource":"",a.dataType)}`}const Er=({condition:r,opts:a})=>{const{render:i=({children:c})=>c}=a;return f.jsxs(i,{opts:a,condition:{...r,spot:"root"},children:[f.jsx(i,{opts:a,condition:{...r,spot:"ds"},children:C(r.path,"DataSource")}),f.jsx(i,{opts:a,condition:{...r,spot:"op"},children:` ${w(r.op)} `}),r.valueType==="datasource"?f.jsx(i,{opts:a,condition:{...r,spot:"ds"},children:C(r.value,"DataSource",r.dataType)}):f.jsx(i,{opts:a,condition:{...r,spot:"value"},children:C(r.value,"",r.dataType)})]})},Sr={name:"datasource",run(r,a){if(r.condition.type!=="datasource")return a();switch(r.opts.formatter){case"text":return _r(r);default:return f.jsx(Er,{...r})}}};function Tr(r){const{condition:a}=r;return`Has a Privilege ${w(a.op)} ${a.valueType==="datasource"?`DataSource(${JSON.stringify(a.value)})`:JSON.stringify(a.value)}`}const jr=({condition:r,opts:a})=>{const{render:i=({children:c})=>c}=a;return f.jsxs(i,{opts:a,condition:{...r,spot:"root"},children:["Has a Privilege",f.jsx(i,{opts:a,condition:{...r,spot:"op"},children:` ${w(r.op)} `}),f.jsx(i,{opts:a,condition:{...r,spot:r.valueType==="datasource"?"ds":"value"},children:r.valueType==="datasource"?`DataSource(${JSON.stringify(r.value)})`:JSON.stringify(r.value)})]})},xr={name:"privilege",run(r,a){if(r.condition.type!=="privilege")return a();switch(r.opts.formatter){case"text":return Tr(r);case"jsx":return f.jsx(jr,{...r})}}};function Or(r){var i,c;const{condition:a}=r;return C((c=(i=r.opts.refs)==null?void 0:i[a.ref])==null?void 0:c.name,"Ref")}const Cr=({condition:r,opts:a})=>{var d,y,g,b;const{render:i=({children:v})=>v}=a,c=C((y=(d=a.refs)==null?void 0:d[r.ref])==null?void 0:y.name);return f.jsxs(i,{opts:a,condition:{...r,spot:"root"},children:["Ref(",we((b=(g=a.refs)==null?void 0:g[r.ref])==null?void 0:b.name)?c:f.jsx(i,{opts:a,condition:{...r,spot:"value"},children:c}),")"]})},wr={name:"reference",run(r,a){if(r.condition.type!=="reference")return a();switch(r.opts.formatter){case"text":return Or(r);case"jsx":return f.jsx(Cr,{...r})}}};function Pr(r){const{condition:a}=r;return`Has a ${a.type==="parentState"?"ParentState":"CurrentState"} ${w(a.op)} ${C(a.value,a.valueType==="datasource"?"DataSource":"")}`}const $r=({condition:r,opts:a})=>{const{render:i=({children:c})=>c}=a;return f.jsxs(i,{opts:a,condition:{...r,spot:"root"},children:["Has a ",r.type==="parentState"?"ParentState":"CurrentState",f.jsx(i,{opts:a,condition:{...r,spot:"op"},children:` ${w(r.op)} `}),f.jsx(i,{opts:a,condition:{...r,spot:r.valueType==="datasource"?"ds":"value"},children:r.valueType==="datasource"?`DataSource(${JSON.stringify(r.value)})`:JSON.stringify(r.value)})]})},Dr={name:"state",run(r,a){if(!["parentState","currentState"].includes(r.condition.type))return a();switch(r.opts.formatter){case"text":return Pr(r);case"jsx":return f.jsx($r,{...r})}}},kr=fr(null,Rr,Sr,xr,Dr,wr).execute;exports.format=kr;
//# sourceMappingURL=index.cjs.js.map
import Ce from "react";
function vr(t, ...a) {
const u = a, c = (...y) => {
u.push(...y);
}, f = (y) => {
let m = -1;
function fr(r, ...a) {
const i = a, c = (...y) => {
i.push(...y);
}, d = (y) => {
let g = -1;
const b = (v) => {
if (v === m)
if (v === g)
throw new Error("next() called multiple times");
m = v;
const T = u[v];
g = v;
const T = i[v];
return T ? T.run(y, () => b(v + 1), {
push: c,
execute: f
}) : t;
execute: d
}) : r;
};
return b(0);
};
return { push: c, execute: f };
return { push: c, execute: d };
}

@@ -32,10 +32,10 @@ var Q = { exports: {} }, N = {};

var je;
function pr() {
function dr() {
if (je)
return N;
je = 1;
var t = Ce, a = Symbol.for("react.element"), u = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, f = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
function m(b, v, T) {
var E, j = {}, C = null, Y = null;
T !== void 0 && (C = "" + T), v.key !== void 0 && (C = "" + v.key), v.ref !== void 0 && (Y = v.ref);
var r = Ce, a = Symbol.for("react.element"), i = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, d = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
function g(b, v, T) {
var E, j = {}, P = null, Y = null;
T !== void 0 && (P = "" + T), v.key !== void 0 && (P = "" + v.key), v.ref !== void 0 && (Y = v.ref);
for (E in v)

@@ -46,5 +46,5 @@ c.call(v, E) && !y.hasOwnProperty(E) && (j[E] = v[E]);

j[E] === void 0 && (j[E] = v[E]);
return { $$typeof: a, type: b, key: C, ref: Y, props: j, _owner: f.current };
return { $$typeof: a, type: b, key: P, ref: Y, props: j, _owner: d.current };
}
return N.Fragment = u, N.jsx = m, N.jsxs = m, N;
return N.Fragment = i, N.jsx = g, N.jsxs = g, N;
}

@@ -61,34 +61,34 @@ var W = {};

*/
var Oe;
function hr() {
return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && function() {
var t = Ce, a = Symbol.for("react.element"), u = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), b = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), Y = Symbol.for("react.offscreen"), ee = Symbol.iterator, De = "@@iterator";
var xe;
function pr() {
return xe || (xe = 1, process.env.NODE_ENV !== "production" && function() {
var r = Ce, a = Symbol.for("react.element"), i = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), b = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), Y = Symbol.for("react.offscreen"), ee = Symbol.iterator, Pe = "@@iterator";
function $e(e) {
if (e === null || typeof e != "object")
return null;
var r = ee && e[ee] || e[De];
return typeof r == "function" ? r : null;
var t = ee && e[ee] || e[Pe];
return typeof t == "function" ? t : null;
}
var k = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
var D = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function R(e) {
{
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)
n[o - 1] = arguments[o];
Fe("error", e, n);
De("error", e, n);
}
}
function Fe(e, r, n) {
function De(e, t, n) {
{
var o = k.ReactDebugCurrentFrame, l = o.getStackAddendum();
l !== "" && (r += "%s", n = n.concat([l]));
var d = n.map(function(s) {
return String(s);
var o = D.ReactDebugCurrentFrame, l = o.getStackAddendum();
l !== "" && (t += "%s", n = n.concat([l]));
var p = n.map(function(u) {
return String(u);
});
d.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, d);
p.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, p);
}
}
var Ae = !1, Ie = !1, Ne = !1, We = !1, Ye = !1, re;
var ke = !1, Fe = !1, Ae = !1, Ie = !1, Ne = !1, re;
re = Symbol.for("react.module.reference");
function Le(e) {
return !!(typeof e == "string" || typeof e == "function" || e === c || e === y || Ye || e === f || e === T || e === E || We || e === Y || Ae || Ie || Ne || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === j || e.$$typeof === m || e.$$typeof === b || e.$$typeof === v || // This needs to include all possible module reference object
function We(e) {
return !!(typeof e == "string" || typeof e == "function" || e === c || e === y || Ne || e === d || e === T || e === E || Ie || e === Y || ke || Fe || Ae || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === j || e.$$typeof === g || e.$$typeof === b || e.$$typeof === v || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since

@@ -99,7 +99,7 @@ // we don't know which Flight build this will end up being used

}
function Ve(e, r, n) {
function Ye(e, t, n) {
var o = e.displayName;
if (o)
return o;
var l = r.displayName || r.name || "";
var l = t.displayName || t.name || "";
return l !== "" ? n + "(" + l + ")" : n;

@@ -110,3 +110,3 @@ }

}
function O(e) {
function x(e) {
if (e == null)

@@ -121,7 +121,7 @@ return null;

return "Fragment";
case u:
case i:
return "Portal";
case y:
return "Profiler";
case f:
case d:
return "StrictMode";

@@ -136,16 +136,16 @@ case T:

case b:
var r = e;
return te(r) + ".Consumer";
case m:
var t = e;
return te(t) + ".Consumer";
case g:
var n = e;
return te(n._context) + ".Provider";
case v:
return Ve(e, e.render, "ForwardRef");
return Ye(e, e.render, "ForwardRef");
case j:
var o = e.displayName || null;
return o !== null ? o : O(e.type) || "Memo";
case C: {
var l = e, d = l._payload, s = l._init;
return o !== null ? o : x(e.type) || "Memo";
case P: {
var l = e, p = l._payload, u = l._init;
try {
return O(s(d));
return x(u(p));
} catch {

@@ -158,7 +158,7 @@ return null;

}
var w = Object.assign, A = 0, ne, ae, oe, ie, se, ue, ce;
var $ = Object.assign, A = 0, ne, ae, oe, ie, se, ue, ce;
function le() {
}
le.__reactDisabledLog = !0;
function Me() {
function Le() {
{

@@ -186,3 +186,3 @@ if (A === 0) {

}
function Ue() {
function Ve() {
{

@@ -196,21 +196,21 @@ if (A--, A === 0) {

Object.defineProperties(console, {
log: w({}, e, {
log: $({}, e, {
value: ne
}),
info: w({}, e, {
info: $({}, e, {
value: ae
}),
warn: w({}, e, {
warn: $({}, e, {
value: oe
}),
error: w({}, e, {
error: $({}, e, {
value: ie
}),
group: w({}, e, {
group: $({}, e, {
value: se
}),
groupCollapsed: w({}, e, {
groupCollapsed: $({}, e, {
value: ue
}),
groupEnd: w({}, e, {
groupEnd: $({}, e, {
value: ce

@@ -223,4 +223,4 @@ })

}
var q = k.ReactCurrentDispatcher, B;
function L(e, r, n) {
var q = D.ReactCurrentDispatcher, B;
function L(e, t, n) {
{

@@ -238,3 +238,3 @@ if (B === void 0)

}
var G = !1, V;
var H = !1, V;
{

@@ -244,4 +244,4 @@ var Je = typeof WeakMap == "function" ? WeakMap : Map;

}
function fe(e, r) {
if (!e || G)
function fe(e, t) {
if (!e || H)
return "";

@@ -254,13 +254,13 @@ {

var o;
G = !0;
H = !0;
var l = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var d;
d = q.current, q.current = null, Me();
var p;
p = q.current, q.current = null, Le();
try {
if (r) {
var s = function() {
if (t) {
var u = function() {
throw Error();
};
if (Object.defineProperty(s.prototype, "props", {
if (Object.defineProperty(u.prototype, "props", {
set: function() {

@@ -271,14 +271,14 @@ throw Error();

try {
Reflect.construct(s, []);
} catch (x) {
o = x;
Reflect.construct(u, []);
} catch (O) {
o = O;
}
Reflect.construct(e, [], s);
Reflect.construct(e, [], u);
} else {
try {
s.call();
} catch (x) {
o = x;
u.call();
} catch (O) {
o = O;
}
e.call(s.prototype);
e.call(u.prototype);
}

@@ -288,23 +288,23 @@ } else {

throw Error();
} catch (x) {
o = x;
} catch (O) {
o = O;
}
e();
}
} catch (x) {
if (x && o && typeof x.stack == "string") {
for (var i = x.stack.split(`
} catch (O) {
if (O && o && typeof O.stack == "string") {
for (var s = O.stack.split(`
`), _ = o.stack.split(`
`), p = i.length - 1, h = _.length - 1; p >= 1 && h >= 0 && i[p] !== _[h]; )
h--;
for (; p >= 1 && h >= 0; p--, h--)
if (i[p] !== _[h]) {
if (p !== 1 || h !== 1)
`), h = s.length - 1, m = _.length - 1; h >= 1 && m >= 0 && s[h] !== _[m]; )
m--;
for (; h >= 1 && m >= 0; h--, m--)
if (s[h] !== _[m]) {
if (h !== 1 || m !== 1)
do
if (p--, h--, h < 0 || i[p] !== _[h]) {
if (h--, m--, m < 0 || s[h] !== _[m]) {
var S = `
` + i[p].replace(" at new ", " at ");
` + s[h].replace(" at new ", " at ");
return e.displayName && S.includes("<anonymous>") && (S = S.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, S), S;
}
while (p >= 1 && h >= 0);
while (h >= 1 && m >= 0);
break;

@@ -314,19 +314,19 @@ }

} finally {
G = !1, q.current = d, Ue(), Error.prepareStackTrace = l;
H = !1, q.current = p, Ve(), Error.prepareStackTrace = l;
}
var $ = e ? e.displayName || e.name : "", Te = $ ? L($) : "";
var F = e ? e.displayName || e.name : "", Te = F ? L(F) : "";
return typeof e == "function" && V.set(e, Te), Te;
}
function qe(e, r, n) {
function Me(e, t, n) {
return fe(e, !1);
}
function Be(e) {
var r = e.prototype;
return !!(r && r.isReactComponent);
function Ue(e) {
var t = e.prototype;
return !!(t && t.isReactComponent);
}
function M(e, r, n) {
function J(e, t, n) {
if (e == null)
return "";
if (typeof e == "function")
return fe(e, Be(e));
return fe(e, Ue(e));
if (typeof e == "string")

@@ -343,9 +343,9 @@ return L(e);

case v:
return qe(e.render);
return Me(e.render);
case j:
return M(e.type, r, n);
case C: {
var o = e, l = o._payload, d = o._init;
return J(e.type, t, n);
case P: {
var o = e, l = o._payload, p = o._init;
try {
return M(d(l), r, n);
return J(p(l), t, n);
} catch {

@@ -357,42 +357,42 @@ }

}
var U = Object.prototype.hasOwnProperty, de = {}, ve = k.ReactDebugCurrentFrame;
function J(e) {
var M = Object.prototype.hasOwnProperty, de = {}, pe = D.ReactDebugCurrentFrame;
function U(e) {
if (e) {
var r = e._owner, n = M(e.type, e._source, r ? r.type : null);
ve.setExtraStackFrame(n);
var t = e._owner, n = J(e.type, e._source, t ? t.type : null);
pe.setExtraStackFrame(n);
} else
ve.setExtraStackFrame(null);
pe.setExtraStackFrame(null);
}
function Ge(e, r, n, o, l) {
function qe(e, t, n, o, l) {
{
var d = Function.call.bind(U);
for (var s in e)
if (d(e, s)) {
var i = void 0;
var p = Function.call.bind(M);
for (var u in e)
if (p(e, u)) {
var s = void 0;
try {
if (typeof e[s] != "function") {
var _ = Error((o || "React class") + ": " + n + " type `" + s + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[s] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
if (typeof e[u] != "function") {
var _ = Error((o || "React class") + ": " + n + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw _.name = "Invariant Violation", _;
}
i = e[s](r, s, o, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (p) {
i = p;
s = e[u](t, u, o, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (h) {
s = h;
}
i && !(i instanceof Error) && (J(l), R("%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).", o || "React class", n, s, typeof i), J(null)), i instanceof Error && !(i.message in de) && (de[i.message] = !0, J(l), R("Failed %s type: %s", n, i.message), J(null));
s && !(s instanceof Error) && (U(l), R("%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).", o || "React class", n, u, typeof s), U(null)), s instanceof Error && !(s.message in de) && (de[s.message] = !0, U(l), R("Failed %s type: %s", n, s.message), U(null));
}
}
}
var ze = Array.isArray;
function z(e) {
return ze(e);
var Be = Array.isArray;
function G(e) {
return Be(e);
}
function He(e) {
{
var r = typeof Symbol == "function" && Symbol.toStringTag, n = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
var t = typeof Symbol == "function" && Symbol.toStringTag, n = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
return n;
}
}
function Ke(e) {
function Ge(e) {
try {
return pe(e), !1;
return ve(e), !1;
} catch {

@@ -402,10 +402,10 @@ return !0;

}
function pe(e) {
function ve(e) {
return "" + e;
}
function he(e) {
if (Ke(e))
return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(e)), pe(e);
if (Ge(e))
return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(e)), ve(e);
}
var I = k.ReactCurrentOwner, Xe = {
var I = D.ReactCurrentOwner, ze = {
key: !0,

@@ -415,8 +415,8 @@ ref: !0,

__source: !0
}, ge, me, H;
H = {};
function Ze(e) {
if (U.call(e, "ref")) {
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
if (r && r.isReactWarning)
}, ye, ge, z;
z = {};
function Ke(e) {
if (M.call(e, "ref")) {
var t = Object.getOwnPropertyDescriptor(e, "ref").get;
if (t && t.isReactWarning)
return !1;

@@ -426,6 +426,6 @@ }

}
function Qe(e) {
if (U.call(e, "key")) {
var r = Object.getOwnPropertyDescriptor(e, "key").get;
if (r && r.isReactWarning)
function Xe(e) {
if (M.call(e, "key")) {
var t = Object.getOwnPropertyDescriptor(e, "key").get;
if (t && t.isReactWarning)
return !1;

@@ -435,12 +435,12 @@ }

}
function er(e, r) {
if (typeof e.ref == "string" && I.current && r && I.current.stateNode !== r) {
var n = O(I.current.type);
H[n] || (R('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', O(I.current.type), e.ref), H[n] = !0);
function Ze(e, t) {
if (typeof e.ref == "string" && I.current && t && I.current.stateNode !== t) {
var n = x(I.current.type);
z[n] || (R('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', x(I.current.type), e.ref), z[n] = !0);
}
}
function rr(e, r) {
function Qe(e, t) {
{
var n = function() {
ge || (ge = !0, R("%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));
ye || (ye = !0, R("%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)", t));
};

@@ -453,6 +453,6 @@ n.isReactWarning = !0, Object.defineProperty(e, "key", {

}
function tr(e, r) {
function er(e, t) {
{
var n = function() {
me || (me = !0, R("%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));
ge || (ge = !0, R("%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)", t));
};

@@ -465,4 +465,4 @@ n.isReactWarning = !0, Object.defineProperty(e, "ref", {

}
var nr = function(e, r, n, o, l, d, s) {
var i = {
var rr = function(e, t, n, o, l, p, u) {
var s = {
// This tag allows us to uniquely identify this as a React Element

@@ -472,9 +472,9 @@ $$typeof: a,

type: e,
key: r,
key: t,
ref: n,
props: s,
props: u,
// Record the component responsible for creating this element.
_owner: d
_owner: p
};
return i._store = {}, Object.defineProperty(i._store, "validated", {
return s._store = {}, Object.defineProperty(s._store, "validated", {
configurable: !1,

@@ -484,3 +484,3 @@ enumerable: !1,

value: !1
}), Object.defineProperty(i, "_self", {
}), Object.defineProperty(s, "_self", {
configurable: !1,

@@ -490,3 +490,3 @@ enumerable: !1,

value: o
}), Object.defineProperty(i, "_source", {
}), Object.defineProperty(s, "_source", {
configurable: !1,

@@ -496,29 +496,29 @@ enumerable: !1,

value: l
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
}), Object.freeze && (Object.freeze(s.props), Object.freeze(s)), s;
};
function ar(e, r, n, o, l) {
function tr(e, t, n, o, l) {
{
var d, s = {}, i = null, _ = null;
n !== void 0 && (he(n), i = "" + n), Qe(r) && (he(r.key), i = "" + r.key), Ze(r) && (_ = r.ref, er(r, l));
for (d in r)
U.call(r, d) && !Xe.hasOwnProperty(d) && (s[d] = r[d]);
var p, u = {}, s = null, _ = null;
n !== void 0 && (he(n), s = "" + n), Xe(t) && (he(t.key), s = "" + t.key), Ke(t) && (_ = t.ref, Ze(t, l));
for (p in t)
M.call(t, p) && !ze.hasOwnProperty(p) && (u[p] = t[p]);
if (e && e.defaultProps) {
var p = e.defaultProps;
for (d in p)
s[d] === void 0 && (s[d] = p[d]);
var h = e.defaultProps;
for (p in h)
u[p] === void 0 && (u[p] = h[p]);
}
if (i || _) {
var h = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
i && rr(s, h), _ && tr(s, h);
if (s || _) {
var m = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
s && Qe(u, m), _ && er(u, m);
}
return nr(e, i, _, l, o, I.current, s);
return rr(e, s, _, l, o, I.current, u);
}
}
var K = k.ReactCurrentOwner, ye = k.ReactDebugCurrentFrame;
function D(e) {
var K = D.ReactCurrentOwner, me = D.ReactDebugCurrentFrame;
function k(e) {
if (e) {
var r = e._owner, n = M(e.type, e._source, r ? r.type : null);
ye.setExtraStackFrame(n);
var t = e._owner, n = J(e.type, e._source, t ? t.type : null);
me.setExtraStackFrame(n);
} else
ye.setExtraStackFrame(null);
me.setExtraStackFrame(null);
}

@@ -533,3 +533,3 @@ var X;

if (K.current) {
var e = O(K.current.type);
var e = x(K.current.type);
if (e)

@@ -543,19 +543,19 @@ return `

}
function or(e) {
function nr(e) {
return "";
}
var Re = {};
function ir(e) {
function ar(e) {
{
var r = be();
if (!r) {
var t = be();
if (!t) {
var n = typeof e == "string" ? e : e.displayName || e.name;
n && (r = `
n && (t = `
Check the top-level render call using <` + n + ">.");
}
return r;
return t;
}
}
function _e(e, r) {
function _e(e, t) {
{

@@ -565,3 +565,3 @@ if (!e._store || e._store.validated || e.key != null)

e._store.validated = !0;
var n = ir(r);
var n = ar(t);
if (Re[n])

@@ -571,13 +571,13 @@ return;

var o = "";
e && e._owner && e._owner !== K.current && (o = " It was passed a child from " + O(e._owner.type) + "."), D(e), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, o), D(null);
e && e._owner && e._owner !== K.current && (o = " It was passed a child from " + x(e._owner.type) + "."), k(e), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, o), k(null);
}
}
function Ee(e, r) {
function Ee(e, t) {
{
if (typeof e != "object")
return;
if (z(e))
if (G(e))
for (var n = 0; n < e.length; n++) {
var o = e[n];
Z(o) && _e(o, r);
Z(o) && _e(o, t);
}

@@ -589,65 +589,65 @@ else if (Z(e))

if (typeof l == "function" && l !== e.entries)
for (var d = l.call(e), s; !(s = d.next()).done; )
Z(s.value) && _e(s.value, r);
for (var p = l.call(e), u; !(u = p.next()).done; )
Z(u.value) && _e(u.value, t);
}
}
}
function sr(e) {
function or(e) {
{
var r = e.type;
if (r == null || typeof r == "string")
var t = e.type;
if (t == null || typeof t == "string")
return;
var n;
if (typeof r == "function")
n = r.propTypes;
else if (typeof r == "object" && (r.$$typeof === v || // Note: Memo only checks outer props here.
if (typeof t == "function")
n = t.propTypes;
else if (typeof t == "object" && (t.$$typeof === v || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.
r.$$typeof === j))
n = r.propTypes;
t.$$typeof === j))
n = t.propTypes;
else
return;
if (n) {
var o = O(r);
Ge(n, e.props, "prop", o, e);
} else if (r.PropTypes !== void 0 && !X) {
var o = x(t);
qe(n, e.props, "prop", o, e);
} else if (t.PropTypes !== void 0 && !X) {
X = !0;
var l = O(r);
var l = x(t);
R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", l || "Unknown");
}
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}
}
function ur(e) {
function ir(e) {
{
for (var r = Object.keys(e.props), n = 0; n < r.length; n++) {
var o = r[n];
for (var t = Object.keys(e.props), n = 0; n < t.length; n++) {
var o = t[n];
if (o !== "children" && o !== "key") {
D(e), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), D(null);
k(e), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), k(null);
break;
}
}
e.ref !== null && (D(e), R("Invalid attribute `ref` supplied to `React.Fragment`."), D(null));
e.ref !== null && (k(e), R("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
}
}
function Se(e, r, n, o, l, d) {
function Se(e, t, n, o, l, p) {
{
var s = Le(e);
if (!s) {
var i = "";
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (i += " 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 _ = or();
_ ? i += _ : i += be();
var p;
e === null ? p = "null" : z(e) ? p = "array" : e !== void 0 && e.$$typeof === a ? (p = "<" + (O(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : p = typeof e, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", p, i);
var u = We(e);
if (!u) {
var s = "";
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (s += " 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 _ = nr();
_ ? s += _ : s += be();
var h;
e === null ? h = "null" : G(e) ? h = "array" : e !== void 0 && e.$$typeof === a ? (h = "<" + (x(e.type) || "Unknown") + " />", s = " Did you accidentally export a JSX literal instead of a component?") : h = typeof e, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", h, s);
}
var h = ar(e, r, n, l, d);
if (h == null)
return h;
if (s) {
var S = r.children;
var m = tr(e, t, n, l, p);
if (m == null)
return m;
if (u) {
var S = t.children;
if (S !== void 0)
if (o)
if (z(S)) {
for (var $ = 0; $ < S.length; $++)
Ee(S[$], e);
if (G(S)) {
for (var F = 0; F < S.length; F++)
Ee(S[F], e);
Object.freeze && Object.freeze(S);

@@ -659,39 +659,39 @@ } else

}
return e === c ? ur(h) : sr(h), h;
return e === c ? ir(m) : or(m), m;
}
}
function cr(e, r, n) {
return Se(e, r, n, !0);
function sr(e, t, n) {
return Se(e, t, n, !0);
}
function lr(e, r, n) {
return Se(e, r, n, !1);
function ur(e, t, n) {
return Se(e, t, n, !1);
}
var fr = lr, dr = cr;
W.Fragment = c, W.jsx = fr, W.jsxs = dr;
var cr = ur, lr = sr;
W.Fragment = c, W.jsx = cr, W.jsxs = lr;
}()), W;
}
process.env.NODE_ENV === "production" ? Q.exports = pr() : Q.exports = hr();
var g = Q.exports;
const gr = ["#CCCCCC", "#68CD99", "#FDB100", "#D0ACEF", "#659CF9"];
function we(t) {
return t == null;
process.env.NODE_ENV === "production" ? Q.exports = dr() : Q.exports = pr();
var f = Q.exports;
const vr = ["#CCCCCC", "#68CD99", "#FDB100", "#D0ACEF", "#659CF9"];
function we(r) {
return r == null;
}
function mr(t = 0, a = gr) {
return a[t % a.length];
function hr(r = 0, a = vr) {
return a[r % a.length];
}
const P = (t, a = "", u = "string") => {
let c = !1, f = t;
if (!we(t))
switch (u) {
const C = (r, a = "", i = "string") => {
let c = !1, d = r;
if (!we(r))
switch (i) {
case "number":
f = Number(t);
d = Number(r);
break;
case "boolean":
f = t && t !== "false";
d = r && r !== "false";
break;
case "string":
f = t, c = !0;
d = r, c = !0;
break;
case "date":
f = `Date("${new Date(t).toISOString()}")`;
d = `Date("${new Date(r).toISOString()}")`;
break;

@@ -701,16 +701,16 @@ case "object":

try {
f = JSON.parse(t), f = `${u === "array" ? "Array" : "Object"}(${JSON.stringify(f)})`;
d = JSON.parse(r), d = `${i === "array" ? "Array" : "Object"}(${JSON.stringify(d)})`;
} catch {
f = "Invalid JSON";
d = "Invalid JSON";
}
break;
default:
f = t;
d = r;
break;
}
const y = c ? JSON.stringify(f) : String(f);
const y = c ? JSON.stringify(d) : String(d);
return a ? `${a}(${y})` : y;
};
function F(t) {
switch (t) {
function w(r) {
switch (r) {
case "eq":

@@ -733,8 +733,8 @@ return "==";

default:
return t;
return r;
}
}
function yr(t, a) {
const { condition: u, opts: c } = t, { depth: f = 0, colors: y } = c, m = mr(f, y);
return /* @__PURE__ */ g.jsx("ul", { style: { padding: 0, color: m }, children: u.conditions.map((b, v) => /* @__PURE__ */ g.jsxs(
function yr(r, a) {
const { condition: i, opts: c } = r, { depth: d = 0, colors: y } = c, g = hr(d, y);
return /* @__PURE__ */ f.jsx("ul", { style: { padding: 0, color: g }, children: i.conditions.map((b, v) => /* @__PURE__ */ f.jsxs(
"li",

@@ -746,6 +746,6 @@ {

children: [
v > 0 ? /* @__PURE__ */ g.jsx("span", { style: { marginRight: 4 }, children: F(u.op) }) : /* @__PURE__ */ g.jsx("span", { style: { paddingLeft: f > 0 ? 0 : 24 } }),
/* @__PURE__ */ g.jsx("div", { children: a.execute({
v > 0 ? /* @__PURE__ */ f.jsx("span", { style: { marginRight: 4 }, children: w(i.op) }) : /* @__PURE__ */ f.jsx("span", { style: { paddingLeft: d > 0 ? 0 : 24 } }),
/* @__PURE__ */ f.jsx("div", { children: a.execute({
condition: b,
opts: { ...c, depth: f + 1 }
opts: { ...c, depth: d + 1 }
}) })

@@ -757,31 +757,38 @@ ]

}
const br = "_condfmt_1gu85_8", Rr = "_op_1gu85_13", xe = {
condfmt: br,
op: Rr
}, _r = ({ ctx: t, pipeline: a }) => {
const { condition: u, opts: c } = t, { depth: f = 0, render: y = ({ children: m }) => m } = c;
return /* @__PURE__ */ g.jsxs("ul", { className: xe.condfmt, children: [
/* @__PURE__ */ g.jsx("span", { className: xe.op, children: /* @__PURE__ */ g.jsx(y, { opts: c, condition: u, children: F(u.op) }) }),
u.conditions.map((m) => {
const gr = "_condfmt_1gu85_8", mr = "_op_1gu85_13", Oe = {
condfmt: gr,
op: mr
}, br = ({ ctx: r, pipeline: a }) => {
const { condition: i, opts: c } = r, { depth: d = 0, render: y = ({ children: g }) => g } = c;
return /* @__PURE__ */ f.jsx(y, { opts: c, condition: { ...i, spot: "root" }, children: /* @__PURE__ */ f.jsxs("ul", { className: Oe.condfmt, children: [
/* @__PURE__ */ f.jsx("span", { className: Oe.op, children: /* @__PURE__ */ f.jsx(y, { opts: c, condition: { ...i, spot: "op" }, children: w(i.op) }) }),
i.conditions.map((g) => {
const b = a.execute({
condition: m,
opts: { ...c, depth: f + 1 }
condition: g,
opts: { ...c, depth: d + 1 }
});
return /* @__PURE__ */ g.jsx("li", { children: b }, m.id);
return /* @__PURE__ */ f.jsx("li", { children: /* @__PURE__ */ f.jsx(
y,
{
opts: c,
condition: { ...i, spot: `child:${g.type}` },
children: b
}
) }, g.id);
})
] });
}, Er = {
] }) });
}, Rr = {
name: "combination",
run(t, a, u) {
if (t.condition.type !== "combination")
run(r, a, i) {
if (r.condition.type !== "combination")
return a();
switch (t.opts.formatter) {
switch (r.opts.formatter) {
case "text":
return yr(t, u);
return yr(r, i);
case "jsx":
return /* @__PURE__ */ g.jsx(
_r,
return /* @__PURE__ */ f.jsx(
br,
{
ctx: t,
pipeline: u
ctx: r,
pipeline: i
}

@@ -792,81 +799,80 @@ );

};
function Sr(t) {
const { condition: a } = t;
return `${P(a.path, "DataSource")} ${F(a.op)} ${P(a.value, a.valueType === "datasource" ? "DataSource" : "", a.dataType)}`;
function _r(r) {
const { condition: a } = r;
return `${C(a.path, "DataSource")} ${w(a.op)} ${C(a.value, a.valueType === "datasource" ? "DataSource" : "", a.dataType)}`;
}
const Tr = ({
condition: t,
const Er = ({
condition: r,
opts: a
}) => {
const { render: u = ({ children: c }) => c } = a;
return /* @__PURE__ */ g.jsxs(u, { opts: a, condition: t, children: [
P(t.path, "DataSource"),
/* @__PURE__ */ g.jsx(
"span",
{
style: {
padding: "0 0.25rem"
},
children: F(t.op)
}
),
P(
t.value,
t.valueType === "datasource" ? "DataSource" : "",
t.dataType
)
const { render: i = ({ children: c }) => c } = a;
return /* @__PURE__ */ f.jsxs(i, { opts: a, condition: { ...r, spot: "root" }, children: [
/* @__PURE__ */ f.jsx(i, { opts: a, condition: { ...r, spot: "ds" }, children: C(r.path, "DataSource") }),
/* @__PURE__ */ f.jsx(i, { opts: a, condition: { ...r, spot: "op" }, children: ` ${w(r.op)} ` }),
r.valueType === "datasource" ? /* @__PURE__ */ f.jsx(i, { opts: a, condition: { ...r, spot: "ds" }, children: C(r.value, "DataSource", r.dataType) }) : /* @__PURE__ */ f.jsx(i, { opts: a, condition: { ...r, spot: "value" }, children: C(r.value, "", r.dataType) })
] });
}, jr = {
}, Sr = {
name: "datasource",
run(t, a) {
if (t.condition.type !== "datasource")
run(r, a) {
if (r.condition.type !== "datasource")
return a();
switch (t.opts.formatter) {
switch (r.opts.formatter) {
case "text":
return Sr(t);
return _r(r);
default:
return /* @__PURE__ */ g.jsx(Tr, { ...t });
return /* @__PURE__ */ f.jsx(Er, { ...r });
}
}
};
function Pe(t) {
const { condition: a } = t;
return `Has a Privilege ${F(a.op)} ${a.valueType === "datasource" ? `DataSource(${JSON.stringify(a.value)})` : JSON.stringify(a.value)}`;
function Tr(r) {
const { condition: a } = r;
return `Has a Privilege ${w(a.op)} ${a.valueType === "datasource" ? `DataSource(${JSON.stringify(a.value)})` : JSON.stringify(a.value)}`;
}
const Or = ({ condition: t, opts: a }) => {
const { render: u = ({ children: c }) => c } = a;
return /* @__PURE__ */ g.jsx(u, { opts: a, condition: t, children: Pe({
condition: t,
opts: a
}) });
const jr = ({ condition: r, opts: a }) => {
const { render: i = ({ children: c }) => c } = a;
return /* @__PURE__ */ f.jsxs(i, { opts: a, condition: { ...r, spot: "root" }, children: [
"Has a Privilege",
/* @__PURE__ */ f.jsx(i, { opts: a, condition: { ...r, spot: "op" }, children: ` ${w(r.op)} ` }),
/* @__PURE__ */ f.jsx(
i,
{
opts: a,
condition: {
...r,
spot: r.valueType === "datasource" ? "ds" : "value"
},
children: r.valueType === "datasource" ? `DataSource(${JSON.stringify(r.value)})` : JSON.stringify(r.value)
}
)
] });
}, xr = {
name: "privilege",
run(t, a) {
if (t.condition.type !== "privilege")
run(r, a) {
if (r.condition.type !== "privilege")
return a();
switch (t.opts.formatter) {
switch (r.opts.formatter) {
case "text":
return Pe(t);
return Tr(r);
case "jsx":
return /* @__PURE__ */ g.jsx(Or, { ...t });
return /* @__PURE__ */ f.jsx(jr, { ...r });
}
}
};
function Cr(t) {
var u, c;
const { condition: a } = t;
return P((c = (u = t.opts.refs) == null ? void 0 : u[a.ref]) == null ? void 0 : c.name, "Ref");
function Or(r) {
var i, c;
const { condition: a } = r;
return C((c = (i = r.opts.refs) == null ? void 0 : i[a.ref]) == null ? void 0 : c.name, "Ref");
}
const wr = ({ condition: t, opts: a }) => {
var f, y, m, b;
const { render: u = ({ children: v }) => v } = a, c = P((y = (f = a.refs) == null ? void 0 : f[t.ref]) == null ? void 0 : y.name);
return /* @__PURE__ */ g.jsxs(u, { opts: a, condition: t, children: [
const Cr = ({ condition: r, opts: a }) => {
var d, y, g, b;
const { render: i = ({ children: v }) => v } = a, c = C((y = (d = a.refs) == null ? void 0 : d[r.ref]) == null ? void 0 : y.name);
return /* @__PURE__ */ f.jsxs(i, { opts: a, condition: { ...r, spot: "root" }, children: [
"Ref(",
we((b = (m = a.refs) == null ? void 0 : m[t.ref]) == null ? void 0 : b.name) ? c : /* @__PURE__ */ g.jsx(
u,
we((b = (g = a.refs) == null ? void 0 : g[r.ref]) == null ? void 0 : b.name) ? c : /* @__PURE__ */ f.jsx(
i,
{
opts: a,
condition: {
...t,
spot: "reference:value"
...r,
spot: "value"
},

@@ -878,47 +884,59 @@ children: c

] });
}, Pr = {
}, wr = {
name: "reference",
run(t, a) {
if (t.condition.type !== "reference")
run(r, a) {
if (r.condition.type !== "reference")
return a();
switch (t.opts.formatter) {
switch (r.opts.formatter) {
case "text":
return Cr(t);
return Or(r);
case "jsx":
return /* @__PURE__ */ g.jsx(wr, { ...t });
return /* @__PURE__ */ f.jsx(Cr, { ...r });
}
}
};
function ke(t) {
const { condition: a } = t;
return `Has a ${a.type === "parentState" ? "ParentState" : "CurrentState"} ${F(a.op)} ${P(a.value, a.valueType === "datasource" ? "DataSource" : "")}`;
function Pr(r) {
const { condition: a } = r;
return `Has a ${a.type === "parentState" ? "ParentState" : "CurrentState"} ${w(a.op)} ${C(a.value, a.valueType === "datasource" ? "DataSource" : "")}`;
}
const kr = ({ condition: t, opts: a }) => {
const { render: u = ({ children: c }) => c } = a;
return /* @__PURE__ */ g.jsx(u, { opts: a, condition: t, children: ke({
condition: t,
opts: a
}) });
const $r = ({ condition: r, opts: a }) => {
const { render: i = ({ children: c }) => c } = a;
return /* @__PURE__ */ f.jsxs(i, { opts: a, condition: { ...r, spot: "root" }, children: [
"Has a ",
r.type === "parentState" ? "ParentState" : "CurrentState",
/* @__PURE__ */ f.jsx(i, { opts: a, condition: { ...r, spot: "op" }, children: ` ${w(r.op)} ` }),
/* @__PURE__ */ f.jsx(
i,
{
opts: a,
condition: {
...r,
spot: r.valueType === "datasource" ? "ds" : "value"
},
children: r.valueType === "datasource" ? `DataSource(${JSON.stringify(r.value)})` : JSON.stringify(r.value)
}
)
] });
}, Dr = {
name: "state",
run(t, a) {
run(r, a) {
if (![
"parentState",
"currentState"
].includes(t.condition.type))
].includes(r.condition.type))
return a();
switch (t.opts.formatter) {
switch (r.opts.formatter) {
case "text":
return ke(t);
return Pr(r);
case "jsx":
return /* @__PURE__ */ g.jsx(kr, { ...t });
return /* @__PURE__ */ f.jsx($r, { ...r });
}
}
}, Fr = vr(
}, Fr = fr(
null,
Er,
jr,
Rr,
Sr,
xr,
Dr,
Pr
wr
).execute;

@@ -925,0 +943,0 @@ export {

@@ -11,7 +11,8 @@ import { FC, PropsWithChildren } from 'react';

name: string;
spot?: string;
type: ConditionType;
};
type GenericCondition<T> = BaseWebformStateCondition & T;
type GenericCondition<T extends Omit<BaseWebformStateCondition, 'id' | 'name'>> = BaseWebformStateCondition & T;
type CommonOp = 'eq' | 'neq' | 'regex' | 'in' | 'nin';
export type ValueType = 'datasource' | 'hardCoded';
export type ConditionType = 'combination' | 'datasource' | 'privilege' | 'reference' | 'parentState' | 'currentState';
export type DataType = 'string' | 'number' | 'date' | 'boolean' | 'array' | 'object';

@@ -25,2 +26,3 @@ export type DataSourceCondition = GenericCondition<{

op: CommonOp | 'gt' | 'gte' | 'lt' | 'lte';
spot?: 'root' | 'ds' | 'value' | 'op';
}>;

@@ -33,2 +35,3 @@ export type PrivilegeCondition = GenericCondition<{

op: CommonOp;
spot?: 'root' | 'ds' | 'value' | 'op';
}>;

@@ -41,2 +44,3 @@ export type CombinationCondition = Omit<GenericCondition<{

name?: string;
spot?: 'root' | 'op' | `child:${ConditionType}`;
};

@@ -49,2 +53,3 @@ export type ParentStateCondition = GenericCondition<{

op: CommonOp;
spot?: 'root' | 'ds' | 'value' | 'op';
}>;

@@ -57,2 +62,3 @@ export type CurrentStateCondition = GenericCondition<{

op: CommonOp;
spot?: 'root' | 'ds' | 'value' | 'op';
}>;

@@ -62,5 +68,7 @@ export type ReferenceCondition = Omit<GenericCondition<{

ref: string;
spot?: 'root' | 'value';
}>, 'name'>;
export type StateCondition = ParentStateCondition | CurrentStateCondition;
export type WebformStateCondition = DataSourceCondition | PrivilegeCondition | CombinationCondition | ParentStateCondition | ReferenceCondition | CurrentStateCondition;
export type WebformStateConditionType = WebformStateCondition['type'];
type CommonOpts = Partial<{

@@ -67,0 +75,0 @@ colors?: string[];

{
"name": "@ws-ui/condfmt",
"version": "0.0.11",
"version": "0.0.12",
"type": "module",

@@ -5,0 +5,0 @@ "main": "./dist/index.cjs.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc