disqusjs
Version:
Alternative DISQUS - Render comments components from Disqus API
2 lines (1 loc) • 35.6 kB
JavaScript
var e,n;e=this,n=function(){"use strict";function e(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function n(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.forEach(function(t){e(n,t,r[t])})}return n}var t,r,o,l,i,_,s,u,c,a,d,f,p,h={},m=[],v=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y=Array.isArray;function g(e,n){for(var t in n)e[t]=n[t];return e}function b(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function q(e,n,t){var o,l,i,_={};for(i in n)"key"==i?o=n[i]:"ref"==i?l=n[i]:_[i]=n[i];if(arguments.length>2&&(_.children=arguments.length>3?r.call(arguments,2):t),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===_[i]&&(_[i]=e.defaultProps[i]);return k(e,_,o,l,null)}function k(e,n,t,r,i){var _={type:e,props:n,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==i?++l:i,__i:-1,__u:0};return null==i&&null!=o.vnode&&o.vnode(_),_}function j(e){return e.children}function w(e,n){this.props=e,this.context=n}function N(e,n){if(null==n)return e.__?N(e.__,e.__i+1):null;for(var t;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e)return t.__e;return"function"==typeof e.type?N(e):null}function S(e){(!e.__d&&(e.__d=!0)&&i.push(e)&&!P.__r++||_!=o.debounceRendering)&&((_=o.debounceRendering)||s)(P)}function P(){for(var e,n,t,r,l,_,s=1;i.length;)i.length>s&&i.sort(u),e=i.shift(),s=i.length,e.__d&&(n=void 0,t=void 0,r=(t=e.__v).__e,l=[],_=[],e.__P&&((n=g({},t)).__v=t.__v+1,o.vnode&&o.vnode(n),U(e.__P,n,t,e.__n,e.__P.namespaceURI,32&t.__u?[r]:null,l,null==r?N(t):r,!!(32&t.__u),_),n.__v=t.__v,n.__.__k[n.__i]=n,A(l,n,_),t.__e=t.__=null,n.__e!=r&&function e(n){var t,r;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,t=0;t<n.__k.length;t++)if(null!=(r=n.__k[t])&&null!=r.__e){n.__e=n.__c.base=r.__e;break}return e(n)}}(n)));P.__r=0}function C(e,n,t,r,l,i,_,s,u,c,a){var d,f,p,v,g,q,w,S=r&&r.__k||m,P=n.length;for(u=function(e,n,t,r,l){var i,_,s,u,c,a=t.length,d=a,f=0;for(e.__k=Array(l),i=0;i<l;i++)null!=(_=n[i])&&"boolean"!=typeof _&&"function"!=typeof _?(u=i+f,(_=e.__k[i]="string"==typeof _||"number"==typeof _||"bigint"==typeof _||_.constructor==String?k(null,_,null,null,null):y(_)?k(j,{children:_},null,null,null):null==_.constructor&&_.__b>0?k(_.type,_.props,_.key,_.ref?_.ref:null,_.__v):_).__=e,_.__b=e.__b+1,s=null,-1!=(c=_.__i=function(e,n,t,r){var o,l,i,_=e.key,s=e.type,u=n[t],c=null!=u&&0==(2&u.__u);if(null===u&&null==e.key||c&&_==u.key&&s==u.type)return t;if(r>+!!c){for(o=t-1,l=t+1;o>=0||l<n.length;)if(null!=(u=n[i=o>=0?o--:l++])&&0==(2&u.__u)&&_==u.key&&s==u.type)return i}return -1}(_,t,u,d))&&(d--,(s=t[c])&&(s.__u|=2)),null==s||null==s.__v?(-1==c&&(l>a?f--:l<a&&f++),"function"!=typeof _.type&&(_.__u|=4)):c!=u&&(c==u-1?f--:c==u+1?f++:(c>u?f--:f++,_.__u|=4))):e.__k[i]=null;if(d)for(i=0;i<a;i++)null!=(s=t[i])&&0==(2&s.__u)&&(s.__e==r&&(r=N(s)),function e(n,t,r){var l,i;if(o.unmount&&o.unmount(n),(l=n.ref)&&(l.current&&l.current!=n.__e||H(l,null,t)),null!=(l=n.__c)){if(l.componentWillUnmount)try{l.componentWillUnmount()}catch(e){o.__e(e,t)}l.base=l.__P=null}if(l=n.__k)for(i=0;i<l.length;i++)l[i]&&e(l[i],t,r||"function"!=typeof n.type);r||b(n.__e),n.__c=n.__=n.__e=void 0}(s,s));return r}(t,n,S,u,P),d=0;d<P;d++)null!=(p=t.__k[d])&&(f=-1==p.__i?h:S[p.__i]||h,p.__i=d,q=U(e,p,f,l,i,_,s,u,c,a),v=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&H(f.ref,null,p),a.push(p.ref,p.__c||v,p)),null==g&&null!=v&&(g=v),(w=!!(4&p.__u))||f.__k===p.__k?u=function e(n,t,r,o){var l,i;if("function"==typeof n.type){for(l=n.__k,i=0;l&&i<l.length;i++)l[i]&&(l[i].__=n,t=e(l[i],t,r,o));return t}n.__e!=t&&(o&&(t&&n.type&&!t.parentNode&&(t=N(n)),r.insertBefore(n.__e,t||null)),t=n.__e);do t=t&&t.nextSibling;while(null!=t&&8==t.nodeType);return t}(p,u,e,w):"function"==typeof p.type&&void 0!==q?u=q:v&&(u=v.nextSibling),p.__u&=-7);return t.__e=g,u}function x(e,n){return n=n||[],null==e||"boolean"==typeof e||(y(e)?e.some(function(e){x(e,n)}):n.push(e)),n}function E(e,n,t){"-"==n[0]?e.setProperty(n,null==t?"":t):e[n]=null==t?"":"number"!=typeof t||v.test(n)?t:t+"px"}function O(e,n,t,r,o){var l,i;e:if("style"==n)if("string"==typeof t)e.style.cssText=t;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(n in r)t&&n in t||E(e.style,n,"");if(t)for(n in t)r&&t[n]==r[n]||E(e.style,n,t[n])}else if("o"==n[0]&&"n"==n[1])l=n!=(n=n.replace(c,"$1")),n=(i=n.toLowerCase())in e||"onFocusOut"==n||"onFocusIn"==n?i.slice(2):n.slice(2),e.l||(e.l={}),e.l[n+l]=t,t?r?t.u=r.u:(t.u=a,e.addEventListener(n,l?f:d,l)):e.removeEventListener(n,l?f:d,l);else{if("http://www.w3.org/2000/svg"==o)n=n.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=n&&"height"!=n&&"href"!=n&&"list"!=n&&"form"!=n&&"tabIndex"!=n&&"download"!=n&&"rowSpan"!=n&&"colSpan"!=n&&"role"!=n&&"popover"!=n&&n in e)try{e[n]=null==t?"":t;break e}catch(e){}"function"==typeof t||(null==t||!1===t&&"-"!=n[4]?e.removeAttribute(n):e.setAttribute(n,"popover"==n&&1==t?"":t))}}function D(e){return function(n){if(this.l){var t=this.l[n.type+e];if(null==n.t)n.t=a++;else if(n.t<t.u)return;return t(o.event?o.event(n):n)}}}function U(e,n,t,l,i,_,s,u,c,a){var d,f,p,m,v,q,k,S,P,x,E,D,U,A,H,I,M,R=n.type;if(null!=n.constructor)return null;128&t.__u&&(c=!!(32&t.__u),_=[u=n.__e=t.__e]),(d=o.__b)&&d(n);e:if("function"==typeof R)try{if(S=n.props,P="prototype"in R&&R.prototype.render,x=(d=R.contextType)&&l[d.__c],E=d?x?x.props.value:d.__:l,t.__c?k=(f=n.__c=t.__c).__=f.__E:(P?n.__c=f=new R(S,E):(n.__c=f=new w(S,E),f.constructor=R,f.render=$),x&&x.sub(f),f.props=S,f.state||(f.state={}),f.context=E,f.__n=l,p=f.__d=!0,f.__h=[],f._sb=[]),P&&null==f.__s&&(f.__s=f.state),P&&null!=R.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=g({},f.__s)),g(f.__s,R.getDerivedStateFromProps(S,f.__s))),m=f.props,v=f.state,f.__v=n,p)P&&null==R.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),P&&null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(P&&null==R.getDerivedStateFromProps&&S!==m&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(S,E),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(S,f.__s,E)||n.__v==t.__v){for(n.__v!=t.__v&&(f.props=S,f.state=f.__s,f.__d=!1),n.__e=t.__e,n.__k=t.__k,n.__k.some(function(e){e&&(e.__=n)}),D=0;D<f._sb.length;D++)f.__h.push(f._sb[D]);f._sb=[],f.__h.length&&s.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(S,f.__s,E),P&&null!=f.componentDidUpdate&&f.__h.push(function(){f.componentDidUpdate(m,v,q)})}if(f.context=E,f.props=S,f.__P=e,f.__e=!1,U=o.__r,A=0,P){for(f.state=f.__s,f.__d=!1,U&&U(n),d=f.render(f.props,f.state,f.context),H=0;H<f._sb.length;H++)f.__h.push(f._sb[H]);f._sb=[]}else do f.__d=!1,U&&U(n),d=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++A<25);f.state=f.__s,null!=f.getChildContext&&(l=g(g({},l),f.getChildContext())),P&&!p&&null!=f.getSnapshotBeforeUpdate&&(q=f.getSnapshotBeforeUpdate(m,v)),I=d,null!=d&&d.type===j&&null==d.key&&(I=function e(n){return"object"!=typeof n||null==n||n.__b&&n.__b>0?n:y(n)?n.map(e):g({},n)}(d.props.children)),u=C(e,y(I)?I:[I],n,t,l,i,_,s,u,c,a),f.base=n.__e,n.__u&=-161,f.__h.length&&s.push(f),k&&(f.__E=f.__=null)}catch(e){if(n.__v=null,c||null!=_)if(e.then){for(n.__u|=c?160:128;u&&8==u.nodeType&&u.nextSibling;)u=u.nextSibling;_[_.indexOf(u)]=null,n.__e=u}else{for(M=_.length;M--;)b(_[M]);T(n)}else n.__e=t.__e,n.__k=t.__k,e.then||T(n);o.__e(e,n,t)}else null==_&&n.__v==t.__v?(n.__k=t.__k,n.__e=t.__e):u=n.__e=function(e,n,t,l,i,_,s,u,c){var a,d,f,p,m,v,g,q=t.props,k=n.props,j=n.type;if("svg"==j?i="http://www.w3.org/2000/svg":"math"==j?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=_){for(a=0;a<_.length;a++)if((m=_[a])&&"setAttribute"in m==!!j&&(j?m.localName==j:3==m.nodeType)){e=m,_[a]=null;break}}if(null==e){if(null==j)return document.createTextNode(k);e=document.createElementNS(i,j,k.is&&k),u&&(o.__m&&o.__m(n,_),u=!1),_=null}if(null==j)q===k||u&&e.data==k||(e.data=k);else{if(_=_&&r.call(e.childNodes),q=t.props||h,!u&&null!=_)for(q={},a=0;a<e.attributes.length;a++)q[(m=e.attributes[a]).name]=m.value;for(a in q)if(m=q[a],"children"==a);else if("dangerouslySetInnerHTML"==a)f=m;else if(!(a in k)){if("value"==a&&"defaultValue"in k||"checked"==a&&"defaultChecked"in k)continue;O(e,a,null,m,i)}for(a in k)m=k[a],"children"==a?p=m:"dangerouslySetInnerHTML"==a?d=m:"value"==a?v=m:"checked"==a?g=m:u&&"function"!=typeof m||q[a]===m||O(e,a,m,q[a],i);if(d)u||f&&(d.__html==f.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),n.__k=[];else if(f&&(e.innerHTML=""),C("template"==n.type?e.content:e,y(p)?p:[p],n,t,l,"foreignObject"==j?"http://www.w3.org/1999/xhtml":i,_,s,_?_[0]:t.__k&&N(t,0),u,c),null!=_)for(a=_.length;a--;)b(_[a]);u||(a="value","progress"==j&&null==v?e.removeAttribute("value"):null==v||v===e[a]&&("progress"!=j||v)&&("option"!=j||v==q[a])||O(e,a,v,q[a],i),a="checked",null!=g&&g!=e[a]&&O(e,a,g,q[a],i))}return e}(t.__e,n,t,l,i,_,s,c,a);return(d=o.diffed)&&d(n),128&n.__u?void 0:u}function T(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(T)}function A(e,n,t){for(var r=0;r<t.length;r++)H(t[r],t[++r],t[++r]);o.__c&&o.__c(n,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(e){e.call(n)})}catch(e){o.__e(e,n.__v)}})}function H(e,n,t){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==n||(e.__u=e(n))}else e.current=n}catch(e){o.__e(e,t)}}function $(e,n,t){return this.constructor(e,t)}function I(e,n,t){var l,i,_;n==document&&(n=document.documentElement),o.__&&o.__(e,n),l=n.__k,i=[],_=[],U(n,e=n.__k=q(j,null,[e]),l||h,h,n.namespaceURI,l?null:n.firstChild?r.call(n.childNodes):null,i,l?l.__e:n.firstChild,!1,_),A(i,e,_)}function M(e,n,t){var o,l,i,_,s=g({},e.props);for(i in e.type&&e.type.defaultProps&&(_=e.type.defaultProps),n)"key"==i?o=n[i]:"ref"==i?l=n[i]:s[i]=void 0===n[i]&&null!=_?_[i]:n[i];return arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):t),k(e.type,s,o||e.key,l||e.ref,null)}function R(e){function n(e){var t,r;return this.getChildContext||(t=new Set,(r={})[n.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){t=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&t.forEach(function(e){e.__e=!0,S(e)})},this.sub=function(e){t.add(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t&&t.delete(e),n&&n.call(e)}}),e.children}return n.__c="__cC"+p++,n.__=e,n.Provider=n.__l=(n.Consumer=function(e,n){return e.children(n)}).contextType=n,n}r=m.slice,o={__e:function(e,n,t,r){for(var o,l,i;n=n.__;)if((o=n.__c)&&!o.__)try{if((l=o.constructor)&&null!=l.getDerivedStateFromError&&(o.setState(l.getDerivedStateFromError(e)),i=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(n){e=n}throw e}},l=0,w.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=g({},this.state),"function"==typeof e&&(e=e(g({},t),this.props)),e&&g(t,e),null!=e&&this.__v&&(n&&this._sb.push(n),S(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),S(this))},w.prototype.render=j,i=[],s="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,u=function(e,n){return e.__v.__b-n.__v.__b},P.__r=0,c=/(PointerCapture)$|Capture$/i,a=0,d=D(!1),f=D(!0),p=0;var L,W,F,B,V=0,Q=[],z=o,J=z.__b,Z=z.__r,Y=z.diffed,G=z.__c,K=z.unmount,X=z.__;function ee(e,n){z.__h&&z.__h(W,e,V||n),V=0;var t=W.__H||(W.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function en(e){return V=1,function(e,n,t){var r=ee(L++,2);if(r.t=e,!r.__c&&(r.__=[ed(void 0,n),function(e){var n=r.__N?r.__N[0]:r.__[0],t=r.t(n,e);n!==t&&(r.__N=[t,r.__[1]],r.__c.setState({}))}],r.__c=W,!W.__f)){var o=function(e,n,t){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter(function(e){return!!e.__c});if(o.every(function(e){return!e.__N}))return!l||l.call(this,e,n,t);var i=r.__c.props!==e;return o.forEach(function(e){if(e.__N){var n=e.__[0];e.__=e.__N,e.__N=void 0,n!==e.__[0]&&(i=!0)}}),l&&l.call(this,e,n,t)||i};W.__f=!0;var l=W.shouldComponentUpdate,i=W.componentWillUpdate;W.componentWillUpdate=function(e,n,t){if(this.__e){var r=l;l=void 0,o(e,n,t),l=r}i&&i.call(this,e,n,t)},W.shouldComponentUpdate=o}return r.__N||r.__}(ed,e)}function et(e,n){var t=ee(L++,3);!z.__s&&ea(t.__H,n)&&(t.__=e,t.u=n,W.__H.__h.push(t))}function er(e){return V=5,eo(function(){return{current:e}},[])}function eo(e,n){var t=ee(L++,7);return ea(t.__H,n)&&(t.__=e(),t.__H=n,t.__h=e),t.__}function el(e,n){return V=8,eo(function(){return e},n)}function ei(e){var n=W.context[e.__c],t=ee(L++,9);return t.c=e,n?(null==t.__&&(t.__=!0,n.sub(W)),n.props.value):e.__}function e_(){for(var e;e=Q.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(eu),e.__H.__h.forEach(ec),e.__H.__h=[]}catch(n){e.__H.__h=[],z.__e(n,e.__v)}}z.__b=function(e){W=null,J&&J(e)},z.__=function(e,n){e&&n.__k&&n.__k.__m&&(e.__m=n.__k.__m),X&&X(e,n)},z.__r=function(e){Z&&Z(e),L=0;var n=(W=e.__c).__H;n&&(F===W?(n.__h=[],W.__h=[],n.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(n.__h.forEach(eu),n.__h.forEach(ec),n.__h=[],L=0)),F=W},z.diffed=function(e){Y&&Y(e);var n=e.__c;n&&n.__H&&(n.__H.__h.length&&(1!==Q.push(n)&&B===z.requestAnimationFrame||((B=z.requestAnimationFrame)||function(e){var n,t=function(){clearTimeout(r),es&&cancelAnimationFrame(n),setTimeout(e)},r=setTimeout(t,35);es&&(n=requestAnimationFrame(t))})(e_)),n.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),F=W=null},z.__c=function(e,n){n.some(function(e){try{e.__h.forEach(eu),e.__h=e.__h.filter(function(e){return!e.__||ec(e)})}catch(t){n.some(function(e){e.__h&&(e.__h=[])}),n=[],z.__e(t,e.__v)}}),G&&G(e,n)},z.unmount=function(e){K&&K(e);var n,t=e.__c;t&&t.__H&&(t.__H.__.forEach(function(e){try{eu(e)}catch(e){n=e}}),t.__H=void 0,n&&z.__e(n,t.__v))};var es="function"==typeof requestAnimationFrame;function eu(e){var n=W,t=e.__c;"function"==typeof t&&(e.__c=void 0,t()),W=n}function ec(e){var n=W;e.__c=e.__(),W=n}function ea(e,n){return!e||e.length!==n.length||n.some(function(n,t){return n!==e[t]})}function ed(e,n){return"function"==typeof n?n(e):n}function ef(e,n){for(var t in n)e[t]=n[t];return e}function ep(e,n){for(var t in e)if("__source"!==t&&!(t in n))return!0;for(var r in n)if("__source"!==r&&e[r]!==n[r])return!0;return!1}function eh(e,n){this.props=e,this.context=n}function em(e,n){function t(e){var t=this.props.ref,r=t==e.ref;return!r&&t&&(t.call?t(null):t.current=null),n?!n(this.props,e)||!r:ep(this.props,e)}function r(n){return this.shouldComponentUpdate=t,q(e,n)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r.type=e,r}(eh.prototype=new w).isPureReactComponent=!0,eh.prototype.shouldComponentUpdate=function(e,n){return ep(this.props,e)||ep(this.state,n)};var ev=o.__b;o.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ev&&ev(e)};var ey="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,eg=o.__e;o.__e=function(e,n,t,r){if(e.then){for(var o,l=n;l=l.__;)if((o=l.__c)&&o.__c)return null==n.__e&&(n.__e=t.__e,n.__k=t.__k),o.__c(e,n)}eg(e,n,t,r)};var eb=o.unmount;function eq(){this.__u=0,this.o=null,this.__b=null}function ek(e){var n=e.__.__c;return n&&n.__a&&n.__a(e)}function ej(){this.i=null,this.l=null}o.unmount=function(e){var n=e.__c;n&&n.__R&&n.__R(),n&&32&e.__u&&(e.type=null),eb&&eb(e)},(eq.prototype=new w).__c=function(e,n){var t=n.__c,r=this;null==r.o&&(r.o=[]),r.o.push(t);var o=ek(r.__v),l=!1,i=function(){l||(l=!0,t.__R=null,o?o(_):_())};t.__R=i;var _=function(){if(!--r.__u){if(r.state.__a){var e,n=r.state.__a;r.__v.__k[0]=function e(n,t,r){return n&&r&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return e(n,t,r)}),n.__c&&n.__c.__P===t&&(n.__e&&r.appendChild(n.__e),n.__c.__e=!0,n.__c.__P=r)),n}(n,n.__c.__P,n.__c.__O)}for(r.setState({__a:r.__b=null});e=r.o.pop();)e.forceUpdate()}};r.__u++||32&n.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},eq.prototype.componentWillUnmount=function(){this.o=[]},eq.prototype.render=function(e,n){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(n,t,r){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),n.__c.__H=null),null!=(n=ef({},n)).__c&&(n.__c.__P===r&&(n.__c.__P=t),n.__c.__e=!0,n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return e(n,t,r)})),n}(this.__b,t,r.__O=r.__P)}this.__b=null}var o=n.__a&&q(j,null,e.fallback);return o&&(o.__u&=-33),[q(j,null,n.__a?null:e.children),o]};var ew=function(e,n,t){if(++t[1]===t[0]&&e.l.delete(n),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(t=e.i;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;e.i=t=t[2]}};(ej.prototype=new w).__a=function(e){var n=this,t=ek(n.__v),r=n.l.get(e);return r[0]++,function(o){var l=function(){n.props.revealOrder?(r.push(o),ew(n,e,r)):o()};t?t(l):l()}},ej.prototype.render=function(e){this.i=null,this.l=new Map;var n=x(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&n.reverse();for(var t=n.length;t--;)this.l.set(n[t],this.i=[1,0,this.i]);return e.children},ej.prototype.componentDidUpdate=ej.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(n,t){ew(e,t,n)})};var eN="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,eS=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,eP=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,eC=/[A-Z0-9]/g,ex="undefined"!=typeof document;w.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(w.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(n){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:n})}})});var eE=o.event;function eO(){}function eD(){return this.cancelBubble}function eU(){return this.defaultPrevented}o.event=function(e){return eE&&(e=eE(e)),e.persist=eO,e.isPropagationStopped=eD,e.isDefaultPrevented=eU,e.nativeEvent=e};var eT={enumerable:!1,configurable:!0,get:function(){return this.class}},eA=o.vnode;o.vnode=function(e){"string"==typeof e.type&&function(e){var n=e.props,t=e.type,r={},o=-1===t.indexOf("-");for(var l in n){var i=n[l];if(!("value"===l&&"defaultValue"in n&&null==i||ex&&"children"===l&&"noscript"===t||"class"===l||"className"===l)){var _,s=l.toLowerCase();"defaultValue"===l&&"value"in n&&null==n.value?l="value":"download"===l&&!0===i?i="":"translate"===s&&"no"===i?i=!1:"o"===s[0]&&"n"===s[1]?"ondoubleclick"===s?l="ondblclick":"onchange"!==s||"input"!==t&&"textarea"!==t||(_=n.type,("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(_))?"onfocus"===s?l="onfocusin":"onblur"===s?l="onfocusout":eP.test(l)&&(l=s):s=l="oninput":o&&eS.test(l)?l=l.replace(eC,"-$&").toLowerCase():null===i&&(i=void 0),"oninput"===s&&r[l=s]&&(l="oninputCapture"),r[l]=i}}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=x(n.children).forEach(function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)})),"select"==t&&null!=r.defaultValue&&(r.value=x(n.children).forEach(function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value})),n.class&&!n.className?(r.class=n.class,Object.defineProperty(r,"className",eT)):(n.className&&!n.class||n.class&&n.className)&&(r.class=r.className=n.className),e.props=r}(e),e.$$typeof=eN,eA&&eA(e)};var eH=o.__r;o.__r=function(e){eH&&eH(e)};var e$=o.diffed;o.diffed=function(e){e$&&e$(e);var n=e.props,t=e.__e;null!=t&&"textarea"===e.type&&"value"in n&&n.value!==t.value&&(t.value=null==n.value?"":n.value)};var eI=0;function eM(e,n,t,r,l,i){n||(n={});var _,s,u=n;if("ref"in u)for(s in u={},n)"ref"==s?_=n[s]:u[s]=n[s];var c={type:e,props:u,key:t,ref:_,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--eI,__i:-1,__u:0,__source:l,__self:i};if("function"==typeof e&&(_=e.defaultProps))for(s in _)void 0===u[s]&&(u[s]=_[s]);return o.vnode&&o.vnode(c),c}function eR(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}function eL(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},l=Object.keys(e);for(r=0;r<l.length;r++)t=l[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)t=l[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}let eW=em(e=>{let{contexts:n,children:t}=e;return n.reduceRight((e,n)=>(function(e){return e&&e.$$typeof===eN?M.apply(null,arguments):e})(n,{children:e}),t)}),eF=em(()=>eM("footer",{className:"dsqjs-footer-container",children:eM("p",{className:"dsqjs-footer",children:["Powered by ",eM("a",{className:"dsqjs-disqus-logo",href:"https://disqus.com",target:"_blank",rel:"external nofollow noopener noreferrer"})," ","&"," ",eM("a",{className:"dsqjs-dsqjs-logo",href:"https://disqusjs.skk.moe",target:"_blank",children:"DisqusJS"})]})})),eB=function(e,n){et(()=>{let n=new AbortController,t=e(n.signal);return()=>{n.abort(),null==t||t()}},n)},eV=()=>{};function eQ(e){let n=R(e),t=R(eV);return[r=>{let{children:o,initialState:l}=r,[i,_]=en(null!=l?l:e);return eM(n.Provider,{value:i,children:eM(t.Provider,{value:_,children:o})})},()=>ei(n),()=>ei(t),n]}let[ez,eJ,eZ]=eQ(function(){{let e=localStorage.getItem("dsqjs_mode");if("dsqjs"===e||"disqus"===e)return e}return null}());function eY(){let e=eZ();return el(n=>{e(n),Promise.resolve().then(()=>{null===n?localStorage.removeItem("dsqjs_mode"):localStorage.setItem("dsqjs_mode",n)})},[e])}let[eG,eK,eX]=eQ(!1),e0=em(e=>{var{isError:t,isLoading:r}=e,o=eL(e,["isError","isLoading"]);let l=eo(()=>t?"加载失败,请重试":r?"正在加载...":"加载更多评论",[t,r]);return eM("a",eR(n({},o),{id:"dsqjs-load-more",className:"dsqjs-load-more "+(t?"is-error":""),role:"button",children:l}))}),e1=em(({children:e})=>{let n=eY();return eM("a",{id:"dsqjs-force-disqus",className:"dsqjs-msg-btn",onClick:()=>n("disqus"),children:e})}),e3=em(({children:e})=>{let n=eY();return eM("a",{id:"dsqjs-test-disqus",className:"dsqjs-msg-btn",onClick:()=>n(null),role:"button",children:e})}),e2=em(({children:e})=>{let n=eY();return eM("a",{id:"dsqjs-force-dsqjs",className:"dsqjs-msg-btn",onClick:()=>n("dsqjs"),role:"button",children:e})}),e9=em(({children:e})=>{let n=eX();return eM("a",{id:"dsqjs-reload-dsqjs",className:"dsqjs-msg-btn",onClick:()=>n(!1),role:"button",children:e})}),[e8,e4,e6]=eQ(null),e5=function(e,n){var t=ee(L++,4);!z.__s&&ea(t.__H,n)&&(t.__=e,t.u=n,W.__h.push(t))},e7="disqus_thread",ne="dsq-embed-scr",nn=em(({shortname:e,identifier:n,url:t,title:r})=>{let o=e6(),[l,i]=en(!1);return e5(()=>o(null)),et(()=>{let o=()=>{{var e;window.disqus_config=void 0;let n=document.getElementById(ne);n&&(document.head.removeChild(n),n.remove()),null==(e=window.DISQUS)||e.reset({});try{delete window.DISQUS}catch(e){window.DISQUS=void 0}let t=document.getElementById(e7);if(t)for(;t.hasChildNodes();)t.firstChild&&t.firstChild.remove();document.querySelectorAll('link[href*="disquscdn.com/next"], link[href*="disqus.com/next"], script[src*="disquscdn.com/next/embed"], script[src*="disqus.com/count-data.js"], iframe[title="Disqus"]').forEach(e=>e.remove())}};return window.disqus_shortname!==e&&o(),!function(e,n){if(window.DISQUS&&document.getElementById(ne))window.DISQUS.reset({reload:!0,config:function(){e.identifier&&(this.page.identifier=e.identifier),e.url&&(this.page.url=e.url),e.title&&(this.page.title=e.title),this.callbacks.onReady=[n]}});else{window.disqus_config=function(){e.identifier&&(this.page.identifier=e.identifier),e.identifier&&(this.page.url=e.identifier),e.identifier&&(this.page.title=e.identifier),this.callbacks.onReady=[n]},window.disqus_shortname=e.shortname;let t=document.createElement("script");t.id=ne,t.src=`https://${e.shortname}.disqus.com/embed.js`,t.async=!0,document.head.appendChild(t)}}({shortname:e,identifier:n,url:t,title:r},()=>i(!0)),o},[e,n,t,r]),eM(j,{children:[eM("div",{id:e7,children:["评论完整模式加载中... 如果长时间无法加载,请针对 disq.us | disquscdn.com | disqus.com 启用代理,或切换至"," ",eM(e2,{children:"评论基础模式"})]}),!l&&eM("div",{id:"dsqjs-msg",children:["评论完整模式加载中... 如果长时间无法加载,请针对 disq.us | disquscdn.com | disqus.com 启用代理,或切换至"," ",eM(e2,{children:"评论基础模式"})]})]})});function nt(e,n,t,r,o,l,i){try{var _=e[l](i),s=_.value}catch(e){t(e);return}_.done?n(s):Promise.resolve(s).then(r,o)}function nr(e){return function(){var n=this,t=arguments;return new Promise(function(r,o){var l=e.apply(n,t);function i(e){nt(l,r,o,i,_,"next",e)}function _(e){nt(l,r,o,i,_,"throw",e)}i(void 0)})}}let no=em(()=>eM("div",{id:"dsqjs-msg",children:["评论基础模式加载失败,请"," ",eM(e9,{children:"重载"})," ","或"," ",eM(e3,{children:"尝试完整 Disqus 模式"})]})),nl=em(()=>eM("div",{id:"dsqjs-msg",children:["当前 Thread 尚未创建。是否切换至"," ",eM(e1,{children:"完整 Disqus 模式"}),"?"]})),ni=em(({text:e})=>eM("p",{className:"dsqjs-no-comment",children:e}));function n_(e,n){let t=new URL(n);return t.searchParams.set("api_key",e),fetch(t.href).then(e=>e.json())}let ns=e=>new Date(e).getTime(),nu=null;function nc(e){return e.replaceAll("a.disquscdn.com","c.disquscdn.com")}let na=new Date().getTimezoneOffset(),nd=e=>(e+"").padStart(2,"0");function nf(e){return new Promise((n,t)=>{let r=new Image,o=setTimeout(()=>{_(),t()},3e3);function l(){clearTimeout(o),_(),n()}function i(){clearTimeout(o),_(),t()}function _(){r.removeEventListener("load",l),r.removeEventListener("error",i),r.remove()}r.addEventListener("error",i),r.addEventListener("load",l),r.src=`https://${e}/favicon.ico?${Date.now()}=${Date.now()}`})}let np=R(null),nh=np.Provider;function nm(){return function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'[foxact/invariant] "value" is null or undefined';if(null==e)throw TypeError(n);return e}(ei(np),"<ConfigProvider /> is missing")}function nv(e){return e}function ny({comment:e,children:n,nesting:t}){let{admin:r,adminLabel:o,disqusJsModeAssetsUrlTransformer:l=nv}=nm(),i=e.author.profileUrl,_=l(nc(e.author.avatar.cache)),s=eM("img",{alt:e.author.username,src:_});return eM("li",{id:"comment-"+e.id,children:[eM("div",{className:"dsqjs-post-item dsqjs-clearfix",children:[eM("div",{className:"dsqjs-post-avatar",children:i?eM("a",{href:i,target:"_blank",rel:"noreferrer noopenner nofollow external",children:s}):s}),eM("div",{className:"dsqjs-post-body",children:[eM("div",{className:"dsqjs-post-header",children:[i?eM("span",{className:"dsqjs-post-author",children:eM("a",{href:i,target:"_blank",rel:"noreferrer noopenner nofollow external",children:e.author.name})}):eM("span",{className:"dsqjs-post-author",children:e.author.name}),r===e.author.username&&eM("span",{className:"dsqjs-admin-badge",children:o})," ",eM("span",{className:"dsqjs-bullet"})," ",e.createdAt&&eM("span",{className:"dsqjs-meta",children:eM("time",{children:function(e){let n=new Date(ns(e)-60*na*1e3);return`${n.getFullYear()}-${nd(n.getMonth()+1)}-${nd(n.getDate())} ${nd(n.getHours())}:${nd(n.getMinutes())}`}(e.createdAt)})})]}),e.isDeleted?eM("div",{className:"dsqjs-post-content",children:eM("small",{children:"此评论已被删除"})}):eM("div",{className:"dsqjs-post-content",dangerouslySetInnerHTML:{__html:function(e){let n=nc(e).replaceAll(/https?:\/\/disq.us\/url\?url=(.+)%3A[\w-]+&cuid=\d+/g,(e,n)=>decodeURIComponent(n));nu||(nu=new DOMParser);let t=nu.parseFromString(n,"text/html");return t.querySelectorAll("script, iframe, object, embed, form, input, meta").forEach(e=>e.remove()),t.querySelectorAll("a").forEach(e=>{e.href.startsWith("javascript:")||e.href.startsWith("data:")?e.remove():(e.target="_blank",e.rel="external noopener nofollow noreferrer")}),t.querySelectorAll("*").forEach(e=>{for(let n=0,t=e.attributes.length;n<t;n++){let t=e.attributes[n];t.name.startsWith("on")&&e.removeAttribute(t.name)}e.hasAttribute("style")&&e.removeAttribute("style")}),t.body.innerHTML}(e.message)}})]})]}),eM(ng,{nesting:t,children:n}),e.hasMore&&eM("p",{className:"dsqjs-has-more",children:["切换至 ",eM(e1,{children:"完整 Disqus 模式"})," 显示更多回复"]})]})}function ng({children:e,nesting:t=1}){let{nesting:r=4}=nm();return e&&0!==e.length?eM("ul",{className:"dsqjs-post-list "+(t<r?"dsqjs-children":""),children:e.map(e=>eM(ny,n({},e),e.comment.id))}):null}function nb({comments:e}){return eM("ul",{className:"dsqjs-post-list",id:"dsqjs-post-container",children:eo(()=>{let n=[],t=[];return e.map((e,n)=>({i:n,p:e.parent,d:ns(e.createdAt)})).sort((e,n)=>e.p&&n.p?e.d-n.d:0).forEach(({i:r})=>{(e[r].parent?t:n).push(e[r])}),n.map(e=>(function e(n,t,r){return{comment:n,children:function(n,t,r){if(0===n.length)return null;let o=[];return n.forEach(l=>{l.parent===t&&o.unshift(e(l,n,r))}),o}(t,Number(n.id),r+1),nesting:r+1}})(e,t,0))},[e]).map(e=>eM(ny,n({},e),e.comment.id))})}let nq=(t=Math.random,(e,n)=>Math.floor(t()*(n-e+1))+e),nk=function(e){return 1===e.length?e[0]:e[nq(0,e.length-1)]};function nj(e){return eo(()=>Array.isArray(e)?nk(e):e,[e])}let[nw,nN,nS]=eQ(function(){{let e=localStorage.getItem("dsqjs_sort");if("popular"===e||"asc"===e||"desc"===e)return e}return null}());function nP({sortType:e,onChange:n,checked:t,title:r,label:o}){return eM(j,{children:[eM("input",{className:"dsqjs-order-radio",id:"dsqjs-order-"+e,type:"radio",name:"comment-order",value:e,onChange:n,checked:t}),eM("label",{className:"dsqjs-order-label",htmlFor:"dsqjs-order-"+e,title:r,children:o})]})}let nC=em(()=>{let e=nN(),n=nS();return eM("div",{className:"dsqjs-order",children:[eM(nP,{checked:"desc"===e||null===e,sortType:"desc",title:"按从新到旧",label:"最新",onChange:el(()=>n("desc"),[n])}),eM(nP,{checked:"asc"===e,sortType:"asc",title:"按从旧到新",label:"最早",onChange:el(()=>n("asc"),[n])}),eM(nP,{checked:"popular"===e,sortType:"popular",title:"按评分从高到低",label:"最佳",onChange:el(()=>n("popular"),[n])})]})}),nx=em(({totalComments:e,siteName:n})=>eM("header",{className:"dsqjs-header",id:"dsqjs-header",children:eM("nav",{className:"dsqjs-nav dsqjs-clearfix",children:[eM("ul",{children:[eM("li",{className:"dsqjs-nav-tab dsqjs-tab-active",children:eM("span",{children:[e," Comments"]})}),eM("li",{className:"dsqjs-nav-tab",children:n})]}),eM(nC,{})]})}));function nE({id:e}){let{apikey:n,shortname:t,api:r}=nm(),o=er(nj(n)),[l,i]=en([]),_=eX(),s=nN(),[u,c]=en(!1),[a,d]=en(!1),f=el((n=!1)=>nr(function*(){if(!e)return;c(!0),d(!1);let u=n?null:l[l.length-1];if(u&&!u.cursor.hasNext)return;let a=`${r}3.0/threads/listPostsThreaded?forum=${t}&thread=${e}&order=${null!=s?s:"desc"}${0!==l.length&&(null==u?void 0:u.cursor.next)?"&cursor="+encodeURIComponent(u.cursor.next):""}`,f=()=>{n?_(!0):d(!0),c(!1)};try{let e=yield n_(o.current,a);0===e.code?(i(t=>(n?[]:t).concat(e)),c(!1)):f()}catch(e){f()}})(),[e,l,r,t,s,_]),p=el(()=>f(!0),[f]),h=el(()=>f(!1),[f]);!function(e,n){let[t,r]=en(n=[...n]),o=n.length!==t.length;for(let e=0;e<n.length&&!o;e+=1)t[e]!==n[e]&&(o=!0);o&&(r(n),e())}(p,[e,s]),function(e){let n=er();n.current||(n.current=e())}(p);let m=eo(()=>l.filter(Boolean).flatMap(e=>e.response),[l]);if(l.length>0){var v;return eM(j,{children:[eM(nb,{comments:m}),(null==(v=l[l.length-1])?void 0:v.cursor.hasNext)&&eM(e0,{isLoading:u,isError:a,onClick:u?void 0:h})]})}return null}function nO(){let{apikey:e,identifier:n,shortname:t,api:r,siteName:o,nocomment:l}=nm(),i=er(nj(e)),[_,s]=en(null),u=eX(),c=null!=n?n:document.location.origin+document.location.pathname+document.location.search,a=el(()=>nr(function*(){try{let e=yield n_(i.current,`${r}3.0/threads/list.json?forum=${encodeURIComponent(t)}&thread=${encodeURIComponent("ident:"+c)}`);0===e.code?s(e):u(!0)}catch(e){u(!0)}})(),[r,i,c,u,s,t]),d=e6(),f=er(null);if(et(()=>{let e=eM(j,{children:[eM(e3,{children:"尝试完整 Disqus 模式"})," | ",eM(e1,{children:"强制完整 Disqus 模式"})]});f.current===c?d(eM(j,{children:["你可能无法访问 Disqus,已启用评论基础模式。如需完整体验请针对 disq.us | disquscdn.com | disqus.com 启用代理并"," ",e]})):(d(eM(j,{children:["评论基础模式加载中... 如需完整体验请针对 disq.us | disquscdn.com | disqus.com 启用代理并"," ",e]})),f.current=c,a())},[_,a,c,d,t,r]),!_)return null;if(1!==_.response.length)return eM(nl,{});let p=_.response[0],h=p.posts;return eM(j,{children:[eM(nx,{totalComments:h,siteName:null!=o?o:""}),0===h?eM(ni,{text:null!=l?l:"这里空荡荡的,一个人都没有"}):eM(nE,{id:p.id})]})}function nD(){let e=e6(),n=eJ(),t=eY(),{shortname:r,identifier:o,url:l,title:i}=nm();eB(o=>{"disqus"!==n&&"dsqjs"!==n&&(e("正在检查 Disqus 能否访问..."),Promise.all(["disqus.com",`${r}.disqus.com`].map(nf)).then(()=>{o.aborted||t("disqus")}).catch(()=>{o.aborted||t("dsqjs")}))},[n,t,e,r]);let _=eK(),s=e4();return _?eM(no,{}):eM(j,{children:[null!=s&&eM("div",{id:"dsqjs-msg",children:s}),"disqus"===n&&eM(nn,{shortname:r,identifier:o,url:l,title:i}),"dsqjs"===n&&eM(nO,{})]})}let nU=function(e){function n(n){var t=ef({},n);return delete t.ref,e(t,n.ref||null)}return n.$$typeof=ey,n.render=e,n.prototype.isReactComponent=n.__f=!0,n.displayName="ForwardRef("+(e.displayName||e.name)+")",n}((e,t)=>{var{shortname:r,siteName:o,identifier:l,url:i,title:_,api:s,apikey:u,nesting:c,nocomment:a,admin:d,adminLabel:f,className:p,disqusJsModeAssetsUrlTransformer:h}=e,m=eL(e,["shortname","siteName","identifier","url","title","api","apikey","nesting","nocomment","admin","adminLabel","className","disqusJsModeAssetsUrlTransformer"]);let v=eo(()=>[eM(nh,{value:{shortname:r,siteName:o,identifier:l,url:i,title:_,api:s,apikey:u,nesting:c,nocomment:a,admin:d,adminLabel:f,disqusJsModeAssetsUrlTransformer:h}},"config"),eM(ez,{},"mode"),eM(nw,{},"sortType"),eM(eG,{},"hasError"),eM(e8,{},"msg")],[d,f,s,u,h,l,c,a,r,o,_,i]);return!function(){let[e,n]=en(!1);return et(()=>{n(!0)},[]),e}()?null:eM("div",eR(n({ref:t},m),{className:"__dsqjs_15s36o "+(null!=p?p:""),children:eM(eW,{contexts:v,children:eM("section",{id:"dsqjs",children:[eM(nD,{}),eM(eF,{})]})})}))});return class{render(e){let t;(t=e?"string"==typeof e?document.querySelector(e):e:document.getElementById("disqusjs"))&&(this.container=t,I(eM(nU,n({},this.config)),t))}destroy(){this.container&&I(null,this.container)}constructor(n){e(this,"config",void 0),e(this,"container",void 0),this.config=n}}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).DisqusJS=n();