(self.webpackChunk_studyhub_co_react_comments_django_client=self.webpackChunk_studyhub_co_react_comments_django_client||[]).push([[1268],{18835:(n,e,r)=>{"use strict";var t=r(94470),o=r(18869),i=r(10939),u=r(28281),f=r(3315),c=r(33310);n.exports=function n(){var e=[],r=u(),d={},E=!1,_=-1;return m.data=function(n,e){if(f(n))return 2===arguments.length?(w("data",E),d[n]=e,m):l.call(d,n)&&d[n]||null;if(n)return w("data",E),d=n,m;return d},m.freeze=b,m.attachers=e,m.use=function(n){var r;if(w("use",E),null===n||void 0===n);else if("function"===typeof n)f.apply(null,arguments);else{if("object"!==typeof n)throw new Error("Expected usable value, not `"+n+"`");"length"in n?u(n):o(n)}r&&(d.settings=t(d.settings||{},r));return m;function o(n){u(n.plugins),n.settings&&(r=t(r||{},n.settings))}function i(n){if("function"===typeof n)f(n);else{if("object"!==typeof n)throw new Error("Expected usable value, not `"+n+"`");"length"in n?f.apply(null,n):o(n)}}function u(n){var e,r;if(null===n||void 0===n);else{if("object"!==typeof n||!("length"in n))throw new Error("Expected a list of plugins, not `"+n+"`");for(e=n.length,r=-1;++r<e;)i(n[r])}}function f(n,r){var o=C(n);o?(c(o[1])&&c(r)&&(r=t(o[1],r)),o[1]=r):e.push(s.call(arguments))}},m.parse=function(n){var e,r=i(n);if(b(),y("parse",e=m.Parser),p(e))return new e(String(r),r).parse();return e(String(r),r)},m.stringify=function(n,e){var r,t=i(e);if(b(),h("stringify",r=m.Compiler),g(n),p(r))return new r(n,t).compile();return r(n,t)},m.run=S,m.runSync=function(n,e){var r,t=!1;return S(n,e,i),v("runSync","run",t),r;function i(n,e){t=!0,o(n),r=e}},m.process=P,m.processSync=function(n){var e,r=!1;return b(),y("processSync",m.Parser),h("processSync",m.Compiler),P(e=i(n),t),v("processSync","process",r),e;function t(n){r=!0,o(n)}},m;function m(){for(var r=n(),o=e.length,i=-1;++i<o;)r.use.apply(null,e[i]);return r.data(t(!0,{},d)),r}function b(){var n,t,o,i;if(E)return m;for(;++_<e.length;)t=(n=e[_])[0],null,!1!==(o=n[1])&&(!0===o&&(n[1]=void 0),"function"===typeof(i=t.apply(m,n.slice(1)))&&r.use(i));return E=!0,_=1/0,m}function C(n){for(var r,t=e.length,o=-1;++o<t;)if((r=e[o])[0]===n)return r}function S(n,e,t){if(g(n),b(),t||"function"!==typeof e||(t=e,e=null),!t)return new Promise(o);function o(o,u){r.run(n,i(e),(function(e,r,i){r=r||n,e?u(e):o?o(r):t(null,r,i)}))}o(null,t)}function P(n,e){if(b(),y("process",m.Parser),h("process",m.Compiler),!e)return new Promise(r);function r(r,t){var o=i(n);a.run(m,{file:o},(function(n){n?t(n):r?r(o):e(null,o)}))}r(null,e)}}().freeze();var s=[].slice,l={}.hasOwnProperty,a=u().use((function(n,e){e.tree=n.parse(e.file)})).use((function(n,e,r){n.run(e.tree,e.file,(function(n,t,o){n?r(n):(e.tree=t,e.file=o,r())}))})).use((function(n,e){e.file.contents=n.stringify(e.tree,e.file)}));function p(n){return"function"===typeof n&&function(n){var e;for(e in n)return!0;return!1}(n.prototype)}function y(n,e){if("function"!==typeof e)throw new Error("Cannot `"+n+"` without `Parser`")}function h(n,e){if("function"!==typeof e)throw new Error("Cannot `"+n+"` without `Compiler`")}function w(n,e){if(e)throw new Error(["Cannot invoke `"+n+"` on a frozen processor.\nCreate a new ","processor first, by invoking it: use `processor()` instead of ","`processor`."].join(""))}function g(n){if(!n||!f(n.type))throw new Error("Expected node, got `"+n+"`")}function v(n,e,r){if(!r)throw new Error("`"+n+"` finished async. Use `"+e+"` instead")}}}]);