import{a as u}from"./chunk-3DRF25PV.mjs";import{createContext as y,useRef as a}from"react";import{create as b}from"zustand";import{jsx as s}from"react/jsx-runtime";function o(r){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(r)}function f(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function c(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?f(Object(t),!0).forEach(function(n){p(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function p(r,e,t){return(e=m(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function m(r){var e=l(r,"string");return o(e)=="symbol"?e:e+""}function l(r,e){if(o(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(o(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var v=y(null),O=function(e){var t=e.children,n=a();return n.current||(n.current=b(function(i){return c(c({},u),{},{setCommentReply:i,resetCommentReply:function(){return i(c({},u))}})})),s(v.Provider,{value:n.current,children:t})},w=O;export{v as a,w as b};
//# sourceMappingURL=chunk-4BT7ADKX.mjs.map