Huge News!Announcing our $40M Series B led by Abstract Ventures.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.2 to 0.0.3

dist/pipeline.test.d.ts

18

dist/index.cjs.js

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

"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const xe=require("react");function lr(n,...o){const f=o,p=(...R)=>{f.push(...R)},m=R=>{let g=-1;const y=l=>{if(l===g)throw new Error("next() called multiple times");g=l;const S=f[l];return S?S.run(R,()=>y(l+1),{push:p,execute:m}):n};return y(0)};return{push:p,execute:m}}var Z={exports:{}},A={};/**
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const xe=require("react");function dr(n,...a){const c=a,f=(...b)=>{c.push(...b)},g=b=>{let m=-1;const y=v=>{if(v===m)throw new Error("next() called multiple times");m=v;const S=c[v];return S?S.run(b,()=>y(v+1),{push:f,execute:g}):n};return y(0)};return{push:f,execute:g}}var Z={exports:{}},I={};/**
* @license React

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

* LICENSE file in the root directory of this source tree.
*/var Se;function fr(){if(Se)return A;Se=1;var n=xe,o=Symbol.for("react.element"),f=Symbol.for("react.fragment"),p=Object.prototype.hasOwnProperty,m=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,R={key:!0,ref:!0,__self:!0,__source:!0};function g(y,l,S){var _,j={},w=null,W=null;S!==void 0&&(w=""+S),l.key!==void 0&&(w=""+l.key),l.ref!==void 0&&(W=l.ref);for(_ in l)p.call(l,_)&&!R.hasOwnProperty(_)&&(j[_]=l[_]);if(y&&y.defaultProps)for(_ in l=y.defaultProps,l)j[_]===void 0&&(j[_]=l[_]);return{$$typeof:o,type:y,key:w,ref:W,props:j,_owner:m.current}}return A.Fragment=f,A.jsx=g,A.jsxs=g,A}var I={};/**
*/var je;function vr(){if(je)return I;je=1;var n=xe,a=Symbol.for("react.element"),c=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,g=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,b={key:!0,ref:!0,__self:!0,__source:!0};function m(y,v,S){var E,j={},w=null,W=null;S!==void 0&&(w=""+S),v.key!==void 0&&(w=""+v.key),v.ref!==void 0&&(W=v.ref);for(E in v)f.call(v,E)&&!b.hasOwnProperty(E)&&(j[E]=v[E]);if(y&&y.defaultProps)for(E in v=y.defaultProps,v)j[E]===void 0&&(j[E]=v[E]);return{$$typeof:a,type:y,key:w,ref:W,props:j,_owner:g.current}}return I.Fragment=c,I.jsx=m,I.jsxs=m,I}var N={};/**
* @license React

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

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

@@ -19,5 +19,5 @@ }) : n;

};
return { push: p, execute: m };
return { push: f, execute: m };
}
var Z = { exports: {} }, A = {};
var Z = { exports: {} }, I = {};
/**

@@ -32,21 +32,21 @@ * @license React

*/
var Se;
function fr() {
if (Se)
return A;
Se = 1;
var n = Oe, o = Symbol.for("react.element"), f = Symbol.for("react.fragment"), p = Object.prototype.hasOwnProperty, m = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, R = { key: !0, ref: !0, __self: !0, __source: !0 };
function g(y, l, S) {
var _, x = {}, w = null, W = null;
S !== void 0 && (w = "" + S), l.key !== void 0 && (w = "" + l.key), l.ref !== void 0 && (W = l.ref);
for (_ in l)
p.call(l, _) && !R.hasOwnProperty(_) && (x[_] = l[_]);
var xe;
function vr() {
if (xe)
return I;
xe = 1;
var n = Oe, a = Symbol.for("react.element"), c = Symbol.for("react.fragment"), f = Object.prototype.hasOwnProperty, m = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, E = { key: !0, ref: !0, __self: !0, __source: !0 };
function g(y, v, S) {
var b, x = {}, w = null, W = null;
S !== void 0 && (w = "" + S), v.key !== void 0 && (w = "" + v.key), v.ref !== void 0 && (W = v.ref);
for (b in v)
f.call(v, b) && !E.hasOwnProperty(b) && (x[b] = v[b]);
if (y && y.defaultProps)
for (_ in l = y.defaultProps, l)
x[_] === void 0 && (x[_] = l[_]);
return { $$typeof: o, type: y, key: w, ref: W, props: x, _owner: m.current };
for (b in v = y.defaultProps, v)
x[b] === void 0 && (x[b] = v[b]);
return { $$typeof: a, type: y, key: w, ref: W, props: x, _owner: m.current };
}
return A.Fragment = f, A.jsx = g, A.jsxs = g, A;
return I.Fragment = c, I.jsx = g, I.jsxs = g, I;
}
var I = {};
var N = {};
/**

@@ -61,17 +61,17 @@ * @license React

*/
var xe;
function dr() {
return xe || (xe = 1, process.env.NODE_ENV !== "production" && function() {
var n = Oe, o = Symbol.for("react.element"), f = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), y = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), Q = Symbol.iterator, Ce = "@@iterator";
function Pe(e) {
var je;
function pr() {
return je || (je = 1, process.env.NODE_ENV !== "production" && function() {
var n = Oe, a = Symbol.for("react.element"), c = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), y = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), ee = Symbol.iterator, $e = "@@iterator";
function De(e) {
if (e === null || typeof e != "object")
return null;
var r = Q && e[Q] || e[Ce];
var r = ee && e[ee] || e[$e];
return typeof r == "function" ? r : null;
}
var P = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function b(e) {
function R(e) {
{
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
t[a - 1] = arguments[a];
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
t[o - 1] = arguments[o];
ke("error", e, t);

@@ -82,27 +82,27 @@ }

{
var a = P.ReactDebugCurrentFrame, s = a.getStackAddendum();
s !== "" && (r += "%s", t = t.concat([s]));
var c = t.map(function(u) {
return String(u);
var o = P.ReactDebugCurrentFrame, u = o.getStackAddendum();
u !== "" && (r += "%s", t = t.concat([u]));
var l = t.map(function(s) {
return String(s);
});
c.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, c);
l.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, l);
}
}
var De = !1, $e = !1, Fe = !1, Ae = !1, Ie = !1, ee;
ee = Symbol.for("react.module.reference");
function We(e) {
return !!(typeof e == "string" || typeof e == "function" || e === p || e === R || Ie || e === m || e === S || e === _ || Ae || e === W || De || $e || Fe || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === x || e.$$typeof === g || e.$$typeof === y || e.$$typeof === l || // This needs to include all possible module reference object
var Fe = !1, Ae = !1, Ie = !1, Ne = !1, We = !1, re;
re = Symbol.for("react.module.reference");
function Ye(e) {
return !!(typeof e == "string" || typeof e == "function" || e === f || e === E || We || e === m || e === S || e === b || Ne || e === W || Fe || Ae || Ie || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === x || e.$$typeof === g || e.$$typeof === y || e.$$typeof === v || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since
// we don't know which Flight build this will end up being used
// with.
e.$$typeof === ee || e.getModuleId !== void 0));
e.$$typeof === re || e.getModuleId !== void 0));
}
function Ne(e, r, t) {
var a = e.displayName;
if (a)
return a;
var s = r.displayName || r.name || "";
return s !== "" ? t + "(" + s + ")" : t;
function Le(e, r, t) {
var o = e.displayName;
if (o)
return o;
var u = r.displayName || r.name || "";
return u !== "" ? t + "(" + u + ")" : t;
}
function re(e) {
function te(e) {
return e.displayName || "Context";

@@ -113,3 +113,3 @@ }

return null;
if (typeof e.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
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;

@@ -119,7 +119,7 @@ if (typeof e == "string")

switch (e) {
case p:
case f:
return "Fragment";
case f:
case c:
return "Portal";
case R:
case E:
return "Profiler";

@@ -130,3 +130,3 @@ case m:

return "Suspense";
case _:
case b:
return "SuspenseList";

@@ -138,15 +138,15 @@ }

var r = e;
return re(r) + ".Consumer";
return te(r) + ".Consumer";
case g:
var t = e;
return re(t._context) + ".Provider";
case l:
return Ne(e, e.render, "ForwardRef");
return te(t._context) + ".Provider";
case v:
return Le(e, e.render, "ForwardRef");
case x:
var a = e.displayName || null;
return a !== null ? a : j(e.type) || "Memo";
var o = e.displayName || null;
return o !== null ? o : j(e.type) || "Memo";
case w: {
var s = e, c = s._payload, u = s._init;
var u = e, l = u._payload, s = u._init;
try {
return j(u(c));
return j(s(l));
} catch {

@@ -159,14 +159,14 @@ return null;

}
var C = Object.assign, $ = 0, te, ne, ae, oe, ie, ue, se;
function ce() {
var C = Object.assign, F = 0, ne, ae, oe, ie, se, ue, ce;
function le() {
}
ce.__reactDisabledLog = !0;
function Ye() {
le.__reactDisabledLog = !0;
function Ve() {
{
if ($ === 0) {
te = console.log, ne = console.info, ae = console.warn, oe = console.error, ie = console.group, ue = console.groupCollapsed, se = console.groupEnd;
if (F === 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: ce,
value: le,
writable: !0

@@ -184,8 +184,8 @@ };

}
$++;
F++;
}
}
function Le() {
function Je() {
{
if ($--, $ === 0) {
if (F--, F === 0) {
var e = {

@@ -198,15 +198,15 @@ configurable: !0,

log: C({}, e, {
value: te
value: ne
}),
info: C({}, e, {
value: ne
value: ae
}),
warn: C({}, e, {
value: ae
value: oe
}),
error: C({}, e, {
value: oe
value: ie
}),
group: C({}, e, {
value: ie
value: se
}),

@@ -217,11 +217,11 @@ groupCollapsed: C({}, e, {

groupEnd: C({}, e, {
value: se
value: ce
})
});
}
$ < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
F < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var J = P.ReactCurrentDispatcher, q;
function N(e, r, t) {
var U = P.ReactCurrentDispatcher, q;
function Y(e, r, t) {
{

@@ -231,5 +231,5 @@ if (q === void 0)

throw Error();
} catch (s) {
var a = s.stack.trim().match(/\n( *(at )?)/);
q = a && a[1] || "";
} catch (u) {
var o = u.stack.trim().match(/\n( *(at )?)/);
q = o && o[1] || "";
}

@@ -240,27 +240,27 @@ return `

}
var B = !1, Y;
var B = !1, L;
{
var Ve = typeof WeakMap == "function" ? WeakMap : Map;
Y = new Ve();
var Me = typeof WeakMap == "function" ? WeakMap : Map;
L = new Me();
}
function le(e, r) {
function fe(e, r) {
if (!e || B)
return "";
{
var t = Y.get(e);
var t = L.get(e);
if (t !== void 0)
return t;
}
var a;
var o;
B = !0;
var s = Error.prepareStackTrace;
var u = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var c;
c = J.current, J.current = null, Ye();
var l;
l = U.current, U.current = null, Ve();
try {
if (r) {
var u = function() {
var s = function() {
throw Error();
};
if (Object.defineProperty(u.prototype, "props", {
if (Object.defineProperty(s.prototype, "props", {
set: function() {

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

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

@@ -289,3 +289,3 @@ } else {

} catch (O) {
a = O;
o = O;
}

@@ -295,17 +295,17 @@ e();

} catch (O) {
if (O && a && typeof O.stack == "string") {
if (O && o && typeof O.stack == "string") {
for (var i = O.stack.split(`
`), E = a.stack.split(`
`), d = i.length - 1, v = E.length - 1; d >= 1 && v >= 0 && i[d] !== E[v]; )
v--;
for (; d >= 1 && v >= 0; d--, v--)
if (i[d] !== E[v]) {
if (d !== 1 || v !== 1)
`), _ = 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 (d--, v--, v < 0 || i[d] !== E[v]) {
if (p--, h--, h < 0 || i[p] !== _[h]) {
var T = `
` + i[d].replace(" at new ", " at ");
return e.displayName && T.includes("<anonymous>") && (T = T.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, T), T;
` + i[p].replace(" at new ", " at ");
return e.displayName && T.includes("<anonymous>") && (T = T.replace("<anonymous>", e.displayName)), typeof e == "function" && L.set(e, T), T;
}
while (d >= 1 && v >= 0);
while (p >= 1 && h >= 0);
break;

@@ -315,37 +315,37 @@ }

} finally {
B = !1, J.current = c, Le(), Error.prepareStackTrace = s;
B = !1, U.current = l, Je(), Error.prepareStackTrace = u;
}
var D = e ? e.displayName || e.name : "", Te = D ? N(D) : "";
return typeof e == "function" && Y.set(e, Te), Te;
var D = e ? e.displayName || e.name : "", Se = D ? Y(D) : "";
return typeof e == "function" && L.set(e, Se), Se;
}
function Me(e, r, t) {
return le(e, !1);
function Ue(e, r, t) {
return fe(e, !1);
}
function Ue(e) {
function qe(e) {
var r = e.prototype;
return !!(r && r.isReactComponent);
}
function L(e, r, t) {
function V(e, r, t) {
if (e == null)
return "";
if (typeof e == "function")
return le(e, Ue(e));
return fe(e, qe(e));
if (typeof e == "string")
return N(e);
return Y(e);
switch (e) {
case S:
return N("Suspense");
case _:
return N("SuspenseList");
return Y("Suspense");
case b:
return Y("SuspenseList");
}
if (typeof e == "object")
switch (e.$$typeof) {
case l:
return Me(e.render);
case v:
return Ue(e.render);
case x:
return L(e.type, r, t);
return V(e.type, r, t);
case w: {
var a = e, s = a._payload, c = a._init;
var o = e, u = o._payload, l = o._init;
try {
return L(c(s), r, t);
return V(l(u), r, t);
} catch {

@@ -357,34 +357,34 @@ }

}
var V = Object.prototype.hasOwnProperty, fe = {}, de = P.ReactDebugCurrentFrame;
var J = Object.prototype.hasOwnProperty, de = {}, ve = P.ReactDebugCurrentFrame;
function M(e) {
if (e) {
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
de.setExtraStackFrame(t);
var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
ve.setExtraStackFrame(t);
} else
de.setExtraStackFrame(null);
ve.setExtraStackFrame(null);
}
function Je(e, r, t, a, s) {
function Be(e, r, t, o, u) {
{
var c = Function.call.bind(V);
for (var u in e)
if (c(e, u)) {
var l = Function.call.bind(J);
for (var s in e)
if (l(e, s)) {
var i = void 0;
try {
if (typeof e[u] != "function") {
var E = Error((a || "React class") + ": " + t + " 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 E.name = "Invariant Violation", E;
if (typeof e[s] != "function") {
var _ = Error((o || "React class") + ": " + t + " 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[u](r, u, a, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (d) {
i = d;
i = e[s](r, s, o, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (p) {
i = p;
}
i && !(i instanceof Error) && (M(s), 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).", a || "React class", t, u, typeof i), M(null)), i instanceof Error && !(i.message in fe) && (fe[i.message] = !0, M(s), b("Failed %s type: %s", t, i.message), M(null));
i && !(i instanceof Error) && (M(u), 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", t, s, typeof i), M(null)), i instanceof Error && !(i.message in de) && (de[i.message] = !0, M(u), R("Failed %s type: %s", t, i.message), M(null));
}
}
}
var qe = Array.isArray;
var Ge = Array.isArray;
function G(e) {
return qe(e);
return Ge(e);
}
function Be(e) {
function ze(e) {
{

@@ -395,5 +395,5 @@ var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";

}
function Ge(e) {
function He(e) {
try {
return ve(e), !1;
return pe(e), !1;
} catch {

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

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

@@ -416,6 +416,6 @@ ref: !0,

__source: !0
}, he, me, X;
X = {};
function ze(e) {
if (V.call(e, "ref")) {
}, me, ge, z;
z = {};
function Xe(e) {
if (J.call(e, "ref")) {
var r = Object.getOwnPropertyDescriptor(e, "ref").get;

@@ -427,4 +427,4 @@ if (r && r.isReactWarning)

}
function Ke(e) {
if (V.call(e, "key")) {
function Ze(e) {
if (J.call(e, "key")) {
var r = Object.getOwnPropertyDescriptor(e, "key").get;

@@ -436,12 +436,12 @@ if (r && r.isReactWarning)

}
function He(e, r) {
if (typeof e.ref == "string" && F.current && r && F.current.stateNode !== r) {
var t = j(F.current.type);
X[t] || (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', j(F.current.type), e.ref), X[t] = !0);
function Qe(e, r) {
if (typeof e.ref == "string" && A.current && r && A.current.stateNode !== r) {
var t = j(A.current.type);
z[t] || (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', j(A.current.type), e.ref), z[t] = !0);
}
}
function Ze(e, r) {
function er(e, r) {
{
var t = function() {
he || (he = !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)", r));
me || (me = !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));
};

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

}
function Qe(e, r) {
function rr(e, r) {
{
var t = function() {
me || (me = !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)", 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)", r));
};

@@ -466,6 +466,6 @@ t.isReactWarning = !0, Object.defineProperty(e, "ref", {

}
var er = function(e, r, t, a, s, c, u) {
var tr = function(e, r, t, o, u, l, s) {
var i = {
// This tag allows us to uniquely identify this as a React Element
$$typeof: o,
$$typeof: a,
// Built-in properties that belong on the element

@@ -475,5 +475,5 @@ type: e,

ref: t,
props: u,
props: s,
// Record the component responsible for creating this element.
_owner: c
_owner: l
};

@@ -489,3 +489,3 @@ return i._store = {}, Object.defineProperty(i._store, "validated", {

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

@@ -495,40 +495,40 @@ configurable: !1,

writable: !1,
value: s
value: u
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
};
function rr(e, r, t, a, s) {
function nr(e, r, t, o, u) {
{
var c, u = {}, i = null, E = null;
t !== void 0 && (pe(t), i = "" + t), Ke(r) && (pe(r.key), i = "" + r.key), ze(r) && (E = r.ref, He(r, s));
for (c in r)
V.call(r, c) && !Xe.hasOwnProperty(c) && (u[c] = r[c]);
var l, s = {}, i = null, _ = null;
t !== void 0 && (he(t), i = "" + t), Ze(r) && (he(r.key), i = "" + r.key), Xe(r) && (_ = r.ref, Qe(r, u));
for (l in r)
J.call(r, l) && !Ke.hasOwnProperty(l) && (s[l] = r[l]);
if (e && e.defaultProps) {
var d = e.defaultProps;
for (c in d)
u[c] === void 0 && (u[c] = d[c]);
var p = e.defaultProps;
for (l in p)
s[l] === void 0 && (s[l] = p[l]);
}
if (i || E) {
var v = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
i && Ze(u, v), E && Qe(u, v);
if (i || _) {
var h = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
i && er(s, h), _ && rr(s, h);
}
return er(e, i, E, s, a, F.current, u);
return tr(e, i, _, u, o, A.current, s);
}
}
var z = P.ReactCurrentOwner, ge = P.ReactDebugCurrentFrame;
function k(e) {
var H = P.ReactCurrentOwner, ye = P.ReactDebugCurrentFrame;
function $(e) {
if (e) {
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
ge.setExtraStackFrame(t);
var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
ye.setExtraStackFrame(t);
} else
ge.setExtraStackFrame(null);
ye.setExtraStackFrame(null);
}
var K;
K = !1;
function H(e) {
return typeof e == "object" && e !== null && e.$$typeof === o;
function X(e) {
return typeof e == "object" && e !== null && e.$$typeof === a;
}
function ye() {
function Re() {
{
if (z.current) {
var e = j(z.current.type);
if (H.current) {
var e = j(H.current.type);
if (e)

@@ -542,9 +542,9 @@ return `

}
function tr(e) {
function ar(e) {
return "";
}
var be = {};
function nr(e) {
var _e = {};
function or(e) {
{
var r = ye();
var r = Re();
if (!r) {

@@ -564,11 +564,11 @@ var t = typeof e == "string" ? e : e.displayName || e.name;

e._store.validated = !0;
var t = nr(r);
if (be[t])
var t = or(r);
if (_e[t])
return;
be[t] = !0;
var a = "";
e && e._owner && e._owner !== z.current && (a = " It was passed a child from " + j(e._owner.type) + "."), k(e), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, a), k(null);
_e[t] = !0;
var o = "";
e && e._owner && e._owner !== H.current && (o = " It was passed a child from " + j(e._owner.type) + "."), $(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.', t, o), $(null);
}
}
function Re(e, r) {
function be(e, r) {
{

@@ -579,16 +579,16 @@ if (typeof e != "object")

for (var t = 0; t < e.length; t++) {
var a = e[t];
H(a) && Ee(a, r);
var o = e[t];
X(o) && Ee(o, r);
}
else if (H(e))
else if (X(e))
e._store && (e._store.validated = !0);
else if (e) {
var s = Pe(e);
if (typeof s == "function" && s !== e.entries)
for (var c = s.call(e), u; !(u = c.next()).done; )
H(u.value) && Ee(u.value, r);
var u = De(e);
if (typeof u == "function" && u !== e.entries)
for (var l = u.call(e), s; !(s = l.next()).done; )
X(s.value) && Ee(s.value, r);
}
}
}
function ar(e) {
function ir(e) {
{

@@ -601,3 +601,3 @@ var r = e.type;

t = r.propTypes;
else if (typeof r == "object" && (r.$$typeof === l || // Note: Memo only checks outer props here.
else if (typeof r == "object" && (r.$$typeof === v || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.

@@ -609,71 +609,71 @@ r.$$typeof === x))

if (t) {
var a = j(r);
Je(t, e.props, "prop", a, e);
var o = j(r);
Be(t, e.props, "prop", o, e);
} else if (r.PropTypes !== void 0 && !K) {
K = !0;
var s = j(r);
b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
var u = j(r);
R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown");
}
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
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 or(e) {
function sr(e) {
{
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
var a = r[t];
if (a !== "children" && a !== "key") {
k(e), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), k(null);
var o = r[t];
if (o !== "children" && o !== "key") {
$(e), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), $(null);
break;
}
}
e.ref !== null && (k(e), b("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
e.ref !== null && ($(e), R("Invalid attribute `ref` supplied to `React.Fragment`."), $(null));
}
}
function _e(e, r, t, a, s, c) {
function Te(e, r, t, o, u, l) {
{
var u = We(e);
if (!u) {
var s = Ye(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 E = tr();
E ? i += E : i += ye();
var d;
e === null ? d = "null" : G(e) ? d = "array" : e !== void 0 && e.$$typeof === o ? (d = "<" + (j(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : d = typeof e, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", d, i);
var _ = ar();
_ ? i += _ : i += Re();
var p;
e === null ? p = "null" : G(e) ? p = "array" : e !== void 0 && e.$$typeof === a ? (p = "<" + (j(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 v = rr(e, r, t, s, c);
if (v == null)
return v;
if (u) {
var h = nr(e, r, t, u, l);
if (h == null)
return h;
if (s) {
var T = r.children;
if (T !== void 0)
if (a)
if (o)
if (G(T)) {
for (var D = 0; D < T.length; D++)
Re(T[D], e);
be(T[D], e);
Object.freeze && Object.freeze(T);
} 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.");
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
Re(T, e);
be(T, e);
}
return e === p ? or(v) : ar(v), v;
return e === f ? sr(h) : ir(h), h;
}
}
function ir(e, r, t) {
return _e(e, r, t, !0);
}
function ur(e, r, t) {
return _e(e, r, t, !1);
return Te(e, r, t, !0);
}
var sr = ur, cr = ir;
I.Fragment = p, I.jsx = sr, I.jsxs = cr;
}()), I;
function cr(e, r, t) {
return Te(e, r, t, !1);
}
var lr = cr, fr = ur;
N.Fragment = f, N.jsx = lr, N.jsxs = fr;
}()), N;
}
process.env.NODE_ENV === "production" ? Z.exports = fr() : Z.exports = dr();
var h = Z.exports;
const je = ["#60463B", "#6C6F7D", "#59A96A", "#856A5D", "#2E3138"];
function we(n = 0, o = je) {
return je[n % o.length];
process.env.NODE_ENV === "production" ? Z.exports = vr() : Z.exports = pr();
var d = Z.exports;
const hr = ["#60463B", "#6C6F7D", "#59A96A", "#856A5D", "#2E3138"];
function we(n = 0, a = hr) {
return a[n % a.length];
}
function U(n) {
function k(n) {
switch (n) {

@@ -700,5 +700,5 @@ case "eq":

}
function vr(n, o) {
const { condition: f, opts: p } = n, { depth: m = 0, opColor: R = "white", colors: g } = p;
return /* @__PURE__ */ h.jsx("ul", { style: { padding: 0 }, children: f.conditions.map((y, l) => /* @__PURE__ */ h.jsxs(
function mr(n, a) {
const { condition: c, opts: f } = n, { depth: m = 0, opColor: E = "white", colors: g } = f;
return /* @__PURE__ */ d.jsx("ul", { style: { padding: 0 }, children: c.conditions.map((y, v) => /* @__PURE__ */ d.jsxs(
"li",

@@ -711,6 +711,6 @@ {

children: [
l > 0 ? /* @__PURE__ */ h.jsx("span", { style: { padding: "0 0.25rem", color: R }, children: U(f.op) }) : null,
/* @__PURE__ */ h.jsx("div", { style: { color: we(m, g) }, children: o.execute({
v > 0 ? /* @__PURE__ */ d.jsx("span", { style: { padding: "0 0.25rem", color: E }, children: k(c.op) }) : null,
/* @__PURE__ */ d.jsx("div", { style: { color: we(m, g) }, children: a.execute({
condition: y,
opts: { ...p, depth: m + 1 }
opts: { ...f, depth: m + 1 }
}) })

@@ -722,28 +722,32 @@ ]

}
const pr = ({ ctx: n, pipeline: o }) => {
const { condition: f, opts: p } = n, { depth: m = 0, render: R = ({ children: g }) => g } = p;
return /* @__PURE__ */ h.jsxs("ul", { className: "cond-fmt", children: [
/* @__PURE__ */ h.jsx("span", { className: "node", children: /* @__PURE__ */ h.jsx(R, { opts: p, condition: f, children: U(f.op) }) }),
f.conditions.map((g) => {
const y = o.execute({
const gr = "_condfmt_hqmc4_6", yr = "_op_hqmc4_11", Rr = "_ref_hqmc4_58", Q = {
condfmt: gr,
op: yr,
ref: Rr
}, _r = ({ ctx: n, pipeline: a }) => {
const { condition: c, opts: f } = n, { depth: m = 0, render: E = ({ children: g }) => g } = f;
return /* @__PURE__ */ d.jsxs("ul", { className: Q.condfmt, children: [
/* @__PURE__ */ d.jsx("span", { className: Q.op, children: /* @__PURE__ */ d.jsx(E, { opts: f, condition: c, children: k(c.op) }) }),
c.conditions.map((g) => {
const y = a.execute({
condition: g,
opts: { ...p, depth: m + 1 }
opts: { ...f, depth: m + 1 }
});
return /* @__PURE__ */ h.jsx("li", { children: y }, g.id);
return /* @__PURE__ */ d.jsx("li", { children: y }, g.id);
})
] });
}, hr = {
}, Er = {
name: "combination",
run(n, o, f) {
run(n, a, c) {
if (n.condition.type !== "combination")
return o();
return a();
switch (n.opts.formatter) {
case "text":
return vr(n, f);
return mr(n, c);
case "jsx":
return /* @__PURE__ */ h.jsx(
pr,
return /* @__PURE__ */ d.jsx(
_r,
{
ctx: n,
pipeline: f
pipeline: c
}

@@ -754,13 +758,13 @@ );

};
function mr(n) {
const { condition: o } = n, f = (m) => `DataSource(${JSON.stringify(m)})`;
return `${f(o.path)} ${U(o.op)} ${o.valueType === "datasource" ? `${f(o.value)}` : JSON.stringify(o.value)}`;
function br(n) {
const { condition: a } = n, c = (m) => `DataSource(${JSON.stringify(m)})`;
return `${c(a.path)} ${k(a.op)} ${a.valueType === "datasource" ? `${c(a.value)}` : JSON.stringify(a.value)}`;
}
const gr = ({
const Tr = ({
condition: n,
opts: o
opts: a
}) => {
const { depth: f = 0, render: p = ({ children: R }) => R } = o, m = we(f);
return /* @__PURE__ */ h.jsxs(p, { opts: o, condition: n, children: [
/* @__PURE__ */ h.jsxs(
const { depth: c = 0, render: f = ({ children: E }) => E } = a, m = we(c);
return /* @__PURE__ */ d.jsxs(f, { opts: a, condition: n, children: [
/* @__PURE__ */ d.jsxs(
"span",

@@ -778,3 +782,3 @@ {

),
/* @__PURE__ */ h.jsx(
/* @__PURE__ */ d.jsx(
"span",

@@ -786,6 +790,6 @@ {

},
children: U(n.op)
children: k(n.op)
}
),
/* @__PURE__ */ h.jsx(
/* @__PURE__ */ d.jsx(
"span",

@@ -796,3 +800,3 @@ {

},
children: n.valueType === "datasource" ? /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
children: n.valueType === "datasource" ? /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
"DataSource(",

@@ -805,88 +809,95 @@ JSON.stringify(n.value),

] });
}, yr = {
}, Sr = {
name: "datasource",
run(n, o) {
run(n, a) {
if (n.condition.type !== "datasource")
return o();
return a();
switch (n.opts.formatter) {
case "text":
return mr(n);
return br(n);
default:
return /* @__PURE__ */ h.jsx(gr, { ...n });
return /* @__PURE__ */ d.jsx(Tr, { ...n });
}
}
};
function br(n) {
const { condition: o } = n;
return o.id;
function Ce(n) {
const { condition: a } = n;
return `Has a ParentState ${k(a.op)} ${a.valueType === "datasource" ? `DataSource(${JSON.stringify(a.value)})` : JSON.stringify(a.value)}`;
}
function Er(n) {
const { condition: o } = n;
return /* @__PURE__ */ h.jsx("span", { children: o.id });
}
const Rr = {
name: "combination",
run(n, o) {
const xr = ({ condition: n, opts: a }) => {
const { render: c = ({ children: f }) => f } = a;
return /* @__PURE__ */ d.jsx(c, { opts: a, condition: n, children: Ce({
condition: n,
opts: a
}) });
}, jr = {
name: "parent-state",
run(n, a) {
if (n.condition.type !== "parentState")
return o();
return a();
switch (n.opts.formatter) {
case "text":
return br(n);
return Ce(n);
case "jsx":
return Er(n);
return /* @__PURE__ */ d.jsx(xr, { ...n });
}
}
};
function _r(n) {
const { condition: o } = n;
return o.id;
function Pe(n) {
const { condition: a } = n;
return `Has a Privilege ${k(a.op)} ${a.valueType === "datasource" ? `DataSource(${JSON.stringify(a.value)})` : JSON.stringify(a.value)}`;
}
function Tr(n) {
const { condition: o } = n;
return /* @__PURE__ */ h.jsx("span", { children: o.id });
}
const Sr = {
name: "combination",
run(n, o) {
const Or = ({ condition: n, opts: a }) => {
const { render: c = ({ children: f }) => f } = a;
return /* @__PURE__ */ d.jsx(c, { opts: a, condition: n, children: Pe({
condition: n,
opts: a
}) });
}, wr = {
name: "privilege",
run(n, a) {
if (n.condition.type !== "privilege")
return o();
return a();
switch (n.opts.formatter) {
case "text":
return _r(n);
return Pe(n);
case "jsx":
return Tr(n);
return /* @__PURE__ */ d.jsx(Or, { ...n });
}
}
};
function xr(n) {
const { condition: o } = n;
return o.id;
function Cr(n) {
const { condition: a } = n;
return `Ref(${a.id})`;
}
function jr(n) {
const { condition: o } = n;
return /* @__PURE__ */ h.jsx("span", { children: o.id });
}
const Or = {
name: "combination",
run(n, o) {
const Pr = ({ condition: n, opts: a }) => {
const { render: c = ({ children: f }) => f } = a;
return /* @__PURE__ */ d.jsxs(c, { opts: a, condition: n, children: [
"Ref(",
/* @__PURE__ */ d.jsx("span", { className: Q.ref, children: n.id }),
")"
] });
}, $r = {
name: "reference",
run(n, a) {
if (n.condition.type !== "reference")
return o();
return a();
switch (n.opts.formatter) {
case "text":
return xr(n);
return Cr(n);
case "jsx":
return jr(n);
return /* @__PURE__ */ d.jsx(Pr, { ...n });
}
}
}, Cr = lr(
}, kr = dr(
null,
hr,
yr,
Er,
Sr,
Rr,
Or
wr,
jr,
$r
).execute;
export {
Cr as format
kr as format
};
//# sourceMappingURL=index.es.js.map

@@ -8,5 +8,5 @@ export type Next<T = void, Async = true> = () => Async extends true ? Promise<T> : T;

export type Pipeline<T, G = void, Async = true> = {
push: (...middlewares: Plugin<T, G>[]) => void;
push: (...middlewares: Plugin<T, G, Async>[]) => void;
execute: (context: T) => Async extends true ? Promise<G> : G;
};
export declare function pipeline<T, G = void, Async = true>(defaultReturn: Async extends true ? Promise<G> : G, ...middlewares: Plugin<T, G, Async>[]): Pipeline<T, G, Async>;
export declare function pipeline<ContextType, ReturnType = void, Async = true>(defaultReturn: Async extends true ? Promise<ReturnType> : ReturnType, ...middlewares: Plugin<ContextType, ReturnType, Async>[]): Pipeline<ContextType, ReturnType, Async>;
{
"name": "@ws-ui/condfmt",
"private": false,
"version": "0.0.2",
"version": "0.0.3",
"type": "module",

@@ -11,3 +11,4 @@ "main": "./dist/index.cjs.js",

"format": "prettier --write src",
"test": "vitest",
"test": "vitest --coverage",
"test:ui": "vitest --ui",
"test:debug": "vitest --inspect-brk --pool threads --poolOptions.threads.singleThread",

@@ -25,2 +26,3 @@ "dev": "vite",

"devDependencies": {
"@testing-library/react": "^15.0.5",
"@types/react": ">= 17",

@@ -32,2 +34,4 @@ "@types/react-dom": ">= 17",

"@vitejs/plugin-react-swc": "^3.5.0",
"@vitest/coverage-v8": "^1.5.2",
"@vitest/ui": "^1.5.2",
"eslint": "^8.57.0",

@@ -39,3 +43,2 @@ "eslint-plugin-react-hooks": "^4.6.0",

"react-icons": "^5.1.0",
"react-test-renderer": "^18.2.0",
"typescript": "^5.2.2",

@@ -42,0 +45,0 @@ "vite": "^5.2.0",

Sorry, the diff of this file is not supported yet

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