(this["webpackJsonpstreamlit-cookies"]=this["webpackJsonpstreamlit-cookies"]||[]).push([[0],{4:function(e,t,n){e.exports=n(5)},5:function(e,t,n){"use strict";n.r(t);var o=n(0),a=n(2),s=n.n(a);function i(e){if("string"==typeof e){if(""==e)return!1;return!new RegExp("^[ ]+$").test(e)}return!1}o.a.events.addEventListener(o.a.RENDER_EVENT,(function(e){var t=e.detail,n=t.args.act,a=t.args.name;if(0==i(a))return o.a.setComponentValue({code:"-1",msg:"Name not allowed!"});if(0==i(n))return o.a.setComponentValue({code:"-1",msg:"Action not specified!"});if("del"==n)s.a.remove(a),o.a.setComponentValue({code:"200",msg:"Deletion succeeded!"});else if("add"==n){var r=t.args.value;s.a.set(a,r,{expires:36500}),o.a.setComponentValue({code:"200",msg:"Addition succeeded!"})}else if("get"==n){var c=s.a.get(a)||null;o.a.setComponentValue({code:"200",msg:"Query succeeded!",value:c})}else o.a.setComponentValue("Action not allowed!")})),o.a.setComponentReady()}},[[4,1,2]]]);
//# sourceMappingURL=main.3e3766d6.chunk.js.map